PageSourceSearch

https://subscribe.esmmagazine.com/build/assets/app-Bg5nqG8I.js

js esmmagazine.com collected 2026-10-01 08:37:45 UTC 965,319 bytes, 809 lines download raw bytes

vendor: 2,633 bytes, lines 1-8
1import{c as ac,g as Og,$ as mI,h as gI}from"./moment-CgG1V22o.js";var Xd={exports:{}};/**
2 * @license
3 * Lodash <https://lodash.com/>
4 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5 * Released under MIT license <https://lodash.com/license>
6 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8 */Xd.exports;(function(t,e){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",v=1,m=2,b=4,x=1,T=2,S=1,M=2,L=4,P=8,A=16,H=32,W=64,J=128,ee=256,X=512,ie=30,ge="...",Y=800,ne=16,Te=1,Be=2,He=3,Re=1/0,Oe=9007199254740991,zt=17976931348623157e292,bt=NaN,$e=4294967295,qe=$e-1,at=$e>>>1,Ve=[["ary",J],["bind",S],["bindKey",M],["curry",P],["curryRight",A],["flip",X],["partial",H],["partialRight",W],["rearg",ee]],Ae="[object Arguments]",Ne="[object Array]",Dt="[object AsyncFunction]",Wt="[object Boolean]",Ht="[object Date]",qt="[object DOMException]",tr="[object Error]",ht="[object Function]",br="[object GeneratorFunction]",kt="[object Map]",xr="[object Number]",We="[object Null]",ye="[object Object]",_e="[object Promise]",rt="[object Proxy]",et="[object RegExp]",yt="[object Set]",Xe="[object String]",xe="[object Symbol]",De="[object Undefined]",Je="[object WeakMap]",wt="[object WeakSet]",xt="[object ArrayBuffer]",Vt="[object DataView]",lr="[object Float32Array]",jr="[object Float64Array]",Cr="[object Int8Array]",hn="[object Int16Array]",Er="[object Int32Array]",ce="[object Uint8Array]",Ke="[object Uint8ClampedArray]",pt="[object Uint16Array]",gt="[object Uint32Array]",st=/\b__p \+= '';/g,ir=/\b(__p \+=) '' \+/g,ur=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,Fn=/[&<>"']/g,Tr=RegExp(ar.source),dr=RegExp(Fn.source),An=/<%-([\s\S]+?)%>/g,Kr=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ui=/^\w*$/,Ga=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mn=/[\\^$.*+?()[\]{}|]/g,qn=RegExp(Mn.source),wa=/^\s+/,F=/\s/,G=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,B=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/[()=,{}\[\]\/\s]/,oe=/\\(\\)?/g,be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,je=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,Mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,133 bytes, line 8
87f]/g,Lt=/($^)/,Pr=/['\n\r\u2028\u2029\\]/g,Pt="\\ud800-\\udfff",rr="\\u0300-\\u036f",Or="\\ufe20-\\ufe2f",vn="\\u20d0-\\u20ff",Hr=rr+Or+vn,Ti="\\u2700-\\u27bf",xa="a-z\\xdf-\\xf6\\xf8-\\xff",Ka="\\xac\\xb1\\xd7\\xf7",bo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_i="\\u2000-\\u206f",ks=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$n="A-Z\\xc0-\\xd6\\xd8-\\xde",Si="\\ufe0e\\ufe0f",en=Ka+bo+_i+ks,ki="['’]",Ca="["+Pt+"]",qi="["+en+"]",Ja="["+Hr+"]",bl="\\d+",Wo="["+Ti+"]",wl="["+xa+"]",Os="[^"+Pt+en+bl+Ti+xa+$n+"]",wo="\\ud83c[\\udffb-\\udfff]",Ya="(?:"+Ja+"|"+wo+")",xl="[^"+Pt+"]",xo="(?:\\ud83c[\\udde6-\\uddff]){2}",Cl="[\\ud800-\\udbff][\\udc00-\\udfff]",Xa="["+$n+"]",$i="\\u200d",Qa="(?:"+wl+"|"+Os+")",Tu="(?:"+Xa+"|"+Os+")",Vo="(?:"+ki+"(?:d|ll|m|re|s|t|ve))?",Go="(?:"+ki+"(?:D|LL|M|RE|S|T|VE))?",Ea=Ya+"?",As="["+Si+"]?",zc="(?:"+$i+"(?:"+[xl,xo,Cl].join("|")+")"+As+Ea+")*",El="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_u="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Su=As+Ea+zc,Ta="(?:"+[Wo,xo,Cl].join("|")+")"+Su,Wc="(?:"+[xl+Ja+"?",Ja,xo,Cl,Ca].join("|")+")",Vc=RegExp(ki,"g"),Gc=RegExp(Ja,"g"),Ko=RegExp(wo+"(?="+wo+")|"+Wc+Su,"g"),Kc=RegExp([Xa+"?"+wl+"+"+Vo+"(?="+[qi,Xa,"$"].join("|")+")",Tu+"+"+Go+"(?="+[qi,Xa+Qa,"$"].join("|")+")",Xa+"?"+Qa+"+"+Vo,Xa+"+"+Go,_u,El,bl,Ta].join("|"),"g"),Jc=RegExp("["+$i+Pt+Hr+Si+"]"),ku=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ms=-1,Rr={};Rr[lr]=Rr[jr]=Rr[Cr]=Rr[hn]=Rr[Er]=Rr[ce]=Rr[Ke]=Rr[pt]=Rr[gt]=!0,Rr[Ae]=Rr[Ne]=Rr[xt]=Rr[Wt]=Rr[Vt]=Rr[Ht]=Rr[tr]=Rr[ht]=Rr[kt]=Rr[xr]=Rr[ye]=Rr[et]=Rr[yt]=Rr[Xe]=Rr[Je]=!1;var hr={};hr[Ae]=hr[Ne]=hr[xt]=hr[Vt]=hr[Wt]=hr[Ht]=hr[lr]=hr[jr]=hr[Cr]=hr[hn]=hr[Er]=hr[kt]=hr[xr]=hr[ye]=hr[et]=hr[yt]=hr[Xe]=hr[xe]=hr[ce]=hr[Ke]=hr[pt]=hr[gt]=!0,hr[tr]=hr[ht]=hr[Je]=!1;var _a={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ui={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ou={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Au={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ls=parseFloat,Yc=parseInt,Ds=typeof ac=="object"&&ac&&ac.Object===Object&&ac,_l=typeof self=="object"&&self&&self.Object===Object&&self,an=Ds||_l||Function("return this")(),aa=e&&!e.nodeType&&e,Sa=aa&&!0&&t&&!t.nodeType&&t,Mu=Sa&&Sa.exports===aa,Sl=Mu&&Ds.process,ci=function(){try{var Z=Sa&&Sa.require&&Sa.require("util").t
vendor: 11,850 bytes, line 8
8ypes;return Z||Sl&&Sl.binding&&Sl.binding("util")}catch{}}(),kl=ci&&ci.isArrayBuffer,Is=ci&&ci.isDate,Ol=ci&&ci.isMap,Lu=ci&&ci.isRegExp,Du=ci&&ci.isSet,Iu=ci&&ci.isTypedArray;function Un(Z,ve,ue){switch(ue.length){case 0:return Z.call(ve);case 1:return Z.call(ve,ue[0]);case 2:return Z.call(ve,ue[0],ue[1]);case 3:return Z.call(ve,ue[0],ue[1],ue[2])}return Z.apply(ve,ue)}function Rs(Z,ve,ue,tt){for(var At=-1,h=Z==null?0:Z.length;++At<h;){var C=Z[At];ve(tt,C,ue(C),Z)}return tt}function jn(Z,ve){for(var ue=-1,tt=Z==null?0:Z.length;++ue<tt&&ve(Z[ue],ue,Z)!==!1;);return Z}function Al(Z,ve){for(var ue=Z==null?0:Z.length;ue--&&ve(Z[ue],ue,Z)!==!1;);return Z}function Ml(Z,ve){for(var ue=-1,tt=Z==null?0:Z.length;++ue<tt;)if(!ve(Z[ue],ue,Z))return!1;return!0}function ka(Z,ve){for(var ue=-1,tt=Z==null?0:Z.length,At=0,h=[];++ue<tt;){var C=Z[ue];ve(C,ue,Z)&&(h[At++]=C)}return h}function Ns(Z,ve){var ue=Z==null?0:Z.length;return!!ue&&Oa(Z,ve,0)>-1}function Ps(Z,ve,ue){for(var tt=-1,At=Z==null?0:Z.length;++tt<At;)if(ue(ve,Z[tt]))return!0;return!1}function Ar(Z,ve){for(var ue=-1,tt=Z==null?0:Z.length,At=Array(tt);++ue<tt;)At[ue]=ve(Z[ue],ue,Z);return At}function ji(Z,ve){for(var ue=-1,tt=ve.length,At=Z.length;++ue<tt;)Z[At+ue]=ve[ue];return Z}function Jo(Z,ve,ue,tt){var At=-1,h=Z==null?0:Z.length;for(tt&&h&&(ue=Z[++At]);++At<h;)ue=ve(ue,Z[At],At,Z);return ue}function Ll(Z,ve,ue,tt){var At=Z==null?0:Z.length;for(tt&&At&&(ue=Z[--At]);At--;)ue=ve(ue,Z[At],At,Z);return ue}function Yo(Z,ve){for(var ue=-1,tt=Z==null?0:Z.length;++ue<tt;)if(ve(Z[ue],ue,Z))return!0;return!1}var Dl=Fs("length");function Xc(Z){return Z.split("")}function Za(Z){return Z.match(B)||[]}function Il(Z,ve,ue){var tt;return ue(Z,function(At,h,C){if(ve(At,h,C))return tt=h,!1}),tt}function Bs(Z,ve,ue,tt){for(var At=Z.length,h=ue+(tt?1:-1);tt?h--:++h<At;)if(ve(Z[h],h,Z))return h;return-1}function Oa(Z,ve,ue){return ve===ve?Hl(Z,ve,ue):Bs(Z,Nl,ue)}function Rl(Z,ve,ue,tt){for(var At=ue-1,h=Z.length;++At<h;)if(tt(Z[At],ve))return At;return-1}function Nl(Z){return Z!==Z}function Ru(Z,ve){var ue=Z==null?0:Z.length;return ue?qs(Z,ve)/ue:bt}function Fs(Z){return function(ve){return ve==null?r:ve[Z]}}function Hs(Z){return function(ve){return Z==null?r:Z[ve]}}function Nu(Z,ve,ue,tt,At){return At(Z,function(h,C,k){ue=tt?(tt=!1,h):ve(ue,h,C,k)}),ue}function Co(Z,ve){var ue=Z.length;for(Z.sort(ve);ue--;)Z[ue]=Z[ue].value;return Z}function qs(Z,ve){for(var ue,tt=-1,At=Z.length;++tt<At;){var h=ve(Z[tt]);h!==r&&(ue=ue===r?h:ue+h)}return ue}function fi(Z,ve){for(var ue=-1,tt=Array(Z);++ue<Z;)tt[ue]=ve(ue);return tt}function Xo(Z,ve){return Ar(ve,function(ue){return[ue,Z[ue]]})}function Qo(Z){return Z&&Z.slice(0,ql(Z)+1).replace(wa,"")}function Ln(Z){return function(ve){return Z(ve)}}function $s(Z,ve){return Ar(ve,function(ue){return Z[ue]})}function Zo(Z,ve){return Z.has(ve)}function Pu(Z,ve){for(var ue=-1,tt=Z.length;++ue<tt&&Oa(ve,Z[ue],0)>-1;);return ue}function Us(Z,ve){for(var ue=Z.length;ue--&&Oa(ve,Z[ue],0)>-1;);return ue}function Pl(Z,ve){for(var ue=Z.length,tt=0;ue--;)Z[ue]===ve&&++tt;return tt}var Bu=Hs(_a),Fu=Hs(Ui);function Hu(Z){return"\\"+Au[Z]}function Bl(Z,ve){return Z==null?r:Z[ve]}function Eo(Z){return Jc.test(Z)}function Qc(Z){return ku.test(Z)}function es(Z){for(var ve,ue=[];!(ve=Z.next()).done;)ue.push(ve.value);return ue}function js(Z){var ve=-1,ue=Array(Z.size);return Z.forEach(function(tt,At){ue[++ve]=[At,tt]}),ue}function Fl(Z,ve){return function(ue){return Z(ve(ue))}}function oa(Z,ve){for(var ue=-1,tt=Z.length,At=0,h=[];++ue<tt;){var C=Z[ue];(C===ve||C===d)&&(Z[ue]=d,h[At++]=ue)}return h}function zs(Z){var ve=-1,ue=Array(Z.size);return Z.forEach(function(tt){ue[++ve]=tt}),ue}function qu(Z){var ve=-1,ue=Array(Z.size);return Z.forEach(function(tt){ue[++ve]=[tt,tt]}),ue}function Hl(Z,ve,ue){for(var tt=ue-1,At=Z.length;++tt<At;)if(Z[tt]===ve)return tt;return-1}function ts(Z,ve,ue){for(var tt=ue+1;tt--;)if(Z[tt]===ve)return tt;return tt}function eo(Z){return Eo(Z)?Zc(Z):Dl(Z)}function En(Z){return Eo(Z)?ef(Z):Xc(Z)}function ql(Z){for(var ve=Z.length;ve--&&F.test(Z.charAt(ve)););return ve}var $u=Hs(Ou);function Zc(Z){for(var ve=Ko.lastIndex=0;Ko.test(Z);)++ve;return ve}function ef(Z){return Z.match(Ko)||[]}function $l(Z){return Z.match(Kc)||[]}var Uu=function Z(ve){ve=ve==null?an:Aa.defaults(an.Object(),ve,Aa.pick(an,Tl));var ue=ve.Array,tt=ve.Date,At=ve.Error,h=ve.Function,C=ve.Math,k=ve.Object,N=ve.RegExp,U=ve.String,j=ve.TypeError,K=ue.prototype,fe=h.prototype,Ce=k.prototype,Ye=ve["__core-js_shared__"],g=fe.toString,y=Ce.hasOwnProperty,w=0,_=function(){var l=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),z=Ce.toString,pe=g.call(k),se=an._,he=N("^"+g.call(y).replace(Mn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Mu?ve.Buffer:r,Le=ve.Symbol,Fe=ve.Uint8Array,$t=me?me.allocUnsafe:r,or=Fl(k.getPrototypeOf,k),_t=k.create,cr=Ce.propertyIsEnumerable,It=K.splice,Gt=Le?Le.isConcatSpreadable:r,vr=Le?Le.iterator:r,Xt=Le?Le.toStringTag:r,wr=function(){try{var l=Vl(k,"defineProperty");return l({},"",{}),l}catch{}}(),Ut=ve.clearTimeout!==an.clearTimeout&&ve.clearTimeout,Mr=tt&&tt.now!==an.Date.now&&tt.now,_r=ve.setTimeout!==an.setTimeout&&ve.setTimeout,pr=C.ceil,Sr=C.floor,Vr=k.getOwnPropertySymbols,Jr=me?me.isBuffer:r,Yr=ve.isFinite,Jn=K.join,mn=Fl(k.keys,k),kr=C.max,Br=C.min,on=tt.now,Tn=ve.parseInt,zi=C.random,di=K.reverse,sa=Vl(ve,"DataView"),Wi=Vl(ve,"Map"),Vi=Vl(ve,"Promise"),pi=Vl(ve,"Set"),Xr=Vl(ve,"WeakMap"),sn=Vl(k,"create"),ln=Xr&&new Xr,Yn={},Oi=Gl(sa),la=Gl(Wi),Ul=Gl(Vi),hi=Gl(pi),To=Gl(Xr),Ma=Le?Le.prototype:r,Ai=Ma?Ma.valueOf:r,Ws=Ma?Ma.toString:r;function D(l){if(fn(l)&&!Nt(l)&&!(l instanceof St)){if(l instanceof un)return l;if(y.call(l,"__wrapped__"))return aw(l)}return new un(l)}var Gi=function(){function l(){}return function(c){if(!tn(c))return{};if(_t)return _t(c);l.prototype=c;var p=new l;return l.prototype=r,p}}();function to(){}function un(l,c){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=r}D.templateSettings={escape:An,evaluate:Kr,interpolate:Ei,variable:"",imports:{_:D}},D.prototype=to.prototype,D.prototype.constructor=D,un.prototype=Gi(to.prototype),un.prototype.constructor=un;function St(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$e,this.__views__=[]}function ro(){var l=new St(this.__wrapped__);return l.__actions__=Ji(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Ji(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Ji(this.__views__),l}function Vs(){if(this.__filtered__){var l=new St(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function rs(){var l=this.__wrapped__.value(),c=this.__dir__,p=Nt(l),E=c<0,O=p?l.length:0,I=jO(0,O,this.__views__),q=I.start,V=I.end,re=V-q,Se=E?V:q-1,ke=this.__iteratees__,Ie=ke.length,Qe=0,dt=Br(re,this.__takeCount__);if(!p||!E&&O==re&&dt==re)return Ob(l,this.__actions__);var Et=[];e:for(;re--&&Qe<dt;){Se+=c;for(var Kt=-1,Tt=l[Se];++Kt<Ie;){var nr=ke[Kt],fr=nr.iteratee,fa=nr.type,Ri=fr(Tt);if(fa==Be)Tt=Ri;else if(!Ri){if(fa==Te)continue e;break e}}Et[Qe++]=Tt}return Et}St.prototype=Gi(to.prototype),St.prototype.constructor=St;function Dn(l){var c=-1,p=l==null?0:l.length;for(this.clear();++c<p;){var E=l[c];this.set(E[0],E[1])}}function Gs(){this.__data__=sn?sn(null):{},this.size=0}function _o(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Ks(l){var c=this.__data__;if(sn){var p=c[l];return p===u?r:p}return y.call(c,l)?c[l]:r}function no(l){var c=this.__data__;return sn?c[l]!==r:y.call(c,l)}function Js(l,c){var p=this.__data__;return this.size+=this.has(l)?0:1,p[l]=sn&&c===r?u:c,this}Dn.prototype.clear=Gs,Dn.prototype.delete=_o,Dn.prototype.get=Ks,Dn.prototype.has=no,Dn.prototype.set=Js;function vi(l){var c=-1,p=l==null?0:l.length;for(this.clear();++c<p;){var E=l[c];this.set(E[0],E[1])}}function ju(){this.__data__=[],this.size=0}function ae(l){var c=this.__data__,p=Rt(c,l);if(p<0)return!1;var E=c.length-1;return p==E?c.pop():It.call(c,p,1),--this.size,!0}function ze(l){var c=this.__data__,p=Rt(c,l);return p<0?r:c[p][1]}function nt(l){return Rt(this.__data__,l)>-1}function ft(l,c){var p=this.__data__,E=Rt(p,l);return E<0?(++this.size,p.push([l,c])):p[E][1]=c,this}vi.prototype.clear=ju,vi.prototype.delete=ae,vi.prototype.get=ze,vi.prototype.has=nt,vi.prototype.set=ft;function Bt(l){var c=-1,p=l==null?0:l.length;for(this.clear();++c<p;){var E=l[c];this.set(E[0],E[1])}}function qr(){this.size=0,this.__data__={hash:new Dn,map:new(Wi||vi),string:new Dn}}function In(l){var c=fd(this,l).delete(l);return this.size-=c?1:0,c}function Rn(l){return fd(this,l).get(l)}function cn(l){return fd(this,l).has(l)}function jl(l,c){var p=fd(this,l),E=p.size;return p.set(l,c),this.size+=p.size==E?0:1,this}Bt.prototype.clear=qr,Bt.prototype.delete=In,Bt.prototype.get=Rn,Bt.prototype.has=cn,Bt.prototype.set=jl;function Ki(l){var c=-1,p=l==null?0:l.length;for(this.__data__=new Bt;++c<p;)this.add(l[c])}function zu(l){return this.__data__.set(l,u),this}function Ys(l){return this.__data__.has(l)}Ki.prototype.add=Ki.prototype.push=zu,Ki.prototype.has=Ys;function Mi(l){var c=this.__data__=new vi(l);this.size=c.size}function uh(){this.__data__=new vi,this.size=0}function ch(l){var c=this.__data__,p=c.delete(l);return this.size=c.size,p}function Zf(l){return this.__data__.get(l)}function fh(l){return this.__data__.has(l)}function dh(l,c){var p=this.__data__;if(p instanceof vi){var E=p.__data__;if(!Wi||E.length<i-1)return E.push([l,c]),this.size=++p.size,this;p=this.__data__=new Bt(E)}return p.set(l,c),this.size=p.size,this}Mi.prototype.clear=uh,Mi.prototype.delete=ch,Mi.prototype.get=Zf,Mi.prototype.has=fh,Mi.prototype.set=dh;function R(l,c){var p=Nt(l),E=!p&&Kl(l),O=!p&&!E&&tl(l),I=!p&&!E&&!O&&Ku(l),q=p||E||O||I,V=q?fi(l.length,U):[],re=V.length;for(var Se in l)(c||y.call(l,Se))&&!(q&&(Se=="length"||O&&(Se=="offset"||Se=="parent")||I&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||as(Se,re)))&&V.push(Se);return V}function we(l){var c=l.length;return c?l[xh(0,c-1)]:r}function Me(l,c){return dd(Ji(l),io(c,0,l.length))}function ot(l){return dd(Ji(l))}function Ge(l,c,p){(p!==r&&!ao(l[c],p)||p===r&&!(c in l))&&Fr(l,c,p)}function ct(l,c,p){var E=l[c];(!(y.call(l,c)&&ao(E,p))||p===r&&!(c in l))&&Fr(l,c,p)}function Rt(l,c){for(var p=l.length;p--;)if(ao(l[p][0],c))return p;return-1}function zr(l,c,p,E){return Xs(l,function(O,I,q){c(E,O,p(O),q)}),E}function _n(l,c){return l&&ko(c,zn(c),l)}function zl(l,c){return l&&ko(c,Xi(c),l)}function Fr(l,c,p){c=="__proto__"&&wr?wr(l,c,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[c]=p}function Li(l,c){for(var p=-1,E=c.length,O=ue(E),I=l==null;++p<E;)O[p]=I?r:Vh(l,c[p]);return O}function io(l,c,p){return l===l&&(p!==r&&(l=l<=p?l:p),c!==r&&(l=l>=c?l:c)),l}function La(l,c,p,E,O,I){var q,V=c&v,re=c&m,Se=c&b;if(p&&(q=O?p(l,E,O,I):p(l)),q!==r)return q;if(!tn(l))return l;var ke=Nt(l);if(ke){if(q=WO(l),!V)return Ji(l,q)}else{var Ie=mi(l),Qe=Ie==ht||Ie==br;if(tl(l))return Lb(l,V);if(Ie==ye||Ie==Ae||Qe&&!O){if(q=re||Qe?{}:Yb(l),!V)return re?RO(l,zl(q,l)):IO(l,_n(q,l))}else{if(!hr[Ie])return O?l:{};q=VO(l,Ie,V)}}I||(I=new Mi);var dt=I.get(l);if(dt)return dt;I.set(l,q),_w(l)?l.forEach(function(Tt){q.add(La(Tt,c,p,Tt,l,I))}):Ew(l)&&l.forEach(function(Tt,nr){q.set(nr,La(Tt,c,p,nr,l,I))});var Et=Se?re?Dh:Lh:re?Xi:zn,Kt=ke?r:Et(l);return jn(Kt||l,function(Tt,nr){Kt&&(nr=Tt,Tt=l[nr]),ct(q,nr,La(Tt,c,p,nr,l,I))}),q}function iO(l){var c=zn(l);return function(p){return lb(p,l,c)}}function lb(l,c,p){var E=p.length;if(l==null)return!E;for(l=k(l);E--;){var O=p[E],I=c[O],q=l[O];if(q===r&&!(O in l)||!I(q))return!1}return!0}
vendor: 7,409 bytes, line 8
8function ub(l,c,p){if(typeof l!="function")throw new j(o);return lf(function(){l.apply(r,p)},c)}function tf(l,c,p,E){var O=-1,I=Ns,q=!0,V=l.length,re=[],Se=c.length;if(!V)return re;p&&(c=Ar(c,Ln(p))),E?(I=Ps,q=!1):c.length>=i&&(I=Zo,q=!1,c=new Ki(c));e:for(;++O<V;){var ke=l[O],Ie=p==null?ke:p(ke);if(ke=E||ke!==0?ke:0,q&&Ie===Ie){for(var Qe=Se;Qe--;)if(c[Qe]===Ie)continue e;re.push(ke)}else I(c,Ie,E)||re.push(ke)}return re}var Xs=Pb(So),cb=Pb(hh,!0);function aO(l,c){var p=!0;return Xs(l,function(E,O,I){return p=!!c(E,O,I),p}),p}function ed(l,c,p){for(var E=-1,O=l.length;++E<O;){var I=l[E],q=c(I);if(q!=null&&(V===r?q===q&&!ca(q):p(q,V)))var V=q,re=I}return re}function oO(l,c,p,E){var O=l.length;for(p=jt(p),p<0&&(p=-p>O?0:O+p),E=E===r||E>O?O:jt(E),E<0&&(E+=O),E=p>E?0:kw(E);p<E;)l[p++]=c;return l}function fb(l,c){var p=[];return Xs(l,function(E,O,I){c(E,O,I)&&p.push(E)}),p}function Xn(l,c,p,E,O){var I=-1,q=l.length;for(p||(p=KO),O||(O=[]);++I<q;){var V=l[I];c>0&&p(V)?c>1?Xn(V,c-1,p,E,O):ji(O,V):E||(O[O.length]=V)}return O}var ph=Bb(),db=Bb(!0);function So(l,c){return l&&ph(l,c,zn)}function hh(l,c){return l&&db(l,c,zn)}function td(l,c){return ka(c,function(p){return ss(l[p])})}function Wl(l,c){c=Zs(c,l);for(var p=0,E=c.length;l!=null&&p<E;)l=l[Oo(c[p++])];return p&&p==E?l:r}function pb(l,c,p){var E=c(l);return Nt(l)?E:ji(E,p(l))}function Di(l){return l==null?l===r?De:We:Xt&&Xt in k(l)?UO(l):tA(l)}function vh(l,c){return l>c}function sO(l,c){return l!=null&&y.call(l,c)}function lO(l,c){return l!=null&&c in k(l)}function uO(l,c,p){return l>=Br(c,p)&&l<kr(c,p)}function mh(l,c,p){for(var E=p?Ps:Ns,O=l[0].length,I=l.length,q=I,V=ue(I),re=1/0,Se=[];q--;){var ke=l[q];q&&c&&(ke=Ar(ke,Ln(c))),re=Br(ke.length,re),V[q]=!p&&(c||O>=120&&ke.length>=120)?new Ki(q&&ke):r}ke=l[0];var Ie=-1,Qe=V[0];e:for(;++Ie<O&&Se.length<re;){var dt=ke[Ie],Et=c?c(dt):dt;if(dt=p||dt!==0?dt:0,!(Qe?Zo(Qe,Et):E(Se,Et,p))){for(q=I;--q;){var Kt=V[q];if(!(Kt?Zo(Kt,Et):E(l[q],Et,p)))continue e}Qe&&Qe.push(Et),Se.push(dt)}}return Se}function cO(l,c,p,E){return So(l,function(O,I,q){c(E,p(O),I,q)}),E}function rf(l,c,p){c=Zs(c,l),l=ew(l,c);var E=l==null?l:l[Oo(Ia(c))];return E==null?r:Un(E,l,p)}function hb(l){return fn(l)&&Di(l)==Ae}function fO(l){return fn(l)&&Di(l)==xt}function dO(l){return fn(l)&&Di(l)==Ht}function nf(l,c,p,E,O){return l===c?!0:l==null||c==null||!fn(l)&&!fn(c)?l!==l&&c!==c:pO(l,c,p,E,nf,O)}function pO(l,c,p,E,O,I){var q=Nt(l),V=Nt(c),re=q?Ne:mi(l),Se=V?Ne:mi(c);re=re==Ae?ye:re,Se=Se==Ae?ye:Se;var ke=re==ye,Ie=Se==ye,Qe=re==Se;if(Qe&&tl(l)){if(!tl(c))return!1;q=!0,ke=!1}if(Qe&&!ke)return I||(I=new Mi),q||Ku(l)?Gb(l,c,p,E,O,I):qO(l,c,re,p,E,O,I);if(!(p&x)){var dt=ke&&y.call(l,"__wrapped__"),Et=Ie&&y.call(c,"__wrapped__");if(dt||Et){var Kt=dt?l.value():l,Tt=Et?c.value():c;return I||(I=new Mi),O(Kt,Tt,p,E,I)}}return Qe?(I||(I=new Mi),$O(l,c,p,E,O,I)):!1}function hO(l){return fn(l)&&mi(l)==kt}function gh(l,c,p,E){var O=p.length,I=O,q=!E;if(l==null)return!I;for(l=k(l);O--;){var V=p[O];if(q&&V[2]?V[1]!==l[V[0]]:!(V[0]in l))return!1}for(;++O<I;){V=p[O];var re=V[0],Se=l[re],ke=V[1];if(q&&V[2]){if(Se===r&&!(re in l))return!1}else{var Ie=new Mi;if(E)var Qe=E(Se,ke,re,l,c,Ie);if(!(Qe===r?nf(ke,Se,x|T,E,Ie):Qe))return!1}}return!0}function vb(l){if(!tn(l)||YO(l))return!1;var c=ss(l)?he:vt;return c.test(Gl(l))}function vO(l){return fn(l)&&Di(l)==et}function mO(l){return fn(l)&&mi(l)==yt}function gO(l){return fn(l)&&yd(l.length)&&!!Rr[Di(l)]}function mb(l){return typeof l=="function"?l:l==null?Qi:typeof l=="object"?Nt(l)?bb(l[0],l[1]):yb(l):Fw(l)}function yh(l){if(!sf(l))return mn(l);var c=[];for(var p in k(l))y.call(l,p)&&p!="constructor"&&c.push(p);return c}function yO(l){if(!tn(l))return eA(l);var c=sf(l),p=[];for(var E in l)E=="constructor"&&(c||!y.call(l,E))||p.push(E);return p}function bh(l,c){return l<c}function gb(l,c){var p=-1,E=Yi(l)?ue(l.length):[];return Xs(l,function(O,I,q){E[++p]=c(O,I,q)}),E}function yb(l){var c=Rh(l);return c.length==1&&c[0][2]?Qb(c[0][0],c[0][1]):function(p){return p===l||gh(p,l,c)}}function bb(l,c){return Ph(l)&&Xb(c)?Qb(Oo(l),c):function(p){var E=Vh(p,l);return E===r&&E===c?Gh(p,l):nf(c,E,x|T)}}function rd(l,c,p,E,O){l!==c&&ph(c,function(I,q){if(O||(O=new Mi),tn(I))bO(l,c,q,p,rd,E,O);else{var V=E?E(Fh(l,q),I,q+"",l,c,O):r;V===r&&(V=I),Ge(l,q,V)}},Xi)}function bO(l,c,p,E,O,I,q){var V=Fh(l,p),re=Fh(c,p),Se=q.get(re);if(Se){Ge(l,p,Se);return}var ke=I?I(V,re,p+"",l,c,q):r,Ie=ke===r;if(Ie){var Qe=Nt(re),dt=!Qe&&tl(re),Et=!Qe&&!dt&&Ku(re);ke=re,Qe||dt||Et?Nt(V)?ke=V:gn(V)?ke=Ji(V):dt?(Ie=!1,ke=Lb(re,!0)):Et?(Ie=!1,ke=Db(re,!0)):ke=[]:uf(re)||Kl(re)?(ke=V,Kl(V)?ke=Ow(V):(!tn(V)||ss(V))&&(ke=Yb(re))):Ie=!1}Ie&&(q.set(re,ke),O(ke,re,E,I,q),q.delete(re)),Ge(l,p,ke)}function wb(l,c){var p=l.length;if(p)return c+=c<0?p:0,as(c,p)?l[c]:r}function xb(l,c,p){c.length?c=Ar(c,function(I){return Nt(I)?function(q){return Wl(q,I.length===1?I[0]:I)}:I}):c=[Qi];var E=-1;c=Ar(c,Ln(Ct()));var O=gb(l,function(I,q,V){var re=Ar(c,function(Se){return Se(I)});return{criteria:re,index:++E,value:I}});return Co(O,function(I,q){return DO(I,q,p)})}function wO(l,c){return Cb(l,c,function(p,E){return Gh(l,E)})}function Cb(l,c,p){for(var E=-1,O=c.length,I={};++E<O;){var q=c[E],V=Wl(l,q);p(V,q)&&af(I,Zs(q,l),V)}return I}function xO(l){return function(c){return Wl(c,l)}}function wh(l,c,p,E){var O=E?Rl:Oa,I=-1,q=c.length,V=l;for(l===c&&(c=Ji(c)),p&&(V=Ar(l,Ln(p)));++I<q;)for(var re=0,Se=c[I],ke=p?p(Se):Se;(re=O(V,ke,re,E))>-1;)V!==l&&It.call(V,re,1),It.call(l,re,1);return l}function Eb(l,c){for(var p=l?c.length:0,E=p-1;p--;){var O=c[p];if(p==E||O!==I){var I=O;as(O)?It.call(l,O,1):Th(l,O)}}return l}function xh(l,c){return l+Sr(zi()*(c-l+1))}function CO(l,c,p,E){for(var O=-1,I=kr(pr((c-l)/(p||1)),0),q=ue(I);I--;)q[E?I:++O]=l,l+=p;return q}function Ch(l,c){var p="";if(!l||c<1||c>Oe)return p;do c%2&&(p+=l),c=Sr(c/2),c&&(l+=l);while(c);return p}function Jt(l,c){return Hh(Zb(l,c,Qi),l+"")}function EO(l){return we(Ju(l))}function TO(l,c){var p=Ju(l);return dd(p,io(c,0,p.length))}function af(l,c,p,E){if(!tn(l))return l;c=Zs(c,l);for(var O=-1,I=c.length,q=I-1,V=l;V!=null&&++O<I;){var re=Oo(c[O]),Se=p;if(re==="__proto__"||re==="constructor"||re==="prototype")return l;if(O!=q){var ke=V[re];Se=E?E(ke,re,V):r,Se===r&&(Se=tn(ke)?ke:as(c[O+1])?[]:{})}ct(V,re,Se),V=V[re]}return l}var Tb=ln?function(l,c){return ln.set(l,c),l}:Qi,_O=wr?function(l,c){return wr(l,"toString",{configurable:!0,enumerable:!1,value:Jh(c),writable:!0})}:Qi;function SO(l){return dd(Ju(l))}function Da(l,c,p){var E=-1,O=l.length;c<0&&(c=-c>O?0:O+c),p=p>O?O:p,p<0&&(p+=O),O=c>p?0:p-c>>>0,c>>>=0;for(var I=ue(O);++E<O;)I[E]=l[E+c];return I}function kO(l,c){var p;return Xs(l,function(E,O,I){return p=c(E,O,I),!p}),!!p}function nd(l,c,p){var E=0,O=l==null?E:l.length;if(typeof c=="number"&&c===c&&O<=at){for(;E<O;){var I=E+O>>>1,q=l[I];q!==null&&!ca(q)&&(p?q<=c:q<c)?E=I+1:O=I}return O}return Eh(l,c,Qi,p)}function Eh(l,c,p,E){var O=0,I=l==null?0:l.length;if(I===0)return 0;c=p(c);for(var q=c!==c,V=c===null,re=ca(c),Se=c===r;O<I;){var ke=Sr((O+I)/2),Ie=p(l[ke]),Qe=Ie!==r,dt=Ie===null,Et=Ie===Ie,Kt=ca(Ie);if(q)var Tt=E||Et;else Se?Tt=Et&&(E||Qe):V?Tt=Et&&Qe&&(E||!dt):re?Tt=Et&&Qe&&!dt&&(E||!Kt):dt||Kt?Tt=!1:Tt=E?Ie<=c:Ie<c;Tt?O=ke+1:I=ke}return Br(I,qe)}function _b(l,c){for(var p=-1,E=l.length,O=0,I=[];++p<E;){var q=l[p],V=c?c(q):q;if(!p||!ao(V,re)){var re=V;I[O++]=q===0?0:q}}
vendor: 17,019 bytes, lines 8-10
8return I}function Sb(l){return typeof l=="number"?l:ca(l)?bt:+l}function ua(l){if(typeof l=="string")return l;if(Nt(l))return Ar(l,ua)+"";if(ca(l))return Ws?Ws.call(l):"";var c=l+"";return c=="0"&&1/l==-Re?"-0":c}function Qs(l,c,p){var E=-1,O=Ns,I=l.length,q=!0,V=[],re=V;if(p)q=!1,O=Ps;else if(I>=i){var Se=c?null:FO(l);if(Se)return zs(Se);q=!1,O=Zo,re=new Ki}else re=c?[]:V;e:for(;++E<I;){var ke=l[E],Ie=c?c(ke):ke;if(ke=p||ke!==0?ke:0,q&&Ie===Ie){for(var Qe=re.length;Qe--;)if(re[Qe]===Ie)continue e;c&&re.push(Ie),V.push(ke)}else O(re,Ie,p)||(re!==V&&re.push(Ie),V.push(ke))}return V}function Th(l,c){return c=Zs(c,l),l=ew(l,c),l==null||delete l[Oo(Ia(c))]}function kb(l,c,p,E){return af(l,c,p(Wl(l,c)),E)}function id(l,c,p,E){for(var O=l.length,I=E?O:-1;(E?I--:++I<O)&&c(l[I],I,l););return p?Da(l,E?0:I,E?I+1:O):Da(l,E?I+1:0,E?O:I)}function Ob(l,c){var p=l;return p instanceof St&&(p=p.value()),Jo(c,function(E,O){return O.func.apply(O.thisArg,ji([E],O.args))},p)}function _h(l,c,p){var E=l.length;if(E<2)return E?Qs(l[0]):[];for(var O=-1,I=ue(E);++O<E;)for(var q=l[O],V=-1;++V<E;)V!=O&&(I[O]=tf(I[O]||q,l[V],c,p));return Qs(Xn(I,1),c,p)}function Ab(l,c,p){for(var E=-1,O=l.length,I=c.length,q={};++E<O;){var V=E<I?c[E]:r;p(q,l[E],V)}return q}function Sh(l){return gn(l)?l:[]}function kh(l){return typeof l=="function"?l:Qi}function Zs(l,c){return Nt(l)?l:Ph(l,c)?[l]:iw(Lr(l))}var OO=Jt;function el(l,c,p){var E=l.length;return p=p===r?E:p,!c&&p>=E?l:Da(l,c,p)}var Mb=Ut||function(l){return an.clearTimeout(l)};function Lb(l,c){if(c)return l.slice();var p=l.length,E=$t?$t(p):new l.constructor(p);return l.copy(E),E}function Oh(l){var c=new l.constructor(l.byteLength);return new Fe(c).set(new Fe(l)),c}function AO(l,c){var p=c?Oh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function MO(l){var c=new l.constructor(l.source,Ue.exec(l));return c.lastIndex=l.lastIndex,c}function LO(l){return Ai?k(Ai.call(l)):{}}function Db(l,c){var p=c?Oh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function Ib(l,c){if(l!==c){var p=l!==r,E=l===null,O=l===l,I=ca(l),q=c!==r,V=c===null,re=c===c,Se=ca(c);if(!V&&!Se&&!I&&l>c||I&&q&&re&&!V&&!Se||E&&q&&re||!p&&re||!O)return 1;if(!E&&!I&&!Se&&l<c||Se&&p&&O&&!E&&!I||V&&p&&O||!q&&O||!re)return-1}return 0}function DO(l,c,p){for(var E=-1,O=l.criteria,I=c.criteria,q=O.length,V=p.length;++E<q;){var re=Ib(O[E],I[E]);if(re){if(E>=V)return re;var Se=p[E];return re*(Se=="desc"?-1:1)}}return l.index-c.index}function Rb(l,c,p,E){for(var O=-1,I=l.length,q=p.length,V=-1,re=c.length,Se=kr(I-q,0),ke=ue(re+Se),Ie=!E;++V<re;)ke[V]=c[V];for(;++O<q;)(Ie||O<I)&&(ke[p[O]]=l[O]);for(;Se--;)ke[V++]=l[O++];return ke}function Nb(l,c,p,E){for(var O=-1,I=l.length,q=-1,V=p.length,re=-1,Se=c.length,ke=kr(I-V,0),Ie=ue(ke+Se),Qe=!E;++O<ke;)Ie[O]=l[O];for(var dt=O;++re<Se;)Ie[dt+re]=c[re];for(;++q<V;)(Qe||O<I)&&(Ie[dt+p[q]]=l[O++]);return Ie}function Ji(l,c){var p=-1,E=l.length;for(c||(c=ue(E));++p<E;)c[p]=l[p];return c}function ko(l,c,p,E){var O=!p;p||(p={});for(var I=-1,q=c.length;++I<q;){var V=c[I],re=E?E(p[V],l[V],V,p,l):r;re===r&&(re=l[V]),O?Fr(p,V,re):ct(p,V,re)}return p}function IO(l,c){return ko(l,Nh(l),c)}function RO(l,c){return ko(l,Kb(l),c)}function ad(l,c){return function(p,E){var O=Nt(p)?Rs:zr,I=c?c():{};return O(p,l,Ct(E,2),I)}}function Wu(l){return Jt(function(c,p){var E=-1,O=p.length,I=O>1?p[O-1]:r,q=O>2?p[2]:r;for(I=l.length>3&&typeof I=="function"?(O--,I):r,q&&Ii(p[0],p[1],q)&&(I=O<3?r:I,O=1),c=k(c);++E<O;){var V=p[E];V&&l(c,V,E,I)}return c})}function Pb(l,c){return function(p,E){if(p==null)return p;if(!Yi(p))return l(p,E);for(var O=p.length,I=c?O:-1,q=k(p);(c?I--:++I<O)&&E(q[I],I,q)!==!1;);return p}}function Bb(l){return function(c,p,E){for(var O=-1,I=k(c),q=E(c),V=q.length;V--;){var re=q[l?V:++O];if(p(I[re],re,I)===!1)break}return c}}function NO(l,c,p){var E=c&S,O=of(l);function I(){var q=this&&this!==an&&this instanceof I?O:l;return q.apply(E?p:this,arguments)}return I}function Fb(l){return function(c){c=Lr(c);var p=Eo(c)?En(c):r,E=p?p[0]:c.charAt(0),O=p?el(p,1).join(""):c.slice(1);return E[l]()+O}}function Vu(l){return function(c){return Jo(Pw(Nw(c).replace(Vc,"")),l,"")}}function of(l){return function(){var c=arguments;switch(c.length){case 0:return new l;case 1:return new l(c[0]);case 2:return new l(c[0],c[1]);case 3:return new l(c[0],c[1],c[2]);case 4:return new l(c[0],c[1],c[2],c[3]);case 5:return new l(c[0],c[1],c[2],c[3],c[4]);case 6:return new l(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new l(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var p=Gi(l.prototype),E=l.apply(p,c);return tn(E)?E:p}}function PO(l,c,p){var E=of(l);function O(){for(var I=arguments.length,q=ue(I),V=I,re=Gu(O);V--;)q[V]=arguments[V];var Se=I<3&&q[0]!==re&&q[I-1]!==re?[]:oa(q,re);if(I-=Se.length,I<p)return jb(l,c,od,O.placeholder,r,q,Se,r,r,p-I);var ke=this&&this!==an&&this instanceof O?E:l;return Un(ke,this,q)}return O}function Hb(l){return function(c,p,E){var O=k(c);if(!Yi(c)){var I=Ct(p,3);c=zn(c),p=function(V){return I(O[V],V,O)}}var q=l(c,p,E);return q>-1?O[I?c[q]:q]:r}}function qb(l){return is(function(c){var p=c.length,E=p,O=un.prototype.thru;for(l&&c.reverse();E--;){var I=c[E];if(typeof I!="function")throw new j(o);if(O&&!q&&cd(I)=="wrapper")var q=new un([],!0)}for(E=q?E:p;++E<p;){I=c[E];var V=cd(I),re=V=="wrapper"?Ih(I):r;re&&Bh(re[0])&&re[1]==(J|P|H|ee)&&!re[4].length&&re[9]==1?q=q[cd(re[0])].apply(q,re[3]):q=I.length==1&&Bh(I)?q[V]():q.thru(I)}return function(){var Se=arguments,ke=Se[0];if(q&&Se.length==1&&Nt(ke))return q.plant(ke).value();for(var Ie=0,Qe=p?c[Ie].apply(this,Se):ke;++Ie<p;)Qe=c[Ie].call(this,Qe);return Qe}})}function od(l,c,p,E,O,I,q,V,re,Se){var ke=c&J,Ie=c&S,Qe=c&M,dt=c&(P|A),Et=c&X,Kt=Qe?r:of(l);function Tt(){for(var nr=arguments.length,fr=ue(nr),fa=nr;fa--;)fr[fa]=arguments[fa];if(dt)var Ri=Gu(Tt),da=Pl(fr,Ri);if(E&&(fr=Rb(fr,E,O,dt)),I&&(fr=Nb(fr,I,q,dt)),nr-=da,dt&&nr<Se){var yn=oa(fr,Ri);return jb(l,c,od,Tt.placeholder,p,fr,yn,V,re,Se-nr)}var oo=Ie?p:this,us=Qe?oo[l]:l;return nr=fr.length,V?fr=rA(fr,V):Et&&nr>1&&fr.reverse(),ke&&re<nr&&(fr.length=re),this&&this!==an&&this instanceof Tt&&(us=Kt||of(us)),us.apply(oo,fr)}return Tt}function $b(l,c){return function(p,E){return cO(p,l,c(E),{})}}function sd(l,c){return function(p,E){var O;if(p===r&&E===r)return c;if(p!==r&&(O=p),E!==r){if(O===r)return E;typeof p=="string"||typeof E=="string"?(p=ua(p),E=ua(E)):(p=Sb(p),E=Sb(E)),O=l(p,E)}return O}}function Ah(l){return is(function(c){return c=Ar(c,Ln(Ct())),Jt(function(p){var E=this;return l(c,function(O){return Un(O,E,p)})})})}function ld(l,c){c=c===r?" ":ua(c);var p=c.length;if(p<2)return p?Ch(c,l):c;var E=Ch(c,pr(l/eo(c)));return Eo(c)?el(En(E),0,l).join(""):E.slice(0,l)}function BO(l,c,p,E){var O=c&S,I=of(l);function q(){for(var V=-1,re=arguments.length,Se=-1,ke=E.length,Ie=ue(ke+re),Qe=this&&this!==an&&this instanceof q?I:l;++Se<ke;)Ie[Se]=E[Se];for(;re--;)Ie[Se++]=arguments[++V];return Un(Qe,O?p:this,Ie)}return q}function Ub(l){return function(c,p,E){return E&&typeof E!="number"&&Ii(c,p,E)&&(p=E=r),c=ls(c),p===r?(p=c,c=0):p=ls(p),E=E===r?c<p?1:-1:ls(E),CO(c,p,E,l)}}function ud(l){return function(c,p){return typeof c=="string"&&typeof p=="string"||(c=Ra(c),p=Ra(p)),l(c,p)}}function jb(l,c,p,E,O,I,q,V,re,Se){var ke=c&P,Ie=ke?q:r,Qe=ke?r:q,dt=ke?I:r,Et=ke?r:I;c|=ke?H:W,c&=~(ke?W:H),c&L||(c&=~(S|M));var Kt=[l,c,O,dt,Ie,Et,Qe,V,re,Se],Tt=p.apply(r,Kt);return Bh(l)&&tw(Tt,Kt),Tt.placeholder=E,rw(Tt,l,c)}function Mh(l){var c=C[l];return function(p,E){if(p=Ra(p),E=E==null?0:Br(jt(E),292),E&&Yr(p)){var O=(Lr(p)+"e").split("e"),I=c(O[0]+"e"+(+O[1]+E));return O=(Lr(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-E))}return c(p)}}var FO=pi&&1/zs(new pi([,-0]))[1]==Re?function(l){return new pi(l)}:Qh;function zb(l){return function(c){var p=mi(c);return p==kt?js(c):p==yt?qu(c):Xo(c,l(c))}}function ns(l,c,p,E,O,I,q,V){var re=c&M;if(!re&&typeof l!="function")throw new j(o);var Se=E?E.length:0;if(Se||(c&=~(H|W),E=O=r),q=q===r?q:kr(jt(q),0),V=V===r?V:jt(V),Se-=O?O.length:0,c&W){var ke=E,Ie=O;E=O=r}var Qe=re?r:Ih(l),dt=[l,c,p,E,O,ke,Ie,I,q,V];if(Qe&&ZO(dt,Qe),l=dt[0],c=dt[1],p=dt[2],E=dt[3],O=dt[4],V=dt[9]=dt[9]===r?re?0:l.length:kr(dt[9]-Se,0),!V&&c&(P|A)&&(c&=~(P|A)),!c||c==S)var Et=NO(l,c,p);else c==P||c==A?Et=PO(l,c,V):(c==H||c==(S|H))&&!O.length?Et=BO(l,c,p,E):Et=od.apply(r,dt);var Kt=Qe?Tb:tw;return rw(Kt(Et,dt),l,c)}function Wb(l,c,p,E){return l===r||ao(l,Ce[p])&&!y.call(E,p)?c:l}function Vb(l,c,p,E,O,I){return tn(l)&&tn(c)&&(I.set(c,l),rd(l,c,r,Vb,I),I.delete(c)),l}function HO(l){return uf(l)?r:l}function Gb(l,c,p,E,O,I){var q=p&x,V=l.length,re=c.length;if(V!=re&&!(q&&re>V))return!1;var Se=I.get(l),ke=I.get(c);if(Se&&ke)return Se==c&&ke==l;var Ie=-1,Qe=!0,dt=p&T?new Ki:r;for(I.set(l,c),I.set(c,l);++Ie<V;){var Et=l[Ie],Kt=c[Ie];if(E)var Tt=q?E(Kt,Et,Ie,c,l,I):E(Et,Kt,Ie,l,c,I);if(Tt!==r){if(Tt)continue;Qe=!1;break}if(dt){if(!Yo(c,function(nr,fr){if(!Zo(dt,fr)&&(Et===nr||O(Et,nr,p,E,I)))return dt.push(fr)})){Qe=!1;break}}else if(!(Et===Kt||O(Et,Kt,p,E,I))){Qe=!1;break}}return I.delete(l),I.delete(c),Qe}function qO(l,c,p,E,O,I,q){switch(p){case Vt:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case xt:return!(l.byteLength!=c.byteLength||!I(new Fe(l),new Fe(c)));case Wt:case Ht:case xr:return ao(+l,+c);case tr:return l.name==c.name&&l.message==c.message;case et:case Xe:return l==c+"";case kt:var V=js;case yt:var re=E&x;if(V||(V=zs),l.size!=c.size&&!re)return!1;var Se=q.get(l);if(Se)return Se==c;E|=T,q.set(l,c);var ke=Gb(V(l),V(c),E,O,I,q);return q.delete(l),ke;case xe:if(Ai)return Ai.call(l)==Ai.call(c)}return!1}function $O(l,c,p,E,O,I){var q=p&x,V=Lh(l),re=V.length,Se=Lh(c),ke=Se.length;if(re!=ke&&!q)return!1;for(var Ie=re;Ie--;){var Qe=V[Ie];if(!(q?Qe in c:y.call(c,Qe)))return!1}var dt=I.get(l),Et=I.get(c);if(dt&&Et)return dt==c&&Et==l;var Kt=!0;I.set(l,c),I.set(c,l);for(var Tt=q;++Ie<re;){Qe=V[Ie];var nr=l[Qe],fr=c[Qe];if(E)var fa=q?E(fr,nr,Qe,c,l,I):E(nr,fr,Qe,l,c,I);if(!(fa===r?nr===fr||O(nr,fr,p,E,I):fa)){Kt=!1;break}Tt||(Tt=Qe=="constructor")}if(Kt&&!Tt){var Ri=l.constructor,da=c.constructor;Ri!=da&&"constructor"in l&&"constructor"in c&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof da=="function"&&da instanceof da)&&(Kt=!1)}return I.delete(l),I.delete(c),Kt}function is(l){return Hh(Zb(l,r,lw),l+"")}function Lh(l){return pb(l,zn,Nh)}function Dh(l){return pb(l,Xi,Kb)}var Ih=ln?function(l){return ln.get(l)}:Qh;function cd(l){for(var c=l.name+"",p=Yn[c],E=y.call(Yn,c)?p.length:0;E--;){var O=p[E],I=O.func;if(I==null||I==l)return O.name}return c}function Gu(l){var c=y.call(D,"placeholder")?D:l;return c.placeholder}function Ct(){var l=D.iteratee||Yh;return l=l===Yh?mb:l,arguments.length?l(arguments[0],arguments[1]):l}function fd(l,c){var p=l.__data__;return JO(c)?p[typeof c=="string"?"string":"hash"]:p.map}function Rh(l){for(var c=zn(l),p=c.length;p--;){var E=c[p],O=l[E];c[p]=[E,O,Xb(O)]}return c}function Vl(l,c){var p=Bl(l,c);return vb(p)?p:r}function UO(l){var c=y.call(l,Xt),p=l[Xt];try{l[Xt]=r;var E=!0}catch{}var O=z.call(l);return E&&(c?l[Xt]=p:delete l[Xt]),O}var Nh=Vr?function(l){return l==null?[]:(l=k(l),ka(Vr(l),function(c){return cr.call(l,c)}))}:Zh,Kb=Vr?function(l){for(var c=[];l;)ji(c,Nh(l)),l=or(l);return c}:Zh,mi=Di;(sa&&mi(new sa(new ArrayBuffer(1)))!=Vt||Wi&&mi(new Wi)!=kt||Vi&&mi(Vi.resolve())!=_e||pi&&mi(new pi)!=yt||Xr&&mi(new Xr)!=Je)&&(mi=function(l){var c=Di(l),p=c==ye?l.constructor:r,E=p?Gl(p):"";if(E)switch(E){case Oi:return Vt;case la:return kt;case Ul:return _e;case hi:return yt;case To:return Je}return c});function jO(l,c,p){for(var E=-1,O=p.length;++E<O;){var I=p[E],q=I.size;switch(I.type){case"drop":l+=q;break;case"dropRight":c-=q;break;case"take":c=Br(c,l+q);break;case"takeRight":l=kr(l,c-q);break}}return{start:l,end:c}}function zO(l){var c=l.match(le);return c?c[1].split(Q):[]}function Jb(l,c,p){c=Zs(c,l);for(var E=-1,O=c.length,I=!1;++E<O;){var q=Oo(c[E]);if(!(I=l!=null&&p(l,q)))break;l=l[q]}return I||++E!=O?I:(O=l==null?0:l.length,!!O&&yd(O)&&as(q,O)&&(Nt(l)||Kl(l)))}function WO(l){var c=l.length,p=new l.constructor(c);return c&&typeof l[0]=="string"&&y.call(l,"index")&&(p.index=l.index,p.input=l.input),p}function Yb(l){return typeof l.constructor=="function"&&!sf(l)?Gi(or(l)):{}}function VO(l,c,p){var E=l.constructor;switch(c){case xt:return Oh(l);case Wt:case Ht:return new E(+l);case Vt:return AO(l,p);case lr:case jr:case Cr:case hn:case Er:case ce:case Ke:case pt:case gt:return Db(l,p);case kt:return new E;case xr:case Xe:return new E(l);case et:return MO(l);case yt:return new E;case xe:return LO(l)}}function GO(l,c){var p=c.length;if(!p)return l;var E=p-1;return c[E]=(p>1?"& ":"")+c[E],c=c.join(p>2?", ":" "),l.replace(G,`{
9/* [wrapped with `+c+`] */
10`)}function KO(l){return Nt(l)||Kl(l)||!!(Gt&&l&&l[Gt])}function as(l,c){var p=typeof l;return c=c??Oe,!!c&&(p=="number"||p!="symbol"&&mt.test(l))&&l>-1&&l%1==0&&l<c}function Ii(l,c,p){if(!tn(p))return!1;var E=typeof c;return(E=="number"?Yi(p)&&as(c,p.length):E=="string"&&c in p)?ao(p[c],l):!1}function Ph(l,c){if(Nt(l))return!1;var p=typeof l;return p=="number"||p=="symbol"||p=="boolean"||l==null||ca(l)?!0:ui.test(l)||!Hn.test(l)||c!=null&&l in k(c)}function JO(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Bh(l){var c=cd(l),p=D[c];if(typeof p!="function"||!(c in St.prototype))return!1;if(l===p)return!0;var E=Ih(p);return!!E&&l===E[0]}function YO(l){return!!_&&_ in l}var XO=Ye?ss:ev;function sf(l){var c=l&&l.constructor,p=typeof c=="function"&&c.prototype||Ce;return l===p}function Xb(l){return l===l&&!tn(l)}function Qb(l,c){return function(p){return p==null?!1:p[l]===c&&(c!==r||l in k(p))}}function QO(l){var c=md(l,function(E){return p.size===f&&p.clear(),E}),p=c.cache;return c}function ZO(l,c){var p=l[1],E=c[1],O=p|E,I=O<(S|M|J),q=E==J&&p==P||E==J&&p==ee&&l[7].length<=c[8]||E==(J|ee)&&c[7].length<=c[8]&&p==P;if(!(I||q))return l;E&S&&(l[2]=c[2],O|=p&S?0:L);var V=c[3];if(V){var re=l[3];l[3]=re?Rb(re,V,c[4]):V,l[4]=re?oa(l[3],d):c[4]}return V=c[5],V&&(re=l[5],l[5]=re?Nb(re,V,c[6]):V,l[6]=re?oa(l[5],d):c[6]),V=c[7],V&&(l[7]=V),E&J&&(l[8]=l[8]==null?c[8]:Br(l[8],c[8])),l[9]==null&&(l[9]=c[9]),l[0]=c[0],l[1]=O,l}function eA(l){var c=[];if(l!=null)for(var p in k(l))c.push(p);return c}function tA(l){return z.call(l)}function Zb(l,c,p){return c=kr(c===r?l.length-1:c,0),function(){for(var E=arguments,O=-1,I=kr(E.length-c,0),q=ue(I);++O<I;)q[O]=E[c+O];O=-1;for(var V=ue(c+1);++O<c;)V[O]=E[O];return V[c]=p(q),Un(l,this,V)}}function ew(l,c){return c.length<2?l:Wl(l,Da(c,0,-1))}function rA(l,c){for(var p=l.length,E=Br(c.length,p),O=Ji(l);E--;){var I=c[E];l[E]=as(I,p)?O[I]:r}return l}function Fh(l,c){if(!(c==="constructor"&&typeof l[c]=="function")&&c!="__proto__")return l[c]}var tw=nw(Tb),lf=_r||function(l,c){return an.setTimeout(l,c)},Hh=nw(_O);function rw(l,c,p){var E=c+"";return Hh(l,GO(E,nA(zO(E),p)))}function nw(l){var c=0,p=0;return function(){var E=on(),O=ne-(E-p);if(p=E,O>0){if(++c>=Y)return arguments[0]}else c=0;return l.apply(r,arguments)}}function dd(l,c){var p=-1,E=l.length,O=E-1;for(c=c===r?E:c;++p<c;){var I=xh(p,O),q=l[I];l[I]=l[p],l[p]=q}return l.length=c,l}var iw=QO(function(l){var c=[];return l.charCodeAt(0)===46&&c.push(""),l.replace(Ga,function(p,E,O,I){c.push(O?I.replace(oe,"$1"):E||p)}),c});function Oo(l){if(typeof l=="string"||ca(l))return l;var c=l+"";return c=="0"&&1/l==-Re?"-0":c}function Gl(l){if(l!=null){try{return g.call(l)}catch{}try{return l+""}catch{}}return""}function nA(l,c){return jn(Ve,function(p){var E="_."+p[0];c&p[1]&&!Ns(l,E)&&l.push(E)}),l.sort()}function aw(l){if(l instanceof St)return l.clone();var c=new un(l.__wrapped__,l.__chain__);return c.__actions__=Ji(l.__actions__),c.__index__=l.__index__,c.__values__=l.__values__,c}function iA(l,c,p){(p?Ii(l,c,p):c===r)?c=1:c=kr(jt(c),0);var E=l==null?0:l.length;if(!E||c<1)return[];for(var O=0,I=0,q=ue(pr(E/c));O<E;)q[I++]=Da(l,O,O+=c);return q}function aA(l){for(var c=-1,p=l==null?0:l.length,E=0,O=[];++c<p;){var I=l[c];I&&(O[E++]=I)}return O}function oA(){var l=arguments.length;if(!l)return[];for(var c=ue(l-1),p=arguments[0],E=l;E--;)c[E-1]=arguments[E];return ji(Nt(p)?Ji(p):[p],Xn(c,1))}var sA=Jt(function(l,c){return gn(l)?tf(l,Xn(c,1,gn,!0)):[]}),lA=Jt(function(l,c){var p=Ia(c);return gn(p)&&(p=r),gn(l)?tf(l,Xn(c,1,gn,!0),Ct(p,2)):[]}),uA=Jt(function(l,c){var p=Ia(c);return gn(p)&&(p=r),gn(l)?tf(l,Xn(c,1,gn,!0),r,p):[]});function cA(l,c,p){var E=l==null?0:l.length;return E?(c=p||c===r?1:jt(c),Da(l,c<0?0:c,E)):[]}function fA(l,c,p){var E=l==null?0:l.length;return E?(c=p||c===r?1:jt(c),c=E-c,Da(l,0,c<0?0:c)):[]}function dA(l,c){return l&&l.length?id(l,Ct(c,3),!0,!0):[]}function pA(l,c){return l&&l.length?id(l,Ct(c,3),!0):[]}function hA(l,c,p,E){var O=l==null?0:l.length;return O?(p&&typeof p!="number"&&Ii(l,c,p)&&(p=0,E=O),oO(l,c,p,E)):[]}function ow(l,c,p){var E=l==null?0:l.length;if(!E)return-1;var O=p==null?0:jt(p);
vendor: 10,897 bytes, line 10
10return O<0&&(O=kr(E+O,0)),Bs(l,Ct(c,3),O)}function sw(l,c,p){var E=l==null?0:l.length;if(!E)return-1;var O=E-1;return p!==r&&(O=jt(p),O=p<0?kr(E+O,0):Br(O,E-1)),Bs(l,Ct(c,3),O,!0)}function lw(l){var c=l==null?0:l.length;return c?Xn(l,1):[]}function vA(l){var c=l==null?0:l.length;return c?Xn(l,Re):[]}function mA(l,c){var p=l==null?0:l.length;return p?(c=c===r?1:jt(c),Xn(l,c)):[]}function gA(l){for(var c=-1,p=l==null?0:l.length,E={};++c<p;){var O=l[c];E[O[0]]=O[1]}return E}function uw(l){return l&&l.length?l[0]:r}function yA(l,c,p){var E=l==null?0:l.length;if(!E)return-1;var O=p==null?0:jt(p);return O<0&&(O=kr(E+O,0)),Oa(l,c,O)}function bA(l){var c=l==null?0:l.length;return c?Da(l,0,-1):[]}var wA=Jt(function(l){var c=Ar(l,Sh);return c.length&&c[0]===l[0]?mh(c):[]}),xA=Jt(function(l){var c=Ia(l),p=Ar(l,Sh);return c===Ia(p)?c=r:p.pop(),p.length&&p[0]===l[0]?mh(p,Ct(c,2)):[]}),CA=Jt(function(l){var c=Ia(l),p=Ar(l,Sh);return c=typeof c=="function"?c:r,c&&p.pop(),p.length&&p[0]===l[0]?mh(p,r,c):[]});function EA(l,c){return l==null?"":Jn.call(l,c)}function Ia(l){var c=l==null?0:l.length;return c?l[c-1]:r}function TA(l,c,p){var E=l==null?0:l.length;if(!E)return-1;var O=E;return p!==r&&(O=jt(p),O=O<0?kr(E+O,0):Br(O,E-1)),c===c?ts(l,c,O):Bs(l,Nl,O,!0)}function _A(l,c){return l&&l.length?wb(l,jt(c)):r}var SA=Jt(cw);function cw(l,c){return l&&l.length&&c&&c.length?wh(l,c):l}function kA(l,c,p){return l&&l.length&&c&&c.length?wh(l,c,Ct(p,2)):l}function OA(l,c,p){return l&&l.length&&c&&c.length?wh(l,c,r,p):l}var AA=is(function(l,c){var p=l==null?0:l.length,E=Li(l,c);return Eb(l,Ar(c,function(O){return as(O,p)?+O:O}).sort(Ib)),E});function MA(l,c){var p=[];if(!(l&&l.length))return p;var E=-1,O=[],I=l.length;for(c=Ct(c,3);++E<I;){var q=l[E];c(q,E,l)&&(p.push(q),O.push(E))}return Eb(l,O),p}function qh(l){return l==null?l:di.call(l)}function LA(l,c,p){var E=l==null?0:l.length;return E?(p&&typeof p!="number"&&Ii(l,c,p)?(c=0,p=E):(c=c==null?0:jt(c),p=p===r?E:jt(p)),Da(l,c,p)):[]}function DA(l,c){return nd(l,c)}function IA(l,c,p){return Eh(l,c,Ct(p,2))}function RA(l,c){var p=l==null?0:l.length;if(p){var E=nd(l,c);if(E<p&&ao(l[E],c))return E}return-1}function NA(l,c){return nd(l,c,!0)}function PA(l,c,p){return Eh(l,c,Ct(p,2),!0)}function BA(l,c){var p=l==null?0:l.length;if(p){var E=nd(l,c,!0)-1;if(ao(l[E],c))return E}return-1}function FA(l){return l&&l.length?_b(l):[]}function HA(l,c){return l&&l.length?_b(l,Ct(c,2)):[]}function qA(l){var c=l==null?0:l.length;return c?Da(l,1,c):[]}function $A(l,c,p){return l&&l.length?(c=p||c===r?1:jt(c),Da(l,0,c<0?0:c)):[]}function UA(l,c,p){var E=l==null?0:l.length;return E?(c=p||c===r?1:jt(c),c=E-c,Da(l,c<0?0:c,E)):[]}function jA(l,c){return l&&l.length?id(l,Ct(c,3),!1,!0):[]}function zA(l,c){return l&&l.length?id(l,Ct(c,3)):[]}var WA=Jt(function(l){return Qs(Xn(l,1,gn,!0))}),VA=Jt(function(l){var c=Ia(l);return gn(c)&&(c=r),Qs(Xn(l,1,gn,!0),Ct(c,2))}),GA=Jt(function(l){var c=Ia(l);return c=typeof c=="function"?c:r,Qs(Xn(l,1,gn,!0),r,c)});function KA(l){return l&&l.length?Qs(l):[]}function JA(l,c){return l&&l.length?Qs(l,Ct(c,2)):[]}function YA(l,c){return c=typeof c=="function"?c:r,l&&l.length?Qs(l,r,c):[]}function $h(l){if(!(l&&l.length))return[];var c=0;return l=ka(l,function(p){if(gn(p))return c=kr(p.length,c),!0}),fi(c,function(p){return Ar(l,Fs(p))})}function fw(l,c){if(!(l&&l.length))return[];var p=$h(l);return c==null?p:Ar(p,function(E){return Un(c,r,E)})}var XA=Jt(function(l,c){return gn(l)?tf(l,c):[]}),QA=Jt(function(l){return _h(ka(l,gn))}),ZA=Jt(function(l){var c=Ia(l);return gn(c)&&(c=r),_h(ka(l,gn),Ct(c,2))}),eM=Jt(function(l){var c=Ia(l);return c=typeof c=="function"?c:r,_h(ka(l,gn),r,c)}),tM=Jt($h);function rM(l,c){return Ab(l||[],c||[],ct)}function nM(l,c){return Ab(l||[],c||[],af)}var iM=Jt(function(l){var c=l.length,p=c>1?l[c-1]:r;return p=typeof p=="function"?(l.pop(),p):r,fw(l,p)});function dw(l){var c=D(l);return c.__chain__=!0,c}function aM(l,c){return c(l),l}function pd(l,c){return c(l)}var oM=is(function(l){var c=l.length,p=c?l[0]:0,E=this.__wrapped__,O=function(I){return Li(I,l)};return c>1||this.__actions__.length||!(E instanceof St)||!as(p)?this.thru(O):(E=E.slice(p,+p+(c?1:0)),E.__actions__.push({func:pd,args:[O],thisArg:r}),new un(E,this.__chain__).thru(function(I){return c&&!I.length&&I.push(r),I}))});function sM(){return dw(this)}function lM(){return new un(this.value(),this.__chain__)}function uM(){this.__values__===r&&(this.__values__=Sw(this.value()));var l=this.__index__>=this.__values__.length,c=l?r:this.__values__[this.__index__++];return{done:l,value:c}}function cM(){return this}function fM(l){for(var c,p=this;p instanceof to;){var E=aw(p);E.__index__=0,E.__values__=r,c?O.__wrapped__=E:c=E;var O=E;p=p.__wrapped__}return O.__wrapped__=l,c}function dM(){var l=this.__wrapped__;if(l instanceof St){var c=l;return this.__actions__.length&&(c=new St(this)),c=c.reverse(),c.__actions__.push({func:pd,args:[qh],thisArg:r}),new un(c,this.__chain__)}return this.thru(qh)}function pM(){return Ob(this.__wrapped__,this.__actions__)}var hM=ad(function(l,c,p){y.call(l,p)?++l[p]:Fr(l,p,1)});function vM(l,c,p){var E=Nt(l)?Ml:aO;return p&&Ii(l,c,p)&&(c=r),E(l,Ct(c,3))}function mM(l,c){var p=Nt(l)?ka:fb;return p(l,Ct(c,3))}var gM=Hb(ow),yM=Hb(sw);function bM(l,c){return Xn(hd(l,c),1)}function wM(l,c){return Xn(hd(l,c),Re)}function xM(l,c,p){return p=p===r?1:jt(p),Xn(hd(l,c),p)}function pw(l,c){var p=Nt(l)?jn:Xs;return p(l,Ct(c,3))}function hw(l,c){var p=Nt(l)?Al:cb;return p(l,Ct(c,3))}var CM=ad(function(l,c,p){y.call(l,p)?l[p].push(c):Fr(l,p,[c])});function EM(l,c,p,E){l=Yi(l)?l:Ju(l),p=p&&!E?jt(p):0;var O=l.length;return p<0&&(p=kr(O+p,0)),bd(l)?p<=O&&l.indexOf(c,p)>-1:!!O&&Oa(l,c,p)>-1}var TM=Jt(function(l,c,p){var E=-1,O=typeof c=="function",I=Yi(l)?ue(l.length):[];return Xs(l,function(q){I[++E]=O?Un(c,q,p):rf(q,c,p)}),I}),_M=ad(function(l,c,p){Fr(l,p,c)});function hd(l,c){var p=Nt(l)?Ar:gb;return p(l,Ct(c,3))}function SM(l,c,p,E){return l==null?[]:(Nt(c)||(c=c==null?[]:[c]),p=E?r:p,Nt(p)||(p=p==null?[]:[p]),xb(l,c,p))}var kM=ad(function(l,c,p){l[p?0:1].push(c)},function(){return[[],[]]});function OM(l,c,p){var E=Nt(l)?Jo:Nu,O=arguments.length<3;return E(l,Ct(c,4),p,O,Xs)}function AM(l,c,p){var E=Nt(l)?Ll:Nu,O=arguments.length<3;return E(l,Ct(c,4),p,O,cb)}function MM(l,c){var p=Nt(l)?ka:fb;return p(l,gd(Ct(c,3)))}function LM(l){var c=Nt(l)?we:EO;return c(l)}function DM(l,c,p){(p?Ii(l,c,p):c===r)?c=1:c=jt(c);var E=Nt(l)?Me:TO;return E(l,c)}function IM(l){var c=Nt(l)?ot:SO;return c(l)}function RM(l){if(l==null)return 0;if(Yi(l))return bd(l)?eo(l):l.length;var c=mi(l);return c==kt||c==yt?l.size:yh(l).length}function NM(l,c,p){var E=Nt(l)?Yo:kO;return p&&Ii(l,c,p)&&(c=r),E(l,Ct(c,3))}var PM=Jt(function(l,c){if(l==null)return[];var p=c.length;return p>1&&Ii(l,c[0],c[1])?c=[]:p>2&&Ii(c[0],c[1],c[2])&&(c=[c[0]]),xb(l,Xn(c,1),[])}),vd=Mr||function(){return an.Date.now()};function BM(l,c){if(typeof c!="function")throw new j(o);return l=jt(l),function(){if(--l<1)return c.apply(this,arguments)}}function vw(l,c,p){return c=p?r:c,c=l&&c==null?l.length:c,ns(l,J,r,r,r,r,c)}function mw(l,c){var p;if(typeof c!="function")throw new j(o);return l=jt(l),function(){return--l>0&&(p=c.apply(this,arguments)),l<=1&&(c=r),p}}var Uh=Jt(function(l,c,p){var E=S;if(p.length){var O=oa(p,Gu(Uh));E|=H}return ns(l,E,c,p,O)}),gw=Jt(function(l,c,p){var E=S|M;if(p.length){var O=oa(p,Gu(gw));E|=H}return ns(c,E,l,p,O)});function yw(l,c,p){c=p?r:c;var E=ns(l,P,r,r,r,r,r,c);return E.placeholder=yw.placeholder,E}function bw(l,c,p){c=p?r:c;var E=ns(l,A,r,r,r,r,r,c);return E.placeholder=bw.placeholder,E}function ww(l,c,p){var E,O,I,q,V,re,Se=0,ke=!1,Ie=!1,Qe=!0;if(typeof l!="function")throw new j(o);c=Ra(c)||0,tn(p)&&(ke=!!p.leading,Ie="maxWait"in p,I=Ie?kr(Ra(p.maxWait)||0,c):I,Qe="trailing"in p?!!p.trailing:Qe);function dt(yn){var oo=E,us=O;return E=O=r,Se=yn,q=l.apply(us,oo),q}function Et(yn){return Se=yn,V=lf(nr,c),ke?dt(yn):q}function Kt(yn){var oo=yn-re,us=yn-Se,Hw=c-oo;return Ie?Br(Hw,I-us):Hw}function Tt(yn){var oo=yn-re,us=yn-Se;return re===r||oo>=c||oo<0||Ie&&us>=I}function nr(){var yn=vd();if(Tt(yn))return fr(yn);V=lf(nr,Kt(yn))}function fr(yn){return V=r,Qe&&E?dt(yn):(E=O=r,q)}function fa(){V!==r&&Mb(V),Se=0,E=re=O=V=r}function Ri(){return V===r?q:fr(vd())}function da(){var yn=vd(),oo=Tt(yn);if(E=arguments,O=this,re=yn,oo){if(V===r)return Et(re);if(Ie)return Mb(V),V=lf(nr,c),dt(re)}return V===r&&(V=lf(nr,c)),q}return da.cancel=fa,da.flush=Ri,da}var FM=Jt(function(l,c){return ub(l,1,c)}),HM=Jt(function(l,c,p){return ub(l,Ra(c)||0,p)});function qM(l){return ns(l,X)}function md(l,c){if(typeof l!="function"||c!=null&&typeof c!="function")throw new j(o);var p=function(){var E=arguments,O=c?c.apply(this,E):E[0],I=p.cache;if(I.has(O))return I.get(O);var q=l.apply(this,E);return p.cache=I.set(O,q)||I,q};return p.cache=new(md.Cache||Bt),p}md.Cache=Bt;function gd(l){if(typeof l!="function")throw new j(o);return function(){var c=arguments;switch(c.length){case 0:return!l.call(this);case 1:return!l.call(this,c[0]);case 2:return!l.call(this,c[0],c[1]);case 3:return!l.call(this,c[0],c[1],c[2])}return!l.apply(this,c)}}function $M(l){return mw(2,l)}var UM=OO(function(l,c){c=c.length==1&&Nt(c[0])?Ar(c[0],Ln(Ct())):Ar(Xn(c,1),Ln(Ct()));var p=c.length;return Jt(function(E){for(var O=-1,I=Br(E.length,p);++O<I;)E[O]=c[O].call(this,E[O]);return Un(l,this,E)})}),jh=Jt(function(l,c){var p=oa(c,Gu(jh));return ns(l,H,r,c,p)}),xw=Jt(function(l,c){var p=oa(c,Gu(xw));return ns(l,W,r,c,p)}),jM=is(function(l,c){return ns(l,ee,r,r,r,c)});function zM(l,c){if(typeof l!="function")throw new j(o);return c=c===r?c:jt(c),Jt(l,c)}function WM(l,c){if(typeof l!="function")throw new j(o);return c=c==null?0:kr(jt(c),0),Jt(function(p){var E=p[c],O=el(p,0,c);return E&&ji(O,E),Un(l,this,O)})}function VM(l,c,p){var E=!0,O=!0;if(typeof l!="function")throw new j(o);return tn(p)&&(E="leading"in p?!!p.leading:E,O="trailing"in p?!!p.trailing:O),ww(l,c,{leading:E,maxWait:c,trailing:O})}function GM(l){return vw(l,1)}function KM(l,c){return jh(kh(c),l)}function JM(){if(!arguments.length)return[];var l=arguments[0];return Nt(l)?l:[l]}function YM(l){return La(l,b)}function XM(l,c){return c=typeof c=="function"?c:r,La(l,b,c)}function QM(l){return La(l,v|b)}function ZM(l,c){return c=typeof c=="function"?c:r,La(l,v|b,c)}function eL(l,c){return c==null||lb(l,c,zn(c))}function ao(l,c){return l===c||l!==l&&c!==c}var tL=ud(vh),rL=ud(function(l,c){return l>=c}),Kl=hb(function(){return arguments}())?hb:function(l){return fn(l)&&y.call(l,"callee")&&!cr.call(l,"callee")},Nt=ue.isArray,nL=kl?Ln(kl):fO;function Yi(l){return l!=null&&yd(l.length)&&!ss(l)}function gn(l){return fn(l)&&Yi(l)}function iL(l){return l===!0||l===!1||fn(l)&&Di(l)==Wt}var tl=Jr||ev,aL=Is?Ln(Is):dO;function oL(l){return fn(l)&&l.nodeType===1&&!uf(l)}function sL(l){if(l==null)return!0;
vendor: 4,170 bytes, line 10
10if(Yi(l)&&(Nt(l)||typeof l=="string"||typeof l.splice=="function"||tl(l)||Ku(l)||Kl(l)))return!l.length;var c=mi(l);if(c==kt||c==yt)return!l.size;if(sf(l))return!yh(l).length;for(var p in l)if(y.call(l,p))return!1;return!0}function lL(l,c){return nf(l,c)}function uL(l,c,p){p=typeof p=="function"?p:r;var E=p?p(l,c):r;return E===r?nf(l,c,r,p):!!E}function zh(l){if(!fn(l))return!1;var c=Di(l);return c==tr||c==qt||typeof l.message=="string"&&typeof l.name=="string"&&!uf(l)}function cL(l){return typeof l=="number"&&Yr(l)}function ss(l){if(!tn(l))return!1;var c=Di(l);return c==ht||c==br||c==Dt||c==rt}function Cw(l){return typeof l=="number"&&l==jt(l)}function yd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=Oe}function tn(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function fn(l){return l!=null&&typeof l=="object"}var Ew=Ol?Ln(Ol):hO;function fL(l,c){return l===c||gh(l,c,Rh(c))}function dL(l,c,p){return p=typeof p=="function"?p:r,gh(l,c,Rh(c),p)}function pL(l){return Tw(l)&&l!=+l}function hL(l){if(XO(l))throw new At(a);return vb(l)}function vL(l){return l===null}function mL(l){return l==null}function Tw(l){return typeof l=="number"||fn(l)&&Di(l)==xr}function uf(l){if(!fn(l)||Di(l)!=ye)return!1;var c=or(l);if(c===null)return!0;var p=y.call(c,"constructor")&&c.constructor;return typeof p=="function"&&p instanceof p&&g.call(p)==pe}var Wh=Lu?Ln(Lu):vO;function gL(l){return Cw(l)&&l>=-Oe&&l<=Oe}var _w=Du?Ln(Du):mO;function bd(l){return typeof l=="string"||!Nt(l)&&fn(l)&&Di(l)==Xe}function ca(l){return typeof l=="symbol"||fn(l)&&Di(l)==xe}var Ku=Iu?Ln(Iu):gO;function yL(l){return l===r}function bL(l){return fn(l)&&mi(l)==Je}function wL(l){return fn(l)&&Di(l)==wt}var xL=ud(bh),CL=ud(function(l,c){return l<=c});function Sw(l){if(!l)return[];if(Yi(l))return bd(l)?En(l):Ji(l);if(vr&&l[vr])return es(l[vr]());var c=mi(l),p=c==kt?js:c==yt?zs:Ju;return p(l)}function ls(l){if(!l)return l===0?l:0;if(l=Ra(l),l===Re||l===-Re){var c=l<0?-1:1;return c*zt}return l===l?l:0}function jt(l){var c=ls(l),p=c%1;return c===c?p?c-p:c:0}function kw(l){return l?io(jt(l),0,$e):0}function Ra(l){if(typeof l=="number")return l;if(ca(l))return bt;if(tn(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=tn(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=Qo(l);var p=ut.test(l);return p||Ot.test(l)?Yc(l.slice(2),p?2:8):je.test(l)?bt:+l}function Ow(l){return ko(l,Xi(l))}function EL(l){return l?io(jt(l),-Oe,Oe):l===0?l:0}function Lr(l){return l==null?"":ua(l)}var TL=Wu(function(l,c){if(sf(c)||Yi(c)){ko(c,zn(c),l);return}for(var p in c)y.call(c,p)&&ct(l,p,c[p])}),Aw=Wu(function(l,c){ko(c,Xi(c),l)}),wd=Wu(function(l,c,p,E){ko(c,Xi(c),l,E)}),_L=Wu(function(l,c,p,E){ko(c,zn(c),l,E)}),SL=is(Li);function kL(l,c){var p=Gi(l);return c==null?p:_n(p,c)}var OL=Jt(function(l,c){l=k(l);var p=-1,E=c.length,O=E>2?c[2]:r;for(O&&Ii(c[0],c[1],O)&&(E=1);++p<E;)for(var I=c[p],q=Xi(I),V=-1,re=q.length;++V<re;){var Se=q[V],ke=l[Se];(ke===r||ao(ke,Ce[Se])&&!y.call(l,Se))&&(l[Se]=I[Se])}return l}),AL=Jt(function(l){return l.push(r,Vb),Un(Mw,r,l)});function ML(l,c){return Il(l,Ct(c,3),So)}function LL(l,c){return Il(l,Ct(c,3),hh)}function DL(l,c){return l==null?l:ph(l,Ct(c,3),Xi)}function IL(l,c){return l==null?l:db(l,Ct(c,3),Xi)}function RL(l,c){return l&&So(l,Ct(c,3))}function NL(l,c){return l&&hh(l,Ct(c,3))}function PL(l){return l==null?[]:td(l,zn(l))}function BL(l){return l==null?[]:td(l,Xi(l))}function Vh(l,c,p){var E=l==null?r:Wl(l,c);return E===r?p:E}function FL(l,c){return l!=null&&Jb(l,c,sO)}function Gh(l,c){return l!=null&&Jb(l,c,lO)}var HL=$b(function(l,c,p){c!=null&&typeof c.toString!="function"&&(c=z.call(c)),l[c]=p},Jh(Qi)),qL=$b(function(l,c,p){c!=null&&typeof c.toString!="function"&&(c=z.call(c)),y.call(l,c)?l[c].push(p):l[c]=[p]},Ct),$L=Jt(rf);function zn(l){return Yi(l)?R(l):yh(l)}function Xi(l){return Yi(l)?R(l,!0):yO(l)}function UL(l,c){var p={};return c=Ct(c,3),So(l,function(E,O,I){Fr(p,c(E,O,I),E)}),p}function jL(l,c){var p={};return c=Ct(c,3),So(l,function(E,O,I){Fr(p,O,c(E,O,I))}),p}var zL=Wu(function(l,c,p){rd(l,c,p)}),Mw=Wu(function(l,c,p,E){rd(l,c,p,E)}),WL=is(function(l,c){var p={};if(l==null)return p;var E=!1;
vendor: 14,264 bytes, lines 10-27
10c=Ar(c,function(I){return I=Zs(I,l),E||(E=I.length>1),I}),ko(l,Dh(l),p),E&&(p=La(p,v|m|b,HO));for(var O=c.length;O--;)Th(p,c[O]);return p});function VL(l,c){return Lw(l,gd(Ct(c)))}var GL=is(function(l,c){return l==null?{}:wO(l,c)});function Lw(l,c){if(l==null)return{};var p=Ar(Dh(l),function(E){return[E]});return c=Ct(c),Cb(l,p,function(E,O){return c(E,O[0])})}function KL(l,c,p){c=Zs(c,l);var E=-1,O=c.length;for(O||(O=1,l=r);++E<O;){var I=l==null?r:l[Oo(c[E])];I===r&&(E=O,I=p),l=ss(I)?I.call(l):I}return l}function JL(l,c,p){return l==null?l:af(l,c,p)}function YL(l,c,p,E){return E=typeof E=="function"?E:r,l==null?l:af(l,c,p,E)}var Dw=zb(zn),Iw=zb(Xi);function XL(l,c,p){var E=Nt(l),O=E||tl(l)||Ku(l);if(c=Ct(c,4),p==null){var I=l&&l.constructor;O?p=E?new I:[]:tn(l)?p=ss(I)?Gi(or(l)):{}:p={}}return(O?jn:So)(l,function(q,V,re){return c(p,q,V,re)}),p}function QL(l,c){return l==null?!0:Th(l,c)}function ZL(l,c,p){return l==null?l:kb(l,c,kh(p))}function eD(l,c,p,E){return E=typeof E=="function"?E:r,l==null?l:kb(l,c,kh(p),E)}function Ju(l){return l==null?[]:$s(l,zn(l))}function tD(l){return l==null?[]:$s(l,Xi(l))}function rD(l,c,p){return p===r&&(p=c,c=r),p!==r&&(p=Ra(p),p=p===p?p:0),c!==r&&(c=Ra(c),c=c===c?c:0),io(Ra(l),c,p)}function nD(l,c,p){return c=ls(c),p===r?(p=c,c=0):p=ls(p),l=Ra(l),uO(l,c,p)}function iD(l,c,p){if(p&&typeof p!="boolean"&&Ii(l,c,p)&&(c=p=r),p===r&&(typeof c=="boolean"?(p=c,c=r):typeof l=="boolean"&&(p=l,l=r)),l===r&&c===r?(l=0,c=1):(l=ls(l),c===r?(c=l,l=0):c=ls(c)),l>c){var E=l;l=c,c=E}if(p||l%1||c%1){var O=zi();return Br(l+O*(c-l+Ls("1e-"+((O+"").length-1))),c)}return xh(l,c)}var aD=Vu(function(l,c,p){return c=c.toLowerCase(),l+(p?Rw(c):c)});function Rw(l){return Kh(Lr(l).toLowerCase())}function Nw(l){return l=Lr(l),l&&l.replace(Mt,Bu).replace(Gc,"")}function oD(l,c,p){l=Lr(l),c=ua(c);var E=l.length;p=p===r?E:io(jt(p),0,E);var O=p;return p-=c.length,p>=0&&l.slice(p,O)==c}function sD(l){return l=Lr(l),l&&dr.test(l)?l.replace(Fn,Fu):l}function lD(l){return l=Lr(l),l&&qn.test(l)?l.replace(Mn,"\\$&"):l}var uD=Vu(function(l,c,p){return l+(p?"-":"")+c.toLowerCase()}),cD=Vu(function(l,c,p){return l+(p?" ":"")+c.toLowerCase()}),fD=Fb("toLowerCase");function dD(l,c,p){l=Lr(l),c=jt(c);var E=c?eo(l):0;if(!c||E>=c)return l;var O=(c-E)/2;return ld(Sr(O),p)+l+ld(pr(O),p)}function pD(l,c,p){l=Lr(l),c=jt(c);var E=c?eo(l):0;return c&&E<c?l+ld(c-E,p):l}function hD(l,c,p){l=Lr(l),c=jt(c);var E=c?eo(l):0;return c&&E<c?ld(c-E,p)+l:l}function vD(l,c,p){return p||c==null?c=0:c&&(c=+c),Tn(Lr(l).replace(wa,""),c||0)}function mD(l,c,p){return(p?Ii(l,c,p):c===r)?c=1:c=jt(c),Ch(Lr(l),c)}function gD(){var l=arguments,c=Lr(l[0]);return l.length<3?c:c.replace(l[1],l[2])}var yD=Vu(function(l,c,p){return l+(p?"_":"")+c.toLowerCase()});function bD(l,c,p){return p&&typeof p!="number"&&Ii(l,c,p)&&(c=p=r),p=p===r?$e:p>>>0,p?(l=Lr(l),l&&(typeof c=="string"||c!=null&&!Wh(c))&&(c=ua(c),!c&&Eo(l))?el(En(l),0,p):l.split(c,p)):[]}var wD=Vu(function(l,c,p){return l+(p?" ":"")+Kh(c)});function xD(l,c,p){return l=Lr(l),p=p==null?0:io(jt(p),0,l.length),c=ua(c),l.slice(p,p+c.length)==c}function CD(l,c,p){var E=D.templateSettings;p&&Ii(l,c,p)&&(c=r),l=Lr(l),c=wd({},c,E,Wb);var O=wd({},c.imports,E.imports,Wb),I=zn(O),q=$s(O,I),V,re,Se=0,ke=c.interpolate||Lt,Ie="__p += '",Qe=N((c.escape||Lt).source+"|"+ke.source+"|"+(ke===Ei?be:Lt).source+"|"+(c.evaluate||Lt).source+"|$","g"),dt="//# sourceURL="+(y.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ms+"]")+`
11`;l.replace(Qe,function(Tt,nr,fr,fa,Ri,da){return fr||(fr=fa),Ie+=l.slice(Se,da).replace(Pr,Hu),nr&&(V=!0,Ie+=`' +
12__e(`+nr+`) +
13'`),Ri&&(re=!0,Ie+=`';
14`+Ri+`;
15__p += '`),fr&&(Ie+=`' +
16((__t = (`+fr+`)) == null ? '' : __t) +
17'`),Se=da+Tt.length,Tt}),Ie+=`';
18`;var Et=y.call(c,"variable")&&c.variable;if(!Et)Ie=`with (obj) {
19`+Ie+`
20}
21`;else if(te.test(Et))throw new At(s);Ie=(re?Ie.replace(st,""):Ie).replace(ir,"$1").replace(ur,"$1;"),Ie="function("+(Et||"obj")+`) {
22`+(Et?"":`obj || (obj = {});
23`)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
24function print() { __p += __j.call(arguments, '') }
25`:`;
26`)+Ie+`return __p
27}`;var Kt=Bw(function(){return h(I,dt+"return "+Ie).apply(r,q)});if(Kt.source=Ie,zh(Kt))throw Kt;return Kt}function ED(l){return Lr(l).toLowerCase()}function TD(l){return Lr(l).toUpperCase()}function _D(l,c,p){if(l=Lr(l),l&&(p||c===r))return Qo(l);if(!l||!(c=ua(c)))return l;var E=En(l),O=En(c),I=Pu(E,O),q=Us(E,O)+1;return el(E,I,q).join("")}function SD(l,c,p){if(l=Lr(l),l&&(p||c===r))return l.slice(0,ql(l)+1);if(!l||!(c=ua(c)))return l;var E=En(l),O=Us(E,En(c))+1;return el(E,0,O).join("")}function kD(l,c,p){if(l=Lr(l),l&&(p||c===r))return l.replace(wa,"");if(!l||!(c=ua(c)))return l;var E=En(l),O=Pu(E,En(c));return el(E,O).join("")}function OD(l,c){var p=ie,E=ge;if(tn(c)){var O="separator"in c?c.separator:O;p="length"in c?jt(c.length):p,E="omission"in c?ua(c.omission):E}l=Lr(l);var I=l.length;if(Eo(l)){var q=En(l);I=q.length}if(p>=I)return l;var V=p-eo(E);if(V<1)return E;var re=q?el(q,0,V).join(""):l.slice(0,V);if(O===r)return re+E;if(q&&(V+=re.length-V),Wh(O)){if(l.slice(V).search(O)){var Se,ke=re;for(O.global||(O=N(O.source,Lr(Ue.exec(O))+"g")),O.lastIndex=0;Se=O.exec(ke);)var Ie=Se.index;re=re.slice(0,Ie===r?V:Ie)}}else if(l.indexOf(ua(O),V)!=V){var Qe=re.lastIndexOf(O);Qe>-1&&(re=re.slice(0,Qe))}return re+E}function AD(l){return l=Lr(l),l&&Tr.test(l)?l.replace(ar,$u):l}var MD=Vu(function(l,c,p){return l+(p?" ":"")+c.toUpperCase()}),Kh=Fb("toUpperCase");function Pw(l,c,p){return l=Lr(l),c=p?r:c,c===r?Qc(l)?$l(l):Za(l):l.match(c)||[]}var Bw=Jt(function(l,c){try{return Un(l,r,c)}catch(p){return zh(p)?p:new At(p)}}),LD=is(function(l,c){return jn(c,function(p){p=Oo(p),Fr(l,p,Uh(l[p],l))}),l});function DD(l){var c=l==null?0:l.length,p=Ct();return l=c?Ar(l,function(E){if(typeof E[1]!="function")throw new j(o);return[p(E[0]),E[1]]}):[],Jt(function(E){for(var O=-1;++O<c;){var I=l[O];if(Un(I[0],this,E))return Un(I[1],this,E)}})}function ID(l){return iO(La(l,v))}function Jh(l){return function(){return l}}function RD(l,c){return l==null||l!==l?c:l}var ND=qb(),PD=qb(!0);function Qi(l){return l}function Yh(l){return mb(typeof l=="function"?l:La(l,v))}function BD(l){return yb(La(l,v))}function FD(l,c){return bb(l,La(c,v))}var HD=Jt(function(l,c){return function(p){return rf(p,l,c)}}),qD=Jt(function(l,c){return function(p){return rf(l,p,c)}});function Xh(l,c,p){var E=zn(c),O=td(c,E);p==null&&!(tn(c)&&(O.length||!E.length))&&(p=c,c=l,l=this,O=td(c,zn(c)));var I=!(tn(p)&&"chain"in p)||!!p.chain,q=ss(l);return jn(O,function(V){var re=c[V];l[V]=re,q&&(l.prototype[V]=function(){var Se=this.__chain__;if(I||Se){var ke=l(this.__wrapped__),Ie=ke.__actions__=Ji(this.__actions__);return Ie.push({func:re,args:arguments,thisArg:l}),ke.__chain__=Se,ke}return re.apply(l,ji([this.value()],arguments))})}),l}function $D(){return an._===this&&(an._=se),this}function Qh(){}function UD(l){return l=jt(l),Jt(function(c){return wb(c,l)})}var jD=Ah(Ar),zD=Ah(Ml),WD=Ah(Yo);function Fw(l){return Ph(l)?Fs(Oo(l)):xO(l)}function VD(l){return function(c){return l==null?r:Wl(l,c)}}var GD=Ub(),KD=Ub(!0);function Zh(){return[]}function ev(){return!1}function JD(){return{}}function YD(){return""}function XD(){return!0}function QD(l,c){if(l=jt(l),l<1||l>Oe)return[];var p=$e,E=Br(l,$e);c=Ct(c),l-=$e;for(var O=fi(E,c);++p<l;)c(p);return O}function ZD(l){return Nt(l)?Ar(l,Oo):ca(l)?[l]:Ji(iw(Lr(l)))}function eI(l){var c=++w;return Lr(l)+c}var tI=sd(function(l,c){return l+c},0),rI=Mh("ceil"),nI=sd(function(l,c){return l/c},1),iI=Mh("floor");function aI(l){return l&&l.length?ed(l,Qi,vh):r}function oI(l,c){return l&&l.length?ed(l,Ct(c,2),vh):r}function sI(l){return Ru(l,Qi)}function lI(l,c){return Ru(l,Ct(c,2))}function uI(l){return l&&l.length?ed(l,Qi,bh):r}function cI(l,c){return l&&l.length?ed(l,Ct(c,2),bh):r}var fI=sd(function(l,c){return l*c},1),dI=Mh("round"),pI=sd(function(l,c){return l-c},0);function hI(l){return l&&l.length?qs(l,Qi):0}function vI(l,c){return l&&l.length?qs(l,Ct(c,2)):0}return D.after=BM,D.ary=vw,D.assign=TL,D.assignIn=Aw,D.assignInWith=wd,D.assignWith=_L,D.at=SL,D.before=mw,D.bind=Uh,D.bindAll=LD,D.bindKey=gw,D.castArray=JM,D.chain=dw,D.chunk=iA,D.compact=aA,D.concat=oA,D.cond=DD,D.conforms=ID,D.constant=Jh,D.countBy=hM,D.create=kL,D.curry=yw,D.curryRight=bw,D.debounce=ww,D.defaults=OL,D.defaultsDeep=AL,D.defer=FM,D.delay=HM,D.difference=sA,D.differenceBy=lA,D.differenceWith=uA,D.drop=cA,D.dropRight=fA,D.dropRightWhile=dA,D.dropWhile=pA,D.fill=hA,D.filter=mM,D.flatMap=bM,D.flatMapDeep=wM,D.flatMapDepth=xM,D.flatten=lw,D.flattenDeep=vA,D.flattenDepth=mA,D.flip=qM,D.flow=ND,D.flowRight=PD,D.fromPairs=gA,D.functions=PL,D.functionsIn=BL,D.groupBy=CM,D.initial=bA,D.intersection=wA,D.intersectionBy=xA,D.intersectionWith=CA,D.invert=HL,D.invertBy=qL,D.invokeMap=TM,D.iteratee=Yh,D.keyBy=_M,D.keys=zn,D.keysIn=Xi,D.map=hd,D.mapKeys=UL,D.mapValues=jL,D.matches=BD,D.matchesProperty=FD,D.memoize=md,D.merge=zL,D.mergeWith=Mw,D.method=HD,D.methodOf=qD,D.mixin=Xh,D.negate=gd,D.nthArg=UD,D.omit=WL,D.omitBy=VL,D.once=$M,D.orderBy=SM,D.over=jD,D.overArgs=UM,D.overEvery=zD,D.overSome=WD,D.partial=jh,D.partialRight=xw,D.partition=kM,D.pick=GL,D.pickBy=Lw,D.property=Fw,D.propertyOf=VD,D.pull=SA,D.pullAll=cw,D.pullAllBy=kA,D.pullAllWith=OA,D.pullAt=AA,D.range=GD,D.rangeRight=KD,D.rearg=jM,D.reject=MM,D.remove=MA,D.rest=zM,D.reverse=qh,D.sampleSize=DM,D.set=JL,D.setWith=YL,D.shuffle=IM,D.slice=LA,D.sortBy=PM,D.sortedUniq=FA,D.sortedUniqBy=HA,D.split=bD,D.spread=WM,D.tail=qA,D.take=$A,D.takeRight=UA,D.takeRightWhile=jA,D.takeWhile=zA,D.tap=aM,D.throttle=VM,D.thru=pd,D.toArray=Sw,D.toPairs=Dw,D.toPairsIn=Iw,D.toPath=ZD,D.toPlainObject=Ow,D.transform=XL,D.unary=GM,D.union=WA,D.unionBy=VA,D.unionWith=GA,D.uniq=KA,D.uniqBy=JA,D.uniqWith=YA,D.unset=QL,D.unzip=$h,D.unzipWith=fw,D.update=ZL,D.updateWith=eD,D.values=Ju,D.valuesIn=tD,D.without=XA,D.words=Pw,D.wrap=KM,D.xor=QA,D.xorBy=ZA,D.xorWith=eM,D.zip=tM,D.zipObject=rM,D.zipObjectDeep=nM,D.zipWith=iM,D.entries=Dw,D.entriesIn=Iw,D.extend=Aw,D.extendWith=wd,Xh(D,D),D.add=tI,D.attempt=Bw,D.camelCase=aD,D.capitalize=Rw,D.ceil=rI,D.clamp=rD,D.clone=YM,D.cloneDeep=QM,D.cloneDeepWith=ZM,D.cloneWith=XM,D.conformsTo=eL,D.deburr=Nw,D.defaultTo=RD,D.divide=nI,D.endsWith=oD,D.eq=ao,D.escape=sD,D.escapeRegExp=lD,D.every=vM,D.find=gM,D.findIndex=ow,D.findKey=ML,D.findLast=yM,D.findLastIndex=sw,D.findLastKey=LL,D.floor=iI,D.forEach=pw,D.forEachRight=hw,D.forIn=DL,D.forInRight=IL,D.forOwn=RL,D.forOwnRight=NL,D.get=Vh,D.gt=tL,D.gte=rL,D.has=FL,D.hasIn=Gh,D.head=uw,D.identity=Qi,D.includes=EM,D.indexOf=yA,D.inRange=nD,D.invoke=$L,D.isArguments=Kl,D.isArray=Nt,D.isArrayBuffer=nL,D.isArrayLike=Yi,D.isArrayLikeObject=gn,D.isBoolean=iL,D.isBuffer=tl,D.isDate=aL,D.isElement=oL,D.isEmpty=sL,D.isEqual=lL,D.isEqualWith=uL,D.isError=zh,D.isFinite=cL,D.isFunction=ss,D.isInteger=Cw,D.isLength=yd,D.isMap=Ew,D.isMatch=fL,D.isMatchWith=dL,D.isNaN=pL,D.isNative=hL,D.isNil=mL,D.isNull=vL,D.isNumber=Tw,D.isObject=tn,D.isObjectLike=fn,D.isPlainObject=uf,D.isRegExp=Wh,D.isSafeInteger=gL,D.isSet=_w,D.isString=bd,D.isSymbol=ca,D.isTypedArray=Ku,D.isUndefined=yL,D.isWeakMap=bL,D.isWeakSet=wL,D.join=EA,D.kebabCase=uD,D.last=Ia,D.lastIndexOf=TA,D.lowerCase=cD,D.lowerFirst=fD,D.lt=xL,D.lte=CL,D.max=aI,D.maxBy=oI,D.mean=sI,D.meanBy=lI,D.min=uI,D.minBy=cI,D.stubArray=Zh,D.stubFalse=ev,D.stubObject=JD,D.stubString=YD,D.stubTrue=XD,D.multiply=fI,D.nth=_A,D.noConflict=$D,D.noop=Qh,D.now=vd,D.pad=dD,D.padEnd=pD,D.padStart=hD,D.parseInt=vD,D.random=iD,D.reduce=OM,D.reduceRight=AM,D.repeat=mD,D.replace=gD,D.result=KL,D.round=dI,D.runInContext=Z,D.sample=LM,D.size=RM,D.snakeCase=yD,D.some=NM,D.sortedIndex=DA,D.sortedIndexBy=IA,D.sortedIndexOf=RA,D.sortedLastIndex=NA,D.sortedLastIndexBy=PA,D.sortedLastIndexOf=BA,D.startCase=wD,D.startsWith=xD,D.subtract=pI,D.sum=hI,D.sumBy=vI,D.template=CD,D.times=QD,D.toFinite=ls,D.toInteger=jt,D.toLength=kw,D.toLower=ED,D.toNumber=Ra,D.toSafeInteger=EL,D.toString=Lr,D.toUpper=TD,D.trim=_D,D.trimEnd=SD,D.trimStart=kD,D.truncate=OD,D.unescape=AD,D.uniqueId=eI,D.upperCase=MD,D.upperFirst=Kh,D.each=pw,D.eachRight=hw,D.first=uw,Xh(D,function(){var l={};return So(D,function(c,p){y.call(D.prototype,p)||(l[p]=c)}),l}(),{chain:!1}),D.VERSION=n,jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){D[l].placeholder=D}),jn(["drop","take"],function(l,c){St.prototype[l]=function(p){p=p===r?1:kr(jt(p),0);var E=this.__filtered__&&!c?new St(this):this.clone();return E.__filtered__?E.__takeCount__=Br(p,E.__takeCount__):E.__views__.push({size:Br(p,$e),type:l+(E.__dir__<0?"Right":"")}),E},St.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),jn(["filter","map","takeWhile"],function(l,c){var p=c+1,E=p==Te||p==He;St.prototype[l]=function(O){var I=this.clone();return I.__iteratees__.push({iteratee:Ct(O,3),type:p}),I.__filtered__=I.__filtered__||E,I}}),jn(["head","last"],function(l,c){var p="take"+(c?"Right":"");St.prototype[l]=function(){return this[p](1).value()[0]}}),jn(["initial","tail"],function(l,c){var p="drop"+(c?"":"Right");St.prototype[l]=function(){return this.__filtered__?new St(this):this[p](1)}}),St.prototype.compact=function(){return this.filter(Qi)},St.prototype.find=function(l){return this.filter(l).head()},St.prototype.findLast=function(l){return this.reverse().find(l)},St.prototype.invokeMap=Jt(function(l,c){return typeof l=="function"?new St(this):this.map(function(p){return rf(p,l,c)})}),St.prototype.reject=function(l){return this.filter(gd(Ct(l)))},St.prototype.slice=function(l,c){l=jt(l);var p=this;return p.__filtered__&&(l>0||c<0)?new St(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),c!==r&&(c=jt(c),p=c<0?p.dropRight(-c):p.take(c-l)),p)},St.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},St.prototype.toArray=function(){return this.take($e)},So(St.prototype,function(l,c){var p=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),O=D[E?"take"+(c=="last"?"Right":""):c],I=E||/^find/.test(c);O&&(D.prototype[c]=function(){var q=this.__wrapped__,V=E?[1]:arguments,re=q instanceof St,Se=V[0],ke=re||Nt(q),Ie=function(nr){var fr=O.a
27pply(D,ji([nr],V));return E&&Qe?fr[0]:fr};ke&&p&&typeof Se=="function"&&Se.length!=1&&(re=ke=!1);var Qe=this.__chain__,dt=!!this.__actions__.length,Et=I&&!Qe,Kt=re&&!dt;if(!I&&ke){q=Kt?q:new St(this);var Tt=l.apply(q,V);return Tt.__actions__.push({func:pd,args:[Ie],thisArg:r}),new un(Tt,Qe)}return Et&&Kt?l.apply(this,V):(Tt=this.thru(Ie),Et?E?Tt.value()[0]:Tt.value():Tt)})}),jn(["pop","push","shift","sort","splice","unshift"],function(l){var c=K[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);D.prototype[l]=function(){var O=arguments;if(E&&!this.__chain__){var I=this.value();return c.apply(Nt(I)?I:[],O)}return this[p](function(q){return c.apply(Nt(q)?q:[],O)})}}),So(St.prototype,function(l,c){var p=D[c];if(p){var E=p.name+"";y.call(Yn,E)||(Yn[E]=[]),Yn[E].push({name:c,func:p})}}),Yn[od(r,M).name]=[{name:"wrapper",func:r}],St.prototype.clone=ro,St.prototype.reverse=Vs,St.prototype.value=rs,D.prototype.at=oM,D.prototype.chain=sM,D.prototype.commit=lM,D.prototype.next=uM,D.prototype.plant=fM,D.prototype.reverse=dM,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=pM,D.prototype.first=D.prototype.head,vr&&(D.prototype[vr]=cM),D},Aa=Uu();Sa?((Sa.exports=Aa)._=Aa,aa._=Aa):an._=Aa}).call(ac)})(Xd,Xd.exports);var yI=Xd.exports;const bI=Og(yI);function Qn(t){this.content=t}Qn.prototype={constructor:Qn,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,r){var n=r&&r!=t?this.remove(r):this,i=n.find(t),a=n.content.slice();return i==-1?a.push(r||t,e):(a[i+1]=e,r&&(a[i]=r)),new Qn(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var r=this.content.slice();return r.splice(e,2),new Qn(r)},addToStart:function(t,e){return new Qn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var r=this.remove(t).content.slice();return r.push(t,e),new Qn(r)},addBefore:function(t,e,r){var n=this.remove(e),i=n.content.slice(),a=n.find(t);return i.splice(a==-1?i.length:a,0,e,r),new Qn(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Qn.from(t),t.size?new Qn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Qn.from(t),t.size?new Qn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Qn.from(t);for(var r=0;r<t.content.length;r+=2)e=e.remove(t.content[r]);return e},get size(){return this.content.length>>1}};Qn.from=function(t){if(t instanceof Qn)return t;var e=[];if(t)for(var r in t)e.push(r,t[r]);return new Qn(e)};function pT(t,e,r){for(var n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:r;var i=t.child(n),a=e.child(n);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(var o=0;i.text[o]==a.text[o];o++)r++;return r}if(i.content.size||a.content.size){var s=pT(i.content,a.content,r+1);if(s!=null)return s}r+=i.nodeSize}}function hT(t,e,r,n){for(var i=t.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:r,b:n};var o=t.child(--i),s=e.child(--a),u=o.nodeSize;if(o==s){r-=u,n-=u;continue}if(!o.sameMarkup(s))return{a:r,b:n};if(o.isText&&o.text!=s.text){for(var f=0,d=Math.min(o.text.length,s.text.length);f<d&&o.text[o.text.length-f-1]==s.text[s.text.length-f-1];)f++,r--,n--;return{a:r,b:n}}if(o.content.size||s.content.size){var v=hT(o.content,s.content,r-1,n-1);if(v)return v}r-=u,n-=u}}var Ee=function(e,r){if(this.content=e,this.size=r||0,r==null)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},Mp={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};Ee.prototype.nodesBetween=function(e,r,n,i,a){i===void 0&&(i=0);for(var o=0,s=0;s<r;o++){var u=this.content[o],f=s+u.nodeSize;if(f>e&&n(u,i+s,a,o)!==!1&&u.content.size){var d=s+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,r-d),n,i+d)}s=f}};Ee.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)};Ee.prototype.textBetween=function(e,r,n,i){var a="",o=!0;return this.nodesBetween(e,r,function(s,u){s.isText?(a+=s.text.slice(Math.max(e,u)-u,r-u),o=!n):s.isLeaf&&i?(a+=i,o=!n):!o&&s.isBlock&&(a+=n,o=!0)},0),a};Ee.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var r=this.lastChild,n=e.firstChild,i=this.content.slice(),a=0;for(r.isText&&r.sameMarkup(n)&&(i[i.length-1]=r.withText(r.text+n.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new Ee(i,this.size+e.size)};Ee.prototype.cut=function(e,r){if(r==null&&(r=this.size),e==0&&r==this.size)return this;var n=[],i=0;if(r>e)for(var a=0,o=0;o<r;a++){var s=this.content[a],u=o+s.nodeSize;u>e&&((o<e||u>r)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,r-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,r-o-1))),n.push(s),i+=s.nodeSize),o=u}return new Ee(n,i)};Ee.prototype.cutByIndex=function(e,r){return e==r?Ee.empty:e==0&&r==this.content.length?this:new Ee(this.content.slice(e,r))};Ee.prototype.replaceChild=function(e,r){var n=this.content[e];if(n==r)return this;var i=this.content.slice(),a=this.size+r.nodeSize-n.nodeSize;return i[e]=r,new Ee(i,a)};Ee.prototype.addToStart=function(e){return new Ee([e].concat(this.content),this.size+e.nodeSize)};Ee.prototype.addToEnd=function(e){return new Ee(this.content.concat(e),this.size+e.nodeSize)};Ee.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var r=0;r<this.content.length;r++)if(!this.content[r].eq(e.content[r]))return!1;return!0};Mp.firstChild.get=function(){return this.content.length?this.content[0]:null};Mp.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null};Mp.childCount.get=function(){return this.content.length};Ee.prototype.child=function(e){var r=this.content[e];if(!r)throw new RangeError("Index "+e+" out of range for "+this);return r};Ee.prototype.maybeChild=function(e){return this.content[e]};Ee.prototype.forEach=function(e){for(var r=0,n=0;r<this.content.length;r++){var i=this.content[r];e(i,n,r),n+=i.nodeSize}};Ee.prototype.findDiffStart=function(e,r){return r===void 0&&(r=0),pT(this,e,r)};Ee.prototype.findDiffEnd=function(e,r,n){return r===void 0&&(r=this.size),n===void 0&&(n=e.size),hT(this,e,r,n)};Ee.prototype.findIndex=function(e,r){if(r===void 0&&(r=-1),e==0)return xd(0,e);if(e==this.size)return xd(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,i=0;;n++){var a=this.child(n),o=i+a.nodeSize;if(o>=e)return o==e||r>0?xd(n+1,o):xd(n,i);i=o}};Ee.prototype.toString=function(){return"<"+this.toStringInner()+">"};Ee.prototype.toStringInner=function(){return this.content.join(", ")};Ee.prototype.toJSON=function(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null};Ee.fromJSON=function(e,r){if(!r)return Ee.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ee(r.map(e.nodeFromJSON))};Ee.fromArray=function(e){if(!e.length)return Ee.empty;for(var r,n=0,i=0;i<e.length;i++){var a=e[i];n+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(r||(r=e.slice(0,i)),r[r.length-1]=a.withText(r[r.length-1].text+a.text)):r&&r.push(a)}return new Ee(r||e,n)};Ee.from=function(e){if(!e)return Ee.empty;if(e instanceof Ee)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ee([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))};
27Object.defineProperties(Ee.prototype,Mp);var tv={index:0,offset:0};function xd(t,e){return tv.index=t,tv.offset=e,tv}Ee.empty=new Ee([],0);function Qd(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;var r=Array.isArray(t);if(Array.isArray(e)!=r)return!1;if(r){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!Qd(t[n],e[n]))return!1}else{for(var i in t)if(!(i in e)||!Qd(t[i],e[i]))return!1;for(var a in e)if(!(a in t))return!1}return!0}var Yt=function(e,r){this.type=e,this.attrs=r};Yt.prototype.addToSet=function(e){for(var r,n=!1,i=0;i<e.length;i++){var a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))r||(r=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!n&&a.type.rank>this.type.rank&&(r||(r=e.slice(0,i)),r.push(this),n=!0),r&&r.push(a)}}return r||(r=e.slice()),n||r.push(this),r};Yt.prototype.removeFromSet=function(e){for(var r=0;r<e.length;r++)if(this.eq(e[r]))return e.slice(0,r).concat(e.slice(r+1));return e};Yt.prototype.isInSet=function(e){for(var r=0;r<e.length;r++)if(this.eq(e[r]))return!0;return!1};Yt.prototype.eq=function(e){return this==e||this.type==e.type&&Qd(this.attrs,e.attrs)};Yt.prototype.toJSON=function(){var e={type:this.type.name};for(var r in this.attrs){e.attrs=this.attrs;break}return e};Yt.fromJSON=function(e,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[r.type];if(!n)throw new RangeError("There is no mark type "+r.type+" in this schema");return n.create(r.attrs)};Yt.sameSet=function(e,r){if(e==r)return!0;if(e.length!=r.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(r[n]))return!1;return!0};Yt.setFrom=function(e){if(!e||e.length==0)return Yt.none;if(e instanceof Yt)return[e];var r=e.slice();return r.sort(function(n,i){return n.type.rank-i.type.rank}),r};Yt.none=[];function Ho(t){var e=Error.call(this,t);return e.__proto__=Ho.prototype,e}Ho.prototype=Object.create(Error.prototype);Ho.prototype.constructor=Ho;Ho.prototype.name="ReplaceError";var Ze=function(e,r,n){this.content=e,this.openStart=r,this.openEnd=n},vT={size:{configurable:!0}};vT.size.get=function(){return this.content.size-this.openStart-this.openEnd};Ze.prototype.insertAt=function(e,r){var n=gT(this.content,e+this.openStart,r,null);return n&&new Ze(n,this.openStart,this.openEnd)};Ze.prototype.removeBetween=function(e,r){return new Ze(mT(this.content,e+this.openStart,r+this.openStart),this.openStart,this.openEnd)};Ze.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd};Ze.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"};Ze.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e};Ze.fromJSON=function(e,r){if(!r)return Ze.empty;var n=r.openStart||0,i=r.openEnd||0;if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ze(Ee.fromJSON(e,r.content),n,i)};Ze.maxOpen=function(e,r){r===void 0&&(r=!0);for(var n=0,i=0,a=e.firstChild;a&&!a.isLeaf&&(r||!a.type.spec.isolating);a=a.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(r||!o.type.spec.isolating);o=o.lastChild)i++;return new Ze(e,n,i)};Object.defineProperties(Ze.prototype,vT);function mT(t,e,r){var n=t.findIndex(e),i=n.index,a=n.offset,o=t.maybeChild(i),s=t.findIndex(r),u=s.index,f=s.offset;if(a==e||o.isText){if(f!=r&&!t.child(u).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(r))}if(i!=u)throw new RangeError("Removing non-flat range");return t.replaceChild(i,o.copy(mT(o.content,e-a-1,r-a-1)))}function gT(t,e,r,n){var i=t.findIndex(e),a=i.index,o=i.offset,s=t.maybeChild(a);if(o==e||s.isText)return n&&!n.canReplace(a,a,r)?null:t.cut(0,e).append(r).append(t.cut(e));var u=gT(s.content,e-o-1,r);return u&&t.replaceChild(a,s.copy(u))}Ze.empty=new Ze(Ee.empty,0,0);function wI(t,e,r){if(r.openStart>t.depth)throw new Ho("Inserted content deeper than insertion position");if(t.depth-r.openStart!=e.depth-r.openEnd)throw new Ho("Inconsistent open depths");return yT(t,e,r,0)}function yT(t,e,r,n){var i=t.index(n),a=t.node(n);if(i==e.index(n)&&n<t.depth-r.openStart){var o=yT(t,e,r,n+1);return a.copy(a.content.replaceChild(i,o))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&t.depth==n&&e.depth==n){var s=t.parent,u=s.content;return uu(s,u.cut(0,t.parentOffset).append(r.content).append(u.cut(e.parentOffset)))}else{var f=xI(r,t),d=f.start,v=f.end;return uu(a,wT(t,d,v,e,n))}else return uu(a,Zd(t,e,n))}function bT(t,e){if(!e.type.compatibleContent(t.type))throw new Ho("Cannot join "+e.type.n
27ame+" onto "+t.type.name)}function _m(t,e,r){var n=t.node(r);return bT(n,e.node(r)),n}function lu(t,e){var r=e.length-1;r>=0&&t.isText&&t.sameMarkup(e[r])?e[r]=t.withText(e[r].text+t.text):e.push(t)}function wf(t,e,r,n){var i=(e||t).node(r),a=0,o=e?e.index(r):i.childCount;t&&(a=t.index(r),t.depth>r?a++:t.textOffset&&(lu(t.nodeAfter,n),a++));for(var s=a;s<o;s++)lu(i.child(s),n);e&&e.depth==r&&e.textOffset&&lu(e.nodeBefore,n)}function uu(t,e){if(!t.type.validContent(e))throw new Ho("Invalid content for node "+t.type.name);return t.copy(e)}function wT(t,e,r,n,i){var a=t.depth>i&&_m(t,e,i+1),o=n.depth>i&&_m(r,n,i+1),s=[];return wf(null,t,i,s),a&&o&&e.index(i)==r.index(i)?(bT(a,o),lu(uu(a,wT(t,e,r,n,i+1)),s)):(a&&lu(uu(a,Zd(t,e,i+1)),s),wf(e,r,i,s),o&&lu(uu(o,Zd(r,n,i+1)),s)),wf(n,null,i,s),new Ee(s)}function Zd(t,e,r){var n=[];if(wf(null,t,r,n),t.depth>r){var i=_m(t,e,r+1);lu(uu(i,Zd(t,e,r+1)),n)}return wf(e,null,r,n),new Ee(n)}function xI(t,e){for(var r=e.depth-t.openStart,n=e.node(r),i=n.copy(t.content),a=r-1;a>=0;a--)i=e.node(a).copy(Ee.from(i));return{start:i.resolveNoCache(t.openStart+r),end:i.resolveNoCache(i.content.size-t.openEnd-r)}}var Qr=function(e,r,n){this.pos=e,this.path=r,this.depth=r.length/3-1,this.parentOffset=n},Fc={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};Qr.prototype.resolveDepth=function(e){return e==null?this.depth:e<0?this.depth+e:e};Fc.parent.get=function(){return this.node(this.depth)};Fc.doc.get=function(){return this.node(0)};Qr.prototype.node=function(e){return this.path[this.resolveDepth(e)*3]};Qr.prototype.index=function(e){return this.path[this.resolveDepth(e)*3+1]};Qr.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)};Qr.prototype.start=function(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1};Qr.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size};Qr.prototype.before=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]};Qr.prototype.after=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize};Fc.textOffset.get=function(){return this.pos-this.path[this.path.length-1]};Fc.nodeAfter.get=function(){var t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;var r=this.pos-this.path[this.path.length-1],n=t.child(e);return r?t.child(e).cut(r):n};Fc.nodeBefore.get=function(){var t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):t==0?null:this.parent.child(t-1)};Qr.prototype.posAtIndex=function(e,r){r=this.resolveDepth(r);for(var n=this.path[r*3],i=r==0?0:this.path[r*3-1]+1,a=0;a<e;a++)i+=n.child(a).nodeSize;return i};Qr.prototype.marks=function(){var e=this.parent,r=this.index();if(e.content.size==0)return Yt.none;if(this.textOffset)return e.child(r).marks;var n=e.maybeChild(r-1),i=e.maybeChild(r);if(!n){var a=n;n=i,i=a}for(var o=n.marks,s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o};Qr.prototype.marksAcross=function(e){var r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;for(var n=r.marks,i=e.parent.maybeChild(e.index()),a=0;a<n.length;a++)n[a].type.spec.inclusive===!1&&(!i||!n[a].isInSet(i.marks))&&(n=n[a--].removeFromSet(n));return n};Qr.prototype.sharedDepth=function(e){for(var r=this.depth;r>0;r--)if(this.start(r)<=e&&this.end(r)>=e)return r;return 0};Qr.prototype.blockRange=function(e,r){if(e===void 0&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!r||r(this.node(n))))return new Mf(this,e,n)};Qr.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset};Qr.prototype.max=function(e){return e.pos>this.pos?e:this};Qr.prototype.min=function(e){return e.pos<this.pos?e:this};Qr.prototype.toString=function(){for(var e="",r=1;r<=this.depth;r++)e+=(e?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return e+":"+this.parentOffset};Qr.resolve=function(e,r){if(!(r>=0&&r<=e.content.size))throw new RangeError("Position "+r+" out of range");for(var n=[],i=0,a=r,o=e;;){var s=o.content.findIndex(a),u=s.index,f=s.offset,d=a-f;if(n.push(o,u,i+f),!d||(o=o.child(u),o.isText))break;a=d-1,i+=f+1}return new Qr(r,n,a)};
27Qr.resolveCached=function(e,r){for(var n=0;n<rv.length;n++){var i=rv[n];if(i.pos==r&&i.doc==e)return i}var a=rv[nv]=Qr.resolve(e,r);return nv=(nv+1)%CI,a};Object.defineProperties(Qr.prototype,Fc);var rv=[],nv=0,CI=12,Mf=function(e,r,n){this.$from=e,this.$to=r,this.depth=n},Hc={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};Hc.start.get=function(){return this.$from.before(this.depth+1)};Hc.end.get=function(){return this.$to.after(this.depth+1)};Hc.parent.get=function(){return this.$from.node(this.depth)};Hc.startIndex.get=function(){return this.$from.index(this.depth)};Hc.endIndex.get=function(){return this.$to.indexAfter(this.depth)};Object.defineProperties(Mf.prototype,Hc);var EI=Object.create(null),sr=function(e,r,n,i){this.type=e,this.attrs=r,this.content=n||Ee.empty,this.marks=i||Yt.none},ya={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};ya.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size};ya.childCount.get=function(){return this.content.childCount};sr.prototype.child=function(e){return this.content.child(e)};sr.prototype.maybeChild=function(e){return this.content.maybeChild(e)};sr.prototype.forEach=function(e){this.content.forEach(e)};sr.prototype.nodesBetween=function(e,r,n,i){i===void 0&&(i=0),this.content.nodesBetween(e,r,n,i,this)};sr.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)};ya.textContent.get=function(){return this.textBetween(0,this.content.size,"")};sr.prototype.textBetween=function(e,r,n,i){return this.content.textBetween(e,r,n,i)};ya.firstChild.get=function(){return this.content.firstChild};ya.lastChild.get=function(){return this.content.lastChild};sr.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)};sr.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)};sr.prototype.hasMarkup=function(e,r,n){return this.type==e&&Qd(this.attrs,r||e.defaultAttrs||EI)&&Yt.sameSet(this.marks,n||Yt.none)};sr.prototype.copy=function(e){return e===void 0&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)};sr.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)};sr.prototype.cut=function(e,r){return e==0&&r==this.content.size?this:this.copy(this.content.cut(e,r))};sr.prototype.slice=function(e,r,n){if(r===void 0&&(r=this.content.size),n===void 0&&(n=!1),e==r)return Ze.empty;var i=this.resolve(e),a=this.resolve(r),o=n?0:i.sharedDepth(r),s=i.start(o),u=i.node(o),f=u.content.cut(i.pos-s,a.pos-s);return new Ze(f,i.depth-o,a.depth-o)};sr.prototype.replace=function(e,r,n){return wI(this.resolve(e),this.resolve(r),n)};sr.prototype.nodeAt=function(e){for(var r=this;;){var n=r.content.findIndex(e),i=n.index,a=n.offset;if(r=r.maybeChild(i),!r)return null;if(a==e||r.isText)return r;e-=a+1}};sr.prototype.childAfter=function(e){var r=this.content.findIndex(e),n=r.index,i=r.offset;return{node:this.content.maybeChild(n),index:n,offset:i}};sr.prototype.childBefore=function(e){if(e==0)return{node:null,index:0,offset:0};var r=this.content.findIndex(e),n=r.index,i=r.offset;if(i<e)return{node:this.content.child(n),index:n,offset:i};var a=this.content.child(n-1);return{node:a,index:n-1,offset:i-a.nodeSize}};sr.prototype.resolve=function(e){return Qr.resolveCached(this,e)};sr.prototype.resolveNoCache=function(e){return Qr.resolve(this,e)};sr.prototype.rangeHasMark=function(e,r,n){var i=!1;return r>e&&this.nodesBetween(e,r,function(a){return n.isInSet(a.marks)&&(i=!0),!i}),i};ya.isBlock.get=function(){return this.type.isBlock};ya.isTextblock.get=function(){return this.type.isTextblock};ya.inlineContent.get=function(){return this.type.inlineContent};ya.isInline.get=function(){return this.type.isInline};ya.isText.get=function(){return this.type.isText};ya.isLeaf.get=function(){return this.type.isLeaf};ya.isAtom.get=function(){return this.type.isAtom};
27sr.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xT(this.marks,e)};sr.prototype.contentMatchAt=function(e){var r=this.type.contentMatch.matchFragment(this.content,0,e);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r};sr.prototype.canReplace=function(e,r,n,i,a){n===void 0&&(n=Ee.empty),i===void 0&&(i=0),a===void 0&&(a=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,i,a),s=o&&o.matchFragment(this.content,r);if(!s||!s.validEnd)return!1;for(var u=i;u<a;u++)if(!this.type.allowsMarks(n.child(u).marks))return!1;return!0};sr.prototype.canReplaceWith=function(e,r,n,i){if(i&&!this.type.allowsMarks(i))return!1;var a=this.contentMatchAt(e).matchType(n),o=a&&a.matchFragment(this.content,r);return o?o.validEnd:!1};sr.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)};sr.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=Yt.none,r=0;r<this.marks.length;r++)e=this.marks[r].addToSet(e);if(!Yt.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map(function(n){return n.type.name}));this.content.forEach(function(n){return n.check()})};sr.prototype.toJSON=function(){var e={type:this.type.name};for(var r in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(function(n){return n.toJSON()})),e};sr.fromJSON=function(e,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(e.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(r.text,n)}var i=Ee.fromJSON(e,r.content);return e.nodeType(r.type).create(r.attrs,i,n)};Object.defineProperties(sr.prototype,ya);var TI=function(t){function e(n,i,a,o){if(t.call(this,n,i,null,o),!a)throw new RangeError("Empty text nodes are not allowed");this.text=a}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={textContent:{configurable:!0},nodeSize:{configurable:!0}};return e.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xT(this.marks,JSON.stringify(this.text))},r.textContent.get=function(){return this.text},e.prototype.textBetween=function(i,a){return this.text.slice(i,a)},r.nodeSize.get=function(){return this.text.length},e.prototype.mark=function(i){return i==this.marks?this:new e(this.type,this.attrs,this.text,i)},e.prototype.withText=function(i){return i==this.text?this:new e(this.type,this.attrs,i,this.marks)},e.prototype.cut=function(i,a){return i===void 0&&(i=0),a===void 0&&(a=this.text.length),i==0&&a==this.text.length?this:this.withText(this.text.slice(i,a))},e.prototype.eq=function(i){return this.sameMarkup(i)&&this.text==i.text},e.prototype.toJSON=function(){var i=t.prototype.toJSON.call(this);return i.text=this.text,i},Object.defineProperties(e.prototype,r),e}(sr);function xT(t,e){for(var r=t.length-1;r>=0;r--)e=t[r].type.name+"("+e+")";return e}var yi=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},Lp={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};yi.parse=function(e,r){var n=new Dp(e,r);if(n.next==null)return yi.empty;var i=ET(n);n.next&&n.err("Unexpected trailing text");var a=LI(MI(i));return DI(a,n),a};yi.prototype.matchType=function(e){for(var r=0;r<this.next.length;r+=2)if(this.next[r]==e)return this.next[r+1];return null};yi.prototype.matchFragment=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=e.childCount);for(var i=this,a=r;i&&a<n;a++)i=i.matchType(e.child(a).type);return i};Lp.inlineContent.get=function(){var t=this.next[0];return t?t.isInline:!1};Lp.defaultType.get=function(){for(var t=0;t<this.next.length;t+=2){var e=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}};yi.prototype.compatible=function(e){for(var r=0;r<this.next.length;r+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[r]==e.next[n])return!0;return!1};yi.prototype.fillBefore=function(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=0);var i=[this];function a(o,s){var u=o.matchFragment(e,n);if(u&&(!r||u.validEnd))return Ee.from(s.map(function(b){return b.createAndFill()}));for(var f=0;f<o.next.length;f+=2){var d=o.next[f],v=o.next[f+1];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(v)==-1){i.push(v);var m=a(v,s.concat(d));if(m)return m}}}return a(this,[])};
27yi.prototype.findWrapping=function(e){for(var r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n};yi.prototype.computeWrapping=function(e){for(var r=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var i=n.shift(),a=i.match;if(a.matchType(e)){for(var o=[],s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(var u=0;u<a.next.length;u+=2){var f=a.next[u];!f.isLeaf&&!f.hasRequiredAttrs()&&!(f.name in r)&&(!i.type||a.next[u+1].validEnd)&&(n.push({match:f.contentMatch,type:f,via:i}),r[f.name]=!0)}}};Lp.edgeCount.get=function(){return this.next.length>>1};yi.prototype.edge=function(e){var r=e<<1;if(r>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[r],next:this.next[r+1]}};yi.prototype.toString=function(){var e=[];function r(n){e.push(n);for(var i=1;i<n.next.length;i+=2)e.indexOf(n.next[i])==-1&&r(n.next[i])}return r(this),e.map(function(n,i){for(var a=i+(n.validEnd?"*":" ")+" ",o=0;o<n.next.length;o+=2)a+=(o?", ":"")+n.next[o].name+"->"+e.indexOf(n.next[o+1]);return a}).join(`
28`)};Object.defineProperties(yi.prototype,Lp);yi.empty=new yi(!0);var Dp=function(e,r){this.string=e,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()},CT={next:{configurable:!0}};CT.next.get=function(){return this.tokens[this.pos]};Dp.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)};Dp.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")};Object.defineProperties(Dp.prototype,CT);function ET(t){var e=[];do e.push(_I(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function _I(t){var e=[];do e.push(SI(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function SI(t){for(var e=AI(t);;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=kI(t,e);else break;return e}function qw(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");var e=Number(t.next);return t.pos++,e}function kI(t,e){var r=qw(t),n=r;return t.eat(",")&&(t.next!="}"?n=qw(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}function OI(t,e){var r=t.nodeTypes,n=r[e];if(n)return[n];var i=[];for(var a in r){var o=r[a];o.groups.indexOf(e)>-1&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function AI(t){if(t.eat("(")){var e=ET(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{var r=OI(t,t.next).map(function(n){return t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}});return t.pos++,r.length==1?r[0]:{type:"choice",exprs:r}}}function MI(t){var e=[[]];return i(a(t,0),r()),e;function r(){return e.push([])-1}function n(o,s,u){var f={term:u,to:s};return e[o].push(f),f}function i(o,s){o.forEach(function(u){return u.to=s})}function a(o,s){if(o.type=="choice")return o.exprs.reduce(function(M,L){return M.concat(a(L,s))},[]);if(o.type=="seq")for(var u=0;;u++){var f=a(o.exprs[u],s);if(u==o.exprs.length-1)return f;i(f,s=r())}else if(o.type=="star"){var d=r();return n(s,d),i(a(o.expr,d),d),[n(d)]}else if(o.type=="plus"){var v=r();return i(a(o.expr,s),v),i(a(o.expr,v),v),[n(v)]}else{if(o.type=="opt")return[n(s)].concat(a(o.expr,s));if(o.type=="range"){for(var m=s,b=0;b<o.min;b++){var x=r();i(a(o.expr,m),x),m=x}if(o.max==-1)i(a(o.expr,m),m);else for(var T=o.min;T<o.max;T++){var S=r();n(m,S),i(a(o.expr,m),S),m=S}return[n(m)]}else if(o.type=="name")return[n(s,null,o.value)]}}}function TT(t,e){return e-t}function $w(t,e){var r=[];return n(e),r.sort(TT);function n(i){var a=t[i];if(a.length==1&&!a[0].term)return n(a[0].to);r.push(i);for(var o=0;o<a.length;o++){var s=a[o],u=s.term,f=s.to;!u&&r.indexOf(f)==-1&&n(f)}}}function LI(t){var e=Object.create(null);return r($w(t,0));function r(n){var i=[];
28n.forEach(function(u){t[u].forEach(function(f){var d=f.term,v=f.to;if(d){var m=i.indexOf(d),b=m>-1&&i[m+1];$w(t,v).forEach(function(x){b||i.push(d,b=[]),b.indexOf(x)==-1&&b.push(x)})}})});for(var a=e[n.join(",")]=new yi(n.indexOf(t.length-1)>-1),o=0;o<i.length;o+=2){var s=i[o+1].sort(TT);a.next.push(i[o],e[s.join(",")]||r(s))}return a}}function DI(t,e){for(var r=0,n=[t];r<n.length;r++){for(var i=n[r],a=!i.validEnd,o=[],s=0;s<i.next.length;s+=2){var u=i.next[s],f=i.next[s+1];o.push(u.name),a&&!(u.isText||u.hasRequiredAttrs())&&(a=!1),n.indexOf(f)==-1&&n.push(f)}a&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function _T(t){var e=Object.create(null);for(var r in t){var n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function ST(t,e){var r=Object.create(null);for(var n in t){var i=e&&e[n];if(i===void 0){var a=t[n];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function kT(t){var e=Object.create(null);if(t)for(var r in t)e[r]=new OT(t[r]);return e}var Pi=function(e,r,n){this.name=e,this.schema=r,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=kT(n.attrs),this.defaultAttrs=_T(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"},Uf={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};Uf.isInline.get=function(){return!this.isBlock};Uf.isTextblock.get=function(){return this.isBlock&&this.inlineContent};Uf.isLeaf.get=function(){return this.contentMatch==yi.empty};Uf.isAtom.get=function(){return this.isLeaf||this.spec.atom};Pi.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1};Pi.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)};Pi.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:ST(this.attrs,e)};Pi.prototype.create=function(e,r,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new sr(this,this.computeAttrs(e),Ee.from(r),Yt.setFrom(n))};Pi.prototype.createChecked=function(e,r,n){if(r=Ee.from(r),!this.validContent(r))throw new RangeError("Invalid content for node "+this.name);return new sr(this,this.computeAttrs(e),r,Yt.setFrom(n))};Pi.prototype.createAndFill=function(e,r,n){if(e=this.computeAttrs(e),r=Ee.from(r),r.size){var i=this.contentMatch.fillBefore(r);if(!i)return null;r=i.append(r)}var a=this.contentMatch.matchFragment(r).fillBefore(Ee.empty,!0);return a?new sr(this,e,r.append(a),Yt.setFrom(n)):null};Pi.prototype.validContent=function(e){var r=this.contentMatch.matchFragment(e);if(!r||!r.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0};Pi.prototype.allowsMarkType=function(e){return this.markSet==null||this.markSet.indexOf(e)>-1};Pi.prototype.allowsMarks=function(e){if(this.markSet==null)return!0;for(var r=0;r<e.length;r++)if(!this.allowsMarkType(e[r].type))return!1;return!0};Pi.prototype.allowedMarks=function(e){if(this.markSet==null)return e;for(var r,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?r&&r.push(e[n]):r||(r=e.slice(0,n));return r?r.length?r:Yt.empty:e};Pi.compile=function(e,r){var n=Object.create(null);e.forEach(function(o,s){return n[o]=new Pi(o,r,s)});var i=r.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var a in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n};Object.defineProperties(Pi.prototype,Uf);var OT=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},AT={isRequired:{configurable:!0}};AT.isRequired.get=function(){return!this.hasDefault};Object.defineProperties(OT.prototype,AT);var cl=function(e,r,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=kT(i.attrs),this.rank=r,this.excluded=null;var a=_T(this.attrs);this.instance=a&&new Yt(this,a)};cl.prototype.create=function(e){return!e&&this.instance?this.instance:new Yt(this,ST(this.attrs,e))};cl.compile=function(e,r){var n=Object.create(null),i=0;return e.forEach(function(a,o){return n[a]=new cl(a,i++,r,o)}),n};cl.prototype.removeFromSet=function(e){for(var r=0;r<e.length;r++)e[r].type==this&&(e=e.slice(0,r).concat(e.slice(r+1)),r--);return e};cl.prototype.isInSet=function(e){for(var r=0;r<e.length;r++)if(e[r].type==this)return e[r]};cl.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var vl=function(e){this.spec={};for(var r in e)this.spec[r]=e[r];this.spec.nodes=Qn.from(e.nodes),this.spec.marks=Qn.from(e.marks),this.nodes=Pi.compile(this.spec.nodes,this),this.marks=cl.compile(this.spec.marks,this);var n=Object.create(null);for(var i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");var a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;a.contentMatch=n[o]||(n[o]=yi.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet=s=="_"?null:s?Uw(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(var u in this.marks){var f=this.marks[u],d=f.spec.excludes;f.excluded=d==null?[f]:d==""?[]:Uw(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};vl.prototype.node=function(e,r,n,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Pi){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(r,n,i)};vl.prototype.text=function(e,r){var n=this.nodes.text;return new TI(n,n.defaultAttrs,e,Yt.setFrom(r))};vl.prototype.mark=function(e,r){return typeof e=="string"&&(e=this.marks[e]),e.create(r)};vl.prototype.nodeFromJSON=function(e){return sr.fromJSON(this,e)};vl.prototype.markFromJSON=function(e){return Yt.fromJSON(this,e)};vl.prototype.nodeType=function(e){var r=this.nodes[e];if(!r)throw new RangeError("Unknown node type: "+e);return r};function Uw(t,e){for(var r=[],n=0;n<e.length;n++){var i=e[n],a=t.marks[i],o=a;if(a)r.push(a);else for(var s in t.marks){var u=t.marks[s];(i=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return r}var Pa=function(e,r){var n=this;this.schema=e,this.rules=r,this.tags=[],this.styles=[],r.forEach(function(i){i.tag?n.tags.push(i):i.style&&n.styles.push(i)}),this.normalizeLists=!this.tags.some(function(i){if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;
28var a=e.nodes[i.node];return a.contentMatch.matchType(a)})};Pa.prototype.parse=function(e,r){r===void 0&&(r={});var n=new Wr(this,r,!1);return n.addAll(e,null,r.from,r.to),n.finish()};Pa.prototype.parseSlice=function(e,r){r===void 0&&(r={});var n=new Wr(this,r,!0);return n.addAll(e,null,r.from,r.to),Ze.maxOpen(n.finish())};Pa.prototype.matchTag=function(e,r,n){for(var i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var a=this.tags[i];if(NI(e,a.tag)&&(a.namespace===void 0||e.namespaceURI==a.namespace)&&(!a.context||r.matchesContext(a.context))){if(a.getAttrs){var o=a.getAttrs(e);if(o===!1)continue;a.attrs=o}return a}}};Pa.prototype.matchStyle=function(e,r,n,i){for(var a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){var o=this.styles[a];if(!(o.style.indexOf(e)!=0||o.context&&!n.matchesContext(o.context)||o.style.length>e.length&&(o.style.charCodeAt(e.length)!=61||o.style.slice(e.length+1)!=r))){if(o.getAttrs){var s=o.getAttrs(r);if(s===!1)continue;o.attrs=s}return o}}};Pa.schemaRules=function(e){var r=[];function n(u){for(var f=u.priority==null?50:u.priority,d=0;d<r.length;d++){var v=r[d],m=v.priority==null?50:v.priority;if(m<f)break}r.splice(d,0,u)}var i=function(u){var f=e.marks[u].spec.parseDOM;f&&f.forEach(function(d){n(d=jw(d)),d.mark=u})};for(var a in e.marks)i(a);var o=function(u){var f=e.nodes[s].spec.parseDOM;f&&f.forEach(function(d){n(d=jw(d)),d.node=s})};for(var s in e.nodes)o();return r};Pa.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new Pa(e,Pa.schemaRules(e)))};var Ag={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},II={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},MT={ol:!0,ul:!0},Mg=1,Sm=2,xf=4;function LT(t){return(t?Mg:0)|(t==="full"?Sm:0)}var gs=function(e,r,n,i,a,o,s){this.type=e,this.attrs=r,this.solid=a,this.match=o||(s&xf?null:e.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=Yt.none,this.pendingMarks=i,this.stashMarks=[]};gs.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var r=this.type.contentMatch.fillBefore(Ee.from(e));if(r)this.match=this.type.contentMatch.matchFragment(r);else{var n=this.type.contentMatch,i;return(i=n.findWrapping(e.type))?(this.match=n,i):null}}return this.match.findWrapping(e.type)};gs.prototype.finish=function(e){if(!(this.options&Mg)){var r=this.content[this.content.length-1],n;r&&r.isText&&(n=/[ \t\r\n\u000c]+$/.exec(r.text))&&(r.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-n[0].length)))}var i=Ee.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(Ee.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i};gs.prototype.popFromStashMark=function(e){for(var r=this.stashMarks.length-1;r>=0;r--)if(e.eq(this.stashMarks[r]))return this.stashMarks.splice(r,1)[0]};gs.prototype.applyPending=function(e){for(var r=0,n=this.pendingMarks;r<n.length;r++){var i=n[r];(this.type?this.type.allowsMarkType(i.type):BI(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}};gs.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Ag.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var Wr=function(e,r,n){this.parser=e,this.options=r,this.isOpen=n;var i=r.topNode,a,o=LT(r.preserveWhitespace)|(n?xf:0);i?a=new gs(i.type,i.attrs,Yt.none,Yt.none,!0,r.topMatch||i.type.contentMatch,o):n?a=new gs(null,null,Yt.none,Yt.none,!0,null,o):a=new gs(e.schema.topNodeType,null,Yt.none,Yt.none,!0,null,o),this.nodes=[a],this.open=0,this.find=r.findPositions,this.needsBlock=!1},Lg={top:{configurable:!0},currentPos:{configurable:!0}};Lg.top.get=function(){return this.nodes[this.open]};Wr.prototype.addDOM=function(e){if(e.nodeType==3)this.addTextNode(e);else if(e.nodeType==1){var r=e.getAttribute("style"),n=r?this.readStyles(PI(r)):null,i=this.top;if(n!=null)for(var a=0;a<n.length;a++)this.addPendingMark(n[a]);if(this.addElement(e),n!=null)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],i)}};Wr.prototype.addTextNode=function(e){var r=e.nodeValue,n=this.top;if(n.options&Sm||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(n.options&Mg)n.options&Sm?r=r.replace(/\r\n?/g,`
29`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){var i=n.content[n.content.length-1],a=e.previousSibling;(!i||a&&a.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r)),this.findInText(e)}else this.findInside(e)};Wr.prototype.addElement=function(e,r){var n=e.nodeName.toLowerCase(),i;MT.hasOwnProperty(n)&&this.parser.normalizeLists&&RI(e);var a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,r));if(a?a.ignore:II.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);var o,s=this.top,u=this.needsBlock;if(Ag.hasOwnProperty(n))o=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}this.addAll(e),o&&this.sync(s),this.needsBlock=u}else this.addElementByRule(e,a,a.consuming===!1?i:null)};Wr.prototype.leafFallback=function(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
30`))};Wr.prototype.ignoreFallback=function(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))};Wr.prototype.readStyles=function(e){var r=Yt.none;e:for(var n=0;n<e.length;n+=2)for(var i=null;;){var a=this.parser.matchStyle(e[n],e[n+1],this,i);if(!a)continue e;if(a.ignore)return null;if(r=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(r),a.consuming===!1)i=a;else break}return r};Wr.prototype.addElementByRule=function(e,r,n){var i=this,a,o,s,u;r.node?(o=this.parser.schema.nodes[r.node],o.isLeaf?this.insertNode(o.create(r.attrs))||this.leafFallback(e):a=this.enter(o,r.attrs,r.preserveWhitespace)):(s=this.parser.schema.marks[r.mark],u=s.create(r.attrs),this.addPendingMark(u));var f=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(r.getContent)this.findInside(e),r.getContent(e,this.parser.schema).forEac
30h(function(v){return i.insertNode(v)});else{var d=r.contentElement;typeof d=="string"?d=e.querySelector(d):typeof d=="function"&&(d=d(e)),d||(d=e),this.findAround(e,d,!0),this.addAll(d,a)}a&&(this.sync(f),this.open--),u&&this.removePendingMark(u,f)};Wr.prototype.addAll=function(e,r,n,i){for(var a=n||0,o=n?e.childNodes[n]:e.firstChild,s=i==null?null:e.childNodes[i];o!=s;o=o.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(o),r&&Ag.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(r);this.findAtPoint(e,a)};Wr.prototype.findPlace=function(e){for(var r,n,i=this.open;i>=0;i--){var a=this.nodes[i],o=a.findWrapping(e);if(o&&(!r||r.length>o.length)&&(r=o,n=a,!o.length)||a.solid)break}if(!r)return!1;this.sync(n);for(var s=0;s<r.length;s++)this.enterInner(r[s],null,!1);return!0};Wr.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var r=this.textblockFromContext();r&&this.enterInner(r)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var i=n.activeMarks,a=0;a<e.marks.length;a++)(!n.type||n.type.allowsMarkType(e.marks[a].type))&&(i=e.marks[a].addToSet(i));return n.content.push(e.mark(i)),!0}return!1};Wr.prototype.enter=function(e,r,n){var i=this.findPlace(e.create(r));return i&&this.enterInner(e,r,!0,n),i};Wr.prototype.enterInner=function(e,r,n,i){this.closeExtra();var a=this.top;a.applyPending(e),a.match=a.match&&a.match.matchType(e,r);var o=i==null?a.options&~xf:LT(i);a.options&xf&&a.content.length==0&&(o|=xf),this.nodes.push(new gs(e,r,a.activeMarks,a.pendingMarks,n,null,o)),this.open++};Wr.prototype.closeExtra=function(e){var r=this.nodes.length-1;if(r>this.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(e));this.nodes.length=this.open+1}};Wr.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)};Wr.prototype.sync=function(e){for(var r=this.open;r>=0;r--)if(this.nodes[r]==e){this.open=r;return}};Lg.currentPos.get=function(){this.closeExtra();for(var t=0,e=this.open;e>=0;e--){for(var r=this.nodes[e].content,n=r.length-1;n>=0;n--)t+=r[n].nodeSize;e&&t++}return t};Wr.prototype.findAtPoint=function(e,r){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==r&&(this.find[n].pos=this.currentPos)};Wr.prototype.findInside=function(e){if(this.find)for(var r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&(this.find[r].pos=this.currentPos)};Wr.prototype.findAround=function(e,r,n){if(e!=r&&this.find){for(var i=0;i<this.find.length;i++)if(this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)){var a=r.compareDocumentPosition(this.find[i].node);a&(n?2:4)&&(this.find[i].pos=this.currentPos)}}};Wr.prototype.findInText=function(e){if(this.find)for(var r=0;r<this.find.length;r++)this.find[r].node==e&&(this.find[r].pos=this.currentPos-(e.nodeValue.length-this.find[r].offset))};Wr.prototype.matchesContext=function(e){var r=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),i=this.options.context,a=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),o=-(i?i.depth+1:0)+(a?0:1),s=function(u,f){for(;u>=0;u--){var d=n[u];if(d==""){if(u==n.length-1||u==0)continue;for(;f>=o;f--)if(s(u-1,f))return!0;return!1}else{var v=f>0||f==0&&a?r.nodes[f].type:i&&f>=o?i.node(f-o).type:null;if(!v||v.name!=d&&v.groups.indexOf(d)==-1)return!1;f--}}return!0};return s(n.length-1,this.open)};Wr.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var r=e.depth;r>=0;r--){var n=e.node(r).contentMatchAt(e.indexAfter(r)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var i in this.parser.schema.nodes){var a=this.parser.schema.nodes[i];if(a.isTextblock&&a.defaultAttrs)return a}};Wr.prototype.addPendingMark=function(e){var r=FI(e,this.top.pendingMarks);r&&this.top.stashMarks.push(r),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)};Wr.prototype.removePendingMark=function(e,r){for(var n=this.open;n>=0;n--){var i=this.nodes[n],a=i.pendingMarks.lastIndexOf(e);if(a>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);var o=i.popFromStashMark(e);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==r)break}};Object.defineProperties(Wr.prototype,Lg);function RI(t){for(var e=t.firstChild,r=null;e;e=e.nextSibling){var n=e.nodeType==1?e.nodeName.toLowerCase():null;
30n&&MT.hasOwnProperty(n)&&r?(r.appendChild(e),e=r):n=="li"?r=e:n&&(r=null)}}function NI(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function PI(t){for(var e=/\s*([\w-]+)\s*:\s*([^;]+)/g,r,n=[];r=e.exec(t);)n.push(r[1],r[2].trim());return n}function jw(t){var e={};for(var r in t)e[r]=t[r];return e}function BI(t,e){var r=e.schema.nodes,n=function(o){var s=r[o];if(s.allowsMarkType(t)){var u=[],f=function(d){u.push(d);for(var v=0;v<d.edgeCount;v++){var m=d.edge(v),b=m.type,x=m.next;if(b==e||u.indexOf(x)<0&&f(x))return!0}};if(f(s.contentMatch))return{v:!0}}};for(var i in r){var a=n(i);if(a)return a.v}}function FI(t,e){for(var r=0;r<e.length;r++)if(t.eq(e[r]))return e[r]}var bi=function(e,r){this.nodes=e||{},this.marks=r||{}};bi.prototype.serializeFragment=function(e,r,n){var i=this;r===void 0&&(r={}),n||(n=Dg(r).createDocumentFragment());var a=n,o=null;return e.forEach(function(s){if(o||s.marks.length){o||(o=[]);for(var u=0,f=0;u<o.length&&f<s.marks.length;){var d=s.marks[f];if(!i.marks[d.type.name]){f++;continue}if(!d.eq(o[u])||d.type.spec.spanning===!1)break;u+=2,f++}for(;u<o.length;)a=o.pop(),o.pop();for(;f<s.marks.length;){var v=s.marks[f++],m=i.serializeMark(v,s.isInline,r);m&&(o.push(v,a),a.appendChild(m.dom),a=m.contentDOM||m.dom)}}a.appendChild(i.serializeNodeInner(s,r))}),n};bi.prototype.serializeNodeInner=function(e,r){r===void 0&&(r={});var n=bi.renderSpec(Dg(r),this.nodes[e.type.name](e)),i=n.dom,a=n.contentDOM;if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");r.onContent?r.onContent(e,a,r):this.serializeFragment(e.content,r,a)}return i};bi.prototype.serializeNode=function(e,r){r===void 0&&(r={});for(var n=this.serializeNodeInner(e,r),i=e.marks.length-1;i>=0;i--){var a=this.serializeMark(e.marks[i],e.isInline,r);a&&((a.contentDOM||a.dom).appendChild(n),n=a.dom)}return n};bi.prototype.serializeMark=function(e,r,n){n===void 0&&(n={});var i=this.marks[e.type.name];return i&&bi.renderSpec(Dg(n),i(e,r))};bi.renderSpec=function(e,r,n){if(n===void 0&&(n=null),typeof r=="string")return{dom:e.createTextNode(r)};if(r.nodeType!=null)return{dom:r};if(r.dom&&r.dom.nodeType!=null)return r;var i=r[0],a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));var o=null,s=n?e.createElementNS(n,i):e.createElement(i),u=r[1],f=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){f=2;for(var d in u)if(u[d]!=null){var v=d.indexOf(" ");v>0?s.setAttributeNS(d.slice(0,v),d.slice(v+1),u[d]):s.setAttribute(d,u[d])}}for(var m=f;m<r.length;m++){var b=r[m];if(b===0){if(m<r.length-1||m>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{var x=bi.renderSpec(e,b,n),T=x.dom,S=x.contentDOM;if(s.appendChild(T),S){if(o)throw new RangeError("Multiple content holes");o=S}}}return{dom:s,contentDOM:o}};bi.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new bi(this.nodesFromSchema(e),this.marksFromSchema(e)))};bi.nodesFromSchema=function(e){var r=DT(e.nodes);return r.text||(r.text=function(n){return n.text}),r};bi.marksFromSchema=function(e){return DT(e.marks)};function DT(t){var e={};for(var r in t){var n=t[r].spec.toDOM;n&&(e[r]=n)}return e}function Dg(t){return t.document||window.document}var IT=65535,RT=Math.pow(2,16);function HI(t,e){return t+e*RT}function NT(t){return t&IT}function qI(t){return(t-(t&IT))/RT}var km=function(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=null),this.pos=e,this.deleted=r,this.recover=n},Gn=function t(e,r){if(r===void 0&&(r=!1),!e.length&&t.empty)return t.empty;this.ranges=e,this.inverted=r};Gn.prototype.recover=function(e){var r=0,n=NT(e);if(!this.inverted)for(var i=0;i<n;
30i++)r+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[n*3]+r+qI(e)};Gn.prototype.mapResult=function(e,r){return r===void 0&&(r=1),this._map(e,r,!1)};Gn.prototype.map=function(e,r){return r===void 0&&(r=1),this._map(e,r,!0)};Gn.prototype._map=function(e,r,n){for(var i=0,a=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var u=this.ranges[s]-(this.inverted?i:0);if(u>e)break;var f=this.ranges[s+a],d=this.ranges[s+o],v=u+f;if(e<=v){var m=f?e==u?-1:e==v?1:r:r,b=u+i+(m<0?0:d);if(n)return b;var x=e==(r<0?u:v)?null:HI(s/3,e-u);return new km(b,r<0?e!=u:e!=v,x)}i+=d-f}return n?e+i:new km(e+i)};Gn.prototype.touches=function(e,r){for(var n=0,i=NT(r),a=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var u=this.ranges[s]-(this.inverted?n:0);if(u>e)break;var f=this.ranges[s+a],d=u+f;if(e<=d&&s==i*3)return!0;n+=this.ranges[s+o]-f}return!1};Gn.prototype.forEach=function(e){for(var r=this.inverted?2:1,n=this.inverted?1:2,i=0,a=0;i<this.ranges.length;i+=3){var o=this.ranges[i],s=o-(this.inverted?a:0),u=o+(this.inverted?0:a),f=this.ranges[i+r],d=this.ranges[i+n];e(s,s+f,u,u+d),a+=d-f}};Gn.prototype.invert=function(){return new Gn(this.ranges,!this.inverted)};Gn.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)};Gn.offset=function(e){return e==0?Gn.empty:new Gn(e<0?[0,-e,0]:[0,0,e])};Gn.empty=new Gn([]);var wi=function(e,r,n,i){this.maps=e||[],this.from=n||0,this.to=i??this.maps.length,this.mirror=r};wi.prototype.slice=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.maps.length),new wi(this.maps,this.mirror,e,r)};wi.prototype.copy=function(){return new wi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)};wi.prototype.appendMap=function(e,r){this.to=this.maps.push(e),r!=null&&this.setMirror(this.maps.length-1,r)};wi.prototype.appendMapping=function(e){for(var r=0,n=this.maps.length;r<e.maps.length;r++){var i=e.getMirror(r);this.appendMap(e.maps[r],i!=null&&i<r?n+i:null)}};wi.prototype.getMirror=function(e){if(this.mirror){for(var r=0;r<this.mirror.length;r++)if(this.mirror[r]==e)return this.mirror[r+(r%2?-1:1)]}};wi.prototype.setMirror=function(e,r){this.mirror||(this.mirror=[]),this.mirror.push(e,r)};wi.prototype.appendMappingInverted=function(e){for(var r=e.maps.length-1,n=this.maps.length+e.maps.length;r>=0;r--){var i=e.getMirror(r);this.appendMap(e.maps[r].invert(),i!=null&&i>r?n-i-1:null)}};wi.prototype.invert=function(){var e=new wi;return e.appendMappingInverted(this),e};wi.prototype.map=function(e,r){if(r===void 0&&(r=1),this.mirror)return this._map(e,r,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,r);return e};wi.prototype.mapResult=function(e,r){return r===void 0&&(r=1),this._map(e,r,!1)};wi.prototype._map=function(e,r,n){for(var i=!1,a=this.from;a<this.to;a++){var o=this.maps[a],s=o.mapResult(e,r);if(s.recover!=null){var u=this.getMirror(a);if(u!=null&&u>a&&u<this.to){a=u,e=this.maps[u].recover(s.recover);continue}}s.deleted&&(i=!0),e=s.pos}return n?e:new km(e,i)};function yc(t){var e=Error.call(this,t);return e.__proto__=yc.prototype,e}yc.prototype=Object.create(Error.prototype);yc.prototype.constructor=yc;yc.prototype.name="TransformError";var xn=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new wi},Ig={before:{configurable:!0},docChanged:{configurable:!0}};Ig.before.get=function(){return this.docs.length?this.docs[0]:this.doc};xn.prototype.step=function(e){var r=this.maybeStep(e);if(r.failed)throw new yc(r.failed);return this};xn.prototype.maybeStep=function(e){var r=e.apply(this.doc);return r.failed||this.addStep(e,r.doc),r};Ig.docChanged.get=function(){return this.steps.length>0};xn.prototype.addStep=function(e,r){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=r};Object.defineProperties(xn.prototype,Ig);function Ip(){throw new Error("Override me")}var Om=Object.create(null),xi=function(){};xi.prototype.apply=function(e){return Ip()};xi.prototype.getMap=function(){return Gn.empty};xi.prototype.invert=function(e){return Ip()};xi.prototype.map=function(e){return Ip()};xi.prototype.merge=function(e){return null};xi.prototype.toJSON=function(){return Ip()};xi.fromJSON=function(e,r){if(!r||!r.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Om[r.stepType];if(!n)throw new RangeError("No step type "+r.stepType+" defined");return n.fromJSON(e,r)};xi.jsonID=function(e,r){if(e in Om)throw new RangeError("Duplicate use of step JSON ID "+e);return Om[e]=r,r.prototype.jsonID=e,r};var Ni=function(e,r){this.doc=e,this.failed=r};Ni.ok=function(e){return new Ni(e,null)};Ni.fail=function(e){return new Ni(null,e)};Ni.fromReplace=function(e,r,n,i){try{return Ni.ok(e.replace(r,n,i))}catch(a){if(a instanceof Ho)return Ni.fail(a.message);throw a}};var ml=function(t){function e(r,n,i,a){t.call(this),this.from=r,this.to=n,this.slice=i,this.structure=!!a}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(n){return this.structure&&Am(n,this.from,this.to)?Ni.fail("Structure replace would overwrite content"):Ni.fromReplace(n,this.from,this.to,this.slice)},e.prototype.getMap=function(){return new Gn([this.from,this.to-this.from,this.slice.size])},e.prototype.invert=function(n){return new e(this.from,this.from+this.slice.size,n.slice(this.from,this.to))},e.prototype.map=function(n){var i=n.mapResult(this.from,1),a=n.mapResult(this.to,-1);return i.deleted&&a.deleted?null:new e(i.pos,Math.max(i.pos,a.pos),this.slice)},e.prototype.merge=function(n){if(!(n instanceof e)||n.structure||this.structure)return null;if(this.from+this.slice.size==n.from&&!this.slice.openEnd&&!n.slice.openStart){var i=this.slice.size+n.slice.size==0?Ze.empty:new Ze(this.slice.content.append(n.slice.content),this.slice.openStart,n.slice.openEnd);return new e(this.from,this.to+(n.to-n.from),i,this.structure)}else if(n.to==this.from&&!this.slice.openStart&&!n.slice.openEnd){var a=this.slice.size+n.slice.size==0?Ze.empty:new Ze(n.slice.content.append(this.slice.content),n.slice.openStart,this.slice.openEnd);return new e(n.from,this.to,a,this.structure)}else return null},e.prototype.toJSON=function(){var n={stepType:"replace",from:this.from,to:this.to};
30return this.slice.size&&(n.slice=this.slice.toJSON()),this.structure&&(n.structure=!0),n},e.fromJSON=function(n,i){if(typeof i.from!="number"||typeof i.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new e(i.from,i.to,Ze.fromJSON(n,i.slice),!!i.structure)},e}(xi);xi.jsonID("replace",ml);var ta=function(t){function e(r,n,i,a,o,s,u){t.call(this),this.from=r,this.to=n,this.gapFrom=i,this.gapTo=a,this.slice=o,this.insert=s,this.structure=!!u}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(n){if(this.structure&&(Am(n,this.from,this.gapFrom)||Am(n,this.gapTo,this.to)))return Ni.fail("Structure gap-replace would overwrite content");var i=n.slice(this.gapFrom,this.gapTo);if(i.openStart||i.openEnd)return Ni.fail("Gap is not a flat range");var a=this.slice.insertAt(this.insert,i.content);return a?Ni.fromReplace(n,this.from,this.to,a):Ni.fail("Content does not fit in gap")},e.prototype.getMap=function(){return new Gn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},e.prototype.invert=function(n){var i=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+i,this.from+this.insert,this.from+this.insert+i,n.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},e.prototype.map=function(n){var i=n.mapResult(this.from,1),a=n.mapResult(this.to,-1),o=n.map(this.gapFrom,-1),s=n.map(this.gapTo,1);return i.deleted&&a.deleted||o<i.pos||s>a.pos?null:new e(i.pos,a.pos,o,s,this.slice,this.insert,this.structure)},e.prototype.toJSON=function(){var n={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(n.slice=this.slice.toJSON()),this.structure&&(n.structure=!0),n},e.fromJSON=function(n,i){if(typeof i.from!="number"||typeof i.to!="number"||typeof i.gapFrom!="number"||typeof i.gapTo!="number"||typeof i.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new e(i.from,i.to,i.gapFrom,i.gapTo,Ze.fromJSON(n,i.slice),i.insert,!!i.structure)},e}(xi);xi.jsonID("replaceAround",ta);function Am(t,e,r){for(var n=t.resolve(e),i=r-e,a=n.depth;i>0&&a>0&&n.indexAfter(a)==n.node(a).childCount;)a--,i--;if(i>0)for(var o=n.node(a).maybeChild(n.indexAfter(a));i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}return!1}function $I(t,e,r){return(e==0||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function Rp(t){for(var e=t.parent,r=e.content.cutByIndex(t.startIndex,t.endIndex),n=t.depth;;--n){var i=t.$from.node(n),a=t.$from.index(n),o=t.$to.indexAfter(n);if(n<t.depth&&i.canReplace(a,o,r))return n;if(n==0||i.type.spec.isolating||!$I(i,a,o))break}}xn.prototype.lift=function(t,e){for(var r=t.$from,n=t.$to,i=t.depth,a=r.before(i+1),o=n.after(i+1),s=a,u=o,f=Ee.empty,d=0,v=i,m=!1;v>e;v--)m||r.index(v)>0?(m=!0,f=Ee.from(r.node(v).copy(f)),d++):s--;for(var b=Ee.empty,x=0,T=i,S=!1;T>e;T--)S||n.after(T+1)<n.end(T)?(S=!0,b=Ee.from(n.node(T).copy(b)),x++):u++;return this.step(new ta(s,u,a,o,new Ze(f.append(b),d,x),f.size-d,!0))};function UI(t,e,r,n){n===void 0&&(n=t);var i=jI(t,e),a=i&&zI(n,e);return a?i.map(zw).concat({type:e,attrs:r}).concat(a.map(zw)):null}function zw(t){return{type:t,attrs:null}}function jI(t,e){var r=t.parent,n=t.startIndex,i=t.endIndex,a=r.contentMatchAt(n).findWrapping(e);if(!a)return null;var o=a.length?a[0]:e;return r.canReplaceWith(n,i,o)?a:null}function zI(t,e){var r=t.parent,n=t.startIndex,i=t.endIndex,a=r.child(n),o=e.contentMatch.findWrapping(a.type);if(!o)return null;for(var s=o.length?o[o.length-1]:e,u=s.contentMatch,f=n;u&&f<i;f++)u=u.matchType(r.child(f).type);return!u||!u.validEnd?null:o}xn.prototype.wrap=function(t,e){for(var r=Ee.empty,n=e.length-1;n>=0;n--){if(r.size){var i=e[n].type.contentMatch.matchFragment(r);if(!i||!i.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ee.from(e[n].type.create(e[n].attrs,r))}var a=t.start,o=t.end;return this.step(new ta(a,o,a,o,new Ze(r,0,0),e.length,!0))};xn.prototype.setBlockType=function(t,e,r,n){var i=this;if(e===void 0&&(e=t),!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var a=this.steps.length;return this.doc.nodesBetween(t,e,function(o,s){if(o.isTextblock&&!o.hasMarkup(r,n)&&WI(i.doc,i.mapping.slice(a).map(s),r)){i.clearIncompatible(i.mapping.slice(a).map(s,1),r);var u=i.mapping.slice(a),f=u.map(s,1),d=u.map(s+o.nodeSize,1);return i.step(new ta(f,d,f+1,d-1,new Ze(Ee.from(r.create(n,null,o.marks)),0,0),1,!0)),!1}}),this};function WI(t,e,r){var n=t.resolve(e),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}
30xn.prototype.setNodeMarkup=function(t,e,r,n){var i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");e||(e=i.type);var a=e.create(r,null,n||i.marks);if(i.isLeaf)return this.replaceWith(t,t+i.nodeSize,a);if(!e.validContent(i.content))throw new RangeError("Invalid content for node type "+e.name);return this.step(new ta(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new Ze(Ee.from(a),0,0),1,!0))};function hc(t,e,r,n){r===void 0&&(r=1);var i=t.resolve(e),a=i.depth-r,o=n&&n[n.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(var s=i.depth-1,u=r-2;s>a;s--,u--){var f=i.node(s),d=i.index(s);if(f.type.spec.isolating)return!1;var v=f.content.cutByIndex(d,f.childCount),m=n&&n[u]||f;if(m!=f&&(v=v.replaceChild(0,m.type.create(m.attrs))),!f.canReplace(d+1,f.childCount)||!m.type.validContent(v))return!1}var b=i.indexAfter(a),x=n&&n[0];return i.node(a).canReplaceWith(b,b,x?x.type:i.node(a+1).type)}xn.prototype.split=function(t,e,r){e===void 0&&(e=1);for(var n=this.doc.resolve(t),i=Ee.empty,a=Ee.empty,o=n.depth,s=n.depth-e,u=e-1;o>s;o--,u--){i=Ee.from(n.node(o).copy(i));var f=r&&r[u];a=Ee.from(f?f.type.create(f.attrs,a):n.node(o).copy(a))}return this.step(new ml(t,t,new Ze(i.append(a),e,e),!0))};function PT(t,e){var r=t.resolve(e),n=r.index();return VI(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function VI(t,e){return t&&e&&!t.isLeaf&&t.canAppend(e)}xn.prototype.join=function(t,e){e===void 0&&(e=1);var r=new ml(t-e,t+e,Ze.empty,!0);return this.step(r)};function GI(t,e,r){var n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(n.parentOffset==0)for(var i=n.depth-1;i>=0;i--){var a=n.index(i);if(n.node(i).canReplaceWith(a,a,r))return n.before(i+1);if(a>0)return null}if(n.parentOffset==n.parent.content.size)for(var o=n.depth-1;o>=0;o--){var s=n.indexAfter(o);if(n.node(o).canReplaceWith(s,s,r))return n.after(o+1);if(s<n.node(o).childCount)return null}}function KI(t,e,r){var n=t.resolve(e);if(!r.content.size)return e;for(var i=r.content,a=0;a<r.openStart;a++)i=i.firstChild.content;for(var o=1;o<=(r.openStart==0&&r.size?2:1);o++)for(var s=n.depth;s>=0;s--){var u=s==n.depth?0:n.pos<=(n.start(s+1)+n.end(s+1))/2?-1:1,f=n.index(s)+(u>0?1:0),d=n.node(s),v=!1;if(o==1)v=d.canReplace(f,f,i);else{var m=d.contentMatchAt(f).findWrapping(i.firstChild.type);v=m&&d.canReplaceWith(f,f,m[0])}if(v)return u==0?n.pos:u<0?n.before(s+1):n.after(s+1)}return null}function Rg(t,e,r){for(var n=[],i=0;i<t.childCount;i++){var a=t.child(i);a.content.size&&(a=a.copy(Rg(a.content,e,a))),a.isInline&&(a=e(a,r,i)),n.push(a)}return Ee.fromArray(n)}var Ng=function(t){function e(r,n,i){t.call(this),this.from=r,this.to=n,this.mark=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(n){var i=this,a=n.slice(this.from,this.to),o=n.resolve(this.from),s=o.node(o.sharedDepth(this.to)),u=new Ze(Rg(a.content,function(f,d){return!f.isAtom||!d.type.allowsMarkType(i.mark.type)?f:f.mark(i.mark.addToSet(f.marks))},s),a.openStart,a.openEnd);return Ni.fromReplace(n,this.from,this.to,u)},e.prototype.invert=function(){return new jf(this.from,this.to,this.mark)},e.prototype.map=function(n){var i=n.mapResult(this.from,1),a=n.mapResult(this.to,-1);return i.deleted&&a.deleted||i.pos>=a.pos?null:new e(i.pos,a.pos,this.mark)},e.prototype.merge=function(n){if(n instanceof e&&n.mark.eq(this.mark)&&this.from<=n.to&&this.to>=n.from)return new e(Math.min(this.from,n.from),Math.max(this.to,n.to),this.mark)},e.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},e.fromJSON=function(n,i){if(typeof i.from!="number"||typeof i.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new e(i.from,i.to,n.markFromJSON(i.mark))},e}(xi);xi.jsonID("addMark",Ng);var jf=function(t){function e(r,n,i){t.call(this),this.from=r,this.to=n,this.mark=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(n){var i=this,a=n.slice(this.from,this.to),o=new Ze(Rg(a.content,function(s){return s.mark(i.mark.removeFromSet(s.marks))}),a.openStart,a.openEnd);return Ni.fromReplace(n,this.from,this.to,o)},e.prototype.invert=function(){return new Ng(this.from,this.to,this.mark)},e.prototype.map=function(n){var i=n.mapResult(this.from,1),a=n.mapResult(this.to,-1);return i.deleted&&a.deleted||i.pos>=a.pos?null:new e(i.pos,a.pos,this.mark)},e.prototype.merge=function(n){if(n instanceof e&&n.mark.eq(this.mark)&&this.from<=n.to&&this.to>=n.from)return new e(Math.min(this.from,n.from),Math.max(this.to,n.to),this.mark)},e.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}
30,e.fromJSON=function(n,i){if(typeof i.from!="number"||typeof i.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new e(i.from,i.to,n.markFromJSON(i.mark))},e}(xi);xi.jsonID("removeMark",jf);xn.prototype.addMark=function(t,e,r){var n=this,i=[],a=[],o=null,s=null;return this.doc.nodesBetween(t,e,function(u,f,d){if(u.isInline){var v=u.marks;if(!r.isInSet(v)&&d.type.allowsMarkType(r.type)){for(var m=Math.max(f,t),b=Math.min(f+u.nodeSize,e),x=r.addToSet(v),T=0;T<v.length;T++)v[T].isInSet(x)||(o&&o.to==m&&o.mark.eq(v[T])?o.to=b:i.push(o=new jf(m,b,v[T])));s&&s.to==m?s.to=b:a.push(s=new Ng(m,b,r))}}}),i.forEach(function(u){return n.step(u)}),a.forEach(function(u){return n.step(u)}),this};xn.prototype.removeMark=function(t,e,r){var n=this;r===void 0&&(r=null);var i=[],a=0;return this.doc.nodesBetween(t,e,function(o,s){if(o.isInline){a++;var u=null;if(r instanceof cl)for(var f=o.marks,d;d=r.isInSet(f);)(u||(u=[])).push(d),f=d.removeFromSet(f);else r?r.isInSet(o.marks)&&(u=[r]):u=o.marks;if(u&&u.length)for(var v=Math.min(s+o.nodeSize,e),m=0;m<u.length;m++){for(var b=u[m],x=void 0,T=0;T<i.length;T++){var S=i[T];S.step==a-1&&b.eq(i[T].style)&&(x=S)}x?(x.to=v,x.step=a):i.push({style:b,from:Math.max(s,t),to:v,step:a})}}}
30),i.forEach(function(o){return n.step(new jf(o.from,o.to,o.style))}),this};xn.prototype.clearIncompatible=function(t,e,r){r===void 0&&(r=e.contentMatch);for(var n=this.doc.nodeAt(t),i=[],a=t+1,o=0;o<n.childCount;o++){var s=n.child(o),u=a+s.nodeSize,f=r.matchType(s.type,s.attrs);if(!f)i.push(new ml(a,u,Ze.empty));else{r=f;for(var d=0;d<s.marks.length;d++)e.allowsMarkType(s.marks[d].type)||this.step(new jf(a,u,s.marks[d]))}a=u}if(!r.validEnd){var v=r.fillBefore(Ee.empty,!0);this.replace(a,a,new Ze(v,0,0))}for(var m=i.length-1;m>=0;m--)this.step(i[m]);return this};function JI(t,e,r,n){if(r===void 0&&(r=e),n===void 0&&(n=Ze.empty),e==r&&!n.size)return null;var i=t.resolve(e),a=t.resolve(r);return BT(i,a,n)?new ml(e,r,n):new Ua(i,a,n).fit()}xn.prototype.replace=function(t,e,r){e===void 0&&(e=t),r===void 0&&(r=Ze.empty);var n=JI(this.doc,t,e,r);return n&&this.step(n),this};xn.prototype.replaceWith=function(t,e,r){return this.replace(t,e,new Ze(Ee.from(r),0,0))};xn.prototype.delete=function(t,e){return this.replace(t,e,Ze.empty)};xn.prototype.insert=function(t,e){return this.replaceWith(t,t,e)};function BT(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}var Ua=function(e,r,n){this.$to=r,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var a=e.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(e.indexAfter(i))})}this.placed=Ee.empty;for(var o=e.depth;o>0;o--)this.placed=Ee.from(e.node(o).copy(this.placed))},FT={depth:{configurable:!0}};FT.depth.get=function(){return this.frontier.length-1};Ua.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var r=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,a=this.close(r<0?this.$to:i.doc.resolve(r));if(!a)return null;for(var o=this.placed,s=i.depth,u=a.depth;s&&u&&o.childCount==1;)o=o.firstChild.content,s--,u--;var f=new Ze(o,s,u);if(r>-1)return new ta(i.pos,r,this.$to.pos,this.$to.end(),f,n);if(f.size||i.pos!=this.$to.pos)return new ml(i.pos,a.pos,f)};Ua.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var r=this.unplaced.openStart;r>=0;r--){var n=void 0,i=void 0;r?(i=Pg(this.unplaced.content,r-1).firstChild,n=i.content):n=this.unplaced.content;for(var a=n.firstChild,o=this.depth;o>=0;o--){var s=this.frontier[o],u=s.type,f=s.match,d=void 0,v=void 0;if(e==1&&(a?f.matchType(a.type)||(v=f.fillBefore(Ee.from(a),!1)):u.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:o,parent:i,inject:v};if(e==2&&a&&(d=f.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:o,parent:i,wrap:d};if(i&&f.matchType(i.type))break}}};Ua.prototype.openMore=function(){var e=this.unplaced,r=e.content,n=e.openStart,i=e.openEnd,a=Pg(r,n);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new Ze(r,n+1,Math.max(i,a.size+n>=r.size-i?n+1:0)),!0)};Ua.prototype.dropNode=function(){var e=this.unplaced,r=e.content,n=e.openStart,i=e.openEnd,a=Pg(r,n);if(a.childCount<=1&&n>0){var o=r.size-n<=n+a.size;this.unplaced=new Ze(Lf(r,n-1,1),n-1,o?n-1:i)}else this.unplaced=new Ze(Lf(r,n,1),n,i)};Ua.prototype.placeNodes=function(e){for(var r=e.sliceDepth,n=e.frontierDepth,i=e.parent,a=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var s=0;s<o.length;s++)this.openFrontierNode(o[s]);var u=this.unplaced,f=i?i.content:u.content,d=u.openStart-r,v=0,m=[],b=this.frontier[n],x=b.match,T=b.type;if(a){for(var S=0;S<a.childCount;S++)m.push(a.child(S));x=x.matchFragment(a)}for(var M=f.size+r-(u.content.size-u.openEnd);v<f.childCount;){var L=f.child(v),P=x.matchType(L.type);if(!P)break;v++,(v>1||d==0||L.content.size)&&(x=P,m.push(HT(L.mark(T.allowedMarks(L.marks)),v==1?d:0,v==f.childCount?M:-1)))}var A=v==f.childCount;A||(M=-1),this.placed=zf(this.placed,n,Ee.from(m)),this.frontier[n].match=x,A&&M<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var H=0,W=f;H<M;H++){var J=W.lastChild;this.frontier.push({type:J.type,match:J.contentMatchAt(J.childCount)}),W=J.content}this.unplaced=A?r==0?Ze.empty:new Ze(Lf(u.content,r-1,1),r-1,M<0?u.openEnd:r-1):new Ze(Lf(u.content,r,v),u.openStart,u.openEnd)};Ua.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e=this.frontier[this.depth],r;if(!e.type.isTextblock||!Mm(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(r=this.findCloseLevel(this.$to))&&r.depth==this.depth)return-1;for(var n=this.$to,i=n.depth,a=this.$to.after(i);i>1&&a==this.$to.end(--i);)++a;return a};Ua.prototype.findCloseLevel=function(e){e:for(var r=Math.min(this.depth,e.depth);r>=0;r--){var n=this.frontier[r],i=n.match,a=n.type,o=r<e.depth&&e.end(r+1)==e.pos+(e.depth-(r+1)),s=Mm(e,r,a,i,o);if(s){for(var u=r-1;u>=0;u--){var f=this.frontier[u],d=f.match,v=f.type,m=Mm(e,u,v,d,!0);if(!m||m.childCount)continue e}return{depth:r,fit:s,move:o?e.doc.resolve(e.after(r+1)):e}}}};Ua.prototype.close=function(e){var r=this.findCloseLevel(e);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=zf(this.placed,r.depth,r.fit)),e=r.move;for(var n=r.depth+1;n<=e.depth;n++){var i=e.node(n),a=i.type.contentMatch.fillBefore(i.content,!0,e.index(n));this.openFrontierNode(i.type,i.attrs,a)}return e};Ua.prototype.openFrontierNode=function(e,r,n){var i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=zf(this.placed,this.depth,Ee.from(e.create(r,n))),this.frontier.push({type:e,match:e.contentMatch})};Ua.prototype.closeFrontierNode=function(){var e=this.frontier.pop(),r=e.match.fillBefore(Ee.empty,!0);r.childCount&&(this.placed=zf(this.placed,this.frontier.length,r))};Object.defineProperties(Ua.prototype,FT);function Lf(t,e,r){return e==0?t.cutByIndex(r):t.replaceChild(0,t.firstChild.copy(Lf(t.firstChild.content,e-1,r)))}function zf(t,e,r){return e==0?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy(zf(t.lastChild.content,e-1,r)))}function Pg(t,e){for(var r=0;r<e;r++)t=t.firstChild.content;return t}function HT(t,e,r){if(e<=0)return t;var n=t.content;return e>1&&(n=n.replaceChild(0,HT(n.firstChild,e-1,n.childCount==1?r-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Ee.empty,!0)))),t.copy(n)}function Mm(t,e,r,n,i){var a=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==a.childCount&&!r.compatibleContent(a.type))return null;var s=n.fillBefore(a.content,!0,o);return s&&!YI(r,a.content,o)?s:null}function YI(t,e,r){for(var n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}xn.prototype.replaceRange=function(t,e,r){if(!r.size)return this.deleteRange(t,e);var n=this.doc.resolve(t),i=this.doc.resolve(e);if(BT(n,i,r))return this.step(new ml(t,e,r));var a=$T(n,this.doc.resolve(e));a[a.length-1]==0&&a.pop();var o=-(n.depth+1);a.unshift(o);for(var s=n.depth,u=n.pos-1;s>0;s--,u--){var f=n.node(s).type.spec;if(f.defining||f.isolating)break;a.indexOf(s)>-1?o=s:n.before(s)==u&&a.splice(1,0,-s)}for(var d=a.indexOf(o),v=[],m=r.openStart,b=r.content,x=0;;x++){var T=b.firstChild;if(v.push(T),x==r.openStart)break;b=T.content}m>0&&v[m-1].type.spec.defining&&n.node(d).type!=v[m-1].type?m-=1:m>=2&&v[m-1].isTextblock&&v[m-2].type.spec.defining&&n.node(d).type!=v[m-2].type&&(m-=2);for(var S=r.openStart;S>=0;S--){var M=(S+m+1)%(r.openStart+1),L=v[M];if(L)for(var P=0;P<a.length;P++){var A=a[(P+d)%a.length],H=!0;A<0&&(H=!1,A=-A);var W=n.node(A-1),J=n.index(A-1);if(W.canReplaceWith(J,J,L.type,L.marks))return this.replace(n.before(A),H?i.after(A):e,new Ze(qT(r.content,0,r.openStart,M),M,r.openEnd))}}for(var ee=this.steps.length,X=a.length-1;X>=0&&(this.replace(t,e,r),!(this.steps.length>ee));X--){var ie=a[X];ie<0||(t=n.before(ie),e=i.after(ie))}return this};function qT(t,e,r,n,i){if(e<r){var a=t.firstChild;t=t.replaceChild(0,a.copy(qT(a.content,e+1,r,n,a)))}if(e>n){var o=i.contentMatchAt(0),s=o.fillBefore(t).append(t);t=s.append(o.matchFragment(s).fillBefore(Ee.empty,!0))}return t}xn.prototype.replaceRangeWith=function(t,e,r){if(!r.isInline&&t==e&&this.doc.resolve(t).parent.content.size){var n=GI(this.doc,t,r.type);n!=null&&(t=e=n)}return this.replaceRange(t,e,new Ze(Ee.from(r),0,0))};xn.prototype.deleteRange=function(t,e){for(var r=this.doc.resolve(t),n=this.doc.resolve(e),i=$T(r,n),a=0;a<i.length;a++){var o=i[a],s=a==i.length-1;if(s&&o==0||r.node(o).type.contentMatch.validEnd)return this.delete(r.start(o),n.end(o));if(o>0&&(s||r.node(o-1).canReplace(r.index(o-1),n.indexAfter(o-1))))return this.delete(r.before(o),n.after(o))}for(var u=1;u<=r.depth&&u<=n.depth;u++)if(t-r.start(u)==r.depth-u&&e>r.end(u)&&n.end(u)-e!=n.depth-u)return this.delete(r.before(u),e);return this.delete(t,e)};function $T(t,e){for(var r=[],n=Math.min(t.depth,e.depth),i=n;i>=0;i--){var a=t.start(i);if(a<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(a==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==a-1)&&r.push(i)}return r}var Lm=Object.create(null),er=function(e,r,n){this.ranges=n||[new UT(e.min(r),e.max(r))],this.$anchor=e,this.$head=r},gl={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};gl.anchor.get=function(){return this.$anchor.pos};gl.head.get=function(){return this.$head.pos};gl.from.get=function(){return this.$from.pos};gl.to.get=function(){return this.$to.pos};gl.$from.get=function(){return this.ranges[0].$from};gl.$to.get=function(){return this.ranges[0].$to};gl.empty.get=function(){for(var t=this.ranges,e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0};er.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)};er.prototype.replace=function(e,r){r===void 0&&(r=Ze.empty);for(var n=r.content.lastChild,i=null,a=0;a<r.openEnd;a++)i=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,u=0;u<s.length;u++){var f=s[u],d=f.$from,v=f.$to,m=e.mapping.slice(o);e.replaceRange(m.map(d.pos),m.map(v.pos),u?Ze.empty:r),u==0&&jT(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}};er.prototype.replaceWith=function(e,r){for(var n=e.steps.length,i=this.ranges,a=0;a<i.length;a++){var o=i[a],s=o.$from,u=o.$to,f=e.mapping.slice(n),d=f.map(s.pos),v=f.map(u.pos);a?e.deleteRange(d,v):(e.replaceRangeWith(d,v,r),jT(e,n,r.isInline?-1:1))}};er.findFrom=function(e,r,n){var i=e.parent.inlineContent?new $r(e):vc(e.node(0),e.parent,e.pos,e.index(),r,n
30);if(i)return i;for(var a=e.depth-1;a>=0;a--){var o=r<0?vc(e.node(0),e.node(a),e.before(a+1),e.index(a),r,n):vc(e.node(0),e.node(a),e.after(a+1),e.index(a)+1,r,n);if(o)return o}};er.near=function(e,r){return r===void 0&&(r=1),this.findFrom(e,r)||this.findFrom(e,-r)||new yo(e.node(0))};er.atStart=function(e){return vc(e,e,0,0,1)||new yo(e)};er.atEnd=function(e){return vc(e,e,e.content.size,e.childCount,-1)||new yo(e)};er.fromJSON=function(e,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Lm[r.type];if(!n)throw new RangeError("No selection type "+r.type+" defined");return n.fromJSON(e,r)};er.jsonID=function(e,r){if(e in Lm)throw new RangeError("Duplicate use of selection JSON ID "+e);return Lm[e]=r,r.prototype.jsonID=e,r};er.prototype.getBookmark=function(){return $r.between(this.$anchor,this.$head).getBookmark()};Object.defineProperties(er.prototype,gl);er.prototype.visible=!0;var UT=function(e,r){this.$from=e,this.$to=r},$r=function(t){function e(n,i){i===void 0&&(i=n),t.call(this,n,i)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={$cursor:{configurable:!0}};return r.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},e.prototype.map=function(i,a){var o=i.resolve(a.map(this.head));if(!o.parent.inlineContent)return t.near(o);var s=i.resolve(a.map(this.anchor));return new e(s.parent.inlineContent?s:o,o)},e.prototype.replace=function(i,a){if(a===void 0&&(a=Ze.empty),t.prototype.replace.call(this,i,a),a==Ze.empty){var o=this.$from.marksAcross(this.$to);o&&i.ensureMarks(o)}},e.prototype.eq=function(i){return i instanceof e&&i.anchor==this.anchor&&i.head==this.head},e.prototype.getBookmark=function(){return new Df(this.anchor,this.head)},e.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},e.fromJSON=function(i,a){if(typeof a.anchor!="number"||typeof a.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new e(i.resolve(a.anchor),i.resolve(a.head))},e.create=function(i,a,o){o===void 0&&(o=a);var s=i.resolve(a);return new this(s,o==a?s:i.resolve(o))},e.between=function(i,a,o){var s=i.pos-a.pos;if((!o||s)&&(o=s>=0?1:-1),!a.parent.inlineContent){var u=t.findFrom(a,o,!0)||t.findFrom(a,-o,!0);if(u)a=u.$head;else return t.near(a,o)}return i.parent.inlineContent||(s==0?i=a:(i=(t.findFrom(i,-o,!0)||t.findFrom(i,o,!0)).$anchor,i.pos<a.pos!=s<0&&(i=a))),new e(i,a)},Object.defineProperties(e.prototype,r),e}(er);er.jsonID("text",$r);var Df=function(e,r){this.anchor=e,this.head=r};Df.prototype.map=function(e){return new Df(e.map(this.anchor),e.map(this.head))};Df.prototype.resolve=function(e){return $r.between(e.resolve(this.anchor),e.resolve(this.head))};var Zt=function(t){function e(r){var n=r.nodeAfter,i=r.node(0).resolve(r.pos+n.nodeSize);t.call(this,r,i),this.node=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.map=function(n,i){var a=i.mapResult(this.anchor),o=a.deleted,s=a.pos,u=n.resolve(s);return o?t.near(u):new e(u)},e.prototype.content=function(){return new Ze(Ee.from(this.node),0,0)},e.prototype.eq=function(n){return n instanceof e&&n.anchor==this.anchor},e.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},e.prototype.getBookmark=function(){return new ep(this.anchor)},e.fromJSON=function(n,i){if(typeof i.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new e(n.resolve(i.anchor))},e.create=function(n,i){return new this(n.resolve(i))},e.isSelectable=function(n){return!n.isText&&n.type.spec.selectable!==!1},e}(er);Zt.prototype.visible=!1;er.jsonID("node",Zt);var ep=function(e){this.anchor=e};ep.prototype.map=function(e){var r=e.mapResult(this.anchor),n=r.deleted,i=r.pos;return n?new Df(i,i):new ep(i)};ep.prototype.resolve=function(e){var r=e.resolve(this.anchor),n=r.nodeAfter;return n&&Zt.isSelectable(n)?new Zt(r):er.near(r)};var yo=function(t){function e(r){t.call(this,r.resolve(0),r.resolve(r.content.size))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replace=function(n,i){if
30(i===void 0&&(i=Ze.empty),i==Ze.empty){n.delete(0,n.doc.content.size);var a=t.atStart(n.doc);a.eq(n.selection)||n.setSelection(a)}else t.prototype.replace.call(this,n,i)},e.prototype.toJSON=function(){return{type:"all"}},e.fromJSON=function(n){return new e(n)},e.prototype.map=function(n){return new e(n)},e.prototype.eq=function(n){return n instanceof e},e.prototype.getBookmark=function(){return XI},e}(er);er.jsonID("all",yo);var XI={map:function(){return this},resolve:function(e){return new yo(e)}};function vc(t,e,r,n,i,a){if(e.inlineContent)return $r.create(t,r);for(var o=n-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){var s=e.child(o);if(s.isAtom){if(!a&&Zt.isSelectable(s))return Zt.create(t,r-(i<0?s.nodeSize:0))}else{var u=vc(t,s,r+i,i<0?s.childCount:0,i,a);if(u)return u}r+=s.nodeSize*i}}function jT(t,e,r){var n=t.steps.length-1;if(!(n<e)){var i=t.steps[n];if(i instanceof ml||i instanceof ta){var a=t.mapping.maps[n],o;a.forEach(function(s,u,f,d){o==null&&(o=d)}),t.setSelection(er.near(t.doc.resolve(o),r))}}}var Ww=1,Cd=2,Vw=4,QI=function(t){function e(n){t.call(this,n.doc),this.time=Date.now(),this.curSelection=n.selection,this.curSelectionFor=0,this.storedMarks=n.storedMarks,this.updated=0,this.meta=Object.create(null)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return r.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},e.prototype.setSelection=function(i){if(i.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=i,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Ww)&~Cd,this.storedMarks=null,this},r.selectionSet.get=function(){return(this.updated&Ww)>0},e.prototype.setStoredMarks=function(i){return this.storedMarks=i,this.updated|=Cd,this},e.prototype.ensureMarks=function(i){return Yt.sameSet(this.storedMarks||this.selection.$from.marks(),i)||this.setStoredMarks(i),this},e.prototype.addStoredMark=function(i){return this.ensureMarks(i.addToSet(this.storedMarks||this.selection.$head.marks()))},e.prototype.removeStoredMark=function(i){return this.ensureMarks(i.removeFromSet(this.storedMarks||this.selection.$head.marks()))},r.storedMarksSet.get=function(){return(this.updated&Cd)>0},e.prototype.addStep=function(i,a){t.prototype.addStep.call(this,i,a),this.updated=this.updated&~Cd,this.storedMarks=null},e.prototype.setTime=function(i){return this.time=i,this},e.prototype.replaceSelection=function(i){return this.selection.replace(this,i),this},e.prototype.replaceSelectionWith=function(i,a){var o=this.selection;return a!==!1&&(i=i.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||Yt.none))),o.replaceWith(this,i),this},e.prototype.deleteSelection=function(){return this.selection.replace(this),this},e.prototype.insertText=function(i,a,o){o===void 0&&(o=a);var s=this.doc.type.schema;if(a==null)return i?this.replaceSelectionWith(s.text(i),!0):this.deleteSelection();if(!i)return this.deleteRange(a,o);var u=this.storedMarks;if(!u){var f=this.doc.resolve(a);u=o==a?f.marks():f.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(a,o,s.text(i,u)),this.selection.empty||this.setSelection(er.near(this.selection.$to)),this},e.prototype.setMeta=function(i,a){return this.meta[typeof i=="string"?i:i.key]=a,this},e.prototype.getMeta=function(i){return this.meta[typeof i=="string"?i:i.key]},r.isGeneric.get=function(){for(var n in this.meta)return!1;return!0},e.prototype.scrollIntoView=function(){return this.updated|=Vw,this},r.scrolledIntoView.get=function(){return(this.updated&Vw)>0},Object.defineProperties(e.prototype,r),e}(xn);function Gw(t,e){return!e||!t?t:t.bind(e)}var gf=function(e,r,n){this.name=e,this.init=Gw(r.init,n),this.apply=Gw(r.apply,n)},ZI=[new gf("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new gf("selection",{init:function(e,r){return e.selection||er.atStart(r.doc)},apply:function(e){return e.selection}}),new gf("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,r,n,i){return i.selection.$cursor?e.storedMarks:null}}),new gf("scrollToSelection",{init:function(){return 0},apply:function(e,r){return e.scrolledIntoView?r+1:r}})],Bg=function(e,r){var n=this;this.schema=e,this.fields=ZI.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),r&&r.forEach(function(i){if(n.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");n.plugins.push(i),n.pluginsByKey[i.key]=i,i.spec.state&&n.fields.push(new gf(i.key,i.spec.state,i))})},ii=function(e){this.config=e},Np={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};Np.schema.get=function(){return this.config.schema};Np.plugins.get=function(){return this.config.plugins};ii.prototype.apply=function(e){return this.applyTransaction(e).state};ii.prototype.filterTransaction=function(e,r){r===void 0&&(r=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=r){var i=this.config.plugins[n];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0};ii.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var r=[e],n=this.applyInner(e),i=null;;){for(var a=!1,o=0;o<this.config.plugins.length;o++){var s=this.config.plugins[o];if(s.spec.appendTransaction){var u=i?i[o].n:0,f=i?i[o].state:this,d=u<r.length&&s.spec.appendTransaction.call(s,u?r.slice(u):r,f,n);if(d&&n.filterTransaction(d,o)){if(d.setMeta("appendedTransaction",e),!i){i=[];for(var v=0;v<this.config.plugins.length;v++)i.push(v<o?{state:n,n:r.length}:{state:this,n:0})}r.push(d),n=n.applyInner(d),a=!0}i&&(i[o]={state:n,n:r.length})}}if(!a)return{state:n,transactions:r}}};ii.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var r=new ii(this.config),n=this.config.fields,i=0;i<n.length;i++){var a=n[i];r[a.name]=a.apply(e,this[a.name],this,r)}for(var o=0;o<If.length;o++)If[o](this,e,r);return r};Np.tr.get=function(){return new QI(this)};ii.create=function(e){for(var r=new Bg(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new ii(r),i=0;i<r.fields.length;i++)n[r.fields[i].name]=r.fields[i].init(e,n);return n};ii.prototype.reconfigure=function(e){for(var r=new Bg(this.schema,e.plugins),n=r.fields,i=new ii(r),a=0;a<n.length;a++){var o=n[a].name;i[o]=this.hasOwnProperty(o)?this[o]:n[a].init(e,i)}return i};ii.prototype.toJSON=function(e){var r={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(r.storedMarks=this.storedMarks.map(function(o){return o.toJSON()})),e&&typeof e=="object")for(var n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");var i=e[n],a=i.spec.state;a&&a.toJSON&&(r[n]=a.toJSON.call(i,this[i.key]))}return r};ii.fromJSON=function(e,r,n){if(!r)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var i=new Bg(e.schema,e.plugins),a=new ii(i);
30return i.fields.forEach(function(o){if(o.name=="doc")a.doc=sr.fromJSON(e.schema,r.doc);else if(o.name=="selection")a.selection=er.fromJSON(a.doc,r.selection);else if(o.name=="storedMarks")r.storedMarks&&(a.storedMarks=r.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var s in n){var u=n[s],f=u.spec.state;if(u.key==o.name&&f&&f.fromJSON&&Object.prototype.hasOwnProperty.call(r,s)){a[o.name]=f.fromJSON.call(u,e,r[s],a);return}}a[o.name]=o.init(e,a)}}),a};ii.addApplyListener=function(e){If.push(e)};ii.removeApplyListener=function(e){var r=If.indexOf(e);r>-1&&If.splice(r,1)};Object.defineProperties(ii.prototype,Np);var If=[];function zT(t,e,r){for(var n in t){var i=t[n];i instanceof Function?i=i.bind(e):n=="handleDOMEvents"&&(i=zT(i,e,{})),r[n]=i}return r}var Hi=function(e){this.props={},e.props&&zT(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:WT("plugin")};Hi.prototype.getState=function(e){return e[this.key]};var iv=Object.create(null);function WT(t){return t in iv?t+"$"+ ++iv[t]:(iv[t]=0,t+"$")}var wu=function(e){e===void 0&&(e="key"),this.key=WT(e)};wu.prototype.get=function(e){return e.config.pluginsByKey[this.key]};wu.prototype.getState=function(e){return e[this.key]};var Pe={};if(typeof navigator<"u"&&typeof document<"u"){var av=/Edge\/(\d+)/.exec(navigator.userAgent),Kw=/MSIE \d/.test(navigator.userAgent),ov=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);Pe.mac=/Mac/.test(navigator.platform);var sv=Pe.ie=!!(Kw||ov||av);Pe.ie_version=Kw?document.documentMode||6:ov?+ov[1]:av?+av[1]:null,Pe.gecko=!sv&&/gecko\/(\d+)/i.test(navigator.userAgent),Pe.gecko_version=Pe.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var lv=!sv&&/Chrome\/(\d+)/.exec(navigator.userAgent);Pe.chrome=!!lv,Pe.chrome_version=lv&&+lv[1],Pe.safari=!sv&&/Apple Computer/.test(navigator.vendor),Pe.ios=Pe.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),Pe.android=/Android \d/.test(navigator.userAgent),Pe.webkit="webkitFontSmoothing"in document.documentElement.style,Pe.webkit_version=Pe.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var Fa=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Fg=function(t){var e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e},Jw=null,ds=function(t,e,r){var n=Jw||(Jw=document.createRange());return n.setEnd(t,r??t.nodeValue.length),n.setStart(t,e||0),n},tp=function(t,e,r,n){return r&&(Yw(t,e,r,n,-1)||Yw(t,e,r,n,1))},eR=/^(img|br|input|textarea|hr)$/i;function Yw(t,e,r,n,i){for(;;){if(t==r&&e==n)return!0;if(e==(i<0?0:Do(t))){var a=t.parentNode;if(a.nodeType!=1||rR(t)||eR.test(t.nodeName)||t.contentEditable=="false")return!1;e=Fa(t)+(i<0?0:1),t=a}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?Do(t):0}else return!1}}function Do(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function tR(t,e,r){for(var n=e==0,i=e==Do(t);n||i;){if(t==r)return!0;var a=Fa(t);if(t=t.parentNode,!t)return!1;n=n&&a==0,i=i&&a==Do(t)}}function rR(t){for(var e,r=t;r&&!(e=r.pmViewDesc);r=r.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}var Hg=function(t){var e=t.isCollapsed;return e&&Pe.chrome&&t.rangeCount&&!t.getRangeAt(0).collapsed&&(e=!1),e};function uc(t,e){var r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=t,r.key=r.code=e,r}function nR(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function rl(t,e){return typeof t=="number"?t:t[e]}function iR(t){var e=t.getBoundingClientRect(),r=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*r,top:e.top,bottom:e.top+t.clientHeight*n}}function Xw(t,e,r){for(var n=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,a=t.dom.ownerDocument,o=r||t.dom;o;o=Fg(o))if(o.nodeType==1){var s=o==a.body||o.nodeType!=1,u=s?nR(a):iR(o),f=0,d=0;if(e.top<u.top+rl(n,"top")?d=-(u.top-e.top+rl(i,"top")):e.bottom>u.bottom-rl(n,"bottom")&&(d=e.bottom-u.bottom+rl(i,"bottom")),e.left<u.left+rl(n,"left")?f=-(u.left-e.left+rl(i,"left")):e.right>u.right-rl(n,"right")&&(f=e.right-u.right+rl(i,"right")),f||d)if(s)a.defaultView.scrollBy(f,d);else{var v=o.scrollLeft,m=o.scrollTop;d&&(o.scrollTop+=d),f&&(o.scrollLeft+=f);var b=o.scrollLeft-v,x=o.scrollTop-m;e={left:e.left-b,top:e.top-x,right:e.right-b,bottom:e.bottom-x}}if(s)break}}function aR(t){for(var e=t.dom.getBoundingClientRect(),r=Math.max(0,e.to
30p),n,i,a=(e.left+e.right)/2,o=r+1;o<Math.min(innerHeight,e.bottom);o+=5){var s=t.root.elementFromPoint(a,o);if(!(s==t.dom||!t.dom.contains(s))){var u=s.getBoundingClientRect();if(u.top>=r-20){n=s,i=u.top;break}}}return{refDOM:n,refTop:i,stack:VT(t.dom)}}function VT(t){for(var e=[],r=t.ownerDocument;t&&(e.push({dom:t,top:t.scrollTop,left:t.scrollLeft}),t!=r);t=Fg(t));return e}function oR(t){var e=t.refDOM,r=t.refTop,n=t.stack,i=e?e.getBoundingClientRect().top:0;GT(n,i==0?0:i-r)}function GT(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=n.dom,a=n.top,o=n.left;i.scrollTop!=a+e&&(i.scrollTop=a+e),i.scrollLeft!=o&&(i.scrollLeft=o)}}var Yu=null;function sR(t){if(t.setActive)return t.setActive();if(Yu)return t.focus(Yu);var e=VT(t);t.focus(Yu==null?{get preventScroll(){return Yu={preventScroll:!0},!0}}:void 0),Yu||(Yu=!1,GT(e,0))}function KT(t,e){for(var r,n=2e8,i,a=0,o=e.top,s=e.top,u=t.firstChild,f=0;u;u=u.nextSibling,f++){var d=void 0;if(u.nodeType==1)d=u.getClientRects();else if(u.nodeType==3)d=ds(u).getClientRects();else continue;for(var v=0;v<d.length;v++){var m=d[v];if(m.top<=o&&m.bottom>=s){o=Math.max(m.bottom,o),s=Math.min(m.top,s);var b=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(b<n){r=u,n=b,i=b&&r.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&b&&(a=f+(e.left>=(m.left+m.right)/2?1:0));continue}}!r&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(a=f+1)}}return r&&r.nodeType==3?lR(r,i):!r||n&&r.nodeType==1?{node:t,offset:a}:KT(r,i)}function lR(t,e){for(var r=t.nodeValue.length,n=document.createRange(),i=0;i<r;i++){n.setEnd(t,i+1),n.setStart(t,i);var a=il(n,1);if(a.top!=a.bottom&&qg(e,a))return{node:t,offset:i+(e.left>=(a.left+a.right)/2?1:0)}}return{node:t,offset:0}}function qg(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function uR(t,e){var r=t.parentNode;return r&&/^li$/i.test(r.nodeName)&&e.left<t.getBoundingClientRect().left?r:t}function cR(t,e,r){var n=KT(e,r),i=n.node,a=n.offset,o=-1;if(i.nodeType==1&&!i.firstChild){var s=i.getBoundingClientRect();o=s.left!=s.right&&r.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(i,a,o)}function fR(t,e,r,n){for(var i=-1,a=e;a!=t.dom;){var o=t.docView.nearestDesc(a,!0);if(!o)return null;if(o.node.isBlock&&o.parent){var s=o.dom.getBoundingClientRect();if(s.left>n.left||s.top>n.top)i=o.posBefore;else if(s.right<n.left||s.bottom<n.top)i=o.posAfter;else break}a=o.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,r)}function JT(t,e,r){var n=t.childNodes.length;if(n&&r.top<r.bottom)for(var i=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-r.top)/(r.bottom-r.top))-2)),a=i;;){var o=t.childNodes[a];if(o.nodeType==1)for(var s=o.getClientRects(),u=0;u<s.length;u++){var f=s[u];if(qg(e,f))return JT(o,e,f)}if((a=(a+1)%n)==i)break}return t}function dR(t,e){var r,n,i=t.root,a,o;if(i.caretPositionFromPoint)try{var s=i.caretPositionFromPoint(e.left,e.top);s&&(r=s,a=r.offsetNode,o=r.offset)}catch{}if(!a&&i.caretRangeFromPoint){var u=i.caretRangeFromPoint(e.left,e.top);u&&(n=u,a=n.startContainer,o=n.startOffset)}var f=i.elementFromPoint(e.left,e.top+1),d;if(!f||!t.dom.contains(f.nodeType!=1?f.parentNode:f)){var v=t.dom.getBoundingClientRect();if(!qg(e,v)||(f=JT(t.dom,e,v),!f))return null}if(Pe.safari)for(var m=f;a&&m;m=Fg(m))m.draggable&&(a=o=null);if(f=uR(f,e),a){if(Pe.gecko&&a.nodeType==1&&(o=Math.min(o,a.childNodes.length),o<a.childNodes.length)){var b=a.childNodes[o],x;b.nodeName=="IMG"&&(x=b.getBoundingClientRect()).right<=e.left&&x.bottom>e.top&&o++}a==t.dom&&o==a.childNodes.length-1&&a.lastChild.nodeType==1&&e.top>a.lastChild.getBoundingClientRect().bottom?d=t.state.doc.content.size:(o==0||a.nodeType!=1||a.childNodes[o-1].nodeName!="BR")&&(d=fR(t,a,o,e))}d==null&&(d=cR(t,f,e));var T=t.docView.nearestDesc(f,!0);return{pos:d,inside:T?T.posAtStart-T.border:-1}}function il(t,e){var r=t.getClientRects();return r.length?r[e<0?0:r.length-1]:t.getBoundingClientRect()}var pR=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function YT(t,e,r){var n=t.docView.domFromPos(e,r<0?-1:1),i=n.node,a=n.offset,o=Pe.webkit||Pe.gecko;if(i.nodeType==3)if(o&&(pR.test(i.nodeValue)||(r<0?!a:a==i.nodeValue.length))){var s=il(ds(i,a,a),r);if(Pe.gecko&&a&&/\s/.test(i.nodeValue[a-1])&&a<i.nodeValue.length){var u=il(ds(i,a-1,a-1),-1);if(u.top==s.top){var f=il(ds(i,a,a+1),-1);if(f.top!=s.top)return cf(f,f.left<u.left)}}return s}else{var d=a,v=a,m=r<0?1:-1;return r<0&&!a?(v++,m=-1):r>=0&&a==i.nodeValue.length?(d--,m=1):r<0?d--:v++,cf(il(ds(i,d,v),m),m<0)}if(!t.state.doc.resolve(e).parent.inlineContent){if(a&&(r<0||a==Do(i))){var b=i.childNodes[a-1];if(b.nodeType==1)return uv(b.getBoundingClientRect(),!1)}
30if(a<Do(i)){var x=i.childNodes[a];if(x.nodeType==1)return uv(x.getBoundingClientRect(),!0)}return uv(i.getBoundingClientRect(),r>=0)}if(a&&(r<0||a==Do(i))){var T=i.childNodes[a-1],S=T.nodeType==3?ds(T,Do(T)-(o?0:1)):T.nodeType==1&&(T.nodeName!="BR"||!T.nextSibling)?T:null;if(S)return cf(il(S,1),!1)}if(a<Do(i)){var M=i.childNodes[a],L=M.nodeType==3?ds(M,0,o?0:1):M.nodeType==1?M:null;if(L)return cf(il(L,-1),!0)}return cf(il(i.nodeType==3?ds(i):i,-r),r>=0)}function cf(t,e){if(t.width==0)return t;var r=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:r,right:r}}function uv(t,e){if(t.height==0)return t;var r=e?t.top:t.bottom;return{top:r,bottom:r,left:t.left,right:t.right}}function XT(t,e,r){var n=t.state,i=t.root.activeElement;n!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return r()}finally{n!=e&&t.updateState(n),i!=t.dom&&i&&i.focus()}}function hR(t,e,r){var n=e.selection,i=r=="up"?n.$from:n.$to;return XT(t,e,function(){for(var a=t.docView.domFromPos(i.pos,r=="up"?-1:1),o=a.node;;){var s=t.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.dom;break}o=s.dom.parentNode}for(var u=YT(t,i.pos,1),f=o.firstChild;f;f=f.nextSibling){var d=void 0;if(f.nodeType==1)d=f.getClientRects();else if(f.nodeType==3)d=ds(f,0,f.nodeValue.length).getClientRects();else continue;for(var v=0;v<d.length;v++){var m=d[v];if(m.bottom>m.top&&(r=="up"?m.bottom<u.top+1:m.top>u.bottom-1))return!1}}return!0})}var vR=/[\u0590-\u08ac]/;function mR(t,e,r){var n=e.selection,i=n.$head;if(!i.parent.isTextblock)return!1;var a=i.parentOffset,o=!a,s=a==i.parent.content.size,u=getSelection();return!vR.test(i.parent.textContent)||!u.modify?r=="left"||r=="backward"?o:s:XT(t,e,function(){var f=u.getRangeAt(0),d=u.focusNode,v=u.focusOffset,m=u.caretBidiLevel;u.modify("move",r,"character");var b=i.depth?t.docView.domAfterPos(i.before()):t.dom,x=!b.contains(u.focusNode.nodeType==1?u.focusNode:u.focusNode.parentNode)||d==u.focusNode&&v==u.focusOffset;return u.removeAllRanges(),u.addRange(f),m!=null&&(u.caretBidiLevel=m),x})}var Qw=null,Zw=null,e0=!1;function gR(t,e,r){return Qw==e&&Zw==r?e0:(Qw=e,Zw=r,e0=r=="up"||r=="down"?hR(t,e,r):mR(t,e,r))}var fo=0,QT=1,Cf=2,fl=3,Ur=function(e,r,n,i){this.parent=e,this.children=r,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=fo},jo={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0}};Ur.prototype.matchesWidget=function(){return!1};Ur.prototype.matchesMark=function(){return!1};Ur.prototype.matchesNode=function(){return!1};Ur.prototype.matchesHack=function(e){return!1};jo.beforePosition.get=function(){return!1};Ur.prototype.parseRule=function(){return null};Ur.prototype.stopEvent=function(){return!1};jo.size.get=function(){for(var t=0,e=0;e<this.children.length;e++)t+=this.children[e].size;return t};jo.border.get=function(){return 0};Ur.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()};Ur.prototype.posBeforeChild=function(e){for(var r=0,n=this.posAtStart;r<this.children.length;r++){var i=this.children[r];if(i==e)return n;n+=i.size}};jo.posBefore.get=function(){return this.parent.posBeforeChild(this)};jo.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0};jo.posAfter.get=function(){return this.posBefore+this.size};jo.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border};Ur.prototype.localPosFromDOM=function(e,r,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){var i,a;if(e==this.contentDOM)i=e.childNodes[r-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{var o,s;if(e==this.contentDOM)o=e.childNodes[r];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}var u;if(e==this.dom&&this.contentDOM)u=r>Fa(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))u=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(r==0)for(var f=e;;f=f.parentNode){if(f==this.dom){u=!1;break}if(f.parentNode.firstChild!=f)break}if(u==null&&r==e.childNodes.length)for(var d=e;;d=d.parentNode){if(d==this.dom){u=!0;break}if(d.parentNode.lastChild!=d)break}}return u??n>0?this.posAtEnd:this.posAtStart};Ur.prototype.nearestDesc=function(e,r){for(var n=!0,i=e;i;i=i.parentNode){var a=this.getDesc(i);if(a&&(!r||a.node))if(n&&a.nodeDOM&&!(a.nodeDOM.nodeType==1?a.nodeDOM.contains(e.nodeType==1?e:e.parentNode):a.nodeDOM==e))n=!1;else return a}};Ur.prototype.getDesc=function(e){for(var r=e.pmViewDesc,n=r;n;n=n.parent)if(n==this)return r};Ur.prototype.posFromDOM=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=this.getDesc(i);if(a)return a.localPosFromDOM(e,r,n)}return-1};Ur.prototype.descAt=function(e){for(var r=0,n=0;r<this.children.length;r++){var i=this.children[r],a=n+i.size;if(n==e&&a!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<a)return i.descAt(e-n-i.border);n=a}};Ur.prototype.domFromPos=function(e,r){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,i=0,a=!0;;i++,a=!1){for(;i<this.children.length&&(this.children[i].beforePosition||this.children[i].dom.parentNode!=this.contentDOM);)n+=this.children[i++].size;var o=i==this.children.length?null:this.children[i];if(n==e&&(r==0||!o||!o.size||o.border||r<0&&a)||o&&o.domAtom&&e<n+o.size)return{node:this.contentDOM,offset:o?Fa(o.dom):this.contentDOM.childNodes.length};if(!o)throw new Error("Invalid position "+e);var s=n+o.size;if(!o.domAtom&&(r<0&&!o.border?s>=e:s>e)&&(s>e||i+1>=this.children.length||!this.children[i+1].beforePosition))return o.domFromPos(e-n-o.border,r);n=s}};Ur.prototype.parseRange=function(e,r,n){if(n===void 0&&(n=0),this.children.length==0)return{node:this.contentDOM,from:e,to:r,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var i=-1,a=-1,o=n,s=0;;s++){var u=this.children[s],f=o+u.size;if(i==-1&&e<=f){var d=o+u.border;if(e>=d&&r<=f-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(e,r,d);e=o;for(var v=s;v>0;
30v--){var m=this.children[v-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){i=Fa(m.dom)+1;break}e-=m.size}i==-1&&(i=0)}if(i>-1&&(f>r||s==this.children.length-1)){r=f;for(var b=s+1;b<this.children.length;b++){var x=this.children[b];if(x.size&&x.dom.parentNode==this.contentDOM&&!x.emptyChildAt(-1)){a=Fa(x.dom);break}r+=x.size}a==-1&&(a=this.contentDOM.childNodes.length);break}o=f}return{node:this.contentDOM,from:e,to:r,fromOffset:i,toOffset:a}};Ur.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var r=this.children[e<0?0:this.children.length-1];return r.size==0||r.emptyChildAt(e)};Ur.prototype.domAfterPos=function(e){var r=this.domFromPos(e,0),n=r.node,i=r.offset;if(n.nodeType!=1||i==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[i]};Ur.prototype.setSelection=function(e,r,n,i){for(var a=Math.min(e,r),o=Math.max(e,r),s=0,u=0;s<this.children.length;s++){var f=this.children[s],d=u+f.size;if(a>u&&o<d)return f.setSelection(e-u-f.border,r-u-f.border,n,i);u=d}var v=this.domFromPos(e,e?-1:1),m=r==e?v:this.domFromPos(r,r?-1:1),b=n.getSelection(),x=!1;if((Pe.gecko||Pe.safari)&&e==r){var T=v.node,S=v.offset;if(T.nodeType==3){if(x=S&&T.nodeValue[S-1]==`
31`,x&&S==T.nodeValue.length)for(var M=T,L=void 0;M;M=M.parentNode){if(L=M.nextSibling){L.nodeName=="BR"&&(v=m={node:L.parentNode,offset:Fa(L)+1});break}var P=M.pmViewDesc;if(P&&P.node&&P.node.isBlock)break}}else{var A=T.childNodes[S-1];x=A&&(A.nodeName=="BR"||A.contentEditable=="false")}}
31if(Pe.gecko&&b.focusNode&&b.focusNode!=m.node&&b.focusNode.nodeType==1){var H=b.focusNode.childNodes[b.focusOffset];H&&H.contentEditable=="false"&&(i=!0)}if(!(!(i||x&&Pe.safari)&&tp(v.node,v.offset,b.anchorNode,b.anchorOffset)&&tp(m.node,m.offset,b.focusNode,b.focusOffset))){var W=!1;if((b.extend||e==r)&&!x){b.collapse(v.node,v.offset);try{e!=r&&b.extend(m.node,m.offset),W=!0}catch(X){if(!(X instanceof DOMException))throw X}}if(!W){if(e>r){var J=v;v=m,m=J}var ee=document.createRange();ee.setEnd(m.node,m.offset),ee.setStart(v.node,v.offset),b.removeAllRanges(),b.addRange(ee)}}};Ur.prototype.ignoreMutation=function(e){return!this.contentDOM&&e.type!="selection"};jo.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)};Ur.prototype.markDirty=function(e,r){for(var n=0,i=0;i<this.children.length;i++){var a=this.children[i],o=n+a.size;if(n==o?e<=o&&r>=n:e<o&&r>n){var s=n+a.border,u=o-a.border;if(e>=s&&r<=u){this.dirty=e==n||r==o?Cf:QT,e==s&&r==u&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=fl:a.markDirty(e-s,r-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM?Cf:fl}n=o}this.dirty=Cf};Ur.prototype.markParentsDirty=function(){for(var e=1,r=this.parent;r;r=r.parent,e++){var n=e==1?Cf:QT;r.dirty<n&&(r.dirty=n)}};jo.domAtom.get=function(){return!1};Object.defineProperties(Ur.prototype,jo);var dl=[],yR=function(t){function e(n,i,a,o){var s,u=i.type.toDOM;if(typeof u=="function"&&(u=u(a,function(){if(!s)return o;if(s.parent)return s.parent.posBeforeChild(s)})),!i.type.spec.raw){if(u.nodeType!=1){var f=document.createElement("span");f.appendChild(u),u=f}u.contentEditable=!1,u.classList.add("ProseMirror-widget")}t.call(this,n,dl,u,null),this.widget=i,s=this}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={beforePosition:{configurable:!0},domAtom:{configurable:!0}};return r.beforePosition.get=function(){return this.widget.type.side<0},e.prototype.matchesWidget=function(i){return this.dirty==fo&&i.type.eq(this.widget.type)},e.prototype.parseRule=function(){return{ignore:!0}},e.prototype.stopEvent=function(i){var a=this.widget.spec.stopEvent;return a?a(i):!1},e.prototype.ignoreMutation=function(i){return i.type!="selection"||this.widget.spec.ignoreSelection},r.domAtom.get=function(){return!0},Object.defineProperties(e.prototype,r),e}(Ur),bR=function(t){function e(n,i,a,o){t.call(this,n,dl,i,null),this.textDOM=a,this.text=o}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={size:{configurable:!0}};return r.size.get=function(){return this.text.length},e.prototype.localPosFromDOM=function(i,a){return i!=this.textDOM?this.posAtStart+(a?this.size:0):this.posAtStart+a},e.prototype.domFromPos=function(i){return{node:this.textDOM,offset:i}},e.prototype.ignoreMutation=function(i){return i.type==="characterData"&&i.target.nodeValue==i.oldValue},Object.defineProperties(e.prototype,r),e}(Ur),$g=function(t){function e(r,n,i,a){t.call(this,r,[],i,a),this.mark=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(n,i,a,o){var s=o.nodeViews[i.type.name],u=s&&s(i,o,a);return(!u||!u.dom)&&(u=bi.renderSpec(document,i.type.spec.toDOM(i,a))),new e(n,i,u.dom,u.contentDOM||u.dom)},e.prototype.parseRule=function(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},e.prototype.matchesMark=function(n){return this.dirty!=fl&&this.mark.eq(n)},e.prototype.markDirty=function(n,i){if(t.prototype.markDirty.call(this,n,i),this.dirty!=fo){for(var a=this.parent;!a.node;)a=a.parent;a.dirty<this.dirty&&(a.dirty=this.dirty),this.dirty=fo}},e.prototype.slice=function(n,i,a){var o=e.create(this.parent,this.mark,!0,a),s=this.children,u=this.size;i<u&&(s=Rm(s,i,u,a)),n>0&&(s=Rm(s,0,n,a));for(var f=0;f<s.length;f++)s[f].parent=o;return o.children=s,o},e}(Ur),Wf=function(t){function e(n,i,a,o,s,u,f,d,v){t.call(this,n,i.isLeaf?dl:[],s,u),this.nodeDOM=f,this.node=i,this.outerDeco=a,this.innerDeco=o,u&&this.updateChildren(d,v)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return e.create=function(i,a,o,s,u,f){var d,v=u.nodeViews[a.type.name],m,b=v&&v(a,u,function(){if(!m)return f;if(m.parent)return m.parent.posBeforeChild(m)},o,s),x=b&&b.dom,T=b&&b.contentDOM;if(a.isText){if(!x)x=document.createTextNode(a.text);else if(x.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else x||(d=bi.renderSpec(document,a.type.spec.toDOM(a)),x=d.dom,T=d.contentDOM);!T&&!a.isText&&x.nodeName!="BR"&&(x.hasAttribute("contenteditable")||(x.contentEditable=!1),a.type.spec.draggable&&(x.draggable=!0));var S=x;return x=n_(x,o,a),b?m=new xR(i,a,o,s,x,T,S,b,u,f+1):a.isText?new e_(i,a,o,s,x,S,u):new e(i,a,o,s,x,T,S,u,f+1)},e.prototype.parseRule=function(){var i=this;if(this.node.type.spec.reparseInView)return null;
31var a={node:this.node.type.name,attrs:this.node.attrs};return this.node.type.spec.code&&(a.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?a.contentElement=this.contentDOM:a.getContent=function(){return i.contentDOM?Ee.empty:i.node.content},a},e.prototype.matchesNode=function(i,a,o){return this.dirty==fo&&i.eq(this.node)&&Im(a,this.outerDeco)&&o.eq(this.innerDeco)},r.size.get=function(){return this.node.nodeSize},r.border.get=function(){return this.node.isLeaf?0:1},e.prototype.updateChildren=function(i,a){var o=this,s=this.node.inlineContent,u=a,f=i.composing&&this.localCompositionInfo(i,a),d=f&&f.pos>-1?f:null,v=f&&f.pos<0,m=new ja(this,d&&d.node);_R(this.node,this.innerDeco,function(b,x,T){b.spec.marks?m.syncToMarks(b.spec.marks,s,i):b.type.side>=0&&!T&&m.syncToMarks(x==o.node.childCount?Yt.none:o.node.child(x).marks,s,i),m.placeWidget(b,i,u)},function(b,x,T,S){m.syncToMarks(b.marks,s,i);var M;m.findNodeMatch(b,x,T,S)||v&&i.state.selection.from>u&&i.state.selection.to<u+b.nodeSize&&(M=m.findIndexWithChild(f.node))>-1&&m.updateNodeAt(b,x,T,M,i)||m.updateNextNode(b,x,T,i,S)||m.addNode(b,x,T,i,u),u+=b.nodeSize}),m.syncToMarks(dl,s,i),this.node.isTextblock&&m.addTextblockHacks(),m.destroyRest(),(m.changed||this.dirty==Cf)&&(d&&this.protectLocalComposition(i,d),t_(this.contentDOM,this.children,i),Pe.ios&&SR(this.dom))},e.prototype.localCompositionInfo=function(i,a){var o=i.state.selection,s=o.from,u=o.to;if(!(!(i.state.selection instanceof $r)||s<a||u>a+this.node.content.size)){var f=i.root.getSelection(),d=kR(f.focusNode,f.focusOffset);if(!(!d||!this.dom.contains(d.parentNode)))if(this.node.inlineContent){var v=d.nodeValue,m=OR(this.node.content,v,s-a,u-a);return m<0?null:{node:d,pos:m,text:v}}else return{node:d,pos:-1}}},e.prototype.protectLocalComposition=function(i,a){var o=a.node,s=a.pos,u=a.text;if(!this.getDesc(o)){for(var f=o;f.parentNode!=this.contentDOM;f=f.parentNode){for(;f.previousSibling;)f.parentNode.removeChild(f.previousSibling);for(;f.nextSibling;)f.parentNode.removeChild(f.nextSibling);f.pmViewDesc&&(f.pmViewDesc=null)}var d=new bR(this,f,o,u);i.compositionNodes.push(d),this.children=Rm(this.children,s,s+u.length,i,d)}},e.prototype.update=function(i,a,o,s){return this.dirty==fl||!i.sameMarkup(this.node)?!1:(this.updateInner(i,a,o,s),!0)},e.prototype.updateInner=function(i,a,o,s){this.updateOuterDeco(a),this.node=i,this.innerDeco=o,this.contentDOM&&this.updateChildren(s,this.posAtStart),this.dirty=fo},e.prototype.updateOuterDeco=function(i){if(!Im(i,this.outerDeco)){var a=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=r_(this.dom,this.nodeDOM,Dm(this.outerDeco,this.node,a),Dm(i,this.node,a)),this.dom!=o&&(o.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=i}},e.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)},e.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")},r.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(e.prototype,r),e}(Ur);function ZT(t,e,r,n,i){return n_(n,e,t),new Wf(null,t,e,r,n,n,n,i,0)}var e_=function(t){function e(n,i,a,o,s,u,f){t.call(this,n,i,a,o,s,null,u,f)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={domAtom:{configurable:!0}};return e.prototype.parseRule=function(){for(var i=this.nodeDOM.parentNode;i&&i!=this.dom&&!i.pmIsDeco;)i=i.parentNode;return{skip:i||!0}},e.prototype.update=function(i,a,o,s){return this.dirty==fl||this.dirty!=fo&&!this.inParent()||!i.sameMarkup(this.node)?!1:(this.updateOuterDeco(a),(this.dirty!=fo||i.text!=this.node.text)&&i.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=i.text,s.trackWrites==this.nodeDOM&&(s.trackWrites=null)),this.node=i,this.dirty=fo,!0)},e.prototype.inParent=function(){for(var i=this.parent.contentDOM,a=this.nodeDOM;a;a=a.parentNode)if(a==i)return!0;return!1},e.prototype.domFromPos=function(i){return{node:this.nodeDOM,offset:i}},e.prototype.localPosFromDOM=function(i,a,o){return i==this.nodeDOM?this.posAtStart+Math.min(a,this.node.text.length):t.prototype.localPosFromDOM.call(this,i,a,o)},e.prototype.ignoreMutation=function(i){return i.type!="characterData"&&i.type!="selection"},e.prototype.slice=function(i,a,o){var s=this.node.cut(i,a),u=document.createTextNode(s.text);return new e(this.parent,s,this.outerDeco,this.innerDeco,u,u,o)},e.prototype.markDirty=function(i,a){t.prototype.markDirty.call(this,i,a),this.dom!=this.nodeDOM&&(i==0||a==this.nodeDOM.nodeValue.length)&&(this.dirty=fl)},r.domAtom.get=function(){return!1},Object.defineProperties(e.prototype,r),e}(Wf),wR=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={domAtom:{configurable:!0}};return e.prototype.parseRule=function(){return{ignore:!0}},e.prototype.matchesHack=function(i){return this.dirty==fo&&this.dom.nodeName==i},r.domAtom.get=function(){return!0},Object.defineProperties(e.prototype,r),e}(Ur),xR=function(t){function e(r,n,i,a,o,s,u,f,d,v){t.call(this,r,n,i,a,o,s,u,d,v),this.spec=f}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(n,i,a,o){if(this.dirty==fl)return!1;if(this.spec.update){var s=this.spec.update(n,i,a);return s&&this.updateInner(n,i,a,o),s}else return!this.contentDOM&&!n.isLeaf?!1:t.prototype.update.call(this,n,i,a,o)},e.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():t.prototype.selectNode.call(this)},e.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():t.prototype.deselectNode.call(this)},e.prototype.setSelection=function(n,i,a,o){this.spec.setSelection?this.spec.setSelection(n,i,a):t.prototype.setSelection.call(this,n,i,a,o)},e.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),t.prototype.destroy.call(this)},e.prototype.stopEvent=function(n){return this.spec.stopEvent?this.spec.stopEvent(n):!1},e.prototype.ignoreMutation=function(n){return this.spec.ignoreMutation?this.spec.ignoreMutation(n):t.prototype.ignoreMutation.call(this,n)},e}(Wf);function t_(t,e,r){for(var n=t.firstChild,i=!1,a=0;a<e.length;a++){var o=e[a],s=o.dom;if(s.parentNode==t){for(;s!=n;)n=t0(n),i=!0;n=n.nextSibling}else i=!0,t.insertBefore(s,n);if(o instanceof $g){var u=n?n.previousSibling:t.lastChild;t_(o.contentDOM,o.children,r),n=u?u.nextSibling:t.firstChild}}for(;n;)n=t0(n),i=!0;i&&r.trackWrites==t&&(r.trackWrites=null)}function Ef(t){t&&(this.nodeName=t)}Ef.prototype=Object.create(null);var ou=[new Ef];function Dm(t,e,r){if(t.length==0)return ou;for(var n=r?ou[0]:new Ef,i=[n],a=0;a<t.length;a++){var o=t[a].type.attrs;if(o){o.nodeName&&i.push(n=new Ef(o.nodeName));for(var s in o){var u=o[s];u!=null&&(r&&i.length==1&&i.push(n=new Ef(e.isInline?"span":"div")),s=="class"?n.class=(n.class?n.class+" ":"")+u:s=="style"?n.style=(n.style?n.style+";":"")+u:s!="nodeName"&&(n[s]=u))}}}return i}function r_(t,e,r,n){if(r==ou&&n==ou)return e;for(var i=e,a=0;a<n.length;a++){var o=n[a],s=r[a];if(a){var u=void 0;s&&s.nodeName==o.nodeName&&i!=t&&(u=i.parentNode)&&u.tagName.toLowerCase()==o.nodeName||(u=document.createElement(o.nodeName),u.pmIsDeco=!0,u.appendChild(i),s=ou[0]),i=u}CR(i,s||ou[0],o)}return i}function CR(t,e,r){for(var n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in r)&&t.removeAttribute(n);for(var i in r)i!="class"&&i!="style"&&i!="nodeName"&&r[i]!=e[i]&&t.setAttribute(i,r[i]);if(e.class!=r.class){for(var a=e.class?e.class.split(" ").filter(
31Boolean):dl,o=r.class?r.class.split(" ").filter(Boolean):dl,s=0;s<a.length;s++)o.indexOf(a[s])==-1&&t.classList.remove(a[s]);for(var u=0;u<o.length;u++)a.indexOf(o[u])==-1&&t.classList.add(o[u])}if(e.style!=r.style){if(e.style)for(var f=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,d;d=f.exec(e.style);)t.style.removeProperty(d[1]);r.style&&(t.style.cssText+=r.style)}}function n_(t,e,r){return r_(t,t,ou,Dm(e,r,t.nodeType!=1))}function Im(t,e){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(!t[r].type.eq(e[r].type))return!1;return!0}function t0(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}var ja=function(e,r){this.top=e,this.lock=r,this.index=0,this.stack=[],this.changed=!1,this.preMatch=ER(e.node.content,e.children)};ja.prototype.destroyBetween=function(e,r){if(e!=r){for(var n=e;n<r;n++)this.top.children[n].destroy();this.top.children.splice(e,r-e),this.changed=!0}};ja.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)};ja.prototype.syncToMarks=function(e,r,n){for(var i=0,a=this.stack.length>>1,o=Math.min(a,e.length);i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=fo,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);for(var s=-1,u=this.index;u<Math.min(this.index+3,this.top.children.length);u++)if(this.top.children[u].matchesMark(e[a])){s=u;break}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var f=$g.create(this.top,e[a],r,n);this.top.children.splice(this.index,0,f),this.top=f,this.changed=!0}this.index=0,a++}};ja.prototype.findNodeMatch=function(e,r,n,i){var a=this.top.children,o=-1;if(i>=this.preMatch.index){for(var s=this.index;s<a.length;s++)if(a[s].matchesNode(e,r,n)){o=s;break}}else for(var u=this.index,f=Math.min(a.length,u+1);u<f;u++){var d=a[u];if(d.matchesNode(e,r,n)&&!this.preMatch.matched.has(d)){o=u;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)};ja.prototype.updateNodeAt=function(e,r,n,i,a){var o=this.top.children[i];return o.update(e,r,n,a)?(this.destroyBetween(this.index,i),this.index=i+1,!0):!1};ja.prototype.findIndexWithChild=function(e){for(;;){var r=e.parentNode;if(!r)return-1;if(r==this.top.contentDOM){var n=e.pmViewDesc;if(n){for(var i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==n)return i}return-1}e=r}};ja.prototype.updateNextNode=function(e,r,n,i,a){for(var o=this.index;o<this.top.children.length;o++){var s=this.top.children[o];if(s instanceof Wf){var u=this.preMatch.matched.get(s);if(u!=null&&u!=a)return!1;var f=s.dom,d=this.lock&&(f==this.lock||f.nodeType==1&&f.contains(this.lock.parentNode))&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=fl&&Im(r,s.outerDeco));if(!d&&s.update(e,r,n,i))return this.destroyBetween(this.index,o),s.dom!=f&&(this.changed=!0),this.index++,!0;break}}return!1};ja.prototype.addNode=function(e,r,n,i,a){this.top.children.splice(this.index++,0,Wf.create(this.top,e,r,n,i,a)),this.changed=!0};ja.prototype.placeWidget=function(e,r,n){var i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{var a=new yR(this.top,e,r,n);this.top.children.splice(this.index++,0,a),this.changed=!0}};ja.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof $g;)e=e.children[e.children.length-1];(!e||!(e instanceof e_)||/\n$/.test(e.node.text))&&(Pe.safari&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG"),this.addHackNode("BR"))};ja.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var r=document.createElement(e);this.top.children.splice(this.index++,0,new wR(this.top,dl,r,null)),this.changed=!0}};function ER(t,e){for(var r=t.childCount,n=e.length,i=new Map;r>0&&n>0;n--){var a=e[n-1],o=a.node;if(o){if(o!=t.child(r-1))break;--r,i.set(a,r)}}return{index:r,matched:i}}function TR(t,e){return t.type.side-e.type.side}function _R(t,e,r,n){var i=e.locals(t),a=0;if(i.length==0){for(var o=0;o<t.childCount;o++){var s=t.child(o);n(s,i,e.forChild(a,s),o),a+=s.nodeSize}return}for(var u=0,f=[],d=null,v=0;;){if(u<i.length&&i[u].to==a){for(var m=i[u++],b=void 0;u<i.length&&i[u].to==a;)(b||(b=[m])).push(i[u++]);if(b){b.sort(TR);for(var x=0;x<b.length;x++)r(b[x],v,!!d)}else r(m,v,!!d)}var T=void 0,S=void 0;if(d)S=-1,T=d,d=null;else if(v<t.childCount)S=v,T=t.child(v++);else break;for(var M=0;M<f.length;M++)f[M].to<=a&&f.splice(M--,1);for(;u<i.length&&i[u].from<=a&&i[u].to>a;)f.push(i[u++]);var L=a+T.nodeSize;if(T.isText){var P=L;u<i.length&&i[u].from<P&&(P=i[u].from);for(var A=0;A<f.length;A++)f[A].to<P&&(P=f[A].to);P<L&&(d=T.cut(P-a),T=T.cut(0,P-a),L=P,S=-1)}var H=f.length?T.isInline&&!T.isLeaf?f.filter(function(W){return!W.inline}):f.slice():dl;n(T,H,e.forChild(a,T),S),a=L}}
31function SR(t){if(t.nodeName=="UL"||t.nodeName=="OL"){var e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function kR(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=Do(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function OR(t,e,r,n){for(var i=0,a=0;i<t.childCount&&a<=n;){var o=t.child(i++),s=a;if(a+=o.nodeSize,!!o.isText){for(var u=o.text;i<t.childCount;){var f=t.child(i++);if(a+=f.nodeSize,!f.isText)break;u+=f.text}if(a>=r){var d=u.lastIndexOf(e,n-s);if(d>=0&&d+e.length+s>=r)return s+d}}}return-1}function Rm(t,e,r,n,i){for(var a=[],o=0,s=0;o<t.length;o++){var u=t[o],f=s,d=s+=u.size;f>=r||d<=e?a.push(u):(f<e&&a.push(u.slice(0,e-f,n)),i&&(a.push(i),i=null),d>r&&a.push(u.slice(r-f,u.size,n)))}return a}function i_(t,e){var r=t.root.getSelection(),n=t.state.doc;if(!r.focusNode)return null;var i=t.docView.nearestDesc(r.focusNode),a=i&&i.size==0,o=t.docView.posFromDOM(r.focusNode,r.focusOffset);if(o<0)return null;var s=n.resolve(o),u,f;if(Hg(r)){for(u=s;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Zt.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&tR(r.focusNode,r.focusOffset,i.dom))){var d=i.posBefore;f=new Zt(o==d?s:n.resolve(d))}}else{var v=t.docView.posFromDOM(r.anchorNode,r.anchorOffset);if(v<0)return null;u=n.resolve(v)}if(!f){var m=e=="pointer"||t.state.selection.head<s.pos&&!a?1:-1;f=Ug(t,u,s,m)}return f}function a_(t){return t.editable?t.hasFocus():jg(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function xu(t,e){var r=t.state.selection;if(o_(t,r),!!a_(t)){if(t.domObserver.disconnectSelection(),t.cursorWrapper)MR(t);else{var n=r.anchor,i=r.head,a,o;r0&&!(r instanceof $r)&&(r.$from.parent.inlineContent||(a=n0(t,r.from)),!r.empty&&!r.$from.parent.inlineContent&&(o=n0(t,r.to))),t.docView.setSelection(n,i,t.root,e),r0&&(a&&i0(a),o&&i0(o)),r.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&AR(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}var r0=Pe.safari||Pe.chrome&&Pe.chrome_version<63;function n0(t,e){var r=t.docView.domFromPos(e,0),n=r.node,i=r.offset,a=i<n.childNodes.length?n.childNodes[i]:null,o=i?n.childNodes[i-1]:null;if(Pe.safari&&a&&a.contentEditable=="false")return cv(a);if((!a||a.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(a)return cv(a);if(o)return cv(o)}}function cv(t){return t.contentEditable="true",Pe.safari&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function i0(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function AR(t){var e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.hideSelectionGuard);var r=t.root.getSelection(),n=r.anchorNode,i=r.anchorOffset;e.addEventListener("selectionchange",t.hideSelectionGuard=function(){(r.anchorNode!=n||r.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.hideSelectionGuard),setTimeout(function(){(!a_(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function MR(t){var e=t.root.getSelection(),r=document.createRange(),n=t.cursorWrapper.dom,i=n.nodeName=="IMG";i?r.setEnd(n.parentNode,Fa(n)+1):r.setEnd(n,0),r.collapse(!1),e.removeAllRanges(),e.addRange(r),!i&&!t.state.selection.visible&&Pe.ie&&Pe.ie_version<=11&&(n.disabled=!0,n.disabled=!1)}function o_(t,e){if(e instanceof Zt){var r=t.docView.descAt(e.from);r!=t.lastSelectedViewDesc&&(a0(t),r&&r.selectNode(),t.lastSelectedViewDesc=r)}else a0(t)}function a0(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=null)}function Ug(t,e,r,n){return t.someProp("createSelectionBetween",function(i){return i(t,e,r)})||$r.between(e,r,n)}function LR(t){return t.editable&&t.root.activeElement!=t.dom?!1:jg(t)}function jg(t){var e=t.root.getSelection();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function DR(t){var e=t.docView.domFromPos(t.state.selection.anchor,0),r=t.root.getSelection();return tp(e.node,e.offset,r.anchorNode,r.anchorOffset)}function Nm(t,e){var r=t.selection,n=r.$anchor,i=r.$head,a=e>0?n.max(i):n.min(i),o=a.parent.inlineContent?a.depth?t.doc.resolve(e>0?a.after():a.before()):null:a;return o&&er.findFrom(o,e)}function iu(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function o0(t,e,r){var n=t.state.selection;if(n instanceof $r){if(!n.empty||r.indexOf("s")>-1)return!1;if(t.endOfTextblock(e>0?"right":"left")){var i=Nm(t.state,e);return i&&i instanceof Zt?iu(t,i):!1}else if(!(Pe.mac&&r.indexOf("m")>-1)){var a=n.$head,o=a.textOffset?null:e<0?a.nodeBefore:a.nodeAfter,s;if(!o||o.isText)return!1;var u=e<0?a.pos-o.nodeSize:a.pos;return o.isAtom||(s=t.docView.descAt(u))&&!s.contentDOM?Zt.isSelectable(
31o)?iu(t,new Zt(e<0?t.state.doc.resolve(a.pos-o.nodeSize):a)):Pe.webkit?iu(t,new $r(t.state.doc.resolve(e<0?u:u+o.nodeSize))):!1:!1}}else{if(n instanceof Zt&&n.node.isInline)return iu(t,new $r(e>0?n.$to:n.$from));var f=Nm(t.state,e);return f?iu(t,f):!1}}function rp(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Tf(t){var e=t.pmViewDesc;return e&&e.size==0&&(t.nextSibling||t.nodeName!="BR")}function fv(t){var e=t.root.getSelection(),r=e.focusNode,n=e.focusOffset;if(r){var i,a,o=!1;for(Pe.gecko&&r.nodeType==1&&n<rp(r)&&Tf(r.childNodes[n])&&(o=!0);;)if(n>0){if(r.nodeType!=1)break;var s=r.childNodes[n-1];if(Tf(s))i=r,a=--n;else if(s.nodeType==3)r=s,n=r.nodeValue.length;else break}else{if(s_(r))break;for(var u=r.previousSibling;u&&Tf(u);)i=r.parentNode,a=Fa(u),u=u.previousSibling;if(u)r=u,n=rp(r);else{if(r=r.parentNode,r==t.dom)break;n=0}}o?Pm(t,e,r,n):i&&Pm(t,e,i,a)}}function dv(t){var e=t.root.getSelection(),r=e.focusNode,n=e.focusOffset;if(r){for(var i=rp(r),a,o;;)if(n<i){if(r.nodeType!=1)break;var s=r.childNodes[n];if(Tf(s))a=r,o=++n;else break}else{if(s_(r))break;for(var u=r.nextSibling;u&&Tf(u);)a=u.parentNode,o=Fa(u)+1,u=u.nextSibling;if(u)r=u,n=0,i=rp(r);else{if(r=r.parentNode,r==t.dom)break;n=i=0}}a&&Pm(t,e,a,o)}}function s_(t){var e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Pm(t,e,r,n){if(Hg(e)){var i=document.createRange();i.setEnd(r,n),i.setStart(r,n),e.removeAllRanges(),e.addRange(i)}else e.extend&&e.extend(r,n);t.domObserver.setCurSelection();var a=t.state;setTimeout(function(){t.state==a&&xu(t)},50)}function s0(t,e,r){var n=t.state.selection;if(n instanceof $r&&!n.empty||r.indexOf("s")>-1||Pe.mac&&r.indexOf("m")>-1)return!1;var i=n.$from,a=n.$to;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){var o=Nm(t.state,e);if(o&&o instanceof Zt)return iu(t,o)}if(!i.parent.inlineContent){var s=e<0?i:a,u=n instanceof yo?er.near(s,e):er.findFrom(s,e);return u?iu(t,u):!1}return!1}function l0(t,e){if(!(t.state.selection instanceof $r))return!0;var r=t.state.selection,n=r.$head,i=r.$anchor,a=r.empty;if(!n.sameParent(i))return!0;if(!a)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;var o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){var s=t.state.tr;return e<0?s.delete(n.pos-o.nodeSize,n.pos):s.delete(n.pos,n.pos+o.nodeSize),t.dispatch(s),!0}return!1}function u0(t,e,r){t.domObserver.stop(),e.contentEditable=r,t.domObserver.start()}function IR(t){if(!(!Pe.safari||t.state.selection.$head.parentOffset>0)){var e=t.root.getSelection(),r=e.focusNode,n=e.focusOffset;if(r&&r.nodeType==1&&n==0&&r.firstChild&&r.firstChild.contentEditable=="false"){var i=r.firstChild;u0(t,i,!0),setTimeout(function(){return u0(t,i,!1)},20)}}}function RR(t){var e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function NR(t,e){var r=e.keyCode,n=RR(e);return r==8||Pe.mac&&r==72&&n=="c"?l0(t,-1)||fv(t):r==46||Pe.mac&&r==68&&n=="c"?l0(t,1)||dv(t):r==13||r==27?!0:r==37?o0(t,-1,n)||fv(t):r==39?o0(t,1,n)||dv(t):r==38?s0(t,-1,n)||fv(t):r==40?IR(t)||s0(t,1,n)||dv(t):n==(Pe.mac?"m":"c")&&(r==66||r==73||r==89||r==90)}function PR(t,e,r){var n=t.docView.parseRange(e,r),i=n.node,a=n.fromOffset,o=n.toOffset,s=n.from,u=n.to,f=t.root.getSelection(),d=null,v=f.anchorNode;if(v&&t.dom.contains(v.nodeType==1?v:v.parentNode)&&(d=[{node:v,offset:f.anchorOffset}],Hg(f)||d.push({node:f.focusNode,offset:f.focusOffset})),Pe.chrome&&t.lastKeyCode===8)for(var m=o;m>a;m--){var b=i.childNodes[m-1],x=b.pmViewDesc;if(b.nodeName=="BR"&&!x){o=m;break}if(!x||x.size)break}var T=t.state.doc,S=t.someProp("domParser")||Pa.fromSchema(t.state.schema),M=T.resolve(s),L=null,P=S.parse(i,{topNode:M.parent,topMatch:M.parent.contentMatchAt(M.index()),topOpen:!0,from:a,to:o,preserveWhitespace:M.parent.type.spec.code?"full":!0,editableContent:!0,findPositions:d,ruleFromNode:BR,context:M});if(d&&d[0].pos!=null){var A=d[0].pos,H=d[1]&&d[1].pos;H==null&&(H=A),L={anchor:A+s,head:H+s}}return{doc:P,sel:L,from:s,to:u}}function BR(t){var e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Pe.safari&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){var r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(t.parentNode.lastChild==t||Pe.safari&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0}}function FR(t,e,r,n,i){if(e<0){var a=t.lastSelectionTime>Date.now()-50?t.lastSelectionOrigin:null,o=i_(t,a);if(o&&!t.state.selection.eq(o)){var s=t.state.tr.setSelection(o);a=="pointer"?s.setMeta("pointer",!0):a=="key"&&s.scrollIntoView(),t.dispatch(s)}return}var u=t.state.doc.resolve(e),f=u.sharedDepth(r);e=u.before(f+1),r=t.state.doc.resolve(r).after(f+1);var d=t.state.selection,v=PR(t,e,r);
31if(Pe.chrome&&t.cursorWrapper&&v.sel&&v.sel.anchor==t.cursorWrapper.deco.from){var m=t.cursorWrapper.deco.type.toDOM.nextSibling,b=m&&m.nodeValue?m.nodeValue.length:1;v.sel={anchor:v.sel.anchor+b,head:v.sel.anchor+b}}var x=t.state.doc,T=x.slice(v.from,v.to),S,M;t.lastKeyCode===8&&Date.now()-100<t.lastKeyCodeTime?(S=t.state.selection.to,M="end"):(S=t.state.selection.from,M="start"),t.lastKeyCode=null;var L=$R(T.content,v.doc.content,v.from,S,M);if(!L)if(n&&d instanceof $r&&!d.empty&&d.$head.sameParent(d.$anchor)&&!t.composing&&!(v.sel&&v.sel.anchor!=v.sel.head))L={start:d.from,endA:d.to,endB:d.to};else if((Pe.ios&&t.lastIOSEnter>Date.now()-225||Pe.android)&&i.some(function(He){return He.nodeName=="DIV"||He.nodeName=="P"})&&t.someProp("handleKeyDown",function(He){return He(t,uc(13,"Enter"))})){t.lastIOSEnter=0;return}else{if(v.sel){var P=c0(t,t.state.doc,v.sel);P&&!P.eq(t.state.selection)&&t.dispatch(t.state.tr.setSelection(P))}return}t.domChangeCount++,t.state.selection.from<t.state.selection.to&&L.start==L.endB&&t.state.selection instanceof $r&&(L.start>t.state.selection.from&&L.start<=t.state.selection.from+2?L.start=t.state.selection.from:L.endA<t.state.selection.to&&L.endA>=t.state.selection.to-2&&(L.endB+=t.state.selection.to-L.endA,L.endA=t.state.selection.to)),Pe.ie&&Pe.ie_version<=11&&L.endB==L.start+1&&L.endA==L.start&&L.start>v.from&&v.doc.textBetween(L.start-v.from-1,L.start-v.from+1)=="  "&&(L.start--,L.endA--,L.endB--);var A=v.doc.resolveNoCache(L.start-v.from),H=v.doc.resolveNoCache(L.endB-v.from),W=A.sameParent(H)&&A.parent.inlineContent,J;if((Pe.ios&&t.lastIOSEnter>Date.now()-225&&(!W||i.some(function(He){return He.nodeName=="DIV"||He.nodeName=="P"}))||!W&&A.pos<v.doc.content.size&&(J=er.findFrom(v.doc.resolve(A.pos+1),1,!0))&&J.head==H.pos)&&t.someProp("handleKeyDown",function(He){return He(t,uc(13,"Enter"))})){t.lastIOSEnter=0;return}if(t.state.selection.anchor>L.start&&qR(x,L.start,L.endA,A,H)&&t.someProp("handleKeyDown",function(He){return He(t,uc(8,"Backspace"))})){Pe.android&&Pe.chrome&&t.domObserver.suppressSelectionUpdates();return}Pe.chrome&&Pe.android&&L.toB==L.from&&(t.lastAndroidDelete=Date.now()),Pe.android&&!W&&A.start()!=H.start()&&H.parentOffset==0&&A.depth==H.depth&&v.sel&&v.sel.anchor==v.sel.head&&v.sel.head==L.endA&&(L.endB-=2,H=v.doc.resolveNoCache(L.endB-v.from),setTimeout(function(){t.someProp("handleKeyDown",function(He){return He(t,uc(13,"Enter"))})},20));var ee=L.start,X=L.endA,ie,ge,Y,ne;if(W){if(A.pos==H.pos)Pe.ie&&Pe.ie_version<=11&&A.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(function(){return xu(t)},20)),ie=t.state.tr.delete(ee,X),ge=x.resolve(L.start).marksAcross(x.resolve(L.endA));else if(L.endA==L.endB&&(ne=x.resolve(L.start))&&(Y=HR(A.parent.content.cut(A.parentOffset,H.parentOffset),ne.parent.content.cut(ne.parentOffset,L.endA-ne.start()))))ie=t.state.tr,Y.type=="add"?ie.addMark(ee,X,Y.mark):ie.removeMark(ee,X,Y.mark);else if(A.parent.child(A.index()).isText&&A.index()==H.index()-(H.textOffset?0:1)){var Te=A.parent.textBetween(A.parentOffset,H.parentOffset);if(t.someProp("handleTextInput",function(He){return He(t,ee,X,Te)}))return;ie=t.state.tr.insertText(Te,ee,X)}}if(ie||(ie=t.state.tr.replace(ee,X,v.doc.slice(L.start-v.from,L.endB-v.from))),v.sel){var Be=c0(t,ie.doc,v.sel);Be&&!(Pe.chrome&&Pe.android&&t.composing&&Be.empty&&(L.start!=L.endB||t.lastAndroidDelete<Date.now()-100)&&(Be.head==ee||Be.head==ie.mapping.map(X)-1)||Pe.ie&&Be.empty&&Be.head==ee)&&ie.setSelection(Be)}ge&&ie.ensureMarks(ge),t.dispatch(ie.scrollIntoView())}function c0(t,e,r){return Math.max(r.anchor,r.head)>e.content.size?null:Ug(t,e.resolve(r.anchor),e.resolve(r.head))}function HR(t,e){for(var r=t.firstChild.marks,n=e.firstChild.marks,i=r,a=n,o,s,u,f=0;f<n.length;f++)i=n[f].removeFromSet(i);for(var d=0;d<r.length;d++)a=r[d].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o="add",u=function(b){return b.mark(s.addToSet(b.marks))};else if(i.length==0&&a.length==1)s=a[0],o="remove",u=function(b){return b.mark(s.removeFromSet(b.marks))};else return null;for(var v=[],m=0;m<e.childCount;m++)v.push(u(e.child(m)));if(Ee.from(v).eq(t))return{mark:s,type:o}}function qR(t,e,r,n,i){if(!n.parent.isTextblock||r-e<=i.pos-n.pos||pv(n,!0,!1)<i.pos)return!1;var a=t.resolve(e);if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;var o=t.resolve(pv(a,!0,!0));return!o.parent.isTextblock||o.pos>r||pv(o,!0,!1)<r?!1:n.parent.content.cut(n.parentOffset).eq(o.parent.content)}function pv(t,e,r){for(var n=t.depth,i=e?t.end():t.pos;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,i++,e=!1;if(r)for(var a=t.node(n).maybeChild(t.indexAfter(n));a&&!a.isLeaf;)a=a.firstChild,i++;return i}function $R(t,e,r,n,i){var a=t.findDiffStart(e,r);if(a==null)return null;var o=t.findDiffEnd(e,r+t.size,r+e.size),s=o.a,u=o.b;if(i=="end"){var f=Math.max(0,a-Math.min(s,u));n-=s+f-a}if(s<a&&t.size<e.size){var d=n<=a&&n>=s?a-n:0;a-=d,u=a+(u-s),s=a}else if(u<a){var v=n<=a&&n>=u?a-n:0;a-=v,s=a+(s-u),u=a}return{start:a,endA:s,endB:u}}function l_(t,e){for(var r=[],n=e.content,i=e.openStart,a=e.openEnd;i>1&&a>1&&n.childCount==1&&n.firstChild.childCount==1;){i--,a--;var o=n.firstChild;r.push(o.type.name,o.attrs!=o.type.defaultAttrs?o.attrs:null),n=o.content}var s=t.someProp("clipboardSerializer")||bi.fromSchema(t.state.schema),u=h_(),f=u.createElement("div");f.appendChild(s.serializeFragment(n,{document:u}));for(var d=f.firstChild,v;d&&d.nodeType==1&&(v=p_[d.nodeName.toLowerCase()]);){for(var m=v.length-1;m>=0;m--){for(var b=u.createElement(v[m]);f.firstChild;)b.appendChild(f.firstChild);f.appendChild(b)}d=f.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",i+" "+a+" "+JSON.stringify(r));
31var x=t.someProp("clipboardTextSerializer",function(T){return T(e)})||e.content.textBetween(0,e.content.size,`
32
33`);return{dom:f,text:x}}function u_(t,e,r,n,i){var a,o=i.parent.type.spec.code,s;if(!r&&!e)return null;var u=e&&(n||o||!r);if(u){if(t.someProp("transformPastedText",function(M){e=M(e,o||n)}),o)return new Ze(Ee.from(t.state.schema.text(e.replace(/\r\n?/g,`
34`))),0,0);var f=t.someProp("clipboardTextParser",function(M){return M(e,i,n)});if(f)s=f;else{var d=i.marks(),v=t.state,m=v.schema,b=bi.fromSchema(m);a=document.createElement("div"),e.trim().split(/(?:\r\n?|\n)+/).forEach(function(M){a.appendChild(document.createElement("p")).appendChild(b.serializeNode(m.text(M,d)))})}}else t.someProp("transformPastedHTML",function(M){r=M(r)}),a=zR(r),Pe.webkit&&WR(a);var x=a&&a.querySelector("[data-pm-slice]"),T=x&&/^(\d+) (\d+) (.*)/.exec(x.getAttribute("data-pm-slice"));if(!s){var S=t.someProp("clipboardParser")||t.someProp("domParser")||Pa.fromSchema(t.state.schema);s=S.parseSlice(a,{preserveWhitespace:!!(u||T),context:i})}return T?s=VR(jR(s,+T[1],+T[2]),T[3]):s=Ze.maxOpen(UR(s.content,i),!1),t.someProp("transformPasted",function(M){s=M(s)}),s}function UR(t,e){if(t.childCount<2)return t;for(var r=function(a){var o=e.node(a),s=o.contentMatchAt(e.index(a)),u=void 0,f=[];if(t.forEach(function(d){if(f){var v=s.findWrapping(d.type),m;if(!v)return f=null;if(m=f.length&&u.length&&f_(v,u,d,f[f.length-1],0))f[f.length-1]=m;else{f.length&&(f[f.length-1]=d_(f[f.length-1],u.length));var b=c_(d,v);f.push(b),s=s.matchType(b.type,b.attrs),u=v}}}),f)return{v:Ee.from(f)}},n=e.depth;n>=0;n--){var i=r(n);if(i)return i.v}return t}function c_(t,e,r){r===void 0&&(r=0);for(var n=e.length-1;n>=r;n--)t=e[n].create(null,Ee.from(t));return t}function f_(t,e,r,n,i){if(i<t.length&&i<e.length&&t[i]==e[i]){var a=f_(t,e,r,n.lastChild,i+1);if(a)return n.copy(n.content.replaceChild(n.childCount-1,a));var o=n.contentMatchAt(n.childCount);if(o.matchType(i==t.length-1?r.type:t[i+1]))return n.copy(n.content.append(Ee.from(c_(r,t,i+1))))}}function d_(t,e){if(e==0)return t;var r=t.content.replaceChild(t.childCount-1,d_(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(Ee.empty,!0);return t.copy(r.append(n))}function Bm(t,e,r,n,i,a){var o=e<0?t.firstChild:t.lastChild,s=o.content;return i<n-1&&(s=Bm(s,e,r,n,i+1,a)),i>=r&&(s=e<0?o.contentMatchAt(0).fillBefore(s,t.childCount>1||a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Ee.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(s))}function jR(t,e,r){return e<t.openStart&&(t=new Ze(Bm(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),r<t.openEnd&&(t=new Ze(Bm(t.content,1,r,t.openEnd,0,0),t.openStart,r)),t}var p_={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},f0=null;function h_(){return f0||(f0=document.implementation.createHTMLDocument("title"))}function zR(t){var e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));var r=h_().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),i;if((i=n&&p_[n[1].toLowerCase()])&&(t=i.map(function(o){return"<"+o+">"}).join("")+t+i.map(function(o){return"</"+o+">"}).reverse().join("")),r.innerHTML=t,i)for(var a=0;a<i.length;a++)r=r.querySelector(i[a])||r;return r}function WR(t){for(var e=t.querySelectorAll(Pe.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),r=0;r<e.length;r++){var n=e[r];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function VR(t,e){if(!t.size)return t;var r=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}for(var i=t.content,a=t.openStart,o=t.openEnd,s=n.length-2;s>=0;s-=2){var u=r.nodes[n[s]];if(!u||u.hasRequiredAttrs())break;i=Ee.from(u.create(n[s+1],i)),a++,o++}return new Ze(i,a,o)}var GR={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},zg=Pe.ie&&Pe.ie_version<=11,Wg=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Wg.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset};Wg.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var ba=function(e,r){var n=this;this.view=e,this.handleDOMChange=r,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver(function(i){for(var a=0;a<i.length;a++)n.queue.push(i[a]);Pe.ie&&Pe.ie_version<=11&&i.some(function(o){return o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>
34o.target.nodeValue.length})?n.flushSoon():n.flush()}),this.currentSelection=new Wg,zg&&(this.onCharData=function(i){n.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};ba.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(function(){e.flushingSoon=-1,e.flush()},20))};ba.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())};ba.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,GR),zg&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()};ba.prototype.stop=function(){var e=this;if(this.observer){var r=this.observer.takeRecords();if(r.length){for(var n=0;n<r.length;n++)this.queue.push(r[n]);window.setTimeout(function(){return e.flush()},20)}this.observer.disconnect()}zg&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()};ba.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)};ba.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)};ba.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout(function(){return e.suppressingSelectionUpdates=!1},50)};ba.prototype.onSelectionChange=function(){if(LR(this.view)){if(this.suppressingSelectionUpdates)return xu(this.view);if(Pe.ie&&Pe.ie_version<=11&&!this.view.state.selection.empty){var e=this.view.root.getSelection();if(e.focusNode&&tp(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}};ba.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())};ba.prototype.ignoreSelectionChange=function(e){if(e.rangeCount==0)return!0;var r=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(r);if(n&&n.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0};ba.prototype.flush=function(){if(!(!this.view.docView||this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var r=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&jg(this.view)&&!this.ignoreSelectionChange(r),i=-1,a=-1,o=!1,s=[];if(this.view.editable)for(var u=0;u<e.length;u++){var f=this.registerMutation(e[u],s);f&&(i=i<0?f.from:Math.min(f.from,i),a=a<0?f.to:Math.max(f.to,a),f.typeOver&&(o=!0))}if(Pe.gecko&&s.length>1){var d=s.filter(function(b){return b.nodeName=="BR"});if(d.length==2){var v=d[0],m=d[1];v.parentNode&&v.parentNode.parentNode==m.parentNode?m.remove():v.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,a),KR(this.view)),this.handleDOMChange(i,a,o,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(r)||xu(this.view),this.currentSelection.set(r))}};ba.prototype.registerMutation=function(e,r){if(r.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(var i=0;i<e.addedNodes.length;i++)r.push(e.addedNodes[i]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var a=e.previousSibling,o=e.nextSibling;if(Pe.ie&&Pe.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var u=e.addedNodes[s],f=u.previousSibling,d=u.nextSibling;(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(a=f),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(o=d)}var v=a&&a.parentNode==e.target?Fa(a)+1:0,m=n.localPosFromDOM(e.target,v,-1),b=o&&o.parentNode==e.target?Fa(o):e.target.childNodes.length,x=n.localPosFromDOM(e.target,b,1);return{from:m,to:x}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var d0=!1;function KR(t){d0||(d0=!0,getComputedStyle(t.dom).whiteSpace=="normal"&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))}var ra={},Bi={};function JR(t){t.shiftKey=!1,t.mouseDown=null,t.lastKeyCode=null,t.lastKeyCodeTime=0,t.lastClick={time:0,x:0,y:0,type:""},t.lastSelectionOrigin=null,t.lastSelectionTime=0,t.lastIOSEnter=0,t.lastIOSEnterFallbackTimeout=null,t.lastAndroidDelete=0,t.composing=!1,t.composingTimeout=null,t.compositionNodes=[],t.compositionEndedAt=-2e8,t.domObserver=new ba(t,function(n,i,a,o){return FR(t,n,i,a,o)}),t.domObserver.start(),t.domChangeCount=0,t.eventHandlers=Object.create(null);var e=function(n){var i=ra[n];t.dom.addEventListener(n,t.eventHandlers[n]=function(a){XR(t,a)&&!Gg(t,a)&&(t.editable||!(a.type in Bi))&&i(t,a)})};for(var r in ra)e(r);Pe.safari&&t.dom.addEventListener("input",function(){return null}),Vg(t)}function du(t,e){t.lastSelectionOrigin=e,t.lastSelectionTime=Date.now()}function YR(t){t.domObserver.stop();for(var e in t.eventHandlers)t.dom.removeEventListener(e,t.eventHandlers[e]);clearTimeout(t.composingTimeout),clearTimeout(t.lastIOSEnterFallbackTimeout)}function Vg(t){t.someProp("handleDOMEvents",function(e){for(var r in e)t.eventHandlers[r]||t.dom.addEventListener(r,t.eventHandlers[r]=function(n){return Gg(t,n)})})}function Gg(t,e){return t.someProp("handleDOMEvents",function(r){var n=r[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function XR(t,e){if(!e.bubbles)return!0;
34if(e.defaultPrevented)return!1;for(var r=e.target;r!=t.dom;r=r.parentNode)if(!r||r.nodeType==11||r.pmViewDesc&&r.pmViewDesc.stopEvent(e))return!1;return!0}function QR(t,e){!Gg(t,e)&&ra[e.type]&&(t.editable||!(e.type in Bi))&&ra[e.type](t,e)}Bi.keydown=function(t,e){if(t.shiftKey=e.keyCode==16||e.shiftKey,!m_(t,e))if(e.keyCode!=229&&t.domObserver.forceFlush(),t.lastKeyCode=e.keyCode,t.lastKeyCodeTime=Date.now(),Pe.ios&&e.keyCode==13&&!e.ctrlKey&&!e.altKey&&!e.metaKey){var r=Date.now();t.lastIOSEnter=r,t.lastIOSEnterFallbackTimeout=setTimeout(function(){t.lastIOSEnter==r&&(t.someProp("handleKeyDown",function(n){return n(t,uc(13,"Enter"))}),t.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",function(n){return n(t,e)})||NR(t,e)?e.preventDefault():du(t,"key")};Bi.keyup=function(t,e){e.keyCode==16&&(t.shiftKey=!1)};Bi.keypress=function(t,e){if(!(m_(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||Pe.mac&&e.metaKey)){if(t.someProp("handleKeyPress",function(i){return i(t,e)})){e.preventDefault();return}var r=t.state.selection;if(!(r instanceof $r)||!r.$from.sameParent(r.$to)){var n=String.fromCharCode(e.charCode);t.someProp("handleTextInput",function(i){return i(t,r.$from.pos,r.$to.pos,n)})||t.dispatch(t.state.tr.insertText(n).scrollIntoView()),e.preventDefault()}}};function Pp(t){return{left:t.clientX,top:t.clientY}}function ZR(t,e){var r=e.x-t.clientX,n=e.y-t.clientY;return r*r+n*n<100}function Kg(t,e,r,n,i){if(n==-1)return!1;for(var a=t.state.doc.resolve(n),o=function(f){if(t.someProp(e,function(d){return f>a.depth?d(t,r,a.nodeAfter,a.before(f),i,!0):d(t,r,a.node(f),a.before(f),i,!1)}))return{v:!0}},s=a.depth+1;s>0;s--){var u=o(s);if(u)return u.v}return!1}function mc(t,e,r){t.focused||t.focus();var n=t.state.tr.setSelection(e);n.setMeta("pointer",!0),t.dispatch(n)}function eN(t,e){if(e==-1)return!1;var r=t.state.doc.resolve(e),n=r.nodeAfter;return n&&n.isAtom&&Zt.isSelectable(n)?(mc(t,new Zt(r)),!0):!1}function tN(t,e){if(e==-1)return!1;var r=t.state.selection,n,i;r instanceof Zt&&(n=r.node);for(var a=t.state.doc.resolve(e),o=a.depth+1;o>0;o--){var s=o>a.depth?a.nodeAfter:a.node(o);if(Zt.isSelectable(s)){n&&r.$from.depth>0&&o>=r.$from.depth&&a.before(r.$from.depth+1)==r.$from.pos?i=a.before(r.$from.depth):i=a.before(o);break}}return i!=null?(mc(t,Zt.create(t.state.doc,i)),!0):!1}function rN(t,e,r,n,i){return Kg(t,"handleClickOn",e,r,n)||t.someProp("handleClick",function(a){return a(t,e,n)})||(i?tN(t,r):eN(t,r))}function nN(t,e,r,n){return Kg(t,"handleDoubleClickOn",e,r,n)||t.someProp("handleDoubleClick",function(i){return i(t,e,n)})}function iN(t,e,r,n){return Kg(t,"handleTripleClickOn",e,r,n)||t.someProp("handleTripleClick",function(i){return i(t,e,n)})||aN(t,r,n)}function aN(t,e,r){if(r.button!=0)return!1;var n=t.state.doc;if(e==-1)return n.inlineContent?(mc(t,$r.create(n,0,n.content.size)),!0):!1;for(var i=n.resolve(e),a=i.depth+1;a>0;a--){var o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)mc(t,$r.create(n,s+1,s+1+o.content.size));else if(Zt.isSelectable(o))mc(t,Zt.create(n,s));else continue;return!0}}function Jg(t){return np(t)}var v_=Pe.mac?"metaKey":"ctrlKey";ra.mousedown=function(t,e){t.shiftKey=e.shiftKey;var r=Jg(t),n=Date.now(),i="singleClick";n-t.lastClick.time<500&&ZR(e,t.lastClick)&&!e[v_]&&(t.lastClick.type=="singleClick"?i="doubleClick":t.lastClick.type=="doubleClick"&&(i="tripleClick")),t.lastClick={time:n,x:e.clientX,y:e.clientY,type:i};var a=t.posAtCoords(Pp(e));a&&(i=="singleClick"?(t.mouseDown&&t.mouseDown.done(),t.mouseDown=new Bp(t,a,e,r)):(i=="doubleClick"?nN:iN)(t,a.pos,a.inside,e)?e.preventDefault():du(t,"pointer"))};var Bp=function(e,r,n,i){var a=this;this.view=e,this.startDoc=e.state.doc,this.pos=r,this.event=n,this.flushed=i,this.selectNode=n[v_],this.allowDefault=n.shiftKey;var o,s;if(r.inside>-1)o=e.state.doc.nodeAt(r.inside),s=r.inside;else{var u=e.state.doc.resolve(r.pos);o=u.parent,s=u.depth?u.before():0}this.mightDrag=null;var f=i?null:n.target,d=f?e.docView.nearestDesc(f,!0):null;this.target=d?d.dom:null;var v=e.state,m=v.selection;(n.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||m instanceof Zt&&m.from<=s&&m.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&Pe.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(function(){a.view.mouseDown==a&&a.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),du(e,"pointer")};Bp.prototype.done=function(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.view.mouseDown=null};Bp.prototype.up=function(e){if(this.done(),!!this.view.dom.contains(e.target.nodeType==3?e.target.parentNode:e.target)){var r=this.pos;this.view.state.doc!=this.startDoc&&(r=this.view.posAtCoords(Pp(e))),this.allowDefault||!r?du(this.view,"pointer"):rN(this.view,r.pos,r.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Pe.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||Pe.chrome&&!(this.view.state.selection instanceof $r)&&Math.min(Math.abs(r.pos-this.view.state.selection.from),Math.abs(r.pos-this.view.state.selection.to))<=2)?(mc(this.view,er.near(this.view.state.doc.resolve(r.pos))),e.preventDefault()):du(this.view,"pointer")}};Bp.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),du(this.view,"pointer"),e.buttons==0&&this.done()};ra.touchdown=function(t){Jg(t),du(t,"pointer")};ra.contextmenu=function(t){return Jg(t)};function m_(t,e){return t.composing?!0:Pe.safari&&Math.abs(e.timeStamp-t.compositionEndedAt)<500?(t.compositionEndedAt=-2e8,!0):!1}var oN=Pe.android?5e3:-1;Bi.compositionstart=Bi.compositionupdate=function(t){if(!t.composing){t.domObserver.flush();var e=t.state,r=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(function(s){return s.type.spec.inclusive===!1})))t.markCursor=t.state.storedMarks||r.marks(),np(t,!0),t.markCursor=null;else if(np(t),Pe.gecko&&e.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length)for(var n=t.root.getSelection(),i=n.focusNode,a=n.focusOffset;i&&i.nodeType==1&&a!=0;){var o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if(o.nodeType==3){n.collapse(o,o.nodeValue.length);break}else i=o,a=-1}t.composing=!0}g_(t,oN)};Bi.compositionend=function(t,e){t.composing&&(t.composing=!1,t.compositionEndedAt=e.timeStamp,g_(t,20))};function g_(t,e){clearTimeout(t.composingTimeout),e>-1&&(t.composingTimeout=setTimeout(function(){return np(t)},e))}function y_(t){for(t.composing=!1;t.compositionNodes.length>0;)t.compositionNodes.pop().markParentsDirty()}function np(t,e){if(t.domObserver.forceFlush(),y_(t),e||t.docView.dirty){var r=i_(t);return r&&!r.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(r)):t.updateState(t.state),!0}return!1}function sN(t,e){if(t.dom.parentNode){var r=t.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(e),r.style.cssText="position: fixed; left: -10000px; top: 10px";var n=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),t.focu
34s()},50)}}var bc=Pe.ie&&Pe.ie_version<15||Pe.ios&&Pe.webkit_version<604;ra.copy=Bi.cut=function(t,e){var r=t.state.selection,n=e.type=="cut";if(!r.empty){var i=bc?null:e.clipboardData,a=r.content(),o=l_(t,a),s=o.dom,u=o.text;i?(e.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",u)):sN(t,s),n&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}};function lN(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function uN(t,e){if(t.dom.parentNode){var r=t.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(function(){t.focus(),n.parentNode&&n.parentNode.removeChild(n),r?Fm(t,n.value,null,e):Fm(t,n.textContent,n.innerHTML,e)},50)}}function Fm(t,e,r,n){var i=u_(t,e,r,t.shiftKey,t.state.selection.$from);if(t.someProp("handlePaste",function(s){return s(t,n,i||Ze.empty)}))return!0;if(!i)return!1;var a=lN(i),o=a?t.state.tr.replaceSelectionWith(a,t.shiftKey):t.state.tr.replaceSelection(i);return t.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Bi.paste=function(t,e){var r=bc?null:e.clipboardData;r&&Fm(t,r.getData("text/plain"),r.getData("text/html"),e)?e.preventDefault():uN(t,e)};var cN=function(e,r){this.slice=e,this.move=r},b_=Pe.mac?"altKey":"ctrlKey";ra.dragstart=function(t,e){var r=t.mouseDown;if(r&&r.done(),!!e.dataTransfer){var n=t.state.selection,i=n.empty?null:t.posAtCoords(Pp(e));if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof Zt?n.to-1:n.to))){if(r&&r.mightDrag)t.dispatch(t.state.tr.setSelection(Zt.create(t.state.doc,r.mightDrag.pos)));else if(e.target&&e.target.nodeType==1){var a=t.docView.nearestDesc(e.target,!0);a&&a.node.type.spec.draggable&&a!=t.docView&&t.dispatch(t.state.tr.setSelection(Zt.create(t.state.doc,a.posBefore)))}}var o=t.state.selection.content(),s=l_(t,o),u=s.dom,f=s.text;e.dataTransfer.clearData(),e.dataTransfer.setData(bc?"Text":"text/html",u.innerHTML),e.dataTransfer.effectAllowed="copyMove",bc||e.dataTransfer.setData("text/plain",f),t.dragging=new cN(o,!e[b_])}};ra.dragend=function(t){var e=t.dragging;window.setTimeout(function(){t.dragging==e&&(t.dragging=null)},50)};Bi.dragover=Bi.dragenter=function(t,e){return e.preventDefault()};Bi.drop=function(t,e){var r=t.dragging;if(t.dragging=null,!!e.dataTransfer){var n=t.posAtCoords(Pp(e));if(n){var i=t.state.doc.resolve(n.pos);if(i){var a=r&&r.slice;a?t.someProp("transformPasted",function(x){a=x(a)}):a=u_(t,e.dataTransfer.getData(bc?"Text":"text/plain"),bc?null:e.dataTransfer.getData("text/html"),!1,i);var o=r&&!e[b_];if(t.someProp("handleDrop",function(x){return x(t,e,a||Ze.empty,o)})){e.preventDefault();return}if(a){e.preventDefault();var s=a?KI(t.state.doc,i.pos,a):i.pos;s==null&&(s=i.pos);var u=t.state.tr;o&&u.deleteSelection();var f=u.mapping.map(s),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,v=u.doc;if(d?u.replaceRangeWith(f,f,a.content.firstChild):u.replaceRange(f,f,a),!u.doc.eq(v)){var m=u.doc.resolve(f);if(d&&Zt.isSelectable(a.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Zt(m));else{var b=u.mapping.map(s);u.mapping.maps[u.mapping.maps.length-1].forEach(function(x,T,S,M){return b=M}),u.setSelection(Ug(t,m,u.doc.resolve(b)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))}}}}}};ra.focus=function(t){t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(function(){t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.root.getSelection())&&xu(t)},20))};ra.blur=function(t){t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),t.domObserver.currentSelection.set({}),t.focused=!1)};ra.beforeinput=function(t,e){if(Pe.chrome&&Pe.android&&e.inputType=="deleteContentBackward"){var r=t.domChangeCount;setTimeout(function(){if(t.domChangeCount==r&&(t.dom.blur(),t.focus(),!t.someProp("handleKeyDown",function(a){return a(t,uc(8,"Backspace"))}
34))){var n=t.state.selection,i=n.$cursor;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())}},50)}};for(var p0 in Bi)ra[p0]=Bi[p0];function Rf(t,e){if(t==e)return!0;for(var r in t)if(t[r]!==e[r])return!1;for(var n in e)if(!(n in t))return!1;return!0}var Nf=function(e,r){this.spec=r||qc,this.side=this.spec.side||0,this.toDOM=e};Nf.prototype.map=function(e,r,n,i){var a=e.mapResult(r.from+i,this.side<0?-1:1),o=a.pos,s=a.deleted;return s?null:new kn(o-n,o-n,this)};Nf.prototype.valid=function(){return!0};Nf.prototype.eq=function(e){return this==e||e instanceof Nf&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Rf(this.spec,e.spec))};var vo=function(e,r){this.spec=r||qc,this.attrs=e};vo.prototype.map=function(e,r,n,i){var a=e.map(r.from+i,this.spec.inclusiveStart?-1:1)-n,o=e.map(r.to+i,this.spec.inclusiveEnd?1:-1)-n;return a>=o?null:new kn(a,o,this)};vo.prototype.valid=function(e,r){return r.from<r.to};vo.prototype.eq=function(e){return this==e||e instanceof vo&&Rf(this.attrs,e.attrs)&&Rf(this.spec,e.spec)};vo.is=function(e){return e.type instanceof vo};var Pf=function(e,r){this.spec=r||qc,this.attrs=e};Pf.prototype.map=function(e,r,n,i){var a=e.mapResult(r.from+i,1);if(a.deleted)return null;var o=e.mapResult(r.to+i,-1);return o.deleted||o.pos<=a.pos?null:new kn(a.pos-n,o.pos-n,this)};Pf.prototype.valid=function(e,r){var n=e.content.findIndex(r.from),i=n.index,a=n.offset;return a==r.from&&a+e.child(i).nodeSize==r.to};Pf.prototype.eq=function(e){return this==e||e instanceof Pf&&Rf(this.attrs,e.attrs)&&Rf(this.spec,e.spec)};var kn=function(e,r,n){this.from=e,this.to=r,this.type=n},Yg={spec:{configurable:!0},inline:{configurable:!0}};kn.prototype.copy=function(e,r){return new kn(e,r,this.type)};kn.prototype.eq=function(e,r){return r===void 0&&(r=0),this.type.eq(e.type)&&this.from+r==e.from&&this.to+r==e.to};kn.prototype.map=function(e,r,n){return this.type.map(e,this,r,n)};kn.widget=function(e,r,n){return new kn(e,e,new Nf(r,n))};kn.inline=function(e,r,n,i){return new kn(e,r,new vo(n,i))};kn.node=function(e,r,n,i){return new kn(e,r,new Pf(n,i))};Yg.spec.get=function(){return this.type.spec};Yg.inline.get=function(){return this.type instanceof vo};Object.defineProperties(kn.prototype,Yg);var ip=[],qc={},Ir=function(e,r){this.local=e&&e.length?e:ip,this.children=r&&r.length?r:ip};Ir.create=function(e,r){return r.length?Fp(r,e,0,qc):ai};Ir.prototype.find=function(e,r,n){var i=[];return this.findInner(e??0,r??1e9,i,0,n),i};Ir.prototype.findInner=function(e,r,n,i,a){for(var o=0;o<this.local.length;o++){var s=this.local[o];s.from<=r&&s.to>=e&&(!a||a(s.spec))&&n.push(s.copy(s.from+i,s.to+i))}for(var u=0;u<this.children.length;u+=3)if(this.children[u]<r&&this.children[u+1]>e){var f=this.children[u]+1;this.children[u+2].findInner(e-f,r-f,n,i+f,a)}};Ir.prototype.map=function(e,r,n){return this==ai||e.maps.length==0?this:this.mapInner(e,r,0,0,n||qc)};Ir.prototype.mapInner=function(e,r,n,i,a){for(var o,s=0;s<this.local.length;s++){var u=this.local[s].map(e,n,i);u&&u.type.valid(r,u)?(o||(o=[])).push(u):a.onRemove&&a.onRemove(this.local[s].spec)}return this.children.length?fN(this.children,o,e,r,n,i,a):o?new Ir(o.sort(Cu)):ai};Ir.prototype.add=function(e,r){return r.length?this==ai?Ir.create(e,r):this.addInner(e,r,0):this};Ir.prototype.addInner=function(e,r,n){var i=this,a,o=0;e.forEach(function(f,d){var v=d+n,m;if(m=x_(r,f,v)){for(a||(a=i.children.slice());o<a.length&&a[o]<d;)o+=3;a[o]==d?a[o+2]=a[o+2].addInner(f,m,v+1):a.splice(o,0,d,d+f.nodeSize,Fp(m,f,v+1,qc)),o+=3}});for(var s=w_(o?C_(r):r,-n),u=0;u<s.length;u++)s[u].type.valid(e,s[u])||s.splice(u--,1);return new Ir(s.length?this.local.concat(s).sort(Cu):this.local,a||this.children)};Ir.prototype.remove=function(e){return e.length==0||this==ai?this:this.removeInner(e,0)};Ir.prototype.removeInner=function(e,r){for(var n=this.children,i=this.local,a=0;a<n.length;a+=3){for(var o=void 0,s=n[a]+r,u=n[a+1]+r,f=0,d=void 0;f<e.length;f++)(d=e[f])&&d.from>s&&d.to<u&&(e[f]=null,(o||(o=[])).push(d));if(o){n==this.children&&(n=this.children.slice());var v=n[a+2].removeInner(o,s+1);v!=ai?n[a+2]=v:(n.splice(a,3),a-=3)}}if(i.length){for(var m=0,b=void 0;m<e.length;m++)if(b=e[m])for(var x=0;x<i.length;x++)i[x].eq(b,r)&&(i==this.local&&(i=this.local.slice()),i.splice(
34x--,1))}return n==this.children&&i==this.local?this:i.length||n.length?new Ir(i,n):ai};Ir.prototype.forChild=function(e,r){if(this==ai)return this;if(r.isLeaf)return Ir.empty;for(var n,i,a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}for(var o=e+1,s=o+r.content.size,u=0;u<this.local.length;u++){var f=this.local[u];if(f.from<s&&f.to>o&&f.type instanceof vo){var d=Math.max(o,f.from)-o,v=Math.min(s,f.to)-o;d<v&&(i||(i=[])).push(f.copy(d,v))}}if(i){var m=new Ir(i.sort(Cu));return n?new Ro([m,n]):m}return n||ai};Ir.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Ir)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var r=0;r<this.local.length;r++)if(!this.local[r].eq(e.local[r]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0};Ir.prototype.locals=function(e){return Xg(this.localsInner(e))};Ir.prototype.localsInner=function(e){if(this==ai)return ip;if(e.inlineContent||!this.local.some(vo.is))return this.local;for(var r=[],n=0;n<this.local.length;n++)this.local[n].type instanceof vo||r.push(this.local[n]);return r};var ai=new Ir;Ir.empty=ai;Ir.removeOverlap=Xg;var Ro=function(e){this.members=e};Ro.prototype.forChild=function(e,r){if(r.isLeaf)return Ir.empty;for(var n=[],i=0;i<this.members.length;i++){var a=this.members[i].forChild(e,r);a!=ai&&(a instanceof Ro?n=n.concat(a.members):n.push(a))}return Ro.from(n)};Ro.prototype.eq=function(e){if(!(e instanceof Ro)||e.members.length!=this.members.length)return!1;for(var r=0;r<this.members.length;r++)if(!this.members[r].eq(e.members[r]))return!1;return!0};Ro.prototype.locals=function(e){for(var r,n=!0,i=0;i<this.members.length;i++){var a=this.members[i].localsInner(e);if(a.length)if(!r)r=a;else{n&&(r=r.slice(),n=!1);for(var o=0;o<a.length;o++)r.push(a[o])}}return r?Xg(n?r:r.sort(Cu)):ip};Ro.from=function(e){switch(e.length){case 0:return ai;case 1:return e[0];default:return new Ro(e)}};function fN(t,e,r,n,i,a,o){for(var s=t.slice(),u=function(ge,Y,ne,Te){for(var Be=0;Be<s.length;Be+=3){var He=s[Be+1],Re=void 0;He==-1||ge>He+a||(Y>=s[Be]+a?s[Be+1]=-1:ne>=i&&(Re=Te-ne-(Y-ge))&&(s[Be]+=Re,s[Be+1]+=Re))}},f=0;f<r.maps.length;f++)r.maps[f].forEach(u);for(var d=!1,v=0;v<s.length;v+=3)if(s[v+1]==-1){var m=r.map(t[v]+a),b=m-i;if(b<0||b>=n.content.size){d=!0;continue}var x=r.map(t[v+1]+a,-1),T=x-i,S=n.content.findIndex(b),M=S.index,L=S.offset,P=n.maybeChild(M);if(P&&L==b&&L+P.nodeSize==T){var A=s[v+2].mapInner(r,P,m+1,t[v]+a+1,o);A!=ai?(s[v]=b,s[v+1]=T,s[v+2]=A):(s[v+1]=-2,d=!0)}else d=!0}if(d){var H=dN(s,t,e||[],r,i,a,o),W=Fp(H,n,0,o);e=W.local;for(var J=0;J<s.length;J+=3)s[J+1]<0&&(s.splice(J,3),J-=3);for(var ee=0,X=0;ee<W.children.length;ee+=3){for(var ie=W.children[ee];X<s.length&&s[X]<ie;)X+=3;s.splice(X,0,W.children[ee],W.children[ee+1],W.children[ee+2])}}return new Ir(e&&e.sort(Cu),s)}function w_(t,e){if(!e||!t.length)return t;for(var r=[],n=0;n<t.length;n++){var i=t[n];
34r.push(new kn(i.from+e,i.to+e,i.type))}return r}function dN(t,e,r,n,i,a,o){function s(f,d){for(var v=0;v<f.local.length;v++){var m=f.local[v].map(n,i,d);m?r.push(m):o.onRemove&&o.onRemove(f.local[v].spec)}for(var b=0;b<f.children.length;b+=3)s(f.children[b+2],f.children[b]+d+1)}for(var u=0;u<t.length;u+=3)t[u+1]==-1&&s(t[u+2],e[u]+a+1);return r}function x_(t,e,r){if(e.isLeaf)return null;for(var n=r+e.nodeSize,i=null,a=0,o=void 0;a<t.length;a++)(o=t[a])&&o.from>r&&o.to<n&&((i||(i=[])).push(o),t[a]=null);return i}function C_(t){for(var e=[],r=0;r<t.length;r++)t[r]!=null&&e.push(t[r]);return e}function Fp(t,e,r,n){var i=[],a=!1;e.forEach(function(u,f){var d=x_(t,u,f+r);if(d){a=!0;var v=Fp(d,u,r+f+1,n);v!=ai&&i.push(f,f+u.nodeSize,v)}});for(var o=w_(a?C_(t):t,-r).sort(Cu),s=0;s<o.length;s++)o[s].type.valid(e,o[s])||(n.onRemove&&n.onRemove(o[s].spec),o.splice(s--,1));return o.length||i.length?new Ir(o,i):ai}function Cu(t,e){return t.from-e.from||t.to-e.to}function Xg(t){for(var e=t,r=0;r<e.length-1;r++){var n=e[r];if(n.from!=n.to)for(var i=r+1;i<e.length;i++){var a=e[i];if(a.from==n.from){a.to!=n.to&&(e==t&&(e=t.slice()),e[i]=a.copy(a.from,n.to),h0(e,i+1,a.copy(n.to,a.to)));continue}else{a.from<n.to&&(e==t&&(e=t.slice()),e[r]=n.copy(n.from,a.from),h0(e,i,n.copy(a.from,n.to)));break}}}return e}function h0(t,e,r){for(;e<t.length&&Cu(r,t[e])>0;)e++;t.splice(e,0,r)}function Qg(t){var e=[];return t.someProp("decorations",function(r){var n=r(t.state);n&&n!=ai&&e.push(n)}),t.cursorWrapper&&e.push(Ir.create(t.state.doc,[t.cursorWrapper.deco])),Ro.from(e)}var dn=function(e,r){this._props=r,this.state=r.state,this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=__(this),this.markCursor=null,this.cursorWrapper=null,T_(this),this.nodeViews=S_(this),this.docView=ZT(this.state.doc,E_(this),Qg(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,JR(this),this.pluginViews=[],this.updatePluginViews()},Zg={props:{configurable:!0},root:{configurable:!0}};Zg.props.get=function(){if(this._props.state!=this.state){var t=this._props;this._props={};for(var e in t)this._props[e]=t[e];this._props.state=this.state}return this._props};dn.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Vg(this),this._props=e,this.updateStateInner(e.state,!0)};dn.prototype.setProps=function(e){var r={};for(var n in this._props)r[n]=this._props[n];r.state=this.state;for(var i in e)r[i]=e[i];this.update(r)};dn.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)};dn.prototype.updateStateInner=function(e,r){var n=this,i=this.state,a=!1,o=!1;if(e.storedMarks&&this.composing&&(y_(this),o=!0),this.state=e,r){var s=S_(this);hN(s,this.nodeViews)&&(this.nodeViews=s,a=!0),Vg(this)}this.editable=__(this),T_(this);var u=Qg(this),f=E_(this),d=r?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",v=a||!this.docView.matchesNode(e.doc,f,u);(v||!e.selection.eq(i.selection))&&(o=!0);var m=d=="preserve"&&o&&this.dom.style.overflowAnchor==null&&aR(this);if(o){this.domObserver.stop();var b=v&&(Pe.ie||Pe.chrome)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&pN(i.selection,e.selection);if(v){var x=Pe.chrome?this.trackWrites=this.root.getSelection().focusNode:null;(a||!this.docView.update(e.doc,f,u,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ZT(e.doc,f,u,this.dom,this)),x&&!this.trackWrites&&(b=!0)}b||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&DR(this))?xu(this,b):(o_(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),d=="reset")this.dom.scrollTop=0;else if(d=="to selection"){var T=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",function(S){return S(n)})||(e.selection instanceof Zt?Xw(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),T):Xw(this,this.coordsAtPos(e.selection.head,1),T))}else m&&oR(m)};dn.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()};dn.prototype.updatePluginViews=function(e){if(!e||e.plugins!=this.state.plugins){this.destroyPluginViews();for(var r=0;r<this.state.plugins.length;r++){var n=this.state.plugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(var i=0;i<this.pluginViews.length;i++){var a=this.pluginViews[i];a.update&&a.update(this,e)}};dn.prototype.someProp=function(e,r){var n=this._props&&this._props[e],i;if(n!=null&&(i=r?r(n):n))return i;var a=this.state.plugins;if(a)for(var o=0;o<a.length;o++){var s=a[o].props[e];if(s!=null&&(i=r?r(s):s))return i}};dn.prototype.hasFocus=function(){return this.root.activeElement==this.dom};
34dn.prototype.focus=function(){this.domObserver.stop(),this.editable&&sR(this.dom),xu(this),this.domObserver.start()};Zg.root.get=function(){var t=this._root;if(t==null){for(var e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=function(){return document.getSelection()}),this._root=e}return t||document};dn.prototype.posAtCoords=function(e){return dR(this,e)};dn.prototype.coordsAtPos=function(e,r){return r===void 0&&(r=1),YT(this,e,r)};dn.prototype.domAtPos=function(e,r){return r===void 0&&(r=0),this.docView.domFromPos(e,r)};dn.prototype.nodeDOM=function(e){var r=this.docView.descAt(e);return r?r.nodeDOM:null};dn.prototype.posAtDOM=function(e,r,n){n===void 0&&(n=-1);var i=this.docView.posFromDOM(e,r,n);if(i==null)throw new RangeError("DOM position not inside the editor");return i};dn.prototype.endOfTextblock=function(e,r){return gR(this,r||this.state,e)};dn.prototype.destroy=function(){this.docView&&(YR(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Qg(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)};dn.prototype.dispatchEvent=function(e){return QR(this,e)};dn.prototype.dispatch=function(e){var r=this._props.dispatchTransaction;r?r.call(this,e):this.updateState(this.state.apply(e))};Object.defineProperties(dn.prototype,Zg);function E_(t){var e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",function(r){if(typeof r=="function"&&(r=r(t.state)),r)for(var n in r)n=="class"?e.class+=" "+r[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(r[n]))}),[kn.node(0,t.state.doc.content.size,e)]}function T_(t){if(t.markCursor){var e=document.createElement("img");e.setAttribute("mark-placeholder","true"),t.cursorWrapper={dom:e,deco:kn.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function __(t){return!t.someProp("editable",function(e){return e(t.state)===!1})}function pN(t,e){var r=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(r)!=e.$anchor.start(r)}function S_(t){var e={};return t.someProp("nodeViews",function(r){for(var n in r)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=r[n])}),e}function hN(t,e){var r=0,n=0;for(var i in t){if(t[i]!=e[i])return!0;r++}for(var a in e)n++;return r!=n}var pl={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ap={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},v0=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),vN=typeof navigator<"u"&&/Mac/.test(navigator.platform),mN=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),gN=vN||v0&&+v0[1]<57;for(var ti=0;ti<10;ti++)pl[48+ti]=pl[96+ti]=String(ti);for(var ti=1;ti<=24;ti++)pl[ti+111]="F"+ti;for(var ti=65;ti<=90;ti++)pl[ti]=String.fromCharCode(ti+32),ap[ti]=String.fromCharCode(ti);for(var hv in pl)ap.hasOwnProperty(hv)||(ap[hv]=pl[hv]);function yN(t){var e=gN&&(t.ctrlKey||t.altKey||t.metaKey)||mN&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",r=!e&&t.key||(t.shiftKey?ap:pl)[t.keyCode]||t.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}var bN=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function wN(t){var e=t.split(/-(?!$)/),r=e[e.length-1];r=="Space"&&(r=" ");for(var n,i,a,o,s=0;s<e.length-1;s++){var u=e[s];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))n=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))bN?o=!0:i=!0;else throw new Error("Unrecognized modifier name: "+u)}return n&&(r="Alt-"+r),i&&(r="Ctrl-"+r),o&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function xN(t){var e=Object.create(null);for(var r in t)e[wN(r)]=t[r];return e}
34function vv(t,e,r){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),r!==!1&&e.shiftKey&&(t="Shift-"+t),t}function op(t){return new Hi({props:{handleKeyDown:CN(t)}})}function CN(t){var e=xN(t);return function(r,n){var i=yN(n),a=i.length==1&&i!=" ",o,s=e[vv(i,n,!a)];if(s&&s(r.state,r.dispatch,r))return!0;if(a&&(n.shiftKey||n.altKey||n.metaKey||i.charCodeAt(0)>127)&&(o=pl[n.keyCode])&&o!=i){var u=e[vv(o,n,!0)];if(u&&u(r.state,r.dispatch,r))return!0}else if(a&&n.shiftKey){var f=e[vv(i,n,!0)];if(f&&f(r.state,r.dispatch,r))return!0}return!1}}function ey(t,e){return t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0)}function EN(t,e,r){var n=t.selection,i=n.$cursor;if(!i||(r?!r.endOfTextblock("backward",t):i.parentOffset>0))return!1;var a=k_(i);if(!a){var o=i.blockRange(),s=o&&Rp(o);return s==null?!1:(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)}var u=a.nodeBefore;if(!u.type.spec.isolating&&D_(t,a,e))return!0;if(i.parent.content.size==0&&(wc(u,"end")||Zt.isSelectable(u))){if(e){var f=t.tr.deleteRange(i.before(),i.after());f.setSelection(wc(u,"end")?er.findFrom(f.doc.resolve(f.mapping.map(a.pos,-1)),-1):Zt.create(f.doc,a.pos-u.nodeSize)),e(f.scrollIntoView())}return!0}return u.isAtom&&a.depth==i.depth-1?(e&&e(t.tr.delete(a.pos-u.nodeSize,a.pos).scrollIntoView()),!0):!1}function wc(t,e,r){for(;t;t=e=="start"?t.firstChild:t.lastChild){if(t.isTextblock)return!0;if(r&&t.childCount!=1)return!1}return!1}function TN(t,e,r){var n=t.selection,i=n.$head,a=n.empty,o=i;if(!a)return!1;if(i.parent.isTextblock){if(r?!r.endOfTextblock("backward",t):i.parentOffset>0)return!1;o=k_(i)}var s=o&&o.nodeBefore;return!s||!Zt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Zt.create(t.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}function k_(t){if(!t.parent.type.spec.isolating)for(var e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}
34function O_(t,e,r){var n=t.selection,i=n.$cursor;if(!i||(r?!r.endOfTextblock("forward",t):i.parentOffset<i.parent.content.size))return!1;var a=A_(i);if(!a)return!1;var o=a.nodeAfter;if(D_(t,a,e))return!0;if(i.parent.content.size==0&&(wc(o,"start")||Zt.isSelectable(o))){if(e){var s=t.tr.deleteRange(i.before(),i.after());s.setSelection(wc(o,"start")?er.findFrom(s.doc.resolve(s.mapping.map(a.pos)),1):Zt.create(s.doc,s.mapping.map(a.pos))),e(s.scrollIntoView())}return!0}return o.isAtom&&a.depth==i.depth-1?(e&&e(t.tr.delete(a.pos,a.pos+o.nodeSize).scrollIntoView()),!0):!1}function _N(t,e,r){var n=t.selection,i=n.$head,a=n.empty,o=i;if(!a)return!1;if(i.parent.isTextblock){if(r?!r.endOfTextblock("forward",t):i.parentOffset<i.parent.content.size)return!1;o=A_(i)}var s=o&&o.nodeAfter;return!s||!Zt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Zt.create(t.doc,o.pos)).scrollIntoView()),!0)}function A_(t){if(!t.parent.type.spec.isolating)for(var e=t.depth-1;e>=0;e--){var r=t.node(e);if(t.index(e)+1<r.childCount)return t.doc.resolve(t.after(e+1));if(r.type.spec.isolating)break}return null}function M_(t,e){var r=t.selection,n=r.$head,i=r.$anchor;return!n.parent.type.spec.code||!n.sameParent(i)?!1:(e&&e(t.tr.insertText(`
35`).scrollIntoView()),!0)}function ty(t){for(var e=0;e<t.edgeCount;e++){var r=t.edge(e),n=r.type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function ry(t,e){var r=t.selection,n=r.$head,i=r.$anchor;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;var a=n.node(-1),o=n.indexAfter(-1),s=ty(a.contentMatchAt(o));if(!a.canReplaceWith(o,o,s))return!1;if(e){var u=n.after(),f=t.tr.replaceWith(u,u,s.createAndFill());f.setSelection(er.near(f.doc.resolve(u),1)),e(f.scrollIntoView())}return!0}function SN(t,e){var r=t.selection,n=r.$from,i=r.$to;if(r instanceof yo||n.parent.inlineContent||i.parent.inlineContent)return!1;var a=ty(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(e){var o=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,s=t.tr.insert(o,a.createAndFill());s.setSelection($r.create(s.doc,o+1)),e(s.scrollIntoView())}return!0}function kN(t,e){var r=t.selection,n=r.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var i=n.before();if(hc(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}var a=n.blockRange(),o=a&&Rp(a);return o==null?!1:(e&&e(t.tr.lift(a,o).scrollIntoView()),!0)}function ON(t,e){var r=t.selection,n=r.$from,i=r.$to;if(t.selection instanceof Zt&&t.selection.node.isBlock)return!n.parentOffset||!hc(t.doc,n.pos)?!1:(e&&e(t.tr.split(n.pos).scrollIntoView()),!0);if(!n.parent.isBlock)return!1;if(e){var a=i.parentOffset==i.parent.content.size,o=t.tr;(t.selection instanceof $r||t.selection instanceof yo)&&o.deleteSelection();var s=n.depth==0?null:ty(n.node(-1).contentMatchAt(n.indexAfter(-1))),u=a&&s?[{type:s}]:null,f=hc(o.doc,o.mapping.map(n.pos),1,u);if(!u&&!f&&hc(o.doc,o.mapping.map(n.pos),1,s&&[{type:s}])&&(u=[{type:s}],f=!0),f&&(o.split(o.mapping.map(n.pos),1,u),!a&&!n.parentOffset&&n.parent.type!=s)){var d=o.mapping.map(n.before()),v=o.doc.resolve(d);n.node(-1).canReplaceWith(v.index(),v.index()+1,s)&&o.setNodeMarkup(o.mapping.map(n.before()),s)}e(o.scrollIntoView())}return!0}function L_(t,e){return e&&e(t.tr.setSelection(new yo(t.doc))),!0}function AN(t,e,r){var n=e.nodeBefore,i=e.nodeAfter,a=e.index();return!n||!i||!n.type.compatibleContent(i.type)?!1:!n.content.size&&e.parent.canReplace(a-1,a)?(r&&r(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(a,a+1)||!(i.isTextblock||PT(t.doc,e.pos))?!1:(r&&r(t.tr.clearIncompatible(e.pos,n.type,n.contentMatchAt(n.childCount)).join(e.pos).scrollIntoView()),!0)}function D_(t,e,r){var n=e.nodeBefore,i=e.nodeAfter,a,o;if(n.type.spec.isolating||i.type.spec.isolating)return!1;if(AN(t,e,r))return!0;var s=e.parent.canReplace(e.index(),e.index()+1);if(s&&(a=(o=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&o.matchType(a[0]||i.type).validEnd){if(r){for(var u=e.pos+i.nodeSize,f=Ee.empty,d=a.length-1;d>=0;d--)f=Ee.from(a[d].create(null,f));f=Ee.from(n.copy(f));var v=t.tr.step(new ta(e.pos-1,u,e.pos,u,new Ze(f,1,0),a.length,!0)),m=u+2*a.length;PT(v.doc,m)&&v.join(m),r(v.scrollIntoView())}return!0}var b=er.findFrom(e,1),x=b&&b.$from.blockRange(b.$to),T=x&&Rp(x);if(T!=null&&T>=e.depth)return r&&r(t.tr.lift(x,T).scrollIntoView()),!0;if(s&&wc(i,"start",!0)&&wc(n,"end")){for(var S=n,M=[];M.push(S),!S.isTextblock;)S=S.lastChild;for(var L=i,P=1;!L.isTextblock;L=L.firstChild)P++;if(S.canReplace(S.childCount,S.childCount,L.content)){if(r){for(var A=Ee.empty,H=M.length-1;H>=0;H--)A=Ee.from(M[H].copy(A));var W=t.tr.step(new ta(e.pos-M.length,e.pos+i.nodeSize,e.pos+P,e.pos+i.nodeSize-P,new Ze(A,M.length,0),0,!0));r(W.scrollIntoView())}return!0}}return!1}function MN(t,e){return function(r,n){var i=r.selection,a=i.$from,o=i.$to,s=a.blockRange(o),u=s&&UI(s,t,e);return u?(n&&n(r.tr.wrap(s,u).scrollIntoView()),!0):!1}}function ny(t,e){return function(r,n){var i=r.selection,a=i.from,o=i.to,s=!1;return r.doc.nodesBetween(a,o,function(u,f){if(s)return!1;if(!(!u.isTextblock||u.hasMarkup(t,e)))if(u.type==t)s=!0;else{var d=r.doc.resolve(f),v=d.index();s=d.parent.canReplaceWith(v,v+1,t)}}),s?(n&&n(r.tr.setBlockType(a,o,t,e).scrollIntoView()),!0):!1}}function LN(t,e,r){for(var n=function(o){var s=e[o],u=s.$from,f=s.$to,d=u.depth==0?t.type.allowsMarkType(r):!1;
35if(t.nodesBetween(u.pos,f.pos,function(v){if(d)return!1;d=v.inlineContent&&v.type.allowsMarkType(r)}),d)return{v:!0}},i=0;i<e.length;i++){var a=n(i);if(a)return a.v}return!1}function Vf(t,e){return function(r,n){var i=r.selection,a=i.empty,o=i.$cursor,s=i.ranges;if(a&&!o||!LN(r.doc,s,t))return!1;if(n)if(o)t.isInSet(r.storedMarks||o.marks())?n(r.tr.removeStoredMark(t)):n(r.tr.addStoredMark(t.create(e)));else{for(var u=!1,f=r.tr,d=0;!u&&d<s.length;d++){var v=s[d],m=v.$from,b=v.$to;u=r.doc.rangeHasMark(m.pos,b.pos,t)}for(var x=0;x<s.length;x++){var T=s[x],S=T.$from,M=T.$to;if(u)f.removeMark(S.pos,M.pos,t);else{var L=S.pos,P=M.pos,A=S.nodeAfter,H=M.nodeBefore,W=A&&A.isText?/^\s*/.exec(A.text)[0].length:0,J=H&&H.isText?/\s*$/.exec(H.text)[0].length:0;L+W<P&&(L+=W,P-=J),f.addMark(L,P,t.create(e))}}n(f.scrollIntoView())}return!0}}function Hp(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(r,n,i){for(var a=0;a<t.length;a++)if(t[a](r,n,i))return!0;return!1}}var mv=Hp(ey,EN,TN),m0=Hp(ey,O_,_N),ps={Enter:Hp(M_,SN,kN,ON),"Mod-Enter":ry,Backspace:mv,"Mod-Backspace":mv,"Shift-Backspace":mv,Delete:m0,"Mod-Delete":m0,"Mod-a":L_},I_={"Ctrl-h":ps.Backspace,"Alt-Backspace":ps["Mod-Backspace"],"Ctrl-d":ps.Delete,"Ctrl-Alt-Backspace":ps["Mod-Delete"],"Alt-Delete":ps["Mod-Delete"],"Alt-d":ps["Mod-Delete"]};for(var g0 in ps)I_[g0]=ps[g0];var DN=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"?os.platform()=="darwin":!1,y0=DN?I_:ps,R_=function(e,r){this.match=e,this.handler=typeof r=="string"?IN(r):r};function IN(t){return function(e,r,n,i){var a=t;if(r[1]){var o=r[0].lastIndexOf(r[1]);a+=r[0].slice(o+r[1].length),n+=o;var s=n-i;s>0&&(a=r[0].slice(o-s,o)+a,n=i)}return e.tr.insertText(a,n,i)}}var RN=500;function N_(t){var e=t.rules,r=new Hi({state:{init:function(){return null},apply:function(i,a){var o=i.getMeta(this);return o||(i.selectionSet||i.docChanged?null:a)}},props:{handleTextInput:function(i,a,o,s){return b0(i,a,o,s,e,r)},handleDOMEvents:{compositionend:function(n){setTimeout(function(){var i=n.state.selection,a=i.$cursor;a&&b0(n,a.pos,a.pos,"",e,r)})}}},isInputRules:!0});return r}function b0(t,e,r,n,i,a){if(t.composing)return!1;var o=t.state,s=o.doc.resolve(e);if(s.parent.type.spec.code)return!1;for(var u=s.parent.textBetween(Math.max(0,s.parentOffset-RN),s.parentOffset,null,"")+n,f=0;f<i.length;f++){var d=i[f].match.exec(u),v=d&&i[f].handler(o,d,e-(d[0].length-n.length),r);if(v)return t.dispatch(v.setMeta(a,{transform:v,from:e,to:r,text:n})),!0}return!1}function NN(t,e){for(var r=t.plugins,n=0;n<r.length;n++){var i=r[n],a=void 0;if(i.spec.isInputRules&&(a=i.getState(t))){if(e){for(var o=t.tr,s=a.transform,u=s.steps.length-1;u>=0;u--)o.step(s.steps[u].invert(s.docs[u]));if(a.text){var f=o.doc.resolve(a.from).marks();o.replaceWith(a.from,a.to,t.schema.text(a.text,f))}else o.delete(a.from,a.to);e(o)}return!0}}return!1}var sp=200,ri=function(){};ri.prototype.append=function(e){return e.length?(e=ri.from(e),!this.length&&e||e.length<sp&&this.leafAppend(e)||this.length<sp&&e.leafPrepend(this)||this.appendInner(e)):this};ri.prototype.prepend=function(e){return e.length?ri.from(e).append(this):this};ri.prototype.appendInner=function(e){return new PN(this,e)};ri.prototype.slice=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.length),e>=r?ri.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,r))};ri.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};ri.prototype.forEach=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length),r<=n?this.forEachInner(e,r,n,0):this.forEachInvertedInner(e,r,n,0)};ri.prototype.map=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length);var i=[];return this.forEach(function(a,o){return i.push(e(a,o))},r,n),i};ri.from=function(e){return e instanceof ri?e:e&&e.length?new P_(e):ri.empty};var P_=function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new e(this.values.slice(i,a))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,a,o,s){for(var u=a;u<o;u++)if(i(this.values[u],s+u)===!1)return!1},e.prototype.forEachInvertedInner=function(i,a,o,s){for(var u=a-1;u>=o;u--)if(i(this.values[u],s+u)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=sp)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=sp)return new e(i.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(e.prototype,r),e}(ri);ri.empty=new P_([]);var PN=function(t){function e(r,n){t.call(this),this.left=r,this.right=n,this.length=r.length+n.length,this.depth=Math.max(r.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,i,a,o){var s=this.left.length;if(i<s&&this.left.forEachInner(n,i,Math.min(a,s),o)===!1||a>s&&this.right.forEachInner(n,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},e.prototype.forEachInvertedInner=function(n,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(n,i-s,Math.max(a,s)-s,o+s)===!1||a<s&&this.left.forEachInvertedInner(n,Math.min(i,s),a,o)===!1)return!1}
35,e.prototype.sliceInner=function(n,i){if(n==0&&i==this.length)return this;var a=this.left.length;return i<=a?this.left.slice(n,i):n>=a?this.right.slice(n-a,i-a):this.left.slice(n,a).append(this.right.slice(0,i-a))},e.prototype.leafAppend=function(n){var i=this.right.leafAppend(n);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(n){var i=this.left.leafPrepend(n);if(i)return new e(i,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e}(ri),B_=ri,BN=500,oi=function(e,r){this.items=e,this.eventCount=r};oi.prototype.popEvent=function(e,r){var n=this;if(this.eventCount==0)return null;for(var i=this.items.length;;i--){var a=this.items.get(i-1);if(a.selection){--i;break}}var o,s;r&&(o=this.remapping(i,this.items.length),s=o.maps.length);var u=e.tr,f,d,v=[],m=[];return this.items.forEach(function(b,x){if(!b.step){o||(o=n.remapping(i,x+1),s=o.maps.length),s--,m.push(b);return}if(o){m.push(new No(b.map));var T=b.step.map(o.slice(s)),S;T&&u.maybeStep(T).doc&&(S=u.mapping.maps[u.mapping.maps.length-1],v.push(new No(S,null,null,v.length+m.length))),s--,S&&o.appendMap(S,s)}else u.maybeStep(b.step);if(b.selection)return f=o?b.selection.map(o.slice(s)):b.selection,d=new oi(n.items.slice(0,i).append(m.reverse().concat(v)),n.eventCount-1),!1},this.items.length,0),{remaining:d,transform:u,selection:f}};oi.prototype.addTransform=function(e,r,n,i){for(var a=[],o=this.eventCount,s=this.items,u=!i&&s.length?s.get(s.length-1):null,f=0;f<e.steps.length;f++){var d=e.steps[f].invert(e.docs[f]),v=new No(e.mapping.maps[f],d,r),m=void 0;(m=u&&u.merge(v))&&(v=m,f?a.pop():s=s.slice(0,s.length-1)),a.push(v),r&&(
35o++,r=null),i||(u=v)}var b=o-n.depth;return b>HN&&(s=FN(s,b),o-=b),new oi(s.append(a),o)};oi.prototype.remapping=function(e,r){var n=new wi;return this.items.forEach(function(i,a){var o=i.mirrorOffset!=null&&a-i.mirrorOffset>=e?n.maps.length-i.mirrorOffset:null;n.appendMap(i.map,o)},e,r),n};oi.prototype.addMaps=function(e){return this.eventCount==0?this:new oi(this.items.append(e.map(function(r){return new No(r)})),this.eventCount)};oi.prototype.rebased=function(e,r){if(!this.eventCount)return this;var n=[],i=Math.max(0,this.items.length-r),a=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(function(b){b.selection&&s--},i);var u=r;this.items.forEach(function(b){var x=a.getMirror(--u);if(x!=null){o=Math.min(o,x);var T=a.maps[x];if(b.step){var S=e.steps[x].invert(e.docs[x]),M=b.selection&&b.selection.map(a.slice(u+1,x));M&&s++,n.push(new No(T,S,M))}else n.push(new No(T))}},i);for(var f=[],d=r;d<o;d++)f.push(new No(a.maps[d]));var v=this.items.slice(0,i).append(f).append(n),m=new oi(v,s);return m.emptyItemCount()>BN&&(m=m.compress(this.items.length-n.length)),m};oi.prototype.emptyItemCount=function(){var e=0;return this.items.forEach(function(r){r.step||e++}),e};oi.prototype.compress=function(e){e===void 0&&(e=this.items.length);var r=this.remapping(0,e),n=r.maps.length,i=[],a=0;return this.items.forEach(function(o,s){if(s>=e)i.push(o),o.selection&&a++;else if(o.step){var u=o.step.map(r.slice(n)),f=u&&u.getMap();if(n--,f&&r.appendMap(f,n),u){var d=o.selection&&o.selection.map(r.slice(n));d&&a++;var v=new No(f.invert(),u,d),m,b=i.length-1;(m=i.length&&i[b].merge(v))?i[b]=m:i.push(v)}}else o.map&&n--},this.items.length,0),new oi(B_.from(i.reverse()),a)};oi.empty=new oi(B_.empty,0);function FN(t,e){var r;return t.forEach(function(n,i){if(n.selection&&e--==0)return r=i,!1}),t.slice(r)}var No=function(e,r,n,i){this.map=e,this.step=r,this.selection=n,this.mirrorOffset=i};No.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var r=e.step.merge(this.step);if(r)return new No(r.getMap().invert(),r,this.selection)}};var al=function(e,r,n,i){this.done=e,this.undone=r,this.prevRanges=n,this.prevTime=i},HN=20;function qN(t,e,r,n){var i=r.getMeta(ys),a;if(i)return i.historyState;r.getMeta(UN)&&(t=new al(t.done,t.undone,null,0));var o=r.getMeta("appendedTransaction");if(r.steps.length==0)return t;if(o&&o.getMeta(ys))return o.getMeta(ys).redo?new al(t.done.addTransform(r,null,n,Bd(e)),t.undone,w0(r.mapping.maps[r.steps.length-1]),t.prevTime):new al(t.done,t.undone.addTransform(r,null,n,Bd(e)),null,t.prevTime);if(r.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){var s=t.prevTime==0||!o&&(t.prevTime<(r.time||0)-n.newGroupDelay||!$N(r,t.prevRanges)),u=o?gv(t.prevRanges,r.mapping):w0(r.mapping.maps[r.steps.length-1]);return new al(t.done.addTransform(r,s?e.selection.getBookmark():null,n,Bd(e)),oi.empty,u,r.time)}else return(a=r.getMeta("rebased"))?new al(t.done.rebased(r,a),t.undone.rebased(r,a),gv(t.prevRanges,r.mapping),t.prevTime):new al(t.done.addMaps(r.mapping.maps),t.undone.addMaps(r.mapping.maps),gv(t.prevRanges,r.mapping),t.prevTime)}function $N(t,e){if(!e)return!1;if(!t.docChanged)return!0;var r=!1;return t.mapping.maps[0].forEach(function(n,i){for(var a=0;a<e.length;a+=2)n<=e[a+1]&&i>=e[a]&&(r=!0)}),r}function w0(t){var e=[];return t.forEach(function(r,n,i,a){return e.push(i,a)}),e}function gv(t,e){if(!t)return null;for(var r=[],n=0;n<t.length;n+=2){var i=e.map(t[n],1),a=e.map(t[n+1],-1);i<=a&&r.push(i,a)}return r}function F_(t,e,r,n){var i=Bd(e),a=ys.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,i);if(o){var s=o.selection.resolve(o.transform.doc),u=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),a,i),f=new al(n?u:o.remaining,n?o.remaining:u,null,0);r(o.transform.setSelection(s).setMeta(ys,{redo:n,historyState:f}).scrollIntoView())}}var yv=!1,x0=null;function Bd(t){var e=t.plugins;if(x0!=e){yv=!1,x0=e;for(var r=0;r<e.length;r++)if(e[r].spec.historyPreserveItems){yv=!0;break}}return yv}var ys=new wu("history"),UN=new wu("closeHistory");function H_(t){return t={depth:t&&t.depth||100,newGroupDelay:t&&t.newGroupDelay||500},new Hi({key:ys,state:{init:function(){return new al(oi.empty,oi.empty,null,0)},apply:function(r,n,i){return qN(n,i,r,t)}},config:t})}function Fd(t,e){var r=ys.getState(t);return!r||r.done.eventCount==0?!1:(e&&F_(r,t,e,!1),!0)}function q_(t,e){var r=ys.getState(t);return!r||r.undone.eventCount==0?!1:(e&&F_(r,t,e,!0),!0)}function jN(t){var e=ys.getState(t);return e?e.done.eventCount:0}/**
36 * @toast-ui/editor
37 * @version 3.1.10 | Wed Jul 27 2022
38 * @author NHN Cloud FE Development Lab <[email protected]>
39 * @license MIT
40 *//*! *****************************************************************************
41Copyright (c) Microsoft Corporation.
42
43Permission to use, copy, modify, and/or distribute this software for any
44purpose with or without fee is hereby granted.
45
46THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
47REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
48AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
49INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
51OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
52PERFORMANCE OF THIS SOFTWARE.
53***************************************************************************** */var Hm=function(t,e){return Hm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Hm(t,e)};function it(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hm(t,e);function r(){this.constructor=t}
vendor: 10,918 bytes, line 53
53t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var de=function(){return de=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},de.apply(this,arguments)};function na(t,e,r){if(arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}function mr(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function zN(t,e,r){var n;r=r||null;for(n in t)if(t.hasOwnProperty(n)&&e.call(r,t[n],n,t)===!1)break}var xc=zN;function WN(t,e){var r=Object.prototype.hasOwnProperty,n,i,a,o;for(a=1,o=arguments.length;a<o;a+=1){n=arguments[a];for(i in n)r.call(n,i)&&(t[i]=n[i])}return t}var iy=WN;function VN(t){return typeof t=="string"||t instanceof String}var Ts=VN;function GN(t){return t instanceof Array}var $c=GN;function KN(t,e,r){var n=0,i=t.length;for(r=r||null;n<i&&e.call(r,t[n],n,t)!==!1;n+=1);}var Cc=KN,JN=$c,YN=Cc,XN=xc;function QN(t,e,r){JN(t)?YN(t,e,r):XN(t,e,r)}var qp=QN,ZN=Ts,eP=qp;function tP(t,e,r){var n=t.style;if(ZN(e)){n[e]=r;return}eP(e,function(i,a){n[a]=i})}var qo=tP,rP=$c;function nP(t,e,r){var n,i;if(r=r||0,!rP(e))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t,r);for(i=e.length,n=r;r>=0&&n<i;n+=1)if(e[n]===t)return n;return-1}var pu=nP;function iP(t){return t===void 0}var mo=iP,aP=mo;function oP(t){return!t||!t.className?"":aP(t.className.baseVal)?t.className:t.className.baseVal}var ay=oP,sP=$c,lP=mo;function uP(t,e){if(e=sP(e)?e.join(" "):e,e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),lP(t.className.baseVal)){t.className=e;return}t.className.baseVal=e}var $_=uP,C0=qp,cP=pu,fP=ay,dP=$_;function pP(t){var e=Array.prototype.slice.call(arguments,1),r=t.classList,n=[],i;if(r){C0(e,function(a){t.classList.add(a)});return}i=fP(t),i&&(e=[].concat(i.split(/\s+/),e)),C0(e,function(a){cP(a,n)<0&&n.push(a)}),dP(t,n)}var Po=pP,E0=Cc,hP=pu,vP=ay,mP=$_;function gP(t){var e=Array.prototype.slice.call(arguments,1),r=t.classList,n,i;if(r){E0(e,function(a){r.remove(a)});return}n=vP(t).split(/\s+/),i=[],E0(n,function(a){hP(a,e)<0&&i.push(a)}),mP(t,i)}var uo=gP;function yP(t){return typeof t=="number"||t instanceof Number}var hs=yP;function bP(t){return t===null}var lp=bP,wP=xc;function xP(t,e){var r=document.createElement("img"),n="";return wP(e,function(i,a){n+="&"+a+"="+i}),n=n.substring(1),r.src=t+"?"+n,r.style.display="none",document.body.appendChild(r),document.body.removeChild(r),r}var CP=xP,EP=mo,TP=CP,_P=7*24*60*60*1e3;function SP(t){var e=new Date().getTime();return e-t>_P}function kP(t,e){var r="https://www.google-analytics.com/collect",n=location.hostname,i="event",a="use",o="TOAST UI "+t+" for "+n+": Statistics",s=window.localStorage.getItem(o);!EP(window.tui)&&window.tui.usageStatistics===!1||s&&!SP(s)||(window.localStorage.setItem(o,new Date().getTime()),setTimeout(function(){(document.readyState==="interactive"||document.readyState==="complete")&&TP(r,{v:1,t:i,tid:e,cid:n,dp:n,dh:t,el:t,ec:a})},1e3))}var OP=kP,AP=/[\u0020]+/g,MP=/[>(){}[\]+-.!#|]/g,T0=/<([a-zA-Z_][a-zA-Z0-9\-._]*)(\s|[^\\>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-._]*)\s*\/?>|<!--[^-]+-->|<([a-zA-Z_][a-zA-Z0-9\-.:/]*)>/g,_0=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/g,LP=/[*_~`]/g,S0=/!\[.*\]\(.*\)/g,DP=/[[\]]/g,k0=/(?:^|[^\\])\\(?!\\)/g,IP='[&<>"]',O0=new RegExp(IP,"g");function RP(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return t}}function cc(t){return O0.test(t)?t.replace(O0,RP):t}function NP(){OP("editor","UA-129966929-1")}function si(t,e){return t.indexOf(e)!==-1}var PP=["rel","target","hreflang","type"],BP={codeblock:/(^ {4}[^\n]+\n*)+/,thematicBreak:/^ *((\* *){3,}|(- *){3,} *|(_ *){3,}) */,atxHeading:/^(#{1,6}) +[\s\S]+/,seTextheading:/^([^\n]+)\n *(=|-){2,} */,blockquote:/^( *>[^\n]+.*)+/,list:/^ *(\*+|-+|\d+\.) [\s\S]+/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? */,link:/!?\[.*\]\(.*\)/,reflink:/!?\[.*\]\s*\[([^\]]*)\]/,verticalBar:/\u007C/,fencedCodeblock:/^((`|~){3,})/};function U_(t){if(!t)return null;var e={};return PP.forEach(function(r){mo(t[r])||(e[r]=t[r])}),e}function up(t,e){for(var r="",n=0;n<e;n+=1)r+=t;return r}function FP(t){var e=!1;return xc(BP,function(r){return r.test(t)&&(e=!0),!e}),e}function cp(t){for(var e=[],r=S0.exec(t);r;)e.push([r.index,r.index+r[0].length]),r=S0.exec(t);return t.replace(DP,function(n,i){var a=e.some(function(o){return i>o[0]&&i<o[1]});return a?n:"\\"+n})}function HP(t){var e=function(i){return"\\"+i},r=function(i){return i+"\\"},n=t.replace(AP," ");return _0.test(n)&&(n=n.replace(_0,e)),k0.test(n)&&(n=n.replace(k0,r)),n=n.replace(LP,e),T0.test(n)&&(n=n.replace(T0,e)),FP(n)&&(n=n.replace(MP,e)),n}function qP(t){var e;return t.indexOf('"')===-1?e='""':e=t.indexOf("'")===-1?"''":"()",e[0]+t+e[1]}function qm(t){return lp(t)||mo(t)}function oy(t,e){if(t===null&&t===e)return!0;if(typeof t!="object"||typeof e!="object"||qm(t)||qm(e))return t===e;for(var r in t)if(t[r]!==e[r])return!1;for(var r in e)if(!(r in t))return!1;return!0}function gi(t){return t[t.length-1]}function $P(t,e,r){return t>=e&&t<=r}function sy(t){return typeof t=="object"&&t!==null}function fp(t,e){var r=de({},t);return t&&e&&Object.keys(e).forEach(function(n){sy(r[n])?Array.isArray(e[n])?r[n]=ly(e[n]):r.hasOwnProperty(n)?r[n]=fp(r[n],e[n]):r[n]=uy(e[n]):r[n]=e[n]}),r}function ly(t){return t.map(function(e){return sy(e)?Array.isArray(e)?ly(e):uy(e):e})}function uy(t){var e=Object.keys(t);return e.length?e.reduce(function(r,n){return sy(t[n])?r[n]=Array.isArray(t[n])?ly(t[n]):uy(t[n]):r[n]=t[n],r},{}):t}function cy(t,e){return e===void 0&&(e={}),Object.keys(e).forEach(function(r){t.hasOwnProperty(r)&&typeof t[r]=="object"?Array.isArray(e[r])?t[r]=e[r]:cy(t[r],e[r]):t[r]=e[r]}),t}function A0(t,e){return t>e?[e,t]:[t,e]}function UP(t){var e=/^\s(\S*)/g;return e.test(t)}function jP(t){var e=/(\S*)\s$/g;return e.test(t)}var zP=Cc;function WP(t){var e;try{e=Array.prototype.slice.call(t)}catch{e=[],zP(t,function(n){e.push(n)})}return e}var zo=WP;function dp(t,e){var r=t.nodes.paragraph;return e?r.create(null,Ts(e)?t.text(e):e):r.createAndFill()}function ni(t,e,r){return t.text(e,r)}function rn(t,e,r){r===void 0&&(r=e);var n=t.doc.content.size,i=n>0?n-1:1;return $r.create(t.doc,Math.min(e,i),Math.min(r,i))}function fy(t,e,r){var n=e.pos;return t.replaceWith(n,n,dp(r)),t.setSelection(rn(t,n+1))}function pp(t){for(var e=t.state,r=t.from,n=t.startIndex,i=t.endIndex,a=t.createText,o=e.tr,s=e.doc,u=e.schema,f=n;f<=i;f+=1){var d=s.child(f),v=d.nodeSize,m=d.textContent,b=d.content,x=a(m),T=x?ni(u,x):Ee.empty,S=o.mapping.map(r),M=S+b.size;o.replaceWith(S,M,T),r+=v}return o}function dy(t,e,r,n){var i=r.length;t.split(e).delete(e-i,e).insert(t.mapping.map(e),n).setSelection(rn(t,t.mapping.map(e)-i))}function Gf(t){return t.sourcepos[0][0]}function $p(t){return t.sourcepos[1][0]}function Up(t){return t.sourcepos[0][1]}function ll(t){return t.sourcepos[1][1]}function VP(t){var e=t.type;return e==="htmlBlock"||e==="htmlInline"}function GP(t){var e=t.type;return e==="strike"||e==="strong"||e==="emph"||e==="code"||e==="link"||e==="image"}function KP(t){return t&&t.type==="codeBlock"}function hu(t){return t&&(t.type==="item"||t.type==="list")}function j_(t){return hu(t)&&t.listData.type==="ordered"}function JP(t){return hu(t)&&t.listData.type!=="ordered"}function M0(t){return t&&(t.type==="tableCell"||t.type==="tableDelimCell")}function YP(t){switch(t.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":case"customInline":return!0;default:return!1}}function Ec(t,e,r){for(r===void 0&&(r=!0),t=r?t:t.parent;t&&t.type!=="document";){if(e(t))return t;t=t.parent}return null}function XP(t,e,r){for(r===void 0&&(r=!0),t=r?t:t.parent;t&&t.type!=="document";)e(t),t=t.parent}function Vn(t,e){return[t[0],t[1]+e]}function ul(t,e){return[t[0],e]}function QP(t){var e=t.firstChild.literal;switch(t.type){case"emph":return"*"+e+"*";case"strong":return"**"+e+"**";case"strike":return"~~"+e+"~~";case"code":return"`"+e+"`";case"link":case"image":var r=t,n=r.destination,i=r.title,a=t.type==="link"?"":"!";return a+"["+e+"]("+n+(i?' "'+i+'"':"")+")";default:return null}}function ZP(t){switch(t.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}function eB(t){for(var e=[],r=t.walker(),n=null;n=r.next();){var i=n.node;i.type==="text"&&e.push(i.literal)}return e.join("")}var Bf=[],z_={},L0=/\$\$widget\d+\s/;function jp(t){var e=t.search(L0);if(e!==-1){var r=t.substring(e),n=r.replace(L0,"").replace("$$","");t=t.substring(0,e),t+=jp(n)}return t}function W_(t,e){return"$$"+t+" "+e+"$$"}function V_(t,e){var r=z_[t],n=r.rule,i=r.toDOM,a=jp(e).match(n);return a&&(e=a[0]),i(e)}function tB(){return Bf}function rB(t){Bf=t,Bf.forEach(function(e,r){z_["widget"+r]=e})}function bv(t,e,r,n){return t.concat(cu(e,r,n))}function cu(t,e,r){r===void 0&&(r=0);var n=[],i=(Bf[r]||{}).rule,a=r+1;if(t=jp(t),i&&i.test(t)){for(var o=void 0;(o=t.search(i))!==-1;){var s=t.substring(0,o);s&&(n=bv(n,s,e,a)),t=t.substring(o);var u=t.match(i)[0],f="widget"+r;n.push(e.nodes.widget.create({info:f},e.text(W_(f,u)))),t=t.substring(u.length)}t&&(n=bv(n,t,e,a))}else t&&(n=r<Bf.length-1?bv(n,t,e,a):[e.text(t)]);return n}function G_(t){for(var e,r="",n=t.walker();e=n.next();){var i=e.node,a=e.entering;a&&(i!==t&&i.type!=="text"?(r+=QP(i),n.resumeAt(t,!1),n.next()):i.type==="text"&&(r+=i.literal))}return r}function K_(){return{deleteSelection:function(){return ey},selectAll:function(){return L_},undo:function(){return Fd},redo:function(){return q_}}}function nB(t){return new Hi({props:{decorations:function(e){var r=e.doc;if(t.text&&r.childCount===1&&r.firstChild.isTextblock&&r.firstChild.content.size===0){var n=document.createElement("span");return Po(n,"placeholder"),t.className&&Po(n,t.className),n.textContent=t.text,Ir.create(r,[kn.widget(1,n)])}return null}}})}var iB=pu,aB=ay;function oB(t,e){var r;return t.classList?t.classList.contains(e):(r=aB(t).split(/\s+/),iB(e,r)>-1)}var J_=oB,sB=pu,lB=zo,Ed=Element.prototype,uB=Ed.matches||Ed.webkitMatchesSelector||Ed.mozMatchesSelector||Ed.msMatchesSelector||function(t){var e=this.document||this.ownerDocument;return sB(this,lB(e.querySelectorAll(t)))>-1};function cB(t,e){return uB.call(t,e)}var fB=cB,Y_="[A-Za-z][A-Za-z0-9-]*",dB="[a-zA-Z_:][a-zA-Z0-9:._-]*",pB="[^\"'=<>`\\x00-\\x20]+",hB="'[^']*'",vB='"[^"]*"',mB="(?:"+pB+"|"+hB+"|"+vB+")",gB="(?:\\s*=\\s*"+mB+")",X_="(?:\\
53s+"+dB+gB+"?)",Q_="<("+Y_+")("+X_+")*\\s*/?>",yB="</("+Y_+")\\s*[>]",Z_="(?:"+Q_+"|"+yB+")",Tc=new RegExp("^"+Z_,"i"),$m=/<br\s*\/*>/i,bB=/<! ---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,e1="</p><p>",D0="a";function py(t,e,r){var n=parseInt(t.left,10),i=parseInt(t.top,10),a=parseInt(t.width,10)+parseInt(t.paddingLeft,10)+parseInt(t.paddingRight,10),o=parseInt(t.height,10)+parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10);return e>=n&&e<=n+a&&r>=i&&r<=i+o}var t1="toastui-editor-";function lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n],o=void 0;Array.isArray(a)?o=a[0]?a[1]:null:o=a,o&&r.push(""+t1+o)}return r.join(" ")}function Bn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.map(function(r){return t1+"md-"+r}).join(" ")}function wB(t){return(t==null?void 0:t.nodeType)===Node.TEXT_NODE}function zp(t){return t&&t.nodeType===Node.ELEMENT_NODE}function xB(t,e){var r=zo(t.querySelectorAll(e));return r.length?r:[]}function CB(t,e){e=$c(e)?zo(e):[e],e.forEach(function(r){t.appendChild(r)})}function EB(t,e){e.parentNode&&e.parentNode.insertBefore(t,e)}function vu(t){t.parentNode&&t.parentNode.removeChild(t)}function TB(t){for(var e=[];t.firstChild;)e.push(t.firstChild),t.parentNode&&t.parentNode.insertBefore(t.firstChild,t);return vu(t),e}function hy(t,e,r){mo(r)&&(r=!J_(t,e));var n=r?Po:uo;n(t,e)}function r1(t,e){var r=document.createElement("div");Ts(t)?r.innerHTML=t:r.appendChild(t);var n=r.firstChild;return e&&e.appendChild(n),n}function vy(t){var e=window.getComputedStyle(t);return["margin-left","margin-right"].reduce(function(r,n){return r+parseInt(e.getPropertyValue(n),10)},0)+t.offsetWidth}function Bo(t,e){var r;for(Ts(e)?r=function(n){return fB(n,e)}:r=function(n){return n===e};t&&t!==document;){if(zp(t)&&r(t))return t;t=t.parentNode}return null}function n1(t,e){for(var r=0,n=0;t&&t!==e;){var i=t.offsetTop,a=t.offsetLeft,o=t.offsetParent;if(r+=i,n+=a,o===e.offsetParent)break;t=t.offsetParent}return{offsetTop:r,offsetLeft:n}}function my(t,e){Object.keys(t).forEach(function(r){qm(t[r])?e.removeAttribute(r):e.setAttribute(r,t[r])})}function _B(t){var e=t.replace(/<p><br\s*\/*><\/p>/gi,"<p></p>"),r=new RegExp(Z_,"ig"),n=e.match(r);return n==null||n.forEach(function(i,a){if($m.test(i)){var o=e1;if(a){var s=n[a-1],u=s.match(Q_);if(u&&!/br/i.test(u[1])){var f=u[1];o="</"+f+"><"+f+">"}}e=e.replace($m,o)}}),e}var i1=new wu("widget"),I0=5,SB=function(){function t(e,r){var n=this;this.popup=null,this.removeWidget=function(){n.popup&&(n.rootEl.removeChild(n.popup),n.popup=null)},this.rootEl=e.dom.parentElement,this.eventEmitter=r,this.eventEmitter.listen("blur",this.removeWidget),this.eventEmitter.listen("loadUI",function(){n.rootEl=Bo(e.dom.parentElement,"."+lt("defaultUI"))}),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return t.prototype.update=function(e){var r=i1.getState(e.state);if(this.removeWidget(),r){var n=r.node,i=r.style,a=e.coordsAtPos(r.pos),o=a.top,s=a.left,u=a.bottom,f=u-o,d=this.rootEl.getBoundingClientRect(),v=o-d.top;qo(n,{opacity:"0"}),this.rootEl.appendChild(n),qo(n,{position:"absolute",left:s-d.left+I0+"px",top:(i==="bottom"?v+f-I0:v-f)+"px",opacity:"1"}),this.popup=n,e.focus()}},t.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},t}();function kB(t){return new Hi({key:i1,state:{init:function(){return null},apply:function(e){return e.getMeta("widget")}},view:function(e){return new SB(e,t)}})}function OB(t){t.listen("addImageBlobHook",function(e,r){var n=new FileReader;n.onload=function(i){var a=i.target;return r(a.result)},n.readAsDataURL(e)})}function gy(t,e,r){var n=function(i,a){t.emit("command","addImage",{imageUrl:i,altText:a||e.name||"image"})};t.emit("addImageBlobHook",e,n,r)}function a1(t){var e=zo(t).filter(function(n){var i=n.type;return i.indexOf("image")!==-1});if(e.length===1){var r=e[0];if(r)return r.getAsFile()}return null}function AB(t){var e=t.eventEmitter;return new Hi({props:{handleDOMEvents:{drop:function(r,n){var i,a=(i=n.dataTransfer)===null||i===void 0?void 0:i.files;return a&&Cc(a,function(o){return o.type.indexOf("image")!==-1?(n.preventDefault(),n.stopPropagation(),gy(e,o,n.type),!1):!0}),!0}}}})}var Zr=function(){function t(){}return Object.defineProperty(t.prototype,"type",{get:function(){return"node"}
53,enumerable:!1,configurable:!0}),t.prototype.setContext=function(e){this.context=e},t}();function o1(t){var e=document.createElement("span"),r=V_(t.attrs.info,t.textContent);return e.className="tui-widget",e.appendChild(r),{dom:e}}function Um(t){return t.type.name==="widget"}var s1=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"widget"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{info:{default:null}},group:"inline",inline:!0,content:"text*",selectable:!1,atom:!0,toDOM:function(){return["span",{class:"tui-widget"},0]},parseDOM:[{tag:"span.tui-widget",getAttrs:function(r){var n=r.textContent,i=n.match(/\$\$(widget\d+)/),a=i[1];return{info:a}}}]}},enumerable:!1,configurable:!0}),e}(Zr),l1=function(){function t(e){this.timer=null,this.el=document.createElement("div"),this.el.className="toastui-editor",this.eventEmitter=e,this.placeholder={text:""}}return t.prototype.createState=function(){return ii.create({schema:this.schema,plugins:this.createPlugins()})},t.prototype.initEvent=function(){var e=this,r=e.eventEmitter,n=e.view,i=e.editorType;n.dom.addEventListener("focus",function(){return r.emit("focus",i)}),n.dom.addEventListener("blur",function(){return r.emit("blur",i)})},t.prototype.emitChangeEvent=function(e){this.eventEmitter.emit("caretChange",this.editorType),e.docChanged&&this.eventEmitter.emit("change",this.editorType)},Object.defineProperty(t.prototype,"defaultPlugins",{get:function(){var e=this.createInputRules(),r=na(na([],this.keymaps),[op(de({"Shift-Enter":y0.Enter},y0)),H_(),nB(this.placeholder),kB(this.eventEmitter),AB(this.context)]);return e?r.concat(e):r},enumerable:!1,configurable:!0}),t.prototype.createInputRules=function(){var e=tB(),r=e.map(function(n){var i=n.rule;return new R_(i,function(a,o,s,u){var f=a.schema,d=a.tr,v=a.doc,m=o.input.match(new RegExp(i,"g")),b=v.resolve(s),x=b.parent,T=0;
vendor: 48,283 bytes, lines 53-73
53if(Um(x)&&(x=b.node(b.depth-1)),x.forEach(function(L){return Um(L)&&(T+=1)}),m.length>T){var S=gi(m),M=cu(S,f);return d.replaceWith(u-S.length+1,u,M)}return null})});return r.length?N_({rules:r}):null},t.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},t.prototype.createSchema=function(){return new vl({nodes:this.specs.nodes,marks:this.specs.marks})},t.prototype.createKeymaps=function(e){var r=K_(),n=r.undo,i=r.redo,a=this.specs.keymaps(e),o={"Mod-z":n(),"Shift-Mod-z":i()};return e?a.concat(op(o)):a},t.prototype.createCommands=function(){return this.specs.commands(this.view)},t.prototype.createPluginProps=function(){var e=this;return this.extraPlugins.map(function(r){return r(e.eventEmitter)})},t.prototype.focus=function(){var e=this;this.clearTimer(),this.timer=setTimeout(function(){e.view.focus(),e.view.dispatch(e.view.state.tr.scrollIntoView())})},t.prototype.blur=function(){this.view.dom.blur()},t.prototype.destroy=function(){var e=this;this.clearTimer(),this.view.destroy(),Object.keys(this).forEach(function(r){delete e[r]})},t.prototype.moveCursorToStart=function(e){var r=this.view.state.tr;this.view.dispatch(r.setSelection(rn(r,1)).scrollIntoView()),e&&this.focus()},t.prototype.moveCursorToEnd=function(e){var r=this.view.state.tr;this.view.dispatch(r.setSelection(rn(r,r.doc.content.size-1)).scrollIntoView()),e&&this.focus()},t.prototype.setScrollTop=function(e){this.view.dom.scrollTop=e},t.prototype.getScrollTop=function(){return this.view.dom.scrollTop},t.prototype.setPlaceholder=function(e){this.placeholder.text=e,this.view.dispatch(this.view.state.tr.scrollIntoView())},t.prototype.setHeight=function(e){qo(this.el,{height:e+"px"})},t.prototype.setMinHeight=function(e){qo(this.el,{minHeight:e+"px"})},t.prototype.getElement=function(){return this.el},t}();function MB(t){return t instanceof Function}var Ha=MB,LB=["Enter","Shift-Enter","Mod-Enter","Tab","Shift-Tab","Delete","Backspace","Mod-Delete","Mod-Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Mod-d","Mod-D","Alt-ArrowUp","Alt-ArrowDown"];function Td(t,e,r){return t.focus(),e(r)(t.state,t.dispatch,t)}var u1=function(){function t(e){this.specs=e}return Object.defineProperty(t.prototype,"nodes",{get:function(){return this.specs.filter(function(e){return e.type==="node"}).reduce(function(e,r){var n,i=r.name,a=r.schema;return de(de({},e),(n={},n[i]=a,n))},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"marks",{get:function(){return this.specs.filter(function(e){return e.type==="mark"}).reduce(function(e,r){var n,i=r.name,a=r.schema;return de(de({},e),(n={},n[i]=a,n))},{})},enumerable:!1,configurable:!0}),t.prototype.commands=function(e,r){var n=this.specs.filter(function(a){var o=a.commands;return o}).reduce(function(a,o){var s={},u=o.commands();return Ha(u)?s[o.name]=function(f){return Td(e,u,f)}:Object.keys(u).forEach(function(f){s[f]=function(d){return Td(e,u[f],d)}}),de(de({},a),s)},{}),i=K_();return Object.keys(i).forEach(function(a){n[a]=function(o){return Td(e,i[a],o)}}),r&&Object.keys(r).forEach(function(a){n[a]=function(o){return Td(e,r[a],o)}}),n},t.prototype.keymaps=function(e){var r=this.specs.filter(function(n){return n.keymaps}).map(function(n){return n.keymaps()});return r.map(function(n){return e||Object.keys(n).forEach(function(i){si(LB,i)||delete n[i]}),op(n)})},t.prototype.setContext=function(e){this.specs.forEach(function(r){r.setContext(e)})},t}();function c1(t){var e=t.from,r=t.to;return t instanceof yo?[e+1,r-1]:[e,r]}function R0(t){return t.index(0)+1}function _c(t,e,r){r===void 0&&(r=1);var n=0;return t.forEach(function(i,a){Um(i)&&a+2<e&&(n+=2*r)}),n}function Hd(t,e,r){r===void 0&&(r=e);var n=e===r,i=t.resolve(e),a=R0(i),o=a,s=i.start(1),u=s;if(!n){var f=t.resolve(r===t.content.size?r-1:r);u=f.start(1),o=R0(f),f.pos===t.content.size&&(r=t.content.size-2)}var d=Math.max(e-s+1,1),v=Math.max(r-u+1,1);return[[a,d+_c(t.child(a-1),d,-1)],[o,v+_c(t.child(o-1),v,-1)]]}function f1(t,e){for(var r=[],n=0,i=0;n<e;n+=1){var a=t.child(n);r[n]=i,i+=a.nodeSize}return r}function tu(t,e,r){var n=f1(t,r[0]),i=e[0]-1,a=r[0]-1,o=t.child(i),s=t.child(a),u=n[i],f=n[a];return u+=e[1]+_c(o,e[1]-1),f+=r[1]+_c(s,r[1]-1),[u,Math.min(f,t.content.size)]}function Pn(t){var e=t.$from,r=t.$to,n=t.from,i=t.to,a=e.doc;return t instanceof yo&&(e=a.resolve(n+1),r=a.resolve(i-1)),e.depth===0&&(e=a.resolve(n-1),r=e),{startFromOffset:e.start(1),endFromOffset:r.start(1),startToOffset:e.end(1),endToOffset:r.end(1),startIndex:e.index(0),endIndex:r.index(0),from:e.pos,to:r.pos}}function hp(t,e){for(var r=1,n=1,i=0,a=0;i<t.childCount;i+=1){var o=t.child(i).nodeSize;if(r=a+1,n=a+o-1,i===e)break;a+=o}return{startOffset:r,endOffset:n}}var N0="heading",DB="blockQuote",IB="listItem",RB="table",NB="tableCell",PB="codeBlock",BB="thematicBreak",qd="link",_d="code",Wp="meta",mu="delimiter",FB="taskDelimiter",yy="markedText",HB="html",qB="customBlock",P0={strong:2,emph:1,strike:2};function Dr(t,e,r,n){return{start:t,end:e,spec:{type:r,attrs:n}}}function $B(t,e,r){var n=t.level,i=t.headingType,a=[Dr(e,r,N0,{level:n})];return i==="atx"?a.push(Dr(e,Vn(e,n),mu)):a.push(Dr(ul(r,0),r,N0,{seText:!0})),a}function wv(t,e,r){var n=t.type,i=Vn(e,P0[n]),a=Vn(r,-P0[n]);return[Dr(i,a,n),Dr(e,i,mu),Dr(a,r,mu)]}function d1(t,e,r,n){return[Dr(t,e,qd),Dr(ul(t,r[1]+1),ul(e,n),qd,{desc:!0}),Dr(ul(e,n+2),Vn(e,-1),qd,{url:!0})]}function UB(t,e,r){var n=t.lastChild,i=n?ll(n)+1:3,a=Vn(e,1);return na([Dr(e,a,Wp)],d1(e,r,a,i))}function jB(t,e,r){var n=t.lastChild,i=t.extendedAutolink,a=n?ll(n)+1:2;return i?[Dr(e,r,qd,{desc:!0})]:d1(e,r,e,a)}function zB(t,e,r){var n=t.tickCount,i=Vn(e,n),a=Vn(r,-n);return[Dr(e,r,_d),Dr(e,i,_d,{start:!0}),Dr(i,a,_d,{marked:!0}),Dr(a,r,_d,{end:!0})]}function p1(t,e,r,n){var i={start:e,end:r,spec:{attrs:{className:n+"-line-background",codeStart:e[0],codeEnd:r[0]}},lineBackground:!0};return t.type!=="item"&&t.type!=="blockQuote"?[de(de({},i),{end:e,spec:{attrs:{className:n+"-line-background start"}}}),de(de({},i),{start:[Math.min(e[0]+1,r[0]),e[1]]})]:null}function WB(t,e,r,n){var i=t.fenceOffset,a=t.fenceLength,o=t.fenceChar,s=t.info,u=t.infoPadding,f=t.parent,d=i+a,v=[Dr(ul(e,1),r,PB)];o&&v.push(Dr(e,Vn(e,d),mu)),s&&v.push(Dr(Vn(e,a),Vn(e,a+u+s.length),Wp));var m="^(\\s{0,4})("+o+"{"+a+",})",b=new RegExp(m);b.test(n)&&v.push(Dr(ul(r,1),r,mu));var x=p1(f,e,r,"code-block");return x?v.concat(x):v}function VB(t,e,r){var n=t,i=n.offset,a=n.syntaxLength,o=n.info,s=n.parent,u=i+a,f=[Dr(ul(e,1),r,qB)];f.push(Dr(e,Vn(e,u),mu)),o&&f.push(Dr(Vn(e,u),Vn(e,a+o.length),Wp)),f.push(Dr(ul(r,1),r,mu));var d=p1(s,e,r,"custom-block");return d?f.concat(d):f}function h1(t,e){for(var r=[];t;){var n=t.type;(n==="paragraph"||n==="codeBlock")&&r.push(Dr([Gf(t),Up(t)-1],[$p(t),ll(t)+1],e)),t=t.next}return r}function GB(t){for(var e=[];t;)e.push(Dr([Gf(t),Up(t)],[$p(t),ll(t)+1],yy)),t=t.next;return e}function KB(t,e,r){var n=t.parent&&t.parent.type!=="blockQuote"?[Dr(e,r,DB)]:[];if(t.firstChild){var i=[];t.firstChild.type==="paragraph"?i=GB(t.firstChild.firstChild):t.firstChild.type==="list"&&(i=h1(t.firstChild,yy)),n=na(na([],n),i)}return n}function JB(t){for(var e=0;t.parent.parent&&t.parent.parent.type==="item";)t=t.parent.parent,e+=1;var r=[{odd:!0},{even:!0}][e%2];return[IB,de(de({},r),{listStyle:!0})]}function YB(t,e){var r=t.listData,n=r.padding,i=r.task,a=JB(t),o=[Dr.apply(void 0,na([e,Vn(e,n)],a))];return i&&(o.push(Dr(Vn(e,n),Vn(e,n+3),FB)),o.push(Dr(Vn(e,n+1),Vn(e,n+2),Wp))),o.concat(h1(t.firstChild,yy))}var B0={heading:$B,strong:wv,emph:wv,strike:wv,link:jB,image:UB,code:zB,codeBlock:WB,blockQuote:KB,item:YB,customBlock:VB},F0={thematicBreak:BB,table:RB,tableCell:NB,htmlInline:HB};function XB(t,e,r,n){var i=t.type;return Ha(B0[i])?B0[i](t,e,r,n):F0[i]?[Dr(e,r,F0[i])]:null}var Ff={};function QB(t){var e=t.schema,r=t.toastMark;return new Hi({appendTransaction:function(n,i,a){var o=n[0],s=a.tr;if(o.docChanged){var u=[],f=o.getMeta("editResult");f.forEach(function(d){var v=d.nodes,m=d.removedNodeRange;if(v.length){u=u.concat(iF(s,v));for(var b=0,x=v;b<x.length;b++)for(var T=x[b],S=T.walker(),M=S.next();M;){var L=M.node,P=M.entering;P&&(u=u.concat(aF(L,r))),M=S.next()}}else if(m)for(var A=s.doc.childCount-1,H=m.line,W=H[0],J=H[1],ee=Math.min(W,A),X=Math.min(J,A),ie=ee;ie<=X;ie+=1)Ff[ie]=!0}),tF(s,e,u)}return s.setMeta("widget",o.getMeta("widget"))}})}function ZB(t,e,r){return Object.keys(r).some(function(n){return r[n]!==t.child(e).attrs[n]})}function eF(t,e,r,n,i){i===void 0&&(i={});for(var a=n.startIndex,o=n.endIndex,s=n.from,u=n.to,f=!1,d=a;d<=o;d+=1)delete Ff[d],f=ZB(e,d,i);f&&t.setBlockType(s,u,r,i)}function tF(t,e,r){var n=t.doc,i=e.nodes.paragraph,a=f1(n,n.childCount);r.forEach(function(o){var s=o.start,u=o.end,f=o.spec,d=o.lineBackground,v=Math.min(s[0],n.childCount)-1,m=Math.min(u[0],n.childCount)-1,b=n.child(v),x=n.child(m),T=a[v],S=a[m];if(T+=s[1]+_c(b,s[1]-1),S+=u[1]+_c(x,u[1]-1),f)if(d){var M={from:T,to:S,startIndex:v,endIndex:m};eF(t,n,i,M,f.attrs)}else t.addMark(T,S,e.mark(f.type,f.attrs));else t.removeMark(T,S)}),rF(t,a,i)}function rF(t,e,r){Object.keys(Ff).forEach(function(n){var i=Number(n),a=Math.min(Number(n)+1,t.doc.childCount-1),o=e[i],s=e[a]-1;i===a&&(s+=2),t.setBlockType(o,s,r)})}function nF(t,e,r){var n=[];Ff={};for(var i=e[0]-1;i<r[0];i+=1){var a=t.child(i),o=a.attrs.codeEnd,s=a.attrs.codeStart;if(s&&o&&!si(n,s)){n.push(s),o=Math.min(o,t.childCount);for(var u=s-1,f=r[0],d=u;d<f;d+=1)Ff[d]=!0}}}function iF(t,e){var r=t.doc,n=e[0].sourcepos[0],i=gi(e).sourcepos,a=i[1],o=[n[0],n[1]],s=[a[0],a[1]+1],u=[];return nF(r,n,a),u.push({start:o,end:s}),u}function aF(t,e){var r=e.getLineTexts(),n=[Gf(t),Up(t)],i=[$p(t),ll(t)+1],a=XB(t,n,i,r[i[0]-1]);return a??[]}var oF=["taskList","orderedList","bulletList","table","strong","emph","strike","heading","thematicBreak","blockQuote","code","codeBlock","indent","outdent"];function sF(t){var e=t.type;return hu(t)?t.listData.task?"taskList":t.listData.type==="ordered"?"orderedList":"bulletList":e.indexOf("table")!==-1?"table":si(oF,e)?e:null}function lF(t){var e={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}},r=!0;return XP(t,function(n){var i=sF(n);i&&(i==="bulletList"||i==="orderedList"?r&&(e[i]={active:!0},e.indent.disabled=!1,e.outdent.disabled=!1,r=!1):e[i]={active:!0})}),e}function uF(t){var e=t.toastMark,r=t.eventEmitter;return new Hi({view:function(){return{update:function(n,i){var a=n.state,o=a.doc,s=a.selection;if(!(i&&i.doc.eq(o)&&i.selection.eq(s))){var u=s.from,f=a.doc.resolve(u).start(),d=a.doc.content.findIndex(u).index+1,v=u-f;u===f&&(v+=1);var m=[d,v],b=e.findNodeAtPosition(m),x=lF(b);r.emit("changeToolbarState",{cursorPos:m,mdNode:b,toolbarState:x}),r.emit("setFocusedNode",b)}}}}})}var cF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"doc"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"block+"}},enumerable:!1,configurable:!0}),e}(Zr),nn=function(){function t(){}return Object.defineProperty(t.prototype,"type",{get:function(){return"mark"},enumerable:!1,configurable:!0}),t.prototype.setContext=function(e){this.context=e},t}();function va(t,e){return hl(t,e-1)}function hl(t,e){return t.child(e).textContent}var yf=/^\s*> ?/,fF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("block-quote")},0]}}},enumerable:!1,configurable:!0}),e.prototype.createBlockQuoteText=function(r,n){return n?r.replace(yf,"").trim():"> "+r.trim()},e.prototype.extendBlockQuote=function(){var r=this;return function(n,i){var a=n.selection,o=n.doc,s=n.tr,u=n.schema,f=Pn(a),d=f.endFromOffset,v=f.endToOffset,m=f.endIndex,b=f.to,x=hl(o,m),T=yf.test(x);if(T&&b>d&&a.empty){var S=!x.replace(yf,"").trim();if(S)s.deleteRange(d,v).split(s.mapping.map(v));else{var M=x.slice(b-d).trim(),L=ni(u,r.createBlockQuoteText(M));dy(s,v,M,L)}return i(s),!0}return!1}},e.prototype.commands=function(){var r=this;return function(){return function(n,i){var a=n.selection,o=n.doc,s=Pn(a),u=s.startFromOffset,f=s.endToOffset,d=s.startIndex,v=s.endIndex,m=yf.test(hl(o,d)),b=pp({state:n,startIndex:d,endIndex:v,from:u,createText:function(x){return r.createBlockQuoteText(x,m)}});return i(b.setSelection(rn(b,b.mapping.map(f)))),!0}}},e.prototype.keymaps=function(){var r=this.commands()();return{"alt-q":r,"alt-Q":r,Enter:this.extendBlockQuote()}},e}(nn),gu=/(^\s*)([-*+] |[\d]+\. )/,by=/(^\s*)([\d])+\.( \[[ xX]])? /,bs=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,vp=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,dF=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,pF=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,hF=/(^\s*)([-*+])( \[[ xX]]) /;function wy(t){return by.test(t)?"ordered":"bullet"}function xy(t){for(var e=0;t&&t.type!=="document";)t.type==="list"&&(e+=1),t=t.parent;return e}function jm(t,e,r,n){for(var i=t.getLineTexts(),a=i.length,o=[],s=e;n?s<a:s>1;){s=n?s+1:s-1;var u=t.findFirstNodeAtLine(s),f=xy(u);if(f===r)o.push({line:s,depth:r,mdNode:u});else if(f<r)break}return o}function vF(t){var e=t.toastMark,r=t.mdNode,n=t.line,i=xy(r),a=jm(e,n,i,!1).reverse(),o=jm(e,n,i,!0);return a.concat([{line:n,depth:i,mdNode:r}]).concat(o)}function mF(t){if(!gu.test(t))return"* "+t;var e=wy(t);return e==="bullet"&&vp.test(t)?t=t.replace(hF,"$1$2 "):e==="ordered"&&(t=t.replace(by,"$1* ")),t}function gF(t,e){if(!gu.test(t))return e+". "+t;var r=wy(t);if(r==="bullet"||r==="ordered"&&vp.test(t))t=t.replace(vp,"$1"+e+". ");else if(r==="ordered"){var n=bs.exec(t)[3];Number(n)!==e&&(t=t.replace(by,"$1"+e+". "))}return t}function v1(t,e,r,n){n===void 0&&(n=0);var i=Number.MAX_VALUE,a=0,o=e.map(function(s,u){var f=s.line;i=Math.min(f-1,i),a=Math.max(f-1,a);var d=va(t,f);return d=r==="bullet"?mF(d):gF(d,u+1+n),{text:d,line:f}});return{changedResults:o,firstIndex:i,lastIndex:a}}function H0(t,e){var r=vF(e);return v1(e.doc,r,t)}var yF={bullet:function(t){return H0("bullet",t)},ordered:function(t){return H0("ordered",t)},task:function(t){var e=t.mdNode,r=t.doc,n=t.line,i=va(r,n);return e.listData.task?i=i.replace(pF,"$1$2"):hu(e)&&(i=i.replace(gu,"$1$2[ ] ")),{changedResults:[{text:i,line:n}]}}},bF={bullet:function(t){var e=t.doc,r=t.line,n=va(e,r),i=[{text:"* "+n,line:r}];return{changedResults:i}},ordered:function(t){for(var e=t.toastMark,r=t.doc,n=t.line,i=t.startLine,a=va(r,n),o=1,s=i,u=0,f=i-1;f>0;f-=1){var d=e.findFirstNodeAtLine(f),v=va(r,f),m=v&&!!Ec(d,function(P){return hu(P)}),b=bs.exec(va(r,f));if(!b&&!m)break;if(!b&&m){u+=1;continue}var x=b,T=x[1],S=x[3];if(!T){o=Number(S),s=f;break}}var M=o+n-s-u,L=[{text:M+". "+a,line:n}];return{changedResults:L}},task:function(t){var e=t.doc,r=t.line,n=va(e,r),i=[{text:"* [ ] "+n,line:r}];return{changedResults:i}}},wF={bullet:function(t){var e=t.line,r=t.doc,n=va(r,e),i=dF.exec(n),a=i[1],o=i[2];return{listSyntax:""+a+o}},ordered:function(t){var e=t.toastMark,r=t.line,n=t.mdNode,i=t.doc,a=xy(n),o=va(i,r),s=bs.exec(o),u=s[1],f=s[3],d=s[4],v=Number(f)+1,m=""+u+v+d,b=jm(e,r,a,!0),x=b.filter(function(T){var S=bs.exec(va(i,T.line));return S&&S[1].length===u.length&&!!Ec(T.mdNode,function(M){return j_(M)})});return de({listSyntax:m},v1(i,x,"ordered",v))}};function m1(t,e,r,n,i){for(var a=[],o=va(t,r),s=bs.exec(o);s;){var u=s[1],f=s[4],d=s[5],v=u.length;if(v===i)a.push(ni(e,""+u+n+f+d)),n+=1,r+=1;else if(v>i){var m=m1(t,e,r,1,v);r=m.line,a=a.concat(m.nodes)}if(v<i||r>t.childCount)break;o=va(t,r),s=bs.exec(o)}return{nodes:a,line:r}}var q0=/(^\s{1,4})(.*)/;function $0(t,e,r){return t<e||gu.test(r)||yf.test(r)}function U0(t,e,r){var n=r.$from;n.depth===0&&(n=t.resolve(n.pos-1));var i=n.node(1),a=n.start(1),o=i.content.size;return i.rangeHasMark(0,o,e.marks.table)&&n.pos-a!==o&&n.pos!==a}function j0(t,e){var r=e.from,n=e.to;if(e.type==="indent"){var i=4;r+=i,n+=(e.lineLen+1)*i}else{var a=e.spaceLenList;r-=a[0];for(var o=0;o<a.length;o+=1)n-=a[o]}return rn(t,r,n)}var xF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"paragraph"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"inline*",attrs:{className:{default:null},codeStart:{default:null},codeEnd:{default:null}},selectable:!1,group:"block",parseDOM:[{tag:"div"}],toDOM:function(r){var n=r.attrs;return n.className?["div",{class:Bn(n.className)},0]:["div",0]}}},enumerable:!1,configurable:!0}),e.prototype.reorderList=function(r,n){for(var i=this.context,a=i.view,o=i.toastMark,s=i.schema,u=a.state,f=u.tr,d=u.selection,v=u.doc,m=o.findFirstNodeAtLine(r),b=m;m&&!JP(m)&&m.parent.type!=="document";)if(m=m.parent,j_(m)){b=m;break}b&&(r=b.sourcepos[0][0]);var x=bs.exec(va(v,r)),T=x[1],S=x[3],M=T.length,L=m1(v,s,r,Number(S),M),P=L.line,A=L.nodes;n=Math.max(n,P-1);for(var H=hp(v,r-1).startOffset,W=r-1;W<=n-1;W+=1){var J=v.child(W),ee=J.nodeSize,X=J.content,ie=f.mapping.map(H),ge=ie+X.size;f.replaceWith(ie,ge,A[W-r+1]),H+=ee}var Y=rn(f,d.from,d.to);a.dispatch(f.setSelection(Y))},e.prototype.indent=function(r){var n=this;return r===void 0&&(r=!1),function(){return function(i,a){var o=i.schema,s=i.selection,u=i.doc,f=Pn(s),d=f.from,v=f.to,m=f.startFromOffset,b=f.startIndex,x=f.endIndex;if(r&&U0(u,o,s))return!1;var T=hl(u,b);if(r&&$0(d,v,T)||!r&&gu.test(T)){var S=pp({state:i,from:m,startIndex:b,endIndex:x,createText:function(L){return"    "+L}}),M={type:"indent",from:d,to:v,lineLen:x-b};a(S.setSelection(j0(S,M))),bs.test(T)&&n.reorderList(b+1,x+1)}else r&&a(i.tr.insert(v,ni(o,"    ")));return!0}}},e.prototype.outdent=function(r){var n=this;return r===void 0&&(r=!1),function(){return function(i,a){var o=i.selection,s=i.doc,u=i.schema,f=Pn(o),d=f.from,v=f.to,m=f.startFromOffset,b=f.startIndex,x=f.endIndex;if(r&&U0(s,u,o))return!1;var T=hl(s,b);if(r&&$0(d,v,T)||!r&&gu.test(T)){var S=[],M=pp({state:i,from:m,startIndex:b,endIndex:x,createText:function(W){var J=q0.exec(W);return S.push(J?J[1].length:0),W.replace(q0,"$2")}}),L={type:"outdent",from:d,to:v,spaceLenList:S};a(M.setSelection(j0(M,L))),bs.test(T)&&n.reorderList(b+1,x+1)}else if(r){var P=T.slice(0,v-m),A=P.replace(/\s{1,4}$/,""),H=v-(P.length-A.length);a(i.tr.delete(H,v))}return!0}}},e.prototype.deleteLines=function(){var r=this;return function(n,i){var a=r.context.view,o=Pn(n.selection),s=o.startFromOffset,u=o.endToOffset,f=function(){return i(n.tr.deleteRange(s,u)),!0};return Hp(f,O_)(n,i,a)}},e.prototype.moveDown=function(){return function(r,n){var i=r.doc,a=r.tr,o=r.selection,s=r.schema,u=Pn(o),f=u.startFromOffset,d=u.endToOffset,v=u.endIndex;if(v<i.content.childCount-1){var m=i.child(v+1),b=m.nodeSize,x=m.textContent;return a.delete(d,d+b).split(f).insert(a.mapping.map(f)-2,ni(s,x)),n(a),!0}return!1}},e.prototype.moveUp=function(){return function(r,n){var i=r.tr,a=r.doc,o=r.selection,s=r.schema,u=Pn(o),f=u.startFromOffset,d=u.endToOffset,v=u.startIndex;if(v>0){var m=a.child(v-1),b=m.nodeSize,x=m.textContent;return i.delete(f-b,f).split(i.mapping.map(d)).insert(i.mapping.map(d),ni(s,x)),n(i),!0}return!1}},e.prototype.commands=function(){return{indent:this.indent(),outdent:this.outdent()}},e.prototype.keymaps=function(){return{Tab:this.indent(!0)(),"Shift-Tab":this.outdent(!0)(),"Mod-d":this.deleteLines(),"Mod-D":this.deleteLines(),"Alt-ArrowUp":this.moveUp(),"Alt-ArrowDown":this.moveDown()}},e}(Zr),CF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),e}(Zr),EF=/^#{1,6}\s/,TF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{level:{default:1},seText:{default:!1}},toDOM:function(r){var n=r.attrs,i=n.level,a=n.seText,o="heading|heading"+i;return a&&(o+="|delimiter|setext"),["span",{class:Bn.apply(void 0,o.split("|"))},0]}}},enumerable:!1,configurable:!0}),e.prototype.createHeadingText=function(r,n,i){for(var a=n.replace(i,"").trim(),o="";r>0;)o+="#",r-=1;return o+" "+a},e.prototype.commands=function(){var r=this;return function(n){return function(i,a){var o=n.level,s=Pn(i.selection),u=s.startFromOffset,f=s.endToOffset,d=s.startIndex,v=s.endIndex,m=pp({state:i,from:u,startIndex:d,endIndex:v,createText:function(b){var x=b.match(EF),T=x?x[0]:"";return r.createHeadingText(o,b,T)}});return a(m.setSelection(rn(m,m.mapping.map(f)))),!0}}},e}(nn),xv="```",_F=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("code-block")},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n){var i=r.selection,a=r.schema,o=r.tr,s=Pn(i),u=s.startFromOffset,f=s.endToOffset,d=ni(a,xv);return o.insert(u,d).split(u+xv.length),o.split(o.mapping.map(f)).insert(o.mapping.map(f),d),n(o.setSelection(rn(o,o.mapping.map(f)-(xv.length+2)))),!0}}},e.prototype.keepIndentation=function(){var r=this;return function(n,i){var a=n.selection,o=n.tr,s=n.doc,u=n.schema,f=r.context.toastMark,d=Pn(a),v=d.startFromOffset,m=d.endToOffset,b=d.endIndex,x=d.from,T=d.to,S=hl(s,b);if(x===T&&S.trim()){var M=S.match(/^\s+/),L=f.findFirstNodeAtLine(b+1);if(KP(L)&&M){var P=M[0],A=S.slice(T-v),H=ni(u,P+A);return dy(o,m,A,H),i(o),!0}}return!1}},e.prototype.keymaps=function(){var r=this.commands()();return{"Shift-Mod-p":r,"Shift-Mod-P":r,Enter:this.keepIndentation()}},e}(nn),SF=/\||\s/g;function kF(t){return[mp(t),mp(t,!0)]}function OF(t,e){for(var r=[],n=0;n<e;n+=1)r.push(mp(t));return r}function mp(t,e){for(var r="|",n=0;n<t;n+=1)r+=e?" --- |":"  |";return r}function AF(t){return t?{type:"next",parentType:"tableHead",childType:"firstChild"}:{type:"prev",parentType:"tableBody",childType:"lastChild"}}var MF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"table"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("table")},0]}}},enumerable:!1,configurable:!0}),e.prototype.extendTable=function(){var r=this;return function(n,i){var a=n.selection,o=n.doc,s=n.tr,u=n.schema;if(!a.empty)return!1;var f=Pn(a),d=f.endFromOffset,v=f.endToOffset,m=f.endIndex,b=f.to,x=hl(o,m),T=[m+1,b-d+1],S=r.context.toastMark.findNodeAtPosition(T),M=Ec(S,function(W){return M0(W)&&(W.parent.type==="tableDelimRow"||W.parent.parent.type==="tableBody")});if(M){var L=!x.replace(SF,"").trim(),P=M.parent,A=P.parent.parent.columns.length,H=mp(A);return L?s.deleteRange(d,v).split(s.mapping.map(v)):s.split(v).insert(s.mapping.map(v),ni(u,H)).setSelection(rn(s,s.mapping.map(v)-2)),i(s),!0}return!1}},e.prototype.moveTableCell=function(r){var n=this;return function(i,a){var o=i.selection,s=i.tr,u=Pn(o),f=u.endFromOffset,d=u.endIndex,v=u.to,m=[d+1,v-f],b=n.context.toastMark.findNodeAtPosition(m),x=Ec(b,function(J){return M0(J)});if(x){var T=x.parent,S=AF(r),M=S.type,L=S.parentType,P=S.childType,A=ll(x);if(x[M])A=ll(x[M])-1;else{var H=!T[M]&&T.parent.type===L?T.parent[M][P]:T[M];if(M==="next"){var W=H?ll(H[P]):0;A+=W+2}else M==="prev"&&(A=H?-4:0)}return a(s.setSelection(rn(s,f+A))),!0}return!1}},e.prototype.addTable=function(){return function(r){return function(n,i){var a=n.selection,o=n.tr,s=n.schema,u=r,f=u.columnCount,d=u.rowCount,v=Pn(a).endToOffset,m=kF(f),b=OF(f,d-1),x=na(na([],m),b);return x.forEach(function(T){o.split(o.mapping.map(v)).insert(o.mapping.map(v),ni(s,T))}),i(o.setSelection(rn(o,v+4))),!0}}},e.prototype.commands=function(){return{addTable:this.addTable()}},e.prototype.keymaps=function(){return{Enter:this.extendTable(),Tab:this.moveTableCell(!0),"Shift-Tab":this.moveTableCell(!1)}},e}(nn),LF="***",DF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"thematicBreak"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("thematic-break")},0]}}},enumerable:!1,configurable:!0}),e.prototype.hr=function(){return function(){return function(r,n){var i=r.selection,a=r.schema,o=r.tr,s=Pn(i),u=s.from,f=s.to,d=s.endToOffset,v=ni(a,LF);return o.split(u).replaceWith(o.mapping.map(u),o.mapping.map(f),v).split(o.mapping.map(f)).setSelection(rn(o,o.mapping.map(d))),n(o),!0}}},e.prototype.commands=function(){return{hr:this.hr()}},e.prototype.keymaps=function(){var r=this.hr()();return{"Mod-l":r,"Mod-L":r}},e}(nn);function IF(t,e){var r=t.type,n=t.sourcepos,i=n[0][0];return e<=i&&(r==="codeBlock"||r==="heading"||r.match("table"))}var RF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"listItem"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{odd:{default:!1},even:{default:!1},listStyle:{default:!1}},toDOM:function(r){var n=r.attrs,i=n.odd,a=n.even,o=n.listStyle,s="list-item";return o&&(s+="|list-item-style"),i&&(s+="|list-item-odd"),a&&(s+="|list-item-even"),["span",{class:Bn.apply(void 0,s.split("|"))},0]}}},enumerable:!1,configurable:!0}),e.prototype.extendList=function(){var r=this;return function(n,i){var a=n.selection,o=n.doc,s=n.schema,u=n.tr,f=r.context.toastMark,d=Pn(a),v=d.to,m=d.startFromOffset,b=d.endFromOffset,x=d.endIndex,T=d.endToOffset,S=hl(o,x),M=gu.test(S);if(!M||a.from===m||!a.empty)return!1;var L=!S.replace(vp,"").trim();if(L)u.deleteRange(b,T).split(u.mapping.map(T));else{var P=wy(S),A=f.findFirstNodeAtLine(x+1),H=S.slice(v-b),W={toastMark:f,mdNode:A,doc:o,line:x+1},J=wF[P](W),ee=J.listSyntax,X=J.changedResults;if(X!=null&&X.length){u.split(v),X.unshift({text:ee+H,line:x+1}),r.changeToListPerLine(u,X,{from:v,startLine:X[0].line,endLine:gi(X).line});var ie=u.mapping.map(T)-H.length;u.setSelection(rn(u,ie))}else{var ge=ni(s,ee+H);dy(u,T,H,ge)}}return i(u),!0}},e.prototype.toList=function(r){var n=this;return function(){return function(i,a){for(var o=i.doc,s=i.tr,u=i.selection,f=n.context.toastMark,d=Pn(u),v=d.startIndex+1,m=d.endIndex+1,b=d.endToOffset,x=[],T=v;T<=m;T+=1){var S=f.findFirstNodeAtLine(T);if(S&&IF(S,T))break;if(x.indexOf(T)===-1){var M={toastMark:f,mdNode:S,doc:o,line:T,startLine:v},L=(hu(S)?yF[r](M):bF[r](M)).changedResults,P=n.changeToListPerLine(s,L,{from:hp(o,L[0].line-1).startOffset,startLine:L[0].line,endLine:gi(L).line,indexDiff:1});b=Math.max(P,b),L&&(x=x.concat(L.map(function(A){return A.line})))}}return a(s.setSelection(rn(s,s.mapping.map(b)))),!0}}},e.prototype.changeToListPerLine=function(r,n,i){for(var a=i.from,o=i.startLine,s=i.endLine,u=i.indexDiff,f=u===void 0?0:u,d=0,v=function(x){var T=r.doc.child(x),S=T.nodeSize,M=T.content,L=r.mapping.map(a),P=L+M.size,A=n.filter(function(H){return H.line-f===x})[0];A&&(r.replaceWith(L,P,ni(m.context.schema,A.text)),d=Math.max(d,a+M.size)),a+=S},m=this,b=o-f;b<=s-f;b+=1)v(b);return d},e.prototype.toggleTask=function(){var r=this;return function(n,i){for(var a=n.selection,o=n.tr,s=n.doc,u=n.schema,f=r.context.toastMark,d=Pn(a),v=d.startIndex,m=d.endIndex,b=null,x=v;x<=m;x+=1){var T=f.findFirstNodeAtLine(x+1);if(hu(T)&&T.listData.task){var S=T.listData,M=S.checked,L=S.padding,P=M?" ":"x",A=T.sourcepos[0],H=hp(s,A[0]-1).startOffset;H+=A[1]+L,b=o.replaceWith(H,H+1,u.text(P))}}return b?(i(b),!0):!1}},e.prototype.commands=function(){return{bulletList:this.toList("bullet"),orderedList:this.toList("ordered"),taskList:this.toList("task")}},e.prototype.keymaps=function(){var r=this.toList("bullet")(),n=this.toList("ordered")(),i=this.toList("task")(),a=this.toggleTask();return{"Mod-u":r,"Mod-U":r,"Mod-o":n,"Mod-O":n,"alt-t":i,"alt-T":i,"Shift-Ctrl-x":a,"Shift-Ctrl-X":a,Enter:this.extendList()}},e}(nn);function Vp(t,e){return function(){return function(r,n){var i=r.tr,a=r.selection,o=Ha(t)?t:function(P){return t.test(P)},s=e.length,u=i.doc,f=c1(a),d=f[0],v=f[1],m=Math.max(d-s,1),b=Math.min(v+s,u.content.size-1),x=a.content(),T=x.content.textBetween(0,x.content.size,`
54`),S=u.textBetween(m,d,`
55`),M=u.textBetween(v,b,`
56`);if(T=""+S+T+M,S&&M&&o(T))i.delete(b-s,b).delete(m,m+s);else{i.insertText(e,v).insertText(e,d);var L=a.empty?rn(i,d+s):rn(i,d+s,v+s);i.setSelection(L)}return n(i),!0}}}var NF=/^(\*{2}|_{2}).*([\s\S]*)\1$/m,PF="**",BF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"strong"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("strong")},0]}}},enumerable:!1,configurable:!0}),e.prototype.bold=function(){return Vp(NF,PF)},e.prototype.commands=function(){return{bold:this.bold()}},e.prototype.keymaps=function(){var r=this.bold()();return{"Mod-b":r,"Mod-B":r}},e}(nn),FF=/^(~{2}).*([\s\S]*)\1$/m,HF="~~",qF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"strike"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("strike")},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return Vp(FF,HF)},e.prototype.keymaps=function(){var r=this.commands()();return{"Mod-s":r,"Mod-S":r}},e}(nn),$F=/^(\*|_).*([\s\S]*)\1$/m,UF="*",jF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"emph"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("emph")},0]}}},enumerable:!1,configurable:!0}),e.prototype.italic=function(){return Vp($F,UF)},e.prototype.commands=function(){return{italic:this.italic()}},e.prototype.keymaps=function(){var r=this.italic()();return{"Mod-i":r,"Mod-I":r}},e}(nn),zF=/^(`).*([\s\S]*)\1$/m,WF="`",VF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"code"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{start:{default:!1},end:{default:!1},marked:{default:!1}},toDOM:function(r){var n=r.attrs,i=n.start,a=n.end,o=n.marked,s="code";return i&&(s+="|delimiter|start"),a&&(s+="|delimiter|end"),o&&(s+="|marked-text"),["span",{class:Bn.apply(void 0,s.split("|"))},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return Vp(zF,WF)},e.prototype.keymaps=function(){var r=this.commands()();return{"Shift-Mod-c":r,"Shift-Mod-C":r}},e}(nn),GF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"link"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:{url:{default:!1},desc:{default:!1}},toDOM:function(r){var n=r.attrs,i=n.url,a=n.desc,o="link";return i&&(o+="|link-url|marked-text"),a&&(o+="|link-desc|marked-text"),["span",{class:Bn.apply(void 0,o.split("|"))},0]}}},enumerable:!1,configurable:!0}),e.prototype.addLinkOrImage=function(r){return function(n){return function(i,a){var o=i.selection,s=i.tr,u=i.schema,f=c1(o),d=f[0],v=f[1],m=n,b=m.linkText,x=m.altText,T=m.linkUrl,S=m.imageUrl,M=b,L=T,P="";return r==="image"&&(M=x,L=S,P="!"),M=cp(M),P+="["+M+"]("+L+")",a(s.replaceWith(d,v,ni(u,P))),!0}}},e.prototype.commands=function(){return{addImage:this.addLinkOrImage("image"),addLink:this.addLinkOrImage("link")}},e}(nn),KF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"taskDelimiter"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("delimiter","list-item")},0]}}},enumerable:!1,configurable:!0}),e}(nn),JF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"delimiter"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("delimiter")},0]}}},enumerable:!1,configurable:!0}),e}(nn),YF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"meta"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("meta")},0]}}},enumerable:!1,configurable:!0}),e}(nn),XF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"markedText"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("marked-text")},0]}}},enumerable:!1,configurable:!0}),e}(nn),QF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"tableCell"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("table-cell")},0]}}},enumerable:!1,configurable:!0}),e}(nn),ZF=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"html"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("html")},0]}}},enumerable:!1,configurable:!0}),e}(nn),Cv="$$",eH=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"customBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:Bn("custom-block")},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(r){return function(n,i){var a=n.selection,o=n.schema,s=n.tr,u=Pn(a),f=u.startFromOffset,d=u.endToOffset;if(!(r!=null&&r.info))return!1;var v=""+Cv+r.info,m=ni(o,v),b=ni(o,Cv);return s.insert(f,m).split(f+v.length),s.split(s.mapping.map(d)).insert(s.mapping.map(d),b),i(s.setSelection(rn(s,s.mapping.map(d)-(Cv.length+2)))),!0}}},e}(nn),tH=/x|backspace/i,rH=/^\[(\s*)(x?)(\s*)\](?:\s+)/i;function nH(t){var e=t.schema,r=t.toastMark;return new Hi({props:{handleDOMEvents:{keyup:function(n,i){var a,o=n.state,s=o.doc,u=o.tr,f=o.selection;if(f.empty&&tH.test(i.key)){var d=Pn(f),v=d.startIndex,m=d.startFromOffset,b=d.from,x=[v+1,b-m+1],T=r.findNodeAtPosition(x),S=Ec(T,function(ge){var Y;return ge.type==="paragraph"&&((Y=ge.parent)===null||Y===void 0?void 0:Y.type)==="item"});if(!((a=S==null?void 0:S.firstChild)===null||a===void 0)&&a.literal){var M=S.firstChild,L=M.literal.match(rH);if(L){var P=M.sourcepos[0],A=L[1],H=L[2],W=L[3],J=A.length+W.length,ee=hp(s,P[0]-1).startOffset,X=P[1]+ee;if(H){var ie=J?J+1:0;u.replaceWith(X,ie+X,e.text(H)),n.dispatch(u)}else J||(u.insertText(" ",X),n.dispatch(u))}}}return!1}}}})}var Ev="cut",z0=/\r\n|\n|\r/,iH=function(t){it(e,t);function e(r,n){var i=t.call(this,r)||this,a=n.toastMark,o=n.useCommandShortcut,s=o===void 0?!0:o,u=n.mdPlugins,f=u===void 0?[]:u;return i.editorType="markdown",i.el.classList.add("md-mode"),i.toastMark=a,i.extraPlugins=f,i.specs=i.createSpecs(),i.schema=i.createSchema(),i.context=i.createContext(),i.keymaps=i.createKeymaps(s),i.view=i.createView(),i.commands=i.createCommands(),i.specs.setContext(de(de({},i.context),{view:i.view})),i.createClipboard(),i.eventEmitter.listen("changePreviewTabWrite",function(d){return i.toggleActive(!0,d)}),i.eventEmitter.listen("changePreviewTabPreview",function(){return i.toggleActive(!1)}),i.initEvent(),i}return e.prototype.toggleActive=function(r,n){hy(this.el,"active",r),r?n||this.focus():this.blur()},e.prototype.createClipboard=function(){var r=this;this.clipboard=document.createElement("textarea"),this.clipboard.className=lt("pseudo-clipboard"),this.clipboard.addEventListener("paste",function(n){var i=n.clipboardData||window.clipboardData,a=i&&i.items;if(a){var o=zo(a).some(function(u){return u.kind==="string"&&u.type==="text/rtf"});if(!o){var s=a1(a);s&&(n.preventDefault(),gy(r.eventEmitter,s,n.type))}}}),this.clipboard.addEventListener("input",function(n){var i=n.target.value;r.replaceSelection(i),n.preventDefault(),n.target.value=""}),this.el.insertBefore(this.clipboard,this.view.dom)},e.prototype.createContext=function(){return{toastMark:this.toastMark,schema:this.schema,eventEmitter:this.eventEmitter}},e.prototype.createSpecs=function(){return new u1([new cF,new xF,new s1,new CF,new TF,new fF,new _F,new eH,new MF,new QF,new DF,new RF,new BF,new qF,new jF,new VF,new GF,new JF,new KF,new XF,new YF,new ZF])},e.prototype.createPlugins=function(){return na([QB(this.context),uF(this.context),nH(this.context)],this.createPluginProps()).concat(this.defaultPlugins)},e.prototype.createView=function(){var r=this;return new dn(this.el,{state:this.createState(),dispatchTransaction:function(n){r.updateMarkdown(n);var i=r.view.state.applyTransaction(n).state;r.view.updateState(i),r.emitChangeEvent(n)},handleKeyDown:function(n,i){return(i.metaKey||i.ctrlKey)&&i.key.toUpperCase()==="V"&&r.clipboard.focus(),r.eventEmitter.emit("keydown",r.editorType,i),!1},handleDOMEvents:{copy:function(n,i){return r.captureCopy(i)},cut:function(n,i){return r.captureCopy(i,Ev)},scroll:function(){return r.eventEmitter.emit("scroll","editor"),!0},keyup:function(n,i){return r.eventEmitter.emit("keyup",r.editorType,i),!1}},nodeViews:{widget:o1}})},e.prototype.createCommands=function(){return this.specs.commands(this.view)},e.prototype.captureCopy=function(r,n){r.preventDefault();var i=this.view.state,a=i.selection,o=i.tr;if(a.empty)return!0;var s=this.getChanged(a.content());return r.clipboardData?r.clipboardData.setData("text/plain",s):window.clipboardData.setData("Text",s),n===Ev&&this.view.dispatch(o.deleteSelection().scrollIntoView().setMeta("uiEvent",Ev)),!0},e.prototype.updateMarkdown=function(r){var n=this;r.docChanged&&r.steps.forEach(function(i,a){if(i.slice&&!(i instanceof ta)){var o=r.docs[a],s=[i.from,i.to],u=s[0],f=s[1],d=Hd(o,u,f),v=d[0],m=d[1],b=n.getChanged(i.slice);v[0]===m[0]&&v[1]===m[1]&&b===""&&(b=`
57`);var x=n.toastMark.editMarkdown(v,m,b);n.eventEmitter.emit("updatePreview",x),r.setMeta("editResult",x).scrollIntoView()}})},e.prototype.getChanged=function(r){var n="",i=0,a=r.content.size;return r.content.nodesBetween(i,a,function(o,s){o.isText?n+=o.text.slice(Math.max(i,s)-s,a-s):o.isBlock&&s>0&&(n+=`
58`)}),n},e.prototype.setSelection=function(r,n){n===void 0&&(n=r);var i=this.view.state.tr,a=tu(i.doc,r,n),o=a[0],s=a[1];this.view.dispatch(i.setSelection(rn(i,o,s)).scrollIntoView())},e.prototype.replaceSelection=function(r,n,i){var a,o=this.view.state,s=o.tr,u=o.schema,f=o.doc,d=r.split(z0),v=d.map(function(S){return dp(u,cu(S,u))}),m=new Ze(Ee.from(v),1,1);if(this.focus(),n&&i){var b=tu(f,n,i),x=b[0],T=b[1];a=s.replaceRange(x,T,m)}else a=s.replaceSelection(m);this.view.dispatch(a.scrollIntoView())},e.prototype.deleteSelection=function(r,n){var i,a=this.view.state,o=a.tr,s=a.doc;if(r&&n){var u=tu(s,r,n),f=u[0],d=u[1];i=o.deleteRange(f,d)}else i=o.deleteSelection();this.view.dispatch(i.scrollIntoView())},e.prototype.getSelectedText=function(r,n){var i=this.view.state,a=i.doc,o=i.selection,s=o.from,u=o.to;if(r&&n){var f=tu(a,r,n);s=f[0],u=f[1]}return a.textBetween(s,u,`
59`)},e.prototype.getSelection=function(){var r=this.view.state.selection,n=r.from,i=r.to;return Hd(this.view.state.tr.doc,n,i)},e.prototype.setMarkdown=function(r,n){n===void 0&&(n=!0);var i=r.split(z0),a=this.view.state,o=a.tr,s=a.doc,u=a.schema,f=i.map(function(d){return dp(u,cu(d,u))});this.view.dispatch(o.replaceWith(0,s.content.size,f)),n&&this.moveCursorToEnd(!0)},e.prototype.addWidget=function(r,n,i){var a=this.view.state,o=a.tr,s=a.doc,u=a.selection,f=i?tu(s,i,i)[0]:u.to;this.view.dispatch(o.setMeta("widget",{pos:f,node:r,style:n}))},e.prototype.replaceWithWidget=function(r,n,i){var a=this.view.state,o=a.tr,s=a.schema,u=a.doc,f=tu(u,r,n),d=cu(i,s);this.view.dispatch(o.replaceWith(f[0],f[1],d))},e.prototype.getRangeInfoOfNode=function(r){var n=this.view.state,i=n.doc,a=n.selection,o=r||Hd(i,a.from)[0],s=this.toastMark.findNodeAtPosition(o);return s.type==="text"&&s.parent.type!=="paragraph"&&(s=s.parent),s.sourcepos[1][1]+=1,{range:s.sourcepos,type:s.type}},e.prototype.getMarkdown=function(){return this.toastMark.getLineTexts().map(function(r){return jp(r)}).join(`
60`)},e.prototype.getToastMark=function(){return this.toastMark},e}(l1),W0="_feEventKey";function aH(t,e){var r=t[W0],n;return r||(r=t[W0]={}),n=r[e],n||(n=r[e]=[]),n}var g1=aH,oH=Ts,gp=qp,sH=g1;function lH(t,e,r){if(oH(e)){gp(e.split(/\s+/g),function(n){V0(t,n,r)});return}gp(e,function(n,i){V0(t,i,n)})}function V0(t,e,r){var n=sH(t,e),i;r?(gp(n,function(a,o){return r===a.handler?(G0(t,e,a.wrappedHandler),i=o,!1):!0}),n.splice(i,1)):(gp(n,function(a){G0(t,e,a.wrappedHandler)}),n.splice(0,n.length))}function G0(t,e,r){"removeEventListener"in t?t.removeEventListener(e,r):"detachEvent"in t&&t.detachEvent("on"+e,r)}var y1=lH,uH=Ts,zm=qp,cH=g1;function fH(t,e,r,n){if(uH(e)){zm(e.split(/\s+/g),function(i){K0(t,i,r,n)});return}zm(e,function(i,a){K0(t,a,i,r)})}function K0(t,e,r,n){function i(a){r.call(n||t,a||window.event)}"addEventListener"in t?t.addEventListener(e,i):"attachEvent"in t&&t.attachEvent("on"+e,i),dH(t,e,r,i)}function dH(t,e,r,n){var i=cH(t,e),a=!1;zm(i,function(o){return o.handler===r?(a=!0,!1):!0}),a||i.push({handler:r,wrappedHandler:n})}var b1=fH;/*! *****************************************************************************
61Copyright (c) Microsoft Corporation.
62
63Permission to use, copy, modify, and/or distribute this software for any
64purpose with or without fee is hereby granted.
65
66THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
67REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
68AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
69INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
70LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
71OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
72PERFORMANCE OF THIS SOFTWARE.
73***************************************************************************** */var Wm=function(t,e){return Wm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Wm(t,e)};function za(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wm(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ei=function(){return ei=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ei.apply(this,arguments)};function Vm(t,e,r){if(arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var Sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J0={};function pH(t){var e,r,n=J0[t];if(n)return n;for(n=J0[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)n[t.charCodeAt(e)]=t[e];return n}function Gp(t,e,r){var n,i,a,o,s,u="";for(typeof e!="string"&&(r=e,e=Gp.defaultChars),typeof r>"u"&&(r=!0),s=pH(e),n=0,i=t.length;n<i;n++){if(a=t.charCodeAt(n),r&&a===37&&n+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(n+1,n+3))){u+=t.slice(n,n+3),n+=2;continue}if(a<128){u+=s[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&n+1<i&&(o=t.charCodeAt(n+1),o>=56320&&o<=57343)){u+=encodeURIComponent(t[n]+t[n+1]),n++;continue}u+="%EF%BF%BD";continue}u+=encodeURIComponent(t[n])}return u}Gp.defaultChars=";/?:@&=+$,-_.!~*'()#";Gp.componentChars="-_.!~*'()";var hH=Gp,Cy={},ws={},vH="Á",mH="á",gH="Ă",yH="ă",bH="∾",wH="∿",xH="∾̳",CH="Â",EH="â",TH="´",_H="А",SH="а",kH="Æ",OH="æ",AH="⁡",MH="𝔄",LH="𝔞",DH="À",IH="à",RH="ℵ",NH="ℵ",PH="Α",BH="α",FH="Ā",HH="ā",qH="⨿",$H="&",UH="&",jH="⩕",zH="⩓",WH="∧",VH="⩜",GH="⩘",KH="⩚",JH="∠",YH="⦤",XH="∠",QH="⦨",ZH="⦩",eq="⦪",tq="⦫",rq="⦬",nq="⦭",iq="⦮",aq="⦯",oq="∡",sq="∟",lq="⊾",uq="⦝",cq="∢",fq="Å",dq="⍼",pq="Ą",hq="ą",vq="𝔸",mq="𝕒",gq="⩯",yq="≈",bq="â©°",wq="≊",xq="≋",Cq="'",Eq="⁡",Tq="≈",_q="≊",Sq="Å",kq="Ã¥",Oq="𝒜",Aq="𝒶",Mq="≔",Lq="*",Dq="≈",Iq="≍",Rq="Ã",Nq="ã",Pq="Ä",Bq="ä",Fq="∳",Hq="⨑",qq="≌",$q="϶",Uq="‵",jq="∽",zq="⋍",Wq="∖",Vq="â«§",Gq="⊽",Kq="⌅",Jq="⌆",Yq="⌅",Xq="⎵",Qq="⎶",Zq="≌",e$="Б",t$="б",r$="„",n$="∵",i$="∵",a$="∵",o$="⦰",s$="϶",l$="ℬ",u$="ℬ",c$="Β",f$="β",d$="ℶ",p$="≬",h$="𝔅",v$="𝔟",m$="⋂",g$="◯",y$="⋃",b$="⨀",w$="⨁",x$="⨂",C$="⨆",E$="★",T$="▽",_$="△",S$="⨄",k$="⋁",O$="⋀",A$="⤍",M$="â§«",L$="▪",D$="▴",I$="▾",R$="◂",N$="▸",P$="␣",B$="▒",F$="░",H$="▓",q$="█",$$="=⃥",U$="≡⃥",j$="â«­",z$="⌐",W$="𝔹",V$="𝕓",G$="⊥",K$="⊥",J$="⋈",Y$="⧉",X$="┐",Q$="╕",Z$="╖",eU="╗",tU="┌",rU="╒",nU="╓",iU="╔",aU="─",oU="═",sU="┬",lU="╤",uU="╥",cU="╦",fU="┴",dU="╧",pU="╨",hU="╩",vU="⊟",mU="⊞",gU="⊠",yU="┘",bU="╛",wU="╜",xU="╝",CU="└",EU="╘",TU="╙",_U="╚",SU="│",kU="║",OU="┼",AU="╪",MU="╫",LU="╬",DU="┤",IU="╡",RU="╢",NU="╣",PU="├",BU="╞",FU="╟",HU="╠",qU="‵",$U="˘",UU="˘",jU="¦",zU="𝒷",WU="ℬ",VU="⁏",GU="∽",KU="⋍",JU="⧅",YU="\\",XU="⟈",QU="•",ZU="•",ej="≎",tj="⪮",rj="≏",nj="≎",ij="≏",aj="Ć",oj="ć",sj="⩄",lj="⩉",uj="⩋",cj="∩",fj="⋒",dj="⩇",pj="⩀",hj="ⅅ",vj="∩︀",mj="⁁",gj="ˇ",yj="ℭ",bj="⩍",wj="Č",xj="č",Cj="Ç",Ej="ç",Tj="Ĉ",_j="ĉ",Sj="∰",kj="⩌",Oj="⩐",Aj="Ċ",Mj="ċ",Lj="¸",Dj="¸",Ij="⦲",Rj="¢",Nj="·",Pj="·",Bj="𝔠",Fj="ℭ",Hj="Ч",qj="ч",$j="✓",Uj="✓",jj="Χ",zj="χ",Wj="ˆ",Vj="≗",Gj="↺",Kj="↻",Jj="⊛",Yj="⊚",Xj="⊝",Qj="⊙",Zj="®",ez="Ⓢ",tz="⊖",rz="⊕",nz="⊗",iz="○",az="⧃",oz="≗",sz="⨐",lz="⫯",uz="⧂",cz="∲",fz="”",dz="’",pz="♣",hz="♣",vz=":",mz="∷",gz="â©´",yz="≔",bz="≔",wz=",",xz="@",Cz="∁",Ez="∘",Tz="∁",_z="ℂ",Sz="≅",kz="â©­",Oz="≡",Az="∮",Mz="∯",Lz="∮",Dz="𝕔",Iz="ℂ",Rz="∐",Nz="∐",Pz="©",Bz="©",Fz="℗",Hz="∳",qz="↵",$z="✗",Uz="⨯",jz="𝒞",zz="𝒸",Wz="⫏",Vz="⫑",Gz="⫐",Kz="⫒",Jz="⋯",Yz="⤸",Xz="⤵",Qz="⋞",Zz="⋟",e2="↶",t2="⤽",r2="⩈",n2="⩆",i2="≍",a2="∪",o2="⋓",s2="⩊",l2="⊍",u2="⩅",c2="∪︀",f2="↷",d2="⤼",p2="⋞",h2="⋟",v2="⋎",m2="⋏",g2="¤",y2="↶",b2="↷",w2="â
73‹Ž",x2="⋏",C2="∲",E2="∱",T2="⌭",_2="†",S2="‡",k2="ℸ",O2="↓",A2="↡",M2="⇓",L2="‐",D2="⫤",I2="⊣",R2="⤏",N2="˝",P2="Ď",B2="ď",F2="Д",H2="д",q2="‡",$2="⇊",U2="ⅅ",j2="ⅆ",z2="⤑",W2="â©·",V2="°",G2="∇",K2="Δ",J2="δ",Y2="⦱",X2="⥿",Q2="𝔇",Z2="𝔡",eW="⥥",tW="⇃",rW="⇂",nW="´",iW="˙",aW="˝",oW="`",sW="˜",lW="⋄",uW="⋄",cW="⋄",fW="♦",dW="♦",pW="¨",hW="ⅆ",vW="ϝ",mW="⋲",gW="÷",yW="÷",bW="⋇",wW="⋇",xW="Ђ",CW="ђ",EW="⌞",TW="⌍",_W="$",SW="𝔻",kW="𝕕",OW="¨",AW="˙",MW="⃜",LW="≐",DW="≑",IW="≐",RW="∸",NW="∔",PW="⊡",BW="⌆",FW="∯",HW="¨",qW="⇓",$W="⇐",UW="⇔",jW="⫤",zW="⟸",WW="⟺",VW="⟹",GW="⇒",KW="⊨",JW="⇑",YW="⇕",XW="∥",QW="⤓",ZW="↓",eV="↓",tV="⇓",rV="⇵",nV="̑",iV="⇊",aV="⇃",oV="⇂",sV="⥐",lV="⥞",uV="⥖",cV="↽",fV="⥟",dV="⥗",pV="⇁",hV="↧",vV="⊤",mV="⤐",gV="⌟",yV="⌌",bV="𝒟",wV="𝒹",xV="Ѕ",CV="ѕ",EV="â§¶",TV="Đ",_V="đ",SV="⋱",kV="▿",OV="▾",AV="⇵",MV="⥯",LV="⦦",DV="Џ",IV="џ",RV="⟿",NV="É",PV="é",BV="â©®",FV="Ě",HV="ě",qV="Ê",$V="ê",UV="≖",jV="≕",zV="Э",WV="э",VV="â©·",GV="Ė",KV="ė",JV="≑",YV="ⅇ",XV="≒",QV="𝔈",ZV="𝔢",e3="⪚",t3="È",r3="è",n3="⪖",i3="⪘",a3="⪙",o3="∈",s3="⏧",l3="ℓ",u3="⪕",c3="⪗",f3="Ē",d3="ē",p3="∅",h3="∅",v3="◻",m3="∅",g3="▫",y3=" ",b3=" ",w3=" ",x3="Ŋ",C3="ŋ",E3=" ",T3="Ę",_3="ę",S3="𝔼",k3="𝕖",O3="⋕",A3="â§£",M3="⩱",L3="ε",D3="Ε",I3="ε",R3="ϵ",N3="≖",P3="≕",B3="≂",F3="⪖",H3="⪕",q3="⩵",$3="=",U3="≂",j3="≟",z3="⇌",W3="≡",V3="⩸",G3="â§¥",K3="⥱",J3="≓",Y3="ℯ",X3="ℰ",Q3="≐",Z3="⩳",eG="≂",tG="Η",rG="η",nG="Ð",iG="ð",aG="Ë",oG="ë",sG="€",lG="!",uG="∃",cG="∃",fG="ℰ",dG="ⅇ",pG="ⅇ",hG="≒",vG="Ф",mG="ф",gG="♀",yG="ffi",bG="ff",wG="ffl",xG="𝔉",CG="𝔣",EG="fi",TG="◼",_G="▪",SG="fj",kG="♭",OG="fl",AG="▱",MG="ƒ",LG="𝔽",DG="𝕗",IG="∀",RG="∀",NG="⋔",PG="⫙",BG="ℱ",FG="⨍",HG="½",qG="⅓",$G="¼",UG="⅕",jG="⅙",zG="⅛",WG="⅔",VG="⅖",GG="¾",KG="⅗",JG="⅜",YG="⅘",XG="⅚",QG="⅝",ZG="⅞",eK="⁄",tK="⌢",rK="𝒻",nK="ℱ",iK="ǵ",aK="Γ",oK="γ",sK="Ϝ",lK="ϝ",uK="⪆",cK="Ğ",fK="ğ",dK="Ä¢",pK="Ĝ",hK="ĝ",vK="Г",mK="г",gK="Ä ",yK="Ä¡",bK="≥",wK="≧",xK="⪌",CK="⋛",EK="≥",TK="≧",_K="⩾",SK="⪩",kK="⩾",OK="⪀",AK="⪂",MK="⪄",LK="⋛︀",DK="⪔",IK="𝔊",RK="𝔤",NK="≫",PK="⋙",BK="⋙",FK="ℷ",HK="Ѓ",qK="ѓ",$K="⪥",UK="≷",jK="⪒",zK="⪤",WK="⪊",VK="⪊",GK="⪈",KK="≩",JK="⪈",YK="≩",XK="⋧",QK="𝔾",ZK="𝕘",e5="`",t5="≥",r5="⋛",n5="≧",i5="⪢",a5="≷",o5="⩾",s5="≳",l5="𝒢",u5="ℊ",c5="≳",f5="⪎",d5="⪐",p5="⪧",h5="⩺",v5=">",m5=">",g5="≫",y5="⋗",b5="⦕",w5="⩼",x5="⪆",C5="⥸",E5="⋗",T5="⋛",_5="⪌",S5="≷",k5="≳",O5="≩︀",A5="≩︀",M5="ˇ",L5=" ",D5="½",I5="ℋ",R5="Ъ",N5="ъ",P5="⥈",B5="↔",F5="⇔",H5="↭",q5="^",$5="ℏ",U5="Ĥ",j5="Ä¥",z5="♥",W5="♥",V5="…",G5="⊹",K5="𝔥",J5="ℌ",Y5="ℋ",X5="⤥",Q5="⤦",Z5="⇿",eJ="∻",tJ="↩",rJ="↪",nJ="𝕙",iJ="ℍ",aJ="―",oJ="─",sJ="𝒽",lJ="ℋ",uJ="ℏ",cJ="Ħ",fJ="ħ",dJ="≎",pJ="≏",hJ="⁃",vJ="‐",mJ="Í",gJ="í",yJ="⁣",bJ="Î",wJ="î",xJ="И",CJ="и",EJ="İ",TJ="Е",_J="е",SJ="¡",kJ="⇔",OJ="𝔦",AJ="ℑ",MJ="Ì",LJ="ì",DJ="ⅈ",IJ="⨌",RJ="∭",NJ="⧜",PJ="℩",BJ="IJ",FJ="ij",HJ="Ī",qJ="Ä«",$J="ℑ",UJ="ⅈ",jJ="ℐ",zJ="ℑ",WJ="ı",VJ="ℑ",GJ="⊷",KJ="Ƶ",JJ="⇒",YJ="℅",XJ="∞",QJ="⧝",ZJ="ı",e4="⊺",t4="∫",r4="∬",n4="ℤ",i4="∫",a4="⊺",o4="⋂",s4="⨗",l4="⨼",u4="⁣",c4="⁢",f4="Ё",d4="ё",p4="Ä®",h4="į",v4="𝕀",m4="𝕚",g4="Ι",y4="ι",b4="⨼",w4="¿",x4="𝒾",C4="ℐ",E4="∈",T4="⋵",_4="⋹",S4="⋴",k4="⋳",O4="∈",A4="⁢",M4="Ĩ",L4="Ä©",D4="І",I4="і",R4="Ï",N4="ï",P4="Ä´",B4="ĵ",F4="Й",H4="й",q4="𝔍",$4="𝔧",U4="È·",j4="𝕁",z4="𝕛",W4="𝒥",V4="𝒿",G4="Ј",K4="ј",J4="Є",Y4="є",X4="Κ",Q4="κ",Z4="ϰ",e8="Ķ",t8="Ä·",r8="К",n8="к",i8="𝔎",a8="𝔨",o8="ĸ",s8="Ð¥",l8="х",u8="Ќ",c8="ќ",f8="𝕂",d8="𝕜",p8
73="𝒦",h8="𝓀",v8="⇚",m8="Ĺ",g8="ĺ",y8="⦴",b8="ℒ",w8="Λ",x8="λ",C8="⟨",E8="⟪",T8="⦑",_8="⟨",S8="⪅",k8="ℒ",O8="«",A8="⇤",M8="⤟",L8="←",D8="↞",I8="⇐",R8="⤝",N8="↩",P8="↫",B8="⤹",F8="⥳",H8="↢",q8="⤙",$8="⤛",U8="⪫",j8="⪭",z8="⪭︀",W8="⤌",V8="⤎",G8="❲",K8="{",J8="[",Y8="⦋",X8="⦏",Q8="⦍",Z8="Ľ",e6="ľ",t6="Ļ",r6="ļ",n6="⌈",i6="{",a6="Л",o6="л",s6="⤶",l6="“",u6="„",c6="⥧",f6="⥋",d6="↲",p6="≤",h6="≦",v6="⟨",m6="⇤",g6="←",y6="←",b6="⇐",w6="⇆",x6="↢",C6="⌈",E6="⟦",T6="⥡",_6="⥙",S6="⇃",k6="⌊",O6="↽",A6="↼",M6="⇇",L6="↔",D6="↔",I6="⇔",R6="⇆",N6="⇋",P6="↭",B6="⥎",F6="↤",H6="⊣",q6="⥚",$6="⋋",U6="⧏",j6="⊲",z6="⊴",W6="⥑",V6="⥠",G6="⥘",K6="↿",J6="⥒",Y6="↼",X6="⪋",Q6="⋚",Z6="≤",e9="≦",t9="⩽",r9="⪨",n9="⩽",i9="⩿",a9="⪁",o9="⪃",s9="⋚︀",l9="⪓",u9="⪅",c9="⋖",f9="⋚",d9="⪋",p9="⋚",h9="≦",v9="≶",m9="≶",g9="⪡",y9="≲",b9="⩽",w9="≲",x9="⥼",C9="⌊",E9="𝔏",T9="𝔩",_9="≶",S9="⪑",k9="⥢",O9="↽",A9="↼",M9="⥪",L9="▄",D9="Љ",I9="љ",R9="⇇",N9="≪",P9="⋘",B9="⌞",F9="⇚",H9="⥫",q9="◺",$9="Ŀ",U9="ŀ",j9="⎰",z9="⎰",W9="⪉",V9="⪉",G9="⪇",K9="≨",J9="⪇",Y9="≨",X9="⋦",Q9="⟬",Z9="⇽",eY="⟦",tY="⟵",rY="⟵",nY="⟸",iY="⟷",aY="⟷",oY="⟺",sY="⟼",lY="⟶",uY="⟶",cY="⟹",fY="↫",dY="↬",pY="⦅",hY="𝕃",vY="𝕝",mY="⨭",gY="⨴",yY="∗",bY="_",wY="↙",xY="↘",CY="◊",EY="◊",TY="⧫",_Y="(",SY="⦓",kY="⇆",OY="⌟",AY="⇋",MY="⥭",LY="‎",DY="⊿",IY="‹",RY="𝓁",NY="ℒ",PY="↰",BY="↰",FY="≲",HY="⪍",qY="⪏",$Y="[",UY="‘",jY="‚",zY="Ł",WY="ł",VY="⪦",GY="⩹",KY="<",JY="<",YY="≪",XY="⋖",QY="⋋",ZY="⋉",e7="⥶",t7="⩻",r7="◃",n7="⊴",i7="◂",a7="⦖",o7="⥊",s7="⥦",l7="≨︀",u7="≨︀",c7="¯",f7="♂",d7="✠",p7="✠",h7="↦",v7="↦",m7="↧",g7="↤",y7="↥",b7="▮",w7="⨩",x7="М",C7="м",E7="—",T7="∺",_7="∡",S7=" ",k7="ℳ",O7="𝔐",A7="𝔪",M7="℧",L7="µ",D7="*",I7="⫰",R7="∣",N7="·",P7="⊟",B7="−",F7="∸",H7="⨪",q7="∓",$7="⫛",U7="…",j7="∓",z7="⊧",W7="𝕄",V7="𝕞",G7="∓",K7="𝓂",J7="ℳ",Y7="∾",X7="Μ",Q7="μ",Z7="⊸",eX="⊸",tX="∇",rX="Ń",nX="ń",iX="∠⃒",aX="≉",oX="⩰̸",sX="≋̸",lX="ʼn",uX="≉",cX="♮",fX="ℕ",dX="♮",pX=" ",hX="≎̸",vX="≏̸",mX="⩃",gX="Ň",yX="ň",bX="Ņ",wX="ņ",xX="≇",CX="⩭̸",EX="⩂",TX="Н",_X="н",SX="–",kX="⤤",OX="↗",AX="⇗",MX="↗",LX="≠",DX="≐̸",IX="​",RX="​",NX="​",PX="​",BX="≢",FX="⤨",HX="≂̸",qX="≫",$X="≪",UX=`
74`,jX="∄",zX="∄",WX="𝔑",VX="𝔫",GX="≧̸",KX="≱",JX="≱",YX="≧̸",XX="⩾̸",QX="⩾̸",ZX="⋙̸",eQ="≵",tQ="≫⃒",rQ="≯",nQ="≯",iQ="≫̸",aQ="↮",oQ="⇎",sQ="⫲",lQ="∋",uQ="⋼",cQ="⋺",fQ="∋",dQ="Њ",pQ="њ",hQ="↚",vQ="⇍",mQ="‥",gQ="≦̸",yQ="≰",bQ="↚",wQ="⇍",xQ="↮",CQ="⇎",EQ="≰",TQ="≦̸",_Q="⩽̸",SQ="⩽̸",kQ="≮",OQ="⋘̸",AQ="≴",MQ="≪⃒",LQ="≮",DQ="⋪",IQ="⋬",RQ="≪̸",NQ="∤",PQ="⁠",BQ=" ",FQ="𝕟",HQ="ℕ",qQ="⫬",$Q="¬",UQ="≢",jQ="≭",zQ="∦",WQ="∉",VQ="≠",GQ="≂̸",KQ="∄",JQ="≯",YQ="≱",XQ="≧̸",QQ="≫̸",ZQ="≹",eZ="⩾̸",tZ="≵",rZ="≎̸",nZ="≏̸",iZ="∉",aZ="⋵̸",oZ="⋹̸",sZ="∉",lZ="⋷",uZ="⋶",cZ="⧏̸",fZ="⋪",dZ="⋬",pZ="≮",hZ="≰",vZ="≸",mZ="≪̸",gZ="⩽̸",yZ="≴",bZ="⪢̸",wZ="⪡̸",xZ="∌",CZ="∌",EZ="⋾",TZ="⋽",_Z="⊀",SZ="⪯̸",kZ="⋠",OZ="∌",AZ="⧐̸",MZ="⋫",LZ="⋭",DZ="⊏̸",IZ="⋢",RZ="⊐̸",NZ="⋣",PZ="⊂⃒",BZ="⊈",FZ="⊁",HZ="⪰̸",qZ="⋡",$Z="≿̸",UZ="⊃⃒",jZ="⊉",zZ="≁",WZ="≄",VZ="≇",GZ="≉",KZ="∤",JZ="∦",YZ="∦",XZ="⫽⃥",QZ="∂̸",ZZ="⨔",eee="⊀",tee="⋠",ree="⊀",nee="⪯̸",iee="⪯̸",aee="⤳̸",oee="↛",see="⇏",lee="↝̸",uee="↛",cee="⇏",fee="⋫",dee="⋭",pee="⊁",hee="⋡",vee="⪰̸",mee="𝒩",gee="𝓃",yee="∤",bee="∦",wee="≁",xee="≄",Cee="≄",Eee="∤",Tee="∦",_ee="⋢",See="⋣",kee="⊄",Oee="⫅̸",Aee="⊈",Mee="⊂⃒",Lee="⊈",Dee="⫅̸",Iee="⊁",Ree="⪰̸",Nee="⊅",Pee="⫆̸",Bee="⊉",Fee="⊃⃒",Hee="⊉",qee="⫆̸",$ee="≹",Uee="Ñ",jee="ñ",zee="≸",Wee="⋪",Vee="â
74‹¬",Gee="⋫",Kee="⋭",Jee="Ν",Yee="ν",Xee="#",Qee="№",Zee=" ",ete="≍⃒",tte="⊬",rte="⊭",nte="⊮",ite="⊯",ate="≥⃒",ote=">⃒",ste="⤄",lte="⧞",ute="⤂",cte="≤⃒",fte="<⃒",dte="⊴⃒",pte="⤃",hte="⊵⃒",vte="∼⃒",mte="⤣",gte="↖",yte="⇖",bte="↖",wte="⤧",xte="Ó",Cte="ó",Ete="⊛",Tte="Ô",_te="ô",Ste="⊚",kte="О",Ote="о",Ate="⊝",Mte="Ő",Lte="ő",Dte="⨸",Ite="⊙",Rte="⦼",Nte="Œ",Pte="œ",Bte="⦿",Fte="𝔒",Hte="𝔬",qte="˛",$te="Ò",Ute="ò",jte="⧁",zte="⦵",Wte="Ω",Vte="∮",Gte="↺",Kte="⦾",Jte="⦻",Yte="‾",Xte="⧀",Qte="Ō",Zte="ō",ere="Ω",tre="ω",rre="Ο",nre="ο",ire="⦶",are="⊖",ore="𝕆",sre="𝕠",lre="⦷",ure="“",cre="‘",fre="⦹",dre="⊕",pre="↻",hre="⩔",vre="∨",mre="⩝",gre="ℴ",yre="ℴ",bre="ª",wre="º",xre="⊶",Cre="⩖",Ere="⩗",Tre="⩛",_re="Ⓢ",Sre="𝒪",kre="ℴ",Ore="Ø",Are="ø",Mre="⊘",Lre="Õ",Dre="õ",Ire="⨶",Rre="⨷",Nre="⊗",Pre="Ö",Bre="ö",Fre="⌽",Hre="‾",qre="⏞",$re="⎴",Ure="⏜",jre="¶",zre="∥",Wre="∥",Vre="⫳",Gre="⫽",Kre="∂",Jre="∂",Yre="П",Xre="п",Qre="%",Zre=".",ene="‰",tne="⊥",rne="‱",nne="𝔓",ine="𝔭",ane="Φ",one="φ",sne="ϕ",lne="ℳ",une="☎",cne="Π",fne="π",dne="⋔",pne="ϖ",hne="ℏ",vne="ℎ",mne="ℏ",gne="⨣",yne="⊞",bne="⨢",wne="+",xne="∔",Cne="⨥",Ene="⩲",Tne="±",_ne="±",Sne="⨦",kne="⨧",One="±",Ane="ℌ",Mne="⨕",Lne="𝕡",Dne="ℙ",Ine="£",Rne="⪷",Nne="⪻",Pne="≺",Bne="≼",Fne="⪷",Hne="≺",qne="≼",$ne="≺",Une="⪯",jne="≼",zne="≾",Wne="⪯",Vne="⪹",Gne="⪵",Kne="⋨",Jne="⪯",Yne="⪳",Xne="≾",Qne="′",Zne="″",eie="ℙ",tie="⪹",rie="⪵",nie="⋨",iie="∏",aie="∏",oie="⌮",sie="⌒",lie="⌓",uie="∝",cie="∝",fie="∷",die="∝",pie="≾",hie="⊰",vie="𝒫",mie="𝓅",gie="Ψ",yie="ψ",bie=" ",wie="𝔔",xie="𝔮",Cie="⨌",Eie="𝕢",Tie="ℚ",_ie="⁗",Sie="𝒬",kie="𝓆",Oie="ℍ",Aie="⨖",Mie="?",Lie="≟",Die='"',Iie='"',Rie="⇛",Nie="∽̱",Pie="Ŕ",Bie="ŕ",Fie="√",Hie="⦳",qie="⟩",$ie="⟫",Uie="⦒",jie="⦥",zie="⟩",Wie="»",Vie="⥵",Gie="⇥",Kie="⤠",Jie="⤳",Yie="→",Xie="↠",Qie="⇒",Zie="⤞",eae="↪",tae="↬",rae="⥅",nae="⥴",iae="⤖",aae="↣",oae="↝",sae="⤚",lae="⤜",uae="∶",cae="ℚ",fae="⤍",dae="⤏",pae="⤐",hae="❳",vae="}",mae="]",gae="⦌",yae="⦎",bae="⦐",wae="Ř",xae="ř",Cae="Ŗ",Eae="ŗ",Tae="⌉",_ae="}",Sae="Р",kae="р",Oae="⤷",Aae="⥩",Mae="”",Lae="”",Dae="↳",Iae="ℜ",Rae="ℛ",Nae="ℜ",Pae="ℝ",Bae="ℜ",Fae="▭",Hae="®",qae="®",$ae="∋",Uae="⇋",jae="⥯",zae="⥽",Wae="⌋",Vae="𝔯",Gae="ℜ",Kae="⥤",Jae="⇁",Yae="⇀",Xae="⥬",Qae="Ρ",Zae="ρ",eoe="ϱ",toe="⟩",roe="⇥",noe="→",ioe="→",aoe="⇒",ooe="⇄",soe="↣",loe="⌉",uoe="⟧",coe="⥝",foe="⥕",doe="⇂",poe="⌋",hoe="⇁",voe="⇀",moe="⇄",goe="⇌",yoe="⇉",boe="↝",woe="↦",xoe="⊢",Coe="⥛",Eoe="⋌",Toe="⧐",_oe="⊳",Soe="⊵",koe="⥏",Ooe="⥜",Aoe="⥔",Moe="↾",Loe="⥓",Doe="⇀",Ioe="˚",Roe="≓",Noe="⇄",Poe="⇌",Boe="‏",Foe="⎱",Hoe="⎱",qoe="â«®",$oe="⟭",Uoe="⇾",joe="⟧",zoe="⦆",Woe="𝕣",Voe="ℝ",Goe="⨮",Koe="⨵",Joe="⥰",Yoe=")",Xoe="⦔",Qoe="⨒",Zoe="⇉",ese="⇛",tse="›",rse="𝓇",nse="ℛ",ise="↱",ase="↱",ose="]",sse="’",lse="’",use="⋌",cse="⋊",fse="▹",dse="⊵",pse="▸",hse="⧎",vse="â§´",mse="⥨",gse="℞",yse="Ś",bse="ś",wse="‚",xse="⪸",Cse="Å ",Ese="Å¡",Tse="⪼",_se="≻",Sse="≽",kse="⪰",Ose="⪴",Ase="Ş",Mse="ş",Lse="Ŝ",Dse="ŝ",Ise="⪺",Rse="⪶",Nse="⋩",Pse="⨓",Bse="≿",Fse="С",Hse="с",qse="⊡",$se="⋅",Use="⩦",jse="⤥",zse="↘",Wse="⇘",Vse="↘",Gse="§",Kse=";",Jse="⤩",Yse="∖",Xse="∖",Qse="✶",Zse="𝔖",ele="𝔰",tle="⌢",rle="♯",nle="Щ",ile="щ",ale="Ш",ole="ш",sle="↓",lle="←",ule="∣",cle="∥",fle="→",dle="↑",ple="­",hle="Σ",vle="σ",mle="ς",gle="ς",yle="∼",ble="⩪",wle="≃",xle="≃",Cle="⪞",Ele="⪠",Tle="⪝",_le="⪟",Sle="≆",kle="⨤",Ole="⥲",Ale="←",Mle="∘",Lle="∖",Dle="⨳",Ile="⧤",Rle="∣",Nle="⌣",Ple="⪪",Ble="⪬",Fle="⪬︀",Hle="Ь",qle="ь",$le="⌿",Ule="⧄",jle="/",zle="𝕊",Wle="𝕤",Vle="♠",Gle="♠",Kle="∥",Jle="⊓",Yle="⊓︀",Xle="⊔",Qle="⊔︀",Zle="√",eue="⊏",tue="⊑",rue="⊏",nue="⊑",iue="⊐",aue="⊒",oue="⊐",sue="⊒",lue="□",uue="□",cue="⊓",fue="⊏",due="⊑",pue="⊐",hue="⊒",vue="⊔",mue="▪",gue="□",yue="▪",bue="→",wue="𝒮",xue="𝓈",Cue="∖",Eue="⌣",Tue="⋆",_ue="⋆",Sue="☆",kue="★",Oue="ϵ",Aue="ϕ",Mue="¯",Lue="⊂",Due="⋐",Iue="⪽",Rue="⫅",Nue="⊆",Pue="⫃",Bue="⫁",Fue="⫋",Hue="⊊",que="⪿",$ue="⥹",Uue="⊂",jue="⋐",zue="⊆",Wue="⫅",Vue="⊆",Gue="⊊",Kue="⫋",Jue="⫇",Yue="⫕",Xue="⫓",Que="⪸",Zue="≻",ece="≽",tce="≻",rce="⪰",nce="≽",ice="≿",ace="⪰",oce="⪺",sce="⪶",lce="⋩",uce="≿",cce="∋",fce="∑",dce="∑",pce="♪",hce="¹",vce="²",mce="³",gce="⊃",yce="⋑",bce="⪾",wce="⫘",xce="⫆",Cce="⊇",Ece="⫄",Tce="⊃",_ce="⊇",Sce="⟉",kce="⫗",Oce="⥻",Ace="⫂",Mce="⫌",Lce="⊋",Dce="⫀",Ice="⊃",Rce="⋑",Nce="⊇",Pce="⫆",Bce="⊋",Fce="⫌",Hce="⫈",qce="⫔",$ce="⫖",Uce="⤦",jce="↙",zce="⇙",Wce="↙",Vce="⤪",Gce="ß",Kce="	",Jce="⌖",Yce="Τ",Xce="τ",Qce="⎴",Zce="Ť",efe="Å¥",tfe="Å¢",rfe="Å£",nfe="Т",ife="т",afe="⃛",ofe="⌕",sfe="𝔗",lfe="𝔱",ufe="∴",cfe="∴",ffe="∴",dfe="Θ",pfe="θ",hfe="ϑ",vfe="ϑ",mfe="≈",gfe="∼",yfe="  ",bfe=" ",wfe=" ",xfe="≈",Cfe="∼",Efe="Þ",Tfe="þ",_fe="˜",Sfe="∼",kfe="≃",Ofe="≅",Afe="≈",Mfe="⨱",Lfe="⊠",Dfe="×",Ife="⨰",Rfe="∭",Nfe="⤨",Pfe="⌶",Bfe="⫱",Ffe="⊤",Hfe="𝕋",qfe="𝕥",$fe="⫚",Ufe="⤩",jfe="‴",zfe="™",Wfe="™",Vfe="▵",Gfe="▿",Kfe="◃",Jfe="⊴",Yfe="≜",Xfe="▹",Qfe="⊵",Zfe="◬",ede="≜",tde="⨺",rde="⃛",nde="⨹",ide="⧍",ade="⨻",ode="⏢",sde="𝒯",lde="𝓉",ude="Ц",cde="ц",fde="Ћ",dde="ћ",pde="Ŧ",hde="ŧ",vde="≬",mde="↞",gde="↠",yde="Ú",bde="ú",wde="↑",xde="↟",Cde="⇑",Ede="⥉",Tde="Ў",_de="ў",Sde="Ŭ",kde="Å­",Ode="Û",Ade="û",Mde="У",Lde="у",Dde="⇅",Ide="Ű",Rde="ű",Nde="⥮",Pde="⥾",Bde="𝔘",Fde="𝔲",Hde="Ù",qde="ù",$de="⥣",Ude="↿",jde="↾",zde="▀",Wde="⌜",Vde="⌜",Gde="⌏",Kde="◸",Jde="Ū",Yde="Å«",Xde="¨",Qde="_",Zde="⏟",epe="⎵",tpe="⏝",rpe="⋃",npe="⊎",ipe="Ų",ape="ų",ope="𝕌",spe="𝕦",lpe="⤒",upe="↑",cpe="↑",fpe="⇑",dpe="⇅",ppe="↕",hpe="↕",vpe="⇕",mpe="⥮",gpe="↿",ype="↾",bpe="⊎",wpe="↖",xpe="↗",Cpe="υ",Epe="ϒ",Tpe="ϒ",_pe="Î¥",Spe="υ",kpe="↥",Ope="⊥",Ape="⇈",Mpe="⌝",Lpe="⌝",Dpe="⌎",Ipe="Å®",Rpe="ů",Npe="◹",Ppe="𝒰",Bpe="𝓊",Fpe="⋰",Hpe="Ũ",qpe="Å©",$pe="▵",Upe="▴",jpe="⇈",zpe="Ü",Wpe="ü",Vpe="⦧",Gpe="⦜",Kpe="ϵ",Jpe="ϰ",Ype="∅",Xpe="ϕ",Qpe="ϖ",Zpe="∝",ehe="↕",the="⇕",rhe="ϱ",nhe="ς",ihe="⊊︀",ahe="⫋︀",ohe="⊋︀",she="⫌︀",lhe="ϑ",uhe="⊲",che="⊳",fhe="⫨",dhe="â««",phe="â«©",hhe="В",vhe="в",mhe="⊢",ghe="⊨",yhe="⊩",bhe="⊫",whe="⫦",xhe="⊻",Che="∨",Ehe="⋁",The="≚",_he="⋮",She="|",khe="‖",Ohe="|",Ahe="‖",Mhe="∣",Lhe="|",Dhe="❘",Ihe="≀",Rhe=" ",Nhe="𝔙",Phe="𝔳",Bhe="⊲",Fhe="⊂⃒",Hhe="⊃⃒",qhe="𝕍",$he="𝕧",Uhe="∝",jhe="⊳",zhe="𝒱",Whe="𝓋",Vhe="⫋︀",Ghe="⊊︀",Khe="⫌︀",Jhe="⊋︀",Yhe="⊪",Xhe="⦚",Qhe="Å´",Zhe="ŵ",eve="⩟",tve="∧",rve="⋀",nve="≙",ive="℘",ave="𝔚",ove="𝔴",sve="𝕎",lve="𝕨",uve="℘",cve="≀",fve="≀",dve="𝒲",pve="𝓌",hve="⋂",vve="◯",mve="⋃",gve="▽",yve="𝔛",bve="𝔵",wve="⟷",xve="⟺",Cve="Ξ",Eve="ξ",Tve="⟵",_ve="⟸",Sve="⟼",kve="â
74‹»",Ove="⨀",Ave="𝕏",Mve="𝕩",Lve="⨁",Dve="⨂",Ive="⟶",Rve="⟹",Nve="𝒳",Pve="𝓍",Bve="⨆",Fve="⨄",Hve="△",qve="⋁",$ve="⋀",Uve="Ý",jve="ý",zve="Я",Wve="я",Vve="Ŷ",Gve="Å·",Kve="Ы",Jve="ы",Yve="Â¥",Xve="𝔜",Qve="𝔶",Zve="Ї",eme="ї",tme="𝕐",rme="𝕪",nme="𝒴",ime="𝓎",ame="Ю",ome="ю",sme="ÿ",lme="Ÿ",ume="Ź",cme="ź",fme="Ž",dme="ž",pme="З",hme="з",vme="Å»",mme="ż",gme="ℨ",yme="​",bme="Ζ",wme="ζ",xme="𝔷",Cme="ℨ",Eme="Ж",Tme="ж",_me="⇝",Sme="𝕫",kme="ℤ",Ome="𝒵",Ame="𝓏",Mme="‍",Lme="‌",w1={Aacute:vH,aacute:mH,Abreve:gH,abreve:yH,ac:bH,acd:wH,acE:xH,Acirc:CH,acirc:EH,acute:TH,Acy:_H,acy:SH,AElig:kH,aelig:OH,af:AH,Afr:MH,afr:LH,Agrave:DH,agrave:IH,alefsym:RH,aleph:NH,Alpha:PH,alpha:BH,Amacr:FH,amacr:HH,amalg:qH,amp:$H,AMP:UH,andand:jH,And:zH,and:WH,andd:VH,andslope:GH,andv:KH,ang:JH,ange:YH,angle:XH,angmsdaa:QH,angmsdab:ZH,angmsdac:eq,angmsdad:tq,angmsdae:rq,angmsdaf:nq,angmsdag:iq,angmsdah:aq,angmsd:oq,angrt:sq,angrtvb:lq,angrtvbd:uq,angsph:cq,angst:fq,angzarr:dq,Aogon:pq,aogon:hq,Aopf:vq,aopf:mq,apacir:gq,ap:yq,apE:bq,ape:wq,apid:xq,apos:Cq,ApplyFunction:Eq,approx:Tq,approxeq:_q,Aring:Sq,aring:kq,Ascr:Oq,ascr:Aq,Assign:Mq,ast:Lq,asymp:Dq,asympeq:Iq,Atilde:Rq,atilde:Nq,Auml:Pq,auml:Bq,awconint:Fq,awint:Hq,backcong:qq,backepsilon:$q,backprime:Uq,backsim:jq,backsimeq:zq,Backslash:Wq,Barv:Vq,barvee:Gq,barwed:Kq,Barwed:Jq,barwedge:Yq,bbrk:Xq,bbrktbrk:Qq,bcong:Zq,Bcy:e$,bcy:t$,bdquo:r$,becaus:n$,because:i$,Because:a$,bemptyv:o$,bepsi:s$,bernou:l$,Bernoullis:u$,Beta:c$,beta:f$,beth:d$,between:p$,Bfr:h$,bfr:v$,bigcap:m$,bigcirc:g$,bigcup:y$,bigodot:b$,bigoplus:w$,bigotimes:x$,bigsqcup:C$,bigstar:E$,bigtriangledown:T$,bigtriangleup:_$,biguplus:S$,bigvee:k$,bigwedge:O$,bkarow:A$,blacklozenge:M$,blacksquare:L$,blacktriangle:D$,blacktriangledown:I$,blacktriangleleft:R$,blacktriangleright:N$,blank:P$,blk12:B$,blk14:F$,blk34:H$,block:q$,bne:$$,bnequiv:U$,bNot:j$,bnot:z$,Bopf:W$,bopf:V$,bot:G$,bottom:K$,bowtie:J$,boxbox:Y$,boxdl:X$,boxdL:Q$,boxDl:Z$,boxDL:eU,boxdr:tU,boxdR:rU,boxDr:nU,boxDR:iU,boxh:aU,boxH:oU,boxhd:sU,boxHd:lU,boxhD:uU,boxHD:cU,boxhu:fU,boxHu:dU,boxhU:pU,boxHU:hU,boxminus:vU,boxplus:mU,boxtimes:gU,boxul:yU,boxuL:bU,boxUl:wU,boxUL:xU,boxur:CU,boxuR:EU,boxUr:TU,boxUR:_U,boxv:SU,boxV:kU,boxvh:OU,boxvH:AU,boxVh:MU,boxVH:LU,boxvl:DU,boxvL:IU,boxVl:RU,boxVL:NU,boxvr:PU,boxvR:BU,boxVr:FU,boxVR:HU,bprime:qU,breve:$U,Breve:UU,brvbar:jU,bscr:zU,Bscr:WU,bsemi:VU,bsim:GU,bsime:KU,bsolb:JU,bsol:YU,bsolhsub:XU,bull:QU,bullet:ZU,bump:ej,bumpE:tj,bumpe:rj,Bumpeq:nj,bumpeq:ij,Cacute:aj,cacute:oj,capand:sj,capbrcup:lj,capcap:uj,cap:cj,Cap:fj,capcup:dj,capdot:pj,CapitalDifferentialD:hj,caps:vj,caret:mj,caron:gj,Cayleys:yj,ccaps:bj,Ccaron:wj,ccaron:xj,Ccedil:Cj,ccedil:Ej,Ccirc:Tj,ccirc:_j,Cconint:Sj,ccups:kj,ccupssm:Oj,Cdot:Aj,cdot:Mj,cedil:Lj,Cedilla:Dj,cemptyv:Ij,cent:Rj,centerdot:Nj,CenterDot:Pj,cfr:Bj,Cfr:Fj,CHcy:Hj,chcy:qj,check:$j,checkmark:Uj,Chi:jj,chi:zj,circ:Wj,circeq:Vj,circlearrowleft:Gj,circlearrowright:Kj,circledast:Jj,circledcirc:Yj,circleddash:Xj,CircleDot:Qj,circledR:Zj,circledS:ez,CircleMinus:tz,CirclePlus:rz,CircleTimes:nz,cir:iz,cirE:az,cire:oz,cirfnint:sz,cirmid:lz,cirscir:uz,ClockwiseContourIntegral:cz,CloseCurlyDoubleQuote:fz,CloseCurlyQuote:dz,clubs:pz,clubsuit:hz,colon:vz,Colon:mz,Colone:gz,colone:yz,coloneq:bz,comma:wz,commat:xz,comp:Cz,compfn:Ez,complement:Tz,complexes:_z,cong:Sz,congdot:kz,Congruent:Oz,conint:Az,Conint:Mz,ContourIntegral:Lz,copf:Dz,Copf:Iz,coprod:Rz,Coproduct:Nz,copy:Pz,COPY:Bz,copysr:Fz,CounterClockwiseContourIntegral:Hz,crarr:qz,cross:$z,Cross:Uz,Cscr:jz,cscr:zz,csub:Wz,csube:Vz,csup:Gz,csupe:Kz,ctdot:Jz,cudarrl:Yz,cudarrr:Xz,cuepr:Qz,cuesc:Zz,cularr:e2,cularrp:t2,cupbrcap:r2,cupcap:n2,CupCap:i2,cup:a2,Cup:o2,cupcup:s2,cupdot:l2,cupor:u2,cups:c2,curarr:f2,curarrm:d2,curlyeqprec:p2,curlyeqsucc:h2,curlyvee:v2,curlywedge:m2,curren:g2,curvearrowleft:y2,curvearrowright:b2,cuvee:w2,cuwed:x2,cwconint:C2,cwint:E2,cylcty:T2,dagger:_2,Dagger:S2,daleth:k2,darr:O2,Darr:A2,dArr:M2,dash:L2,Dashv:D2,dashv:I2,dbkarow:R2,dblac:N2,Dcaron:P2,dcaron:B2,Dcy:F2,dcy:H2,ddagger:q2,ddarr
74:$2,DD:U2,dd:j2,DDotrahd:z2,ddotseq:W2,deg:V2,Del:G2,Delta:K2,delta:J2,demptyv:Y2,dfisht:X2,Dfr:Q2,dfr:Z2,dHar:eW,dharl:tW,dharr:rW,DiacriticalAcute:nW,DiacriticalDot:iW,DiacriticalDoubleAcute:aW,DiacriticalGrave:oW,DiacriticalTilde:sW,diam:lW,diamond:uW,Diamond:cW,diamondsuit:fW,diams:dW,die:pW,DifferentialD:hW,digamma:vW,disin:mW,div:gW,divide:yW,divideontimes:bW,divonx:wW,DJcy:xW,djcy:CW,dlcorn:EW,dlcrop:TW,dollar:_W,Dopf:SW,dopf:kW,Dot:OW,dot:AW,DotDot:MW,doteq:LW,doteqdot:DW,DotEqual:IW,dotminus:RW,dotplus:NW,dotsquare:PW,doublebarwedge:BW,DoubleContourIntegral:FW,DoubleDot:HW,DoubleDownArrow:qW,DoubleLeftArrow:$W,DoubleLeftRightArrow:UW,DoubleLeftTee:jW,DoubleLongLeftArrow:zW,DoubleLongLeftRightArrow:WW,DoubleLongRightArrow:VW,DoubleRightArrow:GW,DoubleRightTee:KW,DoubleUpArrow:JW,DoubleUpDownArrow:YW,DoubleVerticalBar:XW,DownArrowBar:QW,downarrow:ZW,DownArrow:eV,Downarrow:tV,DownArrowUpArrow:rV,DownBreve:nV,downdownarrows:iV,downharpoonleft:aV,downharpoonright:oV,DownLeftRightVector:sV,DownLeftTeeVector:lV,DownLeftVectorBar:uV,DownLeftVector:cV,DownRightTeeVector:fV,DownRightVectorBar:dV,DownRightVector:pV,DownTeeArrow:hV,DownTee:vV,drbkarow:mV,drcorn:gV,drcrop:yV,Dscr:bV,dscr:wV,DScy:xV,dscy:CV,dsol:EV,Dstrok:TV,dstrok:_V,dtdot:SV,dtri:kV,dtrif:OV,duarr:AV,duhar:MV,dwangle:LV,DZcy:DV,dzcy:IV,dzigrarr:RV,Eacute:NV,eacute:PV,easter:BV,Ecaron:FV,ecaron:HV,Ecirc:qV,ecirc:$V,ecir:UV,ecolon:jV,Ecy:zV,ecy:WV,eDDot:VV,Edot:GV,edot:KV,eDot:JV,ee:YV,efDot:XV,Efr:QV,efr:ZV,eg:e3,Egrave:t3,egrave:r3,egs:n3,egsdot:i3,el:a3,Element:o3,elinters:s3,ell:l3,els:u3,elsdot:c3,Emacr:f3,emacr:d3,empty:p3,emptyset:h3,EmptySmallSquare:v3,emptyv:m3,EmptyVerySmallSquare:g3,emsp13:y3,emsp14:b3,emsp:w3,ENG:x3,eng:C3,ensp:E3,Eogon:T3,eogon:_3,Eopf:S3,eopf:k3,epar:O3,eparsl:A3,eplus:M3,epsi:L3,Epsilon:D3,epsilon:I3,epsiv:R3,eqcirc:N3,eqcolon:P3,eqsim:B3,eqslantgtr:F3,eqslantless:H3,Equal:q3,equals:$3,EqualTilde:U3,equest:j3,Equilibrium:z3,equiv:W3,equivDD:V3,eqvparsl:G3,erarr:K3,erDot:J3,escr:Y3,Escr:X3,esdot:Q3,Esim:Z3,esim:eG,Eta:tG,eta:rG,ETH:nG,eth:iG,Euml:aG,euml:oG,euro:sG,excl:lG,exist:uG,Exists:cG,expectation:fG,exponentiale:dG,ExponentialE:pG,fallingdotseq:hG,Fcy:vG,fcy:mG,female:gG,ffilig:yG,fflig:bG,ffllig:wG,Ffr:xG,ffr:CG,filig:EG,FilledSmallSquare:TG,FilledVerySmallSquare:_G,fjlig:SG,flat:kG,fllig:OG,fltns:AG,fnof:MG,Fopf:LG,fopf:DG,forall:IG,ForAll:RG,fork:NG,forkv:PG,Fouriertrf:BG,fpartint:FG,frac12:HG,frac13:qG,frac14:$G,frac15:UG,frac16:jG,frac18:zG,frac23:WG,frac25:VG,frac34:GG,frac35:KG,frac38:JG,frac45:YG,frac56:XG,frac58:QG,frac78:ZG,frasl:eK,frown:tK,fscr:rK,Fscr:nK,gacute:iK,Gamma:aK,gamma:oK,Gammad:sK,gammad:lK,gap:uK,Gbreve:cK,gbreve:fK,Gcedil:dK,Gcirc:pK,gcirc:hK,Gcy:vK,gcy:mK,Gdot:gK,gdot:yK,ge:bK,gE:wK,gEl:xK,gel:CK,geq:EK,geqq:TK,geqslant:_K,gescc:SK,ges:kK,gesdot:OK,gesdoto:AK,gesdotol:MK,gesl:LK,gesles:DK,Gfr:IK,gfr:RK,gg:NK,Gg:PK,ggg:BK,gimel:FK,GJcy:HK,gjcy:qK,gla:$K,gl:UK,glE:jK,glj:zK,gnap:WK,gnapprox:VK,gne:GK,gnE:KK,gneq:JK,gneqq:YK,gnsim:XK,Gopf:QK,gopf:ZK,grave:e5,GreaterEqual:t5,GreaterEqualLess:r5,GreaterFullEqual:n5,GreaterGreater:i5,GreaterLess:a5,GreaterSlantEqual:o5,GreaterTilde:s5,Gscr:l5,gscr:u5,gsim:c5,gsime:f5,gsiml:d5,gtcc:p5,gtcir:h5,gt:v5,GT:m5,Gt:g5,gtdot:y5,gtlPar:b5,gtquest:w5,gtrapprox:x5,gtrarr:C5,gtrdot:E5,gtreqless:T5,gtreqqless:_5,gtrless:S5,gtrsim:k5,gvertneqq:O5,gvnE:A5,Hacek:M5,hairsp:L5,half:D5,hamilt:I5,HARDcy:R5,hardcy:N5,harrcir:P5,harr:B5,hArr:F5,harrw:H5,Hat:q5,hbar:$5,Hcirc:U5,hcirc:j5,hearts:z5,heartsuit:W5,hellip:V5,hercon:G5,hfr:K5,Hfr:J5,HilbertSpace:Y5,hksearow:X5,hkswarow:Q5,hoarr:Z5,homtht:eJ,hookleftarrow:tJ,hookrightarrow:rJ,hopf:nJ,Hopf:iJ,horbar:aJ,HorizontalLine:oJ,hscr:sJ,Hscr:lJ,hslash:uJ,Hstrok:cJ,hstrok:fJ,HumpDownHump:dJ,HumpEqual:pJ,hybull:hJ,hyphen:vJ,Iacute:mJ,iacute:gJ,ic:yJ,Icirc:bJ,icirc:wJ,Icy:xJ,icy:CJ,Idot:EJ,IEcy:TJ,iecy:_J,iexcl:SJ,iff:kJ,ifr:OJ,Ifr:AJ,Igrave:MJ,igrave:LJ,ii:DJ,iiiint:IJ,iiint:RJ,iinfin:NJ,iiota:PJ,IJlig:BJ,ijlig:FJ,Imacr:HJ,imacr:qJ,image:$J,ImaginaryI:UJ,imagline:jJ,imagpart:zJ,imath:WJ,Im:VJ,imof:GJ,imped:KJ,Implies:JJ,incare:YJ,in:"∈",infin:XJ,infintie:QJ,inodot:ZJ,intcal:e4,int:t4,Int:r4,integers:n4,Integral:i4,intercal:a4,Intersection:o4,intlarhk:s4,intprod:l4,InvisibleComma:u4,InvisibleTimes:c4,IOcy:f4,iocy:d4,Iogon:p4,iogon:h4,Iopf:v4,iopf:m4,Iota:g4,iota:y4,iprod:b4,iquest:w4,iscr:x4,Iscr:C4,isin:E4,isindot:T4,isinE:_4,isins:S4,isinsv:k4,isinv:O4,it:A4,Itilde:M4,itilde:L4,Iukcy:D4,iukcy:I4,Iuml:R4,iuml:N4,Jcirc:P4,jcirc:B4,Jcy:F4,jcy:H4,Jfr:q4,jfr:$4,jmath:U4,Jopf:j4,jopf:z4,Jscr:W4,jscr:V4,Jsercy:G4,jsercy:K4,Jukcy:J4,jukcy:Y4,Kappa:X4,kappa:Q4,kappav:Z4,Kcedil:e8,kcedil
74:t8,Kcy:r8,kcy:n8,Kfr:i8,kfr:a8,kgreen:o8,KHcy:s8,khcy:l8,KJcy:u8,kjcy:c8,Kopf:f8,kopf:d8,Kscr:p8,kscr:h8,lAarr:v8,Lacute:m8,lacute:g8,laemptyv:y8,lagran:b8,Lambda:w8,lambda:x8,lang:C8,Lang:E8,langd:T8,langle:_8,lap:S8,Laplacetrf:k8,laquo:O8,larrb:A8,larrbfs:M8,larr:L8,Larr:D8,lArr:I8,larrfs:R8,larrhk:N8,larrlp:P8,larrpl:B8,larrsim:F8,larrtl:H8,latail:q8,lAtail:$8,lat:U8,late:j8,lates:z8,lbarr:W8,lBarr:V8,lbbrk:G8,lbrace:K8,lbrack:J8,lbrke:Y8,lbrksld:X8,lbrkslu:Q8,Lcaron:Z8,lcaron:e6,Lcedil:t6,lcedil:r6,lceil:n6,lcub:i6,Lcy:a6,lcy:o6,ldca:s6,ldquo:l6,ldquor:u6,ldrdhar:c6,ldrushar:f6,ldsh:d6,le:p6,lE:h6,LeftAngleBracket:v6,LeftArrowBar:m6,leftarrow:g6,LeftArrow:y6,Leftarrow:b6,LeftArrowRightArrow:w6,leftarrowtail:x6,LeftCeiling:C6,LeftDoubleBracket:E6,LeftDownTeeVector:T6,LeftDownVectorBar:_6,LeftDownVector:S6,LeftFloor:k6,leftharpoondown:O6,leftharpoonup:A6,leftleftarrows:M6,leftrightarrow:L6,LeftRightArrow:D6,Leftrightarrow:I6,leftrightarrows:R6,leftrightharpoons:N6,leftrightsquigarrow:P6,LeftRightVector:B6,LeftTeeArrow:F6,LeftTee:H6,LeftTeeVector:q6,leftthreetimes:$6,LeftTriangleBar:U6,LeftTriangle:j6,LeftTriangleEqual:z6,LeftUp
74DownVector:W6,LeftUpTeeVector:V6,LeftUpVectorBar:G6,LeftUpVector:K6,LeftVectorBar:J6,LeftVector:Y6,lEg:X6,leg:Q6,leq:Z6,leqq:e9,leqslant:t9,lescc:r9,les:n9,lesdot:i9,lesdoto:a9,lesdotor:o9,lesg:s9,lesges:l9,lessapprox:u9,lessdot:c9,lesseqgtr:f9,lesseqqgtr:d9,LessEqualGreater:p9,LessFullEqual:h9,LessGreater:v9,lessgtr:m9,LessLess:g9,lesssim:y9,LessSlantEqual:b9,LessTilde:w9,lfisht:x9,lfloor:C9,Lfr:E9,lfr:T9,lg:_9,lgE:S9,lHar:k9,lhard:O9,lharu:A9,lharul:M9,lhblk:L9,LJcy:D9,ljcy:I9,llarr:R9,ll:N9,Ll:P9,llcorner:B9,Lleftarrow:F9,llhard:H9,lltri:q9,Lmidot:$9,lmidot:U9,lmoustache:j9,lmoust:z9,lnap:W9,lnapprox:V9,lne:G9,lnE:K9,lneq:J9,lneqq:Y9,lnsim:X9,loang:Q9,loarr:Z9,lobrk:eY,longleftarrow:tY,LongLeftArrow:rY,Longleftarrow:nY,longleftrightarrow:iY,LongLeftRightArrow:aY,Longleftrightarrow:oY,longmapsto:sY,longrightarrow:lY,LongRightArrow:uY,Longrightarrow:cY,looparrowleft:fY,looparrowright:dY,lopar:pY,Lopf:hY,lopf:vY,loplus:mY,lotimes:gY,lowast:yY,lowbar:bY,LowerLeftArrow:wY,LowerRightArrow:xY,loz:CY,lozenge:EY,lozf:TY,lpar:_Y,lparlt:SY,lrarr:kY,lrcorner:OY,lrhar:AY,lrhard:MY,lrm:LY,lrtri:DY,lsaquo:IY,lscr:RY,Lscr:NY,lsh:PY,Lsh:BY,lsim:FY,lsime:HY,lsimg:qY,lsqb:$Y,lsquo:UY,lsquor:jY,Lstrok:zY,lstrok:WY,ltcc:VY,ltcir:GY,lt:KY,LT:JY,Lt:YY,ltdot:XY,lthree:QY,ltimes:ZY,ltlarr:e7,ltquest:t7,ltri:r7,ltrie:n7,ltrif:i7,ltrPar:a7,lurdshar:o7,luruhar:s7,lvertneqq:l7,lvnE:u7,macr:c7,male:f7,malt:d7,maltese:p7,Map:"⤅",map:h7,mapsto:v7,mapstodown:m7,mapstoleft:g7,mapstoup:y7,marker:b7,mcomma:w7,Mcy:x7,mcy:C7,mdash:E7,mDDot:T7,measuredangle:_7,MediumSpace:S7,Mellintrf:k7,Mfr:O7,mfr:A7,mho:M7,micro:L7,midast:D7,midcir:I7,mid:R7,middot:N7,minusb:P7,minus:B7,minusd:F7,minusdu:H7,MinusPlus:q7,mlcp:$7,mldr:U7,mnplus:j7,models:z7,Mopf:W7,mopf:V7,mp:G7,mscr:K7,Mscr:J7,mstpos:Y7,Mu:X7,mu:Q7,multimap:Z7,mumap:eX,nabla:tX,Nacute:rX,nacute:nX,nang:iX,nap:aX,napE:oX,napid:sX,napos:lX,napprox:uX,natural:cX,naturals:fX,natur:dX,nbsp:pX,nbump:hX,nbumpe:vX,ncap:mX,Ncaron:gX,ncaron:yX,Ncedil:bX,ncedil:wX,ncong:xX,ncongdot:CX,ncup:EX,Ncy:TX,ncy:_X,ndash:SX,nearhk:kX,nearr:OX,neArr:AX,nearrow:MX,ne:LX,nedot:DX,NegativeMediumSpace:IX,NegativeThickSpace:RX,NegativeThinSpace:NX,NegativeVeryThinSpace:PX,nequiv:BX,nesear:FX,nesim:HX,NestedGreaterGreater:qX,NestedLessLess:$X,NewLine:UX,nexist:jX,nexists:zX,Nfr:WX,nfr:VX,ngE:GX,nge:KX,ngeq:JX,ngeqq:YX,ngeqslant:XX,nges:QX,nGg:ZX,ngsim:eQ,nGt:tQ,ngt:rQ,ngtr:nQ,nGtv:iQ,nharr:aQ,nhArr:oQ,nhpar:sQ,ni:lQ,nis:uQ,nisd:cQ,niv:fQ,NJcy:dQ,njcy:pQ,nlarr:hQ,nlArr:vQ,nldr:mQ,nlE:gQ,nle:yQ,nleftarrow:bQ,nLeftarrow:wQ,nleftrightarrow:xQ,nLeftrightarrow:CQ,nleq:EQ,nleqq:TQ,nleqslant:_Q,nles:SQ,nless:kQ,nLl:OQ,nlsim:AQ,nLt:MQ,nlt:LQ,nltri:DQ,nltrie:IQ,nLtv:RQ,nmid:NQ,NoBreak:PQ,NonBreakingSpace:BQ,nopf:FQ,Nopf:HQ,Not:qQ,not:$Q,NotCongruent:UQ,NotCupCap:jQ,NotDoubleVerticalBar:zQ,NotElement:WQ,NotEqual:VQ,NotEqualTilde:GQ,NotExists:KQ,NotGreater:JQ,NotGreaterEqual:YQ,NotGreaterFullEqual:XQ,NotGreaterGreater:QQ,NotGreaterLess:ZQ,NotGreaterSlantEqual:eZ,NotGreaterTilde:tZ,NotHumpDownHump:rZ,NotHumpEqual:nZ,notin:iZ,notindot:aZ,notinE:oZ,notinva:sZ,notinvb:lZ,notinvc:uZ,NotLeftTriangleBar:cZ,NotLeftTriangle:fZ,NotLeftTriangleEqual:dZ,NotLess:pZ,NotLessEqual:hZ,NotLessGreater:vZ,NotLessLess:mZ,NotLessSlantEqual:gZ,NotLessTilde:yZ,NotNestedGreaterGreater:bZ,NotNestedLessLess:wZ,notni:xZ,notniva:CZ,notnivb:EZ,notnivc:TZ,NotPrecedes:_Z,NotPrecedesEqual:SZ,NotPrecedesSlantEqual:kZ,NotReverseElement:OZ,NotRightTriangleBar:AZ,NotRightTriangle:MZ,NotRightTriangleEqual:LZ,NotSquareSubset:DZ,NotSquareSubsetEqual:IZ,NotSquareSuperset:RZ,NotSquareSupersetEqual:NZ,NotSubset:PZ,NotSubsetEqual:BZ,NotSucceeds:FZ,NotSucceedsEqual:HZ,NotSucceedsSlantEqual:qZ,NotSucceedsTilde:$Z,NotSuperset:UZ,NotSupersetEqual:jZ,NotTilde:zZ,NotTildeEqual:WZ,NotTildeFullEqual:VZ,NotTildeTilde:GZ,NotVerticalBar:KZ,nparallel:JZ,npar:YZ,nparsl:XZ,npart:QZ,npolint:ZZ,npr:eee,nprcue:tee,nprec:ree,npreceq:nee,npre:iee,nrarrc:aee,nrarr:oee,nrArr:see,nrarrw:lee,nrightarrow:uee,nRightarrow:cee,nrtri:fee,nrtrie:dee,nsc:pee,nsccue:hee,nsce:vee,Nscr:mee,nscr:gee,nshortmid:yee,nshortparallel:bee,nsim:wee,nsime:xee,nsimeq:Cee,nsmid:Eee,nspar:Tee,nsqsube:_ee,nsqsupe:See,nsub:kee,nsubE:Oee,nsube:Aee,nsubset:Mee,nsubseteq:Lee,nsub
74seteqq:Dee,nsucc:Iee,nsucceq:Ree,nsup:Nee,nsupE:Pee,nsupe:Bee,nsupset:Fee,nsupseteq:Hee,nsupseteqq:qee,ntgl:$ee,Ntilde:Uee,ntilde:jee,ntlg:zee,ntriangleleft:Wee,ntrianglelefteq:Vee,ntriangleright:Gee,ntrianglerighteq:Kee,Nu:Jee,nu:Yee,num:Xee,numero:Qee,numsp:Zee,nvap:ete,nvdash:tte,nvDash:rte,nVdash:nte,nVDash:ite,nvge:ate,nvgt:ote,nvHarr:ste,nvinfin:lte,nvlArr:ute,nvle:cte,nvlt:fte,nvltrie:dte,nvrArr:pte,nvrtrie:hte,nvsim:vte,nwarhk:mte,nwarr:gte,nwArr:yte,nwarrow:bte,nwnear:wte,Oacute:xte,oacute:Cte,oast:Ete,Ocirc:Tte,ocirc:_te,ocir:Ste,Ocy:kte,ocy:Ote,odash:Ate,Odblac:Mte,odblac:Lte,odiv:Dte,odot:Ite,odsold:Rte,OElig:Nte,oelig:Pte,ofcir:Bte,Ofr:Fte,ofr:Hte,ogon:qte,Ograve:$te,ograve:Ute,ogt:jte,ohbar:zte,ohm:Wte,oint:Vte,olarr:Gte,olcir:Kte,olcross:Jte,oline:Yte,olt:Xte,Omacr:Qte,omacr:Zte,Omega:ere,omega:tre,Omicron:rre,omicron:nre,omid:ire,ominus:are,Oopf:ore,oopf:sre,opar:lre,OpenCurlyDoubleQuote:ure,OpenCurlyQuote:cre,operp:fre,oplus:dre,orarr:pre,Or:hre,or:vre,ord:mre,order:gre,orderof:yre,ordf:bre,ordm:wre,origof:xre,oror:Cre,orslope:Ere,orv:Tre,oS:_re,Oscr:Sre,oscr:kre,Oslash:Ore,oslash:Are,osol:Mre,Otilde:Lre,otilde:Dre,otimesas:Ire,Otimes:Rre,otimes:Nre,Ouml:Pre,ouml:Bre,ovbar:Fre,OverBar:Hre,OverBrace:qre,OverBracket:$re,OverParenthesis:Ure,para:jre,parallel:zre,par:Wre,parsim:Vre,parsl:Gre,part:Kre,PartialD:Jre,Pcy:Yre,pcy:Xre,percnt:Qre,period:Zre,permil:ene,perp:tne,pertenk:rne,Pfr:nne,pfr:ine,Phi:ane,phi:one,phiv:sne,phmmat:lne,phone:une,Pi:cne,pi:fne,pitchfork:dne,piv:pne,planck:hne,planckh:vne,plankv:mne,plusacir:gne,plusb:yne,pluscir:bne,plus:wne,plusdo:xne,plusdu:Cne,pluse:Ene,PlusMinus:Tne,plusmn:_ne,plussim:Sne,plustwo:kne,pm:One,Poincareplane:Ane,pointint:Mne,popf:Lne,Popf:Dne,pound:Ine,prap:Rne,Pr:Nne,pr:Pne,prcue:Bne,precapprox:Fne,prec:Hne,preccurlyeq:qne,Precedes:$ne,PrecedesEqual:Une,PrecedesSlantEqual:jne,PrecedesTilde:zne,preceq:Wne,precnapprox:Vne,precneqq:Gne,precnsim:Kne,pre:Jne,prE:Yne,precsim:Xne,prime:Qne,Prime:Zne,primes:eie,prnap:tie,prnE:rie,prnsim:nie,prod:iie,Product:aie,profalar:oie,profline:sie,profsurf:lie,prop:uie,Proportional:cie,Proportion:fie,propto:die,prsim:pie,prurel:hie,Pscr:vie,pscr:mie,Psi:gie,psi:yie,puncsp:bie,Qfr:wie,qfr:xie,qint:Cie,qopf:Eie,Qopf:Tie,qprime:_ie,Qscr:Sie,qscr:kie,quaternions:Oie,quatint:Aie,quest:Mie,questeq:Lie,quot:Die,QUOT:Iie,rAarr:Rie,race:Nie,Racute:Pie,racute:Bie,radic:Fie,raemptyv:Hie,rang:qie,Rang:$ie,rangd:Uie,range:jie,rangle:zie,raquo:Wie,rarrap:Vie,rarrb:Gie,rarrbfs:Kie,rarrc:Jie,rarr:Yie,Rarr:Xie,rArr:Qie,rarrfs:Zie,rarrhk:eae,rarrlp:tae,rarrpl:rae,rarrsim:nae,Rarrtl:iae,rarrtl:aae,rarrw:oae,ratail:sae,rAtail:lae,ratio:uae,rationals:cae,rbarr:fae,rBarr:dae,RBarr:pae,rbbrk:hae,rbrace:vae,rbrack:mae,rbrke:gae,rbrksld:yae,rbrkslu:bae,Rcaron:wae,rcaron:xae,Rcedil:Cae,rcedil:Eae,rceil:Tae,rcub:_ae,Rcy:Sae,rcy:kae,rdca:Oae,rdldhar:Aae,rdquo:Mae,rdquor:Lae,rdsh:Dae,real:Iae,realine:Rae,realpart:Nae,reals:Pae,Re:Bae,rect:Fae,reg:Hae,REG:qae,ReverseElement:$ae,ReverseEquilibrium:Uae,ReverseUpEquilibrium:jae,rfisht:zae,rfloor:Wae,rfr:Vae,Rfr:Gae,rHar:Kae,rhard:Jae,rharu:Yae,rharul:Xae,Rho:Qae,rho:Zae,rhov:eoe,RightAngleBracket:toe,RightArrowBar:roe,rightarrow:noe,RightArrow:ioe,Rightarrow:aoe,RightArrowLeftArrow:ooe,rightarrowtail:soe,RightCeiling:loe,RightDoubleBracket:uoe,RightDownTeeVector:coe,RightDownVectorBar:foe,RightDownVector:doe,RightFloor:poe,rightharpoondown:hoe,rightharpoonup:voe,rightleftarrows:moe,rightleftharpoons:goe,rightrightarrows:yoe,rightsquigarrow:boe,RightTeeArrow:woe,RightTee:xoe,RightTeeVector:Coe,rightthreetimes:Eoe,RightTriangleBar:Toe,RightTriangle:_oe,RightTriangleEqual:Soe,RightUpDownVector:koe,RightUpTeeVector:Ooe,RightUpVectorBar:Aoe,RightUpVector:Moe,RightVectorBar:Loe,RightVector:Doe,ring:Ioe,risingdotseq:Roe,rlarr:Noe,rlhar:Poe,rlm:Boe,rmoustache:Foe,rmoust:Hoe,rnmid:qoe,roang:$oe,roarr:Uoe,robrk:joe,ropar:zoe,ropf:Woe,Ropf:Voe,roplus:Goe,rotimes:Koe,RoundImplies:Joe,rpar:Yoe,rpargt:Xoe,rppolint:Qoe,rrarr:Zoe,Rrightarrow:ese,rsaquo:tse,rscr:rse,Rscr:nse,rsh:ise,Rsh:ase,rsqb:ose,rsquo:sse,rsquor:lse,rthree:use,rtimes:cse,rtri:fse,rtrie:dse,rtrif:pse,rtriltri:hse,RuleDelayed:vse,ruluhar:mse,rx:gse,Sacute:yse,s
74acute:bse,sbquo:wse,scap:xse,Scaron:Cse,scaron:Ese,Sc:Tse,sc:_se,sccue:Sse,sce:kse,scE:Ose,Scedil:Ase,scedil:Mse,Scirc:Lse,scirc:Dse,scnap:Ise,scnE:Rse,scnsim:Nse,scpolint:Pse,scsim:Bse,Scy:Fse,scy:Hse,sdotb:qse,sdot:$se,sdote:Use,searhk:jse,searr:zse,seArr:Wse,searrow:Vse,sect:Gse,semi:Kse,seswar:Jse,setminus:Yse,setmn:Xse,sext:Qse,Sfr:Zse,sfr:ele,sfrown:tle,sharp:rle,SHCHcy:nle,shchcy:ile,SHcy:ale,shcy:ole,ShortDownArrow:sle,ShortLeftArrow:lle,shortmid:ule,shortparallel:cle,ShortRightArrow:fle,ShortUpArrow:dle,shy:ple,Sigma:hle,sigma:vle,sigmaf:mle,sigmav:gle,sim:yle,simdot:ble,sime:wle,simeq:xle,simg:Cle,simgE:Ele,siml:Tle,simlE:_le,simne:Sle,simplus:kle,simrarr:Ole,slarr:Ale,SmallCircle:Mle,smallsetminus:Lle,smashp:Dle,smeparsl:Ile,smid:Rle,smile:Nle,smt:Ple,smte:Ble,smtes:Fle,SOFTcy:Hle,softcy:qle,solbar:$le,solb:Ule,sol:jle,Sopf:zle,sopf:Wle,spades:Vle,spadesuit:Gle,spar:Kle,sqcap:Jle,sqcaps:Yle,sqcup:Xle,sqcups:Qle,Sqrt:Zle,sqsub:eue,sqsube:tue,sqsubset:rue,sqsubseteq:nue,sqsup:iue,sqsupe:aue,sqsupset:oue,sqsupseteq:sue,square:lue,Square:uue,SquareIntersection:cue,SquareSubset:fue,SquareSubsetEqual:due,SquareSuperset:pue,SquareSupersetEqual:hue,SquareUnion:vue,squarf:mue,squ:gue,squf:yue,srarr:bue,Sscr:wue,sscr:xue,ssetmn:Cue,ssmile:Eue,sstarf:Tue,Star:_ue,star:Sue,starf:kue,straightepsilon:Oue,straightphi:Aue,strns:Mue,sub:Lue,Sub:Due,subdot:Iue,subE:Rue,sube:Nue,subedot:Pue,submult:Bue,subnE:Fue,subne:Hue,subplus:que,subrarr:$ue,subset:Uue,Subset:jue,subseteq:zue,subseteqq:Wue,SubsetEqual:Vue,subsetneq:Gue,subsetneqq:Kue,subsim:Jue,subsub:Yue,subsup:Xue,succapprox:Que,succ:Zue,succcurlyeq:ece,Succeeds:tce,SucceedsEqual:rce,SucceedsSlantEqual:nce,SucceedsTilde:ice,succeq:ace,succnapprox:oce,succneqq:sce,succnsim:lce,succsim:uce,SuchThat:cce,sum:fce,Sum:dce,sung:pce,sup1:hce,sup2:vce,sup3:mce,sup:gce,Sup:yce,supdot:bce,supdsub:wce,supE:xce,supe:Cce,supedot:Ece,Superset:Tce,SupersetEqual:_ce,suphsol:Sce,suphsub:kce,suplarr:Oce,supmult:Ace,supnE:Mce,supne:Lce,supplus:Dce,supset:Ice,Supset:Rce,supseteq:Nce,supseteqq:Pce,supsetneq:Bce,supsetneqq:Fce,supsim:Hce,supsub:qce,supsup:$ce,swarhk:Uce,swarr:jce,swArr:zce,swarrow:Wce,swnwar:Vce,szlig:Gce,Tab:Kce,target:Jce,Tau:Yce,tau:Xce,tbrk:Qce,Tcaron:Zce,tcaron:efe,Tcedil:tfe,tcedil:rfe,Tcy:nfe,tcy:ife,tdot:afe,telrec:ofe,Tfr:sfe,tfr:lfe,there4:ufe,therefore:cfe,Therefore:ffe,Theta:dfe,theta:pfe,thetasym:hfe,thetav:vfe,thickapprox:mfe,thicksim:gfe,ThickSpace:yfe,ThinSpace:bfe,thinsp:wfe,thkap:xfe,thksim:Cfe,THORN:Efe,thorn:Tfe,tilde:_fe,Tilde:Sfe,TildeEqual:kfe,TildeFullEqual:Ofe,TildeTilde:Afe,timesbar:Mfe,timesb:Lfe,times:Dfe,timesd:Ife,tint:Rfe,toea:Nfe,topbot:Pfe,topcir:Bfe,top:Ffe,Topf:Hfe,topf:qfe,topfork:$fe,tosa:Ufe,tprime:jfe,trade:zfe,TRADE:Wfe,triangle:Vfe,triangledown:Gfe,triangleleft:Kfe,trianglelefteq:Jfe,triangleq:Yfe,triangleright:Xfe,trianglerighteq:Qfe,tridot:Zfe,trie:ede,triminus:tde,TripleDot:rde,triplus:nde,trisb:ide,tritime:ade,trpezium:ode,Tscr:sde,tscr:lde,TScy:ude,tscy:cde,TSHcy:fde,tshcy:dde,Tstrok:pde,tstrok:hde,twixt:vde,twoheadleftarrow:mde,twoheadrightarrow:gde,Uacute:yde,uacute:bde,uarr:wde,Uarr:xde,uArr:Cde,Uarrocir:Ede,Ubrcy:Tde,ubrcy:_de,Ubreve:Sde,ubreve:kde,Ucirc:Ode,ucirc:Ade,Ucy:Mde,ucy:Lde,udarr:Dde,Udblac:Ide,udblac:Rde,udhar:Nde,ufisht:Pde,Ufr:Bde,ufr:Fde,Ugrave:Hde,ugrave:qde,uHar:$de,uharl:Ude,uharr:jde,uhblk:zde,ulcorn:Wde,ulcorner:Vde,ulcrop:Gde,ultri:Kde,Umacr:Jde,umacr:Yde,uml:Xde,UnderBar:Qde,UnderBrace:Zde,UnderBracket:epe,UnderParenthesis:tpe,Union:rpe,UnionPlus:npe,Uogon:ipe,uogon:ape,Uopf:ope,uopf:spe,UpArrowBar:lpe,uparrow:upe,UpArrow:cpe,Uparrow:fpe,UpArrowDownArrow:dpe,updownarrow:ppe,UpDownArrow:hpe,Updownarrow:vpe,UpEquilibrium:mpe,upharpoonleft:gpe,upharpoonright:ype,uplus:bpe,UpperLeftArrow:wpe,UpperRightArrow:xpe,upsi:Cpe,Upsi:Epe,upsih:Tpe,Upsilon:_pe,upsilon:Spe,UpTeeArrow:kpe,UpTee:Ope,upuparrows:Ape,urcorn:Mpe,urcorner:Lpe,urcrop:Dpe,Uring:Ipe,uring:Rpe,urtri:Npe,Uscr:Ppe,uscr:Bpe,utdot:Fpe,Utilde:Hpe,utilde:qpe,utri:$pe,utrif:Upe,uuarr:jpe,Uuml:zpe,uuml:Wpe,uwangle:Vpe,vangrt:Gpe,varepsilon:Kpe,varkappa:Jpe,varnothing:Ype,varphi:Xpe,varpi:Qpe,varpropto:Zpe,varr:ehe,vArr:the,varrho:rhe,varsigma:nhe,varsubsetneq:ihe,varsubsetneqq:ahe,varsupsetneq:ohe,varsupsetneqq:she,vartheta:lhe,vartriangleleft:uhe,vartriangleright:che,vBar:fhe,Vbar:dhe,vBarv:phe,Vcy:hhe,vcy:vhe,vdash:mhe,vDash:ghe,Vdash:yhe,VDash:bhe,Vdashl:whe,veebar:xhe,vee:Che,Vee:Ehe,veeeq:The,vellip:_he,verbar:She,Verbar:khe,vert:Ohe,Vert:Ahe,VerticalBar:Mhe,VerticalLine:Lhe,VerticalSeparator:Dhe,VerticalTilde:Ihe,VeryThinSpace:Rhe,Vfr:Nhe,vfr:Phe,vltri:Bhe,vnsub:Fhe,vnsup:Hhe,Vopf:qhe,vopf:$he,vprop:Uhe,vrtri:jhe,Vscr:zhe,vscr:Whe,vsubnE:Vhe,vsubne:Ghe,vsupnE:Khe,vsupne:Jhe,Vvdash:Yhe,vzigzag:Xhe,Wcirc:Qhe,wcirc:Zhe,wedbar:eve,wedge:tve,Wedge:rve,wedgeq:nve,weierp:ive,Wfr:ave,wfr:ove,Wopf:sve,wopf:lve,wp:uve,wr:cve,wreath:fve,Wscr:dve,wscr:pve,xcap:hve,xcirc:vve,xcup:mve,xdtri:gve,Xfr:yve,xfr:bve,xharr:wve,xhArr:xve,Xi:Cve,xi:Eve,xlarr:Tve,xlArr:_ve,xmap:Sve,xnis:kve,xodot:Ove,Xopf:Ave,xopf:Mve,xoplus:Lve,xotime:Dve,xrarr:Ive,xrArr:Rve,Xscr:Nve,xscr:Pve,xsqcup:Bve,xuplus:Fve,xutri:Hve,xvee:qve,xwedge:$ve,Yacute:Uve,yacute:jve,YAcy:zve,yacy:Wve,Ycirc:Vve,ycirc:Gve,Ycy:Kve,ycy:Jve,yen:Yve,Yfr:Xve,yfr:Qve,YIcy:Zve,yicy:eme,Yopf:tme,yopf:rme,Yscr:nme,yscr:ime,YUcy:ame,yucy:ome,yuml:sme,Yuml:lme,Zacute:ume,zacute:cme,Zcaron:fme,zcaron:dme,Zcy:pme,zcy:hme,Zdot:vme,zdot:mme,zeetrf:gme,ZeroWidthSpace:yme,Zeta:bme,zeta:wme,zfr:xme,Zfr:Cme,ZHcy:Eme,zhcy:Tme,zigrarr:_me,zopf:Sme,Zopf:kme,Zscr:Ome,zscr:Ame,zwj:Mme,zwnj:Lme},Dme="Á",Ime="á",Rme="Â",Nme="â",Pme="´",Bme="Æ",Fme="æ",Hme="À",qme="à",$me="&",Ume="&",jme="Å",zme="å",Wme="Ã",Vme="ã",Gme="Ä",Kme="ä",Jme="¦",Yme="Ç",Xme="ç",Qme="¸",Zme="¢",ege="©",tge="©",rge="¤",nge="°",ige="÷",age="É",oge="é",sge="Ê",lge="ê",uge="È",cge="è",fge="Ð",dge="ð",pge="Ë",hge="ë",vge="½",mge="¼",gge="¾",yge=">",bge=">",wge="Í",xge="í",Cge="Î",Ege="î",Tge="¡",_ge="Ì",Sge="ì",kge="¿",Oge="Ï",Age="ï",Mge="«",Lge="<",Dge="<",Ige="¯",Rge="µ",Nge="·",Pge=" ",Bge="¬",Fge="Ñ",Hge="ñ",qge="Ó",$ge="ó",Uge="Ô",jge="ô",zge="Ò",Wge="ò",Vge="ª",Gge="º",Kge="Ø",Jge="ø",Yge="Õ",Xge="õ",Qge="Ö",Zge="ö",eye="¶",tye="±",rye="£",nye='"',iye='"',aye="»",oye="®",sye="®",lye="§",uye="­",cye="¹",fye="²",dye="³",pye="ß",hye="Þ",vye="þ",mye="×",gye="Ú",yye="ú",bye="Û",wye="û",xye="Ù",Cye="ù",Eye="¨",Tye="Ü",_ye="ü",Sye="Ý",kye="ý",Oye="¥",Aye="ÿ",Mye={Aacute:Dme,aacute:Ime,Acirc:Rme,acirc:Nme,acute:Pme,AElig:Bme,aelig:Fme,Agrave:Hme,agrave:qme,amp:$me,AMP:Ume,Aring:jme,aring:zme,Atilde:Wme,atilde:Vme,Auml:Gme,auml:Kme,brvbar:Jme,Ccedil
vendor: 69,012 bytes, lines 74-88
74:Yme,ccedil:Xme,cedil:Qme,cent:Zme,copy:ege,COPY:tge,curren:rge,deg:nge,divide:ige,Eacute:age,eacute:oge,Ecirc:sge,ecirc:lge,Egrave:uge,egrave:cge,ETH:fge,eth:dge,Euml:pge,euml:hge,frac12:vge,frac14:mge,frac34:gge,gt:yge,GT:bge,Iacute:wge,iacute:xge,Icirc:Cge,icirc:Ege,iexcl:Tge,Igrave:_ge,igrave:Sge,iquest:kge,Iuml:Oge,iuml:Age,laquo:Mge,lt:Lge,LT:Dge,macr:Ige,micro:Rge,middot:Nge,nbsp:Pge,not:Bge,Ntilde:Fge,ntilde:Hge,Oacute:qge,oacute:$ge,Ocirc:Uge,ocirc:jge,Ograve:zge,ograve:Wge,ordf:Vge,ordm:Gge,Oslash:Kge,oslash:Jge,Otilde:Yge,otilde:Xge,Ouml:Qge,ouml:Zge,para:eye,plusmn:tye,pound:rye,quot:nye,QUOT:iye,raquo:aye,reg:oye,REG:sye,sect:lye,shy:uye,sup1:cye,sup2:fye,sup3:dye,szlig:pye,THORN:hye,thorn:vye,times:mye,Uacute:gye,uacute:yye,Ucirc:bye,ucirc:wye,Ugrave:xye,ugrave:Cye,uml:Eye,Uuml:Tye,uuml:_ye,Yacute:Sye,yacute:kye,yen:Oye,yuml:Aye},Lye="&",Dye="'",Iye=">",Rye="<",Nye='"',x1={amp:Lye,apos:Dye,gt:Iye,lt:Rye,quot:Nye},Ey={},Pye={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},Bye=Sc&&Sc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ey,"__esModule",{value:!0});var Y0=Bye(Pye),Fye=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function Hye(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Y0.default&&(t=Y0.default[t]),Fye(t))}Ey.default=Hye;var Kp=Sc&&Sc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ws,"__esModule",{value:!0});ws.decodeHTML=ws.decodeHTMLStrict=ws.decodeXML=void 0;var Gm=Kp(w1),qye=Kp(Mye),$ye=Kp(x1),X0=Kp(Ey),Uye=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ws.decodeXML=C1($ye.default);ws.decodeHTMLStrict=C1(Gm.default);function C1(t){var e=E1(t);return function(r){return String(r).replace(Uye,e)}}var Q0=function(t,e){return t<e?1:-1};ws.decodeHTML=function(){for(var t=Object.keys(qye.default).sort(Q0),e=Object.keys(Gm.default).sort(Q0),r=0,n=0;r<e.length;r++)t[n]===e[r]?(e[r]+=";?",n++):e[r]+=";";var i=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=E1(Gm.default);function o(s){return s.substr(-1)!==";"&&(s+=";"),a(s)}return function(s){return String(s).replace(i,o)}}();function E1(t){return function(r){if(r.charAt(1)==="#"){var n=r.charAt(2);return n==="X"||n==="x"?X0.default(parseInt(r.substr(3),16)):X0.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var ma={},T1=Sc&&Sc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ma,"__esModule",{value:!0});ma.escapeUTF8=ma.escape=ma.encodeNonAsciiHTML=ma.encodeHTML=ma.encodeXML=void 0;var jye=T1(x1),_1=k1(jye.default),S1=O1(_1);ma.encodeXML=L1(_1);var zye=T1(w1),Ty=k1(zye.default),Wye=O1(Ty);ma.encodeHTML=Gye(Ty,Wye);ma.encodeNonAsciiHTML=L1(Ty);function k1(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function O1(t){for(var e=[],r=[],n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];a.length===1?e.push("\\"+a):r.push(a)}e.sort();for(var o=0;o<e.length-1;o++){for(var s=o;s<e.length-1&&e[s].charCodeAt(1)+1===e[s+1].charCodeAt(1);)s+=1;var u=1+s-o;u<3||e.splice(o,u,e[o]+"-"+e[s])}return r.unshift("["+e.join("")+"]"),new RegExp(r.join("|"),"g")}var A1=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Vye=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function Jp(t){return"&#x"+(t.length>1?Vye(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Gye(t,e){return function(r){return r.replace(e,function(n){return t[n]}).replace(A1,Jp)}}var M1=new RegExp(S1.source+"|"+A1.source,"g");function Kye(t){return t.replace(M1,Jp)}ma.escape=Kye;function Jye(t){return t.replace(S1,Jp)}ma.escapeUTF8=Jye;function L1(t){return function(e){return e.replace(M1,function(r){return t[r]||Jp(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=ws,r=ma;function n(u,f){return(!f||f<=0?e.decodeXML:e.decodeHTML)(u)}t.decode=n;function i(u,f){return(!f||f<=0?e.decodeXML:e.decodeHTMLStrict)(u)}t.decodeStrict=i;function a(u,f){return(!f||f<=0?r.encodeXML:r.encodeHTML)(u)}t.encode=a;var o=ma;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=ws;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})})(Cy);var D1="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",Yye=92,Xye=/[\\&]/,_y="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",Qye=new RegExp("\\\\"+_y+"|"+D1,"gi"),Zye='[&<>"]',Z0=new RegExp(Zye,"g"),ebe=function(t){return t.charCodeAt(0)===Yye?t.charAt(1):Cy.decodeHTML(t)};function _f(t){return Xye.test(t)?t.replace(Qye,ebe):t}function Sd(t){try{return hH(t)}catch{return t}}function tbe(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return t}}function oc(t){return Z0.test(t)?t.replace(Z0,tbe):t}function Km(t,e){for(var r=[],n=0;n<e;n++)r.push(t);return r.join("")}function ex(t){return t?!/[^ \t]+/.test(t):!0}var rbe=function(){function t(e){this.current=e,this.root=e,this.entering=!0}return t.prototype.next=function(){var e=this.current,r=this.entering;if(e===null)return null;var n=Sy(e);return r&&n?e.firstChild?(this.current=e.firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:e.next===null?(this.current=e.parent,this.entering=!1):(this.current=e.next,this.entering=!0),{entering:r,node:e}},t.prototype.resumeAt=function(e,r){this.current=e,this.entering=r===!0},t}();function Sy(t){switch(t.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}var nbe=1,Yp={};function ibe(t){return Yp[t]}function Jm(t){delete Yp[t]}function abe(){Yp={}}var Kf=function(){function t(e,r){this.parent=null,this.prev=null,this.next=null,this.firstChild=null,this.lastChild=null,this.literal=null,e==="document"?this.id=-1:this.id=nbe++,this.type=e,this.sourcepos=r,Yp[this.id]=this}return t.prototype.isContainer=function(){return Sy(this)},t.prototype.unlink=function(){this.prev?this.prev.next=this.next:this.parent&&(this.parent.firstChild=this.next),this.next?this.next.prev=this.prev:this.parent&&(this.parent.lastChild=this.prev),this.parent=null,this.next=null,this.prev=null},t.prototype.replaceWith=function(e){this.insertBefore(e),this.unlink()},t.prototype.insertAfter=function(e){e.unlink(),e.next=this.next,e.next&&(e.next.prev=e),e.prev=this,this.next=e,this.parent&&(e.parent=this.parent,e.next||(e.parent.lastChild=e))},t.prototype.insertBefore=function(e){e.unlink(),e.prev=this.prev,e.prev&&(e.prev.next=e),e.next=this,this.prev=e,e.parent=this.parent,e.prev||(e.parent.firstChild=e)},t.prototype.appendChild=function(e){e.unlink(),e.parent=this,this.lastChild?(this.lastChild.next=e,e.prev=this.lastChild,this.lastChild=e):(this.firstChild=e,this.lastChild=e)},t.prototype.prependChild=function(e){e.unlink(),e.parent=this,this.firstChild?(this.firstChild.prev=e,e.next=this.firstChild,this.firstChild=e):(this.firstChild=e,this.lastChild=e)},t.prototype.walker=function(){return new rbe(this)},t}(),_s=function(t){za(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.open=!0,i.lineOffsets=null,i.stringContent=null,i.lastLineBlank=!1,i.lastLineChecked=!1,i.type=r,i}return e}(Kf),obe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.listData=null,r}return e}(_s),sbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.level=0,r.headingType="atx",r}return e}(_s),lbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.isFenced=!1,r.fenceChar=null,r.fenceLength=0,r.fenceOffset=-1,r.info=null,r.infoPadding=0,r}return e}(_s),ube=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.columns=[],r}return e}(_s),cbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.startIdx=0,r.endIdx=0,r.paddingLeft=0,r.paddingRight=0,r.ignored=!1,r}return e}(_s),fbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="",r.dest="",r.label="",r}return e}(_s),dbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.syntaxLength=0,r.offset=-1,r.info="",r}return e}(_s),pbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.htmlBlockType=-1,r}return e}(_s),hbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.destination=null,r.title=null,r.extendedAutolink=!1,r}return e}(Kf),vbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.tickCount=0,r}return e}(Kf),mbe=function(t){za(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.info="",r}return e}(Kf);function bn(t,e){switch(t){case"heading":return new sbe(t,e);case"list":case"item":return new obe(t,e);case"link":case"image":return new hbe(t,e);case"codeBlock":return new lbe(t,e);case"htmlBlock":return new pbe(t,e);case"table":return new ube(t,e);case"tableCell":return new cbe(t,e);case"document":case"paragraph":case"blockQuote":case"thematicBreak":case"tableRow":case"tableBody":case"tableHead":case"frontMatter":return new _s(t,e);case"code":return new vbe(t,e);case"refDef":return new fbe(t,e);case"customBlock":return new dbe(t,e);case"customInline":return new mbe(t,e);default:return new Kf(t,e)}}function I1(t){return t.type==="codeBlock"}function gbe(t){return t.type==="htmlBlock"}function ybe(t){return t.type==="heading"}function tx(t){return t.type==="list"}function bbe(t){return t.type==="table"}function Xu(t){return t.type==="refDef"}function R1(t){return t.type==="customBlock"}function wbe(t){return t.type==="customInline"}function Nn(t,e){var r=bn("text",e);return r.literal=t,r}var N1="[A-Za-z][A-Za-z0-9-]*",xbe="[a-zA-Z_:][a-zA-Z0-9:._-]*",Cbe="[^\"'=<>`\\x00-\\x20]+",Ebe="'[^']*'",Tbe='"[^"]*"',_be="(?:"+Cbe+"|"+Ebe+"|"+Tbe+")",Sbe="(?:\\s*=\\s*"+_be+")",kbe="(?:\\s+"+xbe+Sbe+"?)",P1="<"+N1+kbe+"*\\s*/?>",B1="</"+N1+"\\s*[>]",Obe="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Abe="[<][?].*?[?][>]",Mbe="<![A-Z]+\\s+[^>]*>",Lbe="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Dbe="(?:"+P1+"|"+B1+"|"+Obe+"|"+Abe+"|"+Mbe+"|"+Lbe+")",Ibe=new RegExp("^"+Dbe,"i");/*! http://mths.be/fromcodepoint v0.2.1 by @mathias */var Ym;if(String.fromCodePoint)Ym=function(t){try{return String.fromCodePoint(t)}catch(e){if(e instanceof RangeError)return"�";throw e}};else{var Rbe=String.fromCharCode,Nbe=Math.floor;Ym=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=16384,n=[],i,a,o=-1,s=t.length;if(!s)return"";for(var u="";++o<s;){var f=Number(t[o]);if(!isFinite(f)||f<0||f>1114111||Nbe(f)!==f)return"�";f<=65535?n.push(f):(f-=65536,i=(f>>10)+55296,a=f%1024+56320,n.push(i,a)),(o+1===s||n.length>r)&&(u+=Rbe.apply(void 0,n),n.length=0)}return u}}var Tv=Ym,Pbe="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",Bbe="[^<\\s]*[^<?!.,:*_?~\\s]",Fbe="[\\w.+-]+@(?:[\\w-]+\\.)+[\\w-]+";function Hbe(t){var e=/\)+$/.exec(t);if(e){for(var r=0,n=0,i=t;n<i.length;n++){var a=i[n];a==="("?r<0?r=1:r+=1:a===")"&&(r-=1)}if(r<0){var o=Math.min(-r,e[0].length);return t.substring(0,t.length-o)}}return t}function qbe(t){return t.replace(/&[A-Za-z0-9]+;$/,"")}function $be(t){for(var e=new RegExp(Fbe,"g"),r=[],n;n=e.exec(t);){var i=n[0];/[_-]+$/.test(i)||r.push({text:i,range:[n.index,n.index+i.length-1],url:"mailto:"+i})}return r}function Ube(t){for(var e=new RegExp("(www|https?://)."+Pbe+Bbe,"g"),r=[],n;n=e.exec(t);){var i=qbe(Hbe(n[0])),a=n[1]==="www"?"http://":"";r.push({text:i,range:[n.index,n.index+i.length-1],url:""+a+i})}return r}function jbe(t){return Vm(Vm([],Ube(t)),$be(t)).sort(function(e,r){return e.range[0]-r.range[0]})}function zbe(t,e){typeof e=="boolean"&&(e=jbe);for(var r,n=function(){var i=r.entering,a=r.node;if(i&&a.type==="text"&&a.parent.type!=="link"){var o=a.literal,s=e(o);if(!s||!s.length)return"continue";for(var u=0,f=a.sourcepos[0],d=f[0],v=f[1],m=function(ee,X){return[[d,v+ee],[d,v+X]]},b=[],x=0,T=s;x<T.length;x++){var S=T[x],M=S.range,L=S.url,P=S.text;M[0]>u&&b.push(Nn(o.substring(u,M[0]),m(u,M[0]-1)));var A=bn("link",m.apply(void 0,M));A.appendChild(Nn(P,m.apply(void 0,M))),A.destination=L,A.extendedAutolink=!0,b.push(A),u=M[1]+1}u<o.length&&b.push(Nn(o.substring(u),m(u,o.length-1)));for(var H=0,W=b;H<W.length;H++){var J=W[H];a.insertBefore(J)}a.unlink()}};r=t.next();)n()}function yp(t){return t[t.length-1]}function rx(t){return t.slice(1,t.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()}function kd(t,e){Object.keys(t).forEach(function(r){e(r,t[r])})}function Wbe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=ei({},t);return e.forEach(function(i){delete n[i]}),n}function Qu(t){return!Object.keys(t).length}function Vbe(t){Object.keys(t).forEach(function(e){delete t[e]})}var Xm=10,_v=42,Od=95,Gbe=96,nx=91,Kbe=93,Ad=126,ix=60,Jbe=33,ax=92,Ybe=38,ox=40,Sv=41,Xbe=58,Jl=39,Yl=34,Xl=36,kv="\\\\"+_y,sx=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),Qbe=new RegExp('^(?:"('+kv+'|[^"\\x00])*"|'+("'("+kv+"|[^'\\x00])*'")+"|"+("\\(("+kv+"|[^()\\x00])*\\))")),Zbe=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,lx=new RegExp("^"+_y),ewe=new RegExp("^"+D1,"i"),twe=/`+/,rwe=/^`+/,nwe=/\.\.\./g,iwe=/--+/g,awe=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,owe=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,swe=/^ *(?:\n *)?/,Ov=/^[ \t\n\x0b\x0c\x0d]/,ux=/^\s/,lwe=/ *$/,uwe=/^ */,cx=/^ *(?:\n|$)/,cwe=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,fwe=/^[^\n`\[\]\\!<&*_'"~$]+/m,dwe=function(){function t(e){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=e}return t.prototype.sourcepos=function(e,r){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],i=this.lineStartNum+this.lineIdx,a=[i,e+n];return typeof r=="number"?[a,[i,r+n]]:a},t.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},t.prototype.match=function(e){var r=e.exec(this.subject.slice(this.pos));return r===null?null:(this.pos+=r.index+r[0].length,r[0])},t.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},t.prototype.spnl=function(){return this.match(swe),!0},t.prototype.parseBackticks=function(e){var r=this.pos+1,n=this.match(rwe);if(n===null)return!1;for(var i=this.pos,a;(a=this.match(twe))!==null;)if(a===n){var o=this.subject.slice(i,this.pos-n.length),s=this.sourcepos(r,this.pos),u=o.split(`
75`);if(u.length>1){var f=yp(u);this.lineIdx+=u.length-1,this.linePosOffset=-(this.pos-f.length-n.length),s[1]=this.sourcepos(this.pos),o=u.join(" ")}var d=bn("code",s);return o.length>0&&o.match(/[^ ]/)!==null&&o[0]==" "&&o[o.length-1]==" "?d.literal=o.slice(1,o.length-1):d.literal=o,d.tickCount=n.length,e.appendChild(d),!0}return this.pos=i,e.appendChild(Nn(n,this.sourcepos(r,this.pos-1))),!0},t.prototype.parseBackslash=function(e){var r=this.subject,n;this.pos+=1;var i=this.pos;return this.peek()===Xm?(this.pos+=1,n=bn("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(n),this.nextLine()):lx.test(r.charAt(this.pos))?(e.appendChild(Nn(r.charAt(this.pos),this.sourcepos(i,this.pos))),this.pos+=1):e.appendChild(Nn("\\",this.sourcepos(i,i))),!0},t.prototype.parseAutolink=function(e){var r,n,i,a=this.pos+1;return(r=this.match(awe))?(n=r.slice(1,r.length-1),i=bn("link",this.sourcepos(a,this.pos)),i.destination=Sd("mailto:"+n),i.title="",i.appendChild(Nn(n,this.sourcepos(a+1,this.pos-1))),e.appendChild(i),!0):(r=this.match(owe))?(n=r.slice(1,r.length-1),i=bn("link",this.sourcepos(a,this.pos)),i.destination=Sd(n),i.title="",i.appendChild(Nn(n,this.sourcepos(a+1,this.pos-1))),e.appendChild(i),!0):!1},t.prototype.parseHtmlTag=function(e){var r=this.pos+1,n=this.match(Ibe);if(n===null)return!1;var i=bn("htmlInline",this.sourcepos(r,this.pos));return i.literal=n,e.appendChild(i),!0},t.prototype.scanDelims=function(e){var r=0,n=this.pos;if(e===Jl||e===Yl)r++,this.pos++;else for(;this.peek()===e;)r++,this.pos++;if(r===0||r<2&&(e===Ad||e===Xl))return this.pos=n,null;var i=n===0?`
76`:this.subject.charAt(n-1),a=this.peek(),o;a===-1?o=`
77`:o=Tv(a);var s=ux.test(o),u=sx.test(o),f=ux.test(i),d=sx.test(i),v=!s&&(!u||f||d),m=!f&&(!d||s||u),b,x;return e===Od?(b=v&&(!m||d),x=m&&(!v||u)):e===Jl||e===Yl?(b=v&&!m,x=m):e===Xl?(b=!s,x=!f):(b=v,x=m),this.pos=n,{numdelims:r,canOpen:b,canClose:x}},t.prototype.handleDelim=function(e,r){var n=this.scanDelims(e);if(!n)return!1;var i=n.numdelims,a=this.pos+1,o;this.pos+=i,e===Jl?o="’":e===Yl?o="“":o=this.subject.slice(a-1,this.pos);var s=Nn(o,this.sourcepos(a,this.pos));return r.appendChild(s),(n.canOpen||n.canClose)&&(this.options.smart||e!==Jl&&e!==Yl)&&(this.delimiters={cc:e,numdelims:i,origdelims:i,node:s,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},t.prototype.removeDelimiter=function(e){e.previous!==null&&(e.previous.next=e.next),e.next===null?this.delimiters=e.previous:e.next.previous=e.previous},t.prototype.removeDelimitersBetween=function(e,r){e.next!==r&&(e.next=r,r.previous=e)},t.prototype.processEmphasis=function(e){var r,n,i,a,o,s,u,f=!1,d=(r={},r[Od]=[e,e,e],r[_v]=[e,e,e],r[Jl]=[e],r[Yl]=[e],r[Ad]=[e],r[Xl]=[e],r);for(i=this.delimiters;i!==null&&i.previous!==e;)i=i.previous;for(;i!==null;){var v=i.cc,m=v===Od||v===_v;if(!i.canClose)i=i.next;else{for(n=i.previous,u=!1;n!==null&&n!==e&&n!==d[v][m?i.origdelims%3:0];){if(f=m&&(i.canOpen||n.canClose)&&i.origdelims%3!==0&&(n.origdelims+i.origdelims)%3===0,n.cc===i.cc&&n.canOpen&&!f){u=!0;break}n=n.previous}if(a=i,m||v===Ad||v===Xl){if(!u)i=i.next;else if(n){var b=i.numdelims>=2&&n.numdelims>=2?2:1,x=m?0:1;o=n.node,s=i.node;var T=m?b===1?"emph":"strong":"strike";v===Xl&&(T="customInline");var S=bn(T),M=o.sourcepos[1],L=s.sourcepos[0];S.sourcepos=[[M[0],M[1]-b+1],[L[0],L[1]+b-1]],o.sourcepos[1][1]-=b,s.sourcepos[0][1]+=b,o.literal=o.literal.slice(b),s.literal=s.literal.slice(b),n.numdelims-=b,i.numdelims-=b;for(var P=o.next,A=void 0;P&&P!==s;)A=P.next,P.unlink(),S.appendChild(P),P=A;if(v===Xl){var H=S.firstChild,W=H.literal||"",J=W.split(/\s/)[0];S.info=J,W.length<=J.length?H.unlink():(H.sourcepos[0][1]+=J.length,H.literal=W.replace(J+" ",""))}if(o.insertAfter(S),this.removeDelimitersBetween(n,i),n.numdelims<=x&&(n.numdelims===0&&o.unlink(),this.removeDelimiter(n)),i.numdelims<=x){i.numdelims===0&&s.unlink();var ee=i.next;this.removeDelimiter(i),i=ee}}}else v===Jl?(i.node.literal="’",u&&(n.node.literal="‘"),i=i.next):v===Yl&&(i.node.literal="”",u&&(n.node.literal="“"),i=i.next);u||(d[v][m?a.origdelims%3:0]=a.previous,a.canOpen||this.removeDelimiter(a))}}for(;this.delimiters!==null&&this.delimiters!==e;)this.removeDelimiter(this.delimiters)},t.prototype.parseLinkTitle=function(){var e=this.match(Qbe);return e===null?null:_f(e.substr(1,e.length-2))},t.prototype.parseLinkDestination=function(){var e=this.match(Zbe);if(e===null){if(this.peek()===ix)return null;for(var r=this.pos,n=0,i=void 0;(i=this.peek())!==-1;)if(i===ax&&lx.test(this.subject.charAt(this.pos+1)))this.pos+=1,this.peek()!==-1&&(this.pos+=1);else if(i===ox)this.pos+=1,n+=1;else if(i===Sv){if(n<1)break;this.pos+=1,n-=1}else{if(Ov.exec(Tv(i))!==null)break;this.pos+=1}return this.pos===r&&i!==Sv||n!==0?null:(e=this.subject.substr(r,this.pos-r),Sd(_f(e)))}return Sd(_f(e.substr(1,e.length-2)))},t.prototype.parseLinkLabel=function(){var e=this.match(cwe);return e===null||e.length>1001?0:e.length},t.prototype.parseOpenBracket=function(e){var r=this.pos;this.pos+=1;var n=Nn("[",this.sourcepos(this.pos,this.pos));return e.appendChild(n),this.addBracket(n,r,!1),!0},t.prototype.parseBang=function(e){var r=this.pos;if(this.pos+=1,this.peek()===nx){this.pos+=1;var n=Nn("![",this.sourcepos(this.pos-1,this.pos));e.appendChild(n),this.addBracket(n,r+1,!0)}else{var n=Nn("!",this.sourcepos(this.pos,this.pos));e.appendChild(n)}return!0},t.prototype.parseCloseBracket=function(e){var r=null,n=null,i=!1;this.pos+=1;var a=this.pos,o=this.brackets;if(o===null)return e.appendChild(Nn("]",this.sourcepos(a,a))),!0;if(!o.active)return e.appendChild(Nn("]",this.sourcepos(a,a))),this.removeBracket(),!0;var s=o.image,u=this.pos;this.peek()===ox&&(this.pos++,this.spnl()&&(r=this.parseLinkDestination())!==null&&this.spnl()&&(Ov.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle())||!0)&&this.spnl()&&this.peek()===Sv?(this.pos+=1,i=!0):this.pos=u);var f="";if(!i){var d=this.pos,v=this.parseLinkLabel();if(v>2?f=this.subject.slice(d,d+v):o.bracketAfter||(f=this.subject.slice(o.index,a)),v===0&&(this.pos=u),f){f=rx(f);var m=this.refMap[f];m&&(r=m.destination,n=m.title,i=!0)}}if(i){var b=bn(s?"image":"link");b.destination=r,b.title=n||"",b.sourcepos=[o.startpos,this.sourcepos(this.pos)];for(var x=o.node.next,T=void 0;x;)T=x.next,x.unlink(),b.appendChild(x),x=T;if(e.appendChild(b),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!s)for(o=this.brackets;o!==null;)o.image||(o.active=!1),o=o.previous;return this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:f}),!0}return this.removeBracket(),this.pos=a,e.appendChild(Nn("]",this.sourcepos(a,a))),this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:f}),!0},t.prototype.addBracket=function(e,r,n){this.brackets!==null&&(this.brackets.bracketAfter=!0),this.brackets={node:e,startpos:this.sourcepos(r+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:r,image:n,active:!0}},t.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},t.prototype.parseEntity=function(e){var r,n=this.pos+1;return(r=this.match(ewe))?(e.appendChild(Nn(Cy.decodeHTML(r),this.sourcepos(n,this.pos))),!0):!1},t.prototype.parseString=function(e){var r,n=this.pos+1;if(r=this.match(fwe)){if(this.options.smart){var i=r.replace(nwe,"…").replace(iwe,function(o){var s=0,u=0;return o.length%3===0?u=o.length/3:o.length%2===0?s=o.length/2:o.length%3===2?(s=1,u=(o.length-2)/3):(s=2,u=(o.length-4)/3),Km("—",u)+Km("–",s)});e.appendChild(Nn(i,this.sourcepos(n,this.pos)))}else{var a=Nn(r,this.sourcepos(n,this.pos));e.appendChild(a)}return!0}return!1},t.prototype.parseNewline=function(e){this.pos+=1;var r=e.lastChild;if(r&&r.type==="text"&&r.literal[r.literal.length-1]===" "){var n=r.literal[r.literal.length-2]===" ",i=r.literal.length;r.literal=r.literal.replace(lwe,"");var a=i-r.literal.length;r.sourcepos[1][1]-=a,e.appendChild(bn(n?"linebreak":"softbreak",this.sourcepos(this.pos-a,this.pos)))}else e.appendChild(bn("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(uwe),!0},t.prototype.parseReference=function(e,r){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,i=this.pos,a=this.parseLinkLabel();if(a===0)return 0;var o=this.subject.substr(0,a);if(this.peek()===Xbe)this.pos++;else return this.pos=i,0;this.spnl();var s=this.parseLinkDestination();if(s===null)return this.pos=i,0;var u=this.pos;this.spnl(),this.pos!==u&&(n=this.parseLinkTitle()),n===null&&(n="",this.pos=u);var f=!0;if(this.match(cx)===null&&(n===""?f=!1:(n="",this.pos=u,f=this.match(cx)!==null)),!f)return this.pos=i,0;var d=rx(o);if(d==="")return this.pos=i,0;var v=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=v[1][0]+1;var m=bn("refDef",v);return m.title=n,m.dest=s,m.label=d,e.insertBefore(m),r[d]?this.refDefCandidateMap[m.id]=m:r[d]=eg(m),this.pos-i},t.prototype.mergeTextNodes=function(e){for(var r,n=[];r=e.next();){var i=r.entering,a=r.node;if(i&&a.type==="text")n.push(a);else if(n.length===1)n=[];else if(n.length>1){var o=n[0],s=n[n.length-1];o.sourcepos&&s.sourcepos&&(o.sourcepos[1]=s.sourcepos[1]),o.next=s.next,o.next&&(o.next.prev=o);for(var u=1;u<n.length;u+=1)o.literal+=n[u].literal,n[u].unlink();n=[]}}},t.prototype.getReferenceDefSourcepos=function(e){for(var r=e.stringContent.split(/\n|\r\n/),n=!1,i=0,a={line:0,ch:0},o=0;o<r.length;o+=1){var s=r[o];if(Ov.test(s))break;if(/\:/.test(s)&&i===0){if(n)break;var u=s.indexOf(":")===s.length-1?o+1:o;a={line:u,ch:r[u].length},n=!0}var f=s.match(/'|"/g);if(f&&(i+=f.length),i===2){a={line:o,ch:s.length};break}}return[[e.sourcepos[0][0],e.sourcepos[0][1]],[e.sourcepos[0][0]+a.line,a.ch]]},t.prototype.parseInline=function(e){var r,n=!1,i=this.peek();if(i===-1)return!1;switch(i){case Xm:n=this.parseNewline(e);break;case ax:n=this.parseBackslash(e);break;case Gbe:n=this.parseBackticks(e);break;case _v:case Od:case Ad:case Xl:n=this.handleDelim(i,e);break;case Jl:case Yl:n=!!(!((r=this.options)===null||r===void 0)&&r.smart)&&this.handleDelim(i,e);break;case nx:n=this.parseOpenBracket(e);break;case Jbe:n=this.parseBang(e);break;case Kbe:n=this.parseCloseBracket(e);break;case ix:n=this.parseAutolink(e)||this.parseHtmlTag(e);break;case Ybe:e.disabledEntityParse||(n=this.parseEntity(e));break;default:n=this.parseString(e);break}return n||(this.pos+=1,e.appendChild(Nn(Tv(i),this.sourcepos(this.pos,this.pos+1)))),!0},t.prototype.parse=function(e){for(this.subject=e.stringContent.trim(),this.pos=0,this.delimiters=null,this.brackets=null,this.lineOffsets=e.lineOffsets||[0],this.lineIdx=0,this.linePosOffset=0,this.lineStartNum=e.sourcepos[0][0],ybe(e)&&(this.lineOffsets[0]+=e.level+1);this.parseInline(e););e.stringContent=null,this.processEmphasis(null),this.mergeTextNodes(e.walker());var r=this.options,n=r.extendedAutolinks,i=r.customParser;if(n&&zbe(e.walker(),n),i&&e.firstChild)for(var a,o=e.firstChild.walker();a=o.next();){var s=a.node,u=a.entering;i[s.type]&&i[s.type](s,{entering:u,options:this.options})}},t}(),pwe=/^\[([ \txX])\][ \t]+/;function hwe(t,e){if(e.firstChild&&e.firstChild.type==="paragraph"){var r=e.firstChild,n=r.stringContent.match(pwe);if(n){var i=n[0].length;r.stringContent=r.stringContent.substring(i-1),r.sourcepos[0][1]+=i,r.lineOffsets[0]+=i,e.listData.task=!0,e.listData.checked=/[xX]/.test(n[1])}}}var vwe={continue:function(){return 0},finalize:function(){},canContain:function(t){return t==="tableHead"||t==="tableBody"},acceptsLines:!1},mwe={continue:function(){return 0},finalize:function(){},canContain:function(t){return t==="tableRow"},acceptsLines:!1},gwe={continue:function(){return 1},finalize:function(){},canContain:function(t){return t==="tableRow"||t==="tableDelimRow"},acceptsLines:!1},ywe={continue:function(){return 1},finalize:function(){},canContain:function(t){return t==="tableDelimCell"},acceptsLines:!1},bwe={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},wwe={continue:function(){return 1},finalize:function(){},canContain:function(t){return t==="tableCell"},acceptsLines:!1},xwe={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},bp=4,F1=9,H1=62,Cwe=60,q1=32,$1=91,U1=/[^ \t\f\v\r\n]/,Ewe=/^(?:`{3,}|~{3,})(?= *$)/;function fx(t){for(var e=t;e;){if(e.lastLineBlank)return!0;var r=e.type;if(!e.lastLineChecked&&(r==="list"||r==="item"))e.lastLineChecked=!0,e=e.lastChild;else{e.lastLineChecked=!0;break}}return!1}function ga(t,e){return e<t.length?t.charCodeAt(e):-1}function j1(t){return!U1.test(t)}function kc(t){return t===q1||t===F1}var Twe=/^\$\$$/,_we={continue:function(t,e){var r=t.currentLine,n=r.match(Twe);if(n)return t.lastLineLength=n[0].length,t.finalize(e,t.lineNumber),2;for(var i=e.offset;i>0&&kc(ga(r,t.offset));)t.advanceOffset(1,!0),i--;return 0},finalize:function(t,e){if(e.stringContent!==null){var r=e.stringContent,n=r.indexOf(`
78`),i=r.slice(0,n),a=r.slice(n+1),o=i.match(/^(\s*)(.*)/);e.info=_f(o[2].trim()),e.literal=a,e.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},z1={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},Swe={continue:function(){return 0},finalize:function(){},canContain:function(t){return t!=="item"},acceptsLines:!1},kwe={continue:function(){return 0},finalize:function(t,e){for(var r=e.firstChild;r;){if(fx(r)&&r.next){e.listData.tight=!1;break}for(var n=r.firstChild;n;){if(fx(n)&&(r.next||n.next)){e.listData.tight=!1;break}n=n.next}r=r.next}},canContain:function(t){return t==="item"},acceptsLines:!1},Owe={continue:function(t){var e=t.currentLine;if(!t.indented&&ga(e,t.nextNonspace)===H1)t.advanceNextNonspace(),t.advanceOffset(1,!1),kc(ga(e,t.offset))&&t.advanceOffset(1,!0);else return 1;return 0},finalize:function(){},canContain:function(t){return t!=="item"},acceptsLines:!1},Awe={continue:function(t,e){if(t.blank){if(e.firstChild===null)return 1;t.advanceNextNonspace()}else if(t.indent>=e.listData.markerOffset+e.listData.padding)t.advanceOffset(e.listData.markerOffset+e.listData.padding,!0);else return 1;return 0},finalize:hwe,canContain:function(t){return t!=="item"},acceptsLines:!1},Mwe={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},Lwe={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},Dwe={continue:function(t,e){var r=t.currentLine,n=t.indent;if(e.isFenced){var i=n<=3&&r.charAt(t.nextNonspace)===e.fenceChar&&r.slice(t.nextNonspace).match(Ewe);if(i&&i[0].length>=e.fenceLength)return t.lastLineLength=t.offset+n+i[0].length,t.finalize(e,t.lineNumber),2;for(var a=e.fenceOffset;a>0&&kc(ga(r,t.offset));)t.advanceOffset(1,!0),a--}else if(n>=bp)t.advanceOffset(bp,!0);else if(t.blank)t.advanceNextNonspace();else return 1;return 0},finalize:function(t,e){var r;if(e.stringContent!==null){if(e.isFenced){var n=e.stringContent,i=n.indexOf(`
79`),a=n.slice(0,i),o=n.slice(i+1),s=a.match(/^(\s*)(.*)/);e.infoPadding=s[1].length,e.info=_f(s[2].trim()),e.literal=o}else e.literal=(r=e.stringContent)===null||r===void 0?void 0:r.replace(/(\n *)+$/,`
80`);e.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},Iwe={continue:function(t,e){return t.blank&&(e.htmlBlockType===6||e.htmlBlockType===7)?1:0},finalize:function(t,e){var r;e.literal=((r=e.stringContent)===null||r===void 0?void 0:r.replace(/(\n *)+$/,""))||null,e.stringContent=null},canContain:function(){return!1},acceptsLines:!0},Rwe={continue:function(t){return t.blank?1:0},finalize:function(t,e){if(e.stringContent!==null){for(var r,n=!1;ga(e.stringContent,0)===$1&&(r=t.inlineParser.parseReference(e,t.refMap));)e.stringContent=e.stringContent.slice(r),n=!0;n&&j1(e.stringContent)&&e.unlink()}},canContain:function(){return!1},acceptsLines:!0},Nwe=z1,Pwe=z1,Zu={document:Swe,list:kwe,blockQuote:Owe,item:Awe,heading:Mwe,thematicBreak:Lwe,codeBlock:Dwe,htmlBlock:Iwe,paragraph:Rwe,table:vwe,tableBody:mwe,tableHead:gwe,tableRow:wwe,tableCell:xwe,tableDelimRow:ywe,tableDelimCell:bwe,refDef:Nwe,customBlock:_we,frontMatter:Pwe};function Qm(t){for(var e=0,r=0,n=[],i=0;i<t.length;i+=1)if(t[i]==="|"&&t[i-1]!=="\\"){var a=t.substring(e,i);e===0&&ex(a)?r=i+1:n.push(a),e=i+1}if(e<t.length){var a=t.substring(e,t.length);ex(a)||n.push(a)}return[r,n]}function Zm(t,e,r,n){for(var i=[],a=0,o=e;a<o.length;a++){var s=o[a],u=s.match(/^[ \t]+/),f=u?u[0].length:0,d=void 0,v=void 0;if(f===s.length)f=0,d=0,v="";else{var m=s.match(/[ \t]+$/);d=m?m[0].length:0,v=s.slice(f,s.length-d)}var b=n+f,x=bn(t,[[r,n],[r,n+s.length-1]]);x.stringContent=v.replace(/\\\|/g,"|"),x.startIdx=i.length,x.endIdx=i.length,x.lineOffsets=[b-1],x.paddingLeft=f,x.paddingRight=d,i.push(x),n+=s.length+1}return i}function Bwe(t){var e=null,r=t.stringContent,n=r[0],i=r[r.length-1];return i===":"?e=n===":"?"center":"right":n===":"&&(e="left"),{align:e}}var Fwe=function(t,e){var r=e.stringContent;if(e.type==="paragraph"&&!t.indented&&!t.blank){var n=r.length-1,i=r.lastIndexOf(`
81`,n-1)+1,a=r.slice(i,n),o=t.currentLine.slice(t.nextNonspace),s=Qm(a),u=s[0],f=s[1],d=Qm(o),v=d[0],m=d[1],b=/^[ \t]*:?-+:?[ \t]*$/;if(!f.length||!m.length||m.some(function(ee){return!b.test(ee)})||m.length===1&&o.indexOf("|")!==0)return 0;var x=e.lineOffsets,T=t.lineNumber-1,S=yp(x)+1,M=bn("table",[[T,S],[t.lineNumber,t.offset]]);if(M.columns=m.map(function(){return{align:null}}),e.insertAfter(M),x.length===1)e.unlink();else{e.stringContent=r.slice(0,i);var L=r.lastIndexOf(`
82`,i-2)+1,P=i-L-1;t.lastLineLength=x[x.length-2]+P,t.finalize(e,T-1)}t.advanceOffset(t.currentLine.length-t.offset,!1);var A=bn("tableHead",[[T,S],[t.lineNumber,t.offset]]);M.appendChild(A);var H=bn("tableRow",[[T,S],[T,S+a.length-1]]),W=bn("tableDelimRow",[[t.lineNumber,t.nextNonspace+1],[t.lineNumber,t.offset]]);A.appendChild(H),A.appendChild(W),Zm("tableCell",f,T,S+u).forEach(function(ee){H.appendChild(ee)});var J=Zm("tableDelimCell",m,t.lineNumber,t.nextNonspace+1+v);return J.forEach(function(ee){W.appendChild(ee)}),M.columns=J.map(Bwe),t.tip=M,2}return 0},Hwe=function(t,e){if(e.type!=="table"&&e.type!=="tableBody"||!t.blank&&t.currentLine.indexOf("|")===-1)return 0;if(t.advanceOffset(t.currentLine.length-t.offset,!1),t.blank){var r=e;return e.type==="tableBody"&&(r=e.parent,t.finalize(e,t.lineNumber-1)),t.finalize(r,t.lineNumber-1),0}var n=e;e.type==="table"&&(n=t.addChild("tableBody",t.nextNonspace),n.stringContent=null);var i=bn("tableRow",[[t.lineNumber,t.nextNonspace+1],[t.lineNumber,t.currentLine.length]]);n.appendChild(i);var a=n.parent,o=t.currentLine.slice(t.nextNonspace),s=Qm(o),u=s[0],f=s[1];return Zm("tableCell",f,t.lineNumber,t.nextNonspace+1+u).forEach(function(d,v){v>=a.columns.length&&(d.ignored=!0),i.appendChild(d)}),2},qwe=/^(\$\$)(\s*[a-zA-Z])+/,$we=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,Uwe=function(t){var e;if(!t.indented&&!$we.test(t.currentLine)&&(e=t.currentLine.match(qwe))){var r=e[1].length;t.closeUnmatchedBlocks();var n=t.addChild("customBlock",t.nextNonspace);return n.syntaxLength=r,n.offset=t.indent,t.advanceNextNonspace(),t.advanceOffset(r,!1),2}return 0},jwe=/^`{3,}(?!.*`)|^~{3,}/,zwe=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+P1+"|"+B1+")\\s*$","i")],Wwe=/^(?:=+|-+)[ \t]*$/,Vwe=/^#{1,6}(?:[ \t]+|$)/,Gwe=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,W1=/^[*+-]/,V1=/^(\d{1,9})([.)])/;function Kwe(t,e){var r=t.currentLine.slice(t.nextNonspace),n,i,a={type:"bullet",tight:!0,bulletChar:"",start:0,delimiter:"",padding:0,markerOffset:t.indent,task:!1,checked:!1};if(t.indent>=4)return null;if(n=r.match(W1))a.type="bullet",a.bulletChar=n[0][0];else if((n=r.match(V1))&&(e.type!=="paragraph"||n[1]==="1"))a.type="ordered",a.start=parseInt(n[1],10),a.delimiter=n[2];else return null;if(i=ga(t.currentLine,t.nextNonspace+n[0].length),!(i===-1||i===F1||i===q1)||e.type==="paragraph"&&!t.currentLine.slice(t.nextNonspace+n[0].length).match(U1))return null;t.advanceNextNonspace(),t.advanceOffset(n[0].length,!0);var o=t.column,s=t.offset;do t.advanceOffset(1,!0),i=ga(t.currentLine,t.offset);while(t.column-o<5&&kc(i));var u=ga(t.currentLine,t.offset)===-1,f=t.column-o;return f>=5||f<1||u?(a.padding=n[0].length+1,t.column=o,t.offset=s,kc(ga(t.currentLine,t.offset))&&t.advanceOffset(1,!0)):a.padding=n[0].length+f,a}function Jwe(t,e){return t.type===e.type&&t.delimiter===e.delimiter&&t.bulletChar===e.bulletChar}function G1(t,e){return t.options.disallowDeepHeading&&(e.type==="blockQuote"||e.type==="item")}var Ywe=function(t){return!t.indented&&ga(t.currentLine,t.nextNonspace)===H1?(t.advanceNextNonspace(),t.advanceOffset(1,!1),kc(ga(t.currentLine,t.offset))&&t.advanceOffset(1,!0),t.closeUnmatchedBlocks(),t.addChild("blockQuote",t.nextNonspace),1):0},Xwe=function(t,e){var r;if(!t.indented&&!G1(t,e)&&(r=t.currentLine.slice(t.nextNonspace).match(Vwe))){t.advanceNextNonspace(),t.advanceOffset(r[0].length,!1),t.closeUnmatchedBlocks();var n=t.addChild("heading",t.nextNonspace);return n.level=r[0].trim().length,n.headingType="atx",n.stringContent=t.currentLine.slice(t.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),t.advanceOffset(t.currentLine.length-t.offset),2}return 0},Qwe=function(t){var e;if(!t.indented&&(e=t.currentLine.slice(t.nextNonspace).match(jwe))){var r=e[0].length;t.closeUnmatchedBlocks();var n=t.addChild("codeBlock",t.nextNonspace);return n.isFenced=!0,n.fenceLength=r,n.fenceChar=e[0][0],n.fenceOffset=t.indent,t.advanceNextNonspace(),t.advanceOffset(r,!1),2}return 0},Zwe=function(t,e){if(!t.indented&&ga(t.currentLine,t.nextNonspace)===Cwe){var r=t.currentLine.slice(t.nextNonspace),n=t.options.disallowedHtmlBlockTags,i=void 0;for(i=1;i<=7;i++){var a=r.match(zwe[i]);if(a){if(i===7){if(e.type==="paragraph")return 0;if(n.length>0){var o=new RegExp("</?(?:"+n.join("|")+")","i");if(o.test(a[0]))return 0}}t.closeUnmatchedBlocks();var s=t.addChild("htmlBlock",t.offset);return s.htmlBlockType=i,2}}}return 0},e0e=function(t,e){var r;if(e.stringContent!==null&&!t.indented&&e.type==="paragraph"&&!G1(t,e.parent)&&(r=t.currentLine.slice(t.nextNonspace).match(Wwe))){t.closeUnmatchedBlocks();for(var n=void 0;ga(e.stringContent,0)===$1&&(n=t.inlineParser.parseReference(e,t.refMap));)e.stringContent=e.stringContent.slice(n);if(e.stringContent.length>0){var i=bn("heading",e.sourcepos);return i.level=r[0][0]==="="?1:2,i.headingType="setext",i.stringContent=e.stringContent,e.insertAfter(i),e.unlink(),t.tip=i,t.advanceOffset(t.currentLine.length-t.offset,!1),2}return 0}return 0},t0e=function(t){return!t.indented&&Gwe.test(t.currentLine.slice(t.nextNonspace))?(t.closeUnmatchedBlocks(),t.addChild("thematicBreak",t.nextNonspace),t.advanceOffset(t.currentLine.length-t.offset,!1),2):0},r0e=function(t,e){var r,n=e;return(!t.indented||e.type==="list")&&(r=Kwe(t,n))?(t.closeUnmatchedBlocks(),(t.tip.type!=="list"||!Jwe(n.listData,r))&&(n=t.addChild("list",t.nextNonspace),n.listData=r),n=t.addChild("item",t.nextNonspace),n.listData=r,1):0},n0e=function(t){return t.indented&&t.tip.type!=="paragraph"&&!t.blank?(t.advanceOffset(bp,!0),t.closeUnmatchedBlocks(),t.addChild("codeBlock",t.offset),2):0},Av=[Ywe,Xwe,Qwe,Zwe,e0e,t0e,r0e,n0e,Fwe,Hwe,Uwe],K1=/^(-{3}|\+{3}|;{3})$/,i0e=function(t,e){var r=t.currentLine,n=t.lineNumber,i=t.indented;if(n===1&&!i&&e.type==="document"&&K1.test(r)){t.closeUnmatchedBlocks();var a=t.addChild("frontMatter",t.nextNonspace);return a.stringContent=r,t.advanceNextNonspace(),t.advanceOffset(r.length,!1),2}return 0},a0e={continue:function(t,e){var r=t.currentLine,n=r.match(K1);return e.type==="frontMatter"&&n?(e.stringContent+=r,t.lastLineLength=n[0].length,t.finalize(e,t.lineNumber),2):0},finalize:function(t,e){e.stringContent!==null&&(e.literal=e.stringContent,e.stringContent=null)},canContain:function(){return!1},acceptsLines:!0},o0e=[/./,/<\/(?:script|pre|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],s0e=/^[#`~*+_=<>0-9-;$]/,l0e=/\r\n|\n|\r/;function Mv(){return bn("document",[[1,1],[0,0]])}var u0e={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},c0e=function(){function t(e){this.options=ei(ei({},u0e),e),this.doc=Mv(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.lines=[],this.options.frontMatter&&(Zu.frontMatter=a0e,Av.unshift(i0e)),this.inlineParser=new dwe(this.options)}return t.prototype.advanceOffset=function(e,r){r===void 0&&(r=!1);for(var n=this.currentLine,i,a,o;e>0&&(o=n[this.offset]);)o==="	"?(i=4-this.column%4,r?(this.partiallyConsumedTab=i>e,a=i>e?e:i,this.column+=a,this.offset+=this.partiallyConsumedTab?0:1,e-=a):(this.partiallyConsumedTab=!1,this.column+=i,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},t.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},t.prototype.findNextNonspace=function(){for(var e=this.currentLine,r=this.offset,n=this.column,i;(i=e.charAt(r))!=="";)if(i===" ")r++,n++;else if(i==="	")r++,n+=4-n%4;else break;this.blank=i===`
83`||i==="\r"||i==="",this.nextNonspace=r,this.nextNonspaceColumn=n,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=bp},t.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=Km(" ",e)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+`
84`},t.prototype.addChild=function(e,r){for(;!Zu[this.tip.type].canContain(e);)this.finalize(this.tip,this.lineNumber-1);var n=r+1,i=bn(e,[[this.lineNumber,n],[0,0]]);return i.stringContent="",this.tip.appendChild(i),this.tip=i,i},t.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var e=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},t.prototype.finalize=function(e,r){var n=e.parent;e.open=!1,e.sourcepos[1]=[r,this.lastLineLength],Zu[e.type].finalize(this,e),this.tip=n},t.prototype.processInlines=function(e){var r,n=this.options.customParser,i=e.walker();for(this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;r=i.next();){var a=r.node,o=r.entering,s=a.type;n&&n[s]&&n[s](a,{entering:o,options:this.options}),!o&&(s==="paragraph"||s==="heading"||s==="tableCell"&&!a.ignored)&&this.inlineParser.parse(a)}},t.prototype.incorporateLine=function(e){var r=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,e.indexOf("\0")!==-1&&(e=e.replace(/\0/g,"�")),this.currentLine=e;for(var n=!0,i;(i=r.lastChild)&&i.open;){switch(r=i,this.findNextNonspace(),Zu[r.type].continue(this,r)){case 0:break;case 1:n=!1;break;case 2:this.lastLineLength=e.length;return;default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!n){r=r.parent;break}}this.allClosed=r===this.oldtip,this.lastMatchedContainer=r;for(var a=r.type!=="paragraph"&&Zu[r.type].acceptsLines,o=Av.length;!a;){if(this.findNextNonspace(),r.type!=="table"&&r.type!=="tableBody"&&r.type!=="paragraph"&&!this.indented&&!s0e.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var s=0;s<o;){var u=Av[s](this,r);if(u===1){r=this.tip;break}else if(u===2){r=this.tip,a=!0;break}else s++}if(s===o){this.advanceNextNonspace();break}}if(!this.allClosed&&!this.blank&&this.tip.type==="paragraph")this.addLine();else{this.closeUnmatchedBlocks(),this.blank&&r.lastChild&&(r.lastChild.lastLineBlank=!0);for(var f=r.type,d=this.blank&&!(f==="blockQuote"||I1(r)&&r.isFenced||f==="item"&&!r.firstChild&&r.sourcepos[0][0]===this.lineNumber),v=r;v;)v.lastLineBlank=d,v=v.parent;Zu[f].acceptsLines?(this.addLine(),gbe(r)&&r.htmlBlockType>=1&&r.htmlBlockType<=5&&o0e[r.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(r,this.lineNumber))):this.offset<e.length&&!this.blank&&(r=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())}this.lastLineLength=e.length},t.prototype.parse=function(e,r){this.doc=Mv(),this.tip=this.doc,this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";var n=e.split(l0e),i=n.length;this.lines=r||n,this.options.referenceDefinition&&this.clearRefMaps(),e.charCodeAt(e.length-1)===Xm&&(i-=1);for(var a=0;a<i;a++)this.incorporateLine(n[a]);for(;this.tip;)this.finalize(this.tip,i);return this.processInlines(this.doc),this.doc},t.prototype.partialParseStart=function(e,r){this.doc=Mv(),this.tip=this.doc,this.lineNumber=e-1,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";for(var n=r.length,i=0;i<n;i++)this.incorporateLine(r[i]);return this.doc},t.prototype.partialParseExtends=function(e){for(var r=0;r<e.length;r++)this.incorporateLine(e[r])},t.prototype.partialParseFinish=function(){for(;this.tip;)this.finalize(this.tip,this.lineNumber);this.processInlines(this.doc)},t.prototype.setRefMaps=function(e,r,n){this.refMap=e,this.refLinkCandidateMap=r,this.refDefCandidateMap=n},t.prototype.clearRefMaps=function(){[this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap].forEach(function(e){Vbe(e)})},t}();function dx(t,e){return t[0]<e[0]?1:t[0]>e[0]?-1:t[1]<e[1]?1:t[1]>e[1]?-1:0}function f0e(t,e){var r=t[0],n=t[1];return dx(n,e)===1?1:dx(r,e)===-1?-1:0}function d0e(t,e){if(!(t.parent!==e.parent||t===e)){for(var r=t.next;r&&r!==e;){for(var n=r.next,i=0,a=["parent","prev","next"];i<a.length;i++){var o=a[i];r[o]&&(Jm(r[o].id),r[o]=null)}r=n}t.next=e.next,e.next?e.next.prev=t:t.parent.lastChild=t}}function p0e(t){for(var e=[],r=t.firstChild;r;)e.push(r),r=r.next;return e}function px(t,e){for(var r=0,n=e;r<n.length;r++){var i=n[r];t.insertBefore(i)}}function h0e(t,e){for(var r=e.length-1;r>=0;r-=1)t.prependChild(e[r])}function v0e(t,e){if(!(!t||!t.parent||e===0)){var r=t.parent.walker();r.resumeAt(t,!0);for(var n;n=r.next();){var i=n.node,a=n.entering;a&&(i.sourcepos[0][0]+=e,i.sourcepos[1][0]+=e)}}}function J1(t,e){var r=t[0],n=t[1];return n[0]<e?1:r[0]>e?-1:0}function Md(t,e){for(var r=t.firstChild;r;){var n=J1(r.sourcepos,e);if(n===0)return r;if(n===-1)return r.prev||r;r=r.next}return t.lastChild}function m0e(t){for(;t.lastChild;)t=t.lastChild;return t}function g0e(t){for(;t.parent&&t.parent.type!=="document"&&t.parent.sourcepos[0][0]===t.sourcepos[0][0];)t=t.parent;return t}function y0e(t,e){for(var r=t.firstChild,n=null;r;){var i=J1(r.sourcepos,e);if(i===0){if(r.sourcepos[0][0]===e||!r.firstChild)return r;n=r,r=r.firstChild}else{if(i===-1)break;n=r,r=r.next}}return n?g0e(m0e(n)):null}function b0e(t,e){for(var r=t,n=null;r;){var i=f0e(r.sourcepos,e);if(i===0)if(r.firstChild)n=r,r=r.firstChild;else return r;else{if(i===-1)return n;if(r.next)r=r.next;else return n}}return r}function Y1(t){return ibe(t)||null}function Lv(t,e,r){if(r===void 0&&(r=null),e)for(var n=e.walker();e&&e!==r;){t(e);var i=n.next();if(i)e=i.node;else break}}function w0e(t){var e=Y1(t);if(!e)return!0;for(;e&&e.type!=="document";){if(!e.parent&&!e.prev&&!e.next)return!0;e=e.parent}return!1}var hx=/\r\n|\n|\r/;function x0e(t){var e=t.match(/^[ \t]+/);if(e&&(e[0].length>=2||/\t/.test(e[0])))return!0;var r=e?t.slice(e.length):t;return W1.test(r)||V1.test(r)}function C0e(t){return!j1(t)&&t.indexOf("|")!==-1}function eg(t){var e=t.id,r=t.title,n=t.sourcepos,i=t.dest;return{id:e,title:r,sourcepos:n,unlinked:!1,destination:i}}var X1=function(){function t(e,r){this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(r!=null&&r.referenceDefinition),this.parser=new c0e(r),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(hx),this.root=this.parser.parse(e,this.lineTexts)}return t.prototype.updateLineTexts=function(e,r,n){var i,a=e[0],o=e[1],s=r[0],u=r[1],f=n.split(hx),d=f.length,v=this.lineTexts[a-1],m=this.lineTexts[s-1];f[0]=v.slice(0,o-1)+f[0],f[d-1]=f[d-1]+m.slice(u-1);var b=s-a+1;return(i=this.lineTexts).splice.apply(i,Vm([a-1,b],f)),d-b},t.prototype.updateRootNodeState=function(){if(this.lineTexts.length===1&&this.lineTexts[0]===""){this.root.lastLineBlank=!0,this.root.sourcepos=[[1,1],[1,0]];return}this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);for(var e=this.lineTexts,r=e.length-1;e[r]==="";)r-=1;e.length-2>r&&(r+=1),this.root.sourcepos[1]=[r+1,e[r].length]},t.prototype.replaceRangeNodes=function(e,r,n){e?(px(e,n),d0e(e,r),[e.id,r.id].forEach(function(i){return Jm(i)}),e.unlink()):r?(px(r,n),Jm(r.id),r.unlink()):h0e(this.root,n)},t.prototype.getNodeRange=function(e,r){var n=Md(this.root,e[0]),i=Md(this.root,r[0]);return i&&i.next&&r[0]+1===i.next.sourcepos[0][0]&&(i=i.next),[n,i]},t.prototype.trigger=function(e,r){this.eventHandlerMap[e].forEach(function(n){n(r)})},t.prototype.extendEndLine=function(e){for(;this.lineTexts[e]==="";)e+=1;return e},t.prototype.parseRange=function(e,r,n,i){e&&e.prev&&(tx(e.prev)&&x0e(this.lineTexts[n-1])||bbe(e.prev)&&C0e(this.lineTexts[n-1]))&&(e=e.prev,n=e.sourcepos[0][0]);for(var a=this.lineTexts.slice(n-1,i),o=this.parser.partialParseStart(n,a),s=r?r.next:this.root.firstChild,u=o.lastChild,f=u&&I1(u)&&u.open,d=u&&R1(u)&&u.open,v=u&&tx(u);(f||d)&&s||v&&s&&(s.type==="list"||s.sourcepos[0][1]>=2);){var m=this.extendEndLine(s.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(i,m)),e||(e=r),r=s,i=m,s=s.next}this.parser.partialParseFinish();var b=p0e(o);return{newNodes:b,extStartNode:e,extEndNode:r}},t.prototype.getRemovedNodeRange=function(e,r){return!e||e&&Xu(e)||r&&Xu(r)?null:{id:[e.id,r.id],line:[e.sourcepos[0][0]-1,r.sourcepos[1][0]-1]}},t.prototype.markDeletedRefMap=function(e,r){var n=this;if(!Qu(this.refMap)){var i=function(a){if(Xu(a)){var o=n.refMap[a.label];o&&a.id===o.id&&(o.unlinked=!0)}};e&&Lv(i,e.parent,r),r&&Lv(i,r)}},t.prototype.replaceWithNewRefDefState=function(e){var r=this;if(!Qu(this.refMap)){var n=function(i){if(Xu(i)){var a=i.label,o=r.refMap[a];(!o||o.unlinked)&&(r.refMap[a]=eg(i))}};e.forEach(function(i){Lv(n,i)})}},t.prototype.replaceWithRefDefCandidate=function(){var e=this;Qu(this.refDefCandidateMap)||kd(this.refDefCandidateMap,function(r,n){var i=n.label,a=n.sourcepos,o=e.refMap[i];(!o||o.unlinked||o.sourcepos[0][0]>a[0][0])&&(e.refMap[i]=eg(n))})},t.prototype.getRangeWithRefDef=function(e,r,n,i,a){if(this.referenceDefinition&&!Qu(this.refMap)){var o=Md(this.root,e-1),s=Md(this.root,r+1);o&&Xu(o)&&o!==n&&o!==i&&(n=o,e=n.sourcepos[0][0]),s&&Xu(s)&&s!==n&&s!==i&&(i=s,r=this.extendEndLine(i.sourcepos[1][0]+a))}return[n,i,e,r]},t.prototype.parse=function(e,r,n){n===void 0&&(n=0);var i=this.getNodeRange(e,r),a=i[0],o=i[1],s=a?Math.min(a.sourcepos[0][0],e[0]):e[0],u=this.extendEndLine((o?Math.max(o.sourcepos[1][0],r[0]):r[0])+n),f=this.parseRange.apply(this,this.getRangeWithRefDef(s,u,a,o,n)),d=f.newNodes,v=f.extStartNode,m=f.extEndNode,b=this.getRemovedNodeRange(v,m),x=m?m.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(v,m),this.replaceRangeNodes(v,m,d),this.replaceWithNewRefDefState(d)):this.replaceRangeNodes(v,m,d),{nodes:d,removedNodeRange:b,nextNode:x}},t.prototype.parseRefLink=function(){var e=this,r=[];return Qu(this.refMap)||kd(this.refMap,function(n,i){i.unlinked&&delete e.refMap[n],kd(e.refLinkCandidateMap,function(a,o){var s=o.node,u=o.refLabel;u===n&&r.push(e.parse(s.sourcepos[0],s.sourcepos[1]))})}),r},t.prototype.removeUnlinkedCandidate=function(){Qu(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach(function(e){kd(e,function(r){w0e(r)&&delete e[r]})})},t.prototype.editMarkdown=function(e,r,n){var i=this.updateLineTexts(e,r,n),a=this.parse(e,r,i),o=Wbe(a,"nextNode");v0e(a.nextNode,i),this.updateRootNodeState();var s=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),s=s.concat(this.parseRefLink())),this.trigger("change",s),s},t.prototype.getLineTexts=function(){return this.lineTexts},t.prototype.getRootNode=function(){return this.root},t.prototype.findNodeAtPosition=function(e){var r=b0e(this.root,e);return!r||r===this.root?null:r},t.prototype.findFirstNodeAtLine=function(e){return y0e(this.root,e)},t.prototype.on=function(e,r){this.eventHandlerMap[e].push(r)},t.prototype.off=function(e,r){var n=this.eventHandlerMap[e],i=n.indexOf(r);n.splice(i,1)},t.prototype.findNodeById=function(e){return Y1(e)},t.prototype.removeAllNode=function(){abe()},t}(),E0e=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],vx=new RegExp("<(/?(?:"+E0e.join("|")+")[^>]*>)","ig");function mx(t){return vx.test(t)?t.replace(vx,function(e,r){return"&lt;"+r}):t}var gx={heading:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"h"+t.level,outerNewLine:!0}},text:function(t){return{type:"text",content:t.literal}},softbreak:function(t,e){var r=e.options;return{type:"html",content:r.softbreak}},linebreak:function(){return{type:"html",content:`<br />
85`}},emph:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"em"}},strong:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"strong"}},paragraph:function(t,e){var r,n=e.entering,i=(r=t.parent)===null||r===void 0?void 0:r.parent;return i&&i.type==="list"&&i.listData.tight?null:{type:n?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(t,e){var r=e.entering,n=t.listData,i=n.type,a=n.start,o=i==="bullet"?"ul":"ol",s={};return o==="ol"&&a!==null&&a!==1&&(s.start=a.toString()),{type:r?"openTag":"closeTag",tagName:o,attributes:s,outerNewLine:!0}},item:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(t,e){var r=e.options,n=r.tagFilter?mx(t.literal):t.literal;return{type:"html",content:n}},htmlBlock:function(t,e){var r=e.options,n=r.tagFilter?mx(t.literal):t.literal;return r.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:n},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:n,outerNewLine:!0}},code:function(t){return[{type:"openTag",tagName:"code"},{type:"text",content:t.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(t){var e=t.info,r=e?e.split(/\s+/):[],n=[];return r.length>0&&r[0].length>0&&n.push("language-"+oc(r[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:n},{type:"text",content:t.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(t,e){var r=e.entering;if(r){var n=t,i=n.title,a=n.destination;return{type:"openTag",tagName:"a",attributes:ei({href:oc(a)},i&&{title:oc(i)})}}return{type:"closeTag",tagName:"a"}},image:function(t,e){var r=e.getChildrenText,n=e.skipChildren,i=t,a=i.title,o=i.destination;return n(),{type:"openTag",tagName:"img",selfClose:!0,attributes:ei({src:oc(o),alt:r(t)},a&&{title:oc(a)})}},customBlock:function(t,e,r){var n=t.info.trim().toLowerCase(),i=r[n];if(i)try{return i(t,e)}catch(a){console.warn("[@toast-ui/editor] - The error occurred when "+n+" block node was parsed in markdown renderer: "+a)}return[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"text",content:t.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},frontMatter:function(t){return[{type:"openTag",tagName:"div",outerNewLine:!0,attributes:{style:"white-space: pre; display: none;"}},{type:"text",content:t.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},customInline:function(t,e,r){var n=t,i=n.info,a=n.firstChild,o=i.trim().toLowerCase(),s=r[o],u=e.entering;if(s)try{return s(t,e)}catch(f){console.warn("[@toast-ui/editor] - The error occurred when "+o+" inline node was parsed in markdown renderer: "+f)}return u?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+i+(a?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},yx={strike:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"del"}},item:function(t,e){var r=e.entering,n=t.listData,i=n.checked,a=n.task;if(r){var o={type:"openTag",tagName:"li",outerNewLine:!0};return a?[o,{type:"openTag",tagName:"input",selfClose:!0,attributes:ei(ei({},i&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:o}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(t,e){var r=e.entering;return{type:r?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(t,e){var r=e.entering;if(r)return{type:"openTag",tagName:"tr",outerNewLine:!0};var n=[];if(t.lastChild)for(var i=t.parent.parent.columns.length,a=t.lastChild.endIdx,o=a+1;o<i;o+=1)n.push({type:"openTag",tagName:"td",outerNewLine:!0},{type:"closeTag",tagName:"td",outerNewLine:!0});return n.push({type:"closeTag",tagName:"tr",outerNewLine:!0}),n},tableCell:function(t,e){var r=e.entering;if(t.ignored)return{type:"text",content:""};var n=t.parent.parent,i=n.type==="tableHead"?"th":"td",a=n.parent,o=a.columns[t.startIdx],s=o!=null&&o.align?{align:o.align}:null;return r?ei({type:"openTag",tagName:i,outerNewLine:!0},s&&{attributes:s}):{type:"closeTag",tagName:i,outerNewLine:!0}}},T0e={softbreak:`
86`,gfm:!1,tagFilter:!1,nodeId:!1};function _0e(t){for(var e=[],r=t.walker(),n=null;n=r.next();){var i=n.node;i.type==="text"&&e.push(i.literal)}return e.join("")}var ky=function(){function t(e){this.buffer=[],this.options=ei(ei({},T0e),e),this.convertors=this.createConvertors(),delete this.options.convertors}return t.prototype.createConvertors=function(){var e=ei({},gx);if(this.options.gfm&&(e=ei(ei({},e),yx)),this.options.convertors){var r=this.options.convertors,n=Object.keys(r),i=ei(ei({},gx),yx);n.forEach(function(a){var o=e[a],s=r[a],u=Object.keys(i).indexOf(a)===-1?a.toLowerCase():a;o?e[u]=function(f,d,v){return d.origin=function(){return o(f,d,v)},s(f,d)}:e[u]=s})}return e},t.prototype.getConvertors=function(){return this.convertors},t.prototype.getOptions=function(){return this.options},t.prototype.render=function(e){var r=this;this.buffer=[];for(var n=e.walker(),i=null,a=function(){var s=i.node,u=i.entering,f=o.convertors[s.type];if(!f)return"continue";var d=!1,v={entering:u,leaf:!Sy(s),options:o.options,getChildrenText:_0e,skipChildren:function(){d=!0}},m=R1(s)||wbe(s)?f(s,v,o.convertors):f(s,v);if(m){var b=Array.isArray(m)?m:[m];b.forEach(function(x,T){x.type==="openTag"&&r.options.nodeId&&T===0&&(x.attributes||(x.attributes={}),x.attributes["data-nodeid"]=String(s.id)),r.renderHTMLNode(x)}),d&&(n.resumeAt(s,!1),n.next())}},o=this;i=n.next();)a();return this.addNewLine(),this.buffer.join("")},t.prototype.renderHTMLNode=function(e){switch(e.type){case"openTag":case"closeTag":this.renderElementNode(e);break;case"text":this.renderTextNode(e);break;case"html":this.renderRawHtmlNode(e);break}},t.prototype.generateOpenTagString=function(e){var r=this,n=e.tagName,i=e.classNames,a=e.attributes;this.buffer.push("<"+n),i&&i.length>0&&this.buffer.push(' class="'+i.join(" ")+'"'),a&&Object.keys(a).forEach(function(o){var s=a[o];r.buffer.push(" "+o+'="'+s+'"')}),e.selfClose&&this.buffer.push(" /"),this.buffer.push(">")},t.prototype.generateCloseTagString=function(e){var r=e.tagName;this.buffer.push("</"+r+">")},t.prototype.addNewLine=function(){this.buffer.length&&yp(yp(this.buffer))!==`
87`&&this.buffer.push(`
88`)},t.prototype.addOuterNewLine=function(e){e.outerNewLine&&this.addNewLine()},t.prototype.addInnerNewLine=function(e){e.innerNewLine&&this.addNewLine()},t.prototype.renderTextNode=function(e){this.buffer.push(oc(e.content))},t.prototype.renderRawHtmlNode=function(e){this.addOuterNewLine(e),this.buffer.push(e.content),this.addOuterNewLine(e)},t.prototype.renderElementNode=function(e){e.type==="openTag"?(this.addOuterNewLine(e),this.generateOpenTagString(e),e.selfClose?this.addOuterNewLine(e):this.addInnerNewLine(e)):(this.addInnerNewLine(e),this.generateCloseTagString(e),this.addOuterNewLine(e))},t}();/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */function S0e(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)}var k0e=Object.hasOwnProperty,bx=Object.setPrototypeOf,O0e=Object.isFrozen,A0e=Object.getPrototypeOf,M0e=Object.getOwnPropertyDescriptor,Fi=Object.freeze,xs=Object.seal,L0e=Object.create,Q1=typeof Reflect<"u"&&Reflect,wp=Q1.apply,tg=Q1.construct;wp||(wp=function(e,r,n){return e.apply(r,n)});Fi||(Fi=function(e){return e});xs||(xs=function(e){return e});tg||(tg=function(e,r){return new(Function.prototype.bind.apply(e,[null].concat(S0e(r))))});var D0e=go(Array.prototype.forEach),wx=go(Array.prototype.pop),ff=go(Array.prototype.push),$d=go(String.prototype.toLowerCase),xx=go(String.prototype.match),nl=go(String.prototype.replace),I0e=go(String.prototype.indexOf),R0e=go(String.prototype.trim),cs=go(RegExp.prototype.test),Cx=N0e(TypeError);function go(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return wp(t,e,n)}}function N0e(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return tg(t,r)}}function Qt(t,e){bx&&bx(t,null);for(var r=e.length;r--;){var n=e[r];if(typeof n=="string"){var i=$d(n);i!==n&&(O0e(e)||(e[r]=i),n=i)}t[n]=!0}return t}function Ql(t){var e=L0e(null),r=void 0;for(r in t)wp(k0e,t,[r])&&(e[r]=t[r]);return e}function Ld(t,e){for(;t!==null;){var r=M0e(t,e);if(r){if(r.get)return go(r.get);if(typeof r.value=="function")return go(r.value)}t=A0e(t)}function n(i){return console.warn("fallback value for",i),null}return n}var Ex=Fi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dv=Fi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Iv=Fi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P0e=Fi(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Rv=Fi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),B0e=Fi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tx=Fi(["#text"]),_x=Fi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
88spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Nv=Fi(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sx=Fi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dd=Fi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F0e=xs(/\{\{[\s\S]*|[\s\S]*\}\}/gm),H0e=xs(/<%[\s\S]*|[\s\S]*%>/gm),q0e=xs(/^data-[\-\w.\u00B7-\uFFFF]/),$0e=xs(/^aria-[\-\w]+$/),U0e=xs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j0e=xs(/^(?:\w+script|data):/i),z0e=xs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Ao(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)}var W0e=function(){return typeof window>"u"?null:window},V0e=function(e,r){if((typeof e>"u"?"undefined":bf(e))!=="object"||typeof e.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Z1(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W0e(),e=function(B){return Z1(B)};if(e.version="2.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,n=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,o=t.Node,s=t.Element,u=t.NodeFilter,f=t.NamedNodeMap,d=f===void 0?t.NamedNodeMap||t.MozNamedAttrMap:f,v=t.Text,m=t.Comment,b=t.DOMParser,x=t.trustedTypes,T=s.prototype,S=Ld(T,"cloneNode"),M=Ld(T,"nextSibling"),L=Ld(T,"childNodes"),P=Ld(T,"parentNode");if(typeof a=="function"){var A=n.createElement("template");A.content&&A.content.ownerDocument&&(n=A.content.ownerDocument)}var H=V0e(x,r),W=H&&_e?H.createHTML(""):"",J=n,ee=J.implementation,X=J.createNodeIterator,ie=J.createDocumentFragment,ge=J.getElementsByTagName,Y=r.importNode,ne={};try{ne=Ql(n).documentMode?n.documentMode:{}}catch{}var Te={};e.isSupported=typeof P=="function"&&ee&&typeof ee.createHTMLDocument<"u"&&ne!==9;var Be=F0e,He=H0e,Re=q0e,Oe=$0e,zt=j0e,bt=z0e,$e=U0e,qe=null,at=Qt({},[].concat(Ao(Ex),Ao(Dv),Ao(Iv),Ao(Rv),Ao(Tx))),Ve=null,Ae=Qt({},[].concat(Ao(_x),Ao(Nv),Ao(Sx),Ao(Dd))),Ne=null,Dt=null,Wt=!0,Ht=!0,qt=!1,tr=!1,ht=!1,br=!1,kt=!1,xr=!1,We=!1,ye=!0,_e=!1,rt=!0,et=!0,yt=!1,Xe={},xe=null,De=Qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,wt=Qt({},["audio","video","img","source","image","track"]),xt=null,Vt=Qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lr="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",Cr="http://www.w3.org/1999/xhtml",hn=Cr,Er=!1,ce=void 0,Ke=["application/xhtml+xml","text/html"],pt="text/html",gt=void 0,st=null,ir=n.createElement("form"),ur=function(B){st&&st===B||((!B||(typeof B>"u"?"undefined":bf(B))!=="object")&&(B={}),B=Ql(B),qe="ALLOWED_TAGS"in B?Qt({},B.ALLOWED_TAGS):at,Ve="ALLOWED_ATTR"in B?Qt({},B.ALLOWED_ATTR):Ae,xt="ADD_URI_SAFE_ATTR"in B?Qt(Ql(Vt),B.ADD_URI_SAFE_ATTR):Vt,Je="ADD_DATA_URI_TAGS"in B?Qt(Ql(wt),B.ADD_DATA_URI_TAGS):wt,xe="FORBID_CONTENTS"in B?Qt({}
vendor: 99,048 bytes, lines 88-98
88,B.FORBID_CONTENTS):De,Ne="FORBID_TAGS"in B?Qt({},B.FORBID_TAGS):{},Dt="FORBID_ATTR"in B?Qt({},B.FORBID_ATTR):{},Xe="USE_PROFILES"in B?B.USE_PROFILES:!1,Wt=B.ALLOW_ARIA_ATTR!==!1,Ht=B.ALLOW_DATA_ATTR!==!1,qt=B.ALLOW_UNKNOWN_PROTOCOLS||!1,tr=B.SAFE_FOR_TEMPLATES||!1,ht=B.WHOLE_DOCUMENT||!1,xr=B.RETURN_DOM||!1,We=B.RETURN_DOM_FRAGMENT||!1,ye=B.RETURN_DOM_IMPORT!==!1,_e=B.RETURN_TRUSTED_TYPE||!1,kt=B.FORCE_BODY||!1,rt=B.SANITIZE_DOM!==!1,et=B.KEEP_CONTENT!==!1,yt=B.IN_PLACE||!1,$e=B.ALLOWED_URI_REGEXP||$e,hn=B.NAMESPACE||Cr,ce=Ke.indexOf(B.PARSER_MEDIA_TYPE)===-1?ce=pt:ce=B.PARSER_MEDIA_TYPE,gt=ce==="application/xhtml+xml"?function(te){return te}:$d,tr&&(Ht=!1),We&&(xr=!0),Xe&&(qe=Qt({},[].concat(Ao(Tx))),Ve=[],Xe.html===!0&&(Qt(qe,Ex),Qt(Ve,_x)),Xe.svg===!0&&(Qt(qe,Dv),Qt(Ve,Nv),Qt(Ve,Dd)),Xe.svgFilters===!0&&(Qt(qe,Iv),Qt(Ve,Nv),Qt(Ve,Dd)),Xe.mathMl===!0&&(Qt(qe,Rv),Qt(Ve,Sx),Qt(Ve,Dd))),B.ADD_TAGS&&(qe===at&&(qe=Ql(qe)),Qt(qe,B.ADD_TAGS)),B.ADD_ATTR&&(Ve===Ae&&(Ve=Ql(Ve)),Qt(Ve,B.ADD_ATTR)),B.ADD_URI_SAFE_ATTR&&Qt(xt,B.ADD_URI_SAFE_ATTR),B.FORBID_CONTENTS&&(xe===De&&(xe=Ql(xe)),Qt(xe,B.FORBID_CONTENTS)),et&&(qe["#text"]=!0),ht&&Qt(qe,["html","head","body"]),qe.table&&(Qt(qe,["tbody"]),delete Ne.tbody),Fi&&Fi(B),st=B)},ar=Qt({},["mi","mo","mn","ms","mtext"]),Fn=Qt({},["foreignobject","desc","title","annotation-xml"]),Tr=Qt({},Dv);Qt(Tr,Iv),Qt(Tr,P0e);var dr=Qt({},Rv);Qt(dr,B0e);var An=function(B){var te=P(B);(!te||!te.tagName)&&(te={namespaceURI:Cr,tagName:"template"});var oe=$d(B.tagName),be=$d(te.tagName);if(B.namespaceURI===jr)return te.namespaceURI===Cr?oe==="svg":te.namespaceURI===lr?oe==="svg"&&(be==="annotation-xml"||ar[be]):!!Tr[oe];if(B.namespaceURI===lr)return te.namespaceURI===Cr?oe==="math":te.namespaceURI===jr?oe==="math"&&Fn[be]:!!dr[oe];if(B.namespaceURI===Cr){if(te.namespaceURI===jr&&!Fn[be]||te.namespaceURI===lr&&!ar[be])return!1;var Ue=Qt({},["title","style","font","a","script"]);return!dr[oe]&&(Ue[oe]||!Tr[oe])}return!1},Kr=function(B){ff(e.removed,{element:B});try{B.parentNode.removeChild(B)}catch{try{B.outerHTML=W}catch{B.remove()}}},Ei=function(B,te){try{ff(e.removed,{attribute:te.getAttributeNode(B),from:te})}catch{ff(e.removed,{attribute:null,from:te})}if(te.removeAttribute(B),B==="is"&&!Ve[B])if(xr||We)try{Kr(te)}catch{}else try{te.setAttribute(B,"")}catch{}},Hn=function(B){var te=void 0,oe=void 0;if(kt)B="<remove></remove>"+B;else{var be=xx(B,/^[\r\n\t ]+/);oe=be&&be[0]}ce==="application/xhtml+xml"&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");var Ue=H?H.createHTML(B):B;if(hn===Cr)try{te=new b().parseFromString(Ue,ce)}catch{}if(!te||!te.documentElement){te=ee.createDocument(hn,"template",null);try{te.documentElement.innerHTML=Er?"":Ue}catch{}}var je=te.body||te.documentElement;return B&&oe&&je.insertBefore(n.createTextNode(oe),je.childNodes[0]||null),hn===Cr?ge.call(te,ht?"html":"body")[0]:ht?te.documentElement:je},ui=function(B){return X.call(B.ownerDocument||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ga=function(B){return B instanceof v||B instanceof m?!1:typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof d)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"},Mn=function(B){return(typeof o>"u"?"undefined":bf(o))==="object"?B instanceof o:B&&(typeof B>"u"?"undefined":bf(B))==="object"&&typeof B.nodeType=="number"&&typeof B.nodeName=="string"},qn=function(B,te,oe){Te[B]&&D0e(Te[B],function(be){be.call(e,te,oe,st)})},wa=function(B){var te=void 0;if(qn("beforeSanitizeElements",B,null),Ga(B)||xx(B.nodeName,/[\u0080-\uFFFF]/))return Kr(B),!0;var oe=gt(B.nodeName);if(qn("uponSanitizeElement",B,{tagName:oe,allowedTags:qe}),!Mn(B.firstElementChild)&&(!Mn(B.content)||!Mn(B.content.firstElementChild))&&cs(/<[/\w]/g,B.innerHTML)&&cs(/<[/\w]/g,B.textContent)||oe==="select"&&cs(/<template/i,B.innerHTML))return Kr(B),!0;if(!qe[oe]||Ne[oe]){if(et&&!xe[oe]){var be=P(B)||B.parentNode,Ue=L(B)||B.childNodes;if(Ue&&be)for(var je=Ue.length,ut=je-1;ut>=0;--ut)be.insertBefore(S(Ue[ut],!0),M(B))}return Kr(B),!0}return B instanceof s&&!An(B)||(oe==="noscript"||oe==="noembed")&&cs(/<\/no(script|embed)/i,B.innerHTML)?(Kr(B),!0):(tr&&B.nodeType===3&&(te=B.textContent,te=nl(te,Be," "),te=nl(te,He," "),B.textContent!==te&&(ff(e.removed,{element:B.cloneNode()}),B.textContent=te)),qn("afterSanitizeElements",B,null),!1)},F=function(B,te,oe){if(rt&&(te==="id"||te==="name")&&(oe in n||oe in ir))return!1;if(!(Ht&&!Dt[te]&&cs(Re,te))){if(!(Wt&&cs(Oe,te))){if(!Ve[te]||Dt[te])return!1;if(!xt[te]){if(!cs($e,nl(oe,bt,""))){if(!((te==="src"||te==="xlink:href"||te==="href")&&B!=="script"&&I0e(oe,"data:")===0&&Je[B])){if(!(qt&&!cs(zt,nl(oe,bt,"")))){if(oe)return!1}}}}}}return!0},G=function(B){var te=void 0,oe=void 0,be=void 0,Ue=void 0;qn("beforeSanitizeAttributes",B,null);var je=B.attributes;if(je){var ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve};for(Ue=je.length;Ue--;){te=je[Ue];var vt=te,Ot=vt.name,mt=vt.namespaceURI;if(oe=R0e(te.value),be=gt(Ot),ut.attrName=be,ut.attrValue=oe,ut.keepAttr=!0,ut.forceKeepAttr=void 0,qn("uponSanitizeAttribute",B,ut),oe=ut.attrValue,!ut.forceKeepAttr&&(Ei(Ot,B),!!ut.keepAttr)){if(cs(/\/>/i,oe)){Ei(Ot,B);continue}tr&&(oe=nl(oe,Be," "),oe=nl(oe,He," "));var Mt=gt(B.nodeName);if(F(Mt,be,oe))try{mt?B.setAttributeNS(mt,Ot,oe):B.setAttribute(Ot,oe),wx(e.removed)}catch{}}}qn("afterSanitizeAttributes",B,null)}},le=function Q(B){var te=void 0,oe=ui(B);for(qn("beforeSanitizeShadowDOM",B,null);te=oe.nextNode();)qn("uponSanitizeShadowNode",te,null),!wa(te)&&(te.content instanceof i&&Q(te.content),G(te));qn("afterSanitizeShadowDOM",B,null)};return e.sanitize=function(Q,B){var te=void 0,oe=void 0,be=void 0,Ue=void 0,je=void 0;if(Er=!Q,Er&&(Q="<!-->"),typeof Q!="string"&&!Mn(Q)){if(typeof Q.toString!="function")throw Cx("toString is not a function");if(Q=Q.toString(),typeof Q!="string")throw Cx("dirty is not a string, aborting")}if(!e.isSupported){if(bf(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof Q=="string")return t.toStaticHTML(Q);if(Mn(Q))return t.toStaticHTML(Q.outerHTML)}return Q}if(br||ur(B),e.removed=[],typeof Q=="string"&&(yt=!1),!yt)if(Q instanceof o)te=Hn("<!---->"),oe=te.ownerDocument.importNode(Q,!0),oe.nodeType===1&&oe.nodeName==="BODY"||oe.nodeName==="HTML"?te=oe:te.appendChild(oe);else{if(!xr&&!tr&&!ht&&Q.indexOf("<")===-1)return H&&_e?H.createHTML(Q):Q;if(te=Hn(Q),!te)return xr?null:W}te&&kt&&Kr(te.firstChild);for(var ut=ui(yt?Q:te);be=ut.nextNode();)be.nodeType===3&&be===Ue||wa(be)||(be.content instanceof i&&le(be.content),G(be),Ue=be);if(Ue=null,yt)return Q;if(xr){if(We)for(je=ie.call(te.ownerDocument);te.firstChild;)je.appendChild(te.firstChild);else je=te;return ye&&(je=Y.call(r,je,!0)),je}var vt=ht?te.outerHTML:te.innerHTML;return tr&&(vt=nl(vt,Be," "),vt=nl(vt,He," ")),H&&_e?H.createHTML(vt):vt},e.setConfig=function(Q){ur(Q),br=!0},e.clearConfig=function(){st=null,br=!1},e.isValidAttribute=function(Q,B,te){st||ur({});var oe=gt(Q),be=gt(B);return F(oe,be,te)},e.addHook=function(Q,B){typeof B=="function"&&(Te[Q]=Te[Q]||[],ff(Te[Q],B))},e.removeHook=function(Q){Te[Q]&&wx(Te[Q])},e.removeHooks=function(Q){Te[Q]&&(Te[Q]=[])},e.removeAllHooks=function(){Te={}},e}var G0e=Z1(),K0e=["iframe","embed"],eS=[];function tS(t){si(K0e,t)&&eS.push(t.toLowerCase())}function yu(t,e){return G0e.sanitize(t,de({ADD_TAGS:eS,ADD_ATTR:["rel","target","hreflang","type"],FORBID_TAGS:["input","script","textarea","form","button","select","meta","style","link","title","object","base"]},e))}function rS(t,e){return t.literal.replace(new RegExp("(<\\s*"+e+"[^>]*>)|(</"+e+"\\s*[>])","ig"),"").trim()}function rg(t){t=t.match(Tc)[0];var e=t.match(new RegExp(X_,"g"));return e?e.reduce(function(r,n){var i=n.trim().split("="),a=i[0],o=i.slice(1);return o.length&&(r[a]=o.join("=").replace(/'|"/g,"").trim()),r},{}):{}}function ng(t){return zo(t.attributes).reduce(function(e,r){return e[r.nodeName]=r.nodeValue,e},{})}function kx(t,e,r,n){var i=n.getToDOMNode(e)(t),a=r(i.outerHTML),o=document.createElement("div");o.innerHTML=a,i=o.firstChild;var s=ng(i);return{dom:i,htmlAttrs:s}}var J0e={htmlBlock:function(t,e,r){return{atom:!0,content:"block+",group:"block",attrs:{htmlAttrs:{default:{}},childrenHTML:{default:""},htmlBlock:{default:!0}},parseDOM:[{tag:t,getAttrs:function(n){return{htmlAttrs:ng(n),childrenHTML:n.innerHTML}}}],toDOM:function(n){var i=kx(n,t,e,r),a=i.dom,o=i.htmlAttrs;return o.class=o.class?o.class+" html-block":"html-block",na([t,o],zo(a.childNodes))}}},htmlInline:function(t,e,r){return{attrs:{htmlAttrs:{default:{}},htmlInline:{default:!0}},parseDOM:[{tag:t,getAttrs:function(n){return{htmlAttrs:ng(n)}}}],toDOM:function(n){var i=kx(n,t,e,r).htmlAttrs;return[t,i,0]}}}};function Y0e(t,e,r){var n={nodes:{},marks:{}};return["htmlBlock","htmlInline"].forEach(function(i){t[i]&&Object.keys(t[i]).forEach(function(a){var o=i==="htmlBlock"?"nodes":"marks";tS(a),n[o][a]=J0e[i](a,e,r)})}),n}var X0e=/^\s*<\s*\//,Q0e={paragraph:function(t,e){var r=e.entering,n=e.origin,i=e.options;return i.nodeId?{type:r?"openTag":"closeTag",outerNewLine:!0,tagName:"p"}:n()},softbreak:function(t){var e=t.prev&&t.prev.type==="htmlInline",r=e&&/<br ?\/?>/.test(t.prev.literal),n=r?`
89`:`<br>
90`;return{type:"html",content:n}},item:function(t,e){var r=e.entering;if(r){var n={},i=[];return t.listData.task&&(n["data-task"]="",i.push("task-list-item"),t.listData.checked&&(i.push("checked"),n["data-task-checked"]="")),{type:"openTag",tagName:"li",classNames:i,attributes:n,outerNewLine:!0}}return{type:"closeTag",tagName:"li",outerNewLine:!0}},code:function(t){var e={"data-backticks":String(t.tickCount)};return[{type:"openTag",tagName:"code",attributes:e},{type:"text",content:t.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(t){var e=t,r=e.fenceLength,n=e.info,i=n?n.split(/\s+/):[],a=[],o={};if(r>3&&(o["data-backticks"]=r),i.length>0&&i[0].length>0){var s=i[0];a.push("lang-"+s),o["data-language"]=s}return[{type:"openTag",tagName:"pre",classNames:a},{type:"openTag",tagName:"code",attributes:o},{type:"text",content:t.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre"}]},customInline:function(t,e){var r=e.origin,n=e.entering,i=e.skipChildren,a=t.info;if(a.indexOf("widget")!==-1&&n){i();var o=G_(t),s=V_(a,o).outerHTML;return[{type:"openTag",tagName:"span",classNames:["tui-widget"]},{type:"html",content:s},{type:"closeTag",tagName:"span"}]}return r()}};function Oy(t,e){var r=de({},Q0e);return t&&(r.link=function(n,i){var a=i.entering,o=i.origin,s=o();return a&&(s.attributes=de(de({},s.attributes),t)),s}),e&&Object.keys(e).forEach(function(n){var i=r[n],a=e[n];i&&Ha(a)?r[n]=function(o,s){var u=de({},s);return u.origin=function(){return i(o,s)},a(o,u)}:si(["htmlBlock","htmlInline"],n)&&!Ha(a)?r[n]=function(o,s){var u=o.literal.match(Tc);if(u){var f=u[0],d=u[1],v=u[3],m=(d||v).toLowerCase(),b=a[m],x=rS(o,m);if(b){var T=de({},o);return T.attrs=rg(f),T.childrenHTML=x,T.type=m,s.entering=!X0e.test(o.literal),b(T,s)}}return s.origin()}:r[n]=a}),r}var Z0e=["list","item","blockQuote"],exe=["UL","OL","BLOCKQUOTE"];function txe(t,e){var r,n=t.child(e);return!n.childCount||n.childCount===1&&!(!((r=n.firstChild.text)===null||r===void 0)&&r.trim())}function Ox(t,e,r){var n=Gf(e)-1,i=$p(e)-1,a=r[n].getBoundingClientRect(),o=r[i].offsetTop-r[n].offsetTop+r[i].clientHeight;return{height:o<=0?r[n].clientHeight:o+rxe(t,r,Math.min(i+1,t.childCount-1)),rect:a}}function rxe(t,e,r){for(var n=t.childCount-1,i=0;r<=n&&txe(t,r);)i+=e[r].clientHeight,r+=1;return i}function nxe(t,e){for(;!t.getAttribute("data-nodeid")&&t.parentElement!==e;)t=t.parentElement;return t}function xp(t,e){for(var r=0;t&&t!==e&&(si(exe,t.tagName)||(r+=t.offsetTop),t.offsetParent!==e.offsetParent);)t=t.parentElement;return r}function ixe(t,e){for(var r=e,n=null;r;){var i=r.firstElementChild;if(!i)break;var a=nS(i,t,xp(r,e));n=r,r=a}var o=r||n;return o===e?null:o}function nS(t,e,r){return t&&e>r+t.offsetTop?nS(t.nextElementSibling,e,r)||t:null}function axe(t,e,r,n){var i=Math.min((t-e)/r,1);return i*n}function Pv(t,e){for(var r=t.querySelector('[data-nodeid="'+e.id+'"]');!r||GP(e);)e=e.parent,r=t.querySelector('[data-nodeid="'+e.id+'"]');return oxe({mdNode:e,el:r})}function oxe(t){for(var e=t.mdNode,r=t.el;(si(Z0e,e.type)||e.type==="table")&&e.firstChild;)e=e.firstChild,r=r.firstElementChild;return{mdNode:e,el:r}}var po={};function sxe(t,e){po[t]=po[t]||{},po[t].height=e}function lxe(t,e){po[t]=po[t]||{},po[t].offsetTop=e}function uxe(t){return po[t]&&po[t].height}function cxe(t){return po[t]&&po[t].offsetTop}function ig(t){t&&(delete po[Number(t.getAttribute("data-nodeid"))],zo(t.children).forEach(function(e){ig(e)}))}function fxe(t,e,r){var n=uxe(r),i=cxe(r),a=n||t.clientHeight,o=i||xp(t,e)||t.offsetTop;return n||sxe(r,a),i||lxe(r,o),{nodeHeight:a,offsetTop:o}}var Bv=lt("md-preview-highlight");function dxe(t,e){for(var r=t.firstChild;r&&r.next&&!(Up(r.next)>e+1);)r=r.next;return r}var iS=function(){function t(e,r){var n=document.createElement("div");this.el=n,this.eventEmitter=e,this.isViewer=!!r.isViewer,this.el.className=lt("md-preview");var i=r.linkAttributes,a=r.customHTMLRenderer,o=r.sanitizer,s=r.highlight,u=s===void 0?!1:s;this.renderer=new ky({gfm:!0,nodeId:!0,convertors:Oy(i,a)}),this.cursorNodeId=null,this.sanitizer=o,this.initEvent(u),this.initContentSection(),this.isViewer&&(this.previewContent.style.overflowWrap="break-word")}return t.prototype.initContentSection=function(){this.previewContent=r1('<div class="'+lt("contents")+'"></div>'),this.isViewer||this.el.appendChild(this.previewContent)},t.prototype.toggleActive=function(e){hy(this.el,"active",e)},t.prototype.initEvent=function(e){var r=this;this.eventEmitter.listen("updatePreview",this.update.bind(this)),!this.isViewer&&(e&&(this.eventEmitter.listen("changeToolbarState",function(n){var i=n.mdNode,a=n.cursorPos;r.updateCursorNode(i,a)}),this.eventEmitter.listen("blur",function(){r.removeHighlight()})),b1(this.el,"scroll",function(n){r.eventEmitter.emit("scroll","preview",ixe(n.target.scrollTop,r.previewContent))}),this.eventEmitter.listen("changePreviewTabPreview",function(){return r.toggleActive(!0)}),this.eventEmitter.listen("changePreviewTabWrite",function(){return r.toggleActive(!1)}))},t.prototype.removeHighlight=function(){if(this.cursorNodeId){var e=this.getElementByNodeId(this.cursorNodeId);e&&uo(e,Bv)}},t.prototype.updateCursorNode=function(e,r){e&&(e=Ec(e,function(o){return!YP(o)}),e.type==="tableRow"?e=dxe(e,r[1]):e.type==="tableBody"&&(e=null));var n=e?e.id:null;if(this.cursorNodeId!==n){var i=this.getElementByNodeId(this.cursorNodeId),a=this.getElementByNodeId(n);i&&uo(i,Bv),a&&Po(a,Bv),this.cursorNodeId=n}},t.prototype.getElementByNodeId=function(e){return e?this.previewContent.querySelector('[data-nodeid="'+e+'"]'):null},t.prototype.update=function(e){var r=this;e.forEach(function(n){return r.replaceRangeNodes(n)}),this.eventEmitter.emit("afterPreviewRender",this)},t.prototype.replaceRangeNodes=function(e){var r=this,n=e.nodes,i=e.removedNodeRange,a=this.previewContent,o=this.eventEmitter.emitReduce("beforePreviewRender",this.sanitizer(n.map(function(x){return r.renderer.render(x)}).join("")));if(!i)a.insertAdjacentHTML("afterbegin",o);else{var s=i.id,u=s[0],f=s[1],d=this.getElementByNodeId(u),v=this.getElementByNodeId(f);if(d){d.insertAdjacentHTML("beforebegin",o);for(var m=d;m&&m!==v;){var b=m.nextElementSibling;vu(m),ig(m),m=b}m!=null&&m.parentNode&&(vu(m),ig(m))}}},t.prototype.getRenderer=function(){return this.renderer},t.prototype.destroy=function(){y1(this.el,"scroll"),this.el=null},t.prototype.getElement=function(){return this.el},t.prototype.getHTML=function(){return this.previewContent.innerHTML},t.prototype.setHTML=function(e){this.previewContent.innerHTML=e},t.prototype.setHeight=function(e){qo(this.el,{height:e+"px"})},t.prototype.setMinHeight=function(e){qo(this.el,{minHeight:e+"px"})},t}();function vs(t,e){for(var r=t.depth;r;){var n=t.node(r);if(e(n,r))return{node:n,depth:r,offset:r>0?t.before(r):0};r-=1}return null}function Oc(t){return!!vs(t,function(e){var r=e.type;return r.name==="listItem"||r.name==="bulletList"||r.name==="orderedList"})}function Cp(t){return!!vs(t,function(e){var r=e.type;return r.name==="tableHeadCell"||r.name==="tableBodyCell"})}function Ac(t){return vs(t,function(e){var r=e.type;return r.name==="listItem"})}function Xp(t){return{tag:t,getAttrs:function(e){var r=e.getAttribute("data-raw-html");return de({},r&&{rawHTML:r})}}}function aS(t){return Object.keys(t).reduce(function(e,r){return r!=="rawHTML"&&t[r]&&(r=r==="className"?"class":r,e[r]=t[r]),e},{})}function oS(t){return{tag:t,getAttrs:function(e){return["rawHTML","colspan","rowspan","extended"].reduce(function(r,n){var i=n==="rawHTML"?"data-raw-html":n,a=e.getAttribute(i);return a&&(r[n]=si(["rawHTML","extended"],n)?a:Number(a)),r},{})}}}function Kn(){return{htmlAttrs:{default:null},classNames:{default:null}}}function On(t){var e=t.htmlAttrs,r=t.classNames;return de(de({},e),{class:r?r.join(" "):null})}function pxe(t,e){var r=t.parent,n=t.startIndex,i=t.endIndex,a=r.contentMatchAt(n).findWrapping(e);if(a){var o=a.length?a[0]:e;return r.canReplaceWith(n,i,o)?a:null}return null}function hxe(t,e){var r=t.parent,n=t.startIndex,i=t.endIndex,a=r.child(n),o=e.contentMatch.findWrapping(a.type);if(o){for(var s=o.length?o[o.length-1]:e,u=s.contentMatch,f=n;u&&f<i;f+=1)u=u.matchType(r.child(f).type);if(u&&u.validEnd)return o}return null}function vxe(t,e,r,n){var i=pxe(t,r),a=hxe(e,r);if(i&&a){var o=i.map(function(u){return{type:u}}),s=a.map(function(u){return{type:u,attrs:n}});return o.concat({type:r}).concat(s)}return null}function mxe(t,e,r,n,i){for(var a=e.start,o=e.end,s=e.startIndex,u=e.endIndex,f=e.parent,d=Ee.empty,v=r.length-1;v>=0;v-=1)d=Ee.from(r[v].type.create(r[v].attrs,d));t.step(new ta(a-(n?2:0),o,a,o,new Ze(d,0,0),r.length,!0));for(var m=0,v=0;v<r.length;v+=1)if(r[v].type===i){m=v+1;break}for(var b=r.length-m,x=a+r.length-(n?2:0),v=s,T=u;v<T;v+=1){var S=v===s;!S&&hc(t.doc,x,b)&&(t.split(x,b),x+=b*2),x+=f.child(v).nodeSize}return t}function sS(t,e,r,n){var i=e.$from,a=e.$to,o=e.depth,s=e,u=!1;if(o>=2&&i.node(o-1).type.compatibleContent(r)&&e.startIndex===0&&i.index(o-1)){var f=t.doc.resolve(e.start-2);s=new Mf(f,f,o),e.endIndex<e.parent.childCount&&(e=new Mf(i,t.doc.resolve(a.end(o)),o)),u=!0}var d=vxe(s,e,r,n);return d?mxe(t,e,d,u,r):t}function lS(t,e){for(var r=t.resolve(e);r.node().type.name!=="paragraph";)e-=2,r=t.resolve(e);return Ac(r)}function gxe(t,e){var r=e.$from,n=e.$to,i=Ac(r),a=Ac(n);if(i&&a)for(;a;){var o=a.offset,s=a.node,u={task:!s.attrs.task,checked:!1};if(t.setNodeMarkup(o,null,u),o===i.offset)break;a=lS(t.doc,o)}return t}function yxe(t,e,r){var n=e.$from,i=e.$to,a=Ac(n),o=Ac(i);if(a&&o)for(;o;){var s=o.offset,u=o.node,f=o.depth;u.attrs.task&&t.setNodeMarkup(s,null,{task:!1,checked:!1});var d=t.doc.resolve(s);if(d.parent.type!==r){var v=d.before(f-1);t.setNodeMarkup(v,r)}if(s===a.offset)break;o=lS(t.doc,s)}return t}function uS(t){return function(e,r){var n=e.selection,i=e.tr,a=n.$from,o=n.$to,s=a.blockRange(o);if(s){var u=Oc(a)?yxe(i,s,t):sS(i,s,t);return r(u),!0}return!1}}function bxe(){return function(t,e){var r=t.selection,n=t.tr,i=t.schema,a=r.$from,o=r.$to,s=a.blockRange(o);if(s){var u=Oc(a)?gxe(n,s):sS(n,s,i.nodes.bulletList,{task:!0});return e(u),!0}return!1}}function wxe(t){return function(e,r){var n=e.tr,i=e.selection,a=i.$from,o=i.$to,s=a.blockRange(o,function(T){var S=T.childCount,M=T.firstChild;return!!S&&M.type===t});if(s&&s.startIndex>0){var u=s.parent,f=u.child(s.startIndex-1);if(f.type!==t)return!1;var d=f.lastChild&&f.lastChild.type===u.type,v=d?Ee.from(t.create()):null,m=new Ze(Ee.from(t.create(null,Ee.from(u.type.create(null,v)))),d?3:1,0),b=s.start,x=s.end;return n.step(new ta(b-(d?3:1),x,b,x,m,1,!0)),r(n),!0}return!1}}function xxe(t,e,r){var n=e.$from,i=e.$to,a=e.end,o=e.depth,s=e.parent,u=i.end(o);return a<u&&(t.step(new ta(a-1,u,a,u,new Ze(Ee.from(r.create(null,s.copy())),1,0),1,!0)),e=new Mf(t.doc.resolve(n.pos),t.doc.resolve(u),o)),t.lift(e,Rp(e)),t}function Cxe(t,e){for(var r=e.parent,n=e.end,i=e.endIndex-1,a=e.startIndex;i>a;i-=1)n-=r.child(i).nodeSize,t.delete(n-1,n+1);var o=t.doc.resolve(e.start),s=o.nodeAfter,u=e.startIndex===0,f=e.endIndex===r.childCount,d=o.node(-1),v=o.index(-1),m=d.canReplace(v+(u?0:1),v+1,s==null?void 0:s.content.append(f?Ee.empty:Ee.from(r)));if(s&&m){var b=o.pos,x=b+s.nodeSize;t.step(new ta(b-(u?1:0),x+(f?1:0),b+1,x-1,new Ze((u?Ee.empty:Ee.from(r.copy(Ee.empty))).append(f?Ee.empty:Ee.from(r.copy(Ee.empty))),u?0:1,f?0:1),u?0:1))}return t}function Exe(t){return function(e,r){var n=e.tr,i=e.selection,a=i.$from,o=i.$to,s=a.blockRange(o,function(d){var v=d.childCount,m=d.firstChild;return!!v&&m.type===t});if(s){var u=a.node(s.depth-1).type===t,f=u?xxe(n,s,t):Cxe(n,s);return r(f),!0}return!1}}function Txe(t){return function(e,r){var n=e.tr,i=e.selection,a=i.$from,o=i.$to;if(a.depth<2||!a.sameParent(o))return!1;var s=a.node(-1);if(s.type!==t)return!1;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==t||a.index(-2)!==a.node(-2).childCount-1)return!1;for(var u=a.index(-1)>0,f=Ee.empty,d=a.depth-(u?1:2);d>=a.depth-3;d-=1)f=Ee.from(a.node(d).copy(f));return f=f.append(Ee.from(t.createAndFill())),n.replace(u?a.before():a.before(-1),a.after(-3),new Ze(f,u?3:2,2)),n.setSelection(er.near(n.doc.resolve(a.pos+(u?3:2)))),r(n),!0}var v=o.pos===a.end()?s.contentMatchAt(0).defaultType:null,m=v&&[null,{type:v}];return n.delete(a.pos,o.pos),hc(n.doc,a.pos,2,m)?(n.split(a.pos,2,m),r(n),!0):!1}}function _xe(){return function(){return function(t,e){var r=t.selection,n=t.schema,i=r.$from,a=r.$to,o=i.blockRange(a);return o&&Oc(i)?wxe(n.nodes.listItem)(t,e):!1}}}function Sxe(){return function(){return function(t,e){var r=t.selection,n=t.schema,i=r.$from,a=r.$to,o=i.blockRange(a);return o&&Oc(i)?Exe(n.nodes.listItem)(t,e):!1}}}function Ay(){return{indent:_xe(),outdent:Sxe()}}var Ax=new Map,Zn=function(){function t(e,r,n,i){this.table=e,this.tableRows=r,this.tableStartPos=n,this.rowInfo=i}return t.create=function(e){var r=vs(e,function(x){var T=x.type;return T.name==="table"});if(r){var n=r.node,i=r.depth,a=r.offset,o=Ax.get(n);if((o==null?void 0:o.tableStartPos)===a+1)return o;var s=[],u=e.start(i),f=n.child(0),d=n.child(1),v=ag(f,u),m=ag(d,u+f.nodeSize);f.forEach(function(x){return s.push(x)}),d.forEach(function(x){return s.push(x)});var b=new t(n,s,u,v.concat(m));return Ax.set(n,b),b}return null},Object.defineProperty(t.prototype,"totalRowCount",{get:function(){return this.rowInfo.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalColumnCount",{get:function(){return this.rowInfo[0].length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tableStartOffset",{get:function(){return this.tableStartPos},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tableEndOffset",{get:function(){return this.tableStartPos+this.table.nodeSize-1},enumerable:!1,configurable:!0}),t.prototype.getCellInfo=function(e,r){return this.rowInfo[e][r]},t.prototype.posAt=function(e,r){for(var n=0,i=this.tableStartPos;;n+=1){var a=i+this.tableRows[n].nodeSize;if(n===e){for(var o=r;o<this.totalColumnCount&&this.rowInfo[n][o].offset<i;)o+=1;return o===this.totalColumnCount?a:this.rowInfo[n][o].offset}i=a}},t.prototype.getNodeAndPos=function(e,r){var n=this.rowInfo[e][r];return{node:this.table.nodeAt(n.offset-this.tableStartOffset),pos:n.offset}},t.prototype.extendedRowspan=function(e,r){return!1},t.prototype.extendedColspan=function(e,r){return!1},t.prototype.getRowspanCount=function(e,r){return 0},t.prototype.getColspanCount=function(e,r){return 0},t.prototype.decreaseColspanCount=function(e,r){return 0},t.prototype.decreaseRowspanCount=function(e,r){return 0},t.prototype.getColspanStartInfo=function(e,r){return null},t.prototype.getRowspanStartInfo=function(e,r){return null},t.prototype.getCellStartOffset=function(e,r){var n=this.rowInfo[e][r].offset;return this.extendedRowspan(e,r)?this.posAt(e,r):n},t.prototype.getCellEndOffset=function(e,r){var n=this.rowInfo[e][r],i=n.offset,a=n.nodeSize;return this.extendedRowspan(e,r)?this.posAt(e,r):i+a},t.prototype.getCellIndex=function(e){for(var r=0;r<this.totalRowCount;r+=1)for(var n=this.rowInfo[r],i=0;i<this.totalColumnCount;i+=1)if(n[i].offset+1>e.pos)return[r,i];return[0,0]},t.prototype.getRectOffsets=function(e,r){var n,i,a;r===void 0&&(r=e),e.pos>r.pos&&(n=[r,e],e=n[0],r=n[1]);var o=this.getCellIndex(e),s=o[0],u=o[1],f=this.getCellIndex(r),d=f[0],v=f[1];return i=A0(s,d),s=i[0],d=i[1],a=A0(u,v),u=a[0],v=a[1],this.getSpannedOffsets({startRowIdx:s,startColIdx:u,endRowIdx:d,endColIdx:v})},t.prototype.getSpannedOffsets=function(e){return e},t}(),ag=function(t,e){var r=[];return t.forEach(function(n,i){var a={rowspanMap:{},colspanMap:{},length:0};n.forEach(function(o,s){for(var u=o.nodeSize,f=0;a[f];)f+=1;a[f]={offset:e+i+s+2,nodeSize:u},a.length+=1}),r.push(a)}),r};function kxe(t,e){return cy(Zn.prototype,t),ag=e,Zn}function Oxe(t,e,r){for(var n=r.startRowIdx,i=r.startColIdx,a=r.endRowIdx,o=r.endColIdx,s=[],u=n;u<=a;u+=1)for(var f=i;f<=o;f+=1){var d=e.getCellInfo(u,f),v=d.offset,m=d.nodeSize;s.push(new UT(t.resolve(v+1),t.resolve(v+m-1)))}return s}function Axe(t,e){var r=[];return t.childCount&&r.push(t),e.childCount&&r.push(e),Ee.from(r)}var My=function(t){it(e,t);function e(r,n){n===void 0&&(n=r);var i=this,a=r.node(0),o=Zn.create(r),s=o.getRectOffsets(r,n),u=Oxe(a,o,s);return i=t.call(this,u[0].$from,u[0].$to,u)||this,i.startCell=r,i.endCell=n,i.offsetMap=o,i.isCellSelection=!0,i.visible=!1,i}return e.prototype.map=function(r,n){var i=this.startCell.pos,a=this.endCell.pos,o=r.resolve(n.map(i)),s=r.resolve(n.map(a)),u=Zn.create(o);if(this.offsetMap.totalColumnCount>u.totalColumnCount||this.offsetMap.totalRowCount>u.totalRowCount){var f={tableBody:1,tableRow:2,tableCell:3,paragraph:4},d=f[s.parent.type.name],v=s.end(s.depth-d),m=Math.min(v-4,s.pos);return $r.create(r,m)}return new e(o,s)},e.prototype.eq=function(r){return r instanceof e&&r.startCell.pos===this.startCell.pos&&r.endCell.pos===this.endCell.pos},e.prototype.content=function(){for(var r=this.startCell.node(-2),n=this.startCell.start(-2),i=r.child(1).firstChild,a=r.child(0).type.create(),o=r.child(1).type.create(),s=Zn.create(this.startCell),u=s.getRectOffsets(this.startCell,this.endCell),f=u.startRowIdx,d=u.startColIdx,v=u.endRowIdx,m=u.endColIdx,b=!1,x=f;x<=v;x+=1){for(var T=[],S=d;S<=m;S+=1){var M=s.getCellInfo(x,S).offset,L=r.nodeAt(M-n);L&&(b=L.type.name==="tableHeadCell",s.extendedRowspan(x,S)||s.extendedColspan(x,S)?T.push(L.type.create({extended:!0})):T.push(L.copy(L.content)))}var P=i.copy(Ee.from(T)),A=b?a:o;A.content=A.content.append(Ee.from(P))}return new Ze(Axe(a,o),1,1)},e}(er);function Mxe(t,e,r){for(var n=e.nodes,i=n.tableRow,a=n.tableHeadCell,o=n.paragraph,s=[],u=0;u<t;u+=1){var f=r&&r[u],d=o.create(null,f?e.text(f):[]);s.push(a.create(null,d))}return[i.create(null,s)]}function cS(t,e,r,n){for(var i=r.nodes,a=i.tableRow,o=i.tableBodyCell,s=i.paragraph,u=[],f=0;f<t;f+=1){for(var d=[],v=0;v<e;v+=1){var m=n&&n[f*e+v],b=s.create(null,m?r.text(m):[]);d.push(o.create(null,b))}u.push(a.create(null,d))}return u}function Ud(t,e,r,n){n===void 0&&(n=null);for(var i=r.nodes,a=i.tableHeadCell,o=i.tableBodyCell,s=i.paragraph,u=e===0?a:o,f=[],d=0;d<t;d+=1)f.push(u.create(n,s.create()));return f}function fS(t,e){for(;t&&t!==e;){if(t.nodeName==="TD"||t.nodeName==="TH")return t;t=t.parentNode}return null}function dS(t){return vs(t,function(e){var r=e.type;return r.name==="tableHeadCell"||r.name==="tableBodyCell"})}function Mo(t){if(t instanceof $r){var e=t.$anchor,r=dS(e);if(r){var n=e.node(0).resolve(e.before(r.depth));return{anchor:n,head:n}}}var i=t,a=i.startCell,o=i.endCell;return{anchor:a,head:o}}function pS(t){var e;if(t.size){var r=t.content,n=t.openStart,i=t.openEnd;if(r.childCount!==1)return null;for(;r.childCount===1&&(n>0&&i>0||((e=r.firstChild)===null||e===void 0?void 0:e.type.name)==="table");)n-=1,i-=1,r=r.firstChild.content;if(r.firstChild.type.name==="tableHead"||r.firstChild.type.name==="tableBody")return r}return null}function fc(t){var e=t.startRowIdx,r=t.startColIdx,n=t.endRowIdx,i=t.endColIdx,a=n-e+1,o=i-r+1;return{rowCount:a,columnCount:o}}function Lxe(t,e){return de(de({},t.attrs),e)}var sl=new wu("cellSelection"),Dxe=2,Ixe=function(){function t(e){this.view=e,this.handlers={mousedown:this.handleMousedown.bind(this),mousemove:this.handleMousemove.bind(this),mouseup:this.handleMouseup.bind(this)},this.startCellPos=null,this.init()}return t.prototype.init=function(){this.view.dom.addEventListener("mousedown",this.handlers.mousedown)},t.prototype.handleMousedown=function(e){var r=fS(e.target,this.view.dom);if(e.button===Dxe){e.preventDefault();return}if(r){var n=this.getCellPos(e);n&&(this.startCellPos=n),this.bindEvent()}},t.prototype.handleMousemove=function(e){var r=sl.getState(this.view.state),n=this.getCellPos(e),i=this.startCellPos,a;r?a=this.view.state.doc.resolve(r):i!==n&&(a=i),a&&i&&n&&this.setCellSelection(i,n)},t.prototype.handleMouseup=function(){this.startCellPos=null,this.unbindEvent(),sl.getState(this.view.state)!==null&&this.view.dispatch(this.view.state.tr.setMeta(sl,-1))},t.prototype.bindEvent=function(){var e=this.view.dom;e.addEventListener("mousemove",this.handlers.mousemove),e.addEventListener("mouseup",this.handlers.mouseup)},t.prototype.unbindEvent=function(){var e=this.view.dom;e.removeEventListener("mousemove",this.handlers.mousemove),e.removeEventListener("mouseup",this.handlers.mouseup)},t.prototype.getCellPos=function(e){var r=e.clientX,n=e.clientY,i=this.view.posAtCoords({left:r,top:n});if(i){var a=this.view.state.doc,o=a.resolve(i.pos),s=dS(o);if(s){var u=o.before(s.depth);return a.resolve(u)}}return null},t.prototype.setCellSelection=function(e,r){var n=this.view.state,i=n.selection,a=n.tr,o=sl.getState(this.view.state)===null,s=new My(e,r);if(o||!i.eq(s)){var u=a.setSelection(s);o&&u.setMeta(sl,r.pos),this.view.dispatch(u)}},t.prototype.destroy=function(){this.view.dom.removeEventListener("mousedown",this.handlers.mousedown)},t}(),Rxe=lt("cell-selected");function Nxe(t){var e=t.selection,r=t.doc;if(e instanceof My){var n=[],i=e.ranges;return i.forEach(function(a){var o=a.$from,s=a.$to;n.push(kn.node(o.pos-1,s.pos+1,{class:Rxe}))}),Ir.create(r,n)}return null}function Pxe(){return new Hi({key:sl,state:{init:function(){return null},apply:function(t,e){var r=t.getMeta(sl);if(r)return r===-1?null:r;if(lp(e)||!t.docChanged)return e;var n=t.mapping.mapResult(e),i=n.deleted,a=n.pos;return i?null:a}},props:{decorations:Nxe,createSelectionBetween:function(t){var e=t.state;return lp(sl.getState(e))?null:e.selection}},view:function(t){return new Ixe(t)}})}var hS=function(){function t(){this.keys=[],this.values=[]}return t.prototype.getKeyIndex=function(e){return pu(e,this.keys)},t.prototype.get=function(e){return this.values[this.getKeyIndex(e)]},t.prototype.set=function(e,r){var n=this.getKeyIndex(e);return n>-1?this.values[n]=r:(this.keys.push(e),this.values.push(r)),this},t.prototype.has=function(e){return this.getKeyIndex(e)>-1},t.prototype.delete=function(e){var r=this.getKeyIndex(e);return r>-1?(this.keys.splice(r,1),this.values.splice(r,1),!0):!1},t.prototype.forEach=function(e,r){var n=this;r===void 0&&(r=this),this.values.forEach(function(i,a){i&&n.keys[a]&&e.call(r,i,n.keys[a],n)})},t.prototype.clear=function(){this.keys=[],this.values=[]},t}(),Fv="en-US",Bxe=function(){function t(){this.code=Fv,this.langs=new hS}return t.prototype.setCode=function(e){this.code=e||Fv},t.prototype.setLanguage=function(e,r){var n=this;e=[].concat(e),e.forEach(function(i){if(!n.langs.has(i))n.langs.set(i,r);else{var a=n.langs.get(i);n.langs.set(i,iy(a,r))}})},t.prototype.get=function(e,r){r||(r=this.code);var n=this.langs.get(r);n||(n=this.langs.get(Fv));var i=n[e];if(!i)throw new Error('There is no text key "'+e+'" in '+r);return i},t}(),Ft=new Bxe,Fxe=[[{action:"Add row to up",command:"addRowToUp",disableInThead:!0,className:"add-row-up"},{action:"Add row to down",command:"addRowToDown",disableInThead:!0,className:"add-row-down"},{action:"Remove row",command:"removeRow",disableInThead:!0,className:"remove-row"}],[{action:"Add column to left",command:"addColumnToLeft",className:"add-column-left"},{action:"Add column to right",command:"addColumnToRight",className:"add-column-right"},{action:"Remove column",command:"removeColumn",className:"remove-column"}],[{action:"Align column to left",command:"alignColumn",payload:{align:"left"},className:"align-column-left"},{action:"Align column to center",command:"alignColumn",payload:{align:"center"},className:"align-column-center"},{action:"Align column to right",command:"alignColumn",payload:{align:"right"},className:"align-column-right"}],[{action:"Remove table",command:"removeTable",className:"remove-table"}]];function Hxe(t,e){return Fxe.map(function(r){return r.map(function(n){var i=n.action,a=n.command,o=n.payload,s=n.disableInThead,u=n.className;return{label:Ft.get(i),onClick:function(){t.emit("command",a,o)},disabled:e&&!!s,className:u}})}).concat()}function qxe(t){return new Hi({props:{handleDOMEvents:{contextmenu:function(e,r){var n=fS(r.target,e.dom);if(n){r.preventDefault();var i=r,a=i.clientX,o=i.clientY,s=e.dom.parentNode.getBoundingClientRect(),u=s.left,f=s.top,d=n.nodeName==="TH";return t.emit("contextmenu",{pos:{left:a-u+10+"px",top:o-f+30+"px"},menuGroups:Hxe(t,d),tableCell:n}),!0}return!1}}}})}function $xe(){return new Hi({props:{handleDOMEvents:{mousedown:function(t,e){var r=e,n=r.clientX,i=r.clientY,a=t.posAtCoords({left:n,top:i});if(a){var o=t.state,s=o.doc,u=o.tr,f=s.resolve(a.pos),d=Ac(f),v=e.target,m=getComputedStyle(v,":before"),b=e,x=b.offsetX,T=b.offsetY;if(!d||!py(m,x,T))return!1;e.preventDefault();var S=f.before(d.depth),M=d.node.attrs;return u.setNodeMarkup(S,null,de(de({},M),{checked:!M.checked})),t.dispatch(u),!0}return!1}}}})}var Uxe=["image","link","customBlock","frontMatter"],jxe=["strong","strike","emph","code"],vS=["bulletList","orderedList","taskList"];function zxe(t,e){var r=t.type.name;return r==="listItem"?t.attrs.task?"taskList":e.type.name:r.indexOf("table")!==-1?"table":r}function Wxe(t,e){e[t]={active:!0},vS.filter(function(r){return r!==t}).forEach(function(r){e[r]&&delete e[r]})}function Vxe(t,e,r,n){jxe.forEach(function(i){var a=r.marks[i],o=t.marksAcross(e)||[],s=!!a.isInSet(o);s&&(n[i]={active:!0})})}function Gxe(t,e,r){var n=t.$from,i=t.$to,a=t.from,o=t.to,s={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}};return e.nodesBetween(a,o,function(u,f,d){var v=zxe(u,d);si(Uxe,v)||(si(vS,v)?(Wxe(v,s),s.indent.disabled=!1,s.outdent.disabled=!1):v==="paragraph"||v==="text"?Vxe(n,i,r,s):s[v]={active:!0})}),s}function Kxe(t){return new Hi({view:function(){return{update:function(e){var r=e.state,n=r.selection,i=r.doc,a=r.schema;t.emit("changeToolbarState",{toolbarState:Gxe(n,i,a)})}}}})}var Jxe=function(){function t(e,r,n,i){var a=this;this.openEditor=function(){if(a.innerEditorView)throw new Error("The editor is already opened.");a.dom.draggable=!1,a.wrapper.style.display="none",a.innerViewContainer.style.display="block",a.innerEditorView=new dn(a.innerViewContainer,{state:ii.create({doc:a.node,plugins:[op({"Mod-z":function(){return Fd(a.innerEditorView.state,a.innerEditorView.dispatch)},"Shift-Mod-z":function(){return q_(a.innerEditorView.state,a.innerEditorView.dispatch)},Tab:function(o,s){return s(o.tr.insertText("	")),!0},Enter:M_,Escape:function(){return a.cancelEditing(),!0},"Ctrl-Enter":function(){return a.saveAndFinishEditing(),!0}}),H_()]}),dispatchTransaction:function(o){return a.dispatchInner(o)},handleDOMEvents:{mousedown:function(){return a.editorView.hasFocus()&&a.innerEditorView.focus(),!0},blur:function(){return a.saveAndFinishEditing(),!0}}}),a.innerEditorView.focus()},this.node=e,this.editorView=r,this.getPos=n,this.toDOMAdaptor=i,this.innerEditorView=null,this.canceled=!1,this.dom=document.createElement("div"),this.dom.className=lt("custom-block"),this.wrapper=document.createElement("div"),this.wrapper.className=lt("custom-block-view"),this.createInnerViewContainer(),this.renderCustomBlock(),this.dom.appendChild(this.innerViewContainer),this.dom.appendChild(this.wrapper)}return t.prototype.renderToolArea=function(){var e=this,r=document.createElement("div"),n=document.createElement("span"),i=document.createElement("button");r.className="tool",n.textContent=this.node.attrs.info,n.className="info",i.type="button",i.addEventListener("click",function(){return e.openEditor()}),r.appendChild(n),r.appendChild(i),this.wrapper.appendChild(r)},t.prototype.renderCustomBlock=function(){var e=this.toDOMAdaptor.getToDOMNode(this.node.attrs.info);if(e){for(var r=e(this.node);this.wrapper.hasChildNodes();)this.wrapper.removeChild(this.wrapper.lastChild);r&&this.wrapper.appendChild(r),this.renderToolArea()}},t.prototype.createInnerViewContainer=function(){this.innerViewContainer=document.createElement("div"),this.innerViewContainer.className=lt("custom-block-editor"),this.innerViewContainer.style.display="none"},t.prototype.closeEditor=function(){this.innerEditorView&&(this.innerEditorView.destroy(),this.innerEditorView=null,this.innerViewContainer.style.display="none"),this.wrapper.style.display="block"},t.prototype.saveAndFinishEditing=function(){var e=this.editorView.state.selection.to,r=this.editorView.state;this.editorView.dispatch(r.tr.setSelection(rn(r.tr,e))),this.editorView.focus(),this.renderCustomBlock(),this.closeEditor()},t.prototype.cancelEditing=function(){var e=jN(this.innerEditorView.state);for(this.canceled=!0;e--;)Fd(this.innerEditorView.state,this.innerEditorView.dispatch),Fd(this.editorView.state,this.editorView.dispatch);this.canceled=!1;var r=this.editorView.state.selection.to,n=this.editorView.state;this.editorView.dispatch(n.tr.setSelection($r.create(n.doc,r))),this.editorView.focus(),this.closeEditor()},t.prototype.dispatchInner=function(e){var r=this.innerEditorView.state.applyTransaction(e),n=r.state,i=r.transactions;if(this.innerEditorView.updateState(n),!this.canceled&&Ha(this.getPos)){for(var a=this.editorView.state.tr,o=Gn.offset(this.getPos()+1),s=0;s<i.length;s+=1)for(var u=i[s].steps,f=0;f<u.length;f+=1)a.step(u[f].map(o));a.docChanged&&this.editorView.dispatch(a)}},t.prototype.update=function(e){return e.sameMarkup(this.node)?(this.node=e,this.innerEditorView||this.renderCustomBlock(),!0):!1},t.prototype.stopEvent=function(e){return!!this.innerEditorView&&!!e.target&&this.innerEditorView.dom.contains(e.target)},t.prototype.ignoreMutation=function(){return!0},t.prototype.destroy=function(){this.dom.removeEventListener("dblclick",this.openEditor),this.closeEditor()},t}(),Mx="image-link",Yxe=function(){function t(e,r,n,i){var a=this,o;this.handleMousedown=function(s){s.preventDefault();var u=s.target,f=s.offsetX,d=s.offsetY;if(a.imageLink&&Ha(a.getPos)&&J_(u,Mx)){var v=getComputedStyle(u,":before");if(s.stopPropagation(),py(v,f,d)){var m=a.view.state.tr,b=a.getPos();m.setSelection(rn(m,b,b+1)),a.view.dispatch(m),a.eventEmitter.emit("openPopup","link",a.imageLink.attrs)}}},this.node=e,this.view=r,this.getPos=n,this.eventEmitter=i,this.imageLink=(o=e.marks.filter(function(s){var u=s.type;return u.name==="link"})[0])!==null&&o!==void 0?o:null,this.dom=this.createElement(),this.bindEvent()}return t.prototype.createElement=function(){var e=this.createImageElement(this.node);if(this.imageLink){var r=document.createElement("span");return r.className=Mx,r.appendChild(e),r}return e},t.prototype.createImageElement=function(e){var r=document.createElement("img"),n=e.attrs,i=n.imageUrl,a=n.altText,o=On(e.attrs);return r.src=i,a&&(r.alt=a),my(o,r),r},t.prototype.bindEvent=function(){this.imageLink&&this.dom.addEventListener("mousedown",this.handleMousedown)},t.prototype.stopEvent=function(){return!0},t.prototype.destroy=function(){this.imageLink&&this.dom.removeEventListener("mousedown",this.handleMousedown)},t}(),Xxe="toastui-editor-ww-code-block",Qxe="toastui-editor-ww-code-block-language",Zxe=function(){function t(e,r,n,i){var a=this;this.dom=null,this.contentDOM=null,this.input=null,this.timer=null,this.handleMousedown=function(o){var s=o.target,u=getComputedStyle(s,":after");if(u.backgroundImage!=="none"&&Ha(a.getPos)){var f=a.view.coordsAtPos(a.getPos()),d=f.top,v=f.right;a.createLanguageEditor({top:d,right:v})}},this.handleKeydown=function(o){o.key==="Enter"&&a.input&&(o.preventDefault(),a.changeLanguage())},this.node=e,this.view=r,this.getPos=n,this.eventEmitter=i,this.createElement(),this.bindDOMEvent(),this.bindEvent()}return t.prototype.createElement=function(){var e=this.node.attrs.language,r=document.createElement("div");r.setAttribute("data-language",e||"text"),r.className=Xxe;var n=this.createCodeBlockElement(),i=n.firstChild;r.appendChild(n),this.dom=r,this.contentDOM=i},t.prototype.createCodeBlockElement=function(){var e=document.createElement("pre"),r=document.createElement("code"),n=this.node.attrs.language,i=On(this.node.attrs);return n&&r.setAttribute("data-language",n),my(i,e),e.appendChild(r),e},t.prototype.createLanguageEditor=function(e){var r=this,n=e.top,i=e.right,a=document.createElement("span");a.className=Qxe;var o=document.createElement("input");o.type="text",o.value=this.node.attrs.language,a.appendChild(o),this.view.dom.parentElement.appendChild(a);var s=a.clientWidth;qo(a,{top:n+10+"px",left:i-s-10+"px",width:s+"px"}),this.input=o,this.input.addEventListener("blur",function(){return r.changeLanguage()}),this.input.addEventListener("keydown",this.handleKeydown),this.clearTimer(),this.timer=setTimeout(function(){r.input.focus()})},t.prototype.bindDOMEvent=function(){this.dom&&this.dom.addEventListener("click",this.handleMousedown)},t.prototype.bindEvent=function(){var e=this;this.eventEmitter.listen("scroll",function(){e.input&&e.reset()})},t.prototype.changeLanguage=function(){if(this.input&&Ha(this.getPos)){var e=this.input.value;this.reset();var r=this.getPos(),n=this.view.state.tr;n.setNodeMarkup(r,null,{language:e}),this.view.dispatch(n)}},t.prototype.reset=function(){var e;if(!((e=this.input)===null||e===void 0)&&e.parentElement){var r=this.input.parentElement;this.input=null,vu(r)}},t.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},t.prototype.stopEvent=function(){return!0},t.prototype.update=function(e){return e.sameMarkup(this.node)?(this.node=e,!0):!1},t.prototype.destroy=function(){this.reset(),this.clearTimer(),this.dom&&this.dom.removeEventListener("click",this.handleMousedown)},t}(),eCe=/MsoListParagraph/,mS=/style=(.|\n)*mso-/,gS=/mso-list:(.*)/,tCe=/O:P/,rCe=/^(n|u|l)/,nCe="p.MsoListParagraph";function iCe(t){return mS.test(t)}function aCe(t){for(var e=[],r=document.createTreeWalker(t,1,null,!1);r.nextNode();){var n=r.currentNode;if(zp(n)){var i=n,a=i.outerHTML,o=i.textContent,s=mS.test(a),u=gS.test(a);s&&!u&&o?e.push([n,!0]):(tCe.test(n.nodeName)||s&&!o||u)&&e.push([n,!1])}}return e.forEach(function(f){var d=f[0],v=f[1];v?TB(d):vu(d)}),t.innerHTML.trim()}function oCe(t,e){var r=t.getAttribute("style");if(r){var n=r.match(gS),i=n[1],a=i.trim().split(" "),o=a[1],s=parseInt(o.replace("level",""),10),u=rCe.test(t.textContent||"");return{id:e,level:s,prev:null,parent:null,children:[],unordered:u,contents:aCe(t)}}return null}function sCe(t,e){if(e.level<t.level)e.children.push(t),t.parent=e;else{for(;e&&e.level!==t.level;)e=e.parent;e&&(t.prev=e,t.parent=e.parent,t.parent&&t.parent.children.push(t))}}function lCe(t){var e=[];return t.forEach(function(r,n){var i=e[n-1],a=oCe(r,n);a&&(i&&sCe(a,i),e.push(a))}),e}function yS(t){var e=t[0].unordered?"ul":"ol",r=document.createElement(e);return t.forEach(function(n){var i=n.children,a=n.contents,o=document.createElement("li");o.innerHTML=a,r.appendChild(o),i.length&&r.appendChild(yS(i))}),r}function uCe(t){var e=lCe(t),r=e.filter(function(n){var i=n.parent;return!i});return yS(r)}function cCe(t){for(;t&&!zp(t);)t=t.nextSibling;return t?!eCe.test(t.className):!0}function fCe(t){var e=document.createElement("div");e.innerHTML=t;var r=[],n=xB(e,nCe);n.forEach(function(a){var o=cCe(a.nextSibling);if(r.push(a),o){var s=uCe(r),u=a.nextSibling;u?EB(s,u):CB(e,s),r=[]}vu(a)});var i=n.length?"<p></p>":"";return""+i+e.innerHTML}var Lx="<!--StartFragment-->",dCe="<!--EndFragment-->";function pCe(t){var e=t.indexOf(Lx),r=t.lastIndexOf(dCe);return e>-1&&r>-1&&(t=t.slice(e+Lx.length,r)),t.replace(/<br[^>]*>/g,e1)}function hCe(t){return/<\/td>((?!<\/tr>)[\s\S])*$/i.test(t)&&(t="<tr>"+t+"</tr>"),/<\/tr>((?!<\/table>)[\s\S])*$/i.test(t)&&(t="<table>"+t+"</table>"),t}function vCe(t){return t=pCe(t),t=hCe(t),iCe(t)&&(t=fCe(t)),t}function mCe(t){var e=t.reduce(function(r,n){return r.childCount>n.childCount?r:n});return e.childCount}function bS(t,e,r){for(var n=[],i=t.childCount,a=0;a<i;a+=1)if(!t.child(a).attrs.extended){var o=a<i?r.create(t.child(a).attrs,t.child(a).content):r.createAndFill();n.push(o)}return n}function wS(t,e,r){var n=r.nodes,i=n.tableRow,a=n.tableHeadCell,o=bS(t,e,a);return i.create(null,o)}function xS(t,e,r){var n=r.nodes,i=n.tableRow,a=n.tableBodyCell,o=bS(t,e,a);return i.create(null,o)}function gCe(t,e){for(var r=e.nodes,n=r.tableRow,i=r.tableBodyCell,a=[],o=0;o<t;o+=1){var s=i.createAndFill();a.push(s)}return n.create({dummyRowForPasting:!0},a)}function CS(t){var e=[],r=[];if(t.firstChild.type.name==="tableHead"){var n=t.firstChild;n.forEach(function(a){return e.push(a)})}if(t.lastChild.type.name==="tableBody"){var i=t.lastChild;i.forEach(function(a){return r.push(a)})}return na(na([],e),r)}function yCe(t,e,r){var n=wS(t,e,r);return r.nodes.tableHead.create(null,n)}function Dx(t,e,r){var n=t.map(function(a){return xS(a,e,r)});if(!t.length){var i=gCe(e,r);n.push(i)}return r.nodes.tableBody.create(null,n)}function bCe(t,e,r,n){var i=mCe(t);if(r&&n)return e.nodes.table.create(null,[Dx(t,i,e)]);var a=t[0],o=t.slice(1),s=[yCe(a,i,e)];return o.length&&s.push(Dx(o,i,e)),e.nodes.table.create(null,s)}function wCe(t,e,r){var n=[],i=t.content,a=t.openStart,o=t.openEnd;return i.forEach(function(s){if(s.type.name==="table"){var u=pS(new Ze(Ee.from(s),0,0));if(u){var f=CS(u),d=u.firstChild.type.name==="tableBody",v=bCe(f,e,d,r);n.push(v)}}else n.push(s)}),new Ze(Ee.from(n),a,o)}var xCe=4,CCe=2;function jd(t){return t*xCe}function ECe(t,e,r){var n=[],i=CS(t),a=i[0].childCount,o=i.length,s=e.startRowIdx===0,u=i.slice(0,o);if(s){var f=u.shift();if(f){var d=wS(f,a,r).content;n.push(d)}}return u.forEach(function(v){if(!v.attrs.dummyRowForPasting){var m=xS(v,a,r).content;n.push(m)}}),n}function TCe(t,e,r){for(var n=e.startRowIdx,i=e.startColIdx,a=r.length,o=0,s=function(b){var x=r[b].childCount;r[b].forEach(function(T){var S=T.attrs,M=S.colspan;M>1&&(x+=M-1)}),o=Math.max(o,x)},u=0;u<a;u+=1)s(u);var f=n+a-1,d=i+o-1,v=Math.max(f+1-t.totalRowCount,0),m=Math.max(d+1-t.totalColumnCount,0);return{startRowIdx:n,startColIdx:i,endRowIdx:f,endColIdx:d,addedRowCount:v,addedColumnCount:m}}function _Ce(t,e){for(var r=t.startRowIdx,n=t.startColIdx,i=t.endRowIdx,a=t.endColIdx,o=t.addedRowCount,s=t.addedColumnCount,u=r;u<=i-o;u+=1)e.push({rowIdx:u,startColIdx:n,endColIdx:a-s})}function SCe(t,e,r,n,i){for(var a=n.startRowIdx,o=n.startColIdx,s=n.endRowIdx,u=n.endColIdx,f=n.addedRowCount,d=n.addedColumnCount,v=r.totalRowCount,m=0,b=0;b<v;b+=1){var x=r.getCellInfo(b,u-d),T=x.offset,S=x.nodeSize,M=t.mapping.map(T+S),L=Ud(d,b,e);if(t.insert(M,L),b>=a&&b<=s-f){var P=r.getCellInfo(b,u-d),A=t.mapping.map(P.offset),H=M+jd(d);i[m]={rowIdx:b,startColIdx:o,endColIdx:u,dummyOffsets:[A,H]},m+=1}}}function kCe(t,e,r,n,i){var a=n.addedRowCount,o=n.addedColumnCount,s=n.startColIdx,u=n.endColIdx,f=t.mapping.maps.length,d=r.tableEndOffset-2,v=cS(a,r.totalColumnCount+o,e),m=d;t.insert(t.mapping.slice(f).map(m),v);for(var b=0;b<a;b+=1){var x=m+jd(s)+1,T=m+jd(u+1)+1,S=m+jd(r.totalColumnCount+o)+CCe;i.push({rowIdx:b+r.totalRowCount,startColIdx:s,endColIdx:u,dummyOffsets:[x,T]}),m=S}}function OCe(t,e,r,n){var i=t.mapping.maps.length;r.forEach(function(a,o){var s=a.rowIdx,u=a.startColIdx,f=a.endColIdx,d=a.dummyOffsets,v=t.mapping.slice(i),m=new Ze(e[o],0,0),b=d?d[0]:n.getCellStartOffset(s,u),x=d?d[1]:n.getCellEndOffset(s,f);t.replace(v.map(b),v.map(x),m)})}function ACe(t,e){var r=t.state,n=r.selection,i=r.schema,a=r.tr,o=Mo(n),s=o.anchor,u=o.head;if(s&&u){var f=pS(e);if(!f)return!1;var d=Zn.create(s),v=d.getRectOffsets(s,u),m=ECe(f,v,i),b=TCe(d,v,m),x=[];return LCe(d,b)&&(_Ce(b,x),b.addedColumnCount&&SCe(a,i,d,b,x),b.addedRowCount&&kCe(a,i,d,b,x),OCe(a,m,x,d),t.dispatch(a),MCe(t,x,d.getCellInfo(0,0).offset)),!0}return!1}function MCe(t,e,r){var n=t.state,i=n.tr,a=n.doc,o=Zn.create(a.resolve(r)),s=e[0],u=s.rowIdx,f=s.startColIdx,d=gi(e),v=d.rowIdx,m=d.endColIdx,b=o.getCellInfo(u,f).offset,x=o.getCellInfo(v,m).offset;t.dispatch(i.setSelection(new My(a.resolve(b),a.resolve(x))))}function LCe(t,e){var r=t.getSpannedOffsets(e),n=fc(r),i=n.rowCount,a=n.columnCount,o=fc(e),s=o.rowCount,u=o.columnCount;return i===s&&a===u}var DCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"doc"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"block+"}},enumerable:!1,configurable:!0}),e}(Zr),ICe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"paragraph"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"inline*",group:"block",attrs:de({},Kn()),parseDOM:[{tag:"p"}],toDOM:function(r){var n=r.attrs;return["p",On(n),0]}}},enumerable:!1,configurable:!0}),e}(Zr),RCe=/\s{1,4}$/,NCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),e.prototype.addSpaces=function(){return function(r,n){var i=r.selection,a=r.tr,o=i.$from,s=i.$to,u=o.blockRange(s);return u&&!Oc(o)&&!Cp(o)?(n(a.insertText("    ",o.pos,s.pos)),!0):!1}},e.prototype.removeSpaces=function(){return function(r,n){var i=r.selection,a=r.tr,o=i.$from,s=i.$to,u=i.from,f=o.blockRange(s);if(f&&!Oc(o)&&!Cp(o)){var d=o.nodeBefore;if(d&&d.isText){var v=d.text,m=v.replace(RCe,""),b=v.length-m.length;return n(a.delete(u-b,u)),!0}}return!1}},e.prototype.keymaps=function(){return{Tab:this.addSpaces(),"Shift-Tab":this.removeSpaces()}},e}(Zr),PCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"levels",{get:function(){return[1,2,3,4,5,6]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){var r=this.levels.map(function(n){return{tag:"h"+n,getAttrs:function(i){var a=i.getAttribute("data-raw-html");return de({level:n},a&&{rawHTML:a})}}});return{attrs:de({level:{default:1},headingType:{default:"atx"},rawHTML:{default:null}},Kn()),content:"inline*",group:"block",defining:!0,parseDOM:r,toDOM:function(n){var i=n.attrs;return["h"+i.level,On(i),0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(r){return function(n,i){var a=n.schema.nodes[r.level?"heading":"paragraph"];return ny(a,r)(n,i)}}},e}(Zr),BCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"text*",group:"block",attrs:de({language:{default:null},rawHTML:{default:null}},Kn()),code:!0,defining:!0,marks:"",parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:function(r){var n=r.getAttribute("data-raw-html"),i=r.firstElementChild;return de({language:(i==null?void 0:i.getAttribute("data-language"))||null},n&&{rawHTML:n})}}],toDOM:function(r){var n=r.attrs;return[n.rawHTML||"pre",["code",de({"data-language":n.language},On(n)),0]]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n){return ny(r.schema.nodes.codeBlock)(r,n)}}},e.prototype.moveCursor=function(r){var n=this;return function(i,a){var o=i.tr,s=i.doc,u=i.schema,f=i.selection.$from,d=n.context.view;if(d.endOfTextblock(r)&&f.node().type.name==="codeBlock"){var v=f.parent.textContent.split(`
91`),m=r==="up"?f.start():f.end(),b=r==="up"?[m,v[0].length+m]:[m-gi(v).length,m],x=s.resolve(r==="up"?f.before():f.after()),T=r==="up"?x.nodeBefore:x.nodeAfter;if($P(f.pos,b[0],b[1])&&!T){var S=fy(o,x,u);if(S)return a(S),!0}}return!1}},e.prototype.keymaps=function(){var r=this.commands()();return{"Shift-Mod-p":r,"Shift-Mod-P":r,ArrowUp:this.moveCursor("up"),ArrowDown:this.moveCursor("down")}},e}(Zr),FCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"bulletList"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"listItem+",group:"block",attrs:de({rawHTML:{default:null}},Kn()),parseDOM:[Xp("ul")],toDOM:function(r){var n=r.attrs;return["ul",On(n),0]}}},enumerable:!1,configurable:!0}),e.prototype.changeList=function(){return function(r,n){return uS(r.schema.nodes.bulletList)(r,n)}},e.prototype.commands=function(){return{bulletList:this.changeList,taskList:bxe}},e.prototype.keymaps=function(){var r=this.changeList(),n=Ay(),i=n.indent,a=n.outdent;return{"Mod-u":r,"Mod-U":r,Tab:i(),"Shift-Tab":a()}},e}(Zr),HCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"orderedList"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"listItem+",group:"block",attrs:de({order:{default:1},rawHTML:{default:null}},Kn()),parseDOM:[{tag:"ol",getAttrs:function(r){var n=r.getAttribute("start"),i=r.getAttribute("data-raw-html");return de({order:r.hasAttribute("start")?Number(n):1},i&&{rawHTML:i})}}],toDOM:function(r){var n=r.attrs;return[n.rawHTML||"ol",de({start:n.order===1?null:n.order},On(n)),0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n){return uS(r.schema.nodes.orderedList)(r,n)}}},e.prototype.keymaps=function(){var r=this.commands()(),n=Ay(),i=n.indent,a=n.outdent;return{"Mod-o":r,"Mod-O":r,Tab:i(),"Shift-Tab":a()}},e}(Zr),qCe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"listItem"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"paragraph block*",selectable:!1,attrs:{task:{default:!1},checked:{default:!1},rawHTML:{default:null}},defining:!0,parseDOM:[{tag:"li",getAttrs:function(r){var n=r.getAttribute("data-raw-html");return de({task:r.hasAttribute("data-task"),checked:r.hasAttribute("data-task-checked")},n&&{rawHTML:n})}}],toDOM:function(r){var n=r.attrs,i=n.task,a=n.checked;if(!i)return[n.rawHTML||"li",0];var o=["task-list-item"];return a&&o.push("checked"),[n.rawHTML||"li",de({class:o.join(" "),"data-task":i},a&&{"data-task-checked":a}),0]}}},enumerable:!1,configurable:!0}),e.prototype.liftToPrevListItem=function(){return function(r,n){var i=r.selection,a=r.tr,o=r.schema,s=i.$from,u=i.empty,f=o.nodes.listItem,d=s.parent,v=s.node(-1);if(u&&!d.childCount&&v.type===f){if(s.index(-2)>=1)return a.delete(s.start(-1)-1,s.end(-1)),n(a),!0;var m=s.node(-3);if(m.type===f)return a.delete(s.start(-2)-1,s.end(-1)),n(a),!0}return!1}},e.prototype.keymaps=function(){var r=function(n,i){return Txe(n.schema.nodes.listItem)(n,i)};return{Backspace:this.liftToPrevListItem(),Enter:r}},e}(Zr),$Ce=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:de({rawHTML:{default:null}},Kn()),content:"block+",group:"block",parseDOM:[Xp("blockquote")],toDOM:function(r){var n=r.attrs;return["blockquote",On(n),0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n){return MN(r.schema.nodes.blockQuote)(r,n)}}},e.prototype.keymaps=function(){var r=this.commands()();return{"Alt-q":r,"Alt-Q":r}},e}(Zr),UCe={left:YCe,right:JCe,up:XCe,down:QCe};function jCe(t,e,r){var n=r[0],i=r[1],a=e.resolve(t.before(n-1));return i===n&&!a.nodeBefore}function zCe(t){for(var e,r=t.depth,n;r&&(n=t.node(r),n.type.name!=="tableBodyCell");){if(n.type.name==="listItem"){var i=t.node(r-1),a=i.lastChild===n,o=((e=n.lastChild)===null||e===void 0?void 0:e.type.name)!=="paragraph";return a?!o:!1}r-=1}return!1}function WCe(t,e,r,n,i){var a=e[0],o=e[1],s=e[2];if(t==="left"||t==="up"){if(i&&!jCe(r,n,[a,o]))return!1;var u=r.before(s),f=n.resolve(u).nodeBefore;if(f)return!1}return!0}function VCe(t,e,r,n,i){if(t==="right"||t==="down"){if(i&&!zCe(r))return!1;var a=r.after(e),o=n.resolve(a).nodeAfter;if(o)return!1}return!0}function GCe(t,e,r,n){var i=e[0],a=e[1],o=i+3,s=a>=o,u=s?i+1:a,f=WCe(t,[a,o,u],r,n,s),d=VCe(t,u,r,n,s);return f&&d}function Ix(t,e,r){var n=r[0],i=r[1],a=e.getRowspanStartInfo(n,i),o=t==="up"&&n===0,s=t==="down"&&((a==null?void 0:a.count)>1?n+a.count-1:n)===e.totalRowCount-1;return o||s}function KCe(t,e,r){var n=t.doc.resolve(e.tableStartOffset-1);return n.nodeBefore?t.setSelection(er.near(n,-1)):fy(t,n,r)}function Hv(t,e,r,n){n===void 0&&(n=!1);var i=t.doc.resolve(e.tableEndOffset);return n||!i.nodeAfter?fy(t,i,r):t.setSelection(er.near(i,1))}function JCe(t,e){var r=t[0],n=t[1],i=e.totalRowCount,a=e.totalColumnCount,o=n===a-1,s=r===i-1&&o;if(!s){var u=n+1,f=e.getColspanStartInfo(r,n);(f==null?void 0:f.count)>1&&(u+=f.count-1),(o||u===a)&&(r+=1,u=0);var d=e.getCellInfo(r,u).offset;return d+2}return null}function YCe(t,e){var r=t[0],n=t[1],i=e.totalColumnCount,a=n===0,o=r===0&&a;if(!o){n-=1,a&&(r-=1,n=i-1);var s=e.getCellInfo(r,n),u=s.offset,f=s.nodeSize;return u+f-2}return null}function XCe(t,e){var r=t[0],n=t[1];if(r>0){var i=e.getCellInfo(r-1,n),a=i.offset,o=i.nodeSize;return a+o-2}return null}function QCe(t,e){var r=t[0],n=t[1],i=e.totalRowCount;if(r<i-1){var a=r+1,o=e.getRowspanStartInfo(r,n);(o==null?void 0:o.count)>1&&(a+=o.count-1);var s=e.getCellInfo(a,n).offset;return s+2}return null}function Rx(t,e,r,n){var i=UCe[t],a=i(r,n);if(a){var o=t==="right"||t==="down"?1:-1;return e.setSelection(er.near(e.doc.resolve(a),o))}return null}function ZCe(t,e,r){var n=r[0],i=r[1];if(t==="up"||t==="down")return!1;var a=e.tableStartOffset,o=e.tableEndOffset,s=e.getCellInfo(n,i),u=s.offset,f=s.nodeSize,d=t==="left"?a:o,v=t==="left"?u-2:u+f+3;return d===v}function eEe(t,e,r){var n=t.doc.resolve(e.before(r-3));return t.setSelection(new Zt(n))}function tEe(t,e,r){var n,i,a;return t==="up"?(n=r.startRowIdx,i=0,a=-1):(n=r.endRowIdx,i=e.totalColumnCount-1,a=e.getCellInfo(n,i).nodeSize+1),{targetRowIdx:n,insertColIdx:i,nodeSize:a}}function rEe(t,e,r){var n=t.getCellInfo(e,0).offset,i=t.getCellInfo(e,r-1),a=i.offset,o=i.nodeSize;return{from:n,to:a+o}}var nEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"table"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"tableHead{1} tableBody{1}",group:"block",attrs:de({rawHTML:{default:null}},Kn()),parseDOM:[Xp("table")],toDOM:function(r){var n=r.attrs;return["table",On(n),0]}}},enumerable:!1,configurable:!0}),e.prototype.addTable=function(){return function(r){return r===void 0&&(r={rowCount:2,columnCount:1,data:[]}),function(n,i){var a=r.rowCount,o=r.columnCount,s=r.data,u=n.schema,f=n.selection,d=n.tr,v=f.from,m=f.to,b=f.$from,x=v===m;if(x&&!Cp(b)){var T=u.nodes,S=T.tableHead,M=T.tableBody,L=s==null?void 0:s.slice(0,o),P=s==null?void 0:s.slice(o,s.length),A=Mxe(o,u,L),H=cS(a-1,o,u,P),W=u.nodes.table.create(null,[S.create(null,A),M.create(null,H)]);return i(d.replaceSelectionWith(W)),!0}return!1}}},e.prototype.removeTable=function(){return function(){return function(r,n){var i=r.selection,a=r.tr,o=Zn.create(i.$anchor);if(o){var s=o.tableStartOffset,u=o.tableEndOffset,f=s-1,d=rn(a.delete(f,u),f);return n(a.setSelection(d)),!0}return!1}}},e.prototype.addColumn=function(r){return function(){return function(n,i){var a=n.selection,o=n.tr,s=n.schema,u=Mo(a),f=u.anchor,d=u.head;if(f&&d){for(var v=Zn.create(f),m=v.getRectOffsets(f,d),b=r==="left"?m.startColIdx:m.endColIdx+1,x=fc(m).columnCount,T=v.totalRowCount,S=0;S<T;S+=1){var M=Ud(x,S,s);o.insert(o.mapping.map(v.posAt(S,b)),M)}return i(o),!0}return!1}}},e.prototype.removeColumn=function(){return function(){return function(r,n){var i=r.selection,a=r.tr,o=Mo(i),s=o.anchor,u=o.head;if(s&&u){var f=Zn.create(s),d=f.getRectOffsets(s,u),v=f.totalColumnCount,m=f.totalRowCount,b=fc(d).columnCount,x=b===v;if(x)return!1;for(var T=d.startColIdx,S=d.endColIdx,M=a.mapping.maps.length,L=0;L<m;L+=1)for(var P=S;P>=T;P-=1){var A=f.getCellInfo(L,P),H=A.offset,W=A.nodeSize,J=a.mapping.slice(M).map(H),ee=J+W;a.delete(J,ee)}return n(a),!0}return!1}}},e.prototype.addRow=function(r){return function(){return function(n,i){var a=n.selection,o=n.schema,s=n.tr,u=Mo(a),f=u.anchor,d=u.head;if(f&&d){var v=Zn.create(f),m=v.totalColumnCount,b=v.getRectOffsets(f,d),x=fc(b).rowCount,T=tEe(r,v,b),S=T.targetRowIdx,M=T.insertColIdx,L=T.nodeSize,P=S===0;if(!P){for(var A=[],H=s.mapping.map(v.posAt(S,M))+L,W=[],J=0;J<m;J+=1)W=W.concat(Ud(1,S,o));for(var ee=0;ee<x;ee+=1)A.push(o.nodes.tableRow.create(null,W));return i(s.insert(H,A)),!0}}return!1}}},e.prototype.removeRow=function(){return function(){return function(r,n){var i=r.selection,a=r.tr,o=Mo(i),s=o.anchor,u=o.head;if(s&&u){var f=Zn.create(s),d=f.totalRowCount,v=f.totalColumnCount,m=f.getRectOffsets(s,u),b=fc(m).rowCount,x=m.startRowIdx,T=m.endRowIdx,S=x===0,M=b===d-1;if(M||S)return!1;for(var L=T;L>=x;L-=1){var P=rEe(f,L,v),A=P.from,H=P.to;a.delete(A-1,H+1)}return n(a),!0}return!1}}},e.prototype.alignColumn=function(){return function(r){return r===void 0&&(r={align:"center"}),function(n,i){var a=r.align,o=n.selection,s=n.tr,u=Mo(o),f=u.anchor,d=u.head;if(f&&d){for(var v=Zn.create(f),m=v.totalRowCount,b=v.getRectOffsets(f,d),x=b.startColIdx,T=b.endColIdx,S=0;S<m;S+=1)for(var M=x;M<=T;M+=1)if(!v.extendedRowspan(S,M)&&!v.extendedColspan(S,M)){var L=v.getNodeAndPos(S,M),P=L.node,A=L.pos,H=Lxe(P,{align:a});s.setNodeMarkup(A,null,H)}return i(s),!0}return!1}}},e.prototype.moveToCell=function(r){return function(n,i){var a=n.selection,o=n.tr,s=n.schema,u=Mo(a),f=u.anchor,d=u.head;if(f&&d){var v=Zn.create(f),m=v.getCellIndex(f),b=void 0;if(Ix(r,v,m)?b=Hv(o,v,s):b=Rx(r,o,m,v),b)return i(b),!0}return!1}},e.prototype.moveInCell=function(r){var n=this;return function(i,a){var o=i.selection,s=i.tr,u=i.doc,f=i.schema,d=o.$from,v=n.context.view;if(!v.endOfTextblock(r))return!1;var m=vs(d,function(P){var A=P.type;return A.name==="tableHeadCell"||A.name==="tableBodyCell"});if(m){var b=vs(d,function(P){var A=P.type;return A.name==="paragraph"}),x=m.depth;if(b&&GCe(r,[x,b.depth],d,u)){var T=Mo(o).anchor,S=Zn.create(T),M=S.getCellIndex(T),L=void 0;if(ZCe(r,S,M)?L=eEe(s,d,x):Ix(r,S,M)?r==="up"?L=KCe(s,S,f):r==="down"&&(L=Hv(s,S,f)):L=Rx(r,s,M,S),L)return a(L),!0}}return!1}},e.prototype.deleteCells=function(){return function(r,n){var i=r.schema,a=r.selection,o=r.tr,s=Mo(a),u=s.anchor,f=s.head,d=a instanceof $r;if(u&&f&&!d){for(var v=Zn.create(u),m=v.getRectOffsets(u,f),b=m.startRowIdx,x=m.startColIdx,T=m.endRowIdx,S=m.endColIdx,M=b;M<=T;M+=1)for(var L=x;L<=S;L+=1)if(!v.extendedRowspan(M,L)&&!v.extendedColspan(M,L)){var P=v.getNodeAndPos(M,L),A=P.node,H=P.pos,W=Ud(1,M,i,A.attrs);o.replaceWith(o.mapping.map(H),o.mapping.map(H+A.nodeSize),W)}return n(o),!0}return!1}},e.prototype.exitTable=function(){return function(r,n){var i=r.selection,a=r.tr,o=r.schema,s=i.$from,u=vs(s,function(m){var b=m.type;return b.name==="tableHeadCell"||b.name==="tableBodyCell"});if(u){var f=vs(s,function(m){var b=m.type;return b.name==="paragraph"});if(f){var d=Mo(i).anchor,v=Zn.create(d);return n(Hv(a,v,o,!0)),!0}}return!1}},e.prototype.commands=function(){return{addTable:this.addTable(),removeTable:this.removeTable(),addColumnToLeft:this.addColumn("left"),addColumnToRight:this.addColumn("right"),removeColumn:this.removeColumn(),addRowToUp:this.addRow("up"),addRowToDown:this.addRow("down"),removeRow:this.removeRow(),alignColumn:this.alignColumn()}},e.prototype.keymaps=function(){var r=this.deleteCells();return{Tab:this.moveToCell("right"),"Shift-Tab":this.moveToCell("left"),ArrowUp:this.moveInCell("up"),ArrowDown:this.moveInCell("down"),ArrowLeft:this.moveInCell("left"),ArrowRight:this.moveInCell("right"),Backspace:r,"Mod-Backspace":r,Delete:r,"Mod-Delete":r,"Mod-Enter":this.exitTable()}},e}(Zr),iEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"tableHead"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"tableRow{1}",attrs:de({rawHTML:{default:null}},Kn()),parseDOM:[Xp("thead")],toDOM:function(r){var n=r.attrs;return["thead",On(n),0]}}},enumerable:!1,configurable:!0}),e}(Zr),aEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"tableBody"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"tableRow+",attrs:de({rawHTML:{default:null}},Kn()),parseDOM:[{tag:"tbody",getAttrs:function(r){var n=r.querySelectorAll("tr"),i=n[0].children.length,a=r.getAttribute("data-raw-html");return i?de({},a&&{rawHTML:a}):!1}}],toDOM:function(r){var n=r.attrs;return["tbody",On(n),0]}}},enumerable:!1,configurable:!0}),e}(Zr),oEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"tableRow"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"(tableHeadCell | tableBodyCell)*",attrs:de({rawHTML:{default:null}},Kn()),parseDOM:[{tag:"tr",getAttrs:function(r){var n=r.children.length,i=r.getAttribute("data-raw-html");return n?de({},i&&{rawHTML:i}):!1}}],toDOM:function(r){var n=r.attrs;return["tr",On(n),0]}}},enumerable:!1,configurable:!0}),e}(Zr),sEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"tableHeadCell"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"paragraph+",attrs:de({align:{default:null},className:{default:null},rawHTML:{default:null},colspan:{default:null},extended:{default:null}},Kn()),isolating:!0,parseDOM:[oS("th")],toDOM:function(r){var n=r.attrs,i=aS(n);return["th",de(de({},i),On(n)),0]}}},enumerable:!1,configurable:!0}),e}(Zr),lEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"tableBodyCell"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"(paragraph | bulletList | orderedList)+",attrs:{align:{default:null},className:{default:null},rawHTML:{default:null},colspan:{default:null},rowspan:{default:null},extended:{default:null}},isolating:!0,parseDOM:[oS("td")],toDOM:function(r){var n=r.attrs,i=aS(n);return["td",i,0]}}},enumerable:!1,configurable:!0}),e}(Zr),uEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"image"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{inline:!0,attrs:de({imageUrl:{default:""},altText:{default:null},rawHTML:{default:null}},Kn()),group:"inline",selectable:!1,parseDOM:[{tag:"img[src]",getAttrs:function(r){var n=yu(r,{RETURN_DOM_FRAGMENT:!0}).firstChild,i=n.getAttribute("src")||"",a=n.getAttribute("data-raw-html"),o=n.getAttribute("alt");return de({imageUrl:i,altText:o},a&&{rawHTML:a})}}],toDOM:function(r){var n=r.attrs;return[n.rawHTML||"img",de(de({src:cc(n.imageUrl)},n.altText&&{alt:n.altText}),On(n))]}}},enumerable:!1,configurable:!0}),e.prototype.addImage=function(){return function(r){return function(n,i){var a=n.schema,o=n.tr,s=r,u=s.imageUrl,f=s.altText;if(!u)return!1;var d=a.nodes.image.createAndFill(de({imageUrl:u},f&&{altText:f}));return i(o.replaceSelectionWith(d).scrollIntoView()),!0}}},e.prototype.commands=function(){return{addImage:this.addImage()}},e}(Zr),Nx=1,cEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"thematicBreak"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:de({rawHTML:{default:null}},Kn()),group:"block",parseDOM:[{tag:"hr"}],selectable:!1,toDOM:function(r){var n=r.attrs;return["div",On(n),[n.rawHTML||"hr"]]}}},enumerable:!1,configurable:!0}),e.prototype.hr=function(){var r=this;return function(){return function(n,i){var a,o=n.selection,s=o.$from,u=o.$to;if(s===u){var f=n.doc,d=n.schema.nodes,v=d.thematicBreak,m=d.paragraph,b=[v.create()],x=s.node(Nx),T=f.child(f.childCount-1)===x,S=f.resolve(s.after(Nx)),M=((a=s.nodeAfter)===null||a===void 0?void 0:a.type.name)===r.name;return(T||M)&&b.push(m.create()),i(n.tr.insert(S.pos,b).scrollIntoView()),!0}return!1}}},e.prototype.commands=function(){return{hr:this.hr()}},e.prototype.keymaps=function(){var r=this.hr()();return{"Mod-l":r,"Mod-L":r}},e}(Zr),fEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"strong"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){var r=["b","strong"].map(function(n){return{tag:n,getAttrs:function(i){var a=i.getAttribute("data-raw-html");return de({},a&&{rawHTML:a})}}});return{attrs:de({rawHTML:{default:null}},Kn()),parseDOM:r,toDOM:function(n){var i=n.attrs;return[i.rawHTML||"strong",On(i)]}}},enumerable:!1,configurable:!0}),e.prototype.bold=function(){return function(){return function(r,n){return Vf(r.schema.marks.strong)(r,n)}}},e.prototype.commands=function(){return{bold:this.bold()}},e.prototype.keymaps=function(){var r=this.bold()();return{"Mod-b":r,"Mod-B":r}},e}(nn),dEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"emph"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){var r=["i","em"].map(function(n){return{tag:n,getAttrs:function(i){var a=i.getAttribute("data-raw-html");return de({},a&&{rawHTML:a})}}});return{attrs:de({rawHTML:{default:null}},Kn()),parseDOM:r,toDOM:function(n){var i=n.attrs;return[i.rawHTML||"em",On(i)]}}},enumerable:!1,configurable:!0}),e.prototype.italic=function(){return function(){return function(r,n){return Vf(r.schema.marks.emph)(r,n)}}},e.prototype.commands=function(){return{italic:this.italic()}},e.prototype.keymaps=function(){var r=this.italic()();return{"Mod-i":r,"Mod-I":r}},e}(nn),pEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"strike"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){var r=["s","del"].map(function(n){return{tag:n,getAttrs:function(i){var a=i.getAttribute("data-raw-html");return de({},a&&{rawHTML:a})}}});return{attrs:de({rawHTML:{default:null}},Kn()),parseDOM:r,toDOM:function(n){var i=n.attrs;return[i.rawHTML||"del",On(i)]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n){return Vf(r.schema.marks.strike)(r,n)}}},e.prototype.keymaps=function(){var r=this.commands()();return{"Mod-s":r,"Mod-S":r}},e}(nn),hEe=function(t){it(e,t);function e(r){var n=t.call(this)||this;return n.linkAttributes=r,n}return Object.defineProperty(e.prototype,"name",{get:function(){return"link"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){var r=this;return{attrs:de({linkUrl:{default:""},title:{default:null},rawHTML:{default:null}},Kn()),inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(n){var i=yu(n,{RETURN_DOM_FRAGMENT:!0}).firstChild,a=i.getAttribute("href")||"",o=i.getAttribute("title")||"",s=i.getAttribute("data-raw-html");return de({linkUrl:a,title:o},s&&{rawHTML:s})}}],toDOM:function(n){var i=n.attrs;return[i.rawHTML||"a",de(de({href:cc(i.linkUrl)},r.linkAttributes),On(i))]}}},enumerable:!1,configurable:!0}),e.prototype.addLink=function(){return function(r){return function(n,i){var a=r,o=a.linkUrl,s=a.linkText,u=s===void 0?"":s,f=n.schema,d=n.tr,v=n.selection,m=v.empty,b=v.from,x=v.to;if(b&&x&&o){var T={linkUrl:o},S=f.mark("link",T);if(m&&u){var M=ni(f,u,S);d.replaceRangeWith(b,x,M)}else d.addMark(b,x,S);return i(d.scrollIntoView()),!0}return!1}}},e.prototype.toggleLink=function(){return function(r){return function(n,i){return Vf(n.schema.marks.link,r)(n,i)}}},e.prototype.commands=function(){return{addLink:this.addLink(),toggleLink:this.toggleLink()}},e}(nn),vEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"code"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{attrs:de({rawHTML:{default:null}},Kn()),parseDOM:[{tag:"code",getAttrs:function(r){var n=r.getAttribute("data-raw-html");return de({},n&&{rawHTML:n})}}],toDOM:function(r){var n=r.attrs;return[n.rawHTML||"code",On(n)]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n){return Vf(r.schema.marks.code)(r,n)}}},e.prototype.keymaps=function(){var r=this.commands()();return{"Shift-Mod-c":r,"Shift-Mod-C":r}},e}(nn),mEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"customBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"text*",group:"block",attrs:{info:{default:null}},atom:!0,code:!0,defining:!0,parseDOM:[{tag:"div[data-custom-info]",getAttrs:function(r){var n=r.getAttribute("data-custom-info");return{info:n}}}],toDOM:function(r){var n=r.attrs;return["div",{"data-custom-info":n.info||null},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(r){return function(n,i){return r!=null&&r.info?ny(n.schema.nodes.customBlock,r)(n,i):!1}}},e}(Zr),gEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"frontMatter"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"text*",group:"block",code:!0,defining:!0,parseDOM:[{preserveWhitespace:"full",tag:"div[data-front-matter]"}],toDOM:function(){return["div",{"data-front-matter":"true"},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n,i){var a=r.selection.$from;return i.endOfTextblock("down")&&a.node().type.name==="frontMatter"?ry(r,n):!1}}},e.prototype.keymaps=function(){return{Enter:this.commands()()}},e}(Zr),yEe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"htmlComment"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return{content:"text*",group:"block",code:!0,defining:!0,parseDOM:[{preserveWhitespace:"full",tag:"div[data-html-comment]"}],toDOM:function(){return["div",{"data-html-comment":"true"},0]}}},enumerable:!1,configurable:!0}),e.prototype.commands=function(){return function(){return function(r,n,i){var a=r.selection.$from;return i.endOfTextblock("down")&&a.node().type.name==="htmlComment"?ry(r,n):!1}}},e.prototype.keymaps=function(){return{Enter:this.commands()()}},e}(Zr);function bEe(t){return new u1([new DCe,new ICe,new NCe,new PCe,new BCe,new FCe,new HCe,new qCe,new $Ce,new nEe,new iEe,new aEe,new oEe,new sEe,new lEe,new uEe,new cEe,new fEe,new dEe,new pEe,new hEe(t),new vEe,new mEe,new gEe,new s1,new yEe])}var wEe=lt("contents"),xEe=function(t){it(e,t);function e(r,n){var i=t.call(this,r)||this,a=n.toDOMAdaptor,o=n.htmlSchemaMap,s=o===void 0?{}:o,u=n.linkAttributes,f=u===void 0?{}:u,d=n.useCommandShortcut,v=d===void 0?!0:d,m=n.wwPlugins,b=m===void 0?[]:m,x=n.wwNodeViews,T=x===void 0?{}:x;return i.editorType="wysiwyg",i.el.classList.add("ww-mode"),i.toDOMAdaptor=a,i.linkAttributes=f,i.extraPlugins=b,i.pluginNodeViews=T,i.specs=i.createSpecs(),i.schema=i.createSchema(s),i.context=i.createContext(),i.keymaps=i.createKeymaps(v),i.view=i.createView(),i.commands=i.createCommands(),i.specs.setContext(de(de({},i.context),{view:i.view})),i.initEvent(),i}return e.prototype.createSpecs=function(){return bEe(this.linkAttributes)},e.prototype.createContext=function(){return{schema:this.schema,eventEmitter:this.eventEmitter}},e.prototype.createSchema=function(r){return new vl({nodes:de(de({},this.specs.nodes),r.nodes),marks:de(de({},this.specs.marks),r.marks)})},e.prototype.createPlugins=function(){return na([Pxe(),qxe(this.eventEmitter),$xe(),Kxe(this.eventEmitter)],this.createPluginProps()).concat(this.defaultPlugins)},e.prototype.createPluginNodeViews=function(){var r=this,n=r.eventEmitter,i=r.pluginNodeViews,a={};return i&&Object.keys(i).forEach(function(o){a[o]=function(s,u,f){return i[o](s,u,f,n)}}),a},e.prototype.createView=function(){var r=this,n=this,i=n.toDOMAdaptor,a=n.eventEmitter;return new dn(this.el,{state:this.createState(),attributes:{class:wEe},nodeViews:de({customBlock:function(o,s,u){return new Jxe(o,s,u,i)},image:function(o,s,u){return new Yxe(o,s,u,a)},codeBlock:function(o,s,u){return new Zxe(o,s,u,a)},widget:o1},this.createPluginNodeViews()),dispatchTransaction:function(o){var s=r.view.state.applyTransaction(o).state;r.view.updateState(s),r.emitChangeEvent(o.scrollIntoView()),r.eventEmitter.emit("setFocusedNode",s.selection.$from.node(1))},transformPastedHTML:vCe,transformPasted:function(o){return wCe(o,r.schema,Cp(r.view.state.selection.$from))},handlePaste:function(o,s,u){return ACe(o,u)},handleKeyDown:function(o,s){return r.eventEmitter.emit("keydown",r.editorType,s),!1},handleDOMEvents:{paste:function(o,s){var u=s.clipboardData||window.clipboardData,f=u==null?void 0:u.items;if(f){var d=zo(f).some(function(m){return m.kind==="string"&&m.type==="text/rtf"});if(!d){var v=a1(f);v&&(s.preventDefault(),gy(r.eventEmitter,v,s.type))}}return!1},keyup:function(o,s){return r.eventEmitter.emit("keyup",r.editorType,s),!1},scroll:function(){return r.eventEmitter.emit("scroll","editor"),!0}}})},e.prototype.createCommands=function(){return this.specs.commands(this.view,Ay())},e.prototype.getHTML=function(){return this.view.dom.innerHTML},e.prototype.getModel=function(){return this.view.state.doc},e.prototype.getSelection=function(){var r=this.view.state.selection,n=r.from,i=r.to;return[n,i]},e.prototype.getSchema=function(){return this.view.state.schema},e.prototype.replaceSelection=function(r,n,i){var a=this.view.state,o=a.schema,s=a.tr,u=r.split(`
92`),f=u.map(function(m){return dp(o,cu(m,o))}),d=new Ze(Ee.from(f),1,1),v=hs(n)&&hs(i)?s.replaceRange(n,i,d):s.replaceSelection(d);this.view.dispatch(v),this.focus()},e.prototype.deleteSelection=function(r,n){var i=this.view.state.tr,a=hs(r)&&hs(n)?i.deleteRange(r,n):i.deleteSelection();this.view.dispatch(a.scrollIntoView())},e.prototype.getSelectedText=function(r,n){var i=this.view.state,a=i.doc,o=i.selection,s=o.from,u=o.to;return hs(r)&&hs(n)&&(s=r,u=n),a.textBetween(s,u,`
93`)},e.prototype.setModel=function(r,n){n===void 0&&(n=!1);var i=this.view.state,a=i.tr,o=i.doc;this.view.dispatch(a.replaceWith(0,o.content.size,r)),n&&this.moveCursorToEnd(!0)},e.prototype.setSelection=function(r,n){n===void 0&&(n=r);var i=this.view.state.tr,a=rn(i,r,n);this.view.dispatch(i.setSelection(a).scrollIntoView())},e.prototype.addWidget=function(r,n,i){var a=this.view,o=a.dispatch,s=a.state;o(s.tr.setMeta("widget",{pos:i??s.selection.to,node:r,style:n}))},e.prototype.replaceWithWidget=function(r,n,i){var a=this.view.state,o=a.tr,s=a.schema,u=cu(i,s);this.view.dispatch(o.replaceWith(r,n,u))},e.prototype.getRangeInfoOfNode=function(r){var n=this.view.state,i=n.doc,a=n.selection,o=r?i.resolve(r):a.$from,s=o.marks(),u=o.node(),f=o.start(),d=o.end(),v=u.type.name;if(s.length||v==="paragraph"){var m=s[s.length-1],b=function(x){return x.length?si(x,m):!0};v=m?m.type.name:"text",u.forEach(function(x,T){var S=x.isText,M=x.nodeSize,L=x.marks,P=o.pos-f;S&&T<=P&&T+M>=P&&b(L)&&(f=f+T,d=f+M)})}return{range:[f,d],type:v}},e}(l1),CEe=mo,EEe=lp;function TEe(t){return!CEe(t)&&!EEe(t)}var _Ee=TEe,SEe=_Ee;function kEe(t){return SEe(t)&&t!==!1}var OEe=kEe,AEe=OEe;function MEe(t){return!AEe(t)}var LEe=MEe,Px=["afterPreviewRender","updatePreview","changeMode","needChangeMode","command","changePreviewStyle","changePreviewTabPreview","changePreviewTabWrite","scroll","contextmenu","show","hide","changeLanguage","changeToolbarState","toggleScrollSync","mixinTableOffsetMapPrototype","setFocusedNode","removePopupWidget","query","openPopup","closePopup","addImageBlobHook","beforePreviewRender","beforeConvertWysiwygToMarkdown","load","loadUI","change","caretChange","destroy","focus","blur","keydown","keyup"],ES=function(){function t(){var e=this;this.events=new hS,this.eventTypes=Px.reduce(function(r,n){return de(de({},r),{type:n})},{}),this.hold=!1,Px.forEach(function(r){e.addEventType(r)})}return t.prototype.listen=function(e,r){var n=this.getTypeInfo(e),i=this.events.get(n.type)||[];if(!this.hasEventType(n.type))throw new Error("There is no event type "+n.type);n.namespace&&(r.namespace=n.namespace),i.push(r),this.events.set(n.type,i)},t.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.getTypeInfo(e),a=this.events.get(i.type),o=[];return!this.hold&&a&&a.forEach(function(s){var u=s.apply(void 0,r);mo(u)||o.push(u)}),o},t.prototype.emitReduce=function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=this.events.get(e);return!this.hold&&a&&a.forEach(function(o){var s=o.apply(void 0,na([r],n));LEe(s)||(r=s)}),r},t.prototype.getTypeInfo=function(e){var r=e.split(".");return{type:r[0],namespace:r[1]}},t.prototype.hasEventType=function(e){return!mo(this.eventTypes[this.getTypeInfo(e).type])},t.prototype.addEventType=function(e){if(this.hasEventType(e))throw new Error("There is already have event type "+e);this.eventTypes[e]=e},t.prototype.removeEventHandler=function(e,r){var n=this,i=this.getTypeInfo(e),a=i.type,o=i.namespace;a&&r?this.removeEventHandlerWithHandler(a,r):a&&!o?this.events.delete(a):!a&&o?this.events.forEach(function(s,u){n.removeEventHandlerWithTypeInfo(u,o)}):a&&o&&this.removeEventHandlerWithTypeInfo(a,o)},t.prototype.removeEventHandlerWithHandler=function(e,r){var n=this.events.get(e);if(n){var i=n.indexOf(r);n.indexOf(r)>=0&&n.splice(i,1)}},t.prototype.removeEventHandlerWithTypeInfo=function(e,r){var n=[],i=this.events.get(e);i&&(i.map(function(a){return a.namespace!==r&&n.push(a),null}),this.events.set(e,n))},t.prototype.getEvents=function(){return this.events},t.prototype.holdEventInvoke=function(e){this.hold=!0,e(),this.hold=!1},t}(),DEe=function(){function t(e,r,n,i){this.eventEmitter=e,this.mdCommands=r,this.wwCommands=n,this.getEditorType=i,this.initEvent()}return t.prototype.initEvent=function(){var e=this;this.eventEmitter.listen("command",function(r,n){e.exec(r,n)})},t.prototype.addCommand=function(e,r,n){e==="markdown"?this.mdCommands[r]=n:this.wwCommands[r]=n},t.prototype.deleteCommand=function(e,r){e==="markdown"?delete this.mdCommands[r]:delete this.wwCommands[r]},t.prototype.exec=function(e,r){var n=this.getEditorType();n==="markdown"?this.mdCommands[e](r):this.wwCommands[e](r)},t}();function zd(t){return t[t.length-1]===`
94`?t.slice(0,t.length-1):t}function og(t,e){var r=t.schema,n=e.literal,i=n.match(Tc);if(i){var a=i[1],o=i[3],s=(a||o).toLowerCase();return e.type==="htmlInline"&&!!(r.marks[s]||r.nodes[s])}return!1}function sg(t){var e=t.type;return si(["text","strong","emph","strike","image","link","code"],e)}function Bx(t){return(t==null?void 0:t.type)==="softbreak"}function df(t){var e=t.type,r=t.literal,n=e==="htmlInline"&&r.match(Tc);if(n){var i=n[1],a=n[3],o=i||a;if(o)return si(["ul","ol","li"],o.toLowerCase())}return!1}function IEe(t){var e=t.literal,r=/data-task/.test(e),n=/data-task-checked/.test(e);return{task:r,checked:n}}function Fx(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=document.createElement("div");n.innerHTML=yu(t);var i=n.firstChild;return e.map(function(a){return i.getAttribute(a)||""})}function REe(t){var e={};return Object.keys(t).forEach(function(r){var n=r.split(", ");n.forEach(function(i){var a=i.toLowerCase();e[a]=t[r]})}),e}var NEe={"b, strong":function(t,e,r){var n=t.schema.marks.strong;r?t.openMark(n.create({rawHTML:r})):t.closeMark(n)},"i, em":function(t,e,r){var n=t.schema.marks.emph;r?t.openMark(n.create({rawHTML:r})):t.closeMark(n)},"s, del":function(t,e,r){var n=t.schema.marks.strike;r?t.openMark(n.create({rawHTML:r})):t.closeMark(n)},code:function(t,e,r){var n=t.schema.marks.code;r?t.openMark(n.create({rawHTML:r})):t.closeMark(n)},a:function(t,e,r){var n=e.literal,i=t.schema.marks.link;if(r){var a=Fx(n,"href")[0];t.openMark(i.create({linkUrl:a,rawHTML:r}))}else t.closeMark(i)},img:function(t,e,r){var n=e.literal;if(r){var i=Fx(n,"src","alt"),a=i[0],o=i[1],s=t.schema.nodes.image;t.addNode(s,de({rawHTML:r,imageUrl:a},o&&{altText:o}))}},hr:function(t,e,r){t.addNode(t.schema.nodes.thematicBreak,{rawHTML:r})},br:function(t,e){var r=t.schema.nodes.paragraph,n=e.parent,i=e.prev,a=e.next;(n==null?void 0:n.type)==="paragraph"?(Bx(i)&&t.openNode(r),Bx(a)?t.closeNode():a&&(t.closeNode(),t.openNode(r))):(n==null?void 0:n.type)==="tableCell"&&(i&&(sg(i)||og(t,i))&&t.closeNode(),a&&(sg(a)||og(t,a))&&t.openNode(r))},pre:function(t,e,r){var n,i,a=document.createElement("div");a.innerHTML=e.literal;var o=(i=(n=a.firstChild)===null||n===void 0?void 0:n.firstChild)===null||i===void 0?void 0:i.textContent;t.openNode(t.schema.nodes.codeBlock,{rawHTML:r}),t.addText(zd(o)),t.closeNode()},"ul, ol":function(t,e,r){if(e.parent.type==="tableCell"){var n=t.schema.nodes,i=n.bulletList,a=n.orderedList,o=n.paragraph,s=r==="ul"?i:a;r?(e.prev&&!df(e.prev)&&t.closeNode(),t.openNode(s,{rawHTML:r})):(t.closeNode(),e.next&&!df(e.next)&&t.openNode(o))}},li:function(t,e,r){var n;if(((n=e.parent)===null||n===void 0?void 0:n.type)==="tableCell"){var i=t.schema.nodes,a=i.listItem,o=i.paragraph;if(r){var s=IEe(e);e.prev&&!df(e.prev)&&t.closeNode(),t.openNode(a,de({rawHTML:r},s)),e.next&&!df(e.next)&&t.openNode(o)}else e.prev&&!df(e.prev)&&t.closeNode(),t.closeNode()}}},PEe=REe(NEe);function Hx(t){return t.type==="htmlInline"&&$m.test(t.literal)}function TS(t){zo(t.childNodes).forEach(function(e){if(zp(e)){var r=e.nodeName.toLowerCase();e.setAttribute("data-raw-html",r),e.childNodes&&TS(e)}})}var qx={text:function(t,e){t.addText(e.literal||"")},paragraph:function(t,e,r,n){var i,a=r.entering;if(a){var o=t.schema.nodes.paragraph;((i=e.prev)===null||i===void 0?void 0:i.type)==="paragraph"&&(t.openNode(o,n),t.closeNode()),t.openNode(o,n)}else t.closeNode()},heading:function(t,e,r,n){var i=r.entering;if(i){var a=e,o=a.level,s=a.headingType;t.openNode(t.schema.nodes.heading,de({level:o,headingType:s},n))}else t.closeNode()},codeBlock:function(t,e,r){var n=t.schema.nodes.codeBlock,i=e,a=i.info,o=i.literal;t.openNode(n,de({language:a},r)),t.addText(zd(o||"")),t.closeNode()},list:function(t,e,r,n){var i=r.entering;if(i){var a=t.schema.nodes,o=a.bulletList,s=a.orderedList,u=e.listData,f=u.type,d=u.start;f==="bullet"?t.openNode(o,n):t.openNode(s,de({order:d},n))}else t.closeNode()},item:function(t,e,r,n){var i=r.entering,a=t.schema.nodes.listItem,o=e.listData,s=o.task,u=o.checked;if(i){var f=de(de(de({},s&&{task:s}),u&&{checked:u}),n);t.openNode(a,f)}else t.closeNode()},blockQuote:function(t,e,r,n){var i=r.entering;i?t.openNode(t.schema.nodes.blockQuote,n):t.closeNode()},image:function(t,e,r,n){var i=r.entering,a=r.skipChildren,o=t.schema.nodes.image,s=e,u=s.destination,f=s.firstChild;i&&a&&a(),t.addNode(o,de(de({imageUrl:u},f&&{altText:f.literal}),n))},thematicBreak:function(t,e,r,n){t.addNode(t.schema.nodes.thematicBreak,n)},strong:function(t,e,r,n){var i=r.entering,a=t.schema.marks.strong;i?t.openMark(a.create(n)):t.closeMark(a)},emph:function(t,e,r,n){var i=r.entering,a=t.schema.marks.emph;i?t.openMark(a.create(n)):t.closeMark(a)},link:function(t,e,r,n){var i=r.entering,a=t.schema.marks.link,o=e,s=o.destination,u=o.title;if(i){var f=de({linkUrl:s,title:u},n);t.openMark(a.create(f))}else t.closeMark(a)},softbreak:function(t,e){if(e.parent.type==="paragraph"){var r=e.prev,n=e.next;r&&!Hx(r)&&t.closeNode(),n&&!Hx(n)&&t.openNode(t.schema.nodes.paragraph)}},table:function(t,e,r,n){var i=r.entering;i?t.openNode(t.schema.nodes.table,n):t.closeNode()},tableHead:function(t,e,r,n){var i=r.entering;i?t.openNode(t.schema.nodes.tableHead,n):t.closeNode()},tableBody:function(t,e,r,n){var i=r.entering;i?t.openNode(t.schema.nodes.tableBody,n):t.closeNode()},tableRow:function(t,e,r,n){var i=r.entering;i?t.openNode(t.schema.nodes.tableRow,n):t.closeNode()},tableCell:function(t,e,r){var n=r.entering;if(!e.ignored){var i=function(x){return x&&(sg(x)||og(t,x))};if(n){var a=t.schema.nodes,o=a.tableHeadCell,s=a.tableBodyCell,u=a.paragraph,f=e.parent.parent,d=f.type==="tableHead"?o:s,v=f.parent,m=(v.columns[e.startIdx]||{}).align,b=de({},e.attrs);m&&(b.align=m),t.openNode(d,b),i(e.firstChild)&&t.openNode(u)}else i(e.lastChild)&&t.closeNode(),t.closeNode()}},strike:function(t,e,r,n){var i=r.entering,a=t.schema.marks.strike;i?t.openMark(a.create(n)):t.closeMark(a)},code:function(t,e,r,n){var i=t.schema.marks.code;t.openMark(i.create(n)),t.addText(zd(e.literal||"")),t.closeMark(i)},customBlock:function(t,e){var r=t.schema.nodes,n=r.customBlock,i=r.paragraph,a=e,o=a.info,s=a.literal;t.openNode(n,{info:o}),t.addText(zd(s||"")),t.closeNode(),e.next||(t.openNode(i),t.closeNode())},frontMatter:function(t,e){t.openNode(t.schema.nodes.frontMatter),t.addText(e.literal),t.closeNode()},htmlInline:function(t,e){var r=e.literal,n=r.match(Tc),i=n[1],a=n[3],o=(i||a).toLowerCase(),s=t.schema.marks[o],u=yu(r);if(s!=null&&s.spec.attrs.htmlInline)if(i){var f=rg(u);t.openMark(s.create({htmlAttrs:f}))}else t.closeMark(s);else{var d=PEe[o];d&&d(t,e,i)}},htmlBlock:function(t,e){var r=e.literal,n=document.createElement("div"),i=bB.test(r);if(i)t.openNode(t.schema.nodes.htmlComment),t.addText(e.literal),t.closeNode();else{var a=r.match(Tc),o=a[1],s=a[3],u=(o||s).toLowerCase(),f=t.schema.nodes[u],d=yu(r);if(f!=null&&f.spec.attrs.htmlBlock){var v=rg(d),m=rS(e,u);t.addNode(f,{htmlAttrs:v,childrenHTML:m})}else n.innerHTML=d,TS(n),t.convertByDOMParser(n)}},customInline:function(t,e,r){var n=r.entering,i=r.skipChildren,a=e,o=a.info,s=a.firstChild,u=t.schema;if(o.indexOf("widget")!==-1&&n){var f=G_(e);i(),t.addNode(u.nodes.widget,{info:o},[u.text(W_(o,f))])}else{var d="$$";n&&(d+=s?o+" ":o),t.addText(d)}}};function BEe(t){var e=Object.keys(t),r=de({},qx),n=new ky({gfm:!0,nodeId:!0,convertors:t}),i=n.getConvertors();return e.forEach(function(a){var o=qx[a];o&&!si(["htmlBlock","htmlInline"],a)&&(r[a]=function(s,u,f){f.origin=function(){return i[a](u,f,i)};var d=t[a](u,f),v;if(d){var m=Array.isArray(d)?d[0]:d,b=m.attributes,x=m.classNames;v={htmlAttrs:b,classNames:x}}o(s,u,f,v)})}),r}function FEe(t,e){return t.isText&&e.isText&&Yt.sameSet(t.marks,e.marks)?t.withText(t.text+e.text):!1}var HEe=function(){function t(e,r){this.schema=e,this.convertors=r,this.stack=[{type:this.schema.topNodeType,attrs:null,content:[]}],this.marks=Yt.none}return t.prototype.top=function(){return gi(this.stack)},t.prototype.push=function(e){this.stack.length&&this.top().content.push(e)},t.prototype.addText=function(e){if(e){var r=this.top().content,n=gi(r),i=this.schema.text(e,this.marks),a=n&&FEe(n,i);a?r[r.length-1]=a:r.push(i)}},t.prototype.openMark=function(e){this.marks=e.addToSet(this.marks)},t.prototype.closeMark=function(e){this.marks=e.removeFromSet(this.marks)},t.prototype.addNode=function(e,r,n){var i=e.createAndFill(r,n,this.marks);return i?(this.push(i),i):null},t.prototype.openNode=function(e,r){this.stack.push({type:e,attrs:r,content:[]})},t.prototype.closeNode=function(){this.marks.length&&(this.marks=Yt.none);var e=this.stack.pop(),r=e.type,n=e.attrs,i=e.content;return this.addNode(r,n,i)},t.prototype.convertByDOMParser=function(e){var r=this,n=Pa.fromSchema(this.schema).parse(e);n.content.forEach(function(i){return r.push(i)})},t.prototype.closeUnmatchedHTMLInline=function(e,r){var n;if(!r&&e.type!=="htmlInline")for(var i=this.stack.length-1,a=i;a>=0;a-=1){var o=this.stack[a];if(!((n=o.attrs)===null||n===void 0)&&n.rawHTML)o.content.length?this.closeNode():this.stack.pop();else break}},t.prototype.convert=function(e,r){for(var n=e.walker(),i=n.next(),a=function(){var s=i.node,u=i.entering,f=o.convertors[s.type],d=!1;if(f){var v={entering:u,leaf:!ZP(s),getChildrenText:eB,options:{gfm:!0,nodeId:!1,tagFilter:!1,softbreak:`
95`},skipChildren:function(){d=!0}};if(o.closeUnmatchedHTMLInline(s,u),f(o,s,v),(r==null?void 0:r.node)===s){var m=o.stack.reduce(function(b,x){return b+x.content.reduce(function(T,S){return T+S.nodeSize},0)},0)+1;r.setMappedPos(m)}}d&&(n.resumeAt(s,!1),n.next()),i=n.next()},o=this;i;)a()},t.prototype.convertNode=function(e,r){return this.convert(e,r),this.stack.length?this.closeNode():null},t}();function qEe(t,e,r){var n=r[0],i=r[1];t.write(n),t.convertInline(e),t.write(i)}function $Ee(t,e,r){var n=e.node,i=e.parent,a=r[0],o=r[1];t.stopNewline=!0,t.write(a),t.convertNode(n),t.write(o),(i==null?void 0:i.type.name)==="doc"&&(t.closeBlock(n),t.stopNewline=!1)}function UEe(t,e){var r=t.length,n="",i="";return e==="left"?(n=":",r-=1):e==="right"?(i=":",r-=1):e==="center"&&(n=":",i=":",r-=2),""+n+up("-",Math.max(r,3))+i}var lg={text:function(t,e){var r,n=e.node,i=(r=n.text)!==null&&r!==void 0?r:"";(n.marks||[]).some(function(a){return a.type.name==="link"})?t.text(cp(i),!1):t.text(i)},paragraph:function(t,e){var r=e.node,n=e.parent,i=e.index,a=i===void 0?0:i;if(t.stopNewline)t.convertInline(r);else{var o=a===0,s=!o&&n.child(a-1),u=s&&s.childCount===0,f=a<n.childCount-1&&n.child(a+1),d=f&&f.type.name==="paragraph",v=r.childCount===0;if(v&&u)t.write(`<br>
96`);else if(v&&!u&&!o){if((n==null?void 0:n.type.name)==="listItem"){var m=t.getDelim();t.setDelim(""),t.write("<br>"),t.setDelim(m)}t.write(`
97`)}else t.convertInline(r),d?t.write(`
98`):t.closeBlock(r)}},heading:function(t,e,r){var n=e.node,i=r.delim,a=n.attrs.headingType;a==="atx"?(t.write(i+" "),t.convertInline(n),t.closeBlock(n)):(t.convertInline(n),t.ensureNewLine(),t.write(i),t.closeBlock(n))},codeBlock:function(t,e,r){var n=e.node,i=r.delim,a=r.text,o=i,s=o[0],u=o[1];t.write(s),t.ensureNewLine(),t.text(a,!1),t.ensureNewLine(),t.write(u),t.closeBlock(n)},blockQuote:function(t,e,r){var n=e.node,i=e.parent,a=r.delim;(i==null?void 0:i.type.name)===n.type.name&&t.flushClose(1),t.wrapBlock(a,null,n,function(){return t.convertNode(n)})},bulletList:function(t,e,r){var n=e.node,i=r.delim;t.convertList(n,up(" ",4),function(){return i+" "})},orderedList:function(t,e){var r=e.node,n=r.attrs.order||1;t.convertList(r,up(" ",4),function(i){var a=String(n+i);return a+". "})},listItem:function(t,e){var r=e.node,n=r.attrs,i=n.task,a=n.checked;i&&t.write("["+(a?"x":" ")+"] "),t.convertNode(r)},image:function(t,e,r){var n=r.attrs;t.write("!["+(n==null?void 0:n.altText)+"]("+(n==null?void 0:n.imageUrl)+")")},thematicBreak:function(t,e,r){var n=e.node,i=r.delim;t.write(i),t.closeBlock(n)},table:function(t,e){var r=e.node;t.convertNode(r),t.closeBlock(r)},tableHead:function(t,e,r){var n=e.node,i=r.delim,a=n.firstChild;t.convertNode(n);var o=i??"";!i&&a&&a.forEach(function(s){var u=s.textContent,f=s.attrs,d=UEe(u,f.align);o+="| "+d+" "}),t.write(o+"|"),t.ensureNewLine()},tableBody:function(t,e){var r=e.node;t.convertNode(r)},tableRow:function(t,e){var r=e.node;t.convertNode(r),t.write("|"),t.ensureNewLine()},tableHeadCell:function(t,e,r){var n=e.node,i=r.delim,a=i===void 0?"| ":i;t.write(a),t.convertTableCell(n),t.write(" ")},tableBodyCell:function(t,e,r){var n=e.node,i=r.delim,a=i===void 0?"| ":i;t.write(a),t.convertTableCell(n),t.write(" ")},customBlock:function(t,e,r){var n=e.node,i=r.delim,a=r.text,o=i,s=o[0],u=o[1];t.write(s),t.ensureNewLine(),t.text(a,!1),t.ensureNewLine(),t.write(u),t.closeBlock(n)},frontMatter:function(t,e,r){var n=e.node,i=r.text;t.text(i,!1),t.closeBlock(n)},widget:function(t,e,r){var n=r.text;t.write(n)},html:function(t,e,r){var n=e.node,i=r.text;t.write(i),n.attrs.htmlBlock&&t.closeBlock(n)},htmlComment:function(t,e,r){var n=e.node,i=r.text;t.write(i),t.closeBlock(n)}};function jEe(t,e){var r=e.state,n=e.nodeInfo,i=e.params,a=i.rawHTML;a?pu(t,["heading","codeBlock"])>-1?qEe(r,n.node,a):pu(t,["image","thematicBreak"])>-1?r.write(a):$Ee(r,n,a):lg[t](r,n,i)}function $x(t,e){var r=t.text,n=/`+/g,i=0;if(t.isText&&r)for(var a=n.exec(r);a;)i=Math.max(i,a[0].length),a=n.exec(r);for(var o=i>0&&e>0?" `":"`",s=0;s<i;s+=1)o+="`";return i>0&&e<0&&(o+=" "),o}function so(t){return t?["<"+t+">","</"+t+">"]:null}function pf(t){return t?"<"+t+">":null}function hf(t){return t?"</"+t+">":null}var vf={heading:function(t){var e=t.node,r=e.attrs,n=r.level,i=up("#",n);return r.headingType==="setext"&&(i=n===1?"===":"---"),{delim:i,rawHTML:so(r.rawHTML)}},codeBlock:function(t){var e=t.node,r=e,n=r.attrs,i=r.textContent;return{delim:["```"+(n.language||""),"```"],rawHTML:so(n.rawHTML),text:i}},blockQuote:function(t){var e=t.node;return{delim:"> ",rawHTML:so(e.attrs.rawHTML)}}
98,bulletList:function(t,e){var r=t.node,n=e.inTable,i=r.attrs.rawHTML;return n&&(i=i||"ul"),{delim:"*",rawHTML:so(i)}},orderedList:function(t,e){var r=t.node,n=e.inTable,i=r.attrs.rawHTML;return n&&(i=i||"ol"),{rawHTML:so(i)}},listItem:function(t,e){var r=t.node,n=e.inTable,i=r.attrs,a=i.task,o=i.checked,s=r.attrs.rawHTML;n&&(s=s||"li");var u=a?' class="task-list-item'+(o?" checked":"")+'"':"",f=a?" data-task"+(o?" data-task-checked":""):"";return{rawHTML:s?["<"+s+u+f+">","</"+s+">"]:null}},table:function(t){var e=t.node;return{rawHTML:so(e.attrs.rawHTML)}},tableHead:function(t){var e=t.node;return{rawHTML:so(e.attrs.rawHTML)}},tableBody:function(t){var e=t.node;return{rawHTML:so(e.attrs.rawHTML)}},tableRow:function(t){var e=t.node;return{rawHTML:so(e.attrs.rawHTML)}},tableHeadCell:function(t){var e=t.node;return{rawHTML:so(e.attrs.rawHTML)}},tableBodyCell:function(t){var e=t.node;return{rawHTML:so(e.attrs.rawHTML)}},image:function(t){var e=t.node,r=e.attrs,n=r.rawHTML,i=r.altText,a=r.imageUrl.replace(/&amp;/g,"&"),o=i?' alt="'+cc(i)+'"':"";return{rawHTML:n?"<"+n+' src="'+cc(a)+'"'+o+">":null,attrs:{altText:cp(i||""),imageUrl:a}}},thematicBreak:function(t){var e=t.node;return{delim:"***",rawHTML:pf(e.attrs.rawHTML)}},customBlock:function(t){var e=t.node,r=e,n=r.attrs,i=r.textContent;return{delim:["$$"+n.info,"$$"],text:i}},frontMatter:function(t){var e=t.node;return{text:e.textContent}},widget:function(t){var e=t.node;return{text:e.textContent}},strong:function(t,e,r){var n=t.node,i=e.entering,a=n.attrs.rawHTML,o="**";return r||(o=i?"<strong>":"</strong>"),{delim:o,rawHTML:i?pf(a):hf(a)}},emph:function(t,e,r){var n=t.node,i=e.entering,a=n.attrs.rawHTML,o="*";return r||(o=i?"<em>":"</em>"),{delim:o,rawHTML:i?pf(a):hf(a)}},strike:function(t,e,r){var n=t.node,i=e.entering,a=n.attrs.rawHTML,o="~~";return r||(o=i?"<del>":"</del>"),{delim:o,rawHTML:i?pf(a):hf(a)}},link:function(t,e){var r=t.node,n=e.entering,i=r.attrs,a=i.title,o=i.rawHTML,s=i.linkUrl.replace(/&amp;/g,"&"),u=a?' title="'+cc(a)+'"':"";return n?{delim:"[",rawHTML:o?"<"+o+' href="'+cc(s)+'"'+u+">":null}:{delim:"]("+s+(a?" "+qP(cp(a)):"")+")",rawHTML:hf(o)}},code:function(t,e){var r=t.node,n=t.parent,i=t.index,a=i===void 0?0:i,o=e.entering,s=o?$x(n.child(a),-1):$x(n.child(a-1),1),u=o?pf(r.attrs.rawHTML):hf(r.attrs.rawHTML);return{delim:s,rawHTML:u}},htmlComment:function(t){var e=t.node;return{text:e.textContent}},html:function(t,e){var r=t.node,n=e.entering,i=r.type.name,a=r.attrs.htmlAttrs,o="<"+i,s="</"+i+">";return Object.keys(a).forEach(function(u){o+=" "+u+'="'+a[u].replace(/"/g,"'")+'"'}),o+=">",r.attrs.htmlInline?{rawHTML:n?o:s}:{text:""+o+r.attrs.childrenHTML+s}}},Ux={strong:{mixable:!0,removedEnclosingWhitespace:!0},emph:{mixable:!0,removedEnclosingWhitespace:!0},strike:{mixable:!0,removedEnclosingWhitespace:!0},code:{escape:!1},link:null,html:null};function zEe(t){var e={},r=Object.keys(lg);return r.forEach(function(n){e[n]=function(i,a){var o=lg[n];if(o){var s=t[n],u=s?s(a,{inTable:i.inTable}):{};jEe(n,{state:i,nodeInfo:a,params:u})}}}),e}function WEe(t){var e={},r=Object.keys(Ux);return r.forEach(function(n){e[n]=function(i,a,o){var s=Ux[n],u=t[n],f=u&&i&&!mo(a),d=f?u(i,{entering:a},o):{};return de(de({},d),s)}}),e}function VEe(t){var e=Object.keys(t);e.forEach(function(i){var a=vf[i],o=t[i];a?vf[i]=function(s,u){return u.origin=function(){return a(s,u)},o(s,u)}:vf[i]=o,delete t[i]});var r=zEe(vf),n=WEe(vf);return{nodeTypeConvertors:r,markTypeConvertors:n}}var GEe=function(){function t(e){var r=e.nodeTypeConvertors,n=e.markTypeConvertors;this.nodeTypeConvertors=r,this.markTypeConvertors=n,this.delim="",this.result="",this.closed=!1,this.tightList=!1,this.stopNewline=!1,this.inTable=!1}return t.prototype.getMarkConvertor=function(e){var r=e.attrs.htmlInline?"html":e.type.name;return this.markTypeConvertors[r]},t.prototype.isInBlank=function(){return/(^|\n)$/.test(this.result)},t.prototype.isBetweenSpaces=function(e,r){var n,i,a=e.content,o=r===0||jP((n=a.child(r-1).text)!==null&&n!==void 0?n:D0),s=r>=a.childCount-1||UP((i=a.child(r+1).text)!==null&&i!==void 0?i:D0);return o&&s},t.prototype.markText=function(e,r,n,i){var a=this.getMarkConvertor(e);
vendor: 42,263 bytes, lines 98-207
98if(a){var o=this.isBetweenSpaces(n,r?i:i-1),s=a({node:e,parent:n,index:i},r,o),u=s.delim,f=s.rawHTML;return f||u}return""},t.prototype.setDelim=function(e){this.delim=e},t.prototype.getDelim=function(){return this.delim},t.prototype.flushClose=function(e){if(!this.stopNewline&&this.closed){if(this.isInBlank()||(this.result+=`
99`),e||(e=2),e>1){var r=this.delim,n=/\s+$/.exec(r);n&&(r=r.slice(0,r.length-n[0].length));for(var i=1;i<e;i+=1)this.result+=r+`
100`}this.closed=!1}},t.prototype.wrapBlock=function(e,r,n,i){var a=this.getDelim();this.write(r||e),this.setDelim(this.getDelim()+e),i(),this.setDelim(a),this.closeBlock(n)},t.prototype.ensureNewLine=function(){this.isInBlank()||(this.result+=`
101`)},t.prototype.write=function(e){e===void 0&&(e=""),this.flushClose(),this.delim&&this.isInBlank()&&(this.result+=this.delim),e&&(this.result+=e)},t.prototype.closeBlock=function(e){this.closed=e},t.prototype.text=function(e,r){r===void 0&&(r=!0);for(var n=e.split(`
102`),i=0;i<n.length;i+=1)this.write(),this.result+=r?HP(n[i]):n[i],i!==n.length-1&&(this.result+=`
103`)},t.prototype.convertBlock=function(e,r,n){var i=e.type.name,a=this.nodeTypeConvertors[i],o={node:e,parent:r,index:n};e.attrs.htmlBlock?this.nodeTypeConvertors.html(this,o):a&&a(this,o)},t.prototype.convertInline=function(e){var r=this,n=[],i="",a=function(o,s,u){var f=o?o.marks:[],d=i;i="";var v=o&&o.isText&&f.some(function(ie){var ge=r.getMarkConvertor(ie),Y=ge&&ge();return Y&&Y.removedEnclosingWhitespace});if(v&&o&&o.text){var m=/^(\s*)(.*?)(\s*)$/m.exec(o.text),b=m[1],x=m[2],T=m[3];d+=b,i=T,(b||T)&&(o=x?o.withText(x):null,o||(f=n))}for(var S=f.length&&gi(f),M=S&&r.getMarkConvertor(S),L=M&&M(),P=L&&L.escape===!1,A=f.length-(P?1:0),H=0;H<A;H+=1){var x=f[H];if(L&&!L.mixable)break;for(var W=0;W<n.length;W+=1){var J=n[W];if(L&&!L.mixable)break;if(x.eq(J)){H>W?f=f.slice(0,W).concat(x).concat(f.slice(W,H)).concat(f.slice(H+1,A)):W>H&&(f=f.slice(0,H).concat(f.slice(H+1,W)).concat(x).concat(f.slice(W,A)));break}}}for(var ee=0;ee<Math.min(n.length,A)&&f[ee].eq(n[ee]);)ee+=1;for(;ee<n.length;){var X=n.pop();X&&r.text(r.markText(X,!1,e,u),!1)}if(d&&r.text(d),o){for(;n.length<A;){var x=f[n.length];n.push(x),r.text(r.markText(x,!0,e,u),!1)}P&&o.isText?r.text(r.markText(S,!0,e,u)+o.text+r.markText(S,!1,e,u+1),!1):r.convertBlock(o,e,u)}};e.forEach(a),a(null,null,e.childCount)},t.prototype.convertList=function(e,r,n){var i=this,a;this.closed&&this.closed.type===e.type?this.flushClose(3):this.tightList&&this.flushClose(1);var o=(a=e.attrs.tight)!==null&&a!==void 0?a:!0,s=this.tightList;this.tightList=o,e.forEach(function(u,f,d){d&&o&&i.flushClose(1),i.wrapBlock(r,n(d),e,function(){return i.convertBlock(u,e,d)})}),this.tightList=s},t.prototype.convertTableCell=function(e){var r=this;this.stopNewline=!0,this.inTable=!0,e.forEach(function(n,i,a){if(si(["bulletList","orderedList"],n.type.name))r.convertBlock(n,e,a),r.closed=!1;else if(r.convertInline(n),a<e.childCount-1){var o=e.child(a+1);o.type.name==="paragraph"&&r.write("<br>")}}),this.stopNewline=!1,this.inTable=!1},t.prototype.convertNode=function(e,r){var n=this;return e.forEach(function(i,a,o){if(n.convertBlock(i,e,o),(r==null?void 0:r.node)===i){var s=n.result.split(`
104`);r.setMappedPos([s.length,gi(s).length+1])}}),this.result},t}(),KEe=function(){function t(e,r,n,i){var a=this;this.setMappedPos=function(o){a.mappedPosWhenConverting=o},this.schema=e,this.eventEmitter=i,this.focusedNode=null,this.mappedPosWhenConverting=null,this.toWwConvertors=BEe(n),this.toMdConvertors=VEe(r||{}),this.eventEmitter.listen("setFocusedNode",function(o){return a.focusedNode=o})}return t.prototype.getMappedPos=function(){return this.mappedPosWhenConverting},t.prototype.getInfoForPosSync=function(){return{node:this.focusedNode,setMappedPos:this.setMappedPos}},t.prototype.toWysiwygModel=function(e){var r=new HEe(this.schema,this.toWwConvertors);return r.convertNode(e,this.getInfoForPosSync())},t.prototype.toMarkdownText=function(e){var r=new GEe(this.toMdConvertors),n=r.convertNode(e,this.getInfoForPosSync());return n=this.eventEmitter.emitReduce("beforeConvertWysiwygToMarkdown",n),n},t}();function JEe(t,e,r){var n={Plugin:Hi,PluginKey:wu,Selection:er,TextSelection:$r},i={Decoration:kn,DecorationSet:Ir},a={Fragment:Ee},o={InputRule:R_,inputRules:N_,undoInputRule:NN},s={eventEmitter:e,usageStatistics:r,pmState:n,pmView:i,pmModel:a,pmRules:o,i18n:Ft};if($c(t)){var u=t[0],f=t[1],d=f===void 0?{}:f;return u(s,d)}return t(s)}function _S(t,e,r){return e.listen("mixinTableOffsetMapPrototype",kxe),(t??[]).reduce(function(n,i){var a=JEe(i,e,r);if(!a)throw new Error("The return value of the executed plugin is empty.");var o=a.markdownParsers,s=a.toHTMLRenderers,u=a.toMarkdownRenderers,f=a.markdownPlugins,d=a.wysiwygPlugins,v=a.wysiwygNodeViews,m=a.markdownCommands,b=a.wysiwygCommands,x=a.toolbarItems;return s&&(n.toHTMLRenderers=fp(n.toHTMLRenderers,s)),u&&(n.toMarkdownRenderers=fp(n.toMarkdownRenderers,u)),f&&(n.mdPlugins=n.mdPlugins.concat(f)),d&&(n.wwPlugins=n.wwPlugins.concat(d)),v&&(n.wwNodeViews=de(de({},n.wwNodeViews),v)),m&&(n.mdCommands=de(de({},n.mdCommands),m)),b&&(n.wwCommands=de(de({},n.wwCommands),b)),x&&(n.toolbarItems=n.toolbarItems.concat(x)),o&&(n.markdownParsers=de(de({},n.markdownParsers),o)),n},{toHTMLRenderers:{},toMarkdownRenderers:{},mdPlugins:[],wwPlugins:[],wwNodeViews:{},mdCommands:{},wwCommands:{},toolbarItems:[],markdownParsers:{}})}var YEe="data-task",XEe="data-task-disabled",QEe="checked";function ZEe(t){["htmlBlock","htmlInline"].forEach(function(e){t[e]&&Object.keys(t[e]).forEach(function(r){return tS(r)})})}var SS=function(){function t(e){var r=this;this.options=iy({linkAttributes:null,extendedAutolinks:!1,customHTMLRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null,frontMatter:!1,usageStatistics:!0,theme:"light"},e),this.eventEmitter=new ES;var n=U_(this.options.linkAttributes),i=_S(this.options.plugins,this.eventEmitter,this.options.usageStatistics)||{},a=i.toHTMLRenderers,o=i.markdownParsers,s=this.options,u=s.customHTMLRenderer,f=s.extendedAutolinks,d=s.referenceDefinition,v=s.frontMatter,m=s.customHTMLSanitizer,b={linkAttributes:n,customHTMLRenderer:de(de({},a),u),extendedAutolinks:f,referenceDefinition:d,frontMatter:v,sanitizer:m||yu};ZEe(b.customHTMLRenderer),this.options.events&&xc(this.options.events,function(P,A){r.on(A,P)});var x=this.options,T=x.el,S=x.initialValue,M=x.theme,L=T.innerHTML;M!=="light"&&T.classList.add(lt(M)),T.innerHTML="",this.toastMark=new X1("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:f,referenceDefinition:d,disallowDeepHeading:!0,frontMatter:v,customParser:o}),this.preview=new iS(this.eventEmitter,de(de({},b),{isViewer:!0})),b1(this.preview.previewContent,"mousedown",this.toggleTask.bind(this)),S?this.setMarkdown(S):L&&this.preview.setHTML(L),T.appendChild(this.preview.previewContent),this.eventEmitter.emit("load",this)}return t.prototype.toggleTask=function(e){var r=e.target,n=getComputedStyle(r,":before");!r.hasAttribute(XEe)&&r.hasAttribute(YEe)&&py(n,e.offsetX,e.offsetY)&&(hy(r,QEe),this.eventEmitter.emit("change",{source:"viewer",date:e}))},t.prototype.setMarkdown=function(e){var r=this.toastMark.getLineTexts(),n=r.length,i=gi(r),a=[n,i.length+1],o=this.toastMark.editMarkdown([1,1],a,e||"");this.eventEmitter.emit("updatePreview",o)},t.prototype.on=function(e,r){this.eventEmitter.listen(e,r)},t.prototype.off=function(e){this.eventEmitter.removeEventHandler(e)},t.prototype.addHook=function(e,r){this.eventEmitter.removeEventHandler(e),this.eventEmitter.listen(e,r)},t.prototype.destroy=function(){y1(this.preview.el,"mousedown",this.toggleTask.bind(this)),this.preview.destroy(),this.eventEmitter.emit("destroy")},t.prototype.isViewer=function(){return!0},t.prototype.isMarkdownMode=function(){return!1},t.prototype.isWysiwygMode=function(){return!1},t}();function Wd(t){return t instanceof sr}function kS(t){var e=["document","blockQuote","bulletList","orderedList","listItem","paragraph","heading","emph","strong","strike","link","image","table","tableHead","tableBody","tableRow","tableHeadCell","tableBodyCell"];return si(e,t)}function eTe(t){var e=t.attrs,r=t.type,n=r.name,i={type:n,wysiwygNode:!0,literal:!kS(n)&&Wd(t)?t.textContent:null},a={heading:{level:e.level},link:{destination:e.linkUrl,title:e.title},image:{destination:e.imageUrl},codeBlock:{info:e.language},bulletList:{type:"list",listData:{type:"bullet"}},orderedList:{type:"list",listData:{type:"ordered",start:e.order}},listItem:{type:"item",listData:{task:e.task,checked:e.checked}},tableHeadCell:{type:"tableCell",cellType:"head",align:e.align},tableBodyCell:{type:"tableCell",cellType:"body",align:e.align},customBlock:{info:e.info}},o=a[n],s=de(de({},i),o),u=t.attrs,f=u.htmlAttrs,d=u.childrenHTML;return f?de(de({},s),{attrs:f,childrenHTML:d}):s}var tTe={openTag:function(t,e){var r=t,n=r.tagName,i=r.classNames,a=r.attributes,o=document.createElement(n),s={};i&&(o.className=i.join(" ")),a&&(s=de(de({},s),a)),my(s,o),e.push(o)},closeTag:function(t,e){if(e.length>1){var r=e.pop();gi(e).appendChild(r)}},html:function(t,e){gi(e).insertAdjacentHTML("beforeend",t.content)},text:function(t,e){var r=document.createTextNode(t.content);gi(e).appendChild(r)}},rTe=function(){function t(e,r){var n=Oy(e,r),i=de(de({},r.htmlBlock),r.htmlInline);this.customConvertorKeys=Object.keys(r).concat(Object.keys(i)),this.renderer=new ky({gfm:!0,convertors:de(de({},n),i)}),this.convertors=this.renderer.getConvertors()}return t.prototype.generateTokens=function(e){var r=eTe(e),n={entering:!0,leaf:Wd(e)?e.isLeaf:!1,options:this.renderer.getOptions(),getChildrenText:function(){return Wd(e)?e.textContent:""},skipChildren:function(){return!1}},i=this.convertors[e.type.name],a=i(r,n,this.convertors),o=$c(a)?a:[a];return(kS(e.type.name)||e.attrs.htmlInline)&&(n.entering=!1,o.push({type:"text",content:Wd(e)?e.textContent:""}),o=o.concat(i(r,n,this.convertors))),o},t.prototype.toDOMNode=function(e){var r=this.generateTokens(e),n=[];return r.forEach(function(i){return tTe[i.type](i,n)}),n[0]},t.prototype.getToDOMNode=function(e){return si(this.customConvertorKeys,e)?this.toDOMNode.bind(this):null},t}(),nTe=100,iTe=15,Id=null,qv=null;function jx(t,e){var r=e.syncScrollTop,n=e.releaseEventBlock;qv&&clearTimeout(qv),r(t),qv=setTimeout(function(){n()},iTe)}function aTe(t,e,r){var n=e-t,i=Date.now(),a=function(){var o=Date.now(),s=(o-i)/nTe,u;Id&&clearTimeout(Id),s<1?(u=t+n*Math.cos((1-s)*Math.PI/2),jx(Math.ceil(u),r),Id=setTimeout(a,1)):(jx(e,r),Id=null)};a()}var oTe=18,sTe=function(){function t(e,r,n){this.latestEditorScrollTop=null,this.latestPreviewScrollTop=null,this.blockedScroll=null,this.active=!0,this.timer=null;var i=r.previewContent,a=r.el;this.previewRoot=i,this.previewEl=a,this.mdEditor=e,this.editorView=e.view,this.toastMark=e.getToastMark(),this.eventEmitter=n,this.addScrollSyncEvent()}return t.prototype.addScrollSyncEvent=function(){var e=this;this.eventEmitter.listen("afterPreviewRender",function(){e.clearTimer(),e.timer=setTimeout(function(){e.syncPreviewScrollTop(!0)},200)}),this.eventEmitter.listen("scroll",function(r,n){e.active&&(r==="editor"&&e.blockedScroll!=="editor"?e.syncPreviewScrollTop():r==="preview"&&e.blockedScroll!=="preview"&&e.syncEditorScrollTop(n))}),this.eventEmitter.listen("toggleScrollSync",function(r){e.active=r})},t.prototype.getMdNodeAtPos=function(e,r){var n=e.content.findIndex(r.pos),i=n.index;return this.toastMark.findFirstNodeAtLine(i+1)},t.prototype.getScrollTopByCaretPos=function(){var e=this.mdEditor.getSelection(),r=this.toastMark.findFirstNodeAtLine(e[0][0]),n=this.previewEl.clientHeight,i=Pv(this.previewRoot,r).el,a=xp(i,this.previewRoot)||i.offsetTop,o=i.clientHeight,s=a+o-n*.5;this.latestEditorScrollTop=null;var u=i.getBoundingClientRect().top-this.previewEl.getBoundingClientRect().top;return u<n?null:s},t.prototype.syncPreviewScrollTop=function(e){e===void 0&&(e=!1);var r=this,n=r.editorView,i=r.previewEl,a=r.previewRoot,o=n.dom.getBoundingClientRect(),s=o.left,u=o.top,f=n.posAtCoords({left:s,top:u}),d=n.state.doc,v=this.getMdNodeAtPos(d,f);if(!(!v||VP(v))){var m=i.scrollTop,b=n.dom,x=b.scrollTop,T=b.scrollHeight,S=b.clientHeight,M=b.children,L=T-x<=S+oTe,P=L?i.scrollHeight:0;if(x&&!L){if(e){var A=this.getScrollTopByCaretPos();if(!A)return;P=A}else{var H=Pv(this.previewRoot,v),W=H.el,J=H.mdNode,ee=Ox(d,J,M),X=ee.height,ie=ee.rect,ge=xp(W,a)||W.offsetTop,Y=W.clientHeight,ne=u>ie.top?Math.min((u-ie.top)/X,1):0;P=ge+Y*ne}P=this.getResolvedScrollTop("editor",x,P,m),this.latestEditorScrollTop=x}P!==m&&this.run("editor",P,m)}},t.prototype.syncEditorScrollTop=function(e){var r=this,n=r.toastMark,i=r.editorView,a=r.previewRoot,o=r.previewEl,s=i.dom,u=i.state,f=o.scrollTop,d=o.clientHeight,v=o.scrollHeight,m=v-f<=d,b=s.scrollTop,x=m?s.scrollHeight:0;if(f&&e&&!m){if(e=nxe(e,a),!e.getAttribute("data-nodeid"))return;var T=s.children,S=Number(e.getAttribute("data-nodeid")),M=Pv(this.previewRoot,n.findNodeById(S)),L=M.mdNode,P=M.el,A=Gf(L);x=T[A-1].offsetTop;var H=Ox(u.doc,L,T).height,W=fxe(P,a,S),J=W.nodeHeight,ee=W.offsetTop;x+=axe(f,ee,J,H),x=this.getResolvedScrollTop("preview",f,x,b),this.latestPreviewScrollTop=f}x!==b&&this.run("preview",x,b)},t.prototype.getResolvedScrollTop=function(e,r,n,i){var a=e==="editor"?this.latestEditorScrollTop:this.latestPreviewScrollTop;return a===null?n:a<r?Math.max(n,i):Math.min(n,i)},t.prototype.run=function(e,r,n){var i=this,a;e==="editor"?(a=this.previewEl,this.blockedScroll="preview"):(a=this.editorView.dom,this.blockedScroll="editor");var o={syncScrollTop:function(s){return a.scrollTop=s},releaseEventBlock:function(){return i.blockedScroll=null}};aTe(n,r,o)},t.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},t.prototype.destroy=function(){this.clearTimer(),this.eventEmitter.removeEventHandler("scroll"),this.eventEmitter.removeEventHandler("afterPreviewRender")},t}(),lTe={getPopupInitialValues:function(t,e){var r=e.popupName;return r==="link"?{linkText:t.getSelectedText()}:{}}};function uTe(t){t.eventEmitter.listen("query",function(e,r){return lTe[e](t,r)})}var OS=function(){function t(e){var r=this;this.initialHTML=e.el.innerHTML,e.el.innerHTML="",this.options=iy({previewStyle:"tab",previewHighlight:!0,initialEditType:"markdown",height:"300px",minHeight:"200px",language:"en-US",useCommandShortcut:!0,usageStatistics:!0,toolbarItems:[["heading","bold","italic","strike"],["hr","quote"],["ul","ol","task","indent","outdent"],["table","image","link"],["code","codeblock"],["scrollSync"]],hideModeSwitch:!1,linkAttributes:null,extendedAutolinks:!1,customHTMLRenderer:null,customMarkdownRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null,frontMatter:!1,widgetRules:[],theme:"light",autofocus:!0},e);var n=this.options,i=n.customHTMLRenderer,a=n.extendedAutolinks,o=n.referenceDefinition,s=n.frontMatter,u=n.customMarkdownRenderer,f=n.useCommandShortcut,d=n.initialEditType,v=n.widgetRules,m=n.customHTMLSanitizer;this.mode=d||"markdown",this.mdPreviewStyle=this.options.previewStyle,this.i18n=Ft,this.i18n.setCode(this.options.language),this.eventEmitter=new ES,rB(v);var b=U_(this.options.linkAttributes);this.pluginInfo=_S(this.options.plugins,this.eventEmitter,this.options.usageStatistics);var x=this.pluginInfo,T=x.toHTMLRenderers,S=x.toMarkdownRenderers,M=x.mdPlugins,L=x.wwPlugins,P=x.wwNodeViews,A=x.mdCommands,H=x.wwCommands,W=x.markdownParsers,J={linkAttributes:b,customHTMLRenderer:fp(T,i),extendedAutolinks:a,referenceDefinition:o,frontMatter:s,sanitizer:m||yu},ee=new rTe(b,J.customHTMLRenderer),X=Y0e(J.customHTMLRenderer,J.sanitizer,ee);this.toastMark=new X1("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:a,referenceDefinition:o,disallowDeepHeading:!0,frontMatter:s,customParser:W}),this.mdEditor=new iH(this.eventEmitter,{toastMark:this.toastMark,useCommandShortcut:f,mdPlugins:M}),this.preview=new iS(this.eventEmitter,de(de({},J),{isViewer:!1,highlight:this.options.previewHighlight})),this.wwEditor=new xEe(this.eventEmitter,{toDOMAdaptor:ee,useCommandShortcut:f,htmlSchemaMap:X,linkAttributes:b,wwPlugins:L,wwNodeViews:P}),this.convertor=new KEe(this.wwEditor.getSchema(),de(de({},S),u),Oy(b,J.customHTMLRenderer),this.eventEmitter),this.setMinHeight(this.options.minHeight),this.setHeight(this.options.height),this.setMarkdown(this.options.initialValue,!1),this.options.placeholder&&this.setPlaceholder(this.options.placeholder),this.options.initialValue||this.setHTML(this.initialHTML,!1),this.commandManager=new DEe(this.eventEmitter,this.mdEditor.commands,this.wwEditor.commands,function(){return r.mode}),this.options.usageStatistics&&NP(),this.scrollSync=new sTe(this.mdEditor,this.preview,this.eventEmitter),this.addInitEvent(),this.addInitCommand(A,H),uTe(this),this.options.hooks&&xc(this.options.hooks,function(ie,ge){return r.addHook(ge,ie)}),this.options.events&&xc(this.options.events,function(ie,ge){return r.on(ge,ie)}),this.eventEmitter.emit("load",this),this.moveCursorToStart(this.options.autofocus)}return t.prototype.addInitEvent=function(){var e=this;this.on("needChangeMode",this.changeMode.bind(this)),this.on("loadUI",function(){if(e.height!=="auto"){var r=Math.min(parseInt(e.minHeight,10),parseInt(e.height,10)-75)+"px";e.setMinHeight(r)}}),OB(this.eventEmitter)},t.prototype.addInitCommand=function(e,r){var n=this,i=function(a,o){Object.keys(o).forEach(function(s){n.addCommand(a,s,o[s])})};this.addCommand("markdown","toggleScrollSync",function(a){return n.eventEmitter.emit("toggleScrollSync",a.active),!0}),i("markdown",e),i("wysiwyg",r)},t.prototype.getCurrentModeEditor=function(){return this.isMarkdownMode()?this.mdEditor:this.wwEditor},t.factory=function(e){return e.viewer?new SS(e):new t(e)},t.setLanguage=function(e,r){Ft.setLanguage(e,r)},t.prototype.changePreviewStyle=function(e){this.mdPreviewStyle!==e&&(this.mdPreviewStyle=e,this.eventEmitter.emit("changePreviewStyle",e))},t.prototype.exec=function(e,r){this.commandManager.exec(e,r)},t.prototype.addCommand=function(e,r,n){var i=this,a=function(o){o===void 0&&(o={});var s=(e==="markdown"?i.mdEditor:i.wwEditor).view;n(o,s.state,s.dispatch,s)};this.commandManager.addCommand(e,r,a)},t.prototype.on=function(e,r){this.eventEmitter.listen(e,r)},t.prototype.off=function(e){this.eventEmitter.removeEventHandler(e)},t.prototype.addHook=function(e,r){this.eventEmitter.removeEventHandler(e),this.eventEmitter.listen(e,r)},t.prototype.removeHook=function(e){this.eventEmitter.removeEventHandler(e)},t.prototype.focus=function(){this.getCurrentModeEditor().focus()},t.prototype.blur=function(){this.getCurrentModeEditor().blur()},t.prototype.moveCursorToEnd=function(e){e===void 0&&(e=!0),this.getCurrentModeEditor().moveCursorToEnd(e)},t.prototype.moveCursorToStart=function(e){e===void 0&&(e=!0),this.getCurrentModeEditor().moveCursorToStart(e)},t.prototype.setMarkdown=function(e,r){if(e===void 0&&(e=""),r===void 0&&(r=!0),this.mdEditor.setMarkdown(e,r),this.isWysiwygMode()){var n=this.toastMark.getRootNode(),i=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(i,r)}},t.prototype.setHTML=function(e,r){e===void 0&&(e=""),r===void 0&&(r=!0);var n=document.createElement("div");n.innerHTML=_B(e);var i=Pa.fromSchema(this.wwEditor.schema).parse(n);this.isMarkdownMode()?this.mdEditor.setMarkdown(this.convertor.toMarkdownText(i),r):this.wwEditor.setModel(i,r)},t.prototype.getMarkdown=function(){return this.isMarkdownMode()?this.mdEditor.getMarkdown():this.convertor.toMarkdownText(this.wwEditor.getModel())},t.prototype.getHTML=function(){var e=this;this.eventEmitter.holdEventInvoke(function(){if(e.isMarkdownMode()){var i=e.toastMark.getRootNode(),a=e.convertor.toWysiwygModel(i);e.wwEditor.setModel(a)}});var r=this.wwEditor.view.dom.innerHTML;if(this.placeholder){var n=new RegExp('<span class="placeholder[^>]+>'+this.placeholder+"</span>","i");return r.replace(n,"")}return r},t.prototype.insertText=function(e){this.getCurrentModeEditor().replaceSelection(e)},t.prototype.setSelection=function(e,r){this.getCurrentModeEditor().setSelection(e,r)},t.prototype.replaceSelection=function(e,r,n){this.getCurrentModeEditor().replaceSelection(e,r,n)},t.prototype.deleteSelection=function(e,r){this.getCurrentModeEditor().deleteSelection(e,r)},t.prototype.getSelectedText=function(e,r){return this.getCurrentModeEditor().getSelectedText(e,r)},t.prototype.getRangeInfoOfNode=function(e){return this.getCurrentModeEditor().getRangeInfoOfNode(e)},t.prototype.addWidget=function(e,r,n){this.getCurrentModeEditor().addWidget(e,r,n)},t.prototype.replaceWithWidget=function(e,r,n){this.getCurrentModeEditor().replaceWithWidget(e,r,n)},t.prototype.setHeight=function(e){var r=this.options.el;Ts(e)&&(e==="auto"?Po(r,"auto-height"):uo(r,"auto-height"),this.setMinHeight(this.getMinHeight())),qo(r,{height:e}),this.height=e},t.prototype.getHeight=function(){return this.height},t.prototype.setMinHeight=function(e){if(e!==this.minHeight){var r=this.height||this.options.height;r!=="auto"&&this.options.el.querySelector("."+lt("main"))&&(e=Math.min(parseInt(e,10),parseInt(r,10)-75)+"px");var n=parseInt(e,10);this.minHeight=e,this.wwEditor.setMinHeight(n),this.mdEditor.setMinHeight(n),this.preview.setMinHeight(n)}},t.prototype.getMinHeight=function(){return this.minHeight},t.prototype.isMarkdownMode=function(){return this.mode==="markdown"},t.prototype.isWysiwygMode=function(){return this.mode==="wysiwyg"},t.prototype.isViewer=function(){return!1},t.prototype.getCurrentPreviewStyle=function(){return this.mdPreviewStyle},t.prototype.changeMode=function(e,r){if(this.mode!==e){if(this.mode=e,this.isWysiwygMode()){var n=this.toastMark.getRootNode(),i=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(i)}else{var i=this.wwEditor.getModel();this.mdEditor.setMarkdown(this.convertor.toMarkdownText(i),!r)}if(this.eventEmitter.emit("removePopupWidget"),this.eventEmitter.emit("changeMode",e),!r){var a=this.convertor.getMappedPos();this.focus(),this.isWysiwygMode()&&hs(a)?this.wwEditor.setSelection(a):Array.isArray(a)&&this.mdEditor.setSelection(a)}}},t.prototype.destroy=function(){var e=this;this.wwEditor.destroy(),this.mdEditor.destroy(),this.preview.destroy(),this.scrollSync.destroy(),this.eventEmitter.emit("destroy"),this.eventEmitter.getEvents().forEach(function(r,n){return e.off(n)})},t.prototype.hide=function(){this.eventEmitter.emit("hide")},t.prototype.show=function(){this.eventEmitter.emit("show")},t.prototype.setScrollTop=function(e){this.getCurrentModeEditor().setScrollTop(e)},t.prototype.getScrollTop=function(){return this.getCurrentModeEditor().getScrollTop()},t.prototype.reset=function(){this.wwEditor.setModel([]),this.mdEditor.setMarkdown("")},t.prototype.getSelection=function(){return this.getCurrentModeEditor().getSelection()},t.prototype.setPlaceholder=function(e){this.placeholder=e,this.mdEditor.setPlaceholder(e),this.wwEditor.setPlaceholder(e)},t.prototype.getEditorElements=function(){return{mdEditor:this.mdEditor.getElement(),mdPreview:this.preview.getElement(),wwEditor:this.wwEditor.getElement()}},t.prototype.convertPosToMatchEditorMode=function(e,r,n){var i,a;r===void 0&&(r=e),n===void 0&&(n=this.mode);var o=this.mdEditor.view.state.doc,s=Array.isArray(e),u=Array.isArray(r),f=e,d=r;if(s!==u)throw new Error("Types of arguments must be same");return n==="markdown"&&!s&&!u?(i=Hd(o,e,r),f=i[0],d=i[1]):n==="wysiwyg"&&s&&u&&(a=tu(o,e,r),f=a[0],d=a[1]),[f,d]},t}();function cTe(t){for(var e,r,n=arguments,i=1,a="",o="",s=[0],u=function(d){i===1&&(d||(a=a.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(d?n[d]:a):i===3&&(d||a)?(s[1]=d?n[d]:a,i=2):i===2&&a==="..."&&d?s[2]=cy(s[2]||{},n[d]):i===2&&a&&!d?(s[2]=s[2]||{})[a]=!0:i>=5&&(i===5?((s[2]=s[2]||{})[r]=d?a?a+n[d]:n[d]:a,i=6):(d||a)&&(s[2][r]+=d?a+n[d]:a)),a=""},f=0;f<t.length;f++){f&&(i===1&&u(),u(f));for(let d=0;d<t[f].length;d++)e=t[f][d],i===1?e==="<"?(u(),s=[s,"",null],i=3):a+=e:i===4?a==="--"&&e===">"?(i=1,a=""):a=e+a[0]:o?e===o?o="":a+=e:e==='"'||e==="'"?o=e:e===">"?(u(),i=1):i&&(e==="="?(i=5,r=a,a=""):e==="/"&&(i<5||t[f][d+1]===">")?(u(),i===3&&(s=s[0]),i=s,(s=s[0]).push(this.apply(null,i.slice(1))),i=0):e===" "||e==="	"||e===`
105`||e==="\r"?(u(),i=2):a+=e),i===3&&a==="!--"&&(i=4,s=s[0])}return u(),s.length>2?s.slice(1):s[1]}function fTe(t){return typeof t=="boolean"||t instanceof Boolean}var dTe=fTe,pTe=function(){function t(e){this.current=e,this.root=e,this.entering=!0}return t.prototype.walk=function(){var e=this,r=e.entering,n=e.current;return n?(r?n.firstChild?(this.current=n.firstChild,this.entering=!0):this.entering=!1:n===this.root?this.current=null:n.next?(this.current=n.next,this.entering=!0):(this.current=n.parent,this.entering=!1),{vnode:n,entering:r}):null},t}(),ho=function(){function t(e,r,n){this.parent=null,this.old=null,this.firstChild=null,this.next=null,this.skip=!1,this.type=e,this.props=r,this.children=n,this.props.children=n,r.ref&&(this.ref=r.ref,delete r.ref),r.key&&(this.key=r.key,delete r.key)}return t.prototype.walker=function(){return new pTe(this)},t.removalNodes=[],t}();function hTe(t){return new ho("TEXT_NODE",{nodeValue:t},[])}function zx(t,e){var r=t;dTe(t)||t==null?r=null:(Ts(t)||hs(t))&&(r=hTe(String(t))),r&&e.push(r)}function vTe(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=[];return r.forEach(function(a){Array.isArray(a)?a.forEach(function(o){zx(o,i)}):zx(a,i)}),new ho(t,e||{},i)}var gr=cTe.bind(vTe);function mTe(t){return t===Object(t)}var gTe=mTe;function yTe(t){var e;return t.type==="TEXT_NODE"?e=document.createTextNode(t.props.nodeValue):(e=document.createElement(t.type),MS(e,{},t.props)),e}function AS(t,e){t.node?e.removeChild(t.node):AS(t.firstChild,e)}function bTe(t,e,r){Object.keys(e).forEach(function(n){if(/^on/.test(n)){if(!r[n]||e[n]!==r[n]){var i=n.slice(2).toLowerCase();t.removeEventListener(i,e[n])}}else n!=="children"&&!r[n]&&!wB(t)&&t.removeAttribute(n)}),MS(t,e,r,function(n){return!oy(e[n],r[n])})}var wTe=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function MS(t,e,r,n){Object.keys(r).forEach(function(i){if(!n||n(i))if(/^on/.test(i)){var a=i.slice(2).toLowerCase();t.addEventListener(a,r[i])}else i==="nodeValue"?t[i]=r[i]:i==="style"&&gTe(r[i])?xTe(t,e[i],r[i]):i!=="children"&&(r[i]===!1?t.removeAttribute(i):t.setAttribute(i,r[i]))})}function xTe(t,e,r){e&&Object.keys(e).forEach(function(n){t.style[n]=""}),Object.keys(r).forEach(function(n){var i=r[n];t.style[n]=hs(i)&&!wTe.test(n)?i+"px":i})}function Ly(t){if(ho.removalNodes.forEach(function(a){return Vx(a)}),t){for(var e=void 0,r=t.walker();e=r.walk();)if(t=e.vnode,e.entering)Vx(t);else if(Ha(t.type)){var n=t.component;if(!t.old&&n.mounted&&n.mounted(),t.old&&n.updated){var i=n.prevProps||{};n.updated(i)}}}}function Wx(t){for(var e=t.parent;!e.node;)e=e.parent;return e.node}function Vx(t){if(!(!t||!t.parent)){if(t.node){var e=Wx(t);t.effect==="A"?e.appendChild(t.node):t.effect==="U"&&bTe(t.node,t.old.props,t.props)}if(t.effect==="D"){for(var r=void 0,n=t.walker();r=n.walk();)if(t=r.vnode,!r.entering)if(Ha(t.type)){var i=t.component;i.beforeDestroy&&i.beforeDestroy()}else{var e=Wx(t);AS(t,e)}}t.ref&&(t.component?t.ref(t.component):t.node&&t.ref(t.node))}}function CTe(t,e){var r=e.props,n=e.component;return n?(n.prevProps=n.props,n.props=e.props,n):new t(r)}function LS(t){for(var e=t;t&&!t.skip;){if(Ha(t.type)){var r=CTe(t.type,t);r.vnode=t,t.component=r,t.props.children=t.children=[r.render()],Gx(t)}else t.node||(t.node=yTe(t)),Gx(t);if(t.firstChild)t=t.firstChild;else{for(;t&&t.parent&&!t.next&&(t=t.parent,t!==e););t=t.next}}}function ETe(t,e){return t&&e&&e.type===t.type&&(!e.key||e.key===t.key)}function Gx(t){var e=t.children,r=t.old?t.old.firstChild:null,n=null;e.forEach(function(a,o){var s=ETe(r,a);s&&(a.old=r,a.parent=t,a.node=r.node,a.component=r.component,a.effect="U"),a&&!s&&(a.old=null,a.parent=t,a.node=null,a.effect="A"),r&&!s&&(ho.removalNodes.push(r),r.effect="D"),r&&(r=r.next),o===0?t.firstChild=a:a&&(n.next=a),n=a});var i=gi(e);if(!e.length)for(;r;)ho.removalNodes.push(r),r.effect="D",r=r.next;for(;r&&i;)r&&i.old!==r&&(ho.removalNodes.push(r),r.effect="D",r=r.next)}function TTe(t){t.effect="D",ho.removalNodes=[t],Ly(),ho.removalNodes=[]}function _Te(t){var e=t.vnode;e.effect="U",e.old=e,e.next&&(e.next.skip=!0),ho.removalNodes=[],LS(e),Ly(e),e.next&&(e.next.skip=!1)}function STe(t,e){var r=new ho(t.tagName.toLowerCase(),{},[e]);return r.node=t,ho.removalNodes=[],LS(r),Ly(r),function(){return TTe(r.firstChild)}}var Ci=function(){function t(e){this.props=e,this.state={},this.refs={}}return t.prototype.setState=function(e){var r=de(de({},this.state),e);oy(this.state,r)||(this.state=r,_Te(this))},t}(),kTe=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.state={hide:!1},n}return e.prototype.show=function(){this.setState({hide:!1})},e.prototype.hide=function(){this.setState({hide:!0})},e.prototype.render=function(){var r=this.props,n=r.editorType,i=r.eventEmitter;return gr(Kx||(Kx=mr([`
106      <div class="`,'" style="display: ',`">
107        <div
108          class="tab-item`,`"
109          onClick=`,`
110        >
111          `,`
112        </div>
113        <div
114          class="tab-item`,`"
115          onClick=`,`
116        >
117          `,`
118        </div>
119      </div>
120    `],[`
121      <div class="`,'" style="display: ',`">
122        <div
123          class="tab-item`,`"
124          onClick=`,`
125        >
126          `,`
127        </div>
128        <div
129          class="tab-item`,`"
130          onClick=`,`
131        >
132          `,`
133        </div>
134      </div>
135    `])),lt("mode-switch"),this.state.hide?"none":"block",n==="markdown"?" active":"",function(){i.emit("needChangeMode","markdown")},Ft.get("Markdown"),n==="wysiwyg"?" active":"",function(){i.emit("needChangeMode","wysiwyg")},Ft.get("WYSIWYG"))},e}(Ci),Kx;function OTe(t,e){var r,n;e=e||0;function i(){n=Array.prototype.slice.call(arguments),window.clearTimeout(r),r=window.setTimeout(function(){t.apply(null,n)},e)}return i}var ATe=OTe,MTe=ATe;function LTe(t,e){var r,n=!0,i=function(d){t.apply(null,d),r=null},a,o,s;e=e||0,a=MTe(i,e);function u(){if(s=Array.prototype.slice.call(arguments),n){i(s),n=!1;return}o=Number(new Date),r=r||o,a(s),o-r>=e&&i(s)}function f(){n=!0,r=null}return u.reset=f,u}var DTe=LTe,DS=function(){if(typeof Map<"u")return Map;function t(e,r){var n=-1;return e.some(function(i,a){return i[0]===r?(n=a,!0):!1}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(r){var n=t(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(r,n){var i=t(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},e.prototype.delete=function(r){var n=this.__entries__,i=t(n,r);~i&&n.splice(i,1)},e.prototype.has=function(r){return!!~t(this.__entries__,r)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];r.call(n,o[1],o[0])}},e}()}(),ug=typeof window<"u"&&typeof document<"u"&&window.document===document,Ep=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),ITe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ep):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),RTe=2;function NTe(t,e){var r=!1,n=!1,i=0;function a(){r&&(r=!1,t()),n&&s()}function o(){ITe(a)}function s(){var u=Date.now();if(r){if(u-i<RTe)return;n=!0}else r=!0,n=!1,setTimeout(o,e);i=u}return s}var PTe=20,BTe=["top","right","bottom","left","width","height","size","weight"],FTe=typeof MutationObserver<"u",HTe=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=NTe(this.refresh.bind(this),PTe)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var r=this.observers_,n=r.indexOf(e);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return e.forEach(function(r){return r.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!ug||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),FTe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!ug||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var r=e.propertyName,n=r===void 0?"":r,i=BTe.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),IS=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},Mc=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Ep},RS=Qp(0,0,0,0);function Tp(t){return parseFloat(t)||0}function Jx(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(n,i){var a=t["border-"+i+"-width"];return n+Tp(a)},0)}function qTe(t){for(var e=["top","right","bottom","left"],r={},n=0,i=e;n<i.length;n++){var a=i[n],o=t["padding-"+a];r[a]=Tp(o)}return r}function $Te(t){var e=t.getBBox();return Qp(0,0,e.width,e.height)}function UTe(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return RS;var n=Mc(t).getComputedStyle(t),i=qTe(n),a=i.left+i.right,o=i.top+i.bottom,s=Tp(n.width),u=Tp(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==e&&(s-=Jx(n,"left","right")+a),Math.round(u+o)!==r&&(u-=Jx(n,"top","bottom")+o)),!zTe(t)){var f=Math.round(s+a)-e,d=Math.round(u+o)-r;Math.abs(f)!==1&&(s-=f),Math.abs(d)!==1&&(u-=d)}return Qp(i.left,i.top,s,u)}var jTe=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Mc(t).SVGGraphicsElement}:function(t){return t instanceof Mc(t).SVGElement&&typeof t.getBBox=="function"}}();function zTe(t){return t===Mc(t).document.documentElement}function WTe(t){return ug?jTe(t)?$Te(t):UTe(t):RS}function VTe(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return IS(o,{x:e,y:r,width:n,height:i,top:r,right:e+n,bottom:i+r,left:e}),o}function Qp(t,e,r,n){return{x:t,y:e,width:r,height:n}}var GTe=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qp(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=WTe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),KTe=function(){function t(e,r){var n=VTe(r);IS(this,{target:e,contentRect:n})}return t}(),JTe=function(){function t(e,r,n){if(this.activeObservations_=[],this.observations_=new DS,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Mc(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)||(r.set(e,new GTe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Mc(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(e)&&(r.delete(e),r.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&e.activeObservations_.push(r)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new KTe(n.target,n.broadcastRect())});this.callback_.call(e,r,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),NS=typeof WeakMap<"u"?new WeakMap:new DS,PS=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=HTe.getInstance(),n=new JTe(e,r,this);NS.set(this,n)}return t}();["observe","unobserve","disconnect"].forEach(function(t){PS.prototype[t]=function(){var e;return(e=NS.get(this))[t].apply(e,arguments)}});var YTe=function(){return typeof Ep.ResizeObserver<"u"?Ep.ResizeObserver:PS}(),XTe=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.execCommand=function(r){var n=Bo(r.target,"li");this.props.execCommand("heading",{level:Number(n.getAttribute("data-level"))})},e.prototype.render=function(){var r=this;return gr(Xx||(Xx=mr([`
136      <ul
137        onClick=`,`
138        aria-role="menu"
139        aria-label="`,`"
140      >
141        `,`
142        <li data-type="Paragraph" aria-role="menuitem">
143          <div>`,`</div>
144        </li>
145      </ul>
146    `],[`
147      <ul
148        onClick=`,`
149        aria-role="menu"
150        aria-label="`,`"
151      >
152        `,`
153        <li data-type="Paragraph" aria-role="menuitem">
154          <div>`,`</div>
155        </li>
156      </ul>
157    `])),function(n){return r.execCommand(n)},Ft.get("Headings"),[1,2,3,4,5,6].map(function(n){return gr(Yx||(Yx=mr([`
158              <li data-level="`,`" data-type="Heading" aria-role="menuitem">
159                <`,">"," ",`</$>
160              </li>
161            `],[`
162              <li data-level="`,`" data-type="Heading" aria-role="menuitem">
163                <`,">"," ",`</$>
164              </li>
165            `])),n,"h"+n,Ft.get("Heading"),n)}),Ft.get("Paragraph"))},e}(Ci),Yx,Xx,BS=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.toggleTab=function(r,n){this.props.onClick(r,n)},e.prototype.render=function(){var r=this;return gr(Zx||(Zx=mr([`
166      <div class="`,`" aria-role="tabpanel">
167        `,`
168      </div>
169    `],[`
170      <div class="`,`" aria-role="tabpanel">
171        `,`
172      </div>
173    `])),lt("tabs"),this.props.tabs.map(function(n){var i=n.name,a=n.text,o=r.props.activeTab===i;return gr(Qx||(Qx=mr([`
174            <div
175              class="tab-item`,`"
176              onClick=`,`
177              aria-role="tab"
178              aria-label="`,`"
179              aria-selected="`,`"
180              tabindex="`,`"
181            >
182              `,`
183            </div>
184          `],[`
185            <div
186              class="tab-item`,`"
187              onClick=`,`
188              aria-role="tab"
189              aria-label="`,`"
190              aria-selected="`,`"
191              tabindex="`,`"
192            >
193              `,`
194            </div>
195          `])),o?" active":"",function(s){return r.toggleTab(s,i)},Ft.get(a),o?"true":"false",o?"0":"-1",Ft.get(a))}))},e}(Ci),Qx,Zx,QTe="ui",ZTe=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.initialize=function(i){i===void 0&&(i="file");var a=n.refs.url;a.value="",n.refs.altText.value="",n.refs.file.value="",uo(a,"wrong"),n.setState({activeTab:i,file:null,fileNameElClassName:""})},n.execCommand=function(){n.state.activeTab==="file"?n.emitAddImageBlob():n.emitAddImage()},n.toggleTab=function(i,a){a!==n.state.activeTab&&n.initialize(a)},n.showFileSelectBox=function(){n.refs.file.click()},n.changeFile=function(i){var a=i.target.files;a!=null&&a.length&&n.setState({file:a[0]})},n.state={activeTab:"file",file:null,fileNameElClassName:""},n.tabs=[{name:"file",text:"File"},{name:"url",text:"URL"}],n}return e.prototype.emitAddImageBlob=function(){var r=this,n=this.refs.file.files,i=this.refs.altText,a=" wrong";if(n!=null&&n.length){a="";var o=n.item(0),s=function(u,f){return r.props.execCommand("addImage",{imageUrl:u,altText:f||i.value})};this.props.eventEmitter.emit("addImageBlobHook",o,s,QTe)}this.setState({fileNameElClassName:a})},e.prototype.emitAddImage=function(){var r=this.refs.url,n=this.refs.altText,i=r.value,a=n.value||"image";if(uo(r,"wrong"),!i.length){Po(r,"wrong");return}i&&this.props.execCommand("addImage",{imageUrl:i,altText:a})},e.prototype.preventSelectStart=function(r){r.preventDefault()},e.prototype.updated=function(){this.props.show||this.initialize()},e.prototype.render=function(){var r=this,n=this.state,i=n.activeTab,a=n.file,o=n.fileNameElClassName;return gr(eC||(eC=mr([`
196      <div aria-label="`,`">
197        <`," tabs="," activeTab="," onClick=",` />
198        <div style="display:`,`">
199          <label for="toastuiImageUrlInput">`,`</label>
200          <input
201            id="toastuiImageUrlInput"
202            type="text"
203            ref=`,`
204          />
205        </div>
206        <div style="display:`,`;position: relative;">
207          <label for="toastuiImageFileInput">`,`</label>
208          <span
209            class="`,"",`"
210            onClick=`,`
211            onSelectstart=`,`
212          >
213            `,`
214          </span>
215          <button
216            type="button"
217            class="`,`"
218            onClick=`,`
219          >
220            `,`
221          </button>
222          <input
223            id="toastuiImageFileInput"
224            type="file"
225            accept="image/*"
226            onChange=`,`
227            ref=`,`
228          />
229        </div>
230        <label for="toastuiAltTextInput">`,`</label>
231        <input
232          id="toastuiAltTextInput"
233          type="text"
234          ref=`,`
235        />
236        <div class="`,`">
237          <button type="button" class="`,'" onClick=',`>
238            `,`
239          </button>
240          <button type="button" class="`,'" onClick=',`>
241            `,`
242          </button>
243        </div>
244      </div>
245    `],[`
246      <div aria-label="`,`">
247        <`," tabs="," activeTab="," onClick=",` />
248        <div style="display:`,`">
249          <label for="toastuiImageUrlInput">`,`</label>
250          <input
251            id="toastuiImageUrlInput"
252            type="text"
253            ref=`,`
254          />
255        </div>
256        <div style="display:`,`;position: relative;">
257          <label for="toastuiImageFileInput">`,`</label>
258          <span
259            class="`,"",`"
260            onClick=`,`
261            onSelectstart=`,`
262          >
263            `,`
264          </span>
265          <button
266            type="button"
267            class="`,`"
268            onClick=`,`
269          >
270            `,`
271          </button>
272          <input
273            id="toastuiImageFileInput"
274            type="file"
275            accept="image/*"
276            onChange=`,`
277            ref=`,`
278          />
279        </div>
280        <label for="toastuiAltTextInput">`,`</label>
281        <input
282          id="toastuiAltTextInput"
283          type="text"
284          ref=`,`
285        />
286        <div class="`,`">
287          <button type="button" class="`,'" onClick=',`>
288            `,`
289          </button>
290          <button type="button" class="`,'" onClick=',`>
291            `,`
292          </button>
293        </div>
294      </div>
295    `])),Ft.get("Insert image"),BS,this.tabs,i,this.toggleTab,i==="url"?"block":"none",Ft.get("Image URL"),function(s){return r.refs.url=s},i==="file"?"block":"none",Ft.get("Select image file"),lt("file-name"),a?" has-file":o,this.showFileSelectBox,this.preventSelectStart,a?a.name:Ft.get("No file"),lt("file-select-button"),this.showFileSelectBox,Ft.get("Choose a file"),this.changeFile,function(s){return r.refs.file=s},Ft.get("Description"),function(s){return r.refs.altText=s},lt("button-container"),lt("close-button"),this.props.hidePopup,Ft.get("Cancel"),lt("ok-button"),this.execCommand,Ft.get("OK"))},e}(Ci),eC,e_e=function(t){it(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.execCommand=function(){var n=r.refs.url,i=r.refs.text;if(uo(n,"wrong"),uo(i,"wrong"),n.value.length<1){Po(n,"wrong");return}var a=mo(r.props.initialValues.linkUrl);if(a&&i.value.length<1){Po(i,"wrong");return}r.props.execCommand("addLink",{linkUrl:n.value,linkText:i.value})},r}return e.prototype.initialize=function(){var r=this.props.initialValues,n=r.linkUrl,i=r.linkText,a=this.refs.url,o=this.refs.text;uo(a,"wrong"),uo(o,"wrong","disabled"),o.removeAttribute("disabled"),n&&(Po(o,"disabled"),o.setAttribute("disabled","disabled")),a.value=n||"",o.value=i||""},e.prototype.mounted=function(){this.initialize()},e.prototype.updated=function(r){!r.show&&this.props.show&&this.initialize()},e.prototype.render=function(){var r=this;return gr(tC||(tC=mr([`
296      <div aria-label="`,`">
297        <label for="toastuiLinkUrlInput">`,`</label>
298        <input
299          id="toastuiLinkUrlInput"
300          type="text"
301          ref=`,`
302        />
303        <label for="toastuiLinkTextInput">`,`</label>
304        <input
305          id="toastuiLinkTextInput"
306          type="text"
307          ref=`,`
308        />
309        <div class="`,`">
310          <button type="button" class="`,'" onClick=',`>
311            `,`
312          </button>
313          <button type="button" class="`,'" onClick=',`>
314            `,`
315          </button>
316        </div>
317      </div>
318    `],[`
319      <div aria-label="`,`">
320        <label for="toastuiLinkUrlInput">`,`</label>
321        <input
322          id="toastuiLinkUrlInput"
323          type="text"
324          ref=`,`
325        />
326        <label for="toastuiLinkTextInput">`,`</label>
327        <input
328          id="toastuiLinkTextInput"
329          type="text"
330          ref=`,`
331        />
332        <div class="`,`">
333          <button type="button" class="`,'" onClick=',`>
334            `,`
335          </button>
336          <button type="button" class="`,'" onClick=',`>
337            `,`
338          </button>
339        </div>
340      </div>
341    `])),Ft.get("Insert link"),Ft.get("URL"),function(n){return r.refs.url=n},Ft.get("Link text"),function(n){return r.refs.text=n},lt("button-container"),lt("close-button"),this.props.hidePopup,Ft.get("Cancel"),lt("ok-button"),this.execCommand,Ft.get("OK"))},e}(Ci),tC,rC=20,nC=20,iC=5,aC=14,oC=5,sC=9,t_e=1,r_e=1,lC=1,n_e=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.extendSelectionRange=function(i){var a=i.pageX,o=i.pageY,s=a-n.offsetRect.left,u=o-n.offsetRect.top,f=n.getSelectionRangeByOffset(s,u);n.setState(de({},f))},n.execCommand=function(){n.props.execCommand("addTable",{rowCount:n.state.rowIdx+1,columnCount:n.state.colIdx+1})},n.state={rowIdx:-1,colIdx:-1},n}return e.prototype.getDescription=function(){return this.state.colIdx===-1?"":this.state.colIdx+1+" x "+(this.state.rowIdx+1)},e.prototype.getBoundByRange=function(r,n){return{width:(r+1)*rC,height:(n+1)*nC}}
vendor: 4,586 bytes, lines 341-367
341,e.prototype.getRangeByOffset=function(r,n){return{colIdx:Math.floor(r/rC),rowIdx:Math.floor(n/nC)}},e.prototype.getTableRange=function(){var r=this.state,n=r.colIdx,i=r.rowIdx,a=Math.max(n,oC),o=Math.max(i,iC);return n>=oC&&a<sC&&(a+=1),i>=iC&&o<aC&&(o+=1),{colIdx:a+1,rowIdx:o+1}},e.prototype.getSelectionAreaBound=function(){var r=this.getBoundByRange(this.state.colIdx,this.state.rowIdx),n=r.width,i=r.height;return!n&&!i?{display:"none"}:{width:n-lC,height:i-lC,display:"block"}},e.prototype.getSelectionRangeByOffset=function(r,n){var i=this.getRangeByOffset(r,n);return i.rowIdx=Math.min(Math.max(i.rowIdx,t_e),aC),i.colIdx=Math.min(Math.max(i.colIdx,r_e),sC),i},e.prototype.updated=function(){if(!this.props.show)this.setState({colIdx:-1,rowIdx:-1});else if(this.state.colIdx===-1&&this.state.rowIdx===-1){var r=this.refs.tableEl.getBoundingClientRect(),n=r.left,i=r.top;this.offsetRect={left:window.pageXOffset+n,top:window.pageYOffset+i}}},e.prototype.createTableArea=function(r){for(var n=r.colIdx,i=r.rowIdx,a=[],o=0;o<i;o+=1){for(var s=[],u=0;u<n;u+=1){var f=""+lt("table-cell")+(o>0?"":" header");s.push(gr(uC||(uC=mr(['<div class="','"></div>'],['<div class="','"></div>'])),f))}a.push(gr(cC||(cC=mr(['<div class="','">',"</div>"],['<div class="','">',"</div>"])),lt("table-row"),s))}return gr(fC||(fC=mr(['<div class="','">',"</div>"],['<div class="','">',"</div>"])),lt("table"),a)},e.prototype.render=function(){var r=this,n=this.getTableRange(),i=this.getSelectionAreaBound();return gr(dC||(dC=mr([`
342      <div aria-label="`,`">
343        <div
344          class="`,`"
345          ref=`,`
346          onMousemove=`,`
347          onClick=`,`
348        >
349          `,`
350          <div class="`,'" style=',`></div>
351        </div>
352        <p class="`,'">',`</p>
353      </div>
354    `],[`
355      <div aria-label="`,`">
356        <div
357          class="`,`"
358          ref=`,`
359          onMousemove=`,`
360          onClick=`,`
361        >
362          `,`
363          <div class="`,'" style=',`></div>
364        </div>
365        <p class="`,'">',`</p>
366      </div>
367    `])),Ft.get("Insert table"),lt("table-selection"),function(a){return r.refs.tableEl=a},this.extendSelectionRange,this.execCommand,this.createTableArea(n),lt("table-selection-layer"),i,lt("table-description"),this.getDescription())},e}(Ci),uC,cC,fC,dC,i_e=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mounted=function(){this.refs.el.appendChild(this.props.body)},e.prototype.updated=function(r){this.refs.el.replaceChild(this.props.body,r.body)},e.prototype.render=function(){var r=this;return gr(pC||(pC=mr(["<div ref=","></div>"],["<div ref=","></div>"])),function(n){return r.refs.el=n})},e}(Ci),pC;function cg(t){return Ts(t)?o_e(t):t}function a_e(){var t=document.createElement("label"),e=document.createElement("input"),r=document.createElement("span");t.className="scroll-sync active",e.type="checkbox",e.checked=!0,r.className="switch";var n=function(i){return e.addEventListener("change",function(a){var o=a.target.checked;o?Po(t,"active"):uo(t,"active"),i("toggleScrollSync",{active:o})})};return t.appendChild(e),t.appendChild(r),{name:"scrollSync",el:t,onMounted:n}}function o_e(t){var e;switch(t){case"heading":e={name:"heading",className:"heading",tooltip:Ft.get("Headings"),state:"heading"};break;case"bold":e={name:"bold",className:"bold",command:"bold",tooltip:Ft.get("Bold"),state:"strong"};break;case"italic":e={name:"italic",className:"italic",command:"italic",tooltip:Ft.get("Italic"),state:"emph"};break;case"strike":e={name:"strike",className:"strike",command:"strike",tooltip:Ft.get("Strike"),state:"strike"};break;case"hr":e={name:"hr",className:"hrline",command:"hr",tooltip:Ft.get("Line"),state:"thematicBreak"};break;case"quote":e={name:"quote",className:"quote",command:"blockQuote",tooltip:Ft.get("Blockquote"),state:"blockQuote"};break;case"ul":e={name:"ul",className:"bullet-list",command:"bulletList",tooltip:Ft.get("Unordered list"),state:"bulletList"};break;case"ol":e={name:"ol",className:"ordered-list",command:"orderedList",tooltip:Ft.get("Ordered list"),state:"orderedList"};break;case"task":e={name:"task",className:"task-list",command:"taskList",tooltip:Ft.get("Task"),state:"taskList"};break;case"table":e={name:"table",className:"table",tooltip:Ft.get("Insert table"),state:"table"};break;case"image":e={name:"image",className:"image",tooltip:Ft.get("Insert image")};break;case"link":e={name:"link",className:"link",tooltip:Ft.get("Insert link")};break;case"code":e={name:"code",className:"code",command:"code",tooltip:Ft.get("Code"),state:"co
367de"};break;case"codeblock":e={name:"codeblock",className:"codeblock",command:"codeBlock",tooltip:Ft.get("Insert CodeBlock"),state:"codeBlock"};break;case"indent":e={name:"indent",className:"indent",command:"indent",tooltip:Ft.get("Indent"),state:"indent"};break;case"outdent":e={name:"outdent",className:"outdent",command:"outdent",tooltip:Ft.get("Outdent"),state:"outdent"};break;case"scrollSync":e=a_e();break;case"more":e={name:"more",className:"more",tooltip:Ft.get("More")};break}return e.name!=="scrollSync"&&(e.className+=" "+lt("toolbar-icons")),e}function Dy(t,e){var r=e.el,n=e.pos,i=e.popup,a=e.initialValues;switch(t){case"heading":return{render:function(o){return gr(hC||(hC=mr(["<"," ..."," />"],["<"," ..."," />"])),XTe,o)},className:lt("popup-add-heading"),fromEl:r,pos:n};case"link":return{render:function(o){return gr(vC||(vC=mr(["<"," ..."," />"],["<"," ..."," />"])),e_e,o)},className:lt("popup-add-link"),fromEl:r,pos:n,initialValues:a};case"image":return{render:function(o){return gr(mC||(mC=mr(["<"," ..."," />"],["<"," ..."," />"])),ZTe,o)},className:lt("popup-add-image"),fromEl:r,pos:n};case"table":return{render:function(o){return gr(gC||(gC=mr(["<"," ..."," />"],["<"," ..."," />"])),n_e,o)},className:lt("popup-add-table"),fromEl:r,pos:n};case"customPopupBody":return i?de({render:function(o){return gr(yC||(yC=mr(["<"," ..."," body="," />"],["<"," ..."," body="," />"])),i_e,o,i.body)},fromEl:r,pos:n},i):null;default:return null}}function _p(t){t.hidden=t.length===t.filter(function(e){return e.hidden}).length}function s_e(t,e){var r=function(n){return n.hidden=n.name==="scrollSync"&&e,n};return t.reduce(function(n,i){n.push(i.map(function(o){return r(cg(o))}));var a=n[(n.length||1)-1];return a&&_p(a),n},[])}function l_e(t,e){t.forEach(function(r){r.forEach(function(n){return n.hidden=n.name==="scrollSync"&&e}),_p(r)})}var hC,vC,mC,gC,yC,u_e=20,c_e=function(t){it(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handleMousedown=function(n){!Bo(n.target,"."+lt("popup"))&&!Bo(n.target,r.props.info.fromEl)&&r.props.hidePopup()},r}return e.prototype.mounted=function(){document.addEventListener("mousedown",this.handleMousedown),this.props.eventEmitter.listen("closePopup",this.props.hidePopup)},e.prototype.beforeDestroy=function(){document.removeEventListener("mousedown",this.handleMousedown)},e.prototype.updated=function(r){var n=this.props,i=n.show,a=n.info;if(i&&a.pos&&r.show!==i){var o=de({},a.pos),s=this.refs.el.offsetWidth,u=Bo(this.refs.el,"."+lt("toolbar")),f=u.offsetWidth;o.left+s>=f&&(o.left=f-s-u_e),oy(this.state.popupPos,o)||this.setState({popupPos:o})}},e.prototype.render=function(){var r=this,n=this.props,i=n.info,a=n.show,o=n.hidePopup,s=n.eventEmitter,u=n.execCommand,f=i||{},d=f.className,v=d===void 0?"":d,m=f.style,b=f.render,x=f.initialValues,T=x===void 0?{}:x,S=de(de({display:a?"block":"none"},m),this.state.popupPos);return gr(bC||(bC=mr([`
368      <div
369        class="`," ",`"
370        style=`,`
371        ref=`,`
372        aria-role="dialog"
373      >
374        <div class="`,`">
375          `,`
376        </div>
377      </div>
378    `],[`
379      <div
380        class="`," ",`"
381        style=`,`
382        ref=`,`
383        aria-role="dialog"
384      >
385        <div class="`,`">
386          `,`
387        </div>
388      </div>
389    `])),lt("popup"),v,S,function(M){return r.refs.el=M},lt("popup-body"),b&&b({eventEmitter:s,show:a,hidePopup:o,execCommand:u,initialValues:T}))},e}(Ci),bC,wC=6;function Iy(t){return function(e){it(r,e);function r(n){var i=e.call(this,n)||this;return i.showTooltip=function(a){var o=i.props.item.tooltip;if(!i.props.disabled&&o){var s=i.getBound(a),u=s.left+wC+"px",f=s.top+wC+"px";qo(i.props.tooltipRef.current,{display:"block",left:u,top:f}),i.props.tooltipRef.current.querySelector(".text").textContent=o}},i.hideTooltip=function(){qo(i.props.tooltipRef.current,"display","none")},i.state={active:!1,disabled:n.disabled},i.addEvent(),i}return r.prototype.addEvent=function(){var n=this,i=this.props,a=i.item,o=i.eventEmitter;a.state&&o.listen("changeToolbarState",function(s){var u,f=s.toolbarState,d=(u=f[a.state])!==null&&u!==void 0?u:{},v=d.active,m=d.disabled;n.setState({active:!!v,disabled:m??n.props.disabled})})},r.prototype.getBound=function(n){var i=n1(n,Bo(n,"."+lt("toolbar"))),a=i.offsetLeft,o=i.offsetTop;return{left:a,top:n.offsetHeight+o}},r.prototype.render=function(){return gr(xC||(xC=mr([`
390        <`,`
391          ...`,`
392          active=`,`
393          showTooltip=`,`
394          hideTooltip=`,`
395          getBound=`,`
396          disabled=`,`
397        />
398      `],[`
399        <`,`
400          ...`,`
401          active=`,`
402          showTooltip=`,`
403          hideTooltip=`,`
404          getBound=`,`
405          disabled=`,`
406        />
407      `])),t,this.props,this.state.active,this.showTooltip,this.hideTooltip,this.getBound,this.state.disabled||this.props.disabled)},r}(Ci)}var xC,f_e=80,d_e=function(t){it(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.showTooltip=function(){r.props.showTooltip(r.refs.el)},r.execCommand=function(){var n=r.props,i=n.item,a=n.execCommand,o=n.setPopupInfo,s=n.getBound,u=n.eventEmitter,f=i.command,d=i.name,v=i.popup;
vendor: 4,499 bytes, lines 407-470
407if(f)a(f);else{var m=v?"customPopupBody":d,b=u.emit("query","getPopupInitialValues",{popupName:m})[0],x=Dy(m,{el:r.refs.el,pos:s(r.refs.el),popup:v,initialValues:b});x&&o(x)}},r}return e.prototype.mounted=function(){this.setItemWidth()},e.prototype.updated=function(r){r.item.name!==this.props.item.name&&this.setItemWidth()},e.prototype.setItemWidth=function(){var r=this.props,n=r.setItemWidth,i=r.item;n&&n(i.name,vy(this.refs.el)+(i.hidden?f_e:0))},e.prototype.render=function(){var r=this,n=this.props,i=n.hideTooltip,a=n.disabled,o=n.item,s=n.active,u=de({display:o.hidden?"none":null},o.style),f=""+(o.className||"")+(s?" active":"");return gr(CC||(CC=mr([`
408      <button
409        ref=`,`
410        type="button"
411        style=`,`
412        class=`,`
413        onClick=`,`
414        onMouseover=`,`
415        onMouseout=`,`
416        disabled=`,`
417        aria-label=`,`
418      >
419        `,`
420      </button>
421    `],[`
422      <button
423        ref=`,`
424        type="button"
425        style=`,`
426        class=`,`
427        onClick=`,`
428        onMouseover=`,`
429        onMouseout=`,`
430        disabled=`,`
431        aria-label=`,`
432      >
433        `,`
434      </button>
435    `])),function(d){return r.refs.el=d},u,f,this.execCommand,this.showTooltip,i,!!a,o.text||o.tooltip||"",o.text||"")},e}(Ci),p_e=Iy(d_e),CC,h_e=function(t){it(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.showTooltip=function(){r.props.showTooltip(r.refs.el)},r.showPopup=function(){var n=Dy("customPopupBody",{el:r.refs.el,pos:r.props.getBound(r.refs.el),popup:r.props.item.popup});n&&r.props.setPopupInfo(n)},r}return e.prototype.mounted=function(){var r=this.props,n=r.setItemWidth,i=r.item;this.refs.el.appendChild(i.el),n&&n(i.name,vy(this.refs.el)),i.onMounted&&i.onMounted(this.props.execCommand)},e.prototype.updated=function(r){var n,i=this.props,a=i.item,o=i.active,s=i.disabled;(r.active!==o||r.disabled!==s)&&((n=a.onUpdated)===null||n===void 0||n.call(a,{active:o,disabled:s}))},e.prototype.render=function(){var r=this,n=this.props,i=n.disabled,a=n.item,o={display:a.hidden?"none":"inline-block"},s=function(u){return i?null:u};return gr(EC||(EC=mr([`
436      <div
437        ref=`,`
438        style=`,`
439        class=`,`
440        onClick=`,`
441        onMouseover=`,`
442        onMouseout=`,`
443      ></div>
444    `],[`
445      <div
446        ref=`,`
447        style=`,`
448        class=`,`
449        onClick=`,`
450        onMouseover=`,`
451        onMouseout=`,`
452      ></div>
453    `])),function(u){return r.refs.el=u},o,lt("toolbar-item-wrapper"),s(this.showPopup),s(this.showTooltip),s(this.props.hideTooltip))},e}(Ci),v_e=Iy(h_e),EC,FS=function(t){it(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this,n=this.props,i=n.group,a=n.hiddenDivider,o=i.hidden?{display:"none"}:null,s=a?{display:"none"}:null;return gr(_C||(_C=mr([`
454      <div class="`,'" style=',`>
455        `,`
456        <div class="`,'" style=',`></div>
457      </div>
458    `],[`
459      <div class="`,'" style=',`>
460        `,`
461        <div class="`,'" style=',`></div>
462      </div>
463    `])),lt("toolbar-group"),o,i.map(function(u){var f=u.el?v_e:p_e;return gr(TC||(TC=mr(["<"," key="," ..."," item="," />"],["<"," key="," ..."," item="," />"])),f,u.name,r.props,u)}),lt("toolbar-divider"),s)},e}(Ci),TC,_C,m_e=4,g_e=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.handleClickDocument=function(i){var a=i.target;!Bo(a,"."+lt("dropdown-toolbar"))&&!Bo(a,".more")&&n.setState({showDropdown:!1,dropdownPos:null})},n.showTooltip=function(){n.props.showTooltip(n.refs.el)},n.state={showDropdown:!1,dropdownPos:null},n}return e.prototype.getBound=function(){var r=this.props.getBound(this.refs.el);return r.top+=m_e,de(de({},r),{left:null,right:10})},e.prototype.mounted=function(){document.addEventListener("click",this.handleClickDocument)},e.prototype.updated=function(){this.state.showDropdown&&!this.state.dropdownPos&&this.setState({dropdownPos:this.getBound()})},e.prototype.beforeDestroy=function(){document.removeEventListener("click",this.handleClickDocument)},e.prototype.render=function(){var r=this,n=this.state,i=n.showDropdown,a=n.dropdownPos,o=this.props,s=o.disabled,u=o.item,f=o.items,d=o.hideTooltip,v=f.filter(function(x){return!x.hidden}),m=v.length?null:{display:"none"},b=i?null:{display:"none"};return gr(kC||(kC=mr([`
464      <div class="`,'" style=',`>
465        <button
466          ref=`,`
467          type="button"
468          class=`,`
469          onClick=`,`
470          onMouseover=`,`
471          onMouseout=`,`
472          disabled=`,`
473        ></button>
474        <div
475          class="`,`"
476          style=`,`
477          ref=`,`
478        >
479          `,`
480        </div>
481      </div>
482    `],[`
483      <div class="`,'" style=',`>
484        <button
485          ref=`,`
486          type="button"
487          class=`,`
488          onClick=`,`
489          onMouseover=`,`
490          onMouseout=`,`
491          disabled=`,`
492        ></button>
493        <div
494          class="`,`"
495          style=`,`
496          ref=`,`
497        >
498          `,`
499        </div>
500      </div>
501    `])),lt("toolbar-group"),m,function(x){return r.refs.el=x},u.className,function(){return r.setState({showDropdown:!0})},this.showTooltip,d,s,lt("dropdown-toolbar"),de(de({},b),a),function(x){return r.refs.dropdownEl=x},v.length?v.map(function(x,T){var S;return gr(SC||(SC=mr([`
502                  <`,`
503                    group=`,`
504                    hiddenDivider=`,`
505                    ...`,`
506                  />
507                `],[`
508                  <`,`
509                    group=`,`
510                    hiddenDivider=`,`
511                    ...`,`
512                  />
513                `])),FS,x,T===v.length-1||((S=v[T+1])===null||S===void 0?void 0:S.hidden),r.props)}):null)},e}(Ci),y_e=Iy(g_e),SC,kC,b_e=50,w_e=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.toggleTab=function(i,a){var o=n.props.eventEmitter;if(n.state.activeTab!==a){var s=a==="write"?"changePreviewTabWrite":"changePreviewTabPreview";o.emit(s),n.setState({activeTab:a})}},n.setItemWidth=function(i,a){n.itemWidthMap[i]=a},n.setPopupInfo=function(i){n.setState({showPopup:!0,popupInfo:i})},n.openPopup=function(i,a){a===void 0&&(a={});var o=n.refs.el.querySelector("."+lt("toolbar-group")+" ."+i);if(o){var s=n1(o,Bo(o,"."+lt("toolbar"))),u=s.offsetLeft,f=s.offsetTop,d=Dy(i,{el:o,pos:{left:u,top:o.offsetHeight+f},initialValues:a});d&&n.setPopupInfo(d)}},n.hidePopup=function(){n.state.showPopup&&n.setState({showPopup:!1})},n.execCommand=function(i,a){var o=n.props.eventEmitter;o.emit("command",i,a),n.hidePopup()},n.tabs=[{name:"write",text:"Write"},{name:"preview",text:"Preview"}],n.itemWidthMap={},n.initialItems=s_e(r.toolbarItems||[],n.hiddenScrollSync()),n.state={items:n.initialItems,dropdownItems:[],showPopup:!1,popupInfo:{},activeTab:"write"},n.tooltipRef={current:null},n.resizeObserver=new YTe(function(){return n.handleResize()}),n.addEvent(),n}return e.prototype.insertToolbarItem=function(r,n){var i=r.groupIndex,a=r.itemIndex,o=this.initialItems[i];n=cg(n),o?o.splice(a,0,n):this.initialItems.push([n]),this.setState(this.classifyToolbarItems())},e.prototype.removeToolbarItem=function(r){var n=this;Cc(this.initialItems,function(i){var a=!1;return Cc(i,function(o,s){return o.name===r?(a=!0,i.splice(s,1),n.setState(n.classifyToolbarItems()),!1):!0}),!a})},e.prototype.addEvent=function(){var r=this,n=this.props.eventEmitter;this.handleResize=DTe(function(){r.setState({items:r.initialItems,dropdownItems:[]}),r.setState(r.classifyToolbarItems())},200),n.listen("openPopup",this.openPopup)},e.prototype.appendTooltipToRoot=function(){var r='<div class="'+lt("tooltip")+`" style="display:none">
514        <div class="arrow"></div>
515        <span class="text"></span>
516      </div>`;this.tooltipRef.current=r1(r,this.refs.el)},e.prototype.hiddenScrollSync=function(){return this.props.editorType==="wysiwyg"||this.props.previewStyle==="tab"},e.prototype.movePrevItemToDropdownToolbar=function(r,n,i,a){var o=function(u){var f=u.pop();f&&a.push(f)};if(r>1)o(i);else{var s=gi(n);s&&o(s)}},e.prototype.classifyToolbarItems=function(){var r=this,n=0,i=this.refs.el.clientWidth,a=this.refs.el.querySelector("."+lt("toolbar-divider")),o=a?vy(a):0,s=[],u=[],f=!1;return this.initialItems.forEach(function(d,v){var m=[],b=[];d.forEach(function(x,T){x.hidden||(n+=r.itemWidthMap[x.name],n>i-b_e?(f||(r.movePrevItemToDropdownToolbar(T,s,m,b),f=!0),b.push(x)):m.push(x))}),m.length&&(_p(m),s.push(m)),b.length&&(_p(b),u.push(b)),v<r.state.items.length-1&&(n+=o)}),{items:s,dropdownItems:u}},e.prototype.mounted=function(){this.props.previewStyle==="tab"&&this.props.eventEmitter.emit("changePreviewTabWrite",!0),this.setState(this.classifyToolbarItems()),this.appendTooltipToRoot(),this.resizeObserver.observe(this.refs.el)},e.prototype.updated=function(r){var n=this.props,i=n.editorType,a=n.previewStyle,o=n.eventEmitter,s=a!==r.previewStyle,u=i!==r.editorType;if(s||u){l_e(this.initialItems,this.hiddenScrollSync());var f=this.classifyToolbarItems();(s||a==="tab"&&i==="markdown")&&(o.emit("changePreviewTabWrite"),f.activeTab="write"),this.setState(f)}},e.prototype.beforeDestroy=function(){window.removeEventListener("resize",this.handleResize),this.resizeObserver.disconnect(),vu(this.tooltipRef.current)},e.prototype.render=function(){var r=this,n=this.props,i=n.previewStyle,a=n.eventEmitter,o=n.editorType,s=this.state,u=s.popupInfo,f=s.showPopup,d=s.activeTab,v=s.items,m=s.dropdownItems,b={eventEmitter:a,tooltipRef:this.tooltipRef,disabled:o==="markdown"&&i==="tab"&&d==="preview",execCommand:this.execCommand,setPopupInfo:this.setPopupInfo},x=i==="tab"?{borderTopLeftRadius:0}:null;return gr(AC||(AC=mr([`
517      <div class="`,`">
518        <div
519          class="`,`"
520          style="display: `,`"
521        >
522          <`," tabs="," activeTab="," onClick=",` />
523        </div>
524        <div
525          class="`,`"
526          ref=`,`
527          style=`,`
528        >
529          `,`
530          <`,`
531            item=`,`
532            items=`,`
533            ...`,`
534          />
535        </div>
536        <`,`
537          info=`,`
538          show=`,`
539          eventEmitter=`,`
540          hidePopup=`,`
541          execCommand=`,`
542        />
543      </div>
544    `],[`
545      <div class="`,`">
546        <div
547          class="`,`"
548          style="display: `,`"
549        >
550          <`," tabs="," activeTab="," onClick=",` />
551        </div>
552        <div
553          class="`,`"
554          ref=`,`
555          style=`,`
556        >
557          `,`
558          <`,`
559            item=`,`
560            items=`,`
561            ...`,`
562          />
563        </div>
564        <`,`
565          info=`,`
566          show=`,`
567          eventEmitter=`,`
568          hidePopup=`,`
569          execCommand=`,`
570        />
571      </div>
572    `])),lt("toolbar"),lt("md-tab-container"),o==="wysiwyg"||i==="vertical"?"none":"block",BS,this.tabs,d,this.toggleTab,lt("defaultUI-toolbar"),function(T){return r.refs.el=T},x,v.map(function(T,S){var M;return gr(OC||(OC=mr([`
573              <`,`
574                group=`,`
575                hiddenDivider=`,`
576                setItemWidth=`,`
577                ...`,`
578              />
579            `],[`
580              <`,`
581                group=`,`
582                hiddenDivider=`,`
583                setItemWidth=`,`
584                ...`,`
585              />
586            `])),FS,T,S===v.length-1||((M=v[S+1])===null||M===void 0?void 0:M.hidden),r.setItemWidth,b)}),y_e,cg("more"),m,b,c_e,u,f,a,this.hidePopup,this.execCommand)},e}(Ci),OC,AC,x_e=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;return n.handleClickDocument=function(i){Bo(i.target,"."+lt("context-menu"))||n.setState({pos:null})},n.state={pos:null,menuGroups:[]},n.addEvent(),n}return e.prototype.addEvent=function(){var r=this;this.props.eventEmitter.listen("contextmenu",function(n){var i=n.pos,a=n.menuGroups;r.setState({pos:i,menuGroups:a})})},e.prototype.mounted=function(){document.addEventListener("click",this.handleClickDocument)},e.prototype.beforeDestroy=function(){document.removeEventListener("click",this.handleClickDocument)},e.prototype.getMenuGroupElements=function(){var r=this,n=this.state,i=n.pos,a=n.menuGroups;return i?a.reduce(function(o,s){var u=[];
vendor: 5,112 bytes, lines 586-696
586return s.forEach(function(f){var d=f.label,v=f.className,m=v===void 0?!1:v,b=f.disabled,x=f.onClick,T=function(){b||(x(),r.setState({pos:null}))};u.push(gr(MC||(MC=mr([`
587                <li
588                  onClick=`,`
589                  class="menu-item`,`"
590                  aria-role="menuitem"
591                >
592                  <span class="`,'">',`</span>
593                </li>
594              `],[`
595                <li
596                  onClick=`,`
597                  class="menu-item`,`"
598                  aria-role="menuitem"
599                >
600                  <span class="`,'">',`</span>
601                </li>
602              `])),T,b?" disabled":"",m,d))}),o.push(gr(LC||(LC=mr([`<ul class="menu-group">
603              `,`
604            </ul>`],[`<ul class="menu-group">
605              `,`
606            </ul>`])),u)),o},[]):[]},e.prototype.render=function(){var r=de({display:this.state.pos?"block":"none"},this.state.pos);return gr(DC||(DC=mr(['<div class="','" style=',` aria-role="menu">
607      `,`
608    </div>`],['<div class="','" style=',` aria-role="menu">
609      `,`
610    </div>`])),lt("context-menu"),r,this.getMenuGroupElements())},e}(Ci),MC,LC,DC,C_e=function(t){it(e,t);function e(r){var n=t.call(this,r)||this;n.changeMode=function(o){o!==n.state.editorType&&n.setState({editorType:o})},n.changePreviewStyle=function(o){o!==n.state.previewStyle&&n.setState({previewStyle:o})},n.hide=function(){n.setState({hide:!0})},n.show=function(){n.setState({hide:!1})};var i=r.editorType,a=r.previewStyle;return n.state={editorType:i,previewStyle:a,hide:!1},n.addEvent(),n}return e.prototype.mounted=function(){var r=this.props.slots,n=r.wwEditor,i=r.mdEditor,a=r.mdPreview;this.refs.wwContainer.appendChild(n),this.refs.mdContainer.insertAdjacentElement("afterbegin",i),this.refs.mdContainer.appendChild(a)},e.prototype.insertToolbarItem=function(r,n){this.toolbar.insertToolbarItem(r,n)},e.prototype.removeToolbarItem=function(r){this.toolbar.removeToolbarItem(r)},e.prototype.render=function(){var r=this,n=this.props,i=n.eventEmitter,a=n.hideModeSwitch,o=n.toolbarItems,s=n.theme,u=this.state,f=u.hide,d=u.previewStyle,v=u.editorType,m=f?" hidden":"",b=lt(v==="markdown"?"md-mode":"ww-mode"),x=lt("md")+"-"+d+"-style",T=lt([s!=="light",s+" "]);return gr(RC||(RC=mr([`
611      <div
612        class="`,"","",`"
613        ref=`,`
614      >
615        <`,`
616          ref=`,`
617          eventEmitter=`,`
618          previewStyle=`,`
619          toolbarItems=`,`
620          editorType=`,`
621        />
622        <div
623          class="`," ",`"
624          ref=`,`
625        >
626          <div class="`,`">
627            <div
628              class="`," ",`"
629              ref=`,`
630            >
631              <div class="`,`"></div>
632            </div>
633            <div
634              class="`,`"
635              ref=`,`
636            />
637          </div>
638        </div>
639        `,`
640        <`," eventEmitter=",` />
641      </div>
642    `],[`
643      <div
644        class="`,"","",`"
645        ref=`,`
646      >
647        <`,`
648          ref=`,`
649          eventEmitter=`,`
650          previewStyle=`,`
651          toolbarItems=`,`
652          editorType=`,`
653        />
654        <div
655          class="`," ",`"
656          ref=`,`
657        >
658          <div class="`,`">
659            <div
660              class="`," ",`"
661              ref=`,`
662            >
663              <div class="`,`"></div>
664            </div>
665            <div
666              class="`,`"
667              ref=`,`
668            />
669          </div>
670        </div>
671        `,`
672        <`," eventEmitter=",` />
673      </div>
674    `])),T,lt("defaultUI"),m,function(S){return r.refs.el=S},w_e,function(S){return r.toolbar=S},i,d,o,v,lt("main"),b,function(S){return r.refs.editorSection=S},lt("main-container"),lt("md-container"),x,function(S){return r.refs.mdContainer=S},lt("md-splitter"),lt("ww-container"),function(S){return r.refs.wwContainer=S},!a&&gr(IC||(IC=mr(["<"," eventEmitter="," editorType="," />"],["<"," eventEmitter="," editorType="," />"])),kTe,i,v),x_e,i)},e.prototype.addEvent=function(){var r=this.props.eventEmitter;r.listen("hide",this.hide),r.listen("show",this.show),r.listen("changeMode",this.changeMode),r.listen("changePreviewStyle",this.changePreviewStyle)},e}(Ci),IC,RC,E_e=function(t){it(e,t);function e(r){var n,i=t.call(this,r)||this,a,o=STe(i.options.el,gr(NC||(NC=mr([`
675        <`,`
676          ref=`,`
677          eventEmitter=`,`
678          slots=`,`
679          hideModeSwitch=`,`
680          toolbarItems=`,`
681          previewStyle=`,`
682          editorType=`,`
683          theme=`,`
684        />
685      `],[`
686        <`,`
687          ref=`,`
688          eventEmitter=`,`
689          slots=`,`
690          hideModeSwitch=`,`
691          toolbarItems=`,`
692          previewStyle=`,`
693          editorType=`,`
694          theme=`,`
695        />
696      `])),C_e,function(s){return a=s},i.eventEmitter,i.getEditorElements(),i.options.hideModeSwitch,i.options.toolbarItems,i.options.previewStyle,i.options.initialEditType,i.options.theme));return i.setMinHeight(i.options.minHeight),i.setHeight(i.options.height),i.defaultUI={insertToolbarItem:a.insertToolbarItem.bind(a),removeToolbarItem:a.removeToolbarItem.bind(a),destroy:o}
696,(n=i.pluginInfo.toolbarItems)===null||n===void 0||n.forEach(function(s){var u=s.groupIndex,f=s.itemIndex,d=s.item;i.defaultUI.insertToolbarItem({groupIndex:u,itemIndex:f},d)}),i.eventEmitter.emit("loadUI",i),i}return e.factory=function(r){return r.viewer?new SS(r):new e(r)},e.prototype.insertToolbarItem=function(r,n){this.defaultUI.insertToolbarItem(r,n)},e.prototype.removeToolbarItem=function(r){this.defaultUI.removeToolbarItem(r)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.defaultUI.destroy()},e}(OS),NC;OS.setLanguage(["en","en-US"],{Markdown:"Markdown",WYSIWYG:"WYSIWYG",Write:"Write",Preview:"Preview",Headings:"Headings",Paragraph:"Paragraph",Bold:"Bold",Italic:"Italic",Strike:"Strike",Code:"Inline code",Line:"Line",Blockquote:"Blockquote","Unordered list":"Unordered list","Ordered list":"Ordered list",Task:"Task",Indent:"Indent",Outdent:"Outdent","Insert link":"Insert link","Insert CodeBlock":"Insert codeBlock","Insert table":"Insert table","Insert image":"Insert image",Heading:"Heading","Image URL":"Image URL","Select image file":"Select image file","Choose a file":"Choose a file","No file":"No file",Description:"Description",OK:"OK",More:"More",Cancel:"Cancel",File:"File",URL:"URL","Link text":"Link text","Add row to up":"Add row to up","Add row to down":"Add row to down","Add column to left":"Add column to left","Add column to right":"Add column to right","Remove row":"Remove row","Remove column":"Remove column","Align column to left":"Align column to left","Align column to center":"Align column to center","Align column to right":"Align column to right","Remove table":"Remove table","Would you like to paste as table?":"Would you like to paste as table?","Text color":"Text color","Auto scroll enabled":"Auto scroll enabled","Auto scroll disabled":"Auto scroll disabled","Choose language":"Choose language"});var Ry={exports:{}},HS=function(e,r){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return e.apply(r,i)}},T_e=HS,Ny=Object.prototype.toString,Py=function(t){return function(e){var r=Ny.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function Eu(t){return t=t.toLowerCase(),function(r){return Py(r)===t}}function By(t){return Array.isArray(t)}function Sp(t){return typeof t>"u"}function __e(t){return t!==null&&!Sp(t)&&t.constructor!==null&&!Sp(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var qS=Eu("ArrayBuffer");function S_e(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&qS(t.buffer),e}function k_e(t){return typeof t=="string"}function O_e(t){return typeof t=="number"}function $S(t){return t!==null&&typeof t=="object"}function Vd(t){if(Py(t)!=="object")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}var A_e=Eu("Date"),M_e=Eu("File"),L_e=Eu("Blob"),D_e=Eu("FileList");function Fy(t){return Ny.call(t)==="[object Function]"}function I_e(t){return $S(t)&&Fy(t.pipe)}function R_e(t){var e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||Ny.call(t)===e||Fy(t.toString)&&t.toString()===e)}var N_e=Eu("URLSearchParams");function P_e(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function B_e(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Hy(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),By(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function fg(){var t={};function e(i,a){Vd(t[a])&&Vd(i)?t[a]=fg(t[a],i):Vd(i)?t[a]=fg({},i):By(i)?t[a]=i.slice():t[a]=i}for(var r=0,n=arguments.length;r<n;r++)Hy(arguments[r],e);return t}function F_e(t,e,r){return Hy(e,function(i,a){r&&typeof i=="function"?t[a]=T_e(i,r):t[a]=i}),t}function H_e(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}function q_e(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)}function $_e(t,e,r){var n,i,a,o={};e=e||{};do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)a=n[i],o[a]||(e[a]=t[a],o[a]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e}function U_e(t,e,r){t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return n!==-1&&n===r}function j_e(t){if(!t)return null;var e=t.length;if(Sp(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r}var z_e=function(t){return function(e){return t&&e instanceof t}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),li={isArray:By,isArrayBuffer:qS,isBuffer:__e,is
696FormData:R_e,isArrayBufferView:S_e,isString:k_e,isNumber:O_e,isObject:$S,isPlainObject:Vd,isUndefined:Sp,isDate:A_e,isFile:M_e,isBlob:L_e,isFunction:Fy,isStream:I_e,isURLSearchParams:N_e,isStandardBrowserEnv:B_e,forEach:Hy,merge:fg,extend:F_e,trim:P_e,stripBOM:H_e,inherits:q_e,toFlatObject:$_e,kindOf:Py,kindOfTest:Eu,endsWith:U_e,toArray:j_e,isTypedArray:z_e,isFileList:D_e},ec=li;function PC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var US=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(ec.isURLSearchParams(r))i=r.toString();else{var a=[];ec.forEach(r,function(u,f){u===null||typeof u>"u"||(ec.isArray(u)?f=f+"[]":u=[u],ec.forEach(u,function(v){ec.isDate(v)?v=v.toISOString():ec.isObject(v)&&(v=JSON.stringify(v)),a.push(PC(f)+"="+PC(v))}))}),i=a.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},W_e=li;function Zp(){this.handlers=[]}Zp.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Zp.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Zp.prototype.forEach=function(e){W_e.forEach(this.handlers,function(n){n!==null&&e(n)})};var V_e=Zp,G_e=li,K_e=function(e,r){G_e.forEach(e,function(i,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[a])})},jS=li;function Lc(t,e,r,n,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}jS.inherits(Lc,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var zS=Lc.prototype,WS={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){WS[t]={value:t}});Object.defineProperties(Lc,WS);Object.defineProperty(zS,"isAxiosError",{value:!0});Lc.from=function(t,e,r,n,i,a){var o=Object.create(zS);return jS.toFlatObject(t,o,function(u){return u!==Error.prototype}),Lc.call(o,t.message,e,r,n,i),o.name=t.name,a&&Object.assign(o,a),o};var Uc=Lc,VS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lo=li;function J_e(t,e){e=e||new FormData;var r=[];function n(a){return a===null?"":lo.isDate(a)?a.toISOString():lo.isArrayBuffer(a)||lo.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,o){if(lo.isPlainObject(a)||lo.isArray(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);r.push(a),lo.forEach(a,function(u,f){if(!lo.isUndefined(u)){var d=o?o+"."+f:f,v;if(u&&!o&&typeof u=="object"){if(lo.endsWith(f,"{}"))u=JSON.stringify(u);else if(lo.endsWith(f,"[]")&&(v=lo.toArray(u))){v.forEach(function(m){!lo.isUndefined(m)&&e.append(d,n(m))});return}}i(u,d)}}),r.pop()}else e.append(o,n(a))}return i(t),e}var GS=J_e,$v,BC;function Y_e(){if(BC)return $v;BC=1;var t=Uc;return $v=function(r,n,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?r(i):n(new t("Request failed with status code "+i.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},$v}var Uv,FC;function X_e(){if(FC)return Uv;FC=1;var t=li;return Uv=t.isStandardBrowserEnv()?function(){return{write:function(n,i,a,o,s,u){var f=[];f.push(n+"="+encodeURIComponent(i)),t.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),t.isString(o)&&f.push("path="+o),t.isString(s)&&f.push("domain="+s),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Uv}var Q_e=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Z_e=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e},e1e=Q_e,t1e=Z_e,KS=function(e,r){return e&&!e1e(r)?t1e(e,r):r},jv,HC;
696function r1e(){if(HC)return jv;HC=1;var t=li,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return jv=function(n){var i={},a,o,s;return n&&t.forEach(n.split(`
697`),function(f){if(s=f.indexOf(":"),a=t.trim(f.substr(0,s)).toLowerCase(),o=t.trim(f.substr(s+1)),a){if(i[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},jv}var zv,qC;function n1e(){if(qC)return zv;qC=1;var t=li;return zv=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function a(o){var s=o;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=a(window.location.href),function(s){var u=t.isString(s)?a(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),zv}var Wv,$C;function eh(){if($C)return Wv;$C=1;var t=Uc,e=li;function r(n){t.call(this,n??"canceled",t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(r,t,{__CANCEL__:!0}),Wv=r,Wv}var Vv,UC;function i1e(){return UC||(UC=1,Vv=function(e){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}),Vv}var Gv,jC;function zC(){if(jC)return Gv;jC=1;var t=li,e=Y_e(),r=X_e(),n=US,i=KS,a=r1e(),o=n1e(),s=VS,u=Uc,f=eh(),d=i1e();return Gv=function(m){return new Promise(function(x,T){var S=m.data,M=m.headers,L=m.responseType,P;function A(){m.cancelToken&&m.cancelToken.unsubscribe(P),m.signal&&m.signal.removeEventListener("abort",P)}t.isFormData(S)&&t.isStandardBrowserEnv()&&delete M["Content-Type"];var H=new XMLHttpRequest;if(m.auth){var W=m.auth.username||"",J=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";M.Authorization="Basic "+btoa(W+":"+J)}var ee=i(m.baseURL,m.url);H.open(m.method.toUpperCase(),n(ee,m.params,m.paramsSerializer),!0),H.timeout=m.timeout;function X(){if(H){var Y="getAllResponseHeaders"in H?a(H.getAllResponseHeaders()):null,ne=!L||L==="text"||L==="json"?H.responseText:H.response,Te={data:ne,status:H.status,statusText:H.statusText,headers:Y,config:m,request:H};e(function(He){x(He),A()},function(He){T(He),A()},Te),H=null}}if("onloadend"in H?H.onloadend=X:H.onreadystatechange=function(){!H||H.readyState!==4||H.status===0&&!(H.responseURL&&H.responseURL.indexOf("file:")===0)||setTimeout(X)},H.onabort=function(){H&&(T(new u("Request aborted",u.ECONNABORTED,m,H)),H=null)},H.onerror=function(){T(new u("Network Error",u.ERR_NETWORK,m,H,H)),H=null},H.ontimeout=function(){var ne=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",Te=m.transitional||s;m.timeoutErrorMessage&&(ne=m.timeoutErrorMessage),T(new u(ne,Te.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,m,H)),H=null},t.isStandardBrowserEnv()){var ie=(m.withCredentials||o(ee))&&m.xsrfCookieName?r.read(m.xsrfCookieName):void 0;ie&&(M[m.xsrfHeaderName]=ie)}"setRequestHeader"in H&&t.forEach(M,function(ne,Te){typeof S>"u"&&Te.toLowerCase()==="content-type"?delete M[Te]:H.setRequestHeader(Te,ne)}),t.isUndefined(m.withCredentials)||(H.withCredentials=!!m.withCredentials),L&&L!=="json"&&(H.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&H.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&H.upload&&H.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(P=function(Y){H&&(T(!Y||Y&&Y.type?new f:Y),H.abort(),H=null)},m.cancelToken&&m.cancelToken.subscribe(P),m.signal&&(m.signal.aborted?P():m.signal.addEventListener("abort",P))),S||(S=null);var ge=d(ee);if(ge&&["http","https","file"].indexOf(ge)===-1){T(new u("Unsupported protocol "+ge+":",u.ERR_BAD_REQUEST,m));return}H.send(S)})},Gv}var Kv,WC;function a1e(){return WC||(WC=1,Kv=null),Kv}var Wn=li,VC=K_e,GC=Uc,o1e=VS,s1e=GS,l1e={"Content-Type":"application/x-www-form-urlencoded"};function KC(t,e){!Wn.isUndefined(t)&&Wn.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function u1e(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=zC()),t}function c1e(t,e,r){if(Wn.isString(t))try{return(e||JSON.parse)(t),Wn.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(t)}var th={transitional:o1e,adapter:u1e(),transformRequest:[function(e,r){if(VC(r,"Accept"),VC(r,"Content-Type"),Wn.isFormData(e)||Wn.isArrayBuffer(e)||Wn.isBuffer(e)||Wn.isStream(e)||Wn.isFile(e)||Wn.isBlob(e))return e;if(Wn.isArrayBufferView(e))return e.buffer;if(Wn.isURLSearchParams(e))return KC(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n=Wn.isObject(e),i=r&&r["Content-Type"],a;if((a=Wn.isFileList(e))||n&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return s1e(a?{"files[]":e}:e,o&&new o)}else if(n||i==="application/json")return KC(r,"application/json"),c1e(e);return e}],transformResponse:[function(e){var r=this.transitional||th.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||i&&Wn.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?GC.from(o,GC.ERR_BAD_RESPONSE,this,null,this.response):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:a1e()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};
697Wn.forEach(["delete","get","head"],function(e){th.headers[e]={}});Wn.forEach(["post","put","patch"],function(e){th.headers[e]=Wn.merge(l1e)});var qy=th,f1e=li,d1e=qy,p1e=function(e,r,n){var i=this||d1e;return f1e.forEach(n,function(o){e=o.call(i,e,r)}),e},Jv,JC;function JS(){return JC||(JC=1,Jv=function(e){return!!(e&&e.__CANCEL__)}),Jv}var YC=li,Yv=p1e,h1e=JS(),v1e=qy,m1e=eh();function Xv(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new m1e}var g1e=function(e){Xv(e),e.headers=e.headers||{},e.data=Yv.call(e,e.data,e.headers,e.transformRequest),e.headers=YC.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),YC.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||v1e.adapter;return r(e).then(function(i){return Xv(e),i.data=Yv.call(e,i.data,i.headers,e.transformResponse),i},function(i){return h1e(i)||(Xv(e),i&&i.response&&(i.response.data=Yv.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},pa=li,YS=function(e,r){r=r||{};var n={};function i(d,v){return pa.isPlainObject(d)&&pa.isPlainObject(v)?pa.merge(d,v):pa.isPlainObject(v)?pa.merge({},v):pa.isArray(v)?v.slice():v}function a(d){if(pa.isUndefined(r[d])){if(!pa.isUndefined(e[d]))return i(void 0,e[d])}else return i(e[d],r[d])}function o(d){if(!pa.isUndefined(r[d]))return i(void 0,r[d])}function s(d){if(pa.isUndefined(r[d])){if(!pa.isUndefined(e[d]))return i(void 0,e[d])}else return i(void 0,r[d])}function u(d){if(d in r)return i(e[d],r[d]);if(d in e)return i(void 0,e[d])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return pa.forEach(Object.keys(e).concat(Object.keys(r)),function(v){var m=f[v]||a,b=m(v);pa.isUndefined(b)&&m!==u||(n[v]=b)}),n},Qv,XC;function XS(){return XC||(XC=1,Qv={version:"0.27.2"}),Qv}var y1e=XS().version,ol=Uc,$y={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){$y[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var QC={};$y.transitional=function(e,r,n){function i(a,o){return"[Axios v"+y1e+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return function(a,o,s){if(e===!1)throw new ol(i(o," has been removed"+(r?" in "+r:"")),ol.ERR_DEPRECATED);return r&&!QC[o]&&(QC[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};function b1e(t,e,r){if(typeof t!="object")throw new ol("options must be an object",ol.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),i=n.length;i-- >0;){var a=n[i],o=e[a];if(o){var s=t[a],u=s===void 0||o(s,a,t);if(u!==!0)throw new ol("option "+a+" must be "+u,ol.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ol("Unknown option "+a,ol.ERR_BAD_OPTION)}}var w1e={assertOptions:b1e,validators:$y},QS=li,x1e=US,ZC=V_e,eE=g1e,rh=YS,C1e=KS,ZS=w1e,tc=ZS.validators;function Dc(t){this.defaults=t,this.interceptors={request:new ZC,response:new ZC}}Dc.prototype.request=function(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=rh(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&ZS.assertOptions(n,{silentJSONParsing:tc.transitional(tc.boolean),forcedJSONParsing:tc.transitional(tc.boolean),clarifyTimeoutError:tc.transitional(tc.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(a=a&&b.synchronous,i.unshift(b.fulfilled,b.rejected))});var o=[];this.interceptors.response.forEach(function(b){o.push(b.fulfilled,b.rejected)});var s;if(!a){var u=[eE,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(o),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var f=r;i.length;){var d=i.shift(),v=i.shift();try{f=d(f)}catch(m){v(m);break}}try{s=eE(f)}catch(m){return Promise.reject(m)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Dc.prototype.getUri=function(e){e=rh(this.defaults,e);var r=C1e(e.baseURL,e.url);return x1e(r,e.params,e.paramsSerializer)};QS.forEach(["delete","get","head","options"],function(e){Dc.prototype[e]=function(r,n){return this.request(rh(n||{},{method:e,url:r,data:(n||{}).data}))}});QS.forEach(["post","put","patch"],function(e){function r(n){return function(a,o,s){return this.request(rh(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Dc.prototype[e]=r(),Dc.prototype[e+"Form"]=r(!0)});var E1e=Dc,Zv,tE;function T1e(){if(tE)return Zv;tE=1;var t=eh();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(o){n=o});var i=this;
697this.promise.then(function(a){if(i._listeners){var o,s=i._listeners.length;for(o=0;o<s;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(u){i.subscribe(u),o=u}).then(a);return s.cancel=function(){i.unsubscribe(o)},s},r(function(o){i.reason||(i.reason=new t(o),n(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},e.prototype.unsubscribe=function(n){if(this._listeners){var i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}},e.source=function(){var n,i=new e(function(o){n=o});return{token:i,cancel:n}},Zv=e,Zv}var em,rE;function _1e(){return rE||(rE=1,em=function(e){return function(n){return e.apply(null,n)}}),em}var tm,nE;function S1e(){if(nE)return tm;nE=1;var t=li;return tm=function(r){return t.isObject(r)&&r.isAxiosError===!0},tm}var iE=li,k1e=HS,Gd=E1e,O1e=YS,A1e=qy;function ek(t){var e=new Gd(t),r=k1e(Gd.prototype.request,e);return iE.extend(r,Gd.prototype,e),iE.extend(r,e),r.create=function(i){return ek(O1e(t,i))},r}var ia=ek(A1e);ia.Axios=Gd;ia.CanceledError=eh();ia.CancelToken=T1e();ia.isCancel=JS();ia.VERSION=XS().version;ia.toFormData=GS;ia.AxiosError=Uc;ia.Cancel=ia.CanceledError;ia.all=function(e){return Promise.all(e)};ia.spread=_1e();ia.isAxiosError=S1e();Ry.exports=ia;Ry.exports.default=ia;var M1e=Ry.exports,L1e=M1e;const D1e=Og(L1e);var tk={exports:{}},rm={exports:{}},nm={exports:{}},aE;function I1e(){return aE||(aE=1,function(t){(function(e,r){t.exports?t.exports=r():e.EvEmitter=r()})(typeof window<"u"?window:ac,function(){function e(){}var r=e.prototype;return r.on=function(n,i){if(!(!n||!i)){var a=this._events=this._events||{},o=a[n]=a[n]||[];return o.indexOf(i)==-1&&o.push(i),this}},r.once=function(n,i){if(!(!n||!i)){this.on(n,i);var a=this._onceEvents=this._onceEvents||{},o=a[n]=a[n]||{};return o[i]=!0,this}},r.off=function(n,i){var a=this._events&&this._events[n];if(!(!a||!a.length)){var o=a.indexOf(i);return o!=-1&&a.splice(o,1),this}},r.emitEvent=function(n,i){var a=this._events&&this._events[n];if(!(!a||!a.length)){a=a.slice(0),i=i||[];for(var o=this._onceEvents&&this._onceEvents[n],s=0;s<a.length;s++){var u=a[s],f=o&&o[u];f&&(this.off(n,u),delete o[u]),u.apply(this,i)}return this}},r.allOff=function(){delete this._events,delete this._onceEvents},e})}(nm)),nm.exports}var im={exports:{}},am={exports:{}},oE;function R1e(){return oE||(oE=1,function(t){(function(e,r){t.exports?t.exports=r():e.matchesSelector=r()})(window,function(){var r=function(){var n=window.Element.prototype;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var i=["webkit","moz","ms","o"],a=0;a<i.length;a++){var o=i[a],s=o+"MatchesSelector";if(n[s])return s}}();return function(i,a){return i[r](a)}})}(am)),am.exports}var sE;function Jf(){return sE||(sE=1,function(t){(function(e,r){t.exports?t.exports=r(e,R1e()):e.fizzyUIUtils=r(e,e.matchesSelector)})(window,function(r,n){var i={};i.extend=function(s,u){for(var f in u)s[f]=u[f];return s},i.modulo=function(s,u){return(s%u+u)%u};var a=Array.prototype.slice;i.makeArray=function(s){if(Array.isArray(s))return s;if(s==null)return[];var u=typeof s=="object"&&typeof s.length=="number";return u?a.call(s):[s]},i.removeFrom=function(s,u){var f=s.indexOf(u);f!=-1&&s.splice(f,1)},i.getParent=function(s,u){for(;s.parentNode&&s!=document.body;)if(s=s.parentNode,n(s,u))return s},i.getQueryElement=function(s){return typeof s=="string"?document.querySelector(s):s},i.handleEvent=function(s){var u="on"+s.type;this[u]&&this[u](s)},i.filterFindElements=function(s,u){s=i.makeArray(s);var f=[];return s.forEach(function(d){if(d instanceof HTMLElement){if(!u){f.push(d);return}n(d,u)&&f.push(d);for(var v=d.querySelectorAll(u),m=0;m<v.length;m++)f.push(v[m])}}),f},i.debounceMethod=function(s,u,f){f=f||100;var d=s.prototype[u],v=u+"Timeout";s.prototype[u]=function(){var m=this[v];clearTimeout(m);var b=arguments,x=this;this[v]=setTimeout(function(){d.apply(x,b),delete x[v]},f)}},i.docReady=function(s){var u=document.readyState;u=="complete"||u=="interactive"?setTimeout(s):document.addEventListener("DOMContentLoaded",s)},i.toDashed=function(s){return s.replace(/(.)([A-Z])/g,function(u,f,d){return f+"-"+d}).toLowerCase()};var o=r.console;return i.htmlInit=function(s,u){i.docReady(function(){var f=i.toDashed(u),d="data-"+f,v=document.querySelectorAll("["+d+"]"),m=document.querySelectorAll(".js-"+f),b=i.makeArray(v).concat(i.makeArray(m)),x=d+"-options",T=r.jQuery;b.forEach(function(S){var M=S.getAttribute(d)||S.getAttribute(x),L;try{L=M&&JSON.parse(M)}catch(A){o&&o.error("Error parsing "+d+" on "+S.className+": "+A);return}var P=new s(S,L);T&&T.data(S,u,P)})})},i})}(im)),im.exports}var lE;function jc(){return lE||(lE=1,function(t){(function(e,r){t.exports?t.exports=r(e,I1e(),Jf()):e.InfiniteScroll=r(e,e.EvEmitter,e.fizzyUIUtils)}
697)(window,function(r,n,i){var a=r.jQuery,o={};function s(m,b){var x=i.getQueryElement(m);if(!x){console.error("Bad element for InfiniteScroll: "+(x||m));return}if(m=x,m.infiniteScrollGUID){var T=o[m.infiniteScrollGUID];return T.option(b),T}this.element=m,this.options=i.extend({},s.defaults),this.option(b),a&&(this.$element=a(this.element)),this.create()}s.defaults={},s.create={},s.destroy={};var u=s.prototype;i.extend(u,n.prototype);var f=0;u.create=function(){var m=this.guid=++f;this.element.infiniteScrollGUID=m,o[m]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath();var b=this.getPath&&this.getPath();if(!b){console.error("Disabling InfiniteScroll");return}this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(var x in s.create)s.create[x].call(this)},u.option=function(m){i.extend(this.options,m)},u.callOnInit=function(){var m=this.options.onInit;m&&m.call(this,this)},u.dispatchEvent=function(m,b,x){this.log(m,x);var T=b?[b].concat(x):x;if(this.emitEvent(m,T),!(!a||!this.$element)){m+=".infiniteScroll";var S=m;if(b){var M=a.Event(b);M.type=m,S=M}this.$element.trigger(S,x)}};var d={initialized:function(m){return"on "+m},request:function(m){return"URL: "+m},load:function(m,b){return(m.title||"")+". URL: "+b},error:function(m,b){return m+". URL: "+b},append:function(m,b,x){return x.length+" items. URL: "+b},last:function(m,b){return"URL: "+b},history:function(m,b){return"URL: "+b},pageIndex:function(m,b){return"current page determined to be: "+m+" from "+b}};u.log=function(m,b){if(this.options.debug){var x="[InfiniteScroll] "+m,T=d[m];T&&(x+=". "+T.apply(this,b)),console.log(x)}},u.updateMeasurements=function(){this.windowHeight=r.innerHeight;var m=this.element.getBoundingClientRect();this.top=m.top+r.pageYOffset},u.updateScroller=function(){var m=this.options.elementScroll;if(!m){this.scroller=r;return}if(this.scroller=m===!0?this.element:i.getQueryElement(m),!this.scroller)throw"Unable to find elementScroll: "+m},u.updateGetPath=function(){var m=this.options.path;if(!m){console.error("InfiniteScroll path option required. Set as: "+m);return}var b=typeof m;if(b=="function"){this.getPath=m;return}var x=b=="string"&&m.match("{{#}}");if(x){this.updateGetPathTemplate(m);return}this.updateGetPathSelector(m)},u.updateGetPathTemplate=function(m){this.getPath=(function(){var S=this.pageIndex+1;return m.replace("{{#}}",S)}).bind(this);var b=m.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),x=new RegExp(b),T=location.href.match(x);T&&(this.pageIndex=parseInt(T[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};var v=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return u.updateGetPathSelector=function(m){var b=document.querySelector(m);if(!b){console.error("Bad InfiniteScroll path option. Next link not found: "+m);return}for(var x=b.getAttribute("href"),T,S,M=0;x&&M<v.length;M++){S=v[M];var L=x.match(S);if(L){T=L.slice(1);break}}if(!T){console.error("InfiniteScroll unable to parse next link href: "+x);return}this.isPathSelector=!0,this.getPath=(function(){var P=this.pageIndex+1;return T[0]+P+T[2]}).bind(this),this.pageIndex=parseInt(T[1],10)-1,this.log("pageIndex",[this.pageIndex,"next link"])},u.updateGetAbsolutePath=function(){var m=this.getPath(),b=m.match(/^http/)||m.match(/^\//);if(b){this.getAbsolutePath=this.getPath;return}var x=location.pathname,T=m.match(/^\?/);if(T){this.getAbsolutePath=function(){return x+this.getPath()};return}var S=x.substring(0,x.lastIndexOf("/"));this.getAbsolutePath=function(){return S+"/"+this.getPath()}},s.create.hideNav=function(){var m=i.getQueryElement(this.options.hideNav);m&&(m.style.display="none",this.nav=m)},s.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},u.destroy=function(){this.allOff();for(var m in s.destroy)s.destroy[m].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],a&&this.$element&&a.removeData(this.element,"infiniteScroll")},s.throttle=function(m,b){b=b||200;var x,T;return function(){var S=+new Date,M=arguments,L=(function(){x=S,m.apply(this,M)}).bind(this);x&&S<x+b?(clearTimeout(T),T=setTimeout(L,b)):L()}},s.data=function(m){m=i.getQueryElement(m);var b=m&&m.infiniteScrollGUID;return b&&o[b]},s.setJQuery=function(m){a=m},i.htmlInit(s,"infinite-scroll"),u._init=function(){},a&&a.bridget&&a.bridget("infiniteScroll",s),s})}(rm)),rm.exports}var om={exports:{}},uE;function N1e(){return uE||(uE=1,function(t){(function(e,r){t.exports?t.exports=r(e,jc()):r(e,e.InfiniteScroll)})(window,function(r,n){var i=n.prototype;n.defaults.loadOnScroll=!0,n.defaults.checkLastPage=!0,n.defaults.responseType="document",n.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},i.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()},i.loadNextPage=function(){if(!(this.isLoading||!this.canLoad)){var f=this.getAbsolutePath();this.isLoading=!0;var d=(function(b){this.onPageLoad(b,f)}).bind(this),v=(function(b){this.onPageError(b,f)}).bind(this),m=(function(b){this.lastPageReached(b,f)}).bind(this);u(f,this.options.responseType,d,v,m),this.dispatchEvent("request",null,[f])}},i.onPageLoad=function(f,d){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[f,d]),this.appendNextPage(f,d),f},i.appendNextPage=function(f,d){var v=this.options.append,m=this.options.responseType=="document";if(!(!m||!v)){var b=f.querySelectorAll(v),x=a(b),T=(function(){this.appendItems(b,x),this.isLoading=!1,this.dispatchEvent("append",null,[f,d,b])}).bind(this);this.options.outlayer?this.appendOutlayerItems(x,T):T()}},i.appendItems=function(f,d){!f||!f.length||(d=d||a(f),o(d),this.element.appendChild(d))};function a(f){for(var d=document.createDocumentFragment(),v=0;f&&v<f.length;v++)d.appendChild(f[v]);return d}function o(f){for(var d=f.querySelectorAll("script"),v=0;v<d.length;v++){var m=d[v],b=document.createElement("script");s(m,b),b.innerHTML=m.innerHTML,m.parentNode.replaceChild(b,m)}}function s(f,d){for(var v=f.attributes,m=0;m<v.length;m++){var b=v[m];d.setAttribute(b.name,b.value)}}i.appendOutlayerItems=function(f,d){var v=n.imagesLoaded||r.imagesLoaded;if(!v){console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),this.isLoading=!1;return}v(f,d)},i.onAppendOutlayer=function(f,d,v){this.options.outlayer.appended(v)},i.checkLastPage=function(f,d){var v=this.options.checkLastPage;if(v){var m=this.options.path;if(typeof m=="function"){var b=this.getPath();if(!b){this.lastPageReached(f,d);return}}var x;if(typeof v=="string"?x=v:this.isPathSelector&&(x=m),!(!x||!f.querySelector)){var T=f.querySelector(x);T||this.lastPageReached(f,d)}}},i.lastPageReached=function(f,d){this.canLoad=!1,this.dispatchEvent("last",null,[f,d])},i.onPageError=function(f,d){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[f,d]),f},n.create.prefill=function(){if(this.options.prefill){var f=this.options.append;if(!f){console.error("append option required for prefill. Set as :"+f);return}this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()}},i.prefill=function(){var f=this.getPrefillDistance();this.isPrefilling=f>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)};function u(f,d,v,m,b){var x=new XMLHttpRequest;x.open("GET",f,!0),x.responseType=d||"",x.setRequestHeader("X-Requested-With","XMLHttpRequest"),x.onload=function(){if(x.status==200)v(x.response);else if(x.status==204)b(x.response);else{var T=new Error(x.statusText);m(T)}},x.onerror=function(){var T=new Error("Network error requesting "+f);m(T)},x.send()}return n})}(om)),om.exports}var sm={exports:{}},cE;function P1e(){return cE||(cE=1,function(t){(function(e,r){t.exports?t.exports=r(e,jc(),Jf()):r(e,e.InfiniteScroll,e.fizzyUIUtils)})(window,function(r,n,i){var a=n.prototype;return n.defaults.scrollThreshold=400,n.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var o=this.options.scrollThreshold,s=o||o===0;s&&this.enableScrollWatch()},n.destroy.scrollWatch=function(){this.disableScrollWatch()},a.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},a.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},a.bindScrollWatchEvents=function(o){var s=o?"addEventListener":"removeEventListener";this.scroller[s]("scroll",this.pageScrollHandler),r[s]("resize",this.resizeHandler)},a.onPageScroll=n.throttle(function(){var o=this.getBottomDistance();o<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),a.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},a.getWindowBottomDistance=function(){var o=this.top+this.element.clientHeight,s=r.pageYOffset+this.windowHeight;return o-s},a.getElementBottomDistance=function(){var o=this.scroller.scrollHeight,s=this.scroller.scrollTop+this.scroller.clientHeight;return o-s},a.onResize=function(){this.updateMeasurements()},i.debounceMethod(n,"onResize",150),n})}(sm)),sm.exports}var lm={exports:{}},fE;function B1e(){return fE||(fE=1,function(t){(function(e,r){t.exports?t.exports=r(e,jc(),Jf()):r(e,e.InfiniteScroll,e.fizzyUIUtils)})(window,function(r,n,i){var a=n.prototype;n.defaults.history="replace";var o=document.createElement("a");return n.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var s=o.origin||o.protocol+"//"+o.host,u=s==location.origin;if(!u){console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.");return}this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()}},a.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},a.bindHistoryAppendEvents=function(s){var u=s?"addEventListener":"removeEventListener";this.scroller[u]("scroll",this.scrollHistoryHandler),r[u]("unload",this.unloadHandler)},a.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},n.destroy.history=a.destroyHistory=function(){var s=this.options.history&&this.options.append;s&&this.bindHistoryAppendEvents(!1)},a.onAppendHistory=function(s,u,f){if(!(!f||!f.length)){var d=f[0],v=this.getElementScrollY(d);o.href=u,this.scrollPages.push({top:v,path:o.href,title:s.title})}},a.getElementScrollY=function(s){return this.options.elementScroll?this.getElementElementScrollY(s):this.getElementWindowScrollY(s)},a.getElementWindowScrollY=function(s){var u=s.getBoundingClientRect();return u.top+r.pageYOffset},a.getElementElementScrollY=function(s){return s.offsetTop-this.top},a.onScrollHistory=function(){for(var s=this.getScrollViewY(),u,f,d=0;d<this.scrollPages.length;d++){var v=this.scrollPages[d];if(v.top>=s)break;u=d,f=v}u!=this.scrollPageIndex&&(this.scrollPageIndex=u,this.setHistory(f.title,f.path))},i.debounceMethod(n,"onScrollHistory",150),a.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:r.pageYOffset+this.windowHeight/2},a.setHistory=function(s,u){var f=this.options.history,d=f&&history[f+"State"];
697d&&(history[f+"State"](null,s,u),this.options.historyTitle&&(document.title=s),this.dispatchEvent("history",null,[s,u]))},a.onUnload=function(){var s=this.scrollPageIndex;if(s!==0){var u=this.scrollPages[s],f=r.pageYOffset-u.top+this.top;this.destroyHistory(),scrollTo(0,f)}},a.onPageLoadHistory=function(s,u){this.setHistory(s.title,u)},n})}(lm)),lm.exports}var um={exports:{}},dE;function F1e(){return dE||(dE=1,function(t){(function(e,r){t.exports?t.exports=r(e,jc(),Jf()):r(e,e.InfiniteScroll,e.fizzyUIUtils)})(window,function(r,n,i){n.create.button=function(){var o=i.getQueryElement(this.options.button);if(o){this.button=new a(o,this);return}},n.destroy.button=function(){this.button&&this.button.destroy()};function a(o,s){this.element=o,this.infScroll=s,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),s.on("request",this.disable.bind(this)),s.on("load",this.enable.bind(this)),s.on("error",this.hide.bind(this)),s.on("last",this.hide.bind(this))}return a.prototype.onClick=function(o){o.preventDefault(),this.infScroll.loadNextPage()},a.prototype.enable=function(){this.element.removeAttribute("disabled")},a.prototype.disable=function(){this.element.disabled="disabled"},a.prototype.hide=function(){this.element.style.display="none"},a.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},n.Button=a,n})}(um)),um.exports}var cm={exports:{}},pE;function H1e(){return pE||(pE=1,function(t){(function(e,r){t.exports?t.exports=r(e,jc(),Jf()):r(e,e.InfiniteScroll,e.fizzyUIUtils)})(window,function(r,n,i){var a=n.prototype;n.create.status=function(){var f=i.getQueryElement(this.options.status);f&&(this.statusElement=f,this.statusEventElements={request:f.querySelector(".infinite-scroll-request"),error:f.querySelector(".infinite-scroll-error"),last:f.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},a.bindHideStatus=function(f){var d=this.options.append?"append":"load";this[f](d,this.hideAllStatus)},a.showRequestStatus=function(){this.showStatus("request")},a.showErrorStatus=function(){this.showStatus("error")},a.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},a.showStatus=function(f){s(this.statusElement),this.hideStatusEventElements();var d=this.statusEventElements[f];s(d)},a.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},a.hideStatusEventElements=function(){for(var f in this.statusEventElements){var d=this.statusEventElements[f];o(d)}};function o(f){u(f,"none")}function s(f){u(f,"block")}function u(f,d){f&&(f.style.display=d)}return n})}(cm)),cm.exports}/*!
698 * Infinite Scroll v3.0.6
699 * Automatically add next page
700 *
701 * Licensed GPLv3 for open source use
702 * or Infinite Scroll Commercial License for commercial use
703 *
704 * https://infinite-scroll.com
705 * Copyright 2018 Metafizzy
706 */(function(t){(function(e,r){t.exports&&(t.exports=r(jc(),N1e(),P1e(),B1e(),F1e(),H1e()))})(window,function(r){return r})})(tk);var q1e=tk.exports;const rk=Og(q1e);window._=bI;window.Editor=E_e;window.axios=D1e;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.InfiniteScroll=rk;window.$=window.jQuery=mI;window.moment=gI;(()=>{function t(g){return i(g)||n(g)||r(g)||e()}function e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
707In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(g,y){if(g){if(typeof g=="string")return a(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return a(g,y)}}function n(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function i(g){if(Array.isArray(g))return a(g)}function a(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function o(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function s(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};
707y%2?o(Object(w),!0).forEach(function(_){u(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):o(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function u(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function d(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function v(g,y,w){return y&&d(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var m={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},b=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f(this,g),this._items=y,this._options=s(s({},m),w),this._init()}return v(g,[{key:"_init",value:function(){var w=this;this._items.length&&this._items.map(function(_){_.active&&w.open(_.id),_.triggerEl.addEventListener("click",function(){w.toggle(_.id)})})}},{key:"getItem",value:function(w){return this._items.filter(function(_){return _.id===w})[0]}},{key:"open",value:function(w){var _=this,z,pe,se=this.getItem(w);this._options.alwaysOpen||this._items.map(function(he){if(he!==se){var me,Le;(me=he.triggerEl.classList).remove.apply(me,t(_._options.activeClasses.split(" "))),(Le=he.triggerEl.classList).add.apply(Le,t(_._options.inactiveClasses.split(" "))),he.targetEl.classList.add("hidden"),he.triggerEl.setAttribute("aria-expanded",!1),he.active=!1,he.iconEl&&he.iconEl.classList.remove("rotate-180")}}),(z=se.triggerEl.classList).add.apply(z,t(this._options.activeClasses.split(" "))),(pe=se.triggerEl.classList).remove.apply(pe,t(this._options.inactiveClasses.split(" "))),se.triggerEl.setAttribute("aria-expanded",!0),se.targetEl.classList.remove("hidden"),se.active=!0,se.iconEl&&se.iconEl.classList.add("rotate-180"),this._options.onOpen(this,se)}},{key:"toggle",value:function(w){var _=this.getItem(w);_.active?this.close(w):this.open(w),this._options.onToggle(this,_)}},{key:"close",value:function(w){var _,z,pe=this.getItem(w);(_=pe.triggerEl.classList).remove.apply(_,t(this._options.activeClasses.split(" "))),(z=pe.triggerEl.classList).add.apply(z,t(this._options.inactiveClasses.split(" "))),pe.targetEl.classList.add("hidden"),pe.triggerEl.setAttribute("aria-expanded",!1),pe.active=!1,pe.iconEl&&pe.iconEl.classList.remove("rotate-180"),this._options.onClose(this,pe)}}]),g}();window.Accordion=b;function x(){document.querySelectorAll("[data-accordion]").forEach(function(g){var y=g.getAttribute("data-accordion"),w=g.getAttribute("data-active-classes"),_=g.getAttribute("data-inactive-classes"),z=[];g.querySelectorAll("[data-accordion-target]").forEach(function(pe){var se={id:pe.getAttribute("data-accordion-target"),triggerEl:pe,targetEl:document.querySelector(pe.getAttribute("data-accordion-target")),iconEl:pe.querySelector("[data-accordion-icon]"),active:pe.getAttribute("aria-expanded")==="true"};z.push(se)}),new b(z,{alwaysOpen:y==="open",activeClasses:w||m.activeClasses,inactiveClasses:_||m.inactiveClasses})})}document.readyState!=="loading"?x():document.addEventListener("DOMContentLoaded",x);function T(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function S(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};y%2?T(Object(w),!0).forEach(function(_){M(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):T(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function M(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function L(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function P(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function A(g,y,w){return y&&P(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var H={triggerEl:null,onCollapse:function(){},onExpand:function(){},onToggle:function(){}},W=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1?arguments[1]:void 0;L(this,g),this._targetEl=y,this._triggerEl=w?w.triggerEl:H.triggerEl,this._options=S(S({},H),w),this._visible=!1,this._init()}return A(g,[{key:"_init",value:function(){var w=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){w._visible?w.collapse():w.expand()}))}},{key:"collapse",value:function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","fal
707se"),this._visible=!1,this._options.onCollapse(this)}},{key:"expand",value:function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)}},{key:"toggle",value:function(){this._visible?this.collapse():this.expand()}}]),g}();window.Collapse=W;function J(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(g){var y=document.getElementById(g.getAttribute("data-collapse-toggle"));new W(y,{triggerEl:g})})}document.readyState!=="loading"?J():document.addEventListener("DOMContentLoaded",J);function ee(g){return Y(g)||ge(g)||ie(g)||X()}function X(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
708In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(g,y){if(g){if(typeof g=="string")return ne(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return ne(g,y)}}function ge(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function Y(g){if(Array.isArray(g))return ne(g)}function ne(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function Te(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function Be(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};y%2?Te(Object(w),!0).forEach(function(_){He(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):Te(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function He(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function Re(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Oe(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function zt(g,y,w){return y&&Oe(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var bt={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},$e=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Re(this,g),this._items=y,this._options=Be(Be(Be({},bt),w),{},{indicators:Be(Be({},bt.indicators),w.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._interval=null,this._init()}return zt(g,[{key:"_init",value:function(){var w=this;
708this._items.map(function(_){_.el.classList.add("absolute","inset-0","transition-all","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(_,z){_.el.addEventListener("click",function(){w.slideTo(z)})})}},{key:"getItem",value:function(w){return this._items[w]}},{key:"slideTo",value:function(w){var _=this._items[w],z={left:_.position===0?this._items[this._items.length-1]:this._items[_.position-1],middle:_,right:_.position===this._items.length-1?this._items[0]:this._items[_.position+1]};this._rotate(z),this._setActiveItem(_.position),this._interval&&(this.pause(),this.cycle()),this._options.onChange(this)}},{key:"next",value:function(){var w=this._getActiveItem(),_=null;w.position===this._items.length-1?_=this._items[0]:_=this._items[w.position+1],this.slideTo(_.position),this._options.onNext(this)}},{key:"prev",value:function(){var w=this._getActiveItem(),_=null;w.position===0?_=this._items[this._items.length-1]:_=this._items[w.position-1],this.slideTo(_.position),this._options.onPrev(this)}},{key:"_rotate",value:function(w){this._items.map(function(_){_.el.classList.add("hidden")}),w.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),w.left.el.classList.add("-translate-x-full","z-10"),w.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),w.middle.el.classList.add("translate-x-0","z-20"),w.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),w.right.el.classList.add("translate-x-full","z-10")}},{key:"cycle",value:function(){var w=this;this._interval=setInterval(function(){w.next()},this._options.interval)}},{key:"pause",value:function(){clearInterval(this._interval)}},{key:"_getActiveItem",value:function(){return this._activeItem}},{key:"_setActiveItem",value:function(w){var _=this;if(this._activeItem=this._items[w],this._indicators.length){var z,pe;this._indicators.map(function(se){var he,me;se.el.setAttribute("aria-current","false"),(he=se.el.classList).remove.apply(he,ee(_._options.indicators.activeClasses.split(" "))),(me=se.el.classList).add.apply(me,ee(_._options.indicators.inactiveClasses.split(" ")))}),(z=this._indicators[w].el.classList).add.apply(z,ee(this._options.indicators.activeClasses.split(" "))),(pe=this._indicators[w].el.classList).remove.apply(pe,ee(this._options.indicators.inactiveClasses.split(" "))),this._indicators[w].el.setAttribute("aria-current","true")}}}]),g}();window.Carousel=$e;function qe(){document.querySelectorAll("[data-carousel]").forEach(function(g){var y=g.getAttribute("data-carousel-interval"),w=g.getAttribute("data-carousel")==="slide",_=[],z=0;g.querySelectorAll("[data-carousel-item]").length&&ee(g.querySelectorAll("[data-carousel-item]")).map(function(Le,Fe){_.push({position:Fe,el:Le}),Le.getAttribute("data-carousel-item")==="active"&&(z=Fe)});var pe=[];g.querySelectorAll("[data-carousel-slide-to]").length&&ee(g.querySelectorAll("[data-carousel-slide-to]")).map(function(Le){pe.push({position:Le.getAttribute("data-carousel-slide-to"),el:Le})});var se=new $e(_,{defaultPosition:z,indicators:{items:pe},interval:y||bt.interval});w&&se.cycle();var he=g.querySelector("[data-carousel-next]"),me=g.querySelector("[data-carousel-prev]");he&&he.addEventListener("click",function(){se.next()}),me&&me.addEventListener("click",function(){se.prev()})})}document.readyState!=="loading"?qe():document.addEventListener("DOMContentLoaded",qe);function at(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function Ve(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};y%2?at(Object(w),!0).forEach(function(_){Ae(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):at(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function Ae(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function Ne(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Dt(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function Wt(g,y,w){return y&&Dt(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var Ht={triggerEl:null,transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},qt=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ne(this,g),this._targetEl=y,this._triggerEl=w?w.triggerEl:Ht.triggerEl,this._options=Ve(Ve({},Ht),w),this._init()}return Wt(g,[{key:"_init",value:function(){var w=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){w.hide()})}},{key:"hide",value:function(){var w=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){w._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)}}]),g}();
vendor: 5,709 bytes, line 708
708window.Dismiss=qt;function tr(){document.querySelectorAll("[data-dismiss-target]").forEach(function(g){var y=document.querySelector(g.getAttribute("data-dismiss-target"));new qt(y,{triggerEl:g})})}document.readyState!=="loading"?tr():document.addEventListener("DOMContentLoaded",tr);function ht(g){if(g==null)return window;if(g.toString()!=="[object Window]"){var y=g.ownerDocument;return y&&y.defaultView||window}return g}function br(g){var y=ht(g).Element;return g instanceof y||g instanceof Element}function kt(g){var y=ht(g).HTMLElement;return g instanceof y||g instanceof HTMLElement}function xr(g){if(typeof ShadowRoot>"u")return!1;var y=ht(g).ShadowRoot;return g instanceof y||g instanceof ShadowRoot}var We=Math.max,ye=Math.min,_e=Math.round;function rt(g,y){y===void 0&&(y=!1);var w=g.getBoundingClientRect(),_=1,z=1;if(kt(g)&&y){var pe=g.offsetHeight,se=g.offsetWidth;se>0&&(_=_e(w.width)/se||1),pe>0&&(z=_e(w.height)/pe||1)}return{width:w.width/_,height:w.height/z,top:w.top/z,right:w.right/_,bottom:w.bottom/z,left:w.left/_,x:w.left/_,y:w.top/z}}function et(g){var y=ht(g),w=y.pageXOffset,_=y.pageYOffset;return{scrollLeft:w,scrollTop:_}}function yt(g){return{scrollLeft:g.scrollLeft,scrollTop:g.scrollTop}}function Xe(g){return g===ht(g)||!kt(g)?et(g):yt(g)}function xe(g){return g?(g.nodeName||"").toLowerCase():null}function De(g){return((br(g)?g.ownerDocument:g.document)||window.document).documentElement}function Je(g){return rt(De(g)).left+et(g).scrollLeft}function wt(g){return ht(g).getComputedStyle(g)}function xt(g){var y=wt(g),w=y.overflow,_=y.overflowX,z=y.overflowY;return/auto|scroll|overlay|hidden/.test(w+z+_)}function Vt(g){var y=g.getBoundingClientRect(),w=_e(y.width)/g.offsetWidth||1,_=_e(y.height)/g.offsetHeight||1;return w!==1||_!==1}function lr(g,y,w){w===void 0&&(w=!1);var _=kt(y),z=kt(y)&&Vt(y),pe=De(y),se=rt(g,z),he={scrollLeft:0,scrollTop:0},me={x:0,y:0};return(_||!_&&!w)&&((xe(y)!=="body"||xt(pe))&&(he=Xe(y)),kt(y)?(me=rt(y,!0),me.x+=y.clientLeft,me.y+=y.clientTop):pe&&(me.x=Je(pe))),{x:se.left+he.scrollLeft-me.x,y:se.top+he.scrollTop-me.y,width:se.width,height:se.height}}function jr(g){var y=rt(g),w=g.offsetWidth,_=g.offsetHeight;return Math.abs(y.width-w)<=1&&(w=y.width),Math.abs(y.height-_)<=1&&(_=y.height),{x:g.offsetLeft,y:g.offsetTop,width:w,height:_}}function Cr(g){return xe(g)==="html"?g:g.assignedSlot||g.parentNode||(xr(g)?g.host:null)||De(g)}function hn(g){return["html","body","#document"].indexOf(xe(g))>=0?g.ownerDocument.body:kt(g)&&xt(g)?g:hn(Cr(g))}function Er(g,y){var w;y===void 0&&(y=[]);var _=hn(g),z=_===((w=g.ownerDocument)==null?void 0:w.body),pe=ht(_),se=z?[pe].concat(pe.visualViewport||[],xt(_)?_:[]):_,he=y.concat(se);return z?he:he.concat(Er(Cr(se)))}function ce(g){return["table","td","th"].indexOf(xe(g))>=0}function Ke(g){return!kt(g)||wt(g).position==="fixed"?null:g.offsetParent}function pt(g){var y=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,w=navigator.userAgent.indexOf("Trident")!==-1;if(w&&kt(g)){var _=wt(g);if(_.position==="fixed")return null}for(var z=Cr(g);kt(z)&&["html","body"].indexOf(xe(z))<0;){var pe=wt(z);if(pe.transform!=="none"||pe.perspective!=="none"||pe.contain==="paint"||["transform","perspective"].indexOf(pe.willChange)!==-1||y&&pe.willChange==="filter"||y&&pe.filter&&pe.filter!=="none")return z;z=z.parentNode}return null}function gt(g){for(var y=ht(g),w=Ke(g);w&&ce(w)&&wt(w).position==="static";)w=Ke(w);return w&&(xe(w)==="html"||xe(w)==="body"&&wt(w).position==="static")?y:w||pt(g)||y}var st="top",ir="bottom",ur="right",ar="left",Fn="auto",Tr=[st,ir,ur,ar],dr="start",An="end",Kr="clippingParents",Ei="viewport",Hn="popper",ui="reference",Ga=Tr.reduce(function(g,y){return g.concat([y+"-"+dr,y+"-"+An])},[]),Mn=[].concat(Tr,[Fn]).reduce(function(g,y){return g.concat([y,y+"-"+dr,y+"-"+An])},[]),qn="beforeRead",wa="read",F="afterRead",G="beforeMain",le="main",Q="afterMain",B="beforeWrite",te="write",oe="afterWrite",be=[qn,wa,F,G,le,Q,B,te,oe];function Ue(g){var y=new Map,w=new Set,_=[];g.forEach(function(pe){y.set(pe.name,pe)});function z(pe){w.add(pe.name);var se=[].concat(pe.requires||[],pe.requiresIfExists||[]);se.forEach(function(he){if(!w.has(he)){var me=y.get(he);me&&z(me)}}),_.push(pe)}return g.forEach(function(pe){w.has(pe.name)||z(pe)}),_}function je(g){var y=Ue(g);return be.reduce(function(w,_){return w.concat(y.filter(function(z){return z.phase===_}))},[])}function ut(g){var y;return function(){return y||(y=new Promise(function(w){Promise.resolve().then(function(){y=void 0,w(g())})})),y}}function vt(g){var y=g.reduce(function(w,_){var z=w[_.name];return w[_.name]=z?Object.assign({},z,_,{options:Object.assign({},z.options,_.options),data:Object.assign({},z.data,_.data)}):_,w},{});return Object.keys(y).map(function(w){return y[w]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var g=arguments.length,y=new Array(g),w=0;w<g;w++)y[w]=arguments[w];return!y.some(function(_){return!(_&&typeof _.getBoundingClientRect=="function")})}function Mt(g){g===void 0&&(g={});var y=g,w=y.defaultModifiers,_=w===void 0?[]:w,z=y.defaultOptions,pe=z===void 0?Ot:z;return function(he,me,Le){Le===void 0&&(Le=pe);var Fe={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,pe),modifiersData:{},elements:{reference:he,popper:me},attributes:{},styles:{}},$t=[],or=!1,_t={state:Fe,setOptions:function(vr){var Xt=typeof vr=="function"?vr(Fe.options):vr;It(),Fe.options=Object.assign({},pe,Fe.options,Xt),Fe.scrollParents={reference:br(he)?Er(he):he.contextElement?Er(he.contextElement):[],popper:Er(me)};var wr=je(vt([].concat(_,Fe.options.modifiers)));return Fe.orderedModifiers=wr.filter(function(Ut){return Ut.enabled}
vendor: 4,843 bytes, line 708
708),cr(),_t.update()},forceUpdate:function(){if(!or){var vr=Fe.elements,Xt=vr.reference,wr=vr.popper;if(mt(Xt,wr)){Fe.rects={reference:lr(Xt,gt(wr),Fe.options.strategy==="fixed"),popper:jr(wr)},Fe.reset=!1,Fe.placement=Fe.options.placement,Fe.orderedModifiers.forEach(function(Jr){return Fe.modifiersData[Jr.name]=Object.assign({},Jr.data)});for(var Ut=0;Ut<Fe.orderedModifiers.length;Ut++){if(Fe.reset===!0){Fe.reset=!1,Ut=-1;continue}var Mr=Fe.orderedModifiers[Ut],_r=Mr.fn,pr=Mr.options,Sr=pr===void 0?{}:pr,Vr=Mr.name;typeof _r=="function"&&(Fe=_r({state:Fe,options:Sr,name:Vr,instance:_t})||Fe)}}}},update:ut(function(){return new Promise(function(Gt){_t.forceUpdate(),Gt(Fe)})}),destroy:function(){It(),or=!0}};if(!mt(he,me))return _t;_t.setOptions(Le).then(function(Gt){!or&&Le.onFirstUpdate&&Le.onFirstUpdate(Gt)});function cr(){Fe.orderedModifiers.forEach(function(Gt){var vr=Gt.name,Xt=Gt.options,wr=Xt===void 0?{}:Xt,Ut=Gt.effect;if(typeof Ut=="function"){var Mr=Ut({state:Fe,name:vr,instance:_t,options:wr}),_r=function(){};$t.push(Mr||_r)}})}function It(){$t.forEach(function(Gt){return Gt()}),$t=[]}return _t}}var Lt={passive:!0};function Pr(g){var y=g.state,w=g.instance,_=g.options,z=_.scroll,pe=z===void 0?!0:z,se=_.resize,he=se===void 0?!0:se,me=ht(y.elements.popper),Le=[].concat(y.scrollParents.reference,y.scrollParents.popper);return pe&&Le.forEach(function(Fe){Fe.addEventListener("scroll",w.update,Lt)}),he&&me.addEventListener("resize",w.update,Lt),function(){pe&&Le.forEach(function(Fe){Fe.removeEventListener("scroll",w.update,Lt)}),he&&me.removeEventListener("resize",w.update,Lt)}}const Pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pr,data:{}};function rr(g){return g.split("-")[0]}function Or(g){return g.split("-")[1]}function vn(g){return["top","bottom"].indexOf(g)>=0?"x":"y"}function Hr(g){var y=g.reference,w=g.element,_=g.placement,z=_?rr(_):null,pe=_?Or(_):null,se=y.x+y.width/2-w.width/2,he=y.y+y.height/2-w.height/2,me;switch(z){case st:me={x:se,y:y.y-w.height};break;case ir:me={x:se,y:y.y+y.height};break;case ur:me={x:y.x+y.width,y:he};break;case ar:me={x:y.x-w.width,y:he};break;default:me={x:y.x,y:y.y}}var Le=z?vn(z):null;if(Le!=null){var Fe=Le==="y"?"height":"width";switch(pe){case dr:me[Le]=me[Le]-(y[Fe]/2-w[Fe]/2);break;case An:me[Le]=me[Le]+(y[Fe]/2-w[Fe]/2);break}}return me}function Ti(g){var y=g.state,w=g.name;y.modifiersData[w]=Hr({reference:y.rects.reference,element:y.rects.popper,strategy:"absolute",placement:y.placement})}const xa={name:"popperOffsets",enabled:!0,phase:"read",fn:Ti,data:{}};var Ka={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bo(g){var y=g.x,w=g.y,_=window,z=_.devicePixelRatio||1;return{x:_e(y*z)/z||0,y:_e(w*z)/z||0}}function _i(g){var y,w=g.popper,_=g.popperRect,z=g.placement,pe=g.variation,se=g.offsets,he=g.position,me=g.gpuAcceleration,Le=g.adaptive,Fe=g.roundOffsets,$t=g.isFixed,or=se.x,_t=or===void 0?0:or,cr=se.y,It=cr===void 0?0:cr,Gt=typeof Fe=="function"?Fe({x:_t,y:It}):{x:_t,y:It};_t=Gt.x,It=Gt.y;var vr=se.hasOwnProperty("x"),Xt=se.hasOwnProperty("y"),wr=ar,Ut=st,Mr=window;if(Le){var _r=gt(w),pr="clientHeight",Sr="clientWidth";if(_r===ht(w)&&(_r=De(w),wt(_r).position!=="static"&&he==="absolute"&&(pr="scrollHeight",Sr="scrollWidth")),_r=_r,z===st||(z===ar||z===ur)&&pe===An){Ut=ir;var Vr=$t&&Mr.visualViewport?Mr.visualViewport.height:_r[pr];It-=Vr-_.height,It*=me?1:-1}if(z===ar||(z===st||z===ir)&&pe===An){wr=ur;var Jr=$t&&Mr.visualViewport?Mr.visualViewport.width:_r[Sr];_t-=Jr-_.width,_t*=me?1:-1}}var Yr=Object.assign({position:he},Le&&Ka),Jn=Fe===!0?bo({x:_t,y:It}):{x:_t,y:It};if(_t=Jn.x,It=Jn.y,me){var mn;return Object.assign({},Yr,(mn={},mn[Ut]=Xt?"0":"",mn[wr]=vr?"0":"",mn.transform=(Mr.devicePixelRatio||1)<=1?"translate("+_t+"px, "+It+"px)":"translate3d("+_t+"px, "+It+"px, 0)",mn))}return Object.assign({},Yr,(y={},y[Ut]=Xt?It+"px":"",y[wr]=vr?_t+"px":"",y.transform="",y))}function ks(g){var y=g.state,w=g.options,_=w.gpuAcceleration,z=_===void 0?!0:_,pe=w.adaptive,se=pe===void 0?!0:pe,he=w.roundOffsets,me=he===void 0?!0:he,Le={placement:rr(y.placement),variation:Or(y.placement),popper:y.elements.popper,popperRect:y.rects.popper,gpuAcceleration:z,isFixed:y.options.strategy==="fixed"};y.modifiersData.popperOffsets!=null&&(y.styles.popper=Object.assign({},y.styles.popper,_i(Object.assign({},Le,{offsets:y.modifiersData.popperOffsets,position:y.options.strategy,adaptive:se,roundOffsets:me})))),y.modifiersData.arrow!=null&&(y.styles.arrow=Object.assign({},y.styles.arrow,_i(Object.assign({},Le,{offsets:y.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:me})))),y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-placement":y.placement})}const $n={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ks,data:{}};function Si(g){var y=g.state;
vendor: 6,296 bytes, line 708
708Object.keys(y.elements).forEach(function(w){var _=y.styles[w]||{},z=y.attributes[w]||{},pe=y.elements[w];!kt(pe)||!xe(pe)||(Object.assign(pe.style,_),Object.keys(z).forEach(function(se){var he=z[se];he===!1?pe.removeAttribute(se):pe.setAttribute(se,he===!0?"":he)}))})}function en(g){var y=g.state,w={popper:{position:y.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(y.elements.popper.style,w.popper),y.styles=w,y.elements.arrow&&Object.assign(y.elements.arrow.style,w.arrow),function(){Object.keys(y.elements).forEach(function(_){var z=y.elements[_],pe=y.attributes[_]||{},se=Object.keys(y.styles.hasOwnProperty(_)?y.styles[_]:w[_]),he=se.reduce(function(me,Le){return me[Le]="",me},{});!kt(z)||!xe(z)||(Object.assign(z.style,he),Object.keys(pe).forEach(function(me){z.removeAttribute(me)}))})}}const ki={name:"applyStyles",enabled:!0,phase:"write",fn:Si,effect:en,requires:["computeStyles"]};function Ca(g,y,w){var _=rr(g),z=[ar,st].indexOf(_)>=0?-1:1,pe=typeof w=="function"?w(Object.assign({},y,{placement:g})):w,se=pe[0],he=pe[1];return se=se||0,he=(he||0)*z,[ar,ur].indexOf(_)>=0?{x:he,y:se}:{x:se,y:he}}function qi(g){var y=g.state,w=g.options,_=g.name,z=w.offset,pe=z===void 0?[0,0]:z,se=Mn.reduce(function(Fe,$t){return Fe[$t]=Ca($t,y.rects,pe),Fe},{}),he=se[y.placement],me=he.x,Le=he.y;y.modifiersData.popperOffsets!=null&&(y.modifiersData.popperOffsets.x+=me,y.modifiersData.popperOffsets.y+=Le),y.modifiersData[_]=se}const Ja={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qi};var bl={left:"right",right:"left",bottom:"top",top:"bottom"};function Wo(g){return g.replace(/left|right|bottom|top/g,function(y){return bl[y]})}var wl={start:"end",end:"start"};function Os(g){return g.replace(/start|end/g,function(y){return wl[y]})}function wo(g){var y=ht(g),w=De(g),_=y.visualViewport,z=w.clientWidth,pe=w.clientHeight,se=0,he=0;return _&&(z=_.width,pe=_.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(se=_.offsetLeft,he=_.offsetTop)),{width:z,height:pe,x:se+Je(g),y:he}}function Ya(g){var y,w=De(g),_=et(g),z=(y=g.ownerDocument)==null?void 0:y.body,pe=We(w.scrollWidth,w.clientWidth,z?z.scrollWidth:0,z?z.clientWidth:0),se=We(w.scrollHeight,w.clientHeight,z?z.scrollHeight:0,z?z.clientHeight:0),he=-_.scrollLeft+Je(g),me=-_.scrollTop;return wt(z||w).direction==="rtl"&&(he+=We(w.clientWidth,z?z.clientWidth:0)-pe),{width:pe,height:se,x:he,y:me}}function xl(g,y){var w=y.getRootNode&&y.getRootNode();if(g.contains(y))return!0;if(w&&xr(w)){var _=y;do{if(_&&g.isSameNode(_))return!0;_=_.parentNode||_.host}while(_)}return!1}function xo(g){return Object.assign({},g,{left:g.x,top:g.y,right:g.x+g.width,bottom:g.y+g.height})}function Cl(g){var y=rt(g);return y.top=y.top+g.clientTop,y.left=y.left+g.clientLeft,y.bottom=y.top+g.clientHeight,y.right=y.left+g.clientWidth,y.width=g.clientWidth,y.height=g.clientHeight,y.x=y.left,y.y=y.top,y}function Xa(g,y){return y===Ei?xo(wo(g)):br(y)?Cl(y):xo(Ya(De(g)))}function $i(g){var y=Er(Cr(g)),w=["absolute","fixed"].indexOf(wt(g).position)>=0,_=w&&kt(g)?gt(g):g;return br(_)?y.filter(function(z){return br(z)&&xl(z,_)&&xe(z)!=="body"}):[]}function Qa(g,y,w){var _=y==="clippingParents"?$i(g):[].concat(y),z=[].concat(_,[w]),pe=z[0],se=z.reduce(function(he,me){var Le=Xa(g,me);return he.top=We(Le.top,he.top),he.right=ye(Le.right,he.right),he.bottom=ye(Le.bottom,he.bottom),he.left=We(Le.left,he.left),he},Xa(g,pe));return se.width=se.right-se.left,se.height=se.bottom-se.top,se.x=se.left,se.y=se.top,se}function Tu(){return{top:0,right:0,bottom:0,left:0}}function Vo(g){return Object.assign({},Tu(),g)}function Go(g,y){return y.reduce(function(w,_){return w[_]=g,w},{})}function Ea(g,y){y===void 0&&(y={});var w=y,_=w.placement,z=_===void 0?g.placement:_,pe=w.boundary,se=pe===void 0?Kr:pe,he=w.rootBoundary,me=he===void 0?Ei:he,Le=w.elementContext,Fe=Le===void 0?Hn:Le,$t=w.altBoundary,or=$t===void 0?!1:$t,_t=w.padding,cr=_t===void 0?0:_t,It=Vo(typeof cr!="number"?cr:Go(cr,Tr)),Gt=Fe===Hn?ui:Hn,vr=g.rects.popper,Xt=g.elements[or?Gt:Fe],wr=Qa(br(Xt)?Xt:Xt.contextElement||De(g.elements.popper),se,me),Ut=rt(g.elements.reference),Mr=Hr({reference:Ut,element:vr,strategy:"absolute",placement:z}),_r=xo(Object.assign({},vr,Mr)),pr=Fe===Hn?_r:Ut,Sr={top:wr.top-pr.top+It.top,bottom:pr.bottom-wr.bottom+It.bottom,left:wr.left-pr.left+It.left,right:pr.right-wr.right+It.right},Vr=g.modifiersData.offset;if(Fe===Hn&&Vr){var Jr=Vr[z];Object.keys(Sr).forEach(function(Yr){var Jn=[ur,ir].indexOf(Yr)>=0?1:-1,mn=[st,ir].indexOf(Yr)>=0?"y":"x";Sr[Yr]+=Jr[mn]*Jn})}return Sr}function As(g,y){y===void 0&&(y={});var w=y,_=w.placement,z=w.boundary,pe=w.rootBoundary,se=w.padding,he=w.flipVariations,me=w.allowedAutoPlacements,Le=me===void 0?Mn:me,Fe=Or(_),$t=Fe?he?Ga:Ga.filter(function(cr){return Or(cr)===Fe}):Tr,or=$t.filter(function(cr){return Le.indexOf(cr)>=0});or.length===0&&(or=$t);var _t=or.reduce(function(cr,It){return cr[It]=Ea(g,{placement:It,boundary:z,rootBoundary:pe,padding:se})[rr(It)],cr},{});return Object.keys(_t).sort(function(cr,It){return _t[cr]-_t[It]})}function zc(g){if(rr(g)===Fn)return[];var y=Wo(g);return[Os(g),y,Os(y)]}function El(g){var y=g.state,w=g.options,_=g.name;if(!y.modifiersData[_]._skip){for(var z=w.mainAxis,pe=z===void 0?!0:z,se=w.altAxis,he=se===void 0?!0:se,me=w.fallbackPlacements,Le=w.padding,Fe=w.boundary,$t=w.rootBoundary,or=w.altBoundary,_t=w.flipVariations,cr=_t===void 0?!0:_t,It=w.allowedAutoPlacements,Gt=y.options.placement,vr=rr(Gt),Xt=vr===Gt,wr=me||(Xt||!cr?[Wo(Gt)]:zc(Gt)),Ut=[Gt].concat(wr).reduce(function(Xr,sn){return Xr.concat(rr(sn)===Fn?As(y,{placement:sn,boundary:Fe,rootBoundary:$t,padding:Le,flipVariations:cr,allowedAutoPlacements:It}):sn)},[]),Mr=y.rects.reference,_r=y.rects.popper,pr=new Map,Sr=!0,Vr=Ut[0],Jr=0;Jr<Ut.length;Jr++){var Yr=Ut[Jr],Jn=rr(Yr),mn=Or(Yr)===dr,kr=[st,ir].indexOf(Jn)>=0,Br=kr?"width":"height",on=Ea(y,{placement:Yr,boundary:Fe,rootBoundary:$t,altBoundary:or,padding:Le}),Tn=kr?mn?ur:ar:mn?ir:st;Mr[Br]>_r[Br]&&(Tn=Wo(Tn));var zi=Wo(Tn),di=[];if(pe&&di.push(on[Jn]<=0),he&&di.push(on[Tn]<=0,on[zi]<=0),di.every(function(Xr){return Xr})){Vr=Yr,Sr=!1;break}pr.set(Yr,di)}if(Sr)for(var sa=cr?3:1,Wi=function(sn){var ln=Ut.find(function(Yn){var Oi=pr.get(Y
vendor: 5,283 bytes, lines 708-709
708n);if(Oi)return Oi.slice(0,sn).every(function(la){return la})});if(ln)return Vr=ln,"break"},Vi=sa;Vi>0;Vi--){var pi=Wi(Vi);if(pi==="break")break}y.placement!==Vr&&(y.modifiersData[_]._skip=!0,y.placement=Vr,y.reset=!0)}}const _u={name:"flip",enabled:!0,phase:"main",fn:El,requiresIfExists:["offset"],data:{_skip:!1}};function Su(g){return g==="x"?"y":"x"}function Ta(g,y,w){return We(g,ye(y,w))}function Wc(g,y,w){var _=Ta(g,y,w);return _>w?w:_}function Vc(g){var y=g.state,w=g.options,_=g.name,z=w.mainAxis,pe=z===void 0?!0:z,se=w.altAxis,he=se===void 0?!1:se,me=w.boundary,Le=w.rootBoundary,Fe=w.altBoundary,$t=w.padding,or=w.tether,_t=or===void 0?!0:or,cr=w.tetherOffset,It=cr===void 0?0:cr,Gt=Ea(y,{boundary:me,rootBoundary:Le,padding:$t,altBoundary:Fe}),vr=rr(y.placement),Xt=Or(y.placement),wr=!Xt,Ut=vn(vr),Mr=Su(Ut),_r=y.modifiersData.popperOffsets,pr=y.rects.reference,Sr=y.rects.popper,Vr=typeof It=="function"?It(Object.assign({},y.rects,{placement:y.placement})):It,Jr=typeof Vr=="number"?{mainAxis:Vr,altAxis:Vr}:Object.assign({mainAxis:0,altAxis:0},Vr),Yr=y.modifiersData.offset?y.modifiersData.offset[y.placement]:null,Jn={x:0,y:0};if(_r){if(pe){var mn,kr=Ut==="y"?st:ar,Br=Ut==="y"?ir:ur,on=Ut==="y"?"height":"width",Tn=_r[Ut],zi=Tn+Gt[kr],di=Tn-Gt[Br],sa=_t?-Sr[on]/2:0,Wi=Xt===dr?pr[on]:Sr[on],Vi=Xt===dr?-Sr[on]:-pr[on],pi=y.elements.arrow,Xr=_t&&pi?jr(pi):{width:0,height:0},sn=y.modifiersData["arrow#persistent"]?y.modifiersData["arrow#persistent"].padding:Tu(),ln=sn[kr],Yn=sn[Br],Oi=Ta(0,pr[on],Xr[on]),la=wr?pr[on]/2-sa-Oi-ln-Jr.mainAxis:Wi-Oi-ln-Jr.mainAxis,Ul=wr?-pr[on]/2+sa+Oi+Yn+Jr.mainAxis:Vi+Oi+Yn+Jr.mainAxis,hi=y.elements.arrow&&gt(y.elements.arrow),To=hi?Ut==="y"?hi.clientTop||0:hi.clientLeft||0:0,Ma=(mn=Yr==null?void 0:Yr[Ut])!=null?mn:0,Ai=Tn+la-Ma-To,Ws=Tn+Ul-Ma,D=Ta(_t?ye(zi,Ai):zi,Tn,_t?We(di,Ws):di);_r[Ut]=D,Jn[Ut]=D-Tn}if(he){var Gi,to=Ut==="x"?st:ar,un=Ut==="x"?ir:ur,St=_r[Mr],ro=Mr==="y"?"height":"width",Vs=St+Gt[to],rs=St-Gt[un],Dn=[st,ar].indexOf(vr)!==-1,Gs=(Gi=Yr==null?void 0:Yr[Mr])!=null?Gi:0,_o=Dn?Vs:St-pr[ro]-Sr[ro]-Gs+Jr.altAxis,Ks=Dn?St+pr[ro]+Sr[ro]-Gs-Jr.altAxis:rs,no=_t&&Dn?Wc(_o,St,Ks):Ta(_t?_o:Vs,St,_t?Ks:rs);_r[Mr]=no,Jn[Mr]=no-St}y.modifiersData[_]=Jn}}const Gc={name:"preventOverflow",enabled:!0,phase:"main",fn:Vc,requiresIfExists:["offset"]};var Ko=function(y,w){return y=typeof y=="function"?y(Object.assign({},w.rects,{placement:w.placement})):y,Vo(typeof y!="number"?y:Go(y,Tr))};function Kc(g){var y,w=g.state,_=g.name,z=g.options,pe=w.elements.arrow,se=w.modifiersData.popperOffsets,he=rr(w.placement),me=vn(he),Le=[ar,ur].indexOf(he)>=0,Fe=Le?"height":"width";if(!(!pe||!se)){var $t=Ko(z.padding,w),or=jr(pe),_t=me==="y"?st:ar,cr=me==="y"?ir:ur,It=w.rects.reference[Fe]+w.rects.reference[me]-se[me]-w.rects.popper[Fe],Gt=se[me]-w.rects.reference[me],vr=gt(pe),Xt=vr?me==="y"?vr.clientHeight||0:vr.clientWidth||0:0,wr=It/2-Gt/2,Ut=$t[_t],Mr=Xt-or[Fe]-$t[cr],_r=Xt/2-or[Fe]/2+wr,pr=Ta(Ut,_r,Mr),Sr=me;w.modifiersData[_]=(y={},y[Sr]=pr,y.centerOffset=pr-_r,y)}}function Jc(g){var y=g.state,w=g.options,_=w.element,z=_===void 0?"[data-popper-arrow]":_;z!=null&&(typeof z=="string"&&(z=y.elements.popper.querySelector(z),!z)||xl(y.elements.popper,z)&&(y.elements.arrow=z))}const ku={name:"arrow",enabled:!0,phase:"main",fn:Kc,effect:Jc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tl(g,y,w){return w===void 0&&(w={x:0,y:0}),{top:g.top-y.height-w.y,right:g.right-y.width+w.x,bottom:g.bottom-y.height+w.y,left:g.left-y.width-w.x}}function Ms(g){return[st,ur,ir,ar].some(function(y){return g[y]>=0})}function Rr(g){var y=g.state,w=g.name,_=y.rects.reference,z=y.rects.popper,pe=y.modifiersData.preventOverflow,se=Ea(y,{elementContext:"reference"}),he=Ea(y,{altBoundary:!0}),me=Tl(se,_),Le=Tl(he,z,pe),Fe=Ms(me),$t=Ms(Le);y.modifiersData[w]={referenceClippingOffsets:me,popperEscapeOffsets:Le,isReferenceHidden:Fe,hasPopperEscaped:$t},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":Fe,"data-popper-escaped":$t})}var _a=[Pt,xa,$n,ki,Ja,_u,Gc,ku,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rr}],Ui=Mt({defaultModifiers:_a});function Ou(g){return Ds(g)||Yc(g)||Ls(g)||Au()}function Au(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
709In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ls(g,y){if(g){if(typeof g=="string")return _l(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _l(g,y)}}function Yc(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function Ds(g){if(Array.isArray(g))return _l(g)}function _l(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function an(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function aa(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};
709y%2?an(Object(w),!0).forEach(function(_){Sa(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):an(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function Sa(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function Mu(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Sl(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function ci(g,y,w){return y&&Sl(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var kl={placement:"bottom",triggerType:"click",onShow:function(){},onHide:function(){}},Is=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Mu(this,g),this._targetEl=y,this._triggerEl=w,this._options=aa(aa({},kl),_),this._popperInstance=this._createPopperInstace(),this._visible=!1,this._init()}return ci(g,[{key:"_init",value:function(){var w=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){w.toggle()})}},{key:"_createPopperInstace",value:function(){return Ui(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,10]}}]})}},{key:"_handleClickOutside",value:function(w,_){var z=w.target;z!==_&&!_.contains(z)&&!this._triggerEl.contains(z)&&this._visible&&this.hide(),document.body.removeEventListener("click",this._handleClickOutside,!0)}},{key:"toggle",value:function(){this._visible?(this.hide(),document.body.removeEventListener("click",this._handleClickOutside,!0)):this.show()}},{key:"show",value:function(){var w=this;this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(_){return aa(aa({},_),{},{modifiers:[].concat(Ou(_.modifiers),[{name:"eventListeners",enabled:!0}])})}),document.body.addEventListener("click",function(_){w._handleClickOutside(_,w._targetEl)},!0),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(w){return aa(aa({},w),{},{modifiers:[].concat(Ou(w.modifiers),[{name:"eventListeners",enabled:!1}])})}),this._visible=!1,this._options.onHide(this)}}]),g}();window.Dropdown=Is;function Ol(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(g){var y=document.getElementById(g.getAttribute("data-dropdown-toggle")),w=g.getAttribute("data-dropdown-placement");new Is(y,g,{placement:w||kl.placement})})}document.readyState!=="loading"?Ol():document.addEventListener("DOMContentLoaded",Ol);function Lu(g){return Rs(g)||Un(g)||Iu(g)||Du()}function Du(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
710In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iu(g,y){if(g){if(typeof g=="string")return jn(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return jn(g,y)}}function Un(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function Rs(g){if(Array.isArray(g))return jn(g)}function jn(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function Al(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function Ml(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};y%2?Al(Object(w),!0).forEach(function(_){ka(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):Al(Object(w)).forEac
710h(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function ka(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function Ns(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Ps(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function Ar(g,y,w){return y&&Ps(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var ji={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",onHide:function(){},onShow:function(){},onToggle:function(){}},Jo=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ns(this,g),this._targetEl=y,this._options=Ml(Ml({},ji),w),this._isHidden=!0,this._init()}return Ar(g,[{key:"_init",value:function(){var w=this;this._getPlacementClasses().map(function(_){w._targetEl.classList.add(_)})}},{key:"_createBackdrop",value:function(){if(this._isHidden){var w,_=document.createElement("div");_.setAttribute("modal-backdrop",""),(w=_.classList).add.apply(w,Lu(this._options.backdropClasses.split(" "))),document.querySelector("body").append(_)}}},{key:"_destroyBackdropEl",value:function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()}},{key:"_getPlacementClasses",value:function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}}},{key:"toggle",value:function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)}},{key:"show",value:function(){this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,this._options.onHide(this)}}]),g}();window.Modal=Jo;var Ll=function(y,w){return w.some(function(_){return _.id===y})?w.find(function(_){return _.id===y}):!1};function Yo(){var g=[];document.querySelectorAll("[data-modal-toggle]").forEach(function(y){var w=y.getAttribute("data-modal-toggle"),_=document.getElementById(w),z=_.getAttribute("data-modal-placement");_&&!_.hasAttribute("aria-hidden")&&!_.hasAttribute("aria-modal")&&_.setAttribute("aria-hidden","true");var pe=null;Ll(w,g)?(pe=Ll(w,g),pe=pe.object):(pe=new Jo(_,{placement:z||ji.placement}),g.push({id:w,object:pe})),_.hasAttribute("data-modal-show")&&_.getAttribute("data-modal-show")==="true"&&pe.show(),y.addEventListener("click",function(){pe.toggle()})})}document.readyState!=="loading"?Yo():document.addEventListener("DOMContentLoaded",Yo);function Dl(g){return Bs(g)||Il(g)||Za(g)||Xc()}function Xc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
711In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Za(g,y){if(g){if(typeof g=="string")return Oa(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return Oa(g,y)}}function Il(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function Bs(g){if(Array.isArray(g))return Oa(g)}function Oa(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function Rl(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function Nl(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};
711y%2?Rl(Object(w),!0).forEach(function(_){Ru(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):Rl(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function Ru(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function Fs(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Hs(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function Nu(g,y,w){return y&&Hs(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var Co={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},qs=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1?arguments[1]:void 0;Fs(this,g),this._targetEl=y,this._options=Nl(Nl({},Co),w),this._visible=!1,this._init()}return Nu(g,[{key:"_init",value:function(){var w=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(_){w._targetEl.classList.add(_)}),this.hide()}},{key:"isVisible",value:function(){return this._visible}},{key:"hide",value:function(){var w=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(_){w._targetEl.classList.remove(_)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(_){w._targetEl.classList.add(_)})):(this._getPlacementClasses(this._options.placement).active.map(function(_){w._targetEl.classList.remove(_)}),this._getPlacementClasses(this._options.placement).inactive.map(function(_){w._targetEl.classList.add(_)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)}},{key:"show",value:function(){var w=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(_){w._targetEl.classList.add(_)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(_){w._targetEl.classList.remove(_)})):(this._getPlacementClasses(this._options.placement).active.map(function(_){w._targetEl.classList.add(_)}),this._getPlacementClasses(this._options.placement).inactive.map(function(_){w._targetEl.classList.remove(_)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)}},{key:"toggle",value:function(){this.isVisible()?this.hide():this.show()}},{key:"_createBackdrop",value:function(){var w=this;if(!this._visible){var _,z=document.createElement("div");z.setAttribute("drawer-backdrop",""),(_=z.classList).add.apply(_,Dl(this._options.backdropClasses.split(" "))),document.querySelector("body").append(z),z.addEventListener("click",function(){w.hide()})}}},{key:"_destroyBackdropEl",value:function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()}},{key:"_getPlacementClasses",value:function(w){switch(w){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}}}]),g}();window.Drawer=qs;var fi=function(y,w){return w.some(function(_){return _.id===y})?w.find(function(_){return _.id===y}):!1};function Xo(){var g=[];document.querySelectorAll("[data-drawer-target]").forEach(function(y){var w=document.getElementById(y.getAttribute("data-drawer-target")),_=w.id,z=y.getAttribute("data-drawer-placement"),pe=y.getAttribute("data-drawer-body-scrolling"),se=y.getAttribute("data-drawer-backdrop"),he=y.getAttribute("data-drawer-edge"),me=y.getAttribute("data-drawer-edge-offset"),Le=null;fi(_,g)?(Le=fi(_,g),Le=Le.object):(Le=new qs(w,{placement:z||Co.placement,bodyScrolling:pe?pe==="true":Co.bodyScrolling,backdrop:se?se==="true":Co.backdrop,edge:he?he==="true":Co.edge,edgeOffset:me||Co.edgeOffset}),g.push({id:_,object:Le}))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(y){var w=document.getElementById(y.getAttribute("data-drawer-toggle")),_=w.id,z=fi(_,g);y.addEventListener("click",function(){z.object.isVisible()?z.object.hide():z.object.show()})}),document.querySelectorAll("[data-drawer-dismiss]").forEach(function(y){var w=document.getElementById(y.getAttribute("data-drawer-dismiss")),_=w.id,z=fi(_,g);y.addEventListener("click",function(){z.object.hide()})}),document.querySelectorAll("[data-drawer-show]").forEach(function(y){var w=document.getElementById(y.getAttribute("data-drawer-show")),_=w.id,z=fi(_,g);y.addEventListener("click",function(){z.object.show()})})}document.readyState!=="loading"?Xo():document.addEventListener("DOMContentLoaded",Xo);function Qo(g){return Pu(g)||Zo(g)||$s(g)||Ln()}function Ln(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
712In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $s(g,y){if(g){if(typeof g=="string")return Us(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return Us(g,y)}}function Zo(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function Pu(g){if(Array.isArray(g))return Us(g)}function Us(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function Pl(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function Bu(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};
712y%2?Pl(Object(w),!0).forEach(function(_){Fu(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):Pl(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function Fu(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function Hu(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Bl(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function Eo(g,y,w){return y&&Bl(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var Qc={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},es=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Hu(this,g),this._items=y,this._activeTab=w?this.getTab(w.defaultTabId):null,this._options=Bu(Bu({},Qc),w),this._init()}return Eo(g,[{key:"_init",value:function(){var w=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(_){_.triggerEl.addEventListener("click",function(){w.show(_.id)})}))}},{key:"getActiveTab",value:function(){return this._activeTab}},{key:"_setActiveTab",value:function(w){this._activeTab=w}},{key:"getTab",value:function(w){return this._items.filter(function(_){return _.id===w})[0]}},{key:"show",value:function(w){var _=this,z,pe,se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he=this.getTab(w);he===this._activeTab&&!se||(this._items.map(function(me){if(me!==he){var Le,Fe;(Le=me.triggerEl.classList).remove.apply(Le,Qo(_._options.activeClasses.split(" "))),(Fe=me.triggerEl.classList).add.apply(Fe,Qo(_._options.inactiveClasses.split(" "))),me.targetEl.classList.add("hidden"),me.triggerEl.setAttribute("aria-selected",!1)}}),(z=he.triggerEl.classList).add.apply(z,Qo(this._options.activeClasses.split(" "))),(pe=he.triggerEl.classList).remove.apply(pe,Qo(this._options.inactiveClasses.split(" "))),he.triggerEl.setAttribute("aria-selected",!0),he.targetEl.classList.remove("hidden"),this._setActiveTab(he),this._options.onShow(this,he))}}]),g}();window.Tabs=es;function js(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(g){var y=[],w=null;g.querySelectorAll('[role="tab"]').forEach(function(_){var z=_.getAttribute("aria-selected")==="true",pe={id:_.getAttribute("data-tabs-target"),triggerEl:_,targetEl:document.querySelector(_.getAttribute("data-tabs-target"))};y.push(pe),z&&(w=pe.id)}),new es(y,{defaultTabId:w})})}document.readyState!=="loading"?js():document.addEventListener("DOMContentLoaded",js);function Fl(g){return Hl(g)||qu(g)||zs(g)||oa()}function oa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
713In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zs(g,y){if(g){if(typeof g=="string")return ts(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return ts(g,y)}}function qu(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function Hl(g){if(Array.isArray(g))return ts(g)}function ts(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function eo(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function En(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};
713y%2?eo(Object(w),!0).forEach(function(_){ql(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):eo(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function ql(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function $u(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function Zc(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function ef(g,y,w){return y&&Zc(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var $l={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){}},Uu=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$u(this,g),this._targetEl=y,this._triggerEl=w,this._options=En(En({},$l),_),this._popperInstance=this._createPopperInstace(),this._init()}return ef(g,[{key:"_init",value:function(){var w=this;if(this._triggerEl){var _=this._getTriggerEvents();_.showEvents.forEach(function(z){w._triggerEl.addEventListener(z,function(){w.show()})}),_.hideEvents.forEach(function(z){w._triggerEl.addEventListener(z,function(){w.hide()})})}}},{key:"_createPopperInstace",value:function(){return Ui(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}},{key:"_getTriggerEvents",value:function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}}},{key:"show",value:function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(w){return En(En({},w),{},{modifiers:[].concat(Fl(w.modifiers),[{name:"eventListeners",enabled:!0}])})}),this._popperInstance.update(),this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(w){return En(En({},w),{},{modifiers:[].concat(Fl(w.modifiers),[{name:"eventListeners",enabled:!1}])})}),this._options.onHide(this)}}]),g}();window.Tooltip=Uu;function Aa(){document.querySelectorAll("[data-tooltip-target]").forEach(function(g){var y=document.getElementById(g.getAttribute("data-tooltip-target")),w=g.getAttribute("data-tooltip-trigger"),_=g.getAttribute("data-tooltip-placement");new Uu(y,g,{placement:_||$l.placement,triggerType:w||$l.triggerType})})}document.readyState!=="loading"?Aa():document.addEventListener("DOMContentLoaded",Aa);function Z(g){return At(g)||tt(g)||ue(g)||ve()}function ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
714In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(g,y){if(g){if(typeof g=="string")return h(g,y);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return h(g,y)}}function tt(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function At(g){if(Array.isArray(g))return h(g)}function h(g,y){(y==null||y>g.length)&&(y=g.length);for(var w=0,_=new Array(y);w<y;w++)_[w]=g[w];return _}function C(g,y){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);y&&(_=_.filter(function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable})),w.push.apply(w,_)}return w}function k(g){for(var y=1;y<arguments.length;y++){var w=arguments[y]!=null?arguments[y]:{};
714y%2?C(Object(w),!0).forEach(function(_){N(g,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):C(Object(w)).forEach(function(_){Object.defineProperty(g,_,Object.getOwnPropertyDescriptor(w,_))})}return g}function N(g,y,w){return y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function U(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function j(g,y){for(var w=0;w<y.length;w++){var _=y[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function K(g,y,w){return y&&j(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}var fe={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){}},Ce=function(){function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};U(this,g),this._targetEl=y,this._triggerEl=w,this._options=k(k({},fe),_),this._popperInstance=this._createPopperInstace(),this._init()}return K(g,[{key:"_init",value:function(){var w=this;if(this._triggerEl){var _=this._getTriggerEvents();_.showEvents.forEach(function(z){w._triggerEl.addEventListener(z,function(){w.show()}),w._targetEl.addEventListener(z,function(){w.show()})}),_.hideEvents.forEach(function(z){w._triggerEl.addEventListener(z,function(){setTimeout(function(){w._targetEl.matches(":hover")||w.hide()},100)}),w._targetEl.addEventListener(z,function(){setTimeout(function(){w._triggerEl.matches(":hover")||w.hide()},100)})})}}},{key:"_createPopperInstace",value:function(){return Ui(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})}},{key:"_getTriggerEvents",value:function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}}},{key:"show",value:function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(w){return k(k({},w),{},{modifiers:[].concat(Z(w.modifiers),[{name:"eventListeners",enabled:!0}])})}),this._popperInstance.update(),this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(w){return k(k({},w),{},{modifiers:[].concat(Z(w.modifiers),[{name:"eventListeners",enabled:!1}])})}),this._options.onHide(this)}}]),g}();window.Popover=Ce;function Ye(){document.querySelectorAll("[data-popover-target]").forEach(function(g){var y=document.getElementById(g.getAttribute("data-popover-target")),w=g.getAttribute("data-popover-trigger"),_=g.getAttribute("data-popover-placement"),z=g.getAttribute("data-popover-offset");new Ce(y,g,{placement:_||fe.placement,offset:z?parseInt(z):fe.offset,triggerType:w||fe.triggerType})})}document.readyState!=="loading"?Ye():document.addEventListener("DOMContentLoaded",Ye)})();var $1e=Object.create,nk=Object.defineProperty,U1e=Object.getOwnPropertyDescriptor,ik=Object.getOwnPropertyNames,j1e=Object.getPrototypeOf,z1e=Object.prototype.hasOwnProperty,Ss=(t,e)=>function(){return e||(0,t[ik(t)[0]])((e={exports:{}}).exports,e),e.exports},W1e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ik(e))!z1e.call(t,i)&&i!==r&&nk(t,i,{get:()=>e[i],enumerable:!(n=U1e(e,i))||n.enumerable});return t},Nr=(t,e,r)=>(r=t!=null?$1e(j1e(t)):{},W1e(!t||!t.__esModule?nk(r,"default",{value:t,enumerable:!0}):r,t)),Cn=Ss({"node_modules/alpinejs/dist/module.cjs.js"(t,e){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(h,C)=>function(){return C||(0,h[a(h)[0]])((C={exports:{}}).exports,C),C.exports},f=(h,C)=>{for(var k in C)n(h,k,{get:C[k],enumerable:!0})},d=(h,C,k,N)=>{if(C&&typeof C=="object"||typeof C=="function")for(let U of a(C))!s.call(h,U)&&U!==k&&n(h,U,{get:()=>C[U],enumerable:!(N=i(C,U))||N.enumerable});return h},v=(h,C,k)=>(k=h!=null?r(o(h)):{},d(!h||!h.__esModule?n(k,"default",{value:h,enumerable:!0}):k,h)),m=h=>d(n({},"__esModule",{value:!0}),h),b=u({"node_modules/@vue/shared/dist/shared.cjs.js"(h){Object.defineProperty(h,"__esModule",{value:!0});function C(ae,ze){const nt=Object.create(null),ft=ae.split(",");for(let Bt=0;Bt<ft.length;Bt++)nt[ft[Bt]]=!0;return ze?Bt=>!!nt[Bt.toLowerCase()]:Bt=>!!nt[Bt]}var k={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},N={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},U="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decode
714URI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",j=C(U),K=2;function fe(ae,ze=0,nt=ae.length){let ft=ae.split(/(\r?\n)/);const Bt=ft.filter((Rn,cn)=>cn%2===1);ft=ft.filter((Rn,cn)=>cn%2===0);let qr=0;const In=[];for(let Rn=0;Rn<ft.length;Rn++)if(qr+=ft[Rn].length+(Bt[Rn]&&Bt[Rn].length||0),qr>=ze){for(let cn=Rn-K;cn<=Rn+K||nt>qr;cn++){if(cn<0||cn>=ft.length)continue;const jl=cn+1;In.push(`${jl}${" ".repeat(Math.max(3-String(jl).length,0))}|  ${ft[cn]}`);const Ki=ft[cn].length,zu=Bt[cn]&&Bt[cn].length||0;if(cn===Rn){const Ys=ze-(qr-(Ki+zu)),Mi=Math.max(1,nt>qr?Ki-Ys:nt-ze);In.push("   |  "+" ".repeat(Ys)+"^".repeat(Mi))}else if(cn>Rn){if(nt>qr){const Ys=Math.max(Math.min(nt-qr,Ki),1);In.push("   |  "+"^".repeat(Ys))}qr+=Ki+zu}}break}return In.join(`
715`)}var Ce="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ye=C(Ce),g=C(Ce+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),y=/[>/="'\u0009\u000a\u000c\u0020]/,w={};function _(ae){if(w.hasOwnProperty(ae))return w[ae];const ze=y.test(ae);return ze&&console.error(`unsafe attribute name: ${ae}`),w[ae]=!ze}var z={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},pe=C("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),se=C("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");function he(ae){if(Xr(ae)){const ze={};for(let nt=0;nt<ae.length;nt++){const ft=ae[nt],Bt=he(la(ft)?Fe(ft):ft);if(Bt)for(const qr in Bt)ze[qr]=Bt[qr]}return ze}else if(hi(ae))return ae}var me=/;(?![^(]*\))/g,Le=/:(.+)/;function Fe(ae){const ze={};return ae.split(me).forEach(nt=>{if(nt){const ft=nt.split(Le);ft.length>1&&(ze[ft[0].trim()]=ft[1].trim())}}),ze}function $t(ae){let ze="";if(!ae)return ze;
vendor: 5,280 bytes, line 715
715for(const nt in ae){const ft=ae[nt],Bt=nt.startsWith("--")?nt:rs(nt);(la(ft)||typeof ft=="number"&&pe(Bt))&&(ze+=`${Bt}:${ft};`)}return ze}function or(ae){let ze="";if(la(ae))ze=ae;else if(Xr(ae))for(let nt=0;nt<ae.length;nt++){const ft=or(ae[nt]);ft&&(ze+=ft+" ")}else if(hi(ae))for(const nt in ae)ae[nt]&&(ze+=nt+" ");return ze.trim()}var _t="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",cr="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",It="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Gt=C(_t),vr=C(cr),Xt=C(It),wr=/["'&<>]/;function Ut(ae){const ze=""+ae,nt=wr.exec(ze);if(!nt)return ze;let ft="",Bt,qr,In=0;for(qr=nt.index;qr<ze.length;qr++){switch(ze.charCodeAt(qr)){case 34:Bt="&quot;";break;case 38:Bt="&amp;";break;case 39:Bt="&#39;";break;case 60:Bt="&lt;";break;case 62:Bt="&gt;";break;default:continue}In!==qr&&(ft+=ze.substring(In,qr)),In=qr+1,ft+=Bt}return In!==qr?ft+ze.substring(In,qr):ft}var Mr=/^-?>|<!--|-->|--!>|<!-$/g;function _r(ae){return ae.replace(Mr,"")}function pr(ae,ze){if(ae.length!==ze.length)return!1;let nt=!0;for(let ft=0;nt&&ft<ae.length;ft++)nt=Sr(ae[ft],ze[ft]);return nt}function Sr(ae,ze){if(ae===ze)return!0;let nt=Yn(ae),ft=Yn(ze);if(nt||ft)return nt&&ft?ae.getTime()===ze.getTime():!1;if(nt=Xr(ae),ft=Xr(ze),nt||ft)return nt&&ft?pr(ae,ze):!1;if(nt=hi(ae),ft=hi(ze),nt||ft){if(!nt||!ft)return!1;const Bt=Object.keys(ae).length,qr=Object.keys(ze).length;if(Bt!==qr)return!1;for(const In in ae){const Rn=ae.hasOwnProperty(In),cn=ze.hasOwnProperty(In);if(Rn&&!cn||!Rn&&cn||!Sr(ae[In],ze[In]))return!1}}return String(ae)===String(ze)}function Vr(ae,ze){return ae.findIndex(nt=>Sr(nt,ze))}var Jr=ae=>ae==null?"":hi(ae)?JSON.stringify(ae,Yr,2):String(ae),Yr=(ae,ze)=>sn(ze)?{[`Map(${ze.size})`]:[...ze.entries()].reduce((nt,[ft,Bt])=>(nt[`${ft} =>`]=Bt,nt),{})}:ln(ze)?{[`Set(${ze.size})`]:[...ze.values()]}:hi(ze)&&!Xr(ze)&&!D(ze)?String(ze):ze,Jn=["bigInt","optionalChaining","nullishCoalescingOperator"],mn=Object.freeze({}),kr=Object.freeze([]),Br=()=>{},on=()=>!1,Tn=/^on[^a-z]/,zi=ae=>Tn.test(ae),di=ae=>ae.startsWith("onUpdate:"),sa=Object.assign,Wi=(ae,ze)=>{const nt=ae.indexOf(ze);nt>-1&&ae.splice(nt,1)},Vi=Object.prototype.hasOwnProperty,pi=(ae,ze)=>Vi.call(ae,ze),Xr=Array.isArray,sn=ae=>Ai(ae)==="[object Map]",ln=ae=>Ai(ae)==="[object Set]",Yn=ae=>ae instanceof Date,Oi=ae=>typeof ae=="function",la=ae=>typeof ae=="string",Ul=ae=>typeof ae=="symbol",hi=ae=>ae!==null&&typeof ae=="object",To=ae=>hi(ae)&&Oi(ae.then)&&Oi(ae.catch),Ma=Object.prototype.toString,Ai=ae=>Ma.call(ae),Ws=ae=>Ai(ae).slice(8,-1),D=ae=>Ai(ae)==="[object Object]",Gi=ae=>la(ae)&&ae!=="NaN"&&ae[0]!=="-"&&""+parseInt(ae,10)===ae,to=C(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),un=ae=>{const ze=Object.create(null);return nt=>ze[nt]||(ze[nt]=ae(nt))},St=/-(\w)/g,ro=un(ae=>ae.replace(St,(ze,nt)=>nt?nt.toUpperCase():"")),Vs=/\B([A-Z])/g,rs=un(ae=>ae.replace(Vs,"-$1").toLowerCase()),Dn=un(ae=>ae.charAt(0).toUpperCase()+ae.slice(1)),Gs=un(ae=>ae?`on${Dn(ae)}`:""),_o=(ae,ze)=>ae!==ze&&(ae===ae||ze===ze),Ks=(ae,ze)=>{for(let nt=0;nt<ae.length;nt++)ae[nt](ze)},no=(ae,ze,nt)=>{Object.defineProperty(ae,ze,{configurable:!0,enumerable:!1,value:nt})},Js=ae=>{const ze=parseFloat(ae);return isNaN(ze)?ae:ze},vi,ju=()=>vi||(vi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});h.EMPTY_ARR=kr,h.EMPTY_OBJ=mn,h.NO=on,h.NOOP=Br,h.PatchFlagNames=k,h.babelParserDefaultPlugins=Jn,h.camelize=ro,h.capitalize=Dn,h.def=no,h.escapeHtml=Ut,h.escapeHtmlComment=_r,h.extend=sa,h.generateCodeFrame=fe,h.getGlobalThis=ju,h.hasChanged=_o,h.hasOwn=pi,h.hyphenate=rs,h.invokeArrayFns=Ks,h.isArray=Xr,h.isBooleanAttr=g,h.isDate=Yn,h.isFunction=Oi,h.isGloballyWhitelisted=j,h.isHTMLTag=Gt,h.isIntegerKey=Gi,h.isKnownAttr=se,h.isMap=sn,h.isModelListener=di,h.isNoUnitNumericStyleProp=pe,h.isObject=hi,h.isOn=zi,h.isPlainObject=D,h.isPromise=To,h.isReservedProp=to,h.isSSRSafeAttrName=_,h.isSVGTag=vr,h.isSet=ln,h.isSpecialBooleanAttr=Ye,h.isString=la,h.isSymbol
715=Ul,h.isVoidTag=Xt,h.looseEqual=Sr,h.looseIndexOf=Vr,h.makeMap=C,h.normalizeClass=or,h.normalizeStyle=he,h.objectToString=Ma,h.parseStringStyle=Fe,h.propsToAttrMap=z,h.remove=Wi,h.slotFlagsText=N,h.stringifyStyle=$t,h.toDisplayString=Jr,h.toHandlerKey=Gs,h.toNumber=Js,h.toRawType=Ws,h.toTypeString=Ai}}),x=u({"node_modules/@vue/shared/index.js"(h,C){C.exports=b()}}),T=u({"node_modules/@vue/reactivity/dist/reactivity.cjs.js"(h){Object.defineProperty(h,"__esModule",{value:!0});var C=x(),k=new WeakMap,N=[],U,j=Symbol("iterate"),K=Symbol("Map key iterate");function fe(R){return R&&R._isEffect===!0}function Ce(R,we=C.EMPTY_OBJ){fe(R)&&(R=R.raw);const Me=y(R,we);return we.lazy||Me(),Me}function Ye(R){R.active&&(w(R),R.options.onStop&&R.options.onStop(),R.active=!1)}var g=0;function y(R,we){const Me=function(){if(!Me.active)return R();if(!N.includes(Me)){w(Me);try{return se(),N.push(Me),U=Me,R()}finally{N.pop(),he(),U=N[N.length-1]}}};return Me.id=g++,Me.allowRecurse=!!we.allowRecurse,Me._isEffect=!0,Me.active=!0,Me.raw=R,Me.deps=[],Me.options=we,Me}function w(R){const{deps:we}=R;if(we.length){for(let Me=0;Me<we.length;Me++)we[Me].delete(R);we.length=0}}var _=!0,z=[];function pe(){z.push(_),_=!1}function se(){z.push(_),_=!0}function he(){const R=z.pop();_=R===void 0?!0:R}function me(R,we,Me){if(!_||U===void 0)return;let ot=k.get(R);ot||k.set(R,ot=new Map);let Ge=ot.get(Me);Ge||ot.set(Me,Ge=new Set),Ge.has(U)||(Ge.add(U),U.deps.push(Ge),U.options.onTrack&&U.options.onTrack({effect:U,target:R,type:we,key:Me}))}function Le(R,we,Me,ot,Ge,ct){const Rt=k.get(R);if(!Rt)return;const zr=new Set,_n=Fr=>{Fr&&Fr.forEach(Li=>{(Li!==U||Li.allowRecurse)&&zr.add(Li)})};if(we==="clear")Rt.forEach(_n);else if(Me==="length"&&C.isArray(R))Rt.forEach((Fr,Li)=>{(Li==="length"||Li>=ot)&&_n(Fr)});else switch(Me!==void 0&&_n(Rt.get(Me)),we){case"add":C.isArray(R)?C.isIntegerKey(Me)&&_n(Rt.get("length")):(_n(Rt.get(j)),C.isMap(R)&&_n(Rt.get(K)));break;case"delete":C.isArray(R)||(_n(Rt.get(j)),C.isMap(R)&&_n(Rt.get(K)));break;case"set":C.isMap(R)&&_n(Rt.get(j));break}const zl=Fr=>{Fr.options.onTrigger&&Fr.options.onTrigger({effect:Fr,target:R,key:Me,type:we,newValue:ot,oldValue:Ge,oldTarget:ct}),Fr.options.scheduler?Fr.options.scheduler(Fr):Fr()};zr.forEach(zl)}var Fe=C.makeMap("__proto__,__v_isRef,__isVue"),$t=new Set(Object.getOwnPropertyNames(Symbol).map(R=>Symbol[R]).filter(C.isSymbol)),or=Xt(),_t=Xt(!1,!0),cr=Xt(!0),It=Xt(!0,!0),Gt=vr();function vr(){const R={};return["includes","indexOf","lastIndexOf"].forEach(we=>{R[we]=function(...Me){const ot=ae(this);for(let ct=0,Rt=this.length;ct<Rt;ct++)me(ot,"get",ct+"");const Ge=ot[we](...Me);return Ge===-1||Ge===!1?ot[we](...Me.map(ae)):Ge}}),["push","pop","shift","unshift","splice"].forEach(we=>{R[we]=function(...Me){pe();const ot=ae(this)[we].apply(this,Me);return he(),ot}}),R}function Xt(R=!1,we=!1){return function(ot,Ge,ct){if(Ge==="__v_isReactive")return!R;if(Ge==="__v_isReadonly")return R;if(Ge==="__v_raw"&&ct===(R?we?ro:St:we?un:to).get(ot))return ot;const Rt=C.isArray(ot);if(!R&&Rt&&C.hasOwn(Gt,Ge))return Reflect.get(Gt,Ge,ct);const zr=Reflect.get(ot,Ge,ct);return(C.isSymbol(Ge)?$t.has(Ge):Fe(Ge))||(R||me(ot,"get",Ge),we)?zr:ft(zr)?!Rt||!C.isIntegerKey(Ge)?zr.value:zr:C.isObject(zr)?R?_o(zr):Dn(zr):zr}}var wr=Mr(),Ut=Mr(!0);function Mr(R=!1){return function(Me,ot,Ge,ct){let Rt=Me[ot];if(!R&&(Ge=ae(Ge),Rt=ae(Rt),!C.isArray(Me)&&ft(Rt)&&!ft(Ge)))return Rt.value=Ge,!0;const zr=C.isArray(Me)&&C.isIntegerKey(ot)?Number(ot)<Me.length:C.hasOwn(Me,ot),_n=Reflect.set(Me,ot,Ge,ct);return Me===ae(ct)&&(zr?C.hasChanged(Ge,Rt)&&Le(Me,"set",ot,Ge,Rt):Le(Me,"add",ot,Ge)),_n}}function _r(R,we){const Me=C.hasOwn(R,we),ot=R[we],Ge=Reflect.deleteProperty(R,we);return Ge&&Me&&Le(R,"delete",we,void 0,ot),Ge}function pr(R,we){const Me=Reflect.has(R,we);return(!C.isSymbol(we)||!$t.has(we))&&me(R,"has",we),Me}function Sr(R){return me(R,"iterate",C.isArray(R)?"length":j),Reflect.ownKeys(R)}var Vr={get:or,set:wr,deleteProperty:_r,has:pr,ownKeys:Sr},Jr={get:cr,set(R,we){return console.warn(`Set operation on key "${String(we)}" failed: target is readonly.`,R),!0},deleteProperty(R,we){return console.warn(`Delete operation on key "${String(we)}" failed: target is readonly.`,R),!0}},Yr=C.extend({},Vr,{get:_t,set:Ut}),Jn=C.extend({},Jr,{get:It}),mn=R=>C.isObject(R)?Dn(R):R,kr=R=>C.isObject(R)?_o(R):R,Br=R=>R,on=R=>Reflect.getPrototypeOf(R);function Tn(R,we,Me=!1,ot=!1){R=R.__v_raw;const Ge=ae(R),ct=ae(we);we!==ct&&!Me&&me(Ge,"get",we),!Me&&me(Ge,"get",ct);const{has:Rt}
715=on(Ge),zr=ot?Br:Me?kr:mn;if(Rt.call(Ge,we))return zr(R.get(we));if(Rt.call(Ge,ct))return zr(R.get(ct));R!==Ge&&R.get(we)}function zi(R,we=!1){const Me=this.__v_raw,ot=ae(Me),Ge=ae(R);return R!==Ge&&!we&&me(ot,"has",R),!we&&me(ot,"has",Ge),R===Ge?Me.has(R):Me.has(R)||Me.has(Ge)}function di(R,we=!1){return R=R.__v_raw,!we&&me(ae(R),"iterate",j),Reflect.get(R,"size",R)}function sa(R){R=ae(R);const we=ae(this);return on(we).has.call(we,R)||(we.add(R),Le(we,"add",R,R)),this}function Wi(R,we){we=ae(we);const Me=ae(this),{has:ot,get:Ge}=on(Me);let ct=ot.call(Me,R);ct?Gi(Me,ot,R):(R=ae(R),ct=ot.call(Me,R));const Rt=Ge.call(Me,R);return Me.set(R,we),ct?C.hasChanged(we,Rt)&&Le(Me,"set",R,we,Rt):Le(Me,"add",R,we),this}function Vi(R){const we=ae(this),{has:Me,get:ot}=on(we);let Ge=Me.call(we,R);Ge?Gi(we,Me,R):(R=ae(R),Ge=Me.call(we,R));const ct=ot?ot.call(we,R):void 0,Rt=we.delete(R);return Ge&&Le(we,"delete",R,void 0,ct),Rt}function pi(){const R=ae(this),we=R.size!==0,Me=C.isMap(R)?new Map(R):new Set(R),ot=R.clear();return we&&Le(R,"clear",void 0,void 0,Me),ot}function Xr(R,we){return function(ot,Ge){const ct=this,Rt=ct.__v_raw,zr=ae(Rt),_n=we?Br:R?kr:mn;return!R&&me(zr,"iterate",j),Rt.forEach((zl,Fr)=>ot.call(Ge,_n(zl),_n(Fr),ct))}}function sn(R,we,Me){return function(...ot){const Ge=this.__v_raw,ct=ae(Ge),Rt=C.isMap(ct),zr=R==="entries"||R===Symbol.iterator&&Rt,_n=R==="keys"&&Rt,zl=Ge[R](...ot),Fr=Me?Br:we?kr:mn;return!we&&me(ct,"iterate",_n?K:j),{next(){const{value:Li,done:io}=zl.next();return io?{value:Li,done:io}:{value:zr?[Fr(Li[0]),Fr(Li[1])]:Fr(Li),done:io}},[Symbol.iterator](){return this}}}}function ln(R){return function(...we){{const Me=we[0]?`on key "${we[0]}" `:"";console.warn(`${C.capitalize(R)} operation ${Me}failed: target is readonly.`,ae(this))}return R==="delete"?!1:this}}function Yn(){const R={get(ct){return Tn(this,ct)},get size(){return di(this)},has:zi,add:sa,set:Wi,delete:Vi,clear:pi,forEach:Xr(!1,!1)},we={get(ct){return Tn(this,ct,!1,!0)},get size(){return di(this)},has:zi,add:sa,set:Wi,delete:Vi,clear:pi,forEach:Xr(!1,!0)},Me={get(ct){return Tn(this,ct,!0)},get size(){return di(this,!0)},has(ct){return zi.call(this,ct,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:Xr(!0,!1)},ot={get(ct){return Tn(this,ct,!0,!0)},get size(){return di(this,!0)},has(ct){return zi.call(this,ct,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:Xr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(ct=>{R[ct]=sn(ct,!1,!1),Me[ct]=sn(ct,!0,!1),we[ct]=sn(ct,!1,!0),ot[ct]=sn(ct,!0,!0)}),[R,Me,we,ot]}var[Oi,la,Ul,hi]=Yn();function To(R,we){const Me=we?R?hi:Ul:R?la:Oi;return(ot,Ge,ct)=>Ge==="__v_isReactive"?!R:Ge==="__v_isReadonly"?R:Ge==="__v_raw"?ot:Reflect.get(C.hasOwn(Me,Ge)&&Ge in ot?Me:ot,Ge,ct)}var Ma={get:To(!1,!1)},Ai={get:To(!1,!0)},Ws={get:To(!0,!1)},D={get:To(!0,!0)};function Gi(R,we,Me){const ot=ae(Me);if(ot!==Me&&we.call(R,ot)){const Ge=C.toRawType(R);console.warn(`Reactive ${Ge} contains both the raw and reactive versions of the same object${Ge==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var to=new WeakMap,un=new WeakMap,St=new WeakMap,ro=new WeakMap;function Vs(R){switch(R){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rs(R){return R.__v_skip||!Object.isExtensible(R)?0:Vs(C.toRawType(R))}function Dn(R){return R&&R.__v_isReadonly?R:no(R,!1,Vr,Ma,to)}function Gs(R){return no(R,!1,Yr,Ai,un)}function _o(R){return no(R,!0,Jr,Ws,St)}function Ks(R){return no(R,!0,Jn,D,ro)}function no(R,we,Me,ot,Ge){if(!C.isObject(R))return console.warn(`value cannot be made reactive: ${String(R)}`),R;if(R.__v_raw&&!(we&&R.__v_isReactive))return R;const ct=Ge.get(R);if(ct)return ct;const Rt=rs(R);if(Rt===0)return R;const zr=new Proxy(R,Rt===2?ot:Me);return Ge.set(R,zr),zr}function Js(R){return vi(R)?Js(R.__v_raw):!!(R&&R.__v_isReactive)}function vi(R){return!!(R&&R.__v_isReadonly)}function ju(R){return Js(R)||vi(R)}function ae(R){return R&&ae(R.__v_raw)||R}function ze(R){return C.def(R,"__v_skip",!0),R}var nt=R=>C.isObject(R)?Dn(R):R;function ft(R){return!!(R&&R.__v_isRef===!0)}function Bt(R){return Rn(R)}function qr(R){return Rn(R,!0)}var In=class{constructor(R,we=!1){this._shallow=we,this.__v_isRef=!0,this._rawValue=we?R:ae(R),this._value=we?R:nt(R)}get value(){return me(ae(this),"get","value"),this._value}set value(R){R=this._shallow?R:ae(R),C.hasChanged(R,this._rawValue)&&(this._rawValue=R,this._value=this._shallow?R:nt(R),Le(ae(this),"set","value",R))}};function Rn(R,we=!1){return ft(R)?R:new In(R,we)}function cn(R){Le(ae(R),"set","value",R.value)}
715function jl(R){return ft(R)?R.value:R}var Ki={get:(R,we,Me)=>jl(Reflect.get(R,we,Me)),set:(R,we,Me,ot)=>{const Ge=R[we];return ft(Ge)&&!ft(Me)?(Ge.value=Me,!0):Reflect.set(R,we,Me,ot)}};function zu(R){return Js(R)?R:new Proxy(R,Ki)}var Ys=class{constructor(R){this.__v_isRef=!0;const{get:we,set:Me}=R(()=>me(this,"get","value"),()=>Le(this,"set","value"));this._get=we,this._set=Me}get value(){return this._get()}set value(R){this._set(R)}};function Mi(R){return new Ys(R)}function uh(R){ju(R)||console.warn("toRefs() expects a reactive object but received a plain one.");const we=C.isArray(R)?new Array(R.length):{};for(const Me in R)we[Me]=Zf(R,Me);return we}var ch=class{constructor(R,we){this._object=R,this._key=we,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(R){this._object[this._key]=R}};function Zf(R,we){return ft(R[we])?R[we]:new ch(R,we)}var fh=class{constructor(R,we,Me){this._setter=we,this._dirty=!0,this.__v_isRef=!0,this.effect=Ce(R,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Le(ae(this),"set","value"))}}),this.__v_isReadonly=Me}get value(){const R=ae(this);return R._dirty&&(R._value=this.effect(),R._dirty=!1),me(R,"get","value"),R._value}set value(R){this._setter(R)}};function dh(R){let we,Me;return C.isFunction(R)?(we=R,Me=()=>{console.warn("Write operation failed: computed value is readonly")}):(we=R.get,Me=R.set),new fh(we,Me,C.isFunction(R)||!R.set)}h.ITERATE_KEY=j,h.computed=dh,h.customRef=Mi,h.effect=Ce,h.enableTracking=se,h.isProxy=ju,h.isReactive=Js,h.isReadonly=vi,h.isRef=ft,h.markRaw=ze,h.pauseTracking=pe,h.proxyRefs=zu,h.reactive=Dn,h.readonly=_o,h.ref=Bt,h.resetTracking=he,h.shallowReactive=Gs,h.shallowReadonly=Ks,h.shallowRef=qr,h.stop=Ye,h.toRaw=ae,h.toRef=Zf,h.toRefs=uh,h.track=me,h.trigger=Le,h.triggerRef=cn,h.unref=jl}}),S=u({"node_modules/@vue/reactivity/index.js"(h,C){C.exports=T()}}),M={};f(M,{Alpine:()=>tt,default:()=>At}),e.exports=m(M);var L=!1,P=!1,A=[],H=-1;function W(h){J(h)}function J(h){A.includes(h)||A.push(h),X()}function ee(h){let C=A.indexOf(h);C!==-1&&C>H&&A.splice(C,1)}function X(){!P&&!L&&(L=!0,queueMicrotask(ie))}function ie(){L=!1,P=!0;for(let h=0;h<A.length;h++)A[h](),H=h;A.length=0,H=-1,P=!1}var ge,Y,ne,Te,Be=!0;function He(h){Be=!1,h(),Be=!0}function Re(h){ge=h.reactive,ne=h.release,Y=C=>h.effect(C,{scheduler:k=>{Be?W(k):k()}}),Te=h.raw}function Oe(h){Y=h}function zt(h){let C=()=>{};return[N=>{let U=Y(N);return h._x_effects||(h._x_effects=new Set,h._x_runEffects=()=>{h._x_effects.forEach(j=>j())}),h._x_effects.add(U),C=()=>{U!==void 0&&(h._x_effects.delete(U),ne(U))},U},()=>{C()}]}function bt(h,C){let k=!0,N,U=Y(()=>{let j=h();JSON.stringify(j),k?N=j:queueMicrotask(()=>{C(j,N),N=j}),k=!1});return()=>ne(U)}var $e=[],qe=[],at=[];function Ve(h){at.push(h)}function Ae(h,C){typeof C=="function"?(h._x_cleanups||(h._x_cleanups=[]),h._x_cleanups.push(C)):(C=h,qe.push(C))}function Ne(h){$e.push(h)}function Dt(h,C,k){h._x_attributeCleanups||(h._x_attributeCleanups={}),h._x_attributeCleanups[C]||(h._x_attributeCleanups[C]=[]),h._x_attributeCleanups[C].push(k)}function Wt(h,C){h._x_attributeCleanups&&Object.entries(h._x_attributeCleanups).forEach(([k,N])=>{(C===void 0||C.includes(k))&&(N.forEach(U=>U()),delete h._x_attributeCleanups[k])})}function Ht(h){var C,k;for((C=h._x_effects)==null||C.forEach(ee);(k=h._x_cleanups)!=null&&k.length;)h._x_cleanups.pop()()}var qt=new MutationObserver(yt),tr=!1;function ht(){qt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),tr=!0}function br(){xr(),qt.disconnect(),tr=!1}var kt=[];function xr(){let h=qt.takeRecords();kt.push(()=>h.length>0&&yt(h));let C=kt.length;queueMicrotask(()=>{if(kt.length===C)for(;kt.length>0;)kt.shift()()})}function We(h){if(!tr)return h();br();let C=h();return ht(),C}var ye=!1,_e=[];function rt(){ye=!0}function et(){ye=!1,yt(_e),_e=[]}function yt(h){if(ye){_e=_e.concat(h);return}let C=[],k=new Set,N=new Map,U=new Map;for(let j=0;j<h.length;j++)if(!h[j].target._x_ignoreMutationObserver&&(h[j].type==="childList"&&(h[j].removedNodes.forEach(K=>{K.nodeType===1&&K._x_marker&&k.add(K)}
715),h[j].addedNodes.forEach(K=>{if(K.nodeType===1){if(k.has(K)){k.delete(K);return}K._x_marker||C.push(K)}})),h[j].type==="attributes")){let K=h[j].target,fe=h[j].attributeName,Ce=h[j].oldValue,Ye=()=>{N.has(K)||N.set(K,[]),N.get(K).push({name:fe,value:K.getAttribute(fe)})},g=()=>{U.has(K)||U.set(K,[]),U.get(K).push(fe)};K.hasAttribute(fe)&&Ce===null?Ye():K.hasAttribute(fe)?(g(),Ye()):g()}U.forEach((j,K)=>{Wt(K,j)}),N.forEach((j,K)=>{$e.forEach(fe=>fe(K,j))});for(let j of k)C.some(K=>K.contains(j))||qe.forEach(K=>K(j));for(let j of C)j.isConnected&&at.forEach(K=>K(j));C=null,k=null,N=null,U=null}function Xe(h){return Je(De(h))}function xe(h,C,k){return h._x_dataStack=[C,...De(k||h)],()=>{h._x_dataStack=h._x_dataStack.filter(N=>N!==C)}}function De(h){return h._x_dataStack?h._x_dataStack:typeof ShadowRoot=="function"&&h instanceof ShadowRoot?De(h.host):h.parentNode?De(h.parentNode):[]}function Je(h){return new Proxy({objects:h},wt)}var wt={ownKeys({objects:h}){return Array.from(new Set(h.flatMap(C=>Object.keys(C))))},has({objects:h},C){return C==Symbol.unscopables?!1:h.some(k=>Object.prototype.hasOwnProperty.call(k,C)||Reflect.has(k,C))},get({objects:h},C,k){return C=="toJSON"?xt:Reflect.get(h.find(N=>Reflect.has(N,C))||{},C,k)},set({objects:h},C,k,N){const U=h.find(K=>Object.prototype.hasOwnProperty.call(K,C))||h[h.length-1],j=Object.getOwnPropertyDescriptor(U,C);return j!=null&&j.set&&(j!=null&&j.get)?j.set.call(N,k)||!0:Reflect.set(U,C,k)}};function xt(){return Reflect.ownKeys(this).reduce((C,k)=>(C[k]=Reflect.get(this,k),C),{})}function Vt(h){let C=N=>typeof N=="object"&&!Array.isArray(N)&&N!==null,k=(N,U="")=>{Object.entries(Object.getOwnPropertyDescriptors(N)).forEach(([j,{value:K,enumerable:fe}])=>{if(fe===!1||K===void 0||typeof K=="object"&&K!==null&&K.__v_skip)return;let Ce=U===""?j:`${U}.${j}`;typeof K=="object"&&K!==null&&K._x_interceptor?N[j]=K.initialize(h,Ce,j):C(K)&&K!==N&&!(K instanceof Element)&&k(K,Ce)})};return k(h)}function lr(h,C=()=>{}){let k={initialValue:void 0,_x_interceptor:!0,initialize(N,U,j){return h(this.initialValue,()=>jr(N,U),K=>Cr(N,U,K),U,j)}};return C(k),N=>
vendor: 10,096 bytes, lines 715-719
715{if(typeof N=="object"&&N!==null&&N._x_interceptor){let U=k.initialize.bind(k);k.initialize=(j,K,fe)=>{let Ce=N.initialize(j,K,fe);return k.initialValue=Ce,U(j,K,fe)}}else k.initialValue=N;return k}}function jr(h,C){return C.split(".").reduce((k,N)=>k[N],h)}function Cr(h,C,k){if(typeof C=="string"&&(C=C.split(".")),C.length===1)h[C[0]]=k;else{if(C.length===0)throw error;return h[C[0]]||(h[C[0]]={}),Cr(h[C[0]],C.slice(1),k)}}var hn={};function Er(h,C){hn[h]=C}function ce(h,C){let k=Ke(C);return Object.entries(hn).forEach(([N,U])=>{Object.defineProperty(h,`$${N}`,{get(){return U(C,k)},enumerable:!1})}),h}function Ke(h){let[C,k]=Lt(h),N={interceptor:lr,...C};return Ae(h,k),N}function pt(h,C,k,...N){try{return k(...N)}catch(U){gt(U,h,C)}}function gt(...h){return st(...h)}var st=ur;function ir(h){st=h}function ur(h,C,k=void 0){h=Object.assign(h??{message:"No error message given."},{el:C,expression:k}),console.warn(`Alpine Expression Error: ${h.message}
716
717${k?'Expression: "'+k+`"
718
719`:""}`,C),setTimeout(()=>{throw h},0)}var ar=!0;function Fn(h){let C=ar;ar=!1;let k=h();return ar=C,k}function Tr(h,C,k={}){let N;return dr(h,C)(U=>N=U,k),N}function dr(...h){return An(...h)}var An=ui;function Kr(h){An=h}var Ei;function Hn(h){Ei=h}function ui(h,C){let k={};ce(k,h);let N=[k,...De(h)],U=typeof C=="function"?Ga(N,C):wa(N,C,h);return pt.bind(null,h,C,U)}function Ga(h,C){return(k=()=>{},{scope:N={},params:U=[],context:j}={})=>{if(!ar){F(k,C,Je([N,...h]),U);return}let K=C.apply(Je([N,...h]),U);F(k,K)}}var Mn={};function qn(h,C){if(Mn[h])return Mn[h];let k=Object.getPrototypeOf(async function(){}).constructor,N=/^[\n\s]*if.*\(.*\)/.test(h.trim())||/^(let|const)\s/.test(h.trim())?`(async()=>{ ${h} })()`:h,j=(()=>{try{let K=new k(["__self","scope"],`with (scope) { __self.result = ${N} }; __self.finished = true; return __self.result;`);return Object.defineProperty(K,"name",{value:`[Alpine] ${h}`}),K}catch(K){return gt(K,C,h),Promise.resolve()}})();return Mn[h]=j,j}function wa(h,C,k){let N=qn(C,k);return(U=()=>{},{scope:j={},params:K=[],context:fe}={})=>{N.result=void 0,N.finished=!1;let Ce=Je([j,...h]);if(typeof N=="function"){let Ye=N.call(fe,N,Ce).catch(g=>gt(g,k,C));N.finished?(F(U,N.result,Ce,K,k),N.result=void 0):Ye.then(g=>{F(U,g,Ce,K,k)}).catch(g=>gt(g,k,C)).finally(()=>N.result=void 0)}}}function F(h,C,k,N,U){if(ar&&typeof C=="function"){let j=C.apply(k,N);j instanceof Promise?j.then(K=>F(h,K,k,N)).catch(K=>gt(K,U,C)):h(j)}else typeof C=="object"&&C instanceof Promise?C.then(j=>h(j)):h(C)}function G(...h){return Ei(...h)}function le(h,C,k={}){var N,U;let j={};ce(j,h);let K=[j,...De(h)],fe=Je([(N=k.scope)!=null?N:{},...K]),Ce=(U=k.params)!=null?U:[];if(C.includes("await")){let Ye=Object.getPrototypeOf(async function(){}).constructor,g=/^[\n\s]*if.*\(.*\)/.test(C.trim())||/^(let|const)\s/.test(C.trim())?`(async()=>{ ${C} })()`:C;return new Ye(["scope"],`with (scope) { let __result = ${g}; return __result }`).call(k.context,fe)}else{let Ye=/^[\n\s]*if.*\(.*\)/.test(C.trim())||/^(let|const)\s/.test(C.trim())?`(()=>{ ${C} })()`:C,y=new Function(["scope"],`with (scope) { let __result = ${Ye}; return __result }`).call(k.context,fe);return typeof y=="function"&&ar?y.apply(fe,Ce):y}}var Q="x-";function B(h=""){return Q+h}function te(h){Q=h}var oe={};function be(h,C){return oe[h]=C,{before(k){if(!oe[k]){console.warn(String.raw`Cannot find directive \`${k}\`. \`${h}\` will use the default order of execution`);return}const N=_i.indexOf(k);_i.splice(N>=0?N:_i.indexOf("DEFAULT"),0,h)}}}function Ue(h){return Object.keys(oe).includes(h)}function je(h,C,k){if(C=Array.from(C),h._x_virtualDirectives){let j=Object.entries(h._x_virtualDirectives).map(([fe,Ce])=>({name:fe,value:Ce})),K=ut(j);j=j.map(fe=>K.find(Ce=>Ce.name===fe.name)?{name:`x-bind:${fe.name}`,value:`"${fe.value}"`}:fe),C=C.concat(j)}let N={};return C.map(Or((j,K)=>N[j]=K)).filter(Ti).map(Ka(N,k)).sort(ks).map(j=>Pr(h,j))}function ut(h){return Array.from(h).map(Or()).filter(C=>!Ti(C))}var vt=!1,Ot=new Map,mt=Symbol();function Mt(h){vt=!0;let C=Symbol();mt=C,Ot.set(C,[]);let k=()=>{for(;Ot.get(C).length;)Ot.get(C).shift()();Ot.delete(C)},N=()=>{vt=!1,k()};h(k),N()}function Lt(h){let C=[],k=fe=>C.push(fe),[N,U]=zt(h);return C.push(U),[{Alpine:fi,effect:N,cleanup:k,evaluateLater:dr.bind(dr,h),evaluate:Tr.bind(Tr,h)},()=>C.forEach(fe=>fe())]}function Pr(h,C){let k=()=>{},N=oe[C.type]||k,[U,j]=Lt(h);Dt(h,C.original,j);let K=()=>{h._x_ignore||h._x_ignoreSelf||(N.inline&&N.inline(h,C,U),N=N.bind(N,h,C,U),vt?Ot.get(mt).push(N):N())};return K.runCleanups=j,K}var Pt=(h,C)=>({name:k,value:N})=>(k.startsWith(h)&&(k=k.replace(h,C)),{name:k,value:N}),rr=h=>h;function Or(h=()=>{}){return({name:C,value:k})=>{let{name:N,value:U}=vn.reduce((j,K)=>K(j),{name:C,value:k});return N!==C&&h(N,C),{name:N,value:U}}}var vn=[];function Hr(h){vn.push(h)}function Ti({name:h}){return xa().test(h)}var xa=()=>new RegExp(`^${Q}([^:^.]+)\\b`);function Ka(h,C){return({name:k,value:N})=>{let U=k.match(xa()),j=k.match(/:([a-zA-Z0-9\-_:]+)/),K=k.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],fe=C||h[k]||k;return{type:U?U[1]:null,value:j?j[1]:null,modifiers:K.map(Ce=>Ce.replace(".","")),expression:N,original:fe}}}var bo="DEFAULT",_i=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",bo,"teleport"];function ks(h,C){let k=_i.indexOf(h.type)===-1?bo:h.type,N=_i.indexOf(C.type)===-1?bo:C.type;return _i.indexOf(k)-_i.indexOf(N)}function $n(h,C,k={}){h.dispatchEvent(new CustomEvent(C,{detail:k,bubbles:!0,composed:!0,cancelable:!0}))}function Si(h,C){if(typeof ShadowRoot=="function"&&h instanceof ShadowRoot){Array.from(h.children).forEach(U=>Si(U,C));return}let k=!1;if(C(h,()=>k=!0),k)return;let N=h.firstElementChild;for(;N;)Si(N,C),N=N.nextElementSibling}function en(h,...C){console.warn(`Alpine Warning: ${h}`,...C)}var ki=!1;function Ca(){ki&&en("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ki=!0,document.body||en("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),$n(document,"alpine:init"),$n(document,"alpine:initializing"),ht(),Ve(C=>$i(C,Si)),Ae(C=>Qa(C)),Ne((C,k)=>{je(C,k).forEach(N=>N())});let h=C=>!wo(C.parentElement,!0);Array.from(document.querySelectorAll(Wo().join(","))).filter(h).forEach(C=>{$i(C)}),$n(document,"alpine:initialized"),setTimeout(()=>{Tu()})}var qi=[],Ja=[];function bl(){return qi.map(h=>h())}function Wo(){return qi.concat(Ja).map(h=>h())}function wl(h){qi.push(h)}function Os(h){Ja.push(h)}function wo(h,C=!1){return Ya(h,k=>{if((C?Wo():bl()).some(U=>k.matches(U)))return!0})}function Ya(h,C){if(h){if(C(h))return h;if(h._x_teleportBack&&(h=h._x_teleportBack),h.parentNode instanceof ShadowRoot)return Ya(h.parentNode.host,C);if(h.parentElement)return Ya(h.parentElement,C)}}function xl(h){return bl().some(C=>h.matches(C))}var xo=[];function Cl(h){xo.push(h)}var Xa=1;function $i(h,C=Si,k=()=>{}){Ya(h,N=>N._x_ignore)||Mt(()=>{C(h,(N,U)=>{N._x_marker||(k(N,U),xo.forEach(j=>j(N,U)),je(N,N.attributes).forEach(j=>j()),N._x_ignore||(N._x_marker=Xa++),N._x_ignore&&U())})})}function Qa(h,C=Si){C(h,k=>{Ht(k),Wt(k),delete k._x_marker})}function Tu(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([C,k,N])=>{Ue(k)||N.some(U=>{if(document.querySelector(U))return en(`found "${U}", but missing ${C} plugin`),!0})})}var Vo=[],Go=!1;function Ea(h=()=>{}){return queueMicrotask(()=>{Go||setTimeout(()=>{As()})}),new Promise(C=>{Vo.push(()=>{h(),C()})})}function As(){for(Go=!1;Vo.length;)Vo.shift()()}function zc(){Go=!0}function El(h,C){return Array.isArray(C)?_u(h,C.join(" ")):typeof C=="object"&&C!==null?Su(h,C):typeof C=="function"?El(h,C()):_u(h,C)}function _u(h,C){let k=U=>U.split(" ").filter(j=>!h.classList.contains(j)).filter(Boolean),N=U=>(h.classList.add(...U),()=>{h.classList.remove(...U)});return C=C===!0?C="":C||"",N(k(C))}function Su(h,C){let k=fe=>fe.split(" ").filter(Boolean),N=Object.entries(C).flatMap(([fe,Ce])=>Ce?k(fe):!1).filter(Boolean),U=Object.entries(C).flatMap(([fe,Ce])=>Ce?!1:k(fe)).filter(Boolean),j=[],K=[];return U.forEach(fe=>{h.classList.contains(fe)&&(h.classList.remove(fe),K.push(fe))}),N.forEach(fe=>{h.classList.contains(fe)||(h.classList.add(fe),j.push(fe))}),()=>{K.forEach(fe=>h.classList.add(fe)),j.forEach(fe=>h.classList.remove(fe))}}function Ta(h,C){return typeof C=="object"&&C!==null?Wc(h,C):Vc(h,C)}function Wc(h,C){let k={};return Object.entries(C).forEach(([N,U])=>{k[N]=h.style[N],N.startsWith("--")||(N=Gc(N)),h.style.setProperty(N,U)}),setTimeout(()=>{h.style.length===0&&h.removeAttribute("style")}),()=>{Ta(h,k)}}function Vc(h,C){let k=h.getAttribute("style",C);return h.setAttribute("style",C),()=>{h.setAttribute("style",k||"")}}function Gc(h){return h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ko(h,C=()=>{}){let k=!1;return function(){k?C.apply(this,arguments):(k=!0,h.apply(this,arguments))}}be("transition",(h,{value:C,modifiers:k,expression:N},{evaluate:U})=>{typeof N=="function"&&(N=U(N)),N!==!1&&(!N||typeof N=="boolean"?Jc(h,k,C):Kc(h,N,C))});function Kc(h,C,k){ku(h,El,""),{enter:U=>{h._x_transition.enter.during=U},"enter-start":U=>{h._x_transition.enter.start=U},"enter-end":U=>{h._x_transition.enter.end=U},leave:U=>{h._x_transition.leave.during=U},"leave-start":U=>{h._x_transition.leave.start=U},"leave-end":U=>{h._x_transition.leave.end=U}}[k](C)}function Jc(h,C,k){ku(h,Ta);let N=!C.includes("in")&&!C.includes("out")&&!k,U=N||C.includes("in")||["enter"].includes(k),j=N||C.includes("out")||["leave"].includes(k);C.includes("in")&&!N&&(C=C.filter((he,me)=>me<C.indexOf("out"))),C.includes("out")&&!N&&(C=C.filter((he,me)=>me>C.indexOf("out")));let K=!C.includes("opacity")&&!C.includes("scale"),fe=K||C.includes("opacity"),Ce=K||C.includes("scale"),Ye=fe?0:1,g=Ce?hr(C,"scale",95)/100:1,y=hr(C,"delay",0)/1e3,w=hr(C,"origin","center"),_="opacity, transform",z=hr(C,"duration",150)/1e3,pe=hr(C,"duration",75)/1e3,se="cub
719ic-bezier(0.4, 0.0, 0.2, 1)";U&&(h._x_transition.enter.during={transformOrigin:w,transitionDelay:`${y}s`,transitionProperty:_,transitionDuration:`${z}s`,transitionTimingFunction:se},h._x_transition.enter.start={opacity:Ye,transform:`scale(${g})`},h._x_transition.enter.end={opacity:1,transform:"scale(1)"}),j&&(h._x_transition.leave.during={transformOrigin:w,transitionDelay:`${y}s`,transitionProperty:_,transitionDuration:`${pe}s`,transitionTimingFunction:se},h._x_transition.leave.start={opacity:1,transform:"scale(1)"},h._x_transition.leave.end={opacity:Ye,transform:`scale(${g})`})}function ku(h,C,k={}){h._x_transition||(h._x_transition={enter:{during:k,start:k,end:k},leave:{during:k,start:k,end:k},in(N=()=>{},U=()=>{}){Ms(h,C,{during:this.enter.during,start:this.enter.start,end:this.enter.end},N,U)},out(N=()=>{},U=()=>{}){Ms(h,C,{during:this.leave.during,start:this.leave.start,end:this.leave.end},N,U)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(h,C,k,N){const U=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let j=()=>U(k);if(C){h._x_transition&&(h._x_transition.enter||h._x_transition.leave)?h._x_transition.enter&&(Object.entries(h._x_transition.enter.during).length||Object.entries(h._x_transition.enter.start).length||Object.entries(h._x_transition.enter.end).length)?h._x_transition.in(k):j():h._x_transition?h._x_transition.in(k):j();return}h._x_hidePromise=h._x_transition?new Promise((K,fe)=>{h._x_transition.out(()=>{},()=>K(N)),h._x_transitioning&&h._x_transitioning.beforeCancel(()=>fe({isFromCancelledTransition:!0}))}):Promise.resolve(N),queueMicrotask(()=>{let K=Tl(h);K?(K._x_hideChildren||(K._x_hideChildren=[]),K._x_hideChildren.push(h)):U(()=>
vendor: 12,463 bytes, line 719
719{let fe=Ce=>{let Ye=Promise.all([Ce._x_hidePromise,...(Ce._x_hideChildren||[]).map(fe)]).then(([g])=>g==null?void 0:g());return delete Ce._x_hidePromise,delete Ce._x_hideChildren,Ye};fe(h).catch(Ce=>{if(!Ce.isFromCancelledTransition)throw Ce})})})};function Tl(h){let C=h.parentNode;if(C)return C._x_hidePromise?C:Tl(C)}function Ms(h,C,{during:k,start:N,end:U}={},j=()=>{},K=()=>{}){if(h._x_transitioning&&h._x_transitioning.cancel(),Object.keys(k).length===0&&Object.keys(N).length===0&&Object.keys(U).length===0){j(),K();return}let fe,Ce,Ye;Rr(h,{start(){fe=C(h,N)},during(){Ce=C(h,k)},before:j,end(){fe(),Ye=C(h,U)},after:K,cleanup(){Ce(),Ye()}})}function Rr(h,C){let k,N,U,j=Ko(()=>{We(()=>{k=!0,N||C.before(),U||(C.end(),As()),C.after(),h.isConnected&&C.cleanup(),delete h._x_transitioning})});h._x_transitioning={beforeCancels:[],beforeCancel(K){this.beforeCancels.push(K)},cancel:Ko(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();j()}),finish:j},We(()=>{C.start(),C.during()}),zc(),requestAnimationFrame(()=>{if(k)return;let K=Number(getComputedStyle(h).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,fe=Number(getComputedStyle(h).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;K===0&&(K=Number(getComputedStyle(h).animationDuration.replace("s",""))*1e3),We(()=>{C.before()}),N=!0,requestAnimationFrame(()=>{k||(We(()=>{C.end()}),As(),setTimeout(h._x_transitioning.finish,K+fe),U=!0)})})}function hr(h,C,k){if(h.indexOf(C)===-1)return k;const N=h[h.indexOf(C)+1];if(!N||C==="scale"&&isNaN(N))return k;if(C==="duration"||C==="delay"){let U=N.match(/([0-9]+)ms/);if(U)return U[1]}return C==="origin"&&["top","right","left","center","bottom"].includes(h[h.indexOf(C)+2])?[N,h[h.indexOf(C)+2]].join(" "):N}var _a=!1;function Ui(h,C=()=>{}){return(...k)=>_a?C(...k):h(...k)}function Ou(h){return(...C)=>_a&&h(...C)}var Au=[];function Ls(h){Au.push(h)}function Yc(h,C){Au.forEach(k=>k(h,C)),_a=!0,aa(()=>{$i(C,(k,N)=>{N(k,()=>{})})}),_a=!1}var Ds=!1;function _l(h,C){C._x_dataStack||(C._x_dataStack=h._x_dataStack),_a=!0,Ds=!0,aa(()=>{an(C)}),_a=!1,Ds=!1}function an(h){let C=!1;$i(h,(N,U)=>{Si(N,(j,K)=>{if(C&&xl(j))return K();C=!0,U(j,K)})})}function aa(h){let C=Y;Oe((k,N)=>{let U=C(k);return ne(U),()=>{}}),h(),Oe(C)}function Sa(h,C,k,N=[]){switch(h._x_bindings||(h._x_bindings=ge({})),h._x_bindings[C]=k,C=N.includes("camel")?Iu(C):C,C){case"value":Mu(h,k);break;case"style":ci(h,k);break;case"class":Sl(h,k);break;case"selected":case"checked":kl(h,C,k);break;default:Is(h,C,k);break}}function Mu(h,C){if(ji(h))h.attributes.value===void 0&&(h.value=C),window.fromModel&&(typeof C=="boolean"?h.checked=Rs(h.value)===C:h.checked=Un(h.value,C));else if(Ar(h))Number.isInteger(C)?h.value=C:!Array.isArray(C)&&typeof C!="boolean"&&![null,void 0].includes(C)?h.value=String(C):Array.isArray(C)?h.checked=C.some(k=>Un(k,h.value)):h.checked=!!C;else if(h.tagName==="SELECT")Du(h,C);else{if(h.value===C)return;h.value=C===void 0?"":C}}function Sl(h,C){h._x_undoAddedClasses&&h._x_undoAddedClasses(),h._x_undoAddedClasses=El(h,C)}function ci(h,C){h._x_undoAddedStyles&&h._x_undoAddedStyles(),h._x_undoAddedStyles=Ta(h,C)}function kl(h,C,k){Is(h,C,k),Lu(h,C,k)}function Is(h,C,k){[null,void 0,!1].includes(k)&&Ml(C)?h.removeAttribute(C):(Al(C)&&(k=C),Ol(h,C,k))}function Ol(h,C,k){h.getAttribute(C)!=k&&h.setAttribute(C,k)}function Lu(h,C,k){h[C]!==k&&(h[C]=k)}function Du(h,C){const k=[].concat(C).map(N=>N+"");Array.from(h.options).forEach(N=>{N.selected=k.includes(N.value)})}function Iu(h){return h.toLowerCase().replace(/-(\w)/g,(C,k)=>k.toUpperCase())}function Un(h,C){return h==C}function Rs(h){return[1,"1","true","on","yes",!0].includes(h)?!0:[0,"0","false","off","no",!1].includes(h)?!1:h?!!h:null}var jn=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Al(h){return jn.has(h)}function Ml(h){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(h)}function ka(h,C,k){return h._x_bindings&&h._x_bindings[C]!==void 0?h._x_bindings[C]:Ps(h,C,k)}function Ns(h,C,k,N=!0){if(h._x_bindings&&h._x_bindings[C]!==void 0)return h._x_bindings[C];if(h._x_inlineBindings&&h._x_inlineBindings[C]!==void 0){let U=h._x_inlineBindings[C];return U.extract=N,Fn(()=>Tr(h,U.expression))}return Ps(h,C,k)}function Ps(h,C,k){let N=h.getAttribute(C);return N===null?typeof k=="function"?k():k:N===""?!0:Al(C)?!![C,"true"].includes(N):N}function Ar(h){return h.type==="checkbox"||h.localName==="ui-checkbox"||h.localName==="ui-switch"}function ji(h){return h.type==="radio"||h.localName==="ui-radio"}function Jo(h,C){let k;return function(){const N=this,U=arguments,j=function(){k=null,h.apply(N,U)};clearTimeout(k),k=setTimeout(j,C)}}function Ll(h,C){let k;return function(){let N=this,U=arguments;k||(h.apply(N,U),k=!0,setTimeout(()=>k=!1,C))}}function Yo({get:h,set:C},{get:k,set:N}){let U=!0,j,K=Y(()=>{let fe=h(),Ce=k();if(U)N(Dl(fe)),U=!1;else{let Ye=JSON.stringify(fe),g=JSON.stringify(Ce);Ye!==j?N(Dl(fe)):Ye!==g&&C(Dl(Ce))}j=JSON.stringify(h()),JSON.stringify(k())});return()=>{ne(K)}}function Dl(h){return typeof h=="object"?JSON.parse(JSON.stringify(h)):h}function Xc(h){(Array.isArray(h)?h:[h]).forEach(k=>k(fi))}var Za={},Il=!1;function Bs(h,C){if(Il||(Za=ge(Za),Il=!0),C===void 0)return Za[h];Za[h]=C,Vt(Za[h]),typeof C=="object"&&C!==null&&C.hasOwnProperty("init")&&typeof C.init=="function"&&Za[h].init()}function Oa(){return Za}var Rl={};function Nl(h,C){let k=typeof C!="function"?()=>C:C;return h instanceof Element?Fs(h,k()):(Rl[h]=k,()=>{})}function Ru(h){return Object.entries(Rl).forEach(([C,k])=>{Object.defineProperty(h,C,{get(){return(...N)=>k(...N)}})}),h}function Fs(h,C,k){let N=[];for(;N.length;)N.pop()();let U=Object.entries(C).map(([K,fe])=>({name:K,value:fe})),j=ut(U);return U=U.map(K=>j.find(fe=>fe.name===K.name)?{name:`x-bind:${K.name}`,value:`"${K.value}"`}:K),je(h,U,k).map(K=>{N.push(K.runCleanups),K()}),()=>{for(;N.length;)N.pop()()}}var Hs={};function Nu(h,C){Hs[h]=C}function Co(h,C){return Object.entries(Hs).forEach(([k,N])=>{Object.defineProperty(h,k,{get(){return(...U)=>N.bind(C)(...U)},enumerable:!1})}),h}var qs={get reactive(){return ge},get release(){return ne},get effect(){return Y},get raw(){return Te},version:"3.15.3",flushAndStopDeferringMutations:et,dontAutoEvaluateFunctions:Fn,disableEffectScheduling:He,startObservingMutations:ht,stopObservingMutations:br,setReactivityEngine:Re,onAttributeRemoved:Dt,onAttributesAdded:Ne,closestDataStack:De,skipDuringClone:Ui,onlyDuringClone:Ou,addRootSelector:wl,addInitSelector:Os,setErrorHandler:ir,interceptClone:Ls,addScopeToNode:xe,deferMutations:rt,mapAttributes:Hr,evaluateLater:dr,interceptInit:Cl,initInterceptors:Vt,injectMagics:ce,setEvaluator:Kr,setRawEvaluator:Hn,mergeProxies:Je,extractProp:Ns,findClosest:Ya,onElRemoved:Ae,closestRoot:wo,destroyTree:Qa,interceptor:lr,transition:Ms,setStyles:Ta,mutateDom:We,directive:be,entangle:Yo,throttle:Ll,debounce:Jo,evaluate:Tr,evaluateRaw:G,initTree:$i,nextTick:Ea,prefixed:B,prefix:te,plugin:Xc,magic:Er,store:Bs,start:Ca,clone:_l,cloneNode:Yc,bound:ka,$data:Xe,watch:bt,walk:Si,data:Nu,bind:Nl},fi=qs,Xo=v(S());Er("nextTick",()=>Ea),Er("dispatch",h=>$n.bind($n,h)),Er("watch",(h,{evaluateLater:C,cleanup:k})=>(N,U)=>{let j=C(N),fe=bt(()=>{let Ce;return j(Ye=>Ce=Ye),Ce},U);k(fe)}),Er("store",Oa),Er("data",h=>Xe(h)),Er("root",h=>wo(h)),Er("refs",h=>(h._x_refs_proxy||(h._x_refs_proxy=Je(Qo(h))),h._x_refs_proxy));function Qo(h){let C=[];return Ya(h,k=>{k._x_refs&&C.push(k._x_refs)}),C}var Ln={};function $s(h){return Ln[h]||(Ln[h]=0),++Ln[h]}function Zo(h,C){return Ya(h,k=>{if(k._x_ids&&k._x_ids[C])return!0})}function Pu(h,C){h._x_ids||(h._x_ids={}),h._x_ids[C]||(h._x_ids[C]=$s(C))}Er("id",(h,{cleanup:C})=>(k,N=null)=>{let U=`${k}${N?`-${N}`:""}`;return Us(h,U,C,()=>{let j=Zo(h,k),K=j?j._x_ids[k]:$s(k);return N?`${k}-${K}-${N}`:`${k}-${K}`})}),Ls((h,C)=>{h._x_id&&(C._x_id=h._x_id)});function Us(h,C,k,N){if(h._x_id||(h._x_id={}),h._x_id[C])return h._x_id[C];let U=N();return h._x_id[C]=U,k(()=>{delete h._x_id[C]}),U}Er("el",h=>h),Pl("Focus","focus","focus"),Pl("Persist","persist","persist");function Pl(h,C,k){Er(C,N=>en(`You can't use [$${C}] without first installing the "${h}" plugin here: https://alpinejs.dev/plugins/${k}`,N))}be("modelable",(h,{expression:C},{effect:k,evaluateLater:N,cleanup:U})=>{let j=N(C),K=()=>{let g;return j(y=>g=y),g},fe=N(`${C} = __placeholder`),Ce=g=>fe(()=>{},{scope:{__placeholder:g}}),Ye=K();Ce(Ye),queueMicrotask(()=>{if(!h._x_model)return;h._x_removeModelListeners.default();let g=h._x_model.get,y=h._x_model.set,w=Yo({get(){return g()},set(_){y(_)}},{get(){return K()},set(_){Ce(_)}});U(w)})}),be("teleport",(h,{modifiers:C,expression:k},{cleanup:N})=>{h.tagName.toLowerCase()!=="template"&&en("x-teleport can only be used on a <template> tag",h);let U=Fu(k),j=h.content.cloneNode(!0).firstElementChild;h._x_teleport=j,j._x_teleportBack=h,h.setAttribute("data-teleport-template",!0),j.setAttribute("data-teleport-target",!0),h._x_forwardEvents&&h._x_forwardEvents.forEach(fe=>{j.addEventListener(fe,Ce=>{Ce.stopPropagation(),h.dispatchEvent(new Ce.constructor(Ce.type,Ce))})}),xe(j,{},h);let K=(fe,Ce,Ye)=>{Ye.includes("prepend")?Ce.parentNode.insertBefore(fe,Ce):Ye.includes("append")?Ce.parentNode.insertBefore(fe,Ce.nextSibling):Ce.appendChild(fe)};We(()=>{K(j,U,C),Ui(()=>{$i(j)})()}),h._x_teleportPutBack=()=>{let fe=Fu(k);We(()=>{K(h._x_teleport,fe,C)})},N(()=>We(()=>{j.remove(),Qa(j)}))});var Bu=document.createElement("div");function Fu(h){let C=Ui(()=>document.querySelector(h),()=>Bu)();return C||en(`Cannot find x-teleport element for selector: "${h}"`),C}var Hu=()=>{};Hu.inline=(h,{modifiers:C},{cleanup:k})=>{C.includes("self")?h._x_ignoreSelf=!0:h._x_ignore=!0,k(()=>{C.includes("self")?delete h._x_ignoreSelf:delete h._x_ignore})},be("ignore",Hu),be("effect",Ui((h,{expression:C},{effect:k})=>{k(dr(h,C))}));function Bl(h,C,k,N){let U=h,j=Ce=>N(Ce),K={},fe=(Ce,Ye)=>g=>Ye(Ce,g);if(k.includes("dot")&&(C=Eo(C)),k.includes("camel")&&(C=Qc(C)),k.includes("passive")&&(K.passive=!0),k.includes("capture")&&(K.capture=!0),k.includes("window")&&(U=window),k.includes("document")&&(U=document),k.includes("debounce")){let Ce=k[k.indexOf("debounce")+1]||"invalid-wait",Ye=es(Ce.split("ms")[0])?Number(Ce.split("ms")[0]):250;j=Jo(j,Ye)}if(k.includes("throttle")){let Ce=k[k.indexOf("throttle")+1]||"invalid-wait",Ye=es(Ce.split("ms")[0])?Number(Ce.split("ms")[0]):250;j=Ll(j,Ye)}return k.includes("prevent")&&(j=fe(j,(Ce,Ye)=>{Ye.preventDefault(),Ce(Ye)})),k.includes("stop")&&(j=fe(j,(Ce,Ye)=>{Ye.stopPropagation(),Ce(Ye)})),k.includes("once")&&(j=fe(j,(Ce,Ye)=>{Ce(Ye),U.removeEventListener(C,j,K)})),(k.includes("away")||k.includes("outside"))&&(U=document,j=fe(j,(Ce,Ye)=>{h.contains(Ye.target)||Ye.target.isConnected!==!1&&(h.offsetWidth<1&&h.offsetHeight<1||h._x_isShown!==!1&&Ce(Ye))})),k.includes("self")&&(j=fe(j,(Ce,Ye)=>{Ye.target===h&&Ce(Ye)})),(Fl(C)||oa(C))&&(j=fe(j,(Ce,Ye)=>{zs(Ye,k)||Ce(Ye)})),U.addEventListener(C,j,K),()=>{U.removeEventListener(C,j,K)}}function Eo(h){return h.replace(/-/g,".")}function Qc(h){return h.toLowerCase().replace(/-(\w)/g,(C,k)=>k.toUpperCase())}function es(h){return!Array.isArray(h)&&!isNaN(h)}function js(h){return[" ","_"].includes(h)?h:h.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Fl(h){return["keydown","keyup"].includes(h)}function oa(h){return["contextmenu","click","mouse"].some(C=>h.includes(C))}function zs(h,C){let k=C.filter(j=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(j));if(k.includes("debounce")){let j=k.indexOf("debounce");k.splice(j,es((k[j+1]||"invalid-wait").split("ms")[0])?2:1)}if(k.includes("throttle")){let j=k.indexOf("throttle");k.splice(j,es((k[j+1]||"invalid-wait").split("ms")[0])?2:1)}if(k.length===0||k.length===1&&qu(h.key).includes(k[0]))return!1;const U=["ctrl","shift","alt","meta","cmd","super"].filter(j=>k.includes(j));return k=k.filter(j=>!U.includes(j)),!(U.length>0&&U.filter(K=>((K==="cmd"||K==="super")&&(K="meta"),h[`${K}Key`])).length===U.length&&(oa(h.type)||qu(h.key).includes(k[0])))}
719function qu(h){if(!h)return[];h=js(h);let C={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return C[h]=h,Object.keys(C).map(k=>{if(C[k]===h)return k}).filter(k=>k)}be("model",(h,{modifiers:C,expression:k},{effect:N,cleanup:U})=>{let j=h;C.includes("parent")&&(j=h.parentNode);let K=dr(j,k),fe;typeof k=="string"?fe=dr(j,`${k} = __placeholder`):typeof k=="function"&&typeof k()=="string"?fe=dr(j,`${k()} = __placeholder`):fe=()=>{};let Ce=()=>{let w;return K(_=>w=_),ql(w)?w.get():w},Ye=w=>{let _;K(z=>_=z),ql(_)?_.set(w):fe(()=>{},{scope:{__placeholder:w}})};typeof k=="string"&&h.type==="radio"&&We(()=>{h.hasAttribute("name")||h.setAttribute("name",k)});let g=h.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(h.type)||C.includes("lazy")?"change":"input",y=_a?()=>{}:Bl(h,g,C,w=>{Ye(Hl(h,C,w,Ce()))});if(C.includes("fill")&&([void 0,null,""].includes(Ce())||Ar(h)&&Array.isArray(Ce())||h.tagName.toLowerCase()==="select"&&h.multiple)&&Ye(Hl(h,C,{target:h},Ce())),h._x_removeModelListeners||(h._x_removeModelListeners={}),h._x_removeModelListeners.default=y,U(()=>h._x_removeModelListeners.default()),h.form){let w=Bl(h.form,"reset",[],_=>{Ea(()=>h._x_model&&h._x_model.set(Hl(h,C,{target:h},Ce())))});U(()=>w())}h._x_model={get(){return Ce()},set(w){Ye(w)}},h._x_forceModelUpdate=w=>{w===void 0&&typeof k=="string"&&k.match(/\./)&&(w=""),window.fromModel=!0,We(()=>Sa(h,"value",w)),delete window.fromModel},N(()=>{let w=Ce();C.includes("unintrusive")&&document.activeElement.isSameNode(h)||h._x_forceModelUpdate(w)})});function Hl(h,C,k,N){return We(()=>{if(k instanceof CustomEvent&&k.detail!==void 0)return k.detail!==null&&k.detail!==void 0?k.detail:k.target.value;if(Ar(h))if(Array.isArray(N)){let U=null;return C.includes("number")?U=ts(k.target.value):C.includes("boolean")?U=Rs(k.target.value):U=k.target.value,k.target.checked?N.includes(U)?N:N.concat([U]):N.filter(j=>!eo(j,U))}else return k.target.checked;else{if(h.tagName.toLowerCase()==="select"&&h.multiple)return C.includes("number")?Array.from(k.target.selectedOptions).map(U=>{let j=U.value||U.text;return ts(j)}):C.includes("boolean")?Array.from(k.target.selectedOptions).map(U=>{let j=U.value||U.text;return Rs(j)}):Array.from(k.target.selectedOptions).map(U=>U.value||U.text);{let U;return ji(h)?k.target.checked?U=k.target.value:U=N:U=k.target.value,C.includes("number")?ts(U):C.includes("boolean")?Rs(U):C.includes("trim")?U.trim():U}}})}function ts(h){let C=h?parseFloat(h):null;return En(C)?C:h}function eo(h,C){return h==C}function En(h){return!Array.isArray(h)&&!isNaN(h)}function ql(h){return h!==null&&typeof h=="object"&&typeof h.get=="function"&&typeof h.set=="function"}be("cloak",h=>queueMicrotask(()=>We(()=>h.removeAttribute(B("cloak"))))),Os(()=>`[${B("init")}]`),be("init",Ui((h,{expression:C},{evaluate:k})=>typeof C=="string"?!!C.trim()&&k(C,{},!1):k(C,{},!1))),be("text",(h,{expression:C},{effect:k,evaluateLater:N})=>{let U=N(C);k(()=>{U(j=>{We(()=>{h.textContent=j})})})}),be("html",(h,{expression:C},{effect:k,evaluateLater:N})=>{let U=N(C);k(()=>{U(j=>{We(()=>{h.innerHTML=j,h._x_ignoreSelf=!0,$i(h),delete h._x_ignoreSelf})})})}),Hr(Pt(":",rr(B("bind:"))));var $u=(h,{value:C,modifiers:k,expression:N,original:U},{effect:j,cleanup:K})=>{if(!C){let Ce={};Ru(Ce),dr(h,N)(g=>{Fs(h,g,U)},{scope:Ce});return}if(C==="key")return Zc(h,N);if(h._x_inlineBindings&&h._x_inlineBindings[C]&&h._x_inlineBindings[C].extract)return;let fe=dr(h,N);j(()=>fe(Ce=>{Ce===void 0&&typeof N=="string"&&N.match(/\./)&&(Ce=""),We(()=>Sa(h,C,Ce,k))})),K(()=>{h._x_undoAddedClasses&&h._x_undoAddedClasses(),h._x_undoAddedStyles&&h._x_undoAddedStyles()})};$u.inline=(h,{value:C,modifiers:k,expression:N})=>{C&&(h._x_inlineBindings||(h._x_inlineBindings={}),h._x_inlineBindings[C]={expression:N,extract:!1})},be("bind",$u);function Zc(h,C){h._x_keyExpression=C}wl(()=>`[${B("data")}]`),be("data",(h,{expression:C},{cleanup:k})=>{if(ef(h))return;C=C===""?"{}":C;let N={};ce(N,h);let U={};Co(U,N);let j=Tr(h,C,{scope:U});(j===void 0||j===!0)&&(j={}),ce(j,h);let K=ge(j);Vt(K);let fe=xe(h,K);K.init&&Tr(h,K.init),k(()=>{K.destroy&&Tr(h,K.destroy),fe()})}),Ls((h,C)=>{h._x_dataStack&&(C._x_dataStack=h._x_dataStack,C.setAttribute("data-has-alpine-state",!0))});function ef(h){return _a?Ds?!0:h.hasAttribute("data-has-alpine-state"):!1}be("show",(h,{modifiers:C,expression:k},{effect:N})=>{let U=dr(h,k);h._x_doHide||(h._x_doHide=()=>{We(()=>{h.style.setProperty("display","none",C.includes("important")?"important":void 0)})}),h._x_doShow||(h._x_doShow=()=>{We(()=>{h.style.length===1&&h.style.display==="none"?h.removeAttribute("style"):h.style.removeProperty("display")})});let j=()=>{h._x_doHide(),h._x_isShown=!1},K=()=>{h._x_doShow(),h._x_isShown=!0},fe=()=>setTimeout(K),Ce=Ko(y=>y?K():j(),y=>{typeof h._x_toggleAndCascadeWithTransitions=="function"?h._x_toggleAndCascadeWithTransitions(h,y,K,j):y?fe():j()}),Ye,g=!0;N(()=>U(y=>{!g&&y===Ye||(C.includes("immediate")&&(y?fe():j()),Ce(y),Ye=y,g=!1)}))}),be("for",(h,{expression:C},{effect:k,cleanup:N})=>{let U=Uu(C),j=dr(h,U.items),K=dr(h,h._x_keyExpression||"index");h._x_prevKeys=[],h._x_lookup={},k(()=>$l(h,U,j,K)),N(()=>
719{Object.values(h._x_lookup).forEach(fe=>We(()=>{Qa(fe),fe.remove()})),delete h._x_prevKeys,delete h._x_lookup})});function $l(h,C,k,N){let U=K=>typeof K=="object"&&!Array.isArray(K),j=h;k(K=>{Z(K)&&K>=0&&(K=Array.from(Array(K).keys(),se=>se+1)),K===void 0&&(K=[]);let fe=h._x_lookup,Ce=h._x_prevKeys,Ye=[],g=[];if(U(K))K=Object.entries(K).map(([se,he])=>{let me=Aa(C,he,se,K);N(Le=>{g.includes(Le)&&en("Duplicate key on x-for",h),g.push(Le)},{scope:{index:se,...me}}),Ye.push(me)});else for(let se=0;se<K.length;se++){let he=Aa(C,K[se],se,K);N(me=>{g.includes(me)&&en("Duplicate key on x-for",h),g.push(me)},{scope:{index:se,...he}}),Ye.push(he)}let y=[],w=[],_=[],z=[];for(let se=0;se<Ce.length;se++){let he=Ce[se];g.indexOf(he)===-1&&_.push(he)}Ce=Ce.filter(se=>!_.includes(se));let pe="template";for(let se=0;se<g.length;se++){let he=g[se],me=Ce.indexOf(he);if(me===-1)Ce.splice(se,0,he),y.push([pe,se]);else if(me!==se){let Le=Ce.splice(se,1)[0],Fe=Ce.splice(me-1,1)[0];Ce.splice(se,0,Fe),Ce.splice(me,0,Le),w.push([Le,Fe])}else z.push(he);pe=he}for(let se=0;se<_.length;se++){let he=_[se];he in fe&&(We(()=>{Qa(fe[he]),fe[he].remove()}),delete fe[he])}for(let se=0;se<w.length;se++){let[he,me]=w[se],Le=fe[he],Fe=fe[me],$t=document.createElement("div");We(()=>{Fe||en('x-for ":key" is undefined or invalid',j,me,fe),Fe.after($t),Le.after(Fe),Fe._x_currentIfEl&&Fe.after(Fe._x_currentIfEl),$t.before(Le),Le._x_currentIfEl&&Le.after(Le._x_currentIfEl),$t.remove()}),Fe._x_refreshXForScope(Ye[g.indexOf(me)])}for(let se=0;se<y.length;se++){let[he,me]=y[se],Le=he==="template"?j:fe[he];Le._x_currentIfEl&&(Le=Le._x_currentIfEl);let Fe=Ye[me],$t=g[me],or=document.importNode(j.content,!0).firstElementChild,_t=ge(Fe);xe(or,_t,j),or._x_refreshXForScope=cr=>{Object.entries(cr).forEach(([It,Gt])=>{_t[It]=Gt})},We(()=>{Le.after(or),Ui(()=>$i(or))()}),typeof $t=="object"&&en("x-for key cannot be an object, it must be a string or an integer",j),fe[$t]=or}for(let se=0;se<z.length;se++)fe[z[se]]._x_refreshXForScope(Ye[g.indexOf(z[se])]);j._x_prevKeys=g})}function Uu(h){let C=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,k=/^\s*\(|\)\s*$/g,N=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,U=h.match(N);if(!U)return;let j={};j.items=U[2].trim();let K=U[1].replace(k,"").trim(),fe=K.match(C);return fe?(j.item=K.replace(C,"").trim(),j.index=fe[1].trim(),fe[2]&&(j.collection=fe[2].trim())):j.item=K,j}function Aa(h,C,k,N){let U={};return/^\[.*\]$/.test(h.item)&&Array.isArray(C)?h.item.replace("[","").replace("]","").split(",").map(K=>K.trim()).forEach((K,fe)=>{U[K]=C[fe]}):/^\{.*\}$/.test(h.item)&&!Array.isArray(C)&&typeof C=="object"?h.item.replace("{","").replace("}","").split(",").map(K=>K.trim()).forEach(K=>{U[K]=C[K]}):U[h.item]=C,h.index&&(U[h.index]=k),h.collection&&(U[h.collection]=N),U}function Z(h){return!Array.isArray(h)&&!isNaN(h)}function ve(){}ve.inline=(h,{expression:C},{cleanup:k})=>{let N=wo(h);N._x_refs||(N._x_refs={}),N._x_refs[C]=h,k(()=>delete N._x_refs[C])},be("ref",ve),be("if",(h,{expression:C},{effect:k,cleanup:N})=>{h.tagName.toLowerCase()!=="template"&&en("x-if can only be used on a <template> tag",h);let U=dr(h,C),j=()=>{if(h._x_currentIfEl)return h._x_currentIfEl;let fe=h.content.cloneNode(!0).firstElementChild;return xe(fe,{},h),We(()=>{h.after(fe),Ui(()=>$i(fe))()}),h._x_currentIfEl=fe,h._x_undoIf=()=>{We(()=>{Qa(fe),fe.remove()}),delete h._x_currentIfEl},fe},K=()=>{h._x_undoIf&&(h._x_undoIf(),delete h._x_undoIf)};k(()=>U(fe=>{fe?j():K()})),N(()=>h._x_undoIf&&h._x_undoIf())}),be("id",(h,{expression:C},{evaluate:k})=>{k(C).forEach(U=>Pu(h,U))}),Ls((h,C)=>{h._x_ids&&(C._x_ids=h._x_ids)}),Hr(Pt("@",rr(B("on:")))),be("on",Ui((h,{value:C,modifiers:k,expression:N},{cleanup:U})=>{let j=N?dr(h,N):()=>{};h.tagName.toLowerCase()==="template"&&(h._x_forwardEvents||(h._x_forwardEvents=[]),h._x_forwardEvents.includes(C)||h._x_forwardEvents.push(C));let K=Bl(h,C,k,fe=>{j(()=>{},{scope:{$event:fe},params:[fe]})});U(()=>K())})),ue("Collapse","collapse","collapse"),ue("Intersect","intersect","intersect"),ue("Focus","trap","focus"),ue("Mask","mask","mask");function ue(h,C,k){be(C,N=>en(`You can't use [x-${C}] without first installing the "${h}" plugin here: https://alpinejs.dev/plugins/${k}`,N))}fi.setEvaluator(ui),fi.setRawEvaluator(le),fi.setReactivityEngine({reactive:Xo.reactive,effect:Xo.effect,release:Xo.stop,raw:Xo.toRaw});var tt=fi,At=tt}}),V1e=Ss({"node_modules/@alpinejs/collapse/dist/module.cjs.js"(t,e){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(b,x)=>{for(var T in x)r(b,T,{get:x[T],enumerable:!0})}
719,s=(b,x,T,S)=>{if(x&&typeof x=="object"||typeof x=="function")for(let M of i(x))!a.call(b,M)&&M!==T&&r(b,M,{get:()=>x[M],enumerable:!(S=n(x,M))||S.enumerable});return b},u=b=>s(r({},"__esModule",{value:!0}),b),f={};o(f,{collapse:()=>d,default:()=>m}),e.exports=u(f);function d(b){b.directive("collapse",x),x.inline=(T,{modifiers:S})=>{S.includes("min")&&(T._x_doShow=()=>{},T._x_doHide=()=>{})};function x(T,{modifiers:S}){let M=v(S,"duration",250)/1e3,L=v(S,"min",0),P=!S.includes("min");T._x_isShown||(T.style.height=`${L}px`),!T._x_isShown&&P&&(T.hidden=!0),T._x_isShown||(T.style.overflow="hidden");let A=(W,J)=>{let ee=b.setStyles(W,J);return J.height?()=>{}:ee},H={transitionProperty:"height",transitionDuration:`${M}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};T._x_transition={in(W=()=>{},J=()=>{}){P&&(T.hidden=!1),P&&(T.style.display=null);let ee=T.getBoundingClientRect().height;T.style.height="auto";let X=T.getBoundingClientRect().height;ee===X&&(ee=L),b.transition(T,b.setStyles,{during:H,start:{height:ee+"px"},end:{height:X+"px"}},()=>T._x_isShown=!0,()=>{Math.abs(T.getBoundingClientRect().height-X)<1&&(T.style.overflow=null)})},out(W=()=>{},J=()=>{}){let ee=T.getBoundingClientRect().height;b.transition(T,A,{during:H,start:{height:ee+"px"},end:{height:L+"px"}},()=>T.style.overflow="hidden",()=>{T._x_isShown=!1,T.style.height==`${L}px`&&P&&(T.style.display="none",T.hidden=!0)})}}}}function v(b,x,T){if(b.indexOf(x)===-1)return T;const S=b[b.indexOf(x)+1];if(!S)return T;if(x==="duration"){let M=S.match(/([0-9]+)ms/);if(M)return M[1]}if(x==="min"){let M=S.match(/([0-9]+)px/);if(M)return M[1]}return S}var m=d}}),G1e=Ss({"node_modules/@alpinejs/focus/dist/module.cjs.js"(t,e){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(J,ee)=>function(){return ee||(0,J[a(J)[0]])((ee={exports:{}}).exports,ee),ee.exports},f=(J,ee)=>{for(var X in ee)n(J,X,{get:ee[X],enumerable:!0})},d=(J,ee,X,ie)=>{if(ee&&typeof ee=="object"||typeof ee=="function")for(let ge of a(ee))!s.call(J,ge)&&ge!==X&&n(J,ge,{get:()=>ee[ge],enumerable:!(ie=i(ee,ge))||ie.enumerable});return J},v=(J,ee,X)=>(X=J!=null?r(o(J)):{},d(!J||!J.__esModule?n(X,"default",{value:J,enumerable:!0}):X,J)),m=J=>d(n({},"__esModule",{value:!0}),J),b=u({"node_modules/tabbable/dist/index.js"(J){Object.defineProperty(J,"__esModule",{value:!0});var ee=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],X=ee.join(","),ie=typeof Element>"u",ge=ie?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Y=!ie&&Element.prototype.getRootNode?function(We){return We.getRootNode()}:function(We){return We.ownerDocument},ne=function(ye,_e,rt){var et=Array.prototype.slice.apply(ye.querySelectorAll(X));return _e&&ge.call(ye,X)&&et.unshift(ye),et=et.filter(rt),et},Te=function We(ye,_e,rt){for(var et=[],yt=Array.from(ye);yt.length;){var Xe=yt.shift();if(Xe.tagName==="SLOT"){var xe=Xe.assignedElements(),De=xe.length?xe:Xe.children,Je=We(De,!0,rt);rt.flatten?et.push.apply(et,Je):et.push({scope:Xe,candidates:Je})}else{var wt=ge.call(Xe,X);wt&&rt.filter(Xe)&&(_e||!ye.includes(Xe))&&et.push(Xe);var xt=Xe.shadowRoot||typeof rt.getShadowRoot=="function"&&rt.getShadowRoot(Xe),Vt=!rt.shadowRootFilter||rt.shadowRootFilter(Xe);if(xt&&Vt){var lr=We(xt===!0?Xe.children:xt.children,!0,rt);rt.flatten?et.push.apply(et,lr):et.push({scope:Xe,candidates:lr})}else yt.unshift.apply(yt,Xe.children)}}return et},Be=function(ye,_e){return ye.tabIndex<0&&(_e||/^(AUDIO|VIDEO|DETAILS)$/.test(ye.tagName)||ye.isContentEditable)&&isNaN(parseInt(ye.getAttribute("tabindex"),10))?0:ye.tabIndex},He=function(ye,_e){return ye.tabIndex===_e.tabIndex?ye.documentOrder-_e.documentOrder:ye.tabIndex-_e.tabIndex},Re=function(ye){return ye.tagName==="INPUT"},Oe=function(ye){return Re(ye)&&ye.type==="hidden"},zt=function(ye){var _e=ye.tagName==="DETAILS"&&Array.prototype.slice.apply(ye.children).some(function(rt){return rt.tagName==="SUMMARY"});return _e},bt=function(ye,_e){for(var rt=0;rt<ye.length;rt++)if(ye[rt].checked&&ye[rt].form===_e)return ye[rt]},$e=function(ye){if(!ye.name)return!0;var _e=ye.form||Y(ye),rt=function(xe){return _e.querySelectorAll('input[type="radio"][name="'+xe+'"]')},et;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")et=rt(window.CSS.escape(ye.name));else try{et=rt(ye.name)}catch(Xe){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",Xe.message),!1}var yt=bt(et,ye.form);return!yt||yt===ye},qe=function(ye){return Re(ye)&&ye.type==="radio"},at=function(ye){return qe(ye)&&!$e(ye)},Ve=function(ye){var _e=ye.getBoundingClientRect(),rt=_e.width,et=_e.height;return rt===0&&et===0},Ae=function(ye,_e){var rt=_e.displayCheck,et=_e.getShadowRoot;if(getComputedStyle(ye).visibility==="hidden")return!0;var yt=ge.call(ye,"details>summary:first-of-type"),Xe=yt?ye.parentElement:ye;if(ge.call(Xe,"details:not([open]) *"))return!0;var xe=Y(ye).host,De=(xe==null?void 0:xe.ownerDocument.contains(xe))||ye.ownerDocument.contains(ye);if(!rt||rt==="full"){if(typeof et=="function"){for(var Je=ye;ye;){var wt=ye.parentElement,xt=Y(ye);if(wt&&!wt.shadowRoot&&et(wt)===!0)return Ve(ye);ye.assignedSlot?ye=ye.assignedSlot:!wt&&xt!==ye.ownerDocument?ye=xt.host:ye=wt}ye=Je}if(De)return!ye.getClientRects().length}else if(rt==="non-zero-area")return Ve(ye);return!1}
vendor: 6,035 bytes, line 719
719,Ne=function(ye){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(ye.tagName))for(var _e=ye.parentElement;_e;){if(_e.tagName==="FIELDSET"&&_e.disabled){for(var rt=0;rt<_e.children.length;rt++){var et=_e.children.item(rt);if(et.tagName==="LEGEND")return ge.call(_e,"fieldset[disabled] *")?!0:!et.contains(ye)}return!0}_e=_e.parentElement}return!1},Dt=function(ye,_e){return!(_e.disabled||Oe(_e)||Ae(_e,ye)||zt(_e)||Ne(_e))},Wt=function(ye,_e){return!(at(_e)||Be(_e)<0||!Dt(ye,_e))},Ht=function(ye){var _e=parseInt(ye.getAttribute("tabindex"),10);return!!(isNaN(_e)||_e>=0)},qt=function We(ye){var _e=[],rt=[];return ye.forEach(function(et,yt){var Xe=!!et.scope,xe=Xe?et.scope:et,De=Be(xe,Xe),Je=Xe?We(et.candidates):xe;De===0?Xe?_e.push.apply(_e,Je):_e.push(xe):rt.push({documentOrder:yt,tabIndex:De,item:et,isScope:Xe,content:Je})}),rt.sort(He).reduce(function(et,yt){return yt.isScope?et.push.apply(et,yt.content):et.push(yt.content),et},[]).concat(_e)},tr=function(ye,_e){_e=_e||{};var rt;return _e.getShadowRoot?rt=Te([ye],_e.includeContainer,{filter:Wt.bind(null,_e),flatten:!1,getShadowRoot:_e.getShadowRoot,shadowRootFilter:Ht}):rt=ne(ye,_e.includeContainer,Wt.bind(null,_e)),qt(rt)},ht=function(ye,_e){_e=_e||{};var rt;return _e.getShadowRoot?rt=Te([ye],_e.includeContainer,{filter:Dt.bind(null,_e),flatten:!0,getShadowRoot:_e.getShadowRoot}):rt=ne(ye,_e.includeContainer,Dt.bind(null,_e)),rt},br=function(ye,_e){if(_e=_e||{},!ye)throw new Error("No node provided");return ge.call(ye,X)===!1?!1:Wt(_e,ye)},kt=ee.concat("iframe").join(","),xr=function(ye,_e){if(_e=_e||{},!ye)throw new Error("No node provided");return ge.call(ye,kt)===!1?!1:Dt(_e,ye)};J.focusable=ht,J.isFocusable=xr,J.isTabbable=br,J.tabbable=tr}}),x=u({"node_modules/focus-trap/dist/focus-trap.js"(J){Object.defineProperty(J,"__esModule",{value:!0});var ee=b();function X($e,qe){var at=Object.keys($e);if(Object.getOwnPropertySymbols){var Ve=Object.getOwnPropertySymbols($e);qe&&(Ve=Ve.filter(function(Ae){return Object.getOwnPropertyDescriptor($e,Ae).enumerable})),at.push.apply(at,Ve)}return at}function ie($e){for(var qe=1;qe<arguments.length;qe++){var at=arguments[qe]!=null?arguments[qe]:{};qe%2?X(Object(at),!0).forEach(function(Ve){ge($e,Ve,at[Ve])}):Object.getOwnPropertyDescriptors?Object.defineProperties($e,Object.getOwnPropertyDescriptors(at)):X(Object(at)).forEach(function(Ve){Object.defineProperty($e,Ve,Object.getOwnPropertyDescriptor(at,Ve))})}return $e}function ge($e,qe,at){return qe in $e?Object.defineProperty($e,qe,{value:at,enumerable:!0,configurable:!0,writable:!0}):$e[qe]=at,$e}var Y=function(){var $e=[];return{activateTrap:function(at){if($e.length>0){var Ve=$e[$e.length-1];Ve!==at&&Ve.pause()}var Ae=$e.indexOf(at);Ae===-1||$e.splice(Ae,1),$e.push(at)},deactivateTrap:function(at){var Ve=$e.indexOf(at);Ve!==-1&&$e.splice(Ve,1),$e.length>0&&$e[$e.length-1].unpause()}}}(),ne=function(qe){return qe.tagName&&qe.tagName.toLowerCase()==="input"&&typeof qe.select=="function"},Te=function(qe){return qe.key==="Escape"||qe.key==="Esc"||qe.keyCode===27},Be=function(qe){return qe.key==="Tab"||qe.keyCode===9},He=function(qe){return setTimeout(qe,0)},Re=function(qe,at){var Ve=-1;return qe.every(function(Ae,Ne){return at(Ae)?(Ve=Ne,!1):!0}),Ve},Oe=function(qe){for(var at=arguments.length,Ve=new Array(at>1?at-1:0),Ae=1;Ae<at;Ae++)Ve[Ae-1]=arguments[Ae];return typeof qe=="function"?qe.apply(void 0,Ve):qe},zt=function(qe){return qe.target.shadowRoot&&typeof qe.composedPath=="function"?qe.composedPath()[0]:qe.target},bt=function(qe,at){var Ve=(at==null?void 0:at.document)||document,Ae=ie({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},at),Ne={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},Dt,Wt=function(xe,De,Je){return xe&&xe[De]!==void 0?xe[De]:Ae[Je||De]},Ht=function(xe){return Ne.containerGroups.findIndex(function(De){var Je=De.container,wt=De.tabbableNodes;return Je.contains(xe)||wt.find(function(xt){return xt===xe})})},qt=function(xe){var De=Ae[xe];if(typeof De=="function"){for(var Je=arguments.length,wt=new Array(Je>1?Je-1:0),xt=1;xt<Je;xt++)wt[xt-1]=arguments[xt];De=De.apply(void 0,wt)}if(De===!0&&(De=void 0),!De){if(De===void 0||De===!1)return De;throw new Error("`".concat(xe,"` was specified but was not a node, or did not return a node"))}var Vt=De;if(typeof De=="string"&&(Vt=Ve.querySelector(De),!Vt))throw new Error("`".concat(xe,"` as selector refers to no known node"));return Vt},tr=function(){var xe=qt("initialFocus");if(xe===!1)return!1;if(xe===void 0)if(Ht(Ve.activeElement)>=0)xe=Ve.activeElement;else{var De=Ne.tabbableGroups[0],Je=De&&De.firstTabbableNode;xe=Je||qt("fallbackFocus")}if(!xe)throw new Error("Your focus-trap needs to have at least one focusable element");return xe},ht=function(){if(Ne.containerGroups=Ne.containers.map(function(xe){var De=ee.tabbable(xe,Ae.tabbableOptions),Je=ee.focusable(xe,Ae.tabbableOptions);return{container:xe,tabbableNodes:De,focusableNodes:Je,firstTabbableNode:De.length>0?De[0]:null,lastTabbableNode:De.length>0?De[De.length-1]:null,nextTabbableNode:function(xt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,lr=Je.findIndex(function(jr){return jr===xt});if(!(lr<0))return Vt?Je.slice(lr+1).find(function(jr){return ee.isTabbable(jr,Ae.tabbableOptions)}):Je.slice(0,lr).reverse().find(function(jr){return ee.isTabbable(jr,Ae.tabbableOptions)})}}}),Ne.tabbableGroups=Ne.containerGroups.filter(function(xe){return xe.tabbableNodes.length>0}),Ne.tabbableGroups.length<=0&&!qt("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},br=function Xe(xe){if(xe!==!1&&xe!==Ve.activeElement){if(!xe||!xe.focus){Xe(tr());return}xe.focus({preventScroll:!!Ae.preventScroll}),Ne.mostRecentlyFocusedNode=xe,ne(xe)&&xe.select()}},kt=function(xe){var De=qt("setReturnFocus",xe);return De||(De===!1?!1:xe)},xr=function(xe){var De=zt(xe);
719if(!(Ht(De)>=0)){if(Oe(Ae.clickOutsideDeactivates,xe)){Dt.deactivate({returnFocus:Ae.returnFocusOnDeactivate&&!ee.isFocusable(De,Ae.tabbableOptions)});return}Oe(Ae.allowOutsideClick,xe)||xe.preventDefault()}},We=function(xe){var De=zt(xe),Je=Ht(De)>=0;Je||De instanceof Document?Je&&(Ne.mostRecentlyFocusedNode=De):(xe.stopImmediatePropagation(),br(Ne.mostRecentlyFocusedNode||tr()))},ye=function(xe){var De=zt(xe);ht();var Je=null;if(Ne.tabbableGroups.length>0){var wt=Ht(De),xt=wt>=0?Ne.containerGroups[wt]:void 0;if(wt<0)xe.shiftKey?Je=Ne.tabbableGroups[Ne.tabbableGroups.length-1].lastTabbableNode:Je=Ne.tabbableGroups[0].firstTabbableNode;else if(xe.shiftKey){var Vt=Re(Ne.tabbableGroups,function(ce){var Ke=ce.firstTabbableNode;return De===Ke});if(Vt<0&&(xt.container===De||ee.isFocusable(De,Ae.tabbableOptions)&&!ee.isTabbable(De,Ae.tabbableOptions)&&!xt.nextTabbableNode(De,!1))&&(Vt=wt),Vt>=0){var lr=Vt===0?Ne.tabbableGroups.length-1:Vt-1,jr=Ne.tabbableGroups[lr];Je=jr.lastTabbableNode}}else{var Cr=Re(Ne.tabbableGroups,function(ce){var Ke=ce.lastTabbableNode;return De===Ke});if(Cr<0&&(xt.container===De||ee.isFocusable(De,Ae.tabbableOptions)&&!ee.isTabbable(De,Ae.tabbableOptions)&&!xt.nextTabbableNode(De))&&(Cr=wt),Cr>=0){var hn=Cr===Ne.tabbableGroups.length-1?0:Cr+1,Er=Ne.tabbableGroups[hn];Je=Er.firstTabbableNode}}}else Je=qt("fallbackFocus");Je&&(xe.preventDefault(),br(Je))},_e=function(xe){if(Te(xe)&&Oe(Ae.escapeDeactivates,xe)!==!1){xe.preventDefault(),Dt.deactivate();return}if(Be(xe)){ye(xe);return}},rt=function(xe){var De=zt(xe);Ht(De)>=0||Oe(Ae.clickOutsideDeactivates,xe)||Oe(Ae.allowOutsideClick,xe)||(xe.preventDefault(),xe.stopImmediatePropagation())},et=function(){if(Ne.active)return Y.activateTrap(Dt),Ne.delayInitialFocusTimer=Ae.delayInitialFocus?He(function(){br(tr())}):br(tr()),Ve.addEventListener("focusin",We,!0),Ve.addEventListener("mousedown",xr,{capture:!0,passive:!1}),Ve.addEventListener("touchstart",xr,{capture:!0,passive:!1}),Ve.addEventListener("click",rt,{capture:!0,passive:!1}),Ve.addEventListener("keydown",_e,{capture:!0,passive:!1}),Dt},yt=function(){if(Ne.active)return Ve.removeEventListener("focusin",We,!0),Ve.removeEventListener("mousedown",xr,!0),Ve.removeEventListener("touchstart",xr,!0),Ve.removeEventListener("click",rt,!0),Ve.removeEventListener("keydown",_e,!0),Dt};return Dt={get active(){return Ne.active},get paused(){return Ne.paused},activate:function(xe){if(Ne.active)return this;var De=Wt(xe,"onActivate"),Je=Wt(xe,"onPostActivate"),wt=Wt(xe,"checkCanFocusTrap");wt||ht(),Ne.active=!0,Ne.paused=!1,Ne.nodeFocusedBeforeActivation=Ve.activeElement,De&&De();var xt=function(){wt&&ht(),et(),Je&&Je()};return wt?(wt(Ne.containers.concat()).then(xt,xt),this):(xt(),this)},deactivate:function(xe){if(!Ne.active)return this;var De=ie({onDeactivate:Ae.onDeactivate,onPostDeactivate:Ae.onPostDeactivate,checkCanReturnFocus:Ae.checkCanReturnFocus},xe);clearTimeout(Ne.delayInitialFocusTimer),Ne.delayInitialFocusTimer=void 0,yt(),Ne.active=!1,Ne.paused=!1,Y.deactivateTrap(Dt);var Je=Wt(De,"onDeactivate"),wt=Wt(De,"onPostDeactivate"),xt=Wt(De,"checkCanReturnFocus"),Vt=Wt(De,"returnFocus","returnFocusOnDeactivate");Je&&Je();var lr=function(){He(function(){Vt&&br(kt(Ne.nodeFocusedBeforeActivation)),wt&&wt()})};return Vt&&xt?(xt(kt(Ne.nodeFocusedBeforeActivation)).then(lr,lr),this):(lr(),this)},pause:function(){return Ne.paused||!Ne.active?this:(Ne.paused=!0,yt(),this)},unpause:function(){return!Ne.paused||!Ne.active?this:(Ne.paused=!1,ht(),et(),this)},updateContainerElements:function(xe){var De=[].concat(xe).filter(
719Boolean);return Ne.containers=De.map(function(Je){return typeof Je=="string"?Ve.querySelector(Je):Je}),Ne.active&&ht(),this}},Dt.updateContainerElements(qe),Dt};J.createFocusTrap=bt}}),T={};f(T,{default:()=>W,focus:()=>L}),e.exports=m(T);var S=v(x()),M=v(b());function L(J){let ee,X;window.addEventListener("focusin",()=>{ee=X,X=document.activeElement}),J.magic("focus",ie=>{let ge=ie;return{__noscroll:!1,__wrapAround:!1,within(Y){return ge=Y,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(Y){return(0,M.isFocusable)(Y)},previouslyFocused(){return ee},lastFocused(){return ee},focused(){return X},focusables(){return Array.isArray(ge)?ge:(0,M.focusable)(ge,{displayCheck:"none"})},all(){return this.focusables()},isFirst(Y){let ne=this.all();return ne[0]&&ne[0].isSameNode(Y)},isLast(Y){let ne=this.all();return ne.length&&ne.slice(-1)[0].isSameNode(Y)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let Y=this.all(),ne=document.activeElement;if(Y.indexOf(ne)!==-1)return this.__wrapAround&&Y.indexOf(ne)===Y.length-1?Y[0]:Y[Y.indexOf(ne)+1]},getPrevious(){let Y=this.all(),ne=document.activeElement;if(Y.indexOf(ne)!==-1)return this.__wrapAround&&Y.indexOf(ne)===0?Y.slice(-1)[0]:Y[Y.indexOf(ne)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(Y){Y&&setTimeout(()=>{Y.hasAttribute("tabindex")||Y.setAttribute("tabindex","0"),Y.focus({preventScroll:this.__noscroll})})}}}),J.directive("trap",J.skipDuringClone((ie,{expression:ge,modifiers:Y},{effect:ne,evaluateLater:Te,cleanup:Be})=>{let He=Te(ge),Re=!1,Oe={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>ie},zt=()=>{};if(Y.includes("noautofocus"))Oe.initialFocus=!1;else{let at=ie.querySelector("[autofocus]");at&&(Oe.initialFocus=at)}Y.includes("inert")&&(Oe.onPostActivate=()=>{J.nextTick(()=>{zt=P(ie)})});let bt=(0,S.createFocusTrap)(ie,Oe),$e=()=>{};const qe=()=>{zt(),zt=()=>{},$e(),$e=()=>{},bt.deactivate({returnFocus:!Y.includes("noreturn")})};ne(()=>He(at=>{Re!==at&&(at&&!Re&&(Y.includes("noscroll")&&($e=H()),setTimeout(()=>{bt.activate()},15)),!at&&Re&&qe(),Re=!!at)})),Be(qe)},(ie,{expression:ge,modifiers:Y},{evaluate:ne})=>{Y.includes("inert")&&ne(ge)&&P(ie)}))}function P(J){let ee=[];return A(J,X=>{let ie=X.hasAttribute("aria-hidden");X.setAttribute("aria-hidden","true"),ee.push(()=>ie||X.removeAttribute("aria-hidden"))}),()=>{for(;ee.length;)ee.pop()()}}function A(J,ee){J.isSameNode(document.body)||!J.parentNode||Array.from(J.parentNode.children).forEach(X=>{X.isSameNode(J)?A(J.parentNode,ee):ee(X)})}function H(){let J=document.documentElement.style.overflow,ee=document.documentElement.style.paddingRight,X=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${X}px`,()=>{document.documentElement.style.overflow=J,document.documentElement.style.paddingRight=ee}}var W=L}}),K1e=Ss({"node_modules/@alpinejs/intersect/dist/module.cjs.js"(t,e){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(T,S)=>{for(var M in S)r(T,M,{get:S[M],enumerable:!0})},s=(T,S,M,L)=>{if(S&&typeof S=="object"||typeof S=="function")for(let P of i(S))!a.call(T,P)&&P!==M&&r(T,P,{get:()=>S[P],enumerable:!(L=n(S,P))||L.enumerable});return T},u=T=>s(r({},"__esModule",{value:!0}),T),f={};o(f,{default:()=>x,intersect:()=>d}),e.exports=u(f);function d(T){T.directive("intersect",T.skipDuringClone((S,{value:M,expression:L,modifiers:P},{evaluateLater:A,cleanup:H})=>{let W=A(L),J={rootMargin:b(P),threshold:v(P)},ee=new IntersectionObserver(X=>{X.forEach(ie=>{ie.isIntersecting!==(M==="leave")&&(W(),P.includes("once")&&ee.disconnect())})},J);ee.observe(S),H(()=>{ee.disconnect()})}))}function v(T){if(T.includes("full"))return .99;if(T.includes("half"))return .5;if(!T.includes("threshold"))return 0;let S=T[T.indexOf("threshold")+1];return S==="100"?1:S==="0"?0:+`.${S}`}function m(T){let S=T.match(/^(-?[0-9]+)(px|%)?$/);return S?S[1]+(S[2]||"px"):void 0}function b(T){const S="margin",M="0px 0px 0px 0px",L=T.indexOf(S);if(L===-1)return M;let P=[];for(let A=1;A<5;A++)P.push(m(T[L+A]||""));return P=P.filter(A=>A!==void 0),P.length?P.join(" ").trim():M}var x=d}}),J1e=Ss({"node_modules/@alpinejs/resize/dist/module.cjs.js"(t,e){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(M,L)=>{for(var P in L)r(M,P,{get:L[P],enumerable:!0})},s=(M,L,P,A)=>{if(L&&typeof L=="object"||typeof L=="function")for(let H of i(L))!a.call(M,H)&&H!==P&&r(M,H,{get:()=>
719L[H],enumerable:!(A=n(L,H))||A.enumerable});return M},u=M=>s(r({},"__esModule",{value:!0}),M),f={};o(f,{default:()=>S,resize:()=>d}),e.exports=u(f);function d(M){M.directive("resize",M.skipDuringClone((L,{value:P,expression:A,modifiers:H},{evaluateLater:W,cleanup:J})=>{let ee=W(A),X=(ge,Y)=>{ee(()=>{},{scope:{$width:ge,$height:Y}})},ie=H.includes("document")?x(X):v(L,X);J(()=>ie())}))}function v(M,L){let P=new ResizeObserver(A=>{let[H,W]=T(A);L(H,W)});return P.observe(M),()=>P.disconnect()}var m,b=new Set;function x(M){return b.add(M),m||(m=new ResizeObserver(L=>{let[P,A]=T(L);b.forEach(H=>H(P,A))}),m.observe(document.documentElement)),()=>{b.delete(M)}}function T(M){let L,P;for(let A of M)L=A.borderBoxSize[0].inlineSize,P=A.borderBoxSize[0].blockSize;return[L,P]}var S=d}}),Y1e=Ss({"node_modules/@alpinejs/anchor/dist/module.cjs.js"(t,e){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(F,G)=>{for(var le in G)r(F,le,{get:G[le],enumerable:!0})},s=(F,G,le,Q)=>{if(G&&typeof G=="object"||typeof G=="function")for(let B of i(G))!a.call(F,B)&&B!==le&&r(F,B,{get:()=>G[B],enumerable:!(Q=n(G,B))||Q.enumerable});return F},u=F=>s(r({},"__esModule",{value:!0}),F),f={};o(f,{anchor:()=>Ga,default:()=>wa}),e.exports=u(f);var d=Math.min,v=Math.max,m=Math.round,b=Math.floor,x=F=>({x:F,y:F}),T={left:"right",right:"left",bottom:"top",top:"bottom"},S={start:"end",end:"start"};function M(F,G,le){return v(F,d(G,le))}function L(F,G){return typeof F=="function"?F(G):F}function P(F){return F.split("-")[0]}function A(F){return F.split("-")[1]}function H(F){return F==="x"?"y":"x"}function W(F){return F==="y"?"height":"width"}function J(F){return["top","bottom"].includes(P(F))?"y":"x"}function ee(F){return H(J(F))}function X(F,G,le){le===void 0&&(le=!1);const Q=A(F),B=ee(F),te=W(B);let oe=B==="x"?Q===(le?"end":"start")?"right":"left":Q==="start"?"bottom":"top";return G.reference[te]>G.floating[te]&&(oe=Te(oe)),[oe,Te(oe)]}function ie(F){const G=Te(F);return[ge(F),G,ge(G)]}function ge(F){return F.replace(/start|end/g,G=>S[G])}function Y(F,G,le){const Q=["left","right"],B=["right","left"],te=["top","bottom"],oe=["bottom","top"];switch(F){case"top":case"bottom":return le?G?B:Q:G?Q:B;case"left":case"right":return G?te:oe;default:return[]}}function ne(F,G,le,Q){const B=A(F);let te=Y(P(F),le==="start",Q);return B&&(te=te.map(oe=>oe+"-"+B),G&&(te=te.concat(te.map(ge)))),te}function Te(F){return F.replace(/left|right|bottom|top/g,G=>T[G])}function Be(F){return{top:0,right:0,bottom:0,left:0,...F}}function He(F){return typeof F!="number"?Be(F):{top:F,right:F,bottom:F,left:F}}function Re(F){return{...F,top:F.y,left:F.x,right:F.x+F.width,bottom:F.y+F.height}}function Oe(F,G,le){let{reference:Q,floating:B}=F;const te=J(G),oe=ee(G),be=W(oe),Ue=P(G),je=te==="y",ut=Q.x+Q.width/2-B.width/2,vt=Q.y+Q.height/2-B.height/2,Ot=Q[be]/2-B[be]/2;let mt;switch(Ue){case"top":mt={x:ut,y:Q.y-B.height};break;case"bottom":mt={x:ut,y:Q.y+Q.height};break;case"right":mt={x:Q.x+Q.width,y:vt};break;case"left":mt={x:Q.x-B.width,y:vt};break;default:mt={x:Q.x,y:Q.y}}switch(A(G)){case"start":mt[oe]-=Ot*(le&&je?-1:1);break;case"end":mt[oe]+=Ot*(le&&je?-1:1);break}return mt}var zt=async(F,G,le)=>{const{placement:Q="bottom",strategy:B="absolute",middleware:te=[],platform:oe}=le,be=te.filter(Boolean),Ue=await(oe.isRTL==null?void 0:oe.isRTL(G));let je=await oe.getElementRects({reference:F,floating:G,strategy:B}),{x:ut,y:vt}=Oe(je,Q,Ue),Ot=Q,mt={},Mt=0;for(let Lt=0;Lt<be.length;Lt++){const{name:Pr,fn:Pt}=be[Lt],{x:rr,y:Or,data:vn,reset:Hr}=await Pt({x:ut,y:vt,initialPlacement:Q,placement:Ot,strategy:B,middlewareData:mt,rects:je,platform:oe,elements:{reference:F,floating:G}});if(ut=rr??ut,vt=Or??vt,mt={...mt,[Pr]:{...mt[Pr],...vn}},Hr&&Mt<=50){Mt++,typeof Hr=="object"&&(Hr.placement&&(Ot=Hr.placement),Hr.rects&&(je=Hr.rects===!0?await oe.getElementRects({reference:F,floating:G,strategy:B}):Hr.rects),{x:ut,y:vt}=Oe(je,Ot,Ue)),Lt=-1;continue}}return{x:ut,y:vt,placement:Ot,strategy:B,middlewareData:mt}};async function bt(F,G){var le;G===void 0&&(G={});const{x:Q,y:B,platform:te,rects:oe,elements:be,strategy:Ue}=F,{boundary:je="clippingAncestors",rootBoundary:ut="viewport",elementContext:vt="floating",altBoundary:Ot=!1,padding:mt=0}=L(G,F),Mt=He(mt),Pr=be[Ot?vt==="floating"?"reference":"floating":vt],Pt=Re(await te.getClippingRect
vendor: 9,499 bytes, line 719
719({element:(le=await(te.isElement==null?void 0:te.isElement(Pr)))==null||le?Pr:Pr.contextElement||await(te.getDocumentElement==null?void 0:te.getDocumentElement(be.floating)),boundary:je,rootBoundary:ut,strategy:Ue})),rr=vt==="floating"?{...oe.floating,x:Q,y:B}:oe.reference,Or=await(te.getOffsetParent==null?void 0:te.getOffsetParent(be.floating)),vn=await(te.isElement==null?void 0:te.isElement(Or))?await(te.getScale==null?void 0:te.getScale(Or))||{x:1,y:1}:{x:1,y:1},Hr=Re(te.convertOffsetParentRelativeRectToViewportRelativeRect?await te.convertOffsetParentRelativeRectToViewportRelativeRect({rect:rr,offsetParent:Or,strategy:Ue}):rr);return{top:(Pt.top-Hr.top+Mt.top)/vn.y,bottom:(Hr.bottom-Pt.bottom+Mt.bottom)/vn.y,left:(Pt.left-Hr.left+Mt.left)/vn.x,right:(Hr.right-Pt.right+Mt.right)/vn.x}}var $e=function(F){return F===void 0&&(F={}),{name:"flip",options:F,async fn(G){var le,Q;const{placement:B,middlewareData:te,rects:oe,initialPlacement:be,platform:Ue,elements:je}=G,{mainAxis:ut=!0,crossAxis:vt=!0,fallbackPlacements:Ot,fallbackStrategy:mt="bestFit",fallbackAxisSideDirection:Mt="none",flipAlignment:Lt=!0,...Pr}=L(F,G);if((le=te.arrow)!=null&&le.alignmentOffset)return{};const Pt=P(B),rr=P(be)===be,Or=await(Ue.isRTL==null?void 0:Ue.isRTL(je.floating)),vn=Ot||(rr||!Lt?[Te(be)]:ie(be));!Ot&&Mt!=="none"&&vn.push(...ne(be,Lt,Mt,Or));const Hr=[be,...vn],Ti=await bt(G,Pr),xa=[];let Ka=((Q=te.flip)==null?void 0:Q.overflows)||[];if(ut&&xa.push(Ti[Pt]),vt){const $n=X(B,oe,Or);xa.push(Ti[$n[0]],Ti[$n[1]])}if(Ka=[...Ka,{placement:B,overflows:xa}],!xa.every($n=>$n<=0)){var bo,_i;const $n=(((bo=te.flip)==null?void 0:bo.index)||0)+1,Si=Hr[$n];if(Si)return{data:{index:$n,overflows:Ka},reset:{placement:Si}};let en=(_i=Ka.filter(ki=>ki.overflows[0]<=0).sort((ki,Ca)=>ki.overflows[1]-Ca.overflows[1])[0])==null?void 0:_i.placement;if(!en)switch(mt){case"bestFit":{var ks;const ki=(ks=Ka.map(Ca=>[Ca.placement,Ca.overflows.filter(qi=>qi>0).reduce((qi,Ja)=>qi+Ja,0)]).sort((Ca,qi)=>Ca[1]-qi[1])[0])==null?void 0:ks[0];ki&&(en=ki);break}case"initialPlacement":en=be;break}if(B!==en)return{reset:{placement:en}}}return{}}}};async function qe(F,G){const{placement:le,platform:Q,elements:B}=F,te=await(Q.isRTL==null?void 0:Q.isRTL(B.floating)),oe=P(le),be=A(le),Ue=J(le)==="y",je=["left","top"].includes(oe)?-1:1,ut=te&&Ue?-1:1,vt=L(G,F);let{mainAxis:Ot,crossAxis:mt,alignmentAxis:Mt}=typeof vt=="number"?{mainAxis:vt,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...vt};return be&&typeof Mt=="number"&&(mt=be==="end"?Mt*-1:Mt),Ue?{x:mt*ut,y:Ot*je}:{x:Ot*je,y:mt*ut}}var at=function(F){return F===void 0&&(F=0),{name:"offset",options:F,async fn(G){const{x:le,y:Q}=G,B=await qe(G,F);return{x:le+B.x,y:Q+B.y,data:B}}}},Ve=function(F){return F===void 0&&(F={}),{name:"shift",options:F,async fn(G){const{x:le,y:Q,placement:B}=G,{mainAxis:te=!0,crossAxis:oe=!1,limiter:be={fn:Pr=>{let{x:Pt,y:rr}=Pr;return{x:Pt,y:rr}}},...Ue}=L(F,G),je={x:le,y:Q},ut=await bt(G,Ue),vt=J(P(B)),Ot=H(vt);let mt=je[Ot],Mt=je[vt];if(te){const Pr=Ot==="y"?"top":"left",Pt=Ot==="y"?"bottom":"right",rr=mt+ut[Pr],Or=mt-ut[Pt];mt=M(rr,mt,Or)}if(oe){const Pr=vt==="y"?"top":"left",Pt=vt==="y"?"bottom":"right",rr=Mt+ut[Pr],Or=Mt-ut[Pt];Mt=M(rr,Mt,Or)}const Lt=be.fn({...G,[Ot]:mt,[vt]:Mt});return{...Lt,data:{x:Lt.x-le,y:Lt.y-Q}}}}};function Ae(F){return Wt(F)?(F.nodeName||"").toLowerCase():"#document"}function Ne(F){var G;return(F==null||(G=F.ownerDocument)==null?void 0:G.defaultView)||window}function Dt(F){var G;return(G=(Wt(F)?F.ownerDocument:F.document)||window.document)==null?void 0:G.documentElement}function Wt(F){return F instanceof Node||F instanceof Ne(F).Node}function Ht(F){return F instanceof Element||F instanceof Ne(F).Element}function qt(F){return F instanceof HTMLElement||F instanceof Ne(F).HTMLElement}function tr(F){return typeof ShadowRoot>"u"?!1:F instanceof ShadowRoot||F instanceof Ne(F).ShadowRoot}function ht(F){const{overflow:G,overflowX:le,overflowY:Q,display:B}=_e(F);return/auto|scroll|overlay|hidden|clip/.test(G+Q+le)&&!["inline","contents"].includes(B)}function br(F){return["table","td","th"].includes(Ae(F))}function kt(F){const G=We(),le=_e(F);return le.transform!=="none"||le.perspective!=="none"||(le.containerType?le.containerType!=="normal":!1)||!G&&(le.backdropFilter?le.backdropFilter!=="none":!1)||!G&&(le.filter?le.filter!=="none":!1)||["transform","perspective","filter"].some(Q=>(le.willChange||"").includes(Q))||["paint","layout","strict","content"].some(Q=>(le.contain||"").includes(Q))}function xr(F){let G=et(F);for(;qt(G)&&!ye(G);){if(kt(G))return G;G=et(G)}return null}function We(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ye(F){return["html","body","#document"].includes(Ae(F))}function _e(F){return Ne(F).getComputedStyle(F)}function rt(F){return Ht(F)?{scrollLeft:F.scrollLeft,scrollTop:F.scrollTop}:{scrollLeft:F.pageXOffset,scrollTop:F.pageYOffset}}function et(F){if(Ae(F)==="html")return F;const G=F.assignedSlot||F.parentNode||tr(F)&&F.host||Dt(F);return tr(G)?G.host:G}function yt(F){const G=et(F);return ye(G)?F.ownerDocument?F.ownerDocument.body:F.body:qt(G)&&ht(G)?G:yt(G)}function Xe(F,G,le){var Q;G===void 0&&(G=[]),le===void 0&&(le=!0);const B=yt(F),te=B===((Q=F.ownerDocument)==null?void 0:Q.body),oe=Ne(B);return te?G.concat(oe,oe.visualViewport||[],ht(B)?B:[],oe.frameElement&&le?Xe(oe.frameElement):[]):G.concat(B,Xe(B,[],le))}function xe(F){const G=_e(F);let le=parseFloat(G.width)||0,Q=parseFloat(G.height)||0;const B=qt(F),te=B?F.offsetWidth:le,oe=B?F.offsetHeight:Q,be=m(le)!==te||m(Q)!==oe;return be&&(le=te,Q=oe),{width:le,height:Q,$:be}}function De(F){return Ht(F)?F:F.contextElement}function Je(F){const G=De(F);if(!qt(G))return x(1);const le=G.getBoundingClientRect(),{width:Q,height:B,$:te}=xe(G);let oe=(te?m(le.width):le.width)/Q,be=(te?m(le.height):le.height)/B;return(!oe||!Number.isFinite(oe))&&(oe=1),(!be||!Number.isFinite(be))&&(be=1),{x:oe,y:be}}var wt=x(0);function xt(F){const G=Ne(F);return!We()||!G.visualViewport?wt:{x:G.visualViewport.offsetLeft,y:G.visualViewport.offsetTop}}function Vt(F,G,le){return G===void 0&&(G=!1),!le||G&&le!==Ne(F)?!1:G}function lr(F,G,le,Q){G===void 0&&(G=!1),le===void 0&&(le=!1);const B=F.getBoundingClientRect(),te=De(F);let oe=x(1);G&&(Q?Ht(Q)&&(oe=Je(Q)):oe=Je(F));const be=Vt(te,le,Q)?xt(te):x(0);let Ue=(B.left+be.x)/oe.x,je=(B.top+be.y)/oe.y,ut=B.width/oe.x,vt=B.height/oe.y;if(te){const Ot=Ne(te),mt=Q&&Ht(Q)?Ne(Q):Q;let Mt=Ot.frameElement;for(;Mt&&Q&&mt!==Ot;){const Lt=Je(Mt),Pr=Mt.getBoundingClientRect(),Pt=_e(Mt),rr=Pr.left+(Mt.clientLeft+parseFloat(Pt.paddingLeft))*Lt.x,Or=Pr.top+(Mt.clientTop+parseFloat(Pt.paddingTop))*Lt.y;Ue*=Lt.x,je*=Lt.y,ut*=Lt.x,vt*=Lt.y,Ue+=rr,je+=Or,Mt=Ne(Mt).frameElement}}return Re({width:ut,height:vt,x:Ue,y:je})}function jr(F){let{rect:G,offsetParent:le,strategy:Q}=F;const B=qt(le),te=Dt(le);if(le===te)return G;let oe={scrollLeft:0,scrollTop:0},be=x(1);const Ue=x(0);if((B||!B&&Q!=="fixed")&&((Ae(le)!=="body"||ht(te))&&(oe=rt(le)),qt(le))){const je=lr(le);be=Je(le),Ue.x=je.x+le.clientLeft,Ue.y=je.y+le.clientTop}return{width:G.width*be.x,height:G.height*be.y,x:G.x*be.x-oe.scrollLeft*be.x+Ue.x,y:G.y*be.y-oe.scrollTop*be.y+Ue.y}}function Cr(F){return Array.from(F.getClientRects())}function hn(F){return lr(Dt(F)).left+rt(F).scrollLeft}function Er(F){const G=Dt(F),le=rt(F),Q=F.ownerDocument.body,B=v(G.scrollWidth,G.clientWidth,Q.scrollWidth,Q.clientWidth),te=v(G.scrollHeight,G.clientHeight,Q.scrollHeight,Q.clientHeight);let oe=-le.scrollLeft+hn(F);const be=-le.scrollTop;return _e(Q).direction==="rtl"&&(oe+=v(G.clientWidth,Q.clientWidth)-B),{width:B,height:te,x:oe,y:be}}function ce(F,G){const le=Ne(F),Q=Dt(F),B=le.visualViewport;let te=Q.clientWidth,oe=Q.clientHeight,be=0,Ue=0;if(B){te=B.width,oe=B.height;const je=We();(!je||je&&G==="fixed")&&(be=B.offsetLeft,Ue=B.offsetTop)}return{width:te,height:oe,x:be,y:Ue}}function Ke(F,G){const le=lr(F,!0,G==="fixed"),Q=le.top+F.clientTop,B=le.left+F.clientLeft,te=qt(F)?Je(F):x(1),oe=F.clientWidth*te.x,be=F.clientHeight*te.y,Ue=B*te.x,je=Q*te.y;return{width:oe,height:be,x:Ue,y:je}}function pt(F,G,le){let Q;if(G==="viewport")Q=ce(F,le);else if(G==="document")Q=Er(Dt(F));else if(Ht(G))Q=Ke(G,le);else{const B=xt(F);Q={...G,x:G.x-B.x,y:G.y-B.y}}return Re(Q)}function gt(F,G){const le=et(F);return le===G||!Ht(le)||ye(le)?!1:_e(le).position==="fixed"||gt(le,G)}function st(F,G){const le=G.get(F);if(le)return le;let Q=Xe(F,[],!1).filter(be=>Ht(be)&&Ae(be)!=="body"),B=null;const te=_e(F).position==="fixed";let oe=te?et(F):F;for(;Ht(oe)&&!ye(oe);){const be=_e(oe),Ue=kt(oe);!Ue&&be.position==="fixed"&&(B=null),(te?!Ue&&!B:!Ue&&be.position==="static"&&!!B&&["absolute","fixed"].includes(B.position)||ht(oe)&&!Ue&&gt(F,oe))?Q=Q.filter(ut=>ut!==oe):B=be,oe=et(oe)}return G.set(F,Q),Q}function ir(F){let{element:G,boundary:le,rootBoundary:Q,strategy:B}=F;const oe=[...le==="clippingAncestors"?st(G,this._c):[].concat(le),Q],be=oe[0],Ue=oe.reduce((je,ut)=>{const vt=pt(G,ut,B);return je.top=v(vt.top,je.top),je.right=d(vt.right,je.right),je.bottom=d(vt.bottom,je.bottom),je.left=v(vt.left,je.left),je},pt(G,be,B));return{width:Ue.right-Ue.left,height:Ue.bottom-Ue.top,x:Ue.left,y:Ue.top}}function ur(F){return xe(F)}function ar(F,G,le){const Q=qt(G),B=Dt(G),te=le==="fixed",oe=lr(F,!0,te,G);let be={scrollLeft:0,scrollTop:0};const Ue=x(0);if(Q||!Q&&!te)if((Ae(G)!=="body"||ht(B))&&(be=rt(G)),Q){const je=lr(G,!0,te,G);
719Ue.x=je.x+G.clientLeft,Ue.y=je.y+G.clientTop}else B&&(Ue.x=hn(B));return{x:oe.left+be.scrollLeft-Ue.x,y:oe.top+be.scrollTop-Ue.y,width:oe.width,height:oe.height}}function Fn(F,G){return!qt(F)||_e(F).position==="fixed"?null:G?G(F):F.offsetParent}function Tr(F,G){const le=Ne(F);if(!qt(F))return le;let Q=Fn(F,G);for(;Q&&br(Q)&&_e(Q).position==="static";)Q=Fn(Q,G);return Q&&(Ae(Q)==="html"||Ae(Q)==="body"&&_e(Q).position==="static"&&!kt(Q))?le:Q||xr(F)||le}var dr=async function(F){let{reference:G,floating:le,strategy:Q}=F;const B=this.getOffsetParent||Tr,te=this.getDimensions;return{reference:ar(G,await B(le),Q),floating:{x:0,y:0,...await te(le)}}};function An(F){return _e(F).direction==="rtl"}var Kr={convertOffsetParentRelativeRectToViewportRelativeRect:jr,getDocumentElement:Dt,getClippingRect:ir,getOffsetParent:Tr,getElementRects:dr,getClientRects:Cr,getDimensions:ur,getScale:Je,isElement:Ht,isRTL:An};function Ei(F,G){let le=null,Q;const B=Dt(F);function te(){clearTimeout(Q),le&&le.disconnect(),le=null}function oe(be,Ue){be===void 0&&(be=!1),Ue===void 0&&(Ue=1),te();const{left:je,top:ut,width:vt,height:Ot}=F.getBoundingClientRect();if(be||G(),!vt||!Ot)return;const mt=b(ut),Mt=b(B.clientWidth-(je+vt)),Lt=b(B.clientHeight-(ut+Ot)),Pr=b(je),rr={rootMargin:-mt+"px "+-Mt+"px "+-Lt+"px "+-Pr+"px",threshold:v(0,d(1,Ue))||1};let Or=!0;function vn(Hr){const Ti=Hr[0].intersectionRatio;if(Ti!==Ue){if(!Or)return oe();Ti?oe(!1,Ti):Q=setTimeout(()=>{oe(!1,1e-7)},100)}Or=!1}try{le=new IntersectionObserver(vn,{...rr,root:B.ownerDocument})}catch{le=new IntersectionObserver(vn,rr)}le.observe(F)}return oe(!0),te}function Hn(F,G,le,Q){Q===void 0&&(Q={});const{ancestorScroll:B=!0,ancestorResize:te=!0,elementResize:oe=typeof ResizeObserver=="function",layoutShift:be=typeof IntersectionObserver=="function",animationFrame:Ue=!1}=Q,je=De(F),ut=B||te?[...je?Xe(je):[],...Xe(G)]:[];ut.forEach(Pt=>{B&&Pt.addEventListener("scroll",le,{passive:!0}),te&&Pt.addEventListener("resize",le)});const vt=je&&be?Ei(je,le):null;let Ot=-1,mt=null;oe&&(mt=new ResizeObserver(Pt=>{let[rr]=Pt;rr&&rr.target===je&&mt&&(mt.unobserve(G),cancelAnimationFrame(Ot),Ot=requestAnimationFrame(()=>{mt&&mt.observe(G)})),le()}),je&&!Ue&&mt.observe(je),mt.observe(G));let Mt,Lt=Ue?lr(F):null;Ue&&Pr();function Pr(){const Pt=lr(F);Lt&&(Pt.x!==Lt.x||Pt.y!==Lt.y||Pt.width!==Lt.width||Pt.height!==Lt.height)&&le(),Lt=Pt,Mt=requestAnimationFrame(Pr)}return le(),()=>{ut.forEach(Pt=>{B&&Pt.removeEventListener("scroll",le),te&&Pt.removeEventListener("resize",le)}),vt&&vt(),mt&&mt.disconnect(),mt=null,Ue&&cancelAnimationFrame(Mt)}}var ui=(F,G,le)=>{const Q=new Map,B={platform:Kr,...le},te={...B.platform,_c:Q};return zt(F,G,{...B,platform:te})};function Ga(F){F.magic("anchor",G=>{if(!G._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return G._x_anchor}),F.interceptClone((G,le)=>{G&&G._x_anchor&&!le._x_anchor&&(le._x_anchor=G._x_anchor)}),F.directive("anchor",F.skipDuringClone((G,{expression:le,modifiers:Q,value:B},{cleanup:te,evaluate:oe})=>{let{placement:be,offsetValue:Ue,unstyled:je}=qn(Q);G._x_anchor=F.reactive({x:0,y:0});let ut=oe(le);if(!ut)throw"Alpine: no element provided to x-anchor...";let vt=()=>{let mt;ui(ut,G,{placement:be,middleware:[$e(),Ve({padding:5}),at(Ue)]}).then(({x:Mt,y:Lt})=>{je||Mn(G,Mt,Lt),JSON.stringify({x:Mt,y:Lt})!==mt&&(G._x_anchor.x=Mt,G._x_anchor.y=Lt),mt=JSON.stringify({x:Mt,y:Lt})})},Ot=Hn(ut,G,()=>vt());te(()=>Ot())},(G,{expression:le,modifiers:Q,value:B},{cleanup:te,evaluate:oe})=>{let{placement:be,offsetValue:Ue,unstyled:je}=qn(Q);G._x_anchor&&(je||Mn(G,G._x_anchor.x,G._x_anchor.y))}))}function Mn(F,G,le){Object.assign(F.style,{left:G+"px",top:le+"px",position:"absolute"})}function qn(F){let le=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(te=>F.includes(te)),Q=0;if(F.includes("offset")){let te=F.findIndex(oe=>oe==="offset");Q=F[te+1]!==void 0?Number(F[te+1]):Q}let B=F.includes("no-style");return{placement:le,offsetValue:Q,unstyled:B}}var wa=Ga}}),X1e=Ss({"node_modules/nprogress/nprogress.js"(t,e){(function(r,n){typeof define=="function"&&define.amd?define(n):typeof t=="object"?e.exports=n():r.NProgress=n()})(t,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(x){var T,S;for(T in x)S=x[T],S!==void 0&&x.hasOwnProperty(T)&&(n[T]=S);return this},r.status=null,r.set=function(x){var T=r.isStarted();x=i(x,n.minimum,1),r.status=x===1?null:x;var S=r.render(!T),M=S.querySelector(n.barSelector),L=n.speed,P=n.easing;return S.offsetWidth,s(function(A){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),u(M,o(x,L,P)),x===1?(u(S,{transition:"none",opacity:1}),S.offsetWidth,setTimeout(function(){u(S,{transition:"all "+L+"ms linear",opacity:0}
719),setTimeout(function(){r.remove(),A()},L)},L)):setTimeout(A,L)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var x=function(){setTimeout(function(){r.status&&(r.trickle(),x())},n.trickleSpeed)};return n.trickle&&x(),this},r.done=function(x){return!x&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(x){var T=r.status;return T?(typeof x!="number"&&(x=(1-T)*i(Math.random()*T,.1,.95)),T=i(T+x,0,.994),r.set(T)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var x=0,T=0;r.promise=function(S){return!S||S.state()==="resolved"?this:(T===0&&r.start(),x++,T++,S.always(function(){T--,T===0?(x=0,r.done()):r.set((x-T)/x)}),this)}}(),r.render=function(x){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var T=document.createElement("div");T.id="nprogress",T.innerHTML=n.template;var S=T.querySelector(n.barSelector),M=x?"-100":a(r.status||0),L=document.querySelector(n.parent),P;return u(S,{transition:"all 0 linear",transform:"translate3d("+M+"%,0,0)"}),n.showSpinner||(P=T.querySelector(n.spinnerSelector),P&&b(P)),L!=document.body&&d(L,"nprogress-custom-parent"),L.appendChild(T),T},r.remove=function(){v(document.documentElement,"nprogress-busy"),v(document.querySelector(n.parent),"nprogress-custom-parent");var x=document.getElementById("nprogress");x&&b(x)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var x=document.body.style,T="WebkitTransform"in x?"Webkit":"MozTransform"in x?"Moz":"msTransform"in x?"ms":"OTransform"in x?"O":"";return T+"Perspective"in x?"translate3d":T+"Transform"in x?"translate":"margin"};function i(x,T,S){return x<T?T:x>S?S:x}function a(x){return(-1+x)*100}function o(x,T,S){var M;return n.positionUsing==="translate3d"?M={transform:"translate3d("+a(x)+"%,0,0)"}:n.positionUsing==="translate"?M={transform:"translate("+a(x)+"%,0)"}:M={"margin-left":a(x)+"%"},M.transition="all "+T+"ms "+S,M}var s=function(){var x=[];function T(){var S=x.shift();S&&S(T)}return function(S){x.push(S),x.length==1&&T()}}(),u=function(){var x=["Webkit","O","Moz","ms"],T={};function S(A){return A.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(H,W){return W.toUpperCase()})}function M(A){var H=document.body.style;if(A in H)return A;for(var W=x.length,J=A.charAt(0).toUpperCase()+A.slice(1),ee;W--;)if(ee=x[W]+J,ee in H)return ee;return A}function L(A){return A=S(A),T[A]||(T[A]=M(A))}function P(A,H,W){H=L(H),A.style[H]=W}return function(A,H){var W=arguments,J,ee;if(W.length==2)for(J in H)ee=H[J],ee!==void 0&&H.hasOwnProperty(J)&&P(A,J,ee);else P(A,W[1],W[2])}}();function f(x,T){var S=typeof x=="string"?x:m(x);return S.indexOf(" "+T+" ")>=0}function d(x,T){var S=m(x),M=S+T;f(S,T)||(x.className=M.substring(1))}function v(x,T){var S=m(x),M;f(x,T)&&(M=S.replace(" "+T+" "," "),x.className=M.substring(1,M.length-1))}function m(x){return(" "+(x.className||"")+" ").replace(/\s+/gi," ")}function b(x){x&&x.parentNode&&x.parentNode.removeChild(x)}return r})}}),Q1e=Ss({"node_modules/@alpinejs/morph/dist/module.cjs.js"(t,e){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(X,ie)=>{for(var ge in ie)r(X,ge,{get:ie[ge],enumerable:!0})},s=(X,ie,ge,Y)=>{if(ie&&typeof ie=="object"||typeof ie=="function")for(let ne of i(ie))!a.call(X,ne)&&ne!==ge&&r(X,ne,{get:()=>ie[ne],enumerable:!(Y=n(ie,ne))||Y.enumerable});return X},u=X=>s(r({},"__esModule",{value:!0}),X),f={};o(f,{default:()=>ee,morph:()=>J}),e.exports=u(f);function d(X,ie,ge){H();let Y=m(ge),ne=typeof ie=="string"?S(ie):ie;return window.Alpine&&window.Alpine.closestDataStack&&!X._x_dataStack&&(ne._x_dataStack=window.Alpine.closestDataStack(X),ne._x_dataStack&&window.Alpine.cloneNode(X,ne)),Y.patch(X,ne),X}function v(X,ie,ge,Y={}){H();let ne=m(Y),Te=X.parentNode,Be=new L(X,ie),He=typeof ge=="string"?(()=>{let bt=document.createElement("div");return bt.insertAdjacentHTML("beforeend",ge),bt})():ge,Re=document.createComment("[morph-start]"),Oe=document.createComment("[morph-end]");He.insertBefore(Re,He.firstChild),He.appendChild(Oe);let zt=new L(Re,Oe);window.Alpine&&window.Alpine.closestDataStack&&(He._x_dataStack=window.Alpine.closestDataStack(Te),He._x_dataStack&&window.Alpine.cloneNode(Te,He)),ne.patchChildren(Be,zt)}function m(X={}){let ie=ne=>ne.getAttribute("key"),ge=()=>{},Y={key:X.key||ie,lookahead:X.lookahead||!1,updating:X.updating||ge,updated:X.updated||ge,removing:X.removing||ge,removed:X.removed||ge,adding:X.adding||ge,added:X.added||ge};return Y.patch=function(ne,Te){if(Y.differentElementNamesTypesOrKeys(ne,Te))return Y.swapElements(ne,Te);let Be=!1,He=!1,Re=Oe=>Y.skipUntilCondition=Oe;if(!x(Y.updating,()=>He=!0,Re,ne,Te,()=>Be=!0)){if(ne.nodeType===1&&window.Alpine&&(window.Alpine.cloneNode(ne,Te),ne._x_teleport&&Te._x_teleport&&Y.patch(ne._x_teleport,Te._x_teleport)),M(Te)){Y.patchNodeValue(ne,Te),Y.updated(ne,Te);return}Be||Y.patchAttributes(ne,Te),Y.updated(ne,Te),He||Y.patchChildren(ne,Te)}},Y.differentElementNamesTypesOrKeys=function(ne,Te){return ne.nodeType!=Te.nodeType||ne.nodeName!=Te.nodeName||Y.getKey(ne)!=Y.getKey(Te)},Y.swapElements=function(ne,Te){if(b(Y.removing,ne))return;let Be=Te.cloneNode(!0);b(Y.adding,Be)||(ne.replaceWith(Be),Y.removed(ne),Y.added(Be))},Y.patchNodeValue=function(ne,Te){let Be=Te.nodeValue;ne.nodeValue!==Be&&(ne.nodeValue=Be)},Y.patchAttributes=function(ne,Te){if(ne._x_transitioning||ne._x_isShown&&!Te._x_isShown||!ne._x_isShown&&Te._x_isShown)return;
719let Be=Array.from(ne.attributes),He=Array.from(Te.attributes);for(let Re=Be.length-1;Re>=0;Re--){let Oe=Be[Re].name;Te.hasAttribute(Oe)||ne.removeAttribute(Oe)}for(let Re=He.length-1;Re>=0;Re--){let Oe=He[Re].name,zt=He[Re].value;ne.getAttribute(Oe)!==zt&&ne.setAttribute(Oe,zt)}},Y.patchChildren=function(ne,Te){let Be=Y.keyToMap(ne.children),He={},Re=P(Te),Oe=P(ne);for(;Re;){W(Re,Oe);let bt=Y.getKey(Re),$e=Y.getKey(Oe);if(Y.skipUntilCondition){let Ae=!Oe||Y.skipUntilCondition(Oe),Ne=!Re||Y.skipUntilCondition(Re);if(Ae&&Ne)Y.skipUntilCondition=null;else{Ae||(Oe=Oe&&A(ne,Oe)),Ne||(Re=Re&&A(Te,Re));continue}}if(!Oe)if(bt&&He[bt]){let Ae=He[bt];ne.appendChild(Ae),Oe=Ae,$e=Y.getKey(Oe)}else{if(!b(Y.adding,Re)){let Ae=Re.cloneNode(!0);ne.appendChild(Ae),Y.added(Ae)}Re=A(Te,Re);continue}let qe=Ae=>Ae&&Ae.nodeType===8&&Ae.textContent==="[if BLOCK]><![endif]",at=Ae=>Ae&&Ae.nodeType===8&&Ae.textContent==="[if ENDBLOCK]><![endif]";if(qe(Re)&&qe(Oe)){let Ae=0,Ne=Oe;for(;Oe;){let ht=A(ne,Oe);if(qe(ht))Ae++;else if(at(ht)&&Ae>0)Ae--;else if(at(ht)&&Ae===0){Oe=ht;break}Oe=ht}let Dt=Oe;Ae=0;let Wt=Re;for(;Re;){let ht=A(Te,Re);if(qe(ht))Ae++;else if(at(ht)&&Ae>0)Ae--;else if(at(ht)&&Ae===0){Re=ht;break}Re=ht}let Ht=Re,qt=new L(Ne,Dt),tr=new L(Wt,Ht);Y.patchChildren(qt,tr);continue}if(Oe.nodeType===1&&Y.lookahead&&!Oe.isEqualNode(Re)){let Ae=A(Te,Re),Ne=!1;for(;!Ne&&Ae;)Ae.nodeType===1&&Oe.isEqualNode(Ae)&&(Ne=!0,Oe=Y.addNodeBefore(ne,Re,Oe),$e=Y.getKey(Oe)),Ae=A(Te,Ae)}if(bt!==$e){if(!bt&&$e){He[$e]=Oe,Oe=Y.addNodeBefore(ne,Re,Oe),He[$e].remove(),Oe=A(ne,Oe),Re=A(Te,Re);continue}if(bt&&!$e&&Be[bt]&&(Oe.replaceWith(Be[bt]),Oe=Be[bt],$e=Y.getKey(Oe)),bt&&$e){let Ae=Be[bt];if(Ae)He[$e]=Oe,Oe.replaceWith(Ae),Oe=Ae,$e=Y.getKey(Oe);else{He[$e]=Oe,Oe=Y.addNodeBefore(ne,Re,Oe),He[$e].remove(),Oe=A(ne,Oe),Re=A(Te,Re);continue}}}let Ve=Oe&&A(ne,Oe);Y.patch(Oe,Re),Re=Re&&A(Te,Re),Oe=Ve}let zt=[];for(;Oe;)b(Y.removing,Oe)||zt.push(Oe),Oe=A(ne,Oe);for(;zt.length;){let bt=zt.shift();bt.remove(),Y.removed(bt)}},Y.getKey=function(ne){return ne&&ne.nodeType===1&&Y.key(ne)},Y.keyToMap=function(ne){let Te={};for(let Be of ne){let He=Y.getKey(Be);He&&(Te[He]=Be)}return Te},Y.addNodeBefore=function(ne,Te,Be){if(!b(Y.adding,Te)){let He=Te.cloneNode(!0);return ne.insertBefore(He,Be),Y.added(He),He}return Te},Y}d.step=()=>{},d.log=()=>{};function b(X,...ie){let ge=!1;return X(...ie,()=>ge=!0),ge}function x(X,ie,ge,...Y){let ne=!1;return X(...Y,()=>ne=!0,ie,ge),ne}var T=!1;function S(X){const ie=document.createElement("template");return ie.innerHTML=X,ie.content.firstElementChild}function M(X){return X.nodeType===3||X.nodeType===8}var L=class{constructor(X,ie){this.startComment=X,this.endComment=ie}get children(){let X=[],ie=this.startComment.nextSibling;for(;ie&&ie!==this.endComment;)X.push(ie),ie=ie.nextSibling;return X}appendChild(X){this.endComment.before(X)}get firstChild(){let X=this.startComment.nextSibling;if(X!==this.endComment)return X}nextNode(X){let ie=X.nextSibling;if(ie!==this.endComment)return ie}insertBefore(X,ie){return ie.before(X),X}};function P(X){return X.firstChild}function A(X,ie){let ge;return X instanceof L?ge=X.nextNode(ie):ge=ie.nextSibling,ge}function H(){if(T)return;T=!0;let X=Element.prototype.setAttribute,ie=document.createElement("div");Element.prototype.setAttribute=function(Y,ne){if(!Y.includes("@"))return X.call(this,Y,ne);ie.innerHTML=`<span ${Y}="${ne}"></span>`;let Te=ie.firstElementChild.getAttributeNode(Y);ie.firstElementChild.removeAttributeNode(Te),this.setAttributeNode(Te)}}function W(X,ie){let ge=ie&&ie._x_bindings&&ie._x_bindings.id;ge&&X.setAttribute&&(X.setAttribute("id",ge),X.id=ge)}function J(X){X.morph=d,X.morphBetween=v}var ee=J}}),Z1e=Ss({"node_modules/@alpinejs/mask/dist/module.cjs.js"(t,e){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(S,M)=>{for(var L in M)r(S,L,{get:M[L],enumerable:!0})},s=(S,M,L,P)=>{if(M&&typeof M=="object"||typeof M=="function")for(let A of i(M))!a.call(S,A)&&A!==L&&r(S,A,{get:()=>M[A],enumerable:!(P=n(M,A))||P.enumerable});return S},u=S=>s(r({},"__esModule",{value:!0}),S),f={};o(f,{default:()=>T,mask:()=>d,stripDown:()=>m}),e.exports=u(f);function d(S){S.directive("mask",(M,{value:L,expression:P},{effect:A,evaluateLater:H,cleanup:W})=>{let J=()=>P,ee="";queueMicrotask(()=>
719{if(["function","dynamic"].includes(L)){let Y=H(P);A(()=>{J=ne=>{let Te;return S.dontAutoEvaluateFunctions(()=>{Y(Be=>{Te=typeof Be=="function"?Be(ne):Be},{scope:{$input:ne,$money:x.bind({el:M})}})}),Te},ie(M,!1)})}else ie(M,!1);if(M._x_model){if(M._x_model.get()===M.value||M._x_model.get()===null&&M.value==="")return;M._x_model.set(M.value)}});const X=new AbortController;W(()=>{X.abort()}),M.addEventListener("input",()=>ie(M),{signal:X.signal,capture:!0}),M.addEventListener("blur",()=>ie(M,!1),{signal:X.signal});function ie(Y,ne=!0){let Te=Y.value,Be=J(Te);if(!Be||Be==="false")return!1;if(ee.length-Y.value.length===1)return ee=Y.value;let He=()=>{ee=Y.value=ge(Te,Be)};ne?v(Y,Be,()=>{He()}):He()}function ge(Y,ne){if(Y==="")return"";let Te=m(ne,Y);return b(ne,Te)}}).before("model")}function v(S,M,L){let P=S.selectionStart,A=S.value;L();let H=A.slice(0,P),W=b(M,m(M,H)).length;S.setSelectionRange(W,W)}function m(S,M){let L=M,P="",A={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},H="";for(let W=0;W<S.length;W++){if(["9","a","*"].includes(S[W])){H+=S[W];continue}for(let J=0;J<L.length;J++)if(L[J]===S[W]){L=L.slice(0,J)+L.slice(J+1);break}}for(let W=0;W<H.length;W++){let J=!1;for(let ee=0;ee<L.length;ee++)if(A[H[W]].test(L[ee])){P+=L[ee],L=L.slice(0,ee)+L.slice(ee+1),J=!0;break}if(!J)break}return P}function b(S,M){let L=Array.from(M),P="";for(let A=0;A<S.length;A++){if(!["9","a","*"].includes(S[A])){P+=S[A];continue}if(L.length===0)break;P+=L.shift()}return P}function x(S,M=".",L,P=2){if(S==="-")return"-";if(/^\D+$/.test(S))return"9";L==null&&(L=M===","?".":",");let A=(ee,X)=>{let ie="",ge=0;for(let Y=ee.length-1;Y>=0;Y--)ee[Y]!==X&&(ge===3?(ie=ee[Y]+X+ie,ge=0):ie=ee[Y]+ie,ge++);return ie},H=S.startsWith("-")?"-":"",W=S.replaceAll(new RegExp(`[^0-9\\${M}]`,"g"),""),J=Array.from({length:W.split(M)[0].length}).fill("9").join("");return J=`${H}${A(J,L)}`,P>0&&S.includes(M)&&(J+=`${M}`+"9".repeat(P)),queueMicrotask(()=>{this.el.value.endsWith(M)||this.el.value[this.el.selectionStart-1]===M&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),J}var T=d}}),eSe=class{constructor(){this.arrays={}}add(t,e){this.arrays[t]||(this.arrays[t]=[]),this.arrays[t].push(e)}remove(t){this.arrays[t]&&delete this.arrays[t]}get(t){return this.arrays[t]||[]}each(t,e){return this.get(t).forEach(e)}},ak=class{constructor(){this.arrays=new WeakMap}add(t,e){this.arrays.has(t)||this.arrays.set(t,[]),this.arrays.get(t).push(e)}remove(t){this.arrays.has(t)&&this.arrays.delete(t,[])}get(t){return this.arrays.has(t)?this.arrays.get(t):[]}each(t,e){return this.get(t).forEach(e)}};function fm(t,e,r={},n=!0){t.dispatchEvent(new CustomEvent(e,{detail:r,bubbles:n,composed:!0,cancelable:!0}))}function dm(t,e,r){return t.addEventListener(e,r),()=>t.removeEventListener(e,r)}function Uy(t){return typeof t=="object"&&t!==null}function hE(t){return Uy(t)&&!dg(t)}function dg(t){return Array.isArray(t)}function ok(t){return typeof t=="function"}function vE(t){return typeof t!="object"||t===null}function Zl(t){return JSON.parse(JSON.stringify(t))}function ms(t,e){return e===""?t:e.split(".").reduce((r,n)=>r==null?void 0:r[n],t)}function nh(t,e,r){let n=e.split(".");if(n.length===1)return t[e]=r;let i=n.shift(),a=n.join(".");t[i]===void 0&&(t[i]={}),nh(t[i],a,r)}function jy(t,e,r={},n=""){if(t===e)return r;if(typeof t!=typeof e||hE(t)&&dg(e)||dg(t)&&hE(e)||vE(t)||vE(e))return r[n]=e,r;let i=Object.keys(t);return Object.entries(e).forEach(([a,o])=>{r={...r,...jy(t[a],e[a],r,n===""?a:`${n}.${a}`)},i=i.filter(s=>s!==a)}
719),i.forEach(a=>{r[`${n}.${a}`]="__rm__"}),r}function sc(t){let e=mE(t)?t[0]:t;return mE(t)&&t[1],Uy(e)&&Object.entries(e).forEach(([r,n])=>{e[r]=sc(n)}),e}function mE(t){return Array.isArray(t)&&t.length===2&&typeof t[1]=="object"&&Object.keys(t[1]).includes("s")}function sk(){if(document.querySelector('meta[name="csrf-token"]'))return document.querySelector('meta[name="csrf-token"]').getAttribute("content");if(document.querySelector("[data-csrf]"))return document.querySelector("[data-csrf]").getAttribute("data-csrf");if(window.livewireScriptConfig.csrf??!1)return window.livewireScriptConfig.csrf;throw"Livewire: No CSRF token detected"}var rc;function tSe(){if(rc)return rc;if(window.livewireScriptConfig&&(window.livewireScriptConfig.nonce??!1))return rc=window.livewireScriptConfig.nonce,rc;const t=document.querySelector("style[data-livewire-style][nonce]");return t?(rc=t.nonce,rc):null}function rSe(){var t;return((t=document.querySelector("[data-update-uri]"))==null?void 0:t.getAttribute("data-update-uri"))??window.livewireScriptConfig.uri??null}function lk(t){return!!t.match(/<script>Sfdump\(".+"\)<\/script>/)}function nSe(t){let e=t.match(/.*<script>Sfdump\(".+"\)<\/script>/s);return[e,t.replace(e,"")]}var pm=new WeakMap;function Yf(t){if(!pm.has(t)){let e=new aSe(t);pm.set(t,e),e.registerListeners()}return pm.get(t)}function iSe(t,e,r,n){let i=Yf(r),a=()=>t.dispatchEvent(new CustomEvent("livewire-upload-start",{bubbles:!0,detail:{id:r.id,property:e}})),o=()=>t.dispatchEvent(new CustomEvent("livewire-upload-finish",{bubbles:!0,detail:{id:r.id,property:e}})),s=()=>t.dispatchEvent(new CustomEvent("livewire-upload-error",{bubbles:!0,detail:{id:r.id,property:e}})),u=()=>t.dispatchEvent(new CustomEvent("livewire-upload-cancel",{bubbles:!0,detail:{id:r.id,property:e}})),f=m=>{var b=Math.round(m.loaded*100/m.total);t.dispatchEvent(new CustomEvent("livewire-upload-progress",{bubbles:!0,detail:{progress:b}}))},d=m=>{if(m.target.files.length!==0)if(a(),m.target.multiple){let b=["ui-file-upload"].includes(m.target.tagName.toLowerCase());i.uploadMultiple(e,m.target.files,o,s,f,u,b)}else i.upload(e,m.target.files[0],o,s,f,u)};t.addEventListener("change",d),r.$wire.$watch(e,m=>{t.isConnected&&((m===null||m==="")&&(t.value=""),t.multiple&&Array.isArray(m)&&m.length===0&&(t.value=""))});let v=()=>{t.value=null};t.addEventListener("click",v),t.addEventListener("livewire-upload-cancel",v),n(()=>{t.removeEventListener("change",d),t.removeEventListener("click",v)})}var aSe=class{constructor(t){this.component=t,this.uploadBag=new gE,this.removeBag=new gE}registerListeners(){this.component.$wire.$on("upload:generatedSignedUrl",({name:t,url:e})=>{this.component,this.handleSignedUrl(t,e)}),this.component.$wire.$on("upload:generatedSignedUrlForS3",({name:t,payload:e})=>{this.component,this.handleS3PreSignedUrl(t,e)}),this.component.$wire.$on("upload:finished",({name:t,tmpFilenames:e})=>this.markUploadFinished(t,e)),this.component.$wire.$on("upload:errored",({name:t})=>this.markUploadErrored(t)),this.component.$wire.$on("upload:removed",({name:t,tmpFilename:e})=>this.removeBag.shift(t).finishCallback(e))}upload(t,e,r,n,i,a){this.setUpload(t,{files:[e],multiple:!1,finishCallback:r,errorCallback:n,progressCallback:i,cancelledCallback:a,append:!1})}uploadMultiple(t,e,r,n,i,a,o=!1){this.setUpload(t,{files:Array.from(e),multiple:!0,finishCallback:r,errorCallback:n,progressCallback:i,cancelledCallback:a,append:o})}removeUpload(t,e,r){this.removeBag.push(t,{tmpFilename:e,finishCallback:r}),this.component.$wire.call("_removeUpload",t,e)}setUpload(t,e){this.uploadBag.add(t,e),this.uploadBag.get(t).length===1&&this.startUpload(t,e)}handleSignedUrl(t,e){let r=new FormData;Array.from(this.uploadBag.first(t).files).forEach(a=>r.append("files[]",a,a.name));let n={Accept:"application/json"},i=sk();i&&(n["X-CSRF-TOKEN"]=i),this.makeRequest(t,r,"post",e,n,a=>a.paths)}handleS3PreSignedUrl(t,e){let r=this.uploadBag.first(t).files[0],n=e.headers;"Host"in n&&delete n.Host;let i=e.url;this.makeRequest(t,r,"put",i,n,a=>[e.path])}makeRequest(t,e,r,n,i,a){let o=new XMLHttpRequest;
719o.open(r,n),Object.entries(i).forEach(([s,u])=>{o.setRequestHeader(s,u)}),o.upload.addEventListener("progress",s=>{s.detail={},s.detail.progress=Math.floor(s.loaded*100/s.total),this.uploadBag.first(t).progressCallback(s)}),o.addEventListener("load",()=>{if((o.status+"")[0]==="2"){let u=a(o.response&&JSON.parse(o.response));this.component.$wire.call("_finishUpload",t,u,this.uploadBag.first(t).multiple,this.uploadBag.first(t).append);return}let s=null;o.status===422&&(s=o.response),this.component.$wire.call("_uploadErrored",t,s,this.uploadBag.first(t).multiple)}),this.uploadBag.first(t).request=o,o.send(e)}startUpload(t,e){let r=e.files.map(n=>({name:n.name,size:n.size,type:n.type}));this.component.$wire.call("_startUpload",t,r,e.multiple),this.component}markUploadFinished(t,e){this.component;let r=this.uploadBag.shift(t);r.finishCallback(r.multiple?e:e[0]),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}markUploadErrored(t){this.component,this.uploadBag.shift(t).errorCallback(),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}cancelUpload(t,e=null){this.component;let r=this.uploadBag.first(t);r&&(r.request&&r.request.abort(),this.uploadBag.shift(t).cancelledCallback(),e&&e())}},gE=class{constructor(){this.bag={}}add(t,e){this.bag[t]||(this.bag[t]=[]),this.bag[t].push(e)}push(t,e){this.add(t,e)}first(t){return this.bag[t]?this.bag[t][0]:null}last(t){return this.bag[t].slice(-1)[0]}get(t){return this.bag[t]}shift(t){return this.bag[t].shift()}call(t,...e){(this.listeners[t]||[]).forEach(r=>{r(...e)})}has(t){return Object.keys(this.listeners).includes(t)}};function oSe(t,e,r,n=()=>{},i=()=>{},a=()=>{},o=()=>{}){Yf(t).upload(e,r,n,i,a,o)}function sSe(t,e,r,n=()=>{},i=()=>{},a=()=>{},o=()=>{},s=!1){Yf(t).uploadMultiple(e,r,n,i,a,o,s)}function lSe(t,e,r,n=()=>{},i=()=>{}){Yf(t).removeUpload(e,r,n,i)}function uSe(t,e,r=()=>{}){Yf(t).cancelUpload(e,r)}var yE=Nr(Cn());function uk(t,e){return e||(e=()=>{}),(r,n=!1)=>{let i=n,a=r,o=t.$wire,s=o.get(a);return yE.default.interceptor((f,d,v,m,b)=>{if(typeof s>"u"){console.error(`Livewire Entangle Error: Livewire property ['${a}'] cannot be found on component: ['${t.name}']`);return}let x=yE.default.entangle({get(){return o.get(r)},set(T){o.set(r,T,i)}},{get(){return d()},set(T){v(T)}});return e(()=>x()),cSe(o.get(r))},f=>{Object.defineProperty(f,"live",{get(){return i=!0,f}})})(s)}}function cSe(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}var au=[];function yr(t,e){return au[t]||(au[t]=[]),au[t].push(e),()=>{au[t]=au[t].filter(r=>r!==e)}}function Gr(t,...e){let r=au[t]||[],n=[];for(let i=0;i<r.length;i++){let a=r[i](...e);ok(a)&&n.push(a)}return i=>fk(n,i)}async function ck(t,...e){let r=au[t]||[],n=[];for(let i=0;i<r.length;i++){let a=await r[i](...e);ok(a)&&n.push(a)}return i=>fk(n,i)}function fk(t,e){let r=e;for(let n=0;n<t.length;n++){let i=t[n](r);i!==void 0&&(r=i)}return r}function dk(t){let e=document.createElement("html");e.innerHTML=t,e.querySelectorAll("a").forEach(i=>i.setAttribute("target","_top"));let r=document.getElementById("livewire-error");typeof r<"u"&&r!=null?r.innerHTML="":(r=document.createElement("dialog"),r.id="livewire-error",r.style.margin="50px",r.style.width="calc(100% - 100px)",r.style.height="calc(100% - 100px)",r.style.borderRadius="5px",r.style.padding="0px");let n=document.createElement("iframe");n.style.backgroundColor="#17161A",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",r.appendChild(n),document.body.prepend(r),document.body.style.overflow="hidden",n.contentWindow.document.open(),n.contentWindow.document.write(e.outerHTML),n.contentWindow.document.close(),r.addEventListener("click",()=>fSe(r)),r.addEventListener("close",()=>dSe(r)),r.showModal(),r.focus(),r.blur()}function fSe(t){t.close()}function dSe(t){t.outerHTML="",document.body.style.overflow="visible"}var pSe=class{constructor(){this.commits=new Set}add(t){this.commits.add(t)}delete(t){this.commits.delete(t)}hasCommitFor(t){return!!this.findCommitByComponent(t)}findCommitByComponent(t){for(let[e,r]of this.commits.entries())if(r.component===t)return r}shouldHoldCommit(t){return!t.isolate}empty(){return this.commits.size===0}async send(){this.prepare(),await ySe(this)}
719prepare(){this.commits.forEach(t=>t.prepare())}payload(){let t=[],e=[],r=[];return this.commits.forEach(a=>{let[o,s,u]=a.toRequestPayload();t.push(o),e.push(s),r.push(u)}),[t,a=>e.forEach(o=>o(a.shift())),()=>r.forEach(a=>a())]}},hSe=class{constructor(t){this.component=t,this.isolate=!1,this.calls=[],this.receivers=[],this.resolvers=[]}addResolver(t){this.resolvers.push(t)}addCall(t,e,r){this.calls.push({path:"",method:t,params:e,handleReturn(n){r(n)}})}prepare(){Gr("commit.prepare",{component:this.component})}getEncodedSnapshotWithLatestChildrenMergedIn(){let{snapshotEncoded:t,children:e,snapshot:r}=this.component,n=e.map(a=>a.id),i=Object.fromEntries(Object.entries(r.memo.children).filter(([a,o])=>n.includes(o[1])));return t.replace(/"children":\{[^}]*\}/,`"children":${JSON.stringify(i)}`)}toRequestPayload(){let t=jy(this.component.canonical,this.component.ephemeral),e=this.component.mergeQueuedUpdates(t),n={snapshot:this.getEncodedSnapshotWithLatestChildrenMergedIn(),updates:e,calls:this.calls.map(b=>({path:b.path,method:b.method,params:b.params}))},i=[],a=[],o=[],s=b=>i.forEach(x=>x(b)),u=()=>a.forEach(b=>b()),f=()=>o.forEach(b=>b()),d=Gr("commit",{component:this.component,commit:n,succeed:b=>{i.push(b)},fail:b=>{a.push(b)},respond:b=>{o.push(b)}});return[n,b=>{let{snapshot:x,effects:T}=b;if(f(),this.component.mergeNewSnapshot(x,T,e),this.component.processEffects(this.component.effects),T.returns){let M=T.returns;this.calls.map(({handleReturn:P})=>P).forEach((P,A)=>{P(M[A])})}let S=JSON.parse(x);d({snapshot:S,effects:T}),this.resolvers.forEach(M=>M()),s(b)},()=>{f(),u()}]}},vSe=class{constructor(){this.commits=new Set,this.pools=new Set}add(t){let e=this.findCommitOr(t,()=>{let r=new hSe(t);return this.commits.add(r),r});return mSe(e,()=>{this.findPoolWithComponent(e.component)||this.createAndSendNewPool()}),e}findCommitOr(t,e){for(let[r,n]of this.commits.entries())if(n.component===t)return n;return e()}findPoolWithComponent(t){for(let[e,r]of this.pools.entries())if(r.hasCommitFor(t))return r}createAndSendNewPool(){Gr("commit.pooling",{commits:this.commits});let t=this.corraleCommitsIntoPools();Gr("commit.pooled",{pools:t}),t.forEach(e=>{e.empty()||(this.pools.add(e),e.send().then(()=>{this.pools.delete(e),queueMicrotask(()=>{this.sendAnyQueuedCommits()})}))})}corraleCommitsIntoPools(){let t=new Set;for(let[e,r]of this.commits.entries()){if(this.findPoolWithComponent(r.component))continue;let n=!1;if(t.forEach(i=>{i.shouldHoldCommit(r)&&(i.add(r),n=!0)}),!n){let i=new pSe;i.add(r),t.add(i)}this.commits.delete(r)}return t}sendAnyQueuedCommits(){this.commits.size>0&&this.createAndSendNewPool()}},hm=new WeakMap;function mSe(t,e){hm.has(t)||hm.set(t,setTimeout(()=>{e(),hm.delete(t)},5))}var pk=new vSe;async function hk(t){let e=pk.add(t),r=new Promise(n=>{e.addResolver(n)});return r.commit=e,r}async function gSe(t,e,r){let n=pk.add(t),i=new Promise(a=>{n.addCall(e,r,o=>a(o))});return i.commit=n,i}async function ySe(t){let[e,r,n]=t.payload(),i={method:"POST",body:JSON.stringify({_token:sk(),components:e}),headers:{"Content-type":"application/json","X-Livewire":""}},a=[],o=[],s=[],u=L=>a.forEach(P=>P(L)),f=L=>o.forEach(P=>P(L)),d=L=>s.forEach(P=>P(L)),v=Gr("request.profile",i),m=rSe();Gr("request",{url:m,options:i,payload:i.body,respond:L=>s.push(L),succeed:L=>a.push(L),fail:L=>o.push(L)});let b;try{b=await fetch(m,i)}catch{v({content:"{}",failed:!0}),n(),f({status:503,content:null,preventDefault:()=>{}});return}let x={status:b.status,response:b};d(x),b=x.response;let T=await b.text();if(!b.ok){v({content:"{}",failed:!0});let L=!1;return n(),f({status:b.status,content:T,preventDefault:()=>L=!0}
719),L?void 0:(b.status===419&&bSe(),wSe(T))}if(b.redirected&&(window.location.href=b.url),lk(T)){let L;[L,T]=nSe(T),dk(L),v({content:"{}",failed:!0})}else v({content:T,failed:!1});let{components:S,assets:M}=JSON.parse(T);await ck("payload.intercept",{components:S,assets:M}),await r(S),u({status:b.status,json:JSON.parse(T)})}function bSe(){confirm(`This page has expired.
720Would you like to refresh the page?`)&&window.location.reload()}function wSe(t){dk(t)}var vk=Nr(Cn()),zy={},mk;function pn(t,e,r=null){zy[t]=e}function xSe(t){mk=t}var bE={on:"$on",el:"$el",id:"$id",js:"$js",get:"$get",set:"$set",call:"$call",hook:"$hook",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload",cancelUpload:"$cancelUpload"};function CSe(t,e){return new Proxy({},{get(r,n){if(n==="__instance")return t;if(n in bE)return wE(t,bE[n]);if(n in zy)return wE(t,n);if(n in e)return e[n];if(!["then"].includes(n))return ESe(t)(n)},set(r,n,i){return n in e&&(e[n]=i),!0}})}function wE(t,e){return zy[e](t)}function ESe(t){return mk(t)}vk.default.magic("wire",(t,{cleanup:e})=>{let r;return new Proxy({},{get(n,i){return r||(r=Cs(t)),["$entangle","entangle"].includes(i)?uk(r,e):r.$wire[i]},set(n,i,a){return r||(r=Cs(t)),r.$wire[i]=a,!0}})});pn("__instance",t=>t);pn("$get",t=>(e,r=!0)=>ms(r?t.reactive:t.ephemeral,e));pn("$el",t=>t.el);pn("$id",t=>t.id);pn("$js",t=>{let e=t.addJsAction.bind(t),r=t.getJsActions();return Object.keys(r).forEach(n=>{e[n]=t.getJsAction(n)}),e});pn("$set",t=>async(e,r,n=!0)=>(nh(t.reactive,e,r),n?(t.queueUpdate(e,r),await hk(t)):Promise.resolve()));pn("$call",t=>async(e,...r)=>await t.$wire[e](...r));pn("$entangle",t=>(e,r=!1)=>uk(t)(e,r));pn("$toggle",t=>(e,r=!0)=>t.$wire.set(e,!t.$wire.get(e),r));pn("$watch",t=>(e,r)=>{let n=()=>ms(t.reactive,e),i=vk.default.watch(n,r);t.addCleanup(i)});pn("$refresh",t=>t.$wire.$commit);pn("$commit",t=>async()=>await hk(t));pn("$on",t=>(...e)=>RSe(t,...e));pn("$hook",t=>(e,r)=>{let n=yr(e,({component:i,...a})=>{if(i===void 0)return r(a);if(i.id===t.id)return r({component:i,...a})});return t.addCleanup(n),n});pn("$dispatch",t=>(...e)=>bk(t,...e));pn("$dispatchSelf",t=>(...e)=>pc(t,...e));pn("$dispatchTo",()=>(...t)=>Wy(...t));pn("$upload",t=>(...e)=>oSe(t,...e));pn("$uploadMultiple",t=>(...e)=>sSe(t,...e));pn("$removeUpload",t=>(...e)=>lSe(t,...e));pn("$cancelUpload",t=>(...e)=>uSe(t,...e));var vm=new WeakMap;pn("$parent",t=>{if(vm.has(t))return vm.get(t).$wire;let e=t.parent;return vm.set(t,e),e.$wire});var dc=new WeakMap;function TSe(t,e,r){dc.has(t)||dc.set(t,{});let n=dc.get(t);n[e]=r,dc.set(t,n)}xSe(t=>e=>async(...r)=>{if(r.length===1&&r[0]instanceof Event&&(r=[]),dc.has(t)){let n=dc.get(t);if(typeof n[e]=="function")return n[e](r)}return await gSe(t,e,r)});var _Se=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=Zl(this.effects),this.canonical=sc(Zl(this.snapshot.data)),this.ephemeral=sc(Zl(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.queuedUpdates={},this.jsActions={},this.$wire=CSe(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,e,r={}){let n=JSON.parse(t),i=Zl(this.canonical),a=this.applyUpdates(i,r),o=sc(Zl(n.data)),s=jy(a,o);this.snapshotEncoded=t,this.snapshot=n,this.effects=e,this.canonical=sc(Zl(n.data));let u=sc(Zl(n.data));return Object.entries(s).forEach(([f,d])=>{let v=f.split(".")[0];this.reactive[v]=u[v]}),s}queueUpdate(t,e){this.queuedUpdates[t]=e}mergeQueuedUpdates(t){return Object.entries(this.queuedUpdates).forEach(([e,r])=>{Object.entries(t).forEach(([n,i])=>{n.startsWith(r)&&delete t[n]}),t[e]=r}),this.queuedUpdates=[],t}applyUpdates(t,e){for(let r in e)nh(t,r,e[r]);return t}replayUpdate(t,e){let r={...this.effects,html:e};
720this.mergeNewSnapshot(JSON.stringify(t),r),this.processEffects({html:e})}processEffects(t){Gr("effects",this,t),Gr("effect",{component:this,effects:t,cleanup:e=>this.addCleanup(e)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(r=>r[1]).filter(r=>gk(r)).map(r=>OSe(r))}get parent(){return Cs(this.el.parentElement)}inscribeSnapshotAndEffectsOnElement(){let t=this.el;t.setAttribute("wire:snapshot",this.snapshotEncoded);let e=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(e.url=this.originalEffects.url),this.originalEffects.scripts&&(e.scripts=this.originalEffects.scripts),t.setAttribute("wire:effects",JSON.stringify(e))}addJsAction(t,e){this.jsActions[t]=e}hasJsAction(t){return this.jsActions[t]!==void 0}getJsAction(t){return this.jsActions[t].bind(this.$wire)}getJsActions(){return this.jsActions}addCleanup(t){this.cleanups.push(t)}cleanup(){for(delete this.el.__livewire;this.cleanups.length>0;)this.cleanups.pop()()}},$o={};function SSe(t){let e=new _Se(t);if($o[e.id])throw"Component already registered";return Gr("component.init",{component:e,cleanup:n=>e.addCleanup(n)}),$o[e.id]=e,e}function kSe(t){let e=$o[t];e&&(e.cleanup(),delete $o[t])}function gk(t){return!!$o[t]}function OSe(t){let e=$o[t];if(!e)throw"Component not found: "+t;return e}function Cs(t,e=!0){let r=Alpine.findClosest(t,n=>n.__livewire);if(!r){if(e)throw"Could not find Livewire component in DOM tree";return}return r.__livewire}function yk(t){return Object.values($o).filter(e=>t==e.name)}function ASe(t){return yk(t).map(e=>e.$wire)}function MSe(t){let e=$o[t];return e&&e.$wire}function LSe(){return Object.values($o)[0].$wire}function DSe(){return Object.values($o)}function bk(t,e,r){ih(t.el,e,r)}function ISe(t,e){ih(window,t,e)}function pc(t,e,r){ih(t.el,e,r,!1)}function Wy(t,e,r){yk(t).forEach(i=>{ih(i.el,e,r,!1)})}function RSe(t,e,r){t.el.addEventListener(e,n=>{r(n.detail)})}function NSe(t,e){let r=n=>{n.__livewire&&e(n.detail)};return window.addEventListener(t,r),()=>{window.removeEventListener(t,r)}}function ih(t,e,r,n=!0){typeof r=="string"&&(r=[r]);let i=new CustomEvent(e,{bubbles:n,detail:r});i.__livewire={name:e,params:r,receivedBy:[]},t.dispatchEvent(i)}var Hf=new Set;function ru(t){return t.match(new RegExp("wire:"))}function Kd(t,e){let[r,...n]=e.replace(new RegExp("wire:"),"").split(".");return new HSe(r,n,e,t)}function Wa(t,e){Hf.has(t)||(Hf.add(t),yr("directive.init",({el:r,component:n,directive:i,cleanup:a})=>{i.value===t&&e({el:r,directive:i,component:n,$wire:n.$wire,cleanup:a})}))}function PSe(t,e){Hf.has(t)||(Hf.add(t),yr("directive.global.init",({el:r,directive:n,cleanup:i})=>{n.value===t&&e({el:r,directive:n,cleanup:i})}))}function Vy(t){return new FSe(t)}function BSe(t){return Hf.has(t)}var FSe=class{constructor(t){this.el=t,this.directives=this.extractTypeModifiersAndValue()}all(){return this.directives}has(t){return this.directives.map(e=>e.value).includes(t)}missing(t){return!this.has(t)}get(t){return this.directives.find(e=>e.value===t)}extractTypeModifiersAndValue(){return Array.from(this.el.getAttributeNames().filter(t=>ru(t)).map(t=>Kd(this.el,t)))}},HSe=class{constructor(t,e,r,n){this.rawName=this.raw=r,this.el=n,this.eventContext,this.value=t,this.modifiers=e,this.expression=this.el.getAttribute(this.rawName)}get method(){return this.parseOutMethodsAndParams(this.expression)[0].method}get methods(){return this.parseOutMethodsAndParams(this.expression)}get params(){return this.parseOutMethodsAndParams(this.expression)[0].params}parseOutMethodsAndParams(t){let e=[],r=this.splitAndParseMethods(t);for(let{method:n,paramString:i}of r){let a=[];if(i.length>0){let o=function(){for(var s=arguments.length,u=new Array(s),f=0;f<s;f++)u[f]=arguments[f];return[].concat(u)};try{a=Alpine.evaluate(document,"argumentsToArray("+i+")",{scope:{argumentsToArray:o}})}catch(s){console.warn("Failed to parse parameters:",i,s),a=[]}}e.push({method:n,params:a})}return e}splitAndParseMethods(t){let e=[],r="",n=0,i=!1,a=null,o=t.trim();for(let s=0;s<o.length;s++){let u=o[s];i?(u===a&&o[s-1]!=="\\"&&(i=!1,a=null),r+=u):u==='"'||u==="'"?(i=!0,a=u,r+=u):u==="("?(n++,r+=u):u===")"?(n--,r+=u):u===","&&n===0?(e.push(this.parseMethodCall(r.trim())),r=""):r+=u}return r.trim().length>0&&e.push(this.parseMethodCall(r.trim())),e}parseMethodCall(t){let e=t.match(/^([^(]+)\(/);if(!e)return{method:t.trim(),paramString:""};let r=e[1].trim(),n=e[0].length-1,i=t.lastIndexOf(")");if(i===-1)throw new Error(`Missing closing parenthesis for method "${r}"`);let a=t.slice(n+1,i).trim();return{method:r,paramString:a}}},qSe=Nr(V1e()),$Se=Nr(G1e());function USe(t){let e=()=>{let r,n;try{n=localStorage}catch(i){console.error(i),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let a=new Map;n={getItem:a.get.bind(a),setItem:a.set.bind(a)}}return t.interceptor((i,a,o,s,u)=>{let f=r||`_x_${s}`,d=xE(f,n)?CE(f,n):i;return o(d),t.effect(()=>{let v=a();EE(f,v,n),o(v)}),d},i=>{i.as=a=>(r=a,i),i.using=a=>(n=a,i)})};Object.defineProperty(t,"$persist",{get:()=>e()}),t.magic("persist",e),t.persist=(r,{get:n,set:i},a=localStorage)=>{let o=xE(r,a)?CE(r,a):n();i(o),t.effect(()=>{let s=n();EE(r,s,a),i(s)})}}function xE(t,e){return e.getItem(t)!==null}function CE(t,e){let r=e.getItem(t);if(r!==void 0)return JSON.parse(r)}function EE(t,e,r){r.setItem(t,JSON.stringify(e))}var jSe=USe,zSe=Nr(K1e()),WSe=Nr(J1e()),VSe=Nr(Y1e()),pg=class{constructor(t,e){this.url=t,this.html=e}},Io={currentKey:null,currentUrl:null,keys:[],lookup:{},limit:10,has(t){return this.lookup[t]!==void 0},retrieve(t){let e=this.lookup[t];if(e===void 0)throw"No back button cache found for current location: "+t;return e},replace(t,e){this.has(t)?this.lookup[t]=e:this.push(t,e)},push(t,e){this.lookup[t]=e;let r=this.keys.indexOf(t);r>-1&&this.keys.splice(r,1),this.keys.unshift(t),this.trim()},trim(){for(let t of this.keys.splice(this.limit))delete this.lookup[t]}},Jd=null;function wk(t){Jd=t}function GSe(){let t=new URL(window.location.href,document.baseURI);xk(t,document.documentElement.outerHTML)}function KSe(t,e){let r=document.documentElement.outerHTML;Io.replace(t,new pg(e,r))}function JSe(t,e){let r;t(n=>r=n),window.addEventListener("popstate",n=>{let i=n.state||{},a=i.alpine||{};if(Jd&&(Jd<200||Jd>=300))return window.location.href=a.url;if(Object.keys(i).length!==0&&a.snapshotIdx)if(Io.has(a.snapshotIdx)){let o=Io.retrieve(a.snapshotIdx);e(o.html,o.url,Io.currentUrl,Io.currentKey)}else r(a.url)})}function YSe(t,e){XSe(e,t)}function XSe(t,e){Ck("pushState",t,e)}function xk(t,e){Ck("replaceState",t,e)}function Ck(t,e,r){let n=e.toString()+"-"+Math.random();t==="pushState"?Io.push(n,new pg(e,r)):Io.replace(n=Io.currentKey??n,new pg(e,r));let i=history.state||{};i.alpine||(i.alpine={}),i.alpine.snapshotIdx=n,i.alpine.url=e.toString();try{history[t](i,JSON.stringify(document.title),e),Io.currentKey=n,Io.currentUrl=e}catch(a){a instanceof DOMException&&a.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+e),console.error(a)}}function QSe(t,e){let r=a=>!a.isTrusted,n=a=>a.which>1||a.altKey||a.ctrlKey||a.metaKey||a.shiftKey,i=a=>a.which!==13||a.altKey||a.ctrlKey||a.metaKey||a.shiftKey;t.addEventListener("click",a=>{if(r(a)){a.preventDefault(),e(o=>o());return}n(a)||a.preventDefault()}),t.addEventListener("mousedown",a=>{n(a)||(a.preventDefault(),e(o=>{let s=u=>{u.preventDefault(),o(),t.removeEventListener("mouseup",s)};t.addEventListener("mouseup",s)}))}),t.addEventListener("keydown",a=>{i(a)||(a.preventDefault(),e(o=>o()))})}function ZSe(t,e=60,r){t.addEventListener("mouseenter",n=>{let i=setTimeout(()=>{r(n)},e),a=()=>{clearTimeout(i),t.removeEventListener("mouseleave",a)};t.addEventListener("mouseleave",a)})}function TE(t){return gc(t.getAttribute("href"))}function gc(t){return t!==null&&new URL(t,document.baseURI)}function ah(t){return t.pathname+t.search+t.hash}function eke(t,e){let r=ah(t);Ek(r,(n,i,a)=>{wk(a),e(n,i)})}function Ek(t,e){let r={headers:{"X-Livewire-Navigate":""}};
720Gr("navigate.request",{url:t,options:r});let n,i;fetch(t,r).then(a=>{let o=gc(t);return n=gc(a.url),o.pathname+o.search===n.pathname+n.search&&(n.hash=o.hash),i=a.status,a.text()}).then(a=>{e(a,n,i)})}var ha={},tke=3e4;function _E(t,e){let r=ah(t);ha[r]||(ha[r]={finished:!1,html:null,whenFinished:()=>setTimeout(()=>delete ha[r],tke)},Ek(r,(n,i,a)=>{wk(a),e(n,i)}))}function SE(t,e,r){let n=ha[ah(e)];n.html=t,n.finished=!0,n.finalDestination=r,n.whenFinished()}function rke(t,e,r){let n=ah(t);if(!ha[n])return r();if(ha[n].finished){let i=ha[n].html,a=ha[n].finalDestination;return delete ha[n],e(i,a)}else ha[n].whenFinished=()=>{let i=ha[n].html,a=ha[n].finalDestination;delete ha[n],e(i,a)}}var Gy=Nr(Cn());function kE(t){Gy.default.mutateDom(()=>{t.querySelectorAll("[data-teleport-template]").forEach(e=>e._x_teleport.remove())})}function OE(t){Gy.default.mutateDom(()=>{t.querySelectorAll("[data-teleport-target]").forEach(e=>e.remove())})}function AE(t){Gy.default.walk(t,(e,r)=>{e._x_teleport&&(e._x_teleportPutBack(),r())})}function nke(t){return t.hasAttribute("data-teleport-target")}function ME(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(t=>{t.setAttribute("data-scroll-x",t.scrollLeft),t.setAttribute("data-scroll-y",t.scrollTop)})}function LE(){let t=e=>{e.hasAttribute("data-scroll-x")?(e.scrollTo({top:Number(e.getAttribute("data-scroll-y")),left:Number(e.getAttribute("data-scroll-x")),behavior:"instant"}),e.removeAttribute("data-scroll-x"),e.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{queueMicrotask(()=>{t(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(t)})})}var hg=Nr(Cn()),Sf={};function DE(t){Sf={},document.querySelectorAll("[x-persist]").forEach(e=>{Sf[e.getAttribute("x-persist")]=e,t(e),hg.default.mutateDom(()=>{e.remove()})})}function IE(t){let e=[];document.querySelectorAll("[x-persist]").forEach(r=>{let n=Sf[r.getAttribute("x-persist")];n&&(e.push(r.getAttribute("x-persist")),n._x_wasPersisted=!0,t(n,r),hg.default.mutateDom(()=>{r.replaceWith(n)}))}),Object.entries(Sf).forEach(([r,n])=>{e.includes(r)||hg.default.destroyTree(n)}),Sf={}}function ike(t){return t.hasAttribute("x-persist")}var oh=Nr(X1e());oh.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1,parent:"body"});lke();var vg=!1;function ake(){vg=!0,setTimeout(()=>{vg&&oh.default.start()},150)}function oke(){vg=!1,oh.default.done()}function ske(){oh.default.remove()}function lke(){let t=document.createElement("style");t.innerHTML=`/* Make clicks pass-through */
721
722    #nprogress {
723      pointer-events: none;
724    }
725
726    #nprogress .bar {
727      background: var(--livewire-progress-bar-color, #29d);
728
729      position: fixed;
730      z-index: 1031;
731      top: 0;
732      left: 0;
733
734      width: 100%;
735      height: 2px;
736    }
737
738    /* Fancy blur effect */
739    #nprogress .peg {
740      display: block;
741      position: absolute;
742      right: 0px;
743      width: 100px;
744      height: 100%;
745      box-shadow: 0 0 10px var(--livewire-progress-bar-color, #29d), 0 0 5px var(--livewire-progress-bar-color, #29d);
746      opacity: 1.0;
747
748      -webkit-transform: rotate(3deg) translate(0px, -4px);
749          -ms-transform: rotate(3deg) translate(0px, -4px);
750              transform: rotate(3deg) translate(0px, -4px);
751    }
752
753    /* Remove these to get rid of the spinner */
754    #nprogress .spinner {
755      display: block;
756      position: fixed;
757      z-index: 1031;
758      top: 15px;
759      right: 15px;
760    }
761
762    #nprogress .spinner-icon {
763      width: 18px;
764      height: 18px;
765      box-sizing: border-box;
766
767      border: solid 2px transparent;
768      border-top-color: var(--livewire-progress-bar-color, #29d);
769      border-left-color: var(--livewire-progress-bar-color, #29d);
770      border-radius: 50%;
771
772      -webkit-animation: nprogress-spinner 400ms linear infinite;
773              animation: nprogress-spinner 400ms linear infinite;
774    }
775
776    .nprogress-custom-parent {
777      overflow: hidden;
778      position: relative;
779    }
780
781    .nprogress-custom-parent #nprogress .spinner,
782    .nprogress-custom-parent #nprogress .bar {
783      position: absolute;
784    }
785
786    @-webkit-keyframes nprogress-spinner {
787      0%   { -webkit-transform: rotate(0deg); }
788      100% { -webkit-transform: rotate(360deg); }
789    }
790    @keyframes nprogress-spinner {
791      0%   { transform: rotate(0deg); }
792      100% { transform: rotate(360deg); }
793    }
794    `;let e=tSe();e&&(t.nonce=e),document.head.appendChild(t)}function RE(t){Tk()&&t.querySelectorAll(":popover-open").forEach(e=>{e.setAttribute("data-navigate-popover-open","");let r=e.getAnimations();e._pausedAnimations=r.map(n=>({keyframes:n.effect.getKeyframes(),options:{duration:n.effect.getTiming().duration,easing:n.effect.getTiming().easing,fill:n.effect.getTiming().fill,iterations:n.effect.getTiming().iterations},currentTime:n.currentTime,playState:n.playState})),r.forEach(n=>n.pause())})}function NE(t){Tk()&&t.querySelectorAll("[data-navigate-popover-open]").forEach(e=>{e.removeAttribute("data-navigate-popover-open"),queueMicrotask(()=>{e.isConnected&&(e.showPopover(),e.getAnimations().forEach(r=>r.finish()),e._pausedAnimations&&(e._pausedAnimations.forEach(({keyframes:r,options:n,currentTime:i,now:a,playState:o})=>{let s=e.animate(r,n);s.currentTime=i}),delete e._pausedAnimations))})})}function Tk(){return typeof document.createElement("div").showPopover=="function"}var mm=[],_k=["data-csrf","nonce","aria-hidden"];function PE(t,e){let r=new DOMParser().parseFromString(t,"text/html"),n=r.documentElement,i=document.adoptNode(r.body),a=document.adoptNode(r.head);mm=mm.concat(Array.from(document.body.querySelectorAll("script")).map(u=>Ak(Mk(u.outerHTML,_k))));let o=()=>{};cke(n),fke(a).finally(()=>{o()}),uke(i,mm);let s=document.body;document.body.replaceWith(i),Alpine.destroyTree(s),e(u=>o=u)}function uke(t,e){t.querySelectorAll("script").forEach(r=>{if(r.hasAttribute("data-navigate-once")){let n=Ak(Mk(r.outerHTML,_k));if(e.includes(n))return}r.replaceWith(Sk(r))})}function cke(t){let e=document.documentElement;Array.from(t.attributes).forEach(r=>{const n=r.name,i=r.value;e.getAttribute(n)!==i&&e.setAttribute(n,i)}),Array.from(e.attributes).forEach(r=>{t.hasAttribute(r.name)||e.removeAttribute(r.name)})}function fke(t){let e=Array.from(document.head.children),r=e.map(a=>a.outerHTML),n=document.createDocumentFragment(),i=[];for(let a of Array.from(t.children))if(FE(a))if(r.includes(a.outerHTML))n.appendChild(a);else if(kk(a)&&pke(a,e)&&setTimeout(()=>window.location.reload()),Ok(a))try{i.push(dke(Sk(a)))}catch{}else document.head.appendChild(a);for(let a of Array.from(document.head.children))FE(a)||a.remove();for(let a of Array.from(t.children))a.tagName.toLowerCase()!=="noscript"&&document.head.appendChild(a);return Promise.all(i)}async function dke(t){return new Promise((e,r)=>{t.src?(t.onload=()=>e(),t.onerror=()=>r()):e(),document.head.appendChild(t)})}function Sk(t){let e=document.createElement("script");e.textContent=t.textContent,e.async=t.async;for(let r of t.attributes)e.setAttribute(r.name,r.value);return e}function kk(t){return t.hasAttribute("data-navigate-track")}function pke(t,e){let[r,n]=BE(t);return e.some(i=>{if(!kk(i))return!1;let[a,o]=BE(i);if(a===r&&n!==o)return!0})}function BE(t){return(Ok(t)?t.src:t.href).split("?")}function FE(t){return t.tagName.toLowerCase()==="link"&&t.getAttribute("rel").toLowerCase()==="stylesheet"||t.tagName.toLowerCase()==="style"||t.tagName.toLowerCase()==="script"}function Ok(t){return t.tagName.toLowerCase()==="script"}function Ak(t){return t.split("").reduce((e,r)=>(e=(e<<5)-e+r.charCodeAt(0),e&e),0)}function Mk(t,e){let r=t;return e.forEach(n=>{const i=new RegExp(`${n}="[^"]*"|${n}='[^']*'`,"g");r=r.replace(i,"")}),r=r.replaceAll(" ",""),r.trim()}var gm=!0;function hke(t){t.navigate=(r,n={})=>{let{preserveScroll:i=!1}=n,a=gc(r);fs("alpine:navigate",{url:a,history:!1,cached:!1})||e(a,{preserveScroll:i})},t.navigate.disableProgressBar=()=>{gm=!1},t.addInitSelector(()=>`[${t.prefixed("navigate")}]`),t.directive("navigate",(r,{modifiers:n})=>{let i=n.includes("hover"),a=n.includes("preserve-scroll");i&&ZSe(r,60,()=>{let o=TE(r);o&&_E(o,(s,u)=>{SE(s,o,u)})}),QSe(r,o=>{let s=TE(r);s&&(_E(s,(u,f)=>{SE(u,s,f)}),o(()=>{fs("alpine:navigate",{url:s,history:!1,cached:!1})||e(s,{preserveScroll:a})}))})});function e(r,{preserveScroll:n=!1,shouldPushToHistoryState:i=!0}){gm&&ake(),vke(r,(a,o)=>
794{fs("alpine:navigating"),ME(),mke(),GSe(),HE(t,s=>{DE(u=>{kE(u),RE(u)}),i?YSe(a,o):xk(o,a),PE(a,u=>{OE(document.body),IE((f,d)=>{AE(f),NE(f)}),!n&&LE(),u(()=>{s(()=>{setTimeout(()=>{}),qE(t),fs("alpine:navigated"),gm&&oke()})})})})})}JSe(r=>{r(n=>{let i=gc(n);fs("alpine:navigate",{url:i,history:!0,cached:!1})||e(i,{shouldPushToHistoryState:!1})})},(r,n,i,a)=>{let o=gc(n);fs("alpine:navigate",{url:o,history:!0,cached:!0})||(ME(),fs("alpine:navigating"),KSe(i,a),HE(t,u=>{DE(f=>{kE(f),RE(f)}),PE(r,()=>{ske(),OE(document.body),IE((f,d)=>{AE(f),NE(f)}),LE(),u(()=>{qE(t),fs("alpine:navigated")})})}))}),setTimeout(()=>{fs("alpine:navigated")})}function vke(t,e){rke(t,e,()=>{eke(t,e)})}function HE(t,e){t.stopObservingMutations(),e(r=>{t.startObservingMutations(),queueMicrotask(()=>{r()})})}function fs(t,e){let r=new CustomEvent(t,{cancelable:!0,bubbles:!0,detail:e});return document.dispatchEvent(r),r.defaultPrevented}function qE(t){t.initTree(document.body,void 0,(e,r)=>{e._x_wasPersisted&&r()})}function mke(){let t=function(e,r){Alpine.walk(e,(n,i)=>{ike(n)&&i(),nke(n)?i():r(n,i)})};Alpine.destroyTree(document.body,t)}function gke(t){t.magic("queryString",(e,{interceptor:r})=>{let n,i=!1,a=!1;return r((o,s,u,f,d)=>{let v=n||f,{initial:m,replace:b,push:x,pop:T}=mg(v,o,i);return u(m),a?(t.effect(()=>x(s())),T(async S=>{u(S),await Promise.resolve()})):t.effect(()=>b(s())),m},o=>{o.alwaysShow=()=>(i=!0,o),o.usePush=()=>(a=!0,o),o.as=s=>(n=s,o)})}),t.history={track:mg}}function mg(t,e,r=!1,n=null){let{has:i,get:a,set:o,remove:s}=bke(),u=new URL(window.location.href),f=i(u,t),d=f?a(u,t):e,v=JSON.stringify(d),m=[!1,null,void 0].includes(n)?e:JSON.stringify(n),b=M=>JSON.stringify(M)===v,x=M=>JSON.stringify(M)===m;r&&(u=o(u,t,d)),$E(u,t,{value:d});let T=!1,S=(M,L)=>{if(T)return;let P=new URL(window.location.href);!r&&!f&&b(L)||L===void 0||!r&&x(L)?P=s(P,t):P=o(P,t,L),M(P,t,{value:L})};return{initial:d,replace(M){S($E,M)},push(M){S(yke,M)},pop(M){let L=P=>{!P.state||!P.state.alpine||Object.entries(P.state.alpine).forEach(([A,{value:H}])=>{if(A!==t)return;T=!0;let W=M(H);W instanceof Promise?W.finally(()=>T=!1):T=!1})};return window.addEventListener("popstate",L),()=>window.removeEventListener("popstate",L)}}}function $E(t,e,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n.alpine[e]=Ky(r);try{window.history.replaceState(n,"",t.toString())}catch(i){console.error(i)}}function yke(t,e,r){let n=window.history.state||{};n.alpine||(n.alpine={}),n={alpine:{...n.alpine,[e]:Ky(r)}};try{window.history.pushState(n,"",t.toString())}catch(i){console.error(i)}}function Ky(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))}function bke(){return{has(t,e){let r=t.search;if(!r)return!1;let n=Rd(r,e);return Object.keys(n).includes(e)},get(t,e){let r=t.search;return r?Rd(r,e)[e]:!1},set(t,e,r){let n=Rd(t.search,e);return n[e]=Lk(Ky(r)),t.search=UE(n),t},remove(t,e){let r=Rd(t.search,e);return delete r[e],t.search=UE(r),t}}}function Lk(t){if(!Uy(t))return t;for(let e in t)t[e]===null?delete t[e]:t[e]=Lk(t[e]);return t}function UE(t){let e=i=>typeof i=="object"&&i!==null,r=(i,a={},o="")=>(Object.entries(i).forEach(([s,u])=>{let f=o===""?s:`${o}[${s}]`;u===null?a[f]="":e(u)?a={...a,...r(u,a,f)}:a[f]=encodeURIComponent(u).replaceAll("%20","+").replaceAll("%2C",",")}),a),n=r(t);return Object.entries(n).map(([i,a])=>`${i}=${a}`).join("&")}function Rd(t,e){if(t=t.replace("?",""),t==="")return{};let r=(a,o,s)=>{let[u,f,...d]=a.split(".");if(!f)return s[a]=o;s[u]===void 0&&(s[u]=isNaN(f)?{}:[]),r([f,...d].join("."),o,s[u])},n=t.split("&").map(a=>a.split("=")),i=Object.create(null);return n.forEach(([a,o])=>{if(typeof o>"u")return;o=decodeURIComponent(o.replaceAll("+","%20"));let s=decodeURIComponent(a);if(!(s.includes("[")&&s.startsWith(e)))i[a]=o;else{let f=s.replaceAll("[",".").replaceAll("]","");r(f,o,i)}}),i}var wke=Nr(Q1e()),xke=Nr(Z1e()),Sn=Nr(Cn());function Cke(){setTimeout(()=>Eke()),fm(document,"livewire:init"),fm(document,"livewire:initializing"),Sn.default.plugin(wke.default),Sn.default.plugin(gke),Sn.default.plugin(zSe.default),Sn.default.plugin(WSe.default),Sn.default.plugin(qSe.default),Sn.default.plugin(VSe.default),Sn.default.plugin($Se.default),Sn.default.plugin(jSe),Sn.default.plugin(hke),Sn.default.plugin(xke.default),Sn.default.addRootSelector(()=>"[wire\\:id]"),Sn.default.onAttributesAdded((t,e)=>{if(!Array.from(e).some(n=>ru(n.name)))return;let r=Cs(t,!1);r&&e.forEach(n=>{if(!ru(n.name))return;let i=Kd(t,n.name);Gr("directive.init",{el:t,component:r,directive:i,cleanup:a=>{Sn.default.onAttributeRemoved(t,i.raw,a)}})})}),Sn.default.interceptInit(Sn.default.skipDuringClone(t=>{if(!Array.from(t.attributes).some(n=>ru(n.name)))return;if(t.hasAttribute("wire:id")&&!t.__livewire&&!gk(t.getAttribute("wire:id"))){let n=SSe(t);Sn.default.onAttributeRemoved(t,"wire:id",()=>{kSe(n.id)})}let e=Array.from(t.getAttributeNames()).filter(n=>ru(n)).map(n=>Kd(t,n));e.forEach(n=>{Gr("directive.global.init",{el:t,directive:n,cleanup:i=>{Sn.default.onAttributeRemoved(t,n.raw,i)}})});let r=Cs(t,!1);r&&(Gr("element.init",{el:t,component:r}),e.forEach(n=>{Gr("directive.init",{el:t,component:r,directive:n,cleanup:i=>{Sn.default.onAttributeRemoved(t,n.raw,i)}})}))},t=>{if(!Array.from(t.attributes).some(r=>ru(r.name)))return;Array.from(t.getAttributeNames()).filter(r=>ru(r)).map(r=>
794Kd(t,r)).forEach(r=>{Gr("directive.global.init",{el:t,directive:r,cleanup:n=>{Sn.default.onAttributeRemoved(t,r.raw,n)}})})})),Sn.default.start(),setTimeout(()=>window.Livewire.initialRenderIsFinished=!0),fm(document,"livewire:initialized")}function Eke(){let t=document.querySelector("script[data-update-uri][data-csrf]");if(!t)return;let e=t.closest("[wire\\:id]");e&&console.warn("Livewire: missing closing tags found. Ensure your template elements contain matching closing tags.",e)}var Jy=Nr(Cn());yr("effect",({component:t,effects:e})=>{Tke(t,e.listeners||[])});function Tke(t,e){e.forEach(r=>{let n=i=>{i.__livewire&&i.__livewire.receivedBy.push(t),t.$wire.call("__dispatch",r,i.detail||{})};window.addEventListener(r,n),t.addCleanup(()=>window.removeEventListener(r,n)),t.el.addEventListener(r,i=>{i.__livewire&&(i.bubbles||(i.__livewire&&i.__livewire.receivedBy.push(t.id),t.$wire.call("__dispatch",r,i.detail||{})))})})}var jE=Nr(Cn()),nc=new WeakMap,kp=new Set;yr("payload.intercept",async({assets:t})=>{if(t)for(let[e,r]of Object.entries(t))await kke(e,async()=>{await Oke(r)})});yr("component.init",({component:t})=>{let e=t.snapshot.memo.assets;e&&e.forEach(r=>{kp.has(r)||kp.add(r)})});yr("effect",({component:t,effects:e})=>{let r=e.scripts;r&&Object.entries(r).forEach(([n,i])=>{_ke(t,n,()=>{let a=Ske(i);jE.default.dontAutoEvaluateFunctions(()=>{jE.default.evaluate(t.el,a,{$wire:t.$wire,$js:t.$wire.$js})})})})});function _ke(t,e,r){if(nc.has(t)&&nc.get(t).includes(e))return;r(),nc.has(t)||nc.set(t,[]);let n=nc.get(t);n.push(e),nc.set(t,n)}function Ske(t){let r=/<script\b[^>]*>([\s\S]*?)<\/script>/gm.exec(t);return r&&r[1]?r[1].trim():""}async function kke(t,e){kp.has(t)||(await e(),kp.add(t))}async function Oke(t){let e=new DOMParser().parseFromString(t,"text/html"),r=document.adoptNode(e.head);for(let n of r.children)try{await Ake(n)}catch{}}async function Ake(t){return new Promise((e,r)=>{if(Mke(t)){let n=Lke(t);n.src?(n.onload=()=>e(),n.onerror=()=>r()):e(),document.head.appendChild(n)}else document.head.appendChild(t),e()})}function Mke(t){return t.tagName.toLowerCase()==="script"}function Lke(t){let e=document.createElement("script");e.textContent=t.textContent,e.async=t.async;for(let r of t.attributes)e.setAttribute(r.name,r.value);return e}var gg=Nr(Cn());gg.default.magic("js",t=>Cs(t).$wire.js);yr("effect",({component:t,effects:e})=>{let r=e.js,n=e.xjs;r&&Object.entries(r).forEach(([i,a])=>{TSe(t,i,()=>{gg.default.evaluate(t.el,a)})}),n&&n.forEach(({expression:i,params:a})=>{a=Object.values(a),gg.default.evaluate(t.el,i,{scope:t.jsActions,params:a})})});var Dke=Nr(Cn());function Ike(t,e,r){let n=e.parentElement?e.parentElement.tagName.toLowerCase():"div",i=customElements.get(n);n=i?i.name:n;let a=document.createElement(n);a.innerHTML=r;let o;try{o=Cs(e.parentElement)}catch{}o&&(a.__livewire=o);let s=a.firstElementChild;s.setAttribute("wire:snapshot",t.snapshotEncoded);let u={...t.effects};delete u.html,s.setAttribute("wire:effects",JSON.stringify(u)),s.__livewire=t,Gr("morph",{el:e,toEl:s,component:t});let f={};e.querySelectorAll("[wire\\:id]").forEach(d=>{f[d.getAttribute("wire:id")]=d}),s.querySelectorAll("[wire\\:id]").forEach(d=>{if(d.hasAttribute("wire:snapshot"))return;let v=d.getAttribute("wire:id"),m=f[v];m&&d.replaceWith(m.cloneNode(!0))}),Dke.default.morph(e,s,{updating:(d,v,m,b,x)=>{if(!ic(d)){if(Gr("morph.updating",{el:d,toEl:v,component:t,skip:b,childrenOnly:m,skipChildren:x}),d.__livewire_replace===!0&&(d.innerHTML=v.innerHTML),d.__livewire_replace_self===!0)return d.outerHTML=v.outerHTML,b();if(d.__livewire_ignore===!0)return b();if(d.__livewire_ignore_self===!0&&m(),d.__livewire_ignore_children===!0)return x();if(zE(d)&&d.getAttribute("wire:id")!==t.id)return b();zE(d)&&(v.__livewire=t)}},updated:d=>{ic(d)||Gr("morph.updated",{el:d,component:t})},removing:(d,v)=>{ic(d)||Gr("morph.removing",{el:d,component:t,skip:v})},removed:d=>{ic(d)||Gr("morph.removed",{el:d,component:t})},adding:d=>{Gr("morph.adding",{el:d,component:t})},added:d=>{ic(d)||(Cs(d).id,Gr("morph.added",{el:d}))},key:d=>{if(!ic(d))return d.hasAttribute("wire:key")?d.getAttribute("wire:key"):d.hasAttribute("wire:id")?d.getAttribute("wire:id"):d.id},lookahead:!1}),Gr("morphed",{el:e,component:t})}function ic(t){return typeof t.hasAttribute!="function"}function zE(t){return t.hasAttribute("wire:id")}yr("effect",({component:t,effects:e})=>{let r=e.html;r&&queueMicrotask(()=>{queueMicrotask(()=>{Ike(t,t.el,r)})})});yr("effect",({component:t,effects:e})=>{queueMicrotask(()=>{queueMicrotask(()=>{queueMicrotask(()=>{Rke(t,e.dispatches||[])})})})});function Rke(t,e){e.forEach(({name:r,params:n={},self:i=!1,to:a})=>{i?pc(t,r,n):a?Wy(a,r,n):bk(t,r,n)})}var Nke=Nr(Cn()),yg=new eSe;yr("directive.init",({el:t,directive:e,cleanup:r,component:n})=>setTimeout(()=>{e.value==="submit"&&t.addEventListener("submit",()=>{let i=e.expression.startsWith("$parent")?n.parent.id:n.id,a=Pke(t);yg.add(i,a)})}));yr("commit",({component:t,respond:e})=>{e(()=>{yg.each(t.id,r=>r()),yg.remove(t.id)})});function Pke(t){let e=[];return Nke.default.walk(t,(r,n)=>{if(t.contains(r)){if(r.hasAttribute("wire:ignore"))return n();Bke(r)?e.push(Hke(r)):Fke(r)&&e.push(qke(r))}}),()=>{for(;e.length>0;)e.shift()()}}function Bke(t){let e=t.tagName.toLowerCase();return e==="select"||e==="button"&&t.type==="submit"||e==="input"&&(t.type==="checkbox"||t.type==="radio")}function Fke(t){return["input","textarea"].includes(t.tagName.toLowerCase())}function Hke(t){let e=t.disabled?()=>{}:()=>t.disabled=!1;return t.disabled=!0,e}function qke(t){let e=t.readOnly?()=>{}:()=>t.readOnly=!1;return t.readOnly=!0,e}yr("commit.pooling",({commits:t})=>
794{t.forEach(e=>{let r=e.component;Dk(r,n=>{n.$wire.$commit()})})});yr("commit.pooled",({pools:t})=>{$ke(t).forEach(r=>{let n=r.component;Dk(n,i=>{Uke(t,n,i)})})});function $ke(t){let e=[];return t.forEach(r=>{r.commits.forEach(n=>{e.push(n)})}),e}function Uke(t,e,r){let n=WE(t,e),i=WE(t,r),a=i.findCommitByComponent(r);i.delete(a),n.add(a),t.forEach(o=>{o.empty()&&t.delete(o)})}function WE(t,e){for(let[r,n]of t.entries())if(n.hasCommitFor(e))return n}function Dk(t,e){Ik(t,r=>{(jke(r)||zke(r))&&e(r)})}function jke(t){return!!t.snapshot.memo.props}function zke(t){return!!t.snapshot.memo.bindings}function Ik(t,e){t.children.forEach(r=>{e(r),Ik(r,e)})}yr("commit",({succeed:t})=>{t(({effects:e})=>{let r=e.download;if(!r)return;let n=window.webkitURL||window.URL,i=n.createObjectURL(Wke(r.content,r.contentType)),a=document.createElement("a");a.style.display="none",a.href=i,a.download=r.name,document.body.appendChild(a),a.click(),setTimeout(function(){n.revokeObjectURL(i)},0)})});function Wke(t,e="",r=512){const n=atob(t),i=[];e===null&&(e="");for(let a=0;a<n.length;a+=r){let o=n.slice(a,a+r),s=new Array(o.length);for(let f=0;f<o.length;f++)s[f]=o.charCodeAt(f);let u=new Uint8Array(s);i.push(u)}return new Blob(i,{type:e})}var bg=new WeakSet,wg=new WeakSet;yr("component.init",({component:t})=>{let e=t.snapshot.memo;e.lazyLoaded!==void 0&&(wg.add(t),e.lazyIsolated!==void 0&&e.lazyIsolated===!1&&bg.add(t))});yr("commit.pooling",({commits:t})=>{t.forEach(e=>{wg.has(e.component)&&(bg.has(e.component)?(e.isolate=!1,bg.delete(e.component)):e.isolate=!0,wg.delete(e.component))})});var VE=Nr(Cn());yr("effect",({component:t,effects:e,cleanup:r})=>{let n=e.url;n&&Object.entries(n).forEach(([i,a])=>{let{name:o,as:s,use:u,alwaysShow:f,except:d}=Vke(i,a);s||(s=o);let v=[!1,null,void 0].includes(d)?ms(t.ephemeral,o):d,{replace:m,push:b,pop:x}=mg(s,v,f,d);if(u==="replace"){let T=VE.default.effect(()=>{m(ms(t.reactive,o))});r(()=>VE.default.release(T))}else if(u==="push"){let T=yr("commit",({component:M,succeed:L})=>{if(t!==M)return;let P=ms(t.canonical,o);L(()=>{let A=ms(t.canonical,o);JSON.stringify(P)!==JSON.stringify(A)&&b(A)})}),S=x(async M=>{await t.$wire.set(o,M),document.querySelectorAll("input").forEach(L=>{L._x_forceModelUpdate&&L._x_forceModelUpdate(L._x_model.get())})});r(()=>{T(),S()})}})});function Vke(t,e){let r={use:"replace",alwaysShow:!1};return typeof e=="string"?{...r,name:e,as:e}:{...{...r,name:t,as:t},...e}}yr("request",({options:t})=>{window.Echo&&(t.headers["X-Socket-ID"]=window.Echo.socketId())});yr("effect",({component:t,effects:e})=>{(e.listeners||[]).forEach(n=>{if(n.startsWith("echo")){if(typeof window.Echo>"u"){console.warn("Laravel Echo cannot be found");return}let i=n.split(/(echo:|echo-)|:|,/);i[1]=="echo:"&&i.splice(2,0,"channel",void 0),i[2]=="notification"&&i.push(void 0,void 0);let[a,o,s,u,f,d,v]=i;if(["channel","private","encryptedPrivate"].includes(s)){let m=b=>pc(t,n,[b]);window.Echo[s](f).listen(v,m),t.addCleanup(()=>{window.Echo[s](f).stopListening(v,m)})}else if(s=="presence")if(["here","joining","leaving"].includes(v))window.Echo.join(f)[v](m=>{pc(t,n,[m])});else{let m=b=>pc(t,n,[b]);window.Echo.join(f).listen(v,m),t.addCleanup(()=>{window.Echo.leaveChannel(f)})}else s=="notification"?window.Echo.private(f).notification(m=>{pc(t,n,[m])}):console.warn("Echo channel type not yet supported")}})});var Rk=new WeakSet;yr("component.init",({component:t})=>{t.snapshot.memo.isolate===!0&&Rk.add(t)});yr("commit.pooling",({commits:t})=>{t.forEach(e=>{Rk.has(e.component)&&(e.isolate=!0)})});Kke()&&Alpine.navigate.disableProgressBar();document.addEventListener("alpine:navigate",t=>Yy("livewire:navigate",t));document.addEventListener("alpine:navigating",t=>Yy("livewire:navigating",t));document.addEventListener("alpine:navigated",t=>Yy("livewire:navigated",t));function Yy(t,e){let r=new CustomEvent(t,{cancelable:!0,bubbles:!0,detail:e.detail});document.dispatchEvent(r),r.defaultPrevented&&e.preventDefault()}function Gke(t,e,r){t.redirectUsingNavigate?Alpine.navigate(e):r()}function Kke(){return!!(document.querySelector("[data-no-progress-bar]")||window.livewireScriptConfig&&window.livewireScriptConfig.progressBar===!1)}yr("effect",({effects:t})=>{if(!t.redirect)return;let e=t.redirect;Gke(t,e,()=>{window.location.href=e})});var ym=Nr(Cn());yr("morph.added",({el:t})=>{t.__addedByMorph=!0});Wa("transition",({el:t,directive:e,component:r,cleanup:n})=>{for(let o=0;o<t.attributes.length;o++)if(t.attributes[o].name.startsWith("wire:show")){ym.default.bind(t,{[e.rawName.replace("wire:transition","x-transition")]:e.expression});return}let i=ym.default.reactive({state:!t.__addedByMorph});ym.default.bind(t,{[e.rawName.replace("wire:","x-")]:"","x-show"(){return i.state}}),t.__addedByMorph&&setTimeout(()=>i.state=!0);let a=[];a.push(yr("morph.removing",({el:o,skip:s})=>{s(),o.addEventListener("transitionend",()=>{o.remove()}),i.state=!1,a.push(yr("morph",({component:u})=>{u===r&&(o.remove(),a.forEach(f=>f()))}))})),n(()=>
794a.forEach(o=>o()))});var Jke=new ak;function Yke(t,e){Jke.each(t,r=>{r.callback(),r.callback=()=>{}}),e()}var GE=Nr(Cn());yr("directive.init",({el:t,directive:e,cleanup:r,component:n})=>{if(["snapshot","effects","model","init","loading","poll","ignore","id","data","key","target","dirty"].includes(e.value)||BSe(e.value))return;let i=e.rawName.replace("wire:","x-on:");e.value==="submit"&&!e.modifiers.includes("prevent")&&(i=i+".prevent");let a=GE.default.bind(t,{[i](o){let s=()=>{Yke(n,()=>{GE.default.evaluate(t,"$wire."+e.expression,{scope:{$event:o}})})};t.__livewire_confirm?t.__livewire_confirm(()=>{s()},()=>{o.stopImmediatePropagation()}):s()}});r(a)});var Na=Nr(Cn());Na.default.addInitSelector(()=>"[wire\\:navigate]");Na.default.addInitSelector(()=>"[wire\\:navigate\\.hover]");Na.default.addInitSelector(()=>"[wire\\:navigate\\.preserve-scroll]");Na.default.addInitSelector(()=>"[wire\\:navigate\\.preserve-scroll\\.hover]");Na.default.addInitSelector(()=>"[wire\\:navigate\\.hover\\.preserve-scroll]");Na.default.interceptInit(Na.default.skipDuringClone(t=>{t.hasAttribute("wire:navigate")?Na.default.bind(t,{"x-navigate":!0}):t.hasAttribute("wire:navigate.hover")?Na.default.bind(t,{"x-navigate.hover":!0}):t.hasAttribute("wire:navigate.preserve-scroll")?Na.default.bind(t,{"x-navigate.preserve-scroll":!0}):t.hasAttribute("wire:navigate.preserve-scroll.hover")?Na.default.bind(t,{"x-navigate.preserve-scroll.hover":!0}):t.hasAttribute("wire:navigate.hover.preserve-scroll")&&Na.default.bind(t,{"x-navigate.hover.preserve-scroll":!0})}));document.addEventListener("alpine:navigating",()=>{Livewire.all().forEach(t=>{t.inscribeSnapshotAndEffectsOnElement()})});Wa("confirm",({el:t,directive:e})=>{let r=e.expression,n=e.modifiers.includes("prompt");r=r.replaceAll("\\n",`
795`),r===""&&(r="Are you sure?"),t.__livewire_confirm=(i,a)=>{if(n){let[o,s]=r.split("|");s?prompt(o)===s?i():a():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(r)?i():a()}});var Xke=Nr(Cn());Xke.default.addInitSelector(()=>"[wire\\:current]");var xg=new Map;document.addEventListener("livewire:navigated",()=>{xg.forEach(t=>t(new URL(window.location.href)))});PSe("current",({el:t,directive:e,cleanup:r})=>{let n=e.expression,i={exact:e.modifiers.includes("exact"),strict:e.modifiers.includes("strict"),ignore:e.modifiers.includes("ignore")};if(i.ignore||n.startsWith("#")||!t.hasAttribute("href"))return;let a=t.getAttribute("href"),o=new URL(a,window.location.href),s=n.split(" ").filter(String),u=f=>{Qke(o,f,i)?(t.classList.add(...s),t.setAttribute("data-current","")):(t.classList.remove(...s),t.removeAttribute("data-current"))};u(new URL(window.location.href)),xg.set(t,u),r(()=>xg.delete(t))});function Qke(t,e,r){if(t.hostname!==e.hostname)return!1;let n=r.strict?t.pathname:t.pathname.replace(/\/+$/,""),i=r.strict?e.pathname:e.pathname.replace(/\/+$/,"");if(r.exact)return n===i;let a=n.split("/"),o=i.split("/");for(let s=0;s<a.length;s++)if(a[s]!==o[s])return!1;return!0}function su(t,e,r,n=null){if(r=e.modifiers.includes("remove")?!r:r,e.modifiers.includes("class")){let i=e.expression.split(" ").filter(String);r?t.classList.add(...i):t.classList.remove(...i)}else if(e.modifiers.includes("attr"))r?t.setAttribute(e.expression,!0):t.removeAttribute(e.expression);else{let i=n??window.getComputedStyle(t,null).getPropertyValue("display"),a=["inline","block","table","flex","grid","inline-flex"].filter(o=>e.modifiers.includes(o))[0]||"inline-block";a=e.modifiers.includes("remove")&&!r?i:a,t.style.display=r?a:"none"}}var Cg=new Set,Eg=new Set;window.addEventListener("offline",()=>Cg.forEach(t=>t()));window.addEventListener("online",()=>Eg.forEach(t=>t()));Wa("offline",({el:t,directive:e,cleanup:r})=>{let n=()=>su(t,e,!0),i=()=>su(t,e,!1);Cg.add(n),Eg.add(i),r(()=>{Cg.delete(n),Eg.delete(i)})});Wa("loading",({el:t,directive:e,component:r,cleanup:n})=>{let{targets:i,inverted:a}=nOe(t),[o,s]=Zke(e),u=eOe(r,i,a,[()=>o(()=>su(t,e,!0)),()=>s(()=>su(t,e,!1))]),f=tOe(r,i,[()=>o(()=>su(t,e,!0)),()=>s(()=>su(t,e,!1))]);n(()=>{u(),f()})});function Zke(t){if(!t.modifiers.includes("delay")||t.modifiers.includes("none"))return[a=>a(),a=>a()];let e=200,r={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(r).some(a=>{if(t.modifiers.includes(a))return e=r[a],!0});let n,i=!1;return[a=>{n=setTimeout(()=>{a(),i=!0},e)},async a=>{i?(await a(),i=!1):clearTimeout(n)}]}function eOe(t,e,r,[n,i]){return yr("commit",({component:a,commit:o,respond:s})=>{a===t&&(e.length>0&&rOe(o,e)===r||(n(),s(()=>{i()})))})}function tOe(t,e,[r,n]){let i=u=>{let{id:f,property:d}=u.detail;return f!==t.id||e.length>0&&!e.map(v=>v.target).includes(d)},a=dm(window,"livewire-upload-start",u=>{i(u)||r()}),o=dm(window,"livewire-upload-finish",u=>
795{i(u)||n()}),s=dm(window,"livewire-upload-error",u=>{i(u)||n()});return()=>{a(),o(),s()}}function rOe(t,e){let{updates:r,calls:n}=t;return e.some(({target:i,params:a})=>{if(a)return n.some(({method:s,params:u})=>i===s&&a===Nk(JSON.stringify(u)));if(Object.keys(r).some(s=>s.includes(".")&&s.split(".")[0]===i?!0:s===i)||n.map(s=>s.method).includes(i))return!0})}function nOe(t){let e=Vy(t),r=[],n=!1;if(e.has("target")){let i=e.get("target");i.modifiers.includes("except")&&(n=!0),i.methods.forEach(({method:a,params:o})=>{r.push({target:a,params:o&&o.length>0?Nk(JSON.stringify(o)):void 0})})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];e.all().filter(a=>!i.includes(a.value)).map(a=>a.expression.split("(")[0]).forEach(a=>r.push({target:a}))}return{targets:r,inverted:n}}function Nk(t){return btoa(encodeURIComponent(t))}Wa("stream",({el:t,directive:e,cleanup:r})=>{let{expression:n,modifiers:i}=e,a=yr("stream",({name:o,content:s,replace:u})=>{o===n&&(i.includes("replace")||u?t.innerHTML=s:t.insertAdjacentHTML("beforeend",s))});r(a)});yr("request",({respond:t})=>{t(e=>{let r=e.response;r.headers.has("X-Livewire-Stream")&&(e.response={ok:!0,redirected:!1,status:200,async text(){let n=await iOe(r,i=>{Gr("stream",i)});return lk(n)&&(this.ok=!1),n}})})});async function iOe(t,e){let r=t.body.getReader(),n="";for(;;){let{done:i,value:a}=await r.read(),s=new TextDecoder().decode(a),[u,f]=aOe(n+s);if(u.forEach(d=>{e(d)}),n=f,i)return n}}function aOe(t){let e=/({"stream":true.*?"endStream":true})/g,r=t.match(e),n=[];if(r)for(let a=0;a<r.length;a++)n.push(JSON.parse(r[a]).body);let i=t.replace(e,"");return[n,i]}Wa("replace",({el:t,directive:e})=>{e.modifiers.includes("self")?t.__livewire_replace_self=!0:t.__livewire_replace=!0});Wa("ignore",({el:t,directive:e})=>{e.modifiers.includes("self")?t.__livewire_ignore_self=!0:e.modifiers.includes("children")?t.__livewire_ignore_children=!0:t.__livewire_ignore=!0});var KE=Nr(Cn());KE.default.interceptInit(t=>{t.hasAttribute("wire:cloak")&&KE.default.mutateDom(()=>t.removeAttribute("wire:cloak"))});var Pk=new ak;yr("commit",({component:t,respond:e})=>{e(()=>{setTimeout(()=>{Pk.each(t,r=>r(!1))})})});Wa("dirty",({el:t,directive:e,component:r})=>{let n=oOe(t),i=!1,a=t.style.display,o=s=>{su(t,e,s,a),i=s};Pk.add(r,o),Alpine.effect(()=>{let s=!1;if(n.length===0)s=JSON.stringify(r.canonical)!==JSON.stringify(r.reactive);else for(let u=0;u<n.length&&!s;u++){let f=n[u];s=JSON.stringify(ms(r.canonical,f))!==JSON.stringify(ms(r.reactive,f))}i!==s&&o(s),i=s})});function oOe(t){let e=Vy(t),r=[];return e.has("model")&&r.push(e.get("model").expression),e.has("target")&&(r=r.concat(e.get("target").expression.split(",").map(n=>n.trim()))),r}var sOe=Nr(Cn());Wa("model",({el:t,directive:e,component:r,cleanup:n})=>{let{expression:i,modifiers:a}=e;if(!i)return console.warn("Livewire: [wire:model] is missing a value.",t);if(Bk(r,i))return console.warn('Livewire: [wire:model="'+i+'"] property does not exist on component: ['+r.name+"]",t);if(t.type&&t.type.toLowerCase()==="file")return iSe(t,i,r,n);let o=a.includes("live"),s=a.includes("lazy")||a.includes("change"),u=a.includes("blur"),f=a.includes("debounce"),d=i.startsWith("$parent")?()=>r.$wire.$parent.$commit():()=>r.$wire.$commit(),v=uOe(t)&&!f&&o?cOe(d,150):d;sOe.default.bind(t,{"@change"(){s&&d()},"@blur"(){u&&d()},["x-model"+lOe(a)](){return{get(){return ms(r.$wire,i)},set(m){nh(r.$wire,i,m),o&&!s&&!u&&v()}}}})});function lOe(t){return t=t.filter(e=>!["lazy","defer"].includes(e)),t.length===0?"":"."+t.join(".")}function uOe(t){return["INPUT","TEXTAREA"].includes(t.tagName.toUpperCase())&&!["checkbox","radio"].includes(t.type)||t.tagName.toUpperCase()==="UI-SLIDER"}function Bk(t,e){if(e.startsWith("$parent")){let n=Cs(t.el.parentElement,!1);return n?Bk(n,e.split("$parent.")[1]):!0}let r=e.split(".")[0];return!Object.keys(t.canonical).includes(r)}function cOe(t,e){var r;return function(){var n=this,i=arguments,a=function(){r=null,t.apply(n,i)};clearTimeout(r),r=setTimeout(a,e)}}var fOe=Nr(Cn());Wa("init",({el:t,directive:e})=>{let r=e.expression??"$refresh";fOe.default.evaluate(t,`$wire.${r}`)});var dOe=Nr(Cn());Wa("poll",({el:t,directive:e})=>{let r=EOe(e.modifiers,2e3),{start:n,pauseWhile:i,throttleWhile:a,stopWhen:o}=hOe(()=>{pOe(t,e)},r);n(),a(()=>gOe()&&bOe(e)),i(()=>wOe(e)&&xOe(t)),i(()=>yOe(t)),i(()=>mOe()),o(()=>COe(t))});function pOe(t,e){dOe.default.evaluate(t,e.expression?"$wire."+e.expression:"$wire.$commit()")}function hOe(t,e=2e3){let r=[],n=[],i=[];return{start(){let a=vOe(e,()=>{if(i.some(o=>o()))return a();r.some(o=>o())||n.some(o=>o())&&Math.random()<.95||t()})},pauseWhile(a){r.push(a)},throttleWhile(a){n.push(a)},stopWhen(a){i.push(a)}}}var eu=[];function vOe(t,e){if(!eu[t]){let r={timer:setInterval(()=>r.callbacks.forEach(n=>n()),t),callbacks:new Set};eu[t]=r}return eu[t].callbacks.add(e),()=>{eu[t].callbacks.delete(e),eu[t].callbacks.size===0&&(clearInterval(eu[t].timer),delete eu[t])}}var Xy=!1;window.addEventListener("offline",()=>Xy=!0);window.addEventListener("online",()=>Xy=!1);function mOe(){return Xy}var Fk=!1;document.addEventListener("visibilitychange",()=>{Fk=document.hidden},!1);function gOe(){return Fk}function yOe(t){return!Vy(t).has("poll")}function bOe(t){return!t.modifiers.includes("keep-alive")}function wOe(t){return t.modifiers.includes("visible")}function xOe(t){let e=t.getBoundingClientRect();return!(e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.bottom>0&&e.right>0)}function COe(t){return t.isConnected===!1}function EOe(t,e){let r,n=t.find(a=>a.match(/([0-9]+)ms/)),i=t.find(a=>a.match(/([0-9]+)s/));return n?r=Number(n.replace("ms","")):i&&(r=Number(i.replace("s",""))*1e3),r||e}var bm=Nr(Cn());bm.default.interceptInit(t=>{for(let e=0;e<t.attributes.length;e++)if(t.attributes[e].name.startsWith("wire:show")){let{name:r,value:n}=t.attributes[e],i=r.split("wire:show")[1],a=n.startsWith("!")?"!$wire."+n.slice(1).trim():"$wire."+n.trim();bm.default.bind(t,{["x-show"+i](){return bm.default.evaluate(t,a)}})}});var wm=Nr(Cn());wm.default.interceptInit(t=>{for(let e=0;e<t.attributes.length;e++)if(t.attributes[e].name.startsWith("wire:text")){let{name:r,value:n}=t.attributes[e],i=r.split("wire:text")[1],a=n.startsWith("!")?"!$wire."+n.slice(1).trim():"$wire."+n.trim();wm.default.bind(t,{["x-text"+i](){return wm.default.evaluate(t,a)}})}});var Qy={directive:Wa,dispatchTo:Wy,start:Cke,first:LSe,find:MSe,getByName:ASe,all:DSe,hook:yr,trigger:Gr,triggerAsync:ck,dispatch:ISe,on:NSe,get navigate(){return Jy.default.navigate}},Zy=t=>console.warn(`Detected multiple instances of ${t} running`);window.Livewire&&Zy("Livewire");window.Alpine&&Zy("Alpine");window.Livewire=Qy;window.Alpine=Jy.default;window.livewireScriptConfig===void 0&&(window.Alpine.__fromLivewire=!0,document.addEventListener("DOMContentLoaded",()=>{window.Alpine.__fromLivewire===void 0&&Zy("Alpine"),Qy.start()}));var wn=Jy.default;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
796 * @license MIT *//*! Bundled license information:
797
798tabbable/dist/index.js:
799  (*!
800  * tabbable 5.3.3
801  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
802  *)
803
804focus-trap/dist/focus-trap.js:
805  (*!
806  * focus-trap 6.9.4
807  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
808  *)
809*/var Zi="top",qa="bottom",$a="right",ea="left",eb="auto",Xf=[Zi,qa,$a,ea],Ic="start",qf="end",TOe="clippingParents",Hk="viewport",mf="popper",_Oe="reference",JE=Xf.reduce(function(t,e){return t.concat([e+"-"+Ic,e+"-"+qf])},[]),qk=[].concat(Xf,[eb]).reduce(function(t,e){return t.concat([e,e+"-"+Ic,e+"-"+qf])},[]),SOe="beforeRead",kOe="read",OOe="afterRead",AOe="beforeMain",MOe="main",LOe="afterMain",DOe="beforeWrite",IOe="write",ROe="afterWrite",NOe=[SOe,kOe,OOe,AOe,MOe,LOe,DOe,IOe,ROe];
vendor: 8,757 bytes, line 809
809function Uo(t){return t?(t.nodeName||"").toLowerCase():null}function Va(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function bu(t){var e=Va(t).Element;return t instanceof e||t instanceof Element}function Ba(t){var e=Va(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function tb(t){if(typeof ShadowRoot>"u")return!1;var e=Va(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function POe(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},i=e.attributes[r]||{},a=e.elements[r];!Ba(a)||!Uo(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function BOe(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=o.reduce(function(u,f){return u[f]="",u},{});!Ba(i)||!Uo(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const $k={name:"applyStyles",enabled:!0,phase:"write",fn:POe,effect:BOe,requires:["computeStyles"]};function Fo(t){return t.split("-")[0]}var fu=Math.max,Op=Math.min,Rc=Math.round;function Tg(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Uk(){return!/^((?!chrome|android).)*safari/i.test(Tg())}function Nc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,a=1;e&&Ba(t)&&(i=t.offsetWidth>0&&Rc(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Rc(n.height)/t.offsetHeight||1);var o=bu(t)?Va(t):window,s=o.visualViewport,u=!Uk()&&r,f=(n.left+(u&&s?s.offsetLeft:0))/i,d=(n.top+(u&&s?s.offsetTop:0))/a,v=n.width/i,m=n.height/a;return{width:v,height:m,top:d,right:f+v,bottom:d+m,left:f,x:f,y:d}}function rb(t){var e=Nc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function jk(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&tb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Es(t){return Va(t).getComputedStyle(t)}function FOe(t){return["table","td","th"].indexOf(Uo(t))>=0}function yl(t){return((bu(t)?t.ownerDocument:t.document)||window.document).documentElement}function sh(t){return Uo(t)==="html"?t:t.assignedSlot||t.parentNode||(tb(t)?t.host:null)||yl(t)}function YE(t){return!Ba(t)||Es(t).position==="fixed"?null:t.offsetParent}function HOe(t){var e=/firefox/i.test(Tg()),r=/Trident/i.test(Tg());if(r&&Ba(t)){var n=Es(t);if(n.position==="fixed")return null}var i=sh(t);for(tb(i)&&(i=i.host);Ba(i)&&["html","body"].indexOf(Uo(i))<0;){var a=Es(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Qf(t){for(var e=Va(t),r=YE(t);r&&FOe(r)&&Es(r).position==="static";)r=YE(r);return r&&(Uo(r)==="html"||Uo(r)==="body"&&Es(r).position==="static")?e:r||HOe(t)||e}function nb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kf(t,e,r){return fu(t,Op(e,r))}function qOe(t,e,r){var n=kf(t,e,r);return n>r?r:n}function zk(){return{top:0,right:0,bottom:0,left:0}}function Wk(t){return Object.assign({},zk(),t)}function Vk(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var $Oe=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Wk(typeof e!="number"?e:Vk(e,Xf))};function UOe(t){var e,r=t.state,n=t.name,i=t.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Fo(r.placement),u=nb(s),f=[ea,$a].indexOf(s)>=0,d=f?"height":"width";if(!(!a||!o)){var v=$Oe(i.padding,r),m=rb(a),b=u==="y"?Zi:ea,x=u==="y"?qa:$a,T=r.rects.reference[d]+r.rects.reference[u]-o[u]-r.rects.popper[d],S=o[u]-r.rects.reference[u],M=Qf(a),L=M?u==="y"?M.clientHeight||0:M.clientWidth||0:0,P=T/2-S/2,A=v[b],H=L-m[d]-v[x],W=L/2-m[d]/2+P,J=kf(A,W,H),ee=u;r.modifiersData[n]=(e={},e[ee]=J,e.centerOffset=J-W,e)}}function jOe(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||jk(e.elements.popper,i)&&(e.elements.arrow=i))}const zOe={name:"arrow",enabled:!0,phase:"main",fn:UOe,effect:jOe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pc(t){return t.split("-")[1]}var WOe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VOe(t){var e=t.x,r=t.y,n=window,i=n.devicePixelRatio||1;return{x:Rc(e*i)/i||0,y:Rc(r*i)/i||0}}function XE(t){var e,r=t.popper,n=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,f=t.adaptive,d=t.roundOffsets,v=t.isFixed,m=o.x,b=m===void 0?0:m,x=o.y,T=x===void 0?0:x,S=typeof d=="function"?d({x:b,y:T}):{x:b,y:T};b=S.x,T=S.y;var M=o.hasOwnProperty("x"),L=o.hasOwnProperty("y"),P=ea,A=Zi,H=window;if(f){var W=Qf(r),J="clientHeight",ee="clientWidth";if(W===Va(r)&&(W=yl(r),Es(W).position!=="static"&&s==="absolute"&&(J="scrollHeight",ee="scrollWidth")),W=W,i===Zi||(i===ea||i===$a)&&a===qf){A=qa;var X=v&&W===H&&H.visualViewport?H.visualViewport.height:W[J];T-=X-n.height,T*=u?1:-1}if(i===ea||(i===Zi||i===qa)&&a===qf){P=$a;var ie=v&&W===H&&H.visualViewport?H.visualViewport.width:W[ee];b-=ie-n.width,b*=u?1:-1}}var ge=Object.assign({position:s},f&&WOe),Y=d===!0?VOe({x:b,y:T}):{x:b,y:T};if(b=Y.x,T=Y.y,u){var ne;return Object.assign({},ge,(ne={},ne[A]=L?"0":"",ne[P]=M?"0":"",ne.transform=(H.devicePixelRatio||1)<=1?"translate("+b+"px, "+T+"px)":"translate3d("+b+"px, "+T+"px, 0)",ne))}return Object.assign({},ge,(e={},e[A]=L?T+"px":"",e[P]=M?b+"px":"",e.transform="",e))}function GOe(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,f={placement:Fo(e.placement),variation:Pc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,XE(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,XE(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const KOe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GOe,data:{}};var Nd={passive:!0};function JOe(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,u=Va(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(d){d.addEventListener("scroll",r.update,Nd)}),s&&u.addEventListener("resize",r.update,Nd),function(){a&&f.forEach(function(d){d.removeEventListener("scroll",r.update,Nd)}),s&&u.removeEventListener("resize",r.update,Nd)}}const YOe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JOe,data:{}};var XOe={left:"right",right:"left",bottom:"top",top:"bottom"};function Yd(t){return t.replace(/left|right|bottom|top/g,function(e){return XOe[e]})}var QOe={start:"end",end:"start"};function QE(t){return t.replace(/start|end/g,function(e){return QOe[e]})}function ib(t){var e=Va(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ab(t){return Nc(yl(t)).left+ib(t).scrollLeft}function ZOe(t,e){var r=Va(t),n=yl(t),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var f=Uk();(f||!f&&e==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+ab(t),y:u}}function eAe(t){var e,r=yl(t),n=ib(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=fu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=fu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+ab(t),u=-n.scrollTop;return Es(i||r).direction==="rtl"&&(s+=fu(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function ob(t){var e=Es(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Gk(t){return["html","body","#document"].indexOf(Uo(t))>
vendor: 8,059 bytes, line 809
809=0?t.ownerDocument.body:Ba(t)&&ob(t)?t:Gk(sh(t))}function Of(t,e){var r;e===void 0&&(e=[]);var n=Gk(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),a=Va(n),o=i?[a].concat(a.visualViewport||[],ob(n)?n:[]):n,s=e.concat(o);return i?s:s.concat(Of(sh(o)))}function _g(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tAe(t,e){var r=Nc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ZE(t,e,r){return e===Hk?_g(ZOe(t,r)):bu(e)?tAe(e,r):_g(eAe(yl(t)))}function rAe(t){var e=Of(sh(t)),r=["absolute","fixed"].indexOf(Es(t).position)>=0,n=r&&Ba(t)?Qf(t):t;return bu(n)?e.filter(function(i){return bu(i)&&jk(i,n)&&Uo(i)!=="body"}):[]}function nAe(t,e,r,n){var i=e==="clippingParents"?rAe(t):[].concat(e),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(u,f){var d=ZE(t,f,n);return u.top=fu(d.top,u.top),u.right=Op(d.right,u.right),u.bottom=Op(d.bottom,u.bottom),u.left=fu(d.left,u.left),u},ZE(t,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Kk(t){var e=t.reference,r=t.element,n=t.placement,i=n?Fo(n):null,a=n?Pc(n):null,o=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,u;switch(i){case Zi:u={x:o,y:e.y-r.height};break;case qa:u={x:o,y:e.y+e.height};break;case $a:u={x:e.x+e.width,y:s};break;case ea:u={x:e.x-r.width,y:s};break;default:u={x:e.x,y:e.y}}var f=i?nb(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(a){case Ic:u[f]=u[f]-(e[d]/2-r[d]/2);break;case qf:u[f]=u[f]+(e[d]/2-r[d]/2);break}}return u}function $f(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,a=r.strategy,o=a===void 0?t.strategy:a,s=r.boundary,u=s===void 0?TOe:s,f=r.rootBoundary,d=f===void 0?Hk:f,v=r.elementContext,m=v===void 0?mf:v,b=r.altBoundary,x=b===void 0?!1:b,T=r.padding,S=T===void 0?0:T,M=Wk(typeof S!="number"?S:Vk(S,Xf)),L=m===mf?_Oe:mf,P=t.rects.popper,A=t.elements[x?L:m],H=nAe(bu(A)?A:A.contextElement||yl(t.elements.popper),u,d,o),W=Nc(t.elements.reference),J=Kk({reference:W,element:P,strategy:"absolute",placement:i}),ee=_g(Object.assign({},P,J)),X=m===mf?ee:W,ie={top:H.top-X.top+M.top,bottom:X.bottom-H.bottom+M.bottom,left:H.left-X.left+M.left,right:X.right-H.right+M.right},ge=t.modifiersData.offset;if(m===mf&&ge){var Y=ge[i];Object.keys(ie).forEach(function(ne){var Te=[$a,qa].indexOf(ne)>=0?1:-1,Be=[Zi,qa].indexOf(ne)>=0?"y":"x";ie[ne]+=Y[Be]*Te})}return ie}function iAe(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?qk:u,d=Pc(n),v=d?s?JE:JE.filter(function(x){return Pc(x)===d}):Xf,m=v.filter(function(x){return f.indexOf(x)>=0});m.length===0&&(m=v);var b=m.reduce(function(x,T){return x[T]=$f(t,{placement:T,boundary:i,rootBoundary:a,padding:o})[Fo(T)],x},{});return Object.keys(b).sort(function(x,T){return b[x]-b[T]})}function aAe(t){if(Fo(t)===eb)return[];var e=Yd(t);return[QE(t),e,QE(e)]}function oAe(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,f=r.padding,d=r.boundary,v=r.rootBoundary,m=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,T=r.allowedAutoPlacements,S=e.options.placement,M=Fo(S),L=M===S,P=u||(L||!x?[Yd(S)]:aAe(S)),A=[S].concat(P).reduce(function(Ve,Ae){return Ve.concat(Fo(Ae)===eb?iAe(e,{placement:Ae,boundary:d,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:T}):Ae)},[]),H=e.rects.reference,W=e.rects.popper,J=new Map,ee=!0,X=A[0],ie=0;ie<A.length;ie++){var ge=A[ie],Y=Fo(ge),ne=Pc(ge)===Ic,Te=[Zi,qa].indexOf(Y)>=0,Be=Te?"width":"height",He=$f(e,{placement:ge,boundary:d,rootBoundary:v,altBoundary:m,padding:f}),Re=Te?ne?$a:ea:ne?qa:Zi;H[Be]>W[Be]&&(Re=Yd(Re));var Oe=Yd(Re),zt=[];if(a&&zt.push(He[Y]<=0),s&&zt.push(He[Re]<=0,He[Oe]<=0),zt.every(function(Ve){return Ve})){X=ge,ee=!1;break}J.set(ge,zt)}if(ee)for(var bt=x?3:1,$e=function(Ae){var Ne=A.find(function(Dt){var Wt=J.get(Dt);if(Wt)return Wt.slice(0,Ae).every(function(Ht){return Ht})});if(Ne)return X=Ne,"break"},qe=bt;qe>0;qe--){var at=$e(qe);if(at==="break")break}e.placement!==X&&(e.modifiersData[n]._skip=!0,e.placement=X,e.reset=!0)}}const sAe={name:"flip",enabled:!0,phase:"main",fn:oAe,requiresIfExists:["offset"],data:{_skip:!1}};function eT(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function tT(t){return[Zi,$a,qa,ea].some(function(e){return t[e]>=0})}function lAe(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=$f(e,{elementContext:"reference"}),s=$f(e,{altBoundary:!0}),u=eT(o,n),f=eT(s,i,a),d=tT(u),v=tT(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":v})}const uAe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lAe};function cAe(t,e,r){var n=Fo(t),i=[ea,Zi].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[ea,$a].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function fAe(t){var e=t.state,r=t.options,n=t.name,i=r.offset,a=i===void 0?[0,0]:i,o=qk.reduce(function(d,v){return d[v]=cAe(v,e.rects,a),d},{}),s=o[e.placement],u=s.x,f=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=o}const dAe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fAe};function pAe(t){var e=t.state,r=t.name;e.modifiersData[r]=Kk({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const hAe={name:"popperOffsets",enabled:!0,phase:"read",fn:pAe,data:{}};function vAe(t){return t==="x"?"y":"x"}function mAe(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,v=r.padding,m=r.tether,b=m===void 0?!0:m,x=r.tetherOffset,T=x===void 0?0:x,S=$f(e,{boundary:u,rootBoundary:f,padding:v,altBoundary:d}),M=Fo(e.placement),L=Pc(e.placement),P=!L,A=nb(M),H=vAe(A),W=e.modifiersData.popperOffsets,J=e.rects.reference,ee=e.rects.popper,X=typeof T=="function"?T(Object.assign({},e.rects,{placement:e.placement})):T,ie=typeof X=="number"?{mainAxis:X,altAxis:X}:Object.assign({mainAxis:0,altAxis:0},X),ge=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(W){if(a){var ne,Te=A==="y"?Zi:ea,Be=A==="y"?qa:$a,He=A==="y"?"height":"width",Re=W[A],Oe=Re+S[Te],zt=Re-S[Be],bt=b?-ee[He]/2:0,$e=L===Ic?J[He]:ee[He],qe=L===Ic?-ee[He]:-J[He],at=e.elements.arrow,Ve=b&&at?rb(at):{width:0,height:0},Ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:zk(),Ne=Ae[Te],Dt=Ae[Be],Wt=kf(0,J[He],Ve[He]),Ht=P?J[He]/2-bt-Wt-Ne-ie.mainAxis:$e-Wt-Ne-ie.mainAxis,qt=P?-J[He]/2+bt+Wt+Dt+ie.mainAxis:qe+Wt+Dt+ie.mainAxis,tr=e.elements.arrow&&Qf(e.elements.arrow),ht=tr?A==="y"?tr.clientTop||0:tr.clientLeft||0:0,br=(ne=ge==null?void 0:ge[A])!=null?ne:0,kt=Re+Ht-br-ht,xr=Re+qt-br,We=kf(b?Op(Oe,kt):Oe,Re,b?fu(zt,xr):zt);W[A]=We,Y[A]=We-Re}if(s){var ye,_e=A==="x"?Zi:ea,rt=A==="x"?qa:$a,et=W[H],yt=H==="y"?"height":"width",Xe=et+S[_e],xe=et-S[rt],De=[Zi,ea].indexOf(M)!==-1,Je=(ye=ge==null?void 0:ge[H])!=null?ye:0,wt=De?Xe:et-J[yt]-ee[yt]-Je+ie.altAxis,xt=De?et+J[yt]+ee[yt]-Je-ie.altAxis:xe,Vt=b&&De?qOe(wt,et,xt):kf(b?wt:Xe,et,b?xt:xe);W[H]=Vt,Y[H]=Vt-et}e.modifiersData[n]=Y}}const gAe={name:"preventOverflow",enabled:!0,phase:"main",fn:mAe,requiresIfExists:["offset"]};function yAe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function bAe(t){return t===Va(t)||!Ba(t)?ib(t):yAe(t)}function wAe(t){var e=t.getBoundingClientRect(),r=Rc(e.width)/t.offsetWidth||1,n=Rc(e.he
vendor: 8,589 bytes, line 809
809ight)/t.offsetHeight||1;return r!==1||n!==1}function xAe(t,e,r){r===void 0&&(r=!1);var n=Ba(e),i=Ba(e)&&wAe(e),a=yl(e),o=Nc(t,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Uo(e)!=="body"||ob(a))&&(s=bAe(e)),Ba(e)?(u=Nc(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=ab(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function CAe(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=e.get(s);u&&i(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||i(a)}),n}function EAe(t){var e=CAe(t);return NOe.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function TAe(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function _Ae(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var rT={placement:"bottom",modifiers:[],strategy:"absolute"};function nT(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function SAe(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?rT:i;return function(s,u,f){f===void 0&&(f=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},rT,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},v=[],m=!1,b={state:d,setOptions:function(M){var L=typeof M=="function"?M(d.options):M;T(),d.options=Object.assign({},a,d.options,L),d.scrollParents={reference:bu(s)?Of(s):s.contextElement?Of(s.contextElement):[],popper:Of(u)};var P=EAe(_Ae([].concat(n,d.options.modifiers)));return d.orderedModifiers=P.filter(function(A){return A.enabled}),x(),b.update()},forceUpdate:function(){if(!m){var M=d.elements,L=M.reference,P=M.popper;if(nT(L,P)){d.rects={reference:xAe(L,Qf(P),d.options.strategy==="fixed"),popper:rb(P)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(ie){return d.modifiersData[ie.name]=Object.assign({},ie.data)});for(var A=0;A<d.orderedModifiers.length;A++){if(d.reset===!0){d.reset=!1,A=-1;continue}var H=d.orderedModifiers[A],W=H.fn,J=H.options,ee=J===void 0?{}:J,X=H.name;typeof W=="function"&&(d=W({state:d,options:ee,name:X,instance:b})||d)}}}},update:TAe(function(){return new Promise(function(S){b.forceUpdate(),S(d)})}),destroy:function(){T(),m=!0}};if(!nT(s,u))return b;b.setOptions(f).then(function(S){!m&&f.onFirstUpdate&&f.onFirstUpdate(S)});function x(){d.orderedModifiers.forEach(function(S){var M=S.name,L=S.options,P=L===void 0?{}:L,A=S.effect;if(typeof A=="function"){var H=A({state:d,name:M,instance:b,options:P}),W=function(){};v.push(H||W)}})}function T(){v.forEach(function(S){return S()}),v=[]}return b}}var kAe=[YOe,hAe,KOe,$k,dAe,sAe,gAe,zOe,uAe],Jk=SAe({defaultModifiers:kAe}),OAe="tippy-box",Yk="tippy-content",AAe="tippy-backdrop",Xk="tippy-arrow",Qk="tippy-svg-arrow",nu={passive:!0,capture:!0},Zk=function(){return document.body};function xm(t,e,r){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(r)?r[e]:r)}return t}function sb(t,e){var r={}.toString.call(t);return r.indexOf("[object")===0&&r.indexOf(e+"]")>-1}function eO(t,e){return typeof t=="function"?t.apply(void 0,e):t}function iT(t,e){if(e===0)return t;var r;return function(n){clearTimeout(r),r=setTimeout(function(){t(n)},e)}}function MAe(t){return t.split(/\s+/).filter(Boolean)}function lc(t){return[].concat(t)}function aT(t,e){t.indexOf(e)===-1&&t.push(e)}function LAe(t){return t.filter(function(e,r){return t.indexOf(e)===r})}function DAe(t){return t.split("-")[0]}function Ap(t){return[].slice.call(t)}function oT(t){return Object.keys(t).reduce(function(e,r){return t[r]!==void 0&&(e[r]=t[r]),e},{})}function Af(){return document.createElement("div")}function lh(t){return["Element","Fragment"].some(function(e){return sb(t,e)})}function IAe(t){return sb(t,"NodeList")}function RAe(t){return sb(t,"MouseEvent")}function NAe(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function PAe(t){return lh(t)?[t]:IAe(t)?Ap(t):Array.isArray(t)?t:Ap(document.querySelectorAll(t))}function Cm(t,e){t.forEach(function(r){r&&(r.style.transitionDuration=e+"ms")})}function sT(t,e){t.forEach(function(r){r&&r.setAttribute("data-state",e)})}function BAe(t){var e,r=lc(t),n=r[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function FAe(t,e){var r=e.clientX,n=e.clientY;return t.every(function(i){var a=i.popperRect,o=i.popperState,s=i.props,u=s.interactiveBorder,f=DAe(o.placement),d=o.modifiersData.offset;if(!d)return!0;var v=f==="bottom"?d.top.y:0,m=f==="top"?d.bottom.y:0,b=f==="right"?d.left.x:0,x=f==="left"?d.right.x:0,T=a.top-n+v>u,S=n-a.bottom-m>u,M=a.left-r+b>u,L=r-a.right-x>u;return T||S||M||L})}function Em(t,e,r){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[n](i,r)})}function lT(t,e){for(var r=e;r;){var n;if(t.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var Lo={isTouch:!1},uT=0;function HAe(){Lo.isTouch||(Lo.isTouch=!0,window.performance&&document.addEventListener("mousemove",tO))}function tO(){var t=performance.now();t-uT<20&&(Lo.isTouch=!1,document.removeEventListener("mousemove",tO)),uT=t}function qAe(){var t=document.activeElement;if(NAe(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function $Ae(){document.addEventListener("touchstart",HAe,nu),window.addEventListener("blur",qAe)}var UAe=typeof window<"u"&&typeof document<"u",jAe=UAe?!!window.msCrypto:!1,zAe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},WAe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},co=Object.assign({appendTo:Zk,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},zAe,WAe),VAe=Object.keys(co),GAe=function(e){var r=Object.keys(e);r.forEach(function(n){co[n]=e[n]})};function rO(t){var e=t.plugins||[],r=e.reduce(function(n,i){var a=i.name,o=i.defaultValue;if(a){var s;n[a]=t[a]!==void 0?t[a]:(s=co[a])!=null?s:o}return n},{});return Object.assign({},t,r)}function KAe(t,e){var r=e?Object.keys(rO(Object.assign({},co,{plugins:e}))):VAe,n=r.reduce(function(i,a){var o=(t.getAttribute("data-tippy-"+a)||"").trim();if(!o)return i;if(a==="content")i[a]=o;else try{i[a]=JSON.parse(o)}catch{i[a]=o}return i},{});return n}function cT(t,e){var r=Object.assign({},e,{content:eO(e.content,[t])},e.ignoreAttributes?{}:KAe(t,e.plugins));return r.aria=Object.assign({},co.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?e.interactive:r.aria.expanded,content:r.aria.content==="auto"?e.interactive?null:"describedby":r.aria.content},r}var JAe=function(){return"innerHTML"};function Sg(t,e){t[JAe()]=e}function fT(t){var e=Af();return t===!0?e.className=Xk:(e.className=Qk,lh(t)?e.appendChild(t):Sg(e,t)),e}function dT(t,e){lh(e.content)?(Sg(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Sg(t,e.content):t.textContent=e.content)}function kg(t){var e=t.firstElementChild,r=Ap(e.children);return{box:e,content:r.find(function(n){return n.classList.contains(Yk)}),arrow:r.find(function(n){return n.classList.contains(Xk)||n.classList.contains(Qk)}),backdrop:r.find(function(n){return n.classList.contains(AAe)})}}function nO(t){var e=Af(),r=Af();r.className=OAe,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=Af();n.className=Yk,n.setAttribute("data-state","hidden"),dT(n,t.props),e.appendChild(r),r.appendChild(n),i(t.props,t.props);function i(a,o){var s=kg(e),u=s.box,f=s.content,d=s.arrow;o.theme?u.setAttribute("data-theme",o.theme):u.removeAttribute("data-theme"),typeof o.animation=="str
809ing"?u.setAttribute("data-animation",o.animation):u.removeAttribute("data-animation"),o.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?u.setAttribute("role",o.role):u.removeAttribute("role"),(a.content!==o.content||a.allowHTML!==o.allowHTML)&&dT(f,t.props),o.arrow?d?a.arrow!==o.arrow&&(u.removeChild(d),u.appendChild(fT(o.arrow))):u.appendChild(fT(o.arrow)):d&&u.removeChild(d)}return{popper:e,onUpdate:i}}nO.$$tippy=!0;var YAe=1,Pd=[],Tm=[];function XAe(t,e){var r=cT(t,Object.assign({},co,rO(oT(e)))),n,i,a,o=!1,s=!1,u=!1,f=!1,d,v,m,b=[],x=iT(kt,r.interactiveDebounce),T,S=YAe++,M=null,L=LAe(r.plugins),P={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:S,reference:t,popper:Af(),popperInstance:M,props:r,state:P,plugins:L,clearDelayTimeouts:wt,setProps:xt,setContent:Vt,show:lr,hide:jr,hideWithInteractivity:Cr,enable:De,disable:Je,unmount:hn,destroy:Er};if(!r.render)return A;var H=r.render(A),W=H.popper,J=H.onUpdate;W.setAttribute("data-tippy-root",""),W.id="tippy-"+A.id,A.popper=W,t._tippy=A,W._tippy=A;var ee=L.map(function(ce){return ce.fn(A)}),X=t.hasAttribute("aria-expanded");return tr(),bt(),Re(),Oe("onCreate",[A]),r.showOnCreate&&Xe(),W.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),W.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&Te().addEventListener("mousemove",x)}),A;function ie(){var ce=A.props.touch;return Array.isArray(ce)?ce:[ce,0]}function ge(){return ie()[0]==="hold"}function Y(){var ce;return!!((ce=A.props.render)!=null&&ce.$$tippy)}function ne(){return T||t}function Te(){var ce=ne().parentNode;return ce?BAe(ce):document}function Be(){return kg(W)}function He(ce){return A.state.isMounted&&!A.state.isVisible||Lo.isTouch||d&&d.type==="focus"?0:xm(A.props.delay,ce?0:1,co.delay)}function Re(ce){ce===void 0&&(ce=!1),W.style.pointerEvents=A.props.interactive&&!ce?"":"none",W.style.zIndex=""+A.props.zIndex}function Oe(ce,Ke,pt){if(pt===void 0&&(pt=!0),ee.forEach(function(st){st[ce]&&st[ce].apply(st,Ke)}),pt){var gt;(gt=A.props)[ce].apply(gt,Ke)}}function zt(){var ce=A.props.aria;if(ce.content){var Ke="aria-"+ce.content,pt=W.id,gt=lc(A.props.triggerTarget||t);gt.forEach(function(st){var ir=st.getAttribute(Ke);if(A.state.isVisible)st.setAttribute(Ke,ir?ir+" "+pt:pt);else{var ur=ir&&ir.replace(pt,"").trim();ur?st.setAttribute(Ke,ur):st.removeAttribute(Ke)}})}}function bt(){if(!(X||!A.props.aria.expanded)){var ce=lc(A.props.triggerTarget||t);ce.forEach(function(Ke){A.props.interactive?Ke.setAttribute("aria-expanded",A.state.isVisible&&Ke===ne()?"true":"false"):Ke.removeAttribute("aria-expanded")})}}function $e(){Te().removeEventListener("mousemove",x),Pd=Pd.filter(function(ce){return ce!==x})}function qe(ce){if(!(Lo.isTouch&&(u||ce.type==="mousedown"))){var Ke=ce.composedPath&&ce.composedPath()[0]||ce.target;if(!(A.props.interactive&&lT(W,Ke))){if(lc(A.props.triggerTarget||t).some(function(pt){return lT(pt,Ke)})){if(Lo.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else Oe("onClickOutside",[A,ce]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),s=!0,setTimeout(function(){s=!1}),A.state.isMounted||Ne())}}}function at(){u=!0}function Ve(){u=!1}function Ae(){var ce=Te();ce.addEventListener("mousedown",qe,!0),ce.addEventListener("touchend",qe,nu),ce.addEventListener("touchstart",Ve,nu),ce.addEventListener("touchmove",at,nu)}function Ne(){var ce=Te();ce.removeEventListener("mousedown",qe,!0),ce.removeEventListener("touchend",qe,nu),ce.removeEventListener("touchstart",Ve,nu),ce.removeEventListener("touchmove",at,nu)}function Dt(ce,Ke){Ht(ce,function(){!A.state.isVisible&&W.parentNode&&W.parentNode.contains(W)&&Ke()})}function Wt(ce,Ke){Ht(ce,Ke)}function Ht(ce,Ke){var pt=Be().box;function gt(st){st.target===pt&&(Em(pt,"remove",gt),Ke())}if(ce===0)return Ke();Em(pt,"remove",v),Em(pt,"add",gt),v=gt}function qt(ce,Ke,pt){pt===void 0&&(pt=!1);var gt=lc(A.props.triggerTarget||t);gt.forEach(function(st){st.addEventListener(ce,Ke,pt),b.push({node:st,eventType:ce,handler:Ke,options:pt})})}
vendor: 4,459 bytes, line 809
809function tr(){ge()&&(qt("touchstart",br,{passive:!0}),qt("touchend",xr,{passive:!0})),MAe(A.props.trigger).forEach(function(ce){if(ce!=="manual")switch(qt(ce,br),ce){case"mouseenter":qt("mouseleave",xr);break;case"focus":qt(jAe?"focusout":"blur",We);break;case"focusin":qt("focusout",We);break}})}function ht(){b.forEach(function(ce){var Ke=ce.node,pt=ce.eventType,gt=ce.handler,st=ce.options;Ke.removeEventListener(pt,gt,st)}),b=[]}function br(ce){var Ke,pt=!1;if(!(!A.state.isEnabled||ye(ce)||s)){var gt=((Ke=d)==null?void 0:Ke.type)==="focus";d=ce,T=ce.currentTarget,bt(),!A.state.isVisible&&RAe(ce)&&Pd.forEach(function(st){return st(ce)}),ce.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||o)&&A.props.hideOnClick!==!1&&A.state.isVisible?pt=!0:Xe(ce),ce.type==="click"&&(o=!pt),pt&&!gt&&xe(ce)}}function kt(ce){var Ke=ce.target,pt=ne().contains(Ke)||W.contains(Ke);if(!(ce.type==="mousemove"&&pt)){var gt=yt().concat(W).map(function(st){var ir,ur=st._tippy,ar=(ir=ur.popperInstance)==null?void 0:ir.state;return ar?{popperRect:st.getBoundingClientRect(),popperState:ar,props:r}:null}).filter(Boolean);FAe(gt,ce)&&($e(),xe(ce))}}function xr(ce){var Ke=ye(ce)||A.props.trigger.indexOf("click")>=0&&o;if(!Ke){if(A.props.interactive){A.hideWithInteractivity(ce);return}xe(ce)}}function We(ce){A.props.trigger.indexOf("focusin")<0&&ce.target!==ne()||A.props.interactive&&ce.relatedTarget&&W.contains(ce.relatedTarget)||xe(ce)}function ye(ce){return Lo.isTouch?ge()!==ce.type.indexOf("touch")>=0:!1}function _e(){rt();var ce=A.props,Ke=ce.popperOptions,pt=ce.placement,gt=ce.offset,st=ce.getReferenceClientRect,ir=ce.moveTransition,ur=Y()?kg(W).arrow:null,ar=st?{getBoundingClientRect:st,contextElement:st.contextElement||ne()}:t,Fn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(An){var Kr=An.state;if(Y()){var Ei=Be(),Hn=Ei.box;["placement","reference-hidden","escaped"].forEach(function(ui){ui==="placement"?Hn.setAttribute("data-placement",Kr.placement):Kr.attributes.popper["data-popper-"+ui]?Hn.setAttribute("data-"+ui,""):Hn.removeAttribute("data-"+ui)}),Kr.attributes.popper={}}}},Tr=[{name:"offset",options:{offset:gt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ir}},Fn];Y()&&ur&&Tr.push({name:"arrow",options:{element:ur,padding:3}}),Tr.push.apply(Tr,(Ke==null?void 0:Ke.modifiers)||[]),A.popperInstance=Jk(ar,W,Object.assign({},Ke,{placement:pt,onFirstUpdate:m,modifiers:Tr}))}function rt(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function et(){var ce=A.props.appendTo,Ke,pt=ne();A.props.interactive&&ce===Zk||ce==="parent"?Ke=pt.parentNode:Ke=eO(ce,[pt]),Ke.contains(W)||Ke.appendChild(W),A.state.isMounted=!0,_e()}function yt(){return Ap(W.querySelectorAll("[data-tippy-root]"))}function Xe(ce){A.clearDelayTimeouts(),ce&&Oe("onTrigger",[A,ce]),Ae();var Ke=He(!0),pt=ie(),gt=pt[0],st=pt[1];Lo.isTouch&&gt==="hold"&&st&&(Ke=st),Ke?n=setTimeout(function(){A.show()},Ke):A.show()}function xe(ce){if(A.clearDelayTimeouts(),Oe("onUntrigger",[A,ce]),!A.state.isVisible){Ne();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ce.type)>=0&&o)){var Ke=He(!1);Ke?i=setTimeout(function(){A.state.isVisible&&A.hide()},Ke):a=requestAnimationFrame(function(){A.hide()})}}function De(){A.state.isEnabled=!0}function Je(){A.hide(),A.state.isEnabled=!1}function wt(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(a)}function xt(ce){if(!A.state.isDestroyed){Oe("onBeforeUpdate",[A,ce]),ht();var Ke=A.props,pt=cT(t,Object.assign({},Ke,oT(ce),{ignoreAttributes:!0}));A.props=pt,tr(),Ke.interactiveDebounce!==pt.interactiveDebounce&&($e(),x=iT(kt,pt.interactiveDebounce)),Ke.triggerTarget&&!pt.triggerTarget?lc(Ke.triggerTarget).forEach(function(gt){gt.removeAttribute("aria-expanded")}):pt.triggerTarget&&t.removeAttribute("aria-expanded"),bt(),Re(),J&&J(Ke,pt),A.popperInstance&&(_e(),yt().forEach(function(gt){requestAnimationFrame(gt._tippy.popperInstance.forceUpdate)})),Oe("onAfterUpdate",[A,ce])}}function Vt(ce){A.setProps({content:ce})}function lr(){var ce=A.state.isVisible,Ke=A.state.isDestroyed,pt=!A.state.isEnabled,gt=Lo.isTouch&&!A.props.touch,st=xm(A.props.duration,0,co.duration);if(!(ce||Ke||pt||gt)&&!ne().hasAttribute("disabled")&&(Oe("onShow",[A],!1),A.props.onShow(A)!==!1)){if
809(A.state.isVisible=!0,Y()&&(W.style.visibility="visible"),Re(),Ae(),A.state.isMounted||(W.style.transition="none"),Y()){var ir=Be(),ur=ir.box,ar=ir.content;Cm([ur,ar],0)}m=function(){var Tr;if(!(!A.state.isVisible||f)){if(f=!0,W.offsetHeight,W.style.transition=A.props.moveTransition,Y()&&A.props.animation){var dr=Be(),An=dr.box,Kr=dr.content;Cm([An,Kr],st),sT([An,Kr],"visible")}zt(),bt(),aT(Tm,A),(Tr=A.popperInstance)==null||Tr.forceUpdate(),Oe("onMount",[A]),A.props.animation&&Y()&&Wt(st,function(){A.state.isShown=!0,Oe("onShown",[A])})}},et()}}function jr(){var ce=!A.state.isVisible,Ke=A.state.isDestroyed,pt=!A.state.isEnabled,gt=xm(A.props.duration,1,co.duration);if(!(ce||Ke||pt)&&(Oe("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,f=!1,o=!1,Y()&&(W.style.visibility="hidden"),$e(),Ne(),Re(!0),Y()){var st=Be(),ir=st.box,ur=st.content;A.props.animation&&(Cm([ir,ur],gt),sT([ir,ur],"hidden"))}zt(),bt(),A.props.animation?Y()&&Dt(gt,A.unmount):A.unmount()}}function Cr(ce){Te().addEventListener("mousemove",x),aT(Pd,x),x(ce)}function hn(){A.state.isVisible&&A.hide(),A.state.isMounted&&(rt(),yt().forEach(function(ce){ce._tippy.unmount()}),W.parentNode&&W.parentNode.removeChild(W),Tm=Tm.filter(function(ce){return ce!==A}),A.state.isMounted=!1,Oe("onHidden",[A]))}function Er(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),ht(),delete t._tippy,A.state.isDestroyed=!0,Oe("onDestroy",[A]))}}function Bc(t,e){e===void 0&&(e={});var r=co.plugins.concat(e.plugins||[]);$Ae();var n=Object.assign({},e,{plugins:r}),i=PAe(t),a=i.reduce(function(o,s){var u=s&&XAe(s,n);return u&&o.push(u),o},[]);return lh(t)?a[0]:a}Bc.defaultProps=co;Bc.setDefaultProps=GAe;Bc.currentInput=Lo;Object.assign({},$k,{effect:function(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Bc.setDefaultProps({render:nO});window.InfiniteScroll=rk;window.round=function(t,e){const r=Math.pow(10,e||0);return Math.round(t*r)/r};window.Alpine=wn;window.createPopper=Jk;wn.magic("component",(t,{Alpine:{closestRoot:e}})=>r=>e(document.querySelector(r))._x_dataStack[0]);wn.data("toggleInputs",()=>({duration:"not selected",showPercent:!0,showDiscount:!0,handleShowPercent(t){t?(this.showDiscount=!1,this.showPercent=!0):this.showDiscount=!0},handleShowDiscount(t){t?(this.showDiscount=!0,this.showPercent=!1):this.showPercent=!0}}));wn.data("confirmBox",(t,e,r,n,i,a,o,s,u)=>({id:t,title:e,formOption:s,formName:o,content:r,buttonLabel:n,cancelBtnLabel:i,show:!1,disableButton:a,useRequestSubmit:!!u,open(){this.show=!0},close(){this.show=!1},submitForm(f){let d=document.getElementById(f)||(document.getElementsByName(f)?document.getElementsByName(f)[0]:null);if(f&&s){const v=document.createElement("input");v.setAttribute("type","hidden"),v.setAttribute("name","option"),v.setAttribute("value",document.getElementById("confirmBoxOption").checked?1:0),d.appendChild(v)}this.useRequestSubmit?d.requestSubmit():d.submit(),this.show=!1},showById(f){this.id==f&&(this.show=!0)},setDisableState(f,d){this.id==f&&(this.disableButton=!!d)}}));wn.data("checkbox",(t,e,r)=>({value:e,windowEventOnClick:r,toggle(){this.value=!this.value|0,this.$refs[t].value=this.value,this.$refs[t].dispatchEvent(new Event("change")),r&&this.$dispatch(r,{value:this.value})}}));wn.data("copyToClipboard",t=>({textToCopy:t,async copyToClipboard(){await navigator.clipboard.writeText(this.textToCopy)}}));wn.data("emailForm",(t,e,r)=>({emailTimeout:t,sendingRequest:!1,resendVerificationEmail(){if(this.sendingRequest)return!1;this.sendingRequest=!0,axios.put(e).then(()=>{this.emailTimeout=!1}).catch(({response:{data:n}})=>{n.redirect&&(window.location.href=n.redirect)}).finally(()=>{this.sendingRequest=!1})},cancelChangeEmail(){if(this.sendingRequest)return!1;this.sendingRequest=!0,axios.delete(r).then(()=>{window.location.reload()}).catch(({response:{data:n}})=>{n.redirect&&(window.location.href=n.redirect)}).finally(()=>{this.sendingRequest=!1})}}));wn.data("uploadImage",t=>({showThumbnail(e){const r=document.getElementById(t),n=r.getContext("2d"),i=new FileReader;i.onload=function(a){const o=new Image;o.onload=function(){const u=o.width/o.height;r.height=50,r.width=50*u,n.drawImage(o,0,0,o.width,o.height,0,0,50*u,50),r.classList.remove("hidden"),document.getElementById("imageSvg").classList.add("hidden")},o.src=a.target.result},i.readAsDataURL(e)}}));wn.data("uploadFile",()=>({fileHasBeenSelected:!1,fileName:null,fileSize:null,fileWasSelected(t){this.fileHasBeenSelected=!0,this.fileName=t.name,this.fileSize=this.computeFileSize(t.size)},computeFileSize(t){return t<1024?t+" Bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":(t/(1024*1024)).toFixed(2)+" MB"}}));wn.data("adaptivePaywall",(t,e,r,n,i,a)=>({loading:!1,enable_trending:e,trending_is:r,views:n,time:i,articles:a,toggle:function(){this.enable_trending=!this.enable_trending|0},loadArticles:function(){this.loading=!0,window.cancelRequest!==void 0&&window.cancelRequest(),axios.request({method:"get",baseURL:t,params:{views:this.views,time:this.time},cancelToken:new axios.CancelToken(function(s){window.cancelRequest=s})}).then(o=>{this.loading=!1,this.articles=o.data.articles})},init(){window.cancelRequest=void 0}}));wn.data("subscriptionToTrialConfirmBox",t=>({id:t,show:!1,open(){this.show=!0},close(){this.show=!1},cancelSubscription(e){$("form[name='"+e+"']").submit(),this.show=!1},subscriptionToTrial(e){$("form[name='"+e+"']").submit(),this.show=!1},showById(e){this.id==e&&(this.show=!0)}}));wn.data("userPlans",t=>({selectedPlan:t,selectPlan(e,r){r&&(this.selectedPlan=e)}}));wn.data("checkDatabaseConnection",t=>({check:null,checking:!1,init(){this.check=null,!this.checking&&(this.checking=!0,axios.put(t,{}).then(({data:{connection:e}})=>this.check=e).catch(()=>this.check=!1).finally(()=>this.checking=!1))}}));wn.data("downloadCSVCTA",(t,e)=>({form:document.getElementById(t),fromForm:document.getElementById(e),prepareDataForDownload(){[...this.fromForm.elements].forEac
809h(r=>this.addChildToDownloadForm(r)),window.dispatchEvent(new CustomEvent("confirmbox",{detail:{id:"download_csv"}}))},addChildToDownloadForm(r){if(this.form&&r.name&&r.value){const n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",r.name),n.setAttribute("value",r.value),this.form.appendChild(n)}}}));wn.data("advancedSettingsBehaviour",(t,e)=>({showInvoiceImmediately:!!t,showZeroVatCountryLimiter:!!e,handleShowInvoiceImmediately(r){this.showInvoiceImmediately=document.getElementById("prorate_on_subscription_change").value==1},handleShowZeroVatCountryLimiter(r){this.showZeroVatCountryLimiter=document.getElementById("charge_zero_vat_for_customers_with_vat_number_filled").value==1}}));wn.data("manageUpdateCreditCard",(t,e,r,n,i,a,o)=>({setupIntentURL:t,stripePK:e,stripeLibrary:null,stripeElements:null,accountId:r,form:document.getElementById(n),cardElementId:i,cardElement:null,cardElementComplete:!1,loadingElementId:a,showCardInput:!1,setupIntentClientSecret:null,errorMessage:null,msgIncomplete:o,style:{base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},processing(s){s?(document.getElementById(a).style.display="block",this.form.style.display="none"):(document.getElementById(a).style.display="none",this.form.style.display="block")},handleSwitchForm(){this.showCardInput=!this.showCardInput,this.showCardInput&&!this.cardElement&&this.mountCardElement()},mountCardElement(){this.stripeLibrary=Stripe(this.stripePK,{stripeAccount:this.accountId}),this.stripeElements=this.stripeLibrary.elements(),this.cardElement=this.stripeElements.create("card"),this.cardElement.mount("#"+this.cardElementId);const s=this;this.cardElement.on("change",function(u){s.cardElementComplete=u.complete,u.error?s.errorMessage=u.error.message:s.errorMessage=null})},prepareConfirmSetup(){if(!this.cardElementComplete)return this.errorMessage=this.msgIncomplete,!1;if(this.errorMessage=null,this.processing(!0),this.setupIntentClientSecret){this.confirmSetup();return}const s=this;axios.get(t).then(u=>{s.setupIntentClientSecret=u.data.clientSecret,s.confirmSetup()}).catch(u=>{this.processing(!1),u.message?this.errorMessage=u.message:u.response&&u.response.data&&(this.errorMessage=u.response.data)})},confirmSetup(){const s=this;this.stripeLibrary.confirmCardSetup(this.setupIntentClientSecret,{payment_method:{card:this.cardElement}}).then(function(u){if(u.error){s.processing(!1),s.form.style.display="block",s.errorMessage=u.error.message;return}const f=document.createElement("input");f.setAttribute("type","hidden"),f.setAttribute("name","payment_method"),f.setAttribute("value",u.setupIntent.payment_method),s.form.appendChild(f),s.form.submit()})}}));wn.data("multiselect",(t,e,r="bottom")=>({selectOpen:!1,selectedItems:new Set(e),selectableItems:t,defaultSelectables:[],search:"",selectedValue:e.length==0?"":e,selectDropdownPosition:r,init(
809){const n=this;this.$watch("selectOpen",function(){n.selectPositionUpdate(),window.addEventListener("resize",function(i){n.selectPositionUpdate()})}),this.$watch("selectedItems",function(){n.selectedValue=Array.from(n.selectedItems).join(",")}),this.$watch("selectOpen",function(i,a){i===!0&&a===!1&&n.$nextTick(()=>{n.$refs.search.focus()})}),window.addEventListener("keydown",function(i){i.key==="Escape"&&n.closeDropDown()}),this.$refs.selectableItemsList.addEventListener("keydown",function(i){i.key==="Escape"&&n.closeDropDown()}),this.defaultSelectables={...this.selectableItems}},closeDropDown(){this.selectOpen&&(this.selectOpen=!1,this.search="",this.selectableItems={...this.defaultSelectables})},toggleDropDown(){this.selectOpen=!this.selectOpen},deleteItem(n){this.selectedItems.has(n)&&(this.selectedItems.delete(n),this.selectedItems=this.selectedItems,this.selectedItems=new Set(this.selectedItems))},selectPositionUpdate(){const n=this.$refs.selectButton.getBoundingClientRect().top+this.$refs.selectButton.offsetHeight+parseInt(window.getComputedStyle(this.$refs.selectableItemsList).maxHeight);window.innerHeight<n?this.selectDropdownPosition="top":this.selectDropdownPosition="bottom"},searchItem(){this.selectableItems={...this.defaultSelectables},Object.keys(this.selectableItems).forEach(n=>{this.selectableItems[n].toLowerCase().includes(this.search.trim().toLowerCase())||delete this.selectableItems[n]})},toggleItemSelected(n){this.selectedItems.has(n)?this.selectedItems.delete(n):this.selectedItems.add(n),this.selectedItems=new Set(this.selectedItems)},clearSelected(){this.selectedItems=new Set([])}}));wn.data("initializeBasketPrice",(t,e,r="basket-plan-price",n="basket-plan-price-asterisk")=>({amount:t,currency:e,planPrice:document.getElementById(r),planPriceAsterisk:document.getElementById(n),init(){if(this.planPrice){(CSS==null?void 0:CSS.registerProperty)!==void 0&&this.planPrice.classList.add("chrome-version");const i=this.amount/100;this.planPrice.classList.contains("chrome-version")?this.planPrice.style.setProperty("--percent",`${i}`):this.planPrice.setAttribute("data-percent",`${this.currency} ${i}`)}this.planPriceAsterisk&&this.planPriceAsterisk.classList.add("hidden")}}));wn.data("manageSubscriptionPriceUpdate",(t,e,r,n,i,a,o="basket-plan-price",s="basket-plan-price-asterisk",u="basket-plan-price-container")=>({showDiscount:!1,requesting:!1,amount:e,cancelToken:void 0,route:i,stripePriceId:r,currency:n,planName:t,couponErrorMessage:null,coupon:null,discount:0,spinner:document.getElementById(a),planPrice:document.getElementById(o),planPriceAsterisk:document.getElementById(s),planContainer:document.getElementById(u),toggleDiscountCodeDisplay(){this.showDiscount=!this.showDiscount},setRequesting(){this.spinner&&(this.requesting?this.spinner.classList.remove("hidden"):this.spinner.classList.add("hidden"))},calculateDiscount(){let f=this.amount;return this.discount&&((discount.amount_off===null||discount.amount_off===void 0)&&(f=this.amount-this.amount*this.discount.percent_off/100),(this.discount.percent_off===null||this.discount.percent_off===void 0)&&(f=Math.max(0,this.amount-this.discount.amount_off))),Math.round(f)},async processCouponInput(f){var d,v,m;if(this.couponErrorMessage=null,this.discount=null,this.coupon=f.target.value,this.coupon.trim().length>0){this.setRequesting(!0),typeof this.cancelToken<"u"&&this.cancelToken.cancel("Operation canceled due to new request."),this.cancelToken=axios.CancelToken.source();try{const{data:b}=await axios.post(this.route,{coupon:this.coupon},{cancelToken:this.cancelToken.token});this.discount=b}catch(b){if((d=b==null?void 0:b.response)!=null&&d.status){this.couponErrorMessage=(m=(v=b==null?void 0:b.response)==null?void 0:v.data)==null?void 0:m.error;return}this.couponErrorMessage="Error processing discount code, please try again"}}this.setRequesting(!1),this.cancelToken=void 0,this.updateStripePriceWithCoupon()},discountIsAppliedToPlan(){return this.discount&&this.discount.applies_to?this.discount.applies_to.split(",").map(f=>f.trim()).includes(this.stripePriceId):!0},updateStripePriceWithCoupon(){if(!this.discountIsAppliedToPlan()){this.couponErrorMessage="Invalid coupon!";return}const f=this.calculateDiscount();let d=[{amount:this.amount,label:`Subscription for ${this.planName}`}];this.coupon!==void 0&&d.push({amount:f-this.amount,label:'Discount for "'+this.coupon+'"'}),this.updatePlanPriceBasket(f/100,d)},updatePlanPriceBasket(f,d){this.planPrice.classList.contains("chrome-version")?this.planPrice.style.setProperty("--percent",f):this.planPrice.setAttribute("data-percent",this.currency+f),d!=null&&d.length>1?this.planPriceAsterisk.classList.remove("hidden"):this.planPriceAsterisk.classList.add("hidden");for(const v of this.planContainer.children)v.remove();
809for(const v in d)if(d.hasOwnProperty(v)){const m=document.createElement("div");m.classList.add("flex","justify-between","text-sm","px-6","mt-4");const b=document.createElement("div");b.classList.add("text-gray-600","whitespace-nowrap","text-left"),b.innerHTML=d[v].label;const x=document.createElement("div");x.classList.add("text-gray-600","whitespace-nowrap","text-right"),x.innerHTML=n+" "+(d[v].amount/100).toFixed(2),m.appendChild(b),m.appendChild(x),this.planContainer.appendChild(m)}}}));document.addEventListener("alpine:init",()=>{wn.magic("tooltip",t=>e=>{let r=Bc(t,{content:e,trigger:"manual"});r.show(),setTimeout(()=>{r.hide(),setTimeout(()=>r.destroy(),150)},2e3)}),wn.directive("tooltip",(t,{expression:e})=>{Bc(t,{content:e})})});Qy.start();window.addEventListener("load",function(){document.dispatchEvent(new Event("loaded-scripts"))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.