!function(a,b){"use strict";functionc(a,b){for(varc,d=[],g=0;g<a.length;++g){if(c=f[a[g]]||e(a[g]),!c)throw"module definition dependecy not found: "+a[g];d.push(c)}b.apply(null,d)}functiond(a,d,e){if("string"!=typeofa)throw"invalid module definition, module id must be defined and be a string";if(d===b)throw"invalid module definition, dependencies must be specified";if(e===b)throw"invalid module definition, definition function must be specified";c(d,function(){f[a]=e.apply(null,arguments)})}functione(b){for(varc=a,d=b.split(/[.\/]/),e=0;e<d.length;++e){if(!c[d[e]])return;c=c[d[e]]}returnc}varf={};d("tinymce/tableplugin/Utils",["tinymce/Env"],function(a){functionb(b){(!a.ie||a.ie>9)&&(b.hasChildNodes()||(b.innerHTML='<br data-mce-bogus="1" />'))}varc=function(a){returnfunction(b,c){b&&(c=parseInt(c,10),1===c||0===c?b.removeAttribute(a,1):b.setAttribute(a,c,1))}},d=function(a){returnfunction(b){returnparseInt(b.getAttribute(a)||1,10)}};return{setColSpan:c("colSpan"),setRowSpan:c("rowspan"),getColSpan:d("colSpan"),getRowSpan:d("rowSpan"),setSpanVal:function(a,b,d){c(b)(a,d)},getSpanVal:function(a,b){returnd(b)(a)},paddCell:b}}),d("tinymce/tableplugin/SplitCols",["tinymce/util/Tools","tinymce/tableplugin/Utils"],function(a,b){varc=function(a,b,c){returna[c]?a[c][b]:null},d=function(a,b,d){vare=c(a,b,d);returne?e.elm:null},e=function(a,b,e,f){varg,h,i=0,j=d(a,b,e);for(g=e;(f>0?g<a.length:g>=0)&&(h=c(a,b,g),j===h.elm);g+=f)i++;returni},f=function(a,b,c){for(vard,e=a[c],f=b;f<e.length;f++)if(d=e[f],d.real)returnd.elm;returnnull},g=function(a,c){for(vard,f=[],g=a[c],h=0;h<g.length;h++)d=g[h],f.push({elm:d.elm,above:e(a,h,c,-1)-1,below:e(a,h,c,1)-1}),h+=b.getColSpan(d.elm)-1;returnf},h=function(a,c){vard=a.elm.ownerDocument,e=d.createElement("td");returnb.setColSpan(e,b.getColSpan(a.elm)),b.setRowSpan(e,c),b.paddCell(e),e},i=function(a,b,c,d){vare=f(a,c+1,d);e?e.parentNode.insertBefore(b,e):(e=f(a,0,d),e.parentNode.appendChild(b))},j=function(a,c,d,e){if(0!==c.above){b.setRowSpan(c.elm,c.above);varf=h(c,c.below+1);returni(a,f,d,e),f}returnnull},k=function(a,c,d,e){if(0!==c.below){b.setRowSpan(c.elm,c.above+1);varf=h(c,c.below);returni(a,f,d,e+1),f}returnnull},l=function(b,c,e,f){varh=g(b,e),i=d(b,c,e).parentNode,l=[];returna.each(h,function(a,c){vard=f?j(b,a,c,e):k(b,a,c,e);null!==d&&l.push(l)}),{cells:l,row:i}};return{splitAt:l}}),d("tinymce/tableplugin/TableGrid",["tinymce/util/Tools","tinymce/Env","tinymce/tableplugin/Utils","tinymce/tableplugin/SplitCols"],function(a,c,d,e){varf=a.each,g=d.getSpanVal,h=d.setSpanVal;returnfunction(i,j,k){functionl(){i.$("td[data-mce-selected],th[data-mce-selected]").removeAttr("data-mce-selected")}functionm(a){returna===i.getBody()}functionn(b,c){returnb?(c=a.map(c.split(","),function(a){returna.toLowerCase()}),a.grep(b.childNodes,function(b){return-1!==a.inArray(c,b.nodeName.toLowerCase())})):[]}functiono(){vara=0;X=[],Y=0,f(["thead","tbody","tfoot"],function(b){varc=n(j,b)[0],d=n(c,"tr");f(d,function(c,d){d+=a,f(n(c,"td,th"),function(a,c){vare,f,h,i;if(X[d])for(;X[d][c];)c++;for(h=g(a,"rowspan"),i=g(a,"colspan"),f=d;d+h>f;f++)for(X[f]||(X[f]=[]),e=c;c+i>e;e++)X[f][e]={part:b,real:f==d&&e==c,elm:a,rowspan:h,colspan:i};Y=Math.max(Y,c+1)})}),a+=d.length})}functionp(a){returni.fire("newrow",{node:a}),a}functionq(a){returni.fire("newcell",{node:a}),a}functionr(a,b){returna=a.cloneNode(b),a.removeAttribute("id"),a}functions(a,b){varc;returnc=X[b],c?c[a]:void0}functiont(a,b){returna[b]?a[b]:null}functionu(a,b){for(varc=[],d=0;d<a.length;d++)c.push(s(b,d));returnc}functionv(a){returna&&(!!aa.getAttrib(a.elm,"data-mce-selected")||a==k)}functionw(){vara=[];returnf(j.rows,function(b){f(b.cells,function(c){returnaa.getAttrib(c,"data-mce-selected")||k&&c==k.elm?(a.push(b),!1):void0})}),a}functionx(){vara=aa.createRng();m(j)||(a.setStartAfter(j),a.setEndAfter(j),_.setRng(a),aa.remove(j))}functiony(b){vare,g={};returni.settings.table_clone_elements!==!1&&(g=a.makeMap((i.settings.table_clone_elements||"strongembispanfonth1h2