!function(){"use strict";conste=Object.getPrototypeOf,t=(e,t,o)=>{varn;return!!o(e,t.prototype)||(null===(n=e.constructor)||void0===n?void0:n.name)===t.name},o=e=>o=>(e=>{consto=typeofe;returnnull===e?"null":"object"===o&&Array.isArray(e)?"array":"object"===o&&t(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":o})(o)===e,n=e=>t=>typeoft===e,s=e=>t=>e===t,r=o("string"),a=o("object"),i=o=>((o,n)=>a(o)&&t(o,n,((t,o)=>e(t)===o)))(o,Object),l=o("array"),c=s(null),d=n("boolean"),u=s(void0),m=e=>null==e,g=e=>!m(e),p=n("function"),h=n("number"),f=(e,t)=>{if(l(e)){for(leto=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},b=()=>{},v=(e,t)=>(...o)=>e(t.apply(null,o)),y=e=>()=>e,x=e=>e,w=(e,t)=>e===t;functionS(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constk=e=>t=>!e(t),C=e=>()=>{thrownewError(e)},O=e=>e(),_=y(!1),T=y(!0);varE=tinymce.util.Tools.resolve("tinymce.ThemeManager");classB{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewB(!0,e)}staticnone(){returnB.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?B.some(e(this.value)):B.none()}bind(e){returnthis.tag?e(this.value):B.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:B.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returng(e)?B.some(e):B.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}B.singletonNone=newB(!1);constM=Array.prototype.slice,A=Array.prototype.indexOf,D=Array.prototype.push,F=(e,t)=>A.call(e,t),I=(e,t)=>{consto=F(e,t);return-1===o?B.none():B.some(o)},R=(e,t)=>F(e,t)>-1,V=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))return!0;return!1},z=(e,t)=>{consto=[];for(letn=0;n<e;n++)o.push(t(n));returno},H=(e,t)=>{consto=[];for(letn=0;n<e.length;n+=t){consts=M.call(e,n,n+t);o.push(s)}returno},P=(e,t)=>{consto=e.length,n=newArray(o);for(lets=0;s<o;s++){consto=e[s];n[s]=t(o,s)}returnn},N=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},L=(e,t)=>{consto=[],n=[];for(lets=0,r=e.length;s<r;s++){constr=e[s];(t(r,s)?o:n).push(r)}return{pass:o,fail:n}},W=(e,t)=>{consto=[];for(letn=0,s=e.length;n<s;n++){consts=e[n];t(s,n)&&o.push(s)}returno},U=(e,t,o)=>(((e,t)=>{for(leto=e.length-1;o>=0;o--)t(e[o],o)})(e,((e,n)=>{o=t(o,e,n)})),o),j=(e,t,o)=>(N(e,((e,n)=>{o=t(o,e,n)})),o),G=(e,t)=>((e,t,o)=>{for(letn=0,s=e.length;n<s;n++){consts=e[n];if(t(s,n))returnB.some(s);if(o(s,n))break}returnB.none()})(e,t,_),$=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))returnB.some(o);returnB.none()},q=e=>{constt=[];for(leto=0,n=e.length;o<n;++o){if(!l(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);D.apply(t,e[o])}returnt},X=(e,t)=>q(P(e,t)),K=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},Y=e=>{constt=M.call(e,0);returnt.reverse(),t},J=(e,t)=>W(e,(e=>!R(t,e))),Z=(e,t)=>{consto={};for(letn=0,s=e.length;n<s;n++){consts=e[n];o[String(s)]=t(s,n)}returno},Q=e=>[e],ee=(e,t)=>{consto=M.call(e,0);returno.sort(t),o},te=(e,t)=>t>=0&&t<e.length?B.some(e[t]):B.none(),oe=e=>te(e,0),ne=e=>te(e,e.length-1),se=p(Array.from)?Array.from:e=>M.call(e),re=(e,t)=>{for(leto=0;o<e.length;o++){constn=t(e[o],o);if(n.isSome())returnn}returnB.none()},ae=Object.keys,ie=Object.hasOwnProperty,le=(e,t)=>{consto=ae(e);for(letn=0,s=o.length;n<s;n++){consts=o[n];t(e[s],s)}},ce=(e,t)=>de(e,((e,o)=>({k:o,v:t(e,o)}))),de=(e,t)=>{consto={};returnle(e,((e,n)=>{consts=t(e,n);o[s.k]=s.v})),o},ue=e=>(t,o)=>{e[o]=t},me=(e,t,o,n)=>(le(e,((e,s)=>{(t(e,s)?o:n)(e,s)})),{}),ge=(e,t)=>{consto={};returnme(e,t,ue(o),b