!function(_){"use strict";varu,t,e,n,i,r,o=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),c=tinymce.util.Tools.resolve("tinymce.util.Delay"),s=function(t){returnt.reduce(function(t,e){returnArray.isArray(e)?t.concat(s(e)):t.concat(e)},[])},a={flatten:s},l=function(t,e){for(varn=0;n<e.length;n++){vari=(0,e[n])(t);if(i)returni}returnnull},d=function(t,e){return{id:t,rect:e}},f=function(t){return{x:t.left,y:t.top,w:t.width,h:t.height}},m=function(t){return{left:t.x,top:t.y,width:t.w,height:t.h,right:t.x+t.w,bottom:t.y+t.h}},g=function(t){vare=v.DOM.getViewPort();return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},p=function(t){vare=t.getBoundingClientRect();returng({x:e.left,y:e.top,w:Math.max(t.clientWidth,t.offsetWidth),h:Math.max(t.clientHeight,t.offsetHeight)})},b=function(t,e){returnp(e)},y=function(t){returnp(t.getContentAreaContainer()||t.getBody())},x=function(t){vare=t.selection.getBoundingClientRect();returne?g(f(e)):null},w=function(n,i){returnfunction(t){for(vare=0;e<i.length;e++)if(i[e].predicate(n))returnd(i[e].id,b(t,n));returnnull}},R=function(i,r){returnfunction(t){for(vare=0;e<i.length;e++)for(varn=0;n<r.length;n++)if(r[n].predicate(i[e]))returnd(r[n].id,b(t,i[e]));returnnull}},C=tinymce.util.Tools.resolve("tinymce.util.Tools"),k=function(t,e){return{id:t,predicate:e}},E=function(t){returnC.map(t,function(t){returnk(t.id,t.predicate)})},H=function(e){returnfunction(t){returnt.selection.isCollapsed()?null:d(e,x(t))}},T=function(i,r){returnfunction(t){vare,n=t.schema.getTextBlockElements();for(e=0;e<i.length;e++)if("TABLE"===i[e].nodeName)returnnull;for(e=0;e<i.length;e++)if(i[e].nodeNameinn)returnt.dom.isEmpty(i[e])?d(r,x(t)):null;returnnull}},S=function(t){t.fire("SkinLoaded")},M=function(t){returnt.fire("BeforeRenderUI")},N=tinymce.util.Tools.resolve("tinymce.EditorManager"),O=function(e){returnfunction(t){returntypeoft===e}},P=function(t){returnArray.isArray(t)},W=function(t){returnO("string")(t)},D=function(t){returnO("number")(t)},A=function(t){returnO("boolean")(t)},B=function(t){returnO("function")(t)},L=(O("object"),P),I=function(t,e){if(e(t))return!0;thrownewError("Default value doesn't match requested type.")},z=function(r){returnfunction(t,e,n){vari=t.settings;returnI(n,r),eini&&r(i[e])?i[e]:n}},F={getStringOr:z(W),getBoolOr:z(A),getNumberOr:z(D),getHandlerOr:z(B),getToolbarItemsOr:(u=L,function(t,e,n){vari,r,o,s,a,l=eint.settings?t.settings[e]:n;returnI(n,u),r=n,L(i=l)?i:W(i)?"string"==typeof(s=i)?(a=/[ ,]/,s.split(a).filter(function(t){return0<t.length})):s:A(i)?(o=r,!1===i?[]:o):r})},U=tinymce.util.Tools.resolve("tinymce.geom.Rect"),V=function(t,e){return{rect:t,position:e}},q=function(t,e){return{x:e.x,y:e.y,w:t.w,h:t.h}},Y=function(t,e,n,i,r){varo,s,a,l={x:i.x,y:i.y,w:i.w+(i.w<r.w+n.w?r.w:0),h:i.h+(i.h<r.h+n.h?r.h:0)};returno=U.findBestRelativePosition(r,n,l,t),n=U.clamp(n,l),o?(s=U.relativePosition(r,n,o),a=q(r,s),V(a,o)):(n=U.intersect(l,n))?((o=U.findBestRelativePosition(r,n,l,e))?(s=U.relativePosition(r,n,o),a=q(r,s)):a=q(r,n),V(a,o)):null},$=function(t,e,n){returnY(["cr-cl","cl-cr"],["bc-tc","bl-tl","br-tr"],t,e,n)},X=function(t,e,n){returnY(["tc-bc","bc-tc","tl-bl","bl-tl","tr-br","br-tr","cr-cl","cl-cr"],["bc-tc","bl-tl","br-tr","cr-cl"],t,e,n)},j=function(t,e,n,i){varr;return"function"==typeoft?(r=t({elementRect:m(e),contentAreaRect:m(n),panelRect:m(i)}),f(r)):i},J=function(t){returnt.panelRect},G=function(t){returnF.getToolbarItemsOr(t,"selection_toolbar",["bold","italic","|","quicklink","h2","h3","blockquote"])},K=function(t){returnF.getToolbarItemsOr(t,"insert_toolbar",["quickimage","quicktable"])},Z=function(t){returnF.getHandlerOr(t,"inline_toolbar_position_handler",J)},Q=function(t){vare,n,i,r,o=t.settings;returno.skin_url?(i=t,r=o.skin_url,i.documentBaseURI.toAbsolute(r)):(e=o.skin,n=N.baseURL+"/skins/",e?n+e:n+"lightgray")},tt=function(t){return!1===t.settings.skin},et=function(i,r){vart=Q(i),e=function(){vart,e,n;e=r,