!function(V){"use strict";varo=function(){},H=function(n,r){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];returnn(r.apply(null,e))}},q=function(e){returnfunction(){returne}},$=function(e){returne};functiond(r){for(varo=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];varn=o.concat(e);returnr.apply(null,n)}}vare,t,n,r,i,a,u,s,c,l,f,m,g,p,h,v,y=function(n){returnfunction(){for(vare=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}},b=q(!1),C=q(!0),x=function(){returnw},w=(e=function(e){returne.isNone()},r={fold:function(e,t){returne()},is:b,isSome:b,isNone:C,getOr:n=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:q(null),getOrUndefined:q(undefined),or:n,orThunk:t,map:x,each:o,bind:x,exists:b,forall:C,filter:x,equals:e,equals_:e,toArray:function(){return[]},toString:q("none()")},Object.freeze&&Object.freeze(r),r),N=function(n){vare=q(n),t=function(){returno},r=function(e){returne(n)},o={fold:function(e,t){returnt(n)},is:function(e){returnn===e},isSome:C,isNone:b,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){returnN(e(n))},each:function(e){e(n)},bind:r,exists:r,forall:r,filter:function(e){returne(n)?o:w},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){returne.is(n)},equals_:function(e,t){returne.fold(b,function(e){returnt(n,e)})}};returno},_={some:N,none:x,from:function(e){returnnull===e||e===undefined?w:N(e)}},E=function(t){returnfunction(e){returnfunction(e){if(null===e)return"null";vart=typeofe;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===t}},S=E("string"),T=E("object"),k=E("array"),A=E("null"),R=E("boolean"),D=E("function"),O=E("number"),B=Array.prototype.slice,P=Array.prototype.indexOf,I=Array.prototype.push,L=function(e,t){returnP.call(e,t)},F=function(e,t){return-1<L(e,t)},M=function(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},W=function(e,t){for(varn=e.length,r=newArray(n),o=0;o<n;o++){vari=e[o];r[o]=t(i,o)}returnr},z=function(e,t){for(varn=0,r=e.length;n<r;n++)t(e[n],n)},K=function(e,t){for(varn=[],r=[],o=0,i=e.length;o<i;o++){vara=e[o];(t(a,o)?n:r).push(a)}return{pass:n,fail:r}},U=function(e,t){for(varn=[],r=0,o=e.length;r<o;r++){vari=e[r];t(i,r)&&n.push(i)}returnn},j=function(e,t,n){returnz(e,function(e){n=t(n,e)}),n},X=function(e,t){for(varn=0,r=e.length;n<r;n++){varo=e[n];if(t(o,n))return_.some(o)}return_.none()},Y=function(e,t){for(varn=0,r=e.length;n<r;n++)if(t(e[n],n))return_.some(n);return_.none()},G=function(e,t){returnfunction(e){for(vart=[],n=0,r=e.length;n<r;++n){if(!k(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);I.apply(t,e[n])}returnt}(W(e,t))},J=function(e,t){for(varn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0},Q=function(e,t){returnU(e,function(e){return!F(t,e)})},Z=function(e){return0===e.length?_.none():_.some(e[0])},ee=function(e){return0===e.length?_.none():_.some(e[e.length-1])},te=D(Array.from)?Array.from:function(e){returnB.call(e)},ne="undefined"!=typeofV.window?V.window:Function("return this;")(),re=function(e,t){returnfunction(e,t){for(varn=t!==undefined&&null!==t?t:ne,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];returnn}(e.split("."),t)},oe={getOrDie:function(e,t){varn=re(e,t);if(n===undefined||null===n)thrownewError(e+" not available on this browser");returnn}},ie=function(){returnoe.getOrDie("URL")},ae={createObjectURL:function(e){returnie().createObjectURL(e)},revokeObjectURL:function(e){ie().revokeObjectURL(e)}},ue=V.navigator,se=ue.userAgent,ce=function(e){return"matchMedia"inV.window&&V.matchMedia(e).matches};m=/Android/.test(se),a=(a=!(i=/WebKit/.test(se))&
!function(){"use strict";vart=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),e=function(t,e){vari,n=t.dom,o=t.selection.getSelectedBlocks();o.length&&(i=n.getAttrib(o[0],"dir"),c.each(o,function(t){n.getParent(t.parentNode,'*[dir="'+e+'"]',n.getRoot())||n.setAttrib(t,"dir",i!==e?e:null)}),t.nodeChanged())},i=function(t){t.addCommand("mceDirectionLTR",function(){e(t,"ltr")}),t.addCommand("mceDirectionRTL",function(){e(t,"rtl")})},n=function(e){vari=[];returnc.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(t){i.push(t+"[dir="+e+"]")}),i.join(",")},o=function(t){t.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),t.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})};t.add("directionality",function(t){i(t),o(t)})}();
!function(l){"use strict";vari,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=function(e){return!1!==e.settings.image_dimensions},u=function(e){return!0===e.settings.image_advtab},m=function(e){returne.getParam("image_prepend_url","")},n=function(e){returne.getParam("image_class_list")},r=function(e){return!1!==e.settings.image_description},a=function(e){return!0===e.settings.image_title},o=function(e){return!0===e.settings.image_caption},c=function(e){returne.getParam("image_list",!1)},s=function(e){returne.getParam("images_upload_url",!1)},g=function(e){returne.getParam("images_upload_handler",!1)},f=function(e){returne.getParam("images_upload_url")},p=function(e){returne.getParam("images_upload_handler")},h=function(e){returne.getParam("images_upload_base_path")},v=function(e){returne.getParam("images_upload_credentials")},b="undefined"!=typeofl.window?l.window:Function("return this;")(),y=function(e,t){returnfunction(e,t){for(varn=t!==undefined&&null!==t?t:b,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];returnn}(e.split("."),t)},x={getOrDie:function(e,t){varn=y(e,t);if(n===undefined||null===n)thrownewError(e+" not available on this browser");returnn}},w=tinymce.util.Tools.resolve("tinymce.util.Promise"),C=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=tinymce.util.Tools.resolve("tinymce.util.XHR"),N=function(e,t){returnMath.max(parseInt(e,10),parseInt(t,10))},_=function(e,n){varr=l.document.createElement("img");functiont(e,t){r.parentNode&&r.parentNode.removeChild(r),n({width:e,height:t})}r.onload=function(){t(N(r.width,r.clientWidth),N(r.height,r.clientHeight))},r.onerror=function(){t(0,0)};vara=r.style;a.visibility="hidden",a.position="fixed",a.bottom=a.left="0px",a.width=a.height="auto",l.document.body.appendChild(r),r.src=e},T=function(e,a,t){returnfunctionn(e,r){returnr=r||[],C.each(e,function(e){vart={text:e.text||e.title};e.menu?t.menu=n(e.menu):(t.value=e.value,a(t)),r.push(t)}),r}(e,t||[])},A=function(e){returne&&(e=e.replace(/px$/,"")),e},R=function(e){return0<e.length&&/^[0-9]+$/.test(e)&&(e+="px"),e},I=function(e){if(e.margin){vart=e.margin.split(" ");switch(t.length){case1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}deletee.margin}returne},t=function(e,t){varn=c(e);"string"==typeofn?S.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"==typeofn?n(t):t(n)},O=function(e,t,n){functionr(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())}n.onload=function(){t.width||t.height||!d(e)||e.dom.setAttribs(n,{width:n.clientWidth,height:n.clientHeight}),r()},n.onerror=r},L=function(r){returnneww(function(e,t){varn=new(x.getOrDie("FileReader"));n.onload=function(){e(n.result)},n.onerror=function(){t(n.error.message)},n.readAsDataURL(r)})},P=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=Object.prototype.hasOwnProperty,E=(i=function(e,t){returnt},function(){for(vare=newArray(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)thrownewError("Can't merge zero objects");for(varn={},r=0;r<e.length;r++){vara=e[r];for(varoina)U.call(a,o)&&(n[o]=i(n[o],a[o]))}returnn}),k=P.DOM,M=function(e){returne.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?A(e.style.marginLeft):""},D=function(e){returne.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?A(e.style.marginTop):""},z=function(e){returne.st
!function(u){"use strict";vare,n,t,r,o,i,s,a,c,f=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),l=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),m=tinymce.util.Tools.resolve("tinymce.util.VK"),p=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),h=function(e){returne&&"BR"===e.nodeName},y=function(e){returne&&3===e.nodeType},N=function(e){returne&&/^(OL|UL|DL)$/.test(e.nodeName)},S=function(e){returne&&/^(OL|UL)$/.test(e.nodeName)},C=function(e){returne&&/^(DT|DD)$/.test(e.nodeName)},O=function(e){returne&&/^(LI|DT|DD)$/.test(e.nodeName)},b=function(e){returne&&/^(TH|TD)$/.test(e.nodeName)},T=h,E=function(e,n){returnn&&!!e.schema.getTextBlockElements()[n.nodeName]},L=function(e,n){returne&&e.nodeNameinn},D=function(e,n){return!!h(n)&&!(!e.isBlock(n.nextSibling)||h(n.previousSibling))},w=function(e,n,t){varr=e.isEmpty(n);return!(t&&0<e.select("span[data-mce-type=bookmark]",n).length)&&r},k=function(e,n){returne.isChildOf(n,e.getRoot())},A=function(e,n){if(y(e))return{container:e,offset:n};vart=d.getNode(e,n);returny(t)?{container:t,offset:n>=e.childNodes.length?t.data.length:0}:t.previousSibling&&y(t.previousSibling)?{container:t.previousSibling,offset:t.previousSibling.data.length}:t.nextSibling&&y(t.nextSibling)?{container:t.nextSibling,offset:0}:{container:e,offset:n}},x=function(e){varn=e.cloneRange(),t=A(e.startContainer,e.startOffset);n.setStart(t.container,t.offset);varr=A(e.endContainer,e.endOffset);returnn.setEnd(r.container,r.offset),n},R=g.DOM,I=function(o){vari={},e=function(e){varn,t,r;t=o[e?"startContainer":"endContainer"],r=o[e?"startOffset":"endOffset"],1===t.nodeType&&(n=R.create("span",{"data-mce-type":"bookmark"}),t.hasChildNodes()?(r=Math.min(r,t.childNodes.length-1),e?t.insertBefore(n,t.childNodes[r]):R.insertAfter(n,t.childNodes[r])):t.appendChild(n),t=n,r=0),i[e?"startContainer":"endContainer"]=t,i[e?"startOffset":"endOffset"]=r};returne(!0),o.collapsed||e(),i},_=function(o){functione(e){varn,t,r;n=r=o[e?"startContainer":"endContainer"],t=o[e?"startOffset":"endOffset"],n&&(1===n.nodeType&&(t=function(e){for(varn=e.parentNode.firstChild,t=0;n;){if(n===e)returnt;1===n.nodeType&&"bookmark"===n.getAttribute("data-mce-type")||t++,n=n.nextSibling}return-1}(n),n=n.parentNode,R.remove(r),!n.hasChildNodes()&&R.isBlock(n)&&n.appendChild(R.create("br"))),o[e?"startContainer":"endContainer"]=n,o[e?"startOffset":"endOffset"]=t)}e(!0),e();varn=R.createRng();returnn.setStart(o.startContainer,o.startOffset),o.endContainer&&n.setEnd(o.endContainer,o.endOffset),x(n)},B=function(){},P=function(e){returnfunction(){returne}},M=function(t){returnfunction(){for(vare=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},U=P(!1),F=P(!0),j=function(){returnH},H=(e=function(e){returne.isNone()},r={fold:function(e,n){returne()},is:U,isSome:U,isNone:F,getOr:t=function(e){returne},getOrThunk:n=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:P(null),getOrUndefined:P(undefined),or:t,orThunk:n,map:j,each:B,bind:j,exists:U,forall:F,filter:j,equals:e,equals_:e,toArray:function(){return[]},toString:P("none()")},Object.freeze&&Object.freeze(r),r),$=function(t){vare=P(t),n=function(){returno},r=function(e){returne(t)},o={fold:function(e,n){returnn(t)},is:function(e){returnt===e},isSome:F,isNone:U,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return$(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){returne(t)?o:H},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){returne.is(t)},equals_:function(e,n){returne.fold(U,function(e){returnn(t,e)})}};returno},q={some:$,none:j,from:function(e){returnnull===e||e===undefined?H:$(e)}},W=function(n){returnfunction(e){returnfunction(e){if(null===e)return"null";varn=typeofe;return"object"
!function(){"use strict";vare,t,r,n,i=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),w=function(e){returne.getParam("media_scripts")},b=function(e){returne.getParam("audio_template_callback")},y=function(e){returne.getParam("video_template_callback")},a=function(e){returne.getParam("media_live_embeds",!0)},u=function(e){returne.getParam("media_filter_html",!0)},s=function(e){returne.getParam("media_url_resolver")},m=function(e){returne.getParam("media_alt_source",!0)},d=function(e){returne.getParam("media_poster",!0)},h=function(e){returne.getParam("media_dimensions",!0)},f=function(e){vart=e,r=function(){returnt};return{get:r,set:function(e){t=e},clone:function(){returnf(r())}}},c=function(){},l=function(e){returnfunction(){returne}},p=l(!1),g=l(!0),x=function(){returnO},O=(e=function(e){returne.isNone()},n={fold:function(e,t){returne()},is:p,isSome:p,isNone:g,getOr:r=function(e){returne},getOrThunk:t=function(e){returne()},getOrDie:function(e){thrownewError(e||"error: getOrDie called on none.")},getOrNull:l(null),getOrUndefined:l(undefined),or:r,orThunk:t,map:x,each:c,bind:x,exists:p,forall:g,filter:x,equals:e,equals_:e,toArray:function(){return[]},toString:l("none()")},Object.freeze&&Object.freeze(n),n),j=function(r){vare=l(r),t=function(){returni},n=function(e){returne(r)},i={fold:function(e,t){returnt(r)},is:function(e){returnr===e},isSome:g,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){returnj(e(r))},each:function(e){e(r)},bind:n,exists:n,forall:n,filter:function(e){returne(r)?i:O},toArray:function(){return[r]},toString:function(){return"some("+r+")"},equals:function(e){returne.is(r)},equals_:function(e,t){returne.fold(p,function(e){returnt(r,e)})}};returni},_=x,S=function(e){returnnull===e||e===undefined?O:j(e)},k=Object.hasOwnProperty,N=function(e,t){returnM(e,t)?S(e[t]):_()},M=function(e,t){returnk.call(e,t)},T=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),z=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),A=function(e,t){if(e)for(varr=0;r<e.length;r++)if(-1!==t.indexOf(e[r].filter))returne[r]},C=T.DOM,$=function(e){returne.replace(/px$/,"")},P=function(a,e){varc=f(!1),u={};returnz({validate:!1,allow_conditional_comments:!0,special:"script,noscript",start:function(e,t){if(c.get());elseif(M(t.map,"data-ephox-embed-iri"))c.set(!0),i=(n=t).map.style,o=i?C.parseStyle(i):{},u={type:"ephox-embed-iri",source1:n.map["data-ephox-embed-iri"],source2:"",poster:"",width:N(o,"max-width").map($).getOr(""),height:N(o,"max-height").map($).getOr("")};else{if(u.source1||"param"!==e||(u.source1=t.map.movie),"iframe"!==e&&"object"!==e&&"embed"!==e&&"video"!==e&&"audio"!==e||(u.type||(u.type=e),u=v.extend(t.map,u)),"script"===e){varr=A(a,t.map.src);if(!r)return;u={type:"script",source1:t.map.src,width:r.width,height:r.height}}"source"===e&&(u.source1?u.source2||(u.source2=t.map.src):u.source1=t.map.src),"img"!==e||u.poster||(u.poster=t.map.src)}varn,i,o}}).parse(e),u.source1=u.source1||u.src||u.data,u.source2=u.source2||"",u.poster=u.poster||"",u},F=tinymce.util.Tools.resolve("tinymce.util.Promise"),D=function(e){vart={mp3:"audio/mpeg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"}[e.toLowerCase().split(".").pop()];returnt||""},L=tinymce.util.Tools.resolve("tinymce.html.Schema"),E=tinymce.util.Tools.resolve("tinymce.html.Writer"),J=T.DOM,R=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},U=function(e,t){for(varrint){varn=""+t[r];if(e.map[r])for(vari=e.length;i--;){varo=e[i];o.name===r&&(n?(e.map[r]=n,o.value=n):(deletee.map[r],e.splice(i,1)))}elsen&&(e.push({name:r,value:n}),e.map[r]=n)}},W=function(e,c,u){vars,l=E(),m=f(!1),d=0;returnz({validate:!1,allow_conditional_comments:!0,special:"script,noscript",comment:function(e){l.comment(e)},cdata:function(e){l.cdata(e)},text:function(e,t){l.text(e,t)},start:function(e,t,r){if(m.get());elseif(M(t.map,"data-ephox-em
!function(v){"use strict";varp=function(t){vare=t,n=function(){returne};return{get:n,set:function(t){e=t},clone:function(){returnp(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(t){return!(!/(^|[ ,])powerpaste([, ]|$)/.test(t.settings.plugins)||!e.get("powerpaste")||("undefined"!=typeofv.window.console&&v.window.console.log&&v.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),0))},u=function(t,e){return{clipboard:t,quirks:e}},d=function(t,e,n,r){returnt.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},m=function(t,e,n,r){returnt.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},s=function(t,e){returnt.fire("PastePlainTextToggle",{state:e})},n=function(t,e){returnt.fire("paste",{ieFake:e})},g={shouldPlainTextInform:function(t){returnt.getParam("paste_plaintext_inform",!0)},shouldBlockDrop:function(t){returnt.getParam("paste_block_drop",!1)},shouldPasteDataImages:function(t){returnt.getParam("paste_data_images",!1)},shouldFilterDrop:function(t){returnt.getParam("paste_filter_drop",!0)},getPreProcess:function(t){returnt.getParam("paste_preprocess")},getPostProcess:function(t){returnt.getParam("paste_postprocess")},getWebkitStyles:function(t){returnt.getParam("paste_webkit_styles")},shouldRemoveWebKitStyles:function(t){returnt.getParam("paste_remove_styles_if_webkit",!0)},shouldMergeFormats:function(t){returnt.getParam("paste_merge_formats",!0)},isSmartPasteEnabled:function(t){returnt.getParam("smart_paste",!0)},isPasteAsTextEnabled:function(t){returnt.getParam("paste_as_text",!1)},getRetainStyleProps:function(t){returnt.getParam("paste_retain_style_properties")},getWordValidElements:function(t){returnt.getParam("paste_word_valid_elements","-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody")},shouldConvertWordFakeLists:function(t){returnt.getParam("paste_convert_word_fake_lists",!0)},shouldUseDefaultFilters:function(t){returnt.getParam("paste_enable_default_filters",!0)}},r=function(t,e,n){varr,o,i;"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),s(t,!1)):(e.pasteFormat.set("text"),s(t,!0),i=t,!1===n.get()&&g.shouldPlainTextInform(i)&&(o="Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.",(r=t).notificationManager.open({text:r.translate(o),type:"info"}),n.set(!0))),t.focus()},c=function(t,n,e){t.addCommand("mceTogglePlainTextPaste",function(){r(t,n,e)}),t.addCommand("mceInsertClipboardContent",function(t,e){e.content&&n.pasteHtml(e.content,e.internal),e.text&&n.pasteText(e.text)})},h=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),b=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=tinymce.util.Tools.resolve("tinymce.util.VK"),t="x-tinymce/html",i="\x3c!-- "+t+" --\x3e",l=function(t){returni+t},f=function(t){returnt.replace(i,"")},w=function(t){return-1!==t.indexOf(i)},x=function(){returnt},_=tinymce.util.Tools.resolve("tinymce.html.Entities"),P=function(t){returnt.replace(/\r?\n/g,"<br>")},T=function(t,e,n){varr=t.split(/\n\n/),o=function(t,e){varn,r=[],o="<"+t;if("object"==typeofe){for(nine)e.hasOwnProperty(n)&&r.push(n+'="'+_.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}returno+">"}(e,n),i="</"+e+">",a=b.map(r,function(t){returnt.split(/\n/).join("<br />")});return1===a.length?a[0]:b.map(a,function(t){returno+t+i}).join("")},D=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},C=function(t,e,n){returne?T(t,e,n):P(t)},k=tinymce.util.Tools.resolve("tinymce.html.DomParser"),F=tinymce.util.Tools.resolve("tinymce.html.Serializer"),E=tinymce.util.Tools.resolve("tinymce.html.Node"),R=tinymce.util.Tools.resolve("tinymce.html.Schema");functionI(e,t){returnb.each(t,function(t){e=t.constructor===RegExp?e.replace(t,""):e.replace(t[0],t[1])}),e}va
tinymce.WPWindowManager=tinymce.InlineWindowManager=function(a){if(this.wp)returnthis;this.wp={},this.parent=a.windowManager,this.editor=a,tinymce.extend(this,this.parent),this.open=function(e,i){varn,o=this,t=this.wp;if(!e.wpDialog)returnthis.parent.open.apply(this,arguments);e.id&&("undefined"!=typeofjQuery&&jQuery.wp&&jQuery.wp.wpdialog?(t.$element=n=jQuery("#"+e.id),n.length&&(window.console&&window.console.log&&window.console.log("tinymce.WPWindowManager is deprecated. Use the default editor.windowManager to open dialogs with inline HTML."),t.features=e,t.params=i,a.nodeChanged(),n.data("wpdialog")||n.wpdialog({title:e.title,width:e.width,height:e.height,modal:!0,dialogClass:"wp-dialog",zIndex:3e5}),n.wpdialog("open"),n.on("wpdialogclose",function(){o.wp.$element&&(o.wp={})}))):window.console&&window.console.error&&window.console.error('wpdialog.js is not loaded. Please set "wpdialogs" as dependency for your script when calling wp_enqueue_script(). You may also want to enqueue the "wp-jquery-ui-dialog" stylesheet.'))},this.close=function(){if(!this.wp.features||!this.wp.features.wpDialog)returnthis.parent.close.apply(this,arguments);this.wp.$element.wpdialog("close")}},tinymce.PluginManager.add("wpdialogs",function(e){e.on("init",function(){e.windowManager=newtinymce.WPWindowManager(e)})});
!function(m){m.PluginManager.add("wpemoji",function(n){vart,o=window.wp,e=window._wpemojiSettings,i=m.Env,a=window.navigator.userAgent,w=-1<a.indexOf("Windows"),a=!!((a=a.match(/Windows NT 6\.(\d)/))&&1<a[1]);functiond(e){o.emoji.parse(e,{imgAttr:{"data-mce-resize":"false","data-mce-placeholder":"1","data-wp-emoji":"1"}})}functionc(e){vart,o;e&&window.twemoji&&window.twemoji.test(e.textContent||e.innerText)&&(i.webkit&&(o=(t=n.selection).getBookmark()),d(e),i.webkit)&&t.moveToBookmark(o)}o&&o.emoji&&!e.supports.everything&&(a?n.on("keyup",function(e){231===e.keyCode&&c(n.selection.getNode())}):w||(n.on("keydown keyup",function(e){t="keydown"===e.type}),n.on("input",function(){t||c(n.selection.getNode())})),n.on("setcontent",function(e){vart=n.selection,o=t.getNode();window.twemoji&&window.twemoji.test(o.textContent||o.innerText)&&(d(o),i.ie)&&i.ie<9&&e.load&&o&&"BODY"===o.nodeName&&t.collapse(!0)}),n.on("PastePostProcess",function(e){window.twemoji&&m.each(n.dom.$("img.emoji",e.node),function(e){e.alt&&window.twemoji.test(e.alt)&&((e=e).className="emoji",e.setAttribute("data-mce-resize","false"),e.setAttribute("data-mce-placeholder","1"),e.setAttribute("data-wp-emoji","1"))})}),n.on("postprocess",function(e){e.content&&(e.content=e.content.replace(/<img[^>]+data-wp-emoji="[^>]+>/g,function(e){vart=e.match(/alt="([^"]+)"/);returnt&&t[1]?t[1]:e}))}),n.on("resolvename",function(e){"IMG"===e.target.nodeName&&n.dom.getAttrib(e.target,"data-wp-emoji")&&e.preventDefault()}))})}(window.tinymce);
!function(v){v.ui.Factory.add("WPLinkPreview",v.ui.Control.extend({url:"#",renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-preview"><a href="'+this.url+'" target="_blank" rel="noopener" tabindex="-1">'+this.url+"</a></div>"},setURL:function(e){vart,n;this.url!==e&&(this.url=e,40<(e=""===(e="/"===(e=(e=-1!==(t=(e=-1!==(t=(e=(e=window.decodeURIComponent(e)).replace(/^(?:https?:)?\/\/(?:www\.)?/,"")).indexOf("?"))?e.slice(0,t):e).indexOf("#"))?e.slice(0,t):e).replace(/(?:index)?\.html$/,"")).charAt(e.length-1)?e.slice(0,-1):e)?this.url:e).length&&-1!==(t=e.indexOf("/"))&&-1!==(n=e.lastIndexOf("/"))&&n!==t&&(t+e.length-n<40&&(n=-(40-(t+1))),e=e.slice(0,t+1)+"\u2026"+e.slice(n)),v.$(this.getEl().firstChild).attr("href",this.url).text(e))}})),v.ui.Factory.add("WPLinkInput",v.ui.Control.extend({renderHtml:function(){return'<div id="'+this._id+'" class="wp-link-input"><input type="text" value="" placeholder="'+v.translate("Paste URL or type to search")+'" /><input type="text" style="display:none" value="" /></div>'},setURL:function(e){this.getEl().firstChild.value=e},getURL:function(){returnv.trim(this.getEl().firstChild.value)},getLinkText:function(){vare=this.getEl().firstChild.nextSibling.value;returnv.trim(e)?e.replace(/[\r\n\t ]+/g," "):""},reset:function(){vare=this.getEl().firstChild;e.value="",e.nextSibling.value=""}})),v.PluginManager.add("wplink",function(l){vara,r,d,c,i,n,t,p=window.jQuery,o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i,s=/^https?:\/\/([^\s/?.#-][^\s\/?.#]*\.?)+(\/[^\s"]*)?$/i,u=/^https?:\/\/[^\/]+\.[^\/]+($|\/)/i,w=void0!==window.wp&&window.wp.a11y&&window.wp.a11y.speak?window.wp.a11y.speak:function(){},m=!1;functionk(){l.$("a").each(function(e,t){varn=l.$(t);"_wp_link_placeholder"===n.attr("href")?l.dom.remove(t,!0):n.attr("data-wplink-edit")&&n.attr("data-wplink-edit",null)})}functionf(e,i){returne.replace(/(<a [^>]+>)([\s\S]*?)<\/a>/g,function(e,t,n){return-1<t.indexOf(' href="_wp_link_placeholder"')?n:(t=(t=i?t.replace(/ data-wplink-edit="true"/g,""):t).replace(/ data-wplink-url-error="true"/g,""))+n+"</a>"})}functionh(e){vare=l.$(e),t=e.attr("href");t&&void0!==p&&(m=!1,!/^http/i.test(t)||s.test(t)&&u.test(t)?e.removeAttr("data-wplink-url-error"):(m=!0,e.attr("data-wplink-url-error","true"),w(l.translate("Warning: the link has been inserted but may have errors. Please test it."),"assertive")))}returnl.on("preinit",function(){vare;l.wp&&l.wp._createToolbar&&(a=l.wp._createToolbar(["wp_link_preview","wp_link_edit","wp_link_remove"],!0),e=["wp_link_input","wp_link_apply"],void0!==window.wpLink&&e.push("wp_link_advanced"),(r=l.wp._createToolbar(e,!0)).on("show",function(){void0!==window.wpLink&&window.wpLink.modalOpen||window.setTimeout(function(){vare=r.$el.find("input.ui-autocomplete-input")[0],t=i&&(i.textContent||i.innerText);e&&(!e.value&&t&&void0!==window.wpLink&&(e.value=window.wpLink.getUrlFromSelection(t)),n||(e.focus(),e.select()))})}),r.on("hide",function(){r.scrolling||l.execCommand("wp_link_cancel")}))}),l.addCommand("WP_Link",function(){vare,t,n;v.Env.ie&&v.Env.ie<10&&void0!==window.wpLink?window.wpLink.open(l.id):(t=l.selection.getStart(),(n=l.dom.getParent(t,"a[href]"))||(e=l.selection.getContent({format:"raw"}))&&-1!==e.indexOf("</a>")&&(n=(e=e.match(/href="([^">]+)"/))&&e[1]?l.$('a[href="'+e[1]+'"]',t)[0]:n)&&l.selection.select(n),i=n,r.tempHide=!1,i||(k(),l.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder"}),i=l.$('a[href="_wp_link_placeholder"]')[0],l.nodeChanged()),l.dom.setAttribs(i,{"data-wplink-edit":!0}))}),l.addCommand("wp_link_apply",function(){if(!r.scrolling){vare,t;if(i){e=c.getURL(),t=c.getLinkText(),l.focus();varn=document.createElement("a");if(n.href=e,!(e="javascript:"!==n.protocol&&"data:"!==n.protocol?e:""))returnvoidl.dom.remove(i,!0);/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)||o.test(e)||(e="http://"+e),l.dom.setAttribs(i,{href:e,"data-wplink-edit":null}),v.trim(i.innerHTML)||l.$(i).text(t||e),h(i)}c.reset(),l.nodeChanged(),void0===window.wpLinkL10n||m||w(window.wpLinkL10n.linkInserted)}}),l.addComm