2023-10-06 18:47:50 +03:00
var nP = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { } ; function m0e ( s ) { return s && s . _ _esModule && Object . prototype . hasOwnProperty . call ( s , "default" ) ? s . default : s } var mu = { exports : { } } ; /**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/ ( function ( s , e ) { ( function ( ) { var t , r = "4.17.21" , a = 200 , u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill." , f = "Expected a function" , m = "Invalid `variable` option passed into `_.template`" , g = "__lodash_hash_undefined__" , y = 500 , C = "__lodash_placeholder__" , A = 1 , O = 2 , N = 4 , L = 1 , U = 2 , W = 1 , q = 2 , ee = 4 , F = 8 , ne = 16 , ie = 32 , oe = 64 , K = 128 , Re = 256 , Ce = 512 , Ee = 30 , ye = "..." , be = 800 , lt = 16 , ft = 1 , bt = 2 , z = 3 , gt = 1 / 0 , tt = 9007199254740991 , Ct = 17976931348623157e292 , kt = 0 / 0 , Le = 4294967295 , at = Le - 1 , _n = Le >>> 1 , Tt = [ [ "ary" , K ] , [ "bind" , W ] , [ "bindKey" , q ] , [ "curry" , F ] , [ "curryRight" , ne ] , [ "flip" , Ce ] , [ "partial" , ie ] , [ "partialRight" , oe ] , [ "rearg" , Re ] ] , Rn = "[object Arguments]" , Ye = "[object Array]" , Mt = "[object AsyncFunction]" , he = "[object Boolean]" , ls = "[object Date]" , bo = "[object DOMException]" , ao = "[object Error]" , xo = "[object Function]" , Yo = "[object GeneratorFunction]" , St = "[object Map]" , Xt = "[object Number]" , xt = "[object Null]" , Pe = "[object Object]" , Wt = "[object Promise]" , mn = "[object Proxy]" , yt = "[object RegExp]" , Kt = "[object Set]" , pn = "[object String]" , ns = "[object Symbol]" , Xn = "[object Undefined]" , ds = "[object WeakMap]" , Dr = "[object WeakSet]" , Rs = "[object ArrayBuffer]" , Js = "[object DataView]" , Zs = "[object Float32Array]" , ba = "[object Float64Array]" , ar = "[object Int8Array]" , Ns = "[object Int16Array]" , Zr = "[object Int32Array]" , No = "[object Uint8Array]" , Mo = "[object Uint8ClampedArray]" , Or = "[object Uint16Array]" , Bs = "[object Uint32Array]" , ea = /\b__p \+= '';/g , gs = /\b(__p \+=) '' \+/g , va = /(__e\(.*?\)|\b__t\)) \+\n'';/g , an = /&(?:amp|lt|gt|quot|#39);/g , ps = /[&<>"']/g , Ii = RegExp ( an . source ) , $e = RegExp ( ps . source ) , Xe = /<%-([\s\S]+?)%>/g , At = /<%([\s\S]+?)%>/g , Ut = /<%=([\s\S]+?)%>/g , Un = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/ , lo = /^\w*$/ , mo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , cn = /[\\^$.*+?()[\]{}|]/g , es = RegExp ( cn . source ) , wo = /^\s+/ , cs = /\s/ , wr = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , Ir = /\{\n\/\* \[wrapped with (.+)\] \*/ , Vs = /,? & / , Wr = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , Bi = /[()=,{}\[\]\/\s]/ , Ba = /\\(\\)?/g , hi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , qe = /\w*$/ , Ze = /^[-+]0x[0-9a-f]+$/i , It = /^0b[01]+$/i , jt = /^\[object .+?Constructor\]$/ , co = /^0o[0-7]+$/i , Bo = /^(?:0|[1-9]\d*)$/ , qo = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , Yr = /($^)/ , st = /['\n\r\u2028\u2029\\]/g , Uo = "\\ud800-\\udfff" , Di = "\\u0300-\\u036f" , ta = "\\ufe20-\\ufe2f" , la = "\\u20d0-\\u20ff" , ur = Di + ta + la , Dc = "\\u2700-\\u27bf" , gc = "a-z\\xdf-\\xf6\\xf8-\\xff" , Xa = "\\xac\\xb1\\xd7\\xf7" , ca = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , Qs = "\\u2000-\\u206f" , kr = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000" , qi = "A-Z\\xc0-\\xd6\\xd8-\\xde" , fl = "\\ufe0e\\ufe0f" , pc = Xa + ca + Qs + kr , Zc = "['\u2019]" , pu = "[" + Uo + "]" , gr = "[" + pc + "]" , Ja = "[" + ur + "]" , bu = "\\d+" , qc = "[" + Dc + "]" , Vl = "[" + gc + "]" , xa = "[^" + Uo + pc + bu + Dc + gc + qi + "]" , Er = "\\ud83c[\\udffb-\\udfff]" , Om = "(?:" + Ja + "|" + Er + ")" , pf = "[^" + Uo + "]" , _r = "(?:\\ud83c[\\udde6-\\uddff]){2}" , La = "[\\ud800-\\udbff][\\udc00-\\udfff]" , na = "[" + qi + "]" , Gi = "\\u200d" , vu = "(?:" + Vl + "|" + xa + ")" , Oc = "(?:" + na + "|" + xa + ")" , Fa = "(?:" + Zc + "(?:d|ll|m|re|s|t|ve))?" , Mc = "(?:" + Zc + "(?:D|LL|M|RE|S|T|VE))?" , bc = Om + "?" , md = "[" + fl + "]?" , Lf = "(?:" + Gi + "(?:" + [ pf , _r , La ] . join ( "|" ) + ")" + md + bc + ")*" , yu = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , Wl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , Rc = md + bc + Lf , bf = "(?:" + [ qc , _r , La ] . join ( "|" ) + ")" + Rc , Gc = "(?:" + [ pf + Ja + "?" , Ja , _r , La , pu ] . join ( "|" ) + ")" , gd = RegExp ( Zc , "g" ) , Ae = RegExp ( Ja , "g" ) , Qe = RegExp ( Er + "(?=" + Er + ")|" + Gc + Rc , "g" ) , ht = RegExp ( [ na + "?" + Vl + "+" + Fa + "(?=" + [ gr , na , "$" ] . join ( "|" ) + ")" , Oc + "+" + Mc + "(?=" + [ gr , na + vu , "$" ] . join ( "|" ) + ")" , na + "?" + vu + "+" + Fa , na + "+" + Mc , Wl , yu , bu , bf ] . join ( "|" ) , "g" ) , Pt = RegExp ( "[" + Gi + Uo + ur + fl + "]" ) , bn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , Ro = [ "Array" , "Buffer" , "DataView" , "Date" , "Error" , "Float32Array" , "Float64Array" , "Function" , "Int8Array" , "Int16Array" , "Int32Array" , "Map" , "Math" , "Object" , "Promise" , "RegExp" , "Set" , "String" , "Symbol" , "TypeError" , "Uint8Array" , "Uint8ClampedArray" , "Uint16Array" , "Uint32Array" , "WeakMap" , "_" , "clearTimeout" , "isFinite" , "parseInt" , "setTimeo
/* [wrapped with `+T+`] */
`)}function y2(S){return vr(S)||nm(S)||!!(vd&&S&&S[vd])}function Jh(S,T){var H=typeof S;return T=T==null?tt:T,!!T&&(H==" number "||H!=" symbol "&&Bo.test(S))&&S>-1&&S%1==0&&S<T}function Yu(S,T,H){if(!gl(H))return!1;var ae=typeof T;return(ae==" number "?au(H)&&Jh(T,H.length):ae==" string "&&T in H)?Fr(H[T],S):!1}function ch(S,T){if(vr(S))return!1;var H=typeof S;return H==" number "||H==" symbol "||H==" boolean "||S==null||nl(S)?!0:lo.test(S)||!Un.test(S)||T!=null&&S in gi(T)}function Gg(S){var T=typeof S;return T==" string "||T==" number "||T==" symbol "||T==" boolean "?S!==" _ _proto _ _ ":S===null}function uh(S){var T=Dd(S),H=xe[T];if(typeof H!=" function "||!(T in ci.prototype))return!1;if(S===H)return!0;var ae=Td(H);return!!ae&&S===ae[0]}function rb(S){return!!ic&&ic in S}var Tf=Aa?om:rm;function Kg(S){var T=S&&S.constructor,H=typeof T==" function "&&T.prototype||tl;return S===H}function w2(S){return S===S&&!gl(S)}function $p(S,T){return function(H){return H==null?!1:H[S]===T&&(T!==t||S in gi(H))}}function Kf(S){var T=yb(S,function(ae){return H.size===y&&H.clear(),ae}),H=T.cache;return T}function _2(S,T){var H=S[1],ae=T[1],Se=H|ae,Ve=Se<(W|q|K),ut=ae==K&&H==F||ae==K&&H==Re&&S[7].length<=T[8]||ae==(K|Re)&&T[7].length<=T[8]&&H==F;if(!(Ve||ut))return S;ae&W&&(S[2]=T[2],Se|=H&W?0:ee);var _t=T[3];if(_t){var zt=S[3];S[3]=zt?Wg(zt,_t,T[4]):_t,S[4]=zt?Nc(S[3],C):T[4]}return _t=T[5],_t&&(zt=S[5],S[5]=zt?qm(zt,_t,T[6]):_t,S[6]=zt?Nc(S[5],C):T[6]),_t=T[7],_t&&(S[7]=_t),ae&K&&(S[8]=S[8]==null?T[8]:Cr(S[8],T[8])),S[9]==null&&(S[9]=T[9]),S[0]=T[0],S[1]=Se,S}function fh(S){var T=[];if(S!=null)for(var H in gi(S))T.push(H);return T}function Tv(S){return Wh.call(S)}function z_(S,T,H){return T=uo(T===t?S.length-1:T,0),function(){for(var ae=arguments,Se=-1,Ve=uo(ae.length-T,0),ut=nn(Ve);++Se<Ve;)ut[Se]=ae[T+Se];Se=-1;for(var _t=nn(T+1);++Se<T;)_t[Se]=ae[Se];return _t[T]=H(ut),ni(S,this,_t)}}function C2(S,T){return T.length<2?S:Ll(S,Os(T,0,-1))}function Yg(S,T){for(var H=S.length,ae=Cr(T.length,H),Se=nu(S);ae--;){var Ve=T[ae];S[ae]=Jh(Ve,H)?Se[Ve]:t}return S}function Df(S,T){if(!(T===" constructor "&&typeof S[T]==" function ")&&T!=" _ _proto _ _ ")return S[T]}var su=ib(eu),Xg=le||function(S,T){return de.setTimeout(S,T)},S2=ib(Fp);function V_(S,T,H){var ae=T+" ";return S2(S,Mk(ae,Qh(qg(ae),H)))}function ib(S){var T=0,H=0;return function(){var ae=Zl(),Se=lt-(ae-H);if(H=ae,Se>0){if(++T>=be)return arguments[0]}else T=0;return S.apply(t,arguments)}}function Lc(S,T){var H=-1,ae=S.length,Se=ae-1;for(T=T===t?ae:T;++H<T;){var Ve=Ef(H,Se),ut=S[Ve];S[Ve]=S[H],S[H]=ut}return S.length=T,S}var ab=Kf(function(S){var T=[];return S.charCodeAt(0)===46&&T.push(" "),S.replace(mo,function(H,ae,Se,Ve){T.push(Se?Ve.replace(Ba," $1 "):ae||H)}),T});function Xu(S){if(typeof S==" string "||nl(S))return S;var T=S+" ";return T==" 0 "&&1/S==-gt?" - 0 ":T}function Jg(S){if(S!=null){try{return Uu.call(S)}catch{}try{return S+" "}catch{}}return" "}function Qh(S,T){return Cs(Tt,function(H){var ae=" _ . "+H[0];T&H[1]&&!Oi(S,ae)&&S.push(ae)}),S.sort()}function Dv(S){if(S instanceof ci)return S.clone();var T=new ku(S.__wrapped__,S.__chain__);return T.__actions__=nu(S.__actions__),T.__index__=S.__index__,T.__values__=S.__values__,T}function W_(S,T,H){(H?Yu(S,T,H):T===t)?T=1:T=uo(jr(T),0);var ae=S==null?0:S.length;if(!ae||T<1)return[];for(var Se=0,Ve=0,ut=nn(_e(ae/T));Se<ae;)ut[Ve++]=Os(S,Se,Se+=T);return ut}function zp(S){for(var T=-1,H=S==null?0:S.length,ae=0,Se=[];++T<H;){var Ve=S[T];Ve&&(Se[ae++]=Ve)}return Se}function k2(){var S=arguments.length;if(!S)return[];for(var T=nn(S-1),H=arguments[0],ae=S;ae--;)T[ae-1]=arguments[ae];return Hf(vr(H)?nu(H):[H],Va(T,1))}var Qg=lr(function(S,T){return xl(S)?za(S,Va(T,1,xl,!0)):[]}),lb=lr(function(S,T){var H=dh(T);return xl(H)&&(H=t),xl(S)?za(S,Va(T,1,xl,!0),Fs(H,2)):[]}),K1=lr(function(S,T){var H=dh(T);return xl(H)&&(H=t),xl(S)?za(S,Va(T,1,xl,!0),t,H):[]});function E2(S,T,H){var ae=S==null?0:S.length;return ae?(T=H||T===t?1:jr(T),Os(S,T<0?0:T,ae)):[]}function x2(S,T,H){var ae=S==null?0:S.length;return ae?(T=H||T===t?1:jr(T),T=ae-T,Os(S,0,T<0?0:T)):[]}function U_(S,T){return S&&S.length?qh(
`;S.replace(Lo,function(Hs,fi,yi,cu,Mu,Mf){return yi||(yi=cu),zn+=S.slice(gn,Mf).replace(st,Il),fi&&(_t=!0,zn+=`' +
__e(`+fi+`) +
'`),Mu&&(zt=!0,zn+=`';
`+Mu+`;
__p += '`),yi&&(zn+=`' +
((__t = (`+yi+`)) == null ? '' : __t) +
'`),gn=Mf+Hs.length,Hs}),zn+=`';
`;var Ps=oi.call(T," variable ")&&T.variable;if(!Ps)zn=`with (obj) {
`+zn+`
}
`;else if(Bi.test(Ps))throw new er(m);zn=(zt?zn.replace(ea," "):zn).replace(gs," $1 ").replace(va," $1 ; "),zn=" function ( "+(Ps||" obj ")+`) {
`+(Ps?" ":`obj || (obj = {});
`)+" var _ _t , _ _p = '' "+(_t?" , _ _e = _ . escape ":" ")+(zt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+zn+`return __p
}`;var Hr=sw(function(){return Ur(Ve,hs+" return "+zn).apply(t,ut)});if(Hr.source=zn,Z2(Hr))throw Hr;return Hr}function nw(S){return sa(S).toLowerCase()}function ow(S){return sa(S).toUpperCase()}function iE(S,T,H){if(S=sa(S),S&&(H||T===t))return Pl(S);if(!S||!(T=Zi(T)))return S;var ae=Ul(S),Se=Ul(T),Ve=rc(ae,Se),ut=Vf(ae,Se)+1;return sh(ae,Ve,ut).join(" ")}function aE(S,T,H){if(S=sa(S),S&&(H||T===t))return S.slice(0,Rg(S)+1);if(!S||!(T=Zi(T)))return S;var ae=Ul(S),Se=Vf(ae,Ul(T))+1;return sh(ae,0,Se).join(" ")}function Yv(S,T,H){if(S=sa(S),S&&(H||T===t))return S.replace(wo," ");if(!S||!(T=Zi(T)))return S;var ae=Ul(S),Se=rc(ae,Ul(T));return sh(ae,Se).join(" ")}function TC(S,T){var H=Ee,ae=ye;if(gl(T)){var Se=" separator "in T?T.separator:Se;H=" length "in T?jr(T.length):H,ae=" omission "in T?Zi(T.omission):ae}S=sa(S);var Ve=S.length;if(el(S)){var ut=Ul(S);Ve=ut.length}if(H>=Ve)return S;var _t=H-Wf(ae);if(_t<1)return ae;var zt=ut?sh(ut,0,_t).join(" "):S.slice(0,_t);if(Se===t)return zt+ae;if(ut&&(_t+=zt.length-_t),of(Se)){if(S.slice(_t).search(Se)){var gn,Hn=zt;for(Se.global||(Se=qd(Se.source,sa(qe.exec(Se))+" g ")),Se.lastIndex=0;gn=Se.exec(Hn);)var zn=gn.index;zt=zt.slice(0,zn===t?_t:zn)}}else if(S.indexOf(Zi(Se),_t)!=_t){var Lo=zt.lastIndexOf(Se);Lo>-1&&(zt=zt.slice(0,Lo))}return zt+ae}function Xv(S){return S=sa(S),S&&Ii.test(S)?S.replace(an,Ge):S}var Eb=ih(function(S,T,H){return S+(H?" ":" ")+T.toUpperCase()}),l0=Cv(" toUpperCase ");function Jv(S,T,H){return S=sa(S),T=H?t:T,T===t?wf(S)?Ng(S):Ud(S):S.match(T)||[]}var sw=lr(function(S,T){try{return ni(S,t,T)}catch(H){return Z2(H)?H:new er(H)}}),DC=Ad(function(S,T){return Cs(T,function(H){H=Xu(H),ui(S,H,$2(S[H],S))}),S});function rw(S){var T=S==null?0:S.length,H=Fs();return S=T?ua(S,function(ae){if(typeof ae[1]!=" function ")throw new ya(f);return[H(ae[0]),ae[1]]}):[],lr(function(ae){for(var Se=-1;++Se<T;){var Ve=S[Se];if(ni(Ve[0],this,ae))return ni(Ve[1],this,ae)}})}function lE(S){return Sd(xs(S,A))}function Qv(S){return function(){return S}}function xb(S,T){return S==null||S!==S?T:S}var cE=kv(),ey=kv(!0);function rf(S){return S}function ty(S){return $(typeof S==" function "?S:xs(S,A))}function OC(S){return Ft(xs(S,A))}function ny(S,T){return Cn(S,xs(T,A))}var uE=lr(function(S,T){return function(H){return ac(H,S,T)}}),Ab=lr(function(S,T){return function(H){return ac(S,H,T)}});function iw(S,T,H){var ae=Jl(T),Se=Lp(T,ae);H==null&&!(gl(T)&&(Se.length||!ae.length))&&(H=T,T=S,S=this,Se=Lp(T,Jl(T)));var Ve=!(gl(H)&&" chain "in H)||!!H.chain,ut=om(S);return Cs(Se,function(_t){var zt=T[_t];S[_t]=zt,ut&&(S.prototype[_t]=function(){var gn=this.__chain__;if(Ve||gn){var Hn=S(this.__wrapped__),zn=Hn.__actions__=nu(this.__actions__);return zn.push({func:zt,args:arguments,thisArg:S}),Hn.__chain__=gn,Hn}return zt.apply(S,Hf([this.value()],arguments))})}),S}function fE(){return de._===this&&(de._=Gd),this}function oy(){}function pl(S){return S=jr(S),lr(function(T){return Jo(T,S)})}var dE=q1(ua),c0=q1(Ei),hE=q1(zu);function u0(S){return ch(S)?Qa(Xu(S)):Bc(S)}function aw(S){return function(T){return S==null?t:Ll(S,T)}}var mE=Ev(),gE=Ev(!0);function Tb(){return[]}function rm(){return!1}function f0(){return{}}function lu(){return" "}function Xp(){return!0}function MC(S,T){if(S=jr(S),S<1||S>tt)return[];var H=Le,ae=Cr(S,Le);T=Fs(T),S-=Le;for(var Se=xr(ae,T);++H<S;)T(H);return Se}function RC(S){return vr(S)?ua(S,Xu):nl(S)?[S]:nu(ab(sa(S)))}function lw(S){var T=++Cu;return sa(S)+T}var cw=ah(function(S,T){return S+T},0),uw=G1(" ceil "),pE=ah(function(S,T){return S/T},1),Db=G1(" floor ");function sy(S){return S&&S.length?Gr(S,rf,th):t}function ip(S,T){return S&&S.length?Gr(S,Fs(T,2),th):t}function Ob(S){return _l(S,rf)}function yh(S,T){return _l(S,Fs(T,2))}function bE(S){return S&&S.length?Gr(S,rf,Te):t}function im(S,T){return S&&S.length?Gr(S,Fs(T,2),Te):t}var Rd=ah(function(S,T){return S*T},1),d0=G1(" round "),fw=ah(function(S,T){return S-T},0);function h0(S){return S&&S.length?yf(S,rf):0}function cg(S,T){return S&&S.length?yf(S,Fs(T,2)):0}return xe.after=tm,xe.ary=Vt,xe.assign=Uk,xe.assignIn=Vv,xe.assignInWith=Wv,xe.assignW
`),function(y){if(m=y.indexOf(" : "),u=s.trim(y.substr(0,m)).toLowerCase(),f=s.trim(y.substr(m+1)),u){if(a[u]&&e.indexOf(u)>=0)return;u===" set - cookie "?a[u]=(a[u]?a[u]:[]).concat([f]):a[u]=a[u]?a[u]+" , "+f:f}}),a},jee}var Zee,rie;function z0e(){if(rie)return Zee;rie=1;var s=Mp;return Zee=s.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement(" a "),a;function u(f){var m=f;return t&&(r.setAttribute(" href ",m),m=r.href),r.setAttribute(" href ",m),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/," "):" ",host:r.host,search:r.search?r.search.replace(/^\?/," "):" ",hash:r.hash?r.hash.replace(/^#/," "):" ",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)===" / "?r.pathname:" / "+r.pathname}}return a=u(window.location.href),function(m){var g=s.isString(m)?u(m):m;return g.protocol===a.protocol&&g.host===a.host}}():function(){return function(){return!0}}(),Zee}var qee,iie;function BV(){if(iie)return qee;iie=1;function s(e){this.message=e}return s.prototype.toString=function(){return" Cancel "+(this.message?" : "+this.message:" ")},s.prototype.__CANCEL__=!0,qee=s,qee}var Gee,aie;function lie(){if(aie)return Gee;aie=1;var s=Mp,e=I0e(),t=B0e(),r=Mde,a=H0e(),u=$0e(),f=z0e(),m=Nde(),g=LV(),y=BV();return Gee=function(A){return new Promise(function(N,L){var U=A.data,W=A.headers,q=A.responseType,ee;function F(){A.cancelToken&&A.cancelToken.unsubscribe(ee),A.signal&&A.signal.removeEventListener(" abort ",ee)}s.isFormData(U)&&delete W[" Content - Type "];var ne=new XMLHttpRequest;if(A.auth){var ie=A.auth.username||" ",oe=A.auth.password?unescape(encodeURIComponent(A.auth.password)):" ";W.Authorization=" Basic "+btoa(ie+" : "+oe)}var K=a(A.baseURL,A.url);ne.open(A.method.toUpperCase(),r(K,A.params,A.paramsSerializer),!0),ne.timeout=A.timeout;function Re(){if(!!ne){var Ee=" getAllResponseHeaders "in ne?u(ne.getAllResponseHeaders()):null,ye=!q||q===" text "||q===" json "?ne.responseText:ne.response,be={data:ye,status:ne.status,statusText:ne.statusText,headers:Ee,config:A,request:ne};e(function(ft){N(ft),F()},function(ft){L(ft),F()},be),ne=null}}if(" onloadend "in ne?ne.onloadend=Re:ne.onreadystatechange=function(){!ne||ne.readyState!==4||ne.status===0&&!(ne.responseURL&&ne.responseURL.indexOf(" file : ")===0)||setTimeout(Re)},ne.onabort=function(){!ne||(L(m(" Request aborted ",A," ECONNABORTED ",ne)),ne=null)},ne.onerror=function(){L(m(" Network Error ",A,null,ne)),ne=null},ne.ontimeout=function(){var ye=A.timeout?" timeout of "+A.timeout+" ms exceeded ":" timeout exceeded ",be=A.transitional||g.transitional;A.timeoutErrorMessage&&(ye=A.timeoutErrorMessage),L(m(ye,A,be.clarifyTimeoutError?" ETIMEDOUT ":" ECONNABORTED ",ne)),ne=null},s.isStandardBrowserEnv()){var Ce=(A.withCredentials||f(K))&&A.xsrfCookieName?t.read(A.xsrfCookieName):void 0;Ce&&(W[A.xsrfHeaderName]=Ce)}" setRequestHeader "in ne&&s.forEach(W,function(ye,be){typeof U>" u "&&be.toLowerCase()===" content - type "?delete W[be]:ne.setRequestHeader(be,ye)}),s.isUndefined(A.withCredentials)||(ne.withCredentials=!!A.withCredentials),q&&q!==" json "&&(ne.responseType=A.responseType),typeof A.onDownloadProgress==" function "&&ne.addEventListener(" progress ",A.onDownloadProgress),typeof A.onUploadProgress==" function "&&ne.upload&&ne.upload.addEventListener(" progress ",A.onUploadProgress),(A.cancelToken||A.signal)&&(ee=function(Ee){!ne||(L(!Ee||Ee&&Ee.type?new y(" canceled "):Ee),ne.abort(),ne=null)},A.cancelToken&&A.cancelToken.subscribe(ee),A.signal&&(A.signal.aborted?ee():A.signal.addEventListener(" abort ",ee))),U||(U=null),ne.send(U)})},Gee}var Kee,cie;function LV(){if(cie)return Kee;cie=1;var s=Mp,e=P0e,t=Rde,r={" Content - Type ":" application / x - www - form - urlencoded "};function a(g,y){!s.isUndefined(g)&&s.isUndefined(g[" Content - Type "])&&(g[" Content - Type "]=y)}function u(){var g;return(typeof XMLHttpRequest<" u "||typeof process<" u "&&Object.prototype.toString.call(process)===" [ object process ] ")&&(g=lie()),g}function f(g,y,C){if(s.isString(g))try{return(y||JSON.parse)(g),s.trim(g)}catch(A){if(A.name!==" SyntaxError ")throw A}return(C||JSON.stringify)(g)}var m={transitional:{silentJSONParsing:!0,f
`;for(let W=0;W<=1;W+=g){const q=e+(t-e)*u(W);y+=W*100+`%{${f(q,1-q)}}
`}const C=y+`100% {${f(t,1-t)}}
}`,A=`__svelte_${hbe(C)}_${m}`,O=Xde(s),{stylesheet:N,rules:L}=qz.get(O)||mbe(O,s);L[A]||(L[A]=!0,N.insertRule(`@keyframes ${A} ${C}`,N.cssRules.length));const U=s.style.animation||" ";return s.style.animation=`${U?`${U}, `:" "}${A} ${r}ms linear ${a}ms 1 both`,Gz+=1,A}function ehe(s,e){const t=(s.style.animation||" ").split(" , "),r=t.filter(e?u=>u.indexOf(e)<0:u=>u.indexOf(" _ _svelte ")===-1),a=t.length-r.length;a&&(s.style.animation=r.join(" , "),Gz-=a,Gz||gbe())}function gbe(){koe(()=>{Gz||(qz.forEach(s=>{const{ownerNode:e}=s.stylesheet;e&&Fe(e)}),qz.clear())})}function the(s,e,t,r){if(!e)return xn;const a=s.getBoundingClientRect();if(e.left===a.left&&e.right===a.right&&e.top===a.top&&e.bottom===a.bottom)return xn;const{delay:u=0,duration:f=300,easing:m=$de,start:g=Gde()+u,end:y=g+f,tick:C=xn,css:A}=t(s,{from:e,to:a},r);let O=!0,N=!1,L;function U(){A&&(L=fne(s,0,1,f,u,m,A)),u||(N=!0)}function W(){A&&ehe(s,L),O=!1}return Yde(q=>{if(!N&&q>=g&&(N=!0),N&&q>=y&&(C(1,0),W()),!O)return!1;if(N){const ee=q-g,F=0+1*m(ee/f);C(F,1-F)}return!0}),U(),C(0,1),W}function nhe(s){const e=getComputedStyle(s);if(e.position!==" absolute "&&e.position!==" fixed "){const{width:t,height:r}=e,a=s.getBoundingClientRect();s.style.position=" absolute ",s.style.width=t,s.style.height=r,pbe(s,a)}}function pbe(s,e){const t=s.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const r=getComputedStyle(s),a=r.transform===" none "?" ":r.transform;s.style.transform=`${a} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}let PP;function _P(s){PP=s}function bO(){if(!PP)throw new Error(" Function called outside component initialization ");return PP}function mv(s){bO().$$.on_mount.push(s)}function ohe(s){bO().$$.after_update.push(s)}function she(s){bO().$$.on_destroy.push(s)}function I1(){const s=bO();return(e,t,{cancelable:r=!1}={})=>{const a=s.$$.callbacks[e];if(a){const u=Qde(e,t,{cancelable:r});return a.slice().forEach(f=>{f.call(s,u)}),!u.defaultPrevented}return!0}}function Kz(s,e){return bO().$$.context.set(s,e),e}function ga(s){return bO().$$.context.get(s)}function kz(s,e){const t=s.$$.callbacks[e.type];t&&t.slice().forEach(r=>r.call(this,e))}const PD=[],as=[];let qD=[];const dne=[],bbe=Promise.resolve();let hne=!1;function vbe(){hne||(hne=!0,bbe.then(rhe))}function hk(s){qD.push(s)}function Pr(s){dne.push(s)}const ote=new Set;let TD=0;function rhe(){if(TD!==0)return;const s=PP;do{try{for(;TD<PD.length;){const e=PD[TD];TD++,_P(e),ybe(e.$$)}}catch(e){throw PD.length=0,TD=0,e}for(_P(null),PD.length=0,TD=0;as.length;)as.pop()();for(let e=0;e<qD.length;e+=1){const t=qD[e];ote.has(t)||(ote.add(t),t())}qD.length=0}while(PD.length);for(;dne.length;)dne.pop()();hne=!1,ote.clear(),_P(s)}function ybe(s){if(s.fragment!==null){s.update(),pa(s.before_update);const e=s.dirty;s.dirty=[-1],s.fragment&&s.fragment.p(s.ctx,e),s.after_update.forEach(hk)}}function wbe(s){const e=[],t=[];qD.forEach(r=>s.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),qD=e}let oP;function _be(){return oP||(oP=Promise.resolve(),oP.then(()=>{oP=null})),oP}function ste(s,e,t){s.dispatchEvent(Qde(`${e?" intro ":" outro "}${t}`))}const Ez=new Set;let E_;function To(){E_={r:0,c:[],p:E_}}function Do(){E_.r||pa(E_.c),E_=E_.p}function Me(s,e){s&&s.i&&(Ez.delete(s),s.i(e))}function We(s,e,t,r){if(s&&s.o){if(Ez.has(s))return;Ez.add(s),E_.c.push(()=>{Ez.delete(s),r&&(t&&s.d(1),r())}),s.o(e)}else r&&r()}const Cbe={duration:0};function Yz(s,e,t,r){const a={direction:" both "};let u=e(s,t,a),f=r?0:1,m=null,g=null,y=null;function C(){y&&ehe(s,y)}function A(N,L){const U=N.b-f;return L*=Math.abs(U),{a:f,b:N.b,d:U,duration:L,start:N.start,end:N.start+L,group:N.group}}function O(N){const{delay:L=0,duration:U=300,easing:W=$de,tick:q=xn,css:ee}=u||Cbe,F={start:Gde()+L,b:N};N||(F.group=E_,E_.r+=1),m||g?g=F:(ee&&(C(),y=fne(s,f,N,U,L,W,ee)),N&&q(0,1),m=A(F,U),hk(()=>ste(s,N," start ")),Yde(ne=>{if(g&&ne>g.start&&(m=A(g,U),g=null,ste(s,m.b," start "),ee&&(C(),y=fne(s,f,m.b,m.duration,0,W,u.css))),m){if(ne>=m.end)q(f=m.b,1-f),ste(s,m.b," end "),g||(m.b?C():--m.group.r||pa(m.group.c)),m=null;else if(ne>=m.start){const ie=ne-m.sta
transform: ${y} translate(${(1-U)*A}${O}, ${(1-U)*N}${L});
opacity: ${g-C*W}`}}function Eie(s){let e,t,r,a;return{c(){e=fe(" div "),t=tn(s[1]),Z(e," class "," lx - alert text - white bg - success border - 1 border rounded px - 3 py - 0 text - center svelte - 190 ow44 "),Z(e," role "," alert ")},m(u,f){He(u,e,f),Q(e,t),a=!0},p(u,f){(!a||f&2)&&Qn(t,u[1])},i(u){a||(hk(()=>{!a||(r||(r=Yz(e,Xz,{duration:500},!0)),r.run(1))}),a=!0)},o(u){r||(r=Yz(e,Xz,{duration:500},!1)),r.run(0),a=!1},d(u){u&&Fe(e),u&&r&&r.end()}}}function Mbe(s){let e,t,r=s[0]&&Eie(s);return{c(){r&&r.c(),e=zs()},m(a,u){r&&r.m(a,u),He(a,e,u),t=!0},p(a,[u]){a[0]?r?(r.p(a,u),u&1&&Me(r,1)):(r=Eie(a),r.c(),Me(r,1),r.m(e.parentNode,e)):r&&(To(),We(r,1,1,()=>{r=null}),Do())},i(a){t||(Me(r),t=!0)},o(a){We(r),t=!1},d(a){r&&r.d(a),a&&Fe(e)}}}function Rbe(s,e,t){let r,a;function u(f=" Saved "){t(1,r=f),t(0,a=!0),setTimeout(function(){t(0,a=!1)},2e3)}return t(1,r=" Saved "),t(0,a=!1),[a,r,u]}class xoe extends Eo{constructor(e){super(),ko(this,e,Rbe,Mbe,So,{show:2})}get show(){return this.$$.ctx[2]}}function Nbe(s){let e,t,r,a,u,f,m,g,y,C,A,O,N,L,U={};return e=new xoe({props:U}),s[3](e),A=new oI({props:{label:" Login "}}),{c(){rn(e.$$.fragment),t=Je(),r=fe(" div "),a=fe(" form "),u=fe(" div "),f=fe(" label "),f.textContent=" Email address ",m=Je(),g=fe(" input "),y=Je(),C=fe(" div "),rn(A.$$.fragment),Z(f," for "," emailaddress "),Z(f," class "," form - label "),Z(g," type "," email "),Z(g," class "," form - control "),Z(g," id "," emailaddress "),Z(u," class "," mb - 3 "),Z(C," class "," text - center mt - 5 d - block "),Z(r," class "," wrapper - tiny ")},m(W,q){on(e,W,q),He(W,t,q),He(W,r,q),Q(r,a),Q(a,u),Q(u,f),Q(u,m),Q(u,g),Ar(g,s[0]),Q(a,y),Q(a,C),on(A,C,null),O=!0,N||(L=[Fn(g," input ",s[4]),Fn(a," submit ",s[2])],N=!0)},p(W,[q]){const ee={};e.$set(ee),q&1&&g.value!==W[0]&&Ar(g,W[0])},i(W){O||(Me(e.$$.fragment,W),Me(A.$$.fragment,W),O=!0)},o(W){We(e.$$.fragment,W),We(A.$$.fragment,W),O=!1},d(W){s[3](null),sn(e,W),W&&Fe(t),W&&Fe(r),sn(A),N=!1,pa(L)}}}function Pbe(s,e,t){const r=ga(" channel ");let a=" ",u;function f(y){y.preventDefault(),axios.post(r.lucentUrl+" / login ",{email:a}).then(C=>{}).catch(C=>{})}function m(y){as[y?" unshift ":" push "](()=>{u=y,t(1,u)})}function g(){a=this.value,t(0,a)}return[a,u,f,m,g]}class Ibe extends Eo{constructor(e){super(),ko(this,e,Pbe,Nbe,So,{})}}function Bbe(s){let e,t,r,a,u,f,m,g,y,C,A,O,N,L,U={};return e=new xoe({props:U}),s[4](e),A=new oI({props:{label:" Enter "}}),{c(){rn(e.$$.fragment),t=Je(),r=fe(" div "),a=fe(" form "),u=fe(" div "),f=fe(" h3 "),m=tn(" Login as "),g=tn(s[0]),y=Je(),C=fe(" div "),rn(A.$$.fragment),Z(u," class "," mb - 3 text - center "),Z(C," class "," text - center mt - 5 d - block "),Z(r," class "," wrapper - tiny ")},m(W,q){on(e,W,q),He(W,t,q),He(W,r,q),Q(r,a),Q(a,u),Q(u,f),Q(f,m),Q(f,g),Q(a,y),Q(a,C),on(A,C,null),O=!0,N||(L=Fn(a," submit ",s[2]),N=!0)},p(W,[q]){const ee={};e.$set(ee),(!O||q&1)&&Qn(g,W[0])},i(W){O||(Me(e.$$.fragment,W),Me(A.$$.fragment,W),O=!0)},o(W){We(e.$$.fragment,W),We(A.$$.fragment,W),O=!1},d(W){s[4](null),sn(e,W),W&&Fe(t),W&&Fe(r),sn(A),N=!1,L()}}}function Lbe(s,e,t){const r=ga(" channel ");let{email:a}=e,{token:u}=e,f;function m(y){y.preventDefault(),axios.post(r.lucentUrl+" / verify ",{email:a,token:u}).then(C=>{window.location=r.lucentUrl}).catch(C=>{})}function g(y){as[y?" unshift ":" push "](()=>{f=y,t(1,f)})}return s.$$set=y=>{" email "in y&&t(0,a=y.email)," token "in y&&t(3,u=y.token)},[a,f,m,u,g]}class Fbe extends Eo{constructor(e){super(),ko(this,e,Lbe,Bbe,So,{email:0,token:3})}}function Hbe(s){let e,t,r;return{c(){e=fe(" div "),t=fe(" div "),r=tn(s[2]),Z(t," class "," avatar _ _letters "),Z(e," class "," avatar "),Z(e," title ",s[0]),is(e," background - color ",s[3][s[4]]),is(e," height ",s[1]+" px "),is(e," width ",s[1]+" px "),is(e," font - size ",s[1]/2+" px ")},m(a,u){He(a,e,u),Q(e,t),Q(t,r)},p(a,[u]){u&4&&Qn(r,a[2]),u&1&&Z(e," title ",a[0]),u&2&&is(e," height ",a[1]+" px "),u&2&&is(e," width ",a[1]+" px "),u&2&&is(e," font - size ",a[1]/2+" px ")},i:xn,o:xn,d(a){a&&Fe(e)}}}function $be(s,e,t){let{name:r}=e,{side:a=" 48 "}=e;const u=[" # 00 AA55 "," # 009 FD4 "," # B381B3 "," # 939393 "," # E3BC00 "," # D47500 "," # DC2A2A "," # 3 ede91 "," # 377 dd4 "," # 0256 b0 "," # 053 d82 "," # 3 d026e "," # b378e3 "," # c4065c "," # 543208 "," # d97811 "," # 0 c6b40 "];let f=" ";r.split(" ").leng
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var ive=Object.prototype.toString,vO=Array.isArray||function(e){return ive.call(e)===" [ object Array ] "};function Aoe(s){return typeof s==" function "}function ave(s){return vO(s)?" array ":typeof s}function rte(s){return s.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g," \ \ $ & ")}function Iie(s,e){return s!=null&&typeof s==" object "&&e in s}function lve(s,e){return s!=null&&typeof s!=" object "&&s.hasOwnProperty&&s.hasOwnProperty(e)}var cve=RegExp.prototype.test;function uve(s,e){return cve.call(s,e)}var fve=/\S/;function dve(s){return!uve(fve,s)}var hve={" & ":" & amp ; "," < ":" & lt ; "," > ":" & gt ; ",'" ':""","' ":" & # 39 ; "," / ":" & # x2F ; "," ` ":"`","=":"="};function mve(s){return String(s).replace(/[&<>"' ` = \ / ] / g , function ( t ) { return hve [ t ] } ) } var gve = /\s*/ , pve = /\s+/ , Bie = /\s*=/ , bve = /\s*\}/ , vve = /#|\^|\/|>|\{|&|=|!/ ; function yve ( s , e ) { if ( ! s ) return [ ] ; var t = ! 1 , r = [ ] , a = [ ] , u = [ ] , f = ! 1 , m = ! 1 , g = "" , y = 0 ; function C ( ) { if ( f && ! m ) for ( ; u . length ; ) delete a [ u . pop ( ) ] ; else u = [ ] ; f = ! 1 , m = ! 1 } var A , O , N ; function L ( Re ) { if ( typeof Re == "string" && ( Re = Re . split ( pve , 2 ) ) , ! vO ( Re ) || Re . length !== 2 ) throw new Error ( "Invalid tags: " + Re ) ; A = new RegExp ( rte ( Re [ 0 ] ) + "\\s*" ) , O = new RegExp ( "\\s*" + rte ( Re [ 1 ] ) ) , N = new RegExp ( "\\s*" + rte ( "}" + Re [ 1 ] ) ) } L ( e || Dp . tags ) ; for ( var U = new sI ( s ) , W , q , ee , F , ne , ie ; ! U . eos ( ) ; ) { if ( W = U . pos , ee = U . scanUntil ( A ) , ee ) for ( var oe = 0 , K = ee . length ; oe < K ; ++ oe ) F = ee . charAt ( oe ) , dve ( F ) ? ( u . push ( a . length ) , g += F ) : ( m = ! 0 , t = ! 0 , g += " " ) , a . push ( [ "text" , F , W , W + 1 ] ) , W += 1 , F === `
` && ( C ( ) , g = "" , y = 0 , t = ! 1 ) ; if ( ! U . scan ( A ) ) break ; if ( f = ! 0 , q = U . scan ( vve ) || "name" , U . scan ( gve ) , q === "=" ? ( ee = U . scanUntil ( Bie ) , U . scan ( Bie ) , U . scanUntil ( O ) ) : q === "{" ? ( ee = U . scanUntil ( N ) , U . scan ( bve ) , U . scanUntil ( O ) , q = "&" ) : ee = U . scanUntil ( O ) , ! U . scan ( O ) ) throw new Error ( "Unclosed tag at " + U . pos ) ; if ( q == ">" ? ne = [ q , ee , W , U . pos , g , y , t ] : ne = [ q , ee , W , U . pos ] , y ++ , a . push ( ne ) , q === "#" || q === "^" ) r . push ( ne ) ; else if ( q === "/" ) { if ( ie = r . pop ( ) , ! ie ) throw new Error ( 'Unopened section "' + ee + '" at ' + W ) ; if ( ie [ 1 ] !== ee ) throw new Error ( 'Unclosed section "' + ie [ 1 ] + '" at ' + W ) } else q === "name" || q === "{" || q === "&" ? m = ! 0 : q === "=" && L ( ee ) } if ( C ( ) , ie = r . pop ( ) , ie ) throw new Error ( 'Unclosed section "' + ie [ 1 ] + '" at ' + U . pos ) ; return _ve ( wve ( a ) ) } function wve ( s ) { for ( var e = [ ] , t , r , a = 0 , u = s . length ; a < u ; ++ a ) t = s [ a ] , t && ( t [ 0 ] === "text" && r && r [ 0 ] === "text" ? ( r [ 1 ] += t [ 1 ] , r [ 3 ] = t [ 3 ] ) : ( e . push ( t ) , r = t ) ) ; return e } function _ve ( s ) { for ( var e = [ ] , t = e , r = [ ] , a , u , f = 0 , m = s . length ; f < m ; ++ f ) switch ( a = s [ f ] , a [ 0 ] ) { case "#" : case "^" : t . push ( a ) , r . push ( a ) , t = a [ 4 ] = [ ] ; break ; case "/" : u = r . pop ( ) , u [ 5 ] = a [ 2 ] , t = r . length > 0 ? r [ r . length - 1 ] [ 4 ] : e ; break ; default : t . push ( a ) } return e } function sI ( s ) { this . string = s , this . tail = s , this . pos = 0 } sI . prototype . eos = function ( ) { return this . tail === "" } ; sI . prototype . scan = function ( e ) { var t = this . tail . match ( e ) ; if ( ! t || t . index !== 0 ) return "" ; var r = t [ 0 ] ; return this . tail = this . tail . substring ( r . length ) , this . pos += r . length , r } ; sI . prototype . scanUntil = function ( e ) { var t = this . tail . search ( e ) , r ; switch ( t ) { case - 1 : r = this . tail , this . tail = "" ; break ; case 0 : r = "" ; break ; default : r = this . tail . substring ( 0 , t ) , this . tail = this . tail . substring ( t ) } return this . pos += r . length , r } ; function oO ( s , e ) { this . view = s , this . cache = { "." : this . view } , this . parent = e } oO . prototype . push = function ( e ) { return new oO ( e , this ) } ; oO . prototype . lookup = function ( e ) { var t = this . cache , r ; if ( t . hasOwnProperty ( e ) ) r = t [ e ] ; else { for ( var a = this , u , f , m , g = ! 1 ; a ; ) { if ( e . indexOf ( "." ) > 0 ) for ( u = a . view , f = e . split ( "." ) , m = 0 ; u != null && m < f . length ; ) m === f . length - 1 && ( g = Iie ( u , f [ m ] ) || lve ( u , f [ m ] ) ) , u = u [ f [ m ++ ] ] ; else u = a . view [ e ] , g = Iie ( a . view , e ) ; if ( g ) { r = u ; break } a = a . parent } t [ e ] = r } return Aoe ( r ) && ( r = r . call ( this . view ) ) , r } ; function Dg ( ) { this . templateCache = { _cache : { } , set : function ( e , t ) { this . _cache [ e ] = t } , get : function ( e ) { return this . _cache [ e ] } , clear : function ( ) { this . _cache = { } } } } Dg . prototype . clearCache = function ( ) { typeof this . templateCache < "u" && this . templateCache . clear ( ) } ; Dg . prototype . parse = function ( e , t ) { var r = this . templateCache , a = e + ":" + ( t || Dp . tags ) . join ( ":" ) , u = typeof r < "u" , f = u ? r . get ( a ) : void 0 ; return f == null && ( f = yve ( e , t ) , u && r . set ( a , f ) ) , f } ; Dg . prototype . render = function ( e , t , r , a ) { var u = this . getConfigTags ( a ) , f = this . parse ( e , u ) , m = t instanceof oO ? t : new oO ( t , void 0 ) ; return this . renderTokens ( f , m , r , e , a ) } ; Dg . prototype . renderTokens = function ( e , t , r , a , u ) { for ( var f = "" , m , g , y , C = 0 , A = e . length ; C < A ; ++ C ) y = void 0 , m = e [ C ] , g = m [ 0 ] , g === "#" ? y = this . renderSection ( m , t , r , a , u ) : g === "^" ? y = this . renderInverted ( m , t , r , a , u ) : g === ">" ? y = this . renderPartial ( m , t , r , u ) : g === "&" ? y = this . unescapedValue ( m , t ) : g === "name" ? y = this . escapedValue ( m , t , u ) : g === "text" && ( y = this . rawValue ( m ) ) , y !== void 0 && ( f += y ) ; return f } ; Dg . prototype . renderSection = function ( e , t , r , a , u ) { var f = this , m = "" , g = t . lookup ( e [ 1 ] ) ; function y ( O ) { return f . render ( O , t , r , u ) } if ( ! ! g ) { if ( vO ( g ) ) for ( var C = 0 , A = g . length ; C < A ; ++ C ) m += this . renderTokens ( e [ 4 ] , t . push ( g [ C ] ) , r , a , u ) ; else if ( typeof g == "object" || typeof g == "string" || typeof g == "number" ) m += this . renderTokens ( e [ 4 ] , t . push ( g ) , r , a , u ) ; else if ( Aoe ( g ) ) { if ( typeof a != "string" ) throw new Error ( "Cannot use higher-order sections without the original template" ) ; g = g . call ( t . view , a . slice ( e [ 3 ] , e [ 5 ] ) , y ) , g != null && ( m += g ) } else m += this . renderTokens ( e [ 4 ] , t , r , a , u ) ; return m } } ; Dg . prototype . renderInverted = function ( e , t , r , a , u ) { var f = t . lookup ( e [ 1 ] ) ; if ( ! f || vO ( f ) && f . length === 0 ) return this . renderTokens ( e [ 4 ] , t , r , a , u ) } ; Dg . prototype . indentPartial = function ( e , t , r ) { for ( var a = t . replace ( /[^ \t]/g , "" ) , u = e . split ( `
` ) , f = 0 ; f < u . length ; f ++ ) u [ f ] . length && ( f > 0 || ! r ) && ( u [ f ] = a + u [ f ] ) ; return u . join ( `
` ) } ; Dg . prototype . renderPartial = function ( e , t , r , a ) { if ( ! ! r ) { var u = this . getConfigTags ( a ) , f = Aoe ( r ) ? r ( e [ 1 ] ) : r [ e [ 1 ] ] ; if ( f != null ) { var m = e [ 6 ] , g = e [ 5 ] , y = e [ 4 ] , C = f ; g == 0 && y && ( C = this . indentPartial ( f , y , m ) ) ; var A = this . parse ( C , u ) ; return this . renderTokens ( A , t , r , C , a ) } } } ; Dg . prototype . unescapedValue = function ( e , t ) { var r = t . lookup ( e [ 1 ] ) ; if ( r != null ) return r } ; Dg . prototype . escapedValue = function ( e , t , r ) { var a = this . getConfigEscape ( r ) || Dp . escape , u = t . lookup ( e [ 1 ] ) ; if ( u != null ) return typeof u == "number" && a === Dp . escape ? String ( u ) : a ( u ) } ; Dg . prototype . rawValue = function ( e ) { return e [ 1 ] } ; Dg . prototype . getConfigTags = function ( e ) { return vO ( e ) ? e : e && typeof e == "object" ? e . tags : void 0 } ; Dg . prototype . getConfigEscape = function ( e ) { if ( e && typeof e == "object" && ! vO ( e ) ) return e . escape } ; var Dp = { name : "mustache.js" , version : "4.2.0" , tags : [ "{{" , "}}" ] , clearCache : void 0 , escape : void 0 , parse : void 0 , render : void 0 , Scanner : void 0 , Context : void 0 , Writer : void 0 , set templateCache ( s ) { IP . templateCache = s } , get templateCache ( ) { return IP . templateCache } } , IP = new Dg ; Dp . clearCache = function ( ) { return IP . clearCache ( ) } ; Dp . parse = function ( e , t ) { return IP . parse ( e , t ) } ; Dp . render = function ( e , t , r , a ) { if ( typeof e != "string" ) throw new TypeError ( 'Invalid template! Template should be a "string" but "' + ave ( e ) + '" was given as the first argument for mustache#render(template, view, partials)' ) ; return IP . render ( e , t , r , a ) } ; Dp . escape = mve ; Dp . Scanner = sI ; Dp . Context = oO ; Dp . Writer = Dg ; function mne ( s ) { return mne = typeof Symbol == "function" && typeof Symbol . iterator == "symbol" ? function ( e ) { return typeof e } : function ( e ) { return e && typeof Symbol == "function" && e . constructor === Symbol && e !== Symbol . prototype ? "symbol" : typeof e } , mne ( s ) } function H0 ( s , e ) { if ( e . length < s ) throw new TypeError ( s + " argument" + ( s > 1 ? "s" : "" ) + " required, but only " + e . length + " present" ) } function Fh ( s ) { H0 ( 1 , arguments ) ; var e = Object . prototype . toString . call ( s ) ; return s instanceof Date || mne ( s ) === "object" && e === "[object Date]" ? new Date ( s . getTime ( ) ) : typeof s == "number" || e === "[object Number]" ? new Date ( s ) : ( ( typeof s == "string" || e === "[object String]" ) && typeof console < "u" && ( console . warn ( "Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments" ) , console . warn ( new Error ( ) . stack ) ) , new Date ( NaN ) ) } var Cve = { } ; function Sve ( ) { return Cve } function Lie ( s ) { var e = new Date ( Date . UTC ( s . getFullYear ( ) , s . getMonth ( ) , s . getDate ( ) , s . getHours ( ) , s . getMinutes ( ) , s . getSeconds ( ) , s . getMilliseconds ( ) ) ) ; return e . setUTCFullYear ( s . getFullYear ( ) ) , s . getTime ( ) - e . getTime ( ) } function xz ( s , e ) { H0 ( 2 , arguments ) ; var t = Fh ( s ) , r = Fh ( e ) , a = t . getTime ( ) - r . getTime ( ) ; return a < 0 ? - 1 : a > 0 ? 1 : a } function kve ( s , e ) { H0 ( 2 , arguments ) ; var t = Fh ( s ) , r = Fh ( e ) , a = t . getFullYear ( ) - r . getFullYear ( ) , u = t . getMonth ( ) - r . getMonth ( ) ; return a * 12 + u } function Eve ( s , e ) { return H0 ( 2 , arguments ) , Fh ( s ) . getTime ( ) - Fh ( e ) . getTime ( ) } var Fie = { ceil : Math . ceil , round : Math . round , floor : Math . floor , trunc : function ( e ) { return e < 0 ? Math . ceil ( e ) : Math . floor ( e ) } } , xve = "trunc" ; function Ave ( s ) { return s ? Fie [ s ] : Fie [ xve ] } function Tve ( s ) { H0 ( 1 , arguments ) ; var e = Fh ( s ) ; return e . setHours ( 23 , 59 , 59 , 999 ) , e } function Dve ( s ) { H0 ( 1 , arguments ) ; var e = Fh ( s ) , t = e . getMonth ( ) ; return e . setFullYear ( e . getFullYear ( ) , t + 1 , 0 ) , e . setHours ( 23 , 59 , 59 , 999 ) , e } function Ove ( s ) { H0 ( 1 , arguments ) ; var e = Fh ( s ) ; return Tve ( e ) . getTime ( ) === Dve ( e ) . getTime ( ) } function Mve ( s , e ) { H0 ( 2 , arguments ) ; var t = Fh ( s ) , r = Fh ( e ) , a = xz ( t , r ) , u = Math . abs ( kve ( t , r ) ) , f ; if ( u < 1 ) f = 0 ; else { t . getMonth ( ) === 1 && t . getDate ( ) > 27 && t . setDate ( 30 ) , t . setMonth ( t . getMonth ( ) - a * u ) ; var m = xz ( t , r ) === - a ; Ove ( Fh ( s ) ) && u === 1 && xz ( s , r ) === 1 && ( m = ! 1 ) , f = a * ( u - Number ( m ) ) } return f === 0 ? 0 : f } function Rve ( s , e , t ) { H0 ( 2 , arguments ) ; var r = Eve ( s , e ) / 1e3 ; return Ave ( t == null ? void 0 : t . roundingMethod ) ( r ) } var Nve = { lessThanXSeconds : { one : "less than a second" , other : "less than {{count}} seconds" } , xSeconds : { one : "1 second" , other : "{{count}} seconds" } , halfAMinute : "half a minute" , lessThanXMinutes : { one : "less than a minute" , other : "less than {{count}} minutes" } , xMinutes : { one : "1 minute" , other : "{{count}} minutes" } , aboutXHours : { one : "about 1 hour" , other : "about {{count}} hours" } , xHours : { one : "1 hour" , other : "{{count}} hours"
Save ` ),Z(t,"class","spinner-border spinner-border-sm"),Z(t,"role","status"),Z(t,"aria-hidden","true"),e.disabled=a=!s[7],Z(e,"class","ms-2 btn btn-primary btn-spinner")},m(m,g){He(m,e,g),Q(e,t),Q(e,r),u||(f=Fn(e,"click",s[13]),u=!0)},p(m,g){g&128&&a!==(a=!m[7])&&(e.disabled=a)},d(m){m&&Fe(e),u=!1,f()}}}function f2e(s){let e,t,r;return{c(){e=fe("button"),e.innerHTML= ` < span class = "spinner-border spinner-border-sm" role = "status" aria - hidden = "true" > < / s p a n >
Add ` ,Z(e,"class","ms-2 btn btn-primary btn-spinner")},m(a,u){He(a,e,u),t||(r=Fn(e,"click",s[13]),t=!0)},p:xn,d(a){a&&Fe(e),t=!1,r()}}}function d2e(s){let e,t,r,a,u,f,m,g,y,C=[],A=new Map,O,N,L,U,W,q,ee,F,ne;t=new nI({props:{message:s[8]}});function ie(lt){s[14](lt)}let oe={schema:s[2],isCreateMode:s[4],record:s[0]};s[6]!==void 0&&(oe.active=s[6]),u=new vhe({props:oe}),as.push(()=>Tr(u,"active",ie)),g=new bhe({props:{record:s[0],schema:s[2]}});let K=s[9];const Re=lt=>lt[23].name;for(let lt=0;lt<K.length;lt+=1){let ft=yae(s,K,lt),bt=Re(ft);A.set(bt,C[lt]=_ae(bt,ft))}let Ce=s[2].hasDrafts&&Cae(s);function Ee(lt,ft){return lt[4]?f2e:u2e}let ye=Ee(s),be=ye(s);return{c(){e=fe("div"),rn(t. $ $ .fragment),r=Je(),a=fe("div"),rn(u. $ $ .fragment),m=Je(),rn(g. $ $ .fragment),y=Je();for(let lt=0;lt<C.length;lt+=1)C[lt].c();O=Je(),N=fe("div"),L=fe("div"),Ce&&Ce.c(),U=Je(),be.c(),W=Je(),q=fe("button"),q.textContent="cancel",Z(a,"class","mt-1"),Z(q,"class","ms-2 btn btn-link"),Z(L,"class","d-flex mt-3 align-items-center justify-content-center"),Z(e,"class","inline-edit my-4 svelte-sl11hx")},m(lt,ft){He(lt,e,ft),on(t,e,null),Q(e,r),Q(e,a),on(u,a,null),Q(a,m),on(g,a,null),Q(a,y);for(let bt=0;bt<C.length;bt+=1)C[bt]&&C[bt].m(a,null);Q(e,O),Q(e,N),Q(N,L),Ce&&Ce.m(L,null),Q(L,U),be.m(L,null),Q(L,W),Q(L,q),ee=!0,F||(ne=[Fn(window,"beforeunload",s[11]),Fn(q,"click",s[12])],F=!0)},p(lt,[ft]){const bt={};ft&256&&(bt.message=lt[8]),t. $ set(bt);const z={};ft&4&&(z.schema=lt[2]),ft&16&&(z.isCreateMode=lt[4]),ft&1&&(z.record=lt[0]),!f&&ft&64&&(f=!0,z.active=lt[6],Pr(()=>f=!1)),u. $ set(z);const gt={};ft&1&&(gt.record=lt[0]),ft&4&&(gt.schema=lt[2]),g. $ set(gt),ft&1663&&(K=lt[9],To(),C=B1(C,ft,Re,1,lt,K,A,a,f2,_ae,null,yae),Do()),lt[2].hasDrafts?Ce?(Ce.p(lt,ft),ft&4&&Me(Ce,1)):(Ce=Cae(lt),Ce.c(),Me(Ce,1),Ce.m(L,U)):Ce&&(To(),We(Ce,1,1,()=>{Ce=null}),Do()),ye===(ye=Ee(lt))&&be?be.p(lt,ft):(be.d(1),be=ye(lt),be&&(be.c(),be.m(L,W)))},i(lt){if(!ee){Me(t. $ $ .fragment,lt),Me(u. $ $ .fragment,lt),Me(g. $ $ .fragment,lt);for(let ft=0;ft<K.length;ft+=1)Me(C[ft]);Me(Ce),ee=!0}},o(lt){We(t. $ $ .fragment,lt),We(u. $ $ .fragment,lt),We(g. $ $ .fragment,lt);for(let ft=0;ft<C.length;ft+=1)We(C[ft]);We(Ce),ee=!1},d(lt){lt&&Fe(e),sn(t),sn(u),sn(g);for(let ft=0;ft<C.length;ft+=1)C[ft].d();Ce&&Ce.d(),be.d(),F=!1,pa(ne)}}}function h2e(s,e,t){let r,a;const u=I1();let{schema:f}=e,{schemas:m}=e,{record:g}=e,{graph:y={records:[],edges:[]}}=e,{isCreateMode:C}=e,A,O="_default",N=!1,L=f.fields.filter(Ee=>Ee.trashed===!1&&Ee.name!=="id"),U="_default",W=f.fields.reduce((Ee,ye)=>{var be;return ye.ui==="tab"?(U=ye.name,Ee):(Ee[U]=[...(be=Ee[U])!=null?be:[],ye.name],Ee)},[]);mv(()=>{q()});function q(){A={data:JSON.parse(JSON.stringify(g.data)),schema:g.schema,status:g.status,_sys:JSON.parse(JSON.stringify(g._sys)),_file:JSON.parse(JSON.stringify(g._file)),edges:JSON.parse(JSON.stringify(y.edges))}}ohe(()=>{t(7,N=F())});function ee(Ee){return N?Ee.returnValue="You have unsaved changes. Are you sure you want to exit?":(delete Ee.returnValue,"...")}function F(){return C?!1:!mu.exports.isEqual(A,{data:g.data,schema:g.schema,status:g.status,_sys:g._sys,_file:g._file,edges:y.edges})}function ne(Ee){Ee.preventDefault(),u("cancel")}function ie(Ee){return Ee.preventDefault(),console.log("SAVE: Attempt"),t(5,r=null),t(8,a=""),new Promise(function(ye,be){var lt,ft;if(!N&&!C){ye(null);return}if(!g){ye(null);return}t(1,y.edges=(ft=(lt=y.edges)==null?void 0:lt.filter(bt=>!bt._isTrashed&&bt.source===g.id))!=null?ft:[],y),axios.post("/records",{record:g,edges:y.edges,isCreateMode:C}).then(function(bt){console.log("SAVE: SAVED INLINE"),t(0,g=bt.data.records[0]),t(1,y=bt.data),C||q(),u("inlinesaved",{records:[g]}),ye(null)}).catch(function(bt){bt.response&&(typeof bt.response.data.error=="string"?t(8,a=bt.response.data.error):t(5,r=bt.response.data.error)),ye(null)})})}function oe(Ee){O=Ee,t(6,O)}function K(Ee){s. $ $ .not_equal(g.data,Ee)&&(g.data=Ee,t(0,g))}function Re(Ee){y=Ee,t(1,y)}function Ce(Ee){s. $ $ .not_equal(g.status,Ee)&&(g.status=Ee,t(0,g))}return s. $ $ set=Ee=>{"schema"in Ee&&t(2,f=Ee.schema),"schem
` ) , a = fe ( "span" ) , a . innerHTML = '<span class="visually-hidden">Loading...</span>' , u = Je ( ) , f = fe ( "input" ) , Z ( a , "class" , "spinner-border spinner-border-sm" ) , Z ( a , "role" , "status" ) , Z ( a , "aria-hidden" , "true" ) , Z ( f , "class" , "form-control" ) , Z ( f , "type" , "file" ) , Z ( f , "id" , "formFile" ) , f . multiple = ! 0 , Z ( f , "accept" , v2e ) , f . disabled = s [ 0 ] , f . hidden = ! 0 , Z ( t , "class" , "btn btn-primary btn-sm btn-spinner " ) , e . disabled = s [ 0 ] } , m ( y , C ) { He ( y , e , C ) , Q ( e , t ) , Q ( t , r ) , Q ( t , a ) , Q ( t , u ) , Q ( t , f ) , m || ( g = Fn ( f , "input" , s [ 1 ] ) , m = ! 0 ) } , p ( y , [ C ] ) { C & 1 && ( f . disabled = y [ 0 ] ) , C & 1 && ( e . disabled = y [ 0 ] ) } , i : xn , o : xn , d ( y ) { y && Fe ( e ) , m = ! 1 , g ( ) } } } let v2e = "" ; function y2e ( s , e , t ) { const r = I1 ( ) , a = ga ( "channel" ) ; let { schema : u } = e , f = [ ] , m = ! 1 ; function g ( y ) { t ( 0 , m = ! 0 ) , f = y . target . files ? [ ... y . target . files ] : [ ] ; let C = new FormData ; C . append ( "schema" , u . name ) , Array . from ( f ) . forEach ( function ( A ) { C . append ( "files[]" , A ) } ) , r ( "beforeUpload" , f ) , axios . post ( a . lucentUrl + "/files/upload" , C , { headers : { "Content-Type" : "multipart/form-data" } } ) . then ( A => { A . data . error ? r ( "uploadError" , A . data . error ) : r ( "uploadComplete" , A . data ) , t ( 0 , m = ! 1 ) } ) . catch ( A => { t ( 0 , m = ! 1 ) , console . log ( A . response . data ) } ) } return s . $$set = y => { "schema" in y && t ( 2 , u = y . schema ) } , [ m , g , u ] } class w2e extends Eo { constructor ( e ) { super ( ) , ko ( this , e , y2e , b2e , So , { schema : 2 } ) } } function Aae ( s , e , t ) { const r = s . slice ( ) ; return r [ 18 ] = e [ t ] , r } function Tae ( s , e , t ) { const r = s . slice ( ) ; return r [ 18 ] = e [ t ] , r } function _2e ( s ) { let e , t ; return e = new wl ( { props : { icon : "arrow-up-short-wide" } } ) , { c ( ) { rn ( e . $$ . fragment ) } , m ( r , a ) { on ( e , r , a ) , t = ! 0 } , i ( r ) { t || ( Me ( e . $$ . fragment , r ) , t = ! 0 ) } , o ( r ) { We ( e . $$ . fragment , r ) , t = ! 1 } , d ( r ) { sn ( e , r ) } } } function C2e ( s ) { let e , t ; return e = new wl ( { props : { icon : "arrow-down-wide-short" } } ) , { c ( ) { rn ( e . $$ . fragment ) } , m ( r , a ) { on ( e , r , a ) , t = ! 0 } , i ( r ) { t || ( Me ( e . $$ . fragment , r ) , t = ! 0 ) } , o ( r ) { We ( e . $$ . fragment , r ) , t = ! 1 } , d ( r ) { sn ( e , r ) } } } function Dae ( s ) { let e , t , r , a , u , f , m , g , y , C , A , O = s [ 18 ] . label + "" , N , L , U , W , q ; a = new wl ( { props : { icon : "arrow-up-short-wide" } } ) ; function ee ( ... ie ) { return s [ 10 ] ( s [ 18 ] , ... ie ) } g = new wl ( { props : { icon : "arrow-down-wide-short" } } ) ; function F ( ... ie ) { return s [ 11 ] ( s [ 18 ] , ... ie ) } function ne ( ... ie ) { return s [ 12 ] ( s [ 18 ] , ... ie ) } return { c ( ) { e = fe ( "div" ) , t = fe ( "div" ) , r = fe ( "button" ) , rn ( a . $$ . fragment ) , f = Je ( ) , m = fe ( "button" ) , rn ( g . $$ . fragment ) , C = Je ( ) , A = fe ( "button" ) , N = tn ( O ) , L = Je ( ) , Z ( r , "title" , "Sort Ascending" ) , Z ( r , "class" , u = "btn btn-sm " + ( s [ 18 ] . name == s [ 0 ] ? "btn-primary" : "btn-outline-primary" ) ) , Z ( m , "title" , "Sort Descending" ) , Z ( m , "class" , y = "btn btn-sm " + ( "-" + s [ 18 ] . name == s [ 0 ] ? "btn-primary" : "btn-outline-primary" ) ) , Z ( A , "title" , "Sort Ascending" ) , Z ( A , "class" , "btn btn-sm btn-outline-primary w-100 text-nowrap" ) , is ( A , "overflow" , "hidden" ) , Z ( t , "class" , "btn-group w-100" ) , Z ( e , "class" , "col-4 px-3 py-1 d-flex align-items-center" ) } , m ( ie , oe ) { He ( ie , e , oe ) , Q ( e , t ) , Q ( t , r ) , on ( a , r , null ) , Q ( t , f ) , Q ( t , m ) , on ( g , m , null ) , Q ( t , C ) , Q ( t , A ) , Q ( A , N ) , Q ( e , L ) , U = ! 0 , W || ( q = [ Fn ( r , "click" , ee ) , Fn ( m , "click" , F ) , Fn ( A , "click" , ne ) ] , W = ! 0 ) } , p ( ie , oe ) { s = ie , ( ! U || oe & 5 && u !== ( u = "btn btn-sm " + ( s [ 18 ] . name == s [ 0 ] ? "btn-primary" : "btn-outline-primary" ) ) ) && Z ( r , "class" , u ) , ( ! U || oe & 5 && y !== ( y = "btn btn-sm " + ( "-" + s [ 18 ] . name == s [ 0 ] ? "btn-primary" : "btn-outline-primary" ) ) ) && Z ( m , "class" , y ) , ( ! U || oe & 4 ) && O !== ( O = s [ 18 ] . label + "" ) && Qn ( N , O ) } , i ( ie ) { U || ( Me ( a . $$ . fragment , ie ) , Me ( g . $$ . fragment , ie ) , U = ! 0 ) } , o ( ie ) { We ( a . $$ . fragment , ie ) , We ( g . $$ . fragment , ie ) , U = ! 1 } , d ( ie ) { ie && Fe ( e ) , sn ( a ) , sn ( g ) , W = ! 1 , pa ( q ) } } } function Oae ( s ) { let e , t , r , a , u , f , m , g , y , C , A , O = s [ 18 ] . label + "" , N , L , U , W , q ; a = new wl ( { props : { icon : "arrow-up-short-wide" } } ) ; function ee ( ... ie ) { return s [ 13 ] ( s [ 18 ] , ... ie ) } g = new wl ( { props : { icon : "arrow-down-wide-short" } } ) ; function F ( ... ie ) { return s [ 14 ] ( s [ 18 ] , ... ie ) } function ne ( ... ie ) { return s [ 15 ] ( s [ 18 ] , ... ie ) } return { c ( ) { e = fe ( "div" ) , t = fe ( "div" ) , r = fe ( "button" ) , rn ( a . $$ . fragment ) , f = Je ( ) , m = fe ( "button" ) , rn ( g . $$ . fragment ) , C = Je ( ) , A = fe ( "button" ) , N = tn ( O ) , L = Je ( ) , Z ( r , "title" , "Sort Ascending" ) , Z ( r , "class" , u = "btn btn-sm " + ( s [ 18 ] . name == s [ 0 ] ? "btn-primary" : "btn-outline-primary" ) ) , Z ( m , "title" , "Sort Descending" ) , Z ( m , "class" , y = "btn btn-sm " + ( "-" + s [ 18 ] . name == s [ 0 ] ? "btn-primary" : "btn-outline-primary" ) ) , Z ( A , "title" , "Sort Ascending" ) , Z ( A , "class" , "btn btn-sm btn-outline-primary w-100 text-nowrap" ) , is ( A , "overflow" , "hidden" ) , Z ( t , "class" , "btn-group w-100" ) , Z ( e , "class" , "col-4 px-3 py-1 d-fle
`),f=fe(" span "),g=tn(m),y=tn(`
to
`),C=fe(" span "),O=tn(A),N=tn(`
of
`),L=fe(" span "),U=tn(s[4]),W=tn(`
total`),Z(t," class "," pagination justify - content - center "),Z(f," class "," font - medium "),Z(C," class "," font - medium "),Z(L," class "," font - medium "),Z(a," class "," text - muted text - center ")},m(F,ne){He(F,e,ne),Q(e,t),ee&&ee.m(t,null),He(F,r,ne),He(F,a,ne),Q(a,u),Q(a,f),Q(f,g),Q(a,y),Q(a,C),Q(C,O),Q(a,N),Q(a,L),Q(L,U),Q(a,W),q=!0},p(F,[ne]){F[5]>1?ee?(ee.p(F,ne),ne&32&&Me(ee,1)):(ee=Fae(F),ee.c(),Me(ee,1),ee.m(t,null)):ee&&(To(),We(ee,1,1,()=>{ee=null}),Do()),(!q||ne&8)&&m!==(m=+F[3]+1+" ")&&Qn(g,m),(!q||ne&28)&&A!==(A=(+F[3]+F[2]>F[4]?F[4]:+F[3]+F[2])+" ")&&Qn(O,A),(!q||ne&16)&&Qn(U,F[4])},i(F){q||(Me(ee),q=!0)},o(F){We(ee),q=!1},d(F){F&&Fe(e),ee&&ee.d(),F&&Fe(r),F&&Fe(a)}}}function $2e(s,e,t){let r,a,u;const f=I1();let{inModal:m}=e,{modalUrl:g}=e,{limit:y}=e,{skip:C}=e,{total:A}=e;function O(W){W.preventDefault(),L(r)}function N(W){W.preventDefault(),L(1)}function L(W){const q=new URL(g!=null?g:window.location.href);let ee=W*y-y;q.searchParams.set(" skip ",ee),m?f(" refresh ",q):window.location=q}function U(W){kz.call(this,s,W)}return s.$$set=W=>{" inModal "in W&&t(0,m=W.inModal)," modalUrl "in W&&t(1,g=W.modalUrl)," limit "in W&&t(2,y=W.limit)," skip "in W&&t(3,C=W.skip)," total "in W&&t(4,A=W.total)},s.$$.update=()=>{s.$$.dirty&20&&t(5,r=Math.ceil(A/y)),s.$$.dirty&12&&t(6,a=Math.ceil((C-1)/y)+1),s.$$.dirty&96&&t(7,u=mu.exports.range(a-3,a+4).filter(W=>W>0&&W<=r))},[m,g,y,C,A,r,a,u,O,N,U]}class z2e extends Eo{constructor(e){super(),ko(this,e,$2e,H2e,So,{inModal:0,modalUrl:1,limit:2,skip:3,total:4})}}function V2e(s){let e,t,r;return{c(){e=fe(" button "),e.textContent=" Move to trash ",Z(e," type "," button "),Z(e," class "," btn btn - sm btn - outline - primary ")},m(a,u){He(a,e,u),t||(r=Fn(e," click ",mf(s[9])),t=!0)},p:xn,d(a){a&&Fe(e),t=!1,r()}}}function W2e(s){let e,t,r,a,u,f,m=s[1].hasDrafts&&Hae(s);return{c(){e=fe(" button "),e.textContent=" Publish ",t=Je(),m&&m.c(),r=Je(),a=fe(" button "),a.textContent=" Delete forever ",Z(e," type "," button "),Z(e," class "," btn btn - sm btn - outline - primary "),Z(a," type "," button "),Z(a," class "," btn btn - sm btn - outline - primary ")},m(g,y){He(g,e,y),He(g,t,y),m&&m.m(g,y),He(g,r,y),He(g,a,y),u||(f=[Fn(e," click ",mf(s[7])),Fn(a," click ",mf(s[3]))],u=!0)},p(g,y){g[1].hasDrafts?m?m.p(g,y):(m=Hae(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null)},d(g){g&&Fe(e),g&&Fe(t),m&&m.d(g),g&&Fe(r),g&&Fe(a),u=!1,pa(f)}}}function Hae(s){let e,t,r;return{c(){e=fe(" button "),e.textContent=" Make Draft ",Z(e," type "," button "),Z(e," class "," btn btn - sm btn - outline - primary ")},m(a,u){He(a,e,u),t||(r=Fn(e," click ",mf(s[8])),t=!0)},p:xn,d(a){a&&Fe(e),t=!1,r()}}}function U2e(s){let e,t,r=s[0].length+" ",a,u,f,m,g,y,C,A,O,N;function L(q,ee){return q[2].status_in===" trashed "?W2e:V2e}let U=L(s),W=U(s);return{c(){e=fe(" div "),t=fe(" span "),a=tn(r),u=tn(" records selected "),f=Je(),m=fe(" div "),g=fe(" button "),g.textContent=" Publish ",y=Je(),C=fe(" button "),C.textContent=" Make Draft ",A=Je(),W.c(),Z(t," class "," me - 2 "),Z(g," type "," button "),Z(g," class "," btn btn - sm btn - outline - primary "),Z(C," type "," button "),Z(C," class "," btn btn - sm btn - outline - primary "),Z(m," class "," btn - group "),Z(m," role "," group "),Z(m," aria - label "," Basic example "),Z(e," class "," d - flex align - items - center mb - 3 ")},m(q,ee){He(q,e,ee),Q(e,t),Q(t,a),Q(t,u),Q(e,f),Q(e,m),Q(m,g),Q(m,y),Q(m,C),Q(m,A),W.m(m,null),O||(N=[Fn(g," click ",mf(s[5])),Fn(C," click ",mf(s[6]))],O=!0)},p(q,[ee]){ee&1&&r!==(r=q[0].length+" ")&&Qn(a,r),U===(U=L(q))&&W?W.p(q,ee):(W.d(1),W=U(q),W&&(W.c(),W.m(m,null)))},i:xn,o:xn,d(q){q&&Fe(e),W.d(),O=!1,pa(N)}}}function j2e(s,e,t){const r=ga(" channel ");let{selected:a}=e,{schema:u}=e,{filter:f}=e;function m(L){L.preventDefault(),axios.post(r.lucentUrl+" / records / delete ",{ids:a.map(U=>U.id)}).then(U=>{window.location.reload()}).catch(U=>{console.log(U)})}function g(L,U){axios.post(r.lucentUrl+" / records / status / "+U,{schemaName:u.name,records:a}).then(W=>{window.location.reload()}).catch(W=>{console.log(W)})}const y=L=>g(L," published "),C=L=>g(L," draft "),A=L=>g(L," published "),O=L=>g(L," draft "),N=L=>g(L," trashed ");return s.$$set=L=>{" selected "in L&&t(0,a=L.selected)," schema "in L&&t(1,u=L.schema)," filter "in L&&t(2,f=L.filter)},[a,u,f
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function hle(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(s,a).enumerable})),t.push.apply(t,r)}return t}function i2(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hle(Object(t),!0).forEach(function(r){Hwe(s,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):hle(Object(t)).forEach(function(r){Object.defineProperty(s,r,Object.getOwnPropertyDescriptor(t,r))})}return s}function Az(s){return typeof Symbol==" function "&&typeof Symbol.iterator==" symbol "?Az=function(e){return typeof e}:Az=function(e){return e&&typeof Symbol==" function "&&e.constructor===Symbol&&e!==Symbol.prototype?" symbol ":typeof e},Az(s)}function Hwe(s,e,t){return e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function D_(){return D_=Object.assign||function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(s[r]=t[r])}return s},D_.apply(this,arguments)}function $we(s,e){if(s==null)return{};var t={},r=Object.keys(s),a,u;for(u=0;u<r.length;u++)a=r[u],!(e.indexOf(a)>=0)&&(t[a]=s[a]);return t}function zwe(s,e){if(s==null)return{};var t=$we(s,e),r,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);for(a=0;a<u.length;a++)r=u[a],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(s,r)||(t[r]=s[r]))}return t}var Vwe=" 1.15 . 0 ";function x_(s){if(typeof window<" u "&&window.navigator)return!!navigator.userAgent.match(s)}var I_=x_(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),lI=x_(/Edge/i),mle=x_(/firefox/i),CP=x_(/safari/i)&&!x_(/chrome/i)&&!x_(/android/i),Ahe=x_(/iP(ad|od|hone)/i),The=x_(/chrome/i)&&x_(/android/i),Dhe={capture:!1,passive:!1};function ll(s,e,t){s.addEventListener(e,t,!I_&&Dhe)}function Ia(s,e,t){s.removeEventListener(e,t,!I_&&Dhe)}function Jz(s,e){if(!!e){if(e[0]===" > "&&(e=e.substring(1)),s)try{if(s.matches)return s.matches(e);if(s.msMatchesSelector)return s.msMatchesSelector(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e)}catch{return!1}return!1}}function Wwe(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function Gy(s,e,t,r){if(s){t=t||document;do{if(e!=null&&(e[0]===" > "?s.parentNode===t&&Jz(s,e):Jz(s,e))||r&&s===t)return s;if(s===t)break}while(s=Wwe(s))}return null}var gle=/\s+/g;function S1(s,e,t){if(s&&e)if(s.classList)s.classList[t?" add ":" remove "](e);else{var r=(" "+s.className+" ").replace(gle," ").replace(" "+e+" "," ");s.className=(r+(t?" "+e:" ")).replace(gle," ")}}function zr(s,e,t){var r=s&&s.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(s," "):s.currentStyle&&(t=s.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf(" webkit ")===-1&&(e=" - webkit - "+e),r[e]=t+(typeof t==" string "?" ":" px ")}}function GD(s,e){var t=" ";if(typeof s==" string ")t=s;else do{var r=zr(s," transform ");r&&r!==" none "&&(t=r+" "+t)}while(!e&&(s=s.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function Ohe(s,e,t){if(s){var r=s.getElementsByTagName(e),a=0,u=r.length;if(t)for(;a<u;a++)t(r[a],a);return r}return[]}function t2(){var s=document.scrollingElement;return s||document.documentElement}function ud(s,e,t,r,a){if(!(!s.getBoundingClientRect&&s!==window)){var u,f,m,g,y,C,A;if(s!==window&&s.parentNode&&s!==t2()?(u=s.getBoundingClientRect(),f=u.top,m=u.left,g=u.bottom,y=u.right,C=u.height,A=u.width):(f=0,m=0,g=window.innerHeight,y=window.innerWidth,C=window.innerHeight,A=window.innerWidth),(e||t)&&s!==window&&(a=a||s.parentNode,!I_))do if(a&&a.getBoundingClientRect&&(zr(a," transform ")!==" none "||t&&zr(a," position ")!==" static ")){var O=a.getBoundingClientRect();f-=O.top+parseInt(zr(a," border - top - width ")),m-=O.left+parseInt(zr(a," border - left - width ")),g=f+u.height,y=m+u.width;break}while(a=a.parentNode);if(r&&s!==window){var N=GD(a||s),
`||n===" \ r ",Oa=(n,i)=>i<n.length&&i>=0?Kh(n[i]):!1,sh=(n,i=4,l=!0,d=!0)=>{const p=bu(" ",i),w=n.replace(/\t/g,p);return pn(w,(R,B)=>eb(B)||B===Gr?R.pcIsSpace||R.str===" "&&l||R.str.length===w.length-1&&d||Oa(w,R.str.length+1)?{pcIsSpace:!1,str:R.str+Gr}:{pcIsSpace:!0,str:R.str+" "}:{pcIsSpace:Kh(B),str:R.str+B},{pcIsSpace:!1,str:" "}).str},kd=(n,i)=>{const l=Ge.fromDom(i),d=Ge.fromDom(n);return m2(d," pre , code ",Le(mt,l))},jm=(n,i)=>wn(n)&&Um(n.data)&&!kd(n,i),Zm=n=>Yn(n)&&n.nodeName===" A "&&!n.hasAttribute(" href ")&&(n.hasAttribute(" name ")||n.hasAttribute(" id ")),Yh=(n,i)=>Sl(n)&&!jm(n,i)||Zm(n)||Ku(n),Ku=Pc(" data - mce - bookmark "),tb=Pc(" data - mce - bogus "),Z1=Hg(" data - mce - bogus "," all "),H_=(n,i)=>{let l=0;if(Yh(n,n))return!1;{let d=n.firstChild;if(!d)return!0;const p=new pi(d,n);do{if(i){if(Z1(d)){d=p.next(!0);continue}if(tb(d)){d=p.next();continue}}if(ui(d)){l++,d=p.next();continue}if(Yh(d,n))return!1;d=p.next()}while(d);return l<=1}},Ma=(n,i=!0)=>H_(n.dom,i),Wg=" data - mce - block ",qm=n=>yt(gs(n),i=>!/[A-Z]/.test(i)),nu=n=>qm(n).join(" , "),Af=(n,i)=>ye(i.querySelector(n))?(i.setAttribute(Wg," true "),i.getAttribute(" data - mce - selected ")===" inline - boundary "&&i.removeAttribute(" data - mce - selected "),!0):(i.removeAttribute(Wg),!1),Gm=(n,i)=>{const l=nu(n.getTransparentElements()),d=nu(n.getBlockElements());return yt(i.querySelectorAll(l),p=>Af(d,p))},rh=(n,i)=>{var l;const d=i?" lastChild ":" firstChild ";for(let p=n[d];p;p=p[d])if(Ma(Ge.fromDom(p))){(l=p.parentNode)===null||l===void 0||l.removeChild(p);return}},Tu=(n,i)=>{const l=document.createRange(),d=n.parentNode;if(d){l.setStartBefore(n),l.setEndBefore(i);const p=l.extractContents();rh(p,!0),l.setStartAfter(i),l.setEndAfter(n);const w=l.extractContents();rh(w,!1),Ma(Ge.fromDom(p))||d.insertBefore(p,n),Ma(Ge.fromDom(i))||d.insertBefore(i,n),Ma(Ge.fromDom(w))||d.insertBefore(w,n),d.removeChild(n)}},Ed=(n,i,l)=>{const d=n.getBlockElements(),p=Ge.fromDom(i),w=R=>Xr(R)in d,E=R=>mt(R,p);Pe(Jd(l),R=>{li(R,w,E).each(B=>{const Y=K0(R,re=>w(re)&&!n.isValidChild(Xr(B),Xr(re)));if(Y.length>0){const re=gi(B);Pe(Y,ce=>{li(ce,w,E).each(pe=>{Tu(pe.dom,ce.dom)})}),re.each(ce=>Gm(n,ce.dom))}})})},Km=(n,i,l)=>{Pe([...l,...Ym(n,i)?[i]:[]],d=>Pe(dl(Ge.fromDom(d),d.nodeName.toLowerCase()),p=>{kv(n,p.dom)&&ql(p)}))},nb=(n,i)=>{const l=Gm(n,i);Ed(n,i,l),Km(n,i,l)},_v=(n,i)=>{if(Sv(n,i)){const l=nu(n.getBlockElements());Af(l,i)}},Cv=(n,i,l)=>{const d=w=>mt(w,Ge.fromDom(i)),p=qd(Ge.fromDom(l),d);Zr(p,p.length-2).filter(_l).fold(()=>nb(n,i),w=>nb(n,w.dom))},ih=n=>n.hasAttribute(Wg),Ug=(n,i)=>cn(n.getTransparentElements(),i),Sv=(n,i)=>Yn(i)&&Ug(n,i.nodeName),Ym=(n,i)=>Sv(n,i)&&ih(i),kv=(n,i)=>Sv(n,i)&&!ih(i),nr=(n,i)=>i.type===1&&Ug(n,i.name)&&F(i.attr(Wg)),Ao=vs().browser,ah=n=>Xn(n,_l),q1=n=>Ao.isFirefox()&&Xr(n)===" table "?ah(Aa(n)).filter(i=>Xr(i)===" caption ").bind(i=>ah(tl(i)).map(l=>{const d=l.dom.offsetTop,p=i.dom.offsetTop,w=i.dom.offsetHeight;return d<=p?-w:0})).getOr(0):0,jg=(n,i)=>n.children&&St(n.children,i),Tk=(n,i,l)=>{let d=0,p=0;const w=n.ownerDocument;if(l=l||n,i){if(l===n&&i.getBoundingClientRect&&Mi(Ge.fromDom(n)," position ")===" static "){const R=i.getBoundingClientRect();return d=R.left+(w.documentElement.scrollLeft||n.scrollLeft)-w.documentElement.clientLeft,p=R.top+(w.documentElement.scrollTop||n.scrollTop)-w.documentElement.clientTop,{x:d,y:p}}let E=i;for(;E&&E!==l&&E.nodeType&&!jg(E,l);){const R=E;d+=R.offsetLeft||0,p+=R.offsetTop||0,E=R.offsetParent}for(E=i.parentNode;E&&E!==l&&E.nodeType&&!jg(E,l);)d-=E.scrollLeft||0,p-=E.scrollTop||0,E=E.parentNode;p+=q1(Ge.fromDom(i))}return{x:d,y:p}},Ev=(n,i={})=>{let l=0;const d={},p=Ge.fromDom(n),w=Co(p),E=De=>{i.referrerPolicy=De},R=De=>{i.contentCssCors=De},B=De=>{Xi(Uh(p),De)},Y=De=>{const ze=Uh(p);Ke(ze," # "+De).each(pr)},re=De=>mo(d,De).getOrThunk(()=>({id:" mce - u "+l++,passed:[],failed:[],count:0})),ce=De=>new Promise((ze,dt)=>{let pt;const vt=dn._addCacheSuffix(De),Ot=re(vt);d[vt]=Ot,Ot.count++;const fn=($t,vn)=>{Pe($t,Rn),Ot.status=vn,Ot.passed=[],Ot.failed=[],pt&&(pt.onload=null,pt.onerror=null,pt=null)},$n=()=>fn(Ot.passed,2),Nn=()=>fn(Ot.failed,3);
Actual: `+pe.join(" , "));if(!Js(i,je=>St(pe,je)))throw new Error(" Not all branches were specified when using match . Specified : "+pe.join(" , ")+`
Required: `+i.join(" , "));return ce[E].apply(null,B)},log:ce=>{console.log(ce,{constructors:i,constructor:E,params:B})}}}}),l}};ig.generate([{bothErrors:[" error1 "," error2 "]},{firstError:[" error1 "," value2 "]},{secondError:[" value1 "," error2 "]},{bothValues:[" value1 "," value2 "]}]);const $k=n=>{const i=[],l=[];return Pe(n,d=>{d.fold(p=>{i.push(p)},p=>{l.push(p)})}),{errors:i,values:l}},zk=n=>n.type===" inline - command "||n.type===" inline - format ",Z2=n=>n.type===" block - command "||n.type===" block - format ",q2=n=>{const i=d=>fc.error({message:d,pattern:n}),l=(d,p,w)=>{if(n.format!==void 0){let E;if(oe(n.format)){if(!Js(n.format,F))return i(d+" pattern has non - string items in the ` format ` array ");E=n.format}else if(F(n.format))E=[n.format];else return i(d+" pattern has non - string ` format ` parameter ");return fc.value(p(E))}else return n.cmd!==void 0?F(n.cmd)?fc.value(w(n.cmd,n.value)):i(d+" pattern has non - string ` cmd ` parameter "):i(d+" pattern is missing both ` format ` and ` cmd ` parameters ")};if(!ne(n))return i(" Raw pattern is not an object ");if(!F(n.start))return i(" Raw pattern is missing ` start ` parameter ");if(n.end!==void 0){if(!F(n.end))return i(" Inline pattern has non - string ` end ` parameter ");if(n.start.length===0&&n.end.length===0)return i(" Inline pattern has empty ` start ` and ` end ` parameters ");let d=n.start,p=n.end;return p.length===0&&(p=d,d=" "),l(" Inline ",w=>({type:" inline - format ",start:d,end:p,format:w}),(w,E)=>({type:" inline - command ",start:d,end:p,cmd:w,value:E}))}else return n.replacement!==void 0?F(n.replacement)?n.start.length===0?i(" Replacement pattern has empty ` start ` parameter "):fc.value({type:" inline - command ",start:" ",end:n.start,cmd:" mceInsertContent ",value:n.replacement}):i(" Replacement pattern has non - string ` replacement ` parameter "):n.start.length===0?i(" Block pattern has empty ` start ` parameter "):l(" Block ",d=>({type:" block - format ",start:n.start,format:d[0]}),(d,p)=>({type:" block - command ",start:n.start,cmd:d,value:p}))},om=n=>yt(n,Z2),G2=n=>yt(n,zk),Kp=(n,i)=>({inlinePatterns:G2(n),blockPatterns:om(n),dynamicPatternsLookup:i}),gl=n=>{const i=$k(xt(n,q2));return Pe(i.errors,l=>console.error(l.message,l.pattern)),i.values},Al=n=>i=>{const l=n(i);return gl(l)},En=vs().deviceType,Vk=En.isTouch(),Xl=Lr.DOM,Wk=n=>{const i=n.indexOf(" = ")>0?n.split(/[;,](?![^=;,]*(?:[;,]|$))/):n.split(" , ");return pn(i,(l,d)=>{const p=d.split(" = "),w=p[0],E=p.length>1?p[1]:w;return l[pc(w)]=pc(E),l},{})},K2=n=>ee(n,RegExp),to=n=>i=>i.options.get(n),Cc=n=>F(n)||ne(n),Y2=(n,i=" ")=>l=>{const d=F(l);if(d)if(l.indexOf(" = ")!==-1){const p=Wk(l);return{value:mo(p,n.id).getOr(i),valid:d}}else return{value:l,valid:d};else return{valid:!1,message:" Must be a string . "}},n0=n=>{const i=n.options.register;i(" id ",{processor:" string ",default:n.id}),i(" selector ",{processor:" string "}),i(" target ",{processor:" object "}),i(" suffix ",{processor:" string "}),i(" cache _suffix ",{processor:" string "}),i(" base _url ",{processor:" string "}),i(" referrer _policy ",{processor:" string ",default:" "}),i(" language _load ",{processor:" boolean ",default:!0}),i(" inline ",{processor:" boolean ",default:!1}),i(" iframe _attrs ",{processor:" object ",default:{}}),i(" doctype ",{processor:" string ",default:" < ! DOCTYPE html > "}),i(" document _base _url ",{processor:" string ",default:n.documentBaseUrl}),i(" body _id ",{processor:Y2(n," tinymce "),default:" tinymce "}),i(" body _class ",{processor:Y2(n),default:" "}),i(" content _security _policy ",{processor:" string ",default:" "}),i(" br _in _pre ",{processor:" boolean ",default:!0}),i(" forced _root _block ",{processor:l=>{const d=F(l)&&gr(l);return d?{value:l,valid:d}:{valid:!1,message:" Must be a non - empty string . "}},default:" p "}),i(" forced _root _block _attrs ",{processor:" object ",default:{}}),i(" newline _behavior ",{processor:l=>{const d=St([" block "," linebreak "," invert "," default "],l);return d?{value:l,valid:d}:{valid:!1,message:" Must be one of : block , linebreak , invert or default . "}},default:" default "}),i(" br _newline _selector ",{processor:" string ",default:" . mce - toc h2 , figcaption , caption "}),i(" no _newline _selector ",{processor:" string ",default:" "}),i(" keep _styles ",{processor:" boolean ",default:!0}),i
\r \v`.indexOf(n)!==-1,p0=n=>!wh(n)&&!Ks(n)&&!X0(n),EE=n=>({value:d3(n)}),d3=n=>ca(n," # ").toUpperCase(),ay=n=>{const i=n.toString(16);return(i.length===1?" 0 "+i:i).toUpperCase()},OO=n=>{const i=ay(n.red)+ay(n.green)+ay(n.blue);return EE(i)},xE=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,IC=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,gw=(n,i,l,d)=>({red:n,green:i,blue:l,alpha:d}),MO=(n,i,l,d)=>{const p=parseInt(n,10),w=parseInt(i,10),E=parseInt(l,10),R=parseFloat(d);return gw(p,w,E,R)},AE=n=>{if(n===" transparent ")return he.some(gw(0,0,0,0));const i=xE.exec(n);if(i!==null)return he.some(MO(i[1],i[2],i[3]," 1 "));const l=IC.exec(n);return l!==null?he.some(MO(l[1],l[2],l[3],l[4])):he.none()},BC=n=>AE(n).map(OO).map(i=>" # "+i.value).getOr(n),TE=n=>{const i=[];if(n)for(let l=0;l<n.rangeCount;l++)i.push(n.getRangeAt(l));return i},_I=n=>Rs(n,i=>{const l=Q1(i);return l?[Ge.fromDom(l)]:[]}),h3=n=>TE(n).length>1,DE=n=>yt(_I(n),$m),ly=n=>dl(n," td [ data - mce - selected ] , th [ data - mce - selected ] "),pw=(n,i)=>{const l=ly(i);return l.length>0?l:DE(n)},b0=n=>pw(TE(n.selection.getSel()),Ge.fromDom(n.getBody())),ap=(n,i)=>_e(n," table ",i),m3=n=>{const i=n.startContainer,l=n.startOffset;return wn(i)?l===0?he.some(Ge.fromDom(i)):he.none():he.from(i.childNodes[l]).map(Ge.fromDom)},RO=n=>{const i=n.endContainer,l=n.endOffset;return wn(i)?l===i.data.length?he.some(Ge.fromDom(i)):he.none():he.from(i.childNodes[l-1]).map(Ge.fromDom)},g3=n=>oi(n).fold(tt([n]),i=>[n].concat(g3(i))),OE=n=>Cu(n).fold(tt([n]),i=>Xr(i)===" br "?ya(i).map(l=>[n].concat(OE(l))).getOr([]):[n].concat(OE(i))),cy=(n,i)=>ni(m3(i),RO(i),(l,d)=>{const p=Xn(g3(n),Le(mt,l)),w=Xn(OE(n),Le(mt,d));return p.isSome()&&w.isSome()}).getOr(!1),ME=(n,i,l,d)=>{const p=l,w=new pi(l,p),E=Ut(n.schema.getMoveCaretBeforeOnEnterElements(),(B,Y)=>!St([" td "," th "," table "],Y.toLowerCase()));let R=l;do{if(wn(R)&&dn.trim(R.data).length!==0){d?i.setStart(R,0):i.setEnd(R,R.data.length);return}if(E[R.nodeName]){d?i.setStartBefore(R):R.nodeName===" BR "?i.setEndBefore(R):i.setEndAfter(R);return}}while(R=d?w.next():w.prev());p.nodeName===" BODY "&&(d?i.setStart(p,0):i.setEnd(p,p.childNodes.length))},LC=n=>{const i=n.selection.getSel();return ye(i)&&i.rangeCount>0},RE=(n,i)=>{const l=b0(n);l.length>0?Pe(l,d=>{const p=d.dom,w=n.dom.createRng();w.setStartBefore(p),w.setEndAfter(p),i(w,!0)}):i(n.selection.getRng(),!1)},p3=(n,i,l)=>{const d=vr(n,i);l(d),n.moveToBookmark(d)},bw=n=>lt(n==null?void 0:n.nodeType),NE=n=>Yn(n)&&!Id(n)&&!$c(n)&&!_d(n),NO=(n,i)=>{if(NE(i)&&!/^(TD|TH)$/.test(i.nodeName)){const l=n.getAttrib(i," data - mce - selected "),d=parseInt(l,10);return!isNaN(d)&&d>0}else return!1},lm=n=>n.isContentEditable===!0,b3=(n,i,l)=>{const{selection:d,dom:p}=n,w=d.getNode(),E=xs(w);p3(d,!0,()=>{i()}),E&&xs(w)&&p.isChildOf(w,n.getBody())?n.selection.select(w):l(d.getStart())&&PO(p,d)},PO=(n,i)=>{var l,d;const p=i.getRng(),{startContainer:w,startOffset:E}=p,R=i.getNode();if(!NO(n,R)&&Yn(w)){const B=w.childNodes,Y=n.getRoot();let re;if(E<B.length){const ce=B[E];re=new pi(ce,(l=n.getParent(ce,n.isBlock))!==null&&l!==void 0?l:Y)}else{const ce=B[B.length-1];re=new pi(ce,(d=n.getParent(ce,n.isBlock))!==null&&d!==void 0?d:Y),re.next(!0)}for(let ce=re.current();ce;ce=re.next()){if(n.getContentEditable(ce)===" false ")return;if(wn(ce)&&!Ql(ce)){p.setStart(ce,0),i.setRng(p);return}}}},Kn=(n,i,l)=>{if(n){const d=i?" nextSibling ":" previousSibling ";for(n=l?n:n[d];n;n=n[d])if(Yn(n)||!Ql(n))return n}},$l=(n,i)=>!!n.getTextBlockElements()[i.nodeName.toLowerCase()]||Ym(n,i),cm=(n,i,l)=>n.schema.isValidChild(i,l),Ql=(n,i=!1)=>{if(ye(n)&&wn(n)){const l=i?n.data.replace(/ /g," \ xA0 "):n.data;return Um(l)}else return!1},um=n=>ye(n)&&wn(n)&&n.length===0,v3=(n,i)=>{const l=" [ data - mce - cef - wrappable ] ",d=Cb(n),p=Ja(d)?l:`${l},${d}`;return _u(Ge.fromDom(i),p)},vw=(n,i)=>{const l=n.dom;return NE(i)&&l.getContentEditable(i)===" false "&&v3(n,i)&&l.select('[contenteditable=" true "]',i).length===0},_h=(n,i)=>be(n)?n(i):(ye(i)&&(n=n.replace(/%(\w+)/g,(l,d)=>i[d]||l)),n),FC=(n,i)=>(n=n||" ",i=i||" ",n=" "+(n.nodeName||n),i=" "
]*|<br \\/>[\r
]*)$`);return i.replace(d," ")},jW=(n,i)=>{const l=n.getDoc(),d=jl(Ge.fromDom(n.getBody())),p=Ge.fromTag(" div ",l);xr(p," data - mce - bogus "," all "),oa(p,{position:" fixed ",left:" - 9999999 px ",top:" 0 "}),Cf(p,i.innerHTML),Z3(p),jI(p);const w=H1(d);Xi(w,p);const E=In(p.dom.innerText);return pr(p),E},ZW=(n,i,l)=>{let d;return i.format===" raw "?d=dn.trim(WW(n.serializer,l.innerHTML)):i.format===" text "?d=jW(n,l):i.format===" tree "?d=n.serializer.serialize(l,i):d=UW(n,n.serializer.serialize(l,i)),i.format!==" text "&&!Jc(Ge.fromDom(l))&&F(d)?dn.trim(d):d},qW=(n,i)=>he.from(n.getBody()).fold(tt(i.format===" tree "?new Fd(" body ",11):" "),l=>ZW(n,i,l)),ex=dn.makeMap,pM=n=>{const i=[];n=n||{};const l=n.indent,d=ex(n.indent_before||" "),p=ex(n.indent_after||" "),w=qg.getEncodeFunc(n.entity_encoding||" raw ",n.entities),E=n.element_format!==" xhtml ";return{start:(R,B,Y)=>{if(l&&d[R]&&i.length>0){const re=i[i.length-1];re.length>0&&re!==`
`&&i.push(`
`)}if(i.push(" < ",R),B)for(let re=0,ce=B.length;re<ce;re++){const pe=B[re];i.push(" ",pe.name,'=" ',w(pe.value,!0),' "')}if(!Y||E?i[i.length]=" > ":i[i.length]=" / > ",Y&&l&&p[R]&&i.length>0){const re=i[i.length-1];re.length>0&&re!==`
`&&i.push(`
`)}},end:R=>{let B;i.push(" < / " , R , " > " ) , l & & p [ R ] & & i . l e n g t h > 0 & & ( B = i [ i . l e n g t h - 1 ] , B . l e n g t h > 0 & & B ! = = `
` &&i.push( `
` ))},text:(R,B)=>{R.length>0&&(i[i.length]=B?R:w(R))},cdata:R=>{i.push("<![CDATA[",R,"]]>")},comment:R=>{i.push("<!--",R,"-->")},pi:(R,B)=>{B?i.push("<?",R," ",w(B),"?>"):i.push("<?",R,"?>"),l&&i.push( `
` )},doctype:R=>{i.push("<!DOCTYPE",R,">",l? `
` :"")},reset:()=>{i.length=0},getContent:()=>i.join("").replace(/ \n $ /,"")}},Pw=(n={},i=fh())=>{const l=pM(n);return n.validate="validate"in n?n.validate:!0,{serialize:p=>{const w=n.validate,E={3:B=>{var Y;l.text((Y=B.value)!==null&&Y!==void 0?Y:"",B.raw)},8:B=>{var Y;l.comment((Y=B.value)!==null&&Y!==void 0?Y:"")},7:B=>{l.pi(B.name,B.value)},10:B=>{var Y;l.doctype((Y=B.value)!==null&&Y!==void 0?Y:"")},4:B=>{var Y;l.cdata((Y=B.value)!==null&&Y!==void 0?Y:"")},11:B=>{let Y=B;if(Y=Y.firstChild)do R(Y);while(Y=Y.next)}};l.reset();const R=B=>{var Y;const re=E[B.type];if(re)re(B);else{const ce=B.name,pe=ce in i.getVoidElements();let Ie=B.attributes;if(w&&Ie&&Ie.length>1){const je=[];je.map={};const De=i.getElementRule(B.name);if(De){for(let ze=0,dt=De.attributesOrder.length;ze<dt;ze++){const pt=De.attributesOrder[ze];if(pt in Ie.map){const vt=Ie.map[pt];je.map[pt]=vt,je.push({name:pt,value:vt})}}for(let ze=0,dt=Ie.length;ze<dt;ze++){const pt=Ie[ze].name;if(!(pt in je.map)){const vt=Ie.map[pt];je.map[pt]=vt,je.push({name:pt,value:vt})}}Ie=je}}if(l.start(ce,Ie,pe),!pe){let je=B.firstChild;if(je){(ce==="pre"||ce==="textarea")&&je.type===3&&((Y=je.value)===null||Y===void 0?void 0:Y[0])=== `
` &&l.text( `
` ,!0);do R(je);while(je=je.next)}l.end(ce)}}};return p.type===1&&!n.inner?R(p):p.type===3?E[3](p):E[11](p),l.getContent()}}},ZI=new Set;Pe(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],i=>{ZI.add(i)});const ms=["font","text-decoration","text-emphasis"],bM=(n,i)=>gs(n.parseStyle(n.getAttrib(i,"style"))),Ss=n=>ZI.has(n),qI=(n,i)=>Js(bM(n,i),l=>!Ss(l)),Ese=n=>yt(n,i=>Xt(ms,l=>kr(i,l))),xse=(n,i,l)=>{const d=bM(n,i),p=bM(n,l),w=E=>{var R,B;const Y=(R=n.getStyle(i,E))!==null&&R!==void 0?R:"",re=(B=n.getStyle(l,E))!==null&&B!==void 0?B:"";return gr(Y)&&gr(re)&&Y!==re};return Xt(d,E=>{const R=B=>Xt(B,Y=>Y===E);if(!R(p)&&R(ms)){const B=Ese(p);return Xt(B,w)}else return w(E)})},GI=(n,i,l)=>he.from(l.container()).filter(wn).exists(d=>{const p=n?0:-1;return i(d.data.charAt(l.offset()+p))}),KI=Le(GI,!0,wh),YI=Le(GI,!1,wh),GW=n=>{const i=n.container();return wn(i)&&(i.data.length===0||Cn(i.data)&&uy.isBookmarkNode(i.parentNode))},py=(n,i)=>l=>d0(n?0:-1,l).filter(i).isSome(),Qo=n=>zi(n)&&Mi(Ge.fromDom(n),"display")==="block",XI=n=>xs(n)&&!hl(n),KW=py(!0,Qo),YW=py(!1,Qo),Hb=py(!0,qu),oS=py(!1,qu),JI=py(!0,xu),QI=py(!1,xu),by=py(!0,XI), $ b=py(!1,XI),XW=n=>n.slice(0,-1),Ase=(n,i,l)=>ln(i,n)?XW(qd(n,d=>l(d)||mt(d,i))):[],JW=(n,i)=>Ase(n,i,Ye),zb=(n,i)=>[n].concat(JW(n,i)),vM=(n,i,l)=>vE(n,i,l,GW),eB=(n,i)=>Xn(zb(Ge.fromDom(i.container()),n),ac),tB=(n,i,l)=>vM(n,i.dom,l).forall(d=>eB(i,l).fold(()=>!Rd(d,l,i.dom),p=>!Rd(d,l,i.dom)&&ln(p,Ge.fromDom(d.container())))),yM=(n,i,l)=>eB(i,l).fold(()=>vM(n,i.dom,l).forall(d=>!Rd(d,l,i.dom)),d=>vM(n,d.dom,l).isNone()),wM=Le(yM,!1),Ms=Le(yM,!0),nB=Le(tB,!1),q3=Le(tB,!0),oB=n=>Ve(n).exists(Xc),tx=(n,i,l)=>{const d=yt(zb(Ge.fromDom(l.container()),i),ac),p=No(d).getOr(i);return Nd(n,p.dom,l).filter(oB)},G3=(n,i)=>Ve(i).exists(Xc)||tx(!0,n,i).isSome(),K3=(n,i)=>ut(i).exists(Xc)||tx(!1,n,i).isSome(),sB=Le(tx,!1),QW=Le(tx,!0),_M=n=>Vt.isTextPosition(n)&&!n.isAtStart()&&!n.isAtEnd(),rB=(n,i)=>{const l=yt(zb(Ge.fromDom(i.container()),n),ac);return No(l).getOr(n)},iB=(n,i)=>_M(i)?YI(i):YI(i)||Ru(rB(n,i).dom,i).exists(YI),aB=(n,i)=>_M(i)?KI(i):KI(i)||Rf(rB(n,i).dom,i).exists(KI),eU=n=>St(["pre","pre-wrap"],n),CM=n=>Ve(n).bind(i=>Bl(i,_l)).exists(i=>eU(Mi(i,"white-space"))),tU=(n,i)=>Ru(n.dom,i).isNone(),nU=(n,i)=>Rf(n.dom,i).isNone(),oU=(n,i)=>tU(n,i)||nU(n,i)||wM(n,i)||Ms(n,i)||K3(n,i)||G3(n,i),SM=n=>ye(n)&&xs(n)&&RC(n),Y3=(n,i)=>l=>SM(new pi(l,n)[i]()),sU=(n,i)=>{const l=Rf(n.dom,i).getOr(i),d=Y3(n.dom,"next");return i.isAtEnd()&&(d(i.container())||d(l.container()))},rU=(n,i)=>{const l=Ru(n.dom,i).getOr(i),d=Y3(n.dom,"prev");return i.isAtStart()&&(d(i.container())||d(l.container()))},lB=(n,i)=>CM(i)?!1:oU(n,i)||iB(n,i)||aB(n,i),nx=(n,i)=>CM(i)?!1:wM(n,i)||nB(n,i)||K3(n,i)||iB(n,i)||rU(n,i),iU=n=>{const i=n.container(),l=n.offset();return wn(i)&&l<i.data.length?Vt(i,l+1):n},ox=(n,i)=>CM(i)?!1:Ms(n,i)||q3(n,i)||G3(n,i)||aB(n,i)||sU(n,i),kM=(n,i)=>nx(n,i)||ox(n,iU(i)),cB=(n,i)=>Ks(n.charAt(i)),EM=(n,i)=>wh(n.charAt(i)),aU=n=>{const i=n.container();return wn(i)&&Qs(i.data,Gr)},lU=n=>{const i=n.split("");return xt(i,(l,d)=>Ks(l)&&d>0&&d<i.length-1&&p0(i[d-1])&&p0(i[d+1])?" ":l).join("")},vy=(n,i,l)=>{const d=i.data,p=Vt(i,0);return!l&&cB(d,0)&&!kM(n,p)?(i.data=" "+d.slice(1),!0):l&&EM(d,0)&&nx(n,p)?(i.data=Gr+d.slice(1),!0):!1},cU=n=>{const i=n.data,l=lU(i);return l!==i?(n.data=l,!0):!1},xM=(n,i,l)=>{const d=i.data,p=Vt(i,d.length-1);return!l&&cB(d,d.length-1)&&!kM(n,p)?(i.data=d.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method. ` ) } var ML = Object . hasOwnProperty , kx = Object . setPrototypeOf , kj = Object . isFrozen , Ej = Object . getPrototypeOf , Sy = Object . getOwnPropertyDescriptor , rd = Object . freeze , i1 = Object . seal , Ex = Object . create , xR = typeof Reflect < "u" && Reflect , vS = xR . apply , kT = xR . construct ; vS || ( vS = function ( i , l , d ) { return i . apply ( l , d ) } ) , rd || ( rd = function ( i ) { return i } ) , i1 || ( i1 = function ( i ) { return i } ) , kT || ( kT = function ( i , l ) { return Sx ( i , r1 ( l ) ) } ) ; var RL = bg ( Array . prototype . forEach ) , xj = bg ( Array . prototype . pop ) , xx = bg ( Array . prototype . push ) , ET = bg ( String . prototype . toLowerCase ) , AR = bg ( String . prototype . match ) , ky = bg ( String . prototype . replace ) , NL = bg ( String . prototype . indexOf ) , Aj = bg ( String . prototype . trim ) , Eh = bg ( RegExp . prototype . test ) , TR = Nf ( TypeError ) ; function bg ( n ) { return function ( i ) { for ( var l = arguments . length , d = new Array ( l > 1 ? l - 1 : 0 ) , p = 1 ; p < l ; p ++ ) d [ p - 1 ] = arguments [ p ] ; return vS ( n , i , d ) } } function Nf ( n ) { return function ( ) { for ( var i = arguments . length , l = new Array ( i ) , d = 0 ; d < i ; d ++ ) l [ d ] = arguments [ d ] ; return kT ( n , l ) } } function Ni ( n , i ) { kx && kx ( n , null ) ; for ( var l = i . length ; l -- ; ) { var d = i [ l ] ; if ( typeof d == "string" ) { var p = ET ( d ) ; p !== d && ( kj ( i ) || ( i [ l ] = p ) , d = p ) } n [ d ] = ! 0 } return n } function w0 ( n ) { var i = Ex ( null ) , l ; for ( l in n ) vS ( ML , n , [ l ] ) && ( i [ l ] = n [ l ] ) ; return i } function _0 ( n , i ) { for ( ; n !== null ; ) { var l = Sy ( n , i ) ; if ( l ) { if ( l . get ) return bg ( l . get ) ; if ( typeof l . value == "function" ) return bg ( l . value ) } n = Ej ( n ) } function d ( p ) { return console . warn ( "fallback value for" , p ) , null } return d } var DR = rd ( [ "a" , "abbr" , "acronym" , "address" , "area" , "article" , "aside" , "audio" , "b" , "bdi" , "bdo" , "big" , "blink" , "blockquote" , "body" , "br" , "button" , "canvas" , "caption" , "center" , "cite" , "code" , "col" , "colgroup" , "content" , "data" , "datalist" , "dd" , "decorator" , "del" , "details" , "dfn" , "dialog" , "dir" , "div" , "dl" , "dt" , "element" , "em" , "fieldset" , "figcaption" , "figure" , "font" , "footer" , "form" , "h1" , "h2" , "h3" , "h4" , "h5" , "h6" , "head" , "header" , "hgroup" , "hr" , "html" , "i" , "img" , "input" , "ins" , "kbd" , "label" , "legend" , "li" , "main" , "map" , "mark" , "marquee" , "menu" , "menuitem" , "meter" , "nav" , "nobr" , "ol" , "optgroup" , "option" , "output" , "p" , "picture" , "pre" , "progress" , "q" , "rp" , "rt" , "ruby" , "s" , "samp" , "section" , "select" , "shadow" , "small" , "source" , "spacer" , "span" , "strike" , "strong" , "style" , "sub" , "summary" , "sup" , "table" , "tbody" , "td" , "template" , "textarea" , "tfoot" , "th" , "thead" , "time" , "tr" , "track" , "tt" , "u" , "ul" , "var" , "video" , "wbr" ] ) , id = rd ( [ "svg" , "a" , "altglyph" , "altglyphdef" , "altglyphitem" , "animatecolor" , "animatemotion" , "animatetransform" , "circle" , "clippath" , "defs" , "desc" , "ellipse" , "filter" , "font" , "g" , "glyph" , "glyphref" , "hkern" , "image" , "line" , "lineargradient" , "marker" , "mask" , "metadata" , "mpath" , "path" , "pattern" , "polygon" , "polyline" , "radialgradient" , "rect" , "stop" , "style" , "switch" , "symbol" , "text" , "textpath" , "title" , "tref" , "tspan" , "view" , "vkern" ] ) , Gb = rd ( [ "feBlend" , "feColorMatrix" , "feComponentTransfer" , "feComposite" , "feConvolveMatrix" , "feDiffuseLighting" , "feDisplacementMap" , "feDistantLight" , "feFlood" , "feFuncA" , "feFuncB" , "feFuncG" , "feFuncR" , "feGaussianBlur" , "feImage" , "feMerge" , "feMergeNode" , "feMorphology" , "feOffset" , "fePointLight" , "feSpecularLighting" , "feSpotLight" , "feTile" , "feTurbulence" ] ) , PL = rd ( [ "animate" , "color-profile" , "cursor" , "discard" , "fedropshadow" , "font-face" , "font-face-format" , "font-face-name" , "font-face-src" , "font-face-uri" , "foreignobject" , "hatch" , "hatchpath" , "mesh" , "meshgradient" , "meshpatch" , "meshrow" , "missing-glyph" , "script" , "set" , "solidcolor" , "unknown" , "use" ] ) , OR = rd ( [ "math" , "menclose" , "merror" , "mfenced" , "mfrac" , "mglyph" , "mi" , "mlabeledtr" , "mmultiscripts" , "mn" , "mo" , "mover" , "mpadded" , "mphantom" , "mroot" , "mrow" , "ms" , "mspace" , "msqrt" , "mstyle" , "msub" , "msup" , "msubsup" , "mtable" , "mtd" , "mtext" , "mtr" , "munder" , "munderover" ] ) , IL = rd ( [ "maction" , "maligngroup" , "malignmark" , "mlongdiv" , "mscarries" , "mscarry" , "msgroup" , "mstack" , "msline" , "msrow" , "semantics" , "annotation" , "annotation-xml" , "mprescripts" , "none" ] ) , BL = rd ( [ "#text" ] ) , MR = rd ( [ "accept" , "action" , "align" , "alt" , "autocapitalize" , "autocomplete" , "autopictureinpicture" , "autoplay" , "background" , "bgcolor" , "border" , "capture" , "cellpadding" , "cellspacing" , "checked" , "cite" , "class" , "clear" , "color" , "cols" , "colspan" , "controls" , "
`+ld),Us&&(ld=ky(ld,Ws," "),ld=ky(ld,Nr," ")),Ot&&$d?Ot.createHTML(ld):ld},i.setConfig=function($s){DA($s),Ka=!0},i.clearConfig=function(){cv=null,Ka=!1},i.isValidAttribute=function($s,qt,po){cv||DA({});var ys=A0($s),yl=A0(qt);return OA(ys,yl,po)},i.addHook=function($s,qt){typeof qt==" function "&&(_s[$s]=_s[$s]||[],xx(_s[$s],qt))},i.removeHook=function($s){if(_s[$s])return xj(_s[$s])},i.removeHooks=function($s){_s[$s]&&(_s[$s]=[])},i.removeAllHooks=function(){_s={}},i}var FL=TT();const BR=dn.each,HL=dn.trim,Rj=[" source "," protocol "," authority "," userInfo "," user "," password "," host "," port "," relative "," path "," directory "," file "," query "," anchor "],Nj={ftp:21,http:80,https:443,mailto:25},Pj=[" img "," video "],Ij=(n,i)=>ye(n)?!n:ye(i)?!St(Pj,i):!0,Bj=n=>{try{return decodeURIComponent(n)}catch{return unescape(n)}},LR=(n,i,l)=>{const d=Bj(i).replace(/\s/g," ");return n.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(d)?!0:n.allow_html_data_urls?!1:/^data:image\//i.test(d)?Ij(n.allow_svg_data_urls,l)&&/^data:image\/svg\+xml/i.test(d):/^data:/i.test(d)};class a1{static parseDataUri(i){let l;const d=decodeURIComponent(i).split(" , "),p=/data:([^;]+)/.exec(d[0]);return p&&(l=p[1]),{type:l,data:d[1]}}static isDomSafe(i,l,d={}){if(d.allow_script_urls)return!0;{const p=qg.decode(i).replace(/[\s\u0000-\u001F]+/g," ");return!LR(d,p,l)}}static getDocumentBaseUrl(i){var l;let d;return i.protocol.indexOf(" http ")!==0&&i.protocol!==" file : "?d=(l=i.href)!==null&&l!==void 0?l:" ":d=i.protocol+" //"+i.host+i.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(d)&&(d=d.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(d)||(d+="/")),d}constructor(i,l={}){this.path="",this.directory="",i=HL(i),this.settings=l;const d=l.base_uri,p=this;if(/^([\w\-]+):([^\/]{2})/i.test(i)||/^\s*#/.test(i)){p.source=i;return}const w=i.indexOf("//")===0;if(i.indexOf("/")===0&&!w&&(i=(d&&d.protocol||"http")+"://mce_host"+i),!/^[\w\-]*:?\/\//.test(i)){const R=d?d.path:new a1(document.location.href).directory;if((d==null?void 0:d.protocol)==="")i="//mce_host"+p.toAbsPath(R,i);else{const B=/([^#?]*)([#?]?.*)/.exec(i);B&&(i=(d&&d.protocol||"http")+"://mce_host"+p.toAbsPath(R,B[1])+B[2])}}i=i.replace(/@@/g,"(mce_at)");const E=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(i);E&&BR(Rj,(R,B)=>{let Y=E[B];Y&&(Y=Y.replace(/\(mce_at\)/g,"@@")),p[R]=Y}),d&&(p.protocol||(p.protocol=d.protocol),p.userInfo||(p.userInfo=d.userInfo),!p.port&&p.host==="mce_host"&&(p.port=d.port),(!p.host||p.host==="mce_host")&&(p.host=d.host),p.source=""),w&&(p.protocol="")}setPath(i){const l=/^(.*?)\/?(\w+)?$/.exec(i);l&&(this.path=l[0],this.directory=l[1],this.file=l[2]),this.source="",this.getURI()}toRelative(i){if(i==="./")return i;const l=new a1(i,{base_uri:this});if(l.host!=="mce_host"&&this.host!==l.host&&l.host||this.port!==l.port||this.protocol!==l.protocol&&l.protocol!=="")return l.getURI();const d=this.getURI(),p=l.getURI();if(d===p||d.charAt(d.length-1)==="/"&&d.substr(0,d.length-1)===p)return d;let w=this.toRelPath(this.path,l.path);return l.query&&(w+="?"+l.query),l.anchor&&(w+="#"+l.anchor),w}toAbsolute(i,l){const d=new a1(i,{base_uri:this});return d.getURI(l&&this.isSameOrigin(d))}isSameOrigin(i){if(this.host==i.host&&this.protocol==i.protocol){if(this.port==i.port)return!0;const l=this.protocol?Nj[this.protocol]:null;if(l&&(this.port||l)==(i.port||l))return!0}return!1}toRelPath(i,l){let d=0,p="",w,E;const R=i.substring(0,i.lastIndexOf("/")).split("/"),B=l.split("/");if(R.length>=B.length){for(w=0,E=R.length;w<E;w++)if(w>=B.length||R[w]!==B[w]){d=w+1;break}}if(R.length<B.length){for(w=0,E=B.length;w<E;w++)if(w>=R.length||R[w]!==B[w]){d=w+1;break}}if(d===1)return l;for(w=0,E=R.length-(d-1);w<E;w++)p+="../";for(w=d-1,E=B.length;w<E;w++)w!==d-1?p+="/"+B[w]:p+=B[w];return p}toAbsPath(i,l){let d=0;const p=/\/$/.test(l)?"/":"",w=i.split("/"),E=l.split("/"),R=[];BR(w,ce=>{ce&&R.push(ce)});const B=[];for(let ce=E.length-1;ce>=0;ce-
` ).replace(/^[ \r \n ]*|[ \r \n ]* $ /g,"").replace(/^ \s *((<!--)?( \s * \/ \/ )? \s *<! \[ CDATA \[ |(<!-- \s *)? \/ \* \s *<! \[ CDATA \[ \s * \* \/ |( \/ \/ )? \s *<!--| \/ \* \s *<!-- \s * \* \/ ) \s *[ \r \n ]*/gi,"").replace(/ \s *( \/ \* \s * \] \] > \s * \* \/ (-->)?| \s * \/ \/ \s * \] \] >(-->)?| \/ \/ \s *(-->)?| \] \] >| \/ \* \s *--> \s * \* \/ | \s *--> \s *) \s * $ /g,"");let R=d.length;for(;R--;){const B=d[R],Y=B.firstChild,re=(w=Y==null?void 0:Y.value)!==null&&w!==void 0?w:"";if(p==="script"){const ce=B.attr("type");ce&&B.attr("type",ce==="mce-no/type"?null:ce.replace(/^mce \- /,"")),i.element_format==="xhtml"&&Y&&re.length>0&&(Y.value= ` // <![CDATA[
` +E(re)+ `
// ]]>`)}else i.element_format==="xhtml"&&Y&&re.length>0&&(Y.value=`<!--
` +E(re)+ `
-- > ` )}}),n.addNodeFilter("#comment",d=>{let p=d.length;for(;p--;){const w=d[p],E=w.value;i.preserve_cdata&&(E==null?void 0:E.indexOf("[CDATA["))===0?(w.name="#cdata",w.type=4,w.value=l.decode(E.replace(/^ \[ CDATA \[ | \] \] $ /g,""))):(E==null?void 0:E.indexOf("mce:protected "))===0&&(w.name="#text",w.type=3,w.raw=!0,w.value=unescape(E).substr(14))}}),n.addNodeFilter("xml:namespace,input",(d,p)=>{let w=d.length;for(;w--;){const E=d[w];E.type===7?E.remove():E.type===1&&p==="input"&&!E.attr("type")&&E.attr("type","text")}}),n.addAttributeFilter("data-mce-type",d=>{Pe(d,p=>{p.attr("data-mce-type")==="format-caret"&&(p.isEmpty(n.schema.getNonEmptyElements())?p.remove():p.unwrap())})}),n.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(d,p)=>{let w=d.length;for(;w--;)d[w].attr(p,null)}),i.remove_trailing_brs&&CR(i,n,n.schema)},MZ=n=>{const i=d=>(d==null?void 0:d.name)==="br",l=n.lastChild;if(i(l)){const d=l.prev;i(d)&&(l.remove(),d.remove())}},x8=(n,i,l)=>{let d;const p=n.dom;let w=i.cloneNode(!0);const E=document.implementation;if(E.createHTMLDocument){const R=E.createHTMLDocument("");dn.each(w.nodeName==="BODY"?w.childNodes:[w],B=>{R.body.appendChild(R.importNode(B,!0))}),w.nodeName!=="BODY"?w=R.body.firstChild:w=R.body,d=p.doc,p.doc=R}return k3(n,{...l,node:w}),d&&(p.doc=d),w},A8=(n,i)=>ye(n)&&n.hasEventListeners("PreProcess")&&!i.no_events,T8=(n,i,l)=>A8(n,l)?x8(n,i,l):i,D8=(n,i,l)=>{dn.inArray(i,l)===-1&&(n.addAttributeFilter(l,(d,p)=>{let w=d.length;for(;w--;)d[w].attr(p,null)}),i.push(l))},a5=(n,i,l)=>!i.no_events&&n?VE(n,{...i,content:l}).content:l,Vse=(n,i,l)=>{const d=In(l.getInner?i.innerHTML:n.getOuterHTML(i));return l.selection||Jc(Ge.fromDom(i))?d:dn.trim(d)},RZ=(n,i,l)=>{const d=l.selection?{forced_root_block:!1,...l}:l,p=n.parse(i,d);return MZ(p),p},Wse=(n,i,l)=>Pw(n,i).serialize(l),NZ=(n,i,l,d,p)=>{const w=Wse(i,l,d);return a5(n,p,w)},PZ=(n,i)=>{const l=["data-mce-selected"],d={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...n},p=i&&i.dom?i.dom:Lr.DOM,w=i&&i.schema?i.schema:fh(d),E=yS(d,w);OZ(E,d,p);const R=(B,Y={})=>{const re={format:"html",...Y},ce=T8(i,B,re),pe=Vse(p,ce,re),Ie=RZ(E,pe,re);return re.format==="tree"?Ie:NZ(i,d,w,Ie,re)};return{schema:w,addNodeFilter:E.addNodeFilter,addAttributeFilter:E.addAttributeFilter,serialize:R,addRules:w.addValidElements,setRules:w.setValidElements,addTempAttr:Le(D8,E,l),getTempAttrs:tt(l),getNodeFilters:E.getNodeFilters,getAttributeFilters:E.getAttributeFilters,removeNodeFilter:E.removeNodeFilter,removeAttributeFilter:E.removeAttributeFilter}},c1=(n,i)=>{const l=PZ(n,i);return{schema:l.schema,addNodeFilter:l.addNodeFilter,addAttributeFilter:l.addAttributeFilter,serialize:l.serialize,addRules:l.addRules,setRules:l.setRules,addTempAttr:l.addTempAttr,getTempAttrs:l.getTempAttrs,getNodeFilters:l.getNodeFilters,getAttributeFilters:l.getAttributeFilters,removeNodeFilter:l.removeNodeFilter,removeAttributeFilter:l.removeAttributeFilter}},Use="html",jse=(n,i)=>({...n,format:i,get:!0,getInner:!0}),IZ=(n,i={})=>{const l=i.format?i.format:Use,d=jse(i,l);return qL(n,d).fold(Ct,p=>{const w=kZ(n,p);return GL(n,w,p)})},Mx="html",BZ=(n,i)=>({format:Mx,...n,set:!0,content:i}),IT=(n,i,l={})=>{const d=BZ(l,i);return WR(n,d).map(p=>{const w=EZ(n,p.content,p);return UR(n,w.html,p),w.content}).getOr(i)},O8="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements
- ` , B = E ? `
Themes: ${ R } mobile ` : "" , Y = p ? `
Plugins: ${ R } ${ d . join ( R ) } ` : "" , re = w ? `
Options: ${ R } ${ l . join ( R ) } ` : "" ; console . warn ( "The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information." + B + Y + re ) } } , WZ = n => Xn ( R8 , i => i . name === n ) . fold ( ( ) => n , i => i . replacedWith ? ` ${ n } , replaced by ${ i . replacedWith } ` : n ) , UZ = ( n , i ) => { const l = HZ ( n ) , d = zZ ( i ) , p = d . length > 0 , w = l . length > 0 ; if ( p || w ) { const E = `
- ` , R = p ? `
Plugins: ${ E } ${ d . map ( WZ ) . join ( E ) } ` : "" , B = w ? `
Options: ${ E } ${ l . join ( E ) } ` : "" ; console . warn ( "The following deprecated features are currently enabled but will be removed soon." + R + B ) } } , jZ = ( n , i ) => { VZ ( n , i ) , UZ ( n , i ) } , BT = Lr . DOM , ZZ = n => { BT . setStyle ( n . id , "display" , n . orgDisplay ) } , l5 = n => he . from ( n ) . each ( i => i . destroy ( ) ) , Rx = n => { const i = n ; i . contentAreaContainer = i . formElement = i . container = i . editorContainer = null , i . bodyElement = i . contentDocument = i . contentWindow = null , i . iframeElement = i . targetElm = null ; const l = n . selection ; if ( l ) { const d = l . dom ; i . selection = l . win = l . dom = d . doc = null } } , qZ = n => { const i = n . formElement ; i && ( i . _mceOldSubmit && ( i . submit = i . _mceOldSubmit , delete i . _mceOldSubmit ) , BT . unbind ( i , "submit reset" , n . formEventDelegate ) ) } , c5 = n => { if ( ! n . removed ) { const { _selectionOverrides : i , editorUpload : l } = n , d = n . getBody ( ) , p = n . getElement ( ) ; d && n . save ( { is _removing : ! 0 } ) , n . removed = ! 0 , n . unbindAllNativeEvents ( ) , n . hasHiddenInput && ye ( p == null ? void 0 : p . nextSibling ) && BT . remove ( p . nextSibling ) , E3 ( n ) , n . editorManager . remove ( n ) , ! n . inline && d && ZZ ( n ) , WC ( n ) , BT . remove ( n . getContainer ( ) ) , l5 ( i ) , l5 ( l ) , n . destroy ( ) } } , GZ = ( n , i ) => { const { selection : l , dom : d } = n ; if ( ! n . destroyed ) { if ( ! i && ! n . removed ) { n . remove ( ) ; return } i || ( n . editorManager . off ( "beforeunload" , n . _beforeUnload ) , n . theme && n . theme . destroy && n . theme . destroy ( ) , l5 ( l ) , l5 ( d ) ) , qZ ( n ) , Rx ( n ) , n . destroyed = ! 0 } } , LT = ( ( ) => { const n = { } ; return { add : ( p , w ) => { n [ p ] = w } , get : p => n [ p ] ? n [ p ] : { icons : { } } , has : p => cn ( n , p ) } } ) ( ) , SS = Na . ModelManager , xy = ( n , i ) => i . dom [ n ] , Ay = ( n , i ) => parseInt ( Mi ( i , n ) , 10 ) , FT = Le ( xy , "clientWidth" ) , HT = Le ( xy , "clientHeight" ) , Yw = Le ( Ay , "margin-top" ) , Xw = Le ( Ay , "margin-left" ) , $T = n => n . dom . getBoundingClientRect ( ) , zT = ( n , i , l ) => { const d = FT ( n ) , p = HT ( n ) ; return i >= 0 && l >= 0 && i <= d && l <= p } , P8 = ( n , i , l , d ) => { const p = $T ( i ) , w = n ? p . left + i . dom . clientLeft + Xw ( i ) : 0 , E = n ? p . top + i . dom . clientTop + Yw ( i ) : 0 , R = l - w , B = d - E ; return { x : R , y : B } } , u5 = ( n , i , l ) => { const d = Ge . fromDom ( n . getBody ( ) ) , p = n . inline ? d : er ( d ) , w = P8 ( n . inline , p , i , l ) ; return zT ( p , w . x , w . y ) } , f5 = n => he . from ( n ) . map ( Ge . fromDom ) , I8 = n => { const i = n . inline ? n . getBody ( ) : n . getContentAreaContainer ( ) ; return f5 ( i ) . map ( vd ) . getOr ( ! 1 ) } ; var B8 = ( ) => { const n = ( ) => { throw new Error ( "Theme did not provide a NotificationManager implementation." ) } ; return { open : n , close : n , getArgs : n } } ; const Jw = n => { const i = [ ] , l = ( ) => { const pe = n . theme ; return pe && pe . getNotificationManagerImpl ? pe . getNotificationManagerImpl ( ) : B8 ( ) } , d = ( ) => he . from ( i [ 0 ] ) , p = ( pe , Ie ) => pe . type === Ie . type && pe . text === Ie . text && ! pe . progressBar && ! pe . timeout && ! Ie . progressBar && ! Ie . timeout , w = ( ) => { Pe ( i , pe => { pe . reposition ( ) } ) } , E = pe => { i . push ( pe ) } , R = pe => { ds ( i , Ie => Ie === pe ) . each ( Ie => { i . splice ( Ie , 1 ) } ) } , B = ( pe , Ie = ! 0 ) => n . removed || ! I8 ( n ) ? { } : ( Ie && n . dispatch ( "BeforeOpenNotification" , { notification : pe } ) , Xn ( i , je => p ( l ( ) . getArgs ( je ) , pe ) ) . getOrThunk ( ( ) => { n . editorManager . setActive ( n ) ; const je = l ( ) . open ( pe , ( ) => { R ( je ) , w ( ) , d ( ) . fold ( ( ) => n . focus ( ) , De => Fb ( Ge . fromDom ( De . getEl ( ) ) ) ) } ) ; return E ( je ) , w ( ) , n . dispatch ( "OpenNotification" , { notification : { ... je } } ) , je } ) ) , Y = ( ) => { d ( ) . each ( pe => { l ( ) . close ( pe ) , R ( pe ) , w ( ) } ) } , re = tt ( i ) ; return ( pe => { pe . on ( "SkinLoaded" , ( ) => { const Ie = mC ( pe ) ; Ie && B ( { text : Ie , type : "warning" , timeout : 0 } , ! 1 ) , w ( ) } ) , pe . on ( "show ResizeEditor ResizeWindow NodeChange" , ( ) => { requestAnimationFrame ( w ) } ) , pe . on ( "remove" , ( ) => { Pe ( i . slice ( ) , Ie => { l ( ) . close ( Ie ) } ) } ) } ) ( n ) , { open : B , close : Y , getNotifications : re } } , Qw = Na . PluginManager , Ty = Na . ThemeManager ; var L8 = ( ) => { const n = ( ) => { throw new Error ( "Theme did not provide a WindowManager implementation." ) } ; return { open : n , openUrl : n , alert : n , confirm : n , close : n } } ; const Nx = n => { let i = [ ] ; const l = ( ) => { const De = n . theme ; return De && De . getWindowManagerImpl ? De . getWindowManagerImpl ( ) : L8 ( ) } , d = ( De , ze ) => ( ... dt ) => ze ? ze . apply ( De , dt ) : void 0 , p = De => { n . dispatch ( "OpenWindow" , { dialog : De } ) } , w = De => { n . dispatch ( "CloseWindow" , { dialog : De } ) } , E = De => { i . push ( De ) , p ( De ) } , R = De => { w ( De ) , i = yt ( i , ze => ze !== De ) , i . length === 0 && n . focus ( ) } , B = ( ) => he . from ( i [ i . length - 1 ] ) , Y = De => { n . editorManager . setActive ( n ) , uM ( n ) , n . ui . show ( ) ; const ze = De ( ) ; return E ( ze ) , ze } , re = ( De , ze ) => Y ( ( ) => l ( ) . open ( De , ze , R ) ) , ce = De => Y ( ( ) => l ( ) . openUrl ( De , R ) ) , pe = ( De , ze , dt ) => { const pt = l ( ) ; pt . alert ( De , d ( dt || pt , ze ) ) } , Ie = ( De , ze , dt ) => { const pt = l ( ) ; pt . confirm ( De , d ( dt || pt , ze ) ) } , je = ( ) => { B ( ) . each ( De => { l ( ) . close ( De ) , R ( De ) } ) } ; return n . on ( "remove" , ( ) => { Pe ( i , De => { l ( ) . close ( De ) } ) } ) , { open : re , o
\ r \ v ` .indexOf(n)!==-1,bN=(n,i)=>n.substring(i.length),lK=(n,i,l)=>{let d;const p=l.charAt(0);for(d=i-1;d>=0;d--){const w=n.charAt(d);if(k7(w))return he.none();if(p===w&&Qs(n,l,d,i))break}return he.some(d)},E7=(n,i,l,d=0)=>{if(!aK(i))return he.none();const p={text:"",offset:0},w=(R,B,Y)=>(p.text=Y+p.text,p.offset+=B,lK(p.text,p.offset,l).getOr(B)),E=n.getParent(i.startContainer,n.isBlock)||n.getRoot();return gN(n,i.startContainer,i.startOffset,w,E).bind(R=>{const B=i.cloneRange();if(B.setStart(R.container,R.offset),B.setEnd(i.endContainer,i.endOffset),B.collapsed)return he.none();const Y=pN(B);return Y.lastIndexOf(l)!==0||bN(Y,l).length<d?he.none():he.some({text:bN(Y,l),range:B,trigger:l})})},vN=(n,i,l,d=0)=>FW(Ge.fromDom(i.startContainer)).fold(()=>E7(n,i,l,d),p=>{const w=n.createRng();w.selectNode(p.dom);const E=pN(w);return he.some({range:w,text:bN(E,l),trigger:l})}),cK=n=>n.nodeType===Ud,uK=n=>n.nodeType=== $ f,x7=n=>{if(cK(n))return yp(n,n.data.length);{const i=n.childNodes;return i.length>0?x7(i[i.length-1]):yp(n,i.length)}},A7=(n,i)=>{const l=n.childNodes;return l.length>0&&i<l.length?A7(l[i],0):l.length>0&&uK(n)&&l.length===i?x7(l[l.length-1]):yp(n,i)},fK=(n,i)=>{var l;const d=(l=n.getParent(i.container,n.isBlock))!==null&&l!==void 0?l:n.getRoot();return gN(n,i.container,i.offset,(p,w)=>w===0?-1:w,d).filter(p=>{const w=p.container.data.charAt(p.offset-1);return!k7(w)}).isSome()},dK=n=>i=>{const l=A7(i.startContainer,i.startOffset);return!fK(n,l)},hK=(n,i,l)=>Bs(l.triggers,d=>vN(n,i,d)),mK=(n,i)=>{const l=i(),d=n.selection.getRng();return hK(n.dom,d,l).bind(p=>gK(n,i,p))},gK=(n,i,l,d={})=>{var p;const w=i(),R=(p=n.selection.getRng().startContainer.nodeValue)!==null&&p!==void 0?p:"",B=yt(w.lookupByTrigger(l.trigger),re=>l.text.length>=re.minChars&&re.matches.getOrThunk(()=>dK(n.dom))(l.range,R,l.text));if(B.length===0)return he.none();const Y=Promise.all(xt(B,re=>re.fetch(l.text,re.maxResults,d).then(pe=>({matchText:l.text,items:pe,columns:re.columns,onAction:re.onAction,highlightOn:re.highlightOn}))));return he.some({lookupData:Y,context:l})};var d1;(function(n){n[n.Error=0]="Error",n[n.Value=1]="Value"})(d1||(d1={}));const RS=(n,i,l)=>n.stype===d1.Error?i(n.serror):l(n.svalue),T7=n=>{const i=[],l=[];return Pe(n,d=>{RS(d,p=>l.push(p),p=>i.push(p))}),{values:i,errors:l}},D7=(n,i)=>n.stype===d1.Error?{stype:d1.Error,serror:i(n.serror)}:n,pK=(n,i)=>n.stype===d1.Value?{stype:d1.Value,svalue:i(n.svalue)}:n,O7=(n,i)=>n.stype===d1.Value?i(n.svalue):n,M7=(n,i)=>n.stype===d1.Error?i(n.serror):n,R7=n=>({stype:d1.Value,svalue:n}),N7=n=>({stype:d1.Error,serror:n}),Fu={fromResult:n=>n.fold(N7,R7),toResult:n=>RS(n,fc.error,fc.value),svalue:R7,partition:T7,serror:N7,bind:O7,bindError:M7,map:pK,mapError:D7,fold:RS},Qx=n=>ne(n)&&gs(n).length>100?" removed due to size":JSON.stringify(n,null,2),vK=n=>{const i=n.length>10?n.slice(0,10).concat([{path:[],getErrorInfo:tt("... (only showing first ten failures)")}]):n;return xt(i,l=>"Failed path: ("+l.path.join(" > ")+ ` )
` +l.getErrorInfo())},A4=(n,i)=>Fu.serror([{path:n,getErrorInfo:i}]),yK=(n,i,l)=>A4(n,()=>'Could not find valid *required* value for "'+i+'" in '+Qx(l)),P7=(n,i)=>A4(n,()=>'Choice schema did not contain choice key: "'+i+'"'),wK=(n,i,l)=>A4(n,()=>'The chosen schema: "'+l+'" did not exist in branches: '+Qx(i)),_K=(n,i)=>A4(n,tt(i)),CK=(n,i,l,d)=>mo(l,d).fold(()=>wK(n,l,d),w=>w.extract(n.concat(["branch: "+d]),i)),SK=(n,i)=>({extract:(p,w)=>mo(w,n).fold(()=>P7(p,n),R=>CK(p,w,i,R)),toString:()=>"chooseOn("+n+"). Possible values: "+gs(i)}),kK=(n,i)=>i,kc=(n,i)=>ie(n)&&ie(i)?T4(n,i):i,h1=n=>(...i)=>{if(i.length===0)throw new Error("Can't merge zero objects");const l={};for(let d=0;d<i.length;d++){const p=i[d];for(const w in p)cn(p,w)&&(l[w]=n(l[w],p[w]))}return l},T4=h1(kc),ire=h1(kK),I7=()=>({tag:"required",process:{}}),EK=n=>({tag:"defaultedThunk",process:n}),B7=n=>EK(tt(n)),xK=()=>({tag:"option",process:{}}),L7=(n,i)=>n.length>0?Fu.svalue(T4(i,ire.apply(void 0,n))):Fu.svalue(i),n_=n=>z(Fu.serror,Dr)(n),AK={consolidateObj:(n,i)=>{const l=Fu.partition(n);return l.errors.length>0?n_(l.errors):L7(l.values,i)},consolidateArr:n=>{const i=Fu.partition(n);return i.errors.length>0?n_(i.errors):Fu.svalue(i.values)}},m1=(n,i,l,d)=>({tag:"field",key:n,newKey:i,presence:l,prop:d}),TK=(n,i)=>({tag:"custom",newKey:n,instantiator:i}),F7=(n,i,l)=>{switch(n.tag){case"field":return i(n.key,n.newKey,n.presence,n.prop);case"custom":return l(n.newKey,n.instantiator)}},D4=n=>{const i=(d,p)=>Fu.bindError(n(p),w=>_K(d,w)),l=tt("val");return{extract:i,toString:l}},DK=D4(Fu.svalue),yN=(n,i,l,d)=>mo(i,l).fold(()=>yK(n,l,i),d),wN=(n,i,l,d)=>{const p=mo(n,i).getOrThunk(()=>l(n));return d(p)},OK=(n,i,l)=>l(mo(n,i)),MK=(n,i,l,d)=>{const p=mo(n,i).map(w=>w===!0?l(n):w);return d(p)},RK=(n,i,l,d,p)=>{const w=R=>p.extract(i.concat([d]),R),E=R=>R.fold(()=>Fu.svalue(he.none()),B=>{const Y=p.extract(i.concat([d]),B);return Fu.map(Y,he.some)});switch(n.tag){case"required":return yN(i,l,d,w);case"defaultedThunk":return wN(l,d,n.process,w);case"option":return OK(l,d,E);case"defaultedOptionThunk":return MK(l,d,n.process,E);case"mergeWithThunk":return wN(l,d,tt({}),R=>{const B=T4(n.process(l),R);return w(B)})}},H7=(n,i,l)=>{const d={},p=[];for(const w of l)F7(w,(E,R,B,Y)=>{const re=RK(B,n,i,E,Y);Fu.fold(re,ce=>{p.push(...ce)},ce=>{d[R]=ce})},(E,R)=>{d[E]=R(i)});return p.length>0?Fu.serror(p):Fu.svalue(d)},O4=n=>({extract:(d,p)=>H7(d,p,n),toString:()=> ` obj {
` +xt(n,p=>F7(p,(w,E,R,B)=>w+" -> "+B.toString(),(w,E)=>"state("+w+")")).join( `
` )+"}"}),M4=n=>({extract:(d,p)=>{const w=xt(p,(E,R)=>n.extract(d.concat(["["+R+"]"]),E));return AK.consolidateArr(w)},toString:()=>"array("+n.toString()+")"}),_N=n=>D4(i=>n(i).fold(Fu.serror,Fu.svalue)),CN=(n,i,l)=>{const d=i.extract([n],l);return Fu.mapError(d,p=>({input:l,errors:p}))},NK=(n,i,l)=>Fu.toResult(CN(n,i,l)),PK=n=> ` Errors :
` +vK(n.errors).join( `
` )+ `
Input object : ` +Qx(n.input), $ 7=(n,i)=>SK(n,ps(i,O4)),IK=tt(DK),NS=(n,i)=>D4(l=>{const d=typeof l;return n(l)?Fu.svalue(l):Fu.serror( ` Expected type : $ { i } but got : $ { d } ` )}),z7=NS(lt,"number"),R4=NS(F,"string"),V7=NS(Re,"boolean"),SN=NS(be,"function"),o_=m1,W7=TK,BK=n=>_N(i=>St(n,i)?fc.value(i):fc.error( ` Unsupported value : "${i}" , choose one of "${n.join(" , ")}" . ` )),U7=(n,i)=>o_(n,n,I7(),i),j7=n=>U7(n,R4),Z7=n=>U7(n,SN),q7=(n,i)=>o_(n,n,I7(),M4(i)),eA=(n,i)=>o_(n,n,xK(),i),tA=n=>eA(n,R4),G7=n=>eA(n,SN),LK=(n,i)=>o_(n,n,B7(i),IK()),PS=(n,i,l)=>o_(n,n,B7(i),l),K7=(n,i)=>PS(n,i,z7),N4=(n,i)=>PS(n,i,R4),kN=(n,i,l)=>PS(n,i,BK(l)),P4=(n,i)=>PS(n,i,V7),EN=(n,i)=>PS(n,i,SN),FK=(n,i,l)=>PS(n,i,M4(l)),lre=j7("type"),cre=Z7("fetch"),Y7=Z7("onAction"),HK=EN("onSetup",()=>bt),ure=tA("text"), $ K=tA("icon"),zK=tA("tooltip"),fre=tA("label"),VK=P4("active",!1),vl=P4("enabled",!0),I4=P4("primary",!1),E0=n=>LK("columns",n),IS=n=>N4("type",n),X7=O4([lre,j7("trigger"),K7("minChars",1),E0(1),K7("maxResults",10),G7("matches"),cre,Y7,FK("highlightOn",[],R4)]),WK=n=>NK("Autocompleter",X7,{trigger:n.ch,...n}),BS=[vl,zK, $ K,ure,HK],B4=[VK].concat(BS),J7=[EN("predicate",Ye),kN("scope","node",["node","editor"]),kN("position","selection",["node","selection","line"])],Q7=BS.concat([IS("contextformbutton"),I4,Y7,W7("original",Ct)]),UK=B4.concat([IS("contextformbutton"),I4,Y7,W7("original",Ct)]),jK=BS.concat([IS("contextformbutton")]),ZK=B4.concat([IS("contextformtogglebutton")]),qK= $ 7("type",{contextformbutton:Q7,contextformtogglebutton:UK});O4([IS("contextform"),EN("initValue",tt("")),fre,q7("commands",qK),eA("launch", $ 7("type",{contextformbutton:jK,contextformtogglebutton:ZK}))].concat(J7));const GK=n=>{const i=n.ui.registry.getAll().popups,l=ps(i,E=>WK(E).fold(R=>{throw new Error(PK(R))},Ct)),d=cs(Un(l,E=>E.trigger)),p=lo(l);return{dataset:l,triggers:d,lookupByTrigger:E=>yt(p,R=>R.trigger===E)}},e9=(n,i)=>{const l=Mv(i.load,50);n.on("keypress compositionend",d=>{d.which!==27&&l.throttle()}),n.on("keydown",d=>{const p=d.which;p===8?l.throttle():p===27&&i.cancelIfNecessary()}),n.on("remove",l.cancel)},KK=n=>{const i=hh(),l=qa(!1),d=i.isSet,p=()=>{d()&&(AZ(n),sr(n),l.set(!1),i.clear())},w=Y=>{d()||(Ga(n,Y.range),i.set({trigger:Y.trigger,matchLength:Y.text.length}))},E=jt(()=>GK(n)),R=Y=>i.get().map(re=>vN(n.dom,n.selection.getRng(),re.trigger).bind(ce=>gK(n,E,ce,Y))).getOrThunk(()=>mK(n,E)),B=Y=>{R(Y).fold(p,re=>{w(re.context),re.lookupData.then(ce=>{i.get().map(pe=>{const Ie=re.context;pe.trigger===Ie.trigger&&(Ie.text.length-pe.matchLength>=10?p():(i.set({...pe,matchLength:Ie.text.length}),l.get()?jO(n,{lookupData:ce}):(l.set(!0),UO(n,{lookupData:ce}))))})})})};n.addCommand("mceAutocompleterReload",(Y,re)=>{const ce=ne(re)?re.fetchOptions:{};B(ce)}),n.addCommand("mceAutocompleterClose",p),e9(n,{cancelIfNecessary:p,load:B})},YK=vs().browser.isSafari(),t9=n=>Te(Ge.fromDom(n)),n9=(n,i)=>{var l;return n.startOffset===0&&n.endOffset===((l=i.textContent)===null||l===void 0?void 0:l.length)},nA=(n,i)=>he.from(n.getParent(i.container(),"details")),xN=(n,i)=>nA(n,i).isSome(),XK=(n,i)=>{const l=he.from(n.getParent(i.startContainer,"details")),d=he.from(n.getParent(i.endContainer,"details"));if(l.isSome()||d.isSome()){const p=l.bind(w=>he.from(n.select("summary",w)[0]));return he.some({startSummary:p,startDetails:l,endDetails:d})}else return he.none()},JK=(n,i)=>sl(i).exists(l=>l.isEqual(n)),hre=(n,i)=>Pd(i).exists(l=>ui(l.getNode())&&Ru(i,l).exists(d=>d.isEqual(n))||l.isEqual(n)),AN=(n,i)=>i.startSummary.exists(l=>JK(n,l)),QK=(n,i)=>i.startSummary.exists(l=>hre(n,l)),eY=(n,i)=>i.startDetails.exists(l=>Ru(l,n).forall(d=>i.startSummary.exists(p=>!p.contains(n.container())&&p.contains(d.container())))),tY=(n,i,l)=>l.startDetails.exists(d=>Rf(n,i).forall(p=>!d.contains(p.container()))),TN=(n,i)=>{const l=i.getNode();Ce(l)||n.selection.setCursorLocation(l,i.offset())},o9=(n,i,l)=>{const d=n.dom.getParent(i.container(),"details");if(d&&!d.open){const p=n.dom.select("summary",d)[0];p&&(l?sl(p):Pd(p)).each(E=>TN(n,E))}else TN(n,i)},s9=(n,i)=>{const l=B=>B.contains(n.start
` ; return } if ( Y !== "wbr" ) { if ( p [ Y ] && ( d += " " ) , w [ Y ] ) { d += " " ; return } if ( B . type === 3 && ( d += B . value ) , ! ( B . name in i . getVoidElements ( ) ) ) { let ce = B . firstChild ; if ( ce ) do R ( ce ) ; while ( ce = ce . next ) } E [ Y ] && re . next && ( d += `
` , Y === "p" && ( d += `
` ) ) } } ; return n = lA ( n , [ /<!\[[^\]]+\]>/g ] ) , R ( l . parse ( n ) ) , d } , KN = n => ( n = lA ( n , [ /^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig , /<!--StartFragment-->|<!--EndFragment-->/g , [ /( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g , ( l , d , p ) => ! d && ! p ? " " : Gr ] , /<br class="Apple-interchange-newline">/g , /<br>$/i ] ) , n ) , fX = n => { let i = 0 ; return ( ) => n + i ++ } , dX = n => { const i = n . toLowerCase ( ) , l = { jpg : "jpeg" , jpe : "jpeg" , jfi : "jpeg" , jif : "jpeg" , jfif : "jpeg" , pjpeg : "jpeg" , pjp : "jpeg" , svg : "svg+xml" } ; return dn . hasOwn ( l , i ) ? "image/" + l [ i ] : "image/" + i } , hX = ( n , i ) => { const l = yS ( { sanitize : Xv ( n ) } , n . schema ) ; l . addNodeFilter ( "meta" , p => { dn . each ( p , w => { w . remove ( ) } ) } ) ; const d = l . parse ( i , { forced _root _block : ! 1 , isRootContent : ! 0 } ) ; return Pw ( { validate : ! 0 } , n . schema ) . serialize ( d ) } , Y9 = ( n , i ) => ( { content : n , cancelled : i } ) , mX = ( n , i , l ) => { const d = n . dom . create ( "div" , { style : "display:none" } , i ) , p = T3 ( n , d , l ) ; return Y9 ( p . node . innerHTML , p . isDefaultPrevented ( ) ) } , gX = ( n , i , l ) => { const d = ZO ( n , i , l ) , p = hX ( n , d . content ) ; return n . hasEventListeners ( "PastePostProcess" ) && ! d . isDefaultPrevented ( ) ? mX ( n , p , l ) : Y9 ( p , d . isDefaultPrevented ( ) ) } , X9 = ( n , i , l ) => gX ( n , i , l ) , YN = ( n , i ) => ( n . insertContent ( i , { merge : EC ( n ) , paste : ! 0 } ) , ! 0 ) , XN = n => / ^ https ? : \ / \ / [ \ w \ - \ / += . , ! ; : & % @ ^ ~ ( ) { } ? # ] + $ / i . test ( n ) , pX = ( n , i ) => XN ( i ) && Xt ( rw ( n ) , l => qi ( i . toLowerCase ( ) , ` . ${ l . toLowerCase ( ) } ` ) ) , bX = ( n , i , l ) => ( n . undoManager . extra ( ( ) => { l ( n , i ) } , ( ) => { n . insertContent ( '<img src="' + i + '">' ) } ) , ! 0 ) , vX = ( n , i , l ) => ( n . undoManager . extra ( ( ) => { l ( n , i ) } , ( ) => { n . execCommand ( "mceInsertLink" , ! 1 , i ) } ) , ! 0 ) , yX = ( n , i , l ) => ! n . selection . isCollapsed ( ) && XN ( i ) ? vX ( n , i , l ) : ! 1 , wX = ( n , i , l ) => pX ( n , i ) ? bX ( n , i , l ) : ! 1 , J9 = ( n , i ) => { dn . each ( [ yX , wX , YN ] , l => ! l ( n , i , YN ) ) } , _X = ( n , i , l ) => { l || ! xC ( n ) ? YN ( n , i ) : J9 ( n , i ) } , CX = fX ( "mceclip" ) , SX = n => { const i = UN ( ) ; return K4 ( i , n ) , WN ( i ) , i } , Q9 = ( n , i , l , d , p ) => { const w = X9 ( n , i , l ) ; if ( ! w . cancelled ) { const E = w . content , R = ( ) => _X ( n , E , d ) ; p ? L4 ( n , "insertFromPaste" , { dataTransfer : SX ( E ) } ) . isDefaultPrevented ( ) || ( R ( ) , oA ( n , "insertFromPaste" ) ) : R ( ) } } , X4 = ( n , i , l , d ) => { const p = l || ZN ( i ) ; Q9 ( n , q9 ( i ) , p , ! 1 , d ) } , JN = ( n , i , l ) => { const d = n . dom . encode ( i ) . replace ( /\r\n/g , `
` ) , p = sh ( d , sE ( n ) ) , w = rX ( p , Hc ( n ) , o0 ( n ) ) ; Q9 ( n , w , ! 1 , ! 0 , l ) } , eH = n => { const i = { } ; if ( n && n . types ) for ( let l = 0 ; l < n . types . length ; l ++ ) { const d = n . types [ l ] ; try { i [ d ] = n . getData ( d ) } catch { i [ d ] = "" } } return i } , g1 = ( n , i ) => i in n && n [ i ] . length > 0 , QN = n => g1 ( n , "text/html" ) || g1 ( n , "text/plain" ) , kX = ( n , i ) => { const l = i . match ( /([\s\S]+?)(?:\.[a-z0-9.]+)$/i ) ; return ye ( l ) ? n . dom . encode ( l [ 1 ] ) : void 0 } , tH = ( n , i , l , d ) => { const p = CX ( ) , w = ed ( n ) && ye ( l . name ) , E = w ? kX ( n , l . name ) : p , R = w ? l . name : void 0 , B = i . create ( p , l , d , E , R ) ; return i . add ( B ) , B } , nH = ( n , i ) => { SR ( i . uri ) . each ( ( { data : l , type : d , base64Encoded : p } ) => { const w = p ? l : btoa ( l ) , E = i . file , R = n . editorUpload . blobCache , B = R . getByData ( w , d ) , Y = B != null ? B : tH ( n , R , E , w ) ; X4 ( n , ` <img src=" ${ Y . blobUri ( ) } "> ` , ! 1 , ! 0 ) } ) } , e6 = n => n . type === "paste" , EX = n => Promise . all ( xt ( n , i => CL ( i ) . then ( l => ( { file : i , uri : l } ) ) ) ) , oH = n => { const i = rw ( n ) ; return l => kr ( l . type , "image/" ) && Xt ( i , d => dX ( d ) === l . type ) } , xX = ( n , i ) => { const l = i . items ? Rs ( Or ( i . items ) , p => p . kind === "file" ? [ p . getAsFile ( ) ] : [ ] ) : [ ] , d = i . files ? Or ( i . files ) : [ ] ; return yt ( l . length > 0 ? l : d , oH ( n ) ) } , t6 = ( n , i , l ) => { const d = e6 ( i ) ? i . clipboardData : i . dataTransfer ; if ( Kv ( n ) && d ) { const p = xX ( n , d ) ; if ( p . length > 0 ) return i . preventDefault ( ) , EX ( p ) . then ( w => { l && n . selection . setRng ( l ) , Pe ( w , E => { nH ( n , E ) } ) } ) , ! 0 } return ! 1 } , AX = n => { var i , l ; return Gn . os . isAndroid ( ) && ( ( l = ( i = n . clipboardData ) === null || i === void 0 ? void 0 : i . items ) === null || l === void 0 ? void 0 : l . length ) === 0 } , sH = n => eo . metaKeyPressed ( n ) && n . keyCode === 86 || n . shiftKey && n . keyCode === 45 , n6 = ( n , i , l , d , p ) => { let w = KN ( l ) ; const E = g1 ( i , aA ( ) ) || ZN ( l ) , R = ! E && oX ( w ) , B = XN ( w ) ; ( K9 ( w ) || ! w . length || R && ! B ) && ( d = ! 0 ) , ( d || B ) && ( g1 ( i , "text/plain" ) && R ? w = i [ "text/plain" ] : w = uX ( w ) ) , ! K9 ( w ) && ( d ? JN ( n , w , p ) : X4 ( n , w , E , p ) ) } , TX = ( n , i , l ) => { let d ; const p = ( ) => i . getLastRng ( ) || n . selection . getRng ( ) ; n . on ( "keydown" , w => { sH ( w ) && ! w . isDefaultPrevented ( ) && ( d = w . shiftKey && w . keyCode === 86 ) } ) , n . on ( "paste" , w => { if ( w . isDefaultPrevented ( ) || AX ( w ) ) return ; const E = l . get ( ) === "text" || d ; d = ! 1 ; const R = eH ( w . clipboardData ) ; ! QN ( R ) && t6 ( n , w , p ( ) ) || ( g1 ( R , "text/html" ) ? ( w . preventDefault ( ) , n6 ( n , R , R [ "text/html" ] , E , ! 0 ) ) : g1 ( R , "text/plain" ) && g1 ( R , "text/uri-list" ) ? ( w . preventDefault ( ) , n6 ( n , R , R [ "text/plain" ] , E , ! 0 ) ) : ( i . create ( ) , dg . setEditorTimeout ( n , ( ) => { const B = i . getHtml ( ) ; i . remove ( ) , n6 ( n , R , B , E , ! 1 ) } , 0 ) ) ) } ) } , DX = n => { const i = p => kr ( p , "webkit-fake-url" ) , l = p => kr ( p , "data:" ) , d = p => { var w ; return ( ( w = p . data ) === null || w === void 0 ? void 0 : w . paste ) === ! 0 } ; n . parser . addNodeFilter ( "img" , ( p , w , E ) => { if ( ! Kv ( n ) && d ( E ) ) for ( const R of p ) { const B = R . attr ( "src" ) ; F ( B ) && ! R . attr ( "data-mce-object" ) && B !== Gn . transparentSrc && ( i ( B ) || ! rE ( n ) && l ( B ) ) && R . remove ( ) } } ) } , cA = ( n , i , l ) => { TX ( n , i , l ) , DX ( n ) } , OX = ( n , i ) => { i . get ( ) === "text" ? ( i . set ( "html" ) , jC ( n , ! 1 ) ) : ( i . set ( "text" ) , jC ( n , ! 0 ) ) , n . focus ( ) } , MX = ( n , i ) => { n . addCommand ( "mceTogglePlainTextPaste" , ( ) => { OX ( n , i ) } ) , n . addCommand ( "mceInsertClipboardContent" , ( l , d ) => { d . html && X4 ( n , d . html , d . internal , ! 1 ) , d . text && JN ( n , d . text , ! 1 ) } ) } , rH = ( n , i , l ) => { if ( n ) try { return n . clearData ( ) , n . setData ( "text/html" , i ) , n . setData ( "text/plain" , l ) , n . setData ( aA ( ) , i ) , ! 0 } catch { return ! 1 } else return ! 1 } , iH = ( n , i , l , d ) => { rH ( n . clipboardData , i . html , i . text ) ? ( n . preventDefault ( ) , d ( ) ) : l ( i . html , d ) } , aH = n => ( i , l ) => { const { dom : d , selection : p } = n , w = d . create ( "div" , { contenteditable : "false" , "data-mce-bogus" : "all" } ) , E = d . create ( "div" , { contenteditable : "true" } , i ) ; d . setStyles ( w , { position : "fixed" , top : "0" , left : "-3000px" , width : "1000px" , overflow : "hidden" } ) , w . appendChild ( E ) , d . add ( n . getBody ( ) , w ) ; const R = p . getRng ( ) ; E . focus ( ) ; const B = d . createRng ( ) ; B . selectNodeContents ( E ) , p . setRng ( B ) , dg . setEditorTimeout ( n , ( ) => { p . setRng ( R ) , d . remove ( w ) , l ( ) } , 0 ) } , lH = n => ( { html : nX ( n . selection . getContent ( { contextual : ! 0 } ) ) , text : n . selection . getContent ( { format : "text" } ) } ) , RX = n => ! ! n . dom . getParent ( n . selection . getStart ( ) , "td[data-mce-selected],th[data-mce-selected]" , n . getBody ( ) ) , cH = n => ! n . selection . isCollapsed ( ) || RX ( n ) , J4 = n => i => { ! i . isDefaultPrevented ( ) && cH ( n ) && iH ( i , lH ( n ) , aH ( n ) , ( ) => { if ( Gn . browser . isChromium ( ) || Gn . browser . isFirefox ( ) ) { const l = n . selection . getRng ( ) ; dg . setEditorTimeout ( n , ( ) => { n . selection . setRng ( l ) , n . execCommand ( "Delete" ) } , 0 ) } else n . execCommand ( "Delete" ) } ) } , uH = n => i => { ! i . isDefaultPrevented ( ) && cH ( n ) && iH ( i , lH ( n ) , aH ( n ) , bt ) } , fH = n => { n . on ( "cut" , J4 ( n ) ) , n . on ( "copy" , uH ( n ) ) } , dH = ( n , i ) => { var l , d ; return v . getCaretRangeFromPoint ( (
` }),n.dom.addStyle(B)}const E=Promise.all(LJ(n,d,l)).then(w).catch(w),R=Uv(n);return R&&PJ(n,R),E},FJ=n=>{const i=n.getDoc(),l=n.getBody();VO(n),rp(n)||(i.body.spellcheck=!1,A6.setAttrib(l,"spellcheck","false")),n.quirks=jH(n),WE(n);const d=r0(n);d!==void 0&&(l.dir=d);const p=tw(n);p&&n.on("BeforeSetContent",w=>{dn.each(p,E=>{w.content=w.content.replace(E,R=>"<!--mce:protected "+escape(R)+"-->")})}),n.on("SetContent",()=>{n.addVisual(n.getBody())}),n.on("compositionstart compositionend",w=>{n.composing=w.type==="compositionstart"})},YH=n=>{S0(n)||n.load({initial:!0,format:"html"}),n.startContent=n.getContent({format:"raw"})},D6=n=>{n.removed!==!0&&(YH(n),BJ(n))},HJ=n=>{let i=!1;const l=setTimeout(()=>{i||n.setProgressState(!0)},500);return()=>{clearTimeout(l),i=!0,n.setProgressState(!1)}},XH=n=>{const i=n.getElement();let l=n.getDoc();n.inline&&(A6.addClass(i,"mce-content-body"),n.contentDocument=l=document,n.contentWindow=window,n.bodyElement=i,n.contentAreaContainer=i);const d=n.getBody();d.disabled=!0,n.readonly=ag(n),n._editableRoot=vC(n),!n.readonly&&n.hasEditableRoot()&&(n.inline&&A6.getStyle(d,"position",!0)==="static"&&(d.style.position="relative"),d.contentEditable="true"),d.disabled=!1,n.editorUpload=aq(n),n.schema=fh(pA(n)),n.dom=Lr(l,{keep_values:!0,url_converter:n.convertURL,url_converter_scope:n,update_styles:!0,root_element:n.inline?n.getBody():null,collect:n.inline,schema:n.schema,contentCssCors:jk(n),referrerPolicy:s0(n),onSetAttrib:E=>{n.dispatch("SetAttrib",E)}}),n.parser=c_(n),n.serializer=c1(By(n),n),n.selection=i5(n.dom,n.getWin(),n.serializer,n),n.annotator=e1(n),n.formatter=q8(n),n.undoManager=v5(n),n._nodeChangeDispatcher=new ZY(n),n._selectionOverrides=_J(n),Q5(n),gH(n),AG(n),S0(n)||(ZX(n),WS(n));const p=jY(n);m4(n,p),nre(n),gq(n),mH(n);const w=fZ(n);FJ(n),w.fold(()=>{const E=HJ(n);KH(n).then(()=>{D6(n),E()})},E=>{n.setProgressState(!0),KH(n).then(()=>{E().then(R=>{n.setProgressState(!1),D6(n),C8(n)},R=>{n.notificationManager.open({type:"error",text:String(R)}),D6(n),C8(n)})})})},wre=Mt, $ J=(n,i,l)=>j0(n,i,wre,l),bA=Lr.DOM,zJ=(n,i,l,d)=>{const p=Ge.fromTag("iframe");return d.each(w=>xr(p,"tabindex",w)),Vu(p,l),Vu(p,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:i}),Wu(p,"tox-edit-area__iframe"),p},VJ=n=>{let i= $ v(n)+"<html><head>";Yp(n)!==n.documentBaseUrl&&(i+='<base href="'+n.documentBaseURI.getURI()+'" />'),i+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';const l=Of(n),d=nl(n),p=n.translate(wC(n));return Od(n)&&(i+='<meta http-equiv="Content-Security-Policy" content="'+Od(n)+'" />'),i+= ` < / h e a d > < b o d y i d = " $ { l } " c l a s s = " m c e - c o n t e n t - b o d y $ { d } " d a t a - i d = " $ { n . i d } " a r i a - l a b e l = " $ { p } " > < b r > < / b o d y > < / h t m l > ` , i } , J H = ( n , i ) = > { c o n s t l = n . t r a n s l a t e ( " R i c h T e x t A r e a " ) , d = $ a ( G e . f r o m D o m ( n . g e t E l e m e n t ( ) ) , " t a b i n d e x " ) . b i n d ( q c ) , p = z J ( n . i d , l , o f ( n ) , d ) . d o m ; p . o n l o a d = ( ) = > { p . o n l o a d = n u l l , n . d i s p a t c h ( " l o a d " ) } , n . c o n t e n t A r e a C o n t a i n e r = i . i f r a m e C o n t a i n e r , n . i f r a m e E l e m e n t = p , n . i f r a m e H T M L = V J ( n ) , b A . a d d ( i . i f r a m e C o n t a i n e r , p ) } , W J = n = > { c o n s t i = n . i f r a m e E l e m e n t , l = ( ) = > { n . c o n t e n t D o c u m e n t = i . c o n t e n t D o c u m e n t , X H ( n ) } ; i f ( E b ( n ) | | G n . b r o w s e r . i s F i r e f o x ( ) ) { c o n s t d = n . g e t D o c ( ) ; d . o p e n ( ) , d . w r i t e ( n . i f r a m e H T M L ) , d . c l o s e ( ) , l ( ) } e l s e { c o n s t d = $ J ( G e . f r o m D o m ( i ) , " l o a d " , ( ) = > { d . u n b i n d ( ) , l ( ) } ) ; i . s r c d o c = n . i f r a m e H T M L } } , Q H = ( n , i ) = > { J H ( n , i ) , i . e d i t o r C o n t a i n e r & & ( i . e d i t o r C o n t a i n e r . s t y l e . d i s p l a y = n . o r g D i s p l a y , n . h i d d e n = b A . i s H i d d e n ( i . e d i t o r C o n t a i n e r ) ) , n . g e t E l e m e n t ( ) . s t y l e . d i s p l a y = " n o n e " , b A . s e t A t t r i b ( n . i d , " a r i a - h i d d e n " , " t r u e " ) , n . g e t E l e m e n t ( ) . s t y l e . v i s i b i l i t y = n . o r g V i s i b i l i t y , W J ( n ) } , e $ = L r . D O M , O 6 = ( n , i , l ) = > { c o n s t d = Q w . g e t ( l ) , p = Q w . u r l s [ l ] | | n . d o c u m e n t B a s e U r l . r e p l a c e ( / \ / $ / , " " ) ; i f ( l = d n . t r i m ( l ) , d & & d n . i n A r r a y ( i , l ) = = = - 1 ) { i f ( n . p l u g i n s [ l ] ) r e t u r n ; t r y { c o n s t w = d ( n , p ) | | { } ; n . p l u g i n s [ l ] = w , b e ( w . i n i t ) & & ( w . i n i t ( n , p ) , i . p u s h ( l ) ) } c a t c h ( w ) { J Z ( n , l , w ) } } } , U J = n = > n . r e p l a c e ( / ^ \ - / , " " ) , j J = n = > { c o n s t i = [ ] ; P e ( Z v ( n ) , l = > { O 6 ( n , i , U J ( l ) ) } ) } , Z J = n = > { c o n s t i = d n . t r i m ( c C ( n ) ) , l = n . u i . r e g i s t r y . g e t A l l ( ) . i c o n s , d = { . . . L T . g e t ( " d e f a u l t " ) . i c o n s , . . . L T . g e t ( i ) . i c o n s } ; a n ( d , ( p , w ) = > { c n ( l , w ) | | n . u i . r e g i s t r y . a d d I c o n ( w , p ) } ) } , q J = n = > { c o n s t i = s m ( n ) ; i f ( F ( i ) ) { c o n s t l = T y . g e t ( i ) ; n . t h e m e = l ( n , T y . u r l s [ i ] ) | | { } , b e ( n . t h e m e . i n i t ) & & n .
Actual : ` +jn.join(","));if(!xo(k,en=>gt(jn,en)))throw new Error("Not all branches were specified when using match. Specified: "+jn.join(", ")+ `
Required : ` +k.join(", "));return un[ge].apply(null,Be)},log:un=>{console.log(un,{constructors:k,constructor:ge,params:Be})}}}}),D}},tf={...ng.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},e0=(v,k)=>v.length===0?tf.none():v.length===1?tf.only(0):k===0?tf.left(0,1):k===v.length-1?tf.right(k-1,k):k>0&&k<v.length-1?tf.middle(k-1,k,k+1):tf.none(),Gs=(v,k,D,P,j)=>{const te=v.slice(0),ge=e0(v,k),ke=F(kt(te,F(0))),Be=jn=>P.singleColumnWidth(te[jn],D),et=(jn,Vn)=>j.calcLeftEdgeDeltas(te,jn,Vn,D,P.minCellWidth(),P.isRelative),wt=(jn,Vn,en)=>j.calcMiddleDeltas(te,jn,Vn,en,D,P.minCellWidth(),P.isRelative),un=(jn,Vn)=>j.calcRightEdgeDeltas(te,jn,Vn,D,P.minCellWidth(),P.isRelative);return ge.fold(ke,Be,et,wt,un)},iu=(v,k,D)=>{let P=0;for(let j=v;j<k;j++)P+=D[j]!==void 0?D[j]:0;return P},og=(v,k)=>{const D=xe.justCells(v);return kt(D,P=>{const j=iu(P.column,P.column+P.colspan,k);return{element:P.element,width:j,colspan:P.colspan}})},F2=(v,k)=>{const D=xe.justColumns(v);return kt(D,(P,j)=>({element:P.element,width:k[j],colspan:P.colspan}))},Vi=(v,k)=>{const D=xe.justCells(v);return kt(D,P=>{const j=iu(P.row,P.row+P.rowspan,k);return{element:P.element,height:j,rowspan:P.rowspan}})},H2=(v,k)=>kt(v.all,(D,P)=>({element:D.element,height:k[P]})),sg=v=>Rn(v,(k,D)=>k+D,0),ha=(v,k)=>xe.hasColumns(v)?F2(v,k):og(v,k),tm=(v,k,D)=>{const P=ha(v,k);Le(P,j=>{D.setElementWidth(j.element,j.width)})},Vt=(v,k,D,P,j)=>{const te=xe.fromTable(v),ge=j.getCellDelta(k),ke=j.getWidths(te,j),Be=D===te.grid.columns-1,et=P.clampTableDelta(ke,D,ge,j.minCellWidth(),Be),wt=Gs(ke,D,et,j,P),un=kt(wt,(jn,Vn)=>jn+ke[Vn]);tm(te,un,j),P.resizeTable(j.adjustTableWidth,et,Be)},bb=(v,k,D,P)=>{const j=xe.fromTable(v),te=Et(j,v,P),ge=kt(te,(wt,un)=>D===un?Math.max(k+wt,rc()):wt),ke=Vi(j,ge),Be=H2(j,ge);Le(Be,wt=>{Zu(wt.element,wt.height)}),Le(ke,wt=>{Zu(wt.element,wt.height)});const et=sg(ge);Zu(v,et)}, $ 2=(v,k,D,P,j)=>{const te=xe.generate(k),ge=P.getWidths(te,P),ke=P.pixelWidth(),{newSizes:Be,delta:et}=j.calcRedestributedWidths(ge,ke,D.pixelDelta,P.isRelative);tm(te,Be,P),P.adjustTableWidth(et)},vb=(v,k,D,P)=>{const j=xe.generate(k),te=P.getWidths(j,P);tm(j,te,P)},mh=v=>Ye(v,(D,P)=>tt(D,te=>te.column===P.column)?D:D.concat([P]),[]).sort((D,P)=>D.column-P.column),nf=Ir("col"),t0=Ir("colgroup"),Bv=v=>Ut(v)==="tr"||t0(v),z2=v=>{const k=xr(v,"colspan",1),D=xr(v,"rowspan",1);return{element:v,colspan:k,rowspan:D}},Lv=(v,k=z2)=>{const D=ke=>nf(ke.element)?v.col(ke):v.cell(ke),P=ke=>t0(ke.element)?v.colgroup(ke):v.row(ke),j=ke=>{if(Bv(ke))return P({element:ke});{const Be=ke,et=D(k(Be));return te=be.some({item:Be,replacement:et}),et}};let te=be.none();return{getOrInit:(ke,Be)=>te.fold(()=>j(ke),et=>Be(ke,et.item)?et.replacement:j(ke))}},yb=v=>k=>{const D=[],P=(ge,ke)=>he(D,Be=>ke(Be.item,ge)),j=ge=>{const ke=v==="td"?{scope:null}:{},Be=k.replace(ge,v,ke);return D.push({item:ge,sub:Be}),Be};return{replaceOrInit:(ge,ke)=>{if(Bv(ge)||nf(ge))return ge;{const Be=ge;return P(Be,ke).fold(()=>j(Be),et=>ke(ge,et.item)?et.sub:j(Be))}}}},gh=v=>qe(v,"scope").map(k=>k.substr(0,3)),Du={modification:Lv,transform:yb,merging:v=>({unmerge:P=>{const j=gh(P);return j.each(te=>Wr(P,"scope",te)),()=>{const te=v.cell({element:P,colspan:1,rowspan:1});return yc(te,"width"),yc(P,"width"),j.each(ge=>Wr(te,"scope",ge)),te}},merge:P=>{const j=()=>{const te=Oi(kt(P,gh));if(te.length===0)return be.none();{const ge=te[0],ke=["row","col"];return tt(te,et=>et!==ge&>(ke,et))?be.none():be.from(ge)}};return yc(P[0],"width"),j().fold(()=>Ze(P[0],"scope"),te=>Wr(P[0],"scope",te+"group")),F(P[0])}})},Fl=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],V2=(v,k)=>{const D=v.property().name(k);return gt(["ol","ul"],D)},np=(v,k)=>{const D=v.property().name(k);return gt(Fl,D)},sC=(v,k)=>gt(["br","img","hr","input"],v.property().name(k)),wb=Qt(),Gp=v=>np(wb,v),W2=v=>V2(wb,v),Fv=v=>sC(wb
` + h . getErrorInfo ( ) ) } , Lm = ( o , c ) => $i . serror ( [ { path : o , getErrorInfo : c } ] ) , Fg = ( o , c , h ) => Lm ( o , ( ) => 'Could not find valid *required* value for "' + c + '" in ' + j0 ( h ) ) , wv = ( o , c ) => Lm ( o , ( ) => 'Choice schema did not contain choice key: "' + c + '"' ) , Sf = ( o , c , h ) => Lm ( o , ( ) => 'The chosen schema: "' + h + '" did not exist in branches: ' + j0 ( c ) ) , h2 = ( o , c ) => Lm ( o , ( ) => "There are unsupported fields: [" + c . join ( ", " ) + "] specified" ) , Eu = ( o , c ) => Lm ( o , K ( c ) ) , ju = o => { const c = ( b , _ ) => $i . bindError ( o ( _ ) , x => Eu ( b , x ) ) , h = K ( "val" ) ; return { extract : c , toString : h } } , Z0 = ju ( $i . svalue ) , q0 = ( o , c , h , b ) => an ( c , h ) . fold ( ( ) => Fg ( o , h , c ) , b ) , G0 = ( o , c , h , b ) => { const _ = an ( o , c ) . getOrThunk ( ( ) => h ( o ) ) ; return b ( _ ) } , z1 = ( o , c , h ) => h ( an ( o , c ) ) , Zf = ( o , c , h , b ) => { const _ = an ( o , c ) . map ( x => x === ! 0 ? h ( o ) : x ) ; return b ( _ ) } , K0 = ( o , c , h , b , _ ) => { const x = I => _ . extract ( c . concat ( [ b ] ) , I ) , M = I => I . fold ( ( ) => $i . svalue ( z . none ( ) ) , V => { const X = _ . extract ( c . concat ( [ b ] ) , V ) ; return $i . map ( X , z . some ) } ) ; switch ( o . tag ) { case "required" : return q0 ( c , h , b , x ) ; case "defaultedThunk" : return G0 ( h , b , o . process , x ) ; case "option" : return z1 ( h , b , M ) ; case "defaultedOptionThunk" : return Zf ( h , b , o . process , M ) ; case "mergeWithThunk" : return G0 ( h , b , K ( { } ) , I => { const V = Jr ( o . process ( h ) , I ) ; return x ( V ) } ) } } , Y0 = ( o , c , h ) => { const b = { } , _ = [ ] ; for ( const x of h ) Xd ( x , ( M , I , V , X ) => { const se = K0 ( V , o , c , M , X ) ; $i . fold ( se , ue => { _ . push ( ... ue ) } , ue => { b [ I ] = ue } ) } , ( M , I ) => { b [ M ] = I ( c ) } ) ; return _ . length > 0 ? $i . serror ( _ ) : $i . svalue ( b ) } , dl = o => ( { extract : ( b , _ ) => o ( ) . extract ( b , _ ) , toString : ( ) => o ( ) . toString ( ) } ) , m2 = o => Zs ( Bs ( o , U ) ) , pi = o => { const c = ro ( o ) , h = ao ( o , ( _ , x ) => Xd ( x , M => Jr ( _ , { [ M ] : ! 0 } ) , K ( _ ) ) , { } ) ; return { extract : ( _ , x ) => { const M = O ( x ) ? [ ] : m2 ( x ) , I = bo ( M , V => ! Ii ( h , V ) ) ; return I . length === 0 ? c . extract ( _ , x ) : h2 ( _ , I ) } , toString : c . toString } } , ro = o => ( { extract : ( b , _ ) => Y0 ( b , _ , o ) , toString : ( ) => ` obj{
` + Ye ( o , _ => Xd ( _ , ( x , M , I , V ) => x + " -> " + V . toString ( ) , ( x , M ) => "state(" + x + ")" ) ) . join ( `
` ) + "}" } ) , wd = o => ( { extract : ( b , _ ) => { const x = Ye ( _ , ( M , I ) => o . extract ( b . concat ( [ "[" + I + "]" ] ) , M ) ) ; return $1 . consolidateArr ( x ) } , toString : ( ) => "array(" + o . toString ( ) + ")" } ) , Yn = ( o , c ) => { const h = c !== void 0 ? c : Re ; return { extract : ( x , M ) => { const I = [ ] ; for ( const V of o ) { const X = V . extract ( x , M ) ; if ( X . stype === Go . Value ) return { stype : Go . Value , svalue : h ( X . svalue ) } ; I . push ( X ) } return $1 . consolidateArr ( I ) } , toString : ( ) => "oneOf(" + Ye ( o , x => x . toString ( ) ) . join ( ", " ) + ")" } } , wc = ( o , c ) => { const h = ( x , M ) => wd ( ju ( o ) ) . extract ( x , M ) ; return { extract : ( x , M ) => { const I = Zs ( M ) , V = h ( x , I ) ; return $i . bind ( V , X => { const se = Ye ( X , ue => wa ( ue , ue , pr ( ) , c ) ) ; return ro ( se ) . extract ( x , M ) } ) } , toString : ( ) => "setOf(" + c . toString ( ) + ")" } } , kf = ( o , c ) => { const h = xi ( c ) ; return { extract : ( x , M ) => h ( ) . extract ( x , M ) , toString : ( ) => h ( ) . toString ( ) } } , Qd = ie ( wd , ro ) , Pc = K ( Z0 ) , Hg = ( o , c ) => ju ( h => { const b = typeof h ; return o ( h ) ? $i . svalue ( h ) : $i . serror ( ` Expected type: ${ c } but got: ${ b } ` ) } ) , _d = Hg ( q , "number" ) , hl = Hg ( m , "string" ) , xu = Hg ( O , "boolean" ) , Ip = Hg ( W , "function" ) , V1 = o => { if ( Object ( o ) !== o ) return ! 0 ; switch ( { } . toString . call ( o ) . slice ( 8 , - 1 ) ) { case "Boolean" : case "Number" : case "String" : case "Date" : case "RegExp" : case "Blob" : case "FileList" : case "ImageData" : case "ImageBitmap" : case "ArrayBuffer" : return ! 0 ; case "Array" : case "Object" : return Object . keys ( o ) . every ( c => V1 ( o [ c ] ) ) ; default : return ! 1 } } , wn = ju ( o => V1 ( o ) ? $i . svalue ( o ) : $i . serror ( "Expected value to be acceptable for sending via postMessage" ) ) , Fm = ( o , c , h , b ) => an ( h , b ) . fold ( ( ) => Sf ( o , h , b ) , x => x . extract ( o . concat ( [ "branch: " + b ] ) , c ) ) , Cd = ( o , c ) => ( { extract : ( _ , x ) => an ( x , o ) . fold ( ( ) => wv ( _ , o ) , I => Fm ( _ , x , c , I ) ) , toString : ( ) => "chooseOn(" + o + "). Possible values: " + Zs ( c ) } ) , eh = ( ) => wd ( Z0 ) , Zu = o => ju ( c => o ( c ) . fold ( $i . serror , $i . svalue ) ) , W1 = ( o , c ) => wc ( h => $i . fromResult ( o ( h ) ) , c ) , ui = ( o , c , h ) => { const b = c . extract ( [ o ] , h ) ; return $i . mapError ( b , _ => ( { input : h , errors : _ } ) ) } , zi = ( o , c , h ) => $i . toResult ( ui ( o , c , h ) ) , fa = o => o . fold ( c => { throw new Error ( Sd ( c ) ) } , Re ) , xs = ( o , c , h ) => fa ( zi ( o , c , h ) ) , Sd = o => ` Errors:
` + jf ( o . errors ) . join ( `
` ) + `
Input object: ` + j0 ( o . input ) , Cl = ( o , c ) => Cd ( o , Ns ( c , ro ) ) , qu = ( o , c ) => kf ( o , c ) , za = wa , _a = Yc , Bp = o => Zu ( c => at ( o , c ) ? yn . value ( c ) : yn . error ( ` Unsupported value: " ${ c } ", choose one of " ${ o . join ( ", " ) } ". ` ) ) , Jt = o => za ( o , o , pr ( ) , Pc ( ) ) , Gr = ( o , c ) => za ( o , o , pr ( ) , c ) , X0 = o => Gr ( o , _d ) , Ca = o => Gr ( o , hl ) , Va = ( o , c ) => za ( o , o , pr ( ) , Bp ( c ) ) , $g = o => Gr ( o , xu ) , Ic = o => Gr ( o , Ip ) , qf = ( o , c ) => za ( o , o , Jd ( ) , ju ( h => $i . serror ( "The field: " + o + " is forbidden. " + c ) ) ) , Gf = ( o , c ) => za ( o , o , pr ( ) , ro ( c ) ) , Lp = ( o , c ) => za ( o , o , pr ( ) , Qd ( c ) ) , Ll = ( o , c ) => za ( o , o , pr ( ) , wd ( c ) ) , Sr = o => za ( o , o , Jd ( ) , Pc ( ) ) , Wa = ( o , c ) => za ( o , o , Jd ( ) , c ) , th = o => Wa ( o , _d ) , Gl = o => Wa ( o , hl ) , J0 = ( o , c ) => Wa ( o , Bp ( c ) ) , Hm = o => Wa ( o , Ip ) , U1 = ( o , c ) => Wa ( o , wd ( c ) ) , Ua = ( o , c ) => Wa ( o , ro ( c ) ) , ac = ( o , c ) => Wa ( o , pi ( c ) ) , Et = ( o , c ) => za ( o , o , Uf ( c ) , Pc ( ) ) , _c = ( o , c , h ) => za ( o , o , Uf ( c ) , h ) , Xc = ( o , c ) => _c ( o , c , _d ) , lc = ( o , c ) => _c ( o , c , hl ) , Au = ( o , c , h ) => _c ( o , c , Bp ( h ) ) , ja = ( o , c ) => _c ( o , c , xu ) , Za = ( o , c ) => _c ( o , c , Ip ) , $m = ( o , c ) => _c ( o , c , wn ) , Jc = ( o , c , h ) => _c ( o , c , wd ( h ) ) , Q0 = ( o , c , h ) => _c ( o , c , ro ( h ) ) , Ho = o => { let c = o ; return { get : ( ) => c , set : _ => { c = _ } } } , G = { generate : o => { if ( ! C ( o ) ) throw new Error ( "cases must be an array" ) ; if ( o . length === 0 ) throw new Error ( "there must be at least one case" ) ; const c = [ ] , h = { } ; return Mt ( o , ( b , _ ) => { const x = Zs ( b ) ; if ( x . length !== 1 ) throw new Error ( "one and only one name per case" ) ; const M = x [ 0 ] , I = b [ M ] ; if ( h [ M ] !== void 0 ) throw new Error ( "duplicate key detected:" + M ) ; if ( M === "cata" ) throw new Error ( "cannot have a case named cata (sorry)" ) ; if ( ! C ( I ) ) throw new Error ( "case arguments must be an array" ) ; c . push ( M ) , h [ M ] = ( ... V ) => { const X = V . length ; if ( X !== I . length ) throw new Error ( "Wrong number of arguments to case " + M + ". Expected " + I . length + " (" + I + "), got " + X ) ; return { fold : ( ... ue ) => { if ( ue . length !== o . length ) throw new Error ( "Wrong number of arguments to fold. Expected " + o . length + ", got " + ue . length ) ; return ue [ _ ] . apply ( null , V ) } , match : ue => { const me = Zs ( ue ) ; if ( c . length !== me . length ) throw new Error ( "Wrong number of arguments to match. Expected: " + c . join ( "," ) + `
Actual: ` + me . join ( "," ) ) ; if ( ! Wt ( c , Ne => at ( me , Ne ) ) ) throw new Error ( "Not all branches were specified when using match. Specified: " + me . join ( ", " ) + `
Required: ` + c . join ( ", " ) ) ; return ue [ M ] . apply ( null , V ) } , log : ue => { console . log ( ue , { constructors : c , constructor : M , params : V } ) } } } } ) , h } } ; G . generate ( [ { bothErrors : [ "error1" , "error2" ] } , { firstError : [ "error1" , "value2" ] } , { secondError : [ "value1" , "error2" ] } , { bothValues : [ "value1" , "value2" ] } ] ) ; const ve = o => { const c = [ ] , h = [ ] ; return Mt ( o , b => { b . fold ( _ => { c . push ( _ ) } , _ => { h . push ( _ ) } ) } ) , { errors : c , values : h } } , Te = ( o , c ) => { const h = { } ; return ar ( o , ( b , _ ) => { at ( c , _ ) || ( h [ _ ] = b ) } ) , h } , rt = ( o , c ) => ( { [ o ] : c } ) , Ft = o => { const c = { } ; return Mt ( o , h => { c [ h . key ] = h . value } ) , c } , Cn = ( o , c ) => Te ( o , c ) , In = ( o , c ) => rt ( o , c ) , Wo = o => Ft ( o ) , Jo = ( o , c ) => o . length === 0 ? yn . value ( c ) : yn . value ( Jr ( c , yd . apply ( void 0 , o ) ) ) , bi = o => yn . error ( xt ( o ) ) , tr = ( o , c ) => { const h = ve ( o ) ; return h . errors . length > 0 ? bi ( h . errors ) : Jo ( h . values , c ) } , br = o => W ( o ) ? o : ft , Bc = ( o , c , h ) => { let b = o . dom ; const _ = br ( h ) ; for ( ; b . parentNode ; ) { b = b . parentNode ; const x = st . fromDom ( b ) , M = c ( x ) ; if ( M . isSome ( ) ) return M ; if ( _ ( x ) ) break } return z . none ( ) } , Qc = ( o , c , h ) => { const b = c ( o ) , _ = br ( h ) ; return b . orThunk ( ( ) => _ ( o ) ? z . none ( ) : Bc ( o , c , _ ) ) } , Gu = ( o , c ) => _r ( o . element , c . event . target ) , Ef = { can : bt , abort : ft , run : F } , nh = o => { if ( ! Ii ( o , "can" ) && ! Ii ( o , "abort" ) && ! Ii ( o , "run" ) ) throw new Error ( "EventHandler defined by: " + JSON . stringify ( o , null , 2 ) + " does not have can, abort, or run!" ) ; return { ... Ef , ... o } } , oh = ( o , c ) => ( ... h ) => xo ( o , ( b , _ ) => b && c ( _ ) . apply ( void 0 , h ) , ! 0 ) , lr = ( o , c ) => ( ... h ) => xo ( o , ( b , _ ) => b || c ( _ ) . apply ( void 0 , h ) , ! 1 ) , zm = o => W ( o ) ? { can : bt , abort : ft , run : o } : o , Vm = o => { const c = oh ( o , _ => _ . can ) , h = lr ( o , _ => _ . abort ) ; return { can : c , abort : h , run : ( ... _ ) => { Mt ( o , x => { x . run . apply ( void 0 , _ ) } ) } } } , Ji = K , eu = Ji ( "touchstart" ) , Fp = Ji ( "touchmove" ) , Wm = Ji ( "touchend" ) , Os = Ji ( "touchcancel" ) , Br = Ji ( "mousedown" ) , Da = Ji ( "mousemove" ) , cc = Ji ( "mouseout" ) , j1 = Ji ( "mouseup" ) , Sl = Ji ( "mouseover" ) , Zi = Ji ( "focusin" ) , tu = Ji ( "focusout" ) , xf = Ji ( "keydown" ) , F _ = Ji ( "keyup" ) , qh = Ji ( "input" ) , zg = Ji ( "change" ) , Gh = Ji ( "click" ) , Um = Ji ( "transitioncancel" ) , Vg = Ji ( "transitionend" ) , eb = Ji ( "transitionstart" ) , Kh = Ji ( "selectstart" ) , Oa = o => K ( "alloy." + o ) , sh = { tap : Oa ( "tap" ) } , kd = Oa ( "focus" ) , jm = Oa ( "blur.post" ) , Zm = Oa ( "paste.post" ) , Yh = Oa ( "receive" ) , Ku = Oa ( "execute" ) , tb = Oa ( "focus.item" ) , Z1 = sh . tap , H _ = Oa ( "longpress" ) , Ma = Oa ( "sandbox.close" ) , Wg = Oa ( "typeahead.cancel" ) , qm = Oa ( "system.init" ) , nu = Oa ( "system.touchmove" ) , Af = Oa ( "system.touchend" ) , Gm = Oa ( "system.scroll" ) , rh = Oa ( "system.resize" ) , Tu = Oa ( "system.attached" ) , Ed = Oa ( "system.detached" ) , Km = Oa ( "system.dismissRequested" ) , nb = Oa ( "system.repositionRequested" ) , _v = Oa ( "focusmanager.shifted" ) , Cv = Oa ( "slotcontainer.visibility" ) , ih = Oa ( "system.external.element.scroll" ) , Ug = Oa ( "change.tab" ) , Sv = Oa ( "dismiss.tab" ) , Ym = Oa ( "highlight" ) , kv = Oa ( "dehighlight" ) , nr = ( o , c ) => { jg ( o , o . element , c , { } ) } , Ao = ( o , c , h ) => { jg ( o , o . element , c , h ) } , ah = o => { nr ( o , Ku ( ) ) } , q1 = ( o , c , h ) => { jg ( o , c , h , { } ) } , jg = ( o , c , h , b ) => { const _ = { target : c , ... b } ; o . getSystem ( ) . triggerEvent ( h , c , _ ) } , Tk = ( o , c , h , b ) => { const _ = { ... b , target : c } ; o . getSystem ( ) . triggerEvent ( h , c , _ ) } , Ev = ( o , c , h , b ) => { o . getSystem ( ) . triggerEvent ( h , c , b . event ) } , ri = o => Wo ( o ) , xv = ( o , c ) => ( { key : o , value : nh ( { abort : c } ) } ) , G1 = ( o , c ) => ( { key : o , value : nh ( { can : c } ) } ) , g2 = o => ( { key : o , value : nh ( { run : ( c , h ) => { h . event . prevent ( ) } } ) } ) , Qt = ( o , c ) => ( { key : o , value : nh ( { run : c } ) } ) , xd = ( o , c , h ) => ( { key : o , value : nh ( { run : ( b , _ ) => { c . apply ( void 0 , [ b , _ ] . concat ( h ) ) } } ) } ) , $ _ = o => c => Qt ( o , c ) , ob = o => c => ( { key : o , value : nh ( { run : ( h , b ) => { Gu ( h , b ) && c ( h , b ) } } ) } ) , Dk = ( o , c ) => Qt ( o , ( h , b ) => { h . getSystem ( ) . getByUid ( c ) . each ( _ => { Ev ( _ , _ . element , o , b ) } ) } ) , Xm = ( o , c , h ) => { const b = c . partUids [ h ] ; return Dk ( o , b ) } , p2 = ( o , c ) => Qt ( o , ( h , b ) => { const _ = b . event , x = h . getSystem ( ) . getByDom ( _ . target ) . getOrThunk ( ( ) => Qc ( _ . target , I => h . getSystem ( ) . getByDom ( I ) . toOptional ( ) , ft ) . getOr ( h ) ) ; c ( h , x , b ) } ) , Xh = o => Qt ( o , ( c , h ) => { h . cut ( ) } ) , Ad = o => Qt ( o , ( c , h ) => { h . stop ( ) } ) , Jm = ( o , c ) => ob ( o ) ( c ) , vi = ob ( Tu ( ) ) , Td = ob ( Ed ( ) ) , Dd = ob ( qm ( ) ) , ou = $ _ ( Ku ( ) ) , Fs = ( o , c ) => { const b = ( c || document ) . createElement ( "div" ) ; return b . innerHTML = o , Wl ( st . fromDom ( b ) ) } , Hp = o => o . dom . innerHTML , lh = ( o , c ) => { const b = na ( o ) . dom , _ = st . fromDom ( b . createDocumentFragment ( ) ) , x = Fs ( c , b ) ; Uu ( _ , x ) , oi ( o ) , tl ( o , _ ) } , Zg = o => { const c = st . fromTag ( "div" ) , h = st . fromDom ( o . dom . cloneNode ( ! 0 ) ) ; return tl ( c , h ) , Hp ( c ) } , Ok = ( o , c ) => st . fromDom ( o . dom . cloneNode ( c ) ) , sb = o => Ok ( o , ! 1 ) , Av = o => { if ( Ae ( o ) ) return "#shadow-root" ; { const c = sb ( o ) ; return Zg ( c ) } } , kl = o => Av ( o ) , o3 = ( o , c , h ) => _r ( c , o . ele
Originator : ` +kl(b)+ `
Target : ` +kl(_)+ `
Check the ` +kd()+" event handlers"),!1):!0})]);var El=Object.freeze({__proto__:null,events:qg});let b2=0;const oo=o=>{const h=new Date().getTime(),b=Math.floor(Math.random()*1e9);return b2++,o+"_"+b+b2+String(h)},v2=K("alloy-id-"),Mk=K("data-alloy-id"),y2=v2(),Jh=Mk(),Yu=(o,c)=>{const h=oo(y2+o);return ch(c,h),h},ch=(o,c)=>{Object.defineProperty(o.dom,Jh,{value:c,writable:!0})},Gg=o=>{const c=gr(o)?o.dom[Jh]:null;return z.from(c)},uh=o=>oo(o),rb=Re,Tf=o=>{const c=_=> ` The component must be in a context to execute : $ { _ } ` +(o? `
` +kl(o().element)+" is not in context.":""),h=_=>()=>{throw new Error(c(_))},b=_=>()=>{console.warn(c(_))};return{debugInfo:K("fake"),triggerEvent:b("triggerEvent"),triggerFocus:b("triggerFocus"),triggerEscape:b("triggerEscape"),broadcast:b("broadcast"),broadcastOn:b("broadcastOn"),broadcastEvent:b("broadcastEvent"),build:h("build"),buildOrPatch:h("buildOrPatch"),addToWorld:h("addToWorld"),removeFromWorld:h("removeFromWorld"),addToGui:h("addToGui"),removeFromGui:h("removeFromGui"),getByUid:h("getByUid"),getByDom:h("getByDom"),isConnected:ft}},Kg=Tf(),w2=(o,c,h)=>{const b=h.toString(),_=b.indexOf(")")+1,x=b.indexOf("("),M=b.substring(x+1,_-1).split(/, \s */);return o.toFunctionAnnotation=()=>({name:c,parameters: $ p(M.slice(0,1).concat(M.slice(3)))}),o}, $ p=o=>Ye(o,c=>Bi(c,"/*")?c.substring(0,c.length-2):c),Kf=(o,c)=>{const h=o.toString(),b=h.indexOf(")")+1,_=h.indexOf("("),x=h.substring(_+1,b-1).split(/, \s */);return o.toFunctionAnnotation=()=>({name:c,parameters: $ p(x)}),o},_2=(o,c)=>{const h=c.toString(),b=h.indexOf(")")+1,_=h.indexOf("("),x=h.substring(_+1,b-1).split(/, \s */);return o.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters: $ p(x.slice(1))}),o},fh=oo("alloy-premade"),Tv=o=>(Object.defineProperty(o.element.dom,fh,{value:o.uid,writable:!0}),In(fh,o)),z_=o=>ps(o.dom,fh),C2=o=>an(o,fh),Yg=o=>_2((c,...h)=>o(c.getApis(),c,...h),o),Df={init:()=>su({readState:K("No State required")})},su=o=>o,Xg=(o,c)=>{const h=Ye(c,_=>Ua(_.name(),[Jt("config"),Et("state",Df)])),b=zi("component.behaviours",ro(h),o.behaviours).fold(_=>{throw new Error(Sd(_)+ `
Complete spec :
` +JSON.stringify(o,null,2))},Re);return{list:c,data:Ns(b,_=>{const x=_.map(M=>({config:M.config,state:M.state.init(M.config)}));return K(x)})}},S2=o=>o.list,V_=o=>o.data,ib=(o,c)=>{const h={};return ar(o,(b,_)=>{ar(b,(x,M)=>{const I=an(h,M).getOr([]);h[M]=I.concat([c(_,x)])})}),h},Lc=o=>({classes:N(o.classes)?[]:o.classes,attributes:N(o.attributes)?{}:o.attributes,styles:N(o.styles)?{}:o.styles}),ab=(o,c)=>({...o,attributes:{...o.attributes,...c.attributes},styles:{...o.styles,...c.styles},classes:o.classes.concat(c.classes)}),Xu=(o,c,h,b)=>{const _={...c};Mt(h,se=>{_[se.name()]=se.exhibit(o,b)});const x=ib(_,(se,ue)=>({name:se,modification:ue})),M=se=>ao(se,(ue,me)=>({...me.modification,...ue}),{}),I=ao(x.classes,(se,ue)=>ue.modification.concat(se),[]),V=M(x.attributes),X=M(x.styles);return Lc({classes:I,attributes:V,styles:X})},Jg=(o,c,h,b)=>{try{const _=ns(h,(x,M)=>{const I=x[c],V=M[c],X=b.indexOf(I),se=b.indexOf(V);if(X===-1)throw new Error("The ordering for "+o+" does not have an entry for "+I+ ` .
Order specified : ` +JSON.stringify(b,null,2));if(se===-1)throw new Error("The ordering for "+o+" does not have an entry for "+V+ ` .
Order specified : ` +JSON.stringify(b,null,2));return X<se?-1:se<X?1:0});return yn.value(_)}catch(_){return yn.error([_])}},Qh=(o,c)=>({handler:o,purpose:c}),Dv=(o,c)=>({cHandler:o,purpose:c}),W_=(o,c)=>Dv(Ee.apply(void 0,[o.handler].concat(c)),o.purpose),zp=o=>o.cHandler,k2=(o,c)=>({name:o,handler:c}),Qg=(o,c)=>{const h={};return Mt(o,b=>{h[b.name()]=b.handlers(c)}),h},lb=(o,c,h)=>{const b={...h,...Qg(c,o)};return ib(b,k2)},K1=(o,c,h,b)=>{const _=lb(o,h,b);return Rk(_,c)},E2=o=>{const c=zm(o);return(h,b,..._)=>{const x=[h,b].concat(_);c.abort.apply(void 0,x)?b.stop():c.can.apply(void 0,x)&&c.run.apply(void 0,x)}},x2=(o,c)=>yn.error(["The event ("+o+ ` ) has more than one behaviour that listens to it .
When this occurs , you must specify an event ordering for the behaviours in your spec ( e . g . [ "listing" , "toggling" ] ) .
The behaviours that can trigger it are : ` +JSON.stringify(Ye(c,h=>h.name),null,2)]),U_=(o,c,h)=>{const b=c[h];return b?Jg("Event: "+h,"name",o,b).map(_=>{const x=Ye(_,M=>M.handler);return Vm(x)}):x2(h,o)},Rk=(o,c)=>{const h=ea(o,(b,_)=>(b.length===1?yn.value(b[0].handler):U_(b,c,_)).map(M=>{const I=E2(M),V=b.length>1?bo(c[_],X=>_n(b,se=>se.name===X)).join(" > "):b[0].name;return In(_,Qh(I,V))}));return tr(h,{})},Lr="alloy.base.behaviour",Ov=ro([za("dom","dom",pr(),ro([Jt("tag"),Et("styles",{}),Et("classes",[]),Et("attributes",{}),Sr("value"),Sr("innerHtml")])),Jt("components"),Jt("uid"),Et("events",{}),Et("apis",{}),za("eventOrder","eventOrder",Cf({[Ku()]:["disabling",Lr,"toggling","typeaheadevents"],[kd()]:[Lr,"focusing","keying"],[qm()]:[Lr,"disabling","toggling","representing"],[qh()]:[Lr,"representing","streaming","invalidating"],[Ed()]:[Lr,"representing","item-events","tooltipping"],[Br()]:["focusing",Lr,"item-type-events"],[eu()]:["focusing",Lr,"item-type-events"],[Sl()]:["item-type-events","tooltipping"],[Yh()]:["receiving","reflecting","tooltipping"]}),Pc()),Sr("domModification")]),A2=o=>zi("custom.definition",Ov,o),T2=o=>({...o.dom,uid:o.uid,domChildren:Ye(o.components,c=>c.element)}),cb=o=>o.domModification.fold(()=>Lc({}),Lc),Nk=o=>o.events,em=(o,c)=>{const h=Fi(o,c);return h===void 0||h===""?[]:h.split(" ")},qa=(o,c,h)=>{const _=em(o,c).concat([h]);return Gn(o,c,_.join(" ")),!0},ub=(o,c,h)=>{const b=bo(em(o,c),_=>_!==h);return b.length>0?Gn(o,c,b.join(" ")):Ue(o,c),!1},Y1=o=>o.dom.classList!==void 0,j_=o=>em(o,"class"),fb=(o,c)=>qa(o,"class",c),D2=(o,c)=>ub(o,"class",c),Ra=(o,c)=>{Y1(o)?o.dom.classList.add(c):fb(o,c)},dh=o=>{(Y1(o)?o.dom.classList:j_(o)).length===0&&Ue(o,"class")},da=(o,c)=>{Y1(o)?o.dom.classList.remove(c):D2(o,c),dh(o)},Ju=(o,c)=>Y1(o)&&o.dom.classList.contains(c),Qm=(o,c)=>{Mt(c,h=>{Ra(o,h)})},Fc=(o,c)=>{Mt(c,h=>{da(o,h)})},Pk=(o,c)=>Wt(c,h=>Ju(o,h)),O2=o=>{const c=o.dom.classList,h=new Array(c.length);for(let b=0;b<c.length;b++){const _=c.item(b);_!==null&&(h[b]=_)}return h},Yf=o=>Y1(o)?O2(o):j_(o),Na=o=>o.dom.value,Sa=(o,c)=>{if(c===void 0)throw new Error("Value.set was undefined");o.dom.value=c},Ik=(o,c,h)=>Rc(o,c).map(_=>{if(h.exists(M=>!_r(M,_))){const M=h.map(fl).getOr("span"),I=st.fromTag(M);return ya(_,I),I}else return _}),hh=(o,c,h)=>{h.fold(()=>tl(o,c),b=>{_r(b,c)||(ya(b,c),Cu(b))})},db=(o,c,h)=>{const b=Ye(c,h),_=Wl(o);return Mt(_.slice(b.length),Cu),b},Mv=(o,c,h,b)=>{const _=Rc(o,c),x=b(h,_),M=Ik(o,c,_);return hh(o,x.element,M),x},Xf=(o,c,h)=>db(o,c,(b,_)=>Mv(o,_,b,h)),Qu=(o,c)=>db(o,c,(h,b)=>{const _=Rc(o,b);return hh(o,h,_),h}),Vp=(o,c)=>{const h=Zs(o),b=Zs(c),_=yt(b,h),x=Or(o,(M,I)=>!ps(c,I)||M!==c[I]).t;return{toRemove:_,toSet:x}},X1=(o,c)=>{const{class:h,style:b,..._}=Bt(c),{toSet:x,toRemove:M}=Vp(o.attributes,_),I=()=>{Mt(M,Zt=>Ue(c,Zt)),Mm(c,x)},V=ni(c),{toSet:X,toRemove:se}=Vp(o.styles,V),ue=()=>{Mt(se,Zt=>Cs(c,Zt)),mi(c,X)},me=Yf(c),we=yt(me,o.classes),Ne=yt(o.classes,me),nt=()=>{Qm(c,Ne),Fc(c,we)},Ht=Zt=>{lh(c,Zt)},ct=()=>{const Zt=o.domChildren;Qu(c,Zt)},it=()=>{const Zt=c,Dt=o.value.getOrUndefined();Dt!==Na(Zt)&&Sa(Zt,Dt!=null?Dt:"")};return I(),nt(),ue(),o.innerHtml.fold(ct,Ht),it(),c},hb=o=>{const c=st.fromTag(o.tag);Mm(c,o.attributes),Qm(c,o.classes),mi(c,o.styles),o.innerHtml.each(b=>lh(c,b));const h=o.domChildren;return Uu(c,h),o.value.each(b=>{Sa(c,b)}),c},mb=(o,c)=>{try{const h=X1(o,c);return z.some(h)}catch{return z.none()}},Z_=o=>o.innerHtml.isSome()&&o.domChildren.length>0,M2=(o,c)=>{const h=_=>fl(_)===o.tag&&!Z_(o)&&!z_(_),b=c.filter(h).bind(_=>mb(o,_)).getOrThunk(()=>hb(o));return ch(b,o.uid),b},Bk=o=>{const c=an(o,"behaviours").getOr({});return Pe(Zs(c),h=>{const b=c[h];return U(b)?[b.me]:[]})},q_=(o,c)=>Xg(o,c),G_=o=>{const c=Bk(o);return q_(o,c)},R2=(o,c,h)=>{const b=T2(o),_=cb(o),x={"alloy.base.modification":_},M=c.length>0?Xu(h,x,c,b):_;return ab(b,M)},K_=(o,c,h)=>{const b={"alloy.base.behaviour":Nk(o)};return K1(h,o.eventOrder,c,b).getOrDie()},s3=(o,c)=>{const h=()=>Zt,b=Ho(Kg),_=fa(A2(o)),x=G_(o),M=S2(x),I=V_(x),V=R2(_,M,I),X=M2(V,c),se=K_(_,M,I),u
` ) ; return St ( c , h => h . indexOf ( "alloy" ) > 0 && ! _n ( Hk , b => h . indexOf ( b ) > - 1 ) ) . getOr ( Q1 ) } else return Q1 } , gb = { logEventCut : F , logEventStopped : F , logNoParent : F , logEventNoHandlers : F , logEventResponse : F , write : F } , pb = ( o , c , h ) => eC ( o , c , h ) , nC = K ( gb ) , L2 = K ( [ Jt ( "menu" ) , Jt ( "selectedMenu" ) ] ) , Zp = K ( [ Jt ( "item" ) , Jt ( "selectedItem" ) ] ) ; K ( ro ( Zp ( ) . concat ( L2 ( ) ) ) ) ; const oC = K ( ro ( Zp ( ) ) ) , qp = Gf ( "initSize" , [ Jt ( "numColumns" ) , Jt ( "numRows" ) ] ) , ng = ( ) => Gr ( "markers" , oC ( ) ) , Iv = ( ) => Gf ( "markers" , [ Jt ( "backgroundMenu" ) ] . concat ( L2 ( ) ) . concat ( Zp ( ) ) ) , tf = o => Gf ( "markers" , Ye ( o , Jt ) ) , e0 = ( o , c , h ) => ( tC ( ) , za ( c , c , h , Zu ( b => yn . value ( ( ... _ ) => b . apply ( void 0 , _ ) ) ) ) ) , Gs = o => e0 ( "onHandler" , o , Uf ( F ) ) , iu = o => e0 ( "onKeyboardHandler" , o , Uf ( z . none ) ) , og = o => e0 ( "onHandler" , o , pr ( ) ) , F2 = o => e0 ( "onKeyboardHandler" , o , pr ( ) ) , Vi = ( o , c ) => _a ( o , K ( c ) ) , H2 = o => _a ( o , Re ) , sg = K ( qp ) , ha = ( o , c , h , b , _ , x , M , I = ! 1 ) => ( { x : o , y : c , bubble : h , direction : b , placement : _ , restriction : x , label : ` ${ M } - ${ _ } ` , alwaysFit : I } ) , tm = G . generate ( [ { southeast : [ ] } , { southwest : [ ] } , { northeast : [ ] } , { northwest : [ ] } , { south : [ ] } , { north : [ ] } , { east : [ ] } , { west : [ ] } ] ) , Vt = ( o , c , h , b , _ , x , M , I , V ) => o . fold ( c , h , b , _ , x , M , I , V ) , bb = ( o , c , h , b ) => o . fold ( c , c , b , b , c , b , h , h ) , $2 = ( o , c , h , b ) => o . fold ( c , b , c , b , h , h , c , b ) , vb = tm . southeast , mh = tm . southwest , nf = tm . northeast , t0 = tm . northwest , Bv = tm . south , z2 = tm . north , Lv = tm . east , yb = tm . west , gh = ( o , c , h , b ) => { const _ = o + c ; return _ > b ? h : _ < h ? b : _ } , Qf = ( o , c , h ) => Math . min ( Math . max ( o , c ) , h ) , Du = ( o , c ) => { switch ( c ) { case 1 : return o . x ; case 0 : return o . x + o . width ; case 2 : return o . y ; case 3 : return o . y + o . height } } , Fl = ( o , c ) => Kt ( [ "left" , "right" , "top" , "bottom" ] , h => an ( c , h ) . map ( b => Du ( o , b ) ) ) , V2 = ( o , c , h ) => { const b = ( V , X ) => c [ V ] . map ( se => { const ue = V === "top" || V === "bottom" , me = ue ? h . top : h . left , Ne = ( V === "left" || V === "top" ? Math . max : Math . min ) ( se , X ) + me ; return ue ? Qf ( Ne , o . y , o . bottom ) : Qf ( Ne , o . x , o . right ) } ) . getOr ( X ) , _ = b ( "left" , o . x ) , x = b ( "top" , o . y ) , M = b ( "right" , o . right ) , I = b ( "bottom" , o . bottom ) ; return si ( _ , x , M - _ , I - x ) } , np = "layout" , sC = o => o . x , wb = ( o , c ) => o . x + o . width / 2 - c . width / 2 , Gp = ( o , c ) => o . x + o . width - c . width , W2 = ( o , c ) => o . y - c . height , Fv = o => o . y + o . height , rC = ( o , c ) => o . y + o . height / 2 - c . height / 2 , Hv = o => o . x + o . width , U2 = ( o , c ) => o . x - c . width , ml = ( o , c , h ) => ha ( sC ( o ) , Fv ( o ) , h . southeast ( ) , vb ( ) , "southeast" , Fl ( o , { left : 1 , top : 3 } ) , np ) , Kl = ( o , c , h ) => ha ( Gp ( o , c ) , Fv ( o ) , h . southwest ( ) , mh ( ) , "southwest" , Fl ( o , { right : 0 , top : 3 } ) , np ) , Ou = ( o , c , h ) => ha ( sC ( o ) , W2 ( o , c ) , h . northeast ( ) , nf ( ) , "northeast" , Fl ( o , { left : 1 , bottom : 2 } ) , np ) , Fr = ( o , c , h ) => ha ( Gp ( o , c ) , W2 ( o , c ) , h . northwest ( ) , t0 ( ) , "northwest" , Fl ( o , { right : 0 , bottom : 2 } ) , np ) , Yl = ( o , c , h ) => ha ( wb ( o , c ) , W2 ( o , c ) , h . north ( ) , z2 ( ) , "north" , Fl ( o , { bottom : 2 } ) , np ) , Hl = ( o , c , h ) => ha ( wb ( o , c ) , Fv ( o ) , h . south ( ) , Bv ( ) , "south" , Fl ( o , { top : 3 } ) , np ) , nm = ( o , c , h ) => ha ( Hv ( o ) , rC ( o , c ) , h . east ( ) , Lv ( ) , "east" , Fl ( o , { left : 0 } ) , np ) , vr = ( o , c , h ) => ha ( U2 ( o , c ) , rC ( o , c ) , h . west ( ) , yb ( ) , "west" , Fl ( o , { right : 1 } ) , np ) , iC = ( ) => [ ml , Kl , Ou , Fr , Hl , Yl , nm , vr ] , au = ( ) => [ Kl , ml , Fr , Ou , Hl , Yl , nm , vr ] , xl = ( ) => [ Ou , Fr , ml , Kl , Yl , Hl ] , j2 = ( ) => [ Fr , Ou , Kl , ml , Yl , Hl ] , rg = ( ) => [ ml , Kl , Ou , Fr , Hl , Yl ] , fc = ( ) => [ Kl , ml , Fr , Ou , Hl , Yl ] , r3 = ( o , c ) => c . universal ? o : bo ( o , h => at ( c . channels , h ) ) ; var $k = Object . freeze ( { _ _proto _ _ : null , events : o => ri ( [ Qt ( Yh ( ) , ( c , h ) => { const b = o . channels , _ = Zs ( b ) , x = h , M = r3 ( _ , x ) ; Mt ( M , I => { const V = b [ I ] , X = V . schema , se = xs ( "channel[" + I + ` ] data
Receiver: ` + kl ( c . element ) , X , x . data ) ; V . onReceive ( c , se ) } ) } ) ] ) } ) , zk = [ Gr ( "channels" , W1 ( yn . value , pi ( [ og ( "onReceive" ) , Et ( "schema" , Pc ( ) ) ] ) ) ) ] ; const Z2 = ( o , c , h ) => ou ( b => { h ( b , o , c ) } ) , q2 = ( o , c , h ) => Dd ( ( b , _ ) => { h ( b , o , c ) } ) , om = ( o , c , h , b , _ , x ) => { const M = pi ( o ) , I = Ua ( c , [ ac ( "config" , o ) ] ) ; return Al ( M , I , c , h , b , _ , x ) } , G2 = ( o , c , h , b , _ , x ) => { const M = o , I = Ua ( c , [ Wa ( "config" , o ) ] ) ; return Al ( M , I , c , h , b , _ , x ) } , Kp = ( o , c , h ) => w2 ( ( _ , ... x ) => { const M = [ _ ] . concat ( x ) ; return _ . config ( { name : K ( o ) } ) . fold ( ( ) => { throw new Error ( "We could not find any behaviour configuration for: " + o + ". Using API: " + h ) } , I => { const V = Array . prototype . slice . call ( M , 1 ) ; return c . apply ( void 0 , [ _ , I . config , I . state ] . concat ( V ) ) } ) } , h , c ) , gl = o => ( { key : o , value : void 0 } ) , Al = ( o , c , h , b , _ , x , M ) => { const I = ue => Ii ( ue , h ) ? ue [ h ] ( ) : z . none ( ) , V = Ns ( _ , ( ue , me ) => Kp ( h , ue , me ) ) , se = { ... Ns ( x , ( ue , me ) => Kf ( ue , me ) ) , ... V , revoke : Ee ( gl , h ) , config : ue => { const me = xs ( h + "-config" , o , ue ) ; return { key : h , value : { config : me , me : se , configAsRaw : xi ( ( ) => xs ( h + "-config" , o , ue ) ) , initialConfig : ue , state : M } } } , schema : K ( c ) , exhibit : ( ue , me ) => Un ( I ( ue ) , an ( b , "exhibit" ) , ( we , Ne ) => Ne ( me , we . config , we . state ) ) . getOrThunk ( ( ) => Lc ( { } ) ) , name : K ( h ) , handlers : ue => I ( ue ) . map ( me => an ( b , "events" ) . getOr ( ( ) => ( { } ) ) ( me . config , me . state ) ) . getOr ( { } ) } ; return se } , En = o => Wo ( o ) , Vk = pi ( [ Jt ( "fields" ) , Jt ( "name" ) , Et ( "active" , { } ) , Et ( "apis" , { } ) , Et ( "state" , Df ) , Et ( "extra" , { } ) ] ) , Xl = o => { const c = xs ( "Creating behaviour: " + o . name , Vk , o ) ; return om ( c . fields , c . name , c . active , c . apis , c . extra , c . state ) } , Wk = pi ( [ Jt ( "branchKey" ) , Jt ( "branches" ) , Jt ( "name" ) , Et ( "active" , { } ) , Et ( "apis" , { } ) , Et ( "state" , Df ) , Et ( "extra" , { } ) ] ) , K2 = o => { const c = xs ( "Creating behaviour: " + o . name , Wk , o ) ; return G2 ( Cl ( c . branchKey , c . branches ) , c . name , c . active , c . apis , c . extra , c . state ) } , to = K ( void 0 ) , Cc = Xl ( { fields : zk , name : "receiving" , active : $k } ) ; var n0 = Object . freeze ( { _ _proto _ _ : null , exhibit : ( o , c ) => Lc ( { classes : [ ] , styles : c . useFixed ( ) ? { } : { position : "relative" } } ) } ) ; const of = o => o . dom . focus ( ) , $v = o => o . dom . blur ( ) , Yp = o => { const c = Pt ( o ) . dom ; return o . dom === c . activeElement } , Of = ( o = Kd ( ) ) => z . from ( o . dom . activeElement ) . map ( st . fromDom ) , nl = o => Of ( Pt ( o ) ) . filter ( c => o . dom . contains ( c . dom ) ) , Od = ( o , c ) => { const h = Pt ( c ) , b = Of ( h ) . bind ( x => { const M = I => _r ( x , I ) ; return M ( c ) ? z . some ( c ) : Wp ( c , M ) } ) , _ = o ( c ) ; return b . each ( x => { Of ( h ) . filter ( M => _r ( M , x ) ) . fold ( ( ) => { of ( x ) } , F ) } ) , _ } , Md = ( o , c , h , b , _ ) => { const x = M => M + "px" ; return { position : o , left : c . map ( x ) , top : h . map ( x ) , right : b . map ( x ) , bottom : _ . map ( x ) } } , Hc = o => ( { ... o , position : z . some ( o . position ) } ) , o0 = ( o , c ) => { dn ( o , Hc ( c ) ) } , X2 = G . generate ( [ { none : [ ] } , { relative : [ "x" , "y" , "width" , "height" ] } , { fixed : [ "x" , "y" , "width" , "height" ] } ] ) , aC = ( o , c , h , b , _ , x ) => { const M = c . rect , I = M . x - h , V = M . y - b , X = M . width , se = M . height , ue = _ - ( I + X ) , me = x - ( V + se ) , we = z . some ( I ) , Ne = z . some ( V ) , nt = z . some ( ue ) , Ht = z . some ( me ) , ct = z . none ( ) ; return Vt ( c . direction , ( ) => Md ( o , we , Ne , ct , ct ) , ( ) => Md ( o , ct , Ne , nt , ct ) , ( ) => Md ( o , we , ct , ct , Ht ) , ( ) => Md ( o , ct , ct , nt , Ht ) , ( ) => Md ( o , we , Ne , ct , ct ) , ( ) => Md ( o , we , ct , ct , Ht ) , ( ) => Md ( o , we , Ne , ct , ct ) , ( ) => Md ( o , ct , Ne , nt , ct ) ) } , J2 = ( o , c ) => o . fold ( ( ) => { const h = c . rect ; return Md ( "absolute" , z . some ( h . x ) , z . some ( h . y ) , z . none ( ) , z . none ( ) ) } , ( h , b , _ , x ) => aC ( "absolute" , c , h , b , _ , x ) , ( h , b , _ , x ) => aC ( "fixed" , c , h , b , _ , x ) ) , ph = ( o , c ) => { const h = Ee ( jh , c ) , b = o . fold ( h , h , ( ) => { const M = ic ( ) ; return jh ( c ) . translate ( - M . left , - M . top ) } ) , _ = Ha ( c ) , x = Ff ( c ) ; return si ( b . left , b . top , _ , x ) } , jr = ( o , c ) => c . fold ( ( ) => o . fold ( le , le , si ) , h => o . fold ( K ( h ) , K ( h ) , ( ) => { const b = zv ( o , h . x , h . y ) ; return si ( b . left , b . top , h . width , h . height ) } ) ) , zv = ( o , c , h ) => { const b = fr ( c , h ) , _ = ( ) => { const x = ic ( ) ; return b . translate ( - x . left , - x . top ) } ; return o . fold ( K ( b ) , K ( b ) , _ ) } , ed = ( o , c , h , b ) => o . fold ( c , h , b ) ; X2 . none ; const lC = X2 . relative , cC = X2 . fixed , sa = ( o , c ) => ( { anchorBox : o , origin : c } ) , Uk = ( o , c ) => sa ( o , c ) , Vv = "data-alloy-placement" , Wv = ( o , c ) => { Gn ( o , Vv , c ) } , uC = o => de ( o , Vv ) , jk = o => Ue ( o , Vv ) , s0 = G . generate ( [ { fit : [ "reposition" ] } , { nofit : [ "reposition" , "visibleW" , "visibleH" , "isVisible" ] } ] ) , fC = ( o , c ) => { const { x : h , y : b , right : _ , bottom : x } = c , { x : M , y : I , right : V , bottom : X , width : se , height : ue } = o , me = M >= h && M <= _ , we = I >= b && I <= x , Ne = me && we , nt = V <= _ && V >= h , Ht = X <= x && X >= b , ct = nt && Ht , it = Math . min ( se , M >= h ? _ - M : V - h ) , Zt = Math . min ( ue , I >= b ? x - I : X - b ) ; return { originInBounds : Ne , sizeInBounds : ct , visibleW : it , visibleH : Zt } } , Zk = ( o , c ) => { const { x : h , y : b , right : _ , bottom : x } = c , { x : M , y : I , width : V , height : X } = o , se = Math . max ( h , _ - V ) , ue = M
Known : [ ` +Zs(b)+ ` ]
Namespace : ` +o.getOr("none")+ `
Spec : ` +JSON.stringify(h,null,2))},_=>_.replace()),yw=(o,c,h,b)=>_h(h)&&h.uiType===v3?FC(o,c,h,b):vw.single(!1,K(h)),ww=(o,c,h,b)=>yw(o,c,h,b).fold((x,M)=>{const I=_h(h)?M(c,h.config,h.validated):M(c),V=an(I,"components").getOr([]),X=Pe(V,se=>ww(o,c,se,b));return[{...I,components:X}]},(x,M)=>{if(_h(h)){const I=M(c,h.config,h.validated);return h.validated.preprocess.getOr(Re)(I)}else return M(c)}),PE=(o,c,h,b)=>Pe(h,_=>ww(o,c,_,b)),_w=(o,c)=>{let h=!1;const b=()=>h,_=()=>{if(h)throw new Error("Trying to use the same placeholder more than once: "+o);return h=!0,c},x=()=>c.fold((M,I)=>M,(M,I)=>M);return{name:K(o),required:x,used:b,replace:_}},HC=(o,c,h,b)=>{const _=Ns(b,(M,I)=>_w(I,M)),x=PE(o,c,h,_);return ar(_,M=>{if(M.used()===!1&&M.required())throw new Error("Placeholder: "+M.name()+ ` was not found in components list
Namespace : ` +o.getOr("none")+ `
Components : ` +JSON.stringify(c.components,null,2))}),x},IE=vw.single,IO=vw.multiple,fm=K(v3), $ C=G.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Cw=Et("factory",{sketch:Re}),nd=Et("schema",[]),Tl=Jt("name"),BE=za("pname","pname",ql(o=>"<alloy."+oo(o.name)+">"),Pc()),Sw=_a("schema",()=>[Sr("preprocess")]),Bd=Et("defaults",K({})),kw=Et("overrides",K({})),LE=ro([Cw,nd,Tl,BE,Bd,kw]),FE=ro([Cw,nd,Tl,Bd,kw]),BO=ro([Cw,nd,Tl,BE,Bd,kw]),y3=ro([Cw,Sw,Tl,Jt("unit"),BE,Bd,kw]),Ew=o=>o.fold(z.some,z.none,z.some,z.some),w3=o=>{const c=h=>h.name;return o.fold(c,c,c,c)},LO=o=>o.fold(Re,Re,Re,Re),v0=(o,c)=>h=>{const b=xs("Converting part type",c,h);return o(b)},zc=v0( $ C.required,LE),Ch=v0( $ C.external,FE),Ld=v0( $ C.optional,BO),od=v0( $ C.group,y3),zC=K("entirety");var Nb=Object.freeze({__proto__:null,required:zc,external:Ch,optional:Ld,group:od,asNamedPart:Ew,name:w3,asCommon:LO,original:zC});const Qp=(o,c,h,b)=>Jr(c.defaults(o,h,b),h,{uid:o.partUids[c.name]},c.overrides(o,h,b)),FO=(o,c,h)=>{const b={},_={};return Mt(h,x=>{x.fold(M=>{b[M.pname]=IE(!0,(I,V,X)=>M.factory.sketch(Qp(I,M,V,X)))},M=>{const I=c.parts[M.name];_[M.name]=K(M.factory.sketch(Qp(c,M,I[zC()]),I))},M=>{b[M.pname]=IE(!1,(I,V,X)=>M.factory.sketch(Qp(I,M,V,X)))},M=>{b[M.pname]=IO(!0,(I,V,X)=>{const se=I[M.name];return Ye(se,ue=>M.factory.sketch(Jr(M.defaults(I,ue,X),ue,M.overrides(I,ue))))})})}),{internals:K(b),externals:K(_)}},HE=(o,c)=>{const h={};return Mt(c,b=>{Ew(b).each(_=>{const x=HO(o,_.pname);h[_.name]=M=>{const I=xs("Part: "+_.name+" in "+o,ro(_.schema),M);return{...x,config:M,validated:I}}})}),h},HO=(o,c)=>({uiType:fm(),owner:o,name:c}),_3=(o,c,h)=>({uiType:fm(),owner:o,name:c,config:h,validated:{}}),C3=o=>Pe(o,c=>c.fold(z.none,z.some,z.none,z.none).map(h=>Gf(h.name,h.schema.concat([H2(zC())]))).toArray()),S3=o=>Ye(o,w3),VC=(o,c,h)=>FO(o,c,h), $ E=(o,c,h)=>HC(z.some(o),c,c.components,h),Ai=(o,c,h)=>{const b=c.partUids[h];return o.getSystem().getByUid(b).toOptional()},e1=(o,c,h)=>Ai(o,c,h).getOrDie("Could not find part: "+h),uy=(o,c,h)=>{const b={},_=c.partUids,x=o.getSystem();return Mt(h,M=>{b[M]=K(x.getByUid(_[M]))}),b},zE=(o,c)=>{const h=o.getSystem();return Ns(c.partUids,(b,_)=>K(h.getByUid(b)))},k3=o=>Zs(o.partUids),VE=(o,c,h)=>{const b={},_=c.partUids,x=o.getSystem();return Mt(h,M=>{b[M]=K(x.getByUid(_[M]).getOrDie())}),b},E3=(o,c)=>{const h=S3(c);return Wo(Ye(h,b=>({key:b,value:o+"-"+b})))},WC=o=>za("partUids","partUids",xe(c=>E3(c.uid,o)),Pc());var $ O=Object.freeze({__proto__:null,generate:HE,generateOne:_3,schemas:C3,names:S3,substitutes:VC,components: $ E,defaultUids:E3,defaultUidsSchema:WC,getAllParts:zE,getAllPartNames:k3,getPart:Ai,getPartOrDie:e1,getParts:uy,getPartsOrDie:VE});const zO=(o,c)=>(o.length>0?[Gf("parts",o)]:[]).concat([Jt("uid"),Et("dom",{}),Et("components",[]),H2("originalSpec"),Et("debug.sketcher",{})]).concat(c),x3=(o,c,h,b,_)=>{const x=zO(b,_);return xs(o+" [SpecSchema]",pi(x.concat(c)),h)},VO=(o,c,h,b)=>{const _=dy(b),x=x3(o,c,_,[],[]);return h(x,_)},WE=(o,c,h,b,_)=>{const x=dy(_),M=C3(h),I=WC(h),V=x3(o,c,x,M,[I]),X=VC(o,V,h),se= $ E(o,V,X.internals());return b(V,se,x,X.externals())},fy=o=>ps(o,"uid"),dy=o=>fy(o)?o:{...o,uid:uh("uid")},UC=o=>o.uid!==void 0,A3=pi([Jt("name"),Jt("factory"),Jt("configFields"),Et("apis",{}),Et("extraApis",{})]),Sh=pi([Jt("name"),Jt("factory"),Jt("configFields"),Jt("partFields"),Et("apis",{}),Et("extraApis",{})]),Vc=o=>{const c=xs("Sketcher for "+o.name,A3,o),h=x=>VO(c.name,c.configFields,c.factory,x),b=Ns(c.apis,Yg),_=Ns(c.extraApis,(x,M)=>Kf(x,M));return{name:c.name,configFields:c.configFields,sketch:h,...b,..._}},fu=o=>{const c=xs("Sketcher for "+o.name,Sh,o),h=M=>WE(c.name,c.configFields,c.partFields,c.factory,M),b=HE(c.name,c.partFields),_=Ns(c.apis,Yg),x=Ns(c.extraApis,(M,I)=>Kf(M,I));return{name:c.name,partFields:c.partFields,configFields:c.configFields,sketch:h,parts:b,..._,...x}},lp=o=>Vl("input")(o)&&Fi(o,"type")!=="radio"||Vl("textarea")(o);var UO=Object.freeze({__proto__:null,getCurrent:(o,c,h)=>c.find(o)});const jO=[Jt("find")],sr=Xl({fields:jO,name:"comp
Cannot use it for: ` + kl ( X . element ) + `
The conflicting element is ` + ( qs ( ue . element ) ? " " : " not " ) + "already in the DOM" ) } , _ = X => { const se = h ( X ) ; Ii ( c , se ) && b ( X , se ) ; const ue = [ X ] ; o . registerId ( ue , se , X . events ) , c [ se ] = X } , x = X => { Gg ( X . element ) . each ( se => { delete c [ se ] , o . unregisterId ( se ) } ) } ; return { find : ( X , se , ue ) => o . find ( X , se , ue ) , filter : X => o . filterByType ( X ) , register : _ , unregister : x , getById : X => an ( c , X ) } } , l1 = Vc ( { name : "Container" , factory : o => { const { attributes : c , ... h } = o . dom ; return { uid : o . uid , dom : { tag : "div" , attributes : { role : "presentation" , ... c } , ... h } , components : o . components , behaviours : cm ( o . containerBehaviours ) , events : o . events , domModification : o . domModification , eventOrder : o . eventOrder } } , configFields : [ Et ( "components" , [ ] ) , $l ( "containerBehaviours" , [ ] ) , Et ( "events" , { } ) , Et ( "domModification" , { } ) , Et ( "eventOrder" , { } ) ] } ) , s5 = o => { const c = ct => Fa ( o . element ) . fold ( bt , it => _r ( ct , it ) ) , h = _Z ( ) , b = ( ct , it ) => h . find ( c , ct , it ) , _ = dZ ( o . element , { triggerEvent : ( ct , it ) => pb ( ct , it . target , Zt => bZ ( b , ct , it , Zt ) ) } ) , x = { debugInfo : K ( "real" ) , triggerEvent : ( ct , it , Zt ) => { pb ( ct , it , Dt => _8 ( b , ct , Zt , it , Dt ) ) } , triggerFocus : ( ct , it ) => { Gg ( ct ) . fold ( ( ) => { of ( ct ) } , Zt => { pb ( kd ( ) , ct , Dt => ( gZ ( b , kd ( ) , { originator : it , kill : F , prevent : F , target : ct } , ct , Dt ) , ! 1 ) ) } ) } , triggerEscape : ( ct , it ) => { x . triggerEvent ( "keydown" , ct . element , it . event ) } , getByUid : ct => nt ( ct ) , getByDom : ct => Ht ( ct ) , build : uc , buildOrPatch : eg , addToGui : ct => { V ( ct ) } , removeFromGui : ct => { X ( ct ) } , addToWorld : ct => { M ( ct ) } , removeFromWorld : ct => { I ( ct ) } , broadcast : ct => { me ( ct ) } , broadcastOn : ( ct , it ) => { we ( ct , it ) } , broadcastEvent : ( ct , it ) => { Ne ( ct , it ) } , isConnected : bt } , M = ct => { ct . connect ( x ) , Ja ( ct . element ) || ( h . register ( ct ) , Mt ( ct . components ( ) , M ) , x . triggerEvent ( qm ( ) , ct . element , { target : ct . element } ) ) } , I = ct => { Ja ( ct . element ) || ( Mt ( ct . components ( ) , I ) , h . unregister ( ct ) ) , ct . disconnect ( ) } , V = ct => { sl ( o , ct ) } , X = ct => { $c ( ct ) } , se = ( ) => { _ . unbind ( ) , Cu ( o . element ) } , ue = ct => { const it = h . filter ( Yh ( ) ) ; Mt ( it , Zt => { const Dt = Zt . descHandler ; zp ( Dt ) ( ct ) } ) } , me = ct => { ue ( { universal : ! 0 , data : ct } ) } , we = ( ct , it ) => { ue ( { universal : ! 1 , channels : ct , data : it } ) } , Ne = ( ct , it ) => { const Zt = h . filter ( ct ) ; return pZ ( Zt , it ) } , nt = ct => h . getById ( ct ) . fold ( ( ) => yn . error ( new Error ( 'Could not find component with uid: "' + ct + '" in system.' ) ) , yn . value ) , Ht = ct => { const it = Gg ( ct ) . getOr ( "not found" ) ; return nt ( it ) } ; return M ( o ) , { root : o , element : o . element , destroy : se , add : V , remove : X , getByUid : nt , getByDom : Ht , addToWorld : M , removeFromWorld : I , broadcast : me , broadcastOn : we , broadcastEvent : Ne } } , CZ = ( o , c ) => ( { dom : { tag : "div" , classes : [ "tox-bar" , "tox-form__controls-h-stack" ] } , components : Ye ( o . items , c . interpreter ) } ) , SZ = K ( [ Et ( "prefix" , "form-field" ) , $l ( "fieldBehaviours" , [ sr , Kn ] ) ] ) , kZ = K ( [ Ld ( { schema : [ Jt ( "dom" ) ] , name : "label" } ) , Ld ( { factory : { sketch : o => ( { uid : o . uid , dom : { tag : "span" , styles : { display : "none" } , attributes : { "aria-hidden" : "true" } , innerHtml : o . text } } ) } , schema : [ Jt ( "text" ) ] , name : "aria-descriptor" } ) , zc ( { factory : { sketch : o => { const c = Cn ( o , [ "factory" ] ) ; return o . factory . sketch ( c ) } } , schema : [ Jt ( "factory" ) ] , name : "field" } ) ] ) , EZ = ( o , c , h , b ) => { const _ = Ql ( o . fieldBehaviours , [ sr . config ( { find : I => Ai ( I , o , "field" ) } ) , Kn . config ( { store : { mode : "manual" , getValue : I => sr . getCurrent ( I ) . bind ( Kn . getValue ) , setValue : ( I , V ) => { sr . getCurrent ( I ) . each ( X => { Kn . setValue ( X , V ) } ) } } } ) ] ) , x = ri ( [ vi ( ( I , V ) => { const X = uy ( I , o , [ "label" , "field" , "aria-descriptor" ] ) ; X . field ( ) . each ( se => { const ue = oo ( o . prefix ) ; X . label ( ) . each ( me => { Gn ( me . element , "for" , ue ) , Gn ( se . element , "id" , ue ) } ) , X [ "aria-descriptor" ] ( ) . each ( me => { const we = oo ( o . prefix ) ; Gn ( me . element , "id" , we ) , Gn ( se . element , "aria-describedby" , we ) } ) } ) } ) ] ) , M = { getField : I => Ai ( I , o , "field" ) , getLabel : I => Ai ( I , o , "label" ) } ; return { uid : o . uid , dom : o . dom , components : c , behaviours : _ , events : x , apis : M } } , ei = fu ( { name : "FormField" , configFields : SZ ( ) , partFields : kZ ( ) , factory : EZ , apis : { getField : ( o , c ) => o . getField ( c ) , getLabel : ( o , c ) => o . getLabel ( c ) } } ) ; var xZ = Object . freeze ( { _ _proto _ _ : null , exhibit : ( o , c ) => Lc ( { attributes : Wo ( [ { key : c . tabAttr , value : "true" } ] ) } ) } ) , C8 = [ Et ( "tabAttr" , "data-alloy-tabstop" ) ] ; const Ga = Xl ( { fields : C8 , name : "tabstopping" , active : xZ } ) ; var AZ = tinymce . util . Tools . resolve ( "tinymce.html.Entities" ) ; const Dx = ( o , c , h , b ) => { const _ = TZ ( o , c , h , b ) ; return ei . sketch ( _ ) } , S8 = ( o , c ) => Dx ( o , c , [ ] , [ ] ) , TZ = ( o , c , h , b ) => ( { dom : k8 ( h ) , components : o . toArray ( ) . concat ( [ c ] ) , fieldBehaviours : En ( b ) } ) , DZ = ( ) => k8 ( [ ] ) , k8 = o => ( { ta
` +JSON.stringify(o));Gb.setItem(RS,JSON.stringify(o))},N7=o=>{const c=M7();return an(c,o).getOr([])},rre=(o,c)=>{if(!D7(o))return;const h=M7(),b=an(h,c).getOr([]),_=bo(b,x=>x!==o);h[c]=[o].concat(_).slice(0,T7),R7(h)},bK=o=>!!o,Fu=o=>Ns(tv.makeMap(o,/[, ]/),bK),Qx=o=>z.from(_B(o)),vK=o=>{const c=z.from(zM(o)).filter(bK).map(Fu);return Qx(o).fold(ft,h=>c.fold(bt,b=>Zs(b).length>0?b:!1))},A4=(o,c)=>{const h=vK(o);return O(h)?h?Qx(o):z.none():h[c]?Qx(o):z.none()},yK=(o,c)=>A4(o,c).map(h=>b=>Lu.nu(_=>{const x=(I,V)=>{if(!m(I))throw new Error("Expected value to be string");if(V!==void 0&&!g(V))throw new Error("Expected meta to be a object");_({value:I,meta:V})},M={filetype:c,fieldname:b.fieldname,...z.from(b.meta).getOr({})};h.call(o,x,b.value,M)})),P7=o=>z.from(o).filter(m).getOrUndefined(),wK=o=>kB(o)?z.some({targets:d1.find(o.getBody()),anchorTop:P7(EB(o)),anchorBottom:P7(oT(o))}):z.none(),_K=o=>z.from(CB(o)),CK=o=>({getHistory:N7,addToHistory:rre,getLinkInformation:()=>wK(o),getValidationHandler:()=>_K(o),getUrlPicker:c=>yK(o,c)}),SK=(o,c,h,b)=>{const _=Ho(!1),x=tK(c),M={icons:()=>c.ui.registry.getAll().icons,menuItems:()=>c.ui.registry.getAll().menuItems,translate:mm.translate,isDisabled:()=>c.mode.isReadOnly()||!c.ui.isEnabled(),getOption:c.options.get},I=CK(c),V=k4(c),X=QG(c),se=y7(c),ue=()=>_.get(),me=Ht=>_.set(Ht),we={shared:{providers:M,anchors:v7(c,h,b,x.isPositionedAtTop),header:x},urlinput:I,styles:V,colorinput:X,dialog:se,isContextMenuOpen:ue,setContextMenuState:me},Ne={...we,shared:{...we.shared,interpreter:Ht=>MS(Ht,{},Ne),getSink:o.popup}},nt={...we,shared:{...we.shared,interpreter:Ht=>MS(Ht,{},nt),getSink:o.dialog}};return{popup:Ne,dialog:nt}},kK=(o,c,h)=>{const b=(hn,Pn)=>{Mt([c,...h],Zn=>{Zn.broadcastEvent(hn,Pn)})},_=(hn,Pn)=>{Mt([c,...h],Zn=>{Zn.broadcastOn([hn],Pn)})},x=hn=>_(wh(),{target:hn.target}),M=Kd(),I=Sc(M,"touchstart",x),V=Sc(M,"touchmove",hn=>b(nu(),hn)),X=Sc(M,"touchend",hn=>b(Af(),hn)),se=Sc(M,"mousedown",x),ue=Sc(M,"mouseup",hn=>{hn.raw.button===0&&_(EE(),{target:hn.target})}),me=hn=>_(wh(),{target:st.fromDom(hn.target)}),we=hn=>{hn.button===0&&_(EE(),{target:st.fromDom(hn.target)})},Ne=()=>{Mt(o.editorManager.get(),hn=>{o!==hn&&hn.dispatch("DismissPopups",{relatedTarget:o})})},nt=hn=>b(Gm(),ol(hn)),Ht=hn=>{_(p0(),{}),b(rh(),ol(hn))},ct=Pt(st.fromDom(o.getElement())),it=i0(ct,"scroll",hn=>{requestAnimationFrame(()=>{const Pn=o.getContainer();if(Pn!=null){const js=Kw(o,c.element).map(yo=>[yo.element,...yo.others]).getOr([]);_n(js,yo=>_r(yo,hn.target))&&(o.dispatch("ElementScroll",{target:hn.target.dom}),b(ih(),hn))}})}),Zt=()=>_(p0(),{}),Dt=hn=>{hn.state&&_(wh(),{target:st.fromDom(o.getContainer())})},Sn=hn=>{_(wh(),{target:st.fromDom(hn.relatedTarget.getContainer())})};o.on("PostRender",()=>{o.on("click",me),o.on("tap",me),o.on("mouseup",we),o.on("mousedown",Ne),o.on("ScrollWindow",nt),o.on("ResizeWindow",Ht),o.on("ResizeEditor",Zt),o.on("AfterProgressState",Dt),o.on("DismissPopups",Sn)}),o.on("remove",()=>{o.off("click",me),o.off("tap",me),o.off("mouseup",we),o.off("mousedown",Ne),o.off("ScrollWindow",nt),o.off("ResizeWindow",Ht),o.off("ResizeEditor",Zt),o.off("AfterProgressState",Dt),o.off("DismissPopups",Sn),se.unbind(),I.unbind(),V.unbind(),X.unbind(),ue.unbind(),it.unbind()}),o.on("detach",()=>{Mt([c,...h],wE),Mt([c,...h],hn=>hn.destroy())})},kc= $ O,h1=Nb,T4=K([Et("shell",!1),Jt("makeItem"),Et("setupItem",F),um.field("listBehaviours",[ms])]),I7=Ld({name:"items",overrides:()=>({behaviours:En([ms.config({})])})}),EK=K([I7]),B7=K("CustomList"),xK=(o,c,h,b)=>{const _=(I,V)=>{M(I).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},X=>{const se=ms.contents(X),ue=V.length,me=ue-se.length,we=me>0?Tt(me,()=>o.makeItem()):[],Ne=se.slice(ue);Mt(Ne,Ht=>ms.remove(X,Ht)),Mt(we,Ht=>ms.append(X,Ht));const nt=ms.contents(X);Mt(nt,(Ht,ct)=>{o.setupItem(I,Ht,V[ct],ct)})})},x=o.shell?{behaviours:[ms.config({})],components:[]}:
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.143 0c2.608.015 5.186 2.178 5.186 5.331 0 0 .077 3.812-.084 4.87-.361 2.41-2.164 4.074-4.65 4.496-1.453.284-2.523.49-3.212.623-.373.071-.634.122-.785.152-.184.038-.997.145-1.35.145-2.732 0-5.21-2.04-5.248-5.33 0 0 0-3.514.03-4.442.093-2.4 1.758-4.342 4.926-4.963 0 0 3.875-.752 4.036-.782.368-.07.775-.1 1.15-.1Zm1.826 2.8L5.83 3.989v2.393l-2.455.475v5.968l6.137-1.189V9.243l2.456-.476V2.8ZM5.83 6.382l3.682-.713v3.574l-3.682.713V6.382Zm27.173-1.64-.084-1.066h-2.226v9.132h2.456V7.743c-.008-1.151.998-2.064 2.149-2.072 1.15-.008 1.987.92 1.995 2.072v5.065h2.455V7.359c-.015-2.18-1.657-3.929-3.837-3.913a3.993 3.993 0 0 0-2.908 1.296Zm-6.3-4.266L29.16 0v2.387l-2.456.475V.476Zm0 3.2v9.132h2.456V3.676h-2.456Zm18.179 11.787L49.11 3.676H46.58l-1.612 4.527-.46 1.382-.384-1.382-1.611-4.527H39.98l3.3 9.132L42.15 16l2.732-.537ZM22.867 9.738c0 .752.568 1.075.921 1.075.353 0 .668-.047.998-.154l.537 1.765c-.23.154-.92.537-2.225.537-1.305 0-2.655-.997-2.686-2.686a136.877 136.877 0 0 1 0-4.374H18.8V3.676h1.612v-1.98l2.455-.476v2.456h2.302V5.9h-2.302v3.837Z"/>
</svg>
` ; const sQ = o => o . nodeName === "BR" || ! ! o . getAttribute ( "data-mce-bogus" ) || o . getAttribute ( "data-mce-type" ) === "bookmark" , rQ = ( o , c , h ) => { var b ; const _ = ( b = c . delimiter ) !== null && b !== void 0 ? b : "\u203A" , x = ( X , se , ue ) => Wc . sketch ( { dom : { tag : "div" , classes : [ "tox-statusbar__path-item" ] , attributes : { "data-index" : ue , "aria-level" : ue + 1 } } , components : [ Ri ( X ) ] , action : me => { o . focus ( ) , o . selection . select ( se ) , o . nodeChanged ( ) } , buttonBehaviours : En ( [ pg . button ( h . isDisabled ) , ec ( ) ] ) } ) , M = ( ) => ( { dom : { tag : "div" , classes : [ "tox-statusbar__path-divider" ] , attributes : { "aria-hidden" : ! 0 } } , components : [ Ri ( ` ${ _ } ` ) ] } ) , I = X => xo ( X , ( se , ue , me ) => { const we = x ( ue . name , ue . element , me ) ; return me === 0 ? se . concat ( [ we ] ) : se . concat ( [ M ( ) , we ] ) } , [ ] ) , V = X => { const se = [ ] ; let ue = X . length ; for ( ; ue -- > 0 ; ) { const me = X [ ue ] ; if ( me . nodeType === 1 && ! sQ ( me ) ) { const we = Eh ( o , me ) ; if ( we . isDefaultPrevented ( ) || se . push ( { name : we . name , element : me } ) , we . isPropagationStopped ( ) ) break } } return se } ; return { dom : { tag : "div" , classes : [ "tox-statusbar__path" ] , attributes : { role : "navigation" } } , behaviours : En ( [ Po . config ( { mode : "flow" , selector : "div[role=button]" } ) , Ko . config ( { disabled : h . isDisabled } ) , ec ( ) , Ga . config ( { } ) , ms . config ( { } ) , Ss ( "elementPathEvents" , [ vi ( ( X , se ) => { o . shortcuts . add ( "alt+F11" , "focus statusbar elementpath" , ( ) => Po . focusIn ( X ) ) , o . on ( "NodeChange" , ue => { const me = V ( ue . parents ) , we = me . length > 0 ? I ( me ) : [ ] ; ms . set ( X , we ) } ) } ) ] ) ] ) , components : [ ] } } ; var Ly ; ( function ( o ) { o [ o . None = 0 ] = "None" , o [ o . Both = 1 ] = "Both" , o [ o . Vertical = 2 ] = "Vertical" } ) ( Ly || ( Ly = { } ) ) ; const iQ = ( o , c , h , b , _ ) => { const x = { height : Q4 ( b + c . top , PM ( o ) , IM ( o ) ) } ; return h === Ly . Both && ( x . width = Q4 ( _ + c . left , ax ( o ) , rS ( o ) ) ) , x } , l$ = ( o , c , h ) => { const b = st . fromDom ( o . getContainer ( ) ) , _ = iQ ( o , c , h , Oi ( b ) , Yi ( b ) ) ; ar ( _ , ( x , M ) => { q ( x ) && no ( b , M , s6 ( x ) ) } ) , ET ( o ) } , aQ = o => { const c = AB ( o ) ; return c === ! 1 ? Ly . None : c === "both" ? Ly . Both : Ly . Vertical } , cD = ( o , c , h , b ) => { const x = fr ( h * 20 , b * 20 ) ; return l$ ( o , x , c ) , z . some ( ! 0 ) } , lQ = ( o , c ) => { const h = aQ ( o ) ; if ( h === Ly . None ) return z . none ( ) ; const b = h === Ly . Both ? "Press the arrow keys to resize the editor." : "Press the Up and Down arrow keys to resize the editor." ; return z . some ( dp ( "resize-handle" , { tag : "div" , classes : [ "tox-statusbar__resize-handle" ] , attributes : { title : c . translate ( "Resize" ) , "aria-label" : c . translate ( b ) } , behaviours : [ f _ . config ( { mode : "mouse" , repositionTarget : ! 1 , onDrag : ( _ , x , M ) => l$ ( o , M , h ) , blockerClass : "tox-blocker" } ) , Po . config ( { mode : "special" , onLeft : ( ) => cD ( o , h , - 1 , 0 ) , onRight : ( ) => cD ( o , h , 1 , 0 ) , onUp : ( ) => cD ( o , h , 0 , - 1 ) , onDown : ( ) => cD ( o , h , 0 , 1 ) } ) , Ga . config ( { } ) , Qo . config ( { } ) ] } , c . icons ) ) } , cQ = ( o , c ) => { const h = ( b , _ , x ) => ms . set ( b , [ Ri ( c . translate ( [ "{0} " + x , _ [ x ] ] ) ) ] ) ; return Wc . sketch ( { dom : { tag : "button" , classes : [ "tox-statusbar__wordcount" ] } , components : [ ] , buttonBehaviours : En ( [ pg . button ( c . isDisabled ) , ec ( ) , Ga . config ( { } ) , ms . config ( { } ) , Kn . config ( { store : { mode : "memory" , initialValue : { mode : "words" , count : { words : 0 , characters : 0 } } } } ) , Ss ( "wordcount-events" , [ ou ( b => { const _ = Kn . getValue ( b ) , x = _ . mode === "words" ? "characters" : "words" ; Kn . setValue ( b , { mode : x , count : _ . count } ) , h ( b , _ . count , x ) } ) , vi ( b => { o . on ( "wordCountUpdate" , _ => { const { mode : x } = Kn . getValue ( b ) ; Kn . setValue ( b , { mode : x , count : _ . wordCount } ) , h ( b , _ . wordCount , x ) } ) } ) ] ) ] ) , eventOrder : { [ Ku ( ) ] : [ "disabling" , "alloy.base.behaviour" , "wordcount-events" ] } } ) } , uQ = ( o , c ) => { const h = ( ) => ( { dom : { tag : "span" , classes : [ "tox-statusbar__branding" ] } , components : [ { dom : { tag : "a" , attributes : { href : "https://www.tiny.cloud/powered-by-tiny?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v6" , rel : "noopener" , target : "_blank" , "aria-label" : mm . translate ( [ "Powered by {0}" , "Tiny" ] ) } , innerHtml : N6 . trim ( ) } , behaviours : En ( [ Qo . config ( { } ) ] ) } ] } ) , b = ( ) => { const I = wR ( "Alt+0" ) , V = "Press {0} for help" ; return { dom : { tag : "div" , classes : [ "tox-statusbar__help-text" ] } , components : [ Ri ( mm . translate ( [ V , I ] ) ) ] } } , _ = ( ) => { const I = [ ] ; return o . hasPlugin ( "wordcount" ) && I . push ( cQ ( o , c ) ) , ux ( o ) && I . push ( h ( ) ) , { dom : { tag : "div" , classes : [ "tox-statusbar__right-container" ] } , components : I } } , x = ( ) => { const I = [ ] , V = MB ( o ) , X = xB ( o ) , se = ux ( o ) || o . hasPlugin ( "wordcount" ) , ue = ( ) => { const me = "tox-statusbar__text-container--flex-start" , we = "tox-statusbar__text-container--flex-end" , Ne = "tox-statusbar__text-container--space-around" ; if ( V ) { const nt = "tox-statusbar__text-container-3-cols" ; return ! s
` +JSON.stringify(c,null,2)).message),getBounds:o.getDragBounds})])})}),zc({schema:[Jt("dom")],name:"title"}),zc({factory:P6,schema:[Jt("dom")],name:"close"}),zc({factory:P6,schema:[Jt("dom")],name:"body"}),Ld({factory:P6,schema:[Jt("dom")],name:"footer"}),Ch({factory:{sketch:(o,c)=>({...o,dom:c.dom,components:c.components})},schema:[Et("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Et("components",[])],name:"blocker"})]),gQ=(o,c,h,b)=>{const _=Wi(),x=we=>{_.set(we);const Ne=o.lazySink(we).getOrDie(),nt=b.blocker(),Ht=Ne.getSystem().build({...nt,components:nt.components.concat([ru(we)]),behaviours:En([Qo.config({}),Ss("dialog-blocker-events",[Jm(Zi(),()=>{Th.isBlocked(we)?F():Po.focusIn(we)})])])});sl(Ne,Ht),Po.focusIn(we)},M=we=>{_.clear(),Fa(we.element).each(Ne=>{we.getSystem().getByDom(Ne).each(nt=>{ $ c(nt)})})},I=we=>e1(we,o,"body"),V=we=>Ai(we,o,"footer"),X=(we,Ne)=>{Th.block(we,Ne)},se=we=>{Th.unblock(we)},ue=oo("modal-events"),me={...o.eventOrder,[Tu()]:[ue].concat(o.eventOrder["alloy.system.attached"]||[])};return{uid:o.uid,dom:o.dom,components:c,apis:{show:x,hide:M,getBody:I,getFooter:V,setIdle:se,setBusy:X},eventOrder:me,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Ql(o.modalBehaviours,[ms.config({}),Po.config({mode:"cyclic",onEnter:o.onExecute,onEscape:o.onEscape,useTabstopAt:o.useTabstopAt,firstTabstop:o.firstTabstop}),Th.config({getRoot:_.get}),Ss(ue,[vi(we=>{dQ(we.element,e1(we,o,"title").element)})])])}},Ml=fu({name:"ModalDialog",configFields:hQ(),partFields:mQ(),factory:gQ,apis:{show:(o,c)=>{o.show(c)},hide:(o,c)=>{o.hide(c)},getBody:(o,c)=>o.getBody(c),getFooter:(o,c)=>o.getFooter(c),setBusy:(o,c,h)=>{o.setBusy(c,h)},setIdle:(o,c)=>{o.setIdle(c)}}}),pQ=ro([Ol,pT].concat(Vw)),bQ=xu,I6=[aR("button"),gg,Au("align","end",["start","end"]),dS,mp,J0("buttonType",["primary","secondary"])],u $ =[...I6,s1],B6=[Va("type",["submit","cancel","custom"]),...u $ ],vQ=[Va("type",["menu"]),wy,jb,gg,Ll("items",pQ),...I6],f $ =[...I6,Va("type",["togglebutton"]),Ca("tooltip"),gg,wy,ja("active",!1)],yQ=Cl("type",{submit:B6,cancel:B6,custom:B6,menu:vQ,togglebutton:f $ }),wQ=[Ol,s1,Va("level",["info","warn","error","success"]),nR,Et("url","")],_Q=ro(wQ),CQ=o=>[Ol,o],SQ=[Ol,s1,mp,aR("button"),gg,rR,J0("buttonType",["primary","secondary","toolbar"]),dS],L6=ro(SQ),d_=[Ol,pT],p1=d_.concat([sR]),kQ=d_.concat([tR,mp]),EQ=ro(kQ),xQ=xu,AQ=p1.concat([yT("auto")]),TQ=ro(AQ),DQ=Qd([ $ w,s1,nR]),OQ=p1.concat([lc("storageKey","default")]),MQ=ro(OQ),RQ=hl,NQ=ro(p1),PQ=hl,IQ=d_.concat([lc("tag","textarea"),Ca("scriptId"),Ca("scriptUrl"), $ m("settings",void 0)]),BQ=d_.concat([lc("tag","textarea"),Ic("init")]),LQ=Zu(o=>zi("customeditor.old",pi(BQ),o).orThunk(()=>zi("customeditor.new",pi(IQ),o))),FQ=hl, $ Q=ro(p1),zQ=eh(),VQ=o=>[Ol,X0("columns"),o],WQ=[Ol,Ca("html"),Au("presets","presentation",["presentation","document"])],UQ=ro(WQ),jQ=p1.concat([ja("border",!1),ja("sandboxed",!0),ja("streamContent",!1),ja("transparent",!0)]),ZQ=ro(jQ),qQ=hl,d $ =ro(d_.concat([Gl("height")])),h $ =ro([Ca("url"),th("zoom"),th("cachedWidth"),th("cachedHeight")]),h_=p1.concat([Gl("inputMode"),Gl("placeholder"),ja("maximized",!1),mp]),GQ=ro(h_),F6=hl,uD=o=>[Ol,tR,o,Au("align","start",["start","center","end"])],KQ=[s1, $ w],YQ=[s1,Ll("items",qu("items",()=>m $ ))],m $ =Yn([ro(KQ),ro(YQ)]),XQ=p1.concat([Ll("items",m $ ),mp]),JQ=ro(XQ),m_=hl,g $ =p1.concat([Lp("items",[s1, $ w]),Xc("size",1),mp]),QQ=ro(g $ ),eee=hl,tee=p1.concat([ja("constrain",!0),mp]),nee=ro(tee),p $ =ro([Ca("width"),Ca("height")]),oee=d_.concat([tR,Xc("min",0),Xc("max",0)]),see=ro(oee),ree=_d,H6=[Ol,Ll("header",hl),Ll("cells",wd(hl))],yA=ro(H6), $ 6=p1.concat([Gl("placeholder"),ja("maximized",!1),mp]),fD=ro( $ 6),g_=hl,wA=[Va("type",["directory","leaf"]),bT,Ca("id"),Wa("menu",nA)],z6=ro(wA),b $ =wA.concat([Ll("children",qu("children",()=>Cd("type",{directory:V6,leaf:z6})))]),V6=ro(b $ ),iee=Cd("type",{directory:V6,leaf:z6}),aee=[Ol,Ll("items",iee),Hm("onLeafAction"),Hm("onToggleExpand"),Jc("defaultExpandedIds",[],hl),Gl("defaultSelectedId")],lee=ro(aee),v $ =p1.concat(
In order to be iterable, non-array objects must have a [Symbol.iterator]() method. ` ) } var pt = Object . hasOwnProperty , vt = Object . setPrototypeOf , Ot = Object . isFrozen , fn = Object . getPrototypeOf , $n = Object . getOwnPropertyDescriptor , Nn = Object . freeze , Lt = Object . seal , $t = Object . create , vn = typeof Reflect < "u" && Reflect , ho = vn . apply , Oo = vn . construct ; ho || ( ho = function ( c , h , b ) { return c . apply ( h , b ) } ) , Nn || ( Nn = function ( c ) { return c } ) , Lt || ( Lt = function ( c ) { return c } ) , Oo || ( Oo = function ( c , h ) { return ce ( c , pe ( h ) ) } ) ; var _s = Is ( Array . prototype . forEach ) , Ws = Is ( Array . prototype . pop ) , Nr = Is ( Array . prototype . push ) , di = Is ( String . prototype . toLowerCase ) , il = Is ( String . prototype . match ) , Rl = Is ( String . prototype . replace ) , hc = Is ( String . prototype . indexOf ) , Dn = Is ( String . prototype . trim ) , Jn = Is ( RegExp . prototype . test ) , yr = vo ( TypeError ) ; function Is ( o ) { return function ( c ) { for ( var h = arguments . length , b = new Array ( h > 1 ? h - 1 : 0 ) , _ = 1 ; _ < h ; _ ++ ) b [ _ - 1 ] = arguments [ _ ] ; return ho ( o , c , b ) } } function vo ( o ) { return function ( ) { for ( var c = arguments . length , h = new Array ( c ) , b = 0 ; b < c ; b ++ ) h [ b ] = arguments [ b ] ; return Oo ( o , h ) } } function On ( o , c ) { vt && vt ( o , null ) ; for ( var h = c . length ; h -- ; ) { var b = c [ h ] ; if ( typeof b == "string" ) { var _ = di ( b ) ; _ !== b && ( Ot ( c ) || ( c [ h ] = _ ) , b = _ ) } o [ b ] = ! 0 } return o } function An ( o ) { var c = $t ( null ) , h ; for ( h in o ) ho ( pt , o , [ h ] ) && ( c [ h ] = o [ h ] ) ; return c } function jo ( o , c ) { for ( ; o !== null ; ) { var h = $n ( o , c ) ; if ( h ) { if ( h . get ) return Is ( h . get ) ; if ( typeof h . value == "function" ) return Is ( h . value ) } o = fn ( o ) } function b ( _ ) { return console . warn ( "fallback value for" , _ ) , null } return b } var Ys = Nn ( [ "a" , "abbr" , "acronym" , "address" , "area" , "article" , "aside" , "audio" , "b" , "bdi" , "bdo" , "big" , "blink" , "blockquote" , "body" , "br" , "button" , "canvas" , "caption" , "center" , "cite" , "code" , "col" , "colgroup" , "content" , "data" , "datalist" , "dd" , "decorator" , "del" , "details" , "dfn" , "dialog" , "dir" , "div" , "dl" , "dt" , "element" , "em" , "fieldset" , "figcaption" , "figure" , "font" , "footer" , "form" , "h1" , "h2" , "h3" , "h4" , "h5" , "h6" , "head" , "header" , "hgroup" , "hr" , "html" , "i" , "img" , "input" , "ins" , "kbd" , "label" , "legend" , "li" , "main" , "map" , "mark" , "marquee" , "menu" , "menuitem" , "meter" , "nav" , "nobr" , "ol" , "optgroup" , "option" , "output" , "p" , "picture" , "pre" , "progress" , "q" , "rp" , "rt" , "ruby" , "s" , "samp" , "section" , "select" , "shadow" , "small" , "source" , "spacer" , "span" , "strike" , "strong" , "style" , "sub" , "summary" , "sup" , "table" , "tbody" , "td" , "template" , "textarea" , "tfoot" , "th" , "thead" , "time" , "tr" , "track" , "tt" , "u" , "ul" , "var" , "video" , "wbr" ] ) , Kr = Nn ( [ "svg" , "a" , "altglyph" , "altglyphdef" , "altglyphitem" , "animatecolor" , "animatemotion" , "animatetransform" , "circle" , "clippath" , "defs" , "desc" , "ellipse" , "filter" , "font" , "g" , "glyph" , "glyphref" , "hkern" , "image" , "line" , "lineargradient" , "marker" , "mask" , "metadata" , "mpath" , "path" , "pattern" , "polygon" , "polyline" , "radialgradient" , "rect" , "stop" , "style" , "switch" , "symbol" , "text" , "textpath" , "title" , "tref" , "tspan" , "view" , "vkern" ] ) , io = Nn ( [ "feBlend" , "feColorMatrix" , "feComponentTransfer" , "feComposite" , "feConvolveMatrix" , "feDiffuseLighting" , "feDisplacementMap" , "feDistantLight" , "feFlood" , "feFuncA" , "feFuncB" , "feFuncG" , "feFuncR" , "feGaussianBlur" , "feImage" , "feMerge" , "feMergeNode" , "feMorphology" , "feOffset" , "fePointLight" , "feSpecularLighting" , "feSpotLight" , "feTile" , "feTurbulence" ] ) , Us = Nn ( [ "animate" , "color-profile" , "cursor" , "discard" , "fedropshadow" , "font-face" , "font-face-format" , "font-face-name" , "font-face-src" , "font-face-uri" , "foreignobject" , "hatch" , "hatchpath" , "mesh" , "meshgradient" , "meshpatch" , "meshrow" , "missing-glyph" , "script" , "set" , "solidcolor" , "unknown" , "use" ] ) , ii = Nn ( [ "math" , "menclose" , "merror" , "mfenced" , "mfrac" , "mglyph" , "mi" , "mlabeledtr" , "mmultiscripts" , "mn" , "mo" , "mover" , "mpadded" , "mphantom" , "mroot" , "mrow" , "ms" , "mspace" , "msqrt" , "mstyle" , "msub" , "msup" , "msubsup" , "mtable" , "mtd" , "mtext" , "mtr" , "munder" , "munderover" ] ) , Ka = Nn ( [ "maction" , "maligngroup" , "malignmark" , "mlongdiv" , "mscarries" , "mscarry" , "msgroup" , "mstack" , "msline" , "msrow" , "semantics" , "annotation" , "annotation-xml" , "mprescripts" , "none" ] ) , Ci = Nn ( [ "#text" ] ) , Ec = Nn ( [ "accept" , "action" , "align" , "alt" , "autocapitalize" , "autocomplete" , "autopictureinpicture" , "autoplay" , "background" , "bgcolor" , "border" , "capture" , "cellpadding" , "cellspacing" , "checked" , "cite" , "class" , "clear" , "color" , "cols" , "colspan" , "controls" , "
`+Rh),Wy&&(Rh=Rl(Rh,Fo," "),Rh=Rl(Rh,ir," ")),Dt&&R$?Dt.createHTML(Rh):Rh},c.setConfig=function(or){Lee(or),J6=!0},c.clearConfig=function(){ED=null,J6=!1},c.isValidAttribute=function(or,Gt,_o){ED||Lee({});var ks=RA(or),zl=RA(Gt);return qre(ks,zl,_o)},c.addHook=function(or,Gt){typeof Gt==" function "&&(hr[or]=hr[or]||[],Nr(hr[or],Gt))},c.removeHook=function(or){if(hr[or])return Ws(hr[or])},c.removeHooks=function(or){hr[or]&&(hr[or]=[])},c.removeAllHooks=function(){hr={}},c}var b1=GS();const KS=o=>b1().sanitize(o),y_=sS.deviceType.isTouch(),lv=(o,c)=>({dom:{tag:" div ",styles:{display:" none "},classes:[" tox - dialog _ _header "]},components:[o,c]}),EA=(o,c)=>Ml.parts.close(Wc.sketch({dom:{tag:" button ",classes:[" tox - button "," tox - button -- icon "," tox - button -- naked "],attributes:{type:" button "," aria - label ":c.translate(" Close ")}},action:o,buttonBehaviours:En([Ga.config({})])})),xA=()=>Ml.parts.title({dom:{tag:" div ",classes:[" tox - dialog _ _title "],innerHtml:" ",styles:{display:" none "}}}),A0=(o,c)=>Ml.parts.body({dom:{tag:" div ",classes:[" tox - dialog _ _body "]},components:[{dom:{tag:" div ",classes:[" tox - dialog _ _body - content "]},components:[{dom:Py(`<p>${KS(c.translate(o))}</p>`)}]}]}),cv=o=>Ml.parts.footer({dom:{tag:" div ",classes:[" tox - dialog _ _footer "]},components:o}),AA=(o,c)=>[l1.sketch({dom:{tag:" div ",classes:[" tox - dialog _ _footer - start "]},components:o}),l1.sketch({dom:{tag:" div ",classes:[" tox - dialog _ _footer - end "]},components:c})],TA=o=>{const c=" tox - dialog ",h=c+" - wrap ",b=h+" _ _backdrop ",_=c+" _ _disable - scroll ";return Ml.sketch({lazySink:o.lazySink,onEscape:x=>(o.onEscape(x),z.some(!0)),useTabstopAt:x=>!Hx(x),firstTabstop:o.firstTabstop,dom:{tag:" div ",classes:[c].concat(o.extraClasses),styles:{position:" relative ",...o.extraStyles}},components:[o.header,o.body,...o.footer.toArray()],parts:{blocker:{dom:Py(`<div class=" $ { h } "></div>`),components:[{dom:{tag:" div ",classes:y_?[b,b+" -- opaque "]:[b]}}]}},dragBlockClass:h,modalBehaviours:En([Qo.config({}),Ss(" dialog - events ",o.dialogEvents.concat([Jm(Zi(),(x,M)=>{Th.isBlocked(x)?F():Po.focusIn(x)}),Qt(_v(),(x,M)=>{x.getSystem().broadcastOn([xS],{newFocus:M.event.newFocus})})])),Ss(" scroll - lock ",[vi(()=>{Ra(Li(),_)}),Td(()=>{da(Li(),_)})]),...o.extraBehaviours]),eventOrder:{[Ku()]:[" dialog - events "],[Tu()]:[" scroll - lock "," dialog - events "," alloy . base . behaviour "],[Ed()]:[" alloy . base . behaviour "," dialog - events "," scroll - lock "],...o.eventOrder}})},DA=o=>Wc.sketch({dom:{tag:" button ",classes:[" tox - button "," tox - button -- icon "," tox - button -- naked "],attributes:{type:" button "," aria - label ":o.translate(" Close "),title:o.translate(" Close ")}},buttonBehaviours:En([Ga.config({})]),components:[dp(" close ",{tag:" span ",classes:[" tox - icon "]},o.icons)],action:c=>{nr(c,Ey)}}),wD=(o,c,h,b)=>{const _=x=>[Ri(b.translate(x.title))];return{dom:{tag:" div ",classes:[" tox - dialog _ _title "],attributes:{...h.map(x=>({id:x})).getOr({})}},components:[],behaviours:En([ym.config({channel:`${f1}-${c}`,initialData:o,renderComponents:_})])}},_D=()=>({dom:Py('<div class=" tox - dialog _ _draghandle "></div>')}),T$=(o,c,h,b)=>l1.sketch({dom:Py('<div class=" tox - dialog _ _header "></div>'),components:[wD(o,c,z.some(h),b),_D(),DA(b)],containerBehaviours:En([f_.config({mode:" mouse ",blockerClass:" blocker ",getTarget:_=>ef(_,'[role=" dialog "]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:" data - drag - left ",topAttr:" data - drag - top "}})])}),v1=(o,c,h)=>{const b=Ml.parts.title(wD(o,c,z.none(),h)),_=Ml.parts.draghandle(_D()),x=Ml.parts.close(DA(h)),M=[b].concat(o.draggable?[_]:[]).concat([x]);return l1.sketch({dom:Py('<div class=" tox - dialog _ _header "></div>'),components:M})},w_=(o,c,h)=>v1({title:h.shared.providers.translate(o),draggable:h.dialog.isDraggableModal()},c,h.shared.providers),Rt=(o,c,h,b)=>({dom:{tag:" div ",classes:[" tox - dialog _ _busy - spinner "],attributes:{" aria - label ":h.translate(o)},styles:{left:" 0 px ",right:" 0 px ",bottom:" 0 px ",top:`${b.getOr(0)}px`,position:" absolute "}},behaviours:c,components:[{dom:Py('<div class=" tox - spinner "><div></div><div></div><div></div></div>')}]}),Nt=(o,c,h)=>({onClose:()=>h.closeWindow(),onBlock:b=>{const _=Qi(o().element," . tox - dialog _ _header ").m
`;(function(){var s=tinymce.util.Tools.resolve(" tinymce . PluginManager ");const e=(Ae,Qe,ht)=>{var Pt;return ht(Ae,Qe.prototype)?!0:((Pt=Ae.constructor)===null||Pt===void 0?void 0:Pt.name)===Qe.name},t=Ae=>{const Qe=typeof Ae;return Ae===null?" null ":Qe===" object "&&Array.isArray(Ae)?" array ":Qe===" object "&&e(Ae,String,(ht,Pt)=>Pt.isPrototypeOf(ht))?" string ":Qe},r=Ae=>Qe=>t(Qe)===Ae,a=Ae=>Qe=>typeof Qe===Ae,u=Ae=>Qe=>Ae===Qe,f=r(" string "),m=r(" object "),g=r(" array "),y=u(null),C=a(" boolean "),A=Ae=>Ae==null,O=Ae=>!A(Ae),N=a(" function "),L=(Ae,Qe)=>{if(g(Ae)){for(let ht=0,Pt=Ae.length;ht<Pt;++ht)if(!Qe(Ae[ht]))return!1;return!0}return!1},U=()=>{},W=Ae=>()=>Ae,q=(Ae,Qe)=>Ae===Qe;class ee{constructor(Qe,ht){this.tag=Qe,this.value=ht}static some(Qe){return new ee(!0,Qe)}static none(){return ee.singletonNone}fold(Qe,ht){return this.tag?ht(this.value):Qe()}isSome(){return this.tag}isNone(){return!this.tag}map(Qe){return this.tag?ee.some(Qe(this.value)):ee.none()}bind(Qe){return this.tag?Qe(this.value):ee.none()}exists(Qe){return this.tag&&Qe(this.value)}forall(Qe){return!this.tag||Qe(this.value)}filter(Qe){return!this.tag||Qe(this.value)?this:ee.none()}getOr(Qe){return this.tag?this.value:Qe}or(Qe){return this.tag?this:Qe}getOrThunk(Qe){return this.tag?this.value:Qe()}orThunk(Qe){return this.tag?this:Qe()}getOrDie(Qe){if(this.tag)return this.value;throw new Error(Qe!=null?Qe:" Called getOrDie on None ")}static from(Qe){return O(Qe)?ee.some(Qe):ee.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Qe){this.tag&&Qe(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:" none ( ) "}}ee.singletonNone=new ee(!1);const F=Array.prototype.indexOf,ne=Array.prototype.push,ie=(Ae,Qe)=>F.call(Ae,Qe),oe=(Ae,Qe)=>ie(Ae,Qe)>-1,K=(Ae,Qe)=>{const ht=Ae.length,Pt=new Array(ht);for(let bn=0;bn<ht;bn++){const Ro=Ae[bn];Pt[bn]=Qe(Ro,bn)}return Pt},Re=(Ae,Qe)=>{for(let ht=0,Pt=Ae.length;ht<Pt;ht++){const bn=Ae[ht];Qe(bn,ht)}},Ce=(Ae,Qe,ht)=>(Re(Ae,(Pt,bn)=>{ht=Qe(ht,Pt,bn)}),ht),Ee=Ae=>{const Qe=[];for(let ht=0,Pt=Ae.length;ht<Pt;++ht){if(!g(Ae[ht]))throw new Error(" Arr . flatten item "+ht+" was not an array , input : "+Ae);ne.apply(Qe,Ae[ht])}return Qe},ye=(Ae,Qe)=>Ee(K(Ae,Qe)),be=(Ae,Qe)=>{for(let ht=0;ht<Ae.length;ht++){const Pt=Qe(Ae[ht],ht);if(Pt.isSome())return Pt}return ee.none()},lt=(Ae,Qe,ht=q)=>Ae.exists(Pt=>ht(Pt,Qe)),ft=Ae=>{const Qe=[],ht=Pt=>{Qe.push(Pt)};for(let Pt=0;Pt<Ae.length;Pt++)Ae[Pt].each(ht);return Qe},bt=(Ae,Qe)=>Ae?ee.some(Qe):ee.none(),z=Ae=>Qe=>Qe.options.get(Ae),gt=Ae=>{const Qe=Ae.options.register;Qe(" link _assume _external _targets ",{processor:ht=>{const Pt=f(ht)||C(ht);return Pt?ht===!0?{value:1,valid:Pt}:ht===" http "||ht===" https "?{value:ht,valid:Pt}:{value:0,valid:Pt}:{valid:!1,message:" Must be a string or a boolean . "}},default:!1}),Qe(" link _context _toolbar ",{processor:" boolean ",default:!1}),Qe(" link _list ",{processor:ht=>f(ht)||N(ht)||L(ht,m)}),Qe(" link _default _target ",{processor:" string "}),Qe(" link _default _protocol ",{processor:" string ",default:" https "}),Qe(" link _target _list ",{processor:ht=>C(ht)||L(ht,m),default:!0}),Qe(" link _rel _list ",{processor:" object [ ] ",default:[]}),Qe(" link _class _list ",{processor:" object [ ] ",default:[]}),Qe(" link _title ",{processor:" boolean ",default:!0}),Qe(" allow _unsafe _link _target ",{processor:" boolean ",default:!1}),Qe(" link _quicklink ",{processor:" boolean ",default:!1})},tt=z(" link _assume _external _targets "),Ct=z(" link _context _toolbar "),kt=z(" link _list "),Le=z(" link _default _target "),at=z(" link _default _protocol "),_n=z(" link _target _list "),Tt=z(" link _rel _list "),Rn=z(" link _class _list "),Ye=z(" link _title "),Mt=z(" allow _unsafe _link _target "),he=z(" link _quicklink ");var ls=tinymce.util.Tools.resolve(" tinymce . util . Tools ");const bo=Ae=>f(Ae.value)?Ae.value:" ",ao=Ae=>f(Ae.text)?Ae.text:f(Ae.title)?Ae.title:" ",xo=(Ae,Qe)=>{const ht=[];return ls.each(Ae,Pt=>{const bn=ao(Pt);if(Pt.menu!==void 0){const Ro=xo(Pt.menu,Qe);ht.push({text:bn,items:Ro})}else{const Ro=Qe(Pt);ht.push({text:bn,value:Ro})}}),ht},Yo=(Ae=bo)=>Qe=>ee.from(Qe).map(ht=>xo(ht,Ae))
Actual: `+br.join(" , "));if(!Wt(G,Qc=>Tt(br,Qc)))throw new Error(" Not all branches were specified when using match . Specified : "+br.join(" , ")+`
Required: `+G.join(" , "));return tr[Cn].apply(null,Wo)},log:tr=>{console.log(tr,{constructors:G,constructor:Cn,params:Wo})}}}}),ve}}.generate([{none:[]},{only:[" index "]},{left:[" index "," next "]},{middle:[" prev "," index "," next "]},{right:[" prev "," index "]}])});const Yn=($,G)=>{const ve=$u.fromTable($);return z1(ve,G).bind(rt=>{const Ft=rt[rt.length-1],Cn=rt[0].row,In=Ft.row+Ft.rowspan,Wo=ve.all.slice(Cn,In);return h2(Wo)}).getOr(" ")},wc=$=>Mc($," rgb ")?Yc($):$,kf=$=>{const G=No.fromDom($);return{borderwidth:Pt(G," border - width ").getOr(" "),borderstyle:Pt(G," border - style ").getOr(" "),bordercolor:Pt(G," border - color ").map(wc).getOr(" "),backgroundcolor:Pt(G," background - color ").map(wc).getOr(" ")}},Qd=$=>{const G=$[0],ve=$.slice(1);return he(ve,Te=>{he(Re(G),rt=>{Ee(Te,(Ft,Cn)=>{const In=G[rt];In!==" "&&rt===Cn&&In!==Ft&&(G[rt]=" ")})})}),G},Pc=($,G,ve,Te)=>Xt($,rt=>!y(ve.formatter.matchNode(Te,G+rt))).getOr(" "),Hg=F(Pc,[" left "," center "," right "]," align "),_d=F(Pc,[" top "," middle "," bottom "]," valign "),hl=($,G)=>{const ve=Wf($),Te=Ul($),rt=()=>({borderstyle:gt(ve," border - style ").getOr(" "),bordercolor:wc(gt(ve," border - color ").getOr(" ")),backgroundcolor:wc(gt(ve," background - color ").getOr(" "))}),Ft={height:" ",width:" 100 % ",cellspacing:" ",cellpadding:" ",caption:!1,class:" ",align:" ",border:" "},Cn=()=>{const bi=ve[" border - width "];return wf($)&&bi?{border:bi}:gt(Te," border ").fold(()=>({}),tr=>({border:tr}))},In=G?rt():{},Wo=()=>{const bi=gt(ve," border - spacing ").or(gt(Te," cellspacing ")).fold(()=>({}),br=>({cellspacing:br})),tr=gt(ve," border - padding ").or(gt(Te," cellpadding ")).fold(()=>({}),br=>({cellpadding:br}));return{...bi,...tr}};return{...Ft,...ve,...Te,...In,...Cn(),...Wo()}},xu=$=>Bn(No.fromDom($)).map(G=>{const ve={selection:Im($.cells)};return Yn(G,ve)}).getOr(" "),Ip=($,G,ve)=>{const Te=(In,Wo)=>{const Jo=Pt(No.fromDom(Wo)," border - width ");return wf($)&&Jo.isSome()?Jo.getOr(" "):In.getAttrib(Wo," border ")||vc($.dom,Wo," border - width ")||vc($.dom,Wo," border ")||" "},rt=$.dom,Ft=wf($)?rt.getStyle(G," border - spacing ")||rt.getAttrib(G," cellspacing "):rt.getAttrib(G," cellspacing ")||rt.getStyle(G," border - spacing "),Cn=wf($)?vc(rt,G," padding ")||rt.getAttrib(G," cellpadding "):rt.getAttrib(G," cellpadding ")||vc(rt,G," padding ");return{width:rt.getStyle(G," width ")||rt.getAttrib(G," width "),height:rt.getStyle(G," height ")||rt.getAttrib(G," height "),cellspacing:Ft!=null?Ft:" ",cellpadding:Cn!=null?Cn:" ",border:Te(rt,G),caption:!!rt.select(" caption ",G)[0],class:rt.getAttrib(G," class "," "),align:Hg($,G),...ve?kf(G):{}}},V1=($,G,ve)=>{const Te=$.dom;return{height:Te.getStyle(G," height ")||Te.getAttrib(G," height "),class:Te.getAttrib(G," class "," "),type:xu(G),align:Hg($,G),...ve?kf(G):{}}},wn=($,G,ve,Te)=>{const rt=$.dom,Ft=Te.getOr(G),Cn=(In,Wo)=>rt.getStyle(In,Wo)||rt.getAttrib(In,Wo);return{width:Cn(Ft," width "),height:Cn(G," height "),scope:rt.getAttrib(G," scope "),celltype:Dc(G),class:rt.getAttrib(G," class "," "),halign:Hg($,G),valign:_d($,G),...ve?kf(G):{}}},Fm=($,G)=>{const ve=$u.fromTable($),Te=$u.justCells(ve),rt=ao(Te,Ft=>Rn(G,Cn=>gs(Ft.element,Cn)));return Mt(rt,Ft=>({element:Ft.element.dom,column:$u.getColumnAt(ve,Ft.column).map(Cn=>Cn.element.dom)}))},Cd=($,G,ve,Te)=>{Te(" scope ")&&$.setAttrib(" scope ",ve.scope),Te(" class ")&&$.setAttrib(" class ",ve.class),Te(" height ")&&$.setStyle(" height ",Qs(ve.height)),Te(" width ")&&G.setStyle(" width ",Qs(ve.width))},eh=($,G,ve)=>{ve(" backgroundcolor ")&&$.setFormat(" tablecellbackgroundcolor ",G.backgroundcolor),ve(" bordercolor ")&&$.setFormat(" tablecellbordercolor ",G.bordercolor),ve(" borderstyle ")&&$.setFormat(" tablecellborderstyle ",G.borderstyle),ve(" borderwidth ")&&$.setFormat(" tablecellborderwidth ",Qs(G.borderwidth))},Zu=($,G,ve,Te)=>{const rt=G.length===1;he(G,Ft=>{const Cn=Ft.element,In=rt?oe:Te,Wo=jf.normal($,Cn),Jo=Ft.column.map(bi=>jf.normal($,bi)).getOr(Wo);Cd(Wo,Jo,ve,In),Mg($)&&eh(Wo,ve,In),Te(" halign ")&&$f($,Cn,ve.halign),Te(" valign ")&&Ud($,Cn,ve.valign)})},W1=($,G)=>{$.execCommand(" mceTableCellType ",!1,{type:G.celltype,no_events:!0})},ui=($,G,ve,Te)=>{const rt=lt(Te,(Ft,Cn)=>ve[Cn]!==Ft);z(rt)>0&&G.length>=1&&Bn(G[0]).each(Ft=>{cons
`),Le)}),Ct.innerHTML=gt.encode((kt=Ct.textContent)!==null&&kt!==void 0?kt:" "),U(z).highlightElement(Ct),gt.setAttrib(Ct," data - mce - highlighted ",!0),Ct.className=Ce(Ct.className)})})}),z.on(" PreInit ",()=>{z.parser.addNodeFilter(" pre ",gt=>{var tt;for(let Ct=0,kt=gt.length;Ct<kt;Ct++){const Le=gt[Ct];((tt=Le.attr(" class "))!==null&&tt!==void 0?tt:" ").indexOf(" language - ")!==-1&&(Le.attr(" contenteditable "," false "),Le.attr(" data - mce - highlighted "," false "))}})})},be=(z,gt=r)=>tt=>{const Ct=()=>{tt.setEnabled(z.selection.isEditable()),gt(tt)};return z.on(" NodeChange ",Ct),Ct(),()=>{z.off(" NodeChange ",Ct)}},lt=z=>{const gt=z.selection.getStart();return z.dom.is(gt,'pre[class*=" language - "]')},ft=z=>{const gt=()=>z.execCommand(" codesample ");z.ui.registry.addToggleButton(" codesample ",{icon:" code - sample ",tooltip:" Insert / edit code sample ",onAction:gt,onSetup:be(z,tt=>{tt.setActive(lt(z))})}),z.ui.registry.addMenuItem(" codesample ",{text:" Code sample ... ",icon:" code - sample ",onAction:gt,onSetup:be(z)})};var bt=()=>{s.add(" codesample ",z=>{O(z),ye(z),ft(z),K(z),z.on(" dblclick ",gt=>{W(gt.target)&&oe(z)})})};bt()})();(function(){var s=tinymce.util.Tools.resolve(" tinymce . PluginManager ");const e=(qe,Ze,It)=>{var jt;return It(qe,Ze.prototype)?!0:((jt=qe.constructor)===null||jt===void 0?void 0:jt.name)===Ze.name},t=qe=>{const Ze=typeof qe;return qe===null?" null ":Ze===" object "&&Array.isArray(qe)?" array ":Ze===" object "&&e(qe,String,(It,jt)=>jt.isPrototypeOf(It))?" string ":Ze},r=qe=>Ze=>t(Ze)===qe,a=r(" string "),u=r(" object "),f=r(" array "),m=qe=>qe==null,g=qe=>!m(qe);class y{constructor(Ze,It){this.tag=Ze,this.value=It}static some(Ze){return new y(!0,Ze)}static none(){return y.singletonNone}fold(Ze,It){return this.tag?It(this.value):Ze()}isSome(){return this.tag}isNone(){return!this.tag}map(Ze){return this.tag?y.some(Ze(this.value)):y.none()}bind(Ze){return this.tag?Ze(this.value):y.none()}exists(Ze){return this.tag&&Ze(this.value)}forall(Ze){return!this.tag||Ze(this.value)}filter(Ze){return!this.tag||Ze(this.value)?this:y.none()}getOr(Ze){return this.tag?this.value:Ze}or(Ze){return this.tag?this:Ze}getOrThunk(Ze){return this.tag?this.value:Ze()}orThunk(Ze){return this.tag?this:Ze()}getOrDie(Ze){if(this.tag)return this.value;throw new Error(Ze!=null?Ze:" Called getOrDie on None ")}static from(Ze){return g(Ze)?y.some(Ze):y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ze){this.tag&&Ze(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:" none ( ) "}}y.singletonNone=new y(!1);const C=Array.prototype.push,A=(qe,Ze)=>{for(let It=0,jt=qe.length;It<jt;It++){const co=qe[It];Ze(co,It)}},O=qe=>{const Ze=[];for(let It=0,jt=qe.length;It<jt;++It){if(!f(qe[It]))throw new Error(" Arr . flatten item "+It+" was not an array , input : "+qe);C.apply(Ze,qe[It])}return Ze},N=qe=>{let Ze=qe;return{get:()=>Ze,set:co=>{Ze=co}}},L=Object.keys,U=Object.hasOwnProperty,W=(qe,Ze)=>{const It=L(qe);for(let jt=0,co=It.length;jt<co;jt++){const Bo=It[jt],qo=qe[Bo];Ze(qo,Bo)}},q=(qe,Ze)=>ee(qe,Ze)?y.from(qe[Ze]):y.none(),ee=(qe,Ze)=>U.call(qe,Ze),F=qe=>Ze=>Ze.options.get(qe),ne=qe=>{const Ze=qe.options.register;Ze(" audio _template _callback ",{processor:" function "}),Ze(" video _template _callback ",{processor:" function "}),Ze(" iframe _template _callback ",{processor:" function "}),Ze(" media _live _embeds ",{processor:" boolean ",default:!0}),Ze(" media _filter _html ",{processor:" boolean ",default:!0}),Ze(" media _url _resolver ",{processor:" function "}),Ze(" media _alt _source ",{processor:" boolean ",default:!0}),Ze(" media _poster ",{processor:" boolean ",default:!0}),Ze(" media _dimensions ",{processor:" boolean ",default:!0})},ie=F(" audio _template _callback "),oe=F(" video _template _callback "),K=F(" iframe _template _callback "),Re=F(" media _live _embeds "),Ce=F(" media _filter _html "),Ee=F(" media _url _resolver "),ye=F(" media _alt _source "),be=F(" media _poster "),lt=F(" media _dimensions ");var ft=tinymce.util.Tools.resolve(" tinymce . util . Tools "),bt=tinymce.util.Tools.resolve(" tinymce . dom . DOMUtils "),z=tinymce.util.Tools.resolve(" tinymce . html . DomParser ");const gt=bt.D
<source src=" ` +qe.altsource+'"'+(qe.altsourcemime?' type="'+qe.altsourcemime+'"':"")+ ` / >
` :"")+"</audio>",Pe=(qe,Ze)=>Ze?Ze(qe):'<video width="'+qe.width+'" height="'+qe.height+'"'+(qe.poster?' poster="'+qe.poster+'"':"")+ ` controls = "controls" >
< source src = "`+qe.source+'" '+(qe.sourcemime?' type = "'+qe.sourcemime+'" ':"")+` />
`+(qe.altsource?' < source src = "'+qe.altsource+'" '+(qe.altsourcemime?' type = "'+qe.altsourcemime+'" ':"")+` />
`:"")+"</video>",Wt=(qe,Ze)=>{var It;const jt=ft.extend({},Ze);if(!jt.source&&(ft.extend(jt,kt((It=jt.embed)!==null&&It!==void 0?It:"",qe.schema)),!jt.source))return"";jt.altsource||(jt.altsource=""),jt.poster||(jt.poster=""),jt.source=qe.convertURL(jt.source,"source"),jt.altsource=qe.convertURL(jt.altsource,"source"),jt.sourcemime=Le(jt.source),jt.altsourcemime=Le(jt.altsource),jt.poster=qe.convertURL(jt.poster,"poster");const co=Yo(jt.source);if(co&&(jt.source=co.url,jt.type=co.type,jt.allowfullscreen=co.allowFullscreen,jt.width=jt.width||String(co.w),jt.height=jt.height||String(co.h)),jt.embed)return ls(jt.embed,jt,!0,qe.schema);{const Bo=ie(qe),qo=oe(qe),Yr=K(qe);return jt.width=jt.width||"300",jt.height=jt.height||"150",ft.each(jt,(st,Uo)=>{jt[Uo]=qe.dom.encode(""+st)}),jt.type==="iframe"?St(jt,Yr):jt.sourcemime==="application/x-shockwave-flash"?Xt(jt):jt.sourcemime.indexOf("audio")!==-1?xt(jt,Bo):Pe(jt,qo)}},mn=qe=>qe.hasAttribute("data-mce-object")||qe.hasAttribute("data-ephox-embed-iri"),yt=qe=>{qe.on("click keyup touchend",()=>{const Ze=qe.selection.getNode();Ze&&qe.dom.hasClass(Ze,"mce-preview-object")&&qe.dom.getAttrib(Ze,"data-mce-selected")&&Ze.setAttribute("data-mce-selected","2")}),qe.on("ObjectResized",Ze=>{const It=Ze.target;if(It.getAttribute("data-mce-object")){let jt=It.getAttribute("data-mce-html");jt&&(jt=unescape(jt),It.setAttribute("data-mce-html",escape(ls(jt,{width:String(Ze.width),height:String(Ze.height)},!1,qe.schema))))}})},Kt={},pn=(qe,Ze,It)=>new Promise((jt,co)=>{const Bo=qo=>(qo.html&&(Kt[qe.source]=qo),jt({url:qe.source,html:qo.html?qo.html:Ze(qe)}));Kt[qe.source]?Bo(Kt[qe.source]):It({url:qe.source},Bo,co)}),ns=(qe,Ze)=>Promise.resolve({html:Ze(qe),url:qe.source}),Xn=qe=>Ze=>Wt(qe,Ze),ds=(qe,Ze)=>{const It=Ee(qe);return It?pn(Ze,Xn(qe),It):ns(Ze,Xn(qe))},Dr=qe=>ee(Kt,qe),Rs=(qe,Ze)=>q(Ze,qe).bind(It=>q(It,"meta")),Js=(qe,Ze,It)=>jt=>{const co=()=>q(qe,jt),Bo=()=>q(Ze,jt),qo=Uo=>q(Uo,"value").bind(Di=>Di.length>0?y.some(Di):y.none()),Yr=()=>co().bind(Uo=>u(Uo)?qo(Uo).orThunk(Bo):Bo().orThunk(()=>y.from(Uo))),st=()=>Bo().orThunk(()=>co().bind(Uo=>u(Uo)?qo(Uo):y.from(Uo)));return{[jt]:(jt===It?Yr():st()).getOr("")}},Zs=(qe,Ze)=>{const It={};return q(qe,"dimensions").each(jt=>{A(["width","height"],co=>{q(Ze,co).orThunk(()=>q(jt,co)).each(Bo=>It[co]=Bo)})}),It},ba=(qe,Ze)=>{const It=Ze&&Ze!=="dimensions"?Rs(Ze,qe).getOr({}):{},jt=Js(qe,It,Ze);return{...jt("source"),...jt("altsource"),...jt("poster"),...jt("embed"),...Zs(qe,It)}},ar=qe=>{const Ze={...qe,source:{value:q(qe,"source").getOr("")},altsource:{value:q(qe,"altsource").getOr("")},poster:{value:q(qe,"poster").getOr("")}};return A(["width","height"],It=>{q(qe,It).each(jt=>{const co=Ze.dimensions||{};co[It]=jt,Ze.dimensions=co})}),Ze},Ns=qe=>Ze=>{const It=Ze&&Ze.msg?"Media embed handler error: "+Ze.msg:"Media embed handler threw unknown error.";qe.notificationManager.open({type:"error",text:It})},Zr=qe=>{const Ze=qe.selection.getNode(),It=mn(Ze)?qe.serializer.serialize(Ze,{selection:!0}):"",jt=kt(It,qe.schema),Bo=(()=>{if(Bs(jt.source,jt.type)){const qo=qe.dom.getRect(Ze);return{width:qo.w.toString().replace(/px$/,""),height:qo.h.toString().replace(/px$/,"")}}else return{}})();return{embed:It,...jt,...Bo}},No=(qe,Ze)=>It=>{if(a(It.url)&&It.url.trim().length>0){const jt=It.html,Bo={...kt(jt,Ze.schema),source:It.url,embed:jt};qe.setData(ar(Bo))}},Mo=(qe,Ze)=>{const It=qe.dom.select("*[data-mce-object]");for(let jt=0;jt<Ze.length;jt++)for(let co=It.length-1;co>=0;co--)Ze[jt]===It[co]&&It.splice(co,1);qe.selection.select(It[0])},Or=(qe,Ze)=>{const It=qe.dom.select("*[data-mce-object]");qe.insertContent(Ze),Mo(qe,It),qe.nodeChanged()},Bs=(qe,Ze)=>g(Ze)&&Ze==="ephox-embed-iri"&&g(Yo(qe)),ea=(qe,Ze)=>((jt,co)=>jt.width!==co.width||jt.height!==co.height)(qe,Ze)&&Bs(Ze.source,qe.type),gs=(qe,Ze,It)=>{var jt;Ze.embed=ea(qe,Ze)&<(It)?Wt(It,{...Ze,embed:""}):ls((jt=Ze.embed)!==null&&jt!==void 0?jt:"",Ze,!1,It.schema),Ze.embed&&(qe.source===Ze.source||Dr(Ze.source))?Or(It,Ze.embed):ds(It,Ze).then(co=>{Or(It,co.html)}).catch(Ns(It))},va=qe=>{const
2023-10-06 22:07:40 +03:00
`));return be(xt.split(""),r).length},Ct=(St,Xt)=>{const xt=bt(St,Xt).join("");return gt(xt)},kt=(St,Xt)=>{const xt=bt(St,Xt).join("").replace(/\s/g,"");return gt(xt)},Le=(St,Xt)=>()=>Xt(St.getBody(),St.schema),at=(St,Xt)=>()=>Xt(St.selection.getRng().cloneContents(),St.schema),_n=St=>Le(St,tt),Tt=St=>({body:{getWordCount:_n(St),getCharacterCount:Le(St,Ct),getCharacterCountWithoutSpaces:Le(St,kt)},selection:{getWordCount:at(St,tt),getCharacterCount:at(St,Ct),getCharacterCountWithoutSpaces:at(St,kt)},getCount:_n(St)}),Rn=(St,Xt)=>{St.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(Xt.body.getWordCount()),String(Xt.selection.getWordCount())],["Characters (no spaces)",String(Xt.body.getCharacterCountWithoutSpaces()),String(Xt.selection.getCharacterCountWithoutSpaces())],["Characters",String(Xt.body.getCharacterCount()),String(Xt.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},Ye=(St,Xt)=>{St.addCommand("mceWordCount",()=>Rn(St,Xt))},Mt=(St,Xt)=>{let xt=null;return{cancel:()=>{t(xt)||(clearTimeout(xt),xt=null)},throttle:(...mn)=>{t(xt)&&(xt=setTimeout(()=>{xt=null,St.apply(null,mn)},Xt))}}};var he=tinymce.util.Tools.resolve("tinymce.util.Delay");const ls=(St,Xt)=>{St.dispatch("wordCountUpdate",{wordCount:{words:Xt.body.getWordCount(),characters:Xt.body.getCharacterCount(),charactersWithoutSpaces:Xt.body.getCharacterCountWithoutSpaces()}})},bo=(St,Xt)=>{ls(St,Xt)},ao=(St,Xt,xt)=>{const Pe=Mt(()=>bo(St,Xt),xt);St.on("init",()=>{bo(St,Xt),he.setEditorTimeout(St,()=>{St.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",Pe.throttle)},0),St.on("remove",Pe.cancel)})},xo=St=>{const Xt=()=>St.execCommand("mceWordCount");St.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:Xt}),St.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:Xt})};var Yo=(St=300)=>{s.add("wordcount",Xt=>{const xt=Tt(Xt);return Ye(Xt,xt),xo(Xt),ao(Xt,xt,St),xt})};Yo()})();function U_e(s){let e,t;return{c(){e=fe("div"),t=fe("div"),Z(t,"class","form-control"),Z(e,"class","tox-wrapper")},m(r,a){He(r,e,a),Q(e,t),t.innerHTML=s[0],s[4](t),s[5](e)},p(r,[a]){a&1&&(t.innerHTML=r[0])},i:xn,o:xn,d(r){r&&Fe(e),s[4](null),s[5](null)}}}const j_e="bold italic underline strikethrough removeformat | link | subscript superscript bullist numlist media image codesample table code wordcount blockquote indent outdent blocks";function Z_e(s,e,t){let{value:r=""}=e,{additionalConfig:a={}}=e,u="",f,m,g;const y=["autoresize","code","image","table","codesample","link","lists","media","wordcount"];she(()=>{m&&m.destroy()}),mv(()=>{const O={target:f,toolbar_mode:"sliding",toolbar_sticky:!0,skin:!1,content_css:!1,content_style:W_e.toString(),branding:!1,inline:!1,plugins:y,contextmenu:!1,menubar:!1,statusbar:!1,entity_encoding:"raw",convert_urls:!1,toolbar:j_e,image_caption:!0,relative_urls:!1,browser_spellcheck:!0,max_height:600,content_style:"img {max-width: 100%;height: auto;",setup(N){m=N,N.on("init",function(L){N.setContent(r!=null?r:"")}),N.on("change input undo redo",function(L){u=N.getContent(),u!==r&&t(0,r=u)})}};V_e.init({...O,...a})});function C(O){as[O?"unshift":"push"](()=>{f=O,t(1,f)})}function A(O){as[O?"unshift":"push"](()=>{g=O,t(2,g)})}return s.$$set=O=>{"value"in O&&t(0,r=O.value),"additionalConfig"in O&&t(3,a=O.additionalConfig)},[r,f,g,a,C,A]}class Uhe extends Eo{constructor(e){super(),ko(this,e,Z_e,U_e,So,{value:0,additionalConfig:3})}}function q_e(s){let e,t,r,a;function u(m){s[2](m)}let f={additionalConfig:s[1]};return s[0].value!==void 0&&(f.value=s[0].value),t=new Uhe({props:f}),as.push(()=>Tr(t,"value",u)),{c(){e=fe("div"),rn(t.$$.fragment),Z(e,"class","mb-0")},m(m,g){He(m,e,g),on(t,e,null),a=!0},p(m,[g]){const y={};!r&&g&1&&(r=!0,y.value=m[0].value,Pr(()=>r=!1)),t.$set(y)},i(m){a||(Me(t.$$.fragment,m),a=!0)},o(m){We(t.$$.fragment,m),a=!1},d(m){m&&Fe(e),sn(t)}}}function G_e(s,e,t){let{block:r}=e,a={};function u(f){s.$$.not_equal(r.value,f
2023-10-06 18:47:50 +03:00
<span class=' flatpickr - weekday '>
`+Xe.join("</span><span class=' flatpickr - weekday '>")+`
</span>
`}}function kt(){t.calendarContainer.classList.add("hasWeeks");var $e=al("div","flatpickr-weekwrapper");$e.appendChild(al("span","flatpickr-weekday",t.l10n.weekAbbreviation));var Xe=al("div","flatpickr-weeks");return $e.appendChild(Xe),{weekWrapper:$e,weekNumbers:Xe}}function Le($e,Xe){Xe===void 0&&(Xe=!0);var At=Xe?$e:$e-t.currentMonth;At<0&&t._hidePrevMonthArrow===!0||At>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=At,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Mo("onYearChange"),lt()),be(),Mo("onMonthChange"),gs())}function at($e,Xe){if($e===void 0&&($e=!0),Xe===void 0&&(Xe=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,Xe===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var At=Cte(t.config),Ut=At.hours,Un=At.minutes,lo=At.seconds;N(Ut,Un,lo)}t.redraw(),$e&&Mo("onChange")}function _n(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Mo("onClose")}function Tt(){t.config!==void 0&&Mo("onDestroy");for(var $e=t._handlers.length;$e--;)t._handlers[$e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var Xe=t.calendarContainer.parentNode;if(Xe.lastChild&&Xe.removeChild(Xe.lastChild),Xe.parentNode){for(;Xe.firstChild;)Xe.parentNode.insertBefore(Xe.firstChild,Xe);Xe.parentNode.removeChild(Xe)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(At){try{delete t[At]}catch{}})}function Rn($e){return t.calendarContainer.contains($e)}function Ye($e){if(t.isOpen&&!t.config.inline){var Xe=w1($e),At=Rn(Xe),Ut=Xe===t.input||Xe===t.altInput||t.element.contains(Xe)||$e.path&&$e.path.indexOf&&(~$e.path.indexOf(t.input)||~$e.path.indexOf(t.altInput)),Un=!Ut&&!At&&!Rn($e.relatedTarget),lo=!t.config.ignoredFocusElements.some(function(mo){return mo.contains(Xe)});Un&&lo&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&g(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function Mt($e){if(!(!$e||t.config.minDate&&$e<t.config.minDate.getFullYear()||t.config.maxDate&&$e>t.config.maxDate.getFullYear())){var Xe=$e,At=t.currentYear!==Xe;t.currentYear=Xe||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),At&&(t.redraw(),Mo("onYearChange"),lt())}}function he($e,Xe){var At;Xe===void 0&&(Xe=!0);var Ut=t.parseDate($e,void 0,Xe);if(t.config.minDate&&Ut&&k1(Ut,t.config.minDate,Xe!==void 0?Xe:!t.minDateHasTime)<0||t.config.maxDate&&Ut&&k1(Ut,t.config.maxDate,Xe!==void 0?Xe:!t.maxDat
`){let a="";for(let u=0,f=0;u<=t&&f<this.text.length;f++){let m=this.text[f],g=u+m.length;u>e&&f&&(a+=r),e<g&&t>u&&(a+=m.slice(Math.max(0,e-u),t-u)),u=g+1}return a}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],a=-1;for(let u of e)r.push(u),a+=u.length+1,r.length==32&&(t.push(new df(r,a)),r=[],a=-1);return a>-1&&t.push(new df(r,a)),t}}class Yy extends cl{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,t,r,a){for(let u=0;;u++){let f=this.children[u],m=a+f.length,g=r+f.lines-1;if((t?g:m)>=e)return f.lineInner(e,t,r,a);a=m+1,r=g+1}}decompose(e,t,r,a){for(let u=0,f=0;f<=t&&u<this.children.length;u++){let m=this.children[u],g=f+m.length;if(e<=g&&t>=f){let y=a&((f<=e?1:0)|(g>=t?2:0));f>=e&&g<=t&&!y?r.push(m):m.decompose(e-f,t-f,r,y)}f=g+1}}replace(e,t,r){if(r.lines<this.lines)for(let a=0,u=0;a<this.children.length;a++){let f=this.children[a],m=u+f.length;if(e>=u&&t<=m){let g=f.replace(e-u,t-u,r),y=this.lines-f.lines+g.lines;if(g.lines<y>>5-1&&g.lines>y>>5+1){let C=this.children.slice();return C[a]=g,new Yy(C,this.length-(t-e)+r.length)}return super.replace(u,m,g)}u=m+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r=`
`){let a="";for(let u=0,f=0;u<this.children.length&&f<=t;u++){let m=this.children[u],g=f+m.length;f>e&&u&&(a+=r),e<g&&t>f&&(a+=m.sliceString(e-f,t-f,r)),f=g+1}return a}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Yy))return 0;let r=0,[a,u,f,m]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;a+=t,u+=t){if(a==f||u==m)return r;let g=this.children[a],y=e.children[u];if(g!=y)return r+g.scanIdentical(y,t);r+=g.length+1}}static from(e,t=e.reduce((r,a)=>r+a.length+1,-1)){let r=0;for(let N of e)r+=N.lines;if(r<32){let N=[];for(let L of e)L.flatten(N);return new df(N,t)}let a=Math.max(32,r>>5),u=a<<1,f=a>>1,m=[],g=0,y=-1,C=[];function A(N){let L;if(N.lines>u&&N instanceof Yy)for(let U of N.children)A(U);else N.lines>f&&(g>f||!g)?(O(),m.push(N)):N instanceof df&&g&&(L=C[C.length-1])instanceof df&&N.lines+L.lines<=32?(g+=N.lines,y+=N.length+1,C[C.length-1]=new df(L.text.concat(N.text),L.length+1+N.length)):(g+N.lines>a&&O(),g+=N.lines,y+=N.length+1,C.push(N))}function O(){g!=0&&(m.push(C.length==1?C[0]:Yy.from(C,y)),y=-1,g=C.length=0)}for(let N of e)A(N);return O(),m.length==1?m[0]:new Yy(m,t)}}cl.empty=new df([""],0);function aSe(s){let e=-1;for(let t of s)e+=t.length+1;return e}function Rz(s,e,t=0,r=1e9){for(let a=0,u=0,f=!0;u<s.length&&a<=r;u++){let m=s[u],g=a+m.length;g>=t&&(g>r&&(m=m.slice(0,r-a)),a<t&&(m=m.slice(t-a)),f?(e[e.length-1]+=m,f=!1):e.push(m)),a=g+1}return e}function dce(s,e,t){return Rz(s,[""],e,t)}class TP{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof df?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,a=this.nodes[r],u=this.offsets[r],f=u>>1,m=a instanceof df?a.text.length:a.children.length;if(f==(t>0?m:0)){if(r==0)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((u&1)==(t>0?0:1)){if(this.offsets[r]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(a instanceof df){let g=a.text[f+(t<0?-1:0)];if(this.offsets[r]+=t,g.length>Math.max(0,e))return this.value=e==0?g:t>0?g.slice(e):g.slice(0,g.length-e),this;e-=g.length}else{let g=a.children[f+(t<0?-1:0)];e>g.length?(e-=g.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(g),this.offsets.push(t>0?1:(g instanceof df?g.text.length:g.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Ghe{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new TP(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:a}=this.cursor.next(e);return this.pos+=(a.length+e)*t,this.value=a.length<=r?a:t<0?a.slice(a.length-r):a.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Khe{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:a}=this.inner.next(e);return t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=a,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(cl.prototype[Symbol.iterator]=function(){return this.iter()},TP.prototype[Symbol.iterator]=Ghe.prototype[Symbol.iterator]=Khe.prototype[Symbol.iterator]=function(){return this});class lSe{constructor(e,t,r,a){this.from=e,this.to=t,this.number=r,this.text=a}get length(){return this.to-this.from}}let XD="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;s<XD.length;s++)XD[s]+=XD[s-1];function cSe(s){for(let e=1;e<XD.length;e+=2)if(XD[e]>s)return XD[e-1]<=s;return!1}function hce(s){return s>=127462&&s<=127487}const mce=8205;function Am(s,e,t=!0,r=!0){return(t?Yhe:uSe)(s,e,r)}function Yhe(s,e,t){if(e==s.length)return e;e&&Xhe(s.charCodeAt(e))&&Jhe(s.charCodeAt(e-1))&&e--;let r=Bh(s,e);for(e+=O0(r);e<s.length;){let a=Bh(s,e);if(r==mce||a==mce||t&&cSe(a))e+=O0(a),r=a;else if(hce(a)){let u=0,f=e-2;for(;f>=0&&hce(Bh(s,f));)u++,f-=2;if(u%2==0)break;e+=2}else break}return e}function uSe(s,e,t){for(;e>0;){let r=Yhe(s,e-2,t);if(r<e)return r;e--}return 0}function Xhe(s){return s>=56320&&s<57344}function Jhe(s){return s>=55296&&s<56320}function Bh(s,e){let t=s.charCodeAt(e);if(!Jhe(t)||e+1==s.length)return t;let r=s.charCodeAt(e+1);return Xhe(r)?(t-55296<<10)+(r-56320)+65536:t}function Moe(s){return s<=65535?String.fromCh
`}get readOnly(){return this.facet(lme)}phrase(e,...t){for(let r of this.facet(Ea.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(r,a)=>{if(a=="$")return"$";let u=+(a||1);return!u||u>t.length?r:t[u-1]})),e}languageDataAt(e,t,r=-1){let a=[];for(let u of this.facet(nme))for(let f of u(this,t,r))Object.prototype.hasOwnProperty.call(f,e)&&a.push(f[e]);return a}charCategorizer(e){return _Se(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:r,length:a}=this.doc.lineAt(e),u=this.charCategorizer(e),f=e-r,m=e-r;for(;f>0;){let g=Am(t,f,!1);if(u(t.slice(g,f))!=jc.Word)break;f=g}for(;m<a;){let g=Am(t,m);if(u(t.slice(m,g))!=jc.Word)break;m=g}return f==m?null:qn.range(f+r,m+r)}}Ea.allowMultipleSelections=ome;Ea.tabSize=Ds.define({combine:s=>s.length?s[0]:4});Ea.lineSeparator=sme;Ea.readOnly=lme;Ea.phrases=Ds.define({compare(s,e){let t=Object.keys(s),r=Object.keys(e);return t.length==r.length&&t.every(a=>s[a]==e[a])}});Ea.languageData=nme;Ea.changeFilter=rme;Ea.transactionFilter=ime;Ea.transactionExtender=ame;rO.reconfigure=Pi.define();function gv(s,e,t={}){let r={};for(let a of s)for(let u of Object.keys(a)){let f=a[u],m=r[u];if(m===void 0)r[u]=f;else if(!(m===f||f===void 0))if(Object.hasOwnProperty.call(t,u))r[u]=t[u](m,f);else throw new Error("Config merge conflict for field "+u)}for(let a in e)r[a]===void 0&&(r[a]=e[a]);return r}class GA{eq(e){return this==e}range(e,t=e){return FP.create(e,t,this)}}GA.prototype.startSide=GA.prototype.endSide=0;GA.prototype.point=!1;GA.prototype.mapMode=kg.TrackDel;class FP{constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(e,t,r){return new FP(e,t,r)}}function Tne(s,e){return s.from-e.from||s.value.startSide-e.value.startSide}class Poe{constructor(e,t,r,a){this.from=e,this.to=t,this.value=r,this.maxPoint=a}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,a=0){let u=r?this.to:this.from;for(let f=a,m=u.length;;){if(f==m)return f;let g=f+m>>1,y=u[g]-e||(r?this.value[g].endSide:this.value[g].startSide)-t;if(g==f)return y>=0?f:m;y>=0?m=g:f=g+1}}between(e,t,r,a){for(let u=this.findIndex(t,-1e9,!0),f=this.findIndex(r,1e9,!1,u);u<f;u++)if(a(this.from[u]+e,this.to[u]+e,this.value[u])===!1)return!1}map(e,t){let r=[],a=[],u=[],f=-1,m=-1;for(let g=0;g<this.value.length;g++){let y=this.value[g],C=this.from[g]+e,A=this.to[g]+e,O,N;if(C==A){let L=t.mapPos(C,y.startSide,y.mapMode);if(L==null||(O=N=L,y.startSide!=y.endSide&&(N=t.mapPos(C,y.endSide),N<O)))continue}else if(O=t.mapPos(C,y.startSide),N=t.mapPos(A,y.endSide),O>N||O==N&&y.startSide>0&&y.endSide<=0)continue;(N-O||y.endSide-y.startSide)<0||(f<0&&(f=O),y.point&&(m=Math.max(m,N-O)),r.push(y),a.push(O-f),u.push(N-f))}return{mapped:r.length?new Poe(a,u,r,m):null,pos:f}}}class Ya{constructor(e,t,r,a){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=a}static create(e,t,r,a){return new Ya(e,t,r,a)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:a=0,filterTo:u=this.length}=e,f=e.filter;if(t.length==0&&!f)return this;if(r&&(t=t.slice().sort(Tne)),this.isEmpty)return t.length?Ya.of(t):this;let m=new fme(this,null,-1).goto(0),g=0,y=[],C=new mk;for(;m.value||g<t.length;)if(g<t.length&&(m.from-t[g].from||m.startSide-t[g].value.startSide)>=0){let A=t[g++];C.addInner(A.from,A.to,A.value)||y.push(A)}else m.rangeIndex==1&&m.chunkIndex<this.chunk.length&&(g==t.length||this.chunkEnd(m.chunkIndex)<t[g].from)&&(!f||a>this.chunkEnd(m.chunkIndex)||u<this.chunkPos[m.chunkIndex])&&C.addChunk(this.chunkPos[m.chunkIndex],this.chunk[m.chunkIndex])?m.nextChunk():((!f||a>m.to||u<m.from||f(m.from,m.to,m.value))&&(C.addInner(m.from,m.to,m.value)||y.push(FP.create(m.from,m.to,m.value))),m.next());return C.finishInner(this.nextLayer.isEmpty&&!y.length?Ya.empty:this.nextLayer.update({add:y,filter:f,filt
`)}static newName(){let e=_ce[wce]||1;return _ce[wce]=e+1,Mne+e.toString(36)}static mount(e,t,r){let a=e[Rne],u=r&&r.nonce;a?u&&a.setNonce(u):a=new SSe(e,u),a.mount(Array.isArray(t)?t:[t])}}let Cce=new Map;class SSe{constructor(e,t){let r=e.ownerDocument||e,a=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&a.CSSStyleSheet){let u=Cce.get(r);if(u)return e.adoptedStyleSheets=[u.sheet,...e.adoptedStyleSheets],e[Rne]=u;this.sheet=new a.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Cce.set(r,this)}else{this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let u=e.head||e;u.insertBefore(this.styleTag,u.firstChild)}this.modules=[],e[Rne]=this}mount(e){let t=this.sheet,r=0,a=0;for(let u=0;u<e.length;u++){let f=e[u],m=this.modules.indexOf(f);if(m<a&&m>-1&&(this.modules.splice(m,1),a--,m=-1),m==-1){if(this.modules.splice(a++,0,f),t)for(let g=0;g<f.rules.length;g++)t.insertRule(f.rules[g],r++)}else{for(;a<m;)r+=this.modules[a++].rules.length;r+=f.rules.length,a++}}if(!t){let u="";for(let f=0;f<this.modules.length;f++)u+=this.modules[f].getRules()+`
`;this.styleTag.textContent=u}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var pk={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"' "},$P={48:" ) ",49:" ! ",50:" @ ",51:" # ",52:" $ ",53:" % ",54:" ^ ",55:" & ",56:" * ",57:" ( ",59:" : ",61:" + ",173:" _ ",186:" : ",187:" + ",188:" < ",189:" _ ",190:" > ",191:" ? ",192:" ~ ",219:" { ",220:" | ",221:" } ",222:'" '},kSe=typeof navigator<"u"&&/Mac/.test(navigator.platform),ESe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Lh=0;Lh<10;Lh++)pk[48+Lh]=pk[96+Lh]=String(Lh);for(var Lh=1;Lh<=24;Lh++)pk[Lh+111]="F"+Lh;for(var Lh=65;Lh<=90;Lh++)pk[Lh]=String.fromCharCode(Lh+32),$P[Lh]=String.fromCharCode(Lh);for(var Ete in pk)$P.hasOwnProperty(Ete)||($P[Ete]=pk[Ete]);function xSe(s){var e=kSe&&s.metaKey&&s.shiftKey&&!s.ctrlKey&&!s.altKey||ESe&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",t=!e&&s.key||(s.shiftKey?$P:pk)[s.keyCode]||s.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function iV(s){let e;return s.nodeType==11?e=s.getSelection?s:s.ownerDocument:e=s,e.getSelection()}function Nne(s,e){return e?s==e||s.contains(e.nodeType!=1?e.parentNode:e):!1}function ASe(s){let e=s.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Pz(s,e){if(!e.anchorNode)return!1;try{return Nne(s,e.anchorNode)}catch{return!1}}function zP(s){return s.nodeType==3?KA(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function aV(s,e,t,r){return t?Sce(s,e,t,r,-1)||Sce(s,e,t,r,1):!1}function VP(s){for(var e=0;;e++)if(s=s.previousSibling,!s)return e}function Sce(s,e,t,r,a){for(;;){if(s==t&&e==r)return!0;if(e==(a<0?0:O_(s))){if(s.nodeName=="DIV")return!1;let u=s.parentNode;if(!u||u.nodeType!=1)return!1;e=VP(s)+(a<0?0:1),s=u}else if(s.nodeType==1){if(s=s.childNodes[e+(a<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;e=a<0?O_(s):0}else return!1}}function O_(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}function Ioe(s,e){let t=e?s.left:s.right;return{left:t,right:t,top:s.top,bottom:s.bottom}}function TSe(s){return{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function DSe(s,e,t,r,a,u,f,m){let g=s.ownerDocument,y=g.defaultView||window;for(let C=s,A=!1;C&&!A;)if(C.nodeType==1){let O,N=C==g.body,L=1,U=1;if(N)O=TSe(y);else{if(/^(fixed|sticky)$/.test(getComputedStyle(C).position)&&(A=!0),C.scrollHeight<=C.clientHeight&&C.scrollWidth<=C.clientWidth){C=C.assignedSlot||C.parentNode;continue}let ee=C.getBoundingClientRect();L=ee.width/C.offsetWidth,U=ee.height/C.offsetHeight,O={left:ee.left,right:ee.left+C.clientWidth*L,top:ee.top,bottom:ee.top+C.clientHeight*U}}let W=0,q=0;if(a=="nearest")e.top<O.top?(q=-(O.top-e.top+f),t>0&&e.bottom>O.bottom+q&&(q=e.bottom-O.bottom+q+f)):e.bottom>O.bottom&&(q=e.bottom-O.bottom+f,t<0&&e.top-q<O.top&&(q=-(O.top+q-e.top+f)));else{let ee=e.bottom-e.top,F=O.bottom-O.top;q=(a=="center"&&ee<=F?e.top+ee/2-F/2:a=="start"||a=="center"&&t<0?e.top-f:e.bottom-F+f)-O.top}if(r=="nearest"?e.left<O.left?(W=-(O.left-e.left+u),t>0&&e.right>O.right+W&&(W=e.right-O.right+W+u)):e.right>O.right&&(W=e.right-O.right+u,t<0&&e.left<O.left+W&&(W=-(O.left+W-e.left+u))):W=(r=="center"?e.left+(e.right-e.left)/2-(O.right-O.left)/2:r=="start"==m?e.left-u:e.right-(O.right-O.left)+u)-O.left,W||q)if(N)y.scrollBy(W,q);else{let ee=0,F=0;if(q){let ne=C.scrollTop;C.scrollTop+=q/U,F=(C.scrollTop-ne)*U}if(W){let ne=C.scrollLeft;
`,a=s.state.doc.line(a.number+(t?1:-1)),u=s.bidiSpans(a),y=qn.cursor(t?a.from:a.to)}if(g){if(!g(C))return m}else{if(!r)return y;g=r(C)}m=y}}function lke(s,e,t){let r=s.state.charCategorizer(e),a=r(t);return u=>{let f=r(u);return a==jc.Space&&(a=f),a==f}}function cke(s,e,t,r){let a=e.head,u=t?1:-1;if(a==(t?s.state.doc.length:0))return qn.cursor(a,e.assoc);let f=e.goalColumn,m,g=s.contentDOM.getBoundingClientRect(),y=s.coordsAtPos(a,e.assoc||-1),C=s.documentTop;if(y)f==null&&(f=y.left-g.left),m=u<0?y.top:y.bottom;else{let N=s.viewState.lineBlockAt(a);f==null&&(f=Math.min(g.right-g.left,s.defaultCharacterWidth*(a-N.from))),m=(u<0?N.top:N.bottom)+C}let A=g.left+f,O=r!=null?r:s.viewState.heightOracle.textHeight>>1;for(let N=0;;N+=10){let L=m+(O+N)*u,U=Wme(s,{x:A,y:L},!1,u);if(L<g.top||L>g.bottom||(u<0?U<a:U>a)){let W=s.docView.coordsForChar(U),q=!W||L<W.top?-1:1;return qn.cursor(U,q,void 0,f)}}}function Iz(s,e,t){for(;;){let r=0;for(let a of s)a.between(e-1,e+1,(u,f,m)=>{if(e>u&&e<f){let g=r||t||(e-u<f-e?-1:1);e=g<0?u:f,r=g}});if(!r)return e}}function Dte(s,e,t){let r=Iz(s.state.facet(Hoe).map(a=>a(s)),t.from,e.head>t.from?-1:1);return r==t.from?t:qn.cursor(r,r<t.from?1:-1)}class uke{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.handleEvent=this.handleEvent.bind(this),e.scrollDOM.addEventListener("mousedown",t=>{if(t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&(this.runHandlers("mousedown",t),!t.defaultPrevented&&t.button==2)){let r=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout(()=>e.contentDOM.style.minHeight=r,200)}}),e.scrollDOM.addEventListener("drop",t=>{t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&this.runHandlers("drop",t)}),this.notifiedFocused=e.hasFocus,Ls.safari&&e.contentDOM.addEventListener("input",()=>null),Ls.gecko&&xke(e.contentDOM.ownerDocument)}handleEvent(e){!vke(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let r=this.handlers[e];if(r){for(let a of r.observers)a(this.view,t);for(let a of r.handlers){if(t.defaultPrevented)break;if(a(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=fke(e),r=this.handlers,a=this.view.contentDOM;for(let u in t)if(u!="scroll"){let f=!t[u].handlers.length,m=r[u];m&&f!=!m.handlers.length&&(a.removeEventListener(u,this.handleEvent),m=null),m||a.addEventListener(u,this.handleEvent,{passive:f})}for(let u in r)u!="scroll"&&!t[u]&&a.removeEventListener(u,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&jme.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Ls.android&&Ls.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return Ls.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=Ume.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||dke.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,QD(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ls.safari&&!Ls.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection
`&&s.lineWrapping&&(r&&(r=qn.single(r.main.anchor-1,r.main.head-1)),t={from:a.from,to:a.to,insert:cl.of([" "])}),t){if(Ls.ios&&s.inputState.flushIOSKey()||Ls.android&&(t.from==a.from&&t.to==a.to&&t.insert.length==1&&t.insert.lines==2&&QD(s.contentDOM,"Enter",13)||(t.from==a.from-1&&t.to==a.to&&t.insert.length==0||u==8&&t.insert.length<t.to-t.from&&t.to>a.head)&&QD(s.contentDOM,"Backspace",8)||t.from==a.from&&t.to==a.to+1&&t.insert.length==0&&QD(s.contentDOM,"Delete",46)))return!0;let f=t.insert.toString();s.inputState.composing>=0&&s.inputState.composing++;let m,g=()=>m||(m=Wke(s,t,r));return s.state.facet(Tme).some(y=>y(s,t.from,t.to,f,g))||s.dispatch(g()),!0}else if(r&&!r.main.eq(a)){let f=!1,m="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(f=!0),m=s.inputState.lastSelectionOrigin),s.dispatch({selection:r,scrollIntoView:f,userEvent:m}),!0}else return!1}function Wke(s,e,t){let r,a=s.state,u=a.selection.main;if(e.from>=u.from&&e.to<=u.to&&e.to-e.from>=(u.to-u.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let m=u.from<e.from?a.sliceDoc(u.from,e.from):"",g=u.to>e.to?a.sliceDoc(e.to,u.to):"";r=a.replaceSelection(s.state.toText(m+e.insert.sliceString(0,void 0,s.state.lineBreak)+g))}else{let m=a.changes(e),g=t&&t.main.to<=m.newLength?t.main:void 0;if(a.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=u.to&&e.to>=u.to-10){let y=s.state.sliceDoc(e.from,e.to),C,A=t&&zme(s,t.main.head);if(A){let L=e.insert.length-(e.to-e.from);C={from:A.from,to:A.to-L}}else C=s.state.doc.lineAt(u.head);let O=u.to-e.to,N=u.to-u.from;r=a.changeByRange(L=>{if(L.from==u.from&&L.to==u.to)return{changes:m,range:g||L.map(m)};let U=L.to-O,W=U-y.length;if(L.to-L.from!=N||s.state.sliceDoc(W,U)!=y||L.to>=C.from&&L.from<=C.to)return{range:L};let q=a.changes({from:W,to:U,insert:e.insert}),ee=L.to-u.to;return{changes:q,range:g?qn.range(Math.max(0,g.anchor+ee),Math.max(0,g.head+ee)):L.map(q)}})}else r={changes:m,selection:g&&a.selection.replaceRange(g)}}let f="input.type";return(s.composing||s.inputState.compositionPendingChange&&s.inputState.compositionEndedAt>Date.now()-50)&&(s.inputState.compositionPendingChange=!1,f+=".compose",s.inputState.compositionFirstChange&&(f+=".start",s.inputState.compositionFirstChange=!1)),a.update(r,{userEvent:f,scrollIntoView:!0})}function Uke(s,e,t,r){let a=Math.min(s.length,e.length),u=0;for(;u<a&&s.charCodeAt(u)==e.charCodeAt(u);)u++;if(u==a&&s.length==e.length)return null;let f=s.length,m=e.length;for(;f>0&&m>0&&s.charCodeAt(f-1)==e.charCodeAt(m-1);)f--,m--;if(r=="end"){let g=Math.max(0,u-Math.min(f,m));t-=f+g-u}if(f<u&&s.length<e.length){let g=t<=u&&t>=f?u-t:0;u-=g,m=u+(m-f),f=u}else if(m<u){let g=t<=u&&t>=m?u-t:0;u-=g,f=u+(f-m),m=u}return{from:u,toA:f,toB:m}}function jke(s){let e=[];if(s.root.activeElement!=s.contentDOM)return e;let{anchorNode:t,anchorOffset:r,focusNode:a,focusOffset:u}=s.observer.selectionRange;return t&&(e.push(new eue(t,r)),(a!=t||u!=r)&&e.push(new eue(a,u))),e}function Zke(s,e){if(s.length==0)return null;let t=s[0].pos,r=s.length==2?s[1].pos:t;return t>-1&&r>-1?qn.single(t+e,r+e):null}const qke={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Mte=Ls.ie&&Ls.ie_version<=11;class Gke{constructor(e){this.view=e,this.active=!1,this.selectionRange=new MSe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let r of t)this.queue.push(r);(Ls.ie&&Ls.ie_version<=11||Ls.ios&&e.composing)&&t.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),Mte&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue
- \x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Yne),gEe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Rte=null;function pEe(){var s;if(Rte==null&&typeof document<"u"&&document.body){let e=document.body.style;Rte=((s=e.tabSize)!==null&&s!==void 0?s:e.MozTabSize)!=null}return Rte||!1}const Fz=Ds.define({combine(s){let e=gv(s,{render:null,specialChars:mEe,addSpecialChars:null});return(e.replaceTabs=!pEe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Yne)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Yne)),e}});function bEe(s={}){return[Fz.of(s),vEe()]}let lue=null;function vEe(){return lue||(lue=gf.fromClass(class{constructor(s){this.view=s,this.decorations=ti.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(s.state.facet(Fz)),this.decorations=this.decorator.createDeco(s)}makeDecorator(s){return new hEe({regexp:s.specialChars,decoration:(e,t,r)=>{let{doc:a}=t.state,u=Bh(e[0],0);if(u==9){let f=a.lineAt(r),m=t.state.tabSize,g=wO(f.text,m,r-f.from);return ti.replace({widget:new CEe((m-g%m)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[u]||(this.decorationCache[u]=ti.replace({widget:new _Ee(s,u)}))},boundary:s.replaceTabs?void 0:/[^]/})}update(s){let e=s.state.facet(Fz);s.startState.facet(Fz)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(s.view)):this.decorations=this.decorator.updateDeco(s,this.decorations)}},{decorations:s=>s.decorations}))}const yEe="\u2022";function wEe(s){return s>=32?yEe:s==10?"\u2424":String.fromCharCode(9216+s)}class _Ee extends Sk{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=wEe(this.code),r=e.state.phrase("Control character")+" "+(gEe[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,r,t);if(a)return a;let u=document.createElement("span");return u.textContent=t,u.title=r,u.setAttribute("aria-label",r),u.className="cm-specialChar",u}ignoreEvent(){return!1}}class CEe extends Sk{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function SEe(){return EEe}const kEe=ti.line({class:"cm-activeLine"}),EEe=gf.fromClass(class{constructor(s){this.decorations=this.getDeco(s)}update(s){(s.docChanged||s.selectionSet)&&(this.decorations=this.getDeco(s.view))}getDeco(s){let e=-1,t=[];for(let r of s.state.selection.ranges){let a=s.lineBlockAt(r.head);a.from>e&&(t.push(kEe.range(a.from)),e=a.from)}return ti.set(t)}},{decorations:s=>s.decorations}),Xne=2e3;function xEe(s,e,t){let r=Math.min(e.line,t.line),a=Math.max(e.line,t.line),u=[];if(e.off>Xne||t.off>Xne||e.col<0||t.col<0){let f=Math.min(e.off,t.off),m=Math.max(e.off,t.off);for(let g=r;g<=a;g++){let y=s.doc.line(g);y.length<=m&&u.push(qn.range(y.from+f,y.to+m))}}else{let f=Math.min(e.col,t.col),m=Math.max(e.col,t.col);for(let g=r;g<=a;g++){let y=s.doc.line(g),C=One(y.text,f,s.tabSize,!0);if(C<0)u.push(qn.cursor(y.to));else{let A=One(y.text,m,s.tabSize);u.push(qn.range(y.from+C,y.from+A))}}}return u}function AEe(s,e){let t=s.coordsAtPos(s.viewport.from);return t?Math.round(Math.abs((t.left-e)/s.defaultCharacterWidth)):-1}function cue(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1),r=s.state.doc.lineAt(t),a=t-r.from,u=a>Xne?-1:a==r.length?AEe(s,e.clientX):wO(r.text,s.state.tabSize,t-r.from);return{line:r.number,col:u,off:a}}function TEe(s,e){let t=
`:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new M3e(this):new D3e(this)}getCursor(e,t=0,r){let a=e.doc?e:Ea.create({doc:e});return r==null&&(r=a.doc.length),this.regexp?LD(this,a,t,r):BD(this,a,t,r)}}class xpe{constructor(e){this.spec=e}}function BD(s,e,t,r){return new lO(e.doc,s.unquoted,t,r,s.caseSensitive?void 0:a=>a.toLowerCase(),s.wholeWord?T3e(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function T3e(s,e){return(t,r,a,u)=>((u>t||u+a.length<r)&&(u=Math.max(0,t-2),a=s.sliceString(u,Math.min(s.length,r+2))),(e(SV(a,t-u))!=jc.Word||e(kV(a,t-u))!=jc.Word)&&(e(kV(a,r-u))!=jc.Word||e(SV(a,r-u))!=jc.Word))}class D3e extends xpe{constructor(e){super(e)}nextMatch(e,t,r){let a=BD(this.spec,e,r,e.doc.length).nextOverlapping();return a.done&&(a=BD(this.spec,e,0,t).nextOverlapping()),a.done?null:a.value}prevMatchInRange(e,t,r){for(let a=r;;){let u=Math.max(t,a-1e4-this.spec.unquoted.length),f=BD(this.spec,e,u,a),m=null;for(;!f.nextOverlapping().done;)m=f.value;if(m)return m;if(u==t)return null;a-=1e4}}prevMatch(e,t,r){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let r=BD(this.spec,e,0,e.doc.length),a=[];for(;!r.next().done;){if(a.length>=t)return null;a.push(r.value)}return a}highlight(e,t,r,a){let u=BD(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!u.next().done;)a(u.value.from,u.value.to)}}function LD(s,e,t,r){return new Cpe(e.doc,s.search,{ignoreCase:!s.caseSensitive,test:s.wholeWord?O3e(e.charCategorizer(e.selection.main.head)):void 0},t,r)}function SV(s,e){return s.slice(Am(s,e,!1),e)}function kV(s,e){return s.slice(e,Am(s,e))}function O3e(s){return(e,t,r)=>!r[0].length||(s(SV(r.input,r.index))!=jc.Word||s(kV(r.input,r.index))!=jc.Word)&&(s(kV(r.input,r.index+r[0].length))!=jc.Word||s(SV(r.input,r.index+r[0].length))!=jc.Word)}class M3e extends xpe{nextMatch(e,t,r){let a=LD(this.spec,e,r,e.doc.length).next();return a.done&&(a=LD(this.spec,e,0,t).next()),a.done?null:a.value}prevMatchInRange(e,t,r){for(let a=1;;a++){let u=Math.max(t,r-a*1e4),f=LD(this.spec,e,u,r),m=null;for(;!f.next().done;)m=f.value;if(m&&(u==t||m.from>u+10))return m;if(u==t)return null}}prevMatch(e,t,r){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(t,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r<e.match.length?e.match[r]:t))}matchAll(e,t){let r=LD(this.spec,e,0,e.doc.length),a=[];for(;!r.next().done;){if(a.length>=t)return null;a.push(r.value)}return a}highlight(e,t,r,a){let u=LD(this.spec,e,Math.max(0,t-250),Math.min(r+250,e.doc.length));for(;!u.next().done;)a(u.value.from,u.value.to)}}const YP=Pi.define(),ese=Pi.define(),uk=hd.define({create(s){return new jte(foe(s).create(),null)},update(s,e){for(let t of e.effects)t.is(YP)?s=new jte(t.value.create(),s.panel):t.is(ese)&&(s=new jte(s.query,t.value?tse:null));return s},provide:s=>qP.from(s,e=>e.panel)});class jte{constructor(e,t){this.query=e,this.panel=t}}const R3e=ti.mark({class:"cm-searchMatch"}),N3e=ti.mark({class:"cm-searchMatch cm-searchMatch-selected"}),P3e=gf.fromClass(class{constructor(s){this.view=s,this.decorations=this.highlight(s.state.field(uk))}update(s){let e=s.state.field(uk);(e!=s.startState.field(uk)||s.docChanged||s.selectionSet||s.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:s,panel:e}){if(!e||!s.spec.valid)return ti.none;let{view:t}=this,r=new mk;for(let a=0,u=t.visibleRanges,f=u.length;a<f;a++){let{from:m,to:g}=u[a];for(;a<f-1&&g>u[a+1].from-2*250;)g=u[++a].to;s.highlight(t.state,m,g,(y,C)=>{let A=t.state.selection.ranges.some(O=>O.from==y&&O.to==C);r.add(y,C,A?N3e:R3e)})}return r.finish()}},{decorations:s=>s.decorations});function mI(s){return e=>{let t=e.state.field(uk,!1);return t&&t.query.spec.valid?s
`),Rn=fe("br"),Ye=tn(`
Each record maintains the last `),he=tn(Mt),ls=tn(`
versions`),bo=Je(),ao=fe("div"),Yo.c(),St=Je(),yt&&yt.c(),Xt=zs(),Z(u,"class","label text-end text-muted svelte-4o2asb"),Z(O,"class","label text-end text-muted svelte-4o2asb"),Z(ee,"class","label text-end text-muted svelte-4o2asb"),Z(Ee,"class","label text-end text-muted svelte-4o2asb"),Z(r,"class","col-8"),Z(tt,"class","label d-block text-muted svelte-4o2asb"),Z(gt,"class","col-4"),Z(t,"class","row"),Z(e,"class","lx-card "),Z(ao,"class","lx-card mt-4")},m(Kt,pn){He(Kt,e,pn),Q(e,t),Q(t,r),Q(r,a),Q(a,u),Q(a,f),Q(a,m),Q(m,y),Q(r,C),Q(r,A),Q(A,O),Q(A,N),Q(A,U),Q(r,W),Q(r,q),Q(q,ee),Q(q,F),on(ne,q,null),Q(q,ie),Q(q,K),Q(r,Re),Q(r,Ce),Q(Ce,Ee),Q(Ce,ye),on(be,Ce,null),Q(Ce,lt),Q(Ce,bt),Q(t,z),Q(t,gt),Q(gt,tt),Q(gt,Ct),Q(gt,kt),Q(kt,Le),Q(kt,_n),Q(kt,Tt),Q(kt,Rn),Q(kt,Ye),Q(kt,he),Q(kt,ls),He(Kt,bo,pn),He(Kt,ao,pn),Wt[xo].m(ao,null),He(Kt,St,pn),yt&&yt.m(Kt,pn),He(Kt,Xt,pn),xt=!0},p(Kt,[pn]){(!xt||pn&1)&&g!==(g=Kt[0].id+"")&&Qn(y,g),(!xt||pn&1)&&L!==(L=Kt[0]._sys.version+"")&&Qn(U,L);const ns={};pn&3&&(ns.name=xp(Kt[1],Kt[0]._sys.createdBy)),ne.$set(ns),(!xt||pn&1)&&oe!==(oe=Jy(Kt[0]._sys.createdAt)+"")&&Qn(K,oe);const Xn={};pn&3&&(Xn.name=xp(Kt[1],Kt[0]._sys.updatedBy)),be.$set(Xn),(!xt||pn&1)&&ft!==(ft=Jy(Kt[0]._sys.updatedAt)+"")&&Qn(bt,ft),(!xt||pn&4)&&at!==(at=Kt[2].revisionRetentionDays+"")&&Qn(_n,at),(!xt||pn&4)&&Mt!==(Mt=Kt[2].revisionRetentionNumber+"")&&Qn(he,Mt);let ds=xo;xo=mn(Kt),xo===ds?Wt[xo].p(Kt,pn):(To(),We(Wt[ds],1,1,()=>{Wt[ds]=null}),Do(),Yo=Wt[xo],Yo?Yo.p(Kt,pn):(Yo=Wt[xo]=Pe[xo](Kt),Yo.c()),Me(Yo,1),Yo.m(ao,null)),Kt[4]?yt?(yt.p(Kt,pn),pn&16&&Me(yt,1)):(yt=Mfe(Kt),yt.c(),Me(yt,1),yt.m(Xt.parentNode,Xt)):yt&&(To(),We(yt,1,1,()=>{yt=null}),Do())},i(Kt){xt||(Me(ne.$$.fragment,Kt),Me(be.$$.fragment,Kt),Me(Yo),Me(yt),xt=!0)},o(Kt){We(ne.$$.fragment,Kt),We(be.$$.fragment,Kt),We(Yo),We(yt),xt=!1},d(Kt){Kt&&Fe(e),sn(ne),sn(be),Kt&&Fe(bo),Kt&&Fe(ao),Wt[xo].d(),Kt&&Fe(St),yt&&yt.d(Kt),Kt&&Fe(Xt)}}}function K4e(s,e,t){let r,a,u,f,m,{record:g}=e,{users:y}=e,{schema:C}=e,A="";axios.get(`/records/${g.id}/revisions`).then(U=>{t(6,r=U.data)}).catch(U=>{console.log(U)});function O(U,W){U.preventDefault(),t(4,u=W),t(5,a=C.fields.filter(q=>!mu.exports.isEqual(u.data[q.name],g.data[q.name])))}function N(U){U.preventDefault(),t(3,A=""),axios.post(`/records/${g.id}/rollback/${u._sys.version}`).then(W=>{window.location.reload()}).catch(W=>{const q=W.response.data.error;t(3,A=q.fieldLabel+": "+q.message)})}const L=(U,W)=>O(W,U);return s.$$set=U=>{"record"in U&&t(0,g=U.record),"users"in U&&t(1,y=U.users),"schema"in U&&t(2,C=U.schema)},t(6,r=[]),t(5,a=[]),t(4,u=null),t(8,f={}),t(7,m={}),[g,y,C,A,u,a,r,m,f,O,N,L]}class Y4e extends Eo{constructor(e){super(),ko(this,e,K4e,G4e,So,{record:0,users:1,schema:2})}}const{window:X4e}=lbe;function Pfe(s,e,t){const r=s.slice();return r[23]=e[t],r}function Ife(s){let e,t,r,a,u,f;function m(O){s[14](O)}let g={record:s[0],schema:s[2]};s[0].status!==void 0&&(g.status=s[0].status),r=new phe({props:g}),as.push(()=>Tr(r,"status",m));function y(O,N){if(O[4])return Q4e;if(O[9])return J4e}let C=y(s),A=C&&C(s);return{c(){e=fe("div"),t=fe("div"),rn(r.$$.fragment),u=Je(),A&&A.c(),Z(t,"class","d-flex mt-4 mb-3 align-items-center justify-content-center"),Z(e,"class","shadow-lg "),is(e,"position","fixed"),is(e,"bottom","0"),is(e,"left","0px"),is(e,"width","100%"),is(e,"background","rgba(255,255,255,1)"),is(e,"z-index","1050")},m(O,N){He(O,e,N),Q(e,t),on(r,t,null),Q(t,u),A&&A.m(t,null),f=!0},p(O,N){const L={};N&1&&(L.record=O[0]),N&4&&(L.schema=O[2]),!a&&N&1&&(a=!0,L.status=O[0].status,Pr(()=>a=!1)),r.$set(L),C===(C=y(O))&&A?A.p(O,N):(A&&A.d(1),A=C&&C(O),A&&(A.c(),A.m(t,null)))},i(O){f||(Me(r.$$.fragment,O),f=!0)},o(O){We(r.$$.fragment,O),f=!1},d(O){O&&Fe(e),sn(r),A&&A.d()}}}function J4e(s){let e,t,r;return{c(){e=fe("button"),e.innerHTML=`<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Save`,Z(e,"type","button"),Z(e,"class","ms-2 btn btn-primary btn-spinner")},m(a,u){He(a,e,u),t||(r=Fn(e,"click",s[12]),t=!0)},p:xn,d(a){a&&Fe(e),t=!1,r()}}}function Q4e(s){let e,t,r;return{c(){e=fe("button"),e.innerHTML=`<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Create`,Z(e,"class","ms-2 btn btn-primary btn-spinner")},m(a,u){He(a,e,u),t||(r=Fn(e,"click",s[12]),t=!0)},p:xn,d(a){a&&Fe(e),t=!1,r()}}}function eDe(s){let e,t,r;function a(f){s[18](f)}let u={users:s[5],schema:s[2]};return s[0]!==void 0&&(u.record=s[0]),e=new Y4e({props:u}),as.push(()=>Tr(e,"record",a)),{c(){rn(e.$$.fragment)},m(f,m){on(e,f,m),r=!0},p(f,m){const g={};m&32&&(g.users=f[5]),m&4&&(g.schema=f[2]),!t&&m&1&&(t=!0,g.record=f[0],Pr(()=>t=!1)),e.$set(g)},i(f){r||(Me(e.$$.fragment,f),r=!0)},o(f){We(e.$$.fragment,f),r=!1},d(f){sn(e,f)}}}function tDe(s){let e,t;return e=new I4e({props:{graph:s[1],record:s[0]}}),{c(){rn(e.$$.fragment)},m(r,a){on(e,r,a),t=!0},p(r,a){const u={};a&2&&(u.graph=r[1]),a&1&&(u.record=r[0]),e.$set(u)},i(r){t||(Me(e.$$.fragment,r),t=!0)},o(r){We(e.$$.fragment,r),t=!1},d(r){sn(e,r)}}}function nDe(s){let e,t,r=[],a=new Map,u,f;e=new bhe({props:{record:s[0],schema:s[2]}});let m=s[10];const g=y=>y[23].name;for(let y=0;y<m.length;y+=1){let C=Pfe(s,m,y),A=g(C);a.set(A,r[y]=Lfe(A,C))}return{c(){rn(e.$$.fragment),t=Je();for(let y=0;y<r.length;y+=1)r[y].c();u=zs()},m(y,C){on(e,y,C),He(y,t,C);for(let A=0;A<r.length;A+=1)r[A]&&r[A].m(y,C);He(y,u,C),f=!0},p(y,C){const A={};C&1&&(A.record=y[0]),C&4&&(A.schema=y[2]),e.$set(A),C&1239&&(m=y[10],To(),r=B1(r,C,g,1,y,m,a,u.parentNode,f2,Lfe,u,Pfe),Do())},i(y){if(!f){Me(e.$$.fragment,y);for(let C=0;C<m.length;C+=1)Me(r[C]);f=!0}},o(y){We(e.$$.fragment,y);for(let C=0;C<r.length;C+=1)We(r[C]);f=!1},d(y){sn(e,y),y&&Fe(t);for(let C=0;C<r.length;C+=1)r[C].d(y);y&&Fe(u)}}}function Bfe(s){let e,t,r,a;function u(g){s[16](g)}function f(g){s[17](g)}let m={field:s[23],schema:s[2],record:s[0],validationErrors:s[6],isCreateMode:s[4]};return s[0].data!==void 0&&(m.data=s[0].data),s[1]!==void 0&&(m.graph=s[1]),e=new Ype({props:m}),as.push(()=>Tr(e,"data",u)),as.push(()=>Tr(e,"graph",f)),{c(){rn(e.$$.fragment)},m(g,y){on(e,g,y),a=!0},p(g,y){const C={};y&4&&(C.schema=g[2]),y&1&&(C.record=g[0]),y&64&&(C.validationErrors=g[6]),y&16&&(C.isCreateMode=g[4]),!t&&y&1&&(t=!0,C.data=g[0].data,Pr(()=>t=!1)),!r&&y&2&&(r=!0,C.graph=g[1],Pr(()=>r=!1)),e.$set(C)},i(g){a||(Me(e.$$.fragment,g),a=!0)},o(g){We(e.$$.fragment,g),a=!1},d(g){sn(e,g)}}}function Lfe(s,e){let t,r,a,u=e[7]===e[23].group&&Bfe(e);return{key:s,first:null,c(){t=zs(),u&&u.c(),r=zs(),this.first=t},m(f,m){He(f,t,m),u&&u.m(f,m),He(f,r,m),a=!0},p(f,m){e=f,e[7]===e[23].group?u?(u.p(e,m),m&128&&Me(u,1)):(u=Bfe(e),u.c(),Me(u,1),u.m(r.parentNode,r)):u&&(To(),We(u,1,1,()=>{u=null}),Do())},i(f){a||(Me(u),a=!0)},o(f){We(u),a=!1},d(f){f&&Fe(t),u&&u.d(f),f&&Fe(r)}}}function oDe(s){let e,t,r,a,u,f,m=!["_graph","_info"].includes(s[7]),g,y,C,A,O,N,L,U,W,q,ee,F,ne;t=new Tye({props:{managerRecords:s[3],graph:s[1]}});function ie(lt){s[13](lt)}let oe={schema:s[2],record:s[0],isCreateMode:s[4],graph:s[1]};s[7]!==void 0&&(oe.activeContentTab=s[7]),a=new Nye({props:oe}),as.push(()=>Tr(a,"activeContentTab",ie));let K=m&&Ife(s);y=new nI({props:{message:s[8]}});function Re(lt){s[15](lt)}let Ce={schema:s[2],isCreateMode:s[4]};s[7]!==void 0&&(Ce.active=s[7]),O=new vhe({props:Ce}),as.push(()=>Tr(O,"active",Re));const Ee=[nDe,tDe,eDe],ye=[];function be(lt,ft){return ft&128&&(U=null),U==null&&(U=!["_graph","_info"].includes(lt[7])),U?0:lt[7]==="_graph"?1:lt[7]==="_info"?2:-1}return~(W=be(s,-1))&&(q=ye[W]=Ee[W](s)),{c(){e=fe("div"),rn(t.$$.fragment),r=Je(),rn(a.$$.fragment),f=Je(),K&&K.c(),g=Je(),rn(y.$$.fragment),C=Je(),A=fe("div"),rn(O.$$.fragment),L=Je(),q&&q.c(),Z(A,"class","mt-4"),is(A,"margin-bottom","150px"),Z(e,"class","wrapper-normal transparent")},m(lt,ft){He(lt,e,ft),on(t,e,null),Q(e,r),on(a,e,null),Q(e,f),K&&K.m(e,null),Q(e,g),on(y,e,null),Q(e,C),Q(e,A),on(O,A,null),Q(A,L),~W&&ye[W].m(A,null),ee=!0,F||(ne=Fn(X4e,"beforeunload",s[11]),F=!0)},p(lt,[ft]){const bt={};ft&8&&(bt.managerRecords=lt[3]),ft&2&&(bt.graph=lt[1]),t.$set(bt);const z={};ft&4&&(z.schema=lt[2]),ft&1&&(z.record=lt[0]),ft&16&&(z.isCreateMode=lt[4]),ft&2&&(z.graph=lt[1]),!u&&ft&128&&(u=!0,z.activeContentTab=lt[7],Pr(()=>u=!1)),a.$set(z),ft&128&&(m=!["_graph
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/const QS=new Map,Gte={set(s,e,t){QS.has(s)||QS.set(s,new Map);const r=QS.get(s);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn' t allow more than one instance per element . Bound instance : $ { Array . from ( r . keys ( ) ) [ 0 ] } . ` );return}r.set(e,t)},get(s,e){return QS.has(s)&&QS.get(s).get(e)||null},remove(s,e){if(!QS.has(s))return;const t=QS.get(s);t.delete(e),t.size===0&&QS.delete(s)}},mOe=1e6,gOe=1e3,poe="transitionend",C1e=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^ \s "#']+)/g,(e,t)=> ` # $ { CSS . escape ( t ) } ` )),s),pOe=s=>s==null? ` $ { s } ` :Object.prototype.toString.call(s).match(/ \s ([a-z]+)/i)[1].toLowerCase(),bOe=s=>{do s+=Math.floor(Math.random()*mOe);while(document.getElementById(s));return s},vOe=s=>{if(!s)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(s);const r=Number.parseFloat(e),a=Number.parseFloat(t);return!r&&!a?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*gOe)},S1e=s=>{s.dispatchEvent(new Event(poe))},A_=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),yk=s=>A_(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(C1e(s)):null,kO=s=>{if(!A_(s)||s.getClientRects().length===0)return!1;const e=getComputedStyle(s).getPropertyValue("visibility")==="visible",t=s.closest("details:not([open])");if(!t)return e;if(t!==s){const r=s.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},wk=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",k1e=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const e=s.getRootNode();return e instanceof ShadowRoot?e:null}return s instanceof ShadowRoot?s:s.parentNode?k1e(s.parentNode):null},RV=()=>{},pI=s=>{s.offsetHeight},E1e=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Kte=[],yOe=s=>{document.readyState==="loading"?(Kte.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Kte)e()}),Kte.push(s)):s()},L0=()=>document.documentElement.dir==="rtl",z0=s=>{yOe(()=>{const e=E1e();if(e){const t=s.NAME,r=e.fn[t];e.fn[t]=s.jQueryInterface,e.fn[t].Constructor=s,e.fn[t].noConflict=()=>(e.fn[t]=r,s.jQueryInterface)}})},Ep=(s,e=[],t=s)=>typeof s=="function"?s(...e):t,x1e=(s,e,t=!0)=>{if(!t){Ep(s);return}const r=5,a=vOe(e)+r;let u=!1;const f=({target:m})=>{m===e&&(u=!0,e.removeEventListener(poe,f),Ep(s))};e.addEventListener(poe,f),setTimeout(()=>{u||S1e(e)},a)},wse=(s,e,t,r)=>{const a=s.length;let u=s.indexOf(e);return u===-1?!t&&r?s[a-1]:s[0]:(u+=t?1:-1,r&&(u=(u+a)%a),s[Math.max(0,Math.min(u,a-1))])},wOe=/[^.]*(?= \. .*) \. |.*/,_Oe=/ \. .*/,COe=/:: \d + $ /,Yte={};let Jfe=1;const A1e={mouseenter:"mouseover",mouseleave:"mouseout"},SOe=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function T1e(s,e){return e&& ` $ { e } : : $ { Jfe ++ } ` ||s.uidEvent||Jfe++}function D1e(s){const e=T1e(s);return s.uidEvent=e,Yte[e]=Yte[e]||{},Yte[e]}function kOe(s,e){return function t(r){return _se(r,{delegateTarget:s}),t.oneOff&&so.off(s,r.type,e),e.apply(s,[r])}}function EOe(s,e,t){return function r(a){const u=s.querySelectorAll(e);for(let{target:f}=a;f&&f!==this;f=f.parentNode)for(const m of u)if(m===f)return _se(a,{delegateTarget:f}),r.oneOff&&so.off(s,a.type,e,t),t.apply(f,[a])}}function O1e(s,e,t=null){return Object.values(s).find(r=>r.callable===e&&r.delegationSelector===t)}function M1e(s,e,t){const r=typeof e=="string",a=r?t:e||t;let u=R1e(s);return SOe.has(u)||(u=s),[r,a,u]