/*! grapesjs - 0.22.8 */(function(gr,An){typeof exports=="object"&&typeof module=="object"?module.exports=An():typeof define=="function"&&define.amd?define([],An):typeof exports=="object"?exports.grapesjs=An():gr.grapesjs=An()})(typeof globalThis<"u"?globalThis:typeof window<"u"?window:this,(()=>(()=>{var gr={4729:(j,b,H)=>{var w,N,A;N=[H(5706),H(4193)],(A=typeof(w=function(E,v){var _=Array.prototype.slice;function m(Z,K,Q){return Q.length<=4?Z.call(K,Q[0],Q[1],Q[2],Q[3]):Z.apply(K,Q)}function T(Z,K){return _.call(Z,K)}function g(Z,K){return Z!=null&&(E.isArray(K)||(K=T(arguments,1)),E.all(K,(function(Q){return Q in Z})))}var S=(function(){var Z=!1,K=-1;function Q(){K++,Z=!0,E.defer((function(){Z=!1}))}return function(){return Z||Q(),K}})();function x(){this.registeredObjects=[],this.cidIndexes=[]}function k(Z,K,Q,z){for(var at,$=0,mt=K.length;$Z.maximumStackLength&&(Z.shift(),Z.pointer--)}}}x.prototype={isRegistered:function(Z){return Z&&Z.cid?this.registeredObjects[Z.cid]:E.contains(this.registeredObjects,Z)},register:function(Z){return!this.isRegistered(Z)&&(Z&&Z.cid?(this.registeredObjects[Z.cid]=Z,this.cidIndexes.push(Z.cid)):this.registeredObjects.push(Z),!0)},unregister:function(Z){if(this.isRegistered(Z)){if(Z&&Z.cid)delete this.registeredObjects[Z.cid],this.cidIndexes.splice(E.indexOf(this.cidIndexes,Z.cid),1);else{var K=E.indexOf(this.registeredObjects,Z);this.registeredObjects.splice(K,1)}return!0}return!1},get:function(){return E.map(this.cidIndexes,(function(Z){return this.registeredObjects[Z]}),this).concat(this.registeredObjects)}};var M={add:{undo:function(Z,K,Q,z){Z.remove(Q,z)},redo:function(Z,K,Q,z){z.index&&(z.at=z.index),Z.add(Q,z)},on:function(Z,K,Q){return{object:K,before:void 0,after:Z,options:E.clone(Q)}}},remove:{undo:function(Z,K,Q,z){"index"in z&&(z.at=z.index),Z.add(K,z)},redo:function(Z,K,Q,z){Z.remove(K,z)},on:function(Z,K,Q){return{object:K,before:Z,after:void 0,options:E.clone(Q)}}},change:{undo:function(Z,K,Q,z){E.isEmpty(K)?E.each(E.keys(Q),Z.unset,Z):(Z.set(K),z&&z.unsetData&&z.unsetData.before&&z.unsetData.before.length&&E.each(z.unsetData.before,Z.unset,Z))},redo:function(Z,K,Q,z){E.isEmpty(Q)?E.each(E.keys(K),Z.unset,Z):(Z.set(Q),z&&z.unsetData&&z.unsetData.after&&z.unsetData.after.length&&E.each(z.unsetData.after,Z.unset,Z))},on:function(Z,K){var Q=Z.changedAttributes(),z=E.keys(Q),at=E.pick(Z.previousAttributes(),z),$=E.keys(at),mt=(K||(K={})).unsetData={after:[],before:[]};return z.length!=$.length&&(z.length>$.length?E.each(z,(function(X){X in at||mt.before.push(X)}),this):E.each($,(function(X){X in Q||mt.after.push(X)}))),{object:Z,before:at,after:Q,options:E.clone(K)}}},reset:{undo:function(Z,K,Q){Z.reset(K)},redo:function(Z,K,Q){Z.reset(Q)},on:function(Z,K){return{object:Z,before:K.previousModels,after:E.clone(Z.models)}}}};function B(){}function rt(Z,K,Q,z){if(typeof K=="object")return E.each(K,(function(at,$){Z===2?rt(Z,at,Q,z):rt(Z,$,at,Q)}));switch(Z){case 0:g(Q,"undo","redo","on")&&E.all(E.pick(Q,"undo","redo","on"),E.isFunction)&&(z[K]=Q);break;case 1:z[K]&&E.isObject(Q)&&(z[K]=E.extend({},z[K],Q));break;case 2:delete z[K]}return this}B.prototype=M;var ot=v.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(Z){R("undo",this.attributes)},redo:function(Z){R("redo",this.attributes)}}),dt=v.Collection.extend({model:ot,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(Z){this.maximumStackLength=Z}}),st=v.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(Z){this.stack=new dt,this.objectRegistry=new x,this.undoTypes=new B,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",(function(K,Q){this.stack.setMaxLength(Q)}),this),Z&&Z.track&&this.startTracking(),Z&&Z.register&&(E.isArray(Z.register)||E.isArguments(Z.register)?m(this.register,this,Z.register):this.register(Z.register))},startTracking:function(){this.set("track",!0),this.stack.track=!0},stopTracking:function(){this.set("track",!1),this.stack.track=!1},isTracking:function(){return this.get("track")},_addToStack:function(Z){D(this.stack,Z,T(arguments,1),this.undoTypes)},register:function(){k("on",arguments,this._addToStack,this)},unregister:function(){k("off",arguments,this._addToStack,this)},unregisterAll:function(){m(this.unregister,this,this.objectRegistry.get())},undo:function(Z){h("undo",this,this.stack,Z)},undoAll:function(){h("undo",this,this.stack,!1,!0)},redo:function(Z){h("redo",this,this.stack,Z)},redoAll:function(){h("redo",this,this.stack,!1,!0)},isAvailable:function(Z){var K=this.stack,Q=K.length;switch(Z){case"undo":return Q>0&&K.pointer>-1;case"redo":return Q>0&&K.pointer{var w,N;(function(){var A=typeof self=="object"&&self.self===self&&self||typeof H.g=="object"&&H.g.global===H.g&&H.g;w=[H(5706),H(7774),b],N=(function(E,v,_){A.Backbone=(function(m,T,g,S){var x=m.Backbone,k=Array.prototype.slice;T.VERSION="1.4.1",T.$=S,T.noConflict=function(){return m.Backbone=x,this},T.emulateHTTP=!1,T.emulateJSON=!1;var R,h=T.Events={},I=/\s+/,D=function(G,tt,bt,Mt,Gt){var Kt,se=0;if(bt&&typeof bt=="object")for(Mt!==void 0&&("context"in Gt)&&Gt.context===void 0&&(Gt.context=Mt),Kt=g.keys(bt);sethis.length&&(Mt=this.length),Mt<0&&(Mt+=this.length+1);var Gt,Kt,se=[],Se=[],Qe=[],ke=[],nn={},ve=tt.add,pn=tt.merge,pt=tt.remove,ft=!1,Dt=this.comparator&&Mt==null&&tt.sort!==!1,qt=g.isString(this.comparator)?this.comparator:null;for(Kt=0;Kt7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(en,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var tt=this.root.slice(0,-1)||"/";return this.location.replace(tt+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var bt=document.body,Mt=bt.insertBefore(this.iframe,bt.firstChild).contentWindow;Mt.document.open(),Mt.document.close(),Mt.location.hash="#"+this.fragment}var Gt=window.addEventListener||function(Kt,se){return attachEvent("on"+Kt,se)};if(this._usePushState?Gt("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?Gt("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var G=window.removeEventListener||function(tt,bt){return detachEvent("on"+tt,bt)};this._usePushState?G("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&G("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),ce.started=!1},route:function(G,tt){this.handlers.unshift({route:G,callback:tt})},checkUrl:function(G){var tt=this.getFragment();if(tt===this.fragment&&this.iframe&&(tt=this.getHash(this.iframe.contentWindow)),tt===this.fragment)return!1;this.iframe&&this.navigate(tt),this.loadUrl()},loadUrl:function(G){return!!this.matchRoot()&&(G=this.fragment=this.getFragment(G),g.some(this.handlers,(function(tt){if(tt.route.test(G))return tt.callback(G),!0})))},navigate:function(G,tt){if(!ce.started)return!1;tt&&tt!==!0||(tt={trigger:!!tt}),G=this.getFragment(G||"");var bt=this.root;G!==""&&G.charAt(0)!=="?"||(bt=bt.slice(0,-1)||"/");var Mt=bt+G;G=G.replace(Ge,"");var Gt=this.decodeFragment(G);if(this.fragment!==Gt){if(this.fragment=Gt,this._usePushState)this.history[tt.replace?"replaceState":"pushState"]({},document.title,Mt);else{if(!this._wantsHashChange)return this.location.assign(Mt);if(this._updateHash(this.location,G,tt.replace),this.iframe&&G!==this.getHash(this.iframe.contentWindow)){var Kt=this.iframe.contentWindow;tt.replace||(Kt.document.open(),Kt.document.close()),this._updateHash(Kt.location,G,tt.replace)}}return tt.trigger?this.loadUrl(G):void 0}},_updateHash:function(G,tt,bt){if(bt){var Mt=G.href.replace(/(javascript:|#).*$/,"");G.replace(Mt+"#"+tt)}else G.hash="#"+tt}}),T.history=new ce;var Ze=function(G,tt){var bt,Mt=this;return bt=G&&g.has(G,"constructor")?G.constructor:function(){return Mt.apply(this,arguments)},g.extend(bt,Mt,tt),bt.prototype=g.create(Mt.prototype,G),bt.prototype.constructor=bt,bt.__super__=Mt.prototype,bt};K.extend=Q.extend=oe.extend=gt.extend=ce.extend=Ze;var Pe=function(){throw new Error('A "url" property or function must be specified')},It=function(G,tt){var bt=tt.error;tt.error=function(Mt){bt&&bt.call(tt.context,G,Mt,tt),G.trigger("error",G,Mt,tt)}};return T})(A,_,E,v)}).apply(b,w),N===void 0||(j.exports=N)})()},3640:(j,b,H)=>{(function(w){w.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(A,E){return/^[;{}]$/.test(E)}}),w.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(A,E,v,_){return this.jsonMode?/^[\[,{]$/.test(E)||/^}/.test(v):(E!=";"||!_.lexical||_.lexical.type!=")")&&/^[;{}]$/.test(E)&&!/^;/.test(v)}});var N=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;w.extendMode("xml",{commentStart:"",newlineAfterToken:function(A,E,v,_){var m=!1;return this.configuration=="html"&&(m=!!_.context&&N.test(_.context.tagName)),!m&&(A=="tag"&&/>$/.test(E)&&_.context||/^-1&&S>-1&&S>g&&(T=T.substr(0,g)+T.substring(g+m.commentStart.length,S)+T.substr(S+m.commentEnd.length)),_.replaceRange(T,E,v)}}))})),w.defineExtension("autoIndentRange",(function(A,E){var v=this;this.operation((function(){for(var _=A.line;_<=E.line;_++)v.indentLine(_,"smart")}))})),w.defineExtension("autoFormatRange",(function(A,E){var v=this,_=v.getMode(),m=v.getRange(A,E).split(` `),T=w.copyState(_,v.getTokenAt(A).state),g=v.getOption("tabSize"),S="",x=0,k=A.ch===0;function R(){S+=` `,k=!0,++x}for(var h=0;h2),I=/Android/.test(b),D=h||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(b),M=h||/Mac/.test(H),B=/\bCrOS\b/.test(b),rt=/win/i.test(H),ot=S&&b.match(/Version\/(\d*\.\d*)/);ot&&(ot=Number(ot[1])),ot&&ot>=15&&(S=!1,m=!0);var dt=M&&(T||S&&(ot==null||ot<12.11)),st=w||v&&_>=9;function Z(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var K,Q=function(i,s){var u=i.className,c=Z(s).exec(u);if(c){var f=u.slice(c.index+c[0].length);i.className=u.slice(0,c.index)+(f?c[1]+f:"")}};function z(i){for(var s=i.childNodes.length;s>0;--s)i.removeChild(i.firstChild);return i}function at(i,s){return z(i).appendChild(s)}function $(i,s,u,c){var f=document.createElement(i);if(u&&(f.className=u),c&&(f.style.cssText=c),typeof s=="string")f.appendChild(document.createTextNode(s));else if(s)for(var O=0;O=s)return F+(s-O);F+=V-O,F+=u-F%u,O=V+1}}h?gt=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:v&&(gt=function(i){try{i.select()}catch{}});var zt=function(){this.id=null,this.f=null,this.time=0,this.handler=wt(this.onTimeout,this)};function Qt(i,s){for(var u=0;u=s)return c+Math.min(F,s-f);if(f+=O-c,c=O+1,(f+=u-f%u)>=s)return c}}var ee=[""];function me(i){for(;ee.length<=i;)ee.push(ue(ee)+" ");return ee[i]}function ue(i){return i[i.length-1]}function ce(i,s){for(var u=[],c=0;c"\x80"&&(i.toUpperCase()!=i.toLowerCase()||Ze.test(i))}function It(i,s){return s?!!(s.source.indexOf("\\w")>-1&&Pe(i))||s.test(i):Pe(i)}function G(i){for(var s in i)if(i.hasOwnProperty(s)&&i[s])return!1;return!0}var tt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bt(i){return i.charCodeAt(0)>=768&&tt.test(i)}function Mt(i,s,u){for(;(u<0?s>0:su?-1:1;;){if(s==u)return s;var f=(s+u)/2,O=c<0?Math.ceil(f):Math.floor(f);if(O==s)return i(O)?s:u;i(O)?u=O:s=O+c}}function Kt(i,s,u,c){if(!i)return c(s,u,"ltr",0);for(var f=!1,O=0;Os||s==u&&F.to==s)&&(c(Math.max(F.from,s),Math.min(F.to,u),F.level==1?"rtl":"ltr",O),f=!0)}f||c(s,u,"ltr")}var se=null;function Se(i,s,u){var c;se=null;for(var f=0;fs)return f;O.to==s&&(O.from!=O.to&&u=="before"?c=f:se=f),O.from==s&&(O.from!=O.to&&u!="before"?c=f:se=f)}return c??se}var Qe=(function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(it){return it<=247?i.charAt(it):1424<=it&&it<=1524?"R":1536<=it&&it<=1785?s.charAt(it-1536):1774<=it&&it<=2220?"r":8192<=it&&it<=8203?"w":it==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,O=/[LRr]/,F=/[Lb1n]/,V=/[1n]/;function et(it,Ot,Et){this.level=it,this.from=Ot,this.to=Et}return function(it,Ot){var Et=Ot=="ltr"?"L":"R";if(it.length==0||Ot=="ltr"&&!c.test(it))return!1;for(var Ft=it.length,Vt=[],Yt=0;Yt-1&&(c[s]=f.slice(0,O).concat(f.slice(O+1)))}}}function ft(i,s){var u=pn(i,s);if(u.length)for(var c=Array.prototype.slice.call(arguments,2),f=0;f0}function je(i){i.prototype.on=function(s,u){ve(this,s,u)},i.prototype.off=function(s,u){pt(this,s,u)}}function ze(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function _n(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function kn(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==0}function qn(i){ze(i),_n(i)}function dn(i){return i.target||i.srcElement}function wn(i){var s=i.which;return s==null&&(1&i.button?s=1:2&i.button?s=3:4&i.button&&(s=2)),M&&i.ctrlKey&&s==1&&(s=3),s}var Sn,sr,sn=(function(){if(v&&_<9)return!1;var i=$("div");return"draggable"in i||"dragDrop"in i})();function Pn(i){if(Sn==null){var s=$("span","\u200B");at(i,$("span",[s,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(Sn=s.offsetWidth<=1&&s.offsetHeight>2&&!(v&&_<8))}var u=Sn?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}function fn(i){if(sr!=null)return sr;var s=at(i,document.createTextNode("A\u062EA")),u=K(s,0,1).getBoundingClientRect(),c=K(s,1,2).getBoundingClientRect();return z(i),!(!u||u.left==u.right)&&(sr=c.right-u.right<3)}var mn,Wn=` b`.split(/\n/).length!=3?function(i){for(var s=0,u=[],c=i.length;s<=c;){var f=i.indexOf(` `,s);f==-1&&(f=i.length);var O=i.slice(s,i.charAt(f-1)=="\r"?f-1:f),F=O.indexOf("\r");F!=-1?(u.push(O.slice(0,F)),s+=F+1):(u.push(O),s=f+1)}return u}:function(i){return i.split(/\r\n?|\n/)},Gr=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch{return!1}}:function(i){var s;try{s=i.ownerDocument.selection.createRange()}catch{}return!(!s||s.parentElement()!=i)&&s.compareEndPoints("StartToEnd",s)!=0},Nn="oncopy"in(mn=$("div"))||(mn.setAttribute("oncopy","return;"),typeof mn.oncopy=="function"),lr=null;function fr(i){if(lr!=null)return lr;var s=at(i,$("span","x")),u=s.getBoundingClientRect(),c=K(s,0,1).getBoundingClientRect();return lr=Math.abs(u.left-c.left)>1}var an={},On={};function Mn(i,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),an[i]=s}function Kn(i,s){On[i]=s}function Ln(i){if(typeof i=="string"&&On.hasOwnProperty(i))i=On[i];else if(i&&typeof i.name=="string"&&On.hasOwnProperty(i.name)){var s=On[i.name];typeof s=="string"&&(s={name:s}),(i=Ge(s,i)).name=s.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return Ln("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return Ln("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function P(i,s){s=Ln(s);var u=an[s.name];if(!u)return P(i,"text/plain");var c=u(i,s);if(q.hasOwnProperty(s.name)){var f=q[s.name];for(var O in f)f.hasOwnProperty(O)&&(c.hasOwnProperty(O)&&(c["_"+O]=c[O]),c[O]=f[O])}if(c.name=s.name,s.helperType&&(c.helperType=s.helperType),s.modeProps)for(var F in s.modeProps)c[F]=s.modeProps[F];return c}var q={};function U(i,s){Nt(s,q.hasOwnProperty(i)?q[i]:q[i]={})}function _t(i,s){if(s===!0)return s;if(i.copyState)return i.copyState(s);var u={};for(var c in s){var f=s[c];f instanceof Array&&(f=f.concat([])),u[c]=f}return u}function Wt(i,s){for(var u;i.innerMode&&(u=i.innerMode(s))&&u.mode!=i;)s=u.state,i=u.mode;return u||{mode:i,state:s}}function He(i,s,u){return!i.startState||i.startState(s,u)}var Ke=function(i,s,u){this.pos=this.start=0,this.string=i,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};function fe(i,s){if((s-=i.first)<0||s>=i.size)throw new Error("There is no line "+(s+i.first)+" in the document.");for(var u=i;!u.lines;)for(var c=0;;++c){var f=u.children[c],O=f.chunkSize();if(s=i.first&&su?le(u,fe(i,u).text.length):hn(s,fe(i,s.line).text.length)}function hn(i,s){var u=i.ch;return u==null||u>s?le(i.line,s):u<0?le(i.line,0):i}function Un(i,s){for(var u=[],c=0;c=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.poss},Ke.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(i){var s=this.string.indexOf(i,this.pos);if(s>-1)return this.pos=s,!0},Ke.prototype.backUp=function(i){this.pos-=i},Ke.prototype.column=function(){return this.lastColumnPos0?null:(c&&s!==!1&&(this.pos+=c[0].length),c)}var f=function(O){return u?O.toLowerCase():O};if(f(this.string.substr(this.pos,i.length))==f(i))return s!==!1&&(this.pos+=i.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(i,s){this.lineStart+=i;try{return s()}finally{this.lineStart-=i}},Ke.prototype.lookAhead=function(i){var s=this.lineOracle;return s&&s.lookAhead(i)},Ke.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};var tr=function(i,s){this.state=i,this.lookAhead=s},Yn=function(i,s,u,c){this.state=s,this.doc=i,this.line=u,this.maxLookAhead=c||0,this.baseTokens=null,this.baseTokenPos=1};function Ir(i,s,u,c){var f=[i.state.modeGen],O={};pa(i,s.text,i.doc.mode,u,(function(it,Ot){return f.push(it,Ot)}),O,c);for(var F=u.state,V=function(it){u.baseTokens=f;var Ot=i.state.overlays[it],Et=1,Ft=0;u.state=!0,pa(i,s.text,Ot.mode,u,(function(Vt,Yt){for(var pe=Et;FtVt&&f.splice(Et,1,Vt,f[Et+1],he),Et+=2,Ft=Math.min(Vt,he)}if(Yt)if(Ot.opaque)f.splice(pe,Et-pe,Vt,"overlay "+Yt),Et=pe+2;else for(;pei.options.maxHighlightLength&&_t(i.doc.mode,c.state),O=Ir(i,s,c);f&&(c.state=f),s.stateAfter=c.save(!f),s.styles=O.styles,O.classes?s.styleClasses=O.classes:s.styleClasses&&(s.styleClasses=null),u===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return s.styles}function Dr(i,s,u){var c=i.doc,f=i.display;if(!c.mode.startState)return new Yn(c,!0,s);var O=oi(i,s,u),F=O>c.first&&fe(c,O-1).stateAfter,V=F?Yn.fromSaved(c,F,O):new Yn(c,He(c.mode),O);return c.iter(O,s,(function(et){No(i,et.text,V);var it=V.line;et.stateAfter=it==s-1||it%5==0||it>=f.viewFrom&&its.start)return O}throw new Error("Mode "+i.name+" failed to advance stream.")}Yn.prototype.lookAhead=function(i){var s=this.doc.getLine(this.line+i);return s!=null&&i>this.maxLookAhead&&(this.maxLookAhead=i),s},Yn.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(i,s,u){return s instanceof tr?new Yn(i,_t(i.mode,s.state),u,s.lookAhead):new Yn(i,_t(i.mode,s),u)},Yn.prototype.save=function(i){var s=i!==!1?_t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tr(s,this.maxLookAhead):s};var Cr=function(i,s,u){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=s||null,this.state=u};function Io(i,s,u,c){var f,O,F=i.doc,V=F.mode,et=fe(F,(s=Ce(F,s)).line),it=Dr(i,s.line,u),Ot=new Ke(et.text,i.options.tabSize,it);for(c&&(O=[]);(c||Ot.posi.options.maxHighlightLength?(V=!1,F&&No(i,s,c,Et.pos),Et.pos=s.length,et=null):et=Xa(Lo(u,Et,c.state,Ft),O),Ft){var Vt=Ft[0].name;Vt&&(et="m-"+(et?Vt+" "+et:Vt))}if(!V||Ot!=et){for(;itF;--V){if(V<=O.first)return O.first;var et=fe(O,V-1),it=et.stateAfter;if(it&&(!u||V+(it instanceof tr?it.lookAhead:0)<=O.modeFrontier))return V;var Ot=Xt(et.text,null,i.options.tabSize);(f==null||c>Ot)&&(f=V-1,c=Ot)}return f}function $o(i,s){if(i.modeFrontier=Math.min(i.modeFrontier,s),!(i.highlightFrontieru;c--){var f=fe(i,c).stateAfter;if(f&&(!(f instanceof tr)||c+f.lookAhead=s:O.to>s);(c||(c=[])).push(new Wi(F,O.from,V?null:O.to))}}return c}function Ds(i,s,u){var c;if(i)for(var f=0;f=s:O.to>s)||O.from==s&&F.type=="bookmark"&&(!u||O.marker.insertLeft)){var V=O.from==null||(F.inclusiveLeft?O.from<=s:O.from0&&V)for(var Te=0;Te0)){var Ot=[et,1],Et=Ve(it.from,V.from),Ft=Ve(it.to,V.to);(Et<0||!F.inclusiveLeft&&!Et)&&Ot.push({from:it.from,to:V.from}),(Ft>0||!F.inclusiveRight&&!Ft)&&Ot.push({from:V.to,to:it.to}),f.splice.apply(f,Ot),et+=Ot.length-3}}return f}function Za(i){var s=i.markedSpans;if(s){for(var u=0;us)&&(!u||ga(u,O.marker)<0)&&(u=O.marker)}return u}function Ti(i,s,u,c,f){var O=fe(i,s),F=Jr&&O.markedSpans;if(F)for(var V=0;V=0&&Et<=0||Ot<=0&&Et>=0)&&(Ot<=0&&(et.marker.inclusiveRight&&f.inclusiveLeft?Ve(it.to,u)>=0:Ve(it.to,u)>0)||Ot>=0&&(et.marker.inclusiveRight&&f.inclusiveLeft?Ve(it.from,c)<=0:Ve(it.from,c)<0)))return!0}}}function mr(i){for(var s;s=qr(i);)i=s.find(-1,!0).line;return i}function Ci(i){for(var s;s=_i(i);)i=s.find(1,!0).line;return i}function ma(i){for(var s,u;s=_i(i);)i=s.find(1,!0).line,(u||(u=[])).push(i);return u}function Ho(i,s){var u=fe(i,s),c=mr(u);return u==c?s:rn(c)}function Er(i,s){if(s>i.lastLine())return s;var u,c=fe(i,s);if(!bo(i,c))return s;for(;u=_i(c);)c=u.find(1,!0).line;return rn(c)+1}function bo(i,s){var u=Jr&&s.markedSpans;if(u){for(var c=void 0,f=0;fs.maxLineLength&&(s.maxLineLength=f,s.maxLine=c)}))}var Or=function(i,s,u){this.text=i,bi(this,s),this.height=u?u(this):1};function js(i,s,u,c){i.text=s,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),Za(i),bi(i,u);var f=c?c(i):1;f!=i.height&&tn(i,f)}function Qa(i){i.parent=null,Za(i)}Or.prototype.lineNo=function(){return rn(this)},je(Or);var Yo={},Ja={};function ts(i,s){if(!i||/^\s*$/.test(i))return null;var u=s.addModeClass?Ja:Yo;return u[i]||(u[i]=i.replace(/\S+/g,"cm-$&"))}function va(i,s){var u=mt("span",null,null,m?"padding-right: .1px":null),c={pre:mt("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};s.measure={};for(var f=0;f<=(s.rest?s.rest.length:0);f++){var O=f?s.rest[f-1]:s.line,F=void 0;c.pos=0,c.addToken=Kl,fn(i.display.measure)&&(F=ke(O,i.doc.direction))&&(c.addToken=Ki(c.addToken,F)),c.map=[],Yi(O,c,ri(i,O,s!=i.display.externalMeasured&&rn(O))),O.styleClasses&&(O.styleClasses.bgClass&&(c.bgClass=Ct(O.styleClasses.bgClass,c.bgClass||"")),O.styleClasses.textClass&&(c.textClass=Ct(O.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Pn(i.display.measure))),f==0?(s.measure.map=c.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(c.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(m){var V=c.content.lastChild;(/\bcm-tab\b/.test(V.className)||V.querySelector&&V.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return ft(i,"renderLine",i,s.line,c.pre),c.pre.className&&(c.textClass=Ct(c.pre.className,c.textClass||"")),c}function es(i){var s=$("span","\u2022","cm-invalidchar");return s.title="\\u"+i.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function Kl(i,s,u,c,f,O,F){if(s){var V,et=i.splitSpaces?ns(s,i.trailingSpace):s,it=i.cm.state.specialChars,Ot=!1;if(it.test(s)){V=document.createDocumentFragment();for(var Et=0;;){it.lastIndex=Et;var Ft=it.exec(s),Vt=Ft?Ft.index-Et:s.length-Et;if(Vt){var Yt=document.createTextNode(et.slice(Et,Et+Vt));v&&_<9?V.appendChild($("span",[Yt])):V.appendChild(Yt),i.map.push(i.pos,i.pos+Vt,Yt),i.col+=Vt,i.pos+=Vt}if(!Ft)break;Et+=Vt+1;var pe=void 0;if(Ft[0]==" "){var he=i.cm.options.tabSize,Oe=he-i.col%he;(pe=V.appendChild($("span",me(Oe),"cm-tab"))).setAttribute("role","presentation"),pe.setAttribute("cm-text"," "),i.col+=Oe}else Ft[0]=="\r"||Ft[0]==` `?((pe=V.appendChild($("span",Ft[0]=="\r"?"\u240D":"\u2424","cm-invalidchar"))).setAttribute("cm-text",Ft[0]),i.col+=1):((pe=i.cm.options.specialCharPlaceholder(Ft[0])).setAttribute("cm-text",Ft[0]),v&&_<9?V.appendChild($("span",[pe])):V.appendChild(pe),i.col+=1);i.map.push(i.pos,i.pos+1,pe),i.pos++}}else i.col+=s.length,V=document.createTextNode(et),i.map.push(i.pos,i.pos+s.length,V),v&&_<9&&(Ot=!0),i.pos+=s.length;if(i.trailingSpace=et.charCodeAt(s.length-1)==32,u||c||f||Ot||O||F){var Ne=u||"";c&&(Ne+=c),f&&(Ne+=f);var Te=$("span",[V],Ne,O);if(F)for(var Ie in F)F.hasOwnProperty(Ie)&&Ie!="style"&&Ie!="class"&&Te.setAttribute(Ie,F[Ie]);return i.content.appendChild(Te)}i.content.appendChild(V)}}function ns(i,s){if(i.length>1&&!/ /.test(i))return i;for(var u=s,c="",f=0;fit&&Et.from<=it);Ft++);if(Et.to>=Ot)return i(u,c,f,O,F,V,et);i(u,c.slice(0,Et.to-it),f,O,null,V,et),O=null,c=c.slice(Et.to-it),it=Et.to}}}function $i(i,s,u,c){var f=!c&&u.widgetNode;f&&i.map.push(i.pos,i.pos+s,f),!c&&i.cm.display.input.needsContentAttribute&&(f||(f=i.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(i.cm.display.input.setUneditable(f),i.content.appendChild(f)),i.pos+=s,i.trailingSpace=!1}function Yi(i,s,u){var c=i.markedSpans,f=i.text,O=0;if(c)for(var F,V,et,it,Ot,Et,Ft,Vt=f.length,Yt=0,pe=1,he="",Oe=0;;){if(Oe==Yt){et=it=Ot=V="",Ft=null,Et=null,Oe=1/0;for(var Ne=[],Te=void 0,Ie=0;IeYt||Fe.collapsed&&De.to==Yt&&De.from==Yt)){if(De.to!=null&&De.to!=Yt&&Oe>De.to&&(Oe=De.to,it=""),Fe.className&&(et+=" "+Fe.className),Fe.css&&(V=(V?V+";":"")+Fe.css),Fe.startStyle&&De.from==Yt&&(Ot+=" "+Fe.startStyle),Fe.endStyle&&De.to==Oe&&(Te||(Te=[])).push(Fe.endStyle,De.to),Fe.title&&((Ft||(Ft={})).title=Fe.title),Fe.attributes)for(var Hn in Fe.attributes)(Ft||(Ft={}))[Hn]=Fe.attributes[Hn];Fe.collapsed&&(!Et||ga(Et.marker,Fe)<0)&&(Et=De)}else De.from>Yt&&Oe>De.from&&(Oe=De.from)}if(Te)for(var Rn=0;Rn=Vt)break;for(var zn=Math.min(Vt,Oe);;){if(he){var eo=Yt+he.length;if(!Et){var no=eo>zn?he.slice(0,zn-Yt):he;s.addToken(s,no,F?F+et:et,Ot,Yt+no.length==Oe?it:"",V,Ft)}if(eo>=zn){he=he.slice(zn-Yt),Yt=zn;break}Yt=eo,Ot=""}he=f.slice(O,O=u[pe++]),F=ts(u[pe++],s.cm.options)}}else for(var Qn=1;Qn2&&O.push((et.bottom+it.top)/2-u.top)}}O.push(u.bottom-u.top)}}function $e(i,s,u){if(i.line==s)return{map:i.measure.map,cache:i.measure.cache};for(var c=0;cu)return{map:i.measure.maps[f],cache:i.measure.caches[f],before:!0}}function cn(i,s){var u=rn(s=mr(s)),c=i.display.externalMeasured=new rs(i.doc,s,u);c.lineN=u;var f=c.built=va(i,c);return c.text=f.pre,at(i.display.lineMeasure,f.pre),c}function xn(i,s,u,c){return xr(i,br(i,s),u,c)}function Sr(i,s){if(s>=i.display.viewFrom&&s=u.lineN&&ss)&&(f=(O=et-V)-1,s>=et&&(F="right")),f!=null){if(c=i[it+2],V==et&&u==(c.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;it&&i[it-2]==i[it-3]&&i[it-1].insertLeft;)c=i[(it-=3)+2],F="left";if(u=="right"&&f==et-V)for(;it=0&&(u=i[f]).left==u.right;f--);return u}function Zc(i,s,u,c){var f,O=Xc(s.map,u,c),F=O.node,V=O.start,et=O.end,it=O.collapse;if(F.nodeType==3){for(var Ot=0;Ot<4;Ot++){for(;V&&bt(s.line.text.charAt(O.coverStart+V));)--V;for(;O.coverStart+et0&&(it=c="right"),f=i.options.lineWrapping&&(Et=F.getClientRects()).length>1?Et[c=="right"?Et.length-1:0]:F.getBoundingClientRect()}if(v&&_<9&&!V&&(!f||!f.left&&!f.right)){var Ft=F.parentNode.getClientRects()[0];f=Ft?{left:Ft.left,right:Ft.left+Co(i.display),top:Ft.top,bottom:Ft.bottom}:Yc}for(var Vt=f.top-s.rect.top,Yt=f.bottom-s.rect.top,pe=(Vt+Yt)/2,he=s.view.measure.heights,Oe=0;Oe=c.text.length?(et=c.text.length,it="before"):et<=0&&(et=0,it="after"),!V)return F(it=="before"?et-1:et,it=="before");function Ot(Yt,pe,he){return F(he?Yt-1:Yt,V[pe].level==1!=he)}var Et=Se(V,et,it),Ft=se,Vt=Ot(et,Et,it=="before");return Ft!=null&&(Vt.other=Ot(et,Ft,it!="before")),Vt}function eu(i,s){var u=0;s=Ce(i.doc,s),i.options.lineWrapping||(u=Co(i.display)*s.ch);var c=fe(i.doc,s.line),f=_o(c)+ct(i.display);return{left:u,right:u,top:f,bottom:f+c.height}}function Zl(i,s,u,c,f){var O=le(i,s,u);return O.xRel=f,c&&(O.outside=c),O}function Ql(i,s,u){var c=i.doc;if((u+=i.display.viewOffset)<0)return Zl(c.first,0,null,-1,-1);var f=In(c,u),O=c.first+c.size-1;if(f>O)return Zl(c.first+c.size-1,fe(c,O).text.length,null,1,1);s<0&&(s=0);for(var F=fe(c,f);;){var V=Ws(i,F,f,s,u),et=lo(F,V.ch+(V.xRel>0||V.outside>0?1:0));if(!et)return V;var it=et.find(1);if(it.line==f)return it;F=fe(c,f=it.line)}}function nu(i,s,u,c){c-=Yl(s);var f=s.text.length,O=Gt((function(F){return xr(i,u,F-1).bottom<=c}),f,0);return{begin:O,end:f=Gt((function(F){return xr(i,u,F).top>c}),O,f)}}function ru(i,s,u,c){return u||(u=br(i,s)),nu(i,s,u,Us(i,s,xr(i,u,c),"line").top)}function Jl(i,s,u,c){return!(i.bottom<=u)&&(i.top>u||(c?i.left:i.right)>s)}function Ws(i,s,u,c,f){f-=_o(s);var O=br(i,s),F=Yl(s),V=0,et=s.text.length,it=!0,Ot=ke(s,i.doc.direction);if(Ot){var Et=(i.options.lineWrapping?Yp:$p)(i,s,u,O,Ot,c,f);V=(it=Et.level!=1)?Et.from:Et.to-1,et=it?Et.to:Et.from-1}var Ft,Vt,Yt=null,pe=null,he=Gt((function(De){var Fe=xr(i,O,De);return Fe.top+=F,Fe.bottom+=F,!!Jl(Fe,c,f,!1)&&(Fe.top<=f&&Fe.left<=c&&(Yt=De,pe=Fe),!0)}),V,et),Oe=!1;if(pe){var Ne=c-pe.left=Ie.bottom?1:0}return Zl(u,he=Mt(s.text,he,1),Vt,Oe,c-Ft)}function $p(i,s,u,c,f,O,F){var V=Gt((function(Et){var Ft=f[Et],Vt=Ft.level!=1;return Jl(jr(i,le(u,Vt?Ft.to:Ft.from,Vt?"before":"after"),"line",s,c),O,F,!0)}),0,f.length-1),et=f[V];if(V>0){var it=et.level!=1,Ot=jr(i,le(u,it?et.from:et.to,it?"after":"before"),"line",s,c);Jl(Ot,O,F,!0)&&Ot.top>F&&(et=f[V-1])}return et}function Yp(i,s,u,c,f,O,F){var V=nu(i,s,c,F),et=V.begin,it=V.end;/\s/.test(s.text.charAt(it-1))&&it--;for(var Ot=null,Et=null,Ft=0;Ft=it||Vt.to<=et)){var Yt=xr(i,c,Vt.level!=1?Math.min(it,Vt.to)-1:Math.max(et,Vt.from)).right,pe=Ytpe)&&(Ot=Vt,Et=pe)}}return Ot||(Ot=f[f.length-1]),Ot.fromit&&(Ot={from:Ot.from,to:it,level:Ot.level}),Ot}function ba(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(uo==null){uo=$("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)uo.appendChild(document.createTextNode("x")),uo.appendChild($("br"));uo.appendChild(document.createTextNode("x"))}at(i.measure,uo);var u=uo.offsetHeight/50;return u>3&&(i.cachedTextHeight=u),z(i.measure),u||1}function Co(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var s=$("span","xxxxxxxxxx"),u=$("pre",[s],"CodeMirror-line-like");at(i.measure,u);var c=s.getBoundingClientRect(),f=(c.right-c.left)/10;return f>2&&(i.cachedCharWidth=f),f||10}function tc(i){for(var s=i.display,u={},c={},f=s.gutters.clientLeft,O=s.gutters.firstChild,F=0;O;O=O.nextSibling,++F){var V=i.display.gutterSpecs[F].className;u[V]=O.offsetLeft+O.clientLeft+f,c[V]=O.clientWidth}return{fixedPos:ec(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:c,wrapperWidth:s.wrapper.clientWidth}}function ec(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function ou(i){var s=ba(i.display),u=i.options.lineWrapping,c=u&&Math.max(5,i.display.scroller.clientWidth/Co(i.display)-3);return function(f){if(bo(i.doc,f))return 0;var O=0;if(f.widgets)for(var F=0;F0&&(et=fe(i.doc,it.line).text).length==it.ch){var Ot=Xt(et,et.length,i.options.tabSize)-et.length;it=le(it.line,Math.max(0,Math.round((O-Pt(i.display).left)/Co(i.display))-Ot))}return it}function Zo(i,s){if(s>=i.display.viewTo||(s-=i.display.viewFrom)<0)return null;for(var u=i.display.view,c=0;cs)&&(f.updateLineNumbers=s),i.curOp.viewChanged=!0,s>=f.viewTo)Jr&&Ho(i.doc,s)f.viewFrom?Oi(i):(f.viewFrom+=c,f.viewTo+=c);else if(s<=f.viewFrom&&u>=f.viewTo)Oi(i);else if(s<=f.viewFrom){var O=_a(i,u,u+c,1);O?(f.view=f.view.slice(O.index),f.viewFrom=O.lineN,f.viewTo+=c):Oi(i)}else if(u>=f.viewTo){var F=_a(i,s,s,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Oi(i)}else{var V=_a(i,s,s,-1),et=_a(i,u,u+c,1);V&&et?(f.view=f.view.slice(0,V.index).concat(Fo(i,V.lineN,et.lineN)).concat(f.view.slice(et.index)),f.viewTo+=c):Oi(i)}var it=f.externalMeasured;it&&(u=f.lineN&&s=c.viewTo)){var O=c.view[Zo(i,s)];if(O.node!=null){var F=O.changes||(O.changes=[]);Qt(F,u)==-1&&F.push(u)}}}function Oi(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function _a(i,s,u,c){var f,O=Zo(i,s),F=i.display.view;if(!Jr||u==i.doc.first+i.doc.size)return{index:O,lineN:u};for(var V=i.display.viewFrom,et=0;et0){if(O==F.length-1)return null;f=V+F[O].size-s,O++}else f=V-s;s+=f,u+=f}for(;Ho(i.doc,u)!=u;){if(O==(c<0?0:F.length-1))return null;u+=c*F[O-(c<0?1:0)].size,O+=c}return{index:O,lineN:u}}function Xp(i,s,u){var c=i.display;c.view.length==0||s>=c.viewTo||u<=c.viewFrom?(c.view=Fo(i,s,u),c.viewFrom=s):(c.viewFrom>s?c.view=Fo(i,s,c.viewFrom).concat(c.view):c.viewFromu&&(c.view=c.view.slice(0,Zo(i,u)))),c.viewTo=u}function iu(i){for(var s=i.display.view,u=0,c=0;c=i.display.viewTo||V.to().line0&&(f.style.width=O.right-O.left+"px")}if(c.other){var F=u.appendChild($("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));F.style.display="",F.style.left=c.other.left+"px",F.style.top=c.other.top+"px",F.style.height=.85*(c.other.bottom-c.other.top)+"px"}}function qs(i,s){return i.top-s.top||i.left-s.left}function Zp(i,s,u){var c=i.display,f=i.doc,O=document.createDocumentFragment(),F=Pt(i.display),V=F.left,et=Math.max(c.sizerWidth,Lt(i)-c.sizer.offsetLeft)-F.right,it=f.direction=="ltr";function Ot(Te,Ie,De,Fe){Ie<0&&(Ie=0),Ie=Math.round(Ie),Fe=Math.round(Fe),O.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px; top: `+Ie+"px; width: "+(De??et-Te)+`px; height: `+(Fe-Ie)+"px"))}function Et(Te,Ie,De){var Fe,Hn,Rn=fe(f,Te),vr=Rn.text.length;function zn(Qn,Vr){return zs(i,le(Te,Qn),"div",Rn,Vr)}function eo(Qn,Vr,Br){var rr=ru(i,Rn,null,Qn),$n=Vr=="ltr"==(Br=="after")?"left":"right";return zn(Br=="after"?rr.begin:rr.end-(/\s/.test(Rn.text.charAt(rr.end-1))?2:1),$n)[$n]}var no=ke(Rn,f.direction);return Kt(no,Ie||0,De??vr,(function(Qn,Vr,Br,rr){var $n=Br=="ltr",or=zn(Qn,$n?"left":"right"),Ur=zn(Vr-1,$n?"right":"left"),Ii=Ie==null&&Qn==0,Uo=De==null&&Vr==vr,yr=rr==0,pr=!no||rr==no.length-1;if(Ur.top-or.top<=3){var Sc=(it?Uo:Ii)&&pr,fi=(it?Ii:Uo)&&yr?V:($n?or:Ur).left,Di=Sc?et:($n?Ur:or).right;Ot(fi,or.top,Di-fi,or.bottom)}else{var ji,zr,wo,xc;$n?(ji=it&&Ii&&yr?V:or.left,zr=it?et:eo(Qn,Br,"before"),wo=it?V:eo(Vr,Br,"after"),xc=it&&Uo&&pr?et:Ur.right):(ji=it?eo(Qn,Br,"before"):V,zr=!it&&Ii&&yr?et:or.right,wo=!it&&Uo&&pr?V:Ur.left,xc=it?eo(Vr,Br,"after"):et),Ot(ji,or.top,zr-ji,or.bottom),or.bottom0?s.blinker=setInterval((function(){i.hasFocus()||Ca(i),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"}),i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function rc(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||ss(i))}function oc(i){i.state.delayingBlurEvent=!0,setTimeout((function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&Ca(i))}),100)}function ss(i,s){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(ft(i,"focus",i,s),i.state.focused=!0,vt(i.display.wrapper,"CodeMirror-focused"),i.curOp||i.display.selForContextMenu==i.doc.sel||(i.display.input.reset(),m&&setTimeout((function(){return i.display.input.reset(!0)}),20)),i.display.input.receivedFocus()),Ta(i))}function Ca(i,s){i.state.delayingBlurEvent||(i.state.focused&&(ft(i,"blur",i,s),i.state.focused=!1,Q(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout((function(){i.state.focused||(i.display.shift=!1)}),150))}function ta(i){for(var s=i.display,u=s.lineDiv.offsetTop,c=Math.max(0,s.scroller.getBoundingClientRect().top),f=s.lineDiv.getBoundingClientRect().top,O=0,F=0;F.005||Vt<-.005)&&(fi.display.sizerWidth){var pe=Math.ceil(Ot/Co(i.display));pe>i.display.maxLineLength&&(i.display.maxLineLength=pe,i.display.maxLine=V.line,i.display.maxLineChanged=!0)}}}Math.abs(O)>2&&(s.scroller.scrollTop+=O)}function Ks(i){if(i.widgets)for(var s=0;s=F&&(O=In(s,_o(fe(s,et))-i.wrapper.clientHeight),F=et)}return{from:O,to:Math.max(F,O+1)}}function Ys(i,s){if(!Dt(i,"scrollCursorIntoView")){var u=i.display,c=u.sizer.getBoundingClientRect(),f=null;if(s.top+c.top<0?f=!0:s.bottom+c.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!R){var O=$("div","\u200B",null,`position: absolute; top: `+(s.top-u.viewOffset-ct(i.display))+`px; height: `+(s.bottom-s.top+Ut(i)+u.barHeight)+`px; left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");i.display.lineSpace.appendChild(O),O.scrollIntoView(f),i.display.lineSpace.removeChild(O)}}}function ic(i,s,u,c){var f;c==null&&(c=0),i.options.lineWrapping||s!=u||(u=s.sticky=="before"?le(s.line,s.ch+1,"before"):s,s=s.ch?le(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var O=0;O<5;O++){var F=!1,V=jr(i,s),et=u&&u!=s?jr(i,u):V,it=ac(i,f={left:Math.min(V.left,et.left),top:Math.min(V.top,et.top)-c,right:Math.max(V.left,et.left),bottom:Math.max(V.bottom,et.bottom)+c}),Ot=i.doc.scrollTop,Et=i.doc.scrollLeft;if(it.scrollTop!=null&&(us(i,it.scrollTop),Math.abs(i.doc.scrollTop-Ot)>1&&(F=!0)),it.scrollLeft!=null&&(na(i,it.scrollLeft),Math.abs(i.doc.scrollLeft-Et)>1&&(F=!0)),!F)break}return f}function Qp(i,s){var u=ac(i,s);u.scrollTop!=null&&us(i,u.scrollTop),u.scrollLeft!=null&&na(i,u.scrollLeft)}function ac(i,s){var u=i.display,c=ba(i.display);s.top<0&&(s.top=0);var f=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:u.scroller.scrollTop,O=ae(i),F={};s.bottom-s.top>O&&(s.bottom=s.top+O);var V=i.doc.height+At(u),et=s.topV-c;if(s.topf+O){var Ot=Math.min(s.top,(it?V:s.bottom)-O);Ot!=f&&(F.scrollTop=Ot)}var Et=i.options.fixedGutter?0:u.gutters.offsetWidth,Ft=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:u.scroller.scrollLeft-Et,Vt=Lt(i)-u.gutters.offsetWidth,Yt=s.right-s.left>Vt;return Yt&&(s.right=s.left+Vt),s.left<10?F.scrollLeft=0:s.leftVt+Ft-3&&(F.scrollLeft=s.right+(Yt?0:10)-Vt),F}function wa(i,s){s!=null&&(Xs(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+s)}function ea(i){Xs(i);var s=i.getCursor();i.curOp.scrollToPos={from:s,to:s,margin:i.options.cursorScrollMargin}}function ls(i,s,u){s==null&&u==null||Xs(i),s!=null&&(i.curOp.scrollLeft=s),u!=null&&(i.curOp.scrollTop=u)}function Jp(i,s){Xs(i),i.curOp.scrollToPos=s}function Xs(i){var s=i.curOp.scrollToPos;s&&(i.curOp.scrollToPos=null,cs(i,eu(i,s.from),eu(i,s.to),s.margin))}function cs(i,s,u,c){var f=ac(i,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-c,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+c});ls(i,f.scrollLeft,f.scrollTop)}function us(i,s){Math.abs(i.doc.scrollTop-s)<2||(w||uc(i,{top:s}),au(i,s,!0),w&&uc(i),fs(i,100))}function au(i,s,u){s=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,s)),(i.display.scroller.scrollTop!=s||u)&&(i.doc.scrollTop=s,i.display.scrollbars.setScrollTop(s),i.display.scroller.scrollTop!=s&&(i.display.scroller.scrollTop=s))}function na(i,s,u,c){s=Math.max(0,Math.min(s,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),(u?s==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-s)<2)&&!c||(i.doc.scrollLeft=s,su(i),i.display.scroller.scrollLeft!=s&&(i.display.scroller.scrollLeft=s),i.display.scrollbars.setScrollLeft(s))}function Si(i){var s=i.display,u=s.gutters.offsetWidth,c=Math.round(i.doc.height+At(i.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:i.options.fixedGutter?u:0,docHeight:c,scrollHeight:c+Ut(i)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var li=function(i,s,u){this.cm=u;var c=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=f.tabIndex=-1,i(c),i(f),ve(c,"scroll",(function(){c.clientHeight&&s(c.scrollTop,"vertical")})),ve(f,"scroll",(function(){f.clientWidth&&s(f.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,v&&_<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};li.prototype.update=function(i){var s=i.scrollWidth>i.clientWidth+1,u=i.scrollHeight>i.clientHeight+1,c=i.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?c+"px":"0";var f=i.viewHeight-(s?c:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+f)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?c+"px":"0",this.horiz.style.left=i.barLeft+"px";var O=i.viewWidth-i.barLeft-(u?c:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+O)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?c:0,bottom:s?c:0}},li.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},li.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},li.prototype.zeroWidthHack=function(){var i=M&&!k?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new zt,this.disableVert=new zt},li.prototype.enableZeroWidthBar=function(i,s,u){function c(){var f=i.getBoundingClientRect();(u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1))!=i?i.style.pointerEvents="none":s.set(1e3,c)}i.style.pointerEvents="auto",s.set(1e3,c)},li.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var ps=function(){};function Ea(i,s){s||(s=Si(i));var u=i.display.barWidth,c=i.display.barHeight;ds(i,s);for(var f=0;f<4&&u!=i.display.barWidth||c!=i.display.barHeight;f++)u!=i.display.barWidth&&i.options.lineWrapping&&ta(i),ds(i,Si(i)),u=i.display.barWidth,c=i.display.barHeight}function ds(i,s){var u=i.display,c=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=c.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=c.bottom)+"px",u.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=c.bottom+"px",u.scrollbarFiller.style.width=c.right+"px"):u.scrollbarFiller.style.display="",c.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=c.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}ps.prototype.update=function(){return{bottom:0,right:0}},ps.prototype.setScrollLeft=function(){},ps.prototype.setScrollTop=function(){},ps.prototype.clear=function(){};var Zs={native:li,null:ps};function sc(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&Q(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new Zs[i.options.scrollbarStyle]((function(s){i.display.wrapper.insertBefore(s,i.display.scrollbarFiller),ve(s,"mousedown",(function(){i.state.focused&&setTimeout((function(){return i.display.input.focus()}),0)})),s.setAttribute("cm-not-content","true")}),(function(s,u){u=="horizontal"?na(i,s):us(i,s)}),i),i.display.scrollbars.addClass&&vt(i.display.wrapper,i.display.scrollbars.addClass)}var td=0;function Qo(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++td,markArrays:null},To(i.curOp)}function ra(i){var s=i.curOp;s&&Hs(s,(function(u){for(var c=0;c=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,i.update=i.mustUpdate&&new oa(s,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function lc(i){i.updatedDisplay=i.mustUpdate&&Oa(i.cm,i.update)}function nd(i){var s=i.cm,u=s.display;i.updatedDisplay&&ta(s),i.barMeasure=Si(s),u.maxLineChanged&&!s.options.lineWrapping&&(i.adjustWidthTo=xn(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+i.adjustWidthTo+Ut(s)+s.display.barWidth),i.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+i.adjustWidthTo-Lt(s))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=u.input.prepareSelection())}function rd(i){var s=i.cm;i.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft=i.display.viewTo)){var u=+new Date+i.options.workTime,c=Dr(i,s.highlightFrontier),f=[];s.iter(c.line,Math.min(s.first+s.size,i.display.viewTo+500),(function(O){if(c.line>=i.display.viewFrom){var F=O.styles,V=O.text.length>i.options.maxHighlightLength?_t(s.mode,c.state):null,et=Ir(i,O,c,!0);V&&(c.state=V),O.styles=et.styles;var it=O.styleClasses,Ot=et.classes;Ot?O.styleClasses=Ot:it&&(O.styleClasses=null);for(var Et=!F||F.length!=O.styles.length||it!=Ot&&(!it||!Ot||it.bgClass!=Ot.bgClass||it.textClass!=Ot.textClass),Ft=0;!Et&&Ftu)return fs(i,i.options.workDelay),!0})),s.highlightFrontier=c.line,s.modeFrontier=Math.max(s.modeFrontier,c.line),f.length&&Rr(i,(function(){for(var O=0;O=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&iu(i)==0)return!1;lu(i)&&(Oi(i),s.dims=tc(i));var f=c.first+c.size,O=Math.max(s.visible.from-i.options.viewportMargin,c.first),F=Math.min(f,s.visible.to+i.options.viewportMargin);u.viewFromF&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Jr&&(O=Ho(i.doc,O),F=Er(i.doc,F));var V=O!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;Xp(i,O,F),u.viewOffset=_o(fe(i.doc,u.viewFrom)),i.display.mover.style.top=u.viewOffset+"px";var et=iu(i);if(!V&&et==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var it=id(i);return et>4&&(u.lineDiv.style.display="none"),sd(i,u.updateLineNumbers,s.dims),et>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ad(it),z(u.cursorDiv),z(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,V&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,fs(i,400)),u.updateLineNumbers=null,!0}function tl(i,s){for(var u=s.viewport,c=!0;;c=!1){if(c&&i.options.lineWrapping&&s.oldDisplayWidth!=Lt(i))c&&(s.visible=$s(i.display,i.doc,u));else if(u&&u.top!=null&&(u={top:Math.min(i.doc.height+At(i.display)-ae(i),u.top)}),s.visible=$s(i.display,i.doc,u),s.visible.from>=i.display.viewFrom&&s.visible.to<=i.display.viewTo)break;if(!Oa(i,s))break;ta(i);var f=Si(i);is(i),Ea(i,f),el(i,f),s.force=!1}s.signal(i,"update",i),i.display.viewFrom==i.display.reportedViewFrom&&i.display.viewTo==i.display.reportedViewTo||(s.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function uc(i,s){var u=new oa(i,s);if(Oa(i,u)){ta(i),tl(i,u);var c=Si(i);is(i),Ea(i,c),el(i,c),u.finish()}}function sd(i,s,u){var c=i.display,f=i.options.lineNumbers,O=c.lineDiv,F=O.firstChild;function V(Yt){var pe=Yt.nextSibling;return m&&M&&i.display.currentWheelTarget==Yt?Yt.style.display="none":Yt.parentNode.removeChild(Yt),pe}for(var et=c.view,it=c.viewFrom,Ot=0;Ot-1&&(Ft=!1),Vo(i,Et,it,u)),Ft&&(z(Et.lineNumber),Et.lineNumber.appendChild(document.createTextNode(Lr(i.options,it)))),F=Et.node.nextSibling}else{var Vt=Kr(i,Et,it,u);O.insertBefore(Vt,F)}it+=Et.size}for(;F;)F=V(F)}function Sa(i){var s=i.gutters.offsetWidth;i.sizer.style.marginLeft=s+"px",Xn(i,"gutterChanged",i)}function el(i,s){i.display.sizer.style.minHeight=s.docHeight+"px",i.display.heightForcer.style.top=s.docHeight+"px",i.display.gutters.style.height=s.docHeight+i.display.barHeight+Ut(i)+"px"}function su(i){var s=i.display,u=s.view;if(s.alignWidgets||s.gutters.firstChild&&i.options.fixedGutter){for(var c=ec(s)-s.scroller.scrollLeft+i.doc.scrollLeft,f=s.gutters.offsetWidth,O=c+"px",F=0;FF.clientWidth,et=F.scrollHeight>F.clientHeight;if(c&&V||f&&et){if(f&&M&&m){t:for(var it=s.target,Ot=O.view;it!=F;it=it.parentNode)for(var Et=0;Et=0&&Ve(i,c.to())<=0)return u}return-1};var bn=function(i,s){this.anchor=i,this.head=s};function Bo(i,s,u){var c=i&&i.options.selectionsMayTouch,f=s[u];s.sort((function(Ft,Vt){return Ve(Ft.from(),Vt.from())})),u=Qt(s,f);for(var O=1;O0:et>=0){var it=Ee(V.from(),F.from()),Ot=Jt(V.to(),F.to()),Et=V.empty()?F.from()==F.head:V.from()==V.head;O<=u&&--u,s.splice(--O,2,new bn(Et?Ot:it,Et?it:Ot))}}return new fo(s,u)}function xi(i,s){return new fo([new bn(i,s||i)],0)}function Ai(i){return i.text?le(i.from.line+i.text.length-1,ue(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function uu(i,s){if(Ve(i,s.from)<0)return i;if(Ve(i,s.to)<=0)return Ai(s);var u=i.line+s.text.length-(s.to.line-s.from.line)-1,c=i.ch;return i.line==s.to.line&&(c+=Ai(s).ch-s.to.ch),le(u,c)}function ol(i,s){for(var u=[],c=0;c1&&i.remove(V.line+1,Yt-1),i.insert(V.line+1,Oe)}Xn(i,"change",i,s)}function ki(i,s,u){function c(f,O,F){if(f.linked)for(var V=0;V1&&!i.done[i.done.length-2].ranges?(i.done.pop(),ue(i.done)):void 0}function Pi(i,s,u,c){var f=i.history;f.undone.length=0;var O,F,V=+new Date;if((f.lastOp==c||f.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&f.lastModTime>V-(i.cm?i.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(O=ud(f,f.lastOp==c)))F=ue(O.changes),Ve(s.from,s.to)==0&&Ve(s.from,F.to)==0?F.to=Ai(s):O.changes.push(dc(i,s));else{var et=ue(f.done);for(et&&et.ranges||ul(i.sel,f.done),O={changes:[dc(i,s)],generation:f.generation},f.done.push(O);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=V,f.lastOp=f.lastSelOp=c,f.lastOrigin=f.lastSelOrigin=s.origin,F||ft(i,"historyAdded")}function ll(i,s,u,c){var f=s.charAt(0);return f=="*"||f=="+"&&u.ranges.length==c.ranges.length&&u.somethingSelected()==c.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function cl(i,s,u,c){var f=i.history,O=c&&c.origin;u==f.lastSelOp||O&&f.lastSelOrigin==O&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==O||ll(i,O,ue(f.done),s))?f.done[f.done.length-1]=s:ul(s,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=O,f.lastSelOp=u,c&&c.clearRedo!==!1&&sl(f.undone)}function ul(i,s){var u=ue(s);u&&u.ranges&&u.equals(i)||s.push(i)}function fc(i,s,u,c){var f=s["spans_"+i.id],O=0;i.iter(Math.max(i.first,u),Math.min(i.first+i.size,c),(function(F){F.markedSpans&&((f||(f=s["spans_"+i.id]={}))[O]=F.markedSpans),++O}))}function pd(i){if(!i)return null;for(var s,u=0;u-1&&(ue(V)[Et]=it[Et],delete it[Et])}}}return c}function hc(i,s,u,c){if(c){var f=i.anchor;if(u){var O=Ve(s,f)<0;O!=Ve(u,f)<0?(f=s,s=u):O!=Ve(s,u)<0&&(s=u)}return new bn(f,s)}return new bn(u||s,s)}function pl(i,s,u,c,f){f==null&&(f=i.cm&&(i.cm.display.shift||i.extend)),Ar(i,new fo([hc(i.sel.primary(),s,u,f)],0),c)}function vu(i,s,u){for(var c=[],f=i.cm&&(i.cm.display.shift||i.extend),O=0;O=s.ch:V.to>s.ch))){if(f&&(ft(et,"beforeCursorEnter"),et.explicitlyCleared)){if(O.markedSpans){--F;continue}break}if(!et.atomic)continue;if(u){var Et=et.find(c<0?1:-1),Ft=void 0;if((c<0?Ot:it)&&(Et=Cu(i,Et,-c,Et&&Et.line==s.line?O:null)),Et&&Et.line==s.line&&(Ft=Ve(Et,u))&&(c<0?Ft<0:Ft>0))return Pa(i,Et,s,c,f)}var Vt=et.find(c<0?-1:1);return(c<0?it:Ot)&&(Vt=Cu(i,Vt,c,Vt.line==s.line?O:null)),Vt?Pa(i,Vt,s,c,f):null}}return s}function fl(i,s,u,c,f){var O=c||1,F=Pa(i,s,u,O,f)||!f&&Pa(i,s,u,O,!0)||Pa(i,s,u,-O,f)||!f&&Pa(i,s,u,-O,!0);return F||(i.cantEdit=!0,le(i.first,0))}function Cu(i,s,u,c){return u<0&&s.ch==0?s.line>i.first?Ce(i,le(s.line-1)):null:u>0&&s.ch==(c||fe(i,s.line)).text.length?s.line=0;--f)Ou(i,{from:c[f].from,to:c[f].to,text:f?[""]:s.text,origin:s.origin});else Ou(i,s)}}function Ou(i,s){if(s.text.length!=1||s.text[0]!=""||Ve(s.from,s.to)!=0){var u=ol(i,s);Pi(i,s,u,i.cm?i.cm.curOp.id:NaN),hs(i,s,u,ao(i,s));var c=[];ki(i,(function(f,O){O||Qt(c,f.history)!=-1||(Au(f.history,s),c.push(f.history)),hs(f,s,null,ao(f,s))}))}}function hl(i,s,u){var c=i.cm&&i.cm.state.suppressEdits;if(!c||u){for(var f,O=i.history,F=i.sel,V=s=="undo"?O.done:O.undone,et=s=="undo"?O.undone:O.done,it=0;it=0;--Vt){var Yt=Ft(Vt);if(Yt)return Yt.v}}}}function Su(i,s){if(s!=0&&(i.first+=s,i.sel=new fo(ce(i.sel.ranges,(function(f){return new bn(le(f.anchor.line+s,f.anchor.ch),le(f.head.line+s,f.head.ch))})),i.sel.primIndex),i.cm)){$r(i.cm,i.first,i.first-s,s);for(var u=i.cm.display,c=u.viewFrom;ci.lastLine())){if(s.from.lineO&&(s={from:s.from,to:le(O,fe(i,O).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Le(i,s.from,s.to),u||(u=ol(i,s)),i.cm?fd(i.cm,s,c):il(i,s,c),dl(i,u,Bt),i.cantEdit&&fl(i,le(i.firstLine(),0))&&(i.cantEdit=!1)}}function fd(i,s,u){var c=i.doc,f=i.display,O=s.from,F=s.to,V=!1,et=O.line;i.options.lineWrapping||(et=rn(mr(fe(c,O.line))),c.iter(et,F.line+1,(function(Vt){if(Vt==f.maxLine)return V=!0,!0}))),c.sel.contains(s.from,s.to)>-1&&qt(i),il(c,s,u,ou(i)),i.options.lineWrapping||(c.iter(et,O.line+s.text.length,(function(Vt){var Yt=ii(Vt);Yt>f.maxLineLength&&(f.maxLine=Vt,f.maxLineLength=Yt,f.maxLineChanged=!0,V=!1)})),V&&(i.curOp.updateMaxLine=!0)),$o(c,O.line),fs(i,400);var it=s.text.length-(F.line-O.line)-1;s.full?$r(i):O.line!=F.line||s.text.length!=1||du(i.doc,s)?$r(i,O.line,F.line+1,it):si(i,O.line,"text");var Ot=ie(i,"changes"),Et=ie(i,"change");if(Et||Ot){var Ft={from:O,to:F,text:s.text,removed:s.removed,origin:s.origin};Et&&Xn(i,"change",i,Ft),Ot&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(Ft)}i.display.selForContextMenu=null}function Ma(i,s,u,c,f){var O;c||(c=u),Ve(c,u)<0&&(u=(O=[c,u])[0],c=O[1]),typeof s=="string"&&(s=i.splitLines(s)),Na(i,{from:u,to:c,text:s,origin:f})}function xu(i,s,u,c){u1||!(this.children[0]instanceof vs))){var V=[];this.collapse(V),this.children=[new vs(V)],this.children[0].parent=this}},collapse:function(i){for(var s=0;s50){for(var F=f.lines.length%25+25,V=F;V10);i.parent.maybeSpill()}},iterN:function(i,s,u){for(var c=0;c0||F==0&&O.clearWhenEmpty!==!1)return O;if(O.replacedWith&&(O.collapsed=!0,O.widgetNode=mt("span",[O.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||O.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(O.widgetNode.insertLeft=!0)),O.collapsed){if(Ti(i,s.line,s,u,O)||s.line!=u.line&&Ti(i,u.line,s,u,O))throw new Error("Inserting collapsed marker partially overlapping an existing one");fa()}O.addToHistory&&Pi(i,{from:s,to:u,origin:"markText"},i.sel,NaN);var V,et=s.line,it=i.cm;if(i.iter(et,u.line+1,(function(Et){it&&O.collapsed&&!it.options.lineWrapping&&mr(Et)==it.display.maxLine&&(V=!0),O.collapsed&&et!=s.line&&tn(Et,0),Is(Et,new Wi(O,et==s.line?s.ch:null,et==u.line?u.ch:null),i.cm&&i.cm.curOp),++et})),O.collapsed&&i.iter(s.line,u.line+1,(function(Et){bo(i,Et)&&tn(Et,0)})),O.clearOnEnter&&ve(O,"beforeCursorEnter",(function(){return O.clear()})),O.readOnly&&(da(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),O.collapsed&&(O.id=++Pu,O.atomic=!0),it){if(V&&(it.curOp.updateMaxLine=!0),O.collapsed)$r(it,s.line,u.line+1);else if(O.className||O.startStyle||O.endStyle||O.css||O.attributes||O.title)for(var Ot=s.line;Ot<=u.line;Ot++)si(it,Ot,"text");O.atomic&&_u(it.doc),Xn(it,"markerAdded",it,O)}return O}Ni.prototype.clear=function(){if(!this.explicitlyCleared){var i=this.doc.cm,s=i&&!i.curOp;if(s&&Qo(i),ie(this,"clear")){var u=this.find();u&&Xn(this,"clear",u.from,u.to)}for(var c=null,f=null,O=0;Oi.display.maxLineLength&&(i.display.maxLine=it,i.display.maxLineLength=Ot,i.display.maxLineChanged=!0)}c!=null&&i&&this.collapsed&&$r(i,c,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&_u(i.doc)),i&&Xn(i,"markerCleared",i,this,c,f),s&&ra(i),this.parent&&this.parent.clear()}},Ni.prototype.find=function(i,s){var u,c;i==null&&this.type=="bookmark"&&(i=1);for(var f=0;f=0;et--)Na(this,c[et]);V?mc(this,V):this.cm&&ea(this.cm)})),undo:nr((function(){hl(this,"undo")})),redo:nr((function(){hl(this,"redo")})),undoSelection:nr((function(){hl(this,"undo",!0)})),redoSelection:nr((function(){hl(this,"redo",!0)})),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,s=0,u=0,c=0;c=i.ch)&&s.push(f.marker.parent||f.marker)}return s},findMarks:function(i,s,u){i=Ce(this,i),s=Ce(this,s);var c=[],f=i.line;return this.iter(i.line,s.line+1,(function(O){var F=O.markedSpans;if(F)for(var V=0;V=et.to||et.from==null&&f!=i.line||et.from!=null&&f==s.line&&et.from>=s.ch||u&&!u(et.marker)||c.push(et.marker.parent||et.marker)}++f})),c},getAllMarks:function(){var i=[];return this.iter((function(s){var u=s.markedSpans;if(u)for(var c=0;ci)return s=i,!0;i-=O,++u})),Ce(this,le(u,s))},indexFromPos:function(i){var s=(i=Ce(this,i)).ch;if(i.lines&&(s=i.from),i.to!=null&&i.to-1)return s.state.draggingText(i),void setTimeout((function(){return s.display.input.focus()}),20);try{var Ot=i.dataTransfer.getData("Text");if(Ot){var Et;if(s.state.draggingText&&!s.state.draggingText.copy&&(Et=s.listSelections()),dl(s.doc,xi(u,u)),Et)for(var Ft=0;Ft=0;V--)Ma(i.doc,"",c[V].from,c[V].to,"+delete");ea(i)}))}function bs(i,s,u){var c=Mt(i.text,s+u,u);return c<0||c>i.text.length?null:c}function Li(i,s,u){var c=bs(i,s.ch,u);return c==null?null:new le(s.line,c,u<0?"after":"before")}function _c(i,s,u,c,f){if(i){s.doc.direction=="rtl"&&(f=-f);var O=ke(u,s.doc.direction);if(O){var F,V=f<0?ue(O):O[0],et=f<0==(V.level==1)?"after":"before";if(V.level>0||s.doc.direction=="rtl"){var it=br(s,u);F=f<0?u.text.length-1:0;var Ot=xr(s,it,F).top;F=Gt((function(Et){return xr(s,it,Et).top==Ot}),f<0==(V.level==1)?V.from:V.to-1,F),et=="before"&&(F=bs(u,F,1))}else F=f<0?V.to:V.from;return new le(c,F,et)}}return new le(c,f<0?u.text.length:0,f<0?"before":"after")}function Fr(i,s,u,c){var f=ke(s,i.doc.direction);if(!f)return Li(s,u,c);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var O=Se(f,u.ch,u.sticky),F=f[O];if(i.doc.direction=="ltr"&&F.level%2==0&&(c>0?F.to>u.ch:F.from=F.from&&Ft>=Ot.begin)){var Vt=Et?"before":"after";return new le(u.line,Ft,Vt)}}var Yt=function(Oe,Ne,Te){for(var Ie=function(Rn,vr){return vr?new le(u.line,et(Rn,1),"before"):new le(u.line,Rn,"after")};Oe>=0&&Oe0==(De.level!=1),Hn=Fe?Te.begin:et(Te.end,-1);if(De.from<=Hn&&Hn0?Ot.end:et(Ot.begin,-1);return he==null||c>0&&he==s.text.length||!(pe=Yt(c>0?0:f.length-1,c,it(he)))?null:pe}ui.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ui.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ui.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ui.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ui.default=M?ui.macDefault:ui.pcDefault;var _s={selectAll:wu,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),Bt)},killLine:function(i){return Ra(i,(function(s){if(s.empty()){var u=fe(i.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line0)f=new le(f.line,f.ch+1),i.replaceRange(O.charAt(f.ch-1)+O.charAt(f.ch-2),le(f.line,f.ch-2),f,"+transpose");else if(f.line>i.doc.first){var F=fe(i.doc,f.line-1).text;F&&(f=new le(f.line,1),i.replaceRange(O.charAt(0)+i.doc.lineSeparator()+F.charAt(F.length-1),le(f.line-1,F.length-1),f,"+transpose"))}}u.push(new bn(f,f))}i.setSelections(u)}))},newlineAndIndent:function(i){return Rr(i,(function(){for(var s=i.listSelections(),u=s.length-1;u>=0;u--)i.replaceRange(i.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=i.listSelections();for(var c=0;c-1&&(Ve((f=F.ranges[f]).from(),s)<0||s.xRel>0)&&(Ve(f.to(),s)>0||s.xRel<0)?Wu(i,c,s,O):qu(i,c,s,O)}function Wu(i,s,u,c){var f=i.display,O=!1,F=ur(i,(function(it){m&&(f.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:oc(i)),pt(f.wrapper.ownerDocument,"mouseup",F),pt(f.wrapper.ownerDocument,"mousemove",V),pt(f.scroller,"dragstart",et),pt(f.scroller,"drop",F),O||(ze(it),c.addNew||pl(i.doc,u,null,null,c.extend),m&&!x||v&&_==9?setTimeout((function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()}),20):f.input.focus())})),V=function(it){O=O||Math.abs(s.clientX-it.clientX)+Math.abs(s.clientY-it.clientY)>=10},et=function(){return O=!0};m&&(f.scroller.draggable=!0),i.state.draggingText=F,F.copy=!c.moveOnDrag,ve(f.wrapper.ownerDocument,"mouseup",F),ve(f.wrapper.ownerDocument,"mousemove",V),ve(f.scroller,"dragstart",et),ve(f.scroller,"drop",F),i.state.delayingBlurEvent=!0,setTimeout((function(){return f.input.focus()}),20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Gu(i,s,u){if(u=="char")return new bn(s,s);if(u=="word")return i.findWordAt(s);if(u=="line")return new bn(le(s.line,0),Ce(i.doc,le(s.line+1,0)));var c=u(i,s);return new bn(c.from,c.to)}function qu(i,s,u,c){v&&oc(i);var f=i.display,O=i.doc;ze(s);var F,V,et=O.sel,it=et.ranges;if(c.addNew&&!c.extend?(V=O.sel.contains(u),F=V>-1?it[V]:new bn(u,u)):(F=O.sel.primary(),V=O.sel.primIndex),c.unit=="rectangle")c.addNew||(F=new bn(u,u)),u=Ji(i,s,!0,!0),V=-1;else{var Ot=Gu(i,u,c.unit);F=c.extend?hc(F,Ot.anchor,Ot.head,c.extend):Ot}c.addNew?V==-1?(V=it.length,Ar(O,Bo(i,it.concat([F]),V),{scroll:!1,origin:"*mouse"})):it.length>1&&it[V].empty()&&c.unit=="char"&&!c.extend?(Ar(O,Bo(i,it.slice(0,V).concat(it.slice(V+1)),0),{scroll:!1,origin:"*mouse"}),et=O.sel):gc(O,V,F,te):(V=0,Ar(O,new fo([F],0),te),et=O.sel);var Et=u;function Ft(Te){if(Ve(Et,Te)!=0)if(Et=Te,c.unit=="rectangle"){for(var Ie=[],De=i.options.tabSize,Fe=Xt(fe(O,u.line).text,u.ch,De),Hn=Xt(fe(O,Te.line).text,Te.ch,De),Rn=Math.min(Fe,Hn),vr=Math.max(Fe,Hn),zn=Math.min(u.line,Te.line),eo=Math.min(i.lastLine(),Math.max(u.line,Te.line));zn<=eo;zn++){var no=fe(O,zn).text,Qn=Ht(no,Rn,De);Rn==vr?Ie.push(new bn(le(zn,Qn),le(zn,Qn))):no.length>Qn&&Ie.push(new bn(le(zn,Qn),le(zn,Ht(no,vr,De))))}Ie.length||Ie.push(new bn(u,u)),Ar(O,Bo(i,et.ranges.slice(0,V).concat(Ie),V),{origin:"*mouse",scroll:!1}),i.scrollIntoView(Te)}else{var Vr,Br=F,rr=Gu(i,Te,c.unit),$n=Br.anchor;Ve(rr.anchor,$n)>0?(Vr=rr.head,$n=Ee(Br.from(),rr.anchor)):(Vr=rr.anchor,$n=Jt(Br.to(),rr.head));var or=et.ranges.slice(0);or[V]=Cl(i,new bn(Ce(O,$n),Vr)),Ar(O,Bo(i,or,V),te)}}var Vt=f.wrapper.getBoundingClientRect(),Yt=0;function pe(Te){var Ie=++Yt,De=Ji(i,Te,!0,c.unit=="rectangle");if(De)if(Ve(De,Et)!=0){i.curOp.focus=kt(),Ft(De);var Fe=$s(f,O);(De.line>=Fe.to||De.lineVt.bottom?20:0;Hn&&setTimeout(ur(i,(function(){Yt==Ie&&(f.scroller.scrollTop+=Hn,pe(Te))})),50)}}function he(Te){i.state.selectingText=!1,Yt=1/0,Te&&(ze(Te),f.input.focus()),pt(f.wrapper.ownerDocument,"mousemove",Oe),pt(f.wrapper.ownerDocument,"mouseup",Ne),O.history.lastSelOrigin=null}var Oe=ur(i,(function(Te){Te.buttons!==0&&wn(Te)?pe(Te):he(Te)})),Ne=ur(i,he);i.state.selectingText=Ne,ve(f.wrapper.ownerDocument,"mousemove",Oe),ve(f.wrapper.ownerDocument,"mouseup",Ne)}function Cl(i,s){var u=s.anchor,c=s.head,f=fe(i.doc,u.line);if(Ve(u,c)==0&&u.sticky==c.sticky)return s;var O=ke(f);if(!O)return s;var F=Se(O,u.ch,u.sticky),V=O[F];if(V.from!=u.ch&&V.to!=u.ch)return s;var et,it=F+(V.from==u.ch==(V.level!=1)?0:1);if(it==0||it==O.length)return s;if(c.line!=u.line)et=(c.line-u.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var Ot=Se(O,c.ch,c.sticky),Et=Ot-F||(c.ch-u.ch)*(V.level==1?-1:1);et=Ot==it-1||Ot==it?Et<0:Et>0}var Ft=O[it+(et?-1:0)],Vt=et==(Ft.level==1),Yt=Vt?Ft.from:Ft.to,pe=Vt?"after":"before";return u.ch==Yt&&u.sticky==pe?s:new bn(new le(u.line,Yt,pe),c)}function Va(i,s,u,c){var f,O;if(s.touches)f=s.touches[0].clientX,O=s.touches[0].clientY;else try{f=s.clientX,O=s.clientY}catch{return!1}if(f>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;c&&ze(s);var F=i.display,V=F.lineDiv.getBoundingClientRect();if(O>V.bottom||!ie(i,u))return kn(s);O-=V.top-F.viewOffset;for(var et=0;et=f)return ft(i,u,i,In(i.doc,O),i.display.gutterSpecs[et].className,s),kn(s)}}function Cc(i,s){return Va(i,s,"gutterClick",!0)}function aa(i,s){Y(i.display,s)||Pd(i,s)||Dt(i,s,"contextmenu")||st||i.display.input.onContextMenu(s)}function Pd(i,s){return!!ie(i,"gutterContextMenu")&&Va(i,s,"gutterContextMenu",!1)}function Ku(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),os(i)}di.prototype.compare=function(i,s,u){return this.time+Od>i&&Ve(s,this.pos)==0&&u==this.button};var Ba={toString:function(){return"CodeMirror.Init"}},$u={},wl={};function Yu(i){var s=i.optionHandlers;function u(c,f,O,F){i.defaults[c]=f,O&&(s[c]=F?function(V,et,it){it!=Ba&&O(V,et,it)}:O)}i.defineOption=u,i.Init=Ba,u("value","",(function(c,f){return c.setValue(f)}),!0),u("mode",null,(function(c,f){c.doc.modeOption=f,pc(c)}),!0),u("indentUnit",2,pc,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,(function(c){Dn(c),os(c),$r(c)}),!0),u("lineSeparator",null,(function(c,f){if(c.doc.lineSep=f,f){var O=[],F=c.doc.first;c.doc.iter((function(et){for(var it=0;;){var Ot=et.text.indexOf(f,it);if(Ot==-1)break;it=Ot+f.length,O.push(le(F,Ot))}F++}));for(var V=O.length-1;V>=0;V--)Ma(c.doc,f,O[V],le(O[V].line,O[V].ch+f.length))}})),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(c,f,O){c.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),O!=Ba&&c.refresh()})),u("specialCharPlaceholder",es,(function(c){return c.refresh()}),!0),u("electricChars",!0),u("inputStyle",D?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),u("spellcheck",!1,(function(c,f){return c.getInputField().spellcheck=f}),!0),u("autocorrect",!1,(function(c,f){return c.getInputField().autocorrect=f}),!0),u("autocapitalize",!1,(function(c,f){return c.getInputField().autocapitalize=f}),!0),u("rtlMoveVisually",!rt),u("wholeLineUpdateBefore",!0),u("theme","default",(function(c){Ku(c),Jo(c)}),!0),u("keyMap","default",(function(c,f,O){var F=ia(f),V=O!=Ba&&ia(O);V&&V.detach&&V.detach(c,F),F.attach&&F.attach(c,V||null)})),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Nd,!0),u("gutters",[],(function(c,f){c.display.gutterSpecs=xa(f,c.options.lineNumbers),Jo(c)}),!0),u("fixedGutter",!0,(function(c,f){c.display.gutters.style.left=f?ec(c.display)+"px":"0",c.refresh()}),!0),u("coverGutterNextToScrollbar",!1,(function(c){return Ea(c)}),!0),u("scrollbarStyle","native",(function(c){sc(c),Ea(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)}),!0),u("lineNumbers",!1,(function(c,f){c.display.gutterSpecs=xa(c.options.gutters,f),Jo(c)}),!0),u("firstLineNumber",1,Jo,!0),u("lineNumberFormatter",(function(c){return c}),Jo,!0),u("showCursorWhenSelecting",!1,is,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,(function(c,f){f=="nocursor"&&(Ca(c),c.display.input.blur()),c.display.input.readOnlyChanged(f)})),u("screenReaderLabel",null,(function(c,f){f=f===""?null:f,c.display.input.screenReaderLabelChanged(f)})),u("disableInput",!1,(function(c,f){f||c.display.input.reset()}),!0),u("dragDrop",!0,Xu),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,is,!0),u("singleCursorHeightPerLine",!0,is,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Dn,!0),u("addModeClass",!1,Dn,!0),u("pollInterval",100),u("undoDepth",200,(function(c,f){return c.doc.history.undoDepth=f})),u("historyEventDelay",1250),u("viewportMargin",10,(function(c){return c.refresh()}),!0),u("maxHighlightLength",1e4,Dn,!0),u("moveInputWithCursor",!0,(function(c,f){f||c.display.input.resetPosition()})),u("tabindex",null,(function(c,f){return c.display.input.getField().tabIndex=f||""})),u("autofocus",null),u("direction","ltr",(function(c,f){return c.doc.setDirection(f)}),!0),u("phrases",null)}function Xu(i,s,u){if(!s!=!(u&&u!=Ba)){var c=i.display.dragFunctions,f=s?ve:pt;f(i.display.scroller,"dragstart",c.start),f(i.display.scroller,"dragenter",c.enter),f(i.display.scroller,"dragover",c.over),f(i.display.scroller,"dragleave",c.leave),f(i.display.scroller,"drop",c.drop)}}function Nd(i){i.options.lineWrapping?(vt(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(Q(i.display.wrapper,"CodeMirror-wrap"),qi(i)),nc(i),$r(i),os(i),setTimeout((function(){return Ea(i)}),100)}function Bn(i,s){var u=this;if(!(this instanceof Bn))return new Bn(i,s);this.options=s=s?Nt(s):{},Nt($u,s,!1);var c=s.value;typeof c=="string"?c=new Yr(c,s.mode,null,s.lineSeparator,s.direction):s.mode&&(c.modeOption=s.mode),this.doc=c;var f=new Bn.inputStyles[s.inputStyle](this),O=this.display=new Aa(i,c,f,s);for(var F in O.wrapper.CodeMirror=this,Ku(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),sc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new zt,keySeq:null,specialChars:null},s.autofocus&&!D&&O.input.focus(),v&&_<11&&setTimeout((function(){return u.display.input.reset(!0)}),20),Md(this),Xr(),Qo(this),this.curOp.forceUpdate=!0,fu(this,c),s.autofocus&&!D||this.hasFocus()?setTimeout((function(){u.hasFocus()&&!u.state.focused&&ss(u)}),20):Ca(this),wl)wl.hasOwnProperty(F)&&wl[F](this,s[F],Ba);lu(this),s.finishInit&&s.finishInit(this);for(var V=0;V400}ve(s.scroller,"touchstart",(function(et){if(!Dt(i,et)&&!O(et)&&!Cc(i,et)){s.input.ensurePolled(),clearTimeout(u);var it=+new Date;s.activeTouch={start:it,moved:!1,prev:it-c.end<=300?c:null},et.touches.length==1&&(s.activeTouch.left=et.touches[0].pageX,s.activeTouch.top=et.touches[0].pageY)}})),ve(s.scroller,"touchmove",(function(){s.activeTouch&&(s.activeTouch.moved=!0)})),ve(s.scroller,"touchend",(function(et){var it=s.activeTouch;if(it&&!Y(s,et)&&it.left!=null&&!it.moved&&new Date-it.start<300){var Ot,Et=i.coordsChar(s.activeTouch,"page");Ot=!it.prev||F(it,it.prev)?new bn(Et,Et):!it.prev.prev||F(it,it.prev.prev)?i.findWordAt(Et):new bn(le(Et.line,0),Ce(i.doc,le(Et.line+1,0))),i.setSelection(Ot.anchor,Ot.head),i.focus(),ze(et)}f()})),ve(s.scroller,"touchcancel",f),ve(s.scroller,"scroll",(function(){s.scroller.clientHeight&&(us(i,s.scroller.scrollTop),na(i,s.scroller.scrollLeft,!0),ft(i,"scroll",i))})),ve(s.scroller,"mousewheel",(function(et){return cu(i,et)})),ve(s.scroller,"DOMMouseScroll",(function(et){return cu(i,et)})),ve(s.wrapper,"scroll",(function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0})),s.dragFunctions={enter:function(et){Dt(i,et)||qn(et)},over:function(et){Dt(i,et)||(vl(i,et),qn(et))},start:function(et){return vd(i,et)},drop:ur(i,Mu),leave:function(et){Dt(i,et)||Lu(i)}};var V=s.input.getField();ve(V,"keyup",(function(et){return Tl.call(i,et)})),ve(V,"keydown",ur(i,_l)),ve(V,"keypress",ur(i,Uu)),ve(V,"focus",(function(et){return ss(i,et)})),ve(V,"blur",(function(et){return Ca(i,et)}))}Bn.defaults=$u,Bn.optionHandlers=wl;var El=[];function ws(i,s,u,c){var f,O=i.doc;u==null&&(u="add"),u=="smart"&&(O.mode.indent?f=Dr(i,s).state:u="prev");var F=i.options.tabSize,V=fe(O,s),et=Xt(V.text,null,F);V.stateAfter&&(V.stateAfter=null);var it,Ot=V.text.match(/^\s*/)[0];if(c||/\S/.test(V.text)){if(u=="smart"&&((it=O.mode.indent(f,V.text.slice(Ot.length),V.text))==ut||it>150)){if(!c)return;u="prev"}}else it=0,u="not";u=="prev"?it=s>O.first?Xt(fe(O,s-1).text,null,F):0:u=="add"?it=et+i.options.indentUnit:u=="subtract"?it=et-i.options.indentUnit:typeof u=="number"&&(it=et+u),it=Math.max(0,it);var Et="",Ft=0;if(i.options.indentWithTabs)for(var Vt=Math.floor(it/F);Vt;--Vt)Ft+=F,Et+=" ";if(FtF,et=Wn(s),it=null;if(V&&c.ranges.length>1)if(_r&&_r.text.join(` `)==s){if(c.ranges.length%_r.text.length==0){it=[];for(var Ot=0;Ot<_r.text.length;Ot++)it.push(O.splitLines(_r.text[Ot]))}}else et.length==c.ranges.length&&i.options.pasteLinesPerSelection&&(it=ce(et,(function(Oe){return[Oe]})));for(var Et=i.curOp.updateInput,Ft=c.ranges.length-1;Ft>=0;Ft--){var Vt=c.ranges[Ft],Yt=Vt.from(),pe=Vt.to();Vt.empty()&&(u&&u>0?Yt=le(Yt.line,Yt.ch-u):i.state.overwrite&&!V?pe=le(pe.line,Math.min(fe(O,pe.line).text.length,pe.ch+ue(et).length)):V&&_r&&_r.lineWise&&_r.text.join(` `)==et.join(` `)&&(Yt=pe=le(Yt.line,0)));var he={from:Yt,to:pe,text:it?it[Ft%it.length]:et,origin:f||(V?"paste":i.state.cutIncoming>F?"cut":"+input")};Na(i.doc,he),Xn(i,"inputRead",i,he)}s&&!V&&Qu(i,s),ea(i),i.curOp.updateInput<2&&(i.curOp.updateInput=Et),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function Zu(i,s){var u=i.clipboardData&&i.clipboardData.getData("Text");if(u)return i.preventDefault(),s.isReadOnly()||s.options.disableInput||Rr(s,(function(){return wc(s,u,0,null,"paste")})),!0}function Qu(i,s){if(i.options.electricChars&&i.options.smartIndent)for(var u=i.doc.sel,c=u.ranges.length-1;c>=0;c--){var f=u.ranges[c];if(!(f.head.ch>100||c&&u.ranges[c-1].head.line==f.head.line)){var O=i.getModeAt(f.head),F=!1;if(O.electricChars){for(var V=0;V-1){F=ws(i,f.head.line,"smart");break}}else O.electricInput&&O.electricInput.test(fe(i.doc,f.head.line).text.slice(0,f.head.ch))&&(F=ws(i,f.head.line,"smart"));F&&Xn(i,"electricInput",i,f.head.line)}}}function Ec(i){for(var s=[],u=[],c=0;cO&&(ws(this,V.head.line,c,!0),O=V.head.line,F==this.doc.sel.primIndex&&ea(this));else{var et=V.from(),it=V.to(),Ot=Math.max(O,et.line);O=Math.min(this.lastLine(),it.line-(it.ch?0:1))+1;for(var Et=Ot;Et0&&gc(this.doc,F,new bn(et,Ft[F].to()),Bt)}}})),getTokenAt:function(c,f){return Io(this,c,f)},getLineTokens:function(c,f){return Io(this,le(c),f,!0)},getTokenTypeAt:function(c){c=Ce(this.doc,c);var f,O=ri(this,fe(this.doc,c.line)),F=0,V=(O.length-1)/2,et=c.ch;if(et==0)f=O[2];else for(;;){var it=F+V>>1;if((it?O[2*it-1]:0)>=et)V=it;else{if(!(O[2*it+1]et&&(c=et,V=!0),F=fe(this.doc,c)}else F=c;return Us(this,F,{top:0,left:0},f||"page",O||V).top+(V?this.doc.height-_o(F):0)},defaultTextHeight:function(){return ba(this.display)},defaultCharWidth:function(){return Co(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,f,O,F,V){var et=this.display,it=(c=jr(this,Ce(this.doc,c))).bottom,Ot=c.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),et.sizer.appendChild(f),F=="over")it=c.top;else if(F=="above"||F=="near"){var Et=Math.max(et.wrapper.clientHeight,this.doc.height),Ft=Math.max(et.sizer.clientWidth,et.lineSpace.clientWidth);(F=="above"||c.bottom+f.offsetHeight>Et)&&c.top>f.offsetHeight?it=c.top-f.offsetHeight:c.bottom+f.offsetHeight<=Et&&(it=c.bottom),Ot+f.offsetWidth>Ft&&(Ot=Ft-f.offsetWidth)}f.style.top=it+"px",f.style.left=f.style.right="",V=="right"?(Ot=et.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(V=="left"?Ot=0:V=="middle"&&(Ot=(et.sizer.clientWidth-f.offsetWidth)/2),f.style.left=Ot+"px"),O&&Qp(this,{left:Ot,top:it,right:Ot+f.offsetWidth,bottom:it+f.offsetHeight})},triggerOnKeyDown:Hr(_l),triggerOnKeyPress:Hr(Uu),triggerOnKeyUp:Tl,triggerOnMouseDown:Hr(zu),execCommand:function(c){if(_s.hasOwnProperty(c))return _s[c].call(null,this)},triggerElectric:Hr((function(c){Qu(this,c)})),findPosH:function(c,f,O,F){var V=1;f<0&&(V=-1,f=-f);for(var et=Ce(this.doc,c),it=0;it0&&it(f.charAt(O-1));)--O;for(;F.5||this.options.lineWrapping)&&nc(this),ft(this,"refresh",this)})),swapDoc:Hr((function(c){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),fu(this,c),os(this),this.display.input.reset(),ls(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,Xn(this,"swapDoc",this,f),f})),phrase:function(c){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,c)?f[c]:c},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},je(i),i.registerHelper=function(c,f,O){u.hasOwnProperty(c)||(u[c]=i[c]={_global:[]}),u[c][f]=O},i.registerGlobalHelper=function(c,f,O,F){i.registerHelper(c,f,F),u[c]._global.push({pred:O,val:F})}}function xl(i,s,u,c,f){var O=s,F=u,V=fe(i,s.line),et=f&&i.direction=="rtl"?-u:u;function it(){var Ne=s.line+et;return!(Ne=i.first+i.size)&&(s=new le(Ne,s.ch,s.sticky),V=fe(i,Ne))}function Ot(Ne){var Te;if(c=="codepoint"){var Ie=V.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(Ie))Te=null;else{var De=u>0?Ie>=55296&&Ie<56320:Ie>=56320&&Ie<57343;Te=new le(s.line,Math.max(0,Math.min(V.text.length,s.ch+u*(De?2:1))),-u)}}else Te=f?Fr(i.cm,V,s,u):Li(V,s,u);if(Te==null){if(Ne||!it())return!1;s=_c(f,i.cm,V,s.line,et)}else s=Te;return!0}if(c=="char"||c=="codepoint")Ot();else if(c=="column")Ot(!0);else if(c=="word"||c=="group")for(var Et=null,Ft=c=="group",Vt=i.cm&&i.cm.getHelper(s,"wordChars"),Yt=!0;!(u<0)||Ot(!Yt);Yt=!1){var pe=V.text.charAt(s.ch)||` `,he=It(pe,Vt)?"w":Ft&&pe==` `?"n":!Ft||/\s/.test(pe)?null:"p";if(!Ft||Yt||he||(he="s"),Et&&Et!=he){u<0&&(u=1,Ot(),s.sticky="after");break}if(he&&(Et=he),u>0&&!Ot(!Yt))break}var Oe=fl(i,s,O,F,!0);return lt(O,Oe)&&(Oe.hitSide=!0),Oe}function tp(i,s,u,c){var f,O,F=i.doc,V=s.left;if(c=="page"){var et=Math.min(i.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),it=Math.max(et-.5*ba(i.display),3);f=(u>0?s.bottom:s.top)+u*it}else c=="line"&&(f=u>0?s.bottom+3:s.top-3);for(;(O=Ql(i,V,f)).outside;){if(u<0?f<=0:f>=F.height){O.hitSide=!0;break}f+=5*u}return O}var jn=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new zt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Oc(i,s){var u=Sr(i,s.line);if(!u||u.hidden)return null;var c=fe(i.doc,s.line),f=$e(u,c,s.line),O=ke(c,i.doc.direction),F="left";O&&(F=Se(O,s.ch)%2?"right":"left");var V=Xc(f.map,s.ch,F);return V.offset=V.collapse=="right"?V.end:V.start,V}function Id(i){for(var s=i;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function ni(i,s){return s&&(i.bad=!0),i}function Dd(i,s,u,c,f){var O="",F=!1,V=i.doc.lineSeparator(),et=!1;function it(Vt){return function(Yt){return Yt.id==Vt}}function Ot(){F&&(O+=V,et&&(O+=V),F=et=!1)}function Et(Vt){Vt&&(Ot(),O+=Vt)}function Ft(Vt){if(Vt.nodeType==1){var Yt=Vt.getAttribute("cm-text");if(Yt)return void Et(Yt);var pe,he=Vt.getAttribute("cm-marker");if(he){var Oe=i.findMarks(le(c,0),le(f+1,0),it(+he));return void(Oe.length&&(pe=Oe[0].find(0))&&Et(Le(i.doc,pe.from,pe.to).join(V)))}if(Vt.getAttribute("contenteditable")=="false")return;var Ne=/^(pre|div|p|li|table|br)$/i.test(Vt.nodeName);if(!/^br$/i.test(Vt.nodeName)&&Vt.textContent.length==0)return;Ne&&Ot();for(var Te=0;Te=s.display.viewTo||f.line=s.display.viewFrom&&Oc(s,c)||{node:V[0].measure.map[2],offset:0},it=f.linec.firstLine()&&(F=le(F.line-1,fe(c.doc,F.line-1).length)),V.ch==fe(c.doc,V.line).text.length&&V.linef.viewTo-1)return!1;F.line==f.viewFrom||(i=Zo(c,F.line))==0?(s=rn(f.view[0].line),u=f.view[0].node):(s=rn(f.view[i].line),u=f.view[i-1].node.nextSibling);var et,it,Ot=Zo(c,V.line);if(Ot==f.view.length-1?(et=f.viewTo-1,it=f.lineDiv.lastChild):(et=rn(f.view[Ot+1].line)-1,it=f.view[Ot+1].node.previousSibling),!u)return!1;for(var Et=c.doc.splitLines(Dd(c,u,it,s,et)),Ft=Le(c.doc,le(s,0),le(et,fe(c.doc,et).text.length));Et.length>1&&Ft.length>1;)if(ue(Et)==ue(Ft))Et.pop(),Ft.pop(),et--;else{if(Et[0]!=Ft[0])break;Et.shift(),Ft.shift(),s++}for(var Vt=0,Yt=0,pe=Et[0],he=Ft[0],Oe=Math.min(pe.length,he.length);VtF.ch&&Ne.charCodeAt(Ne.length-Yt-1)==Te.charCodeAt(Te.length-Yt-1);)Vt--,Yt++;Et[Et.length-1]=Ne.slice(0,Ne.length-Yt).replace(/^\u200b+/,""),Et[0]=Et[0].slice(Vt).replace(/\u200b+$/,"");var De=le(s,Vt),Fe=le(et,Ft.length?ue(Ft).length-Yt:0);return Et.length>1||Et[0]||Ve(De,Fe)?(Ma(c.doc,Et,De,Fe,"+input"),!0):void 0},jn.prototype.ensurePolled=function(){this.forceCompositionEnd()},jn.prototype.reset=function(){this.forceCompositionEnd()},jn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},jn.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout((function(){if(i.readDOMTimeout=null,i.composing){if(!i.composing.done)return;i.composing=null}i.updateFromDOM()}),80))},jn.prototype.updateFromDOM=function(){var i=this;!this.cm.isReadOnly()&&this.pollContent()||Rr(this.cm,(function(){return $r(i.cm)}))},jn.prototype.setUneditable=function(i){i.contentEditable="false"},jn.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||ur(this.cm,wc)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},jn.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},jn.prototype.onContextMenu=function(){},jn.prototype.resetPosition=function(){},jn.prototype.needsContentAttribute=!0;var Zn=function(i){this.cm=i,this.prevInput="",this.pollingFast=!1,this.polling=new zt,this.hasSelection=!1,this.composing=null};function np(i,s){if((s=s?Nt(s):{}).value=i.value,!s.tabindex&&i.tabIndex&&(s.tabindex=i.tabIndex),!s.placeholder&&i.placeholder&&(s.placeholder=i.placeholder),s.autofocus==null){var u=kt();s.autofocus=u==i||i.getAttribute("autofocus")!=null&&u==document.body}function c(){i.value=V.getValue()}var f;if(i.form&&(ve(i.form,"submit",c),!s.leaveSubmitMethodAlone)){var O=i.form;f=O.submit;try{var F=O.submit=function(){c(),O.submit=f,O.submit(),O.submit=F}}catch{}}s.finishInit=function(et){et.save=c,et.getTextArea=function(){return i},et.toTextArea=function(){et.toTextArea=isNaN,c(),i.parentNode.removeChild(et.getWrapperElement()),i.style.display="",i.form&&(pt(i.form,"submit",c),s.leaveSubmitMethodAlone||typeof i.form.submit!="function"||(i.form.submit=f))}},i.style.display="none";var V=Bn((function(et){return i.parentNode.insertBefore(et,i.nextSibling)}),s);return V}function rp(i){i.off=pt,i.on=ve,i.wheelEventPixels=ld,i.Doc=Yr,i.splitLines=Wn,i.countColumn=Xt,i.findColumn=Ht,i.isWordChar=Pe,i.Pass=ut,i.signal=ft,i.Line=Or,i.changeEnd=Ai,i.scrollbarModel=Zs,i.Pos=le,i.cmpPos=Ve,i.modes=an,i.mimeModes=On,i.resolveMode=Ln,i.getMode=P,i.modeExtensions=q,i.extendMode=U,i.copyState=_t,i.startState=He,i.innerMode=Wt,i.commands=_s,i.keyMap=ui,i.keyName=Ru,i.isModifierKey=Du,i.lookupKey=pi,i.normalizeKeyMap=_d,i.StringStream=Ke,i.SharedTextMarker=ys,i.TextMarker=Ni,i.LineWidget=La,i.e_preventDefault=ze,i.e_stopPropagation=_n,i.e_stop=qn,i.addClass=vt,i.contains=X,i.rmClass=Q,i.keyNames=Mi}Zn.prototype.init=function(i){var s=this,u=this,c=this.cm;this.createField(i);var f=this.textarea;function O(F){if(!Dt(c,F)){if(c.somethingSelected())Ol({lineWise:!1,text:c.getSelections()});else{if(!c.options.lineWiseCopyCut)return;var V=Ec(c);Ol({lineWise:!0,text:V.text}),F.type=="cut"?c.setSelections(V.ranges,null,Bt):(u.prevInput="",f.value=V.text.join(` `),gt(f))}F.type=="cut"&&(c.state.cutIncoming=+new Date)}}i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),h&&(f.style.width="0px"),ve(f,"input",(function(){v&&_>=9&&s.hasSelection&&(s.hasSelection=null),u.poll()})),ve(f,"paste",(function(F){Dt(c,F)||Zu(F,c)||(c.state.pasteIncoming=+new Date,u.fastPoll())})),ve(f,"cut",O),ve(f,"copy",O),ve(i.scroller,"paste",(function(F){if(!Y(i,F)&&!Dt(c,F)){if(!f.dispatchEvent)return c.state.pasteIncoming=+new Date,void u.focus();var V=new Event("paste");V.clipboardData=F.clipboardData,f.dispatchEvent(V)}})),ve(i.lineSpace,"selectstart",(function(F){Y(i,F)||ze(F)})),ve(f,"compositionstart",(function(){var F=c.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:c.markText(F,c.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(f,"compositionend",(function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)}))},Zn.prototype.createField=function(i){this.wrapper=Ju(),this.textarea=this.wrapper.firstChild},Zn.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},Zn.prototype.prepareSelection=function(){var i=this.cm,s=i.display,u=i.doc,c=as(i);if(i.options.moveInputWithCursor){var f=jr(i,u.sel.primary().head,"div"),O=s.wrapper.getBoundingClientRect(),F=s.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,f.top+F.top-O.top)),c.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,f.left+F.left-O.left))}return c},Zn.prototype.showSelection=function(i){var s=this.cm.display;at(s.cursorDiv,i.cursors),at(s.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},Zn.prototype.reset=function(i){if(!this.contextMenuPending&&!this.composing){var s=this.cm;if(s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&>(this.textarea),v&&_>=9&&(this.hasSelection=u)}else i||(this.prevInput=this.textarea.value="",v&&_>=9&&(this.hasSelection=null))}},Zn.prototype.getField=function(){return this.textarea},Zn.prototype.supportsTouch=function(){return!1},Zn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!D||kt()!=this.textarea))try{this.textarea.focus()}catch{}},Zn.prototype.blur=function(){this.textarea.blur()},Zn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zn.prototype.receivedFocus=function(){this.slowPoll()},Zn.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){i.poll(),i.cm.state.focused&&i.slowPoll()}))},Zn.prototype.fastPoll=function(){var i=!1,s=this;function u(){s.poll()||i?(s.pollingFast=!1,s.slowPoll()):(i=!0,s.polling.set(60,u))}s.pollingFast=!0,s.polling.set(20,u)},Zn.prototype.poll=function(){var i=this,s=this.cm,u=this.textarea,c=this.prevInput;if(this.contextMenuPending||!s.state.focused||Gr(u)&&!c&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var f=u.value;if(f==c&&!s.somethingSelected())return!1;if(v&&_>=9&&this.hasSelection===f||M&&/[\uf700-\uf7ff]/.test(f))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var O=f.charCodeAt(0);if(O!=8203||c||(c="\u200B"),O==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,V=Math.min(c.length,f.length);F1e3||f.indexOf(` `)>-1?u.value=i.prevInput="":i.prevInput=f,i.composing&&(i.composing.range.clear(),i.composing.range=s.markText(i.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Zn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zn.prototype.onKeyPress=function(){v&&_>=9&&(this.hasSelection=null),this.fastPoll()},Zn.prototype.onContextMenu=function(i){var s=this,u=s.cm,c=u.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var O=Ji(u,i),F=c.scroller.scrollTop;if(O&&!S){u.options.resetSelectionOnContextMenu&&u.doc.sel.contains(O)==-1&&ur(u,Ar)(u.doc,xi(O),Bt);var V,et=f.style.cssText,it=s.wrapper.style.cssText,Ot=s.wrapper.offsetParent.getBoundingClientRect();if(s.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(i.clientY-Ot.top-5)+"px; left: "+(i.clientX-Ot.left-5)+`px; z-index: 1000; background: `+(v?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,m&&(V=window.scrollY),c.input.focus(),m&&window.scrollTo(null,V),c.input.reset(),u.somethingSelected()||(f.value=s.prevInput=" "),s.contextMenuPending=Vt,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll),v&&_>=9&&Ft(),st){qn(i);var Et=function(){pt(window,"mouseup",Et),setTimeout(Vt,20)};ve(window,"mouseup",Et)}else setTimeout(Vt,50)}function Ft(){if(f.selectionStart!=null){var Yt=u.somethingSelected(),pe="\u200B"+(Yt?f.value:"");f.value="\u21DA",f.value=pe,s.prevInput=Yt?"":"\u200B",f.selectionStart=1,f.selectionEnd=pe.length,c.selForContextMenu=u.doc.sel}}function Vt(){if(s.contextMenuPending==Vt&&(s.contextMenuPending=!1,s.wrapper.style.cssText=it,f.style.cssText=et,v&&_<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=F),f.selectionStart!=null)){(!v||v&&_<9)&&Ft();var Yt=0,pe=function(){c.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&s.prevInput=="\u200B"?ur(u,wu)(u):Yt++<10?c.detectingSelectAll=setTimeout(pe,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(pe,200)}}},Zn.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},Zn.prototype.setUneditable=function(){},Zn.prototype.needsContentAttribute=!1,Yu(Bn),Ld(Bn);var op="iter insert remove copy getEditor constructor".split(" ");for(var kl in Yr.prototype)Yr.prototype.hasOwnProperty(kl)&&Qt(op,kl)<0&&(Bn.prototype[kl]=(function(i){return function(){return i.apply(this.doc,arguments)}})(Yr.prototype[kl]));return je(Yr),Bn.inputStyles={textarea:Zn,contenteditable:jn},Bn.defineMode=function(i){Bn.defaults.mode||i=="null"||(Bn.defaults.mode=i),Mn.apply(this,arguments)},Bn.defineMIME=Kn,Bn.defineMode("null",(function(){return{token:function(i){return i.skipToEnd()}}})),Bn.defineMIME("text/plain","null"),Bn.defineExtension=function(i,s){Bn.prototype[i]=s},Bn.defineDocExtension=function(i,s){Yr.prototype[i]=s},Bn.fromTextArea=np,rp(Bn),Bn.version="5.63.0",Bn})()},7389:(j,b,H)=>{(function(w){"use strict";function N(Z){for(var K={},Q=0;Q*\/]/.test(tt)?oe(null,"select-op"):tt=="."&&It.match(/^-?[_a-z][_a-z0-9-]*/i)?oe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(tt)?oe(null,tt):It.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(It.current())&&(G.tokenize=me),oe("variable callee","variable")):/[\w\\\-]/.test(tt)?(It.eatWhile(/[\w\\\-]/),oe("property","word")):oe(null,null):/[\d.]/.test(It.peek())?(It.eatWhile(/[\w.%]/),oe("number","unit")):It.match(/^-[\w\\\-]*/)?(It.eatWhile(/[\w\\\-]/),It.match(/^\s*:/,!1)?oe("variable-2","variable-definition"):oe("variable-2","variable")):It.match(/^\w+-/)?oe("meta","meta"):void 0}function ee(It){return function(G,tt){for(var bt,Mt=!1;(bt=G.next())!=null;){if(bt==It&&!Mt){It==")"&&G.backUp(1);break}Mt=!Mt&&bt=="\\"}return(bt==It||!Mt&&It!=")")&&(tt.tokenize=null),oe("string","string")}}function me(It,G){return It.next(),It.match(/^\s*[\"\')]/,!1)?G.tokenize=null:G.tokenize=ee(")"),oe(null,"(")}function ue(It,G,tt){this.type=It,this.indent=G,this.prev=tt}function ce(It,G,tt,bt){return It.context=new ue(tt,G.indentation()+(bt===!1?0:$),It.context),tt}function Ue(It){return It.context.prev&&(It.context=It.context.prev),It.context.type}function en(It,G,tt){return Pe[tt.context.type](It,G,tt)}function Ge(It,G,tt,bt){for(var Mt=bt||1;Mt>0;Mt--)tt.context=tt.context.prev;return en(It,G,tt)}function Ze(It){var G=It.current().toLowerCase();at=Qt.hasOwnProperty(G)?"atom":zt.hasOwnProperty(G)?"keyword":"variable"}var Pe={top:function(It,G,tt){if(It=="{")return ce(tt,G,"block");if(It=="}"&&tt.context.prev)return Ue(tt);if(Bt&&/@component/i.test(It))return ce(tt,G,"atComponentBlock");if(/^@(-moz-)?document$/i.test(It))return ce(tt,G,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(It))return ce(tt,G,"atBlock");if(/^@(font-face|counter-style)/i.test(It))return tt.stateArg=It,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(It))return"keyframes";if(It&&It.charAt(0)=="@")return ce(tt,G,"at");if(It=="hash")at="builtin";else if(It=="word")at="tag";else{if(It=="variable-definition")return"maybeprop";if(It=="interpolation")return ce(tt,G,"interpolation");if(It==":")return"pseudo";if(Rt&&It=="(")return ce(tt,G,"parens")}return tt.context.type},block:function(It,G,tt){if(It=="word"){var bt=G.current().toLowerCase();return gt.hasOwnProperty(bt)?(at="property","maybeprop"):wt.hasOwnProperty(bt)?(at=te?"string-2":"property","maybeprop"):Rt?(at=G.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(at+=" error","maybeprop")}return It=="meta"?"block":Rt||It!="hash"&&It!="qualifier"?Pe.top(It,G,tt):(at="error","block")},maybeprop:function(It,G,tt){return It==":"?ce(tt,G,"prop"):en(It,G,tt)},prop:function(It,G,tt){if(It==";")return Ue(tt);if(It=="{"&&Rt)return ce(tt,G,"propBlock");if(It=="}"||It=="{")return Ge(It,G,tt);if(It=="(")return ce(tt,G,"parens");if(It!="hash"||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(G.current())){if(It=="word")Ze(G);else if(It=="interpolation")return ce(tt,G,"interpolation")}else at+=" error";return"prop"},propBlock:function(It,G,tt){return It=="}"?Ue(tt):It=="word"?(at="property","maybeprop"):tt.context.type},parens:function(It,G,tt){return It=="{"||It=="}"?Ge(It,G,tt):It==")"?Ue(tt):It=="("?ce(tt,G,"parens"):It=="interpolation"?ce(tt,G,"interpolation"):(It=="word"&&Ze(G),"parens")},pseudo:function(It,G,tt){return It=="meta"?"pseudo":It=="word"?(at="variable-3",tt.context.type):en(It,G,tt)},documentTypes:function(It,G,tt){return It=="word"&&X.hasOwnProperty(G.current())?(at="tag",tt.context.type):Pe.atBlock(It,G,tt)},atBlock:function(It,G,tt){if(It=="(")return ce(tt,G,"atBlock_parens");if(It=="}"||It==";")return Ge(It,G,tt);if(It=="{")return Ue(tt)&&ce(tt,G,Rt?"block":"top");if(It=="interpolation")return ce(tt,G,"interpolation");if(It=="word"){var bt=G.current().toLowerCase();at=bt=="only"||bt=="not"||bt=="and"||bt=="or"?"keyword":kt.hasOwnProperty(bt)?"attribute":vt.hasOwnProperty(bt)?"property":Ct.hasOwnProperty(bt)?"keyword":gt.hasOwnProperty(bt)?"property":wt.hasOwnProperty(bt)?te?"string-2":"property":Qt.hasOwnProperty(bt)?"atom":zt.hasOwnProperty(bt)?"keyword":"error"}return tt.context.type},atComponentBlock:function(It,G,tt){return It=="}"?Ge(It,G,tt):It=="{"?Ue(tt)&&ce(tt,G,Rt?"block":"top",!1):(It=="word"&&(at="error"),tt.context.type)},atBlock_parens:function(It,G,tt){return It==")"?Ue(tt):It=="{"||It=="}"?Ge(It,G,tt,2):Pe.atBlock(It,G,tt)},restricted_atBlock_before:function(It,G,tt){return It=="{"?ce(tt,G,"restricted_atBlock"):It=="word"&&tt.stateArg=="@counter-style"?(at="variable","restricted_atBlock_before"):en(It,G,tt)},restricted_atBlock:function(It,G,tt){return It=="}"?(tt.stateArg=null,Ue(tt)):It=="word"?(at=tt.stateArg=="@font-face"&&!Nt.hasOwnProperty(G.current().toLowerCase())||tt.stateArg=="@counter-style"&&!Xt.hasOwnProperty(G.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(It,G,tt){return It=="word"?(at="variable","keyframes"):It=="{"?ce(tt,G,"top"):en(It,G,tt)},at:function(It,G,tt){return It==";"?Ue(tt):It=="{"||It=="}"?Ge(It,G,tt):(It=="word"?at="tag":It=="hash"&&(at="builtin"),"at")},interpolation:function(It,G,tt){return It=="}"?Ue(tt):It=="{"||It==";"?Ge(It,G,tt):(It=="word"?at="variable":It!="variable"&&It!="("&&It!=")"&&(at="error"),"interpolation")}};return{startState:function(It){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new ue(Q?"block":"top",It||0,null)}},token:function(It,G){if(!G.tokenize&&It.eatSpace())return null;var tt=(G.tokenize||Ht)(It,G);return tt&&typeof tt=="object"&&(z=tt[1],tt=tt[0]),at=tt,z!="comment"&&(G.state=Pe[G.state](z,It,G)),at},indent:function(It,G){var tt=It.context,bt=G&&G.charAt(0),Mt=tt.indent;return tt.type!="prop"||bt!="}"&&bt!=")"||(tt=tt.prev),tt.prev&&(bt!="}"||tt.type!="block"&&tt.type!="top"&&tt.type!="interpolation"&&tt.type!="restricted_atBlock"?(bt!=")"||tt.type!="parens"&&tt.type!="atBlock_parens")&&(bt!="{"||tt.type!="at"&&tt.type!="atBlock")||(Mt=Math.max(0,tt.indent-$)):Mt=(tt=tt.prev).indent),Mt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ut,fold:"brace"}}));var A=["domain","regexp","url","url-prefix"],E=N(A),v=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],_=N(v),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],T=N(m),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],S=N(g),x=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],k=N(x),R=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],h=N(R),I=N(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),D=N(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),M=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],B=N(M),rt=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ot=N(rt),dt=A.concat(v).concat(m).concat(g).concat(x).concat(R).concat(M).concat(rt);function st(Z,K){for(var Q,z=!1;(Q=Z.next())!=null;){if(z&&Q=="/"){K.tokenize=null;break}z=Q=="*"}return["comment","comment"]}w.registerHelper("hintWords","css",dt),w.defineMIME("text/css",{documentTypes:E,mediaTypes:_,mediaFeatures:T,mediaValueKeywords:S,propertyKeywords:k,nonStandardPropertyKeywords:h,fontProperties:I,counterDescriptors:D,colorKeywords:B,valueKeywords:ot,tokenHooks:{"/":function(Z,K){return!!Z.eat("*")&&(K.tokenize=st,st(Z,K))}},name:"css"}),w.defineMIME("text/x-scss",{mediaTypes:_,mediaFeatures:T,mediaValueKeywords:S,propertyKeywords:k,nonStandardPropertyKeywords:h,colorKeywords:B,valueKeywords:ot,fontProperties:I,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Z,K){return Z.eat("/")?(Z.skipToEnd(),["comment","comment"]):Z.eat("*")?(K.tokenize=st,st(Z,K)):["operator","operator"]},":":function(Z){return!!Z.match(/^\s*\{/,!1)&&[null,null]},$:function(Z){return Z.match(/^[\w-]+/),Z.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Z){return!!Z.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),w.defineMIME("text/x-less",{mediaTypes:_,mediaFeatures:T,mediaValueKeywords:S,propertyKeywords:k,nonStandardPropertyKeywords:h,colorKeywords:B,valueKeywords:ot,fontProperties:I,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Z,K){return Z.eat("/")?(Z.skipToEnd(),["comment","comment"]):Z.eat("*")?(K.tokenize=st,st(Z,K)):["operator","operator"]},"@":function(Z){return Z.eat("{")?[null,"interpolation"]:!Z.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(Z.eatWhile(/[\w\\\-]/),Z.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),w.defineMIME("text/x-gss",{documentTypes:E,mediaTypes:_,mediaFeatures:T,propertyKeywords:k,nonStandardPropertyKeywords:h,fontProperties:I,counterDescriptors:D,colorKeywords:B,valueKeywords:ot,supportsAtComponent:!0,tokenHooks:{"/":function(Z,K){return!!Z.eat("*")&&(K.tokenize=st,st(Z,K))}},name:"css",helperType:"gss"})})(H(4408))},8253:(j,b,H)=>{(function(w){"use strict";var N={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function A(S,x,k){var R=S.current(),h=R.search(x);return h>-1?S.backUp(R.length-h):R.match(/<\/?$/)&&(S.backUp(R.length),S.match(x,!1)||S.match(R)),k}var E={};function v(S){var x=E[S];return x||(E[S]=new RegExp("\\s+"+S+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function _(S,x){var k=S.match(v(x));return k?/^\s*(.*?)\s*$/.exec(k[2])[1]:""}function m(S,x){return new RegExp((x?"^":"")+"","i")}function T(S,x){for(var k in S)for(var R=x[k]||(x[k]=[]),h=S[k],I=h.length-1;I>=0;I--)R.unshift(h[I])}function g(S,x){for(var k=0;k=0;D--)R.script.unshift(["type",I[D].matches,I[D].mode]);function M(B,rt){var ot,dt=k.token(B,rt.htmlState),st=/\btag\b/.test(dt);if(st&&!/[<>\s\/]/.test(B.current())&&(ot=rt.htmlState.tagName&&rt.htmlState.tagName.toLowerCase())&&R.hasOwnProperty(ot))rt.inTag=ot+" ";else if(rt.inTag&&st&&/>$/.test(B.current())){var Z=/^([\S]+) (.*)/.exec(rt.inTag);rt.inTag=null;var K=B.current()==">"&&g(R[Z[1]],Z[2]),Q=w.getMode(S,K),z=m(Z[1],!0),at=m(Z[1],!1);rt.token=function($,mt){return $.match(z,!1)?(mt.token=M,mt.localState=mt.localMode=null,null):A($,at,mt.localMode.token($,mt.localState))},rt.localMode=Q,rt.localState=w.startState(Q,k.indent(rt.htmlState,"",""))}else rt.inTag&&(rt.inTag+=B.current(),B.eol()&&(rt.inTag+=" "));return dt}return{startState:function(){return{token:M,inTag:null,localMode:null,localState:null,htmlState:w.startState(k)}},copyState:function(B){var rt;return B.localState&&(rt=w.copyState(B.localMode,B.localState)),{token:B.token,inTag:B.inTag,localMode:B.localMode,localState:rt,htmlState:w.copyState(k,B.htmlState)}},token:function(B,rt){return rt.token(B,rt)},indent:function(B,rt,ot){return!B.localMode||/^\s*<\//.test(rt)?k.indent(B.htmlState,rt,ot):B.localMode.indent?B.localMode.indent(B.localState,rt,ot):w.Pass},innerMode:function(B){return{state:B.localState||B.htmlState,mode:B.localMode||k}}}}),"xml","javascript","css"),w.defineMIME("text/html","htmlmixed")})(H(4408),H(9701),H(6061),H(7389))},6061:(j,b,H)=>{(function(w){"use strict";w.defineMode("javascript",(function(N,A){var E,v,_=N.indentUnit,m=A.statementIndent,T=A.jsonld,g=A.json||T,S=A.trackScope!==!1,x=A.typescript,k=A.wordCharacters||/[\w$\xa1-\uffff]/,R=(function(){function lt(Un){return{type:Un,style:"keyword"}}var St=lt("keyword a"),Jt=lt("keyword b"),Ee=lt("keyword c"),xe=lt("keyword d"),Ce=lt("operator"),hn={type:"atom",style:"atom"};return{if:lt("if"),while:St,with:St,else:Jt,do:Jt,try:Jt,finally:Jt,return:xe,break:xe,continue:xe,new:lt("new"),delete:Ee,void:Ee,throw:Ee,debugger:lt("debugger"),var:lt("var"),const:lt("var"),let:lt("var"),function:lt("function"),catch:lt("catch"),for:lt("for"),switch:lt("switch"),case:lt("case"),default:lt("default"),in:Ce,typeof:Ce,instanceof:Ce,true:hn,false:hn,null:hn,undefined:hn,NaN:hn,Infinity:hn,this:lt("this"),class:lt("class"),super:lt("atom"),yield:Ee,export:lt("export"),import:lt("import"),extends:Ee,await:Ee}})(),h=/[+\-*&%=<>!?|~^@]/,I=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function D(lt){for(var St,Jt=!1,Ee=!1;(St=lt.next())!=null;){if(!Jt){if(St=="/"&&!Ee)return;St=="["?Ee=!0:Ee&&St=="]"&&(Ee=!1)}Jt=!Jt&&St=="\\"}}function M(lt,St,Jt){return E=lt,v=Jt,St}function B(lt,St){var Jt=lt.next();if(Jt=='"'||Jt=="'")return St.tokenize=rt(Jt),St.tokenize(lt,St);if(Jt=="."&<.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(Jt=="."&<.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Jt))return M(Jt);if(Jt=="="&<.eat(">"))return M("=>","operator");if(Jt=="0"&<.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(Jt))return lt.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(Jt=="/")return lt.eat("*")?(St.tokenize=ot,ot(lt,St)):lt.eat("/")?(lt.skipToEnd(),M("comment","comment")):Ve(lt,St,1)?(D(lt),lt.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(lt.eat("="),M("operator","operator",lt.current()));if(Jt=="`")return St.tokenize=dt,dt(lt,St);if(Jt=="#"&<.peek()=="!")return lt.skipToEnd(),M("meta","meta");if(Jt=="#"&<.eatWhile(k))return M("variable","property");if(Jt=="<"&<.match("!--")||Jt=="-"&<.match("->")&&!/\S/.test(lt.string.slice(0,lt.start)))return lt.skipToEnd(),M("comment","comment");if(h.test(Jt))return Jt==">"&&St.lexical&&St.lexical.type==">"||(lt.eat("=")?Jt!="!"&&Jt!="="||lt.eat("="):/[<>*+\-|&?]/.test(Jt)&&(lt.eat(Jt),Jt==">"&<.eat(Jt))),Jt=="?"&<.eat(".")?M("."):M("operator","operator",lt.current());if(k.test(Jt)){lt.eatWhile(k);var Ee=lt.current();if(St.lastType!="."){if(R.propertyIsEnumerable(Ee)){var xe=R[Ee];return M(xe.type,xe.style,Ee)}if(Ee=="async"&<.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",Ee)}return M("variable","variable",Ee)}}function rt(lt){return function(St,Jt){var Ee,xe=!1;if(T&&St.peek()=="@"&&St.match(I))return Jt.tokenize=B,M("jsonld-keyword","meta");for(;(Ee=St.next())!=null&&(Ee!=lt||xe);)xe=!xe&&Ee=="\\";return xe||(Jt.tokenize=B),M("string","string")}}function ot(lt,St){for(var Jt,Ee=!1;Jt=lt.next();){if(Jt=="/"&&Ee){St.tokenize=B;break}Ee=Jt=="*"}return M("comment","comment")}function dt(lt,St){for(var Jt,Ee=!1;(Jt=lt.next())!=null;){if(!Ee&&(Jt=="`"||Jt=="$"&<.eat("{"))){St.tokenize=B;break}Ee=!Ee&&Jt=="\\"}return M("quasi","string-2",lt.current())}var st="([{}])";function Z(lt,St){St.fatArrowAt&&(St.fatArrowAt=null);var Jt=lt.string.indexOf("=>",lt.start);if(!(Jt<0)){if(x){var Ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(lt.string.slice(lt.start,Jt));Ee&&(Jt=Ee.index)}for(var xe=0,Ce=!1,hn=Jt-1;hn>=0;--hn){var Un=lt.string.charAt(hn),tr=st.indexOf(Un);if(tr>=0&&tr<3){if(!xe){++hn;break}if(--xe==0){Un=="("&&(Ce=!0);break}}else if(tr>=3&&tr<6)++xe;else if(k.test(Un))Ce=!0;else if(/["'\/`]/.test(Un))for(;;--hn){if(hn==0)return;if(lt.string.charAt(hn-1)==Un&<.string.charAt(hn-2)!="\\"){hn--;break}}else if(Ce&&!xe){++hn;break}}Ce&&!xe&&(St.fatArrowAt=hn)}}var K={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Q(lt,St,Jt,Ee,xe,Ce){this.indented=lt,this.column=St,this.type=Jt,this.prev=xe,this.info=Ce,Ee!=null&&(this.align=Ee)}function z(lt,St){if(!S)return!1;for(var Jt=lt.localVars;Jt;Jt=Jt.next)if(Jt.name==St)return!0;for(var Ee=lt.context;Ee;Ee=Ee.prev)for(Jt=Ee.vars;Jt;Jt=Jt.next)if(Jt.name==St)return!0}function at(lt,St,Jt,Ee,xe){var Ce=lt.cc;for($.state=lt,$.stream=xe,$.marked=null,$.cc=Ce,$.style=St,lt.lexical.hasOwnProperty("align")||(lt.lexical.align=!0);;)if((Ce.length?Ce.pop():g?ee:oe)(Jt,Ee)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return $.marked?$.marked:Jt=="variable"&&z(lt,Ee)?"variable-2":St}}var $={state:null,column:null,marked:null,cc:null};function mt(){for(var lt=arguments.length-1;lt>=0;lt--)$.cc.push(arguments[lt])}function X(){return mt.apply(null,arguments),!0}function kt(lt,St){for(var Jt=St;Jt;Jt=Jt.next)if(Jt.name==lt)return!0;return!1}function vt(lt){var St=$.state;if($.marked="def",S){if(St.context){if(St.lexical.info=="var"&&St.context&&St.context.block){var Jt=Ct(lt,St.context);if(Jt!=null)return void(St.context=Jt)}else if(!kt(lt,St.localVars))return void(St.localVars=new Nt(lt,St.localVars))}A.globalVars&&!kt(lt,St.globalVars)&&(St.globalVars=new Nt(lt,St.globalVars))}}function Ct(lt,St){if(St){if(St.block){var Jt=Ct(lt,St.prev);return Jt?Jt==St.prev?St:new wt(Jt,St.vars,!0):null}return kt(lt,St.vars)?St:new wt(St.prev,new Nt(lt,St.vars),!1)}return null}function gt(lt){return lt=="public"||lt=="private"||lt=="protected"||lt=="abstract"||lt=="readonly"}function wt(lt,St,Jt){this.prev=lt,this.vars=St,this.block=Jt}function Nt(lt,St){this.name=lt,this.next=St}var Xt=new Nt("this",new Nt("arguments",null));function zt(){$.state.context=new wt($.state.context,$.state.localVars,!1),$.state.localVars=Xt}function Qt(){$.state.context=new wt($.state.context,$.state.localVars,!0),$.state.localVars=null}function Rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}function ut(lt,St){var Jt=function(){var Ee=$.state,xe=Ee.indented;if(Ee.lexical.type=="stat")xe=Ee.lexical.indented;else for(var Ce=Ee.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)xe=Ce.indented;Ee.lexical=new Q(xe,$.stream.column(),lt,null,Ee.lexical,St)};return Jt.lex=!0,Jt}function Bt(){var lt=$.state;lt.lexical.prev&&(lt.lexical.type==")"&&(lt.indented=lt.lexical.indented),lt.lexical=lt.lexical.prev)}function te(lt){function St(Jt){return Jt==lt?X():lt==";"||Jt=="}"||Jt==")"||Jt=="]"?mt():X(St)}return St}function oe(lt,St){return lt=="var"?X(ut("vardef",St),sn,te(";"),Bt):lt=="keyword a"?X(ut("form"),ue,oe,Bt):lt=="keyword b"?X(ut("form"),oe,Bt):lt=="keyword d"?$.stream.match(/^\s*$/,!1)?X():X(ut("stat"),Ue,te(";"),Bt):lt=="debugger"?X(te(";")):lt=="{"?X(ut("}"),Qt,ve,Bt,Rt):lt==";"?X():lt=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Bt&&$.state.cc.pop()(),X(ut("form"),ue,oe,Bt,Nn)):lt=="function"?X(On):lt=="for"?X(ut("form"),Qt,lr,oe,Rt,Bt):lt=="class"||x&&St=="interface"?($.marked="keyword",X(ut("form",lt=="class"?lt:St),q,Bt)):lt=="variable"?x&&St=="declare"?($.marked="keyword",X(oe)):x&&(St=="module"||St=="enum"||St=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",St=="enum"?X(vn):St=="type"?X(Kn,te("operator"),qt,te(";")):X(ut("form"),Pn,te("{"),ut("}"),ve,Bt,Bt)):x&&St=="namespace"?($.marked="keyword",X(ut("form"),ee,oe,Bt)):x&&St=="abstract"?($.marked="keyword",X(oe)):X(ut("stat"),Gt):lt=="switch"?X(ut("form"),ue,te("{"),ut("}","switch"),Qt,ve,Bt,Bt,Rt):lt=="case"?X(ee,te(":")):lt=="default"?X(te(":")):lt=="catch"?X(ut("form"),zt,Ht,oe,Bt,Rt):lt=="export"?X(ut("stat"),He,Bt):lt=="import"?X(ut("stat"),fe,Bt):lt=="async"?X(oe):St=="@"?X(ee,oe):mt(ut("stat"),ee,te(";"),Bt)}function Ht(lt){if(lt=="(")return X(Ln,te(")"))}function ee(lt,St){return ce(lt,St,!1)}function me(lt,St){return ce(lt,St,!0)}function ue(lt){return lt!="("?mt():X(ut(")"),Ue,te(")"),Bt)}function ce(lt,St,Jt){if($.state.fatArrowAt==$.stream.start){var Ee=Jt?G:It;if(lt=="(")return X(zt,ut(")"),ke(Ln,")"),Bt,te("=>"),Ee,Rt);if(lt=="variable")return mt(zt,Pn,te("=>"),Ee,Rt)}var xe=Jt?Ge:en;return K.hasOwnProperty(lt)?X(xe):lt=="function"?X(On,xe):lt=="class"||x&&St=="interface"?($.marked="keyword",X(ut("form"),P,Bt)):lt=="keyword c"||lt=="async"?X(Jt?me:ee):lt=="("?X(ut(")"),Ue,te(")"),Bt,xe):lt=="operator"||lt=="spread"?X(Jt?me:ee):lt=="["?X(ut("]"),In,Bt,xe):lt=="{"?nn(se,"}",null,xe):lt=="quasi"?mt(Ze,xe):lt=="new"?X(tt(Jt)):X()}function Ue(lt){return lt.match(/[;\}\)\],]/)?mt():mt(ee)}function en(lt,St){return lt==","?X(Ue):Ge(lt,St,!1)}function Ge(lt,St,Jt){var Ee=Jt==0?en:Ge,xe=Jt==0?ee:me;return lt=="=>"?X(zt,Jt?G:It,Rt):lt=="operator"?/\+\+|--/.test(St)||x&&St=="!"?X(Ee):x&&St=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?X(ut(">"),ke(qt,">"),Bt,Ee):St=="?"?X(ee,te(":"),xe):X(xe):lt=="quasi"?mt(Ze,Ee):lt!=";"?lt=="("?nn(me,")","call",Ee):lt=="."?X(Kt,Ee):lt=="["?X(ut("]"),Ue,te("]"),Bt,Ee):x&&St=="as"?($.marked="keyword",X(qt,Ee)):lt=="regexp"?($.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),X(xe)):void 0:void 0}function Ze(lt,St){return lt!="quasi"?mt():St.slice(St.length-2)!="${"?X(Ze):X(Ue,Pe)}function Pe(lt){if(lt=="}")return $.marked="string-2",$.state.tokenize=dt,X(Ze)}function It(lt){return Z($.stream,$.state),mt(lt=="{"?oe:ee)}function G(lt){return Z($.stream,$.state),mt(lt=="{"?oe:me)}function tt(lt){return function(St){return St=="."?X(lt?Mt:bt):St=="variable"&&x?X(wn,lt?Ge:en):mt(lt?me:ee)}}function bt(lt,St){if(St=="target")return $.marked="keyword",X(en)}function Mt(lt,St){if(St=="target")return $.marked="keyword",X(Ge)}function Gt(lt){return lt==":"?X(Bt,oe):mt(en,te(";"),Bt)}function Kt(lt){if(lt=="variable")return $.marked="property",X()}function se(lt,St){return lt=="async"?($.marked="property",X(se)):lt=="variable"||$.style=="keyword"?($.marked="property",St=="get"||St=="set"?X(Se):(x&&$.state.fatArrowAt==$.stream.start&&(Jt=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+Jt[0].length),X(Qe))):lt=="number"||lt=="string"?($.marked=T?"property":$.style+" property",X(Qe)):lt=="jsonld-keyword"?X(Qe):x&>(St)?($.marked="keyword",X(se)):lt=="["?X(ee,pn,te("]"),Qe):lt=="spread"?X(me,Qe):St=="*"?($.marked="keyword",X(se)):lt==":"?mt(Qe):void 0;var Jt}function Se(lt){return lt!="variable"?mt(Qe):($.marked="property",X(On))}function Qe(lt){return lt==":"?X(me):lt=="("?mt(On):void 0}function ke(lt,St,Jt){function Ee(xe,Ce){if(Jt?Jt.indexOf(xe)>-1:xe==","){var hn=$.state.lexical;return hn.info=="call"&&(hn.pos=(hn.pos||0)+1),X((function(Un,tr){return Un==St||tr==St?mt():mt(lt)}),Ee)}return xe==St||Ce==St?X():Jt&&Jt.indexOf(";")>-1?mt(lt):X(te(St))}return function(xe,Ce){return xe==St||Ce==St?X():mt(lt,Ee)}}function nn(lt,St,Jt){for(var Ee=3;Ee"),qt):lt=="quasi"?mt(_n,dn):void 0}function ie(lt){if(lt=="=>")return X(qt)}function je(lt){return lt.match(/[\}\)\]]/)?X():lt==","||lt==";"?X(je):mt(ze,je)}function ze(lt,St){return lt=="variable"||$.style=="keyword"?($.marked="property",X(ze)):St=="?"||lt=="number"||lt=="string"?X(ze):lt==":"?X(qt):lt=="["?X(te("variable"),pt,te("]"),ze):lt=="("?mt(Mn,ze):lt.match(/[;\}\)\],]/)?void 0:X()}function _n(lt,St){return lt!="quasi"?mt():St.slice(St.length-2)!="${"?X(_n):X(qt,kn)}function kn(lt){if(lt=="}")return $.marked="string-2",$.state.tokenize=dt,X(_n)}function qn(lt,St){return lt=="variable"&&$.stream.match(/^\s*[?:]/,!1)||St=="?"?X(qn):lt==":"?X(qt):lt=="spread"?X(qn):mt(qt)}function dn(lt,St){return St=="<"?X(ut(">"),ke(qt,">"),Bt,dn):St=="|"||lt=="."||St=="&"?X(qt):lt=="["?X(qt,te("]"),dn):St=="extends"||St=="implements"?($.marked="keyword",X(qt)):St=="?"?X(qt,te(":"),qt):void 0}function wn(lt,St){if(St=="<")return X(ut(">"),ke(qt,">"),Bt,dn)}function Sn(){return mt(qt,sr)}function sr(lt,St){if(St=="=")return X(qt)}function sn(lt,St){return St=="enum"?($.marked="keyword",X(vn)):mt(Pn,pn,Wn,Gr)}function Pn(lt,St){return x&>(St)?($.marked="keyword",X(Pn)):lt=="variable"?(vt(St),X()):lt=="spread"?X(Pn):lt=="["?nn(mn,"]"):lt=="{"?nn(fn,"}"):void 0}function fn(lt,St){return lt!="variable"||$.stream.match(/^\s*:/,!1)?(lt=="variable"&&($.marked="property"),lt=="spread"?X(Pn):lt=="}"?mt():lt=="["?X(ee,te("]"),te(":"),fn):X(te(":"),Pn,Wn)):(vt(St),X(Wn))}function mn(){return mt(Pn,Wn)}function Wn(lt,St){if(St=="=")return X(me)}function Gr(lt){if(lt==",")return X(sn)}function Nn(lt,St){if(lt=="keyword b"&&St=="else")return X(ut("form","else"),oe,Bt)}function lr(lt,St){return St=="await"?X(lr):lt=="("?X(ut(")"),fr,Bt):void 0}function fr(lt){return lt=="var"?X(sn,an):lt=="variable"?X(an):mt(an)}function an(lt,St){return lt==")"?X():lt==";"?X(an):St=="in"||St=="of"?($.marked="keyword",X(ee,an)):mt(ee,an)}function On(lt,St){return St=="*"?($.marked="keyword",X(On)):lt=="variable"?(vt(St),X(On)):lt=="("?X(zt,ut(")"),ke(Ln,")"),Bt,ft,oe,Rt):x&&St=="<"?X(ut(">"),ke(Sn,">"),Bt,On):void 0}function Mn(lt,St){return St=="*"?($.marked="keyword",X(Mn)):lt=="variable"?(vt(St),X(Mn)):lt=="("?X(zt,ut(")"),ke(Ln,")"),Bt,ft,Rt):x&&St=="<"?X(ut(">"),ke(Sn,">"),Bt,Mn):void 0}function Kn(lt,St){return lt=="keyword"||lt=="variable"?($.marked="type",X(Kn)):St=="<"?X(ut(">"),ke(Sn,">"),Bt):void 0}function Ln(lt,St){return St=="@"&&X(ee,Ln),lt=="spread"?X(Ln):x&>(St)?($.marked="keyword",X(Ln)):x&<=="this"?X(pn,Wn):mt(Pn,pn,Wn)}function P(lt,St){return lt=="variable"?q(lt,St):U(lt,St)}function q(lt,St){if(lt=="variable")return vt(St),X(U)}function U(lt,St){return St=="<"?X(ut(">"),ke(Sn,">"),Bt,U):St=="extends"||St=="implements"||x&<==","?(St=="implements"&&($.marked="keyword"),X(x?qt:ee,U)):lt=="{"?X(ut("}"),_t,Bt):void 0}function _t(lt,St){return lt=="async"||lt=="variable"&&(St=="static"||St=="get"||St=="set"||x&>(St))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?($.marked="keyword",X(_t)):lt=="variable"||$.style=="keyword"?($.marked="property",X(Wt,_t)):lt=="number"||lt=="string"?X(Wt,_t):lt=="["?X(ee,pn,te("]"),Wt,_t):St=="*"?($.marked="keyword",X(_t)):x&<=="("?mt(Mn,_t):lt==";"||lt==","?X(_t):lt=="}"?X():St=="@"?X(ee,_t):void 0}function Wt(lt,St){if(St=="!"||St=="?")return X(Wt);if(lt==":")return X(qt,Wn);if(St=="=")return X(me);var Jt=$.state.lexical.prev;return mt(Jt&&Jt.info=="interface"?Mn:On)}function He(lt,St){return St=="*"?($.marked="keyword",X(rn,te(";"))):St=="default"?($.marked="keyword",X(ee,te(";"))):lt=="{"?X(ke(Ke,"}"),rn,te(";")):mt(oe)}function Ke(lt,St){return St=="as"?($.marked="keyword",X(te("variable"))):lt=="variable"?mt(me,Ke):void 0}function fe(lt){return lt=="string"?X():lt=="("?mt(ee):lt=="."?mt(en):mt(Le,J,rn)}function Le(lt,St){return lt=="{"?nn(Le,"}"):(lt=="variable"&&vt(St),St=="*"&&($.marked="keyword"),X(tn))}function J(lt){if(lt==",")return X(Le,J)}function tn(lt,St){if(St=="as")return $.marked="keyword",X(Le)}function rn(lt,St){if(St=="from")return $.marked="keyword",X(ee)}function In(lt){return lt=="]"?X():mt(ke(me,"]"))}function vn(){return mt(ut("form"),Pn,te("{"),ut("}"),ke(Lr,"}"),Bt,Bt)}function Lr(){return mt(Pn,Wn)}function le(lt,St){return lt.lastType=="operator"||lt.lastType==","||h.test(St.charAt(0))||/[,.]/.test(St.charAt(0))}function Ve(lt,St,Jt){return St.tokenize==B&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(St.lastType)||St.lastType=="quasi"&&/\{\s*$/.test(lt.string.slice(0,lt.pos-(Jt||0)))}return Rt.lex=!0,Bt.lex=!0,{startState:function(lt){var St={tokenize:B,lastType:"sof",cc:[],lexical:new Q((lt||0)-_,0,"block",!1),localVars:A.localVars,context:A.localVars&&new wt(null,null,!1),indented:lt||0};return A.globalVars&&typeof A.globalVars=="object"&&(St.globalVars=A.globalVars),St},token:function(lt,St){if(lt.sol()&&(St.lexical.hasOwnProperty("align")||(St.lexical.align=!1),St.indented=lt.indentation(),Z(lt,St)),St.tokenize!=ot&<.eatSpace())return null;var Jt=St.tokenize(lt,St);return E=="comment"?Jt:(St.lastType=E!="operator"||v!="++"&&v!="--"?E:"incdec",at(St,Jt,E,v,lt))},indent:function(lt,St){if(lt.tokenize==ot||lt.tokenize==dt)return w.Pass;if(lt.tokenize!=B)return 0;var Jt,Ee=St&&St.charAt(0),xe=lt.lexical;if(!/^\s*else\b/.test(St))for(var Ce=lt.cc.length-1;Ce>=0;--Ce){var hn=lt.cc[Ce];if(hn==Bt)xe=xe.prev;else if(hn!=Nn&&hn!=Rt)break}for(;(xe.type=="stat"||xe.type=="form")&&(Ee=="}"||(Jt=lt.cc[lt.cc.length-1])&&(Jt==en||Jt==Ge)&&!/^[,\.=+\-*:?[\(]/.test(St));)xe=xe.prev;m&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var Un=xe.type,tr=Ee==Un;return Un=="vardef"?xe.indented+(lt.lastType=="operator"||lt.lastType==","?xe.info.length+1:0):Un=="form"&&Ee=="{"?xe.indented:Un=="form"?xe.indented+_:Un=="stat"?xe.indented+(le(lt,St)?m||_:0):xe.info!="switch"||tr||A.doubleIndentSwitch==0?xe.align?xe.column+(tr?0:1):xe.indented+(tr?0:_):xe.indented+(/^(?:case|default)\b/.test(St)?_:2*_)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:T,jsonMode:g,expressionAllowed:Ve,skipExpression:function(lt){at(lt,"atom","atom","true",new w.StringStream("",2,null))}}})),w.registerHelper("wordChars","javascript",/[\w$]/),w.defineMIME("text/javascript","javascript"),w.defineMIME("text/ecmascript","javascript"),w.defineMIME("application/javascript","javascript"),w.defineMIME("application/x-javascript","javascript"),w.defineMIME("application/ecmascript","javascript"),w.defineMIME("application/json",{name:"javascript",json:!0}),w.defineMIME("application/x-json",{name:"javascript",json:!0}),w.defineMIME("application/manifest+json",{name:"javascript",json:!0}),w.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),w.defineMIME("text/typescript",{name:"javascript",typescript:!0}),w.defineMIME("application/typescript",{name:"javascript",typescript:!0})})(H(4408))},9701:(j,b,H)=>{(function(w){"use strict";var N={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};w.defineMode("xml",(function(E,v){var _,m,T=E.indentUnit,g={},S=v.htmlMode?N:A;for(var x in S)g[x]=S[x];for(var x in v)g[x]=v[x];function k(X,kt){function vt(gt){return kt.tokenize=gt,gt(X,kt)}var Ct=X.next();return Ct=="<"?X.eat("!")?X.eat("[")?X.match("CDATA[")?vt(I("atom","]]>")):null:X.match("--")?vt(I("comment","-->")):X.match("DOCTYPE",!0,!0)?(X.eatWhile(/[\w\._\-]/),vt(D(1))):null:X.eat("?")?(X.eatWhile(/[\w\._\-]/),kt.tokenize=I("meta","?>"),"meta"):(_=X.eat("/")?"closeTag":"openTag",kt.tokenize=R,"tag bracket"):Ct=="&"?(X.eat("#")?X.eat("x")?X.eatWhile(/[a-fA-F\d]/)&&X.eat(";"):X.eatWhile(/[\d]/)&&X.eat(";"):X.eatWhile(/[\w\.\-:]/)&&X.eat(";"))?"atom":"error":(X.eatWhile(/[^&<]/),null)}function R(X,kt){var vt=X.next();if(vt==">"||vt=="/"&&X.eat(">"))return kt.tokenize=k,_=vt==">"?"endTag":"selfcloseTag","tag bracket";if(vt=="=")return _="equals",null;if(vt=="<"){kt.tokenize=k,kt.state=dt,kt.tagName=kt.tagStart=null;var Ct=kt.tokenize(X,kt);return Ct?Ct+" tag error":"tag error"}return/[\'\"]/.test(vt)?(kt.tokenize=h(vt),kt.stringStartCol=X.column(),kt.tokenize(X,kt)):(X.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(X){var kt=function(vt,Ct){for(;!vt.eol();)if(vt.next()==X){Ct.tokenize=R;break}return"string"};return kt.isInAttribute=!0,kt}function I(X,kt){return function(vt,Ct){for(;!vt.eol();){if(vt.match(kt)){Ct.tokenize=k;break}vt.next()}return X}}function D(X){return function(kt,vt){for(var Ct;(Ct=kt.next())!=null;){if(Ct=="<")return vt.tokenize=D(X+1),vt.tokenize(kt,vt);if(Ct==">"){if(X==1){vt.tokenize=k;break}return vt.tokenize=D(X-1),vt.tokenize(kt,vt)}}return"meta"}}function M(X){return X&&X.toLowerCase()}function B(X,kt,vt){this.prev=X.context,this.tagName=kt||"",this.indent=X.indented,this.startOfLine=vt,(g.doNotIndent.hasOwnProperty(kt)||X.context&&X.context.noIndent)&&(this.noIndent=!0)}function rt(X){X.context&&(X.context=X.context.prev)}function ot(X,kt){for(var vt;;){if(!X.context||(vt=X.context.tagName,!g.contextGrabbers.hasOwnProperty(M(vt))||!g.contextGrabbers[M(vt)].hasOwnProperty(M(kt))))return;rt(X)}}function dt(X,kt,vt){return X=="openTag"?(vt.tagStart=kt.column(),st):X=="closeTag"?Z:dt}function st(X,kt,vt){return X=="word"?(vt.tagName=kt.current(),m="tag",z):g.allowMissingTagName&&X=="endTag"?(m="tag bracket",z(X,kt,vt)):(m="error",st)}function Z(X,kt,vt){if(X=="word"){var Ct=kt.current();return vt.context&&vt.context.tagName!=Ct&&g.implicitlyClosed.hasOwnProperty(M(vt.context.tagName))&&rt(vt),vt.context&&vt.context.tagName==Ct||g.matchClosing===!1?(m="tag",K):(m="tag error",Q)}return g.allowMissingTagName&&X=="endTag"?(m="tag bracket",K(X,kt,vt)):(m="error",Q)}function K(X,kt,vt){return X!="endTag"?(m="error",K):(rt(vt),dt)}function Q(X,kt,vt){return m="error",K(X,kt,vt)}function z(X,kt,vt){if(X=="word")return m="attribute",at;if(X=="endTag"||X=="selfcloseTag"){var Ct=vt.tagName,gt=vt.tagStart;return vt.tagName=vt.tagStart=null,X=="selfcloseTag"||g.autoSelfClosers.hasOwnProperty(M(Ct))?ot(vt,Ct):(ot(vt,Ct),vt.context=new B(vt,Ct,gt==vt.indented)),dt}return m="error",z}function at(X,kt,vt){return X=="equals"?$:(g.allowMissing||(m="error"),z(X,kt,vt))}function $(X,kt,vt){return X=="string"?mt:X=="word"&&g.allowUnquoted?(m="string",z):(m="error",z(X,kt,vt))}function mt(X,kt,vt){return X=="string"?mt:z(X,kt,vt)}return k.isInText=!0,{startState:function(X){var kt={tokenize:k,state:dt,indented:X||0,tagName:null,tagStart:null,context:null};return X!=null&&(kt.baseIndent=X),kt},token:function(X,kt){if(!kt.tagName&&X.sol()&&(kt.indented=X.indentation()),X.eatSpace())return null;_=null;var vt=kt.tokenize(X,kt);return(vt||_)&&vt!="comment"&&(m=null,kt.state=kt.state(_||vt,X,kt),m&&(vt=m=="error"?vt+" error":m)),vt},indent:function(X,kt,vt){var Ct=X.context;if(X.tokenize.isInAttribute)return X.tagStart==X.indented?X.stringStartCol+1:X.indented+T;if(Ct&&Ct.noIndent)return w.Pass;if(X.tokenize!=R&&X.tokenize!=k)return vt?vt.match(/^(\s*)/)[0].length:0;if(X.tagName)return g.multilineTagIndentPastTag!==!1?X.tagStart+X.tagName.length+2:X.tagStart+T*(g.multilineTagIndentFactor||1);if(g.alignCDATA&&/$/,blockCommentStart:"",configuration:g.htmlMode?"html":"xml",helperType:g.htmlMode?"html":"xml",skipAttribute:function(X){X.state==$&&(X.state=z)},xmlCurrentTag:function(X){return X.tagName?{name:X.tagName,close:X.type=="closeTag"}:null},xmlCurrentContext:function(X){for(var kt=[],vt=X.context;vt;vt=vt.prev)kt.push(vt.tagName);return kt.reverse()}}})),w.defineMIME("text/xml","xml"),w.defineMIME("application/xml","xml"),w.mimeModes.hasOwnProperty("text/html")||w.defineMIME("text/html",{name:"xml",htmlMode:!0})})(H(4408))},7058:(j,b,H)=>{"use strict";H.d(b,{A:()=>E});var w,N=H(9156),A=(w=function(v,_){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,T){m.__proto__=T}||function(m,T){for(var g in T)Object.prototype.hasOwnProperty.call(T,g)&&(m[g]=T[g])},w(v,_)},function(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=v}w(v,_),v.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)});const E=(function(v){function _(m,T,g){var S=v.call(this,T,g)||this;return S._module=m,S}return A(_,v),Object.defineProperty(_.prototype,"module",{get:function(){return this._module},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"config",{get:function(){return this._module.config},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"em",{get:function(){return this._module.em},enumerable:!1,configurable:!0}),_})(N.Kx)},179:(j,b,H)=>{"use strict";H.d(b,{A:()=>v,F:()=>N});var w,N,A=H(7058),E=(w=function(_,m){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,g){T.__proto__=g}||function(T,g){for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&(T[S]=g[S])},w(_,m)},function(_,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function T(){this.constructor=_}w(_,m),_.prototype=m===null?Object.create(m):(T.prototype=m.prototype,new T)});(function(_){_.Select="select",_.Hover="hover",_.Spacing="spacing",_.Target="target",_.Resize="resize"})(N||(N={}));const v=(function(_){function m(){return _!==null&&_.apply(this,arguments)||this}return E(m,_),m.prototype.defaults=function(){return{id:"",type:""}},Object.defineProperty(m.prototype,"type",{get:function(){return this.get("type")||""},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"component",{get:function(){var T;return this.get("component")||((T=this.get("componentView"))===null||T===void 0?void 0:T.model)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"componentView",{get:function(){var T;return this.get("componentView")||((T=this.get("component"))===null||T===void 0?void 0:T.getView())},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"el",{get:function(){var T;return(T=this.componentView)===null||T===void 0?void 0:T.el},enumerable:!1,configurable:!0}),m.prototype.getBoxRect=function(T){var g=this.el,S=this.em.Canvas.getCanvasView(),x=this.get("boxRect");return x||(g&&S?S.getElBoxRect(g,T):{x:0,y:0,width:0,height:0})},m.prototype.getStyle=function(T){T===void 0&&(T={});var g=T.boxRect||this.getBoxRect(T),S=g.width,x=g.height,k=g.x,R=g.y;return{width:"".concat(S,"px"),height:"".concat(x,"px"),top:"0",left:"0",position:"absolute",translate:"".concat(k,"px ").concat(R,"px")}},m.prototype.isType=function(T){return this.type===T},m})(A.A)},1738:(j,b,H)=>{"use strict";var w;H.d(b,{A:()=>N}),(function(A){A.run="command:run",A.runCommand="command:run:",A.runBeforeCommand="command:run:before:",A.abort="command:abort:",A.stop="command:stop",A.stopCommand="command:stop:",A.stopBeforeCommand="command:stop:before:",A.call="command:call",A.callCommand="command:call:"})(w||(w={}));const N=w},9484:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>w});const w={run:function(N){N.Components.clear(),N.Css.clear()}}},9516:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>E});var w=H(5706),N=H(9966),A=H(6294);const E={run:function(v){(0,w.bindAll)(this,"onKeyUp","enableDragger","disableDragger"),this.editor=v,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(1)},stop:function(v){this.toggleMove(),this.disableDragger()},onKeyUp:function(v){(0,A.Ch)(v)===" "&&this.editor.stopCommand(this.id)},enableDragger:function(v){this.toggleDragger(1,v)},disableDragger:function(v){this.toggleDragger(0,v)},toggleDragger:function(v,_){var m=this.canvasModel,T=this.em,g=this.dragger,S=v?"add":"remove";this.getCanvas().classList[S]("".concat(this.ppfx,"is__grabbing")),g||(g=new N.A({getPosition:function(){return{x:m.get("x"),y:m.get("y")}},setPosition:function(x){var k=x.x,R=x.y;m.set({x:k,y:R})},onStart:function(x,k){T.trigger("canvas:move:start",k)},onDrag:function(x,k){T.trigger("canvas:move",k)},onEnd:function(x,k){T.trigger("canvas:move:end",k)}}),this.dragger=g),v?g.start(_):g.stop()},toggleMove:function(v){var _=this.ppfx,m=v?"add":"remove",T=v?"on":"off",g={on:A.on,off:A.AU},S=this.getCanvas(),x=["".concat(_,"is__grab")];!v&&x.push("".concat(_,"is__grabbing")),x.forEach((function(k){return S.classList[m](k)})),g[T](document,"keyup",this.onKeyUp),g[T](S,"mousedown",this.enableDragger),g[T](document,"mouseup",this.disableDragger)}}},9946:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>m,defineCommand:()=>_});var w,N=H(9156),A=H(1738),E=(w=function(T,g){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,x){S.__proto__=x}||function(S,x){for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&(S[k]=x[k])},w(T,g)},function(T,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function S(){this.constructor=T}w(T,g),T.prototype=g===null?Object.create(g):(S.prototype=g.prototype,new S)}),v=function(){return v=Object.assign||function(T){for(var g,S=1,x=arguments.length;S{"use strict";H.r(b),H.d(b,{default:()=>A});var w=H(5706),N=function(E,v,_){if(_||arguments.length===2)for(var m,T=0,g=v.length;T{"use strict";H.r(b),H.d(b,{default:()=>_});var w=H(5706),N=H(9966),A=H(1166),E=function(){return E=Object.assign||function(m){for(var T,g=1,S=arguments.length;g
`);(k=document.createElement("div")).className="".concat(M,"guides"),B.className="".concat(M,"guide-info ").concat(M,"guide-info__x"),rt.className="".concat(M,"guide-info ").concat(M,"guide-info__y"),B.innerHTML=ot,rt.innerHTML=ot,k.appendChild(B),k.appendChild(rt),(T=h.Canvas.getGlobalToolsEl())===null||T===void 0||T.appendChild(k),this.guidesEl=k,this.elGuideInfoX=B,this.elGuideInfoY=rt,this.elGuideInfoContentX=(g=B.querySelector(".".concat(M,"guide-info__content")))!==null&&g!==void 0?g:void 0,this.elGuideInfoContentY=(S=rt.querySelector(".".concat(M,"guide-info__content")))!==null&&S!==void 0?S:void 0,I.on("canvas:update frame:scroll",(0,w.debounce)((function(){var dt;x.updateGuides(),D.debug&&((dt=x.guides)===null||dt===void 0||dt.forEach((function(st){return x.renderGuide(st)})))}),200))}return k},getGuidesStatic:function(){var m=this,T=[],g=this.target.getEl(),S=g?.parentElement;return S?((0,w.each)(S.children,(function(x){return T=T.concat(g!==x?m.getElementGuides(x):[])})),T.concat(this.getElementGuides(S))):[]},getGuidesTarget:function(){return this.getElementGuides(this.target.getEl())},updateGuides:function(m){var T,g,S,x=this;((T=m??this.guides)!==null&&T!==void 0?T:[]).forEach((function(k){var R=k.origin,h=g===R?S:x.getElementPos(R);g=R,S=h,(0,w.each)(x.getGuidePosUpdate(k,h),(function(I,D){k[D]=I})),k.originRect=h}))},getGuidePosUpdate:function(m,T){var g={},S=T.top,x=T.height,k=T.left,R=T.width;switch(m.type){case"t":g.y=S;break;case"b":g.y=S+x;break;case"l":g.x=k;break;case"r":g.x=k+R;break;case"x":g.x=k+R/2;break;case"y":g.y=S+x/2}return g},renderGuide:function(m){var T,g;if(!this.opts.skipGuidesRender){var S=(T=m.guide)!==null&&T!==void 0?T:document.createElement("div"),x="px",k=m.active?2:1;if(S.style.cssText="position: absolute; background-color: ".concat(m.active?"green":"red",";"),!S.children.length){var R=document.createElement("div");R.style.cssText="position: absolute; color: red; padding: 5px; top: 0; left: 0;",S.appendChild(R)}return m.y?(S.style.width="100%",S.style.height="".concat(k).concat(x),S.style.top="".concat(m.y).concat(x),S.style.left="0"):(S.style.width="".concat(k).concat(x),S.style.height="100%",S.style.left="".concat(m.x).concat(x),S.style.top="0".concat(x)),!m.guide&&((g=this.guidesContainer)===null||g===void 0||g.appendChild(S)),S}},getElementPos:function(m){return this.editor.Canvas.getElementPos(m,{noScroll:1})},getElementGuides:function(m){var T=this,g=this.opts,S=m,x=this.getElementPos(m),k=(0,A.getComponentModel)(m),R=(0,A.getComponentView)(m),h=x.top,I=x.height,D=x.left,M=x.width,B=[{type:"t",y:h},{type:"b",y:h+I},{type:"l",x:D},{type:"r",x:D+M},{type:"x",x:D+M/2},{type:"y",y:h+I/2}].map((function(rt){var ot=g.debug?T.renderGuide(rt):void 0;return E(E({},rt),{component:k,componentView:R,componentEl:S,origin:S,componentElRect:x,originRect:x,guideEl:ot,guide:ot})}));return B.forEach((function(rt){var ot;return(ot=T.guides)===null||ot===void 0?void 0:ot.push(rt)})),B},getTranslate:function(m,T){T===void 0&&(T="x");var g=0;return(m||"").split(" ").forEach((function(S){var x=S.trim(),k="translate".concat(T.toUpperCase(),"(");x.indexOf(k)===0&&(g=parseFloat(x.replace(k,"")))})),g},setTranslate:function(m,T,g){var S="translate".concat(T.toUpperCase(),"("),x="".concat(S).concat(g,")"),k=(m||"").split(" ").map((function(R){return R.trim().indexOf(S)===0&&(R=x),R})).join(" ");return k.indexOf(S)<0&&(k+=" ".concat(x)),k},getPosition:function(){var m=this.target,T=this.isTran,g=m.getStyle(),S=g.transform,x=g.left,k=g.top,R=0,h=0;return T&&S?(R=this.getTranslate(S),h=this.getTranslate(S,"y")):(R=parseFloat(x??"0"),h=parseFloat(k??"0")),{x:R,y:h}},setPosition:function(m){var T,g,S=m.x,x=m.y,k=m.end,R=m.position,h=m.width,I=m.height,D=this,M=D.target,B=D.isTran,rt=D.em,ot=D.opts,dt="px",st=!k,Z="".concat(parseInt("".concat(S),10)).concat(dt),K="".concat(parseInt("".concat(x),10)).concat(dt),Q={};if(B){var z=(g=(T=M.getStyle())===null||T===void 0?void 0:T.transform)!==null&&g!==void 0?g:"";z=this.setTranslate(z,"x",Z),Q={transform:z=this.setTranslate(z,"y",K),__p:st}}else{var at={position:R,width:h,height:I},$={left:Z,top:K,__p:st};(0,w.keys)(at).forEach((function(mt){var X=at[mt];X&&($[mt]=X)})),Q=$}ot.addStyle?ot.addStyle({component:M,styles:Q,partial:!k}):M.addStyle(Q,{avoidStore:!k}),rt.Styles.__emitCmpStyleUpdate(Q,{components:rt.getSelected()})},_getDragData:function(){var m=this.target;return{target:m,parent:m.parent(),index:m.index()}},onStart:function(m){var T,g=this,S=g.target,x=g.editor,k=g.isTran,R=g.opts,h=x.Canvas,I=S.getStyle(),D="absolute",M=[D,"relative"];if((T=R.onStart)===null||T===void 0||T.call(R,this._getDragData()),!k){if(I.position!==D){var B=h.offset(S.getEl()),rt=B.left,ot=B.top,dt=B.width,st=B.height,Z=S.parent(),K=null;do{var Q=Z?.getStyle(),z=Q?.position;z&&(K=M.indexOf(z)>=0?Z:null),Z=Z?.parent()}while(Z&&!K);if(R.center){var at=h.getMouseRelativeCanvas(m);rt=at.x,ot=at.y}else if(K){var $=h.offset(K.getEl());rt-=$.left,ot-=$.top}this.setPosition({x:rt,y:ot,width:"".concat(dt,"px"),height:"".concat(st,"px"),position:D})}this.guidesStatic=this.getGuidesStatic()}},onDrag:function(m){var T,g,S=this,x=this.guidesTarget,k=this.opts;this.updateGuides(x),k.debug&&x?.forEach((function(R){return S.renderGuide(R)})),k.guidesInfo&&this.renderGuideInfo((T=x?.filter((function(R){return R.active})))!==null&&T!==void 0?T:[]),(g=k.onDrag)===null||g===void 0||g.call(k,this._getDragData()),this.opts.event=m,this.em.trigger("".concat(v,":move"),this.getEventOpts())},onEnd:function(m,T,g){var S,x=this,k=x.editor,R=x.opts,h=x.id;(S=R.onEnd)===null||S===void 0||S.call(R,m,g,E(E({event:m},g),this._getDragData())),k.stopCommand("".concat(h)),this.hideGuidesInfo(),this.em.trigger("".concat(v,":end"),this.getEventOpts())},hideGuidesInfo:function(){var m=this;["X","Y"].forEach((function(T){var g=m["elGuideInfo".concat(T)];g&&(g.style.display="none")}))},renderGuideInfo:function(m){var T=this;m===void 0&&(m=[]),this.hideGuidesInfo(),this.getGuidesMatched(m).forEach((function(g){T.opts.skipGuidesRender||T.renderSingleGuideInfo(g),T.em.trigger("".concat(v,":active"),E(E({},T.getEventOpts()),g))}))},renderSingleGuideInfo:function(m){var T=m.posFirst,g=m.posSecond,S=m.size,x=m.sizeRaw,k=m.guide,R=m.elGuideInfo,h=m.elGuideInfoCnt,I=((0,w.isUndefined)(k.x)?"y":"x")=="y",D=R.style;D.display="",D[I?"top":"left"]="".concat(T,"px"),D[I?"left":"top"]="".concat(g,"px"),D[I?"width":"height"]="".concat(S,"px"),h.innerHTML="".concat(Math.round(x),"px")},getGuidesMatched:function(m){var T=this;m===void 0&&(m=[]);var g=this.guidesStatic,S=g===void 0?[]:g;return m.map((function(x){var k=x.origin,R=x.x,h=T.getElementPos(k),I=(0,w.isUndefined)(R)?"y":"x",D=I==="y",M=h[D?"left":"top"],B=h.rect[D?"left":"top"],rt=D?M+h.width:M+h.height,ot=D?B+h.rect.width:B+h.rect.height,dt=S.filter((function(Rt){var ut;return Rt.type===x.type||((ut={l:["r","x"],r:["l","x"],x:["l","r"],t:["b","y"],b:["t","y"],y:["t","b"]}[x.type])===null||ut===void 0?void 0:ut.includes(Rt.type))})).map((function(Rt){var ut=Rt.originRect,Bt=ut.left,te=ut.width,oe=ut.top,Ht=ut.height,ee=D?Bt+te:oe+Ht;return{gap:ee0})).sort((function(Rt,ut){return Rt.gap-ut.gap})).map((function(Rt){return Rt.guide})).filter((function(Rt){switch(x.type){case"l":case"r":case"x":return Math.abs(Rt.x-x.x)<1;case"t":case"b":case"y":return Math.abs(Rt.y-x.y)<1;default:return!1}})),st=dt[0];if(st){var Z=st.originRect,K=Z.left,Q=Z.width,z=Z.top,at=Z.height,$=Z.rect,mt=D?K{"use strict";H.r(b),H.d(b,{default:()=>w});const w={run:function(N){if(N.Canvas.hasFocus()){var A=[];N.getSelectedAll().forEach((function(E){var v=E.components(),_=v&&v.filter((function(m){return m.get("selectable")}))[0];_&&A.push(_)})),A.length&&N.select(A)}}}},914:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>w});const w={run:function(N,A,E){if(E===void 0&&(E={}),N.Canvas.hasFocus()||E.force){var v=[];N.getSelectedAll().forEach((function(_){for(var m=_.parent();m&&!m.get("selectable");)m=m.parent();m&&v.push(m)})),v.length&&N.select(v)}}}},5547:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>w});const w={run:function(N){if(N.Canvas.hasFocus()){var A=[];N.getSelectedAll().forEach((function(E){var v=E.parent();if(v){var _,m=v.components().length,T=0,g=0;do T++,_=(g=E.index()+T)<=m?v.getChildAt(g):null;while(_&&!_.get("selectable"));A.push(_||E)}})),A.length&&N.select(A)}}}},8655:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>w});const w={run:function(N){if(N.Canvas.hasFocus()){var A=[];N.getSelectedAll().forEach((function(E){var v=E.parent();if(v){var _,m=0,T=0;do m++,_=(T=E.index()-m)>=0?v.getChildAt(T):null;while(_&&!_.get("selectable"));A.push(_||E)}})),A.length&&N.select(A)}}}},7640:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>N});var w=H(5706);const N={run:function(A,E,v){v===void 0&&(v={});var _=v.target,m=[];if(!_.get("styles"))return m;var T=_.get("type"),g=A.Pages.getAllWrappers();if(!(0,w.flatten)(g.map((function(x){return x.findType(T)}))).length){var S=A.CssComposer.getAll();m=S.filter((function(x){return x.get("group")==="cmp:".concat(T)})),S.remove(m)}return m}}},5837:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>N});var w=function(A,E,v){if(v||arguments.length===2)for(var _,m=0,T=E.length;m{"use strict";H.r(b),H.d(b,{default:()=>N});var w=H(6294);const N={run:function(A,E,v){var _=this;v===void 0&&(v={}),E&&E.set&&E.set("active",0);var m=A.getConfig(),T=A.Modal,g=m.stylePrefix;if(this.cm=A.CodeManager||null,!this.editors){var S=this.buildEditor("htmlmixed","hopscotch","HTML"),x=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=S.model,this.cssEditor=x.model;var k=(0,w.a_)("div",{class:"".concat(g,"export-dl")});k.appendChild(S.el),k.appendChild(x.el),this.editors=k}T.open({title:m.textViewCode,content:this.editors}).getModel().once("change:open",(function(){return A.stopCommand("".concat(_.id))})),this.htmlEditor.setContent(A.getHtml(v.optsHtml)),this.cssEditor.setContent(A.getCss(v.optsCss))},stop:function(A){var E=A.Modal;E&&E.close()},buildEditor:function(A,E,v){var _=this.em.CodeManager,m=_.createViewer({label:v,codeName:A,theme:E});return{model:m,el:new _.EditorView({model:m,config:_.getConfig()}).render().el}}}},1772:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>N});var w=H(5706);const N={isEnabled:function(){var A=document;return!!(A.fullscreenElement||A.webkitFullscreenElement||A.mozFullScreenElement)},enable:function(A){var E="";return A.requestFullscreen?A.requestFullscreen():A.webkitRequestFullscreen?(E="webkit",A.webkitRequestFullscreen()):A.mozRequestFullScreen?(E="moz",A.mozRequestFullScreen()):A.msRequestFullscreen&&A.msRequestFullscreen(),E},disable:function(){var A=document;this.isEnabled()&&(A.exitFullscreen?A.exitFullscreen():A.webkitExitFullscreen?A.webkitExitFullscreen():A.mozCancelFullScreen?A.mozCancelFullScreen():A.msExitFullscreen&&A.msExitFullscreen())},fsChanged:function(A){this.isEnabled()||(this.stopCommand({sender:this.sender}),document.removeEventListener("".concat(A||"","fullscreenchange"),this.fsChanged))},run:function(A,E,v){v===void 0&&(v={}),this.sender=E;var _=v.target,m=(0,w.isElement)(_)?_:document.querySelector(_),T=this.enable(m||A.getContainer());this.fsChanged=this.fsChanged.bind(this,T),document.addEventListener(T+"fullscreenchange",this.fsChanged)},stop:function(A,E){E&&E.set&&E.set("active",!1),this.disable()}}},741:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>_});var w=H(5706),N=H(7774),A=H(6294),E=H(9317),v=H(1406);const _=(0,w.extend)({},v.default,E.default,{init:function(m){E.default.init.apply(this,arguments),(0,w.bindAll)(this,"initSorter","rollback","onEndMove"),this.opt=m,this.hoverClass=this.ppfx+"highlighter-warning",this.badgeClass=this.ppfx+"badge-warning",this.noSelClass=this.ppfx+"no-select"},enable:function(){for(var m=[],T=0;T{"use strict";H.r(b),H.d(b,{default:()=>A});var w=H(5706),N=H(6294);const A={open:function(E){var v=this,_=this,m=_.editor,T=_.title,g=_.config,S=_.am,x=g.custom;if((0,w.isFunction)(x.open))return x.open(S.__customData());m.Modal.open({title:T,content:E}).onceClose((function(){return m.stopCommand(v.id)}))},close:function(){var E=this.config.custom;if((0,w.isFunction)(E.close))return E.close(this.am.__customData());var v=this.editor.Modal;v&&v.close()},run:function(E,v,_){_===void 0&&(_={});var m=E.AssetManager,T=m.getConfig(),g=_.types,S=g===void 0?[]:g,x=_.accept,k=_.select;if(this.title=_.modalTitle||E.t("assetManager.modalTitle")||"",this.editor=E,this.config=T,this.am=m,m.setTarget(_.target),m.onClick(_.onClick),m.onDblClick(_.onDblClick),m.onSelect(_.onSelect),m.__behaviour({select:k,types:S,options:_}),T.custom)this.rendered=this.rendered||(0,N.a_)("div"),this.rendered.className="".concat(T.stylePrefix,"custom-wrp"),m.__behaviour({container:this.rendered}),m.__trgCustom();else{if(!this.rendered||S){var R=m.getAll().filter((function(I){return I}));S&&S.length&&(R=R.filter((function(I){return S.indexOf(I.get("type"))!==-1}))),m.render(R),this.rendered=m.getContainer()}if(x){var h=this.rendered.querySelector("input#".concat(T.stylePrefix,"uploadFile"));h&&h.setAttribute("accept",x)}}return this.open(this.rendered),this},stop:function(E){this.editor=E,this.close(this.rendered)}}},3963:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>A});var w=H(5706),N=H(6294);const A={open:function(){var E=this,v=E.container,_=E.editor,m=E.bm,T=E.config,g=T.custom,S=T.appendTo;if((0,w.isFunction)(g.open))return g.open(m.__customData());if(this.firstRender&&!S){var x="views-container",k=_.Panels;(k.getPanel(x)||k.addPanel({id:x})).set("appendContent",v).trigger("change:appendContent"),g||v.appendChild(m.render())}v&&(v.style.display="block")},close:function(){var E=this.container,v=this.config.custom;if((0,w.isFunction)(v.close))return v.close(this.bm.__customData());E&&(E.style.display="none")},run:function(E){var v=E.Blocks;this.config=v.getConfig(),this.firstRender=!this.container,this.container=this.container||(0,N.a_)("div"),this.editor=E,this.bm=v;var _=this.container;v.__behaviour({container:_}),this.config.custom&&v.__trgCustom(),this.open()},stop:function(){this.close()}}},1479:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>w});const w={run:function(N){var A=N.LayerManager,E=N.Panels,v=A.getConfig();if(!v.appendTo){if(!this.layers){var _="views-container",m=document.createElement("div"),T=E.getPanel(_)||E.addPanel({id:_});v.custom?A.__trgCustom({container:m}):m.appendChild(A.render()),T.set("appendContent",m).trigger("change:appendContent"),this.layers=m}this.layers.style.display="block"}},stop:function(){var N=this.layers;N&&(N.style.display="none")}}},3473:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>N});var w=H(7774);const N={run:function(A,E){if(this.sender=E,!this.$cnt){var v=A.getConfig(),_=A.Panels,m=A.DeviceManager,T=A.SelectorManager,g=A.StyleManager,S="change:appendContent",x=(0,w.default)("
"),k=(0,w.default)("
"),R=(0,w.default)("
"),h=(0,w.default)("
");if(this.$cnt=x,this.$cntInner=k,k.append(R),k.append(h),x.append(k),m&&v.showDevices){var I=_.addPanel({id:"devices-c"}),D=m.render();I.set("appendContent",D).trigger(S)}var M=T.getConfig();M.custom?T.__trgCustom({container:R.get(0)}):M.appendTo||R.append(T.render([])),this.sm=g;var B=g.getConfig(),rt=B.stylePrefix;this.$header=(0,w.default)('
').concat(A.t("styleManager.empty"),"
")),x.append(this.$header),B.custom?g.__trgCustom({container:h.get(0)}):B.appendTo||h.append(g.render());var ot="views-container";(_.getPanel(ot)||_.addPanel({id:ot})).set("appendContent",x).trigger(S);var dt=A.getModel();this.listenTo(dt,g.events.target,this.toggleSm)}this.toggleSm()},toggleSm:function(){var A=this,E=A.sender,v=A.sm,_=A.$cntInner,m=A.$header;E&&E.get&&!E.get("active")||!v||(v.getSelected()?(_?.show(),m?.hide()):(_?.hide(),m?.show()))},stop:function(){var A,E;(A=this.$cntInner)===null||A===void 0||A.hide(),(E=this.$header)===null||E===void 0||E.hide()}}},5054:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>N});var w=H(7774);const N={run:function(A,E){this.sender=E;var v,_=A.getModel(),m=A.Config.stylePrefix,T=A.TraitManager,g=T.getConfig();if(!g.appendTo){if(!this.$cn){this.$cn=(0,w.default)("
"),this.$cn2=(0,w.default)("
"),this.$cn.append(this.$cn2),this.$header=(0,w.default)("
").append('
').concat(_.t("traitManager.empty"),"
")),this.$cn.append(this.$header),g.custom?T.__trgCustom({container:this.$cn2.get(0)}):(this.$cn2.append('
').concat(_.t("traitManager.label"),"
")),this.$cn2.append(T.render()));var S=A.Panels;(v=S.getPanel("views-container")?S.getPanel("views-container"):S.addPanel({id:"views-container"}))==null||v.set("appendContent",this.$cn.get(0)).trigger("change:appendContent"),this.target=A.getModel(),this.listenTo(this.target,"component:toggled",this.toggleTm)}this.toggleTm()}},toggleTm:function(){var A=this.sender;A&&A.get&&!A.get("active")||(this.target.getSelectedAll().length===1?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},6979:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>N});var w=H(5706);const N={run:function(E,v,_){_===void 0&&(_={});var m=E.getModel(),T=m.get("clipboard"),g=E.getSelected();T?.length&&g&&(E.getSelectedAll().forEach((function(S){var x,k,R,h,I=((k=(x=S.delegate)===null||x===void 0?void 0:x.copy)===null||k===void 0?void 0:k.call(x,S))||S,D=I.collection;if(D){var M={at:I.index()+1,action:_.action||"paste-component"};h=(0,w.contains)(T,I)&&I.get("copyable")?D.add(I.clone(),M):A(E,T,I.parent(),M)}else{var B=(R=m.Pages.getSelected())===null||R===void 0?void 0:R.getMainComponent();M={at:B?.components().length||0,action:_.action||"paste-component"},h=A(E,T,B,M)}(h=(0,w.isArray)(h)?h:[h]).forEach((function(rt){return E.trigger("component:paste",rt)}))})),g.emitUpdate())}};function A(E,v,_,m){var T=v.filter((function(g){return g.get("copyable")})).filter((function(g){return E.Components.canMove(_,g).result}));return _.components().add(T.map((function(g){return g.clone()})),m)}},4457:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>E});var w=H(5706),N=function(v,_,m){if(m||arguments.length===2)for(var T,g=0,S=_.length;g{"use strict";H.r(b),H.d(b,{default:()=>N});var w=function(){return w=Object.assign||function(A){for(var E,v=1,_=arguments.length;v<_;v++)for(var m in E=arguments[v])Object.prototype.hasOwnProperty.call(E,m)&&(A[m]=E[m]);return A},w.apply(this,arguments)};const N={run:function(A,E,v){var _=v||{},m=A.Canvas,T=m.getCanvasView(),g=w({appendTo:m.getResizerEl(),prefix:A.getConfig().stylePrefix,posFetcher:T.getElementPos.bind(T),mousePosFetcher:m.getMouseRelativePos.bind(m)},_.options||{}),S=this.canvasResizer;return S&&!_.forceNew||(this.canvasResizer=new A.Utils.Resizer(g),S=this.canvasResizer),S.setOptions(g,!0),S.blur(),S.focus(_.el),S},stop:function(){var A;(A=this.canvasResizer)===null||A===void 0||A.blur()}}},9317:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>Z});var w,N=H(5706),A=H(9156),E=(w=function(K,Q){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,at){z.__proto__=at}||function(z,at){for(var $ in at)Object.prototype.hasOwnProperty.call(at,$)&&(z[$]=at[$])},w(K,Q)},function(K,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function z(){this.constructor=K}w(K,Q),K.prototype=Q===null?Object.create(Q):(z.prototype=Q.prototype,new z)});const v=(function(K){function Q(){return K!==null&&K.apply(this,arguments)||this}return E(Q,K),Q.prototype.defaults=function(){return{command:"",attributes:{}}},Q})(A.Kx);var _=(function(){var K=function(Q,z){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,$){at.__proto__=$}||function(at,$){for(var mt in $)Object.prototype.hasOwnProperty.call($,mt)&&(at[mt]=$[mt])},K(Q,z)};return function(Q,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function at(){this.constructor=Q}K(Q,z),Q.prototype=z===null?Object.create(z):(at.prototype=z.prototype,new at)}})(),m=(function(K){function Q(){return K!==null&&K.apply(this,arguments)||this}return _(Q,K),Q})(A.pM);const T=m;m.prototype.model=v;var g=H(8242),S=(function(){var K=function(Q,z){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,$){at.__proto__=$}||function(at,$){for(var mt in $)Object.prototype.hasOwnProperty.call($,mt)&&(at[mt]=$[mt])},K(Q,z)};return function(Q,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function at(){this.constructor=Q}K(Q,z),Q.prototype=z===null?Object.create(z):(at.prototype=z.prototype,new at)}})(),x=function(){return x=Object.assign||function(K){for(var Q,z=1,at=arguments.length;z').concat(vt,"
"):"",`
').concat($.getName(),"
");mt.innerHTML=wt?wt($):Nt}var Xt="px";X.display="block";var zt=at.getTargetToElementFixed(K,mt,{pos:Q}).top,Qt=z.leftOff<0?-z.leftOff:0;X.top=zt+Xt,X.left=Qt+Xt}else X.display="none"},showHighlighter:function(K){this.canvas.getHighlighter(K).style.opacity=""},initResize:function(K){var Q=this.em,z=this.canvas,at=Q.Editor,$=!(0,N.isElement)(K)&&(0,M.GW)(K)?K:Q.getSelected(),mt=$?.get("resizable"),X=rt.F.Resize,kt=z.hasCustomSpot(X);z.removeSpots({type:X});var vt={component:$,hasCustomResize:kt,resizable:mt};$&&Q.trigger(ot.I.resizeInit,vt);var Ct=vt.resizable;if($&&Ct){z.addSpot({type:X,component:$});var gt,wt=(0,N.isElement)(K)?K:$.getEl(),Nt=(0,B.isObject)(Ct)?Ct:{},Xt=Nt.onStart,zt=Xt===void 0?function(){}:Xt,Qt=Nt.onMove,Rt=Qt===void 0?function(){}:Qt,ut=Nt.onEnd,Bt=ut===void 0?function(){}:ut,te=Nt.updateTarget,oe=te===void 0?function(){}:te,Ht=st(Nt,["onStart","onMove","onEnd","updateTarget"]);if(kt||!wt||this.activeResizer)return;var ee=Q.config.stylePrefix||"",me="".concat(ee,"resizing"),ue=this,ce={component:$,el:wt},Ue=function(Ge,Ze,Pe){var It=Pe.docs;It&&It.forEach((function(G){var tt=G.body,bt=tt.className||"";tt.className=(Ge=="add"?"".concat(bt," ").concat(me):bt.replace(me,"")).trim()}))},en=dt({onStart:function(Ge,Ze){zt(Ge,Ze);var Pe=Ze.el,It=Ze.config,G=Ze.resizer,tt=It.keyHeight,bt=It.keyWidth,Mt=It.currentUnit,Gt=It.keepAutoHeight,Kt=It.keepAutoWidth;Ue("add",0,Ze),gt=Q.Styles.getModelToStyle($);var se=getComputedStyle(Pe),Se=gt.getStyle(),Qe=Se[bt];It.autoWidth=Kt&&Qe==="auto",isNaN(parseFloat(Qe))&&(Qe=se[bt]);var ke=Se[tt];It.autoHeight=Gt&&ke==="auto",isNaN(parseFloat(ke))&&(ke=se[tt]),G.startDim.w=parseFloat(Qe),G.startDim.h=parseFloat(ke),D=!1,Mt&&(It.unitHeight=(0,B.getUnitFromValue)(ke),It.unitWidth=(0,B.getUnitFromValue)(Qe)),ue.activeResizer=!0,at.trigger(ot.I.resize,dt(dt({},ce),{type:"start"}))},onMove:function(Ge){Rt(Ge),at.trigger(ot.I.resize,dt(dt({},ce),{type:"move"}))},onEnd:function(Ge,Ze){Bt(Ge,Ze),Ue("remove",0,Ze),at.trigger(ot.I.resize,dt(dt({},ce),{type:"end"})),D=!0,ue.activeResizer=!1},updateTarget:function(Ge,Ze,Pe){var It;if(oe(Ge,Ze,Pe),gt){var G=Pe.store,tt=Pe.selectedHandler,bt=Pe.config,Mt=bt.keyHeight,Gt=bt.keyWidth,Kt=bt.autoHeight,se=bt.autoWidth,Se=bt.unitWidth,Qe=bt.unitHeight,ke=["tc","bc"].indexOf(tt)>=0,nn=["cl","cr"].indexOf(tt)>=0,ve={};if(!ke){var pn=((It=z.getBody())===null||It===void 0?void 0:It.offsetWidth)||0,pt=Ze.w{"use strict";H.r(b),H.d(b,{default:()=>E});var w=H(7774),N=H(1447),A=H(8433);const E={startSelectPosition:function(v,_,m){m===void 0&&(m={}),this.isPointed=!1;var T=this.em.Utils,g=v[0].ownerDocument.body;T&&(this.sorter=new T.ComponentSorter({em:this.em,treeClass:N.A,containerContext:{container:g,containerSel:"*",itemSel:"*",pfx:this.ppfx,document:_,placeholderElement:this.canvas.getPlacerEl()},positionOptions:{windowMargin:1,canvasRelative:!0},dragBehavior:{dragDirection:A.A.BothDirections,nested:!0}})),m.onStart&&(this.sorter.eventHandlers.legacyOnStartSort=m.onStart),v&&v.length>0&&this.sorter.startSort(v.map((function(S){return{element:S}})))},getOffsetDim:function(){var v=this.offset(this.canvas.getFrameEl()),_=this.offset(this.canvas.getElement());return{top:v.top-_.top,left:v.left-_.left}},stopSelectPosition:function(){this.posTargetCollection=null,this.posIndex=this.posMethod=="after"&&this.cDim.length!==0?this.posIndex+1:this.posIndex,this.sorter&&this.sorter.cancelDrag(),this.cDim&&(this.posIsLastEl=this.cDim.length!==0&&this.posMethod=="after"&&this.posIndex==this.cDim.length,this.posTargetEl=this.cDim.length===0?(0,w.default)(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?(0,w.default)(this.cDim[this.posIndex][5]).parent():(0,w.default)(this.outsideElem),this.posTargetModel=this.posTargetEl.data("model"),this.posTargetCollection=this.posTargetEl.data("model-comp"))},enable:function(){this.startSelectPosition()},nearFloat:function(v,_,m){var T=v||0,g=_||"before",S=m.length,x=S!==0&&g=="after"&&T==S;return S!==0&&(!x&&!m[T][4]||m[T-1]&&!m[T-1][4]||x&&!m[T-1][4])?1:0},run:function(){this.enable()},stop:function(){this.stopSelectPosition(),this.$wrapper.css("cursor",""),this.$wrapper.unbind()}}},9395:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>v});var w=H(5706),N=H(179),A=H(7774),E=function(){return E=Object.assign||function(_){for(var m,T=1,g=arguments.length;T')).get(0),vt=(0,A.default)('
')).get(0),Ct=M+X+"-el",gt="".concat(M+mt+"-el"," ").concat(M+mt),wt="".concat(Ct," ").concat(M+X);ot=(0,A.default)('
')).get(0),dt=(0,A.default)('
')).get(0),st=(0,A.default)('
')).get(0),Z=(0,A.default)('
')).get(0),K=(0,A.default)('
')).get(0),Q=(0,A.default)('
')).get(0),z=(0,A.default)('
')).get(0),at=(0,A.default)('
')).get(0),this["marginT"+x]=ot,this["marginB"+x]=dt,this["marginL"+x]=st,this["marginR"+x]=Z,this["padT"+x]=K,this["padB"+x]=Q,this["padL"+x]=z,this["padR"+x]=at,kt.appendChild(ot),kt.appendChild(dt),kt.appendChild(st),kt.appendChild(Z),vt.appendChild(K),vt.appendChild(Q),vt.appendChild(z),vt.appendChild(at),rt.appendChild(kt),rt.appendChild(vt),this[B]="1"}var Nt="px",Xt=parseFloat(D.marginLeft.replace(Nt,""))*R,zt=parseFloat(D.marginRight.replace(Nt,""))*R,Qt=parseFloat(D.marginTop.replace(Nt,""))*R,Rt=parseFloat(D.marginBottom.replace(Nt,""))*R,ut=ot.style,Bt=dt.style,te=st.style,oe=Z.style,Ht=K.style,ee=Q.style,me=z.style,ue=at.style,ce=parseFloat(I.left),Ue=parseFloat(D.width)*R+Nt;ut.height=Qt+Nt,ut.width=Ue,ut.top=I.top-Qt+Nt,ut.left=ce+Nt,Bt.height=Rt+Nt,Bt.width=Ue,Bt.top=I.top+I.height+Nt,Bt.left=ce+Nt;var en=I.height+Qt+Rt+Nt,Ge=I.top-Qt+Nt;te.height=en,te.width=Xt+Nt,te.top=Ge,te.left=ce-Xt+Nt,oe.height=en,oe.width=zt+Nt,oe.top=Ge,oe.left=ce+I.width+Nt;var Ze=parseFloat(D.paddingTop)*R;Ht.height=Ze+Nt;var Pe=parseFloat(D.paddingBottom)*R;ee.height=Pe+Nt;var It=I.height-Pe-Ze+Nt,G=I.top+Ze+Nt;me.height=It,me.width=parseFloat(D.paddingLeft)*R+Nt,me.top=G;var tt=parseFloat(D.paddingRight)*R;ue.height=It,ue.width=tt+Nt,ue.top=G}}else _.stopCommand("".concat(this.id),T)},stop:function(_,m,T){T===void 0&&(T={});var g=(T||{}).state||"",S=this.getOffsetMethod(g),x=T.view;this.canvas[S](x).style.opacity=0}}},7285:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>A});var w=H(5706),N=H(1166);const A={init:function(){(0,w.bindAll)(this,"_onFramesChange")},run:function(E){this.toggleVis(E,!0)},stop:function(E){this.toggleVis(E,!1)},toggleVis:function(E,v){if(v===void 0&&(v=!0),!E.Commands.isActive("preview")){var _=E.Canvas,m=v?"on":"off";_.getModel()[m]("change:frames",this._onFramesChange),this.handleFrames(_.getFrames(),v)}},handleFrames:function(E,v){var _=this;E.forEach((function(m){var T;!((T=m.view)===null||T===void 0)&&T.loaded&&_._upFrame(m,v),m.__ol||(m.on("loaded",(function(){return _._upFrame(m)})),m.__ol=!0)}))},_onFramesChange:function(E,v){this.handleFrames(v)},_upFrame:function(E,v){var _,m=this,T=m.ppfx,g=m.em,S=m.id,x=((0,N.isDef)(v)?v:g.Commands.isActive(S))?"add":"remove",k="".concat(T,"dashed");(_=E.view)===null||_===void 0||_.getBody().classList[x](k)}}},9156:(j,b,H)=>{"use strict";H.d(b,{Kx:()=>T,Ss:()=>S,e2:()=>m,lK:()=>x,pM:()=>g,x2:()=>N});var w,N,A=H(4193),E=H.n(A),v=(w=function(k,R){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,I){h.__proto__=I}||function(h,I){for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&(h[D]=I[D])},w(k,R)},function(k,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function h(){this.constructor=k}w(k,R),k.prototype=R===null?Object.create(R):(h.prototype=R.prototype,new h)}),_=function(){return _=Object.assign||function(k){for(var R,h=1,I=arguments.length;h{"use strict";var w,N;H.d(b,{I:()=>N,t:()=>w}),(function(A){A.remove="component:remove",A.add="component:add",A.move="component:move"})(w||(w={})),(function(A){A.add="component:add",A.remove="component:remove",A.removeBefore="component:remove:before",A.removed="component:removed",A.create="component:create",A.update="component:update",A.updateInside="component:update-inside",A.styleUpdate="component:styleUpdate",A.styleUpdateProperty="component:styleUpdate:",A.select="component:select",A.selectBefore="component:select:before",A.mount="component:mount",A.scriptMount="component:script:mount",A.scriptMountBefore="component:script:mount:before",A.scriptUnmount="component:script:unmount",A.render="component:render",A.input="component:input",A.resize="component:resize",A.resizeInit="component:resize:init",A.symbolMainAdd="symbol:main:add",A.symbolMainUpdate="symbol:main:update",A.symbolMainUpdateDeep="symbol:main:update-deep",A.symbolMainRemove="symbol:main:remove",A.symbolMain="symbol:main",A.symbolInstanceAdd="symbol:instance:add",A.symbolInstanceRemove="symbol:instance:remove",A.symbolInstance="symbol:instance",A.symbol="symbol"})(N||(N={}))},8242:(j,b,H)=>{"use strict";H.d(b,{A:()=>_});var w,N=H(5706),A=H(9156),E=(w=function(m,T){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,S){g.__proto__=S}||function(g,S){for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(g[x]=S[x])},w(m,T)},function(m,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function g(){this.constructor=m}w(m,T),m.prototype=T===null?Object.create(T):(g.prototype=T.prototype,new g)}),v=(function(m){function T(g,S,x){g===void 0&&(g={}),x===void 0&&(x=!1);var k=m.call(this,g)||this;return k.itemsView="",k.itemType="type",k.reuseView=!1,k.config=S||g.config||{},x&&k.listenTo(k.collection,"add",k.addTo),k.items=[],k}return E(T,m),T.prototype.addTo=function(g){this.add(g)},T.prototype.itemViewNotFound=function(g){var S=this.config,x=this.ns,k=S.em,R="".concat(x?"[".concat(x,"]: "):"","'").concat(g,"' type not found");k&&k.logWarning(R)},T.prototype.add=function(g,S){var x,k=this,R=k.config,h=k.reuseView,I=k.items,D=this.itemsView||{},M=S||null,B=this.itemView,rt=g.get(this.itemType);D[rt]?B=D[rt]:!rt||D[rt]||(0,N.includes)(["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],rt)||this.itemViewNotFound(rt),x=g.view&&h?g.view:new B({model:g,config:R},R),I&&I.push(x);var ot=x.render().el;M?M.appendChild(ot):this.$el.append(ot)},T.prototype.render=function(){var g=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(S){this.add(S,g)}),this),this.$el.append(g),this.onRender(),this},T.prototype.onRender=function(){},T.prototype.onRemoveBefore=function(g,S){},T.prototype.onRemove=function(g,S){},T.prototype.remove=function(g){g===void 0&&(g={});var S=this.items;return this.onRemoveBefore(S,g),this.clearItems(),m.prototype.remove.call(this),this.onRemove(S,g),this},T.prototype.clearItems=function(){this.items},T})(A.Ss);const _=v;v.prototype.itemView=""},9966:(j,b,H)=>{"use strict";H.d(b,{A:()=>v});var w=H(5706),N=H(6294),A=function(){return A=Object.assign||function(_){for(var m,T=1,g=arguments.length;T=T&&m<=T+ot||m<=T&&m>=T-ot)},_.prototype.setGuideLock=function(m,T){var g=(0,w.isUndefined)(m.x)?"Y":"X",S="trg".concat(g);return T!==null?(m.active=!0,m.lock=T,this[S]=m):(delete m.active,delete m.lock,delete this[S]),m},_.prototype.stop=function(m,T){T===void 0&&(T={});var g=this.delta,S=!!T.cancel,x=S?0:g.x,k=S?0:g.y;this.toggleDrag(),this.move(x,k,!0);var R=this.opts.onEnd;(0,w.isFunction)(R)&&R(m,this,{cancelled:S})},_.prototype.keyHandle=function(m){(0,N.v$)(m)&&this.stop(m,{cancel:!0})},_.prototype.move=function(m,T,g){var S=this.el,x=this.opts,k=this.startPosition;if(k){var R=x.setPosition,h=k.x+m,I=k.y+T;this.position={x:h,y:I,end:g},(0,w.isFunction)(R)&&R(this.position),S&&(S.style.left="".concat(h,"px"),S.style.top="".concat(I,"px"))}},_.prototype.getContainerEl=function(){var m=this.opts.container;return m?[m]:this.getDocumentEl()},_.prototype.getWindowEl=function(){return this.getContainerEl().map((function(m){var T=m.ownerDocument||m;return T.defaultView||T.parentWindow}))},_.prototype.getDocumentEl=function(m){var T=this.opts.doc;if(m=m||this.el,!this.docs.length){var g=[document];m&&g.push(m.ownerDocument),T&&g.push(T),this.docs=g}return this.docs},_.prototype.getPointerPos=function(m){var T=this.opts.getPointerPosition,g=(0,N.G2)(m);return T?T(m):{x:g.clientX,y:g.clientY}},_.prototype.getStartPosition=function(){var m=this.el,T=this.opts.getPosition,g={x:0,y:0};return(0,w.isFunction)(T)?g=T():m&&(g={x:parseFloat(m.style.left),y:parseFloat(m.style.top)}),g},_.prototype.getScrollInfo=function(){var m=this.opts.doc,T=m&&m.body;return{y:T?T.scrollTop:0,x:T?T.scrollLeft:0}},_.prototype.detectAxisLock=function(m,T){var g=m,S=T,x=Math.abs(g),k=Math.abs(S);return S>=x||S<=-x?"x":g>k||g<-k?"y":void 0},_})()},7774:(j,b,H)=>{"use strict";H.r(b),H.d(b,{default:()=>pn});var w=typeof document<"u"?document:null,N=typeof window<"u"?window:null,A=Array.prototype,E=A.filter,v=A.indexOf,_=A.map,m=A.push,T=A.reverse,g=A.slice,S=A.splice,x=/^#[\w-]*$/,k=/^\.[\w-]*$/,R=/<.+>/,h=/^\w+$/;function I(pt,ft){return ft===void 0&&(ft=w),k.test(pt)?ft.getElementsByClassName(pt.slice(1)):h.test(pt)?ft.getElementsByTagName(pt):ft.querySelectorAll(pt)}function D(pt,ft){if(ft===void 0&&(ft=w),pt){if(pt.__cash)return pt;var Dt=pt;if(z(pt)){if(ft.__cash&&(ft=ft[0]),!(Dt=x.test(pt)?ft.getElementById(pt.slice(1)):R.test(pt)?ke(pt):I(pt,ft)))return}else if(Q(pt))return this.ready(pt);(Dt.nodeType||Dt===N)&&(Dt=[Dt]),this.length=Dt.length;for(var qt=0,ie=this.length;qt=0})):Dt.value=ie}))},B.clone=function(){return this.map((function(pt,ft){return ft.cloneNode(!0)}))},B.detach=function(){return this.each((function(pt,ft){ft.parentNode&&ft.parentNode.removeChild(ft)}))};var se,Se=/^\s*<(\w+)[^>]*>/,Qe=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function ke(pt){if((function(){if(!se){var qt=w.createElement("table"),ie=w.createElement("tr");se={"*":w.createElement("div"),tr:w.createElement("tbody"),td:ie,th:ie,thead:qt,tbody:qt,tfoot:qt}}})(),!z(pt))return[];if(Qe.test(pt))return[w.createElement(RegExp.$1)];var ft=Se.test(pt)&&RegExp.$1,Dt=se[ft]||se["*"];return Dt.innerHTML=pt,M(Dt.childNodes).detach().get()}function nn(pt,ft,Dt){if(ft!==void 0){var qt=z(ft);!qt&&ft.length?st(ft,(function(ie){return nn(pt,ie,Dt)})):st(pt,qt?function(ie){ie.insertAdjacentHTML(Dt?"afterbegin":"beforeend",ft)}:function(ie,je){return(function(ze,_n,kn){kn?ze.insertBefore(_n,ze.childNodes[0]):ze.appendChild(_n)})(ie,je?ft.cloneNode(!0):ft,Dt)})}}M.parseHTML=ke,B.empty=function(){var pt=this[0];if(pt)for(;pt.firstChild;)pt.removeChild(pt.firstChild);return this},B.append=function(){var pt=this;return st(arguments,(function(ft){nn(pt,ft)})),this},B.appendTo=function(pt){return nn(M(pt),this),this},B.html=function(pt){if(pt===void 0)return this[0]&&this[0].innerHTML;var ft=pt.nodeType?pt[0].outerHTML:pt;return this.each((function(Dt,qt){qt.innerHTML=ft}))},B.insertAfter=function(pt){var ft=this;return M(pt).each((function(Dt,qt){var ie=qt.parentNode;ft.each((function(je,ze){ie.insertBefore(Dt?ze.cloneNode(!0):ze,qt.nextSibling)}))})),this},B.after=function(){var pt=this;return st(T.apply(arguments),(function(ft){T.apply(M(ft).slice()).insertAfter(pt)})),this},B.insertBefore=function(pt){var ft=this;return M(pt).each((function(Dt,qt){var ie=qt.parentNode;ft.each((function(je,ze){ie.insertBefore(Dt?ze.cloneNode(!0):ze,qt)}))})),this},B.before=function(){var pt=this;return st(arguments,(function(ft){M(ft).insertBefore(pt)})),this},B.prepend=function(){var pt=this;return st(arguments,(function(ft){nn(pt,ft,!0)})),this},B.prependTo=function(pt){return nn(M(pt),T.apply(this.slice()),!0),this},B.remove=function(){return this.detach().off()},B.replaceWith=function(pt){var ft=this;return this.each((function(Dt,qt){var ie=qt.parentNode;if(ie){var je=Dt?M(pt).clone():M(pt);if(!je[0])return ft.remove(),!1;ie.replaceChild(je[0],qt),M(je[0]).after(je.slice(1))}}))},B.replaceAll=function(pt){return M(pt).replaceWith(this),this},B.text=function(pt){return pt===void 0?this[0]?this[0].textContent:"":this.each((function(ft,Dt){Dt.textContent=pt}))};var ve=w&&w.documentElement;B.offset=function(){var pt=this[0];if(pt){var ft=pt.getBoundingClientRect();return{top:ft.top+N.pageYOffset-ve.clientTop,left:ft.left+N.pageXOffset-ve.clientLeft}}},B.offsetParent=function(){return M(this[0]&&this[0].offsetParent)},B.position=function(){var pt=this[0];if(pt)return{left:pt.offsetLeft,top:pt.offsetTop}},B.children=function(pt){var ft=[];return this.each((function(Dt,qt){m.apply(ft,qt.children)})),ft=M(vt(ft)),pt?ft.filter((function(Dt,qt){return K(qt,pt)})):ft},B.contents=function(){var pt=[];return this.each((function(ft,Dt){m.apply(pt,Dt.tagName==="IFRAME"?[Dt.contentDocument]:Dt.childNodes)})),M(pt.length&&vt(pt))},B.find=function(pt){for(var ft=[],Dt=0,qt=this.length;Dt{"use strict";H.d(b,{AU:()=>vt,BC:()=>h,C8:()=>dt,Ch:()=>K,Ci:()=>at,D8:()=>v,G2:()=>Q,GW:()=>ot,GZ:()=>D,I6:()=>g,LJ:()=>mt,Sc:()=>R,X6:()=>S,Xy:()=>st,YZ:()=>m,ZQ:()=>_,_I:()=>Ct,a_:()=>I,af:()=>B,bG:()=>k,cx:()=>T,ir:()=>rt,kk:()=>X,on:()=>kt,rp:()=>$,v$:()=>z,yL:()=>M,zN:()=>x});var w=H(5706),N=function(gt,wt,Nt){if(Nt||arguments.length===2)for(var Xt,zt=0,Qt=wt.length;zt=zt?gt.appendChild(wt):gt.insertBefore(wt,Xt[Qt])},h=function(gt,wt){return R(gt,wt)},I=function(gt,wt,Nt){wt===void 0&&(wt={});var Xt=document.createElement(gt);return wt&&(0,w.each)(wt,(function(zt,Qt){return Xt.setAttribute(Qt,zt)})),Nt&&((0,w.isString)(Nt)?Xt.innerHTML=Nt:Xt.appendChild(Nt)),Xt},D=function(gt){return document.createTextNode(gt)},M=function(gt,wt){var Nt,Xt=gt.type;try{Nt=new window[wt](Xt,gt)}catch{(Nt=document.createEvent(wt)).initEvent(Xt,!0,!0)}return Nt._parentEvent=gt,Xt.indexOf("key")===0&&(Nt.keyCodeVal=gt.keyCode,["keyCode","which"].forEach((function(zt){Object.defineProperty(Nt,zt,{get:function(){return this.keyCodeVal}})}))),Nt},B=function(gt,wt){wt===void 0&&(wt=[]),(Array.isArray(wt)?wt:[wt]).forEach((function(Nt){var Xt=Nt[A]||"div",zt=Nt[E]||{},Qt=document.createElement(Xt);(0,w.each)(zt,(function(Rt,ut){Qt.setAttribute(ut,Rt)})),gt.appendChild(Qt)}))},rt=function(gt){return gt?.nodeType===Node.TEXT_NODE},ot=function(gt){return gt&&!rt(gt)&&!(function(wt){return wt?.nodeType===Node.COMMENT_NODE})(gt)},dt=function(gt){var wt,Nt={top:0,left:0,width:0,height:0};if(!gt)return Nt;if(rt(gt)){var Xt=document.createRange();Xt.selectNode(gt),wt=Xt.getBoundingClientRect(),Xt.detach()}return wt||(gt.getBoundingClientRect?gt.getBoundingClientRect():Nt)},st=function(gt){var wt=gt?.ownerDocument||document,Nt=wt.documentElement,Xt=wt.defaultView||window;return{x:(Xt.pageXOffset||Nt.scrollLeft||0)-(Nt.clientLeft||0),y:(Xt.pageYOffset||Nt.scrollTop||0)-(Nt.clientTop||0)}},Z=function(gt){return gt.which||gt.keyCode},K=function(gt){return String.fromCharCode(Z(gt))},Q=function(gt){return gt.touches&>.touches[0]?gt.touches[0]:gt},z=function(gt){return Z(gt)===27},at=function(gt){return Z(gt)===13},$=function(gt){return(function(wt){return wt.ctrlKey})(gt)||gt.metaKey},mt=function(gt){if(!gt)return"";var wt=gt.name,Nt=gt.publicId,Xt=gt.systemId,zt=Nt?' PUBLIC "'.concat(Nt,'"'):"",Qt=!Nt&&Xt?' SYSTEM "'.concat(Xt,'"'):"";return"")},X=function(gt){gt===void 0&&(gt={});var wt=[];return(0,w.each)(gt,(function(Nt,Xt){return wt.push("".concat(Xt,'="').concat(Nt,'"'))})),wt.join(" ")},kt=function(gt,wt,Nt,Xt){var zt=wt.split(/\s+/),Qt=(0,w.isArray)(gt)?gt:[gt];zt.forEach((function(Rt){Qt.forEach((function(ut){return ut?.addEventListener(Rt,Nt,Xt)}))}))},vt=function(gt,wt,Nt,Xt){var zt=wt.split(/\s+/),Qt=(0,w.isArray)(gt)?gt:[gt];zt.forEach((function(Rt){Qt.forEach((function(ut){return ut?.removeEventListener(Rt,Nt,Xt)}))}))},Ct=function(gt){return gt.replace(/-([a-zA-Z0-9])/g,(function(wt,Nt){return Nt.toUpperCase()}))}},1166:(j,b,H)=>{"use strict";H.r(b),H.d(b,{appendStyles:()=>dt,buildBase64UrlFromSvg:()=>oe,camelCase:()=>Q,capitalize:()=>Nt,createId:()=>te,deepMerge:()=>vt,escape:()=>X,escapeNodeContent:()=>kt,find:()=>mt,get:()=>g,getComponentModel:()=>ut,getComponentView:()=>Rt,getElement:()=>$,getGlobal:()=>D,getModel:()=>Ct,getUiClass:()=>ot,getUnitFromValue:()=>Z,getViewEl:()=>zt,hasDnd:()=>at,hasWin:()=>I,isBultInMethod:()=>x,isComponent:()=>Qt,isDef:()=>h,isEmptyObj:()=>wt,isObject:()=>gt,isRule:()=>Xt,matches:()=>rt,normalizeFloat:()=>z,normalizeKey:()=>k,serialize:()=>S,setViewEl:()=>Bt,shallowDiff:()=>st,stringToPath:()=>T,toLowerCase:()=>M,upFirst:()=>K,wait:()=>R});var w=H(5706),N=H(6294),A=function(){return A=Object.assign||function(Ht){for(var ee,me=1,ue=arguments.length;me=0?Ue!==en&&(me[ce]=en):me[ce]=null}for(var ce in ee)ee.hasOwnProperty(ce)&&(0,w.isUndefined)(Ht[ce])&&(me[ce]=ee[ce]);return me},Z=function(Ht){return Ht.replace(parseFloat(Ht),"")},K=function(Ht){return Ht[0].toUpperCase()+Ht.toLowerCase().slice(1)},Q=function(Ht){return Ht.replace(/-./g,(function(ee){return ee[1].toUpperCase()}))},z=function(Ht,ee,me){ee===void 0&&(ee=1),me===void 0&&(me=0);var ue=0;if(isNaN(Ht))return me;if(Ht=parseFloat(Ht),Math.floor(Ht)!==Ht){var ce=ee.toString().split(".")[1];ue=ce?ce.length:0}return ue?parseFloat(Ht.toFixed(ue)):Ht},at=function(Ht){return"draggable"in document.createElement("i")&&(!Ht||Ht.config.nativeDnD)},$=function(Ht){return(0,w.isElement)(Ht)||(0,N.ir)(Ht)?Ht:Ht&&Ht.getEl?Ht.getEl():void 0},mt=function(Ht,ee){var me=null;return Ht.some((function(ue,ce){return ee(ue,ce,Ht)?(me=ue,1):0})),me},X=function(Ht){return Ht===void 0&&(Ht=""),"".concat(Ht).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},kt=function(Ht){return Ht===void 0&&(Ht=""),"".concat(Ht).replace(/&/g,"&").replace(//g,">")},vt=function(){for(var Ht=[],ee=0;ee{"use strict";H.d(b,{h:()=>E});var w,N=H(3178),A=(w=function(v,_){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,T){m.__proto__=T}||function(m,T){for(var g in T)Object.prototype.hasOwnProperty.call(T,g)&&(m[g]=T[g])},w(v,_)},function(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=v}w(v,_),v.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)}),E=(function(v){function _(){var m=v!==null&&v.apply(this,arguments)||this;return m.displayCache=new Map,m}return A(_,v),_.prototype.getChildren=function(){return this.getDisplayedChildren()},_.prototype.getDisplayedChildren=function(){var m=this;return this.model.components().filter((function(T){return m.isChildDisplayed(T)})).map((function(T){return new m.constructor(T)}))},_.prototype.isChildDisplayed=function(m){if(this.displayCache.has(m))return this.displayCache.get(m);var T=(function(g){return!!g&&typeof g=="object"&&g.nodeType===Node.ELEMENT_NODE&&window.getComputedStyle(g).display!=="none"&&g.offsetWidth>0&&g.offsetHeight>0})(m.getEl());return this.displayCache.set(m,T),T},_.prototype.getParent=function(){var m=this.model.parent();return m?new this.constructor(m):null},_.prototype.addChildAt=function(m,T,g){var S,x,k,R,h,I,D,M;if(g===void 0&&(g={action:"add-component"}),((x=(S=this.model)===null||S===void 0?void 0:S.isInstanceOf)===null||x===void 0?void 0:x.call(S,"text"))&&((R=(k=m?.model)===null||k===void 0?void 0:k.get)===null||R===void 0?void 0:R.call(k,"textable")))return(M=(D=(I=(h=this.model)===null||h===void 0?void 0:h.getView)===null||I===void 0?void 0:I.call(h))===null||D===void 0?void 0:D.insertComponent)===null||M===void 0?void 0:M.call(D,m?.model,{action:g.action});var B=this.model.components().add(m.model,{at:this.getRealIndex(T),action:g.action});return new this.constructor(B)},_.prototype.removeChildAt=function(m,T){T===void 0&&(T={temporary:!1});var g=this.model.components().at(this.getRealIndex(m));g&&this.model.components().remove(g,T)},_.prototype.indexOfChild=function(m){return this.getDisplayIndex(m)},_.prototype.getDisplayIndex=function(m){var T=this.getDisplayedChildren();return T?T.findIndex((function(g){return g.model===m.model})):-1},_.prototype.getRealIndex=function(m){if(m===-1)return-1;for(var T=0,g=this.model.components(),S=0;S{"use strict";H.d(b,{A:()=>E});var w,N=H(6756),A=(w=function(v,_){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,T){m.__proto__=T}||function(m,T){for(var g in T)Object.prototype.hasOwnProperty.call(T,g)&&(m[g]=T[g])},w(v,_)},function(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=v}w(v,_),v.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)});const E=(function(v){function _(){var m=v!==null&&v.apply(this,arguments)||this;return m._dropAreaConfig={ratio:.8,minUndroppableDimension:1,maxUndroppableDimension:15},m}return A(_,v),Object.defineProperty(_.prototype,"view",{get:function(){var m,T;return(T=(m=this.model).getView)===null||T===void 0?void 0:T.call(m)},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"element",{get:function(){var m,T;return(T=(m=this.model).getEl)===null||T===void 0?void 0:T.call(m)},enumerable:!1,configurable:!0}),_})(N.h)},3178:(j,b,H)=>{"use strict";H.d(b,{$:()=>w});var w=(function(){function N(A,E){E===void 0&&(E={}),this._dropAreaConfig={ratio:1,minUndroppableDimension:0,maxUndroppableDimension:0},this._model=A,this._dragSource=E}return Object.defineProperty(N.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"dragSource",{get:function(){return this._dragSource},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"dropArea",{get:function(){var A,E;return this.getParent()?(E=this.nodeDimensions)===null||E===void 0?void 0:E.getDropArea(this._dropAreaConfig):(A=this.nodeDimensions)===null||A===void 0?void 0:A.clone()},enumerable:!1,configurable:!0}),N.prototype.isWithinDropBounds=function(A,E){return!!this.dropArea&&this.dropArea.isWithinBounds(A,E)},N.prototype.equals=function(A){return!!A?._model&&this._model===A._model},N.prototype.adjustDimensions=function(A){var E,v;A.topDifference===0&&A.leftDifference===0||((E=this.nodeDimensions)===null||E===void 0||E.adjustDimensions(A),(v=this.childrenDimensions)===null||v===void 0||v.forEach((function(_){return _.adjustDimensions(A)})))},N})()},8433:(j,b,H)=>{"use strict";var w;H.d(b,{A:()=>w}),(function(N){N.Vertical="Vertical",N.Horizontal="Horizontal",N.BothDirections="BothDirections"})(w||(w={}))},585:(j,b,H)=>{var w={"./CanvasClear":9484,"./CanvasClear.ts":9484,"./CanvasMove":9516,"./CanvasMove.ts":9516,"./CommandAbstract":9946,"./CommandAbstract.ts":9946,"./ComponentDelete":7801,"./ComponentDelete.ts":7801,"./ComponentDrag":4864,"./ComponentDrag.ts":4864,"./ComponentEnter":6134,"./ComponentEnter.ts":6134,"./ComponentExit":914,"./ComponentExit.ts":914,"./ComponentNext":5547,"./ComponentNext.ts":5547,"./ComponentPrev":8655,"./ComponentPrev.ts":8655,"./ComponentStyleClear":7640,"./ComponentStyleClear.ts":7640,"./CopyComponent":5837,"./CopyComponent.ts":5837,"./ExportTemplate":6477,"./ExportTemplate.ts":6477,"./Fullscreen":1772,"./Fullscreen.ts":1772,"./MoveComponent":741,"./MoveComponent.ts":741,"./OpenAssets":2924,"./OpenAssets.ts":2924,"./OpenBlocks":3963,"./OpenBlocks.ts":3963,"./OpenLayers":1479,"./OpenLayers.ts":1479,"./OpenStyleManager":3473,"./OpenStyleManager.ts":3473,"./OpenTraitManager":5054,"./OpenTraitManager.ts":5054,"./PasteComponent":6979,"./PasteComponent.ts":6979,"./Preview":4457,"./Preview.ts":4457,"./Resize":5493,"./Resize.ts":5493,"./SelectComponent":9317,"./SelectComponent.ts":9317,"./SelectPosition":1406,"./SelectPosition.ts":1406,"./ShowOffset":9395,"./ShowOffset.ts":9395,"./SwitchVisibility":7285,"./SwitchVisibility.ts":7285};function N(E){var v=A(E);return H(v)}function A(E){if(!H.o(w,E)){var v=new Error("Cannot find module '"+E+"'");throw v.code="MODULE_NOT_FOUND",v}return w[E]}N.keys=function(){return Object.keys(w)},N.resolve=A,j.exports=N,N.id=585},5706:(j,b,H)=>{"use strict";H.r(b),H.d(b,{VERSION:()=>N,after:()=>Do,all:()=>ma,allKeys:()=>pn,any:()=>Ho,assign:()=>Wn,before:()=>wr,bind:()=>Lo,bindAll:()=>Xa,chain:()=>ri,chunk:()=>Bs,clone:()=>fr,collect:()=>qr,compact:()=>Hs,compose:()=>Wi,constant:()=>Ue,contains:()=>Er,countBy:()=>va,create:()=>lr,debounce:()=>Jr,default:()=>cr,defaults:()=>Gr,defer:()=>$o,delay:()=>oi,detect:()=>Ro,difference:()=>Xn,drop:()=>To,each:()=>Gn,escape:()=>Ve,every:()=>ma,extend:()=>mn,extendOwn:()=>Wn,filter:()=>mr,find:()=>Ro,findIndex:()=>ao,findKey:()=>jo,findLastIndex:()=>ha,findWhere:()=>ga,first:()=>co,flatten:()=>wi,foldl:()=>lo,foldr:()=>Ti,forEach:()=>Gn,functions:()=>Pn,get:()=>Ln,groupBy:()=>Ja,has:()=>P,head:()=>co,identity:()=>q,include:()=>Er,includes:()=>Er,indexBy:()=>ts,indexOf:()=>bi,initial:()=>Fo,inject:()=>lo,intersection:()=>Fs,invert:()=>sn,invoke:()=>bo,isArguments:()=>me,isArray:()=>oe,isArrayBuffer:()=>wt,isBoolean:()=>z,isDataView:()=>te,isDate:()=>kt,isElement:()=>at,isEmpty:()=>Gt,isEqual:()=>ve,isError:()=>Ct,isFinite:()=>ue,isFunction:()=>zt,isMap:()=>kn,isMatch:()=>Kt,isNaN:()=>ce,isNull:()=>K,isNumber:()=>X,isObject:()=>Z,isRegExp:()=>vt,isSet:()=>dn,isString:()=>mt,isSymbol:()=>gt,isTypedArray:()=>G,isUndefined:()=>Q,isWeakMap:()=>qn,isWeakSet:()=>wn,iteratee:()=>Ke,keys:()=>Mt,last:()=>Rs,lastIndexOf:()=>Gi,map:()=>qr,mapObject:()=>Le,matcher:()=>U,matches:()=>U,max:()=>ii,memoize:()=>pa,methods:()=>Pn,min:()=>qi,mixin:()=>Zi,negate:()=>fa,noop:()=>J,now:()=>vn,object:()=>ya,omit:()=>rs,once:()=>Is,pairs:()=>sr,partial:()=>Mo,partition:()=>es,pick:()=>Yi,pluck:()=>er,property:()=>_t,propertyOf:()=>tn,random:()=>In,range:()=>ln,reduce:()=>lo,reduceRight:()=>Ti,reject:()=>Ci,rest:()=>To,restArguments:()=>st,result:()=>tr,sample:()=>Or,select:()=>mr,shuffle:()=>js,size:()=>Ki,some:()=>Ho,sortBy:()=>Qa,sortedIndex:()=>so,tail:()=>To,take:()=>co,tap:()=>an,template:()=>Un,templateSettings:()=>St,throttle:()=>zi,times:()=>rn,toArray:()=>ns,toPath:()=>On,transpose:()=>Xo,unescape:()=>lt,union:()=>ai,uniq:()=>Vo,unique:()=>Vo,uniqueId:()=>Ir,unzip:()=>Xo,values:()=>Sn,where:()=>_o,without:()=>Xi,wrap:()=>da,zip:()=>Vs});var w={};H.r(w),H.d(w,{VERSION:()=>N,after:()=>Do,all:()=>ma,allKeys:()=>pn,any:()=>Ho,assign:()=>Wn,before:()=>wr,bind:()=>Lo,bindAll:()=>Xa,chain:()=>ri,chunk:()=>Bs,clone:()=>fr,collect:()=>qr,compact:()=>Hs,compose:()=>Wi,constant:()=>Ue,contains:()=>Er,countBy:()=>va,create:()=>lr,debounce:()=>Jr,default:()=>Ei,defaults:()=>Gr,defer:()=>$o,delay:()=>oi,detect:()=>Ro,difference:()=>Xn,drop:()=>To,each:()=>Gn,escape:()=>Ve,every:()=>ma,extend:()=>mn,extendOwn:()=>Wn,filter:()=>mr,find:()=>Ro,findIndex:()=>ao,findKey:()=>jo,findLastIndex:()=>ha,findWhere:()=>ga,first:()=>co,flatten:()=>wi,foldl:()=>lo,foldr:()=>Ti,forEach:()=>Gn,functions:()=>Pn,get:()=>Ln,groupBy:()=>Ja,has:()=>P,head:()=>co,identity:()=>q,include:()=>Er,includes:()=>Er,indexBy:()=>ts,indexOf:()=>bi,initial:()=>Fo,inject:()=>lo,intersection:()=>Fs,invert:()=>sn,invoke:()=>bo,isArguments:()=>me,isArray:()=>oe,isArrayBuffer:()=>wt,isBoolean:()=>z,isDataView:()=>te,isDate:()=>kt,isElement:()=>at,isEmpty:()=>Gt,isEqual:()=>ve,isError:()=>Ct,isFinite:()=>ue,isFunction:()=>zt,isMap:()=>kn,isMatch:()=>Kt,isNaN:()=>ce,isNull:()=>K,isNumber:()=>X,isObject:()=>Z,isRegExp:()=>vt,isSet:()=>dn,isString:()=>mt,isSymbol:()=>gt,isTypedArray:()=>G,isUndefined:()=>Q,isWeakMap:()=>qn,isWeakSet:()=>wn,iteratee:()=>Ke,keys:()=>Mt,last:()=>Rs,lastIndexOf:()=>Gi,map:()=>qr,mapObject:()=>Le,matcher:()=>U,matches:()=>U,max:()=>ii,memoize:()=>pa,methods:()=>Pn,min:()=>qi,mixin:()=>Zi,negate:()=>fa,noop:()=>J,now:()=>vn,object:()=>ya,omit:()=>rs,once:()=>Is,pairs:()=>sr,partial:()=>Mo,partition:()=>es,pick:()=>Yi,pluck:()=>er,property:()=>_t,propertyOf:()=>tn,random:()=>In,range:()=>ln,reduce:()=>lo,reduceRight:()=>Ti,reject:()=>Ci,rest:()=>To,restArguments:()=>st,result:()=>tr,sample:()=>Or,select:()=>mr,shuffle:()=>js,size:()=>Ki,some:()=>Ho,sortBy:()=>Qa,sortedIndex:()=>so,tail:()=>To,take:()=>co,tap:()=>an,template:()=>Un,templateSettings:()=>St,throttle:()=>zi,times:()=>rn,toArray:()=>ns,toPath:()=>On,transpose:()=>Xo,unescape:()=>lt,union:()=>ai,uniq:()=>Vo,unique:()=>Vo,uniqueId:()=>Ir,unzip:()=>Xo,values:()=>Sn,where:()=>_o,without:()=>Xi,wrap:()=>da,zip:()=>Vs});var N="1.13.1",A=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},E=Array.prototype,v=Object.prototype,_=typeof Symbol<"u"?Symbol.prototype:null,m=E.push,T=E.slice,g=v.toString,S=v.hasOwnProperty,x=typeof ArrayBuffer<"u",k=typeof DataView<"u",R=Array.isArray,h=Object.keys,I=Object.create,D=x&&ArrayBuffer.isView,M=isNaN,B=isFinite,rt=!{toString:null}.propertyIsEnumerable("toString"),ot=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],dt=Math.pow(2,53)-1;function st(Y,ct){return ct=ct==null?Y.length-1:+ct,function(){for(var At=Math.max(arguments.length-ct,0),Pt=Array(At),Ut=0;Ut=0&&At<=dt}}function Ge(Y){return function(ct){return ct?.[Y]}}const Ze=Ge("byteLength"),Pe=en(Ze);var It=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const G=x?function(Y){return D?D(Y)&&!te(Y):Pe(Y)&&It.test(g.call(Y))}:Ue(!1),tt=Ge("length");function bt(Y,ct){ct=(function(ae){for(var be={},$e=ae.length,cn=0;cn<$e;++cn)be[ae[cn]]=!0;return{contains:function(xn){return be[xn]},push:function(xn){return be[xn]=!0,ae.push(xn)}}})(ct);var At=ot.length,Pt=Y.constructor,Ut=zt(Pt)&&Pt.prototype||v,Lt="constructor";for(Ht(Y,Lt)&&!ct.contains(Lt)&&ct.push(Lt);At--;)(Lt=ot[At])in Y&&Y[Lt]!==Ut[Lt]&&!ct.contains(Lt)&&ct.push(Lt)}function Mt(Y){if(!Z(Y))return[];if(h)return h(Y);var ct=[];for(var At in Y)Ht(Y,At)&&ct.push(At);return rt&&bt(Y,ct),ct}function Gt(Y){if(Y==null)return!0;var ct=tt(Y);return typeof ct=="number"&&(oe(Y)||mt(Y)||me(Y))?ct===0:tt(Mt(Y))===0}function Kt(Y,ct){var At=Mt(ct),Pt=At.length;if(Y==null)return!Pt;for(var Ut=Object(Y),Lt=0;Lt":">",'"':""","'":"'","`":"`"},Ve=Lr(le),lt=Lr(sn(le)),St=se.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Jt=/(.)^/,Ee={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},xe=/\\|'|\r|\n|\u2028|\u2029/g;function Ce(Y){return"\\"+Ee[Y]}var hn=/^\s*(\w|\$)+\s*$/;function Un(Y,ct,At){!ct&&At&&(ct=At),ct=Gr({},ct,se.templateSettings);var Pt=RegExp([(ct.escape||Jt).source,(ct.interpolate||Jt).source,(ct.evaluate||Jt).source].join("|")+"|$","g"),Ut=0,Lt="__p+='";Y.replace(Pt,(function(cn,xn,Sr,br,xr){return Lt+=Y.slice(Ut,xr).replace(xe,Ce),Ut=xr+cn.length,xn?Lt+=`'+ ((__t=(`+xn+`))==null?'':_.escape(__t))+ '`:Sr?Lt+=`'+ ((__t=(`+Sr+`))==null?'':__t)+ '`:br&&(Lt+=`'; `+br+` __p+='`),cn})),Lt+=`'; `;var ae,be=ct.variable;if(be){if(!hn.test(be))throw new Error("variable is not a bare identifier: "+be)}else Lt=`with(obj||{}){ `+Lt+`} `,be="obj";Lt=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; `+Lt+`return __p; `;try{ae=new Function(be,"_",Lt)}catch(cn){throw cn.source=Lt,cn}var $e=function(cn){return ae.call(this,cn,se)};return $e.source="function("+be+`){ `+Lt+"}",$e}function tr(Y,ct,At){var Pt=(ct=Mn(ct)).length;if(!Pt)return zt(At)?At.call(Y):At;for(var Ut=0;Ut1)Io(be,ct-1,At,Pt),Ut=Pt.length;else for(var $e=0,cn=be.length;$ect?(Pt&&(clearTimeout(Pt),Pt=null),be=xn,ae=Y.apply(Ut,Lt),Pt||(Ut=Lt=null)):Pt||At.trailing===!1||(Pt=setTimeout($e,Sr)),ae};return cn.cancel=function(){clearTimeout(Pt),be=0,Pt=Ut=Lt=null},cn}function Jr(Y,ct,At){var Pt,Ut,Lt,ae,be,$e=function(){var xn=vn()-Ut;ct>xn?Pt=setTimeout($e,ct-xn):(Pt=null,At||(ae=Y.apply(be,Lt)),Pt||(Lt=be=null))},cn=st((function(xn){return be=this,Lt=xn,Ut=vn(),Pt||(Pt=setTimeout($e,ct),At&&(ae=Y.apply(be,Lt))),ae}));return cn.cancel=function(){clearTimeout(Pt),Pt=Lt=be=null},cn}function da(Y,ct){return Mo(ct,Y)}function fa(Y){return function(){return!Y.apply(this,arguments)}}function Wi(){var Y=arguments,ct=Y.length-1;return function(){for(var At=ct,Pt=Y[ct].apply(this,arguments);At--;)Pt=Y[At].call(this,Pt);return Pt}}function Do(Y,ct){return function(){if(--Y<1)return ct.apply(this,arguments)}}function wr(Y,ct){var At;return function(){return--Y>0&&(At=ct.apply(this,arguments)),Y<=1&&(ct=null),At}}const Is=Mo(wr,2);function jo(Y,ct,At){ct=fe(ct,At);for(var Pt,Ut=Mt(Y),Lt=0,ae=Ut.length;Lt0?0:Ut-1;Lt>=0&&Lt0?ae=Lt>=0?Lt:Math.max(Lt+be,ae):be=Lt>=0?Math.min(Lt+1,be):Lt+be+1;else if(At&&Lt&&be)return Pt[Lt=At(Pt,Ut)]===Ut?Lt:-1;if(Ut!=Ut)return(Lt=ct(T.call(Pt,ae,be),ce))>=0?Lt+ae:-1;for(Lt=Y>0?ae:be-1;Lt>=0&&Lt=3;return(function(ae,be,$e,cn){var xn=!Cr(ae)&&Mt(ae),Sr=(xn||ae).length,br=Y>0?0:Sr-1;for(cn||($e=ae[xn?xn[br]:br],br+=Y);br>=0&&br=0}const bo=st((function(Y,ct,At){var Pt,Ut;return zt(ct)?Ut=ct:(ct=Mn(ct),Pt=ct.slice(0,-1),ct=ct[ct.length-1]),qr(Y,(function(Lt){var ae=Ut;if(!ae){if(Pt&&Pt.length&&(Lt=Kn(Lt,Pt)),Lt==null)return;ae=Lt[ct]}return ae==null?ae:ae.apply(Lt,At)}))}));function er(Y,ct){return qr(Y,_t(ct))}function _o(Y,ct){return mr(Y,U(ct))}function ii(Y,ct,At){var Pt,Ut,Lt=-1/0,ae=-1/0;if(ct==null||typeof ct=="number"&&typeof Y[0]!="object"&&Y!=null)for(var be=0,$e=(Y=Cr(Y)?Y:Sn(Y)).length;be<$e;be++)(Pt=Y[be])!=null&&Pt>Lt&&(Lt=Pt);else ct=fe(ct,At),Gn(Y,(function(cn,xn,Sr){((Ut=ct(cn,xn,Sr))>ae||Ut===-1/0&&Lt===-1/0)&&(Lt=cn,ae=Ut)}));return Lt}function qi(Y,ct,At){var Pt,Ut,Lt=1/0,ae=1/0;if(ct==null||typeof ct=="number"&&typeof Y[0]!="object"&&Y!=null)for(var be=0,$e=(Y=Cr(Y)?Y:Sn(Y)).length;be<$e;be++)(Pt=Y[be])!=null&&Ptbe||ae===void 0)return 1;if(ae1&&(Pt=Wt(Pt,ct[1])),ct=pn(Y)):(Pt=$i,ct=Io(ct,!1,!1),Y=Object(Y));for(var Ut=0,Lt=ct.length;Ut1&&(At=ct[1])):(ct=qr(Io(ct,!1,!1),String),Pt=function(Ut,Lt){return!Er(ct,Lt)}),Yi(Y,Pt,At)}));function Fo(Y,ct,At){return T.call(Y,0,Math.max(0,Y.length-(ct==null||At?1:ct)))}function co(Y,ct,At){return Y==null||Y.length<1?ct==null||At?void 0:[]:ct==null||At?Y[0]:Fo(Y,Y.length-ct)}function To(Y,ct,At){return T.call(Y,ct==null||At?1:ct)}function Rs(Y,ct,At){return Y==null||Y.length<1?ct==null||At?void 0:[]:ct==null||At?Y[Y.length-1]:To(Y,Math.max(0,Y.length-ct))}function Hs(Y){return mr(Y,Boolean)}function wi(Y,ct){return Io(Y,ct,!1)}const Xn=st((function(Y,ct){return ct=Io(ct,!0,!0),mr(Y,(function(At){return!Er(ct,At)}))})),Xi=st((function(Y,ct){return Xn(Y,ct)}));function Vo(Y,ct,At,Pt){z(ct)||(Pt=At,At=ct,ct=!1),At!=null&&(At=fe(At,Pt));for(var Ut=[],Lt=[],ae=0,be=tt(Y);ae{var b=j&&j.__esModule?()=>j.default:()=>j;return Ae.d(b,{a:b}),b},Ae.d=(j,b)=>{for(var H in b)Ae.o(b,H)&&!Ae.o(j,H)&&Object.defineProperty(j,H,{enumerable:!0,get:b[H]})},Ae.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Ae.o=(j,b)=>Object.prototype.hasOwnProperty.call(j,b),Ae.r=j=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})};var Qr={};return(()=>{"use strict";Ae.d(Qr,{default:()=>$y});var j=Ae(5706),b=Ae(1166);function H(a){for(var r=[],t=1;t',move:'',plus:'',caret:'',delete:'',copy:'',arrowUp:'',chevron:'',eye:'',eyeOff:''},i18n:{},undoManager:{},assetManager:{},canvas:{},layerManager:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:!1,customUI:!1,telemetry:!0}};var N=Ae(4193),A=Ae.n(N),E=Ae(7774),v,_=Ae(9156),m=(v=function(a,r){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},v(a,r)},function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=a}v(a,r),a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}),T=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return m(r,a),r})(_.Kx);const g=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return m(r,a),r.prototype.getByComponent=function(t){var e=this;return this.filter((function(n){return e.getComponent(n)===t}))[0]},r.prototype.addComponent=function(t,e){var n=this,o=((0,j.isArray)(t)?t:[t]).filter((function(l){return!n.hasComponent(l)})).map((function(l){return new T({component:l})}))[0];return this.push(o,e)},r.prototype.getComponent=function(t){return t.get("component")},r.prototype.hasComponent=function(t){var e=this.getByComponent(t);return e&&this.contains(e)},r.prototype.lastComponent=function(){var t=this.last();return t?this.getComponent(t):void 0},r.prototype.allComponents=function(){var t=this;return this.map((function(e){return t.getComponent(e)})).filter((function(e){return e}))},r.prototype.removeComponent=function(t,e){var n=this,o=((0,j.isArray)(t)?t:[t]).map((function(l){return n.getByComponent(l)}));return this.remove(o,e)},r})(_.pM);var S=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),x=function(){return x=Object.assign||function(a){for(var r,t=1,e=arguments.length;t",frameStyle:` body { background-color: #fff } * ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) } * ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2) } * ::-webkit-scrollbar { width: 10px } `,notTextable:["button","a","input[type=checkbox]","input[type=radio]"],allowExternalDrop:!0}};var M=Ae(7058);const B=function(){return{default:"",devices:[{id:"desktop",name:"Desktop",width:""},{id:"tablet",name:"Tablet",width:"770px",widthMedia:"992px"},{id:"mobileLandscape",name:"Mobile landscape",width:"568px",widthMedia:"768px"},{id:"mobilePortrait",name:"Mobile portrait",width:"320px",widthMedia:"480px"}]}};var rt=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const ot=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return rt(r,a),r.prototype.defaults=function(){return{name:"",width:null,height:"",widthMedia:null,priority:null}},r.prototype.initialize=function(){var t=this;this.get("widthMedia")===null&&this.set("widthMedia",this.get("width")),this.get("width")===null&&this.set("width",this.get("widthMedia")),!this.get("priority")&&this.set("priority",parseFloat(this.get("widthMedia"))||0),["width","height","widthMedia"].forEach((function(e){return t.checkUnit(e)}))},r.prototype.checkUnit=function(t){var e=this.get(t)||"";(parseFloat(e)||0).toString()===e.toString()&&this.set(t,"".concat(e,"px"))},r.prototype.getName=function(){return this.get("name")||this.get("id")},r.prototype.getWidthMedia=function(){return this.get("widthMedia")||""},r})(_.Kx);var dt=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),st=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return dt(r,a),r})(_.pM);const Z=st;st.prototype.model=ot;var K=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Q=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},z=(function(a){function r(t){var e=a.call(this,t)||this;return e.config=t.config||{},e.em=e.config.em,e.ppfx=e.config.pStylePrefix||"",e.listenTo(e.em,"change:device",e.updateSelect),e}return K(r,a),r.prototype.template=function(t){var e=t.ppfx,n=t.label;return H($||($=Q([`
',`
`],[`
',`
`])),e,n,e,e,e,e,e,e,e)},r.prototype.events=function(){return{change:"updateDevice","click [data-add-trasp]":"startAdd"}},r.prototype.startAdd=function(){},r.prototype.updateDevice=function(){var t=this.em;if(t){var e=this.devicesEl;t.set("device",e?e.val():"")}},r.prototype.updateSelect=function(){var t=this.em,e=this.devicesEl;if(t&&t.getDeviceModel&&e){var n=t.getDeviceModel();e.val(n?n.get("id"):"")}},r.prototype.getOptions=function(){var t=this.collection,e=this.em,n="";return t.forEach((function(o){var l=o.attributes,p=l.name,d=l.id,C=e&&e.t&&e.t("deviceManager.devices.".concat(d))||p;n+='")})),n},r.prototype.render=function(){var t=this,e=t.em,n=t.ppfx,o=t.$el,l=t.el,p=e&&e.t&&e.t("deviceManager.device");return o.html(this.template({ppfx:n,label:p})),this.devicesEl=o.find(".".concat(n,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(e.get("device")),l.className="".concat(n,"devices-c"),this},r})(_.Ss);const at=z;var $,mt=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),X=function(){return X=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0&&this.head.splice(l,1)},r.prototype.addLink=function(t){var e="link";!this.getHeadByAttr("href",t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:"stylesheet"}})},r.prototype.removeLink=function(t){this.removeHeadByAttr("href",t,"link")},r.prototype.addScript=function(t){var e="script";!this.getHeadByAttr("src",t,e)&&this.addHeadItem({tag:e,attributes:{src:t}})},r.prototype.removeScript=function(t){this.removeHeadByAttr("src",t,"script")},r.prototype.getPage=function(){var t;return(t=this.collection)===null||t===void 0?void 0:t.page},r.prototype._emitUpdated=function(t){t===void 0&&(t={}),this.em.trigger("frame:updated",ue({frame:this},t))},r.prototype.hasAutoHeight=function(){return!(this.attributes.height!=="auto"&&!this.config.infiniteCanvas)},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=M.A.prototype.toJSON.call(this,t),n=(0,j.result)(this,"defaults");return t.fromUndo&&delete e.component,delete e.styles,delete e.changesCount,e[Ue]&&delete e.width,e[en]&&delete e.height,e.refFrame&&(e.refFrame=e.refFrame.id,delete e.component),(0,j.forEach)(e,(function(o,l){l.indexOf("_")===0&&delete e[l]})),(0,j.forEach)(n,(function(o,l){e[l]===o&&delete e[l]})),(0,j.forEach)(["attributes","head"],(function(o){(0,j.isEmpty)(e[o])&&delete e[o]})),e},r})(M.A);const Pe=Ze;var It=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const G=(function(a){function r(t,e){e===void 0&&(e=[]);var n=a.call(this,t,e,Pe)||this;return n.loadedItems=0,n.itemsToLoad=0,(0,j.bindAll)(n,"itemLoaded"),n.on("add",n.onAdd),n.on("reset",n.onReset),n.on("remove",n.onRemove),n.forEach((function(o){return n.onAdd(o)})),n}return It(r,a),r.prototype.onAdd=function(t){this.module.framesById[t.id]=t},r.prototype.onReset=function(t,e){var n=this;(e?.previousModels||[]).map((function(o){return n.onRemove(o)}))},r.prototype.onRemove=function(t){t.onRemove(),delete this.module.framesById[t.id]},r.prototype.initRefs=function(){this.forEach((function(t){return t.initRefs()}))},r.prototype.itemLoaded=function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(!1))},r.prototype.listenToLoad=function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(!0)},r.prototype.listenToLoadItems=function(t){var e=this;this.forEach((function(n){return n[t?"on":"off"]("loaded",e.itemLoaded)}))},r})(ee);var tt=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),bt=(function(a){function r(t){var e=this,n=t.em,o=t.config,l=o.scripts,p=o.styles;return(e=a.call(this,t,{scripts:l,styles:p})||this).set("frames",new G(t)),e.on("change:zoom",e.onZoomChange),e.on("change:x change:y",e.onCoordsChange),e.on("change:pointer change:pointerScreen",e.onPointerChange),e.listenTo(n,"change:device ".concat(gt),e.updateDevice),e.listenTo(n,te.select,e._pageUpdated),e}return tt(r,a),r.prototype.defaults=function(){return{frame:"",frames:[],rulers:!1,zoom:100,x:0,y:0,scripts:[],styles:[],pointer:_.lK,pointerScreen:_.lK}},Object.defineProperty(r.prototype,"frames",{get:function(){return this.get("frames")},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this.em.Pages._initPage();this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},r.prototype._pageUpdated=function(t,e){var n=this.em;n.setSelected(),n.get("readyCanvas")&&n.stopDefault(),e?.getFrames().map((function(o){return o.disable()})),this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},r.prototype.updateDevice=function(t){t===void 0&&(t={});var e=this.em,n=e.getDeviceModel(),o=t.frame||e.getCurrentFrameModel();if(o&&n){var l=n.attributes,p=l.width,d=l.height,C=l.minHeight;o.set({width:p,height:d,minHeight:C},{noUndo:1})}},r.prototype.onZoomChange=function(t,e,n){var o=this.em,l=this.module;this.get("zoom")<1&&this.set("zoom",1),o.trigger(l.events.zoom,{options:n})},r.prototype.onCoordsChange=function(){var t=this.em,e=this.module;t.trigger(e.events.coords)},r.prototype.onPointerChange=function(){var t=this.em,e=this.module;t.trigger(e.events.pointer)},r.prototype.getPointerCoords=function(t){t===void 0&&(t=_.x2.World);var e=this.attributes,n=e.pointer,o=e.pointerScreen;return t===_.x2.World?n:o},r})(M.A);const Mt=bt;var Gt=Ae(179),Kt=Ae(2225),se=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Se=(function(a){function r(t,e){e===void 0&&(e=[]);var n=a.call(this,t,e,Gt.A)||this;n.on("add",n.onAdd),n.on("change",n.onChange),n.on("remove",n.onRemove);var o=n.em;n.refreshDbn=(0,j.debounce)((function(){return n.refresh()}),0);var l="".concat(Kt.I.resize," styleable:change ").concat(Kt.I.input," ").concat(Kt.I.update," frame:updated undo redo");return n.listenTo(o,l,(function(){return n.refreshDbn()})),n}return se(r,a),Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"events",{get:function(){return this.module.events},enumerable:!1,configurable:!0}),r.prototype.refresh=function(){var t=this.em,e=this.events;t.trigger(e.spot)},r.prototype.onAdd=function(t){this.__trgEvent(this.events.spotAdd,{spot:t})},r.prototype.onChange=function(t){this.__trgEvent(this.events.spotUpdate,{spot:t})},r.prototype.onRemove=function(t){this.__trgEvent(this.events.spotRemove,{spot:t})},r.prototype.__trgEvent=function(t,e){this.module.em.trigger(t,e),this.refreshDbn()},r})(ee);const Qe=Se;var ke;(function(a){a.dragEnter="canvas:dragenter",a.dragOver="canvas:dragover",a.dragEnd="canvas:dragend",a.dragData="canvas:dragdata",a.drop="canvas:drop",a.spot="canvas:spot",a.spotAdd="canvas:spot:add",a.spotUpdate="canvas:spot:update",a.spotRemove="canvas:spot:remove",a.coords="canvas:coords",a.zoom="canvas:zoom",a.pointer="canvas:pointer",a.refresh="canvas:refresh",a.frameLoad="canvas:frame:load",a.frameLoadHead="canvas:frame:load:head",a.frameLoadBody="canvas:frame:load:body"})(ke||(ke={}));const nn=ke;var ve=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),pn=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return ve(r,a),Object.defineProperty(r.prototype,"pfx",{get:function(){return this.ppfx+this.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ppfx",{get:function(){return this.em.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"module",{get:function(){var t,e;return(e=(t=this.model)===null||t===void 0?void 0:t.module)!==null&&e!==void 0?e:this.collection.module},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"config",{get:function(){return this.module.config},enumerable:!1,configurable:!0}),r.prototype.preinitialize=function(t){this.className=""},r})(_.Ss);const pt=pn;var ft=Ae(6294),Dt=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const qt=(function(a){function r(t,e){t===void 0&&(t={}),e===void 0&&(e=!1);var n=a.call(this,t)||this;return n.itemsView="",n.itemType="type",n.reuseView=!1,n.viewCollection=[],e&&n.listenTo(n.collection,"add",n.addTo),n}return Dt(r,a),r.prototype.addTo=function(t){this.add(t)},r.prototype.itemViewNotFound=function(t){},r.prototype.add=function(t,e){var n,o=this.reuseView,l=this.viewCollection,p=e||null,d=t.get(this.itemType);n=t.view&&o?t.view:this.renderView(t,d),l.push(n);var C=n.render().el;p?p.appendChild(C):this.$el.append(C)},r.prototype.render=function(){var t=this,e=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(n){return t.add(n,e)})),this.$el.append(e),this.onRender(),this},r.prototype.onRender=function(){},r.prototype.onRemoveBefore=function(t,e){},r.prototype.onRemove=function(t,e){},r.prototype.remove=function(t){t===void 0&&(t={});var e=this.viewCollection;return this.onRemoveBefore(e,t),this.clearItems(),_.Ss.prototype.remove.apply(this,t),this.onRemove(e,t),this},r.prototype.clearItems=function(){this.viewCollection},r})(pt);var ie;(function(a){a.mount="css:mount",a.mountBefore="css:mount:before"})(ie||(ie={}));var je=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ze=(function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.config=t.config||{};var n=e.model;return e.listenTo(n,"change",e.render),e.listenTo(n,"destroy remove",e.remove),e.listenTo(n.get("selectors"),"change",e.render),n.setView(e),e}return je(r,a),Object.defineProperty(r.prototype,"frameView",{get:function(){return this.config.frameView},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this.model.em},enumerable:!1,configurable:!0}),r.prototype.remove=function(){return a.prototype.remove.call(this),this.model.removeView(this),this},r.prototype.updateStyles=function(){this.render()},r.prototype.tagName=function(){return"style"},r.prototype.render=function(){var t=this,e=t.model,n=t.el,o=t.em,l=e.get("important"),p=e.toCSS({important:l}),d={rule:e,ruleView:this,css:p};return o?.trigger(ie.mountBefore,d),n.innerHTML=d.css,o?.trigger(ie.mount,d),this},r})(_.Ss);const _n=ze;var kn=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const qn=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return kn(r,a),r.prototype._createElement=function(){return document.createTextNode("")},r.prototype.render=function(){var t=this.model,e=t.get("important");return this.el.textContent=t.getDeclaration({important:e}),this},r})(_n);var dn=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wn=function(a,r){return"".concat(a).concat(r?"-".concat(parseFloat(r)):"")},Sn=(function(a){function r(t){var e=a.call(this,t)||this;(0,j.bindAll)(e,"sortRules");var n=t.config||{};e.atRules={},e.config=n,e.em=n.em,e.pfx=n.stylePrefix||"",e.className=e.pfx+"rules";var o=e.collection;return e.listenTo(o,"add",e.addTo),e.listenTo(o,"reset",e.render),e}return dn(r,a),r.prototype.addTo=function(t){this.addToCollection(t)},r.prototype.addToCollection=function(t,e){if(this.renderStarted){var n,o,l=e||null,p={model:t,config:this.config};if(t.get("atRuleType")==="keyframes"){var d=t.getAtRule(),C=this.atRules[d];if(!C){var y=document.createElement("style");C=document.createTextNode(""),y.appendChild(document.createTextNode("".concat(d,"{"))),y.appendChild(C),y.appendChild(document.createTextNode("}")),this.atRules[d]=C,n=y}o=new qn(p),C.appendData(o.render().el.textContent)}else n=(o=new _n(p)).render().el;var L=this.className,W=t.get("mediaText"),nt=wn(L),ht=nt;if(W&&(ht=wn(L,this.getMediaWidth(W))),n){var yt=l||this.el,xt=void 0;try{xt=yt.querySelector("#".concat(ht))}catch{}xt||(xt=yt.querySelector("#".concat(nt))),xt?.appendChild(n)}return n}},r.prototype.getMediaWidth=function(t){return t&&t.replace("(".concat(this.em.getConfig().mediaCondition,": "),"").replace(")","")},r.prototype.sortRules=function(t,e){var n=(this.em.getConfig().mediaCondition||"").indexOf("min-width")!==-1;return n?(n?t:e)-(n?e:t):0},r.prototype.render=function(){var t=this;this.renderStarted=!0,this.atRules={};var e=this,n=e.em,o=e.$el,l=e.collection,p=this.className,d=document.createDocumentFragment();o.empty();var C=n.Devices.getAll().pluck("priority").sort(this.sortRules);return C.every((function(y){return y}))&&C.unshift(0),C.forEach((function(y){return d.appendChild((0,ft.a_)("div",{id:wn(p,y)}))})),l.each((function(y){return t.addToCollection(y,d)})),o.append(d),o.attr("class",p),this},r})(_.Ss);const sr=Sn;var sn="text/html",Pn=sn,fn;(function(a){a.html="parse:html",a.htmlRoot="parse:html:root",a.htmlBefore="parse:html:before",a.css="parse:css",a.cssBefore="parse:css:before",a.all="parse"})(fn||(fn={}));var mn=function(){return mn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0;){var n=t.indexOf("/*"),o=t.indexOf("*/"),l=o>-1?o+2:void 0;t=t.replace(t.slice(n,l),"")}for(var p=t.split(";"),d=0,C=p.length;d"||(p.void=!0),l&&!p.components&&!e.skipChildren){var y=o[0];l===1&&y.nodeType===3?(!p.type&&(p.type="text"),p.components={type:"textnode",content:y.nodeValue}):p.components=this.parseNodes(t,mn(mn({},e),{inSvg:e.inSvg||p.type==="svg"}))}var L=p.components;if(!p.type&&L?.length){for(var W=r.textTypes,nt=W===void 0?[]:W,ht=r.textTags,yt=ht===void 0?[]:ht,xt=!0,Tt=!1,$t=0;$t".concat(hr,"
"),qo=Ri.parseFromString(gi,Hi);if(hi){if(Pr.asDocument)return qo;var mi=qo.head,Ko=qo.body,A1=mi.querySelectorAll("script");(0,j.each)(A1,(function(As){return Ko.appendChild(As)}));var Rp=[];(0,j.each)(mi.children,(function(As){return Rp.push(As)})),(0,j.each)(Rp,(function(As,k1){return Ko.insertBefore(As,Ko.children[k1])})),Go=Ko}else Go=qo.firstChild;return Go})(Tt,nt),re=$t,ge=$t;yt&&(re=ge.documentElement,y.doctype=(0,ft.LJ)(ge.doctype));var _e=re.querySelectorAll("script"),we=_e.length;if(!((0,j.isUndefined)(d.allowScripts)?nt.allowScripts:d.allowScripts))for(;we--;)(l=_e[we].parentNode)===null||l===void 0||l.removeChild(_e[we]);if(nt.allowUnsafeAttr&&nt.allowUnsafeAttrValue||this.__sanitizeNode(re,nt),e){for(var Re=re.querySelectorAll("style"),Je=Re.length,Tn="";Je--;)Tn=Re[Je].innerHTML+Tn,(p=Re[Je].parentNode)===null||p===void 0||p.removeChild(Re[Je]);Tn&&(y.css=e.parse(Tn))}C?.__emitEvent(fn.htmlRoot,{input:Tt,root:re});var un=[];if(yt)y.head=this.parseNode(ge.head,L),y.root=this.parseNodeAttr(re),un=this.parseNode(ge.body,L);else{var ir=this.parseNodes(re,L);un=ir.length!==1||L.returnArray?ir:ir[0]}return y.html=un,C?.__emitEvent(fn.html,{input:Tt,output:y,options:nt}),y},__sanitizeNode:function(t,e){var n=this,o=t.attributes||[],l=t.childNodes||[],p=[];(0,j.each)(o,(function(d){var C=d.nodeName||"",y=d.nodeValue||"";!e.allowUnsafeAttr&&C.startsWith("on")&&p.push(C),!e.allowUnsafeAttrValue&&y.startsWith("javascript:")&&p.push(C)})),p.map((function(d){return t.removeAttribute(d)})),(0,j.each)(l,(function(d){return n.__sanitizeNode(d,e)}))},__checkAsDocument:function(t,e){return(0,b.isDef)(e.asDocument)?e.asDocument:(0,j.isFunction)(e.detectDocument)?!!e.detectDocument(t):e.detectDocument?t.toLowerCase().trim().startsWith("",a.lessThan="<",a.greaterThanOrEqual=">=",a.lessThanOrEqual="<=",a.equals="=",a.notEquals="!="})(_t||(_t={}));var Ke,fe=(function(a){function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.operationsEnum=_t,t}return He(r,a),r.prototype.evaluate=function(t,e){if(typeof t!="number")return!1;switch(this.operationString){case _t.greaterThan:return t>e;case _t.lessThan:return t=e;case _t.lessThanOrEqual:return t<=e;case _t.equals:return t===e;case _t.notEquals:return t!==e;default:return this.em.logWarning("Unsupported number operation: ".concat(this.operationString)),!1}},r})(Kn),Le=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();(function(a){a.contains="contains",a.startsWith="startsWith",a.endsWith="endsWith",a.matchesRegex="matchesRegex",a.equalsIgnoreCase="equalsIgnoreCase",a.trimEquals="trimEquals"})(Ke||(Ke={}));var J=(function(a){function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.operationsEnum=Ke,t}return Le(r,a),r.prototype.evaluate=function(t,e){if(typeof t!="string")return!1;switch(this.operationString){case Ke.contains:return t.includes(e);case Ke.startsWith:return t.startsWith(e);case Ke.endsWith:return t.endsWith(e);case Ke.matchesRegex:return e||this.em.logWarning("Regex pattern must be provided."),new RegExp(e??"").test(t);case Ke.equalsIgnoreCase:return t.toLowerCase()===e.toLowerCase();case Ke.trimEquals:return t.trim()===e.trim();default:return this.em.logWarning("Unsupported string operation: ".concat(this.operationString)),!1}},r})(Kn),tn=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),rn=(function(a){function r(t,e){var n,o=a.call(this,t)||this;return o.collectionsStateMap={},o.em=e.em,o.collectionsStateMap=(n=e.collectionsStateMap)!==null&&n!==void 0?n:{},o}return tn(r,a),r.prototype.evaluate=function(){var t=this.get("condition");if(!t||(0,j.isBoolean)(t))return!!t;var e=this.getOperator();return!!e&&e.evaluate(this.getResolvedLeftValue(),this.getResolvedRightValue())},r.prototype.getDependentDataVariables=function(){var t=this.get("condition");return t?this.extractDataVariables(t):[]},r.prototype.getOperations=function(){var t=this.getOperator();return!t||t instanceof Mn?[]:t.getOperations()},r.prototype.updateCollectionStateMap=function(t){this.collectionsStateMap=t},r.prototype.getOperator=function(){var t={em:this.em,collectionsStateMap:this.collectionsStateMap},e=this.get("condition");if(e&&!(0,j.isBoolean)(e)){var n;if(this.isLogicGroup(e)){var o=e.logicalOperator,l=e.statements,p=new Wt(o,t);n=new Mn(p,l,t)}if(this.isExpression(e)){var d=e.left,C=(p=e.operator,zi(d,t));n=this.resolveOperator(C,p)}return n}},r.prototype.resolveOperator=function(t,e){var n=this.em;return this.isOperatorInEnum(e,lr)?new q(e,{em:n}):typeof t=="number"?new fe(e,{em:n}):typeof t=="string"?new J(e,{em:n}):void 0},r.prototype.extractDataVariables=function(t){var e=this,n=[];return this.isExpression(t)?($o(t.left)&&n.push(t.left),$o(t.right)&&n.push(t.right)):this.isLogicGroup(t)&&t.statements.forEach((function(o){return n.push.apply(n,e.extractDataVariables(o))})),n},r.prototype.isLogicGroup=function(t){return t&&t.logicalOperator!==void 0&&Array.isArray(t.statements)},r.prototype.isExpression=function(t){return t&&t.left!==void 0&&typeof t.operator=="string"},r.prototype.isOperatorInEnum=function(t,e){return Object.values(e).includes(t)},r.prototype.resolveExpressionSide=function(t){var e=this.get("condition"),n=this.em,o=this.collectionsStateMap;return e&&typeof e!="boolean"?e&&typeof e=="object"&&t in e?zi(e[t],{em:n,collectionsStateMap:o}):void 0:e},r.prototype.getResolvedLeftValue=function(){return this.resolveExpressionSide("left")},r.prototype.getResolvedRightValue=function(){return this.resolveExpressionSide("right")},r.prototype.toJSON=function(t){var e=this.get("condition");return typeof e=="object"?JSON.parse(JSON.stringify(e)):e},r})(_.Kx),In=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vn="data-condition",Lr="data-condition-evaluation-changed",le="data-condition-output-changed",Ve=(function(a){function r(t,e){var n,o=a.call(this,t,e)||this;o.collectionsStateMap={},o.resolverListeners=[],o._previousEvaluationResult=null,o.em=e.em,o.collectionsStateMap=(n=e.collectionsStateMap)!==null&&n!==void 0?n:{};var l=t.condition,p=new rn({condition:l===void 0?{}:l},{em:o.em});return o._conditionEvaluator=p,o.listenToDataVariables(),o.listenToPropsChange(),o}return In(r,a),r.prototype.defaults=function(){return{type:vn,condition:{left:"",operator:Ke.equalsIgnoreCase,right:""},ifTrue:{},ifFalse:{}}},r.prototype.getCondition=function(){return this._conditionEvaluator.get("condition")},r.prototype.getIfTrue=function(){return this.get("ifTrue")},r.prototype.getIfFalse=function(){return this.get("ifFalse")},r.prototype.getOperations=function(){return this._conditionEvaluator.getOperations()},r.prototype.setCondition=function(t){this.set("condition",t),this._conditionEvaluator.set("condition",t),this.trigger(le,this.getDataValue())},r.prototype.setIfTrue=function(t){this.set("ifTrue",t)},r.prototype.setIfFalse=function(t){this.set("ifFalse",t)},r.prototype.isTrue=function(){return this._conditionEvaluator.evaluate()},r.prototype.getDataValue=function(t){t===void 0&&(t=!1);var e={em:this.em,collectionsStateMap:this.collectionsStateMap},n=this.getIfTrue(),o=this.getIfFalse(),l=this.isTrue();return t?l?n:o:zi(l?n:o,e)},r.prototype.resolvesFromCollection=function(){return!1},r.prototype.updateCollectionsStateMap=function(t){this.collectionsStateMap=t,this._conditionEvaluator.updateCollectionStateMap(t),this.listenToDataVariables(),this.emitConditionEvaluationChange()},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:condition",this.handleConditionChange.bind(this)),this.on("change:condition change:ifTrue change:ifFalse",(function(){t.listenToDataVariables()}))},r.prototype.handleConditionChange=function(){this.setCondition(this.get("condition"))},r.prototype.listenToDataVariables=function(){this.cleanupListeners(),this.setupConditionDataVariableListeners(),this.setupOutputDataVariableListeners()},r.prototype.setupConditionDataVariableListeners=function(){var t=this;this._conditionEvaluator.getDependentDataVariables().forEach((function(e){t.addListener(e,(function(){t.emitConditionEvaluationChange()}))}))},r.prototype.setupOutputDataVariableListeners=function(){var t=this.isTrue();this.setupOutputVariableListener(this.getIfTrue(),t),this.setupOutputVariableListener(this.getIfFalse(),!t)},r.prototype.setupOutputVariableListener=function(t,e){var n=this;$o(t)&&this.addListener(t,(function(){e&&n.trigger(le,t)}))},r.prototype.addListener=function(t,e){var n=new ao({em:this.em,resolver:new jo(t,{em:this.em,collectionsStateMap:this.collectionsStateMap}),onUpdate:e});this.resolverListeners.push(n)},r.prototype.emitConditionEvaluationChange=function(){var t=this.isTrue();this._previousEvaluationResult!==t&&(this._previousEvaluationResult=t,this.trigger(Lr,t),this.emitOutputValueChange())},r.prototype.emitOutputValueChange=function(){var t=this.getDataValue();this.trigger(le,t)},r.prototype.cleanupListeners=function(){this.resolverListeners.forEach((function(t){return t.destroy()})),this.resolverListeners=[]},r.prototype.toJSON=function(){var t=this.getIfTrue(),e=this.getIfFalse();return{type:vn,condition:this._conditionEvaluator.toJSON(),ifTrue:t,ifFalse:e}},r})(_.Kx),lt="data-condition-true-content",St="data-condition-false-content",Jt=function(){return Jt=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0}))},Dr=function(a,r){r===void 0&&(r={});var t=[],e=r.changed;if(r.fromInstance||r.noPropagate||r.fromUndo||e&&ri(a,e))return t;var n=Ir(a)||[],o=Yn(a);return t=(o?Ee([o],Ir(o)||[],!0):n).filter((function(l){return l!==a})).filter((function(l){return!(e&&ri(l,e))}))},No=function(a,r){for(var t=a,e=a.parent(r);e&&hn(e);)t=e,e=e.parent(r);return t},Mo=function(a,r){r===void 0&&(r={});var t=Yn(a),e=t&&Ir(t);!r.skipRefs&&e&&t.set(cr,e.filter((function(n){return n!==a}))),a.set(Y,0),a.components().forEach((function(n){return Mo(n,r)}))},Lo=function(a,r,t,e){e===void 0&&(e={});var n=Yn(a),o=Ir(a);(n||o)&&a.em.log(r,{model:a,toUp:t,context:"symbols",opts:e})},Cr=function(a,r){["status","open",cr,Y,ct,"attributes"].forEach((function(t){return delete a[t]})),delete r.id,(0,b.isEmptyObj)(r)||(a.attributes=r)},Io=function(a,r){(0,j.keys)(a).forEach((function(t){Xa(a,t,r)||delete a[t]}))},Xa=function(a,r,t){var e=(function(){var n;if(r==="attributes"){var o=a.attributes;return Object.values(o).some((function(l){return!!l?.collectionId}))}return!!(!((n=a[r])===null||n===void 0)&&n.collectionId)})();return!ri(t,r)||e},pa=function(a,r,t,e){var n=e||t||{},o={fromInstance:n.fromInstance,fromUndo:n.fromUndo},l=r.opt.temporary;if(e)if(e.add){var p=[],d=!!Ir(a);if(($t=Dr(a,Jt(Jt({},o),{changed:"components:add"}))).length){var C=Yn(r);p=Ir(C||r)||[],(p=Ee([],p,!0)).push(C||r)}!l&&Lo(a,"add",$t,{opts:e,addedInstances:p.map((function(_e){return _e.cid})),added:r.cid}),$t.forEach((function(_e){var we=No(_e),Re=p.filter((function(Je){var Tn=No(Je,{prev:1});return we&&Tn&&Tn===we}))[0]||r.clone({symbol:!0,symbolInv:d});_e.append(Re,Jt({fromInstance:a},e))}))}else{var y=Yn(r);if(y&&!e.temporary&&y.set(cr,Ir(y).filter((function(_e){return _e!==r}))),!Un(r)&&!e.skipRefsUp){var L="components:remove",W=e.index,nt=r.parent(),ht=Jt({fromInstance:r},e),yt=Un(r),xt=function(_e){var we=_e.parent();we&&!ri(we,L)&&_e.remove(ht)};$t=ri(nt,L)?[]:Dr(r,o),yt&&($t=nt&&Dr(nt,Jt(Jt({},o),{changed:L})),xt=function(_e){var we=_e.components().at(W);we&&we.remove(Jt({fromInstance:nt},ht))}),!l&&Lo(a,"remove",$t,{opts:e,removed:r.cid,isSymbNested:yt}),$t.forEach(xt)}}else{var Tt=r,$t=Dr(a,Jt(Jt({},o),{changed:"components:reset"})),re=Tt.models,ge=new Set;Lo(a,"reset",$t,{components:re}),$t.forEach((function(_e){var we=_e.components(),Re=re.map((function(Je,Tn){return a.get(On)?Je.clone({symbol:hn(Je)}):!hn(Je)||ge.has(Je)?(ge.add(Je),Je.clone({symbol:!0})):we.at(Tn)}));we.reset(Re,Jt({fromInstance:a},t))}))}a.__changesUp(n)};function oi(a){return typeof a=="object"&&[wr,vn].includes(a?.type)}function $o(a){return a?.type===wr}function zi(a,r){return oi(a)?($o(a)&&jo.resolveDataResolver(a,r),da(a,r)):a}function Jr(a,r){var t,e,n=a.type;switch(n){case wr:e=new jo(a,r);break;case vn:e=new Ve(a,r);break;default:return void((t=r.em)===null||t===void 0||t.logWarning("Unsupported dynamic type: ".concat(n)))}return e}function da(a,r){var t=Jr(a,r);return t?.getDataValue()}function fa(a){var r=(function(e){var n=e.collectionsStateMap;if(!n)return!1;var o=Object.keys(n);if(!o.length)return!1;var l=Yn(e);if(!l||l===e)return!1;var p=l.collectionsStateMap;return Object.keys(p).every((function(d){return o.includes(d)}))})(a),t=r?(function(e){var n=Yn(e);return n?n.getId():""})(a):null;return{shouldSync:r,itemId:t}}var Wi=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Do=function(){return Do=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0:o;if(d.substring(0,2)==="__")return"continue";var y=n[d];((0,j.isArray)(y)?y:[y]).forEach((function(L){var W="".concat(L).concat(C?" !important":"");W&&e.push("".concat(d,":").concat(W,";"))}))};for(var p in n)l(p);return e.join("")},r.prototype.getSelectors=function(){return this.get("selectors")||this.get("classes")},r.prototype.getSelectorsString=function(t){return this.selectorsToString?this.selectorsToString(t):this.getSelectors().getFullString()},r})(_.Kx);const Ro=Gi;var ga=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Gn=function(){return Gn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0}));e.keepIds=(e.keepIds||[]).concat(C),p.forEach((function(y){return n.removeChildren(y,o,e)})),t.each((function(y){return n.onAdd(y)}))},r.prototype.resetFromString=function(t,e){var n,o;t===void 0&&(t=""),e===void 0&&(e={}),e.keepIds=lo(this);var l=this,p=l.domc,d=l.em,C=l.parent,y=d?.Css,L=p?.allById()||{},W=this.parseString(t,e),nt=Ti(W,L,e),ht=e.visitedCmps,yt=ht===void 0?{}:ht;Object.keys(yt).forEach((function(xt){var Tt=yt[xt];if(Tt.length){var $t=y?.getRules("#".concat(xt))||[];$t.length&&Tt.forEach((function(re){$t.forEach((function(ge){var _e=ge.clone();_e.set("selectors",["#".concat(re.attributes.id)]),y.getAll().add(_e)}))}))}})),this.reset(nt,e),d?.trigger("component:content",C,e,t),(o=(n=C).__checkInnerChilds)===null||o===void 0||o.call(n)},r.prototype.removeChildren=function(t,e,n){var o=this;if(n===void 0&&(n={}),t){var l=this.domc,p=this.em,d=n.temporary||n.fromUndo;if(t.prevColl=this,!d){var C=t.getId(),y=p.Selectors.getAll(),L=p.Css.getAll(),W=(n.keepIds||[]).indexOf(C)<0;delete(l?l.allById():{})[C];var nt=W?L.remove(L.filter((function(Tt){return Tt.getSelectors().getFullString()==="#".concat(C)})),n):[];y.remove(nt.map((function(Tt){return Tt.getSelectors().at(0)}))),t.opt.temporary||(p.Commands.run("core:component-style-clear",{target:t}),t.views.forEach((function(Tt){Tt.scriptContainer&&t.emitWithEditor(Kt.I.scriptUnmount,{component:t,view:Tt,el:Tt.el})})),t.removed(),t.trigger("removed"),p.trigger(Kt.I.remove,t),l&&Ce(t)&&Un(t)&&l.symbols.__trgEvent(l.events.symbolInstanceRemove,{component:t},!0));var ht=t.components();ht.forEach((function(Tt){pa(Tt,Tt,ht,Gn(Gn({},n),{skipRefsUp:!0})),o.removeChildren(Tt,e,n)}))}var yt=t.components();if(p.stopListening(yt),p.stopListening(t),p.stopListening(t.get("classes")),t.__postRemove(),!t.opt.temporary){var xt=function(Tt){Tt.emitWithEditor(Kt.I.removed,Tt,{removeOptions:n}),Tt.components().forEach((function($t){return xt($t)}))};xt(t)}}},r.prototype.model=function(t,e){var n,o=e.collection.opt,l=o.em,p=l.Components.componentTypes;e.em=l,e.config=o.config,e.componentTypes=p,e.domc=o.domc;for(var d=0;d=0&&n.set("void",!0),e.em=o,n.opt=e,n.em=o,n.config=e.config||{};var W=n.dataResolverWatchers.getDynamicAttributesDefs();if(n.setAttributes(ln(ln(ln({},(0,j.result)(n,"defaults").attributes||{}),n.get("attributes")||{}),W)),n.ccid=r.createId(n,e),n.preInit(),n.initClasses(),n.initComponents(),n.initTraits(),n.initToolbar(),n.initScriptProps(),n.listenTo(n,"change:script",n.scriptUpdated),n.listenTo(n,"change:tagName",n.tagUpdated),n.listenTo(n,"change:attributes",n.attrUpdated),n.listenTo(n,"change:attributes:id",n._idUpdated),n.on("change:toolbar",n.__emitUpdateTlb),n.on("change",n.__onChange),n.on(Pt,n.__propToParent),n.set("status",""),n.views=[],["classes","traits","components"].forEach((function(Tt){var $t="add remove reset ".concat(Tt!=="components"?"change":"");n.listenTo(n.get(Tt),$t.trim(),(function(){for(var re=[],ge=0;ge").concat(l);return!p&&(d+="")),d},r.prototype.getInnerHTML=function(t){return this.__innerHTML(t)},r.prototype.__innerHTML=function(t){t===void 0&&(t={});var e=this.components();return e.length?e.map((function(n){return n.toHTML(t)})).join(""):this.content},r.prototype.__attrToString=function(t){t===void 0&&(t={});var e=[],n=t.attributes,o=this.getAttrToHTML(t);if(n&&((0,j.isFunction)(n)?o=n(this,o)||{}:(0,b.isObject)(n)&&(o=n)),t.withProps){var l=this.toJSON();(0,j.forEach)(l,(function(L,W){W[0]!=="_"&&["classes","attributes","components"].indexOf(W)<0&&(o["data-gjs-".concat(W)]=(0,j.isArray)(L)||(0,b.isObject)(L)?JSON.stringify(L):(0,j.isBoolean)(L)?"".concat(L):L)}))}for(var p in o){var d=o[p];if(!(0,j.isUndefined)(d)&&d!==null)if((0,j.isBoolean)(d))d&&e.push(p);else{var C="";if(t.altQuoteAttr&&(0,j.isString)(d)&&d.indexOf('"')>=0)C="'".concat(d.replace(/'/g,"'"),"'");else{var y=(0,j.isString)(d)?d.replace(/"/g,"""):d;C='"'.concat(y,'"')}e.push("".concat(p,"=").concat(C))}}return e.join(" ")},r.prototype.getAttrToHTML=function(t){var e=this.getAttributes();return Ei(this.em)&&t?.keepInlineStyle!==!0&&delete e.style,e},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=N.Model.prototype.toJSON.call(this,t);if((e=ln(ln({},e),this.dataResolverWatchers.getDynamicPropsDefs())).attributes=this.dataResolverWatchers.getAttributesDefsOrValues(this.getAttributes()),delete e.dataResolverWatchers,delete e.attributes.class,delete e.toolbar,delete e.traits,delete e.status,delete e.open,delete e._undoexc,delete e.delegate,this.collectionsStateMap&&Object.getOwnPropertyNames(this.collectionsStateMap).length>0&&(delete e[Y],delete e[ct],delete e[cr],delete e.attributes.id),!t.fromUndo){var n=e[Y],o=e[cr];o&&(0,j.isArray)(o)&&(e[cr]=o.filter((function(l){return l})).map((function(l){return l.getId?l.getId():l}))),n&&!(0,j.isString)(n)&&(e[Y]=n.getId())}return this.em.getConfig().avoidDefaults&&this.getChangedProps(e),e},r.prototype.getChangedProps=function(t){var e=t||N.Model.prototype.toJSON.apply(this),n=(0,j.result)(this,"defaults");return(0,j.forEach)(n,(function(o,l){["type"].indexOf(l)===-1&&e[l]===o&&delete e[l]})),(0,j.isEmpty)(e.type)&&delete e.type,(0,j.forEach)(["attributes","style"],(function(o){(0,j.isEmpty)(n[o])&&(0,j.isEmpty)(e[o])&&delete e[o]})),(0,j.forEach)(["classes","components"],(function(o){(!e[o]||(0,j.isEmpty)(n[o])&&!e[o].length)&&delete e[o]})),e},r.prototype.getId=function(){var t=this.get("attributes")||{},e=fa(this),n=e.shouldSync,o=e.itemId;return n&&(t.id=o),t.id||this.ccid||this.cid},r.prototype.setId=function(t,e){return this.addAttributes({id:t},e),this},r.prototype.getEl=function(t){var e=this.getView(t);return e&&e.el},r.prototype.getView=function(t){var e=this,n=e.view,o=e.views,l=e.em,p=t||l?.getCurrentFrameModel();return p&&(n=o.filter((function(d){return d.frameView===p.view}))[0]),n},r.prototype.getCurrentView=function(){var t=this.em.getCurrentFrame(),e=t?.model;return this.getView(e)},r.prototype.__getScriptProps=function(){var t=this.props();return(this.get("script-props")||[]).reduce((function(e,n){return e[n]=t[n],e}),{})},r.prototype.getScriptString=function(t){var e=this,n=t||this.get("script")||"";if(!n)return n;if(this.get("script-props"))n=n.toString().trim();else{if((0,j.isFunction)(n)){var o=n.toString().trim();n=(o=o.slice(o.indexOf("{")+1,o.lastIndexOf("}"))).trim()}var l=this.em.getConfig(),p=Zi(l.tagVarStart||"{[ "),d=Zi(l.tagVarEnd||" ]}"),C=new RegExp("".concat(p,"([\\w\\d-]*)").concat(d),"g");n=n.replace(C,(function(y,L){e.scriptUpdated();var W=e.attributes[L]||"";return(0,j.isArray)(W)||typeof W=="object"?JSON.stringify(W):W}))}return n},r.prototype.emitUpdate=function(t){for(var e,n=[],o=1;o=0&&this.__propSelfToParent({component:this,changed:(e={},e[t]=d,e),options:n[2]||n[1]||{}})},r.prototype.emitWithEditor=function(t,e,n){[this.em,this].forEach((function(o){return o?.trigger(t,e,n)}))},r.prototype.onAll=function(t){return(0,j.isFunction)(t)&&(t(this),this.components().forEach((function(e){return e.onAll(t)}))),this},r.prototype.forEachChild=function(t){(0,j.isFunction)(t)&&this.components().forEach((function(e){t(e),e.forEachChild(t)}))},r.prototype.remove=function(t){var e=this;t===void 0&&(t={});var n=this.em,o=this.collection,l=function(){o&&o.remove(e,ln({action:Kt.t.remove},t)),o||(e.components("",t),e.components().removeChildren(e,void 0,t))},p=ln({},t);return[this,n].map((function(d){return d.trigger(Kt.I.removeBefore,e,l,p)})),!p.abort&&l(),this},r.prototype.destroy=function(t){return this.stopListening(this.components(),"add remove reset",this.syncOnComponentChange),this.dataResolverWatchers.destroy(),this.__onDestroy(),a.prototype.destroy.call(this,t)},r.prototype.move=function(t,e){if(e===void 0&&(e={}),t){var n=e.at,o=this.index(),l=t===this.parent();if(!l||!(o===n||o===n-1)){l&&n&&n>o&&(e.at=n-1);var p=Kt.t.move;this.remove({action:p,temporary:1}),t.append(this,ln({action:p},e)),this.emitUpdate()}}return this},r.prototype.isInstanceOf=function(t){var e,n,o=(n=(e=this.em)===null||e===void 0?void 0:e.Components.getType(t))===null||n===void 0?void 0:n.model;if(!o)return!1;var l=this.constructor.typeExtends;return this instanceof o||l.has(t)},r.prototype.isChildOf=function(t){for(var e=(0,j.isString)(t),n=this.parent();n;){if(e){if(n.isInstanceOf(t))return!0}else if(n===t)return!0;n=n.parent()}return!1},r.prototype.resetId=function(t){t===void 0&&(t={});var e=this.em,n=this.getId();if(!n)return this;var o=r.createId(this);this.setId(o);var l=e?.Css.getIdRule(n),p=l?.get("selectors").at(0);return p?.set("name",o),this},r.prototype._getStyleRule=function(t){var e=(t===void 0?{}:t).id,n=this.em,o=e||this.getId();return n?.Css.getIdRule(o)},r.prototype._getStyleSelector=function(t){var e=this._getStyleRule(t);return e?.get("selectors").at(0)},r.prototype._idUpdated=function(t,e,n){if(n===void 0&&(n={}),!n.idUpdate){var o=this.ccid,l=(this.get("attributes")||{}).id,p=(this.previous("attributes")||{}).id||o,d=r.getList(this);if(d[l]||!l&&p)return this.setId(p,{idUpdate:!0});delete d[p],d[l]=this,this.ccid=l;var C=this._getStyleSelector({id:p});C&&C.set({name:l,label:l})}},r.getDefaults=function(){return(0,j.result)(this.prototype,"defaults")},r.isComponent=function(t,e){return{tagName:(0,b.toLowerCase)(t.tagName)}},r.ensureInList=function(t){var e=r.getList(t),n=t.getId(),o=e[n];if(o){if(o!==t){var l=r.getIncrementId(n,e);t.setId(l),e[l]=t}}else e[n]=t;t.components().forEach((function(p){return r.ensureInList(p)}))},r.createId=function(t,e){e===void 0&&(e={});var n,o=r.getList(t),l=e.idMap,p=l===void 0?{}:l,d=t.get("attributes").id;return d?(n=r.getIncrementId(d,o,e),t.setId(n),d!==n&&(p[d]=n)):n=r.getNewId(o),o[n]=t,n},r.getNewId=function(t){for(var e=Object.keys(t).length.toString().length+2,n=(Math.random()+1.1).toString(36).slice(-e),o="i".concat(n);t[o];)o=r.getNewId(t);return o},r.getIncrementId=function(t,e,n){n===void 0&&(n={});var o=n.keepIds,l=1,p=t;if((o===void 0?[]:o).indexOf(t)<0)for(;e[p];)l++,p="".concat(t,"-").concat(l);return p},r.getList=function(t){var e,n=t.em,o=n?.Components;return(e=o?.componentsById)!==null&&e!==void 0?e:{}},r.checkId=function(t,e,n,o){e===void 0&&(e=[]),n===void 0&&(n={}),o===void 0&&(o={});var l=(0,j.isArray)(t)?t:[t],p=o.keepIds,d=p===void 0?[]:p,C=o.idMap,y=C===void 0?{}:C;l.forEach((function(L){L.attributes;var W=L.attributes,nt=W===void 0?{}:W,ht=L.components,yt=nt.id;if(yt&&n[yt]&&d.indexOf(yt)<0){var xt=r.getIncrementId(yt,n);y[yt]=xt,nt.id=xt,(0,j.isArray)(e)&&e.forEach((function(Tt){var $t=Tt.selectors;$t.forEach((function(re,ge){re==="#".concat(yt)&&($t[ge]="#".concat(xt))}))}))}ht&&r.checkId(ht,e,n,o)}))},r.typeExtends=new Set,r})(Ro);const Lt=Ut;var ae=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),be=function(){return be=Object.assign||function(a){for(var r,t=1,e=arguments.length;tl&&(p+=n-l);var d=this.getElScrollTop(e);this.lastClientY!==void 0&&p!==0&&this.lastMaxHeight-p>d&&(e.scrollBy({top:p,left:0,behavior:"auto"}),(t=this.onScroll)===null||t===void 0||t.call(this)),requestAnimationFrame(this.autoscroll)}},a.prototype.getEventElHeight=function(){var r=this.eventEl;return r?r.getBoundingClientRect().height:0},a.prototype.updateClientY=function(r){var t=this.scrollEl;r.preventDefault();var e=this.rectIsInScrollIframe?0:this.getElScrollTop(t);this.lastClientY=(0,ft.G2)(r).clientY*this.zoom-e},a.prototype.getElScrollTop=function(r){return(r instanceof HTMLElement?r.scrollTop:r?.scrollY)||0},a.prototype.toggleAutoscrollFx=function(r){this.dragging=r;var t=this.eventEl;if(t){var e=r?"on":"off",n={on:ft.on,off:ft.AU};n[e](t,"mousemove dragover",this.updateClientY),n[e](t,"mouseup",this.stop)}},a.prototype.stop=function(){this.toggleAutoscrollFx(!1)},a})();const xr=br;var uo=Ae(8433),Yc=Ae(1447),Xc=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Kp=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Xc(r,a),r.prototype.canMove=function(t,e){var n=this,o=this.getRealIndex(e),l=t._dragSource,p=l.model,d=l.content,C=l.dragDef,y=!p||!this.isSourceSameSymbol(p),L=((0,j.isFunction)(d)?C:d)||t.model;return Array.isArray(L)?y&&L.every((function(W,nt){return n.canMoveSingleContent(W,o+nt)})):y&&this.canMoveSingleContent(L,o)},r.prototype.canMoveSingleContent=function(t,e){return this.model.em.Components.canMove(this.model,t,e).result},r.prototype.addChildAt=function(t,e){var n=t._dragSource.content,o=this.isTextNode()&&t.isTextable(),l=(0,j.isFunction)(n)?n():n;return Array.isArray(l)?this.addMultipleChildren(l,e,o):this.addSingleChild(l,e,o)},r.prototype.addSingleChild=function(t,e,n){var o,l,p,d,C;return C=n?(d=(p=(l=(o=this.model)===null||o===void 0?void 0:o.getView)===null||l===void 0?void 0:l.call(o))===null||p===void 0?void 0:p.insertComponent)===null||d===void 0?void 0:d.call(p,t,{action:"add-component"}):this.model.components().add(t,{at:this.getRealIndex(e),action:"add-component"}),new this.constructor(C)},r.prototype.addMultipleChildren=function(t,e,n){var o,l=this;return t.forEach((function(p,d){o=l.addSingleChild(p,e+d,n)})),o},r.prototype.isSourceSameSymbol=function(t){if(hn(this.model)){var e=No(this.model);if((xe(e)?e:Yn(e))===t)return!0}return!1},Object.defineProperty(r.prototype,"content",{set:function(t){this._dragSource.content=t},enumerable:!1,configurable:!0}),r})(Yc.A);const Zc=Kp;var $l=function(){return $l=Object.assign||function(a){for(var r,t=1,e=arguments.length;t";if(o.stopDefault(),o.inAbsoluteMode()){var W=o.Components.getWrapper(),nt=W.append({})[0],ht=o.Commands.run("core:component-drag",{event:r,guidesInfo:1,center:1,target:nt,onEnd:function(ge,_e,we){var Re;if(!we.cancelled&&L){Re=W.append(L)[0];var Je=l.getOffset(),Tn=nt.getStyle(),un=Tn.top,ir=Tn.left,hr=Tn.position,Pr=(0,ft.Xy)(ge.target),Go=parseInt("".concat(parseFloat(ir)+Pr.x-Je.left),10),Ri=parseInt("".concat(parseFloat(un)+Pr.y-Je.top),10);Re.addStyle({left:Go+"px",top:Ri+"px",position:hr})}n.handleDragEnd(Re,p),nt.remove()}});C=function(ge){return ht.stop(r,{cancel:ge})},this.setAbsoluteDragContent=function(ge){return L=ge}}else{var yt=new y.ComponentSorter({em:o,treeClass:Zc,containerContext:{container:this.el,containerSel:"*",itemSel:"*",pfx:"gjs-",placeholderElement:l.getPlacerEl(),document:this.el.ownerDocument},dragBehavior:{dragDirection:uo.A.BothDirections,nested:!0},positionOptions:{windowMargin:1,canvasRelative:!0},eventHandlers:{legacyOnEndMove:this.handleDragEnd}}),xt=(t=this.getSorterOptions)===null||t===void 0?void 0:t.call(this,yt);xt&&(yt.eventHandlers.legacyOnStartSort=xt.legacyOnStart,yt.eventHandlers.legacyOnEnd=xt.legacyOnEnd,yt.containerContext.customTarget=xt.customTarget);var Tt=o.Components.getShallowWrapper(),$t=Tt?.append(L,{temporary:!0})[0],re=[{element:$t?.getEl(),dragSource:$l({model:$t},d)}];yt.startSort(re),this.sorter=yt,this.draggedNode=(e=yt.sourceNodes)===null||e===void 0?void 0:e[0],C=function(ge){ge?yt.cancelDrag():yt.endDrag()}}this.dragStop=C,o.trigger("canvas:dragenter",p,L)}},a.prototype.handleDragEnd=function(r,t){var e=this.em;this.over=!1,r&&(e.set("dragResult",r),e.trigger("canvas:drop",t,r)),e.runDefault({preserveSelected:1})},a.prototype.handleDragOver=function(r){r.preventDefault(),this.em.trigger("canvas:dragover",r)},a.prototype.handleDrop=function(r){var t;r.preventDefault();var e=r.dataTransfer,n=this.getContentByData(e).content;this.draggedNode&&(this.draggedNode.content=n),(t=this.setAbsoluteDragContent)===null||t===void 0||t.call(this,n),this.endDrop(!n,r)},a.prototype.getContentByData=function(r){var t=this.em,e=r&&r.types,n=r&&r.files||[],o=t.get("dragSource"),l=r&&r.getData("text");if(n.length){l=[];for(var p=0;p=0)l=r&&r.getData("text/html").replace(/<\/?meta[^>]*>/g,"");else if((0,j.indexOf)(e,"text/uri-list")>=0)l={type:"link",attributes:{href:l},content:l};else if((0,j.indexOf)(e,"text/json")>=0){var y=r&&r.getData("text/json");y&&(l=JSON.parse(y))}else e.length===1&&e[0]==="text/plain"&&(l="
".concat(l,"
"));var L={content:l};return t.trigger("canvas:dragdata",r,L),L},a})();const Jc=Qc;var os=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),po=function(){return po=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0){var nt=L.shift(),ht=(0,ft.a_)("script",po({type:"text/javascript"},(0,j.isString)(nt)?{src:nt}:nt));(W=n.contentDocument)===null||W===void 0||W.head.appendChild(ht),ht.hasAttribute("nomodule")&&"noModule"in HTMLScriptElement.prototype?y(L):ht.onerror=ht.onload=y.bind(null,L)}else l?.trigger(nn.frameLoadHead,d),t.renderBody(),l?.trigger(nn.frameLoadBody,d),l?.trigger(p,d)};n.onload=function(){var L=t.config.frameContent;if(L){var W=t.getDoc();W.open(),W.write(L),W.close()}d.window=t.getWindow(),l?.trigger("".concat(p,":before"),d),l?.trigger(nn.frameLoad,d),t.renderHead(),y(tu([],C.get("scripts"),!0))}},r.prototype.renderStyles=function(t){t===void 0&&(t={});var e=this.getHead(),n=this.getCanvasModel(),o=function(L){return L===void 0&&(L=[]),L.map((function(W){return{tag:"link",attributes:po({rel:"stylesheet"},(0,j.isString)(W)?{href:W}:W)}}))},l=o(t.prev||n.previous("styles")),p=o(n?.get("styles")),d=[],C=[],y=function(L,W,nt){L.forEach((function(ht){var yt=ht.attributes.href;!W.some((function(xt){return xt.attributes.href===yt}))&&nt.push(ht)}))};y(p,l,C),y(l,p,d),d.forEach((function(L){var W,nt=e.querySelector('link[href="'.concat(L.attributes.href,'"]'));(W=nt?.parentNode)===null||W===void 0||W.removeChild(nt)})),(0,ft.af)(e,C)},r.prototype.renderHead=function(){var t,e=this.model,n=this.em,o=e.root,l=(t=n?.Components)===null||t===void 0?void 0:t.getType($e).view;l&&(this.headView=new l({el:this.getHead(),model:o.head,config:po(po({},o.config),{frameView:this})}).render())},r.prototype.renderBody=function(){var t,e=this,n=this,o=n.config,l=n.em,p=n.model,d=n.ppfx,C=this.getBody(),y=this.getWindow(),L=p.hasAutoHeight(),W=l.config;y._isEditor=!0,this.renderStyles({prev:[]}),(0,ft.BC)(C,``));var nt=p.root,ht=(((t=l?.Components)===null||t===void 0?void 0:t.getType("wrapper"))||{}).view;ht&&((0,j.isFunction)(o.customRenderer)?o.customRenderer({editor:l.Editor,frame:p,window:y,frameView:this,onMount:function(yt){e.wrapper=yt,e._onRootMount(yt)}}):(this.wrapper=new ht({model:nt,config:po(po({},nt.config),{em:l,frameView:this})}).render(),this._onRootMount(this.wrapper)))},r.prototype._onRootMount=function(t){var e,n=this,o=this,l=o.config,p=o.em,d=o.model,C=this.getDoc(),y=C.body;(0,ft.BC)(y,t.el),(0,ft.BC)(y,new sr({collection:d.getStyles(),config:po(po({},p.Css.getConfig()),{frameView:this})}).render().el),(0,ft.BC)(y,this.getJsContainer()),(0,ft.on)(y,"click",(function(L){var W;return L&&((W=L.target)===null||W===void 0?void 0:W.tagName)=="A"&&L.preventDefault()})),(0,ft.on)(y,"submit",(function(L){return L&&L.preventDefault()})),[{event:"keydown keyup keypress",class:"KeyboardEvent"},{event:"mousedown mousemove mouseup",class:"MouseEvent"},{event:"pointerdown pointermove pointerup",class:"PointerEvent"},{event:"wheel",class:"WheelEvent",opts:{passive:!l.infiniteCanvas}}].forEach((function(L){return L.event.split(" ").forEach((function(W){C.addEventListener(W,(function(nt){return n.el.dispatchEvent((0,ft.yL)(nt,L.class))}),L.opts)}))})),this._toggleEffects(!0),(0,b.hasDnd)(p)&&(this.droppable=new Jc(p,(e=this.wrapper)===null||e===void 0?void 0:e.el)),this.loaded=!0,d.trigger("loaded")},r.prototype._toggleEffects=function(t){var e=t?ft.on:ft.AU,n=this.getWindow();n&&e(n,"".concat(ft.D8," resize"),this._emitUpdate)},r.prototype._emitUpdate=function(){this.model._emitUpdated()},r})(pt);const Us=Yl;var Xl=Ae(9966),zs=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),jr=function(){return jr=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
`).concat(p.get("name")||"",`
`)).append(e.el);var y=(0,ft.a_)("div",{class:"".concat(o,"tools"),style:"pointer-events:none; display: none"},`
`));this.elTools=y;var L=l?.toolsWrapper;return L&&L.appendChild(y),C&&C({el:d,elTop:d.querySelector("[data-frame-top]"),elRight:d.querySelector("[data-frame-right]"),elBottom:d.querySelector("[data-frame-bottom]"),elLeft:d.querySelector("[data-frame-left]"),frame:p,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this},r})(pt);const Zl=eu;var Ql=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),nu=(function(a){function r(t,e){t===void 0&&(t={});var n=a.call(this,t,!0)||this;return n.listenTo(n.collection,"reset",n.render),n.canvasView=e.canvasView,n._module=e.module,n}return Ql(r,a),r.prototype.onRemoveBefore=function(t,e){e===void 0&&(e={}),t.forEach((function(n){return n.remove(e)}))},r.prototype.onRender=function(){var t=this.$el,e=this.ppfx;t.attr({class:"".concat(e,"frames")})},r.prototype.clearItems=function(){(this.viewCollection||[]).forEach((function(t){return t.remove()})),this.viewCollection=[]},r.prototype.renderView=function(t,e){return new Zl(t,this.canvasView)},r})(qt);const ru=nu;var Jl=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ws=function(){return Ws=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
`)},r.prototype._onFramesUpdate=function(){this._initFrames(),this._renderFrames()},r.prototype._initFrames=function(){var t=this,e=t.frames,n=t.model,o=t.config,l=t.em,p=n.frames;l.set("readyCanvas",0),p.once("loaded:all",(function(){return l.set("readyCanvas",1)})),e?.remove(),this.frames=new ru({collection:p},Ws(Ws({},o),{canvasView:this}))},r.prototype.checkSelected=function(t,e){var n;e===void 0&&(e={});var o=e.scroll,l=this.em.getCurrentFrame();o&&((n=t.views)===null||n===void 0||n.forEach((function(p){p.frameView===l&&p.scrollIntoView(o)})))},r.prototype.remove=function(){for(var t,e=[],n=0;n=un?un/2-Je/2:-we),hi=-Tt.y+ir/2-Tn/2,gi=d.getZoomDecimal(),qo={x:(Hi+we)*gi,y:(hi+Re)*gi};if(re){var mi=d.getZoomMultiplier(),Ko=(ir*mi-ir)/2;qo.y=(-Tt.y+Re)*gi-Ko/mi}d.setCoords(qo.x,qo.y)},r.prototype.isElInViewport=function(t){var e=(0,b.getElement)(t),n=(0,ft.C8)(e),o=this.getFrameOffset(e),l=n.top,p=n.left;return l>=0&&p>=0&&l<=o.height&&p<=o.width},r.prototype.offset=function(t,e){e===void 0&&(e={});var n=e.noScroll,o=(0,ft.C8)(t),l=n?{x:0,y:0}:(0,ft.Xy)(t);return{top:o.top+l.y,left:o.left+l.x,width:o.width,height:o.height}},r.prototype.getRectToScreen=function(t){var e,n,o,l,p=this.getCanvasScroll(),d=this.module.getZoomDecimal(),C=this.module.getCoords(),y=this.getViewportDelta();return{x:((e=t.x)!==null&&e!==void 0?e:0)*d-p.scrollLeft+C.x+y.x||0,y:((n=t.y)!==null&&n!==void 0?n:0)*d-p.scrollTop+C.y+y.y||0,width:((o=t.width)!==null&&o!==void 0?o:0)*d,height:((l=t.height)!==null&&l!==void 0?l:0)*d}},r.prototype.getElBoxRect=function(t,e){var n,o,l;e===void 0&&(e={});var p=this.module,d=(0,ft.C8)(t),C=d.width,y=d.height,L=d.left,W=d.top,nt=(n=(0,b.getComponentView)(t))===null||n===void 0?void 0:n.frameView,ht=nt?.getBoxRect(),yt=p.getZoomMultiplier(),xt=(o=ht?.x)!==null&&o!==void 0?o:0,Tt=(l=ht?.y)!==null&&l!==void 0?l:0,$t=this.el,re=(0,ft.Xy)(),ge={x:L+xt+($t.scrollLeft+re.x)*yt,y:W+Tt+($t.scrollTop+re.y)*yt,width:C,height:y};return e.local&&(ge.x=L,ge.y=W),e.toScreen?this.getRectToScreen(ge):ge},r.prototype.getViewportRect=function(t){t===void 0&&(t={});var e=this.getCanvasOffset(),n=e.top,o=e.left,l=e.width,p=e.height,d=this.module;if(t.toWorld){var C=d.getZoomMultiplier(),y=d.getCoords(),L=this.getViewportDelta();return{x:(-y.x-L.x||0)*C,y:(-y.y-L.y||0)*C,width:l*C,height:p*C}}return{x:o,y:n,width:l,height:p}},r.prototype.getViewportDelta=function(t){t===void 0&&(t={});var e=this.module.getZoomMultiplier(),n=this.getCanvasOffset(),o=n.width,l=n.height;return{x:(o*e-o)/2/e,y:(l*e-l)/2/e}},r.prototype.clearOff=function(){this.frmOff=void 0,this.cvsOff=void 0},r.prototype.getFrameOffset=function(t){var e;if(!this.frmOff||t){var n=(e=this.frame)===null||e===void 0?void 0:e.el,o=t?.ownerDocument.defaultView,l=o?o.frameElement:n;this.frmOff=this.offset(l||n)}return this.frmOff},r.prototype.getCanvasOffset=function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},r.prototype.getElementPos=function(t,e){e===void 0&&(e={});var n=this.module.getZoomDecimal(),o=this.getFrameOffset(t),l=this.el,p=this.getCanvasOffset(),d=this.offset(t,e),C=e.avoidFrameOffset?0:o.top,y=e.avoidFrameOffset?0:o.left,L=e.avoidFrameZoom?d.top:d.top*n,W=e.avoidFrameZoom?d.left:d.left*n;return{top:e.avoidFrameOffset?L:L+C-p.top+l.scrollTop,left:e.avoidFrameOffset?W:W+y-p.left+l.scrollLeft,height:e.avoidFrameZoom?d.height:d.height*n,width:e.avoidFrameZoom?d.width:d.width*n,zoom:n,rect:d}},r.prototype.getElementOffsets=function(t){if(!t||(0,ft.ir)(t))return{};var e={},n=window.getComputedStyle(t),o=this.module.getZoomDecimal();return["marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"].forEach((function(l){e[l]=parseFloat(n[l])*o})),e},r.prototype.getPosition=function(t){var e;t===void 0&&(t={});var n=(e=this.frame)===null||e===void 0?void 0:e.el.contentDocument;if(!n)return{top:0,left:0,width:0,height:0};var o=n.body,l=this.module.getZoomDecimal(),p=this.getFrameOffset(),d=this.getCanvasOffset(),C=t.noScroll;return{top:p.top+(C?0:o.scrollTop)*l-d.top,left:p.left+(C?0:o.scrollLeft)*l-d.left,width:d.width,height:d.height}},r.prototype.getCanvasScroll=function(){return this.config.scrollableCanvas?{scrollTop:this.el.scrollTop,scrollLeft:this.el.scrollLeft}:{scrollTop:0,scrollLeft:0}},r.prototype.updateScript=function(t){var e=t.model,n=e.getId(),o={component:e,view:t,el:t.el};if(!t.scriptContainer){t.scriptContainer=(0,ft.a_)("div",{"data-id":n});var l=this.getJsContainer();l?.appendChild(t.scriptContainer)}t.el.id=n,t.scriptContainer.innerHTML="";var p=document.createElement("script"),d=e.getScriptString(),C=e.get("script-props")?d:`function(){ `.concat(d,` ;}`),y=JSON.stringify(e.__getScriptProps());p.innerHTML=` setTimeout(function() { var item = document.getElementById('`.concat(n,`'); if (!item) return; var script = (`).concat(C,`).bind(item); script(`).concat(y,`, { el: item }); }, 1);`),setTimeout((function(){e.emitWithEditor(Kt.I.scriptMountBefore,o);var L=t.scriptContainer;L?.appendChild(p),e.emitWithEditor(Kt.I.scriptMount,o)}),0)},r.prototype.getJsContainer=function(t){var e=this.getFrameView(t);return e?.getJsContainer()},r.prototype.getFrameView=function(t){return t?.frameView||this.em.getCurrentFrame()},r.prototype._renderFrames=function(){if(this.ready){var t=this,e=t.model,n=t.frames,o=t.em,l=t.framesArea,p=e.frames;p.listenToLoad(),n.render();var d=p.at(0),C=d?.view;o.setCurrentFrame(C),l?.appendChild(n.el),this.frame=C,this.updateFramesArea()}},r.prototype.renderFrames=function(){this._renderFrames()},r.prototype.render=function(){var t=this,e=t.el,n=t.$el,o=t.ppfx,l=t.config,p=t.em;n.html(this.template());var d=n.find("[data-frames]");this.framesArea=d.get(0);var C=n.find("[data-tools]");return this.toolsWrapper=C.get(0),C.append(`
`).concat(l.extHl?'
'):"",`
`)),this.toolsEl=e.querySelector("#".concat(o,"tools")),this.hlEl=e.querySelector(".".concat(o,"highlighter")),this.badgeEl=e.querySelector(".".concat(o,"badge")),this.placerEl=e.querySelector(".".concat(o,"placeholder")),this.ghostEl=e.querySelector(".".concat(o,"ghost")),this.toolbarEl=e.querySelector(".".concat(o,"toolbar")),this.resizerEl=e.querySelector(".".concat(o,"resizer")),this.offsetEl=e.querySelector(".".concat(o,"offset-v")),this.fixedOffsetEl=e.querySelector(".".concat(o,"offset-fixed-v")),this.toolsGlobEl=e.querySelector(".".concat(o,"tools-gl")),this.spotsEl=e.querySelector("[data-spots]"),this.cvStyle=e.querySelector("[data-canvas-style]"),e.className=(0,b.getUiClass)(p,this.className),l.scrollableCanvas===!0&&(e.style.overflow="auto"),this.ready=!0,this._renderFrames(),this},r})(pt);const Yp=$p;var ba=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Co=function(){return Co=Object.assign||function(a){for(var r,t=1,e=arguments.length;tp.top+p.height?p.top+p.height:yt,left:ht,elementTop:p.top,elementLeft:p.left,elementWidth:p.width,elementHeight:p.height,targetWidth:t.offsetWidth,targetHeight:t.offsetHeight,canvasTop:l.top,canvasLeft:l.left,canvasWidth:l.width,canvasHeight:l.height};return L&&this.em&&this.em.trigger(L,xt),xt}},r.prototype.canvasRectOffset=function(t,e,n){var o=this;n===void 0&&(n={});var l=function(p,d,C){d===void 0&&(d=1);var y=o.em.getZoomDecimal(),L=d?"top":"left",W=p.ownerDocument,nt=n.offset?(function(Je){var Tn=Je.defaultView;return Tn?.frameElement})(W):{},ht=nt.offsetTop,yt=ht===void 0?0:ht,xt=nt.offsetLeft,Tt=xt===void 0?0:xt,$t=W.body||{},re=$t.scrollTop,ge=re===void 0?0:re,_e=$t.scrollLeft,we=d?ge:_e===void 0?0:_e,Re=d?yt:Tt;return C[L]-(we-Re)*y};return{top:l(t,1,e),left:l(t,0,e)}},r.prototype.getTargetToElementFixed=function(t,e,n){n===void 0&&(n={});var o=n.pos||this.getElementPos(t,{noScroll:!0}),l=n.canvasOff||this.canvasRectOffset(t,o),p=e.offsetHeight||0,d=e.offsetWidth||0,C=this.getCanvasView(),y=C.getCanvasScroll(),L=y.scrollTop,W=y.scrollLeft,nt=C.getPosition(),ht=n.event,yt=o.width-d,xt=-p,Tt=(0,j.isUndefined)(n.left)?yt:n.left,$t=Math.max(-o.left+W,0);Tt=Math.max(Tt,$t);var re=o.width-d;Tt=Math.min(Tt,re);var ge=nt.width+W-d-o.left;Tt=Math.min(Tt,ge);var _e=xt;if(l.top")},r.isComponent=function(t){var e;if(t.nodeType==8)return{type:"comment",content:(e=t.textContent)!==null&&e!==void 0?e:""}},r})(si);const iu=Xp;var is=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),as=function(){return as=Object.assign||function(a){for(var r,t=1,e=arguments.length;t `),fallback:" `),file:""})},enumerable:!1,configurable:!0}),r.prototype.initToolbar=function(){a.prototype.initToolbar.call(this);var t=this.em;if(t){var e="image-editor";if(t.Commands.has(e)){for(var n=!1,o=this.get("toolbar"),l=0;l=0)&&delete n.editable}))}return n},r})(Ks);const Jp=ls;var Xs=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),cs=function(){return cs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0},r})(Lt);var od=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),oa=function(){return oa=Object.assign||function(a){for(var r,t=1,e=arguments.length;t").concat(d).concat(p,""):p},r.prototype.__postAdd=function(){var t,e=(t=this.em)===null||t===void 0?void 0:t.UndoManager;return!this.__hasUm&&e?.add(this),a.prototype.__postAdd.call(this)},r.prototype.__postRemove=function(){var t,e=(t=this.em)===null||t===void 0?void 0:t.UndoManager;return e?.remove(this),a.prototype.__postRemove.call(this)},r.isComponent=function(){return!1},r})(Lt);const xi=Bo;var Ai=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),uu=(function(a){function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.compView=Dn,t}return Ai(r,a),r.prototype.initialize=function(t){this.opts=t||{},this.config=t.config||{},this.em=this.config.em;var e=this.collection;this.listenTo(e,"add",this.addTo),this.listenTo(e,"reset",this.resetChildren),this.listenTo(e,"remove",this.removeChildren)},r.prototype.removeChildren=function(t,e,n){var o=this;n===void 0&&(n={}),t.views.forEach((function(l){if(l){var p=l.childrenView,d=l.scriptContainer;p&&p.stopListening(),(0,ft.YZ)(d),l.remove.apply(l)}})),t.components().forEach((function(l){return o.removeChildren(l,e,n)}))},r.prototype.addTo=function(t){this.addToCollection(t,null,this.collection.indexOf(t))},r.prototype.addToCollection=function(t,e,n){for(var o=this,l=o.config,p=o.opts,d=o.em,C=l.frameView,y=C?.model&&t.getView(C.model),L=p.componentTypes||d?.Components.getTypes(),W=t.get("type")||"default",nt=this.compView,ht=0;ht=0&&y0&&W=0&&nt0&&L<=C)},r.prototype.scrollIntoView=function(t){var e;if(t===void 0&&(t={}),!this.isInViewport()||t.force){var n=this.el;if(t.behavior!=="smooth"){var o=this.getOffsetRect();(e=n.ownerDocument.defaultView)===null||e===void 0||e.scrollTo(0,o.top)}else n.scrollIntoView(ti({behavior:"smooth",block:"nearest"},t))}},r.prototype.reset=function(){var t=this,e=t.el,n=t.model;t.scriptContainer&&n.emitWithEditor(Kt.I.scriptUnmount,{component:n,view:t,el:e}),this.el="",this._ensureElement(),this._setData(),(0,ft.bG)(e,this.el),this.render()},r.prototype._setData=function(){var t=this.model,e=this.el,n=t.components();this.$el.data({model:t,collection:n,view:this}),(0,b.setViewEl)(e,this)},r.prototype._createElement=function(t){return this.createDoc.createElement(t)},r.prototype.renderChildren=function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new ol({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes});e.render(t),this.childrenView=e;for(var n=Array.prototype.slice.call(e.el.childNodes),o=0,l=n.length;o0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]0&&(y=Math.max(0,C-p+1)),{startIndex:p,endIndex:C,totalItems:y,isArray:o}},r.prototype.ensureFirstChild=function(){var t=this.em.Components.getType(an).model;return this.firstChild||new t({type:an},this.opt)},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:".concat(On),(function(){t.rebuildChildrenFromCollection(),t.listenToDataSource()})),this.listenToDataSource()},r.prototype.removePropsListeners=function(){var t;this.off("change:".concat(On)),(t=this.dataSourceWatcher)===null||t===void 0||t.destroy()},r.prototype.onCollectionsStateMapUpdate=function(t){var e=this;this.collectionsStateMap=t,this.dataResolverWatchers.onCollectionsStateMapUpdate();var n=this.getDataSourceItems(),o=this.resolveCollectionConfig(n).startIndex;this.components().forEach((function(l,p){var d=e.getCollectionsStateMapForItem(n,o+p);l.onCollectionsStateMapUpdate(d)}))},r.prototype.stopSyncComponentCollectionState=function(){this.stopListening(this.components(),"add remove reset",this.syncOnComponentChange),this.onCollectionsStateMapUpdate({})},r.prototype.syncOnComponentChange=function(t,e,n){var o=this.collectionsStateMap;this.collectionsStateMap={},a.prototype.syncOnComponentChange.call(this,t,e,n),this.collectionsStateMap=o,this.onCollectionsStateMapUpdate(o)},Object.defineProperty(r.prototype,"collectionId",{get:function(){return this.getDataResolver().collectionId},enumerable:!1,configurable:!0}),r.isComponent=function(t){return(0,b.toLowerCase)(t.tagName)===fr},r.prototype.toJSON=function(t){var e,n=a.prototype.toJSON.call(this,t);delete n.droppable,delete n[Y],(e=n.attributes)===null||e===void 0||delete e.id;var o=this.firstChild;return Xr(Xr({},n),{components:[o]})},r.prototype.destroy=function(t){return this.removePropsListeners(),a.prototype.destroy.call(this,t)},r})(Lt);const Mi=yd;function Da(a,r){a.setSymbolOverride(["locked","layerable"]),a.syncComponentsCollectionState(),a.onCollectionsStateMapUpdate(r)}function yl(a,r,t){return!!a||(t.logError('The "'.concat(r,'" property is required in the collection definition.')),!1)}function ja(a,r){var t=r.DataSources.getValue(a,[]);return Object.keys(t).map((function(e){return{type:wr,path:a+"."+e}}))}var ui=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const bd=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return ui(r,a),r})(Dn);var _d=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),pi=function(){return pi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t-1;return Fr(Fr({},o),!nt||ht?{reason:Li.TargetReject}:{result:!0})},r.prototype.allById=function(){return this.componentsById},r.prototype.getById=function(t){return this.componentsById[t]||null},r.prototype.destroy=function(){var t,e=this.allById();Object.keys(e).forEach((function(n){return e[n]&&e[n].remove()})),(t=this.componentView)===null||t===void 0||t.remove(),[this.em,this.componentsById,this.componentView].forEach((function(n){return{}}))},r})(I);const Fu=Td,bl=function(){return{stylePrefix:"css-",rules:[]}};var Cd=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wd=Number.MAX_VALUE,Ts=(function(a){function r(){var t=a.call(this)||this;return(0,j.bindAll)(t,"sortRules"),t.compCls=[],t.ids=[],t}return Cd(r,a),r.prototype.buildFromModel=function(t,e){var n=this;e===void 0&&(e={});var o="",l=this.em,p=l&&l.getConfig().avoidInlineStyle,d=t.styleToString(),C=t.classes;return this.ids.push("#".concat(t.getId())),C.forEach((function(y){return n.compCls.push(y.getFullName())})),!p&&d&&(o="#".concat(t.getId(),"{").concat(d,"}")),t.components().forEach((function(y){return o+=n.buildFromModel(y,e)})),o},r.prototype.build=function(t,e){var n=this;e===void 0&&(e={});var o=e.json,l=e.em,p=e.cssc||l?.Css;this.em=l,this.compCls=[],this.ids=[],this.model=t;var d=[],C=t?this.buildFromModel(t,e):"",y=(0,j.isUndefined)(e.clearStyles)&&l?l.getConfig().clearStyles:e.clearStyles;if(p){var L=e.rules||p.getAll(),W={},nt=[];e.onlyMatched&&t&&(0,b.hasWin)()&&(L=this.matchedRules(t,L)),L.forEach((function(ht){var yt=ht.getAtRule();if(yt){var xt=W[yt];xt?xt.push(ht):W[yt]=[ht]}else{var Tt=n.buildFromRule(ht,nt,e);o?d.push(Tt):C+=Tt}})),this.sortMediaObject(W).forEach((function(ht){var yt="",xt=ht.key;ht.value.forEach((function(Tt){var $t=n.buildFromRule(Tt,nt,e);Tt.get("singleAtRule")?C+="".concat(xt,"{").concat($t,"}"):yt+=$t,o&&d.push($t)})),yt&&(C+="".concat(xt,"{").concat(yt,"}"))})),l&&y&&L.remove&&L.remove(nt)}return o?d.filter((function(ht){return ht})):C},r.prototype.buildFromRule=function(t,e,n){var o,l=this;n===void 0&&(n={});var p,d="",C=this.model,y=t.selectorsToString({skipAdd:1}),L=t.get("selectorsAdd"),W=t.get("singleAtRule");if((o=t.get("selectors"))===null||o===void 0||o.forEach((function(ht){var yt=ht.getFullName();(l.compCls.indexOf(yt)>=0||l.ids.indexOf(yt)>=0||n.keepUnusedStyles)&&(p=1)})),y&&p||L||W||!C){var nt=t.getDeclaration();nt&&(n.json?d=t:d+=nt)}else e.push(t);return d},r.prototype.matchedRules=function(t,e){var n=this,o=t.getEl(),l=[];return e.forEach((function(p){try{p.selectorsToString().split(",").some((function(d){return o?.matches(n.__cleanSelector(d))}))&&l.push(p)}catch{}})),t.components().forEach((function(p){l=l.concat(n.matchedRules(p,e))})),l=l.filter((function(p,d){return l.indexOf(p)===d}))},r.prototype.getQueryLength=function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):wd},r.prototype.sortMediaObject=function(t){var e=this;t===void 0&&(t={});var n=[];return(0,j.each)(t,(function(o,l){return n.push({key:l,value:o})})),n.sort((function(o,l){var p=[o.key,l.key].every((function(y){return y.indexOf("min-width")!==-1})),d=p?o.key:l.key,C=p?l.key:o.key;return e.getQueryLength(d)-e.getQueryLength(C)}))},r.prototype.sortRules=function(t,e){var n=function(d){return d.get("mediaText")||""},o=[n(t),n(e)].every((function(d){return d.indexOf("min-width")!==-1})),l=n(o?t:e),p=n(o?e:t);return this.getQueryLength(l)-this.getQueryLength(p)},r.prototype.__cleanSelector=function(t){return t.split(" ").map((function(e){return e.split(":")[0]})).join(" ")},r})(_.Kx);const Vu=Ts;var Bu=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Cs=function(){return Cs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0}))},r.prototype.setIdRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var o=n.addOpts,l=o===void 0?{}:o,p=n.mediaText,d=n.state||"",C=(0,j.isUndefined)(p)?this.em.getCurrentMedia():p,y=this.em.Selectors.add({name:t,type:er.TYPE_ID},l),L=this.add(y,d,C,{},l);return L.setStyle(e,di(di({},n),l)),L},r.prototype.getIdRule=function(t,e){e===void 0&&(e={});var n=e.mediaText,o=e.state||"",l=(0,j.isUndefined)(n)?this.em.getCurrentMedia():n,p=this.em.Selectors.get(t,er.TYPE_ID);return p&&this.get(p,o,l)},r.prototype.setClassRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var o=n.state||"",l=n.mediaText||this.em.getCurrentMedia(),p=this.em.Selectors.add({name:t,type:er.TYPE_CLASS}),d=this.add(p,o,l);return d.setStyle(e,n),d},r.prototype.getClassRule=function(t,e){e===void 0&&(e={});var n=e.state||"",o=e.mediaText||this.em.getCurrentMedia(),l=this.em.Selectors.get(t,er.TYPE_CLASS);return l&&this.get(l,n,o)},r.prototype.remove=function(t,e){var n=(0,j.isString)(t)?this.getRules(t):t,o=this.getAll().remove(n,e);return(0,j.isArray)(o)?o:[o]},r.prototype.clear=function(t){return t===void 0&&(t={}),this.getAll().reset([],t),this},r.prototype.getComponentRules=function(t,e){e===void 0&&(e={});var n=e.state,o=e.mediaText;e.current&&(n=this.em.get("state")||"",o=this.em.getCurrentMedia());var l=t.getId();return this.getAll().filter((function(p){return!(!(0,j.isUndefined)(n)&&p.get("state")!==n)&&!(!(0,j.isUndefined)(o)&&p.get("mediaText")!==o)&&p.getSelectorsString()==="#".concat(l)}))},r.prototype.render=function(){var t;return(t=this.rulesView)===null||t===void 0||t.remove(),this.rulesView=new sr({collection:this.rules,config:this.config}),this.rulesView.render().el},r.prototype.checkId=function(t,e){e===void 0&&(e={});var n=e.idMap,o=n===void 0?{}:n,l=[];return Object.keys(o).length&&(Array.isArray(t)?t:[t]).forEach((function(p){var d=p.selectors;if(d&&d.length==1){var C=d[0];if((0,j.isString)(C)){if(C[0]==="#"){var y=C.substring(1),L=o[y];y&&L&&(d[0]="#".concat(L),l.push(p))}}else C.name&&C.type===er.TYPE_ID&&(L=o[C.name])&&(C.name=L,l.push(p))}})),l},r.prototype.destroy=function(){var t;this.rules.reset(),this.rules.stopListening(),(t=this.rulesView)===null||t===void 0||t.remove()},r})(I);const xd=zu,Ad=function(){return{appendTo:"",blocks:[],appendOnClick:!1,custom:!1}};var kd=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const Wu=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return kd(r,a),r.prototype.defaults=function(){return{label:"",content:"",media:"",category:"",activate:!1,select:void 0,resetId:!1,disable:!1,onClick:void 0,attributes:{},dragDef:{}}},Object.defineProperty(r.prototype,"category",{get:function(){var t=this.get("category");return t instanceof Yo?t:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parent",{get:function(){return this.collection},enumerable:!1,configurable:!0}),r.prototype.getId=function(){return this.id},r.prototype.getLabel=function(){return this.get("label")},r.prototype.getMedia=function(){return this.get("media")},r.prototype.getContent=function(){return this.get("content")},r.prototype.getDragDef=function(){return this.get("dragDef")},r.prototype.getCategoryLabel=function(){var t=this.get("category");return(0,j.isFunction)(t?.get)?t.get("label"):t?.label?t?.label:t},r})(_.Kx);var Gu=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),qu=(function(a){function r(t,e){var n=a.call(this,t)||this;return n.em=e.em,n.on("add",n.handleAdd),n}return Gu(r,a),r.prototype.getCategories=function(){return this.em.Blocks.getCategories()},r.prototype.handleAdd=function(t){this.initCategory(t)},r})(es);const Cl=qu;var Va;qu.prototype.model=Wu,(function(a){a.add="block:add",a.remove="block:remove",a.removeBefore="block:remove:before",a.update="block:update",a.dragStart="block:drag:start",a.drag="block:drag",a.dragEnd="block:drag:stop",a.categoryUpdate="block:category:update",a.custom="block:custom",a.all="block"})(Va||(Va={}));var Cc=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),aa=function(){return aa=Object.assign||function(a){for(var r,t=1,e=arguments.length;t').concat(yt,""):"",`
').concat(nt,`
`),o.title=y.title||((t=o.textContent)===null||t===void 0?void 0:t.trim()),o.setAttribute("draggable","".concat(!(!(0,b.hasDnd)(n)||C)));var Tt=ht&&ht({el:o,model:d,className:W,prefix:p});return Tt&&(o.innerHTML=Tt),this},r})(_.Ss);const Ku=Pd;var Ba=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$u=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},wl=(function(a){function r(t,e,n){var o=a.call(this,t)||this;o.config=e;var l=e.pStylePrefix||"";return o.em=e.em,o.catName=n,o.pfx=l,o.caretR="fa fa-caret-right",o.caretD="fa fa-caret-down",o.iconClass="".concat(l,"caret-icon"),o.activeClass="".concat(l,"open"),o.className="".concat(l).concat(n,"-category"),o.listenTo(o.model,"change:open",o.updateVisibility),o.model.view=o,o}return Ba(r,a),r.prototype.events=function(){return{"click [data-title]":"toggle"}},r.prototype.template=function(t){var e=t.pfx,n=t.label,o=t.catName;return H(Xu||(Xu=$u([`
`,`
`],[`
`,`
`])),e,e,n,e,o)},r.prototype.attributes=function(){return this.model.get("attributes")||{}},r.prototype.updateVisibility=function(){this.model.get("open")?this.open():this.close()},r.prototype.open=function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getTypeEl().style.display=""},r.prototype.close=function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getTypeEl().style.display="none"},r.prototype.toggle=function(){var t=this.model;t.set("open",!t.get("open"))},r.prototype.getIconEl=function(){return this.iconEl||(this.iconEl=this.el.querySelector(".".concat(this.iconClass))),this.iconEl},r.prototype.getTypeEl=function(){return this.typeEl||(this.typeEl=this.el.querySelector(".".concat(this.pfx).concat(this.catName,"s-c"))),this.typeEl},r.prototype.append=function(t){this.getTypeEl().appendChild(t)},r.prototype.render=function(){var t=this,e=t.em,n=t.el,o=t.$el,l=t.model,p=t.pfx,d=t.catName,C=e.t("".concat(d,"Manager.categories.").concat(l.id))||l.get("label");return n.innerHTML=this.template({pfx:p,label:C,catName:d}),o.addClass(this.className),o.css({order:l.get("order")}),this.updateVisibility(),this},r})(_.Ss);const Yu=wl;var Xu,Nd=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Bn=function(){return Bn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
`),this.collection.each((function(l){return t.add(l,n)})),this.append(n);var o="".concat(this.blockContClass,"s ").concat(e,"one-bg ").concat(e,"two-color");return this.$el.addClass(o),this.rendered=!0,this},r})(_.Ss);const El=Md;var ws=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),_r=function(){return _r=Object.assign||function(a){for(var r,t=1,e=arguments.length;t',iconSync:'',iconTagOn:'',iconTagOff:'',iconTagRemove:'',componentFirst:!1,custom:!1}};var Qu=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ec=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Qu(r,a),r.prototype.defaults=function(){return{name:"",label:""}},r.prototype.getName=function(){return this.get("name")},r.prototype.getLabel=function(){return this.get("label")||this.getName()},r})(_.Kx);const Sl=Ec;Ec.prototype.idAttribute="name";var Ju=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ld=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},xl="contentEditable",tp=(function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.config||{};return e.config=n,e.module=t.module,e.coll=t.coll||null,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.em=n.em,e.listenTo(e.model,"change:active",e.updateStatus),e}return Ju(r,a),r.prototype.template=function(){var t=this,e=t.pfx,n=t.model,o=t.config,l=n.get("label")||"";return H(Oc||(Oc=Ld([` ',` $',` `],[` ',` $',` `])),e,e,e,l,e,e,o.iconTagRemove)},r.prototype.events=function(){return{"click [data-tag-remove]":"removeTag","click [data-tag-status]":"changeStatus","dblclick [data-tag-name]":"startEditTag","focusout [data-tag-name]":"endEditTag"}},r.prototype.getInputEl=function(){return this.inputEl||(this.inputEl=this.el.querySelector("[data-tag-name]")),this.inputEl},r.prototype.startEditTag=function(){var t=this.em,e=this.getInputEl();e[xl]="true",e.focus(),t?.setEditing(!0)},r.prototype.endEditTag=function(){var t=this.model,e=this.em,n=this.getInputEl(),o=n.textContent||"",l=e?.Selectors;n[xl]="false",e?.setEditing(!1),l&&l.rename(t,o)!==t&&(n.innerText=t.getLabel())},r.prototype.changeStatus=function(){var t=this.model;t.set("active",!t.getActive())},r.prototype.removeTag=function(){this.module.removeSelected(this.model)},r.prototype.updateStatus=function(){var t=this,e=t.model,n=t.$el,o=t.config,l=o.iconTagOn,p=o.iconTagOff,d=n.find("[data-tag-status]");e.get("active")?(d.html(l),n.removeClass("opac50")):(d.html(p),n.addClass("opac50"))},r.prototype.render=function(){var t=this,e=t.pfx,n=t.ppfx,o=t.$el,l=t.model,p="".concat(e,"tag"),d=["".concat(p," ").concat(n,"three-bg")];return l.get("protected")&&d.push("".concat(p,"-protected")),o.html(this.template()),o.attr("class",d.join(" ")),this.updateStatus(),this},r})(_.Ss);const jn=tp;var Oc,Id=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ni=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},Dd=(function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.config=t.config||{},e.pfx=e.config.stylePrefix||"",e.ppfx=e.config.pStylePrefix||"",e.className=e.pfx+"tags",e.stateInputId=e.pfx+"states",e.stateInputC=e.pfx+"input-c",e.states=e.config.states||[];var n=e.config.em,o=e.collection;e.target=n;var l=n.Selectors;e.module=l,e.em=n,e.componentChanged=(0,j.debounce)(e.componentChanged.bind(e),0),e.checkSync=(0,j.debounce)(e.checkSync.bind(e),0);var p=Kt.I.update,d="".concat(p,":classes"),C="component:toggled ".concat(d),y="".concat(d," ").concat(p,":attributes:id change:state");return e.listenTo(n,C,e.componentChanged),e.listenTo(n,"styleManager:update",e.componentChanged),e.listenTo(n,y,e.__handleStateChange),e.listenTo(n,"styleable:change change:device",e.checkSync),e.listenTo(o,"add",e.addNew),e.listenTo(o,"reset",e.renderClasses),e.listenTo(o,"remove",e.tagRemoved),e.listenTo(l.getAll(),l.events.state,(0,j.debounce)((function(){return e.renderStates()}),0)),e.delegateEvents(),e}return Id(r,a),r.prototype.template=function(t){var e=t.labelInfo,n=t.labelHead,o=t.iconSync,l=t.iconAdd,p=t.pfx,d=t.ppfx;return H(ep||(ep=ni(['
',`
$',`
',`:
`],['
',`
$',`
',`:
`])),p,p,p,p,n,p,p,p,d,d,d,p,d,d,p,d,p,p,p,p,p,l,p,p,o,p,p,e,p)},r.prototype.events=function(){return{"change [data-states]":"stateChanged","click [data-add]":"startNewTag","focusout [data-input]":"endNewTag","keyup [data-input]":"onInputKeyUp","click [data-sync-style]":"syncStyle"}},r.prototype.syncStyle=function(){var t,e=this.em,n=this.getTarget(),o=e.Css,l=this.getCommonSelectors({opts:{noDisabled:1}}),p=e.get("state"),d=e.getCurrentMedia(),C=[],y=o.get(l,p,d)||o.add(l,p,d);this.getTargets().forEach((function(L){var W=o.getIdRule(L.getId(),{state:p,mediaText:d});t=W.getStyle(),W.setStyle({}),C.push(W)})),t&&y.addStyle(t),e.trigger("component:toggled"),e.trigger("component:sync-style",{component:n,selectors:l,mediaText:d,rule:y,ruleComponents:C,state:p})},r.prototype.tagRemoved=function(t){this.updateStateVis()},r.prototype.addNew=function(t){this.addToClasses(t)},r.prototype.startNewTag=function(){var t,e;(t=this.$addBtn)===null||t===void 0||t.css({display:"none"}),(e=this.$input)===null||e===void 0||e.show().focus()},r.prototype.endNewTag=function(){var t,e;(t=this.$addBtn)===null||t===void 0||t.css({display:""}),(e=this.$input)===null||e===void 0||e.hide().val("")},r.prototype.onInputKeyUp=function(t){var e;t.keyCode===13?(t.preventDefault(),this.addNewTag((e=this.$input)===null||e===void 0?void 0:e.val())):t.keyCode===27&&this.endNewTag()},r.prototype.checkStates=function(){var t=this.em.getState(),e=this.getStates();e&&e.val(t)},r.prototype.componentChanged=function(t){var e=(t===void 0?{}:t).targets;this.updateSelection(e)},r.prototype.updateSelection=function(t){var e=t||this.getTargets(),n=[];return(e=(0,j.isArray)(e)?e:[e])&&e.length&&(n=this.getCommonSelectors({targets:e}),this.checkSync({validSelectors:n})),this.collection.reset(n),this.updateStateVis(e),this.module.__trgCustom(),n},r.prototype.getCommonSelectors=function(t){var e=t===void 0?{}:t,n=e.targets,o=e.opts,l=o===void 0?{}:o,p=n||this.getTargets();return this.module.__getCommonSelectors(p,l)},r.prototype._commonSelectors=function(){for(var t,e=[],n=0;n',""],['',""])),o,t);else{var y=t?.getSelectors();if(!y)return"";var L=y.getStyleable(),W=p.get("state"),nt=t.getId?H(np||(np=ni(['',` #',""],['',` #',""])),o,t.getName(),o,t.getId()):"";e=(e=this.collection.getFullString(L))?H(rp||(rp=ni(['',""],['',""])),o,e):t.get("selectorsAdd")||nt,e=C&&nt?nt:e,e+=W?H(op||(op=ni([':',""],[':',""])),o,W):"",e=d?d({result:e,state:W,target:t}):e}return e&&'').concat(e,"")},r.prototype.stateChanged=function(t){var e=this.em,n=t.target.value;e.set("state",n)},r.prototype.addNewTag=function(t){var e=t.trim();e&&(this.module.addSelected({label:e}),this.endNewTag())},r.prototype.addToClasses=function(t,e){var n=e,o=this.getClasses(),l=new jn({model:t,config:this.config,coll:this.collection,module:this.module}).render().el;return n?n.appendChild(l):o.append(l),l},r.prototype.renderClasses=function(){var t=this,e=document.createDocumentFragment(),n=this.getClasses();n.empty(),this.collection.each((function(o){return t.addToClasses(o,e)})),n.append(e)},r.prototype.getClasses=function(){return this.$el.find("[data-selectors]")},r.prototype.getStates=function(){if(!this.$states){var t=this.$el.find("[data-states]");this.$states=t[0]&&t}return this.$states},r.prototype.getStatesC=function(){return this.$statesC||(this.$statesC=this.$el.find("#"+this.stateInputC)),this.$statesC},r.prototype.renderStates=function(){var t=this.module,e=this.em,n=e.t("selectorManager.emptyState"),o=t.getStates().map((function(p){var d=e.t("selectorManager.states.".concat(p.id))||p.getLabel()||p.id;return'")})).join(""),l=this.getStates();l&&l.html('").concat(o)),this.checkStates()},r.prototype.render=function(){var t=this,e=t.em,n=t.pfx,o=t.ppfx,l=t.config,p=t.$el,d=t.el,C=l.render,y={iconSync:l.iconSync,iconAdd:l.iconAdd,labelHead:e.t("selectorManager.label"),labelInfo:e.t("selectorManager.selected"),ppfx:o,pfx:n,el:d};p.html(this.template(y));var L=C&&C(y);return L&&L!==d&&p.empty().append(L),this.$input=p.find("[data-input]"),this.$addBtn=p.find("[data-add]"),this.$classes=p.find("#"+n+"tags-c"),this.$btnSyncEl=p.find("[data-sync-style]"),this.$input.hide(),this.renderStates(),this.renderClasses(),p.attr("class","".concat(this.className," ").concat(o,"one-bg ").concat(o,"two-color")),this},r})(_.Ss);const Al=Dd;var ep,Zn,np,rp,op,kl=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),i=function(){return i=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0})):e.slice(1).reduce((function(o,l){return t.__common(o,l)}),e[0]):[]},r.prototype.__updateSelectedByComponents=function(){this.selected.reset(this.__getCommon())},r})(I);const Yt=Vt,pe=function(){return{textTags:["br","b","i","u","a","ul","ol"],textTypes:["text","textnode","comment"],parserCss:void 0,parserHtml:void 0,optionsHtml:{htmlType:"text/html",allowScripts:!1,allowUnsafeAttr:!1,allowUnsafeAttrValue:!1,keepEmptyTextNodes:!1,convertDataGjsAttributesHyphens:!1}}};var he,Oe=5,Ne=6,Te=7,Ie=11,De=12,Fe=13,Hn=14,Rn=15,vr=((he={})[4]="media",he[Oe]="font-face",he[Ne]="page",he[Te]="keyframes",he[Ie]="counter-style",he[De]="supports",he[Fe]="document",he[Hn]="font-feature-values",he[Rn]="viewport",he),zn=(0,j.keys)(vr),eo=[Oe,Ne,Ie,Rn],no=zn.filter((function(a){return eo.indexOf(Number(a))<0})).map((function(a){return vr[a]})).concat(["container","layer"]),Qn=eo.map((function(a){return vr[a]})),Vr=function(a){a===void 0&&(a="");for(var r=[],t=[],e=a.split(","),n=0,o=e.length;n=0&&(e.singleAtRule=!0),d&&(e.atRuleType=d),C&&(e.selectorsAdd=C),y&&(e.mediaText=y),p&&(a[n-1]=l[0],e.state=p,l.splice(l.length-1,1)),e.selectors=a,e.style=r,e},or=function(a){var r=a.cssText,t=r===void 0?"":r;return no.find((function(e){return t.indexOf("@".concat(e))===0}))},Ur=function(a){for(var r=[],t=a.cssRules||[],e=0,n=t.length;e=0;if(L)p=!0,d=vr[l],C=rr(o);else if(zn.indexOf("".concat(l))>=0||!l&&or(o)){var W=Ur(o),nt=vr[l]||or(o);C=rr(o);for(var ht=0,yt=W.length;ht0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]').concat(n,"")},r.prototype.templateInput=function(t){var e=this.clsField;return'
')},r.prototype.getClbOpts=function(){return{component:this.target,trait:this.model,elInput:this.getInputElem()}},r.prototype.removeView=function(){this.remove(),this.removed()},r.prototype.init=function(){},r.prototype.removed=function(){},r.prototype.onRender=function(t){},r.prototype.onUpdate=function(t){},r.prototype.onEvent=function(t){},r.prototype.onChange=function(t){var e=this.getInputElem();e&&!(0,j.isUndefined)(e.value)&&this.model.set("value",e.value),this.onEvent(kc(kc({},this.getClbOpts()),{event:t}))},r.prototype.getValueForTarget=function(){return this.model.get("value")},r.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.value=t)},r.prototype.onValueChange=function(t,e,n){n===void 0&&(n={});var o=this.model,l=this.getValueForTarget();n.fromTarget?(this.setInputValue(l),this.postUpdate()):o.setValue(l,n)},r.prototype.renderLabel=function(){var t=this.$el,e=this.target,n=this.getLabel(),o=this.templateLabel(e);this.createLabel&&(o=this.createLabel({label:n,component:e,trait:this})||""),t.find("[data-label]").append(o)},r.prototype.getLabel=function(){var t=this.em,e=this.model.attributes,n=e.label,o=e.name;return t.t("traitManager.traits.labels.".concat(o))||(0,b.capitalize)(n||o).replace(/-/g," ")},r.prototype.getComponent=function(){return this.target},r.prototype.getInputEl=function(){if(!this.$input){var t=this.em,e=this.model,n=e,o=e.attributes.name,l=n.get("placeholder")||n.get("default")||"",p=n.get("type")||"text",d=n.get("min"),C=n.get("max"),y=this.getModelValue(),L=(0,E.default)('')),W=t.t("traitManager.traits.attributes.".concat(o))||{};L.attr(kc({placeholder:l},W)),(0,j.isUndefined)(y)||(n.set({value:y},{silent:!0}),L.prop("value",y)),d&&L.prop("min",d),C&&L.prop("max",C),this.$input=L}return this.$input.get(0)},r.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},r.prototype.getModelValue=function(){return this.model.getValue()},r.prototype.getElInput=function(){return this.elInput},r.prototype.renderField=function(){var t=this,e=t.$el,n=t.appendInput,o=t.model,l=e.find("[data-input]"),p=l[l.length-1],d=o.el;d||(d=this.createInput?this.createInput(this.getClbOpts()):this.getInputEl()),(0,j.isString)(d)?(p.innerHTML=d,this.elInput=p.firstChild):(n?p.appendChild(d):p.insertBefore(d,p.firstChild),this.elInput=d),o.el=this.elInput},r.prototype.hasLabel=function(){var t=this.model.attributes.label;return!this.noLabel&&t!==!1},r.prototype.rerender=function(){delete this.model.el,this.render()},r.prototype.postUpdate=function(){this.onUpdate(this.getClbOpts())},r.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,o=t.ppfx,l=t.model.attributes,p=l.type,d=l.id,C=this.hasLabel&&this.hasLabel(),y="".concat(n,"trait");delete this.$input;var L='
`).concat(C?'
'):"",`
`).concat(this.templateInput?(0,j.isFunction)(this.templateInput)?this.templateInput(this.getClbOpts()):this.templateInput:"",`
`);return e.empty().append(L),C&&this.renderLabel(),this.renderField(),this.el.className="".concat(y,"__wrp ").concat(y,"__wrp-").concat(d),this.postUpdate(),this.onRender(this.getClbOpts()),this},r})(_.Ss);const sa=Y1;Y1.prototype.eventCapture=["change"];var Kh=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),X1=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Kh(r,a),r.prototype.templateInput=function(){return""},r.prototype.onChange=function(){this.handleClick()},r.prototype.handleClick=function(){this.model.runCommand()},r.prototype.renderLabel=function(){this.model.get("label")&&sa.prototype.renderLabel.apply(this)},r.prototype.getInputEl=function(){var t=this.model,e=this.ppfx,n=t.props(),o=n.labelButton,l=n.text,p=n.full,d=o||l,C="".concat(e,"btn");return'")},r})(sa);const $h=X1;X1.prototype.eventCapture=["click button"];var Yh=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const Xh=(function(a){function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.appendInput=!1,t}return Yh(r,a),r.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'`)},r.prototype.onChange=function(){this.model.set("value",this.getInputElem().checked)},r.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.checked=!!t)},r.prototype.getInputEl=function(){for(var t=[],e=0;e')},r.prototype.inputClass=function(){return"".concat(this.ppfx,"field")},r.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},r.prototype.elementUpdated=function(){this.model.trigger("el:change")},r.prototype.setValue=function(t,e){var n=this.model,o=t||n.get("defaults"),l=this.getInputEl();l&&(l.value=o)},r.prototype.handleModelChange=function(t,e,n){this.setValue(e,n)},r.prototype.handleChange=function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},r.prototype.__onInputChange=function(t){this.model.set({value:t},{fromInput:1})},r.prototype.getInputEl=function(){if(!this.inputEl){var t=this.model,e=this.opts.type||"text",n=t.get("placeholder")||t.get("defaults")||t.get("default")||"";this.inputEl=(0,E.default)(''))}return this.inputEl.get(0)},r.prototype.render=function(){this.inputEl=null;var t=this.$el;return t.addClass(this.inputClass()),t.html(this.template()),t.find(".".concat(this.holderClass())).append(this.getInputEl()),this},r})(_.Ss);const sp=Z1;Z1.prototype.events={change:"handleChange"};var Qh=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Pc=function(){return Pc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t","
","
",""].join(""),p=(function(){var jt="";if(n)for(var Zt=1;Zt<=6;Zt++)jt+="
";return["
","
","
","
","","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
",jt,"
","
","
","
","
","","
","
","
","","","
","
","
"].join("")})(),d="spectrum.id";a.fn.spectrum=function(jt,Zt){if(typeof jt=="string"){var ne=this,de=Array.prototype.slice.call(arguments,1);return this.each((function(){var Me=e[a(this).data(d)];if(Me){var We=Me[jt];if(!We)throw new Error("Spectrum: no such method: '"+jt+"'");jt=="get"?ne=Me.get():jt=="container"?ne=Me.container:jt=="option"?ne=Me.option.apply(Me,de):jt=="destroy"?(Me.destroy(),a(this).removeData(d)):We.apply(Me,de)}})),ne}return this.spectrum("destroy").each((function(){var Me=Tn(this,a.extend({},jt,a(this).data()));a(this).data(d,Me.id)}))},a.fn.spectrum.load=!0,a.fn.spectrum.loadOpts={},a.fn.spectrum.draggable=Pr,a.fn.spectrum.defaults=t,a.fn.spectrum.inputTypeColorSupport=function jt(){if(jt._cachedResult===void 0){var Zt=a("")[0];jt._cachedResult=Zt.type==="color"&&Zt.value!==""}return jt._cachedResult},a.spectrum={},a.spectrum.localization={},a.spectrum.palettes={},a.fn.spectrum.processNativeColorInputs=function(){var jt=a("input[type=color]");jt.length&&!Go()&&jt.spectrum({preferredFormat:"hex6"})};var C=/^[\s,#]+/,y=/\s+$/,L=0,W=Math,nt=W.round,ht=W.min,yt=W.max,xt=W.random,Tt=function(jt,Zt){if(Zt=Zt||{},(jt=jt||"")instanceof Tt)return jt;if(!(this instanceof Tt))return new Tt(jt,Zt);var ne=(function(de){var Me={r:0,g:0,b:0},We=1,ye=!1,gn=!1;typeof de=="string"&&(de=(function(Cn){Cn=Cn.replace(C,"").replace(y,"").toLowerCase();var Be,En=!1;if(_e[Cn])Cn=_e[Cn],En=!0;else if(Cn=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(Be=Re.rgb.exec(Cn))?{r:Be[1],g:Be[2],b:Be[3]}:(Be=Re.rgba.exec(Cn))?{r:Be[1],g:Be[2],b:Be[3],a:Be[4]}:(Be=Re.hsl.exec(Cn))?{h:Be[1],s:Be[2],l:Be[3]}:(Be=Re.hsla.exec(Cn))?{h:Be[1],s:Be[2],l:Be[3],a:Be[4]}:(Be=Re.hsv.exec(Cn))?{h:Be[1],s:Be[2],v:Be[3]}:(Be=Re.hsva.exec(Cn))?{h:Be[1],s:Be[2],v:Be[3],a:Be[4]}:(Be=Re.hex8.exec(Cn))?{a:eb(Be[1]),r:Fi(Be[2]),g:Fi(Be[3]),b:Fi(Be[4]),format:En?"name":"hex8"}:(Be=Re.hex6.exec(Cn))?{r:Fi(Be[1]),g:Fi(Be[2]),b:Fi(Be[3]),format:En?"name":"hex"}:(Be=Re.hex3.exec(Cn))?{r:Fi(Be[1]+""+Be[1]),g:Fi(Be[2]+""+Be[2]),b:Fi(Be[3]+""+Be[3]),format:En?"name":"hex"}:!1})(de)),typeof de=="object"&&(de.hasOwnProperty("r")&&de.hasOwnProperty("g")&&de.hasOwnProperty("b")?(Fn=de.r,Zr=de.g,oo=de.b,Me={r:255*ar(Fn,255),g:255*ar(Zr,255),b:255*ar(oo,255)},ye=!0,gn=String(de.r).substr(-1)==="%"?"prgb":"rgb"):de.hasOwnProperty("h")&&de.hasOwnProperty("s")&&de.hasOwnProperty("v")?(de.s=Vc(de.s),de.v=Vc(de.v),Me=(function(Cn,Be,En){Cn=6*ar(Cn,360),Be=ar(Be,100),En=ar(En,100);var Vn=W.floor(Cn),xo=Cn-Vn,Nr=En*(1-Be),Mr=En*(1-xo*Be),Wr=En*(1-(1-xo)*Be),Ao=Vn%6,vi=[En,Mr,Nr,Nr,Wr,En][Ao],Wa=[Wr,En,En,Mr,Nr,Nr][Ao],ko=[Nr,Nr,Wr,En,En,Mr][Ao];return{r:255*vi,g:255*Wa,b:255*ko}})(de.h,de.s,de.v),ye=!0,gn="hsv"):de.hasOwnProperty("h")&&de.hasOwnProperty("s")&&de.hasOwnProperty("l")&&(de.s=Vc(de.s),de.l=Vc(de.l),Me=(function(Cn,Be,En){var Vn,xo,Nr;function Mr(vi,Wa,ko){return ko<0&&(ko+=1),ko>1&&(ko-=1),ko<1/6?vi+6*(Wa-vi)*ko:ko<1/2?Wa:ko<2/3?vi+(Wa-vi)*(2/3-ko)*6:vi}if(Cn=ar(Cn,360),Be=ar(Be,100),En=ar(En,100),Be===0)Vn=xo=Nr=En;else{var Wr=En<.5?En*(1+Be):En+Be-En*Be,Ao=2*En-Wr;Vn=Mr(Ao,Wr,Cn+1/3),xo=Mr(Ao,Wr,Cn),Nr=Mr(Ao,Wr,Cn-1/3)}return{r:255*Vn,g:255*xo,b:255*Nr}})(de.h,de.s,de.l),ye=!0,gn="hsl"),de.hasOwnProperty("a")&&(We=de.a));var Fn,Zr,oo;return We=bh(We),{ok:ye,format:de.format||gn,r:ht(255,yt(Me.r,0)),g:ht(255,yt(Me.g,0)),b:ht(255,yt(Me.b,0)),a:We}})(jt);this._originalInput=jt,this._r=ne.r,this._g=ne.g,this._b=ne.b,this._a=ne.a,this._roundA=nt(100*this._a)/100,this._format=Zt.format||ne.format,this._gradientType=Zt.gradientType,this._r<1&&(this._r=nt(this._r)),this._g<1&&(this._g=nt(this._g)),this._b<1&&(this._b=nt(this._b)),this._ok=ne.ok,this._tc_id=L++};Tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var jt=this.toRgb();return(299*jt.r+587*jt.g+114*jt.b)/1e3},setAlpha:function(jt){return this._a=bh(jt),this._roundA=nt(100*this._a)/100,this},toHsv:function(){var jt=Hi(this._r,this._g,this._b);return{h:360*jt.h,s:jt.s,v:jt.v,a:this._a}},toHsvString:function(){var jt=Hi(this._r,this._g,this._b),Zt=nt(360*jt.h),ne=nt(100*jt.s),de=nt(100*jt.v);return this._a==1?"hsv("+Zt+", "+ne+"%, "+de+"%)":"hsva("+Zt+", "+ne+"%, "+de+"%, "+this._roundA+")"},toHsl:function(){var jt=Ri(this._r,this._g,this._b);return{h:360*jt.h,s:jt.s,l:jt.l,a:this._a}},toHslString:function(){var jt=Ri(this._r,this._g,this._b),Zt=nt(360*jt.h),ne=nt(100*jt.s),de=nt(100*jt.l);return this._a==1?"hsl("+Zt+", "+ne+"%, "+de+"%)":"hsla("+Zt+", "+ne+"%, "+de+"%, "+this._roundA+")"},toHex:function(jt){return hi(this._r,this._g,this._b,jt)},toHexString:function(jt){return"#"+this.toHex(jt)},toHex8:function(){return gi(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:nt(this._r),g:nt(this._g),b:nt(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+nt(this._r)+", "+nt(this._g)+", "+nt(this._b)+")":"rgba("+nt(this._r)+", "+nt(this._g)+", "+nt(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:nt(100*ar(this._r,255))+"%",g:nt(100*ar(this._g,255))+"%",b:nt(100*ar(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+nt(100*ar(this._r,255))+"%, "+nt(100*ar(this._g,255))+"%, "+nt(100*ar(this._b,255))+"%)":"rgba("+nt(100*ar(this._r,255))+"%, "+nt(100*ar(this._g,255))+"%, "+nt(100*ar(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(we[hi(this._r,this._g,this._b,!0)]||!1)},toFilter:function(jt){var Zt="#"+gi(this._r,this._g,this._b,this._a),ne=Zt,de=this._gradientType?"GradientType = 1, ":"";return jt&&(ne=Tt(jt).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+de+"startColorstr="+Zt+",endColorstr="+ne+")"},toString:function(jt){var Zt=!!jt;jt=jt||this._format;var ne=!1,de=this._a<1&&this._a>=0;return Zt||!de||jt!=="hex"&&jt!=="hex6"&&jt!=="hex3"&&jt!=="name"?(jt==="rgb"&&(ne=this.toRgbString()),jt==="prgb"&&(ne=this.toPercentageRgbString()),jt!=="hex"&&jt!=="hex6"||(ne=this.toHexString()),jt==="hex3"&&(ne=this.toHexString(!0)),jt==="hex8"&&(ne=this.toHex8String()),jt==="name"&&(ne=this.toName()),jt==="hsl"&&(ne=this.toHslString()),jt==="hsv"&&(ne=this.toHsvString()),ne||this.toHexString()):jt==="name"&&this._a===0?this.toName():this.toRgbString()},_applyModification:function(jt,Zt){var ne=jt.apply(null,[this].concat([].slice.call(Zt)));return this._r=ne._r,this._g=ne._g,this._b=ne._b,this.setAlpha(ne._a),this},lighten:function(){return this._applyModification(A1,arguments)},brighten:function(){return this._applyModification(Rp,arguments)},darken:function(){return this._applyModification(As,arguments)},desaturate:function(){return this._applyModification(qo,arguments)},saturate:function(){return this._applyModification(mi,arguments)},greyscale:function(){return this._applyModification(Ko,arguments)},spin:function(){return this._applyModification(k1,arguments)},_applyCombination:function(jt,Zt){return jt.apply(null,[this].concat([].slice.call(Zt)))},analogous:function(){return this._applyCombination(Jy,arguments)},complement:function(){return this._applyCombination(Yy,arguments)},monochromatic:function(){return this._applyCombination(tb,arguments)},splitcomplement:function(){return this._applyCombination(Qy,arguments)},triad:function(){return this._applyCombination(Xy,arguments)},tetrad:function(){return this._applyCombination(Zy,arguments)}},Tt.fromRatio=function(jt,Zt){if(typeof jt=="object"){var ne={};for(var de in jt)jt.hasOwnProperty(de)&&(ne[de]=de==="a"?jt[de]:Vc(jt[de]));jt=ne}return Tt(jt,Zt)},Tt.equals=function(jt,Zt){return!(!jt||!Zt)&&Tt(jt).toRgbString()==Tt(Zt).toRgbString()},Tt.random=function(){return Tt.fromRatio({r:xt(),g:xt(),b:xt()})},Tt.mix=function(jt,Zt,ne){ne=ne===0?0:ne||50;var de,Me=Tt(jt).toRgb(),We=Tt(Zt).toRgb(),ye=ne/100,gn=2*ye-1,Fn=We.a-Me.a,Zr=1-(de=((de=gn*Fn==-1?gn:(gn+Fn)/(1+gn*Fn))+1)/2),oo={r:We.r*de+Me.r*Zr,g:We.g*de+Me.g*Zr,b:We.b*de+Me.b*Zr,a:We.a*ye+Me.a*(1-ye)};return Tt(oo)},Tt.readability=function(jt,Zt){var ne=Tt(jt),de=Tt(Zt),Me=ne.toRgb(),We=de.toRgb(),ye=ne.getBrightness(),gn=de.getBrightness(),Fn=Math.max(Me.r,We.r)-Math.min(Me.r,We.r)+Math.max(Me.g,We.g)-Math.min(Me.g,We.g)+Math.max(Me.b,We.b)-Math.min(Me.b,We.b);return{brightness:Math.abs(ye-gn),color:Fn}},Tt.isReadable=function(jt,Zt){var ne=Tt.readability(jt,Zt);return ne.brightness>125&&ne.color>500},Tt.mostReadable=function(jt,Zt){for(var ne=null,de=0,Me=!1,We=0;We125&&ye.color>500,Fn=3*(ye.brightness/125)+ye.color/500;(gn&&!Me||gn&&Me&&Fn>de||!gn&&!Me&&Fn>de)&&(Me=gn,de=Fn,ne=Tt(Zt[We]))}return ne};var $t,re,ge,_e=Tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},we=Tt.hexNames=(function(jt){var Zt={};for(var ne in jt)jt.hasOwnProperty(ne)&&(Zt[jt[ne]]=ne);return Zt})(_e),Re=(re="[\\s|\\(]+("+($t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$t+")[,|\\s]+("+$t+")\\s*\\)?",ge="[\\s|\\(]+("+$t+")[,|\\s]+("+$t+")[,|\\s]+("+$t+")[,|\\s]+("+$t+")\\s*\\)?",{rgb:new RegExp("rgb"+re),rgba:new RegExp("rgba"+ge),hsl:new RegExp("hsl"+re),hsla:new RegExp("hsla"+ge),hsv:new RegExp("hsv"+re),hsva:new RegExp("hsva"+ge),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=Tt,a((function(){a.fn.spectrum.load&&a.fn.spectrum.processNativeColorInputs()}))}function Je(jt,Zt,ne,de){for(var Me=[],We=0;We')}else Me.push(a("
").append(a('').attr("title",de.noColorSelectedText)).html())}return"
"+Me.join("")+"
"}function Tn(jt,Zt){var ne,de,Me,We,ye=(function(Ye,Xe){var qe=a.extend({},t,Ye);return qe.callbacks={move:hr(qe.move,Xe),change:hr(qe.change,Xe),show:hr(qe.show,Xe),hide:hr(qe.hide,Xe),beforeShow:hr(qe.beforeShow,Xe)},qe})(Zt,jt),gn=ye.flat,Fn=ye.showSelectionPalette,Zr=ye.localStorageKey,oo=ye.theme,Cn=ye.callbacks,Be=(ne=Ls,de=10,function(){var Ye=this,Xe=arguments,qe=function(){We=null,ne.apply(Ye,Xe)};Me&&clearTimeout(We),!Me&&We||(We=setTimeout(qe,de))}),En=!1,Vn=!1,xo=!0,Nr=0,Mr=0,Wr=0,Ao=0,vi=0,Wa=0,ko=0,Bc=0,Uc=0,zc=0,Vi=1,Fp=[],Wc=[],Vp={},Bi=ye.selectionPalette.slice(0),nb=ye.maxSelectionSize,_h="sp-dragging",Ga=null,Gc=jt.ownerDocument,Tr=(Gc.body,a(jt)),P1=!1,yn=a(p,Gc).addClass(oo),rb=yn.find(".sp-picker-container"),Bp=yn.find(".sp-color"),Up=yn.find(".sp-dragger"),N1=yn.find(".sp-hue"),zp=yn.find(".sp-slider"),qc=yn.find(".sp-alpha-inner"),Th=yn.find(".sp-alpha"),Wp=yn.find(".sp-alpha-handle"),Ui=yn.find(".sp-input"),Ch=yn.find(".sp-palette"),wh=yn.find(".sp-initial"),Eh=yn.find(".sp-cancel"),M1=yn.find(".sp-clear"),Oh=yn.find(".sp-choose"),L1=yn.find(".sp-palette-toggle"),Gp=Tr.is("input"),ob=Gp&&Tr.attr("type")==="color"&&Go(),I1=Gp&&!gn,Bl=I1?a(l).addClass(oo).addClass(ye.className).addClass(ye.replacerClassName):a([]),Kc=I1?Bl:Tr,Ul=Bl.find(".sp-preview-inner"),$c=ye.color||Gp&&Tr.val(),zl=!1,Wl=ye.preferredFormat,ib=!ye.showButtons||ye.clickoutFiresChange,qa=!$c,Ps=ye.allowEmpty&&!ob;function D1(){if(ye.showPaletteOnly&&(ye.showPalette=!0),L1.text(ye.showPaletteOnly?ye.togglePaletteMoreText:ye.togglePaletteLessText),ye.palette){Fp=ye.palette.slice(0),Wc=a.isArray(Fp[0])?Fp:[Fp],Vp={};for(var Ye=0;Ye1&&(delete window.localStorage[Zr],a.each(Ye,(function(Xe,qe){j1(qe)})))}catch{}try{Bi=window.localStorage[Zr].split(";")}catch{}}}function j1(Ye){if(Fn){var Xe=Tt(Ye).toRgbString();if(!Vp[Xe]&&a.inArray(Xe,Bi)===-1)for(Bi.push(Xe);Bi.length>nb;)Bi.shift();if(Zr&&window.localStorage)try{window.localStorage[Zr]=Bi.join(";")}catch{}}}function xh(){var Ye=yo(),Xe=a.map(Wc,(function(qe,on){return Je(qe,Ye,"sp-palette-row sp-palette-row-"+on,ye)}));Sh(),Bi&&Xe.push(Je((function(){var qe=[];if(ye.showPalette)for(var on=0;onwindow.innerWidth-window.scrollX&&yi.right-$a>0&&(Po.left-=$a-Po.width),yi.bottom+YaMath.abs(io-Ya);Ga=Po?"x":"y"}}else Ga=null;var ab=!Ga||Ga==="y";(!Ga||Ga==="x")&&(Uc=parseFloat(on/Nr)),ab&&(zc=parseFloat((Mr-io)/Mr)),qa=!1,ye.showAlpha||(Vi=1),Gl()}),R1,H1),$c?(Ns($c),ql(),Wl=ye.preferredFormat||Tt($c).getFormat(),j1($c)):ql(),gn&&V1();var qe=n?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Ch.delegate(".sp-thumb-el",qe,Xe),wh.delegate(".sp-thumb-el:nth-child(1)",qe,{ignore:!0},Xe)})();var qp={show:V1,hide:Ka,toggle:kh,reflow:Ls,option:function(Ye,Xe){return Ye===r?a.extend({},ye):Xe===r?ye[Ye]:(ye[Ye]=Xe,Ye==="preferredFormat"&&(Wl=ye.preferredFormat),void D1())},enable:function(){P1=!1,Tr.attr("disabled",!1),Kc.removeClass("sp-disabled")},disable:Ih,offset:function(Ye){ye.offset=Ye,Ls()},set:function(Ye){Ns(Ye),Ms()},get:yo,destroy:function(){Tr.show(),Kc.unbind("click.spectrum touchstart.spectrum"),yn.remove(),Bl.remove(),e[qp.id]=null},container:yn};return qp.id=e.push(qp)-1,qp}function un(){}function ir(jt){jt.stopPropagation()}function hr(jt,Zt){var ne=Array.prototype.slice,de=ne.call(arguments,2);return function(){return jt.apply(Zt,de.concat(ne.call(arguments)))}}function Pr(jt,Zt,ne,de){Zt=Zt||function(){},ne=ne||function(){},de=de||function(){};var Me=document,We=!1,ye={},gn=0,Fn=0,Zr="ontouchstart"in window,oo={};function Cn(Vn){Vn.stopPropagation&&Vn.stopPropagation(),Vn.preventDefault&&Vn.preventDefault(),Vn.returnValue=!1}function Be(Vn){if(We){if(n&&Me.documentMode<9&&!Vn.button)return En();var xo=Vn&&Vn.touches&&Vn.touches[0],Nr=xo&&xo.pageX||Vn.pageX,Mr=xo&&xo.pageY||Vn.pageY,Wr=Math.max(0,Math.min(Nr-ye.left,Fn)),Ao=Math.max(0,Math.min(Mr-ye.top,gn));Zr&&Cn(Vn),Zt.apply(jt,[Wr,Ao,Vn])}}function En(){We&&(a(Me).unbind(oo),a(Me.body).removeClass("sp-dragging"),setTimeout((function(){de.apply(jt,arguments)}),0)),We=!1}oo.selectstart=Cn,oo.dragstart=Cn,oo["touchmove mousemove"]=Be,oo["touchend mouseup"]=En,a(jt).bind("touchstart mousedown",(function(Vn){(Vn.which?Vn.which==3:Vn.button==2)||We||ne.apply(jt,arguments)!==!1&&(We=!0,gn=a(jt).height(),Fn=a(jt).width(),ye=a(jt).offset(),a(Me).bind(oo),a(Me.body).addClass("sp-dragging"),Be(Vn),Cn(Vn))}))}function Go(){return a.fn.spectrum.inputTypeColorSupport()}function Ri(jt,Zt,ne){jt=ar(jt,255),Zt=ar(Zt,255),ne=ar(ne,255);var de,Me,We=yt(jt,Zt,ne),ye=ht(jt,Zt,ne),gn=(We+ye)/2;if(We==ye)de=Me=0;else{var Fn=We-ye;switch(Me=gn>.5?Fn/(2-We-ye):Fn/(We+ye),We){case jt:de=(Zt-ne)/Fn+(Zt>1)+720)%360;--Zt;)de.h=(de.h+Me)%360,We.push(Tt(de));return We}function tb(jt,Zt){Zt=Zt||6;for(var ne=Tt(jt).toHsv(),de=ne.h,Me=ne.s,We=ne.v,ye=[],gn=1/Zt;Zt--;)ye.push(Tt({h:de,s:Me,v:We})),We=(We+gn)%1;return ye}function bh(jt){return jt=parseFloat(jt),(isNaN(jt)||jt<0||jt>1)&&(jt=1),jt}function ar(jt,Zt){(function(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1})(jt)&&(jt="100%");var ne=(function(de){return typeof de=="string"&&de.indexOf("%")!=-1})(jt);return jt=ht(Zt,yt(0,parseFloat(jt))),ne&&(jt=parseInt(jt*Zt,10)/100),W.abs(jt-Zt)<1e-6?1:jt%Zt/parseFloat(Zt)}function Hp(jt){return ht(1,yt(0,jt))}function Fi(jt){return parseInt(jt,16)}function ks(jt){return jt.length==1?"0"+jt:""+jt}function Vc(jt){return jt<=1&&(jt=100*jt+"%"),jt}function eb(jt){return Fi(jt)/255}})(E.default);var lp=function(a){var r=a.getFormat()==="name"&&a.toName(),t=a.getAlpha()==1?a.toHexString():a.toRgbString();return r||t.replace(/ /g,"")},Jh=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Qh(r,a),r.prototype.template=function(){var t=this.ppfx;return`
`)},r.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},r.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},r.prototype.remove=function(){return a.prototype.remove.call(this),this.colorEl.spectrum("destroy"),this},r.prototype.handleChange=function(t){t.stopPropagation();var e=t.target.value;(0,j.isUndefined)(e)||this.__onInputChange(e)},r.prototype.__onInputChange=function(t){var e=this.model,n=this.opts.onChange,o=t,l=this.getColorEl();if(l){l.spectrum("set",o);var p=l.spectrum("get"),d=o&&lp(p);d&&(o=d)}n?n(o):e.set({value:o},{fromInput:1})},r.prototype.setValue=function(t,e){e===void 0&&(e={});var n=this.model,o=(0,j.isUndefined)(e.def)?n.get("defaults"):e.def,l=(0,j.isUndefined)(t)?(0,j.isUndefined)(o)?"":o:t,p=this.getInputEl(),d=this.getColorEl(),C=l!="none"?l:"";p.value=l,d.get(0).style.backgroundColor=C,(e.fromTarget||e.fromInput&&!e.avoidStore)&&(d.spectrum("set",C),this.noneColor=l=="none",this.movedColor=C)},r.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this,n=e.em,o=e.model,l=e.opts,p=this.ppfx,d=l.onChange,C=(0,E.default)('
')),y=C.get(0).style,L=n&&n.getConfig&&n.getConfig().colorPicker||{};this.movedColor="";var W,nt=!1;this.$el.find("[data-colorp-c]").append(C);var ht=function(yt,xt){xt===void 0&&(xt=!0),d?d(yt,!xt):(xt&&o.setValueFromInput(0,!1),o.setValueFromInput(yt,xt))};C.spectrum(Pc(Pc(Pc({color:o.getValue()||!1,containerClassName:"".concat(p,"one-bg ").concat(p,"two-color ").concat(p,"editor-sp"),maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"\u2A2F",palette:[]},L),o.get("colorPicker")||{}),{move:function(yt){var xt=lp(yt);t.movedColor=xt,y.backgroundColor=xt,ht(xt,!1)},change:function(yt){nt=!0;var xt=lp(yt);y.backgroundColor=xt,ht(xt),t.noneColor=!1},show:function(yt){nt=!1,t.movedColor="",W=d?o.getValue({noDefault:!0}):lp(yt)},hide:function(){nt||!W&&!d||(t.noneColor&&(W=""),y.backgroundColor=W,C.spectrum("set",W),ht(W,!1))}})),n&&n.on&&this.listenTo(n,"component:selected",(function(){t.movedColor&&ht(t.movedColor),nt=!0,t.movedColor="",C.spectrum("hide")})),this.colorEl=C}return this.colorEl},r.prototype.render=function(){return sp.prototype.render.call(this),this.getColorEl(),this},r})(sp);const Q1=Jh;var tg=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const eg=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return tg(r,a),r.prototype.templateInput=function(){return""},r.prototype.getInputEl=function(){if(!this.input){var t=this.model,e=this.getModelValue(),n=new Q1({model:t,target:this.config.em,contClass:this.ppfx+"field-color",ppfx:this.ppfx}).render();n.setValue(e,{fromTarget:1}),this.input=n.el}return this.input},r})(sa);var ng=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),J1=(function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;return(0,j.bindAll)(e,"moveIncrement","upIncrement"),e.doc=document,e.listenTo(e.model,"change:unit",e.handleModelChange),e}return ng(r,a),r.prototype.template=function(){var t=this.ppfx;return`
`)},r.prototype.inputClass=function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},r.prototype.setValue=function(t,e){var n=e||{},o=this.validateInputValue(t,{deepCheck:1}),l={value:o.value,unit:""};(o.unit||o.force)&&(l.unit=o.unit),this.model.set(l,n),n.silent&&this.handleModelChange()},r.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},r.prototype.handleUnitChange=function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set("unit",e),this.elementUpdated()},r.prototype.handleKeyDown=function(t){t.key==="ArrowUp"&&(t.preventDefault(),this.upArrowClick()),t.key==="ArrowDown"&&(t.preventDefault(),this.downArrowClick())},r.prototype.elementUpdated=function(){this.model.trigger("el:change")},r.prototype.handleModelChange=function(){var t=this.model;this.getInputEl().value=t.get("value");var e=this.getUnitEl();e&&(e.value=t.get("unit")||"")},r.prototype.getUnitEl=function(){if(!this.unitEl){var t=this.model,e=t.get("units")||[];if(e.length){var n=[''];e.forEach((function(l){var p=l==t.get("unit")?"selected":"";n.push(""))}));var o=document.createElement("div");o.innerHTML='"),this.unitEl=o.firstChild}}return this.unitEl},r.prototype.upArrowClick=function(){var t=this.model.get("step"),e=parseFloat(this.getInputEl().value);this.setValue(this.normalizeValue(e+t)),this.elementUpdated()},r.prototype.downArrowClick=function(){var t=this.model.get("step"),e=parseFloat(this.getInputEl().value);this.setValue(this.normalizeValue(e-t)),this.elementUpdated()},r.prototype.downIncrement=function(t){t.preventDefault(),this.moved=!1;var e=this.model.get("value")||0;e=this.normalizeValue(e),this.current={y:t.pageY,val:e},(0,ft.on)(this.doc,"mousemove",this.moveIncrement),(0,ft.on)(this.doc,"mouseup",this.upIncrement)},r.prototype.moveIncrement=function(t){this.moved=!0;var e=this.model,n=e.get("step"),o=this.current,l=this.normalizeValue(o.val+(o.y-t.pageY)*n),p=this.validateInputValue(l),d=p.value,C=p.unit;return this.prValue=d,e.set({value:d,unit:C},{avoidStore:1}),!1},r.prototype.upIncrement=function(){var t=this.model,e=t.get("step");if((0,ft.AU)(this.doc,"mouseup",this.upIncrement),(0,ft.AU)(this.doc,"mousemove",this.moveIncrement),this.prValue&&this.moved){var n=this.prValue-e;t.set("value",n,{avoidStore:1}).set("value",n+e),this.elementUpdated()}},r.prototype.normalizeValue=function(t,e){e===void 0&&(e=0);var n=this.model.get("step"),o=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var l=n.toString().split(".")[1];o=l?l.length:0}return o?parseFloat(t.toFixed(o)):t},r.prototype.validateInputValue=function(t,e){e===void 0&&(e={});var n=0,o=e||{},l=this.model,p="",d=(0,j.isUndefined)(t)?p:t,C=e.units||l.get("units")||[],y=l.get("unit")||C.length&&C[0]||"",L=(0,j.isUndefined)(e.max)?l.get("max"):e.max,W=(0,j.isUndefined)(e.min)?l.get("min"):e.min,nt=!!l.get("limitlessMax"),ht=!!l.get("limitlessMin");if(o.deepCheck){var yt=l.get("fixedValues")||[];if(d===""&&(y=""),d){var xt=new RegExp("^"+yt.join("|"),"g");if(yt.length&&xt.test(d))d=d.match(xt)[0],y="",n=1;else{var Tt=d+"";d+="",d=parseFloat(d.replace(",",".")),d=isNaN(d)?p:d;var $t=Tt.replace(d,"");(0,j.indexOf)(C,$t)>=0&&(y=$t)}}}return isNaN(d)||d===""||(nt||(0,j.isUndefined)(L)||L===""||(d=d>L?L:d),ht||(0,j.isUndefined)(W)||W===""||(d=d
`)},r.prototype.getInputEl=function(){if(!this.$input){var t=this.model,e=this.em,n=t.get("name"),o=t.get("options")||[],l=[],p="",this.$input=(0,E.default)(p);var d=t.getTargetValue(),C=l.indexOf(d)>=0?d:t.get("default");!(0,j.isUndefined)(C)&&this.$input.val(C)}return this.$input.get(0)},r})(sa);var lg=Ae(8242),cg=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ef="data-categories",nf="data-no-categories",rf=(function(a){function r(t,e){var n=a.call(this,t)||this;n.reuseView=!0,n.renderedCategories=new Map,n.itemsView=e;var o=t.config||{};n.config=o;var l=t.editor;n.em=l;var p=o.pStylePrefix||"";return n.ppfx=p,n.pfx=p+o.stylePrefix||"",n.className="".concat(n.pfx,"traits"),n.traitContClass="".concat(p,"traits-c"),n.classNoCat="".concat(p,"traits-empty-c"),n.catsClass="".concat(p,"trait-categories"),n.collection=new Xi([],{em:l}),n.listenTo(l,"component:toggled",n.updatedCollection),n.updatedCollection(),n}return cg(r,a),r.prototype.updatedCollection=function(){var t=this.ppfx,e=this.em,n=e.getSelected();this.el.className="".concat(this.traitContClass,"s ").concat(t,"one-bg ").concat(t,"two-color"),this.collection=n?.traits||new Xi([],{em:e}),this.render()},r.prototype.add=function(t,e){var n=this.config,o=this.renderedCategories,l=this.itemView,p=t.get(this.itemType);this.itemsView&&this.itemsView[p]&&(l=this.itemsView[p]);var d=new l({config:n,model:t,attributes:t.get("attributes")}).render().el,C=t.parent.initCategory(t);if(C){var y=C.getId(),L=this.getCategoriesEl(),W=o.get(y);return!W&&L&&(W=new Yu({model:C},n,"trait").render(),o.set(y,W),L.appendChild(W.el)),void(W==null||W.append(d))}e?e.appendChild(d):this.append(d)},r.prototype.getCategoriesEl=function(){return this.catsEl||(this.catsEl=this.el.querySelector("[".concat(ef,"]"))),this.catsEl},r.prototype.getTraitsEl=function(){return this.traitsEl||(this.traitsEl=this.el.querySelector("[".concat(nf,"]"))),this.traitsEl},r.prototype.append=function(t){var e=this.getTraitsEl();e?.appendChild(t)},r.prototype.render=function(){var t=this,e=this,n=e.el,o=e.ppfx,l=e.catsClass,p=e.traitContClass,d=e.classNoCat,C=document.createDocumentFragment();delete this.catsEl,delete this.traitsEl,this.renderedCategories=new Map,n.innerHTML=`
`),this.collection.forEach((function(L){return t.add(L,C)})),this.append(C);var y="".concat(p,"s ").concat(o,"one-bg ").concat(o,"two-color");return this.$el.addClass(y),this.rendered=!0,this},r})(lg.A);const of=rf;rf.prototype.itemView=sa;var ug=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),pg=function(a,r,t){if(t||arguments.length===2)for(var e,n=0,o=r.length;n
`).concat(L?' ').concat(Je,` ').concat(Tn,` `):"",`
').concat(un,` `).concat(ge?'').concat(ge,""):"",` ').concat(re,`
').concat(W||"",`
").concat(Re||"",`
`)},Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),r.prototype.initComponent=function(){var t=this,e=this.model,n=this.config.onInit,o=e.components();this.listenTo(o,"remove add reset",this.checkChildren),[["change:status",this.updateStatus],["change:open",this.updateOpening],["change:layerable",this.updateLayerable],["change:style:display",this.updateVisibility],["change:draggable",this.updateMove],["rerender:layer",this.render],["change:name change:custom-name",this.updateName]].forEach((function(l){return t.listenTo(e,l[0],l[1])})),this.$el.data("model",e),this.$el.data("collection",o),e.viewLayer=this,n.bind(this)({component:e,render:this.__render,listenTo:this.listenTo})},r.prototype.updateName=function(){this.getInputName().innerText=this.model.getName()},r.prototype.getVisibilityEl=function(){return this.getItemContainer().find("[data-toggle-visible]")},r.prototype.updateVisibility=function(){var t=this,e=t.pfx,n=t.model,o=t.module,l="".concat(e,"layer-hidden"),p=o.isVisible(n)?"removeClass":"addClass";this.$el[p](l),this.getVisibilityEl()[p]("".concat(e,"layer-off"))},r.prototype.updateMove=function(){var t=this.model,e=this.config,n=this.getItemContainer().find("[".concat(up,"]"))[0];if(n){var o=t.get("draggable")&&e.sortable;n.style.display=o?"":"none"}},r.prototype.toggleVisibility=function(t){t?.stopImmediatePropagation();var e=this.module,n=this.model;e.setVisible(n,!e.isVisible(n))},r.prototype.handleEdit=function(t){t?.stopPropagation();var e=this,n=e.em,o=e.$el,l=e.clsNoEdit,p=e.clsEdit,d=this.getInputName();d[df]="true",d.focus(),document.execCommand("selectAll",!1),n.setEditing(!0),o.find(".".concat(this.inputNameCls)).removeClass(l).addClass(p)},r.prototype.handleEditKey=function(t){t.stopPropagation(),((0,ft.v$)(t)||(0,ft.Ci)(t))&&this.handleEditEnd(t)},r.prototype.handleEditEnd=function(t){t?.stopPropagation();var e=this,n=e.em,o=e.$el,l=e.clsNoEdit,p=e.clsEdit,d=e.model,C=this.getInputName(),y=C.textContent;C.scrollLeft=0,C[df]="false",d.setName(y),n.setEditing(!1),o.find(".".concat(this.inputNameCls)).addClass(l).removeClass(p),this.updateName()},r.prototype.getInputName=function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},r.prototype.updateOpening=function(){var t=this,e=t.$el,n=t.model,o=t.pfx,l="open",p="".concat(o,"layer-open"),d=this.getCaret();this.module.isOpen(n)?(e.addClass(l),d.addClass(p)):(e.removeClass(l),d.removeClass(p))},r.prototype.toggleOpening=function(t){var e=this.model,n=this.module;t?.stopImmediatePropagation(),e.get("components").length&&n.setOpen(e,!n.isOpen(e))},r.prototype.handleSelect=function(t){t?.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{selected:!0},{event:t})},r.prototype.handleHover=function(t){t?.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!0})},r.prototype.handleHoverOut=function(t){t?.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!1})},r.prototype.startSort=function(t){var e,n,o;t.stopPropagation();var l=this,p=l.em,d=l.sorter,C=l.model;if((!t.button||t.button===0)&&d){var y=((n=(e=C.delegate)===null||e===void 0?void 0:e.move)===null||n===void 0?void 0:n.call(e,C))||C;d.eventHandlers=zd({legacyOnStartSort:cf(p),legacyOnMoveClb:uf(p),legacyOnEndMove:pf(p,[y])},d.eventHandlers);var L=((o=y.viewLayer)===null||o===void 0?void 0:o.el)||t.target;d.startSort([{element:L}])}},r.prototype.updateStatus=function(){Dn.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:!0}])},r.prototype.getItemContainer=function(){return this.$el.children("[data-toggle-select]")},r.prototype.checkChildren=function(){var t=this,e=t.model,n=t.clsNoChild,o=t.module,l=o.getComponents(e).length,p=this.getItemContainer(),d=p.find(".".concat(this.clsTitle)),C=p.find("[data-count]");d[l?"removeClass":"addClass"](n),C.html("".concat(l||"")),!l&&o.setOpen(e,!1)},r.prototype.getCaret=function(){return this.caret&&this.caret.length||(this.caret=this.getItemContainer().find(".".concat(this.clsCaret))),this.caret},r.prototype.setRoot=function(t){var e,n=(0,j.isString)(t)?(e=this.em.getWrapper())===null||e===void 0?void 0:e.find(t)[0]:t;n&&(this.stopListening(),this.model=n,this.initComponent(),this._rendered&&this.render())},r.prototype.updateLayerable=function(){(this.parentView||this).render()},r.prototype.__clearItems=function(){var t;(t=this.items)===null||t===void 0||t.remove()},r.prototype.remove=function(){for(var t=[],e=0;e `).concat(this.getPreview(),`
`).concat(this.getInfo(),`
`)},r.prototype.updateTarget=function(t){t&&t.set&&(t.set("attributes",(0,j.clone)(t.get("attributes"))),t.set("src",this.model.get("src")))},r.prototype.getPreview=function(){return""},r.prototype.getInfo=function(){return""},r.prototype.render=function(){var t=this.el;return t.innerHTML=this.template(this,this.model),t.className=this.className,this},r})(_.Ss);const Ug=Bg;var zg=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vf=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},yf=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return zg(r,a),r.prototype.getPreview=function(){var t=this,e=t.pfx,n=t.ppfx,o=t.model.get("src");return H(bf||(bf=vf([`
`],[`
`])),e,o,e,n)},r.prototype.getInfo=function(){var t=this.pfx,e=this.model,n=e.get("name"),o=e.get("width"),l=e.get("height"),p=e.get("unitDim"),d=o&&l?"".concat(o,"x").concat(l).concat(p):"";return n=n||e.getFilename(),H(_f||(_f=vf([`
',`
',`
`],[`
',`
',`
`])),t,n,t,d)},r.prototype.init=function(t){var e=this.pfx;this.className+=" ".concat(e,"asset-image")},r.prototype.onClick=function(){var t=this.model,e=this.pfx,n=this.__getBhv().select,o=this.config.onClick,l=this.collection;l.trigger("deselectAll"),this.$el.addClass(e+"highlight"),(0,j.isFunction)(n)?n(t,!1):(0,j.isFunction)(o)?o(t):this.updateTarget(l.target)},r.prototype.onDblClick=function(){var t=this.em,e=this.model,n=this.__getBhv().select,o=this.config.onDblClick,l=this.collection,p=l.target,d=l.onSelect;(0,j.isFunction)(n)?n(e,!0):(0,j.isFunction)(o)?o(e):(this.updateTarget(p),t?.Modal.close()),(0,j.isFunction)(d)&&d(e)},r.prototype.onRemove=function(t){t.stopImmediatePropagation(),this.model.collection.remove(this.model)},r})(Ug);const Wg=yf;var bf,_f;yf.prototype.events={"click [data-toggle=asset-remove]":"onRemove",click:"onClick",dblclick:"onDblClick"};var dp=function(){return dp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
`)),`
`).concat(l,`
`)},r.prototype.handleSubmit=function(t){t.preventDefault();var e=this.getAddInput(),n=e&&e.value.trim(),o=this.config.handleAdd;if(n){e.value="";var l=this.getAssetsEl();l&&(l.scrollTop=0),o?o.bind(this)(n):this.options.globalCollection.add(n,{at:0})}},r.prototype.getAssetsEl=function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},r.prototype.getAddInput=function(){return this.inputUrl&&this.inputUrl.value||(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},r.prototype.removedAsset=function(t){this.collection.length||this.toggleNoAssets()},r.prototype.addToAsset=function(t){this.collection.length==1&&this.toggleNoAssets(!0),this.addAsset(t)},r.prototype.addAsset=function(t,e){e===void 0&&(e=null);var n=e,o=this.collection,l=this.config,p=new t.typeView({model:t,collection:o,config:l}).render().el;if(n)n.appendChild(p);else{var d=this.getAssetsEl();d&&d.insertBefore(p,d.firstChild)}return p},r.prototype.toggleNoAssets=function(t){t===void 0&&(t=!1);var e=this.$el.find(".".concat(this.pfx,"assets"));if(t)e.empty();else{var n=this.config.noAssets;n&&e.append(n)}},r.prototype.deselectAll=function(){var t=this.pfx;this.$el.find(".".concat(t,"highlight")).removeClass("".concat(t,"highlight"))},r.prototype.renderAssets=function(){var t=this,e=document.createDocumentFragment(),n=this.$el.find(".".concat(this.pfx,"assets"));n.empty(),this.toggleNoAssets(!!this.collection.length),this.collection.each((function(o){return t.addAsset(o,e)})),n.append(e)},r.prototype.render=function(){var t=this.options.fu.render().el;return this.$el.empty(),this.$el.append(t).append(this.template(this)),this.el.className="".concat(this.ppfx,"asset-manager"),this.renderAssets(),this},r})(_.Ss);const $g=Ef;Ef.prototype.events={submit:"handleSubmit"};var Yg=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Xg=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},Zg=(function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.options=t;var n=t.config||{};e.module=t.module,e.config=n,e.em=e.config.em,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.target=e.options.globalCollection||{},e.uploadId=e.pfx+"uploadFile",e.disabled=n.disableUpload!==void 0?n.disableUpload:!n.upload&&!n.embedAsBase64,e.multiUpload=n.multiUpload===void 0||n.multiUpload;var o=n.uploadFile;return o?e.uploadFile=o.bind(e):!n.upload&&n.embedAsBase64&&(e.uploadFile=r.embedAsBase64),e.delegateEvents(),e}return Yg(r,a),r.prototype.template=function(t){var e=t.pfx,n=t.title,o=t.uploadId,l=t.disabled,p=t.multiUpload;return H(Of||(Of=Xg([`
',`
`],[`
',`
`])),e,n,o,l?"disabled":"",p?"multiple":"")},r.prototype.events=function(){return{"change [data-input]":"uploadFile"}},r.prototype.onUploadStart=function(){var t=this.module;t?.__propEv(t.events.uploadStart)},r.prototype.onUploadEnd=function(t){var e=this.$el,n=this.module;n?.__propEv(n.events.uploadEnd,t);var o=e.find("input");o&&o.val("")},r.prototype.onUploadError=function(t){var e=this.module;console.error(t),this.onUploadEnd(t),e?.__propEv(e.events.uploadError,t)},r.prototype.onUploadResponse=function(t,e){var n,o=this,l=o.module,p=o.config,d=o.target;try{n=typeof t=="string"?JSON.parse(t):t}catch{n=t}l?.__propEv(l.events.uploadResponse,n),p.autoAdd&&d&&d.add(n.data,{at:0}),this.onUploadEnd(t),e?.(n)},r.prototype.uploadFile=function(t,e){var n=this,o=t.dataTransfer?t.dataTransfer.files:t.target.files,l=this.config,p=l.beforeUpload;if((p&&p(o))!==!1){var d=new FormData,C=l.params,y=l.customFetch,L=l.fetchOptions;for(var W in C)d.append(W,C[W]);if(this.multiUpload)for(var nt=0;nt').concat(o.dropzoneContent,"")),nt(),"draggable"in p&&[p,C].forEach((function(Tt){Tt.ondragover=ht,Tt.ondragleave=yt,Tt.ondrop=xt}))},r.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,o=t.em;return e.html(this.template({title:o&&o.t("assetManager.uploadTitle"),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:n})),this.initDrop(),e.attr("class",n+"file-uploader"),this},r.embedAsBase64=function(t,e){var n=this,o=t.dataTransfer?t.dataTransfer.files:t.target.files,l={data:[]};if(FileReader){for(var p=[],d=/^(.+)\/(.+)$/,C=function(W){var nt=new Promise((function(ht,yt){var xt=new FileReader;xt.addEventListener("load",(function(Tt){var $t,re=W.name,ge=d.exec(W.type);if(($t=ge?ge[1]:W.type)==="image"){var _e={src:xt.result,name:re,type:$t,height:0,width:0},we=new Image;we.addEventListener("error",(function(Re){yt(Re)})),we.addEventListener("load",(function(){_e.height=we.height,_e.width=we.width,ht(_e)})),we.src=_e.src}else ht($t?{src:xt.result,name:re,type:$t}:xt.result)})),xt.addEventListener("error",(function(Tt){yt(Tt)})),xt.addEventListener("abort",(function(Tt){yt("Aborted")})),xt.readAsDataURL(W)}));p.push(nt)},y=0,L=o;y=n.length||C))return this.remove(o,Ml(Ml({},d),{temporary:!0})),n.add(o,Ml(Ml({},d),{at:p})),o}},r.prototype.get=function(t){return this.pages.filter((function(e){return e.get(e.idAttribute)===t}))[0]},r.prototype.getMain=function(){var t=this.pages;return t.filter((function(e){return e.get("type")===Af}))[0]||t.at(0)},r.prototype.getAllWrappers=function(){var t=this.getAll();return(0,j.unique)((0,j.flatten)(t.map((function(e){return e.getAllFrames().map((function(n){return n.getComponent()}))}))))},r.prototype.select=function(t,e){e===void 0&&(e={});var n=this,o=n.em,l=n.model,p=n.events,d=(0,j.isString)(t)?this.get(t):t;return d&&(o.trigger(p.selectBefore,d,e),l.set("selected",d,e)),this},r.prototype.getSelected=function(){return this.model.get("selected")},r.prototype.destroy=function(){var t=this;this.pages.off().reset(),this.model.stopListening(),this.model.clear({silent:!0}),["selected","model"].map((function(e){return t[e]=0}))},r.prototype.store=function(){return this.getProjectData()},r.prototype.load=function(t){var e=this.loadProjectData(t,{all:this.pages,reset:!0});return this.pages.forEach((function(n){return n.getFrames().initRefs()})),e},r.prototype._initPage=function(){return this.get(this.config.selected)||this.getMain()},r.prototype._createId=function(){var t,e=this.getAll().length+16,n=this.getAllMap();do t=(0,b.createId)(e);while(n[t]);return t},r})(I);const u0=c0;var Zd={placeholder:"eg. Text here"};const p0={assetManager:{addButton:"Add image",inputPlh:"http://path/to/the/image.jpg",modalTitle:"Select Image",uploadTitle:"Drop files here or click to upload"},blockManager:{labels:{},categories:{}},domComponents:{names:{"":"Box",wrapper:"Body",text:"Text",comment:"Comment",image:"Image",video:"Video",label:"Label",link:"Link",map:"Map",tfoot:"Table foot",tbody:"Table body",thead:"Table head",table:"Table",row:"Table row",cell:"Table cell"}},deviceManager:{device:"Device",devices:{desktop:"Desktop",tablet:"Tablet",mobileLandscape:"Mobile Landscape",mobilePortrait:"Mobile Portrait"}},panels:{buttons:{titles:{preview:"Preview",fullscreen:"Fullscreen","sw-visibility":"View components","export-template":"View code","open-sm":"Open Style Manager","open-tm":"Settings","open-layers":"Open Layer Manager","open-blocks":"Open Blocks"}}},selectorManager:{label:"Classes",selected:"Selected",emptyState:"- State -",states:{hover:"Hover",active:"Click","nth-of-type(2n)":"Even/Odd"}},styleManager:{empty:"Select an element before using Style Manager",layer:"Layer",fileButton:"Images",sectors:{general:"General",layout:"Layout",typography:"Typography",decorations:"Decorations",extra:"Extra",flex:"Flex",dimension:"Dimension"},properties:{"text-shadow-h":"X","text-shadow-v":"Y","text-shadow-blur":"Blur","text-shadow-color":"Color","box-shadow-h":"X","box-shadow-v":"Y","box-shadow-blur":"Blur","box-shadow-spread":"Spread","box-shadow-color":"Color","box-shadow-type":"Type","margin-top-sub":"Top","margin-right-sub":"Right","margin-bottom-sub":"Bottom","margin-left-sub":"Left","padding-top-sub":"Top","padding-right-sub":"Right","padding-bottom-sub":"Bottom","padding-left-sub":"Left","border-width-sub":"Width","border-style-sub":"Style","border-color-sub":"Color","border-top-left-radius-sub":"Top Left","border-top-right-radius-sub":"Top Right","border-bottom-right-radius-sub":"Bottom Right","border-bottom-left-radius-sub":"Bottom Left","transform-rotate-x":"Rotate X","transform-rotate-y":"Rotate Y","transform-rotate-z":"Rotate Z","transform-scale-x":"Scale X","transform-scale-y":"Scale Y","transform-scale-z":"Scale Z","transition-property-sub":"Property","transition-duration-sub":"Duration","transition-timing-function-sub":"Timing","background-image-sub":"Image","background-repeat-sub":"Repeat","background-position-sub":"Position","background-attachment-sub":"Attachment","background-size-sub":"Size"}},traitManager:{empty:"Select an element before using Trait Manager",label:"Component settings",categories:{},traits:{labels:{},attributes:{id:Zd,alt:Zd,title:Zd,href:{placeholder:"eg. https://google.com"}},options:{target:{false:"This window",_blank:"New window"}}}},storageManager:{recover:"Do you want to recover unsaved changes?"}},d0=function(){return{locale:"en",localeFallback:"en",detectLocale:!0,debug:!1,messages:{en:p0},messagesAdd:void 0}};var Qd;(function(a){a.add="i18n:add",a.update="i18n:update",a.locale="i18n:locale"})(Qd||(Qd={}));const f0=Qd;var h0=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),g0=(function(a){function r(t){var e=a.call(this,t,"I18n",d0())||this;e.events=f0;var n=e.config.messagesAdd;return n&&e.addMessages(n),e.config.detectLocale&&(e.config.locale=e._localLang()),e}return h0(r,a),r.prototype.setLocale=function(t){var e=this,n=e.em,o=e.config,l=e.events;return n.trigger(l.locale,{value:t,valuePrev:o.locale}),o.locale=t,this},r.prototype.getLocale=function(){return this.config.locale},r.prototype.getMessages=function(t,e){e===void 0&&(e={});var n=this.config.messages;return t&&!n[t]&&this._debug("'".concat(t,"' i18n lang not found"),e),t?n[t]:n},r.prototype.setMessages=function(t){var e=this,n=e.em,o=e.config,l=e.events;return o.messages=t,n.trigger(l.update,t),this},r.prototype.addMessages=function(t){var e=this,n=e.em,o=e.events,l=e.config.messages;return n.trigger(o.add,t),this.setMessages((0,b.deepMerge)(l,t)),this},r.prototype.t=function(t,e){e===void 0&&(e={});var n=this.config,o=e.params||{},l=e.l||this.getLocale(),p=e.lFlb||n.localeFallback,d=this._getMsg(t,l,e);return d||(d=this._getMsg(t,p,e)),!d&&this._debug("'".concat(t,"' i18n key not found in '").concat(l,"' lang"),e),d=d&&(0,j.isString)(d)?this._addParams(d,o):d},r.prototype._localLang=function(){var t=(0,b.hasWin)()&&window.navigator||{},e=t.language||t.userLanguage;return e?e.split("-")[0]:"en"},r.prototype._addParams=function(t,e){var n=new RegExp("{([\\w\\d-]*)}","g");return t.replace(n,(function(o,l){return e[l]||""})).trim()},r.prototype._getMsg=function(t,e,n){n===void 0&&(n={});var o=this.getMessages(e,n);if(o){var l=o[t];return!l&&t.indexOf(".")>0&&(l=t.split(".").reduce((function(p,d){if(!(0,j.isUndefined)(p))return p[d]}),o)),l}},r.prototype._debug=function(t,e){e===void 0&&(e={});var n=this.em,o=this.config;(e.debug||o.debug)&&n&&n.logWarning(t)},r.prototype.destroy=function(){},r})(h);const m0=g0;var Es=function(){return Es=Object.assign||function(a){for(var r,t=1,e=arguments.length;tge?Tt.h=Math.round(Tt.w/ge):Tt.w=Math.round(Tt.h*ge)}for(var _e in~$t.indexOf("l")&&(Tt.l+=o.w-Tt.w),~$t.indexOf("t")&&(Tt.t+=o.h-Tt.h),Tt){var we=_e;Tt[we]=parseInt("".concat(Tt[we]),10)}return Tt}},a.prototype.getParentRect=function(){var r={left:0,top:0,width:0,height:0},t=this.el;if(!t)return r;var e=t.offsetParent;return e&&e.tagName!=="BODY"&&(r=this.getElementPos(e)),r},a})();const y0=v0;var zo=function(){return zo=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=this.left&&r<=this.left+this.width&&t>=this.top&&t<=this.top+this.height},a})();const _0=b0;var T0=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),hp=function(){return hp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0;l=l||this.getDim(t.element),t.nodeDimensions=l,p=p||this.getChildrenDim(t),t.childrenDimensions=p;var y=l.clone(),L=0,W="inside";return C&&(L=(o=(function(nt,ht,yt){for(var xt,Tt={index:0,placement:"before"},$t=0,re=0,ge=0,_e=0,we=0,Re=0,Je=0,Tn=nt.length;Jere||ge&&we>=ge||$t&&ir+Pr<$t))if(Tt.index=Je,xt.dir){if(yt0?L.handleNodeAddition(W,nt,yt).length===0&&L.triggerNullOnEndMove(!1):L.triggerNullOnEndMove(!0),W?.restNodeState(),L.placeholder.hide()},L.onTargetChange=function(W,nt){var ht;W?.restNodeState();var yt=L.em.Canvas;if(!nt)return L.placeholder.hide(),void yt.removeSpots(n1);nt?.setSelectedParentState(),L.targetIsText=nt.isTextNode(),L.targetIsText&&(!((ht=L.sourceNodes)===null||ht===void 0)&&ht.some((function(xt){return xt.isTextable()})))?(nt.setContentEditable(!0),L.placeholder.hide()):L.placeholder.show(),[Gt.F.Select,Gt.F.Hover,Gt.F.Spacing].forEach((function(xt){return yt.removeSpots({type:xt})})),yt.addSpot(Il(Il({},n1),{component:nt.model}))},(0,j.bindAll)(L,"handleScrollEvent"),L}return S0(r,a),r.prototype.onStartSort=function(){this.em.clearSelection(),this.setAutoCanvasScroll(!0)},r.prototype.bindDragEventHandlers=function(){this.em.on("frame:scroll",this.handleScrollEvent),a.prototype.bindDragEventHandlers.call(this)},r.prototype.cleanupEventListeners=function(){this.em.off("frame:scroll",this.handleScrollEvent),a.prototype.cleanupEventListeners.call(this)},r.prototype.handleScrollEvent=function(){for(var t,e=[],n=0;n=0&&Dl.splice(e,1),t!=93&&t!=224||(t=91),t in go)for(r in go[t]=!1,Os)Os[r]==t&&(mo[r]=!1)}function z0(){for(Eo in go)go[Eo]=!1;for(Eo in Os)mo[Eo]=!1}function mo(a,r,t){var e,n;e=jf(a),t===void 0&&(t=r,r="all");for(var o=0;o1&&(n=Rf(a),a=[a[a.length-1]]),a=a[0],(a=i1(a))in Wo||(Wo[a]=[]),Wo[a].push({shortcut:e[o],scope:r,method:t,key:e[o],mods:n})}for(Eo in Os)mo[Eo]=!1;function a1(){return If||"all"}function jf(a){var r;return(r=(a=a.replace(/\s/g,"")).split(","))[r.length-1]==""&&(r[r.length-2]+=","),r}function Rf(a){for(var r=a.slice(0,a.length-1),t=0;t1&&(p=Rf(e)),a=e[e.length-1],a=i1(a),r===void 0&&(r=a1()),!Wo[a])return;for(n=0;n0,go)(!go[o]&&Lc(n.mods,+o)>-1||go[o]&&Lc(n.mods,+o)==-1)&&(p=!1);(n.mods.length!=0||go[16]||go[18]||go[17]||go[91])&&!p||n.method(t,n)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}})(r)})),s1(a.document,"keyup",U0),s1(a,"focus",z0)};const Ic=mo,W0=function(){return{defaults:{"core:undo":{keys:"\u2318+z, ctrl+z",handler:"core:undo",opts:{prevent:!0}},"core:redo":{keys:"\u2318+shift+z, ctrl+shift+z",handler:"core:redo",opts:{prevent:!0}},"core:copy":{keys:"\u2318+c, ctrl+c",handler:"core:copy"},"core:paste":{keys:"\u2318+v, ctrl+v",handler:"core:paste"},"core:component-next":{keys:"s",handler:"core:component-next"},"core:component-prev":{keys:"w",handler:"core:component-prev"},"core:component-enter":{keys:"d",handler:"core:component-enter"},"core:component-exit":{keys:"a",handler:"core:component-exit"},"core:component-delete":{keys:"backspace, delete",handler:"core:component-delete",opts:{prevent:!0}}}}};var G0=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Hf=function(a,r,t){if(t||arguments.length===2)for(var e,n=0,o=r.length;n
').concat(l,`
').concat(o,`
')},r.prototype.events=function(){return{click:"onClick","click [data-close-modal]":"hide"}},r.prototype.onClick=function(t){this.config.backdrop&&t.target===this.el&&this.hide()},r.prototype.getCollector=function(){return this.$collector||(this.$collector=this.$el.find("."+this.pfx+"collector")),this.$collector},r.prototype.getContent=function(){var t=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(t,"content #").concat(t,"c"))),this.$content},r.prototype.getTitle=function(t){return t===void 0&&(t={}),this.$title||(this.$title=this.$el.find("."+this.pfx+"title")),t.$?this.$title:this.$title.get(0)},r.prototype.updateContent=function(){var t=this.getContent(),e=t.children(),n=this.getCollector(),o=this.model.get("content");e.length&&n.append(e),t.empty().append(o)},r.prototype.updateTitle=function(){var t=this.getTitle({$:!0});t&&t.empty().append(this.model.get("title"))},r.prototype.updateOpen=function(){this.el.style.display=this.model.get("open")?"":"none"},r.prototype.hide=function(){this.model.close()},r.prototype.show=function(){this.model.open()},r.prototype.updateAttr=function(t){var e=this,n=e.pfx,o=e.$el,l=e.el,p=[].slice.call(l.attributes).map((function(d){return d.name}));o.removeAttr(p.join(" ")),o.attr(vp(vp({},t||{}),{class:"".concat(n,"container ").concat(t&&t.class||"").trim()}))},r.prototype.render=function(){var t=this.$el,e=this.model.toJSON();return e.pfx=this.pfx,e.ppfx=this.ppfx,t.html(this.template(e)),this.updateAttr(),this.updateOpen(),this},r})(pt);const J0=Q0;var tm=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),em=(function(a){function r(t){var e=a.call(this,t,"Modal",$0())||this;return e.model=new X0(e),e.model.on("change:open",(function(n,o){t.trigger("modal:".concat(o?"open":"close"))})),e.model.on("change",(0,j.debounce)((function(){var n=e._evData(),o=e.config.custom;(0,j.isFunction)(o)&&o(n),t.trigger("modal",n)}),0)),e}return tm(r,a),r.prototype._evData=function(){var t=this,e=this.getTitle(),n=this.getContent(),o=this.model.attributes;return{open:o.open,attributes:o.attributes,title:(0,j.isString)(e)?(0,ft.GZ)(e):e,content:(0,j.isString)(n)?(0,ft.GZ)(n):n.get?n.get(0):n,close:function(){t.close()}}},r.prototype.postRender=function(t){var e=t.model.config.el||t.el,n=this.render();n&&e?.appendChild(n)},r.prototype.open=function(t){t===void 0&&(t={});var e=t.attributes||{};return t.title&&this.setTitle(t.title),t.content&&this.setContent(t.content),this.model.set("attributes",e),this.model.open(),this.modal&&this.modal.updateAttr(e),this},r.prototype.close=function(){return this.model.close(),this},r.prototype.onceClose=function(t){return this.em.once("modal:close",t),this},r.prototype.onceOpen=function(t){return this.em.once("modal:open",t),this},r.prototype.isOpen=function(){return!!this.model.get("open")},r.prototype.setTitle=function(t){return this.model.set("title",t),this},r.prototype.getTitle=function(){return this.model.get("title")},r.prototype.setContent=function(t){return this.model.set("content"," "),this.model.set("content",t),this},r.prototype.getContent=function(){return this.model.get("content")},r.prototype.getContentEl=function(){var t;return(t=this.modal)===null||t===void 0?void 0:t.getContent().get(0)},r.prototype.getModel=function(){return this.model},r.prototype.render=function(){var t;if(!this.config.custom){var e=J0.extend(this.config.extend),n=this.modal&&this.modal.el;return this.modal=new e({el:n,model:this.model,config:this.config}),(t=this.modal)===null||t===void 0?void 0:t.render().el}},r.prototype.destroy=function(){var t;(t=this.modal)===null||t===void 0||t.remove()},r})(h);const nm=em;var Ff="sw-visibility",Vf="export-template",Bf="open-sm",Uf="open-tm",zf="open-layers",Wf="open-blocks",l1="fullscreen",c1="preview";const rm=function(){return{stylePrefix:"pn-",defaults:[{id:"commands",buttons:[{}]},{id:"options",buttons:[{active:!0,id:Ff,className:"fa fa-square-o",command:"core:component-outline",context:Ff,attributes:{title:"View components"}},{id:c1,className:"fa fa-eye",command:c1,context:c1,attributes:{title:"Preview"}},{id:l1,className:"fa fa-arrows-alt",command:l1,context:l1,attributes:{title:"Fullscreen"}},{id:Vf,className:"fa fa-code",command:Vf,attributes:{title:"View code"}}]},{id:"views",buttons:[{id:Bf,className:"fa fa-paint-brush",command:Bf,active:!0,togglable:!1,attributes:{title:"Open Style Manager"}},{id:Uf,className:"fa fa-cog",command:Uf,togglable:!1,attributes:{title:"Settings"}},{id:zf,className:"fa fa-bars",command:zf,togglable:!1,attributes:{title:"Open Layer Manager"}},{id:Wf,className:"fa fa-th-large",command:Wf,togglable:!1,attributes:{title:"Open Blocks"}}]}]}};var om=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const Gf=(function(a){function r(t,e){var n=a.call(this,t,e)||this;return n.get("buttons").length&&n.set("buttons",new Kf(n.module,n.get("buttons"))),n}return om(r,a),r.prototype.defaults=function(){return{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1}},Object.defineProperty(r.prototype,"className",{get:function(){return this.get("className")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"command",{get:function(){return this.get("command")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this.get("active")},set:function(t){this.set("active",t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"togglable",{get:function(){return this.get("togglable")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"runDefaultCommand",{get:function(){return this.get("runDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"stopDefaultCommand",{get:function(){return this.get("stopDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disable",{get:function(){return this.get("disable")},enumerable:!1,configurable:!0}),r})(M.A);var im=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),qf=(function(a){function r(t,e){return a.call(this,t,e,Gf)||this}return im(r,a),r.prototype.deactivateAllExceptOne=function(t,e){this.forEach((function(n,o){n!==t&&(n.set("active",!1),e&&n.get("buttons").length&&n.get("buttons").deactivateAllExceptOne(t,e))}))},r.prototype.deactivateAll=function(t,e){var n=t||"";this.forEach((function(o){o.get("context")==n&&o!==e&&o.set("active",!1,{fromCollection:!0})}))},r.prototype.disableAllButtons=function(t){var e=t||"";this.forEach((function(n,o){n.get("context")==e&&n.set("disable",!0)}))},r.prototype.disableAllButtonsExceptOne=function(t,e){this.forEach((function(n,o){n!==t&&(n.set("disable",!0),e&&n.get("buttons").length&&n.get("buttons").disableAllButtonsExceptOne(t,e))}))},r})(ee);const Kf=qf;qf.prototype.model=Gf;var am=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();const $f=(function(a){function r(t,e){var n=a.call(this,t,e)||this,o=n.get("buttons")||[];return n.buttons=new Kf(t,o),n}return am(r,a),r.prototype.defaults=function(){return{id:"",content:"",visible:!0,buttons:[],attributes:{}}},Object.defineProperty(r.prototype,"buttons",{get:function(){return this.get("buttons")},set:function(t){this.set("buttons",t)},enumerable:!1,configurable:!0}),r})(M.A);var sm=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Yf=(function(a){function r(t,e){return a.call(this,t,e,$f)||this}return sm(r,a),r})(ee);const lm=Yf;Yf.prototype.model=$f;var cm=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),jl=function(){return jl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
',`
`],[`
',`
`])),e,e,n,e,o,e)},r.prototype.initialize=function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix},r.prototype.render=function(){var t,e,n=this,o=n.model,l=n.pfx,p=n.$el,d=o.toJSON(),C=o.get("input")||((e=(t=o).getElement)===null||e===void 0?void 0:e.call(t));return d.pfx=l,p.html(this.template(d)),p.attr("class","".concat(l,"editor-c")),p.find("#".concat(l,"code")).append(C),this},r})(_.Ss);const Hm=Rm;var Zf,Fm=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),yp=function(){return yp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0})))return!1;if((0,j.isBoolean)(l)||(0,j.isArray)(l)&&Qf(o).some((function(d){return l.indexOf(d)>=0})))return!0}return!1},on:function(o,l,p){var d=_p.get(o);d||(d=o.previousAttributes(),_p.set(o,d));var C=p||l||{};if(C.noUndo&&setTimeout((function(){_p.delete(o)})),!bp(C)){var y=o.toJSON({fromUndo:n}),L={object:o,before:d,after:y};if(_p.delete(o),!(0,j.isEmpty)(y))return L}}}),e.um.changeUndoType("add",{on:function(o,l,p){if(p===void 0&&(p={}),!bp(p)&&e.isRegistered(l))return{object:l,before:void 0,after:o,options:la(la({},p),{fromUndo:n})}}}),e.um.changeUndoType("remove",{on:function(o,l,p){if(p===void 0&&(p={}),!bp(p)&&e.isRegistered(l))return{object:l,before:o,after:void 0,options:la(la({},p),{fromUndo:n})}}}),e.um.changeUndoType("reset",{undo:function(o,l){o.reset(l,{fromUndo:n})},redo:function(o,l,p){o.reset(p,{fromUndo:n})},on:function(o,l){if(l===void 0&&(l={}),!bp(l)&&e.isRegistered(o))return{object:o,before:l.previousModels,after:Km([],o.models,!0),options:la(la({},l),{fromUndo:n})}}}),e.um.on("undo redo",(function(){t.getSelectedAll().map((function(o){return o.trigger("rerender:layer")}))})),[Oo.undo,Oo.redo].forEach((function(o){return e.um.on(o,(function(){return t.trigger(o)}))})),e}return qm(r,a),r.prototype.postLoad=function(){var t=this.config,e=this.em;t.trackSelection&&e&&this.add(e.get("selected"))},r.prototype.add=function(t){return this.um.register(t),this},r.prototype.remove=function(t){return this.um.unregister(t),this},r.prototype.removeAll=function(){return this.um.unregisterAll(),this},r.prototype.start=function(){return this.um.startTracking(),this},r.prototype.stop=function(){return this.um.stopTracking(),this},r.prototype.undo=function(t){t===void 0&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.undo(t),this},r.prototype.undoAll=function(){return this.um.undoAll(),this},r.prototype.redo=function(t){t===void 0&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.redo(t),this},r.prototype.redoAll=function(){return this.um.redoAll(),this},r.prototype.hasUndo=function(){return!!this.um.isAvailable("undo")},r.prototype.hasRedo=function(){return!!this.um.isAvailable("redo")},r.prototype.isRegistered=function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},r.prototype.getStack=function(){return this.um.stack},r.prototype.getStackGroup=function(){var t=[],e=[];return this.getStack().forEach((function(n){var o=n.get("magicFusionIndex");e.indexOf(o)<0&&(e.push(o),t.push(n))})),t},r.prototype.skip=function(t){var e=!!this.um.isTracking();e&&this.stop(),t(),e&&this.start()},r.prototype.getGroupedStack=function(){var t={},e=this.getStack();return e.forEach((function(n,o){var l=n.get("magicFusionIndex"),p=(function(d,C){var y=d.attributes,L=y.type,W=y.after,nt=y.before,ht=y.object,yt=y.options;return{index:C,type:L,after:W,before:nt,object:ht,options:yt===void 0?{}:yt}})(n,o);t[l]?t[l].push(p):t[l]=[p]})),Object.keys(t).map((function(n){var o=t[n];return{index:o[o.length-1].index,actions:o,labels:(0,j.unique)(o.reduce((function(l,p){var d,C=(d=p.options)===null||d===void 0?void 0:d.action;return C&&l.push(C),l}),[]))}}))},r.prototype.goToGroup=function(t){var e=this;if(t){var n=this.getPointer(),o=t.index-n;(0,j.times)(Math.abs(o),(function(){e[o<0?"undo":"redo"](!1)}))}},r.prototype.getPointer=function(){return this.getStack().pointer},r.prototype.clear=function(){return this.um.clear(),this},r.prototype.getInstance=function(){return this.um},r.prototype.destroy=function(){this.clear().removeAll()},r})(h);const Ym=$m,Xm=function(){return{stylePrefix:"rte-",adjustToolbar:!0,actions:["bold","italic","underline","strikethrough","link","wrap"],custom:!1}};var Tp,Rl=function(){return Rl=Object.assign||function(a){for(var r,t=1,e=arguments.length;tB",attributes:{title:"Bold"},result:function(a){return a.exec("bold")}},italic:{name:"italic",icon:"I",attributes:{title:"Italic"},result:function(a){return a.exec("italic")}},underline:{name:"underline",icon:"U",attributes:{title:"Underline"},result:function(a){return a.exec("underline")}},strikethrough:{name:"strikethrough",icon:"S",attributes:{title:"Strike-through"},result:function(a){return a.exec("strikeThrough")}},link:{icon:` `,name:"link",attributes:{style:"font-size:1.4rem;padding:0 4px 2px;",title:"Link"},state:function(a){return a&&a.selection()&&Cp(a)?Jf:f1},result:function(a){Cp(a)?a.exec("unlink"):a.insertHTML('").concat(a.selection(),""),{select:!0})}},wrap:{name:"wrap",icon:` `,attributes:{title:"Wrap for style"},state:function(a){return a?.selection()&&Cp(a,"SPAN")?th:f1},result:function(a){!Cp(a,"SPAN")&&a.insertHTML("").concat(a.selection(),""),{select:!0})}}},Zm=(function(){function a(r,t,e){e===void 0&&(e={});var n=this;if(this.em=r,this.settings=e,t[d1])return t[d1];t[d1]=this,this.setEl(t),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var o=(e.actions||[]).map((function(y){var L=y;return(0,j.isString)(y)?L=Rl({},jc[y]):jc[y.name]&&(L=Rl(Rl({},jc[y.name]),y)),L})),l=o.length?o:Object.keys(jc).map((function(y){return jc[y]}));e.classes=Rl({actionbar:"actionbar",button:"action",active:"active",disabled:"disabled",inactive:"inactive"},e.classes);var p=e.classes,d=e.actionbar;if(this.actionbar=d,this.classes=p,this.actions=l,!d){if(!this.isCustom(e.module)){var C=e.actionbarContainer;(d=document.createElement("div")).className=p.actionbar,C?.appendChild(d),this.actionbar=d}l.forEach((function(y){return n.addAction(y)}))}return e.styleWithCSS&&this.exec("styleWithCSS"),this}return a.prototype.isCustom=function(r){var t=r||this.em.RichTextEditor;return!(!t?.config.custom&&!t?.customRte)},a.prototype.destroy=function(){},a.prototype.setEl=function(r){this.el=r,this.doc=r.ownerDocument},a.prototype.updateActiveActions=function(){var r=this,t=this.getActions();t.forEach((function(e){var n=e.update,o=e.btn,l=r.classes,p=l.active,d=l.inactive,C=l.disabled,y=e.state,L=e.name,W=r.doc,nt=Tp.INACTIVE;if(o&&(o.className=o.className.replace(p,"").trim(),o.className=o.className.replace(d,"").trim(),o.className=o.className.replace(C,"").trim()),y){var ht=y(r,W);if(nt=ht,o)switch(ht){case Jf:o.className+=" ".concat(p);break;case f1:o.className+=" ".concat(d);break;case th:o.className+=" ".concat(C)}}else W.queryCommandSupported(L)&&W.queryCommandState(L)&&(o&&(o.className+=" ".concat(p)),nt=Tp.ACTIVE);e.currentState=nt,n?.(r,e)})),t.length&&this.em.RichTextEditor.__dbdTrgCustom()},a.prototype.enable=function(r){return this.enabled?this:this.__toggleEffects(!0,r)},a.prototype.disable=function(){return this.__toggleEffects(!1)},a.prototype.__toggleEffects=function(r,t){r===void 0&&(r=!1),t===void 0&&(t={});var e=r?ft.on:ft.AU,n=this.el,o=this.doc,l=this.actionbarEl();if(l&&(l.style.display=r?"":"none"),n.contentEditable="".concat(!!r),e(n,"mouseup keyup",this.updateActiveActions),e(o,"keydown",this.__onKeydown),e(o,"paste",this.__onPaste),this.enabled=r,r){var p=t.event;if(this.syncActions(),this.updateActiveActions(),p){var d=null;if(o.caretRangeFromPoint){var C=(0,ft.G2)(p);d=o.caretRangeFromPoint(C.clientX,C.clientY)}else p.rangeParent&&(d=o.createRange()).setStart(p.rangeParent,p.rangeOffset);var y=o.getSelection();y?.removeAllRanges(),d&&y?.addRange(d)}n.focus()}return this},a.prototype.__onKeydown=function(r){var t=this.em,e=t.RichTextEditor.getConfig().onKeydown;if(e)return e({ev:r,rte:this,editor:t.getEditor()});var n=this.doc;r.key!=="Enter"||["insertOrderedList","insertUnorderedList"].some((function(o){return n.queryCommandState(o)}))||(n.execCommand("insertLineBreak"),r.preventDefault())},a.prototype.__onPaste=function(r){var t=this.em,e=t.RichTextEditor.getConfig().onPaste;if(e)return e({ev:r,rte:this,editor:t.getEditor()});var n=r.clipboardData,o=n.getData("text"),l=n.getData("text/html");if(o&&!l){r.preventDefault();var p=o.replace(/(?:\r\n|\r|\n)/g,"
");this.doc.execCommand("insertHTML",!1,p)}},a.prototype.syncActions=function(){var r=this;this.getActions().forEach((function(t){if(r.actionbar&&(!t.state||t.state&&t.state(r,r.doc)>=0)){var e=t.event||"click",n=t.btn;n&&(n["on".concat(e)]=function(){t.result(r,t),r.updateActiveActions()})}}))},a.prototype.addAction=function(r,t){t===void 0&&(t={});var e=t.sync,n=this.actionbarEl();if(n){var o=r.icon,l=r.attributes,p=l===void 0?{}:l,d=document.createElement("span");for(var C in d.className=this.classes.button,r.btn=d,p)d.setAttribute(C,p[C]);typeof o=="string"?d.innerHTML=o:d.appendChild(o),n.appendChild(d)}e&&(this.actions.push(r),this.syncActions())},a.prototype.getActions=function(){return this.actions},a.prototype.selection=function(){return this.doc.getSelection()},a.prototype.exec=function(r,t){this.doc.execCommand(r,!1,t)},a.prototype.actionbarEl=function(){return this.actionbar},a.prototype.insertHTML=function(r,t){var e=(t===void 0?{}:t).select,n=this,o=n.em,l=n.doc,p=n.el,d=l.getSelection();if(d&&d.rangeCount){var C=(0,b.getComponentModel)(p)||o.getSelected(),y=l.createElement("div"),L=d.getRangeAt(0);L.deleteContents(),(0,j.isString)(r)?y.innerHTML=r:r&&y.appendChild(r),Array.prototype.slice.call(y.childNodes).forEach((function(W){L.insertNode(W)})),d.removeAllRanges(),d.addRange(L),p.focus(),e&&C&&(C.once("rte:disable",(function(){var W=C.find("[".concat(wp,"]"))[0];W&&(o.setSelected(W),W.removeAttributes(wp))})),C.trigger("disable"))}},a})();const Qm=Zm;var Jm=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ep=function(){return Ep=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]=0}))),xt=this.get("onChange"),Tt={property:this,from:W,to:L,value:C,opts:e};l.__trgEv(l.events.propertyUpdate,Tt),xt&&xt(Tt),yt&&this.__upTargetsStyle(((n={})[p]=C,n),e)},r.prototype.__upTargetsStyle=function(t,e){var n,o=(n=this.em)===null||n===void 0?void 0:n.get("StyleManager");o?.addStyleTargets(vo(vo({},t),{__p:!!e.avoidStore}),e)},r.prototype._up=function(t,e){e===void 0&&(e={}),e.noTarget&&(e.__up=!0);var n=e.partial,o=av(e,["partial"]);return t.__p=!(!o.avoidStore&&!n),this.set(t,vo(vo({},o),{avoidStore:t.__p}))},r.prototype.up=function(t,e){e===void 0&&(e={}),this.set(t,vo(vo({},e),{__up:!0}))},r.prototype.init=function(){},r.prototype.getId=function(){return this.get("id")},r.prototype.getType=function(){return this.get("type")},r.prototype.getName=function(){return this.get("property")},r.prototype.getLabel=function(t){var e;t===void 0&&(t={});var n=t.locale,o=n===void 0||n,l=this.getId(),p=this.get("name")||this.get("label");return o&&((e=this.em)===null||e===void 0?void 0:e.t("styleManager.properties.".concat(l)))||p},r.prototype.getValue=function(t){t===void 0&&(t={});var e=t.noDefault,n=this.get("value");return this.hasValue()||e?n:this.getDefaultValue()},r.prototype.hasValue=function(t){t===void 0&&(t={});var e=t.noParent&&this.getParentTarget(),n=this.get("value");return!(0,j.isUndefined)(n)&&n!==""&&!e},r.prototype.hasValueParent=function(){return this.hasValue()&&!this.hasValue({noParent:!0})},r.prototype.getStyle=function(t){var e;t===void 0&&(t={});var n=this.getName();return(e={})[t.camelCase?(0,b.camelCase)(n):n]=this.__getFullValue(t),e},r.prototype.getDefaultValue=function(){var t=this.get("default");return"".concat((0,j.isUndefined)(t)?this.get("defaults"):t)},r.prototype.upValue=function(t,e){e===void 0&&(e={});var n=t===null||t===""?this.__getClearProps():this.__parseValue(t,e);return this._up(n,e)},r.prototype.isVisible=function(){return!!this.get("visible")},r.prototype.clear=function(t){return t===void 0&&(t={}),this._up(this.__getClearProps(),vo(vo({},t),{__clear:!0})),this},r.prototype.canClear=function(){var t=this.getParent();return t?t.__canClearProp(this):this.hasValue({noParent:!0})},r.prototype.getParent=function(){return this.__getParentProp()},r.prototype.isFull=function(){return!!this.get("full")},r.prototype.__parseValue=function(t,e){return this.parseValue(t,e)},r.prototype.__getClearProps=function(){return{value:"",important:!1}},r.prototype.setValue=function(t,e,n){e===void 0&&(e=!0),n===void 0&&(n={});var o=this.parseValue(t),l=!e;!l&&this.set({value:void 0},{avoidStore:l,silent:!0}),this.set(o,vo({avoidStore:l},n))},r.prototype.setValueFromInput=function(t,e,n){n===void 0&&(n={}),this.setValue(t,e,vo(vo({},n),{fromInput:1}))},r.prototype.parseValue=function(t,e){e===void 0&&(e={});var n={value:t},o="!important",l=this.get("functionName")||"";if((0,j.isString)(t)&&t.indexOf(o)!==-1&&(n.value=t.replace(o,"").trim(),n.important=!0),!l&&!e.complete)return n;var p=[],d="".concat(n.value).trim(),C=d.indexOf("(")+1,y=l||d.substring(0,C-1);if(y&&(n.functionName=y),!l||d.indexOf("".concat(l,"("))===0){var L=d.lastIndexOf(")");p.push(C),L>=0&&p.push(L),n.value=String.prototype.substring.apply(d,p)}if(e.numeric){var W=parseFloat(n.value);n.unit=n.value.replace(W,""),n.value=W}return n},r.prototype.__getFullValue=function(t){var e=(t===void 0?{}:t).withDefault;return!this.hasValue()&&e?this.getDefaultValue():this.getFullValue()},r.prototype.getFullValue=function(t,e){e===void 0&&(e={});var n=this.get("functionName"),o=this.getDefaultValue(),l=(0,j.isUndefined)(t)?this.get("value"):t,p=this.hasValue();if(l&&o&&l===o)return o;if(n&&p){var d=n==="url"?"'".concat(l.replace(/'|"/g,""),"'"):l;l="".concat(n,"(").concat(d,")")}return p&&this.get("important")&&!e.skipImportant&&(l="".concat(l," !important")),l||""},r.prototype.__setParentTarget=function(t){this.up({parentTarget:t})},r.prototype.getParentTarget=function(){return this.get("parentTarget")||null},r.prototype.__parseFn=function(t){t===void 0&&(t="");var e=t.indexOf("(")+1,n=t.lastIndexOf(")");return{name:t.substring(0,e-1).trim(),value:String.prototype.substring.apply(t,[e,n>=0?n:void 0]).trim()}},r.prototype.__checkVisibility=function(t){var e=t.target,n=t.component,o=t.sector,l=t.sectors,p=n||e;if(!p)return!1;var d=this.getId(),C=this.getName(),y=this.attributes,L=y.requires,W=y.requiresParent,nt=y.toRequire,ht=y.isVisible,yt=p.get("unstylable"),xt=p.get("stylable-require"),Tt=p.get("stylable");if((0,j.isFunction)(ht))return!!ht({property:this,sector:o,target:e,component:n});if((0,j.isArray)(Tt)&&(Tt=Tt.indexOf(C)>=0),(0,j.isArray)(yt)&&(Tt=yt.indexOf(C)<0),nt&&(Tt=!e||xt&&(xt.indexOf(d)>=0||xt.indexOf(C)>=0)),l&&L){var $t=(0,j.keys)(L);l.forEach((function(we){we.getProperties().forEach((function(Re){if((0,j.includes)($t,Re.id)){var Je=L[Re.id];Tt=Tt&&(0,j.includes)(Je,Re.get("value"))}}))}))}if(W){var re=n&&n.parent(),ge=re&&re.getEl();if(ge){var _e=(0,b.hasWin)()?window.getComputedStyle(ge):{};(0,j.each)(W,(function(we,Re){Tt=Tt&&_e[Re]&&(0,j.includes)(we,_e[Re])}))}else Tt=!1}return!!Tt},r})(_.Kx);const Jn=v1;v1.callParentInit=function(a,r,t,e){e===void 0&&(e={}),a.prototype.initialize.apply(r,[t,vo(vo({},e),{skipInit:1})])},v1.callInit=function(a,r,t){t===void 0&&(t={}),!t.skipInit&&a.init(r,t)};var sv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Hl=function(){return Hl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0},r.prototype.getLayer=function(t){return t===void 0&&(t=0),this.layers.at(t)||void 0},r.prototype.getSelectedLayer=function(){var t=this.get("selectedLayer");return t&&t.getIndex()>=0?t:void 0},r.prototype.selectLayer=function(t){return this.set("selectedLayer",t,{__select:!0})},r.prototype.selectLayerAt=function(t){t===void 0&&(t=0);var e=this.getLayer(t);return e&&this.selectLayer(e)},r.prototype.moveLayer=function(t,e){e===void 0&&(e=0);var n=this.layers,o=t?t.getIndex():-1;o>=0&&(0,j.isNumber)(e)&&e>=0&&e
`)},r.prototype.templateLabel=function(t){var e=this.pfx,n=this.em,o=t.parent,l=t.attributes,p=l.icon,d=p===void 0?"":p,C=l.info,y=C===void 0?"":C,L=n?.getConfig().icons,W=L?.close||"";return` `).concat(t.getLabel(),` `).concat(o?"":'"),` `)},r.prototype.templateInput=function(t){return`
`)},r.prototype.remove=function(){var t=this;return _.Ss.prototype.remove.apply(this,arguments),["em","input","$input","view"].forEach((function(e){return t[e]=null})),this.__destroyFn(this._getClbOpts()),this},r.prototype.updateStatus=function(){var t,e=this,n=e.model,o=e.pfx,l=e.ppfx,p=e.config,d="".concat(l,"four-color"),C="".concat(l,"color-warn"),y=this.$el.children(".".concat(o,"label")),L=this.getClearEl(),W=L?L.style:{};y.removeClass("".concat(d," ").concat(C)),W.display="none",n.hasValue({noParent:!0})&&p.highlightChanged?(y.addClass(d),p.clearProperties&&(W.display="")):n.hasValue()&&p.highlightComputed&&y.addClass(C),(t=this.parent)===null||t===void 0||t.updateStatus()},r.prototype.clear=function(t){t&&t.stopPropagation(),this.model.clear()},r.prototype.getClearEl=function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(y1,"]"))),this.clearEl},r.prototype.inputValueChanged=function(t){t&&t.stopPropagation(),this.emit||this.model.upValue(t.target.value)},r.prototype.onValueChange=function(t,e,n){n===void 0&&(n={}),this.setValue(this.model.getFullValue(void 0,{skipImportant:!0})),this.updateStatus()},r.prototype.setValue=function(t){var e=this.model,n=(0,j.isUndefined)(t)||t===""?e.getDefaultValue():t;if(this.update)return this.__update(n);this.__setValueInput(n)},r.prototype.__setValueInput=function(t){var e=this.getInputEl();e&&(e.value=t)},r.prototype.getInputEl=function(){return this.input||(this.input=this.el.querySelector("input")),this.input},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.clearCached=function(){delete this.clearEl,delete this.input,delete this.$input},r.prototype.__unset=function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},r.prototype.__update=function(t){var e=this.update&&this.update.bind(this);e&&e(Op(Op({},this._getClbOpts()),{value:t}))},r.prototype.__change=function(){for(var t=[],e=0;e `)},r.prototype.remove=function(){var t;return(t=this.props)===null||t===void 0||t.remove(),ca.prototype.remove.apply(this,arguments),this},r.prototype.onValueChange=function(){},r.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.get("properties");if(n.length&&!this.props){var o=e.isDetached(),l=new b1({config:Sp(Sp({},this.config),{highlightComputed:o,highlightChanged:o}),collection:n,parent:this});l.render(),this.$el.find("#".concat(t,"input-holder")).append(l.el),this.props=l}},r.prototype.clearCached=function(){ca.prototype.clearCached.apply(this,arguments),delete this.props},r})(ca);const Rc=Cv;var wv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ev=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return wv(r,a),r.prototype.events=function(){return{click:"select","click [data-close-layer]":"removeItem","mousedown [data-move-layer]":"initSorter","touchstart [data-move-layer]":"initSorter"}},r.prototype.template=function(){var t=this,e=t.pfx,n=t.ppfx,o=t.em,l=o?.getConfig().icons,p=l?.close||"",d=l?.move||"";return`
`).concat(d,`
`).concat(p,`
`)},r.prototype.initialize=function(t){t===void 0&&(t={});var e=this.model,n=t.config||{};this.em=n.em,this.config=n,this.sorter=t.sorter,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.propertyView=t.propertyView;var o=this.propertyView.model;this.listenTo(e,"destroy remove",this.remove),this.listenTo(e,"change:values",this.updateLabel),this.listenTo(o,"change:selectedLayer",this.updateVisibility),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data("model",e)},r.prototype.initSorter=function(){var t;(t=this.sorter)===null||t===void 0||t.startSort([{element:this.el}])},r.prototype.removeItem=function(t){t&&t.stopPropagation(),this.model.remove()},r.prototype.select=function(){this.model.select()},r.prototype.getPropertiesWrapper=function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl},r.prototype.getPreviewEl=function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl},r.prototype.getLabelEl=function(){return this.labelEl||(this.labelEl=this.el.querySelector("[data-label]")),this.labelEl},r.prototype.updateLabel=function(){var t=this.model,e=t.getLabel();if(this.getLabelEl().innerHTML=e,t.hasPreview()){var n=this.getPreviewEl(),o=t.getStylePreview({number:{min:-3,max:3}}),l=(0,j.keys)(o).map((function(p){return"".concat(p,":").concat(o[p])})).join(";");n.setAttribute("style",l)}},r.prototype.updateVisibility=function(){var t,e=this,n=e.pfx,o=e.model,l=e.propertyView,p=this.getPropertiesWrapper(),d=o.isSelected();p.style.display=d?"":"none",this.$el[d?"addClass":"removeClass"]("".concat(n,"active")),d&&p.appendChild((t=l.props)===null||t===void 0?void 0:t.el)},r.prototype.render=function(){var t=this,e=t.el,n=t.pfx,o=t.model;return e.innerHTML=this.template(),e.className="".concat(n,"layer"),o.hasPreview()&&(e.querySelector("[data-preview-box]").style.display=""),this.updateLabel(),this.updateVisibility(),this},r})(_.Ss);const Ov=Ev;var Sv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),xv=(function(a){function r(t){var e=a.call(this,t)||this,n=e.collection,o=t.config||{},l=o.em,p=o.stylePrefix||"",d=o.pStylePrefix||"";e.config=o,e.pfx=p,e.ppfx=d,e.propertyView=t.propertyView,e.className="".concat(p,"layers ").concat(d,"field"),e.listenTo(n,"add",e.addTo),e.listenTo(n,"reset",e.reset),e.items=[];var C=e.createPlaceholder(o.pStylePrefix);e.$el.append(C);var y=l?.Utils;return e.sorter=y?new y.StyleManagerSorter({em:l,containerContext:{container:e.el,containerSel:".".concat(p,"layers"),itemSel:".".concat(p,"layer"),pfx:o.pStylePrefix,document,placeholderElement:C},dragBehavior:{dragDirection:uo.A.Vertical,nested:!1}}):void 0,n.view=e,e.$el.data("model",n),e.$el.data("collection",n),e}return Sv(r,a),r.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},r.prototype.addToCollection=function(t,e,n){var o=e||null,l=this,p=l.propertyView,d=l.config,C=l.sorter,y=l.$el,L=new Ov({model:t,config:d,sorter:C,propertyView:p}),W=L.render().el;if(this.items.push(L),o)o.appendChild(W);else if(n!==void 0){var nt="before";y.children().length===n&&(n--,nt="after"),n<0?y.append(W):y.children().eq(n)[nt](W)}else y.append(W);return W},r.prototype.reset=function(t,e){this.clearItems(),this.render()},r.prototype.remove=function(){return this.clearItems(),_.Ss.prototype.remove.apply(this,arguments),this},r.prototype.clearItems=function(){this.items.forEach((function(t){return t.remove()})),this.items=[]},r.prototype.render=function(){var t=this,e=this.$el,n=document.createDocumentFragment();return e.empty(),this.collection.forEach((function(o){return t.addToCollection(o,n)})),e.append(n),e.attr("class",this.className),this},r.prototype.createPlaceholder=function(t){var e=document.createElement("div"),n=document.createElement("div");return this.el.parentNode,e.className=t+"placeholder",e.style.display="none",e.style.pointerEvents="none",n.className=t+"placeholder-int",e.appendChild(n),e},r})(_.Ss);const Av=xv;var kv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Vl=function(){return Vl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
`)},r.prototype.init=function(){var t=this.model;this.listenTo(t.layers,"change reset",this.updateStatus),this.listenTo(t,"change:isEmptyValue",this.updateStatus)},r.prototype.addLayer=function(){this.model.addLayer({},{at:0})},r.prototype.setValue=function(){},r.prototype.remove=function(){var t;return(t=this.layersView)===null||t===void 0||t.remove(),Rc.prototype.remove.apply(this,arguments),this},r.prototype.clearCached=function(){Rc.prototype.clearCached.apply(this,arguments),delete this.layersView},r.prototype.onRender=function(){var t=this,e=t.model,n=t.el,o=t.config,l=e.get("properties");if(l.length&&!this.props){var p=new b1({config:Vl(Vl({},o),{highlightComputed:!1,highlightChanged:!1}),collection:l,parent:this});p.render();var d=new Av({collection:e.layers,config:o,propertyView:this});d.render(),n.querySelector("[data-layers-wrapper]").appendChild(d.el),this.props=p,this.layersView=d}},r})(Rc);const Nv=Pv;var Mv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),xp=function(){return xp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
').concat(l,`
`)},r.prototype.__setValueInput=function(t){var e=this.model,n=this.el,o=e.getDefaultValue(),l=n.querySelector("[data-preview-box]"),p=n.querySelector("[data-preview]");l.style.display=t&&t!==o?"":"none",p.style.backgroundImage=t||e.getDefaultValue()},r.prototype.openAssetManager=function(){var t,e=this,n=(t=this.em)===null||t===void 0?void 0:t.Assets;n?.open({select:function(o,l){var p=(0,j.isString)(o)?o:o.get("src");e.model.upValue(p,{partial:!l}),l&&n.close()},types:["image"],accept:"image/*"})},r})(ca);const Iv=Lv;var Dv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),jv=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Dv(r,a),r.prototype.templateInput=function(t){return""},r.prototype.init=function(){var t=this.model;this.listenTo(t,"change:unit",this.onValueChange),this.listenTo(t,"change:units",this.render)},r.prototype.setValue=function(t){},r.prototype.onRender=function(){var t=this,e=t.ppfx,n=t.model,o=t.el;if(!this.inputInst){var l=n.input;l.ppfx=e,l.render(),o.querySelector(".".concat(e,"fields")).appendChild(l.el),this.input=l.inputEl.get(0),this.inputInst=l}},r.prototype.clearCached=function(){ca.prototype.clearCached.apply(this,arguments),this.inputInst=null},r})(ca);const ua=jv;var Rv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Hv=(function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Rv(r,a),r.prototype.setValue=function(t){var e;(e=this.inputInst)===null||e===void 0||e.setValue(t,{fromTarget:1,def:this.model.getDefaultValue()})},r.prototype.remove=function(){var t=this;ua.prototype.remove.apply(this,arguments);var e=this.inputInst;return e&&e.remove&&e.remove(),["inputInst","$color"].forEach((function(n){return t[n]=null})),this},r.prototype.__handleChange=function(t,e){this.model.upValue(t,{partial:e})},r.prototype.onRender=function(){var t;if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var e=this,n=e.ppfx,o=e.model,l=e.em,p=e.el,d=new Q1({target:l,model:o,ppfx:n,onChange:this.__handleChange}).render();p.querySelector(".".concat(n,"fields")).appendChild(d.el),this.input=(t=d.inputEl)===null||t===void 0?void 0:t.get(0),this.inputInst=d}},r})(ua);const Fv=Hv;var Vv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ap=function(){return Ap=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
`)},r.prototype.updateOptions=function(){delete this.input,this.onRender()},r.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.getOptions();if(!this.input){var o=[];n.forEach((function(p){var d=e.getOptionId(p),C=e.getOptionLabel(d),y=p.style?p.style.replace(/"/g,"""):"",L=y?'style="'.concat(y,'"'):"",W=d.replace(/"/g,""");o.push('"))}));var l=this.el.querySelector("#".concat(t,"input-holder"));l.innerHTML=""),this.input=l.firstChild}},r.prototype.__setValueInput=function(t){var e=this.model,n=this.getInputEl(),o=e.getOptions()[0],l=o?e.getOptionId(o):"";n&&(n.value=t||l)},r})(ca);var zv=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),kp=function(){return kp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t')},r.prototype.onRender=function(){var t=this.pfx,e=this.ppfx,n=this.model,o="".concat(e,"radio-item-label"),l=n.getName(),p=n.getOptions(),d="".concat(t,"radio ").concat(t,"radio-").concat(l),C=n.cid;if(!this.input){var y=[];p.forEach((function(W){var nt=W.className?"".concat(W.className," ").concat(t,"icon ").concat(o):"",ht=n.getOptionId(W),yt="".concat(l,"-").concat(ht,"-").concat(C),xt=nt?"":n.getOptionLabel(ht),Tt=W.title?'title="'.concat(W.title,'"'):"",$t=n.getValue()===ht?"checked":"";y.push(`
`))}));var L=this.el.querySelector(".".concat(e,"field"));L.innerHTML='
').concat(y.join(""),"
"),this.input=L.firstChild}},r.prototype.__setValueInput=function(t){var e,n=this.model,o=t||n.getDefaultValue(),l=(e=this.getInputEl())===null||e===void 0?void 0:e.querySelector('[value="'.concat(o,'"]'));l&&(l.checked=!0)},r})(ih);const Kv=qv;var $v=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ss=function(){return Ss=Object.assign||function(a){for(var r,t=1,e=arguments.length;t `)},r.prototype.getSliderEl=function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider},r.prototype.inputValueChanged=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value)},r.prototype.inputValueChangedSoft=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value,{partial:!0})},r.prototype.setValue=function(t){var e=this.model,n=e.parseValue(t);this.getSliderEl().value=t===""?e.getDefaultValue():parseFloat(n.value),ua.prototype.setValue.apply(this,arguments)},r.prototype.onRender=function(){ua.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")},r.prototype.clearCached=function(){ua.prototype.clearCached.apply(this,arguments),delete this.slider},r})(ua),T1=_.pM.extend(Tf).extend({extendViewApi:1,init:function(){var a=this.opts,r=this.em,t=a.module||r?.get("StyleManager");t&&(t.__listenAdd(this,t.events.propertyAdd),t.__listenRemove(this,t.events.propertyRemove))},types:[{id:"stack",model:hv,view:Nv,isType:function(a){if(a&&a.type=="stack")return a}},{id:"composite",model:Fl,view:Rc,isType:function(a){if(a&&a.type=="composite")return a}},{id:"file",model:Jn,view:Iv,isType:function(a){if(a&&a.type=="file")return a}},{id:"color",model:Jn,view:Fv,isType:function(a){if(a&&a.type=="color")return a}},{id:"select",model:_1,view:ih,isType:function(a){if(a&&a.type=="select")return a}},{id:"radio",model:Wv,view:Kv,isType:function(a){if(a&&a.type=="radio")return a}},{id:"slider",model:Zv,view:Jv,isType:function(a){if(a&&a.type=="slider")return a}},{id:"integer",model:Pp,view:ua,isType:function(a){if(a&&a.type=="integer")return a}},{id:"number",model:Pp,view:ua,isType:function(a){if(a&&a.type=="number")return a}},{id:"base",model:Jn,view:ca,isType:function(a){return a.type="base",a}}]});var ty=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Lp=function(){return Lp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t
$',`
',`
`],[`
$',`
',`
`])),d,d,p,d,o)},r.prototype.events=function(){return{"click [data-sector-title]":"toggle"}},r.prototype.updateOpen=function(){var t=this,e=t.$el,n=t.model,o=t.pfx,l=n.isOpen();e[l?"addClass":"removeClass"]("".concat(o,"open")),this.getPropertiesEl().style.display=l?"":"none"},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.getPropertiesEl=function(){var t=this.$el,e=this.pfx;return t.find(".".concat(e,"properties")).get(0)},r.prototype.toggle=function(){var t=this.model;t.setOpen(!t.get("open"))},r.prototype.renderProperties=function(){var t=this.model,e=this.config,n=t.get("properties");if(n){var o=new b1({collection:n,config:e});this.$el.append(o.render().el)}},r.prototype.render=function(){var t=this,e=t.pfx,n=t.model,o=t.$el,l=n.getId(),p=n.getName();return o.html(this.template({pfx:e,label:p})),this.renderProperties(),o.attr("class","".concat(e,"sector ").concat(e,"sector__").concat(l," no-select")),this.updateOpen(),this},r})(_.Ss);const dy=py;var sh,fy=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),hy=(function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.module,o=t.config,l=e.collection;return e.pfx=o?.stylePrefix||"",e.ppfx=o?.pStylePrefix||"",e.config=o,e.module=n,e.listenTo(l,"add",e.addTo),e.listenTo(l,"reset",e.render),e}return fy(r,a),r.prototype.remove=function(){var t=this;return _.Ss.prototype.remove.apply(this,arguments),["config","module","em"].forEach((function(e){return t[e]={}})),this},r.prototype.addTo=function(t,e,n){n===void 0&&(n={}),this.addToCollection(t,null,n)},r.prototype.addToCollection=function(t,e,n){n===void 0&&(n={});var o=this.config,l=this.el,p=e||l,d=new dy({model:t,config:o}).render().el;return(0,ft.Sc)(p,d,n.at),d},r.prototype.render=function(){var t=this,e=this,n=e.$el,o=e.pfx,l=e.ppfx;n.empty();var p=document.createDocumentFragment();return this.collection.each((function(d){return t.addToCollection(d,p)})),n.append(p),n.addClass("".concat(o,"sectors ").concat(l,"one-bg ").concat(l,"two-color")),this},r})(_.Ss);const gy=hy;var my=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),za=function(){return za=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0}))})):[]},re=function(_e){return _e?y.getRules().filter((function(we){return we.selectorsToString()===_e})):[]};W?(ht=y.getRules("#".concat(W.getId())),yt=re(W.get("tagName")),Tt=(C?$t(C.getSelectors().getFullName(nt)):[]).concat(yt).concat(ht)):(ht=C?y.getRules("#".concat(C.getId())):[],yt=re(C?.get("tagName")||""),xt=$t((C?.getSelectors().getFullName(nt)||[]).filter((function(_e){return t.getSelectors().getFullName(nt).findIndex((function(we){return we===_e}))===-1})).concat(t.getSelectors().getFullName(nt))),Tt=yt.concat(ht).concat(xt));var ge=Tt.filter((function(_e){return(0,j.isUndefined)(o)?1:_e.get("state")===o})).sort(L.sortRules).reverse();d=ge.slice(ge.indexOf(t)+1)}return d},r.prototype.addType=function(t,e){this.properties.addType(t,e)},r.prototype.getType=function(t){return this.properties.getType(t)},r.prototype.getTypes=function(){return this.properties.getTypes()},r.prototype.createType=function(t,e){var n=e===void 0?{}:e,o=n.model,l=o===void 0?{}:o,p=n.view,d=p===void 0?{}:p,C=this.config,y=this.getType(t);if(y)return new y.view(za({model:new y.model(l),config:C},d))},r.prototype.render=function(){var t=this,e=t.config,n=t.em,o=t.SectView,l=o&&o.el;return this.SectView=new gy({el:l,em:n,config:e,module:this,collection:this.sectors}),this.SectView.render().el},r.prototype._logNoSector=function(t){var e=this.em;e&&e.logWarning("'".concat(t,"' sector not found"))},r.prototype.__emitCmpStyleUpdate=function(t,e){e===void 0&&(e={});var n=this.em;if(!t.__p){var o=this.getSelectedAll(),l=e.components||n.getSelectedAll(),p=Array.isArray(l)?l:[l],d=za({},t);delete d.__p,p.forEach((function(C){return!o.includes(C)&&C.__onStyleChange(d)}))}},r.prototype.__upProps=function(t){var e=this;t===void 0&&(t={});var n=this.getSelected();if(n){var o=this.sectors,l=this.model.get("component"),p=this.getSelectedParents(),d=n.getStyle(),C=p.map((function(y){return{target:y,style:y.getStyle()}}));o.map((function(y){y.getProperties().map((function(L){e.__upProp(L,d,C,t)}))})),o.forEach((function(y){var L=y.getProperties();L.forEach((function(nt){var ht=nt.__checkVisibility({target:n,sector:y,component:l,sectors:o.models});nt.set("visible",ht)}));var W=L.some((function(nt){return nt.isVisible()}));y.set("visible",W)}))}},r.prototype.__upProp=function(t,e,n,o){var l=this,p=t.getName(),d=e[p],C=ph(d),y=t.getType()==="stack",L=t.getType()==="composite",W=za(za({},o),{__up:!0}),nt=!L&&!y,ht=t,yt=t,xt=y?ht.__getLayersFromStyle(e):[],Tt=L?yt.__getPropsFromStyle(e):{},$t=C?d:null,re=null;if(y&&xt===null||L&&Tt===null){var ge=y?"__getLayersFromStyle":"__getPropsFromStyle";if(we=n.filter((function(un){return ht[ge](un.style)!==null}))[0]){$t=we.style[p],re=we.target;var _e=ht[ge](we.style);y?xt=_e:Tt=_e}}else if(!C){var we;$t=null,(we=n.filter((function(un){return ph(un.style[p])}))[0])&&($t=we.style[p],re=we.target)}if(t.__setParentTarget(re),nt&&t.__getFullValue()!==$t&&t.upValue($t,W),y&&ht.__setLayers(xt||[],{isEmptyValue:ht.isEmptyValueStyle(e)}),L){var Re=yt.getProperties();if(yt.isDetached()){var Je=yt.__getPropsFromStyle(e,{byName:!0})||{},Tn=n.map((function(un){return za(za({},un),{style:yt.__getPropsFromStyle(un.style,{byName:!0})||{}})}));Re.map((function(un){return l.__upProp(un,Je,Tn,o)}))}else yt.__setProperties(Tt||{},W),yt.getProperties().map((function(un){return un.__setParentTarget(re)}))}},r.prototype.destroy=function(){var t;[this.properties,this.sectors].forEach((function(e){e.reset(),e.stopListening()})),(t=this.SectView)===null||t===void 0||t.remove(),this.model.stopListening(),this.upAll.cancel()},r})(I);const Sy=Oy;var xy=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Dp=function(){return Dp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]=l.getStepsBeforeSave()&&this.store().catch((function(d){return o.logError(d)}))},r.prototype.loadModule=function(t){var e=new t(this);return this.set(e.name,e),e.onLoad&&this.toLoad.push(e),this.modules.push(e),e},r.prototype.loadStorableModule=function(t){var e=this.loadModule(t);return this.storables.push(e),e},r.prototype.init=function(t,e){e===void 0&&(e={}),this.destroyed&&(this.initialize(e),this.destroyed=!1),this.set("Editor",t)},r.prototype.getEditor=function(){return this.get("Editor")},r.prototype.handleUpdates=function(t,e,n){var o=this;n===void 0&&(n={}),this.__skip||n.temporary||n.noCount||n.avoidStore||n.partial||!this.get("ready")||(this.timedInterval&&clearTimeout(this.timedInterval),this.timedInterval=setTimeout((function(){var l=o.getDirtyCount()||0,p=(n.unset,My(n,["unset"]));o.set("changesCount",l+1,p)}),0))},r.prototype.changesUp=function(t){this.handleUpdates(0,0,t)},r.prototype.componentHovered=function(t,e,n){var o=this.previous("componentHovered");o&&this.trigger("component:unhovered",o,n),e&&this.trigger("component:hovered",e,n)},r.prototype.getSelected=function(){return this.selected.lastComponent()},r.prototype.getSelectedAll=function(){return this.selected.allComponents()},r.prototype.setSelected=function(t,e){var n=this;e===void 0&&(e={});var o=e.event,l=o&&(o.ctrlKey||o.metaKey),p=(o||{}).shiftKey,d=((0,j.isArray)(t)?t:[t]).map((function(W){var nt,ht;return((ht=(nt=W?.delegate)===null||nt===void 0?void 0:nt.select)===null||ht===void 0?void 0:ht.call(nt,W))||W})).filter(Boolean),C=this.getSelectedAll(),y=this.getConfig().multipleSelection,L=(0,j.isArray)(t);!L&&t||this.removeSelected(C.filter((function(W){return!(0,j.contains)(d,W)}))),d.forEach((function(W){if(W&&(n.trigger(Kt.I.selectBefore,W,e),!W.get("selectable")||e.abort)){if(!e.useValid)return;for(var nt=W.parent();nt&&!nt.get("selectable");)nt=nt.parent();W=nt}if(l&&y)return n.toggleSelected(W);if(p&&y){if(n.isEditing())return;n.clearSelection(n.Canvas.getWindow());var ht,yt,xt=W.collection,Tt=W.index();if(n.getSelectedAll().forEach((function($t){var re=$t.collection,ge=$t.index();re===xt&&(geTt&&(yt=(0,j.isUndefined)(yt)?ge:Math.min(yt,ge)))})),!(0,j.isUndefined)(ht))for(;ht!==Tt;)n.addSelected(xt.at(ht),e),ht++;if(!(0,j.isUndefined)(yt))for(;yt!==Tt;)n.addSelected(xt.at(yt),e),yt--;return n.addSelected(W,e)}!L&&n.removeSelected(C.filter((function($t){return $t!==W}))),n.addSelected(W,e)}))},r.prototype.addSelected=function(t,e){var n=this;e===void 0&&(e={}),((0,j.isArray)(t)?t:[t]).forEach((function(o){var l=n.selected;o&&o.get("selectable")&&!o.parents().some((function(p){return l.hasComponent(p)}))&&(e.forceChange&&n.removeSelected(o,e),l.allComponents().filter((function(p){return(0,j.contains)(p.parents(),o)})).forEach((function(p){return n.removeSelected(p,e)})),l.addComponent(o,e),n.trigger(Kt.I.select,o,e),n.Canvas.addSpot({type:Gt.F.Select,component:o}))}))},r.prototype.removeSelected=function(t,e){var n=this;e===void 0&&(e={}),this.selected.removeComponent(t,e),((0,j.isArray)(t)?t:[t]).forEach((function(o){return n.Canvas.removeSpots({type:Gt.F.Select,component:o})}))},r.prototype.toggleSelected=function(t,e){var n=this;e===void 0&&(e={}),((0,j.isArray)(t)?t:[t]).forEach((function(o){n.selected.hasComponent(o)?n.removeSelected(o,e):n.addSelected(o,e)}))},r.prototype.setHovered=function(t,e){var n=this;e===void 0&&(e={});var o=function(d,C){var y=n,L=y.config,W=y.Canvas,nt=n.getHovered(),ht=n.getSelectedAll(),yt=Gt.F.Hover,xt=Gt.F.Spacing;n.set("componentHovered",d||null,C),nt&&(W.removeSpots({type:yt,component:nt}),W.removeSpots({type:xt,component:nt})),d&&(W.addSpot({type:yt,component:d}),ht.includes(d)&&!L.showOffsetsSelected||W.addSpot({type:xt,component:d}))};if(!t)return o();var l="component:hover";if(e.forceChange&&o(),this.trigger("".concat(l,":before"),t,e),!t.get("hoverable")){if(!e.useValid||e.abort)return;for(var p=t.parent();p&&!p.get("hoverable");)p=p.parent();t=p}e.abort||(o(t,e),this.trigger(l,t,e))},r.prototype.getHovered=function(){return this.get("componentHovered")},r.prototype.setComponents=function(t,e){return e===void 0&&(e={}),this.Components.setComponents(t,e)},r.prototype.getComponents=function(){var t=this.Components,e=this.CodeManager;if(t&&e){var n=t.getComponents();return e.getCode(n,"json")}},r.prototype.setStyle=function(t,e){e===void 0&&(e={});var n=this.Css;return n.clear(e),n.getAll().add(t,e),this},r.prototype.addStyle=function(t,e){e===void 0&&(e={});var n=this.getStyle().add(t,e);return(0,j.isArray)(n)?n:[n]},r.prototype.getStyle=function(){return this.Css.getAll()},r.prototype.setState=function(t){return this.set("state",t),this},r.prototype.getState=function(){return this.get("state")||""},r.prototype.getHtml=function(t){t===void 0&&(t={});var e=this.config,n=e.optsHtml,o=e.jsInHtml?this.getJs(t):"",l=t.component||this.Components.getComponent(),p=l?this.CodeManager.getCode(l,"html",ro(ro({},n),t)):"";return p+=o?""):""},r.prototype.getCss=function(t){t===void 0&&(t={});var e=this.config,n=e.optsCss,o=t.avoidProtected,l=(0,j.isUndefined)(t.keepUnusedStyles)?e.keepUnusedStyles:t.keepUnusedStyles,p=this.Css,d=t.component||this.Components.getComponent(),C=o?"":e.protectedCss,y=d&&this.CodeManager.getCode(d,"css",ro(ro({cssc:p,keepUnusedStyles:l},n),t));return d?t.json?y:C+y:""},r.prototype.getJs=function(t){t===void 0&&(t={});var e=t.component||this.Components.getWrapper();return e?this.CodeManager.getCode(e,"js").trim():""},r.prototype.store=function(t){return O1(this,void 0,void 0,(function(){var e;return S1(this,(function(n){switch(n.label){case 0:return e=this.storeData(),[4,this.Storage.store(e,t)];case 1:return n.sent(),this.clearDirtyCount(),[2,e]}}))}))},r.prototype.load=function(t){return O1(this,arguments,void 0,(function(e,n){var o;return n===void 0&&(n={}),S1(this,(function(l){switch(l.label){case 0:return[4,this.Storage.load(e)];case 1:return o=l.sent(),this.loadData(o,n),[4,(0,b.wait)()];case 2:return l.sent(),n.clear&&(this.UndoManager.clear(),this.clearDirtyCount()),[2,o]}}))}))},r.prototype.storeData=function(){var t={},e=this.getEditing();e&&e.trigger("sync:content",{noCount:!0}),this.storables.forEach((function(o){t=ro(ro({},t),o.store(1))}));var n=JSON.parse(JSON.stringify(t));return this.trigger(Oo.projectGet,{project:n}),n},r.prototype.loadData=function(t,e){t===void 0&&(t={}),e===void 0&&(e={});var n=!1;return(0,b.isEmptyObj)(t)||(this.storables.forEach((function(o){return o.clear()})),this.storables.forEach((function(o){return o.load(t)})),n=!0),this.trigger(Oo.projectLoad,{project:t,loaded:n,initial:!!e.initial}),t},r.prototype.getDeviceModel=function(){var t=this.get("device");return this.Devices.get(t)},r.prototype.runDefault=function(t){t===void 0&&(t={});var e=this.Commands.get(this.config.defaultCommand);e&&!this.defaultRunning&&(e.stop(this,this,t),e.run(this,this,t),this.defaultRunning=!0)},r.prototype.stopDefault=function(t){t===void 0&&(t={});var e=this.Commands;if(e){var n=e.get(this.config.defaultCommand);n&&this.defaultRunning&&(n.stop(this,this,t),this.defaultRunning=!1)}},r.prototype.refreshCanvas=function(t){t===void 0&&(t={}),this.Canvas.refresh({spots:t.tools})},r.prototype.clearSelection=function(t){var e;(e=(t||window).getSelection())===null||e===void 0||e.removeAllRanges()},r.prototype.getCurrentMedia=function(){var t=this.config,e=this.getDeviceModel(),n=t.mediaCondition,o=t.devicePreviewMode,l=e&&e.get("widthMedia");return e&&l&&!o?"(".concat(n,": ").concat(l,")"):""},r.prototype.getWrapper=function(){return this.Components.getWrapper()},r.prototype.setCurrentFrame=function(t){return this.set("currentFrame",t)},r.prototype.getCurrentFrame=function(){return this.get("currentFrame")},r.prototype.getCurrentFrameModel=function(){var t;return(t=this.getCurrentFrame()||{})===null||t===void 0?void 0:t.model},r.prototype.getIcon=function(t){return(this.config.icons||{})[t]||""},r.prototype.getDirtyCount=function(){return this.get("changesCount")},r.prototype.clearDirtyCount=function(){return this.set({changesCount:0},{isClear:!0})},r.prototype.getZoomDecimal=function(){return this.Canvas.getZoomDecimal()},r.prototype.getZoomMultiplier=function(){return this.Canvas.getZoomMultiplier()},r.prototype.setDragMode=function(t){return this.set("dmode",t)},r.prototype.getDragMode=function(t){return t?.getDragMode()||this.get("dmode")||""},r.prototype.t=function(){for(var t=[],e=0;e0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1]0&&n[n.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!n||y[1]>n[0]&&y[1](()=>{var gr={1073:j=>{j.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},9125:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.groupSelectors=b.getDocumentRoot=void 0;var w=H(2515);b.getDocumentRoot=function(N){for(;N.parent;)N=N.parent;return N},b.groupSelectors=function(N){for(var A=[],E=[],v=0,_=N;v<_.length;v++){var m=_[v];m.some(w.isFilter)?A.push(m):E.push(m)}return[E,A]}},7248:function(j,b,H){"use strict";var w=this&&this.__assign||function(){return w=Object.assign||function(Q){for(var z,at=1,$=arguments.length;at<$;at++)for(var mt in z=arguments[at])Object.prototype.hasOwnProperty.call(z,mt)&&(Q[mt]=z[mt]);return Q},w.apply(this,arguments)},N=this&&this.__createBinding||(Object.create?function(Q,z,at,$){$===void 0&&($=at);var mt=Object.getOwnPropertyDescriptor(z,at);mt&&!("get"in mt?!z.__esModule:mt.writable||mt.configurable)||(mt={enumerable:!0,get:function(){return z[at]}}),Object.defineProperty(Q,$,mt)}:function(Q,z,at,$){$===void 0&&($=at),Q[$]=z[at]}),A=this&&this.__setModuleDefault||(Object.create?function(Q,z){Object.defineProperty(Q,"default",{enumerable:!0,value:z})}:function(Q,z){Q.default=z}),E=this&&this.__importStar||function(Q){if(Q&&Q.__esModule)return Q;var z={};if(Q!=null)for(var at in Q)at!=="default"&&Object.prototype.hasOwnProperty.call(Q,at)&&N(z,Q,at);return A(z,Q),z},v=this&&this.__spreadArray||function(Q,z,at){if(at||arguments.length===2)for(var $,mt=0,X=z.length;mt0&&Q.some((0,m._compileToken)(mt,at))||X.some((function(kt){return M(kt,Q,at).length>0}))}function D(Q,z,at){if(z.length===0)return[];var $,mt=(0,g.groupSelectors)(Q),X=mt[0],kt=mt[1];if(X.length){var vt=K(z,X,at);if(kt.length===0)return vt;vt.length&&($=new Set(vt))}for(var Ct=0;Ct0?[ut[ut.length-1]]:ut;case"nth":case"eq":return isFinite(oe)&&Math.abs(oe){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getLimit=b.isFilter=b.filterNames=void 0,b.filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]),b.isFilter=function H(w){return w.type==="pseudo"&&(!!b.filterNames.has(w.name)||!(w.name!=="not"||!Array.isArray(w.data))&&w.data.some((function(N){return N.some(H)})))},b.getLimit=function(H,w){var N=w!=null?parseInt(w,10):NaN;switch(H){case"first":return 1;case"nth":case"eq":return isFinite(N)?N>=0?N+1:1/0:0;case"lt":return isFinite(N)?N>=0?N:1/0:0;case"gt":return isFinite(N)?1/0:0;default:return 1/0}}},6451:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.toggleClass=b.removeClass=b.addClass=b.hasClass=b.removeAttr=b.val=b.data=b.prop=b.attr=void 0;var w=H(6634),N=H(5633),A=Object.prototype.hasOwnProperty,E=/\s+/,v="data-",_={null:null,true:!0,false:!1},m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,T=/^{[^]*}$|^\[[^]*]$/;function g(M,B,rt){var ot;if(M&&N.isTag(M))return(ot=M.attribs)!==null&&ot!==void 0||(M.attribs={}),B?A.call(M.attribs,B)?!rt&&m.test(B)?B:M.attribs[B]:M.name==="option"&&B==="value"?w.text(M.children):M.name!=="input"||M.attribs.type!=="radio"&&M.attribs.type!=="checkbox"||B!=="value"?void 0:"on":M.attribs}function S(M,B,rt){rt===null?I(M,B):M.attribs[B]=""+rt}function x(M,B,rt){if(M&&N.isTag(M))return B in M?M[B]:!rt&&m.test(B)?g(M,B,!1)!==void 0:g(M,B,rt)}function k(M,B,rt,ot){B in M?M[B]=rt:S(M,B,!ot&&m.test(B)?rt?"":null:""+rt)}function R(M,B,rt){var ot,dt=M;(ot=dt.data)!==null&&ot!==void 0||(dt.data={}),typeof B=="object"?Object.assign(dt.data,B):typeof B=="string"&&rt!==void 0&&(dt.data[B]=rt)}function h(M,B){var rt,ot,dt;B==null?ot=(rt=Object.keys(M.attribs).filter((function(Q){return Q.startsWith(v)}))).map((function(Q){return N.camelCase(Q.slice(v.length))})):(rt=[v+N.cssCase(B)],ot=[B]);for(var st=0;st1?this:g(this[0],M,this.options.xmlMode)},b.prop=function(M,B){var rt=this;if(typeof M=="string"&&B===void 0)switch(M){case"style":var ot=this.css(),dt=Object.keys(ot);return dt.forEach((function(Z,K){ot[K]=Z})),ot.length=dt.length,ot;case"tagName":case"nodeName":var st=this[0];return N.isTag(st)?st.name.toUpperCase():void 0;case"outerHTML":return this.clone().wrap("").parent().html();case"innerHTML":return this.html();default:return x(this[0],M,this.options.xmlMode)}if(typeof M=="object"||B!==void 0){if(typeof B=="function"){if(typeof M=="object")throw new Error("Bad combination of arguments.");return N.domEach(this,(function(Z,K){N.isTag(Z)&&k(Z,M,B.call(Z,K,x(Z,M,rt.options.xmlMode)),rt.options.xmlMode)}))}return N.domEach(this,(function(Z){N.isTag(Z)&&(typeof M=="object"?Object.keys(M).forEach((function(K){var Q=M[K];k(Z,K,Q,rt.options.xmlMode)})):k(Z,M,B,rt.options.xmlMode))}))}},b.data=function(M,B){var rt,ot=this[0];if(ot&&N.isTag(ot)){var dt=ot;return(rt=dt.data)!==null&&rt!==void 0||(dt.data={}),M?typeof M=="object"||B!==void 0?(N.domEach(this,(function(st){N.isTag(st)&&(typeof M=="object"?R(st,M):R(st,M,B))})),this):A.call(dt.data,M)?dt.data[M]:h(dt,M):h(dt)}},b.val=function(M){var B=arguments.length===0,rt=this[0];if(!rt||!N.isTag(rt))return B?void 0:this;switch(rt.name){case"textarea":return this.text(M);case"select":var ot=this.find("option:selected");if(!B){if(this.attr("multiple")==null&&typeof M=="object")return this;this.find("option").removeAttr("selected");for(var dt=typeof M!="object"?[M]:M,st=0;st-1;){var dt=ot+M.length;if((ot===0||E.test(rt[ot-1]))&&(dt===rt.length||E.test(rt[dt])))return!0}return!1}))},b.addClass=function M(B){if(typeof B=="function")return N.domEach(this,(function(at,$){if(N.isTag(at)){var mt=at.attribs.class||"";M.call([at],B.call(at,$,mt))}}));if(!B||typeof B!="string")return this;for(var rt=B.split(E),ot=this.length,dt=0;dt=0&&(Z.splice(z,1),K=!0,Q--)}K&&(st.attribs.class=Z.join(" "))}}))},b.toggleClass=function M(B,rt){if(typeof B=="function")return N.domEach(this,(function(mt,X){N.isTag(mt)&&M.call([mt],B.call(mt,X,mt.attribs.class||"",rt),rt)}));if(!B||typeof B!="string")return this;for(var ot=B.split(E),dt=ot.length,st=typeof rt=="boolean"?rt?1:-1:0,Z=this.length,K=0;K=0&&$<0?z.push(ot[at]):st<=0&&$>=0&&z.splice($,1)}Q.attribs.class=z.join(" ")}}return this}},9806:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.css=void 0;var w=H(5633);function N(E,v,_,m){if(typeof v=="string"){var T=A(E),g=typeof _=="function"?_.call(E,m,T[v]):_;g===""?delete T[v]:g!=null&&(T[v]=g),E.attribs.style=(S=T,Object.keys(S).reduce((function(x,k){return x+(x?" ":"")+k+": "+S[k]+";"}),""))}else typeof v=="object"&&Object.keys(v).forEach((function(x,k){N(E,x,v[x],k)}));var S}function A(E,v){if(E&&w.isTag(E)){var _=(function(T){return T=(T||"").trim(),T?T.split(";").reduce((function(g,S){var x=S.indexOf(":");return x<1||x===S.length-1||(g[S.slice(0,x).trim()]=S.slice(x+1).trim()),g}),{}):{}})(E.attribs.style);if(typeof v=="string")return _[v];if(Array.isArray(v)){var m={};return v.forEach((function(T){_[T]!=null&&(m[T]=_[T])})),m}return _}}b.css=function(E,v){return E!=null&&v!=null||typeof E=="object"&&!Array.isArray(E)?w.domEach(this,(function(_,m){w.isTag(_)&&N(_,E,v,m)})):A(this[0],E)}},3432:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.serializeArray=b.serialize=void 0;var w=H(5633),N="input,select,textarea,keygen",A=/%20/g,E=/\r?\n/g;b.serialize=function(){return this.serializeArray().map((function(v){return encodeURIComponent(v.name)+"="+encodeURIComponent(v.value)})).join("&").replace(A,"+")},b.serializeArray=function(){var v=this;return this.map((function(_,m){var T=v._make(m);return w.isTag(m)&&m.name==="form"?T.find(N).toArray():T.filter(N).toArray()})).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(_,m){var T,g=v._make(m),S=g.attr("name"),x=(T=g.val())!==null&&T!==void 0?T:"";return Array.isArray(x)?x.map((function(k){return{name:S,value:k.replace(E,`\r `)}})):{name:S,value:x.replace(E,`\r `)}})).toArray()}},848:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.clone=b.text=b.toString=b.html=b.empty=b.replaceWith=b.remove=b.insertBefore=b.before=b.insertAfter=b.after=b.wrapAll=b.unwrap=b.wrapInner=b.wrap=b.prepend=b.append=b.prependTo=b.appendTo=b._makeDomArray=void 0;var w=H(655),N=H(7915),A=H(7915),E=w.__importStar(H(5012)),v=H(6634),_=H(5633),m=H(3719);function T(x){return function(){for(var k=this,R=[],h=0;h-1&&(Z.children.splice(K,1),I===Z&&k>K&&B[0]--)}st.parent=I,st.prev&&(st.prev.next=(D=st.next)!==null&&D!==void 0?D:null),st.next&&(st.next.prev=(M=st.prev)!==null&&M!==void 0?M:null),st.prev=h[dt-1]||rt,st.next=h[dt+1]||ot}return rt&&(rt.next=h[0]),ot&&(ot.prev=h[h.length-1]),x.splice.apply(x,B)}function S(x){return function(k){for(var R=this.length-1,h=this.parents().last(),I=0;I{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.addBack=b.add=b.end=b.slice=b.index=b.toArray=b.get=b.eq=b.last=b.first=b.has=b.not=b.is=b.filterArray=b.filter=b.map=b.each=b.contents=b.children=b.siblings=b.prevUntil=b.prevAll=b.prev=b.nextUntil=b.nextAll=b.next=b.closest=b.parentsUntil=b.parents=b.parent=b.find=void 0;var w=H(655),N=H(7915),A=w.__importStar(H(7248)),E=H(5633),v=H(6634),_=H(3719),m=_.DomUtils.uniqueSort,T=/^\s*[~+]/;function g(D){return function(M){for(var B=[],rt=1;rt1&&st.length>1?B.reduce((function(Z,K){return K(Z)}),st):st)}}}b.find=function(D){var M;if(!D)return this._make([]);var B=this.toArray();if(typeof D!="string"){var rt=E.isCheerio(D)?D.toArray():[D];return this._make(rt.filter((function(st){return B.some((function(Z){return v.contains(Z,st)}))})))}var ot=T.test(D)?B:this.children().toArray(),dt={context:B,root:(M=this._root)===null||M===void 0?void 0:M[0],xmlMode:this.options.xmlMode};return this._make(A.select(D,ot,dt))};var S=g((function(D,M){for(var B,rt=[],ot=0;ot0})},b.first=function(){return this.length>1?this._make(this[0]):this},b.last=function(){return this.length>0?this._make(this[this.length-1]):this},b.eq=function(D){var M;return(D=+D)==0&&this.length<=1?this:(D<0&&(D=this.length+D),this._make((M=this[D])!==null&&M!==void 0?M:[]))},b.get=function(D){return D==null?this.toArray():this[D<0?this.length+D:D]},b.toArray=function(){return Array.prototype.slice.call(this)},b.index=function(D){var M,B;return D==null?(M=this.parent().children(),B=this[0]):typeof D=="string"?(M=this._make(D),B=this[0]):(M=this,B=E.isCheerio(D)?D[0]:D),Array.prototype.indexOf.call(M,B)},b.slice=function(D,M){return this._make(Array.prototype.slice.call(this,D,M))},b.end=function(){var D;return(D=this.prevObject)!==null&&D!==void 0?D:this._make([])},b.add=function(D,M){var B=this._make(D,M),rt=m(w.__spreadArray(w.__spreadArray([],this.get()),B.get()));return this._make(rt)},b.addBack=function(D){return this.prevObject?this.add(D?this.prevObject.filter(D):this.prevObject):this}},7911:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Cheerio=void 0;var w=H(655),N=w.__importDefault(H(5012)),A=w.__importDefault(H(2754)),E=H(5633),v=w.__importStar(H(6451)),_=w.__importStar(H(1042)),m=w.__importStar(H(848)),T=w.__importStar(H(9806)),g=w.__importStar(H(3432)),S=(function(){function x(k,R,h,I){var D=this;if(I===void 0&&(I=A.default),this.length=0,this.options=I,!k)return this;if(h&&(typeof h=="string"&&(h=N.default(h,this.options,!1)),this._root=new this.constructor(h,null,null,this.options),this._root._root=this._root),E.isCheerio(k))return k;var M,B=typeof k=="string"&&E.isHtml(k)?N.default(k,this.options,!1).children:(M=k).name||M.type==="root"||M.type==="text"||M.type==="comment"?[k]:Array.isArray(k)?k:null;if(B)return B.forEach((function(dt,st){D[st]=dt})),this.length=B.length,this;var rt=k,ot=R?typeof R=="string"?E.isHtml(R)?this._make(N.default(R,this.options,!1)):(rt=R+" "+rt,this._root):E.isCheerio(R)?R:this._make(R):this._root;return ot?ot.find(rt):this}return x.prototype._make=function(k,R){var h=new this.constructor(k,R,this._root,this.options);return h.prevObject=this,h},x})();b.Cheerio=S,S.prototype.cheerio="[cheerio object]",S.prototype.splice=Array.prototype.splice,S.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(S.prototype,v,_,m,T,g)},7503:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.root=b.parseHTML=b.merge=b.contains=void 0;var w=H(655);w.__exportStar(H(8701),b),w.__exportStar(H(3434),b);var N=H(3434);b.default=N.load([]);var A=w.__importStar(H(6634));b.contains=A.contains,b.merge=A.merge,b.parseHTML=A.parseHTML,b.root=A.root},3434:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.load=void 0;var w=H(655),N=w.__importStar(H(2754)),A=w.__importStar(H(6634)),E=H(7911),v=w.__importDefault(H(5012));b.load=function _(m,T,g){if(g===void 0&&(g=!0),m==null)throw new Error("cheerio.load() expects a string");var S=w.__assign(w.__assign({},N.default),N.flatten(T)),x=v.default(m,S,g),k=(function(h){function I(){return h!==null&&h.apply(this,arguments)||this}return w.__extends(I,h),I})(E.Cheerio);function R(h,I,D,M){return D===void 0&&(D=x),new k(h,I,D,w.__assign(w.__assign({},S),N.flatten(M)))}return Object.assign(R,A,{load:_,_root:x,_options:S,fn:k.prototype,prototype:k.prototype}),R}},2754:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.flatten=void 0;var w=H(655);b.default={xml:!1,decodeEntities:!0};var N={_useHtmlParser2:!0,xmlMode:!0};b.flatten=function(A){return A?.xml?typeof A.xml=="boolean"?N:w.__assign(w.__assign({},N),A.xml):A??void 0}},5012:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.update=void 0;var w=H(3719),N=H(8585),A=H(7957),E=H(7915);function v(_,m){var T=Array.isArray(_)?_:[_];m?m.children=T:m=null;for(var g=0;g{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.render=b.parse=void 0;var w=H(655),N=H(7915),A=H(2394),E=w.__importDefault(H(1906));b.parse=function(v,_,m){var T={scriptingEnabled:typeof _.scriptingEnabled!="boolean"||_.scriptingEnabled,treeAdapter:E.default,sourceCodeLocationInfo:_.sourceCodeLocationInfo},g=_.context;return m?A.parse(v,T):A.parseFragment(g,v,T)},b.render=function(v){for(var _,m=("length"in v)?v:[v],T=0;T{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.merge=b.contains=b.root=b.parseHTML=b.text=b.xml=b.html=void 0;var w=H(655),N=w.__importStar(H(2754)),A=H(7248),E=H(3719),v=H(7957),_=H(8585);function m(g,S,x){var k,R=S?typeof S=="string"?A.select(S,(k=g?._root)!==null&&k!==void 0?k:[],x):S:g?._root.children;return R?x.xmlMode||x._useHtmlParser2?_.render(R,x):v.render(R):""}function T(g){if(Array.isArray(g))return!0;if(typeof g!="object"||!Object.prototype.hasOwnProperty.call(g,"length")||typeof g.length!="number"||g.length<0)return!1;for(var S=0;S{"use strict";Object.defineProperty(b,"__esModule",{value:!0})},5633:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isHtml=b.cloneDom=b.domEach=b.cssCase=b.camelCase=b.isCheerio=b.isTag=void 0;var w=H(3719),N=H(7915);b.isTag=w.DomUtils.isTag,b.isCheerio=function(E){return E.cheerio!=null},b.camelCase=function(E){return E.replace(/[_.-](\w|$)/g,(function(v,_){return _.toUpperCase()}))},b.cssCase=function(E){return E.replace(/[A-Z]/g,"-$&").toLowerCase()},b.domEach=function(E,v){for(var _=E.length,m=0;m<_;m++)v(E[m],m);return E},b.cloneDom=function(E){var v="length"in E?Array.prototype.map.call(E,(function(m){return N.cloneNode(m,!0)})):[N.cloneNode(E,!0)],_=new N.Document(v);return v.forEach((function(m){m.parent=_})),v};var A=/<[a-zA-Z][^]*>/;b.isHtml=function(E){return A.test(E)}},996:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.attributeRules=void 0;var w=H(1073),N=/[-[\]{}()*+?.,\\^$|#\s]/g;function A(_){return _.replace(N,"\\$&")}var E=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function v(_,m){return typeof _.ignoreCase=="boolean"?_.ignoreCase:_.ignoreCase==="quirks"?!!m.quirksMode:!m.xmlMode&&E.has(_.name)}b.attributeRules={equals:function(_,m,T){var g=T.adapter,S=m.name,x=m.value;return v(m,T)?(x=x.toLowerCase(),function(k){var R=g.getAttributeValue(k,S);return R!=null&&R.length===x.length&&R.toLowerCase()===x&&_(k)}):function(k){return g.getAttributeValue(k,S)===x&&_(k)}},hyphen:function(_,m,T){var g=T.adapter,S=m.name,x=m.value,k=x.length;return v(m,T)?(x=x.toLowerCase(),function(R){var h=g.getAttributeValue(R,S);return h!=null&&(h.length===k||h.charAt(k)==="-")&&h.substr(0,k).toLowerCase()===x&&_(R)}):function(R){var h=g.getAttributeValue(R,S);return h!=null&&(h.length===k||h.charAt(k)==="-")&&h.substr(0,k)===x&&_(R)}},element:function(_,m,T){var g=T.adapter,S=m.name,x=m.value;if(/\s/.test(x))return w.falseFunc;var k=new RegExp("(?:^|\\s)".concat(A(x),"(?:$|\\s)"),v(m,T)?"i":"");return function(R){var h=g.getAttributeValue(R,S);return h!=null&&h.length>=x.length&&k.test(h)&&_(R)}},exists:function(_,m,T){var g=m.name,S=T.adapter;return function(x){return S.hasAttrib(x,g)&&_(x)}},start:function(_,m,T){var g=T.adapter,S=m.name,x=m.value,k=x.length;return k===0?w.falseFunc:v(m,T)?(x=x.toLowerCase(),function(R){var h=g.getAttributeValue(R,S);return h!=null&&h.length>=k&&h.substr(0,k).toLowerCase()===x&&_(R)}):function(R){var h;return!!(!((h=g.getAttributeValue(R,S))===null||h===void 0)&&h.startsWith(x))&&_(R)}},end:function(_,m,T){var g=T.adapter,S=m.name,x=m.value,k=-x.length;return k===0?w.falseFunc:v(m,T)?(x=x.toLowerCase(),function(R){var h;return((h=g.getAttributeValue(R,S))===null||h===void 0?void 0:h.substr(k).toLowerCase())===x&&_(R)}):function(R){var h;return!!(!((h=g.getAttributeValue(R,S))===null||h===void 0)&&h.endsWith(x))&&_(R)}},any:function(_,m,T){var g=T.adapter,S=m.name,x=m.value;if(x==="")return w.falseFunc;if(v(m,T)){var k=new RegExp(A(x),"i");return function(R){var h=g.getAttributeValue(R,S);return h!=null&&h.length>=x.length&&k.test(h)&&_(R)}}return function(R){var h;return!!(!((h=g.getAttributeValue(R,S))===null||h===void 0)&&h.includes(x))&&_(R)}},not:function(_,m,T){var g=T.adapter,S=m.name,x=m.value;return x===""?function(k){return!!g.getAttributeValue(k,S)&&_(k)}:v(m,T)?(x=x.toLowerCase(),function(k){var R=g.getAttributeValue(k,S);return(R==null||R.length!==x.length||R.toLowerCase()!==x)&&_(k)}):function(k){return g.getAttributeValue(k,S)!==x&&_(k)}}}},8866:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(b,"__esModule",{value:!0}),b.compileToken=b.compileUnsafe=b.compile=void 0;var N=H(7763),A=H(1073),E=w(H(7353)),v=H(7177),_=H(3621),m=H(1768);function T(I,D,M){return R(typeof I=="string"?(0,N.parse)(I):I,D,M)}function g(I){return I.type==="pseudo"&&(I.name==="scope"||Array.isArray(I.data)&&I.data.some((function(D){return D.some(g)})))}b.compile=function(I,D,M){var B=T(I,D,M);return(0,m.ensureIsTag)(B,D.adapter)},b.compileUnsafe=T;var S={type:N.SelectorType.Descendant},x={type:"_flexibleDescendant"},k={type:N.SelectorType.Pseudo,name:"scope",data:null};function R(I,D,M){var B;(I=I.filter((function(Z){return Z.length>0}))).forEach(E.default),M=(B=D.context)!==null&&B!==void 0?B:M;var rt=Array.isArray(M),ot=M&&(Array.isArray(M)?M:[M]);(function(Z,K,Q){for(var z=K.adapter,at=!!Q?.every((function(kt){var vt=z.isTag(kt)&&z.getParent(kt);return kt===m.PLACEHOLDER_ELEMENT||vt&&z.isTag(vt)})),$=0,mt=Z;$0&&(0,v.isTraversal)(X[0])&&X[0].type!=="descendant")){if(!at||X.some(g))continue;X.unshift(S)}X.unshift(k)}})(I,D,ot);var dt=!1,st=I.map((function(Z){if(Z.length>=2){var K=Z[0],Q=Z[1];K.type!=="pseudo"||K.name!=="scope"||(rt&&Q.type==="descendant"?Z[1]=x:Q.type!=="adjacent"&&Q.type!=="sibling"||(dt=!0))}return(function(z,at,$){var mt;return z.reduce((function(X,kt){return X===A.falseFunc?A.falseFunc:(0,_.compileGeneralSelector)(X,kt,at,$,R)}),(mt=at.rootFunc)!==null&&mt!==void 0?mt:A.trueFunc)})(Z,D,ot)})).reduce(h,A.falseFunc);return st.shouldTestNextSiblings=dt,st}function h(I,D){return D===A.falseFunc||I===A.trueFunc?I:I===A.falseFunc||D===A.trueFunc?D:function(M){return I(M)||D(M)}}b.compileToken=R},3621:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.compileGeneralSelector=void 0;var w=H(996),N=H(8677),A=H(7763);b.compileGeneralSelector=function(E,v,_,m,T){var g=_.adapter,S=_.equals;switch(v.type){case A.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case A.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case A.SelectorType.Attribute:if(v.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return _.xmlMode&&!_.lowerCaseAttributeNames||(v.name=v.name.toLowerCase()),w.attributeRules[v.action](E,v,_);case A.SelectorType.Pseudo:return(0,N.compilePseudoSelector)(E,v,_,m,T);case A.SelectorType.Tag:if(v.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");var x=v.name;return _.xmlMode&&!_.lowerCaseTags||(x=x.toLowerCase()),function(R){return g.getName(R)===x&&E(R)};case A.SelectorType.Descendant:if(_.cacheResults===!1||typeof WeakSet>"u")return function(R){for(var h=R;h=g.getParent(h);)if(g.isTag(h)&&E(h))return!0;return!1};var k=new WeakSet;return function(R){for(var h=R;h=g.getParent(h);)if(!k.has(h)){if(g.isTag(h)&&E(h))return!0;k.add(h)}return!1};case"_flexibleDescendant":return function(R){var h=R;do if(g.isTag(h)&&E(h))return!0;while(h=g.getParent(h));return!1};case A.SelectorType.Parent:return function(R){return g.getChildren(R).some((function(h){return g.isTag(h)&&E(h)}))};case A.SelectorType.Child:return function(R){var h=g.getParent(R);return h!=null&&g.isTag(h)&&E(h)};case A.SelectorType.Sibling:return function(R){for(var h=g.getSiblings(R),I=0;I{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isTraversal=b.procedure=void 0,b.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,"column-combinator":-1,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},b.isTraversal=function(H){return b.procedure[H.type]<0}},2968:(j,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.aliases=void 0,b.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( :is(button, input, select, textarea, optgroup, option)[disabled], optgroup[disabled] > option, fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *) )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}},7689:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(b,"__esModule",{value:!0}),b.filters=void 0;var N=w(H(7540)),A=H(1073);function E(_,m){return function(T){var g=m.getParent(T);return g!=null&&m.isTag(g)&&_(T)}}function v(_){return function(m,T,g){var S=g.adapter[_];return typeof S!="function"?A.falseFunc:function(x){return S(x)&&m(x)}}}b.filters={contains:function(_,m,T){var g=T.adapter;return function(S){return _(S)&&g.getText(S).includes(m)}},icontains:function(_,m,T){var g=T.adapter,S=m.toLowerCase();return function(x){return _(x)&&g.getText(x).toLowerCase().includes(S)}},"nth-child":function(_,m,T){var g=T.adapter,S=T.equals,x=(0,N.default)(m);return x===A.falseFunc?A.falseFunc:x===A.trueFunc?E(_,g):function(k){for(var R=g.getSiblings(k),h=0,I=0;I=0&&!S(k,R[I]);I--)g.isTag(R[I])&&h++;return x(h)&&_(k)}},"nth-of-type":function(_,m,T){var g=T.adapter,S=T.equals,x=(0,N.default)(m);return x===A.falseFunc?A.falseFunc:x===A.trueFunc?E(_,g):function(k){for(var R=g.getSiblings(k),h=0,I=0;I=0;I--){var D=R[I];if(S(k,D))break;g.isTag(D)&&g.getName(D)===g.getName(k)&&h++}return x(h)&&_(k)}},root:function(_,m,T){var g=T.adapter;return function(S){var x=g.getParent(S);return(x==null||!g.isTag(x))&&_(S)}},scope:function(_,m,T,g){var S=T.equals;return g&&g.length!==0?g.length===1?function(x){return S(g[0],x)&&_(x)}:function(x){return g.includes(x)&&_(x)}:b.filters.root(_,m,T)},hover:v("isHovered"),visited:v("isVisited"),active:v("isActive")}},8677:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.compilePseudoSelector=b.aliases=b.pseudos=b.filters=void 0;var w=H(1073),N=H(7763),A=H(7689);Object.defineProperty(b,"filters",{enumerable:!0,get:function(){return A.filters}});var E=H(7221);Object.defineProperty(b,"pseudos",{enumerable:!0,get:function(){return E.pseudos}});var v=H(2968);Object.defineProperty(b,"aliases",{enumerable:!0,get:function(){return v.aliases}});var _=H(1768);b.compilePseudoSelector=function(m,T,g,S,x){var k=T.name,R=T.data;if(Array.isArray(R))return _.subselects[k](m,R,g,S,x);if(k in v.aliases){if(R!=null)throw new Error("Pseudo ".concat(k," doesn't have any arguments"));var h=(0,N.parse)(v.aliases[k]);return _.subselects.is(m,h,g,S,x)}if(k in A.filters)return A.filters[k](m,R,g,S);if(k in E.pseudos){var I=E.pseudos[k];return(0,E.verifyPseudoArgs)(I,k,R),I===w.falseFunc?w.falseFunc:m===w.trueFunc?function(D){return I(D,g,R)}:function(D){return I(D,g,R)&&m(D)}}throw new Error("unmatched pseudo-class :".concat(k))}},7221:(j,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.verifyPseudoArgs=b.pseudos=void 0,b.pseudos={empty:function(H,w){var N=w.adapter;return!N.getChildren(H).some((function(A){return N.isTag(A)||N.getText(A)!==""}))},"first-child":function(H,w){var N=w.adapter,A=w.equals,E=N.getSiblings(H).find((function(v){return N.isTag(v)}));return E!=null&&A(H,E)},"last-child":function(H,w){for(var N=w.adapter,A=w.equals,E=N.getSiblings(H),v=E.length-1;v>=0;v--){if(A(H,E[v]))return!0;if(N.isTag(E[v]))break}return!1},"first-of-type":function(H,w){for(var N=w.adapter,A=w.equals,E=N.getSiblings(H),v=N.getName(H),_=0;_=0;_--){var m=E[_];if(A(H,m))return!0;if(N.isTag(m)&&N.getName(m)===v)break}return!1},"only-of-type":function(H,w){var N=w.adapter,A=w.equals,E=N.getName(H);return N.getSiblings(H).every((function(v){return A(H,v)||!N.isTag(v)||N.getName(v)!==E}))},"only-child":function(H,w){var N=w.adapter,A=w.equals;return N.getSiblings(H).every((function(E){return A(H,E)||!N.isTag(E)}))}},b.verifyPseudoArgs=function(H,w,N){if(N===null){if(H.length>2)throw new Error("pseudo-selector :".concat(w," requires an argument"))}else if(H.length===2)throw new Error("pseudo-selector :".concat(w," doesn't have any arguments"))}},1768:function(j,b,H){"use strict";var w=this&&this.__spreadArray||function(m,T,g){if(g||arguments.length===2)for(var S,x=0,k=T.length;x{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var w=H(7763),N=H(7177),A={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function E(v){var _=N.procedure[v.type];if(v.type===w.SelectorType.Attribute)(_=A[v.action])===A.equals&&v.name==="id"&&(_=9),v.ignoreCase&&(_>>=1);else if(v.type===w.SelectorType.Pseudo)if(v.data)if(v.name==="has"||v.name==="contains")_=0;else if(Array.isArray(v.data)){_=0;for(var m=0;m_&&(_=T)}v.data.length>1&&_>0&&(_-=1)}else _=1;else _=3;return _}b.default=function(v){for(var _=v.map(E),m=1;m=0&&T<_[g];g--){var S=v[g+1];v[g+1]=v[g],v[g]=S,_[g+1]=_[g],_[g]=T}}}},7763:(j,b,H)=>{"use strict";var w;H.r(b),H.d(b,{AttributeAction:()=>A,IgnoreCaseMode:()=>N,SelectorType:()=>w,isTraversal:()=>T,parse:()=>h,stringify:()=>dt}),(function(z){z.Attribute="attribute",z.Pseudo="pseudo",z.PseudoElement="pseudo-element",z.Tag="tag",z.Universal="universal",z.Adjacent="adjacent",z.Child="child",z.Descendant="descendant",z.Parent="parent",z.Sibling="sibling",z.ColumnCombinator="column-combinator"})(w||(w={}));const N={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var A;(function(z){z.Any="any",z.Element="element",z.End="end",z.Equals="equals",z.Exists="exists",z.Hyphen="hyphen",z.Not="not",z.Start="start"})(A||(A={}));const E=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,v=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,_=new Map([[126,A.Element],[94,A.Start],[36,A.End],[42,A.Any],[33,A.Not],[124,A.Hyphen]]),m=new Set(["has","not","matches","is","where","host","host-context"]);function T(z){switch(z.type){case w.Adjacent:case w.Child:case w.Descendant:case w.Parent:case w.Sibling:case w.ColumnCombinator:return!0;default:return!1}}const g=new Set(["contains","icontains"]);function S(z,at,$){const mt=parseInt(at,16)-65536;return mt!=mt||$?at:mt<0?String.fromCharCode(mt+65536):String.fromCharCode(mt>>10|55296,1023&mt|56320)}function x(z){return z.replace(v,S)}function k(z){return z===39||z===34}function R(z){return z===32||z===9||z===10||z===12||z===13}function h(z){const at=[],$=I(at,`${z}`,0);if($0&&$0&&T(mt[mt.length-1]))throw new Error("Did not expect successive traversals.")}function wt(zt){mt.length>0&&mt[mt.length-1].type===w.Descendant?mt[mt.length-1].type=zt:(gt(),mt.push({type:zt}))}function Nt(zt,Qt){mt.push({type:w.Attribute,name:zt,action:Qt,value:X(1),namespace:null,ignoreCase:"quirks"})}function Xt(){if(mt.length&&mt[mt.length-1].type===w.Descendant&&mt.pop(),mt.length===0)throw new Error("Empty sub-selector");z.push(mt)}if(kt(0),at.length===$)return $;t:for(;$z.charCodeAt(0)))),rt=new Set(M.map((z=>z.charCodeAt(0)))),ot=new Set([...M,"~","^","$","*","+","!","|",":","[","]"," ","."].map((z=>z.charCodeAt(0))));function dt(z){return z.map((at=>at.map(st).join(""))).join(", ")}function st(z,at,$){switch(z.type){case w.Child:return at===0?"> ":" > ";case w.Parent:return at===0?"< ":" < ";case w.Sibling:return at===0?"~ ":" ~ ";case w.Adjacent:return at===0?"+ ":" + ";case w.Descendant:return" ";case w.ColumnCombinator:return at===0?"|| ":" || ";case w.Universal:return z.namespace==="*"&&at+1<$.length&&"name"in $[at+1]?"":`${K(z.namespace)}*`;case w.Tag:return Z(z);case w.PseudoElement:return`::${Q(z.name,ot)}${z.data===null?"":`(${Q(z.data,rt)})`}`;case w.Pseudo:return`:${Q(z.name,ot)}${z.data===null?"":`(${typeof z.data=="string"?Q(z.data,rt):dt(z.data)})`}`;case w.Attribute:{if(z.name==="id"&&z.action===A.Equals&&z.ignoreCase==="quirks"&&!z.namespace)return`#${Q(z.value,ot)}`;if(z.name==="class"&&z.action===A.Element&&z.ignoreCase==="quirks"&&!z.namespace)return`.${Q(z.value,ot)}`;const mt=Z(z);return z.action===A.Exists?`[${mt}]`:`[${mt}${(function(X){switch(X){case A.Equals:return"";case A.Element:return"~";case A.Start:return"^";case A.End:return"$";case A.Any:return"*";case A.Not:return"!";case A.Hyphen:return"|";case A.Exists:throw new Error("Shouldn't be here")}})(z.action)}="${Q(z.value,B)}"${z.ignoreCase===null?"":z.ignoreCase?" i":" s"}]`}}}function Z(z){return`${K(z.namespace)}${Q(z.name,ot)}`}function K(z){return z!==null?`${z==="*"?"*":Q(z,ot)}|`:""}function Q(z,at){let $=0,mt="";for(let X=0;X0?mt+z.slice($):z}},7837:(j,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.attributeNames=b.elementNames=void 0,b.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),b.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},7220:function(j,b,H){"use strict";var w=this&&this.__assign||function(){return w=Object.assign||function(h){for(var I,D=1,M=arguments.length;D";case v.Comment:return(function(D){return""})(h);case v.CDATA:return(function(D){return""})(h);case v.Script:case v.Style:case v.Tag:return(function(D,M){var B;M.xmlMode==="foreign"&&(D.name=(B=m.elementNames.get(D.name))!==null&&B!==void 0?B:D.name,D.parent&&k.has(D.parent.name)&&(M=w(w({},M),{xmlMode:!1}))),!M.xmlMode&&R.has(D.name)&&(M=w(w({},M),{xmlMode:"foreign"}));var rt="<"+D.name,ot=(function(dt,st){if(dt)return Object.keys(dt).map((function(Z){var K,Q,z=(K=dt[Z])!==null&&K!==void 0?K:"";return st.xmlMode==="foreign"&&(Z=(Q=m.attributeNames.get(Z))!==null&&Q!==void 0?Q:Z),st.emptyAttrs||st.xmlMode||z!==""?Z+'="'+(st.decodeEntities!==!1?_.encodeXML(z):z.replace(/"/g,"""))+'"':Z})).join(" ")})(D.attribs,M);return ot&&(rt+=" "+ot),D.children.length===0&&(M.xmlMode?M.selfClosingTags!==!1:M.selfClosingTags&&g.has(D.name))?(M.xmlMode||(rt+=" "),rt+="/>"):(rt+=">",D.children.length>0&&(rt+=S(D.children,M)),!M.xmlMode&&g.has(D.name)||(rt+="")),rt})(h,I);case v.Text:return(function(D,M){var B=D.data||"";return M.decodeEntities===!1||!M.xmlMode&&D.parent&&T.has(D.parent.name)||(B=_.encodeXML(B)),B})(h,I)}}b.default=S;var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),R=new Set(["svg","math"])},9960:(j,b)=>{"use strict";var H;Object.defineProperty(b,"__esModule",{value:!0}),b.Doctype=b.CDATA=b.Tag=b.Style=b.Script=b.Comment=b.Directive=b.Text=b.Root=b.isTag=b.ElementType=void 0,(function(w){w.Root="root",w.Text="text",w.Directive="directive",w.Comment="comment",w.Script="script",w.Style="style",w.Tag="tag",w.CDATA="cdata",w.Doctype="doctype"})(H=b.ElementType||(b.ElementType={})),b.isTag=function(w){return w.type===H.Tag||w.type===H.Script||w.type===H.Style},b.Root=H.Root,b.Text=H.Text,b.Directive=H.Directive,b.Comment=H.Comment,b.Script=H.Script,b.Style=H.Style,b.Tag=H.Tag,b.CDATA=H.CDATA,b.Doctype=H.Doctype},7915:function(j,b,H){"use strict";var w=this&&this.__createBinding||(Object.create?function(T,g,S,x){x===void 0&&(x=S);var k=Object.getOwnPropertyDescriptor(g,S);k&&!("get"in k?!g.__esModule:k.writable||k.configurable)||(k={enumerable:!0,get:function(){return g[S]}}),Object.defineProperty(T,x,k)}:function(T,g,S,x){x===void 0&&(x=S),T[x]=g[S]}),N=this&&this.__exportStar||function(T,g){for(var S in T)S==="default"||Object.prototype.hasOwnProperty.call(g,S)||w(g,T,S)};Object.defineProperty(b,"__esModule",{value:!0}),b.DomHandler=void 0;var A=H(9960),E=H(7790);N(H(7790),b);var v=/\s+/g,_={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},m=(function(){function T(g,S,x){this.dom=[],this.root=new E.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof S=="function"&&(x=S,S=_),typeof g=="object"&&(S=g,g=void 0),this.callback=g??null,this.options=S??_,this.elementCB=x??null}return T.prototype.onparserinit=function(g){this.parser=g},T.prototype.onreset=function(){this.dom=[],this.root=new E.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},T.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},T.prototype.onerror=function(g){this.handleCallback(g)},T.prototype.onclosetag=function(){this.lastNode=null;var g=this.tagStack.pop();this.options.withEndIndices&&(g.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(g)},T.prototype.onopentag=function(g,S){var x=this.options.xmlMode?A.ElementType.Tag:void 0,k=new E.Element(g,S,void 0,x);this.addNode(k),this.tagStack.push(k)},T.prototype.ontext=function(g){var S=this.options.normalizeWhitespace,x=this.lastNode;if(x&&x.type===A.ElementType.Text)S?x.data=(x.data+g).replace(v," "):x.data+=g,this.options.withEndIndices&&(x.endIndex=this.parser.endIndex);else{S&&(g=g.replace(v," "));var k=new E.Text(g);this.addNode(k),this.lastNode=k}},T.prototype.oncomment=function(g){if(this.lastNode&&this.lastNode.type===A.ElementType.Comment)this.lastNode.data+=g;else{var S=new E.Comment(g);this.addNode(S),this.lastNode=S}},T.prototype.oncommentend=function(){this.lastNode=null},T.prototype.oncdatastart=function(){var g=new E.Text(""),S=new E.NodeWithChildren(A.ElementType.CDATA,[g]);this.addNode(S),g.parent=S,this.lastNode=g},T.prototype.oncdataend=function(){this.lastNode=null},T.prototype.onprocessinginstruction=function(g,S){var x=new E.ProcessingInstruction(g,S);this.addNode(x)},T.prototype.handleCallback=function(g){if(typeof this.callback=="function")this.callback(g,this.dom);else if(g)throw g},T.prototype.addNode=function(g){var S=this.tagStack[this.tagStack.length-1],x=S.children[S.children.length-1];this.options.withStartIndices&&(g.startIndex=this.parser.startIndex),this.options.withEndIndices&&(g.endIndex=this.parser.endIndex),S.children.push(g),x&&(g.prev=x,x.next=g),g.parent=S,this.lastNode=null},T})();b.DomHandler=m,b.default=m},7790:function(j,b,H){"use strict";var w,N=this&&this.__extends||(w=function(st,Z){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,Q){K.__proto__=Q}||function(K,Q){for(var z in Q)Object.prototype.hasOwnProperty.call(Q,z)&&(K[z]=Q[z])},w(st,Z)},function(st,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function K(){this.constructor=st}w(st,Z),st.prototype=Z===null?Object.create(Z):(K.prototype=Z.prototype,new K)}),A=this&&this.__assign||function(){return A=Object.assign||function(st){for(var Z,K=1,Q=arguments.length;K0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"childNodes",{get:function(){return this.children},set:function(K){this.children=K},enumerable:!1,configurable:!0}),Z})(_);b.NodeWithChildren=x;var k=(function(st){function Z(K){return st.call(this,E.ElementType.Root,K)||this}return N(Z,st),Z})(x);b.Document=k;var R=(function(st){function Z(K,Q,z,at){z===void 0&&(z=[]),at===void 0&&(at=K==="script"?E.ElementType.Script:K==="style"?E.ElementType.Style:E.ElementType.Tag);var $=st.call(this,at,z)||this;return $.name=K,$.attribs=Q,$}return N(Z,st),Object.defineProperty(Z.prototype,"tagName",{get:function(){return this.name},set:function(K){this.name=K},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"attributes",{get:function(){var K=this;return Object.keys(this.attribs).map((function(Q){var z,at;return{name:Q,value:K.attribs[Q],namespace:(z=K["x-attribsNamespace"])===null||z===void 0?void 0:z[Q],prefix:(at=K["x-attribsPrefix"])===null||at===void 0?void 0:at[Q]}}))},enumerable:!1,configurable:!0}),Z})(x);function h(st){return(0,E.isTag)(st)}function I(st){return st.type===E.ElementType.CDATA}function D(st){return st.type===E.ElementType.Text}function M(st){return st.type===E.ElementType.Comment}function B(st){return st.type===E.ElementType.Directive}function rt(st){return st.type===E.ElementType.Root}function ot(st,Z){var K;if(Z===void 0&&(Z=!1),D(st))K=new T(st.data);else if(M(st))K=new g(st.data);else if(h(st)){var Q=Z?dt(st.children):[],z=new R(st.name,A({},st.attribs),Q);Q.forEach((function(X){return X.parent=z})),st.namespace!=null&&(z.namespace=st.namespace),st["x-attribsNamespace"]&&(z["x-attribsNamespace"]=A({},st["x-attribsNamespace"])),st["x-attribsPrefix"]&&(z["x-attribsPrefix"]=A({},st["x-attribsPrefix"])),K=z}else if(I(st)){Q=Z?dt(st.children):[];var at=new x(E.ElementType.CDATA,Q);Q.forEach((function(X){return X.parent=at})),K=at}else if(rt(st)){Q=Z?dt(st.children):[];var $=new k(Q);Q.forEach((function(X){return X.parent=$})),st["x-mode"]&&($["x-mode"]=st["x-mode"]),K=$}else{if(!B(st))throw new Error("Not implemented yet: ".concat(st.type));var mt=new S(st.name,st.data);st["x-name"]!=null&&(mt["x-name"]=st["x-name"],mt["x-publicId"]=st["x-publicId"],mt["x-systemId"]=st["x-systemId"]),K=mt}return K.startIndex=st.startIndex,K.endIndex=st.endIndex,st.sourceCodeLocation!=null&&(K.sourceCodeLocation=st.sourceCodeLocation),K}function dt(st){for(var Z=st.map((function(Q){return ot(Q,!0)})),K=1;K{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getFeed=void 0;var w=H(3346),N=H(3905);b.getFeed=function(S){var x=_(g,S);return x?x.name==="feed"?(function(k){var R,h=k.children,I={type:"atom",items:(0,N.getElementsByTagName)("entry",h).map((function(B){var rt,ot=B.children,dt={media:v(ot)};T(dt,"id","id",ot),T(dt,"title","title",ot);var st=(rt=_("link",ot))===null||rt===void 0?void 0:rt.attribs.href;st&&(dt.link=st);var Z=m("summary",ot)||m("content",ot);Z&&(dt.description=Z);var K=m("updated",ot);return K&&(dt.pubDate=new Date(K)),dt}))};T(I,"id","id",h),T(I,"title","title",h);var D=(R=_("link",h))===null||R===void 0?void 0:R.attribs.href;D&&(I.link=D),T(I,"description","subtitle",h);var M=m("updated",h);return M&&(I.updated=new Date(M)),T(I,"author","email",h,!0),I})(x):(function(k){var R,h,I=(h=(R=_("channel",k.children))===null||R===void 0?void 0:R.children)!==null&&h!==void 0?h:[],D={type:k.name.substr(0,3),id:"",items:(0,N.getElementsByTagName)("item",k.children).map((function(B){var rt=B.children,ot={media:v(rt)};T(ot,"id","guid",rt),T(ot,"title","title",rt),T(ot,"link","link",rt),T(ot,"description","description",rt);var dt=m("pubDate",rt);return dt&&(ot.pubDate=new Date(dt)),ot}))};T(D,"title","title",I),T(D,"link","link",I),T(D,"description","description",I);var M=m("lastBuildDate",I);return M&&(D.updated=new Date(M)),T(D,"author","managingEditor",I,!0),D})(x):null};var A=["url","type","lang"],E=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function v(S){return(0,N.getElementsByTagName)("media:content",S).map((function(x){for(var k=x.attribs,R={medium:k.medium,isDefault:!!k.isDefault},h=0,I=A;h{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.uniqueSort=b.compareDocumentPosition=b.removeSubsets=void 0;var w=H(7915);function N(A,E){var v=[],_=[];if(A===E)return 0;for(var m=(0,w.hasChildren)(A)?A:A.parent;m;)v.unshift(m),m=m.parent;for(m=(0,w.hasChildren)(E)?E:E.parent;m;)_.unshift(m),m=m.parent;for(var T=Math.min(v.length,_.length),g=0;gx.indexOf(R)?S===E?20:4:S===A?10:2}b.removeSubsets=function(A){for(var E=A.length;--E>=0;){var v=A[E];if(E>0&&A.lastIndexOf(v,E-1)>=0)A.splice(E,1);else for(var _=v.parent;_;_=_.parent)if(A.includes(_)){A.splice(E,1);break}}return A},b.compareDocumentPosition=N,b.uniqueSort=function(A){return(A=A.filter((function(E,v,_){return!_.includes(E,v+1)}))).sort((function(E,v){var _=N(E,v);return 2&_?-1:4&_?1:0})),A}},9432:function(j,b,H){"use strict";var w=this&&this.__createBinding||(Object.create?function(E,v,_,m){m===void 0&&(m=_),Object.defineProperty(E,m,{enumerable:!0,get:function(){return v[_]}})}:function(E,v,_,m){m===void 0&&(m=_),E[m]=v[_]}),N=this&&this.__exportStar||function(E,v){for(var _ in E)_==="default"||Object.prototype.hasOwnProperty.call(v,_)||w(v,E,_)};Object.defineProperty(b,"__esModule",{value:!0}),b.hasChildren=b.isDocument=b.isComment=b.isText=b.isCDATA=b.isTag=void 0,N(H(3346),b),N(H(5010),b),N(H(6765),b),N(H(8043),b),N(H(3905),b),N(H(4975),b),N(H(6996),b);var A=H(7915);Object.defineProperty(b,"isTag",{enumerable:!0,get:function(){return A.isTag}}),Object.defineProperty(b,"isCDATA",{enumerable:!0,get:function(){return A.isCDATA}}),Object.defineProperty(b,"isText",{enumerable:!0,get:function(){return A.isText}}),Object.defineProperty(b,"isComment",{enumerable:!0,get:function(){return A.isComment}}),Object.defineProperty(b,"isDocument",{enumerable:!0,get:function(){return A.isDocument}}),Object.defineProperty(b,"hasChildren",{enumerable:!0,get:function(){return A.hasChildren}})},3905:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getElementsByTagType=b.getElementsByTagName=b.getElementById=b.getElements=b.testElement=void 0;var w=H(7915),N=H(8043),A={tag_name:function(m){return typeof m=="function"?function(T){return(0,w.isTag)(T)&&m(T.name)}:m==="*"?w.isTag:function(T){return(0,w.isTag)(T)&&T.name===m}},tag_type:function(m){return typeof m=="function"?function(T){return m(T.type)}:function(T){return T.type===m}},tag_contains:function(m){return typeof m=="function"?function(T){return(0,w.isText)(T)&&m(T.data)}:function(T){return(0,w.isText)(T)&&T.data===m}}};function E(m,T){return typeof T=="function"?function(g){return(0,w.isTag)(g)&&T(g.attribs[m])}:function(g){return(0,w.isTag)(g)&&g.attribs[m]===T}}function v(m,T){return function(g){return m(g)||T(g)}}function _(m){var T=Object.keys(m).map((function(g){var S=m[g];return Object.prototype.hasOwnProperty.call(A,g)?A[g](S):E(g,S)}));return T.length===0?null:T.reduce(v)}b.testElement=function(m,T){var g=_(m);return!g||g(T)},b.getElements=function(m,T,g,S){S===void 0&&(S=1/0);var x=_(m);return x?(0,N.filter)(x,T,g,S):[]},b.getElementById=function(m,T,g){return g===void 0&&(g=!0),Array.isArray(T)||(T=[T]),(0,N.findOne)(E("id",m),T,g)},b.getElementsByTagName=function(m,T,g,S){return g===void 0&&(g=!0),S===void 0&&(S=1/0),(0,N.filter)(A.tag_name(m),T,g,S)},b.getElementsByTagType=function(m,T,g,S){return g===void 0&&(g=!0),S===void 0&&(S=1/0),(0,N.filter)(A.tag_type(m),T,g,S)}},6765:(j,b)=>{"use strict";function H(w){if(w.prev&&(w.prev.next=w.next),w.next&&(w.next.prev=w.prev),w.parent){var N=w.parent.children;N.splice(N.lastIndexOf(w),1)}}Object.defineProperty(b,"__esModule",{value:!0}),b.prepend=b.prependChild=b.append=b.appendChild=b.replaceElement=b.removeElement=void 0,b.removeElement=H,b.replaceElement=function(w,N){var A=N.prev=w.prev;A&&(A.next=N);var E=N.next=w.next;E&&(E.prev=N);var v=N.parent=w.parent;if(v){var _=v.children;_[_.lastIndexOf(w)]=N}},b.appendChild=function(w,N){if(H(N),N.next=null,N.parent=w,w.children.push(N)>1){var A=w.children[w.children.length-2];A.next=N,N.prev=A}else N.prev=null},b.append=function(w,N){H(N);var A=w.parent,E=w.next;if(N.next=E,N.prev=w,w.next=N,N.parent=A,E){if(E.prev=N,A){var v=A.children;v.splice(v.lastIndexOf(E),0,N)}}else A&&A.children.push(N)},b.prependChild=function(w,N){if(H(N),N.parent=w,N.prev=null,w.children.unshift(N)!==1){var A=w.children[1];A.prev=N,N.next=A}else N.next=null},b.prepend=function(w,N){H(N);var A=w.parent;if(A){var E=A.children;E.splice(E.indexOf(w),0,N)}w.prev&&(w.prev.next=N),N.parent=A,N.prev=w.prev,N.next=w,w.prev=N}},8043:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.findAll=b.existsOne=b.findOne=b.findOneChild=b.find=b.filter=void 0;var w=H(7915);function N(A,E,v,_){for(var m=[],T=0,g=E;T0){var x=N(A,S.children,v,_);if(m.push.apply(m,x),(_-=x.length)<=0)break}}return m}b.filter=function(A,E,v,_){return v===void 0&&(v=!0),_===void 0&&(_=1/0),Array.isArray(E)||(E=[E]),N(A,E,v,_)},b.find=N,b.findOneChild=function(A,E){return E.find(A)},b.findOne=function A(E,v,_){_===void 0&&(_=!0);for(var m=null,T=0;T0&&(m=A(E,g.children)))}return m},b.existsOne=function A(E,v){return v.some((function(_){return(0,w.isTag)(_)&&(E(_)||_.children.length>0&&A(E,_.children))}))},b.findAll=function(A,E){for(var v,_,m=[],T=E.filter(w.isTag);_=T.shift();){var g=(v=_.children)===null||v===void 0?void 0:v.filter(w.isTag);g&&g.length>0&&T.unshift.apply(T,g),A(_)&&m.push(_)}return m}},3346:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(b,"__esModule",{value:!0}),b.innerText=b.textContent=b.getText=b.getInnerHTML=b.getOuterHTML=void 0;var N=H(7915),A=w(H(7220)),E=H(9960);function v(_,m){return(0,A.default)(_,m)}b.getOuterHTML=v,b.getInnerHTML=function(_,m){return(0,N.hasChildren)(_)?_.children.map((function(T){return v(T,m)})).join(""):""},b.getText=function _(m){return Array.isArray(m)?m.map(_).join(""):(0,N.isTag)(m)?m.name==="br"?` `:_(m.children):(0,N.isCDATA)(m)?_(m.children):(0,N.isText)(m)?m.data:""},b.textContent=function _(m){return Array.isArray(m)?m.map(_).join(""):(0,N.hasChildren)(m)&&!(0,N.isComment)(m)?_(m.children):(0,N.isText)(m)?m.data:""},b.innerText=function _(m){return Array.isArray(m)?m.map(_).join(""):(0,N.hasChildren)(m)&&(m.type===E.ElementType.Tag||(0,N.isCDATA)(m))?_(m.children):(0,N.isText)(m)?m.data:""}},5010:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.prevElementSibling=b.nextElementSibling=b.getName=b.hasAttrib=b.getAttributeValue=b.getSiblings=b.getParent=b.getChildren=void 0;var w=H(7915),N=[];function A(v){var _;return(_=v.children)!==null&&_!==void 0?_:N}function E(v){return v.parent||null}b.getChildren=A,b.getParent=E,b.getSiblings=function(v){var _=E(v);if(_!=null)return A(_);for(var m=[v],T=v.prev,g=v.next;T!=null;)m.unshift(T),T=T.prev;for(;g!=null;)m.push(g),g=g.next;return m},b.getAttributeValue=function(v,_){var m;return(m=v.attribs)===null||m===void 0?void 0:m[_]},b.hasAttrib=function(v,_){return v.attribs!=null&&Object.prototype.hasOwnProperty.call(v.attribs,_)&&v.attribs[_]!=null},b.getName=function(v){return v.name},b.nextElementSibling=function(v){for(var _=v.next;_!==null&&!(0,w.isTag)(_);)_=_.next;return _},b.prevElementSibling=function(v){for(var _=v.prev;_!==null&&!(0,w.isTag)(_);)_=_.prev;return _}},4076:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(b,"__esModule",{value:!0}),b.decodeHTML=b.decodeHTMLStrict=b.decodeXML=void 0;var N=w(H(9323)),A=w(H(9591)),E=w(H(2586)),v=w(H(26)),_=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function m(S){var x=g(S);return function(k){return String(k).replace(_,x)}}b.decodeXML=m(E.default),b.decodeHTMLStrict=m(N.default);var T=function(S,x){return S65535&&(E-=65536,v+=String.fromCharCode(E>>>10&1023|55296),E=56320|1023&E),v+=String.fromCharCode(E)};b.default=function(E){return E>=55296&&E<=57343||E>1114111?"\uFFFD":(E in N.default&&(E=N.default[E]),A(E))}},7322:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(I){return I&&I.__esModule?I:{default:I}};Object.defineProperty(b,"__esModule",{value:!0}),b.escapeUTF8=b.escape=b.encodeNonAsciiHTML=b.encodeHTML=b.encodeXML=void 0;var N=T(w(H(2586)).default),A=g(N);b.encodeXML=h(N);var E,v,_=T(w(H(9323)).default),m=g(_);function T(I){return Object.keys(I).sort().reduce((function(D,M){return D[I[M]]="&"+M+";",D}),{})}function g(I){for(var D=[],M=[],B=0,rt=Object.keys(I);B1?x(I):I.charCodeAt(0)).toString(16).toUpperCase()+";"}var R=new RegExp(A.source+"|"+S.source,"g");function h(I){return function(D){return D.replace(R,(function(M){return I[M]||k(M)}))}}b.escape=function(I){return I.replace(R,k)},b.escapeUTF8=function(I){return I.replace(A,k)}},5863:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.decodeXMLStrict=b.decodeHTML5Strict=b.decodeHTML4Strict=b.decodeHTML5=b.decodeHTML4=b.decodeHTMLStrict=b.decodeHTML=b.decodeXML=b.encodeHTML5=b.encodeHTML4=b.escapeUTF8=b.escape=b.encodeNonAsciiHTML=b.encodeHTML=b.encodeXML=b.encode=b.decodeStrict=b.decode=void 0;var w=H(4076),N=H(7322);b.decode=function(v,_){return(!_||_<=0?w.decodeXML:w.decodeHTML)(v)},b.decodeStrict=function(v,_){return(!_||_<=0?w.decodeXML:w.decodeHTMLStrict)(v)},b.encode=function(v,_){return(!_||_<=0?N.encodeXML:N.encodeHTML)(v)};var A=H(7322);Object.defineProperty(b,"encodeXML",{enumerable:!0,get:function(){return A.encodeXML}}),Object.defineProperty(b,"encodeHTML",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(b,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return A.encodeNonAsciiHTML}}),Object.defineProperty(b,"escape",{enumerable:!0,get:function(){return A.escape}}),Object.defineProperty(b,"escapeUTF8",{enumerable:!0,get:function(){return A.escapeUTF8}}),Object.defineProperty(b,"encodeHTML4",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(b,"encodeHTML5",{enumerable:!0,get:function(){return A.encodeHTML}});var E=H(4076);Object.defineProperty(b,"decodeXML",{enumerable:!0,get:function(){return E.decodeXML}}),Object.defineProperty(b,"decodeHTML",{enumerable:!0,get:function(){return E.decodeHTML}}),Object.defineProperty(b,"decodeHTMLStrict",{enumerable:!0,get:function(){return E.decodeHTMLStrict}}),Object.defineProperty(b,"decodeHTML4",{enumerable:!0,get:function(){return E.decodeHTML}}),Object.defineProperty(b,"decodeHTML5",{enumerable:!0,get:function(){return E.decodeHTML}}),Object.defineProperty(b,"decodeHTML4Strict",{enumerable:!0,get:function(){return E.decodeHTMLStrict}}),Object.defineProperty(b,"decodeHTML5Strict",{enumerable:!0,get:function(){return E.decodeHTMLStrict}}),Object.defineProperty(b,"decodeXMLStrict",{enumerable:!0,get:function(){return E.decodeXML}})},3870:function(j,b,H){"use strict";var w,N=this&&this.__extends||(w=function(ot,dt){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Z){st.__proto__=Z}||function(st,Z){for(var K in Z)Object.prototype.hasOwnProperty.call(Z,K)&&(st[K]=Z[K])},w(ot,dt)},function(ot,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Class extends value "+String(dt)+" is not a constructor or null");function st(){this.constructor=ot}w(ot,dt),ot.prototype=dt===null?Object.create(dt):(st.prototype=dt.prototype,new st)}),A=this&&this.__createBinding||(Object.create?function(ot,dt,st,Z){Z===void 0&&(Z=st),Object.defineProperty(ot,Z,{enumerable:!0,get:function(){return dt[st]}})}:function(ot,dt,st,Z){Z===void 0&&(Z=st),ot[Z]=dt[st]}),E=this&&this.__setModuleDefault||(Object.create?function(ot,dt){Object.defineProperty(ot,"default",{enumerable:!0,value:dt})}:function(ot,dt){ot.default=dt}),v=this&&this.__importStar||function(ot){if(ot&&ot.__esModule)return ot;var dt={};if(ot!=null)for(var st in ot)st!=="default"&&Object.prototype.hasOwnProperty.call(ot,st)&&A(dt,ot,st);return E(dt,ot),dt},_=this&&this.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(b,"__esModule",{value:!0}),b.parseFeed=b.FeedHandler=void 0;var m,T,g=_(H(7915)),S=v(H(9432)),x=H(763);(function(ot){ot[ot.image=0]="image",ot[ot.audio=1]="audio",ot[ot.video=2]="video",ot[ot.document=3]="document",ot[ot.executable=4]="executable"})(m||(m={})),(function(ot){ot[ot.sample=0]="sample",ot[ot.full=1]="full",ot[ot.nonstop=2]="nonstop"})(T||(T={}));var k=(function(ot){function dt(st,Z){return typeof st=="object"&&(Z=st=void 0),ot.call(this,st,Z)||this}return N(dt,ot),dt.prototype.onend=function(){var st,Z,K=I(rt,this.dom);if(K){var Q={};if(K.name==="feed"){var z=K.children;Q.type="atom",B(Q,"id","id",z),B(Q,"title","title",z);var at=M("href",I("link",z));at&&(Q.link=at),B(Q,"description","subtitle",z),($=D("updated",z))&&(Q.updated=new Date($)),B(Q,"author","email",z,!0),Q.items=h("entry",z).map((function(mt){var X={},kt=mt.children;B(X,"id","id",kt),B(X,"title","title",kt);var vt=M("href",I("link",kt));vt&&(X.link=vt);var Ct=D("summary",kt)||D("content",kt);Ct&&(X.description=Ct);var gt=D("updated",kt);return gt&&(X.pubDate=new Date(gt)),X.media=R(kt),X}))}else{var $;z=(Z=(st=I("channel",K.children))===null||st===void 0?void 0:st.children)!==null&&Z!==void 0?Z:[],Q.type=K.name.substr(0,3),Q.id="",B(Q,"title","title",z),B(Q,"link","link",z),B(Q,"description","description",z),($=D("lastBuildDate",z))&&(Q.updated=new Date($)),B(Q,"author","managingEditor",z,!0),Q.items=h("item",K.children).map((function(mt){var X={},kt=mt.children;B(X,"id","guid",kt),B(X,"title","title",kt),B(X,"link","link",kt),B(X,"description","description",kt);var vt=D("pubDate",kt);return vt&&(X.pubDate=new Date(vt)),X.media=R(kt),X}))}this.feed=Q,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},dt})(g.default);function R(ot){return h("media:content",ot).map((function(dt){var st={medium:dt.attribs.medium,isDefault:!!dt.attribs.isDefault};return dt.attribs.url&&(st.url=dt.attribs.url),dt.attribs.fileSize&&(st.fileSize=parseInt(dt.attribs.fileSize,10)),dt.attribs.type&&(st.type=dt.attribs.type),dt.attribs.expression&&(st.expression=dt.attribs.expression),dt.attribs.bitrate&&(st.bitrate=parseInt(dt.attribs.bitrate,10)),dt.attribs.framerate&&(st.framerate=parseInt(dt.attribs.framerate,10)),dt.attribs.samplingrate&&(st.samplingrate=parseInt(dt.attribs.samplingrate,10)),dt.attribs.channels&&(st.channels=parseInt(dt.attribs.channels,10)),dt.attribs.duration&&(st.duration=parseInt(dt.attribs.duration,10)),dt.attribs.height&&(st.height=parseInt(dt.attribs.height,10)),dt.attribs.width&&(st.width=parseInt(dt.attribs.width,10)),dt.attribs.lang&&(st.lang=dt.attribs.lang),st}))}function h(ot,dt){return S.getElementsByTagName(ot,dt,!0)}function I(ot,dt){return S.getElementsByTagName(ot,dt,!0,1)[0]}function D(ot,dt,st){return st===void 0&&(st=!1),S.getText(S.getElementsByTagName(ot,dt,st,1)).trim()}function M(ot,dt){return dt?dt.attribs[ot]:null}function B(ot,dt,st,Z,K){K===void 0&&(K=!1);var Q=D(st,Z,K);Q&&(ot[dt]=Q)}function rt(ot){return ot==="rss"||ot==="feed"||ot==="rdf:RDF"}b.FeedHandler=k,b.parseFeed=function(ot,dt){dt===void 0&&(dt={xmlMode:!0});var st=new k(dt);return new x.Parser(st,dt).end(ot),st.feed}},763:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(b,"__esModule",{value:!0}),b.Parser=void 0;var N=w(H(9889)),A=new Set(["input","option","optgroup","select","button","datalist","textarea"]),E=new Set(["p"]),v={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:E,h1:E,h2:E,h3:E,h4:E,h5:E,h6:E,select:A,input:A,output:A,button:A,datalist:A,textarea:A,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:E,article:E,aside:E,blockquote:E,details:E,div:E,dl:E,fieldset:E,figcaption:E,figure:E,footer:E,form:E,header:E,hr:E,main:E,nav:E,ol:E,pre:E,section:E,table:E,ul:E,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},_=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),T=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=/\s|\//,S=(function(){function x(k,R){var h,I,D,M,B;R===void 0&&(R={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=R,this.cbs=k??{},this.lowerCaseTagNames=(h=R.lowerCaseTags)!==null&&h!==void 0?h:!R.xmlMode,this.lowerCaseAttributeNames=(I=R.lowerCaseAttributeNames)!==null&&I!==void 0?I:!R.xmlMode,this.tokenizer=new((D=R.Tokenizer)!==null&&D!==void 0?D:N.default)(this.options,this),(B=(M=this.cbs).onparserinit)===null||B===void 0||B.call(M,this)}return x.prototype.updatePosition=function(k){this.endIndex===null?this.tokenizer.sectionStart<=k?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-k:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},x.prototype.ontext=function(k){var R,h;this.updatePosition(1),this.endIndex--,(h=(R=this.cbs).ontext)===null||h===void 0||h.call(R,k)},x.prototype.onopentagname=function(k){var R,h;if(this.lowerCaseTagNames&&(k=k.toLowerCase()),this.tagname=k,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(v,k))for(var I=void 0;this.stack.length>0&&v[k].has(I=this.stack[this.stack.length-1]);)this.onclosetag(I);!this.options.xmlMode&&_.has(k)||(this.stack.push(k),m.has(k)?this.foreignContext.push(!0):T.has(k)&&this.foreignContext.push(!1)),(h=(R=this.cbs).onopentagname)===null||h===void 0||h.call(R,k),this.cbs.onopentag&&(this.attribs={})},x.prototype.onopentagend=function(){var k,R;this.updatePosition(1),this.attribs&&((R=(k=this.cbs).onopentag)===null||R===void 0||R.call(k,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&_.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},x.prototype.onclosetag=function(k){if(this.updatePosition(1),this.lowerCaseTagNames&&(k=k.toLowerCase()),(m.has(k)||T.has(k))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&_.has(k))this.options.xmlMode||k!=="br"&&k!=="p"||(this.onopentagname(k),this.closeCurrentTag());else{var R=this.stack.lastIndexOf(k);if(R!==-1)if(this.cbs.onclosetag)for(R=this.stack.length-R;R--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=R;else k!=="p"||this.options.xmlMode||(this.onopentagname(k),this.closeCurrentTag())}},x.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},x.prototype.closeCurrentTag=function(){var k,R,h=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===h&&((R=(k=this.cbs).onclosetag)===null||R===void 0||R.call(k,h),this.stack.pop())},x.prototype.onattribname=function(k){this.lowerCaseAttributeNames&&(k=k.toLowerCase()),this.attribname=k},x.prototype.onattribdata=function(k){this.attribvalue+=k},x.prototype.onattribend=function(k){var R,h;(h=(R=this.cbs).onattribute)===null||h===void 0||h.call(R,this.attribname,this.attribvalue,k),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},x.prototype.getInstructionName=function(k){var R=k.search(g),h=R<0?k:k.substr(0,R);return this.lowerCaseTagNames&&(h=h.toLowerCase()),h},x.prototype.ondeclaration=function(k){if(this.cbs.onprocessinginstruction){var R=this.getInstructionName(k);this.cbs.onprocessinginstruction("!"+R,"!"+k)}},x.prototype.onprocessinginstruction=function(k){if(this.cbs.onprocessinginstruction){var R=this.getInstructionName(k);this.cbs.onprocessinginstruction("?"+R,"?"+k)}},x.prototype.oncomment=function(k){var R,h,I,D;this.updatePosition(4),(h=(R=this.cbs).oncomment)===null||h===void 0||h.call(R,k),(D=(I=this.cbs).oncommentend)===null||D===void 0||D.call(I)},x.prototype.oncdata=function(k){var R,h,I,D,M,B;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?((h=(R=this.cbs).oncdatastart)===null||h===void 0||h.call(R),(D=(I=this.cbs).ontext)===null||D===void 0||D.call(I,k),(B=(M=this.cbs).oncdataend)===null||B===void 0||B.call(M)):this.oncomment("[CDATA["+k+"]]")},x.prototype.onerror=function(k){var R,h;(h=(R=this.cbs).onerror)===null||h===void 0||h.call(R,k)},x.prototype.onend=function(){var k,R;if(this.cbs.onclosetag)for(var h=this.stack.length;h>0;this.cbs.onclosetag(this.stack[--h]));(R=(k=this.cbs).onend)===null||R===void 0||R.call(k)},x.prototype.reset=function(){var k,R,h,I;(R=(k=this.cbs).onreset)===null||R===void 0||R.call(k),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],(I=(h=this.cbs).onparserinit)===null||I===void 0||I.call(h,this)},x.prototype.parseComplete=function(k){this.reset(),this.end(k)},x.prototype.write=function(k){this.tokenizer.write(k)},x.prototype.end=function(k){this.tokenizer.end(k)},x.prototype.pause=function(){this.tokenizer.pause()},x.prototype.resume=function(){this.tokenizer.resume()},x.prototype.parseChunk=function(k){this.write(k)},x.prototype.done=function(k){this.end(k)},x})();b.Parser=S},9889:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}};Object.defineProperty(b,"__esModule",{value:!0});var N=w(H(26)),A=w(H(9323)),E=w(H(9591)),v=w(H(2586));function _(Rt){return Rt===" "||Rt===` `||Rt===" "||Rt==="\f"||Rt==="\r"}function m(Rt){return Rt>="a"&&Rt<="z"||Rt>="A"&&Rt<="Z"}function T(Rt,ut,Bt){var te=Rt.toLowerCase();return Rt===te?function(oe,Ht){Ht===te?oe._state=ut:(oe._state=Bt,oe._index--)}:function(oe,Ht){Ht===te||Ht===Rt?oe._state=ut:(oe._state=Bt,oe._index--)}}function g(Rt,ut){var Bt=Rt.toLowerCase();return function(te,oe){oe===Bt||oe===Rt?te._state=ut:(te._state=3,te._index--)}}var S=T("C",24,16),x=T("D",25,16),k=T("A",26,16),R=T("T",27,16),h=T("A",28,16),I=g("R",35),D=g("I",36),M=g("P",37),B=g("T",38),rt=T("R",40,1),ot=T("I",41,1),dt=T("P",42,1),st=T("T",43,1),Z=g("Y",45),K=g("L",46),Q=g("E",47),z=T("Y",49,1),at=T("L",50,1),$=T("E",51,1),mt=g("I",54),X=g("T",55),kt=g("L",56),vt=g("E",57),Ct=T("I",58,1),gt=T("T",59,1),wt=T("L",60,1),Nt=T("E",61,1),Xt=T("#",63,64),zt=T("X",66,65),Qt=(function(){function Rt(ut,Bt){var te;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Bt,this.xmlMode=!!ut?.xmlMode,this.decodeEntities=(te=ut?.decodeEntities)===null||te===void 0||te}return Rt.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},Rt.prototype.write=function(ut){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=ut,this.parse()},Rt.prototype.end=function(ut){this.ended&&this.cbs.onerror(Error(".end() after done!")),ut&&this.write(ut),this.ended=!0,this.running&&this.finish()},Rt.prototype.pause=function(){this.running=!1},Rt.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||ut!=="&"||this.special!==1&&this.special!==4||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},Rt.prototype.isTagStartChar=function(ut){return m(ut)||this.xmlMode&&!_(ut)&&ut!=="/"&&ut!==">"},Rt.prototype.stateBeforeTagName=function(ut){ut==="/"?this._state=5:ut==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):ut===">"||this.special!==1||_(ut)?this._state=1:ut==="!"?(this._state=15,this.sectionStart=this._index+1):ut==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(ut)?(this._state=this.xmlMode||ut!=="s"&&ut!=="S"?this.xmlMode||ut!=="t"&&ut!=="T"?3:52:32,this.sectionStart=this._index):this._state=1},Rt.prototype.stateInTagName=function(ut){(ut==="/"||ut===">"||_(ut))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},Rt.prototype.stateBeforeClosingTagName=function(ut){_(ut)||(ut===">"?this._state=1:this.special!==1?this.special===4||ut!=="s"&&ut!=="S"?this.special!==4||ut!=="t"&&ut!=="T"?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(ut)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},Rt.prototype.stateInClosingTagName=function(ut){(ut===">"||_(ut))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},Rt.prototype.stateAfterClosingTagName=function(ut){ut===">"&&(this._state=1,this.sectionStart=this._index+1)},Rt.prototype.stateBeforeAttributeName=function(ut){ut===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):ut==="/"?this._state=4:_(ut)||(this._state=9,this.sectionStart=this._index)},Rt.prototype.stateInSelfClosingTag=function(ut){ut===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):_(ut)||(this._state=8,this._index--)},Rt.prototype.stateInAttributeName=function(ut){(ut==="="||ut==="/"||ut===">"||_(ut))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},Rt.prototype.stateAfterAttributeName=function(ut){ut==="="?this._state=11:ut==="/"||ut===">"?(this.cbs.onattribend(void 0),this._state=8,this._index--):_(ut)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},Rt.prototype.stateBeforeAttributeValue=function(ut){ut==='"'?(this._state=12,this.sectionStart=this._index+1):ut==="'"?(this._state=13,this.sectionStart=this._index+1):_(ut)||(this._state=14,this.sectionStart=this._index,this._index--)},Rt.prototype.handleInAttributeValue=function(ut,Bt){ut===Bt?(this.emitToken("onattribdata"),this.cbs.onattribend(Bt),this._state=8):this.decodeEntities&&ut==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},Rt.prototype.stateInAttributeValueDoubleQuotes=function(ut){this.handleInAttributeValue(ut,'"')},Rt.prototype.stateInAttributeValueSingleQuotes=function(ut){this.handleInAttributeValue(ut,"'")},Rt.prototype.stateInAttributeValueNoQuotes=function(ut){_(ut)||ut===">"?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&ut==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},Rt.prototype.stateBeforeDeclaration=function(ut){this._state=ut==="["?23:ut==="-"?18:16},Rt.prototype.stateInDeclaration=function(ut){ut===">"&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},Rt.prototype.stateInProcessingInstruction=function(ut){ut===">"&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},Rt.prototype.stateBeforeComment=function(ut){ut==="-"?(this._state=19,this.sectionStart=this._index+1):this._state=16},Rt.prototype.stateInComment=function(ut){ut==="-"&&(this._state=21)},Rt.prototype.stateInSpecialComment=function(ut){ut===">"&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},Rt.prototype.stateAfterComment1=function(ut){this._state=ut==="-"?22:19},Rt.prototype.stateAfterComment2=function(ut){ut===">"?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):ut!=="-"&&(this._state=19)},Rt.prototype.stateBeforeCdata6=function(ut){ut==="["?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},Rt.prototype.stateInCdata=function(ut){ut==="]"&&(this._state=30)},Rt.prototype.stateAfterCdata1=function(ut){this._state=ut==="]"?31:29},Rt.prototype.stateAfterCdata2=function(ut){ut===">"?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):ut!=="]"&&(this._state=29)},Rt.prototype.stateBeforeSpecialS=function(ut){ut==="c"||ut==="C"?this._state=34:ut==="t"||ut==="T"?this._state=44:(this._state=3,this._index--)},Rt.prototype.stateBeforeSpecialSEnd=function(ut){this.special!==2||ut!=="c"&&ut!=="C"?this.special!==3||ut!=="t"&&ut!=="T"?this._state=1:this._state=48:this._state=39},Rt.prototype.stateBeforeSpecialLast=function(ut,Bt){(ut==="/"||ut===">"||_(ut))&&(this.special=Bt),this._state=3,this._index--},Rt.prototype.stateAfterSpecialLast=function(ut,Bt){ut===">"||_(ut)?(this.special=1,this._state=6,this.sectionStart=this._index-Bt,this._index--):this._state=1},Rt.prototype.parseFixedEntity=function(ut){if(ut===void 0&&(ut=this.xmlMode?v.default:A.default),this.sectionStart+1=2;){var te=this.buffer.substr(ut,Bt);if(Object.prototype.hasOwnProperty.call(E.default,te))return this.emitPartial(E.default[te]),void(this.sectionStart+=Bt+1);Bt--}},Rt.prototype.stateInNamedEntity=function(ut){ut===";"?(this.parseFixedEntity(),this.baseState===1&&this.sectionStart+1"9")&&!m(ut)&&(this.xmlMode||this.sectionStart+1===this._index||(this.baseState!==1?ut!=="="&&this.parseFixedEntity(E.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},Rt.prototype.decodeNumericEntity=function(ut,Bt,te){var oe=this.sectionStart+ut;if(oe!==this._index){var Ht=this.buffer.substring(oe,this._index),ee=parseInt(Ht,Bt);this.emitPartial(N.default(ee)),this.sectionStart=te?this._index+1:this._index}this._state=this.baseState},Rt.prototype.stateInNumericEntity=function(ut){ut===";"?this.decodeNumericEntity(2,10,!0):(ut<"0"||ut>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},Rt.prototype.stateInHexEntity=function(ut){ut===";"?this.decodeNumericEntity(3,16,!0):(ut<"a"||ut>"f")&&(ut<"A"||ut>"F")&&(ut<"0"||ut>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},Rt.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(this._state===1?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},Rt.prototype.parse=function(){for(;this._index{"use strict";var w=H(9018),N=H(8880)((function(E,v){return w(E,{xmlMode:v&&v.xmlMode},A,[v])})),A=function(E,v){return N.juiceDocument(E,v)};N.inlineContent=function(E,v,_){return w(E,{xmlMode:_&&_.xmlMode},N.inlineDocument,[v,_])},j.exports=N},9018:(j,b,H)=>{"use strict";var w=H(7503);H(9671),j.exports=function(N,A,E,v){var _,m=(_=[],{encodeEntities:function(x){var k=j.exports.codeBlocks;return Object.keys(k).forEach((function(R){var h=new RegExp(k[R].start+"([\\S\\s]*?)"+k[R].end,"g");x=x.replace(h,(function(I,D){return _.push(I),"JUICE_CODE_BLOCK_"+(_.length-1)+"_"}))})),x},decodeEntities:function(x){for(var k=0;k<_.length;k++){var R=new RegExp("JUICE_CODE_BLOCK_"+k+'_(="")?',"gi");x=x.replace(R,(function(){return _[k]}))}return x}}),T=(function(x,k,R){return k=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},k),x=R(x),w.load(x,k)})(N,A,m.encodeEntities),g=[T];g.push.apply(g,v);var S=E.apply(void 0,g)||T;return A&&A.xmlMode?m.decodeEntities(S.xml()):m.decodeEntities(S.html())},j.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}},8880:(j,b,H)=>{"use strict";var w=H(9671),N=H(5468);j.exports=function(A){function E(g,S,x){x=x||{};var k=w.parseCSS(S),R=[],h="style",I={};if(x.styleAttributeName&&(h=x.styleAttributeName),k.forEach((function(ot){var dt=ot[0],st=ot[1],Z=new w.Selector(dt),K=Z.parsed();if(K){for(var Q,z=(function(Ct){if(Ct.length!==0){var gt=Ct[Ct.length-1].pseudos;if(gt){for(var wt=0;wt=0)return}}if(z){var kt=K[K.length-1],vt=kt.pseudos;kt.pseudos=(function(Ct){return Ct.filter((function(gt){return!T(gt)}))})(kt.pseudos),dt=K.toString(),kt.pseudos=vt}try{Q=g(dt)}catch{return}Q.each((function(){var Ct=this;if(!(Ct.name&&A.nonVisualElements.indexOf(Ct.name.toUpperCase())>=0)){if(z){var gt="pseudo"+z,wt=Ct[gt];wt||((wt=Ct[gt]=g("").get(0)).pseudoElementType=z,wt.pseudoElementParent=Ct,wt.counterProps=Ct.counterProps,Ct[gt]=wt),Ct=wt}if(!Ct.styleProps){if(Ct.styleProps={},g(Ct).attr(h)){var Nt="* { "+g(Ct).attr(h)+" } ";Qt(w.parseCSS(Nt)[0][1],new w.Selector("")}}function B(ot,dt){if(ot.name){var st=ot.name.toUpperCase();if(A[dt+"Elements"].indexOf(st)>-1){for(var Z in ot.styleProps)if(ot.styleProps[Z].prop===dt){var K=ot.styleProps[Z].value;if(x.preserveImportant&&(K=v(K)),K.match(/px/)){var Q=K.replace("px","");return void g(ot).attr(dt,Q)}if(A.tableElements.indexOf(st)>-1&&K.match(/\%/))return void g(ot).attr(dt,K)}}}}function rt(ot){return ot.indexOf("url(")!==0?ot:ot.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}}function v(g){return g.replace(/\s*!important$/,"")}function _(g,S){for(;g;){if(S in g.styleProps)return g.styleProps[S].value;g=g.pseudoElementParent||g.parent}}function m(g,S){switch(S){case"lower-roman":return N.romanize(g).toLowerCase();case"upper-roman":return N.romanize(g);case"lower-latin":case"lower-alpha":return N.alphanumeric(g).toLowerCase();case"upper-latin":case"upper-alpha":return N.alphanumeric(g);default:return g.toString()}}function T(g){return g.name==="before"||g.name==="after"}return A.ignoredPseudos=["hover","active","focus","visited","link"],A.widthElements=["TABLE","TD","TH","IMG"],A.heightElements=["TABLE","TD","TH","IMG"],A.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],A.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],A.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},A.excludedProperties=[],A.juiceDocument=function(g,S){S=w.getDefaultOptions(S);var x=(function(k,R){var h=(function(D,M){var B,rt,ot,dt=[],st=D("style");return st.each((function(){var Z=!!(ot=this).childNodes;if((B=Z?ot.childNodes:ot.children).length===1){if(rt=B[0].data,M.applyStyleTags&&D(ot).attr("data-embed")===void 0&&dt.push(rt),M.removeStyleTags&&D(ot).attr("data-embed")===void 0){var K=Z?ot.childNodes[0].nodeValue:ot.children[0].data,Q=w.getPreservedText(K,{mediaQueries:M.preserveMediaQueries,fontFaces:M.preserveFontFaces,keyFrames:M.preserveKeyFrames,pseudos:M.preservePseudos},A.ignoredPseudos);Q?Z?ot.childNodes[0].nodeValue=Q:ot.children[0].data=Q:D(ot).remove()}D(ot).removeAttr("data-embed")}else M.removeStyleTags&&D(ot).remove()})),dt})(k,R),I=h.join(` `);return I})(g,S);return x+=` `+S.extraCss,E(g,x,S),g},A.inlineDocument=E,A}},5468:(j,b)=>{"use strict";b.romanize=function(H){if(isNaN(H))return NaN;for(var w=String(+H).split(""),N=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],A="",E=3;E--;)A=(N[+w.pop()+10*E]||"")+A;return Array(+w.join("")+1).join("M")+A},b.alphanumeric=function(H){for(var w,N="";H>0;)w=(H-1)%26,N=String.fromCharCode(65+w)+N,H=(H-w)/26|0;return N||void 0}},4777:(j,b,H)=>{"use strict";j.exports=N;var w=H(9671);function N(A,E,v,_,m){this.prop=A,this.value=E,this.selector=v,this.priority=_||0,this.additionalPriority=m||[]}N.prototype.compareFunc=function(A){var E=[];E.push.apply(E,this.selector.specificity()),E.push.apply(E,this.additionalPriority),E[0]+=this.priority;var v=[];return v.push.apply(v,A.selector.specificity()),v.push.apply(v,A.additionalPriority),v[0]+=A.priority,w.compareFunc(E,v)},N.prototype.compare=function(A){return this.compareFunc(A)===1?this:A},N.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}},9240:(j,b,H)=>{"use strict";var w=H(6585);function N(E,v){this.text=E,this.spec=void 0,this.styleAttribute=v||!1}function A(E){try{return w(E)[0]}catch{return[]}}j.exports=N,N.prototype.parsed=function(){return this.tokens||(this.tokens=A(this.text)),this.tokens},N.prototype.specificity=function(){var E=this.styleAttribute;return this.spec||(this.spec=(function v(_,m){for(var T=m||A(_),g=[E?1:0,0,0,0],S=[],x=0;x{"use strict";var w=H(4984),N=H(9240),A=H(4777);b.Selector=N,b.Property=A,b.extract=function(E){for(var v=0,_=[],m="",T=0,g=E.length;T=0;S--)(v.fontFaces&&T[S].type==="font-face"||v.mediaQueries&&T[S].type==="media"||v.keyFrames&&T[S].type==="keyframes"||v.pseudos&&T[S].selectors&&this.matchesPseudo(T[S].selectors[0],_))&&g.unshift(w.stringify({stylesheet:{rules:[T[S]]}},{comments:!1,indentation:" "})),T[S].position.start;return g.length!==0&&` `+g.join(` `)+` `},b.normalizeLineEndings=function(E){return E.replace(/\r\n/g,` `).replace(/\n/g,`\r `)},b.matchesPseudo=function(E,v){return v.find((function(_){return E.indexOf(_)>-1}))},b.compareFunc=function(E,v){for(var _=Math.min(E.length,v.length),m=0;m<_;m++)if(E[m]!==v[m])return E[m]>v[m]?1:-1;return E.length-v.length},b.compare=function(E,v){return b.compareFunc(E,v)==1?E:v},b.getDefaultOptions=function(E){var v=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},E);return v.webResources=v.webResources||{},v}},4984:(j,b,H)=>{j.exports={lex:H(5625),parse:H(2579),stringify:H(7134)}},1514:(j,b)=>{function H(w){var N=[].slice.call(arguments,1);N.unshift("["+w+"]"),process.stderr.write(N.join(" ")+` `)}j.exports=function(w){return H.bind(null,w)}},5625:(j,b,H)=>{var w=!1,N=!1,A=H(1514)("lex");j.exports=function(E){var v,_,m="",T=0,g=-1,S=0,x=1,k="before-selector",R=[k],h={},I=[],D=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function M(gt){return gt?R[R.length-1-gt]:k}function B(gt){var wt=g+1;return gt===E.slice(wt,wt+gt.length)}function rt(gt){var wt=E.slice(g).indexOf(gt);return wt>0&&wt}function ot(gt){return gt===dt(1)}function dt(gt){return E[g+(gt||1)]}function st(){var gt=R.pop();return k=R[R.length-1],gt}function Z(gt){return k=gt,R.push(k),R.length}function K(gt){var wt=k;return R[R.length-1]=k=gt,wt}function Q(gt){if((gt||1)==1)E[g]==` `?(x++,T=1):T++,g++;else{var wt=E.slice(g,g+gt).split(` `);wt.length>1&&(x+=wt.length-1,T=1),T+=wt[wt.length-1].length,g+=gt}}function z(){h.end={line:x,col:T},w&&A("addToken:",JSON.stringify(h,null,2)),I.push(h),m="",h={}}function at(gt){h={type:gt,start:{line:x,col:T}}}for(N&&(v=Date.now());Q(),_=E[g];)switch(w&&A(_,M()),_){case" ":switch(M()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":m+=_}break;case` `:case" ":case"\r":case"\f":switch(M()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":m+=_;break;case"at-value":_===` `&&(h.value=m.trim(),z(),st())}break;case":":switch(M()){case"name":h.name=m.trim(),m="",K("before-value");break;case"before-selector":m+=_,at("selector"),Z("selector");break;case"before-value":K("value"),m+=_;break;default:m+=_}break;case";":switch(M()){case"name":case"before-value":case"value":m.trim().length>0&&(h.value=m.trim(),z()),K("before-name");break;case"value-paren":default:m+=_;break;case"at-value":h.value=m.trim(),z(),st();case"before-name":}break;case"{":switch(M()){case"selector":if(dt(-1)==="\\"){m+=_;break}h.text=m.trim(),z(),K("before-name"),S+=1;break;case"at-group":switch(h.name=m.trim(),h.type){case"font-face":case"viewport":case"page":Z("before-name");break;default:Z("before-selector")}z(),S+=1;break;case"name":case"at-rule":h.name=m.trim(),z(),Z("before-name"),S+=1;break;case"comment":case"double-string":case"single-string":m+=_;break;case"before-value":K("value"),m+=_}break;case"}":switch(M()){case"before-name":case"name":case"before-value":case"value":m&&(h.value=m.trim()),h.name&&h.value&&z(),at("end"),z(),st(),M()==="at-group"&&(at("at-group-end"),z(),st()),S>0&&(S-=1);break;case"at-group":case"before-selector":case"selector":if(dt(-1)==="\\"){m+=_;break}S>0&&M(1)==="at-group"&&(at("at-group-end"),z()),S>1&&st(),S>0&&(S-=1);break;case"double-string":case"single-string":case"comment":m+=_}break;case'"':case"'":switch(M()){case"double-string":_==='"'&&dt(-1)!=="\\"&&st();break;case"single-string":_==="'"&&dt(-1)!=="\\"&&st();break;case"before-at-value":K("at-value"),Z(_==='"'?"double-string":"single-string");break;case"before-value":K("value"),Z(_==='"'?"double-string":"single-string");break;case"comment":break;default:dt(-1)!=="\\"&&Z(_==='"'?"double-string":"single-string")}m+=_;break;case"/":switch(M()){case"comment":case"double-string":case"single-string":m+=_;break;case"before-value":case"selector":case"name":case"value":if(ot("*")){var $=rt("*/");$&&Q($+1)}else M()=="before-value"&&K("value"),m+=_;break;default:ot("*")?(at("comment"),Z("comment"),Q()):m+=_}break;case"*":switch(M()){case"comment":ot("/")?(h.text=m,Q(),z(),st()):m+=_;break;case"before-selector":m+=_,at("selector"),Z("selector");break;case"before-value":K("value"),m+=_;break;default:m+=_}break;case"@":switch(M()){case"comment":case"double-string":case"single-string":m+=_;break;case"before-value":K("value"),m+=_;break;default:for(var mt,X,kt=!1,vt=0,Ct=D.length;!kt&&vt{var w,N,A,E,v=!1,_=!1,m=H(1514)("parse"),T=H(5625);function g(I,D){var M;D||(D={});for(var B=["type","name","value"],rt={},ot=0;ot{var w,N,A,E,v,_,m=!1,T=!1,g=H(1514)("stringify");function S(B){if(!B)return N?"":Array(E).join(A||"");E+=B}function x(B){var rt="",ot=B.prefix||"";B.name&&(rt=" "+B.name);var dt=B.type!=="page";return"@"+ot+B.type+rt+_+I(B,dt)+v}function k(B){return w?"/*"+(B.text||"")+"*/"+v:""}function R(B){var rt;return B.selectors?rt=B.selectors.join(","+v):(rt="@"+B.type,rt+=B.name?" "+B.name:""),S()+rt+_+I(B)+v}function h(B,rt){return B.reduce((function(ot,dt){var st=dt.type==="comment"?k(dt):rt(dt);return st&&ot.push(st),ot}),[])}function I(B,rt){var ot=B.declarations,dt=D;return B.rules&&(ot=B.rules,dt=R),ot=(function(st,Z){if(!st)return"";S(1);var K=h(st,Z);return S(-1),K.length?K.join(v):""})(ot,dt),ot&&(ot=v+ot+(rt?"":v)),"{"+ot+S()+"}"}function D(B){if(B.type==="property")return(function(rt){var ot=rt.name?rt.name+":"+_:"";return S()+ot+rt.value+";"})(B);m&&g("stringifyDeclaration: unexpected node:",JSON.stringify(B))}function M(B){switch(B.type){case"rule":return R(B);case"media":case"keyframes":case"font-face":case"supports":case"viewport":case"document":case"page":return x(B);case"comment":return k(B);case"import":case"charset":case"namespace":return(function(rt){return"@"+rt.type+" "+rt.value+";"+v})(B)}m&&g("stringifyNode: unexpected node: "+JSON.stringify(B))}j.exports=function(B,rt){var ot;rt||(rt={}),A=rt.indentation||"",N=!!rt.compress,w=!!rt.comments,E=1,N?v=_="":(v=` `,_=" "),T&&(ot=Date.now());var dt=h(B.stylesheet.rules,M).join(` `).trim();return T&&g("ran in",Date.now()-ot+"ms"),dt}},9769:function(j,b,H){"use strict";var w=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(b,"__esModule",{value:!0}),b.generate=b.compile=void 0;var N=w(H(1073));b.compile=function(A){var E=A[0],v=A[1]-1;if(v<0&&E<=0)return N.default.falseFunc;if(E===-1)return function(T){return T<=v};if(E===0)return function(T){return T===v};if(E===1)return v<0?N.default.trueFunc:function(T){return T>=v};var _=Math.abs(E),m=(v%_+_)%_;return E>1?function(T){return T>=v&&T%_===m}:function(T){return T<=v&&T%_===m}},b.generate=function(A){var E=A[0],v=A[1]-1,_=0;if(E<0){var m=-E,T=(v%m+m)%m;return function(){var g=T+m*_++;return g>v?null:g}}return E===0?v<0?function(){return null}:function(){return _++==0?v:null}:(v<0&&(v+=E*Math.ceil(-v/E)),function(){return E*_+++v})}},7540:(j,b,H)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.sequence=b.generate=b.compile=b.parse=void 0;var w=H(7766);Object.defineProperty(b,"parse",{enumerable:!0,get:function(){return w.parse}});var N=H(9769);Object.defineProperty(b,"compile",{enumerable:!0,get:function(){return N.compile}}),Object.defineProperty(b,"generate",{enumerable:!0,get:function(){return N.generate}}),b.default=function(A){return(0,N.compile)((0,w.parse)(A))},b.sequence=function(A){return(0,N.generate)((0,w.parse)(A))}},7766:(j,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.parse=void 0;var H=new Set([9,10,12,13,32]),w=48,N=57;b.parse=function(A){if((A=A.trim().toLowerCase())==="even")return[2,0];if(A==="odd")return[2,1];var E=0,v=0,_=T(),m=g();if(E=w&&A.charCodeAt(E)<=N;)k=10*k+(A.charCodeAt(E)-w),E++;return E===x?null:k}function S(){for(;E{"use strict";const w=H(1515),{DOCUMENT_MODE:N}=H(6152),A={element:1,text:3,cdata:4,comment:8},E={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"};class v{constructor(S){for(const x of Object.keys(S))this[x]=S[x]}get firstChild(){const S=this.children;return S&&S[0]||null}get lastChild(){const S=this.children;return S&&S[S.length-1]||null}get nodeType(){return A[this.type]||A.element}}Object.keys(E).forEach((g=>{const S=E[g];Object.defineProperty(v.prototype,g,{get:function(){return this[S]||null},set:function(x){return this[S]=x,x}})})),b.createDocument=function(){return new v({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":N.NO_QUIRKS})},b.createDocumentFragment=function(){return new v({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},b.createElement=function(g,S,x){const k=Object.create(null),R=Object.create(null),h=Object.create(null);for(let I=0;I{"use strict";const{DOCUMENT_MODE:w}=H(6152),N="html",A="about:legacy-compat",E="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",v=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],_=v.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),m=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],T=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],g=T.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function S(k){const R=k.indexOf('"')!==-1?"'":'"';return R+k+R}function x(k,R){for(let h=0;h-1)return w.QUIRKS;let I=R===null?_:v;if(x(h,I))return w.QUIRKS;if(I=R===null?T:g,x(h,I))return w.LIMITED_QUIRKS}return w.NO_QUIRKS},b.serializeContent=function(k,R,h){let I="!DOCTYPE ";return k&&(I+=k),R?I+=" PUBLIC "+S(R):h&&(I+=" SYSTEM"),h!==null&&(I+=" "+S(h)),I}},1734:j=>{"use strict";j.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},8779:(j,b,H)=>{"use strict";const w=H(5763),N=H(6152),A=N.TAG_NAMES,E=N.NAMESPACES,v=N.ATTRS,_="text/html",m="application/xhtml+xml",T="definitionurl",g="definitionURL",S={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},x={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:E.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:E.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:E.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:E.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:E.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:E.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:E.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:E.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:E.XML},"xml:space":{prefix:"xml",name:"space",namespace:E.XML},xmlns:{prefix:"",name:"xmlns",namespace:E.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:E.XMLNS}},k=b.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},R={[A.B]:!0,[A.BIG]:!0,[A.BLOCKQUOTE]:!0,[A.BODY]:!0,[A.BR]:!0,[A.CENTER]:!0,[A.CODE]:!0,[A.DD]:!0,[A.DIV]:!0,[A.DL]:!0,[A.DT]:!0,[A.EM]:!0,[A.EMBED]:!0,[A.H1]:!0,[A.H2]:!0,[A.H3]:!0,[A.H4]:!0,[A.H5]:!0,[A.H6]:!0,[A.HEAD]:!0,[A.HR]:!0,[A.I]:!0,[A.IMG]:!0,[A.LI]:!0,[A.LISTING]:!0,[A.MENU]:!0,[A.META]:!0,[A.NOBR]:!0,[A.OL]:!0,[A.P]:!0,[A.PRE]:!0,[A.RUBY]:!0,[A.S]:!0,[A.SMALL]:!0,[A.SPAN]:!0,[A.STRONG]:!0,[A.STRIKE]:!0,[A.SUB]:!0,[A.SUP]:!0,[A.TABLE]:!0,[A.TT]:!0,[A.U]:!0,[A.UL]:!0,[A.VAR]:!0};b.causesExit=function(h){const I=h.tagName;return I===A.FONT&&(w.getTokenAttr(h,v.COLOR)!==null||w.getTokenAttr(h,v.SIZE)!==null||w.getTokenAttr(h,v.FACE)!==null)||R[I]},b.adjustTokenMathMLAttrs=function(h){for(let I=0;I{"use strict";const H=b.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};b.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},b.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const w=b.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};b.SPECIAL_ELEMENTS={[H.HTML]:{[w.ADDRESS]:!0,[w.APPLET]:!0,[w.AREA]:!0,[w.ARTICLE]:!0,[w.ASIDE]:!0,[w.BASE]:!0,[w.BASEFONT]:!0,[w.BGSOUND]:!0,[w.BLOCKQUOTE]:!0,[w.BODY]:!0,[w.BR]:!0,[w.BUTTON]:!0,[w.CAPTION]:!0,[w.CENTER]:!0,[w.COL]:!0,[w.COLGROUP]:!0,[w.DD]:!0,[w.DETAILS]:!0,[w.DIR]:!0,[w.DIV]:!0,[w.DL]:!0,[w.DT]:!0,[w.EMBED]:!0,[w.FIELDSET]:!0,[w.FIGCAPTION]:!0,[w.FIGURE]:!0,[w.FOOTER]:!0,[w.FORM]:!0,[w.FRAME]:!0,[w.FRAMESET]:!0,[w.H1]:!0,[w.H2]:!0,[w.H3]:!0,[w.H4]:!0,[w.H5]:!0,[w.H6]:!0,[w.HEAD]:!0,[w.HEADER]:!0,[w.HGROUP]:!0,[w.HR]:!0,[w.HTML]:!0,[w.IFRAME]:!0,[w.IMG]:!0,[w.INPUT]:!0,[w.LI]:!0,[w.LINK]:!0,[w.LISTING]:!0,[w.MAIN]:!0,[w.MARQUEE]:!0,[w.MENU]:!0,[w.META]:!0,[w.NAV]:!0,[w.NOEMBED]:!0,[w.NOFRAMES]:!0,[w.NOSCRIPT]:!0,[w.OBJECT]:!0,[w.OL]:!0,[w.P]:!0,[w.PARAM]:!0,[w.PLAINTEXT]:!0,[w.PRE]:!0,[w.SCRIPT]:!0,[w.SECTION]:!0,[w.SELECT]:!0,[w.SOURCE]:!0,[w.STYLE]:!0,[w.SUMMARY]:!0,[w.TABLE]:!0,[w.TBODY]:!0,[w.TD]:!0,[w.TEMPLATE]:!0,[w.TEXTAREA]:!0,[w.TFOOT]:!0,[w.TH]:!0,[w.THEAD]:!0,[w.TITLE]:!0,[w.TR]:!0,[w.TRACK]:!0,[w.UL]:!0,[w.WBR]:!0,[w.XMP]:!0},[H.MATHML]:{[w.MI]:!0,[w.MO]:!0,[w.MN]:!0,[w.MS]:!0,[w.MTEXT]:!0,[w.ANNOTATION_XML]:!0},[H.SVG]:{[w.TITLE]:!0,[w.FOREIGN_OBJECT]:!0,[w.DESC]:!0}}},4284:(j,b)=>{"use strict";const H=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];b.REPLACEMENT_CHARACTER="\uFFFD",b.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},b.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},b.isSurrogate=function(w){return w>=55296&&w<=57343},b.isSurrogatePair=function(w){return w>=56320&&w<=57343},b.getSurrogatePairCodePoint=function(w,N){return 1024*(w-55296)+9216+N},b.isControlCodePoint=function(w){return w!==32&&w!==10&&w!==13&&w!==9&&w!==12&&w>=1&&w<=31||w>=127&&w<=159},b.isUndefinedCodePoint=function(w){return w>=64976&&w<=65007||H.indexOf(w)>-1}},3843:(j,b,H)=>{"use strict";const w=H(1704);j.exports=class extends w{constructor(N,A){super(N),this.posTracker=null,this.onParseError=A.onParseError}_setErrorLocation(N){N.startLine=N.endLine=this.posTracker.line,N.startCol=N.endCol=this.posTracker.col,N.startOffset=N.endOffset=this.posTracker.offset}_reportError(N){const A={code:N,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(A),this.onParseError(A)}_getOverriddenMethods(N){return{_err(A){N._reportError(A)}}}}},2232:(j,b,H)=>{"use strict";const w=H(3843),N=H(50),A=H(6110),E=H(1704);j.exports=class extends w{constructor(v,_){super(v,_),this.opts=_,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(v){this.ctLoc&&(v.startLine=this.ctLoc.startLine,v.startCol=this.ctLoc.startCol,v.startOffset=this.ctLoc.startOffset,v.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,v.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,v.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(v,_){return{_bootstrap(m,T){_._bootstrap.call(this,m,T),E.install(this.tokenizer,N,v.opts),E.install(this.tokenizer,A)},_processInputToken(m){v.ctLoc=m.location,_._processInputToken.call(this,m)},_err(m,T){v.locBeforeToken=T&&T.beforeToken,v._reportError(m)}}}}},3288:(j,b,H)=>{"use strict";const w=H(3843),N=H(7930),A=H(1704);j.exports=class extends w{constructor(E,v){super(E,v),this.posTracker=A.install(E,N),this.lastErrOffset=-1}_reportError(E){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(E))}}},50:(j,b,H)=>{"use strict";const w=H(3843),N=H(3288),A=H(1704);j.exports=class extends w{constructor(E,v){super(E,v);const _=A.install(E.preprocessor,N,v);this.posTracker=_.posTracker}}},1077:(j,b,H)=>{"use strict";const w=H(1704);j.exports=class extends w{constructor(N,A){super(N),this.onItemPop=A.onItemPop}_getOverriddenMethods(N,A){return{pop(){N.onItemPop(this.current),A.pop.call(this)},popAllUpToHtmlElement(){for(let E=this.stackTop;E>0;E--)N.onItemPop(this.items[E]);A.popAllUpToHtmlElement.call(this)},remove(E){N.onItemPop(this.current),A.remove.call(this,E)}}}}},452:(j,b,H)=>{"use strict";const w=H(1704),N=H(5763),A=H(6110),E=H(1077),v=H(6152).TAG_NAMES;j.exports=class extends w{constructor(_){super(_),this.parser=_,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(_){let m=null;this.lastStartTagToken&&(m=Object.assign({},this.lastStartTagToken.location),m.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(_,m)}_setEndLocation(_,m){if(this.treeAdapter.getNodeSourceCodeLocation(_)&&m.location){const T=m.location,g=this.treeAdapter.getTagName(_),S={};m.type===N.END_TAG_TOKEN&&g===m.tagName?(S.endTag=Object.assign({},T),S.endLine=T.endLine,S.endCol=T.endCol,S.endOffset=T.endOffset):(S.endLine=T.startLine,S.endCol=T.startCol,S.endOffset=T.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(_,S)}}_getOverriddenMethods(_,m){return{_bootstrap(T,g){m._bootstrap.call(this,T,g),_.lastStartTagToken=null,_.lastFosterParentingLocation=null,_.currentToken=null;const S=w.install(this.tokenizer,A);_.posTracker=S.posTracker,w.install(this.openElements,E,{onItemPop:function(x){_._setEndLocation(x,_.currentToken)}})},_runParsingLoop(T){m._runParsingLoop.call(this,T);for(let g=this.openElements.stackTop;g>=0;g--)_._setEndLocation(this.openElements.items[g],_.currentToken)},_processTokenInForeignContent(T){_.currentToken=T,m._processTokenInForeignContent.call(this,T)},_processToken(T){if(_.currentToken=T,m._processToken.call(this,T),T.type===N.END_TAG_TOKEN&&(T.tagName===v.HTML||T.tagName===v.BODY&&this.openElements.hasInScope(v.BODY)))for(let g=this.openElements.stackTop;g>=0;g--){const S=this.openElements.items[g];if(this.treeAdapter.getTagName(S)===T.tagName){_._setEndLocation(S,T);break}}},_setDocumentType(T){m._setDocumentType.call(this,T);const g=this.treeAdapter.getChildNodes(this.document),S=g.length;for(let x=0;x{"use strict";const w=H(1704),N=H(5763),A=H(7930);j.exports=class extends w{constructor(E){super(E),this.tokenizer=E,this.posTracker=w.install(E.preprocessor,A),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const E=this.tokenizer.currentToken,v=this.tokenizer.currentAttr;E.location.attrs||(E.location.attrs=Object.create(null)),E.location.attrs[v.name]=this.currentAttrLocation}_getOverriddenMethods(E,v){const _={_createStartTagToken(){v._createStartTagToken.call(this),this.currentToken.location=E.ctLoc},_createEndTagToken(){v._createEndTagToken.call(this),this.currentToken.location=E.ctLoc},_createCommentToken(){v._createCommentToken.call(this),this.currentToken.location=E.ctLoc},_createDoctypeToken(m){v._createDoctypeToken.call(this,m),this.currentToken.location=E.ctLoc},_createCharacterToken(m,T){v._createCharacterToken.call(this,m,T),this.currentCharacterToken.location=E.ctLoc},_createEOFToken(){v._createEOFToken.call(this),this.currentToken.location=E._getCurrentLocation()},_createAttr(m){v._createAttr.call(this,m),E.currentAttrLocation=E._getCurrentLocation()},_leaveAttrName(m){v._leaveAttrName.call(this,m),E._attachCurrentAttrLocationInfo()},_leaveAttrValue(m){v._leaveAttrValue.call(this,m),E._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const m=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=m.startLine,this.currentCharacterToken.location.endCol=m.startCol,this.currentCharacterToken.location.endOffset=m.startOffset),this.currentToken.type===N.EOF_TOKEN?(m.endLine=m.startLine,m.endCol=m.startCol,m.endOffset=m.startOffset):(m.endLine=E.posTracker.line,m.endCol=E.posTracker.col+1,m.endOffset=E.posTracker.offset+1),v._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const m=this.currentCharacterToken&&this.currentCharacterToken.location;m&&m.endOffset===-1&&(m.endLine=E.posTracker.line,m.endCol=E.posTracker.col,m.endOffset=E.posTracker.offset),v._emitCurrentCharacterToken.call(this)}};return Object.keys(N.MODE).forEach((m=>{const T=N.MODE[m];_[T]=function(g){E.ctLoc=E._getCurrentLocation(),v[T].call(this,g)}})),_}}},7930:(j,b,H)=>{"use strict";const w=H(1704);j.exports=class extends w{constructor(N){super(N),this.preprocessor=N,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(N,A){return{advance(){const E=this.pos+1,v=this.html[E];return N.isEol&&(N.isEol=!1,N.line++,N.lineStartPos=E),(v===` `||v==="\r"&&this.html[E+1]!==` `)&&(N.isEol=!0),N.col=E-N.lineStartPos+1,N.offset=N.droppedBufferSize+E,A.advance.call(this)},retreat(){A.retreat.call(this),N.isEol=!1,N.col=this.pos-N.lineStartPos+1},dropParsedChunk(){const E=this.pos;A.dropParsedChunk.call(this);const v=E-this.pos;N.lineStartPos-=v,N.droppedBufferSize+=v,N.offset=N.droppedBufferSize+this.pos}}}}},2394:(j,b,H)=>{"use strict";const w=H(7045),N=H(3988);b.parse=function(A,E){return new w(E).parse(A)},b.parseFragment=function(A,E,v){return typeof A=="string"&&(v=E,E=A,A=null),new w(v).parseFragment(E,A)},b.serialize=function(A,E){return new N(A,E).serialize()}},2484:j=>{"use strict";class H{constructor(N){this.length=0,this.entries=[],this.treeAdapter=N,this.bookmark=null}_getNoahArkConditionCandidates(N){const A=[];if(this.length>=3){const E=this.treeAdapter.getAttrList(N).length,v=this.treeAdapter.getTagName(N),_=this.treeAdapter.getNamespaceURI(N);for(let m=this.length-1;m>=0;m--){const T=this.entries[m];if(T.type===H.MARKER_ENTRY)break;const g=T.element,S=this.treeAdapter.getAttrList(g);this.treeAdapter.getTagName(g)===v&&this.treeAdapter.getNamespaceURI(g)===_&&S.length===E&&A.push({idx:m,attrs:S})}}return A.length<3?[]:A}_ensureNoahArkCondition(N){const A=this._getNoahArkConditionCandidates(N);let E=A.length;if(E){const v=this.treeAdapter.getAttrList(N),_=v.length,m=Object.create(null);for(let T=0;T<_;T++){const g=v[T];m[g.name]=g.value}for(let T=0;T<_;T++)for(let g=0;g=2;T--)this.entries.splice(A[T].idx,1),this.length--}}insertMarker(){this.entries.push({type:H.MARKER_ENTRY}),this.length++}pushElement(N,A){this._ensureNoahArkCondition(N),this.entries.push({type:H.ELEMENT_ENTRY,element:N,token:A}),this.length++}insertElementAfterBookmark(N,A){let E=this.length-1;for(;E>=0&&this.entries[E]!==this.bookmark;E--);this.entries.splice(E+1,0,{type:H.ELEMENT_ENTRY,element:N,token:A}),this.length++}removeEntry(N){for(let A=this.length-1;A>=0;A--)if(this.entries[A]===N){this.entries.splice(A,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const N=this.entries.pop();if(this.length--,N.type===H.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(N){for(let A=this.length-1;A>=0;A--){const E=this.entries[A];if(E.type===H.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(E.element)===N)return E}return null}getElementEntry(N){for(let A=this.length-1;A>=0;A--){const E=this.entries[A];if(E.type===H.ELEMENT_ENTRY&&E.element===N)return E}return null}}H.MARKER_ENTRY="MARKER_ENTRY",H.ELEMENT_ENTRY="ELEMENT_ENTRY",j.exports=H},7045:(j,b,H)=>{"use strict";const w=H(5763),N=H(6519),A=H(2484),E=H(452),v=H(2232),_=H(1704),m=H(7296),T=H(8904),g=H(1515),S=H(8779),x=H(1734),k=H(4284),R=H(6152),h=R.TAG_NAMES,I=R.NAMESPACES,D=R.ATTRS,M={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:m},B="hidden",rt=8,ot=3,dt="INITIAL_MODE",st="BEFORE_HTML_MODE",Z="BEFORE_HEAD_MODE",K="IN_HEAD_MODE",Q="IN_HEAD_NO_SCRIPT_MODE",z="AFTER_HEAD_MODE",at="IN_BODY_MODE",$="TEXT_MODE",mt="IN_TABLE_MODE",X="IN_TABLE_TEXT_MODE",kt="IN_CAPTION_MODE",vt="IN_COLUMN_GROUP_MODE",Ct="IN_TABLE_BODY_MODE",gt="IN_ROW_MODE",wt="IN_CELL_MODE",Nt="IN_SELECT_MODE",Xt="IN_SELECT_IN_TABLE_MODE",zt="IN_TEMPLATE_MODE",Qt="AFTER_BODY_MODE",Rt="IN_FRAMESET_MODE",ut="AFTER_FRAMESET_MODE",Bt="AFTER_AFTER_BODY_MODE",te="AFTER_AFTER_FRAMESET_MODE",oe={[h.TR]:gt,[h.TBODY]:Ct,[h.THEAD]:Ct,[h.TFOOT]:Ct,[h.CAPTION]:kt,[h.COLGROUP]:vt,[h.TABLE]:mt,[h.BODY]:at,[h.FRAMESET]:Rt},Ht={[h.CAPTION]:mt,[h.COLGROUP]:mt,[h.TBODY]:mt,[h.TFOOT]:mt,[h.THEAD]:mt,[h.COL]:vt,[h.TR]:Ct,[h.TD]:gt,[h.TH]:gt},ee={[dt]:{[w.CHARACTER_TOKEN]:Gt,[w.NULL_CHARACTER_TOKEN]:Gt,[w.WHITESPACE_CHARACTER_TOKEN]:Pe,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:function(P,q){P._setDocumentType(q);const U=q.forceQuirks?R.DOCUMENT_MODE.QUIRKS:g.getDocumentMode(q);g.isConforming(q)||P._err(x.nonConformingDoctype),P.treeAdapter.setDocumentMode(P.document,U),P.insertionMode=st},[w.START_TAG_TOKEN]:Gt,[w.END_TAG_TOKEN]:Gt,[w.EOF_TOKEN]:Gt},[st]:{[w.CHARACTER_TOKEN]:Kt,[w.NULL_CHARACTER_TOKEN]:Kt,[w.WHITESPACE_CHARACTER_TOKEN]:Pe,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){q.tagName===h.HTML?(P._insertElement(q,I.HTML),P.insertionMode=Z):Kt(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U!==h.HTML&&U!==h.HEAD&&U!==h.BODY&&U!==h.BR||Kt(P,q)},[w.EOF_TOKEN]:Kt},[Z]:{[w.CHARACTER_TOKEN]:se,[w.NULL_CHARACTER_TOKEN]:se,[w.WHITESPACE_CHARACTER_TOKEN]:Pe,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:It,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.HEAD?(P._insertElement(q,I.HTML),P.headElement=P.openElements.current,P.insertionMode=K):se(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HEAD||U===h.BODY||U===h.HTML||U===h.BR?se(P,q):P._err(x.endTagWithoutMatchingOpenElement)},[w.EOF_TOKEN]:se},[K]:{[w.CHARACTER_TOKEN]:ke,[w.NULL_CHARACTER_TOKEN]:ke,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:It,[w.START_TAG_TOKEN]:Se,[w.END_TAG_TOKEN]:Qe,[w.EOF_TOKEN]:ke},[Q]:{[w.CHARACTER_TOKEN]:nn,[w.NULL_CHARACTER_TOKEN]:nn,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:It,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.BASEFONT||U===h.BGSOUND||U===h.HEAD||U===h.LINK||U===h.META||U===h.NOFRAMES||U===h.STYLE?Se(P,q):U===h.NOSCRIPT?P._err(x.nestedNoscriptInHead):nn(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.NOSCRIPT?(P.openElements.pop(),P.insertionMode=K):U===h.BR?nn(P,q):P._err(x.endTagWithoutMatchingOpenElement)},[w.EOF_TOKEN]:nn},[z]:{[w.CHARACTER_TOKEN]:ve,[w.NULL_CHARACTER_TOKEN]:ve,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:It,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.BODY?(P._insertElement(q,I.HTML),P.framesetOk=!1,P.insertionMode=at):U===h.FRAMESET?(P._insertElement(q,I.HTML),P.insertionMode=Rt):U===h.BASE||U===h.BASEFONT||U===h.BGSOUND||U===h.LINK||U===h.META||U===h.NOFRAMES||U===h.SCRIPT||U===h.STYLE||U===h.TEMPLATE||U===h.TITLE?(P._err(x.abandonedHeadElementChild),P.openElements.push(P.headElement),Se(P,q),P.openElements.remove(P.headElement)):U===h.HEAD?P._err(x.misplacedStartTagForHeadElement):ve(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.BODY||U===h.HTML||U===h.BR?ve(P,q):U===h.TEMPLATE?Qe(P,q):P._err(x.endTagWithoutMatchingOpenElement)},[w.EOF_TOKEN]:ve},[at]:{[w.CHARACTER_TOKEN]:pt,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:wn,[w.END_TAG_TOKEN]:Pn,[w.EOF_TOKEN]:fn},[$]:{[w.CHARACTER_TOKEN]:bt,[w.NULL_CHARACTER_TOKEN]:bt,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:Pe,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:Pe,[w.END_TAG_TOKEN]:function(P,q){q.tagName===h.SCRIPT&&(P.pendingScript=P.openElements.current),P.openElements.pop(),P.insertionMode=P.originalInsertionMode},[w.EOF_TOKEN]:function(P,q){P._err(x.eofInElementThatCanContainOnlyText),P.openElements.pop(),P.insertionMode=P.originalInsertionMode,P._processToken(q)}},[mt]:{[w.CHARACTER_TOKEN]:mn,[w.NULL_CHARACTER_TOKEN]:mn,[w.WHITESPACE_CHARACTER_TOKEN]:mn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:Wn,[w.END_TAG_TOKEN]:Gr,[w.EOF_TOKEN]:fn},[X]:{[w.CHARACTER_TOKEN]:function(P,q){P.pendingCharacterTokens.push(q),P.hasNonWhitespacePendingCharacterToken=!0},[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:function(P,q){P.pendingCharacterTokens.push(q)},[w.COMMENT_TOKEN]:lr,[w.DOCTYPE_TOKEN]:lr,[w.START_TAG_TOKEN]:lr,[w.END_TAG_TOKEN]:lr,[w.EOF_TOKEN]:lr},[kt]:{[w.CHARACTER_TOKEN]:pt,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.CAPTION||U===h.COL||U===h.COLGROUP||U===h.TBODY||U===h.TD||U===h.TFOOT||U===h.TH||U===h.THEAD||U===h.TR?P.openElements.hasInTableScope(h.CAPTION)&&(P.openElements.generateImpliedEndTags(),P.openElements.popUntilTagNamePopped(h.CAPTION),P.activeFormattingElements.clearToLastMarker(),P.insertionMode=mt,P._processToken(q)):wn(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.CAPTION||U===h.TABLE?P.openElements.hasInTableScope(h.CAPTION)&&(P.openElements.generateImpliedEndTags(),P.openElements.popUntilTagNamePopped(h.CAPTION),P.activeFormattingElements.clearToLastMarker(),P.insertionMode=mt,U===h.TABLE&&P._processToken(q)):U!==h.BODY&&U!==h.COL&&U!==h.COLGROUP&&U!==h.HTML&&U!==h.TBODY&&U!==h.TD&&U!==h.TFOOT&&U!==h.TH&&U!==h.THEAD&&U!==h.TR&&Pn(P,q)},[w.EOF_TOKEN]:fn},[vt]:{[w.CHARACTER_TOKEN]:fr,[w.NULL_CHARACTER_TOKEN]:fr,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.COL?(P._appendElement(q,I.HTML),q.ackSelfClosing=!0):U===h.TEMPLATE?Se(P,q):fr(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.COLGROUP?P.openElements.currentTagName===h.COLGROUP&&(P.openElements.pop(),P.insertionMode=mt):U===h.TEMPLATE?Qe(P,q):U!==h.COL&&fr(P,q)},[w.EOF_TOKEN]:fn},[Ct]:{[w.CHARACTER_TOKEN]:mn,[w.NULL_CHARACTER_TOKEN]:mn,[w.WHITESPACE_CHARACTER_TOKEN]:mn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.TR?(P.openElements.clearBackToTableBodyContext(),P._insertElement(q,I.HTML),P.insertionMode=gt):U===h.TH||U===h.TD?(P.openElements.clearBackToTableBodyContext(),P._insertFakeElement(h.TR),P.insertionMode=gt,P._processToken(q)):U===h.CAPTION||U===h.COL||U===h.COLGROUP||U===h.TBODY||U===h.TFOOT||U===h.THEAD?P.openElements.hasTableBodyContextInTableScope()&&(P.openElements.clearBackToTableBodyContext(),P.openElements.pop(),P.insertionMode=mt,P._processToken(q)):Wn(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.TBODY||U===h.TFOOT||U===h.THEAD?P.openElements.hasInTableScope(U)&&(P.openElements.clearBackToTableBodyContext(),P.openElements.pop(),P.insertionMode=mt):U===h.TABLE?P.openElements.hasTableBodyContextInTableScope()&&(P.openElements.clearBackToTableBodyContext(),P.openElements.pop(),P.insertionMode=mt,P._processToken(q)):(U!==h.BODY&&U!==h.CAPTION&&U!==h.COL&&U!==h.COLGROUP||U!==h.HTML&&U!==h.TD&&U!==h.TH&&U!==h.TR)&&Gr(P,q)},[w.EOF_TOKEN]:fn},[gt]:{[w.CHARACTER_TOKEN]:mn,[w.NULL_CHARACTER_TOKEN]:mn,[w.WHITESPACE_CHARACTER_TOKEN]:mn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.TH||U===h.TD?(P.openElements.clearBackToTableRowContext(),P._insertElement(q,I.HTML),P.insertionMode=wt,P.activeFormattingElements.insertMarker()):U===h.CAPTION||U===h.COL||U===h.COLGROUP||U===h.TBODY||U===h.TFOOT||U===h.THEAD||U===h.TR?P.openElements.hasInTableScope(h.TR)&&(P.openElements.clearBackToTableRowContext(),P.openElements.pop(),P.insertionMode=Ct,P._processToken(q)):Wn(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.TR?P.openElements.hasInTableScope(h.TR)&&(P.openElements.clearBackToTableRowContext(),P.openElements.pop(),P.insertionMode=Ct):U===h.TABLE?P.openElements.hasInTableScope(h.TR)&&(P.openElements.clearBackToTableRowContext(),P.openElements.pop(),P.insertionMode=Ct,P._processToken(q)):U===h.TBODY||U===h.TFOOT||U===h.THEAD?(P.openElements.hasInTableScope(U)||P.openElements.hasInTableScope(h.TR))&&(P.openElements.clearBackToTableRowContext(),P.openElements.pop(),P.insertionMode=Ct,P._processToken(q)):(U!==h.BODY&&U!==h.CAPTION&&U!==h.COL&&U!==h.COLGROUP||U!==h.HTML&&U!==h.TD&&U!==h.TH)&&Gr(P,q)},[w.EOF_TOKEN]:fn},[wt]:{[w.CHARACTER_TOKEN]:pt,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.CAPTION||U===h.COL||U===h.COLGROUP||U===h.TBODY||U===h.TD||U===h.TFOOT||U===h.TH||U===h.THEAD||U===h.TR?(P.openElements.hasInTableScope(h.TD)||P.openElements.hasInTableScope(h.TH))&&(P._closeTableCell(),P._processToken(q)):wn(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.TD||U===h.TH?P.openElements.hasInTableScope(U)&&(P.openElements.generateImpliedEndTags(),P.openElements.popUntilTagNamePopped(U),P.activeFormattingElements.clearToLastMarker(),P.insertionMode=gt):U===h.TABLE||U===h.TBODY||U===h.TFOOT||U===h.THEAD||U===h.TR?P.openElements.hasInTableScope(U)&&(P._closeTableCell(),P._processToken(q)):U!==h.BODY&&U!==h.CAPTION&&U!==h.COL&&U!==h.COLGROUP&&U!==h.HTML&&Pn(P,q)},[w.EOF_TOKEN]:fn},[Nt]:{[w.CHARACTER_TOKEN]:bt,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:an,[w.END_TAG_TOKEN]:On,[w.EOF_TOKEN]:fn},[Xt]:{[w.CHARACTER_TOKEN]:bt,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.CAPTION||U===h.TABLE||U===h.TBODY||U===h.TFOOT||U===h.THEAD||U===h.TR||U===h.TD||U===h.TH?(P.openElements.popUntilTagNamePopped(h.SELECT),P._resetInsertionMode(),P._processToken(q)):an(P,q)},[w.END_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.CAPTION||U===h.TABLE||U===h.TBODY||U===h.TFOOT||U===h.THEAD||U===h.TR||U===h.TD||U===h.TH?P.openElements.hasInTableScope(U)&&(P.openElements.popUntilTagNamePopped(h.SELECT),P._resetInsertionMode(),P._processToken(q)):On(P,q)},[w.EOF_TOKEN]:fn},[zt]:{[w.CHARACTER_TOKEN]:pt,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;if(U===h.BASE||U===h.BASEFONT||U===h.BGSOUND||U===h.LINK||U===h.META||U===h.NOFRAMES||U===h.SCRIPT||U===h.STYLE||U===h.TEMPLATE||U===h.TITLE)Se(P,q);else{const _t=Ht[U]||at;P._popTmplInsertionMode(),P._pushTmplInsertionMode(_t),P.insertionMode=_t,P._processToken(q)}},[w.END_TAG_TOKEN]:function(P,q){q.tagName===h.TEMPLATE&&Qe(P,q)},[w.EOF_TOKEN]:Mn},[Qt]:{[w.CHARACTER_TOKEN]:Kn,[w.NULL_CHARACTER_TOKEN]:Kn,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:function(P,q){P._appendCommentNode(q,P.openElements.items[0])},[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){q.tagName===h.HTML?wn(P,q):Kn(P,q)},[w.END_TAG_TOKEN]:function(P,q){q.tagName===h.HTML?P.fragmentContext||(P.insertionMode=Bt):Kn(P,q)},[w.EOF_TOKEN]:Mt},[Rt]:{[w.CHARACTER_TOKEN]:Pe,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.FRAMESET?P._insertElement(q,I.HTML):U===h.FRAME?(P._appendElement(q,I.HTML),q.ackSelfClosing=!0):U===h.NOFRAMES&&Se(P,q)},[w.END_TAG_TOKEN]:function(P,q){q.tagName!==h.FRAMESET||P.openElements.isRootHtmlElementCurrent()||(P.openElements.pop(),P.fragmentContext||P.openElements.currentTagName===h.FRAMESET||(P.insertionMode=ut))},[w.EOF_TOKEN]:Mt},[ut]:{[w.CHARACTER_TOKEN]:Pe,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:bt,[w.COMMENT_TOKEN]:G,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.NOFRAMES&&Se(P,q)},[w.END_TAG_TOKEN]:function(P,q){q.tagName===h.HTML&&(P.insertionMode=te)},[w.EOF_TOKEN]:Mt},[Bt]:{[w.CHARACTER_TOKEN]:Ln,[w.NULL_CHARACTER_TOKEN]:Ln,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:tt,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){q.tagName===h.HTML?wn(P,q):Ln(P,q)},[w.END_TAG_TOKEN]:Ln,[w.EOF_TOKEN]:Mt},[te]:{[w.CHARACTER_TOKEN]:Pe,[w.NULL_CHARACTER_TOKEN]:Pe,[w.WHITESPACE_CHARACTER_TOKEN]:pn,[w.COMMENT_TOKEN]:tt,[w.DOCTYPE_TOKEN]:Pe,[w.START_TAG_TOKEN]:function(P,q){const U=q.tagName;U===h.HTML?wn(P,q):U===h.NOFRAMES&&Se(P,q)},[w.END_TAG_TOKEN]:Pe,[w.EOF_TOKEN]:Mt}};function me(P,q){let U=P.activeFormattingElements.getElementEntryInScopeWithTagName(q.tagName);return U?P.openElements.contains(U.element)?P.openElements.hasInScope(q.tagName)||(U=null):(P.activeFormattingElements.removeEntry(U),U=null):sn(P,q),U}function ue(P,q){let U=null;for(let _t=P.openElements.stackTop;_t>=0;_t--){const Wt=P.openElements.items[_t];if(Wt===q.element)break;P._isSpecialElement(Wt)&&(U=Wt)}return U||(P.openElements.popUntilElementPopped(q.element),P.activeFormattingElements.removeEntry(q)),U}function ce(P,q,U){let _t=q,Wt=P.openElements.getCommonAncestor(q);for(let He=0,Ke=Wt;Ke!==U;He++,Ke=Wt){Wt=P.openElements.getCommonAncestor(Ke);const fe=P.activeFormattingElements.getElementEntry(Ke),Le=fe&&He>=ot;!fe||Le?(Le&&P.activeFormattingElements.removeEntry(fe),P.openElements.remove(Ke)):(Ke=Ue(P,fe),_t===q&&(P.activeFormattingElements.bookmark=fe),P.treeAdapter.detachNode(_t),P.treeAdapter.appendChild(Ke,_t),_t=Ke)}return _t}function Ue(P,q){const U=P.treeAdapter.getNamespaceURI(q.element),_t=P.treeAdapter.createElement(q.token.tagName,U,q.token.attrs);return P.openElements.replace(q.element,_t),q.element=_t,_t}function en(P,q,U){if(P._isElementCausesFosterParenting(q))P._fosterParentElement(U);else{const _t=P.treeAdapter.getTagName(q),Wt=P.treeAdapter.getNamespaceURI(q);_t===h.TEMPLATE&&Wt===I.HTML&&(q=P.treeAdapter.getTemplateContent(q)),P.treeAdapter.appendChild(q,U)}}function Ge(P,q,U){const _t=P.treeAdapter.getNamespaceURI(U.element),Wt=U.token,He=P.treeAdapter.createElement(Wt.tagName,_t,Wt.attrs);P._adoptNodes(q,He),P.treeAdapter.appendChild(q,He),P.activeFormattingElements.insertElementAfterBookmark(He,U.token),P.activeFormattingElements.removeEntry(U),P.openElements.remove(U.element),P.openElements.insertAfter(q,He)}function Ze(P,q){let U;for(let _t=0;_t0?(P.openElements.generateImpliedEndTagsThoroughly(),P.openElements.currentTagName!==h.TEMPLATE&&P._err(x.closingOfElementWithOpenChildElements),P.openElements.popUntilTagNamePopped(h.TEMPLATE),P.activeFormattingElements.clearToLastMarker(),P._popTmplInsertionMode(),P._resetInsertionMode()):P._err(x.endTagWithoutMatchingOpenElement)}function ke(P,q){P.openElements.pop(),P.insertionMode=z,P._processToken(q)}function nn(P,q){const U=q.type===w.EOF_TOKEN?x.openElementsLeftAfterEof:x.disallowedContentInNoscriptInHead;P._err(U),P.openElements.pop(),P.insertionMode=K,P._processToken(q)}function ve(P,q){P._insertFakeElement(h.BODY),P.insertionMode=at,P._processToken(q)}function pn(P,q){P._reconstructActiveFormattingElements(),P._insertCharacters(q)}function pt(P,q){P._reconstructActiveFormattingElements(),P._insertCharacters(q),P.framesetOk=!1}function ft(P,q){P.openElements.hasInButtonScope(h.P)&&P._closePElement(),P._insertElement(q,I.HTML)}function Dt(P,q){P.openElements.hasInButtonScope(h.P)&&P._closePElement(),P._insertElement(q,I.HTML),P.skipNextNewLine=!0,P.framesetOk=!1}function qt(P,q){P._reconstructActiveFormattingElements(),P._insertElement(q,I.HTML),P.activeFormattingElements.pushElement(P.openElements.current,q)}function ie(P,q){P._reconstructActiveFormattingElements(),P._insertElement(q,I.HTML),P.activeFormattingElements.insertMarker(),P.framesetOk=!1}function je(P,q){P._reconstructActiveFormattingElements(),P._appendElement(q,I.HTML),P.framesetOk=!1,q.ackSelfClosing=!0}function ze(P,q){P._appendElement(q,I.HTML),q.ackSelfClosing=!0}function _n(P,q){P._switchToTextParsing(q,w.MODE.RAWTEXT)}function kn(P,q){P.openElements.currentTagName===h.OPTION&&P.openElements.pop(),P._reconstructActiveFormattingElements(),P._insertElement(q,I.HTML)}function qn(P,q){P.openElements.hasInScope(h.RUBY)&&P.openElements.generateImpliedEndTags(),P._insertElement(q,I.HTML)}function dn(P,q){P._reconstructActiveFormattingElements(),P._insertElement(q,I.HTML)}function wn(P,q){const U=q.tagName;switch(U.length){case 1:U===h.I||U===h.S||U===h.B||U===h.U?qt(P,q):U===h.P?ft(P,q):U===h.A?(function(_t,Wt){const He=_t.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);He&&(Ze(_t,Wt),_t.openElements.remove(He.element),_t.activeFormattingElements.removeEntry(He)),_t._reconstructActiveFormattingElements(),_t._insertElement(Wt,I.HTML),_t.activeFormattingElements.pushElement(_t.openElements.current,Wt)})(P,q):dn(P,q);break;case 2:U===h.DL||U===h.OL||U===h.UL?ft(P,q):U===h.H1||U===h.H2||U===h.H3||U===h.H4||U===h.H5||U===h.H6?(function(_t,Wt){_t.openElements.hasInButtonScope(h.P)&&_t._closePElement();const He=_t.openElements.currentTagName;He!==h.H1&&He!==h.H2&&He!==h.H3&&He!==h.H4&&He!==h.H5&&He!==h.H6||_t.openElements.pop(),_t._insertElement(Wt,I.HTML)})(P,q):U===h.LI||U===h.DD||U===h.DT?(function(_t,Wt){_t.framesetOk=!1;const He=Wt.tagName;for(let Ke=_t.openElements.stackTop;Ke>=0;Ke--){const fe=_t.openElements.items[Ke],Le=_t.treeAdapter.getTagName(fe);let J=null;if(He===h.LI&&Le===h.LI?J=h.LI:He!==h.DD&&He!==h.DT||Le!==h.DD&&Le!==h.DT||(J=Le),J){_t.openElements.generateImpliedEndTagsWithExclusion(J),_t.openElements.popUntilTagNamePopped(J);break}if(Le!==h.ADDRESS&&Le!==h.DIV&&Le!==h.P&&_t._isSpecialElement(fe))break}_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._insertElement(Wt,I.HTML)})(P,q):U===h.EM||U===h.TT?qt(P,q):U===h.BR?je(P,q):U===h.HR?(function(_t,Wt){_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._appendElement(Wt,I.HTML),_t.framesetOk=!1,Wt.ackSelfClosing=!0})(P,q):U===h.RB?qn(P,q):U===h.RT||U===h.RP?(function(_t,Wt){_t.openElements.hasInScope(h.RUBY)&&_t.openElements.generateImpliedEndTagsWithExclusion(h.RTC),_t._insertElement(Wt,I.HTML)})(P,q):U!==h.TH&&U!==h.TD&&U!==h.TR&&dn(P,q);break;case 3:U===h.DIV||U===h.DIR||U===h.NAV?ft(P,q):U===h.PRE?Dt(P,q):U===h.BIG?qt(P,q):U===h.IMG||U===h.WBR?je(P,q):U===h.XMP?(function(_t,Wt){_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._reconstructActiveFormattingElements(),_t.framesetOk=!1,_t._switchToTextParsing(Wt,w.MODE.RAWTEXT)})(P,q):U===h.SVG?(function(_t,Wt){_t._reconstructActiveFormattingElements(),S.adjustTokenSVGAttrs(Wt),S.adjustTokenXMLAttrs(Wt),Wt.selfClosing?_t._appendElement(Wt,I.SVG):_t._insertElement(Wt,I.SVG),Wt.ackSelfClosing=!0})(P,q):U===h.RTC?qn(P,q):U!==h.COL&&dn(P,q);break;case 4:U===h.HTML?(function(_t,Wt){_t.openElements.tmplCount===0&&_t.treeAdapter.adoptAttributes(_t.openElements.items[0],Wt.attrs)})(P,q):U===h.BASE||U===h.LINK||U===h.META?Se(P,q):U===h.BODY?(function(_t,Wt){const He=_t.openElements.tryPeekProperlyNestedBodyElement();He&&_t.openElements.tmplCount===0&&(_t.framesetOk=!1,_t.treeAdapter.adoptAttributes(He,Wt.attrs))})(P,q):U===h.MAIN||U===h.MENU?ft(P,q):U===h.FORM?(function(_t,Wt){const He=_t.openElements.tmplCount>0;_t.formElement&&!He||(_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._insertElement(Wt,I.HTML),He||(_t.formElement=_t.openElements.current))})(P,q):U===h.CODE||U===h.FONT?qt(P,q):U===h.NOBR?(function(_t,Wt){_t._reconstructActiveFormattingElements(),_t.openElements.hasInScope(h.NOBR)&&(Ze(_t,Wt),_t._reconstructActiveFormattingElements()),_t._insertElement(Wt,I.HTML),_t.activeFormattingElements.pushElement(_t.openElements.current,Wt)})(P,q):U===h.AREA?je(P,q):U===h.MATH?(function(_t,Wt){_t._reconstructActiveFormattingElements(),S.adjustTokenMathMLAttrs(Wt),S.adjustTokenXMLAttrs(Wt),Wt.selfClosing?_t._appendElement(Wt,I.MATHML):_t._insertElement(Wt,I.MATHML),Wt.ackSelfClosing=!0})(P,q):U===h.MENU?(function(_t,Wt){_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._insertElement(Wt,I.HTML)})(P,q):U!==h.HEAD&&dn(P,q);break;case 5:U===h.STYLE||U===h.TITLE?Se(P,q):U===h.ASIDE?ft(P,q):U===h.SMALL?qt(P,q):U===h.TABLE?(function(_t,Wt){_t.treeAdapter.getDocumentMode(_t.document)!==R.DOCUMENT_MODE.QUIRKS&&_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._insertElement(Wt,I.HTML),_t.framesetOk=!1,_t.insertionMode=mt})(P,q):U===h.EMBED?je(P,q):U===h.INPUT?(function(_t,Wt){_t._reconstructActiveFormattingElements(),_t._appendElement(Wt,I.HTML);const He=w.getTokenAttr(Wt,D.TYPE);He&&He.toLowerCase()===B||(_t.framesetOk=!1),Wt.ackSelfClosing=!0})(P,q):U===h.PARAM||U===h.TRACK?ze(P,q):U===h.IMAGE?(function(_t,Wt){Wt.tagName=h.IMG,je(_t,Wt)})(P,q):U!==h.FRAME&&U!==h.TBODY&&U!==h.TFOOT&&U!==h.THEAD&&dn(P,q);break;case 6:U===h.SCRIPT?Se(P,q):U===h.CENTER||U===h.FIGURE||U===h.FOOTER||U===h.HEADER||U===h.HGROUP||U===h.DIALOG?ft(P,q):U===h.BUTTON?(function(_t,Wt){_t.openElements.hasInScope(h.BUTTON)&&(_t.openElements.generateImpliedEndTags(),_t.openElements.popUntilTagNamePopped(h.BUTTON)),_t._reconstructActiveFormattingElements(),_t._insertElement(Wt,I.HTML),_t.framesetOk=!1})(P,q):U===h.STRIKE||U===h.STRONG?qt(P,q):U===h.APPLET||U===h.OBJECT?ie(P,q):U===h.KEYGEN?je(P,q):U===h.SOURCE?ze(P,q):U===h.IFRAME?(function(_t,Wt){_t.framesetOk=!1,_t._switchToTextParsing(Wt,w.MODE.RAWTEXT)})(P,q):U===h.SELECT?(function(_t,Wt){_t._reconstructActiveFormattingElements(),_t._insertElement(Wt,I.HTML),_t.framesetOk=!1,_t.insertionMode===mt||_t.insertionMode===kt||_t.insertionMode===Ct||_t.insertionMode===gt||_t.insertionMode===wt?_t.insertionMode=Xt:_t.insertionMode=Nt})(P,q):U===h.OPTION?kn(P,q):dn(P,q);break;case 7:U===h.BGSOUND?Se(P,q):U===h.DETAILS||U===h.ADDRESS||U===h.ARTICLE||U===h.SECTION||U===h.SUMMARY?ft(P,q):U===h.LISTING?Dt(P,q):U===h.MARQUEE?ie(P,q):U===h.NOEMBED?_n(P,q):U!==h.CAPTION&&dn(P,q);break;case 8:U===h.BASEFONT?Se(P,q):U===h.FRAMESET?(function(_t,Wt){const He=_t.openElements.tryPeekProperlyNestedBodyElement();_t.framesetOk&&He&&(_t.treeAdapter.detachNode(He),_t.openElements.popAllUpToHtmlElement(),_t._insertElement(Wt,I.HTML),_t.insertionMode=Rt)})(P,q):U===h.FIELDSET?ft(P,q):U===h.TEXTAREA?(function(_t,Wt){_t._insertElement(Wt,I.HTML),_t.skipNextNewLine=!0,_t.tokenizer.state=w.MODE.RCDATA,_t.originalInsertionMode=_t.insertionMode,_t.framesetOk=!1,_t.insertionMode=$})(P,q):U===h.TEMPLATE?Se(P,q):U===h.NOSCRIPT?P.options.scriptingEnabled?_n(P,q):dn(P,q):U===h.OPTGROUP?kn(P,q):U!==h.COLGROUP&&dn(P,q);break;case 9:U===h.PLAINTEXT?(function(_t,Wt){_t.openElements.hasInButtonScope(h.P)&&_t._closePElement(),_t._insertElement(Wt,I.HTML),_t.tokenizer.state=w.MODE.PLAINTEXT})(P,q):dn(P,q);break;case 10:U===h.BLOCKQUOTE||U===h.FIGCAPTION?ft(P,q):dn(P,q);break;default:dn(P,q)}}function Sn(P,q){const U=q.tagName;P.openElements.hasInScope(U)&&(P.openElements.generateImpliedEndTags(),P.openElements.popUntilTagNamePopped(U))}function sr(P,q){const U=q.tagName;P.openElements.hasInScope(U)&&(P.openElements.generateImpliedEndTags(),P.openElements.popUntilTagNamePopped(U),P.activeFormattingElements.clearToLastMarker())}function sn(P,q){const U=q.tagName;for(let _t=P.openElements.stackTop;_t>0;_t--){const Wt=P.openElements.items[_t];if(P.treeAdapter.getTagName(Wt)===U){P.openElements.generateImpliedEndTagsWithExclusion(U),P.openElements.popUntilElementPopped(Wt);break}if(P._isSpecialElement(Wt))break}}function Pn(P,q){const U=q.tagName;switch(U.length){case 1:U===h.A||U===h.B||U===h.I||U===h.S||U===h.U?Ze(P,q):U===h.P?(function(_t){_t.openElements.hasInButtonScope(h.P)||_t._insertFakeElement(h.P),_t._closePElement()})(P):sn(P,q);break;case 2:U===h.DL||U===h.UL||U===h.OL?Sn(P,q):U===h.LI?(function(_t){_t.openElements.hasInListItemScope(h.LI)&&(_t.openElements.generateImpliedEndTagsWithExclusion(h.LI),_t.openElements.popUntilTagNamePopped(h.LI))})(P):U===h.DD||U===h.DT?(function(_t,Wt){const He=Wt.tagName;_t.openElements.hasInScope(He)&&(_t.openElements.generateImpliedEndTagsWithExclusion(He),_t.openElements.popUntilTagNamePopped(He))})(P,q):U===h.H1||U===h.H2||U===h.H3||U===h.H4||U===h.H5||U===h.H6?(function(_t){_t.openElements.hasNumberedHeaderInScope()&&(_t.openElements.generateImpliedEndTags(),_t.openElements.popUntilNumberedHeaderPopped())})(P):U===h.BR?(function(_t){_t._reconstructActiveFormattingElements(),_t._insertFakeElement(h.BR),_t.openElements.pop(),_t.framesetOk=!1})(P):U===h.EM||U===h.TT?Ze(P,q):sn(P,q);break;case 3:U===h.BIG?Ze(P,q):U===h.DIR||U===h.DIV||U===h.NAV||U===h.PRE?Sn(P,q):sn(P,q);break;case 4:U===h.BODY?(function(_t){_t.openElements.hasInScope(h.BODY)&&(_t.insertionMode=Qt)})(P):U===h.HTML?(function(_t,Wt){_t.openElements.hasInScope(h.BODY)&&(_t.insertionMode=Qt,_t._processToken(Wt))})(P,q):U===h.FORM?(function(_t){const Wt=_t.openElements.tmplCount>0,He=_t.formElement;Wt||(_t.formElement=null),(He||Wt)&&_t.openElements.hasInScope(h.FORM)&&(_t.openElements.generateImpliedEndTags(),Wt?_t.openElements.popUntilTagNamePopped(h.FORM):_t.openElements.remove(He))})(P):U===h.CODE||U===h.FONT||U===h.NOBR?Ze(P,q):U===h.MAIN||U===h.MENU?Sn(P,q):sn(P,q);break;case 5:U===h.ASIDE?Sn(P,q):U===h.SMALL?Ze(P,q):sn(P,q);break;case 6:U===h.CENTER||U===h.FIGURE||U===h.FOOTER||U===h.HEADER||U===h.HGROUP||U===h.DIALOG?Sn(P,q):U===h.APPLET||U===h.OBJECT?sr(P,q):U===h.STRIKE||U===h.STRONG?Ze(P,q):sn(P,q);break;case 7:U===h.ADDRESS||U===h.ARTICLE||U===h.DETAILS||U===h.SECTION||U===h.SUMMARY||U===h.LISTING?Sn(P,q):U===h.MARQUEE?sr(P,q):sn(P,q);break;case 8:U===h.FIELDSET?Sn(P,q):U===h.TEMPLATE?Qe(P,q):sn(P,q);break;case 10:U===h.BLOCKQUOTE||U===h.FIGCAPTION?Sn(P,q):sn(P,q);break;default:sn(P,q)}}function fn(P,q){P.tmplInsertionModeStackTop>-1?Mn(P,q):P.stopped=!0}function mn(P,q){const U=P.openElements.currentTagName;U===h.TABLE||U===h.TBODY||U===h.TFOOT||U===h.THEAD||U===h.TR?(P.pendingCharacterTokens=[],P.hasNonWhitespacePendingCharacterToken=!1,P.originalInsertionMode=P.insertionMode,P.insertionMode=X,P._processToken(q)):Nn(P,q)}function Wn(P,q){const U=q.tagName;switch(U.length){case 2:U===h.TD||U===h.TH||U===h.TR?(function(_t,Wt){_t.openElements.clearBackToTableContext(),_t._insertFakeElement(h.TBODY),_t.insertionMode=Ct,_t._processToken(Wt)})(P,q):Nn(P,q);break;case 3:U===h.COL?(function(_t,Wt){_t.openElements.clearBackToTableContext(),_t._insertFakeElement(h.COLGROUP),_t.insertionMode=vt,_t._processToken(Wt)})(P,q):Nn(P,q);break;case 4:U===h.FORM?(function(_t,Wt){_t.formElement||_t.openElements.tmplCount!==0||(_t._insertElement(Wt,I.HTML),_t.formElement=_t.openElements.current,_t.openElements.pop())})(P,q):Nn(P,q);break;case 5:U===h.TABLE?(function(_t,Wt){_t.openElements.hasInTableScope(h.TABLE)&&(_t.openElements.popUntilTagNamePopped(h.TABLE),_t._resetInsertionMode(),_t._processToken(Wt))})(P,q):U===h.STYLE?Se(P,q):U===h.TBODY||U===h.TFOOT||U===h.THEAD?(function(_t,Wt){_t.openElements.clearBackToTableContext(),_t._insertElement(Wt,I.HTML),_t.insertionMode=Ct})(P,q):U===h.INPUT?(function(_t,Wt){const He=w.getTokenAttr(Wt,D.TYPE);He&&He.toLowerCase()===B?_t._appendElement(Wt,I.HTML):Nn(_t,Wt),Wt.ackSelfClosing=!0})(P,q):Nn(P,q);break;case 6:U===h.SCRIPT?Se(P,q):Nn(P,q);break;case 7:U===h.CAPTION?(function(_t,Wt){_t.openElements.clearBackToTableContext(),_t.activeFormattingElements.insertMarker(),_t._insertElement(Wt,I.HTML),_t.insertionMode=kt})(P,q):Nn(P,q);break;case 8:U===h.COLGROUP?(function(_t,Wt){_t.openElements.clearBackToTableContext(),_t._insertElement(Wt,I.HTML),_t.insertionMode=vt})(P,q):U===h.TEMPLATE?Se(P,q):Nn(P,q);break;default:Nn(P,q)}}function Gr(P,q){const U=q.tagName;U===h.TABLE?P.openElements.hasInTableScope(h.TABLE)&&(P.openElements.popUntilTagNamePopped(h.TABLE),P._resetInsertionMode()):U===h.TEMPLATE?Qe(P,q):U!==h.BODY&&U!==h.CAPTION&&U!==h.COL&&U!==h.COLGROUP&&U!==h.HTML&&U!==h.TBODY&&U!==h.TD&&U!==h.TFOOT&&U!==h.TH&&U!==h.THEAD&&U!==h.TR&&Nn(P,q)}function Nn(P,q){const U=P.fosterParentingEnabled;P.fosterParentingEnabled=!0,P._processTokenInBodyMode(q),P.fosterParentingEnabled=U}function lr(P,q){let U=0;if(P.hasNonWhitespacePendingCharacterToken)for(;U0?(P.openElements.popUntilTagNamePopped(h.TEMPLATE),P.activeFormattingElements.clearToLastMarker(),P._popTmplInsertionMode(),P._resetInsertionMode(),P._processToken(q)):P.stopped=!0}function Kn(P,q){P.insertionMode=at,P._processToken(q)}function Ln(P,q){P.insertionMode=at,P._processToken(q)}j.exports=class{constructor(P){this.options=T(M,P),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&_.install(this,E),this.options.onParseError&&_.install(this,v,{onParseError:this.options.onParseError})}parse(P){const q=this.treeAdapter.createDocument();return this._bootstrap(q,null),this.tokenizer.write(P,!0),this._runParsingLoop(null),q}parseFragment(P,q){q||(q=this.treeAdapter.createElement(h.TEMPLATE,I.HTML,[]));const U=this.treeAdapter.createElement("documentmock",I.HTML,[]);this._bootstrap(U,q),this.treeAdapter.getTagName(q)===h.TEMPLATE&&this._pushTmplInsertionMode(zt),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(P,!0),this._runParsingLoop(null);const _t=this.treeAdapter.getFirstChild(U),Wt=this.treeAdapter.createDocumentFragment();return this._adoptNodes(_t,Wt),Wt}_bootstrap(P,q){this.tokenizer=new w(this.options),this.stopped=!1,this.insertionMode=dt,this.originalInsertionMode="",this.document=P,this.fragmentContext=q,this.headElement=null,this.formElement=null,this.openElements=new N(this.document,this.treeAdapter),this.activeFormattingElements=new A(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(P){for(;!this.stopped;){this._setupTokenizerCDATAMode();const q=this.tokenizer.getNextToken();if(q.type===w.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,q.type===w.WHITESPACE_CHARACTER_TOKEN&&q.chars[0]===` `)){if(q.chars.length===1)continue;q.chars=q.chars.substr(1)}if(this._processInputToken(q),P&&this.pendingScript)break}}runParsingLoopForCurrentChunk(P,q){if(this._runParsingLoop(q),q&&this.pendingScript){const U=this.pendingScript;return this.pendingScript=null,void q(U)}P&&P()}_setupTokenizerCDATAMode(){const P=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=P&&P!==this.document&&this.treeAdapter.getNamespaceURI(P)!==I.HTML&&!this._isIntegrationPoint(P)}_switchToTextParsing(P,q){this._insertElement(P,I.HTML),this.tokenizer.state=q,this.originalInsertionMode=this.insertionMode,this.insertionMode=$}switchToPlaintextParsing(){this.insertionMode=$,this.originalInsertionMode=at,this.tokenizer.state=w.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let P=this.fragmentContext;do{if(this.treeAdapter.getTagName(P)===h.FORM){this.formElement=P;break}P=this.treeAdapter.getParentNode(P)}while(P)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===I.HTML){const P=this.treeAdapter.getTagName(this.fragmentContext);P===h.TITLE||P===h.TEXTAREA?this.tokenizer.state=w.MODE.RCDATA:P===h.STYLE||P===h.XMP||P===h.IFRAME||P===h.NOEMBED||P===h.NOFRAMES||P===h.NOSCRIPT?this.tokenizer.state=w.MODE.RAWTEXT:P===h.SCRIPT?this.tokenizer.state=w.MODE.SCRIPT_DATA:P===h.PLAINTEXT&&(this.tokenizer.state=w.MODE.PLAINTEXT)}}_setDocumentType(P){const q=P.name||"",U=P.publicId||"",_t=P.systemId||"";this.treeAdapter.setDocumentType(this.document,q,U,_t)}_attachElementToTree(P){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(P);else{const q=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(q,P)}}_appendElement(P,q){const U=this.treeAdapter.createElement(P.tagName,q,P.attrs);this._attachElementToTree(U)}_insertElement(P,q){const U=this.treeAdapter.createElement(P.tagName,q,P.attrs);this._attachElementToTree(U),this.openElements.push(U)}_insertFakeElement(P){const q=this.treeAdapter.createElement(P,I.HTML,[]);this._attachElementToTree(q),this.openElements.push(q)}_insertTemplate(P){const q=this.treeAdapter.createElement(P.tagName,I.HTML,P.attrs),U=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(q,U),this._attachElementToTree(q),this.openElements.push(q)}_insertFakeRootElement(){const P=this.treeAdapter.createElement(h.HTML,I.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,P),this.openElements.push(P)}_appendCommentNode(P,q){const U=this.treeAdapter.createCommentNode(P.data);this.treeAdapter.appendChild(q,U)}_insertCharacters(P){if(this._shouldFosterParentOnInsertion())this._fosterParentText(P.chars);else{const q=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(q,P.chars)}}_adoptNodes(P,q){for(let U=this.treeAdapter.getFirstChild(P);U;U=this.treeAdapter.getFirstChild(P))this.treeAdapter.detachNode(U),this.treeAdapter.appendChild(q,U)}_shouldProcessTokenInForeignContent(P){const q=this._getAdjustedCurrentElement();if(!q||q===this.document)return!1;const U=this.treeAdapter.getNamespaceURI(q);if(U===I.HTML||this.treeAdapter.getTagName(q)===h.ANNOTATION_XML&&U===I.MATHML&&P.type===w.START_TAG_TOKEN&&P.tagName===h.SVG)return!1;const _t=P.type===w.CHARACTER_TOKEN||P.type===w.NULL_CHARACTER_TOKEN||P.type===w.WHITESPACE_CHARACTER_TOKEN;return(!(P.type===w.START_TAG_TOKEN&&P.tagName!==h.MGLYPH&&P.tagName!==h.MALIGNMARK)&&!_t||!this._isIntegrationPoint(q,I.MATHML))&&(P.type!==w.START_TAG_TOKEN&&!_t||!this._isIntegrationPoint(q,I.HTML))&&P.type!==w.EOF_TOKEN}_processToken(P){ee[this.insertionMode][P.type](this,P)}_processTokenInBodyMode(P){ee[at][P.type](this,P)}_processTokenInForeignContent(P){P.type===w.CHARACTER_TOKEN?(function(q,U){q._insertCharacters(U),q.framesetOk=!1})(this,P):P.type===w.NULL_CHARACTER_TOKEN?(function(q,U){U.chars=k.REPLACEMENT_CHARACTER,q._insertCharacters(U)})(this,P):P.type===w.WHITESPACE_CHARACTER_TOKEN?bt(this,P):P.type===w.COMMENT_TOKEN?G(this,P):P.type===w.START_TAG_TOKEN?(function(q,U){if(S.causesExit(U)&&!q.fragmentContext){for(;q.treeAdapter.getNamespaceURI(q.openElements.current)!==I.HTML&&!q._isIntegrationPoint(q.openElements.current);)q.openElements.pop();q._processToken(U)}else{const _t=q._getAdjustedCurrentElement(),Wt=q.treeAdapter.getNamespaceURI(_t);Wt===I.MATHML?S.adjustTokenMathMLAttrs(U):Wt===I.SVG&&(S.adjustTokenSVGTagName(U),S.adjustTokenSVGAttrs(U)),S.adjustTokenXMLAttrs(U),U.selfClosing?q._appendElement(U,Wt):q._insertElement(U,Wt),U.ackSelfClosing=!0}})(this,P):P.type===w.END_TAG_TOKEN&&(function(q,U){for(let _t=q.openElements.stackTop;_t>0;_t--){const Wt=q.openElements.items[_t];if(q.treeAdapter.getNamespaceURI(Wt)===I.HTML){q._processToken(U);break}if(q.treeAdapter.getTagName(Wt).toLowerCase()===U.tagName){q.openElements.popUntilElementPopped(Wt);break}}})(this,P)}_processInputToken(P){this._shouldProcessTokenInForeignContent(P)?this._processTokenInForeignContent(P):this._processToken(P),P.type===w.START_TAG_TOKEN&&P.selfClosing&&!P.ackSelfClosing&&this._err(x.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(P,q){const U=this.treeAdapter.getTagName(P),_t=this.treeAdapter.getNamespaceURI(P),Wt=this.treeAdapter.getAttrList(P);return S.isIntegrationPoint(U,_t,Wt,q)}_reconstructActiveFormattingElements(){const P=this.activeFormattingElements.length;if(P){let q=P,U=null;do if(q--,U=this.activeFormattingElements.entries[q],U.type===A.MARKER_ENTRY||this.openElements.contains(U.element)){q++;break}while(q>0);for(let _t=q;_t=0;P--){let U=this.openElements.items[P];P===0&&(q=!0,this.fragmentContext&&(U=this.fragmentContext));const _t=this.treeAdapter.getTagName(U),Wt=oe[_t];if(Wt){this.insertionMode=Wt;break}if(!(q||_t!==h.TD&&_t!==h.TH)){this.insertionMode=wt;break}if(!q&&_t===h.HEAD){this.insertionMode=K;break}if(_t===h.SELECT){this._resetInsertionModeForSelect(P);break}if(_t===h.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(_t===h.HTML){this.insertionMode=this.headElement?z:Z;break}if(q){this.insertionMode=at;break}}}_resetInsertionModeForSelect(P){if(P>0)for(let q=P-1;q>0;q--){const U=this.openElements.items[q],_t=this.treeAdapter.getTagName(U);if(_t===h.TEMPLATE)break;if(_t===h.TABLE)return void(this.insertionMode=Xt)}this.insertionMode=Nt}_pushTmplInsertionMode(P){this.tmplInsertionModeStack.push(P),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=P}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(P){const q=this.treeAdapter.getTagName(P);return q===h.TABLE||q===h.TBODY||q===h.TFOOT||q===h.THEAD||q===h.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const P={parent:null,beforeElement:null};for(let q=this.openElements.stackTop;q>=0;q--){const U=this.openElements.items[q],_t=this.treeAdapter.getTagName(U),Wt=this.treeAdapter.getNamespaceURI(U);if(_t===h.TEMPLATE&&Wt===I.HTML){P.parent=this.treeAdapter.getTemplateContent(U);break}if(_t===h.TABLE){P.parent=this.treeAdapter.getParentNode(U),P.parent?P.beforeElement=U:P.parent=this.openElements.items[q-1];break}}return P.parent||(P.parent=this.openElements.items[0]),P}_fosterParentElement(P){const q=this._findFosterParentingLocation();q.beforeElement?this.treeAdapter.insertBefore(q.parent,P,q.beforeElement):this.treeAdapter.appendChild(q.parent,P)}_fosterParentText(P){const q=this._findFosterParentingLocation();q.beforeElement?this.treeAdapter.insertTextBefore(q.parent,P,q.beforeElement):this.treeAdapter.insertText(q.parent,P)}_isSpecialElement(P){const q=this.treeAdapter.getTagName(P),U=this.treeAdapter.getNamespaceURI(P);return R.SPECIAL_ELEMENTS[U][q]}}},6519:(j,b,H)=>{"use strict";const w=H(6152),N=w.TAG_NAMES,A=w.NAMESPACES;function E(m){switch(m.length){case 1:return m===N.P;case 2:return m===N.RB||m===N.RP||m===N.RT||m===N.DD||m===N.DT||m===N.LI;case 3:return m===N.RTC;case 6:return m===N.OPTION;case 8:return m===N.OPTGROUP}return!1}function v(m){switch(m.length){case 1:return m===N.P;case 2:return m===N.RB||m===N.RP||m===N.RT||m===N.DD||m===N.DT||m===N.LI||m===N.TD||m===N.TH||m===N.TR;case 3:return m===N.RTC;case 5:return m===N.TBODY||m===N.TFOOT||m===N.THEAD;case 6:return m===N.OPTION;case 7:return m===N.CAPTION;case 8:return m===N.OPTGROUP||m===N.COLGROUP}return!1}function _(m,T){switch(m.length){case 2:if(m===N.TD||m===N.TH)return T===A.HTML;if(m===N.MI||m===N.MO||m===N.MN||m===N.MS)return T===A.MATHML;break;case 4:if(m===N.HTML)return T===A.HTML;if(m===N.DESC)return T===A.SVG;break;case 5:if(m===N.TABLE)return T===A.HTML;if(m===N.MTEXT)return T===A.MATHML;if(m===N.TITLE)return T===A.SVG;break;case 6:return(m===N.APPLET||m===N.OBJECT)&&T===A.HTML;case 7:return(m===N.CAPTION||m===N.MARQUEE)&&T===A.HTML;case 8:return m===N.TEMPLATE&&T===A.HTML;case 13:return m===N.FOREIGN_OBJECT&&T===A.SVG;case 14:return m===N.ANNOTATION_XML&&T===A.MATHML}return!1}j.exports=class{constructor(m,T){this.stackTop=-1,this.items=[],this.current=m,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=T}_indexOf(m){let T=-1;for(let g=this.stackTop;g>=0;g--)if(this.items[g]===m){T=g;break}return T}_isInTemplate(){return this.currentTagName===N.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===A.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(m){this.items[++this.stackTop]=m,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(m,T){const g=this._indexOf(m);this.items[g]=T,g===this.stackTop&&this._updateCurrentElement()}insertAfter(m,T){const g=this._indexOf(m)+1;this.items.splice(g,0,T),g===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(m){for(;this.stackTop>-1;){const T=this.currentTagName,g=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),T===m&&g===A.HTML)break}}popUntilElementPopped(m){for(;this.stackTop>-1;){const T=this.current;if(this.pop(),T===m)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const m=this.currentTagName,T=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),m===N.H1||m===N.H2||m===N.H3||m===N.H4||m===N.H5||m===N.H6&&T===A.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const m=this.currentTagName,T=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),m===N.TD||m===N.TH&&T===A.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==N.TABLE&&this.currentTagName!==N.TEMPLATE&&this.currentTagName!==N.HTML||this.treeAdapter.getNamespaceURI(this.current)!==A.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==N.TBODY&&this.currentTagName!==N.TFOOT&&this.currentTagName!==N.THEAD&&this.currentTagName!==N.TEMPLATE&&this.currentTagName!==N.HTML||this.treeAdapter.getNamespaceURI(this.current)!==A.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==N.TR&&this.currentTagName!==N.TEMPLATE&&this.currentTagName!==N.HTML||this.treeAdapter.getNamespaceURI(this.current)!==A.HTML;)this.pop()}remove(m){for(let T=this.stackTop;T>=0;T--)if(this.items[T]===m){this.items.splice(T,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const m=this.items[1];return m&&this.treeAdapter.getTagName(m)===N.BODY?m:null}contains(m){return this._indexOf(m)>-1}getCommonAncestor(m){let T=this._indexOf(m);return--T>=0?this.items[T]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===N.HTML}hasInScope(m){for(let T=this.stackTop;T>=0;T--){const g=this.treeAdapter.getTagName(this.items[T]),S=this.treeAdapter.getNamespaceURI(this.items[T]);if(g===m&&S===A.HTML)return!0;if(_(g,S))return!1}return!0}hasNumberedHeaderInScope(){for(let m=this.stackTop;m>=0;m--){const T=this.treeAdapter.getTagName(this.items[m]),g=this.treeAdapter.getNamespaceURI(this.items[m]);if((T===N.H1||T===N.H2||T===N.H3||T===N.H4||T===N.H5||T===N.H6)&&g===A.HTML)return!0;if(_(T,g))return!1}return!0}hasInListItemScope(m){for(let T=this.stackTop;T>=0;T--){const g=this.treeAdapter.getTagName(this.items[T]),S=this.treeAdapter.getNamespaceURI(this.items[T]);if(g===m&&S===A.HTML)return!0;if((g===N.UL||g===N.OL)&&S===A.HTML||_(g,S))return!1}return!0}hasInButtonScope(m){for(let T=this.stackTop;T>=0;T--){const g=this.treeAdapter.getTagName(this.items[T]),S=this.treeAdapter.getNamespaceURI(this.items[T]);if(g===m&&S===A.HTML)return!0;if(g===N.BUTTON&&S===A.HTML||_(g,S))return!1}return!0}hasInTableScope(m){for(let T=this.stackTop;T>=0;T--){const g=this.treeAdapter.getTagName(this.items[T]);if(this.treeAdapter.getNamespaceURI(this.items[T])===A.HTML){if(g===m)return!0;if(g===N.TABLE||g===N.TEMPLATE||g===N.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let m=this.stackTop;m>=0;m--){const T=this.treeAdapter.getTagName(this.items[m]);if(this.treeAdapter.getNamespaceURI(this.items[m])===A.HTML){if(T===N.TBODY||T===N.THEAD||T===N.TFOOT)return!0;if(T===N.TABLE||T===N.HTML)return!1}}return!0}hasInSelectScope(m){for(let T=this.stackTop;T>=0;T--){const g=this.treeAdapter.getTagName(this.items[T]);if(this.treeAdapter.getNamespaceURI(this.items[T])===A.HTML){if(g===m)return!0;if(g!==N.OPTION&&g!==N.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;E(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;v(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(m){for(;E(this.currentTagName)&&this.currentTagName!==m;)this.pop()}}},3988:(j,b,H)=>{"use strict";const w=H(7296),N=H(8904),A=H(1515),E=H(6152),v=E.TAG_NAMES,_=E.NAMESPACES,m={treeAdapter:w},T=/&/g,g=/\u00a0/g,S=/"/g,x=//g;class R{constructor(I,D){this.options=N(m,D),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=I}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(I){const D=this.treeAdapter.getChildNodes(I);if(D)for(let M=0,B=D.length;M",D!==v.AREA&&D!==v.BASE&&D!==v.BASEFONT&&D!==v.BGSOUND&&D!==v.BR&&D!==v.COL&&D!==v.EMBED&&D!==v.FRAME&&D!==v.HR&&D!==v.IMG&&D!==v.INPUT&&D!==v.KEYGEN&&D!==v.LINK&&D!==v.META&&D!==v.PARAM&&D!==v.SOURCE&&D!==v.TRACK&&D!==v.WBR){const B=D===v.TEMPLATE&&M===_.HTML?this.treeAdapter.getTemplateContent(I):I;this._serializeChildNodes(B),this.html+=""}}_serializeAttributes(I){const D=this.treeAdapter.getAttrList(I);for(let M=0,B=D.length;M"}_serializeDocumentTypeNode(I){const D=this.treeAdapter.getDocumentTypeNodeName(I);this.html+="<"+A.serializeContent(D,null,null)+">"}}R.escapeString=function(h,I){return h=h.replace(T,"&").replace(g," "),h=I?h.replace(S,"""):h.replace(x,"<").replace(k,">")},j.exports=R},5763:(j,b,H)=>{"use strict";const w=H(7118),N=H(4284),A=H(5482),E=H(1734),v=N.CODE_POINTS,_=N.CODE_POINT_SEQUENCES,m={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},T=1,g=2,S=4,x=T|g|S,k="DATA_STATE",R="RCDATA_STATE",h="RAWTEXT_STATE",I="SCRIPT_DATA_STATE",D="PLAINTEXT_STATE",M="TAG_OPEN_STATE",B="END_TAG_OPEN_STATE",rt="TAG_NAME_STATE",ot="RCDATA_LESS_THAN_SIGN_STATE",dt="RCDATA_END_TAG_OPEN_STATE",st="RCDATA_END_TAG_NAME_STATE",Z="RAWTEXT_LESS_THAN_SIGN_STATE",K="RAWTEXT_END_TAG_OPEN_STATE",Q="RAWTEXT_END_TAG_NAME_STATE",z="SCRIPT_DATA_LESS_THAN_SIGN_STATE",at="SCRIPT_DATA_END_TAG_OPEN_STATE",$="SCRIPT_DATA_END_TAG_NAME_STATE",mt="SCRIPT_DATA_ESCAPE_START_STATE",X="SCRIPT_DATA_ESCAPE_START_DASH_STATE",kt="SCRIPT_DATA_ESCAPED_STATE",vt="SCRIPT_DATA_ESCAPED_DASH_STATE",Ct="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",gt="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",wt="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Nt="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Xt="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",zt="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Qt="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Rt="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",ut="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Bt="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",te="BEFORE_ATTRIBUTE_NAME_STATE",oe="ATTRIBUTE_NAME_STATE",Ht="AFTER_ATTRIBUTE_NAME_STATE",ee="BEFORE_ATTRIBUTE_VALUE_STATE",me="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",ue="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",ce="ATTRIBUTE_VALUE_UNQUOTED_STATE",Ue="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",en="SELF_CLOSING_START_TAG_STATE",Ge="BOGUS_COMMENT_STATE",Ze="MARKUP_DECLARATION_OPEN_STATE",Pe="COMMENT_START_STATE",It="COMMENT_START_DASH_STATE",G="COMMENT_STATE",tt="COMMENT_LESS_THAN_SIGN_STATE",bt="COMMENT_LESS_THAN_SIGN_BANG_STATE",Mt="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Gt="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Kt="COMMENT_END_DASH_STATE",se="COMMENT_END_STATE",Se="COMMENT_END_BANG_STATE",Qe="DOCTYPE_STATE",ke="BEFORE_DOCTYPE_NAME_STATE",nn="DOCTYPE_NAME_STATE",ve="AFTER_DOCTYPE_NAME_STATE",pn="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",pt="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ft="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Dt="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",qt="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ie="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",je="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",ze="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",_n="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",kn="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",qn="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",dn="BOGUS_DOCTYPE_STATE",wn="CDATA_SECTION_STATE",Sn="CDATA_SECTION_BRACKET_STATE",sr="CDATA_SECTION_END_STATE",sn="CHARACTER_REFERENCE_STATE",Pn="NAMED_CHARACTER_REFERENCE_STATE",fn="AMBIGUOS_AMPERSAND_STATE",mn="NUMERIC_CHARACTER_REFERENCE_STATE",Wn="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Gr="DECIMAL_CHARACTER_REFERENCE_START_STATE",Nn="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lr="DECIMAL_CHARACTER_REFERENCE_STATE",fr="NUMERIC_CHARACTER_REFERENCE_END_STATE";function an(Le){return Le===v.SPACE||Le===v.LINE_FEED||Le===v.TABULATION||Le===v.FORM_FEED}function On(Le){return Le>=v.DIGIT_0&&Le<=v.DIGIT_9}function Mn(Le){return Le>=v.LATIN_CAPITAL_A&&Le<=v.LATIN_CAPITAL_Z}function Kn(Le){return Le>=v.LATIN_SMALL_A&&Le<=v.LATIN_SMALL_Z}function Ln(Le){return Kn(Le)||Mn(Le)}function P(Le){return Ln(Le)||On(Le)}function q(Le){return Le>=v.LATIN_CAPITAL_A&&Le<=v.LATIN_CAPITAL_F}function U(Le){return Le>=v.LATIN_SMALL_A&&Le<=v.LATIN_SMALL_F}function _t(Le){return Le+32}function Wt(Le){return Le<=65535?String.fromCharCode(Le):(Le-=65536,String.fromCharCode(Le>>>10&1023|55296)+String.fromCharCode(56320|1023&Le))}function He(Le){return String.fromCharCode(_t(Le))}function Ke(Le,J){const tn=A[++Le];let rn=++Le,In=rn+tn-1;for(;rn<=In;){const vn=rn+In>>>1,Lr=A[vn];if(LrJ))return A[vn+tn];In=vn-1}}return-1}class fe{constructor(){this.preprocessor=new w,this.tokenQueue=[],this.allowCDATA=!1,this.state=k,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(J){this._consume(),this._err(J),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const J=this._consume();this._ensureHibernation()||this[this.state](J)}return this.tokenQueue.shift()}write(J,tn){this.active=!0,this.preprocessor.write(J,tn)}insertHtmlAtCurrentPos(J){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(J)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:fe.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(J){this.state=J,this._unconsume()}_consumeSequenceIfMatch(J,tn,rn){let In=0,vn=!0;const Lr=J.length;let le,Ve=0,lt=tn;for(;Ve0&&(lt=this._consume(),In++),lt===v.EOF){vn=!1;break}if(le=J[Ve],lt!==le&&(rn||lt!==_t(le))){vn=!1;break}}if(!vn)for(;In--;)this._unconsume();return vn}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==_.SCRIPT_STRING.length)return!1;for(let J=0;J0&&this._err(E.endTagWithAttributes),J.selfClosing&&this._err(E.endTagWithTrailingSolidus)),this.tokenQueue.push(J)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(J,tn){this.currentCharacterToken&&this.currentCharacterToken.type!==J&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=tn:this._createCharacterToken(J,tn)}_emitCodePoint(J){let tn=fe.CHARACTER_TOKEN;an(J)?tn=fe.WHITESPACE_CHARACTER_TOKEN:J===v.NULL&&(tn=fe.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(tn,Wt(J))}_emitSeveralCodePoints(J){for(let tn=0;tn-1;){const vn=A[In],Lr=vn")):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.state=kt,this._emitChars(N.REPLACEMENT_CHARACTER)):J===v.EOF?(this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=kt,this._emitCodePoint(J))}[gt](J){J===v.SOLIDUS?(this.tempBuff=[],this.state=wt):Ln(J)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Xt)):(this._emitChars("<"),this._reconsumeInState(kt))}[wt](J){Ln(J)?(this._createEndTagToken(),this._reconsumeInState(Nt)):(this._emitChars("")):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.state=zt,this._emitChars(N.REPLACEMENT_CHARACTER)):J===v.EOF?(this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=zt,this._emitCodePoint(J))}[ut](J){J===v.SOLIDUS?(this.tempBuff=[],this.state=Bt,this._emitChars("/")):this._reconsumeInState(zt)}[Bt](J){an(J)||J===v.SOLIDUS||J===v.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?kt:zt,this._emitCodePoint(J)):Mn(J)?(this.tempBuff.push(_t(J)),this._emitCodePoint(J)):Kn(J)?(this.tempBuff.push(J),this._emitCodePoint(J)):this._reconsumeInState(zt)}[te](J){an(J)||(J===v.SOLIDUS||J===v.GREATER_THAN_SIGN||J===v.EOF?this._reconsumeInState(Ht):J===v.EQUALS_SIGN?(this._err(E.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=oe):(this._createAttr(""),this._reconsumeInState(oe)))}[oe](J){an(J)||J===v.SOLIDUS||J===v.GREATER_THAN_SIGN||J===v.EOF?(this._leaveAttrName(Ht),this._unconsume()):J===v.EQUALS_SIGN?this._leaveAttrName(ee):Mn(J)?this.currentAttr.name+=He(J):J===v.QUOTATION_MARK||J===v.APOSTROPHE||J===v.LESS_THAN_SIGN?(this._err(E.unexpectedCharacterInAttributeName),this.currentAttr.name+=Wt(J)):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentAttr.name+=N.REPLACEMENT_CHARACTER):this.currentAttr.name+=Wt(J)}[Ht](J){an(J)||(J===v.SOLIDUS?this.state=en:J===v.EQUALS_SIGN?this.state=ee:J===v.GREATER_THAN_SIGN?(this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(oe)))}[ee](J){an(J)||(J===v.QUOTATION_MARK?this.state=me:J===v.APOSTROPHE?this.state=ue:J===v.GREATER_THAN_SIGN?(this._err(E.missingAttributeValue),this.state=k,this._emitCurrentToken()):this._reconsumeInState(ce))}[me](J){J===v.QUOTATION_MARK?this.state=Ue:J===v.AMPERSAND?(this.returnState=me,this.state=sn):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentAttr.value+=N.REPLACEMENT_CHARACTER):J===v.EOF?(this._err(E.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Wt(J)}[ue](J){J===v.APOSTROPHE?this.state=Ue:J===v.AMPERSAND?(this.returnState=ue,this.state=sn):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentAttr.value+=N.REPLACEMENT_CHARACTER):J===v.EOF?(this._err(E.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Wt(J)}[ce](J){an(J)?this._leaveAttrValue(te):J===v.AMPERSAND?(this.returnState=ce,this.state=sn):J===v.GREATER_THAN_SIGN?(this._leaveAttrValue(k),this._emitCurrentToken()):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentAttr.value+=N.REPLACEMENT_CHARACTER):J===v.QUOTATION_MARK||J===v.APOSTROPHE||J===v.LESS_THAN_SIGN||J===v.EQUALS_SIGN||J===v.GRAVE_ACCENT?(this._err(E.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Wt(J)):J===v.EOF?(this._err(E.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Wt(J)}[Ue](J){an(J)?this._leaveAttrValue(te):J===v.SOLIDUS?this._leaveAttrValue(en):J===v.GREATER_THAN_SIGN?(this._leaveAttrValue(k),this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInTag),this._emitEOFToken()):(this._err(E.missingWhitespaceBetweenAttributes),this._reconsumeInState(te))}[en](J){J===v.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInTag),this._emitEOFToken()):(this._err(E.unexpectedSolidusInTag),this._reconsumeInState(te))}[Ge](J){J===v.GREATER_THAN_SIGN?(this.state=k,this._emitCurrentToken()):J===v.EOF?(this._emitCurrentToken(),this._emitEOFToken()):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.data+=N.REPLACEMENT_CHARACTER):this.currentToken.data+=Wt(J)}[Ze](J){this._consumeSequenceIfMatch(_.DASH_DASH_STRING,J,!0)?(this._createCommentToken(),this.state=Pe):this._consumeSequenceIfMatch(_.DOCTYPE_STRING,J,!1)?this.state=Qe:this._consumeSequenceIfMatch(_.CDATA_START_STRING,J,!0)?this.allowCDATA?this.state=wn:(this._err(E.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Ge):this._ensureHibernation()||(this._err(E.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Ge))}[Pe](J){J===v.HYPHEN_MINUS?this.state=It:J===v.GREATER_THAN_SIGN?(this._err(E.abruptClosingOfEmptyComment),this.state=k,this._emitCurrentToken()):this._reconsumeInState(G)}[It](J){J===v.HYPHEN_MINUS?this.state=se:J===v.GREATER_THAN_SIGN?(this._err(E.abruptClosingOfEmptyComment),this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(G))}[G](J){J===v.HYPHEN_MINUS?this.state=Kt:J===v.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=tt):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.data+=N.REPLACEMENT_CHARACTER):J===v.EOF?(this._err(E.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Wt(J)}[tt](J){J===v.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=bt):J===v.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(G)}[bt](J){J===v.HYPHEN_MINUS?this.state=Mt:this._reconsumeInState(G)}[Mt](J){J===v.HYPHEN_MINUS?this.state=Gt:this._reconsumeInState(Kt)}[Gt](J){J!==v.GREATER_THAN_SIGN&&J!==v.EOF&&this._err(E.nestedComment),this._reconsumeInState(se)}[Kt](J){J===v.HYPHEN_MINUS?this.state=se:J===v.EOF?(this._err(E.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(G))}[se](J){J===v.GREATER_THAN_SIGN?(this.state=k,this._emitCurrentToken()):J===v.EXCLAMATION_MARK?this.state=Se:J===v.HYPHEN_MINUS?this.currentToken.data+="-":J===v.EOF?(this._err(E.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(G))}[Se](J){J===v.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Kt):J===v.GREATER_THAN_SIGN?(this._err(E.incorrectlyClosedComment),this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(G))}[Qe](J){an(J)?this.state=ke:J===v.GREATER_THAN_SIGN?this._reconsumeInState(ke):J===v.EOF?(this._err(E.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ke))}[ke](J){an(J)||(Mn(J)?(this._createDoctypeToken(He(J)),this.state=nn):J===v.NULL?(this._err(E.unexpectedNullCharacter),this._createDoctypeToken(N.REPLACEMENT_CHARACTER),this.state=nn):J===v.GREATER_THAN_SIGN?(this._err(E.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=k):J===v.EOF?(this._err(E.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Wt(J)),this.state=nn))}[nn](J){an(J)?this.state=ve:J===v.GREATER_THAN_SIGN?(this.state=k,this._emitCurrentToken()):Mn(J)?this.currentToken.name+=He(J):J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.name+=N.REPLACEMENT_CHARACTER):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Wt(J)}[ve](J){an(J)||(J===v.GREATER_THAN_SIGN?(this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(_.PUBLIC_STRING,J,!1)?this.state=pn:this._consumeSequenceIfMatch(_.SYSTEM_STRING,J,!1)?this.state=je:this._ensureHibernation()||(this._err(E.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn)))}[pn](J){an(J)?this.state=pt:J===v.QUOTATION_MARK?(this._err(E.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=ft):J===v.APOSTROPHE?(this._err(E.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Dt):J===v.GREATER_THAN_SIGN?(this._err(E.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn))}[pt](J){an(J)||(J===v.QUOTATION_MARK?(this.currentToken.publicId="",this.state=ft):J===v.APOSTROPHE?(this.currentToken.publicId="",this.state=Dt):J===v.GREATER_THAN_SIGN?(this._err(E.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn)))}[ft](J){J===v.QUOTATION_MARK?this.state=qt:J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.publicId+=N.REPLACEMENT_CHARACTER):J===v.GREATER_THAN_SIGN?(this._err(E.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=k):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Wt(J)}[Dt](J){J===v.APOSTROPHE?this.state=qt:J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.publicId+=N.REPLACEMENT_CHARACTER):J===v.GREATER_THAN_SIGN?(this._err(E.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=k):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Wt(J)}[qt](J){an(J)?this.state=ie:J===v.GREATER_THAN_SIGN?(this.state=k,this._emitCurrentToken()):J===v.QUOTATION_MARK?(this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_n):J===v.APOSTROPHE?(this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=kn):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn))}[ie](J){an(J)||(J===v.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=k):J===v.QUOTATION_MARK?(this.currentToken.systemId="",this.state=_n):J===v.APOSTROPHE?(this.currentToken.systemId="",this.state=kn):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn)))}[je](J){an(J)?this.state=ze:J===v.QUOTATION_MARK?(this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_n):J===v.APOSTROPHE?(this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=kn):J===v.GREATER_THAN_SIGN?(this._err(E.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn))}[ze](J){an(J)||(J===v.QUOTATION_MARK?(this.currentToken.systemId="",this.state=_n):J===v.APOSTROPHE?(this.currentToken.systemId="",this.state=kn):J===v.GREATER_THAN_SIGN?(this._err(E.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=k,this._emitCurrentToken()):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(dn)))}[_n](J){J===v.QUOTATION_MARK?this.state=qn:J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.systemId+=N.REPLACEMENT_CHARACTER):J===v.GREATER_THAN_SIGN?(this._err(E.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=k):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Wt(J)}[kn](J){J===v.APOSTROPHE?this.state=qn:J===v.NULL?(this._err(E.unexpectedNullCharacter),this.currentToken.systemId+=N.REPLACEMENT_CHARACTER):J===v.GREATER_THAN_SIGN?(this._err(E.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=k):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Wt(J)}[qn](J){an(J)||(J===v.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=k):J===v.EOF?(this._err(E.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(E.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(dn)))}[dn](J){J===v.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=k):J===v.NULL?this._err(E.unexpectedNullCharacter):J===v.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[wn](J){J===v.RIGHT_SQUARE_BRACKET?this.state=Sn:J===v.EOF?(this._err(E.eofInCdata),this._emitEOFToken()):this._emitCodePoint(J)}[Sn](J){J===v.RIGHT_SQUARE_BRACKET?this.state=sr:(this._emitChars("]"),this._reconsumeInState(wn))}[sr](J){J===v.GREATER_THAN_SIGN?this.state=k:J===v.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(wn))}[sn](J){this.tempBuff=[v.AMPERSAND],J===v.NUMBER_SIGN?(this.tempBuff.push(J),this.state=mn):P(J)?this._reconsumeInState(Pn):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Pn](J){const tn=this._matchNamedCharacterReference(J);if(this._ensureHibernation())this.tempBuff=[v.AMPERSAND];else if(tn){const rn=this.tempBuff[this.tempBuff.length-1]===v.SEMICOLON;this._isCharacterReferenceAttributeQuirk(rn)||(rn||this._errOnNextCodePoint(E.missingSemicolonAfterCharacterReference),this.tempBuff=tn),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=fn}[fn](J){P(J)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Wt(J):this._emitCodePoint(J):(J===v.SEMICOLON&&this._err(E.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[mn](J){this.charRefCode=0,J===v.LATIN_SMALL_X||J===v.LATIN_CAPITAL_X?(this.tempBuff.push(J),this.state=Wn):this._reconsumeInState(Gr)}[Wn](J){(function(tn){return On(tn)||q(tn)||U(tn)})(J)?this._reconsumeInState(Nn):(this._err(E.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Gr](J){On(J)?this._reconsumeInState(lr):(this._err(E.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Nn](J){q(J)?this.charRefCode=16*this.charRefCode+J-55:U(J)?this.charRefCode=16*this.charRefCode+J-87:On(J)?this.charRefCode=16*this.charRefCode+J-48:J===v.SEMICOLON?this.state=fr:(this._err(E.missingSemicolonAfterCharacterReference),this._reconsumeInState(fr))}[lr](J){On(J)?this.charRefCode=10*this.charRefCode+J-48:J===v.SEMICOLON?this.state=fr:(this._err(E.missingSemicolonAfterCharacterReference),this._reconsumeInState(fr))}[fr](){if(this.charRefCode===v.NULL)this._err(E.nullCharacterReference),this.charRefCode=v.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(E.characterReferenceOutsideUnicodeRange),this.charRefCode=v.REPLACEMENT_CHARACTER;else if(N.isSurrogate(this.charRefCode))this._err(E.surrogateCharacterReference),this.charRefCode=v.REPLACEMENT_CHARACTER;else if(N.isUndefinedCodePoint(this.charRefCode))this._err(E.noncharacterCharacterReference);else if(N.isControlCodePoint(this.charRefCode)||this.charRefCode===v.CARRIAGE_RETURN){this._err(E.controlCharacterReference);const J=m[this.charRefCode];J&&(this.charRefCode=J)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}fe.CHARACTER_TOKEN="CHARACTER_TOKEN",fe.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",fe.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",fe.START_TAG_TOKEN="START_TAG_TOKEN",fe.END_TAG_TOKEN="END_TAG_TOKEN",fe.COMMENT_TOKEN="COMMENT_TOKEN",fe.DOCTYPE_TOKEN="DOCTYPE_TOKEN",fe.EOF_TOKEN="EOF_TOKEN",fe.HIBERNATION_TOKEN="HIBERNATION_TOKEN",fe.MODE={DATA:k,RCDATA:R,RAWTEXT:h,SCRIPT_DATA:I,PLAINTEXT:D},fe.getTokenAttr=function(Le,J){for(let tn=Le.attrs.length-1;tn>=0;tn--)if(Le.attrs[tn].name===J)return Le.attrs[tn].value;return null},j.exports=fe},5482:j=>{"use strict";j.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},7118:(j,b,H)=>{"use strict";const w=H(4284),N=H(1734),A=w.CODE_POINTS,E=65536;j.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=E}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(v){if(this.pos!==this.lastCharPos){const _=this.html.charCodeAt(this.pos+1);if(w.isSurrogatePair(_))return this.pos++,this._addGap(),w.getSurrogatePairCodePoint(v,_)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(N.surrogateInInputStream),v}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(v,_){this.html?this.html+=v:this.html=v,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=_}insertHtmlAtCurrentPos(v){this.html=this.html.substring(0,this.pos+1)+v+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let v=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&v===A.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):v===A.CARRIAGE_RETURN?(this.skipNextNewLine=!0,A.LINE_FEED):(this.skipNextNewLine=!1,w.isSurrogate(v)&&(v=this._processSurrogate(v)),v>31&&v<127||v===A.LINE_FEED||v===A.CARRIAGE_RETURN||v>159&&v<64976||this._checkForProblematicCharacters(v),v)}_checkForProblematicCharacters(v){w.isControlCodePoint(v)?this._err(N.controlCharacterInInputStream):w.isUndefinedCodePoint(v)&&this._err(N.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},7296:(j,b,H)=>{"use strict";const{DOCUMENT_MODE:w}=H(6152);b.createDocument=function(){return{nodeName:"#document",mode:w.NO_QUIRKS,childNodes:[]}},b.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},b.createElement=function(v,_,m){return{nodeName:v,tagName:v,attrs:m,namespaceURI:_,childNodes:[],parentNode:null}},b.createCommentNode=function(v){return{nodeName:"#comment",data:v,parentNode:null}};const N=function(v){return{nodeName:"#text",value:v,parentNode:null}},A=b.appendChild=function(v,_){v.childNodes.push(_),_.parentNode=v},E=b.insertBefore=function(v,_,m){const T=v.childNodes.indexOf(m);v.childNodes.splice(T,0,_),_.parentNode=v};b.setTemplateContent=function(v,_){v.content=_},b.getTemplateContent=function(v){return v.content},b.setDocumentType=function(v,_,m,T){let g=null;for(let S=0;S{"use strict";j.exports=function(b,H){return[b,H=H||Object.create(null)].reduce(((w,N)=>(Object.keys(N).forEach((A=>{w[A]=N[A]})),w)),Object.create(null))}},1704:j=>{"use strict";class b{constructor(w){const N={},A=this._getOverriddenMethods(this,N);for(const E of Object.keys(A))typeof A[E]=="function"&&(N[E]=w[E],w[E]=A[E])}_getOverriddenMethods(){throw new Error("Not implemented")}}b.install=function(H,w,N){H.__mixins||(H.__mixins=[]);for(let E=0;E{"use strict";var b=/([-.*+?^${}()|[\]\/\\])/g,H=/\\/g,w=function(g){return(g+"").replace(b,"\\$1")},N=function(g){return(g+"").replace(H,"")},A=RegExp(`^(?:\\s*(,)\\s*|\\s*(+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(//,"["+w(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),E=function(g){this.combinator=g||" ",this.tag="*"};E.prototype.toString=function(){if(!this.raw){var g,S,x="";if(x+=this.tag||"*",this.id&&(x+="#"+this.id),this.classes&&(x+="."+this.classList.join(".")),this.attributes)for(g=0;S=this.attributes[g++];)x+="["+S.name+(S.operator?S.operator+'"'+S.value+'"':"")+"]";if(this.pseudos)for(g=0;S=this.pseudos[g++];)x+=":"+S.name,S.value&&(x+="("+S.value+")");this.raw=x}return this.raw};var v=function(){this.length=0};v.prototype.toString=function(){if(!this.raw){for(var g,S="",x=0;g=this[x++];)x!==1&&(S+=" "),g.combinator!==" "&&(S+=g.combinator+" "),S+=g;this.raw=S}return this.raw};var _=function(g,S,x,k,R,h,I,D,M,B,rt,ot,dt,st,Z,K){var Q,z;if((S||!this.length)&&(Q=this[this.length++]=new v,S))return"";if(Q||(Q=this[this.length-1]),(x||k||!Q.length)&&(z=Q[Q.length++]=new E(x)),z||(z=Q[Q.length-1]),R)z.tag=N(R);else if(h)z.id=N(h);else if(I){var at=N(I),$=z.classes||(z.classes={});if(!$[at]){$[at]=w(I);var mt=z.classList||(z.classList=[]);mt.push(at),mt.sort()}}else dt?(K=K||Z,(z.pseudos||(z.pseudos=[])).push({type:ot.length==1?"class":"element",name:N(dt),escapedName:w(dt),value:K?N(K):null,escapedValue:K?w(K):null})):D&&(rt=rt?w(rt):null,(z.attributes||(z.attributes=[])).push({operator:M,name:N(D),escapedName:w(D),value:rt?N(rt):null,escapedValue:rt?w(rt):null}));return""},m=function(g){this.length=0;for(var S,x=this,k=g;g;){if(S=g.replace(A,(function(){return _.apply(x,arguments)})),S===g)throw new Error(k+" is an invalid expression");g=S}};m.prototype.toString=function(){if(!this.raw){for(var g,S=[],x=0;g=this[x++];)S.push(g);this.raw=S.join(", ")}return this.raw};var T={};j.exports=function(g){return g==null?null:(g=(""+g).replace(/^\s+|\s+$/g,""),T[g]||(T[g]=new m(g)))}},655:(j,b,H)=>{"use strict";H.r(b),H.d(b,{__assign:()=>A,__asyncDelegator:()=>Z,__asyncGenerator:()=>st,__asyncValues:()=>K,__await:()=>dt,__awaiter:()=>k,__classPrivateFieldGet:()=>mt,__classPrivateFieldIn:()=>kt,__classPrivateFieldSet:()=>X,__createBinding:()=>h,__decorate:()=>v,__esDecorate:()=>m,__exportStar:()=>I,__extends:()=>N,__generator:()=>R,__importDefault:()=>$,__importStar:()=>at,__makeTemplateObject:()=>Q,__metadata:()=>x,__param:()=>_,__propKey:()=>g,__read:()=>M,__rest:()=>E,__runInitializers:()=>T,__setFunctionName:()=>S,__spread:()=>B,__spreadArray:()=>ot,__spreadArrays:()=>rt,__values:()=>D});var w=function(vt,Ct){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,wt){gt.__proto__=wt}||function(gt,wt){for(var Nt in wt)Object.prototype.hasOwnProperty.call(wt,Nt)&&(gt[Nt]=wt[Nt])},w(vt,Ct)};function N(vt,Ct){if(typeof Ct!="function"&&Ct!==null)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function gt(){this.constructor=vt}w(vt,Ct),vt.prototype=Ct===null?Object.create(Ct):(gt.prototype=Ct.prototype,new gt)}var A=function(){return A=Object.assign||function(vt){for(var Ct,gt=1,wt=arguments.length;gt=0;Qt--)(Nt=vt[Qt])&&(zt=(Xt<3?Nt(zt):Xt>3?Nt(Ct,gt,zt):Nt(Ct,gt))||zt);return Xt>3&&zt&&Object.defineProperty(Ct,gt,zt),zt}function _(vt,Ct){return function(gt,wt){Ct(gt,wt,vt)}}function m(vt,Ct,gt,wt,Nt,Xt){function zt(ce){if(ce!==void 0&&typeof ce!="function")throw new TypeError("Function expected");return ce}for(var Qt,Rt=wt.kind,ut=Rt==="getter"?"get":Rt==="setter"?"set":"value",Bt=!Ct&&vt?wt.static?vt:vt.prototype:null,te=Ct||(Bt?Object.getOwnPropertyDescriptor(Bt,wt.name):{}),oe=!1,Ht=gt.length-1;Ht>=0;Ht--){var ee={};for(var me in wt)ee[me]=me==="access"?{}:wt[me];for(var me in wt.access)ee.access[me]=wt.access[me];ee.addInitializer=function(ce){if(oe)throw new TypeError("Cannot add initializers after decoration has completed");Xt.push(zt(ce||null))};var ue=(0,gt[Ht])(Rt==="accessor"?{get:te.get,set:te.set}:te[ut],ee);if(Rt==="accessor"){if(ue===void 0)continue;if(ue===null||typeof ue!="object")throw new TypeError("Object expected");(Qt=zt(ue.get))&&(te.get=Qt),(Qt=zt(ue.set))&&(te.set=Qt),(Qt=zt(ue.init))&&Nt.push(Qt)}else(Qt=zt(ue))&&(Rt==="field"?Nt.push(Qt):te[ut]=Qt)}Bt&&Object.defineProperty(Bt,wt.name,te),oe=!0}function T(vt,Ct,gt){for(var wt=arguments.length>2,Nt=0;Nt0&&Nt[Nt.length-1])||Bt[0]!==6&&Bt[0]!==2)){zt=0;continue}if(Bt[0]===3&&(!Nt||Bt[1]>Nt[0]&&Bt[1]=vt.length&&(vt=void 0),{value:vt&&vt[wt++],done:!vt}}};throw new TypeError(Ct?"Object is not iterable.":"Symbol.iterator is not defined.")}function M(vt,Ct){var gt=typeof Symbol=="function"&&vt[Symbol.iterator];if(!gt)return vt;var wt,Nt,Xt=gt.call(vt),zt=[];try{for(;(Ct===void 0||Ct-- >0)&&!(wt=Xt.next()).done;)zt.push(wt.value)}catch(Qt){Nt={error:Qt}}finally{try{wt&&!wt.done&&(gt=Xt.return)&>.call(Xt)}finally{if(Nt)throw Nt.error}}return zt}function B(){for(var vt=[],Ct=0;Ct1||Qt(te,oe)}))})}function Qt(te,oe){try{(Ht=Nt[te](oe)).value instanceof dt?Promise.resolve(Ht.value.v).then(Rt,ut):Bt(Xt[0][2],Ht)}catch(ee){Bt(Xt[0][3],ee)}var Ht}function Rt(te){Qt("next",te)}function ut(te){Qt("throw",te)}function Bt(te,oe){te(oe),Xt.shift(),Xt.length&&Qt(Xt[0][0],Xt[0][1])}}function Z(vt){var Ct,gt;return Ct={},wt("next"),wt("throw",(function(Nt){throw Nt})),wt("return"),Ct[Symbol.iterator]=function(){return this},Ct;function wt(Nt,Xt){Ct[Nt]=vt[Nt]?function(zt){return(gt=!gt)?{value:dt(vt[Nt](zt)),done:!1}:Xt?Xt(zt):zt}:Xt}}function K(vt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ct,gt=vt[Symbol.asyncIterator];return gt?gt.call(vt):(vt=typeof D=="function"?D(vt):vt[Symbol.iterator](),Ct={},wt("next"),wt("throw"),wt("return"),Ct[Symbol.asyncIterator]=function(){return this},Ct);function wt(Nt){Ct[Nt]=vt[Nt]&&function(Xt){return new Promise((function(zt,Qt){(function(Rt,ut,Bt,te){Promise.resolve(te).then((function(oe){Rt({value:oe,done:Bt})}),ut)})(zt,Qt,(Xt=vt[Nt](Xt)).done,Xt.value)}))}}}function Q(vt,Ct){return Object.defineProperty?Object.defineProperty(vt,"raw",{value:Ct}):vt.raw=Ct,vt}var z=Object.create?function(vt,Ct){Object.defineProperty(vt,"default",{enumerable:!0,value:Ct})}:function(vt,Ct){vt.default=Ct};function at(vt){if(vt&&vt.__esModule)return vt;var Ct={};if(vt!=null)for(var gt in vt)gt!=="default"&&Object.prototype.hasOwnProperty.call(vt,gt)&&h(Ct,vt,gt);return z(Ct,vt),Ct}function $(vt){return vt&&vt.__esModule?vt:{default:vt}}function mt(vt,Ct,gt,wt){if(gt==="a"&&!wt)throw new TypeError("Private accessor was defined without a getter");if(typeof Ct=="function"?vt!==Ct||!wt:!Ct.has(vt))throw new TypeError("Cannot read private member from an object whose class did not declare it");return gt==="m"?wt:gt==="a"?wt.call(vt):wt?wt.value:Ct.get(vt)}function X(vt,Ct,gt,wt,Nt){if(wt==="m")throw new TypeError("Private method is not writable");if(wt==="a"&&!Nt)throw new TypeError("Private accessor was defined without a setter");if(typeof Ct=="function"?vt!==Ct||!Nt:!Ct.has(vt))throw new TypeError("Cannot write private member to an object whose class did not declare it");return wt==="a"?Nt.call(vt,gt):Nt?Nt.value=gt:Ct.set(vt,gt),gt}function kt(vt,Ct){if(Ct===null||typeof Ct!="object"&&typeof Ct!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof vt=="function"?Ct===vt:vt.has(Ct)}},3600:j=>{"use strict";j.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:j=>{"use strict";j.exports=JSON.parse('{"Aacute":"\xC1","aacute":"\xE1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223E","acd":"\u223F","acE":"\u223E\u0333","Acirc":"\xC2","acirc":"\xE2","acute":"\xB4","Acy":"\u0410","acy":"\u0430","AElig":"\xC6","aelig":"\xE6","af":"\u2061","Afr":"\u{1D504}","afr":"\u{1D51E}","Agrave":"\xC0","agrave":"\xE0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03B1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2A3F","amp":"&","AMP":"&","andand":"\u2A55","And":"\u2A53","and":"\u2227","andd":"\u2A5C","andslope":"\u2A58","andv":"\u2A5A","ang":"\u2220","ange":"\u29A4","angle":"\u2220","angmsdaa":"\u29A8","angmsdab":"\u29A9","angmsdac":"\u29AA","angmsdad":"\u29AB","angmsdae":"\u29AC","angmsdaf":"\u29AD","angmsdag":"\u29AE","angmsdah":"\u29AF","angmsd":"\u2221","angrt":"\u221F","angrtvb":"\u22BE","angrtvbd":"\u299D","angsph":"\u2222","angst":"\xC5","angzarr":"\u237C","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1D538}","aopf":"\u{1D552}","apacir":"\u2A6F","ap":"\u2248","apE":"\u2A70","ape":"\u224A","apid":"\u224B","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224A","Aring":"\xC5","aring":"\xE5","Ascr":"\u{1D49C}","ascr":"\u{1D4B6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224D","Atilde":"\xC3","atilde":"\xE3","Auml":"\xC4","auml":"\xE4","awconint":"\u2233","awint":"\u2A11","backcong":"\u224C","backepsilon":"\u03F6","backprime":"\u2035","backsim":"\u223D","backsimeq":"\u22CD","Backslash":"\u2216","Barv":"\u2AE7","barvee":"\u22BD","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23B5","bbrktbrk":"\u23B6","bcong":"\u224C","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201E","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29B0","bepsi":"\u03F6","bernou":"\u212C","Bernoullis":"\u212C","Beta":"\u0392","beta":"\u03B2","beth":"\u2136","between":"\u226C","Bfr":"\u{1D505}","bfr":"\u{1D51F}","bigcap":"\u22C2","bigcirc":"\u25EF","bigcup":"\u22C3","bigodot":"\u2A00","bigoplus":"\u2A01","bigotimes":"\u2A02","bigsqcup":"\u2A06","bigstar":"\u2605","bigtriangledown":"\u25BD","bigtriangleup":"\u25B3","biguplus":"\u2A04","bigvee":"\u22C1","bigwedge":"\u22C0","bkarow":"\u290D","blacklozenge":"\u29EB","blacksquare":"\u25AA","blacktriangle":"\u25B4","blacktriangledown":"\u25BE","blacktriangleleft":"\u25C2","blacktriangleright":"\u25B8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20E5","bnequiv":"\u2261\u20E5","bNot":"\u2AED","bnot":"\u2310","Bopf":"\u{1D539}","bopf":"\u{1D553}","bot":"\u22A5","bottom":"\u22A5","bowtie":"\u22C8","boxbox":"\u29C9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250C","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252C","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229F","boxplus":"\u229E","boxtimes":"\u22A0","boxul":"\u2518","boxuL":"\u255B","boxUl":"\u255C","boxUL":"\u255D","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255A","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253C","boxvH":"\u256A","boxVh":"\u256B","boxVH":"\u256C","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251C","boxvR":"\u255E","boxVr":"\u255F","boxVR":"\u2560","bprime":"\u2035","breve":"\u02D8","Breve":"\u02D8","brvbar":"\xA6","bscr":"\u{1D4B7}","Bscr":"\u212C","bsemi":"\u204F","bsim":"\u223D","bsime":"\u22CD","bsolb":"\u29C5","bsol":"\\\\","bsolhsub":"\u27C8","bull":"\u2022","bullet":"\u2022","bump":"\u224E","bumpE":"\u2AAE","bumpe":"\u224F","Bumpeq":"\u224E","bumpeq":"\u224F","Cacute":"\u0106","cacute":"\u0107","capand":"\u2A44","capbrcup":"\u2A49","capcap":"\u2A4B","cap":"\u2229","Cap":"\u22D2","capcup":"\u2A47","capdot":"\u2A40","CapitalDifferentialD":"\u2145","caps":"\u2229\uFE00","caret":"\u2041","caron":"\u02C7","Cayleys":"\u212D","ccaps":"\u2A4D","Ccaron":"\u010C","ccaron":"\u010D","Ccedil":"\xC7","ccedil":"\xE7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2A4C","ccupssm":"\u2A50","Cdot":"\u010A","cdot":"\u010B","cedil":"\xB8","Cedilla":"\xB8","cemptyv":"\u29B2","cent":"\xA2","centerdot":"\xB7","CenterDot":"\xB7","cfr":"\u{1D520}","Cfr":"\u212D","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03A7","chi":"\u03C7","circ":"\u02C6","circeq":"\u2257","circlearrowleft":"\u21BA","circlearrowright":"\u21BB","circledast":"\u229B","circledcirc":"\u229A","circleddash":"\u229D","CircleDot":"\u2299","circledR":"\xAE","circledS":"\u24C8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25CB","cirE":"\u29C3","cire":"\u2257","cirfnint":"\u2A10","cirmid":"\u2AEF","cirscir":"\u29C2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201D","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2A74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2A6D","Congruent":"\u2261","conint":"\u222E","Conint":"\u222F","ContourIntegral":"\u222E","copf":"\u{1D554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xA9","COPY":"\xA9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21B5","cross":"\u2717","Cross":"\u2A2F","Cscr":"\u{1D49E}","cscr":"\u{1D4B8}","csub":"\u2ACF","csube":"\u2AD1","csup":"\u2AD0","csupe":"\u2AD2","ctdot":"\u22EF","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22DE","cuesc":"\u22DF","cularr":"\u21B6","cularrp":"\u293D","cupbrcap":"\u2A48","cupcap":"\u2A46","CupCap":"\u224D","cup":"\u222A","Cup":"\u22D3","cupcup":"\u2A4A","cupdot":"\u228D","cupor":"\u2A45","cups":"\u222A\uFE00","curarr":"\u21B7","curarrm":"\u293C","curlyeqprec":"\u22DE","curlyeqsucc":"\u22DF","curlyvee":"\u22CE","curlywedge":"\u22CF","curren":"\xA4","curvearrowleft":"\u21B6","curvearrowright":"\u21B7","cuvee":"\u22CE","cuwed":"\u22CF","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232D","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21A1","dArr":"\u21D3","dash":"\u2010","Dashv":"\u2AE4","dashv":"\u22A3","dbkarow":"\u290F","dblac":"\u02DD","Dcaron":"\u010E","dcaron":"\u010F","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21CA","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2A77","deg":"\xB0","Del":"\u2207","Delta":"\u0394","delta":"\u03B4","demptyv":"\u29B1","dfisht":"\u297F","Dfr":"\u{1D507}","dfr":"\u{1D521}","dHar":"\u2965","dharl":"\u21C3","dharr":"\u21C2","DiacriticalAcute":"\xB4","DiacriticalDot":"\u02D9","DiacriticalDoubleAcute":"\u02DD","DiacriticalGrave":"`","DiacriticalTilde":"\u02DC","diam":"\u22C4","diamond":"\u22C4","Diamond":"\u22C4","diamondsuit":"\u2666","diams":"\u2666","die":"\xA8","DifferentialD":"\u2146","digamma":"\u03DD","disin":"\u22F2","div":"\xF7","divide":"\xF7","divideontimes":"\u22C7","divonx":"\u22C7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231E","dlcrop":"\u230D","dollar":"$","Dopf":"\u{1D53B}","dopf":"\u{1D555}","Dot":"\xA8","dot":"\u02D9","DotDot":"\u20DC","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22A1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222F","DoubleDot":"\xA8","DoubleDownArrow":"\u21D3","DoubleLeftArrow":"\u21D0","DoubleLeftRightArrow":"\u21D4","DoubleLeftTee":"\u2AE4","DoubleLongLeftArrow":"\u27F8","DoubleLongLeftRightArrow":"\u27FA","DoubleLongRightArrow":"\u27F9","DoubleRightArrow":"\u21D2","DoubleRightTee":"\u22A8","DoubleUpArrow":"\u21D1","DoubleUpDownArrow":"\u21D5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21D3","DownArrowUpArrow":"\u21F5","DownBreve":"\u0311","downdownarrows":"\u21CA","downharpoonleft":"\u21C3","downharpoonright":"\u21C2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295E","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21BD","DownRightTeeVector":"\u295F","DownRightVectorBar":"\u2957","DownRightVector":"\u21C1","DownTeeArrow":"\u21A7","DownTee":"\u22A4","drbkarow":"\u2910","drcorn":"\u231F","drcrop":"\u230C","Dscr":"\u{1D49F}","dscr":"\u{1D4B9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29F6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22F1","dtri":"\u25BF","dtrif":"\u25BE","duarr":"\u21F5","duhar":"\u296F","dwangle":"\u29A6","DZcy":"\u040F","dzcy":"\u045F","dzigrarr":"\u27FF","Eacute":"\xC9","eacute":"\xE9","easter":"\u2A6E","Ecaron":"\u011A","ecaron":"\u011B","Ecirc":"\xCA","ecirc":"\xEA","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042D","ecy":"\u044D","eDDot":"\u2A77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1D508}","efr":"\u{1D522}","eg":"\u2A9A","Egrave":"\xC8","egrave":"\xE8","egs":"\u2A96","egsdot":"\u2A98","el":"\u2A99","Element":"\u2208","elinters":"\u23E7","ell":"\u2113","els":"\u2A95","elsdot":"\u2A97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25FB","emptyv":"\u2205","EmptyVerySmallSquare":"\u25AB","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014A","eng":"\u014B","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1D53C}","eopf":"\u{1D556}","epar":"\u22D5","eparsl":"\u29E3","eplus":"\u2A71","epsi":"\u03B5","Epsilon":"\u0395","epsilon":"\u03B5","epsiv":"\u03F5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2A96","eqslantless":"\u2A95","Equal":"\u2A75","equals":"=","EqualTilde":"\u2242","equest":"\u225F","Equilibrium":"\u21CC","equiv":"\u2261","equivDD":"\u2A78","eqvparsl":"\u29E5","erarr":"\u2971","erDot":"\u2253","escr":"\u212F","Escr":"\u2130","esdot":"\u2250","Esim":"\u2A73","esim":"\u2242","Eta":"\u0397","eta":"\u03B7","ETH":"\xD0","eth":"\xF0","Euml":"\xCB","euml":"\xEB","euro":"\u20AC","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\uFB03","fflig":"\uFB00","ffllig":"\uFB04","Ffr":"\u{1D509}","ffr":"\u{1D523}","filig":"\uFB01","FilledSmallSquare":"\u25FC","FilledVerySmallSquare":"\u25AA","fjlig":"fj","flat":"\u266D","fllig":"\uFB02","fltns":"\u25B1","fnof":"\u0192","Fopf":"\u{1D53D}","fopf":"\u{1D557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22D4","forkv":"\u2AD9","Fouriertrf":"\u2131","fpartint":"\u2A0D","frac12":"\xBD","frac13":"\u2153","frac14":"\xBC","frac15":"\u2155","frac16":"\u2159","frac18":"\u215B","frac23":"\u2154","frac25":"\u2156","frac34":"\xBE","frac35":"\u2157","frac38":"\u215C","frac45":"\u2158","frac56":"\u215A","frac58":"\u215D","frac78":"\u215E","frasl":"\u2044","frown":"\u2322","fscr":"\u{1D4BB}","Fscr":"\u2131","gacute":"\u01F5","Gamma":"\u0393","gamma":"\u03B3","Gammad":"\u03DC","gammad":"\u03DD","gap":"\u2A86","Gbreve":"\u011E","gbreve":"\u011F","Gcedil":"\u0122","Gcirc":"\u011C","gcirc":"\u011D","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2A8C","gel":"\u22DB","geq":"\u2265","geqq":"\u2267","geqslant":"\u2A7E","gescc":"\u2AA9","ges":"\u2A7E","gesdot":"\u2A80","gesdoto":"\u2A82","gesdotol":"\u2A84","gesl":"\u22DB\uFE00","gesles":"\u2A94","Gfr":"\u{1D50A}","gfr":"\u{1D524}","gg":"\u226B","Gg":"\u22D9","ggg":"\u22D9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2AA5","gl":"\u2277","glE":"\u2A92","glj":"\u2AA4","gnap":"\u2A8A","gnapprox":"\u2A8A","gne":"\u2A88","gnE":"\u2269","gneq":"\u2A88","gneqq":"\u2269","gnsim":"\u22E7","Gopf":"\u{1D53E}","gopf":"\u{1D558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22DB","GreaterFullEqual":"\u2267","GreaterGreater":"\u2AA2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2A7E","GreaterTilde":"\u2273","Gscr":"\u{1D4A2}","gscr":"\u210A","gsim":"\u2273","gsime":"\u2A8E","gsiml":"\u2A90","gtcc":"\u2AA7","gtcir":"\u2A7A","gt":">","GT":">","Gt":"\u226B","gtdot":"\u22D7","gtlPar":"\u2995","gtquest":"\u2A7C","gtrapprox":"\u2A86","gtrarr":"\u2978","gtrdot":"\u22D7","gtreqless":"\u22DB","gtreqqless":"\u2A8C","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\uFE00","gvnE":"\u2269\uFE00","Hacek":"\u02C7","hairsp":"\u200A","half":"\xBD","hamilt":"\u210B","HARDcy":"\u042A","hardcy":"\u044A","harrcir":"\u2948","harr":"\u2194","hArr":"\u21D4","harrw":"\u21AD","Hat":"^","hbar":"\u210F","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22B9","hfr":"\u{1D525}","Hfr":"\u210C","HilbertSpace":"\u210B","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21FF","homtht":"\u223B","hookleftarrow":"\u21A9","hookrightarrow":"\u21AA","hopf":"\u{1D559}","Hopf":"\u210D","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1D4BD}","Hscr":"\u210B","hslash":"\u210F","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224E","HumpEqual":"\u224F","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xCD","iacute":"\xED","ic":"\u2063","Icirc":"\xCE","icirc":"\xEE","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xA1","iff":"\u21D4","ifr":"\u{1D526}","Ifr":"\u2111","Igrave":"\xCC","igrave":"\xEC","ii":"\u2148","iiiint":"\u2A0C","iiint":"\u222D","iinfin":"\u29DC","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012A","imacr":"\u012B","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22B7","imped":"\u01B5","Implies":"\u21D2","incare":"\u2105","in":"\u2208","infin":"\u221E","infintie":"\u29DD","inodot":"\u0131","intcal":"\u22BA","int":"\u222B","Int":"\u222C","integers":"\u2124","Integral":"\u222B","intercal":"\u22BA","Intersection":"\u22C2","intlarhk":"\u2A17","intprod":"\u2A3C","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012E","iogon":"\u012F","Iopf":"\u{1D540}","iopf":"\u{1D55A}","Iota":"\u0399","iota":"\u03B9","iprod":"\u2A3C","iquest":"\xBF","iscr":"\u{1D4BE}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22F5","isinE":"\u22F9","isins":"\u22F4","isinsv":"\u22F3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xCF","iuml":"\xEF","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1D50D}","jfr":"\u{1D527}","jmath":"\u0237","Jopf":"\u{1D541}","jopf":"\u{1D55B}","Jscr":"\u{1D4A5}","jscr":"\u{1D4BF}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039A","kappa":"\u03BA","kappav":"\u03F0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041A","kcy":"\u043A","Kfr":"\u{1D50E}","kfr":"\u{1D528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040C","kjcy":"\u045C","Kopf":"\u{1D542}","kopf":"\u{1D55C}","Kscr":"\u{1D4A6}","kscr":"\u{1D4C0}","lAarr":"\u21DA","Lacute":"\u0139","lacute":"\u013A","laemptyv":"\u29B4","lagran":"\u2112","Lambda":"\u039B","lambda":"\u03BB","lang":"\u27E8","Lang":"\u27EA","langd":"\u2991","langle":"\u27E8","lap":"\u2A85","Laplacetrf":"\u2112","laquo":"\xAB","larrb":"\u21E4","larrbfs":"\u291F","larr":"\u2190","Larr":"\u219E","lArr":"\u21D0","larrfs":"\u291D","larrhk":"\u21A9","larrlp":"\u21AB","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21A2","latail":"\u2919","lAtail":"\u291B","lat":"\u2AAB","late":"\u2AAD","lates":"\u2AAD\uFE00","lbarr":"\u290C","lBarr":"\u290E","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298B","lbrksld":"\u298F","lbrkslu":"\u298D","Lcaron":"\u013D","lcaron":"\u013E","Lcedil":"\u013B","lcedil":"\u013C","lceil":"\u2308","lcub":"{","Lcy":"\u041B","lcy":"\u043B","ldca":"\u2936","ldquo":"\u201C","ldquor":"\u201E","ldrdhar":"\u2967","ldrushar":"\u294B","ldsh":"\u21B2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27E8","LeftArrowBar":"\u21E4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21D0","LeftArrowRightArrow":"\u21C6","leftarrowtail":"\u21A2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27E6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21C3","LeftFloor":"\u230A","leftharpoondown":"\u21BD","leftharpoonup":"\u21BC","leftleftarrows":"\u21C7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21D4","leftrightarrows":"\u21C6","leftrightharpoons":"\u21CB","leftrightsquigarrow":"\u21AD","LeftRightVector":"\u294E","LeftTeeArrow":"\u21A4","LeftTee":"\u22A3","LeftTeeVector":"\u295A","leftthreetimes":"\u22CB","LeftTriangleBar":"\u29CF","LeftTriangle":"\u22B2","LeftTriangleEqual":"\u22B4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21BF","LeftVectorBar":"\u2952","LeftVector":"\u21BC","lEg":"\u2A8B","leg":"\u22DA","leq":"\u2264","leqq":"\u2266","leqslant":"\u2A7D","lescc":"\u2AA8","les":"\u2A7D","lesdot":"\u2A7F","lesdoto":"\u2A81","lesdotor":"\u2A83","lesg":"\u22DA\uFE00","lesges":"\u2A93","lessapprox":"\u2A85","lessdot":"\u22D6","lesseqgtr":"\u22DA","lesseqqgtr":"\u2A8B","LessEqualGreater":"\u22DA","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2AA1","lesssim":"\u2272","LessSlantEqual":"\u2A7D","LessTilde":"\u2272","lfisht":"\u297C","lfloor":"\u230A","Lfr":"\u{1D50F}","lfr":"\u{1D529}","lg":"\u2276","lgE":"\u2A91","lHar":"\u2962","lhard":"\u21BD","lharu":"\u21BC","lharul":"\u296A","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21C7","ll":"\u226A","Ll":"\u22D8","llcorner":"\u231E","Lleftarrow":"\u21DA","llhard":"\u296B","lltri":"\u25FA","Lmidot":"\u013F","lmidot":"\u0140","lmoustache":"\u23B0","lmoust":"\u23B0","lnap":"\u2A89","lnapprox":"\u2A89","lne":"\u2A87","lnE":"\u2268","lneq":"\u2A87","lneqq":"\u2268","lnsim":"\u22E6","loang":"\u27EC","loarr":"\u21FD","lobrk":"\u27E6","longleftarrow":"\u27F5","LongLeftArrow":"\u27F5","Longleftarrow":"\u27F8","longleftrightarrow":"\u27F7","LongLeftRightArrow":"\u27F7","Longleftrightarrow":"\u27FA","longmapsto":"\u27FC","longrightarrow":"\u27F6","LongRightArrow":"\u27F6","Longrightarrow":"\u27F9","looparrowleft":"\u21AB","looparrowright":"\u21AC","lopar":"\u2985","Lopf":"\u{1D543}","lopf":"\u{1D55D}","loplus":"\u2A2D","lotimes":"\u2A34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25CA","lozenge":"\u25CA","lozf":"\u29EB","lpar":"(","lparlt":"\u2993","lrarr":"\u21C6","lrcorner":"\u231F","lrhar":"\u21CB","lrhard":"\u296D","lrm":"\u200E","lrtri":"\u22BF","lsaquo":"\u2039","lscr":"\u{1D4C1}","Lscr":"\u2112","lsh":"\u21B0","Lsh":"\u21B0","lsim":"\u2272","lsime":"\u2A8D","lsimg":"\u2A8F","lsqb":"[","lsquo":"\u2018","lsquor":"\u201A","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2AA6","ltcir":"\u2A79","lt":"<","LT":"<","Lt":"\u226A","ltdot":"\u22D6","lthree":"\u22CB","ltimes":"\u22C9","ltlarr":"\u2976","ltquest":"\u2A7B","ltri":"\u25C3","ltrie":"\u22B4","ltrif":"\u25C2","ltrPar":"\u2996","lurdshar":"\u294A","luruhar":"\u2966","lvertneqq":"\u2268\uFE00","lvnE":"\u2268\uFE00","macr":"\xAF","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21A6","mapsto":"\u21A6","mapstodown":"\u21A7","mapstoleft":"\u21A4","mapstoup":"\u21A5","marker":"\u25AE","mcomma":"\u2A29","Mcy":"\u041C","mcy":"\u043C","mdash":"\u2014","mDDot":"\u223A","measuredangle":"\u2221","MediumSpace":"\u205F","Mellintrf":"\u2133","Mfr":"\u{1D510}","mfr":"\u{1D52A}","mho":"\u2127","micro":"\xB5","midast":"*","midcir":"\u2AF0","mid":"\u2223","middot":"\xB7","minusb":"\u229F","minus":"\u2212","minusd":"\u2238","minusdu":"\u2A2A","MinusPlus":"\u2213","mlcp":"\u2ADB","mldr":"\u2026","mnplus":"\u2213","models":"\u22A7","Mopf":"\u{1D544}","mopf":"\u{1D55E}","mp":"\u2213","mscr":"\u{1D4C2}","Mscr":"\u2133","mstpos":"\u223E","Mu":"\u039C","mu":"\u03BC","multimap":"\u22B8","mumap":"\u22B8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20D2","nap":"\u2249","napE":"\u2A70\u0338","napid":"\u224B\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266E","naturals":"\u2115","natur":"\u266E","nbsp":"\xA0","nbump":"\u224E\u0338","nbumpe":"\u224F\u0338","ncap":"\u2A43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2A6D\u0338","ncup":"\u2A42","Ncy":"\u041D","ncy":"\u043D","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21D7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200B","NegativeThickSpace":"\u200B","NegativeThinSpace":"\u200B","NegativeVeryThinSpace":"\u200B","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226B","NestedLessLess":"\u226A","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1D511}","nfr":"\u{1D52B}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2A7E\u0338","nges":"\u2A7E\u0338","nGg":"\u22D9\u0338","ngsim":"\u2275","nGt":"\u226B\u20D2","ngt":"\u226F","ngtr":"\u226F","nGtv":"\u226B\u0338","nharr":"\u21AE","nhArr":"\u21CE","nhpar":"\u2AF2","ni":"\u220B","nis":"\u22FC","nisd":"\u22FA","niv":"\u220B","NJcy":"\u040A","njcy":"\u045A","nlarr":"\u219A","nlArr":"\u21CD","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219A","nLeftarrow":"\u21CD","nleftrightarrow":"\u21AE","nLeftrightarrow":"\u21CE","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2A7D\u0338","nles":"\u2A7D\u0338","nless":"\u226E","nLl":"\u22D8\u0338","nlsim":"\u2274","nLt":"\u226A\u20D2","nlt":"\u226E","nltri":"\u22EA","nltrie":"\u22EC","nLtv":"\u226A\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xA0","nopf":"\u{1D55F}","Nopf":"\u2115","Not":"\u2AEC","not":"\xAC","NotCongruent":"\u2262","NotCupCap":"\u226D","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226F","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226B\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2A7E\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224E\u0338","NotHumpEqual":"\u224F\u0338","notin":"\u2209","notindot":"\u22F5\u0338","notinE":"\u22F9\u0338","notinva":"\u2209","notinvb":"\u22F7","notinvc":"\u22F6","NotLeftTriangleBar":"\u29CF\u0338","NotLeftTriangle":"\u22EA","NotLeftTriangleEqual":"\u22EC","NotLess":"\u226E","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226A\u0338","NotLessSlantEqual":"\u2A7D\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2AA2\u0338","NotNestedLessLess":"\u2AA1\u0338","notni":"\u220C","notniva":"\u220C","notnivb":"\u22FE","notnivc":"\u22FD","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2AAF\u0338","NotPrecedesSlantEqual":"\u22E0","NotReverseElement":"\u220C","NotRightTriangleBar":"\u29D0\u0338","NotRightTriangle":"\u22EB","NotRightTriangleEqual":"\u22ED","NotSquareSubset":"\u228F\u0338","NotSquareSubsetEqual":"\u22E2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22E3","NotSubset":"\u2282\u20D2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2AB0\u0338","NotSucceedsSlantEqual":"\u22E1","NotSucceedsTilde":"\u227F\u0338","NotSuperset":"\u2283\u20D2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2AFD\u20E5","npart":"\u2202\u0338","npolint":"\u2A14","npr":"\u2280","nprcue":"\u22E0","nprec":"\u2280","npreceq":"\u2AAF\u0338","npre":"\u2AAF\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219B","nrArr":"\u21CF","nrarrw":"\u219D\u0338","nrightarrow":"\u219B","nRightarrow":"\u21CF","nrtri":"\u22EB","nrtrie":"\u22ED","nsc":"\u2281","nsccue":"\u22E1","nsce":"\u2AB0\u0338","Nscr":"\u{1D4A9}","nscr":"\u{1D4C3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22E2","nsqsupe":"\u22E3","nsub":"\u2284","nsubE":"\u2AC5\u0338","nsube":"\u2288","nsubset":"\u2282\u20D2","nsubseteq":"\u2288","nsubseteqq":"\u2AC5\u0338","nsucc":"\u2281","nsucceq":"\u2AB0\u0338","nsup":"\u2285","nsupE":"\u2AC6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20D2","nsupseteq":"\u2289","nsupseteqq":"\u2AC6\u0338","ntgl":"\u2279","Ntilde":"\xD1","ntilde":"\xF1","ntlg":"\u2278","ntriangleleft":"\u22EA","ntrianglelefteq":"\u22EC","ntriangleright":"\u22EB","ntrianglerighteq":"\u22ED","Nu":"\u039D","nu":"\u03BD","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224D\u20D2","nvdash":"\u22AC","nvDash":"\u22AD","nVdash":"\u22AE","nVDash":"\u22AF","nvge":"\u2265\u20D2","nvgt":">\u20D2","nvHarr":"\u2904","nvinfin":"\u29DE","nvlArr":"\u2902","nvle":"\u2264\u20D2","nvlt":"<\u20D2","nvltrie":"\u22B4\u20D2","nvrArr":"\u2903","nvrtrie":"\u22B5\u20D2","nvsim":"\u223C\u20D2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21D6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xD3","oacute":"\xF3","oast":"\u229B","Ocirc":"\xD4","ocirc":"\xF4","ocir":"\u229A","Ocy":"\u041E","ocy":"\u043E","odash":"\u229D","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2A38","odot":"\u2299","odsold":"\u29BC","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29BF","Ofr":"\u{1D512}","ofr":"\u{1D52C}","ogon":"\u02DB","Ograve":"\xD2","ograve":"\xF2","ogt":"\u29C1","ohbar":"\u29B5","ohm":"\u03A9","oint":"\u222E","olarr":"\u21BA","olcir":"\u29BE","olcross":"\u29BB","oline":"\u203E","olt":"\u29C0","Omacr":"\u014C","omacr":"\u014D","Omega":"\u03A9","omega":"\u03C9","Omicron":"\u039F","omicron":"\u03BF","omid":"\u29B6","ominus":"\u2296","Oopf":"\u{1D546}","oopf":"\u{1D560}","opar":"\u29B7","OpenCurlyDoubleQuote":"\u201C","OpenCurlyQuote":"\u2018","operp":"\u29B9","oplus":"\u2295","orarr":"\u21BB","Or":"\u2A54","or":"\u2228","ord":"\u2A5D","order":"\u2134","orderof":"\u2134","ordf":"\xAA","ordm":"\xBA","origof":"\u22B6","oror":"\u2A56","orslope":"\u2A57","orv":"\u2A5B","oS":"\u24C8","Oscr":"\u{1D4AA}","oscr":"\u2134","Oslash":"\xD8","oslash":"\xF8","osol":"\u2298","Otilde":"\xD5","otilde":"\xF5","otimesas":"\u2A36","Otimes":"\u2A37","otimes":"\u2297","Ouml":"\xD6","ouml":"\xF6","ovbar":"\u233D","OverBar":"\u203E","OverBrace":"\u23DE","OverBracket":"\u23B4","OverParenthesis":"\u23DC","para":"\xB6","parallel":"\u2225","par":"\u2225","parsim":"\u2AF3","parsl":"\u2AFD","part":"\u2202","PartialD":"\u2202","Pcy":"\u041F","pcy":"\u043F","percnt":"%","period":".","permil":"\u2030","perp":"\u22A5","pertenk":"\u2031","Pfr":"\u{1D513}","pfr":"\u{1D52D}","Phi":"\u03A6","phi":"\u03C6","phiv":"\u03D5","phmmat":"\u2133","phone":"\u260E","Pi":"\u03A0","pi":"\u03C0","pitchfork":"\u22D4","piv":"\u03D6","planck":"\u210F","planckh":"\u210E","plankv":"\u210F","plusacir":"\u2A23","plusb":"\u229E","pluscir":"\u2A22","plus":"+","plusdo":"\u2214","plusdu":"\u2A25","pluse":"\u2A72","PlusMinus":"\xB1","plusmn":"\xB1","plussim":"\u2A26","plustwo":"\u2A27","pm":"\xB1","Poincareplane":"\u210C","pointint":"\u2A15","popf":"\u{1D561}","Popf":"\u2119","pound":"\xA3","prap":"\u2AB7","Pr":"\u2ABB","pr":"\u227A","prcue":"\u227C","precapprox":"\u2AB7","prec":"\u227A","preccurlyeq":"\u227C","Precedes":"\u227A","PrecedesEqual":"\u2AAF","PrecedesSlantEqual":"\u227C","PrecedesTilde":"\u227E","preceq":"\u2AAF","precnapprox":"\u2AB9","precneqq":"\u2AB5","precnsim":"\u22E8","pre":"\u2AAF","prE":"\u2AB3","precsim":"\u227E","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2AB9","prnE":"\u2AB5","prnsim":"\u22E8","prod":"\u220F","Product":"\u220F","profalar":"\u232E","profline":"\u2312","profsurf":"\u2313","prop":"\u221D","Proportional":"\u221D","Proportion":"\u2237","propto":"\u221D","prsim":"\u227E","prurel":"\u22B0","Pscr":"\u{1D4AB}","pscr":"\u{1D4C5}","Psi":"\u03A8","psi":"\u03C8","puncsp":"\u2008","Qfr":"\u{1D514}","qfr":"\u{1D52E}","qint":"\u2A0C","qopf":"\u{1D562}","Qopf":"\u211A","qprime":"\u2057","Qscr":"\u{1D4AC}","qscr":"\u{1D4C6}","quaternions":"\u210D","quatint":"\u2A16","quest":"?","questeq":"\u225F","quot":"\\"","QUOT":"\\"","rAarr":"\u21DB","race":"\u223D\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221A","raemptyv":"\u29B3","rang":"\u27E9","Rang":"\u27EB","rangd":"\u2992","range":"\u29A5","rangle":"\u27E9","raquo":"\xBB","rarrap":"\u2975","rarrb":"\u21E5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21A0","rArr":"\u21D2","rarrfs":"\u291E","rarrhk":"\u21AA","rarrlp":"\u21AC","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21A3","rarrw":"\u219D","ratail":"\u291A","rAtail":"\u291C","ratio":"\u2236","rationals":"\u211A","rbarr":"\u290D","rBarr":"\u290F","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298C","rbrksld":"\u298E","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201D","rdquor":"\u201D","rdsh":"\u21B3","real":"\u211C","realine":"\u211B","realpart":"\u211C","reals":"\u211D","Re":"\u211C","rect":"\u25AD","reg":"\xAE","REG":"\xAE","ReverseElement":"\u220B","ReverseEquilibrium":"\u21CB","ReverseUpEquilibrium":"\u296F","rfisht":"\u297D","rfloor":"\u230B","rfr":"\u{1D52F}","Rfr":"\u211C","rHar":"\u2964","rhard":"\u21C1","rharu":"\u21C0","rharul":"\u296C","Rho":"\u03A1","rho":"\u03C1","rhov":"\u03F1","RightAngleBracket":"\u27E9","RightArrowBar":"\u21E5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21D2","RightArrowLeftArrow":"\u21C4","rightarrowtail":"\u21A3","RightCeiling":"\u2309","RightDoubleBracket":"\u27E7","RightDownTeeVector":"\u295D","RightDownVectorBar":"\u2955","RightDownVector":"\u21C2","RightFloor":"\u230B","rightharpoondown":"\u21C1","rightharpoonup":"\u21C0","rightleftarrows":"\u21C4","rightleftharpoons":"\u21CC","rightrightarrows":"\u21C9","rightsquigarrow":"\u219D","RightTeeArrow":"\u21A6","RightTee":"\u22A2","RightTeeVector":"\u295B","rightthreetimes":"\u22CC","RightTriangleBar":"\u29D0","RightTriangle":"\u22B3","RightTriangleEqual":"\u22B5","RightUpDownVector":"\u294F","RightUpTeeVector":"\u295C","RightUpVectorBar":"\u2954","RightUpVector":"\u21BE","RightVectorBar":"\u2953","RightVector":"\u21C0","ring":"\u02DA","risingdotseq":"\u2253","rlarr":"\u21C4","rlhar":"\u21CC","rlm":"\u200F","rmoustache":"\u23B1","rmoust":"\u23B1","rnmid":"\u2AEE","roang":"\u27ED","roarr":"\u21FE","robrk":"\u27E7","ropar":"\u2986","ropf":"\u{1D563}","Ropf":"\u211D","roplus":"\u2A2E","rotimes":"\u2A35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2A12","rrarr":"\u21C9","Rrightarrow":"\u21DB","rsaquo":"\u203A","rscr":"\u{1D4C7}","Rscr":"\u211B","rsh":"\u21B1","Rsh":"\u21B1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22CC","rtimes":"\u22CA","rtri":"\u25B9","rtrie":"\u22B5","rtrif":"\u25B8","rtriltri":"\u29CE","RuleDelayed":"\u29F4","ruluhar":"\u2968","rx":"\u211E","Sacute":"\u015A","sacute":"\u015B","sbquo":"\u201A","scap":"\u2AB8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2ABC","sc":"\u227B","sccue":"\u227D","sce":"\u2AB0","scE":"\u2AB4","Scedil":"\u015E","scedil":"\u015F","Scirc":"\u015C","scirc":"\u015D","scnap":"\u2ABA","scnE":"\u2AB6","scnsim":"\u22E9","scpolint":"\u2A13","scsim":"\u227F","Scy":"\u0421","scy":"\u0441","sdotb":"\u22A1","sdot":"\u22C5","sdote":"\u2A66","searhk":"\u2925","searr":"\u2198","seArr":"\u21D8","searrow":"\u2198","sect":"\xA7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1D516}","sfr":"\u{1D530}","sfrown":"\u2322","sharp":"\u266F","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xAD","Sigma":"\u03A3","sigma":"\u03C3","sigmaf":"\u03C2","sigmav":"\u03C2","sim":"\u223C","simdot":"\u2A6A","sime":"\u2243","simeq":"\u2243","simg":"\u2A9E","simgE":"\u2AA0","siml":"\u2A9D","simlE":"\u2A9F","simne":"\u2246","simplus":"\u2A24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2A33","smeparsl":"\u29E4","smid":"\u2223","smile":"\u2323","smt":"\u2AAA","smte":"\u2AAC","smtes":"\u2AAC\uFE00","SOFTcy":"\u042C","softcy":"\u044C","solbar":"\u233F","solb":"\u29C4","sol":"/","Sopf":"\u{1D54A}","sopf":"\u{1D564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\uFE00","sqcup":"\u2294","sqcups":"\u2294\uFE00","Sqrt":"\u221A","sqsub":"\u228F","sqsube":"\u2291","sqsubset":"\u228F","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25A1","Square":"\u25A1","SquareIntersection":"\u2293","SquareSubset":"\u228F","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25AA","squ":"\u25A1","squf":"\u25AA","srarr":"\u2192","Sscr":"\u{1D4AE}","sscr":"\u{1D4C8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22C6","Star":"\u22C6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03F5","straightphi":"\u03D5","strns":"\xAF","sub":"\u2282","Sub":"\u22D0","subdot":"\u2ABD","subE":"\u2AC5","sube":"\u2286","subedot":"\u2AC3","submult":"\u2AC1","subnE":"\u2ACB","subne":"\u228A","subplus":"\u2ABF","subrarr":"\u2979","subset":"\u2282","Subset":"\u22D0","subseteq":"\u2286","subseteqq":"\u2AC5","SubsetEqual":"\u2286","subsetneq":"\u228A","subsetneqq":"\u2ACB","subsim":"\u2AC7","subsub":"\u2AD5","subsup":"\u2AD3","succapprox":"\u2AB8","succ":"\u227B","succcurlyeq":"\u227D","Succeeds":"\u227B","SucceedsEqual":"\u2AB0","SucceedsSlantEqual":"\u227D","SucceedsTilde":"\u227F","succeq":"\u2AB0","succnapprox":"\u2ABA","succneqq":"\u2AB6","succnsim":"\u22E9","succsim":"\u227F","SuchThat":"\u220B","sum":"\u2211","Sum":"\u2211","sung":"\u266A","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","sup":"\u2283","Sup":"\u22D1","supdot":"\u2ABE","supdsub":"\u2AD8","supE":"\u2AC6","supe":"\u2287","supedot":"\u2AC4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27C9","suphsub":"\u2AD7","suplarr":"\u297B","supmult":"\u2AC2","supnE":"\u2ACC","supne":"\u228B","supplus":"\u2AC0","supset":"\u2283","Supset":"\u22D1","supseteq":"\u2287","supseteqq":"\u2AC6","supsetneq":"\u228B","supsetneqq":"\u2ACC","supsim":"\u2AC8","supsub":"\u2AD4","supsup":"\u2AD6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21D9","swarrow":"\u2199","swnwar":"\u292A","szlig":"\xDF","Tab":"\\t","target":"\u2316","Tau":"\u03A4","tau":"\u03C4","tbrk":"\u23B4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20DB","telrec":"\u2315","Tfr":"\u{1D517}","tfr":"\u{1D531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03B8","thetasym":"\u03D1","thetav":"\u03D1","thickapprox":"\u2248","thicksim":"\u223C","ThickSpace":"\u205F\u200A","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223C","THORN":"\xDE","thorn":"\xFE","tilde":"\u02DC","Tilde":"\u223C","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2A31","timesb":"\u22A0","times":"\xD7","timesd":"\u2A30","tint":"\u222D","toea":"\u2928","topbot":"\u2336","topcir":"\u2AF1","top":"\u22A4","Topf":"\u{1D54B}","topf":"\u{1D565}","topfork":"\u2ADA","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25B5","triangledown":"\u25BF","triangleleft":"\u25C3","trianglelefteq":"\u22B4","triangleq":"\u225C","triangleright":"\u25B9","trianglerighteq":"\u22B5","tridot":"\u25EC","trie":"\u225C","triminus":"\u2A3A","TripleDot":"\u20DB","triplus":"\u2A39","trisb":"\u29CD","tritime":"\u2A3B","trpezium":"\u23E2","Tscr":"\u{1D4AF}","tscr":"\u{1D4C9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040B","tshcy":"\u045B","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226C","twoheadleftarrow":"\u219E","twoheadrightarrow":"\u21A0","Uacute":"\xDA","uacute":"\xFA","uarr":"\u2191","Uarr":"\u219F","uArr":"\u21D1","Uarrocir":"\u2949","Ubrcy":"\u040E","ubrcy":"\u045E","Ubreve":"\u016C","ubreve":"\u016D","Ucirc":"\xDB","ucirc":"\xFB","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21C5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296E","ufisht":"\u297E","Ufr":"\u{1D518}","ufr":"\u{1D532}","Ugrave":"\xD9","ugrave":"\xF9","uHar":"\u2963","uharl":"\u21BF","uharr":"\u21BE","uhblk":"\u2580","ulcorn":"\u231C","ulcorner":"\u231C","ulcrop":"\u230F","ultri":"\u25F8","Umacr":"\u016A","umacr":"\u016B","uml":"\xA8","UnderBar":"_","UnderBrace":"\u23DF","UnderBracket":"\u23B5","UnderParenthesis":"\u23DD","Union":"\u22C3","UnionPlus":"\u228E","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1D54C}","uopf":"\u{1D566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21D1","UpArrowDownArrow":"\u21C5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21D5","UpEquilibrium":"\u296E","upharpoonleft":"\u21BF","upharpoonright":"\u21BE","uplus":"\u228E","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03C5","Upsi":"\u03D2","upsih":"\u03D2","Upsilon":"\u03A5","upsilon":"\u03C5","UpTeeArrow":"\u21A5","UpTee":"\u22A5","upuparrows":"\u21C8","urcorn":"\u231D","urcorner":"\u231D","urcrop":"\u230E","Uring":"\u016E","uring":"\u016F","urtri":"\u25F9","Uscr":"\u{1D4B0}","uscr":"\u{1D4CA}","utdot":"\u22F0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25B5","utrif":"\u25B4","uuarr":"\u21C8","Uuml":"\xDC","uuml":"\xFC","uwangle":"\u29A7","vangrt":"\u299C","varepsilon":"\u03F5","varkappa":"\u03F0","varnothing":"\u2205","varphi":"\u03D5","varpi":"\u03D6","varpropto":"\u221D","varr":"\u2195","vArr":"\u21D5","varrho":"\u03F1","varsigma":"\u03C2","varsubsetneq":"\u228A\uFE00","varsubsetneqq":"\u2ACB\uFE00","varsupsetneq":"\u228B\uFE00","varsupsetneqq":"\u2ACC\uFE00","vartheta":"\u03D1","vartriangleleft":"\u22B2","vartriangleright":"\u22B3","vBar":"\u2AE8","Vbar":"\u2AEB","vBarv":"\u2AE9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22A2","vDash":"\u22A8","Vdash":"\u22A9","VDash":"\u22AB","Vdashl":"\u2AE6","veebar":"\u22BB","vee":"\u2228","Vee":"\u22C1","veeeq":"\u225A","vellip":"\u22EE","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200A","Vfr":"\u{1D519}","vfr":"\u{1D533}","vltri":"\u22B2","vnsub":"\u2282\u20D2","vnsup":"\u2283\u20D2","Vopf":"\u{1D54D}","vopf":"\u{1D567}","vprop":"\u221D","vrtri":"\u22B3","Vscr":"\u{1D4B1}","vscr":"\u{1D4CB}","vsubnE":"\u2ACB\uFE00","vsubne":"\u228A\uFE00","vsupnE":"\u2ACC\uFE00","vsupne":"\u228B\uFE00","Vvdash":"\u22AA","vzigzag":"\u299A","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2A5F","wedge":"\u2227","Wedge":"\u22C0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1D51A}","wfr":"\u{1D534}","Wopf":"\u{1D54E}","wopf":"\u{1D568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1D4B2}","wscr":"\u{1D4CC}","xcap":"\u22C2","xcirc":"\u25EF","xcup":"\u22C3","xdtri":"\u25BD","Xfr":"\u{1D51B}","xfr":"\u{1D535}","xharr":"\u27F7","xhArr":"\u27FA","Xi":"\u039E","xi":"\u03BE","xlarr":"\u27F5","xlArr":"\u27F8","xmap":"\u27FC","xnis":"\u22FB","xodot":"\u2A00","Xopf":"\u{1D54F}","xopf":"\u{1D569}","xoplus":"\u2A01","xotime":"\u2A02","xrarr":"\u27F6","xrArr":"\u27F9","Xscr":"\u{1D4B3}","xscr":"\u{1D4CD}","xsqcup":"\u2A06","xuplus":"\u2A04","xutri":"\u25B3","xvee":"\u22C1","xwedge":"\u22C0","Yacute":"\xDD","yacute":"\xFD","YAcy":"\u042F","yacy":"\u044F","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042B","ycy":"\u044B","yen":"\xA5","Yfr":"\u{1D51C}","yfr":"\u{1D536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1D550}","yopf":"\u{1D56A}","Yscr":"\u{1D4B4}","yscr":"\u{1D4CE}","YUcy":"\u042E","yucy":"\u044E","yuml":"\xFF","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017A","Zcaron":"\u017D","zcaron":"\u017E","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017B","zdot":"\u017C","zeetrf":"\u2128","ZeroWidthSpace":"\u200B","Zeta":"\u0396","zeta":"\u03B6","zfr":"\u{1D537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21DD","zopf":"\u{1D56B}","Zopf":"\u2124","Zscr":"\u{1D4B5}","zscr":"\u{1D4CF}","zwj":"\u200D","zwnj":"\u200C"}')},9591:j=>{"use strict";j.exports=JSON.parse('{"Aacute":"\xC1","aacute":"\xE1","Acirc":"\xC2","acirc":"\xE2","acute":"\xB4","AElig":"\xC6","aelig":"\xE6","Agrave":"\xC0","agrave":"\xE0","amp":"&","AMP":"&","Aring":"\xC5","aring":"\xE5","Atilde":"\xC3","atilde":"\xE3","Auml":"\xC4","auml":"\xE4","brvbar":"\xA6","Ccedil":"\xC7","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","COPY":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","Eacute":"\xC9","eacute":"\xE9","Ecirc":"\xCA","ecirc":"\xEA","Egrave":"\xC8","egrave":"\xE8","ETH":"\xD0","eth":"\xF0","Euml":"\xCB","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","GT":">","Iacute":"\xCD","iacute":"\xED","Icirc":"\xCE","icirc":"\xEE","iexcl":"\xA1","Igrave":"\xCC","igrave":"\xEC","iquest":"\xBF","Iuml":"\xCF","iuml":"\xEF","laquo":"\xAB","lt":"<","LT":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","Ntilde":"\xD1","ntilde":"\xF1","Oacute":"\xD3","oacute":"\xF3","Ocirc":"\xD4","ocirc":"\xF4","Ograve":"\xD2","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","Oslash":"\xD8","oslash":"\xF8","Otilde":"\xD5","otilde":"\xF5","Ouml":"\xD6","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","QUOT":"\\"","raquo":"\xBB","reg":"\xAE","REG":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","THORN":"\xDE","thorn":"\xFE","times":"\xD7","Uacute":"\xDA","uacute":"\xFA","Ucirc":"\xDB","ucirc":"\xFB","Ugrave":"\xD9","ugrave":"\xF9","uml":"\xA8","Uuml":"\xDC","uuml":"\xFC","Yacute":"\xDD","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},2586:j=>{"use strict";j.exports=JSON.parse(`{"amp":"&","apos":"'","gt":">","lt":"<","quot":"\\""}`)}},An={};function Ae(j){var b=An[j];if(b!==void 0)return b.exports;var H=An[j]={exports:{}};return gr[j].call(H.exports,H,H.exports,Ae),H.exports}Ae.n=j=>{var b=j&&j.__esModule?()=>j.default:()=>j;return Ae.d(b,{a:b}),b},Ae.d=(j,b)=>{for(var H in b)Ae.o(b,H)&&!Ae.o(j,H)&&Object.defineProperty(j,H,{enumerable:!0,get:b[H]})},Ae.o=(j,b)=>Object.prototype.hasOwnProperty.call(j,b),Ae.r=j=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})};var Qr={};return(()=>{"use strict";Ae.r(Qr),Ae.d(Qr,{default:()=>T});var j=function(){return j=Object.assign||function(g){for(var S,x=1,k=arguments.length;x".concat(M.getCss(),"");return E()(ot,v(v({},rt.juiceOpts),rt))}}),I.add("export-template",{containerEl:null,codeEditorHtml:null,createCodeViewer:function(){return R.CodeManager.createViewer({codeName:"htmlmixed",theme:h.codeViewerTheme})},createCodeEditor:function(){var M=document.createElement("div"),B=this.createCodeViewer();return M.style.flex="1 0 auto",M.style.boxSizing="border-box",M.className="".concat(D,"export-code"),M.appendChild(B.getElement()),{codeEditor:B,el:M}},getCodeContainer:function(){var M=this.containerEl;return M||((M=document.createElement("div")).className="".concat(D,"export-container"),M.style.display="flex",M.style.gap="5px",M.style.flexDirection="column",M.style.justifyContent="space-between",this.containerEl=M),M},run:function(M){var B=this.codeEditorHtml,rt=this.getCodeContainer();if(!B){var ot=this.createCodeEditor();if(B=ot.codeEditor,this.codeEditorHtml=B,h.modalLabelExport){var dt=document.createElement("div");dt.className="".concat(D,"export-label"),dt.innerHTML=h.modalLabelExport,rt.appendChild(dt)}rt.appendChild(ot.el)}if(M.Modal.open({title:h.modalTitleExport,content:rt}),B){var st="".concat(M.getHtml(),"");B.setContent(h.inlineCss?E()(st,h.juiceOpts):st),B.editor.refresh()}}})})(g,S),(function(R,h){R.Commands.add(h.cmdTglImages,{run:function(I){var D=I.getComponents();this.toggleImages(D)},stop:function(I){var D=I.getComponents();this.toggleImages(D,!0)},toggleImages:function(I,D){var M=this;D===void 0&&(D=!1);var B="##";I.forEach((function(rt){if(rt.get("type")==="image"){var ot=rt.get("src");D?ot===B&&rt.set("src",rt.get("src_bkp")):ot!==B&&(rt.set("src_bkp",rt.get("src")),rt.set("src",B))}M.toggleImages(rt.components(),D)}))}})})(g,S),x.add(b,{run:function(R){return R.setDevice("Desktop")},stop:function(){}}),x.add(H,{run:function(R){return R.setDevice("Tablet")},stop:function(){}}),x.add(w,{run:function(R){return R.setDevice("Mobile portrait")},stop:function(){}}),x.add(N,{run:function(R){var h="core:canvas-clear";k?confirm(k)&&R.runCommand(h):R.runCommand(h)}})};var m=function(){return m=Object.assign||function(g){for(var S,x=1,k=arguments.length;x=0&&D.Blocks.add(z,j(j({select:!0},at),M.block(z)))};for(var Z in ot)B+="".concat(Z,": ").concat(ot[Z],"; ");for(var Z in dt)rt+="".concat(Z,": ").concat(dt[Z],"; ");st("sect100",{label:"1 Section",media:` `,content:`
`)}),st("sect50",{label:"1/2 Section",media:` `,content:`
`)}),st("sect30",{label:"1/3 Section",media:` `,content:`
`)}),st("sect37",{label:"3/7 Section",media:` `,content:`
`)}),st("button",{label:"Button",media:` `,content:'Button'}),st("divider",{label:"Divider",media:` `,content:`
`}),st("text",{label:"Text",media:` `,activate:!0,content:{type:"text",content:"Insert your text here",style:{padding:"10px"}}}),st("text-sect",{label:"Text Section",media:` `,content:`

Insert title here

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

`}),st("image",{label:"Image",media:` `,activate:!0,content:{type:"image",style:{color:"black"}}}),st("quote",{label:"Quote",media:` `,content:'
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ipsum dolor sit
'}),st("link",{label:"Link",media:` `,content:{type:"link",content:"Link",style:{color:"#3b97e3"}}}),st("link-block",{label:"Link Block",media:` `,content:{type:"link",editable:!1,droppable:!0,style:{display:"inline-block",padding:"5px","min-height":"50px","min-width":"50px"}}});var K=`
Image

Title here

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt

`;st("grid-items",{label:"Grid Items",media:` `,content:`
`.concat(K,` `).concat(K,`
`)});var Q=`
Image

Title here

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt

`;st("list-items",{label:"List Items",media:` `,content:Q+Q})})(g,k),(function(D,M){var B=D.Panels,rt=M.cmdOpenImport,ot=M.cmdTglImages,dt="export-template",st="open-sm",Z="open-tm",K="open-layers",Q="open-blocks",z="sw-visibility",at="fullscreen",$="preview",mt='style="display: block; max-width: 22px"';D.getConfig().showDevices=!1,B.getPanels().reset([{id:"commands",buttons:[{}]},{id:"devices-c",buttons:[{id:b,command:b,active:!0,label:" `)},{id:H,command:H,label:" `)},{id:w,command:w,label:" `)}]},{id:"options",buttons:[{id:z,command:z,context:z,label:" `)},{id:$,context:$,command:$,label:"')},{id:at,command:at,context:at,label:" `)},{id:dt,command:dt,label:" `)},{id:rt,command:rt,label:" `)},{id:ot,command:ot,label:" `)},{id:"undo",command:"core:undo",label:" `)},{id:"redo",command:"core:redo",label:" `)},{id:N,command:N,label:" `)}]},{id:"views",buttons:[{id:st,command:st,active:!0,label:" `)},{id:Z,command:Z,label:" `)},{id:K,command:K,label:" `)},{id:Q,command:Q,label:" `)}]}]),M.showStylesOnChange&&D.on("component:selected",(function(){var X=B.getButton("views",K);if((!X||!X.get("active"))&&D.getSelected()){var kt=B.getButton("views",st);kt?.set("active",!0)}})),D.onReady((function(){if(M.showBlocksOnLoad){var X=B.getButton("views",Q);X?.set("active",!0)}}))})(g,k),(function(D,M){var B=D.StyleManager.getSectors();if(M.updateStyleManager){var rt=[{name:"Dimension",open:!1,buildProps:["width","height","max-width","min-height","margin","padding"],properties:[{property:"margin",properties:[{name:"Top",property:"margin-top"},{name:"Left",property:"margin-left"},{name:"Right",property:"margin-right"},{name:"Bottom",property:"margin-bottom"}]},{property:"padding",properties:[{name:"Top",property:"padding-top"},{name:"Right",property:"padding-right"},{name:"Bottom",property:"padding-bottom"},{name:"Left",property:"padding-left"}]}]},{name:"Typography",open:!1,buildProps:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","text-decoration","font-style","vertical-align","text-shadow"],properties:[{name:"Font",property:"font-family"},{name:"Weight",property:"font-weight"},{name:"Font color",property:"color"},{property:"text-align",type:"radio",defaults:"left",list:[{value:"left",name:"Left",className:"fa fa-align-left"},{value:"center",name:"Center",className:"fa fa-align-center"},{value:"right",name:"Right",className:"fa fa-align-right"},{value:"justify",name:"Justify",className:"fa fa-align-justify"}]},{property:"text-decoration",type:"radio",defaults:"none",list:[{value:"none",name:"None",className:"fa fa-times"},{value:"underline",name:"underline",className:"fa fa-underline"},{value:"line-through",name:"Line-through",className:"fa fa-strikethrough"}]},{property:"font-style",type:"radio",defaults:"normal",list:[{value:"normal",name:"Normal",className:"fa fa-font"},{value:"italic",name:"Italic",className:"fa fa-italic"}]},{property:"vertical-align",type:"select",defaults:"baseline",list:[{value:"baseline"},{value:"top"},{value:"middle"},{value:"bottom"}]},{property:"text-shadow",properties:[{name:"X position",property:"text-shadow-h"},{name:"Y position",property:"text-shadow-v"},{name:"Blur",property:"text-shadow-blur"},{name:"Color",property:"text-shadow-color"}]}]},{name:"Decorations",open:!1,buildProps:["background-color","border-collapse","border-radius","border","background"],properties:[{property:"background-color",name:"Background"},{property:"border-radius",properties:[{name:"Top",property:"border-top-left-radius"},{name:"Right",property:"border-top-right-radius"},{name:"Bottom",property:"border-bottom-left-radius"},{name:"Left",property:"border-bottom-right-radius"}]},{property:"border-collapse",type:"radio",defaults:"separate",list:[{value:"separate",name:"No"},{value:"collapse",name:"Yes"}]},{property:"border",properties:[{name:"Width",property:"border-width",defaults:"0"},{name:"Style",property:"border-style"},{name:"Color",property:"border-color"}]},{property:"background",properties:[{name:"Image",property:"background-image"},{name:"Repeat",property:"background-repeat"},{name:"Position",property:"background-position"},{name:"Attachment",property:"background-attachment"},{name:"Size",property:"background-size"}]}]}];D.onReady((function(){B.reset(),B.add(rt)}))}})(g,k)}})(),Qr})()));/*! grapesjs-preset-webpage - 1.0.3 */(function(gr,An){typeof exports=="object"&&typeof module=="object"?module.exports=An():typeof define=="function"&&define.amd?define([],An):typeof exports=="object"?exports["grapesjs-preset-webpage"]=An():gr["grapesjs-preset-webpage"]=An()})(typeof globalThis<"u"?globalThis:typeof window<"u"?window:this,(()=>(()=>{"use strict";var gr={d:(_,m)=>{for(var T in m)gr.o(m,T)&&!gr.o(_,T)&&Object.defineProperty(_,T,{enumerable:!0,get:m[T]})},o:(_,m)=>Object.prototype.hasOwnProperty.call(_,m),r:_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})}},An={};gr.r(An),gr.d(An,{default:()=>v});var Ae=function(){return Ae=Object.assign||function(_){for(var m,T=1,g=arguments.length;T=0&&k.Blocks.add(I,Ae(Ae({select:!0,category:"Basic"},D),R.block(I)))};h("link-block",{label:"Link Block",media:` `,content:{type:"link",editable:!1,droppable:!0,style:{display:"inline-block",padding:"5px","min-height":"50px","min-width":"50px"}}}),h("quote",{label:"Quote",media:` `,content:`
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ipsum dolor sit
`}),h("text-basic",{label:"Text section",media:` `,content:`

Insert title here

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

`})})(_,T),A(_,T),(function(k,R){var h=k.Panels,I=k.getConfig(),D="sw-visibility",M="export-template",B="open-sm",rt="open-tm",ot="open-layers",dt="open-blocks",st="fullscreen",Z="preview",K='style="display: block; max-width:22px"';I.showDevices=!1,h.getPanels().reset([{id:"commands",buttons:[{}]},{id:"devices-c",buttons:[{id:j,command:j,active:!0,label:" `)},{id:b,command:b,label:" `)},{id:H,command:H,label:" `)}]},{id:"options",buttons:[{id:D,command:D,context:D,label:" `)},{id:Z,context:Z,command:function(){return k.runCommand(Z)},label:"')},{id:st,command:st,context:st,label:" `)},{id:M,command:function(){return k.runCommand(M)},label:" `)},{id:"undo",command:function(){return k.runCommand("core:undo")},label:" `)},{id:"redo",command:function(){return k.runCommand("core:redo")},label:" `)},{id:Qr,command:function(){return k.runCommand(Qr)},label:" `)},{id:w,command:function(){return k.runCommand(w)},label:" `)}]},{id:"views",buttons:[{id:B,command:B,active:!0,label:" `)},{id:rt,command:rt,label:" `)},{id:ot,command:ot,label:" `)},{id:dt,command:dt,label:" `)}]}]);var Q=h.getButton("views",dt);k.on("load",(function(){return Q?.set("active",!0)})),R.showStylesOnChange&&k.on("component:selected",(function(){var z=h.getButton("views",B),at=h.getButton("views",ot);at&&at.get("active")||!k.getSelected()||z==null||z.set("active",!0)}))})(_,T)};return An})()));/*! grapesjs-blocks-basic - 1.0.2 */(function(gr,An){typeof exports=="object"&&typeof module=="object"?module.exports=An():typeof define=="function"&&define.amd?define([],An):typeof exports=="object"?exports["gjs-blocks-basic"]=An():gr["gjs-blocks-basic"]=An()})(typeof globalThis<"u"?globalThis:typeof window<"u"?window:this,(()=>(()=>{"use strict";var gr={d:(b,H)=>{for(var w in H)gr.o(H,w)&&!gr.o(b,w)&&Object.defineProperty(b,w,{enumerable:!0,get:H[w]})},o:(b,H)=>Object.prototype.hasOwnProperty.call(b,H),r:b=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})}},An={};gr.r(An),gr.d(An,{default:()=>j});var Ae=function(){return Ae=Object.assign||function(b){for(var H,w=1,N=arguments.length;w=0&&at.set("private",1)}));var st=function(at){var $=[];for(var mt in at){var X=at[mt];X=X instanceof Array||X instanceof Object?JSON.stringify(X):X,$.push("".concat(mt,"=").concat("'".concat(X,"'")))}return $.length?" ".concat($.join(" ")):""},Z=function(at){return v.indexOf(at)>=0},K=st(rt),Q=st(ot),z={category:E,select:!0};Z("column1")&&A.add("column1",Ae(Ae({},z),{label:N.labelColumn1,media:` `,content:"
`).concat(g?``):"")})),Z("column2")&&A.add("column2",Ae(Ae({},z),{label:N.labelColumn2,media:` `,content:"
`).concat(g?``):"")})),Z("column3")&&A.add("column3",Ae(Ae({},z),{label:N.labelColumn3,media:` `,content:"
`).concat(g?``):"")})),Z("column3-7")&&A.add("column3-7",Ae(Ae({},z),{label:N.labelColumn37,media:` `,content:"
`).concat(g?``):"")})),Z("text")&&A.add("text",Ae(Ae({},z),{activate:!0,label:N.labelText,media:` `,content:{type:"text",content:"Insert your text here",style:{padding:"10px"}}})),Z("link")&&A.add("link",Ae(Ae({},z),{label:N.labelLink,media:` `,content:{type:"link",content:"Link",style:{color:"#d983a6"}}})),Z("image")&&A.add("image",Ae(Ae({},z),{activate:!0,label:N.labelImage,media:` `,content:{style:{color:"black"},type:"image"}})),Z("video")&&A.add("video",Ae(Ae({},z),{label:N.labelVideo,media:` `,content:{type:"video",src:"img/video2.webm",style:{height:"350px",width:"615px"}}})),Z("map")&&A.add("map",Ae(Ae({},z),{label:N.labelMap,media:` `,content:{type:"map",style:{height:"350px"}}}))})(b,Qr({blocks:["column1","column2","column3","column3-7","text","link","image","video","map"],flexGrid:!1,stylePrefix:"gjs-",addBasicStyle:!0,category:"Basic",labelColumn1:"1 Column",labelColumn2:"2 Columns",labelColumn3:"3 Columns",labelColumn37:"2 Columns 3/7",labelText:"Text",labelLink:"Link",labelImage:"Image",labelVideo:"Video",labelMap:"Map",rowHeight:75},H))};return An})()));