ablok-components 0.2.39 → 0.2.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,19 +22,19 @@ ${u}`:l)}else throw i},onCacheKey:i=>bN(e,n,i)}}function iH(t){if(Re(t))return t
22
22
  About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Jr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Jr.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function mu(t,...e){return ou(dH[t],...e)}function vl(t){if(!vt(t)||Qr(t))return t;for(const e in t)if(Fr(t,e))if(!e.includes("."))vt(t[e])&&vl(t[e]);else{const n=e.split("."),A=n.length-1;let r=t,o=!1;for(let i=0;i<A;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in r||(r[n[i]]=Ot()),!vt(r[n[i]])){process.env.NODE_ENV!=="production"&&jr(mu(Jr.IGNORE_OBJ_FLATTEN,{key:n[i]})),o=!0;break}r=r[n[i]]}if(o||(Qr(r)?hC.includes(n[A])||delete t[e]:(r[n[A]]=t[e],delete t[e])),!Qr(r)){const i=r[n[A]];vt(i)&&vl(i)}}return t}function KC(t,e){const{messages:n,__i18n:A,messageResolver:r,flatJson:o}=e,i=Et(n)?n:pn(A)?Ot():{[t]:Ot()};if(pn(A)&&A.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(i[l]=i[l]||Ot(),lu(u,i[l])):lu(u,i)}else Re(a)&&lu(JSON.parse(a),i)}),r==null&&o)for(const a in i)Fr(i,a)&&vl(i[a]);return i}function zC(t){return t.type}function fH(t,e,n){let A=vt(e.messages)?e.messages:Ot();"__i18nGlobal"in n&&(A=KC(t.locale.value,{messages:A,__i18n:n.__i18nGlobal}));const r=Object.keys(A);r.length&&r.forEach(o=>{t.mergeLocaleMessage(o,A[o])});{if(vt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(i=>{t.mergeDateTimeFormat(i,e.datetimeFormats[i])})}if(vt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(i=>{t.mergeNumberFormat(i,e.numberFormats[i])})}}}function WC(t){return s.createVNode(s.Text,null,t,0)}const GC="__INTLIFY_META__",YC=()=>[],hH=()=>!1;let jC=0;function qC(t){return((e,n,A,r)=>t(n,A,s.getCurrentInstance()||void 0,r))}const pH=()=>{const t=s.getCurrentInstance();let e=null;return t&&(e=zC(t)[GC])?{[GC]:e}:null};function mH(t={}){const{__root:e,__injectWithOption:n}=t,A=e===void 0,r=t.flatJson,o=bo?s.ref:s.shallowRef;let i=mn(t.inheritLocale)?t.inheritLocale:!0;const a=o(e&&i?e.locale.value:Re(t.locale)?t.locale:fu),l=o(e&&i?e.fallbackLocale.value:Re(t.fallbackLocale)||pn(t.fallbackLocale)||Et(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=o(KC(a.value,t)),f=o(Et(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=o(Et(t.numberFormats)?t.numberFormats:{[a.value]:{}});let p=e?e.missingWarn:mn(t.missingWarn)||iu(t.missingWarn)?t.missingWarn:!0,g=e?e.fallbackWarn:mn(t.fallbackWarn)||iu(t.fallbackWarn)?t.fallbackWarn:!0,B=e?e.fallbackRoot:mn(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,C=qt(t.missing)?t.missing:null,w=qt(t.missing)?qC(t.missing):null,F=qt(t.postTranslation)?t.postTranslation:null,_=e?e.warnHtmlMessage:mn(t.warnHtmlMessage)?t.warnHtmlMessage:!0,D=!!t.escapeParameter;const P=e?e.modifiers:Et(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{A&&SC(null);const se={version:aH,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:P,pluralRules:T,missing:w===null?void 0:w,missingWarn:p,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:F===null?void 0:F,warnHtmlMessage:_,escapeParameter:D,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};se.datetimeFormats=f.value,se.numberFormats=h.value,se.__datetimeFormatters=Et(H)?H.__datetimeFormatters:void 0,se.__numberFormatters=Et(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(se.__v_emitter=Et(H)?H.__v_emitter:void 0);const he=G2(se);return A&&SC(he),he})(),Cl(H,a.value,l.value);function Z(){return[a.value,l.value,u.value,f.value,h.value]}const ne=s.computed({get:()=>a.value,set:se=>{H.locale=se,a.value=se}}),pe=s.computed({get:()=>l.value,set:se=>{H.fallbackLocale=se,l.value=se,Cl(H,a.value,se)}}),Be=s.computed(()=>u.value),we=s.computed(()=>f.value),R=s.computed(()=>h.value);function K(){return qt(F)?F:null}function N(se){F=se,H.postTranslation=se}function k(){return C}function E(se){se!==null&&(w=qC(se)),C=se,H.missing=w}function I(se,he){return se!=="translate"||!he.resolvedMessage}const Q=(se,he,Ue,ke,Ye,Ve)=>{Z();let Ct;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,A||(H.fallbackContext=e?W2():void 0),Ct=se(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,A||(H.fallbackContext=void 0)}if(Ue!=="translate exists"&&Mn(Ct)&&Ct===du||Ue==="translate exists"&&!Ct){const[wt,Nt]=he();if(process.env.NODE_ENV!=="production"&&e&&Re(wt)&&I(Ue,Nt)&&(B&&(pu(g,wt)||QC(p,wt))&&jr(mu(Jr.FALLBACK_TO_ROOT,{key:wt,type:Ue})),process.env.NODE_ENV!=="production")){const{__v_emitter:wA}=H;wA&&B&&wA.emit("fallback",{type:Ue,key:wt,to:"global",groupId:`${Ue}:${wt}`})}return e&&B?ke(e):Ye(wt)}else{if(Ve(Ct))return Ct;throw bl(Kn.UNEXPECTED_RETURN_TYPE)}};function v(...se){return Q(he=>Reflect.apply(PC,null,[he,...se]),()=>Vp(...se),"translate",he=>Reflect.apply(he.t,he,[...se]),he=>he,he=>Re(he))}function W(...se){const[he,Ue,ke]=se;if(ke&&!vt(ke))throw bl(Kn.INVALID_ARGUMENT);return v(he,Ue,On({resolvedMessage:!0},ke||{}))}function M(...se){return Q(he=>Reflect.apply(_C,null,[he,...se]),()=>Pp(...se),"datetime format",he=>Reflect.apply(he.d,he,[...se]),()=>hu,he=>Re(he)||pn(he))}function $(...se){return Q(he=>Reflect.apply(MC,null,[he,...se]),()=>Rp(...se),"number format",he=>Reflect.apply(he.n,he,[...se]),()=>hu,he=>Re(he)||pn(he))}function J(se){return se.map(he=>Re(he)||Mn(he)||mn(he)?WC(String(he)):he)}const S={normalize:J,interpolate:se=>se,type:"vnode"};function G(...se){return Q(he=>{let Ue;const ke=he;try{ke.processor=S,Ue=Reflect.apply(PC,null,[ke,...se])}finally{ke.processor=null}return Ue},()=>Vp(...se),"translate",he=>he[$p](...se),he=>[WC(he)],he=>pn(he))}function ue(...se){return Q(he=>Reflect.apply(MC,null,[he,...se]),()=>Rp(...se),"number format",he=>he[zp](...se),YC,he=>Re(he)||pn(he))}function xe(...se){return Q(he=>Reflect.apply(_C,null,[he,...se]),()=>Pp(...se),"datetime format",he=>he[Kp](...se),YC,he=>Re(he)||pn(he))}function Ae(se){T=se,H.pluralRules=T}function X(se,he){return Q(()=>{if(!se)return!1;const Ue=Re(he)?he:a.value,ke=U(Ue),Ye=H.messageResolver(ke,se);return Qr(Ye)||tr(Ye)||Re(Ye)},()=>[se],"translate exists",Ue=>Reflect.apply(Ue.te,Ue,[se,he]),hH,Ue=>mn(Ue))}function q(se){let he=null;const Ue=gC(H,l.value,a.value);for(let ke=0;ke<Ue.length;ke++){const Ye=u.value[Ue[ke]]||{},Ve=H.messageResolver(Ye,se);if(Ve!=null){he=Ve;break}}return he}function z(se){const he=q(se);return he??(e?e.tm(se)||{}:{})}function U(se){return u.value[se]||{}}function re(se,he){if(r){const Ue={[se]:he};for(const ke in Ue)Fr(Ue,ke)&&vl(Ue[ke]);he=Ue[se]}u.value[se]=he,H.messages=u.value}function de(se,he){u.value[se]=u.value[se]||{};const Ue={[se]:he};if(r)for(const ke in Ue)Fr(Ue,ke)&&vl(Ue[ke]);he=Ue[se],lu(he,u.value[se]),H.messages=u.value}function L(se){return f.value[se]||{}}function Y(se,he){f.value[se]=he,H.datetimeFormats=f.value,DC(H,se,he)}function ae(se,he){f.value[se]=On(f.value[se]||{},he),H.datetimeFormats=f.value,DC(H,se,he)}function ye(se){return h.value[se]||{}}function Te(se,he){h.value[se]=he,H.numberFormats=h.value,LC(H,se,he)}function ie(se,he){h.value[se]=On(h.value[se]||{},he),H.numberFormats=h.value,LC(H,se,he)}jC++,e&&bo&&(s.watch(e.locale,se=>{i&&(a.value=se,H.locale=se,Cl(H,a.value,l.value))}),s.watch(e.fallbackLocale,se=>{i&&(l.value=se,H.fallbackLocale=se,Cl(H,a.value,l.value))}));const ge={id:jC,locale:ne,fallbackLocale:pe,get inheritLocale(){return i},set inheritLocale(se){i=se,se&&e&&(a.value=e.locale.value,l.value=e.fallbackLocale.value,Cl(H,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Be,get modifiers(){return P},get pluralRules(){return T||{}},get isGlobal(){return A},get missingWarn(){return p},set missingWarn(se){p=se,H.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(se){g=se,H.fallbackWarn=g},get fallbackRoot(){return B},set fallbackRoot(se){B=se},get fallbackFormat(){return y},set fallbackFormat(se){y=se,H.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(se){_=se,H.warnHtmlMessage=se},get escapeParameter(){return D},set escapeParameter(se){D=se,H.escapeParameter=se},t:v,getLocaleMessage:U,setLocaleMessage:re,mergeLocaleMessage:de,getPostTranslationHandler:K,setPostTranslationHandler:N,getMissingHandler:k,setMissingHandler:E,[uH]:Ae};return ge.datetimeFormats=we,ge.numberFormats=R,ge.rt=W,ge.te=X,ge.tm=z,ge.d=M,ge.n=$,ge.getDateTimeFormat=L,ge.setDateTimeFormat=Y,ge.mergeDateTimeFormat=ae,ge.getNumberFormat=ye,ge.setNumberFormat=Te,ge.mergeNumberFormat=ie,ge[$C]=n,ge[$p]=G,ge[Kp]=xe,ge[zp]=ue,process.env.NODE_ENV!=="production"&&(ge[Wp]=se=>{H.__v_emitter=se},ge[Gp]=()=>{H.__v_emitter=void 0}),ge}function JC(t,e){}const jp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function gH({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((A,r)=>[...A,...r.type===s.Fragment?r.children:[r]],[]):e.reduce((n,A)=>{const r=t[A];return r&&(n[A]=r()),n},Ot())}function XC(){return s.Fragment}On({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Mn(t)||!isNaN(t)}},jp);function BH(t){return pn(t)&&!Re(t[0])}function ZC(t,e,n,A){const{slots:r,attrs:o}=e;return()=>{const i={part:!0};let a=Ot();t.locale&&(i.locale=t.locale),Re(t.format)?i.key=t.format:vt(t.format)&&(Re(t.format.key)&&(i.key=t.format.key),a=Object.keys(t.format).reduce((p,g)=>n.includes(g)?On(Ot(),p,{[g]:t.format[g]}):p,Ot()));const l=A(t.value,i,a);let u=[i.key];pn(l)?u=l.map((p,g)=>{const B=r[p.type],y=B?B({[p.type]:p.value,index:g,parts:l}):[p.value];return BH(y)&&(y[0].key=`${p.type}-${g}`),y}):Re(l)&&(u=[l]);const f=On(Ot(),o),h=Re(t.tag)||vt(t.tag)?t.tag:XC();return s.h(h,f,u)}}On({value:{type:Number,required:!0},format:{type:[String,Object]}},jp);const yH=vo("global-vue-i18n");function El(t={}){const e=s.getCurrentInstance();if(e==null)throw bl(Kn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw bl(Kn.NOT_INSTALLED);const n=wH(e),A=bH(n),r=zC(e),o=CH(t,r);if(o==="global")return fH(A,t,r),A;if(o==="parent"){let l=vH(n,e,t.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&jr(mu(Jr.NOT_FOUND_PARENT_SCOPE)),l=A),l}const i=n;let a=i.__getInstance(e);if(a==null){const l=On({},t);"__i18n"in r&&(l.__i18n=r.__i18n),A&&(l.__root=A),a=mH(l),i.__composerExtend&&(a[Yp]=i.__composerExtend(a)),kH(i,e,a),i.__setInstance(e,a)}else process.env.NODE_ENV!=="production"&&o==="local"&&jr(mu(Jr.DUPLICATE_USE_I18N_CALLING));return a}function wH(t){const e=s.inject(t.isCE?yH:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw bl(t.isCE?Kn.NOT_INSTALLED_WITH_PROVIDE:Kn.UNEXPECTED_ERROR);return e}function CH(t,e){return su(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function bH(t){return t.mode==="composition"?t.global:t.global.__composer}function vH(t,e,n=!1){let A=null;const r=e.root;let o=EH(e,n);for(;o!=null;){const i=t;if(t.mode==="composition")A=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(A=a.__composer,n&&A&&!A[$C]&&(A=null))}if(A!=null||r===o)break;o=o.parent}return A}function EH(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function kH(t,e,n){let A=null;s.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,A=IN();const r=n;r[Wp]&&r[Wp](A),A.on("*",JC)}},e),s.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(A&&A.off("*",JC),r[Gp]&&r[Gp](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const o=r[Yp];o&&(o(),delete r[Yp])},e)}if(On({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},jp),lH(),R2(y2),V2(O2),$2(gC),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=As();t.__INTLIFY__=!0,w2(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const SH={class:"row"},FH={class:"col-12"},QH=["for","innerHTML"],xH={key:0},UH={class:"input-group justify-content-center"},IH={key:0,class:"row"},_H={class:"col-12 col-md-6"},TH={class:"col-12 col-md-6"},DH={key:1,class:"row"},MH={class:"col-12"},OH=s.defineComponent({__name:"input-datepicker",props:{modelValue:{type:null,default:""},from:{type:[String,Number,Boolean,Date],default:""},to:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"datetime-local"},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},range:{type:Boolean,default:!1},textRange:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!0},picker:{type:Boolean,default:!0},locale:{type:String,default:"en"},utcStore:{type:Boolean,default:!1}},emits:["update:modelValue","update:from","update:to"],setup(t,{emit:e}){const n=t,A=e,{t:r,locale:o}=El(),i=s.computed(()=>n.locale||o.value),a=s.computed(()=>n.inline||!n.picker?{openMenu:!1,format:i.value}:!0),l=s.computed({get(){if(n.range){let y=n.from||(Array.isArray(n.modelValue)?n.modelValue[0]:null),C=n.to||(Array.isArray(n.modelValue)?n.modelValue[1]:null);return n.utcStore?(y=y?p(y):null,C=C?p(C):null):(y=y?new Date(`${y}Z`).toISOString().replace("Z",""):null,C=C?new Date(`${C}Z`).toISOString().replace("Z",""):null),[...y?[y]:[],...C?[C]:[]]}else{if(n.utcStore){const w=n.modelValue;return w&&p(w)||""}const y=n.modelValue?new Date(`${n.modelValue}Z`):null,C=y&&y.toISOString();return C&&C.replace("Z","")}},set(y){if(n.range&&Array.isArray(y)){let[C,w]=y;n.utcStore?(C=g(C)||null,w=g(w)||null):(C=C&&new Date(C),C?.setUTCHours(C.getHours()),C=C?.toISOString()?.replace("Z",""),w=w&&new Date(w),w?.setUTCHours(w.getHours()),w=w?.toISOString()?.replace("Z","")),A("update:modelValue",[C,w]),A("update:from",C),A("update:to",w)}else if(n.utcStore){const C=g(y);A("update:modelValue",C)}else{const C=y&&new Date(y);C?.setUTCHours(C?.getHours()),y=C&&C.toISOString(),A("update:modelValue",y&&y.replace("Z",""))}}}),u=s.computed({get(){return Array.isArray(l.value)?l.value[0]:l.value},set(y){l.value=Array.isArray(l.value)?[y,l.value[0]]:y}}),f=s.computed({get(){return Array.isArray(l.value)?l.value[1]:l.value},set(y){l.value=Array.isArray(l.value)?[l.value[0],y]:y}});s.watch(()=>[u.value,f.value],(y,C)=>{n.range&&y.some(w=>w===void 0)&&C.every(Boolean)&&(l.value=[])});function h(y){if(!y)return;const C=y.getDate(),w=y.getMonth()+1,F=y.getFullYear(),_=y.getMinutes(),D=y.getHours();switch(i.value){case"de":return`${C}.${w}.${F} ${D<10?"0"+D:D}:${_<10?"0"+_:_}`;case"fr":return`${C}/${w}/${F} ${D<10?"0"+D:D}:${_<10?"0"+_:_}`;case"en":default:return`${w}/${C}/${F} ${D<10?"0"+D:D}:${_<10?"0"+_:_}`}}function p(y){if(!y)return null;const C=y instanceof Date?new Date(y):new Date(`${y}Z`),w=C.getFullYear(),F=String(C.getMonth()+1).padStart(2,"0"),_=String(C.getDate()).padStart(2,"0"),D=String(C.getHours()).padStart(2,"0"),P=String(C.getMinutes()).padStart(2,"0"),T=String(C.getSeconds()).padStart(2,"0");return`${w}-${F}-${_}T${D}:${P}:${T}`}function g(y){return y?(y instanceof Date?new Date(y):new Date(String(y))).toISOString().split(".")[0]:null}const B=y=>(Array.isArray(y)?y=y.map(C=>h(C)).join(" - "):y=h(y),y);return(y,C)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input","input--datepicker"])},[s.renderSlot(y.$slots,"label",{},()=>[s.createElementVNode("div",SH,[s.createElementVNode("div",FH,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,QH)):s.createCommentVNode("",!0)])])]),t.textInput?(s.openBlock(),s.createElementBlock("div",xH,[s.createElementVNode("div",UH,[s.renderSlot(y.$slots,"input-prepend",{slotScope:"props"}),t.range&&!t.textRange?(s.openBlock(),s.createElementBlock("div",IH,[s.createElementVNode("div",_H,[s.createVNode(s.unref(ra),{uid:`${t.id}-from`,modelValue:u.value,"onUpdate:modelValue":C[0]||(C[0]=w=>u.value=w),locale:i.value,format:B,"text-input":a.value,disabled:t.disabled,"ready-only":t.readOnly,required:t.required,"auto-apply":!0},null,8,["uid","modelValue","locale","text-input","disabled","ready-only","required"])]),s.createElementVNode("div",TH,[s.createVNode(s.unref(ra),{uid:`${t.id}-to`,modelValue:f.value,"onUpdate:modelValue":C[1]||(C[1]=w=>f.value=w),locale:i.value,format:B,"text-input":a.value,disabled:t.disabled,"ready-only":t.readOnly,required:t.required,"auto-apply":!0},null,8,["uid","modelValue","locale","text-input","disabled","ready-only","required"])])])):(s.openBlock(),s.createBlock(s.unref(ra),{key:1,uid:`${t.id}-input-to`,modelValue:l.value,"onUpdate:modelValue":C[2]||(C[2]=w=>l.value=w),format:B,locale:i.value,range:t.textRange,"text-input":a.value,disabled:t.disabled,"ready-only":t.readOnly,required:t.required,"auto-apply":!0},null,8,["uid","modelValue","locale","range","text-input","disabled","ready-only","required"])),s.renderSlot(y.$slots,"input-append",{slotScope:"props"})])])):s.createCommentVNode("",!0),t.inline?(s.openBlock(),s.createElementBlock("div",DH,[s.createElementVNode("div",MH,[s.createVNode(s.unref(ra),{uid:`${t.id}-inline`,modelValue:l.value,"onUpdate:modelValue":C[3]||(C[3]=w=>l.value=w),locale:i.value,cancelText:"abbrechen",selectText:"auswählen",range:t.range,"multi-calendars":t.range,inline:{input:!1},"auto-apply":!0,"partial-range":t.range,"partial-flow":!0,"start-time":{hours:0,minutes:0},class:"justify-content-center",disabled:t.disabled,"ready-only":t.readOnly,required:t.required,"month-name-format":"long"},null,8,["uid","modelValue","locale","range","multi-calendars","partial-range","disabled","ready-only","required"])])])):s.createCommentVNode("",!0)]))}}),LH={class:"input-group input__input-group"},NH=s.defineComponent({__name:"input-password",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"},password:{type:String,default:""},confirm:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){(n.password===o||!n.password)&&A("update:modelValue",o)}});return(o,i)=>{const a=s.resolveComponent("svg-icon"),l=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input","input-password"])},[s.createElementVNode("div",LH,[s.createVNode(l,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=u=>r.value=u),type:"password",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readOnly,required:t.required,label:t.label},{"input-prepend":s.withCtx(u=>[s.renderSlot(o.$slots,"input-prepend",{slotScope:"props"})]),"input-append":s.withCtx(u=>[s.renderSlot(o.$slots,"input-append",{slotScope:"props"},()=>[t.confirm&&t.modelValue===t.password?(s.openBlock(),s.createBlock(a,{key:0,symbol:"check",class:"ms-2"})):s.createCommentVNode("",!0)])]),_:3},8,["modelValue","placeholder","disabled","readonly","required","label"])])])}}}),HH={class:"check-group"},PH=["id","name","value","disabled","read-only","required"],RH=["for","innerHTML"],VH=s.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e;s.ref([]);const r=s.computed({get(){return n.modelValue},set(i){A("update:modelValue",i)}}),o=s.computed(()=>n.options&&n.options.map(i=>(i=typeof i=="string"?{text:i,value:i}:i,{...i,active:n.modelValue&&n.modelValue.includes(i.value)})));return(i,a)=>(s.openBlock(),s.createElementBlock("div",HH,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(l,u)=>(s.openBlock(),s.createElementBlock("div",{key:u,class:"form-check"},[s.withDirectives(s.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=f=>r.value=f),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:l.value||l,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,PH),[[s.vModelCheckbox,r.value]]),s.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:l.text},null,8,RH)]))),128))]))}}),$H={class:"input radio-group"},KH=["id","name","value","checked","disabled","read-only","required","onChange"],zH=["for","innerHTML"],WH=["for"],gu=s.defineComponent({__name:"radio-group",props:{modelValue:{type:null},options:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["change","update:modelValue"],setup(t,{emit:e}){const n=e;function A(r){n("update:modelValue",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",$H,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.options,(i,a)=>(s.openBlock(),s.createElementBlock("div",{key:a,class:s.normalizeClass(["form-check",t.itemClass])},[s.createElementVNode("input",{type:"radio",id:`${t.id}-${a}`,name:t.name,class:s.normalizeClass(["form-check-input",`
23
23
  ${a===t.keyOption||i.key?"form-check-input--key":""}
24
24
  ${(a===t.keyOption||i.key)&&i.value===t.modelValue?.value?"form-check-input--match":""}
25
- `]),value:i.value||i,checked:i.value?i.value===t.modelValue?.value:i===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:l=>A(i)},null,42,KH),s.renderSlot(r.$slots,"option-label",{option:i,index:a},()=>[s.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${a}`,innerHTML:i.text},null,8,zH)])],2))),128)),s.renderSlot(r.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id},s.toDisplayString(t.label),9,WH)):s.createCommentVNode("",!0)])]))}}),GH={class:"radio-buttons"},YH=["for"],jH=s.defineComponent({__name:"radio-buttons",props:{modelValue:{type:null,default:""},options:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){A("update:modelValue",o)}});return(o,i)=>(s.openBlock(),s.createElementBlock("div",GH,[s.createVNode(gu,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a),options:t.options,name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-column gap-3 justify-content-center"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block btn btn-outline-primary p-3 fw-bold",role:"button"},s.toDisplayString(a.option.text),9,YH)]),_:1},8,["modelValue","options","name","id","disabled","required"])]))}}),qH=["id","name","multiple","accept","disabled"],JH={class:"input__input-group input-group"},XH=["value","id","name","disabled"],ZH=["for","disabled"],eP={class:"btn btn-outline-contrast"},tP=["for"],nP=["innerHTML"],AP=s.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},dropzone:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e;function r(l){const u=l.target&&l.target.files;u&&(i.splice(0,i.length),Array.from(u).forEach(f=>{if(n.maxFileSize&&f.size>n.maxFileSize){console.warn(`File ${f.name} exceeds the ${n.maxFileSize} bytes size limit and will not be added.`);return}i.push(f)}))}const o=s.ref(),i=s.reactive([]),a=s.computed(()=>i&&i.map(l=>l.name));return s.watch(()=>n.modelValue,(l,u)=>{l.length===0&&(o.value.value=null)},{deep:!0}),s.watch(()=>i,(l,u)=>{A("update:modelValue",l)},{deep:!0}),(l,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input input-file","input-file--primary"])},[s.createElementVNode("input",{ref_key:"input",ref:o,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,qH),s.createElementVNode("div",JH,[s.renderSlot(l.$slots,"input-prepend"),s.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,XH),s.renderSlot(l.$slots,"input-append",{},()=>[s.createElementVNode("label",{for:t.id,disabled:t.disabled},[s.renderSlot(l.$slots,"button",{},()=>[s.createElementVNode("span",eP,s.toDisplayString(l.$t("common.selectFile")),1)])],8,ZH)])]),s.createElementVNode("label",{for:t.id},[s.renderSlot(l.$slots,"label",{},()=>[s.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,nP)])],8,tP)]))}}),rP={class:"select-media"},oP=["for"],iP=s.defineComponent({__name:"select-media",props:{modelValue:{type:null,default:""},assets:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},emitKey:{type:String,default:"src"}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){const i=n.assets.find(a=>a.id===o);A("update:modelValue",n.emitKey?i[n.emitKey]:i),n.emitKey&&n.emitKey!=="id"&&A("update:selection",i.id)}});return(o,i)=>{const a=s.resolveComponent("base-image");return s.openBlock(),s.createElementBlock("div",rP,[s.createVNode(gu,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=l=>r.value=l),options:t.assets.map(l=>l.id),name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row justify-content-center",itemClass:"col-6 p-2"},{"option-label":s.withCtx(l=>[s.createElementVNode("label",{for:`${t.id}-${l.index}`,class:s.normalizeClass(["w-100",{"is-active":t.assets[l.index].id===r.value}]),role:"button"},[t.assets[l.index].thumbnail?(s.openBlock(),s.createBlock(a,{key:0,src:t.assets[l.index].thumbnail,alt:t.assets[l.index].id},null,8,["src","alt"])):s.createCommentVNode("",!0)],10,oP)]),_:1},8,["modelValue","options","name","id","disabled","required"])])}}});function zn(t){this.content=t}zn.prototype={constructor:zn,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,n){var A=n&&n!=t?this.remove(n):this,r=A.find(t),o=A.content.slice();return r==-1?o.push(n||t,e):(o[r+1]=e,n&&(o[r]=n)),new zn(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new zn(n)},addToStart:function(t,e){return new zn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new zn(n)},addBefore:function(t,e,n){var A=this.remove(e),r=A.content.slice(),o=A.find(t);return r.splice(o==-1?r.length:o,0,e,n),new zn(r)},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=zn.from(t),t.size?new zn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=zn.from(t),t.size?new zn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=zn.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},zn.from=function(t){if(t instanceof zn)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new zn(e)};function eb(t,e,n){for(let A=0;;A++){if(A==t.childCount||A==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(A),o=e.child(A);if(r==o){n+=r.nodeSize;continue}if(!r.sameMarkup(o))return n;if(r.isText&&r.text!=o.text){for(let i=0;r.text[i]==o.text[i];i++)n++;return n}if(r.content.size||o.content.size){let i=eb(r.content,o.content,n+1);if(i!=null)return i}n+=r.nodeSize}}function tb(t,e,n,A){for(let r=t.childCount,o=e.childCount;;){if(r==0||o==0)return r==o?null:{a:n,b:A};let i=t.child(--r),a=e.child(--o),l=i.nodeSize;if(i==a){n-=l,A-=l;continue}if(!i.sameMarkup(a))return{a:n,b:A};if(i.isText&&i.text!=a.text){let u=0,f=Math.min(i.text.length,a.text.length);for(;u<f&&i.text[i.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,A--;return{a:n,b:A}}if(i.content.size||a.content.size){let u=tb(i.content,a.content,n-1,A-1);if(u)return u}n-=l,A-=l}}class Qe{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let A=0;A<e.length;A++)this.size+=e[A].nodeSize}nodesBetween(e,n,A,r=0,o){for(let i=0,a=0;a<n;i++){let l=this.content[i],u=a+l.nodeSize;if(u>e&&A(l,r+a,o||null,i)!==!1&&l.content.size){let f=a+1;l.nodesBetween(Math.max(0,e-f),Math.min(l.content.size,n-f),A,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,A,r){let o="",i=!0;return this.nodesBetween(e,n,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&A&&(i?i=!1:o+=A),o+=u},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,A=e.firstChild,r=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(A)&&(r[r.length-1]=n.withText(n.text+A.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new Qe(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let A=[],r=0;if(n>e)for(let o=0,i=0;i<n;o++){let a=this.content[o],l=i+a.nodeSize;l>e&&((i<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-i),Math.min(a.text.length,n-i)):a=a.cut(Math.max(0,e-i-1),Math.min(a.content.size,n-i-1))),A.push(a),r+=a.nodeSize),i=l}return new Qe(A,r)}cutByIndex(e,n){return e==n?Qe.empty:e==0&&n==this.content.length?this:new Qe(this.content.slice(e,n))}replaceChild(e,n){let A=this.content[e];if(A==n)return this;let r=this.content.slice(),o=this.size+n.nodeSize-A.nodeSize;return r[e]=n,new Qe(r,o)}addToStart(e){return new Qe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Qe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,A=0;n<this.content.length;n++){let r=this.content[n];e(r,A,n),A+=r.nodeSize}}findDiffStart(e,n=0){return eb(this,e,n)}findDiffEnd(e,n=this.size,A=e.size){return tb(this,e,n,A)}findIndex(e){if(e==0)return Bu(0,e);if(e==this.size)return Bu(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,A=0;;n++){let r=this.child(n),o=A+r.nodeSize;if(o>=e)return o==e?Bu(n+1,o):Bu(n,A);A=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Qe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Qe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Qe.empty;let n,A=0;for(let r=0;r<e.length;r++){let o=e[r];A+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(n||(n=e.slice(0,r)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new Qe(n||e,A)}static from(e){if(!e)return Qe.empty;if(e instanceof Qe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Qe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Qe.empty=new Qe([],0);const qp={index:0,offset:0};function Bu(t,e){return qp.index=t,qp.offset=e,qp}function yu(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let A=0;A<t.length;A++)if(!yu(t[A],e[A]))return!1}else{for(let A in t)if(!(A in e)||!yu(t[A],e[A]))return!1;for(let A in e)if(!(A in t))return!1}return!0}let Ht=class N0{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,A=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!A&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),A=!0),n&&n.push(o)}}return n||(n=e.slice()),A||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&yu(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let A=e.marks[n.type];if(!A)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=A.create(n.attrs);return A.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let A=0;A<e.length;A++)if(!e[A].eq(n[A]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return N0.none;if(e instanceof N0)return[e];let n=e.slice();return n.sort((A,r)=>A.type.rank-r.type.rank),n}};Ht.none=[];class wu extends Error{}class Ne{constructor(e,n,A){this.content=e,this.openStart=n,this.openEnd=A}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let A=Ab(this.content,e+this.openStart,n);return A&&new Ne(A,this.openStart,this.openEnd)}removeBetween(e,n){return new Ne(nb(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ne.empty;let A=n.openStart||0,r=n.openEnd||0;if(typeof A!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ne(Qe.fromJSON(e,n.content),A,r)}static maxOpen(e,n=!0){let A=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)A++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)r++;return new Ne(e,A,r)}}Ne.empty=new Ne(Qe.empty,0,0);function nb(t,e,n){let{index:A,offset:r}=t.findIndex(e),o=t.maybeChild(A),{index:i,offset:a}=t.findIndex(n);if(r==e||o.isText){if(a!=n&&!t.child(i).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(A!=i)throw new RangeError("Removing non-flat range");return t.replaceChild(A,o.copy(nb(o.content,e-r-1,n-r-1)))}function Ab(t,e,n,A){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r);if(o==e||i.isText)return A&&!A.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=Ab(i.content,e-o-1,n,i);return a&&t.replaceChild(r,i.copy(a))}function sP(t,e,n){if(n.openStart>t.depth)throw new wu("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new wu("Inconsistent open depths");return rb(t,e,n,0)}function rb(t,e,n,A){let r=t.index(A),o=t.node(A);if(r==e.index(A)&&A<t.depth-n.openStart){let i=rb(t,e,n,A+1);return o.copy(o.content.replaceChild(r,i))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==A&&e.depth==A){let i=t.parent,a=i.content;return ss(i,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:i,end:a}=aP(n,t);return ss(o,ib(t,i,a,e,A))}else return ss(o,Cu(t,e,A))}function ob(t,e){if(!e.type.compatibleContent(t.type))throw new wu("Cannot join "+e.type.name+" onto "+t.type.name)}function Jp(t,e,n){let A=t.node(n);return ob(A,e.node(n)),A}function is(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function kl(t,e,n,A){let r=(e||t).node(n),o=0,i=e?e.index(n):r.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(is(t.nodeAfter,A),o++));for(let a=o;a<i;a++)is(r.child(a),A);e&&e.depth==n&&e.textOffset&&is(e.nodeBefore,A)}function ss(t,e){return t.type.checkContent(e),t.copy(e)}function ib(t,e,n,A,r){let o=t.depth>r&&Jp(t,e,r+1),i=A.depth>r&&Jp(n,A,r+1),a=[];return kl(null,t,r,a),o&&i&&e.index(r)==n.index(r)?(ob(o,i),is(ss(o,ib(t,e,n,A,r+1)),a)):(o&&is(ss(o,Cu(t,e,r+1)),a),kl(e,n,r,a),i&&is(ss(i,Cu(n,A,r+1)),a)),kl(A,null,r,a),new Qe(a)}function Cu(t,e,n){let A=[];if(kl(null,t,n,A),t.depth>n){let r=Jp(t,e,n+1);is(ss(r,Cu(t,e,n+1)),A)}return kl(e,null,n,A),new Qe(A)}function aP(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)r=e.node(o).copy(Qe.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Sl{constructor(e,n,A){this.pos=e,this.path=n,this.parentOffset=A,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(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]}after(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}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let A=this.pos-this.path[this.path.length-1],r=e.child(n);return A?e.child(n).cut(A):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let A=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)r+=A.child(o).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Ht.none;if(this.textOffset)return e.child(n).marks;let A=e.maybeChild(n-1),r=e.maybeChild(n);if(!A){let a=A;A=r,r=a}let o=A.marks;for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let A=n.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<A.length;o++)A[o].type.spec.inclusive===!1&&(!r||!A[o].isInSet(r.marks))&&(A=A[o--].removeFromSet(A));return A}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let A=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);A>=0;A--)if(e.pos<=this.end(A)&&(!n||n(this.node(A))))return new bu(this,e,A);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let A=[],r=0,o=n;for(let i=e;;){let{index:a,offset:l}=i.content.findIndex(o),u=o-l;if(A.push(i,a,r+l),!u||(i=i.child(a),i.isText))break;o=u-1,r+=l+1}return new Sl(n,A,o)}static resolveCached(e,n){let A=sb.get(e);if(A)for(let o=0;o<A.elts.length;o++){let i=A.elts[o];if(i.pos==n)return i}else sb.set(e,A=new lP);let r=A.elts[A.i]=Sl.resolve(e,n);return A.i=(A.i+1)%cP,r}}class lP{constructor(){this.elts=[],this.i=0}}const cP=12,sb=new WeakMap;class bu{constructor(e,n,A){this.$from=e,this.$to=n,this.depth=A}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const uP=Object.create(null);let ii=class H0{constructor(e,n,A,r=Ht.none){this.type=e,this.attrs=n,this.marks=r,this.content=A||Qe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,A,r=0){this.content.nodesBetween(e,n,A,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,A,r){return this.content.textBetween(e,n,A,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,A){return this.type==e&&yu(this.attrs,n||e.defaultAttrs||uP)&&Ht.sameSet(this.marks,A||Ht.none)}copy(e=null){return e==this.content?this:new H0(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new H0(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,A=!1){if(e==n)return Ne.empty;let r=this.resolve(e),o=this.resolve(n),i=A?0:r.sharedDepth(n),a=r.start(i),u=r.node(i).content.cut(r.pos-a,o.pos-a);return new Ne(u,r.depth-i,o.depth-i)}replace(e,n,A){return sP(this.resolve(e),this.resolve(n),A)}nodeAt(e){for(let n=this;;){let{index:A,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(A),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:A}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:A}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:A}=this.content.findIndex(e);if(A<e)return{node:this.content.child(n),index:n,offset:A};let r=this.content.child(n-1);return{node:r,index:n-1,offset:A-r.nodeSize}}resolve(e){return Sl.resolveCached(this,e)}resolveNoCache(e){return Sl.resolve(this,e)}rangeHasMark(e,n,A){let r=!1;return n>e&&this.nodesBetween(e,n,o=>(A.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ab(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,A=Qe.empty,r=0,o=A.childCount){let i=this.contentMatchAt(e).matchFragment(A,r,o),a=i&&i.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<o;l++)if(!this.type.allowsMarks(A.child(l).marks))return!1;return!0}canReplaceWith(e,n,A,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(A),i=o&&o.matchFragment(this.content,n);return i?i.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ht.none;for(let n=0;n<this.marks.length;n++){let A=this.marks[n];A.type.checkAttrs(A.attrs),e=A.addToSet(e)}if(!Ht.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n 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(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let A;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");A=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,A)}let r=Qe.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,r,A);return o.type.checkAttrs(o.attrs),o}};ii.prototype.text=void 0;class vu extends ii{constructor(e,n,A,r){if(super(e,n,null,r),!A)throw new RangeError("Empty text nodes are not allowed");this.text=A}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ab(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new vu(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new vu(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ab(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class as{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let A=new dP(e,n);if(A.next==null)return as.empty;let r=lb(A);A.next&&A.err("Unexpected trailing text");let o=yP(BP(r));return wP(o,A),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,A=e.childCount){let r=this;for(let o=n;r&&o<A;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let A=0;A<e.next.length;A++)if(this.next[n].type==e.next[A].type)return!0;return!1}fillBefore(e,n=!1,A=0){let r=[this];function o(i,a){let l=i.matchFragment(e,A);if(l&&(!n||l.validEnd))return Qe.from(a.map(u=>u.createAndFill()));for(let u=0;u<i.next.length;u++){let{type:f,next:h}=i.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let p=o(h,a.concat(f));if(p)return p}}return null}return o(this,[])}findWrapping(e){for(let A=0;A<this.wrapCache.length;A+=2)if(this.wrapCache[A]==e)return this.wrapCache[A+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),A=[{match:this,type:null,via:null}];for(;A.length;){let r=A.shift(),o=r.match;if(o.matchType(e)){let i=[];for(let a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(let i=0;i<o.next.length;i++){let{type:a,next:l}=o.next[i];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(A.push({match:a.contentMatch,type:a,via:r}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(A){e.push(A);for(let r=0;r<A.next.length;r++)e.indexOf(A.next[r].next)==-1&&n(A.next[r].next)}return n(this),e.map((A,r)=>{let o=r+(A.validEnd?"*":" ")+" ";for(let i=0;i<A.next.length;i++)o+=(i?", ":"")+A.next[i].type.name+"->"+e.indexOf(A.next[i].next);return o}).join(`
26
- `)}}as.empty=new as(!0);class dP{constructor(e,n){this.string=e,this.nodeTypes=n,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()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function lb(t){let e=[];do e.push(fP(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function fP(t){let e=[];do e.push(hP(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function hP(t){let e=gP(t);for(;;)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=pP(t,e);else break;return e}function cb(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function pP(t,e){let n=cb(t),A=n;return t.eat(",")&&(t.next!="}"?A=cb(t):A=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:A,expr:e}}function mP(t,e){let n=t.nodeTypes,A=n[e];if(A)return[A];let r=[];for(let o in n){let i=n[o];i.isInGroup(e)&&r.push(i)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function gP(t){if(t.eat("(")){let e=lb(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=mP(t,t.next).map(n=>(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++,e.length==1?e[0]:{type:"choice",exprs:e}}}function BP(t){let e=[[]];return r(o(t,0),n()),e;function n(){return e.push([])-1}function A(i,a,l){let u={term:l,to:a};return e[i].push(u),u}function r(i,a){i.forEach(l=>l.to=a)}function o(i,a){if(i.type=="choice")return i.exprs.reduce((l,u)=>l.concat(o(u,a)),[]);if(i.type=="seq")for(let l=0;;l++){let u=o(i.exprs[l],a);if(l==i.exprs.length-1)return u;r(u,a=n())}else if(i.type=="star"){let l=n();return A(a,l),r(o(i.expr,l),l),[A(l)]}else if(i.type=="plus"){let l=n();return r(o(i.expr,a),l),r(o(i.expr,l),l),[A(l)]}else{if(i.type=="opt")return[A(a)].concat(o(i.expr,a));if(i.type=="range"){let l=a;for(let u=0;u<i.min;u++){let f=n();r(o(i.expr,l),f),l=f}if(i.max==-1)r(o(i.expr,l),l);else for(let u=i.min;u<i.max;u++){let f=n();A(l,f),r(o(i.expr,l),f),l=f}return[A(l)]}else{if(i.type=="name")return[A(a,void 0,i.value)];throw new Error("Unknown expr type")}}}}function ub(t,e){return e-t}function db(t,e){let n=[];return A(e),n.sort(ub);function A(r){let o=t[r];if(o.length==1&&!o[0].term)return A(o[0].to);n.push(r);for(let i=0;i<o.length;i++){let{term:a,to:l}=o[i];!a&&n.indexOf(l)==-1&&A(l)}}}function yP(t){let e=Object.create(null);return n(db(t,0));function n(A){let r=[];A.forEach(i=>{t[i].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);db(t,l).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let o=e[A.join(",")]=new as(A.indexOf(t.length-1)>-1);for(let i=0;i<r.length;i++){let a=r[i][1].sort(ub);o.next.push({type:r[i][0],next:e[a.join(",")]||n(a)})}return o}}function wP(t,e){for(let n=0,A=[t];n<A.length;n++){let r=A[n],o=!r.validEnd,i=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];i.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),A.indexOf(u)==-1&&A.push(u)}o&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function fb(t){let e=Object.create(null);for(let n in t){let A=t[n];if(!A.hasDefault)return null;e[n]=A.default}return e}function hb(t,e){let n=Object.create(null);for(let A in t){let r=e&&e[A];if(r===void 0){let o=t[A];if(o.hasDefault)r=o.default;else throw new RangeError("No value supplied for attribute "+A)}n[A]=r}return n}function pb(t,e,n,A){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let o=t[r];o.validate&&o.validate(e[r])}}function mb(t,e){let n=Object.create(null);if(e)for(let A in e)n[A]=new bP(t,A,e[A]);return n}let gb=class wT{constructor(e,n,A){this.name=e,this.schema=n,this.spec=A,this.markSet=null,this.groups=A.group?A.group.split(" "):[],this.attrs=mb(e,A.attrs),this.defaultAttrs=fb(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(A.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==as.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:hb(this.attrs,e)}create(e=null,n,A){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ii(this,this.computeAttrs(e),Qe.from(n),Ht.setFrom(A))}createChecked(e=null,n,A){return n=Qe.from(n),this.checkContent(n),new ii(this,this.computeAttrs(e),n,Ht.setFrom(A))}createAndFill(e=null,n,A){if(e=this.computeAttrs(e),n=Qe.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let r=this.contentMatch.matchFragment(n),o=r&&r.fillBefore(Qe.empty,!0);return o?new ii(this,e,n.append(o),Ht.setFrom(A)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let A=0;A<e.childCount;A++)if(!this.allowsMarks(e.child(A).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){pb(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let A=0;A<e.length;A++)this.allowsMarkType(e[A].type)?n&&n.push(e[A]):n||(n=e.slice(0,A));return n?n.length?n:Ht.none:e}static compile(e,n){let A=Object.create(null);e.forEach((o,i)=>A[o]=new wT(o,n,i));let r=n.spec.topNode||"doc";if(!A[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!A.text)throw new RangeError("Every schema needs a 'text' type");for(let o in A.text.attrs)throw new RangeError("The text node type should not have attributes");return A}};function CP(t,e,n){let A=n.split("|");return r=>{let o=r===null?"null":typeof r;if(A.indexOf(o)<0)throw new RangeError(`Expected value of type ${A} for attribute ${e} on type ${t}, got ${o}`)}}class bP{constructor(e,n,A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default,this.validate=typeof A.validate=="string"?CP(e,n,A.validate):A.validate}get isRequired(){return!this.hasDefault}}class Eu{constructor(e,n,A,r){this.name=e,this.rank=n,this.schema=A,this.spec=r,this.attrs=mb(e,r.attrs),this.excluded=null;let o=fb(this.attrs);this.instance=o?new Ht(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Ht(this,hb(this.attrs,e))}static compile(e,n){let A=Object.create(null),r=0;return e.forEach((o,i)=>A[o]=new Eu(o,r++,n,i)),A}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){pb(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Bb{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=zn.from(e.nodes),n.marks=zn.from(e.marks||{}),this.nodes=gb.compile(this.spec.nodes,this),this.marks=Eu.compile(this.spec.marks,this);let A=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],i=o.spec.content||"",a=o.spec.marks;if(o.contentMatch=A[i]||(A[i]=as.parse(i,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=a=="_"?null:a?yb(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let r in this.marks){let o=this.marks[r],i=o.spec.excludes;o.excluded=i==null?[o]:i==""?[]:yb(this,i.split(" "))}this.nodeFromJSON=r=>ii.fromJSON(this,r),this.markFromJSON=r=>Ht.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,A,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof gb){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(n,A,r)}text(e,n){let A=this.nodes.text;return new vu(A,A.defaultAttrs,e,Ht.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function yb(t,e){let n=[];for(let A=0;A<e.length;A++){let r=e[A],o=t.marks[r],i=o;if(o)n.push(o);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(i=l)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[A]+"'")}return n}function vP(t){return t.tag!=null}function EP(t){return t.style!=null}class si{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let A=this.matchedStyles=[];n.forEach(r=>{if(vP(r))this.tags.push(r);else if(EP(r)){let o=/[^=]*/.exec(r.style)[0];A.indexOf(o)<0&&A.push(o),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let A=new vb(this,n,!1);return A.addAll(e,Ht.none,n.from,n.to),A.finish()}parseSlice(e,n={}){let A=new vb(this,n,!0);return A.addAll(e,Ht.none,n.from,n.to),Ne.maxOpen(A.finish())}matchTag(e,n,A){for(let r=A?this.tags.indexOf(A)+1:0;r<this.tags.length;r++){let o=this.tags[r];if(FP(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let i=o.getAttrs(e);if(i===!1)continue;o.attrs=i||void 0}return o}}}matchStyle(e,n,A,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let i=this.styles[o],a=i.style;if(!(a.indexOf(e)!=0||i.context&&!A.matchesContext(i.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(i.getAttrs){let l=i.getAttrs(n);if(l===!1)continue;i.attrs=l||void 0}return i}}}static schemaRules(e){let n=[];function A(r){let o=r.priority==null?50:r.priority,i=0;for(;i<n.length;i++){let a=n[i];if((a.priority==null?50:a.priority)<o)break}n.splice(i,0,r)}for(let r in e.marks){let o=e.marks[r].spec.parseDOM;o&&o.forEach(i=>{A(i=Eb(i)),i.mark||i.ignore||i.clearMark||(i.mark=r)})}for(let r in e.nodes){let o=e.nodes[r].spec.parseDOM;o&&o.forEach(i=>{A(i=Eb(i)),i.node||i.ignore||i.mark||(i.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new si(e,si.schemaRules(e)))}}const wb={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},kP={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Cb={ol:!0,ul:!0},Fl=1,Xp=2,Ql=4;function bb(t,e,n){return e!=null?(e?Fl:0)|(e==="full"?Xp:0):t&&t.whitespace=="pre"?Fl|Xp:n&~Ql}class ku{constructor(e,n,A,r,o,i){this.type=e,this.attrs=n,this.marks=A,this.solid=r,this.options=i,this.content=[],this.activeMarks=Ht.none,this.match=o||(i&Ql?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Qe.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let A=this.type.contentMatch,r;return(r=A.findWrapping(e.type))?(this.match=A,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Fl)){let A=this.content[this.content.length-1],r;if(A&&A.isText&&(r=/[ \t\r\n\u000c]+$/.exec(A.text))){let o=A;A.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let n=Qe.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Qe.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!wb.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class vb{constructor(e,n,A){this.parser=e,this.options=n,this.isOpen=A,this.open=0,this.localPreserveWS=!1;let r=n.topNode,o,i=bb(null,n.preserveWhitespace,0)|(A?Ql:0);r?o=new ku(r.type,r.attrs,Ht.none,!0,n.topMatch||r.type.contentMatch,i):A?o=new ku(null,null,Ht.none,!0,null,i):o=new ku(e.schema.topNodeType,null,Ht.none,!0,null,i),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let A=e.nodeValue,r=this.top,o=r.options&Xp?"full":this.localPreserveWS||(r.options&Fl)>0;if(o==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(o)o!=="full"?A=A.replace(/\r?\n|\r/g," "):A=A.replace(/\r\n?/g,`
27
- `);else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],a=e.previousSibling;(!i||a&&a.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A),n,!/\S/.test(A)),this.findInText(e)}else this.findInside(e)}addElement(e,n,A){let r=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i=e.nodeName.toLowerCase(),a;Cb.hasOwnProperty(i)&&this.parser.normalizeLists&&SP(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,A));e:if(l?l.ignore:kP.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,f=this.needsBlock;if(wb.hasOwnProperty(i))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),u=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let h=l&&l.skip?n:this.readStyles(e,n);h&&this.addAll(e,h),u&&this.sync(o),this.needsBlock=f}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
28
- `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let A=e.style;if(A&&A.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let o=this.parser.matchedStyles[r],i=A.getPropertyValue(o);if(i)for(let a=void 0;;){let l=this.parser.matchStyle(o,i,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,A,r){let o,i;if(n.node)if(i=this.parser.schema.nodes[n.node],i.isLeaf)this.insertNode(i.create(n.attrs),A,e.nodeName=="BR")||this.leafFallback(e,A);else{let l=this.enter(i,n.attrs||null,A,n.preserveWhitespace);l&&(o=!0,A=l)}else{let l=this.parser.schema.marks[n.mark];A=A.concat(l.create(n.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,A,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,A,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,A),this.findAround(e,l,!1)}o&&this.sync(a)&&this.open--}addAll(e,n,A,r){let o=A||0;for(let i=A?e.childNodes[A]:e.firstChild,a=r==null?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,n);this.findAtPoint(e,o)}findPlace(e,n,A){let r,o;for(let i=this.open,a=0;i>=0;i--){let l=this.nodes[i],u=l.findWrapping(e);if(u&&(!r||r.length>u.length+a)&&(r=u,o=l,!u.length))break;if(l.solid){if(A)break;a+=2}}if(!r)return null;this.sync(o);for(let i=0;i<r.length;i++)n=this.enterInner(r[i],null,n,!1);return n}insertNode(e,n,A){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let r=this.findPlace(e,n,A);if(r){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let i=Ht.none;for(let a of r.concat(e.marks))(o.type?o.type.allowsMarkType(a.type):kb(a.type,e.type))&&(i=a.addToSet(i));return o.content.push(e.mark(i)),!0}return!1}enter(e,n,A,r){let o=this.findPlace(e.create(n),A,!1);return o&&(o=this.enterInner(e,n,A,!0,r)),o}enterInner(e,n,A,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let a=bb(e,o,i.options);i.options&Ql&&i.content.length==0&&(a|=Ql);let l=Ht.none;return A=A.filter(u=>(i.type?i.type.allowsMarkType(u.type):kb(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new ku(e,n,l,r,null,a)),this.open++,A}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Fl)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let A=this.nodes[n].content;for(let r=A.length-1;r>=0;r--)e+=A[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&this.find[A].offset==n&&(this.find[A].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,A){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(A?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),A=this.options.context,r=!this.isOpen&&(!A||A.parent.type==this.nodes[0].type),o=-(A?A.depth+1:0)+(r?0:1),i=(a,l)=>{for(;a>=0;a--){let u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(i(a-1,l))return!0;return!1}else{let f=l>0||l==0&&r?this.nodes[l].type:A&&l>=o?A.node(l-o).type:null;if(!f||f.name!=u&&!f.isInGroup(u))return!1;l--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let A=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(A&&A.isTextblock&&A.defaultAttrs)return A}for(let n in this.parser.schema.nodes){let A=this.parser.schema.nodes[n];if(A.isTextblock&&A.defaultAttrs)return A}}}function SP(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let A=e.nodeType==1?e.nodeName.toLowerCase():null;A&&Cb.hasOwnProperty(A)&&n?(n.appendChild(e),e=n):A=="li"?n=e:A&&(n=null)}}function FP(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Eb(t){let e={};for(let n in t)e[n]=t[n];return e}function kb(t,e){let n=e.schema.nodes;for(let A in n){let r=n[A];if(!r.allowsMarkType(t))continue;let o=[],i=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:u,next:f}=a.edge(l);if(u==e||o.indexOf(f)<0&&i(f))return!0}};if(i(r.contentMatch))return!0}}class ls{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},A){A||(A=Zp(n).createDocumentFragment());let r=A,o=[];return e.forEach(i=>{if(o.length||i.marks.length){let a=0,l=0;for(;a<o.length&&l<i.marks.length;){let u=i.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(o[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)r=o.pop()[1];for(;l<i.marks.length;){let u=i.marks[l++],f=this.serializeMark(u,i.isInline,n);f&&(o.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(i,n))}),A}serializeNodeInner(e,n){let{dom:A,contentDOM:r}=Su(Zp(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return A}serializeNode(e,n={}){let A=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(A),A=o.dom)}return A}serializeMark(e,n,A={}){let r=this.marks[e.type.name];return r&&Su(Zp(A),r(e,n),null,e.attrs)}static renderSpec(e,n,A=null,r){return Su(e,n,A,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ls(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Sb(e.nodes);return n.text||(n.text=A=>A.text),n}static marksFromSchema(e){return Sb(e.marks)}}function Sb(t){let e={};for(let n in t){let A=t[n].spec.toDOM;A&&(e[n]=A)}return e}function Zp(t){return t.document||window.document}const Fb=new WeakMap;function QP(t){let e=Fb.get(t);return e===void 0&&Fb.set(t,e=xP(t)),e}function xP(t){let e=null;function n(A){if(A&&typeof A=="object")if(Array.isArray(A))if(typeof A[0]=="string")e||(e=[]),e.push(A);else for(let r=0;r<A.length;r++)n(A[r]);else for(let r in A)n(A[r])}return n(t),e}function Su(t,e,n,A){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],o;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(A&&(o=QP(A))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),u=e[1],f=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){f=2;for(let h in u)if(u[h]!=null){let p=h.indexOf(" ");p>0?l.setAttributeNS(h.slice(0,p),h.slice(p+1),u[h]):h=="style"&&l.style?l.style.cssText=u[h]:l.setAttribute(h,u[h])}}for(let h=f;h<e.length;h++){let p=e[h];if(p===0){if(h<e.length-1||h>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:g,contentDOM:B}=Su(t,p,n,A);if(l.appendChild(g),B){if(a)throw new RangeError("Multiple content holes");a=B}}}return{dom:l,contentDOM:a}}const Qb=65535,xb=Math.pow(2,16);function UP(t,e){return t+e*xb}function Ub(t){return t&Qb}function IP(t){return(t-(t&Qb))/xb}const Ib=1,_b=2,Fu=4,Tb=8;class em{constructor(e,n,A){this.pos=e,this.delInfo=n,this.recover=A}get deleted(){return(this.delInfo&Tb)>0}get deletedBefore(){return(this.delInfo&(Ib|Fu))>0}get deletedAfter(){return(this.delInfo&(_b|Fu))>0}get deletedAcross(){return(this.delInfo&Fu)>0}}class NA{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&NA.empty)return NA.empty}recover(e){let n=0,A=Ub(e);if(!this.inverted)for(let r=0;r<A;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[A*3]+n+IP(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,A){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[a+o],f=this.ranges[a+i],h=l+u;if(e<=h){let p=u?e==l?-1:e==h?1:n:n,g=l+r+(p<0?0:f);if(A)return g;let B=e==(n<0?l:h)?null:UP(a/3,e-l),y=e==l?_b:e==h?Ib:Fu;return(n<0?e!=l:e!=h)&&(y|=Tb),new em(g,y,B)}r+=f-u}return A?e+r:new em(e+r,0,null)}touches(e,n){let A=0,r=Ub(n),o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?A:0);if(l>e)break;let u=this.ranges[a+o],f=l+u;if(e<=f&&a==r*3)return!0;A+=this.ranges[a+i]-u}return!1}forEach(e){let n=this.inverted?2:1,A=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),l=i+(this.inverted?0:o),u=this.ranges[r+n],f=this.ranges[r+A];e(a,a+u,l,l+f),o+=f-u}}invert(){return new NA(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?NA.empty:new NA(e<0?[0,-e,0]:[0,0,e])}}NA.empty=new NA([]);class xl{constructor(e,n,A=0,r=e?e.length:0){this.mirror=n,this.from=A,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new xl(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,A=this._maps.length;n<e._maps.length;n++){let r=e.getMirror(n);this.appendMap(e._maps[n],r!=null&&r<n?A+r:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,A=this._maps.length+e._maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e._maps[n].invert(),r!=null&&r>n?A-r-1:void 0)}}invert(){let e=new xl;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let A=this.from;A<this.to;A++)e=this._maps[A].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,A){let r=0;for(let o=this.from;o<this.to;o++){let i=this._maps[o],a=i.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return A?e:new em(e,r,null)}}const tm=Object.create(null);class tA{getMap(){return NA.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let A=tm[n.stepType];if(!A)throw new RangeError(`No step type ${n.stepType} defined`);return A.fromJSON(e,n)}static jsonID(e,n){if(e in tm)throw new RangeError("Duplicate use of step JSON ID "+e);return tm[e]=n,n.prototype.jsonID=e,n}}class En{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new En(e,null)}static fail(e){return new En(null,e)}static fromReplace(e,n,A,r){try{return En.ok(e.replace(n,A,r))}catch(o){if(o instanceof wu)return En.fail(o.message);throw o}}}function nm(t,e,n){let A=[];for(let r=0;r<t.childCount;r++){let o=t.child(r);o.content.size&&(o=o.copy(nm(o.content,e,o))),o.isInline&&(o=e(o,n,r)),A.push(o)}return Qe.fromArray(A)}class ai extends tA{constructor(e,n,A){super(),this.from=e,this.to=n,this.mark=A}apply(e){let n=e.slice(this.from,this.to),A=e.resolve(this.from),r=A.node(A.sharedDepth(this.to)),o=new Ne(nm(n.content,(i,a)=>!i.isAtom||!a.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),r),n.openStart,n.openEnd);return En.fromReplace(e,this.from,this.to,o)}invert(){return new xr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1);return n.deleted&&A.deleted||n.pos>=A.pos?null:new ai(n.pos,A.pos,this.mark)}merge(e){return e instanceof ai&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ai(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ai(n.from,n.to,e.markFromJSON(n.mark))}}tA.jsonID("addMark",ai);class xr extends tA{constructor(e,n,A){super(),this.from=e,this.to=n,this.mark=A}apply(e){let n=e.slice(this.from,this.to),A=new Ne(nm(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return En.fromReplace(e,this.from,this.to,A)}invert(){return new ai(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1);return n.deleted&&A.deleted||n.pos>=A.pos?null:new xr(n.pos,A.pos,this.mark)}merge(e){return e instanceof xr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new xr(n.from,n.to,e.markFromJSON(n.mark))}}tA.jsonID("removeMark",xr);class li extends tA{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return En.fail("No node at mark step's position");let A=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return En.fromReplace(e,this.pos,this.pos+1,new Ne(Qe.from(A),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let A=this.mark.addToSet(n.marks);if(A.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(A))return new li(this.pos,n.marks[r]);return new li(this.pos,this.mark)}}return new cs(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new li(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new li(n.pos,e.markFromJSON(n.mark))}}tA.jsonID("addNodeMark",li);class cs extends tA{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return En.fail("No node at mark step's position");let A=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return En.fromReplace(e,this.pos,this.pos+1,new Ne(Qe.from(A),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new li(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new cs(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new cs(n.pos,e.markFromJSON(n.mark))}}tA.jsonID("removeNodeMark",cs);class Ln extends tA{constructor(e,n,A,r=!1){super(),this.from=e,this.to=n,this.slice=A,this.structure=r}apply(e){return this.structure&&Am(e,this.from,this.to)?En.fail("Structure replace would overwrite content"):En.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new NA([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ln(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1);return n.deletedAcross&&A.deletedAcross?null:new Ln(n.pos,Math.max(n.pos,A.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Ln)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?Ne.empty:new Ne(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ln(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?Ne.empty:new Ne(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ln(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ln(n.from,n.to,Ne.fromJSON(e,n.slice),!!n.structure)}}tA.jsonID("replace",Ln);class Nn extends tA{constructor(e,n,A,r,o,i,a=!1){super(),this.from=e,this.to=n,this.gapFrom=A,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Am(e,this.from,this.gapFrom)||Am(e,this.gapTo,this.to)))return En.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return En.fail("Gap is not a flat range");let A=this.slice.insertAt(this.insert,n.content);return A?En.fromReplace(e,this.from,this.to,A):En.fail("Content does not fit in gap")}getMap(){return new NA([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Nn(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?A.pos:e.map(this.gapTo,1);return n.deletedAcross&&A.deletedAcross||r<n.pos||o>A.pos?null:new Nn(n.pos,A.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Nn(n.from,n.to,n.gapFrom,n.gapTo,Ne.fromJSON(e,n.slice),n.insert,!!n.structure)}}tA.jsonID("replaceAround",Nn);function Am(t,e,n){let A=t.resolve(e),r=n-e,o=A.depth;for(;r>0&&o>0&&A.indexAfter(o)==A.node(o).childCount;)o--,r--;if(r>0){let i=A.node(o).maybeChild(A.indexAfter(o));for(;r>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,r--}}return!1}function _P(t,e,n,A){let r=[],o=[],i,a;t.doc.nodesBetween(e,n,(l,u,f)=>{if(!l.isInline)return;let h=l.marks;if(!A.isInSet(h)&&f.type.allowsMarkType(A.type)){let p=Math.max(u,e),g=Math.min(u+l.nodeSize,n),B=A.addToSet(h);for(let y=0;y<h.length;y++)h[y].isInSet(B)||(i&&i.to==p&&i.mark.eq(h[y])?i.to=g:r.push(i=new xr(p,g,h[y])));a&&a.to==p?a.to=g:o.push(a=new ai(p,g,A))}}),r.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}function TP(t,e,n,A){let r=[],o=0;t.doc.nodesBetween(e,n,(i,a)=>{if(!i.isInline)return;o++;let l=null;if(A instanceof Eu){let u=i.marks,f;for(;f=A.isInSet(u);)(l||(l=[])).push(f),u=f.removeFromSet(u)}else A?A.isInSet(i.marks)&&(l=[A]):l=i.marks;if(l&&l.length){let u=Math.min(a+i.nodeSize,n);for(let f=0;f<l.length;f++){let h=l[f],p;for(let g=0;g<r.length;g++){let B=r[g];B.step==o-1&&h.eq(r[g].style)&&(p=B)}p?(p.to=u,p.step=o):r.push({style:h,from:Math.max(a,e),to:u,step:o})}}}),r.forEach(i=>t.step(new xr(i.from,i.to,i.style)))}function rm(t,e,n,A=n.contentMatch,r=!0){let o=t.doc.nodeAt(e),i=[],a=e+1;for(let l=0;l<o.childCount;l++){let u=o.child(l),f=a+u.nodeSize,h=A.matchType(u.type);if(!h)i.push(new Ln(a,f,Ne.empty));else{A=h;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||t.step(new xr(a,f,u.marks[p]));if(r&&u.isText&&n.whitespace!="pre"){let p,g=/\r?\n|\r/g,B;for(;p=g.exec(u.text);)B||(B=new Ne(Qe.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),i.push(new Ln(a+p.index,a+p.index+p[0].length,B))}}a=f}if(!A.validEnd){let l=A.fillBefore(Qe.empty,!0);t.replace(a,a,new Ne(l,0,0))}for(let l=i.length-1;l>=0;l--)t.step(i[l])}function DP(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function aa(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let A=t.depth;;--A){let r=t.$from.node(A),o=t.$from.index(A),i=t.$to.indexAfter(A);if(A<t.depth&&r.canReplace(o,i,n))return A;if(A==0||r.type.spec.isolating||!DP(r,o,i))break}return null}function MP(t,e,n){let{$from:A,$to:r,depth:o}=e,i=A.before(o+1),a=r.after(o+1),l=i,u=a,f=Qe.empty,h=0;for(let B=o,y=!1;B>n;B--)y||A.index(B)>0?(y=!0,f=Qe.from(A.node(B).copy(f)),h++):l--;let p=Qe.empty,g=0;for(let B=o,y=!1;B>n;B--)y||r.after(B+1)<r.end(B)?(y=!0,p=Qe.from(r.node(B).copy(p)),g++):u++;t.step(new Nn(l,u,i,a,new Ne(f.append(p),h,g),f.size-h,!0))}function om(t,e,n=null,A=t){let r=OP(t,e),o=r&&LP(A,e);return o?r.map(Db).concat({type:e,attrs:n}).concat(o.map(Db)):null}function Db(t){return{type:t,attrs:null}}function OP(t,e){let{parent:n,startIndex:A,endIndex:r}=t,o=n.contentMatchAt(A).findWrapping(e);if(!o)return null;let i=o.length?o[0]:e;return n.canReplaceWith(A,r,i)?o:null}function LP(t,e){let{parent:n,startIndex:A,endIndex:r}=t,o=n.child(A),i=e.contentMatch.findWrapping(o.type);if(!i)return null;let l=(i.length?i[i.length-1]:e).contentMatch;for(let u=A;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:i}function NP(t,e,n){let A=Qe.empty;for(let i=n.length-1;i>=0;i--){if(A.size){let a=n[i].type.contentMatch.matchFragment(A);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}A=Qe.from(n[i].type.create(n[i].attrs,A))}let r=e.start,o=e.end;t.step(new Nn(r,o,r,o,new Ne(A,0,0),n.length,!0))}function HP(t,e,n,A,r){if(!A.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(i,a)=>{let l=typeof r=="function"?r(i):r;if(i.isTextblock&&!i.hasMarkup(A,l)&&PP(t.doc,t.mapping.slice(o).map(a),A)){let u=null;if(A.schema.linebreakReplacement){let g=A.whitespace=="pre",B=!!A.contentMatch.matchType(A.schema.linebreakReplacement);g&&!B?u=!1:!g&&B&&(u=!0)}u===!1&&Ob(t,i,a,o),rm(t,t.mapping.slice(o).map(a,1),A,void 0,u===null);let f=t.mapping.slice(o),h=f.map(a,1),p=f.map(a+i.nodeSize,1);return t.step(new Nn(h,p,h+1,p-1,new Ne(Qe.from(A.create(l,null,i.marks)),0,0),1,!0)),u===!0&&Mb(t,i,a,o),!1}})}function Mb(t,e,n,A){e.forEach((r,o)=>{if(r.isText){let i,a=/\r?\n|\r/g;for(;i=a.exec(r.text);){let l=t.mapping.slice(A).map(n+1+o+i.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Ob(t,e,n,A){e.forEach((r,o)=>{if(r.type==r.type.schema.linebreakReplacement){let i=t.mapping.slice(A).map(n+1+o);t.replaceWith(i,i+1,e.type.schema.text(`
29
- `))}})}function PP(t,e,n){let A=t.resolve(e),r=A.index();return A.parent.canReplaceWith(r,r+1,n)}function RP(t,e,n,A,r){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let i=n.create(A,null,r||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,i);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Nn(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new Ne(Qe.from(i),0,0),1,!0))}function So(t,e,n=1,A){let r=t.resolve(e),o=r.depth-n,i=A&&A[A.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!i.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,f=n-2;u>o;u--,f--){let h=r.node(u),p=r.index(u);if(h.type.spec.isolating)return!1;let g=h.content.cutByIndex(p,h.childCount),B=A&&A[f+1];B&&(g=g.replaceChild(0,B.type.create(B.attrs)));let y=A&&A[f]||h;if(!h.canReplace(p+1,h.childCount)||!y.type.validContent(g))return!1}let a=r.indexAfter(o),l=A&&A[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function VP(t,e,n=1,A){let r=t.doc.resolve(e),o=Qe.empty,i=Qe.empty;for(let a=r.depth,l=r.depth-n,u=n-1;a>l;a--,u--){o=Qe.from(r.node(a).copy(o));let f=A&&A[u];i=Qe.from(f?f.type.create(f.attrs,i):r.node(a).copy(i))}t.step(new Ln(e,e,new Ne(o.append(i),n,n),!0))}function ci(t,e){let n=t.resolve(e),A=n.index();return Lb(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(A,A+1)}function $P(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:A}=t.type.schema;for(let r=0;r<e.childCount;r++){let o=e.child(r),i=o.type==A?t.type.schema.nodes.text:o.type;if(n=n.matchType(i),!n||!t.type.allowsMarks(o.marks))return!1}return n.validEnd}function Lb(t,e){return!!(t&&e&&!t.isLeaf&&$P(t,e))}function Qu(t,e,n=-1){let A=t.resolve(e);for(let r=A.depth;;r--){let o,i,a=A.index(r);if(r==A.depth?(o=A.nodeBefore,i=A.nodeAfter):n>0?(o=A.node(r+1),a++,i=A.node(r).maybeChild(a)):(o=A.node(r).maybeChild(a-1),i=A.node(r+1)),o&&!o.isTextblock&&Lb(o,i)&&A.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?A.before(r):A.after(r)}}function KP(t,e,n){let A=null,{linebreakReplacement:r}=t.doc.type.schema,o=t.doc.resolve(e-n),i=o.node().type;if(r&&i.inlineContent){let f=i.whitespace=="pre",h=!!i.contentMatch.matchType(r);f&&!h?A=!1:!f&&h&&(A=!0)}let a=t.steps.length;if(A===!1){let f=t.doc.resolve(e+n);Ob(t,f.node(),f.before(),a)}i.inlineContent&&rm(t,e+n-1,i,o.node().contentMatchAt(o.index()),A==null);let l=t.mapping.slice(a),u=l.map(e-n);if(t.step(new Ln(u,l.map(e+n,-1),Ne.empty,!0)),A===!0){let f=t.doc.resolve(u);Mb(t,f.node(),f.before(),t.steps.length)}return t}function zP(t,e,n){let A=t.resolve(e);if(A.parent.canReplaceWith(A.index(),A.index(),n))return e;if(A.parentOffset==0)for(let r=A.depth-1;r>=0;r--){let o=A.index(r);if(A.node(r).canReplaceWith(o,o,n))return A.before(r+1);if(o>0)return null}if(A.parentOffset==A.parent.content.size)for(let r=A.depth-1;r>=0;r--){let o=A.indexAfter(r);if(A.node(r).canReplaceWith(o,o,n))return A.after(r+1);if(o<A.node(r).childCount)return null}return null}function Nb(t,e,n){let A=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let o=0;o<n.openStart;o++)r=r.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let i=A.depth;i>=0;i--){let a=i==A.depth?0:A.pos<=(A.start(i+1)+A.end(i+1))/2?-1:1,l=A.index(i)+(a>0?1:0),u=A.node(i),f=!1;if(o==1)f=u.canReplace(l,l,r);else{let h=u.contentMatchAt(l).findWrapping(r.firstChild.type);f=h&&u.canReplaceWith(l,l,h[0])}if(f)return a==0?A.pos:a<0?A.before(i+1):A.after(i+1)}return null}function xu(t,e,n=e,A=Ne.empty){if(e==n&&!A.size)return null;let r=t.resolve(e),o=t.resolve(n);return Hb(r,o,A)?new Ln(e,n,A):new WP(r,o,A).fit()}function Hb(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class WP{constructor(e,n,A){this.$from=e,this.$to=n,this.unplaced=A,this.frontier=[],this.placed=Qe.empty;for(let r=0;r<=e.depth;r++){let o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Qe.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,A=this.$from,r=this.close(e<0?this.$to:A.doc.resolve(e));if(!r)return null;let o=this.placed,i=A.depth,a=r.depth;for(;i&&a&&o.childCount==1;)o=o.firstChild.content,i--,a--;let l=new Ne(o,i,a);return e>-1?new Nn(A.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||A.pos!=this.$to.pos?new Ln(A.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,A=0,r=this.unplaced.openEnd;A<e;A++){let o=n.firstChild;if(n.childCount>1&&(r=0),o.type.spec.isolating&&r<=A){e=A;break}n=o.content}for(let n=1;n<=2;n++)for(let A=n==1?e:this.unplaced.openStart;A>=0;A--){let r,o=null;A?(o=im(this.unplaced.content,A-1).firstChild,r=o.content):r=this.unplaced.content;let i=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:u}=this.frontier[a],f,h=null;if(n==1&&(i?u.matchType(i.type)||(h=u.fillBefore(Qe.from(i),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:A,frontierDepth:a,parent:o,inject:h};if(n==2&&i&&(f=u.findWrapping(i.type)))return{sliceDepth:A,frontierDepth:a,parent:o,wrap:f};if(o&&u.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:A}=this.unplaced,r=im(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Ne(e,n+1,Math.max(A,r.size+n>=e.size-A?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:A}=this.unplaced,r=im(e,n);if(r.childCount<=1&&n>0){let o=e.size-n<=n+r.size;this.unplaced=new Ne(Ul(e,n-1,1),n-1,o?n-1:A)}else this.unplaced=new Ne(Ul(e,n,1),n,A)}placeNodes({sliceDepth:e,frontierDepth:n,parent:A,inject:r,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let y=0;y<o.length;y++)this.openFrontierNode(o[y]);let i=this.unplaced,a=A?A.content:i.content,l=i.openStart-e,u=0,f=[],{match:h,type:p}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)f.push(r.child(y));h=h.matchFragment(r)}let g=a.size+e-(i.content.size-i.openEnd);for(;u<a.childCount;){let y=a.child(u),C=h.matchType(y.type);if(!C)break;u++,(u>1||l==0||y.content.size)&&(h=C,f.push(Pb(y.mark(p.allowedMarks(y.marks)),u==1?l:0,u==a.childCount?g:-1)))}let B=u==a.childCount;B||(g=-1),this.placed=Il(this.placed,n,Qe.from(f)),this.frontier[n].match=h,B&&g<0&&A&&A.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,C=a;y<g;y++){let w=C.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),C=w.content}this.unplaced=B?e==0?Ne.empty:new Ne(Ul(i.content,e-1,1),e-1,g<0?i.openEnd:e-1):new Ne(Ul(i.content,e,u),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!sm(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:A}=this.$to,r=this.$to.after(A);for(;A>1&&r==this.$to.end(--A);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:A,type:r}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),i=sm(e,n,r,A,o);if(i){for(let a=n-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],f=sm(e,a,u,l,!0);if(!f||f.childCount)continue e}return{depth:n,fit:i,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Il(this.placed,n.depth,n.fit)),e=n.move;for(let A=n.depth+1;A<=e.depth;A++){let r=e.node(A),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(A));this.openFrontierNode(r.type,r.attrs,o)}return e}openFrontierNode(e,n=null,A){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Il(this.placed,this.depth,Qe.from(e.create(n,A))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Qe.empty,!0);n.childCount&&(this.placed=Il(this.placed,this.frontier.length,n))}}function Ul(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ul(t.firstChild.content,e-1,n)))}function Il(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Il(t.lastChild.content,e-1,n)))}function im(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Pb(t,e,n){if(e<=0)return t;let A=t.content;return e>1&&(A=A.replaceChild(0,Pb(A.firstChild,e-1,A.childCount==1?n-1:0))),e>0&&(A=t.type.contentMatch.fillBefore(A).append(A),n<=0&&(A=A.append(t.type.contentMatch.matchFragment(A).fillBefore(Qe.empty,!0)))),t.copy(A)}function sm(t,e,n,A,r){let o=t.node(e),i=r?t.indexAfter(e):t.index(e);if(i==o.childCount&&!n.compatibleContent(o.type))return null;let a=A.fillBefore(o.content,!0,i);return a&&!GP(n,o.content,i)?a:null}function GP(t,e,n){for(let A=n;A<e.childCount;A++)if(!t.allowsMarks(e.child(A).marks))return!0;return!1}function YP(t){return t.spec.defining||t.spec.definingForContent}function jP(t,e,n,A){if(!A.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),o=t.doc.resolve(n);if(Hb(r,o,A))return t.step(new Ln(e,n,A));let i=Vb(r,t.doc.resolve(n));i[i.length-1]==0&&i.pop();let a=-(r.depth+1);i.unshift(a);for(let p=r.depth,g=r.pos-1;p>0;p--,g--){let B=r.node(p).type.spec;if(B.defining||B.definingAsContext||B.isolating)break;i.indexOf(p)>-1?a=p:r.before(p)==g&&i.splice(1,0,-p)}let l=i.indexOf(a),u=[],f=A.openStart;for(let p=A.content,g=0;;g++){let B=p.firstChild;if(u.push(B),g==A.openStart)break;p=B.content}for(let p=f-1;p>=0;p--){let g=u[p],B=YP(g.type);if(B&&!g.sameMarkup(r.node(Math.abs(a)-1)))f=p;else if(B||!g.type.isTextblock)break}for(let p=A.openStart;p>=0;p--){let g=(p+f+1)%(A.openStart+1),B=u[g];if(B)for(let y=0;y<i.length;y++){let C=i[(y+l)%i.length],w=!0;C<0&&(w=!1,C=-C);let F=r.node(C-1),_=r.index(C-1);if(F.canReplaceWith(_,_,B.type,B.marks))return t.replace(r.before(C),w?o.after(C):n,new Ne(Rb(A.content,0,A.openStart,g),g,A.openEnd))}}let h=t.steps.length;for(let p=i.length-1;p>=0&&(t.replace(e,n,A),!(t.steps.length>h));p--){let g=i[p];g<0||(e=r.before(g),n=o.after(g))}}function Rb(t,e,n,A,r){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(Rb(o.content,e+1,n,A,o)))}if(e>A){let o=r.contentMatchAt(0),i=o.fillBefore(t).append(t);t=i.append(o.matchFragment(i).fillBefore(Qe.empty,!0))}return t}function qP(t,e,n,A){if(!A.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=zP(t.doc,e,A.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new Ne(Qe.from(A),0,0))}function JP(t,e,n){let A=t.doc.resolve(e),r=t.doc.resolve(n),o=Vb(A,r);for(let i=0;i<o.length;i++){let a=o[i],l=i==o.length-1;if(l&&a==0||A.node(a).type.contentMatch.validEnd)return t.delete(A.start(a),r.end(a));if(a>0&&(l||A.node(a-1).canReplace(A.index(a-1),r.indexAfter(a-1))))return t.delete(A.before(a),r.after(a))}for(let i=1;i<=A.depth&&i<=r.depth;i++)if(e-A.start(i)==A.depth-i&&n>A.end(i)&&r.end(i)-n!=r.depth-i&&A.start(i-1)==r.start(i-1)&&A.node(i-1).canReplace(A.index(i-1),r.index(i-1)))return t.delete(A.before(i),n);t.delete(e,n)}function Vb(t,e){let n=[],A=Math.min(t.depth,e.depth);for(let r=A;r>=0;r--){let o=t.start(r);if(o<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(o==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==o-1)&&n.push(r)}return n}class la extends tA{constructor(e,n,A){super(),this.pos=e,this.attr=n,this.value=A}apply(e){let n=e.nodeAt(this.pos);if(!n)return En.fail("No node at attribute step's position");let A=Object.create(null);for(let o in n.attrs)A[o]=n.attrs[o];A[this.attr]=this.value;let r=n.type.create(A,null,n.marks);return En.fromReplace(e,this.pos,this.pos+1,new Ne(Qe.from(r),0,n.isLeaf?0:1))}getMap(){return NA.empty}invert(e){return new la(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new la(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new la(n.pos,n.attr,n.value)}}tA.jsonID("attr",la);class _l extends tA{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let A=e.type.create(n,e.content,e.marks);return En.ok(A)}getMap(){return NA.empty}invert(e){return new _l(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new _l(n.attr,n.value)}}tA.jsonID("docAttr",_l);let ca=class extends Error{};ca=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ca.prototype=Object.create(Error.prototype),ca.prototype.constructor=ca,ca.prototype.name="TransformError";class $b{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new xl}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ca(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,A=Ne.empty){let r=xu(this.doc,e,n,A);return r&&this.step(r),this}replaceWith(e,n,A){return this.replace(e,n,new Ne(Qe.from(A),0,0))}delete(e,n){return this.replace(e,n,Ne.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,A){return jP(this,e,n,A),this}replaceRangeWith(e,n,A){return qP(this,e,n,A),this}deleteRange(e,n){return JP(this,e,n),this}lift(e,n){return MP(this,e,n),this}join(e,n=1){return KP(this,e,n),this}wrap(e,n){return NP(this,e,n),this}setBlockType(e,n=e,A,r=null){return HP(this,e,n,A,r),this}setNodeMarkup(e,n,A=null,r){return RP(this,e,n,A,r),this}setNodeAttribute(e,n,A){return this.step(new la(e,n,A)),this}setDocAttribute(e,n){return this.step(new _l(e,n)),this}addNodeMark(e,n){return this.step(new li(e,n)),this}removeNodeMark(e,n){let A=this.doc.nodeAt(e);if(!A)throw new RangeError("No node at position "+e);if(n instanceof Ht)n.isInSet(A.marks)&&this.step(new cs(e,n));else{let r=A.marks,o,i=[];for(;o=n.isInSet(r);)i.push(new cs(e,o)),r=o.removeFromSet(r);for(let a=i.length-1;a>=0;a--)this.step(i[a])}return this}split(e,n=1,A){return VP(this,e,n,A),this}addMark(e,n,A){return _P(this,e,n,A),this}removeMark(e,n,A){return TP(this,e,n,A),this}clearIncompatible(e,n,A){return rm(this,e,n,A),this}}const am=Object.create(null);class it{constructor(e,n,A){this.$anchor=e,this.$head=n,this.ranges=A||[new XP(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=Ne.empty){let A=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=A,A=A.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:l,$to:u}=i[a],f=e.mapping.slice(o);e.replaceRange(f.map(l.pos),f.map(u.pos),a?Ne.empty:n),a==0&&Wb(e,o,(A?A.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let A=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],l=e.mapping.slice(A),u=l.map(i.pos),f=l.map(a.pos);o?e.deleteRange(u,f):(e.replaceRangeWith(u,f,n),Wb(e,A,n.isInline?-1:1))}}static findFrom(e,n,A=!1){let r=e.parent.inlineContent?new nt(e):ua(e.node(0),e.parent,e.pos,e.index(),n,A);if(r)return r;for(let o=e.depth-1;o>=0;o--){let i=n<0?ua(e.node(0),e.node(o),e.before(o+1),e.index(o),n,A):ua(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,A);if(i)return i}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new HA(e.node(0))}static atStart(e){return ua(e,e,0,0,1)||new HA(e)}static atEnd(e){return ua(e,e,e.content.size,e.childCount,-1)||new HA(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let A=am[n.type];if(!A)throw new RangeError(`No selection type ${n.type} defined`);return A.fromJSON(e,n)}static jsonID(e,n){if(e in am)throw new RangeError("Duplicate use of selection JSON ID "+e);return am[e]=n,n.prototype.jsonID=e,n}getBookmark(){return nt.between(this.$anchor,this.$head).getBookmark()}}it.prototype.visible=!0;class XP{constructor(e,n){this.$from=e,this.$to=n}}let Kb=!1;function zb(t){!Kb&&!t.parent.inlineContent&&(Kb=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class nt extends it{constructor(e,n=e){zb(e),zb(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let A=e.resolve(n.map(this.head));if(!A.parent.inlineContent)return it.near(A);let r=e.resolve(n.map(this.anchor));return new nt(r.parent.inlineContent?r:A,A)}replace(e,n=Ne.empty){if(super.replace(e,n),n==Ne.empty){let A=this.$from.marksAcross(this.$to);A&&e.ensureMarks(A)}}eq(e){return e instanceof nt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Uu(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new nt(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,A=n){let r=e.resolve(n);return new this(r,A==n?r:e.resolve(A))}static between(e,n,A){let r=e.pos-n.pos;if((!A||r)&&(A=r>=0?1:-1),!n.parent.inlineContent){let o=it.findFrom(n,A,!0)||it.findFrom(n,-A,!0);if(o)n=o.$head;else return it.near(n,A)}return e.parent.inlineContent||(r==0?e=n:(e=(it.findFrom(e,-A,!0)||it.findFrom(e,A,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new nt(e,n)}}it.jsonID("text",nt);class Uu{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Uu(e.map(this.anchor),e.map(this.head))}resolve(e){return nt.between(e.resolve(this.anchor),e.resolve(this.head))}}class We extends it{constructor(e){let n=e.nodeAfter,A=e.node(0).resolve(e.pos+n.nodeSize);super(e,A),this.node=n}map(e,n){let{deleted:A,pos:r}=n.mapResult(this.anchor),o=e.resolve(r);return A?it.near(o):new We(o)}content(){return new Ne(Qe.from(this.node),0,0)}eq(e){return e instanceof We&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new lm(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new We(e.resolve(n.anchor))}static create(e,n){return new We(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}We.prototype.visible=!1,it.jsonID("node",We);class lm{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:A}=e.mapResult(this.anchor);return n?new Uu(A,A):new lm(A)}resolve(e){let n=e.resolve(this.anchor),A=n.nodeAfter;return A&&We.isSelectable(A)?new We(n):it.near(n)}}class HA extends it{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=Ne.empty){if(n==Ne.empty){e.delete(0,e.doc.content.size);let A=it.atStart(e.doc);A.eq(e.selection)||e.setSelection(A)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new HA(e)}map(e){return new HA(e)}eq(e){return e instanceof HA}getBookmark(){return ZP}}it.jsonID("all",HA);const ZP={map(){return this},resolve(t){return new HA(t)}};function ua(t,e,n,A,r,o=!1){if(e.inlineContent)return nt.create(t,n);for(let i=A-(r>0?0:1);r>0?i<e.childCount:i>=0;i+=r){let a=e.child(i);if(a.isAtom){if(!o&&We.isSelectable(a))return We.create(t,n-(r<0?a.nodeSize:0))}else{let l=ua(t,a,n+r,r<0?a.childCount:0,r,o);if(l)return l}n+=a.nodeSize*r}return null}function Wb(t,e,n){let A=t.steps.length-1;if(A<e)return;let r=t.steps[A];if(!(r instanceof Ln||r instanceof Nn))return;let o=t.mapping.maps[A],i;o.forEach((a,l,u,f)=>{i==null&&(i=f)}),t.setSelection(it.near(t.doc.resolve(i),n))}const Gb=1,Iu=2,Yb=4;class eR extends $b{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){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}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Gb)&~Iu,this.storedMarks=null,this}get selectionSet(){return(this.updated&Gb)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Iu,this}ensureMarks(e){return Ht.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Iu)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Iu,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let A=this.selection;return n&&(e=e.mark(this.storedMarks||(A.empty?A.$from.marks():A.$from.marksAcross(A.$to)||Ht.none))),A.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,A){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(A==null&&(A=n),A=A??n,!e)return this.deleteRange(n,A);let o=this.storedMarks;if(!o){let i=this.doc.resolve(n);o=A==n?i.marks():i.marksAcross(this.doc.resolve(A))}return this.replaceRangeWith(n,A,r.text(e,o)),this.selection.empty||this.setSelection(it.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Yb,this}get scrolledIntoView(){return(this.updated&Yb)>0}}function jb(t,e){return!e||!t?t:t.bind(e)}class Tl{constructor(e,n,A){this.name=e,this.init=jb(n.init,A),this.apply=jb(n.apply,A)}}const tR=[new Tl("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Tl("selection",{init(t,e){return t.selection||it.atStart(e.doc)},apply(t){return t.selection}}),new Tl("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,A){return A.selection.$cursor?t.storedMarks:null}}),new Tl("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class cm{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=tR.slice(),n&&n.forEach(A=>{if(this.pluginsByKey[A.key])throw new RangeError("Adding different instances of a keyed plugin ("+A.key+")");this.plugins.push(A),this.pluginsByKey[A.key]=A,A.spec.state&&this.fields.push(new Tl(A.key,A.spec.state,A))})}}class da{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let A=0;A<this.config.plugins.length;A++)if(A!=n){let r=this.config.plugins[A];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],A=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let l=r?r[i].n:0,u=r?r[i].state:this,f=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,u,A);if(f&&A.filterTransaction(f,i)){if(f.setMeta("appendedTransaction",e),!r){r=[];for(let h=0;h<this.config.plugins.length;h++)r.push(h<i?{state:A,n:n.length}:{state:this,n:0})}n.push(f),A=A.applyInner(f),o=!0}r&&(r[i]={state:A,n:n.length})}}if(!o)return{state:A,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new da(this.config),A=this.config.fields;for(let r=0;r<A.length;r++){let o=A[r];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new eR(this)}static create(e){let n=new cm(e.doc?e.doc.type.schema:e.schema,e.plugins),A=new da(n);for(let r=0;r<n.fields.length;r++)A[n.fields[r].name]=n.fields[r].init(e,A);return A}reconfigure(e){let n=new cm(this.schema,e.plugins),A=n.fields,r=new da(n);for(let o=0;o<A.length;o++){let i=A[o].name;r[i]=this.hasOwnProperty(i)?this[i]:A[o].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(A=>A.toJSON())),e&&typeof e=="object")for(let A in e){if(A=="doc"||A=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[A],o=r.spec.state;o&&o.toJSON&&(n[A]=o.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,A){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new cm(e.schema,e.plugins),o=new da(r);return r.fields.forEach(i=>{if(i.name=="doc")o.doc=ii.fromJSON(e.schema,n.doc);else if(i.name=="selection")o.selection=it.fromJSON(o.doc,n.selection);else if(i.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(A)for(let a in A){let l=A[a],u=l.spec.state;if(l.key==i.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[i.name]=u.fromJSON.call(l,e,n[a],o);return}}o[i.name]=i.init(e,o)}}),o}}function qb(t,e,n){for(let A in t){let r=t[A];r instanceof Function?r=r.bind(e):A=="handleDOMEvents"&&(r=qb(r,e,{})),n[A]=r}return n}class sn{constructor(e){this.spec=e,this.props={},e.props&&qb(e.props,this,this.props),this.key=e.key?e.key.key:Jb("plugin")}getState(e){return e[this.key]}}const um=Object.create(null);function Jb(t){return t in um?t+"$"+ ++um[t]:(um[t]=0,t+"$")}class Hn{constructor(e="key"){this.key=Jb(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Wn=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},fa=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let dm=null;const Fo=function(t,e,n){let A=dm||(dm=document.createRange());return A.setEnd(t,n??t.nodeValue.length),A.setStart(t,e||0),A},nR=function(){dm=null},us=function(t,e,n,A){return n&&(Xb(t,e,n,A,-1)||Xb(t,e,n,A,1))},AR=/^(img|br|input|textarea|hr)$/i;function Xb(t,e,n,A,r){for(var o;;){if(t==n&&e==A)return!0;if(e==(r<0?0:nr(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Dl(t)||AR.test(t.nodeName)||t.contentEditable=="false")return!1;e=Wn(t)+(r<0?0:1),t=i}else if(t.nodeType==1){let i=t.childNodes[e+(r<0?-1:0)];if(i.nodeType==1&&i.contentEditable=="false")if(!((o=i.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)e+=r;else return!1;else t=i,e=r<0?nr(t):0}else return!1}}function nr(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function rR(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=nr(t)}else if(t.parentNode&&!Dl(t))e=Wn(t),t=t.parentNode;else return null}}function oR(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Dl(t))e=Wn(t)+1,t=t.parentNode;else return null}}function iR(t,e,n){for(let A=e==0,r=e==nr(t);A||r;){if(t==n)return!0;let o=Wn(t);if(t=t.parentNode,!t)return!1;A=A&&o==0,r=r&&o==nr(t)}}function Dl(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const _u=function(t){return t.focusNode&&us(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function ds(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function sR(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function aR(t,e,n){if(t.caretPositionFromPoint)try{let A=t.caretPositionFromPoint(e,n);if(A)return{node:A.offsetNode,offset:Math.min(nr(A.offsetNode),A.offset)}}catch{}if(t.caretRangeFromPoint){let A=t.caretRangeFromPoint(e,n);if(A)return{node:A.startContainer,offset:Math.min(nr(A.startContainer),A.startOffset)}}}const Xr=typeof navigator<"u"?navigator:null,Zb=typeof document<"u"?document:null,ui=Xr&&Xr.userAgent||"",fm=/Edge\/(\d+)/.exec(ui),e1=/MSIE \d/.exec(ui),hm=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ui),SA=!!(e1||hm||fm),di=e1?document.documentMode:hm?+hm[1]:fm?+fm[1]:0,Ur=!SA&&/gecko\/(\d+)/i.test(ui);Ur&&+(/Firefox\/(\d+)/.exec(ui)||[0,0])[1];const pm=!SA&&/Chrome\/(\d+)/.exec(ui),nA=!!pm,t1=pm?+pm[1]:0,uA=!SA&&!!Xr&&/Apple Computer/.test(Xr.vendor),ha=uA&&(/Mobile\/\w+/.test(ui)||!!Xr&&Xr.maxTouchPoints>2),Ar=ha||(Xr?/Mac/.test(Xr.platform):!1),lR=Xr?/Win/.test(Xr.platform):!1,Qo=/Android \d/.test(ui),Ml=!!Zb&&"webkitFontSmoothing"in Zb.documentElement.style,cR=Ml?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function uR(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function xo(t,e){return typeof t=="number"?t:t[e]}function dR(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,A=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*A}}function n1(t,e,n){let A=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let i=n||t.dom;i;){if(i.nodeType!=1){i=fa(i);continue}let a=i,l=a==o.body,u=l?uR(o):dR(a),f=0,h=0;if(e.top<u.top+xo(A,"top")?h=-(u.top-e.top+xo(r,"top")):e.bottom>u.bottom-xo(A,"bottom")&&(h=e.bottom-e.top>u.bottom-u.top?e.top+xo(r,"top")-u.top:e.bottom-u.bottom+xo(r,"bottom")),e.left<u.left+xo(A,"left")?f=-(u.left-e.left+xo(r,"left")):e.right>u.right-xo(A,"right")&&(f=e.right-u.right+xo(r,"right")),f||h)if(l)o.defaultView.scrollBy(f,h);else{let g=a.scrollLeft,B=a.scrollTop;h&&(a.scrollTop+=h),f&&(a.scrollLeft+=f);let y=a.scrollLeft-g,C=a.scrollTop-B;e={left:e.left-y,top:e.top-C,right:e.right-y,bottom:e.bottom-C}}let p=l?"fixed":getComputedStyle(i).position;if(/^(fixed|sticky)$/.test(p))break;i=p=="absolute"?i.offsetParent:fa(i)}}function fR(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),A,r;for(let o=(e.left+e.right)/2,i=n+1;i<Math.min(innerHeight,e.bottom);i+=5){let a=t.root.elementFromPoint(o,i);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){A=a,r=l.top;break}}return{refDOM:A,refTop:r,stack:A1(t.dom)}}function A1(t){let e=[],n=t.ownerDocument;for(let A=t;A&&(e.push({dom:A,top:A.scrollTop,left:A.scrollLeft}),t!=n);A=fa(A));return e}function hR({refDOM:t,refTop:e,stack:n}){let A=t?t.getBoundingClientRect().top:0;r1(n,A==0?0:A-e)}function r1(t,e){for(let n=0;n<t.length;n++){let{dom:A,top:r,left:o}=t[n];A.scrollTop!=r+e&&(A.scrollTop=r+e),A.scrollLeft!=o&&(A.scrollLeft=o)}}let pa=null;function pR(t){if(t.setActive)return t.setActive();if(pa)return t.focus(pa);let e=A1(t);t.focus(pa==null?{get preventScroll(){return pa={preventScroll:!0},!0}}:void 0),pa||(pa=!1,r1(e,0))}function o1(t,e){let n,A=2e8,r,o=0,i=e.top,a=e.top,l,u;for(let f=t.firstChild,h=0;f;f=f.nextSibling,h++){let p;if(f.nodeType==1)p=f.getClientRects();else if(f.nodeType==3)p=Fo(f).getClientRects();else continue;for(let g=0;g<p.length;g++){let B=p[g];if(B.top<=i&&B.bottom>=a){i=Math.max(B.bottom,i),a=Math.min(B.top,a);let y=B.left>e.left?B.left-e.left:B.right<e.left?e.left-B.right:0;if(y<A){n=f,A=y,r=y&&n.nodeType==3?{left:B.right<e.left?B.right:B.left,top:e.top}:e,f.nodeType==1&&y&&(o=h+(e.left>=(B.left+B.right)/2?1:0));continue}}else B.top>e.top&&!l&&B.left<=e.left&&B.right>=e.left&&(l=f,u={left:Math.max(B.left,Math.min(B.right,e.left)),top:B.top});!n&&(e.left>=B.right&&e.top>=B.top||e.left>=B.left&&e.top>=B.bottom)&&(o=h+1)}}return!n&&l&&(n=l,r=u,A=0),n&&n.nodeType==3?mR(n,r):!n||A&&n.nodeType==1?{node:t,offset:o}:o1(n,r)}function mR(t,e){let n=t.nodeValue.length,A=document.createRange();for(let r=0;r<n;r++){A.setEnd(t,r+1),A.setStart(t,r);let o=fi(A,1);if(o.top!=o.bottom&&mm(e,o))return{node:t,offset:r+(e.left>=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function mm(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function gR(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function BR(t,e,n){let{node:A,offset:r}=o1(e,n),o=-1;if(A.nodeType==1&&!A.firstChild){let i=A.getBoundingClientRect();o=i.left!=i.right&&n.left>(i.left+i.right)/2?1:-1}return t.docView.posFromDOM(A,r,o)}function yR(t,e,n,A){let r=-1;for(let o=e,i=!1;o!=t.dom;){let a=t.docView.nearestDesc(o,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!i&&l.left>A.left||l.top>A.top?r=a.posBefore:(!i&&l.right<A.left||l.bottom<A.top)&&(r=a.posAfter),i=!0),!a.contentDOM&&r<0&&!a.node.isText))return(a.node.isBlock?A.top<(l.top+l.bottom)/2:A.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;o=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function i1(t,e,n){let A=t.childNodes.length;if(A&&n.top<n.bottom)for(let r=Math.max(0,Math.min(A-1,Math.floor(A*(e.top-n.top)/(n.bottom-n.top))-2)),o=r;;){let i=t.childNodes[o];if(i.nodeType==1){let a=i.getClientRects();for(let l=0;l<a.length;l++){let u=a[l];if(mm(e,u))return i1(i,e,u)}}if((o=(o+1)%A)==r)break}return t}function wR(t,e){let n=t.dom.ownerDocument,A,r=0,o=aR(n,e.left,e.top);o&&({node:A,offset:r}=o);let i=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!i||!t.dom.contains(i.nodeType!=1?i.parentNode:i)){let u=t.dom.getBoundingClientRect();if(!mm(e,u)||(i=i1(t.dom,e,u),!i))return null}if(uA)for(let u=i;A&&u;u=fa(u))u.draggable&&(A=void 0);if(i=gR(i,e),A){if(Ur&&A.nodeType==1&&(r=Math.min(r,A.childNodes.length),r<A.childNodes.length)){let f=A.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&r++}let u;Ml&&r&&A.nodeType==1&&(u=A.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&r--,A==t.dom&&r==A.childNodes.length-1&&A.lastChild.nodeType==1&&e.top>A.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||A.nodeType!=1||A.childNodes[r-1].nodeName!="BR")&&(a=yR(t,A,r,e))}a==null&&(a=BR(t,i,e));let l=t.docView.nearestDesc(i,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function s1(t){return t.top<t.bottom||t.left<t.right}function fi(t,e){let n=t.getClientRects();if(n.length){let A=n[e<0?0:n.length-1];if(s1(A))return A}return Array.prototype.find.call(n,s1)||t.getBoundingClientRect()}const CR=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function a1(t,e,n){let{node:A,offset:r,atom:o}=t.docView.domFromPos(e,n<0?-1:1),i=Ml||Ur;if(A.nodeType==3)if(i&&(CR.test(A.nodeValue)||(n<0?!r:r==A.nodeValue.length))){let l=fi(Fo(A,r,r),n);if(Ur&&r&&/\s/.test(A.nodeValue[r-1])&&r<A.nodeValue.length){let u=fi(Fo(A,r-1,r-1),-1);if(u.top==l.top){let f=fi(Fo(A,r,r+1),-1);if(f.top!=l.top)return Ol(f,f.left<u.left)}}return l}else{let l=r,u=r,f=n<0?1:-1;return n<0&&!r?(u++,f=-1):n>=0&&r==A.nodeValue.length?(l--,f=1):n<0?l--:u++,Ol(fi(Fo(A,l,u),f),f<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&r&&(n<0||r==nr(A))){let l=A.childNodes[r-1];if(l.nodeType==1)return gm(l.getBoundingClientRect(),!1)}if(o==null&&r<nr(A)){let l=A.childNodes[r];if(l.nodeType==1)return gm(l.getBoundingClientRect(),!0)}return gm(A.getBoundingClientRect(),n>=0)}if(o==null&&r&&(n<0||r==nr(A))){let l=A.childNodes[r-1],u=l.nodeType==3?Fo(l,nr(l)-(i?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Ol(fi(u,1),!1)}if(o==null&&r<nr(A)){let l=A.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Fo(l,0,i?0:1):l.nodeType==1?l:null:null;if(u)return Ol(fi(u,-1),!0)}return Ol(fi(A.nodeType==3?Fo(A):A,-n),n>=0)}function Ol(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function gm(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function l1(t,e,n){let A=t.state,r=t.root.activeElement;A!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{A!=e&&t.updateState(A),r!=t.dom&&r&&r.focus()}}function bR(t,e,n){let A=e.selection,r=n=="up"?A.$from:A.$to;return l1(t,e,()=>{let{node:o}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let i=a1(t,r.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Fo(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let f=l[u];if(f.bottom>f.top+1&&(n=="up"?i.top-f.top>(f.bottom-i.top)*2:f.bottom-i.bottom>(i.bottom-f.top)*2))return!1}}return!0})}const vR=/[\u0590-\u08ac]/;function ER(t,e,n){let{$head:A}=e.selection;if(!A.parent.isTextblock)return!1;let r=A.parentOffset,o=!r,i=r==A.parent.content.size,a=t.domSelection();return a?!vR.test(A.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:i:l1(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:f,anchorOffset:h}=t.domSelectionRange(),p=a.caretBidiLevel;a.modify("move",n,"character");let g=A.depth?t.docView.domAfterPos(A.before()):t.dom,{focusNode:B,focusOffset:y}=t.domSelectionRange(),C=B&&!g.contains(B.nodeType==1?B:B.parentNode)||l==B&&u==y;try{a.collapse(f,h),l&&(l!=f||u!=h)&&a.extend&&a.extend(l,u)}catch{}return p!=null&&(a.caretBidiLevel=p),C}):A.pos==A.start()||A.pos==A.end()}let c1=null,u1=null,d1=!1;function kR(t,e,n){return c1==e&&u1==n?d1:(c1=e,u1=n,d1=n=="up"||n=="down"?bR(t,e,n):ER(t,e,n))}const rr=0,f1=1,fs=2,Zr=3;class Ll{constructor(e,n,A,r){this.parent=e,this.children=n,this.dom=A,this.contentDOM=r,this.dirty=rr,A.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,A){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,A=this.posAtStart;;n++){let r=this.children[n];if(r==e)return A;A+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,A){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(A<0){let o,i;if(e==this.contentDOM)o=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((i=o.pmViewDesc)&&i.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(i)+i.size:this.posAtStart}else{let o,i;if(e==this.contentDOM)o=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((i=o.pmViewDesc)&&i.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(i):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>Wn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??A>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let A=!0,r=e;r;r=r.parentNode){let o=this.getDesc(r),i;if(o&&(!n||o.node))if(A&&(i=o.nodeDOM)&&!(i.nodeType==1?i.contains(e.nodeType==1?e:e.parentNode):i==e))A=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let A=n;A;A=A.parent)if(A==this)return n}posFromDOM(e,n,A){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,n,A)}return-1}descAt(e){for(let n=0,A=0;n<this.children.length;n++){let r=this.children[n],o=A+r.size;if(A==e&&o!=A){for(;!r.border&&r.children.length;)for(let i=0;i<r.children.length;i++){let a=r.children[i];if(a.size){r=a;break}}return r}if(e<o)return r.descAt(e-A-r.border);A=o}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let A=0,r=0;for(let o=0;A<this.children.length;A++){let i=this.children[A],a=o+i.size;if(a>e||i instanceof m1){r=e-o;break}o=a}if(r)return this.children[A].domFromPos(r-this.children[A].border,n);for(let o;A&&!(o=this.children[A-1]).size&&o instanceof h1&&o.side>=0;A--);if(n<=0){let o,i=!0;for(;o=A?this.children[A-1]:null,!(!o||o.dom.parentNode==this.contentDOM);A--,i=!1);return o&&n&&i&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Wn(o.dom)+1:0}}else{let o,i=!0;for(;o=A<this.children.length?this.children[A]:null,!(!o||o.dom.parentNode==this.contentDOM);A++,i=!1);return o&&i&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?Wn(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,A=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=A,a=0;;a++){let l=this.children[a],u=i+l.size;if(r==-1&&e<=u){let f=i+l.border;if(e>=f&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,f);e=i;for(let h=a;h>0;h--){let p=this.children[h-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){r=Wn(p.dom)+1;break}e-=p.size}r==-1&&(r=0)}if(r>-1&&(u>n||a==this.children.length-1)){n=u;for(let f=a+1;f<this.children.length;f++){let h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){o=Wn(h.dom);break}n+=h.size}o==-1&&(o=this.contentDOM.childNodes.length);break}i=u}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:A}=this.domFromPos(e,0);if(n.nodeType!=1||A==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[A]}setSelection(e,n,A,r=!1){let o=Math.min(e,n),i=Math.max(e,n);for(let g=0,B=0;g<this.children.length;g++){let y=this.children[g],C=B+y.size;if(o>B&&i<C)return y.setSelection(e-B-y.border,n-B-y.border,A,r);B=C}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),u=A.root.getSelection(),f=A.domSelectionRange(),h=!1;if((Ur||uA)&&e==n){let{node:g,offset:B}=a;if(g.nodeType==3){if(h=!!(B&&g.nodeValue[B-1]==`
30
- `),h&&B==g.nodeValue.length)for(let y=g,C;y;y=y.parentNode){if(C=y.nextSibling){C.nodeName=="BR"&&(a=l={node:C.parentNode,offset:Wn(C)+1});break}let w=y.pmViewDesc;if(w&&w.node&&w.node.isBlock)break}}else{let y=g.childNodes[B-1];h=y&&(y.nodeName=="BR"||y.contentEditable=="false")}}if(Ur&&f.focusNode&&f.focusNode!=l.node&&f.focusNode.nodeType==1){let g=f.focusNode.childNodes[f.focusOffset];g&&g.contentEditable=="false"&&(r=!0)}if(!(r||h&&uA)&&us(a.node,a.offset,f.anchorNode,f.anchorOffset)&&us(l.node,l.offset,f.focusNode,f.focusOffset))return;let p=!1;if((u.extend||e==n)&&!h){u.collapse(a.node,a.offset);try{e!=n&&u.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let B=a;a=l,l=B}let g=document.createRange();g.setEnd(l.node,l.offset),g.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(g)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let A=0,r=0;r<this.children.length;r++){let o=this.children[r],i=A+o.size;if(A==i?e<=i&&n>=A:e<i&&n>A){let a=A+o.border,l=i-o.border;if(e>=a&&n<=l){this.dirty=e==A||n==i?fs:f1,e==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Zr:o.markDirty(e-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?fs:Zr}A=i}this.dirty=fs}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let A=e==1?fs:f1;n.dirty<A&&(n.dirty=A)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class h1 extends Ll{constructor(e,n,A,r){let o,i=n.type.toDOM;if(typeof i=="function"&&(i=i(A,()=>{if(!o)return r;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(i.nodeType!=1){let a=document.createElement("span");a.appendChild(i),i=a}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==rr&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class SR extends Ll{constructor(e,n,A,r){super(e,[],n,null),this.textDOM=A,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class hs extends Ll{constructor(e,n,A,r,o){super(e,[],A,r),this.mark=n,this.spec=o}static create(e,n,A,r){let o=r.nodeViews[n.type.name],i=o&&o(n,r,A);return(!i||!i.dom)&&(i=ls.renderSpec(document,n.type.spec.toDOM(n,A),null,n.attrs)),new hs(e,n,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&Zr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Zr&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=rr){let A=this.parent;for(;!A.node;)A=A.parent;A.dirty<this.dirty&&(A.dirty=this.dirty),this.dirty=rr}}slice(e,n,A){let r=hs.create(this.parent,this.mark,!0,A),o=this.children,i=this.size;n<i&&(o=ym(o,n,i,A)),e>0&&(o=ym(o,0,e,A));for(let a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class hi extends Ll{constructor(e,n,A,r,o,i,a,l,u){super(e,[],o,i),this.node=n,this.outerDeco=A,this.innerDeco=r,this.nodeDOM=a}static create(e,n,A,r,o,i){let a=o.nodeViews[n.type.name],l,u=a&&a(n,o,()=>{if(!l)return i;if(l.parent)return l.parent.posBeforeChild(l)},A,r),f=u&&u.dom,h=u&&u.contentDOM;if(n.isText){if(!f)f=document.createTextNode(n.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:h}=ls.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!h&&!n.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),n.type.spec.draggable&&(f.draggable=!0));let p=f;return f=y1(f,A,n),u?l=new FR(e,n,A,r,f,h||null,p,u,o,i+1):n.isText?new Tu(e,n,A,r,f,p,o):new hi(e,n,A,r,f,h||null,p,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let A=this.children[n];if(this.dom.contains(A.dom.parentNode)){e.contentElement=A.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Qe.empty)}return e}matchesNode(e,n,A){return this.dirty==rr&&e.eq(this.node)&&Du(n,this.outerDeco)&&A.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let A=this.node.inlineContent,r=n,o=e.composing?this.localCompositionInfo(e,n):null,i=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new xR(this,i&&i.node,e);_R(this.node,this.innerDeco,(u,f,h)=>{u.spec.marks?l.syncToMarks(u.spec.marks,A,e):u.type.side>=0&&!h&&l.syncToMarks(f==this.node.childCount?Ht.none:this.node.child(f).marks,A,e),l.placeWidget(u,e,r)},(u,f,h,p)=>{l.syncToMarks(u.marks,A,e);let g;l.findNodeMatch(u,f,h,p)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(g=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(u,f,h,g,e)||l.updateNextNode(u,f,h,e,p,r)||l.addNode(u,f,h,e,r),r+=u.nodeSize}),l.syncToMarks([],A,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==fs)&&(i&&this.protectLocalComposition(e,i),g1(this.contentDOM,this.children,e),ha&&TR(this.dom))}localCompositionInfo(e,n){let{from:A,to:r}=e.state.selection;if(!(e.state.selection instanceof nt)||A<n||r>n+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let i=o.nodeValue,a=DR(this.node.content,i,A-n,r-n);return a<0?null:{node:o,pos:a,text:i}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:A,text:r}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new SR(this,o,n,r);e.input.compositionNodes.push(i),this.children=ym(this.children,A,A+r.length,e,i)}update(e,n,A,r){return this.dirty==Zr||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,A,r),!0)}updateInner(e,n,A,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=A,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=rr}updateOuterDeco(e){if(Du(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,A=this.dom;this.dom=B1(this.dom,this.nodeDOM,Bm(this.outerDeco,this.node,n),Bm(e,this.node,n)),this.dom!=A&&(A.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function p1(t,e,n,A,r){y1(A,e,t);let o=new hi(void 0,t,e,n,A,A,A,r,0);return o.contentDOM&&o.updateChildren(r,0),o}class Tu extends hi{constructor(e,n,A,r,o,i,a){super(e,n,A,r,o,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,A,r){return this.dirty==Zr||this.dirty!=rr&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=rr||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=rr,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,A){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,A)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,A){let r=this.node.cut(e,n),o=document.createTextNode(r.text);return new Tu(this.parent,r,this.outerDeco,this.innerDeco,o,o,A)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Zr)}get domAtom(){return!1}isText(e){return this.node.text==e}}class m1 extends Ll{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==rr&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class FR extends hi{constructor(e,n,A,r,o,i,a,l,u,f){super(e,n,A,r,o,i,a,u,f),this.spec=l}update(e,n,A,r){if(this.dirty==Zr)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,n,A);return o&&this.updateInner(e,n,A,r),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,A,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,A,r){this.spec.setSelection?this.spec.setSelection(e,n,A.root):super.setSelection(e,n,A,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function g1(t,e,n){let A=t.firstChild,r=!1;for(let o=0;o<e.length;o++){let i=e[o],a=i.dom;if(a.parentNode==t){for(;a!=A;)A=w1(A),r=!0;A=A.nextSibling}else r=!0,t.insertBefore(a,A);if(i instanceof hs){let l=A?A.previousSibling:t.lastChild;g1(i.contentDOM,i.children,n),A=l?l.nextSibling:t.firstChild}}for(;A;)A=w1(A),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Nl=function(t){t&&(this.nodeName=t)};Nl.prototype=Object.create(null);const ps=[new Nl];function Bm(t,e,n){if(t.length==0)return ps;let A=n?ps[0]:new Nl,r=[A];for(let o=0;o<t.length;o++){let i=t[o].type.attrs;if(i){i.nodeName&&r.push(A=new Nl(i.nodeName));for(let a in i){let l=i[a];l!=null&&(n&&r.length==1&&r.push(A=new Nl(e.isInline?"span":"div")),a=="class"?A.class=(A.class?A.class+" ":"")+l:a=="style"?A.style=(A.style?A.style+";":"")+l:a!="nodeName"&&(A[a]=l))}}}return r}function B1(t,e,n,A){if(n==ps&&A==ps)return e;let r=e;for(let o=0;o<A.length;o++){let i=A[o],a=n[o];if(o){let l;a&&a.nodeName==i.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==i.nodeName||(l=document.createElement(i.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=ps[0]),r=l}QR(r,a||ps[0],i)}return r}function QR(t,e,n){for(let A in e)A!="class"&&A!="style"&&A!="nodeName"&&!(A in n)&&t.removeAttribute(A);for(let A in n)A!="class"&&A!="style"&&A!="nodeName"&&n[A]!=e[A]&&t.setAttribute(A,n[A]);if(e.class!=n.class){let A=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<A.length;o++)r.indexOf(A[o])==-1&&t.classList.remove(A[o]);for(let o=0;o<r.length;o++)A.indexOf(r[o])==-1&&t.classList.add(r[o]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let A=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=A.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function y1(t,e,n){return B1(t,t,ps,Bm(e,n,t.nodeType!=1))}function Du(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function w1(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class xR{constructor(e,n,A){this.lock=n,this.view=A,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=UR(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let A=e;A<n;A++)this.top.children[A].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,A){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=rr,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let u=this.top.children[l];if(u.matchesMark(e[o])&&!this.isLocked(u.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=hs.create(this.top,e[o],n,A);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,A,r){let o=-1,i;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,n,A))o=this.top.children.indexOf(i,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let u=this.top.children[a];if(u.matchesNode(e,n,A)&&!this.preMatch.matched.has(u)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,n,A,r,o){let i=this.top.children[r];return i.dirty==Zr&&i.dom==i.contentDOM&&(i.dirty=fs),i.update(e,n,A,o)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let A=e.pmViewDesc;if(A){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==A)return r}return-1}e=n}}updateNextNode(e,n,A,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof hi){let u=this.preMatch.matched.get(l);if(u!=null&&u!=o)return!1;let f=l.dom,h,p=this.isLocked(f)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Zr&&Du(n,l.outerDeco));if(!p&&l.update(e,n,A,r))return this.destroyBetween(this.index,a),l.dom!=f&&(this.changed=!0),this.index++,!0;if(!p&&(h=this.recreateWrapper(l,e,n,A,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=fs,h.updateChildren(r,i+1),h.dirty=rr),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,A,r,o,i){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!Du(A,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=hi.create(this.top,n,A,r,o,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,A,r,o){let i=hi.create(this.top,e,n,A,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,n,A){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let o=new h1(this.top,e,n,A);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof hs;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Tu)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((uA||nA)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let A=document.createElement(e);e=="IMG"&&(A.className="ProseMirror-separator",A.alt=""),e=="BR"&&(A.className="ProseMirror-trailingBreak");let r=new m1(this.top,[],A,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function UR(t,e){let n=e,A=n.children.length,r=t.childCount,o=new Map,i=[];e:for(;r>0;){let a;for(;;)if(A){let u=n.children[A-1];if(u instanceof hs)n=u,A=u.children.length;else{a=u,A--;break}}else{if(n==e)break e;A=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,o.set(a,r),i.push(a)}}return{index:r,matched:o,matches:i.reverse()}}function IR(t,e){return t.type.side-e.type.side}function _R(t,e,n,A){let r=e.locals(t),o=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);A(f,r,e.forChild(o,f),u),o+=f.nodeSize}return}let i=0,a=[],l=null;for(let u=0;;){let f,h;for(;i<r.length&&r[i].to==o;){let C=r[i++];C.widget&&(f?(h||(h=[f])).push(C):f=C)}if(f)if(h){h.sort(IR);for(let C=0;C<h.length;C++)n(h[C],u,!!l)}else n(f,u,!!l);let p,g;if(l)g=-1,p=l,l=null;else if(u<t.childCount)g=u,p=t.child(u++);else break;for(let C=0;C<a.length;C++)a[C].to<=o&&a.splice(C--,1);for(;i<r.length&&r[i].from<=o&&r[i].to>o;)a.push(r[i++]);let B=o+p.nodeSize;if(p.isText){let C=B;i<r.length&&r[i].from<C&&(C=r[i].from);for(let w=0;w<a.length;w++)a[w].to<C&&(C=a[w].to);C<B&&(l=p.cut(C-o),p=p.cut(0,C-o),B=C,g=-1)}else for(;i<r.length&&r[i].to<B;)i++;let y=p.isInline&&!p.isLeaf?a.filter(C=>!C.inline):a.slice();A(p,y,e.forChild(o,p),g),o=B}}function TR(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function DR(t,e,n,A){for(let r=0,o=0;r<t.childCount&&o<=A;){let i=t.child(r++),a=o;if(o+=i.nodeSize,!i.isText)continue;let l=i.text;for(;r<t.childCount;){let u=t.child(r++);if(o+=u.nodeSize,!u.isText)break;l+=u.text}if(o>=n){if(o>=A&&l.slice(A-e.length-a,A-a)==e)return A-e.length;let u=a<A?l.lastIndexOf(e,A-a-1):-1;if(u>=0&&u+e.length+a>=n)return a+u;if(n==A&&l.length>=A+e.length-a&&l.slice(A-a,A-a+e.length)==e)return A}}return-1}function ym(t,e,n,A,r){let o=[];for(let i=0,a=0;i<t.length;i++){let l=t[i],u=a,f=a+=l.size;u>=n||f<=e?o.push(l):(u<e&&o.push(l.slice(0,e-u,A)),r&&(o.push(r),r=void 0),f>n&&o.push(l.slice(n-u,l.size,A)))}return o}function wm(t,e=null){let n=t.domSelectionRange(),A=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),o=r&&r.size==0,i=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(i<0)return null;let a=A.resolve(i),l,u;if(_u(n)){for(l=i;r&&!r.node;)r=r.parent;let h=r.node;if(r&&h.isAtom&&We.isSelectable(h)&&r.parent&&!(h.isInline&&iR(n.focusNode,n.focusOffset,r.dom))){let p=r.posBefore;u=new We(i==p?a:A.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let h=i,p=i;for(let g=0;g<n.rangeCount;g++){let B=n.getRangeAt(g);h=Math.min(h,t.docView.posFromDOM(B.startContainer,B.startOffset,1)),p=Math.max(p,t.docView.posFromDOM(B.endContainer,B.endOffset,-1))}if(h<0)return null;[l,i]=p==t.state.selection.anchor?[p,h]:[h,p],a=A.resolve(i)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let f=A.resolve(l);if(!u){let h=e=="pointer"||t.state.selection.head<a.pos&&!o?1:-1;u=bm(t,f,a,h)}return u}function C1(t){return t.editable?t.hasFocus():Q1(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Uo(t,e=!1){let n=t.state.selection;if(k1(t,n),!!C1(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&nA){let A=t.domSelectionRange(),r=t.domObserver.currentSelection;if(A.anchorNode&&r.anchorNode&&us(A.anchorNode,A.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)OR(t);else{let{anchor:A,head:r}=n,o,i;b1&&!(n instanceof nt)&&(n.$from.parent.inlineContent||(o=v1(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(i=v1(t,n.to))),t.docView.setSelection(A,r,t,e),b1&&(o&&E1(o),i&&E1(i)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&MR(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const b1=uA||nA&&t1<63;function v1(t,e){let{node:n,offset:A}=t.docView.domFromPos(e,0),r=A<n.childNodes.length?n.childNodes[A]:null,o=A?n.childNodes[A-1]:null;if(uA&&r&&r.contentEditable=="false")return Cm(r);if((!r||r.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(r)return Cm(r);if(o)return Cm(o)}}function Cm(t){return t.contentEditable="true",uA&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function E1(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function MR(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),A=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=A||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!C1(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function OR(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let A=t.cursorWrapper.dom,r=A.nodeName=="IMG";r?n.setStart(A.parentNode,Wn(A)+1):n.setStart(A,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&SA&&di<=11&&(A.disabled=!0,A.disabled=!1)}function k1(t,e){if(e instanceof We){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(S1(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else S1(t)}function S1(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function bm(t,e,n,A){return t.someProp("createSelectionBetween",r=>r(t,e,n))||nt.between(e,n,A)}function F1(t){return t.editable&&!t.hasFocus()?!1:Q1(t)}function Q1(t){let e=t.domSelectionRange();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 LR(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return us(e.node,e.offset,n.anchorNode,n.anchorOffset)}function vm(t,e){let{$anchor:n,$head:A}=t.selection,r=e>0?n.max(A):n.min(A),o=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return o&&it.findFrom(o,e)}function pi(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function x1(t,e,n){let A=t.state.selection;if(A instanceof nt)if(n.indexOf("s")>-1){let{$head:r}=A,o=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=t.state.doc.resolve(r.pos+o.nodeSize*(e<0?-1:1));return pi(t,new nt(A.$anchor,i))}else if(A.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=vm(t.state,e);return r&&r instanceof We?pi(t,r):!1}else if(!(Ar&&n.indexOf("m")>-1)){let r=A.$head,o=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,i;if(!o||o.isText)return!1;let a=e<0?r.pos-o.nodeSize:r.pos;return o.isAtom||(i=t.docView.descAt(a))&&!i.contentDOM?We.isSelectable(o)?pi(t,new We(e<0?t.state.doc.resolve(r.pos-o.nodeSize):r)):Ml?pi(t,new nt(t.state.doc.resolve(e<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(A instanceof We&&A.node.isInline)return pi(t,new nt(e>0?A.$to:A.$from));{let r=vm(t.state,e);return r?pi(t,r):!1}}}function Mu(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Hl(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ma(t,e){return e<0?NR(t):HR(t)}function NR(t){let e=t.domSelectionRange(),n=e.focusNode,A=e.focusOffset;if(!n)return;let r,o,i=!1;for(Ur&&n.nodeType==1&&A<Mu(n)&&Hl(n.childNodes[A],-1)&&(i=!0);;)if(A>0){if(n.nodeType!=1)break;{let a=n.childNodes[A-1];if(Hl(a,-1))r=n,o=--A;else if(a.nodeType==3)n=a,A=n.nodeValue.length;else break}}else{if(U1(n))break;{let a=n.previousSibling;for(;a&&Hl(a,-1);)r=n.parentNode,o=Wn(a),a=a.previousSibling;if(a)n=a,A=Mu(n);else{if(n=n.parentNode,n==t.dom)break;A=0}}}i?Em(t,n,A):r&&Em(t,r,o)}function HR(t){let e=t.domSelectionRange(),n=e.focusNode,A=e.focusOffset;if(!n)return;let r=Mu(n),o,i;for(;;)if(A<r){if(n.nodeType!=1)break;let a=n.childNodes[A];if(Hl(a,1))o=n,i=++A;else break}else{if(U1(n))break;{let a=n.nextSibling;for(;a&&Hl(a,1);)o=a.parentNode,i=Wn(a)+1,a=a.nextSibling;if(a)n=a,A=0,r=Mu(n);else{if(n=n.parentNode,n==t.dom)break;A=r=0}}}o&&Em(t,o,i)}function U1(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function PR(t,e){for(;t&&e==t.childNodes.length&&!Dl(t);)e=Wn(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function RR(t,e){for(;t&&!e&&!Dl(t);)e=Wn(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Em(t,e,n){if(e.nodeType!=3){let o,i;(i=PR(e,n))?(e=i,n=0):(o=RR(e,n))&&(e=o,n=o.nodeValue.length)}let A=t.domSelection();if(!A)return;if(_u(A)){let o=document.createRange();o.setEnd(e,n),o.setStart(e,n),A.removeAllRanges(),A.addRange(o)}else A.extend&&A.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Uo(t)},50)}function I1(t,e){let n=t.state.doc.resolve(e);if(!(nA||lR)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),i=(o.top+o.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(o.left-r.left)>1)return o.left<r.left?"ltr":"rtl"}if(e<n.end()){let o=t.coordsAtPos(e+1),i=(o.top+o.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(o.left-r.left)>1)return o.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function _1(t,e,n){let A=t.state.selection;if(A instanceof nt&&!A.empty||n.indexOf("s")>-1||Ar&&n.indexOf("m")>-1)return!1;let{$from:r,$to:o}=A;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let i=vm(t.state,e);if(i&&i instanceof We)return pi(t,i)}if(!r.parent.inlineContent){let i=e<0?r:o,a=A instanceof HA?it.near(i,e):it.findFrom(i,e);return a?pi(t,a):!1}return!1}function T1(t,e){if(!(t.state.selection instanceof nt))return!0;let{$head:n,$anchor:A,empty:r}=t.state.selection;if(!n.sameParent(A))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let i=t.state.tr;return e<0?i.delete(n.pos-o.nodeSize,n.pos):i.delete(n.pos,n.pos+o.nodeSize),t.dispatch(i),!0}return!1}function D1(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function VR(t){if(!uA||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let A=e.firstChild;D1(t,A,"true"),setTimeout(()=>D1(t,A,"false"),20)}return!1}function $R(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function KR(t,e){let n=e.keyCode,A=$R(e);if(n==8||Ar&&n==72&&A=="c")return T1(t,-1)||ma(t,-1);if(n==46&&!e.shiftKey||Ar&&n==68&&A=="c")return T1(t,1)||ma(t,1);if(n==13||n==27)return!0;if(n==37||Ar&&n==66&&A=="c"){let r=n==37?I1(t,t.state.selection.from)=="ltr"?-1:1:-1;return x1(t,r,A)||ma(t,r)}else if(n==39||Ar&&n==70&&A=="c"){let r=n==39?I1(t,t.state.selection.from)=="ltr"?1:-1:1;return x1(t,r,A)||ma(t,r)}else{if(n==38||Ar&&n==80&&A=="c")return _1(t,-1,A)||ma(t,-1);if(n==40||Ar&&n==78&&A=="c")return VR(t)||_1(t,1,A)||ma(t,1);if(A==(Ar?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function km(t,e){t.someProp("transformCopied",g=>{e=g(e,t)});let n=[],{content:A,openStart:r,openEnd:o}=e;for(;r>1&&o>1&&A.childCount==1&&A.firstChild.childCount==1;){r--,o--;let g=A.firstChild;n.push(g.type.name,g.attrs!=g.type.defaultAttrs?g.attrs:null),A=g.content}let i=t.someProp("clipboardSerializer")||ls.fromSchema(t.state.schema),a=V1(),l=a.createElement("div");l.appendChild(i.serializeFragment(A,{document:a}));let u=l.firstChild,f,h=0;for(;u&&u.nodeType==1&&(f=P1[u.nodeName.toLowerCase()]);){for(let g=f.length-1;g>=0;g--){let B=a.createElement(f[g]);for(;l.firstChild;)B.appendChild(l.firstChild);l.appendChild(B),h++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${o}${h?` -${h}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",g=>g(e,t))||e.content.textBetween(0,e.content.size,`
25
+ `]),value:i.value||i,checked:i.value?i.value===t.modelValue?.value:i===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:l=>A(i)},null,42,KH),s.renderSlot(r.$slots,"option-label",{option:i,index:a},()=>[s.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${a}`,innerHTML:i.text},null,8,zH)])],2))),128)),s.renderSlot(r.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:t.id},s.toDisplayString(t.label),9,WH)):s.createCommentVNode("",!0)])]))}}),GH={class:"radio-buttons"},YH=["for"],jH=s.defineComponent({__name:"radio-buttons",props:{modelValue:{type:null,default:""},options:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},keyOption:{type:null},itemClass:{type:String,default:""}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){A("update:modelValue",o)}});return(o,i)=>(s.openBlock(),s.createElementBlock("div",GH,[s.createVNode(gu,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a),options:t.options,name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-column gap-3 justify-content-center"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block btn btn-outline-primary p-3 fw-bold",role:"button"},s.toDisplayString(a.option.text),9,YH)]),_:1},8,["modelValue","options","name","id","disabled","required"])]))}}),qH=["id","name","multiple","accept","disabled"],JH={class:"input__input-group input-group"},XH=["value","id","name","disabled"],ZH=["for","disabled"],eP={class:"btn btn-outline-contrast"},tP=["for"],nP=["innerHTML"],AP=s.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},dropzone:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e;function r(l){const u=l.target&&l.target.files;u&&(i.splice(0,i.length),Array.from(u).forEach(f=>{if(n.maxFileSize&&f.size>n.maxFileSize){console.warn(`File ${f.name} exceeds the ${n.maxFileSize} bytes size limit and will not be added.`);return}i.push(f)}))}const o=s.ref(),i=s.reactive([]),a=s.computed(()=>i&&i.map(l=>l.name));return s.watch(()=>n.modelValue,(l,u)=>{l.length===0&&(o.value.value=null)},{deep:!0}),s.watch(()=>i,(l,u)=>{A("update:modelValue",l)},{deep:!0}),(l,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["input input-file","input-file--primary"])},[s.createElementVNode("input",{ref_key:"input",ref:o,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,qH),s.createElementVNode("div",JH,[s.renderSlot(l.$slots,"input-prepend"),s.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,XH),s.renderSlot(l.$slots,"input-append",{},()=>[s.createElementVNode("label",{for:t.id,disabled:t.disabled},[s.renderSlot(l.$slots,"button",{},()=>[s.createElementVNode("span",eP,s.toDisplayString(l.$t("common.selectFile")),1)])],8,ZH)])]),s.createElementVNode("label",{for:t.id},[s.renderSlot(l.$slots,"label",{},()=>[s.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,nP)])],8,tP)]))}}),rP={class:"custom-html"},oP=["innerHTML"],iP=s.defineComponent({__name:"custom-html",props:{content:{}},setup(t){return(e,n)=>{const A=s.resolveComponent("client-only");return s.openBlock(),s.createBlock(A,null,{default:s.withCtx(()=>[s.createElementVNode("div",rP,[s.renderSlot(e.$slots,"default",{},()=>[s.createElementVNode("span",{class:"custom-html__content",innerHTML:e.content},null,8,oP)])])]),_:3})}}}),sP={class:"select-media"},aP=["for"],lP=s.defineComponent({__name:"select-media",props:{modelValue:{type:null,default:""},assets:{type:Array,default:[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},emitKey:{type:String,default:"src"}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){const i=n.assets.find(a=>a.id===o);A("update:modelValue",n.emitKey?i[n.emitKey]:i),n.emitKey&&n.emitKey!=="id"&&A("update:selection",i.id)}});return(o,i)=>{const a=s.resolveComponent("base-image");return s.openBlock(),s.createElementBlock("div",sP,[s.createVNode(gu,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=l=>r.value=l),options:t.assets.map(l=>l.id),name:t.name,id:t.id,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row justify-content-center",itemClass:"col-6 p-2"},{"option-label":s.withCtx(l=>[s.createElementVNode("label",{for:`${t.id}-${l.index}`,class:s.normalizeClass(["w-100",{"is-active":t.assets[l.index].id===r.value}]),role:"button"},[t.assets[l.index].thumbnail?(s.openBlock(),s.createBlock(a,{key:0,src:t.assets[l.index].thumbnail,alt:t.assets[l.index].id},null,8,["src","alt"])):s.createCommentVNode("",!0)],10,aP)]),_:1},8,["modelValue","options","name","id","disabled","required"])])}}});function zn(t){this.content=t}zn.prototype={constructor:zn,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,n){var A=n&&n!=t?this.remove(n):this,r=A.find(t),o=A.content.slice();return r==-1?o.push(n||t,e):(o[r+1]=e,n&&(o[r]=n)),new zn(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new zn(n)},addToStart:function(t,e){return new zn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new zn(n)},addBefore:function(t,e,n){var A=this.remove(e),r=A.content.slice(),o=A.find(t);return r.splice(o==-1?r.length:o,0,e,n),new zn(r)},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=zn.from(t),t.size?new zn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=zn.from(t),t.size?new zn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=zn.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},zn.from=function(t){if(t instanceof zn)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new zn(e)};function eb(t,e,n){for(let A=0;;A++){if(A==t.childCount||A==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(A),o=e.child(A);if(r==o){n+=r.nodeSize;continue}if(!r.sameMarkup(o))return n;if(r.isText&&r.text!=o.text){for(let i=0;r.text[i]==o.text[i];i++)n++;return n}if(r.content.size||o.content.size){let i=eb(r.content,o.content,n+1);if(i!=null)return i}n+=r.nodeSize}}function tb(t,e,n,A){for(let r=t.childCount,o=e.childCount;;){if(r==0||o==0)return r==o?null:{a:n,b:A};let i=t.child(--r),a=e.child(--o),l=i.nodeSize;if(i==a){n-=l,A-=l;continue}if(!i.sameMarkup(a))return{a:n,b:A};if(i.isText&&i.text!=a.text){let u=0,f=Math.min(i.text.length,a.text.length);for(;u<f&&i.text[i.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,A--;return{a:n,b:A}}if(i.content.size||a.content.size){let u=tb(i.content,a.content,n-1,A-1);if(u)return u}n-=l,A-=l}}class Qe{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let A=0;A<e.length;A++)this.size+=e[A].nodeSize}nodesBetween(e,n,A,r=0,o){for(let i=0,a=0;a<n;i++){let l=this.content[i],u=a+l.nodeSize;if(u>e&&A(l,r+a,o||null,i)!==!1&&l.content.size){let f=a+1;l.nodesBetween(Math.max(0,e-f),Math.min(l.content.size,n-f),A,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,A,r){let o="",i=!0;return this.nodesBetween(e,n,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&A&&(i?i=!1:o+=A),o+=u},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,A=e.firstChild,r=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(A)&&(r[r.length-1]=n.withText(n.text+A.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new Qe(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let A=[],r=0;if(n>e)for(let o=0,i=0;i<n;o++){let a=this.content[o],l=i+a.nodeSize;l>e&&((i<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-i),Math.min(a.text.length,n-i)):a=a.cut(Math.max(0,e-i-1),Math.min(a.content.size,n-i-1))),A.push(a),r+=a.nodeSize),i=l}return new Qe(A,r)}cutByIndex(e,n){return e==n?Qe.empty:e==0&&n==this.content.length?this:new Qe(this.content.slice(e,n))}replaceChild(e,n){let A=this.content[e];if(A==n)return this;let r=this.content.slice(),o=this.size+n.nodeSize-A.nodeSize;return r[e]=n,new Qe(r,o)}addToStart(e){return new Qe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Qe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,A=0;n<this.content.length;n++){let r=this.content[n];e(r,A,n),A+=r.nodeSize}}findDiffStart(e,n=0){return eb(this,e,n)}findDiffEnd(e,n=this.size,A=e.size){return tb(this,e,n,A)}findIndex(e){if(e==0)return Bu(0,e);if(e==this.size)return Bu(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,A=0;;n++){let r=this.child(n),o=A+r.nodeSize;if(o>=e)return o==e?Bu(n+1,o):Bu(n,A);A=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Qe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Qe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Qe.empty;let n,A=0;for(let r=0;r<e.length;r++){let o=e[r];A+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(n||(n=e.slice(0,r)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new Qe(n||e,A)}static from(e){if(!e)return Qe.empty;if(e instanceof Qe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Qe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Qe.empty=new Qe([],0);const qp={index:0,offset:0};function Bu(t,e){return qp.index=t,qp.offset=e,qp}function yu(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let A=0;A<t.length;A++)if(!yu(t[A],e[A]))return!1}else{for(let A in t)if(!(A in e)||!yu(t[A],e[A]))return!1;for(let A in e)if(!(A in t))return!1}return!0}let Ht=class N0{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,A=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!A&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),A=!0),n&&n.push(o)}}return n||(n=e.slice()),A||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&yu(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let A=e.marks[n.type];if(!A)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=A.create(n.attrs);return A.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let A=0;A<e.length;A++)if(!e[A].eq(n[A]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return N0.none;if(e instanceof N0)return[e];let n=e.slice();return n.sort((A,r)=>A.type.rank-r.type.rank),n}};Ht.none=[];class wu extends Error{}class Ne{constructor(e,n,A){this.content=e,this.openStart=n,this.openEnd=A}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let A=Ab(this.content,e+this.openStart,n);return A&&new Ne(A,this.openStart,this.openEnd)}removeBetween(e,n){return new Ne(nb(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ne.empty;let A=n.openStart||0,r=n.openEnd||0;if(typeof A!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ne(Qe.fromJSON(e,n.content),A,r)}static maxOpen(e,n=!0){let A=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)A++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)r++;return new Ne(e,A,r)}}Ne.empty=new Ne(Qe.empty,0,0);function nb(t,e,n){let{index:A,offset:r}=t.findIndex(e),o=t.maybeChild(A),{index:i,offset:a}=t.findIndex(n);if(r==e||o.isText){if(a!=n&&!t.child(i).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(A!=i)throw new RangeError("Removing non-flat range");return t.replaceChild(A,o.copy(nb(o.content,e-r-1,n-r-1)))}function Ab(t,e,n,A){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r);if(o==e||i.isText)return A&&!A.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=Ab(i.content,e-o-1,n,i);return a&&t.replaceChild(r,i.copy(a))}function cP(t,e,n){if(n.openStart>t.depth)throw new wu("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new wu("Inconsistent open depths");return rb(t,e,n,0)}function rb(t,e,n,A){let r=t.index(A),o=t.node(A);if(r==e.index(A)&&A<t.depth-n.openStart){let i=rb(t,e,n,A+1);return o.copy(o.content.replaceChild(r,i))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==A&&e.depth==A){let i=t.parent,a=i.content;return ss(i,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:i,end:a}=uP(n,t);return ss(o,ib(t,i,a,e,A))}else return ss(o,Cu(t,e,A))}function ob(t,e){if(!e.type.compatibleContent(t.type))throw new wu("Cannot join "+e.type.name+" onto "+t.type.name)}function Jp(t,e,n){let A=t.node(n);return ob(A,e.node(n)),A}function is(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function kl(t,e,n,A){let r=(e||t).node(n),o=0,i=e?e.index(n):r.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(is(t.nodeAfter,A),o++));for(let a=o;a<i;a++)is(r.child(a),A);e&&e.depth==n&&e.textOffset&&is(e.nodeBefore,A)}function ss(t,e){return t.type.checkContent(e),t.copy(e)}function ib(t,e,n,A,r){let o=t.depth>r&&Jp(t,e,r+1),i=A.depth>r&&Jp(n,A,r+1),a=[];return kl(null,t,r,a),o&&i&&e.index(r)==n.index(r)?(ob(o,i),is(ss(o,ib(t,e,n,A,r+1)),a)):(o&&is(ss(o,Cu(t,e,r+1)),a),kl(e,n,r,a),i&&is(ss(i,Cu(n,A,r+1)),a)),kl(A,null,r,a),new Qe(a)}function Cu(t,e,n){let A=[];if(kl(null,t,n,A),t.depth>n){let r=Jp(t,e,n+1);is(ss(r,Cu(t,e,n+1)),A)}return kl(e,null,n,A),new Qe(A)}function uP(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)r=e.node(o).copy(Qe.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Sl{constructor(e,n,A){this.pos=e,this.path=n,this.parentOffset=A,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(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]}after(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}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let A=this.pos-this.path[this.path.length-1],r=e.child(n);return A?e.child(n).cut(A):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let A=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)r+=A.child(o).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Ht.none;if(this.textOffset)return e.child(n).marks;let A=e.maybeChild(n-1),r=e.maybeChild(n);if(!A){let a=A;A=r,r=a}let o=A.marks;for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let A=n.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<A.length;o++)A[o].type.spec.inclusive===!1&&(!r||!A[o].isInSet(r.marks))&&(A=A[o--].removeFromSet(A));return A}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let A=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);A>=0;A--)if(e.pos<=this.end(A)&&(!n||n(this.node(A))))return new bu(this,e,A);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let A=[],r=0,o=n;for(let i=e;;){let{index:a,offset:l}=i.content.findIndex(o),u=o-l;if(A.push(i,a,r+l),!u||(i=i.child(a),i.isText))break;o=u-1,r+=l+1}return new Sl(n,A,o)}static resolveCached(e,n){let A=sb.get(e);if(A)for(let o=0;o<A.elts.length;o++){let i=A.elts[o];if(i.pos==n)return i}else sb.set(e,A=new dP);let r=A.elts[A.i]=Sl.resolve(e,n);return A.i=(A.i+1)%fP,r}}class dP{constructor(){this.elts=[],this.i=0}}const fP=12,sb=new WeakMap;class bu{constructor(e,n,A){this.$from=e,this.$to=n,this.depth=A}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const hP=Object.create(null);let ii=class H0{constructor(e,n,A,r=Ht.none){this.type=e,this.attrs=n,this.marks=r,this.content=A||Qe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,A,r=0){this.content.nodesBetween(e,n,A,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,A,r){return this.content.textBetween(e,n,A,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,A){return this.type==e&&yu(this.attrs,n||e.defaultAttrs||hP)&&Ht.sameSet(this.marks,A||Ht.none)}copy(e=null){return e==this.content?this:new H0(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new H0(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,A=!1){if(e==n)return Ne.empty;let r=this.resolve(e),o=this.resolve(n),i=A?0:r.sharedDepth(n),a=r.start(i),u=r.node(i).content.cut(r.pos-a,o.pos-a);return new Ne(u,r.depth-i,o.depth-i)}replace(e,n,A){return cP(this.resolve(e),this.resolve(n),A)}nodeAt(e){for(let n=this;;){let{index:A,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(A),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:A}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:A}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:A}=this.content.findIndex(e);if(A<e)return{node:this.content.child(n),index:n,offset:A};let r=this.content.child(n-1);return{node:r,index:n-1,offset:A-r.nodeSize}}resolve(e){return Sl.resolveCached(this,e)}resolveNoCache(e){return Sl.resolve(this,e)}rangeHasMark(e,n,A){let r=!1;return n>e&&this.nodesBetween(e,n,o=>(A.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ab(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,A=Qe.empty,r=0,o=A.childCount){let i=this.contentMatchAt(e).matchFragment(A,r,o),a=i&&i.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<o;l++)if(!this.type.allowsMarks(A.child(l).marks))return!1;return!0}canReplaceWith(e,n,A,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(A),i=o&&o.matchFragment(this.content,n);return i?i.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ht.none;for(let n=0;n<this.marks.length;n++){let A=this.marks[n];A.type.checkAttrs(A.attrs),e=A.addToSet(e)}if(!Ht.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n 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(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let A;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");A=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,A)}let r=Qe.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,r,A);return o.type.checkAttrs(o.attrs),o}};ii.prototype.text=void 0;class vu extends ii{constructor(e,n,A,r){if(super(e,n,null,r),!A)throw new RangeError("Empty text nodes are not allowed");this.text=A}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ab(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new vu(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new vu(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ab(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class as{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let A=new pP(e,n);if(A.next==null)return as.empty;let r=lb(A);A.next&&A.err("Unexpected trailing text");let o=bP(CP(r));return vP(o,A),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,A=e.childCount){let r=this;for(let o=n;r&&o<A;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let A=0;A<e.next.length;A++)if(this.next[n].type==e.next[A].type)return!0;return!1}fillBefore(e,n=!1,A=0){let r=[this];function o(i,a){let l=i.matchFragment(e,A);if(l&&(!n||l.validEnd))return Qe.from(a.map(u=>u.createAndFill()));for(let u=0;u<i.next.length;u++){let{type:f,next:h}=i.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let p=o(h,a.concat(f));if(p)return p}}return null}return o(this,[])}findWrapping(e){for(let A=0;A<this.wrapCache.length;A+=2)if(this.wrapCache[A]==e)return this.wrapCache[A+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),A=[{match:this,type:null,via:null}];for(;A.length;){let r=A.shift(),o=r.match;if(o.matchType(e)){let i=[];for(let a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(let i=0;i<o.next.length;i++){let{type:a,next:l}=o.next[i];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(A.push({match:a.contentMatch,type:a,via:r}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(A){e.push(A);for(let r=0;r<A.next.length;r++)e.indexOf(A.next[r].next)==-1&&n(A.next[r].next)}return n(this),e.map((A,r)=>{let o=r+(A.validEnd?"*":" ")+" ";for(let i=0;i<A.next.length;i++)o+=(i?", ":"")+A.next[i].type.name+"->"+e.indexOf(A.next[i].next);return o}).join(`
26
+ `)}}as.empty=new as(!0);class pP{constructor(e,n){this.string=e,this.nodeTypes=n,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()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function lb(t){let e=[];do e.push(mP(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function mP(t){let e=[];do e.push(gP(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function gP(t){let e=wP(t);for(;;)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=BP(t,e);else break;return e}function cb(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function BP(t,e){let n=cb(t),A=n;return t.eat(",")&&(t.next!="}"?A=cb(t):A=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:A,expr:e}}function yP(t,e){let n=t.nodeTypes,A=n[e];if(A)return[A];let r=[];for(let o in n){let i=n[o];i.isInGroup(e)&&r.push(i)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function wP(t){if(t.eat("(")){let e=lb(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=yP(t,t.next).map(n=>(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++,e.length==1?e[0]:{type:"choice",exprs:e}}}function CP(t){let e=[[]];return r(o(t,0),n()),e;function n(){return e.push([])-1}function A(i,a,l){let u={term:l,to:a};return e[i].push(u),u}function r(i,a){i.forEach(l=>l.to=a)}function o(i,a){if(i.type=="choice")return i.exprs.reduce((l,u)=>l.concat(o(u,a)),[]);if(i.type=="seq")for(let l=0;;l++){let u=o(i.exprs[l],a);if(l==i.exprs.length-1)return u;r(u,a=n())}else if(i.type=="star"){let l=n();return A(a,l),r(o(i.expr,l),l),[A(l)]}else if(i.type=="plus"){let l=n();return r(o(i.expr,a),l),r(o(i.expr,l),l),[A(l)]}else{if(i.type=="opt")return[A(a)].concat(o(i.expr,a));if(i.type=="range"){let l=a;for(let u=0;u<i.min;u++){let f=n();r(o(i.expr,l),f),l=f}if(i.max==-1)r(o(i.expr,l),l);else for(let u=i.min;u<i.max;u++){let f=n();A(l,f),r(o(i.expr,l),f),l=f}return[A(l)]}else{if(i.type=="name")return[A(a,void 0,i.value)];throw new Error("Unknown expr type")}}}}function ub(t,e){return e-t}function db(t,e){let n=[];return A(e),n.sort(ub);function A(r){let o=t[r];if(o.length==1&&!o[0].term)return A(o[0].to);n.push(r);for(let i=0;i<o.length;i++){let{term:a,to:l}=o[i];!a&&n.indexOf(l)==-1&&A(l)}}}function bP(t){let e=Object.create(null);return n(db(t,0));function n(A){let r=[];A.forEach(i=>{t[i].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);db(t,l).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let o=e[A.join(",")]=new as(A.indexOf(t.length-1)>-1);for(let i=0;i<r.length;i++){let a=r[i][1].sort(ub);o.next.push({type:r[i][0],next:e[a.join(",")]||n(a)})}return o}}function vP(t,e){for(let n=0,A=[t];n<A.length;n++){let r=A[n],o=!r.validEnd,i=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];i.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),A.indexOf(u)==-1&&A.push(u)}o&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function fb(t){let e=Object.create(null);for(let n in t){let A=t[n];if(!A.hasDefault)return null;e[n]=A.default}return e}function hb(t,e){let n=Object.create(null);for(let A in t){let r=e&&e[A];if(r===void 0){let o=t[A];if(o.hasDefault)r=o.default;else throw new RangeError("No value supplied for attribute "+A)}n[A]=r}return n}function pb(t,e,n,A){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let o=t[r];o.validate&&o.validate(e[r])}}function mb(t,e){let n=Object.create(null);if(e)for(let A in e)n[A]=new kP(t,A,e[A]);return n}let gb=class wT{constructor(e,n,A){this.name=e,this.schema=n,this.spec=A,this.markSet=null,this.groups=A.group?A.group.split(" "):[],this.attrs=mb(e,A.attrs),this.defaultAttrs=fb(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(A.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==as.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:hb(this.attrs,e)}create(e=null,n,A){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ii(this,this.computeAttrs(e),Qe.from(n),Ht.setFrom(A))}createChecked(e=null,n,A){return n=Qe.from(n),this.checkContent(n),new ii(this,this.computeAttrs(e),n,Ht.setFrom(A))}createAndFill(e=null,n,A){if(e=this.computeAttrs(e),n=Qe.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let r=this.contentMatch.matchFragment(n),o=r&&r.fillBefore(Qe.empty,!0);return o?new ii(this,e,n.append(o),Ht.setFrom(A)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let A=0;A<e.childCount;A++)if(!this.allowsMarks(e.child(A).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){pb(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let A=0;A<e.length;A++)this.allowsMarkType(e[A].type)?n&&n.push(e[A]):n||(n=e.slice(0,A));return n?n.length?n:Ht.none:e}static compile(e,n){let A=Object.create(null);e.forEach((o,i)=>A[o]=new wT(o,n,i));let r=n.spec.topNode||"doc";if(!A[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!A.text)throw new RangeError("Every schema needs a 'text' type");for(let o in A.text.attrs)throw new RangeError("The text node type should not have attributes");return A}};function EP(t,e,n){let A=n.split("|");return r=>{let o=r===null?"null":typeof r;if(A.indexOf(o)<0)throw new RangeError(`Expected value of type ${A} for attribute ${e} on type ${t}, got ${o}`)}}class kP{constructor(e,n,A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default,this.validate=typeof A.validate=="string"?EP(e,n,A.validate):A.validate}get isRequired(){return!this.hasDefault}}class Eu{constructor(e,n,A,r){this.name=e,this.rank=n,this.schema=A,this.spec=r,this.attrs=mb(e,r.attrs),this.excluded=null;let o=fb(this.attrs);this.instance=o?new Ht(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Ht(this,hb(this.attrs,e))}static compile(e,n){let A=Object.create(null),r=0;return e.forEach((o,i)=>A[o]=new Eu(o,r++,n,i)),A}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){pb(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Bb{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=zn.from(e.nodes),n.marks=zn.from(e.marks||{}),this.nodes=gb.compile(this.spec.nodes,this),this.marks=Eu.compile(this.spec.marks,this);let A=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],i=o.spec.content||"",a=o.spec.marks;if(o.contentMatch=A[i]||(A[i]=as.parse(i,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=a=="_"?null:a?yb(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let r in this.marks){let o=this.marks[r],i=o.spec.excludes;o.excluded=i==null?[o]:i==""?[]:yb(this,i.split(" "))}this.nodeFromJSON=r=>ii.fromJSON(this,r),this.markFromJSON=r=>Ht.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,A,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof gb){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(n,A,r)}text(e,n){let A=this.nodes.text;return new vu(A,A.defaultAttrs,e,Ht.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function yb(t,e){let n=[];for(let A=0;A<e.length;A++){let r=e[A],o=t.marks[r],i=o;if(o)n.push(o);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(i=l)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[A]+"'")}return n}function SP(t){return t.tag!=null}function FP(t){return t.style!=null}class si{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let A=this.matchedStyles=[];n.forEach(r=>{if(SP(r))this.tags.push(r);else if(FP(r)){let o=/[^=]*/.exec(r.style)[0];A.indexOf(o)<0&&A.push(o),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let A=new vb(this,n,!1);return A.addAll(e,Ht.none,n.from,n.to),A.finish()}parseSlice(e,n={}){let A=new vb(this,n,!0);return A.addAll(e,Ht.none,n.from,n.to),Ne.maxOpen(A.finish())}matchTag(e,n,A){for(let r=A?this.tags.indexOf(A)+1:0;r<this.tags.length;r++){let o=this.tags[r];if(UP(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let i=o.getAttrs(e);if(i===!1)continue;o.attrs=i||void 0}return o}}}matchStyle(e,n,A,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let i=this.styles[o],a=i.style;if(!(a.indexOf(e)!=0||i.context&&!A.matchesContext(i.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(i.getAttrs){let l=i.getAttrs(n);if(l===!1)continue;i.attrs=l||void 0}return i}}}static schemaRules(e){let n=[];function A(r){let o=r.priority==null?50:r.priority,i=0;for(;i<n.length;i++){let a=n[i];if((a.priority==null?50:a.priority)<o)break}n.splice(i,0,r)}for(let r in e.marks){let o=e.marks[r].spec.parseDOM;o&&o.forEach(i=>{A(i=Eb(i)),i.mark||i.ignore||i.clearMark||(i.mark=r)})}for(let r in e.nodes){let o=e.nodes[r].spec.parseDOM;o&&o.forEach(i=>{A(i=Eb(i)),i.node||i.ignore||i.mark||(i.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new si(e,si.schemaRules(e)))}}const wb={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},QP={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Cb={ol:!0,ul:!0},Fl=1,Xp=2,Ql=4;function bb(t,e,n){return e!=null?(e?Fl:0)|(e==="full"?Xp:0):t&&t.whitespace=="pre"?Fl|Xp:n&~Ql}class ku{constructor(e,n,A,r,o,i){this.type=e,this.attrs=n,this.marks=A,this.solid=r,this.options=i,this.content=[],this.activeMarks=Ht.none,this.match=o||(i&Ql?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Qe.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let A=this.type.contentMatch,r;return(r=A.findWrapping(e.type))?(this.match=A,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Fl)){let A=this.content[this.content.length-1],r;if(A&&A.isText&&(r=/[ \t\r\n\u000c]+$/.exec(A.text))){let o=A;A.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let n=Qe.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Qe.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!wb.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class vb{constructor(e,n,A){this.parser=e,this.options=n,this.isOpen=A,this.open=0,this.localPreserveWS=!1;let r=n.topNode,o,i=bb(null,n.preserveWhitespace,0)|(A?Ql:0);r?o=new ku(r.type,r.attrs,Ht.none,!0,n.topMatch||r.type.contentMatch,i):A?o=new ku(null,null,Ht.none,!0,null,i):o=new ku(e.schema.topNodeType,null,Ht.none,!0,null,i),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let A=e.nodeValue,r=this.top,o=r.options&Xp?"full":this.localPreserveWS||(r.options&Fl)>0;if(o==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(o)o!=="full"?A=A.replace(/\r?\n|\r/g," "):A=A.replace(/\r\n?/g,`
27
+ `);else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],a=e.previousSibling;(!i||a&&a.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A),n,!/\S/.test(A)),this.findInText(e)}else this.findInside(e)}addElement(e,n,A){let r=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i=e.nodeName.toLowerCase(),a;Cb.hasOwnProperty(i)&&this.parser.normalizeLists&&xP(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,A));e:if(l?l.ignore:QP.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,f=this.needsBlock;if(wb.hasOwnProperty(i))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),u=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let h=l&&l.skip?n:this.readStyles(e,n);h&&this.addAll(e,h),u&&this.sync(o),this.needsBlock=f}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
28
+ `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let A=e.style;if(A&&A.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let o=this.parser.matchedStyles[r],i=A.getPropertyValue(o);if(i)for(let a=void 0;;){let l=this.parser.matchStyle(o,i,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,A,r){let o,i;if(n.node)if(i=this.parser.schema.nodes[n.node],i.isLeaf)this.insertNode(i.create(n.attrs),A,e.nodeName=="BR")||this.leafFallback(e,A);else{let l=this.enter(i,n.attrs||null,A,n.preserveWhitespace);l&&(o=!0,A=l)}else{let l=this.parser.schema.marks[n.mark];A=A.concat(l.create(n.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,A,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,A,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,A),this.findAround(e,l,!1)}o&&this.sync(a)&&this.open--}addAll(e,n,A,r){let o=A||0;for(let i=A?e.childNodes[A]:e.firstChild,a=r==null?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,n);this.findAtPoint(e,o)}findPlace(e,n,A){let r,o;for(let i=this.open,a=0;i>=0;i--){let l=this.nodes[i],u=l.findWrapping(e);if(u&&(!r||r.length>u.length+a)&&(r=u,o=l,!u.length))break;if(l.solid){if(A)break;a+=2}}if(!r)return null;this.sync(o);for(let i=0;i<r.length;i++)n=this.enterInner(r[i],null,n,!1);return n}insertNode(e,n,A){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let r=this.findPlace(e,n,A);if(r){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let i=Ht.none;for(let a of r.concat(e.marks))(o.type?o.type.allowsMarkType(a.type):kb(a.type,e.type))&&(i=a.addToSet(i));return o.content.push(e.mark(i)),!0}return!1}enter(e,n,A,r){let o=this.findPlace(e.create(n),A,!1);return o&&(o=this.enterInner(e,n,A,!0,r)),o}enterInner(e,n,A,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let a=bb(e,o,i.options);i.options&Ql&&i.content.length==0&&(a|=Ql);let l=Ht.none;return A=A.filter(u=>(i.type?i.type.allowsMarkType(u.type):kb(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new ku(e,n,l,r,null,a)),this.open++,A}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Fl)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let A=this.nodes[n].content;for(let r=A.length-1;r>=0;r--)e+=A[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&this.find[A].offset==n&&(this.find[A].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,A){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(A?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),A=this.options.context,r=!this.isOpen&&(!A||A.parent.type==this.nodes[0].type),o=-(A?A.depth+1:0)+(r?0:1),i=(a,l)=>{for(;a>=0;a--){let u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(i(a-1,l))return!0;return!1}else{let f=l>0||l==0&&r?this.nodes[l].type:A&&l>=o?A.node(l-o).type:null;if(!f||f.name!=u&&!f.isInGroup(u))return!1;l--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let A=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(A&&A.isTextblock&&A.defaultAttrs)return A}for(let n in this.parser.schema.nodes){let A=this.parser.schema.nodes[n];if(A.isTextblock&&A.defaultAttrs)return A}}}function xP(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let A=e.nodeType==1?e.nodeName.toLowerCase():null;A&&Cb.hasOwnProperty(A)&&n?(n.appendChild(e),e=n):A=="li"?n=e:A&&(n=null)}}function UP(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Eb(t){let e={};for(let n in t)e[n]=t[n];return e}function kb(t,e){let n=e.schema.nodes;for(let A in n){let r=n[A];if(!r.allowsMarkType(t))continue;let o=[],i=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:u,next:f}=a.edge(l);if(u==e||o.indexOf(f)<0&&i(f))return!0}};if(i(r.contentMatch))return!0}}class ls{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},A){A||(A=Zp(n).createDocumentFragment());let r=A,o=[];return e.forEach(i=>{if(o.length||i.marks.length){let a=0,l=0;for(;a<o.length&&l<i.marks.length;){let u=i.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(o[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)r=o.pop()[1];for(;l<i.marks.length;){let u=i.marks[l++],f=this.serializeMark(u,i.isInline,n);f&&(o.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(i,n))}),A}serializeNodeInner(e,n){let{dom:A,contentDOM:r}=Su(Zp(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return A}serializeNode(e,n={}){let A=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(A),A=o.dom)}return A}serializeMark(e,n,A={}){let r=this.marks[e.type.name];return r&&Su(Zp(A),r(e,n),null,e.attrs)}static renderSpec(e,n,A=null,r){return Su(e,n,A,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ls(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Sb(e.nodes);return n.text||(n.text=A=>A.text),n}static marksFromSchema(e){return Sb(e.marks)}}function Sb(t){let e={};for(let n in t){let A=t[n].spec.toDOM;A&&(e[n]=A)}return e}function Zp(t){return t.document||window.document}const Fb=new WeakMap;function IP(t){let e=Fb.get(t);return e===void 0&&Fb.set(t,e=_P(t)),e}function _P(t){let e=null;function n(A){if(A&&typeof A=="object")if(Array.isArray(A))if(typeof A[0]=="string")e||(e=[]),e.push(A);else for(let r=0;r<A.length;r++)n(A[r]);else for(let r in A)n(A[r])}return n(t),e}function Su(t,e,n,A){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],o;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(A&&(o=IP(A))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),u=e[1],f=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){f=2;for(let h in u)if(u[h]!=null){let p=h.indexOf(" ");p>0?l.setAttributeNS(h.slice(0,p),h.slice(p+1),u[h]):h=="style"&&l.style?l.style.cssText=u[h]:l.setAttribute(h,u[h])}}for(let h=f;h<e.length;h++){let p=e[h];if(p===0){if(h<e.length-1||h>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:g,contentDOM:B}=Su(t,p,n,A);if(l.appendChild(g),B){if(a)throw new RangeError("Multiple content holes");a=B}}}return{dom:l,contentDOM:a}}const Qb=65535,xb=Math.pow(2,16);function TP(t,e){return t+e*xb}function Ub(t){return t&Qb}function DP(t){return(t-(t&Qb))/xb}const Ib=1,_b=2,Fu=4,Tb=8;class em{constructor(e,n,A){this.pos=e,this.delInfo=n,this.recover=A}get deleted(){return(this.delInfo&Tb)>0}get deletedBefore(){return(this.delInfo&(Ib|Fu))>0}get deletedAfter(){return(this.delInfo&(_b|Fu))>0}get deletedAcross(){return(this.delInfo&Fu)>0}}class NA{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&NA.empty)return NA.empty}recover(e){let n=0,A=Ub(e);if(!this.inverted)for(let r=0;r<A;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[A*3]+n+DP(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,A){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[a+o],f=this.ranges[a+i],h=l+u;if(e<=h){let p=u?e==l?-1:e==h?1:n:n,g=l+r+(p<0?0:f);if(A)return g;let B=e==(n<0?l:h)?null:TP(a/3,e-l),y=e==l?_b:e==h?Ib:Fu;return(n<0?e!=l:e!=h)&&(y|=Tb),new em(g,y,B)}r+=f-u}return A?e+r:new em(e+r,0,null)}touches(e,n){let A=0,r=Ub(n),o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?A:0);if(l>e)break;let u=this.ranges[a+o],f=l+u;if(e<=f&&a==r*3)return!0;A+=this.ranges[a+i]-u}return!1}forEach(e){let n=this.inverted?2:1,A=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),l=i+(this.inverted?0:o),u=this.ranges[r+n],f=this.ranges[r+A];e(a,a+u,l,l+f),o+=f-u}}invert(){return new NA(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?NA.empty:new NA(e<0?[0,-e,0]:[0,0,e])}}NA.empty=new NA([]);class xl{constructor(e,n,A=0,r=e?e.length:0){this.mirror=n,this.from=A,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new xl(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,A=this._maps.length;n<e._maps.length;n++){let r=e.getMirror(n);this.appendMap(e._maps[n],r!=null&&r<n?A+r:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,A=this._maps.length+e._maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e._maps[n].invert(),r!=null&&r>n?A-r-1:void 0)}}invert(){let e=new xl;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let A=this.from;A<this.to;A++)e=this._maps[A].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,A){let r=0;for(let o=this.from;o<this.to;o++){let i=this._maps[o],a=i.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return A?e:new em(e,r,null)}}const tm=Object.create(null);class tA{getMap(){return NA.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let A=tm[n.stepType];if(!A)throw new RangeError(`No step type ${n.stepType} defined`);return A.fromJSON(e,n)}static jsonID(e,n){if(e in tm)throw new RangeError("Duplicate use of step JSON ID "+e);return tm[e]=n,n.prototype.jsonID=e,n}}class En{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new En(e,null)}static fail(e){return new En(null,e)}static fromReplace(e,n,A,r){try{return En.ok(e.replace(n,A,r))}catch(o){if(o instanceof wu)return En.fail(o.message);throw o}}}function nm(t,e,n){let A=[];for(let r=0;r<t.childCount;r++){let o=t.child(r);o.content.size&&(o=o.copy(nm(o.content,e,o))),o.isInline&&(o=e(o,n,r)),A.push(o)}return Qe.fromArray(A)}class ai extends tA{constructor(e,n,A){super(),this.from=e,this.to=n,this.mark=A}apply(e){let n=e.slice(this.from,this.to),A=e.resolve(this.from),r=A.node(A.sharedDepth(this.to)),o=new Ne(nm(n.content,(i,a)=>!i.isAtom||!a.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),r),n.openStart,n.openEnd);return En.fromReplace(e,this.from,this.to,o)}invert(){return new xr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1);return n.deleted&&A.deleted||n.pos>=A.pos?null:new ai(n.pos,A.pos,this.mark)}merge(e){return e instanceof ai&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ai(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ai(n.from,n.to,e.markFromJSON(n.mark))}}tA.jsonID("addMark",ai);class xr extends tA{constructor(e,n,A){super(),this.from=e,this.to=n,this.mark=A}apply(e){let n=e.slice(this.from,this.to),A=new Ne(nm(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return En.fromReplace(e,this.from,this.to,A)}invert(){return new ai(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1);return n.deleted&&A.deleted||n.pos>=A.pos?null:new xr(n.pos,A.pos,this.mark)}merge(e){return e instanceof xr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new xr(n.from,n.to,e.markFromJSON(n.mark))}}tA.jsonID("removeMark",xr);class li extends tA{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return En.fail("No node at mark step's position");let A=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return En.fromReplace(e,this.pos,this.pos+1,new Ne(Qe.from(A),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let A=this.mark.addToSet(n.marks);if(A.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(A))return new li(this.pos,n.marks[r]);return new li(this.pos,this.mark)}}return new cs(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new li(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new li(n.pos,e.markFromJSON(n.mark))}}tA.jsonID("addNodeMark",li);class cs extends tA{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return En.fail("No node at mark step's position");let A=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return En.fromReplace(e,this.pos,this.pos+1,new Ne(Qe.from(A),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new li(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new cs(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new cs(n.pos,e.markFromJSON(n.mark))}}tA.jsonID("removeNodeMark",cs);class Ln extends tA{constructor(e,n,A,r=!1){super(),this.from=e,this.to=n,this.slice=A,this.structure=r}apply(e){return this.structure&&Am(e,this.from,this.to)?En.fail("Structure replace would overwrite content"):En.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new NA([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ln(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1);return n.deletedAcross&&A.deletedAcross?null:new Ln(n.pos,Math.max(n.pos,A.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Ln)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?Ne.empty:new Ne(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ln(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?Ne.empty:new Ne(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ln(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ln(n.from,n.to,Ne.fromJSON(e,n.slice),!!n.structure)}}tA.jsonID("replace",Ln);class Nn extends tA{constructor(e,n,A,r,o,i,a=!1){super(),this.from=e,this.to=n,this.gapFrom=A,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Am(e,this.from,this.gapFrom)||Am(e,this.gapTo,this.to)))return En.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return En.fail("Gap is not a flat range");let A=this.slice.insertAt(this.insert,n.content);return A?En.fromReplace(e,this.from,this.to,A):En.fail("Content does not fit in gap")}getMap(){return new NA([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Nn(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),A=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?A.pos:e.map(this.gapTo,1);return n.deletedAcross&&A.deletedAcross||r<n.pos||o>A.pos?null:new Nn(n.pos,A.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Nn(n.from,n.to,n.gapFrom,n.gapTo,Ne.fromJSON(e,n.slice),n.insert,!!n.structure)}}tA.jsonID("replaceAround",Nn);function Am(t,e,n){let A=t.resolve(e),r=n-e,o=A.depth;for(;r>0&&o>0&&A.indexAfter(o)==A.node(o).childCount;)o--,r--;if(r>0){let i=A.node(o).maybeChild(A.indexAfter(o));for(;r>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,r--}}return!1}function MP(t,e,n,A){let r=[],o=[],i,a;t.doc.nodesBetween(e,n,(l,u,f)=>{if(!l.isInline)return;let h=l.marks;if(!A.isInSet(h)&&f.type.allowsMarkType(A.type)){let p=Math.max(u,e),g=Math.min(u+l.nodeSize,n),B=A.addToSet(h);for(let y=0;y<h.length;y++)h[y].isInSet(B)||(i&&i.to==p&&i.mark.eq(h[y])?i.to=g:r.push(i=new xr(p,g,h[y])));a&&a.to==p?a.to=g:o.push(a=new ai(p,g,A))}}),r.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}function OP(t,e,n,A){let r=[],o=0;t.doc.nodesBetween(e,n,(i,a)=>{if(!i.isInline)return;o++;let l=null;if(A instanceof Eu){let u=i.marks,f;for(;f=A.isInSet(u);)(l||(l=[])).push(f),u=f.removeFromSet(u)}else A?A.isInSet(i.marks)&&(l=[A]):l=i.marks;if(l&&l.length){let u=Math.min(a+i.nodeSize,n);for(let f=0;f<l.length;f++){let h=l[f],p;for(let g=0;g<r.length;g++){let B=r[g];B.step==o-1&&h.eq(r[g].style)&&(p=B)}p?(p.to=u,p.step=o):r.push({style:h,from:Math.max(a,e),to:u,step:o})}}}),r.forEach(i=>t.step(new xr(i.from,i.to,i.style)))}function rm(t,e,n,A=n.contentMatch,r=!0){let o=t.doc.nodeAt(e),i=[],a=e+1;for(let l=0;l<o.childCount;l++){let u=o.child(l),f=a+u.nodeSize,h=A.matchType(u.type);if(!h)i.push(new Ln(a,f,Ne.empty));else{A=h;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||t.step(new xr(a,f,u.marks[p]));if(r&&u.isText&&n.whitespace!="pre"){let p,g=/\r?\n|\r/g,B;for(;p=g.exec(u.text);)B||(B=new Ne(Qe.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),i.push(new Ln(a+p.index,a+p.index+p[0].length,B))}}a=f}if(!A.validEnd){let l=A.fillBefore(Qe.empty,!0);t.replace(a,a,new Ne(l,0,0))}for(let l=i.length-1;l>=0;l--)t.step(i[l])}function LP(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function aa(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let A=t.depth;;--A){let r=t.$from.node(A),o=t.$from.index(A),i=t.$to.indexAfter(A);if(A<t.depth&&r.canReplace(o,i,n))return A;if(A==0||r.type.spec.isolating||!LP(r,o,i))break}return null}function NP(t,e,n){let{$from:A,$to:r,depth:o}=e,i=A.before(o+1),a=r.after(o+1),l=i,u=a,f=Qe.empty,h=0;for(let B=o,y=!1;B>n;B--)y||A.index(B)>0?(y=!0,f=Qe.from(A.node(B).copy(f)),h++):l--;let p=Qe.empty,g=0;for(let B=o,y=!1;B>n;B--)y||r.after(B+1)<r.end(B)?(y=!0,p=Qe.from(r.node(B).copy(p)),g++):u++;t.step(new Nn(l,u,i,a,new Ne(f.append(p),h,g),f.size-h,!0))}function om(t,e,n=null,A=t){let r=HP(t,e),o=r&&PP(A,e);return o?r.map(Db).concat({type:e,attrs:n}).concat(o.map(Db)):null}function Db(t){return{type:t,attrs:null}}function HP(t,e){let{parent:n,startIndex:A,endIndex:r}=t,o=n.contentMatchAt(A).findWrapping(e);if(!o)return null;let i=o.length?o[0]:e;return n.canReplaceWith(A,r,i)?o:null}function PP(t,e){let{parent:n,startIndex:A,endIndex:r}=t,o=n.child(A),i=e.contentMatch.findWrapping(o.type);if(!i)return null;let l=(i.length?i[i.length-1]:e).contentMatch;for(let u=A;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:i}function RP(t,e,n){let A=Qe.empty;for(let i=n.length-1;i>=0;i--){if(A.size){let a=n[i].type.contentMatch.matchFragment(A);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}A=Qe.from(n[i].type.create(n[i].attrs,A))}let r=e.start,o=e.end;t.step(new Nn(r,o,r,o,new Ne(A,0,0),n.length,!0))}function VP(t,e,n,A,r){if(!A.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(i,a)=>{let l=typeof r=="function"?r(i):r;if(i.isTextblock&&!i.hasMarkup(A,l)&&$P(t.doc,t.mapping.slice(o).map(a),A)){let u=null;if(A.schema.linebreakReplacement){let g=A.whitespace=="pre",B=!!A.contentMatch.matchType(A.schema.linebreakReplacement);g&&!B?u=!1:!g&&B&&(u=!0)}u===!1&&Ob(t,i,a,o),rm(t,t.mapping.slice(o).map(a,1),A,void 0,u===null);let f=t.mapping.slice(o),h=f.map(a,1),p=f.map(a+i.nodeSize,1);return t.step(new Nn(h,p,h+1,p-1,new Ne(Qe.from(A.create(l,null,i.marks)),0,0),1,!0)),u===!0&&Mb(t,i,a,o),!1}})}function Mb(t,e,n,A){e.forEach((r,o)=>{if(r.isText){let i,a=/\r?\n|\r/g;for(;i=a.exec(r.text);){let l=t.mapping.slice(A).map(n+1+o+i.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Ob(t,e,n,A){e.forEach((r,o)=>{if(r.type==r.type.schema.linebreakReplacement){let i=t.mapping.slice(A).map(n+1+o);t.replaceWith(i,i+1,e.type.schema.text(`
29
+ `))}})}function $P(t,e,n){let A=t.resolve(e),r=A.index();return A.parent.canReplaceWith(r,r+1,n)}function KP(t,e,n,A,r){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let i=n.create(A,null,r||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,i);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Nn(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new Ne(Qe.from(i),0,0),1,!0))}function So(t,e,n=1,A){let r=t.resolve(e),o=r.depth-n,i=A&&A[A.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!i.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,f=n-2;u>o;u--,f--){let h=r.node(u),p=r.index(u);if(h.type.spec.isolating)return!1;let g=h.content.cutByIndex(p,h.childCount),B=A&&A[f+1];B&&(g=g.replaceChild(0,B.type.create(B.attrs)));let y=A&&A[f]||h;if(!h.canReplace(p+1,h.childCount)||!y.type.validContent(g))return!1}let a=r.indexAfter(o),l=A&&A[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function zP(t,e,n=1,A){let r=t.doc.resolve(e),o=Qe.empty,i=Qe.empty;for(let a=r.depth,l=r.depth-n,u=n-1;a>l;a--,u--){o=Qe.from(r.node(a).copy(o));let f=A&&A[u];i=Qe.from(f?f.type.create(f.attrs,i):r.node(a).copy(i))}t.step(new Ln(e,e,new Ne(o.append(i),n,n),!0))}function ci(t,e){let n=t.resolve(e),A=n.index();return Lb(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(A,A+1)}function WP(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:A}=t.type.schema;for(let r=0;r<e.childCount;r++){let o=e.child(r),i=o.type==A?t.type.schema.nodes.text:o.type;if(n=n.matchType(i),!n||!t.type.allowsMarks(o.marks))return!1}return n.validEnd}function Lb(t,e){return!!(t&&e&&!t.isLeaf&&WP(t,e))}function Qu(t,e,n=-1){let A=t.resolve(e);for(let r=A.depth;;r--){let o,i,a=A.index(r);if(r==A.depth?(o=A.nodeBefore,i=A.nodeAfter):n>0?(o=A.node(r+1),a++,i=A.node(r).maybeChild(a)):(o=A.node(r).maybeChild(a-1),i=A.node(r+1)),o&&!o.isTextblock&&Lb(o,i)&&A.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?A.before(r):A.after(r)}}function GP(t,e,n){let A=null,{linebreakReplacement:r}=t.doc.type.schema,o=t.doc.resolve(e-n),i=o.node().type;if(r&&i.inlineContent){let f=i.whitespace=="pre",h=!!i.contentMatch.matchType(r);f&&!h?A=!1:!f&&h&&(A=!0)}let a=t.steps.length;if(A===!1){let f=t.doc.resolve(e+n);Ob(t,f.node(),f.before(),a)}i.inlineContent&&rm(t,e+n-1,i,o.node().contentMatchAt(o.index()),A==null);let l=t.mapping.slice(a),u=l.map(e-n);if(t.step(new Ln(u,l.map(e+n,-1),Ne.empty,!0)),A===!0){let f=t.doc.resolve(u);Mb(t,f.node(),f.before(),t.steps.length)}return t}function YP(t,e,n){let A=t.resolve(e);if(A.parent.canReplaceWith(A.index(),A.index(),n))return e;if(A.parentOffset==0)for(let r=A.depth-1;r>=0;r--){let o=A.index(r);if(A.node(r).canReplaceWith(o,o,n))return A.before(r+1);if(o>0)return null}if(A.parentOffset==A.parent.content.size)for(let r=A.depth-1;r>=0;r--){let o=A.indexAfter(r);if(A.node(r).canReplaceWith(o,o,n))return A.after(r+1);if(o<A.node(r).childCount)return null}return null}function Nb(t,e,n){let A=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let o=0;o<n.openStart;o++)r=r.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let i=A.depth;i>=0;i--){let a=i==A.depth?0:A.pos<=(A.start(i+1)+A.end(i+1))/2?-1:1,l=A.index(i)+(a>0?1:0),u=A.node(i),f=!1;if(o==1)f=u.canReplace(l,l,r);else{let h=u.contentMatchAt(l).findWrapping(r.firstChild.type);f=h&&u.canReplaceWith(l,l,h[0])}if(f)return a==0?A.pos:a<0?A.before(i+1):A.after(i+1)}return null}function xu(t,e,n=e,A=Ne.empty){if(e==n&&!A.size)return null;let r=t.resolve(e),o=t.resolve(n);return Hb(r,o,A)?new Ln(e,n,A):new jP(r,o,A).fit()}function Hb(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class jP{constructor(e,n,A){this.$from=e,this.$to=n,this.unplaced=A,this.frontier=[],this.placed=Qe.empty;for(let r=0;r<=e.depth;r++){let o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Qe.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,A=this.$from,r=this.close(e<0?this.$to:A.doc.resolve(e));if(!r)return null;let o=this.placed,i=A.depth,a=r.depth;for(;i&&a&&o.childCount==1;)o=o.firstChild.content,i--,a--;let l=new Ne(o,i,a);return e>-1?new Nn(A.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||A.pos!=this.$to.pos?new Ln(A.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,A=0,r=this.unplaced.openEnd;A<e;A++){let o=n.firstChild;if(n.childCount>1&&(r=0),o.type.spec.isolating&&r<=A){e=A;break}n=o.content}for(let n=1;n<=2;n++)for(let A=n==1?e:this.unplaced.openStart;A>=0;A--){let r,o=null;A?(o=im(this.unplaced.content,A-1).firstChild,r=o.content):r=this.unplaced.content;let i=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:u}=this.frontier[a],f,h=null;if(n==1&&(i?u.matchType(i.type)||(h=u.fillBefore(Qe.from(i),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:A,frontierDepth:a,parent:o,inject:h};if(n==2&&i&&(f=u.findWrapping(i.type)))return{sliceDepth:A,frontierDepth:a,parent:o,wrap:f};if(o&&u.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:A}=this.unplaced,r=im(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Ne(e,n+1,Math.max(A,r.size+n>=e.size-A?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:A}=this.unplaced,r=im(e,n);if(r.childCount<=1&&n>0){let o=e.size-n<=n+r.size;this.unplaced=new Ne(Ul(e,n-1,1),n-1,o?n-1:A)}else this.unplaced=new Ne(Ul(e,n,1),n,A)}placeNodes({sliceDepth:e,frontierDepth:n,parent:A,inject:r,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let y=0;y<o.length;y++)this.openFrontierNode(o[y]);let i=this.unplaced,a=A?A.content:i.content,l=i.openStart-e,u=0,f=[],{match:h,type:p}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)f.push(r.child(y));h=h.matchFragment(r)}let g=a.size+e-(i.content.size-i.openEnd);for(;u<a.childCount;){let y=a.child(u),C=h.matchType(y.type);if(!C)break;u++,(u>1||l==0||y.content.size)&&(h=C,f.push(Pb(y.mark(p.allowedMarks(y.marks)),u==1?l:0,u==a.childCount?g:-1)))}let B=u==a.childCount;B||(g=-1),this.placed=Il(this.placed,n,Qe.from(f)),this.frontier[n].match=h,B&&g<0&&A&&A.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,C=a;y<g;y++){let w=C.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),C=w.content}this.unplaced=B?e==0?Ne.empty:new Ne(Ul(i.content,e-1,1),e-1,g<0?i.openEnd:e-1):new Ne(Ul(i.content,e,u),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!sm(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:A}=this.$to,r=this.$to.after(A);for(;A>1&&r==this.$to.end(--A);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:A,type:r}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),i=sm(e,n,r,A,o);if(i){for(let a=n-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],f=sm(e,a,u,l,!0);if(!f||f.childCount)continue e}return{depth:n,fit:i,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Il(this.placed,n.depth,n.fit)),e=n.move;for(let A=n.depth+1;A<=e.depth;A++){let r=e.node(A),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(A));this.openFrontierNode(r.type,r.attrs,o)}return e}openFrontierNode(e,n=null,A){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Il(this.placed,this.depth,Qe.from(e.create(n,A))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Qe.empty,!0);n.childCount&&(this.placed=Il(this.placed,this.frontier.length,n))}}function Ul(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ul(t.firstChild.content,e-1,n)))}function Il(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Il(t.lastChild.content,e-1,n)))}function im(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Pb(t,e,n){if(e<=0)return t;let A=t.content;return e>1&&(A=A.replaceChild(0,Pb(A.firstChild,e-1,A.childCount==1?n-1:0))),e>0&&(A=t.type.contentMatch.fillBefore(A).append(A),n<=0&&(A=A.append(t.type.contentMatch.matchFragment(A).fillBefore(Qe.empty,!0)))),t.copy(A)}function sm(t,e,n,A,r){let o=t.node(e),i=r?t.indexAfter(e):t.index(e);if(i==o.childCount&&!n.compatibleContent(o.type))return null;let a=A.fillBefore(o.content,!0,i);return a&&!qP(n,o.content,i)?a:null}function qP(t,e,n){for(let A=n;A<e.childCount;A++)if(!t.allowsMarks(e.child(A).marks))return!0;return!1}function JP(t){return t.spec.defining||t.spec.definingForContent}function XP(t,e,n,A){if(!A.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),o=t.doc.resolve(n);if(Hb(r,o,A))return t.step(new Ln(e,n,A));let i=Vb(r,t.doc.resolve(n));i[i.length-1]==0&&i.pop();let a=-(r.depth+1);i.unshift(a);for(let p=r.depth,g=r.pos-1;p>0;p--,g--){let B=r.node(p).type.spec;if(B.defining||B.definingAsContext||B.isolating)break;i.indexOf(p)>-1?a=p:r.before(p)==g&&i.splice(1,0,-p)}let l=i.indexOf(a),u=[],f=A.openStart;for(let p=A.content,g=0;;g++){let B=p.firstChild;if(u.push(B),g==A.openStart)break;p=B.content}for(let p=f-1;p>=0;p--){let g=u[p],B=JP(g.type);if(B&&!g.sameMarkup(r.node(Math.abs(a)-1)))f=p;else if(B||!g.type.isTextblock)break}for(let p=A.openStart;p>=0;p--){let g=(p+f+1)%(A.openStart+1),B=u[g];if(B)for(let y=0;y<i.length;y++){let C=i[(y+l)%i.length],w=!0;C<0&&(w=!1,C=-C);let F=r.node(C-1),_=r.index(C-1);if(F.canReplaceWith(_,_,B.type,B.marks))return t.replace(r.before(C),w?o.after(C):n,new Ne(Rb(A.content,0,A.openStart,g),g,A.openEnd))}}let h=t.steps.length;for(let p=i.length-1;p>=0&&(t.replace(e,n,A),!(t.steps.length>h));p--){let g=i[p];g<0||(e=r.before(g),n=o.after(g))}}function Rb(t,e,n,A,r){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(Rb(o.content,e+1,n,A,o)))}if(e>A){let o=r.contentMatchAt(0),i=o.fillBefore(t).append(t);t=i.append(o.matchFragment(i).fillBefore(Qe.empty,!0))}return t}function ZP(t,e,n,A){if(!A.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=YP(t.doc,e,A.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new Ne(Qe.from(A),0,0))}function eR(t,e,n){let A=t.doc.resolve(e),r=t.doc.resolve(n),o=Vb(A,r);for(let i=0;i<o.length;i++){let a=o[i],l=i==o.length-1;if(l&&a==0||A.node(a).type.contentMatch.validEnd)return t.delete(A.start(a),r.end(a));if(a>0&&(l||A.node(a-1).canReplace(A.index(a-1),r.indexAfter(a-1))))return t.delete(A.before(a),r.after(a))}for(let i=1;i<=A.depth&&i<=r.depth;i++)if(e-A.start(i)==A.depth-i&&n>A.end(i)&&r.end(i)-n!=r.depth-i&&A.start(i-1)==r.start(i-1)&&A.node(i-1).canReplace(A.index(i-1),r.index(i-1)))return t.delete(A.before(i),n);t.delete(e,n)}function Vb(t,e){let n=[],A=Math.min(t.depth,e.depth);for(let r=A;r>=0;r--){let o=t.start(r);if(o<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(o==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==o-1)&&n.push(r)}return n}class la extends tA{constructor(e,n,A){super(),this.pos=e,this.attr=n,this.value=A}apply(e){let n=e.nodeAt(this.pos);if(!n)return En.fail("No node at attribute step's position");let A=Object.create(null);for(let o in n.attrs)A[o]=n.attrs[o];A[this.attr]=this.value;let r=n.type.create(A,null,n.marks);return En.fromReplace(e,this.pos,this.pos+1,new Ne(Qe.from(r),0,n.isLeaf?0:1))}getMap(){return NA.empty}invert(e){return new la(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new la(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new la(n.pos,n.attr,n.value)}}tA.jsonID("attr",la);class _l extends tA{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let A=e.type.create(n,e.content,e.marks);return En.ok(A)}getMap(){return NA.empty}invert(e){return new _l(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new _l(n.attr,n.value)}}tA.jsonID("docAttr",_l);let ca=class extends Error{};ca=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ca.prototype=Object.create(Error.prototype),ca.prototype.constructor=ca,ca.prototype.name="TransformError";class $b{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new xl}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ca(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,A=Ne.empty){let r=xu(this.doc,e,n,A);return r&&this.step(r),this}replaceWith(e,n,A){return this.replace(e,n,new Ne(Qe.from(A),0,0))}delete(e,n){return this.replace(e,n,Ne.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,A){return XP(this,e,n,A),this}replaceRangeWith(e,n,A){return ZP(this,e,n,A),this}deleteRange(e,n){return eR(this,e,n),this}lift(e,n){return NP(this,e,n),this}join(e,n=1){return GP(this,e,n),this}wrap(e,n){return RP(this,e,n),this}setBlockType(e,n=e,A,r=null){return VP(this,e,n,A,r),this}setNodeMarkup(e,n,A=null,r){return KP(this,e,n,A,r),this}setNodeAttribute(e,n,A){return this.step(new la(e,n,A)),this}setDocAttribute(e,n){return this.step(new _l(e,n)),this}addNodeMark(e,n){return this.step(new li(e,n)),this}removeNodeMark(e,n){let A=this.doc.nodeAt(e);if(!A)throw new RangeError("No node at position "+e);if(n instanceof Ht)n.isInSet(A.marks)&&this.step(new cs(e,n));else{let r=A.marks,o,i=[];for(;o=n.isInSet(r);)i.push(new cs(e,o)),r=o.removeFromSet(r);for(let a=i.length-1;a>=0;a--)this.step(i[a])}return this}split(e,n=1,A){return zP(this,e,n,A),this}addMark(e,n,A){return MP(this,e,n,A),this}removeMark(e,n,A){return OP(this,e,n,A),this}clearIncompatible(e,n,A){return rm(this,e,n,A),this}}const am=Object.create(null);class it{constructor(e,n,A){this.$anchor=e,this.$head=n,this.ranges=A||[new tR(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=Ne.empty){let A=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=A,A=A.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:l,$to:u}=i[a],f=e.mapping.slice(o);e.replaceRange(f.map(l.pos),f.map(u.pos),a?Ne.empty:n),a==0&&Wb(e,o,(A?A.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let A=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],l=e.mapping.slice(A),u=l.map(i.pos),f=l.map(a.pos);o?e.deleteRange(u,f):(e.replaceRangeWith(u,f,n),Wb(e,A,n.isInline?-1:1))}}static findFrom(e,n,A=!1){let r=e.parent.inlineContent?new nt(e):ua(e.node(0),e.parent,e.pos,e.index(),n,A);if(r)return r;for(let o=e.depth-1;o>=0;o--){let i=n<0?ua(e.node(0),e.node(o),e.before(o+1),e.index(o),n,A):ua(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,A);if(i)return i}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new HA(e.node(0))}static atStart(e){return ua(e,e,0,0,1)||new HA(e)}static atEnd(e){return ua(e,e,e.content.size,e.childCount,-1)||new HA(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let A=am[n.type];if(!A)throw new RangeError(`No selection type ${n.type} defined`);return A.fromJSON(e,n)}static jsonID(e,n){if(e in am)throw new RangeError("Duplicate use of selection JSON ID "+e);return am[e]=n,n.prototype.jsonID=e,n}getBookmark(){return nt.between(this.$anchor,this.$head).getBookmark()}}it.prototype.visible=!0;class tR{constructor(e,n){this.$from=e,this.$to=n}}let Kb=!1;function zb(t){!Kb&&!t.parent.inlineContent&&(Kb=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class nt extends it{constructor(e,n=e){zb(e),zb(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let A=e.resolve(n.map(this.head));if(!A.parent.inlineContent)return it.near(A);let r=e.resolve(n.map(this.anchor));return new nt(r.parent.inlineContent?r:A,A)}replace(e,n=Ne.empty){if(super.replace(e,n),n==Ne.empty){let A=this.$from.marksAcross(this.$to);A&&e.ensureMarks(A)}}eq(e){return e instanceof nt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Uu(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new nt(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,A=n){let r=e.resolve(n);return new this(r,A==n?r:e.resolve(A))}static between(e,n,A){let r=e.pos-n.pos;if((!A||r)&&(A=r>=0?1:-1),!n.parent.inlineContent){let o=it.findFrom(n,A,!0)||it.findFrom(n,-A,!0);if(o)n=o.$head;else return it.near(n,A)}return e.parent.inlineContent||(r==0?e=n:(e=(it.findFrom(e,-A,!0)||it.findFrom(e,A,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new nt(e,n)}}it.jsonID("text",nt);class Uu{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Uu(e.map(this.anchor),e.map(this.head))}resolve(e){return nt.between(e.resolve(this.anchor),e.resolve(this.head))}}class We extends it{constructor(e){let n=e.nodeAfter,A=e.node(0).resolve(e.pos+n.nodeSize);super(e,A),this.node=n}map(e,n){let{deleted:A,pos:r}=n.mapResult(this.anchor),o=e.resolve(r);return A?it.near(o):new We(o)}content(){return new Ne(Qe.from(this.node),0,0)}eq(e){return e instanceof We&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new lm(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new We(e.resolve(n.anchor))}static create(e,n){return new We(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}We.prototype.visible=!1,it.jsonID("node",We);class lm{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:A}=e.mapResult(this.anchor);return n?new Uu(A,A):new lm(A)}resolve(e){let n=e.resolve(this.anchor),A=n.nodeAfter;return A&&We.isSelectable(A)?new We(n):it.near(n)}}class HA extends it{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=Ne.empty){if(n==Ne.empty){e.delete(0,e.doc.content.size);let A=it.atStart(e.doc);A.eq(e.selection)||e.setSelection(A)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new HA(e)}map(e){return new HA(e)}eq(e){return e instanceof HA}getBookmark(){return nR}}it.jsonID("all",HA);const nR={map(){return this},resolve(t){return new HA(t)}};function ua(t,e,n,A,r,o=!1){if(e.inlineContent)return nt.create(t,n);for(let i=A-(r>0?0:1);r>0?i<e.childCount:i>=0;i+=r){let a=e.child(i);if(a.isAtom){if(!o&&We.isSelectable(a))return We.create(t,n-(r<0?a.nodeSize:0))}else{let l=ua(t,a,n+r,r<0?a.childCount:0,r,o);if(l)return l}n+=a.nodeSize*r}return null}function Wb(t,e,n){let A=t.steps.length-1;if(A<e)return;let r=t.steps[A];if(!(r instanceof Ln||r instanceof Nn))return;let o=t.mapping.maps[A],i;o.forEach((a,l,u,f)=>{i==null&&(i=f)}),t.setSelection(it.near(t.doc.resolve(i),n))}const Gb=1,Iu=2,Yb=4;class AR extends $b{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){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}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Gb)&~Iu,this.storedMarks=null,this}get selectionSet(){return(this.updated&Gb)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Iu,this}ensureMarks(e){return Ht.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Iu)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Iu,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let A=this.selection;return n&&(e=e.mark(this.storedMarks||(A.empty?A.$from.marks():A.$from.marksAcross(A.$to)||Ht.none))),A.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,A){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(A==null&&(A=n),A=A??n,!e)return this.deleteRange(n,A);let o=this.storedMarks;if(!o){let i=this.doc.resolve(n);o=A==n?i.marks():i.marksAcross(this.doc.resolve(A))}return this.replaceRangeWith(n,A,r.text(e,o)),this.selection.empty||this.setSelection(it.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Yb,this}get scrolledIntoView(){return(this.updated&Yb)>0}}function jb(t,e){return!e||!t?t:t.bind(e)}class Tl{constructor(e,n,A){this.name=e,this.init=jb(n.init,A),this.apply=jb(n.apply,A)}}const rR=[new Tl("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Tl("selection",{init(t,e){return t.selection||it.atStart(e.doc)},apply(t){return t.selection}}),new Tl("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,A){return A.selection.$cursor?t.storedMarks:null}}),new Tl("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class cm{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=rR.slice(),n&&n.forEach(A=>{if(this.pluginsByKey[A.key])throw new RangeError("Adding different instances of a keyed plugin ("+A.key+")");this.plugins.push(A),this.pluginsByKey[A.key]=A,A.spec.state&&this.fields.push(new Tl(A.key,A.spec.state,A))})}}class da{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let A=0;A<this.config.plugins.length;A++)if(A!=n){let r=this.config.plugins[A];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],A=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let l=r?r[i].n:0,u=r?r[i].state:this,f=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,u,A);if(f&&A.filterTransaction(f,i)){if(f.setMeta("appendedTransaction",e),!r){r=[];for(let h=0;h<this.config.plugins.length;h++)r.push(h<i?{state:A,n:n.length}:{state:this,n:0})}n.push(f),A=A.applyInner(f),o=!0}r&&(r[i]={state:A,n:n.length})}}if(!o)return{state:A,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new da(this.config),A=this.config.fields;for(let r=0;r<A.length;r++){let o=A[r];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new AR(this)}static create(e){let n=new cm(e.doc?e.doc.type.schema:e.schema,e.plugins),A=new da(n);for(let r=0;r<n.fields.length;r++)A[n.fields[r].name]=n.fields[r].init(e,A);return A}reconfigure(e){let n=new cm(this.schema,e.plugins),A=n.fields,r=new da(n);for(let o=0;o<A.length;o++){let i=A[o].name;r[i]=this.hasOwnProperty(i)?this[i]:A[o].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(A=>A.toJSON())),e&&typeof e=="object")for(let A in e){if(A=="doc"||A=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[A],o=r.spec.state;o&&o.toJSON&&(n[A]=o.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,A){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new cm(e.schema,e.plugins),o=new da(r);return r.fields.forEach(i=>{if(i.name=="doc")o.doc=ii.fromJSON(e.schema,n.doc);else if(i.name=="selection")o.selection=it.fromJSON(o.doc,n.selection);else if(i.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(A)for(let a in A){let l=A[a],u=l.spec.state;if(l.key==i.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[i.name]=u.fromJSON.call(l,e,n[a],o);return}}o[i.name]=i.init(e,o)}}),o}}function qb(t,e,n){for(let A in t){let r=t[A];r instanceof Function?r=r.bind(e):A=="handleDOMEvents"&&(r=qb(r,e,{})),n[A]=r}return n}class sn{constructor(e){this.spec=e,this.props={},e.props&&qb(e.props,this,this.props),this.key=e.key?e.key.key:Jb("plugin")}getState(e){return e[this.key]}}const um=Object.create(null);function Jb(t){return t in um?t+"$"+ ++um[t]:(um[t]=0,t+"$")}class Hn{constructor(e="key"){this.key=Jb(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Wn=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},fa=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let dm=null;const Fo=function(t,e,n){let A=dm||(dm=document.createRange());return A.setEnd(t,n??t.nodeValue.length),A.setStart(t,e||0),A},oR=function(){dm=null},us=function(t,e,n,A){return n&&(Xb(t,e,n,A,-1)||Xb(t,e,n,A,1))},iR=/^(img|br|input|textarea|hr)$/i;function Xb(t,e,n,A,r){for(var o;;){if(t==n&&e==A)return!0;if(e==(r<0?0:nr(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Dl(t)||iR.test(t.nodeName)||t.contentEditable=="false")return!1;e=Wn(t)+(r<0?0:1),t=i}else if(t.nodeType==1){let i=t.childNodes[e+(r<0?-1:0)];if(i.nodeType==1&&i.contentEditable=="false")if(!((o=i.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)e+=r;else return!1;else t=i,e=r<0?nr(t):0}else return!1}}function nr(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function sR(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=nr(t)}else if(t.parentNode&&!Dl(t))e=Wn(t),t=t.parentNode;else return null}}function aR(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Dl(t))e=Wn(t)+1,t=t.parentNode;else return null}}function lR(t,e,n){for(let A=e==0,r=e==nr(t);A||r;){if(t==n)return!0;let o=Wn(t);if(t=t.parentNode,!t)return!1;A=A&&o==0,r=r&&o==nr(t)}}function Dl(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const _u=function(t){return t.focusNode&&us(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function ds(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function cR(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function uR(t,e,n){if(t.caretPositionFromPoint)try{let A=t.caretPositionFromPoint(e,n);if(A)return{node:A.offsetNode,offset:Math.min(nr(A.offsetNode),A.offset)}}catch{}if(t.caretRangeFromPoint){let A=t.caretRangeFromPoint(e,n);if(A)return{node:A.startContainer,offset:Math.min(nr(A.startContainer),A.startOffset)}}}const Xr=typeof navigator<"u"?navigator:null,Zb=typeof document<"u"?document:null,ui=Xr&&Xr.userAgent||"",fm=/Edge\/(\d+)/.exec(ui),e1=/MSIE \d/.exec(ui),hm=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ui),SA=!!(e1||hm||fm),di=e1?document.documentMode:hm?+hm[1]:fm?+fm[1]:0,Ur=!SA&&/gecko\/(\d+)/i.test(ui);Ur&&+(/Firefox\/(\d+)/.exec(ui)||[0,0])[1];const pm=!SA&&/Chrome\/(\d+)/.exec(ui),nA=!!pm,t1=pm?+pm[1]:0,uA=!SA&&!!Xr&&/Apple Computer/.test(Xr.vendor),ha=uA&&(/Mobile\/\w+/.test(ui)||!!Xr&&Xr.maxTouchPoints>2),Ar=ha||(Xr?/Mac/.test(Xr.platform):!1),dR=Xr?/Win/.test(Xr.platform):!1,Qo=/Android \d/.test(ui),Ml=!!Zb&&"webkitFontSmoothing"in Zb.documentElement.style,fR=Ml?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function hR(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function xo(t,e){return typeof t=="number"?t:t[e]}function pR(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,A=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*A}}function n1(t,e,n){let A=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let i=n||t.dom;i;){if(i.nodeType!=1){i=fa(i);continue}let a=i,l=a==o.body,u=l?hR(o):pR(a),f=0,h=0;if(e.top<u.top+xo(A,"top")?h=-(u.top-e.top+xo(r,"top")):e.bottom>u.bottom-xo(A,"bottom")&&(h=e.bottom-e.top>u.bottom-u.top?e.top+xo(r,"top")-u.top:e.bottom-u.bottom+xo(r,"bottom")),e.left<u.left+xo(A,"left")?f=-(u.left-e.left+xo(r,"left")):e.right>u.right-xo(A,"right")&&(f=e.right-u.right+xo(r,"right")),f||h)if(l)o.defaultView.scrollBy(f,h);else{let g=a.scrollLeft,B=a.scrollTop;h&&(a.scrollTop+=h),f&&(a.scrollLeft+=f);let y=a.scrollLeft-g,C=a.scrollTop-B;e={left:e.left-y,top:e.top-C,right:e.right-y,bottom:e.bottom-C}}let p=l?"fixed":getComputedStyle(i).position;if(/^(fixed|sticky)$/.test(p))break;i=p=="absolute"?i.offsetParent:fa(i)}}function mR(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),A,r;for(let o=(e.left+e.right)/2,i=n+1;i<Math.min(innerHeight,e.bottom);i+=5){let a=t.root.elementFromPoint(o,i);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){A=a,r=l.top;break}}return{refDOM:A,refTop:r,stack:A1(t.dom)}}function A1(t){let e=[],n=t.ownerDocument;for(let A=t;A&&(e.push({dom:A,top:A.scrollTop,left:A.scrollLeft}),t!=n);A=fa(A));return e}function gR({refDOM:t,refTop:e,stack:n}){let A=t?t.getBoundingClientRect().top:0;r1(n,A==0?0:A-e)}function r1(t,e){for(let n=0;n<t.length;n++){let{dom:A,top:r,left:o}=t[n];A.scrollTop!=r+e&&(A.scrollTop=r+e),A.scrollLeft!=o&&(A.scrollLeft=o)}}let pa=null;function BR(t){if(t.setActive)return t.setActive();if(pa)return t.focus(pa);let e=A1(t);t.focus(pa==null?{get preventScroll(){return pa={preventScroll:!0},!0}}:void 0),pa||(pa=!1,r1(e,0))}function o1(t,e){let n,A=2e8,r,o=0,i=e.top,a=e.top,l,u;for(let f=t.firstChild,h=0;f;f=f.nextSibling,h++){let p;if(f.nodeType==1)p=f.getClientRects();else if(f.nodeType==3)p=Fo(f).getClientRects();else continue;for(let g=0;g<p.length;g++){let B=p[g];if(B.top<=i&&B.bottom>=a){i=Math.max(B.bottom,i),a=Math.min(B.top,a);let y=B.left>e.left?B.left-e.left:B.right<e.left?e.left-B.right:0;if(y<A){n=f,A=y,r=y&&n.nodeType==3?{left:B.right<e.left?B.right:B.left,top:e.top}:e,f.nodeType==1&&y&&(o=h+(e.left>=(B.left+B.right)/2?1:0));continue}}else B.top>e.top&&!l&&B.left<=e.left&&B.right>=e.left&&(l=f,u={left:Math.max(B.left,Math.min(B.right,e.left)),top:B.top});!n&&(e.left>=B.right&&e.top>=B.top||e.left>=B.left&&e.top>=B.bottom)&&(o=h+1)}}return!n&&l&&(n=l,r=u,A=0),n&&n.nodeType==3?yR(n,r):!n||A&&n.nodeType==1?{node:t,offset:o}:o1(n,r)}function yR(t,e){let n=t.nodeValue.length,A=document.createRange();for(let r=0;r<n;r++){A.setEnd(t,r+1),A.setStart(t,r);let o=fi(A,1);if(o.top!=o.bottom&&mm(e,o))return{node:t,offset:r+(e.left>=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function mm(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function wR(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function CR(t,e,n){let{node:A,offset:r}=o1(e,n),o=-1;if(A.nodeType==1&&!A.firstChild){let i=A.getBoundingClientRect();o=i.left!=i.right&&n.left>(i.left+i.right)/2?1:-1}return t.docView.posFromDOM(A,r,o)}function bR(t,e,n,A){let r=-1;for(let o=e,i=!1;o!=t.dom;){let a=t.docView.nearestDesc(o,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!i&&l.left>A.left||l.top>A.top?r=a.posBefore:(!i&&l.right<A.left||l.bottom<A.top)&&(r=a.posAfter),i=!0),!a.contentDOM&&r<0&&!a.node.isText))return(a.node.isBlock?A.top<(l.top+l.bottom)/2:A.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;o=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function i1(t,e,n){let A=t.childNodes.length;if(A&&n.top<n.bottom)for(let r=Math.max(0,Math.min(A-1,Math.floor(A*(e.top-n.top)/(n.bottom-n.top))-2)),o=r;;){let i=t.childNodes[o];if(i.nodeType==1){let a=i.getClientRects();for(let l=0;l<a.length;l++){let u=a[l];if(mm(e,u))return i1(i,e,u)}}if((o=(o+1)%A)==r)break}return t}function vR(t,e){let n=t.dom.ownerDocument,A,r=0,o=uR(n,e.left,e.top);o&&({node:A,offset:r}=o);let i=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!i||!t.dom.contains(i.nodeType!=1?i.parentNode:i)){let u=t.dom.getBoundingClientRect();if(!mm(e,u)||(i=i1(t.dom,e,u),!i))return null}if(uA)for(let u=i;A&&u;u=fa(u))u.draggable&&(A=void 0);if(i=wR(i,e),A){if(Ur&&A.nodeType==1&&(r=Math.min(r,A.childNodes.length),r<A.childNodes.length)){let f=A.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&r++}let u;Ml&&r&&A.nodeType==1&&(u=A.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&r--,A==t.dom&&r==A.childNodes.length-1&&A.lastChild.nodeType==1&&e.top>A.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||A.nodeType!=1||A.childNodes[r-1].nodeName!="BR")&&(a=bR(t,A,r,e))}a==null&&(a=CR(t,i,e));let l=t.docView.nearestDesc(i,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function s1(t){return t.top<t.bottom||t.left<t.right}function fi(t,e){let n=t.getClientRects();if(n.length){let A=n[e<0?0:n.length-1];if(s1(A))return A}return Array.prototype.find.call(n,s1)||t.getBoundingClientRect()}const ER=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function a1(t,e,n){let{node:A,offset:r,atom:o}=t.docView.domFromPos(e,n<0?-1:1),i=Ml||Ur;if(A.nodeType==3)if(i&&(ER.test(A.nodeValue)||(n<0?!r:r==A.nodeValue.length))){let l=fi(Fo(A,r,r),n);if(Ur&&r&&/\s/.test(A.nodeValue[r-1])&&r<A.nodeValue.length){let u=fi(Fo(A,r-1,r-1),-1);if(u.top==l.top){let f=fi(Fo(A,r,r+1),-1);if(f.top!=l.top)return Ol(f,f.left<u.left)}}return l}else{let l=r,u=r,f=n<0?1:-1;return n<0&&!r?(u++,f=-1):n>=0&&r==A.nodeValue.length?(l--,f=1):n<0?l--:u++,Ol(fi(Fo(A,l,u),f),f<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&r&&(n<0||r==nr(A))){let l=A.childNodes[r-1];if(l.nodeType==1)return gm(l.getBoundingClientRect(),!1)}if(o==null&&r<nr(A)){let l=A.childNodes[r];if(l.nodeType==1)return gm(l.getBoundingClientRect(),!0)}return gm(A.getBoundingClientRect(),n>=0)}if(o==null&&r&&(n<0||r==nr(A))){let l=A.childNodes[r-1],u=l.nodeType==3?Fo(l,nr(l)-(i?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Ol(fi(u,1),!1)}if(o==null&&r<nr(A)){let l=A.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Fo(l,0,i?0:1):l.nodeType==1?l:null:null;if(u)return Ol(fi(u,-1),!0)}return Ol(fi(A.nodeType==3?Fo(A):A,-n),n>=0)}function Ol(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function gm(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function l1(t,e,n){let A=t.state,r=t.root.activeElement;A!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{A!=e&&t.updateState(A),r!=t.dom&&r&&r.focus()}}function kR(t,e,n){let A=e.selection,r=n=="up"?A.$from:A.$to;return l1(t,e,()=>{let{node:o}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let i=a1(t,r.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Fo(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let f=l[u];if(f.bottom>f.top+1&&(n=="up"?i.top-f.top>(f.bottom-i.top)*2:f.bottom-i.bottom>(i.bottom-f.top)*2))return!1}}return!0})}const SR=/[\u0590-\u08ac]/;function FR(t,e,n){let{$head:A}=e.selection;if(!A.parent.isTextblock)return!1;let r=A.parentOffset,o=!r,i=r==A.parent.content.size,a=t.domSelection();return a?!SR.test(A.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:i:l1(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:f,anchorOffset:h}=t.domSelectionRange(),p=a.caretBidiLevel;a.modify("move",n,"character");let g=A.depth?t.docView.domAfterPos(A.before()):t.dom,{focusNode:B,focusOffset:y}=t.domSelectionRange(),C=B&&!g.contains(B.nodeType==1?B:B.parentNode)||l==B&&u==y;try{a.collapse(f,h),l&&(l!=f||u!=h)&&a.extend&&a.extend(l,u)}catch{}return p!=null&&(a.caretBidiLevel=p),C}):A.pos==A.start()||A.pos==A.end()}let c1=null,u1=null,d1=!1;function QR(t,e,n){return c1==e&&u1==n?d1:(c1=e,u1=n,d1=n=="up"||n=="down"?kR(t,e,n):FR(t,e,n))}const rr=0,f1=1,fs=2,Zr=3;class Ll{constructor(e,n,A,r){this.parent=e,this.children=n,this.dom=A,this.contentDOM=r,this.dirty=rr,A.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,A){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,A=this.posAtStart;;n++){let r=this.children[n];if(r==e)return A;A+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,A){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(A<0){let o,i;if(e==this.contentDOM)o=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((i=o.pmViewDesc)&&i.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(i)+i.size:this.posAtStart}else{let o,i;if(e==this.contentDOM)o=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((i=o.pmViewDesc)&&i.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(i):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>Wn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??A>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let A=!0,r=e;r;r=r.parentNode){let o=this.getDesc(r),i;if(o&&(!n||o.node))if(A&&(i=o.nodeDOM)&&!(i.nodeType==1?i.contains(e.nodeType==1?e:e.parentNode):i==e))A=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let A=n;A;A=A.parent)if(A==this)return n}posFromDOM(e,n,A){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,n,A)}return-1}descAt(e){for(let n=0,A=0;n<this.children.length;n++){let r=this.children[n],o=A+r.size;if(A==e&&o!=A){for(;!r.border&&r.children.length;)for(let i=0;i<r.children.length;i++){let a=r.children[i];if(a.size){r=a;break}}return r}if(e<o)return r.descAt(e-A-r.border);A=o}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let A=0,r=0;for(let o=0;A<this.children.length;A++){let i=this.children[A],a=o+i.size;if(a>e||i instanceof m1){r=e-o;break}o=a}if(r)return this.children[A].domFromPos(r-this.children[A].border,n);for(let o;A&&!(o=this.children[A-1]).size&&o instanceof h1&&o.side>=0;A--);if(n<=0){let o,i=!0;for(;o=A?this.children[A-1]:null,!(!o||o.dom.parentNode==this.contentDOM);A--,i=!1);return o&&n&&i&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Wn(o.dom)+1:0}}else{let o,i=!0;for(;o=A<this.children.length?this.children[A]:null,!(!o||o.dom.parentNode==this.contentDOM);A++,i=!1);return o&&i&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?Wn(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,A=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=A,a=0;;a++){let l=this.children[a],u=i+l.size;if(r==-1&&e<=u){let f=i+l.border;if(e>=f&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,f);e=i;for(let h=a;h>0;h--){let p=this.children[h-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){r=Wn(p.dom)+1;break}e-=p.size}r==-1&&(r=0)}if(r>-1&&(u>n||a==this.children.length-1)){n=u;for(let f=a+1;f<this.children.length;f++){let h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){o=Wn(h.dom);break}n+=h.size}o==-1&&(o=this.contentDOM.childNodes.length);break}i=u}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:A}=this.domFromPos(e,0);if(n.nodeType!=1||A==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[A]}setSelection(e,n,A,r=!1){let o=Math.min(e,n),i=Math.max(e,n);for(let g=0,B=0;g<this.children.length;g++){let y=this.children[g],C=B+y.size;if(o>B&&i<C)return y.setSelection(e-B-y.border,n-B-y.border,A,r);B=C}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),u=A.root.getSelection(),f=A.domSelectionRange(),h=!1;if((Ur||uA)&&e==n){let{node:g,offset:B}=a;if(g.nodeType==3){if(h=!!(B&&g.nodeValue[B-1]==`
30
+ `),h&&B==g.nodeValue.length)for(let y=g,C;y;y=y.parentNode){if(C=y.nextSibling){C.nodeName=="BR"&&(a=l={node:C.parentNode,offset:Wn(C)+1});break}let w=y.pmViewDesc;if(w&&w.node&&w.node.isBlock)break}}else{let y=g.childNodes[B-1];h=y&&(y.nodeName=="BR"||y.contentEditable=="false")}}if(Ur&&f.focusNode&&f.focusNode!=l.node&&f.focusNode.nodeType==1){let g=f.focusNode.childNodes[f.focusOffset];g&&g.contentEditable=="false"&&(r=!0)}if(!(r||h&&uA)&&us(a.node,a.offset,f.anchorNode,f.anchorOffset)&&us(l.node,l.offset,f.focusNode,f.focusOffset))return;let p=!1;if((u.extend||e==n)&&!h){u.collapse(a.node,a.offset);try{e!=n&&u.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let B=a;a=l,l=B}let g=document.createRange();g.setEnd(l.node,l.offset),g.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(g)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let A=0,r=0;r<this.children.length;r++){let o=this.children[r],i=A+o.size;if(A==i?e<=i&&n>=A:e<i&&n>A){let a=A+o.border,l=i-o.border;if(e>=a&&n<=l){this.dirty=e==A||n==i?fs:f1,e==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Zr:o.markDirty(e-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?fs:Zr}A=i}this.dirty=fs}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let A=e==1?fs:f1;n.dirty<A&&(n.dirty=A)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class h1 extends Ll{constructor(e,n,A,r){let o,i=n.type.toDOM;if(typeof i=="function"&&(i=i(A,()=>{if(!o)return r;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(i.nodeType!=1){let a=document.createElement("span");a.appendChild(i),i=a}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==rr&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class xR extends Ll{constructor(e,n,A,r){super(e,[],n,null),this.textDOM=A,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class hs extends Ll{constructor(e,n,A,r,o){super(e,[],A,r),this.mark=n,this.spec=o}static create(e,n,A,r){let o=r.nodeViews[n.type.name],i=o&&o(n,r,A);return(!i||!i.dom)&&(i=ls.renderSpec(document,n.type.spec.toDOM(n,A),null,n.attrs)),new hs(e,n,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&Zr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Zr&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=rr){let A=this.parent;for(;!A.node;)A=A.parent;A.dirty<this.dirty&&(A.dirty=this.dirty),this.dirty=rr}}slice(e,n,A){let r=hs.create(this.parent,this.mark,!0,A),o=this.children,i=this.size;n<i&&(o=ym(o,n,i,A)),e>0&&(o=ym(o,0,e,A));for(let a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class hi extends Ll{constructor(e,n,A,r,o,i,a,l,u){super(e,[],o,i),this.node=n,this.outerDeco=A,this.innerDeco=r,this.nodeDOM=a}static create(e,n,A,r,o,i){let a=o.nodeViews[n.type.name],l,u=a&&a(n,o,()=>{if(!l)return i;if(l.parent)return l.parent.posBeforeChild(l)},A,r),f=u&&u.dom,h=u&&u.contentDOM;if(n.isText){if(!f)f=document.createTextNode(n.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:h}=ls.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!h&&!n.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),n.type.spec.draggable&&(f.draggable=!0));let p=f;return f=y1(f,A,n),u?l=new UR(e,n,A,r,f,h||null,p,u,o,i+1):n.isText?new Tu(e,n,A,r,f,p,o):new hi(e,n,A,r,f,h||null,p,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let A=this.children[n];if(this.dom.contains(A.dom.parentNode)){e.contentElement=A.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Qe.empty)}return e}matchesNode(e,n,A){return this.dirty==rr&&e.eq(this.node)&&Du(n,this.outerDeco)&&A.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let A=this.node.inlineContent,r=n,o=e.composing?this.localCompositionInfo(e,n):null,i=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new _R(this,i&&i.node,e);MR(this.node,this.innerDeco,(u,f,h)=>{u.spec.marks?l.syncToMarks(u.spec.marks,A,e):u.type.side>=0&&!h&&l.syncToMarks(f==this.node.childCount?Ht.none:this.node.child(f).marks,A,e),l.placeWidget(u,e,r)},(u,f,h,p)=>{l.syncToMarks(u.marks,A,e);let g;l.findNodeMatch(u,f,h,p)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(g=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(u,f,h,g,e)||l.updateNextNode(u,f,h,e,p,r)||l.addNode(u,f,h,e,r),r+=u.nodeSize}),l.syncToMarks([],A,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==fs)&&(i&&this.protectLocalComposition(e,i),g1(this.contentDOM,this.children,e),ha&&OR(this.dom))}localCompositionInfo(e,n){let{from:A,to:r}=e.state.selection;if(!(e.state.selection instanceof nt)||A<n||r>n+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let i=o.nodeValue,a=LR(this.node.content,i,A-n,r-n);return a<0?null:{node:o,pos:a,text:i}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:A,text:r}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new xR(this,o,n,r);e.input.compositionNodes.push(i),this.children=ym(this.children,A,A+r.length,e,i)}update(e,n,A,r){return this.dirty==Zr||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,A,r),!0)}updateInner(e,n,A,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=A,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=rr}updateOuterDeco(e){if(Du(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,A=this.dom;this.dom=B1(this.dom,this.nodeDOM,Bm(this.outerDeco,this.node,n),Bm(e,this.node,n)),this.dom!=A&&(A.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function p1(t,e,n,A,r){y1(A,e,t);let o=new hi(void 0,t,e,n,A,A,A,r,0);return o.contentDOM&&o.updateChildren(r,0),o}class Tu extends hi{constructor(e,n,A,r,o,i,a){super(e,n,A,r,o,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,A,r){return this.dirty==Zr||this.dirty!=rr&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=rr||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=rr,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,A){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,A)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,A){let r=this.node.cut(e,n),o=document.createTextNode(r.text);return new Tu(this.parent,r,this.outerDeco,this.innerDeco,o,o,A)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Zr)}get domAtom(){return!1}isText(e){return this.node.text==e}}class m1 extends Ll{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==rr&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class UR extends hi{constructor(e,n,A,r,o,i,a,l,u,f){super(e,n,A,r,o,i,a,u,f),this.spec=l}update(e,n,A,r){if(this.dirty==Zr)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,n,A);return o&&this.updateInner(e,n,A,r),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,A,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,A,r){this.spec.setSelection?this.spec.setSelection(e,n,A.root):super.setSelection(e,n,A,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function g1(t,e,n){let A=t.firstChild,r=!1;for(let o=0;o<e.length;o++){let i=e[o],a=i.dom;if(a.parentNode==t){for(;a!=A;)A=w1(A),r=!0;A=A.nextSibling}else r=!0,t.insertBefore(a,A);if(i instanceof hs){let l=A?A.previousSibling:t.lastChild;g1(i.contentDOM,i.children,n),A=l?l.nextSibling:t.firstChild}}for(;A;)A=w1(A),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Nl=function(t){t&&(this.nodeName=t)};Nl.prototype=Object.create(null);const ps=[new Nl];function Bm(t,e,n){if(t.length==0)return ps;let A=n?ps[0]:new Nl,r=[A];for(let o=0;o<t.length;o++){let i=t[o].type.attrs;if(i){i.nodeName&&r.push(A=new Nl(i.nodeName));for(let a in i){let l=i[a];l!=null&&(n&&r.length==1&&r.push(A=new Nl(e.isInline?"span":"div")),a=="class"?A.class=(A.class?A.class+" ":"")+l:a=="style"?A.style=(A.style?A.style+";":"")+l:a!="nodeName"&&(A[a]=l))}}}return r}function B1(t,e,n,A){if(n==ps&&A==ps)return e;let r=e;for(let o=0;o<A.length;o++){let i=A[o],a=n[o];if(o){let l;a&&a.nodeName==i.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==i.nodeName||(l=document.createElement(i.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=ps[0]),r=l}IR(r,a||ps[0],i)}return r}function IR(t,e,n){for(let A in e)A!="class"&&A!="style"&&A!="nodeName"&&!(A in n)&&t.removeAttribute(A);for(let A in n)A!="class"&&A!="style"&&A!="nodeName"&&n[A]!=e[A]&&t.setAttribute(A,n[A]);if(e.class!=n.class){let A=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<A.length;o++)r.indexOf(A[o])==-1&&t.classList.remove(A[o]);for(let o=0;o<r.length;o++)A.indexOf(r[o])==-1&&t.classList.add(r[o]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let A=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=A.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function y1(t,e,n){return B1(t,t,ps,Bm(e,n,t.nodeType!=1))}function Du(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function w1(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class _R{constructor(e,n,A){this.lock=n,this.view=A,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=TR(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let A=e;A<n;A++)this.top.children[A].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,A){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=rr,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let u=this.top.children[l];if(u.matchesMark(e[o])&&!this.isLocked(u.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=hs.create(this.top,e[o],n,A);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,A,r){let o=-1,i;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,n,A))o=this.top.children.indexOf(i,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let u=this.top.children[a];if(u.matchesNode(e,n,A)&&!this.preMatch.matched.has(u)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,n,A,r,o){let i=this.top.children[r];return i.dirty==Zr&&i.dom==i.contentDOM&&(i.dirty=fs),i.update(e,n,A,o)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let A=e.pmViewDesc;if(A){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==A)return r}return-1}e=n}}updateNextNode(e,n,A,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof hi){let u=this.preMatch.matched.get(l);if(u!=null&&u!=o)return!1;let f=l.dom,h,p=this.isLocked(f)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Zr&&Du(n,l.outerDeco));if(!p&&l.update(e,n,A,r))return this.destroyBetween(this.index,a),l.dom!=f&&(this.changed=!0),this.index++,!0;if(!p&&(h=this.recreateWrapper(l,e,n,A,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=fs,h.updateChildren(r,i+1),h.dirty=rr),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,A,r,o,i){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!Du(A,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=hi.create(this.top,n,A,r,o,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,A,r,o){let i=hi.create(this.top,e,n,A,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,n,A){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let o=new h1(this.top,e,n,A);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof hs;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Tu)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((uA||nA)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let A=document.createElement(e);e=="IMG"&&(A.className="ProseMirror-separator",A.alt=""),e=="BR"&&(A.className="ProseMirror-trailingBreak");let r=new m1(this.top,[],A,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function TR(t,e){let n=e,A=n.children.length,r=t.childCount,o=new Map,i=[];e:for(;r>0;){let a;for(;;)if(A){let u=n.children[A-1];if(u instanceof hs)n=u,A=u.children.length;else{a=u,A--;break}}else{if(n==e)break e;A=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,o.set(a,r),i.push(a)}}return{index:r,matched:o,matches:i.reverse()}}function DR(t,e){return t.type.side-e.type.side}function MR(t,e,n,A){let r=e.locals(t),o=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);A(f,r,e.forChild(o,f),u),o+=f.nodeSize}return}let i=0,a=[],l=null;for(let u=0;;){let f,h;for(;i<r.length&&r[i].to==o;){let C=r[i++];C.widget&&(f?(h||(h=[f])).push(C):f=C)}if(f)if(h){h.sort(DR);for(let C=0;C<h.length;C++)n(h[C],u,!!l)}else n(f,u,!!l);let p,g;if(l)g=-1,p=l,l=null;else if(u<t.childCount)g=u,p=t.child(u++);else break;for(let C=0;C<a.length;C++)a[C].to<=o&&a.splice(C--,1);for(;i<r.length&&r[i].from<=o&&r[i].to>o;)a.push(r[i++]);let B=o+p.nodeSize;if(p.isText){let C=B;i<r.length&&r[i].from<C&&(C=r[i].from);for(let w=0;w<a.length;w++)a[w].to<C&&(C=a[w].to);C<B&&(l=p.cut(C-o),p=p.cut(0,C-o),B=C,g=-1)}else for(;i<r.length&&r[i].to<B;)i++;let y=p.isInline&&!p.isLeaf?a.filter(C=>!C.inline):a.slice();A(p,y,e.forChild(o,p),g),o=B}}function OR(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function LR(t,e,n,A){for(let r=0,o=0;r<t.childCount&&o<=A;){let i=t.child(r++),a=o;if(o+=i.nodeSize,!i.isText)continue;let l=i.text;for(;r<t.childCount;){let u=t.child(r++);if(o+=u.nodeSize,!u.isText)break;l+=u.text}if(o>=n){if(o>=A&&l.slice(A-e.length-a,A-a)==e)return A-e.length;let u=a<A?l.lastIndexOf(e,A-a-1):-1;if(u>=0&&u+e.length+a>=n)return a+u;if(n==A&&l.length>=A+e.length-a&&l.slice(A-a,A-a+e.length)==e)return A}}return-1}function ym(t,e,n,A,r){let o=[];for(let i=0,a=0;i<t.length;i++){let l=t[i],u=a,f=a+=l.size;u>=n||f<=e?o.push(l):(u<e&&o.push(l.slice(0,e-u,A)),r&&(o.push(r),r=void 0),f>n&&o.push(l.slice(n-u,l.size,A)))}return o}function wm(t,e=null){let n=t.domSelectionRange(),A=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),o=r&&r.size==0,i=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(i<0)return null;let a=A.resolve(i),l,u;if(_u(n)){for(l=i;r&&!r.node;)r=r.parent;let h=r.node;if(r&&h.isAtom&&We.isSelectable(h)&&r.parent&&!(h.isInline&&lR(n.focusNode,n.focusOffset,r.dom))){let p=r.posBefore;u=new We(i==p?a:A.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let h=i,p=i;for(let g=0;g<n.rangeCount;g++){let B=n.getRangeAt(g);h=Math.min(h,t.docView.posFromDOM(B.startContainer,B.startOffset,1)),p=Math.max(p,t.docView.posFromDOM(B.endContainer,B.endOffset,-1))}if(h<0)return null;[l,i]=p==t.state.selection.anchor?[p,h]:[h,p],a=A.resolve(i)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let f=A.resolve(l);if(!u){let h=e=="pointer"||t.state.selection.head<a.pos&&!o?1:-1;u=bm(t,f,a,h)}return u}function C1(t){return t.editable?t.hasFocus():Q1(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Uo(t,e=!1){let n=t.state.selection;if(k1(t,n),!!C1(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&nA){let A=t.domSelectionRange(),r=t.domObserver.currentSelection;if(A.anchorNode&&r.anchorNode&&us(A.anchorNode,A.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)HR(t);else{let{anchor:A,head:r}=n,o,i;b1&&!(n instanceof nt)&&(n.$from.parent.inlineContent||(o=v1(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(i=v1(t,n.to))),t.docView.setSelection(A,r,t,e),b1&&(o&&E1(o),i&&E1(i)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&NR(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const b1=uA||nA&&t1<63;function v1(t,e){let{node:n,offset:A}=t.docView.domFromPos(e,0),r=A<n.childNodes.length?n.childNodes[A]:null,o=A?n.childNodes[A-1]:null;if(uA&&r&&r.contentEditable=="false")return Cm(r);if((!r||r.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(r)return Cm(r);if(o)return Cm(o)}}function Cm(t){return t.contentEditable="true",uA&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function E1(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function NR(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),A=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=A||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!C1(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function HR(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let A=t.cursorWrapper.dom,r=A.nodeName=="IMG";r?n.setStart(A.parentNode,Wn(A)+1):n.setStart(A,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&SA&&di<=11&&(A.disabled=!0,A.disabled=!1)}function k1(t,e){if(e instanceof We){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(S1(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else S1(t)}function S1(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function bm(t,e,n,A){return t.someProp("createSelectionBetween",r=>r(t,e,n))||nt.between(e,n,A)}function F1(t){return t.editable&&!t.hasFocus()?!1:Q1(t)}function Q1(t){let e=t.domSelectionRange();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 PR(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return us(e.node,e.offset,n.anchorNode,n.anchorOffset)}function vm(t,e){let{$anchor:n,$head:A}=t.selection,r=e>0?n.max(A):n.min(A),o=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return o&&it.findFrom(o,e)}function pi(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function x1(t,e,n){let A=t.state.selection;if(A instanceof nt)if(n.indexOf("s")>-1){let{$head:r}=A,o=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=t.state.doc.resolve(r.pos+o.nodeSize*(e<0?-1:1));return pi(t,new nt(A.$anchor,i))}else if(A.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=vm(t.state,e);return r&&r instanceof We?pi(t,r):!1}else if(!(Ar&&n.indexOf("m")>-1)){let r=A.$head,o=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,i;if(!o||o.isText)return!1;let a=e<0?r.pos-o.nodeSize:r.pos;return o.isAtom||(i=t.docView.descAt(a))&&!i.contentDOM?We.isSelectable(o)?pi(t,new We(e<0?t.state.doc.resolve(r.pos-o.nodeSize):r)):Ml?pi(t,new nt(t.state.doc.resolve(e<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(A instanceof We&&A.node.isInline)return pi(t,new nt(e>0?A.$to:A.$from));{let r=vm(t.state,e);return r?pi(t,r):!1}}}function Mu(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Hl(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ma(t,e){return e<0?RR(t):VR(t)}function RR(t){let e=t.domSelectionRange(),n=e.focusNode,A=e.focusOffset;if(!n)return;let r,o,i=!1;for(Ur&&n.nodeType==1&&A<Mu(n)&&Hl(n.childNodes[A],-1)&&(i=!0);;)if(A>0){if(n.nodeType!=1)break;{let a=n.childNodes[A-1];if(Hl(a,-1))r=n,o=--A;else if(a.nodeType==3)n=a,A=n.nodeValue.length;else break}}else{if(U1(n))break;{let a=n.previousSibling;for(;a&&Hl(a,-1);)r=n.parentNode,o=Wn(a),a=a.previousSibling;if(a)n=a,A=Mu(n);else{if(n=n.parentNode,n==t.dom)break;A=0}}}i?Em(t,n,A):r&&Em(t,r,o)}function VR(t){let e=t.domSelectionRange(),n=e.focusNode,A=e.focusOffset;if(!n)return;let r=Mu(n),o,i;for(;;)if(A<r){if(n.nodeType!=1)break;let a=n.childNodes[A];if(Hl(a,1))o=n,i=++A;else break}else{if(U1(n))break;{let a=n.nextSibling;for(;a&&Hl(a,1);)o=a.parentNode,i=Wn(a)+1,a=a.nextSibling;if(a)n=a,A=0,r=Mu(n);else{if(n=n.parentNode,n==t.dom)break;A=r=0}}}o&&Em(t,o,i)}function U1(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function $R(t,e){for(;t&&e==t.childNodes.length&&!Dl(t);)e=Wn(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function KR(t,e){for(;t&&!e&&!Dl(t);)e=Wn(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Em(t,e,n){if(e.nodeType!=3){let o,i;(i=$R(e,n))?(e=i,n=0):(o=KR(e,n))&&(e=o,n=o.nodeValue.length)}let A=t.domSelection();if(!A)return;if(_u(A)){let o=document.createRange();o.setEnd(e,n),o.setStart(e,n),A.removeAllRanges(),A.addRange(o)}else A.extend&&A.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Uo(t)},50)}function I1(t,e){let n=t.state.doc.resolve(e);if(!(nA||dR)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),i=(o.top+o.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(o.left-r.left)>1)return o.left<r.left?"ltr":"rtl"}if(e<n.end()){let o=t.coordsAtPos(e+1),i=(o.top+o.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(o.left-r.left)>1)return o.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function _1(t,e,n){let A=t.state.selection;if(A instanceof nt&&!A.empty||n.indexOf("s")>-1||Ar&&n.indexOf("m")>-1)return!1;let{$from:r,$to:o}=A;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let i=vm(t.state,e);if(i&&i instanceof We)return pi(t,i)}if(!r.parent.inlineContent){let i=e<0?r:o,a=A instanceof HA?it.near(i,e):it.findFrom(i,e);return a?pi(t,a):!1}return!1}function T1(t,e){if(!(t.state.selection instanceof nt))return!0;let{$head:n,$anchor:A,empty:r}=t.state.selection;if(!n.sameParent(A))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let i=t.state.tr;return e<0?i.delete(n.pos-o.nodeSize,n.pos):i.delete(n.pos,n.pos+o.nodeSize),t.dispatch(i),!0}return!1}function D1(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function zR(t){if(!uA||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let A=e.firstChild;D1(t,A,"true"),setTimeout(()=>D1(t,A,"false"),20)}return!1}function WR(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function GR(t,e){let n=e.keyCode,A=WR(e);if(n==8||Ar&&n==72&&A=="c")return T1(t,-1)||ma(t,-1);if(n==46&&!e.shiftKey||Ar&&n==68&&A=="c")return T1(t,1)||ma(t,1);if(n==13||n==27)return!0;if(n==37||Ar&&n==66&&A=="c"){let r=n==37?I1(t,t.state.selection.from)=="ltr"?-1:1:-1;return x1(t,r,A)||ma(t,r)}else if(n==39||Ar&&n==70&&A=="c"){let r=n==39?I1(t,t.state.selection.from)=="ltr"?1:-1:1;return x1(t,r,A)||ma(t,r)}else{if(n==38||Ar&&n==80&&A=="c")return _1(t,-1,A)||ma(t,-1);if(n==40||Ar&&n==78&&A=="c")return zR(t)||_1(t,1,A)||ma(t,1);if(A==(Ar?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function km(t,e){t.someProp("transformCopied",g=>{e=g(e,t)});let n=[],{content:A,openStart:r,openEnd:o}=e;for(;r>1&&o>1&&A.childCount==1&&A.firstChild.childCount==1;){r--,o--;let g=A.firstChild;n.push(g.type.name,g.attrs!=g.type.defaultAttrs?g.attrs:null),A=g.content}let i=t.someProp("clipboardSerializer")||ls.fromSchema(t.state.schema),a=V1(),l=a.createElement("div");l.appendChild(i.serializeFragment(A,{document:a}));let u=l.firstChild,f,h=0;for(;u&&u.nodeType==1&&(f=P1[u.nodeName.toLowerCase()]);){for(let g=f.length-1;g>=0;g--){let B=a.createElement(f[g]);for(;l.firstChild;)B.appendChild(l.firstChild);l.appendChild(B),h++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${o}${h?` -${h}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",g=>g(e,t))||e.content.textBetween(0,e.content.size,`
31
31
 
32
32
  `);return{dom:l,text:p,slice:e}}function M1(t,e,n,A,r){let o=r.parent.type.spec.code,i,a;if(!n&&!e)return null;let l=e&&(A||o||!n);if(l){if(t.someProp("transformPastedText",p=>{e=p(e,o||A,t)}),o)return e?new Ne(Qe.from(t.state.schema.text(e.replace(/\r\n?/g,`
33
- `))),0,0):Ne.empty;let h=t.someProp("clipboardTextParser",p=>p(e,r,A,t));if(h)a=h;else{let p=r.marks(),{schema:g}=t.state,B=ls.fromSchema(g);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let C=i.appendChild(document.createElement("p"));y&&C.appendChild(B.serializeNode(g.text(y,p)))})}}else t.someProp("transformPastedHTML",h=>{n=h(n,t)}),i=YR(n),Ml&&jR(i);let u=i&&i.querySelector("[data-pm-slice]"),f=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let h=+f[3];h>0;h--){let p=i.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;i=p}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||si.fromSchema(t.state.schema)).parseSlice(i,{preserveWhitespace:!!(l||f),context:r,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!zR.test(p.parentNode.nodeName)?{ignore:!0}:null}})),f)a=qR(H1(a,+f[1],+f[2]),f[4]);else if(a=Ne.maxOpen(WR(a.content,r),!0),a.openStart||a.openEnd){let h=0,p=0;for(let g=a.content.firstChild;h<a.openStart&&!g.type.spec.isolating;h++,g=g.firstChild);for(let g=a.content.lastChild;p<a.openEnd&&!g.type.spec.isolating;p++,g=g.lastChild);a=H1(a,h,p)}return t.someProp("transformPasted",h=>{a=h(a,t)}),a}const zR=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function WR(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),o,i=[];if(t.forEach(a=>{if(!i)return;let l=r.findWrapping(a.type),u;if(!l)return i=null;if(u=i.length&&o.length&&L1(l,o,a,i[i.length-1],0))i[i.length-1]=u;else{i.length&&(i[i.length-1]=N1(i[i.length-1],o.length));let f=O1(a,l);i.push(f),r=r.matchType(f.type),o=l}}),i)return Qe.from(i)}return t}function O1(t,e,n=0){for(let A=e.length-1;A>=n;A--)t=e[A].create(null,Qe.from(t));return t}function L1(t,e,n,A,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let o=L1(t,e,n,A.lastChild,r+1);if(o)return A.copy(A.content.replaceChild(A.childCount-1,o));if(A.contentMatchAt(A.childCount).matchType(r==t.length-1?n.type:t[r+1]))return A.copy(A.content.append(Qe.from(O1(n,t,r+1))))}}function N1(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,N1(t.lastChild,e-1)),A=t.contentMatchAt(t.childCount).fillBefore(Qe.empty,!0);return t.copy(n.append(A))}function Sm(t,e,n,A,r,o){let i=e<0?t.firstChild:t.lastChild,a=i.content;return t.childCount>1&&(o=0),r<A-1&&(a=Sm(a,e,n,A,r+1,o)),r>=n&&(a=e<0?i.contentMatchAt(0).fillBefore(a,o<=r).append(a):a.append(i.contentMatchAt(i.childCount).fillBefore(Qe.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,i.copy(a))}function H1(t,e,n){return e<t.openStart&&(t=new Ne(Sm(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new Ne(Sm(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const P1={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let R1=null;function V1(){return R1||(R1=document.implementation.createHTMLDocument("title"))}let Fm=null;function GR(t){let e=window.trustedTypes;return e?(Fm||(Fm=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Fm.createHTML(t)):t}function YR(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=V1().createElement("div"),A=/<([a-z][^>\s]+)/i.exec(t),r;if((r=A&&P1[A[1].toLowerCase()])&&(t=r.map(o=>"<"+o+">").join("")+t+r.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=GR(t),r)for(let o=0;o<r.length;o++)n=n.querySelector(r[o])||n;return n}function jR(t){let e=t.querySelectorAll(nA?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let A=e[n];A.childNodes.length==1&&A.textContent==" "&&A.parentNode&&A.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),A)}}function qR(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,A;try{A=JSON.parse(e)}catch{return t}let{content:r,openStart:o,openEnd:i}=t;for(let a=A.length-2;a>=0;a-=2){let l=n.nodes[A[a]];if(!l||l.hasRequiredAttrs())break;r=Qe.from(l.create(A[a+1],r)),o++,i++}return new Ne(r,o,i)}const dA={},fA={},JR={touchstart:!0,touchmove:!0};class XR{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ZR(t){for(let e in dA){let n=dA[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=A=>{t4(t,A)&&!xm(t,A)&&(t.editable||!(A.type in fA))&&n(t,A)},JR[e]?{passive:!0}:void 0)}uA&&t.dom.addEventListener("input",()=>null),Qm(t)}function mi(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function e4(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Qm(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=A=>xm(t,A))})}function xm(t,e){return t.someProp("handleDOMEvents",n=>{let A=n[e.type];return A?A(t,e)||e.defaultPrevented:!1})}function t4(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function n4(t,e){!xm(t,e)&&dA[e.type]&&(t.editable||!(e.type in fA))&&dA[e.type](t,e)}fA.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!K1(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Qo&&nA&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ha&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let A=Date.now();t.input.lastIOSEnter=A,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==A&&(t.someProp("handleKeyDown",r=>r(t,ds(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",A=>A(t,n))||KR(t,n)?n.preventDefault():mi(t,"key")},fA.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},fA.keypress=(t,e)=>{let n=e;if(K1(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ar&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let A=t.state.selection;if(!(A instanceof nt)||!A.$from.sameParent(A.$to)){let r=String.fromCharCode(n.charCode),o=()=>t.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,A.$from.pos,A.$to.pos,r,o))&&t.dispatch(o()),n.preventDefault()}};function Ou(t){return{left:t.clientX,top:t.clientY}}function A4(t,e){let n=e.x-t.clientX,A=e.y-t.clientY;return n*n+A*A<100}function Um(t,e,n,A,r){if(A==-1)return!1;let o=t.state.doc.resolve(A);for(let i=o.depth+1;i>0;i--)if(t.someProp(e,a=>i>o.depth?a(t,n,o.nodeAfter,o.before(i),r,!0):a(t,n,o.node(i),o.before(i),r,!1)))return!0;return!1}function ga(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let A=t.state.tr.setSelection(e);A.setMeta("pointer",!0),t.dispatch(A)}function r4(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),A=n.nodeAfter;return A&&A.isAtom&&We.isSelectable(A)?(ga(t,new We(n)),!0):!1}function o4(t,e){if(e==-1)return!1;let n=t.state.selection,A,r;n instanceof We&&(A=n.node);let o=t.state.doc.resolve(e);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i);if(We.isSelectable(a)){A&&n.$from.depth>0&&i>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?r=o.before(n.$from.depth):r=o.before(i);break}}return r!=null?(ga(t,We.create(t.state.doc,r)),!0):!1}function i4(t,e,n,A,r){return Um(t,"handleClickOn",e,n,A)||t.someProp("handleClick",o=>o(t,e,A))||(r?o4(t,n):r4(t,n))}function s4(t,e,n,A){return Um(t,"handleDoubleClickOn",e,n,A)||t.someProp("handleDoubleClick",r=>r(t,e,A))}function a4(t,e,n,A){return Um(t,"handleTripleClickOn",e,n,A)||t.someProp("handleTripleClick",r=>r(t,e,A))||l4(t,n,A)}function l4(t,e,n){if(n.button!=0)return!1;let A=t.state.doc;if(e==-1)return A.inlineContent?(ga(t,nt.create(A,0,A.content.size)),!0):!1;let r=A.resolve(e);for(let o=r.depth+1;o>0;o--){let i=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(i.inlineContent)ga(t,nt.create(A,a+1,a+1+i.content.size));else if(We.isSelectable(i))ga(t,We.create(A,a));else continue;return!0}}function Im(t){return Lu(t)}const $1=Ar?"metaKey":"ctrlKey";dA.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let A=Im(t),r=Date.now(),o="singleClick";r-t.input.lastClick.time<500&&A4(n,t.input.lastClick)&&!n[$1]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:o,button:n.button};let i=t.posAtCoords(Ou(n));i&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new c4(t,i,n,!!A)):(o=="doubleClick"?s4:a4)(t,i.pos,i.inside,n)?n.preventDefault():mi(t,"pointer"))};class c4{constructor(e,n,A,r){this.view=e,this.pos=n,this.event=A,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!A[$1],this.allowDefault=A.shiftKey;let o,i;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),i=n.inside;else{let f=e.state.doc.resolve(n.pos);o=f.parent,i=f.depth?f.before():0}const a=r?null:A.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=e.state;(A.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof We&&u.from<=i&&u.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ur&&!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(()=>{this.view.input.mouseDown==this&&this.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)),mi(e,"pointer")}done(){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.delayedSelectionSync&&setTimeout(()=>Uo(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Ou(e))),this.updateAllowDefault(e),this.allowDefault||!n?mi(this.view,"pointer"):i4(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||uA&&this.mightDrag&&!this.mightDrag.node.isAtom||nA&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(ga(this.view,it.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):mi(this.view,"pointer")}move(e){this.updateAllowDefault(e),mi(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}dA.touchstart=t=>{t.input.lastTouch=Date.now(),Im(t),mi(t,"pointer")},dA.touchmove=t=>{t.input.lastTouch=Date.now(),mi(t,"pointer")},dA.contextmenu=t=>Im(t);function K1(t,e){return t.composing?!0:uA&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const u4=Qo?5e3:-1;fA.compositionstart=fA.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof nt&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(A=>A.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Lu(t,!0),t.markCursor=null;else if(Lu(t,!e.selection.empty),Ur&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let A=t.domSelectionRange();for(let r=A.focusNode,o=A.focusOffset;r&&r.nodeType==1&&o!=0;){let i=o<0?r.lastChild:r.childNodes[o-1];if(!i)break;if(i.nodeType==3){let a=t.domSelection();a&&a.collapse(i,i.nodeValue.length);break}else r=i,o=-1}}t.input.composing=!0}z1(t,u4)},fA.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,z1(t,20))};function z1(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Lu(t),e))}function W1(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=f4());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function d4(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=rR(e.focusNode,e.focusOffset),A=oR(e.focusNode,e.focusOffset);if(n&&A&&n!=A){let r=A.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||A==o)return o;if(!r||!r.isText(A.nodeValue))return A;if(t.input.compositionNode==A){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return A}}return n||A}function f4(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Lu(t,e=!1){if(!(Qo&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),W1(t),e||t.docView&&t.docView.dirty){let n=wm(t),A=t.state.selection;return n&&!n.eq(A)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!A.$from.node(A.$from.sharedDepth(A.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function h4(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let A=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),A.removeAllRanges(),A.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Pl=SA&&di<15||ha&&cR<604;dA.copy=fA.cut=(t,e)=>{let n=e,A=t.state.selection,r=n.type=="cut";if(A.empty)return;let o=Pl?null:n.clipboardData,i=A.content(),{dom:a,text:l}=km(t,i);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):h4(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function p4(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function m4(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,A=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(A.contentEditable="true"),A.style.cssText="position: fixed; left: -10000px; top: 10px",A.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),A.parentNode&&A.parentNode.removeChild(A),n?Rl(t,A.value,null,r,e):Rl(t,A.textContent,A.innerHTML,r,e)},50)}function Rl(t,e,n,A,r){let o=M1(t,e,n,A,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,o||Ne.empty)))return!0;if(!o)return!1;let i=p4(o),a=i?t.state.tr.replaceSelectionWith(i,A):t.state.tr.replaceSelection(o);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function G1(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}fA.paste=(t,e)=>{let n=e;if(t.composing&&!Qo)return;let A=Pl?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;A&&Rl(t,G1(A),A.getData("text/html"),r,n)?n.preventDefault():m4(t,n)};class Y1{constructor(e,n,A){this.slice=e,this.move=n,this.node=A}}const g4=Ar?"altKey":"ctrlKey";function j1(t,e){let n=t.someProp("dragCopies",A=>!A(e));return n??!e[g4]}dA.dragstart=(t,e)=>{let n=e,A=t.input.mouseDown;if(A&&A.done(),!n.dataTransfer)return;let r=t.state.selection,o=r.empty?null:t.posAtCoords(Ou(n)),i;if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof We?r.to-1:r.to))){if(A&&A.mightDrag)i=We.create(t.state.doc,A.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let h=t.docView.nearestDesc(n.target,!0);h&&h.node.type.spec.draggable&&h!=t.docView&&(i=We.create(t.state.doc,h.posBefore))}}let a=(i||t.state.selection).content(),{dom:l,text:u,slice:f}=km(t,a);(!n.dataTransfer.files.length||!nA||t1>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Pl?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Pl||n.dataTransfer.setData("text/plain",u),t.dragging=new Y1(f,j1(t,n),i)},dA.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},fA.dragover=fA.dragenter=(t,e)=>e.preventDefault(),fA.drop=(t,e)=>{let n=e,A=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(Ou(n));if(!r)return;let o=t.state.doc.resolve(r.pos),i=A&&A.slice;i?t.someProp("transformPasted",B=>{i=B(i,t)}):i=M1(t,G1(n.dataTransfer),Pl?null:n.dataTransfer.getData("text/html"),!1,o);let a=!!(A&&j1(t,n));if(t.someProp("handleDrop",B=>B(t,n,i||Ne.empty,a))){n.preventDefault();return}if(!i)return;n.preventDefault();let l=i?Nb(t.state.doc,o.pos,i):o.pos;l==null&&(l=o.pos);let u=t.state.tr;if(a){let{node:B}=A;B?B.replace(u):u.deleteSelection()}let f=u.mapping.map(l),h=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,p=u.doc;if(h?u.replaceRangeWith(f,f,i.content.firstChild):u.replaceRange(f,f,i),u.doc.eq(p))return;let g=u.doc.resolve(f);if(h&&We.isSelectable(i.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(i.content.firstChild))u.setSelection(new We(g));else{let B=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,C,w,F)=>B=F),u.setSelection(bm(t,g,u.doc.resolve(B)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},dA.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Uo(t)},20))},dA.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},dA.beforeinput=(t,e)=>{if(nA&&Qo&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:A}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=A||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,ds(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in fA)dA[t]=fA[t];function Vl(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Nu{constructor(e,n){this.toDOM=e,this.spec=n||ms,this.side=this.spec.side||0}map(e,n,A,r){let{pos:o,deleted:i}=e.mapResult(n.from+r,this.side<0?-1:1);return i?null:new hA(o-A,o-A,this)}valid(){return!0}eq(e){return this==e||e instanceof Nu&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vl(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class gi{constructor(e,n){this.attrs=e,this.spec=n||ms}map(e,n,A,r){let o=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-A,i=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-A;return o>=i?null:new hA(o,i,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof gi&&Vl(this.attrs,e.attrs)&&Vl(this.spec,e.spec)}static is(e){return e.type instanceof gi}destroy(){}}class _m{constructor(e,n){this.attrs=e,this.spec=n||ms}map(e,n,A,r){let o=e.mapResult(n.from+r,1);if(o.deleted)return null;let i=e.mapResult(n.to+r,-1);return i.deleted||i.pos<=o.pos?null:new hA(o.pos-A,i.pos-A,this)}valid(e,n){let{index:A,offset:r}=e.content.findIndex(n.from),o;return r==n.from&&!(o=e.child(A)).isText&&r+o.nodeSize==n.to}eq(e){return this==e||e instanceof _m&&Vl(this.attrs,e.attrs)&&Vl(this.spec,e.spec)}destroy(){}}class hA{constructor(e,n,A){this.from=e,this.to=n,this.type=A}copy(e,n){return new hA(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,A){return this.type.map(e,this,n,A)}static widget(e,n,A){return new hA(e,e,new Nu(n,A))}static inline(e,n,A,r){return new hA(e,n,new gi(A,r))}static node(e,n,A,r){return new hA(e,n,new _m(A,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof gi}get widget(){return this.type instanceof Nu}}const Ba=[],ms={};class tn{constructor(e,n){this.local=e.length?e:Ba,this.children=n.length?n:Ba}static create(e,n){return n.length?Hu(n,e,0,ms):AA}find(e,n,A){let r=[];return this.findInner(e??0,n??1e9,r,0,A),r}findInner(e,n,A,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=n&&a.to>=e&&(!o||o(a.spec))&&A.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<n&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,n-a,A,r+a,o)}}map(e,n,A){return this==AA||e.maps.length==0?this:this.mapInner(e,n,0,0,A||ms)}mapInner(e,n,A,r,o){let i;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,A,r);l&&l.type.valid(n,l)?(i||(i=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?B4(this.children,i||[],e,n,A,r,o):i?new tn(i.sort(gs),Ba):AA}add(e,n){return n.length?this==AA?tn.create(e,n):this.addInner(e,n,0):this}addInner(e,n,A){let r,o=0;e.forEach((a,l)=>{let u=l+A,f;if(f=J1(n,a,u)){for(r||(r=this.children.slice());o<r.length&&r[o]<l;)o+=3;r[o]==l?r[o+2]=r[o+2].addInner(a,f,u+1):r.splice(o,0,l,l+a.nodeSize,Hu(f,a,u+1,ms)),o+=3}});let i=q1(o?X1(n):n,-A);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||i.splice(a--,1);return new tn(i.length?this.local.concat(i).sort(gs):this.local,r||this.children)}remove(e){return e.length==0||this==AA?this:this.removeInner(e,0)}removeInner(e,n){let A=this.children,r=this.local;for(let o=0;o<A.length;o+=3){let i,a=A[o]+n,l=A[o+1]+n;for(let f=0,h;f<e.length;f++)(h=e[f])&&h.from>a&&h.to<l&&(e[f]=null,(i||(i=[])).push(h));if(!i)continue;A==this.children&&(A=this.children.slice());let u=A[o+2].removeInner(i,a+1);u!=AA?A[o+2]=u:(A.splice(o,3),o-=3)}if(r.length){for(let o=0,i;o<e.length;o++)if(i=e[o])for(let a=0;a<r.length;a++)r[a].eq(i,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return A==this.children&&r==this.local?this:r.length||A.length?new tn(r,A):AA}forChild(e,n){if(this==AA)return this;if(n.isLeaf)return tn.empty;let A,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(A=this.children[a+2]);break}let o=e+1,i=o+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<i&&l.to>o&&l.type instanceof gi){let u=Math.max(o,l.from)-o,f=Math.min(i,l.to)-o;u<f&&(r||(r=[])).push(l.copy(u,f))}}if(r){let a=new tn(r.sort(gs),Ba);return A?new Bi([a,A]):a}return A||AA}eq(e){if(this==e)return!0;if(!(e instanceof tn)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let 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}locals(e){return Tm(this.localsInner(e))}localsInner(e){if(this==AA)return Ba;if(e.inlineContent||!this.local.some(gi.is))return this.local;let n=[];for(let A=0;A<this.local.length;A++)this.local[A].type instanceof gi||n.push(this.local[A]);return n}forEachSet(e){e(this)}}tn.empty=new tn([],[]),tn.removeOverlap=Tm;const AA=tn.empty;class Bi{constructor(e){this.members=e}map(e,n){const A=this.members.map(r=>r.map(e,n,ms));return Bi.from(A)}forChild(e,n){if(n.isLeaf)return tn.empty;let A=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,n);o!=AA&&(o instanceof Bi?A=A.concat(o.members):A.push(o))}return Bi.from(A)}eq(e){if(!(e instanceof Bi)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,A=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(!n)n=o;else{A&&(n=n.slice(),A=!1);for(let i=0;i<o.length;i++)n.push(o[i])}}return n?Tm(A?n:n.sort(gs)):Ba}static from(e){switch(e.length){case 0:return AA;case 1:return e[0];default:return new Bi(e.every(n=>n instanceof tn)?e:e.reduce((n,A)=>n.concat(A instanceof tn?A:A.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function B4(t,e,n,A,r,o,i){let a=t.slice();for(let u=0,f=o;u<n.maps.length;u++){let h=0;n.maps[u].forEach((p,g,B,y)=>{let C=y-B-(g-p);for(let w=0;w<a.length;w+=3){let F=a[w+1];if(F<0||p>F+f-h)continue;let _=a[w]+f-h;g>=_?a[w+1]=p<=_?-2:-1:p>=f&&C&&(a[w]+=C,a[w+1]+=C)}h+=C}),f=n.maps[u].map(f,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let f=n.map(t[u]+o),h=f-r;if(h<0||h>=A.content.size){l=!0;continue}let p=n.map(t[u+1]+o,-1),g=p-r,{index:B,offset:y}=A.content.findIndex(h),C=A.maybeChild(B);if(C&&y==h&&y+C.nodeSize==g){let w=a[u+2].mapInner(n,C,f+1,t[u]+o+1,i);w!=AA?(a[u]=h,a[u+1]=g,a[u+2]=w):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=y4(a,t,e,n,r,o,i),f=Hu(u,A,0,i);e=f.local;for(let h=0;h<a.length;h+=3)a[h+1]<0&&(a.splice(h,3),h-=3);for(let h=0,p=0;h<f.children.length;h+=3){let g=f.children[h];for(;p<a.length&&a[p]<g;)p+=3;a.splice(p,0,f.children[h],f.children[h+1],f.children[h+2])}}return new tn(e.sort(gs),a)}function q1(t,e){if(!e||!t.length)return t;let n=[];for(let A=0;A<t.length;A++){let r=t[A];n.push(new hA(r.from+e,r.to+e,r.type))}return n}function y4(t,e,n,A,r,o,i){function a(l,u){for(let f=0;f<l.local.length;f++){let h=l.local[f].map(A,r,u);h?n.push(h):i.onRemove&&i.onRemove(l.local[f].spec)}for(let f=0;f<l.children.length;f+=3)a(l.children[f+2],l.children[f]+u+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+o+1);return n}function J1(t,e,n){if(e.isLeaf)return null;let A=n+e.nodeSize,r=null;for(let o=0,i;o<t.length;o++)(i=t[o])&&i.from>n&&i.to<A&&((r||(r=[])).push(i),t[o]=null);return r}function X1(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Hu(t,e,n,A){let r=[],o=!1;e.forEach((a,l)=>{let u=J1(t,a,l+n);if(u){o=!0;let f=Hu(u,a,n+l+1,A);f!=AA&&r.push(l,l+a.nodeSize,f)}});let i=q1(o?X1(t):t,-n).sort(gs);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||(A.onRemove&&A.onRemove(i[a].spec),i.splice(a--,1));return i.length||r.length?new tn(i,r):AA}function gs(t,e){return t.from-e.from||t.to-e.to}function Tm(t){let e=t;for(let n=0;n<e.length-1;n++){let A=e[n];if(A.from!=A.to)for(let r=n+1;r<e.length;r++){let o=e[r];if(o.from==A.from){o.to!=A.to&&(e==t&&(e=t.slice()),e[r]=o.copy(o.from,A.to),Z1(e,r+1,o.copy(A.to,o.to)));continue}else{o.from<A.to&&(e==t&&(e=t.slice()),e[n]=A.copy(A.from,o.from),Z1(e,r,A.copy(o.from,A.to)));break}}}return e}function Z1(t,e,n){for(;e<t.length&&gs(n,t[e])>0;)e++;t.splice(e,0,n)}function Dm(t){let e=[];return t.someProp("decorations",n=>{let A=n(t.state);A&&A!=AA&&e.push(A)}),t.cursorWrapper&&e.push(tn.create(t.state.doc,[t.cursorWrapper.deco])),Bi.from(e)}const w4={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},C4=SA&&di<=11;class b4{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class v4{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new b4,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(A=>{for(let r=0;r<A.length;r++)this.queue.push(A[r]);SA&&di<=11&&A.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),C4&&(this.onCharData=A=>{this.queue.push({target:A.target,type:"characterData",oldValue:A.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,w4)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(F1(this.view)){if(this.suppressingSelectionUpdates)return Uo(this.view);if(SA&&di<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&us(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,A;for(let o=e.focusNode;o;o=fa(o))n.add(o);for(let o=e.anchorNode;o;o=fa(o))if(n.has(o)){A=o;break}let r=A&&this.view.docView.nearestDesc(A);if(r&&r.ignoreMutation({type:"selection",target:A.nodeType==3?A.parentNode:A}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let A=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(A)&&F1(e)&&!this.ignoreSelectionChange(A),o=-1,i=-1,a=!1,l=[];if(e.editable)for(let f=0;f<n.length;f++){let h=this.registerMutation(n[f],l);h&&(o=o<0?h.from:Math.min(h.from,o),i=i<0?h.to:Math.max(h.to,i),h.typeOver&&(a=!0))}if(Ur&&l.length){let f=l.filter(h=>h.nodeName=="BR");if(f.length==2){let[h,p]=f;h.parentNode&&h.parentNode.parentNode==p.parentNode?p.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let p of f){let g=p.parentNode;g&&g.nodeName=="LI"&&(!h||S4(e,h)!=g)&&p.remove()}}}let u=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&_u(A)&&(u=wm(e))&&u.eq(it.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Uo(e),this.currentSelection.set(A),e.scrollToSelection()):(o>-1||r)&&(o>-1&&(e.docView.markDirty(o,i),E4(e)),this.handleDOMChange(o,i,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(A)||Uo(e),this.currentSelection.set(A))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let A=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(A==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!A||A.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++){let h=e.addedNodes[f];n.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(A.contentDOM&&A.contentDOM!=A.dom&&!A.contentDOM.contains(e.target))return{from:A.posBefore,to:A.posAfter};let r=e.previousSibling,o=e.nextSibling;if(SA&&di<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:h,nextSibling:p}=e.addedNodes[f];(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(r=h),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(o=p)}let i=r&&r.parentNode==e.target?Wn(r)+1:0,a=A.localPosFromDOM(e.target,i,-1),l=o&&o.parentNode==e.target?Wn(o):e.target.childNodes.length,u=A.localPosFromDOM(e.target,l,1);return{from:a,to:u}}else return e.type=="attributes"?{from:A.posAtStart-A.border,to:A.posAtEnd+A.border}:(this.lastChangedTextNode=e.target,{from:A.posAtStart,to:A.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let ev=new WeakMap,tv=!1;function E4(t){if(!ev.has(t)&&(ev.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Ur,tv)return;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."),tv=!0}}function nv(t,e){let n=e.startContainer,A=e.startOffset,r=e.endContainer,o=e.endOffset,i=t.domAtPos(t.state.selection.anchor);return us(i.node,i.offset,r,o)&&([n,A,r,o]=[r,o,n,A]),{anchorNode:n,anchorOffset:A,focusNode:r,focusOffset:o}}function k4(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return nv(t,r)}let n;function A(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",A,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",A,!0),n?nv(t,n):null}function S4(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let A=t.docView.nearestDesc(n,!0);if(A&&A.node.isBlock)return n}return null}function F4(t,e,n){let{node:A,fromOffset:r,toOffset:o,from:i,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,f=l.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(u=[{node:f,offset:l.anchorOffset}],_u(l)||u.push({node:l.focusNode,offset:l.focusOffset})),nA&&t.input.lastKeyCode===8)for(let C=o;C>r;C--){let w=A.childNodes[C-1],F=w.pmViewDesc;if(w.nodeName=="BR"&&!F){o=C;break}if(!F||F.size)break}let h=t.state.doc,p=t.someProp("domParser")||si.fromSchema(t.state.schema),g=h.resolve(i),B=null,y=p.parse(A,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:r,to:o,preserveWhitespace:g.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:Q4,context:g});if(u&&u[0].pos!=null){let C=u[0].pos,w=u[1]&&u[1].pos;w==null&&(w=C),B={anchor:C+i,head:w+i}}return{doc:y,sel:B,from:i,to:a}}function Q4(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(uA&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||uA&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const x4=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function U4(t,e,n,A,r){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let te=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,Z=wm(t,te);if(Z&&!t.state.selection.eq(Z)){if(nA&&Qo&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",pe=>pe(t,ds(13,"Enter"))))return;let ne=t.state.tr.setSelection(Z);te=="pointer"?ne.setMeta("pointer",!0):te=="key"&&ne.scrollIntoView(),o&&ne.setMeta("composition",o),t.dispatch(ne)}return}let i=t.state.doc.resolve(e),a=i.sharedDepth(n);e=i.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,u=F4(t,e,n),f=t.state.doc,h=f.slice(u.from,u.to),p,g;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,g="end"):(p=t.state.selection.from,g="start"),t.input.lastKeyCode=null;let B=T4(h.content,u.doc.content,u.from,p,g);if(B&&t.input.domChangeCount++,(ha&&t.input.lastIOSEnter>Date.now()-225||Qo)&&r.some(te=>te.nodeType==1&&!x4.test(te.nodeName))&&(!B||B.endA>=B.endB)&&t.someProp("handleKeyDown",te=>te(t,ds(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!B)if(A&&l instanceof nt&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))B={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let te=Av(t,t.state.doc,u.sel);if(te&&!te.eq(t.state.selection)){let Z=t.state.tr.setSelection(te);o&&Z.setMeta("composition",o),t.dispatch(Z)}}return}t.state.selection.from<t.state.selection.to&&B.start==B.endB&&t.state.selection instanceof nt&&(B.start>t.state.selection.from&&B.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?B.start=t.state.selection.from:B.endA<t.state.selection.to&&B.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(B.endB+=t.state.selection.to-B.endA,B.endA=t.state.selection.to)),SA&&di<=11&&B.endB==B.start+1&&B.endA==B.start&&B.start>u.from&&u.doc.textBetween(B.start-u.from-1,B.start-u.from+1)=="  "&&(B.start--,B.endA--,B.endB--);let y=u.doc.resolveNoCache(B.start-u.from),C=u.doc.resolveNoCache(B.endB-u.from),w=f.resolve(B.start),F=y.sameParent(C)&&y.parent.inlineContent&&w.end()>=B.endA,_;if((ha&&t.input.lastIOSEnter>Date.now()-225&&(!F||r.some(te=>te.nodeName=="DIV"||te.nodeName=="P"))||!F&&y.pos<u.doc.content.size&&(!y.sameParent(C)||!y.parent.inlineContent)&&!/\S/.test(u.doc.textBetween(y.pos,C.pos,"",""))&&(_=it.findFrom(u.doc.resolve(y.pos+1),1,!0))&&_.head>y.pos)&&t.someProp("handleKeyDown",te=>te(t,ds(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>B.start&&_4(f,B.start,B.endA,y,C)&&t.someProp("handleKeyDown",te=>te(t,ds(8,"Backspace")))){Qo&&nA&&t.domObserver.suppressSelectionUpdates();return}nA&&B.endB==B.start&&(t.input.lastChromeDelete=Date.now()),Qo&&!F&&y.start()!=C.start()&&C.parentOffset==0&&y.depth==C.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==B.endA&&(B.endB-=2,C=u.doc.resolveNoCache(B.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(te){return te(t,ds(13,"Enter"))})},20));let D=B.start,P=B.endA,T=te=>{let Z=te||t.state.tr.replace(D,P,u.doc.slice(B.start-u.from,B.endB-u.from));if(u.sel){let ne=Av(t,Z.doc,u.sel);ne&&!(nA&&t.composing&&ne.empty&&(B.start!=B.endB||t.input.lastChromeDelete<Date.now()-100)&&(ne.head==D||ne.head==Z.mapping.map(P)-1)||SA&&ne.empty&&ne.head==D)&&Z.setSelection(ne)}return o&&Z.setMeta("composition",o),Z.scrollIntoView()},H;if(F){if(y.pos==C.pos){SA&&di<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Uo(t),20));let te=T(t.state.tr.delete(D,P)),Z=f.resolve(B.start).marksAcross(f.resolve(B.endA));Z&&te.ensureMarks(Z),t.dispatch(te)}else if(B.endA==B.endB&&(H=I4(y.parent.content.cut(y.parentOffset,C.parentOffset),w.parent.content.cut(w.parentOffset,B.endA-w.start())))){let te=T(t.state.tr);H.type=="add"?te.addMark(D,P,H.mark):te.removeMark(D,P,H.mark),t.dispatch(te)}else if(y.parent.child(y.index()).isText&&y.index()==C.index()-(C.textOffset?0:1)){let te=y.parent.textBetween(y.parentOffset,C.parentOffset),Z=()=>T(t.state.tr.insertText(te,D,P));t.someProp("handleTextInput",ne=>ne(t,D,P,te,Z))||t.dispatch(Z())}}else t.dispatch(T())}function Av(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:bm(t,e.resolve(n.anchor),e.resolve(n.head))}function I4(t,e){let n=t.firstChild.marks,A=e.firstChild.marks,r=n,o=A,i,a,l;for(let f=0;f<A.length;f++)r=A[f].removeFromSet(r);for(let f=0;f<n.length;f++)o=n[f].removeFromSet(o);if(r.length==1&&o.length==0)a=r[0],i="add",l=f=>f.mark(a.addToSet(f.marks));else if(r.length==0&&o.length==1)a=o[0],i="remove",l=f=>f.mark(a.removeFromSet(f.marks));else return null;let u=[];for(let f=0;f<e.childCount;f++)u.push(l(e.child(f)));if(Qe.from(u).eq(t))return{mark:a,type:i}}function _4(t,e,n,A,r){if(n-e<=r.pos-A.pos||Mm(A,!0,!1)<r.pos)return!1;let o=t.resolve(e);if(!A.parent.isTextblock){let a=o.nodeAfter;return a!=null&&n==e+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let i=t.resolve(Mm(o,!0,!0));return!i.parent.isTextblock||i.pos>n||Mm(i,!0,!1)<n?!1:A.parent.content.cut(A.parentOffset).eq(i.parent.content)}function Mm(t,e,n){let A=t.depth,r=e?t.end():t.pos;for(;A>0&&(e||t.indexAfter(A)==t.node(A).childCount);)A--,r++,e=!1;if(n){let o=t.node(A).maybeChild(t.indexAfter(A));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}function T4(t,e,n,A,r){let o=t.findDiffStart(e,n);if(o==null)return null;let{a:i,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,o-Math.min(i,a));A-=i+l-o}if(i<o&&t.size<e.size){let l=A<=o&&A>=i?o-A:0;o-=l,o&&o<e.size&&rv(e.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-i),i=o}else if(a<o){let l=A<=o&&A>=a?o-A:0;o-=l,o&&o<t.size&&rv(t.textBetween(o-1,o+1))&&(o+=l?1:-1),i=o+(i-a),a=o}return{start:o,endA:i,endB:a}}function rv(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class ov{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new XR,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(cv),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=av(this),sv(this),this.nodeViews=lv(this),this.docView=p1(this.state.doc,iv(this),Dm(this),this.dom,this),this.domObserver=new v4(this,(A,r,o,i)=>U4(this,A,r,o,i)),this.domObserver.start(),ZR(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Qm(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(cv),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let A in this._props)n[A]=this._props[A];n.state=this.state;for(let A in e)n[A]=e[A];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var A;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(W1(this),i=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let g=lv(this);M4(g,this.nodeViews)&&(this.nodeViews=g,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Qm(this),this.editable=av(this),sv(this);let l=Dm(this),u=iv(this),f=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=o||!this.docView.matchesNode(e.doc,u,l);(h||!e.selection.eq(r.selection))&&(i=!0);let p=f=="preserve"&&i&&this.dom.style.overflowAnchor==null&&fR(this);if(i){this.domObserver.stop();let g=h&&(SA||nA)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&D4(r.selection,e.selection);if(h){let B=nA?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=d4(this)),(o||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=p1(e.doc,u,l,this.dom,this)),B&&!this.trackWrites&&(g=!0)}g||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&LR(this))?Uo(this,g):(k1(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((A=this.dragging)===null||A===void 0)&&A.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():p&&hR(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof We){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&n1(this,n.getBoundingClientRect(),e)}else n1(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let A=this.directPlugins[n];A.spec.view&&this.pluginViews.push(A.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let A=this.state.plugins[n];A.spec.view&&this.pluginViews.push(A.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let A=this.pluginViews[n];A.update&&A.update(this,e)}}updateDraggedNode(e,n){let A=e.node,r=-1;if(this.state.doc.nodeAt(A.from)==A.node)r=A.from;else{let o=A.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&this.state.doc.nodeAt(o))==A.node&&(r=o)}this.dragging=new Y1(e.slice,e.move,r<0?void 0:We.create(this.state.doc,r))}someProp(e,n){let A=this._props&&this._props[e],r;if(A!=null&&(r=n?n(A):A))return r;for(let i=0;i<this.directPlugins.length;i++){let a=this.directPlugins[i].props[e];if(a!=null&&(r=n?n(a):a))return r}let o=this.state.plugins;if(o)for(let i=0;i<o.length;i++){let a=o[i].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(SA){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&pR(this.dom),Uo(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return wR(this,e)}coordsAtPos(e,n=1){return a1(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,A=-1){let r=this.docView.posFromDOM(e,n,A);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return kR(this,n||this.state,e)}pasteHTML(e,n){return Rl(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Rl(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return km(this,e)}destroy(){this.docView&&(e4(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Dm(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,nR())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return n4(this,e)}domSelectionRange(){let e=this.domSelection();return e?uA&&this.root.nodeType===11&&sR(this.dom.ownerDocument)==this.dom&&k4(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}ov.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function iv(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let A in n)A=="class"?e.class+=" "+n[A]:A=="style"?e.style=(e.style?e.style+";":"")+n[A]:!e[A]&&A!="contenteditable"&&A!="nodeName"&&(e[A]=String(n[A]))}),e.translate||(e.translate="no"),[hA.node(0,t.state.doc.content.size,e)]}function sv(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:hA.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function av(t){return!t.someProp("editable",e=>e(t.state)===!1)}function D4(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function lv(t){let e=Object.create(null);function n(A){for(let r in A)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=A[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function M4(t,e){let n=0,A=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)A++;return n!=A}function cv(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var yi={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:"'"},Pu={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},O4=typeof navigator<"u"&&/Mac/.test(navigator.platform),L4=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Gn=0;Gn<10;Gn++)yi[48+Gn]=yi[96+Gn]=String(Gn);for(var Gn=1;Gn<=24;Gn++)yi[Gn+111]="F"+Gn;for(var Gn=65;Gn<=90;Gn++)yi[Gn]=String.fromCharCode(Gn+32),Pu[Gn]=String.fromCharCode(Gn);for(var Om in yi)Pu.hasOwnProperty(Om)||(Pu[Om]=yi[Om]);function N4(t){var e=O4&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||L4&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Pu:yi)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const H4=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),P4=typeof navigator<"u"&&/Win/.test(navigator.platform);function R4(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let A,r,o,i;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))A=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))H4?i=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return A&&(n="Alt-"+n),r&&(n="Ctrl-"+n),i&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function V4(t){let e=Object.create(null);for(let n in t)e[R4(n)]=t[n];return e}function Lm(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function $4(t){return new sn({props:{handleKeyDown:uv(t)}})}function uv(t){let e=V4(t);return function(n,A){let r=N4(A),o,i=e[Lm(r,A)];if(i&&i(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(A.shiftKey){let a=e[Lm(r,A,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((A.altKey||A.metaKey||A.ctrlKey)&&!(P4&&A.ctrlKey&&A.altKey)&&(o=yi[A.keyCode])&&o!=r){let a=e[Lm(o,A)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Nm=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function dv(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const fv=(t,e,n)=>{let A=dv(t,n);if(!A)return!1;let r=Hm(A);if(!r){let i=A.blockRange(),a=i&&aa(i);return a==null?!1:(e&&e(t.tr.lift(i,a).scrollIntoView()),!0)}let o=r.nodeBefore;if(bv(t,r,e,-1))return!0;if(A.parent.content.size==0&&(ya(o,"end")||We.isSelectable(o)))for(let i=A.depth;;i--){let a=xu(t.doc,A.before(i),A.after(i),Ne.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(ya(o,"end")?it.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):We.create(l.doc,r.pos-o.nodeSize)),e(l.scrollIntoView())}return!0}if(i==1||A.node(i-1).childCount>1)break}return o.isAtom&&r.depth==A.depth-1?(e&&e(t.tr.delete(r.pos-o.nodeSize,r.pos).scrollIntoView()),!0):!1},K4=(t,e,n)=>{let A=dv(t,n);if(!A)return!1;let r=Hm(A);return r?hv(t,r,e):!1},z4=(t,e,n)=>{let A=mv(t,n);if(!A)return!1;let r=Pm(A);return r?hv(t,r,e):!1};function hv(t,e,n){let A=e.nodeBefore,r=A,o=e.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let i=e.nodeAfter,a=i,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let f=a.firstChild;if(!f)return!1;a=f}let u=xu(t.doc,o,l,Ne.empty);if(!u||u.from!=o||u instanceof Ln&&u.slice.size>=l-o)return!1;if(n){let f=t.tr.step(u);f.setSelection(nt.create(f.doc,o)),n(f.scrollIntoView())}return!0}function ya(t,e,n=!1){for(let A=t;A;A=e=="start"?A.firstChild:A.lastChild){if(A.isTextblock)return!0;if(n&&A.childCount!=1)return!1}return!1}const pv=(t,e,n)=>{let{$head:A,empty:r}=t.selection,o=A;if(!r)return!1;if(A.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):A.parentOffset>0)return!1;o=Hm(A)}let i=o&&o.nodeBefore;return!i||!We.isSelectable(i)?!1:(e&&e(t.tr.setSelection(We.create(t.doc,o.pos-i.nodeSize)).scrollIntoView()),!0)};function Hm(t){if(!t.parent.type.spec.isolating)for(let 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}function mv(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const gv=(t,e,n)=>{let A=mv(t,n);if(!A)return!1;let r=Pm(A);if(!r)return!1;let o=r.nodeAfter;if(bv(t,r,e,1))return!0;if(A.parent.content.size==0&&(ya(o,"start")||We.isSelectable(o))){let i=xu(t.doc,A.before(),A.after(),Ne.empty);if(i&&i.slice.size<i.to-i.from){if(e){let a=t.tr.step(i);a.setSelection(ya(o,"start")?it.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):We.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return o.isAtom&&r.depth==A.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+o.nodeSize).scrollIntoView()),!0):!1},Bv=(t,e,n)=>{let{$head:A,empty:r}=t.selection,o=A;if(!r)return!1;if(A.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):A.parentOffset<A.parent.content.size)return!1;o=Pm(A)}let i=o&&o.nodeAfter;return!i||!We.isSelectable(i)?!1:(e&&e(t.tr.setSelection(We.create(t.doc,o.pos)).scrollIntoView()),!0)};function Pm(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const W4=(t,e)=>{let n=t.selection,A=n instanceof We,r;if(A){if(n.node.isTextblock||!ci(t.doc,n.from))return!1;r=n.from}else if(r=Qu(t.doc,n.from,-1),r==null)return!1;if(e){let o=t.tr.join(r);A&&o.setSelection(We.create(o.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},G4=(t,e)=>{let n=t.selection,A;if(n instanceof We){if(n.node.isTextblock||!ci(t.doc,n.to))return!1;A=n.to}else if(A=Qu(t.doc,n.to,1),A==null)return!1;return e&&e(t.tr.join(A).scrollIntoView()),!0},Y4=(t,e)=>{let{$from:n,$to:A}=t.selection,r=n.blockRange(A),o=r&&aa(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},yv=(t,e)=>{let{$head:n,$anchor:A}=t.selection;return!n.parent.type.spec.code||!n.sameParent(A)?!1:(e&&e(t.tr.insertText(`
34
- `).scrollIntoView()),!0)};function Rm(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const j4=(t,e)=>{let{$head:n,$anchor:A}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(A))return!1;let r=n.node(-1),o=n.indexAfter(-1),i=Rm(r.contentMatchAt(o));if(!i||!r.canReplaceWith(o,o,i))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,i.createAndFill());l.setSelection(it.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},wv=(t,e)=>{let n=t.selection,{$from:A,$to:r}=n;if(n instanceof HA||A.parent.inlineContent||r.parent.inlineContent)return!1;let o=Rm(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let i=(!A.parentOffset&&r.index()<r.parent.childCount?A:r).pos,a=t.tr.insert(i,o.createAndFill());a.setSelection(nt.create(a.doc,i+1)),e(a.scrollIntoView())}return!0},Cv=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(So(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let A=n.blockRange(),r=A&&aa(A);return r==null?!1:(e&&e(t.tr.lift(A,r).scrollIntoView()),!0)};function q4(t){return(e,n)=>{let{$from:A,$to:r}=e.selection;if(e.selection instanceof We&&e.selection.node.isBlock)return!A.parentOffset||!So(e.doc,A.pos)?!1:(n&&n(e.tr.split(A.pos).scrollIntoView()),!0);if(!A.depth)return!1;let o=[],i,a,l=!1,u=!1;for(let g=A.depth;;g--)if(A.node(g).isBlock){l=A.end(g)==A.pos+(A.depth-g),u=A.start(g)==A.pos-(A.depth-g),a=Rm(A.node(g-1).contentMatchAt(A.indexAfter(g-1))),o.unshift(l&&a?{type:a}:null),i=g;break}else{if(g==1)return!1;o.unshift(null)}let f=e.tr;(e.selection instanceof nt||e.selection instanceof HA)&&f.deleteSelection();let h=f.mapping.map(A.pos),p=So(f.doc,h,o.length,o);if(p||(o[0]=a?{type:a}:null,p=So(f.doc,h,o.length,o)),!p)return!1;if(f.split(h,o.length,o),!l&&u&&A.node(i).type!=a){let g=f.mapping.map(A.before(i)),B=f.doc.resolve(g);a&&A.node(i-1).canReplaceWith(B.index(),B.index()+1,a)&&f.setNodeMarkup(f.mapping.map(A.before(i)),a)}return n&&n(f.scrollIntoView()),!0}}const J4=q4(),X4=(t,e)=>{let{$from:n,to:A}=t.selection,r,o=n.sharedDepth(A);return o==0?!1:(r=n.before(o),e&&e(t.tr.setSelection(We.create(t.doc,r))),!0)};function Z4(t,e,n){let A=e.nodeBefore,r=e.nodeAfter,o=e.index();return!A||!r||!A.type.compatibleContent(r.type)?!1:!A.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-A.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(r.isTextblock||ci(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function bv(t,e,n,A){let r=e.nodeBefore,o=e.nodeAfter,i,a,l=r.type.spec.isolating||o.type.spec.isolating;if(!l&&Z4(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(a=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&a.matchType(i[0]||o.type).validEnd){if(n){let g=e.pos+o.nodeSize,B=Qe.empty;for(let w=i.length-1;w>=0;w--)B=Qe.from(i[w].create(null,B));B=Qe.from(r.copy(B));let y=t.tr.step(new Nn(e.pos-1,g,e.pos,g,new Ne(B,1,0),i.length,!0)),C=y.doc.resolve(g+2*i.length);C.nodeAfter&&C.nodeAfter.type==r.type&&ci(y.doc,C.pos)&&y.join(C.pos),n(y.scrollIntoView())}return!0}let f=o.type.spec.isolating||A>0&&l?null:it.findFrom(e,1),h=f&&f.$from.blockRange(f.$to),p=h&&aa(h);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(h,p).scrollIntoView()),!0;if(u&&ya(o,"start",!0)&&ya(r,"end")){let g=r,B=[];for(;B.push(g),!g.isTextblock;)g=g.lastChild;let y=o,C=1;for(;!y.isTextblock;y=y.firstChild)C++;if(g.canReplace(g.childCount,g.childCount,y.content)){if(n){let w=Qe.empty;for(let _=B.length-1;_>=0;_--)w=Qe.from(B[_].copy(w));let F=t.tr.step(new Nn(e.pos-B.length,e.pos+o.nodeSize,e.pos+C,e.pos+o.nodeSize-C,new Ne(w,B.length,0),0,!0));n(F.scrollIntoView())}return!0}}return!1}function vv(t){return function(e,n){let A=e.selection,r=t<0?A.$from:A.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return r.node(o).isTextblock?(n&&n(e.tr.setSelection(nt.create(e.doc,t<0?r.start(o):r.end(o)))),!0):!1}}const eV=vv(-1),tV=vv(1);function nV(t,e=null){return function(n,A){let{$from:r,$to:o}=n.selection,i=r.blockRange(o),a=i&&om(i,t,e);return a?(A&&A(n.tr.wrap(i,a).scrollIntoView()),!0):!1}}function Ev(t,e=null){return function(n,A){let r=!1;for(let o=0;o<n.selection.ranges.length&&!r;o++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(i,a,(l,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let f=n.doc.resolve(u),h=f.index();r=f.parent.canReplaceWith(h,h+1,t)}})}if(!r)return!1;if(A){let o=n.tr;for(let i=0;i<n.selection.ranges.length;i++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[i];o.setBlockType(a,l,t,e)}A(o.scrollIntoView())}return!0}}function Vm(...t){return function(e,n,A){for(let r=0;r<t.length;r++)if(t[r](e,n,A))return!0;return!1}}Vm(Nm,fv,pv),Vm(Nm,gv,Bv),Vm(yv,wv,Cv,J4),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function AV(t,e=null){return function(n,A){let{$from:r,$to:o}=n.selection,i=r.blockRange(o);if(!i)return!1;let a=A?n.tr:null;return rV(a,i,t,e)?(A&&A(a.scrollIntoView()),!0):!1}}function rV(t,e,n,A=null){let r=!1,o=e,i=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=i.resolve(e.start-2);o=new bu(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new bu(e.$from,i.resolve(e.$to.end(e.depth)),e.depth)),r=!0}let a=om(o,n,A,e);return a?(t&&oV(t,e,a,r,n),!0):!1}function oV(t,e,n,A,r){let o=Qe.empty;for(let f=n.length-1;f>=0;f--)o=Qe.from(n[f].type.create(n[f].attrs,o));t.step(new Nn(e.start-(A?2:0),e.end,e.start,e.end,new Ne(o,0,0),n.length,!0));let i=0;for(let f=0;f<n.length;f++)n[f].type==r&&(i=f+1);let a=n.length-i,l=e.start+n.length-(A?2:0),u=e.parent;for(let f=e.startIndex,h=e.endIndex,p=!0;f<h;f++,p=!1)!p&&So(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(f).nodeSize;return t}function iV(t){return function(e,n){let{$from:A,$to:r}=e.selection,o=A.blockRange(r,i=>i.childCount>0&&i.firstChild.type==t);return o?n?A.node(o.depth-1).type==t?sV(e,n,t,o):aV(e,n,o):!0:!1}}function sV(t,e,n,A){let r=t.tr,o=A.end,i=A.$to.end(A.depth);o<i&&(r.step(new Nn(o-1,i,o,i,new Ne(Qe.from(n.create(null,A.parent.copy())),1,0),1,!0)),A=new bu(r.doc.resolve(A.$from.pos),r.doc.resolve(i),A.depth));const a=aa(A);if(a==null)return!1;r.lift(A,a);let l=r.doc.resolve(r.mapping.map(o,-1)-1);return ci(r.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&r.join(l.pos),e(r.scrollIntoView()),!0}function aV(t,e,n){let A=t.tr,r=n.parent;for(let g=n.end,B=n.endIndex-1,y=n.startIndex;B>y;B--)g-=r.child(B).nodeSize,A.delete(g-1,g+1);let o=A.doc.resolve(n.start),i=o.nodeAfter;if(A.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,u=o.node(-1),f=o.index(-1);if(!u.canReplace(f+(a?0:1),f+1,i.content.append(l?Qe.empty:Qe.from(r))))return!1;let h=o.pos,p=h+i.nodeSize;return A.step(new Nn(h-(a?1:0),p+(l?1:0),h+1,p-1,new Ne((a?Qe.empty:Qe.from(r.copy(Qe.empty))).append(l?Qe.empty:Qe.from(r.copy(Qe.empty))),a?0:1,l?0:1),a?0:1)),e(A.scrollIntoView()),!0}function lV(t){return function(e,n){let{$from:A,$to:r}=e.selection,o=A.blockRange(r,u=>u.childCount>0&&u.firstChild.type==t);if(!o)return!1;let i=o.startIndex;if(i==0)return!1;let a=o.parent,l=a.child(i-1);if(l.type!=t)return!1;if(n){let u=l.lastChild&&l.lastChild.type==a.type,f=Qe.from(u?t.create():null),h=new Ne(Qe.from(t.create(null,Qe.from(a.type.create(null,f)))),u?3:1,0),p=o.start,g=o.end;n(e.tr.step(new Nn(p-(u?3:1),g,p,g,h,1,!0)).scrollIntoView())}return!0}}var cV=Object.defineProperty,kv=(t,e)=>{for(var n in e)cV(t,n,{get:e[n],enumerable:!0})};function Ru(t){const{state:e,transaction:n}=t;let{selection:A}=n,{doc:r}=n,{storedMarks:o}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return A},get doc(){return r},get tr(){return A=n.selection,r=n.doc,o=n.storedMarks,n}}}var Vu=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:A}=e,{tr:r}=n,o=this.buildProps(r);return Object.fromEntries(Object.entries(t).map(([i,a])=>[i,(...u)=>{const f=a(...u)(o);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&A.dispatch(r),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:A,state:r}=this,{view:o}=A,i=[],a=!!t,l=t||r.tr,u=()=>(!a&&e&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),i.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(n).map(([h,p])=>[h,(...B)=>{const y=this.buildProps(l,e),C=p(...B)(y);return i.push(C),f}])),run:u};return f}createCan(t){const{rawCommands:e,state:n}=this,A=!1,r=t||n.tr,o=this.buildProps(r,A);return{...Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>l(...u)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,A)}}buildProps(t,e=!0){const{rawCommands:n,editor:A,state:r}=this,{view:o}=A,i={tr:t,editor:A,view:o,state:Ru({state:r,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([a,l])=>[a,(...u)=>l(...u)(i)]))}};return i}},uV=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(A=>A.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(A=>A!==e):delete this.callbacks[t]),this}once(t,e){const n=(...A)=>{this.off(t,n),e.apply(this,A)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}};function Sv(t,e){const n=new $b(t);return e.forEach(A=>{A.steps.forEach(r=>{n.step(r)})}),n}var Fv=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const A=e[n];A.nodeType===3&&A.nodeValue&&/^(\n\s\s|\n)$/.test(A.nodeValue)?t.removeChild(A):A.nodeType===1&&Fv(A)}return t};function $u(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Fv(n)}function $l(t,e,n){if(t instanceof ii||t instanceof Qe)return t;n={slice:!0,parseOptions:{},...n};const A=typeof t=="object"&&t!==null,r=typeof t=="string";if(A)try{if(Array.isArray(t)&&t.length>0)return Qe.fromArray(t.map(a=>e.nodeFromJSON(a)));const i=e.nodeFromJSON(t);return n.errorOnInvalidContent&&i.check(),i}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),$l("",e,n)}if(r){if(n.errorOnInvalidContent){let i=!1,a="";const l=new Bb({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?si.fromSchema(l).parseSlice($u(t),n.parseOptions):si.fromSchema(l).parse($u(t),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const o=si.fromSchema(e);return n.slice?o.parseSlice($u(t),n.parseOptions).content:o.parse($u(t),n.parseOptions)}return $l("",e,n)}function $m(t,e,n={},A={}){return $l(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:A.errorOnInvalidContent})}function dV(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function fV(t,e,n){const A=[];return t.nodesBetween(e.from,e.to,(r,o)=>{n(r)&&A.push({node:r,pos:o})}),A}function hV(t,e){for(let n=t.depth;n>0;n-=1){const A=t.node(n);if(e(A))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:A}}}function Ku(t){return e=>hV(e.$from,t)}function ze(t,e,n){return t.config[e]===void 0&&t.parent?ze(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ze(t.parent,e,n):null}):t.config[e]}function Km(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},A=ze(e,"addExtensions",n);return A?[e,...Km(A())]:e}).flat(10)}function zm(t,e){const n=ls.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function Qv(t){return typeof t=="function"}function _t(t,e=void 0,...n){return Qv(t)?e?t.bind(e)(...n):t(...n):t}function pV(t={}){return Object.keys(t).length===0&&t.constructor===Object}function Kl(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),A=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:A}}function xv(t){const e=[],{nodeExtensions:n,markExtensions:A}=Kl(t),r=[...n,...A],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(i=>{const a={name:i.name,options:i.options,storage:i.storage,extensions:r},l=ze(i,"addGlobalAttributes",a);if(!l)return;l().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([p,g])=>{e.push({type:h,name:p,attribute:{...o,...g}})})})})}),r.forEach(i=>{const a={name:i.name,options:i.options,storage:i.storage},l=ze(i,"addAttributes",a);if(!l)return;const u=l();Object.entries(u).forEach(([f,h])=>{const p={...o,...h};typeof p?.default=="function"&&(p.default=p.default()),p?.isRequired&&p?.default===void 0&&delete p.default,e.push({type:i.name,name:f,attribute:p})})}),e}function Jt(...t){return t.filter(e=>!!e).reduce((e,n)=>{const A={...e};return Object.entries(n).forEach(([r,o])=>{if(!A[r]){A[r]=o;return}if(r==="class"){const a=o?String(o).split(" "):[],l=A[r]?A[r].split(" "):[],u=a.filter(f=>!l.includes(f));A[r]=[...l,...u].join(" ")}else if(r==="style"){const a=o?o.split(";").map(f=>f.trim()).filter(Boolean):[],l=A[r]?A[r].split(";").map(f=>f.trim()).filter(Boolean):[],u=new Map;l.forEach(f=>{const[h,p]=f.split(":").map(g=>g.trim());u.set(h,p)}),a.forEach(f=>{const[h,p]=f.split(":").map(g=>g.trim());u.set(h,p)}),A[r]=Array.from(u.entries()).map(([f,h])=>`${f}: ${h}`).join("; ")}else A[r]=o}),A},{})}function zu(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,A)=>Jt(n,A),{})}function mV(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Uv(t,e){return"style"in t?t:{...t,getAttrs:n=>{const A=t.getAttrs?t.getAttrs(n):t.attrs;if(A===!1)return!1;const r=e.reduce((o,i)=>{const a=i.attribute.parseHTML?i.attribute.parseHTML(n):mV(n.getAttribute(i.name));return a==null?o:{...o,[i.name]:a}},{});return{...A,...r}}}}function Iv(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&pV(n)?!1:n!=null))}function gV(t,e){var n;const A=xv(t),{nodeExtensions:r,markExtensions:o}=Kl(t),i=(n=r.find(u=>ze(u,"topNode")))==null?void 0:n.name,a=Object.fromEntries(r.map(u=>{const f=A.filter(w=>w.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((w,F)=>{const _=ze(F,"extendNodeSchema",h);return{...w,..._?_(u):{}}},{}),g=Iv({...p,content:_t(ze(u,"content",h)),marks:_t(ze(u,"marks",h)),group:_t(ze(u,"group",h)),inline:_t(ze(u,"inline",h)),atom:_t(ze(u,"atom",h)),selectable:_t(ze(u,"selectable",h)),draggable:_t(ze(u,"draggable",h)),code:_t(ze(u,"code",h)),whitespace:_t(ze(u,"whitespace",h)),linebreakReplacement:_t(ze(u,"linebreakReplacement",h)),defining:_t(ze(u,"defining",h)),isolating:_t(ze(u,"isolating",h)),attrs:Object.fromEntries(f.map(w=>{var F,_;return[w.name,{default:(F=w?.attribute)==null?void 0:F.default,validate:(_=w?.attribute)==null?void 0:_.validate}]}))}),B=_t(ze(u,"parseHTML",h));B&&(g.parseDOM=B.map(w=>Uv(w,f)));const y=ze(u,"renderHTML",h);y&&(g.toDOM=w=>y({node:w,HTMLAttributes:zu(w,f)}));const C=ze(u,"renderText",h);return C&&(g.toText=C),[u.name,g]})),l=Object.fromEntries(o.map(u=>{const f=A.filter(C=>C.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((C,w)=>{const F=ze(w,"extendMarkSchema",h);return{...C,...F?F(u):{}}},{}),g=Iv({...p,inclusive:_t(ze(u,"inclusive",h)),excludes:_t(ze(u,"excludes",h)),group:_t(ze(u,"group",h)),spanning:_t(ze(u,"spanning",h)),code:_t(ze(u,"code",h)),attrs:Object.fromEntries(f.map(C=>{var w,F;return[C.name,{default:(w=C?.attribute)==null?void 0:w.default,validate:(F=C?.attribute)==null?void 0:F.validate}]}))}),B=_t(ze(u,"parseHTML",h));B&&(g.parseDOM=B.map(C=>Uv(C,f)));const y=ze(u,"renderHTML",h);return y&&(g.toDOM=C=>y({mark:C,HTMLAttributes:zu(C,f)})),[u.name,g]}));return new Bb({topNode:i,nodes:a,marks:l})}function BV(t){const e=t.filter((n,A)=>t.indexOf(n)!==A);return Array.from(new Set(e))}function Wm(t){return t.sort((n,A)=>{const r=ze(n,"priority")||100,o=ze(A,"priority")||100;return r>o?-1:r<o?1:0})}function _v(t){const e=Wm(Km(t)),n=BV(e.map(A=>A.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(A=>`'${A}'`).join(", ")}]. This can lead to issues.`),e}function Tv(t,e,n){const{from:A,to:r}=e,{blockSeparator:o=`
33
+ `))),0,0):Ne.empty;let h=t.someProp("clipboardTextParser",p=>p(e,r,A,t));if(h)a=h;else{let p=r.marks(),{schema:g}=t.state,B=ls.fromSchema(g);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let C=i.appendChild(document.createElement("p"));y&&C.appendChild(B.serializeNode(g.text(y,p)))})}}else t.someProp("transformPastedHTML",h=>{n=h(n,t)}),i=JR(n),Ml&&XR(i);let u=i&&i.querySelector("[data-pm-slice]"),f=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let h=+f[3];h>0;h--){let p=i.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;i=p}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||si.fromSchema(t.state.schema)).parseSlice(i,{preserveWhitespace:!!(l||f),context:r,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!YR.test(p.parentNode.nodeName)?{ignore:!0}:null}})),f)a=ZR(H1(a,+f[1],+f[2]),f[4]);else if(a=Ne.maxOpen(jR(a.content,r),!0),a.openStart||a.openEnd){let h=0,p=0;for(let g=a.content.firstChild;h<a.openStart&&!g.type.spec.isolating;h++,g=g.firstChild);for(let g=a.content.lastChild;p<a.openEnd&&!g.type.spec.isolating;p++,g=g.lastChild);a=H1(a,h,p)}return t.someProp("transformPasted",h=>{a=h(a,t)}),a}const YR=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function jR(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),o,i=[];if(t.forEach(a=>{if(!i)return;let l=r.findWrapping(a.type),u;if(!l)return i=null;if(u=i.length&&o.length&&L1(l,o,a,i[i.length-1],0))i[i.length-1]=u;else{i.length&&(i[i.length-1]=N1(i[i.length-1],o.length));let f=O1(a,l);i.push(f),r=r.matchType(f.type),o=l}}),i)return Qe.from(i)}return t}function O1(t,e,n=0){for(let A=e.length-1;A>=n;A--)t=e[A].create(null,Qe.from(t));return t}function L1(t,e,n,A,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let o=L1(t,e,n,A.lastChild,r+1);if(o)return A.copy(A.content.replaceChild(A.childCount-1,o));if(A.contentMatchAt(A.childCount).matchType(r==t.length-1?n.type:t[r+1]))return A.copy(A.content.append(Qe.from(O1(n,t,r+1))))}}function N1(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,N1(t.lastChild,e-1)),A=t.contentMatchAt(t.childCount).fillBefore(Qe.empty,!0);return t.copy(n.append(A))}function Sm(t,e,n,A,r,o){let i=e<0?t.firstChild:t.lastChild,a=i.content;return t.childCount>1&&(o=0),r<A-1&&(a=Sm(a,e,n,A,r+1,o)),r>=n&&(a=e<0?i.contentMatchAt(0).fillBefore(a,o<=r).append(a):a.append(i.contentMatchAt(i.childCount).fillBefore(Qe.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,i.copy(a))}function H1(t,e,n){return e<t.openStart&&(t=new Ne(Sm(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new Ne(Sm(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const P1={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let R1=null;function V1(){return R1||(R1=document.implementation.createHTMLDocument("title"))}let Fm=null;function qR(t){let e=window.trustedTypes;return e?(Fm||(Fm=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Fm.createHTML(t)):t}function JR(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=V1().createElement("div"),A=/<([a-z][^>\s]+)/i.exec(t),r;if((r=A&&P1[A[1].toLowerCase()])&&(t=r.map(o=>"<"+o+">").join("")+t+r.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=qR(t),r)for(let o=0;o<r.length;o++)n=n.querySelector(r[o])||n;return n}function XR(t){let e=t.querySelectorAll(nA?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let A=e[n];A.childNodes.length==1&&A.textContent==" "&&A.parentNode&&A.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),A)}}function ZR(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,A;try{A=JSON.parse(e)}catch{return t}let{content:r,openStart:o,openEnd:i}=t;for(let a=A.length-2;a>=0;a-=2){let l=n.nodes[A[a]];if(!l||l.hasRequiredAttrs())break;r=Qe.from(l.create(A[a+1],r)),o++,i++}return new Ne(r,o,i)}const dA={},fA={},e4={touchstart:!0,touchmove:!0};class t4{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function n4(t){for(let e in dA){let n=dA[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=A=>{r4(t,A)&&!xm(t,A)&&(t.editable||!(A.type in fA))&&n(t,A)},e4[e]?{passive:!0}:void 0)}uA&&t.dom.addEventListener("input",()=>null),Qm(t)}function mi(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function A4(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Qm(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=A=>xm(t,A))})}function xm(t,e){return t.someProp("handleDOMEvents",n=>{let A=n[e.type];return A?A(t,e)||e.defaultPrevented:!1})}function r4(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function o4(t,e){!xm(t,e)&&dA[e.type]&&(t.editable||!(e.type in fA))&&dA[e.type](t,e)}fA.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!K1(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Qo&&nA&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ha&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let A=Date.now();t.input.lastIOSEnter=A,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==A&&(t.someProp("handleKeyDown",r=>r(t,ds(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",A=>A(t,n))||GR(t,n)?n.preventDefault():mi(t,"key")},fA.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},fA.keypress=(t,e)=>{let n=e;if(K1(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ar&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let A=t.state.selection;if(!(A instanceof nt)||!A.$from.sameParent(A.$to)){let r=String.fromCharCode(n.charCode),o=()=>t.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,A.$from.pos,A.$to.pos,r,o))&&t.dispatch(o()),n.preventDefault()}};function Ou(t){return{left:t.clientX,top:t.clientY}}function i4(t,e){let n=e.x-t.clientX,A=e.y-t.clientY;return n*n+A*A<100}function Um(t,e,n,A,r){if(A==-1)return!1;let o=t.state.doc.resolve(A);for(let i=o.depth+1;i>0;i--)if(t.someProp(e,a=>i>o.depth?a(t,n,o.nodeAfter,o.before(i),r,!0):a(t,n,o.node(i),o.before(i),r,!1)))return!0;return!1}function ga(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let A=t.state.tr.setSelection(e);A.setMeta("pointer",!0),t.dispatch(A)}function s4(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),A=n.nodeAfter;return A&&A.isAtom&&We.isSelectable(A)?(ga(t,new We(n)),!0):!1}function a4(t,e){if(e==-1)return!1;let n=t.state.selection,A,r;n instanceof We&&(A=n.node);let o=t.state.doc.resolve(e);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i);if(We.isSelectable(a)){A&&n.$from.depth>0&&i>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?r=o.before(n.$from.depth):r=o.before(i);break}}return r!=null?(ga(t,We.create(t.state.doc,r)),!0):!1}function l4(t,e,n,A,r){return Um(t,"handleClickOn",e,n,A)||t.someProp("handleClick",o=>o(t,e,A))||(r?a4(t,n):s4(t,n))}function c4(t,e,n,A){return Um(t,"handleDoubleClickOn",e,n,A)||t.someProp("handleDoubleClick",r=>r(t,e,A))}function u4(t,e,n,A){return Um(t,"handleTripleClickOn",e,n,A)||t.someProp("handleTripleClick",r=>r(t,e,A))||d4(t,n,A)}function d4(t,e,n){if(n.button!=0)return!1;let A=t.state.doc;if(e==-1)return A.inlineContent?(ga(t,nt.create(A,0,A.content.size)),!0):!1;let r=A.resolve(e);for(let o=r.depth+1;o>0;o--){let i=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(i.inlineContent)ga(t,nt.create(A,a+1,a+1+i.content.size));else if(We.isSelectable(i))ga(t,We.create(A,a));else continue;return!0}}function Im(t){return Lu(t)}const $1=Ar?"metaKey":"ctrlKey";dA.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let A=Im(t),r=Date.now(),o="singleClick";r-t.input.lastClick.time<500&&i4(n,t.input.lastClick)&&!n[$1]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:o,button:n.button};let i=t.posAtCoords(Ou(n));i&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new f4(t,i,n,!!A)):(o=="doubleClick"?c4:u4)(t,i.pos,i.inside,n)?n.preventDefault():mi(t,"pointer"))};class f4{constructor(e,n,A,r){this.view=e,this.pos=n,this.event=A,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!A[$1],this.allowDefault=A.shiftKey;let o,i;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),i=n.inside;else{let f=e.state.doc.resolve(n.pos);o=f.parent,i=f.depth?f.before():0}const a=r?null:A.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=e.state;(A.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof We&&u.from<=i&&u.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ur&&!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(()=>{this.view.input.mouseDown==this&&this.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)),mi(e,"pointer")}done(){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.delayedSelectionSync&&setTimeout(()=>Uo(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Ou(e))),this.updateAllowDefault(e),this.allowDefault||!n?mi(this.view,"pointer"):l4(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||uA&&this.mightDrag&&!this.mightDrag.node.isAtom||nA&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(ga(this.view,it.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):mi(this.view,"pointer")}move(e){this.updateAllowDefault(e),mi(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}dA.touchstart=t=>{t.input.lastTouch=Date.now(),Im(t),mi(t,"pointer")},dA.touchmove=t=>{t.input.lastTouch=Date.now(),mi(t,"pointer")},dA.contextmenu=t=>Im(t);function K1(t,e){return t.composing?!0:uA&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const h4=Qo?5e3:-1;fA.compositionstart=fA.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof nt&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(A=>A.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Lu(t,!0),t.markCursor=null;else if(Lu(t,!e.selection.empty),Ur&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let A=t.domSelectionRange();for(let r=A.focusNode,o=A.focusOffset;r&&r.nodeType==1&&o!=0;){let i=o<0?r.lastChild:r.childNodes[o-1];if(!i)break;if(i.nodeType==3){let a=t.domSelection();a&&a.collapse(i,i.nodeValue.length);break}else r=i,o=-1}}t.input.composing=!0}z1(t,h4)},fA.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,z1(t,20))};function z1(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Lu(t),e))}function W1(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=m4());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function p4(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=sR(e.focusNode,e.focusOffset),A=aR(e.focusNode,e.focusOffset);if(n&&A&&n!=A){let r=A.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||A==o)return o;if(!r||!r.isText(A.nodeValue))return A;if(t.input.compositionNode==A){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return A}}return n||A}function m4(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Lu(t,e=!1){if(!(Qo&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),W1(t),e||t.docView&&t.docView.dirty){let n=wm(t),A=t.state.selection;return n&&!n.eq(A)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!A.$from.node(A.$from.sharedDepth(A.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function g4(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let A=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),A.removeAllRanges(),A.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Pl=SA&&di<15||ha&&fR<604;dA.copy=fA.cut=(t,e)=>{let n=e,A=t.state.selection,r=n.type=="cut";if(A.empty)return;let o=Pl?null:n.clipboardData,i=A.content(),{dom:a,text:l}=km(t,i);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):g4(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function B4(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function y4(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,A=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(A.contentEditable="true"),A.style.cssText="position: fixed; left: -10000px; top: 10px",A.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),A.parentNode&&A.parentNode.removeChild(A),n?Rl(t,A.value,null,r,e):Rl(t,A.textContent,A.innerHTML,r,e)},50)}function Rl(t,e,n,A,r){let o=M1(t,e,n,A,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,o||Ne.empty)))return!0;if(!o)return!1;let i=B4(o),a=i?t.state.tr.replaceSelectionWith(i,A):t.state.tr.replaceSelection(o);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function G1(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}fA.paste=(t,e)=>{let n=e;if(t.composing&&!Qo)return;let A=Pl?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;A&&Rl(t,G1(A),A.getData("text/html"),r,n)?n.preventDefault():y4(t,n)};class Y1{constructor(e,n,A){this.slice=e,this.move=n,this.node=A}}const w4=Ar?"altKey":"ctrlKey";function j1(t,e){let n=t.someProp("dragCopies",A=>!A(e));return n??!e[w4]}dA.dragstart=(t,e)=>{let n=e,A=t.input.mouseDown;if(A&&A.done(),!n.dataTransfer)return;let r=t.state.selection,o=r.empty?null:t.posAtCoords(Ou(n)),i;if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof We?r.to-1:r.to))){if(A&&A.mightDrag)i=We.create(t.state.doc,A.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let h=t.docView.nearestDesc(n.target,!0);h&&h.node.type.spec.draggable&&h!=t.docView&&(i=We.create(t.state.doc,h.posBefore))}}let a=(i||t.state.selection).content(),{dom:l,text:u,slice:f}=km(t,a);(!n.dataTransfer.files.length||!nA||t1>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Pl?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Pl||n.dataTransfer.setData("text/plain",u),t.dragging=new Y1(f,j1(t,n),i)},dA.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},fA.dragover=fA.dragenter=(t,e)=>e.preventDefault(),fA.drop=(t,e)=>{let n=e,A=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(Ou(n));if(!r)return;let o=t.state.doc.resolve(r.pos),i=A&&A.slice;i?t.someProp("transformPasted",B=>{i=B(i,t)}):i=M1(t,G1(n.dataTransfer),Pl?null:n.dataTransfer.getData("text/html"),!1,o);let a=!!(A&&j1(t,n));if(t.someProp("handleDrop",B=>B(t,n,i||Ne.empty,a))){n.preventDefault();return}if(!i)return;n.preventDefault();let l=i?Nb(t.state.doc,o.pos,i):o.pos;l==null&&(l=o.pos);let u=t.state.tr;if(a){let{node:B}=A;B?B.replace(u):u.deleteSelection()}let f=u.mapping.map(l),h=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,p=u.doc;if(h?u.replaceRangeWith(f,f,i.content.firstChild):u.replaceRange(f,f,i),u.doc.eq(p))return;let g=u.doc.resolve(f);if(h&&We.isSelectable(i.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(i.content.firstChild))u.setSelection(new We(g));else{let B=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,C,w,F)=>B=F),u.setSelection(bm(t,g,u.doc.resolve(B)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},dA.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Uo(t)},20))},dA.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},dA.beforeinput=(t,e)=>{if(nA&&Qo&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:A}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=A||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,ds(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in fA)dA[t]=fA[t];function Vl(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Nu{constructor(e,n){this.toDOM=e,this.spec=n||ms,this.side=this.spec.side||0}map(e,n,A,r){let{pos:o,deleted:i}=e.mapResult(n.from+r,this.side<0?-1:1);return i?null:new hA(o-A,o-A,this)}valid(){return!0}eq(e){return this==e||e instanceof Nu&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vl(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class gi{constructor(e,n){this.attrs=e,this.spec=n||ms}map(e,n,A,r){let o=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-A,i=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-A;return o>=i?null:new hA(o,i,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof gi&&Vl(this.attrs,e.attrs)&&Vl(this.spec,e.spec)}static is(e){return e.type instanceof gi}destroy(){}}class _m{constructor(e,n){this.attrs=e,this.spec=n||ms}map(e,n,A,r){let o=e.mapResult(n.from+r,1);if(o.deleted)return null;let i=e.mapResult(n.to+r,-1);return i.deleted||i.pos<=o.pos?null:new hA(o.pos-A,i.pos-A,this)}valid(e,n){let{index:A,offset:r}=e.content.findIndex(n.from),o;return r==n.from&&!(o=e.child(A)).isText&&r+o.nodeSize==n.to}eq(e){return this==e||e instanceof _m&&Vl(this.attrs,e.attrs)&&Vl(this.spec,e.spec)}destroy(){}}class hA{constructor(e,n,A){this.from=e,this.to=n,this.type=A}copy(e,n){return new hA(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,A){return this.type.map(e,this,n,A)}static widget(e,n,A){return new hA(e,e,new Nu(n,A))}static inline(e,n,A,r){return new hA(e,n,new gi(A,r))}static node(e,n,A,r){return new hA(e,n,new _m(A,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof gi}get widget(){return this.type instanceof Nu}}const Ba=[],ms={};class tn{constructor(e,n){this.local=e.length?e:Ba,this.children=n.length?n:Ba}static create(e,n){return n.length?Hu(n,e,0,ms):AA}find(e,n,A){let r=[];return this.findInner(e??0,n??1e9,r,0,A),r}findInner(e,n,A,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=n&&a.to>=e&&(!o||o(a.spec))&&A.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<n&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,n-a,A,r+a,o)}}map(e,n,A){return this==AA||e.maps.length==0?this:this.mapInner(e,n,0,0,A||ms)}mapInner(e,n,A,r,o){let i;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,A,r);l&&l.type.valid(n,l)?(i||(i=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?C4(this.children,i||[],e,n,A,r,o):i?new tn(i.sort(gs),Ba):AA}add(e,n){return n.length?this==AA?tn.create(e,n):this.addInner(e,n,0):this}addInner(e,n,A){let r,o=0;e.forEach((a,l)=>{let u=l+A,f;if(f=J1(n,a,u)){for(r||(r=this.children.slice());o<r.length&&r[o]<l;)o+=3;r[o]==l?r[o+2]=r[o+2].addInner(a,f,u+1):r.splice(o,0,l,l+a.nodeSize,Hu(f,a,u+1,ms)),o+=3}});let i=q1(o?X1(n):n,-A);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||i.splice(a--,1);return new tn(i.length?this.local.concat(i).sort(gs):this.local,r||this.children)}remove(e){return e.length==0||this==AA?this:this.removeInner(e,0)}removeInner(e,n){let A=this.children,r=this.local;for(let o=0;o<A.length;o+=3){let i,a=A[o]+n,l=A[o+1]+n;for(let f=0,h;f<e.length;f++)(h=e[f])&&h.from>a&&h.to<l&&(e[f]=null,(i||(i=[])).push(h));if(!i)continue;A==this.children&&(A=this.children.slice());let u=A[o+2].removeInner(i,a+1);u!=AA?A[o+2]=u:(A.splice(o,3),o-=3)}if(r.length){for(let o=0,i;o<e.length;o++)if(i=e[o])for(let a=0;a<r.length;a++)r[a].eq(i,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return A==this.children&&r==this.local?this:r.length||A.length?new tn(r,A):AA}forChild(e,n){if(this==AA)return this;if(n.isLeaf)return tn.empty;let A,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(A=this.children[a+2]);break}let o=e+1,i=o+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<i&&l.to>o&&l.type instanceof gi){let u=Math.max(o,l.from)-o,f=Math.min(i,l.to)-o;u<f&&(r||(r=[])).push(l.copy(u,f))}}if(r){let a=new tn(r.sort(gs),Ba);return A?new Bi([a,A]):a}return A||AA}eq(e){if(this==e)return!0;if(!(e instanceof tn)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let 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}locals(e){return Tm(this.localsInner(e))}localsInner(e){if(this==AA)return Ba;if(e.inlineContent||!this.local.some(gi.is))return this.local;let n=[];for(let A=0;A<this.local.length;A++)this.local[A].type instanceof gi||n.push(this.local[A]);return n}forEachSet(e){e(this)}}tn.empty=new tn([],[]),tn.removeOverlap=Tm;const AA=tn.empty;class Bi{constructor(e){this.members=e}map(e,n){const A=this.members.map(r=>r.map(e,n,ms));return Bi.from(A)}forChild(e,n){if(n.isLeaf)return tn.empty;let A=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,n);o!=AA&&(o instanceof Bi?A=A.concat(o.members):A.push(o))}return Bi.from(A)}eq(e){if(!(e instanceof Bi)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,A=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(!n)n=o;else{A&&(n=n.slice(),A=!1);for(let i=0;i<o.length;i++)n.push(o[i])}}return n?Tm(A?n:n.sort(gs)):Ba}static from(e){switch(e.length){case 0:return AA;case 1:return e[0];default:return new Bi(e.every(n=>n instanceof tn)?e:e.reduce((n,A)=>n.concat(A instanceof tn?A:A.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function C4(t,e,n,A,r,o,i){let a=t.slice();for(let u=0,f=o;u<n.maps.length;u++){let h=0;n.maps[u].forEach((p,g,B,y)=>{let C=y-B-(g-p);for(let w=0;w<a.length;w+=3){let F=a[w+1];if(F<0||p>F+f-h)continue;let _=a[w]+f-h;g>=_?a[w+1]=p<=_?-2:-1:p>=f&&C&&(a[w]+=C,a[w+1]+=C)}h+=C}),f=n.maps[u].map(f,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let f=n.map(t[u]+o),h=f-r;if(h<0||h>=A.content.size){l=!0;continue}let p=n.map(t[u+1]+o,-1),g=p-r,{index:B,offset:y}=A.content.findIndex(h),C=A.maybeChild(B);if(C&&y==h&&y+C.nodeSize==g){let w=a[u+2].mapInner(n,C,f+1,t[u]+o+1,i);w!=AA?(a[u]=h,a[u+1]=g,a[u+2]=w):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=b4(a,t,e,n,r,o,i),f=Hu(u,A,0,i);e=f.local;for(let h=0;h<a.length;h+=3)a[h+1]<0&&(a.splice(h,3),h-=3);for(let h=0,p=0;h<f.children.length;h+=3){let g=f.children[h];for(;p<a.length&&a[p]<g;)p+=3;a.splice(p,0,f.children[h],f.children[h+1],f.children[h+2])}}return new tn(e.sort(gs),a)}function q1(t,e){if(!e||!t.length)return t;let n=[];for(let A=0;A<t.length;A++){let r=t[A];n.push(new hA(r.from+e,r.to+e,r.type))}return n}function b4(t,e,n,A,r,o,i){function a(l,u){for(let f=0;f<l.local.length;f++){let h=l.local[f].map(A,r,u);h?n.push(h):i.onRemove&&i.onRemove(l.local[f].spec)}for(let f=0;f<l.children.length;f+=3)a(l.children[f+2],l.children[f]+u+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+o+1);return n}function J1(t,e,n){if(e.isLeaf)return null;let A=n+e.nodeSize,r=null;for(let o=0,i;o<t.length;o++)(i=t[o])&&i.from>n&&i.to<A&&((r||(r=[])).push(i),t[o]=null);return r}function X1(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Hu(t,e,n,A){let r=[],o=!1;e.forEach((a,l)=>{let u=J1(t,a,l+n);if(u){o=!0;let f=Hu(u,a,n+l+1,A);f!=AA&&r.push(l,l+a.nodeSize,f)}});let i=q1(o?X1(t):t,-n).sort(gs);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||(A.onRemove&&A.onRemove(i[a].spec),i.splice(a--,1));return i.length||r.length?new tn(i,r):AA}function gs(t,e){return t.from-e.from||t.to-e.to}function Tm(t){let e=t;for(let n=0;n<e.length-1;n++){let A=e[n];if(A.from!=A.to)for(let r=n+1;r<e.length;r++){let o=e[r];if(o.from==A.from){o.to!=A.to&&(e==t&&(e=t.slice()),e[r]=o.copy(o.from,A.to),Z1(e,r+1,o.copy(A.to,o.to)));continue}else{o.from<A.to&&(e==t&&(e=t.slice()),e[n]=A.copy(A.from,o.from),Z1(e,r,A.copy(o.from,A.to)));break}}}return e}function Z1(t,e,n){for(;e<t.length&&gs(n,t[e])>0;)e++;t.splice(e,0,n)}function Dm(t){let e=[];return t.someProp("decorations",n=>{let A=n(t.state);A&&A!=AA&&e.push(A)}),t.cursorWrapper&&e.push(tn.create(t.state.doc,[t.cursorWrapper.deco])),Bi.from(e)}const v4={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},E4=SA&&di<=11;class k4{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class S4{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new k4,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(A=>{for(let r=0;r<A.length;r++)this.queue.push(A[r]);SA&&di<=11&&A.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),E4&&(this.onCharData=A=>{this.queue.push({target:A.target,type:"characterData",oldValue:A.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,v4)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(F1(this.view)){if(this.suppressingSelectionUpdates)return Uo(this.view);if(SA&&di<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&us(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,A;for(let o=e.focusNode;o;o=fa(o))n.add(o);for(let o=e.anchorNode;o;o=fa(o))if(n.has(o)){A=o;break}let r=A&&this.view.docView.nearestDesc(A);if(r&&r.ignoreMutation({type:"selection",target:A.nodeType==3?A.parentNode:A}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let A=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(A)&&F1(e)&&!this.ignoreSelectionChange(A),o=-1,i=-1,a=!1,l=[];if(e.editable)for(let f=0;f<n.length;f++){let h=this.registerMutation(n[f],l);h&&(o=o<0?h.from:Math.min(h.from,o),i=i<0?h.to:Math.max(h.to,i),h.typeOver&&(a=!0))}if(Ur&&l.length){let f=l.filter(h=>h.nodeName=="BR");if(f.length==2){let[h,p]=f;h.parentNode&&h.parentNode.parentNode==p.parentNode?p.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let p of f){let g=p.parentNode;g&&g.nodeName=="LI"&&(!h||x4(e,h)!=g)&&p.remove()}}}let u=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&_u(A)&&(u=wm(e))&&u.eq(it.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Uo(e),this.currentSelection.set(A),e.scrollToSelection()):(o>-1||r)&&(o>-1&&(e.docView.markDirty(o,i),F4(e)),this.handleDOMChange(o,i,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(A)||Uo(e),this.currentSelection.set(A))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let A=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(A==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!A||A.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++){let h=e.addedNodes[f];n.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(A.contentDOM&&A.contentDOM!=A.dom&&!A.contentDOM.contains(e.target))return{from:A.posBefore,to:A.posAfter};let r=e.previousSibling,o=e.nextSibling;if(SA&&di<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:h,nextSibling:p}=e.addedNodes[f];(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(r=h),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(o=p)}let i=r&&r.parentNode==e.target?Wn(r)+1:0,a=A.localPosFromDOM(e.target,i,-1),l=o&&o.parentNode==e.target?Wn(o):e.target.childNodes.length,u=A.localPosFromDOM(e.target,l,1);return{from:a,to:u}}else return e.type=="attributes"?{from:A.posAtStart-A.border,to:A.posAtEnd+A.border}:(this.lastChangedTextNode=e.target,{from:A.posAtStart,to:A.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let ev=new WeakMap,tv=!1;function F4(t){if(!ev.has(t)&&(ev.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Ur,tv)return;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."),tv=!0}}function nv(t,e){let n=e.startContainer,A=e.startOffset,r=e.endContainer,o=e.endOffset,i=t.domAtPos(t.state.selection.anchor);return us(i.node,i.offset,r,o)&&([n,A,r,o]=[r,o,n,A]),{anchorNode:n,anchorOffset:A,focusNode:r,focusOffset:o}}function Q4(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return nv(t,r)}let n;function A(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",A,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",A,!0),n?nv(t,n):null}function x4(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let A=t.docView.nearestDesc(n,!0);if(A&&A.node.isBlock)return n}return null}function U4(t,e,n){let{node:A,fromOffset:r,toOffset:o,from:i,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,f=l.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(u=[{node:f,offset:l.anchorOffset}],_u(l)||u.push({node:l.focusNode,offset:l.focusOffset})),nA&&t.input.lastKeyCode===8)for(let C=o;C>r;C--){let w=A.childNodes[C-1],F=w.pmViewDesc;if(w.nodeName=="BR"&&!F){o=C;break}if(!F||F.size)break}let h=t.state.doc,p=t.someProp("domParser")||si.fromSchema(t.state.schema),g=h.resolve(i),B=null,y=p.parse(A,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:r,to:o,preserveWhitespace:g.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:I4,context:g});if(u&&u[0].pos!=null){let C=u[0].pos,w=u[1]&&u[1].pos;w==null&&(w=C),B={anchor:C+i,head:w+i}}return{doc:y,sel:B,from:i,to:a}}function I4(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(uA&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||uA&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const _4=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function T4(t,e,n,A,r){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let te=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,Z=wm(t,te);if(Z&&!t.state.selection.eq(Z)){if(nA&&Qo&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",pe=>pe(t,ds(13,"Enter"))))return;let ne=t.state.tr.setSelection(Z);te=="pointer"?ne.setMeta("pointer",!0):te=="key"&&ne.scrollIntoView(),o&&ne.setMeta("composition",o),t.dispatch(ne)}return}let i=t.state.doc.resolve(e),a=i.sharedDepth(n);e=i.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,u=U4(t,e,n),f=t.state.doc,h=f.slice(u.from,u.to),p,g;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,g="end"):(p=t.state.selection.from,g="start"),t.input.lastKeyCode=null;let B=O4(h.content,u.doc.content,u.from,p,g);if(B&&t.input.domChangeCount++,(ha&&t.input.lastIOSEnter>Date.now()-225||Qo)&&r.some(te=>te.nodeType==1&&!_4.test(te.nodeName))&&(!B||B.endA>=B.endB)&&t.someProp("handleKeyDown",te=>te(t,ds(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!B)if(A&&l instanceof nt&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))B={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let te=Av(t,t.state.doc,u.sel);if(te&&!te.eq(t.state.selection)){let Z=t.state.tr.setSelection(te);o&&Z.setMeta("composition",o),t.dispatch(Z)}}return}t.state.selection.from<t.state.selection.to&&B.start==B.endB&&t.state.selection instanceof nt&&(B.start>t.state.selection.from&&B.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?B.start=t.state.selection.from:B.endA<t.state.selection.to&&B.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(B.endB+=t.state.selection.to-B.endA,B.endA=t.state.selection.to)),SA&&di<=11&&B.endB==B.start+1&&B.endA==B.start&&B.start>u.from&&u.doc.textBetween(B.start-u.from-1,B.start-u.from+1)=="  "&&(B.start--,B.endA--,B.endB--);let y=u.doc.resolveNoCache(B.start-u.from),C=u.doc.resolveNoCache(B.endB-u.from),w=f.resolve(B.start),F=y.sameParent(C)&&y.parent.inlineContent&&w.end()>=B.endA,_;if((ha&&t.input.lastIOSEnter>Date.now()-225&&(!F||r.some(te=>te.nodeName=="DIV"||te.nodeName=="P"))||!F&&y.pos<u.doc.content.size&&(!y.sameParent(C)||!y.parent.inlineContent)&&!/\S/.test(u.doc.textBetween(y.pos,C.pos,"",""))&&(_=it.findFrom(u.doc.resolve(y.pos+1),1,!0))&&_.head>y.pos)&&t.someProp("handleKeyDown",te=>te(t,ds(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>B.start&&M4(f,B.start,B.endA,y,C)&&t.someProp("handleKeyDown",te=>te(t,ds(8,"Backspace")))){Qo&&nA&&t.domObserver.suppressSelectionUpdates();return}nA&&B.endB==B.start&&(t.input.lastChromeDelete=Date.now()),Qo&&!F&&y.start()!=C.start()&&C.parentOffset==0&&y.depth==C.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==B.endA&&(B.endB-=2,C=u.doc.resolveNoCache(B.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(te){return te(t,ds(13,"Enter"))})},20));let D=B.start,P=B.endA,T=te=>{let Z=te||t.state.tr.replace(D,P,u.doc.slice(B.start-u.from,B.endB-u.from));if(u.sel){let ne=Av(t,Z.doc,u.sel);ne&&!(nA&&t.composing&&ne.empty&&(B.start!=B.endB||t.input.lastChromeDelete<Date.now()-100)&&(ne.head==D||ne.head==Z.mapping.map(P)-1)||SA&&ne.empty&&ne.head==D)&&Z.setSelection(ne)}return o&&Z.setMeta("composition",o),Z.scrollIntoView()},H;if(F){if(y.pos==C.pos){SA&&di<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Uo(t),20));let te=T(t.state.tr.delete(D,P)),Z=f.resolve(B.start).marksAcross(f.resolve(B.endA));Z&&te.ensureMarks(Z),t.dispatch(te)}else if(B.endA==B.endB&&(H=D4(y.parent.content.cut(y.parentOffset,C.parentOffset),w.parent.content.cut(w.parentOffset,B.endA-w.start())))){let te=T(t.state.tr);H.type=="add"?te.addMark(D,P,H.mark):te.removeMark(D,P,H.mark),t.dispatch(te)}else if(y.parent.child(y.index()).isText&&y.index()==C.index()-(C.textOffset?0:1)){let te=y.parent.textBetween(y.parentOffset,C.parentOffset),Z=()=>T(t.state.tr.insertText(te,D,P));t.someProp("handleTextInput",ne=>ne(t,D,P,te,Z))||t.dispatch(Z())}}else t.dispatch(T())}function Av(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:bm(t,e.resolve(n.anchor),e.resolve(n.head))}function D4(t,e){let n=t.firstChild.marks,A=e.firstChild.marks,r=n,o=A,i,a,l;for(let f=0;f<A.length;f++)r=A[f].removeFromSet(r);for(let f=0;f<n.length;f++)o=n[f].removeFromSet(o);if(r.length==1&&o.length==0)a=r[0],i="add",l=f=>f.mark(a.addToSet(f.marks));else if(r.length==0&&o.length==1)a=o[0],i="remove",l=f=>f.mark(a.removeFromSet(f.marks));else return null;let u=[];for(let f=0;f<e.childCount;f++)u.push(l(e.child(f)));if(Qe.from(u).eq(t))return{mark:a,type:i}}function M4(t,e,n,A,r){if(n-e<=r.pos-A.pos||Mm(A,!0,!1)<r.pos)return!1;let o=t.resolve(e);if(!A.parent.isTextblock){let a=o.nodeAfter;return a!=null&&n==e+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let i=t.resolve(Mm(o,!0,!0));return!i.parent.isTextblock||i.pos>n||Mm(i,!0,!1)<n?!1:A.parent.content.cut(A.parentOffset).eq(i.parent.content)}function Mm(t,e,n){let A=t.depth,r=e?t.end():t.pos;for(;A>0&&(e||t.indexAfter(A)==t.node(A).childCount);)A--,r++,e=!1;if(n){let o=t.node(A).maybeChild(t.indexAfter(A));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}function O4(t,e,n,A,r){let o=t.findDiffStart(e,n);if(o==null)return null;let{a:i,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,o-Math.min(i,a));A-=i+l-o}if(i<o&&t.size<e.size){let l=A<=o&&A>=i?o-A:0;o-=l,o&&o<e.size&&rv(e.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-i),i=o}else if(a<o){let l=A<=o&&A>=a?o-A:0;o-=l,o&&o<t.size&&rv(t.textBetween(o-1,o+1))&&(o+=l?1:-1),i=o+(i-a),a=o}return{start:o,endA:i,endB:a}}function rv(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class ov{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new t4,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(cv),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=av(this),sv(this),this.nodeViews=lv(this),this.docView=p1(this.state.doc,iv(this),Dm(this),this.dom,this),this.domObserver=new S4(this,(A,r,o,i)=>T4(this,A,r,o,i)),this.domObserver.start(),n4(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Qm(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(cv),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let A in this._props)n[A]=this._props[A];n.state=this.state;for(let A in e)n[A]=e[A];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var A;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(W1(this),i=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let g=lv(this);N4(g,this.nodeViews)&&(this.nodeViews=g,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Qm(this),this.editable=av(this),sv(this);let l=Dm(this),u=iv(this),f=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=o||!this.docView.matchesNode(e.doc,u,l);(h||!e.selection.eq(r.selection))&&(i=!0);let p=f=="preserve"&&i&&this.dom.style.overflowAnchor==null&&mR(this);if(i){this.domObserver.stop();let g=h&&(SA||nA)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&L4(r.selection,e.selection);if(h){let B=nA?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=p4(this)),(o||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=p1(e.doc,u,l,this.dom,this)),B&&!this.trackWrites&&(g=!0)}g||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&PR(this))?Uo(this,g):(k1(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((A=this.dragging)===null||A===void 0)&&A.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():p&&gR(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof We){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&n1(this,n.getBoundingClientRect(),e)}else n1(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let A=this.directPlugins[n];A.spec.view&&this.pluginViews.push(A.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let A=this.state.plugins[n];A.spec.view&&this.pluginViews.push(A.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let A=this.pluginViews[n];A.update&&A.update(this,e)}}updateDraggedNode(e,n){let A=e.node,r=-1;if(this.state.doc.nodeAt(A.from)==A.node)r=A.from;else{let o=A.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&this.state.doc.nodeAt(o))==A.node&&(r=o)}this.dragging=new Y1(e.slice,e.move,r<0?void 0:We.create(this.state.doc,r))}someProp(e,n){let A=this._props&&this._props[e],r;if(A!=null&&(r=n?n(A):A))return r;for(let i=0;i<this.directPlugins.length;i++){let a=this.directPlugins[i].props[e];if(a!=null&&(r=n?n(a):a))return r}let o=this.state.plugins;if(o)for(let i=0;i<o.length;i++){let a=o[i].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(SA){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&BR(this.dom),Uo(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return vR(this,e)}coordsAtPos(e,n=1){return a1(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,A=-1){let r=this.docView.posFromDOM(e,n,A);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return QR(this,n||this.state,e)}pasteHTML(e,n){return Rl(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Rl(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return km(this,e)}destroy(){this.docView&&(A4(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Dm(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,oR())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return o4(this,e)}domSelectionRange(){let e=this.domSelection();return e?uA&&this.root.nodeType===11&&cR(this.dom.ownerDocument)==this.dom&&Q4(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}ov.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function iv(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let A in n)A=="class"?e.class+=" "+n[A]:A=="style"?e.style=(e.style?e.style+";":"")+n[A]:!e[A]&&A!="contenteditable"&&A!="nodeName"&&(e[A]=String(n[A]))}),e.translate||(e.translate="no"),[hA.node(0,t.state.doc.content.size,e)]}function sv(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:hA.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function av(t){return!t.someProp("editable",e=>e(t.state)===!1)}function L4(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function lv(t){let e=Object.create(null);function n(A){for(let r in A)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=A[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function N4(t,e){let n=0,A=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)A++;return n!=A}function cv(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var yi={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:"'"},Pu={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},H4=typeof navigator<"u"&&/Mac/.test(navigator.platform),P4=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Gn=0;Gn<10;Gn++)yi[48+Gn]=yi[96+Gn]=String(Gn);for(var Gn=1;Gn<=24;Gn++)yi[Gn+111]="F"+Gn;for(var Gn=65;Gn<=90;Gn++)yi[Gn]=String.fromCharCode(Gn+32),Pu[Gn]=String.fromCharCode(Gn);for(var Om in yi)Pu.hasOwnProperty(Om)||(Pu[Om]=yi[Om]);function R4(t){var e=H4&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||P4&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Pu:yi)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const V4=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),$4=typeof navigator<"u"&&/Win/.test(navigator.platform);function K4(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let A,r,o,i;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))A=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))V4?i=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return A&&(n="Alt-"+n),r&&(n="Ctrl-"+n),i&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function z4(t){let e=Object.create(null);for(let n in t)e[K4(n)]=t[n];return e}function Lm(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function W4(t){return new sn({props:{handleKeyDown:uv(t)}})}function uv(t){let e=z4(t);return function(n,A){let r=R4(A),o,i=e[Lm(r,A)];if(i&&i(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(A.shiftKey){let a=e[Lm(r,A,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((A.altKey||A.metaKey||A.ctrlKey)&&!($4&&A.ctrlKey&&A.altKey)&&(o=yi[A.keyCode])&&o!=r){let a=e[Lm(o,A)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Nm=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function dv(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const fv=(t,e,n)=>{let A=dv(t,n);if(!A)return!1;let r=Hm(A);if(!r){let i=A.blockRange(),a=i&&aa(i);return a==null?!1:(e&&e(t.tr.lift(i,a).scrollIntoView()),!0)}let o=r.nodeBefore;if(bv(t,r,e,-1))return!0;if(A.parent.content.size==0&&(ya(o,"end")||We.isSelectable(o)))for(let i=A.depth;;i--){let a=xu(t.doc,A.before(i),A.after(i),Ne.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(ya(o,"end")?it.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):We.create(l.doc,r.pos-o.nodeSize)),e(l.scrollIntoView())}return!0}if(i==1||A.node(i-1).childCount>1)break}return o.isAtom&&r.depth==A.depth-1?(e&&e(t.tr.delete(r.pos-o.nodeSize,r.pos).scrollIntoView()),!0):!1},G4=(t,e,n)=>{let A=dv(t,n);if(!A)return!1;let r=Hm(A);return r?hv(t,r,e):!1},Y4=(t,e,n)=>{let A=mv(t,n);if(!A)return!1;let r=Pm(A);return r?hv(t,r,e):!1};function hv(t,e,n){let A=e.nodeBefore,r=A,o=e.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let i=e.nodeAfter,a=i,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let f=a.firstChild;if(!f)return!1;a=f}let u=xu(t.doc,o,l,Ne.empty);if(!u||u.from!=o||u instanceof Ln&&u.slice.size>=l-o)return!1;if(n){let f=t.tr.step(u);f.setSelection(nt.create(f.doc,o)),n(f.scrollIntoView())}return!0}function ya(t,e,n=!1){for(let A=t;A;A=e=="start"?A.firstChild:A.lastChild){if(A.isTextblock)return!0;if(n&&A.childCount!=1)return!1}return!1}const pv=(t,e,n)=>{let{$head:A,empty:r}=t.selection,o=A;if(!r)return!1;if(A.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):A.parentOffset>0)return!1;o=Hm(A)}let i=o&&o.nodeBefore;return!i||!We.isSelectable(i)?!1:(e&&e(t.tr.setSelection(We.create(t.doc,o.pos-i.nodeSize)).scrollIntoView()),!0)};function Hm(t){if(!t.parent.type.spec.isolating)for(let 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}function mv(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const gv=(t,e,n)=>{let A=mv(t,n);if(!A)return!1;let r=Pm(A);if(!r)return!1;let o=r.nodeAfter;if(bv(t,r,e,1))return!0;if(A.parent.content.size==0&&(ya(o,"start")||We.isSelectable(o))){let i=xu(t.doc,A.before(),A.after(),Ne.empty);if(i&&i.slice.size<i.to-i.from){if(e){let a=t.tr.step(i);a.setSelection(ya(o,"start")?it.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):We.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return o.isAtom&&r.depth==A.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+o.nodeSize).scrollIntoView()),!0):!1},Bv=(t,e,n)=>{let{$head:A,empty:r}=t.selection,o=A;if(!r)return!1;if(A.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):A.parentOffset<A.parent.content.size)return!1;o=Pm(A)}let i=o&&o.nodeAfter;return!i||!We.isSelectable(i)?!1:(e&&e(t.tr.setSelection(We.create(t.doc,o.pos)).scrollIntoView()),!0)};function Pm(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const j4=(t,e)=>{let n=t.selection,A=n instanceof We,r;if(A){if(n.node.isTextblock||!ci(t.doc,n.from))return!1;r=n.from}else if(r=Qu(t.doc,n.from,-1),r==null)return!1;if(e){let o=t.tr.join(r);A&&o.setSelection(We.create(o.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},q4=(t,e)=>{let n=t.selection,A;if(n instanceof We){if(n.node.isTextblock||!ci(t.doc,n.to))return!1;A=n.to}else if(A=Qu(t.doc,n.to,1),A==null)return!1;return e&&e(t.tr.join(A).scrollIntoView()),!0},J4=(t,e)=>{let{$from:n,$to:A}=t.selection,r=n.blockRange(A),o=r&&aa(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},yv=(t,e)=>{let{$head:n,$anchor:A}=t.selection;return!n.parent.type.spec.code||!n.sameParent(A)?!1:(e&&e(t.tr.insertText(`
34
+ `).scrollIntoView()),!0)};function Rm(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const X4=(t,e)=>{let{$head:n,$anchor:A}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(A))return!1;let r=n.node(-1),o=n.indexAfter(-1),i=Rm(r.contentMatchAt(o));if(!i||!r.canReplaceWith(o,o,i))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,i.createAndFill());l.setSelection(it.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},wv=(t,e)=>{let n=t.selection,{$from:A,$to:r}=n;if(n instanceof HA||A.parent.inlineContent||r.parent.inlineContent)return!1;let o=Rm(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let i=(!A.parentOffset&&r.index()<r.parent.childCount?A:r).pos,a=t.tr.insert(i,o.createAndFill());a.setSelection(nt.create(a.doc,i+1)),e(a.scrollIntoView())}return!0},Cv=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(So(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let A=n.blockRange(),r=A&&aa(A);return r==null?!1:(e&&e(t.tr.lift(A,r).scrollIntoView()),!0)};function Z4(t){return(e,n)=>{let{$from:A,$to:r}=e.selection;if(e.selection instanceof We&&e.selection.node.isBlock)return!A.parentOffset||!So(e.doc,A.pos)?!1:(n&&n(e.tr.split(A.pos).scrollIntoView()),!0);if(!A.depth)return!1;let o=[],i,a,l=!1,u=!1;for(let g=A.depth;;g--)if(A.node(g).isBlock){l=A.end(g)==A.pos+(A.depth-g),u=A.start(g)==A.pos-(A.depth-g),a=Rm(A.node(g-1).contentMatchAt(A.indexAfter(g-1))),o.unshift(l&&a?{type:a}:null),i=g;break}else{if(g==1)return!1;o.unshift(null)}let f=e.tr;(e.selection instanceof nt||e.selection instanceof HA)&&f.deleteSelection();let h=f.mapping.map(A.pos),p=So(f.doc,h,o.length,o);if(p||(o[0]=a?{type:a}:null,p=So(f.doc,h,o.length,o)),!p)return!1;if(f.split(h,o.length,o),!l&&u&&A.node(i).type!=a){let g=f.mapping.map(A.before(i)),B=f.doc.resolve(g);a&&A.node(i-1).canReplaceWith(B.index(),B.index()+1,a)&&f.setNodeMarkup(f.mapping.map(A.before(i)),a)}return n&&n(f.scrollIntoView()),!0}}const eV=Z4(),tV=(t,e)=>{let{$from:n,to:A}=t.selection,r,o=n.sharedDepth(A);return o==0?!1:(r=n.before(o),e&&e(t.tr.setSelection(We.create(t.doc,r))),!0)};function nV(t,e,n){let A=e.nodeBefore,r=e.nodeAfter,o=e.index();return!A||!r||!A.type.compatibleContent(r.type)?!1:!A.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-A.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(r.isTextblock||ci(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function bv(t,e,n,A){let r=e.nodeBefore,o=e.nodeAfter,i,a,l=r.type.spec.isolating||o.type.spec.isolating;if(!l&&nV(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(a=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&a.matchType(i[0]||o.type).validEnd){if(n){let g=e.pos+o.nodeSize,B=Qe.empty;for(let w=i.length-1;w>=0;w--)B=Qe.from(i[w].create(null,B));B=Qe.from(r.copy(B));let y=t.tr.step(new Nn(e.pos-1,g,e.pos,g,new Ne(B,1,0),i.length,!0)),C=y.doc.resolve(g+2*i.length);C.nodeAfter&&C.nodeAfter.type==r.type&&ci(y.doc,C.pos)&&y.join(C.pos),n(y.scrollIntoView())}return!0}let f=o.type.spec.isolating||A>0&&l?null:it.findFrom(e,1),h=f&&f.$from.blockRange(f.$to),p=h&&aa(h);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(h,p).scrollIntoView()),!0;if(u&&ya(o,"start",!0)&&ya(r,"end")){let g=r,B=[];for(;B.push(g),!g.isTextblock;)g=g.lastChild;let y=o,C=1;for(;!y.isTextblock;y=y.firstChild)C++;if(g.canReplace(g.childCount,g.childCount,y.content)){if(n){let w=Qe.empty;for(let _=B.length-1;_>=0;_--)w=Qe.from(B[_].copy(w));let F=t.tr.step(new Nn(e.pos-B.length,e.pos+o.nodeSize,e.pos+C,e.pos+o.nodeSize-C,new Ne(w,B.length,0),0,!0));n(F.scrollIntoView())}return!0}}return!1}function vv(t){return function(e,n){let A=e.selection,r=t<0?A.$from:A.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return r.node(o).isTextblock?(n&&n(e.tr.setSelection(nt.create(e.doc,t<0?r.start(o):r.end(o)))),!0):!1}}const AV=vv(-1),rV=vv(1);function oV(t,e=null){return function(n,A){let{$from:r,$to:o}=n.selection,i=r.blockRange(o),a=i&&om(i,t,e);return a?(A&&A(n.tr.wrap(i,a).scrollIntoView()),!0):!1}}function Ev(t,e=null){return function(n,A){let r=!1;for(let o=0;o<n.selection.ranges.length&&!r;o++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(i,a,(l,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let f=n.doc.resolve(u),h=f.index();r=f.parent.canReplaceWith(h,h+1,t)}})}if(!r)return!1;if(A){let o=n.tr;for(let i=0;i<n.selection.ranges.length;i++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[i];o.setBlockType(a,l,t,e)}A(o.scrollIntoView())}return!0}}function Vm(...t){return function(e,n,A){for(let r=0;r<t.length;r++)if(t[r](e,n,A))return!0;return!1}}Vm(Nm,fv,pv),Vm(Nm,gv,Bv),Vm(yv,wv,Cv,eV),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function iV(t,e=null){return function(n,A){let{$from:r,$to:o}=n.selection,i=r.blockRange(o);if(!i)return!1;let a=A?n.tr:null;return sV(a,i,t,e)?(A&&A(a.scrollIntoView()),!0):!1}}function sV(t,e,n,A=null){let r=!1,o=e,i=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=i.resolve(e.start-2);o=new bu(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new bu(e.$from,i.resolve(e.$to.end(e.depth)),e.depth)),r=!0}let a=om(o,n,A,e);return a?(t&&aV(t,e,a,r,n),!0):!1}function aV(t,e,n,A,r){let o=Qe.empty;for(let f=n.length-1;f>=0;f--)o=Qe.from(n[f].type.create(n[f].attrs,o));t.step(new Nn(e.start-(A?2:0),e.end,e.start,e.end,new Ne(o,0,0),n.length,!0));let i=0;for(let f=0;f<n.length;f++)n[f].type==r&&(i=f+1);let a=n.length-i,l=e.start+n.length-(A?2:0),u=e.parent;for(let f=e.startIndex,h=e.endIndex,p=!0;f<h;f++,p=!1)!p&&So(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(f).nodeSize;return t}function lV(t){return function(e,n){let{$from:A,$to:r}=e.selection,o=A.blockRange(r,i=>i.childCount>0&&i.firstChild.type==t);return o?n?A.node(o.depth-1).type==t?cV(e,n,t,o):uV(e,n,o):!0:!1}}function cV(t,e,n,A){let r=t.tr,o=A.end,i=A.$to.end(A.depth);o<i&&(r.step(new Nn(o-1,i,o,i,new Ne(Qe.from(n.create(null,A.parent.copy())),1,0),1,!0)),A=new bu(r.doc.resolve(A.$from.pos),r.doc.resolve(i),A.depth));const a=aa(A);if(a==null)return!1;r.lift(A,a);let l=r.doc.resolve(r.mapping.map(o,-1)-1);return ci(r.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&r.join(l.pos),e(r.scrollIntoView()),!0}function uV(t,e,n){let A=t.tr,r=n.parent;for(let g=n.end,B=n.endIndex-1,y=n.startIndex;B>y;B--)g-=r.child(B).nodeSize,A.delete(g-1,g+1);let o=A.doc.resolve(n.start),i=o.nodeAfter;if(A.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,u=o.node(-1),f=o.index(-1);if(!u.canReplace(f+(a?0:1),f+1,i.content.append(l?Qe.empty:Qe.from(r))))return!1;let h=o.pos,p=h+i.nodeSize;return A.step(new Nn(h-(a?1:0),p+(l?1:0),h+1,p-1,new Ne((a?Qe.empty:Qe.from(r.copy(Qe.empty))).append(l?Qe.empty:Qe.from(r.copy(Qe.empty))),a?0:1,l?0:1),a?0:1)),e(A.scrollIntoView()),!0}function dV(t){return function(e,n){let{$from:A,$to:r}=e.selection,o=A.blockRange(r,u=>u.childCount>0&&u.firstChild.type==t);if(!o)return!1;let i=o.startIndex;if(i==0)return!1;let a=o.parent,l=a.child(i-1);if(l.type!=t)return!1;if(n){let u=l.lastChild&&l.lastChild.type==a.type,f=Qe.from(u?t.create():null),h=new Ne(Qe.from(t.create(null,Qe.from(a.type.create(null,f)))),u?3:1,0),p=o.start,g=o.end;n(e.tr.step(new Nn(p-(u?3:1),g,p,g,h,1,!0)).scrollIntoView())}return!0}}var fV=Object.defineProperty,kv=(t,e)=>{for(var n in e)fV(t,n,{get:e[n],enumerable:!0})};function Ru(t){const{state:e,transaction:n}=t;let{selection:A}=n,{doc:r}=n,{storedMarks:o}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return A},get doc(){return r},get tr(){return A=n.selection,r=n.doc,o=n.storedMarks,n}}}var Vu=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:A}=e,{tr:r}=n,o=this.buildProps(r);return Object.fromEntries(Object.entries(t).map(([i,a])=>[i,(...u)=>{const f=a(...u)(o);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&A.dispatch(r),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:A,state:r}=this,{view:o}=A,i=[],a=!!t,l=t||r.tr,u=()=>(!a&&e&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),i.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(n).map(([h,p])=>[h,(...B)=>{const y=this.buildProps(l,e),C=p(...B)(y);return i.push(C),f}])),run:u};return f}createCan(t){const{rawCommands:e,state:n}=this,A=!1,r=t||n.tr,o=this.buildProps(r,A);return{...Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>l(...u)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,A)}}buildProps(t,e=!0){const{rawCommands:n,editor:A,state:r}=this,{view:o}=A,i={tr:t,editor:A,view:o,state:Ru({state:r,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([a,l])=>[a,(...u)=>l(...u)(i)]))}};return i}},hV=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(A=>A.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(A=>A!==e):delete this.callbacks[t]),this}once(t,e){const n=(...A)=>{this.off(t,n),e.apply(this,A)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}};function Sv(t,e){const n=new $b(t);return e.forEach(A=>{A.steps.forEach(r=>{n.step(r)})}),n}var Fv=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const A=e[n];A.nodeType===3&&A.nodeValue&&/^(\n\s\s|\n)$/.test(A.nodeValue)?t.removeChild(A):A.nodeType===1&&Fv(A)}return t};function $u(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Fv(n)}function $l(t,e,n){if(t instanceof ii||t instanceof Qe)return t;n={slice:!0,parseOptions:{},...n};const A=typeof t=="object"&&t!==null,r=typeof t=="string";if(A)try{if(Array.isArray(t)&&t.length>0)return Qe.fromArray(t.map(a=>e.nodeFromJSON(a)));const i=e.nodeFromJSON(t);return n.errorOnInvalidContent&&i.check(),i}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),$l("",e,n)}if(r){if(n.errorOnInvalidContent){let i=!1,a="";const l=new Bb({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?si.fromSchema(l).parseSlice($u(t),n.parseOptions):si.fromSchema(l).parse($u(t),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const o=si.fromSchema(e);return n.slice?o.parseSlice($u(t),n.parseOptions).content:o.parse($u(t),n.parseOptions)}return $l("",e,n)}function $m(t,e,n={},A={}){return $l(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:A.errorOnInvalidContent})}function pV(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function mV(t,e,n){const A=[];return t.nodesBetween(e.from,e.to,(r,o)=>{n(r)&&A.push({node:r,pos:o})}),A}function gV(t,e){for(let n=t.depth;n>0;n-=1){const A=t.node(n);if(e(A))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:A}}}function Ku(t){return e=>gV(e.$from,t)}function ze(t,e,n){return t.config[e]===void 0&&t.parent?ze(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ze(t.parent,e,n):null}):t.config[e]}function Km(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},A=ze(e,"addExtensions",n);return A?[e,...Km(A())]:e}).flat(10)}function zm(t,e){const n=ls.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function Qv(t){return typeof t=="function"}function _t(t,e=void 0,...n){return Qv(t)?e?t.bind(e)(...n):t(...n):t}function BV(t={}){return Object.keys(t).length===0&&t.constructor===Object}function Kl(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),A=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:A}}function xv(t){const e=[],{nodeExtensions:n,markExtensions:A}=Kl(t),r=[...n,...A],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(i=>{const a={name:i.name,options:i.options,storage:i.storage,extensions:r},l=ze(i,"addGlobalAttributes",a);if(!l)return;l().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([p,g])=>{e.push({type:h,name:p,attribute:{...o,...g}})})})})}),r.forEach(i=>{const a={name:i.name,options:i.options,storage:i.storage},l=ze(i,"addAttributes",a);if(!l)return;const u=l();Object.entries(u).forEach(([f,h])=>{const p={...o,...h};typeof p?.default=="function"&&(p.default=p.default()),p?.isRequired&&p?.default===void 0&&delete p.default,e.push({type:i.name,name:f,attribute:p})})}),e}function Jt(...t){return t.filter(e=>!!e).reduce((e,n)=>{const A={...e};return Object.entries(n).forEach(([r,o])=>{if(!A[r]){A[r]=o;return}if(r==="class"){const a=o?String(o).split(" "):[],l=A[r]?A[r].split(" "):[],u=a.filter(f=>!l.includes(f));A[r]=[...l,...u].join(" ")}else if(r==="style"){const a=o?o.split(";").map(f=>f.trim()).filter(Boolean):[],l=A[r]?A[r].split(";").map(f=>f.trim()).filter(Boolean):[],u=new Map;l.forEach(f=>{const[h,p]=f.split(":").map(g=>g.trim());u.set(h,p)}),a.forEach(f=>{const[h,p]=f.split(":").map(g=>g.trim());u.set(h,p)}),A[r]=Array.from(u.entries()).map(([f,h])=>`${f}: ${h}`).join("; ")}else A[r]=o}),A},{})}function zu(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,A)=>Jt(n,A),{})}function yV(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Uv(t,e){return"style"in t?t:{...t,getAttrs:n=>{const A=t.getAttrs?t.getAttrs(n):t.attrs;if(A===!1)return!1;const r=e.reduce((o,i)=>{const a=i.attribute.parseHTML?i.attribute.parseHTML(n):yV(n.getAttribute(i.name));return a==null?o:{...o,[i.name]:a}},{});return{...A,...r}}}}function Iv(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&BV(n)?!1:n!=null))}function wV(t,e){var n;const A=xv(t),{nodeExtensions:r,markExtensions:o}=Kl(t),i=(n=r.find(u=>ze(u,"topNode")))==null?void 0:n.name,a=Object.fromEntries(r.map(u=>{const f=A.filter(w=>w.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((w,F)=>{const _=ze(F,"extendNodeSchema",h);return{...w,..._?_(u):{}}},{}),g=Iv({...p,content:_t(ze(u,"content",h)),marks:_t(ze(u,"marks",h)),group:_t(ze(u,"group",h)),inline:_t(ze(u,"inline",h)),atom:_t(ze(u,"atom",h)),selectable:_t(ze(u,"selectable",h)),draggable:_t(ze(u,"draggable",h)),code:_t(ze(u,"code",h)),whitespace:_t(ze(u,"whitespace",h)),linebreakReplacement:_t(ze(u,"linebreakReplacement",h)),defining:_t(ze(u,"defining",h)),isolating:_t(ze(u,"isolating",h)),attrs:Object.fromEntries(f.map(w=>{var F,_;return[w.name,{default:(F=w?.attribute)==null?void 0:F.default,validate:(_=w?.attribute)==null?void 0:_.validate}]}))}),B=_t(ze(u,"parseHTML",h));B&&(g.parseDOM=B.map(w=>Uv(w,f)));const y=ze(u,"renderHTML",h);y&&(g.toDOM=w=>y({node:w,HTMLAttributes:zu(w,f)}));const C=ze(u,"renderText",h);return C&&(g.toText=C),[u.name,g]})),l=Object.fromEntries(o.map(u=>{const f=A.filter(C=>C.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:e},p=t.reduce((C,w)=>{const F=ze(w,"extendMarkSchema",h);return{...C,...F?F(u):{}}},{}),g=Iv({...p,inclusive:_t(ze(u,"inclusive",h)),excludes:_t(ze(u,"excludes",h)),group:_t(ze(u,"group",h)),spanning:_t(ze(u,"spanning",h)),code:_t(ze(u,"code",h)),attrs:Object.fromEntries(f.map(C=>{var w,F;return[C.name,{default:(w=C?.attribute)==null?void 0:w.default,validate:(F=C?.attribute)==null?void 0:F.validate}]}))}),B=_t(ze(u,"parseHTML",h));B&&(g.parseDOM=B.map(C=>Uv(C,f)));const y=ze(u,"renderHTML",h);return y&&(g.toDOM=C=>y({mark:C,HTMLAttributes:zu(C,f)})),[u.name,g]}));return new Bb({topNode:i,nodes:a,marks:l})}function CV(t){const e=t.filter((n,A)=>t.indexOf(n)!==A);return Array.from(new Set(e))}function Wm(t){return t.sort((n,A)=>{const r=ze(n,"priority")||100,o=ze(A,"priority")||100;return r>o?-1:r<o?1:0})}function _v(t){const e=Wm(Km(t)),n=CV(e.map(A=>A.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(A=>`'${A}'`).join(", ")}]. This can lead to issues.`),e}function Tv(t,e,n){const{from:A,to:r}=e,{blockSeparator:o=`
35
35
 
36
- `,textSerializers:i={}}=n||{};let a="";return t.nodesBetween(A,r,(l,u,f,h)=>{var p;l.isBlock&&u>A&&(a+=o);const g=i?.[l.type.name];if(g)return f&&(a+=g({node:l,pos:u,parent:f,index:h,range:e})),!1;l.isText&&(a+=(p=l?.text)==null?void 0:p.slice(Math.max(A,u)-u,r-u))}),a}function yV(t,e){const n={from:0,to:t.content.size};return Tv(t,n,e)}function Dv(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function Io(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}function Mv(t,e){const n=Io(e,t.schema),{from:A,to:r,empty:o}=t.selection,i=[];o?(t.storedMarks&&i.push(...t.storedMarks),i.push(...t.selection.$head.marks())):t.doc.nodesBetween(A,r,l=>{i.push(...l.marks)});const a=i.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function kn(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function wV(t,e){const n=kn(e,t.schema),{from:A,to:r}=t.selection,o=[];t.doc.nodesBetween(A,r,a=>{o.push(a)});const i=o.reverse().find(a=>a.type.name===n.name);return i?{...i.attrs}:{}}function Wu(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Ov(t,e){const n=Wu(typeof e=="string"?e:e.name,t.schema);return n==="node"?wV(t,e):n==="mark"?Mv(t,e):{}}function CV(t,e=JSON.stringify){const n={};return t.filter(A=>{const r=e(A);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function bV(t){const e=CV(t);return e.length===1?e:e.filter((n,A)=>!e.filter((o,i)=>i!==A).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function Lv(t){const{mapping:e,steps:n}=t,A=[];return e.maps.forEach((r,o)=>{const i=[];if(r.ranges.length)r.forEach((a,l)=>{i.push({from:a,to:l})});else{const{from:a,to:l}=n[o];if(a===void 0||l===void 0)return;i.push({from:a,to:l})}i.forEach(({from:a,to:l})=>{const u=e.slice(o).map(a,-1),f=e.slice(o).map(l),h=e.invert().map(u,-1),p=e.invert().map(f);A.push({oldRange:{from:h,to:p},newRange:{from:u,to:f}})})}),bV(A)}function Gm(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Gu(t,e,n={strict:!0}){const A=Object.keys(e);return A.length?A.every(r=>n.strict?e[r]===t[r]:Gm(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Nv(t,e,n={}){return t.find(A=>A.type===e&&Gu(Object.fromEntries(Object.keys(n).map(r=>[r,A.attrs[r]])),n))}function Hv(t,e,n={}){return!!Nv(t,e,n)}function Ym(t,e,n){var A;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(f=>f.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(f=>f.type===e)||(n=n||((A=r.node.marks[0])==null?void 0:A.attrs),!Nv([...r.node.marks],e,n)))return;let i=r.index,a=t.start()+r.offset,l=i+1,u=a+r.node.nodeSize;for(;i>0&&Hv([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;l<t.parent.childCount&&Hv([...t.parent.child(l).marks],e,n);)u+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:u}}function jm(t,e,n){const A=[];return t===e?n.resolve(t).marks().forEach(r=>{const o=n.resolve(t),i=Ym(o,r.type);i&&A.push({mark:r,...i})}):n.nodesBetween(t,e,(r,o)=>{!r||r?.nodeSize===void 0||A.push(...r.marks.map(i=>({from:o,to:o+r.nodeSize,mark:i})))}),A}var vV=(t,e,n,A=20)=>{const r=t.doc.resolve(n);let o=A,i=null;for(;o>0&&i===null;){const a=r.node(o);a?.type.name===e?i=a:o-=1}return[i,o]};function qm(t,e){return e.nodes[t]||e.marks[t]||null}function Yu(t,e,n){return Object.fromEntries(Object.entries(n).filter(([A])=>{const r=t.find(o=>o.type===e&&o.name===A);return r?r.attribute.keepOnSplit:!1}))}var EV=(t,e=500)=>{let n="";const A=t.parentOffset;return t.parent.nodesBetween(Math.max(0,A-e),A,(r,o,i,a)=>{var l,u;const f=((u=(l=r.type.spec).toText)==null?void 0:u.call(l,{node:r,pos:o,parent:i,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?f:f.slice(0,Math.max(0,A-o))}),n};function Jm(t,e,n={}){const{empty:A,ranges:r}=t.selection,o=e?Io(e,t.schema):null;if(A)return!!(t.storedMarks||t.selection.$from.marks()).filter(h=>o?o.name===h.type.name:!0).find(h=>Gu(h.attrs,n,{strict:!1}));let i=0;const a=[];if(r.forEach(({$from:h,$to:p})=>{const g=h.pos,B=p.pos;t.doc.nodesBetween(g,B,(y,C)=>{if(!y.isText&&!y.marks.length)return;const w=Math.max(g,C),F=Math.min(B,C+y.nodeSize),_=F-w;i+=_,a.push(...y.marks.map(D=>({mark:D,from:w,to:F})))})}),i===0)return!1;const l=a.filter(h=>o?o.name===h.mark.type.name:!0).filter(h=>Gu(h.mark.attrs,n,{strict:!1})).reduce((h,p)=>h+p.to-p.from,0),u=a.filter(h=>o?h.mark.type!==o&&h.mark.type.excludes(o):!0).reduce((h,p)=>h+p.to-p.from,0);return(l>0?l+u:l)>=i}function wi(t,e,n={}){const{from:A,to:r,empty:o}=t.selection,i=e?kn(e,t.schema):null,a=[];t.doc.nodesBetween(A,r,(h,p)=>{if(h.isText)return;const g=Math.max(A,p),B=Math.min(r,p+h.nodeSize);a.push({node:h,from:g,to:B})});const l=r-A,u=a.filter(h=>i?i.name===h.node.type.name:!0).filter(h=>Gu(h.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((h,p)=>h+p.to-p.from,0)>=l}function kV(t,e,n={}){if(!e)return wi(t,null,n)||Jm(t,null,n);const A=Wu(e,t.schema);return A==="node"?wi(t,e,n):A==="mark"?Jm(t,e,n):!1}var SV=(t,e)=>{const{$from:n,$to:A,$anchor:r}=t.selection;if(e){const o=Ku(a=>a.type.name===e)(t.selection);if(!o)return!1;const i=t.doc.resolve(o.pos+1);return r.pos+1===i.end()}return!(A.parentOffset<A.parent.nodeSize-2||n.pos!==A.pos)},FV=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function Pv(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Rv(t,e){const{nodeExtensions:n}=Kl(e),A=n.find(i=>i.name===t);if(!A)return!1;const r={name:A.name,options:A.options,storage:A.storage},o=_t(ze(A,"group",r));return typeof o!="string"?!1:o.split(" ").includes("list")}function ju(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var A;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((A=t.text)!=null?A:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(o=>{r!==!1&&(ju(o,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Vv(t){return t instanceof We}function $v(t){return t instanceof nt}function Bs(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Kv(t,e=null){if(!e)return null;const n=it.atStart(t),A=it.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return A;const r=n.from,o=A.to;return e==="all"?nt.create(t,Bs(0,r,o),Bs(t.content.size,r,o)):nt.create(t,Bs(e,r,o),Bs(e,r,o))}function QV(t,e,n){const A=t.steps.length-1;if(A<e)return;const r=t.steps[A];if(!(r instanceof Ln||r instanceof Nn))return;const o=t.mapping.maps[A];let i=0;o.forEach((a,l,u,f)=>{i===0&&(i=f)}),t.setSelection(it.near(t.doc.resolve(i),n))}var qu=class{constructor(t){this.find=t.find,this.handler=t.handler}},xV=(t,e)=>{if(Gm(e))return e.exec(t);const n=e(t);if(!n)return null;const A=[n.text];return A.index=n.index,A.input=t,A.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),A.push(n.replaceWith)),A};function Ju(t){var e;const{editor:n,from:A,to:r,text:o,rules:i,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(A);if(u.parent.type.spec.code||(e=u.nodeBefore||u.nodeAfter)!=null&&e.marks.find(p=>p.type.spec.code))return!1;let f=!1;const h=EV(u)+o;return i.forEach(p=>{if(f)return;const g=xV(h,p.find);if(!g)return;const B=l.state.tr,y=Ru({state:l.state,transaction:B}),C={from:A-(g[0].length-o.length),to:r},{commands:w,chain:F,can:_}=new Vu({editor:n,state:y});p.handler({state:y,range:C,match:g,commands:w,chain:F,can:_})===null||!B.steps.length||(B.setMeta(a,{transform:B,from:A,to:r,text:o}),l.dispatch(B),f=!0)}),f}function UV(t){const{editor:e,rules:n}=t,A=new sn({state:{init(){return null},apply(r,o,i){const a=r.getMeta(A);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:f}=l;typeof f=="string"?f=f:f=zm(Qe.from(f),i.schema);const{from:h}=l,p=h+f.length;Ju({editor:e,from:h,to:p,text:f,rules:n,plugin:A})}),r.selectionSet||r.docChanged?null:o}},props:{handleTextInput(r,o,i,a){return Ju({editor:e,from:o,to:i,text:a,rules:n,plugin:A})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&Ju({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:A})}),!1)},handleKeyDown(r,o){if(o.key!=="Enter")return!1;const{$cursor:i}=r.state.selection;return i?Ju({editor:e,from:i.pos,to:i.pos,text:`
37
- `,rules:n,plugin:A}):!1}},isInputRules:!0});return A}function IV(t){return Object.prototype.toString.call(t).slice(8,-1)}function Xu(t){return IV(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zv(t,e){const n={...t};return Xu(t)&&Xu(e)&&Object.keys(e).forEach(A=>{Xu(e[A])&&Xu(t[A])?n[A]=zv(t[A],e[A]):n[A]=e[A]}),n}var Xm=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{..._t(ze(this,"addOptions",{name:this.name}))||{}}}get storage(){return{..._t(ze(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>zv(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},Ci=class CT extends Xm{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new CT(n)}static handleExit({editor:e,mark:n}){const{tr:A}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const i=r.marks();if(!!!i.find(u=>u?.type.name===n.name))return!1;const l=i.find(u=>u?.type.name===n.name);return l&&A.removeStoredMark(l),A.insertText(" ",r.pos),e.view.dispatch(A),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function _V(t){return typeof t=="number"}var TV=class{constructor(t){this.find=t.find,this.handler=t.handler}},DV=(t,e,n)=>{if(Gm(e))return[...t.matchAll(e)];const A=e(t,n);return A?A.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function MV(t){const{editor:e,state:n,from:A,to:r,rule:o,pasteEvent:i,dropEvent:a}=t,{commands:l,chain:u,can:f}=new Vu({editor:e,state:n}),h=[];return n.doc.nodesBetween(A,r,(g,B)=>{if(!g.isTextblock||g.type.spec.code)return;const y=Math.max(A,B),C=Math.min(r,B+g.content.size),w=g.textBetween(y-B,C-B,void 0,"");DV(w,o.find,i).forEach(_=>{if(_.index===void 0)return;const D=y+_.index+1,P=D+_[0].length,T={from:n.tr.mapping.map(D),to:n.tr.mapping.map(P)},H=o.handler({state:n,range:T,match:_,commands:l,chain:u,can:f,pasteEvent:i,dropEvent:a});h.push(H)})}),h.every(g=>g!==null)}var Zu=null,OV=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function LV(t){const{editor:e,rules:n}=t;let A=null,r=!1,o=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:f,from:h,to:p,rule:g,pasteEvt:B})=>{const y=f.tr,C=Ru({state:f,transaction:y});if(!(!MV({editor:e,state:C,from:Math.max(h-1,0),to:p.b-1,rule:g,pasteEvent:B,dropEvent:a})||!y.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y}};return n.map(f=>new sn({view(h){const p=B=>{var y;A=(y=h.dom.parentElement)!=null&&y.contains(B.target)?h.dom.parentElement:null,A&&(Zu=e)},g=()=>{Zu&&(Zu=null)};return window.addEventListener("dragstart",p),window.addEventListener("dragend",g),{destroy(){window.removeEventListener("dragstart",p),window.removeEventListener("dragend",g)}}},props:{handleDOMEvents:{drop:(h,p)=>{if(o=A===h.dom.parentElement,a=p,!o){const g=Zu;g?.isEditable&&setTimeout(()=>{const B=g.state.selection;B&&g.commands.deleteRange({from:B.from,to:B.to})},10)}return!1},paste:(h,p)=>{var g;const B=(g=p.clipboardData)==null?void 0:g.getData("text/html");return i=p,r=!!B?.includes("data-pm-slice"),!1}}},appendTransaction:(h,p,g)=>{const B=h[0],y=B.getMeta("uiEvent")==="paste"&&!r,C=B.getMeta("uiEvent")==="drop"&&!o,w=B.getMeta("applyPasteRules"),F=!!w;if(!y&&!C&&!F)return;if(F){let{text:P}=w;typeof P=="string"?P=P:P=zm(Qe.from(P),g.schema);const{from:T}=w,H=T+P.length,te=OV(P);return l({rule:f,state:g,from:T,to:{b:H},pasteEvt:te})}const _=p.doc.content.findDiffStart(g.doc.content),D=p.doc.content.findDiffEnd(g.doc.content);if(!(!_V(_)||!D||_===D.b))return l({rule:f,state:g,from:_,to:D,pasteEvt:i})}}))}var ed=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=_v(t),this.schema=gV(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:qm(e.name,this.schema)},A=ze(e,"addCommands",n);return A?{...t,...A()}:t},{})}get plugins(){const{editor:t}=this,e=Wm([...this.extensions].reverse()),n=[],A=[],r=e.map(o=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:t,type:qm(o.name,this.schema)},a=[],l=ze(o,"addKeyboardShortcuts",i);let u={};if(o.type==="mark"&&ze(o,"exitable",i)&&(u.ArrowRight=()=>Ci.handleExit({editor:t,mark:o})),l){const B=Object.fromEntries(Object.entries(l()).map(([y,C])=>[y,()=>C({editor:t})]));u={...u,...B}}const f=$4(u);a.push(f);const h=ze(o,"addInputRules",i);Pv(o,t.options.enableInputRules)&&h&&n.push(...h());const p=ze(o,"addPasteRules",i);Pv(o,t.options.enablePasteRules)&&p&&A.push(...p());const g=ze(o,"addProseMirrorPlugins",i);if(g){const B=g();a.push(...B)}return a}).flat();return[UV({editor:t,rules:n}),...LV({editor:t,rules:A}),...r]}get attributes(){return xv(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=Kl(this.extensions);return Object.fromEntries(e.filter(n=>!!ze(n,"addNodeView")).map(n=>{const A=this.attributes.filter(a=>a.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:kn(n.name,this.schema)},o=ze(n,"addNodeView",r);if(!o)return[];const i=(a,l,u,f,h)=>{const p=zu(a,A);return o()({node:a,view:l,getPos:u,decorations:f,innerDecorations:h,editor:t,extension:n,HTMLAttributes:p})};return[n.name,i]}))}get markViews(){const{editor:t}=this,{markExtensions:e}=Kl(this.extensions);return Object.fromEntries(e.filter(n=>!!ze(n,"addMarkView")).map(n=>{const A=this.attributes.filter(a=>a.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Io(n.name,this.schema)},o=ze(n,"addMarkView",r);if(!o)return[];const i=(a,l,u)=>{const f=zu(a,A);return o()({mark:a,view:l,inline:u,editor:t,extension:n,HTMLAttributes:f,updateAttributes:h=>{Z3(a,t,h)}})};return[n.name,i]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const A={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:qm(e.name,this.schema)};e.type==="mark"&&((n=_t(ze(e,"keepOnSplit",A)))==null||n)&&this.splittableMarks.push(e.name);const r=ze(e,"onBeforeCreate",A),o=ze(e,"onCreate",A),i=ze(e,"onUpdate",A),a=ze(e,"onSelectionUpdate",A),l=ze(e,"onTransaction",A),u=ze(e,"onFocus",A),f=ze(e,"onBlur",A),h=ze(e,"onDestroy",A);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),f&&this.editor.on("blur",f),h&&this.editor.on("destroy",h)})}};ed.resolve=_v,ed.sort=Wm,ed.flatten=Km;var NV={};kv(NV,{ClipboardTextSerializer:()=>Wv,Commands:()=>Jv,Delete:()=>Xv,Drop:()=>Zv,Editable:()=>eE,FocusEvents:()=>nE,Keymap:()=>AE,Paste:()=>rE,Tabindex:()=>oE,focusEventsPluginKey:()=>tE});var gn=class bT extends Xm{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new bT(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},Wv=gn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new sn({key:new Hn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:A,selection:r}=e,{ranges:o}=r,i=Math.min(...o.map(f=>f.$from.pos)),a=Math.max(...o.map(f=>f.$to.pos)),l=Dv(n);return Tv(A,{from:i,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Gv={};kv(Gv,{blur:()=>HV,clearContent:()=>PV,clearNodes:()=>RV,command:()=>VV,createParagraphNear:()=>$V,cut:()=>KV,deleteCurrentNode:()=>zV,deleteNode:()=>WV,deleteRange:()=>GV,deleteSelection:()=>YV,enter:()=>jV,exitCode:()=>qV,extendMarkRange:()=>JV,first:()=>XV,focus:()=>e3,forEach:()=>t3,insertContent:()=>n3,insertContentAt:()=>r3,joinBackward:()=>s3,joinDown:()=>i3,joinForward:()=>a3,joinItemBackward:()=>l3,joinItemForward:()=>c3,joinTextblockBackward:()=>u3,joinTextblockForward:()=>d3,joinUp:()=>o3,keyboardShortcut:()=>h3,lift:()=>p3,liftEmptyBlock:()=>m3,liftListItem:()=>g3,newlineInCode:()=>B3,resetAttributes:()=>y3,scrollIntoView:()=>w3,selectAll:()=>C3,selectNodeBackward:()=>b3,selectNodeForward:()=>v3,selectParentNode:()=>E3,selectTextblockEnd:()=>k3,selectTextblockStart:()=>S3,setContent:()=>F3,setMark:()=>x3,setMeta:()=>U3,setNode:()=>I3,setNodeSelection:()=>_3,setTextSelection:()=>T3,sinkListItem:()=>D3,splitBlock:()=>M3,splitListItem:()=>O3,toggleList:()=>L3,toggleMark:()=>N3,toggleNode:()=>H3,toggleWrap:()=>P3,undoInputRule:()=>R3,unsetAllMarks:()=>V3,unsetMark:()=>$3,updateAttributes:()=>K3,wrapIn:()=>z3,wrapInList:()=>W3});var HV=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),PV=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),RV=()=>({state:t,tr:e,dispatch:n})=>{const{selection:A}=e,{ranges:r}=A;return n&&r.forEach(({$from:o,$to:i})=>{t.doc.nodesBetween(o.pos,i.pos,(a,l)=>{if(a.type.isText)return;const{doc:u,mapping:f}=e,h=u.resolve(f.map(l)),p=u.resolve(f.map(l+a.nodeSize)),g=h.blockRange(p);if(!g)return;const B=aa(g);if(a.type.isTextblock){const{defaultType:y}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(g.start,y)}(B||B===0)&&e.lift(g,B)})}),!0},VV=t=>e=>t(e),$V=()=>({state:t,dispatch:e})=>wv(t,e),KV=(t,e)=>({editor:n,tr:A})=>{const{state:r}=n,o=r.doc.slice(t.from,t.to);A.deleteRange(t.from,t.to);const i=A.mapping.map(e);return A.insert(i,o.content),A.setSelection(new nt(A.doc.resolve(Math.max(i-1,0)))),!0},zV=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,A=n.$anchor.node();if(A.content.size>0)return!1;const r=t.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===A.type){if(e){const a=r.before(o),l=r.after(o);t.delete(a,l).scrollIntoView()}return!0}return!1},WV=t=>({tr:e,state:n,dispatch:A})=>{const r=kn(t,n.schema),o=e.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r){if(A){const l=o.before(i),u=o.after(i);e.delete(l,u).scrollIntoView()}return!0}return!1},GV=t=>({tr:e,dispatch:n})=>{const{from:A,to:r}=t;return n&&e.delete(A,r),!0},YV=()=>({state:t,dispatch:e})=>Nm(t,e),jV=()=>({commands:t})=>t.keyboardShortcut("Enter"),qV=()=>({state:t,dispatch:e})=>j4(t,e),JV=(t,e={})=>({tr:n,state:A,dispatch:r})=>{const o=Io(t,A.schema),{doc:i,selection:a}=n,{$from:l,from:u,to:f}=a;if(r){const h=Ym(l,o,e);if(h&&h.from<=u&&h.to>=f){const p=nt.create(i,h.from,h.to);n.setSelection(p)}}return!0},XV=t=>e=>{const n=typeof t=="function"?t(e):t;for(let A=0;A<n.length;A+=1)if(n[A](e))return!0;return!1};function ZV(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Zm(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var e3=(t=null,e={})=>({editor:n,view:A,tr:r,dispatch:o})=>{e={scrollIntoView:!0,...e};const i=()=>{(Zm()||ZV())&&A.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(A.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};if(A.hasFocus()&&t===null||t===!1)return!0;if(o&&t===null&&!$v(n.state.selection))return i(),!0;const a=Kv(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),i()),!0},t3=(t,e)=>n=>t.every((A,r)=>e(A,{...n,index:r})),n3=(t,e)=>({tr:n,commands:A})=>A.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),A3=t=>!("type"in t),r3=(t,e,n)=>({tr:A,dispatch:r,editor:o})=>{var i;if(r){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const{selection:l}=o.state,u=w=>{o.emit("contentError",{editor:o,error:w,disableCollaboration:()=>{"collaboration"in o.storage&&typeof o.storage.collaboration=="object"&&o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},f={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{$l(e,o.schema,{parseOptions:f,errorOnInvalidContent:!0})}catch(w){u(w)}try{a=$l(e,o.schema,{parseOptions:f,errorOnInvalidContent:(i=n.errorOnInvalidContent)!=null?i:o.options.enableContentCheck})}catch(w){return u(w),!1}let{from:h,to:p}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},g=!0,B=!0;if((A3(a)?a:[a]).forEach(w=>{w.check(),g=g?w.isText&&w.marks.length===0:!1,B=B?w.isBlock:!1}),h===p&&B){const{parent:w}=A.doc.resolve(h);w.isTextblock&&!w.type.spec.code&&!w.childCount&&(h-=1,p+=1)}let C;if(g){if(Array.isArray(e))C=e.map(w=>w.text||"").join("");else if(e instanceof Qe){let w="";e.forEach(F=>{F.text&&(w+=F.text)}),C=w}else typeof e=="object"&&e&&e.text?C=e.text:C=e;A.insertText(C,h,p)}else{C=a;const w=l.$from.parentOffset===0,F=l.$from.node().isText||l.$from.node().isTextblock,_=l.$from.node().content.size>0;w&&F&&_&&(h=Math.max(0,h-1)),A.replaceWith(h,p,C)}n.updateSelection&&QV(A,A.steps.length-1,-1),n.applyInputRules&&A.setMeta("applyInputRules",{from:h,text:C}),n.applyPasteRules&&A.setMeta("applyPasteRules",{from:h,text:C})}return!0},o3=()=>({state:t,dispatch:e})=>W4(t,e),i3=()=>({state:t,dispatch:e})=>G4(t,e),s3=()=>({state:t,dispatch:e})=>fv(t,e),a3=()=>({state:t,dispatch:e})=>gv(t,e),l3=()=>({state:t,dispatch:e,tr:n})=>{try{const A=Qu(t.doc,t.selection.$from.pos,-1);return A==null?!1:(n.join(A,2),e&&e(n),!0)}catch{return!1}},c3=()=>({state:t,dispatch:e,tr:n})=>{try{const A=Qu(t.doc,t.selection.$from.pos,1);return A==null?!1:(n.join(A,2),e&&e(n),!0)}catch{return!1}},u3=()=>({state:t,dispatch:e})=>K4(t,e),d3=()=>({state:t,dispatch:e})=>z4(t,e);function Yv(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function f3(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let A,r,o,i;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))A=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))Zm()||Yv()?i=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return A&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),i&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}var h3=t=>({editor:e,view:n,tr:A,dispatch:r})=>{const o=f3(t).split(/-(?!$)/),i=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,a))});return l?.steps.forEach(u=>{const f=u.map(A.mapping);f&&r&&A.maybeStep(f)}),!0},p3=(t,e={})=>({state:n,dispatch:A})=>{const r=kn(t,n.schema);return wi(n,r,e)?Y4(n,A):!1},m3=()=>({state:t,dispatch:e})=>Cv(t,e),g3=t=>({state:e,dispatch:n})=>{const A=kn(t,e.schema);return iV(A)(e,n)},B3=()=>({state:t,dispatch:e})=>yv(t,e);function jv(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((A,r)=>(n.includes(r)||(A[r]=t[r]),A),{})}var y3=(t,e)=>({tr:n,state:A,dispatch:r})=>{let o=null,i=null;const a=Wu(typeof t=="string"?t:t.name,A.schema);return a?(a==="node"&&(o=kn(t,A.schema)),a==="mark"&&(i=Io(t,A.schema)),r&&n.selection.ranges.forEach(l=>{A.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,f)=>{o&&o===u.type&&n.setNodeMarkup(f,void 0,jv(u.attrs,e)),i&&u.marks.length&&u.marks.forEach(h=>{i===h.type&&n.addMark(f,f+u.nodeSize,i.create(jv(h.attrs,e)))})})}),!0):!1},w3=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),C3=()=>({tr:t,dispatch:e})=>{if(e){const n=new HA(t.doc);t.setSelection(n)}return!0},b3=()=>({state:t,dispatch:e})=>pv(t,e),v3=()=>({state:t,dispatch:e})=>Bv(t,e),E3=()=>({state:t,dispatch:e})=>X4(t,e),k3=()=>({state:t,dispatch:e})=>tV(t,e),S3=()=>({state:t,dispatch:e})=>eV(t,e),F3=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:A={}}={})=>({editor:r,tr:o,dispatch:i,commands:a})=>{const{doc:l}=o;if(A.preserveWhitespace!=="full"){const u=$m(t,r.schema,A,{errorOnInvalidContent:e??r.options.enableContentCheck});return i&&o.replaceWith(0,l.content.size,u).setMeta("preventUpdate",!n),!0}return i&&o.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},t,{parseOptions:A,errorOnInvalidContent:e??r.options.enableContentCheck})};function Q3(t,e,n){var A;const{selection:r}=e;let o=null;if($v(r)&&(o=r.$cursor),o){const a=(A=t.storedMarks)!=null?A:o.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:i}=r;return i.some(({$from:a,$to:l})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(f,h,p)=>{if(u)return!1;if(f.isInline){const g=!p||p.type.allowsMarkType(n),B=!!n.isInSet(f.marks)||!f.marks.some(y=>y.type.excludes(n));u=g&&B}return!u}),u})}var x3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{const{selection:o}=n,{empty:i,ranges:a}=o,l=Io(t,A.schema);if(r)if(i){const u=Mv(A,l);n.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const f=u.$from.pos,h=u.$to.pos;A.doc.nodesBetween(f,h,(p,g)=>{const B=Math.max(g,f),y=Math.min(g+p.nodeSize,h);p.marks.find(w=>w.type===l)?p.marks.forEach(w=>{l===w.type&&n.addMark(B,y,l.create({...w.attrs,...e}))}):n.addMark(B,y,l.create(e))})});return Q3(A,n,l)},U3=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),I3=(t,e={})=>({state:n,dispatch:A,chain:r})=>{const o=kn(t,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),o.isTextblock?r().command(({commands:a})=>Ev(o,{...i,...e})(n)?!0:a.clearNodes()).command(({state:a})=>Ev(o,{...i,...e})(a,A)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},_3=t=>({tr:e,dispatch:n})=>{if(n){const{doc:A}=e,r=Bs(t,0,A.content.size),o=We.create(A,r);e.setSelection(o)}return!0},T3=t=>({tr:e,dispatch:n})=>{if(n){const{doc:A}=e,{from:r,to:o}=typeof t=="number"?{from:t,to:t}:t,i=nt.atStart(A).from,a=nt.atEnd(A).to,l=Bs(r,i,a),u=Bs(o,i,a),f=nt.create(A,l,u);e.setSelection(f)}return!0},D3=t=>({state:e,dispatch:n})=>{const A=kn(t,e.schema);return lV(A)(e,n)};function qv(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const A=n.filter(r=>e?.includes(r.type.name));t.tr.ensureMarks(A)}}var M3=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:A,editor:r})=>{const{selection:o,doc:i}=e,{$from:a,$to:l}=o,u=r.extensionManager.attributes,f=Yu(u,a.node().type.name,a.node().attrs);if(o instanceof We&&o.node.isBlock)return!a.parentOffset||!So(i,a.pos)?!1:(A&&(t&&qv(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const h=l.parentOffset===l.parent.content.size,p=a.depth===0?void 0:dV(a.node(-1).contentMatchAt(a.indexAfter(-1)));let g=h&&p?[{type:p,attrs:f}]:void 0,B=So(e.doc,e.mapping.map(a.pos),1,g);if(!g&&!B&&So(e.doc,e.mapping.map(a.pos),1,p?[{type:p}]:void 0)&&(B=!0,g=p?[{type:p,attrs:f}]:void 0),A){if(B&&(o instanceof nt&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,g),p&&!h&&!a.parentOffset&&a.parent.type!==p)){const y=e.mapping.map(a.before()),C=e.doc.resolve(y);a.node(-1).canReplaceWith(C.index(),C.index()+1,p)&&e.setNodeMarkup(e.mapping.map(a.before()),p)}t&&qv(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return B},O3=(t,e={})=>({tr:n,state:A,dispatch:r,editor:o})=>{var i;const a=kn(t,A.schema),{$from:l,$to:u}=A.selection,f=A.selection.node;if(f&&f.isBlock||l.depth<2||!l.sameParent(u))return!1;const h=l.node(-1);if(h.type!==a)return!1;const p=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let w=Qe.empty;const F=l.index(-1)?1:l.index(-2)?2:3;for(let te=l.depth-F;te>=l.depth-3;te-=1)w=Qe.from(l.node(te).copy(w));const _=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,D={...Yu(p,l.node().type.name,l.node().attrs),...e},P=((i=a.contentMatch.defaultType)==null?void 0:i.createAndFill(D))||void 0;w=w.append(Qe.from(a.createAndFill(null,P)||void 0));const T=l.before(l.depth-(F-1));n.replace(T,l.after(-_),new Ne(w,4-F,0));let H=-1;n.doc.nodesBetween(T,n.doc.content.size,(te,Z)=>{if(H>-1)return!1;te.isTextblock&&te.content.size===0&&(H=Z+1)}),H>-1&&n.setSelection(nt.near(n.doc.resolve(H))),n.scrollIntoView()}return!0}const g=u.pos===l.end()?h.contentMatchAt(0).defaultType:null,B={...Yu(p,h.type.name,h.attrs),...e},y={...Yu(p,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const C=g?[{type:a,attrs:B},{type:g,attrs:y}]:[{type:a,attrs:B}];if(!So(n.doc,l.pos,2))return!1;if(r){const{selection:w,storedMarks:F}=A,{splittableMarks:_}=o.extensionManager,D=F||w.$to.parentOffset&&w.$from.marks();if(n.split(l.pos,2,C).scrollIntoView(),!D||!r)return!0;const P=D.filter(T=>_.includes(T.type.name));n.ensureMarks(P)}return!0},eg=(t,e)=>{const n=Ku(i=>i.type===e)(t.selection);if(!n)return!0;const A=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(A===void 0)return!0;const r=t.doc.nodeAt(A);return n.node.type===r?.type&&ci(t.doc,n.pos)&&t.join(n.pos),!0},tg=(t,e)=>{const n=Ku(i=>i.type===e)(t.selection);if(!n)return!0;const A=t.doc.resolve(n.start).after(n.depth);if(A===void 0)return!0;const r=t.doc.nodeAt(A);return n.node.type===r?.type&&ci(t.doc,A)&&t.join(A),!0},L3=(t,e,n,A={})=>({editor:r,tr:o,state:i,dispatch:a,chain:l,commands:u,can:f})=>{const{extensions:h,splittableMarks:p}=r.extensionManager,g=kn(t,i.schema),B=kn(e,i.schema),{selection:y,storedMarks:C}=i,{$from:w,$to:F}=y,_=w.blockRange(F),D=C||y.$to.parentOffset&&y.$from.marks();if(!_)return!1;const P=Ku(T=>Rv(T.type.name,h))(y);if(_.depth>=1&&P&&_.depth-P.depth<=1){if(P.node.type===g)return u.liftListItem(B);if(Rv(P.node.type.name,h)&&g.validContent(P.node.content)&&a)return l().command(()=>(o.setNodeMarkup(P.pos,g),!0)).command(()=>eg(o,g)).command(()=>tg(o,g)).run()}return!n||!D||!a?l().command(()=>f().wrapInList(g,A)?!0:u.clearNodes()).wrapInList(g,A).command(()=>eg(o,g)).command(()=>tg(o,g)).run():l().command(()=>{const T=f().wrapInList(g,A),H=D.filter(te=>p.includes(te.type.name));return o.ensureMarks(H),T?!0:u.clearNodes()}).wrapInList(g,A).command(()=>eg(o,g)).command(()=>tg(o,g)).run()},N3=(t,e={},n={})=>({state:A,commands:r})=>{const{extendEmptyMarkRange:o=!1}=n,i=Io(t,A.schema);return Jm(A,i,e)?r.unsetMark(i,{extendEmptyMarkRange:o}):r.setMark(i,e)},H3=(t,e,n={})=>({state:A,commands:r})=>{const o=kn(t,A.schema),i=kn(e,A.schema),a=wi(A,o,n);let l;return A.selection.$anchor.sameParent(A.selection.$head)&&(l=A.selection.$anchor.parent.attrs),a?r.setNode(i,l):r.setNode(o,{...l,...n})},P3=(t,e={})=>({state:n,commands:A})=>{const r=kn(t,n.schema);return wi(n,r,e)?A.lift(r):A.wrapIn(r,e)},R3=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let A=0;A<n.length;A+=1){const r=n[A];let o;if(r.spec.isInputRules&&(o=r.getState(t))){if(e){const i=t.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)i.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=i.doc.resolve(o.from).marks();i.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else i.delete(o.from,o.to)}return!0}}return!1},V3=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:A,ranges:r}=n;return A||e&&r.forEach(o=>{t.removeMark(o.$from.pos,o.$to.pos)}),!0},$3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{var o;const{extendEmptyMarkRange:i=!1}=e,{selection:a}=n,l=Io(t,A.schema),{$from:u,empty:f,ranges:h}=a;if(!r)return!0;if(f&&i){let{from:p,to:g}=a;const B=(o=u.marks().find(C=>C.type===l))==null?void 0:o.attrs,y=Ym(u,l,B);y&&(p=y.from,g=y.to),n.removeMark(p,g,l)}else h.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,l)});return n.removeStoredMark(l),!0},K3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{let o=null,i=null;const a=Wu(typeof t=="string"?t:t.name,A.schema);return a?(a==="node"&&(o=kn(t,A.schema)),a==="mark"&&(i=Io(t,A.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,f=l.$to.pos;let h,p,g,B;n.selection.empty?A.doc.nodesBetween(u,f,(y,C)=>{o&&o===y.type&&(g=Math.max(C,u),B=Math.min(C+y.nodeSize,f),h=C,p=y)}):A.doc.nodesBetween(u,f,(y,C)=>{C<u&&o&&o===y.type&&(g=Math.max(C,u),B=Math.min(C+y.nodeSize,f),h=C,p=y),C>=u&&C<=f&&(o&&o===y.type&&n.setNodeMarkup(C,void 0,{...y.attrs,...e}),i&&y.marks.length&&y.marks.forEach(w=>{if(i===w.type){const F=Math.max(C,u),_=Math.min(C+y.nodeSize,f);n.addMark(F,_,i.create({...w.attrs,...e}))}}))}),p&&(h!==void 0&&n.setNodeMarkup(h,void 0,{...p.attrs,...e}),i&&p.marks.length&&p.marks.forEach(y=>{i===y.type&&n.addMark(g,B,i.create({...y.attrs,...e}))}))}),!0):!1},z3=(t,e={})=>({state:n,dispatch:A})=>{const r=kn(t,n.schema);return nV(r,e)(n,A)},W3=(t,e={})=>({state:n,dispatch:A})=>{const r=kn(t,n.schema);return AV(r,e)(n,A)},Jv=gn.create({name:"commands",addCommands(){return{...Gv}}}),Xv=gn.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,A,r;const o=()=>{var i,a,l,u;if((u=(l=(a=(i=this.editor.options.coreExtensionOptions)==null?void 0:i.delete)==null?void 0:a.filterTransaction)==null?void 0:l.call(a,t))!=null?u:t.getMeta("y-sync$"))return;const f=Sv(t.before,[t,...e]);Lv(f).forEach(g=>{f.mapping.mapResult(g.oldRange.from).deletedAfter&&f.mapping.mapResult(g.oldRange.to).deletedBefore&&f.before.nodesBetween(g.oldRange.from,g.oldRange.to,(B,y)=>{const C=y+B.nodeSize-2,w=g.oldRange.from<=y&&C<=g.oldRange.to;this.editor.emit("delete",{type:"node",node:B,from:y,to:C,newFrom:f.mapping.map(y),newTo:f.mapping.map(C),deletedRange:g.oldRange,newRange:g.newRange,partial:!w,editor:this.editor,transaction:t,combinedTransform:f})})});const p=f.mapping;f.steps.forEach((g,B)=>{var y,C;if(g instanceof xr){const w=p.slice(B).map(g.from,-1),F=p.slice(B).map(g.to),_=p.invert().map(w,-1),D=p.invert().map(F),P=(y=f.doc.nodeAt(w-1))==null?void 0:y.marks.some(H=>H.eq(g.mark)),T=(C=f.doc.nodeAt(F))==null?void 0:C.marks.some(H=>H.eq(g.mark));this.editor.emit("delete",{type:"mark",mark:g.mark,from:g.from,to:g.to,deletedRange:{from:_,to:D},newRange:{from:w,to:F},partial:!!(T||P),editor:this.editor,transaction:t,combinedTransform:f})}})};(r=(A=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:A.async)==null||r?setTimeout(o,0):o()}}),Zv=gn.create({name:"drop",addProseMirrorPlugins(){return[new sn({key:new Hn("tiptapDrop"),props:{handleDrop:(t,e,n,A)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:A})}}})]}}),eE=gn.create({name:"editable",addProseMirrorPlugins(){return[new sn({key:new Hn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),tE=new Hn("focusEvents"),nE=gn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new sn({key:tE,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const A=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(A),!1},blur:(e,n)=>{t.isFocused=!1;const A=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(A),!1}}}})]}}),AE=gn.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:i})=>[()=>i.undoInputRule(),()=>i.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:f,$anchor:h}=l,{pos:p,parent:g}=h,B=h.parent.isTextblock&&p>0?a.doc.resolve(p-1):h,y=B.parent.type.spec.isolating,C=h.pos-h.parentOffset,w=y&&B.parent.childCount===1?C===h.pos:it.atStart(u).from===p;return!f||!g.type.isTextblock||g.textContent.length||!w||w&&h.parent.type.name==="paragraph"?!1:i.clearNodes()}),()=>i.deleteSelection(),()=>i.joinBackward(),()=>i.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:i})=>[()=>i.deleteSelection(),()=>i.deleteCurrentNode(),()=>i.joinForward(),()=>i.selectNodeForward()]),A={Enter:()=>this.editor.commands.first(({commands:i})=>[()=>i.newlineInCode(),()=>i.createParagraphNear(),()=>i.liftEmptyBlock(),()=>i.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...A},o={...A,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Zm()||Yv()?o:r},addProseMirrorPlugins(){return[new sn({key:new Hn("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(y=>y.getMeta("composition")))return;const A=t.some(y=>y.docChanged)&&!e.doc.eq(n.doc),r=t.some(y=>y.getMeta("preventClearDocument"));if(!A||r)return;const{empty:o,from:i,to:a}=e.selection,l=it.atStart(e.doc).from,u=it.atEnd(e.doc).to;if(o||!(i===l&&a===u)||!ju(n.doc))return;const p=n.tr,g=Ru({state:n,transaction:p}),{commands:B}=new Vu({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),rE=gn.create({name:"paste",addProseMirrorPlugins(){return[new sn({key:new Hn("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),oE=gn.create({name:"tabindex",addProseMirrorPlugins(){return[new sn({key:new Hn("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),G3=class il{constructor(e,n,A=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=A,this.resolvedPos=e,this.editor=n,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,A=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,A=this.to-1}this.editor.commands.insertContentAt({from:n,to:A},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new il(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new il(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new il(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,A)=>{const r=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,i=this.pos+A+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const l=new il(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new il(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let A=null,r=this.parent;for(;r&&!A;){if(r.node.type.name===e)if(Object.keys(n).length>0){const o=r.node.attrs,i=Object.keys(n);for(let a=0;a<i.length;a+=1){const l=i[a];if(o[l]!==n[l])break}}else A=r;r=r.parent}return A}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},A=!1){let r=[];if(!this.children||this.children.length===0)return r;const o=Object.keys(n);return this.children.forEach(i=>{A&&r.length>0||(i.node.type.name===e&&o.every(l=>n[l]===i.node.attrs[l])&&r.push(i),!(A&&r.length>0)&&(r=r.concat(i.querySelectorAll(e,n,A))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},Y3=`.ProseMirror {
36
+ `,textSerializers:i={}}=n||{};let a="";return t.nodesBetween(A,r,(l,u,f,h)=>{var p;l.isBlock&&u>A&&(a+=o);const g=i?.[l.type.name];if(g)return f&&(a+=g({node:l,pos:u,parent:f,index:h,range:e})),!1;l.isText&&(a+=(p=l?.text)==null?void 0:p.slice(Math.max(A,u)-u,r-u))}),a}function bV(t,e){const n={from:0,to:t.content.size};return Tv(t,n,e)}function Dv(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function Io(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}function Mv(t,e){const n=Io(e,t.schema),{from:A,to:r,empty:o}=t.selection,i=[];o?(t.storedMarks&&i.push(...t.storedMarks),i.push(...t.selection.$head.marks())):t.doc.nodesBetween(A,r,l=>{i.push(...l.marks)});const a=i.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function kn(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function vV(t,e){const n=kn(e,t.schema),{from:A,to:r}=t.selection,o=[];t.doc.nodesBetween(A,r,a=>{o.push(a)});const i=o.reverse().find(a=>a.type.name===n.name);return i?{...i.attrs}:{}}function Wu(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Ov(t,e){const n=Wu(typeof e=="string"?e:e.name,t.schema);return n==="node"?vV(t,e):n==="mark"?Mv(t,e):{}}function EV(t,e=JSON.stringify){const n={};return t.filter(A=>{const r=e(A);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function kV(t){const e=EV(t);return e.length===1?e:e.filter((n,A)=>!e.filter((o,i)=>i!==A).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function Lv(t){const{mapping:e,steps:n}=t,A=[];return e.maps.forEach((r,o)=>{const i=[];if(r.ranges.length)r.forEach((a,l)=>{i.push({from:a,to:l})});else{const{from:a,to:l}=n[o];if(a===void 0||l===void 0)return;i.push({from:a,to:l})}i.forEach(({from:a,to:l})=>{const u=e.slice(o).map(a,-1),f=e.slice(o).map(l),h=e.invert().map(u,-1),p=e.invert().map(f);A.push({oldRange:{from:h,to:p},newRange:{from:u,to:f}})})}),kV(A)}function Gm(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Gu(t,e,n={strict:!0}){const A=Object.keys(e);return A.length?A.every(r=>n.strict?e[r]===t[r]:Gm(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Nv(t,e,n={}){return t.find(A=>A.type===e&&Gu(Object.fromEntries(Object.keys(n).map(r=>[r,A.attrs[r]])),n))}function Hv(t,e,n={}){return!!Nv(t,e,n)}function Ym(t,e,n){var A;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(f=>f.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(f=>f.type===e)||(n=n||((A=r.node.marks[0])==null?void 0:A.attrs),!Nv([...r.node.marks],e,n)))return;let i=r.index,a=t.start()+r.offset,l=i+1,u=a+r.node.nodeSize;for(;i>0&&Hv([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;l<t.parent.childCount&&Hv([...t.parent.child(l).marks],e,n);)u+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:u}}function jm(t,e,n){const A=[];return t===e?n.resolve(t).marks().forEach(r=>{const o=n.resolve(t),i=Ym(o,r.type);i&&A.push({mark:r,...i})}):n.nodesBetween(t,e,(r,o)=>{!r||r?.nodeSize===void 0||A.push(...r.marks.map(i=>({from:o,to:o+r.nodeSize,mark:i})))}),A}var SV=(t,e,n,A=20)=>{const r=t.doc.resolve(n);let o=A,i=null;for(;o>0&&i===null;){const a=r.node(o);a?.type.name===e?i=a:o-=1}return[i,o]};function qm(t,e){return e.nodes[t]||e.marks[t]||null}function Yu(t,e,n){return Object.fromEntries(Object.entries(n).filter(([A])=>{const r=t.find(o=>o.type===e&&o.name===A);return r?r.attribute.keepOnSplit:!1}))}var FV=(t,e=500)=>{let n="";const A=t.parentOffset;return t.parent.nodesBetween(Math.max(0,A-e),A,(r,o,i,a)=>{var l,u;const f=((u=(l=r.type.spec).toText)==null?void 0:u.call(l,{node:r,pos:o,parent:i,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?f:f.slice(0,Math.max(0,A-o))}),n};function Jm(t,e,n={}){const{empty:A,ranges:r}=t.selection,o=e?Io(e,t.schema):null;if(A)return!!(t.storedMarks||t.selection.$from.marks()).filter(h=>o?o.name===h.type.name:!0).find(h=>Gu(h.attrs,n,{strict:!1}));let i=0;const a=[];if(r.forEach(({$from:h,$to:p})=>{const g=h.pos,B=p.pos;t.doc.nodesBetween(g,B,(y,C)=>{if(!y.isText&&!y.marks.length)return;const w=Math.max(g,C),F=Math.min(B,C+y.nodeSize),_=F-w;i+=_,a.push(...y.marks.map(D=>({mark:D,from:w,to:F})))})}),i===0)return!1;const l=a.filter(h=>o?o.name===h.mark.type.name:!0).filter(h=>Gu(h.mark.attrs,n,{strict:!1})).reduce((h,p)=>h+p.to-p.from,0),u=a.filter(h=>o?h.mark.type!==o&&h.mark.type.excludes(o):!0).reduce((h,p)=>h+p.to-p.from,0);return(l>0?l+u:l)>=i}function wi(t,e,n={}){const{from:A,to:r,empty:o}=t.selection,i=e?kn(e,t.schema):null,a=[];t.doc.nodesBetween(A,r,(h,p)=>{if(h.isText)return;const g=Math.max(A,p),B=Math.min(r,p+h.nodeSize);a.push({node:h,from:g,to:B})});const l=r-A,u=a.filter(h=>i?i.name===h.node.type.name:!0).filter(h=>Gu(h.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((h,p)=>h+p.to-p.from,0)>=l}function QV(t,e,n={}){if(!e)return wi(t,null,n)||Jm(t,null,n);const A=Wu(e,t.schema);return A==="node"?wi(t,e,n):A==="mark"?Jm(t,e,n):!1}var xV=(t,e)=>{const{$from:n,$to:A,$anchor:r}=t.selection;if(e){const o=Ku(a=>a.type.name===e)(t.selection);if(!o)return!1;const i=t.doc.resolve(o.pos+1);return r.pos+1===i.end()}return!(A.parentOffset<A.parent.nodeSize-2||n.pos!==A.pos)},UV=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function Pv(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Rv(t,e){const{nodeExtensions:n}=Kl(e),A=n.find(i=>i.name===t);if(!A)return!1;const r={name:A.name,options:A.options,storage:A.storage},o=_t(ze(A,"group",r));return typeof o!="string"?!1:o.split(" ").includes("list")}function ju(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var A;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((A=t.text)!=null?A:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(o=>{r!==!1&&(ju(o,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Vv(t){return t instanceof We}function $v(t){return t instanceof nt}function Bs(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Kv(t,e=null){if(!e)return null;const n=it.atStart(t),A=it.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return A;const r=n.from,o=A.to;return e==="all"?nt.create(t,Bs(0,r,o),Bs(t.content.size,r,o)):nt.create(t,Bs(e,r,o),Bs(e,r,o))}function IV(t,e,n){const A=t.steps.length-1;if(A<e)return;const r=t.steps[A];if(!(r instanceof Ln||r instanceof Nn))return;const o=t.mapping.maps[A];let i=0;o.forEach((a,l,u,f)=>{i===0&&(i=f)}),t.setSelection(it.near(t.doc.resolve(i),n))}var qu=class{constructor(t){this.find=t.find,this.handler=t.handler}},_V=(t,e)=>{if(Gm(e))return e.exec(t);const n=e(t);if(!n)return null;const A=[n.text];return A.index=n.index,A.input=t,A.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),A.push(n.replaceWith)),A};function Ju(t){var e;const{editor:n,from:A,to:r,text:o,rules:i,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(A);if(u.parent.type.spec.code||(e=u.nodeBefore||u.nodeAfter)!=null&&e.marks.find(p=>p.type.spec.code))return!1;let f=!1;const h=FV(u)+o;return i.forEach(p=>{if(f)return;const g=_V(h,p.find);if(!g)return;const B=l.state.tr,y=Ru({state:l.state,transaction:B}),C={from:A-(g[0].length-o.length),to:r},{commands:w,chain:F,can:_}=new Vu({editor:n,state:y});p.handler({state:y,range:C,match:g,commands:w,chain:F,can:_})===null||!B.steps.length||(B.setMeta(a,{transform:B,from:A,to:r,text:o}),l.dispatch(B),f=!0)}),f}function TV(t){const{editor:e,rules:n}=t,A=new sn({state:{init(){return null},apply(r,o,i){const a=r.getMeta(A);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:f}=l;typeof f=="string"?f=f:f=zm(Qe.from(f),i.schema);const{from:h}=l,p=h+f.length;Ju({editor:e,from:h,to:p,text:f,rules:n,plugin:A})}),r.selectionSet||r.docChanged?null:o}},props:{handleTextInput(r,o,i,a){return Ju({editor:e,from:o,to:i,text:a,rules:n,plugin:A})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&Ju({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:A})}),!1)},handleKeyDown(r,o){if(o.key!=="Enter")return!1;const{$cursor:i}=r.state.selection;return i?Ju({editor:e,from:i.pos,to:i.pos,text:`
37
+ `,rules:n,plugin:A}):!1}},isInputRules:!0});return A}function DV(t){return Object.prototype.toString.call(t).slice(8,-1)}function Xu(t){return DV(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zv(t,e){const n={...t};return Xu(t)&&Xu(e)&&Object.keys(e).forEach(A=>{Xu(e[A])&&Xu(t[A])?n[A]=zv(t[A],e[A]):n[A]=e[A]}),n}var Xm=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{..._t(ze(this,"addOptions",{name:this.name}))||{}}}get storage(){return{..._t(ze(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>zv(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},Ci=class CT extends Xm{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new CT(n)}static handleExit({editor:e,mark:n}){const{tr:A}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const i=r.marks();if(!!!i.find(u=>u?.type.name===n.name))return!1;const l=i.find(u=>u?.type.name===n.name);return l&&A.removeStoredMark(l),A.insertText(" ",r.pos),e.view.dispatch(A),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function MV(t){return typeof t=="number"}var OV=class{constructor(t){this.find=t.find,this.handler=t.handler}},LV=(t,e,n)=>{if(Gm(e))return[...t.matchAll(e)];const A=e(t,n);return A?A.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function NV(t){const{editor:e,state:n,from:A,to:r,rule:o,pasteEvent:i,dropEvent:a}=t,{commands:l,chain:u,can:f}=new Vu({editor:e,state:n}),h=[];return n.doc.nodesBetween(A,r,(g,B)=>{if(!g.isTextblock||g.type.spec.code)return;const y=Math.max(A,B),C=Math.min(r,B+g.content.size),w=g.textBetween(y-B,C-B,void 0,"");LV(w,o.find,i).forEach(_=>{if(_.index===void 0)return;const D=y+_.index+1,P=D+_[0].length,T={from:n.tr.mapping.map(D),to:n.tr.mapping.map(P)},H=o.handler({state:n,range:T,match:_,commands:l,chain:u,can:f,pasteEvent:i,dropEvent:a});h.push(H)})}),h.every(g=>g!==null)}var Zu=null,HV=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function PV(t){const{editor:e,rules:n}=t;let A=null,r=!1,o=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:f,from:h,to:p,rule:g,pasteEvt:B})=>{const y=f.tr,C=Ru({state:f,transaction:y});if(!(!NV({editor:e,state:C,from:Math.max(h-1,0),to:p.b-1,rule:g,pasteEvent:B,dropEvent:a})||!y.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y}};return n.map(f=>new sn({view(h){const p=B=>{var y;A=(y=h.dom.parentElement)!=null&&y.contains(B.target)?h.dom.parentElement:null,A&&(Zu=e)},g=()=>{Zu&&(Zu=null)};return window.addEventListener("dragstart",p),window.addEventListener("dragend",g),{destroy(){window.removeEventListener("dragstart",p),window.removeEventListener("dragend",g)}}},props:{handleDOMEvents:{drop:(h,p)=>{if(o=A===h.dom.parentElement,a=p,!o){const g=Zu;g?.isEditable&&setTimeout(()=>{const B=g.state.selection;B&&g.commands.deleteRange({from:B.from,to:B.to})},10)}return!1},paste:(h,p)=>{var g;const B=(g=p.clipboardData)==null?void 0:g.getData("text/html");return i=p,r=!!B?.includes("data-pm-slice"),!1}}},appendTransaction:(h,p,g)=>{const B=h[0],y=B.getMeta("uiEvent")==="paste"&&!r,C=B.getMeta("uiEvent")==="drop"&&!o,w=B.getMeta("applyPasteRules"),F=!!w;if(!y&&!C&&!F)return;if(F){let{text:P}=w;typeof P=="string"?P=P:P=zm(Qe.from(P),g.schema);const{from:T}=w,H=T+P.length,te=HV(P);return l({rule:f,state:g,from:T,to:{b:H},pasteEvt:te})}const _=p.doc.content.findDiffStart(g.doc.content),D=p.doc.content.findDiffEnd(g.doc.content);if(!(!MV(_)||!D||_===D.b))return l({rule:f,state:g,from:_,to:D,pasteEvt:i})}}))}var ed=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=_v(t),this.schema=wV(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:qm(e.name,this.schema)},A=ze(e,"addCommands",n);return A?{...t,...A()}:t},{})}get plugins(){const{editor:t}=this,e=Wm([...this.extensions].reverse()),n=[],A=[],r=e.map(o=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:t,type:qm(o.name,this.schema)},a=[],l=ze(o,"addKeyboardShortcuts",i);let u={};if(o.type==="mark"&&ze(o,"exitable",i)&&(u.ArrowRight=()=>Ci.handleExit({editor:t,mark:o})),l){const B=Object.fromEntries(Object.entries(l()).map(([y,C])=>[y,()=>C({editor:t})]));u={...u,...B}}const f=W4(u);a.push(f);const h=ze(o,"addInputRules",i);Pv(o,t.options.enableInputRules)&&h&&n.push(...h());const p=ze(o,"addPasteRules",i);Pv(o,t.options.enablePasteRules)&&p&&A.push(...p());const g=ze(o,"addProseMirrorPlugins",i);if(g){const B=g();a.push(...B)}return a}).flat();return[TV({editor:t,rules:n}),...PV({editor:t,rules:A}),...r]}get attributes(){return xv(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=Kl(this.extensions);return Object.fromEntries(e.filter(n=>!!ze(n,"addNodeView")).map(n=>{const A=this.attributes.filter(a=>a.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:kn(n.name,this.schema)},o=ze(n,"addNodeView",r);if(!o)return[];const i=(a,l,u,f,h)=>{const p=zu(a,A);return o()({node:a,view:l,getPos:u,decorations:f,innerDecorations:h,editor:t,extension:n,HTMLAttributes:p})};return[n.name,i]}))}get markViews(){const{editor:t}=this,{markExtensions:e}=Kl(this.extensions);return Object.fromEntries(e.filter(n=>!!ze(n,"addMarkView")).map(n=>{const A=this.attributes.filter(a=>a.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Io(n.name,this.schema)},o=ze(n,"addMarkView",r);if(!o)return[];const i=(a,l,u)=>{const f=zu(a,A);return o()({mark:a,view:l,inline:u,editor:t,extension:n,HTMLAttributes:f,updateAttributes:h=>{n$(a,t,h)}})};return[n.name,i]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const A={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:qm(e.name,this.schema)};e.type==="mark"&&((n=_t(ze(e,"keepOnSplit",A)))==null||n)&&this.splittableMarks.push(e.name);const r=ze(e,"onBeforeCreate",A),o=ze(e,"onCreate",A),i=ze(e,"onUpdate",A),a=ze(e,"onSelectionUpdate",A),l=ze(e,"onTransaction",A),u=ze(e,"onFocus",A),f=ze(e,"onBlur",A),h=ze(e,"onDestroy",A);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),f&&this.editor.on("blur",f),h&&this.editor.on("destroy",h)})}};ed.resolve=_v,ed.sort=Wm,ed.flatten=Km;var RV={};kv(RV,{ClipboardTextSerializer:()=>Wv,Commands:()=>Jv,Delete:()=>Xv,Drop:()=>Zv,Editable:()=>eE,FocusEvents:()=>nE,Keymap:()=>AE,Paste:()=>rE,Tabindex:()=>oE,focusEventsPluginKey:()=>tE});var gn=class bT extends Xm{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new bT(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},Wv=gn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new sn({key:new Hn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:A,selection:r}=e,{ranges:o}=r,i=Math.min(...o.map(f=>f.$from.pos)),a=Math.max(...o.map(f=>f.$to.pos)),l=Dv(n);return Tv(A,{from:i,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Gv={};kv(Gv,{blur:()=>VV,clearContent:()=>$V,clearNodes:()=>KV,command:()=>zV,createParagraphNear:()=>WV,cut:()=>GV,deleteCurrentNode:()=>YV,deleteNode:()=>jV,deleteRange:()=>qV,deleteSelection:()=>JV,enter:()=>XV,exitCode:()=>ZV,extendMarkRange:()=>e3,first:()=>t3,focus:()=>A3,forEach:()=>r3,insertContent:()=>o3,insertContentAt:()=>s3,joinBackward:()=>c3,joinDown:()=>l3,joinForward:()=>u3,joinItemBackward:()=>d3,joinItemForward:()=>f3,joinTextblockBackward:()=>h3,joinTextblockForward:()=>p3,joinUp:()=>a3,keyboardShortcut:()=>g3,lift:()=>B3,liftEmptyBlock:()=>y3,liftListItem:()=>w3,newlineInCode:()=>C3,resetAttributes:()=>b3,scrollIntoView:()=>v3,selectAll:()=>E3,selectNodeBackward:()=>k3,selectNodeForward:()=>S3,selectParentNode:()=>F3,selectTextblockEnd:()=>Q3,selectTextblockStart:()=>x3,setContent:()=>U3,setMark:()=>_3,setMeta:()=>T3,setNode:()=>D3,setNodeSelection:()=>M3,setTextSelection:()=>O3,sinkListItem:()=>L3,splitBlock:()=>N3,splitListItem:()=>H3,toggleList:()=>P3,toggleMark:()=>R3,toggleNode:()=>V3,toggleWrap:()=>$3,undoInputRule:()=>K3,unsetAllMarks:()=>z3,unsetMark:()=>W3,updateAttributes:()=>G3,wrapIn:()=>Y3,wrapInList:()=>j3});var VV=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),$V=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),KV=()=>({state:t,tr:e,dispatch:n})=>{const{selection:A}=e,{ranges:r}=A;return n&&r.forEach(({$from:o,$to:i})=>{t.doc.nodesBetween(o.pos,i.pos,(a,l)=>{if(a.type.isText)return;const{doc:u,mapping:f}=e,h=u.resolve(f.map(l)),p=u.resolve(f.map(l+a.nodeSize)),g=h.blockRange(p);if(!g)return;const B=aa(g);if(a.type.isTextblock){const{defaultType:y}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(g.start,y)}(B||B===0)&&e.lift(g,B)})}),!0},zV=t=>e=>t(e),WV=()=>({state:t,dispatch:e})=>wv(t,e),GV=(t,e)=>({editor:n,tr:A})=>{const{state:r}=n,o=r.doc.slice(t.from,t.to);A.deleteRange(t.from,t.to);const i=A.mapping.map(e);return A.insert(i,o.content),A.setSelection(new nt(A.doc.resolve(Math.max(i-1,0)))),!0},YV=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,A=n.$anchor.node();if(A.content.size>0)return!1;const r=t.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===A.type){if(e){const a=r.before(o),l=r.after(o);t.delete(a,l).scrollIntoView()}return!0}return!1},jV=t=>({tr:e,state:n,dispatch:A})=>{const r=kn(t,n.schema),o=e.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r){if(A){const l=o.before(i),u=o.after(i);e.delete(l,u).scrollIntoView()}return!0}return!1},qV=t=>({tr:e,dispatch:n})=>{const{from:A,to:r}=t;return n&&e.delete(A,r),!0},JV=()=>({state:t,dispatch:e})=>Nm(t,e),XV=()=>({commands:t})=>t.keyboardShortcut("Enter"),ZV=()=>({state:t,dispatch:e})=>X4(t,e),e3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{const o=Io(t,A.schema),{doc:i,selection:a}=n,{$from:l,from:u,to:f}=a;if(r){const h=Ym(l,o,e);if(h&&h.from<=u&&h.to>=f){const p=nt.create(i,h.from,h.to);n.setSelection(p)}}return!0},t3=t=>e=>{const n=typeof t=="function"?t(e):t;for(let A=0;A<n.length;A+=1)if(n[A](e))return!0;return!1};function n3(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Zm(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var A3=(t=null,e={})=>({editor:n,view:A,tr:r,dispatch:o})=>{e={scrollIntoView:!0,...e};const i=()=>{(Zm()||n3())&&A.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(A.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};if(A.hasFocus()&&t===null||t===!1)return!0;if(o&&t===null&&!$v(n.state.selection))return i(),!0;const a=Kv(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),i()),!0},r3=(t,e)=>n=>t.every((A,r)=>e(A,{...n,index:r})),o3=(t,e)=>({tr:n,commands:A})=>A.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),i3=t=>!("type"in t),s3=(t,e,n)=>({tr:A,dispatch:r,editor:o})=>{var i;if(r){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const{selection:l}=o.state,u=w=>{o.emit("contentError",{editor:o,error:w,disableCollaboration:()=>{"collaboration"in o.storage&&typeof o.storage.collaboration=="object"&&o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},f={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{$l(e,o.schema,{parseOptions:f,errorOnInvalidContent:!0})}catch(w){u(w)}try{a=$l(e,o.schema,{parseOptions:f,errorOnInvalidContent:(i=n.errorOnInvalidContent)!=null?i:o.options.enableContentCheck})}catch(w){return u(w),!1}let{from:h,to:p}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},g=!0,B=!0;if((i3(a)?a:[a]).forEach(w=>{w.check(),g=g?w.isText&&w.marks.length===0:!1,B=B?w.isBlock:!1}),h===p&&B){const{parent:w}=A.doc.resolve(h);w.isTextblock&&!w.type.spec.code&&!w.childCount&&(h-=1,p+=1)}let C;if(g){if(Array.isArray(e))C=e.map(w=>w.text||"").join("");else if(e instanceof Qe){let w="";e.forEach(F=>{F.text&&(w+=F.text)}),C=w}else typeof e=="object"&&e&&e.text?C=e.text:C=e;A.insertText(C,h,p)}else{C=a;const w=l.$from.parentOffset===0,F=l.$from.node().isText||l.$from.node().isTextblock,_=l.$from.node().content.size>0;w&&F&&_&&(h=Math.max(0,h-1)),A.replaceWith(h,p,C)}n.updateSelection&&IV(A,A.steps.length-1,-1),n.applyInputRules&&A.setMeta("applyInputRules",{from:h,text:C}),n.applyPasteRules&&A.setMeta("applyPasteRules",{from:h,text:C})}return!0},a3=()=>({state:t,dispatch:e})=>j4(t,e),l3=()=>({state:t,dispatch:e})=>q4(t,e),c3=()=>({state:t,dispatch:e})=>fv(t,e),u3=()=>({state:t,dispatch:e})=>gv(t,e),d3=()=>({state:t,dispatch:e,tr:n})=>{try{const A=Qu(t.doc,t.selection.$from.pos,-1);return A==null?!1:(n.join(A,2),e&&e(n),!0)}catch{return!1}},f3=()=>({state:t,dispatch:e,tr:n})=>{try{const A=Qu(t.doc,t.selection.$from.pos,1);return A==null?!1:(n.join(A,2),e&&e(n),!0)}catch{return!1}},h3=()=>({state:t,dispatch:e})=>G4(t,e),p3=()=>({state:t,dispatch:e})=>Y4(t,e);function Yv(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function m3(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let A,r,o,i;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))A=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))Zm()||Yv()?i=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return A&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),i&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}var g3=t=>({editor:e,view:n,tr:A,dispatch:r})=>{const o=m3(t).split(/-(?!$)/),i=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,a))});return l?.steps.forEach(u=>{const f=u.map(A.mapping);f&&r&&A.maybeStep(f)}),!0},B3=(t,e={})=>({state:n,dispatch:A})=>{const r=kn(t,n.schema);return wi(n,r,e)?J4(n,A):!1},y3=()=>({state:t,dispatch:e})=>Cv(t,e),w3=t=>({state:e,dispatch:n})=>{const A=kn(t,e.schema);return lV(A)(e,n)},C3=()=>({state:t,dispatch:e})=>yv(t,e);function jv(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((A,r)=>(n.includes(r)||(A[r]=t[r]),A),{})}var b3=(t,e)=>({tr:n,state:A,dispatch:r})=>{let o=null,i=null;const a=Wu(typeof t=="string"?t:t.name,A.schema);return a?(a==="node"&&(o=kn(t,A.schema)),a==="mark"&&(i=Io(t,A.schema)),r&&n.selection.ranges.forEach(l=>{A.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,f)=>{o&&o===u.type&&n.setNodeMarkup(f,void 0,jv(u.attrs,e)),i&&u.marks.length&&u.marks.forEach(h=>{i===h.type&&n.addMark(f,f+u.nodeSize,i.create(jv(h.attrs,e)))})})}),!0):!1},v3=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),E3=()=>({tr:t,dispatch:e})=>{if(e){const n=new HA(t.doc);t.setSelection(n)}return!0},k3=()=>({state:t,dispatch:e})=>pv(t,e),S3=()=>({state:t,dispatch:e})=>Bv(t,e),F3=()=>({state:t,dispatch:e})=>tV(t,e),Q3=()=>({state:t,dispatch:e})=>rV(t,e),x3=()=>({state:t,dispatch:e})=>AV(t,e),U3=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:A={}}={})=>({editor:r,tr:o,dispatch:i,commands:a})=>{const{doc:l}=o;if(A.preserveWhitespace!=="full"){const u=$m(t,r.schema,A,{errorOnInvalidContent:e??r.options.enableContentCheck});return i&&o.replaceWith(0,l.content.size,u).setMeta("preventUpdate",!n),!0}return i&&o.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},t,{parseOptions:A,errorOnInvalidContent:e??r.options.enableContentCheck})};function I3(t,e,n){var A;const{selection:r}=e;let o=null;if($v(r)&&(o=r.$cursor),o){const a=(A=t.storedMarks)!=null?A:o.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:i}=r;return i.some(({$from:a,$to:l})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(f,h,p)=>{if(u)return!1;if(f.isInline){const g=!p||p.type.allowsMarkType(n),B=!!n.isInSet(f.marks)||!f.marks.some(y=>y.type.excludes(n));u=g&&B}return!u}),u})}var _3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{const{selection:o}=n,{empty:i,ranges:a}=o,l=Io(t,A.schema);if(r)if(i){const u=Mv(A,l);n.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const f=u.$from.pos,h=u.$to.pos;A.doc.nodesBetween(f,h,(p,g)=>{const B=Math.max(g,f),y=Math.min(g+p.nodeSize,h);p.marks.find(w=>w.type===l)?p.marks.forEach(w=>{l===w.type&&n.addMark(B,y,l.create({...w.attrs,...e}))}):n.addMark(B,y,l.create(e))})});return I3(A,n,l)},T3=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),D3=(t,e={})=>({state:n,dispatch:A,chain:r})=>{const o=kn(t,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),o.isTextblock?r().command(({commands:a})=>Ev(o,{...i,...e})(n)?!0:a.clearNodes()).command(({state:a})=>Ev(o,{...i,...e})(a,A)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},M3=t=>({tr:e,dispatch:n})=>{if(n){const{doc:A}=e,r=Bs(t,0,A.content.size),o=We.create(A,r);e.setSelection(o)}return!0},O3=t=>({tr:e,dispatch:n})=>{if(n){const{doc:A}=e,{from:r,to:o}=typeof t=="number"?{from:t,to:t}:t,i=nt.atStart(A).from,a=nt.atEnd(A).to,l=Bs(r,i,a),u=Bs(o,i,a),f=nt.create(A,l,u);e.setSelection(f)}return!0},L3=t=>({state:e,dispatch:n})=>{const A=kn(t,e.schema);return dV(A)(e,n)};function qv(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const A=n.filter(r=>e?.includes(r.type.name));t.tr.ensureMarks(A)}}var N3=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:A,editor:r})=>{const{selection:o,doc:i}=e,{$from:a,$to:l}=o,u=r.extensionManager.attributes,f=Yu(u,a.node().type.name,a.node().attrs);if(o instanceof We&&o.node.isBlock)return!a.parentOffset||!So(i,a.pos)?!1:(A&&(t&&qv(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const h=l.parentOffset===l.parent.content.size,p=a.depth===0?void 0:pV(a.node(-1).contentMatchAt(a.indexAfter(-1)));let g=h&&p?[{type:p,attrs:f}]:void 0,B=So(e.doc,e.mapping.map(a.pos),1,g);if(!g&&!B&&So(e.doc,e.mapping.map(a.pos),1,p?[{type:p}]:void 0)&&(B=!0,g=p?[{type:p,attrs:f}]:void 0),A){if(B&&(o instanceof nt&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,g),p&&!h&&!a.parentOffset&&a.parent.type!==p)){const y=e.mapping.map(a.before()),C=e.doc.resolve(y);a.node(-1).canReplaceWith(C.index(),C.index()+1,p)&&e.setNodeMarkup(e.mapping.map(a.before()),p)}t&&qv(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return B},H3=(t,e={})=>({tr:n,state:A,dispatch:r,editor:o})=>{var i;const a=kn(t,A.schema),{$from:l,$to:u}=A.selection,f=A.selection.node;if(f&&f.isBlock||l.depth<2||!l.sameParent(u))return!1;const h=l.node(-1);if(h.type!==a)return!1;const p=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let w=Qe.empty;const F=l.index(-1)?1:l.index(-2)?2:3;for(let te=l.depth-F;te>=l.depth-3;te-=1)w=Qe.from(l.node(te).copy(w));const _=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,D={...Yu(p,l.node().type.name,l.node().attrs),...e},P=((i=a.contentMatch.defaultType)==null?void 0:i.createAndFill(D))||void 0;w=w.append(Qe.from(a.createAndFill(null,P)||void 0));const T=l.before(l.depth-(F-1));n.replace(T,l.after(-_),new Ne(w,4-F,0));let H=-1;n.doc.nodesBetween(T,n.doc.content.size,(te,Z)=>{if(H>-1)return!1;te.isTextblock&&te.content.size===0&&(H=Z+1)}),H>-1&&n.setSelection(nt.near(n.doc.resolve(H))),n.scrollIntoView()}return!0}const g=u.pos===l.end()?h.contentMatchAt(0).defaultType:null,B={...Yu(p,h.type.name,h.attrs),...e},y={...Yu(p,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const C=g?[{type:a,attrs:B},{type:g,attrs:y}]:[{type:a,attrs:B}];if(!So(n.doc,l.pos,2))return!1;if(r){const{selection:w,storedMarks:F}=A,{splittableMarks:_}=o.extensionManager,D=F||w.$to.parentOffset&&w.$from.marks();if(n.split(l.pos,2,C).scrollIntoView(),!D||!r)return!0;const P=D.filter(T=>_.includes(T.type.name));n.ensureMarks(P)}return!0},eg=(t,e)=>{const n=Ku(i=>i.type===e)(t.selection);if(!n)return!0;const A=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(A===void 0)return!0;const r=t.doc.nodeAt(A);return n.node.type===r?.type&&ci(t.doc,n.pos)&&t.join(n.pos),!0},tg=(t,e)=>{const n=Ku(i=>i.type===e)(t.selection);if(!n)return!0;const A=t.doc.resolve(n.start).after(n.depth);if(A===void 0)return!0;const r=t.doc.nodeAt(A);return n.node.type===r?.type&&ci(t.doc,A)&&t.join(A),!0},P3=(t,e,n,A={})=>({editor:r,tr:o,state:i,dispatch:a,chain:l,commands:u,can:f})=>{const{extensions:h,splittableMarks:p}=r.extensionManager,g=kn(t,i.schema),B=kn(e,i.schema),{selection:y,storedMarks:C}=i,{$from:w,$to:F}=y,_=w.blockRange(F),D=C||y.$to.parentOffset&&y.$from.marks();if(!_)return!1;const P=Ku(T=>Rv(T.type.name,h))(y);if(_.depth>=1&&P&&_.depth-P.depth<=1){if(P.node.type===g)return u.liftListItem(B);if(Rv(P.node.type.name,h)&&g.validContent(P.node.content)&&a)return l().command(()=>(o.setNodeMarkup(P.pos,g),!0)).command(()=>eg(o,g)).command(()=>tg(o,g)).run()}return!n||!D||!a?l().command(()=>f().wrapInList(g,A)?!0:u.clearNodes()).wrapInList(g,A).command(()=>eg(o,g)).command(()=>tg(o,g)).run():l().command(()=>{const T=f().wrapInList(g,A),H=D.filter(te=>p.includes(te.type.name));return o.ensureMarks(H),T?!0:u.clearNodes()}).wrapInList(g,A).command(()=>eg(o,g)).command(()=>tg(o,g)).run()},R3=(t,e={},n={})=>({state:A,commands:r})=>{const{extendEmptyMarkRange:o=!1}=n,i=Io(t,A.schema);return Jm(A,i,e)?r.unsetMark(i,{extendEmptyMarkRange:o}):r.setMark(i,e)},V3=(t,e,n={})=>({state:A,commands:r})=>{const o=kn(t,A.schema),i=kn(e,A.schema),a=wi(A,o,n);let l;return A.selection.$anchor.sameParent(A.selection.$head)&&(l=A.selection.$anchor.parent.attrs),a?r.setNode(i,l):r.setNode(o,{...l,...n})},$3=(t,e={})=>({state:n,commands:A})=>{const r=kn(t,n.schema);return wi(n,r,e)?A.lift(r):A.wrapIn(r,e)},K3=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let A=0;A<n.length;A+=1){const r=n[A];let o;if(r.spec.isInputRules&&(o=r.getState(t))){if(e){const i=t.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)i.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=i.doc.resolve(o.from).marks();i.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else i.delete(o.from,o.to)}return!0}}return!1},z3=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:A,ranges:r}=n;return A||e&&r.forEach(o=>{t.removeMark(o.$from.pos,o.$to.pos)}),!0},W3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{var o;const{extendEmptyMarkRange:i=!1}=e,{selection:a}=n,l=Io(t,A.schema),{$from:u,empty:f,ranges:h}=a;if(!r)return!0;if(f&&i){let{from:p,to:g}=a;const B=(o=u.marks().find(C=>C.type===l))==null?void 0:o.attrs,y=Ym(u,l,B);y&&(p=y.from,g=y.to),n.removeMark(p,g,l)}else h.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,l)});return n.removeStoredMark(l),!0},G3=(t,e={})=>({tr:n,state:A,dispatch:r})=>{let o=null,i=null;const a=Wu(typeof t=="string"?t:t.name,A.schema);return a?(a==="node"&&(o=kn(t,A.schema)),a==="mark"&&(i=Io(t,A.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,f=l.$to.pos;let h,p,g,B;n.selection.empty?A.doc.nodesBetween(u,f,(y,C)=>{o&&o===y.type&&(g=Math.max(C,u),B=Math.min(C+y.nodeSize,f),h=C,p=y)}):A.doc.nodesBetween(u,f,(y,C)=>{C<u&&o&&o===y.type&&(g=Math.max(C,u),B=Math.min(C+y.nodeSize,f),h=C,p=y),C>=u&&C<=f&&(o&&o===y.type&&n.setNodeMarkup(C,void 0,{...y.attrs,...e}),i&&y.marks.length&&y.marks.forEach(w=>{if(i===w.type){const F=Math.max(C,u),_=Math.min(C+y.nodeSize,f);n.addMark(F,_,i.create({...w.attrs,...e}))}}))}),p&&(h!==void 0&&n.setNodeMarkup(h,void 0,{...p.attrs,...e}),i&&p.marks.length&&p.marks.forEach(y=>{i===y.type&&n.addMark(g,B,i.create({...y.attrs,...e}))}))}),!0):!1},Y3=(t,e={})=>({state:n,dispatch:A})=>{const r=kn(t,n.schema);return oV(r,e)(n,A)},j3=(t,e={})=>({state:n,dispatch:A})=>{const r=kn(t,n.schema);return iV(r,e)(n,A)},Jv=gn.create({name:"commands",addCommands(){return{...Gv}}}),Xv=gn.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,A,r;const o=()=>{var i,a,l,u;if((u=(l=(a=(i=this.editor.options.coreExtensionOptions)==null?void 0:i.delete)==null?void 0:a.filterTransaction)==null?void 0:l.call(a,t))!=null?u:t.getMeta("y-sync$"))return;const f=Sv(t.before,[t,...e]);Lv(f).forEach(g=>{f.mapping.mapResult(g.oldRange.from).deletedAfter&&f.mapping.mapResult(g.oldRange.to).deletedBefore&&f.before.nodesBetween(g.oldRange.from,g.oldRange.to,(B,y)=>{const C=y+B.nodeSize-2,w=g.oldRange.from<=y&&C<=g.oldRange.to;this.editor.emit("delete",{type:"node",node:B,from:y,to:C,newFrom:f.mapping.map(y),newTo:f.mapping.map(C),deletedRange:g.oldRange,newRange:g.newRange,partial:!w,editor:this.editor,transaction:t,combinedTransform:f})})});const p=f.mapping;f.steps.forEach((g,B)=>{var y,C;if(g instanceof xr){const w=p.slice(B).map(g.from,-1),F=p.slice(B).map(g.to),_=p.invert().map(w,-1),D=p.invert().map(F),P=(y=f.doc.nodeAt(w-1))==null?void 0:y.marks.some(H=>H.eq(g.mark)),T=(C=f.doc.nodeAt(F))==null?void 0:C.marks.some(H=>H.eq(g.mark));this.editor.emit("delete",{type:"mark",mark:g.mark,from:g.from,to:g.to,deletedRange:{from:_,to:D},newRange:{from:w,to:F},partial:!!(T||P),editor:this.editor,transaction:t,combinedTransform:f})}})};(r=(A=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:A.async)==null||r?setTimeout(o,0):o()}}),Zv=gn.create({name:"drop",addProseMirrorPlugins(){return[new sn({key:new Hn("tiptapDrop"),props:{handleDrop:(t,e,n,A)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:A})}}})]}}),eE=gn.create({name:"editable",addProseMirrorPlugins(){return[new sn({key:new Hn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),tE=new Hn("focusEvents"),nE=gn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new sn({key:tE,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const A=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(A),!1},blur:(e,n)=>{t.isFocused=!1;const A=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(A),!1}}}})]}}),AE=gn.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:i})=>[()=>i.undoInputRule(),()=>i.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:f,$anchor:h}=l,{pos:p,parent:g}=h,B=h.parent.isTextblock&&p>0?a.doc.resolve(p-1):h,y=B.parent.type.spec.isolating,C=h.pos-h.parentOffset,w=y&&B.parent.childCount===1?C===h.pos:it.atStart(u).from===p;return!f||!g.type.isTextblock||g.textContent.length||!w||w&&h.parent.type.name==="paragraph"?!1:i.clearNodes()}),()=>i.deleteSelection(),()=>i.joinBackward(),()=>i.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:i})=>[()=>i.deleteSelection(),()=>i.deleteCurrentNode(),()=>i.joinForward(),()=>i.selectNodeForward()]),A={Enter:()=>this.editor.commands.first(({commands:i})=>[()=>i.newlineInCode(),()=>i.createParagraphNear(),()=>i.liftEmptyBlock(),()=>i.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...A},o={...A,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Zm()||Yv()?o:r},addProseMirrorPlugins(){return[new sn({key:new Hn("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(y=>y.getMeta("composition")))return;const A=t.some(y=>y.docChanged)&&!e.doc.eq(n.doc),r=t.some(y=>y.getMeta("preventClearDocument"));if(!A||r)return;const{empty:o,from:i,to:a}=e.selection,l=it.atStart(e.doc).from,u=it.atEnd(e.doc).to;if(o||!(i===l&&a===u)||!ju(n.doc))return;const p=n.tr,g=Ru({state:n,transaction:p}),{commands:B}=new Vu({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),rE=gn.create({name:"paste",addProseMirrorPlugins(){return[new sn({key:new Hn("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),oE=gn.create({name:"tabindex",addProseMirrorPlugins(){return[new sn({key:new Hn("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),q3=class il{constructor(e,n,A=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=A,this.resolvedPos=e,this.editor=n,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,A=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,A=this.to-1}this.editor.commands.insertContentAt({from:n,to:A},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new il(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new il(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new il(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,A)=>{const r=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,i=this.pos+A+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const l=new il(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new il(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let A=null,r=this.parent;for(;r&&!A;){if(r.node.type.name===e)if(Object.keys(n).length>0){const o=r.node.attrs,i=Object.keys(n);for(let a=0;a<i.length;a+=1){const l=i[a];if(o[l]!==n[l])break}}else A=r;r=r.parent}return A}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},A=!1){let r=[];if(!this.children||this.children.length===0)return r;const o=Object.keys(n);return this.children.forEach(i=>{A&&r.length>0||(i.node.type.name===e&&o.every(l=>n[l]===i.node.attrs[l])&&r.push(i),!(A&&r.length>0)&&(r=r.concat(i.querySelectorAll(e,n,A))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},J3=`.ProseMirror {
38
38
  position: relative;
39
39
  }
40
40
 
@@ -104,27 +104,27 @@ img.ProseMirror-separator {
104
104
 
105
105
  .ProseMirror-focused .ProseMirror-gapcursor {
106
106
  display: block;
107
- }`;function j3(t,e,n){const A=document.querySelector("style[data-tiptap-style]");if(A!==null)return A;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}var q3=class extends uV{constructor(e={}){super(),this.css=null,this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:o,moved:i})=>this.options.onDrop(r,o,i)),this.on("paste",({event:r,slice:o})=>this.options.onPaste(r,o)),this.on("delete",this.options.onDelete);const n=this.createDoc(),A=Kv(n,this.options.autofocus);this.editorState=da.create({doc:n,schema:this.schema,selection:A||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=j3(Y3,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.editorState=this.state.apply(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,n)=>{if(n==="state")return this.editorState;if(n in e)return Reflect.get(e,n);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${n}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,n){const A=Qv(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:A});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let A=n;if([].concat(e).forEach(o=>{const i=typeof o=="string"?`${o}$`:o.key;A=A.filter(a=>!a.key.startsWith(i))}),n.length===A.length)return;const r=this.state.reconfigure({plugins:A});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[eE,Wv.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:n.blockSeparator}),Jv,nE,AE,oE,Zv,rE,Xv].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o?.type));this.extensionManager=new ed(r,this)}createCommandManager(){this.commandManager=new Vu({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=$m(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(n){if(!(n instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(n.message))throw n;this.emit("contentError",{editor:this,error:n,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(A=>A.name!=="collaboration"),this.createExtensionManager()}}),e=$m(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){var n;this.editorView=new ov(e,{...this.options.editorProps,attributes:{role:"textbox",...(n=this.options.editorProps)==null?void 0:n.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:this.editorState});const A=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(A),this.createNodeViews(),this.prependClass(),this.injectCSS();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(f=>{var h;return(h=this.capturedTransaction)==null?void 0:h.step(f)});return}const{state:n,transactions:A}=this.state.applyTransaction(e),r=!this.state.selection.eq(n.selection),o=A.includes(e),i=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),!o)return;this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:A.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const a=A.findLast(f=>f.getMeta("focus")||f.getMeta("blur")),l=a?.getMeta("focus"),u=a?.getMeta("blur");l&&this.emit("focus",{editor:this,event:l.event,transaction:a}),u&&this.emit("blur",{editor:this,event:u.event,transaction:a}),!(e.getMeta("preventUpdate")||!A.some(f=>f.docChanged)||i.doc.eq(n.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:A.slice(1)})}getAttributes(e){return Ov(this.state,e)}isActive(e,n){const A=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return kV(this.state,A,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return zm(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
107
+ }`;function X3(t,e,n){const A=document.querySelector("style[data-tiptap-style]");if(A!==null)return A;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}var Z3=class extends hV{constructor(e={}){super(),this.css=null,this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:o,moved:i})=>this.options.onDrop(r,o,i)),this.on("paste",({event:r,slice:o})=>this.options.onPaste(r,o)),this.on("delete",this.options.onDelete);const n=this.createDoc(),A=Kv(n,this.options.autofocus);this.editorState=da.create({doc:n,schema:this.schema,selection:A||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=X3(J3,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.editorState=this.state.apply(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,n)=>{if(n==="state")return this.editorState;if(n in e)return Reflect.get(e,n);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${n}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,n){const A=Qv(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:A});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let A=n;if([].concat(e).forEach(o=>{const i=typeof o=="string"?`${o}$`:o.key;A=A.filter(a=>!a.key.startsWith(i))}),n.length===A.length)return;const r=this.state.reconfigure({plugins:A});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[eE,Wv.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:n.blockSeparator}),Jv,nE,AE,oE,Zv,rE,Xv].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o?.type));this.extensionManager=new ed(r,this)}createCommandManager(){this.commandManager=new Vu({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=$m(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(n){if(!(n instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(n.message))throw n;this.emit("contentError",{editor:this,error:n,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(A=>A.name!=="collaboration"),this.createExtensionManager()}}),e=$m(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){var n;this.editorView=new ov(e,{...this.options.editorProps,attributes:{role:"textbox",...(n=this.options.editorProps)==null?void 0:n.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:this.editorState});const A=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(A),this.createNodeViews(),this.prependClass(),this.injectCSS();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(f=>{var h;return(h=this.capturedTransaction)==null?void 0:h.step(f)});return}const{state:n,transactions:A}=this.state.applyTransaction(e),r=!this.state.selection.eq(n.selection),o=A.includes(e),i=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),!o)return;this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:A.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const a=A.findLast(f=>f.getMeta("focus")||f.getMeta("blur")),l=a?.getMeta("focus"),u=a?.getMeta("blur");l&&this.emit("focus",{editor:this,event:l.event,transaction:a}),u&&this.emit("blur",{editor:this,event:u.event,transaction:a}),!(e.getMeta("preventUpdate")||!A.some(f=>f.docChanged)||i.doc.eq(n.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:A.slice(1)})}getAttributes(e){return Ov(this.state,e)}isActive(e,n){const A=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return QV(this.state,A,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return zm(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
108
108
 
109
- `,textSerializers:A={}}=e||{};return yV(this.state.doc,{blockSeparator:n,textSerializers:{...Dv(this.schema),...A}})}get isEmpty(){return ju(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,n;return(n=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?n:!0}$node(e,n){var A;return((A=this.$doc)==null?void 0:A.querySelector(e,n))||null}$nodes(e,n){var A;return((A=this.$doc)==null?void 0:A.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new G3(n,this)}get $doc(){return this.$pos(0)}};function ys(t){return new qu({find:t.find,handler:({state:e,range:n,match:A})=>{const r=_t(t.getAttributes,void 0,A);if(r===!1||r===null)return null;const{tr:o}=e,i=A[A.length-1],a=A[0];if(i){const l=a.search(/\S/),u=n.from+a.indexOf(i),f=u+i.length;if(jm(n.from,n.to,e.doc).filter(g=>g.mark.type.excluded.find(y=>y===t.type&&y!==g.mark.type)).filter(g=>g.to>u).length)return null;f<n.to&&o.delete(f,n.to),u>n.from&&o.delete(n.from+l,u);const p=n.from+l+i.length;o.addMark(n.from+l,p,t.type.create(r||{})),o.removeStoredMark(t.type)}}})}function J3(t){return new qu({find:t.find,handler:({state:e,range:n,match:A})=>{const r=_t(t.getAttributes,void 0,A)||{},{tr:o}=e,i=n.from;let a=n.to;const l=t.type.create(r);if(A[1]){const u=A[0].lastIndexOf(A[1]);let f=i+u;f>a?f=a:a=f+A[1].length;const h=A[0][A[0].length-1];o.insertText(h,i+A[0].length-1),o.replaceWith(f,a,l)}else if(A[0]){const u=t.type.isInline?i:i-1;o.insert(u,t.type.create(r)).delete(o.mapping.map(i),o.mapping.map(a))}o.scrollIntoView()}})}function ng(t){return new qu({find:t.find,handler:({state:e,range:n,match:A})=>{const r=e.doc.resolve(n.from),o=_t(t.getAttributes,void 0,A)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,o)}})}function wa(t){return new qu({find:t.find,handler:({state:e,range:n,match:A,chain:r})=>{const o=_t(t.getAttributes,void 0,A)||{},i=e.tr.delete(n.from,n.to),l=i.doc.resolve(n.from).blockRange(),u=l&&om(l,t.type,o);if(!u)return null;if(i.wrap(l,u),t.keepMarks&&t.editor){const{selection:h,storedMarks:p}=e,{splittableMarks:g}=t.editor.extensionManager,B=p||h.$to.parentOffset&&h.$from.marks();if(B){const y=B.filter(C=>g.includes(C.type.name));i.ensureMarks(y)}}if(t.keepAttributes){const h=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,o).run()}const f=i.doc.resolve(n.from-1).nodeBefore;f&&f.type===t.type&&ci(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(A,f))&&i.join(n.from-1)}})}function X3(t,e){const{selection:n}=t,{$from:A}=n;if(n instanceof We){const o=A.index();return A.parent.canReplaceWith(o,o+1,e)}let r=A.depth;for(;r>=0;){const o=A.index(r);if(A.node(r).contentMatchAt(o).matchType(e))return!0;r-=1}return!1}function Z3(t,e,n={}){const{state:A}=e,{doc:r,tr:o}=A,i=t;r.descendants((a,l)=>{const u=o.mapping.map(l),f=o.mapping.map(l)+a.nodeSize;let h=null;if(a.marks.forEach(g=>{if(g!==i)return!1;h=g}),!h)return;let p=!1;if(Object.keys(n).forEach(g=>{n[g]!==h.attrs[g]&&(p=!0)}),p){const g=t.type.create({...t.attrs,...n});o.removeMark(u,f,t.type),o.addMark(u,f,g)}}),o.docChanged&&e.view.dispatch(o)}var PA=class vT extends Xm{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new vT(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function bi(t){return new TV({find:t.find,handler:({state:e,range:n,match:A,pasteEvent:r})=>{const o=_t(t.getAttributes,void 0,A,r);if(o===!1||o===null)return null;const{tr:i}=e,a=A[A.length-1],l=A[0];let u=n.to;if(a){const f=l.search(/\S/),h=n.from+l.indexOf(a),p=h+a.length;if(jm(n.from,n.to,e.doc).filter(B=>B.mark.type.excluded.find(C=>C===t.type&&C!==B.mark.type)).filter(B=>B.to>h).length)return null;p<n.to&&i.delete(p,n.to),h>n.from&&i.delete(n.from+f,h),u=n.from+f+a.length,i.addMark(n.from+f,u,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}var e$=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,t$=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,n$=Ci.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ys({find:e$,type:this.type})]},addPasteRules(){return[bi({find:t$,type:this.type})]}}),A$=n$,r$=gn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),o$=r$;const i$="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s$="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Ag="numeric",rg="ascii",og="alpha",zl="asciinumeric",Wl="alphanumeric",ig="domain",iE="emoji",a$="scheme",l$="slashscheme",sg="whitespace";function c$(t,e){return t in e||(e[t]=[]),e[t]}function ws(t,e,n){e[Ag]&&(e[zl]=!0,e[Wl]=!0),e[rg]&&(e[zl]=!0,e[og]=!0),e[zl]&&(e[Wl]=!0),e[og]&&(e[Wl]=!0),e[Wl]&&(e[ig]=!0),e[iE]&&(e[ig]=!0);for(const A in e){const r=c$(A,n);r.indexOf(t)<0&&r.push(t)}}function u$(t,e){const n={};for(const A in e)e[A].indexOf(t)>=0&&(n[A]=!0);return n}function FA(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}FA.groups={},FA.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let A=0;A<e.jr.length;A++){const r=e.jr[A][0],o=e.jr[A][1];if(o&&r.test(t))return o}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,A){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,A)},tr(t,e,n,A){A=A||FA.groups;let r;return e&&e.j?r=e:(r=new FA(e),n&&A&&ws(e,n,A)),this.jr.push([t,r]),r},ts(t,e,n,A){let r=this;const o=t.length;if(!o)return r;for(let i=0;i<o-1;i++)r=r.tt(t[i]);return r.tt(t[o-1],e,n,A)},tt(t,e,n,A){A=A||FA.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const o=e;let i,a=r.go(t);if(a?(i=new FA,Object.assign(i.j,a.j),i.jr.push.apply(i.jr,a.jr),i.jd=a.jd,i.t=a.t):i=new FA,o){if(A)if(i.t&&typeof i.t=="string"){const l=Object.assign(u$(i.t,A),n);ws(o,l,A)}else n&&ws(o,n,A);i.t=o}return r.j[t]=i,i}};const lt=(t,e,n,A,r)=>t.ta(e,n,A,r),an=(t,e,n,A,r)=>t.tr(e,n,A,r),sE=(t,e,n,A,r)=>t.ts(e,n,A,r),Ie=(t,e,n,A,r)=>t.tt(e,n,A,r),_o="WORD",ag="UWORD",aE="ASCIINUMERICAL",lE="ALPHANUMERICAL",Gl="LOCALHOST",lg="TLD",cg="UTLD",td="SCHEME",Ca="SLASH_SCHEME",ug="NUM",dg="WS",fg="NL",Yl="OPENBRACE",jl="CLOSEBRACE",nd="OPENBRACKET",Ad="CLOSEBRACKET",rd="OPENPAREN",od="CLOSEPAREN",id="OPENANGLEBRACKET",sd="CLOSEANGLEBRACKET",ad="FULLWIDTHLEFTPAREN",ld="FULLWIDTHRIGHTPAREN",cd="LEFTCORNERBRACKET",ud="RIGHTCORNERBRACKET",dd="LEFTWHITECORNERBRACKET",fd="RIGHTWHITECORNERBRACKET",hd="FULLWIDTHLESSTHAN",pd="FULLWIDTHGREATERTHAN",md="AMPERSAND",gd="APOSTROPHE",Bd="ASTERISK",vi="AT",yd="BACKSLASH",wd="BACKTICK",Cd="CARET",Ei="COLON",hg="COMMA",bd="DOLLAR",eo="DOT",vd="EQUALS",pg="EXCLAMATION",or="HYPHEN",ql="PERCENT",Ed="PIPE",kd="PLUS",Sd="POUND",Jl="QUERY",mg="QUOTE",cE="FULLWIDTHMIDDLEDOT",gg="SEMI",to="SLASH",Xl="TILDE",Fd="UNDERSCORE",uE="EMOJI",Qd="SYM";var dE=Object.freeze({__proto__:null,ALPHANUMERICAL:lE,AMPERSAND:md,APOSTROPHE:gd,ASCIINUMERICAL:aE,ASTERISK:Bd,AT:vi,BACKSLASH:yd,BACKTICK:wd,CARET:Cd,CLOSEANGLEBRACKET:sd,CLOSEBRACE:jl,CLOSEBRACKET:Ad,CLOSEPAREN:od,COLON:Ei,COMMA:hg,DOLLAR:bd,DOT:eo,EMOJI:uE,EQUALS:vd,EXCLAMATION:pg,FULLWIDTHGREATERTHAN:pd,FULLWIDTHLEFTPAREN:ad,FULLWIDTHLESSTHAN:hd,FULLWIDTHMIDDLEDOT:cE,FULLWIDTHRIGHTPAREN:ld,HYPHEN:or,LEFTCORNERBRACKET:cd,LEFTWHITECORNERBRACKET:dd,LOCALHOST:Gl,NL:fg,NUM:ug,OPENANGLEBRACKET:id,OPENBRACE:Yl,OPENBRACKET:nd,OPENPAREN:rd,PERCENT:ql,PIPE:Ed,PLUS:kd,POUND:Sd,QUERY:Jl,QUOTE:mg,RIGHTCORNERBRACKET:ud,RIGHTWHITECORNERBRACKET:fd,SCHEME:td,SEMI:gg,SLASH:to,SLASH_SCHEME:Ca,SYM:Qd,TILDE:Xl,TLD:lg,UNDERSCORE:Fd,UTLD:cg,UWORD:ag,WORD:_o,WS:dg});const To=/[a-z]/,Zl=new RegExp("\\p{L}","u"),Bg=new RegExp("\\p{Emoji}","u"),Do=/\d/,yg=/\s/,fE="\r",wg=`
110
- `,d$="️",f$="‍",Cg="";let xd=null,Ud=null;function h$(t=[]){const e={};FA.groups=e;const n=new FA;xd==null&&(xd=pE(i$)),Ud==null&&(Ud=pE(s$)),Ie(n,"'",gd),Ie(n,"{",Yl),Ie(n,"}",jl),Ie(n,"[",nd),Ie(n,"]",Ad),Ie(n,"(",rd),Ie(n,")",od),Ie(n,"<",id),Ie(n,">",sd),Ie(n,"(",ad),Ie(n,")",ld),Ie(n,"「",cd),Ie(n,"」",ud),Ie(n,"『",dd),Ie(n,"』",fd),Ie(n,"<",hd),Ie(n,">",pd),Ie(n,"&",md),Ie(n,"*",Bd),Ie(n,"@",vi),Ie(n,"`",wd),Ie(n,"^",Cd),Ie(n,":",Ei),Ie(n,",",hg),Ie(n,"$",bd),Ie(n,".",eo),Ie(n,"=",vd),Ie(n,"!",pg),Ie(n,"-",or),Ie(n,"%",ql),Ie(n,"|",Ed),Ie(n,"+",kd),Ie(n,"#",Sd),Ie(n,"?",Jl),Ie(n,'"',mg),Ie(n,"/",to),Ie(n,";",gg),Ie(n,"~",Xl),Ie(n,"_",Fd),Ie(n,"\\",yd),Ie(n,"・",cE);const A=an(n,Do,ug,{[Ag]:!0});an(A,Do,A);const r=an(A,To,aE,{[zl]:!0}),o=an(A,Zl,lE,{[Wl]:!0}),i=an(n,To,_o,{[rg]:!0});an(i,Do,r),an(i,To,i),an(r,Do,r),an(r,To,r);const a=an(n,Zl,ag,{[og]:!0});an(a,To),an(a,Do,o),an(a,Zl,a),an(o,Do,o),an(o,To),an(o,Zl,o);const l=Ie(n,wg,fg,{[sg]:!0}),u=Ie(n,fE,dg,{[sg]:!0}),f=an(n,yg,dg,{[sg]:!0});Ie(n,Cg,f),Ie(u,wg,l),Ie(u,Cg,f),an(u,yg,f),Ie(f,fE),Ie(f,wg),an(f,yg,f),Ie(f,Cg,f);const h=an(n,Bg,uE,{[iE]:!0});Ie(h,"#"),an(h,Bg,h),Ie(h,d$,h);const p=Ie(h,f$);Ie(p,"#"),an(p,Bg,h);const g=[[To,i],[Do,r]],B=[[To,null],[Zl,a],[Do,o]];for(let y=0;y<xd.length;y++)ki(n,xd[y],lg,_o,g);for(let y=0;y<Ud.length;y++)ki(n,Ud[y],cg,ag,B);ws(lg,{tld:!0,ascii:!0},e),ws(cg,{utld:!0,alpha:!0},e),ki(n,"file",td,_o,g),ki(n,"mailto",td,_o,g),ki(n,"http",Ca,_o,g),ki(n,"https",Ca,_o,g),ki(n,"ftp",Ca,_o,g),ki(n,"ftps",Ca,_o,g),ws(td,{scheme:!0,ascii:!0},e),ws(Ca,{slashscheme:!0,ascii:!0},e),t=t.sort((y,C)=>y[0]>C[0]?1:-1);for(let y=0;y<t.length;y++){const C=t[y][0],F=t[y][1]?{[a$]:!0}:{[l$]:!0};C.indexOf("-")>=0?F[ig]=!0:To.test(C)?Do.test(C)?F[zl]=!0:F[rg]=!0:F[Ag]=!0,sE(n,C,C,F)}return sE(n,"localhost",Gl,{ascii:!0}),n.jd=new FA(Qd),{start:n,tokens:Object.assign({groups:e},dE)}}function hE(t,e){const n=p$(e.replace(/[A-Z]/g,a=>a.toLowerCase())),A=n.length,r=[];let o=0,i=0;for(;i<A;){let a=t,l=null,u=0,f=null,h=-1,p=-1;for(;i<A&&(l=a.go(n[i]));)a=l,a.accepts()?(h=0,p=0,f=a):h>=0&&(h+=n[i].length,p++),u+=n[i].length,o+=n[i].length,i++;o-=h,i-=p,u-=h,r.push({t:f.t,v:e.slice(o-u,o),s:o-u,e:o})}return r}function p$(t){const e=[],n=t.length;let A=0;for(;A<n;){let r=t.charCodeAt(A),o,i=r<55296||r>56319||A+1===n||(o=t.charCodeAt(A+1))<56320||o>57343?t[A]:t.slice(A,A+2);e.push(i),A+=i.length}return e}function ki(t,e,n,A,r){let o;const i=e.length;for(let a=0;a<i-1;a++){const l=e[a];t.j[l]?o=t.j[l]:(o=new FA(A),o.jr=r.slice(),t.j[l]=o),t=o}return o=new FA(n),o.jr=r.slice(),t.j[e[i-1]]=o,o}function pE(t){const e=[],n=[];let A=0,r="0123456789";for(;A<t.length;){let o=0;for(;r.indexOf(t[A+o])>=0;)o++;if(o>0){e.push(n.join(""));for(let i=parseInt(t.substring(A,A+o),10);i>0;i--)n.pop();A+=o}else n.push(t[A]),A++}return e}const ec={defaultProtocol:"http",events:null,format:mE,formatHref:mE,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function bg(t,e=null){let n=Object.assign({},ec);t&&(n=Object.assign(n,t instanceof bg?t.o:t));const A=n.ignoreTags,r=[];for(let o=0;o<A.length;o++)r.push(A[o].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}bg.prototype={o:ec,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const A=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:ec[t],typeof r=="function"&&A&&(r=r(e,n))):typeof r=="function"&&A&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let A=this.o[t];return typeof A=="function"&&e!=null&&(A=A(e,n.t,n)),A},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function mE(t){return t}function gE(t,e){this.t="token",this.v=t,this.tk=e}gE.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),A=t.get("format",e,this);return n&&A.length>n?A.substring(0,n)+"…":A},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=ec.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),A=t.get("formatHref",n,this),r=t.get("tagName",n,e),o=this.toFormattedString(t),i={},a=t.get("className",n,e),l=t.get("target",n,e),u=t.get("rel",n,e),f=t.getObj("attributes",n,e),h=t.getObj("events",n,e);return i.href=A,a&&(i.class=a),l&&(i.target=l),u&&(i.rel=u),f&&Object.assign(i,f),{tagName:r,attributes:i,content:o,eventListeners:h}}};function Id(t,e){class n extends gE{constructor(r,o){super(r,o),this.t=t}}for(const A in e)n.prototype[A]=e[A];return n.t=t,n}const BE=Id("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),yE=Id("text"),m$=Id("nl"),_d=Id("url",{isLink:!0,toHref(t=ec.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Gl&&t[1].t===Ei}}),ir=t=>new FA(t);function g$({groups:t}){const e=t.domain.concat([md,Bd,vi,yd,wd,Cd,bd,vd,or,ug,ql,Ed,kd,Sd,to,Qd,Xl,Fd]),n=[gd,Ei,hg,eo,pg,ql,Jl,mg,gg,id,sd,Yl,jl,Ad,nd,rd,od,ad,ld,cd,ud,dd,fd,hd,pd],A=[md,gd,Bd,yd,wd,Cd,bd,vd,or,Yl,jl,ql,Ed,kd,Sd,Jl,to,Qd,Xl,Fd],r=ir(),o=Ie(r,Xl);lt(o,A,o),lt(o,t.domain,o);const i=ir(),a=ir(),l=ir();lt(r,t.domain,i),lt(r,t.scheme,a),lt(r,t.slashscheme,l),lt(i,A,o),lt(i,t.domain,i);const u=Ie(i,vi);Ie(o,vi,u),Ie(a,vi,u),Ie(l,vi,u);const f=Ie(o,eo);lt(f,A,o),lt(f,t.domain,o);const h=ir();lt(u,t.domain,h),lt(h,t.domain,h);const p=Ie(h,eo);lt(p,t.domain,h);const g=ir(BE);lt(p,t.tld,g),lt(p,t.utld,g),Ie(u,Gl,g);const B=Ie(h,or);Ie(B,or,B),lt(B,t.domain,h),lt(g,t.domain,h),Ie(g,eo,p),Ie(g,or,B);const y=Ie(g,Ei);lt(y,t.numeric,BE);const C=Ie(i,or),w=Ie(i,eo);Ie(C,or,C),lt(C,t.domain,i),lt(w,A,o),lt(w,t.domain,i);const F=ir(_d);lt(w,t.tld,F),lt(w,t.utld,F),lt(F,t.domain,i),lt(F,A,o),Ie(F,eo,w),Ie(F,or,C),Ie(F,vi,u);const _=Ie(F,Ei),D=ir(_d);lt(_,t.numeric,D);const P=ir(_d),T=ir();lt(P,e,P),lt(P,n,T),lt(T,e,P),lt(T,n,T),Ie(F,to,P),Ie(D,to,P);const H=Ie(a,Ei),te=Ie(l,Ei),Z=Ie(te,to),ne=Ie(Z,to);lt(a,t.domain,i),Ie(a,eo,w),Ie(a,or,C),lt(l,t.domain,i),Ie(l,eo,w),Ie(l,or,C),lt(H,t.domain,P),Ie(H,to,P),Ie(H,Jl,P),lt(ne,t.domain,P),lt(ne,e,P),Ie(ne,to,P);const pe=[[Yl,jl],[nd,Ad],[rd,od],[id,sd],[ad,ld],[cd,ud],[dd,fd],[hd,pd]];for(let Be=0;Be<pe.length;Be++){const[we,R]=pe[Be],K=Ie(P,we);Ie(T,we,K),Ie(K,R,P);const N=ir(_d);lt(K,e,N);const k=ir();lt(K,n),lt(N,e,N),lt(N,n,k),lt(k,e,N),lt(k,n,k),Ie(N,R,P),Ie(k,R,P)}return Ie(r,Gl,F),Ie(r,fg,m$),{start:r,tokens:dE}}function B$(t,e,n){let A=n.length,r=0,o=[],i=[];for(;r<A;){let a=t,l=null,u=null,f=0,h=null,p=-1;for(;r<A&&!(l=a.go(n[r].t));)i.push(n[r++]);for(;r<A&&(u=l||a.go(n[r].t));)l=null,a=u,a.accepts()?(p=0,h=a):p>=0&&p++,r++,f++;if(p<0)r-=f,r<A&&(i.push(n[r]),r++);else{i.length>0&&(o.push(vg(yE,e,i)),i=[]),r-=p,f-=p;const g=h.t,B=n.slice(r-f,r);o.push(vg(g,e,B))}}return i.length>0&&o.push(vg(yE,e,i)),o}function vg(t,e,n){const A=n[0].s,r=n[n.length-1].e,o=e.slice(A,r);return new t(o,n)}const y$=typeof console<"u"&&console&&console.warn||(()=>{}),w$="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",zt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function C$(){return FA.groups={},zt.scanner=null,zt.parser=null,zt.tokenQueue=[],zt.pluginQueue=[],zt.customSchemes=[],zt.initialized=!1,zt}function wE(t,e=!1){if(zt.initialized&&y$(`linkifyjs: already initialized - will not register custom scheme "${t}" ${w$}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
109
+ `,textSerializers:A={}}=e||{};return bV(this.state.doc,{blockSeparator:n,textSerializers:{...Dv(this.schema),...A}})}get isEmpty(){return ju(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,n;return(n=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?n:!0}$node(e,n){var A;return((A=this.$doc)==null?void 0:A.querySelector(e,n))||null}$nodes(e,n){var A;return((A=this.$doc)==null?void 0:A.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new q3(n,this)}get $doc(){return this.$pos(0)}};function ys(t){return new qu({find:t.find,handler:({state:e,range:n,match:A})=>{const r=_t(t.getAttributes,void 0,A);if(r===!1||r===null)return null;const{tr:o}=e,i=A[A.length-1],a=A[0];if(i){const l=a.search(/\S/),u=n.from+a.indexOf(i),f=u+i.length;if(jm(n.from,n.to,e.doc).filter(g=>g.mark.type.excluded.find(y=>y===t.type&&y!==g.mark.type)).filter(g=>g.to>u).length)return null;f<n.to&&o.delete(f,n.to),u>n.from&&o.delete(n.from+l,u);const p=n.from+l+i.length;o.addMark(n.from+l,p,t.type.create(r||{})),o.removeStoredMark(t.type)}}})}function e$(t){return new qu({find:t.find,handler:({state:e,range:n,match:A})=>{const r=_t(t.getAttributes,void 0,A)||{},{tr:o}=e,i=n.from;let a=n.to;const l=t.type.create(r);if(A[1]){const u=A[0].lastIndexOf(A[1]);let f=i+u;f>a?f=a:a=f+A[1].length;const h=A[0][A[0].length-1];o.insertText(h,i+A[0].length-1),o.replaceWith(f,a,l)}else if(A[0]){const u=t.type.isInline?i:i-1;o.insert(u,t.type.create(r)).delete(o.mapping.map(i),o.mapping.map(a))}o.scrollIntoView()}})}function ng(t){return new qu({find:t.find,handler:({state:e,range:n,match:A})=>{const r=e.doc.resolve(n.from),o=_t(t.getAttributes,void 0,A)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,o)}})}function wa(t){return new qu({find:t.find,handler:({state:e,range:n,match:A,chain:r})=>{const o=_t(t.getAttributes,void 0,A)||{},i=e.tr.delete(n.from,n.to),l=i.doc.resolve(n.from).blockRange(),u=l&&om(l,t.type,o);if(!u)return null;if(i.wrap(l,u),t.keepMarks&&t.editor){const{selection:h,storedMarks:p}=e,{splittableMarks:g}=t.editor.extensionManager,B=p||h.$to.parentOffset&&h.$from.marks();if(B){const y=B.filter(C=>g.includes(C.type.name));i.ensureMarks(y)}}if(t.keepAttributes){const h=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,o).run()}const f=i.doc.resolve(n.from-1).nodeBefore;f&&f.type===t.type&&ci(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(A,f))&&i.join(n.from-1)}})}function t$(t,e){const{selection:n}=t,{$from:A}=n;if(n instanceof We){const o=A.index();return A.parent.canReplaceWith(o,o+1,e)}let r=A.depth;for(;r>=0;){const o=A.index(r);if(A.node(r).contentMatchAt(o).matchType(e))return!0;r-=1}return!1}function n$(t,e,n={}){const{state:A}=e,{doc:r,tr:o}=A,i=t;r.descendants((a,l)=>{const u=o.mapping.map(l),f=o.mapping.map(l)+a.nodeSize;let h=null;if(a.marks.forEach(g=>{if(g!==i)return!1;h=g}),!h)return;let p=!1;if(Object.keys(n).forEach(g=>{n[g]!==h.attrs[g]&&(p=!0)}),p){const g=t.type.create({...t.attrs,...n});o.removeMark(u,f,t.type),o.addMark(u,f,g)}}),o.docChanged&&e.view.dispatch(o)}var PA=class vT extends Xm{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new vT(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function bi(t){return new OV({find:t.find,handler:({state:e,range:n,match:A,pasteEvent:r})=>{const o=_t(t.getAttributes,void 0,A,r);if(o===!1||o===null)return null;const{tr:i}=e,a=A[A.length-1],l=A[0];let u=n.to;if(a){const f=l.search(/\S/),h=n.from+l.indexOf(a),p=h+a.length;if(jm(n.from,n.to,e.doc).filter(B=>B.mark.type.excluded.find(C=>C===t.type&&C!==B.mark.type)).filter(B=>B.to>h).length)return null;p<n.to&&i.delete(p,n.to),h>n.from&&i.delete(n.from+f,h),u=n.from+f+a.length,i.addMark(n.from+f,u,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}var A$=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,r$=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,o$=Ci.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ys({find:A$,type:this.type})]},addPasteRules(){return[bi({find:r$,type:this.type})]}}),i$=o$,s$=gn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),a$=s$;const l$="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",c$="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Ag="numeric",rg="ascii",og="alpha",zl="asciinumeric",Wl="alphanumeric",ig="domain",iE="emoji",u$="scheme",d$="slashscheme",sg="whitespace";function f$(t,e){return t in e||(e[t]=[]),e[t]}function ws(t,e,n){e[Ag]&&(e[zl]=!0,e[Wl]=!0),e[rg]&&(e[zl]=!0,e[og]=!0),e[zl]&&(e[Wl]=!0),e[og]&&(e[Wl]=!0),e[Wl]&&(e[ig]=!0),e[iE]&&(e[ig]=!0);for(const A in e){const r=f$(A,n);r.indexOf(t)<0&&r.push(t)}}function h$(t,e){const n={};for(const A in e)e[A].indexOf(t)>=0&&(n[A]=!0);return n}function FA(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}FA.groups={},FA.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let A=0;A<e.jr.length;A++){const r=e.jr[A][0],o=e.jr[A][1];if(o&&r.test(t))return o}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,A){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,A)},tr(t,e,n,A){A=A||FA.groups;let r;return e&&e.j?r=e:(r=new FA(e),n&&A&&ws(e,n,A)),this.jr.push([t,r]),r},ts(t,e,n,A){let r=this;const o=t.length;if(!o)return r;for(let i=0;i<o-1;i++)r=r.tt(t[i]);return r.tt(t[o-1],e,n,A)},tt(t,e,n,A){A=A||FA.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const o=e;let i,a=r.go(t);if(a?(i=new FA,Object.assign(i.j,a.j),i.jr.push.apply(i.jr,a.jr),i.jd=a.jd,i.t=a.t):i=new FA,o){if(A)if(i.t&&typeof i.t=="string"){const l=Object.assign(h$(i.t,A),n);ws(o,l,A)}else n&&ws(o,n,A);i.t=o}return r.j[t]=i,i}};const lt=(t,e,n,A,r)=>t.ta(e,n,A,r),an=(t,e,n,A,r)=>t.tr(e,n,A,r),sE=(t,e,n,A,r)=>t.ts(e,n,A,r),Ie=(t,e,n,A,r)=>t.tt(e,n,A,r),_o="WORD",ag="UWORD",aE="ASCIINUMERICAL",lE="ALPHANUMERICAL",Gl="LOCALHOST",lg="TLD",cg="UTLD",td="SCHEME",Ca="SLASH_SCHEME",ug="NUM",dg="WS",fg="NL",Yl="OPENBRACE",jl="CLOSEBRACE",nd="OPENBRACKET",Ad="CLOSEBRACKET",rd="OPENPAREN",od="CLOSEPAREN",id="OPENANGLEBRACKET",sd="CLOSEANGLEBRACKET",ad="FULLWIDTHLEFTPAREN",ld="FULLWIDTHRIGHTPAREN",cd="LEFTCORNERBRACKET",ud="RIGHTCORNERBRACKET",dd="LEFTWHITECORNERBRACKET",fd="RIGHTWHITECORNERBRACKET",hd="FULLWIDTHLESSTHAN",pd="FULLWIDTHGREATERTHAN",md="AMPERSAND",gd="APOSTROPHE",Bd="ASTERISK",vi="AT",yd="BACKSLASH",wd="BACKTICK",Cd="CARET",Ei="COLON",hg="COMMA",bd="DOLLAR",eo="DOT",vd="EQUALS",pg="EXCLAMATION",or="HYPHEN",ql="PERCENT",Ed="PIPE",kd="PLUS",Sd="POUND",Jl="QUERY",mg="QUOTE",cE="FULLWIDTHMIDDLEDOT",gg="SEMI",to="SLASH",Xl="TILDE",Fd="UNDERSCORE",uE="EMOJI",Qd="SYM";var dE=Object.freeze({__proto__:null,ALPHANUMERICAL:lE,AMPERSAND:md,APOSTROPHE:gd,ASCIINUMERICAL:aE,ASTERISK:Bd,AT:vi,BACKSLASH:yd,BACKTICK:wd,CARET:Cd,CLOSEANGLEBRACKET:sd,CLOSEBRACE:jl,CLOSEBRACKET:Ad,CLOSEPAREN:od,COLON:Ei,COMMA:hg,DOLLAR:bd,DOT:eo,EMOJI:uE,EQUALS:vd,EXCLAMATION:pg,FULLWIDTHGREATERTHAN:pd,FULLWIDTHLEFTPAREN:ad,FULLWIDTHLESSTHAN:hd,FULLWIDTHMIDDLEDOT:cE,FULLWIDTHRIGHTPAREN:ld,HYPHEN:or,LEFTCORNERBRACKET:cd,LEFTWHITECORNERBRACKET:dd,LOCALHOST:Gl,NL:fg,NUM:ug,OPENANGLEBRACKET:id,OPENBRACE:Yl,OPENBRACKET:nd,OPENPAREN:rd,PERCENT:ql,PIPE:Ed,PLUS:kd,POUND:Sd,QUERY:Jl,QUOTE:mg,RIGHTCORNERBRACKET:ud,RIGHTWHITECORNERBRACKET:fd,SCHEME:td,SEMI:gg,SLASH:to,SLASH_SCHEME:Ca,SYM:Qd,TILDE:Xl,TLD:lg,UNDERSCORE:Fd,UTLD:cg,UWORD:ag,WORD:_o,WS:dg});const To=/[a-z]/,Zl=new RegExp("\\p{L}","u"),Bg=new RegExp("\\p{Emoji}","u"),Do=/\d/,yg=/\s/,fE="\r",wg=`
110
+ `,p$="️",m$="‍",Cg="";let xd=null,Ud=null;function g$(t=[]){const e={};FA.groups=e;const n=new FA;xd==null&&(xd=pE(l$)),Ud==null&&(Ud=pE(c$)),Ie(n,"'",gd),Ie(n,"{",Yl),Ie(n,"}",jl),Ie(n,"[",nd),Ie(n,"]",Ad),Ie(n,"(",rd),Ie(n,")",od),Ie(n,"<",id),Ie(n,">",sd),Ie(n,"(",ad),Ie(n,")",ld),Ie(n,"「",cd),Ie(n,"」",ud),Ie(n,"『",dd),Ie(n,"』",fd),Ie(n,"<",hd),Ie(n,">",pd),Ie(n,"&",md),Ie(n,"*",Bd),Ie(n,"@",vi),Ie(n,"`",wd),Ie(n,"^",Cd),Ie(n,":",Ei),Ie(n,",",hg),Ie(n,"$",bd),Ie(n,".",eo),Ie(n,"=",vd),Ie(n,"!",pg),Ie(n,"-",or),Ie(n,"%",ql),Ie(n,"|",Ed),Ie(n,"+",kd),Ie(n,"#",Sd),Ie(n,"?",Jl),Ie(n,'"',mg),Ie(n,"/",to),Ie(n,";",gg),Ie(n,"~",Xl),Ie(n,"_",Fd),Ie(n,"\\",yd),Ie(n,"・",cE);const A=an(n,Do,ug,{[Ag]:!0});an(A,Do,A);const r=an(A,To,aE,{[zl]:!0}),o=an(A,Zl,lE,{[Wl]:!0}),i=an(n,To,_o,{[rg]:!0});an(i,Do,r),an(i,To,i),an(r,Do,r),an(r,To,r);const a=an(n,Zl,ag,{[og]:!0});an(a,To),an(a,Do,o),an(a,Zl,a),an(o,Do,o),an(o,To),an(o,Zl,o);const l=Ie(n,wg,fg,{[sg]:!0}),u=Ie(n,fE,dg,{[sg]:!0}),f=an(n,yg,dg,{[sg]:!0});Ie(n,Cg,f),Ie(u,wg,l),Ie(u,Cg,f),an(u,yg,f),Ie(f,fE),Ie(f,wg),an(f,yg,f),Ie(f,Cg,f);const h=an(n,Bg,uE,{[iE]:!0});Ie(h,"#"),an(h,Bg,h),Ie(h,p$,h);const p=Ie(h,m$);Ie(p,"#"),an(p,Bg,h);const g=[[To,i],[Do,r]],B=[[To,null],[Zl,a],[Do,o]];for(let y=0;y<xd.length;y++)ki(n,xd[y],lg,_o,g);for(let y=0;y<Ud.length;y++)ki(n,Ud[y],cg,ag,B);ws(lg,{tld:!0,ascii:!0},e),ws(cg,{utld:!0,alpha:!0},e),ki(n,"file",td,_o,g),ki(n,"mailto",td,_o,g),ki(n,"http",Ca,_o,g),ki(n,"https",Ca,_o,g),ki(n,"ftp",Ca,_o,g),ki(n,"ftps",Ca,_o,g),ws(td,{scheme:!0,ascii:!0},e),ws(Ca,{slashscheme:!0,ascii:!0},e),t=t.sort((y,C)=>y[0]>C[0]?1:-1);for(let y=0;y<t.length;y++){const C=t[y][0],F=t[y][1]?{[u$]:!0}:{[d$]:!0};C.indexOf("-")>=0?F[ig]=!0:To.test(C)?Do.test(C)?F[zl]=!0:F[rg]=!0:F[Ag]=!0,sE(n,C,C,F)}return sE(n,"localhost",Gl,{ascii:!0}),n.jd=new FA(Qd),{start:n,tokens:Object.assign({groups:e},dE)}}function hE(t,e){const n=B$(e.replace(/[A-Z]/g,a=>a.toLowerCase())),A=n.length,r=[];let o=0,i=0;for(;i<A;){let a=t,l=null,u=0,f=null,h=-1,p=-1;for(;i<A&&(l=a.go(n[i]));)a=l,a.accepts()?(h=0,p=0,f=a):h>=0&&(h+=n[i].length,p++),u+=n[i].length,o+=n[i].length,i++;o-=h,i-=p,u-=h,r.push({t:f.t,v:e.slice(o-u,o),s:o-u,e:o})}return r}function B$(t){const e=[],n=t.length;let A=0;for(;A<n;){let r=t.charCodeAt(A),o,i=r<55296||r>56319||A+1===n||(o=t.charCodeAt(A+1))<56320||o>57343?t[A]:t.slice(A,A+2);e.push(i),A+=i.length}return e}function ki(t,e,n,A,r){let o;const i=e.length;for(let a=0;a<i-1;a++){const l=e[a];t.j[l]?o=t.j[l]:(o=new FA(A),o.jr=r.slice(),t.j[l]=o),t=o}return o=new FA(n),o.jr=r.slice(),t.j[e[i-1]]=o,o}function pE(t){const e=[],n=[];let A=0,r="0123456789";for(;A<t.length;){let o=0;for(;r.indexOf(t[A+o])>=0;)o++;if(o>0){e.push(n.join(""));for(let i=parseInt(t.substring(A,A+o),10);i>0;i--)n.pop();A+=o}else n.push(t[A]),A++}return e}const ec={defaultProtocol:"http",events:null,format:mE,formatHref:mE,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function bg(t,e=null){let n=Object.assign({},ec);t&&(n=Object.assign(n,t instanceof bg?t.o:t));const A=n.ignoreTags,r=[];for(let o=0;o<A.length;o++)r.push(A[o].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}bg.prototype={o:ec,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const A=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:ec[t],typeof r=="function"&&A&&(r=r(e,n))):typeof r=="function"&&A&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let A=this.o[t];return typeof A=="function"&&e!=null&&(A=A(e,n.t,n)),A},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function mE(t){return t}function gE(t,e){this.t="token",this.v=t,this.tk=e}gE.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),A=t.get("format",e,this);return n&&A.length>n?A.substring(0,n)+"…":A},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=ec.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),A=t.get("formatHref",n,this),r=t.get("tagName",n,e),o=this.toFormattedString(t),i={},a=t.get("className",n,e),l=t.get("target",n,e),u=t.get("rel",n,e),f=t.getObj("attributes",n,e),h=t.getObj("events",n,e);return i.href=A,a&&(i.class=a),l&&(i.target=l),u&&(i.rel=u),f&&Object.assign(i,f),{tagName:r,attributes:i,content:o,eventListeners:h}}};function Id(t,e){class n extends gE{constructor(r,o){super(r,o),this.t=t}}for(const A in e)n.prototype[A]=e[A];return n.t=t,n}const BE=Id("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),yE=Id("text"),y$=Id("nl"),_d=Id("url",{isLink:!0,toHref(t=ec.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Gl&&t[1].t===Ei}}),ir=t=>new FA(t);function w$({groups:t}){const e=t.domain.concat([md,Bd,vi,yd,wd,Cd,bd,vd,or,ug,ql,Ed,kd,Sd,to,Qd,Xl,Fd]),n=[gd,Ei,hg,eo,pg,ql,Jl,mg,gg,id,sd,Yl,jl,Ad,nd,rd,od,ad,ld,cd,ud,dd,fd,hd,pd],A=[md,gd,Bd,yd,wd,Cd,bd,vd,or,Yl,jl,ql,Ed,kd,Sd,Jl,to,Qd,Xl,Fd],r=ir(),o=Ie(r,Xl);lt(o,A,o),lt(o,t.domain,o);const i=ir(),a=ir(),l=ir();lt(r,t.domain,i),lt(r,t.scheme,a),lt(r,t.slashscheme,l),lt(i,A,o),lt(i,t.domain,i);const u=Ie(i,vi);Ie(o,vi,u),Ie(a,vi,u),Ie(l,vi,u);const f=Ie(o,eo);lt(f,A,o),lt(f,t.domain,o);const h=ir();lt(u,t.domain,h),lt(h,t.domain,h);const p=Ie(h,eo);lt(p,t.domain,h);const g=ir(BE);lt(p,t.tld,g),lt(p,t.utld,g),Ie(u,Gl,g);const B=Ie(h,or);Ie(B,or,B),lt(B,t.domain,h),lt(g,t.domain,h),Ie(g,eo,p),Ie(g,or,B);const y=Ie(g,Ei);lt(y,t.numeric,BE);const C=Ie(i,or),w=Ie(i,eo);Ie(C,or,C),lt(C,t.domain,i),lt(w,A,o),lt(w,t.domain,i);const F=ir(_d);lt(w,t.tld,F),lt(w,t.utld,F),lt(F,t.domain,i),lt(F,A,o),Ie(F,eo,w),Ie(F,or,C),Ie(F,vi,u);const _=Ie(F,Ei),D=ir(_d);lt(_,t.numeric,D);const P=ir(_d),T=ir();lt(P,e,P),lt(P,n,T),lt(T,e,P),lt(T,n,T),Ie(F,to,P),Ie(D,to,P);const H=Ie(a,Ei),te=Ie(l,Ei),Z=Ie(te,to),ne=Ie(Z,to);lt(a,t.domain,i),Ie(a,eo,w),Ie(a,or,C),lt(l,t.domain,i),Ie(l,eo,w),Ie(l,or,C),lt(H,t.domain,P),Ie(H,to,P),Ie(H,Jl,P),lt(ne,t.domain,P),lt(ne,e,P),Ie(ne,to,P);const pe=[[Yl,jl],[nd,Ad],[rd,od],[id,sd],[ad,ld],[cd,ud],[dd,fd],[hd,pd]];for(let Be=0;Be<pe.length;Be++){const[we,R]=pe[Be],K=Ie(P,we);Ie(T,we,K),Ie(K,R,P);const N=ir(_d);lt(K,e,N);const k=ir();lt(K,n),lt(N,e,N),lt(N,n,k),lt(k,e,N),lt(k,n,k),Ie(N,R,P),Ie(k,R,P)}return Ie(r,Gl,F),Ie(r,fg,y$),{start:r,tokens:dE}}function C$(t,e,n){let A=n.length,r=0,o=[],i=[];for(;r<A;){let a=t,l=null,u=null,f=0,h=null,p=-1;for(;r<A&&!(l=a.go(n[r].t));)i.push(n[r++]);for(;r<A&&(u=l||a.go(n[r].t));)l=null,a=u,a.accepts()?(p=0,h=a):p>=0&&p++,r++,f++;if(p<0)r-=f,r<A&&(i.push(n[r]),r++);else{i.length>0&&(o.push(vg(yE,e,i)),i=[]),r-=p,f-=p;const g=h.t,B=n.slice(r-f,r);o.push(vg(g,e,B))}}return i.length>0&&o.push(vg(yE,e,i)),o}function vg(t,e,n){const A=n[0].s,r=n[n.length-1].e,o=e.slice(A,r);return new t(o,n)}const b$=typeof console<"u"&&console&&console.warn||(()=>{}),v$="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",zt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function E$(){return FA.groups={},zt.scanner=null,zt.parser=null,zt.tokenQueue=[],zt.pluginQueue=[],zt.customSchemes=[],zt.initialized=!1,zt}function wE(t,e=!1){if(zt.initialized&&b$(`linkifyjs: already initialized - will not register custom scheme "${t}" ${v$}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
111
111
  1. Must only contain digits, lowercase ASCII letters or "-"
112
112
  2. Cannot start or end with "-"
113
- 3. "-" cannot repeat`);zt.customSchemes.push([t,e])}function b$(){zt.scanner=h$(zt.customSchemes);for(let t=0;t<zt.tokenQueue.length;t++)zt.tokenQueue[t][1]({scanner:zt.scanner});zt.parser=g$(zt.scanner.tokens);for(let t=0;t<zt.pluginQueue.length;t++)zt.pluginQueue[t][1]({scanner:zt.scanner,parser:zt.parser});return zt.initialized=!0,zt}function Eg(t){return zt.initialized||b$(),B$(zt.parser.start,t,hE(zt.scanner.start,t))}Eg.scan=hE;function CE(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const A=new bg(n),r=Eg(t),o=[];for(let i=0;i<r.length;i++){const a=r[i];a.isLink&&(!e||a.t===e)&&A.check(a)&&o.push(a.toFormattedObject(A))}return o}var kg="[\0-   ᠎ -\u2029  ]",v$=new RegExp(kg),E$=new RegExp(`${kg}$`),k$=new RegExp(kg,"g");function S$(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function F$(t){return new sn({key:new Hn("autolink"),appendTransaction:(e,n,A)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(A.doc),o=e.some(u=>u.getMeta("preventAutolink"));if(!r||o)return;const{tr:i}=A,a=Sv(n.doc,[...e]);if(Lv(a).forEach(({newRange:u})=>{const f=fV(A.doc,u,g=>g.isTextblock);let h,p;if(f.length>1)h=f[0],p=A.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(f.length){const g=A.doc.textBetween(u.from,u.to," "," ");if(!E$.test(g))return;h=f[0],p=A.doc.textBetween(h.pos,u.to,void 0," ")}if(h&&p){const g=p.split(v$).filter(Boolean);if(g.length<=0)return!1;const B=g[g.length-1],y=h.pos+p.lastIndexOf(B);if(!B)return!1;const C=Eg(B).map(w=>w.toObject(t.defaultProtocol));if(!S$(C))return!1;C.filter(w=>w.isLink).map(w=>({...w,from:y+w.start+1,to:y+w.end+1})).filter(w=>A.schema.marks.code?!A.doc.rangeHasMark(w.from,w.to,A.schema.marks.code):!0).filter(w=>t.validate(w.value)).filter(w=>t.shouldAutoLink(w.value)).forEach(w=>{jm(w.from,w.to,A.doc).some(F=>F.mark.type===t.type)||i.addMark(w.from,w.to,t.type.create({href:w.href}))})}}),!!i.steps.length)return i}})}function Q$(t){return new sn({key:new Hn("handleClickLink"),props:{handleClick:(e,n,A)=>{var r,o;if(A.button!==0||!e.editable)return!1;let i=null;if(A.target instanceof HTMLAnchorElement)i=A.target;else{let f=A.target;const h=[];for(;f.nodeName!=="DIV";)h.push(f),f=f.parentNode;i=h.find(p=>p.nodeName==="A")}if(!i)return!1;const a=Ov(e.state,t.type.name),l=(r=i?.href)!=null?r:a.href,u=(o=i?.target)!=null?o:a.target;return t.enableClickSelection&&t.editor.commands.extendMarkRange(t.type.name),i&&l?(window.open(l,u),!0):!1}}})}function x$(t){return new sn({key:new Hn("handlePasteLink"),props:{handlePaste:(e,n,A)=>{const{state:r}=e,{selection:o}=r,{empty:i}=o;if(i)return!1;let a="";A.content.forEach(u=>{a+=u.textContent});const l=CE(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function Cs(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(A=>{const r=typeof A=="string"?A:A.scheme;r&&n.push(r)}),!t||t.replace(k$,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var bE=Ci.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){wE(t);return}wE(t.scheme,t.optionalSlashes)})},onDestroy(){C$()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Cs(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Cs(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Cs(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Jt(this.options.HTMLAttributes,t),0]:["a",Jt(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:A=>!!Cs(A,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:A=>!!Cs(A,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[bi({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:A}=this.options,r=CE(t).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:i=>!!Cs(i,n),protocols:n,defaultProtocol:A}));r.length&&r.forEach(o=>e.push({text:o.value,data:{href:o.href},index:o.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(F$({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:A=>this.options.isAllowedUri(A,{defaultValidate:r=>!!Cs(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(Q$({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(x$({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),U$=bE,Td=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...A}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,A,n]},I$=/^\s*>\s$/,_$=PA.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Td("blockquote",{...Jt(this.options.HTMLAttributes,t),children:Td("slot",{})})},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[wa({find:I$,type:this.type})]}}),T$=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,D$=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,M$=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,O$=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,vE=Ci.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Td("strong",{...Jt(this.options.HTMLAttributes,t),children:Td("slot",{})})},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ys({find:T$,type:this.type}),ys({find:M$,type:this.type})]},addPasteRules(){return[bi({find:D$,type:this.type}),bi({find:O$,type:this.type})]}}),L$=vE,N$=/(^|[^`])`([^`]+)`(?!`)/,H$=/(^|[^`])`([^`]+)`(?!`)/g,P$=Ci.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ys({find:N$,type:this.type})]},addPasteRules(){return[bi({find:H$,type:this.type})]}}),R$=/^```([a-z]+)?[\s\n]$/,V$=/^~~~([a-z]+)?[\s\n]$/,$$=PA.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,o=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(i=>i.startsWith(n)).map(i=>i.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Jt(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:A,empty:r}=n;if(!r||A.parent.type!==this.type)return!1;const o=A.parentOffset===A.parent.nodeSize-2,i=A.parent.textContent.endsWith(`
113
+ 3. "-" cannot repeat`);zt.customSchemes.push([t,e])}function k$(){zt.scanner=g$(zt.customSchemes);for(let t=0;t<zt.tokenQueue.length;t++)zt.tokenQueue[t][1]({scanner:zt.scanner});zt.parser=w$(zt.scanner.tokens);for(let t=0;t<zt.pluginQueue.length;t++)zt.pluginQueue[t][1]({scanner:zt.scanner,parser:zt.parser});return zt.initialized=!0,zt}function Eg(t){return zt.initialized||k$(),C$(zt.parser.start,t,hE(zt.scanner.start,t))}Eg.scan=hE;function CE(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const A=new bg(n),r=Eg(t),o=[];for(let i=0;i<r.length;i++){const a=r[i];a.isLink&&(!e||a.t===e)&&A.check(a)&&o.push(a.toFormattedObject(A))}return o}var kg="[\0-   ᠎ -\u2029  ]",S$=new RegExp(kg),F$=new RegExp(`${kg}$`),Q$=new RegExp(kg,"g");function x$(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function U$(t){return new sn({key:new Hn("autolink"),appendTransaction:(e,n,A)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(A.doc),o=e.some(u=>u.getMeta("preventAutolink"));if(!r||o)return;const{tr:i}=A,a=Sv(n.doc,[...e]);if(Lv(a).forEach(({newRange:u})=>{const f=mV(A.doc,u,g=>g.isTextblock);let h,p;if(f.length>1)h=f[0],p=A.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(f.length){const g=A.doc.textBetween(u.from,u.to," "," ");if(!F$.test(g))return;h=f[0],p=A.doc.textBetween(h.pos,u.to,void 0," ")}if(h&&p){const g=p.split(S$).filter(Boolean);if(g.length<=0)return!1;const B=g[g.length-1],y=h.pos+p.lastIndexOf(B);if(!B)return!1;const C=Eg(B).map(w=>w.toObject(t.defaultProtocol));if(!x$(C))return!1;C.filter(w=>w.isLink).map(w=>({...w,from:y+w.start+1,to:y+w.end+1})).filter(w=>A.schema.marks.code?!A.doc.rangeHasMark(w.from,w.to,A.schema.marks.code):!0).filter(w=>t.validate(w.value)).filter(w=>t.shouldAutoLink(w.value)).forEach(w=>{jm(w.from,w.to,A.doc).some(F=>F.mark.type===t.type)||i.addMark(w.from,w.to,t.type.create({href:w.href}))})}}),!!i.steps.length)return i}})}function I$(t){return new sn({key:new Hn("handleClickLink"),props:{handleClick:(e,n,A)=>{var r,o;if(A.button!==0||!e.editable)return!1;let i=null;if(A.target instanceof HTMLAnchorElement)i=A.target;else{let f=A.target;const h=[];for(;f.nodeName!=="DIV";)h.push(f),f=f.parentNode;i=h.find(p=>p.nodeName==="A")}if(!i)return!1;const a=Ov(e.state,t.type.name),l=(r=i?.href)!=null?r:a.href,u=(o=i?.target)!=null?o:a.target;return t.enableClickSelection&&t.editor.commands.extendMarkRange(t.type.name),i&&l?(window.open(l,u),!0):!1}}})}function _$(t){return new sn({key:new Hn("handlePasteLink"),props:{handlePaste:(e,n,A)=>{const{state:r}=e,{selection:o}=r,{empty:i}=o;if(i)return!1;let a="";A.content.forEach(u=>{a+=u.textContent});const l=CE(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function Cs(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(A=>{const r=typeof A=="string"?A:A.scheme;r&&n.push(r)}),!t||t.replace(Q$,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var bE=Ci.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){wE(t);return}wE(t.scheme,t.optionalSlashes)})},onDestroy(){E$()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Cs(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Cs(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Cs(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Jt(this.options.HTMLAttributes,t),0]:["a",Jt(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:A=>!!Cs(A,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:A=>!!Cs(A,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[bi({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:A}=this.options,r=CE(t).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:i=>!!Cs(i,n),protocols:n,defaultProtocol:A}));r.length&&r.forEach(o=>e.push({text:o.value,data:{href:o.href},index:o.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(U$({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:A=>this.options.isAllowedUri(A,{defaultValidate:r=>!!Cs(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(I$({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(_$({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),T$=bE,Td=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...A}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,A,n]},D$=/^\s*>\s$/,M$=PA.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Td("blockquote",{...Jt(this.options.HTMLAttributes,t),children:Td("slot",{})})},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[wa({find:D$,type:this.type})]}}),O$=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,L$=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,N$=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,H$=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,vE=Ci.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Td("strong",{...Jt(this.options.HTMLAttributes,t),children:Td("slot",{})})},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ys({find:O$,type:this.type}),ys({find:N$,type:this.type})]},addPasteRules(){return[bi({find:L$,type:this.type}),bi({find:H$,type:this.type})]}}),P$=vE,R$=/(^|[^`])`([^`]+)`(?!`)/,V$=/(^|[^`])`([^`]+)`(?!`)/g,$$=Ci.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ys({find:R$,type:this.type})]},addPasteRules(){return[bi({find:V$,type:this.type})]}}),K$=/^```([a-z]+)?[\s\n]$/,z$=/^~~~([a-z]+)?[\s\n]$/,W$=PA.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,o=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(i=>i.startsWith(n)).map(i=>i.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Jt(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:A,empty:r}=n;if(!r||A.parent.type!==this.type)return!1;const o=A.parentOffset===A.parent.nodeSize-2,i=A.parent.textContent.endsWith(`
114
114
 
115
- `);return!o||!i?!1:t.chain().command(({tr:a})=>(a.delete(A.pos-2,A.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:A}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const a=r.after();return a===void 0?!1:A.nodeAt(a)?t.commands.command(({tr:u})=>(u.setSelection(it.near(A.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[ng({find:R$,type:this.type,getAttributes:t=>({language:t[1]})}),ng({find:V$,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new sn({key:new Hn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),A=e.clipboardData.getData("vscode-editor-data"),r=A?JSON.parse(A):void 0,o=r?.mode;if(!n||!o)return!1;const{tr:i,schema:a}=t.state,l=a.text(n.replace(/\r\n?/g,`
116
- `));return i.replaceSelectionWith(this.type.create({language:o},l)),i.selection.$from.parent.type!==this.type&&i.setSelection(nt.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),t.dispatch(i),!0}}})]}}),K$=PA.create({name:"doc",topNode:!0,content:"block+"}),z$=PA.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Jt(this.options.HTMLAttributes,t)]},renderText(){return`
117
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:A})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:o}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:a}=A.extensionManager,l=o||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&l&&i){const h=l.filter(p=>a.includes(p.type.name));u.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),W$=PA.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Jt(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>ng({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}}),G$=PA.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Jt(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!X3(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$to:A}=n,r=t();return Vv(n)?r.insertContentAt(A.pos,{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:o,dispatch:i})=>{var a;if(i){const{$to:l}=o.selection,u=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(nt.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(We.create(o.doc,l.pos)):o.setSelection(nt.create(o.doc,l.pos));else{const f=(a=l.parent.type.contentMatch.defaultType)==null?void 0:a.create();f&&(o.insert(u,f),o.setSelection(nt.create(o.doc,u+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[J3({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Y$=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,j$=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,q$=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,J$=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,X$=Ci.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ys({find:Y$,type:this.type}),ys({find:q$,type:this.type})]},addPasteRules(){return[bi({find:j$,type:this.type}),bi({find:J$,type:this.type})]}}),Z$=Object.defineProperty,eK=(t,e)=>{for(var n in e)Z$(t,n,{get:e[n],enumerable:!0})},tK="listItem",EE="textStyle",kE=/^\s*([-+*])\s$/,SE=PA.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(tK,this.editor.getAttributes(EE)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=wa({find:kE,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=wa({find:kE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(EE),editor:this.editor})),[t]}}),FE=PA.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),nK={};eK(nK,{findListItemPos:()=>tc,getNextListDepth:()=>Sg,handleBackspace:()=>Fg,handleDelete:()=>Qg,hasListBefore:()=>QE,hasListItemAfter:()=>AK,hasListItemBefore:()=>xE,listItemHasSubList:()=>UE,nextListIsDeeper:()=>IE,nextListIsHigher:()=>_E});var tc=(t,e)=>{const{$from:n}=e.selection,A=kn(t,e.schema);let r=null,o=n.depth,i=n.pos,a=null;for(;o>0&&a===null;)r=n.node(o),r.type===A?a=o:(o-=1,i-=1);return a===null?null:{$pos:e.doc.resolve(i),depth:a}},Sg=(t,e)=>{const n=tc(t,e);if(!n)return!1;const[,A]=vV(e,t,n.$pos.pos+4);return A},QE=(t,e,n)=>{const{$anchor:A}=t.selection,r=Math.max(0,A.pos-2),o=t.doc.resolve(r).node();return!(!o||!n.includes(o.type.name))},xE=(t,e)=>{var n;const{$anchor:A}=e.selection,r=e.doc.resolve(A.pos-2);return!(r.index()===0||((n=r.nodeBefore)==null?void 0:n.type.name)!==t)},UE=(t,e,n)=>{if(!n)return!1;const A=kn(t,e.schema);let r=!1;return n.descendants(o=>{o.type===A&&(r=!0)}),r},Fg=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!wi(t.state,e)&&QE(t.state,e,n)){const{$anchor:a}=t.state.selection,l=t.state.doc.resolve(a.before()-1),u=[];l.node().descendants((p,g)=>{p.type.name===e&&u.push({node:p,pos:g})});const f=u.at(-1);if(!f)return!1;const h=t.state.doc.resolve(l.start()+f.pos+1);return t.chain().cut({from:a.start()-1,to:a.end()+1},h.end()).joinForward().run()}if(!wi(t.state,e)||!FV(t.state))return!1;const A=tc(e,t.state);if(!A)return!1;const o=t.state.doc.resolve(A.$pos.pos-2).node(A.depth),i=UE(e,t.state,o);return xE(e,t.state)&&!i?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},IE=(t,e)=>{const n=Sg(t,e),A=tc(t,e);return!A||!n?!1:n>A.depth},_E=(t,e)=>{const n=Sg(t,e),A=tc(t,e);return!A||!n?!1:n<A.depth},Qg=(t,e)=>{if(!wi(t.state,e)||!SV(t.state,e))return!1;const{selection:n}=t.state,{$from:A,$to:r}=n;return!n.empty&&A.sameParent(r)?!1:IE(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():_E(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},AK=(t,e)=>{var n;const{$anchor:A}=e.selection,r=e.doc.resolve(A.pos-A.parentOffset-2);return!(r.index()===r.parent.childCount-1||((n=r.nodeAfter)==null?void 0:n.type.name)!==t)},TE=gn.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Qg(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Qg(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:A})=>{t.state.schema.nodes[n]!==void 0&&Fg(t,n,A)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:A})=>{t.state.schema.nodes[n]!==void 0&&Fg(t,n,A)&&(e=!0)}),e}}}}),rK="listItem",DE="textStyle",ME=/^(\d+)\.\s$/,OE=PA.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Jt(this.options.HTMLAttributes,n),0]:["ol",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rK,this.editor.getAttributes(DE)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=wa({find:ME,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=wa({find:ME,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(DE)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),oK=/^\s*(\[([( |x])?\])\s$/,iK=PA.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Jt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:A})=>{const r=document.createElement("li"),o=document.createElement("label"),i=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=f=>{var h,p;a.ariaLabel=((p=(h=this.options.a11y)==null?void 0:h.checkboxLabel)==null?void 0:p.call(h,f,a.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};return u(t),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",f=>f.preventDefault()),a.addEventListener("change",f=>{if(!A.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:h}=f.target;A.isEditable&&typeof n=="function"&&A.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const g=n();if(typeof g!="number")return!1;const B=p.doc.nodeAt(g);return p.setNodeMarkup(g,void 0,{...B?.attrs,checked:h}),!0}).run(),!A.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,h)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,h])=>{r.setAttribute(f,h)}),r.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,o.append(a,i),r.append(o,l),Object.entries(e).forEach(([f,h])=>{r.setAttribute(f,h)}),{dom:r,contentDOM:l,update:f=>f.type!==this.type?!1:(r.dataset.checked=f.attrs.checked,a.checked=f.attrs.checked,u(f),!0)}}},addInputRules(){return[wa({find:oK,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),sK=PA.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Jt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});gn.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(SE.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(FE.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(TE.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(OE.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(iK.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(sK.configure(this.options.taskList)),t}});var aK=PA.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),lK=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,cK=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,uK=Ci.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ys({find:lK,type:this.type})]},addPasteRules(){return[bi({find:cK,type:this.type})]}}),dK=PA.create({name:"text",group:"inline"}),fK=Ci.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function hK(t={}){return new sn({view(e){return new pK(e,t)}})}class pK{constructor(e,n){var A;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(A=n.width)!==null&&A!==void 0?A:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let o=i=>{this[r](i)};return e.dom.addEventListener(r,o),{name:r,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,A,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,a=o.height/r.offsetHeight;if(n){let h=e.nodeBefore,p=e.nodeAfter;if(h||p){let g=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(g){let B=g.getBoundingClientRect(),y=h?B.bottom:B.top;h&&p&&(y=(y+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let C=this.width/2*a;A={left:B.left,right:B.right,top:y-C,bottom:y+C}}}}if(!A){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*i;A={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,f;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,f=-pageYOffset;else{let h=l.getBoundingClientRect(),p=h.width/l.offsetWidth,g=h.height/l.offsetHeight;u=h.left-l.scrollLeft*p,f=h.top-l.scrollTop*g}this.element.style.left=(A.left-u)/i+"px",this.element.style.top=(A.top-f)/a+"px",this.element.style.width=(A.right-A.left)/i+"px",this.element.style.height=(A.bottom-A.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),A=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=A&&A.type.spec.disableDropCursor,o=typeof r=="function"?r(this.editorView,n,e):r;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Nb(this.editorView.state.doc,i,this.editorView.dragging.slice);a!=null&&(i=a)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ln extends it{constructor(e){super(e,e)}map(e,n){let A=e.resolve(n.map(this.head));return ln.valid(A)?new ln(A):it.near(A)}content(){return Ne.empty}eq(e){return e instanceof ln&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ln(e.resolve(n.pos))}getBookmark(){return new xg(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!mK(e)||!gK(e))return!1;let A=n.type.spec.allowGapCursor;if(A!=null)return A;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,A=!1){e:for(;;){if(!A&&ln.valid(e))return e;let r=e.pos,o=null;for(let i=e.depth;;i--){let a=e.node(i);if(n>0?e.indexAfter(i)<a.childCount:e.index(i)>0){o=a.child(n>0?e.indexAfter(i):e.index(i)-1);break}else if(i==0)return null;r+=n;let l=e.doc.resolve(r);if(ln.valid(l))return l}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!We.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),A=!1;continue e}break}o=i,r+=n;let a=e.doc.resolve(r);if(ln.valid(a))return a}return null}}}ln.prototype.visible=!1,ln.findFrom=ln.findGapCursorFrom,it.jsonID("gapcursor",ln);class xg{constructor(e){this.pos=e}map(e){return new xg(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ln.valid(n)?new ln(n):it.near(n)}}function mK(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),A=t.node(e);if(n==0){if(A.type.spec.isolating)return!0;continue}for(let r=A.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function gK(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),A=t.node(e);if(n==A.childCount){if(A.type.spec.isolating)return!0;continue}for(let r=A.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function BK(){return new sn({props:{decorations:bK,createSelectionBetween(t,e,n){return e.pos==n.pos&&ln.valid(n)?new ln(n):null},handleClick:wK,handleKeyDown:yK,handleDOMEvents:{beforeinput:CK}}})}const yK=uv({ArrowLeft:Dd("horiz",-1),ArrowRight:Dd("horiz",1),ArrowUp:Dd("vert",-1),ArrowDown:Dd("vert",1)});function Dd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(A,r,o){let i=A.selection,a=e>0?i.$to:i.$from,l=i.empty;if(i instanceof nt){if(!o.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=A.doc.resolve(e>0?a.after():a.before())}let u=ln.findGapCursorFrom(a,e,l);return u?(r&&r(A.tr.setSelection(new ln(u))),!0):!1}}function wK(t,e,n){if(!t||!t.editable)return!1;let A=t.state.doc.resolve(e);if(!ln.valid(A))return!1;let r=t.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&We.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ln(A))),!0)}function CK(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ln))return!1;let{$from:n}=t.state.selection,A=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!A)return!1;let r=Qe.empty;for(let i=A.length-1;i>=0;i--)r=Qe.from(A[i].createAndFill(null,r));let o=t.state.tr.replace(n.pos,n.pos,new Ne(r,0,0));return o.setSelection(nt.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function bK(t){if(!(t.selection instanceof ln))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",tn.create(t.doc,[hA.widget(t.selection.head,e,{key:"gapcursor"})])}var Md=200,Pn=function(){};Pn.prototype.append=function(e){return e.length?(e=Pn.from(e),!this.length&&e||e.length<Md&&this.leafAppend(e)||this.length<Md&&e.leafPrepend(this)||this.appendInner(e)):this},Pn.prototype.prepend=function(e){return e.length?Pn.from(e).append(this):this},Pn.prototype.appendInner=function(e){return new vK(this,e)},Pn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Pn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Pn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Pn.prototype.forEach=function(e,n,A){n===void 0&&(n=0),A===void 0&&(A=this.length),n<=A?this.forEachInner(e,n,A,0):this.forEachInvertedInner(e,n,A,0)},Pn.prototype.map=function(e,n,A){n===void 0&&(n=0),A===void 0&&(A=this.length);var r=[];return this.forEach(function(o,i){return r.push(e(o,i))},n,A),r},Pn.from=function(e){return e instanceof Pn?e:e&&e.length?new LE(e):Pn.empty};var LE=(function(t){function e(A){t.call(this),this.values=A}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,o){return r==0&&o==this.length?this:new e(this.values.slice(r,o))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,o,i,a){for(var l=o;l<i;l++)if(r(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,a){for(var l=o-1;l>=i;l--)if(r(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Md)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Md)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Pn);Pn.empty=new LE([]);var vK=(function(t){function e(n,A){t.call(this),this.left=n,this.right=A,this.length=n.length+A.length,this.depth=Math.max(n.depth,A.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(A){return A<this.left.length?this.left.get(A):this.right.get(A-this.left.length)},e.prototype.forEachInner=function(A,r,o,i){var a=this.left.length;if(r<a&&this.left.forEachInner(A,r,Math.min(o,a),i)===!1||o>a&&this.right.forEachInner(A,Math.max(r-a,0),Math.min(this.length,o)-a,i+a)===!1)return!1},e.prototype.forEachInvertedInner=function(A,r,o,i){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(A,r-a,Math.max(o,a)-a,i+a)===!1||o<a&&this.left.forEachInvertedInner(A,Math.min(r,a),o,i)===!1)return!1},e.prototype.sliceInner=function(A,r){if(A==0&&r==this.length)return this;var o=this.left.length;return r<=o?this.left.slice(A,r):A>=o?this.right.slice(A-o,r-o):this.left.slice(A,o).append(this.right.slice(0,r-o))},e.prototype.leafAppend=function(A){var r=this.right.leafAppend(A);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(A){var r=this.left.leafPrepend(A);if(r)return new e(r,this.right)},e.prototype.appendInner=function(A){return this.left.depth>=Math.max(this.right.depth,A.depth)+1?new e(this.left,new e(this.right,A)):new e(this,A)},e})(Pn);const EK=500;class Ir{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let A=this.items.length;for(;;A--)if(this.items.get(A-1).selection){--A;break}let r,o;n&&(r=this.remapping(A,this.items.length),o=r.maps.length);let i=e.tr,a,l,u=[],f=[];return this.items.forEach((h,p)=>{if(!h.step){r||(r=this.remapping(A,p+1),o=r.maps.length),o--,f.push(h);return}if(r){f.push(new no(h.map));let g=h.step.map(r.slice(o)),B;g&&i.maybeStep(g).doc&&(B=i.mapping.maps[i.mapping.maps.length-1],u.push(new no(B,void 0,void 0,u.length+f.length))),o--,B&&r.appendMap(B,o)}else i.maybeStep(h.step);if(h.selection)return a=r?h.selection.map(r.slice(o)):h.selection,l=new Ir(this.items.slice(0,A).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:i,selection:a}}addTransform(e,n,A,r){let o=[],i=this.eventCount,a=this.items,l=!r&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let h=e.steps[f].invert(e.docs[f]),p=new no(e.mapping.maps[f],h,n),g;(g=l&&l.merge(p))&&(p=g,f?o.pop():a=a.slice(0,a.length-1)),o.push(p),n&&(i++,n=void 0),r||(l=p)}let u=i-A.depth;return u>SK&&(a=kK(a,u),i-=u),new Ir(a.append(o),i)}remapping(e,n){let A=new xl;return this.items.forEach((r,o)=>{let i=r.mirrorOffset!=null&&o-r.mirrorOffset>=e?A.maps.length-r.mirrorOffset:void 0;A.appendMap(r.map,i)},e,n),A}addMaps(e){return this.eventCount==0?this:new Ir(this.items.append(e.map(n=>new no(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let A=[],r=Math.max(0,this.items.length-n),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(p=>{p.selection&&a--},r);let l=n;this.items.forEach(p=>{let g=o.getMirror(--l);if(g==null)return;i=Math.min(i,g);let B=o.maps[g];if(p.step){let y=e.steps[g].invert(e.docs[g]),C=p.selection&&p.selection.map(o.slice(l+1,g));C&&a++,A.push(new no(B,y,C))}else A.push(new no(B))},r);let u=[];for(let p=n;p<i;p++)u.push(new no(o.maps[p]));let f=this.items.slice(0,r).append(u).append(A),h=new Ir(f,a);return h.emptyItemCount()>EK&&(h=h.compress(this.items.length-A.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),A=n.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let l=i.step.map(n.slice(A)),u=l&&l.getMap();if(A--,u&&n.appendMap(u,A),l){let f=i.selection&&i.selection.map(n.slice(A));f&&o++;let h=new no(u.invert(),l,f),p,g=r.length-1;(p=r.length&&r[g].merge(h))?r[g]=p:r.push(h)}}else i.map&&A--},this.items.length,0),new Ir(Pn.from(r.reverse()),o)}}Ir.empty=new Ir(Pn.empty,0);function kK(t,e){let n;return t.forEach((A,r)=>{if(A.selection&&e--==0)return n=r,!1}),t.slice(n)}class no{constructor(e,n,A,r){this.map=e,this.step=n,this.selection=A,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new no(n.getMap().invert(),n,this.selection)}}}class Si{constructor(e,n,A,r,o){this.done=e,this.undone=n,this.prevRanges=A,this.prevTime=r,this.prevComposition=o}}const SK=20;function FK(t,e,n,A){let r=n.getMeta(bs),o;if(r)return r.historyState;n.getMeta(UK)&&(t=new Si(t.done,t.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(i&&i.getMeta(bs))return i.getMeta(bs).redo?new Si(t.done.addTransform(n,void 0,A,Od(e)),t.undone,NE(n.mapping.maps),t.prevTime,t.prevComposition):new Si(t.done,t.undone.addTransform(n,void 0,A,Od(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!i&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-A.newGroupDelay||!QK(n,t.prevRanges)),u=i?Ug(t.prevRanges,n.mapping):NE(n.mapping.maps);return new Si(t.done.addTransform(n,l?e.selection.getBookmark():void 0,A,Od(e)),Ir.empty,u,n.time,a??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Si(t.done.rebased(n,o),t.undone.rebased(n,o),Ug(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Si(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ug(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function QK(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((A,r)=>{for(let o=0;o<e.length;o+=2)A<=e[o+1]&&r>=e[o]&&(n=!0)}),n}function NE(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((A,r,o,i)=>e.push(o,i));return e}function Ug(t,e){if(!t)return null;let n=[];for(let A=0;A<t.length;A+=2){let r=e.map(t[A],1),o=e.map(t[A+1],-1);r<=o&&n.push(r,o)}return n}function xK(t,e,n){let A=Od(e),r=bs.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,A);if(!o)return null;let i=o.selection.resolve(o.transform.doc),a=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),r,A),l=new Si(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(i).setMeta(bs,{redo:n,historyState:l})}let Ig=!1,HE=null;function Od(t){let e=t.plugins;if(HE!=e){Ig=!1,HE=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ig=!0;break}}return Ig}const bs=new Hn("history"),UK=new Hn("closeHistory");function IK(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new sn({key:bs,state:{init(){return new Si(Ir.empty,Ir.empty,null,0,-1)},apply(e,n,A){return FK(n,A,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let A=n.inputType,r=A=="historyUndo"?RE:A=="historyRedo"?VE:null;return r?(n.preventDefault(),r(e.state,e.dispatch)):!1}}}})}function PE(t,e){return(n,A)=>{let r=bs.getState(n);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(A){let o=xK(r,n,t);o&&A(e?o.scrollIntoView():o)}return!0}}const RE=PE(!1,!0),VE=PE(!0,!0);gn.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const A=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(A)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new sn({key:new Hn("characterCount"),appendTransaction:(e,n,A)=>{if(t)return;const r=this.options.limit;if(r==null||r===0){t=!0;return}const o=this.storage.characters({node:A.doc});if(o>r){const i=o-r,a=0,l=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const u=A.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const A=this.options.limit;if(!e.docChanged||A===0||A===null||A===void 0)return!0;const r=this.storage.characters({node:n.doc}),o=this.storage.characters({node:e.doc});if(o<=A||r>A&&o>A&&o<=r)return!0;if(r>A&&o>A&&o>r||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=o-A,u=a-l,f=a;return e.deleteRange(u,f),!(this.storage.characters({node:e.doc})>A)}})]}});var _K=gn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[hK(this.options)]}});gn.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new sn({key:new Hn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:A}=this.editor,{anchor:r}=e,o=[];if(!n||!A)return tn.create(t,[]);let i=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(r>=u&&r<=u+l.nodeSize-1))return!1;i+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(r>=u&&r<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&i-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";o.push(hA.node(u,u+l.nodeSize,{class:this.options.className}))}),tn.create(t,o)}}})]}});var TK=gn.create({name:"gapCursor",addProseMirrorPlugins(){return[BK()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=_t(ze(t,"allowGapCursor",n)))!=null?e:null}}});gn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new sn({key:new Hn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:A}=e,r=[];if(!n)return null;const o=this.editor.isEmpty;return t.descendants((i,a)=>{const l=A>=a&&A<=a+i.nodeSize,u=!i.isLeaf&&ju(i);if((l||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];o&&f.push(this.options.emptyEditorClass);const h=hA.node(a,a+i.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:a,hasAnchor:l}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),tn.create(t,r)}}})]}}),gn.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new sn({key:new Hn("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||Vv(n.selection)||t.view.dragging?null:tn.create(n.doc,[hA.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function $E({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var DK=gn.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const t=new Hn(this.name),e=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>(this.options.notAfter||[]).concat(this.options.node).includes(n.name));return[new sn({key:t,appendTransaction:(n,A,r)=>{const{doc:o,tr:i,schema:a}=r,l=t.getState(r),u=o.content.size,f=a.nodes[this.options.node];if(l)return i.insert(u,f.create())},state:{init:(n,A)=>{const r=A.tr.doc.lastChild;return!$E({node:r,types:e})},apply:(n,A)=>{if(!n.docChanged)return A;const r=n.doc.lastChild;return!$E({node:r,types:e})}}})]}}),MK=gn.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>RE(t,e),redo:()=>({state:t,dispatch:e})=>VE(t,e)}},addProseMirrorPlugins(){return[IK(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),OK=gn.create({name:"starterKit",addExtensions(){var t,e,n,A;const r=[];return this.options.bold!==!1&&r.push(vE.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(_$.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(SE.configure(this.options.bulletList)),this.options.code!==!1&&r.push(P$.configure(this.options.code)),this.options.codeBlock!==!1&&r.push($$.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(K$.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(_K.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push(TK.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(z$.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(W$.configure(this.options.heading)),this.options.undoRedo!==!1&&r.push(MK.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&r.push(G$.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push(X$.configure(this.options.italic)),this.options.listItem!==!1&&r.push(FE.configure(this.options.listItem)),this.options.listKeymap!==!1&&r.push(TE.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&r.push(bE.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&r.push(OE.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(aK.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(uK.configure(this.options.strike)),this.options.text!==!1&&r.push(dK.configure(this.options.text)),this.options.underline!==!1&&r.push(fK.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&r.push(DK.configure((A=this.options)==null?void 0:A.trailingNode)),r}}),LK=OK;function KE(t){return s.customRef((e,n)=>({get(){return e(),t},set(A){t=A,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var NK=class extends q3{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=KE(this.view.state),this.reactiveExtensionStorage=KE(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},HK=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=s.ref(),n=s.getCurrentInstance();return s.watchEffect(()=>{const A=t.editor;A&&A.options.element&&e.value&&s.nextTick(()=>{var r;if(!e.value||!((r=A.options.element)!=null&&r.firstChild))return;const o=s.unref(e.value);e.value.append(...A.options.element.childNodes),A.contentComponent=n.ctx._,n&&(A.appContext={...n.appContext,provides:n.provides}),A.setOptions({element:o}),A.createNodeViews()})}),s.onBeforeUnmount(()=>{const A=t.editor;A&&(A.contentComponent=null,A.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:t=>{this.rootEl=t}})}});s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var PK=(t={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new NK(t)}),s.onBeforeUnmount(()=>{var n,A,r;const o=(n=e.value)==null?void 0:n.options.element,i=o?.cloneNode(!0);(A=o?.parentNode)==null||A.replaceChild(i,o),(r=e.value)==null||r.destroy()}),e};s.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return s.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});const RK={class:"rte-editor"},VK={key:0,class:"rte-editor__controls mb-2"},$K=["disabled"],KK=["disabled"],zK={class:"btn-group"},WK=["disabled"],GK=["disabled"],YK={class:"btn-group"},jK={class:"dropdown"},qK={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},JK={class:"dropdown-menu"},XK={class:"dropdown"},ZK={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},e5={class:"dropdown-menu"},t5={class:"btn-group"},n5=["disabled"],A5=["disabled"],r5=s.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},iconBasePath:{type:String,default:"/rte-icons-defs.svg"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(!1),o=PK({content:n.modelValue,onUpdate:()=>{A("update:modelValue",o.value?.getHTML())},extensions:[LK.configure({bold:!1}),L$.extend({addAttributes(){return{class:{default:null}}},parseHTML(){return[{tag:"strong"},{tag:"b"}]},renderHTML({HTMLAttributes:u}){return["strong",Jt(this.options.HTMLAttributes,u),0]}}),o$.configure({types:["heading","paragraph"]}),A$,U$.extend({addAttributes(){return{...this.parent?.(),class:{default:null},id:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:u=>({href:u.getAttribute("href"),target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})},{tag:"a:not([href])",getAttrs:u=>({href:null,target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})}]},renderHTML({HTMLAttributes:u}){if(!u.href){const{href:f,target:h,rel:p,...g}=u;return["a",Jt(g),0]}return["a",Jt(this.options.HTMLAttributes,u),0]}}).configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["http","https"],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})]});s.watch(()=>n.modelValue,(u,f)=>{if(o.value){if(o.value.getHTML()===u)return;o.value.commands.setContent(u)}});function i(){const u=o.value?.getAttributes("link").href,f=window.prompt("URL",u);if(f!==null){if(f===""){o.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}try{o.value?.chain().focus().extendMarkRange("link").setLink({href:f}).run()}catch(h){alert(h.message)}}}const a=()=>{o.value?.commands.setContent(`<textarea>${o.value.getHTML()}</textarea>`),r.value=!0},l=()=>{o.value?.commands.setContent(o.value.getText()),r.value=!1};return(u,f)=>{const h=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",RK,[s.unref(o)?(s.openBlock(),s.createElementBlock("div",VK,[r.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"btn btn-sm btn-light is-active",onClick:l,disabled:!s.unref(o).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],8,KK)):(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("code")}]),onClick:a,disabled:!s.unref(o).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],10,$K)),s.createElementVNode("div",zK,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("bold")}]),onClick:f[0]||(f[0]=p=>s.unref(o)?.chain().focus().toggleBold().run()),disabled:!s.unref(o).can().chain().focus().toggleBold().run(),title:"Toggle Bold"},[s.createVNode(h,{symbol:"bold","base-path":t.iconBasePath},null,8,["base-path"])],10,WK),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("italic")}]),onClick:f[1]||(f[1]=p=>s.unref(o)?.chain().focus().toggleItalic().run()),disabled:!s.unref(o).can().chain().focus().toggleItalic().run(),title:"Toggle Italic"},[s.createVNode(h,{symbol:"italic","base-path":t.iconBasePath},null,8,["base-path"])],10,GK)]),s.createElementVNode("div",YK,[s.createElementVNode("div",jK,[s.createElementVNode("button",qK,[s.unref(o).isActive("heading",{level:1})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive("heading",{level:2})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive("heading",{level:3})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive("heading",{level:4})?(s.openBlock(),s.createBlock(h,{key:3,symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:4,symbol:"headline","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",JK,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:1})}]),onClick:f[2]||(f[2]=p=>s.unref(o)?.chain().focus().setHeading({level:1}).run()),title:"Set Heading 1"},[s.createVNode(h,{symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:2})}]),onClick:f[3]||(f[3]=p=>s.unref(o)?.chain().focus().setHeading({level:2}).run()),title:"Set Heading 2"},[s.createVNode(h,{symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:3})}]),onClick:f[4]||(f[4]=p=>s.unref(o)?.chain().focus().setHeading({level:3}).run()),title:"Set Heading 3"},[s.createVNode(h,{symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:4})}]),onClick:f[5]||(f[5]=p=>s.unref(o)?.chain().focus().setHeading({level:4}).run()),title:"Set Heading 4"},[s.createVNode(h,{symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("paragraph")}]),onClick:f[6]||(f[6]=p=>s.unref(o)?.chain().focus().setParagraph().run()),title:"Set Paragraph"},[s.createVNode(h,{symbol:"paragraph","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("bulletList")}]),onClick:f[7]||(f[7]=p=>s.unref(o)?.chain().focus().toggleBulletList().run()),title:"Toggle Bullet List"},[s.createVNode(h,{symbol:"list","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("orderedList")}]),onClick:f[8]||(f[8]=p=>s.unref(o)?.chain().focus().toggleOrderedList().run()),title:"Toggle Ordered List"},[s.createVNode(h,{symbol:"ordered-list","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("div",XK,[s.createElementVNode("button",ZK,[s.unref(o).isActive({textAlign:"center"})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive({textAlign:"left"})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive({textAlign:"right"})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:3,symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",e5,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"left"})}]),onClick:f[9]||(f[9]=p=>s.unref(o)?.chain().focus().setTextAlign("left").run())},[s.createVNode(h,{symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"center"})}]),onClick:f[10]||(f[10]=p=>s.unref(o)?.chain().focus().setTextAlign("center").run())},[s.createVNode(h,{symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"right"})}]),onClick:f[11]||(f[11]=p=>s.unref(o)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"pretty"})}]),onClick:f[12]||(f[12]=p=>s.unref(o)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.unref(o).isActive("link")?(s.openBlock(),s.createElementBlock("button",{key:3,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("link")}]),onClick:f[13]||(f[13]=p=>s.unref(o).chain().focus().unsetLink().run()),title:"Unset Link"},[s.createVNode(h,{symbol:"unlink","base-path":t.iconBasePath},null,8,["base-path"])],2)):(s.openBlock(),s.createElementBlock("button",{key:2,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("link")}]),onClick:i,title:"Set Link"},[s.createVNode(h,{symbol:"link","base-path":t.iconBasePath},null,8,["base-path"])],2)),s.createElementVNode("div",t5,[s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:f[14]||(f[14]=p=>s.unref(o)?.chain().focus().undo().run()),disabled:!s.unref(o).can().chain().focus().undo().run(),title:"Undo"},[s.createVNode(h,{symbol:"undo","base-path":t.iconBasePath},null,8,["base-path"])],8,n5),s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:f[15]||(f[15]=p=>s.unref(o)?.chain().focus().redo().run()),disabled:!s.unref(o).can().chain().focus().redo().run(),title:"Redo"},[s.createVNode(h,{symbol:"redo","base-path":t.iconBasePath},null,8,["base-path"])],8,A5)])])):s.createCommentVNode("",!0),s.createVNode(s.unref(HK),{class:"rte-editor__content",editor:s.unref(o)},null,8,["editor"])])}}}),o5={class:"input-color"},i5={class:"base-input__color-swatch"},s5=["name","id","disabled","read-only","required","aria-label"],a5=s.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){A("update:modelValue",o)}});return(o,i)=>{const a=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",o5,[s.createVNode(a,{modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=l=>r.value=l),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":s.withCtx(l=>[s.createElementVNode("span",i5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=u=>r.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,s5),[[s.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),l5={class:"color-palette"},c5=["for"],u5=s.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){A("update:modelValue",o)}});return(o,i)=>(s.openBlock(),s.createElementBlock("div",l5,[s.createVNode(gu,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:s.normalizeStyle({backgroundColor:a.option})},null,12,c5)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),d5={class:"input input-dropdown"},f5={class:"dropdown"},h5={class:"caption"},p5=["innerHTML"],m5={class:"caption__text"},g5={class:"d-block text-truncate"},B5={class:"dropdown-menu"},y5={class:"form-check"},w5=["value","id","name","label","required","disabled"],C5=["value","id","name","label","required","disabled"],b5=["for"],v5=s.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${bt()}`},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:n}=El(),A=t,r=e,o=s.computed({get(){return A.multiple&&!A.modelValue?[]:A.modelValue},set(l){r("update:modelValue",l)}}),i=s.computed(()=>A.options&&A.options.map(l=>(l=typeof l=="string"?{text:l,value:l}:l,{...l,active:A.modelValue&&l.value&&(A.exactMatch?A.modelValue===l.value:A.multiple?A.modelValue.includes(l.value):A.modelValue===l.value)}))),a=s.computed(()=>{if(!A.modelValue)return A.placeholder||`${n("common.select")}`;if(A.multiple&&Array.isArray(A.modelValue)&&A.modelValue.length)return i.value.reduce((l,u)=>A.modelValue.includes(u.value)?`${l}${l?", ":""}${u.text}`:l,"");if(!A.multiple){const l=i.value.find(u=>u.value===A.modelValue);return l?l.text:A.placeholder||`${n("common.select")}`}return A.placeholder||`${n("common.select")}`});return(l,u)=>{const f=s.resolveComponent("base-button");return s.openBlock(),s.createElementBlock("div",d5,[s.createElementVNode("div",f5,[s.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:s.withCtx(()=>[s.createElementVNode("span",h5,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(s.openBlock(),s.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,p5)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("span",m5,[s.createElementVNode("span",g5,s.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),s.createElementVNode("ul",B5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(h,p)=>(s.openBlock(),s.createElementBlock("li",{key:`${h.value}-${p}`},[s.createElementVNode("div",{class:s.normalizeClass(["dropdown-item",h.active&&"active"])},[s.createElementVNode("div",y5,[t.multiple?s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=g=>o.value=g),value:h.value,key:`${t.name}-${h.value}-${p}__if`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,w5)),[[s.vModelCheckbox,o.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=g=>o.value=g),value:h.value,key:`${t.name}-${h.value}-${p}__else`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,C5)),[[s.vModelRadio,o.value]]),s.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${p}`},s.toDisplayString(h.text),9,b5)])],2)]))),128))])])])}}}),E5={key:0,class:"auto-suggest__suggestions position-relative"},k5={class:"suggestions dropdown-menu show w-100 mt-2"},S5=["onClick"],F5=["innerHTML"],Q5=s.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),o=s.ref(!1),i=s.computed({get(){return n.modelValue},set(g){A("update:modelValue",g)}}),a=s.computed(()=>{const g=new RegExp(`(${i.value})`,"i");return i.value?n.options.filter(B=>g.test(B)):n.options}),l=s.computed(()=>{const g=new RegExp(`(${i.value})`,"i");return a.value.map(B=>B.replace(g,"<strong>$1</strong>"))});s.watch(()=>n.options,(g,B)=>{g.length&&(o.value=!0)},{deep:!0});function u(){n.options.length&&(o.value=!0)}function f(g){o.value=!1;const B=a.value[g];A("update:modelValue",B),A("update:selection",B)}const h=s.ref();function p(g){const B=g.target;o.value&&B&&!r.value.contains(B)&&(o.value=!1)}return s.onBeforeMount(()=>{h.value=document.addEventListener("click",p)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(g,B)=>{const y=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:r},[s.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[s.renderSlot(g.$slots,"default",{},()=>[s.createVNode(y,s.mergeProps({modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=C=>i.value=C)},g.$props),null,16,["modelValue"])])],32),o.value&&a.value.length?(s.openBlock(),s.createElementBlock("div",E5,[s.createElementVNode("ul",k5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(C,w)=>(s.openBlock(),s.createElementBlock("li",{key:C,class:"suggestions__item dropdown-item",onClick:s.withModifiers(F=>f(w),["prevent"])},[s.createElementVNode("p",{class:"text-truncate my-2",innerHTML:C},null,8,F5)],8,S5))),128))])])):s.createCommentVNode("",!0)],512)}}});var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nc={exports:{}};/**
115
+ `);return!o||!i?!1:t.chain().command(({tr:a})=>(a.delete(A.pos-2,A.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:A}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const a=r.after();return a===void 0?!1:A.nodeAt(a)?t.commands.command(({tr:u})=>(u.setSelection(it.near(A.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[ng({find:K$,type:this.type,getAttributes:t=>({language:t[1]})}),ng({find:z$,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new sn({key:new Hn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),A=e.clipboardData.getData("vscode-editor-data"),r=A?JSON.parse(A):void 0,o=r?.mode;if(!n||!o)return!1;const{tr:i,schema:a}=t.state,l=a.text(n.replace(/\r\n?/g,`
116
+ `));return i.replaceSelectionWith(this.type.create({language:o},l)),i.selection.$from.parent.type!==this.type&&i.setSelection(nt.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),t.dispatch(i),!0}}})]}}),G$=PA.create({name:"doc",topNode:!0,content:"block+"}),Y$=PA.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Jt(this.options.HTMLAttributes,t)]},renderText(){return`
117
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:A})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:o}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:a}=A.extensionManager,l=o||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&l&&i){const h=l.filter(p=>a.includes(p.type.name));u.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),j$=PA.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Jt(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>ng({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}}),q$=PA.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Jt(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!t$(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$to:A}=n,r=t();return Vv(n)?r.insertContentAt(A.pos,{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:o,dispatch:i})=>{var a;if(i){const{$to:l}=o.selection,u=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(nt.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(We.create(o.doc,l.pos)):o.setSelection(nt.create(o.doc,l.pos));else{const f=(a=l.parent.type.contentMatch.defaultType)==null?void 0:a.create();f&&(o.insert(u,f),o.setSelection(nt.create(o.doc,u+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[e$({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),J$=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,X$=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Z$=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,eK=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,tK=Ci.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ys({find:J$,type:this.type}),ys({find:Z$,type:this.type})]},addPasteRules(){return[bi({find:X$,type:this.type}),bi({find:eK,type:this.type})]}}),nK=Object.defineProperty,AK=(t,e)=>{for(var n in e)nK(t,n,{get:e[n],enumerable:!0})},rK="listItem",EE="textStyle",kE=/^\s*([-+*])\s$/,SE=PA.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rK,this.editor.getAttributes(EE)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=wa({find:kE,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=wa({find:kE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(EE),editor:this.editor})),[t]}}),FE=PA.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),oK={};AK(oK,{findListItemPos:()=>tc,getNextListDepth:()=>Sg,handleBackspace:()=>Fg,handleDelete:()=>Qg,hasListBefore:()=>QE,hasListItemAfter:()=>iK,hasListItemBefore:()=>xE,listItemHasSubList:()=>UE,nextListIsDeeper:()=>IE,nextListIsHigher:()=>_E});var tc=(t,e)=>{const{$from:n}=e.selection,A=kn(t,e.schema);let r=null,o=n.depth,i=n.pos,a=null;for(;o>0&&a===null;)r=n.node(o),r.type===A?a=o:(o-=1,i-=1);return a===null?null:{$pos:e.doc.resolve(i),depth:a}},Sg=(t,e)=>{const n=tc(t,e);if(!n)return!1;const[,A]=SV(e,t,n.$pos.pos+4);return A},QE=(t,e,n)=>{const{$anchor:A}=t.selection,r=Math.max(0,A.pos-2),o=t.doc.resolve(r).node();return!(!o||!n.includes(o.type.name))},xE=(t,e)=>{var n;const{$anchor:A}=e.selection,r=e.doc.resolve(A.pos-2);return!(r.index()===0||((n=r.nodeBefore)==null?void 0:n.type.name)!==t)},UE=(t,e,n)=>{if(!n)return!1;const A=kn(t,e.schema);let r=!1;return n.descendants(o=>{o.type===A&&(r=!0)}),r},Fg=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!wi(t.state,e)&&QE(t.state,e,n)){const{$anchor:a}=t.state.selection,l=t.state.doc.resolve(a.before()-1),u=[];l.node().descendants((p,g)=>{p.type.name===e&&u.push({node:p,pos:g})});const f=u.at(-1);if(!f)return!1;const h=t.state.doc.resolve(l.start()+f.pos+1);return t.chain().cut({from:a.start()-1,to:a.end()+1},h.end()).joinForward().run()}if(!wi(t.state,e)||!UV(t.state))return!1;const A=tc(e,t.state);if(!A)return!1;const o=t.state.doc.resolve(A.$pos.pos-2).node(A.depth),i=UE(e,t.state,o);return xE(e,t.state)&&!i?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},IE=(t,e)=>{const n=Sg(t,e),A=tc(t,e);return!A||!n?!1:n>A.depth},_E=(t,e)=>{const n=Sg(t,e),A=tc(t,e);return!A||!n?!1:n<A.depth},Qg=(t,e)=>{if(!wi(t.state,e)||!xV(t.state,e))return!1;const{selection:n}=t.state,{$from:A,$to:r}=n;return!n.empty&&A.sameParent(r)?!1:IE(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():_E(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},iK=(t,e)=>{var n;const{$anchor:A}=e.selection,r=e.doc.resolve(A.pos-A.parentOffset-2);return!(r.index()===r.parent.childCount-1||((n=r.nodeAfter)==null?void 0:n.type.name)!==t)},TE=gn.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Qg(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Qg(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:A})=>{t.state.schema.nodes[n]!==void 0&&Fg(t,n,A)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:A})=>{t.state.schema.nodes[n]!==void 0&&Fg(t,n,A)&&(e=!0)}),e}}}}),sK="listItem",DE="textStyle",ME=/^(\d+)\.\s$/,OE=PA.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Jt(this.options.HTMLAttributes,n),0]:["ol",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(sK,this.editor.getAttributes(DE)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=wa({find:ME,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=wa({find:ME,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(DE)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),aK=/^\s*(\[([( |x])?\])\s$/,lK=PA.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Jt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:A})=>{const r=document.createElement("li"),o=document.createElement("label"),i=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=f=>{var h,p;a.ariaLabel=((p=(h=this.options.a11y)==null?void 0:h.checkboxLabel)==null?void 0:p.call(h,f,a.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};return u(t),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",f=>f.preventDefault()),a.addEventListener("change",f=>{if(!A.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:h}=f.target;A.isEditable&&typeof n=="function"&&A.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const g=n();if(typeof g!="number")return!1;const B=p.doc.nodeAt(g);return p.setNodeMarkup(g,void 0,{...B?.attrs,checked:h}),!0}).run(),!A.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,h)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,h])=>{r.setAttribute(f,h)}),r.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,o.append(a,i),r.append(o,l),Object.entries(e).forEach(([f,h])=>{r.setAttribute(f,h)}),{dom:r,contentDOM:l,update:f=>f.type!==this.type?!1:(r.dataset.checked=f.attrs.checked,a.checked=f.attrs.checked,u(f),!0)}}},addInputRules(){return[wa({find:aK,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),cK=PA.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Jt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});gn.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(SE.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(FE.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(TE.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(OE.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(lK.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(cK.configure(this.options.taskList)),t}});var uK=PA.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),dK=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,fK=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,hK=Ci.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ys({find:dK,type:this.type})]},addPasteRules(){return[bi({find:fK,type:this.type})]}}),pK=PA.create({name:"text",group:"inline"}),mK=Ci.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function gK(t={}){return new sn({view(e){return new BK(e,t)}})}class BK{constructor(e,n){var A;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(A=n.width)!==null&&A!==void 0?A:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let o=i=>{this[r](i)};return e.dom.addEventListener(r,o),{name:r,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,A,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,a=o.height/r.offsetHeight;if(n){let h=e.nodeBefore,p=e.nodeAfter;if(h||p){let g=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(g){let B=g.getBoundingClientRect(),y=h?B.bottom:B.top;h&&p&&(y=(y+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let C=this.width/2*a;A={left:B.left,right:B.right,top:y-C,bottom:y+C}}}}if(!A){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*i;A={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,f;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,f=-pageYOffset;else{let h=l.getBoundingClientRect(),p=h.width/l.offsetWidth,g=h.height/l.offsetHeight;u=h.left-l.scrollLeft*p,f=h.top-l.scrollTop*g}this.element.style.left=(A.left-u)/i+"px",this.element.style.top=(A.top-f)/a+"px",this.element.style.width=(A.right-A.left)/i+"px",this.element.style.height=(A.bottom-A.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),A=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=A&&A.type.spec.disableDropCursor,o=typeof r=="function"?r(this.editorView,n,e):r;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Nb(this.editorView.state.doc,i,this.editorView.dragging.slice);a!=null&&(i=a)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ln extends it{constructor(e){super(e,e)}map(e,n){let A=e.resolve(n.map(this.head));return ln.valid(A)?new ln(A):it.near(A)}content(){return Ne.empty}eq(e){return e instanceof ln&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ln(e.resolve(n.pos))}getBookmark(){return new xg(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!yK(e)||!wK(e))return!1;let A=n.type.spec.allowGapCursor;if(A!=null)return A;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,A=!1){e:for(;;){if(!A&&ln.valid(e))return e;let r=e.pos,o=null;for(let i=e.depth;;i--){let a=e.node(i);if(n>0?e.indexAfter(i)<a.childCount:e.index(i)>0){o=a.child(n>0?e.indexAfter(i):e.index(i)-1);break}else if(i==0)return null;r+=n;let l=e.doc.resolve(r);if(ln.valid(l))return l}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!We.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),A=!1;continue e}break}o=i,r+=n;let a=e.doc.resolve(r);if(ln.valid(a))return a}return null}}}ln.prototype.visible=!1,ln.findFrom=ln.findGapCursorFrom,it.jsonID("gapcursor",ln);class xg{constructor(e){this.pos=e}map(e){return new xg(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ln.valid(n)?new ln(n):it.near(n)}}function yK(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),A=t.node(e);if(n==0){if(A.type.spec.isolating)return!0;continue}for(let r=A.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function wK(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),A=t.node(e);if(n==A.childCount){if(A.type.spec.isolating)return!0;continue}for(let r=A.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function CK(){return new sn({props:{decorations:kK,createSelectionBetween(t,e,n){return e.pos==n.pos&&ln.valid(n)?new ln(n):null},handleClick:vK,handleKeyDown:bK,handleDOMEvents:{beforeinput:EK}}})}const bK=uv({ArrowLeft:Dd("horiz",-1),ArrowRight:Dd("horiz",1),ArrowUp:Dd("vert",-1),ArrowDown:Dd("vert",1)});function Dd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(A,r,o){let i=A.selection,a=e>0?i.$to:i.$from,l=i.empty;if(i instanceof nt){if(!o.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=A.doc.resolve(e>0?a.after():a.before())}let u=ln.findGapCursorFrom(a,e,l);return u?(r&&r(A.tr.setSelection(new ln(u))),!0):!1}}function vK(t,e,n){if(!t||!t.editable)return!1;let A=t.state.doc.resolve(e);if(!ln.valid(A))return!1;let r=t.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&We.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ln(A))),!0)}function EK(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ln))return!1;let{$from:n}=t.state.selection,A=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!A)return!1;let r=Qe.empty;for(let i=A.length-1;i>=0;i--)r=Qe.from(A[i].createAndFill(null,r));let o=t.state.tr.replace(n.pos,n.pos,new Ne(r,0,0));return o.setSelection(nt.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function kK(t){if(!(t.selection instanceof ln))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",tn.create(t.doc,[hA.widget(t.selection.head,e,{key:"gapcursor"})])}var Md=200,Pn=function(){};Pn.prototype.append=function(e){return e.length?(e=Pn.from(e),!this.length&&e||e.length<Md&&this.leafAppend(e)||this.length<Md&&e.leafPrepend(this)||this.appendInner(e)):this},Pn.prototype.prepend=function(e){return e.length?Pn.from(e).append(this):this},Pn.prototype.appendInner=function(e){return new SK(this,e)},Pn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Pn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Pn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Pn.prototype.forEach=function(e,n,A){n===void 0&&(n=0),A===void 0&&(A=this.length),n<=A?this.forEachInner(e,n,A,0):this.forEachInvertedInner(e,n,A,0)},Pn.prototype.map=function(e,n,A){n===void 0&&(n=0),A===void 0&&(A=this.length);var r=[];return this.forEach(function(o,i){return r.push(e(o,i))},n,A),r},Pn.from=function(e){return e instanceof Pn?e:e&&e.length?new LE(e):Pn.empty};var LE=(function(t){function e(A){t.call(this),this.values=A}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,o){return r==0&&o==this.length?this:new e(this.values.slice(r,o))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,o,i,a){for(var l=o;l<i;l++)if(r(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,a){for(var l=o-1;l>=i;l--)if(r(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=Md)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=Md)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Pn);Pn.empty=new LE([]);var SK=(function(t){function e(n,A){t.call(this),this.left=n,this.right=A,this.length=n.length+A.length,this.depth=Math.max(n.depth,A.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(A){return A<this.left.length?this.left.get(A):this.right.get(A-this.left.length)},e.prototype.forEachInner=function(A,r,o,i){var a=this.left.length;if(r<a&&this.left.forEachInner(A,r,Math.min(o,a),i)===!1||o>a&&this.right.forEachInner(A,Math.max(r-a,0),Math.min(this.length,o)-a,i+a)===!1)return!1},e.prototype.forEachInvertedInner=function(A,r,o,i){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(A,r-a,Math.max(o,a)-a,i+a)===!1||o<a&&this.left.forEachInvertedInner(A,Math.min(r,a),o,i)===!1)return!1},e.prototype.sliceInner=function(A,r){if(A==0&&r==this.length)return this;var o=this.left.length;return r<=o?this.left.slice(A,r):A>=o?this.right.slice(A-o,r-o):this.left.slice(A,o).append(this.right.slice(0,r-o))},e.prototype.leafAppend=function(A){var r=this.right.leafAppend(A);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(A){var r=this.left.leafPrepend(A);if(r)return new e(r,this.right)},e.prototype.appendInner=function(A){return this.left.depth>=Math.max(this.right.depth,A.depth)+1?new e(this.left,new e(this.right,A)):new e(this,A)},e})(Pn);const FK=500;class Ir{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let A=this.items.length;for(;;A--)if(this.items.get(A-1).selection){--A;break}let r,o;n&&(r=this.remapping(A,this.items.length),o=r.maps.length);let i=e.tr,a,l,u=[],f=[];return this.items.forEach((h,p)=>{if(!h.step){r||(r=this.remapping(A,p+1),o=r.maps.length),o--,f.push(h);return}if(r){f.push(new no(h.map));let g=h.step.map(r.slice(o)),B;g&&i.maybeStep(g).doc&&(B=i.mapping.maps[i.mapping.maps.length-1],u.push(new no(B,void 0,void 0,u.length+f.length))),o--,B&&r.appendMap(B,o)}else i.maybeStep(h.step);if(h.selection)return a=r?h.selection.map(r.slice(o)):h.selection,l=new Ir(this.items.slice(0,A).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:i,selection:a}}addTransform(e,n,A,r){let o=[],i=this.eventCount,a=this.items,l=!r&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let h=e.steps[f].invert(e.docs[f]),p=new no(e.mapping.maps[f],h,n),g;(g=l&&l.merge(p))&&(p=g,f?o.pop():a=a.slice(0,a.length-1)),o.push(p),n&&(i++,n=void 0),r||(l=p)}let u=i-A.depth;return u>xK&&(a=QK(a,u),i-=u),new Ir(a.append(o),i)}remapping(e,n){let A=new xl;return this.items.forEach((r,o)=>{let i=r.mirrorOffset!=null&&o-r.mirrorOffset>=e?A.maps.length-r.mirrorOffset:void 0;A.appendMap(r.map,i)},e,n),A}addMaps(e){return this.eventCount==0?this:new Ir(this.items.append(e.map(n=>new no(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let A=[],r=Math.max(0,this.items.length-n),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(p=>{p.selection&&a--},r);let l=n;this.items.forEach(p=>{let g=o.getMirror(--l);if(g==null)return;i=Math.min(i,g);let B=o.maps[g];if(p.step){let y=e.steps[g].invert(e.docs[g]),C=p.selection&&p.selection.map(o.slice(l+1,g));C&&a++,A.push(new no(B,y,C))}else A.push(new no(B))},r);let u=[];for(let p=n;p<i;p++)u.push(new no(o.maps[p]));let f=this.items.slice(0,r).append(u).append(A),h=new Ir(f,a);return h.emptyItemCount()>FK&&(h=h.compress(this.items.length-A.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),A=n.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let l=i.step.map(n.slice(A)),u=l&&l.getMap();if(A--,u&&n.appendMap(u,A),l){let f=i.selection&&i.selection.map(n.slice(A));f&&o++;let h=new no(u.invert(),l,f),p,g=r.length-1;(p=r.length&&r[g].merge(h))?r[g]=p:r.push(h)}}else i.map&&A--},this.items.length,0),new Ir(Pn.from(r.reverse()),o)}}Ir.empty=new Ir(Pn.empty,0);function QK(t,e){let n;return t.forEach((A,r)=>{if(A.selection&&e--==0)return n=r,!1}),t.slice(n)}class no{constructor(e,n,A,r){this.map=e,this.step=n,this.selection=A,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new no(n.getMap().invert(),n,this.selection)}}}class Si{constructor(e,n,A,r,o){this.done=e,this.undone=n,this.prevRanges=A,this.prevTime=r,this.prevComposition=o}}const xK=20;function UK(t,e,n,A){let r=n.getMeta(bs),o;if(r)return r.historyState;n.getMeta(TK)&&(t=new Si(t.done,t.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(i&&i.getMeta(bs))return i.getMeta(bs).redo?new Si(t.done.addTransform(n,void 0,A,Od(e)),t.undone,NE(n.mapping.maps),t.prevTime,t.prevComposition):new Si(t.done,t.undone.addTransform(n,void 0,A,Od(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!i&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-A.newGroupDelay||!IK(n,t.prevRanges)),u=i?Ug(t.prevRanges,n.mapping):NE(n.mapping.maps);return new Si(t.done.addTransform(n,l?e.selection.getBookmark():void 0,A,Od(e)),Ir.empty,u,n.time,a??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Si(t.done.rebased(n,o),t.undone.rebased(n,o),Ug(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Si(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ug(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function IK(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((A,r)=>{for(let o=0;o<e.length;o+=2)A<=e[o+1]&&r>=e[o]&&(n=!0)}),n}function NE(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((A,r,o,i)=>e.push(o,i));return e}function Ug(t,e){if(!t)return null;let n=[];for(let A=0;A<t.length;A+=2){let r=e.map(t[A],1),o=e.map(t[A+1],-1);r<=o&&n.push(r,o)}return n}function _K(t,e,n){let A=Od(e),r=bs.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,A);if(!o)return null;let i=o.selection.resolve(o.transform.doc),a=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),r,A),l=new Si(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(i).setMeta(bs,{redo:n,historyState:l})}let Ig=!1,HE=null;function Od(t){let e=t.plugins;if(HE!=e){Ig=!1,HE=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ig=!0;break}}return Ig}const bs=new Hn("history"),TK=new Hn("closeHistory");function DK(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new sn({key:bs,state:{init(){return new Si(Ir.empty,Ir.empty,null,0,-1)},apply(e,n,A){return UK(n,A,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let A=n.inputType,r=A=="historyUndo"?RE:A=="historyRedo"?VE:null;return r?(n.preventDefault(),r(e.state,e.dispatch)):!1}}}})}function PE(t,e){return(n,A)=>{let r=bs.getState(n);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(A){let o=_K(r,n,t);o&&A(e?o.scrollIntoView():o)}return!0}}const RE=PE(!1,!0),VE=PE(!0,!0);gn.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const A=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(A)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new sn({key:new Hn("characterCount"),appendTransaction:(e,n,A)=>{if(t)return;const r=this.options.limit;if(r==null||r===0){t=!0;return}const o=this.storage.characters({node:A.doc});if(o>r){const i=o-r,a=0,l=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const u=A.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const A=this.options.limit;if(!e.docChanged||A===0||A===null||A===void 0)return!0;const r=this.storage.characters({node:n.doc}),o=this.storage.characters({node:e.doc});if(o<=A||r>A&&o>A&&o<=r)return!0;if(r>A&&o>A&&o>r||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=o-A,u=a-l,f=a;return e.deleteRange(u,f),!(this.storage.characters({node:e.doc})>A)}})]}});var MK=gn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[gK(this.options)]}});gn.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new sn({key:new Hn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:A}=this.editor,{anchor:r}=e,o=[];if(!n||!A)return tn.create(t,[]);let i=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(r>=u&&r<=u+l.nodeSize-1))return!1;i+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(r>=u&&r<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&i-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";o.push(hA.node(u,u+l.nodeSize,{class:this.options.className}))}),tn.create(t,o)}}})]}});var OK=gn.create({name:"gapCursor",addProseMirrorPlugins(){return[CK()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=_t(ze(t,"allowGapCursor",n)))!=null?e:null}}});gn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new sn({key:new Hn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:A}=e,r=[];if(!n)return null;const o=this.editor.isEmpty;return t.descendants((i,a)=>{const l=A>=a&&A<=a+i.nodeSize,u=!i.isLeaf&&ju(i);if((l||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];o&&f.push(this.options.emptyEditorClass);const h=hA.node(a,a+i.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:a,hasAnchor:l}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),tn.create(t,r)}}})]}}),gn.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new sn({key:new Hn("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||Vv(n.selection)||t.view.dragging?null:tn.create(n.doc,[hA.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function $E({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var LK=gn.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const t=new Hn(this.name),e=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>(this.options.notAfter||[]).concat(this.options.node).includes(n.name));return[new sn({key:t,appendTransaction:(n,A,r)=>{const{doc:o,tr:i,schema:a}=r,l=t.getState(r),u=o.content.size,f=a.nodes[this.options.node];if(l)return i.insert(u,f.create())},state:{init:(n,A)=>{const r=A.tr.doc.lastChild;return!$E({node:r,types:e})},apply:(n,A)=>{if(!n.docChanged)return A;const r=n.doc.lastChild;return!$E({node:r,types:e})}}})]}}),NK=gn.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>RE(t,e),redo:()=>({state:t,dispatch:e})=>VE(t,e)}},addProseMirrorPlugins(){return[DK(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),HK=gn.create({name:"starterKit",addExtensions(){var t,e,n,A;const r=[];return this.options.bold!==!1&&r.push(vE.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(M$.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(SE.configure(this.options.bulletList)),this.options.code!==!1&&r.push($$.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(W$.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(G$.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(MK.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push(OK.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(Y$.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(j$.configure(this.options.heading)),this.options.undoRedo!==!1&&r.push(NK.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&r.push(q$.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push(tK.configure(this.options.italic)),this.options.listItem!==!1&&r.push(FE.configure(this.options.listItem)),this.options.listKeymap!==!1&&r.push(TE.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&r.push(bE.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&r.push(OE.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(uK.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(hK.configure(this.options.strike)),this.options.text!==!1&&r.push(pK.configure(this.options.text)),this.options.underline!==!1&&r.push(mK.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&r.push(LK.configure((A=this.options)==null?void 0:A.trailingNode)),r}}),PK=HK;function KE(t){return s.customRef((e,n)=>({get(){return e(),t},set(A){t=A,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var RK=class extends Z3{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=KE(this.view.state),this.reactiveExtensionStorage=KE(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},VK=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=s.ref(),n=s.getCurrentInstance();return s.watchEffect(()=>{const A=t.editor;A&&A.options.element&&e.value&&s.nextTick(()=>{var r;if(!e.value||!((r=A.options.element)!=null&&r.firstChild))return;const o=s.unref(e.value);e.value.append(...A.options.element.childNodes),A.contentComponent=n.ctx._,n&&(A.appContext={...n.appContext,provides:n.provides}),A.setOptions({element:o}),A.createNodeViews()})}),s.onBeforeUnmount(()=>{const A=t.editor;A&&(A.contentComponent=null,A.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:t=>{this.rootEl=t}})}});s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var $K=(t={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new RK(t)}),s.onBeforeUnmount(()=>{var n,A,r;const o=(n=e.value)==null?void 0:n.options.element,i=o?.cloneNode(!0);(A=o?.parentNode)==null||A.replaceChild(i,o),(r=e.value)==null||r.destroy()}),e};s.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return s.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});const KK={class:"rte-editor"},zK={key:0,class:"rte-editor__controls mb-2"},WK=["disabled"],GK=["disabled"],YK={class:"btn-group"},jK=["disabled"],qK=["disabled"],JK={class:"btn-group"},XK={class:"dropdown"},ZK={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},e5={class:"dropdown-menu"},t5={class:"dropdown"},n5={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},A5={class:"dropdown-menu"},r5={class:"btn-group"},o5=["disabled"],i5=["disabled"],s5=s.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},iconBasePath:{type:String,default:"/rte-icons-defs.svg"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(!1),o=$K({content:n.modelValue,onUpdate:()=>{A("update:modelValue",o.value?.getHTML())},extensions:[PK.configure({bold:!1}),P$.extend({addAttributes(){return{class:{default:null}}},parseHTML(){return[{tag:"strong"},{tag:"b"}]},renderHTML({HTMLAttributes:u}){return["strong",Jt(this.options.HTMLAttributes,u),0]}}),a$.configure({types:["heading","paragraph"]}),i$,T$.extend({addAttributes(){return{...this.parent?.(),class:{default:null},id:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:u=>({href:u.getAttribute("href"),target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})},{tag:"a:not([href])",getAttrs:u=>({href:null,target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})}]},renderHTML({HTMLAttributes:u}){if(!u.href){const{href:f,target:h,rel:p,...g}=u;return["a",Jt(g),0]}return["a",Jt(this.options.HTMLAttributes,u),0]}}).configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["http","https"],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})]});s.watch(()=>n.modelValue,(u,f)=>{if(o.value){if(o.value.getHTML()===u)return;o.value.commands.setContent(u)}});function i(){const u=o.value?.getAttributes("link").href,f=window.prompt("URL",u);if(f!==null){if(f===""){o.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}try{o.value?.chain().focus().extendMarkRange("link").setLink({href:f}).run()}catch(h){alert(h.message)}}}const a=()=>{o.value?.commands.setContent(`<textarea>${o.value.getHTML()}</textarea>`),r.value=!0},l=()=>{o.value?.commands.setContent(o.value.getText()),r.value=!1};return(u,f)=>{const h=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",KK,[s.unref(o)?(s.openBlock(),s.createElementBlock("div",zK,[r.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"btn btn-sm btn-light is-active",onClick:l,disabled:!s.unref(o).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],8,GK)):(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("code")}]),onClick:a,disabled:!s.unref(o).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],10,WK)),s.createElementVNode("div",YK,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("bold")}]),onClick:f[0]||(f[0]=p=>s.unref(o)?.chain().focus().toggleBold().run()),disabled:!s.unref(o).can().chain().focus().toggleBold().run(),title:"Toggle Bold"},[s.createVNode(h,{symbol:"bold","base-path":t.iconBasePath},null,8,["base-path"])],10,jK),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("italic")}]),onClick:f[1]||(f[1]=p=>s.unref(o)?.chain().focus().toggleItalic().run()),disabled:!s.unref(o).can().chain().focus().toggleItalic().run(),title:"Toggle Italic"},[s.createVNode(h,{symbol:"italic","base-path":t.iconBasePath},null,8,["base-path"])],10,qK)]),s.createElementVNode("div",JK,[s.createElementVNode("div",XK,[s.createElementVNode("button",ZK,[s.unref(o).isActive("heading",{level:1})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive("heading",{level:2})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive("heading",{level:3})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive("heading",{level:4})?(s.openBlock(),s.createBlock(h,{key:3,symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:4,symbol:"headline","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",e5,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:1})}]),onClick:f[2]||(f[2]=p=>s.unref(o)?.chain().focus().setHeading({level:1}).run()),title:"Set Heading 1"},[s.createVNode(h,{symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:2})}]),onClick:f[3]||(f[3]=p=>s.unref(o)?.chain().focus().setHeading({level:2}).run()),title:"Set Heading 2"},[s.createVNode(h,{symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:3})}]),onClick:f[4]||(f[4]=p=>s.unref(o)?.chain().focus().setHeading({level:3}).run()),title:"Set Heading 3"},[s.createVNode(h,{symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("heading",{level:4})}]),onClick:f[5]||(f[5]=p=>s.unref(o)?.chain().focus().setHeading({level:4}).run()),title:"Set Heading 4"},[s.createVNode(h,{symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("paragraph")}]),onClick:f[6]||(f[6]=p=>s.unref(o)?.chain().focus().setParagraph().run()),title:"Set Paragraph"},[s.createVNode(h,{symbol:"paragraph","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("bulletList")}]),onClick:f[7]||(f[7]=p=>s.unref(o)?.chain().focus().toggleBulletList().run()),title:"Toggle Bullet List"},[s.createVNode(h,{symbol:"list","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("orderedList")}]),onClick:f[8]||(f[8]=p=>s.unref(o)?.chain().focus().toggleOrderedList().run()),title:"Toggle Ordered List"},[s.createVNode(h,{symbol:"ordered-list","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("div",t5,[s.createElementVNode("button",n5,[s.unref(o).isActive({textAlign:"center"})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive({textAlign:"left"})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(o).isActive({textAlign:"right"})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:3,symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",A5,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"left"})}]),onClick:f[9]||(f[9]=p=>s.unref(o)?.chain().focus().setTextAlign("left").run())},[s.createVNode(h,{symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"center"})}]),onClick:f[10]||(f[10]=p=>s.unref(o)?.chain().focus().setTextAlign("center").run())},[s.createVNode(h,{symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"right"})}]),onClick:f[11]||(f[11]=p=>s.unref(o)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive({textAlign:"pretty"})}]),onClick:f[12]||(f[12]=p=>s.unref(o)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.unref(o).isActive("link")?(s.openBlock(),s.createElementBlock("button",{key:3,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("link")}]),onClick:f[13]||(f[13]=p=>s.unref(o).chain().focus().unsetLink().run()),title:"Unset Link"},[s.createVNode(h,{symbol:"unlink","base-path":t.iconBasePath},null,8,["base-path"])],2)):(s.openBlock(),s.createElementBlock("button",{key:2,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(o).isActive("link")}]),onClick:i,title:"Set Link"},[s.createVNode(h,{symbol:"link","base-path":t.iconBasePath},null,8,["base-path"])],2)),s.createElementVNode("div",r5,[s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:f[14]||(f[14]=p=>s.unref(o)?.chain().focus().undo().run()),disabled:!s.unref(o).can().chain().focus().undo().run(),title:"Undo"},[s.createVNode(h,{symbol:"undo","base-path":t.iconBasePath},null,8,["base-path"])],8,o5),s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:f[15]||(f[15]=p=>s.unref(o)?.chain().focus().redo().run()),disabled:!s.unref(o).can().chain().focus().redo().run(),title:"Redo"},[s.createVNode(h,{symbol:"redo","base-path":t.iconBasePath},null,8,["base-path"])],8,i5)])])):s.createCommentVNode("",!0),s.createVNode(s.unref(VK),{class:"rte-editor__content",editor:s.unref(o)},null,8,["editor"])])}}}),a5={class:"input-color"},l5={class:"base-input__color-swatch"},c5=["name","id","disabled","read-only","required","aria-label"],u5=s.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){A("update:modelValue",o)}});return(o,i)=>{const a=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",a5,[s.createVNode(a,{modelValue:r.value,"onUpdate:modelValue":i[1]||(i[1]=l=>r.value=l),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":s.withCtx(l=>[s.createElementVNode("span",l5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=u=>r.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,c5),[[s.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),d5={class:"color-palette"},f5=["for"],h5=s.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(o){A("update:modelValue",o)}});return(o,i)=>(s.openBlock(),s.createElementBlock("div",d5,[s.createVNode(gu,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:s.normalizeStyle({backgroundColor:a.option})},null,12,f5)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),p5={class:"input input-dropdown"},m5={class:"dropdown"},g5={class:"caption"},B5=["innerHTML"],y5={class:"caption__text"},w5={class:"d-block text-truncate"},C5={class:"dropdown-menu"},b5={class:"form-check"},v5=["value","id","name","label","required","disabled"],E5=["value","id","name","label","required","disabled"],k5=["for"],S5=s.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${bt()}`},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:n}=El(),A=t,r=e,o=s.computed({get(){return A.multiple&&!A.modelValue?[]:A.modelValue},set(l){r("update:modelValue",l)}}),i=s.computed(()=>A.options&&A.options.map(l=>(l=typeof l=="string"?{text:l,value:l}:l,{...l,active:A.modelValue&&l.value&&(A.exactMatch?A.modelValue===l.value:A.multiple?A.modelValue.includes(l.value):A.modelValue===l.value)}))),a=s.computed(()=>{if(!A.modelValue)return A.placeholder||`${n("common.select")}`;if(A.multiple&&Array.isArray(A.modelValue)&&A.modelValue.length)return i.value.reduce((l,u)=>A.modelValue.includes(u.value)?`${l}${l?", ":""}${u.text}`:l,"");if(!A.multiple){const l=i.value.find(u=>u.value===A.modelValue);return l?l.text:A.placeholder||`${n("common.select")}`}return A.placeholder||`${n("common.select")}`});return(l,u)=>{const f=s.resolveComponent("base-button");return s.openBlock(),s.createElementBlock("div",p5,[s.createElementVNode("div",m5,[s.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:s.withCtx(()=>[s.createElementVNode("span",g5,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(s.openBlock(),s.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,B5)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("span",y5,[s.createElementVNode("span",w5,s.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),s.createElementVNode("ul",C5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,(h,p)=>(s.openBlock(),s.createElementBlock("li",{key:`${h.value}-${p}`},[s.createElementVNode("div",{class:s.normalizeClass(["dropdown-item",h.active&&"active"])},[s.createElementVNode("div",b5,[t.multiple?s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=g=>o.value=g),value:h.value,key:`${t.name}-${h.value}-${p}__if`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,v5)),[[s.vModelCheckbox,o.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=g=>o.value=g),value:h.value,key:`${t.name}-${h.value}-${p}__else`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,E5)),[[s.vModelRadio,o.value]]),s.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${p}`},s.toDisplayString(h.text),9,k5)])],2)]))),128))])])])}}}),F5={key:0,class:"auto-suggest__suggestions position-relative"},Q5={class:"suggestions dropdown-menu show w-100 mt-2"},x5=["onClick"],U5=["innerHTML"],I5=s.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),o=s.ref(!1),i=s.computed({get(){return n.modelValue},set(g){A("update:modelValue",g)}}),a=s.computed(()=>{const g=new RegExp(`(${i.value})`,"i");return i.value?n.options.filter(B=>g.test(B)):n.options}),l=s.computed(()=>{const g=new RegExp(`(${i.value})`,"i");return a.value.map(B=>B.replace(g,"<strong>$1</strong>"))});s.watch(()=>n.options,(g,B)=>{g.length&&(o.value=!0)},{deep:!0});function u(){n.options.length&&(o.value=!0)}function f(g){o.value=!1;const B=a.value[g];A("update:modelValue",B),A("update:selection",B)}const h=s.ref();function p(g){const B=g.target;o.value&&B&&!r.value.contains(B)&&(o.value=!1)}return s.onBeforeMount(()=>{h.value=document.addEventListener("click",p)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(g,B)=>{const y=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:r},[s.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[s.renderSlot(g.$slots,"default",{},()=>[s.createVNode(y,s.mergeProps({modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=C=>i.value=C)},g.$props),null,16,["modelValue"])])],32),o.value&&a.value.length?(s.openBlock(),s.createElementBlock("div",F5,[s.createElementVNode("ul",Q5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(C,w)=>(s.openBlock(),s.createElementBlock("li",{key:C,class:"suggestions__item dropdown-item",onClick:s.withModifiers(F=>f(w),["prevent"])},[s.createElementVNode("p",{class:"text-truncate my-2",innerHTML:C},null,8,U5)],8,x5))),128))])])):s.createCommentVNode("",!0)],512)}}});var Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nc={exports:{}};/**
118
118
  * @license
119
119
  * Lodash <https://lodash.com/>
120
120
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
121
121
  * Released under MIT license <https://lodash.com/license>
122
122
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
123
123
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
124
- */var U5=nc.exports,zE;function I5(){return zE||(zE=1,(function(t,e){(function(){var n,A="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,B=1,y=2,C=1,w=2,F=4,_=8,D=16,P=32,T=64,H=128,te=256,Z=512,ne=30,pe="...",Be=800,we=16,R=1,K=2,N=3,k=1/0,E=9007199254740991,I=17976931348623157e292,Q=NaN,v=4294967295,W=v-1,M=v>>>1,$=[["ary",H],["bind",C],["bindKey",w],["curry",_],["curryRight",D],["flip",Z],["partial",P],["partialRight",T],["rearg",te]],J="[object Arguments]",j="[object Array]",S="[object AsyncFunction]",G="[object Boolean]",ue="[object Date]",xe="[object DOMException]",Ae="[object Error]",X="[object Function]",q="[object GeneratorFunction]",z="[object Map]",U="[object Number]",re="[object Null]",de="[object Object]",L="[object Promise]",Y="[object Proxy]",ae="[object RegExp]",ye="[object Set]",Te="[object String]",ie="[object Symbol]",ge="[object Undefined]",se="[object WeakMap]",he="[object WeakSet]",Ue="[object ArrayBuffer]",ke="[object DataView]",Ye="[object Float32Array]",Ve="[object Float64Array]",Ct="[object Int8Array]",wt="[object Int16Array]",Nt="[object Int32Array]",wA="[object Uint8Array]",GA="[object Uint8ClampedArray]",Un="[object Uint16Array]",Os="[object Uint32Array]",fe=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,Ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ot=/&(?:amp|lt|gt|quot|#39);/g,ve=/[&<>"']/g,Me=RegExp(ot.source),Ke=RegExp(ve.source),Pr=/<%-([\s\S]+?)%>/g,dr=/<%([\s\S]+?)%>/g,ho=/<%=([\s\S]+?)%>/g,po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dc=/^\w*$/,ky=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sy=/[\\^$.*+?()[\]{}|]/g,Rne=RegExp(Sy.source),Fy=/^\s+/,Vne=/\s/,$ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kne=/\{\n\/\* \[wrapped with (.+)\] \*/,zne=/,? & /,Wne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gne=/[()=,{}\[\]\/\s]/,Yne=/\\(\\)?/g,jne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,YU=/\w*$/,qne=/^[-+]0x[0-9a-f]+$/i,Jne=/^0b[01]+$/i,Xne=/^\[object .+?Constructor\]$/,Zne=/^0o[0-7]+$/i,eAe=/^(?:0|[1-9]\d*)$/,tAe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rh=/($^)/,nAe=/['\n\r\u2028\u2029\\]/g,oh="\\ud800-\\udfff",AAe="\\u0300-\\u036f",rAe="\\ufe20-\\ufe2f",oAe="\\u20d0-\\u20ff",jU=AAe+rAe+oAe,qU="\\u2700-\\u27bf",JU="a-z\\xdf-\\xf6\\xf8-\\xff",iAe="\\xac\\xb1\\xd7\\xf7",sAe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",aAe="\\u2000-\\u206f",lAe=" \\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",XU="A-Z\\xc0-\\xd6\\xd8-\\xde",ZU="\\ufe0e\\ufe0f",eI=iAe+sAe+aAe+lAe,Qy="['’]",cAe="["+oh+"]",tI="["+eI+"]",ih="["+jU+"]",nI="\\d+",uAe="["+qU+"]",AI="["+JU+"]",rI="[^"+oh+eI+nI+qU+JU+XU+"]",xy="\\ud83c[\\udffb-\\udfff]",dAe="(?:"+ih+"|"+xy+")",oI="[^"+oh+"]",Uy="(?:\\ud83c[\\udde6-\\uddff]){2}",Iy="[\\ud800-\\udbff][\\udc00-\\udfff]",Wa="["+XU+"]",iI="\\u200d",sI="(?:"+AI+"|"+rI+")",fAe="(?:"+Wa+"|"+rI+")",aI="(?:"+Qy+"(?:d|ll|m|re|s|t|ve))?",lI="(?:"+Qy+"(?:D|LL|M|RE|S|T|VE))?",cI=dAe+"?",uI="["+ZU+"]?",hAe="(?:"+iI+"(?:"+[oI,Uy,Iy].join("|")+")"+uI+cI+")*",pAe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mAe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dI=uI+cI+hAe,gAe="(?:"+[uAe,Uy,Iy].join("|")+")"+dI,BAe="(?:"+[oI+ih+"?",ih,Uy,Iy,cAe].join("|")+")",yAe=RegExp(Qy,"g"),wAe=RegExp(ih,"g"),_y=RegExp(xy+"(?="+xy+")|"+BAe+dI,"g"),CAe=RegExp([Wa+"?"+AI+"+"+aI+"(?="+[tI,Wa,"$"].join("|")+")",fAe+"+"+lI+"(?="+[tI,Wa+sI,"$"].join("|")+")",Wa+"?"+sI+"+"+aI,Wa+"+"+lI,mAe,pAe,nI,gAe].join("|"),"g"),bAe=RegExp("["+iI+oh+jU+ZU+"]"),vAe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,EAe=["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"],kAe=-1,Yt={};Yt[Ye]=Yt[Ve]=Yt[Ct]=Yt[wt]=Yt[Nt]=Yt[wA]=Yt[GA]=Yt[Un]=Yt[Os]=!0,Yt[J]=Yt[j]=Yt[Ue]=Yt[G]=Yt[ke]=Yt[ue]=Yt[Ae]=Yt[X]=Yt[z]=Yt[U]=Yt[de]=Yt[ae]=Yt[ye]=Yt[Te]=Yt[se]=!1;var Vt={};Vt[J]=Vt[j]=Vt[Ue]=Vt[ke]=Vt[G]=Vt[ue]=Vt[Ye]=Vt[Ve]=Vt[Ct]=Vt[wt]=Vt[Nt]=Vt[z]=Vt[U]=Vt[de]=Vt[ae]=Vt[ye]=Vt[Te]=Vt[ie]=Vt[wA]=Vt[GA]=Vt[Un]=Vt[Os]=!0,Vt[Ae]=Vt[X]=Vt[se]=!1;var SAe={À:"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"},FAe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},QAe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xAe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UAe=parseFloat,IAe=parseInt,fI=typeof Ld=="object"&&Ld&&Ld.Object===Object&&Ld,_Ae=typeof self=="object"&&self&&self.Object===Object&&self,qn=fI||_Ae||Function("return this")(),Ty=e&&!e.nodeType&&e,Ls=Ty&&!0&&t&&!t.nodeType&&t,hI=Ls&&Ls.exports===Ty,Dy=hI&&fI.process,fr=(function(){try{var le=Ls&&Ls.require&&Ls.require("util").types;return le||Dy&&Dy.binding&&Dy.binding("util")}catch{}})(),pI=fr&&fr.isArrayBuffer,mI=fr&&fr.isDate,gI=fr&&fr.isMap,BI=fr&&fr.isRegExp,yI=fr&&fr.isSet,wI=fr&&fr.isTypedArray;function YA(le,Ce,me){switch(me.length){case 0:return le.call(Ce);case 1:return le.call(Ce,me[0]);case 2:return le.call(Ce,me[0],me[1]);case 3:return le.call(Ce,me[0],me[1],me[2])}return le.apply(Ce,me)}function TAe(le,Ce,me,Pe){for(var At=-1,Ft=le==null?0:le.length;++At<Ft;){var In=le[At];Ce(Pe,In,me(In),le)}return Pe}function hr(le,Ce){for(var me=-1,Pe=le==null?0:le.length;++me<Pe&&Ce(le[me],me,le)!==!1;);return le}function DAe(le,Ce){for(var me=le==null?0:le.length;me--&&Ce(le[me],me,le)!==!1;);return le}function CI(le,Ce){for(var me=-1,Pe=le==null?0:le.length;++me<Pe;)if(!Ce(le[me],me,le))return!1;return!0}function Ri(le,Ce){for(var me=-1,Pe=le==null?0:le.length,At=0,Ft=[];++me<Pe;){var In=le[me];Ce(In,me,le)&&(Ft[At++]=In)}return Ft}function sh(le,Ce){var me=le==null?0:le.length;return!!me&&Ga(le,Ce,0)>-1}function My(le,Ce,me){for(var Pe=-1,At=le==null?0:le.length;++Pe<At;)if(me(Ce,le[Pe]))return!0;return!1}function Zt(le,Ce){for(var me=-1,Pe=le==null?0:le.length,At=Array(Pe);++me<Pe;)At[me]=Ce(le[me],me,le);return At}function Vi(le,Ce){for(var me=-1,Pe=Ce.length,At=le.length;++me<Pe;)le[At+me]=Ce[me];return le}function Oy(le,Ce,me,Pe){var At=-1,Ft=le==null?0:le.length;for(Pe&&Ft&&(me=le[++At]);++At<Ft;)me=Ce(me,le[At],At,le);return me}function MAe(le,Ce,me,Pe){var At=le==null?0:le.length;for(Pe&&At&&(me=le[--At]);At--;)me=Ce(me,le[At],At,le);return me}function Ly(le,Ce){for(var me=-1,Pe=le==null?0:le.length;++me<Pe;)if(Ce(le[me],me,le))return!0;return!1}var OAe=Ny("length");function LAe(le){return le.split("")}function NAe(le){return le.match(Wne)||[]}function bI(le,Ce,me){var Pe;return me(le,function(At,Ft,In){if(Ce(At,Ft,In))return Pe=Ft,!1}),Pe}function ah(le,Ce,me,Pe){for(var At=le.length,Ft=me+(Pe?1:-1);Pe?Ft--:++Ft<At;)if(Ce(le[Ft],Ft,le))return Ft;return-1}function Ga(le,Ce,me){return Ce===Ce?qAe(le,Ce,me):ah(le,vI,me)}function HAe(le,Ce,me,Pe){for(var At=me-1,Ft=le.length;++At<Ft;)if(Pe(le[At],Ce))return At;return-1}function vI(le){return le!==le}function EI(le,Ce){var me=le==null?0:le.length;return me?Py(le,Ce)/me:Q}function Ny(le){return function(Ce){return Ce==null?n:Ce[le]}}function Hy(le){return function(Ce){return le==null?n:le[Ce]}}function kI(le,Ce,me,Pe,At){return At(le,function(Ft,In,Pt){me=Pe?(Pe=!1,Ft):Ce(me,Ft,In,Pt)}),me}function PAe(le,Ce){var me=le.length;for(le.sort(Ce);me--;)le[me]=le[me].value;return le}function Py(le,Ce){for(var me,Pe=-1,At=le.length;++Pe<At;){var Ft=Ce(le[Pe]);Ft!==n&&(me=me===n?Ft:me+Ft)}return me}function Ry(le,Ce){for(var me=-1,Pe=Array(le);++me<le;)Pe[me]=Ce(me);return Pe}function RAe(le,Ce){return Zt(Ce,function(me){return[me,le[me]]})}function SI(le){return le&&le.slice(0,UI(le)+1).replace(Fy,"")}function jA(le){return function(Ce){return le(Ce)}}function Vy(le,Ce){return Zt(Ce,function(me){return le[me]})}function Mc(le,Ce){return le.has(Ce)}function FI(le,Ce){for(var me=-1,Pe=le.length;++me<Pe&&Ga(Ce,le[me],0)>-1;);return me}function QI(le,Ce){for(var me=le.length;me--&&Ga(Ce,le[me],0)>-1;);return me}function VAe(le,Ce){for(var me=le.length,Pe=0;me--;)le[me]===Ce&&++Pe;return Pe}var $Ae=Hy(SAe),KAe=Hy(FAe);function zAe(le){return"\\"+xAe[le]}function WAe(le,Ce){return le==null?n:le[Ce]}function Ya(le){return bAe.test(le)}function GAe(le){return vAe.test(le)}function YAe(le){for(var Ce,me=[];!(Ce=le.next()).done;)me.push(Ce.value);return me}function $y(le){var Ce=-1,me=Array(le.size);return le.forEach(function(Pe,At){me[++Ce]=[At,Pe]}),me}function xI(le,Ce){return function(me){return le(Ce(me))}}function $i(le,Ce){for(var me=-1,Pe=le.length,At=0,Ft=[];++me<Pe;){var In=le[me];(In===Ce||In===f)&&(le[me]=f,Ft[At++]=me)}return Ft}function lh(le){var Ce=-1,me=Array(le.size);return le.forEach(function(Pe){me[++Ce]=Pe}),me}function jAe(le){var Ce=-1,me=Array(le.size);return le.forEach(function(Pe){me[++Ce]=[Pe,Pe]}),me}function qAe(le,Ce,me){for(var Pe=me-1,At=le.length;++Pe<At;)if(le[Pe]===Ce)return Pe;return-1}function JAe(le,Ce,me){for(var Pe=me+1;Pe--;)if(le[Pe]===Ce)return Pe;return Pe}function ja(le){return Ya(le)?ZAe(le):OAe(le)}function Rr(le){return Ya(le)?ere(le):LAe(le)}function UI(le){for(var Ce=le.length;Ce--&&Vne.test(le.charAt(Ce)););return Ce}var XAe=Hy(QAe);function ZAe(le){for(var Ce=_y.lastIndex=0;_y.test(le);)++Ce;return Ce}function ere(le){return le.match(_y)||[]}function tre(le){return le.match(CAe)||[]}var nre=(function le(Ce){Ce=Ce==null?qn:qa.defaults(qn.Object(),Ce,qa.pick(qn,EAe));var me=Ce.Array,Pe=Ce.Date,At=Ce.Error,Ft=Ce.Function,In=Ce.Math,Pt=Ce.Object,Ky=Ce.RegExp,Are=Ce.String,pr=Ce.TypeError,ch=me.prototype,rre=Ft.prototype,Ja=Pt.prototype,uh=Ce["__core-js_shared__"],dh=rre.toString,Dt=Ja.hasOwnProperty,ore=0,II=(function(){var c=/[^.]+$/.exec(uh&&uh.keys&&uh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),fh=Ja.toString,ire=dh.call(Pt),sre=qn._,are=Ky("^"+dh.call(Dt).replace(Sy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hh=hI?Ce.Buffer:n,Ki=Ce.Symbol,ph=Ce.Uint8Array,_I=hh?hh.allocUnsafe:n,mh=xI(Pt.getPrototypeOf,Pt),TI=Pt.create,DI=Ja.propertyIsEnumerable,gh=ch.splice,MI=Ki?Ki.isConcatSpreadable:n,Oc=Ki?Ki.iterator:n,Ns=Ki?Ki.toStringTag:n,Bh=(function(){try{var c=$s(Pt,"defineProperty");return c({},"",{}),c}catch{}})(),lre=Ce.clearTimeout!==qn.clearTimeout&&Ce.clearTimeout,cre=Pe&&Pe.now!==qn.Date.now&&Pe.now,ure=Ce.setTimeout!==qn.setTimeout&&Ce.setTimeout,yh=In.ceil,wh=In.floor,zy=Pt.getOwnPropertySymbols,dre=hh?hh.isBuffer:n,OI=Ce.isFinite,fre=ch.join,hre=xI(Pt.keys,Pt),_n=In.max,iA=In.min,pre=Pe.now,mre=Ce.parseInt,LI=In.random,gre=ch.reverse,Wy=$s(Ce,"DataView"),Lc=$s(Ce,"Map"),Gy=$s(Ce,"Promise"),Xa=$s(Ce,"Set"),Nc=$s(Ce,"WeakMap"),Hc=$s(Pt,"create"),Ch=Nc&&new Nc,Za={},Bre=Ks(Wy),yre=Ks(Lc),wre=Ks(Gy),Cre=Ks(Xa),bre=Ks(Nc),bh=Ki?Ki.prototype:n,Pc=bh?bh.valueOf:n,NI=bh?bh.toString:n;function O(c){if(cn(c)&&!rt(c)&&!(c instanceof gt)){if(c instanceof mr)return c;if(Dt.call(c,"__wrapped__"))return H_(c)}return new mr(c)}var el=(function(){function c(){}return function(d){if(!An(d))return{};if(TI)return TI(d);c.prototype=d;var m=new c;return c.prototype=n,m}})();function vh(){}function mr(c,d){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}O.templateSettings={escape:Pr,evaluate:dr,interpolate:ho,variable:"",imports:{_:O}},O.prototype=vh.prototype,O.prototype.constructor=O,mr.prototype=el(vh.prototype),mr.prototype.constructor=mr;function gt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function vre(){var c=new gt(this.__wrapped__);return c.__actions__=_A(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=_A(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=_A(this.__views__),c}function Ere(){if(this.__filtered__){var c=new gt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function kre(){var c=this.__wrapped__.value(),d=this.__dir__,m=rt(c),b=d<0,x=m?c.length:0,V=Loe(0,x,this.__views__),ee=V.start,oe=V.end,ce=oe-ee,be=b?oe:ee-1,Ee=this.__iteratees__,Se=Ee.length,De=0,$e=iA(ce,this.__takeCount__);if(!m||!b&&x==ce&&$e==ce)return a_(c,this.__actions__);var Je=[];e:for(;ce--&&De<$e;){be+=d;for(var ct=-1,Xe=c[be];++ct<Se;){var ft=Ee[ct],yt=ft.iteratee,XA=ft.type,vA=yt(Xe);if(XA==K)Xe=vA;else if(!vA){if(XA==R)continue e;break e}}Je[De++]=Xe}return Je}gt.prototype=el(vh.prototype),gt.prototype.constructor=gt;function Hs(c){var d=-1,m=c==null?0:c.length;for(this.clear();++d<m;){var b=c[d];this.set(b[0],b[1])}}function Sre(){this.__data__=Hc?Hc(null):{},this.size=0}function Fre(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function Qre(c){var d=this.__data__;if(Hc){var m=d[c];return m===l?n:m}return Dt.call(d,c)?d[c]:n}function xre(c){var d=this.__data__;return Hc?d[c]!==n:Dt.call(d,c)}function Ure(c,d){var m=this.__data__;return this.size+=this.has(c)?0:1,m[c]=Hc&&d===n?l:d,this}Hs.prototype.clear=Sre,Hs.prototype.delete=Fre,Hs.prototype.get=Qre,Hs.prototype.has=xre,Hs.prototype.set=Ure;function Po(c){var d=-1,m=c==null?0:c.length;for(this.clear();++d<m;){var b=c[d];this.set(b[0],b[1])}}function Ire(){this.__data__=[],this.size=0}function _re(c){var d=this.__data__,m=Eh(d,c);if(m<0)return!1;var b=d.length-1;return m==b?d.pop():gh.call(d,m,1),--this.size,!0}function Tre(c){var d=this.__data__,m=Eh(d,c);return m<0?n:d[m][1]}function Dre(c){return Eh(this.__data__,c)>-1}function Mre(c,d){var m=this.__data__,b=Eh(m,c);return b<0?(++this.size,m.push([c,d])):m[b][1]=d,this}Po.prototype.clear=Ire,Po.prototype.delete=_re,Po.prototype.get=Tre,Po.prototype.has=Dre,Po.prototype.set=Mre;function Ro(c){var d=-1,m=c==null?0:c.length;for(this.clear();++d<m;){var b=c[d];this.set(b[0],b[1])}}function Ore(){this.size=0,this.__data__={hash:new Hs,map:new(Lc||Po),string:new Hs}}function Lre(c){var d=Oh(this,c).delete(c);return this.size-=d?1:0,d}function Nre(c){return Oh(this,c).get(c)}function Hre(c){return Oh(this,c).has(c)}function Pre(c,d){var m=Oh(this,c),b=m.size;return m.set(c,d),this.size+=m.size==b?0:1,this}Ro.prototype.clear=Ore,Ro.prototype.delete=Lre,Ro.prototype.get=Nre,Ro.prototype.has=Hre,Ro.prototype.set=Pre;function Ps(c){var d=-1,m=c==null?0:c.length;for(this.__data__=new Ro;++d<m;)this.add(c[d])}function Rre(c){return this.__data__.set(c,l),this}function Vre(c){return this.__data__.has(c)}Ps.prototype.add=Ps.prototype.push=Rre,Ps.prototype.has=Vre;function Vr(c){var d=this.__data__=new Po(c);this.size=d.size}function $re(){this.__data__=new Po,this.size=0}function Kre(c){var d=this.__data__,m=d.delete(c);return this.size=d.size,m}function zre(c){return this.__data__.get(c)}function Wre(c){return this.__data__.has(c)}function Gre(c,d){var m=this.__data__;if(m instanceof Po){var b=m.__data__;if(!Lc||b.length<r-1)return b.push([c,d]),this.size=++m.size,this;m=this.__data__=new Ro(b)}return m.set(c,d),this.size=m.size,this}Vr.prototype.clear=$re,Vr.prototype.delete=Kre,Vr.prototype.get=zre,Vr.prototype.has=Wre,Vr.prototype.set=Gre;function HI(c,d){var m=rt(c),b=!m&&zs(c),x=!m&&!b&&ji(c),V=!m&&!b&&!x&&rl(c),ee=m||b||x||V,oe=ee?Ry(c.length,Are):[],ce=oe.length;for(var be in c)(d||Dt.call(c,be))&&!(ee&&(be=="length"||x&&(be=="offset"||be=="parent")||V&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||zo(be,ce)))&&oe.push(be);return oe}function PI(c){var d=c.length;return d?c[r0(0,d-1)]:n}function Yre(c,d){return Lh(_A(c),Rs(d,0,c.length))}function jre(c){return Lh(_A(c))}function Yy(c,d,m){(m!==n&&!$r(c[d],m)||m===n&&!(d in c))&&Vo(c,d,m)}function Rc(c,d,m){var b=c[d];(!(Dt.call(c,d)&&$r(b,m))||m===n&&!(d in c))&&Vo(c,d,m)}function Eh(c,d){for(var m=c.length;m--;)if($r(c[m][0],d))return m;return-1}function qre(c,d,m,b){return zi(c,function(x,V,ee){d(b,x,m(x),ee)}),b}function RI(c,d){return c&&go(d,$n(d),c)}function Jre(c,d){return c&&go(d,DA(d),c)}function Vo(c,d,m){d=="__proto__"&&Bh?Bh(c,d,{configurable:!0,enumerable:!0,value:m,writable:!0}):c[d]=m}function jy(c,d){for(var m=-1,b=d.length,x=me(b),V=c==null;++m<b;)x[m]=V?n:x0(c,d[m]);return x}function Rs(c,d,m){return c===c&&(m!==n&&(c=c<=m?c:m),d!==n&&(c=c>=d?c:d)),c}function gr(c,d,m,b,x,V){var ee,oe=d&h,ce=d&p,be=d&g;if(m&&(ee=x?m(c,b,x,V):m(c)),ee!==n)return ee;if(!An(c))return c;var Ee=rt(c);if(Ee){if(ee=Hoe(c),!oe)return _A(c,ee)}else{var Se=sA(c),De=Se==X||Se==q;if(ji(c))return u_(c,oe);if(Se==de||Se==J||De&&!x){if(ee=ce||De?{}:U_(c),!oe)return ce?Qoe(c,Jre(ee,c)):Foe(c,RI(ee,c))}else{if(!Vt[Se])return x?c:{};ee=Poe(c,Se,oe)}}V||(V=new Vr);var $e=V.get(c);if($e)return $e;V.set(c,ee),oT(c)?c.forEach(function(Xe){ee.add(gr(Xe,d,m,Xe,c,V))}):AT(c)&&c.forEach(function(Xe,ft){ee.set(ft,gr(Xe,d,m,ft,c,V))});var Je=be?ce?p0:h0:ce?DA:$n,ct=Ee?n:Je(c);return hr(ct||c,function(Xe,ft){ct&&(ft=Xe,Xe=c[ft]),Rc(ee,ft,gr(Xe,d,m,ft,c,V))}),ee}function Xre(c){var d=$n(c);return function(m){return VI(m,c,d)}}function VI(c,d,m){var b=m.length;if(c==null)return!b;for(c=Pt(c);b--;){var x=m[b],V=d[x],ee=c[x];if(ee===n&&!(x in c)||!V(ee))return!1}return!0}function $I(c,d,m){if(typeof c!="function")throw new pr(i);return Yc(function(){c.apply(n,m)},d)}function Vc(c,d,m,b){var x=-1,V=sh,ee=!0,oe=c.length,ce=[],be=d.length;if(!oe)return ce;m&&(d=Zt(d,jA(m))),b?(V=My,ee=!1):d.length>=r&&(V=Mc,ee=!1,d=new Ps(d));e:for(;++x<oe;){var Ee=c[x],Se=m==null?Ee:m(Ee);if(Ee=b||Ee!==0?Ee:0,ee&&Se===Se){for(var De=be;De--;)if(d[De]===Se)continue e;ce.push(Ee)}else V(d,Se,b)||ce.push(Ee)}return ce}var zi=m_(mo),KI=m_(Jy,!0);function Zre(c,d){var m=!0;return zi(c,function(b,x,V){return m=!!d(b,x,V),m}),m}function kh(c,d,m){for(var b=-1,x=c.length;++b<x;){var V=c[b],ee=d(V);if(ee!=null&&(oe===n?ee===ee&&!JA(ee):m(ee,oe)))var oe=ee,ce=V}return ce}function eoe(c,d,m,b){var x=c.length;for(m=at(m),m<0&&(m=-m>x?0:x+m),b=b===n||b>x?x:at(b),b<0&&(b+=x),b=m>b?0:sT(b);m<b;)c[m++]=d;return c}function zI(c,d){var m=[];return zi(c,function(b,x,V){d(b,x,V)&&m.push(b)}),m}function Jn(c,d,m,b,x){var V=-1,ee=c.length;for(m||(m=Voe),x||(x=[]);++V<ee;){var oe=c[V];d>0&&m(oe)?d>1?Jn(oe,d-1,m,b,x):Vi(x,oe):b||(x[x.length]=oe)}return x}var qy=g_(),WI=g_(!0);function mo(c,d){return c&&qy(c,d,$n)}function Jy(c,d){return c&&WI(c,d,$n)}function Sh(c,d){return Ri(d,function(m){return Wo(c[m])})}function Vs(c,d){d=Gi(d,c);for(var m=0,b=d.length;c!=null&&m<b;)c=c[Bo(d[m++])];return m&&m==b?c:n}function GI(c,d,m){var b=d(c);return rt(c)?b:Vi(b,m(c))}function CA(c){return c==null?c===n?ge:re:Ns&&Ns in Pt(c)?Ooe(c):joe(c)}function Xy(c,d){return c>d}function toe(c,d){return c!=null&&Dt.call(c,d)}function noe(c,d){return c!=null&&d in Pt(c)}function Aoe(c,d,m){return c>=iA(d,m)&&c<_n(d,m)}function Zy(c,d,m){for(var b=m?My:sh,x=c[0].length,V=c.length,ee=V,oe=me(V),ce=1/0,be=[];ee--;){var Ee=c[ee];ee&&d&&(Ee=Zt(Ee,jA(d))),ce=iA(Ee.length,ce),oe[ee]=!m&&(d||x>=120&&Ee.length>=120)?new Ps(ee&&Ee):n}Ee=c[0];var Se=-1,De=oe[0];e:for(;++Se<x&&be.length<ce;){var $e=Ee[Se],Je=d?d($e):$e;if($e=m||$e!==0?$e:0,!(De?Mc(De,Je):b(be,Je,m))){for(ee=V;--ee;){var ct=oe[ee];if(!(ct?Mc(ct,Je):b(c[ee],Je,m)))continue e}De&&De.push(Je),be.push($e)}}return be}function roe(c,d,m,b){return mo(c,function(x,V,ee){d(b,m(x),V,ee)}),b}function $c(c,d,m){d=Gi(d,c),c=D_(c,d);var b=c==null?c:c[Bo(yr(d))];return b==null?n:YA(b,c,m)}function YI(c){return cn(c)&&CA(c)==J}function ooe(c){return cn(c)&&CA(c)==Ue}function ioe(c){return cn(c)&&CA(c)==ue}function Kc(c,d,m,b,x){return c===d?!0:c==null||d==null||!cn(c)&&!cn(d)?c!==c&&d!==d:soe(c,d,m,b,Kc,x)}function soe(c,d,m,b,x,V){var ee=rt(c),oe=rt(d),ce=ee?j:sA(c),be=oe?j:sA(d);ce=ce==J?de:ce,be=be==J?de:be;var Ee=ce==de,Se=be==de,De=ce==be;if(De&&ji(c)){if(!ji(d))return!1;ee=!0,Ee=!1}if(De&&!Ee)return V||(V=new Vr),ee||rl(c)?F_(c,d,m,b,x,V):Doe(c,d,ce,m,b,x,V);if(!(m&B)){var $e=Ee&&Dt.call(c,"__wrapped__"),Je=Se&&Dt.call(d,"__wrapped__");if($e||Je){var ct=$e?c.value():c,Xe=Je?d.value():d;return V||(V=new Vr),x(ct,Xe,m,b,V)}}return De?(V||(V=new Vr),Moe(c,d,m,b,x,V)):!1}function aoe(c){return cn(c)&&sA(c)==z}function e0(c,d,m,b){var x=m.length,V=x,ee=!b;if(c==null)return!V;for(c=Pt(c);x--;){var oe=m[x];if(ee&&oe[2]?oe[1]!==c[oe[0]]:!(oe[0]in c))return!1}for(;++x<V;){oe=m[x];var ce=oe[0],be=c[ce],Ee=oe[1];if(ee&&oe[2]){if(be===n&&!(ce in c))return!1}else{var Se=new Vr;if(b)var De=b(be,Ee,ce,c,d,Se);if(!(De===n?Kc(Ee,be,B|y,b,Se):De))return!1}}return!0}function jI(c){if(!An(c)||Koe(c))return!1;var d=Wo(c)?are:Xne;return d.test(Ks(c))}function loe(c){return cn(c)&&CA(c)==ae}function coe(c){return cn(c)&&sA(c)==ye}function uoe(c){return cn(c)&&$h(c.length)&&!!Yt[CA(c)]}function qI(c){return typeof c=="function"?c:c==null?MA:typeof c=="object"?rt(c)?ZI(c[0],c[1]):XI(c):BT(c)}function t0(c){if(!Gc(c))return hre(c);var d=[];for(var m in Pt(c))Dt.call(c,m)&&m!="constructor"&&d.push(m);return d}function doe(c){if(!An(c))return Yoe(c);var d=Gc(c),m=[];for(var b in c)b=="constructor"&&(d||!Dt.call(c,b))||m.push(b);return m}function n0(c,d){return c<d}function JI(c,d){var m=-1,b=TA(c)?me(c.length):[];return zi(c,function(x,V,ee){b[++m]=d(x,V,ee)}),b}function XI(c){var d=g0(c);return d.length==1&&d[0][2]?__(d[0][0],d[0][1]):function(m){return m===c||e0(m,c,d)}}function ZI(c,d){return y0(c)&&I_(d)?__(Bo(c),d):function(m){var b=x0(m,c);return b===n&&b===d?U0(m,c):Kc(d,b,B|y)}}function Fh(c,d,m,b,x){c!==d&&qy(d,function(V,ee){if(x||(x=new Vr),An(V))foe(c,d,ee,m,Fh,b,x);else{var oe=b?b(C0(c,ee),V,ee+"",c,d,x):n;oe===n&&(oe=V),Yy(c,ee,oe)}},DA)}function foe(c,d,m,b,x,V,ee){var oe=C0(c,m),ce=C0(d,m),be=ee.get(ce);if(be){Yy(c,m,be);return}var Ee=V?V(oe,ce,m+"",c,d,ee):n,Se=Ee===n;if(Se){var De=rt(ce),$e=!De&&ji(ce),Je=!De&&!$e&&rl(ce);Ee=ce,De||$e||Je?rt(oe)?Ee=oe:Cn(oe)?Ee=_A(oe):$e?(Se=!1,Ee=u_(ce,!0)):Je?(Se=!1,Ee=d_(ce,!0)):Ee=[]:jc(ce)||zs(ce)?(Ee=oe,zs(oe)?Ee=aT(oe):(!An(oe)||Wo(oe))&&(Ee=U_(ce))):Se=!1}Se&&(ee.set(ce,Ee),x(Ee,ce,b,V,ee),ee.delete(ce)),Yy(c,m,Ee)}function e_(c,d){var m=c.length;if(m)return d+=d<0?m:0,zo(d,m)?c[d]:n}function t_(c,d,m){d.length?d=Zt(d,function(V){return rt(V)?function(ee){return Vs(ee,V.length===1?V[0]:V)}:V}):d=[MA];var b=-1;d=Zt(d,jA(qe()));var x=JI(c,function(V,ee,oe){var ce=Zt(d,function(be){return be(V)});return{criteria:ce,index:++b,value:V}});return PAe(x,function(V,ee){return Soe(V,ee,m)})}function hoe(c,d){return n_(c,d,function(m,b){return U0(c,b)})}function n_(c,d,m){for(var b=-1,x=d.length,V={};++b<x;){var ee=d[b],oe=Vs(c,ee);m(oe,ee)&&zc(V,Gi(ee,c),oe)}return V}function poe(c){return function(d){return Vs(d,c)}}function A0(c,d,m,b){var x=b?HAe:Ga,V=-1,ee=d.length,oe=c;for(c===d&&(d=_A(d)),m&&(oe=Zt(c,jA(m)));++V<ee;)for(var ce=0,be=d[V],Ee=m?m(be):be;(ce=x(oe,Ee,ce,b))>-1;)oe!==c&&gh.call(oe,ce,1),gh.call(c,ce,1);return c}function A_(c,d){for(var m=c?d.length:0,b=m-1;m--;){var x=d[m];if(m==b||x!==V){var V=x;zo(x)?gh.call(c,x,1):s0(c,x)}}return c}function r0(c,d){return c+wh(LI()*(d-c+1))}function moe(c,d,m,b){for(var x=-1,V=_n(yh((d-c)/(m||1)),0),ee=me(V);V--;)ee[b?V:++x]=c,c+=m;return ee}function o0(c,d){var m="";if(!c||d<1||d>E)return m;do d%2&&(m+=c),d=wh(d/2),d&&(c+=c);while(d);return m}function dt(c,d){return b0(T_(c,d,MA),c+"")}function goe(c){return PI(ol(c))}function Boe(c,d){var m=ol(c);return Lh(m,Rs(d,0,m.length))}function zc(c,d,m,b){if(!An(c))return c;d=Gi(d,c);for(var x=-1,V=d.length,ee=V-1,oe=c;oe!=null&&++x<V;){var ce=Bo(d[x]),be=m;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return c;if(x!=ee){var Ee=oe[ce];be=b?b(Ee,ce,oe):n,be===n&&(be=An(Ee)?Ee:zo(d[x+1])?[]:{})}Rc(oe,ce,be),oe=oe[ce]}return c}var r_=Ch?function(c,d){return Ch.set(c,d),c}:MA,yoe=Bh?function(c,d){return Bh(c,"toString",{configurable:!0,enumerable:!1,value:_0(d),writable:!0})}:MA;function woe(c){return Lh(ol(c))}function Br(c,d,m){var b=-1,x=c.length;d<0&&(d=-d>x?0:x+d),m=m>x?x:m,m<0&&(m+=x),x=d>m?0:m-d>>>0,d>>>=0;for(var V=me(x);++b<x;)V[b]=c[b+d];return V}function Coe(c,d){var m;return zi(c,function(b,x,V){return m=d(b,x,V),!m}),!!m}function Qh(c,d,m){var b=0,x=c==null?b:c.length;if(typeof d=="number"&&d===d&&x<=M){for(;b<x;){var V=b+x>>>1,ee=c[V];ee!==null&&!JA(ee)&&(m?ee<=d:ee<d)?b=V+1:x=V}return x}return i0(c,d,MA,m)}function i0(c,d,m,b){var x=0,V=c==null?0:c.length;if(V===0)return 0;d=m(d);for(var ee=d!==d,oe=d===null,ce=JA(d),be=d===n;x<V;){var Ee=wh((x+V)/2),Se=m(c[Ee]),De=Se!==n,$e=Se===null,Je=Se===Se,ct=JA(Se);if(ee)var Xe=b||Je;else be?Xe=Je&&(b||De):oe?Xe=Je&&De&&(b||!$e):ce?Xe=Je&&De&&!$e&&(b||!ct):$e||ct?Xe=!1:Xe=b?Se<=d:Se<d;Xe?x=Ee+1:V=Ee}return iA(V,W)}function o_(c,d){for(var m=-1,b=c.length,x=0,V=[];++m<b;){var ee=c[m],oe=d?d(ee):ee;if(!m||!$r(oe,ce)){var ce=oe;V[x++]=ee===0?0:ee}}return V}function i_(c){return typeof c=="number"?c:JA(c)?Q:+c}function qA(c){if(typeof c=="string")return c;if(rt(c))return Zt(c,qA)+"";if(JA(c))return NI?NI.call(c):"";var d=c+"";return d=="0"&&1/c==-k?"-0":d}function Wi(c,d,m){var b=-1,x=sh,V=c.length,ee=!0,oe=[],ce=oe;if(m)ee=!1,x=My;else if(V>=r){var be=d?null:_oe(c);if(be)return lh(be);ee=!1,x=Mc,ce=new Ps}else ce=d?[]:oe;e:for(;++b<V;){var Ee=c[b],Se=d?d(Ee):Ee;if(Ee=m||Ee!==0?Ee:0,ee&&Se===Se){for(var De=ce.length;De--;)if(ce[De]===Se)continue e;d&&ce.push(Se),oe.push(Ee)}else x(ce,Se,m)||(ce!==oe&&ce.push(Se),oe.push(Ee))}return oe}function s0(c,d){return d=Gi(d,c),c=D_(c,d),c==null||delete c[Bo(yr(d))]}function s_(c,d,m,b){return zc(c,d,m(Vs(c,d)),b)}function xh(c,d,m,b){for(var x=c.length,V=b?x:-1;(b?V--:++V<x)&&d(c[V],V,c););return m?Br(c,b?0:V,b?V+1:x):Br(c,b?V+1:0,b?x:V)}function a_(c,d){var m=c;return m instanceof gt&&(m=m.value()),Oy(d,function(b,x){return x.func.apply(x.thisArg,Vi([b],x.args))},m)}function a0(c,d,m){var b=c.length;if(b<2)return b?Wi(c[0]):[];for(var x=-1,V=me(b);++x<b;)for(var ee=c[x],oe=-1;++oe<b;)oe!=x&&(V[x]=Vc(V[x]||ee,c[oe],d,m));return Wi(Jn(V,1),d,m)}function l_(c,d,m){for(var b=-1,x=c.length,V=d.length,ee={};++b<x;){var oe=b<V?d[b]:n;m(ee,c[b],oe)}return ee}function l0(c){return Cn(c)?c:[]}function c0(c){return typeof c=="function"?c:MA}function Gi(c,d){return rt(c)?c:y0(c,d)?[c]:N_(xt(c))}var boe=dt;function Yi(c,d,m){var b=c.length;return m=m===n?b:m,!d&&m>=b?c:Br(c,d,m)}var c_=lre||function(c){return qn.clearTimeout(c)};function u_(c,d){if(d)return c.slice();var m=c.length,b=_I?_I(m):new c.constructor(m);return c.copy(b),b}function u0(c){var d=new c.constructor(c.byteLength);return new ph(d).set(new ph(c)),d}function voe(c,d){var m=d?u0(c.buffer):c.buffer;return new c.constructor(m,c.byteOffset,c.byteLength)}function Eoe(c){var d=new c.constructor(c.source,YU.exec(c));return d.lastIndex=c.lastIndex,d}function koe(c){return Pc?Pt(Pc.call(c)):{}}function d_(c,d){var m=d?u0(c.buffer):c.buffer;return new c.constructor(m,c.byteOffset,c.length)}function f_(c,d){if(c!==d){var m=c!==n,b=c===null,x=c===c,V=JA(c),ee=d!==n,oe=d===null,ce=d===d,be=JA(d);if(!oe&&!be&&!V&&c>d||V&&ee&&ce&&!oe&&!be||b&&ee&&ce||!m&&ce||!x)return 1;if(!b&&!V&&!be&&c<d||be&&m&&x&&!b&&!V||oe&&m&&x||!ee&&x||!ce)return-1}return 0}function Soe(c,d,m){for(var b=-1,x=c.criteria,V=d.criteria,ee=x.length,oe=m.length;++b<ee;){var ce=f_(x[b],V[b]);if(ce){if(b>=oe)return ce;var be=m[b];return ce*(be=="desc"?-1:1)}}return c.index-d.index}function h_(c,d,m,b){for(var x=-1,V=c.length,ee=m.length,oe=-1,ce=d.length,be=_n(V-ee,0),Ee=me(ce+be),Se=!b;++oe<ce;)Ee[oe]=d[oe];for(;++x<ee;)(Se||x<V)&&(Ee[m[x]]=c[x]);for(;be--;)Ee[oe++]=c[x++];return Ee}function p_(c,d,m,b){for(var x=-1,V=c.length,ee=-1,oe=m.length,ce=-1,be=d.length,Ee=_n(V-oe,0),Se=me(Ee+be),De=!b;++x<Ee;)Se[x]=c[x];for(var $e=x;++ce<be;)Se[$e+ce]=d[ce];for(;++ee<oe;)(De||x<V)&&(Se[$e+m[ee]]=c[x++]);return Se}function _A(c,d){var m=-1,b=c.length;for(d||(d=me(b));++m<b;)d[m]=c[m];return d}function go(c,d,m,b){var x=!m;m||(m={});for(var V=-1,ee=d.length;++V<ee;){var oe=d[V],ce=b?b(m[oe],c[oe],oe,m,c):n;ce===n&&(ce=c[oe]),x?Vo(m,oe,ce):Rc(m,oe,ce)}return m}function Foe(c,d){return go(c,B0(c),d)}function Qoe(c,d){return go(c,Q_(c),d)}function Uh(c,d){return function(m,b){var x=rt(m)?TAe:qre,V=d?d():{};return x(m,c,qe(b,2),V)}}function tl(c){return dt(function(d,m){var b=-1,x=m.length,V=x>1?m[x-1]:n,ee=x>2?m[2]:n;for(V=c.length>3&&typeof V=="function"?(x--,V):n,ee&&bA(m[0],m[1],ee)&&(V=x<3?n:V,x=1),d=Pt(d);++b<x;){var oe=m[b];oe&&c(d,oe,b,V)}return d})}function m_(c,d){return function(m,b){if(m==null)return m;if(!TA(m))return c(m,b);for(var x=m.length,V=d?x:-1,ee=Pt(m);(d?V--:++V<x)&&b(ee[V],V,ee)!==!1;);return m}}function g_(c){return function(d,m,b){for(var x=-1,V=Pt(d),ee=b(d),oe=ee.length;oe--;){var ce=ee[c?oe:++x];if(m(V[ce],ce,V)===!1)break}return d}}function xoe(c,d,m){var b=d&C,x=Wc(c);function V(){var ee=this&&this!==qn&&this instanceof V?x:c;return ee.apply(b?m:this,arguments)}return V}function B_(c){return function(d){d=xt(d);var m=Ya(d)?Rr(d):n,b=m?m[0]:d.charAt(0),x=m?Yi(m,1).join(""):d.slice(1);return b[c]()+x}}function nl(c){return function(d){return Oy(mT(pT(d).replace(yAe,"")),c,"")}}function Wc(c){return function(){var d=arguments;switch(d.length){case 0:return new c;case 1:return new c(d[0]);case 2:return new c(d[0],d[1]);case 3:return new c(d[0],d[1],d[2]);case 4:return new c(d[0],d[1],d[2],d[3]);case 5:return new c(d[0],d[1],d[2],d[3],d[4]);case 6:return new c(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new c(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var m=el(c.prototype),b=c.apply(m,d);return An(b)?b:m}}function Uoe(c,d,m){var b=Wc(c);function x(){for(var V=arguments.length,ee=me(V),oe=V,ce=Al(x);oe--;)ee[oe]=arguments[oe];var be=V<3&&ee[0]!==ce&&ee[V-1]!==ce?[]:$i(ee,ce);if(V-=be.length,V<m)return v_(c,d,Ih,x.placeholder,n,ee,be,n,n,m-V);var Ee=this&&this!==qn&&this instanceof x?b:c;return YA(Ee,this,ee)}return x}function y_(c){return function(d,m,b){var x=Pt(d);if(!TA(d)){var V=qe(m,3);d=$n(d),m=function(oe){return V(x[oe],oe,x)}}var ee=c(d,m,b);return ee>-1?x[V?d[ee]:ee]:n}}function w_(c){return Ko(function(d){var m=d.length,b=m,x=mr.prototype.thru;for(c&&d.reverse();b--;){var V=d[b];if(typeof V!="function")throw new pr(i);if(x&&!ee&&Mh(V)=="wrapper")var ee=new mr([],!0)}for(b=ee?b:m;++b<m;){V=d[b];var oe=Mh(V),ce=oe=="wrapper"?m0(V):n;ce&&w0(ce[0])&&ce[1]==(H|_|P|te)&&!ce[4].length&&ce[9]==1?ee=ee[Mh(ce[0])].apply(ee,ce[3]):ee=V.length==1&&w0(V)?ee[oe]():ee.thru(V)}return function(){var be=arguments,Ee=be[0];if(ee&&be.length==1&&rt(Ee))return ee.plant(Ee).value();for(var Se=0,De=m?d[Se].apply(this,be):Ee;++Se<m;)De=d[Se].call(this,De);return De}})}function Ih(c,d,m,b,x,V,ee,oe,ce,be){var Ee=d&H,Se=d&C,De=d&w,$e=d&(_|D),Je=d&Z,ct=De?n:Wc(c);function Xe(){for(var ft=arguments.length,yt=me(ft),XA=ft;XA--;)yt[XA]=arguments[XA];if($e)var vA=Al(Xe),ZA=VAe(yt,vA);if(b&&(yt=h_(yt,b,x,$e)),V&&(yt=p_(yt,V,ee,$e)),ft-=ZA,$e&&ft<be){var bn=$i(yt,vA);return v_(c,d,Ih,Xe.placeholder,m,yt,bn,oe,ce,be-ft)}var Kr=Se?m:this,Yo=De?Kr[c]:c;return ft=yt.length,oe?yt=qoe(yt,oe):Je&&ft>1&&yt.reverse(),Ee&&ce<ft&&(yt.length=ce),this&&this!==qn&&this instanceof Xe&&(Yo=ct||Wc(Yo)),Yo.apply(Kr,yt)}return Xe}function C_(c,d){return function(m,b){return roe(m,c,d(b),{})}}function _h(c,d){return function(m,b){var x;if(m===n&&b===n)return d;if(m!==n&&(x=m),b!==n){if(x===n)return b;typeof m=="string"||typeof b=="string"?(m=qA(m),b=qA(b)):(m=i_(m),b=i_(b)),x=c(m,b)}return x}}function d0(c){return Ko(function(d){return d=Zt(d,jA(qe())),dt(function(m){var b=this;return c(d,function(x){return YA(x,b,m)})})})}function Th(c,d){d=d===n?" ":qA(d);var m=d.length;if(m<2)return m?o0(d,c):d;var b=o0(d,yh(c/ja(d)));return Ya(d)?Yi(Rr(b),0,c).join(""):b.slice(0,c)}function Ioe(c,d,m,b){var x=d&C,V=Wc(c);function ee(){for(var oe=-1,ce=arguments.length,be=-1,Ee=b.length,Se=me(Ee+ce),De=this&&this!==qn&&this instanceof ee?V:c;++be<Ee;)Se[be]=b[be];for(;ce--;)Se[be++]=arguments[++oe];return YA(De,x?m:this,Se)}return ee}function b_(c){return function(d,m,b){return b&&typeof b!="number"&&bA(d,m,b)&&(m=b=n),d=Go(d),m===n?(m=d,d=0):m=Go(m),b=b===n?d<m?1:-1:Go(b),moe(d,m,b,c)}}function Dh(c){return function(d,m){return typeof d=="string"&&typeof m=="string"||(d=wr(d),m=wr(m)),c(d,m)}}function v_(c,d,m,b,x,V,ee,oe,ce,be){var Ee=d&_,Se=Ee?ee:n,De=Ee?n:ee,$e=Ee?V:n,Je=Ee?n:V;d|=Ee?P:T,d&=~(Ee?T:P),d&F||(d&=-4);var ct=[c,d,x,$e,Se,Je,De,oe,ce,be],Xe=m.apply(n,ct);return w0(c)&&M_(Xe,ct),Xe.placeholder=b,O_(Xe,c,d)}function f0(c){var d=In[c];return function(m,b){if(m=wr(m),b=b==null?0:iA(at(b),292),b&&OI(m)){var x=(xt(m)+"e").split("e"),V=d(x[0]+"e"+(+x[1]+b));return x=(xt(V)+"e").split("e"),+(x[0]+"e"+(+x[1]-b))}return d(m)}}var _oe=Xa&&1/lh(new Xa([,-0]))[1]==k?function(c){return new Xa(c)}:M0;function E_(c){return function(d){var m=sA(d);return m==z?$y(d):m==ye?jAe(d):RAe(d,c(d))}}function $o(c,d,m,b,x,V,ee,oe){var ce=d&w;if(!ce&&typeof c!="function")throw new pr(i);var be=b?b.length:0;if(be||(d&=-97,b=x=n),ee=ee===n?ee:_n(at(ee),0),oe=oe===n?oe:at(oe),be-=x?x.length:0,d&T){var Ee=b,Se=x;b=x=n}var De=ce?n:m0(c),$e=[c,d,m,b,x,Ee,Se,V,ee,oe];if(De&&Goe($e,De),c=$e[0],d=$e[1],m=$e[2],b=$e[3],x=$e[4],oe=$e[9]=$e[9]===n?ce?0:c.length:_n($e[9]-be,0),!oe&&d&(_|D)&&(d&=-25),!d||d==C)var Je=xoe(c,d,m);else d==_||d==D?Je=Uoe(c,d,oe):(d==P||d==(C|P))&&!x.length?Je=Ioe(c,d,m,b):Je=Ih.apply(n,$e);var ct=De?r_:M_;return O_(ct(Je,$e),c,d)}function k_(c,d,m,b){return c===n||$r(c,Ja[m])&&!Dt.call(b,m)?d:c}function S_(c,d,m,b,x,V){return An(c)&&An(d)&&(V.set(d,c),Fh(c,d,n,S_,V),V.delete(d)),c}function Toe(c){return jc(c)?n:c}function F_(c,d,m,b,x,V){var ee=m&B,oe=c.length,ce=d.length;if(oe!=ce&&!(ee&&ce>oe))return!1;var be=V.get(c),Ee=V.get(d);if(be&&Ee)return be==d&&Ee==c;var Se=-1,De=!0,$e=m&y?new Ps:n;for(V.set(c,d),V.set(d,c);++Se<oe;){var Je=c[Se],ct=d[Se];if(b)var Xe=ee?b(ct,Je,Se,d,c,V):b(Je,ct,Se,c,d,V);if(Xe!==n){if(Xe)continue;De=!1;break}if($e){if(!Ly(d,function(ft,yt){if(!Mc($e,yt)&&(Je===ft||x(Je,ft,m,b,V)))return $e.push(yt)})){De=!1;break}}else if(!(Je===ct||x(Je,ct,m,b,V))){De=!1;break}}return V.delete(c),V.delete(d),De}function Doe(c,d,m,b,x,V,ee){switch(m){case ke:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case Ue:return!(c.byteLength!=d.byteLength||!V(new ph(c),new ph(d)));case G:case ue:case U:return $r(+c,+d);case Ae:return c.name==d.name&&c.message==d.message;case ae:case Te:return c==d+"";case z:var oe=$y;case ye:var ce=b&B;if(oe||(oe=lh),c.size!=d.size&&!ce)return!1;var be=ee.get(c);if(be)return be==d;b|=y,ee.set(c,d);var Ee=F_(oe(c),oe(d),b,x,V,ee);return ee.delete(c),Ee;case ie:if(Pc)return Pc.call(c)==Pc.call(d)}return!1}function Moe(c,d,m,b,x,V){var ee=m&B,oe=h0(c),ce=oe.length,be=h0(d),Ee=be.length;if(ce!=Ee&&!ee)return!1;for(var Se=ce;Se--;){var De=oe[Se];if(!(ee?De in d:Dt.call(d,De)))return!1}var $e=V.get(c),Je=V.get(d);if($e&&Je)return $e==d&&Je==c;var ct=!0;V.set(c,d),V.set(d,c);for(var Xe=ee;++Se<ce;){De=oe[Se];var ft=c[De],yt=d[De];if(b)var XA=ee?b(yt,ft,De,d,c,V):b(ft,yt,De,c,d,V);if(!(XA===n?ft===yt||x(ft,yt,m,b,V):XA)){ct=!1;break}Xe||(Xe=De=="constructor")}if(ct&&!Xe){var vA=c.constructor,ZA=d.constructor;vA!=ZA&&"constructor"in c&&"constructor"in d&&!(typeof vA=="function"&&vA instanceof vA&&typeof ZA=="function"&&ZA instanceof ZA)&&(ct=!1)}return V.delete(c),V.delete(d),ct}function Ko(c){return b0(T_(c,n,V_),c+"")}function h0(c){return GI(c,$n,B0)}function p0(c){return GI(c,DA,Q_)}var m0=Ch?function(c){return Ch.get(c)}:M0;function Mh(c){for(var d=c.name+"",m=Za[d],b=Dt.call(Za,d)?m.length:0;b--;){var x=m[b],V=x.func;if(V==null||V==c)return x.name}return d}function Al(c){var d=Dt.call(O,"placeholder")?O:c;return d.placeholder}function qe(){var c=O.iteratee||T0;return c=c===T0?qI:c,arguments.length?c(arguments[0],arguments[1]):c}function Oh(c,d){var m=c.__data__;return $oe(d)?m[typeof d=="string"?"string":"hash"]:m.map}function g0(c){for(var d=$n(c),m=d.length;m--;){var b=d[m],x=c[b];d[m]=[b,x,I_(x)]}return d}function $s(c,d){var m=WAe(c,d);return jI(m)?m:n}function Ooe(c){var d=Dt.call(c,Ns),m=c[Ns];try{c[Ns]=n;var b=!0}catch{}var x=fh.call(c);return b&&(d?c[Ns]=m:delete c[Ns]),x}var B0=zy?function(c){return c==null?[]:(c=Pt(c),Ri(zy(c),function(d){return DI.call(c,d)}))}:O0,Q_=zy?function(c){for(var d=[];c;)Vi(d,B0(c)),c=mh(c);return d}:O0,sA=CA;(Wy&&sA(new Wy(new ArrayBuffer(1)))!=ke||Lc&&sA(new Lc)!=z||Gy&&sA(Gy.resolve())!=L||Xa&&sA(new Xa)!=ye||Nc&&sA(new Nc)!=se)&&(sA=function(c){var d=CA(c),m=d==de?c.constructor:n,b=m?Ks(m):"";if(b)switch(b){case Bre:return ke;case yre:return z;case wre:return L;case Cre:return ye;case bre:return se}return d});function Loe(c,d,m){for(var b=-1,x=m.length;++b<x;){var V=m[b],ee=V.size;switch(V.type){case"drop":c+=ee;break;case"dropRight":d-=ee;break;case"take":d=iA(d,c+ee);break;case"takeRight":c=_n(c,d-ee);break}}return{start:c,end:d}}function Noe(c){var d=c.match(Kne);return d?d[1].split(zne):[]}function x_(c,d,m){d=Gi(d,c);for(var b=-1,x=d.length,V=!1;++b<x;){var ee=Bo(d[b]);if(!(V=c!=null&&m(c,ee)))break;c=c[ee]}return V||++b!=x?V:(x=c==null?0:c.length,!!x&&$h(x)&&zo(ee,x)&&(rt(c)||zs(c)))}function Hoe(c){var d=c.length,m=new c.constructor(d);return d&&typeof c[0]=="string"&&Dt.call(c,"index")&&(m.index=c.index,m.input=c.input),m}function U_(c){return typeof c.constructor=="function"&&!Gc(c)?el(mh(c)):{}}function Poe(c,d,m){var b=c.constructor;switch(d){case Ue:return u0(c);case G:case ue:return new b(+c);case ke:return voe(c,m);case Ye:case Ve:case Ct:case wt:case Nt:case wA:case GA:case Un:case Os:return d_(c,m);case z:return new b;case U:case Te:return new b(c);case ae:return Eoe(c);case ye:return new b;case ie:return koe(c)}}function Roe(c,d){var m=d.length;if(!m)return c;var b=m-1;return d[b]=(m>1?"& ":"")+d[b],d=d.join(m>2?", ":" "),c.replace($ne,`{
124
+ */var T5=nc.exports,zE;function D5(){return zE||(zE=1,(function(t,e){(function(){var n,A="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,B=1,y=2,C=1,w=2,F=4,_=8,D=16,P=32,T=64,H=128,te=256,Z=512,ne=30,pe="...",Be=800,we=16,R=1,K=2,N=3,k=1/0,E=9007199254740991,I=17976931348623157e292,Q=NaN,v=4294967295,W=v-1,M=v>>>1,$=[["ary",H],["bind",C],["bindKey",w],["curry",_],["curryRight",D],["flip",Z],["partial",P],["partialRight",T],["rearg",te]],J="[object Arguments]",j="[object Array]",S="[object AsyncFunction]",G="[object Boolean]",ue="[object Date]",xe="[object DOMException]",Ae="[object Error]",X="[object Function]",q="[object GeneratorFunction]",z="[object Map]",U="[object Number]",re="[object Null]",de="[object Object]",L="[object Promise]",Y="[object Proxy]",ae="[object RegExp]",ye="[object Set]",Te="[object String]",ie="[object Symbol]",ge="[object Undefined]",se="[object WeakMap]",he="[object WeakSet]",Ue="[object ArrayBuffer]",ke="[object DataView]",Ye="[object Float32Array]",Ve="[object Float64Array]",Ct="[object Int8Array]",wt="[object Int16Array]",Nt="[object Int32Array]",wA="[object Uint8Array]",GA="[object Uint8ClampedArray]",Un="[object Uint16Array]",Os="[object Uint32Array]",fe=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,Ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ot=/&(?:amp|lt|gt|quot|#39);/g,ve=/[&<>"']/g,Me=RegExp(ot.source),Ke=RegExp(ve.source),Pr=/<%-([\s\S]+?)%>/g,dr=/<%([\s\S]+?)%>/g,ho=/<%=([\s\S]+?)%>/g,po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dc=/^\w*$/,ky=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sy=/[\\^$.*+?()[\]{}|]/g,Kne=RegExp(Sy.source),Fy=/^\s+/,zne=/\s/,Wne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gne=/\{\n\/\* \[wrapped with (.+)\] \*/,Yne=/,? & /,jne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qne=/[()=,{}\[\]\/\s]/,Jne=/\\(\\)?/g,Xne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,YU=/\w*$/,Zne=/^[-+]0x[0-9a-f]+$/i,eAe=/^0b[01]+$/i,tAe=/^\[object .+?Constructor\]$/,nAe=/^0o[0-7]+$/i,AAe=/^(?:0|[1-9]\d*)$/,rAe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rh=/($^)/,oAe=/['\n\r\u2028\u2029\\]/g,oh="\\ud800-\\udfff",iAe="\\u0300-\\u036f",sAe="\\ufe20-\\ufe2f",aAe="\\u20d0-\\u20ff",jU=iAe+sAe+aAe,qU="\\u2700-\\u27bf",JU="a-z\\xdf-\\xf6\\xf8-\\xff",lAe="\\xac\\xb1\\xd7\\xf7",cAe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uAe="\\u2000-\\u206f",dAe=" \\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",XU="A-Z\\xc0-\\xd6\\xd8-\\xde",ZU="\\ufe0e\\ufe0f",eI=lAe+cAe+uAe+dAe,Qy="['’]",fAe="["+oh+"]",tI="["+eI+"]",ih="["+jU+"]",nI="\\d+",hAe="["+qU+"]",AI="["+JU+"]",rI="[^"+oh+eI+nI+qU+JU+XU+"]",xy="\\ud83c[\\udffb-\\udfff]",pAe="(?:"+ih+"|"+xy+")",oI="[^"+oh+"]",Uy="(?:\\ud83c[\\udde6-\\uddff]){2}",Iy="[\\ud800-\\udbff][\\udc00-\\udfff]",Wa="["+XU+"]",iI="\\u200d",sI="(?:"+AI+"|"+rI+")",mAe="(?:"+Wa+"|"+rI+")",aI="(?:"+Qy+"(?:d|ll|m|re|s|t|ve))?",lI="(?:"+Qy+"(?:D|LL|M|RE|S|T|VE))?",cI=pAe+"?",uI="["+ZU+"]?",gAe="(?:"+iI+"(?:"+[oI,Uy,Iy].join("|")+")"+uI+cI+")*",BAe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yAe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dI=uI+cI+gAe,wAe="(?:"+[hAe,Uy,Iy].join("|")+")"+dI,CAe="(?:"+[oI+ih+"?",ih,Uy,Iy,fAe].join("|")+")",bAe=RegExp(Qy,"g"),vAe=RegExp(ih,"g"),_y=RegExp(xy+"(?="+xy+")|"+CAe+dI,"g"),EAe=RegExp([Wa+"?"+AI+"+"+aI+"(?="+[tI,Wa,"$"].join("|")+")",mAe+"+"+lI+"(?="+[tI,Wa+sI,"$"].join("|")+")",Wa+"?"+sI+"+"+aI,Wa+"+"+lI,yAe,BAe,nI,wAe].join("|"),"g"),kAe=RegExp("["+iI+oh+jU+ZU+"]"),SAe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FAe=["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"],QAe=-1,Yt={};Yt[Ye]=Yt[Ve]=Yt[Ct]=Yt[wt]=Yt[Nt]=Yt[wA]=Yt[GA]=Yt[Un]=Yt[Os]=!0,Yt[J]=Yt[j]=Yt[Ue]=Yt[G]=Yt[ke]=Yt[ue]=Yt[Ae]=Yt[X]=Yt[z]=Yt[U]=Yt[de]=Yt[ae]=Yt[ye]=Yt[Te]=Yt[se]=!1;var Vt={};Vt[J]=Vt[j]=Vt[Ue]=Vt[ke]=Vt[G]=Vt[ue]=Vt[Ye]=Vt[Ve]=Vt[Ct]=Vt[wt]=Vt[Nt]=Vt[z]=Vt[U]=Vt[de]=Vt[ae]=Vt[ye]=Vt[Te]=Vt[ie]=Vt[wA]=Vt[GA]=Vt[Un]=Vt[Os]=!0,Vt[Ae]=Vt[X]=Vt[se]=!1;var xAe={À:"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"},UAe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},IAe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_Ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TAe=parseFloat,DAe=parseInt,fI=typeof Ld=="object"&&Ld&&Ld.Object===Object&&Ld,MAe=typeof self=="object"&&self&&self.Object===Object&&self,qn=fI||MAe||Function("return this")(),Ty=e&&!e.nodeType&&e,Ls=Ty&&!0&&t&&!t.nodeType&&t,hI=Ls&&Ls.exports===Ty,Dy=hI&&fI.process,fr=(function(){try{var le=Ls&&Ls.require&&Ls.require("util").types;return le||Dy&&Dy.binding&&Dy.binding("util")}catch{}})(),pI=fr&&fr.isArrayBuffer,mI=fr&&fr.isDate,gI=fr&&fr.isMap,BI=fr&&fr.isRegExp,yI=fr&&fr.isSet,wI=fr&&fr.isTypedArray;function YA(le,Ce,me){switch(me.length){case 0:return le.call(Ce);case 1:return le.call(Ce,me[0]);case 2:return le.call(Ce,me[0],me[1]);case 3:return le.call(Ce,me[0],me[1],me[2])}return le.apply(Ce,me)}function OAe(le,Ce,me,Pe){for(var At=-1,Ft=le==null?0:le.length;++At<Ft;){var In=le[At];Ce(Pe,In,me(In),le)}return Pe}function hr(le,Ce){for(var me=-1,Pe=le==null?0:le.length;++me<Pe&&Ce(le[me],me,le)!==!1;);return le}function LAe(le,Ce){for(var me=le==null?0:le.length;me--&&Ce(le[me],me,le)!==!1;);return le}function CI(le,Ce){for(var me=-1,Pe=le==null?0:le.length;++me<Pe;)if(!Ce(le[me],me,le))return!1;return!0}function Ri(le,Ce){for(var me=-1,Pe=le==null?0:le.length,At=0,Ft=[];++me<Pe;){var In=le[me];Ce(In,me,le)&&(Ft[At++]=In)}return Ft}function sh(le,Ce){var me=le==null?0:le.length;return!!me&&Ga(le,Ce,0)>-1}function My(le,Ce,me){for(var Pe=-1,At=le==null?0:le.length;++Pe<At;)if(me(Ce,le[Pe]))return!0;return!1}function Zt(le,Ce){for(var me=-1,Pe=le==null?0:le.length,At=Array(Pe);++me<Pe;)At[me]=Ce(le[me],me,le);return At}function Vi(le,Ce){for(var me=-1,Pe=Ce.length,At=le.length;++me<Pe;)le[At+me]=Ce[me];return le}function Oy(le,Ce,me,Pe){var At=-1,Ft=le==null?0:le.length;for(Pe&&Ft&&(me=le[++At]);++At<Ft;)me=Ce(me,le[At],At,le);return me}function NAe(le,Ce,me,Pe){var At=le==null?0:le.length;for(Pe&&At&&(me=le[--At]);At--;)me=Ce(me,le[At],At,le);return me}function Ly(le,Ce){for(var me=-1,Pe=le==null?0:le.length;++me<Pe;)if(Ce(le[me],me,le))return!0;return!1}var HAe=Ny("length");function PAe(le){return le.split("")}function RAe(le){return le.match(jne)||[]}function bI(le,Ce,me){var Pe;return me(le,function(At,Ft,In){if(Ce(At,Ft,In))return Pe=Ft,!1}),Pe}function ah(le,Ce,me,Pe){for(var At=le.length,Ft=me+(Pe?1:-1);Pe?Ft--:++Ft<At;)if(Ce(le[Ft],Ft,le))return Ft;return-1}function Ga(le,Ce,me){return Ce===Ce?ZAe(le,Ce,me):ah(le,vI,me)}function VAe(le,Ce,me,Pe){for(var At=me-1,Ft=le.length;++At<Ft;)if(Pe(le[At],Ce))return At;return-1}function vI(le){return le!==le}function EI(le,Ce){var me=le==null?0:le.length;return me?Py(le,Ce)/me:Q}function Ny(le){return function(Ce){return Ce==null?n:Ce[le]}}function Hy(le){return function(Ce){return le==null?n:le[Ce]}}function kI(le,Ce,me,Pe,At){return At(le,function(Ft,In,Pt){me=Pe?(Pe=!1,Ft):Ce(me,Ft,In,Pt)}),me}function $Ae(le,Ce){var me=le.length;for(le.sort(Ce);me--;)le[me]=le[me].value;return le}function Py(le,Ce){for(var me,Pe=-1,At=le.length;++Pe<At;){var Ft=Ce(le[Pe]);Ft!==n&&(me=me===n?Ft:me+Ft)}return me}function Ry(le,Ce){for(var me=-1,Pe=Array(le);++me<le;)Pe[me]=Ce(me);return Pe}function KAe(le,Ce){return Zt(Ce,function(me){return[me,le[me]]})}function SI(le){return le&&le.slice(0,UI(le)+1).replace(Fy,"")}function jA(le){return function(Ce){return le(Ce)}}function Vy(le,Ce){return Zt(Ce,function(me){return le[me]})}function Mc(le,Ce){return le.has(Ce)}function FI(le,Ce){for(var me=-1,Pe=le.length;++me<Pe&&Ga(Ce,le[me],0)>-1;);return me}function QI(le,Ce){for(var me=le.length;me--&&Ga(Ce,le[me],0)>-1;);return me}function zAe(le,Ce){for(var me=le.length,Pe=0;me--;)le[me]===Ce&&++Pe;return Pe}var WAe=Hy(xAe),GAe=Hy(UAe);function YAe(le){return"\\"+_Ae[le]}function jAe(le,Ce){return le==null?n:le[Ce]}function Ya(le){return kAe.test(le)}function qAe(le){return SAe.test(le)}function JAe(le){for(var Ce,me=[];!(Ce=le.next()).done;)me.push(Ce.value);return me}function $y(le){var Ce=-1,me=Array(le.size);return le.forEach(function(Pe,At){me[++Ce]=[At,Pe]}),me}function xI(le,Ce){return function(me){return le(Ce(me))}}function $i(le,Ce){for(var me=-1,Pe=le.length,At=0,Ft=[];++me<Pe;){var In=le[me];(In===Ce||In===f)&&(le[me]=f,Ft[At++]=me)}return Ft}function lh(le){var Ce=-1,me=Array(le.size);return le.forEach(function(Pe){me[++Ce]=Pe}),me}function XAe(le){var Ce=-1,me=Array(le.size);return le.forEach(function(Pe){me[++Ce]=[Pe,Pe]}),me}function ZAe(le,Ce,me){for(var Pe=me-1,At=le.length;++Pe<At;)if(le[Pe]===Ce)return Pe;return-1}function ere(le,Ce,me){for(var Pe=me+1;Pe--;)if(le[Pe]===Ce)return Pe;return Pe}function ja(le){return Ya(le)?nre(le):HAe(le)}function Rr(le){return Ya(le)?Are(le):PAe(le)}function UI(le){for(var Ce=le.length;Ce--&&zne.test(le.charAt(Ce)););return Ce}var tre=Hy(IAe);function nre(le){for(var Ce=_y.lastIndex=0;_y.test(le);)++Ce;return Ce}function Are(le){return le.match(_y)||[]}function rre(le){return le.match(EAe)||[]}var ore=(function le(Ce){Ce=Ce==null?qn:qa.defaults(qn.Object(),Ce,qa.pick(qn,FAe));var me=Ce.Array,Pe=Ce.Date,At=Ce.Error,Ft=Ce.Function,In=Ce.Math,Pt=Ce.Object,Ky=Ce.RegExp,ire=Ce.String,pr=Ce.TypeError,ch=me.prototype,sre=Ft.prototype,Ja=Pt.prototype,uh=Ce["__core-js_shared__"],dh=sre.toString,Dt=Ja.hasOwnProperty,are=0,II=(function(){var c=/[^.]+$/.exec(uh&&uh.keys&&uh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),fh=Ja.toString,lre=dh.call(Pt),cre=qn._,ure=Ky("^"+dh.call(Dt).replace(Sy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hh=hI?Ce.Buffer:n,Ki=Ce.Symbol,ph=Ce.Uint8Array,_I=hh?hh.allocUnsafe:n,mh=xI(Pt.getPrototypeOf,Pt),TI=Pt.create,DI=Ja.propertyIsEnumerable,gh=ch.splice,MI=Ki?Ki.isConcatSpreadable:n,Oc=Ki?Ki.iterator:n,Ns=Ki?Ki.toStringTag:n,Bh=(function(){try{var c=$s(Pt,"defineProperty");return c({},"",{}),c}catch{}})(),dre=Ce.clearTimeout!==qn.clearTimeout&&Ce.clearTimeout,fre=Pe&&Pe.now!==qn.Date.now&&Pe.now,hre=Ce.setTimeout!==qn.setTimeout&&Ce.setTimeout,yh=In.ceil,wh=In.floor,zy=Pt.getOwnPropertySymbols,pre=hh?hh.isBuffer:n,OI=Ce.isFinite,mre=ch.join,gre=xI(Pt.keys,Pt),_n=In.max,iA=In.min,Bre=Pe.now,yre=Ce.parseInt,LI=In.random,wre=ch.reverse,Wy=$s(Ce,"DataView"),Lc=$s(Ce,"Map"),Gy=$s(Ce,"Promise"),Xa=$s(Ce,"Set"),Nc=$s(Ce,"WeakMap"),Hc=$s(Pt,"create"),Ch=Nc&&new Nc,Za={},Cre=Ks(Wy),bre=Ks(Lc),vre=Ks(Gy),Ere=Ks(Xa),kre=Ks(Nc),bh=Ki?Ki.prototype:n,Pc=bh?bh.valueOf:n,NI=bh?bh.toString:n;function O(c){if(cn(c)&&!rt(c)&&!(c instanceof gt)){if(c instanceof mr)return c;if(Dt.call(c,"__wrapped__"))return H_(c)}return new mr(c)}var el=(function(){function c(){}return function(d){if(!An(d))return{};if(TI)return TI(d);c.prototype=d;var m=new c;return c.prototype=n,m}})();function vh(){}function mr(c,d){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}O.templateSettings={escape:Pr,evaluate:dr,interpolate:ho,variable:"",imports:{_:O}},O.prototype=vh.prototype,O.prototype.constructor=O,mr.prototype=el(vh.prototype),mr.prototype.constructor=mr;function gt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Sre(){var c=new gt(this.__wrapped__);return c.__actions__=_A(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=_A(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=_A(this.__views__),c}function Fre(){if(this.__filtered__){var c=new gt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Qre(){var c=this.__wrapped__.value(),d=this.__dir__,m=rt(c),b=d<0,x=m?c.length:0,V=Poe(0,x,this.__views__),ee=V.start,oe=V.end,ce=oe-ee,be=b?oe:ee-1,Ee=this.__iteratees__,Se=Ee.length,De=0,$e=iA(ce,this.__takeCount__);if(!m||!b&&x==ce&&$e==ce)return a_(c,this.__actions__);var Je=[];e:for(;ce--&&De<$e;){be+=d;for(var ct=-1,Xe=c[be];++ct<Se;){var ft=Ee[ct],yt=ft.iteratee,XA=ft.type,vA=yt(Xe);if(XA==K)Xe=vA;else if(!vA){if(XA==R)continue e;break e}}Je[De++]=Xe}return Je}gt.prototype=el(vh.prototype),gt.prototype.constructor=gt;function Hs(c){var d=-1,m=c==null?0:c.length;for(this.clear();++d<m;){var b=c[d];this.set(b[0],b[1])}}function xre(){this.__data__=Hc?Hc(null):{},this.size=0}function Ure(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function Ire(c){var d=this.__data__;if(Hc){var m=d[c];return m===l?n:m}return Dt.call(d,c)?d[c]:n}function _re(c){var d=this.__data__;return Hc?d[c]!==n:Dt.call(d,c)}function Tre(c,d){var m=this.__data__;return this.size+=this.has(c)?0:1,m[c]=Hc&&d===n?l:d,this}Hs.prototype.clear=xre,Hs.prototype.delete=Ure,Hs.prototype.get=Ire,Hs.prototype.has=_re,Hs.prototype.set=Tre;function Po(c){var d=-1,m=c==null?0:c.length;for(this.clear();++d<m;){var b=c[d];this.set(b[0],b[1])}}function Dre(){this.__data__=[],this.size=0}function Mre(c){var d=this.__data__,m=Eh(d,c);if(m<0)return!1;var b=d.length-1;return m==b?d.pop():gh.call(d,m,1),--this.size,!0}function Ore(c){var d=this.__data__,m=Eh(d,c);return m<0?n:d[m][1]}function Lre(c){return Eh(this.__data__,c)>-1}function Nre(c,d){var m=this.__data__,b=Eh(m,c);return b<0?(++this.size,m.push([c,d])):m[b][1]=d,this}Po.prototype.clear=Dre,Po.prototype.delete=Mre,Po.prototype.get=Ore,Po.prototype.has=Lre,Po.prototype.set=Nre;function Ro(c){var d=-1,m=c==null?0:c.length;for(this.clear();++d<m;){var b=c[d];this.set(b[0],b[1])}}function Hre(){this.size=0,this.__data__={hash:new Hs,map:new(Lc||Po),string:new Hs}}function Pre(c){var d=Oh(this,c).delete(c);return this.size-=d?1:0,d}function Rre(c){return Oh(this,c).get(c)}function Vre(c){return Oh(this,c).has(c)}function $re(c,d){var m=Oh(this,c),b=m.size;return m.set(c,d),this.size+=m.size==b?0:1,this}Ro.prototype.clear=Hre,Ro.prototype.delete=Pre,Ro.prototype.get=Rre,Ro.prototype.has=Vre,Ro.prototype.set=$re;function Ps(c){var d=-1,m=c==null?0:c.length;for(this.__data__=new Ro;++d<m;)this.add(c[d])}function Kre(c){return this.__data__.set(c,l),this}function zre(c){return this.__data__.has(c)}Ps.prototype.add=Ps.prototype.push=Kre,Ps.prototype.has=zre;function Vr(c){var d=this.__data__=new Po(c);this.size=d.size}function Wre(){this.__data__=new Po,this.size=0}function Gre(c){var d=this.__data__,m=d.delete(c);return this.size=d.size,m}function Yre(c){return this.__data__.get(c)}function jre(c){return this.__data__.has(c)}function qre(c,d){var m=this.__data__;if(m instanceof Po){var b=m.__data__;if(!Lc||b.length<r-1)return b.push([c,d]),this.size=++m.size,this;m=this.__data__=new Ro(b)}return m.set(c,d),this.size=m.size,this}Vr.prototype.clear=Wre,Vr.prototype.delete=Gre,Vr.prototype.get=Yre,Vr.prototype.has=jre,Vr.prototype.set=qre;function HI(c,d){var m=rt(c),b=!m&&zs(c),x=!m&&!b&&ji(c),V=!m&&!b&&!x&&rl(c),ee=m||b||x||V,oe=ee?Ry(c.length,ire):[],ce=oe.length;for(var be in c)(d||Dt.call(c,be))&&!(ee&&(be=="length"||x&&(be=="offset"||be=="parent")||V&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||zo(be,ce)))&&oe.push(be);return oe}function PI(c){var d=c.length;return d?c[r0(0,d-1)]:n}function Jre(c,d){return Lh(_A(c),Rs(d,0,c.length))}function Xre(c){return Lh(_A(c))}function Yy(c,d,m){(m!==n&&!$r(c[d],m)||m===n&&!(d in c))&&Vo(c,d,m)}function Rc(c,d,m){var b=c[d];(!(Dt.call(c,d)&&$r(b,m))||m===n&&!(d in c))&&Vo(c,d,m)}function Eh(c,d){for(var m=c.length;m--;)if($r(c[m][0],d))return m;return-1}function Zre(c,d,m,b){return zi(c,function(x,V,ee){d(b,x,m(x),ee)}),b}function RI(c,d){return c&&go(d,$n(d),c)}function eoe(c,d){return c&&go(d,DA(d),c)}function Vo(c,d,m){d=="__proto__"&&Bh?Bh(c,d,{configurable:!0,enumerable:!0,value:m,writable:!0}):c[d]=m}function jy(c,d){for(var m=-1,b=d.length,x=me(b),V=c==null;++m<b;)x[m]=V?n:x0(c,d[m]);return x}function Rs(c,d,m){return c===c&&(m!==n&&(c=c<=m?c:m),d!==n&&(c=c>=d?c:d)),c}function gr(c,d,m,b,x,V){var ee,oe=d&h,ce=d&p,be=d&g;if(m&&(ee=x?m(c,b,x,V):m(c)),ee!==n)return ee;if(!An(c))return c;var Ee=rt(c);if(Ee){if(ee=Voe(c),!oe)return _A(c,ee)}else{var Se=sA(c),De=Se==X||Se==q;if(ji(c))return u_(c,oe);if(Se==de||Se==J||De&&!x){if(ee=ce||De?{}:U_(c),!oe)return ce?Ioe(c,eoe(ee,c)):Uoe(c,RI(ee,c))}else{if(!Vt[Se])return x?c:{};ee=$oe(c,Se,oe)}}V||(V=new Vr);var $e=V.get(c);if($e)return $e;V.set(c,ee),oT(c)?c.forEach(function(Xe){ee.add(gr(Xe,d,m,Xe,c,V))}):AT(c)&&c.forEach(function(Xe,ft){ee.set(ft,gr(Xe,d,m,ft,c,V))});var Je=be?ce?p0:h0:ce?DA:$n,ct=Ee?n:Je(c);return hr(ct||c,function(Xe,ft){ct&&(ft=Xe,Xe=c[ft]),Rc(ee,ft,gr(Xe,d,m,ft,c,V))}),ee}function toe(c){var d=$n(c);return function(m){return VI(m,c,d)}}function VI(c,d,m){var b=m.length;if(c==null)return!b;for(c=Pt(c);b--;){var x=m[b],V=d[x],ee=c[x];if(ee===n&&!(x in c)||!V(ee))return!1}return!0}function $I(c,d,m){if(typeof c!="function")throw new pr(i);return Yc(function(){c.apply(n,m)},d)}function Vc(c,d,m,b){var x=-1,V=sh,ee=!0,oe=c.length,ce=[],be=d.length;if(!oe)return ce;m&&(d=Zt(d,jA(m))),b?(V=My,ee=!1):d.length>=r&&(V=Mc,ee=!1,d=new Ps(d));e:for(;++x<oe;){var Ee=c[x],Se=m==null?Ee:m(Ee);if(Ee=b||Ee!==0?Ee:0,ee&&Se===Se){for(var De=be;De--;)if(d[De]===Se)continue e;ce.push(Ee)}else V(d,Se,b)||ce.push(Ee)}return ce}var zi=m_(mo),KI=m_(Jy,!0);function noe(c,d){var m=!0;return zi(c,function(b,x,V){return m=!!d(b,x,V),m}),m}function kh(c,d,m){for(var b=-1,x=c.length;++b<x;){var V=c[b],ee=d(V);if(ee!=null&&(oe===n?ee===ee&&!JA(ee):m(ee,oe)))var oe=ee,ce=V}return ce}function Aoe(c,d,m,b){var x=c.length;for(m=at(m),m<0&&(m=-m>x?0:x+m),b=b===n||b>x?x:at(b),b<0&&(b+=x),b=m>b?0:sT(b);m<b;)c[m++]=d;return c}function zI(c,d){var m=[];return zi(c,function(b,x,V){d(b,x,V)&&m.push(b)}),m}function Jn(c,d,m,b,x){var V=-1,ee=c.length;for(m||(m=zoe),x||(x=[]);++V<ee;){var oe=c[V];d>0&&m(oe)?d>1?Jn(oe,d-1,m,b,x):Vi(x,oe):b||(x[x.length]=oe)}return x}var qy=g_(),WI=g_(!0);function mo(c,d){return c&&qy(c,d,$n)}function Jy(c,d){return c&&WI(c,d,$n)}function Sh(c,d){return Ri(d,function(m){return Wo(c[m])})}function Vs(c,d){d=Gi(d,c);for(var m=0,b=d.length;c!=null&&m<b;)c=c[Bo(d[m++])];return m&&m==b?c:n}function GI(c,d,m){var b=d(c);return rt(c)?b:Vi(b,m(c))}function CA(c){return c==null?c===n?ge:re:Ns&&Ns in Pt(c)?Hoe(c):Xoe(c)}function Xy(c,d){return c>d}function roe(c,d){return c!=null&&Dt.call(c,d)}function ooe(c,d){return c!=null&&d in Pt(c)}function ioe(c,d,m){return c>=iA(d,m)&&c<_n(d,m)}function Zy(c,d,m){for(var b=m?My:sh,x=c[0].length,V=c.length,ee=V,oe=me(V),ce=1/0,be=[];ee--;){var Ee=c[ee];ee&&d&&(Ee=Zt(Ee,jA(d))),ce=iA(Ee.length,ce),oe[ee]=!m&&(d||x>=120&&Ee.length>=120)?new Ps(ee&&Ee):n}Ee=c[0];var Se=-1,De=oe[0];e:for(;++Se<x&&be.length<ce;){var $e=Ee[Se],Je=d?d($e):$e;if($e=m||$e!==0?$e:0,!(De?Mc(De,Je):b(be,Je,m))){for(ee=V;--ee;){var ct=oe[ee];if(!(ct?Mc(ct,Je):b(c[ee],Je,m)))continue e}De&&De.push(Je),be.push($e)}}return be}function soe(c,d,m,b){return mo(c,function(x,V,ee){d(b,m(x),V,ee)}),b}function $c(c,d,m){d=Gi(d,c),c=D_(c,d);var b=c==null?c:c[Bo(yr(d))];return b==null?n:YA(b,c,m)}function YI(c){return cn(c)&&CA(c)==J}function aoe(c){return cn(c)&&CA(c)==Ue}function loe(c){return cn(c)&&CA(c)==ue}function Kc(c,d,m,b,x){return c===d?!0:c==null||d==null||!cn(c)&&!cn(d)?c!==c&&d!==d:coe(c,d,m,b,Kc,x)}function coe(c,d,m,b,x,V){var ee=rt(c),oe=rt(d),ce=ee?j:sA(c),be=oe?j:sA(d);ce=ce==J?de:ce,be=be==J?de:be;var Ee=ce==de,Se=be==de,De=ce==be;if(De&&ji(c)){if(!ji(d))return!1;ee=!0,Ee=!1}if(De&&!Ee)return V||(V=new Vr),ee||rl(c)?F_(c,d,m,b,x,V):Loe(c,d,ce,m,b,x,V);if(!(m&B)){var $e=Ee&&Dt.call(c,"__wrapped__"),Je=Se&&Dt.call(d,"__wrapped__");if($e||Je){var ct=$e?c.value():c,Xe=Je?d.value():d;return V||(V=new Vr),x(ct,Xe,m,b,V)}}return De?(V||(V=new Vr),Noe(c,d,m,b,x,V)):!1}function uoe(c){return cn(c)&&sA(c)==z}function e0(c,d,m,b){var x=m.length,V=x,ee=!b;if(c==null)return!V;for(c=Pt(c);x--;){var oe=m[x];if(ee&&oe[2]?oe[1]!==c[oe[0]]:!(oe[0]in c))return!1}for(;++x<V;){oe=m[x];var ce=oe[0],be=c[ce],Ee=oe[1];if(ee&&oe[2]){if(be===n&&!(ce in c))return!1}else{var Se=new Vr;if(b)var De=b(be,Ee,ce,c,d,Se);if(!(De===n?Kc(Ee,be,B|y,b,Se):De))return!1}}return!0}function jI(c){if(!An(c)||Goe(c))return!1;var d=Wo(c)?ure:tAe;return d.test(Ks(c))}function doe(c){return cn(c)&&CA(c)==ae}function foe(c){return cn(c)&&sA(c)==ye}function hoe(c){return cn(c)&&$h(c.length)&&!!Yt[CA(c)]}function qI(c){return typeof c=="function"?c:c==null?MA:typeof c=="object"?rt(c)?ZI(c[0],c[1]):XI(c):BT(c)}function t0(c){if(!Gc(c))return gre(c);var d=[];for(var m in Pt(c))Dt.call(c,m)&&m!="constructor"&&d.push(m);return d}function poe(c){if(!An(c))return Joe(c);var d=Gc(c),m=[];for(var b in c)b=="constructor"&&(d||!Dt.call(c,b))||m.push(b);return m}function n0(c,d){return c<d}function JI(c,d){var m=-1,b=TA(c)?me(c.length):[];return zi(c,function(x,V,ee){b[++m]=d(x,V,ee)}),b}function XI(c){var d=g0(c);return d.length==1&&d[0][2]?__(d[0][0],d[0][1]):function(m){return m===c||e0(m,c,d)}}function ZI(c,d){return y0(c)&&I_(d)?__(Bo(c),d):function(m){var b=x0(m,c);return b===n&&b===d?U0(m,c):Kc(d,b,B|y)}}function Fh(c,d,m,b,x){c!==d&&qy(d,function(V,ee){if(x||(x=new Vr),An(V))moe(c,d,ee,m,Fh,b,x);else{var oe=b?b(C0(c,ee),V,ee+"",c,d,x):n;oe===n&&(oe=V),Yy(c,ee,oe)}},DA)}function moe(c,d,m,b,x,V,ee){var oe=C0(c,m),ce=C0(d,m),be=ee.get(ce);if(be){Yy(c,m,be);return}var Ee=V?V(oe,ce,m+"",c,d,ee):n,Se=Ee===n;if(Se){var De=rt(ce),$e=!De&&ji(ce),Je=!De&&!$e&&rl(ce);Ee=ce,De||$e||Je?rt(oe)?Ee=oe:Cn(oe)?Ee=_A(oe):$e?(Se=!1,Ee=u_(ce,!0)):Je?(Se=!1,Ee=d_(ce,!0)):Ee=[]:jc(ce)||zs(ce)?(Ee=oe,zs(oe)?Ee=aT(oe):(!An(oe)||Wo(oe))&&(Ee=U_(ce))):Se=!1}Se&&(ee.set(ce,Ee),x(Ee,ce,b,V,ee),ee.delete(ce)),Yy(c,m,Ee)}function e_(c,d){var m=c.length;if(m)return d+=d<0?m:0,zo(d,m)?c[d]:n}function t_(c,d,m){d.length?d=Zt(d,function(V){return rt(V)?function(ee){return Vs(ee,V.length===1?V[0]:V)}:V}):d=[MA];var b=-1;d=Zt(d,jA(qe()));var x=JI(c,function(V,ee,oe){var ce=Zt(d,function(be){return be(V)});return{criteria:ce,index:++b,value:V}});return $Ae(x,function(V,ee){return xoe(V,ee,m)})}function goe(c,d){return n_(c,d,function(m,b){return U0(c,b)})}function n_(c,d,m){for(var b=-1,x=d.length,V={};++b<x;){var ee=d[b],oe=Vs(c,ee);m(oe,ee)&&zc(V,Gi(ee,c),oe)}return V}function Boe(c){return function(d){return Vs(d,c)}}function A0(c,d,m,b){var x=b?VAe:Ga,V=-1,ee=d.length,oe=c;for(c===d&&(d=_A(d)),m&&(oe=Zt(c,jA(m)));++V<ee;)for(var ce=0,be=d[V],Ee=m?m(be):be;(ce=x(oe,Ee,ce,b))>-1;)oe!==c&&gh.call(oe,ce,1),gh.call(c,ce,1);return c}function A_(c,d){for(var m=c?d.length:0,b=m-1;m--;){var x=d[m];if(m==b||x!==V){var V=x;zo(x)?gh.call(c,x,1):s0(c,x)}}return c}function r0(c,d){return c+wh(LI()*(d-c+1))}function yoe(c,d,m,b){for(var x=-1,V=_n(yh((d-c)/(m||1)),0),ee=me(V);V--;)ee[b?V:++x]=c,c+=m;return ee}function o0(c,d){var m="";if(!c||d<1||d>E)return m;do d%2&&(m+=c),d=wh(d/2),d&&(c+=c);while(d);return m}function dt(c,d){return b0(T_(c,d,MA),c+"")}function woe(c){return PI(ol(c))}function Coe(c,d){var m=ol(c);return Lh(m,Rs(d,0,m.length))}function zc(c,d,m,b){if(!An(c))return c;d=Gi(d,c);for(var x=-1,V=d.length,ee=V-1,oe=c;oe!=null&&++x<V;){var ce=Bo(d[x]),be=m;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return c;if(x!=ee){var Ee=oe[ce];be=b?b(Ee,ce,oe):n,be===n&&(be=An(Ee)?Ee:zo(d[x+1])?[]:{})}Rc(oe,ce,be),oe=oe[ce]}return c}var r_=Ch?function(c,d){return Ch.set(c,d),c}:MA,boe=Bh?function(c,d){return Bh(c,"toString",{configurable:!0,enumerable:!1,value:_0(d),writable:!0})}:MA;function voe(c){return Lh(ol(c))}function Br(c,d,m){var b=-1,x=c.length;d<0&&(d=-d>x?0:x+d),m=m>x?x:m,m<0&&(m+=x),x=d>m?0:m-d>>>0,d>>>=0;for(var V=me(x);++b<x;)V[b]=c[b+d];return V}function Eoe(c,d){var m;return zi(c,function(b,x,V){return m=d(b,x,V),!m}),!!m}function Qh(c,d,m){var b=0,x=c==null?b:c.length;if(typeof d=="number"&&d===d&&x<=M){for(;b<x;){var V=b+x>>>1,ee=c[V];ee!==null&&!JA(ee)&&(m?ee<=d:ee<d)?b=V+1:x=V}return x}return i0(c,d,MA,m)}function i0(c,d,m,b){var x=0,V=c==null?0:c.length;if(V===0)return 0;d=m(d);for(var ee=d!==d,oe=d===null,ce=JA(d),be=d===n;x<V;){var Ee=wh((x+V)/2),Se=m(c[Ee]),De=Se!==n,$e=Se===null,Je=Se===Se,ct=JA(Se);if(ee)var Xe=b||Je;else be?Xe=Je&&(b||De):oe?Xe=Je&&De&&(b||!$e):ce?Xe=Je&&De&&!$e&&(b||!ct):$e||ct?Xe=!1:Xe=b?Se<=d:Se<d;Xe?x=Ee+1:V=Ee}return iA(V,W)}function o_(c,d){for(var m=-1,b=c.length,x=0,V=[];++m<b;){var ee=c[m],oe=d?d(ee):ee;if(!m||!$r(oe,ce)){var ce=oe;V[x++]=ee===0?0:ee}}return V}function i_(c){return typeof c=="number"?c:JA(c)?Q:+c}function qA(c){if(typeof c=="string")return c;if(rt(c))return Zt(c,qA)+"";if(JA(c))return NI?NI.call(c):"";var d=c+"";return d=="0"&&1/c==-k?"-0":d}function Wi(c,d,m){var b=-1,x=sh,V=c.length,ee=!0,oe=[],ce=oe;if(m)ee=!1,x=My;else if(V>=r){var be=d?null:Moe(c);if(be)return lh(be);ee=!1,x=Mc,ce=new Ps}else ce=d?[]:oe;e:for(;++b<V;){var Ee=c[b],Se=d?d(Ee):Ee;if(Ee=m||Ee!==0?Ee:0,ee&&Se===Se){for(var De=ce.length;De--;)if(ce[De]===Se)continue e;d&&ce.push(Se),oe.push(Ee)}else x(ce,Se,m)||(ce!==oe&&ce.push(Se),oe.push(Ee))}return oe}function s0(c,d){return d=Gi(d,c),c=D_(c,d),c==null||delete c[Bo(yr(d))]}function s_(c,d,m,b){return zc(c,d,m(Vs(c,d)),b)}function xh(c,d,m,b){for(var x=c.length,V=b?x:-1;(b?V--:++V<x)&&d(c[V],V,c););return m?Br(c,b?0:V,b?V+1:x):Br(c,b?V+1:0,b?x:V)}function a_(c,d){var m=c;return m instanceof gt&&(m=m.value()),Oy(d,function(b,x){return x.func.apply(x.thisArg,Vi([b],x.args))},m)}function a0(c,d,m){var b=c.length;if(b<2)return b?Wi(c[0]):[];for(var x=-1,V=me(b);++x<b;)for(var ee=c[x],oe=-1;++oe<b;)oe!=x&&(V[x]=Vc(V[x]||ee,c[oe],d,m));return Wi(Jn(V,1),d,m)}function l_(c,d,m){for(var b=-1,x=c.length,V=d.length,ee={};++b<x;){var oe=b<V?d[b]:n;m(ee,c[b],oe)}return ee}function l0(c){return Cn(c)?c:[]}function c0(c){return typeof c=="function"?c:MA}function Gi(c,d){return rt(c)?c:y0(c,d)?[c]:N_(xt(c))}var koe=dt;function Yi(c,d,m){var b=c.length;return m=m===n?b:m,!d&&m>=b?c:Br(c,d,m)}var c_=dre||function(c){return qn.clearTimeout(c)};function u_(c,d){if(d)return c.slice();var m=c.length,b=_I?_I(m):new c.constructor(m);return c.copy(b),b}function u0(c){var d=new c.constructor(c.byteLength);return new ph(d).set(new ph(c)),d}function Soe(c,d){var m=d?u0(c.buffer):c.buffer;return new c.constructor(m,c.byteOffset,c.byteLength)}function Foe(c){var d=new c.constructor(c.source,YU.exec(c));return d.lastIndex=c.lastIndex,d}function Qoe(c){return Pc?Pt(Pc.call(c)):{}}function d_(c,d){var m=d?u0(c.buffer):c.buffer;return new c.constructor(m,c.byteOffset,c.length)}function f_(c,d){if(c!==d){var m=c!==n,b=c===null,x=c===c,V=JA(c),ee=d!==n,oe=d===null,ce=d===d,be=JA(d);if(!oe&&!be&&!V&&c>d||V&&ee&&ce&&!oe&&!be||b&&ee&&ce||!m&&ce||!x)return 1;if(!b&&!V&&!be&&c<d||be&&m&&x&&!b&&!V||oe&&m&&x||!ee&&x||!ce)return-1}return 0}function xoe(c,d,m){for(var b=-1,x=c.criteria,V=d.criteria,ee=x.length,oe=m.length;++b<ee;){var ce=f_(x[b],V[b]);if(ce){if(b>=oe)return ce;var be=m[b];return ce*(be=="desc"?-1:1)}}return c.index-d.index}function h_(c,d,m,b){for(var x=-1,V=c.length,ee=m.length,oe=-1,ce=d.length,be=_n(V-ee,0),Ee=me(ce+be),Se=!b;++oe<ce;)Ee[oe]=d[oe];for(;++x<ee;)(Se||x<V)&&(Ee[m[x]]=c[x]);for(;be--;)Ee[oe++]=c[x++];return Ee}function p_(c,d,m,b){for(var x=-1,V=c.length,ee=-1,oe=m.length,ce=-1,be=d.length,Ee=_n(V-oe,0),Se=me(Ee+be),De=!b;++x<Ee;)Se[x]=c[x];for(var $e=x;++ce<be;)Se[$e+ce]=d[ce];for(;++ee<oe;)(De||x<V)&&(Se[$e+m[ee]]=c[x++]);return Se}function _A(c,d){var m=-1,b=c.length;for(d||(d=me(b));++m<b;)d[m]=c[m];return d}function go(c,d,m,b){var x=!m;m||(m={});for(var V=-1,ee=d.length;++V<ee;){var oe=d[V],ce=b?b(m[oe],c[oe],oe,m,c):n;ce===n&&(ce=c[oe]),x?Vo(m,oe,ce):Rc(m,oe,ce)}return m}function Uoe(c,d){return go(c,B0(c),d)}function Ioe(c,d){return go(c,Q_(c),d)}function Uh(c,d){return function(m,b){var x=rt(m)?OAe:Zre,V=d?d():{};return x(m,c,qe(b,2),V)}}function tl(c){return dt(function(d,m){var b=-1,x=m.length,V=x>1?m[x-1]:n,ee=x>2?m[2]:n;for(V=c.length>3&&typeof V=="function"?(x--,V):n,ee&&bA(m[0],m[1],ee)&&(V=x<3?n:V,x=1),d=Pt(d);++b<x;){var oe=m[b];oe&&c(d,oe,b,V)}return d})}function m_(c,d){return function(m,b){if(m==null)return m;if(!TA(m))return c(m,b);for(var x=m.length,V=d?x:-1,ee=Pt(m);(d?V--:++V<x)&&b(ee[V],V,ee)!==!1;);return m}}function g_(c){return function(d,m,b){for(var x=-1,V=Pt(d),ee=b(d),oe=ee.length;oe--;){var ce=ee[c?oe:++x];if(m(V[ce],ce,V)===!1)break}return d}}function _oe(c,d,m){var b=d&C,x=Wc(c);function V(){var ee=this&&this!==qn&&this instanceof V?x:c;return ee.apply(b?m:this,arguments)}return V}function B_(c){return function(d){d=xt(d);var m=Ya(d)?Rr(d):n,b=m?m[0]:d.charAt(0),x=m?Yi(m,1).join(""):d.slice(1);return b[c]()+x}}function nl(c){return function(d){return Oy(mT(pT(d).replace(bAe,"")),c,"")}}function Wc(c){return function(){var d=arguments;switch(d.length){case 0:return new c;case 1:return new c(d[0]);case 2:return new c(d[0],d[1]);case 3:return new c(d[0],d[1],d[2]);case 4:return new c(d[0],d[1],d[2],d[3]);case 5:return new c(d[0],d[1],d[2],d[3],d[4]);case 6:return new c(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new c(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var m=el(c.prototype),b=c.apply(m,d);return An(b)?b:m}}function Toe(c,d,m){var b=Wc(c);function x(){for(var V=arguments.length,ee=me(V),oe=V,ce=Al(x);oe--;)ee[oe]=arguments[oe];var be=V<3&&ee[0]!==ce&&ee[V-1]!==ce?[]:$i(ee,ce);if(V-=be.length,V<m)return v_(c,d,Ih,x.placeholder,n,ee,be,n,n,m-V);var Ee=this&&this!==qn&&this instanceof x?b:c;return YA(Ee,this,ee)}return x}function y_(c){return function(d,m,b){var x=Pt(d);if(!TA(d)){var V=qe(m,3);d=$n(d),m=function(oe){return V(x[oe],oe,x)}}var ee=c(d,m,b);return ee>-1?x[V?d[ee]:ee]:n}}function w_(c){return Ko(function(d){var m=d.length,b=m,x=mr.prototype.thru;for(c&&d.reverse();b--;){var V=d[b];if(typeof V!="function")throw new pr(i);if(x&&!ee&&Mh(V)=="wrapper")var ee=new mr([],!0)}for(b=ee?b:m;++b<m;){V=d[b];var oe=Mh(V),ce=oe=="wrapper"?m0(V):n;ce&&w0(ce[0])&&ce[1]==(H|_|P|te)&&!ce[4].length&&ce[9]==1?ee=ee[Mh(ce[0])].apply(ee,ce[3]):ee=V.length==1&&w0(V)?ee[oe]():ee.thru(V)}return function(){var be=arguments,Ee=be[0];if(ee&&be.length==1&&rt(Ee))return ee.plant(Ee).value();for(var Se=0,De=m?d[Se].apply(this,be):Ee;++Se<m;)De=d[Se].call(this,De);return De}})}function Ih(c,d,m,b,x,V,ee,oe,ce,be){var Ee=d&H,Se=d&C,De=d&w,$e=d&(_|D),Je=d&Z,ct=De?n:Wc(c);function Xe(){for(var ft=arguments.length,yt=me(ft),XA=ft;XA--;)yt[XA]=arguments[XA];if($e)var vA=Al(Xe),ZA=zAe(yt,vA);if(b&&(yt=h_(yt,b,x,$e)),V&&(yt=p_(yt,V,ee,$e)),ft-=ZA,$e&&ft<be){var bn=$i(yt,vA);return v_(c,d,Ih,Xe.placeholder,m,yt,bn,oe,ce,be-ft)}var Kr=Se?m:this,Yo=De?Kr[c]:c;return ft=yt.length,oe?yt=Zoe(yt,oe):Je&&ft>1&&yt.reverse(),Ee&&ce<ft&&(yt.length=ce),this&&this!==qn&&this instanceof Xe&&(Yo=ct||Wc(Yo)),Yo.apply(Kr,yt)}return Xe}function C_(c,d){return function(m,b){return soe(m,c,d(b),{})}}function _h(c,d){return function(m,b){var x;if(m===n&&b===n)return d;if(m!==n&&(x=m),b!==n){if(x===n)return b;typeof m=="string"||typeof b=="string"?(m=qA(m),b=qA(b)):(m=i_(m),b=i_(b)),x=c(m,b)}return x}}function d0(c){return Ko(function(d){return d=Zt(d,jA(qe())),dt(function(m){var b=this;return c(d,function(x){return YA(x,b,m)})})})}function Th(c,d){d=d===n?" ":qA(d);var m=d.length;if(m<2)return m?o0(d,c):d;var b=o0(d,yh(c/ja(d)));return Ya(d)?Yi(Rr(b),0,c).join(""):b.slice(0,c)}function Doe(c,d,m,b){var x=d&C,V=Wc(c);function ee(){for(var oe=-1,ce=arguments.length,be=-1,Ee=b.length,Se=me(Ee+ce),De=this&&this!==qn&&this instanceof ee?V:c;++be<Ee;)Se[be]=b[be];for(;ce--;)Se[be++]=arguments[++oe];return YA(De,x?m:this,Se)}return ee}function b_(c){return function(d,m,b){return b&&typeof b!="number"&&bA(d,m,b)&&(m=b=n),d=Go(d),m===n?(m=d,d=0):m=Go(m),b=b===n?d<m?1:-1:Go(b),yoe(d,m,b,c)}}function Dh(c){return function(d,m){return typeof d=="string"&&typeof m=="string"||(d=wr(d),m=wr(m)),c(d,m)}}function v_(c,d,m,b,x,V,ee,oe,ce,be){var Ee=d&_,Se=Ee?ee:n,De=Ee?n:ee,$e=Ee?V:n,Je=Ee?n:V;d|=Ee?P:T,d&=~(Ee?T:P),d&F||(d&=-4);var ct=[c,d,x,$e,Se,Je,De,oe,ce,be],Xe=m.apply(n,ct);return w0(c)&&M_(Xe,ct),Xe.placeholder=b,O_(Xe,c,d)}function f0(c){var d=In[c];return function(m,b){if(m=wr(m),b=b==null?0:iA(at(b),292),b&&OI(m)){var x=(xt(m)+"e").split("e"),V=d(x[0]+"e"+(+x[1]+b));return x=(xt(V)+"e").split("e"),+(x[0]+"e"+(+x[1]-b))}return d(m)}}var Moe=Xa&&1/lh(new Xa([,-0]))[1]==k?function(c){return new Xa(c)}:M0;function E_(c){return function(d){var m=sA(d);return m==z?$y(d):m==ye?XAe(d):KAe(d,c(d))}}function $o(c,d,m,b,x,V,ee,oe){var ce=d&w;if(!ce&&typeof c!="function")throw new pr(i);var be=b?b.length:0;if(be||(d&=-97,b=x=n),ee=ee===n?ee:_n(at(ee),0),oe=oe===n?oe:at(oe),be-=x?x.length:0,d&T){var Ee=b,Se=x;b=x=n}var De=ce?n:m0(c),$e=[c,d,m,b,x,Ee,Se,V,ee,oe];if(De&&qoe($e,De),c=$e[0],d=$e[1],m=$e[2],b=$e[3],x=$e[4],oe=$e[9]=$e[9]===n?ce?0:c.length:_n($e[9]-be,0),!oe&&d&(_|D)&&(d&=-25),!d||d==C)var Je=_oe(c,d,m);else d==_||d==D?Je=Toe(c,d,oe):(d==P||d==(C|P))&&!x.length?Je=Doe(c,d,m,b):Je=Ih.apply(n,$e);var ct=De?r_:M_;return O_(ct(Je,$e),c,d)}function k_(c,d,m,b){return c===n||$r(c,Ja[m])&&!Dt.call(b,m)?d:c}function S_(c,d,m,b,x,V){return An(c)&&An(d)&&(V.set(d,c),Fh(c,d,n,S_,V),V.delete(d)),c}function Ooe(c){return jc(c)?n:c}function F_(c,d,m,b,x,V){var ee=m&B,oe=c.length,ce=d.length;if(oe!=ce&&!(ee&&ce>oe))return!1;var be=V.get(c),Ee=V.get(d);if(be&&Ee)return be==d&&Ee==c;var Se=-1,De=!0,$e=m&y?new Ps:n;for(V.set(c,d),V.set(d,c);++Se<oe;){var Je=c[Se],ct=d[Se];if(b)var Xe=ee?b(ct,Je,Se,d,c,V):b(Je,ct,Se,c,d,V);if(Xe!==n){if(Xe)continue;De=!1;break}if($e){if(!Ly(d,function(ft,yt){if(!Mc($e,yt)&&(Je===ft||x(Je,ft,m,b,V)))return $e.push(yt)})){De=!1;break}}else if(!(Je===ct||x(Je,ct,m,b,V))){De=!1;break}}return V.delete(c),V.delete(d),De}function Loe(c,d,m,b,x,V,ee){switch(m){case ke:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case Ue:return!(c.byteLength!=d.byteLength||!V(new ph(c),new ph(d)));case G:case ue:case U:return $r(+c,+d);case Ae:return c.name==d.name&&c.message==d.message;case ae:case Te:return c==d+"";case z:var oe=$y;case ye:var ce=b&B;if(oe||(oe=lh),c.size!=d.size&&!ce)return!1;var be=ee.get(c);if(be)return be==d;b|=y,ee.set(c,d);var Ee=F_(oe(c),oe(d),b,x,V,ee);return ee.delete(c),Ee;case ie:if(Pc)return Pc.call(c)==Pc.call(d)}return!1}function Noe(c,d,m,b,x,V){var ee=m&B,oe=h0(c),ce=oe.length,be=h0(d),Ee=be.length;if(ce!=Ee&&!ee)return!1;for(var Se=ce;Se--;){var De=oe[Se];if(!(ee?De in d:Dt.call(d,De)))return!1}var $e=V.get(c),Je=V.get(d);if($e&&Je)return $e==d&&Je==c;var ct=!0;V.set(c,d),V.set(d,c);for(var Xe=ee;++Se<ce;){De=oe[Se];var ft=c[De],yt=d[De];if(b)var XA=ee?b(yt,ft,De,d,c,V):b(ft,yt,De,c,d,V);if(!(XA===n?ft===yt||x(ft,yt,m,b,V):XA)){ct=!1;break}Xe||(Xe=De=="constructor")}if(ct&&!Xe){var vA=c.constructor,ZA=d.constructor;vA!=ZA&&"constructor"in c&&"constructor"in d&&!(typeof vA=="function"&&vA instanceof vA&&typeof ZA=="function"&&ZA instanceof ZA)&&(ct=!1)}return V.delete(c),V.delete(d),ct}function Ko(c){return b0(T_(c,n,V_),c+"")}function h0(c){return GI(c,$n,B0)}function p0(c){return GI(c,DA,Q_)}var m0=Ch?function(c){return Ch.get(c)}:M0;function Mh(c){for(var d=c.name+"",m=Za[d],b=Dt.call(Za,d)?m.length:0;b--;){var x=m[b],V=x.func;if(V==null||V==c)return x.name}return d}function Al(c){var d=Dt.call(O,"placeholder")?O:c;return d.placeholder}function qe(){var c=O.iteratee||T0;return c=c===T0?qI:c,arguments.length?c(arguments[0],arguments[1]):c}function Oh(c,d){var m=c.__data__;return Woe(d)?m[typeof d=="string"?"string":"hash"]:m.map}function g0(c){for(var d=$n(c),m=d.length;m--;){var b=d[m],x=c[b];d[m]=[b,x,I_(x)]}return d}function $s(c,d){var m=jAe(c,d);return jI(m)?m:n}function Hoe(c){var d=Dt.call(c,Ns),m=c[Ns];try{c[Ns]=n;var b=!0}catch{}var x=fh.call(c);return b&&(d?c[Ns]=m:delete c[Ns]),x}var B0=zy?function(c){return c==null?[]:(c=Pt(c),Ri(zy(c),function(d){return DI.call(c,d)}))}:O0,Q_=zy?function(c){for(var d=[];c;)Vi(d,B0(c)),c=mh(c);return d}:O0,sA=CA;(Wy&&sA(new Wy(new ArrayBuffer(1)))!=ke||Lc&&sA(new Lc)!=z||Gy&&sA(Gy.resolve())!=L||Xa&&sA(new Xa)!=ye||Nc&&sA(new Nc)!=se)&&(sA=function(c){var d=CA(c),m=d==de?c.constructor:n,b=m?Ks(m):"";if(b)switch(b){case Cre:return ke;case bre:return z;case vre:return L;case Ere:return ye;case kre:return se}return d});function Poe(c,d,m){for(var b=-1,x=m.length;++b<x;){var V=m[b],ee=V.size;switch(V.type){case"drop":c+=ee;break;case"dropRight":d-=ee;break;case"take":d=iA(d,c+ee);break;case"takeRight":c=_n(c,d-ee);break}}return{start:c,end:d}}function Roe(c){var d=c.match(Gne);return d?d[1].split(Yne):[]}function x_(c,d,m){d=Gi(d,c);for(var b=-1,x=d.length,V=!1;++b<x;){var ee=Bo(d[b]);if(!(V=c!=null&&m(c,ee)))break;c=c[ee]}return V||++b!=x?V:(x=c==null?0:c.length,!!x&&$h(x)&&zo(ee,x)&&(rt(c)||zs(c)))}function Voe(c){var d=c.length,m=new c.constructor(d);return d&&typeof c[0]=="string"&&Dt.call(c,"index")&&(m.index=c.index,m.input=c.input),m}function U_(c){return typeof c.constructor=="function"&&!Gc(c)?el(mh(c)):{}}function $oe(c,d,m){var b=c.constructor;switch(d){case Ue:return u0(c);case G:case ue:return new b(+c);case ke:return Soe(c,m);case Ye:case Ve:case Ct:case wt:case Nt:case wA:case GA:case Un:case Os:return d_(c,m);case z:return new b;case U:case Te:return new b(c);case ae:return Foe(c);case ye:return new b;case ie:return Qoe(c)}}function Koe(c,d){var m=d.length;if(!m)return c;var b=m-1;return d[b]=(m>1?"& ":"")+d[b],d=d.join(m>2?", ":" "),c.replace(Wne,`{
125
125
  /* [wrapped with `+d+`] */
126
- `)}function Voe(c){return rt(c)||zs(c)||!!(MI&&c&&c[MI])}function zo(c,d){var m=typeof c;return d=d??E,!!d&&(m=="number"||m!="symbol"&&eAe.test(c))&&c>-1&&c%1==0&&c<d}function bA(c,d,m){if(!An(m))return!1;var b=typeof d;return(b=="number"?TA(m)&&zo(d,m.length):b=="string"&&d in m)?$r(m[d],c):!1}function y0(c,d){if(rt(c))return!1;var m=typeof c;return m=="number"||m=="symbol"||m=="boolean"||c==null||JA(c)?!0:Dc.test(c)||!po.test(c)||d!=null&&c in Pt(d)}function $oe(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function w0(c){var d=Mh(c),m=O[d];if(typeof m!="function"||!(d in gt.prototype))return!1;if(c===m)return!0;var b=m0(m);return!!b&&c===b[0]}function Koe(c){return!!II&&II in c}var zoe=uh?Wo:L0;function Gc(c){var d=c&&c.constructor,m=typeof d=="function"&&d.prototype||Ja;return c===m}function I_(c){return c===c&&!An(c)}function __(c,d){return function(m){return m==null?!1:m[c]===d&&(d!==n||c in Pt(m))}}function Woe(c){var d=Rh(c,function(b){return m.size===u&&m.clear(),b}),m=d.cache;return d}function Goe(c,d){var m=c[1],b=d[1],x=m|b,V=x<(C|w|H),ee=b==H&&m==_||b==H&&m==te&&c[7].length<=d[8]||b==(H|te)&&d[7].length<=d[8]&&m==_;if(!(V||ee))return c;b&C&&(c[2]=d[2],x|=m&C?0:F);var oe=d[3];if(oe){var ce=c[3];c[3]=ce?h_(ce,oe,d[4]):oe,c[4]=ce?$i(c[3],f):d[4]}return oe=d[5],oe&&(ce=c[5],c[5]=ce?p_(ce,oe,d[6]):oe,c[6]=ce?$i(c[5],f):d[6]),oe=d[7],oe&&(c[7]=oe),b&H&&(c[8]=c[8]==null?d[8]:iA(c[8],d[8])),c[9]==null&&(c[9]=d[9]),c[0]=d[0],c[1]=x,c}function Yoe(c){var d=[];if(c!=null)for(var m in Pt(c))d.push(m);return d}function joe(c){return fh.call(c)}function T_(c,d,m){return d=_n(d===n?c.length-1:d,0),function(){for(var b=arguments,x=-1,V=_n(b.length-d,0),ee=me(V);++x<V;)ee[x]=b[d+x];x=-1;for(var oe=me(d+1);++x<d;)oe[x]=b[x];return oe[d]=m(ee),YA(c,this,oe)}}function D_(c,d){return d.length<2?c:Vs(c,Br(d,0,-1))}function qoe(c,d){for(var m=c.length,b=iA(d.length,m),x=_A(c);b--;){var V=d[b];c[b]=zo(V,m)?x[V]:n}return c}function C0(c,d){if(!(d==="constructor"&&typeof c[d]=="function")&&d!="__proto__")return c[d]}var M_=L_(r_),Yc=ure||function(c,d){return qn.setTimeout(c,d)},b0=L_(yoe);function O_(c,d,m){var b=d+"";return b0(c,Roe(b,Joe(Noe(b),m)))}function L_(c){var d=0,m=0;return function(){var b=pre(),x=we-(b-m);if(m=b,x>0){if(++d>=Be)return arguments[0]}else d=0;return c.apply(n,arguments)}}function Lh(c,d){var m=-1,b=c.length,x=b-1;for(d=d===n?b:d;++m<d;){var V=r0(m,x),ee=c[V];c[V]=c[m],c[m]=ee}return c.length=d,c}var N_=Woe(function(c){var d=[];return c.charCodeAt(0)===46&&d.push(""),c.replace(ky,function(m,b,x,V){d.push(x?V.replace(Yne,"$1"):b||m)}),d});function Bo(c){if(typeof c=="string"||JA(c))return c;var d=c+"";return d=="0"&&1/c==-k?"-0":d}function Ks(c){if(c!=null){try{return dh.call(c)}catch{}try{return c+""}catch{}}return""}function Joe(c,d){return hr($,function(m){var b="_."+m[0];d&m[1]&&!sh(c,b)&&c.push(b)}),c.sort()}function H_(c){if(c instanceof gt)return c.clone();var d=new mr(c.__wrapped__,c.__chain__);return d.__actions__=_A(c.__actions__),d.__index__=c.__index__,d.__values__=c.__values__,d}function Xoe(c,d,m){(m?bA(c,d,m):d===n)?d=1:d=_n(at(d),0);var b=c==null?0:c.length;if(!b||d<1)return[];for(var x=0,V=0,ee=me(yh(b/d));x<b;)ee[V++]=Br(c,x,x+=d);return ee}function Zoe(c){for(var d=-1,m=c==null?0:c.length,b=0,x=[];++d<m;){var V=c[d];V&&(x[b++]=V)}return x}function eie(){var c=arguments.length;if(!c)return[];for(var d=me(c-1),m=arguments[0],b=c;b--;)d[b-1]=arguments[b];return Vi(rt(m)?_A(m):[m],Jn(d,1))}var tie=dt(function(c,d){return Cn(c)?Vc(c,Jn(d,1,Cn,!0)):[]}),nie=dt(function(c,d){var m=yr(d);return Cn(m)&&(m=n),Cn(c)?Vc(c,Jn(d,1,Cn,!0),qe(m,2)):[]}),Aie=dt(function(c,d){var m=yr(d);return Cn(m)&&(m=n),Cn(c)?Vc(c,Jn(d,1,Cn,!0),n,m):[]});function rie(c,d,m){var b=c==null?0:c.length;return b?(d=m||d===n?1:at(d),Br(c,d<0?0:d,b)):[]}function oie(c,d,m){var b=c==null?0:c.length;return b?(d=m||d===n?1:at(d),d=b-d,Br(c,0,d<0?0:d)):[]}function iie(c,d){return c&&c.length?xh(c,qe(d,3),!0,!0):[]}function sie(c,d){return c&&c.length?xh(c,qe(d,3),!0):[]}function aie(c,d,m,b){var x=c==null?0:c.length;return x?(m&&typeof m!="number"&&bA(c,d,m)&&(m=0,b=x),eoe(c,d,m,b)):[]}function P_(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=m==null?0:at(m);return x<0&&(x=_n(b+x,0)),ah(c,qe(d,3),x)}function R_(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=b-1;return m!==n&&(x=at(m),x=m<0?_n(b+x,0):iA(x,b-1)),ah(c,qe(d,3),x,!0)}function V_(c){var d=c==null?0:c.length;return d?Jn(c,1):[]}function lie(c){var d=c==null?0:c.length;return d?Jn(c,k):[]}function cie(c,d){var m=c==null?0:c.length;return m?(d=d===n?1:at(d),Jn(c,d)):[]}function uie(c){for(var d=-1,m=c==null?0:c.length,b={};++d<m;){var x=c[d];b[x[0]]=x[1]}return b}function $_(c){return c&&c.length?c[0]:n}function die(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=m==null?0:at(m);return x<0&&(x=_n(b+x,0)),Ga(c,d,x)}function fie(c){var d=c==null?0:c.length;return d?Br(c,0,-1):[]}var hie=dt(function(c){var d=Zt(c,l0);return d.length&&d[0]===c[0]?Zy(d):[]}),pie=dt(function(c){var d=yr(c),m=Zt(c,l0);return d===yr(m)?d=n:m.pop(),m.length&&m[0]===c[0]?Zy(m,qe(d,2)):[]}),mie=dt(function(c){var d=yr(c),m=Zt(c,l0);return d=typeof d=="function"?d:n,d&&m.pop(),m.length&&m[0]===c[0]?Zy(m,n,d):[]});function gie(c,d){return c==null?"":fre.call(c,d)}function yr(c){var d=c==null?0:c.length;return d?c[d-1]:n}function Bie(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=b;return m!==n&&(x=at(m),x=x<0?_n(b+x,0):iA(x,b-1)),d===d?JAe(c,d,x):ah(c,vI,x,!0)}function yie(c,d){return c&&c.length?e_(c,at(d)):n}var wie=dt(K_);function K_(c,d){return c&&c.length&&d&&d.length?A0(c,d):c}function Cie(c,d,m){return c&&c.length&&d&&d.length?A0(c,d,qe(m,2)):c}function bie(c,d,m){return c&&c.length&&d&&d.length?A0(c,d,n,m):c}var vie=Ko(function(c,d){var m=c==null?0:c.length,b=jy(c,d);return A_(c,Zt(d,function(x){return zo(x,m)?+x:x}).sort(f_)),b});function Eie(c,d){var m=[];if(!(c&&c.length))return m;var b=-1,x=[],V=c.length;for(d=qe(d,3);++b<V;){var ee=c[b];d(ee,b,c)&&(m.push(ee),x.push(b))}return A_(c,x),m}function v0(c){return c==null?c:gre.call(c)}function kie(c,d,m){var b=c==null?0:c.length;return b?(m&&typeof m!="number"&&bA(c,d,m)?(d=0,m=b):(d=d==null?0:at(d),m=m===n?b:at(m)),Br(c,d,m)):[]}function Sie(c,d){return Qh(c,d)}function Fie(c,d,m){return i0(c,d,qe(m,2))}function Qie(c,d){var m=c==null?0:c.length;if(m){var b=Qh(c,d);if(b<m&&$r(c[b],d))return b}return-1}function xie(c,d){return Qh(c,d,!0)}function Uie(c,d,m){return i0(c,d,qe(m,2),!0)}function Iie(c,d){var m=c==null?0:c.length;if(m){var b=Qh(c,d,!0)-1;if($r(c[b],d))return b}return-1}function _ie(c){return c&&c.length?o_(c):[]}function Tie(c,d){return c&&c.length?o_(c,qe(d,2)):[]}function Die(c){var d=c==null?0:c.length;return d?Br(c,1,d):[]}function Mie(c,d,m){return c&&c.length?(d=m||d===n?1:at(d),Br(c,0,d<0?0:d)):[]}function Oie(c,d,m){var b=c==null?0:c.length;return b?(d=m||d===n?1:at(d),d=b-d,Br(c,d<0?0:d,b)):[]}function Lie(c,d){return c&&c.length?xh(c,qe(d,3),!1,!0):[]}function Nie(c,d){return c&&c.length?xh(c,qe(d,3)):[]}var Hie=dt(function(c){return Wi(Jn(c,1,Cn,!0))}),Pie=dt(function(c){var d=yr(c);return Cn(d)&&(d=n),Wi(Jn(c,1,Cn,!0),qe(d,2))}),Rie=dt(function(c){var d=yr(c);return d=typeof d=="function"?d:n,Wi(Jn(c,1,Cn,!0),n,d)});function Vie(c){return c&&c.length?Wi(c):[]}function $ie(c,d){return c&&c.length?Wi(c,qe(d,2)):[]}function Kie(c,d){return d=typeof d=="function"?d:n,c&&c.length?Wi(c,n,d):[]}function E0(c){if(!(c&&c.length))return[];var d=0;return c=Ri(c,function(m){if(Cn(m))return d=_n(m.length,d),!0}),Ry(d,function(m){return Zt(c,Ny(m))})}function z_(c,d){if(!(c&&c.length))return[];var m=E0(c);return d==null?m:Zt(m,function(b){return YA(d,n,b)})}var zie=dt(function(c,d){return Cn(c)?Vc(c,d):[]}),Wie=dt(function(c){return a0(Ri(c,Cn))}),Gie=dt(function(c){var d=yr(c);return Cn(d)&&(d=n),a0(Ri(c,Cn),qe(d,2))}),Yie=dt(function(c){var d=yr(c);return d=typeof d=="function"?d:n,a0(Ri(c,Cn),n,d)}),jie=dt(E0);function qie(c,d){return l_(c||[],d||[],Rc)}function Jie(c,d){return l_(c||[],d||[],zc)}var Xie=dt(function(c){var d=c.length,m=d>1?c[d-1]:n;return m=typeof m=="function"?(c.pop(),m):n,z_(c,m)});function W_(c){var d=O(c);return d.__chain__=!0,d}function Zie(c,d){return d(c),c}function Nh(c,d){return d(c)}var ese=Ko(function(c){var d=c.length,m=d?c[0]:0,b=this.__wrapped__,x=function(V){return jy(V,c)};return d>1||this.__actions__.length||!(b instanceof gt)||!zo(m)?this.thru(x):(b=b.slice(m,+m+(d?1:0)),b.__actions__.push({func:Nh,args:[x],thisArg:n}),new mr(b,this.__chain__).thru(function(V){return d&&!V.length&&V.push(n),V}))});function tse(){return W_(this)}function nse(){return new mr(this.value(),this.__chain__)}function Ase(){this.__values__===n&&(this.__values__=iT(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function rse(){return this}function ose(c){for(var d,m=this;m instanceof vh;){var b=H_(m);b.__index__=0,b.__values__=n,d?x.__wrapped__=b:d=b;var x=b;m=m.__wrapped__}return x.__wrapped__=c,d}function ise(){var c=this.__wrapped__;if(c instanceof gt){var d=c;return this.__actions__.length&&(d=new gt(this)),d=d.reverse(),d.__actions__.push({func:Nh,args:[v0],thisArg:n}),new mr(d,this.__chain__)}return this.thru(v0)}function sse(){return a_(this.__wrapped__,this.__actions__)}var ase=Uh(function(c,d,m){Dt.call(c,m)?++c[m]:Vo(c,m,1)});function lse(c,d,m){var b=rt(c)?CI:Zre;return m&&bA(c,d,m)&&(d=n),b(c,qe(d,3))}function cse(c,d){var m=rt(c)?Ri:zI;return m(c,qe(d,3))}var use=y_(P_),dse=y_(R_);function fse(c,d){return Jn(Hh(c,d),1)}function hse(c,d){return Jn(Hh(c,d),k)}function pse(c,d,m){return m=m===n?1:at(m),Jn(Hh(c,d),m)}function G_(c,d){var m=rt(c)?hr:zi;return m(c,qe(d,3))}function Y_(c,d){var m=rt(c)?DAe:KI;return m(c,qe(d,3))}var mse=Uh(function(c,d,m){Dt.call(c,m)?c[m].push(d):Vo(c,m,[d])});function gse(c,d,m,b){c=TA(c)?c:ol(c),m=m&&!b?at(m):0;var x=c.length;return m<0&&(m=_n(x+m,0)),Kh(c)?m<=x&&c.indexOf(d,m)>-1:!!x&&Ga(c,d,m)>-1}var Bse=dt(function(c,d,m){var b=-1,x=typeof d=="function",V=TA(c)?me(c.length):[];return zi(c,function(ee){V[++b]=x?YA(d,ee,m):$c(ee,d,m)}),V}),yse=Uh(function(c,d,m){Vo(c,m,d)});function Hh(c,d){var m=rt(c)?Zt:JI;return m(c,qe(d,3))}function wse(c,d,m,b){return c==null?[]:(rt(d)||(d=d==null?[]:[d]),m=b?n:m,rt(m)||(m=m==null?[]:[m]),t_(c,d,m))}var Cse=Uh(function(c,d,m){c[m?0:1].push(d)},function(){return[[],[]]});function bse(c,d,m){var b=rt(c)?Oy:kI,x=arguments.length<3;return b(c,qe(d,4),m,x,zi)}function vse(c,d,m){var b=rt(c)?MAe:kI,x=arguments.length<3;return b(c,qe(d,4),m,x,KI)}function Ese(c,d){var m=rt(c)?Ri:zI;return m(c,Vh(qe(d,3)))}function kse(c){var d=rt(c)?PI:goe;return d(c)}function Sse(c,d,m){(m?bA(c,d,m):d===n)?d=1:d=at(d);var b=rt(c)?Yre:Boe;return b(c,d)}function Fse(c){var d=rt(c)?jre:woe;return d(c)}function Qse(c){if(c==null)return 0;if(TA(c))return Kh(c)?ja(c):c.length;var d=sA(c);return d==z||d==ye?c.size:t0(c).length}function xse(c,d,m){var b=rt(c)?Ly:Coe;return m&&bA(c,d,m)&&(d=n),b(c,qe(d,3))}var Use=dt(function(c,d){if(c==null)return[];var m=d.length;return m>1&&bA(c,d[0],d[1])?d=[]:m>2&&bA(d[0],d[1],d[2])&&(d=[d[0]]),t_(c,Jn(d,1),[])}),Ph=cre||function(){return qn.Date.now()};function Ise(c,d){if(typeof d!="function")throw new pr(i);return c=at(c),function(){if(--c<1)return d.apply(this,arguments)}}function j_(c,d,m){return d=m?n:d,d=c&&d==null?c.length:d,$o(c,H,n,n,n,n,d)}function q_(c,d){var m;if(typeof d!="function")throw new pr(i);return c=at(c),function(){return--c>0&&(m=d.apply(this,arguments)),c<=1&&(d=n),m}}var k0=dt(function(c,d,m){var b=C;if(m.length){var x=$i(m,Al(k0));b|=P}return $o(c,b,d,m,x)}),J_=dt(function(c,d,m){var b=C|w;if(m.length){var x=$i(m,Al(J_));b|=P}return $o(d,b,c,m,x)});function X_(c,d,m){d=m?n:d;var b=$o(c,_,n,n,n,n,n,d);return b.placeholder=X_.placeholder,b}function Z_(c,d,m){d=m?n:d;var b=$o(c,D,n,n,n,n,n,d);return b.placeholder=Z_.placeholder,b}function eT(c,d,m){var b,x,V,ee,oe,ce,be=0,Ee=!1,Se=!1,De=!0;if(typeof c!="function")throw new pr(i);d=wr(d)||0,An(m)&&(Ee=!!m.leading,Se="maxWait"in m,V=Se?_n(wr(m.maxWait)||0,d):V,De="trailing"in m?!!m.trailing:De);function $e(bn){var Kr=b,Yo=x;return b=x=n,be=bn,ee=c.apply(Yo,Kr),ee}function Je(bn){return be=bn,oe=Yc(ft,d),Ee?$e(bn):ee}function ct(bn){var Kr=bn-ce,Yo=bn-be,yT=d-Kr;return Se?iA(yT,V-Yo):yT}function Xe(bn){var Kr=bn-ce,Yo=bn-be;return ce===n||Kr>=d||Kr<0||Se&&Yo>=V}function ft(){var bn=Ph();if(Xe(bn))return yt(bn);oe=Yc(ft,ct(bn))}function yt(bn){return oe=n,De&&b?$e(bn):(b=x=n,ee)}function XA(){oe!==n&&c_(oe),be=0,b=ce=x=oe=n}function vA(){return oe===n?ee:yt(Ph())}function ZA(){var bn=Ph(),Kr=Xe(bn);if(b=arguments,x=this,ce=bn,Kr){if(oe===n)return Je(ce);if(Se)return c_(oe),oe=Yc(ft,d),$e(ce)}return oe===n&&(oe=Yc(ft,d)),ee}return ZA.cancel=XA,ZA.flush=vA,ZA}var _se=dt(function(c,d){return $I(c,1,d)}),Tse=dt(function(c,d,m){return $I(c,wr(d)||0,m)});function Dse(c){return $o(c,Z)}function Rh(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new pr(i);var m=function(){var b=arguments,x=d?d.apply(this,b):b[0],V=m.cache;if(V.has(x))return V.get(x);var ee=c.apply(this,b);return m.cache=V.set(x,ee)||V,ee};return m.cache=new(Rh.Cache||Ro),m}Rh.Cache=Ro;function Vh(c){if(typeof c!="function")throw new pr(i);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function Mse(c){return q_(2,c)}var Ose=boe(function(c,d){d=d.length==1&&rt(d[0])?Zt(d[0],jA(qe())):Zt(Jn(d,1),jA(qe()));var m=d.length;return dt(function(b){for(var x=-1,V=iA(b.length,m);++x<V;)b[x]=d[x].call(this,b[x]);return YA(c,this,b)})}),S0=dt(function(c,d){var m=$i(d,Al(S0));return $o(c,P,n,d,m)}),tT=dt(function(c,d){var m=$i(d,Al(tT));return $o(c,T,n,d,m)}),Lse=Ko(function(c,d){return $o(c,te,n,n,n,d)});function Nse(c,d){if(typeof c!="function")throw new pr(i);return d=d===n?d:at(d),dt(c,d)}function Hse(c,d){if(typeof c!="function")throw new pr(i);return d=d==null?0:_n(at(d),0),dt(function(m){var b=m[d],x=Yi(m,0,d);return b&&Vi(x,b),YA(c,this,x)})}function Pse(c,d,m){var b=!0,x=!0;if(typeof c!="function")throw new pr(i);return An(m)&&(b="leading"in m?!!m.leading:b,x="trailing"in m?!!m.trailing:x),eT(c,d,{leading:b,maxWait:d,trailing:x})}function Rse(c){return j_(c,1)}function Vse(c,d){return S0(c0(d),c)}function $se(){if(!arguments.length)return[];var c=arguments[0];return rt(c)?c:[c]}function Kse(c){return gr(c,g)}function zse(c,d){return d=typeof d=="function"?d:n,gr(c,g,d)}function Wse(c){return gr(c,h|g)}function Gse(c,d){return d=typeof d=="function"?d:n,gr(c,h|g,d)}function Yse(c,d){return d==null||VI(c,d,$n(d))}function $r(c,d){return c===d||c!==c&&d!==d}var jse=Dh(Xy),qse=Dh(function(c,d){return c>=d}),zs=YI((function(){return arguments})())?YI:function(c){return cn(c)&&Dt.call(c,"callee")&&!DI.call(c,"callee")},rt=me.isArray,Jse=pI?jA(pI):ooe;function TA(c){return c!=null&&$h(c.length)&&!Wo(c)}function Cn(c){return cn(c)&&TA(c)}function Xse(c){return c===!0||c===!1||cn(c)&&CA(c)==G}var ji=dre||L0,Zse=mI?jA(mI):ioe;function eae(c){return cn(c)&&c.nodeType===1&&!jc(c)}function tae(c){if(c==null)return!0;if(TA(c)&&(rt(c)||typeof c=="string"||typeof c.splice=="function"||ji(c)||rl(c)||zs(c)))return!c.length;var d=sA(c);if(d==z||d==ye)return!c.size;if(Gc(c))return!t0(c).length;for(var m in c)if(Dt.call(c,m))return!1;return!0}function nae(c,d){return Kc(c,d)}function Aae(c,d,m){m=typeof m=="function"?m:n;var b=m?m(c,d):n;return b===n?Kc(c,d,n,m):!!b}function F0(c){if(!cn(c))return!1;var d=CA(c);return d==Ae||d==xe||typeof c.message=="string"&&typeof c.name=="string"&&!jc(c)}function rae(c){return typeof c=="number"&&OI(c)}function Wo(c){if(!An(c))return!1;var d=CA(c);return d==X||d==q||d==S||d==Y}function nT(c){return typeof c=="number"&&c==at(c)}function $h(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=E}function An(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function cn(c){return c!=null&&typeof c=="object"}var AT=gI?jA(gI):aoe;function oae(c,d){return c===d||e0(c,d,g0(d))}function iae(c,d,m){return m=typeof m=="function"?m:n,e0(c,d,g0(d),m)}function sae(c){return rT(c)&&c!=+c}function aae(c){if(zoe(c))throw new At(o);return jI(c)}function lae(c){return c===null}function cae(c){return c==null}function rT(c){return typeof c=="number"||cn(c)&&CA(c)==U}function jc(c){if(!cn(c)||CA(c)!=de)return!1;var d=mh(c);if(d===null)return!0;var m=Dt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&dh.call(m)==ire}var Q0=BI?jA(BI):loe;function uae(c){return nT(c)&&c>=-E&&c<=E}var oT=yI?jA(yI):coe;function Kh(c){return typeof c=="string"||!rt(c)&&cn(c)&&CA(c)==Te}function JA(c){return typeof c=="symbol"||cn(c)&&CA(c)==ie}var rl=wI?jA(wI):uoe;function dae(c){return c===n}function fae(c){return cn(c)&&sA(c)==se}function hae(c){return cn(c)&&CA(c)==he}var pae=Dh(n0),mae=Dh(function(c,d){return c<=d});function iT(c){if(!c)return[];if(TA(c))return Kh(c)?Rr(c):_A(c);if(Oc&&c[Oc])return YAe(c[Oc]());var d=sA(c),m=d==z?$y:d==ye?lh:ol;return m(c)}function Go(c){if(!c)return c===0?c:0;if(c=wr(c),c===k||c===-k){var d=c<0?-1:1;return d*I}return c===c?c:0}function at(c){var d=Go(c),m=d%1;return d===d?m?d-m:d:0}function sT(c){return c?Rs(at(c),0,v):0}function wr(c){if(typeof c=="number")return c;if(JA(c))return Q;if(An(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=An(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=SI(c);var m=Jne.test(c);return m||Zne.test(c)?IAe(c.slice(2),m?2:8):qne.test(c)?Q:+c}function aT(c){return go(c,DA(c))}function gae(c){return c?Rs(at(c),-E,E):c===0?c:0}function xt(c){return c==null?"":qA(c)}var Bae=tl(function(c,d){if(Gc(d)||TA(d)){go(d,$n(d),c);return}for(var m in d)Dt.call(d,m)&&Rc(c,m,d[m])}),lT=tl(function(c,d){go(d,DA(d),c)}),zh=tl(function(c,d,m,b){go(d,DA(d),c,b)}),yae=tl(function(c,d,m,b){go(d,$n(d),c,b)}),wae=Ko(jy);function Cae(c,d){var m=el(c);return d==null?m:RI(m,d)}var bae=dt(function(c,d){c=Pt(c);var m=-1,b=d.length,x=b>2?d[2]:n;for(x&&bA(d[0],d[1],x)&&(b=1);++m<b;)for(var V=d[m],ee=DA(V),oe=-1,ce=ee.length;++oe<ce;){var be=ee[oe],Ee=c[be];(Ee===n||$r(Ee,Ja[be])&&!Dt.call(c,be))&&(c[be]=V[be])}return c}),vae=dt(function(c){return c.push(n,S_),YA(cT,n,c)});function Eae(c,d){return bI(c,qe(d,3),mo)}function kae(c,d){return bI(c,qe(d,3),Jy)}function Sae(c,d){return c==null?c:qy(c,qe(d,3),DA)}function Fae(c,d){return c==null?c:WI(c,qe(d,3),DA)}function Qae(c,d){return c&&mo(c,qe(d,3))}function xae(c,d){return c&&Jy(c,qe(d,3))}function Uae(c){return c==null?[]:Sh(c,$n(c))}function Iae(c){return c==null?[]:Sh(c,DA(c))}function x0(c,d,m){var b=c==null?n:Vs(c,d);return b===n?m:b}function _ae(c,d){return c!=null&&x_(c,d,toe)}function U0(c,d){return c!=null&&x_(c,d,noe)}var Tae=C_(function(c,d,m){d!=null&&typeof d.toString!="function"&&(d=fh.call(d)),c[d]=m},_0(MA)),Dae=C_(function(c,d,m){d!=null&&typeof d.toString!="function"&&(d=fh.call(d)),Dt.call(c,d)?c[d].push(m):c[d]=[m]},qe),Mae=dt($c);function $n(c){return TA(c)?HI(c):t0(c)}function DA(c){return TA(c)?HI(c,!0):doe(c)}function Oae(c,d){var m={};return d=qe(d,3),mo(c,function(b,x,V){Vo(m,d(b,x,V),b)}),m}function Lae(c,d){var m={};return d=qe(d,3),mo(c,function(b,x,V){Vo(m,x,d(b,x,V))}),m}var Nae=tl(function(c,d,m){Fh(c,d,m)}),cT=tl(function(c,d,m,b){Fh(c,d,m,b)}),Hae=Ko(function(c,d){var m={};if(c==null)return m;var b=!1;d=Zt(d,function(V){return V=Gi(V,c),b||(b=V.length>1),V}),go(c,p0(c),m),b&&(m=gr(m,h|p|g,Toe));for(var x=d.length;x--;)s0(m,d[x]);return m});function Pae(c,d){return uT(c,Vh(qe(d)))}var Rae=Ko(function(c,d){return c==null?{}:hoe(c,d)});function uT(c,d){if(c==null)return{};var m=Zt(p0(c),function(b){return[b]});return d=qe(d),n_(c,m,function(b,x){return d(b,x[0])})}function Vae(c,d,m){d=Gi(d,c);var b=-1,x=d.length;for(x||(x=1,c=n);++b<x;){var V=c==null?n:c[Bo(d[b])];V===n&&(b=x,V=m),c=Wo(V)?V.call(c):V}return c}function $ae(c,d,m){return c==null?c:zc(c,d,m)}function Kae(c,d,m,b){return b=typeof b=="function"?b:n,c==null?c:zc(c,d,m,b)}var dT=E_($n),fT=E_(DA);function zae(c,d,m){var b=rt(c),x=b||ji(c)||rl(c);if(d=qe(d,4),m==null){var V=c&&c.constructor;x?m=b?new V:[]:An(c)?m=Wo(V)?el(mh(c)):{}:m={}}return(x?hr:mo)(c,function(ee,oe,ce){return d(m,ee,oe,ce)}),m}function Wae(c,d){return c==null?!0:s0(c,d)}function Gae(c,d,m){return c==null?c:s_(c,d,c0(m))}function Yae(c,d,m,b){return b=typeof b=="function"?b:n,c==null?c:s_(c,d,c0(m),b)}function ol(c){return c==null?[]:Vy(c,$n(c))}function jae(c){return c==null?[]:Vy(c,DA(c))}function qae(c,d,m){return m===n&&(m=d,d=n),m!==n&&(m=wr(m),m=m===m?m:0),d!==n&&(d=wr(d),d=d===d?d:0),Rs(wr(c),d,m)}function Jae(c,d,m){return d=Go(d),m===n?(m=d,d=0):m=Go(m),c=wr(c),Aoe(c,d,m)}function Xae(c,d,m){if(m&&typeof m!="boolean"&&bA(c,d,m)&&(d=m=n),m===n&&(typeof d=="boolean"?(m=d,d=n):typeof c=="boolean"&&(m=c,c=n)),c===n&&d===n?(c=0,d=1):(c=Go(c),d===n?(d=c,c=0):d=Go(d)),c>d){var b=c;c=d,d=b}if(m||c%1||d%1){var x=LI();return iA(c+x*(d-c+UAe("1e-"+((x+"").length-1))),d)}return r0(c,d)}var Zae=nl(function(c,d,m){return d=d.toLowerCase(),c+(m?hT(d):d)});function hT(c){return I0(xt(c).toLowerCase())}function pT(c){return c=xt(c),c&&c.replace(tAe,$Ae).replace(wAe,"")}function ele(c,d,m){c=xt(c),d=qA(d);var b=c.length;m=m===n?b:Rs(at(m),0,b);var x=m;return m-=d.length,m>=0&&c.slice(m,x)==d}function tle(c){return c=xt(c),c&&Ke.test(c)?c.replace(ve,KAe):c}function nle(c){return c=xt(c),c&&Rne.test(c)?c.replace(Sy,"\\$&"):c}var Ale=nl(function(c,d,m){return c+(m?"-":"")+d.toLowerCase()}),rle=nl(function(c,d,m){return c+(m?" ":"")+d.toLowerCase()}),ole=B_("toLowerCase");function ile(c,d,m){c=xt(c),d=at(d);var b=d?ja(c):0;if(!d||b>=d)return c;var x=(d-b)/2;return Th(wh(x),m)+c+Th(yh(x),m)}function sle(c,d,m){c=xt(c),d=at(d);var b=d?ja(c):0;return d&&b<d?c+Th(d-b,m):c}function ale(c,d,m){c=xt(c),d=at(d);var b=d?ja(c):0;return d&&b<d?Th(d-b,m)+c:c}function lle(c,d,m){return m||d==null?d=0:d&&(d=+d),mre(xt(c).replace(Fy,""),d||0)}function cle(c,d,m){return(m?bA(c,d,m):d===n)?d=1:d=at(d),o0(xt(c),d)}function ule(){var c=arguments,d=xt(c[0]);return c.length<3?d:d.replace(c[1],c[2])}var dle=nl(function(c,d,m){return c+(m?"_":"")+d.toLowerCase()});function fle(c,d,m){return m&&typeof m!="number"&&bA(c,d,m)&&(d=m=n),m=m===n?v:m>>>0,m?(c=xt(c),c&&(typeof d=="string"||d!=null&&!Q0(d))&&(d=qA(d),!d&&Ya(c))?Yi(Rr(c),0,m):c.split(d,m)):[]}var hle=nl(function(c,d,m){return c+(m?" ":"")+I0(d)});function ple(c,d,m){return c=xt(c),m=m==null?0:Rs(at(m),0,c.length),d=qA(d),c.slice(m,m+d.length)==d}function mle(c,d,m){var b=O.templateSettings;m&&bA(c,d,m)&&(d=n),c=xt(c),d=zh({},d,b,k_);var x=zh({},d.imports,b.imports,k_),V=$n(x),ee=Vy(x,V),oe,ce,be=0,Ee=d.interpolate||rh,Se="__p += '",De=Ky((d.escape||rh).source+"|"+Ee.source+"|"+(Ee===ho?jne:rh).source+"|"+(d.evaluate||rh).source+"|$","g"),$e="//# sourceURL="+(Dt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kAe+"]")+`
127
- `;c.replace(De,function(Xe,ft,yt,XA,vA,ZA){return yt||(yt=XA),Se+=c.slice(be,ZA).replace(nAe,zAe),ft&&(oe=!0,Se+=`' +
126
+ `)}function zoe(c){return rt(c)||zs(c)||!!(MI&&c&&c[MI])}function zo(c,d){var m=typeof c;return d=d??E,!!d&&(m=="number"||m!="symbol"&&AAe.test(c))&&c>-1&&c%1==0&&c<d}function bA(c,d,m){if(!An(m))return!1;var b=typeof d;return(b=="number"?TA(m)&&zo(d,m.length):b=="string"&&d in m)?$r(m[d],c):!1}function y0(c,d){if(rt(c))return!1;var m=typeof c;return m=="number"||m=="symbol"||m=="boolean"||c==null||JA(c)?!0:Dc.test(c)||!po.test(c)||d!=null&&c in Pt(d)}function Woe(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function w0(c){var d=Mh(c),m=O[d];if(typeof m!="function"||!(d in gt.prototype))return!1;if(c===m)return!0;var b=m0(m);return!!b&&c===b[0]}function Goe(c){return!!II&&II in c}var Yoe=uh?Wo:L0;function Gc(c){var d=c&&c.constructor,m=typeof d=="function"&&d.prototype||Ja;return c===m}function I_(c){return c===c&&!An(c)}function __(c,d){return function(m){return m==null?!1:m[c]===d&&(d!==n||c in Pt(m))}}function joe(c){var d=Rh(c,function(b){return m.size===u&&m.clear(),b}),m=d.cache;return d}function qoe(c,d){var m=c[1],b=d[1],x=m|b,V=x<(C|w|H),ee=b==H&&m==_||b==H&&m==te&&c[7].length<=d[8]||b==(H|te)&&d[7].length<=d[8]&&m==_;if(!(V||ee))return c;b&C&&(c[2]=d[2],x|=m&C?0:F);var oe=d[3];if(oe){var ce=c[3];c[3]=ce?h_(ce,oe,d[4]):oe,c[4]=ce?$i(c[3],f):d[4]}return oe=d[5],oe&&(ce=c[5],c[5]=ce?p_(ce,oe,d[6]):oe,c[6]=ce?$i(c[5],f):d[6]),oe=d[7],oe&&(c[7]=oe),b&H&&(c[8]=c[8]==null?d[8]:iA(c[8],d[8])),c[9]==null&&(c[9]=d[9]),c[0]=d[0],c[1]=x,c}function Joe(c){var d=[];if(c!=null)for(var m in Pt(c))d.push(m);return d}function Xoe(c){return fh.call(c)}function T_(c,d,m){return d=_n(d===n?c.length-1:d,0),function(){for(var b=arguments,x=-1,V=_n(b.length-d,0),ee=me(V);++x<V;)ee[x]=b[d+x];x=-1;for(var oe=me(d+1);++x<d;)oe[x]=b[x];return oe[d]=m(ee),YA(c,this,oe)}}function D_(c,d){return d.length<2?c:Vs(c,Br(d,0,-1))}function Zoe(c,d){for(var m=c.length,b=iA(d.length,m),x=_A(c);b--;){var V=d[b];c[b]=zo(V,m)?x[V]:n}return c}function C0(c,d){if(!(d==="constructor"&&typeof c[d]=="function")&&d!="__proto__")return c[d]}var M_=L_(r_),Yc=hre||function(c,d){return qn.setTimeout(c,d)},b0=L_(boe);function O_(c,d,m){var b=d+"";return b0(c,Koe(b,eie(Roe(b),m)))}function L_(c){var d=0,m=0;return function(){var b=Bre(),x=we-(b-m);if(m=b,x>0){if(++d>=Be)return arguments[0]}else d=0;return c.apply(n,arguments)}}function Lh(c,d){var m=-1,b=c.length,x=b-1;for(d=d===n?b:d;++m<d;){var V=r0(m,x),ee=c[V];c[V]=c[m],c[m]=ee}return c.length=d,c}var N_=joe(function(c){var d=[];return c.charCodeAt(0)===46&&d.push(""),c.replace(ky,function(m,b,x,V){d.push(x?V.replace(Jne,"$1"):b||m)}),d});function Bo(c){if(typeof c=="string"||JA(c))return c;var d=c+"";return d=="0"&&1/c==-k?"-0":d}function Ks(c){if(c!=null){try{return dh.call(c)}catch{}try{return c+""}catch{}}return""}function eie(c,d){return hr($,function(m){var b="_."+m[0];d&m[1]&&!sh(c,b)&&c.push(b)}),c.sort()}function H_(c){if(c instanceof gt)return c.clone();var d=new mr(c.__wrapped__,c.__chain__);return d.__actions__=_A(c.__actions__),d.__index__=c.__index__,d.__values__=c.__values__,d}function tie(c,d,m){(m?bA(c,d,m):d===n)?d=1:d=_n(at(d),0);var b=c==null?0:c.length;if(!b||d<1)return[];for(var x=0,V=0,ee=me(yh(b/d));x<b;)ee[V++]=Br(c,x,x+=d);return ee}function nie(c){for(var d=-1,m=c==null?0:c.length,b=0,x=[];++d<m;){var V=c[d];V&&(x[b++]=V)}return x}function Aie(){var c=arguments.length;if(!c)return[];for(var d=me(c-1),m=arguments[0],b=c;b--;)d[b-1]=arguments[b];return Vi(rt(m)?_A(m):[m],Jn(d,1))}var rie=dt(function(c,d){return Cn(c)?Vc(c,Jn(d,1,Cn,!0)):[]}),oie=dt(function(c,d){var m=yr(d);return Cn(m)&&(m=n),Cn(c)?Vc(c,Jn(d,1,Cn,!0),qe(m,2)):[]}),iie=dt(function(c,d){var m=yr(d);return Cn(m)&&(m=n),Cn(c)?Vc(c,Jn(d,1,Cn,!0),n,m):[]});function sie(c,d,m){var b=c==null?0:c.length;return b?(d=m||d===n?1:at(d),Br(c,d<0?0:d,b)):[]}function aie(c,d,m){var b=c==null?0:c.length;return b?(d=m||d===n?1:at(d),d=b-d,Br(c,0,d<0?0:d)):[]}function lie(c,d){return c&&c.length?xh(c,qe(d,3),!0,!0):[]}function cie(c,d){return c&&c.length?xh(c,qe(d,3),!0):[]}function uie(c,d,m,b){var x=c==null?0:c.length;return x?(m&&typeof m!="number"&&bA(c,d,m)&&(m=0,b=x),Aoe(c,d,m,b)):[]}function P_(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=m==null?0:at(m);return x<0&&(x=_n(b+x,0)),ah(c,qe(d,3),x)}function R_(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=b-1;return m!==n&&(x=at(m),x=m<0?_n(b+x,0):iA(x,b-1)),ah(c,qe(d,3),x,!0)}function V_(c){var d=c==null?0:c.length;return d?Jn(c,1):[]}function die(c){var d=c==null?0:c.length;return d?Jn(c,k):[]}function fie(c,d){var m=c==null?0:c.length;return m?(d=d===n?1:at(d),Jn(c,d)):[]}function hie(c){for(var d=-1,m=c==null?0:c.length,b={};++d<m;){var x=c[d];b[x[0]]=x[1]}return b}function $_(c){return c&&c.length?c[0]:n}function pie(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=m==null?0:at(m);return x<0&&(x=_n(b+x,0)),Ga(c,d,x)}function mie(c){var d=c==null?0:c.length;return d?Br(c,0,-1):[]}var gie=dt(function(c){var d=Zt(c,l0);return d.length&&d[0]===c[0]?Zy(d):[]}),Bie=dt(function(c){var d=yr(c),m=Zt(c,l0);return d===yr(m)?d=n:m.pop(),m.length&&m[0]===c[0]?Zy(m,qe(d,2)):[]}),yie=dt(function(c){var d=yr(c),m=Zt(c,l0);return d=typeof d=="function"?d:n,d&&m.pop(),m.length&&m[0]===c[0]?Zy(m,n,d):[]});function wie(c,d){return c==null?"":mre.call(c,d)}function yr(c){var d=c==null?0:c.length;return d?c[d-1]:n}function Cie(c,d,m){var b=c==null?0:c.length;if(!b)return-1;var x=b;return m!==n&&(x=at(m),x=x<0?_n(b+x,0):iA(x,b-1)),d===d?ere(c,d,x):ah(c,vI,x,!0)}function bie(c,d){return c&&c.length?e_(c,at(d)):n}var vie=dt(K_);function K_(c,d){return c&&c.length&&d&&d.length?A0(c,d):c}function Eie(c,d,m){return c&&c.length&&d&&d.length?A0(c,d,qe(m,2)):c}function kie(c,d,m){return c&&c.length&&d&&d.length?A0(c,d,n,m):c}var Sie=Ko(function(c,d){var m=c==null?0:c.length,b=jy(c,d);return A_(c,Zt(d,function(x){return zo(x,m)?+x:x}).sort(f_)),b});function Fie(c,d){var m=[];if(!(c&&c.length))return m;var b=-1,x=[],V=c.length;for(d=qe(d,3);++b<V;){var ee=c[b];d(ee,b,c)&&(m.push(ee),x.push(b))}return A_(c,x),m}function v0(c){return c==null?c:wre.call(c)}function Qie(c,d,m){var b=c==null?0:c.length;return b?(m&&typeof m!="number"&&bA(c,d,m)?(d=0,m=b):(d=d==null?0:at(d),m=m===n?b:at(m)),Br(c,d,m)):[]}function xie(c,d){return Qh(c,d)}function Uie(c,d,m){return i0(c,d,qe(m,2))}function Iie(c,d){var m=c==null?0:c.length;if(m){var b=Qh(c,d);if(b<m&&$r(c[b],d))return b}return-1}function _ie(c,d){return Qh(c,d,!0)}function Tie(c,d,m){return i0(c,d,qe(m,2),!0)}function Die(c,d){var m=c==null?0:c.length;if(m){var b=Qh(c,d,!0)-1;if($r(c[b],d))return b}return-1}function Mie(c){return c&&c.length?o_(c):[]}function Oie(c,d){return c&&c.length?o_(c,qe(d,2)):[]}function Lie(c){var d=c==null?0:c.length;return d?Br(c,1,d):[]}function Nie(c,d,m){return c&&c.length?(d=m||d===n?1:at(d),Br(c,0,d<0?0:d)):[]}function Hie(c,d,m){var b=c==null?0:c.length;return b?(d=m||d===n?1:at(d),d=b-d,Br(c,d<0?0:d,b)):[]}function Pie(c,d){return c&&c.length?xh(c,qe(d,3),!1,!0):[]}function Rie(c,d){return c&&c.length?xh(c,qe(d,3)):[]}var Vie=dt(function(c){return Wi(Jn(c,1,Cn,!0))}),$ie=dt(function(c){var d=yr(c);return Cn(d)&&(d=n),Wi(Jn(c,1,Cn,!0),qe(d,2))}),Kie=dt(function(c){var d=yr(c);return d=typeof d=="function"?d:n,Wi(Jn(c,1,Cn,!0),n,d)});function zie(c){return c&&c.length?Wi(c):[]}function Wie(c,d){return c&&c.length?Wi(c,qe(d,2)):[]}function Gie(c,d){return d=typeof d=="function"?d:n,c&&c.length?Wi(c,n,d):[]}function E0(c){if(!(c&&c.length))return[];var d=0;return c=Ri(c,function(m){if(Cn(m))return d=_n(m.length,d),!0}),Ry(d,function(m){return Zt(c,Ny(m))})}function z_(c,d){if(!(c&&c.length))return[];var m=E0(c);return d==null?m:Zt(m,function(b){return YA(d,n,b)})}var Yie=dt(function(c,d){return Cn(c)?Vc(c,d):[]}),jie=dt(function(c){return a0(Ri(c,Cn))}),qie=dt(function(c){var d=yr(c);return Cn(d)&&(d=n),a0(Ri(c,Cn),qe(d,2))}),Jie=dt(function(c){var d=yr(c);return d=typeof d=="function"?d:n,a0(Ri(c,Cn),n,d)}),Xie=dt(E0);function Zie(c,d){return l_(c||[],d||[],Rc)}function ese(c,d){return l_(c||[],d||[],zc)}var tse=dt(function(c){var d=c.length,m=d>1?c[d-1]:n;return m=typeof m=="function"?(c.pop(),m):n,z_(c,m)});function W_(c){var d=O(c);return d.__chain__=!0,d}function nse(c,d){return d(c),c}function Nh(c,d){return d(c)}var Ase=Ko(function(c){var d=c.length,m=d?c[0]:0,b=this.__wrapped__,x=function(V){return jy(V,c)};return d>1||this.__actions__.length||!(b instanceof gt)||!zo(m)?this.thru(x):(b=b.slice(m,+m+(d?1:0)),b.__actions__.push({func:Nh,args:[x],thisArg:n}),new mr(b,this.__chain__).thru(function(V){return d&&!V.length&&V.push(n),V}))});function rse(){return W_(this)}function ose(){return new mr(this.value(),this.__chain__)}function ise(){this.__values__===n&&(this.__values__=iT(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function sse(){return this}function ase(c){for(var d,m=this;m instanceof vh;){var b=H_(m);b.__index__=0,b.__values__=n,d?x.__wrapped__=b:d=b;var x=b;m=m.__wrapped__}return x.__wrapped__=c,d}function lse(){var c=this.__wrapped__;if(c instanceof gt){var d=c;return this.__actions__.length&&(d=new gt(this)),d=d.reverse(),d.__actions__.push({func:Nh,args:[v0],thisArg:n}),new mr(d,this.__chain__)}return this.thru(v0)}function cse(){return a_(this.__wrapped__,this.__actions__)}var use=Uh(function(c,d,m){Dt.call(c,m)?++c[m]:Vo(c,m,1)});function dse(c,d,m){var b=rt(c)?CI:noe;return m&&bA(c,d,m)&&(d=n),b(c,qe(d,3))}function fse(c,d){var m=rt(c)?Ri:zI;return m(c,qe(d,3))}var hse=y_(P_),pse=y_(R_);function mse(c,d){return Jn(Hh(c,d),1)}function gse(c,d){return Jn(Hh(c,d),k)}function Bse(c,d,m){return m=m===n?1:at(m),Jn(Hh(c,d),m)}function G_(c,d){var m=rt(c)?hr:zi;return m(c,qe(d,3))}function Y_(c,d){var m=rt(c)?LAe:KI;return m(c,qe(d,3))}var yse=Uh(function(c,d,m){Dt.call(c,m)?c[m].push(d):Vo(c,m,[d])});function wse(c,d,m,b){c=TA(c)?c:ol(c),m=m&&!b?at(m):0;var x=c.length;return m<0&&(m=_n(x+m,0)),Kh(c)?m<=x&&c.indexOf(d,m)>-1:!!x&&Ga(c,d,m)>-1}var Cse=dt(function(c,d,m){var b=-1,x=typeof d=="function",V=TA(c)?me(c.length):[];return zi(c,function(ee){V[++b]=x?YA(d,ee,m):$c(ee,d,m)}),V}),bse=Uh(function(c,d,m){Vo(c,m,d)});function Hh(c,d){var m=rt(c)?Zt:JI;return m(c,qe(d,3))}function vse(c,d,m,b){return c==null?[]:(rt(d)||(d=d==null?[]:[d]),m=b?n:m,rt(m)||(m=m==null?[]:[m]),t_(c,d,m))}var Ese=Uh(function(c,d,m){c[m?0:1].push(d)},function(){return[[],[]]});function kse(c,d,m){var b=rt(c)?Oy:kI,x=arguments.length<3;return b(c,qe(d,4),m,x,zi)}function Sse(c,d,m){var b=rt(c)?NAe:kI,x=arguments.length<3;return b(c,qe(d,4),m,x,KI)}function Fse(c,d){var m=rt(c)?Ri:zI;return m(c,Vh(qe(d,3)))}function Qse(c){var d=rt(c)?PI:woe;return d(c)}function xse(c,d,m){(m?bA(c,d,m):d===n)?d=1:d=at(d);var b=rt(c)?Jre:Coe;return b(c,d)}function Use(c){var d=rt(c)?Xre:voe;return d(c)}function Ise(c){if(c==null)return 0;if(TA(c))return Kh(c)?ja(c):c.length;var d=sA(c);return d==z||d==ye?c.size:t0(c).length}function _se(c,d,m){var b=rt(c)?Ly:Eoe;return m&&bA(c,d,m)&&(d=n),b(c,qe(d,3))}var Tse=dt(function(c,d){if(c==null)return[];var m=d.length;return m>1&&bA(c,d[0],d[1])?d=[]:m>2&&bA(d[0],d[1],d[2])&&(d=[d[0]]),t_(c,Jn(d,1),[])}),Ph=fre||function(){return qn.Date.now()};function Dse(c,d){if(typeof d!="function")throw new pr(i);return c=at(c),function(){if(--c<1)return d.apply(this,arguments)}}function j_(c,d,m){return d=m?n:d,d=c&&d==null?c.length:d,$o(c,H,n,n,n,n,d)}function q_(c,d){var m;if(typeof d!="function")throw new pr(i);return c=at(c),function(){return--c>0&&(m=d.apply(this,arguments)),c<=1&&(d=n),m}}var k0=dt(function(c,d,m){var b=C;if(m.length){var x=$i(m,Al(k0));b|=P}return $o(c,b,d,m,x)}),J_=dt(function(c,d,m){var b=C|w;if(m.length){var x=$i(m,Al(J_));b|=P}return $o(d,b,c,m,x)});function X_(c,d,m){d=m?n:d;var b=$o(c,_,n,n,n,n,n,d);return b.placeholder=X_.placeholder,b}function Z_(c,d,m){d=m?n:d;var b=$o(c,D,n,n,n,n,n,d);return b.placeholder=Z_.placeholder,b}function eT(c,d,m){var b,x,V,ee,oe,ce,be=0,Ee=!1,Se=!1,De=!0;if(typeof c!="function")throw new pr(i);d=wr(d)||0,An(m)&&(Ee=!!m.leading,Se="maxWait"in m,V=Se?_n(wr(m.maxWait)||0,d):V,De="trailing"in m?!!m.trailing:De);function $e(bn){var Kr=b,Yo=x;return b=x=n,be=bn,ee=c.apply(Yo,Kr),ee}function Je(bn){return be=bn,oe=Yc(ft,d),Ee?$e(bn):ee}function ct(bn){var Kr=bn-ce,Yo=bn-be,yT=d-Kr;return Se?iA(yT,V-Yo):yT}function Xe(bn){var Kr=bn-ce,Yo=bn-be;return ce===n||Kr>=d||Kr<0||Se&&Yo>=V}function ft(){var bn=Ph();if(Xe(bn))return yt(bn);oe=Yc(ft,ct(bn))}function yt(bn){return oe=n,De&&b?$e(bn):(b=x=n,ee)}function XA(){oe!==n&&c_(oe),be=0,b=ce=x=oe=n}function vA(){return oe===n?ee:yt(Ph())}function ZA(){var bn=Ph(),Kr=Xe(bn);if(b=arguments,x=this,ce=bn,Kr){if(oe===n)return Je(ce);if(Se)return c_(oe),oe=Yc(ft,d),$e(ce)}return oe===n&&(oe=Yc(ft,d)),ee}return ZA.cancel=XA,ZA.flush=vA,ZA}var Mse=dt(function(c,d){return $I(c,1,d)}),Ose=dt(function(c,d,m){return $I(c,wr(d)||0,m)});function Lse(c){return $o(c,Z)}function Rh(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new pr(i);var m=function(){var b=arguments,x=d?d.apply(this,b):b[0],V=m.cache;if(V.has(x))return V.get(x);var ee=c.apply(this,b);return m.cache=V.set(x,ee)||V,ee};return m.cache=new(Rh.Cache||Ro),m}Rh.Cache=Ro;function Vh(c){if(typeof c!="function")throw new pr(i);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function Nse(c){return q_(2,c)}var Hse=koe(function(c,d){d=d.length==1&&rt(d[0])?Zt(d[0],jA(qe())):Zt(Jn(d,1),jA(qe()));var m=d.length;return dt(function(b){for(var x=-1,V=iA(b.length,m);++x<V;)b[x]=d[x].call(this,b[x]);return YA(c,this,b)})}),S0=dt(function(c,d){var m=$i(d,Al(S0));return $o(c,P,n,d,m)}),tT=dt(function(c,d){var m=$i(d,Al(tT));return $o(c,T,n,d,m)}),Pse=Ko(function(c,d){return $o(c,te,n,n,n,d)});function Rse(c,d){if(typeof c!="function")throw new pr(i);return d=d===n?d:at(d),dt(c,d)}function Vse(c,d){if(typeof c!="function")throw new pr(i);return d=d==null?0:_n(at(d),0),dt(function(m){var b=m[d],x=Yi(m,0,d);return b&&Vi(x,b),YA(c,this,x)})}function $se(c,d,m){var b=!0,x=!0;if(typeof c!="function")throw new pr(i);return An(m)&&(b="leading"in m?!!m.leading:b,x="trailing"in m?!!m.trailing:x),eT(c,d,{leading:b,maxWait:d,trailing:x})}function Kse(c){return j_(c,1)}function zse(c,d){return S0(c0(d),c)}function Wse(){if(!arguments.length)return[];var c=arguments[0];return rt(c)?c:[c]}function Gse(c){return gr(c,g)}function Yse(c,d){return d=typeof d=="function"?d:n,gr(c,g,d)}function jse(c){return gr(c,h|g)}function qse(c,d){return d=typeof d=="function"?d:n,gr(c,h|g,d)}function Jse(c,d){return d==null||VI(c,d,$n(d))}function $r(c,d){return c===d||c!==c&&d!==d}var Xse=Dh(Xy),Zse=Dh(function(c,d){return c>=d}),zs=YI((function(){return arguments})())?YI:function(c){return cn(c)&&Dt.call(c,"callee")&&!DI.call(c,"callee")},rt=me.isArray,eae=pI?jA(pI):aoe;function TA(c){return c!=null&&$h(c.length)&&!Wo(c)}function Cn(c){return cn(c)&&TA(c)}function tae(c){return c===!0||c===!1||cn(c)&&CA(c)==G}var ji=pre||L0,nae=mI?jA(mI):loe;function Aae(c){return cn(c)&&c.nodeType===1&&!jc(c)}function rae(c){if(c==null)return!0;if(TA(c)&&(rt(c)||typeof c=="string"||typeof c.splice=="function"||ji(c)||rl(c)||zs(c)))return!c.length;var d=sA(c);if(d==z||d==ye)return!c.size;if(Gc(c))return!t0(c).length;for(var m in c)if(Dt.call(c,m))return!1;return!0}function oae(c,d){return Kc(c,d)}function iae(c,d,m){m=typeof m=="function"?m:n;var b=m?m(c,d):n;return b===n?Kc(c,d,n,m):!!b}function F0(c){if(!cn(c))return!1;var d=CA(c);return d==Ae||d==xe||typeof c.message=="string"&&typeof c.name=="string"&&!jc(c)}function sae(c){return typeof c=="number"&&OI(c)}function Wo(c){if(!An(c))return!1;var d=CA(c);return d==X||d==q||d==S||d==Y}function nT(c){return typeof c=="number"&&c==at(c)}function $h(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=E}function An(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function cn(c){return c!=null&&typeof c=="object"}var AT=gI?jA(gI):uoe;function aae(c,d){return c===d||e0(c,d,g0(d))}function lae(c,d,m){return m=typeof m=="function"?m:n,e0(c,d,g0(d),m)}function cae(c){return rT(c)&&c!=+c}function uae(c){if(Yoe(c))throw new At(o);return jI(c)}function dae(c){return c===null}function fae(c){return c==null}function rT(c){return typeof c=="number"||cn(c)&&CA(c)==U}function jc(c){if(!cn(c)||CA(c)!=de)return!1;var d=mh(c);if(d===null)return!0;var m=Dt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&dh.call(m)==lre}var Q0=BI?jA(BI):doe;function hae(c){return nT(c)&&c>=-E&&c<=E}var oT=yI?jA(yI):foe;function Kh(c){return typeof c=="string"||!rt(c)&&cn(c)&&CA(c)==Te}function JA(c){return typeof c=="symbol"||cn(c)&&CA(c)==ie}var rl=wI?jA(wI):hoe;function pae(c){return c===n}function mae(c){return cn(c)&&sA(c)==se}function gae(c){return cn(c)&&CA(c)==he}var Bae=Dh(n0),yae=Dh(function(c,d){return c<=d});function iT(c){if(!c)return[];if(TA(c))return Kh(c)?Rr(c):_A(c);if(Oc&&c[Oc])return JAe(c[Oc]());var d=sA(c),m=d==z?$y:d==ye?lh:ol;return m(c)}function Go(c){if(!c)return c===0?c:0;if(c=wr(c),c===k||c===-k){var d=c<0?-1:1;return d*I}return c===c?c:0}function at(c){var d=Go(c),m=d%1;return d===d?m?d-m:d:0}function sT(c){return c?Rs(at(c),0,v):0}function wr(c){if(typeof c=="number")return c;if(JA(c))return Q;if(An(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=An(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=SI(c);var m=eAe.test(c);return m||nAe.test(c)?DAe(c.slice(2),m?2:8):Zne.test(c)?Q:+c}function aT(c){return go(c,DA(c))}function wae(c){return c?Rs(at(c),-E,E):c===0?c:0}function xt(c){return c==null?"":qA(c)}var Cae=tl(function(c,d){if(Gc(d)||TA(d)){go(d,$n(d),c);return}for(var m in d)Dt.call(d,m)&&Rc(c,m,d[m])}),lT=tl(function(c,d){go(d,DA(d),c)}),zh=tl(function(c,d,m,b){go(d,DA(d),c,b)}),bae=tl(function(c,d,m,b){go(d,$n(d),c,b)}),vae=Ko(jy);function Eae(c,d){var m=el(c);return d==null?m:RI(m,d)}var kae=dt(function(c,d){c=Pt(c);var m=-1,b=d.length,x=b>2?d[2]:n;for(x&&bA(d[0],d[1],x)&&(b=1);++m<b;)for(var V=d[m],ee=DA(V),oe=-1,ce=ee.length;++oe<ce;){var be=ee[oe],Ee=c[be];(Ee===n||$r(Ee,Ja[be])&&!Dt.call(c,be))&&(c[be]=V[be])}return c}),Sae=dt(function(c){return c.push(n,S_),YA(cT,n,c)});function Fae(c,d){return bI(c,qe(d,3),mo)}function Qae(c,d){return bI(c,qe(d,3),Jy)}function xae(c,d){return c==null?c:qy(c,qe(d,3),DA)}function Uae(c,d){return c==null?c:WI(c,qe(d,3),DA)}function Iae(c,d){return c&&mo(c,qe(d,3))}function _ae(c,d){return c&&Jy(c,qe(d,3))}function Tae(c){return c==null?[]:Sh(c,$n(c))}function Dae(c){return c==null?[]:Sh(c,DA(c))}function x0(c,d,m){var b=c==null?n:Vs(c,d);return b===n?m:b}function Mae(c,d){return c!=null&&x_(c,d,roe)}function U0(c,d){return c!=null&&x_(c,d,ooe)}var Oae=C_(function(c,d,m){d!=null&&typeof d.toString!="function"&&(d=fh.call(d)),c[d]=m},_0(MA)),Lae=C_(function(c,d,m){d!=null&&typeof d.toString!="function"&&(d=fh.call(d)),Dt.call(c,d)?c[d].push(m):c[d]=[m]},qe),Nae=dt($c);function $n(c){return TA(c)?HI(c):t0(c)}function DA(c){return TA(c)?HI(c,!0):poe(c)}function Hae(c,d){var m={};return d=qe(d,3),mo(c,function(b,x,V){Vo(m,d(b,x,V),b)}),m}function Pae(c,d){var m={};return d=qe(d,3),mo(c,function(b,x,V){Vo(m,x,d(b,x,V))}),m}var Rae=tl(function(c,d,m){Fh(c,d,m)}),cT=tl(function(c,d,m,b){Fh(c,d,m,b)}),Vae=Ko(function(c,d){var m={};if(c==null)return m;var b=!1;d=Zt(d,function(V){return V=Gi(V,c),b||(b=V.length>1),V}),go(c,p0(c),m),b&&(m=gr(m,h|p|g,Ooe));for(var x=d.length;x--;)s0(m,d[x]);return m});function $ae(c,d){return uT(c,Vh(qe(d)))}var Kae=Ko(function(c,d){return c==null?{}:goe(c,d)});function uT(c,d){if(c==null)return{};var m=Zt(p0(c),function(b){return[b]});return d=qe(d),n_(c,m,function(b,x){return d(b,x[0])})}function zae(c,d,m){d=Gi(d,c);var b=-1,x=d.length;for(x||(x=1,c=n);++b<x;){var V=c==null?n:c[Bo(d[b])];V===n&&(b=x,V=m),c=Wo(V)?V.call(c):V}return c}function Wae(c,d,m){return c==null?c:zc(c,d,m)}function Gae(c,d,m,b){return b=typeof b=="function"?b:n,c==null?c:zc(c,d,m,b)}var dT=E_($n),fT=E_(DA);function Yae(c,d,m){var b=rt(c),x=b||ji(c)||rl(c);if(d=qe(d,4),m==null){var V=c&&c.constructor;x?m=b?new V:[]:An(c)?m=Wo(V)?el(mh(c)):{}:m={}}return(x?hr:mo)(c,function(ee,oe,ce){return d(m,ee,oe,ce)}),m}function jae(c,d){return c==null?!0:s0(c,d)}function qae(c,d,m){return c==null?c:s_(c,d,c0(m))}function Jae(c,d,m,b){return b=typeof b=="function"?b:n,c==null?c:s_(c,d,c0(m),b)}function ol(c){return c==null?[]:Vy(c,$n(c))}function Xae(c){return c==null?[]:Vy(c,DA(c))}function Zae(c,d,m){return m===n&&(m=d,d=n),m!==n&&(m=wr(m),m=m===m?m:0),d!==n&&(d=wr(d),d=d===d?d:0),Rs(wr(c),d,m)}function ele(c,d,m){return d=Go(d),m===n?(m=d,d=0):m=Go(m),c=wr(c),ioe(c,d,m)}function tle(c,d,m){if(m&&typeof m!="boolean"&&bA(c,d,m)&&(d=m=n),m===n&&(typeof d=="boolean"?(m=d,d=n):typeof c=="boolean"&&(m=c,c=n)),c===n&&d===n?(c=0,d=1):(c=Go(c),d===n?(d=c,c=0):d=Go(d)),c>d){var b=c;c=d,d=b}if(m||c%1||d%1){var x=LI();return iA(c+x*(d-c+TAe("1e-"+((x+"").length-1))),d)}return r0(c,d)}var nle=nl(function(c,d,m){return d=d.toLowerCase(),c+(m?hT(d):d)});function hT(c){return I0(xt(c).toLowerCase())}function pT(c){return c=xt(c),c&&c.replace(rAe,WAe).replace(vAe,"")}function Ale(c,d,m){c=xt(c),d=qA(d);var b=c.length;m=m===n?b:Rs(at(m),0,b);var x=m;return m-=d.length,m>=0&&c.slice(m,x)==d}function rle(c){return c=xt(c),c&&Ke.test(c)?c.replace(ve,GAe):c}function ole(c){return c=xt(c),c&&Kne.test(c)?c.replace(Sy,"\\$&"):c}var ile=nl(function(c,d,m){return c+(m?"-":"")+d.toLowerCase()}),sle=nl(function(c,d,m){return c+(m?" ":"")+d.toLowerCase()}),ale=B_("toLowerCase");function lle(c,d,m){c=xt(c),d=at(d);var b=d?ja(c):0;if(!d||b>=d)return c;var x=(d-b)/2;return Th(wh(x),m)+c+Th(yh(x),m)}function cle(c,d,m){c=xt(c),d=at(d);var b=d?ja(c):0;return d&&b<d?c+Th(d-b,m):c}function ule(c,d,m){c=xt(c),d=at(d);var b=d?ja(c):0;return d&&b<d?Th(d-b,m)+c:c}function dle(c,d,m){return m||d==null?d=0:d&&(d=+d),yre(xt(c).replace(Fy,""),d||0)}function fle(c,d,m){return(m?bA(c,d,m):d===n)?d=1:d=at(d),o0(xt(c),d)}function hle(){var c=arguments,d=xt(c[0]);return c.length<3?d:d.replace(c[1],c[2])}var ple=nl(function(c,d,m){return c+(m?"_":"")+d.toLowerCase()});function mle(c,d,m){return m&&typeof m!="number"&&bA(c,d,m)&&(d=m=n),m=m===n?v:m>>>0,m?(c=xt(c),c&&(typeof d=="string"||d!=null&&!Q0(d))&&(d=qA(d),!d&&Ya(c))?Yi(Rr(c),0,m):c.split(d,m)):[]}var gle=nl(function(c,d,m){return c+(m?" ":"")+I0(d)});function Ble(c,d,m){return c=xt(c),m=m==null?0:Rs(at(m),0,c.length),d=qA(d),c.slice(m,m+d.length)==d}function yle(c,d,m){var b=O.templateSettings;m&&bA(c,d,m)&&(d=n),c=xt(c),d=zh({},d,b,k_);var x=zh({},d.imports,b.imports,k_),V=$n(x),ee=Vy(x,V),oe,ce,be=0,Ee=d.interpolate||rh,Se="__p += '",De=Ky((d.escape||rh).source+"|"+Ee.source+"|"+(Ee===ho?Xne:rh).source+"|"+(d.evaluate||rh).source+"|$","g"),$e="//# sourceURL="+(Dt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++QAe+"]")+`
127
+ `;c.replace(De,function(Xe,ft,yt,XA,vA,ZA){return yt||(yt=XA),Se+=c.slice(be,ZA).replace(oAe,YAe),ft&&(oe=!0,Se+=`' +
128
128
  __e(`+ft+`) +
129
129
  '`),vA&&(ce=!0,Se+=`';
130
130
  `+vA+`;
@@ -134,19 +134,19 @@ __p += '`),yt&&(Se+=`' +
134
134
  `;var Je=Dt.call(d,"variable")&&d.variable;if(!Je)Se=`with (obj) {
135
135
  `+Se+`
136
136
  }
137
- `;else if(Gne.test(Je))throw new At(a);Se=(ce?Se.replace(fe,""):Se).replace(_e,"$1").replace(Ge,"$1;"),Se="function("+(Je||"obj")+`) {
137
+ `;else if(qne.test(Je))throw new At(a);Se=(ce?Se.replace(fe,""):Se).replace(_e,"$1").replace(Ge,"$1;"),Se="function("+(Je||"obj")+`) {
138
138
  `+(Je?"":`obj || (obj = {});
139
139
  `)+"var __t, __p = ''"+(oe?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
140
140
  function print() { __p += __j.call(arguments, '') }
141
141
  `:`;
142
142
  `)+Se+`return __p
143
- }`;var ct=gT(function(){return Ft(V,$e+"return "+Se).apply(n,ee)});if(ct.source=Se,F0(ct))throw ct;return ct}function gle(c){return xt(c).toLowerCase()}function Ble(c){return xt(c).toUpperCase()}function yle(c,d,m){if(c=xt(c),c&&(m||d===n))return SI(c);if(!c||!(d=qA(d)))return c;var b=Rr(c),x=Rr(d),V=FI(b,x),ee=QI(b,x)+1;return Yi(b,V,ee).join("")}function wle(c,d,m){if(c=xt(c),c&&(m||d===n))return c.slice(0,UI(c)+1);if(!c||!(d=qA(d)))return c;var b=Rr(c),x=QI(b,Rr(d))+1;return Yi(b,0,x).join("")}function Cle(c,d,m){if(c=xt(c),c&&(m||d===n))return c.replace(Fy,"");if(!c||!(d=qA(d)))return c;var b=Rr(c),x=FI(b,Rr(d));return Yi(b,x).join("")}function ble(c,d){var m=ne,b=pe;if(An(d)){var x="separator"in d?d.separator:x;m="length"in d?at(d.length):m,b="omission"in d?qA(d.omission):b}c=xt(c);var V=c.length;if(Ya(c)){var ee=Rr(c);V=ee.length}if(m>=V)return c;var oe=m-ja(b);if(oe<1)return b;var ce=ee?Yi(ee,0,oe).join(""):c.slice(0,oe);if(x===n)return ce+b;if(ee&&(oe+=ce.length-oe),Q0(x)){if(c.slice(oe).search(x)){var be,Ee=ce;for(x.global||(x=Ky(x.source,xt(YU.exec(x))+"g")),x.lastIndex=0;be=x.exec(Ee);)var Se=be.index;ce=ce.slice(0,Se===n?oe:Se)}}else if(c.indexOf(qA(x),oe)!=oe){var De=ce.lastIndexOf(x);De>-1&&(ce=ce.slice(0,De))}return ce+b}function vle(c){return c=xt(c),c&&Me.test(c)?c.replace(ot,XAe):c}var Ele=nl(function(c,d,m){return c+(m?" ":"")+d.toUpperCase()}),I0=B_("toUpperCase");function mT(c,d,m){return c=xt(c),d=m?n:d,d===n?GAe(c)?tre(c):NAe(c):c.match(d)||[]}var gT=dt(function(c,d){try{return YA(c,n,d)}catch(m){return F0(m)?m:new At(m)}}),kle=Ko(function(c,d){return hr(d,function(m){m=Bo(m),Vo(c,m,k0(c[m],c))}),c});function Sle(c){var d=c==null?0:c.length,m=qe();return c=d?Zt(c,function(b){if(typeof b[1]!="function")throw new pr(i);return[m(b[0]),b[1]]}):[],dt(function(b){for(var x=-1;++x<d;){var V=c[x];if(YA(V[0],this,b))return YA(V[1],this,b)}})}function Fle(c){return Xre(gr(c,h))}function _0(c){return function(){return c}}function Qle(c,d){return c==null||c!==c?d:c}var xle=w_(),Ule=w_(!0);function MA(c){return c}function T0(c){return qI(typeof c=="function"?c:gr(c,h))}function Ile(c){return XI(gr(c,h))}function _le(c,d){return ZI(c,gr(d,h))}var Tle=dt(function(c,d){return function(m){return $c(m,c,d)}}),Dle=dt(function(c,d){return function(m){return $c(c,m,d)}});function D0(c,d,m){var b=$n(d),x=Sh(d,b);m==null&&!(An(d)&&(x.length||!b.length))&&(m=d,d=c,c=this,x=Sh(d,$n(d)));var V=!(An(m)&&"chain"in m)||!!m.chain,ee=Wo(c);return hr(x,function(oe){var ce=d[oe];c[oe]=ce,ee&&(c.prototype[oe]=function(){var be=this.__chain__;if(V||be){var Ee=c(this.__wrapped__),Se=Ee.__actions__=_A(this.__actions__);return Se.push({func:ce,args:arguments,thisArg:c}),Ee.__chain__=be,Ee}return ce.apply(c,Vi([this.value()],arguments))})}),c}function Mle(){return qn._===this&&(qn._=sre),this}function M0(){}function Ole(c){return c=at(c),dt(function(d){return e_(d,c)})}var Lle=d0(Zt),Nle=d0(CI),Hle=d0(Ly);function BT(c){return y0(c)?Ny(Bo(c)):poe(c)}function Ple(c){return function(d){return c==null?n:Vs(c,d)}}var Rle=b_(),Vle=b_(!0);function O0(){return[]}function L0(){return!1}function $le(){return{}}function Kle(){return""}function zle(){return!0}function Wle(c,d){if(c=at(c),c<1||c>E)return[];var m=v,b=iA(c,v);d=qe(d),c-=v;for(var x=Ry(b,d);++m<c;)d(m);return x}function Gle(c){return rt(c)?Zt(c,Bo):JA(c)?[c]:_A(N_(xt(c)))}function Yle(c){var d=++ore;return xt(c)+d}var jle=_h(function(c,d){return c+d},0),qle=f0("ceil"),Jle=_h(function(c,d){return c/d},1),Xle=f0("floor");function Zle(c){return c&&c.length?kh(c,MA,Xy):n}function ece(c,d){return c&&c.length?kh(c,qe(d,2),Xy):n}function tce(c){return EI(c,MA)}function nce(c,d){return EI(c,qe(d,2))}function Ace(c){return c&&c.length?kh(c,MA,n0):n}function rce(c,d){return c&&c.length?kh(c,qe(d,2),n0):n}var oce=_h(function(c,d){return c*d},1),ice=f0("round"),sce=_h(function(c,d){return c-d},0);function ace(c){return c&&c.length?Py(c,MA):0}function lce(c,d){return c&&c.length?Py(c,qe(d,2)):0}return O.after=Ise,O.ary=j_,O.assign=Bae,O.assignIn=lT,O.assignInWith=zh,O.assignWith=yae,O.at=wae,O.before=q_,O.bind=k0,O.bindAll=kle,O.bindKey=J_,O.castArray=$se,O.chain=W_,O.chunk=Xoe,O.compact=Zoe,O.concat=eie,O.cond=Sle,O.conforms=Fle,O.constant=_0,O.countBy=ase,O.create=Cae,O.curry=X_,O.curryRight=Z_,O.debounce=eT,O.defaults=bae,O.defaultsDeep=vae,O.defer=_se,O.delay=Tse,O.difference=tie,O.differenceBy=nie,O.differenceWith=Aie,O.drop=rie,O.dropRight=oie,O.dropRightWhile=iie,O.dropWhile=sie,O.fill=aie,O.filter=cse,O.flatMap=fse,O.flatMapDeep=hse,O.flatMapDepth=pse,O.flatten=V_,O.flattenDeep=lie,O.flattenDepth=cie,O.flip=Dse,O.flow=xle,O.flowRight=Ule,O.fromPairs=uie,O.functions=Uae,O.functionsIn=Iae,O.groupBy=mse,O.initial=fie,O.intersection=hie,O.intersectionBy=pie,O.intersectionWith=mie,O.invert=Tae,O.invertBy=Dae,O.invokeMap=Bse,O.iteratee=T0,O.keyBy=yse,O.keys=$n,O.keysIn=DA,O.map=Hh,O.mapKeys=Oae,O.mapValues=Lae,O.matches=Ile,O.matchesProperty=_le,O.memoize=Rh,O.merge=Nae,O.mergeWith=cT,O.method=Tle,O.methodOf=Dle,O.mixin=D0,O.negate=Vh,O.nthArg=Ole,O.omit=Hae,O.omitBy=Pae,O.once=Mse,O.orderBy=wse,O.over=Lle,O.overArgs=Ose,O.overEvery=Nle,O.overSome=Hle,O.partial=S0,O.partialRight=tT,O.partition=Cse,O.pick=Rae,O.pickBy=uT,O.property=BT,O.propertyOf=Ple,O.pull=wie,O.pullAll=K_,O.pullAllBy=Cie,O.pullAllWith=bie,O.pullAt=vie,O.range=Rle,O.rangeRight=Vle,O.rearg=Lse,O.reject=Ese,O.remove=Eie,O.rest=Nse,O.reverse=v0,O.sampleSize=Sse,O.set=$ae,O.setWith=Kae,O.shuffle=Fse,O.slice=kie,O.sortBy=Use,O.sortedUniq=_ie,O.sortedUniqBy=Tie,O.split=fle,O.spread=Hse,O.tail=Die,O.take=Mie,O.takeRight=Oie,O.takeRightWhile=Lie,O.takeWhile=Nie,O.tap=Zie,O.throttle=Pse,O.thru=Nh,O.toArray=iT,O.toPairs=dT,O.toPairsIn=fT,O.toPath=Gle,O.toPlainObject=aT,O.transform=zae,O.unary=Rse,O.union=Hie,O.unionBy=Pie,O.unionWith=Rie,O.uniq=Vie,O.uniqBy=$ie,O.uniqWith=Kie,O.unset=Wae,O.unzip=E0,O.unzipWith=z_,O.update=Gae,O.updateWith=Yae,O.values=ol,O.valuesIn=jae,O.without=zie,O.words=mT,O.wrap=Vse,O.xor=Wie,O.xorBy=Gie,O.xorWith=Yie,O.zip=jie,O.zipObject=qie,O.zipObjectDeep=Jie,O.zipWith=Xie,O.entries=dT,O.entriesIn=fT,O.extend=lT,O.extendWith=zh,D0(O,O),O.add=jle,O.attempt=gT,O.camelCase=Zae,O.capitalize=hT,O.ceil=qle,O.clamp=qae,O.clone=Kse,O.cloneDeep=Wse,O.cloneDeepWith=Gse,O.cloneWith=zse,O.conformsTo=Yse,O.deburr=pT,O.defaultTo=Qle,O.divide=Jle,O.endsWith=ele,O.eq=$r,O.escape=tle,O.escapeRegExp=nle,O.every=lse,O.find=use,O.findIndex=P_,O.findKey=Eae,O.findLast=dse,O.findLastIndex=R_,O.findLastKey=kae,O.floor=Xle,O.forEach=G_,O.forEachRight=Y_,O.forIn=Sae,O.forInRight=Fae,O.forOwn=Qae,O.forOwnRight=xae,O.get=x0,O.gt=jse,O.gte=qse,O.has=_ae,O.hasIn=U0,O.head=$_,O.identity=MA,O.includes=gse,O.indexOf=die,O.inRange=Jae,O.invoke=Mae,O.isArguments=zs,O.isArray=rt,O.isArrayBuffer=Jse,O.isArrayLike=TA,O.isArrayLikeObject=Cn,O.isBoolean=Xse,O.isBuffer=ji,O.isDate=Zse,O.isElement=eae,O.isEmpty=tae,O.isEqual=nae,O.isEqualWith=Aae,O.isError=F0,O.isFinite=rae,O.isFunction=Wo,O.isInteger=nT,O.isLength=$h,O.isMap=AT,O.isMatch=oae,O.isMatchWith=iae,O.isNaN=sae,O.isNative=aae,O.isNil=cae,O.isNull=lae,O.isNumber=rT,O.isObject=An,O.isObjectLike=cn,O.isPlainObject=jc,O.isRegExp=Q0,O.isSafeInteger=uae,O.isSet=oT,O.isString=Kh,O.isSymbol=JA,O.isTypedArray=rl,O.isUndefined=dae,O.isWeakMap=fae,O.isWeakSet=hae,O.join=gie,O.kebabCase=Ale,O.last=yr,O.lastIndexOf=Bie,O.lowerCase=rle,O.lowerFirst=ole,O.lt=pae,O.lte=mae,O.max=Zle,O.maxBy=ece,O.mean=tce,O.meanBy=nce,O.min=Ace,O.minBy=rce,O.stubArray=O0,O.stubFalse=L0,O.stubObject=$le,O.stubString=Kle,O.stubTrue=zle,O.multiply=oce,O.nth=yie,O.noConflict=Mle,O.noop=M0,O.now=Ph,O.pad=ile,O.padEnd=sle,O.padStart=ale,O.parseInt=lle,O.random=Xae,O.reduce=bse,O.reduceRight=vse,O.repeat=cle,O.replace=ule,O.result=Vae,O.round=ice,O.runInContext=le,O.sample=kse,O.size=Qse,O.snakeCase=dle,O.some=xse,O.sortedIndex=Sie,O.sortedIndexBy=Fie,O.sortedIndexOf=Qie,O.sortedLastIndex=xie,O.sortedLastIndexBy=Uie,O.sortedLastIndexOf=Iie,O.startCase=hle,O.startsWith=ple,O.subtract=sce,O.sum=ace,O.sumBy=lce,O.template=mle,O.times=Wle,O.toFinite=Go,O.toInteger=at,O.toLength=sT,O.toLower=gle,O.toNumber=wr,O.toSafeInteger=gae,O.toString=xt,O.toUpper=Ble,O.trim=yle,O.trimEnd=wle,O.trimStart=Cle,O.truncate=ble,O.unescape=vle,O.uniqueId=Yle,O.upperCase=Ele,O.upperFirst=I0,O.each=G_,O.eachRight=Y_,O.first=$_,D0(O,(function(){var c={};return mo(O,function(d,m){Dt.call(O.prototype,m)||(c[m]=d)}),c})(),{chain:!1}),O.VERSION=A,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){O[c].placeholder=O}),hr(["drop","take"],function(c,d){gt.prototype[c]=function(m){m=m===n?1:_n(at(m),0);var b=this.__filtered__&&!d?new gt(this):this.clone();return b.__filtered__?b.__takeCount__=iA(m,b.__takeCount__):b.__views__.push({size:iA(m,v),type:c+(b.__dir__<0?"Right":"")}),b},gt.prototype[c+"Right"]=function(m){return this.reverse()[c](m).reverse()}}),hr(["filter","map","takeWhile"],function(c,d){var m=d+1,b=m==R||m==N;gt.prototype[c]=function(x){var V=this.clone();return V.__iteratees__.push({iteratee:qe(x,3),type:m}),V.__filtered__=V.__filtered__||b,V}}),hr(["head","last"],function(c,d){var m="take"+(d?"Right":"");gt.prototype[c]=function(){return this[m](1).value()[0]}}),hr(["initial","tail"],function(c,d){var m="drop"+(d?"":"Right");gt.prototype[c]=function(){return this.__filtered__?new gt(this):this[m](1)}}),gt.prototype.compact=function(){return this.filter(MA)},gt.prototype.find=function(c){return this.filter(c).head()},gt.prototype.findLast=function(c){return this.reverse().find(c)},gt.prototype.invokeMap=dt(function(c,d){return typeof c=="function"?new gt(this):this.map(function(m){return $c(m,c,d)})}),gt.prototype.reject=function(c){return this.filter(Vh(qe(c)))},gt.prototype.slice=function(c,d){c=at(c);var m=this;return m.__filtered__&&(c>0||d<0)?new gt(m):(c<0?m=m.takeRight(-c):c&&(m=m.drop(c)),d!==n&&(d=at(d),m=d<0?m.dropRight(-d):m.take(d-c)),m)},gt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},gt.prototype.toArray=function(){return this.take(v)},mo(gt.prototype,function(c,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),b=/^(?:head|last)$/.test(d),x=O[b?"take"+(d=="last"?"Right":""):d],V=b||/^find/.test(d);x&&(O.prototype[d]=function(){var ee=this.__wrapped__,oe=b?[1]:arguments,ce=ee instanceof gt,be=oe[0],Ee=ce||rt(ee),Se=function(ft){var yt=x.apply(O,Vi([ft],oe));return b&&De?yt[0]:yt};Ee&&m&&typeof be=="function"&&be.length!=1&&(ce=Ee=!1);var De=this.__chain__,$e=!!this.__actions__.length,Je=V&&!De,ct=ce&&!$e;if(!V&&Ee){ee=ct?ee:new gt(this);var Xe=c.apply(ee,oe);return Xe.__actions__.push({func:Nh,args:[Se],thisArg:n}),new mr(Xe,De)}return Je&&ct?c.apply(this,oe):(Xe=this.thru(Se),Je?b?Xe.value()[0]:Xe.value():Xe)})}),hr(["pop","push","shift","sort","splice","unshift"],function(c){var d=ch[c],m=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);O.prototype[c]=function(){var x=arguments;if(b&&!this.__chain__){var V=this.value();return d.apply(rt(V)?V:[],x)}return this[m](function(ee){return d.apply(rt(ee)?ee:[],x)})}}),mo(gt.prototype,function(c,d){var m=O[d];if(m){var b=m.name+"";Dt.call(Za,b)||(Za[b]=[]),Za[b].push({name:d,func:m})}}),Za[Ih(n,w).name]=[{name:"wrapper",func:n}],gt.prototype.clone=vre,gt.prototype.reverse=Ere,gt.prototype.value=kre,O.prototype.at=ese,O.prototype.chain=tse,O.prototype.commit=nse,O.prototype.next=Ase,O.prototype.plant=ose,O.prototype.reverse=ise,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=sse,O.prototype.first=O.prototype.head,Oc&&(O.prototype[Oc]=rse),O}),qa=nre();Ls?((Ls.exports=qa)._=qa,Ty._=qa):qn._=qa}).call(U5)})(nc,nc.exports)),nc.exports}var WE=I5();const _5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAEA0V4cAANaTc64j//NLKcl/CwCwllRrdRQAwJDfjDgAAHPyCAAAGP79uwOAAAAAAAAIAAAAAIAAAAAAAAgAAAAAwEn8CgAATOq3l+mNetv+rP9eAIAAAAAAAOF5BAAAAAAEAAAAAEAAAAAAAJZwdQgA2N2tl9Z5UZ1zwjkBQDReAghAmAHPwIdzA4DI7AAAINxwB8+eR0IAADuxAwCA0IO/Ac954jwBQAAAgE2HOUOd88Z5A0BEHgEAINwABy3OPyEAgNXYAQBAyMHf8OZcci4BIAAAwKbDmkEN5xcAAgAAGMxwvjnfABAAAGC1QcwQhnMQAAQAAAxd4JwEQAAAAEMWOEcBEAAAYKrBylCF8xUABAAANh2kDFE4hwFAAADA0ATOaQC44eIQAGBQgvcdOTdb/fQgADzDDgAADP7gXAdAAACAMQORYQjnPQAIAAAYgMDnAAAEAAAMPLD+58JnAgABAADDP/h8AIAAAMA6w43BBp8VnxUABAAADDPgs+OzA0BDF4cAgDMZYMBnAYAxrg4BAIYdGPu5ePf9AADwCjsAADD8g88IAAHYAQCAoQYm+rzYDQBAL3YAAGD4B58dAALwKwAANPF519LwAj5XAAgAAAAAwCAeAQAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAiyznXj38cCcA6A8AjqVZrOcCqF+S3/l5KSY4OYJ0B4Cc7AAA2uigHsAYBIAAAuDAHsJYACAAAuCgHsBYBCAAALHPB7dlcoIVn1hIRAEAAAGDQ8A9gbQJAAAAIcIHt7j/Q0rNriggAIAAAMOGFOoC1BUAAAGBCnvsHVogAdgEACAAAGP4BEQAAAQAAAAAQAAACc/cfmI1dAAACAACGf0AEEAEABAAADP+ACACAAAAAAAAIAACRuPsPrMIuAAABAADDPyACiAAAAgAAAAAgAAAE5e4/sCq7AAAEAAAM/4AIIAIACAAAAACAAAAQhLv/wC7sAgAQAADofEENYM0CQAAAmJg7YYC1DwABAMAFsDtpwJI8CgAgAADQ+AIawBoGgAAAMDF3vgCshQACAADunAHWMgAEAIDVueMFYE0EEAAAXOi6YwZsxQsBAQQAAAz/gLUNAAEAYD/ucAFYIwEEAADcIQOscQAIAACrc2cLwFoJIAAA4M4YYK0DQAAAWJ07WgDWTAABAAB3xABrHgACAMDq3MkCsHYCCAAAuBMGWPsAEAAAVvfbHSwXwIAI8P4aCoAAAAAAAAgAAHNw9x/AWgggAAAAAAACAMDq3PECsCYCCAAAAABAN6lWL1kF6OXzTdbucgFYLwEEAAAAAKA7jwAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACgEMAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAJHknOvHP44EgHUaYGWpVmslwL0Lyp9/K6UkRwbAWg2wIjsAAJ68oHz0dwCs1QACAAAAACAAAAAAAAIAwOlsHQWwlgMIAADBebEUAAACAAAAnEiUBRAAAAAAAAEA4D7PjAJY0wEEAAAAAEAAANidZ00BrM0AAgAAAAAgAAAAAAACAMAUvCwKwNoOIAAAAAAAAgDA7rxkCsAaDSAAAAAAAAIAAAAAIAAATMFLogCs8QACAAAAACAAAOzOy6UArNUAAgAAAAAgAAAAAAACAAAAACAAAJzD26EBrPUAAgAAAAAgAADszlulAazZAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAEAjfhYKwJoPIAAAAAAAAgDA7vycFIC1G0AAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAPiSc66OAoC1H0AAAAjM70gDWMMBBAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABACCMUkpyFACs5QACAICLQwCs/QDLSbVWRwEAAAA2ZwcAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgADgEAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAABAc1eHAIgs51x//q2UkhwZAGs8wG7sAABcGD75dwCs8QACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAFH5nWgAaziAAACwiVJKchQArP0AAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAMC/cs7VUQCwdgMIAAAbKKUkRwHAmg8gAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAA04fekAazZAAIAwCb8LjSAtR5AAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAABoxu9KA1irAQQAgE34fWgAAAQAAABYmMgLIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAMBu/Lw1gjQYQAAA24WeiAKztAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAwEv8XBSANR1AAABwEQmANRpgWanW6igAAADA5uwAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABACHAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAgLNdHQKA1+Wc6+f/XEpJjgiAtRdgdqnW6igAvHHx+Z0LUQDrL8DsPAIA0PHCFABrLIAAAAAAAAgAAAAAgAAAAAAACAAAAOzA8/8AAgCAi1QAABAAAPrwc1MA1mQAAQAAAAAQAAAAAAABAAAAABAAANbgRYAA1lQAAQBgE146BWAtBhAAAAAAAAEAAAAAEAAAtuCZVQBrKYAAAAAAAAgAAKvw8ikAazCAAAAAAAAIAAAAAIAAALAFL68CsIYCCAAAAACAAACwCi+hArD2AggAAAAAgAAAAAAACAAAW/ASKwBrJ4AAALAJz6ICWHMBBAAAAABAAAAAAAAEAIAteJYVwJoJIAAAAAAAAgDAKryUCsBaCyAAAAAAAAIAQASeaQWwVgIIAAAAAIAAALAKz6YCWGMBBAAAAABAAACIwLOtAAAIAAAAhCaSAggAAEvxjCqAtRVAAAAAAAAEAAAAAEAAANiCZ1wBrI0AAgDAJjyrCmBNBRAAAAAAAAEAIAJbXQGsiQACAAAAACAAAKzCM6sA1lIAAQAAAAAQAAAAAAABAGAZ97au2tIKYK0EEAAANr+wdUELYK0EGCnV6tdXAAAAYHd2AAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAKAQwAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAADAQTnn+vGPIwFYvwBoJdVqfQaY6cL51t9LKcnRAaxfABxhBwAAAAAIAADMwHZawBoFgAAAAAAACAAAu3CHDbA2ASAAAAAAAAIAwCq8LRuwpgEgAABgqy1gTQJAAAAAAAAEAIBl2DILWMsAEAAAsOUWsBYBIAAAAAAAAgDAMn7bOuvOGzDSb2uQ7f8AAgAAAAAgAAAAAAACAEAwHgMAZmT7P4AAAAAAAAgAALzDnTTAmgWAAACAxwAAaw4AAgAAAAAgAAAsw8sAgRl4+R+AAAAAAAAIAAC04M4aYI0CQAAAwGMAgDUGAAEAAAAAEAAAluFlgMAIXv4HIAAAAAAAAgAAPdgFAJzJ3X8AAQAAAAAQAAAAAAABAIBDPAYAnMH2fwABAAAAABAAADiDXQBAT+7+AwgAAAAAgAAAwJnsAgB6cPcfQAAAAAAABAAAAABAAACgC48BAC3Z/g8gAAAAAAACAAAj2QUAtODuP4AAAAAAAAgAAMzALgDgCHf/AQQAAAAAQAAAYCZ2AQDvcPcfQAAAAAAABAAAZuROHWBNAUAAAAAAAAEAAAAAEAAAWIYtu4C1BIBbUq1eCg0AAAC7swMAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQABwCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAD4JudcP/5xJMDnE4B1pVp9XwBwf7D4+bdSSnJkwGcUgPXYAQDA04PFo78DPqMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAQfkZMfAZBkAAAAAAAAQAAHZXSkmOAvgsAiAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABAHDnn6igAIAAAYGgAABAAAOA2vzsOPpMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAfMk5V0cBfKYBEAAACMzvjYPPJgACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABf/F44+GwDIAAAAAAAAgAAuyulJEcBfEYBEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAA+CPnXB0F8BkHQAAAIDC/Lw4+qwAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAA8xc+Kgc8sAAIAAAAAsJBUa3UUAPgj5/z1peBOIvgsAyAAAAAAAIvxCAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAADAIVeHAGAeOef682+llOTIANYwAI5KtVZHAWCSC+V7XEAD1jQAjrIDAGCyC2OAiGuiKAAgAAAY9AECr5/CAIAAAGDQBwi83goDAAIAgCEfIPgaLQ4A3OYlgICLyMkHfReygPXUegogAABsdGHqAhWw7lp3AQQAABeeANZl6zKAAACwykWmi0qANdZs6zWwIy8BBHDhCDDdmulFrAACAIAhHyD4GisOAAgAAAZ9gMDrsjAAIAAAGPQBAq/jwgDAP7wEENjWvQs+gz4AvicAAQAAAADY0sUhAAAAAAEAAAAAEAAAAACAFfgVAOBXt16S5AVJAOC7GViLlwACT11U3OJCAwB8TwPrsAMA8PvIABDg+10QAAQAcEEAAAgCgAAAGPgBAEEAEAAAAz8AIAgAS/ASQDD0v8VFAQD43gcEAGDDL35f/gDgmsA1AQgAgC93AMA1AyAAAL68AQDXFIAAAPhyBgBccwACAPjy9eULALgmAQQA8CXryxUAcK0CCAAQ6wvVlygA4PoFuOfqEMC6fGECAGdfb4x4ZAAQAMDADwAgCAACABj4AQAEAeCTdwDAyR59KRr4AQDXPoAAAAAAALzt4hAAAACAAAAAAAAIAAAAAIAAACf4eLGMt80CAOB6Ex7zEkCWXIAf/d+9TRYAANed8H9Xh4AdFl8AABh5jSoGIACAoR8AADEABAAw9AMAIAaAAIChHwAAxAAQADD0AwCAGADP8isAbDH0W0ABAHAtCwIAFkoAAHCNiwAgALDSomhBBADAdS8IAFj8AADA9TAIAKy00FnkAABwjewaGQGATRc1CxoAAK6bXTcjAGDxAgAA19OupxEAWGmhskgBAIBrbAQALEoAAOCa2zU3AgCrLUIWIAAAcB2OAIAFBwAAcF2OAMBqi4zFBQAAXKczr6tDwFEWFAAA6H+93foXBBAAwOAPAABCAAIAGPwBAEAIYEXeAcB/3FtEDP0AAOA6HgGAjRcPCwYAALiWRwAAAAAAFnFxCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAG64OwRg55/r5P5dSkiMCAACYgegp1VodhUEn/Xc+AAAAgDmInjwCMMFJDwAAYEaiN48AOKkBAACGz0t2A/RnB4DhHwAAwOwkAOAEBgAAMEMJADQ5cW11AQAAdvbKzCMC9ONXAAYO/oZ/AADAvGReOosdAE5mAACAU7w6A9kNIAAY/gEAAEQAXuQRgJOHf4M/AACAWWoEOwCcsAAAAEN4OaAAYPgHAAAQAUQAAcDwDwAAIALwKu8A6Dj4G/4BAADMWwLA5iejExEAAMDsNROPADgBAQAApuKRAAHA8A8AACACiAACgOEfAABABEAAMPwDAACIAAIAhn8AAAARQAAw/Bv+AQAARAABwPAPAACACCAAGP4BAAAQAQQAwz8AAAAigABg+AcAAEAEEAAM/wAAACKACCAAGP4BAABEABEgcgAw/AMAAIgAAgCGfwAAALObALC6Z4uPEwgAAGC/CBB1F0C4AGD4BwAAEAEiRoBQAcDwDwAAIAJEjQBhAoDhHwAAQASIHAG8BNDwDwAAYMYTAJwYAAAAmPUEACcEAAAAZj4BwIkAAACA2U8AGP5fthMAAAAgdgSINBemWquzAAAAADbnHQAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAA4BAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAANHId/S+Qc64//1ZKSf6rAQAAYFUzzrqX2Q7Io78DAADAisP/DLOuRwAAAAAggGEBwF1+AAAAohk5C9sBAAAAAAEMCQC/FQ8vAQQAAGBXo3YB2AEAAAAADc16U/v0AODuPwAAANEjwIhdAHYAAAAAQACnBgB3/wEAAIhitl0AdgAAAABAAKcFAHf/AQAAiGamXQB2AAAAAEAApwQAd/8BAACIapZdAHYAAAAAQADdA8CI3zYEAACAlZwxOw/fAWD7PwAAALubYfb1CAAAAAAE0DUAePkfAAAAPDcD934MwA4AAAAACKBbAHD3HwAAAF6bhXvuArADAAAAAAIYEgDc/QcAACCqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",T5={class:"camera__preview"},D5={key:0,class:"camera__bg-notification"},M5=["innerHTML"],O5=["width","height"],L5={key:1,class:"camera__countdown-overlay"},N5=["innerHTML","data-countdown"],H5=["src"],P5={class:"camera__controls"},R5={class:"container"},V5={class:"row"},$5={class:"col"},K5={class:"btn-group"},z5={key:0},W5={key:1},G5={key:0,class:"camera__switch-cam"},Y5={key:1,class:"base-camera__devices"},j5={name:"BaseCamera",inheritAttrs:!1};function q5(t){const e=atob(t.split(",")[1]),n=new ArrayBuffer(e.length),A=new Uint8Array(n);for(let r=0;r<e.length;r++)A[r]=e.charCodeAt(r);return new Blob([n],{type:"image/png"})}const J5=s.defineComponent({...j5,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>_5},countdown:{type:Number,default:0},ratio:{type:String,default:"4x5"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const A={"1x1":{width:720,height:720},"2x3":{width:720,height:1080},"3x2":{width:1080,height:720},"3x4":{width:720,height:960},"4x3":{width:960,height:720},"4x5":{width:960,height:1200},"5x4":{width:1200,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,o=n,i=s.ref(),a=s.ref(),l=s.ref(!1),u=s.ref([]),f=s.ref(),h=s.ref(),p=s.ref(!1),g=s.ref(!1),B=s.ref(0),y=s.ref(0),C=s.ref(),w=s.computed(()=>u.value.filter(E=>E.kind==="videoinput")),F=s.computed(()=>u.value.filter(E=>E.kind==="audioinput")),_=s.computed({get(){return f.value&&f.value.deviceId},set(E){f.value=w.value.find(I=>I.deviceId===E)}}),D=s.computed({get(){return h.value&&h.value.deviceId},set(E){h.value=F.value.find(I=>I.deviceId===E)}}),P=s.computed(()=>{const E=f.value&&w.value.findIndex(I=>I.deviceId===f.value.deviceId);return r.enableMirrorCamera&&E===0?"mirror-cam":""}),T=s.computed(()=>{const E=f.value&&u.value.findIndex(I=>I.deviceId===f.value.deviceId);return P.value?`${P.value} mirror-device-${E}`:""});function H(){B.value=A[r.ratio]?A[r.ratio].width:i.value.parentElement&&i.value.parentElement.clientWidth,y.value=A[r.ratio]?A[r.ratio].height:i.value.parentElement&&i.value.parentElement.clientHeight}const te=WE.debounce(()=>{H()},300,{trailing:!0,leading:!1});async function Z(){const E={audio:r.enableAudio&&{...h.value?{deviceId:h.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(E).catch(I=>{console.error(I,"navigator.mediaDevices.getUserMedia: failed")})}function ne(){i.value&&i.value.srcObject&&i.value.srcObject.getTracks().forEach(I=>{I.stop()})}async function pe(){return i.value.srcObject=await Z(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:i.value.srcObject,devices:u.value}}function Be(){p.value?(p.value=!1,g.value=!1,ne()):(p.value=!0,pe())}function we(){u.value.length>1&&(ne(),f.value=f.value&&f.value.deviceId===w.value[0].deviceId?w.value[w.value.length-1]:w.value[0],pe())}async function R(E,I){ne(),E&&(!I||E.deviceId!==I.deviceId)&&await pe()}s.watch(()=>f.value,R),s.watch(()=>h.value,R);function K(){r.countdown?(C.value=C.value?C.value-1:r.countdown,C.value?setTimeout(K,1e3):N()):N()}e({onCapture:K,camera:i.value});function N(){g.value=!0;const E=a.value.getContext("2d"),I=i.value,Q=I&&I.srcObject&&I.srcObject.getTracks(),{aspectRatio:v,width:W,height:M}=Q.length&&Q[0].getSettings(),$=A[r.ratio],J=$.width/$.height;let j=$.width,S=$.height;r.enableCropImage?v>J?j=S*v:v<J&&(S=j/v):(j=W,S=M,a.value.width=j,a.value.height=S);const G=P.value?-1:1;E.save(),E.scale(G,1),E.drawImage(I,j>a.value.width?(a.value.width-j)/2:0,S>a.value.height?(a.value.height-S)/2:0,j*G,S),E.restore();const ue=a.value.toDataURL("image/png");k(ue)}function k(E){const I=q5(E);o("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:I,size:I.size})}return s.onMounted(async()=>{ne(),await pe(),f.value=w.value[0],r.enableAudio&&(h.value=F.value[0]),navigator.mediaDevices.addEventListener("devicechange",async E=>{await pe()}),r.defaultRearCamera&&we(),Be(),window.addEventListener("resize",te),H(),await s.nextTick(),l.value=!0}),s.onBeforeUnmount(()=>{p.value=!1,g.value=!1,ne(),window.removeEventListener("resize",te)}),(E,I)=>{const Q=s.resolveComponent("loading-spinner"),v=s.resolveComponent("svg-icon"),W=s.resolveComponent("input-dropdown");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["camera",T.value])},[s.createElementVNode("div",T5,[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",D5,[s.createVNode(Q,{color:"#000"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:s.normalizeClass("d-block text-center"),innerHTML:E.$t("camera.waitForCameraNotification")},null,8,M5)]),_:1})])),s.withDirectives(s.createElementVNode("video",{ref_key:"camera",ref:i,class:s.normalizeClass(["camera__video",`aspect-ratio--${r.ratio}`]),autoplay:"",playsinline:""},null,2),[[s.vShow,l.value]]),s.withDirectives(s.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:B.value,height:y.value},null,8,O5),[[s.vShow,g.value]]),C.value?(s.openBlock(),s.createElementBlock("div",L5,[(s.openBlock(),s.createElementBlock("p",{class:"countdown",key:C.value,innerHTML:C.value,"data-countdown":C.value},null,8,N5))])):s.createCommentVNode("",!0),t.enableGuide&&p.value&&l.value?(s.openBlock(),s.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,H5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",P5,[s.createElementVNode("div",R5,[s.createElementVNode("div",V5,[s.createElementVNode("div",$5,[s.createElementVNode("div",K5,[s.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:Be},[p.value?(s.openBlock(),s.createElementBlock("span",W5,s.toDisplayString(E.$t("common.pause")),1)):(s.openBlock(),s.createElementBlock("span",z5,s.toDisplayString(E.$t("common.play")),1))]),s.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:K},s.toDisplayString(E.$t("camera.capture")),1)])])])])]),t.enableSwitchCamera&&w.value&&w.value.length>1?(s.openBlock(),s.createElementBlock("div",G5,[s.createElementVNode("button",{class:"btn",onClick:s.withModifiers(we,["prevent"])},[s.createVNode(v,{symbol:"switch-camera"})])])):s.createCommentVNode("",!0),t.enableSelectDevice?(s.openBlock(),s.createElementBlock("div",Y5,[F.value.length&&h.value?(s.openBlock(),s.createBlock(W,{key:0,modelValue:D.value,"onUpdate:modelValue":I[0]||(I[0]=M=>D.value=M),options:F.value.map((M,$)=>({text:M.label||`Microphone ${$+1}`,value:M.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0),w.value.length?(s.openBlock(),s.createBlock(W,{key:1,modelValue:_.value,"onUpdate:modelValue":I[1]||(I[1]=M=>_.value=M),options:w.value.map((M,$)=>({text:M.label||`Camera ${$+1}`,value:M.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)}}}),X5=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Z5=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,e6=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function t6(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){n6(t);return}return e}function n6(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function A6(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const A=n.toLowerCase();if(A==="true")return!0;if(A==="false")return!1;if(A==="undefined")return;if(A==="null")return null;if(A==="nan")return Number.NaN;if(A==="infinity")return Number.POSITIVE_INFINITY;if(A==="-infinity")return Number.NEGATIVE_INFINITY}if(!e6.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(X5.test(t)||Z5.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,t6)}return JSON.parse(t)}catch(A){if(e.strict)throw A;return t}}const r6=/#/g,o6=/&/g,i6=/\//g,s6=/=/g,_g=/\+/g,a6=/%5e/gi,l6=/%60/gi,c6=/%7c/gi,u6=/%20/gi;function d6(t){return encodeURI(""+t).replace(c6,"|")}function Tg(t){return d6(typeof t=="string"?t:JSON.stringify(t)).replace(_g,"%2B").replace(u6,"+").replace(r6,"%23").replace(o6,"%26").replace(l6,"`").replace(a6,"^").replace(i6,"%2F")}function Dg(t){return Tg(t).replace(s6,"%3D")}function GE(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function f6(t){return GE(t.replace(_g," "))}function h6(t){return GE(t.replace(_g," "))}function p6(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const A=n.match(/([^=]+)=?(.*)/)||[];if(A.length<2)continue;const r=f6(A[1]);if(r==="__proto__"||r==="constructor")continue;const o=h6(A[2]||"");e[r]===void 0?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}return e}function m6(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Dg(t)}=${Tg(n)}`).join("&"):`${Dg(t)}=${Tg(e)}`:Dg(t)}function g6(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>m6(e,t[e])).filter(Boolean).join("&")}const B6=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y6=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,w6=/^([/\\]\s*){2,}[^/\\]/,C6=/^\.?\//;function YE(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?B6.test(t):y6.test(t)||(e.acceptRelative?w6.test(t):!1)}function b6(t="",e){return t.endsWith("/")}function v6(t="",e){return(b6(t)?t.slice(0,-1):t)||"/"}function E6(t="",e){return t.endsWith("/")?t:t+"/"}function k6(t,e){if(F6(e)||YE(t))return t;const n=v6(e);return t.startsWith(n)?t:x6(n,t)}function S6(t,e){const n=U6(t),A={...p6(n.search),...e};return n.search=g6(A),I6(n)}function F6(t){return!t||t==="/"}function Q6(t){return t&&t!=="/"}function x6(t,...e){let n=t||"";for(const A of e.filter(r=>Q6(r)))if(n){const r=A.replace(C6,"");n=E6(n)+r}else n=A;return n}const jE=Symbol.for("ufo:protocolRelative");function U6(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,p=""]=n;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!YE(t,{acceptRelative:!0}))return qE(t);const[,A="",r,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];A==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:f}=qE(a);return{protocol:A.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:i,pathname:l,search:u,hash:f,[jE]:!A}}function qE(t=""){const[e="",n="",A=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:A}}function I6(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",A=t.hash||"",r=t.auth?t.auth+"@":"",o=t.host||"";return(t.protocol||t[jE]?(t.protocol||"")+"//":"")+r+o+e+n+A}class _6 extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function T6(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",A=t.request?.url||String(t.request)||"/",r=`[${n}] ${JSON.stringify(A)}`,o=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",i=`${r}: ${o}${e?` ${e}`:""}`,a=new _6(i,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[u]}});return a}const D6=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function JE(t="GET"){return D6.has(t.toUpperCase())}function M6(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const O6=new Set(["image/svg","application/xml","application/xhtml","application/html"]),L6=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function N6(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return L6.test(e)?"json":O6.has(e)||e.startsWith("text/")?"text":"blob"}function H6(t,e,n,A){const r=P6(e?.headers??t?.headers,n?.headers,A);let o;return(n?.query||n?.params||e?.params||e?.query)&&(o={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:o,params:o,headers:r}}function P6(t,e,n){if(!e)return new n(t);const A=new n(e);if(t)for(const[r,o]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))A.set(r,o);return A}async function Nd(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const R6=new Set([408,409,425,429,500,502,503,504]),V6=new Set([101,204,205,304]);function XE(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:A=globalThis.AbortController}=t;async function r(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let f;typeof a.options.retry=="number"?f=a.options.retry:f=JE(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):R6.has(h))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(g=>setTimeout(g,p)),o(a.request,{...a.options,retry:f-1})}}const u=T6(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const f={request:l,options:H6(l,u,t.defaults,n),response:void 0,error:void 0};f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&await Nd(f,f.options.onRequest),typeof f.request=="string"&&(f.options.baseURL&&(f.request=k6(f.request,f.options.baseURL)),f.options.query&&(f.request=S6(f.request,f.options.query),delete f.options.query),"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params),f.options.body&&JE(f.options.method)&&(M6(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new n(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half")));let h;if(!f.options.signal&&f.options.timeout){const g=new A;h=setTimeout(()=>{const B=new Error("[TimeoutError]: The operation was aborted due to timeout");B.name="TimeoutError",B.code=23,g.abort(B)},f.options.timeout),f.options.signal=g.signal}try{f.response=await e(f.request,f.options)}catch(g){return f.error=g,f.options.onRequestError&&await Nd(f,f.options.onRequestError),await r(f)}finally{h&&clearTimeout(h)}if((f.response.body||f.response._bodyInit)&&!V6.has(f.response.status)&&f.options.method!=="HEAD"){const g=(f.options.parseResponse?"json":f.options.responseType)||N6(f.response.headers.get("content-type")||"");switch(g){case"json":{const B=await f.response.text(),y=f.options.parseResponse||A6;f.response._data=y(B);break}case"stream":{f.response._data=f.response.body||f.response._bodyInit;break}default:f.response._data=await f.response[g]()}}return f.options.onResponse&&await Nd(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await Nd(f,f.options.onResponseError),await r(f)):f.response},i=async function(l,u){return(await o(l,u))._data};return i.raw=o,i.native=(...a)=>e(...a),i.create=(a={},l={})=>XE({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),i}const Hd=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),$6=Hd.fetch?(...t)=>Hd.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),K6=Hd.Headers,z6=Hd.AbortController,W6=XE({fetch:$6,Headers:K6,AbortController:z6}),G6=["src"],Y6=["onClick"],j6=["onClick"],q6=["for"],J6=["innerHTML"],X6={key:0,class:"file-upload__loading-spinner"};async function Z6(t){return await new Promise(e=>{let n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(t)})}const e8=s.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0},dropFiles:{type:Boolean,default:!1}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const n=t,A=e,r=s.ref([]),o=s.ref([]),i=s.ref(!1),a=s.ref(!1),l=s.computed(()=>n.modelValue.length?n.modelValue:n.src?[{type:"",src:n.src}]:o.value);s.watch(()=>r.value,async B=>{o.value=await Promise.all(B.map(async y=>({src:n.toDataUrl?await Z6(y):await f(y),type:y.type})))},{deep:!0}),s.watch(()=>o.value,async B=>{const y=n.multiple?B:B[0];A("update:modelValue",y),n.multiple||A("update:src",B[0]&&B[0].src)},{deep:!0});function u(B){r.value.splice(B,1),(!o.value||!o.value.length)&&A("update:src","")}async function f(B){const y=new FormData;y.append("file",B),i.value=!0;const w=await(n.customFetch||W6)(n.endpoint,{method:"POST",...n.customFetch?{}:{headers:{Accept:"application/json",...n.authToken?{Authorization:`Bearer ${n.authToken}`}:{}}},body:y}).catch(_=>{console.error("Error",_)});return i.value=!1,`${n.baseResponsePath==="/media"&&w.path.endsWith(".svg")?"/api/v1/assets":n.baseResponsePath}/${w.path}`}function h(B){B.preventDefault(),a.value=!0}function p(B){B.preventDefault(),a.value=!1}function g(B){B.preventDefault(),a.value=!1;const y=B.dataTransfer,C=y&&Array.from(y.files||[]);r.value=C||[]}return s.onMounted(()=>{n.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.addEventListener(B,h,!1)}),["dragleave","drop"].forEach(B=>{document.body.addEventListener(B,p,!1)}),document.body.addEventListener("drop",g,!1))}),s.onBeforeUnmount(()=>{n.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.removeEventListener(B,h,!1)}),["dragleave","drop"].forEach(B=>{document.body.removeEventListener(B,p,!1)}),document.body.removeEventListener("drop",g,!1))}),(B,y)=>{const C=s.resolveComponent("svg-icon"),w=s.resolveComponent("input-file");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["file-upload",{"has-dragging":t.dropFiles,"is-dragging":a.value}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(F,_)=>(s.openBlock(),s.createElementBlock("div",{key:F.src,class:s.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("img",{src:`${F.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,G6),s.createElementVNode("button",{onClick:s.withModifiers(D=>u(_),["prevent"]),class:"btn btn--close"},[s.createVNode(C,{symbol:"x"})],8,Y6)],64)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:s.withModifiers(D=>u(_),["prevent"]),class:"btn btn--close btn-outline-contrast"},[s.createVNode(C,{symbol:"x"})],8,j6))],2))),128)),s.createVNode(w,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=F=>r.value=F),id:t.id,name:t.name,accept:t.accept,"max-file-size":t.maxFileSize,class:"d-none"},null,8,["modelValue","id","name","accept","max-file-size"]),s.createElementVNode("label",{for:t.id,class:"file-upload__label"},[s.renderSlot(B.$slots,"button",{},()=>[s.createElementVNode("span",{class:"btn btn-outline-contrast",innerHTML:t.label||B.$t("common.selectFile")},null,8,J6)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("span",X6,y[1]||(y[1]=[s.createElementVNode("span",{class:"spinner-border",role:"status"},[s.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)]))):s.createCommentVNode("",!0)]),_:1})],8,q6)],2)}}}),t8={class:"upload-group"},n8=["innerHTML"],A8={class:"upload-group__list"},r8={class:"img-container"},o8=["src"],i8=["onClick"],s8={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},ZE=s.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(""),o=s.computed({get(){return n.modelValue},set(a){A("update:modelValue",a)}});function i(a){o.value.splice(a,1),A("update:modelValue",o.value)}return s.watch(r,(a,l)=>{a&&(A("update:modelValue",[...o.value,a]),r.value="")}),(a,l)=>{const u=s.resolveComponent("svg-icon"),f=s.resolveComponent("file-upload"),h=s.resolveComponent("sortable-list");return s.openBlock(),s.createElementBlock("div",t8,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:t.label},null,8,n8)):s.createCommentVNode("",!0),s.createElementVNode("div",A8,[s.createVNode(h,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=p=>o.value=p),vertical:!1,class:"mb-3"},{"list-item":s.withCtx(({item:p,index:g})=>[s.createElementVNode("div",r8,[s.createElementVNode("img",{src:`${p}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,o8),s.createElementVNode("button",{onClick:s.withModifiers(B=>i(g),["prevent"]),class:"btn btn--close"},[s.createVNode(u,{symbol:"x"})],8,i8)])]),"list-append":s.withCtx(()=>[s.createVNode(f,{src:r.value,"onUpdate:src":l[0]||(l[0]=p=>r.value=p),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize},{button:s.withCtx(()=>[s.createElementVNode("span",s8,[s.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path","accept","max-file-size"])]),_:1},8,["modelValue"])])])}}}),a8={class:"asset-uploader"},l8=["innerHTML"],c8=s.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue.map(o=>o.src)},set(o){A("update:modelValue",o.map((i,a)=>({mediaType:n.modelValue[a]&&n.modelValue[a].mediaType||i.includes("data:image")?i.includes("data:image/svg")?"Svg":"Image":n.mediaTypeMap[i.split(".")[1]],src:i,name:n.modelValue[a]&&n.modelValue[a].name||`${n.name}-${a}`,...n.type?{type:n.type}:{}})))}});return(o,i)=>(s.openBlock(),s.createElementBlock("div",a8,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:t.label},null,8,l8)):s.createCommentVNode("",!0),s.createVNode(ZE,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path","accept","max-file-size"])]))}}),u8={class:"carousel d-flex"},d8=["onClick"],ek=s.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,A=s.ref(),r=s.ref();function o(){A.value.scrollTo({top:0,left:A.value.scrollLeft-A.value.clientWidth>0?A.value.scrollLeft-A.value.clientWidth:0,behavior:"smooth"})}function i(){A.value.scrollTo({top:0,left:A.value.scrollLeft-A.value.clientWidth<=r.value.clientWidth?A.value.scrollLeft+A.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(l){n("update:modelValue",l)}return(l,u)=>{const f=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",u8,[t.navigation?(s.openBlock(),s.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(f,{symbol:"chevron-left"})])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"viewport",ref:A,class:"carousel__viewport flex-grow-1"},[s.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(h,p)=>s.renderSlot(l.$slots,"carousel-item",{key:h.src,item:h,index:p},()=>[s.createElementVNode("div",{class:s.normalizeClass(["carousel__item",p===t.modelValue?"selected":""]),onClick:g=>a(p)},s.toDisplayString(h),11,d8)])),128))],512)],512),t.navigation?(s.openBlock(),s.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(i,["prevent","stop"])},[s.createVNode(f,{symbol:"chevron-right"})])):s.createCommentVNode("",!0)])}}}),f8={class:"media-thumbnails"},h8=["onClick"],p8={class:"img-container"},m8=s.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,A=s.ref(-1);function r(o){A.value=o,n("update:modelValue",o),n("select",o)}return(o,i)=>{const a=s.resolveComponent("base-image");return s.openBlock(),s.createElementBlock("div",f8,[s.createVNode(ek,{items:t.assets},{"carousel-item":s.withCtx(l=>[s.createElementVNode("a",{role:"button",class:s.normalizeClass(["carousel__item media-thumbnails__thumbnail",l.index===t.modelValue||l.index===A.value?"is-active":""]),onClick:u=>r(l.index)},[s.createElementVNode("div",p8,[s.createVNode(a,{src:l.item.thumbnail||l.item.src,class:"img-fluid"},null,8,["src"])])],10,h8)]),_:1},8,["items"])])}}}),g8={class:"progress-steps"},B8={class:"progress-steps__list"},y8={class:"progress-step"},w8=["checked","id","value","disabled","read-only","required","onChange"],C8=["for"],b8=["innerHTML"],v8=["for"],E8=["innerHTML"],k8=s.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:e}){const n=t,A=e;function r(o){A("update:modelValue",o),o>=n.progress&&A("update:progress",o)}return(o,i)=>(s.openBlock(),s.createElementBlock("div",g8,[s.createElementVNode("ul",B8,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.steps,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l,class:s.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":l>t.progress+(t.reveal?1:0),"progress-steps__step--active":l===(t.modelValue||0)}])},[s.renderSlot(o.$slots,"step",{},()=>[s.createElementVNode("div",y8,[s.createElementVNode("input",{type:"radio",checked:l<=(t.progress||0),id:`step-${l}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||l>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(l)},null,40,w8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(o.$slots,"button",{step:a},()=>[s.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,b8)])],8,C8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(o.$slots,"label",{step:a},()=>[s.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,E8)])],8,v8)])])],2))),128))])]))}}),S8=["id","popover"],Mg=s.defineComponent({__name:"popover-dialog",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"auto"},id:{type:String,default:()=>`popover-dialog-${Math.random().toString(36).substr(2,9)}`},title:{type:String,default:""},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},classes:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},closeTimeout:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),o=s.ref(),i=s.ref(!1),a=s.computed(()=>"ontouchstart"in window||navigator.maxTouchPoints>0);function l(){clearTimeout(o.value),n.hover&&r.value?.showPopover()}function u(){i.value=!0,clearTimeout(o.value),l()}function f(){i.value=!1,(n.hover||n.closeTimeout)&&(o.value=setTimeout(()=>{r.value?.hidePopover()},n.closeTimeout||n.hoverDelay))}s.watch(()=>n.modelValue,(p,g)=>{p&&!g?r.value?.matches(":popover-open")||r.value?.showPopover():!p&&g&&r.value?.matches(":popover-open")&&r.value?.hidePopover()});function h(p){p.newState==="open"?(n.closeTimeout&&!i.value&&(clearTimeout(o.value),o.value=setTimeout(()=>{i.value||r.value?.hidePopover()},n.closeTimeout)),n.modelValue||A("update:modelValue",!0)):p.newState==="closed"&&(i.value=!1,n.modelValue&&A("update:modelValue",!1))}return s.onMounted(()=>{if(r.value?.addEventListener("toggle",h),n.modelValue&&r.value?.showPopover(),!a.value){r.value?.addEventListener("mouseenter",u),r.value?.addEventListener("mouseleave",f);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.addEventListener("mouseenter",u),p.addEventListener("mouseleave",f))}}),s.onBeforeUnmount(()=>{if(clearTimeout(o.value),r.value?.removeEventListener("toggle",h),!a.value){r.value?.removeEventListener("mouseenter",u),r.value?.removeEventListener("mouseleave",f);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.removeEventListener("mouseenter",u),p.removeEventListener("mouseleave",f))}}),(p,g)=>(s.openBlock(),s.createElementBlock("span",{class:"popover-dialog",id:t.id,popover:t.type,ref_key:"popover",ref:r},[s.renderSlot(p.$slots,"default",{},()=>[g[0]||(g[0]=s.createTextVNode(" Popover content goes here. ",-1))])],8,S8))}});var F8=Object.defineProperty,Q8=Object.defineProperties,x8=Object.getOwnPropertyDescriptors,tk=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty,I8=Object.prototype.propertyIsEnumerable,nk=(t,e,n)=>e in t?F8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rn=(t,e)=>{for(var n in e||(e={}))U8.call(e,n)&&nk(t,n,e[n]);if(tk)for(var n of tk(e))I8.call(e,n)&&nk(t,n,e[n]);return t},QA=(t,e)=>Q8(t,x8(e)),Wt=(t,e,n)=>new Promise((A,r)=>{var o=l=>{try{a(n.next(l))}catch(u){r(u)}},i=l=>{try{a(n.throw(l))}catch(u){r(u)}},a=l=>l.done?A(l.value):Promise.resolve(l.value).then(o,i);a((n=n.apply(t,e)).next())});const Og=Math.min,ba=Math.max,Pd=Math.round,Rd=Math.floor,Ao=t=>({x:t,y:t});function _8(t,e){return typeof t=="function"?t(e):t}function T8(t){return Rn({top:0,right:0,bottom:0,left:0},t)}function D8(t){return typeof t!="number"?T8(t):{top:t,right:t,bottom:t,left:t}}function Vd(t){const{x:e,y:n,width:A,height:r}=t;return{width:A,height:r,top:n,left:e,right:e+A,bottom:n+r,x:e,y:n}}function M8(t,e){return Wt(this,null,function*(){var n;e===void 0&&(e={});const{x:A,y:r,platform:o,rects:i,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=_8(e,t),B=D8(g),y=a[p?h==="floating"?"reference":"floating":h],C=Vd(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),w=h==="floating"?{x:A,y:r,width:i.floating.width,height:i.floating.height}:i.reference,F=yield o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating),_=(yield o.isElement==null?void 0:o.isElement(F))?(yield o.getScale==null?void 0:o.getScale(F))||{x:1,y:1}:{x:1,y:1},D=Vd(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:F,strategy:l}):w);return{top:(C.top-D.top+B.top)/_.y,bottom:(D.bottom-C.bottom+B.bottom)/_.y,left:(C.left-D.left+B.left)/_.x,right:(D.right-C.right+B.right)/_.x}})}function $d(){return typeof window<"u"}function va(t){return Ak(t)?(t.nodeName||"").toLowerCase():"#document"}function RA(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ro(t){var e;return(e=(Ak(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ak(t){return $d()?t instanceof Node||t instanceof RA(t).Node:!1}function _r(t){return $d()?t instanceof Element||t instanceof RA(t).Element:!1}function oo(t){return $d()?t instanceof HTMLElement||t instanceof RA(t).HTMLElement:!1}function rk(t){return!$d()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof RA(t).ShadowRoot}function Ac(t){const{overflow:e,overflowX:n,overflowY:A,display:r}=Tr(t);return/auto|scroll|overlay|hidden|clip/.test(e+A+n)&&!["inline","contents"].includes(r)}function O8(t){return["table","td","th"].includes(va(t))}function Kd(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Lg(t){const e=Ng(),n=_r(t)?Tr(t):t;return["transform","translate","scale","rotate","perspective"].some(A=>n[A]?n[A]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(A=>(n.willChange||"").includes(A))||["paint","layout","strict","content"].some(A=>(n.contain||"").includes(A))}function L8(t){let e=Fi(t);for(;oo(e)&&!Ea(e);){if(Lg(e))return e;if(Kd(e))return null;e=Fi(e)}return null}function Ng(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(t){return["html","body","#document"].includes(va(t))}function Tr(t){return RA(t).getComputedStyle(t)}function zd(t){return _r(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fi(t){if(va(t)==="html")return t;const e=t.assignedSlot||t.parentNode||rk(t)&&t.host||ro(t);return rk(e)?e.host:e}function ok(t){const e=Fi(t);return Ea(e)?t.ownerDocument?t.ownerDocument.body:t.body:oo(e)&&Ac(e)?e:ok(e)}function rc(t,e,n){var A;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=ok(t),o=r===((A=t.ownerDocument)==null?void 0:A.body),i=RA(r);if(o){const a=Hg(i);return e.concat(i,i.visualViewport||[],Ac(r)?r:[],a&&n?rc(a):[])}return e.concat(r,rc(r,[],n))}function Hg(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ik(t){const e=Tr(t);let n=parseFloat(e.width)||0,A=parseFloat(e.height)||0;const r=oo(t),o=r?t.offsetWidth:n,i=r?t.offsetHeight:A,a=Pd(n)!==o||Pd(A)!==i;return a&&(n=o,A=i),{width:n,height:A,$:a}}function Pg(t){return _r(t)?t:t.contextElement}function ka(t){const e=Pg(t);if(!oo(e))return Ao(1);const n=e.getBoundingClientRect(),{width:A,height:r,$:o}=ik(e);let i=(o?Pd(n.width):n.width)/A,a=(o?Pd(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const N8=Ao(0);function sk(t){const e=RA(t);return!Ng()||!e.visualViewport?N8:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function H8(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==RA(t)?!1:e}function vs(t,e,n,A){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),o=Pg(t);let i=Ao(1);e&&(A?_r(A)&&(i=ka(A)):i=ka(t));const a=H8(o,n,A)?sk(o):Ao(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,f=r.width/i.x,h=r.height/i.y;if(o){const p=RA(o),g=A&&_r(A)?RA(A):A;let B=p,y=Hg(B);for(;y&&A&&g!==B;){const C=ka(y),w=y.getBoundingClientRect(),F=Tr(y),_=w.left+(y.clientLeft+parseFloat(F.paddingLeft))*C.x,D=w.top+(y.clientTop+parseFloat(F.paddingTop))*C.y;l*=C.x,u*=C.y,f*=C.x,h*=C.y,l+=_,u+=D,B=RA(y),y=Hg(B)}}return Vd({width:f,height:h,x:l,y:u})}function Rg(t,e){const n=zd(t).scrollLeft;return e?e.left+n:vs(ro(t)).left+n}function ak(t,e,n){n===void 0&&(n=!1);const A=t.getBoundingClientRect(),r=A.left+e.scrollLeft-(n?0:Rg(t,A)),o=A.top+e.scrollTop;return{x:r,y:o}}function P8(t){let{elements:e,rect:n,offsetParent:A,strategy:r}=t;const o=r==="fixed",i=ro(A),a=e?Kd(e.floating):!1;if(A===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Ao(1);const f=Ao(0),h=oo(A);if((h||!h&&!o)&&((va(A)!=="body"||Ac(i))&&(l=zd(A)),oo(A))){const g=vs(A);u=ka(A),f.x=g.x+A.clientLeft,f.y=g.y+A.clientTop}const p=i&&!h&&!o?ak(i,l,!0):Ao(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function R8(t){return Array.from(t.getClientRects())}function V8(t){const e=ro(t),n=zd(t),A=t.ownerDocument.body,r=ba(e.scrollWidth,e.clientWidth,A.scrollWidth,A.clientWidth),o=ba(e.scrollHeight,e.clientHeight,A.scrollHeight,A.clientHeight);let i=-n.scrollLeft+Rg(t);const a=-n.scrollTop;return Tr(A).direction==="rtl"&&(i+=ba(e.clientWidth,A.clientWidth)-r),{width:r,height:o,x:i,y:a}}function $8(t,e){const n=RA(t),A=ro(t),r=n.visualViewport;let o=A.clientWidth,i=A.clientHeight,a=0,l=0;if(r){o=r.width,i=r.height;const u=Ng();(!u||u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:i,x:a,y:l}}function K8(t,e){const n=vs(t,!0,e==="fixed"),A=n.top+t.clientTop,r=n.left+t.clientLeft,o=oo(t)?ka(t):Ao(1),i=t.clientWidth*o.x,a=t.clientHeight*o.y,l=r*o.x,u=A*o.y;return{width:i,height:a,x:l,y:u}}function lk(t,e,n){let A;if(e==="viewport")A=$8(t,n);else if(e==="document")A=V8(ro(t));else if(_r(e))A=K8(e,n);else{const r=sk(t);A={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Vd(A)}function ck(t,e){const n=Fi(t);return n===e||!_r(n)||Ea(n)?!1:Tr(n).position==="fixed"||ck(n,e)}function z8(t,e){const n=e.get(t);if(n)return n;let A=rc(t,[],!1).filter(a=>_r(a)&&va(a)!=="body"),r=null;const o=Tr(t).position==="fixed";let i=o?Fi(t):t;for(;_r(i)&&!Ea(i);){const a=Tr(i),l=Lg(i);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Ac(i)&&!l&&ck(t,i))?A=A.filter(u=>u!==i):r=a,i=Fi(i)}return e.set(t,A),A}function W8(t){let{element:e,boundary:n,rootBoundary:A,strategy:r}=t;const o=[...n==="clippingAncestors"?Kd(e)?[]:z8(e,this._c):[].concat(n),A],i=o[0],a=o.reduce((l,u)=>{const f=lk(e,u,r);return l.top=ba(f.top,l.top),l.right=Og(f.right,l.right),l.bottom=Og(f.bottom,l.bottom),l.left=ba(f.left,l.left),l},lk(e,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function G8(t){const{width:e,height:n}=ik(t);return{width:e,height:n}}function Y8(t,e,n){const A=oo(e),r=ro(e),o=n==="fixed",i=vs(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=Ao(0);function u(){l.x=Rg(r)}if(A||!A&&!o)if((va(e)!=="body"||Ac(r))&&(a=zd(e)),A){const g=vs(e,!0,o,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&u();o&&!A&&r&&u();const f=r&&!A&&!o?ak(r,a):Ao(0),h=i.left+a.scrollLeft-l.x-f.x,p=i.top+a.scrollTop-l.y-f.y;return{x:h,y:p,width:i.width,height:i.height}}function Vg(t){return Tr(t).position==="static"}function uk(t,e){if(!oo(t)||Tr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ro(t)===n&&(n=n.ownerDocument.body),n}function dk(t,e){const n=RA(t);if(Kd(t))return n;if(!oo(t)){let r=Fi(t);for(;r&&!Ea(r);){if(_r(r)&&!Vg(r))return r;r=Fi(r)}return n}let A=uk(t,e);for(;A&&O8(A)&&Vg(A);)A=uk(A,e);return A&&Ea(A)&&Vg(A)&&!Lg(A)?n:A||L8(t)||n}const j8=function(t){return Wt(this,null,function*(){const e=this.getOffsetParent||dk,n=this.getDimensions,A=yield n(t.floating);return{reference:Y8(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:A.width,height:A.height}}})};function q8(t){return Tr(t).direction==="rtl"}const VA={convertOffsetParentRelativeRectToViewportRelativeRect:P8,getDocumentElement:ro,getClippingRect:W8,getOffsetParent:dk,getElementRects:j8,getClientRects:R8,getDimensions:G8,getScale:ka,isElement:_r,isRTL:q8};function fk(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function J8(t,e){let n=null,A;const r=ro(t);function o(){var a;clearTimeout(A),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=t.getBoundingClientRect(),{left:f,top:h,width:p,height:g}=u;if(a||e(),!p||!g)return;const B=Rd(h),y=Rd(r.clientWidth-(f+p)),C=Rd(r.clientHeight-(h+g)),w=Rd(f),F={rootMargin:-B+"px "+-y+"px "+-C+"px "+-w+"px",threshold:ba(0,Og(1,l))||1};let _=!0;function D(P){const T=P[0].intersectionRatio;if(T!==l){if(!_)return i();T?i(!1,T):A=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!fk(u,t.getBoundingClientRect())&&i(),_=!1}try{n=new IntersectionObserver(D,QA(Rn({},F),{root:r.ownerDocument}))}catch{n=new IntersectionObserver(D,F)}n.observe(t)}return i(!0),o}function $g(t,e,n,A){A===void 0&&(A={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=A,u=Pg(t),f=r||o?[...u?rc(u):[],...rc(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const h=u&&a?J8(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(w=>{let[F]=w;F&&F.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(e)})),n()}),u&&!l&&g.observe(u),g.observe(e));let B,y=l?vs(t):null;l&&C();function C(){const w=vs(t);y&&!fk(y,w)&&n(),y=w,B=requestAnimationFrame(C)}return n(),()=>{var w;f.forEach(F=>{r&&F.removeEventListener("scroll",n),o&&F.removeEventListener("resize",n)}),h?.(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(B)}}const X8=M8,{hasOwnProperty:Kg}=Object.prototype,oc=function(){};function hk(t){return typeof t=="function"?t:oc}function pk(t,e){return function(n,A,r){n.type===e&&t.call(this,n,A,r)}}function Z8(t,e){const n=e.structure,A=[];for(const r in n){if(Kg.call(n,r)===!1)continue;let o=n[r];const i={name:r,type:!1,nullable:!1};Array.isArray(o)||(o=[o]);for(const a of o)a===null?i.nullable=!0:typeof a=="string"?i.type="node":Array.isArray(a)&&(i.type="list");i.type&&A.push(i)}return A.length?{context:e.walkContext,fields:A}:null}function ez(t){const e={};for(const n in t.node)if(Kg.call(t.node,n)){const A=t.node[n];if(!A.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=Z8(n,A)}return e}function mk(t,e){const n=t.fields.slice(),A=t.context,r=typeof A=="string";return e&&n.reverse(),function(o,i,a,l){let u;r&&(u=i[A],i[A]=o);for(const f of n){const h=o[f.name];if(!f.nullable||h){if(f.type==="list"){if(e?h.reduceRight(l,!1):h.reduce(l,!1))return!0}else if(a(h))return!0}}r&&(i[A]=u)}}function gk({StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}}}function tz(t){const e=ez(t),n={},A={},r=Symbol("break-walk"),o=Symbol("skip-node");for(const u in e)Kg.call(e,u)&&e[u]!==null&&(n[u]=mk(e[u],!1),A[u]=mk(e[u],!0));const i=gk(n),a=gk(A),l=function(u,f){function h(w,F,_){const D=p.call(C,w,F,_);return D===r?!0:D===o?!1:!!(B.hasOwnProperty(w.type)&&B[w.type](w,C,h,y)||g.call(C,w,F,_)===r)}let p=oc,g=oc,B=n,y=(w,F,_,D)=>w||h(F,_,D);const C={break:r,skip:o,root:u,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof f=="function")p=f;else if(f&&(p=hk(f.enter),g=hk(f.leave),f.reverse&&(B=A),f.visit)){if(i.hasOwnProperty(f.visit))B=f.reverse?a[f.visit]:i[f.visit];else if(!e.hasOwnProperty(f.visit))throw new Error("Bad value `"+f.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");p=pk(p,f.visit),g=pk(g,f.visit)}if(p===oc&&g===oc)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(u)};return l.break=r,l.skip=o,l.find=function(u,f){let h=null;return l(u,function(p,g,B){if(f.call(this,p,g,B))return h=p,r}),h},l.findLast=function(u,f){let h=null;return l(u,{reverse:!0,enter(p,g,B){if(f.call(this,p,g,B))return h=p,r}}),h},l.findAll=function(u,f){const h=[];return l(u,function(p,g,B){f.call(this,p,g,B)&&h.push(p)}),h},l}const Qi=0,Oe=1,Bt=2,Qn=3,nn=4,Mo=5,nz=6,pA=7,Dr=8,Tt=9,ut=10,Bn=11,St=12,Sn=13,Wd=14,$A=15,mA=16,xA=17,Mr=18,Sa=19,ic=20,Gt=21,st=22,Or=23,Fa=24,gA=25,Az=0;function KA(t){return t>=48&&t<=57}function Qa(t){return KA(t)||t>=65&&t<=70||t>=97&&t<=102}function zg(t){return t>=65&&t<=90}function rz(t){return t>=97&&t<=122}function oz(t){return zg(t)||rz(t)}function iz(t){return t>=128}function Gd(t){return oz(t)||iz(t)||t===95}function Bk(t){return Gd(t)||KA(t)||t===45}function sz(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function Yd(t){return t===10||t===13||t===12}function Es(t){return Yd(t)||t===32||t===9}function io(t,e){return!(t!==92||Yd(e)||e===Az)}function Wg(t,e,n){return t===45?Gd(e)||e===45||io(e,n):Gd(t)?!0:t===92?io(t,e):!1}function Gg(t,e,n){return t===43||t===45?KA(e)?2:e===46&&KA(n)?3:0:t===46?KA(e)?2:0:KA(t)?1:0}function yk(t){return t===65279||t===65534?1:0}const Yg=new Array(128),az=128,jd=130,wk=131,jg=132,Ck=133;for(let t=0;t<Yg.length;t++)Yg[t]=Es(t)&&jd||KA(t)&&wk||Gd(t)&&jg||sz(t)&&Ck||t||az;function qg(t){return t<128?Yg[t]:jg}function xa(t,e){return e<t.length?t.charCodeAt(e):0}function Jg(t,e,n){return n===13&&xa(t,e+1)===10?2:1}function bk(t,e,n){let A=t.charCodeAt(e);return zg(A)&&(A=A|32),A===n}function qd(t,e,n,A){if(n-e!==A.length||e<0||n>t.length)return!1;for(let r=e;r<n;r++){const o=A.charCodeAt(r-e);let i=t.charCodeAt(r);if(zg(i)&&(i=i|32),i!==o)return!1}return!0}function lz(t,e){for(;e>=0&&Es(t.charCodeAt(e));e--);return e+1}function Jd(t,e){for(;e<t.length&&Es(t.charCodeAt(e));e++);return e}function Xg(t,e){for(;e<t.length&&KA(t.charCodeAt(e));e++);return e}function Ua(t,e){if(e+=2,Qa(xa(t,e-1))){for(const A=Math.min(t.length,e+5);e<A&&Qa(xa(t,e));e++);const n=xa(t,e);Es(n)&&(e+=Jg(t,e,n))}return e}function Xd(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!Bk(n)){if(io(n,xa(t,e+1))){e=Ua(t,e)-1;continue}break}}return e}function vk(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),KA(n)&&(e=Xg(t,e+1),n=t.charCodeAt(e)),n===46&&KA(t.charCodeAt(e+1))&&(e+=2,e=Xg(t,e)),bk(t,e,101)){let A=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(A=1,n=t.charCodeAt(e+2)),KA(n)&&(e=Xg(t,e+1+A+1))}return e}function Zg(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}io(n,xa(t,e+1))&&(e=Ua(t,e))}return e}function Ek(t){if(t.length===1&&!Qa(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}const kk=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],cz=16*1024;function Zd(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,cz)):t}const Sk=10,uz=12,Fk=13;function Qk(t){const e=t.source,n=e.length,A=e.length>0?yk(e.charCodeAt(0)):0,r=Zd(t.lines,n),o=Zd(t.columns,n);let i=t.startLine,a=t.startColumn;for(let l=A;l<n;l++){const u=e.charCodeAt(l);r[l]=i,o[l]=a++,(u===Sk||u===Fk||u===uz)&&(u===Fk&&l+1<n&&e.charCodeAt(l+1)===Sk&&(l++,r[l]=i,o[l]=a),i++,a=1)}r[n]=i,o[n]=a,t.lines=r,t.columns=o,t.computed=!0}class dz{constructor(e,n,A,r){this.setSource(e,n,A,r),this.lines=null,this.columns=null}setSource(e="",n=0,A=1,r=1){this.source=e,this.startOffset=n,this.startLine=A,this.startColumn=r,this.computed=!1}getLocation(e,n){return this.computed||Qk(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,A){return this.computed||Qk(this),{source:A,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const so=16777215,ao=24,ks=new Uint8Array(32);ks[Bt]=st,ks[Gt]=st,ks[Sa]=ic,ks[Or]=Fa;function xk(t){return ks[t]!==0}class fz{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=()=>{}){e=String(e||"");const A=e.length,r=Zd(this.offsetAndType,e.length+1),o=Zd(this.balance,e.length+1);let i=0,a=-1,l=0,u=e.length;this.offsetAndType=null,this.balance=null,o.fill(0),n(e,(f,h,p)=>{const g=i++;if(r[g]=f<<ao|p,a===-1&&(a=h),o[g]=u,f===l){const B=o[u];o[u]=g,u=B,l=ks[r[B]>>ao]}else xk(f)&&(u=g,l=ks[f])}),r[i]=Qi<<ao|A,o[i]=i;for(let f=0;f<i;f++){const h=o[f];if(h<=f){const p=o[h];p!==f&&(o[f]=p)}else h>i&&(o[f]=i)}this.source=e,this.firstCharOffset=a===-1?0:a,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>ao:Qi}lookupTypeNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>ao;if(A!==Sn&&A!==gA&&e--===0)return A}return Qi}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&so:this.source.length}lookupOffsetNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>ao;if(A!==Sn&&A!==gA&&e--===0)return n-this.tokenIndex}return Qi}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?qd(this.source,this.offsetAndType[e-1]&so,this.offsetAndType[e]&so,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&so:this.offsetAndType[this.tokenCount]&so:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===Tt&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===Tt&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&so,n=this.offsetAndType[n],this.tokenType=n>>ao,this.tokenEnd=n&so):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>ao,this.tokenEnd=e&so):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Qi,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Sn||this.tokenType===gA;)this.next()}skipUntilBalanced(e,n){let A=e,r=0,o=0;e:for(;A<this.tokenCount;A++){if(r=this.balance[A],r<e)break e;switch(o=A>0?this.offsetAndType[A-1]&so:this.firstCharOffset,n(this.source.charCodeAt(o))){case 1:break e;case 2:A++;break e;default:xk(this.offsetAndType[A]>>ao)&&(A=r)}}this.skip(A-this.tokenIndex)}forEachToken(e){for(let n=0,A=this.firstCharOffset;n<this.tokenCount;n++){const r=A,o=this.offsetAndType[n],i=o&so,a=o>>ao;A=i,e(a,r,i,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((n,A,r,o)=>{e[o]={idx:o,type:kk[n],chunk:this.source.substring(A,r),balance:this.balance[o]}}),e}}function Uk(t,e){function n(h){return h<a?t.charCodeAt(h):0}function A(){if(u=vk(t,u),Wg(n(u),n(u+1),n(u+2))){f=St,u=Xd(t,u);return}if(n(u)===37){f=Bn,u++;return}f=ut}function r(){const h=u;if(u=Xd(t,u),qd(t,h,u,"url")&&n(u)===40){if(u=Jd(t,u+1),n(u)===34||n(u)===39){f=Bt,u=h+4;return}i();return}if(n(u)===40){f=Bt,u++;return}f=Oe}function o(h){for(h||(h=n(u++)),f=Mo;u<t.length;u++){const p=t.charCodeAt(u);switch(qg(p)){case h:u++;return;case jd:if(Yd(p)){u+=Jg(t,u,p),f=nz;return}break;case 92:if(u===t.length-1)break;const g=n(u+1);Yd(g)?u+=Jg(t,u+1,g):io(p,g)&&(u=Ua(t,u)-1);break}}}function i(){for(f=pA,u=Jd(t,u);u<t.length;u++){const h=t.charCodeAt(u);switch(qg(h)){case 41:u++;return;case jd:if(u=Jd(t,u),n(u)===41||u>=t.length){u<t.length&&u++;return}u=Zg(t,u),f=Dr;return;case 34:case 39:case 40:case Ck:u=Zg(t,u),f=Dr;return;case 92:if(io(h,n(u+1))){u=Ua(t,u)-1;break}u=Zg(t,u),f=Dr;return}}}t=String(t||"");const a=t.length;let l=yk(n(0)),u=l,f;for(;u<a;){const h=t.charCodeAt(u);switch(qg(h)){case jd:f=Sn,u=Jd(t,u+1);break;case 34:o();break;case 35:Bk(n(u+1))||io(n(u+1),n(u+2))?(f=nn,u=Xd(t,u+1)):(f=Tt,u++);break;case 39:o();break;case 40:f=Gt,u++;break;case 41:f=st,u++;break;case 43:Gg(h,n(u+1),n(u+2))?A():(f=Tt,u++);break;case 44:f=Mr,u++;break;case 45:Gg(h,n(u+1),n(u+2))?A():n(u+1)===45&&n(u+2)===62?(f=$A,u=u+3):Wg(h,n(u+1),n(u+2))?r():(f=Tt,u++);break;case 46:Gg(h,n(u+1),n(u+2))?A():(f=Tt,u++);break;case 47:n(u+1)===42?(f=gA,u=t.indexOf("*/",u+2),u=u===-1?t.length:u+2):(f=Tt,u++);break;case 58:f=mA,u++;break;case 59:f=xA,u++;break;case 60:n(u+1)===33&&n(u+2)===45&&n(u+3)===45?(f=Wd,u=u+4):(f=Tt,u++);break;case 64:Wg(n(u+1),n(u+2),n(u+3))?(f=Qn,u=Xd(t,u+1)):(f=Tt,u++);break;case 91:f=Sa,u++;break;case 92:io(h,n(u+1))?r():(f=Tt,u++);break;case 93:f=ic,u++;break;case 123:f=Or,u++;break;case 125:f=Fa,u++;break;case wk:A();break;case jg:r();break;default:f=Tt,u++}e(f,l,l=u)}}const lo=43,zA=45,ef=110,Ss=!0,hz=!1;function tf(t,e){let n=this.tokenStart+t;const A=this.charCodeAt(n);for((A===lo||A===zA)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)KA(this.charCodeAt(n))||this.error("Integer is expected",n)}function Ia(t){return tf.call(this,0,t)}function xi(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case ef:n="N is expected";break;case zA:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function eB(){let t=0,e=0,n=this.tokenType;for(;n===Sn||n===gA;)n=this.lookupType(++t);if(n!==ut)if(this.isDelim(lo,t)||this.isDelim(zA,t)){e=this.isDelim(lo,t)?lo:zA;do n=this.lookupType(++t);while(n===Sn||n===gA);n!==ut&&(this.skip(t),Ia.call(this,Ss))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==lo&&n!==zA&&this.error("Number sign is expected")),Ia.call(this,e!==0),e===zA?"-"+this.consume(ut):this.consume(ut)}const pz="AnPlusB",mz={a:[String,null],b:[String,null]};function Ik(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===ut)Ia.call(this,hz),n=this.consume(ut);else if(this.tokenType===Oe&&this.cmpChar(this.tokenStart,zA))switch(e="-1",xi.call(this,1,ef),this.tokenEnd-this.tokenStart){case 2:this.next(),n=eB.call(this);break;case 3:xi.call(this,2,zA),this.next(),this.skipSC(),Ia.call(this,Ss),n="-"+this.consume(ut);break;default:xi.call(this,2,zA),tf.call(this,3,Ss),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===Oe||this.isDelim(lo)&&this.lookupType(1)===Oe){let A=0;switch(e="1",this.isDelim(lo)&&(A=1,this.next()),xi.call(this,0,ef),this.tokenEnd-this.tokenStart){case 1:this.next(),n=eB.call(this);break;case 2:xi.call(this,1,zA),this.next(),this.skipSC(),Ia.call(this,Ss),n="-"+this.consume(ut);break;default:xi.call(this,1,zA),tf.call(this,2,Ss),this.next(),n=this.substrToCursor(t+A+1)}}else if(this.tokenType===St){const A=this.charCodeAt(this.tokenStart),r=A===lo||A===zA;let o=this.tokenStart+r;for(;o<this.tokenEnd&&KA(this.charCodeAt(o));o++);o===this.tokenStart+r&&this.error("Integer is expected",this.tokenStart+r),xi.call(this,o-this.tokenStart,ef),e=this.substring(t,o),o+1===this.tokenEnd?(this.next(),n=eB.call(this)):(xi.call(this,o-this.tokenStart+1,zA),o+2===this.tokenEnd?(this.next(),this.skipSC(),Ia.call(this,Ss),n="-"+this.consume(ut)):(tf.call(this,o-this.tokenStart+2,Ss),this.next(),n=this.substrToCursor(o+1)))}else this.error();return e!==null&&e.charCodeAt(0)===lo&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===lo&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function _k(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}const gz=Object.freeze(Object.defineProperty({__proto__:null,generate:_k,name:pz,parse:Ik,structure:mz},Symbol.toStringTag,{value:"Module"}));function Tk(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Bz(){for(let t=1,e;e=this.lookupType(t);t++){if(e===Fa)return!0;if(e===Or||e===Qn)return!1}return!1}const yz="Atrule",wz="atrule",Cz={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Dk(t=!1){const e=this.tokenStart;let n,A,r=null,o=null;switch(this.eat(Qn),n=this.substrToCursor(e+1),A=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==Or&&this.tokenType!==xA&&(this.parseAtrulePrelude?r=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),Tk):r=Tk.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case xA:this.next();break;case Or:hasOwnProperty.call(this.atrule,A)&&typeof this.atrule[A].block=="function"?o=this.atrule[A].block.call(this,t):o=this.Block(Bz.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:r,block:o}}function Mk(t){this.token(Qn,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(xA,";")}const bz=Object.freeze(Object.defineProperty({__proto__:null,generate:Mk,name:yz,parse:Dk,structure:Cz,walkContext:wz},Symbol.toStringTag,{value:"Module"})),vz="AtrulePrelude",Ez="atrulePrelude",kz={children:[[]]};function Ok(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==Or&&this.tokenType!==xA&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function Lk(t){this.children(t)}const Sz=Object.freeze(Object.defineProperty({__proto__:null,generate:Lk,name:vz,parse:Ok,structure:kz,walkContext:Ez},Symbol.toStringTag,{value:"Module"})),Fz=36,Nk=42,nf=61,Qz=94,tB=124,xz=126;function Uz(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(Nk)?(e=!0,this.next()):this.isDelim(tB)||this.eat(Oe),this.isDelim(tB)?this.charCodeAt(this.tokenStart+1)!==nf?(this.next(),this.eat(Oe)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function Iz(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==nf&&e!==xz&&e!==Qz&&e!==Fz&&e!==Nk&&e!==tB&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==nf&&(this.isDelim(nf)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const _z="AttributeSelector",Tz={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Hk(){const t=this.tokenStart;let e,n=null,A=null,r=null;return this.eat(Sa),this.skipSC(),e=Uz.call(this),this.skipSC(),this.tokenType!==ic&&(this.tokenType!==Oe&&(n=Iz.call(this),this.skipSC(),A=this.tokenType===Mo?this.String():this.Identifier(),this.skipSC()),this.tokenType===Oe&&(r=this.consume(Oe),this.skipSC())),this.eat(ic),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:A,flags:r}}function Pk(t){this.token(Tt,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(Oe,t.flags),this.token(Tt,"]")}const Dz=Object.freeze(Object.defineProperty({__proto__:null,generate:Pk,name:_z,parse:Hk,structure:Tz},Symbol.toStringTag,{value:"Module"})),Mz=38;function Rk(){return this.Raw(null,!0)}function Vk(){return this.parseWithFallback(this.Rule,Rk)}function $k(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Oz(){if(this.tokenType===xA)return $k.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,$k);return this.tokenType===xA&&this.next(),t}const Lz="Block",Nz="block",Hz={children:[["Atrule","Rule","Declaration"]]};function Kk(t){const e=t?Oz:Vk,n=this.tokenStart;let A=this.createList();this.eat(Or);e:for(;!this.eof;)switch(this.tokenType){case Fa:break e;case Sn:case gA:this.next();break;case Qn:A.push(this.parseWithFallback(this.Atrule.bind(this,t),Rk));break;default:t&&this.isDelim(Mz)?A.push(Vk.call(this)):A.push(e.call(this))}return this.eof||this.eat(Fa),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:A}}function zk(t){this.token(Or,"{"),this.children(t,e=>{e.type==="Declaration"&&this.token(xA,";")}),this.token(Fa,"}")}const Pz=Object.freeze(Object.defineProperty({__proto__:null,generate:zk,name:Lz,parse:Kk,structure:Hz,walkContext:Nz},Symbol.toStringTag,{value:"Module"})),Rz="Brackets",Vz={children:[[]]};function Wk(t,e){const n=this.tokenStart;let A=null;return this.eat(Sa),A=t.call(this,e),this.eof||this.eat(ic),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:A}}function Gk(t){this.token(Tt,"["),this.children(t),this.token(Tt,"]")}const $z=Object.freeze(Object.defineProperty({__proto__:null,generate:Gk,name:Rz,parse:Wk,structure:Vz},Symbol.toStringTag,{value:"Module"})),Kz="CDC",zz=[];function Yk(){const t=this.tokenStart;return this.eat($A),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function jk(){this.token($A,"-->")}const Wz=Object.freeze(Object.defineProperty({__proto__:null,generate:jk,name:Kz,parse:Yk,structure:zz},Symbol.toStringTag,{value:"Module"})),Gz="CDO",Yz=[];function qk(){const t=this.tokenStart;return this.eat(Wd),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function Jk(){this.token(Wd,"<!--")}const jz=Object.freeze(Object.defineProperty({__proto__:null,generate:Jk,name:Gz,parse:qk,structure:Yz},Symbol.toStringTag,{value:"Module"})),qz=46,Jz="ClassSelector",Xz={name:String};function Xk(){return this.eatDelim(qz),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(Oe)}}function Zk(t){this.token(Tt,"."),this.token(Oe,t.name)}const Zz=Object.freeze(Object.defineProperty({__proto__:null,generate:Zk,name:Jz,parse:Xk,structure:Xz},Symbol.toStringTag,{value:"Module"})),eW=43,eS=47,tW=62,nW=126,AW="Combinator",rW={name:String};function tS(){const t=this.tokenStart;let e;switch(this.tokenType){case Sn:e=" ";break;case Tt:switch(this.charCodeAt(this.tokenStart)){case tW:case eW:case nW:this.next();break;case eS:this.next(),this.eatIdent("deep"),this.eatDelim(eS);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function nS(t){this.tokenize(t.name)}const oW=Object.freeze(Object.defineProperty({__proto__:null,generate:nS,name:AW,parse:tS,structure:rW},Symbol.toStringTag,{value:"Module"})),iW=42,sW=47,aW="Comment",lW={value:String};function AS(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(gA),e-t+2>=2&&this.charCodeAt(e-2)===iW&&this.charCodeAt(e-1)===sW&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function rS(t){this.token(gA,"/*"+t.value+"*/")}const cW=Object.freeze(Object.defineProperty({__proto__:null,generate:rS,name:aW,parse:AS,structure:lW},Symbol.toStringTag,{value:"Module"})),uW=new Set([mA,st,Qi]),dW="Condition",fW={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function oS(t){return this.lookupTypeNonSC(1)===Oe&&uW.has(this.lookupTypeNonSC(2))?this.Feature(t):this.FeatureRange(t)}const hW={media:oS,container:oS,supports(){return this.SupportsDeclaration()}};function iS(t="media"){const e=this.createList();e:for(;!this.eof;)switch(this.tokenType){case gA:case Sn:this.next();continue;case Oe:e.push(this.Identifier());break;case Gt:{let n=this.parseWithFallback(()=>hW[t].call(this,t),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(Gt);const A=this.Condition(t);return this.eat(st),A},()=>this.GeneralEnclosed(t))),e.push(n);break}case Bt:{let n=this.parseWithFallback(()=>this.FeatureFunction(t),()=>null);n||(n=this.GeneralEnclosed(t)),e.push(n);break}default:break e}return e.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(e),kind:t,children:e}}function sS(t){t.children.forEach(e=>{e.type==="Condition"?(this.token(Gt,"("),this.node(e),this.token(st,")")):this.node(e)})}const pW=Object.freeze(Object.defineProperty({__proto__:null,generate:sS,name:dW,parse:iS,structure:fW},Symbol.toStringTag,{value:"Module"})),aS=45;function mW(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===aS&&t.charCodeAt(e+1)===aS}const lS=33,gW=35,BW=36,yW=38,wW=42,CW=43,cS=47;function bW(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function vW(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function EW(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==xA&&this.isDelim(lS)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const kW="Declaration",SW="declaration",FW={important:[Boolean,String],property:String,value:["Value","Raw"]};function uS(){const t=this.tokenStart,e=this.tokenIndex,n=QW.call(this),A=mW(n),r=A?this.parseCustomProperty:this.parseValue,o=A?vW:bW;let i=!1,a;this.skipSC(),this.eat(mA);const l=this.tokenIndex;if(A||this.skipSC(),r?a=this.parseWithFallback(EW,o):a=o.call(this,this.tokenIndex),A&&a.type==="Value"&&a.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===Sn){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(lS)&&(i=xW.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==xA&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:i,property:n,value:a}}function dS(t){this.token(Oe,t.property),this.token(mA,":"),this.node(t.value),t.important&&(this.token(Tt,"!"),this.token(Oe,t.important===!0?"important":t.important))}function QW(){const t=this.tokenStart;if(this.tokenType===Tt)switch(this.charCodeAt(this.tokenStart)){case wW:case BW:case CW:case gW:case yW:this.next();break;case cS:this.next(),this.isDelim(cS)&&this.next();break}return this.tokenType===nn?this.eat(nn):this.eat(Oe),this.substrToCursor(t)}function xW(){this.eat(Tt),this.skipSC();const t=this.consume(Oe);return t==="important"?!0:t}const UW=Object.freeze(Object.defineProperty({__proto__:null,generate:dS,name:kW,parse:uS,structure:FW,walkContext:SW},Symbol.toStringTag,{value:"Module"})),IW=38;function nB(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const _W="DeclarationList",TW={children:[["Declaration","Atrule","Rule"]]};function fS(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case Sn:case gA:case xA:this.next();break;case Qn:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),nB));break;default:this.isDelim(IW)?t.push(this.parseWithFallback(this.Rule,nB)):t.push(this.parseWithFallback(this.Declaration,nB))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function hS(t){this.children(t,e=>{e.type==="Declaration"&&this.token(xA,";")})}const DW=Object.freeze(Object.defineProperty({__proto__:null,generate:hS,name:_W,parse:fS,structure:TW},Symbol.toStringTag,{value:"Module"})),MW="Dimension",OW={value:String,unit:String};function pS(){const t=this.tokenStart,e=this.consumeNumber(St);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function mS(t){this.token(St,t.value+t.unit)}const LW=Object.freeze(Object.defineProperty({__proto__:null,generate:mS,name:MW,parse:pS,structure:OW},Symbol.toStringTag,{value:"Module"})),NW=47,HW="Feature",PW={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function gS(t){const e=this.tokenStart;let n,A=null;if(this.eat(Gt),this.skipSC(),n=this.consume(Oe),this.skipSC(),this.tokenType!==st){switch(this.eat(mA),this.skipSC(),this.tokenType){case ut:this.lookupNonWSType(1)===Tt?A=this.Ratio():A=this.Number();break;case St:A=this.Dimension();break;case Oe:A=this.Identifier();break;case Bt:A=this.parseWithFallback(()=>{const r=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(NW)&&this.error(),r},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(st),{type:"Feature",loc:this.getLocation(e,this.tokenStart),kind:t,name:n,value:A}}function BS(t){this.token(Gt,"("),this.token(Oe,t.name),t.value!==null&&(this.token(mA,":"),this.node(t.value)),this.token(st,")")}const RW=Object.freeze(Object.defineProperty({__proto__:null,generate:BS,name:HW,parse:gS,structure:PW},Symbol.toStringTag,{value:"Module"})),VW="FeatureFunction",$W={kind:String,feature:String,value:["Declaration","Selector"]};function KW(t,e){const n=(this.features[t]||{})[e];return typeof n!="function"&&this.error(`Unknown feature ${e}()`),n}function yS(t="unknown"){const e=this.tokenStart,n=this.consumeFunctionName(),A=KW.call(this,t,n.toLowerCase());this.skipSC();const r=this.parseWithFallback(()=>{const o=this.tokenIndex,i=A.call(this);return this.eof===!1&&this.isBalanceEdge(o)===!1&&this.error(),i},()=>this.Raw(null,!1));return this.eof||this.eat(st),{type:"FeatureFunction",loc:this.getLocation(e,this.tokenStart),kind:t,feature:n,value:r}}function wS(t){this.token(Bt,t.feature+"("),this.node(t.value),this.token(st,")")}const zW=Object.freeze(Object.defineProperty({__proto__:null,generate:wS,name:VW,parse:yS,structure:$W},Symbol.toStringTag,{value:"Module"})),CS=47,WW=60,bS=61,GW=62,YW="FeatureRange",jW={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function AB(){switch(this.skipSC(),this.tokenType){case ut:return this.isDelim(CS,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case St:return this.Dimension();case Oe:return this.Identifier();case Bt:return this.parseWithFallback(()=>{const t=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(CS)&&this.error(),t},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function vS(t){if(this.skipSC(),this.isDelim(WW)||this.isDelim(GW)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(bS)?(this.next(),e+"="):e}if(this.isDelim(bS))return"=";this.error(`Expected ${t?'":", ':""}"<", ">", "=" or ")"`)}function ES(t="unknown"){const e=this.tokenStart;this.skipSC(),this.eat(Gt);const n=AB.call(this),A=vS.call(this,n.type==="Identifier"),r=AB.call(this);let o=null,i=null;return this.lookupNonWSType(0)!==st&&(o=vS.call(this),i=AB.call(this)),this.skipSC(),this.eat(st),{type:"FeatureRange",loc:this.getLocation(e,this.tokenStart),kind:t,left:n,leftComparison:A,middle:r,rightComparison:o,right:i}}function kS(t){this.token(Gt,"("),this.node(t.left),this.tokenize(t.leftComparison),this.node(t.middle),t.right&&(this.tokenize(t.rightComparison),this.node(t.right)),this.token(st,")")}const qW=Object.freeze(Object.defineProperty({__proto__:null,generate:kS,name:YW,parse:ES,structure:jW},Symbol.toStringTag,{value:"Module"})),JW="Function",XW="function",ZW={name:String,children:[[]]};function SS(t,e){const n=this.tokenStart,A=this.consumeFunctionName(),r=A.toLowerCase();let o;return o=e.hasOwnProperty(r)?e[r].call(this,e):t.call(this,e),this.eof||this.eat(st),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:A,children:o}}function FS(t){this.token(Bt,t.name+"("),this.children(t),this.token(st,")")}const eG=Object.freeze(Object.defineProperty({__proto__:null,generate:FS,name:JW,parse:SS,structure:ZW,walkContext:XW},Symbol.toStringTag,{value:"Module"})),tG="GeneralEnclosed",nG={kind:String,function:[String,null],children:[[]]};function QS(t){const e=this.tokenStart;let n=null;this.tokenType===Bt?n=this.consumeFunctionName():this.eat(Gt);const A=this.parseWithFallback(()=>{const r=this.tokenIndex,o=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(r)===!1&&this.error(),o},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(st),{type:"GeneralEnclosed",loc:this.getLocation(e,this.tokenStart),kind:t,function:n,children:A}}function xS(t){t.function?this.token(Bt,t.function+"("):this.token(Gt,"("),this.children(t),this.token(st,")")}const AG=Object.freeze(Object.defineProperty({__proto__:null,generate:xS,name:tG,parse:QS,structure:nG},Symbol.toStringTag,{value:"Module"})),rG="XXX",oG="Hash",iG={value:String};function US(){const t=this.tokenStart;return this.eat(nn),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function IS(t){this.token(nn,"#"+t.value)}const sG=Object.freeze(Object.defineProperty({__proto__:null,generate:IS,name:oG,parse:US,structure:iG,xxx:rG},Symbol.toStringTag,{value:"Module"})),aG="Identifier",lG={name:String};function _S(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(Oe)}}function TS(t){this.token(Oe,t.name)}const cG=Object.freeze(Object.defineProperty({__proto__:null,generate:TS,name:aG,parse:_S,structure:lG},Symbol.toStringTag,{value:"Module"})),uG="IdSelector",dG={name:String};function DS(){const t=this.tokenStart;return this.eat(nn),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function MS(t){this.token(Tt,"#"+t.name)}const fG=Object.freeze(Object.defineProperty({__proto__:null,generate:MS,name:uG,parse:DS,structure:dG},Symbol.toStringTag,{value:"Module"})),hG=46,pG="Layer",mG={name:String};function OS(){let t=this.tokenStart,e=this.consume(Oe);for(;this.isDelim(hG);)this.eat(Tt),e+="."+this.consume(Oe);return{type:"Layer",loc:this.getLocation(t,this.tokenStart),name:e}}function LS(t){this.tokenize(t.name)}const gG=Object.freeze(Object.defineProperty({__proto__:null,generate:LS,name:pG,parse:OS,structure:mG},Symbol.toStringTag,{value:"Module"})),BG="LayerList",yG={children:[["Layer"]]};function NS(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.Layer()),this.lookupTypeNonSC(0)===Mr);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(t),children:t}}function HS(t){this.children(t,()=>this.token(Mr,","))}const wG=Object.freeze(Object.defineProperty({__proto__:null,generate:HS,name:BG,parse:NS,structure:yG},Symbol.toStringTag,{value:"Module"})),CG="MediaQuery",bG={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function PS(){const t=this.tokenStart;let e=null,n=null,A=null;if(this.skipSC(),this.tokenType===Oe&&this.lookupTypeNonSC(1)!==Gt){const r=this.consume(Oe),o=r.toLowerCase();switch(o==="not"||o==="only"?(this.skipSC(),e=o,n=this.consume(Oe)):n=r,this.lookupTypeNonSC(0)){case Oe:{this.skipSC(),this.eatIdent("and"),A=this.Condition("media");break}case Or:case xA:case Mr:case Qi:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case Oe:case Gt:case Bt:{A=this.Condition("media");break}case Or:case xA:case Qi:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(t,this.tokenStart),modifier:e,mediaType:n,condition:A}}function RS(t){t.mediaType?(t.modifier&&this.token(Oe,t.modifier),this.token(Oe,t.mediaType),t.condition&&(this.token(Oe,"and"),this.node(t.condition))):t.condition&&this.node(t.condition)}const vG=Object.freeze(Object.defineProperty({__proto__:null,generate:RS,name:CG,parse:PS,structure:bG},Symbol.toStringTag,{value:"Module"})),EG="MediaQueryList",kG={children:[["MediaQuery"]]};function VS(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===Mr);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function $S(t){this.children(t,()=>this.token(Mr,","))}const SG=Object.freeze(Object.defineProperty({__proto__:null,generate:$S,name:EG,parse:VS,structure:kG},Symbol.toStringTag,{value:"Module"})),FG=38,QG="NestingSelector",xG={};function KS(){const t=this.tokenStart;return this.eatDelim(FG),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function zS(){this.token(Tt,"&")}const UG=Object.freeze(Object.defineProperty({__proto__:null,generate:zS,name:QG,parse:KS,structure:xG},Symbol.toStringTag,{value:"Module"})),IG="Nth",_G={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function WS(){this.skipSC();const t=this.tokenStart;let e=t,n=null,A;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?A=this.Identifier():A=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:A,selector:n}}function GS(t){this.node(t.nth),t.selector!==null&&(this.token(Oe,"of"),this.node(t.selector))}const TG=Object.freeze(Object.defineProperty({__proto__:null,generate:GS,name:IG,parse:WS,structure:_G},Symbol.toStringTag,{value:"Module"})),DG="Number",MG={value:String};function YS(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(ut)}}function jS(t){this.token(ut,t.value)}const OG=Object.freeze(Object.defineProperty({__proto__:null,generate:jS,name:DG,parse:YS,structure:MG},Symbol.toStringTag,{value:"Module"})),LG="Operator",NG={value:String};function qS(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function JS(t){this.tokenize(t.value)}const HG=Object.freeze(Object.defineProperty({__proto__:null,generate:JS,name:LG,parse:qS,structure:NG},Symbol.toStringTag,{value:"Module"})),PG="Parentheses",RG={children:[[]]};function XS(t,e){const n=this.tokenStart;let A=null;return this.eat(Gt),A=t.call(this,e),this.eof||this.eat(st),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:A}}function ZS(t){this.token(Gt,"("),this.children(t),this.token(st,")")}const VG=Object.freeze(Object.defineProperty({__proto__:null,generate:ZS,name:PG,parse:XS,structure:RG},Symbol.toStringTag,{value:"Module"})),$G="Percentage",KG={value:String};function eF(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Bn)}}function tF(t){this.token(Bn,t.value+"%")}const zG=Object.freeze(Object.defineProperty({__proto__:null,generate:tF,name:$G,parse:eF,structure:KG},Symbol.toStringTag,{value:"Module"})),WG="PseudoClassSelector",GG="function",YG={name:String,children:[["Raw"],null]};function nF(){const t=this.tokenStart;let e=null,n,A;return this.eat(mA),this.tokenType===Bt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==st?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(st)):n=this.consume(Oe),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function AF(t){this.token(mA,":"),t.children===null?this.token(Oe,t.name):(this.token(Bt,t.name+"("),this.children(t),this.token(st,")"))}const jG=Object.freeze(Object.defineProperty({__proto__:null,generate:AF,name:WG,parse:nF,structure:YG,walkContext:GG},Symbol.toStringTag,{value:"Module"})),qG="PseudoElementSelector",JG="function",XG={name:String,children:[["Raw"],null]};function rF(){const t=this.tokenStart;let e=null,n,A;return this.eat(mA),this.eat(mA),this.tokenType===Bt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==st?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(st)):n=this.consume(Oe),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function oF(t){this.token(mA,":"),this.token(mA,":"),t.children===null?this.token(Oe,t.name):(this.token(Bt,t.name+"("),this.children(t),this.token(st,")"))}const ZG=Object.freeze(Object.defineProperty({__proto__:null,generate:oF,name:qG,parse:rF,structure:XG,walkContext:JG},Symbol.toStringTag,{value:"Module"})),iF=47;function sF(){switch(this.skipSC(),this.tokenType){case ut:return this.Number();case Bt:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const eY="Ratio",tY={left:["Number","Function"],right:["Number","Function",null]};function aF(){const t=this.tokenStart,e=sF.call(this);let n=null;return this.skipSC(),this.isDelim(iF)&&(this.eatDelim(iF),n=sF.call(this)),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function lF(t){this.node(t.left),this.token(Tt,"/"),t.right?this.node(t.right):this.node(ut,1)}const nY=Object.freeze(Object.defineProperty({__proto__:null,generate:lF,name:eY,parse:aF,structure:tY},Symbol.toStringTag,{value:"Module"}));function AY(){return this.tokenIndex>0&&this.lookupType(-1)===Sn?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const rY="Raw",oY={value:String};function cF(t,e){const n=this.getTokenStart(this.tokenIndex);let A;return this.skipUntilBalanced(this.tokenIndex,t||this.consumeUntilBalanceEnd),e&&this.tokenStart>n?A=AY.call(this):A=this.tokenStart,{type:"Raw",loc:this.getLocation(n,A),value:this.substring(n,A)}}function uF(t){this.tokenize(t.value)}const iY=Object.freeze(Object.defineProperty({__proto__:null,generate:uF,name:rY,parse:cF,structure:oY},Symbol.toStringTag,{value:"Module"}));function dF(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function sY(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Or&&this.error(),t}const aY="Rule",lY="rule",cY={prelude:["SelectorList","Raw"],block:["Block"]};function fF(){const t=this.tokenIndex,e=this.tokenStart;let n,A;return this.parseRulePrelude?n=this.parseWithFallback(sY,dF):n=dF.call(this,t),A=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:A}}function hF(t){this.node(t.prelude),this.node(t.block)}const uY=Object.freeze(Object.defineProperty({__proto__:null,generate:hF,name:aY,parse:fF,structure:cY,walkContext:lY},Symbol.toStringTag,{value:"Module"})),dY="Scope",fY={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function pF(){let t=null,e=null;this.skipSC();const n=this.tokenStart;return this.tokenType===Gt&&(this.next(),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(st)),this.lookupNonWSType(0)===Oe&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(Gt),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(st)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:t,limit:e}}function mF(t){t.root&&(this.token(Gt,"("),this.node(t.root),this.token(st,")")),t.limit&&(this.token(Oe,"to"),this.token(Gt,"("),this.node(t.limit),this.token(st,")"))}const hY=Object.freeze(Object.defineProperty({__proto__:null,generate:mF,name:dY,parse:pF,structure:fY},Symbol.toStringTag,{value:"Module"})),pY="Selector",mY={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function gF(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function BF(t){this.children(t)}const gY=Object.freeze(Object.defineProperty({__proto__:null,generate:BF,name:pY,parse:gF,structure:mY},Symbol.toStringTag,{value:"Module"})),BY="SelectorList",yY="selector",wY={children:[["Selector","Raw"]]};function yF(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===Mr){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function wF(t){this.children(t,()=>this.token(Mr,","))}const CY=Object.freeze(Object.defineProperty({__proto__:null,generate:wF,name:BY,parse:yF,structure:wY,walkContext:yY},Symbol.toStringTag,{value:"Module"})),rB=92,CF=34,bY=39;function bF(t){const e=t.length,n=t.charCodeAt(0),A=n===CF||n===bY?1:0,r=A===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let o="";for(let i=A;i<=r;i++){let a=t.charCodeAt(i);if(a===rB){if(i===r){i!==e-1&&(o=t.substr(i+1));break}if(a=t.charCodeAt(++i),io(rB,a)){const l=i-1,u=Ua(t,l);i=u-1,o+=Ek(t.substring(l+1,u))}else a===13&&t.charCodeAt(i+1)===10&&i++}else o+=t[i]}return o}function vY(t,e){const A=CF;let r="",o=!1;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);if(a===0){r+="�";continue}if(a<=31||a===127){r+="\\"+a.toString(16),o=!0;continue}a===A||a===rB?(r+="\\"+t.charAt(i),o=!1):(o&&(Qa(a)||Es(a))&&(r+=" "),r+=t.charAt(i),o=!1)}return'"'+r+'"'}const EY="String",kY={value:String};function vF(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:bF(this.consume(Mo))}}function EF(t){this.token(Mo,vY(t.value))}const SY=Object.freeze(Object.defineProperty({__proto__:null,generate:EF,name:EY,parse:vF,structure:kY},Symbol.toStringTag,{value:"Module"})),FY=33;function kF(){return this.Raw(null,!1)}const QY="StyleSheet",xY="stylesheet",UY={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function SF(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Sn:this.next();continue;case gA:if(this.charCodeAt(this.tokenStart+2)!==FY){this.next();continue}n=this.Comment();break;case Wd:n=this.CDO();break;case $A:n=this.CDC();break;case Qn:n=this.parseWithFallback(this.Atrule,kF);break;default:n=this.parseWithFallback(this.Rule,kF)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function FF(t){this.children(t)}const IY=Object.freeze(Object.defineProperty({__proto__:null,generate:FF,name:QY,parse:SF,structure:UY,walkContext:xY},Symbol.toStringTag,{value:"Module"})),_Y="SupportsDeclaration",TY={declaration:"Declaration"};function QF(){const t=this.tokenStart;this.eat(Gt),this.skipSC();const e=this.Declaration();return this.eof||this.eat(st),{type:"SupportsDeclaration",loc:this.getLocation(t,this.tokenStart),declaration:e}}function xF(t){this.token(Gt,"("),this.node(t.declaration),this.token(st,")")}const DY=Object.freeze(Object.defineProperty({__proto__:null,generate:xF,name:_Y,parse:QF,structure:TY},Symbol.toStringTag,{value:"Module"})),MY=42,UF=124;function oB(){this.tokenType!==Oe&&this.isDelim(MY)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const OY="TypeSelector",LY={name:String};function IF(){const t=this.tokenStart;return this.isDelim(UF)?(this.next(),oB.call(this)):(oB.call(this),this.isDelim(UF)&&(this.next(),oB.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function _F(t){this.tokenize(t.name)}const NY=Object.freeze(Object.defineProperty({__proto__:null,generate:_F,name:OY,parse:IF,structure:LY},Symbol.toStringTag,{value:"Module"})),TF=43,DF=45,iB=63;function sc(t,e){let n=0;for(let A=this.tokenStart+t;A<this.tokenEnd;A++){const r=this.charCodeAt(A);if(r===DF&&e&&n!==0)return sc.call(this,t+n+1,!1),-1;Qa(r)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",A),++n>6&&this.error("Too many hex digits",A)}return this.next(),n}function Af(t){let e=0;for(;this.isDelim(iB);)++e>t&&this.error("Too many question marks"),this.next()}function HY(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===TF?"Plus sign":"Hyphen minus")+" is expected")}function PY(){let t=0;switch(this.tokenType){case ut:if(t=sc.call(this,1,!0),this.isDelim(iB)){Af.call(this,6-t);break}if(this.tokenType===St||this.tokenType===ut){HY.call(this,DF),sc.call(this,1,!1);break}break;case St:t=sc.call(this,1,!0),t>0&&Af.call(this,6-t);break;default:if(this.eatDelim(TF),this.tokenType===Oe){t=sc.call(this,0,!0),t>0&&Af.call(this,6-t);break}if(this.isDelim(iB)){this.next(),Af.call(this,5);break}this.error("Hex digit or question mark is expected")}}const RY="UnicodeRange",VY={value:String};function MF(){const t=this.tokenStart;return this.eatIdent("u"),PY.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function OF(t){this.tokenize(t.value)}const $Y=Object.freeze(Object.defineProperty({__proto__:null,generate:OF,name:RY,parse:MF,structure:VY},Symbol.toStringTag,{value:"Module"})),KY=32,sB=92,zY=34,WY=39,GY=40,LF=41;function YY(t){const e=t.length;let n=4,A=t.charCodeAt(e-1)===LF?e-2:e-1,r="";for(;n<A&&Es(t.charCodeAt(n));)n++;for(;n<A&&Es(t.charCodeAt(A));)A--;for(let o=n;o<=A;o++){let i=t.charCodeAt(o);if(i===sB){if(o===A){o!==e-1&&(r=t.substr(o+1));break}if(i=t.charCodeAt(++o),io(sB,i)){const a=o-1,l=Ua(t,a);o=l-1,r+=Ek(t.substring(a+1,l))}else i===13&&t.charCodeAt(o+1)===10&&o++}else r+=t[o]}return r}function jY(t){let e="",n=!1;for(let A=0;A<t.length;A++){const r=t.charCodeAt(A);if(r===0){e+="�";continue}if(r<=31||r===127){e+="\\"+r.toString(16),n=!0;continue}r===KY||r===sB||r===zY||r===WY||r===GY||r===LF?(e+="\\"+t.charAt(A),n=!1):(n&&Qa(r)&&(e+=" "),e+=t.charAt(A),n=!1)}return"url("+e+")"}const qY="Url",JY={value:String};function NF(){const t=this.tokenStart;let e;switch(this.tokenType){case pA:e=YY(this.consume(pA));break;case Bt:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Bt),this.skipSC(),e=bF(this.consume(Mo)),this.skipSC(),this.eof||this.eat(st);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function HF(t){this.token(pA,jY(t.value))}const XY=Object.freeze(Object.defineProperty({__proto__:null,generate:HF,name:qY,parse:NF,structure:JY},Symbol.toStringTag,{value:"Module"})),ZY="Value",e7={children:[[]]};function PF(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function RF(t){this.children(t)}const t7=Object.freeze(Object.defineProperty({__proto__:null,generate:RF,name:ZY,parse:PF,structure:e7},Symbol.toStringTag,{value:"Module"})),n7=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),A7="WhiteSpace",r7={value:String};function VF(){return this.eat(Sn),n7}function $F(t){this.token(Sn,t.value)}const o7=Object.freeze(Object.defineProperty({__proto__:null,generate:$F,name:A7,parse:VF,structure:r7},Symbol.toStringTag,{value:"Module"})),i7=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:gz,Atrule:bz,AtrulePrelude:Sz,AttributeSelector:Dz,Block:Pz,Brackets:$z,CDC:Wz,CDO:jz,ClassSelector:Zz,Combinator:oW,Comment:cW,Condition:pW,Declaration:UW,DeclarationList:DW,Dimension:LW,Feature:RW,FeatureFunction:zW,FeatureRange:qW,Function:eG,GeneralEnclosed:AG,Hash:sG,IdSelector:fG,Identifier:cG,Layer:gG,LayerList:wG,MediaQuery:vG,MediaQueryList:SG,NestingSelector:UG,Nth:TG,Number:OG,Operator:HG,Parentheses:VG,Percentage:zG,PseudoClassSelector:jG,PseudoElementSelector:ZG,Ratio:nY,Raw:iY,Rule:uY,Scope:hY,Selector:gY,SelectorList:CY,String:SY,StyleSheet:IY,SupportsDeclaration:DY,TypeSelector:NY,UnicodeRange:$Y,Url:XY,Value:t7,WhiteSpace:o7},Symbol.toStringTag,{value:"Module"})),s7={node:i7},Ui=tz(s7),aB=["left","right","top","bottom","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","inset-block","inset-inline","inset"];function ac(t){return aB.includes(t)}const lB=["margin-block-start","margin-block-end","margin-block","margin-inline-start","margin-inline-end","margin-inline","margin-bottom","margin-left","margin-right","margin-top","margin"];function a7(t){return lB.includes(t)}const cB=["width","height","min-width","min-height","max-width","max-height","block-size","inline-size","min-block-size","min-inline-size","max-block-size","max-inline-size"];function KF(t){return cB.includes(t)}const zF=["justify-self","align-self","place-self"];function l7(t){return zF.includes(t)}const WF=[...aB,...lB,...cB,...zF,"position-anchor","position-area"],c7=[...cB,...aB,...lB];function GF(t){return c7.includes(t)}const u7=["top","left","right","bottom","start","end","self-start","self-end","center","inside","outside"];function YF(t){return u7.includes(t)}const d7=["width","height","block","inline","self-block","self-inline"];function f7(t){return d7.includes(t)}const jF=new Set(["Atrule","Selector","Declaration"]);function h7(t){const e=new SourceMapGenerator,n={line:1,column:0},A={line:0,column:0},r={line:1,column:0},o={generated:r};let i=1,a=0,l=!1;const u=t.node;t.node=function(p){if(p.loc&&p.loc.start&&jF.has(p.type)){const g=p.loc.start.line,B=p.loc.start.column-1;(A.line!==g||A.column!==B)&&(A.line=g,A.column=B,n.line=i,n.column=a,l&&(l=!1,(n.line!==r.line||n.column!==r.column)&&e.addMapping(o)),l=!0,e.addMapping({source:p.loc.source,original:A,generated:n}))}u.call(this,p),l&&jF.has(p.type)&&(r.line=i,r.column=a)};const f=t.emit;t.emit=function(p,g,B){for(let y=0;y<p.length;y++)p.charCodeAt(y)===10?(i++,a=0):a++;f(p,g,B)};const h=t.result;return t.result=function(){return l&&e.addMapping(o),{css:h(),map:e}},t}const p7=43,m7=45,uB=(t,e)=>{if(t===Tt&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},qF=[[Oe,Oe],[Oe,Bt],[Oe,pA],[Oe,Dr],[Oe,"-"],[Oe,ut],[Oe,Bn],[Oe,St],[Oe,$A],[Oe,Gt],[Qn,Oe],[Qn,Bt],[Qn,pA],[Qn,Dr],[Qn,"-"],[Qn,ut],[Qn,Bn],[Qn,St],[Qn,$A],[nn,Oe],[nn,Bt],[nn,pA],[nn,Dr],[nn,"-"],[nn,ut],[nn,Bn],[nn,St],[nn,$A],[St,Oe],[St,Bt],[St,pA],[St,Dr],[St,"-"],[St,ut],[St,Bn],[St,St],[St,$A],["#",Oe],["#",Bt],["#",pA],["#",Dr],["#","-"],["#",ut],["#",Bn],["#",St],["#",$A],["-",Oe],["-",Bt],["-",pA],["-",Dr],["-","-"],["-",ut],["-",Bn],["-",St],["-",$A],[ut,Oe],[ut,Bt],[ut,pA],[ut,Dr],[ut,ut],[ut,Bn],[ut,St],[ut,"%"],[ut,$A],["@",Oe],["@",Bt],["@",pA],["@",Dr],["@","-"],["@",$A],[".",ut],[".",Bn],[".",St],["+",ut],["+",Bn],["+",St],["/","*"]],g7=qF.concat([[Oe,nn],[St,nn],[nn,nn],[Qn,Gt],[Qn,Mo],[Qn,mA],[Bn,Bn],[Bn,St],[Bn,Bt],[Bn,"-"],[st,Oe],[st,Bt],[st,Bn],[st,St],[st,nn],[st,"-"]]);function JF(t){const e=new Set(t.map(([n,A])=>uB(n)<<16|uB(A)));return function(n,A,r){const o=uB(A,r),i=r.charCodeAt(0);return(i===m7&&A!==Oe&&A!==Bt&&A!==$A||i===p7?e.has(n<<16|i<<8):e.has(n<<16|o))&&this.emit(" ",Sn,!0),o}}const B7=JF(qF),XF=JF(g7),ZF=Object.freeze(Object.defineProperty({__proto__:null,safe:XF,spec:B7},Symbol.toStringTag,{value:"Module"})),y7=92;function w7(t,e){if(typeof e=="function"){let n=null;t.children.forEach(A=>{n!==null&&e.call(this,n),this.node(A),n=A});return}t.children.forEach(this.node,this)}function C7(t){Uk(t,(e,n,A)=>{this.token(e,t.slice(n,A))})}function b7(t){const e=new Map;for(let[n,A]of Object.entries(t.node))typeof(A.generate||A)=="function"&&e.set(n,A.generate||A);return function(n,A){let r="",o=0,i={node(l){if(e.has(l.type))e.get(l.type).call(a,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:XF,token(l,u){o=this.tokenBefore(o,l,u),this.emit(u,l,!1),l===Tt&&u.charCodeAt(0)===y7&&this.emit(`
144
- `,Sn,!0)},emit(l){r+=l},result(){return r}};A&&(typeof A.decorator=="function"&&(i=A.decorator(i)),A.sourceMap&&(i=h7(i)),A.mode in ZF&&(i.tokenBefore=ZF[A.mode]));const a={node:l=>i.node(l),children:w7,token:(l,u)=>i.token(l,u),tokenize:C7};return i.node(n),i.result()}}const v7=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:_k,Atrule:Mk,AtrulePrelude:Lk,AttributeSelector:Pk,Block:zk,Brackets:Gk,CDC:jk,CDO:Jk,ClassSelector:Zk,Combinator:nS,Comment:rS,Condition:sS,Declaration:dS,DeclarationList:hS,Dimension:mS,Feature:BS,FeatureFunction:wS,FeatureRange:kS,Function:FS,GeneralEnclosed:xS,Hash:IS,IdSelector:MS,Identifier:TS,Layer:LS,LayerList:HS,MediaQuery:RS,MediaQueryList:$S,NestingSelector:zS,Nth:GS,Number:jS,Operator:JS,Parentheses:ZS,Percentage:tF,PseudoClassSelector:AF,PseudoElementSelector:oF,Ratio:lF,Raw:uF,Rule:hF,Scope:mF,Selector:BF,SelectorList:wF,String:EF,StyleSheet:FF,SupportsDeclaration:xF,TypeSelector:_F,UnicodeRange:OF,Url:HF,Value:RF,WhiteSpace:$F},Symbol.toStringTag,{value:"Module"})),E7={node:v7},k7=b7(E7);let _a=null;class BA{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return BA.createItem(e)}allocateCursor(e,n){let A;return _a!==null?(A=_a,_a=_a.cursor,A.prev=e,A.next=n,A.cursor=this.cursor):A={prev:e,next:n,cursor:this.cursor},this.cursor=A,A}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=_a,_a=e}updateCursors(e,n,A,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=n),o.next===A&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let A of e){const r=BA.createItem(A);n!==null?n.next=r:this.head=r,r.prev=n,n=r}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const A=this.allocateCursor(null,this.head);for(;A.next!==null;){const r=A.next;A.next=r.next,e.call(n,r.data,r,this)}this.releaseCursor()}forEachRight(e,n=this){const A=this.allocateCursor(this.tail,null);for(;A.prev!==null;){const r=A.prev;A.prev=r.prev,e.call(n,r.data,r,this)}this.releaseCursor()}reduce(e,n,A=this){let r=this.allocateCursor(null,this.head),o=n,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(A,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,n,A=this){let r=this.allocateCursor(this.tail,null),o=n,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(A,o,i.data,i,this);return this.releaseCursor(),o}some(e,n=this){for(let A=this.head;A!==null;A=A.next)if(e.call(n,A.data,A,this))return!0;return!1}map(e,n=this){const A=new BA;for(let r=this.head;r!==null;r=r.next)A.appendData(e.call(n,r.data,r,this));return A}filter(e,n=this){const A=new BA;for(let r=this.head;r!==null;r=r.next)e.call(n,r.data,r,this)&&A.appendData(r.data);return A}nextUntil(e,n,A=this){if(e===null)return;const r=this.allocateCursor(null,e);for(;r.next!==null;){const o=r.next;if(r.next=o.next,n.call(A,o.data,o,this))break}this.releaseCursor()}prevUntil(e,n,A=this){if(e===null)return;const r=this.allocateCursor(e,null);for(;r.prev!==null;){const o=r.prev;if(r.prev=o.prev,n.call(A,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new BA;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(BA.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(BA.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(BA.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(BA.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(BA.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}function S7(t,e){const n=Object.create(SyntaxError.prototype),A=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(A.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
143
+ }`;var ct=gT(function(){return Ft(V,$e+"return "+Se).apply(n,ee)});if(ct.source=Se,F0(ct))throw ct;return ct}function wle(c){return xt(c).toLowerCase()}function Cle(c){return xt(c).toUpperCase()}function ble(c,d,m){if(c=xt(c),c&&(m||d===n))return SI(c);if(!c||!(d=qA(d)))return c;var b=Rr(c),x=Rr(d),V=FI(b,x),ee=QI(b,x)+1;return Yi(b,V,ee).join("")}function vle(c,d,m){if(c=xt(c),c&&(m||d===n))return c.slice(0,UI(c)+1);if(!c||!(d=qA(d)))return c;var b=Rr(c),x=QI(b,Rr(d))+1;return Yi(b,0,x).join("")}function Ele(c,d,m){if(c=xt(c),c&&(m||d===n))return c.replace(Fy,"");if(!c||!(d=qA(d)))return c;var b=Rr(c),x=FI(b,Rr(d));return Yi(b,x).join("")}function kle(c,d){var m=ne,b=pe;if(An(d)){var x="separator"in d?d.separator:x;m="length"in d?at(d.length):m,b="omission"in d?qA(d.omission):b}c=xt(c);var V=c.length;if(Ya(c)){var ee=Rr(c);V=ee.length}if(m>=V)return c;var oe=m-ja(b);if(oe<1)return b;var ce=ee?Yi(ee,0,oe).join(""):c.slice(0,oe);if(x===n)return ce+b;if(ee&&(oe+=ce.length-oe),Q0(x)){if(c.slice(oe).search(x)){var be,Ee=ce;for(x.global||(x=Ky(x.source,xt(YU.exec(x))+"g")),x.lastIndex=0;be=x.exec(Ee);)var Se=be.index;ce=ce.slice(0,Se===n?oe:Se)}}else if(c.indexOf(qA(x),oe)!=oe){var De=ce.lastIndexOf(x);De>-1&&(ce=ce.slice(0,De))}return ce+b}function Sle(c){return c=xt(c),c&&Me.test(c)?c.replace(ot,tre):c}var Fle=nl(function(c,d,m){return c+(m?" ":"")+d.toUpperCase()}),I0=B_("toUpperCase");function mT(c,d,m){return c=xt(c),d=m?n:d,d===n?qAe(c)?rre(c):RAe(c):c.match(d)||[]}var gT=dt(function(c,d){try{return YA(c,n,d)}catch(m){return F0(m)?m:new At(m)}}),Qle=Ko(function(c,d){return hr(d,function(m){m=Bo(m),Vo(c,m,k0(c[m],c))}),c});function xle(c){var d=c==null?0:c.length,m=qe();return c=d?Zt(c,function(b){if(typeof b[1]!="function")throw new pr(i);return[m(b[0]),b[1]]}):[],dt(function(b){for(var x=-1;++x<d;){var V=c[x];if(YA(V[0],this,b))return YA(V[1],this,b)}})}function Ule(c){return toe(gr(c,h))}function _0(c){return function(){return c}}function Ile(c,d){return c==null||c!==c?d:c}var _le=w_(),Tle=w_(!0);function MA(c){return c}function T0(c){return qI(typeof c=="function"?c:gr(c,h))}function Dle(c){return XI(gr(c,h))}function Mle(c,d){return ZI(c,gr(d,h))}var Ole=dt(function(c,d){return function(m){return $c(m,c,d)}}),Lle=dt(function(c,d){return function(m){return $c(c,m,d)}});function D0(c,d,m){var b=$n(d),x=Sh(d,b);m==null&&!(An(d)&&(x.length||!b.length))&&(m=d,d=c,c=this,x=Sh(d,$n(d)));var V=!(An(m)&&"chain"in m)||!!m.chain,ee=Wo(c);return hr(x,function(oe){var ce=d[oe];c[oe]=ce,ee&&(c.prototype[oe]=function(){var be=this.__chain__;if(V||be){var Ee=c(this.__wrapped__),Se=Ee.__actions__=_A(this.__actions__);return Se.push({func:ce,args:arguments,thisArg:c}),Ee.__chain__=be,Ee}return ce.apply(c,Vi([this.value()],arguments))})}),c}function Nle(){return qn._===this&&(qn._=cre),this}function M0(){}function Hle(c){return c=at(c),dt(function(d){return e_(d,c)})}var Ple=d0(Zt),Rle=d0(CI),Vle=d0(Ly);function BT(c){return y0(c)?Ny(Bo(c)):Boe(c)}function $le(c){return function(d){return c==null?n:Vs(c,d)}}var Kle=b_(),zle=b_(!0);function O0(){return[]}function L0(){return!1}function Wle(){return{}}function Gle(){return""}function Yle(){return!0}function jle(c,d){if(c=at(c),c<1||c>E)return[];var m=v,b=iA(c,v);d=qe(d),c-=v;for(var x=Ry(b,d);++m<c;)d(m);return x}function qle(c){return rt(c)?Zt(c,Bo):JA(c)?[c]:_A(N_(xt(c)))}function Jle(c){var d=++are;return xt(c)+d}var Xle=_h(function(c,d){return c+d},0),Zle=f0("ceil"),ece=_h(function(c,d){return c/d},1),tce=f0("floor");function nce(c){return c&&c.length?kh(c,MA,Xy):n}function Ace(c,d){return c&&c.length?kh(c,qe(d,2),Xy):n}function rce(c){return EI(c,MA)}function oce(c,d){return EI(c,qe(d,2))}function ice(c){return c&&c.length?kh(c,MA,n0):n}function sce(c,d){return c&&c.length?kh(c,qe(d,2),n0):n}var ace=_h(function(c,d){return c*d},1),lce=f0("round"),cce=_h(function(c,d){return c-d},0);function uce(c){return c&&c.length?Py(c,MA):0}function dce(c,d){return c&&c.length?Py(c,qe(d,2)):0}return O.after=Dse,O.ary=j_,O.assign=Cae,O.assignIn=lT,O.assignInWith=zh,O.assignWith=bae,O.at=vae,O.before=q_,O.bind=k0,O.bindAll=Qle,O.bindKey=J_,O.castArray=Wse,O.chain=W_,O.chunk=tie,O.compact=nie,O.concat=Aie,O.cond=xle,O.conforms=Ule,O.constant=_0,O.countBy=use,O.create=Eae,O.curry=X_,O.curryRight=Z_,O.debounce=eT,O.defaults=kae,O.defaultsDeep=Sae,O.defer=Mse,O.delay=Ose,O.difference=rie,O.differenceBy=oie,O.differenceWith=iie,O.drop=sie,O.dropRight=aie,O.dropRightWhile=lie,O.dropWhile=cie,O.fill=uie,O.filter=fse,O.flatMap=mse,O.flatMapDeep=gse,O.flatMapDepth=Bse,O.flatten=V_,O.flattenDeep=die,O.flattenDepth=fie,O.flip=Lse,O.flow=_le,O.flowRight=Tle,O.fromPairs=hie,O.functions=Tae,O.functionsIn=Dae,O.groupBy=yse,O.initial=mie,O.intersection=gie,O.intersectionBy=Bie,O.intersectionWith=yie,O.invert=Oae,O.invertBy=Lae,O.invokeMap=Cse,O.iteratee=T0,O.keyBy=bse,O.keys=$n,O.keysIn=DA,O.map=Hh,O.mapKeys=Hae,O.mapValues=Pae,O.matches=Dle,O.matchesProperty=Mle,O.memoize=Rh,O.merge=Rae,O.mergeWith=cT,O.method=Ole,O.methodOf=Lle,O.mixin=D0,O.negate=Vh,O.nthArg=Hle,O.omit=Vae,O.omitBy=$ae,O.once=Nse,O.orderBy=vse,O.over=Ple,O.overArgs=Hse,O.overEvery=Rle,O.overSome=Vle,O.partial=S0,O.partialRight=tT,O.partition=Ese,O.pick=Kae,O.pickBy=uT,O.property=BT,O.propertyOf=$le,O.pull=vie,O.pullAll=K_,O.pullAllBy=Eie,O.pullAllWith=kie,O.pullAt=Sie,O.range=Kle,O.rangeRight=zle,O.rearg=Pse,O.reject=Fse,O.remove=Fie,O.rest=Rse,O.reverse=v0,O.sampleSize=xse,O.set=Wae,O.setWith=Gae,O.shuffle=Use,O.slice=Qie,O.sortBy=Tse,O.sortedUniq=Mie,O.sortedUniqBy=Oie,O.split=mle,O.spread=Vse,O.tail=Lie,O.take=Nie,O.takeRight=Hie,O.takeRightWhile=Pie,O.takeWhile=Rie,O.tap=nse,O.throttle=$se,O.thru=Nh,O.toArray=iT,O.toPairs=dT,O.toPairsIn=fT,O.toPath=qle,O.toPlainObject=aT,O.transform=Yae,O.unary=Kse,O.union=Vie,O.unionBy=$ie,O.unionWith=Kie,O.uniq=zie,O.uniqBy=Wie,O.uniqWith=Gie,O.unset=jae,O.unzip=E0,O.unzipWith=z_,O.update=qae,O.updateWith=Jae,O.values=ol,O.valuesIn=Xae,O.without=Yie,O.words=mT,O.wrap=zse,O.xor=jie,O.xorBy=qie,O.xorWith=Jie,O.zip=Xie,O.zipObject=Zie,O.zipObjectDeep=ese,O.zipWith=tse,O.entries=dT,O.entriesIn=fT,O.extend=lT,O.extendWith=zh,D0(O,O),O.add=Xle,O.attempt=gT,O.camelCase=nle,O.capitalize=hT,O.ceil=Zle,O.clamp=Zae,O.clone=Gse,O.cloneDeep=jse,O.cloneDeepWith=qse,O.cloneWith=Yse,O.conformsTo=Jse,O.deburr=pT,O.defaultTo=Ile,O.divide=ece,O.endsWith=Ale,O.eq=$r,O.escape=rle,O.escapeRegExp=ole,O.every=dse,O.find=hse,O.findIndex=P_,O.findKey=Fae,O.findLast=pse,O.findLastIndex=R_,O.findLastKey=Qae,O.floor=tce,O.forEach=G_,O.forEachRight=Y_,O.forIn=xae,O.forInRight=Uae,O.forOwn=Iae,O.forOwnRight=_ae,O.get=x0,O.gt=Xse,O.gte=Zse,O.has=Mae,O.hasIn=U0,O.head=$_,O.identity=MA,O.includes=wse,O.indexOf=pie,O.inRange=ele,O.invoke=Nae,O.isArguments=zs,O.isArray=rt,O.isArrayBuffer=eae,O.isArrayLike=TA,O.isArrayLikeObject=Cn,O.isBoolean=tae,O.isBuffer=ji,O.isDate=nae,O.isElement=Aae,O.isEmpty=rae,O.isEqual=oae,O.isEqualWith=iae,O.isError=F0,O.isFinite=sae,O.isFunction=Wo,O.isInteger=nT,O.isLength=$h,O.isMap=AT,O.isMatch=aae,O.isMatchWith=lae,O.isNaN=cae,O.isNative=uae,O.isNil=fae,O.isNull=dae,O.isNumber=rT,O.isObject=An,O.isObjectLike=cn,O.isPlainObject=jc,O.isRegExp=Q0,O.isSafeInteger=hae,O.isSet=oT,O.isString=Kh,O.isSymbol=JA,O.isTypedArray=rl,O.isUndefined=pae,O.isWeakMap=mae,O.isWeakSet=gae,O.join=wie,O.kebabCase=ile,O.last=yr,O.lastIndexOf=Cie,O.lowerCase=sle,O.lowerFirst=ale,O.lt=Bae,O.lte=yae,O.max=nce,O.maxBy=Ace,O.mean=rce,O.meanBy=oce,O.min=ice,O.minBy=sce,O.stubArray=O0,O.stubFalse=L0,O.stubObject=Wle,O.stubString=Gle,O.stubTrue=Yle,O.multiply=ace,O.nth=bie,O.noConflict=Nle,O.noop=M0,O.now=Ph,O.pad=lle,O.padEnd=cle,O.padStart=ule,O.parseInt=dle,O.random=tle,O.reduce=kse,O.reduceRight=Sse,O.repeat=fle,O.replace=hle,O.result=zae,O.round=lce,O.runInContext=le,O.sample=Qse,O.size=Ise,O.snakeCase=ple,O.some=_se,O.sortedIndex=xie,O.sortedIndexBy=Uie,O.sortedIndexOf=Iie,O.sortedLastIndex=_ie,O.sortedLastIndexBy=Tie,O.sortedLastIndexOf=Die,O.startCase=gle,O.startsWith=Ble,O.subtract=cce,O.sum=uce,O.sumBy=dce,O.template=yle,O.times=jle,O.toFinite=Go,O.toInteger=at,O.toLength=sT,O.toLower=wle,O.toNumber=wr,O.toSafeInteger=wae,O.toString=xt,O.toUpper=Cle,O.trim=ble,O.trimEnd=vle,O.trimStart=Ele,O.truncate=kle,O.unescape=Sle,O.uniqueId=Jle,O.upperCase=Fle,O.upperFirst=I0,O.each=G_,O.eachRight=Y_,O.first=$_,D0(O,(function(){var c={};return mo(O,function(d,m){Dt.call(O.prototype,m)||(c[m]=d)}),c})(),{chain:!1}),O.VERSION=A,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){O[c].placeholder=O}),hr(["drop","take"],function(c,d){gt.prototype[c]=function(m){m=m===n?1:_n(at(m),0);var b=this.__filtered__&&!d?new gt(this):this.clone();return b.__filtered__?b.__takeCount__=iA(m,b.__takeCount__):b.__views__.push({size:iA(m,v),type:c+(b.__dir__<0?"Right":"")}),b},gt.prototype[c+"Right"]=function(m){return this.reverse()[c](m).reverse()}}),hr(["filter","map","takeWhile"],function(c,d){var m=d+1,b=m==R||m==N;gt.prototype[c]=function(x){var V=this.clone();return V.__iteratees__.push({iteratee:qe(x,3),type:m}),V.__filtered__=V.__filtered__||b,V}}),hr(["head","last"],function(c,d){var m="take"+(d?"Right":"");gt.prototype[c]=function(){return this[m](1).value()[0]}}),hr(["initial","tail"],function(c,d){var m="drop"+(d?"":"Right");gt.prototype[c]=function(){return this.__filtered__?new gt(this):this[m](1)}}),gt.prototype.compact=function(){return this.filter(MA)},gt.prototype.find=function(c){return this.filter(c).head()},gt.prototype.findLast=function(c){return this.reverse().find(c)},gt.prototype.invokeMap=dt(function(c,d){return typeof c=="function"?new gt(this):this.map(function(m){return $c(m,c,d)})}),gt.prototype.reject=function(c){return this.filter(Vh(qe(c)))},gt.prototype.slice=function(c,d){c=at(c);var m=this;return m.__filtered__&&(c>0||d<0)?new gt(m):(c<0?m=m.takeRight(-c):c&&(m=m.drop(c)),d!==n&&(d=at(d),m=d<0?m.dropRight(-d):m.take(d-c)),m)},gt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},gt.prototype.toArray=function(){return this.take(v)},mo(gt.prototype,function(c,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),b=/^(?:head|last)$/.test(d),x=O[b?"take"+(d=="last"?"Right":""):d],V=b||/^find/.test(d);x&&(O.prototype[d]=function(){var ee=this.__wrapped__,oe=b?[1]:arguments,ce=ee instanceof gt,be=oe[0],Ee=ce||rt(ee),Se=function(ft){var yt=x.apply(O,Vi([ft],oe));return b&&De?yt[0]:yt};Ee&&m&&typeof be=="function"&&be.length!=1&&(ce=Ee=!1);var De=this.__chain__,$e=!!this.__actions__.length,Je=V&&!De,ct=ce&&!$e;if(!V&&Ee){ee=ct?ee:new gt(this);var Xe=c.apply(ee,oe);return Xe.__actions__.push({func:Nh,args:[Se],thisArg:n}),new mr(Xe,De)}return Je&&ct?c.apply(this,oe):(Xe=this.thru(Se),Je?b?Xe.value()[0]:Xe.value():Xe)})}),hr(["pop","push","shift","sort","splice","unshift"],function(c){var d=ch[c],m=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);O.prototype[c]=function(){var x=arguments;if(b&&!this.__chain__){var V=this.value();return d.apply(rt(V)?V:[],x)}return this[m](function(ee){return d.apply(rt(ee)?ee:[],x)})}}),mo(gt.prototype,function(c,d){var m=O[d];if(m){var b=m.name+"";Dt.call(Za,b)||(Za[b]=[]),Za[b].push({name:d,func:m})}}),Za[Ih(n,w).name]=[{name:"wrapper",func:n}],gt.prototype.clone=Sre,gt.prototype.reverse=Fre,gt.prototype.value=Qre,O.prototype.at=Ase,O.prototype.chain=rse,O.prototype.commit=ose,O.prototype.next=ise,O.prototype.plant=ase,O.prototype.reverse=lse,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=cse,O.prototype.first=O.prototype.head,Oc&&(O.prototype[Oc]=sse),O}),qa=ore();Ls?((Ls.exports=qa)._=qa,Ty._=qa):qn._=qa}).call(T5)})(nc,nc.exports)),nc.exports}var WE=D5();const M5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAEA0V4cAANaTc64j//NLKcl/CwCwllRrdRQAwJDfjDgAAHPyCAAAGP79uwOAAAAAAAAIAAAAAIAAAAAAAAgAAAAAwEn8CgAATOq3l+mNetv+rP9eAIAAAAAAAOF5BAAAAAAEAAAAAEAAAAAAAJZwdQgA2N2tl9Z5UZ1zwjkBQDReAghAmAHPwIdzA4DI7AAAINxwB8+eR0IAADuxAwCA0IO/Ac954jwBQAAAgE2HOUOd88Z5A0BEHgEAINwABy3OPyEAgNXYAQBAyMHf8OZcci4BIAAAwKbDmkEN5xcAAgAAGMxwvjnfABAAAGC1QcwQhnMQAAQAAAxd4JwEQAAAAEMWOEcBEAAAYKrBylCF8xUABAAANh2kDFE4hwFAAADA0ATOaQC44eIQAGBQgvcdOTdb/fQgADzDDgAADP7gXAdAAACAMQORYQjnPQAIAAAYgMDnAAAEAAAMPLD+58JnAgABAADDP/h8AIAAAMA6w43BBp8VnxUABAAADDPgs+OzA0BDF4cAgDMZYMBnAYAxrg4BAIYdGPu5ePf9AADwCjsAADD8g88IAAHYAQCAoQYm+rzYDQBAL3YAAGD4B58dAALwKwAANPF519LwAj5XAAgAAAAAwCAeAQAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAiyznXj38cCcA6A8AjqVZrOcCqF+S3/l5KSY4OYJ0B4Cc7AAA2uigHsAYBIAAAuDAHsJYACAAAuCgHsBYBCAAALHPB7dlcoIVn1hIRAEAAAGDQ8A9gbQJAAAAIcIHt7j/Q0rNriggAIAAAMOGFOoC1BUAAAGBCnvsHVogAdgEACAAAGP4BEQAAAQAAAAAQAAACc/cfmI1dAAACAACGf0AEEAEABAAADP+ACACAAAAAAAAIAACRuPsPrMIuAAABAADDPyACiAAAAgAAAAAgAAAE5e4/sCq7AAAEAAAM/4AIIAIACAAAAACAAAAQhLv/wC7sAgAQAADofEENYM0CQAAAmJg7YYC1DwABAMAFsDtpwJI8CgAgAADQ+AIawBoGgAAAMDF3vgCshQACAADunAHWMgAEAIDVueMFYE0EEAAAXOi6YwZsxQsBAQQAAAz/gLUNAAEAYD/ucAFYIwEEAADcIQOscQAIAACrc2cLwFoJIAAA4M4YYK0DQAAAWJ07WgDWTAABAAB3xABrHgACAMDq3MkCsHYCCAAAuBMGWPsAEAAAVvfbHSwXwIAI8P4aCoAAAAAAAAgAAHNw9x/AWgggAAAAAAACAMDq3PECsCYCCAAAAABAN6lWL1kF6OXzTdbucgFYLwEEAAAAAKA7jwAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACgEMAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAAAAAAgAAJHknOvHP44EgHUaYGWpVmslwL0Lyp9/K6UkRwbAWg2wIjsAAJ68oHz0dwCs1QACAAAAACAAAAAAAAIAwOlsHQWwlgMIAADBebEUAAACAAAAnEiUBRAAAAAAAAEA4D7PjAJY0wEEAAAAAEAAANidZ00BrM0AAgAAAAAgAAAAAAACAMAUvCwKwNoOIAAAAAAAAgDA7rxkCsAaDSAAAAAAAAIAAAAAIAAATMFLogCs8QACAAAAACAAAOzOy6UArNUAAgAAAAAgAAAAAAACAAAAACAAAJzD26EBrPUAAgAAAAAgAADszlulAazZAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAEAjfhYKwJoPIAAAAAAAAgDA7vycFIC1G0AAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAPiSc66OAoC1H0AAAAjM70gDWMMBBAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQAAAAAAABACCMUkpyFACs5QACAICLQwCs/QDLSbVWRwEAAAA2ZwcAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgADgEAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAABAc1eHAIgs51x//q2UkhwZAGs8wG7sAABcGD75dwCs8QACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAFH5nWgAaziAAACwiVJKchQArP0AAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAAAMC/cs7VUQCwdgMIAAAbKKUkRwHAmg8gAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAA04fekAazZAAIAwCb8LjSAtR5AAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAABoxu9KA1irAQQAgE34fWgAAAQAAABYmMgLIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAMBu/Lw1gjQYQAAA24WeiAKztAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAwEv8XBSANR1AAABwEQmANRpgWanW6igAAADA5uwAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAABACHAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAgLNdHQKA1+Wc6+f/XEpJjgiAtRdgdqnW6igAvHHx+Z0LUQDrL8DsPAIA0PHCFABrLIAAAAAAAAgAAAAAgAAAAAAACAAAAOzA8/8AAgCAi1QAABAAAPrwc1MA1mQAAQAAAAAQAAAAAAABAAAAABAAANbgRYAA1lQAAQBgE146BWAtBhAAAAAAAAEAAAAAEAAAtuCZVQBrKYAAAAAAAAgAAKvw8ikAazCAAAAAAAAIAAAAAIAAALAFL68CsIYCCAAAAACAAACwCi+hArD2AggAAAAAgAAAAAAACAAAW/ASKwBrJ4AAALAJz6ICWHMBBAAAAABAAAAAAAAEAIAteJYVwJoJIAAAAAAAAgDAKryUCsBaCyAAAAAAAAIAQASeaQWwVgIIAAAAAIAAALAKz6YCWGMBBAAAAABAAACIwLOtAAAIAAAAhCaSAggAAEvxjCqAtRVAAAAAAAAEAAAAAEAAANiCZ1wBrI0AAgDAJjyrCmBNBRAAAAAAAAEAIAJbXQGsiQACAAAAACAAAKzCM6sA1lIAAQAAAAAQAAAAAAABAGAZ97au2tIKYK0EEAAANr+wdUELYK0EGCnV6tdXAAAAYHd2AAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAKAQwAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAADAQTnn+vGPIwFYvwBoJdVqfQaY6cL51t9LKcnRAaxfABxhBwAAAAAIAADMwHZawBoFgAAAAAAACAAAu3CHDbA2ASAAAAAAAAIAwCq8LRuwpgEgAABgqy1gTQJAAAAAAAAEAIBl2DILWMsAEAAAsOUWsBYBIAAAAAAAAgDAMn7bOuvOGzDSb2uQ7f8AAgAAAAAgAAAAAAACAEAwHgMAZmT7P4AAAAAAAAgAALzDnTTAmgWAAACAxwAAaw4AAgAAAAAgAAAsw8sAgRl4+R+AAAAAAAAIAAC04M4aYI0CQAAAwGMAgDUGAAEAAAAAEAAAluFlgMAIXv4HIAAAAAAAAgAAPdgFAJzJ3X8AAQAAAAAQAAAAAAABAIBDPAYAnMH2fwABAAAAABAAADiDXQBAT+7+AwgAAAAAgAAAwJnsAgB6cPcfQAAAAAAABAAAAABAAACgC48BAC3Z/g8gAAAAAAACAAAj2QUAtODuP4AAAAAAAAgAAMzALgDgCHf/AQQAAAAAQAAAYCZ2AQDvcPcfQAAAAAAABAAAZuROHWBNAUAAAAAAAAEAAAAAEAAAWIYtu4C1BIBbUq1eCg0AAAC7swMAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAAAQABwCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAD4JudcP/5xJMDnE4B1pVp9XwBwf7D4+bdSSnJkwGcUgPXYAQDA04PFo78DPqMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAQfkZMfAZBkAAAAAAAAQAAHZXSkmOAvgsAiAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABAHDnn6igAIAAAYGgAABAAAOA2vzsOPpMACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAfMk5V0cBfKYBEAAACMzvjYPPJgACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAABf/F44+GwDIAAAAAAAAgAAuyulJEcBfEYBEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAA+CPnXB0F8BkHQAAAIDC/Lw4+qwAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAA8xc+Kgc8sAAIAAAAAsJBUa3UUAPgj5/z1peBOIvgsAyAAAAAAAIvxCAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAADAIVeHAGAeOef682+llOTIANYwAI5KtVZHAWCSC+V7XEAD1jQAjrIDAGCyC2OAiGuiKAAgAAAY9AECr5/CAIAAAGDQBwi83goDAAIAgCEfIPgaLQ4A3OYlgICLyMkHfReygPXUegogAABsdGHqAhWw7lp3AQQAABeeANZl6zKAAACwykWmi0qANdZs6zWwIy8BBHDhCDDdmulFrAACAIAhHyD4GisOAAgAAAZ9gMDrsjAAIAAAGPQBAq/jwgDAP7wEENjWvQs+gz4AvicAAQAAAADY0sUhAAAAAAEAAAAAEAAAAACAFfgVAOBXt16S5AVJAOC7GViLlwACT11U3OJCAwB8TwPrsAMA8PvIABDg+10QAAQAcEEAAAgCgAAAGPgBAEEAEAAAAz8AIAgAS/ASQDD0v8VFAQD43gcEAGDDL35f/gDgmsA1AQgAgC93AMA1AyAAAL68AQDXFIAAAPhyBgBccwACAPjy9eULALgmAQQA8CXryxUAcK0CCAAQ6wvVlygA4PoFuOfqEMC6fGECAGdfb4x4ZAAQAMDADwAgCAACABj4AQAEAeCTdwDAyR59KRr4AQDXPoAAAAAAALzt4hAAAACAAAAAAAAIAAAAAIAAACf4eLGMt80CAOB6Ex7zEkCWXIAf/d+9TRYAANed8H9Xh4AdFl8AABh5jSoGIACAoR8AADEABAAw9AMAIAaAAIChHwAAxAAQADD0AwCAGADP8isAbDH0W0ABAHAtCwIAFkoAAHCNiwAgALDSomhBBADAdS8IAFj8AADA9TAIAKy00FnkAABwjewaGQGATRc1CxoAAK6bXTcjAGDxAgAA19OupxEAWGmhskgBAIBrbAQALEoAAOCa2zU3AgCrLUIWIAAAcB2OAIAFBwAAcF2OAMBqi4zFBQAAXKczr6tDwFEWFAAA6H+93foXBBAAwOAPAABCAAIAGPwBAEAIYEXeAcB/3FtEDP0AAOA6HgGAjRcPCwYAALiWRwAAAAAAFnFxCAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAG64OwRg55/r5P5dSkiMCAACYgegp1VodhUEn/Xc+AAAAgDmInjwCMMFJDwAAYEaiN48AOKkBAACGz0t2A/RnB4DhHwAAwOwkAOAEBgAAMEMJADQ5cW11AQAAdvbKzCMC9ONXAAYO/oZ/AADAvGReOosdAE5mAACAU7w6A9kNIAAY/gEAAEQAXuQRgJOHf4M/AACAWWoEOwCcsAAAAEN4OaAAYPgHAAAQAUQAAcDwDwAAIALwKu8A6Dj4G/4BAADMWwLA5iejExEAAMDsNROPADgBAQAApuKRAAHA8A8AACACiAACgOEfAABABEAAMPwDAACIAAIAhn8AAAARQAAw/Bv+AQAARAABwPAPAACACCAAGP4BAAAQAQQAwz8AAAAigABg+AcAAEAEEAAM/wAAACKACCAAGP4BAABEABEgcgAw/AMAAIgAAgCGfwAAALObALC6Z4uPEwgAAGC/CBB1F0C4AGD4BwAAEAEiRoBQAcDwDwAAIAJEjQBhAoDhHwAAQASIHAG8BNDwDwAAYMYTAJwYAAAAmPUEACcEAAAAZj4BwIkAAACA2U8AGP5fthMAAAAgdgSINBemWquzAAAAADbnHQAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAIAA4BAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAANHId/S+Qc64//1ZKSf6rAQAAYFUzzrqX2Q7Io78DAADAisP/DLOuRwAAAAAggGEBwF1+AAAAohk5C9sBAAAAAAEMCQC/FQ8vAQQAAGBXo3YB2AEAAAAADc16U/v0AODuPwAAANEjwIhdAHYAAAAAQACnBgB3/wEAAIhitl0AdgAAAABAAKcFAHf/AQAAiGamXQB2AAAAAEAApwQAd/8BAACIapZdAHYAAAAAQADdA8CI3zYEAACAlZwxOw/fAWD7PwAAALubYfb1CAAAAAAE0DUAePkfAAAAPDcD934MwA4AAAAACKBbAHD3HwAAAF6bhXvuArADAAAAAAIYEgDc/QcAACCqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",O5={class:"camera__preview"},L5={key:0,class:"camera__bg-notification"},N5=["innerHTML"],H5=["width","height"],P5={key:1,class:"camera__countdown-overlay"},R5=["innerHTML","data-countdown"],V5=["src"],$5={class:"camera__controls"},K5={class:"container"},z5={class:"row"},W5={class:"col"},G5={class:"btn-group"},Y5={key:0},j5={key:1},q5={key:0,class:"camera__switch-cam"},J5={key:1,class:"base-camera__devices"},X5={name:"BaseCamera",inheritAttrs:!1};function Z5(t){const e=atob(t.split(",")[1]),n=new ArrayBuffer(e.length),A=new Uint8Array(n);for(let r=0;r<e.length;r++)A[r]=e.charCodeAt(r);return new Blob([n],{type:"image/png"})}const e6=s.defineComponent({...X5,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>M5},countdown:{type:Number,default:0},ratio:{type:String,default:"4x5"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const A={"1x1":{width:720,height:720},"2x3":{width:720,height:1080},"3x2":{width:1080,height:720},"3x4":{width:720,height:960},"4x3":{width:960,height:720},"4x5":{width:960,height:1200},"5x4":{width:1200,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,o=n,i=s.ref(),a=s.ref(),l=s.ref(!1),u=s.ref([]),f=s.ref(),h=s.ref(),p=s.ref(!1),g=s.ref(!1),B=s.ref(0),y=s.ref(0),C=s.ref(),w=s.computed(()=>u.value.filter(E=>E.kind==="videoinput")),F=s.computed(()=>u.value.filter(E=>E.kind==="audioinput")),_=s.computed({get(){return f.value&&f.value.deviceId},set(E){f.value=w.value.find(I=>I.deviceId===E)}}),D=s.computed({get(){return h.value&&h.value.deviceId},set(E){h.value=F.value.find(I=>I.deviceId===E)}}),P=s.computed(()=>{const E=f.value&&w.value.findIndex(I=>I.deviceId===f.value.deviceId);return r.enableMirrorCamera&&E===0?"mirror-cam":""}),T=s.computed(()=>{const E=f.value&&u.value.findIndex(I=>I.deviceId===f.value.deviceId);return P.value?`${P.value} mirror-device-${E}`:""});function H(){B.value=A[r.ratio]?A[r.ratio].width:i.value.parentElement&&i.value.parentElement.clientWidth,y.value=A[r.ratio]?A[r.ratio].height:i.value.parentElement&&i.value.parentElement.clientHeight}const te=WE.debounce(()=>{H()},300,{trailing:!0,leading:!1});async function Z(){const E={audio:r.enableAudio&&{...h.value?{deviceId:h.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(E).catch(I=>{console.error(I,"navigator.mediaDevices.getUserMedia: failed")})}function ne(){i.value&&i.value.srcObject&&i.value.srcObject.getTracks().forEach(I=>{I.stop()})}async function pe(){return i.value.srcObject=await Z(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:i.value.srcObject,devices:u.value}}function Be(){p.value?(p.value=!1,g.value=!1,ne()):(p.value=!0,pe())}function we(){u.value.length>1&&(ne(),f.value=f.value&&f.value.deviceId===w.value[0].deviceId?w.value[w.value.length-1]:w.value[0],pe())}async function R(E,I){ne(),E&&(!I||E.deviceId!==I.deviceId)&&await pe()}s.watch(()=>f.value,R),s.watch(()=>h.value,R);function K(){r.countdown?(C.value=C.value?C.value-1:r.countdown,C.value?setTimeout(K,1e3):N()):N()}e({onCapture:K,camera:i.value});function N(){g.value=!0;const E=a.value.getContext("2d"),I=i.value,Q=I&&I.srcObject&&I.srcObject.getTracks(),{aspectRatio:v,width:W,height:M}=Q.length&&Q[0].getSettings(),$=A[r.ratio],J=$.width/$.height;let j=$.width,S=$.height;r.enableCropImage?v>J?j=S*v:v<J&&(S=j/v):(j=W,S=M,a.value.width=j,a.value.height=S);const G=P.value?-1:1;E.save(),E.scale(G,1),E.drawImage(I,j>a.value.width?(a.value.width-j)/2:0,S>a.value.height?(a.value.height-S)/2:0,j*G,S),E.restore();const ue=a.value.toDataURL("image/png");k(ue)}function k(E){const I=Z5(E);o("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:I,size:I.size})}return s.onMounted(async()=>{ne(),await pe(),f.value=w.value[0],r.enableAudio&&(h.value=F.value[0]),navigator.mediaDevices.addEventListener("devicechange",async E=>{await pe()}),r.defaultRearCamera&&we(),Be(),window.addEventListener("resize",te),H(),await s.nextTick(),l.value=!0}),s.onBeforeUnmount(()=>{p.value=!1,g.value=!1,ne(),window.removeEventListener("resize",te)}),(E,I)=>{const Q=s.resolveComponent("loading-spinner"),v=s.resolveComponent("svg-icon"),W=s.resolveComponent("input-dropdown");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["camera",T.value])},[s.createElementVNode("div",O5,[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",L5,[s.createVNode(Q,{color:"#000"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:s.normalizeClass("d-block text-center"),innerHTML:E.$t("camera.waitForCameraNotification")},null,8,N5)]),_:1})])),s.withDirectives(s.createElementVNode("video",{ref_key:"camera",ref:i,class:s.normalizeClass(["camera__video",`aspect-ratio--${r.ratio}`]),autoplay:"",playsinline:""},null,2),[[s.vShow,l.value]]),s.withDirectives(s.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:B.value,height:y.value},null,8,H5),[[s.vShow,g.value]]),C.value?(s.openBlock(),s.createElementBlock("div",P5,[(s.openBlock(),s.createElementBlock("p",{class:"countdown",key:C.value,innerHTML:C.value,"data-countdown":C.value},null,8,R5))])):s.createCommentVNode("",!0),t.enableGuide&&p.value&&l.value?(s.openBlock(),s.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,V5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",$5,[s.createElementVNode("div",K5,[s.createElementVNode("div",z5,[s.createElementVNode("div",W5,[s.createElementVNode("div",G5,[s.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:Be},[p.value?(s.openBlock(),s.createElementBlock("span",j5,s.toDisplayString(E.$t("common.pause")),1)):(s.openBlock(),s.createElementBlock("span",Y5,s.toDisplayString(E.$t("common.play")),1))]),s.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:K},s.toDisplayString(E.$t("camera.capture")),1)])])])])]),t.enableSwitchCamera&&w.value&&w.value.length>1?(s.openBlock(),s.createElementBlock("div",q5,[s.createElementVNode("button",{class:"btn",onClick:s.withModifiers(we,["prevent"])},[s.createVNode(v,{symbol:"switch-camera"})])])):s.createCommentVNode("",!0),t.enableSelectDevice?(s.openBlock(),s.createElementBlock("div",J5,[F.value.length&&h.value?(s.openBlock(),s.createBlock(W,{key:0,modelValue:D.value,"onUpdate:modelValue":I[0]||(I[0]=M=>D.value=M),options:F.value.map((M,$)=>({text:M.label||`Microphone ${$+1}`,value:M.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0),w.value.length?(s.openBlock(),s.createBlock(W,{key:1,modelValue:_.value,"onUpdate:modelValue":I[1]||(I[1]=M=>_.value=M),options:w.value.map((M,$)=>({text:M.label||`Camera ${$+1}`,value:M.deviceId}))},null,8,["modelValue","options"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)}}}),t6=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,n6=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,A6=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function r6(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){o6(t);return}return e}function o6(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function i6(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const A=n.toLowerCase();if(A==="true")return!0;if(A==="false")return!1;if(A==="undefined")return;if(A==="null")return null;if(A==="nan")return Number.NaN;if(A==="infinity")return Number.POSITIVE_INFINITY;if(A==="-infinity")return Number.NEGATIVE_INFINITY}if(!A6.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(t6.test(t)||n6.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,r6)}return JSON.parse(t)}catch(A){if(e.strict)throw A;return t}}const s6=/#/g,a6=/&/g,l6=/\//g,c6=/=/g,_g=/\+/g,u6=/%5e/gi,d6=/%60/gi,f6=/%7c/gi,h6=/%20/gi;function p6(t){return encodeURI(""+t).replace(f6,"|")}function Tg(t){return p6(typeof t=="string"?t:JSON.stringify(t)).replace(_g,"%2B").replace(h6,"+").replace(s6,"%23").replace(a6,"%26").replace(d6,"`").replace(u6,"^").replace(l6,"%2F")}function Dg(t){return Tg(t).replace(c6,"%3D")}function GE(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function m6(t){return GE(t.replace(_g," "))}function g6(t){return GE(t.replace(_g," "))}function B6(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const A=n.match(/([^=]+)=?(.*)/)||[];if(A.length<2)continue;const r=m6(A[1]);if(r==="__proto__"||r==="constructor")continue;const o=g6(A[2]||"");e[r]===void 0?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}return e}function y6(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Dg(t)}=${Tg(n)}`).join("&"):`${Dg(t)}=${Tg(e)}`:Dg(t)}function w6(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>y6(e,t[e])).filter(Boolean).join("&")}const C6=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,b6=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,v6=/^([/\\]\s*){2,}[^/\\]/,E6=/^\.?\//;function YE(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?C6.test(t):b6.test(t)||(e.acceptRelative?v6.test(t):!1)}function k6(t="",e){return t.endsWith("/")}function S6(t="",e){return(k6(t)?t.slice(0,-1):t)||"/"}function F6(t="",e){return t.endsWith("/")?t:t+"/"}function Q6(t,e){if(U6(e)||YE(t))return t;const n=S6(e);return t.startsWith(n)?t:_6(n,t)}function x6(t,e){const n=T6(t),A={...B6(n.search),...e};return n.search=w6(A),D6(n)}function U6(t){return!t||t==="/"}function I6(t){return t&&t!=="/"}function _6(t,...e){let n=t||"";for(const A of e.filter(r=>I6(r)))if(n){const r=A.replace(E6,"");n=F6(n)+r}else n=A;return n}const jE=Symbol.for("ufo:protocolRelative");function T6(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,p=""]=n;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!YE(t,{acceptRelative:!0}))return qE(t);const[,A="",r,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];A==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:f}=qE(a);return{protocol:A.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:i,pathname:l,search:u,hash:f,[jE]:!A}}function qE(t=""){const[e="",n="",A=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:A}}function D6(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",A=t.hash||"",r=t.auth?t.auth+"@":"",o=t.host||"";return(t.protocol||t[jE]?(t.protocol||"")+"//":"")+r+o+e+n+A}class M6 extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function O6(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",A=t.request?.url||String(t.request)||"/",r=`[${n}] ${JSON.stringify(A)}`,o=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",i=`${r}: ${o}${e?` ${e}`:""}`,a=new M6(i,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[u]}});return a}const L6=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function JE(t="GET"){return L6.has(t.toUpperCase())}function N6(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const H6=new Set(["image/svg","application/xml","application/xhtml","application/html"]),P6=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function R6(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return P6.test(e)?"json":H6.has(e)||e.startsWith("text/")?"text":"blob"}function V6(t,e,n,A){const r=$6(e?.headers??t?.headers,n?.headers,A);let o;return(n?.query||n?.params||e?.params||e?.query)&&(o={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:o,params:o,headers:r}}function $6(t,e,n){if(!e)return new n(t);const A=new n(e);if(t)for(const[r,o]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))A.set(r,o);return A}async function Nd(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const K6=new Set([408,409,425,429,500,502,503,504]),z6=new Set([101,204,205,304]);function XE(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:A=globalThis.AbortController}=t;async function r(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let f;typeof a.options.retry=="number"?f=a.options.retry:f=JE(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):K6.has(h))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(g=>setTimeout(g,p)),o(a.request,{...a.options,retry:f-1})}}const u=O6(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const f={request:l,options:V6(l,u,t.defaults,n),response:void 0,error:void 0};f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&await Nd(f,f.options.onRequest),typeof f.request=="string"&&(f.options.baseURL&&(f.request=Q6(f.request,f.options.baseURL)),f.options.query&&(f.request=x6(f.request,f.options.query),delete f.options.query),"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params),f.options.body&&JE(f.options.method)&&(N6(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new n(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half")));let h;if(!f.options.signal&&f.options.timeout){const g=new A;h=setTimeout(()=>{const B=new Error("[TimeoutError]: The operation was aborted due to timeout");B.name="TimeoutError",B.code=23,g.abort(B)},f.options.timeout),f.options.signal=g.signal}try{f.response=await e(f.request,f.options)}catch(g){return f.error=g,f.options.onRequestError&&await Nd(f,f.options.onRequestError),await r(f)}finally{h&&clearTimeout(h)}if((f.response.body||f.response._bodyInit)&&!z6.has(f.response.status)&&f.options.method!=="HEAD"){const g=(f.options.parseResponse?"json":f.options.responseType)||R6(f.response.headers.get("content-type")||"");switch(g){case"json":{const B=await f.response.text(),y=f.options.parseResponse||i6;f.response._data=y(B);break}case"stream":{f.response._data=f.response.body||f.response._bodyInit;break}default:f.response._data=await f.response[g]()}}return f.options.onResponse&&await Nd(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await Nd(f,f.options.onResponseError),await r(f)):f.response},i=async function(l,u){return(await o(l,u))._data};return i.raw=o,i.native=(...a)=>e(...a),i.create=(a={},l={})=>XE({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),i}const Hd=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),W6=Hd.fetch?(...t)=>Hd.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),G6=Hd.Headers,Y6=Hd.AbortController,j6=XE({fetch:W6,Headers:G6,AbortController:Y6}),q6=["src"],J6=["onClick"],X6=["onClick"],Z6=["for"],e8=["innerHTML"],t8={key:0,class:"file-upload__loading-spinner"};async function n8(t){return await new Promise(e=>{let n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(t)})}const A8=s.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0},dropFiles:{type:Boolean,default:!1}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const n=t,A=e,r=s.ref([]),o=s.ref([]),i=s.ref(!1),a=s.ref(!1),l=s.computed(()=>n.modelValue.length?n.modelValue:n.src?[{type:"",src:n.src}]:o.value);s.watch(()=>r.value,async B=>{o.value=await Promise.all(B.map(async y=>({src:n.toDataUrl?await n8(y):await f(y),type:y.type})))},{deep:!0}),s.watch(()=>o.value,async B=>{const y=n.multiple?B:B[0];A("update:modelValue",y),n.multiple||A("update:src",B[0]&&B[0].src)},{deep:!0});function u(B){r.value.splice(B,1),(!o.value||!o.value.length)&&A("update:src","")}async function f(B){const y=new FormData;y.append("file",B),i.value=!0;const w=await(n.customFetch||j6)(n.endpoint,{method:"POST",...n.customFetch?{}:{headers:{Accept:"application/json",...n.authToken?{Authorization:`Bearer ${n.authToken}`}:{}}},body:y}).catch(_=>{console.error("Error",_)});return i.value=!1,`${n.baseResponsePath==="/media"&&w.path.endsWith(".svg")?"/api/v1/assets":n.baseResponsePath}/${w.path}`}function h(B){B.preventDefault(),a.value=!0}function p(B){B.preventDefault(),a.value=!1}function g(B){B.preventDefault(),a.value=!1;const y=B.dataTransfer,C=y&&Array.from(y.files||[]);r.value=C||[]}return s.onMounted(()=>{n.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.addEventListener(B,h,!1)}),["dragleave","drop"].forEach(B=>{document.body.addEventListener(B,p,!1)}),document.body.addEventListener("drop",g,!1))}),s.onBeforeUnmount(()=>{n.dropFiles&&(["dragenter","dragover"].forEach(B=>{document.body.removeEventListener(B,h,!1)}),["dragleave","drop"].forEach(B=>{document.body.removeEventListener(B,p,!1)}),document.body.removeEventListener("drop",g,!1))}),(B,y)=>{const C=s.resolveComponent("svg-icon"),w=s.resolveComponent("input-file");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["file-upload",{"has-dragging":t.dropFiles,"is-dragging":a.value}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(F,_)=>(s.openBlock(),s.createElementBlock("div",{key:F.src,class:s.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("img",{src:`${F.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,q6),s.createElementVNode("button",{onClick:s.withModifiers(D=>u(_),["prevent"]),class:"btn btn--close"},[s.createVNode(C,{symbol:"x"})],8,J6)],64)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:s.withModifiers(D=>u(_),["prevent"]),class:"btn btn--close btn-outline-contrast"},[s.createVNode(C,{symbol:"x"})],8,X6))],2))),128)),s.createVNode(w,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=F=>r.value=F),id:t.id,name:t.name,accept:t.accept,"max-file-size":t.maxFileSize,class:"d-none"},null,8,["modelValue","id","name","accept","max-file-size"]),s.createElementVNode("label",{for:t.id,class:"file-upload__label"},[s.renderSlot(B.$slots,"button",{},()=>[s.createElementVNode("span",{class:"btn btn-outline-contrast",innerHTML:t.label||B.$t("common.selectFile")},null,8,e8)]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("span",t8,y[1]||(y[1]=[s.createElementVNode("span",{class:"spinner-border",role:"status"},[s.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)]))):s.createCommentVNode("",!0)]),_:1})],8,Z6)],2)}}}),r8={class:"upload-group"},o8=["innerHTML"],i8={class:"upload-group__list"},s8={class:"img-container"},a8=["src"],l8=["onClick"],c8={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},ZE=s.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(""),o=s.computed({get(){return n.modelValue},set(a){A("update:modelValue",a)}});function i(a){o.value.splice(a,1),A("update:modelValue",o.value)}return s.watch(r,(a,l)=>{a&&(A("update:modelValue",[...o.value,a]),r.value="")}),(a,l)=>{const u=s.resolveComponent("svg-icon"),f=s.resolveComponent("file-upload"),h=s.resolveComponent("sortable-list");return s.openBlock(),s.createElementBlock("div",r8,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:t.label},null,8,o8)):s.createCommentVNode("",!0),s.createElementVNode("div",i8,[s.createVNode(h,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=p=>o.value=p),vertical:!1,class:"mb-3"},{"list-item":s.withCtx(({item:p,index:g})=>[s.createElementVNode("div",s8,[s.createElementVNode("img",{src:`${p}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,a8),s.createElementVNode("button",{onClick:s.withModifiers(B=>i(g),["prevent"]),class:"btn btn--close"},[s.createVNode(u,{symbol:"x"})],8,l8)])]),"list-append":s.withCtx(()=>[s.createVNode(f,{src:r.value,"onUpdate:src":l[0]||(l[0]=p=>r.value=p),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize},{button:s.withCtx(()=>[s.createElementVNode("span",c8,[s.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path","accept","max-file-size"])]),_:1},8,["modelValue"])])])}}}),u8={class:"asset-uploader"},d8=["innerHTML"],f8=s.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>bt()},id:{type:String,default:()=>bt()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String},maxFileSize:{type:Number,default:0},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue.map(o=>o.src)},set(o){A("update:modelValue",o.map((i,a)=>({mediaType:n.modelValue[a]&&n.modelValue[a].mediaType||i.includes("data:image")?i.includes("data:image/svg")?"Svg":"Image":n.mediaTypeMap[i.split(".")[1]],src:i,name:n.modelValue[a]&&n.modelValue[a].name||`${n.name}-${a}`,...n.type?{type:n.type}:{}})))}});return(o,i)=>(s.openBlock(),s.createElementBlock("div",u8,[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,innerHTML:t.label},null,8,d8)):s.createCommentVNode("",!0),s.createVNode(ZE,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath,accept:t.accept,"max-file-size":t.maxFileSize},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path","accept","max-file-size"])]))}}),h8={class:"carousel d-flex"},p8=["onClick"],ek=s.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,A=s.ref(),r=s.ref();function o(){A.value.scrollTo({top:0,left:A.value.scrollLeft-A.value.clientWidth>0?A.value.scrollLeft-A.value.clientWidth:0,behavior:"smooth"})}function i(){A.value.scrollTo({top:0,left:A.value.scrollLeft-A.value.clientWidth<=r.value.clientWidth?A.value.scrollLeft+A.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(l){n("update:modelValue",l)}return(l,u)=>{const f=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",h8,[t.navigation?(s.openBlock(),s.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(f,{symbol:"chevron-left"})])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"viewport",ref:A,class:"carousel__viewport flex-grow-1"},[s.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(h,p)=>s.renderSlot(l.$slots,"carousel-item",{key:h.src,item:h,index:p},()=>[s.createElementVNode("div",{class:s.normalizeClass(["carousel__item",p===t.modelValue?"selected":""]),onClick:g=>a(p)},s.toDisplayString(h),11,p8)])),128))],512)],512),t.navigation?(s.openBlock(),s.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:s.withModifiers(i,["prevent","stop"])},[s.createVNode(f,{symbol:"chevron-right"})])):s.createCommentVNode("",!0)])}}}),m8={class:"media-thumbnails"},g8=["onClick"],B8={class:"img-container"},y8=s.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,A=s.ref(-1);function r(o){A.value=o,n("update:modelValue",o),n("select",o)}return(o,i)=>{const a=s.resolveComponent("base-image");return s.openBlock(),s.createElementBlock("div",m8,[s.createVNode(ek,{items:t.assets},{"carousel-item":s.withCtx(l=>[s.createElementVNode("a",{role:"button",class:s.normalizeClass(["carousel__item media-thumbnails__thumbnail",l.index===t.modelValue||l.index===A.value?"is-active":""]),onClick:u=>r(l.index)},[s.createElementVNode("div",B8,[s.createVNode(a,{src:l.item.thumbnail||l.item.src,class:"img-fluid"},null,8,["src"])])],10,g8)]),_:1},8,["items"])])}}}),w8={class:"progress-steps"},C8={class:"progress-steps__list"},b8={class:"progress-step"},v8=["checked","id","value","disabled","read-only","required","onChange"],E8=["for"],k8=["innerHTML"],S8=["for"],F8=["innerHTML"],Q8=s.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:e}){const n=t,A=e;function r(o){A("update:modelValue",o),o>=n.progress&&A("update:progress",o)}return(o,i)=>(s.openBlock(),s.createElementBlock("div",w8,[s.createElementVNode("ul",C8,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.steps,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l,class:s.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":l>t.progress+(t.reveal?1:0),"progress-steps__step--active":l===(t.modelValue||0)}])},[s.renderSlot(o.$slots,"step",{},()=>[s.createElementVNode("div",b8,[s.createElementVNode("input",{type:"radio",checked:l<=(t.progress||0),id:`step-${l}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||l>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(l)},null,40,v8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(o.$slots,"button",{step:a},()=>[s.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,k8)])],8,E8),s.createElementVNode("label",{for:`step-${l}`},[s.renderSlot(o.$slots,"label",{step:a},()=>[s.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,F8)])],8,S8)])])],2))),128))])]))}}),x8=["id","popover"],Mg=s.defineComponent({__name:"popover-dialog",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"auto"},id:{type:String,default:()=>`popover-dialog-${Math.random().toString(36).substr(2,9)}`},title:{type:String,default:""},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},classes:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},closeTimeout:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),o=s.ref(),i=s.ref(!1),a=s.computed(()=>"ontouchstart"in window||navigator.maxTouchPoints>0);function l(){clearTimeout(o.value),n.hover&&r.value?.showPopover()}function u(){i.value=!0,clearTimeout(o.value),l()}function f(){i.value=!1,(n.hover||n.closeTimeout)&&(o.value=setTimeout(()=>{r.value?.hidePopover()},n.closeTimeout||n.hoverDelay))}s.watch(()=>n.modelValue,(p,g)=>{p&&!g?r.value?.matches(":popover-open")||r.value?.showPopover():!p&&g&&r.value?.matches(":popover-open")&&r.value?.hidePopover()});function h(p){p.newState==="open"?(n.closeTimeout&&!i.value&&(clearTimeout(o.value),o.value=setTimeout(()=>{i.value||r.value?.hidePopover()},n.closeTimeout)),n.modelValue||A("update:modelValue",!0)):p.newState==="closed"&&(i.value=!1,n.modelValue&&A("update:modelValue",!1))}return s.onMounted(()=>{if(r.value?.addEventListener("toggle",h),n.modelValue&&r.value?.showPopover(),!a.value){r.value?.addEventListener("mouseenter",u),r.value?.addEventListener("mouseleave",f);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.addEventListener("mouseenter",u),p.addEventListener("mouseleave",f))}}),s.onBeforeUnmount(()=>{if(clearTimeout(o.value),r.value?.removeEventListener("toggle",h),!a.value){r.value?.removeEventListener("mouseenter",u),r.value?.removeEventListener("mouseleave",f);const p=document.querySelector(`[popovertarget="${n.id}"]`);p&&(p.removeEventListener("mouseenter",u),p.removeEventListener("mouseleave",f))}}),(p,g)=>(s.openBlock(),s.createElementBlock("span",{class:"popover-dialog",id:t.id,popover:t.type,ref_key:"popover",ref:r},[s.renderSlot(p.$slots,"default",{},()=>[g[0]||(g[0]=s.createTextVNode(" Popover content goes here. ",-1))])],8,x8))}});var U8=Object.defineProperty,I8=Object.defineProperties,_8=Object.getOwnPropertyDescriptors,tk=Object.getOwnPropertySymbols,T8=Object.prototype.hasOwnProperty,D8=Object.prototype.propertyIsEnumerable,nk=(t,e,n)=>e in t?U8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rn=(t,e)=>{for(var n in e||(e={}))T8.call(e,n)&&nk(t,n,e[n]);if(tk)for(var n of tk(e))D8.call(e,n)&&nk(t,n,e[n]);return t},QA=(t,e)=>I8(t,_8(e)),Wt=(t,e,n)=>new Promise((A,r)=>{var o=l=>{try{a(n.next(l))}catch(u){r(u)}},i=l=>{try{a(n.throw(l))}catch(u){r(u)}},a=l=>l.done?A(l.value):Promise.resolve(l.value).then(o,i);a((n=n.apply(t,e)).next())});const Og=Math.min,ba=Math.max,Pd=Math.round,Rd=Math.floor,Ao=t=>({x:t,y:t});function M8(t,e){return typeof t=="function"?t(e):t}function O8(t){return Rn({top:0,right:0,bottom:0,left:0},t)}function L8(t){return typeof t!="number"?O8(t):{top:t,right:t,bottom:t,left:t}}function Vd(t){const{x:e,y:n,width:A,height:r}=t;return{width:A,height:r,top:n,left:e,right:e+A,bottom:n+r,x:e,y:n}}function N8(t,e){return Wt(this,null,function*(){var n;e===void 0&&(e={});const{x:A,y:r,platform:o,rects:i,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=M8(e,t),B=L8(g),y=a[p?h==="floating"?"reference":"floating":h],C=Vd(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),w=h==="floating"?{x:A,y:r,width:i.floating.width,height:i.floating.height}:i.reference,F=yield o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating),_=(yield o.isElement==null?void 0:o.isElement(F))?(yield o.getScale==null?void 0:o.getScale(F))||{x:1,y:1}:{x:1,y:1},D=Vd(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:F,strategy:l}):w);return{top:(C.top-D.top+B.top)/_.y,bottom:(D.bottom-C.bottom+B.bottom)/_.y,left:(C.left-D.left+B.left)/_.x,right:(D.right-C.right+B.right)/_.x}})}function $d(){return typeof window<"u"}function va(t){return Ak(t)?(t.nodeName||"").toLowerCase():"#document"}function RA(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ro(t){var e;return(e=(Ak(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ak(t){return $d()?t instanceof Node||t instanceof RA(t).Node:!1}function _r(t){return $d()?t instanceof Element||t instanceof RA(t).Element:!1}function oo(t){return $d()?t instanceof HTMLElement||t instanceof RA(t).HTMLElement:!1}function rk(t){return!$d()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof RA(t).ShadowRoot}function Ac(t){const{overflow:e,overflowX:n,overflowY:A,display:r}=Tr(t);return/auto|scroll|overlay|hidden|clip/.test(e+A+n)&&!["inline","contents"].includes(r)}function H8(t){return["table","td","th"].includes(va(t))}function Kd(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Lg(t){const e=Ng(),n=_r(t)?Tr(t):t;return["transform","translate","scale","rotate","perspective"].some(A=>n[A]?n[A]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(A=>(n.willChange||"").includes(A))||["paint","layout","strict","content"].some(A=>(n.contain||"").includes(A))}function P8(t){let e=Fi(t);for(;oo(e)&&!Ea(e);){if(Lg(e))return e;if(Kd(e))return null;e=Fi(e)}return null}function Ng(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(t){return["html","body","#document"].includes(va(t))}function Tr(t){return RA(t).getComputedStyle(t)}function zd(t){return _r(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fi(t){if(va(t)==="html")return t;const e=t.assignedSlot||t.parentNode||rk(t)&&t.host||ro(t);return rk(e)?e.host:e}function ok(t){const e=Fi(t);return Ea(e)?t.ownerDocument?t.ownerDocument.body:t.body:oo(e)&&Ac(e)?e:ok(e)}function rc(t,e,n){var A;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=ok(t),o=r===((A=t.ownerDocument)==null?void 0:A.body),i=RA(r);if(o){const a=Hg(i);return e.concat(i,i.visualViewport||[],Ac(r)?r:[],a&&n?rc(a):[])}return e.concat(r,rc(r,[],n))}function Hg(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ik(t){const e=Tr(t);let n=parseFloat(e.width)||0,A=parseFloat(e.height)||0;const r=oo(t),o=r?t.offsetWidth:n,i=r?t.offsetHeight:A,a=Pd(n)!==o||Pd(A)!==i;return a&&(n=o,A=i),{width:n,height:A,$:a}}function Pg(t){return _r(t)?t:t.contextElement}function ka(t){const e=Pg(t);if(!oo(e))return Ao(1);const n=e.getBoundingClientRect(),{width:A,height:r,$:o}=ik(e);let i=(o?Pd(n.width):n.width)/A,a=(o?Pd(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const R8=Ao(0);function sk(t){const e=RA(t);return!Ng()||!e.visualViewport?R8:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function V8(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==RA(t)?!1:e}function vs(t,e,n,A){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),o=Pg(t);let i=Ao(1);e&&(A?_r(A)&&(i=ka(A)):i=ka(t));const a=V8(o,n,A)?sk(o):Ao(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,f=r.width/i.x,h=r.height/i.y;if(o){const p=RA(o),g=A&&_r(A)?RA(A):A;let B=p,y=Hg(B);for(;y&&A&&g!==B;){const C=ka(y),w=y.getBoundingClientRect(),F=Tr(y),_=w.left+(y.clientLeft+parseFloat(F.paddingLeft))*C.x,D=w.top+(y.clientTop+parseFloat(F.paddingTop))*C.y;l*=C.x,u*=C.y,f*=C.x,h*=C.y,l+=_,u+=D,B=RA(y),y=Hg(B)}}return Vd({width:f,height:h,x:l,y:u})}function Rg(t,e){const n=zd(t).scrollLeft;return e?e.left+n:vs(ro(t)).left+n}function ak(t,e,n){n===void 0&&(n=!1);const A=t.getBoundingClientRect(),r=A.left+e.scrollLeft-(n?0:Rg(t,A)),o=A.top+e.scrollTop;return{x:r,y:o}}function $8(t){let{elements:e,rect:n,offsetParent:A,strategy:r}=t;const o=r==="fixed",i=ro(A),a=e?Kd(e.floating):!1;if(A===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Ao(1);const f=Ao(0),h=oo(A);if((h||!h&&!o)&&((va(A)!=="body"||Ac(i))&&(l=zd(A)),oo(A))){const g=vs(A);u=ka(A),f.x=g.x+A.clientLeft,f.y=g.y+A.clientTop}const p=i&&!h&&!o?ak(i,l,!0):Ao(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function K8(t){return Array.from(t.getClientRects())}function z8(t){const e=ro(t),n=zd(t),A=t.ownerDocument.body,r=ba(e.scrollWidth,e.clientWidth,A.scrollWidth,A.clientWidth),o=ba(e.scrollHeight,e.clientHeight,A.scrollHeight,A.clientHeight);let i=-n.scrollLeft+Rg(t);const a=-n.scrollTop;return Tr(A).direction==="rtl"&&(i+=ba(e.clientWidth,A.clientWidth)-r),{width:r,height:o,x:i,y:a}}function W8(t,e){const n=RA(t),A=ro(t),r=n.visualViewport;let o=A.clientWidth,i=A.clientHeight,a=0,l=0;if(r){o=r.width,i=r.height;const u=Ng();(!u||u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:i,x:a,y:l}}function G8(t,e){const n=vs(t,!0,e==="fixed"),A=n.top+t.clientTop,r=n.left+t.clientLeft,o=oo(t)?ka(t):Ao(1),i=t.clientWidth*o.x,a=t.clientHeight*o.y,l=r*o.x,u=A*o.y;return{width:i,height:a,x:l,y:u}}function lk(t,e,n){let A;if(e==="viewport")A=W8(t,n);else if(e==="document")A=z8(ro(t));else if(_r(e))A=G8(e,n);else{const r=sk(t);A={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Vd(A)}function ck(t,e){const n=Fi(t);return n===e||!_r(n)||Ea(n)?!1:Tr(n).position==="fixed"||ck(n,e)}function Y8(t,e){const n=e.get(t);if(n)return n;let A=rc(t,[],!1).filter(a=>_r(a)&&va(a)!=="body"),r=null;const o=Tr(t).position==="fixed";let i=o?Fi(t):t;for(;_r(i)&&!Ea(i);){const a=Tr(i),l=Lg(i);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Ac(i)&&!l&&ck(t,i))?A=A.filter(u=>u!==i):r=a,i=Fi(i)}return e.set(t,A),A}function j8(t){let{element:e,boundary:n,rootBoundary:A,strategy:r}=t;const o=[...n==="clippingAncestors"?Kd(e)?[]:Y8(e,this._c):[].concat(n),A],i=o[0],a=o.reduce((l,u)=>{const f=lk(e,u,r);return l.top=ba(f.top,l.top),l.right=Og(f.right,l.right),l.bottom=Og(f.bottom,l.bottom),l.left=ba(f.left,l.left),l},lk(e,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function q8(t){const{width:e,height:n}=ik(t);return{width:e,height:n}}function J8(t,e,n){const A=oo(e),r=ro(e),o=n==="fixed",i=vs(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=Ao(0);function u(){l.x=Rg(r)}if(A||!A&&!o)if((va(e)!=="body"||Ac(r))&&(a=zd(e)),A){const g=vs(e,!0,o,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&u();o&&!A&&r&&u();const f=r&&!A&&!o?ak(r,a):Ao(0),h=i.left+a.scrollLeft-l.x-f.x,p=i.top+a.scrollTop-l.y-f.y;return{x:h,y:p,width:i.width,height:i.height}}function Vg(t){return Tr(t).position==="static"}function uk(t,e){if(!oo(t)||Tr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ro(t)===n&&(n=n.ownerDocument.body),n}function dk(t,e){const n=RA(t);if(Kd(t))return n;if(!oo(t)){let r=Fi(t);for(;r&&!Ea(r);){if(_r(r)&&!Vg(r))return r;r=Fi(r)}return n}let A=uk(t,e);for(;A&&H8(A)&&Vg(A);)A=uk(A,e);return A&&Ea(A)&&Vg(A)&&!Lg(A)?n:A||P8(t)||n}const X8=function(t){return Wt(this,null,function*(){const e=this.getOffsetParent||dk,n=this.getDimensions,A=yield n(t.floating);return{reference:J8(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:A.width,height:A.height}}})};function Z8(t){return Tr(t).direction==="rtl"}const VA={convertOffsetParentRelativeRectToViewportRelativeRect:$8,getDocumentElement:ro,getClippingRect:j8,getOffsetParent:dk,getElementRects:X8,getClientRects:K8,getDimensions:q8,getScale:ka,isElement:_r,isRTL:Z8};function fk(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ez(t,e){let n=null,A;const r=ro(t);function o(){var a;clearTimeout(A),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=t.getBoundingClientRect(),{left:f,top:h,width:p,height:g}=u;if(a||e(),!p||!g)return;const B=Rd(h),y=Rd(r.clientWidth-(f+p)),C=Rd(r.clientHeight-(h+g)),w=Rd(f),F={rootMargin:-B+"px "+-y+"px "+-C+"px "+-w+"px",threshold:ba(0,Og(1,l))||1};let _=!0;function D(P){const T=P[0].intersectionRatio;if(T!==l){if(!_)return i();T?i(!1,T):A=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!fk(u,t.getBoundingClientRect())&&i(),_=!1}try{n=new IntersectionObserver(D,QA(Rn({},F),{root:r.ownerDocument}))}catch{n=new IntersectionObserver(D,F)}n.observe(t)}return i(!0),o}function $g(t,e,n,A){A===void 0&&(A={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=A,u=Pg(t),f=r||o?[...u?rc(u):[],...rc(e)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const h=u&&a?ez(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(w=>{let[F]=w;F&&F.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(e)})),n()}),u&&!l&&g.observe(u),g.observe(e));let B,y=l?vs(t):null;l&&C();function C(){const w=vs(t);y&&!fk(y,w)&&n(),y=w,B=requestAnimationFrame(C)}return n(),()=>{var w;f.forEach(F=>{r&&F.removeEventListener("scroll",n),o&&F.removeEventListener("resize",n)}),h?.(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(B)}}const tz=N8,{hasOwnProperty:Kg}=Object.prototype,oc=function(){};function hk(t){return typeof t=="function"?t:oc}function pk(t,e){return function(n,A,r){n.type===e&&t.call(this,n,A,r)}}function nz(t,e){const n=e.structure,A=[];for(const r in n){if(Kg.call(n,r)===!1)continue;let o=n[r];const i={name:r,type:!1,nullable:!1};Array.isArray(o)||(o=[o]);for(const a of o)a===null?i.nullable=!0:typeof a=="string"?i.type="node":Array.isArray(a)&&(i.type="list");i.type&&A.push(i)}return A.length?{context:e.walkContext,fields:A}:null}function Az(t){const e={};for(const n in t.node)if(Kg.call(t.node,n)){const A=t.node[n];if(!A.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=nz(n,A)}return e}function mk(t,e){const n=t.fields.slice(),A=t.context,r=typeof A=="string";return e&&n.reverse(),function(o,i,a,l){let u;r&&(u=i[A],i[A]=o);for(const f of n){const h=o[f.name];if(!f.nullable||h){if(f.type==="list"){if(e?h.reduceRight(l,!1):h.reduce(l,!1))return!0}else if(a(h))return!0}}r&&(i[A]=u)}}function gk({StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}}}function rz(t){const e=Az(t),n={},A={},r=Symbol("break-walk"),o=Symbol("skip-node");for(const u in e)Kg.call(e,u)&&e[u]!==null&&(n[u]=mk(e[u],!1),A[u]=mk(e[u],!0));const i=gk(n),a=gk(A),l=function(u,f){function h(w,F,_){const D=p.call(C,w,F,_);return D===r?!0:D===o?!1:!!(B.hasOwnProperty(w.type)&&B[w.type](w,C,h,y)||g.call(C,w,F,_)===r)}let p=oc,g=oc,B=n,y=(w,F,_,D)=>w||h(F,_,D);const C={break:r,skip:o,root:u,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof f=="function")p=f;else if(f&&(p=hk(f.enter),g=hk(f.leave),f.reverse&&(B=A),f.visit)){if(i.hasOwnProperty(f.visit))B=f.reverse?a[f.visit]:i[f.visit];else if(!e.hasOwnProperty(f.visit))throw new Error("Bad value `"+f.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");p=pk(p,f.visit),g=pk(g,f.visit)}if(p===oc&&g===oc)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(u)};return l.break=r,l.skip=o,l.find=function(u,f){let h=null;return l(u,function(p,g,B){if(f.call(this,p,g,B))return h=p,r}),h},l.findLast=function(u,f){let h=null;return l(u,{reverse:!0,enter(p,g,B){if(f.call(this,p,g,B))return h=p,r}}),h},l.findAll=function(u,f){const h=[];return l(u,function(p,g,B){f.call(this,p,g,B)&&h.push(p)}),h},l}const Qi=0,Oe=1,Bt=2,Qn=3,nn=4,Mo=5,oz=6,pA=7,Dr=8,Tt=9,ut=10,Bn=11,St=12,Sn=13,Wd=14,$A=15,mA=16,xA=17,Mr=18,Sa=19,ic=20,Gt=21,st=22,Or=23,Fa=24,gA=25,iz=0;function KA(t){return t>=48&&t<=57}function Qa(t){return KA(t)||t>=65&&t<=70||t>=97&&t<=102}function zg(t){return t>=65&&t<=90}function sz(t){return t>=97&&t<=122}function az(t){return zg(t)||sz(t)}function lz(t){return t>=128}function Gd(t){return az(t)||lz(t)||t===95}function Bk(t){return Gd(t)||KA(t)||t===45}function cz(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function Yd(t){return t===10||t===13||t===12}function Es(t){return Yd(t)||t===32||t===9}function io(t,e){return!(t!==92||Yd(e)||e===iz)}function Wg(t,e,n){return t===45?Gd(e)||e===45||io(e,n):Gd(t)?!0:t===92?io(t,e):!1}function Gg(t,e,n){return t===43||t===45?KA(e)?2:e===46&&KA(n)?3:0:t===46?KA(e)?2:0:KA(t)?1:0}function yk(t){return t===65279||t===65534?1:0}const Yg=new Array(128),uz=128,jd=130,wk=131,jg=132,Ck=133;for(let t=0;t<Yg.length;t++)Yg[t]=Es(t)&&jd||KA(t)&&wk||Gd(t)&&jg||cz(t)&&Ck||t||uz;function qg(t){return t<128?Yg[t]:jg}function xa(t,e){return e<t.length?t.charCodeAt(e):0}function Jg(t,e,n){return n===13&&xa(t,e+1)===10?2:1}function bk(t,e,n){let A=t.charCodeAt(e);return zg(A)&&(A=A|32),A===n}function qd(t,e,n,A){if(n-e!==A.length||e<0||n>t.length)return!1;for(let r=e;r<n;r++){const o=A.charCodeAt(r-e);let i=t.charCodeAt(r);if(zg(i)&&(i=i|32),i!==o)return!1}return!0}function dz(t,e){for(;e>=0&&Es(t.charCodeAt(e));e--);return e+1}function Jd(t,e){for(;e<t.length&&Es(t.charCodeAt(e));e++);return e}function Xg(t,e){for(;e<t.length&&KA(t.charCodeAt(e));e++);return e}function Ua(t,e){if(e+=2,Qa(xa(t,e-1))){for(const A=Math.min(t.length,e+5);e<A&&Qa(xa(t,e));e++);const n=xa(t,e);Es(n)&&(e+=Jg(t,e,n))}return e}function Xd(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!Bk(n)){if(io(n,xa(t,e+1))){e=Ua(t,e)-1;continue}break}}return e}function vk(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),KA(n)&&(e=Xg(t,e+1),n=t.charCodeAt(e)),n===46&&KA(t.charCodeAt(e+1))&&(e+=2,e=Xg(t,e)),bk(t,e,101)){let A=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(A=1,n=t.charCodeAt(e+2)),KA(n)&&(e=Xg(t,e+1+A+1))}return e}function Zg(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}io(n,xa(t,e+1))&&(e=Ua(t,e))}return e}function Ek(t){if(t.length===1&&!Qa(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}const kk=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],fz=16*1024;function Zd(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,fz)):t}const Sk=10,hz=12,Fk=13;function Qk(t){const e=t.source,n=e.length,A=e.length>0?yk(e.charCodeAt(0)):0,r=Zd(t.lines,n),o=Zd(t.columns,n);let i=t.startLine,a=t.startColumn;for(let l=A;l<n;l++){const u=e.charCodeAt(l);r[l]=i,o[l]=a++,(u===Sk||u===Fk||u===hz)&&(u===Fk&&l+1<n&&e.charCodeAt(l+1)===Sk&&(l++,r[l]=i,o[l]=a),i++,a=1)}r[n]=i,o[n]=a,t.lines=r,t.columns=o,t.computed=!0}class pz{constructor(e,n,A,r){this.setSource(e,n,A,r),this.lines=null,this.columns=null}setSource(e="",n=0,A=1,r=1){this.source=e,this.startOffset=n,this.startLine=A,this.startColumn=r,this.computed=!1}getLocation(e,n){return this.computed||Qk(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,A){return this.computed||Qk(this),{source:A,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const so=16777215,ao=24,ks=new Uint8Array(32);ks[Bt]=st,ks[Gt]=st,ks[Sa]=ic,ks[Or]=Fa;function xk(t){return ks[t]!==0}class mz{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=()=>{}){e=String(e||"");const A=e.length,r=Zd(this.offsetAndType,e.length+1),o=Zd(this.balance,e.length+1);let i=0,a=-1,l=0,u=e.length;this.offsetAndType=null,this.balance=null,o.fill(0),n(e,(f,h,p)=>{const g=i++;if(r[g]=f<<ao|p,a===-1&&(a=h),o[g]=u,f===l){const B=o[u];o[u]=g,u=B,l=ks[r[B]>>ao]}else xk(f)&&(u=g,l=ks[f])}),r[i]=Qi<<ao|A,o[i]=i;for(let f=0;f<i;f++){const h=o[f];if(h<=f){const p=o[h];p!==f&&(o[f]=p)}else h>i&&(o[f]=i)}this.source=e,this.firstCharOffset=a===-1?0:a,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>ao:Qi}lookupTypeNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>ao;if(A!==Sn&&A!==gA&&e--===0)return A}return Qi}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&so:this.source.length}lookupOffsetNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>ao;if(A!==Sn&&A!==gA&&e--===0)return n-this.tokenIndex}return Qi}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?qd(this.source,this.offsetAndType[e-1]&so,this.offsetAndType[e]&so,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&so:this.offsetAndType[this.tokenCount]&so:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===Tt&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===Tt&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&so,n=this.offsetAndType[n],this.tokenType=n>>ao,this.tokenEnd=n&so):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>ao,this.tokenEnd=e&so):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Qi,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Sn||this.tokenType===gA;)this.next()}skipUntilBalanced(e,n){let A=e,r=0,o=0;e:for(;A<this.tokenCount;A++){if(r=this.balance[A],r<e)break e;switch(o=A>0?this.offsetAndType[A-1]&so:this.firstCharOffset,n(this.source.charCodeAt(o))){case 1:break e;case 2:A++;break e;default:xk(this.offsetAndType[A]>>ao)&&(A=r)}}this.skip(A-this.tokenIndex)}forEachToken(e){for(let n=0,A=this.firstCharOffset;n<this.tokenCount;n++){const r=A,o=this.offsetAndType[n],i=o&so,a=o>>ao;A=i,e(a,r,i,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((n,A,r,o)=>{e[o]={idx:o,type:kk[n],chunk:this.source.substring(A,r),balance:this.balance[o]}}),e}}function Uk(t,e){function n(h){return h<a?t.charCodeAt(h):0}function A(){if(u=vk(t,u),Wg(n(u),n(u+1),n(u+2))){f=St,u=Xd(t,u);return}if(n(u)===37){f=Bn,u++;return}f=ut}function r(){const h=u;if(u=Xd(t,u),qd(t,h,u,"url")&&n(u)===40){if(u=Jd(t,u+1),n(u)===34||n(u)===39){f=Bt,u=h+4;return}i();return}if(n(u)===40){f=Bt,u++;return}f=Oe}function o(h){for(h||(h=n(u++)),f=Mo;u<t.length;u++){const p=t.charCodeAt(u);switch(qg(p)){case h:u++;return;case jd:if(Yd(p)){u+=Jg(t,u,p),f=oz;return}break;case 92:if(u===t.length-1)break;const g=n(u+1);Yd(g)?u+=Jg(t,u+1,g):io(p,g)&&(u=Ua(t,u)-1);break}}}function i(){for(f=pA,u=Jd(t,u);u<t.length;u++){const h=t.charCodeAt(u);switch(qg(h)){case 41:u++;return;case jd:if(u=Jd(t,u),n(u)===41||u>=t.length){u<t.length&&u++;return}u=Zg(t,u),f=Dr;return;case 34:case 39:case 40:case Ck:u=Zg(t,u),f=Dr;return;case 92:if(io(h,n(u+1))){u=Ua(t,u)-1;break}u=Zg(t,u),f=Dr;return}}}t=String(t||"");const a=t.length;let l=yk(n(0)),u=l,f;for(;u<a;){const h=t.charCodeAt(u);switch(qg(h)){case jd:f=Sn,u=Jd(t,u+1);break;case 34:o();break;case 35:Bk(n(u+1))||io(n(u+1),n(u+2))?(f=nn,u=Xd(t,u+1)):(f=Tt,u++);break;case 39:o();break;case 40:f=Gt,u++;break;case 41:f=st,u++;break;case 43:Gg(h,n(u+1),n(u+2))?A():(f=Tt,u++);break;case 44:f=Mr,u++;break;case 45:Gg(h,n(u+1),n(u+2))?A():n(u+1)===45&&n(u+2)===62?(f=$A,u=u+3):Wg(h,n(u+1),n(u+2))?r():(f=Tt,u++);break;case 46:Gg(h,n(u+1),n(u+2))?A():(f=Tt,u++);break;case 47:n(u+1)===42?(f=gA,u=t.indexOf("*/",u+2),u=u===-1?t.length:u+2):(f=Tt,u++);break;case 58:f=mA,u++;break;case 59:f=xA,u++;break;case 60:n(u+1)===33&&n(u+2)===45&&n(u+3)===45?(f=Wd,u=u+4):(f=Tt,u++);break;case 64:Wg(n(u+1),n(u+2),n(u+3))?(f=Qn,u=Xd(t,u+1)):(f=Tt,u++);break;case 91:f=Sa,u++;break;case 92:io(h,n(u+1))?r():(f=Tt,u++);break;case 93:f=ic,u++;break;case 123:f=Or,u++;break;case 125:f=Fa,u++;break;case wk:A();break;case jg:r();break;default:f=Tt,u++}e(f,l,l=u)}}const lo=43,zA=45,ef=110,Ss=!0,gz=!1;function tf(t,e){let n=this.tokenStart+t;const A=this.charCodeAt(n);for((A===lo||A===zA)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)KA(this.charCodeAt(n))||this.error("Integer is expected",n)}function Ia(t){return tf.call(this,0,t)}function xi(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case ef:n="N is expected";break;case zA:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function eB(){let t=0,e=0,n=this.tokenType;for(;n===Sn||n===gA;)n=this.lookupType(++t);if(n!==ut)if(this.isDelim(lo,t)||this.isDelim(zA,t)){e=this.isDelim(lo,t)?lo:zA;do n=this.lookupType(++t);while(n===Sn||n===gA);n!==ut&&(this.skip(t),Ia.call(this,Ss))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==lo&&n!==zA&&this.error("Number sign is expected")),Ia.call(this,e!==0),e===zA?"-"+this.consume(ut):this.consume(ut)}const Bz="AnPlusB",yz={a:[String,null],b:[String,null]};function Ik(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===ut)Ia.call(this,gz),n=this.consume(ut);else if(this.tokenType===Oe&&this.cmpChar(this.tokenStart,zA))switch(e="-1",xi.call(this,1,ef),this.tokenEnd-this.tokenStart){case 2:this.next(),n=eB.call(this);break;case 3:xi.call(this,2,zA),this.next(),this.skipSC(),Ia.call(this,Ss),n="-"+this.consume(ut);break;default:xi.call(this,2,zA),tf.call(this,3,Ss),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===Oe||this.isDelim(lo)&&this.lookupType(1)===Oe){let A=0;switch(e="1",this.isDelim(lo)&&(A=1,this.next()),xi.call(this,0,ef),this.tokenEnd-this.tokenStart){case 1:this.next(),n=eB.call(this);break;case 2:xi.call(this,1,zA),this.next(),this.skipSC(),Ia.call(this,Ss),n="-"+this.consume(ut);break;default:xi.call(this,1,zA),tf.call(this,2,Ss),this.next(),n=this.substrToCursor(t+A+1)}}else if(this.tokenType===St){const A=this.charCodeAt(this.tokenStart),r=A===lo||A===zA;let o=this.tokenStart+r;for(;o<this.tokenEnd&&KA(this.charCodeAt(o));o++);o===this.tokenStart+r&&this.error("Integer is expected",this.tokenStart+r),xi.call(this,o-this.tokenStart,ef),e=this.substring(t,o),o+1===this.tokenEnd?(this.next(),n=eB.call(this)):(xi.call(this,o-this.tokenStart+1,zA),o+2===this.tokenEnd?(this.next(),this.skipSC(),Ia.call(this,Ss),n="-"+this.consume(ut)):(tf.call(this,o-this.tokenStart+2,Ss),this.next(),n=this.substrToCursor(o+1)))}else this.error();return e!==null&&e.charCodeAt(0)===lo&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===lo&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function _k(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}const wz=Object.freeze(Object.defineProperty({__proto__:null,generate:_k,name:Bz,parse:Ik,structure:yz},Symbol.toStringTag,{value:"Module"}));function Tk(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Cz(){for(let t=1,e;e=this.lookupType(t);t++){if(e===Fa)return!0;if(e===Or||e===Qn)return!1}return!1}const bz="Atrule",vz="atrule",Ez={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Dk(t=!1){const e=this.tokenStart;let n,A,r=null,o=null;switch(this.eat(Qn),n=this.substrToCursor(e+1),A=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==Or&&this.tokenType!==xA&&(this.parseAtrulePrelude?r=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),Tk):r=Tk.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case xA:this.next();break;case Or:hasOwnProperty.call(this.atrule,A)&&typeof this.atrule[A].block=="function"?o=this.atrule[A].block.call(this,t):o=this.Block(Cz.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:r,block:o}}function Mk(t){this.token(Qn,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(xA,";")}const kz=Object.freeze(Object.defineProperty({__proto__:null,generate:Mk,name:bz,parse:Dk,structure:Ez,walkContext:vz},Symbol.toStringTag,{value:"Module"})),Sz="AtrulePrelude",Fz="atrulePrelude",Qz={children:[[]]};function Ok(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==Or&&this.tokenType!==xA&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function Lk(t){this.children(t)}const xz=Object.freeze(Object.defineProperty({__proto__:null,generate:Lk,name:Sz,parse:Ok,structure:Qz,walkContext:Fz},Symbol.toStringTag,{value:"Module"})),Uz=36,Nk=42,nf=61,Iz=94,tB=124,_z=126;function Tz(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(Nk)?(e=!0,this.next()):this.isDelim(tB)||this.eat(Oe),this.isDelim(tB)?this.charCodeAt(this.tokenStart+1)!==nf?(this.next(),this.eat(Oe)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function Dz(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==nf&&e!==_z&&e!==Iz&&e!==Uz&&e!==Nk&&e!==tB&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==nf&&(this.isDelim(nf)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const Mz="AttributeSelector",Oz={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Hk(){const t=this.tokenStart;let e,n=null,A=null,r=null;return this.eat(Sa),this.skipSC(),e=Tz.call(this),this.skipSC(),this.tokenType!==ic&&(this.tokenType!==Oe&&(n=Dz.call(this),this.skipSC(),A=this.tokenType===Mo?this.String():this.Identifier(),this.skipSC()),this.tokenType===Oe&&(r=this.consume(Oe),this.skipSC())),this.eat(ic),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:A,flags:r}}function Pk(t){this.token(Tt,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(Oe,t.flags),this.token(Tt,"]")}const Lz=Object.freeze(Object.defineProperty({__proto__:null,generate:Pk,name:Mz,parse:Hk,structure:Oz},Symbol.toStringTag,{value:"Module"})),Nz=38;function Rk(){return this.Raw(null,!0)}function Vk(){return this.parseWithFallback(this.Rule,Rk)}function $k(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Hz(){if(this.tokenType===xA)return $k.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,$k);return this.tokenType===xA&&this.next(),t}const Pz="Block",Rz="block",Vz={children:[["Atrule","Rule","Declaration"]]};function Kk(t){const e=t?Hz:Vk,n=this.tokenStart;let A=this.createList();this.eat(Or);e:for(;!this.eof;)switch(this.tokenType){case Fa:break e;case Sn:case gA:this.next();break;case Qn:A.push(this.parseWithFallback(this.Atrule.bind(this,t),Rk));break;default:t&&this.isDelim(Nz)?A.push(Vk.call(this)):A.push(e.call(this))}return this.eof||this.eat(Fa),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:A}}function zk(t){this.token(Or,"{"),this.children(t,e=>{e.type==="Declaration"&&this.token(xA,";")}),this.token(Fa,"}")}const $z=Object.freeze(Object.defineProperty({__proto__:null,generate:zk,name:Pz,parse:Kk,structure:Vz,walkContext:Rz},Symbol.toStringTag,{value:"Module"})),Kz="Brackets",zz={children:[[]]};function Wk(t,e){const n=this.tokenStart;let A=null;return this.eat(Sa),A=t.call(this,e),this.eof||this.eat(ic),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:A}}function Gk(t){this.token(Tt,"["),this.children(t),this.token(Tt,"]")}const Wz=Object.freeze(Object.defineProperty({__proto__:null,generate:Gk,name:Kz,parse:Wk,structure:zz},Symbol.toStringTag,{value:"Module"})),Gz="CDC",Yz=[];function Yk(){const t=this.tokenStart;return this.eat($A),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function jk(){this.token($A,"-->")}const jz=Object.freeze(Object.defineProperty({__proto__:null,generate:jk,name:Gz,parse:Yk,structure:Yz},Symbol.toStringTag,{value:"Module"})),qz="CDO",Jz=[];function qk(){const t=this.tokenStart;return this.eat(Wd),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function Jk(){this.token(Wd,"<!--")}const Xz=Object.freeze(Object.defineProperty({__proto__:null,generate:Jk,name:qz,parse:qk,structure:Jz},Symbol.toStringTag,{value:"Module"})),Zz=46,eW="ClassSelector",tW={name:String};function Xk(){return this.eatDelim(Zz),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(Oe)}}function Zk(t){this.token(Tt,"."),this.token(Oe,t.name)}const nW=Object.freeze(Object.defineProperty({__proto__:null,generate:Zk,name:eW,parse:Xk,structure:tW},Symbol.toStringTag,{value:"Module"})),AW=43,eS=47,rW=62,oW=126,iW="Combinator",sW={name:String};function tS(){const t=this.tokenStart;let e;switch(this.tokenType){case Sn:e=" ";break;case Tt:switch(this.charCodeAt(this.tokenStart)){case rW:case AW:case oW:this.next();break;case eS:this.next(),this.eatIdent("deep"),this.eatDelim(eS);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function nS(t){this.tokenize(t.name)}const aW=Object.freeze(Object.defineProperty({__proto__:null,generate:nS,name:iW,parse:tS,structure:sW},Symbol.toStringTag,{value:"Module"})),lW=42,cW=47,uW="Comment",dW={value:String};function AS(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(gA),e-t+2>=2&&this.charCodeAt(e-2)===lW&&this.charCodeAt(e-1)===cW&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function rS(t){this.token(gA,"/*"+t.value+"*/")}const fW=Object.freeze(Object.defineProperty({__proto__:null,generate:rS,name:uW,parse:AS,structure:dW},Symbol.toStringTag,{value:"Module"})),hW=new Set([mA,st,Qi]),pW="Condition",mW={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function oS(t){return this.lookupTypeNonSC(1)===Oe&&hW.has(this.lookupTypeNonSC(2))?this.Feature(t):this.FeatureRange(t)}const gW={media:oS,container:oS,supports(){return this.SupportsDeclaration()}};function iS(t="media"){const e=this.createList();e:for(;!this.eof;)switch(this.tokenType){case gA:case Sn:this.next();continue;case Oe:e.push(this.Identifier());break;case Gt:{let n=this.parseWithFallback(()=>gW[t].call(this,t),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(Gt);const A=this.Condition(t);return this.eat(st),A},()=>this.GeneralEnclosed(t))),e.push(n);break}case Bt:{let n=this.parseWithFallback(()=>this.FeatureFunction(t),()=>null);n||(n=this.GeneralEnclosed(t)),e.push(n);break}default:break e}return e.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(e),kind:t,children:e}}function sS(t){t.children.forEach(e=>{e.type==="Condition"?(this.token(Gt,"("),this.node(e),this.token(st,")")):this.node(e)})}const BW=Object.freeze(Object.defineProperty({__proto__:null,generate:sS,name:pW,parse:iS,structure:mW},Symbol.toStringTag,{value:"Module"})),aS=45;function yW(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===aS&&t.charCodeAt(e+1)===aS}const lS=33,wW=35,CW=36,bW=38,vW=42,EW=43,cS=47;function kW(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function SW(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function FW(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==xA&&this.isDelim(lS)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const QW="Declaration",xW="declaration",UW={important:[Boolean,String],property:String,value:["Value","Raw"]};function uS(){const t=this.tokenStart,e=this.tokenIndex,n=IW.call(this),A=yW(n),r=A?this.parseCustomProperty:this.parseValue,o=A?SW:kW;let i=!1,a;this.skipSC(),this.eat(mA);const l=this.tokenIndex;if(A||this.skipSC(),r?a=this.parseWithFallback(FW,o):a=o.call(this,this.tokenIndex),A&&a.type==="Value"&&a.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===Sn){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(lS)&&(i=_W.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==xA&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:i,property:n,value:a}}function dS(t){this.token(Oe,t.property),this.token(mA,":"),this.node(t.value),t.important&&(this.token(Tt,"!"),this.token(Oe,t.important===!0?"important":t.important))}function IW(){const t=this.tokenStart;if(this.tokenType===Tt)switch(this.charCodeAt(this.tokenStart)){case vW:case CW:case EW:case wW:case bW:this.next();break;case cS:this.next(),this.isDelim(cS)&&this.next();break}return this.tokenType===nn?this.eat(nn):this.eat(Oe),this.substrToCursor(t)}function _W(){this.eat(Tt),this.skipSC();const t=this.consume(Oe);return t==="important"?!0:t}const TW=Object.freeze(Object.defineProperty({__proto__:null,generate:dS,name:QW,parse:uS,structure:UW,walkContext:xW},Symbol.toStringTag,{value:"Module"})),DW=38;function nB(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const MW="DeclarationList",OW={children:[["Declaration","Atrule","Rule"]]};function fS(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case Sn:case gA:case xA:this.next();break;case Qn:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),nB));break;default:this.isDelim(DW)?t.push(this.parseWithFallback(this.Rule,nB)):t.push(this.parseWithFallback(this.Declaration,nB))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function hS(t){this.children(t,e=>{e.type==="Declaration"&&this.token(xA,";")})}const LW=Object.freeze(Object.defineProperty({__proto__:null,generate:hS,name:MW,parse:fS,structure:OW},Symbol.toStringTag,{value:"Module"})),NW="Dimension",HW={value:String,unit:String};function pS(){const t=this.tokenStart,e=this.consumeNumber(St);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function mS(t){this.token(St,t.value+t.unit)}const PW=Object.freeze(Object.defineProperty({__proto__:null,generate:mS,name:NW,parse:pS,structure:HW},Symbol.toStringTag,{value:"Module"})),RW=47,VW="Feature",$W={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function gS(t){const e=this.tokenStart;let n,A=null;if(this.eat(Gt),this.skipSC(),n=this.consume(Oe),this.skipSC(),this.tokenType!==st){switch(this.eat(mA),this.skipSC(),this.tokenType){case ut:this.lookupNonWSType(1)===Tt?A=this.Ratio():A=this.Number();break;case St:A=this.Dimension();break;case Oe:A=this.Identifier();break;case Bt:A=this.parseWithFallback(()=>{const r=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(RW)&&this.error(),r},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(st),{type:"Feature",loc:this.getLocation(e,this.tokenStart),kind:t,name:n,value:A}}function BS(t){this.token(Gt,"("),this.token(Oe,t.name),t.value!==null&&(this.token(mA,":"),this.node(t.value)),this.token(st,")")}const KW=Object.freeze(Object.defineProperty({__proto__:null,generate:BS,name:VW,parse:gS,structure:$W},Symbol.toStringTag,{value:"Module"})),zW="FeatureFunction",WW={kind:String,feature:String,value:["Declaration","Selector"]};function GW(t,e){const n=(this.features[t]||{})[e];return typeof n!="function"&&this.error(`Unknown feature ${e}()`),n}function yS(t="unknown"){const e=this.tokenStart,n=this.consumeFunctionName(),A=GW.call(this,t,n.toLowerCase());this.skipSC();const r=this.parseWithFallback(()=>{const o=this.tokenIndex,i=A.call(this);return this.eof===!1&&this.isBalanceEdge(o)===!1&&this.error(),i},()=>this.Raw(null,!1));return this.eof||this.eat(st),{type:"FeatureFunction",loc:this.getLocation(e,this.tokenStart),kind:t,feature:n,value:r}}function wS(t){this.token(Bt,t.feature+"("),this.node(t.value),this.token(st,")")}const YW=Object.freeze(Object.defineProperty({__proto__:null,generate:wS,name:zW,parse:yS,structure:WW},Symbol.toStringTag,{value:"Module"})),CS=47,jW=60,bS=61,qW=62,JW="FeatureRange",XW={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function AB(){switch(this.skipSC(),this.tokenType){case ut:return this.isDelim(CS,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case St:return this.Dimension();case Oe:return this.Identifier();case Bt:return this.parseWithFallback(()=>{const t=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(CS)&&this.error(),t},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function vS(t){if(this.skipSC(),this.isDelim(jW)||this.isDelim(qW)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(bS)?(this.next(),e+"="):e}if(this.isDelim(bS))return"=";this.error(`Expected ${t?'":", ':""}"<", ">", "=" or ")"`)}function ES(t="unknown"){const e=this.tokenStart;this.skipSC(),this.eat(Gt);const n=AB.call(this),A=vS.call(this,n.type==="Identifier"),r=AB.call(this);let o=null,i=null;return this.lookupNonWSType(0)!==st&&(o=vS.call(this),i=AB.call(this)),this.skipSC(),this.eat(st),{type:"FeatureRange",loc:this.getLocation(e,this.tokenStart),kind:t,left:n,leftComparison:A,middle:r,rightComparison:o,right:i}}function kS(t){this.token(Gt,"("),this.node(t.left),this.tokenize(t.leftComparison),this.node(t.middle),t.right&&(this.tokenize(t.rightComparison),this.node(t.right)),this.token(st,")")}const ZW=Object.freeze(Object.defineProperty({__proto__:null,generate:kS,name:JW,parse:ES,structure:XW},Symbol.toStringTag,{value:"Module"})),eG="Function",tG="function",nG={name:String,children:[[]]};function SS(t,e){const n=this.tokenStart,A=this.consumeFunctionName(),r=A.toLowerCase();let o;return o=e.hasOwnProperty(r)?e[r].call(this,e):t.call(this,e),this.eof||this.eat(st),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:A,children:o}}function FS(t){this.token(Bt,t.name+"("),this.children(t),this.token(st,")")}const AG=Object.freeze(Object.defineProperty({__proto__:null,generate:FS,name:eG,parse:SS,structure:nG,walkContext:tG},Symbol.toStringTag,{value:"Module"})),rG="GeneralEnclosed",oG={kind:String,function:[String,null],children:[[]]};function QS(t){const e=this.tokenStart;let n=null;this.tokenType===Bt?n=this.consumeFunctionName():this.eat(Gt);const A=this.parseWithFallback(()=>{const r=this.tokenIndex,o=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(r)===!1&&this.error(),o},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(st),{type:"GeneralEnclosed",loc:this.getLocation(e,this.tokenStart),kind:t,function:n,children:A}}function xS(t){t.function?this.token(Bt,t.function+"("):this.token(Gt,"("),this.children(t),this.token(st,")")}const iG=Object.freeze(Object.defineProperty({__proto__:null,generate:xS,name:rG,parse:QS,structure:oG},Symbol.toStringTag,{value:"Module"})),sG="XXX",aG="Hash",lG={value:String};function US(){const t=this.tokenStart;return this.eat(nn),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function IS(t){this.token(nn,"#"+t.value)}const cG=Object.freeze(Object.defineProperty({__proto__:null,generate:IS,name:aG,parse:US,structure:lG,xxx:sG},Symbol.toStringTag,{value:"Module"})),uG="Identifier",dG={name:String};function _S(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(Oe)}}function TS(t){this.token(Oe,t.name)}const fG=Object.freeze(Object.defineProperty({__proto__:null,generate:TS,name:uG,parse:_S,structure:dG},Symbol.toStringTag,{value:"Module"})),hG="IdSelector",pG={name:String};function DS(){const t=this.tokenStart;return this.eat(nn),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function MS(t){this.token(Tt,"#"+t.name)}const mG=Object.freeze(Object.defineProperty({__proto__:null,generate:MS,name:hG,parse:DS,structure:pG},Symbol.toStringTag,{value:"Module"})),gG=46,BG="Layer",yG={name:String};function OS(){let t=this.tokenStart,e=this.consume(Oe);for(;this.isDelim(gG);)this.eat(Tt),e+="."+this.consume(Oe);return{type:"Layer",loc:this.getLocation(t,this.tokenStart),name:e}}function LS(t){this.tokenize(t.name)}const wG=Object.freeze(Object.defineProperty({__proto__:null,generate:LS,name:BG,parse:OS,structure:yG},Symbol.toStringTag,{value:"Module"})),CG="LayerList",bG={children:[["Layer"]]};function NS(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.Layer()),this.lookupTypeNonSC(0)===Mr);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(t),children:t}}function HS(t){this.children(t,()=>this.token(Mr,","))}const vG=Object.freeze(Object.defineProperty({__proto__:null,generate:HS,name:CG,parse:NS,structure:bG},Symbol.toStringTag,{value:"Module"})),EG="MediaQuery",kG={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function PS(){const t=this.tokenStart;let e=null,n=null,A=null;if(this.skipSC(),this.tokenType===Oe&&this.lookupTypeNonSC(1)!==Gt){const r=this.consume(Oe),o=r.toLowerCase();switch(o==="not"||o==="only"?(this.skipSC(),e=o,n=this.consume(Oe)):n=r,this.lookupTypeNonSC(0)){case Oe:{this.skipSC(),this.eatIdent("and"),A=this.Condition("media");break}case Or:case xA:case Mr:case Qi:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case Oe:case Gt:case Bt:{A=this.Condition("media");break}case Or:case xA:case Qi:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(t,this.tokenStart),modifier:e,mediaType:n,condition:A}}function RS(t){t.mediaType?(t.modifier&&this.token(Oe,t.modifier),this.token(Oe,t.mediaType),t.condition&&(this.token(Oe,"and"),this.node(t.condition))):t.condition&&this.node(t.condition)}const SG=Object.freeze(Object.defineProperty({__proto__:null,generate:RS,name:EG,parse:PS,structure:kG},Symbol.toStringTag,{value:"Module"})),FG="MediaQueryList",QG={children:[["MediaQuery"]]};function VS(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===Mr);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function $S(t){this.children(t,()=>this.token(Mr,","))}const xG=Object.freeze(Object.defineProperty({__proto__:null,generate:$S,name:FG,parse:VS,structure:QG},Symbol.toStringTag,{value:"Module"})),UG=38,IG="NestingSelector",_G={};function KS(){const t=this.tokenStart;return this.eatDelim(UG),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function zS(){this.token(Tt,"&")}const TG=Object.freeze(Object.defineProperty({__proto__:null,generate:zS,name:IG,parse:KS,structure:_G},Symbol.toStringTag,{value:"Module"})),DG="Nth",MG={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function WS(){this.skipSC();const t=this.tokenStart;let e=t,n=null,A;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?A=this.Identifier():A=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:A,selector:n}}function GS(t){this.node(t.nth),t.selector!==null&&(this.token(Oe,"of"),this.node(t.selector))}const OG=Object.freeze(Object.defineProperty({__proto__:null,generate:GS,name:DG,parse:WS,structure:MG},Symbol.toStringTag,{value:"Module"})),LG="Number",NG={value:String};function YS(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(ut)}}function jS(t){this.token(ut,t.value)}const HG=Object.freeze(Object.defineProperty({__proto__:null,generate:jS,name:LG,parse:YS,structure:NG},Symbol.toStringTag,{value:"Module"})),PG="Operator",RG={value:String};function qS(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function JS(t){this.tokenize(t.value)}const VG=Object.freeze(Object.defineProperty({__proto__:null,generate:JS,name:PG,parse:qS,structure:RG},Symbol.toStringTag,{value:"Module"})),$G="Parentheses",KG={children:[[]]};function XS(t,e){const n=this.tokenStart;let A=null;return this.eat(Gt),A=t.call(this,e),this.eof||this.eat(st),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:A}}function ZS(t){this.token(Gt,"("),this.children(t),this.token(st,")")}const zG=Object.freeze(Object.defineProperty({__proto__:null,generate:ZS,name:$G,parse:XS,structure:KG},Symbol.toStringTag,{value:"Module"})),WG="Percentage",GG={value:String};function eF(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Bn)}}function tF(t){this.token(Bn,t.value+"%")}const YG=Object.freeze(Object.defineProperty({__proto__:null,generate:tF,name:WG,parse:eF,structure:GG},Symbol.toStringTag,{value:"Module"})),jG="PseudoClassSelector",qG="function",JG={name:String,children:[["Raw"],null]};function nF(){const t=this.tokenStart;let e=null,n,A;return this.eat(mA),this.tokenType===Bt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==st?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(st)):n=this.consume(Oe),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function AF(t){this.token(mA,":"),t.children===null?this.token(Oe,t.name):(this.token(Bt,t.name+"("),this.children(t),this.token(st,")"))}const XG=Object.freeze(Object.defineProperty({__proto__:null,generate:AF,name:jG,parse:nF,structure:JG,walkContext:qG},Symbol.toStringTag,{value:"Module"})),ZG="PseudoElementSelector",eY="function",tY={name:String,children:[["Raw"],null]};function rF(){const t=this.tokenStart;let e=null,n,A;return this.eat(mA),this.eat(mA),this.tokenType===Bt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==st?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(st)):n=this.consume(Oe),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function oF(t){this.token(mA,":"),this.token(mA,":"),t.children===null?this.token(Oe,t.name):(this.token(Bt,t.name+"("),this.children(t),this.token(st,")"))}const nY=Object.freeze(Object.defineProperty({__proto__:null,generate:oF,name:ZG,parse:rF,structure:tY,walkContext:eY},Symbol.toStringTag,{value:"Module"})),iF=47;function sF(){switch(this.skipSC(),this.tokenType){case ut:return this.Number();case Bt:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const AY="Ratio",rY={left:["Number","Function"],right:["Number","Function",null]};function aF(){const t=this.tokenStart,e=sF.call(this);let n=null;return this.skipSC(),this.isDelim(iF)&&(this.eatDelim(iF),n=sF.call(this)),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function lF(t){this.node(t.left),this.token(Tt,"/"),t.right?this.node(t.right):this.node(ut,1)}const oY=Object.freeze(Object.defineProperty({__proto__:null,generate:lF,name:AY,parse:aF,structure:rY},Symbol.toStringTag,{value:"Module"}));function iY(){return this.tokenIndex>0&&this.lookupType(-1)===Sn?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const sY="Raw",aY={value:String};function cF(t,e){const n=this.getTokenStart(this.tokenIndex);let A;return this.skipUntilBalanced(this.tokenIndex,t||this.consumeUntilBalanceEnd),e&&this.tokenStart>n?A=iY.call(this):A=this.tokenStart,{type:"Raw",loc:this.getLocation(n,A),value:this.substring(n,A)}}function uF(t){this.tokenize(t.value)}const lY=Object.freeze(Object.defineProperty({__proto__:null,generate:uF,name:sY,parse:cF,structure:aY},Symbol.toStringTag,{value:"Module"}));function dF(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function cY(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Or&&this.error(),t}const uY="Rule",dY="rule",fY={prelude:["SelectorList","Raw"],block:["Block"]};function fF(){const t=this.tokenIndex,e=this.tokenStart;let n,A;return this.parseRulePrelude?n=this.parseWithFallback(cY,dF):n=dF.call(this,t),A=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:A}}function hF(t){this.node(t.prelude),this.node(t.block)}const hY=Object.freeze(Object.defineProperty({__proto__:null,generate:hF,name:uY,parse:fF,structure:fY,walkContext:dY},Symbol.toStringTag,{value:"Module"})),pY="Scope",mY={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function pF(){let t=null,e=null;this.skipSC();const n=this.tokenStart;return this.tokenType===Gt&&(this.next(),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(st)),this.lookupNonWSType(0)===Oe&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(Gt),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(st)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:t,limit:e}}function mF(t){t.root&&(this.token(Gt,"("),this.node(t.root),this.token(st,")")),t.limit&&(this.token(Oe,"to"),this.token(Gt,"("),this.node(t.limit),this.token(st,")"))}const gY=Object.freeze(Object.defineProperty({__proto__:null,generate:mF,name:pY,parse:pF,structure:mY},Symbol.toStringTag,{value:"Module"})),BY="Selector",yY={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function gF(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function BF(t){this.children(t)}const wY=Object.freeze(Object.defineProperty({__proto__:null,generate:BF,name:BY,parse:gF,structure:yY},Symbol.toStringTag,{value:"Module"})),CY="SelectorList",bY="selector",vY={children:[["Selector","Raw"]]};function yF(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===Mr){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function wF(t){this.children(t,()=>this.token(Mr,","))}const EY=Object.freeze(Object.defineProperty({__proto__:null,generate:wF,name:CY,parse:yF,structure:vY,walkContext:bY},Symbol.toStringTag,{value:"Module"})),rB=92,CF=34,kY=39;function bF(t){const e=t.length,n=t.charCodeAt(0),A=n===CF||n===kY?1:0,r=A===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let o="";for(let i=A;i<=r;i++){let a=t.charCodeAt(i);if(a===rB){if(i===r){i!==e-1&&(o=t.substr(i+1));break}if(a=t.charCodeAt(++i),io(rB,a)){const l=i-1,u=Ua(t,l);i=u-1,o+=Ek(t.substring(l+1,u))}else a===13&&t.charCodeAt(i+1)===10&&i++}else o+=t[i]}return o}function SY(t,e){const A=CF;let r="",o=!1;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);if(a===0){r+="�";continue}if(a<=31||a===127){r+="\\"+a.toString(16),o=!0;continue}a===A||a===rB?(r+="\\"+t.charAt(i),o=!1):(o&&(Qa(a)||Es(a))&&(r+=" "),r+=t.charAt(i),o=!1)}return'"'+r+'"'}const FY="String",QY={value:String};function vF(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:bF(this.consume(Mo))}}function EF(t){this.token(Mo,SY(t.value))}const xY=Object.freeze(Object.defineProperty({__proto__:null,generate:EF,name:FY,parse:vF,structure:QY},Symbol.toStringTag,{value:"Module"})),UY=33;function kF(){return this.Raw(null,!1)}const IY="StyleSheet",_Y="stylesheet",TY={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function SF(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Sn:this.next();continue;case gA:if(this.charCodeAt(this.tokenStart+2)!==UY){this.next();continue}n=this.Comment();break;case Wd:n=this.CDO();break;case $A:n=this.CDC();break;case Qn:n=this.parseWithFallback(this.Atrule,kF);break;default:n=this.parseWithFallback(this.Rule,kF)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function FF(t){this.children(t)}const DY=Object.freeze(Object.defineProperty({__proto__:null,generate:FF,name:IY,parse:SF,structure:TY,walkContext:_Y},Symbol.toStringTag,{value:"Module"})),MY="SupportsDeclaration",OY={declaration:"Declaration"};function QF(){const t=this.tokenStart;this.eat(Gt),this.skipSC();const e=this.Declaration();return this.eof||this.eat(st),{type:"SupportsDeclaration",loc:this.getLocation(t,this.tokenStart),declaration:e}}function xF(t){this.token(Gt,"("),this.node(t.declaration),this.token(st,")")}const LY=Object.freeze(Object.defineProperty({__proto__:null,generate:xF,name:MY,parse:QF,structure:OY},Symbol.toStringTag,{value:"Module"})),NY=42,UF=124;function oB(){this.tokenType!==Oe&&this.isDelim(NY)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const HY="TypeSelector",PY={name:String};function IF(){const t=this.tokenStart;return this.isDelim(UF)?(this.next(),oB.call(this)):(oB.call(this),this.isDelim(UF)&&(this.next(),oB.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function _F(t){this.tokenize(t.name)}const RY=Object.freeze(Object.defineProperty({__proto__:null,generate:_F,name:HY,parse:IF,structure:PY},Symbol.toStringTag,{value:"Module"})),TF=43,DF=45,iB=63;function sc(t,e){let n=0;for(let A=this.tokenStart+t;A<this.tokenEnd;A++){const r=this.charCodeAt(A);if(r===DF&&e&&n!==0)return sc.call(this,t+n+1,!1),-1;Qa(r)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",A),++n>6&&this.error("Too many hex digits",A)}return this.next(),n}function Af(t){let e=0;for(;this.isDelim(iB);)++e>t&&this.error("Too many question marks"),this.next()}function VY(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===TF?"Plus sign":"Hyphen minus")+" is expected")}function $Y(){let t=0;switch(this.tokenType){case ut:if(t=sc.call(this,1,!0),this.isDelim(iB)){Af.call(this,6-t);break}if(this.tokenType===St||this.tokenType===ut){VY.call(this,DF),sc.call(this,1,!1);break}break;case St:t=sc.call(this,1,!0),t>0&&Af.call(this,6-t);break;default:if(this.eatDelim(TF),this.tokenType===Oe){t=sc.call(this,0,!0),t>0&&Af.call(this,6-t);break}if(this.isDelim(iB)){this.next(),Af.call(this,5);break}this.error("Hex digit or question mark is expected")}}const KY="UnicodeRange",zY={value:String};function MF(){const t=this.tokenStart;return this.eatIdent("u"),$Y.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function OF(t){this.tokenize(t.value)}const WY=Object.freeze(Object.defineProperty({__proto__:null,generate:OF,name:KY,parse:MF,structure:zY},Symbol.toStringTag,{value:"Module"})),GY=32,sB=92,YY=34,jY=39,qY=40,LF=41;function JY(t){const e=t.length;let n=4,A=t.charCodeAt(e-1)===LF?e-2:e-1,r="";for(;n<A&&Es(t.charCodeAt(n));)n++;for(;n<A&&Es(t.charCodeAt(A));)A--;for(let o=n;o<=A;o++){let i=t.charCodeAt(o);if(i===sB){if(o===A){o!==e-1&&(r=t.substr(o+1));break}if(i=t.charCodeAt(++o),io(sB,i)){const a=o-1,l=Ua(t,a);o=l-1,r+=Ek(t.substring(a+1,l))}else i===13&&t.charCodeAt(o+1)===10&&o++}else r+=t[o]}return r}function XY(t){let e="",n=!1;for(let A=0;A<t.length;A++){const r=t.charCodeAt(A);if(r===0){e+="�";continue}if(r<=31||r===127){e+="\\"+r.toString(16),n=!0;continue}r===GY||r===sB||r===YY||r===jY||r===qY||r===LF?(e+="\\"+t.charAt(A),n=!1):(n&&Qa(r)&&(e+=" "),e+=t.charAt(A),n=!1)}return"url("+e+")"}const ZY="Url",e7={value:String};function NF(){const t=this.tokenStart;let e;switch(this.tokenType){case pA:e=JY(this.consume(pA));break;case Bt:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Bt),this.skipSC(),e=bF(this.consume(Mo)),this.skipSC(),this.eof||this.eat(st);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function HF(t){this.token(pA,XY(t.value))}const t7=Object.freeze(Object.defineProperty({__proto__:null,generate:HF,name:ZY,parse:NF,structure:e7},Symbol.toStringTag,{value:"Module"})),n7="Value",A7={children:[[]]};function PF(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function RF(t){this.children(t)}const r7=Object.freeze(Object.defineProperty({__proto__:null,generate:RF,name:n7,parse:PF,structure:A7},Symbol.toStringTag,{value:"Module"})),o7=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),i7="WhiteSpace",s7={value:String};function VF(){return this.eat(Sn),o7}function $F(t){this.token(Sn,t.value)}const a7=Object.freeze(Object.defineProperty({__proto__:null,generate:$F,name:i7,parse:VF,structure:s7},Symbol.toStringTag,{value:"Module"})),l7=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:wz,Atrule:kz,AtrulePrelude:xz,AttributeSelector:Lz,Block:$z,Brackets:Wz,CDC:jz,CDO:Xz,ClassSelector:nW,Combinator:aW,Comment:fW,Condition:BW,Declaration:TW,DeclarationList:LW,Dimension:PW,Feature:KW,FeatureFunction:YW,FeatureRange:ZW,Function:AG,GeneralEnclosed:iG,Hash:cG,IdSelector:mG,Identifier:fG,Layer:wG,LayerList:vG,MediaQuery:SG,MediaQueryList:xG,NestingSelector:TG,Nth:OG,Number:HG,Operator:VG,Parentheses:zG,Percentage:YG,PseudoClassSelector:XG,PseudoElementSelector:nY,Ratio:oY,Raw:lY,Rule:hY,Scope:gY,Selector:wY,SelectorList:EY,String:xY,StyleSheet:DY,SupportsDeclaration:LY,TypeSelector:RY,UnicodeRange:WY,Url:t7,Value:r7,WhiteSpace:a7},Symbol.toStringTag,{value:"Module"})),c7={node:l7},Ui=rz(c7),aB=["left","right","top","bottom","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","inset-block","inset-inline","inset"];function ac(t){return aB.includes(t)}const lB=["margin-block-start","margin-block-end","margin-block","margin-inline-start","margin-inline-end","margin-inline","margin-bottom","margin-left","margin-right","margin-top","margin"];function u7(t){return lB.includes(t)}const cB=["width","height","min-width","min-height","max-width","max-height","block-size","inline-size","min-block-size","min-inline-size","max-block-size","max-inline-size"];function KF(t){return cB.includes(t)}const zF=["justify-self","align-self","place-self"];function d7(t){return zF.includes(t)}const WF=[...aB,...lB,...cB,...zF,"position-anchor","position-area"],f7=[...cB,...aB,...lB];function GF(t){return f7.includes(t)}const h7=["top","left","right","bottom","start","end","self-start","self-end","center","inside","outside"];function YF(t){return h7.includes(t)}const p7=["width","height","block","inline","self-block","self-inline"];function m7(t){return p7.includes(t)}const jF=new Set(["Atrule","Selector","Declaration"]);function g7(t){const e=new SourceMapGenerator,n={line:1,column:0},A={line:0,column:0},r={line:1,column:0},o={generated:r};let i=1,a=0,l=!1;const u=t.node;t.node=function(p){if(p.loc&&p.loc.start&&jF.has(p.type)){const g=p.loc.start.line,B=p.loc.start.column-1;(A.line!==g||A.column!==B)&&(A.line=g,A.column=B,n.line=i,n.column=a,l&&(l=!1,(n.line!==r.line||n.column!==r.column)&&e.addMapping(o)),l=!0,e.addMapping({source:p.loc.source,original:A,generated:n}))}u.call(this,p),l&&jF.has(p.type)&&(r.line=i,r.column=a)};const f=t.emit;t.emit=function(p,g,B){for(let y=0;y<p.length;y++)p.charCodeAt(y)===10?(i++,a=0):a++;f(p,g,B)};const h=t.result;return t.result=function(){return l&&e.addMapping(o),{css:h(),map:e}},t}const B7=43,y7=45,uB=(t,e)=>{if(t===Tt&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},qF=[[Oe,Oe],[Oe,Bt],[Oe,pA],[Oe,Dr],[Oe,"-"],[Oe,ut],[Oe,Bn],[Oe,St],[Oe,$A],[Oe,Gt],[Qn,Oe],[Qn,Bt],[Qn,pA],[Qn,Dr],[Qn,"-"],[Qn,ut],[Qn,Bn],[Qn,St],[Qn,$A],[nn,Oe],[nn,Bt],[nn,pA],[nn,Dr],[nn,"-"],[nn,ut],[nn,Bn],[nn,St],[nn,$A],[St,Oe],[St,Bt],[St,pA],[St,Dr],[St,"-"],[St,ut],[St,Bn],[St,St],[St,$A],["#",Oe],["#",Bt],["#",pA],["#",Dr],["#","-"],["#",ut],["#",Bn],["#",St],["#",$A],["-",Oe],["-",Bt],["-",pA],["-",Dr],["-","-"],["-",ut],["-",Bn],["-",St],["-",$A],[ut,Oe],[ut,Bt],[ut,pA],[ut,Dr],[ut,ut],[ut,Bn],[ut,St],[ut,"%"],[ut,$A],["@",Oe],["@",Bt],["@",pA],["@",Dr],["@","-"],["@",$A],[".",ut],[".",Bn],[".",St],["+",ut],["+",Bn],["+",St],["/","*"]],w7=qF.concat([[Oe,nn],[St,nn],[nn,nn],[Qn,Gt],[Qn,Mo],[Qn,mA],[Bn,Bn],[Bn,St],[Bn,Bt],[Bn,"-"],[st,Oe],[st,Bt],[st,Bn],[st,St],[st,nn],[st,"-"]]);function JF(t){const e=new Set(t.map(([n,A])=>uB(n)<<16|uB(A)));return function(n,A,r){const o=uB(A,r),i=r.charCodeAt(0);return(i===y7&&A!==Oe&&A!==Bt&&A!==$A||i===B7?e.has(n<<16|i<<8):e.has(n<<16|o))&&this.emit(" ",Sn,!0),o}}const C7=JF(qF),XF=JF(w7),ZF=Object.freeze(Object.defineProperty({__proto__:null,safe:XF,spec:C7},Symbol.toStringTag,{value:"Module"})),b7=92;function v7(t,e){if(typeof e=="function"){let n=null;t.children.forEach(A=>{n!==null&&e.call(this,n),this.node(A),n=A});return}t.children.forEach(this.node,this)}function E7(t){Uk(t,(e,n,A)=>{this.token(e,t.slice(n,A))})}function k7(t){const e=new Map;for(let[n,A]of Object.entries(t.node))typeof(A.generate||A)=="function"&&e.set(n,A.generate||A);return function(n,A){let r="",o=0,i={node(l){if(e.has(l.type))e.get(l.type).call(a,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:XF,token(l,u){o=this.tokenBefore(o,l,u),this.emit(u,l,!1),l===Tt&&u.charCodeAt(0)===b7&&this.emit(`
144
+ `,Sn,!0)},emit(l){r+=l},result(){return r}};A&&(typeof A.decorator=="function"&&(i=A.decorator(i)),A.sourceMap&&(i=g7(i)),A.mode in ZF&&(i.tokenBefore=ZF[A.mode]));const a={node:l=>i.node(l),children:v7,token:(l,u)=>i.token(l,u),tokenize:E7};return i.node(n),i.result()}}const S7=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:_k,Atrule:Mk,AtrulePrelude:Lk,AttributeSelector:Pk,Block:zk,Brackets:Gk,CDC:jk,CDO:Jk,ClassSelector:Zk,Combinator:nS,Comment:rS,Condition:sS,Declaration:dS,DeclarationList:hS,Dimension:mS,Feature:BS,FeatureFunction:wS,FeatureRange:kS,Function:FS,GeneralEnclosed:xS,Hash:IS,IdSelector:MS,Identifier:TS,Layer:LS,LayerList:HS,MediaQuery:RS,MediaQueryList:$S,NestingSelector:zS,Nth:GS,Number:jS,Operator:JS,Parentheses:ZS,Percentage:tF,PseudoClassSelector:AF,PseudoElementSelector:oF,Ratio:lF,Raw:uF,Rule:hF,Scope:mF,Selector:BF,SelectorList:wF,String:EF,StyleSheet:FF,SupportsDeclaration:xF,TypeSelector:_F,UnicodeRange:OF,Url:HF,Value:RF,WhiteSpace:$F},Symbol.toStringTag,{value:"Module"})),F7={node:S7},Q7=k7(F7);let _a=null;class BA{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return BA.createItem(e)}allocateCursor(e,n){let A;return _a!==null?(A=_a,_a=_a.cursor,A.prev=e,A.next=n,A.cursor=this.cursor):A={prev:e,next:n,cursor:this.cursor},this.cursor=A,A}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=_a,_a=e}updateCursors(e,n,A,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=n),o.next===A&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let A of e){const r=BA.createItem(A);n!==null?n.next=r:this.head=r,r.prev=n,n=r}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const A=this.allocateCursor(null,this.head);for(;A.next!==null;){const r=A.next;A.next=r.next,e.call(n,r.data,r,this)}this.releaseCursor()}forEachRight(e,n=this){const A=this.allocateCursor(this.tail,null);for(;A.prev!==null;){const r=A.prev;A.prev=r.prev,e.call(n,r.data,r,this)}this.releaseCursor()}reduce(e,n,A=this){let r=this.allocateCursor(null,this.head),o=n,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(A,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,n,A=this){let r=this.allocateCursor(this.tail,null),o=n,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(A,o,i.data,i,this);return this.releaseCursor(),o}some(e,n=this){for(let A=this.head;A!==null;A=A.next)if(e.call(n,A.data,A,this))return!0;return!1}map(e,n=this){const A=new BA;for(let r=this.head;r!==null;r=r.next)A.appendData(e.call(n,r.data,r,this));return A}filter(e,n=this){const A=new BA;for(let r=this.head;r!==null;r=r.next)e.call(n,r.data,r,this)&&A.appendData(r.data);return A}nextUntil(e,n,A=this){if(e===null)return;const r=this.allocateCursor(null,e);for(;r.next!==null;){const o=r.next;if(r.next=o.next,n.call(A,o.data,o,this))break}this.releaseCursor()}prevUntil(e,n,A=this){if(e===null)return;const r=this.allocateCursor(e,null);for(;r.prev!==null;){const o=r.prev;if(r.prev=o.prev,n.call(A,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new BA;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(BA.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(BA.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(BA.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(BA.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(BA.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}function x7(t,e){const n=Object.create(SyntaxError.prototype),A=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(A.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
145
145
  `)}})}const dB=100,eQ=60,tQ=" ";function nQ({source:t,line:e,column:n,baseLine:A,baseColumn:r},o){function i(B,y){return u.slice(B,y).map((C,w)=>String(B+w+1).padStart(p)+" |"+C).join(`
146
146
  `)}const a=`
147
147
  `.repeat(Math.max(A-1,0)),l=" ".repeat(Math.max(r-1,0)),u=(a+l+t).split(/\r\n?|\n|\f/),f=Math.max(1,e-o)-1,h=Math.min(e+o,u.length+1),p=Math.max(4,String(h).length)+1;let g=0;n+=(tQ.length-1)*(u[e-1].substr(0,n-1).match(/\t/g)||[]).length,n>dB&&(g=n-eQ+3,n=eQ-2);for(let B=f;B<=h;B++)B>=0&&B<u.length&&(u[B]=u[B].replace(/\t/g,tQ),u[B]=(g>0&&u[B].length>g?"…":"")+u[B].substr(g,dB-2)+(u[B].length>g+dB-1?"…":""));return[i(f,e),new Array(n+p+2).join("-")+"^",i(e,h)].filter(Boolean).join(`
148
- `).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function AQ(t,e,n,A,r,o=1,i=1){return Object.assign(S7("SyntaxError",t),{source:e,offset:n,line:A,column:r,sourceFragment(a){return nQ({source:e,line:A,column:r,baseLine:o,baseColumn:i},isNaN(a)?0:a)},get formattedMessage(){return`Parse error: ${t}
149
- `+nQ({source:e,line:A,column:r,baseLine:o,baseColumn:i},2)}})}function F7(t){const e=this.createList();let n=!1;const A={recognizer:t};for(;!this.eof;){switch(this.tokenType){case gA:this.next();continue;case Sn:n=!0,this.next();continue}let r=t.getNode.call(this,A);if(r===void 0)break;n&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,r,e,A),n=!1),e.push(r)}return n&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,e,A),e}const rQ=()=>{},Q7=33,x7=35,fB=59,oQ=123,iQ=0;function U7(t){return function(){return this[t]()}}function hB(t){const e=Object.create(null);for(const n of Object.keys(t)){const A=t[n],r=A.parse||A;r&&(e[n]=r)}return e}function I7(t){const e={context:Object.create(null),features:Object.assign(Object.create(null),t.features),scope:Object.assign(Object.create(null),t.scope),atrule:hB(t.atrule),pseudo:hB(t.pseudo),node:hB(t.node)};for(const[n,A]of Object.entries(t.parseContext))switch(typeof A){case"function":e.context[n]=A;break;case"string":e.context[n]=U7(A);break}return Rn(Rn({config:e},e),e.node)}function _7(t){let e="",n="<unknown>",A=!1,r=rQ,o=!1;const i=new dz,a=Object.assign(new fz,I7(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:F7,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(l){return l===oQ?1:0},consumeUntilLeftCurlyBracketOrSemicolon(l){return l===oQ||l===fB?1:0},consumeUntilExclamationMarkOrSemicolon(l){return l===Q7||l===fB?1:0},consumeUntilSemicolonIncluded(l){return l===fB?2:0},createList(){return new BA},createSingleNodeList(l){return new BA().appendData(l)},getFirstListNode(l){return l&&l.first},getLastListNode(l){return l&&l.last},parseWithFallback(l,u){const f=this.tokenIndex;try{return l.call(this)}catch(h){if(o)throw h;this.skip(f-this.tokenIndex);const p=u.call(this);return o=!0,r(h,p),o=!1,p}},lookupNonWSType(l){let u;do if(u=this.lookupType(l++),u!==Sn&&u!==gA)return u;while(u!==iQ);return iQ},charCodeAt(l){return l>=0&&l<e.length?e.charCodeAt(l):0},substring(l,u){return e.substring(l,u)},substrToCursor(l){return this.source.substring(l,this.tokenStart)},cmpChar(l,u){return bk(e,l,u)},cmpStr(l,u,f){return qd(e,l,u,f)},consume(l){const u=this.tokenStart;return this.eat(l),this.substrToCursor(u)},consumeFunctionName(){const l=e.substring(this.tokenStart,this.tokenEnd-1);return this.eat(Bt),l},consumeNumber(l){const u=e.substring(this.tokenStart,vk(e,this.tokenStart));return this.eat(l),u},eat(l){if(this.tokenType!==l){const u=kk[l].slice(0,-6).replace(/-/g," ").replace(/^./,p=>p.toUpperCase());let f=`${/[[\](){}]/.test(u)?`"${u}"`:u} is expected`,h=this.tokenStart;switch(l){case Oe:this.tokenType===Bt||this.tokenType===pA?(h=this.tokenEnd-1,f="Identifier is expected but function found"):f="Identifier is expected";break;case nn:this.isDelim(x7)&&(this.next(),h++,f="Name is expected");break;case Bn:this.tokenType===ut&&(h=this.tokenEnd,f="Percent sign is expected");break}this.error(f,h)}this.next()},eatIdent(l){(this.tokenType!==Oe||this.lookupValue(0,l)===!1)&&this.error(`Identifier "${l}" is expected`),this.next()},eatDelim(l){this.isDelim(l)||this.error(`Delim "${String.fromCharCode(l)}" is expected`),this.next()},getLocation(l,u){return A?i.getLocationRange(l,u,n):null},getLocationFromList(l){if(A){const u=this.getFirstListNode(l),f=this.getLastListNode(l);return i.getLocationRange(u!==null?u.loc.start.offset-i.startOffset:this.tokenStart,f!==null?f.loc.end.offset-i.startOffset:this.tokenStart,n)}return null},error(l,u){const f=typeof u<"u"&&u<e.length?i.getLocation(u):this.eof?i.getLocation(lz(e,e.length-1)):i.getLocation(this.tokenStart);throw new AQ(l||"Unexpected input",e,f.offset,f.line,f.column,i.startLine,i.startColumn)}});return Object.assign(function(l,u){e=l,u=u||{},a.setSource(e,Uk),i.setSource(e,u.offset,u.line,u.column),n=u.filename||"<unknown>",A=!!u.positions,r=typeof u.onParseError=="function"?u.onParseError:rQ,o=!1,a.parseAtrulePrelude="parseAtrulePrelude"in u?!!u.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in u?!!u.parseRulePrelude:!0,a.parseValue="parseValue"in u?!!u.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in u?!!u.parseCustomProperty:!1;const{context:f="default",onComment:h}=u;if(!(f in a.context))throw new Error("Unknown context `"+f+"`");typeof h=="function"&&a.forEachToken((g,B,y)=>{if(g===gA){const C=a.getLocation(B,y),w=qd(e,y-2,y,"*/")?e.slice(B+2,y-2):e.slice(B+2,y);h(w,C)}});const p=a.context[f].call(a,u);return a.eof||a.error(),p},{SyntaxError:AQ,config:a.config})}const T7=35,D7=42,sQ=43,M7=45,O7=47,L7=117;function aQ(t){switch(this.tokenType){case nn:return this.Hash();case Mr:return this.Operator();case Gt:return this.Parentheses(this.readSequence,t.recognizer);case Sa:return this.Brackets(this.readSequence,t.recognizer);case Mo:return this.String();case St:return this.Dimension();case Bn:return this.Percentage();case ut:return this.Number();case Bt:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,t.recognizer);case pA:return this.Url();case Oe:return this.cmpChar(this.tokenStart,L7)&&this.cmpChar(this.tokenStart+1,sQ)?this.UnicodeRange():this.Identifier();case Tt:{const e=this.charCodeAt(this.tokenStart);if(e===O7||e===D7||e===sQ||e===M7)return this.Operator();e===T7&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const N7={getNode:aQ},H7=35,P7=38,R7=42,V7=43,$7=47,lQ=46,K7=62,z7=124,W7=126;function G7(t,e){e.last!==null&&e.last.type!=="Combinator"&&t!==null&&t.type!=="Combinator"&&e.push({type:"Combinator",loc:null,name:" "})}function Y7(){switch(this.tokenType){case Sa:return this.AttributeSelector();case nn:return this.IdSelector();case mA:return this.lookupType(1)===mA?this.PseudoElementSelector():this.PseudoClassSelector();case Oe:return this.TypeSelector();case ut:case Bn:return this.Percentage();case St:this.charCodeAt(this.tokenStart)===lQ&&this.error("Identifier is expected",this.tokenStart+1);break;case Tt:{switch(this.charCodeAt(this.tokenStart)){case V7:case K7:case W7:case $7:return this.Combinator();case lQ:return this.ClassSelector();case R7:case z7:return this.TypeSelector();case H7:return this.IdSelector();case P7:return this.NestingSelector()}break}}}const j7={onWhiteSpace:G7,getNode:Y7};function q7(){return this.createSingleNodeList(this.Raw(null,!1))}function J7(){const t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),this.tokenType===Mr){t.push(this.Operator());const e=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let A=e-this.tokenIndex;A<=0;A++)if(this.lookupType(A)===Sn){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(n)}return t}function cQ(t){return t!==null&&t.type==="Operator"&&(t.value[t.value.length-1]==="-"||t.value[t.value.length-1]==="+")}const X7={getNode:aQ,onWhiteSpace(t,e){cQ(t)&&(t.value=" "+t.value),cQ(e.last)&&(e.last.value+=" ")},expression:q7,var:J7},Z7=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:N7,Selector:j7,Value:X7},Symbol.toStringTag,{value:"Module"})),ej=new Set(["none","and","not","or"]),tj={parse:{prelude(){const t=this.createList();if(this.tokenType===Oe){const e=this.substring(this.tokenStart,this.tokenEnd);ej.has(e.toLowerCase())||t.push(this.Identifier())}return t.push(this.Condition("container")),t},block(t=!1){return this.Block(t)}}},nj={parse:{prelude:null,block(){return this.Block(!0)}}};function pB(t,e){return this.parseWithFallback(()=>{try{return t.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==st&&this.error()}},e||(()=>this.Raw(null,!0)))}const uQ={layer(){this.skipSC();const t=this.createList(),e=pB.call(this,this.Layer);return(e.type!=="Raw"||e.value!=="")&&t.push(e),t},supports(){this.skipSC();const t=this.createList(),e=pB.call(this,this.Declaration,()=>pB.call(this,()=>this.Condition("supports")));return(e.type!=="Raw"||e.value!=="")&&t.push(e),t}},Aj={parse:{prelude(){const t=this.createList();switch(this.tokenType){case Mo:t.push(this.String());break;case pA:case Bt:t.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===Oe&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?t.push(this.Identifier()):this.tokenType===Bt&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&t.push(this.Function(null,uQ)),this.skipSC(),this.tokenType===Bt&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&t.push(this.Function(null,uQ)),(this.lookupNonWSType(0)===Oe||this.lookupNonWSType(0)===Gt)&&t.push(this.MediaQueryList()),t},block:null}},rj={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},oj={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(t=!1){return this.Block(t)}}},ij={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},sj={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},aj={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(t=!1){return this.Block(t)}}},lj={parse:{prelude:null,block(t=!1){return this.Block(t)}}},cj={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(t=!1){return this.Block(t)}}},uj={container:tj,"font-face":nj,import:Aj,layer:rj,media:oj,nest:ij,page:sj,scope:aj,"starting-style":lj,supports:cj};function dj(){const t=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Oe:t.push(this.Identifier());break;case Mo:t.push(this.String());break;case Mr:t.push(this.Operator());break;case st:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return t}const Fs={parse(){return this.createSingleNodeList(this.SelectorList())}},mB={parse(){return this.createSingleNodeList(this.Selector())}},fj={parse(){return this.createSingleNodeList(this.Identifier())}},hj={parse:dj},rf={parse(){return this.createSingleNodeList(this.Nth())}},pj={dir:fj,has:Fs,lang:hj,matches:Fs,is:Fs,"-moz-any":Fs,"-webkit-any":Fs,where:Fs,not:Fs,"nth-child":rf,"nth-last-child":rf,"nth-last-of-type":rf,"nth-of-type":rf,slotted:mB,host:mB,"host-context":mB},mj=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Ik,Atrule:Dk,AtrulePrelude:Ok,AttributeSelector:Hk,Block:Kk,Brackets:Wk,CDC:Yk,CDO:qk,ClassSelector:Xk,Combinator:tS,Comment:AS,Condition:iS,Declaration:uS,DeclarationList:fS,Dimension:pS,Feature:gS,FeatureFunction:yS,FeatureRange:ES,Function:SS,GeneralEnclosed:QS,Hash:US,IdSelector:DS,Identifier:_S,Layer:OS,LayerList:NS,MediaQuery:PS,MediaQueryList:VS,NestingSelector:KS,Nth:WS,Number:YS,Operator:qS,Parentheses:XS,Percentage:eF,PseudoClassSelector:nF,PseudoElementSelector:rF,Ratio:aF,Raw:cF,Rule:fF,Scope:pF,Selector:gF,SelectorList:yF,String:vF,StyleSheet:SF,SupportsDeclaration:QF,TypeSelector:IF,UnicodeRange:MF,Url:NF,Value:PF,WhiteSpace:VF},Symbol.toStringTag,{value:"Module"})),gj={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(t){return this.Condition(t.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:Z7,atrule:uj,pseudo:pj,node:mj},Bj=_7(gj);function of(t){const e={};for(const n of Object.keys(t)){let A=t[n];A&&(Array.isArray(A)||A instanceof BA?A=A.map(of):A.constructor===Object&&(A=of(A))),e[n]=A}return e}let yj="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lr=(t=21)=>{let e="",n=t|0;for(;n--;)e+=yj[Math.random()*64|0];return e};const dQ=Lr(),lc=new Set;function sf(t){return!!(t&&t.type==="Function"&&t.name==="anchor")}function Ii(t,e=!1){return Bj(t,{parseAtrulePrelude:!1,parseCustomProperty:!0,onParseError:n=>{e&&lc.add(n)}})}function UA(t){return k7(t,{mode:"spec"})}function wj(t){return t.type==="Declaration"}function Cj(t){return t.toArray().reduce((e,n)=>n.type==="Operator"&&n.value===","?(e.push([]),e):(n.type==="Identifier"&&e[e.length-1].push(n),e),[[]])}function gB(t){return t?t.children.map(e=>{var n;let A;((n=e.children.last)==null?void 0:n.type)==="PseudoElementSelector"&&(e=of(e),A=UA(e.children.last),e.children.pop());const r=UA(e);return{selector:r+(A??""),elementPart:r,pseudoElementPart:A}}).toArray():[]}function bj(){lc.size>0&&(console.group(`The CSS anchor positioning polyfill was not applied due to ${lc.size===1?"a CSS parse error":"CSS parse errors"}.`),lc.forEach(t=>{console.warn(t.formattedMessage)}),console.groupEnd())}function vj(){lc.clear()}const BB=[...WF,"anchor-scope","anchor-name"].reduce((t,e)=>(t[e]=`--${e}-${dQ}`,t),{});function Ej(t,e){return wj(t)&&BB[t.property]&&e?(e.children.appendData(QA(Rn({},t),{property:BB[t.property]})),{updated:!0}):{}}function kj(t){for(const e of t){let n=!1;const A=Ii(e.css,!0);Ui(A,{visit:"Declaration",enter(r){var o;const i=(o=this.rule)==null?void 0:o.block,{updated:a}=Ej(r,i);a&&(n=!0)}}),n&&(e.css=UA(A),e.changed=!0)}return t.some(e=>e.changed===!0)}var fQ=(t=>(t.All="all",t.None="none",t))(fQ||{});function sr(t,e){var n;return e=(n=BB[e])!=null?n:e,(t instanceof HTMLElement?getComputedStyle(t):t.computedStyle).getPropertyValue(e).trim()}function Ta(t,e,n){return sr(t,e)===n}function Sj(t,{selector:e,pseudoElementPart:n}){const A=getComputedStyle(t,n),r=document.createElement("div"),o=document.createElement("style");r.id=`fake-pseudo-element-${Lr()}`;for(const a of Array.from(A)){const l=A.getPropertyValue(a);r.style.setProperty(a,l)}o.textContent+=`#${r.id}${n} { content: ${A.content}; }`,o.textContent+=`${e} { display: none !important; }`,document.head.append(o);const i=n==="::before"?"afterbegin":"beforeend";return t.insertAdjacentElement(i,r),{fakePseudoElement:r,sheet:o,computedStyle:A}}function Fj(t){let e=t;for(;e;){if(Ta(e,"overflow","scroll"))return e;e=e.parentElement}return e}function Qj(t){let e=Fj(t);return e===document.documentElement&&(e=null),e??{scrollTop:0,scrollLeft:0}}function xj(t){const{elementPart:e,pseudoElementPart:n}=t,A=[];if(n&&!(n==="::before"||n==="::after"))return A;const r=Array.from(document.querySelectorAll(e));if(!n)return A.push(...r),A;for(const o of r){const{fakePseudoElement:i,sheet:a,computedStyle:l}=Sj(o,t),u=i.getBoundingClientRect(),{scrollY:f,scrollX:h}=globalThis,p=Qj(o);A.push({fakePseudoElement:i,computedStyle:l,removeFakePseudoElement(){i.remove(),a.remove()},contextElement:o,getBoundingClientRect(){const{scrollY:g,scrollX:B}=globalThis,{scrollTop:y,scrollLeft:C}=p;return DOMRect.fromRect({y:u.y+(f-g)+(p.scrollTop-y),x:u.x+(h-B)+(p.scrollLeft-C),width:u.width,height:u.height})}})}return A}function Uj(t,e){const n=sr(t,"anchor-name");return e?n.split(",").map(A=>A.trim()).includes(e):!n}function Ij(t,e){const n=sr(t,"anchor-scope");return n===e||n==="all"}const yB=t=>Wt(null,null,function*(){var e,n,A;let r=yield(e=VA.getOffsetParent)==null?void 0:e.call(VA,t);return(yield(n=VA.isElement)==null?void 0:n.call(VA,r))||(r=(yield(A=VA.getDocumentElement)==null?void 0:A.call(VA,t))||window.document.documentElement),r}),hQ="InvalidMimeType";function _j(t){return!!((t.type==="text/css"||t.rel==="stylesheet")&&t.href)}function Tj(t){const e=new URL(t.href,document.baseURI);if(_j(t)&&e.origin===location.origin)return e}function Dj(t){return Wt(this,null,function*(){return(yield Promise.all(t.map(e=>Wt(null,null,function*(){var n;if(!e.url)return e;if((n=e.el)!=null&&n.disabled)return null;try{const A=yield fetch(e.url.toString()),r=A.headers.get("content-type");if(!(r!=null&&r.startsWith("text/css"))){const i=new Error(`Error loading ${e.url}: expected content-type "text/css", got "${r}".`);throw i.name=hQ,i}const o=yield A.text();return QA(Rn({},e),{css:o})}catch(A){if(A instanceof Error&&A.name===hQ)return console.warn(A),null;throw A}})))).filter(e=>e!==null)})}const pQ='[style*="anchor"]',mQ='[style*="position-area"]';function Mj(t){const e=t?t.filter(A=>A instanceof HTMLElement&&(A.matches(pQ)||A.matches(mQ))):Array.from(document.querySelectorAll([pQ,mQ].join(","))),n=[];return e.filter(A=>A instanceof HTMLElement).forEach(A=>{const r=Lr(12),o="data-has-inline-styles";A.setAttribute(o,r);const i=A.getAttribute("style"),a=`[${o}="${r}"] { ${i} }`;n.push({el:A,css:a})}),n}function Oj(t,e){return Wt(this,null,function*(){const n=t??Array.from(document.querySelectorAll("link, style")),A=[];n.filter(i=>i instanceof HTMLElement).forEach(i=>{if(i.tagName.toLowerCase()==="link"){const a=Tj(i);a&&A.push({el:i,url:a})}i.tagName.toLowerCase()==="style"&&A.push({el:i,css:i.innerHTML})});const r=e?t??[]:void 0,o=Mj(r);return yield Dj([...A,...o])})}const Lj="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let gQ=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=Lj[n[t]&63];return e};const BQ="--pa-cascade-property",yQ="data-anchor-position-wrapper",wQ="data-pa-wrapper-for-",CQ="POLYFILL-POSITION-AREA",Nj=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","x-self-start","x-self-end","span-x-self-start","span-x-self-end","span-all","top","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","y-self-start","y-self-end","span-y-self-start","span-y-self-end","block-start","block-end","span-block-start","span-block-end","inline-start","inline-end","span-inline-start","span-inline-end","self-block-start","self-block-end","span-self-block-start","span-self-block-end","self-inline-start","self-inline-end","span-self-inline-start","span-self-inline-end","start","end","span-start","span-end","self-start","self-end","span-self-start","span-self-end"];function bQ(t){return Nj.includes(t)}const vQ={left:[0,1,"Irrelevant"],center:[1,2,"Irrelevant"],right:[2,3,"Irrelevant"],"span-left":[0,2,"Irrelevant"],"span-right":[1,3,"Irrelevant"],"x-start":[0,1,"Physical"],"x-end":[2,3,"Physical"],"span-x-start":[0,2,"Physical"],"span-x-end":[1,3,"Physical"],"x-self-start":[0,1,"PhysicalSelf"],"x-self-end":[2,3,"PhysicalSelf"],"span-x-self-start":[0,2,"PhysicalSelf"],"span-x-self-end":[1,3,"PhysicalSelf"],"span-all":[0,3,"Irrelevant"],top:[0,1,"Irrelevant"],bottom:[2,3,"Irrelevant"],"span-top":[0,2,"Irrelevant"],"span-bottom":[1,3,"Irrelevant"],"y-start":[0,1,"Physical"],"y-end":[2,3,"Physical"],"span-y-start":[0,2,"Physical"],"span-y-end":[1,3,"Physical"],"y-self-start":[0,1,"PhysicalSelf"],"y-self-end":[2,3,"PhysicalSelf"],"span-y-self-start":[0,2,"PhysicalSelf"],"span-y-self-end":[1,3,"PhysicalSelf"],"block-start":[0,1,"Logical"],"block-end":[2,3,"Logical"],"span-block-start":[0,2,"Logical"],"span-block-end":[1,3,"Logical"],"inline-start":[0,1,"Logical"],"inline-end":[2,3,"Logical"],"span-inline-start":[0,2,"Logical"],"span-inline-end":[1,3,"Logical"],"self-block-start":[0,1,"LogicalSelf"],"self-block-end":[2,3,"LogicalSelf"],"span-self-block-start":[0,2,"LogicalSelf"],"span-self-block-end":[1,3,"LogicalSelf"],"self-inline-start":[0,1,"LogicalSelf"],"self-inline-end":[2,3,"LogicalSelf"],"span-self-inline-start":[0,2,"LogicalSelf"],"span-self-inline-end":[1,3,"LogicalSelf"],start:[0,1,"Logical"],end:[2,3,"Logical"],"span-start":[0,2,"Logical"],"span-end":[1,3,"Logical"],"self-start":[0,1,"LogicalSelf"],"self-end":[2,3,"LogicalSelf"],"span-self-start":[0,2,"LogicalSelf"],"span-self-end":[1,3,"LogicalSelf"]},Hj=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","x-self-start","x-self-end","span-x-self-start","span-x-self-end","span-all"],Pj=["top","center","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","y-self-start","y-self-end","span-y-self-start","span-y-self-end","span-all"],Rj=["block-start","center","block-end","span-block-start","span-block-end","span-all"],Vj=["inline-start","center","inline-end","span-inline-start","span-inline-end","span-all"],$j=["self-block-start","center","self-block-end","span-self-block-start","span-self-block-end","span-all"],Kj=["self-inline-start","center","self-inline-end","span-self-inline-start","span-self-inline-end","span-all"],EQ=["start","center","end","span-start","span-end","span-all"],kQ=["self-start","center","self-end","span-self-start","span-self-end","span-all"],zj=["block","top","bottom","y"],Wj=["inline","left","right","x"];function wB(t){const e=t.split("-");for(const n of e){if(zj.includes(n))return"block";if(Wj.includes(n))return"inline"}return"ambiguous"}function Gj(t,e){return e[0].includes(t[0])&&e[1].includes(t[1])||e[0].includes(t[1])&&e[1].includes(t[0])}const Yj=[[Hj,Pj],[Rj,Vj],[$j,Kj],[EQ,EQ],[kQ,kQ]];function jj(t){for(const e of Yj)if(Gj(t,e))return!0;return!1}const SQ=t=>{const e=getComputedStyle(t);return{writingMode:e.writingMode,direction:e.direction}},qj=(t,e)=>Wt(null,null,function*(){const n=yield yB(t);switch(e){case"Logical":case"Physical":return SQ(n);case"LogicalSelf":case"PhysicalSelf":return SQ(t);default:return null}}),CB=t=>t.reverse().map(e=>3-e),FQ=(t,e)=>t==="Irrelevant"?e:t,Jj=(t,e)=>Wt(null,[t,e],function*({block:n,inline:A},r){const o=FQ(n[2],A[2]),i=yield qj(r,o),a={block:[n[0],n[1]],inline:[A[0],A[1]]};if(i){if(i.direction==="rtl"&&(a.inline=CB(a.inline)),i.writingMode.startsWith("vertical")){const l=a.block;a.block=a.inline,a.inline=l}if(i.writingMode.startsWith("sideways")){const l=a.block;a.block=a.inline,a.inline=l,i.writingMode.endsWith("lr")&&(a.block=CB(a.block))}i.writingMode.endsWith("rl")&&(a.inline=CB(a.inline))}return a}),Xj=({block:t,inline:e})=>{const n=[0,"top","bottom",0],A=[0,"left","right",0];return{block:[n[t[0]],n[t[1]]],inline:[A[e[0]],A[e[1]]]}};function QQ([t,e]){return t===0&&e===3?"center":t===0?"end":e===3?"start":"center"}function Zj(t){return t.type==="Declaration"&&t.property==="position-area"}function eq(t){const e=t.value.children.toArray().map(({name:n})=>n);return e.length===1&&(wB(e[0])==="ambiguous"?e.push(e[0]):e.push("span-all")),e}function tq(t){if(!Zj(t))return;const e=eq(t);if(!jj(e))return;const n={};switch(wB(e[0])){case"block":n.block=e[0],n.inline=e[1];break;case"inline":n.inline=e[0],n.block=e[1];break;case"ambiguous":wB(e[1])=="block"?(n.block=e[1],n.inline=e[0]):(n.inline=e[1],n.block=e[0]);break}const A={block:vQ[n.block],inline:vQ[n.inline]},r=`--pa-declaration-${gQ(12)}`;return{values:n,grid:A,selectorUUID:r}}function nq(t,e){["justify-self","align-self"].forEach(n=>{e.children.appendData({type:"Declaration",property:n,value:{type:"Raw",value:`var(--pa-value-${n})`},important:!1})}),e.children.appendData({type:"Declaration",property:BQ,value:{type:"Raw",value:t.selectorUUID},important:!1})}function Aq(t,e){var n,A;let r;if(((n=t.parentElement)==null?void 0:n.tagName)===CQ)r=t.parentElement;else{r=document.createElement(CQ),r.style.display="grid",r.style.position="absolute";const o=getComputedStyle(t).pointerEvents;r.style.pointerEvents="none",t.style.pointerEvents=o,["top","left","right","bottom"].forEach(i=>{r.style.setProperty(i,`var(--pa-value-${i})`)}),(A=t.parentElement)==null||A.insertBefore(r,t),r.appendChild(t)}return r.setAttribute(`${wQ}${e}`,""),r}function rq(t,e,n){return Wt(this,null,function*(){const A=`--pa-target-${gQ(12)}`,r=yield Jj(e.grid,t),o=Xj(r),i=FQ(e.grid.block[2],e.grid.inline[2]),a=["LogicalSelf","PhysicalSelf"].includes(i)?r:e.grid,l={block:QQ([a.block[0],a.block[1]]),inline:QQ([a.inline[0],a.inline[1]])};return{insets:o,alignments:l,targetUUID:A,targetEl:t,anchorEl:n,wrapperEl:Aq(t,A),values:e.values,grid:e.grid,selectorUUID:e.selectorUUID}})}function oq(t,e){return`
148
+ `).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function AQ(t,e,n,A,r,o=1,i=1){return Object.assign(x7("SyntaxError",t),{source:e,offset:n,line:A,column:r,sourceFragment(a){return nQ({source:e,line:A,column:r,baseLine:o,baseColumn:i},isNaN(a)?0:a)},get formattedMessage(){return`Parse error: ${t}
149
+ `+nQ({source:e,line:A,column:r,baseLine:o,baseColumn:i},2)}})}function U7(t){const e=this.createList();let n=!1;const A={recognizer:t};for(;!this.eof;){switch(this.tokenType){case gA:this.next();continue;case Sn:n=!0,this.next();continue}let r=t.getNode.call(this,A);if(r===void 0)break;n&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,r,e,A),n=!1),e.push(r)}return n&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,e,A),e}const rQ=()=>{},I7=33,_7=35,fB=59,oQ=123,iQ=0;function T7(t){return function(){return this[t]()}}function hB(t){const e=Object.create(null);for(const n of Object.keys(t)){const A=t[n],r=A.parse||A;r&&(e[n]=r)}return e}function D7(t){const e={context:Object.create(null),features:Object.assign(Object.create(null),t.features),scope:Object.assign(Object.create(null),t.scope),atrule:hB(t.atrule),pseudo:hB(t.pseudo),node:hB(t.node)};for(const[n,A]of Object.entries(t.parseContext))switch(typeof A){case"function":e.context[n]=A;break;case"string":e.context[n]=T7(A);break}return Rn(Rn({config:e},e),e.node)}function M7(t){let e="",n="<unknown>",A=!1,r=rQ,o=!1;const i=new pz,a=Object.assign(new mz,D7(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:U7,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(l){return l===oQ?1:0},consumeUntilLeftCurlyBracketOrSemicolon(l){return l===oQ||l===fB?1:0},consumeUntilExclamationMarkOrSemicolon(l){return l===I7||l===fB?1:0},consumeUntilSemicolonIncluded(l){return l===fB?2:0},createList(){return new BA},createSingleNodeList(l){return new BA().appendData(l)},getFirstListNode(l){return l&&l.first},getLastListNode(l){return l&&l.last},parseWithFallback(l,u){const f=this.tokenIndex;try{return l.call(this)}catch(h){if(o)throw h;this.skip(f-this.tokenIndex);const p=u.call(this);return o=!0,r(h,p),o=!1,p}},lookupNonWSType(l){let u;do if(u=this.lookupType(l++),u!==Sn&&u!==gA)return u;while(u!==iQ);return iQ},charCodeAt(l){return l>=0&&l<e.length?e.charCodeAt(l):0},substring(l,u){return e.substring(l,u)},substrToCursor(l){return this.source.substring(l,this.tokenStart)},cmpChar(l,u){return bk(e,l,u)},cmpStr(l,u,f){return qd(e,l,u,f)},consume(l){const u=this.tokenStart;return this.eat(l),this.substrToCursor(u)},consumeFunctionName(){const l=e.substring(this.tokenStart,this.tokenEnd-1);return this.eat(Bt),l},consumeNumber(l){const u=e.substring(this.tokenStart,vk(e,this.tokenStart));return this.eat(l),u},eat(l){if(this.tokenType!==l){const u=kk[l].slice(0,-6).replace(/-/g," ").replace(/^./,p=>p.toUpperCase());let f=`${/[[\](){}]/.test(u)?`"${u}"`:u} is expected`,h=this.tokenStart;switch(l){case Oe:this.tokenType===Bt||this.tokenType===pA?(h=this.tokenEnd-1,f="Identifier is expected but function found"):f="Identifier is expected";break;case nn:this.isDelim(_7)&&(this.next(),h++,f="Name is expected");break;case Bn:this.tokenType===ut&&(h=this.tokenEnd,f="Percent sign is expected");break}this.error(f,h)}this.next()},eatIdent(l){(this.tokenType!==Oe||this.lookupValue(0,l)===!1)&&this.error(`Identifier "${l}" is expected`),this.next()},eatDelim(l){this.isDelim(l)||this.error(`Delim "${String.fromCharCode(l)}" is expected`),this.next()},getLocation(l,u){return A?i.getLocationRange(l,u,n):null},getLocationFromList(l){if(A){const u=this.getFirstListNode(l),f=this.getLastListNode(l);return i.getLocationRange(u!==null?u.loc.start.offset-i.startOffset:this.tokenStart,f!==null?f.loc.end.offset-i.startOffset:this.tokenStart,n)}return null},error(l,u){const f=typeof u<"u"&&u<e.length?i.getLocation(u):this.eof?i.getLocation(dz(e,e.length-1)):i.getLocation(this.tokenStart);throw new AQ(l||"Unexpected input",e,f.offset,f.line,f.column,i.startLine,i.startColumn)}});return Object.assign(function(l,u){e=l,u=u||{},a.setSource(e,Uk),i.setSource(e,u.offset,u.line,u.column),n=u.filename||"<unknown>",A=!!u.positions,r=typeof u.onParseError=="function"?u.onParseError:rQ,o=!1,a.parseAtrulePrelude="parseAtrulePrelude"in u?!!u.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in u?!!u.parseRulePrelude:!0,a.parseValue="parseValue"in u?!!u.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in u?!!u.parseCustomProperty:!1;const{context:f="default",onComment:h}=u;if(!(f in a.context))throw new Error("Unknown context `"+f+"`");typeof h=="function"&&a.forEachToken((g,B,y)=>{if(g===gA){const C=a.getLocation(B,y),w=qd(e,y-2,y,"*/")?e.slice(B+2,y-2):e.slice(B+2,y);h(w,C)}});const p=a.context[f].call(a,u);return a.eof||a.error(),p},{SyntaxError:AQ,config:a.config})}const O7=35,L7=42,sQ=43,N7=45,H7=47,P7=117;function aQ(t){switch(this.tokenType){case nn:return this.Hash();case Mr:return this.Operator();case Gt:return this.Parentheses(this.readSequence,t.recognizer);case Sa:return this.Brackets(this.readSequence,t.recognizer);case Mo:return this.String();case St:return this.Dimension();case Bn:return this.Percentage();case ut:return this.Number();case Bt:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,t.recognizer);case pA:return this.Url();case Oe:return this.cmpChar(this.tokenStart,P7)&&this.cmpChar(this.tokenStart+1,sQ)?this.UnicodeRange():this.Identifier();case Tt:{const e=this.charCodeAt(this.tokenStart);if(e===H7||e===L7||e===sQ||e===N7)return this.Operator();e===O7&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const R7={getNode:aQ},V7=35,$7=38,K7=42,z7=43,W7=47,lQ=46,G7=62,Y7=124,j7=126;function q7(t,e){e.last!==null&&e.last.type!=="Combinator"&&t!==null&&t.type!=="Combinator"&&e.push({type:"Combinator",loc:null,name:" "})}function J7(){switch(this.tokenType){case Sa:return this.AttributeSelector();case nn:return this.IdSelector();case mA:return this.lookupType(1)===mA?this.PseudoElementSelector():this.PseudoClassSelector();case Oe:return this.TypeSelector();case ut:case Bn:return this.Percentage();case St:this.charCodeAt(this.tokenStart)===lQ&&this.error("Identifier is expected",this.tokenStart+1);break;case Tt:{switch(this.charCodeAt(this.tokenStart)){case z7:case G7:case j7:case W7:return this.Combinator();case lQ:return this.ClassSelector();case K7:case Y7:return this.TypeSelector();case V7:return this.IdSelector();case $7:return this.NestingSelector()}break}}}const X7={onWhiteSpace:q7,getNode:J7};function Z7(){return this.createSingleNodeList(this.Raw(null,!1))}function ej(){const t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),this.tokenType===Mr){t.push(this.Operator());const e=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let A=e-this.tokenIndex;A<=0;A++)if(this.lookupType(A)===Sn){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(n)}return t}function cQ(t){return t!==null&&t.type==="Operator"&&(t.value[t.value.length-1]==="-"||t.value[t.value.length-1]==="+")}const tj={getNode:aQ,onWhiteSpace(t,e){cQ(t)&&(t.value=" "+t.value),cQ(e.last)&&(e.last.value+=" ")},expression:Z7,var:ej},nj=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:R7,Selector:X7,Value:tj},Symbol.toStringTag,{value:"Module"})),Aj=new Set(["none","and","not","or"]),rj={parse:{prelude(){const t=this.createList();if(this.tokenType===Oe){const e=this.substring(this.tokenStart,this.tokenEnd);Aj.has(e.toLowerCase())||t.push(this.Identifier())}return t.push(this.Condition("container")),t},block(t=!1){return this.Block(t)}}},oj={parse:{prelude:null,block(){return this.Block(!0)}}};function pB(t,e){return this.parseWithFallback(()=>{try{return t.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==st&&this.error()}},e||(()=>this.Raw(null,!0)))}const uQ={layer(){this.skipSC();const t=this.createList(),e=pB.call(this,this.Layer);return(e.type!=="Raw"||e.value!=="")&&t.push(e),t},supports(){this.skipSC();const t=this.createList(),e=pB.call(this,this.Declaration,()=>pB.call(this,()=>this.Condition("supports")));return(e.type!=="Raw"||e.value!=="")&&t.push(e),t}},ij={parse:{prelude(){const t=this.createList();switch(this.tokenType){case Mo:t.push(this.String());break;case pA:case Bt:t.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===Oe&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?t.push(this.Identifier()):this.tokenType===Bt&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&t.push(this.Function(null,uQ)),this.skipSC(),this.tokenType===Bt&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&t.push(this.Function(null,uQ)),(this.lookupNonWSType(0)===Oe||this.lookupNonWSType(0)===Gt)&&t.push(this.MediaQueryList()),t},block:null}},sj={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},aj={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(t=!1){return this.Block(t)}}},lj={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},cj={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},uj={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(t=!1){return this.Block(t)}}},dj={parse:{prelude:null,block(t=!1){return this.Block(t)}}},fj={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(t=!1){return this.Block(t)}}},hj={container:rj,"font-face":oj,import:ij,layer:sj,media:aj,nest:lj,page:cj,scope:uj,"starting-style":dj,supports:fj};function pj(){const t=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Oe:t.push(this.Identifier());break;case Mo:t.push(this.String());break;case Mr:t.push(this.Operator());break;case st:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return t}const Fs={parse(){return this.createSingleNodeList(this.SelectorList())}},mB={parse(){return this.createSingleNodeList(this.Selector())}},mj={parse(){return this.createSingleNodeList(this.Identifier())}},gj={parse:pj},rf={parse(){return this.createSingleNodeList(this.Nth())}},Bj={dir:mj,has:Fs,lang:gj,matches:Fs,is:Fs,"-moz-any":Fs,"-webkit-any":Fs,where:Fs,not:Fs,"nth-child":rf,"nth-last-child":rf,"nth-last-of-type":rf,"nth-of-type":rf,slotted:mB,host:mB,"host-context":mB},yj=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Ik,Atrule:Dk,AtrulePrelude:Ok,AttributeSelector:Hk,Block:Kk,Brackets:Wk,CDC:Yk,CDO:qk,ClassSelector:Xk,Combinator:tS,Comment:AS,Condition:iS,Declaration:uS,DeclarationList:fS,Dimension:pS,Feature:gS,FeatureFunction:yS,FeatureRange:ES,Function:SS,GeneralEnclosed:QS,Hash:US,IdSelector:DS,Identifier:_S,Layer:OS,LayerList:NS,MediaQuery:PS,MediaQueryList:VS,NestingSelector:KS,Nth:WS,Number:YS,Operator:qS,Parentheses:XS,Percentage:eF,PseudoClassSelector:nF,PseudoElementSelector:rF,Ratio:aF,Raw:cF,Rule:fF,Scope:pF,Selector:gF,SelectorList:yF,String:vF,StyleSheet:SF,SupportsDeclaration:QF,TypeSelector:IF,UnicodeRange:MF,Url:NF,Value:PF,WhiteSpace:VF},Symbol.toStringTag,{value:"Module"})),wj={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(t){return this.Condition(t.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:nj,atrule:hj,pseudo:Bj,node:yj},Cj=M7(wj);function of(t){const e={};for(const n of Object.keys(t)){let A=t[n];A&&(Array.isArray(A)||A instanceof BA?A=A.map(of):A.constructor===Object&&(A=of(A))),e[n]=A}return e}let bj="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lr=(t=21)=>{let e="",n=t|0;for(;n--;)e+=bj[Math.random()*64|0];return e};const dQ=Lr(),lc=new Set;function sf(t){return!!(t&&t.type==="Function"&&t.name==="anchor")}function Ii(t,e=!1){return Cj(t,{parseAtrulePrelude:!1,parseCustomProperty:!0,onParseError:n=>{e&&lc.add(n)}})}function UA(t){return Q7(t,{mode:"spec"})}function vj(t){return t.type==="Declaration"}function Ej(t){return t.toArray().reduce((e,n)=>n.type==="Operator"&&n.value===","?(e.push([]),e):(n.type==="Identifier"&&e[e.length-1].push(n),e),[[]])}function gB(t){return t?t.children.map(e=>{var n;let A;((n=e.children.last)==null?void 0:n.type)==="PseudoElementSelector"&&(e=of(e),A=UA(e.children.last),e.children.pop());const r=UA(e);return{selector:r+(A??""),elementPart:r,pseudoElementPart:A}}).toArray():[]}function kj(){lc.size>0&&(console.group(`The CSS anchor positioning polyfill was not applied due to ${lc.size===1?"a CSS parse error":"CSS parse errors"}.`),lc.forEach(t=>{console.warn(t.formattedMessage)}),console.groupEnd())}function Sj(){lc.clear()}const BB=[...WF,"anchor-scope","anchor-name"].reduce((t,e)=>(t[e]=`--${e}-${dQ}`,t),{});function Fj(t,e){return vj(t)&&BB[t.property]&&e?(e.children.appendData(QA(Rn({},t),{property:BB[t.property]})),{updated:!0}):{}}function Qj(t){for(const e of t){let n=!1;const A=Ii(e.css,!0);Ui(A,{visit:"Declaration",enter(r){var o;const i=(o=this.rule)==null?void 0:o.block,{updated:a}=Fj(r,i);a&&(n=!0)}}),n&&(e.css=UA(A),e.changed=!0)}return t.some(e=>e.changed===!0)}var fQ=(t=>(t.All="all",t.None="none",t))(fQ||{});function sr(t,e){var n;return e=(n=BB[e])!=null?n:e,(t instanceof HTMLElement?getComputedStyle(t):t.computedStyle).getPropertyValue(e).trim()}function Ta(t,e,n){return sr(t,e)===n}function xj(t,{selector:e,pseudoElementPart:n}){const A=getComputedStyle(t,n),r=document.createElement("div"),o=document.createElement("style");r.id=`fake-pseudo-element-${Lr()}`;for(const a of Array.from(A)){const l=A.getPropertyValue(a);r.style.setProperty(a,l)}o.textContent+=`#${r.id}${n} { content: ${A.content}; }`,o.textContent+=`${e} { display: none !important; }`,document.head.append(o);const i=n==="::before"?"afterbegin":"beforeend";return t.insertAdjacentElement(i,r),{fakePseudoElement:r,sheet:o,computedStyle:A}}function Uj(t){let e=t;for(;e;){if(Ta(e,"overflow","scroll"))return e;e=e.parentElement}return e}function Ij(t){let e=Uj(t);return e===document.documentElement&&(e=null),e??{scrollTop:0,scrollLeft:0}}function _j(t){const{elementPart:e,pseudoElementPart:n}=t,A=[];if(n&&!(n==="::before"||n==="::after"))return A;const r=Array.from(document.querySelectorAll(e));if(!n)return A.push(...r),A;for(const o of r){const{fakePseudoElement:i,sheet:a,computedStyle:l}=xj(o,t),u=i.getBoundingClientRect(),{scrollY:f,scrollX:h}=globalThis,p=Ij(o);A.push({fakePseudoElement:i,computedStyle:l,removeFakePseudoElement(){i.remove(),a.remove()},contextElement:o,getBoundingClientRect(){const{scrollY:g,scrollX:B}=globalThis,{scrollTop:y,scrollLeft:C}=p;return DOMRect.fromRect({y:u.y+(f-g)+(p.scrollTop-y),x:u.x+(h-B)+(p.scrollLeft-C),width:u.width,height:u.height})}})}return A}function Tj(t,e){const n=sr(t,"anchor-name");return e?n.split(",").map(A=>A.trim()).includes(e):!n}function Dj(t,e){const n=sr(t,"anchor-scope");return n===e||n==="all"}const yB=t=>Wt(null,null,function*(){var e,n,A;let r=yield(e=VA.getOffsetParent)==null?void 0:e.call(VA,t);return(yield(n=VA.isElement)==null?void 0:n.call(VA,r))||(r=(yield(A=VA.getDocumentElement)==null?void 0:A.call(VA,t))||window.document.documentElement),r}),hQ="InvalidMimeType";function Mj(t){return!!((t.type==="text/css"||t.rel==="stylesheet")&&t.href)}function Oj(t){const e=new URL(t.href,document.baseURI);if(Mj(t)&&e.origin===location.origin)return e}function Lj(t){return Wt(this,null,function*(){return(yield Promise.all(t.map(e=>Wt(null,null,function*(){var n;if(!e.url)return e;if((n=e.el)!=null&&n.disabled)return null;try{const A=yield fetch(e.url.toString()),r=A.headers.get("content-type");if(!(r!=null&&r.startsWith("text/css"))){const i=new Error(`Error loading ${e.url}: expected content-type "text/css", got "${r}".`);throw i.name=hQ,i}const o=yield A.text();return QA(Rn({},e),{css:o})}catch(A){if(A instanceof Error&&A.name===hQ)return console.warn(A),null;throw A}})))).filter(e=>e!==null)})}const pQ='[style*="anchor"]',mQ='[style*="position-area"]';function Nj(t){const e=t?t.filter(A=>A instanceof HTMLElement&&(A.matches(pQ)||A.matches(mQ))):Array.from(document.querySelectorAll([pQ,mQ].join(","))),n=[];return e.filter(A=>A instanceof HTMLElement).forEach(A=>{const r=Lr(12),o="data-has-inline-styles";A.setAttribute(o,r);const i=A.getAttribute("style"),a=`[${o}="${r}"] { ${i} }`;n.push({el:A,css:a})}),n}function Hj(t,e){return Wt(this,null,function*(){const n=t??Array.from(document.querySelectorAll("link, style")),A=[];n.filter(i=>i instanceof HTMLElement).forEach(i=>{if(i.tagName.toLowerCase()==="link"){const a=Oj(i);a&&A.push({el:i,url:a})}i.tagName.toLowerCase()==="style"&&A.push({el:i,css:i.innerHTML})});const r=e?t??[]:void 0,o=Nj(r);return yield Lj([...A,...o])})}const Pj="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let gQ=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=Pj[n[t]&63];return e};const BQ="--pa-cascade-property",yQ="data-anchor-position-wrapper",wQ="data-pa-wrapper-for-",CQ="POLYFILL-POSITION-AREA",Rj=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","x-self-start","x-self-end","span-x-self-start","span-x-self-end","span-all","top","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","y-self-start","y-self-end","span-y-self-start","span-y-self-end","block-start","block-end","span-block-start","span-block-end","inline-start","inline-end","span-inline-start","span-inline-end","self-block-start","self-block-end","span-self-block-start","span-self-block-end","self-inline-start","self-inline-end","span-self-inline-start","span-self-inline-end","start","end","span-start","span-end","self-start","self-end","span-self-start","span-self-end"];function bQ(t){return Rj.includes(t)}const vQ={left:[0,1,"Irrelevant"],center:[1,2,"Irrelevant"],right:[2,3,"Irrelevant"],"span-left":[0,2,"Irrelevant"],"span-right":[1,3,"Irrelevant"],"x-start":[0,1,"Physical"],"x-end":[2,3,"Physical"],"span-x-start":[0,2,"Physical"],"span-x-end":[1,3,"Physical"],"x-self-start":[0,1,"PhysicalSelf"],"x-self-end":[2,3,"PhysicalSelf"],"span-x-self-start":[0,2,"PhysicalSelf"],"span-x-self-end":[1,3,"PhysicalSelf"],"span-all":[0,3,"Irrelevant"],top:[0,1,"Irrelevant"],bottom:[2,3,"Irrelevant"],"span-top":[0,2,"Irrelevant"],"span-bottom":[1,3,"Irrelevant"],"y-start":[0,1,"Physical"],"y-end":[2,3,"Physical"],"span-y-start":[0,2,"Physical"],"span-y-end":[1,3,"Physical"],"y-self-start":[0,1,"PhysicalSelf"],"y-self-end":[2,3,"PhysicalSelf"],"span-y-self-start":[0,2,"PhysicalSelf"],"span-y-self-end":[1,3,"PhysicalSelf"],"block-start":[0,1,"Logical"],"block-end":[2,3,"Logical"],"span-block-start":[0,2,"Logical"],"span-block-end":[1,3,"Logical"],"inline-start":[0,1,"Logical"],"inline-end":[2,3,"Logical"],"span-inline-start":[0,2,"Logical"],"span-inline-end":[1,3,"Logical"],"self-block-start":[0,1,"LogicalSelf"],"self-block-end":[2,3,"LogicalSelf"],"span-self-block-start":[0,2,"LogicalSelf"],"span-self-block-end":[1,3,"LogicalSelf"],"self-inline-start":[0,1,"LogicalSelf"],"self-inline-end":[2,3,"LogicalSelf"],"span-self-inline-start":[0,2,"LogicalSelf"],"span-self-inline-end":[1,3,"LogicalSelf"],start:[0,1,"Logical"],end:[2,3,"Logical"],"span-start":[0,2,"Logical"],"span-end":[1,3,"Logical"],"self-start":[0,1,"LogicalSelf"],"self-end":[2,3,"LogicalSelf"],"span-self-start":[0,2,"LogicalSelf"],"span-self-end":[1,3,"LogicalSelf"]},Vj=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","x-self-start","x-self-end","span-x-self-start","span-x-self-end","span-all"],$j=["top","center","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","y-self-start","y-self-end","span-y-self-start","span-y-self-end","span-all"],Kj=["block-start","center","block-end","span-block-start","span-block-end","span-all"],zj=["inline-start","center","inline-end","span-inline-start","span-inline-end","span-all"],Wj=["self-block-start","center","self-block-end","span-self-block-start","span-self-block-end","span-all"],Gj=["self-inline-start","center","self-inline-end","span-self-inline-start","span-self-inline-end","span-all"],EQ=["start","center","end","span-start","span-end","span-all"],kQ=["self-start","center","self-end","span-self-start","span-self-end","span-all"],Yj=["block","top","bottom","y"],jj=["inline","left","right","x"];function wB(t){const e=t.split("-");for(const n of e){if(Yj.includes(n))return"block";if(jj.includes(n))return"inline"}return"ambiguous"}function qj(t,e){return e[0].includes(t[0])&&e[1].includes(t[1])||e[0].includes(t[1])&&e[1].includes(t[0])}const Jj=[[Vj,$j],[Kj,zj],[Wj,Gj],[EQ,EQ],[kQ,kQ]];function Xj(t){for(const e of Jj)if(qj(t,e))return!0;return!1}const SQ=t=>{const e=getComputedStyle(t);return{writingMode:e.writingMode,direction:e.direction}},Zj=(t,e)=>Wt(null,null,function*(){const n=yield yB(t);switch(e){case"Logical":case"Physical":return SQ(n);case"LogicalSelf":case"PhysicalSelf":return SQ(t);default:return null}}),CB=t=>t.reverse().map(e=>3-e),FQ=(t,e)=>t==="Irrelevant"?e:t,eq=(t,e)=>Wt(null,[t,e],function*({block:n,inline:A},r){const o=FQ(n[2],A[2]),i=yield Zj(r,o),a={block:[n[0],n[1]],inline:[A[0],A[1]]};if(i){if(i.direction==="rtl"&&(a.inline=CB(a.inline)),i.writingMode.startsWith("vertical")){const l=a.block;a.block=a.inline,a.inline=l}if(i.writingMode.startsWith("sideways")){const l=a.block;a.block=a.inline,a.inline=l,i.writingMode.endsWith("lr")&&(a.block=CB(a.block))}i.writingMode.endsWith("rl")&&(a.inline=CB(a.inline))}return a}),tq=({block:t,inline:e})=>{const n=[0,"top","bottom",0],A=[0,"left","right",0];return{block:[n[t[0]],n[t[1]]],inline:[A[e[0]],A[e[1]]]}};function QQ([t,e]){return t===0&&e===3?"center":t===0?"end":e===3?"start":"center"}function nq(t){return t.type==="Declaration"&&t.property==="position-area"}function Aq(t){const e=t.value.children.toArray().map(({name:n})=>n);return e.length===1&&(wB(e[0])==="ambiguous"?e.push(e[0]):e.push("span-all")),e}function rq(t){if(!nq(t))return;const e=Aq(t);if(!Xj(e))return;const n={};switch(wB(e[0])){case"block":n.block=e[0],n.inline=e[1];break;case"inline":n.inline=e[0],n.block=e[1];break;case"ambiguous":wB(e[1])=="block"?(n.block=e[1],n.inline=e[0]):(n.inline=e[1],n.block=e[0]);break}const A={block:vQ[n.block],inline:vQ[n.inline]},r=`--pa-declaration-${gQ(12)}`;return{values:n,grid:A,selectorUUID:r}}function oq(t,e){["justify-self","align-self"].forEach(n=>{e.children.appendData({type:"Declaration",property:n,value:{type:"Raw",value:`var(--pa-value-${n})`},important:!1})}),e.children.appendData({type:"Declaration",property:BQ,value:{type:"Raw",value:t.selectorUUID},important:!1})}function iq(t,e){var n,A;let r;if(((n=t.parentElement)==null?void 0:n.tagName)===CQ)r=t.parentElement;else{r=document.createElement(CQ),r.style.display="grid",r.style.position="absolute";const o=getComputedStyle(t).pointerEvents;r.style.pointerEvents="none",t.style.pointerEvents=o,["top","left","right","bottom"].forEach(i=>{r.style.setProperty(i,`var(--pa-value-${i})`)}),(A=t.parentElement)==null||A.insertBefore(r,t),r.appendChild(t)}return r.setAttribute(`${wQ}${e}`,""),r}function sq(t,e,n){return Wt(this,null,function*(){const A=`--pa-target-${gQ(12)}`,r=yield eq(e.grid,t),o=tq(r),i=FQ(e.grid.block[2],e.grid.inline[2]),a=["LogicalSelf","PhysicalSelf"].includes(i)?r:e.grid,l={block:QQ([a.block[0],a.block[1]]),inline:QQ([a.inline[0],a.inline[1]])};return{insets:o,alignments:l,targetUUID:A,targetEl:t,anchorEl:n,wrapperEl:iq(t,A),values:e.values,grid:e.grid,selectorUUID:e.selectorUUID}})}function aq(t,e){return`
150
150
  [${yQ}="${e}"][${wQ}${t}] {
151
151
  --pa-value-top: var(${t}-top);
152
152
  --pa-value-left: var(${t}-left);
@@ -156,7 +156,7 @@ function print() { __p += __j.call(arguments, '') }
156
156
  --pa-value-align-self: var(${t}-align-self);
157
157
  }
158
158
  `.replaceAll(`
159
- `,"")}const iq=["normal","most-width","most-height","most-block-size","most-inline-size"],sq=["flip-block","flip-inline","flip-start"];function aq(t){return t.type==="Declaration"}function lq(t){return t.type==="Declaration"&&t.property==="position-try-fallbacks"}function cq(t){return t.type==="Declaration"&&t.property==="position-try-order"}function uq(t){return t.type==="Declaration"&&t.property==="position-try"}function dq(t){return t.type==="Atrule"&&t.name==="position-try"}function fq(t){return sq.includes(t)}function hq(t){return iq.includes(t)}function pq(t,e){const n=document.querySelector(t);if(n){let A=gq(n);return e.forEach(r=>{A=xQ(A,r)}),A}}function mq(t,e){let n=t.declarations;return e.forEach(A=>{n=xQ(n,A)}),n}function gq(t){const e={};return WF.forEach(n=>{const A=sr(t,`--${n}-${dQ}`);A&&(e[n]=A)}),e}const Bq={"flip-block":{top:"bottom",bottom:"top","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","margin-top":"margin-bottom","margin-bottom":"margin-top"},"flip-inline":{left:"right",right:"left","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","margin-left":"margin-right","margin-right":"margin-left"},"flip-start":{left:"top",right:"bottom",top:"left",bottom:"right","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","inset-block":"inset-inline","inset-inline":"inset-block"}},yq={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-inline":{left:"right",right:"left",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-start":{top:"left",left:"top",right:"bottom",bottom:"right"}},wq={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start"},"flip-inline":{left:"right",right:"left",start:"end",end:"start"},"flip-start":{}};function Cq(t,e){return Bq[e][t]||t}function bq(t,e){return yq[e][t]||t}function vq(t,e){if(e==="flip-start")return t;{const n=wq[e];return t.split("-").map(A=>n[A]||A).join("-")}}function Eq(t,e,n){if(t==="margin"){const[A,r,o,i]=e.children.toArray();n==="flip-block"?i?e.children.fromArray([o,r,A,i]):o&&e.children.fromArray([o,r,A]):n==="flip-inline"&&i&&e.children.fromArray([A,i,o,r])}else if(t==="margin-block"){const[A,r]=e.children.toArray();n==="flip-block"&&r&&e.children.fromArray([r,A])}else if(t==="margin-inline"){const[A,r]=e.children.toArray();n==="flip-inline"&&r&&e.children.fromArray([r,A])}}const kq=(t,e)=>{var n;return((n=Ii(`#id{${t}: ${e};}`).children.first)==null?void 0:n.block.children.first).value};function xQ(t,e){const n={};return Object.entries(t).forEach(([A,r])=>{const o=A,i=kq(o,r),a=Cq(o,e);a!==o&&(n[o]!=null||(n[o]="revert")),Ui(i,{visit:"Function",enter(l){sf(l)&&l.children.forEach(u=>{cc(u)&&YF(u.name)&&(u.name=bq(u.name,e))})}}),o==="position-area"&&i.children.forEach(l=>{cc(l)&&bQ(l.name)&&(l.name=vq(l.name,e))}),o.startsWith("margin")&&Eq(o,i,e),n[a]=UA(i)}),n}function UQ(t){const e=Cj(t),n=[];return e.forEach(A=>{const r={atRules:[],tactics:[],positionAreas:[]};A.forEach(o=>{fq(o.name)?r.tactics.push(o.name):o.name.startsWith("--")?r.atRules.push(o.name):bQ(o.name)&&r.positionAreas.push(o.name)}),r.positionAreas.length?n.push({positionArea:r.positionAreas[0],type:"position-area"}):r.atRules.length&&r.tactics.length?n.push({tactics:r.tactics,atRule:r.atRules[0],type:"at-rule-with-try-tactic"}):r.atRules.length?n.push({atRule:r.atRules[0],type:"at-rule"}):r.tactics.length&&n.push({tactics:r.tactics,type:"try-tactic"})}),n}function Sq(t){return lq(t)&&t.value.children.first?UQ(t.value.children):[]}function Fq(t){if(uq(t)&&t.value.children.first){const e=of(t);let n;const A=e.value.children.first.name;A&&hq(A)&&(n=A,e.value.children.shift());const r=UQ(e.value.children);return{order:n,options:r}}return{}}function Qq(t){return cq(t)&&t.value.children.first?{order:t.value.children.first.name}:{}}function xq(t){const{order:e,options:n}=Fq(t);if(e||n)return{order:e,options:n};const{order:A}=Qq(t),r=Sq(t);return A||r?{order:A,options:r}:{}}function Uq(t){return ac(t.property)||a7(t.property)||KF(t.property)||l7(t.property)||["position-anchor","position-area"].includes(t.property)}function Iq(t){var e,n;if(dq(t)&&(e=t.prelude)!=null&&e.value&&(n=t.block)!=null&&n.children){const A=t.prelude.value,r=t.block.children.filter(i=>aq(i)&&Uq(i)),o={uuid:`${A}-try-${Lr(12)}`,declarations:Object.fromEntries(r.map(i=>[i.property,UA(i.value)]))};return{name:A,tryBlock:o}}return{}}function _q(t){const e={},n={},A={};for(const r of t){const o=Ii(r.css);Ui(o,{visit:"Atrule",enter(i){const{name:a,tryBlock:l}=Iq(i);a&&l&&(e[a]=l)}})}for(const r of t){let o=!1;const i=new Set,a=Ii(r.css);Ui(a,{visit:"Declaration",enter(l){var u;const f=(u=this.rule)==null?void 0:u.prelude,h=gB(f);if(!h.length)return;const{order:p,options:g}=xq(l),B={};p&&(B.order=p),h.forEach(({selector:y})=>{var C;g?.forEach(w=>{var F;let _;if(w.type==="at-rule")_=w.atRule;else if(w.type==="try-tactic"){_=`${y}-${w.tactics.join("-")}`;const D=pq(y,w.tactics);D&&(e[_]={uuid:`${y}-${w.tactics.join("-")}-try-${Lr(12)}`,declarations:D})}else if(w.type==="at-rule-with-try-tactic"){_=`${y}-${w.atRule}-${w.tactics.join("-")}`;const D=e[w.atRule],P=mq(D,w.tactics);P&&(e[_]={uuid:`${y}-${w.atRule}-${w.tactics.join("-")}-try-${Lr(12)}`,declarations:P})}if(_&&e[_]){const D=`[data-anchor-polyfill="${e[_].uuid}"]`;n[D]!=null||(n[D]=[]),n[D].push(y),i.has(_)||(B.fallbacks!=null||(B.fallbacks=[]),B.fallbacks.push(e[_]),i.add(_),(F=this.stylesheet)==null||F.children.prependData({type:"Rule",prelude:{type:"Raw",value:D},block:{type:"Block",children:new BA().fromArray(Object.entries(e[_].declarations).map(([P,T])=>({type:"Declaration",important:!0,property:P,value:{type:"Raw",value:T}})))}}),o=!0)}}),Object.keys(B).length>0&&(A[y]?(B.order&&(A[y].order=B.order),B.fallbacks&&((C=A[y]).fallbacks!=null||(C.fallbacks=[]),A[y].fallbacks.push(...B.fallbacks))):A[y]=B)})}}),o&&(r.css=UA(a),r.changed=!0)}return{fallbackTargets:n,validPositions:A}}function Tq(t,e){return!t||t===e?!1:IQ(t)?t.document.contains(e):t.contains(e)}function IQ(t){return!!(t&&t===t.window)}function Dq(t){return Ta(t,"position","fixed")}function bB(t){return!!(t&&(Dq(t)||Ta(t,"position","absolute")))}function _Q(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING}function Mq(t){return Wt(this,null,function*(){return yield VA.getOffsetParent(t)})}function vB(t){return Wt(this,null,function*(){if(!["absolute","fixed"].includes(sr(t,"position")))return yield Mq(t);let e=t.parentElement;for(;e;){if(!Ta(e,"position","static")&&Ta(e,"display","block"))return e;e=e.parentElement}return window})}function Oq(t,e,n,A){return Wt(this,null,function*(){const r=yield vB(t),o=yield vB(n);if(!(Tq(o,t)||IQ(o))||r===o&&!(!bB(t)||_Q(t,n)))return!1;if(r!==o){let i;const a=[];for(i=r;i&&i!==o&&i!==window;)a.push(i),i=yield vB(i);const l=a[a.length-1];if(l instanceof HTMLElement&&!(!bB(l)||_Q(l,n)))return!1}{let i=t.parentElement;for(;i;){if(Ta(i,"content-visibility","hidden"))return!1;i=i.parentElement}}return!(e&&A&&TQ(t,e,A)!==TQ(n,e,A))})}function TQ(t,e,n){for(;!(t.matches(n)&&Ij(t,e));){if(!t.parentElement)return null;t=t.parentElement}return t}function Lq(t,e,n,A){return Wt(this,null,function*(){if(!(t instanceof HTMLElement&&n.length&&bB(t)))return null;const r=n.flatMap(xj).filter(i=>Uj(i,e)),o=A.map(i=>i.selector).join(",")||null;for(let i=r.length-1;i>=0;i--){const a=r[i],l="fakePseudoElement"in a;if(yield Oq(l?a.fakePseudoElement:a,e,t,o))return l&&a.removeFakePseudoElement(),a}return null})}function Nq(t){return t.type==="Declaration"&&t.property==="anchor-name"}function Hq(t){return t.type==="Declaration"&&t.property==="anchor-scope"}function EB(t){return!!(t&&t.type==="Function"&&t.name==="anchor-size")}function af(t){return!!(t&&t.type==="Function"&&t.name==="var")}function cc(t){return!!(t.type==="Identifier"&&t.name)}function Pq(t){return!!(t.type==="Percentage"&&t.value)}function DQ(t,e){let n,A,r,o="",i=!1,a;const l=[];t.children.toArray().forEach(p=>{if(i){o=`${o}${UA(p)}`;return}if(p.type==="Operator"&&p.value===","){i=!0;return}l.push(p)});let[u,f]=l;if(f||(f=u,u=void 0),u&&(cc(u)&&u.name.startsWith("--")?n=u.name:af(u)&&u.children.first&&(a=u.children.first.name)),f)if(sf(t)){if(cc(f)&&YF(f.name))A=f.name;else if(Pq(f)){const p=Number(f.value);A=Number.isNaN(p)?void 0:p}}else EB(t)&&cc(f)&&f7(f.name)&&(r=f.name);const h=`--anchor-${Lr(12)}`;return Object.assign(t,{type:"Raw",value:`var(${h})`,children:null}),Reflect.deleteProperty(t,"name"),{anchorName:n,anchorSide:A,anchorSize:r,fallbackValue:o||"0px",customPropName:a,uuid:h}}function MQ(t){return t.value.children.map(({name:e})=>e)}let uc={},Qs={},xs={},dc={},Us={};function Rq(){uc={},Qs={},xs={},dc={},Us={}}function Vq(t,e){var n;if((sf(t)||EB(t))&&e){if(e.property.startsWith("--")){const A=UA(e.value),r=DQ(t);return dc[r.uuid]=A,xs[e.property]=[...(n=xs[e.property])!=null?n:[],r],{changed:!0}}if(sf(t)&&ac(e.property)||EB(t)&&GF(e.property)){const A=DQ(t);return{prop:e.property,data:A,changed:!0}}}return{}}function OQ(t,e){return Wt(this,null,function*(){let n=e?.anchorName;const A=e?.customPropName;if(t&&!n){const a=sr(t,"position-anchor");a?n=a:A&&(n=sr(t,A))}const r=n?uc[n]||[]:[],o=n?Qs[fQ.All]||[]:[],i=n?Qs[n]||[]:[];return yield Lq(t,n||null,r,[...o,...i])})}function $q(t){return Wt(this,null,function*(){var e,n,A,r,o,i,a,l,u,f,h;const p={},g={};Rq();const{fallbackTargets:B,validPositions:y}=_q(t);for(const P of t){let T=!1;const H=Ii(P.css);Ui(H,function(te){var Z,ne,pe,Be;const we=(Z=this.rule)==null?void 0:Z.prelude,R=gB(we);if(Nq(te)&&R.length)for(const I of MQ(te))uc[I]!=null||(uc[I]=[]),uc[I].push(...R);if(Hq(te)&&R.length)for(const I of MQ(te))Qs[I]!=null||(Qs[I]=[]),Qs[I].push(...R);const{prop:K,data:N,changed:k}=Vq(te,this.declaration);if(K&&N&&R.length)for(const{selector:I}of R)p[I]=QA(Rn({},p[I]),{[K]:[...(pe=(ne=p[I])==null?void 0:ne[K])!=null?pe:[],N]});let E;if(this.block&&(E=tq(te),E)){nq(E,this.block);for(const{selector:I}of R)g[I]=[...(Be=g[I])!=null?Be:[],E]}(k||E)&&(T=!0)}),T&&(P.css=UA(H),P.changed=!0)}const C=new Set(Object.keys(xs)),w={},F=P=>{var T,H,te,Z,ne;const pe=[],Be=new Set((H=(T=w[P])==null?void 0:T.names)!=null?H:[]);for(;Be.size>0;)for(const we of Be)pe.push(...(te=xs[we])!=null?te:[]),Be.delete(we),(ne=(Z=w[we])==null?void 0:Z.names)!=null&&ne.length&&w[we].names.forEach(R=>Be.add(R));return pe};for(;C.size>0;){const P=[];for(const T of t){let H=!1;const te=Ii(T.css);Ui(te,{visit:"Function",enter(Z){var ne,pe;const Be=(ne=this.rule)==null?void 0:ne.prelude,we=this.declaration,R=we?.property;if(Be?.children.isEmpty===!1&&af(Z)&&we&&R&&Z.children.first&&C.has(Z.children.first.name)&&R.startsWith("--")){const K=Z.children.first,N=(pe=xs[K.name])!=null?pe:[],k=F(K.name);if(!(N.length||k.length))return;const E=`${K.name}-anchor-${Lr(12)}`,I=UA(we.value);dc[E]=I,w[R]||(w[R]={names:[],uuids:[]});const Q=w[R];Q.names.includes(K.name)||Q.names.push(K.name),Q.uuids.push(E),P.push(R),K.name=E,H=!0}}}),H&&(T.css=UA(te),T.changed=!0)}C.clear(),P.forEach(T=>C.add(T))}for(const P of t){let T=!1;const H=Ii(P.css);Ui(H,{visit:"Function",enter(te){var Z,ne,pe,Be,we,R,K;const N=(Z=this.rule)==null?void 0:Z.prelude,k=this.declaration,E=k?.property;if(N?.children.isEmpty===!1&&af(te)&&k&&E&&te.children.first&&(ac(E)||KF(E))){const I=te.children.first,Q=(ne=xs[I.name])!=null?ne:[],v=F(I.name);if(!(Q.length||v.length))return;const W=`${E}-${Lr(12)}`;if(v.length){const $=new Set([I.name]);for(;$.size>0;)for(const J of $){const j=w[J];if((pe=j?.names)!=null&&pe.length&&(Be=j?.uuids)!=null&&Be.length)for(const S of j.names)for(const G of j.uuids)Us[G]=QA(Rn({},Us[G]),{[W]:`${S}-${W}`});$.delete(J),(we=j?.names)!=null&&we.length&&j.names.forEach(S=>$.add(S))}}const M=gB(N);for(const $ of[...Q,...v]){const J=Rn({},$),j=`--anchor-${Lr(12)}-${E}`,S=J.uuid;J.uuid=j;for(const{selector:G}of M)p[G]=QA(Rn({},p[G]),{[E]:[...(K=(R=p[G])==null?void 0:R[E])!=null?K:[],J]});Us[S]=QA(Rn({},Us[S]),{[W]:j})}I.name=`${I.name}-${W}`,T=!0}}}),T&&(P.css=UA(H),P.changed=!0)}if(Object.keys(Us).length>0)for(const P of t){let T=!1;const H=Ii(P.css);Ui(H,{visit:"Function",enter(te){var Z,ne,pe,Be;if(af(te)&&(ne=(Z=te.children.first)==null?void 0:Z.name)!=null&&ne.startsWith("--")&&(Be=(pe=this.declaration)==null?void 0:pe.property)!=null&&Be.startsWith("--")&&this.block){const we=te.children.first,R=Us[we.name];if(R)for(const[K,N]of Object.entries(R))this.block.children.appendData({type:"Declaration",important:!1,property:`${this.declaration.property}-${K}`,value:{type:"Raw",value:UA(this.declaration.value).replace(`var(${we.name})`,`var(${N})`)}}),T=!0;dc[we.name]&&(this.declaration.value={type:"Raw",value:dc[we.name]},T=!0)}}}),T&&(P.css=UA(H),P.changed=!0)}const _=new Map;for(const[P,T]of Object.entries(p)){let H;P.startsWith("[data-anchor-polyfill=")&&(e=B[P])!=null&&e.length?H=document.querySelectorAll(B[P].join(",")):H=document.querySelectorAll(P);for(const[te,Z]of Object.entries(T))for(const ne of Z)for(const pe of H){const Be=yield OQ(pe,ne),we=`--anchor-${Lr(12)}`;_.set(pe,QA(Rn({},(n=_.get(pe))!=null?n:{}),{[ne.uuid]:we})),pe.setAttribute("style",`${ne.uuid}: var(${we}); ${(A=pe.getAttribute("style"))!=null?A:""}`),y[P]=QA(Rn({},y[P]),{declarations:QA(Rn({},(r=y[P])==null?void 0:r.declarations),{[te]:[...(a=(i=(o=y[P])==null?void 0:o.declarations)==null?void 0:i[te])!=null?a:[],QA(Rn({},ne),{anchorEl:Be,targetEl:pe,uuid:we})]})})}}const D={el:document.createElement("link"),changed:!1,created:!0,css:""};t.push(D);for(const[P,T]of Object.entries(g)){const H=document.querySelectorAll(P);for(const te of H){const Z=yield OQ(te);for(const ne of T){const pe=yield rq(te,ne,Z);D.css+=oq(pe.targetUUID,ne.selectorUUID),D.changed=!0,y[P]=QA(Rn({},y[P]),{declarations:QA(Rn({},(l=y[P])==null?void 0:l.declarations),{"position-area":[...(h=(f=(u=y[P])==null?void 0:u.declarations)==null?void 0:f["position-area"])!=null?h:[],pe]})})}}}return{rules:y,inlineStyles:_,anchorScopes:Qs}})}const Kq=["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","referrerpolicy","rel","type"];function LQ(t,e,n=!1){const A=[];for(const{el:r,css:o,changed:i,created:a=!1}of t){const l={el:r,css:o,changed:!1};if(i){if(r.tagName.toLowerCase()==="style")r.innerHTML=o;else if(r instanceof HTMLLinkElement){const u=document.createElement("style");u.textContent=o;for(const f of r.getAttributeNames())if(!f.startsWith("on")&&!Kq.includes(f)){const h=r.getAttribute(f);h!==null&&u.setAttribute(f,h)}r.hasAttribute("href")&&u.setAttribute("data-original-href",r.getAttribute("href")),a?(u.setAttribute("data-generated-by-polyfill","true"),document.head.insertAdjacentElement("beforeend",u)):(r.insertAdjacentElement("beforebegin",u),r.remove()),l.el=u}else if(r.hasAttribute("data-has-inline-styles")){const u=r.getAttribute("data-has-inline-styles");if(u){const f=`[data-has-inline-styles="${u}"]{`;let h=o.slice(f.length,-1);const p=e?.get(r);if(p)for(const[g,B]of Object.entries(p))h=`${g}: var(${B}); ${h}`;r.setAttribute("style",h)}}}n&&r.hasAttribute("data-has-inline-styles")&&r.removeAttribute("data-has-inline-styles"),A.push(l)}return A}const zq=QA(Rn({},VA),{_c:new Map}),Wq=(t,e)=>{let n;switch(t){case"start":case"self-start":n=0;break;case"end":case"self-end":n=100;break;default:typeof t=="number"&&!Number.isNaN(t)&&(n=t)}if(n!==void 0)return e?100-n:n},Gq=(t,e)=>{let n;switch(t){case"block":case"self-block":n=e?"width":"height";break;case"inline":case"self-inline":n=e?"height":"width";break}return n},NQ=t=>{switch(t){case"top":case"bottom":return"y";case"left":case"right":return"x"}return null},Yq=t=>{switch(t){case"x":return"width";case"y":return"height"}return null},HQ=t=>sr(t,"display")==="inline",PQ=(t,e)=>(e==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"]).reduce((n,A)=>n+parseInt(sr(t,A),10),0)||0,lf=(t,e)=>parseInt(sr(t,`margin-${e}`),10)||0,jq=t=>({top:lf(t,"top"),right:lf(t,"right"),bottom:lf(t,"bottom"),left:lf(t,"left")}),kB=t=>Wt(null,[t],function*({targetEl:e,targetProperty:n,anchorRect:A,anchorSide:r,anchorSize:o,fallback:i=null}){var a;if(!((o||r!==void 0)&&e&&A))return i;if(o){if(!GF(n))return i;let l;switch(o){case"width":case"height":l=o;break;default:{let u=!1;const f=sr(e,"writing-mode");u=f.startsWith("vertical-")||f.startsWith("sideways-"),l=Gq(o,u)}}return l?`${A[l]}px`:i}if(r!==void 0){let l,u;const f=NQ(n);if(!(ac(n)&&f&&(!ac(r)||f===NQ(r))))return i;const h=["top","left"];switch(r){case"left":case"top":l=0;break;case"right":case"bottom":l=100;break;case"center":l=50;break;case"inside":l=h.includes(n)?0:100;break;case"outside":l=h.includes(n)?100:0;break;default:if(e){const B=(yield(a=VA.isRTL)==null?void 0:a.call(VA,e))||!1;l=Wq(r,B)}}const p=typeof l=="number"&&!Number.isNaN(l),g=Yq(f);if(p&&g){(n==="bottom"||n==="right")&&(u=yield yB(e));let B=A[f]+A[g]*(l/100);switch(n){case"bottom":{if(!u)break;let y=u.clientHeight;if(y===0&&HQ(u)){const C=PQ(u,f);y=u.offsetHeight-C}B=y-B;break}case"right":{if(!u)break;let y=u.clientWidth;if(y===0&&HQ(u)){const C=PQ(u,f);y=u.offsetWidth-C}B=y-B;break}}return`${B}px`}}return i}),qq=t=>"wrapperEl"in t,Jq=t=>"uuid"in t;function Xq(t,e=!1){return Wt(this,null,function*(){const n=document.documentElement;for(const[A,r]of Object.entries(t))for(const o of r){const i=o.anchorEl,a=o.targetEl;if(i&&a)if(qq(o)){const l=o.wrapperEl,u=(f,h,p)=>Wt(null,null,function*(){return f===0?"0px":yield kB({targetEl:l,targetProperty:h,anchorRect:p,anchorSide:f})});$g(i,l,()=>Wt(null,null,function*(){const f=sr(a,BQ);l.setAttribute(yQ,f);const h=yield VA.getElementRects({reference:i,floating:l,strategy:"absolute"}),p=o.insets,g=yield u(p.block[0],"top",h.reference),B=yield u(p.block[1],"bottom",h.reference),y=yield u(p.inline[0],"left",h.reference),C=yield u(p.inline[1],"right",h.reference);n.style.setProperty(`${o.targetUUID}-top`,g||null),n.style.setProperty(`${o.targetUUID}-left`,y||null),n.style.setProperty(`${o.targetUUID}-right`,C||null),n.style.setProperty(`${o.targetUUID}-bottom`,B||null),n.style.setProperty(`${o.targetUUID}-justify-self`,o.alignments.inline),n.style.setProperty(`${o.targetUUID}-align-self`,o.alignments.block)}),{animationFrame:e})}else $g(i,a,()=>Wt(null,null,function*(){const l=yield VA.getElementRects({reference:i,floating:a,strategy:"absolute"}),u=yield kB({targetEl:a,targetProperty:A,anchorRect:l.reference,anchorSide:o.anchorSide,anchorSize:o.anchorSize,fallback:o.fallbackValue});n.style.setProperty(o.uuid,u)}),{animationFrame:e});else if(Jq(o)){const l=yield kB({targetProperty:A,anchorSide:o.anchorSide,anchorSize:o.anchorSize,fallback:o.fallbackValue});n.style.setProperty(o.uuid,l)}}})}function RQ(t,e){return Wt(this,null,function*(){const n=yield VA.getElementRects({reference:t,floating:t,strategy:"absolute"});return yield X8({x:t.offsetLeft,y:t.offsetTop,platform:zq,rects:n,elements:{floating:t,reference:e},strategy:"absolute"},{padding:jq(t)})})}function Zq(t,e,n=!1){return Wt(this,null,function*(){if(!e.length)return;const A=document.querySelectorAll(t);for(const r of A){let o=!1;const i=yield yB(r);$g({},r,()=>Wt(null,null,function*(){if(o)return;o=!0,r.removeAttribute("data-anchor-polyfill");const a=yield RQ(r,i);if(Object.values(a).every(l=>l<=0)){r.removeAttribute("data-anchor-polyfill-last-successful"),o=!1;return}for(const[l,{uuid:u}]of e.entries()){r.setAttribute("data-anchor-polyfill",u);const f=yield RQ(r,i);if(Object.values(f).every(h=>h<=0)){r.setAttribute("data-anchor-polyfill-last-successful",u),o=!1;break}if(l===e.length-1){const h=r.getAttribute("data-anchor-polyfill-last-successful");h?r.setAttribute("data-anchor-polyfill",h):r.removeAttribute("data-anchor-polyfill"),o=!1;break}}}),{animationFrame:n,layoutShift:!1})}})}function eJ(t,e=!1){return Wt(this,null,function*(){var n,A;for(const r of Object.values(t))yield Xq((n=r.declarations)!=null?n:{},e);for(const[r,o]of Object.entries(t))yield Zq(r,(A=o.fallbacks)!=null?A:[],e)})}function tJ(t={}){const e=typeof t=="boolean"?{useAnimationFrame:t}:t,n=e.useAnimationFrame===void 0?!!window.UPDATE_ANCHOR_ON_ANIMATION_FRAME:e.useAnimationFrame;return Array.isArray(e.elements)||(e.elements=void 0),Object.assign(e,{useAnimationFrame:n})}function nJ(t){return Wt(this,null,function*(){const e=tJ(window.ANCHOR_POSITIONING_POLYFILL_OPTIONS);let n=yield Oj(e.elements,e.excludeInlineStyles),A={},r;vj();try{kj(n)&&(n=LQ(n));const o=yield $q(n);A=o.rules,r=o.inlineStyles}catch(o){throw bj(),o}return Object.values(A).length&&(LQ(n,r,!0),yield eJ(A,e.useAnimationFrame)),A})}const AJ={class:"popover-tooltip"},rJ=["popovertarget","disabled","aria-describedby","aria-label"],oJ={class:"popover-tooltip__content d-flex flex-column"},iJ={key:0,class:"popover-tooltip__header d-flex p-3 border-bottom"},sJ=["innerHTML"],aJ={class:"popover-tooltip__body"},lJ=["innerHTML"],cJ={key:1,class:"popover-tooltip__footer d-flex p-3 border-top"},uJ=s.defineComponent({__name:"popover-tooltip",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-tooltip-${Math.random().toString(36).substr(2,9)}`},size:{type:String},exclusive:{type:Boolean,default:!0},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},hover:{type:Boolean,default:!0},hoverDelay:{type:Number,default:400},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(a){A("update:modelValue",a)}}),o=s.ref(),i=s.ref();return s.onMounted(()=>{"anchorName"in document.documentElement.style||nJ().then(a=>{console.log("Running polyfill",a)})}),(a,l)=>(s.openBlock(),s.createElementBlock("span",AJ,[s.createElementVNode("button",{type:"button",popovertarget:t.id,disabled:t.disabled,"aria-describedby":t.id,"aria-label":t.ariaLabel||a.$te("common.moreInfo")?a.$t("common.moreInfo"):void 0,ref_key:"trigger",ref:o},[s.renderSlot(a.$slots,"button",{},()=>[l[3]||(l[3]=s.createElementVNode("span",{class:"popover-tooltip__trigger"}," i ",-1))])],8,rJ),s.createVNode(Mg,{id:t.id,modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=u=>r.value=u),hover:t.hover,"hover-delay":t.hoverDelay,ref_key:"dialog",ref:i,role:"tooltip",class:s.normalizeClass(t.size?`popover-tooltip--${t.size}`:"")},{default:s.withCtx(()=>[s.createElementVNode("div",oJ,[t.header?(s.openBlock(),s.createElementBlock("div",iJ,[t.title?(s.openBlock(),s.createElementBlock("h5",{key:0,class:"popover-tooltip__title",innerHTML:t.title},null,8,sJ)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:l[0]||(l[0]=u=>r.value=!1)})])):s.createCommentVNode("",!0),s.createElementVNode("div",aJ,[s.renderSlot(a.$slots,"default",{},()=>[s.createElementVNode("span",{innerHTML:t.content},null,8,lJ)])]),t.footer?(s.openBlock(),s.createElementBlock("div",cJ,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:l[1]||(l[1]=u=>r.value=!1)},s.toDisplayString(a.$t("common.close")),1)])):s.createCommentVNode("",!0)])]),_:3},8,["id","modelValue","hover","hover-delay","class"])]))}}),dJ={class:"popover-notification__header d-flex justify-content-between mb-2"},fJ={class:"popover-notification__title"},hJ=["onClick"],pJ=["innerHTML"],mJ=s.defineComponent({__name:"popover-notifications",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-notifications-${Math.random().toString(36).substr(2,9)}`},items:{type:Array,default:()=>[]},debounceItem:{type:Number,default:0},closeTimeout:{type:Number,default:8e3},collapsible:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=t,A=s.ref([]),r=s.ref([]),o=s.ref(!1),i=s.computed(()=>n.collapsible&&A.value.length>3);function a(h,p){A.value=A.value.filter(g=>g.id!==h.id)}s.watch(()=>n.items,(h,p)=>{const g=h.filter(B=>!p.some(y=>y.id===B.id));r.value=[...r.value,...g]});function l(){setTimeout(()=>{console.log("Queueing item:",r.value);const h=r.value.shift();h&&A.value.push({...h,closeTimeout:n.closeTimeout,visible:!0}),r.value.length>0&&l()},A.value.length?n.debounceItem:0)}function u(h){i.value&&(h.preventDefault(),h.stopPropagation(),o.value=!o.value)}function f(h){console.log("Adding item:",h),r.value.push(h),l()}return s.onMounted(()=>{r.value=n.items,r.value.length>3&&(o.value=!0),l()}),e({addItem:f}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["popover-notifications",{"popover-notifications--collapsed":o.value}]),style:{anchorName:"--popover-notifications"}},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(A.value,(g,B)=>(s.openBlock(),s.createBlock(Mg,{key:g.id,id:g.id,"close-timeout":g.closeTimeout,type:"manual",class:"popover-notification",modelValue:g.visible,"onUpdate:modelValue":[y=>g.visible=y,y=>a(g)],onClick:u},{default:s.withCtx(()=>[s.renderSlot(h.$slots,"item",{item:g},()=>[s.createElementVNode("div",dJ,[s.createElementVNode("span",fJ,s.toDisplayString(g.title),1),s.createElementVNode("button",{type:"button",class:"btn btn-close p-0",onClick:s.withModifiers(y=>g.visible=!1,["stop"]),"aria-label":"Close notification"},null,8,hJ)]),s.createElementVNode("span",{innerHTML:g.content},null,8,pJ)])]),_:2},1032,["id","close-timeout","modelValue","onUpdate:modelValue"]))),128))],2))}});/*!
159
+ `,"")}const lq=["normal","most-width","most-height","most-block-size","most-inline-size"],cq=["flip-block","flip-inline","flip-start"];function uq(t){return t.type==="Declaration"}function dq(t){return t.type==="Declaration"&&t.property==="position-try-fallbacks"}function fq(t){return t.type==="Declaration"&&t.property==="position-try-order"}function hq(t){return t.type==="Declaration"&&t.property==="position-try"}function pq(t){return t.type==="Atrule"&&t.name==="position-try"}function mq(t){return cq.includes(t)}function gq(t){return lq.includes(t)}function Bq(t,e){const n=document.querySelector(t);if(n){let A=wq(n);return e.forEach(r=>{A=xQ(A,r)}),A}}function yq(t,e){let n=t.declarations;return e.forEach(A=>{n=xQ(n,A)}),n}function wq(t){const e={};return WF.forEach(n=>{const A=sr(t,`--${n}-${dQ}`);A&&(e[n]=A)}),e}const Cq={"flip-block":{top:"bottom",bottom:"top","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","margin-top":"margin-bottom","margin-bottom":"margin-top"},"flip-inline":{left:"right",right:"left","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","margin-left":"margin-right","margin-right":"margin-left"},"flip-start":{left:"top",right:"bottom",top:"left",bottom:"right","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","inset-block":"inset-inline","inset-inline":"inset-block"}},bq={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-inline":{left:"right",right:"left",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-start":{top:"left",left:"top",right:"bottom",bottom:"right"}},vq={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start"},"flip-inline":{left:"right",right:"left",start:"end",end:"start"},"flip-start":{}};function Eq(t,e){return Cq[e][t]||t}function kq(t,e){return bq[e][t]||t}function Sq(t,e){if(e==="flip-start")return t;{const n=vq[e];return t.split("-").map(A=>n[A]||A).join("-")}}function Fq(t,e,n){if(t==="margin"){const[A,r,o,i]=e.children.toArray();n==="flip-block"?i?e.children.fromArray([o,r,A,i]):o&&e.children.fromArray([o,r,A]):n==="flip-inline"&&i&&e.children.fromArray([A,i,o,r])}else if(t==="margin-block"){const[A,r]=e.children.toArray();n==="flip-block"&&r&&e.children.fromArray([r,A])}else if(t==="margin-inline"){const[A,r]=e.children.toArray();n==="flip-inline"&&r&&e.children.fromArray([r,A])}}const Qq=(t,e)=>{var n;return((n=Ii(`#id{${t}: ${e};}`).children.first)==null?void 0:n.block.children.first).value};function xQ(t,e){const n={};return Object.entries(t).forEach(([A,r])=>{const o=A,i=Qq(o,r),a=Eq(o,e);a!==o&&(n[o]!=null||(n[o]="revert")),Ui(i,{visit:"Function",enter(l){sf(l)&&l.children.forEach(u=>{cc(u)&&YF(u.name)&&(u.name=kq(u.name,e))})}}),o==="position-area"&&i.children.forEach(l=>{cc(l)&&bQ(l.name)&&(l.name=Sq(l.name,e))}),o.startsWith("margin")&&Fq(o,i,e),n[a]=UA(i)}),n}function UQ(t){const e=Ej(t),n=[];return e.forEach(A=>{const r={atRules:[],tactics:[],positionAreas:[]};A.forEach(o=>{mq(o.name)?r.tactics.push(o.name):o.name.startsWith("--")?r.atRules.push(o.name):bQ(o.name)&&r.positionAreas.push(o.name)}),r.positionAreas.length?n.push({positionArea:r.positionAreas[0],type:"position-area"}):r.atRules.length&&r.tactics.length?n.push({tactics:r.tactics,atRule:r.atRules[0],type:"at-rule-with-try-tactic"}):r.atRules.length?n.push({atRule:r.atRules[0],type:"at-rule"}):r.tactics.length&&n.push({tactics:r.tactics,type:"try-tactic"})}),n}function xq(t){return dq(t)&&t.value.children.first?UQ(t.value.children):[]}function Uq(t){if(hq(t)&&t.value.children.first){const e=of(t);let n;const A=e.value.children.first.name;A&&gq(A)&&(n=A,e.value.children.shift());const r=UQ(e.value.children);return{order:n,options:r}}return{}}function Iq(t){return fq(t)&&t.value.children.first?{order:t.value.children.first.name}:{}}function _q(t){const{order:e,options:n}=Uq(t);if(e||n)return{order:e,options:n};const{order:A}=Iq(t),r=xq(t);return A||r?{order:A,options:r}:{}}function Tq(t){return ac(t.property)||u7(t.property)||KF(t.property)||d7(t.property)||["position-anchor","position-area"].includes(t.property)}function Dq(t){var e,n;if(pq(t)&&(e=t.prelude)!=null&&e.value&&(n=t.block)!=null&&n.children){const A=t.prelude.value,r=t.block.children.filter(i=>uq(i)&&Tq(i)),o={uuid:`${A}-try-${Lr(12)}`,declarations:Object.fromEntries(r.map(i=>[i.property,UA(i.value)]))};return{name:A,tryBlock:o}}return{}}function Mq(t){const e={},n={},A={};for(const r of t){const o=Ii(r.css);Ui(o,{visit:"Atrule",enter(i){const{name:a,tryBlock:l}=Dq(i);a&&l&&(e[a]=l)}})}for(const r of t){let o=!1;const i=new Set,a=Ii(r.css);Ui(a,{visit:"Declaration",enter(l){var u;const f=(u=this.rule)==null?void 0:u.prelude,h=gB(f);if(!h.length)return;const{order:p,options:g}=_q(l),B={};p&&(B.order=p),h.forEach(({selector:y})=>{var C;g?.forEach(w=>{var F;let _;if(w.type==="at-rule")_=w.atRule;else if(w.type==="try-tactic"){_=`${y}-${w.tactics.join("-")}`;const D=Bq(y,w.tactics);D&&(e[_]={uuid:`${y}-${w.tactics.join("-")}-try-${Lr(12)}`,declarations:D})}else if(w.type==="at-rule-with-try-tactic"){_=`${y}-${w.atRule}-${w.tactics.join("-")}`;const D=e[w.atRule],P=yq(D,w.tactics);P&&(e[_]={uuid:`${y}-${w.atRule}-${w.tactics.join("-")}-try-${Lr(12)}`,declarations:P})}if(_&&e[_]){const D=`[data-anchor-polyfill="${e[_].uuid}"]`;n[D]!=null||(n[D]=[]),n[D].push(y),i.has(_)||(B.fallbacks!=null||(B.fallbacks=[]),B.fallbacks.push(e[_]),i.add(_),(F=this.stylesheet)==null||F.children.prependData({type:"Rule",prelude:{type:"Raw",value:D},block:{type:"Block",children:new BA().fromArray(Object.entries(e[_].declarations).map(([P,T])=>({type:"Declaration",important:!0,property:P,value:{type:"Raw",value:T}})))}}),o=!0)}}),Object.keys(B).length>0&&(A[y]?(B.order&&(A[y].order=B.order),B.fallbacks&&((C=A[y]).fallbacks!=null||(C.fallbacks=[]),A[y].fallbacks.push(...B.fallbacks))):A[y]=B)})}}),o&&(r.css=UA(a),r.changed=!0)}return{fallbackTargets:n,validPositions:A}}function Oq(t,e){return!t||t===e?!1:IQ(t)?t.document.contains(e):t.contains(e)}function IQ(t){return!!(t&&t===t.window)}function Lq(t){return Ta(t,"position","fixed")}function bB(t){return!!(t&&(Lq(t)||Ta(t,"position","absolute")))}function _Q(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING}function Nq(t){return Wt(this,null,function*(){return yield VA.getOffsetParent(t)})}function vB(t){return Wt(this,null,function*(){if(!["absolute","fixed"].includes(sr(t,"position")))return yield Nq(t);let e=t.parentElement;for(;e;){if(!Ta(e,"position","static")&&Ta(e,"display","block"))return e;e=e.parentElement}return window})}function Hq(t,e,n,A){return Wt(this,null,function*(){const r=yield vB(t),o=yield vB(n);if(!(Oq(o,t)||IQ(o))||r===o&&!(!bB(t)||_Q(t,n)))return!1;if(r!==o){let i;const a=[];for(i=r;i&&i!==o&&i!==window;)a.push(i),i=yield vB(i);const l=a[a.length-1];if(l instanceof HTMLElement&&!(!bB(l)||_Q(l,n)))return!1}{let i=t.parentElement;for(;i;){if(Ta(i,"content-visibility","hidden"))return!1;i=i.parentElement}}return!(e&&A&&TQ(t,e,A)!==TQ(n,e,A))})}function TQ(t,e,n){for(;!(t.matches(n)&&Dj(t,e));){if(!t.parentElement)return null;t=t.parentElement}return t}function Pq(t,e,n,A){return Wt(this,null,function*(){if(!(t instanceof HTMLElement&&n.length&&bB(t)))return null;const r=n.flatMap(_j).filter(i=>Tj(i,e)),o=A.map(i=>i.selector).join(",")||null;for(let i=r.length-1;i>=0;i--){const a=r[i],l="fakePseudoElement"in a;if(yield Hq(l?a.fakePseudoElement:a,e,t,o))return l&&a.removeFakePseudoElement(),a}return null})}function Rq(t){return t.type==="Declaration"&&t.property==="anchor-name"}function Vq(t){return t.type==="Declaration"&&t.property==="anchor-scope"}function EB(t){return!!(t&&t.type==="Function"&&t.name==="anchor-size")}function af(t){return!!(t&&t.type==="Function"&&t.name==="var")}function cc(t){return!!(t.type==="Identifier"&&t.name)}function $q(t){return!!(t.type==="Percentage"&&t.value)}function DQ(t,e){let n,A,r,o="",i=!1,a;const l=[];t.children.toArray().forEach(p=>{if(i){o=`${o}${UA(p)}`;return}if(p.type==="Operator"&&p.value===","){i=!0;return}l.push(p)});let[u,f]=l;if(f||(f=u,u=void 0),u&&(cc(u)&&u.name.startsWith("--")?n=u.name:af(u)&&u.children.first&&(a=u.children.first.name)),f)if(sf(t)){if(cc(f)&&YF(f.name))A=f.name;else if($q(f)){const p=Number(f.value);A=Number.isNaN(p)?void 0:p}}else EB(t)&&cc(f)&&m7(f.name)&&(r=f.name);const h=`--anchor-${Lr(12)}`;return Object.assign(t,{type:"Raw",value:`var(${h})`,children:null}),Reflect.deleteProperty(t,"name"),{anchorName:n,anchorSide:A,anchorSize:r,fallbackValue:o||"0px",customPropName:a,uuid:h}}function MQ(t){return t.value.children.map(({name:e})=>e)}let uc={},Qs={},xs={},dc={},Us={};function Kq(){uc={},Qs={},xs={},dc={},Us={}}function zq(t,e){var n;if((sf(t)||EB(t))&&e){if(e.property.startsWith("--")){const A=UA(e.value),r=DQ(t);return dc[r.uuid]=A,xs[e.property]=[...(n=xs[e.property])!=null?n:[],r],{changed:!0}}if(sf(t)&&ac(e.property)||EB(t)&&GF(e.property)){const A=DQ(t);return{prop:e.property,data:A,changed:!0}}}return{}}function OQ(t,e){return Wt(this,null,function*(){let n=e?.anchorName;const A=e?.customPropName;if(t&&!n){const a=sr(t,"position-anchor");a?n=a:A&&(n=sr(t,A))}const r=n?uc[n]||[]:[],o=n?Qs[fQ.All]||[]:[],i=n?Qs[n]||[]:[];return yield Pq(t,n||null,r,[...o,...i])})}function Wq(t){return Wt(this,null,function*(){var e,n,A,r,o,i,a,l,u,f,h;const p={},g={};Kq();const{fallbackTargets:B,validPositions:y}=Mq(t);for(const P of t){let T=!1;const H=Ii(P.css);Ui(H,function(te){var Z,ne,pe,Be;const we=(Z=this.rule)==null?void 0:Z.prelude,R=gB(we);if(Rq(te)&&R.length)for(const I of MQ(te))uc[I]!=null||(uc[I]=[]),uc[I].push(...R);if(Vq(te)&&R.length)for(const I of MQ(te))Qs[I]!=null||(Qs[I]=[]),Qs[I].push(...R);const{prop:K,data:N,changed:k}=zq(te,this.declaration);if(K&&N&&R.length)for(const{selector:I}of R)p[I]=QA(Rn({},p[I]),{[K]:[...(pe=(ne=p[I])==null?void 0:ne[K])!=null?pe:[],N]});let E;if(this.block&&(E=rq(te),E)){oq(E,this.block);for(const{selector:I}of R)g[I]=[...(Be=g[I])!=null?Be:[],E]}(k||E)&&(T=!0)}),T&&(P.css=UA(H),P.changed=!0)}const C=new Set(Object.keys(xs)),w={},F=P=>{var T,H,te,Z,ne;const pe=[],Be=new Set((H=(T=w[P])==null?void 0:T.names)!=null?H:[]);for(;Be.size>0;)for(const we of Be)pe.push(...(te=xs[we])!=null?te:[]),Be.delete(we),(ne=(Z=w[we])==null?void 0:Z.names)!=null&&ne.length&&w[we].names.forEach(R=>Be.add(R));return pe};for(;C.size>0;){const P=[];for(const T of t){let H=!1;const te=Ii(T.css);Ui(te,{visit:"Function",enter(Z){var ne,pe;const Be=(ne=this.rule)==null?void 0:ne.prelude,we=this.declaration,R=we?.property;if(Be?.children.isEmpty===!1&&af(Z)&&we&&R&&Z.children.first&&C.has(Z.children.first.name)&&R.startsWith("--")){const K=Z.children.first,N=(pe=xs[K.name])!=null?pe:[],k=F(K.name);if(!(N.length||k.length))return;const E=`${K.name}-anchor-${Lr(12)}`,I=UA(we.value);dc[E]=I,w[R]||(w[R]={names:[],uuids:[]});const Q=w[R];Q.names.includes(K.name)||Q.names.push(K.name),Q.uuids.push(E),P.push(R),K.name=E,H=!0}}}),H&&(T.css=UA(te),T.changed=!0)}C.clear(),P.forEach(T=>C.add(T))}for(const P of t){let T=!1;const H=Ii(P.css);Ui(H,{visit:"Function",enter(te){var Z,ne,pe,Be,we,R,K;const N=(Z=this.rule)==null?void 0:Z.prelude,k=this.declaration,E=k?.property;if(N?.children.isEmpty===!1&&af(te)&&k&&E&&te.children.first&&(ac(E)||KF(E))){const I=te.children.first,Q=(ne=xs[I.name])!=null?ne:[],v=F(I.name);if(!(Q.length||v.length))return;const W=`${E}-${Lr(12)}`;if(v.length){const $=new Set([I.name]);for(;$.size>0;)for(const J of $){const j=w[J];if((pe=j?.names)!=null&&pe.length&&(Be=j?.uuids)!=null&&Be.length)for(const S of j.names)for(const G of j.uuids)Us[G]=QA(Rn({},Us[G]),{[W]:`${S}-${W}`});$.delete(J),(we=j?.names)!=null&&we.length&&j.names.forEach(S=>$.add(S))}}const M=gB(N);for(const $ of[...Q,...v]){const J=Rn({},$),j=`--anchor-${Lr(12)}-${E}`,S=J.uuid;J.uuid=j;for(const{selector:G}of M)p[G]=QA(Rn({},p[G]),{[E]:[...(K=(R=p[G])==null?void 0:R[E])!=null?K:[],J]});Us[S]=QA(Rn({},Us[S]),{[W]:j})}I.name=`${I.name}-${W}`,T=!0}}}),T&&(P.css=UA(H),P.changed=!0)}if(Object.keys(Us).length>0)for(const P of t){let T=!1;const H=Ii(P.css);Ui(H,{visit:"Function",enter(te){var Z,ne,pe,Be;if(af(te)&&(ne=(Z=te.children.first)==null?void 0:Z.name)!=null&&ne.startsWith("--")&&(Be=(pe=this.declaration)==null?void 0:pe.property)!=null&&Be.startsWith("--")&&this.block){const we=te.children.first,R=Us[we.name];if(R)for(const[K,N]of Object.entries(R))this.block.children.appendData({type:"Declaration",important:!1,property:`${this.declaration.property}-${K}`,value:{type:"Raw",value:UA(this.declaration.value).replace(`var(${we.name})`,`var(${N})`)}}),T=!0;dc[we.name]&&(this.declaration.value={type:"Raw",value:dc[we.name]},T=!0)}}}),T&&(P.css=UA(H),P.changed=!0)}const _=new Map;for(const[P,T]of Object.entries(p)){let H;P.startsWith("[data-anchor-polyfill=")&&(e=B[P])!=null&&e.length?H=document.querySelectorAll(B[P].join(",")):H=document.querySelectorAll(P);for(const[te,Z]of Object.entries(T))for(const ne of Z)for(const pe of H){const Be=yield OQ(pe,ne),we=`--anchor-${Lr(12)}`;_.set(pe,QA(Rn({},(n=_.get(pe))!=null?n:{}),{[ne.uuid]:we})),pe.setAttribute("style",`${ne.uuid}: var(${we}); ${(A=pe.getAttribute("style"))!=null?A:""}`),y[P]=QA(Rn({},y[P]),{declarations:QA(Rn({},(r=y[P])==null?void 0:r.declarations),{[te]:[...(a=(i=(o=y[P])==null?void 0:o.declarations)==null?void 0:i[te])!=null?a:[],QA(Rn({},ne),{anchorEl:Be,targetEl:pe,uuid:we})]})})}}const D={el:document.createElement("link"),changed:!1,created:!0,css:""};t.push(D);for(const[P,T]of Object.entries(g)){const H=document.querySelectorAll(P);for(const te of H){const Z=yield OQ(te);for(const ne of T){const pe=yield sq(te,ne,Z);D.css+=aq(pe.targetUUID,ne.selectorUUID),D.changed=!0,y[P]=QA(Rn({},y[P]),{declarations:QA(Rn({},(l=y[P])==null?void 0:l.declarations),{"position-area":[...(h=(f=(u=y[P])==null?void 0:u.declarations)==null?void 0:f["position-area"])!=null?h:[],pe]})})}}}return{rules:y,inlineStyles:_,anchorScopes:Qs}})}const Gq=["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","referrerpolicy","rel","type"];function LQ(t,e,n=!1){const A=[];for(const{el:r,css:o,changed:i,created:a=!1}of t){const l={el:r,css:o,changed:!1};if(i){if(r.tagName.toLowerCase()==="style")r.innerHTML=o;else if(r instanceof HTMLLinkElement){const u=document.createElement("style");u.textContent=o;for(const f of r.getAttributeNames())if(!f.startsWith("on")&&!Gq.includes(f)){const h=r.getAttribute(f);h!==null&&u.setAttribute(f,h)}r.hasAttribute("href")&&u.setAttribute("data-original-href",r.getAttribute("href")),a?(u.setAttribute("data-generated-by-polyfill","true"),document.head.insertAdjacentElement("beforeend",u)):(r.insertAdjacentElement("beforebegin",u),r.remove()),l.el=u}else if(r.hasAttribute("data-has-inline-styles")){const u=r.getAttribute("data-has-inline-styles");if(u){const f=`[data-has-inline-styles="${u}"]{`;let h=o.slice(f.length,-1);const p=e?.get(r);if(p)for(const[g,B]of Object.entries(p))h=`${g}: var(${B}); ${h}`;r.setAttribute("style",h)}}}n&&r.hasAttribute("data-has-inline-styles")&&r.removeAttribute("data-has-inline-styles"),A.push(l)}return A}const Yq=QA(Rn({},VA),{_c:new Map}),jq=(t,e)=>{let n;switch(t){case"start":case"self-start":n=0;break;case"end":case"self-end":n=100;break;default:typeof t=="number"&&!Number.isNaN(t)&&(n=t)}if(n!==void 0)return e?100-n:n},qq=(t,e)=>{let n;switch(t){case"block":case"self-block":n=e?"width":"height";break;case"inline":case"self-inline":n=e?"height":"width";break}return n},NQ=t=>{switch(t){case"top":case"bottom":return"y";case"left":case"right":return"x"}return null},Jq=t=>{switch(t){case"x":return"width";case"y":return"height"}return null},HQ=t=>sr(t,"display")==="inline",PQ=(t,e)=>(e==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"]).reduce((n,A)=>n+parseInt(sr(t,A),10),0)||0,lf=(t,e)=>parseInt(sr(t,`margin-${e}`),10)||0,Xq=t=>({top:lf(t,"top"),right:lf(t,"right"),bottom:lf(t,"bottom"),left:lf(t,"left")}),kB=t=>Wt(null,[t],function*({targetEl:e,targetProperty:n,anchorRect:A,anchorSide:r,anchorSize:o,fallback:i=null}){var a;if(!((o||r!==void 0)&&e&&A))return i;if(o){if(!GF(n))return i;let l;switch(o){case"width":case"height":l=o;break;default:{let u=!1;const f=sr(e,"writing-mode");u=f.startsWith("vertical-")||f.startsWith("sideways-"),l=qq(o,u)}}return l?`${A[l]}px`:i}if(r!==void 0){let l,u;const f=NQ(n);if(!(ac(n)&&f&&(!ac(r)||f===NQ(r))))return i;const h=["top","left"];switch(r){case"left":case"top":l=0;break;case"right":case"bottom":l=100;break;case"center":l=50;break;case"inside":l=h.includes(n)?0:100;break;case"outside":l=h.includes(n)?100:0;break;default:if(e){const B=(yield(a=VA.isRTL)==null?void 0:a.call(VA,e))||!1;l=jq(r,B)}}const p=typeof l=="number"&&!Number.isNaN(l),g=Jq(f);if(p&&g){(n==="bottom"||n==="right")&&(u=yield yB(e));let B=A[f]+A[g]*(l/100);switch(n){case"bottom":{if(!u)break;let y=u.clientHeight;if(y===0&&HQ(u)){const C=PQ(u,f);y=u.offsetHeight-C}B=y-B;break}case"right":{if(!u)break;let y=u.clientWidth;if(y===0&&HQ(u)){const C=PQ(u,f);y=u.offsetWidth-C}B=y-B;break}}return`${B}px`}}return i}),Zq=t=>"wrapperEl"in t,eJ=t=>"uuid"in t;function tJ(t,e=!1){return Wt(this,null,function*(){const n=document.documentElement;for(const[A,r]of Object.entries(t))for(const o of r){const i=o.anchorEl,a=o.targetEl;if(i&&a)if(Zq(o)){const l=o.wrapperEl,u=(f,h,p)=>Wt(null,null,function*(){return f===0?"0px":yield kB({targetEl:l,targetProperty:h,anchorRect:p,anchorSide:f})});$g(i,l,()=>Wt(null,null,function*(){const f=sr(a,BQ);l.setAttribute(yQ,f);const h=yield VA.getElementRects({reference:i,floating:l,strategy:"absolute"}),p=o.insets,g=yield u(p.block[0],"top",h.reference),B=yield u(p.block[1],"bottom",h.reference),y=yield u(p.inline[0],"left",h.reference),C=yield u(p.inline[1],"right",h.reference);n.style.setProperty(`${o.targetUUID}-top`,g||null),n.style.setProperty(`${o.targetUUID}-left`,y||null),n.style.setProperty(`${o.targetUUID}-right`,C||null),n.style.setProperty(`${o.targetUUID}-bottom`,B||null),n.style.setProperty(`${o.targetUUID}-justify-self`,o.alignments.inline),n.style.setProperty(`${o.targetUUID}-align-self`,o.alignments.block)}),{animationFrame:e})}else $g(i,a,()=>Wt(null,null,function*(){const l=yield VA.getElementRects({reference:i,floating:a,strategy:"absolute"}),u=yield kB({targetEl:a,targetProperty:A,anchorRect:l.reference,anchorSide:o.anchorSide,anchorSize:o.anchorSize,fallback:o.fallbackValue});n.style.setProperty(o.uuid,u)}),{animationFrame:e});else if(eJ(o)){const l=yield kB({targetProperty:A,anchorSide:o.anchorSide,anchorSize:o.anchorSize,fallback:o.fallbackValue});n.style.setProperty(o.uuid,l)}}})}function RQ(t,e){return Wt(this,null,function*(){const n=yield VA.getElementRects({reference:t,floating:t,strategy:"absolute"});return yield tz({x:t.offsetLeft,y:t.offsetTop,platform:Yq,rects:n,elements:{floating:t,reference:e},strategy:"absolute"},{padding:Xq(t)})})}function nJ(t,e,n=!1){return Wt(this,null,function*(){if(!e.length)return;const A=document.querySelectorAll(t);for(const r of A){let o=!1;const i=yield yB(r);$g({},r,()=>Wt(null,null,function*(){if(o)return;o=!0,r.removeAttribute("data-anchor-polyfill");const a=yield RQ(r,i);if(Object.values(a).every(l=>l<=0)){r.removeAttribute("data-anchor-polyfill-last-successful"),o=!1;return}for(const[l,{uuid:u}]of e.entries()){r.setAttribute("data-anchor-polyfill",u);const f=yield RQ(r,i);if(Object.values(f).every(h=>h<=0)){r.setAttribute("data-anchor-polyfill-last-successful",u),o=!1;break}if(l===e.length-1){const h=r.getAttribute("data-anchor-polyfill-last-successful");h?r.setAttribute("data-anchor-polyfill",h):r.removeAttribute("data-anchor-polyfill"),o=!1;break}}}),{animationFrame:n,layoutShift:!1})}})}function AJ(t,e=!1){return Wt(this,null,function*(){var n,A;for(const r of Object.values(t))yield tJ((n=r.declarations)!=null?n:{},e);for(const[r,o]of Object.entries(t))yield nJ(r,(A=o.fallbacks)!=null?A:[],e)})}function rJ(t={}){const e=typeof t=="boolean"?{useAnimationFrame:t}:t,n=e.useAnimationFrame===void 0?!!window.UPDATE_ANCHOR_ON_ANIMATION_FRAME:e.useAnimationFrame;return Array.isArray(e.elements)||(e.elements=void 0),Object.assign(e,{useAnimationFrame:n})}function oJ(t){return Wt(this,null,function*(){const e=rJ(window.ANCHOR_POSITIONING_POLYFILL_OPTIONS);let n=yield Hj(e.elements,e.excludeInlineStyles),A={},r;Sj();try{Qj(n)&&(n=LQ(n));const o=yield Wq(n);A=o.rules,r=o.inlineStyles}catch(o){throw kj(),o}return Object.values(A).length&&(LQ(n,r,!0),yield AJ(A,e.useAnimationFrame)),A})}const iJ={class:"popover-tooltip"},sJ=["popovertarget","disabled","aria-describedby","aria-label"],aJ={class:"popover-tooltip__content d-flex flex-column"},lJ={key:0,class:"popover-tooltip__header d-flex p-3 border-bottom"},cJ=["innerHTML"],uJ={class:"popover-tooltip__body"},dJ=["innerHTML"],fJ={key:1,class:"popover-tooltip__footer d-flex p-3 border-top"},hJ=s.defineComponent({__name:"popover-tooltip",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-tooltip-${Math.random().toString(36).substr(2,9)}`},size:{type:String},exclusive:{type:Boolean,default:!0},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},hover:{type:Boolean,default:!0},hoverDelay:{type:Number,default:400},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(a){A("update:modelValue",a)}}),o=s.ref(),i=s.ref();return s.onMounted(()=>{"anchorName"in document.documentElement.style||oJ().then(a=>{console.log("Running polyfill",a)})}),(a,l)=>(s.openBlock(),s.createElementBlock("span",iJ,[s.createElementVNode("button",{type:"button",popovertarget:t.id,disabled:t.disabled,"aria-describedby":t.id,"aria-label":t.ariaLabel||a.$te("common.moreInfo")?a.$t("common.moreInfo"):void 0,ref_key:"trigger",ref:o},[s.renderSlot(a.$slots,"button",{},()=>[l[3]||(l[3]=s.createElementVNode("span",{class:"popover-tooltip__trigger"}," i ",-1))])],8,sJ),s.createVNode(Mg,{id:t.id,modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=u=>r.value=u),hover:t.hover,"hover-delay":t.hoverDelay,ref_key:"dialog",ref:i,role:"tooltip",class:s.normalizeClass(t.size?`popover-tooltip--${t.size}`:"")},{default:s.withCtx(()=>[s.createElementVNode("div",aJ,[t.header?(s.openBlock(),s.createElementBlock("div",lJ,[t.title?(s.openBlock(),s.createElementBlock("h5",{key:0,class:"popover-tooltip__title",innerHTML:t.title},null,8,cJ)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:l[0]||(l[0]=u=>r.value=!1)})])):s.createCommentVNode("",!0),s.createElementVNode("div",uJ,[s.renderSlot(a.$slots,"default",{},()=>[s.createElementVNode("span",{innerHTML:t.content},null,8,dJ)])]),t.footer?(s.openBlock(),s.createElementBlock("div",fJ,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:l[1]||(l[1]=u=>r.value=!1)},s.toDisplayString(a.$t("common.close")),1)])):s.createCommentVNode("",!0)])]),_:3},8,["id","modelValue","hover","hover-delay","class"])]))}}),pJ={class:"popover-notification__header d-flex justify-content-between mb-2"},mJ={class:"popover-notification__title"},gJ=["onClick"],BJ=["innerHTML"],yJ=s.defineComponent({__name:"popover-notifications",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-notifications-${Math.random().toString(36).substr(2,9)}`},items:{type:Array,default:()=>[]},debounceItem:{type:Number,default:0},closeTimeout:{type:Number,default:8e3},collapsible:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=t,A=s.ref([]),r=s.ref([]),o=s.ref(!1),i=s.computed(()=>n.collapsible&&A.value.length>3);function a(h,p){A.value=A.value.filter(g=>g.id!==h.id)}s.watch(()=>n.items,(h,p)=>{const g=h.filter(B=>!p.some(y=>y.id===B.id));r.value=[...r.value,...g]});function l(){setTimeout(()=>{console.log("Queueing item:",r.value);const h=r.value.shift();h&&A.value.push({...h,closeTimeout:n.closeTimeout,visible:!0}),r.value.length>0&&l()},A.value.length?n.debounceItem:0)}function u(h){i.value&&(h.preventDefault(),h.stopPropagation(),o.value=!o.value)}function f(h){console.log("Adding item:",h),r.value.push(h),l()}return s.onMounted(()=>{r.value=n.items,r.value.length>3&&(o.value=!0),l()}),e({addItem:f}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["popover-notifications",{"popover-notifications--collapsed":o.value}]),style:{anchorName:"--popover-notifications"}},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(A.value,(g,B)=>(s.openBlock(),s.createBlock(Mg,{key:g.id,id:g.id,"close-timeout":g.closeTimeout,type:"manual",class:"popover-notification",modelValue:g.visible,"onUpdate:modelValue":[y=>g.visible=y,y=>a(g)],onClick:u},{default:s.withCtx(()=>[s.renderSlot(h.$slots,"item",{item:g},()=>[s.createElementVNode("div",pJ,[s.createElementVNode("span",mJ,s.toDisplayString(g.title),1),s.createElementVNode("button",{type:"button",class:"btn btn-close p-0",onClick:s.withModifiers(y=>g.visible=!1,["stop"]),"aria-label":"Close notification"},null,8,gJ)]),s.createElementVNode("span",{innerHTML:g.content},null,8,BJ)])]),_:2},1032,["id","close-timeout","modelValue","onUpdate:modelValue"]))),128))],2))}});/*!
160
160
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
161
161
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
162
162
  * Released under MIT License
@@ -173,13 +173,13 @@ function print() { __p += __j.call(arguments, '') }
173
173
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
174
174
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
175
175
  PERFORMANCE OF THIS SOFTWARE.
176
- ***************************************************************************** */var SB=function(t,e){return SB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,A){n.__proto__=A}||function(n,A){for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(n[r]=A[r])},SB(t,e)};function Nr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");SB(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var FB=function(){return FB=Object.assign||function(e){for(var n,A=1,r=arguments.length;A<r;A++){n=arguments[A];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},FB.apply(this,arguments)};function yA(t,e,n,A){function r(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(f){try{u(A.next(f))}catch(h){i(h)}}function l(f){try{u(A.throw(f))}catch(h){i(h)}}function u(f){f.done?o(f.value):r(f.value).then(a,l)}u((A=A.apply(t,[])).next())})}function rA(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},A,r,o,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(f){return l([u,f])}}function l(u){if(A)throw new TypeError("Generator is already executing.");for(;n;)try{if(A=1,r&&(o=u[0]&2?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],r=0}finally{A=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function cf(t,e,n){if(arguments.length===2)for(var A=0,r=e.length,o;A<r;A++)(o||!(A in e))&&(o||(o=Array.prototype.slice.call(e,0,A)),o[A]=e[A]);return t.concat(o||e)}for(var Oo=(function(){function t(e,n,A,r){this.left=e,this.top=n,this.width=A,this.height=r}return t.prototype.add=function(e,n,A,r){return new t(this.left+e,this.top+n,this.width+A,this.height+r)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var A=Array.from(n).find(function(r){return r.width!==0});return A?new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t})(),uf=function(t,e){return Oo.fromClientRect(t,e.getBoundingClientRect())},gJ=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var A=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),r=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new Oo(0,0,A,r)},df=function(t){for(var e=[],n=0,A=t.length;n<A;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var o=t.charCodeAt(n++);(o&64512)===56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),n--)}else e.push(r)}return e},yn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var A=[],r=-1,o="";++r<n;){var i=t[r];i<=65535?A.push(i):(i-=65536,A.push((i>>10)+55296,i%1024+56320)),(r+1===n||A.length>16384)&&(o+=String.fromCharCode.apply(String,A),A.length=0)}return o},VQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",BJ=typeof Uint8Array>"u"?[]:new Uint8Array(256),ff=0;ff<VQ.length;ff++)BJ[VQ.charCodeAt(ff)]=ff;for(var $Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fc=typeof Uint8Array>"u"?[]:new Uint8Array(256),hf=0;hf<$Q.length;hf++)fc[$Q.charCodeAt(hf)]=hf;for(var yJ=function(t){var e=t.length*.75,n=t.length,A,r=0,o,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(u)?u:new Uint8Array(u);for(A=0;A<n;A+=4)o=fc[t.charCodeAt(A)],i=fc[t.charCodeAt(A+1)],a=fc[t.charCodeAt(A+2)],l=fc[t.charCodeAt(A+3)],f[r++]=o<<2|i>>4,f[r++]=(i&15)<<4|a>>2,f[r++]=(a&3)<<6|l&63;return u},wJ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=2)n.push(t[A+1]<<8|t[A]);return n},CJ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=4)n.push(t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A]);return n},Is=5,QB=11,xB=2,bJ=QB-Is,KQ=65536>>Is,vJ=1<<Is,UB=vJ-1,EJ=1024>>Is,kJ=KQ+EJ,SJ=kJ,FJ=32,QJ=SJ+FJ,xJ=65536>>QB,UJ=1<<bJ,IJ=UJ-1,zQ=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},_J=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},TJ=function(t,e){var n=yJ(t),A=Array.isArray(n)?CJ(n):new Uint32Array(n),r=Array.isArray(n)?wJ(n):new Uint16Array(n),o=24,i=zQ(r,o/2,A[4]/2),a=A[5]===2?zQ(r,(o+A[4])/2):_J(A,Math.ceil((o+A[4])/4));return new DJ(A[0],A[1],A[2],A[3],i,a)},DJ=(function(){function t(e,n,A,r,o,i){this.initialValue=e,this.errorValue=n,this.highStart=A,this.highValueIndex=r,this.index=o,this.data=i}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>Is],n=(n<<xB)+(e&UB),this.data[n];if(e<=65535)return n=this.index[KQ+(e-55296>>Is)],n=(n<<xB)+(e&UB),this.data[n];if(e<this.highStart)return n=QJ-xJ+(e>>QB),n=this.index[n],n+=e>>Is&IJ,n=this.index[n],n=(n<<xB)+(e&UB),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),WQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",MJ=typeof Uint8Array>"u"?[]:new Uint8Array(256),pf=0;pf<WQ.length;pf++)MJ[WQ.charCodeAt(pf)]=pf;var OJ="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",GQ=50,LJ=1,YQ=2,jQ=3,NJ=4,HJ=5,qQ=7,JQ=8,XQ=9,_i=10,IB=11,ZQ=12,_B=13,PJ=14,hc=15,TB=16,mf=17,pc=18,RJ=19,ex=20,DB=21,mc=22,MB=23,Da=24,WA=25,gc=26,Bc=27,Ma=28,VJ=29,_s=30,$J=31,gf=32,Bf=33,OB=34,LB=35,NB=36,yc=37,HB=38,yf=39,wf=40,PB=41,tx=42,KJ=43,zJ=[9001,65288],nx="!",mt="×",Cf="÷",RB=TJ(OJ),Lo=[_s,NB],VB=[LJ,YQ,jQ,HJ],Ax=[_i,JQ],rx=[Bc,gc],WJ=VB.concat(Ax),ox=[HB,yf,wf,OB,LB],GJ=[hc,_B],YJ=function(t,e){e===void 0&&(e="strict");var n=[],A=[],r=[];return t.forEach(function(o,i){var a=RB.get(o);if(a>GQ?(r.push(!0),a-=GQ):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(o)!==-1)return A.push(i),n.push(TB);if(a===NJ||a===IB){if(i===0)return A.push(i),n.push(_s);var l=n[i-1];return WJ.indexOf(l)===-1?(A.push(A[i-1]),n.push(l)):(A.push(i),n.push(_s))}if(A.push(i),a===$J)return n.push(e==="strict"?DB:yc);if(a===tx||a===VJ)return n.push(_s);if(a===KJ)return o>=131072&&o<=196605||o>=196608&&o<=262141?n.push(yc):n.push(_s);n.push(a)}),[A,n,r]},$B=function(t,e,n,A){var r=A[n];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var o=n;o<=A.length;){o++;var i=A[o];if(i===e)return!0;if(i!==_i)break}if(r===_i)for(var o=n;o>0;){o--;var a=A[o];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var l=n;l<=A.length;){l++;var i=A[l];if(i===e)return!0;if(i!==_i)break}if(a!==_i)break}return!1},ix=function(t,e){for(var n=t;n>=0;){var A=e[n];if(A===_i)n--;else return A}return 0},jJ=function(t,e,n,A,r){if(n[A]===0)return mt;var o=A-1;if(Array.isArray(r)&&r[o]===!0)return mt;var i=o-1,a=o+1,l=e[o],u=i>=0?e[i]:0,f=e[a];if(l===YQ&&f===jQ)return mt;if(VB.indexOf(l)!==-1)return nx;if(VB.indexOf(f)!==-1||Ax.indexOf(f)!==-1)return mt;if(ix(o,e)===JQ)return Cf;if(RB.get(t[o])===IB||(l===gf||l===Bf)&&RB.get(t[a])===IB||l===qQ||f===qQ||l===XQ||[_i,_B,hc].indexOf(l)===-1&&f===XQ||[mf,pc,RJ,Da,Ma].indexOf(f)!==-1||ix(o,e)===mc||$B(MB,mc,o,e)||$B([mf,pc],DB,o,e)||$B(ZQ,ZQ,o,e))return mt;if(l===_i)return Cf;if(l===MB||f===MB)return mt;if(f===TB||l===TB)return Cf;if([_B,hc,DB].indexOf(f)!==-1||l===PJ||u===NB&&GJ.indexOf(l)!==-1||l===Ma&&f===NB||f===ex||Lo.indexOf(f)!==-1&&l===WA||Lo.indexOf(l)!==-1&&f===WA||l===Bc&&[yc,gf,Bf].indexOf(f)!==-1||[yc,gf,Bf].indexOf(l)!==-1&&f===gc||Lo.indexOf(l)!==-1&&rx.indexOf(f)!==-1||rx.indexOf(l)!==-1&&Lo.indexOf(f)!==-1||[Bc,gc].indexOf(l)!==-1&&(f===WA||[mc,hc].indexOf(f)!==-1&&e[a+1]===WA)||[mc,hc].indexOf(l)!==-1&&f===WA||l===WA&&[WA,Ma,Da].indexOf(f)!==-1)return mt;if([WA,Ma,Da,mf,pc].indexOf(f)!==-1)for(var h=o;h>=0;){var p=e[h];if(p===WA)return mt;if([Ma,Da].indexOf(p)!==-1)h--;else break}if([Bc,gc].indexOf(f)!==-1)for(var h=[mf,pc].indexOf(l)!==-1?i:o;h>=0;){var p=e[h];if(p===WA)return mt;if([Ma,Da].indexOf(p)!==-1)h--;else break}if(HB===l&&[HB,yf,OB,LB].indexOf(f)!==-1||[yf,OB].indexOf(l)!==-1&&[yf,wf].indexOf(f)!==-1||[wf,LB].indexOf(l)!==-1&&f===wf||ox.indexOf(l)!==-1&&[ex,gc].indexOf(f)!==-1||ox.indexOf(f)!==-1&&l===Bc||Lo.indexOf(l)!==-1&&Lo.indexOf(f)!==-1||l===Da&&Lo.indexOf(f)!==-1||Lo.concat(WA).indexOf(l)!==-1&&f===mc&&zJ.indexOf(t[a])===-1||Lo.concat(WA).indexOf(f)!==-1&&l===pc)return mt;if(l===PB&&f===PB){for(var g=n[o],B=1;g>0&&(g--,e[g]===PB);)B++;if(B%2!==0)return mt}return l===gf&&f===Bf?mt:Cf},qJ=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=YJ(t,e.lineBreak),A=n[0],r=n[1],o=n[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[WA,_s,tx].indexOf(a)!==-1?yc:a}));var i=e.wordBreak==="keep-all"?o.map(function(a,l){return a&&t[l]>=19968&&t[l]<=40959}):void 0;return[A,r,i]},JJ=(function(){function t(e,n,A,r){this.codePoints=e,this.required=n===nx,this.start=A,this.end=r}return t.prototype.slice=function(){return yn.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),XJ=function(t,e){var n=df(t),A=qJ(n,e),r=A[0],o=A[1],i=A[2],a=n.length,l=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=mt;u<a&&(f=jJ(n,o,r,++u,i))===mt;);if(f!==mt||u===a){var h=new JJ(n,f,l,u);return l=u,{value:h,done:!1}}return{done:!0,value:null}}}},ZJ=1,eX=2,wc=4,sx=8,bf=10,ax=47,Cc=92,tX=9,nX=32,vf=34,bc=61,AX=35,rX=36,oX=37,Ef=39,kf=40,vc=41,iX=95,IA=45,sX=33,aX=60,lX=62,cX=64,uX=91,dX=93,fX=61,hX=123,Sf=63,pX=125,lx=124,mX=126,gX=128,cx=65533,KB=42,Ts=43,BX=44,yX=58,wX=59,Ec=46,CX=0,bX=8,vX=11,EX=14,kX=31,SX=127,co=-1,ux=48,dx=97,fx=101,FX=102,QX=117,xX=122,hx=65,px=69,mx=70,UX=85,IX=90,oA=function(t){return t>=ux&&t<=57},_X=function(t){return t>=55296&&t<=57343},Oa=function(t){return oA(t)||t>=hx&&t<=mx||t>=dx&&t<=FX},TX=function(t){return t>=dx&&t<=xX},DX=function(t){return t>=hx&&t<=IX},MX=function(t){return TX(t)||DX(t)},OX=function(t){return t>=gX},Ff=function(t){return t===bf||t===tX||t===nX},Qf=function(t){return MX(t)||OX(t)||t===iX},gx=function(t){return Qf(t)||oA(t)||t===IA},LX=function(t){return t>=CX&&t<=bX||t===vX||t>=EX&&t<=kX||t===SX},Ti=function(t,e){return t!==Cc?!1:e!==bf},xf=function(t,e,n){return t===IA?Qf(e)||Ti(e,n):Qf(t)?!0:!!(t===Cc&&Ti(t,e))},zB=function(t,e,n){return t===Ts||t===IA?oA(e)?!0:e===Ec&&oA(n):oA(t===Ec?e:t)},NX=function(t){var e=0,n=1;(t[e]===Ts||t[e]===IA)&&(t[e]===IA&&(n=-1),e++);for(var A=[];oA(t[e]);)A.push(t[e++]);var r=A.length?parseInt(yn.apply(void 0,A),10):0;t[e]===Ec&&e++;for(var o=[];oA(t[e]);)o.push(t[e++]);var i=o.length,a=i?parseInt(yn.apply(void 0,o),10):0;(t[e]===px||t[e]===fx)&&e++;var l=1;(t[e]===Ts||t[e]===IA)&&(t[e]===IA&&(l=-1),e++);for(var u=[];oA(t[e]);)u.push(t[e++]);var f=u.length?parseInt(yn.apply(void 0,u),10):0;return n*(r+a*Math.pow(10,-i))*Math.pow(10,l*f)},HX={type:2},PX={type:3},RX={type:4},VX={type:13},$X={type:8},KX={type:21},zX={type:9},WX={type:10},GX={type:11},YX={type:12},jX={type:14},Uf={type:23},qX={type:1},JX={type:25},XX={type:24},ZX={type:26},e9={type:27},t9={type:28},n9={type:29},A9={type:31},WB={type:32},Bx=(function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(df(e))},t.prototype.read=function(){for(var e=[],n=this.consumeToken();n!==WB;)e.push(n),n=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case vf:return this.consumeStringToken(vf);case AX:var n=this.peekCodePoint(0),A=this.peekCodePoint(1),r=this.peekCodePoint(2);if(gx(n)||Ti(A,r)){var o=xf(n,A,r)?eX:ZJ,i=this.consumeName();return{type:5,value:i,flags:o}}break;case rX:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),VX;break;case Ef:return this.consumeStringToken(Ef);case kf:return HX;case vc:return PX;case KB:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),jX;break;case Ts:if(zB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case BX:return RX;case IA:var a=e,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(zB(a,l,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(xf(a,l,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===IA&&u===lX)return this.consumeCodePoint(),this.consumeCodePoint(),XX;break;case Ec:if(zB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ax:if(this.peekCodePoint(0)===KB)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===KB&&(f=this.consumeCodePoint(),f===ax))return this.consumeToken();if(f===co)return this.consumeToken()}break;case yX:return ZX;case wX:return e9;case aX:if(this.peekCodePoint(0)===sX&&this.peekCodePoint(1)===IA&&this.peekCodePoint(2)===IA)return this.consumeCodePoint(),this.consumeCodePoint(),JX;break;case cX:var h=this.peekCodePoint(0),p=this.peekCodePoint(1),g=this.peekCodePoint(2);if(xf(h,p,g)){var i=this.consumeName();return{type:7,value:i}}break;case uX:return t9;case Cc:if(Ti(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case dX:return n9;case fX:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),$X;break;case hX:return GX;case pX:return YX;case QX:case UX:var B=this.peekCodePoint(0),y=this.peekCodePoint(1);return B===Ts&&(Oa(y)||y===Sf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case lx:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),zX;if(this.peekCodePoint(0)===lx)return this.consumeCodePoint(),KX;break;case mX:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),WX;break;case co:return WB}return Ff(e)?(this.consumeWhiteSpace(),A9):oA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Qf(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:yn(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],n=this.consumeCodePoint();Oa(n)&&e.length<6;)e.push(n),n=this.consumeCodePoint();for(var A=!1;n===Sf&&e.length<6;)e.push(n),n=this.consumeCodePoint(),A=!0;if(A){var r=parseInt(yn.apply(void 0,e.map(function(l){return l===Sf?ux:l})),16),o=parseInt(yn.apply(void 0,e.map(function(l){return l===Sf?mx:l})),16);return{type:30,start:r,end:o}}var i=parseInt(yn.apply(void 0,e),16);if(this.peekCodePoint(0)===IA&&Oa(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var a=[];Oa(n)&&a.length<6;)a.push(n),n=this.consumeCodePoint();var o=parseInt(yn.apply(void 0,a),16);return{type:30,start:i,end:o}}else return{type:30,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===kf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===kf?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===co)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===Ef||n===vf){var A=this.consumeStringToken(this.consumeCodePoint());return A.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===co||this.peekCodePoint(0)===vc)?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),Uf)}for(;;){var r=this.consumeCodePoint();if(r===co||r===vc)return{type:22,value:yn.apply(void 0,e)};if(Ff(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===co||this.peekCodePoint(0)===vc?(this.consumeCodePoint(),{type:22,value:yn.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Uf);if(r===vf||r===Ef||r===kf||LX(r))return this.consumeBadUrlRemnants(),Uf;if(r===Cc)if(Ti(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Uf;else e.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Ff(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===vc||e===co)return;Ti(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var n=5e4,A="";e>0;){var r=Math.min(n,e);A+=yn.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),A},t.prototype.consumeStringToken=function(e){var n="",A=0;do{var r=this._value[A];if(r===co||r===void 0||r===e)return n+=this.consumeStringSlice(A),{type:0,value:n};if(r===bf)return this._value.splice(0,A),qX;if(r===Cc){var o=this._value[A+1];o!==co&&o!==void 0&&(o===bf?(n+=this.consumeStringSlice(A),A=-1,this._value.shift()):Ti(r,o)&&(n+=this.consumeStringSlice(A),n+=yn(this.consumeEscapedCodePoint()),A=-1))}A++}while(!0)},t.prototype.consumeNumber=function(){var e=[],n=wc,A=this.peekCodePoint(0);for((A===Ts||A===IA)&&e.push(this.consumeCodePoint());oA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(A===Ec&&oA(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=sx;oA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((A===px||A===fx)&&((r===Ts||r===IA)&&oA(o)||oA(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=sx;oA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[NX(e),n]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),n=e[0],A=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(xf(r,o,i)){var a=this.consumeName();return{type:15,number:n,flags:A,unit:a}}return r===oX?(this.consumeCodePoint(),{type:16,number:n,flags:A}):{type:17,number:n,flags:A}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Oa(e)){for(var n=yn(e);Oa(this.peekCodePoint(0))&&n.length<6;)n+=yn(this.consumeCodePoint());Ff(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(n,16);return A===0||_X(A)||A>1114111?cx:A}return e===co?cx:e},t.prototype.consumeName=function(){for(var e="";;){var n=this.consumeCodePoint();if(gx(n))e+=yn(n);else if(Ti(n,this.peekCodePoint(0)))e+=yn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),e}},t})(),yx=(function(){function t(e){this._tokens=e}return t.create=function(e){var n=new Bx;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var n=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var n=this.consumeComponentValue();if(n.type===32)return e;e.push(n),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var n={type:e,values:[]},A=this.consumeToken();;){if(A.type===32||o9(A,e))return n;this.reconsumeToken(A),n.values.push(this.consumeComponentValue()),A=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var n={name:e.value,values:[],type:18};;){var A=this.consumeToken();if(A.type===32||A.type===3)return n;this.reconsumeToken(A),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?WB:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t})(),kc=function(t){return t.type===15},La=function(t){return t.type===17},Lt=function(t){return t.type===20},r9=function(t){return t.type===0},GB=function(t,e){return Lt(t)&&t.value===e},wx=function(t){return t.type!==31},Na=function(t){return t.type!==31&&t.type!==4},uo=function(t){var e=[],n=[];return t.forEach(function(A){if(A.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}A.type!==31&&n.push(A)}),n.length&&e.push(n),e},o9=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Di=function(t){return t.type===17||t.type===15},Fn=function(t){return t.type===16||Di(t)},Cx=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Yn={type:17,number:0,flags:wc},YB={type:16,number:50,flags:wc},Mi={type:16,number:100,flags:wc},Sc=function(t,e,n){var A=t[0],r=t[1];return[Rt(A,e),Rt(typeof r<"u"?r:A,n)]},Rt=function(t,e){if(t.type===16)return t.number/100*e;if(kc(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},bx="deg",vx="grad",Ex="rad",kx="turn",If={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case bx:return Math.PI*e.number/180;case vx:return Math.PI/200*e.number;case Ex:return e.number;case kx:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Sx=function(t){return t.type===15&&(t.unit===bx||t.unit===vx||t.unit===Ex||t.unit===kx)},Fx=function(t){var e=t.filter(Lt).map(function(n){return n.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Yn,Yn];case"to top":case"bottom":return ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Yn,Mi];case"to right":case"left":return ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Mi,Mi];case"to bottom":case"top":return ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Mi,Yn];case"to left":case"right":return ar(270)}return 0},ar=function(t){return Math.PI*t/180},Oi={name:"color",parse:function(t,e){if(e.type===18){var n=i9[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(e.type===5){if(e.value.length===3){var A=e.value.substring(0,1),r=e.value.substring(1,2),o=e.value.substring(2,3);return Ni(parseInt(A+A,16),parseInt(r+r,16),parseInt(o+o,16),1)}if(e.value.length===4){var A=e.value.substring(0,1),r=e.value.substring(1,2),o=e.value.substring(2,3),i=e.value.substring(3,4);return Ni(parseInt(A+A,16),parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16)/255)}if(e.value.length===6){var A=e.value.substring(0,2),r=e.value.substring(2,4),o=e.value.substring(4,6);return Ni(parseInt(A,16),parseInt(r,16),parseInt(o,16),1)}if(e.value.length===8){var A=e.value.substring(0,2),r=e.value.substring(2,4),o=e.value.substring(4,6),i=e.value.substring(6,8);return Ni(parseInt(A,16),parseInt(r,16),parseInt(o,16),parseInt(i,16)/255)}}if(e.type===20){var a=No[e.value.toUpperCase()];if(typeof a<"u")return a}return No.TRANSPARENT}},Li=function(t){return(255&t)===0},Vn=function(t){var e=255&t,n=255&t>>8,A=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+A+","+n+","+e/255+")":"rgb("+r+","+A+","+n+")"},Ni=function(t,e,n,A){return(t<<24|e<<16|n<<8|Math.round(A*255)<<0)>>>0},Qx=function(t,e){if(t.type===17)return t.number;if(t.type===16){var n=e===3?1:255;return e===3?t.number/100*n:Math.round(t.number/100*n)}return 0},xx=function(t,e){var n=e.filter(Na);if(n.length===3){var A=n.map(Qx),r=A[0],o=A[1],i=A[2];return Ni(r,o,i,1)}if(n.length===4){var a=n.map(Qx),r=a[0],o=a[1],i=a[2],l=a[3];return Ni(r,o,i,l)}return 0};function jB(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<1/2?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var Ux=function(t,e){var n=e.filter(Na),A=n[0],r=n[1],o=n[2],i=n[3],a=(A.type===17?ar(A.number):If.parse(t,A))/(Math.PI*2),l=Fn(r)?r.number/100:0,u=Fn(o)?o.number/100:0,f=typeof i<"u"&&Fn(i)?Rt(i,1):1;if(l===0)return Ni(u*255,u*255,u*255,1);var h=u<=.5?u*(l+1):u+l-u*l,p=u*2-h,g=jB(p,h,a+1/3),B=jB(p,h,a),y=jB(p,h,a-1/3);return Ni(g*255,B*255,y*255,f)},i9={hsl:Ux,hsla:Ux,rgb:xx,rgba:xx},Fc=function(t,e){return Oi.parse(t,yx.create(e).parseComponentValue())},No={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},s9={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Lt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},a9={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_f=function(t,e){var n=Oi.parse(t,e[0]),A=e[1];return A&&Fn(A)?{color:n,stop:A}:{color:n,stop:null}},Ix=function(t,e){var n=t[0],A=t[t.length-1];n.stop===null&&(n.stop=Yn),A.stop===null&&(A.stop=Mi);for(var r=[],o=0,i=0;i<t.length;i++){var a=t[i].stop;if(a!==null){var l=Rt(a,e);l>o?r.push(l):r.push(o),o=l}else r.push(null)}for(var u=null,i=0;i<r.length;i++){var f=r[i];if(f===null)u===null&&(u=i);else if(u!==null){for(var h=i-u,p=r[u-1],g=(f-p)/(h+1),B=1;B<=h;B++)r[u+B-1]=g*B;u=null}}return t.map(function(y,C){var w=y.color;return{color:w,stop:Math.max(Math.min(1,r[C]/e),0)}})},l9=function(t,e,n){var A=e/2,r=n/2,o=Rt(t[0],e)-A,i=r-Rt(t[1],n);return(Math.atan2(i,o)+Math.PI*2)%(Math.PI*2)},c9=function(t,e,n){var A=typeof t=="number"?t:l9(t,e,n),r=Math.abs(e*Math.sin(A))+Math.abs(n*Math.cos(A)),o=e/2,i=n/2,a=r/2,l=Math.sin(A-Math.PI/2)*a,u=Math.cos(A-Math.PI/2)*a;return[r,o-u,o+u,i-l,i+l]},Hr=function(t,e){return Math.sqrt(t*t+e*e)},_x=function(t,e,n,A,r){var o=[[0,0],[0,e],[t,0],[t,e]];return o.reduce(function(i,a){var l=a[0],u=a[1],f=Hr(n-l,A-u);return(r?f<i.optimumDistance:f>i.optimumDistance)?{optimumCorner:a,optimumDistance:f}:i},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},u9=function(t,e,n,A,r){var o=0,i=0;switch(t.size){case 0:t.shape===0?o=i=Math.min(Math.abs(e),Math.abs(e-A),Math.abs(n),Math.abs(n-r)):t.shape===1&&(o=Math.min(Math.abs(e),Math.abs(e-A)),i=Math.min(Math.abs(n),Math.abs(n-r)));break;case 2:if(t.shape===0)o=i=Math.min(Hr(e,n),Hr(e,n-r),Hr(e-A,n),Hr(e-A,n-r));else if(t.shape===1){var a=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(e),Math.abs(e-A)),l=_x(A,r,e,n,!0),u=l[0],f=l[1];o=Hr(u-e,(f-n)/a),i=a*o}break;case 1:t.shape===0?o=i=Math.max(Math.abs(e),Math.abs(e-A),Math.abs(n),Math.abs(n-r)):t.shape===1&&(o=Math.max(Math.abs(e),Math.abs(e-A)),i=Math.max(Math.abs(n),Math.abs(n-r)));break;case 3:if(t.shape===0)o=i=Math.max(Hr(e,n),Hr(e,n-r),Hr(e-A,n),Hr(e-A,n-r));else if(t.shape===1){var a=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(e),Math.abs(e-A)),h=_x(A,r,e,n,!1),u=h[0],f=h[1];o=Hr(u-e,(f-n)/a),i=a*o}break}return Array.isArray(t.size)&&(o=Rt(t.size[0],A),i=t.size.length===2?Rt(t.size[1],r):o),[o,i]},d9=function(t,e){var n=ar(180),A=[];return uo(e).forEach(function(r,o){if(o===0){var i=r[0];if(i.type===20&&i.value==="to"){n=Fx(r);return}else if(Sx(i)){n=If.parse(t,i);return}}var a=_f(t,r);A.push(a)}),{angle:n,stops:A,type:1}},Tf=function(t,e){var n=ar(180),A=[];return uo(e).forEach(function(r,o){if(o===0){var i=r[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){n=Fx(r);return}else if(Sx(i)){n=(If.parse(t,i)+ar(270))%ar(360);return}}var a=_f(t,r);A.push(a)}),{angle:n,stops:A,type:1}},f9=function(t,e){var n=ar(180),A=[],r=1,o=0,i=3,a=[];return uo(e).forEach(function(l,u){var f=l[0];if(u===0){if(Lt(f)&&f.value==="linear"){r=1;return}else if(Lt(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var h=Oi.parse(t,f.values[0]);A.push({stop:Yn,color:h})}else if(f.name==="to"){var h=Oi.parse(t,f.values[0]);A.push({stop:Mi,color:h})}else if(f.name==="color-stop"){var p=f.values.filter(Na);if(p.length===2){var h=Oi.parse(t,p[1]),g=p[0];La(g)&&A.push({stop:{type:16,number:g.number*100,flags:g.flags},color:h})}}}}),r===1?{angle:(n+ar(180))%ar(360),stops:A,type:r}:{size:i,shape:o,stops:A,position:a,type:r}},Tx="closest-side",Dx="farthest-side",Mx="closest-corner",Ox="farthest-corner",Lx="circle",Nx="ellipse",Hx="cover",Px="contain",h9=function(t,e){var n=0,A=3,r=[],o=[];return uo(e).forEach(function(i,a){var l=!0;if(a===0){var u=!1;l=i.reduce(function(h,p){if(u)if(Lt(p))switch(p.value){case"center":return o.push(YB),h;case"top":case"left":return o.push(Yn),h;case"right":case"bottom":return o.push(Mi),h}else(Fn(p)||Di(p))&&o.push(p);else if(Lt(p))switch(p.value){case Lx:return n=0,!1;case Nx:return n=1,!1;case"at":return u=!0,!1;case Tx:return A=0,!1;case Hx:case Dx:return A=1,!1;case Px:case Mx:return A=2,!1;case Ox:return A=3,!1}else if(Di(p)||Fn(p))return Array.isArray(A)||(A=[]),A.push(p),!1;return h},l)}if(l){var f=_f(t,i);r.push(f)}}),{size:A,shape:n,stops:r,position:o,type:2}},Df=function(t,e){var n=0,A=3,r=[],o=[];return uo(e).forEach(function(i,a){var l=!0;if(a===0?l=i.reduce(function(f,h){if(Lt(h))switch(h.value){case"center":return o.push(YB),!1;case"top":case"left":return o.push(Yn),!1;case"right":case"bottom":return o.push(Mi),!1}else if(Fn(h)||Di(h))return o.push(h),!1;return f},l):a===1&&(l=i.reduce(function(f,h){if(Lt(h))switch(h.value){case Lx:return n=0,!1;case Nx:return n=1,!1;case Px:case Tx:return A=0,!1;case Dx:return A=1,!1;case Mx:return A=2,!1;case Hx:case Ox:return A=3,!1}else if(Di(h)||Fn(h))return Array.isArray(A)||(A=[]),A.push(h),!1;return f},l)),l){var u=_f(t,i);r.push(u)}}),{size:A,shape:n,stops:r,position:o,type:2}},p9=function(t){return t.type===1},m9=function(t){return t.type===2},qB={name:"image",parse:function(t,e){if(e.type===22){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(e.type===18){var A=Rx[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return A(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function g9(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Rx[t.name])}var Rx={"linear-gradient":d9,"-moz-linear-gradient":Tf,"-ms-linear-gradient":Tf,"-o-linear-gradient":Tf,"-webkit-linear-gradient":Tf,"radial-gradient":h9,"-moz-radial-gradient":Df,"-ms-radial-gradient":Df,"-o-radial-gradient":Df,"-webkit-radial-gradient":Df,"-webkit-gradient":f9},B9={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e.filter(function(A){return Na(A)&&g9(A)}).map(function(A){return qB.parse(t,A)})}},y9={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Lt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},w9={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return uo(e).map(function(n){return n.filter(Fn)}).map(Cx)}},C9={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return uo(e).map(function(n){return n.filter(Lt).map(function(A){return A.value}).join(" ")}).map(b9)}},b9=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ha;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Ha||(Ha={}));var v9={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return uo(e).map(function(n){return n.filter(E9)})}},E9=function(t){return Lt(t)||Fn(t)},Mf=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},k9=Mf("top"),S9=Mf("right"),F9=Mf("bottom"),Q9=Mf("left"),Of=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,n){return Cx(n.filter(Fn))}}},x9=Of("top-left"),U9=Of("top-right"),I9=Of("bottom-right"),_9=Of("bottom-left"),Lf=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},T9=Lf("top"),D9=Lf("right"),M9=Lf("bottom"),O9=Lf("left"),Nf=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,n){return kc(n)?n.number:0}}},L9=Nf("top"),N9=Nf("right"),H9=Nf("bottom"),P9=Nf("left"),R9={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},V9={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},$9={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).reduce(function(n,A){return n|K9(A.value)},0)}},K9=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},z9={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},W9={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Hf;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Hf||(Hf={}));var G9={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Hf.STRICT;case"normal":default:return Hf.NORMAL}}},Y9={name:"line-height",initialValue:"normal",prefix:!1,type:4},Vx=function(t,e){return Lt(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Fn(t)?Rt(t,e):e},j9={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:qB.parse(t,e)}},q9={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},JB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Pf=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},J9=Pf("top"),X9=Pf("right"),Z9=Pf("bottom"),eZ=Pf("left"),tZ={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},nZ={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Rf=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},AZ=Rf("top"),rZ=Rf("right"),oZ=Rf("bottom"),iZ=Rf("left"),sZ={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},aZ={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},lZ={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&GB(e[0],"none")?[]:uo(e).map(function(n){for(var A={color:No.TRANSPARENT,offsetX:Yn,offsetY:Yn,blur:Yn},r=0,o=0;o<n.length;o++){var i=n[o];Di(i)?(r===0?A.offsetX=i:r===1?A.offsetY=i:A.blur=i,r++):A.color=Oi.parse(t,i)}return A})}},cZ={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},uZ={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var n=hZ[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},dZ=function(t){var e=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return e.length===6?e:null},fZ=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),n=e[0],A=e[1];e[2],e[3];var r=e[4],o=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var i=e[12],a=e[13];return e[14],e[15],e.length===16?[n,A,r,o,i,a]:null},hZ={matrix:dZ,matrix3d:fZ},$x={type:16,number:50,flags:wc},pZ=[$x,$x],mZ={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Fn);return n.length!==2?pZ:[n[0],n[1]]}},gZ={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Qc;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Qc||(Qc={}));for(var BZ={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Qc.BREAK_ALL;case"keep-all":return Qc.KEEP_ALL;case"normal":default:return Qc.NORMAL}}},yZ={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(La(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Kx={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},wZ={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return La(e)?e.number:1}},CZ={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bZ={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},vZ={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],A=[];return e.forEach(function(r){switch(r.type){case 20:case 0:n.push(r.value);break;case 17:n.push(r.number.toString());break;case 4:A.push(n.join(" ")),n.length=0;break}}),n.length&&A.push(n.join(" ")),A.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},EZ={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},kZ={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(La(e))return e.number;if(Lt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},SZ={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Lt).map(function(n){return n.value})}},FZ={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},xn=function(t,e){return(t&e)!==0},QZ={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e}},xZ={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;for(var A=[],r=e.filter(wx),o=0;o<r.length;o++){var i=r[o],a=r[o+1];if(i.type===20){var l=a&&La(a)?a.number:1;A.push({counter:i.value,increment:l})}}return A}},UZ={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var n=[],A=e.filter(wx),r=0;r<A.length;r++){var o=A[r],i=A[r+1];if(Lt(o)&&o.value!=="none"){var a=i&&La(i)?i.number:0;n.push({counter:o.value,reset:a})}}return n}},IZ={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(kc).map(function(n){return Kx.parse(t,n)})}},_Z={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;var A=[],r=e.filter(r9);if(r.length%2!==0)return null;for(var o=0;o<r.length;o+=2){var i=r[o].value,a=r[o+1].value;A.push({open:i,close:a})}return A}},zx=function(t,e,n){if(!t)return"";var A=t[Math.min(e,t.length-1)];return A?n?A.open:A.close:""},TZ={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&GB(e[0],"none")?[]:uo(e).map(function(n){for(var A={color:255,offsetX:Yn,offsetY:Yn,blur:Yn,spread:Yn,inset:!1},r=0,o=0;o<n.length;o++){var i=n[o];GB(i,"inset")?A.inset=!0:Di(i)?(r===0?A.offsetX=i:r===1?A.offsetY=i:r===2?A.blur=i:A.spread=i,r++):A.color=Oi.parse(t,i)}return A})}},DZ={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],A=[];return e.filter(Lt).forEach(function(r){switch(r.value){case"stroke":A.push(1);break;case"fill":A.push(0);break;case"markers":A.push(2);break}}),n.forEach(function(r){A.indexOf(r)===-1&&A.push(r)}),A}},MZ={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},OZ={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return kc(e)?e.number:0}},LZ=(function(){function t(e,n){var A,r;this.animationDuration=He(e,IZ,n.animationDuration),this.backgroundClip=He(e,s9,n.backgroundClip),this.backgroundColor=He(e,a9,n.backgroundColor),this.backgroundImage=He(e,B9,n.backgroundImage),this.backgroundOrigin=He(e,y9,n.backgroundOrigin),this.backgroundPosition=He(e,w9,n.backgroundPosition),this.backgroundRepeat=He(e,C9,n.backgroundRepeat),this.backgroundSize=He(e,v9,n.backgroundSize),this.borderTopColor=He(e,k9,n.borderTopColor),this.borderRightColor=He(e,S9,n.borderRightColor),this.borderBottomColor=He(e,F9,n.borderBottomColor),this.borderLeftColor=He(e,Q9,n.borderLeftColor),this.borderTopLeftRadius=He(e,x9,n.borderTopLeftRadius),this.borderTopRightRadius=He(e,U9,n.borderTopRightRadius),this.borderBottomRightRadius=He(e,I9,n.borderBottomRightRadius),this.borderBottomLeftRadius=He(e,_9,n.borderBottomLeftRadius),this.borderTopStyle=He(e,T9,n.borderTopStyle),this.borderRightStyle=He(e,D9,n.borderRightStyle),this.borderBottomStyle=He(e,M9,n.borderBottomStyle),this.borderLeftStyle=He(e,O9,n.borderLeftStyle),this.borderTopWidth=He(e,L9,n.borderTopWidth),this.borderRightWidth=He(e,N9,n.borderRightWidth),this.borderBottomWidth=He(e,H9,n.borderBottomWidth),this.borderLeftWidth=He(e,P9,n.borderLeftWidth),this.boxShadow=He(e,TZ,n.boxShadow),this.color=He(e,R9,n.color),this.direction=He(e,V9,n.direction),this.display=He(e,$9,n.display),this.float=He(e,z9,n.cssFloat),this.fontFamily=He(e,vZ,n.fontFamily),this.fontSize=He(e,EZ,n.fontSize),this.fontStyle=He(e,FZ,n.fontStyle),this.fontVariant=He(e,SZ,n.fontVariant),this.fontWeight=He(e,kZ,n.fontWeight),this.letterSpacing=He(e,W9,n.letterSpacing),this.lineBreak=He(e,G9,n.lineBreak),this.lineHeight=He(e,Y9,n.lineHeight),this.listStyleImage=He(e,j9,n.listStyleImage),this.listStylePosition=He(e,q9,n.listStylePosition),this.listStyleType=He(e,JB,n.listStyleType),this.marginTop=He(e,J9,n.marginTop),this.marginRight=He(e,X9,n.marginRight),this.marginBottom=He(e,Z9,n.marginBottom),this.marginLeft=He(e,eZ,n.marginLeft),this.opacity=He(e,wZ,n.opacity);var o=He(e,tZ,n.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=He(e,nZ,n.overflowWrap),this.paddingTop=He(e,AZ,n.paddingTop),this.paddingRight=He(e,rZ,n.paddingRight),this.paddingBottom=He(e,oZ,n.paddingBottom),this.paddingLeft=He(e,iZ,n.paddingLeft),this.paintOrder=He(e,DZ,n.paintOrder),this.position=He(e,aZ,n.position),this.textAlign=He(e,sZ,n.textAlign),this.textDecorationColor=He(e,CZ,(A=n.textDecorationColor)!==null&&A!==void 0?A:n.color),this.textDecorationLine=He(e,bZ,(r=n.textDecorationLine)!==null&&r!==void 0?r:n.textDecoration),this.textShadow=He(e,lZ,n.textShadow),this.textTransform=He(e,cZ,n.textTransform),this.transform=He(e,uZ,n.transform),this.transformOrigin=He(e,mZ,n.transformOrigin),this.visibility=He(e,gZ,n.visibility),this.webkitTextStrokeColor=He(e,MZ,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=He(e,OZ,n.webkitTextStrokeWidth),this.wordBreak=He(e,BZ,n.wordBreak),this.zIndex=He(e,yZ,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Li(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return xn(this.display,4)||xn(this.display,33554432)||xn(this.display,268435456)||xn(this.display,536870912)||xn(this.display,67108864)||xn(this.display,134217728)},t})(),NZ=(function(){function t(e,n){this.content=He(e,QZ,n.content),this.quotes=He(e,_Z,n.quotes)}return t})(),Wx=(function(){function t(e,n){this.counterIncrement=He(e,xZ,n.counterIncrement),this.counterReset=He(e,UZ,n.counterReset)}return t})(),He=function(t,e,n){var A=new Bx,r=n!==null&&typeof n<"u"?n.toString():e.initialValue;A.write(r);var o=new yx(A.read());switch(e.type){case 2:var i=o.parseComponentValue();return e.parse(t,Lt(i)?i.value:e.initialValue);case 0:return e.parse(t,o.parseComponentValue());case 1:return e.parse(t,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return If.parse(t,o.parseComponentValue());case"color":return Oi.parse(t,o.parseComponentValue());case"image":return qB.parse(t,o.parseComponentValue());case"length":var a=o.parseComponentValue();return Di(a)?a:Yn;case"length-percentage":var l=o.parseComponentValue();return Fn(l)?l:Yn;case"time":return Kx.parse(t,o.parseComponentValue())}break}},HZ="data-html2canvas-debug",PZ=function(t){var e=t.getAttribute(HZ);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},XB=function(t,e){var n=PZ(t);return n===1||e===n},fo=(function(){function t(e,n){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,XB(n,3))debugger;this.styles=new LZ(e,window.getComputedStyle(n,null)),dy(n)&&(this.styles.animationDuration.some(function(A){return A>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=uf(this.context,n),XB(n,4)&&(this.flags|=16)}return t})(),RZ="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Gx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vf=0;Vf<Gx.length;Vf++)xc[Gx.charCodeAt(Vf)]=Vf;for(var VZ=function(t){var e=t.length*.75,n=t.length,A,r=0,o,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(u)?u:new Uint8Array(u);for(A=0;A<n;A+=4)o=xc[t.charCodeAt(A)],i=xc[t.charCodeAt(A+1)],a=xc[t.charCodeAt(A+2)],l=xc[t.charCodeAt(A+3)],f[r++]=o<<2|i>>4,f[r++]=(i&15)<<4|a>>2,f[r++]=(a&3)<<6|l&63;return u},$Z=function(t){for(var e=t.length,n=[],A=0;A<e;A+=2)n.push(t[A+1]<<8|t[A]);return n},KZ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=4)n.push(t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A]);return n},Ds=5,ZB=11,ey=2,zZ=ZB-Ds,Yx=65536>>Ds,WZ=1<<Ds,ty=WZ-1,GZ=1024>>Ds,YZ=Yx+GZ,jZ=YZ,qZ=32,JZ=jZ+qZ,XZ=65536>>ZB,ZZ=1<<zZ,eee=ZZ-1,jx=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},tee=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},nee=function(t,e){var n=VZ(t),A=Array.isArray(n)?KZ(n):new Uint32Array(n),r=Array.isArray(n)?$Z(n):new Uint16Array(n),o=24,i=jx(r,o/2,A[4]/2),a=A[5]===2?jx(r,(o+A[4])/2):tee(A,Math.ceil((o+A[4])/4));return new Aee(A[0],A[1],A[2],A[3],i,a)},Aee=(function(){function t(e,n,A,r,o,i){this.initialValue=e,this.errorValue=n,this.highStart=A,this.highValueIndex=r,this.index=o,this.data=i}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>Ds],n=(n<<ey)+(e&ty),this.data[n];if(e<=65535)return n=this.index[Yx+(e-55296>>Ds)],n=(n<<ey)+(e&ty),this.data[n];if(e<this.highStart)return n=JZ-XZ+(e>>ZB),n=this.index[n],n+=e>>Ds&eee,n=this.index[n],n=(n<<ey)+(e&ty),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),qx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ree=typeof Uint8Array>"u"?[]:new Uint8Array(256),$f=0;$f<qx.length;$f++)ree[qx.charCodeAt($f)]=$f;var oee=1,ny=2,Ay=3,Jx=4,Xx=5,iee=7,Zx=8,ry=9,oy=10,eU=11,tU=12,nU=13,AU=14,iy=15,see=function(t){for(var e=[],n=0,A=t.length;n<A;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var o=t.charCodeAt(n++);(o&64512)===56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),n--)}else e.push(r)}return e},aee=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var A=[],r=-1,o="";++r<n;){var i=t[r];i<=65535?A.push(i):(i-=65536,A.push((i>>10)+55296,i%1024+56320)),(r+1===n||A.length>16384)&&(o+=String.fromCharCode.apply(String,A),A.length=0)}return o},lee=nee(RZ),lr="×",sy="÷",cee=function(t){return lee.get(t)},uee=function(t,e,n){var A=n-2,r=e[A],o=e[n-1],i=e[n];if(o===ny&&i===Ay)return lr;if(o===ny||o===Ay||o===Jx||i===ny||i===Ay||i===Jx)return sy;if(o===Zx&&[Zx,ry,eU,tU].indexOf(i)!==-1||(o===eU||o===ry)&&(i===ry||i===oy)||(o===tU||o===oy)&&i===oy||i===nU||i===Xx||i===iee||o===oee)return lr;if(o===nU&&i===AU){for(;r===Xx;)r=e[--A];if(r===AU)return lr}if(o===iy&&i===iy){for(var a=0;r===iy;)a++,r=e[--A];if(a%2===0)return lr}return sy},dee=function(t){var e=see(t),n=e.length,A=0,r=0,o=e.map(cee);return{next:function(){if(A>=n)return{done:!0,value:null};for(var i=lr;A<n&&(i=uee(e,o,++A))===lr;);if(i!==lr||A===n){var a=aee.apply(null,e.slice(r,A));return r=A,{value:a,done:!1}}return{done:!0,value:null}}}},fee=function(t){for(var e=dee(t),n=[],A;!(A=e.next()).done;)A.value&&n.push(A.value.slice());return n},hee=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var A=t.createElement("boundtest");A.style.height=e+"px",A.style.display="block",t.body.appendChild(A),n.selectNode(A);var r=n.getBoundingClientRect(),o=Math.round(r.height);if(t.body.removeChild(A),o===e)return!0}}return!1},pee=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var A=e.firstChild,r=df(A.data).map(function(l){return yn(l)}),o=0,i={},a=r.every(function(l,u){n.setStart(A,o),n.setEnd(A,o+l.length);var f=n.getBoundingClientRect();o+=l.length;var h=f.x>i.x||f.y>i.y;return i=f,u===0?!0:h});return t.body.removeChild(e),a},mee=function(){return typeof new Image().crossOrigin<"u"},gee=function(){return typeof new XMLHttpRequest().responseType=="string"},Bee=function(t){var e=new Image,n=t.createElement("canvas"),A=n.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(e,0,0),n.toDataURL()}catch{return!1}return!0},rU=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},yee=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var A=e.getContext("2d");if(!A)return Promise.reject(!1);A.fillStyle="rgb(0, 255, 0)",A.fillRect(0,0,n,n);var r=new Image,o=e.toDataURL();r.src=o;var i=ay(n,n,0,0,r);return A.fillStyle="red",A.fillRect(0,0,n,n),oU(i).then(function(a){A.drawImage(a,0,0);var l=A.getImageData(0,0,n,n).data;A.fillStyle="red",A.fillRect(0,0,n,n);var u=t.createElement("div");return u.style.backgroundImage="url("+o+")",u.style.height=n+"px",rU(l)?oU(ay(n,n,0,0,u)):Promise.reject(!1)}).then(function(a){return A.drawImage(a,0,0),rU(A.getImageData(0,0,n,n).data)}).catch(function(){return!1})},ay=function(t,e,n,A,r){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",t.toString()),i.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",A.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(a),a.appendChild(r),i},oU=function(t){return new Promise(function(e,n){var A=new Image;A.onload=function(){return e(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},jn={get SUPPORT_RANGE_BOUNDS(){var t=hee(document);return Object.defineProperty(jn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=jn.SUPPORT_RANGE_BOUNDS&&pee(document);return Object.defineProperty(jn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Bee(document);return Object.defineProperty(jn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?yee(document):Promise.resolve(!1);return Object.defineProperty(jn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=mee();return Object.defineProperty(jn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=gee();return Object.defineProperty(jn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(jn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Uc=(function(){function t(e,n){this.text=e,this.bounds=n}return t})(),wee=function(t,e,n,A){var r=vee(e,n),o=[],i=0;return r.forEach(function(a){if(n.textDecorationLine.length||a.trim().length>0)if(jn.SUPPORT_RANGE_BOUNDS){var l=iU(A,i,a.length).getClientRects();if(l.length>1){var u=ly(a),f=0;u.forEach(function(p){o.push(new Uc(p,Oo.fromDOMRectList(t,iU(A,f+i,p.length).getClientRects()))),f+=p.length})}else o.push(new Uc(a,Oo.fromDOMRectList(t,l)))}else{var h=A.splitText(a.length);o.push(new Uc(a,Cee(t,A))),A=h}else jn.SUPPORT_RANGE_BOUNDS||(A=A.splitText(a.length));i+=a.length}),o},Cee=function(t,e){var n=e.ownerDocument;if(n){var A=n.createElement("html2canvaswrapper");A.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(A,e);var o=uf(t,A);return A.firstChild&&r.replaceChild(A.firstChild,A),o}}return Oo.EMPTY},iU=function(t,e,n){var A=t.ownerDocument;if(!A)throw new Error("Node has no owner document");var r=A.createRange();return r.setStart(t,e),r.setEnd(t,e+n),r},ly=function(t){if(jn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return fee(t)},bee=function(t,e){if(jn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(A){return A.segment})}return kee(t,e)},vee=function(t,e){return e.letterSpacing!==0?ly(t):bee(t,e)},Eee=[32,160,4961,65792,65793,4153,4241],kee=function(t,e){for(var n=XJ(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),A=[],r,o=function(){if(r.value){var i=r.value.slice(),a=df(i),l="";a.forEach(function(u){Eee.indexOf(u)===-1?l+=yn(u):(l.length&&A.push(l),A.push(yn(u)),l="")}),l.length&&A.push(l)}};!(r=n.next()).done;)o();return A},See=(function(){function t(e,n,A){this.text=Fee(n.data,A.textTransform),this.textBounds=wee(e,this.text,A,n)}return t})(),Fee=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Qee,xee);case 2:return t.toUpperCase();default:return t}},Qee=/(^|\s|:|-|\(|\))([a-z])/g,xee=function(t,e,n){return t.length>0?e+n.toUpperCase():t},sU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.src=A.currentSrc||A.src,r.intrinsicWidth=A.naturalWidth,r.intrinsicHeight=A.naturalHeight,r.context.cache.addImage(r.src),r}return e})(fo),aU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.canvas=A,r.intrinsicWidth=A.width,r.intrinsicHeight=A.height,r}return e})(fo),lU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this,o=new XMLSerializer,i=uf(n,A);return A.setAttribute("width",i.width+"px"),A.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(A)),r.intrinsicWidth=A.width.baseVal.value,r.intrinsicHeight=A.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e})(fo),cU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.value=A.value,r}return e})(fo),cy=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.start=A.start,r.reversed=typeof A.reversed=="boolean"&&A.reversed===!0,r}return e})(fo),Uee=[{type:15,flags:0,unit:"px",number:3}],Iee=[{type:16,flags:0,number:50}],_ee=function(t){return t.width>t.height?new Oo(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Oo(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},Tee=function(t){var e=t.type===Dee?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},Kf="checkbox",zf="radio",Dee="password",uU=707406591,uy=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;switch(r.type=A.type.toLowerCase(),r.checked=A.checked,r.value=Tee(A),(r.type===Kf||r.type===zf)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=_ee(r.bounds)),r.type){case Kf:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Uee;break;case zf:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Iee;break}return r}return e})(fo),dU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this,o=A.options[A.selectedIndex||0];return r.value=o&&o.text||"",r}return e})(fo),fU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.value=A.value,r}return e})(fo),hU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;r.src=A.src,r.width=parseInt(A.width,10)||0,r.height=parseInt(A.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){r.tree=mU(n,A.contentWindow.document.documentElement);var o=A.contentWindow.document.documentElement?Fc(n,getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):No.TRANSPARENT,i=A.contentWindow.document.body?Fc(n,getComputedStyle(A.contentWindow.document.body).backgroundColor):No.TRANSPARENT;r.backgroundColor=Li(o)?Li(i)?r.styles.backgroundColor:i:o}}catch{}return r}return e})(fo),Mee=["OL","UL","MENU"],Wf=function(t,e,n,A){for(var r=e.firstChild,o=void 0;r;r=o)if(o=r.nextSibling,gU(r)&&r.data.trim().length>0)n.textNodes.push(new See(t,r,n.styles));else if(Pa(r))if(vU(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return Wf(t,a,n,A)});else{var i=pU(t,r);i.styles.isVisible()&&(Oee(r,i,A)?i.flags|=4:Lee(i.styles)&&(i.flags|=2),Mee.indexOf(r.tagName)!==-1&&(i.flags|=8),n.elements.push(i),r.slot,r.shadowRoot?Wf(t,r.shadowRoot,i,A):!Yf(r)&&!BU(r)&&!jf(r)&&Wf(t,r,i,A))}},pU=function(t,e){return hy(e)?new sU(t,e):yU(e)?new aU(t,e):BU(e)?new lU(t,e):Nee(e)?new cU(t,e):Hee(e)?new cy(t,e):Pee(e)?new uy(t,e):jf(e)?new dU(t,e):Yf(e)?new fU(t,e):CU(e)?new hU(t,e):new fo(t,e)},mU=function(t,e){var n=pU(t,e);return n.flags|=4,Wf(t,e,n,n),n},Oee=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fy(t)&&n.styles.isTransparent()},Lee=function(t){return t.isPositioned()||t.isFloating()},gU=function(t){return t.nodeType===Node.TEXT_NODE},Pa=function(t){return t.nodeType===Node.ELEMENT_NODE},dy=function(t){return Pa(t)&&typeof t.style<"u"&&!Gf(t)},Gf=function(t){return typeof t.className=="object"},Nee=function(t){return t.tagName==="LI"},Hee=function(t){return t.tagName==="OL"},Pee=function(t){return t.tagName==="INPUT"},Ree=function(t){return t.tagName==="HTML"},BU=function(t){return t.tagName==="svg"},fy=function(t){return t.tagName==="BODY"},yU=function(t){return t.tagName==="CANVAS"},wU=function(t){return t.tagName==="VIDEO"},hy=function(t){return t.tagName==="IMG"},CU=function(t){return t.tagName==="IFRAME"},bU=function(t){return t.tagName==="STYLE"},Vee=function(t){return t.tagName==="SCRIPT"},Yf=function(t){return t.tagName==="TEXTAREA"},jf=function(t){return t.tagName==="SELECT"},vU=function(t){return t.tagName==="SLOT"},EU=function(t){return t.tagName.indexOf("-")>0},$ee=(function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var n=this.counters[e];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(e){var n=this.counters[e];return n||[]},t.prototype.pop=function(e){var n=this;e.forEach(function(A){return n.counters[A].pop()})},t.prototype.parse=function(e){var n=this,A=e.counterIncrement,r=e.counterReset,o=!0;A!==null&&A.forEach(function(a){var l=n.counters[a.counter];l&&a.increment!==0&&(o=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=a.increment)});var i=[];return o&&r.forEach(function(a){var l=n.counters[a.counter];i.push(a.counter),l||(l=n.counters[a.counter]=[]),l.push(a.reset)}),i},t})(),kU={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},SU={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Kee={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},zee={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ra=function(t,e,n,A,r,o){return t<e||t>n?_c(t,r,o.length>0):A.integers.reduce(function(i,a,l){for(;t>=a;)t-=a,i+=A.values[l];return i},"")+o},FU=function(t,e,n,A){var r="";do n||t--,r=A(t)+r,t/=e;while(t*e>=e);return r},wn=function(t,e,n,A,r){var o=n-e+1;return(t<0?"-":"")+(FU(Math.abs(t),o,A,function(i){return yn(Math.floor(i%o)+e)})+r)},Ms=function(t,e,n){n===void 0&&(n=". ");var A=e.length;return FU(Math.abs(t),A,!1,function(r){return e[Math.floor(r%A)]})+n},Va=1,Hi=2,Pi=4,Ic=8,Ho=function(t,e,n,A,r,o){if(t<-9999||t>9999)return _c(t,4,r.length>0);var i=Math.abs(t),a=r;if(i===0)return e[0]+a;for(var l=0;i>0&&l<=4;l++){var u=i%10;u===0&&xn(o,Va)&&a!==""?a=e[u]+a:u>1||u===1&&l===0||u===1&&l===1&&xn(o,Hi)||u===1&&l===1&&xn(o,Pi)&&t>100||u===1&&l>1&&xn(o,Ic)?a=e[u]+(l>0?n[l-1]:"")+a:u===1&&l>0&&(a=n[l-1]+a),i=Math.floor(i/10)}return(t<0?A:"")+a},QU="十百千萬",xU="拾佰仟萬",UU="マイナス",py="마이너스",_c=function(t,e,n){var A=n?". ":"",r=n?"、":"",o=n?", ":"",i=n?" ":"";switch(e){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var a=wn(t,48,57,!0,A);return a.length<4?"0"+a:a;case 4:return Ms(t,"〇一二三四五六七八九",r);case 6:return Ra(t,1,3999,kU,3,A).toLowerCase();case 7:return Ra(t,1,3999,kU,3,A);case 8:return wn(t,945,969,!1,A);case 9:return wn(t,97,122,!1,A);case 10:return wn(t,65,90,!1,A);case 11:return wn(t,1632,1641,!0,A);case 12:case 49:return Ra(t,1,9999,SU,3,A);case 35:return Ra(t,1,9999,SU,3,A).toLowerCase();case 13:return wn(t,2534,2543,!0,A);case 14:case 30:return wn(t,6112,6121,!0,A);case 15:return Ms(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Ms(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Ho(t,"零一二三四五六七八九",QU,"負",r,Hi|Pi|Ic);case 47:return Ho(t,"零壹貳參肆伍陸柒捌玖",xU,"負",r,Va|Hi|Pi|Ic);case 42:return Ho(t,"零一二三四五六七八九",QU,"负",r,Hi|Pi|Ic);case 41:return Ho(t,"零壹贰叁肆伍陆柒捌玖",xU,"负",r,Va|Hi|Pi|Ic);case 26:return Ho(t,"〇一二三四五六七八九","十百千万",UU,r,0);case 25:return Ho(t,"零壱弐参四伍六七八九","拾百千万",UU,r,Va|Hi|Pi);case 31:return Ho(t,"영일이삼사오육칠팔구","십백천만",py,o,Va|Hi|Pi);case 33:return Ho(t,"零一二三四五六七八九","十百千萬",py,o,0);case 32:return Ho(t,"零壹貳參四五六七八九","拾百千",py,o,Va|Hi|Pi);case 18:return wn(t,2406,2415,!0,A);case 20:return Ra(t,1,19999,zee,3,A);case 21:return wn(t,2790,2799,!0,A);case 22:return wn(t,2662,2671,!0,A);case 22:return Ra(t,1,10999,Kee,3,A);case 23:return Ms(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ms(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return wn(t,3302,3311,!0,A);case 28:return Ms(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Ms(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return wn(t,3792,3801,!0,A);case 37:return wn(t,6160,6169,!0,A);case 38:return wn(t,4160,4169,!0,A);case 39:return wn(t,2918,2927,!0,A);case 40:return wn(t,1776,1785,!0,A);case 43:return wn(t,3046,3055,!0,A);case 44:return wn(t,3174,3183,!0,A);case 45:return wn(t,3664,3673,!0,A);case 46:return wn(t,3872,3881,!0,A);case 3:default:return wn(t,48,57,!0,A)}},IU="data-html2canvas-ignore",_U=(function(){function t(e,n,A){if(this.context=e,this.options=A,this.scrolledElements=[],this.referenceElement=n,this.counters=new $ee,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,n){var A=this,r=Wee(e,n);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,a=r.contentWindow,l=a.document,u=jee(r).then(function(){return yA(A,void 0,void 0,function(){var f,h;return rA(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(Zee),a&&(a.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==n.top||a.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-n.left,a.scrollY-n.top,0,0))),f=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Yee(l)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(l,h)}).then(function(){return r})]:[2,r]}})})});return l.open(),l.write(Jee(document.doctype)+"<html></html>"),Xee(this.referenceElement.ownerDocument,o,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(e){if(XB(e,2))debugger;if(yU(e))return this.createCanvasClone(e);if(wU(e))return this.createVideoClone(e);if(bU(e))return this.createStyleClone(e);var n=e.cloneNode(!1);return hy(n)&&(hy(e)&&e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),EU(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(e){var n=document.createElement("html2canvascustomelement");return my(e.style,n),n},t.prototype.createStyleClone=function(e){try{var n=e.sheet;if(n&&n.cssRules){var A=[].slice.call(n.cssRules,0).reduce(function(o,i){return i&&typeof i.cssText=="string"?o+i.cssText:o},""),r=e.cloneNode(!1);return r.textContent=A,r}}catch(o){if(this.context.logger.error("Unable to access cssRules property",o),o.name!=="SecurityError")throw o}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var n;if(this.options.inlineImages&&e.ownerDocument){var A=e.ownerDocument.createElement("img");try{return A.src=e.toDataURL(),A}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var o=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var a=(n=e.getContext("webgl2"))!==null&&n!==void 0?n:e.getContext("webgl");if(a){var l=a.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},t.prototype.createVideoClone=function(e){var n=e.ownerDocument.createElement("canvas");n.width=e.offsetWidth,n.height=e.offsetHeight;var A=n.getContext("2d");try{return A&&(A.drawImage(e,0,0,n.width,n.height),this.options.allowTaint||A.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},t.prototype.appendChildNode=function(e,n,A){(!Pa(n)||!Vee(n)&&!n.hasAttribute(IU)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!Pa(n)||!bU(n))&&e.appendChild(this.cloneNode(n,A))},t.prototype.cloneChildNodes=function(e,n,A){for(var r=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(Pa(o)&&vU(o)&&typeof o.assignedNodes=="function"){var i=o.assignedNodes();i.length&&i.forEach(function(a){return r.appendChildNode(n,a,A)})}else this.appendChildNode(n,o,A)},t.prototype.cloneNode=function(e,n){if(gU(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var A=e.ownerDocument.defaultView;if(A&&Pa(e)&&(dy(e)||Gf(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var o=A.getComputedStyle(e),i=A.getComputedStyle(e,":before"),a=A.getComputedStyle(e,":after");this.referenceElement===e&&dy(r)&&(this.clonedReferenceElement=r),fy(r)&&nte(r);var l=this.counters.parse(new Wx(this.context,o)),u=this.resolvePseudoContent(e,r,i,Tc.BEFORE);EU(e)&&(n=!0),wU(e)||this.cloneChildNodes(e,r,n),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(e,r,a,Tc.AFTER);return f&&r.appendChild(f),this.counters.pop(l),(o&&(this.options.copyStyles||Gf(e))&&!CU(e)||n)&&my(o,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Yf(e)||jf(e))&&(Yf(r)||jf(r))&&(r.value=e.value),r}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,n,A,r){var o=this;if(A){var i=A.content,a=n.ownerDocument;if(!(!a||!i||i==="none"||i==="-moz-alt-content"||A.display==="none")){this.counters.parse(new Wx(this.context,A));var l=new NZ(this.context,A),u=a.createElement("html2canvaspseudoelement");my(A,u),l.content.forEach(function(h){if(h.type===0)u.appendChild(a.createTextNode(h.value));else if(h.type===22){var p=a.createElement("img");p.src=h.value,p.style.opacity="1",u.appendChild(p)}else if(h.type===18){if(h.name==="attr"){var g=h.values.filter(Lt);g.length&&u.appendChild(a.createTextNode(e.getAttribute(g[0].value)||""))}else if(h.name==="counter"){var B=h.values.filter(Na),y=B[0],C=B[1];if(y&&Lt(y)){var w=o.counters.getCounterValue(y.value),F=C&&Lt(C)?JB.parse(o.context,C.value):3;u.appendChild(a.createTextNode(_c(w,F,!1)))}}else if(h.name==="counters"){var _=h.values.filter(Na),y=_[0],D=_[1],C=_[2];if(y&&Lt(y)){var P=o.counters.getCounterValues(y.value),T=C&&Lt(C)?JB.parse(o.context,C.value):3,H=D&&D.type===0?D.value:"",te=P.map(function(pe){return _c(pe,T,!1)}).join(H);u.appendChild(a.createTextNode(te))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(a.createTextNode(zx(l.quotes,o.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(zx(l.quotes,--o.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(h.value))}}),u.className=gy+" "+By;var f=r===Tc.BEFORE?" "+gy:" "+By;return Gf(n)?n.className.baseValue+=f:n.className+=f,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t})(),Tc;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(Tc||(Tc={}));var Wee=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(IU,"true"),t.body.appendChild(n),n},Gee=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},Yee=function(t){return Promise.all([].slice.call(t.images,0).map(Gee))},jee=function(t){return new Promise(function(e,n){var A=t.contentWindow;if(!A)return n("No window assigned for iframe");var r=A.document;A.onload=t.onload=function(){A.onload=t.onload=null;var o=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(o),e(t))},50)}})},qee=["all","d","content"],my=function(t,e){for(var n=t.length-1;n>=0;n--){var A=t.item(n);qee.indexOf(A)===-1&&e.style.setProperty(A,t.getPropertyValue(A))}return e},Jee=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Xee=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},Zee=function(t){var e=t[0],n=t[1],A=t[2];e.scrollLeft=n,e.scrollTop=A},ete=":before",tte=":after",gy="___html2canvas___pseudoelement_before",By="___html2canvas___pseudoelement_after",TU=`{
176
+ ***************************************************************************** */var SB=function(t,e){return SB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,A){n.__proto__=A}||function(n,A){for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(n[r]=A[r])},SB(t,e)};function Nr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");SB(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var FB=function(){return FB=Object.assign||function(e){for(var n,A=1,r=arguments.length;A<r;A++){n=arguments[A];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},FB.apply(this,arguments)};function yA(t,e,n,A){function r(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function a(f){try{u(A.next(f))}catch(h){i(h)}}function l(f){try{u(A.throw(f))}catch(h){i(h)}}function u(f){f.done?o(f.value):r(f.value).then(a,l)}u((A=A.apply(t,[])).next())})}function rA(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},A,r,o,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(u){return function(f){return l([u,f])}}function l(u){if(A)throw new TypeError("Generator is already executing.");for(;n;)try{if(A=1,r&&(o=u[0]&2?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],r=0}finally{A=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function cf(t,e,n){if(arguments.length===2)for(var A=0,r=e.length,o;A<r;A++)(o||!(A in e))&&(o||(o=Array.prototype.slice.call(e,0,A)),o[A]=e[A]);return t.concat(o||e)}for(var Oo=(function(){function t(e,n,A,r){this.left=e,this.top=n,this.width=A,this.height=r}return t.prototype.add=function(e,n,A,r){return new t(this.left+e,this.top+n,this.width+A,this.height+r)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var A=Array.from(n).find(function(r){return r.width!==0});return A?new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t})(),uf=function(t,e){return Oo.fromClientRect(t,e.getBoundingClientRect())},wJ=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var A=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),r=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new Oo(0,0,A,r)},df=function(t){for(var e=[],n=0,A=t.length;n<A;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var o=t.charCodeAt(n++);(o&64512)===56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),n--)}else e.push(r)}return e},yn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var A=[],r=-1,o="";++r<n;){var i=t[r];i<=65535?A.push(i):(i-=65536,A.push((i>>10)+55296,i%1024+56320)),(r+1===n||A.length>16384)&&(o+=String.fromCharCode.apply(String,A),A.length=0)}return o},VQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",CJ=typeof Uint8Array>"u"?[]:new Uint8Array(256),ff=0;ff<VQ.length;ff++)CJ[VQ.charCodeAt(ff)]=ff;for(var $Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fc=typeof Uint8Array>"u"?[]:new Uint8Array(256),hf=0;hf<$Q.length;hf++)fc[$Q.charCodeAt(hf)]=hf;for(var bJ=function(t){var e=t.length*.75,n=t.length,A,r=0,o,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(u)?u:new Uint8Array(u);for(A=0;A<n;A+=4)o=fc[t.charCodeAt(A)],i=fc[t.charCodeAt(A+1)],a=fc[t.charCodeAt(A+2)],l=fc[t.charCodeAt(A+3)],f[r++]=o<<2|i>>4,f[r++]=(i&15)<<4|a>>2,f[r++]=(a&3)<<6|l&63;return u},vJ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=2)n.push(t[A+1]<<8|t[A]);return n},EJ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=4)n.push(t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A]);return n},Is=5,QB=11,xB=2,kJ=QB-Is,KQ=65536>>Is,SJ=1<<Is,UB=SJ-1,FJ=1024>>Is,QJ=KQ+FJ,xJ=QJ,UJ=32,IJ=xJ+UJ,_J=65536>>QB,TJ=1<<kJ,DJ=TJ-1,zQ=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},MJ=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},OJ=function(t,e){var n=bJ(t),A=Array.isArray(n)?EJ(n):new Uint32Array(n),r=Array.isArray(n)?vJ(n):new Uint16Array(n),o=24,i=zQ(r,o/2,A[4]/2),a=A[5]===2?zQ(r,(o+A[4])/2):MJ(A,Math.ceil((o+A[4])/4));return new LJ(A[0],A[1],A[2],A[3],i,a)},LJ=(function(){function t(e,n,A,r,o,i){this.initialValue=e,this.errorValue=n,this.highStart=A,this.highValueIndex=r,this.index=o,this.data=i}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>Is],n=(n<<xB)+(e&UB),this.data[n];if(e<=65535)return n=this.index[KQ+(e-55296>>Is)],n=(n<<xB)+(e&UB),this.data[n];if(e<this.highStart)return n=IJ-_J+(e>>QB),n=this.index[n],n+=e>>Is&DJ,n=this.index[n],n=(n<<xB)+(e&UB),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),WQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NJ=typeof Uint8Array>"u"?[]:new Uint8Array(256),pf=0;pf<WQ.length;pf++)NJ[WQ.charCodeAt(pf)]=pf;var HJ="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",GQ=50,PJ=1,YQ=2,jQ=3,RJ=4,VJ=5,qQ=7,JQ=8,XQ=9,_i=10,IB=11,ZQ=12,_B=13,$J=14,hc=15,TB=16,mf=17,pc=18,KJ=19,ex=20,DB=21,mc=22,MB=23,Da=24,WA=25,gc=26,Bc=27,Ma=28,zJ=29,_s=30,WJ=31,gf=32,Bf=33,OB=34,LB=35,NB=36,yc=37,HB=38,yf=39,wf=40,PB=41,tx=42,GJ=43,YJ=[9001,65288],nx="!",mt="×",Cf="÷",RB=OJ(HJ),Lo=[_s,NB],VB=[PJ,YQ,jQ,VJ],Ax=[_i,JQ],rx=[Bc,gc],jJ=VB.concat(Ax),ox=[HB,yf,wf,OB,LB],qJ=[hc,_B],JJ=function(t,e){e===void 0&&(e="strict");var n=[],A=[],r=[];return t.forEach(function(o,i){var a=RB.get(o);if(a>GQ?(r.push(!0),a-=GQ):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(o)!==-1)return A.push(i),n.push(TB);if(a===RJ||a===IB){if(i===0)return A.push(i),n.push(_s);var l=n[i-1];return jJ.indexOf(l)===-1?(A.push(A[i-1]),n.push(l)):(A.push(i),n.push(_s))}if(A.push(i),a===WJ)return n.push(e==="strict"?DB:yc);if(a===tx||a===zJ)return n.push(_s);if(a===GJ)return o>=131072&&o<=196605||o>=196608&&o<=262141?n.push(yc):n.push(_s);n.push(a)}),[A,n,r]},$B=function(t,e,n,A){var r=A[n];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var o=n;o<=A.length;){o++;var i=A[o];if(i===e)return!0;if(i!==_i)break}if(r===_i)for(var o=n;o>0;){o--;var a=A[o];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var l=n;l<=A.length;){l++;var i=A[l];if(i===e)return!0;if(i!==_i)break}if(a!==_i)break}return!1},ix=function(t,e){for(var n=t;n>=0;){var A=e[n];if(A===_i)n--;else return A}return 0},XJ=function(t,e,n,A,r){if(n[A]===0)return mt;var o=A-1;if(Array.isArray(r)&&r[o]===!0)return mt;var i=o-1,a=o+1,l=e[o],u=i>=0?e[i]:0,f=e[a];if(l===YQ&&f===jQ)return mt;if(VB.indexOf(l)!==-1)return nx;if(VB.indexOf(f)!==-1||Ax.indexOf(f)!==-1)return mt;if(ix(o,e)===JQ)return Cf;if(RB.get(t[o])===IB||(l===gf||l===Bf)&&RB.get(t[a])===IB||l===qQ||f===qQ||l===XQ||[_i,_B,hc].indexOf(l)===-1&&f===XQ||[mf,pc,KJ,Da,Ma].indexOf(f)!==-1||ix(o,e)===mc||$B(MB,mc,o,e)||$B([mf,pc],DB,o,e)||$B(ZQ,ZQ,o,e))return mt;if(l===_i)return Cf;if(l===MB||f===MB)return mt;if(f===TB||l===TB)return Cf;if([_B,hc,DB].indexOf(f)!==-1||l===$J||u===NB&&qJ.indexOf(l)!==-1||l===Ma&&f===NB||f===ex||Lo.indexOf(f)!==-1&&l===WA||Lo.indexOf(l)!==-1&&f===WA||l===Bc&&[yc,gf,Bf].indexOf(f)!==-1||[yc,gf,Bf].indexOf(l)!==-1&&f===gc||Lo.indexOf(l)!==-1&&rx.indexOf(f)!==-1||rx.indexOf(l)!==-1&&Lo.indexOf(f)!==-1||[Bc,gc].indexOf(l)!==-1&&(f===WA||[mc,hc].indexOf(f)!==-1&&e[a+1]===WA)||[mc,hc].indexOf(l)!==-1&&f===WA||l===WA&&[WA,Ma,Da].indexOf(f)!==-1)return mt;if([WA,Ma,Da,mf,pc].indexOf(f)!==-1)for(var h=o;h>=0;){var p=e[h];if(p===WA)return mt;if([Ma,Da].indexOf(p)!==-1)h--;else break}if([Bc,gc].indexOf(f)!==-1)for(var h=[mf,pc].indexOf(l)!==-1?i:o;h>=0;){var p=e[h];if(p===WA)return mt;if([Ma,Da].indexOf(p)!==-1)h--;else break}if(HB===l&&[HB,yf,OB,LB].indexOf(f)!==-1||[yf,OB].indexOf(l)!==-1&&[yf,wf].indexOf(f)!==-1||[wf,LB].indexOf(l)!==-1&&f===wf||ox.indexOf(l)!==-1&&[ex,gc].indexOf(f)!==-1||ox.indexOf(f)!==-1&&l===Bc||Lo.indexOf(l)!==-1&&Lo.indexOf(f)!==-1||l===Da&&Lo.indexOf(f)!==-1||Lo.concat(WA).indexOf(l)!==-1&&f===mc&&YJ.indexOf(t[a])===-1||Lo.concat(WA).indexOf(f)!==-1&&l===pc)return mt;if(l===PB&&f===PB){for(var g=n[o],B=1;g>0&&(g--,e[g]===PB);)B++;if(B%2!==0)return mt}return l===gf&&f===Bf?mt:Cf},ZJ=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=JJ(t,e.lineBreak),A=n[0],r=n[1],o=n[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[WA,_s,tx].indexOf(a)!==-1?yc:a}));var i=e.wordBreak==="keep-all"?o.map(function(a,l){return a&&t[l]>=19968&&t[l]<=40959}):void 0;return[A,r,i]},eX=(function(){function t(e,n,A,r){this.codePoints=e,this.required=n===nx,this.start=A,this.end=r}return t.prototype.slice=function(){return yn.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),tX=function(t,e){var n=df(t),A=ZJ(n,e),r=A[0],o=A[1],i=A[2],a=n.length,l=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=mt;u<a&&(f=XJ(n,o,r,++u,i))===mt;);if(f!==mt||u===a){var h=new eX(n,f,l,u);return l=u,{value:h,done:!1}}return{done:!0,value:null}}}},nX=1,AX=2,wc=4,sx=8,bf=10,ax=47,Cc=92,rX=9,oX=32,vf=34,bc=61,iX=35,sX=36,aX=37,Ef=39,kf=40,vc=41,lX=95,IA=45,cX=33,uX=60,dX=62,fX=64,hX=91,pX=93,mX=61,gX=123,Sf=63,BX=125,lx=124,yX=126,wX=128,cx=65533,KB=42,Ts=43,CX=44,bX=58,vX=59,Ec=46,EX=0,kX=8,SX=11,FX=14,QX=31,xX=127,co=-1,ux=48,dx=97,fx=101,UX=102,IX=117,_X=122,hx=65,px=69,mx=70,TX=85,DX=90,oA=function(t){return t>=ux&&t<=57},MX=function(t){return t>=55296&&t<=57343},Oa=function(t){return oA(t)||t>=hx&&t<=mx||t>=dx&&t<=UX},OX=function(t){return t>=dx&&t<=_X},LX=function(t){return t>=hx&&t<=DX},NX=function(t){return OX(t)||LX(t)},HX=function(t){return t>=wX},Ff=function(t){return t===bf||t===rX||t===oX},Qf=function(t){return NX(t)||HX(t)||t===lX},gx=function(t){return Qf(t)||oA(t)||t===IA},PX=function(t){return t>=EX&&t<=kX||t===SX||t>=FX&&t<=QX||t===xX},Ti=function(t,e){return t!==Cc?!1:e!==bf},xf=function(t,e,n){return t===IA?Qf(e)||Ti(e,n):Qf(t)?!0:!!(t===Cc&&Ti(t,e))},zB=function(t,e,n){return t===Ts||t===IA?oA(e)?!0:e===Ec&&oA(n):oA(t===Ec?e:t)},RX=function(t){var e=0,n=1;(t[e]===Ts||t[e]===IA)&&(t[e]===IA&&(n=-1),e++);for(var A=[];oA(t[e]);)A.push(t[e++]);var r=A.length?parseInt(yn.apply(void 0,A),10):0;t[e]===Ec&&e++;for(var o=[];oA(t[e]);)o.push(t[e++]);var i=o.length,a=i?parseInt(yn.apply(void 0,o),10):0;(t[e]===px||t[e]===fx)&&e++;var l=1;(t[e]===Ts||t[e]===IA)&&(t[e]===IA&&(l=-1),e++);for(var u=[];oA(t[e]);)u.push(t[e++]);var f=u.length?parseInt(yn.apply(void 0,u),10):0;return n*(r+a*Math.pow(10,-i))*Math.pow(10,l*f)},VX={type:2},$X={type:3},KX={type:4},zX={type:13},WX={type:8},GX={type:21},YX={type:9},jX={type:10},qX={type:11},JX={type:12},XX={type:14},Uf={type:23},ZX={type:1},e9={type:25},t9={type:24},n9={type:26},A9={type:27},r9={type:28},o9={type:29},i9={type:31},WB={type:32},Bx=(function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(df(e))},t.prototype.read=function(){for(var e=[],n=this.consumeToken();n!==WB;)e.push(n),n=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case vf:return this.consumeStringToken(vf);case iX:var n=this.peekCodePoint(0),A=this.peekCodePoint(1),r=this.peekCodePoint(2);if(gx(n)||Ti(A,r)){var o=xf(n,A,r)?AX:nX,i=this.consumeName();return{type:5,value:i,flags:o}}break;case sX:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),zX;break;case Ef:return this.consumeStringToken(Ef);case kf:return VX;case vc:return $X;case KB:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),XX;break;case Ts:if(zB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case CX:return KX;case IA:var a=e,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(zB(a,l,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(xf(a,l,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===IA&&u===dX)return this.consumeCodePoint(),this.consumeCodePoint(),t9;break;case Ec:if(zB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ax:if(this.peekCodePoint(0)===KB)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===KB&&(f=this.consumeCodePoint(),f===ax))return this.consumeToken();if(f===co)return this.consumeToken()}break;case bX:return n9;case vX:return A9;case uX:if(this.peekCodePoint(0)===cX&&this.peekCodePoint(1)===IA&&this.peekCodePoint(2)===IA)return this.consumeCodePoint(),this.consumeCodePoint(),e9;break;case fX:var h=this.peekCodePoint(0),p=this.peekCodePoint(1),g=this.peekCodePoint(2);if(xf(h,p,g)){var i=this.consumeName();return{type:7,value:i}}break;case hX:return r9;case Cc:if(Ti(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case pX:return o9;case mX:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),WX;break;case gX:return qX;case BX:return JX;case IX:case TX:var B=this.peekCodePoint(0),y=this.peekCodePoint(1);return B===Ts&&(Oa(y)||y===Sf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case lx:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),YX;if(this.peekCodePoint(0)===lx)return this.consumeCodePoint(),GX;break;case yX:if(this.peekCodePoint(0)===bc)return this.consumeCodePoint(),jX;break;case co:return WB}return Ff(e)?(this.consumeWhiteSpace(),i9):oA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Qf(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:yn(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],n=this.consumeCodePoint();Oa(n)&&e.length<6;)e.push(n),n=this.consumeCodePoint();for(var A=!1;n===Sf&&e.length<6;)e.push(n),n=this.consumeCodePoint(),A=!0;if(A){var r=parseInt(yn.apply(void 0,e.map(function(l){return l===Sf?ux:l})),16),o=parseInt(yn.apply(void 0,e.map(function(l){return l===Sf?mx:l})),16);return{type:30,start:r,end:o}}var i=parseInt(yn.apply(void 0,e),16);if(this.peekCodePoint(0)===IA&&Oa(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var a=[];Oa(n)&&a.length<6;)a.push(n),n=this.consumeCodePoint();var o=parseInt(yn.apply(void 0,a),16);return{type:30,start:i,end:o}}else return{type:30,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===kf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===kf?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===co)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===Ef||n===vf){var A=this.consumeStringToken(this.consumeCodePoint());return A.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===co||this.peekCodePoint(0)===vc)?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),Uf)}for(;;){var r=this.consumeCodePoint();if(r===co||r===vc)return{type:22,value:yn.apply(void 0,e)};if(Ff(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===co||this.peekCodePoint(0)===vc?(this.consumeCodePoint(),{type:22,value:yn.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Uf);if(r===vf||r===Ef||r===kf||PX(r))return this.consumeBadUrlRemnants(),Uf;if(r===Cc)if(Ti(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Uf;else e.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Ff(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===vc||e===co)return;Ti(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var n=5e4,A="";e>0;){var r=Math.min(n,e);A+=yn.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),A},t.prototype.consumeStringToken=function(e){var n="",A=0;do{var r=this._value[A];if(r===co||r===void 0||r===e)return n+=this.consumeStringSlice(A),{type:0,value:n};if(r===bf)return this._value.splice(0,A),ZX;if(r===Cc){var o=this._value[A+1];o!==co&&o!==void 0&&(o===bf?(n+=this.consumeStringSlice(A),A=-1,this._value.shift()):Ti(r,o)&&(n+=this.consumeStringSlice(A),n+=yn(this.consumeEscapedCodePoint()),A=-1))}A++}while(!0)},t.prototype.consumeNumber=function(){var e=[],n=wc,A=this.peekCodePoint(0);for((A===Ts||A===IA)&&e.push(this.consumeCodePoint());oA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(A===Ec&&oA(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=sx;oA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((A===px||A===fx)&&((r===Ts||r===IA)&&oA(o)||oA(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),n=sx;oA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[RX(e),n]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),n=e[0],A=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(xf(r,o,i)){var a=this.consumeName();return{type:15,number:n,flags:A,unit:a}}return r===aX?(this.consumeCodePoint(),{type:16,number:n,flags:A}):{type:17,number:n,flags:A}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Oa(e)){for(var n=yn(e);Oa(this.peekCodePoint(0))&&n.length<6;)n+=yn(this.consumeCodePoint());Ff(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(n,16);return A===0||MX(A)||A>1114111?cx:A}return e===co?cx:e},t.prototype.consumeName=function(){for(var e="";;){var n=this.consumeCodePoint();if(gx(n))e+=yn(n);else if(Ti(n,this.peekCodePoint(0)))e+=yn(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),e}},t})(),yx=(function(){function t(e){this._tokens=e}return t.create=function(e){var n=new Bx;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var n=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var n=this.consumeComponentValue();if(n.type===32)return e;e.push(n),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var n={type:e,values:[]},A=this.consumeToken();;){if(A.type===32||a9(A,e))return n;this.reconsumeToken(A),n.values.push(this.consumeComponentValue()),A=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var n={name:e.value,values:[],type:18};;){var A=this.consumeToken();if(A.type===32||A.type===3)return n;this.reconsumeToken(A),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?WB:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t})(),kc=function(t){return t.type===15},La=function(t){return t.type===17},Lt=function(t){return t.type===20},s9=function(t){return t.type===0},GB=function(t,e){return Lt(t)&&t.value===e},wx=function(t){return t.type!==31},Na=function(t){return t.type!==31&&t.type!==4},uo=function(t){var e=[],n=[];return t.forEach(function(A){if(A.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}A.type!==31&&n.push(A)}),n.length&&e.push(n),e},a9=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Di=function(t){return t.type===17||t.type===15},Fn=function(t){return t.type===16||Di(t)},Cx=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Yn={type:17,number:0,flags:wc},YB={type:16,number:50,flags:wc},Mi={type:16,number:100,flags:wc},Sc=function(t,e,n){var A=t[0],r=t[1];return[Rt(A,e),Rt(typeof r<"u"?r:A,n)]},Rt=function(t,e){if(t.type===16)return t.number/100*e;if(kc(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},bx="deg",vx="grad",Ex="rad",kx="turn",If={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case bx:return Math.PI*e.number/180;case vx:return Math.PI/200*e.number;case Ex:return e.number;case kx:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Sx=function(t){return t.type===15&&(t.unit===bx||t.unit===vx||t.unit===Ex||t.unit===kx)},Fx=function(t){var e=t.filter(Lt).map(function(n){return n.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Yn,Yn];case"to top":case"bottom":return ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Yn,Mi];case"to right":case"left":return ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Mi,Mi];case"to bottom":case"top":return ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Mi,Yn];case"to left":case"right":return ar(270)}return 0},ar=function(t){return Math.PI*t/180},Oi={name:"color",parse:function(t,e){if(e.type===18){var n=l9[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(e.type===5){if(e.value.length===3){var A=e.value.substring(0,1),r=e.value.substring(1,2),o=e.value.substring(2,3);return Ni(parseInt(A+A,16),parseInt(r+r,16),parseInt(o+o,16),1)}if(e.value.length===4){var A=e.value.substring(0,1),r=e.value.substring(1,2),o=e.value.substring(2,3),i=e.value.substring(3,4);return Ni(parseInt(A+A,16),parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16)/255)}if(e.value.length===6){var A=e.value.substring(0,2),r=e.value.substring(2,4),o=e.value.substring(4,6);return Ni(parseInt(A,16),parseInt(r,16),parseInt(o,16),1)}if(e.value.length===8){var A=e.value.substring(0,2),r=e.value.substring(2,4),o=e.value.substring(4,6),i=e.value.substring(6,8);return Ni(parseInt(A,16),parseInt(r,16),parseInt(o,16),parseInt(i,16)/255)}}if(e.type===20){var a=No[e.value.toUpperCase()];if(typeof a<"u")return a}return No.TRANSPARENT}},Li=function(t){return(255&t)===0},Vn=function(t){var e=255&t,n=255&t>>8,A=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+A+","+n+","+e/255+")":"rgb("+r+","+A+","+n+")"},Ni=function(t,e,n,A){return(t<<24|e<<16|n<<8|Math.round(A*255)<<0)>>>0},Qx=function(t,e){if(t.type===17)return t.number;if(t.type===16){var n=e===3?1:255;return e===3?t.number/100*n:Math.round(t.number/100*n)}return 0},xx=function(t,e){var n=e.filter(Na);if(n.length===3){var A=n.map(Qx),r=A[0],o=A[1],i=A[2];return Ni(r,o,i,1)}if(n.length===4){var a=n.map(Qx),r=a[0],o=a[1],i=a[2],l=a[3];return Ni(r,o,i,l)}return 0};function jB(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<1/2?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var Ux=function(t,e){var n=e.filter(Na),A=n[0],r=n[1],o=n[2],i=n[3],a=(A.type===17?ar(A.number):If.parse(t,A))/(Math.PI*2),l=Fn(r)?r.number/100:0,u=Fn(o)?o.number/100:0,f=typeof i<"u"&&Fn(i)?Rt(i,1):1;if(l===0)return Ni(u*255,u*255,u*255,1);var h=u<=.5?u*(l+1):u+l-u*l,p=u*2-h,g=jB(p,h,a+1/3),B=jB(p,h,a),y=jB(p,h,a-1/3);return Ni(g*255,B*255,y*255,f)},l9={hsl:Ux,hsla:Ux,rgb:xx,rgba:xx},Fc=function(t,e){return Oi.parse(t,yx.create(e).parseComponentValue())},No={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},c9={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Lt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},u9={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_f=function(t,e){var n=Oi.parse(t,e[0]),A=e[1];return A&&Fn(A)?{color:n,stop:A}:{color:n,stop:null}},Ix=function(t,e){var n=t[0],A=t[t.length-1];n.stop===null&&(n.stop=Yn),A.stop===null&&(A.stop=Mi);for(var r=[],o=0,i=0;i<t.length;i++){var a=t[i].stop;if(a!==null){var l=Rt(a,e);l>o?r.push(l):r.push(o),o=l}else r.push(null)}for(var u=null,i=0;i<r.length;i++){var f=r[i];if(f===null)u===null&&(u=i);else if(u!==null){for(var h=i-u,p=r[u-1],g=(f-p)/(h+1),B=1;B<=h;B++)r[u+B-1]=g*B;u=null}}return t.map(function(y,C){var w=y.color;return{color:w,stop:Math.max(Math.min(1,r[C]/e),0)}})},d9=function(t,e,n){var A=e/2,r=n/2,o=Rt(t[0],e)-A,i=r-Rt(t[1],n);return(Math.atan2(i,o)+Math.PI*2)%(Math.PI*2)},f9=function(t,e,n){var A=typeof t=="number"?t:d9(t,e,n),r=Math.abs(e*Math.sin(A))+Math.abs(n*Math.cos(A)),o=e/2,i=n/2,a=r/2,l=Math.sin(A-Math.PI/2)*a,u=Math.cos(A-Math.PI/2)*a;return[r,o-u,o+u,i-l,i+l]},Hr=function(t,e){return Math.sqrt(t*t+e*e)},_x=function(t,e,n,A,r){var o=[[0,0],[0,e],[t,0],[t,e]];return o.reduce(function(i,a){var l=a[0],u=a[1],f=Hr(n-l,A-u);return(r?f<i.optimumDistance:f>i.optimumDistance)?{optimumCorner:a,optimumDistance:f}:i},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},h9=function(t,e,n,A,r){var o=0,i=0;switch(t.size){case 0:t.shape===0?o=i=Math.min(Math.abs(e),Math.abs(e-A),Math.abs(n),Math.abs(n-r)):t.shape===1&&(o=Math.min(Math.abs(e),Math.abs(e-A)),i=Math.min(Math.abs(n),Math.abs(n-r)));break;case 2:if(t.shape===0)o=i=Math.min(Hr(e,n),Hr(e,n-r),Hr(e-A,n),Hr(e-A,n-r));else if(t.shape===1){var a=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(e),Math.abs(e-A)),l=_x(A,r,e,n,!0),u=l[0],f=l[1];o=Hr(u-e,(f-n)/a),i=a*o}break;case 1:t.shape===0?o=i=Math.max(Math.abs(e),Math.abs(e-A),Math.abs(n),Math.abs(n-r)):t.shape===1&&(o=Math.max(Math.abs(e),Math.abs(e-A)),i=Math.max(Math.abs(n),Math.abs(n-r)));break;case 3:if(t.shape===0)o=i=Math.max(Hr(e,n),Hr(e,n-r),Hr(e-A,n),Hr(e-A,n-r));else if(t.shape===1){var a=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(e),Math.abs(e-A)),h=_x(A,r,e,n,!1),u=h[0],f=h[1];o=Hr(u-e,(f-n)/a),i=a*o}break}return Array.isArray(t.size)&&(o=Rt(t.size[0],A),i=t.size.length===2?Rt(t.size[1],r):o),[o,i]},p9=function(t,e){var n=ar(180),A=[];return uo(e).forEach(function(r,o){if(o===0){var i=r[0];if(i.type===20&&i.value==="to"){n=Fx(r);return}else if(Sx(i)){n=If.parse(t,i);return}}var a=_f(t,r);A.push(a)}),{angle:n,stops:A,type:1}},Tf=function(t,e){var n=ar(180),A=[];return uo(e).forEach(function(r,o){if(o===0){var i=r[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){n=Fx(r);return}else if(Sx(i)){n=(If.parse(t,i)+ar(270))%ar(360);return}}var a=_f(t,r);A.push(a)}),{angle:n,stops:A,type:1}},m9=function(t,e){var n=ar(180),A=[],r=1,o=0,i=3,a=[];return uo(e).forEach(function(l,u){var f=l[0];if(u===0){if(Lt(f)&&f.value==="linear"){r=1;return}else if(Lt(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var h=Oi.parse(t,f.values[0]);A.push({stop:Yn,color:h})}else if(f.name==="to"){var h=Oi.parse(t,f.values[0]);A.push({stop:Mi,color:h})}else if(f.name==="color-stop"){var p=f.values.filter(Na);if(p.length===2){var h=Oi.parse(t,p[1]),g=p[0];La(g)&&A.push({stop:{type:16,number:g.number*100,flags:g.flags},color:h})}}}}),r===1?{angle:(n+ar(180))%ar(360),stops:A,type:r}:{size:i,shape:o,stops:A,position:a,type:r}},Tx="closest-side",Dx="farthest-side",Mx="closest-corner",Ox="farthest-corner",Lx="circle",Nx="ellipse",Hx="cover",Px="contain",g9=function(t,e){var n=0,A=3,r=[],o=[];return uo(e).forEach(function(i,a){var l=!0;if(a===0){var u=!1;l=i.reduce(function(h,p){if(u)if(Lt(p))switch(p.value){case"center":return o.push(YB),h;case"top":case"left":return o.push(Yn),h;case"right":case"bottom":return o.push(Mi),h}else(Fn(p)||Di(p))&&o.push(p);else if(Lt(p))switch(p.value){case Lx:return n=0,!1;case Nx:return n=1,!1;case"at":return u=!0,!1;case Tx:return A=0,!1;case Hx:case Dx:return A=1,!1;case Px:case Mx:return A=2,!1;case Ox:return A=3,!1}else if(Di(p)||Fn(p))return Array.isArray(A)||(A=[]),A.push(p),!1;return h},l)}if(l){var f=_f(t,i);r.push(f)}}),{size:A,shape:n,stops:r,position:o,type:2}},Df=function(t,e){var n=0,A=3,r=[],o=[];return uo(e).forEach(function(i,a){var l=!0;if(a===0?l=i.reduce(function(f,h){if(Lt(h))switch(h.value){case"center":return o.push(YB),!1;case"top":case"left":return o.push(Yn),!1;case"right":case"bottom":return o.push(Mi),!1}else if(Fn(h)||Di(h))return o.push(h),!1;return f},l):a===1&&(l=i.reduce(function(f,h){if(Lt(h))switch(h.value){case Lx:return n=0,!1;case Nx:return n=1,!1;case Px:case Tx:return A=0,!1;case Dx:return A=1,!1;case Mx:return A=2,!1;case Hx:case Ox:return A=3,!1}else if(Di(h)||Fn(h))return Array.isArray(A)||(A=[]),A.push(h),!1;return f},l)),l){var u=_f(t,i);r.push(u)}}),{size:A,shape:n,stops:r,position:o,type:2}},B9=function(t){return t.type===1},y9=function(t){return t.type===2},qB={name:"image",parse:function(t,e){if(e.type===22){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(e.type===18){var A=Rx[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return A(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function w9(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Rx[t.name])}var Rx={"linear-gradient":p9,"-moz-linear-gradient":Tf,"-ms-linear-gradient":Tf,"-o-linear-gradient":Tf,"-webkit-linear-gradient":Tf,"radial-gradient":g9,"-moz-radial-gradient":Df,"-ms-radial-gradient":Df,"-o-radial-gradient":Df,"-webkit-radial-gradient":Df,"-webkit-gradient":m9},C9={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e.filter(function(A){return Na(A)&&w9(A)}).map(function(A){return qB.parse(t,A)})}},b9={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(n){if(Lt(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},v9={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return uo(e).map(function(n){return n.filter(Fn)}).map(Cx)}},E9={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return uo(e).map(function(n){return n.filter(Lt).map(function(A){return A.value}).join(" ")}).map(k9)}},k9=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ha;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Ha||(Ha={}));var S9={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return uo(e).map(function(n){return n.filter(F9)})}},F9=function(t){return Lt(t)||Fn(t)},Mf=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Q9=Mf("top"),x9=Mf("right"),U9=Mf("bottom"),I9=Mf("left"),Of=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,n){return Cx(n.filter(Fn))}}},_9=Of("top-left"),T9=Of("top-right"),D9=Of("bottom-right"),M9=Of("bottom-left"),Lf=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},O9=Lf("top"),L9=Lf("right"),N9=Lf("bottom"),H9=Lf("left"),Nf=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,n){return kc(n)?n.number:0}}},P9=Nf("top"),R9=Nf("right"),V9=Nf("bottom"),$9=Nf("left"),K9={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},z9={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},W9={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).reduce(function(n,A){return n|G9(A.value)},0)}},G9=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Y9={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},j9={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Hf;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Hf||(Hf={}));var q9={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Hf.STRICT;case"normal":default:return Hf.NORMAL}}},J9={name:"line-height",initialValue:"normal",prefix:!1,type:4},Vx=function(t,e){return Lt(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Fn(t)?Rt(t,e):e},X9={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:qB.parse(t,e)}},Z9={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},JB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Pf=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},eZ=Pf("top"),tZ=Pf("right"),nZ=Pf("bottom"),AZ=Pf("left"),rZ={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},oZ={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Rf=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},iZ=Rf("top"),sZ=Rf("right"),aZ=Rf("bottom"),lZ=Rf("left"),cZ={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},uZ={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},dZ={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&GB(e[0],"none")?[]:uo(e).map(function(n){for(var A={color:No.TRANSPARENT,offsetX:Yn,offsetY:Yn,blur:Yn},r=0,o=0;o<n.length;o++){var i=n[o];Di(i)?(r===0?A.offsetX=i:r===1?A.offsetY=i:A.blur=i,r++):A.color=Oi.parse(t,i)}return A})}},fZ={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},hZ={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var n=gZ[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},pZ=function(t){var e=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return e.length===6?e:null},mZ=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),n=e[0],A=e[1];e[2],e[3];var r=e[4],o=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var i=e[12],a=e[13];return e[14],e[15],e.length===16?[n,A,r,o,i,a]:null},gZ={matrix:pZ,matrix3d:mZ},$x={type:16,number:50,flags:wc},BZ=[$x,$x],yZ={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Fn);return n.length!==2?BZ:[n[0],n[1]]}},wZ={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Qc;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Qc||(Qc={}));for(var CZ={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Qc.BREAK_ALL;case"keep-all":return Qc.KEEP_ALL;case"normal":default:return Qc.NORMAL}}},bZ={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(La(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Kx={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},vZ={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return La(e)?e.number:1}},EZ={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},kZ={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Lt).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},SZ={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],A=[];return e.forEach(function(r){switch(r.type){case 20:case 0:n.push(r.value);break;case 17:n.push(r.number.toString());break;case 4:A.push(n.join(" ")),n.length=0;break}}),n.length&&A.push(n.join(" ")),A.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},FZ={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},QZ={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(La(e))return e.number;if(Lt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},xZ={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Lt).map(function(n){return n.value})}},UZ={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},xn=function(t,e){return(t&e)!==0},IZ={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var n=e[0];return n.type===20&&n.value==="none"?[]:e}},_Z={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;for(var A=[],r=e.filter(wx),o=0;o<r.length;o++){var i=r[o],a=r[o+1];if(i.type===20){var l=a&&La(a)?a.number:1;A.push({counter:i.value,increment:l})}}return A}},TZ={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var n=[],A=e.filter(wx),r=0;r<A.length;r++){var o=A[r],i=A[r+1];if(Lt(o)&&o.value!=="none"){var a=i&&La(i)?i.number:0;n.push({counter:o.value,reset:a})}}return n}},DZ={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(kc).map(function(n){return Kx.parse(t,n)})}},MZ={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var n=e[0];if(n.type===20&&n.value==="none")return null;var A=[],r=e.filter(s9);if(r.length%2!==0)return null;for(var o=0;o<r.length;o+=2){var i=r[o].value,a=r[o+1].value;A.push({open:i,close:a})}return A}},zx=function(t,e,n){if(!t)return"";var A=t[Math.min(e,t.length-1)];return A?n?A.open:A.close:""},OZ={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&GB(e[0],"none")?[]:uo(e).map(function(n){for(var A={color:255,offsetX:Yn,offsetY:Yn,blur:Yn,spread:Yn,inset:!1},r=0,o=0;o<n.length;o++){var i=n[o];GB(i,"inset")?A.inset=!0:Di(i)?(r===0?A.offsetX=i:r===1?A.offsetY=i:r===2?A.blur=i:A.spread=i,r++):A.color=Oi.parse(t,i)}return A})}},LZ={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],A=[];return e.filter(Lt).forEach(function(r){switch(r.value){case"stroke":A.push(1);break;case"fill":A.push(0);break;case"markers":A.push(2);break}}),n.forEach(function(r){A.indexOf(r)===-1&&A.push(r)}),A}},NZ={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},HZ={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return kc(e)?e.number:0}},PZ=(function(){function t(e,n){var A,r;this.animationDuration=He(e,DZ,n.animationDuration),this.backgroundClip=He(e,c9,n.backgroundClip),this.backgroundColor=He(e,u9,n.backgroundColor),this.backgroundImage=He(e,C9,n.backgroundImage),this.backgroundOrigin=He(e,b9,n.backgroundOrigin),this.backgroundPosition=He(e,v9,n.backgroundPosition),this.backgroundRepeat=He(e,E9,n.backgroundRepeat),this.backgroundSize=He(e,S9,n.backgroundSize),this.borderTopColor=He(e,Q9,n.borderTopColor),this.borderRightColor=He(e,x9,n.borderRightColor),this.borderBottomColor=He(e,U9,n.borderBottomColor),this.borderLeftColor=He(e,I9,n.borderLeftColor),this.borderTopLeftRadius=He(e,_9,n.borderTopLeftRadius),this.borderTopRightRadius=He(e,T9,n.borderTopRightRadius),this.borderBottomRightRadius=He(e,D9,n.borderBottomRightRadius),this.borderBottomLeftRadius=He(e,M9,n.borderBottomLeftRadius),this.borderTopStyle=He(e,O9,n.borderTopStyle),this.borderRightStyle=He(e,L9,n.borderRightStyle),this.borderBottomStyle=He(e,N9,n.borderBottomStyle),this.borderLeftStyle=He(e,H9,n.borderLeftStyle),this.borderTopWidth=He(e,P9,n.borderTopWidth),this.borderRightWidth=He(e,R9,n.borderRightWidth),this.borderBottomWidth=He(e,V9,n.borderBottomWidth),this.borderLeftWidth=He(e,$9,n.borderLeftWidth),this.boxShadow=He(e,OZ,n.boxShadow),this.color=He(e,K9,n.color),this.direction=He(e,z9,n.direction),this.display=He(e,W9,n.display),this.float=He(e,Y9,n.cssFloat),this.fontFamily=He(e,SZ,n.fontFamily),this.fontSize=He(e,FZ,n.fontSize),this.fontStyle=He(e,UZ,n.fontStyle),this.fontVariant=He(e,xZ,n.fontVariant),this.fontWeight=He(e,QZ,n.fontWeight),this.letterSpacing=He(e,j9,n.letterSpacing),this.lineBreak=He(e,q9,n.lineBreak),this.lineHeight=He(e,J9,n.lineHeight),this.listStyleImage=He(e,X9,n.listStyleImage),this.listStylePosition=He(e,Z9,n.listStylePosition),this.listStyleType=He(e,JB,n.listStyleType),this.marginTop=He(e,eZ,n.marginTop),this.marginRight=He(e,tZ,n.marginRight),this.marginBottom=He(e,nZ,n.marginBottom),this.marginLeft=He(e,AZ,n.marginLeft),this.opacity=He(e,vZ,n.opacity);var o=He(e,rZ,n.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=He(e,oZ,n.overflowWrap),this.paddingTop=He(e,iZ,n.paddingTop),this.paddingRight=He(e,sZ,n.paddingRight),this.paddingBottom=He(e,aZ,n.paddingBottom),this.paddingLeft=He(e,lZ,n.paddingLeft),this.paintOrder=He(e,LZ,n.paintOrder),this.position=He(e,uZ,n.position),this.textAlign=He(e,cZ,n.textAlign),this.textDecorationColor=He(e,EZ,(A=n.textDecorationColor)!==null&&A!==void 0?A:n.color),this.textDecorationLine=He(e,kZ,(r=n.textDecorationLine)!==null&&r!==void 0?r:n.textDecoration),this.textShadow=He(e,dZ,n.textShadow),this.textTransform=He(e,fZ,n.textTransform),this.transform=He(e,hZ,n.transform),this.transformOrigin=He(e,yZ,n.transformOrigin),this.visibility=He(e,wZ,n.visibility),this.webkitTextStrokeColor=He(e,NZ,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=He(e,HZ,n.webkitTextStrokeWidth),this.wordBreak=He(e,CZ,n.wordBreak),this.zIndex=He(e,bZ,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Li(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return xn(this.display,4)||xn(this.display,33554432)||xn(this.display,268435456)||xn(this.display,536870912)||xn(this.display,67108864)||xn(this.display,134217728)},t})(),RZ=(function(){function t(e,n){this.content=He(e,IZ,n.content),this.quotes=He(e,MZ,n.quotes)}return t})(),Wx=(function(){function t(e,n){this.counterIncrement=He(e,_Z,n.counterIncrement),this.counterReset=He(e,TZ,n.counterReset)}return t})(),He=function(t,e,n){var A=new Bx,r=n!==null&&typeof n<"u"?n.toString():e.initialValue;A.write(r);var o=new yx(A.read());switch(e.type){case 2:var i=o.parseComponentValue();return e.parse(t,Lt(i)?i.value:e.initialValue);case 0:return e.parse(t,o.parseComponentValue());case 1:return e.parse(t,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return If.parse(t,o.parseComponentValue());case"color":return Oi.parse(t,o.parseComponentValue());case"image":return qB.parse(t,o.parseComponentValue());case"length":var a=o.parseComponentValue();return Di(a)?a:Yn;case"length-percentage":var l=o.parseComponentValue();return Fn(l)?l:Yn;case"time":return Kx.parse(t,o.parseComponentValue())}break}},VZ="data-html2canvas-debug",$Z=function(t){var e=t.getAttribute(VZ);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},XB=function(t,e){var n=$Z(t);return n===1||e===n},fo=(function(){function t(e,n){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,XB(n,3))debugger;this.styles=new PZ(e,window.getComputedStyle(n,null)),dy(n)&&(this.styles.animationDuration.some(function(A){return A>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=uf(this.context,n),XB(n,4)&&(this.flags|=16)}return t})(),KZ="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Gx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vf=0;Vf<Gx.length;Vf++)xc[Gx.charCodeAt(Vf)]=Vf;for(var zZ=function(t){var e=t.length*.75,n=t.length,A,r=0,o,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),f=Array.isArray(u)?u:new Uint8Array(u);for(A=0;A<n;A+=4)o=xc[t.charCodeAt(A)],i=xc[t.charCodeAt(A+1)],a=xc[t.charCodeAt(A+2)],l=xc[t.charCodeAt(A+3)],f[r++]=o<<2|i>>4,f[r++]=(i&15)<<4|a>>2,f[r++]=(a&3)<<6|l&63;return u},WZ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=2)n.push(t[A+1]<<8|t[A]);return n},GZ=function(t){for(var e=t.length,n=[],A=0;A<e;A+=4)n.push(t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A]);return n},Ds=5,ZB=11,ey=2,YZ=ZB-Ds,Yx=65536>>Ds,jZ=1<<Ds,ty=jZ-1,qZ=1024>>Ds,JZ=Yx+qZ,XZ=JZ,ZZ=32,eee=XZ+ZZ,tee=65536>>ZB,nee=1<<YZ,Aee=nee-1,jx=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},ree=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},oee=function(t,e){var n=zZ(t),A=Array.isArray(n)?GZ(n):new Uint32Array(n),r=Array.isArray(n)?WZ(n):new Uint16Array(n),o=24,i=jx(r,o/2,A[4]/2),a=A[5]===2?jx(r,(o+A[4])/2):ree(A,Math.ceil((o+A[4])/4));return new iee(A[0],A[1],A[2],A[3],i,a)},iee=(function(){function t(e,n,A,r,o,i){this.initialValue=e,this.errorValue=n,this.highStart=A,this.highValueIndex=r,this.index=o,this.data=i}return t.prototype.get=function(e){var n;if(e>=0){if(e<55296||e>56319&&e<=65535)return n=this.index[e>>Ds],n=(n<<ey)+(e&ty),this.data[n];if(e<=65535)return n=this.index[Yx+(e-55296>>Ds)],n=(n<<ey)+(e&ty),this.data[n];if(e<this.highStart)return n=eee-tee+(e>>ZB),n=this.index[n],n+=e>>Ds&Aee,n=this.index[n],n=(n<<ey)+(e&ty),this.data[n];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),qx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",see=typeof Uint8Array>"u"?[]:new Uint8Array(256),$f=0;$f<qx.length;$f++)see[qx.charCodeAt($f)]=$f;var aee=1,ny=2,Ay=3,Jx=4,Xx=5,lee=7,Zx=8,ry=9,oy=10,eU=11,tU=12,nU=13,AU=14,iy=15,cee=function(t){for(var e=[],n=0,A=t.length;n<A;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var o=t.charCodeAt(n++);(o&64512)===56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),n--)}else e.push(r)}return e},uee=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var A=[],r=-1,o="";++r<n;){var i=t[r];i<=65535?A.push(i):(i-=65536,A.push((i>>10)+55296,i%1024+56320)),(r+1===n||A.length>16384)&&(o+=String.fromCharCode.apply(String,A),A.length=0)}return o},dee=oee(KZ),lr="×",sy="÷",fee=function(t){return dee.get(t)},hee=function(t,e,n){var A=n-2,r=e[A],o=e[n-1],i=e[n];if(o===ny&&i===Ay)return lr;if(o===ny||o===Ay||o===Jx||i===ny||i===Ay||i===Jx)return sy;if(o===Zx&&[Zx,ry,eU,tU].indexOf(i)!==-1||(o===eU||o===ry)&&(i===ry||i===oy)||(o===tU||o===oy)&&i===oy||i===nU||i===Xx||i===lee||o===aee)return lr;if(o===nU&&i===AU){for(;r===Xx;)r=e[--A];if(r===AU)return lr}if(o===iy&&i===iy){for(var a=0;r===iy;)a++,r=e[--A];if(a%2===0)return lr}return sy},pee=function(t){var e=cee(t),n=e.length,A=0,r=0,o=e.map(fee);return{next:function(){if(A>=n)return{done:!0,value:null};for(var i=lr;A<n&&(i=hee(e,o,++A))===lr;);if(i!==lr||A===n){var a=uee.apply(null,e.slice(r,A));return r=A,{value:a,done:!1}}return{done:!0,value:null}}}},mee=function(t){for(var e=pee(t),n=[],A;!(A=e.next()).done;)A.value&&n.push(A.value.slice());return n},gee=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var A=t.createElement("boundtest");A.style.height=e+"px",A.style.display="block",t.body.appendChild(A),n.selectNode(A);var r=n.getBoundingClientRect(),o=Math.round(r.height);if(t.body.removeChild(A),o===e)return!0}}return!1},Bee=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var A=e.firstChild,r=df(A.data).map(function(l){return yn(l)}),o=0,i={},a=r.every(function(l,u){n.setStart(A,o),n.setEnd(A,o+l.length);var f=n.getBoundingClientRect();o+=l.length;var h=f.x>i.x||f.y>i.y;return i=f,u===0?!0:h});return t.body.removeChild(e),a},yee=function(){return typeof new Image().crossOrigin<"u"},wee=function(){return typeof new XMLHttpRequest().responseType=="string"},Cee=function(t){var e=new Image,n=t.createElement("canvas"),A=n.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(e,0,0),n.toDataURL()}catch{return!1}return!0},rU=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},bee=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var A=e.getContext("2d");if(!A)return Promise.reject(!1);A.fillStyle="rgb(0, 255, 0)",A.fillRect(0,0,n,n);var r=new Image,o=e.toDataURL();r.src=o;var i=ay(n,n,0,0,r);return A.fillStyle="red",A.fillRect(0,0,n,n),oU(i).then(function(a){A.drawImage(a,0,0);var l=A.getImageData(0,0,n,n).data;A.fillStyle="red",A.fillRect(0,0,n,n);var u=t.createElement("div");return u.style.backgroundImage="url("+o+")",u.style.height=n+"px",rU(l)?oU(ay(n,n,0,0,u)):Promise.reject(!1)}).then(function(a){return A.drawImage(a,0,0),rU(A.getImageData(0,0,n,n).data)}).catch(function(){return!1})},ay=function(t,e,n,A,r){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",t.toString()),i.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",A.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(a),a.appendChild(r),i},oU=function(t){return new Promise(function(e,n){var A=new Image;A.onload=function(){return e(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},jn={get SUPPORT_RANGE_BOUNDS(){var t=gee(document);return Object.defineProperty(jn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=jn.SUPPORT_RANGE_BOUNDS&&Bee(document);return Object.defineProperty(jn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Cee(document);return Object.defineProperty(jn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?bee(document):Promise.resolve(!1);return Object.defineProperty(jn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=yee();return Object.defineProperty(jn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=wee();return Object.defineProperty(jn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(jn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Uc=(function(){function t(e,n){this.text=e,this.bounds=n}return t})(),vee=function(t,e,n,A){var r=See(e,n),o=[],i=0;return r.forEach(function(a){if(n.textDecorationLine.length||a.trim().length>0)if(jn.SUPPORT_RANGE_BOUNDS){var l=iU(A,i,a.length).getClientRects();if(l.length>1){var u=ly(a),f=0;u.forEach(function(p){o.push(new Uc(p,Oo.fromDOMRectList(t,iU(A,f+i,p.length).getClientRects()))),f+=p.length})}else o.push(new Uc(a,Oo.fromDOMRectList(t,l)))}else{var h=A.splitText(a.length);o.push(new Uc(a,Eee(t,A))),A=h}else jn.SUPPORT_RANGE_BOUNDS||(A=A.splitText(a.length));i+=a.length}),o},Eee=function(t,e){var n=e.ownerDocument;if(n){var A=n.createElement("html2canvaswrapper");A.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(A,e);var o=uf(t,A);return A.firstChild&&r.replaceChild(A.firstChild,A),o}}return Oo.EMPTY},iU=function(t,e,n){var A=t.ownerDocument;if(!A)throw new Error("Node has no owner document");var r=A.createRange();return r.setStart(t,e),r.setEnd(t,e+n),r},ly=function(t){if(jn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return mee(t)},kee=function(t,e){if(jn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(A){return A.segment})}return Qee(t,e)},See=function(t,e){return e.letterSpacing!==0?ly(t):kee(t,e)},Fee=[32,160,4961,65792,65793,4153,4241],Qee=function(t,e){for(var n=tX(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),A=[],r,o=function(){if(r.value){var i=r.value.slice(),a=df(i),l="";a.forEach(function(u){Fee.indexOf(u)===-1?l+=yn(u):(l.length&&A.push(l),A.push(yn(u)),l="")}),l.length&&A.push(l)}};!(r=n.next()).done;)o();return A},xee=(function(){function t(e,n,A){this.text=Uee(n.data,A.textTransform),this.textBounds=vee(e,this.text,A,n)}return t})(),Uee=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Iee,_ee);case 2:return t.toUpperCase();default:return t}},Iee=/(^|\s|:|-|\(|\))([a-z])/g,_ee=function(t,e,n){return t.length>0?e+n.toUpperCase():t},sU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.src=A.currentSrc||A.src,r.intrinsicWidth=A.naturalWidth,r.intrinsicHeight=A.naturalHeight,r.context.cache.addImage(r.src),r}return e})(fo),aU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.canvas=A,r.intrinsicWidth=A.width,r.intrinsicHeight=A.height,r}return e})(fo),lU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this,o=new XMLSerializer,i=uf(n,A);return A.setAttribute("width",i.width+"px"),A.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(A)),r.intrinsicWidth=A.width.baseVal.value,r.intrinsicHeight=A.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e})(fo),cU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.value=A.value,r}return e})(fo),cy=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.start=A.start,r.reversed=typeof A.reversed=="boolean"&&A.reversed===!0,r}return e})(fo),Tee=[{type:15,flags:0,unit:"px",number:3}],Dee=[{type:16,flags:0,number:50}],Mee=function(t){return t.width>t.height?new Oo(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Oo(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},Oee=function(t){var e=t.type===Lee?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},Kf="checkbox",zf="radio",Lee="password",uU=707406591,uy=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;switch(r.type=A.type.toLowerCase(),r.checked=A.checked,r.value=Oee(A),(r.type===Kf||r.type===zf)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Mee(r.bounds)),r.type){case Kf:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Tee;break;case zf:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Dee;break}return r}return e})(fo),dU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this,o=A.options[A.selectedIndex||0];return r.value=o&&o.text||"",r}return e})(fo),fU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.value=A.value,r}return e})(fo),hU=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;r.src=A.src,r.width=parseInt(A.width,10)||0,r.height=parseInt(A.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){r.tree=mU(n,A.contentWindow.document.documentElement);var o=A.contentWindow.document.documentElement?Fc(n,getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):No.TRANSPARENT,i=A.contentWindow.document.body?Fc(n,getComputedStyle(A.contentWindow.document.body).backgroundColor):No.TRANSPARENT;r.backgroundColor=Li(o)?Li(i)?r.styles.backgroundColor:i:o}}catch{}return r}return e})(fo),Nee=["OL","UL","MENU"],Wf=function(t,e,n,A){for(var r=e.firstChild,o=void 0;r;r=o)if(o=r.nextSibling,gU(r)&&r.data.trim().length>0)n.textNodes.push(new xee(t,r,n.styles));else if(Pa(r))if(vU(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return Wf(t,a,n,A)});else{var i=pU(t,r);i.styles.isVisible()&&(Hee(r,i,A)?i.flags|=4:Pee(i.styles)&&(i.flags|=2),Nee.indexOf(r.tagName)!==-1&&(i.flags|=8),n.elements.push(i),r.slot,r.shadowRoot?Wf(t,r.shadowRoot,i,A):!Yf(r)&&!BU(r)&&!jf(r)&&Wf(t,r,i,A))}},pU=function(t,e){return hy(e)?new sU(t,e):yU(e)?new aU(t,e):BU(e)?new lU(t,e):Ree(e)?new cU(t,e):Vee(e)?new cy(t,e):$ee(e)?new uy(t,e):jf(e)?new dU(t,e):Yf(e)?new fU(t,e):CU(e)?new hU(t,e):new fo(t,e)},mU=function(t,e){var n=pU(t,e);return n.flags|=4,Wf(t,e,n,n),n},Hee=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fy(t)&&n.styles.isTransparent()},Pee=function(t){return t.isPositioned()||t.isFloating()},gU=function(t){return t.nodeType===Node.TEXT_NODE},Pa=function(t){return t.nodeType===Node.ELEMENT_NODE},dy=function(t){return Pa(t)&&typeof t.style<"u"&&!Gf(t)},Gf=function(t){return typeof t.className=="object"},Ree=function(t){return t.tagName==="LI"},Vee=function(t){return t.tagName==="OL"},$ee=function(t){return t.tagName==="INPUT"},Kee=function(t){return t.tagName==="HTML"},BU=function(t){return t.tagName==="svg"},fy=function(t){return t.tagName==="BODY"},yU=function(t){return t.tagName==="CANVAS"},wU=function(t){return t.tagName==="VIDEO"},hy=function(t){return t.tagName==="IMG"},CU=function(t){return t.tagName==="IFRAME"},bU=function(t){return t.tagName==="STYLE"},zee=function(t){return t.tagName==="SCRIPT"},Yf=function(t){return t.tagName==="TEXTAREA"},jf=function(t){return t.tagName==="SELECT"},vU=function(t){return t.tagName==="SLOT"},EU=function(t){return t.tagName.indexOf("-")>0},Wee=(function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var n=this.counters[e];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(e){var n=this.counters[e];return n||[]},t.prototype.pop=function(e){var n=this;e.forEach(function(A){return n.counters[A].pop()})},t.prototype.parse=function(e){var n=this,A=e.counterIncrement,r=e.counterReset,o=!0;A!==null&&A.forEach(function(a){var l=n.counters[a.counter];l&&a.increment!==0&&(o=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=a.increment)});var i=[];return o&&r.forEach(function(a){var l=n.counters[a.counter];i.push(a.counter),l||(l=n.counters[a.counter]=[]),l.push(a.reset)}),i},t})(),kU={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},SU={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Gee={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Yee={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ra=function(t,e,n,A,r,o){return t<e||t>n?_c(t,r,o.length>0):A.integers.reduce(function(i,a,l){for(;t>=a;)t-=a,i+=A.values[l];return i},"")+o},FU=function(t,e,n,A){var r="";do n||t--,r=A(t)+r,t/=e;while(t*e>=e);return r},wn=function(t,e,n,A,r){var o=n-e+1;return(t<0?"-":"")+(FU(Math.abs(t),o,A,function(i){return yn(Math.floor(i%o)+e)})+r)},Ms=function(t,e,n){n===void 0&&(n=". ");var A=e.length;return FU(Math.abs(t),A,!1,function(r){return e[Math.floor(r%A)]})+n},Va=1,Hi=2,Pi=4,Ic=8,Ho=function(t,e,n,A,r,o){if(t<-9999||t>9999)return _c(t,4,r.length>0);var i=Math.abs(t),a=r;if(i===0)return e[0]+a;for(var l=0;i>0&&l<=4;l++){var u=i%10;u===0&&xn(o,Va)&&a!==""?a=e[u]+a:u>1||u===1&&l===0||u===1&&l===1&&xn(o,Hi)||u===1&&l===1&&xn(o,Pi)&&t>100||u===1&&l>1&&xn(o,Ic)?a=e[u]+(l>0?n[l-1]:"")+a:u===1&&l>0&&(a=n[l-1]+a),i=Math.floor(i/10)}return(t<0?A:"")+a},QU="十百千萬",xU="拾佰仟萬",UU="マイナス",py="마이너스",_c=function(t,e,n){var A=n?". ":"",r=n?"、":"",o=n?", ":"",i=n?" ":"";switch(e){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var a=wn(t,48,57,!0,A);return a.length<4?"0"+a:a;case 4:return Ms(t,"〇一二三四五六七八九",r);case 6:return Ra(t,1,3999,kU,3,A).toLowerCase();case 7:return Ra(t,1,3999,kU,3,A);case 8:return wn(t,945,969,!1,A);case 9:return wn(t,97,122,!1,A);case 10:return wn(t,65,90,!1,A);case 11:return wn(t,1632,1641,!0,A);case 12:case 49:return Ra(t,1,9999,SU,3,A);case 35:return Ra(t,1,9999,SU,3,A).toLowerCase();case 13:return wn(t,2534,2543,!0,A);case 14:case 30:return wn(t,6112,6121,!0,A);case 15:return Ms(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Ms(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Ho(t,"零一二三四五六七八九",QU,"負",r,Hi|Pi|Ic);case 47:return Ho(t,"零壹貳參肆伍陸柒捌玖",xU,"負",r,Va|Hi|Pi|Ic);case 42:return Ho(t,"零一二三四五六七八九",QU,"负",r,Hi|Pi|Ic);case 41:return Ho(t,"零壹贰叁肆伍陆柒捌玖",xU,"负",r,Va|Hi|Pi|Ic);case 26:return Ho(t,"〇一二三四五六七八九","十百千万",UU,r,0);case 25:return Ho(t,"零壱弐参四伍六七八九","拾百千万",UU,r,Va|Hi|Pi);case 31:return Ho(t,"영일이삼사오육칠팔구","십백천만",py,o,Va|Hi|Pi);case 33:return Ho(t,"零一二三四五六七八九","十百千萬",py,o,0);case 32:return Ho(t,"零壹貳參四五六七八九","拾百千",py,o,Va|Hi|Pi);case 18:return wn(t,2406,2415,!0,A);case 20:return Ra(t,1,19999,Yee,3,A);case 21:return wn(t,2790,2799,!0,A);case 22:return wn(t,2662,2671,!0,A);case 22:return Ra(t,1,10999,Gee,3,A);case 23:return Ms(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ms(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return wn(t,3302,3311,!0,A);case 28:return Ms(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Ms(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return wn(t,3792,3801,!0,A);case 37:return wn(t,6160,6169,!0,A);case 38:return wn(t,4160,4169,!0,A);case 39:return wn(t,2918,2927,!0,A);case 40:return wn(t,1776,1785,!0,A);case 43:return wn(t,3046,3055,!0,A);case 44:return wn(t,3174,3183,!0,A);case 45:return wn(t,3664,3673,!0,A);case 46:return wn(t,3872,3881,!0,A);case 3:default:return wn(t,48,57,!0,A)}},IU="data-html2canvas-ignore",_U=(function(){function t(e,n,A){if(this.context=e,this.options=A,this.scrolledElements=[],this.referenceElement=n,this.counters=new Wee,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,n){var A=this,r=jee(e,n);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,a=r.contentWindow,l=a.document,u=Xee(r).then(function(){return yA(A,void 0,void 0,function(){var f,h;return rA(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(nte),a&&(a.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==n.top||a.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-n.left,a.scrollY-n.top,0,0))),f=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Jee(l)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(l,h)}).then(function(){return r})]:[2,r]}})})});return l.open(),l.write(ete(document.doctype)+"<html></html>"),tte(this.referenceElement.ownerDocument,o,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(e){if(XB(e,2))debugger;if(yU(e))return this.createCanvasClone(e);if(wU(e))return this.createVideoClone(e);if(bU(e))return this.createStyleClone(e);var n=e.cloneNode(!1);return hy(n)&&(hy(e)&&e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),EU(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(e){var n=document.createElement("html2canvascustomelement");return my(e.style,n),n},t.prototype.createStyleClone=function(e){try{var n=e.sheet;if(n&&n.cssRules){var A=[].slice.call(n.cssRules,0).reduce(function(o,i){return i&&typeof i.cssText=="string"?o+i.cssText:o},""),r=e.cloneNode(!1);return r.textContent=A,r}}catch(o){if(this.context.logger.error("Unable to access cssRules property",o),o.name!=="SecurityError")throw o}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var n;if(this.options.inlineImages&&e.ownerDocument){var A=e.ownerDocument.createElement("img");try{return A.src=e.toDataURL(),A}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var o=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var a=(n=e.getContext("webgl2"))!==null&&n!==void 0?n:e.getContext("webgl");if(a){var l=a.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},t.prototype.createVideoClone=function(e){var n=e.ownerDocument.createElement("canvas");n.width=e.offsetWidth,n.height=e.offsetHeight;var A=n.getContext("2d");try{return A&&(A.drawImage(e,0,0,n.width,n.height),this.options.allowTaint||A.getImageData(0,0,n.width,n.height)),n}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},t.prototype.appendChildNode=function(e,n,A){(!Pa(n)||!zee(n)&&!n.hasAttribute(IU)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!Pa(n)||!bU(n))&&e.appendChild(this.cloneNode(n,A))},t.prototype.cloneChildNodes=function(e,n,A){for(var r=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(Pa(o)&&vU(o)&&typeof o.assignedNodes=="function"){var i=o.assignedNodes();i.length&&i.forEach(function(a){return r.appendChildNode(n,a,A)})}else this.appendChildNode(n,o,A)},t.prototype.cloneNode=function(e,n){if(gU(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var A=e.ownerDocument.defaultView;if(A&&Pa(e)&&(dy(e)||Gf(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var o=A.getComputedStyle(e),i=A.getComputedStyle(e,":before"),a=A.getComputedStyle(e,":after");this.referenceElement===e&&dy(r)&&(this.clonedReferenceElement=r),fy(r)&&ote(r);var l=this.counters.parse(new Wx(this.context,o)),u=this.resolvePseudoContent(e,r,i,Tc.BEFORE);EU(e)&&(n=!0),wU(e)||this.cloneChildNodes(e,r,n),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(e,r,a,Tc.AFTER);return f&&r.appendChild(f),this.counters.pop(l),(o&&(this.options.copyStyles||Gf(e))&&!CU(e)||n)&&my(o,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Yf(e)||jf(e))&&(Yf(r)||jf(r))&&(r.value=e.value),r}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,n,A,r){var o=this;if(A){var i=A.content,a=n.ownerDocument;if(!(!a||!i||i==="none"||i==="-moz-alt-content"||A.display==="none")){this.counters.parse(new Wx(this.context,A));var l=new RZ(this.context,A),u=a.createElement("html2canvaspseudoelement");my(A,u),l.content.forEach(function(h){if(h.type===0)u.appendChild(a.createTextNode(h.value));else if(h.type===22){var p=a.createElement("img");p.src=h.value,p.style.opacity="1",u.appendChild(p)}else if(h.type===18){if(h.name==="attr"){var g=h.values.filter(Lt);g.length&&u.appendChild(a.createTextNode(e.getAttribute(g[0].value)||""))}else if(h.name==="counter"){var B=h.values.filter(Na),y=B[0],C=B[1];if(y&&Lt(y)){var w=o.counters.getCounterValue(y.value),F=C&&Lt(C)?JB.parse(o.context,C.value):3;u.appendChild(a.createTextNode(_c(w,F,!1)))}}else if(h.name==="counters"){var _=h.values.filter(Na),y=_[0],D=_[1],C=_[2];if(y&&Lt(y)){var P=o.counters.getCounterValues(y.value),T=C&&Lt(C)?JB.parse(o.context,C.value):3,H=D&&D.type===0?D.value:"",te=P.map(function(pe){return _c(pe,T,!1)}).join(H);u.appendChild(a.createTextNode(te))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(a.createTextNode(zx(l.quotes,o.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(zx(l.quotes,--o.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(h.value))}}),u.className=gy+" "+By;var f=r===Tc.BEFORE?" "+gy:" "+By;return Gf(n)?n.className.baseValue+=f:n.className+=f,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t})(),Tc;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(Tc||(Tc={}));var jee=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(IU,"true"),t.body.appendChild(n),n},qee=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},Jee=function(t){return Promise.all([].slice.call(t.images,0).map(qee))},Xee=function(t){return new Promise(function(e,n){var A=t.contentWindow;if(!A)return n("No window assigned for iframe");var r=A.document;A.onload=t.onload=function(){A.onload=t.onload=null;var o=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(o),e(t))},50)}})},Zee=["all","d","content"],my=function(t,e){for(var n=t.length-1;n>=0;n--){var A=t.item(n);Zee.indexOf(A)===-1&&e.style.setProperty(A,t.getPropertyValue(A))}return e},ete=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},tte=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},nte=function(t){var e=t[0],n=t[1],A=t[2];e.scrollLeft=n,e.scrollTop=A},Ate=":before",rte=":after",gy="___html2canvas___pseudoelement_before",By="___html2canvas___pseudoelement_after",TU=`{
177
177
  content: "" !important;
178
178
  display: none !important;
179
- }`,nte=function(t){Ate(t,"."+gy+ete+TU+`
180
- .`+By+tte+TU)},Ate=function(t,e){var n=t.ownerDocument;if(n){var A=n.createElement("style");A.textContent=e,t.appendChild(A)}},DU=(function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t})(),rte=(function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(wy(e)||ate(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return yA(this,void 0,void 0,function(){var n,A,r,o,i=this;return rA(this,function(a){switch(a.label){case 0:return n=DU.isSameOrigin(e),A=!yy(e)&&this._options.useCORS===!0&&jn.SUPPORT_CORS_IMAGES&&!n,r=!yy(e)&&!n&&!wy(e)&&typeof this._options.proxy=="string"&&jn.SUPPORT_CORS_XHR&&!A,!n&&this._options.allowTaint===!1&&!yy(e)&&!wy(e)&&!r&&!A?[2]:(o=e,r?[4,this.proxy(o)]:[3,2]);case 1:o=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,u){var f=new Image;f.onload=function(){return l(f)},f.onerror=u,(lte(o)||A)&&(f.crossOrigin="anonymous"),f.src=o,f.complete===!0&&setTimeout(function(){return l(f)},500),i._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var n=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(o,i){var a=jn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(a==="text")o(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return o(h.result)},!1),h.addEventListener("error",function(p){return i(p)},!1),h.readAsDataURL(l.response)}else i("Failed to proxy resource "+r+" with status code "+l.status)},l.onerror=i;var u=A.indexOf("?")>-1?"&":"?";if(l.open("GET",""+A+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=a),n._options.imageTimeout){var f=n._options.imageTimeout;l.timeout=f,l.ontimeout=function(){return i("Timed out ("+f+"ms) proxying "+r)}}l.send()})},t})(),ote=/^data:image\/svg\+xml/i,ite=/^data:image\/.*;base64,/i,ste=/^data:image\/.*/i,ate=function(t){return jn.SUPPORT_SVG_DRAWING||!cte(t)},yy=function(t){return ste.test(t)},lte=function(t){return ite.test(t)},wy=function(t){return t.substr(0,4)==="blob"},cte=function(t){return t.substr(-3).toLowerCase()==="svg"||ote.test(t)},Le=(function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t})(),$a=function(t,e,n){return new Le(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},qf=(function(){function t(e,n,A,r){this.type=1,this.start=e,this.startControl=n,this.endControl=A,this.end=r}return t.prototype.subdivide=function(e,n){var A=$a(this.start,this.startControl,e),r=$a(this.startControl,this.endControl,e),o=$a(this.endControl,this.end,e),i=$a(A,r,e),a=$a(r,o,e),l=$a(i,a,e);return n?new t(this.start,A,i,l):new t(l,a,o,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t})(),cr=function(t){return t.type===1},ute=(function(){function t(e){var n=e.styles,A=e.bounds,r=Sc(n.borderTopLeftRadius,A.width,A.height),o=r[0],i=r[1],a=Sc(n.borderTopRightRadius,A.width,A.height),l=a[0],u=a[1],f=Sc(n.borderBottomRightRadius,A.width,A.height),h=f[0],p=f[1],g=Sc(n.borderBottomLeftRadius,A.width,A.height),B=g[0],y=g[1],C=[];C.push((o+l)/A.width),C.push((B+h)/A.width),C.push((i+y)/A.height),C.push((u+p)/A.height);var w=Math.max.apply(Math,C);w>1&&(o/=w,i/=w,l/=w,u/=w,h/=w,p/=w,B/=w,y/=w);var F=A.width-l,_=A.height-p,D=A.width-h,P=A.height-y,T=n.borderTopWidth,H=n.borderRightWidth,te=n.borderBottomWidth,Z=n.borderLeftWidth,ne=Rt(n.paddingTop,e.bounds.width),pe=Rt(n.paddingRight,e.bounds.width),Be=Rt(n.paddingBottom,e.bounds.width),we=Rt(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?Xt(A.left+Z/3,A.top+T/3,o-Z/3,i-T/3,Qt.TOP_LEFT):new Le(A.left+Z/3,A.top+T/3),this.topRightBorderDoubleOuterBox=o>0||i>0?Xt(A.left+F,A.top+T/3,l-H/3,u-T/3,Qt.TOP_RIGHT):new Le(A.left+A.width-H/3,A.top+T/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?Xt(A.left+D,A.top+_,h-H/3,p-te/3,Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H/3,A.top+A.height-te/3),this.bottomLeftBorderDoubleOuterBox=B>0||y>0?Xt(A.left+Z/3,A.top+P,B-Z/3,y-te/3,Qt.BOTTOM_LEFT):new Le(A.left+Z/3,A.top+A.height-te/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?Xt(A.left+Z*2/3,A.top+T*2/3,o-Z*2/3,i-T*2/3,Qt.TOP_LEFT):new Le(A.left+Z*2/3,A.top+T*2/3),this.topRightBorderDoubleInnerBox=o>0||i>0?Xt(A.left+F,A.top+T*2/3,l-H*2/3,u-T*2/3,Qt.TOP_RIGHT):new Le(A.left+A.width-H*2/3,A.top+T*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?Xt(A.left+D,A.top+_,h-H*2/3,p-te*2/3,Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H*2/3,A.top+A.height-te*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||y>0?Xt(A.left+Z*2/3,A.top+P,B-Z*2/3,y-te*2/3,Qt.BOTTOM_LEFT):new Le(A.left+Z*2/3,A.top+A.height-te*2/3),this.topLeftBorderStroke=o>0||i>0?Xt(A.left+Z/2,A.top+T/2,o-Z/2,i-T/2,Qt.TOP_LEFT):new Le(A.left+Z/2,A.top+T/2),this.topRightBorderStroke=o>0||i>0?Xt(A.left+F,A.top+T/2,l-H/2,u-T/2,Qt.TOP_RIGHT):new Le(A.left+A.width-H/2,A.top+T/2),this.bottomRightBorderStroke=h>0||p>0?Xt(A.left+D,A.top+_,h-H/2,p-te/2,Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H/2,A.top+A.height-te/2),this.bottomLeftBorderStroke=B>0||y>0?Xt(A.left+Z/2,A.top+P,B-Z/2,y-te/2,Qt.BOTTOM_LEFT):new Le(A.left+Z/2,A.top+A.height-te/2),this.topLeftBorderBox=o>0||i>0?Xt(A.left,A.top,o,i,Qt.TOP_LEFT):new Le(A.left,A.top),this.topRightBorderBox=l>0||u>0?Xt(A.left+F,A.top,l,u,Qt.TOP_RIGHT):new Le(A.left+A.width,A.top),this.bottomRightBorderBox=h>0||p>0?Xt(A.left+D,A.top+_,h,p,Qt.BOTTOM_RIGHT):new Le(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=B>0||y>0?Xt(A.left,A.top+P,B,y,Qt.BOTTOM_LEFT):new Le(A.left,A.top+A.height),this.topLeftPaddingBox=o>0||i>0?Xt(A.left+Z,A.top+T,Math.max(0,o-Z),Math.max(0,i-T),Qt.TOP_LEFT):new Le(A.left+Z,A.top+T),this.topRightPaddingBox=l>0||u>0?Xt(A.left+Math.min(F,A.width-H),A.top+T,F>A.width+H?0:Math.max(0,l-H),Math.max(0,u-T),Qt.TOP_RIGHT):new Le(A.left+A.width-H,A.top+T),this.bottomRightPaddingBox=h>0||p>0?Xt(A.left+Math.min(D,A.width-Z),A.top+Math.min(_,A.height-te),Math.max(0,h-H),Math.max(0,p-te),Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H,A.top+A.height-te),this.bottomLeftPaddingBox=B>0||y>0?Xt(A.left+Z,A.top+Math.min(P,A.height-te),Math.max(0,B-Z),Math.max(0,y-te),Qt.BOTTOM_LEFT):new Le(A.left+Z,A.top+A.height-te),this.topLeftContentBox=o>0||i>0?Xt(A.left+Z+we,A.top+T+ne,Math.max(0,o-(Z+we)),Math.max(0,i-(T+ne)),Qt.TOP_LEFT):new Le(A.left+Z+we,A.top+T+ne),this.topRightContentBox=l>0||u>0?Xt(A.left+Math.min(F,A.width+Z+we),A.top+T+ne,F>A.width+Z+we?0:l-Z+we,u-(T+ne),Qt.TOP_RIGHT):new Le(A.left+A.width-(H+pe),A.top+T+ne),this.bottomRightContentBox=h>0||p>0?Xt(A.left+Math.min(D,A.width-(Z+we)),A.top+Math.min(_,A.height+T+ne),Math.max(0,h-(H+pe)),p-(te+Be),Qt.BOTTOM_RIGHT):new Le(A.left+A.width-(H+pe),A.top+A.height-(te+Be)),this.bottomLeftContentBox=B>0||y>0?Xt(A.left+Z+we,A.top+P,Math.max(0,B-(Z+we)),y-(te+Be),Qt.BOTTOM_LEFT):new Le(A.left+Z+we,A.top+A.height-(te+Be))}return t})(),Qt;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Qt||(Qt={}));var Xt=function(t,e,n,A,r){var o=4*((Math.sqrt(2)-1)/3),i=n*o,a=A*o,l=t+n,u=e+A;switch(r){case Qt.TOP_LEFT:return new qf(new Le(t,u),new Le(t,u-a),new Le(l-i,e),new Le(l,e));case Qt.TOP_RIGHT:return new qf(new Le(t,e),new Le(t+i,e),new Le(l,u-a),new Le(l,u));case Qt.BOTTOM_RIGHT:return new qf(new Le(l,e),new Le(l,e+a),new Le(t+i,u),new Le(t,u));case Qt.BOTTOM_LEFT:default:return new qf(new Le(l,u),new Le(l-i,u),new Le(t,e+a),new Le(t,e))}},Jf=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},dte=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Xf=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},fte=(function(){function t(e,n,A){this.offsetX=e,this.offsetY=n,this.matrix=A,this.type=0,this.target=6}return t})(),Zf=(function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t})(),hte=(function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t})(),pte=function(t){return t.type===0},MU=function(t){return t.type===1},mte=function(t){return t.type===2},OU=function(t,e){return t.length===e.length?t.some(function(n,A){return n===e[A]}):!1},gte=function(t,e,n,A,r){return t.map(function(o,i){switch(i){case 0:return o.add(e,n);case 1:return o.add(e+A,n);case 2:return o.add(e+A,n+r);case 3:return o.add(e,n+r)}return o})},LU=(function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t})(),NU=(function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new ute(this.container),this.container.styles.opacity<1&&this.effects.push(new hte(this.container.styles.opacity)),this.container.styles.transform!==null){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new fte(A,r,o))}if(this.container.styles.overflowX!==0){var i=Jf(this.curves),a=Xf(this.curves);OU(i,a)?this.effects.push(new Zf(i,6)):(this.effects.push(new Zf(i,2)),this.effects.push(new Zf(a,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,A=this.parent,r=this.effects.slice(0);A;){var o=A.effects.filter(function(l){return!MU(l)});if(n||A.container.styles.position!==0||!A.parent){if(r.unshift.apply(r,o),n=[2,3].indexOf(A.container.styles.position)===-1,A.container.styles.overflowX!==0){var i=Jf(A.curves),a=Xf(A.curves);OU(i,a)||r.unshift(new Zf(a,6))}}else r.unshift.apply(r,o);A=A.parent}return r.filter(function(l){return xn(l.target,e)})},t})(),Cy=function(t,e,n,A){t.container.elements.forEach(function(r){var o=xn(r.flags,4),i=xn(r.flags,2),a=new NU(r,t);xn(r.styles.display,2048)&&A.push(a);var l=xn(r.flags,8)?[]:A;if(o||i){var u=o||r.styles.isPositioned()?n:e,f=new LU(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var p=0;u.negativeZIndex.some(function(B,y){return h>B.element.container.styles.zIndex.order?(p=y,!1):p>0}),u.negativeZIndex.splice(p,0,f)}else if(h>0){var g=0;u.positiveZIndex.some(function(B,y){return h>=B.element.container.styles.zIndex.order?(g=y+1,!1):g>0}),u.positiveZIndex.splice(g,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Cy(a,f,o?f:n,l)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Cy(a,e,n,l);xn(r.flags,8)&&HU(r,l)})},HU=function(t,e){for(var n=t instanceof cy?t.start:1,A=t instanceof cy?t.reversed:!1,r=0;r<e.length;r++){var o=e[r];o.container instanceof cU&&typeof o.container.value=="number"&&o.container.value!==0&&(n=o.container.value),o.listValue=_c(n,o.container.styles.listStyleType,!0),n+=A?-1:1}},Bte=function(t){var e=new NU(t,null),n=new LU(e),A=[];return Cy(e,n,n,A),HU(e.container,A),n},PU=function(t,e){switch(e){case 0:return ur(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ur(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ur(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return ur(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},yte=function(t,e){switch(e){case 0:return ur(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return ur(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return ur(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return ur(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},wte=function(t,e){switch(e){case 0:return ur(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return ur(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return ur(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return ur(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Cte=function(t,e){switch(e){case 0:return eh(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return eh(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return eh(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return eh(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},eh=function(t,e){var n=[];return cr(t)?n.push(t.subdivide(.5,!1)):n.push(t),cr(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},ur=function(t,e,n,A){var r=[];return cr(t)?r.push(t.subdivide(.5,!1)):r.push(t),cr(n)?r.push(n.subdivide(.5,!0)):r.push(n),cr(A)?r.push(A.subdivide(.5,!0).reverse()):r.push(A),cr(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},RU=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},th=function(t){var e=t.styles,n=t.bounds,A=Rt(e.paddingLeft,n.width),r=Rt(e.paddingRight,n.width),o=Rt(e.paddingTop,n.width),i=Rt(e.paddingBottom,n.width);return n.add(A+e.borderLeftWidth,o+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+A+r),-(e.borderTopWidth+e.borderBottomWidth+o+i))},bte=function(t,e){return t===0?e.bounds:t===2?th(e):RU(e)},vte=function(t,e){return t===0?e.bounds:t===2?th(e):RU(e)},by=function(t,e,n){var A=bte(za(t.styles.backgroundOrigin,e),t),r=vte(za(t.styles.backgroundClip,e),t),o=Ete(za(t.styles.backgroundSize,e),n,A),i=o[0],a=o[1],l=Sc(za(t.styles.backgroundPosition,e),A.width-i,A.height-a),u=kte(za(t.styles.backgroundRepeat,e),l,o,A,r),f=Math.round(A.left+l[0]),h=Math.round(A.top+l[1]);return[u,f,h,i,a]},Ka=function(t){return Lt(t)&&t.value===Ha.AUTO},nh=function(t){return typeof t=="number"},Ete=function(t,e,n){var A=e[0],r=e[1],o=e[2],i=t[0],a=t[1];if(!i)return[0,0];if(Fn(i)&&a&&Fn(a))return[Rt(i,n.width),Rt(a,n.height)];var l=nh(o);if(Lt(i)&&(i.value===Ha.CONTAIN||i.value===Ha.COVER)){if(nh(o)){var u=n.width/n.height;return u<o!=(i.value===Ha.COVER)?[n.width,n.width/o]:[n.height*o,n.height]}return[n.width,n.height]}var f=nh(A),h=nh(r),p=f||h;if(Ka(i)&&(!a||Ka(a))){if(f&&h)return[A,r];if(!l&&!p)return[n.width,n.height];if(p&&l){var g=f?A:r*o,B=h?r:A/o;return[g,B]}var y=f?A:n.width,C=h?r:n.height;return[y,C]}if(l){var w=0,F=0;return Fn(i)?w=Rt(i,n.width):Fn(a)&&(F=Rt(a,n.height)),Ka(i)?w=F*o:(!a||Ka(a))&&(F=w/o),[w,F]}var _=null,D=null;if(Fn(i)?_=Rt(i,n.width):a&&Fn(a)&&(D=Rt(a,n.height)),_!==null&&(!a||Ka(a))&&(D=f&&h?_/A*r:n.height),D!==null&&Ka(i)&&(_=f&&h?D/r*A:n.width),_!==null&&D!==null)return[_,D];throw new Error("Unable to calculate background-size for element")},za=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},kte=function(t,e,n,A,r){var o=e[0],i=e[1],a=n[0],l=n[1];switch(t){case 2:return[new Le(Math.round(A.left),Math.round(A.top+i)),new Le(Math.round(A.left+A.width),Math.round(A.top+i)),new Le(Math.round(A.left+A.width),Math.round(l+A.top+i)),new Le(Math.round(A.left),Math.round(l+A.top+i))];case 3:return[new Le(Math.round(A.left+o),Math.round(A.top)),new Le(Math.round(A.left+o+a),Math.round(A.top)),new Le(Math.round(A.left+o+a),Math.round(A.height+A.top)),new Le(Math.round(A.left+o),Math.round(A.height+A.top))];case 1:return[new Le(Math.round(A.left+o),Math.round(A.top+i)),new Le(Math.round(A.left+o+a),Math.round(A.top+i)),new Le(Math.round(A.left+o+a),Math.round(A.top+i+l)),new Le(Math.round(A.left+o),Math.round(A.top+i+l))];default:return[new Le(Math.round(r.left),Math.round(r.top)),new Le(Math.round(r.left+r.width),Math.round(r.top)),new Le(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Le(Math.round(r.left),Math.round(r.height+r.top))]}},Ste="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",VU="Hidden Text",Fte=(function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var A=this._document.createElement("div"),r=this._document.createElement("img"),o=this._document.createElement("span"),i=this._document.body;A.style.visibility="hidden",A.style.fontFamily=e,A.style.fontSize=n,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",i.appendChild(A),r.src=Ste,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=n,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(VU)),A.appendChild(o),A.appendChild(r);var a=r.offsetTop-o.offsetTop+2;A.removeChild(o),A.appendChild(this._document.createTextNode(VU)),A.style.lineHeight="normal",r.style.verticalAlign="super";var l=r.offsetTop-A.offsetTop+2;return i.removeChild(A),{baseline:a,middle:l}},t.prototype.getMetrics=function(e,n){var A=e+" "+n;return typeof this._data[A]>"u"&&(this._data[A]=this.parseMetrics(e,n)),this._data[A]},t})(),$U=(function(){function t(e,n){this.context=e,this.options=n}return t})(),Qte=1e4,xte=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r._activeEffects=[],r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),A.canvas||(r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px"),r.fontMetrics=new Fte(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),r}return e.prototype.applyEffects=function(n){for(var A=this;this._activeEffects.length;)this.popEffect();n.forEach(function(r){return A.applyEffect(r)})},e.prototype.applyEffect=function(n){this.ctx.save(),mte(n)&&(this.ctx.globalAlpha=n.opacity),pte(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),MU(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return yA(this,void 0,void 0,function(){var A;return rA(this,function(r){switch(r.label){case 0:return A=n.element.container.styles,A.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return yA(this,void 0,void 0,function(){return rA(this,function(A){switch(A.label){case 0:if(xn(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(n)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,A,r){var o=this;if(A===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+r);else{var i=ly(n.text);i.reduce(function(a,l){return o.ctx.fillText(l,a,n.bounds.top+r),a+o.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var A=n.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),r=Dte(n.fontFamily).join(", "),o=kc(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,A,n.fontWeight,o,r].join(" "),r,o]},e.prototype.renderTextNode=function(n,A){return yA(this,void 0,void 0,function(){var r,o,i,a,l,u,f,h,p=this;return rA(this,function(g){return r=this.createFontStyle(A),o=r[0],i=r[1],a=r[2],this.ctx.font=o,this.ctx.direction=A.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(i,a),u=l.baseline,f=l.middle,h=A.paintOrder,n.textBounds.forEach(function(B){h.forEach(function(y){switch(y){case 0:p.ctx.fillStyle=Vn(A.color),p.renderTextWithLetterSpacing(B,A.letterSpacing,u);var C=A.textShadow;C.length&&B.text.trim().length&&(C.slice(0).reverse().forEach(function(w){p.ctx.shadowColor=Vn(w.color),p.ctx.shadowOffsetX=w.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=w.offsetY.number*p.options.scale,p.ctx.shadowBlur=w.blur.number,p.renderTextWithLetterSpacing(B,A.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),A.textDecorationLine.length&&(p.ctx.fillStyle=Vn(A.textDecorationColor||A.color),A.textDecorationLine.forEach(function(w){switch(w){case 1:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+u),B.bounds.width,1);break;case 2:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:p.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+f),B.bounds.width,1);break}}));break;case 1:A.webkitTextStrokeWidth&&B.text.trim().length&&(p.ctx.strokeStyle=Vn(A.webkitTextStrokeColor),p.ctx.lineWidth=A.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,A,r){if(r&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var o=th(n),i=Xf(A);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,n.intrinsicWidth,n.intrinsicHeight,o.left,o.top,o.width,o.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return yA(this,void 0,void 0,function(){var A,r,o,i,a,l,F,F,u,f,h,p,D,g,B,P,y,C,w,F,_,D,P;return rA(this,function(T){switch(T.label){case 0:this.applyEffects(n.getEffects(4)),A=n.container,r=n.curves,o=A.styles,i=0,a=A.textNodes,T.label=1;case 1:return i<a.length?(l=a[i],[4,this.renderTextNode(l,o)]):[3,4];case 2:T.sent(),T.label=3;case 3:return i++,[3,1];case 4:if(!(A instanceof sU))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(A.src)];case 6:return F=T.sent(),this.renderReplacedElement(A,r,F),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+A.src),[3,8];case 8:if(A instanceof aU&&this.renderReplacedElement(A,r,A.canvas),!(A instanceof lU))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(A.svg)];case 10:return F=T.sent(),this.renderReplacedElement(A,r,F),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+A.svg.substring(0,255)),[3,12];case 12:return A instanceof hU&&A.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,width:A.width,height:A.height}),[4,u.render(A.tree)]):[3,14];case 13:f=T.sent(),A.width&&A.height&&this.ctx.drawImage(f,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height),T.label=14;case 14:if(A instanceof uy&&(h=Math.min(A.bounds.width,A.bounds.height),A.type===Kf?A.checked&&(this.ctx.save(),this.path([new Le(A.bounds.left+h*.39363,A.bounds.top+h*.79),new Le(A.bounds.left+h*.16,A.bounds.top+h*.5549),new Le(A.bounds.left+h*.27347,A.bounds.top+h*.44071),new Le(A.bounds.left+h*.39694,A.bounds.top+h*.5649),new Le(A.bounds.left+h*.72983,A.bounds.top+h*.23),new Le(A.bounds.left+h*.84,A.bounds.top+h*.34085),new Le(A.bounds.left+h*.39363,A.bounds.top+h*.79)]),this.ctx.fillStyle=Vn(uU),this.ctx.fill(),this.ctx.restore()):A.type===zf&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+h/2,A.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Vn(uU),this.ctx.fill(),this.ctx.restore())),Ute(A)&&A.value.length){switch(p=this.createFontStyle(o),D=p[0],g=p[1],B=this.fontMetrics.getMetrics(D,g).baseline,this.ctx.font=D,this.ctx.fillStyle=Vn(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_te(A.styles.textAlign),P=th(A),y=0,A.styles.textAlign){case 1:y+=P.width/2;break;case 2:y+=P.width;break}C=P.add(y,0,0,-P.height/2+1),this.ctx.save(),this.path([new Le(P.left,P.top),new Le(P.left+P.width,P.top),new Le(P.left+P.width,P.top+P.height),new Le(P.left,P.top+P.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Uc(A.value,C),o.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!xn(A.styles.display,2048))return[3,20];if(A.styles.listStyleImage===null)return[3,19];if(w=A.styles.listStyleImage,w.type!==0)return[3,18];F=void 0,_=w.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return F=T.sent(),this.ctx.drawImage(F,A.bounds.left-(F.width+10),A.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:n.listValue&&A.styles.listStyleType!==-1&&(D=this.createFontStyle(o)[0],this.ctx.font=D,this.ctx.fillStyle=Vn(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",P=new Oo(A.bounds.left,A.bounds.top+Rt(A.styles.paddingTop,A.bounds.width),A.bounds.width,Vx(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Uc(n.listValue,P),o.letterSpacing,Vx(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return yA(this,void 0,void 0,function(){var A,r,w,o,i,w,a,l,w,u,f,w,h,p,w,g,B,w,y,C,w;return rA(this,function(F){switch(F.label){case 0:if(xn(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:F.sent(),A=0,r=n.negativeZIndex,F.label=2;case 2:return A<r.length?(w=r[A],[4,this.renderStack(w)]):[3,5];case 3:F.sent(),F.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:F.sent(),o=0,i=n.nonInlineLevel,F.label=7;case 7:return o<i.length?(w=i[o],[4,this.renderNode(w)]):[3,10];case 8:F.sent(),F.label=9;case 9:return o++,[3,7];case 10:a=0,l=n.nonPositionedFloats,F.label=11;case 11:return a<l.length?(w=l[a],[4,this.renderStack(w)]):[3,14];case 12:F.sent(),F.label=13;case 13:return a++,[3,11];case 14:u=0,f=n.nonPositionedInlineLevel,F.label=15;case 15:return u<f.length?(w=f[u],[4,this.renderStack(w)]):[3,18];case 16:F.sent(),F.label=17;case 17:return u++,[3,15];case 18:h=0,p=n.inlineLevel,F.label=19;case 19:return h<p.length?(w=p[h],[4,this.renderNode(w)]):[3,22];case 20:F.sent(),F.label=21;case 21:return h++,[3,19];case 22:g=0,B=n.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return g<B.length?(w=B[g],[4,this.renderStack(w)]):[3,26];case 24:F.sent(),F.label=25;case 25:return g++,[3,23];case 26:y=0,C=n.positiveZIndex,F.label=27;case 27:return y<C.length?(w=C[y],[4,this.renderStack(w)]):[3,30];case 28:F.sent(),F.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var A=this;n.forEach(function(r,o){var i=cr(r)?r.start:r;o===0?A.ctx.moveTo(i.x,i.y):A.ctx.lineTo(i.x,i.y),cr(r)&&A.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(n,A,r,o){this.path(n),this.ctx.fillStyle=A,this.ctx.translate(r,o),this.ctx.fill(),this.ctx.translate(-r,-o)},e.prototype.resizeImage=function(n,A,r){var o;if(n.width===A&&n.height===r)return n;var i=(o=this.canvas.ownerDocument)!==null&&o!==void 0?o:document,a=i.createElement("canvas");a.width=Math.max(1,A),a.height=Math.max(1,r);var l=a.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,A,r),a},e.prototype.renderBackgroundImage=function(n){return yA(this,void 0,void 0,function(){var A,r,o,i,a,l;return rA(this,function(u){switch(u.label){case 0:A=n.styles.backgroundImage.length-1,r=function(f){var h,p,g,ne,N,k,we,R,te,B,ne,N,k,we,R,y,C,w,F,_,D,P,T,H,te,Z,ne,pe,Be,we,R,K,N,k,E,I,Q,v,W,M,$,J;return rA(this,function(j){switch(j.label){case 0:if(f.type!==0)return[3,5];h=void 0,p=f.url,j.label=1;case 1:return j.trys.push([1,3,,4]),[4,o.context.cache.match(p)];case 2:return h=j.sent(),[3,4];case 3:return j.sent(),o.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(g=by(n,A,[h.width,h.height,h.width/h.height]),ne=g[0],N=g[1],k=g[2],we=g[3],R=g[4],te=o.ctx.createPattern(o.resizeImage(h,we,R),"repeat"),o.renderRepeat(ne,te,N,k)),[3,6];case 5:p9(f)?(B=by(n,A,[null,null,null]),ne=B[0],N=B[1],k=B[2],we=B[3],R=B[4],y=c9(f.angle,we,R),C=y[0],w=y[1],F=y[2],_=y[3],D=y[4],P=document.createElement("canvas"),P.width=we,P.height=R,T=P.getContext("2d"),H=T.createLinearGradient(w,_,F,D),Ix(f.stops,C).forEach(function(S){return H.addColorStop(S.stop,Vn(S.color))}),T.fillStyle=H,T.fillRect(0,0,we,R),we>0&&R>0&&(te=o.ctx.createPattern(P,"repeat"),o.renderRepeat(ne,te,N,k))):m9(f)&&(Z=by(n,A,[null,null,null]),ne=Z[0],pe=Z[1],Be=Z[2],we=Z[3],R=Z[4],K=f.position.length===0?[YB]:f.position,N=Rt(K[0],we),k=Rt(K[K.length-1],R),E=u9(f,N,k,we,R),I=E[0],Q=E[1],I>0&&Q>0&&(v=o.ctx.createRadialGradient(pe+N,Be+k,0,pe+N,Be+k,I),Ix(f.stops,I*2).forEach(function(S){return v.addColorStop(S.stop,Vn(S.color))}),o.path(ne),o.ctx.fillStyle=v,I!==Q?(W=n.bounds.left+.5*n.bounds.width,M=n.bounds.top+.5*n.bounds.height,$=Q/I,J=1/$,o.ctx.save(),o.ctx.translate(W,M),o.ctx.transform(1,0,0,$,0,0),o.ctx.translate(-W,-M),o.ctx.fillRect(pe,J*(Be-M)+M,we,R*J),o.ctx.restore()):o.ctx.fill())),j.label=6;case 6:return A--,[2]}})},o=this,i=0,a=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return i<a.length?(l=a[i],[5,r(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,A,r){return yA(this,void 0,void 0,function(){return rA(this,function(o){return this.path(PU(r,A)),this.ctx.fillStyle=Vn(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,A,r,o){return yA(this,void 0,void 0,function(){var i,a;return rA(this,function(l){switch(l.label){case 0:return A<3?[4,this.renderSolidBorder(n,r,o)]:[3,2];case 1:return l.sent(),[2];case 2:return i=yte(o,r),this.path(i),this.ctx.fillStyle=Vn(n),this.ctx.fill(),a=wte(o,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return yA(this,void 0,void 0,function(){var A,r,o,i,a,l,u,f,h=this;return rA(this,function(p){switch(p.label){case 0:return this.applyEffects(n.getEffects(2)),A=n.container.styles,r=!Li(A.backgroundColor)||A.backgroundImage.length,o=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],i=Ite(za(A.backgroundClip,0),n.curves),r||A.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),Li(A.backgroundColor)||(this.ctx.fillStyle=Vn(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(function(g){h.ctx.save();var B=Jf(n.curves),y=g.inset?0:Qte,C=gte(B,-y+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(h.path(B),h.ctx.clip(),h.mask(C)):(h.mask(B),h.ctx.clip(),h.path(C)),h.ctx.shadowOffsetX=g.offsetX.number+y,h.ctx.shadowOffsetY=g.offsetY.number,h.ctx.shadowColor=Vn(g.color),h.ctx.shadowBlur=g.blur.number,h.ctx.fillStyle=g.inset?Vn(g.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:a=0,l=0,u=o,p.label=3;case 3:return l<u.length?(f=u[l],f.style!==0&&!Li(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,3)];case 6:return p.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,n.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,n.curves)];case 10:p.sent(),p.label=11;case 11:a++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,A,r,o,i){return yA(this,void 0,void 0,function(){var a,l,u,f,h,p,g,B,y,C,w,F,_,D,P,T,P,T;return rA(this,function(H){return this.ctx.save(),a=Cte(o,r),l=PU(o,r),i===2&&(this.path(l),this.ctx.clip()),cr(l[0])?(u=l[0].start.x,f=l[0].start.y):(u=l[0].x,f=l[0].y),cr(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),r===0||r===2?g=Math.abs(u-h):g=Math.abs(f-p),this.ctx.beginPath(),i===3?this.formatPath(a):this.formatPath(l.slice(0,2)),B=A<3?A*3:A*2,y=A<3?A*2:A,i===3&&(B=A,y=A),C=!0,g<=B*2?C=!1:g<=B*2+y?(w=g/(2*B+y),B*=w,y*=w):(F=Math.floor((g+y)/(B+y)),_=(g-F*B)/(F-1),D=(g-(F+1)*B)/F,y=D<=0||Math.abs(y-_)<Math.abs(y-D)?_:D),C&&(i===3?this.ctx.setLineDash([0,B+y]):this.ctx.setLineDash([B,y])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=A*2+1.1,this.ctx.strokeStyle=Vn(n),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(cr(l[0])&&(P=l[3],T=l[0],this.ctx.beginPath(),this.formatPath([new Le(P.end.x,P.end.y),new Le(T.start.x,T.start.y)]),this.ctx.stroke()),cr(l[1])&&(P=l[1],T=l[2],this.ctx.beginPath(),this.formatPath([new Le(P.end.x,P.end.y),new Le(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A;return rA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Vn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=Bte(n),[4,this.renderStack(A)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})($U),Ute=function(t){return t instanceof fU||t instanceof dU?!0:t instanceof uy&&t.type!==zf&&t.type!==Kf},Ite=function(t,e){switch(t){case 0:return Jf(e);case 2:return dte(e);case 1:default:return Xf(e)}},_te=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Tte=["-apple-system","system-ui"],Dte=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return Tte.indexOf(e)===-1}):t},Mte=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=A,r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),r}return e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A,r;return rA(this,function(o){switch(o.label){case 0:return A=ay(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Ote(A)];case 1:return r=o.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Vn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})($U),Ote=function(t){return new Promise(function(e,n){var A=new Image;A.onload=function(){e(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Lte=(function(){function t(e){var n=e.id,A=e.enabled;this.id=n,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,cf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,cf([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,cf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,cf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t})(),Nte=(function(){function t(e,n){var A;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new Lte({id:this.instanceName,enabled:e.logging}),this.cache=(A=e.cache)!==null&&A!==void 0?A:new rte(this,e)}return t.instanceCount=1,t})(),Hte=function(t,e){return e===void 0&&(e={}),Pte(t,e)};typeof window<"u"&&DU.setContext(window);var Pte=function(t,e){return yA(void 0,void 0,void 0,function(){var n,A,r,o,i,a,l,u,f,h,p,g,B,y,C,w,F,_,D,P,H,T,H,te,Z,ne,pe,Be,we,R,K,N,k,E,I,Q,v,W,M,$;return rA(this,function(J){switch(J.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(A=n.defaultView,!A)throw new Error("Document is not attached to a Window");return r={allowTaint:(te=e.allowTaint)!==null&&te!==void 0?te:!1,imageTimeout:(Z=e.imageTimeout)!==null&&Z!==void 0?Z:15e3,proxy:e.proxy,useCORS:(ne=e.useCORS)!==null&&ne!==void 0?ne:!1},o=FB({logging:(pe=e.logging)!==null&&pe!==void 0?pe:!0,cache:e.cache},r),i={windowWidth:(Be=e.windowWidth)!==null&&Be!==void 0?Be:A.innerWidth,windowHeight:(we=e.windowHeight)!==null&&we!==void 0?we:A.innerHeight,scrollX:(R=e.scrollX)!==null&&R!==void 0?R:A.pageXOffset,scrollY:(K=e.scrollY)!==null&&K!==void 0?K:A.pageYOffset},a=new Oo(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new Nte(o,a),u=(N=e.foreignObjectRendering)!==null&&N!==void 0?N:!1,f={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new _U(l,t,f),p=h.clonedReferenceElement,p?[4,h.toIFrame(n,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=J.sent(),B=fy(p)||Ree(p)?gJ(p.ownerDocument):uf(l,p),y=B.width,C=B.height,w=B.left,F=B.top,_=Rte(l,p,e.backgroundColor),D={canvas:e.canvas,backgroundColor:_,scale:(I=(E=e.scale)!==null&&E!==void 0?E:A.devicePixelRatio)!==null&&I!==void 0?I:1,x:((Q=e.x)!==null&&Q!==void 0?Q:0)+w,y:((v=e.y)!==null&&v!==void 0?v:0)+F,width:(W=e.width)!==null&&W!==void 0?W:Math.ceil(y),height:(M=e.height)!==null&&M!==void 0?M:Math.ceil(C)},u?(l.logger.debug("Document cloned, using foreign object rendering"),H=new Mte(l,D),[4,H.render(p)]):[3,3];case 2:return P=J.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+w+","+F+" with size "+y+"x"+C+" using computed rendering"),l.logger.debug("Starting DOM parsing"),T=mU(l,p),_===T.styles.backgroundColor&&(T.styles.backgroundColor=No.TRANSPARENT),l.logger.debug("Starting renderer for element at "+D.x+","+D.y+" with size "+D.width+"x"+D.height),H=new xte(l,D),[4,H.render(T)];case 4:P=J.sent(),J.label=5;case 5:return(!(($=e.removeContainer)!==null&&$!==void 0)||$)&&(_U.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,P]}})})},Rte=function(t,e,n){var A=e.ownerDocument,r=A.documentElement?Fc(t,getComputedStyle(A.documentElement).backgroundColor):No.TRANSPARENT,o=A.body?Fc(t,getComputedStyle(A.body).backgroundColor):No.TRANSPARENT,i=typeof n=="string"?Fc(t,n):n===null?No.TRANSPARENT:4294967295;return e===A.documentElement?Li(r)?Li(o)?i:o:r:i};const Vte=s.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},pending:{type:Boolean,default:!1},emitPending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),o=s.ref(""),i=s.ref();async function a(){if(r.value){n.emitPending&&A("update:pending",!0);const u=r.value,h=(await Hte(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,...n.options})).toDataURL();if(A("update:modelValue",h),n.emitPending&&A("update:pending",!1),n.debug){const p=new Image;p.src=h,document.body.appendChild(p)}return h}return""}const l=WE.debounce(async()=>{o.value=await a()},300,{trailing:!0,leading:!1});return s.onMounted(()=>{const u=r.value;n.renderUpdates&&(i.value=new MutationObserver(async f=>{n.emitPending&&A("update:pending",!0),l()}),i.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{n.emitPending&&A("update:pending",!0),l()},500)}),(u,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:s.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[s.renderSlot(u.$slots,"default")],6))}});var Ah={exports:{}},$te=Ah.exports,KU;function Kte(){return KU||(KU=1,(function(t,e){(function(n,A){t.exports=A()})($te,(()=>(()=>{var n={873:(i,a)=>{var l,u,f=(function(){var h=function(R,K){var N=R,k=w[K],E=null,I=0,Q=null,v=[],W={},M=function(X,q){E=(function(z){for(var U=new Array(z),re=0;re<z;re+=1){U[re]=new Array(z);for(var de=0;de<z;de+=1)U[re][de]=null}return U})(I=4*N+17),$(0,0),$(I-7,0),$(0,I-7),j(),J(),G(X,q),N>=7&&S(X),Q==null&&(Q=xe(N,k,v)),ue(Q,q)},$=function(X,q){for(var z=-1;z<=7;z+=1)if(!(X+z<=-1||I<=X+z))for(var U=-1;U<=7;U+=1)q+U<=-1||I<=q+U||(E[X+z][q+U]=0<=z&&z<=6&&(U==0||U==6)||0<=U&&U<=6&&(z==0||z==6)||2<=z&&z<=4&&2<=U&&U<=4)},J=function(){for(var X=8;X<I-8;X+=1)E[X][6]==null&&(E[X][6]=X%2==0);for(var q=8;q<I-8;q+=1)E[6][q]==null&&(E[6][q]=q%2==0)},j=function(){for(var X=F.getPatternPosition(N),q=0;q<X.length;q+=1)for(var z=0;z<X.length;z+=1){var U=X[q],re=X[z];if(E[U][re]==null)for(var de=-2;de<=2;de+=1)for(var L=-2;L<=2;L+=1)E[U+de][re+L]=de==-2||de==2||L==-2||L==2||de==0&&L==0}},S=function(X){for(var q=F.getBCHTypeNumber(N),z=0;z<18;z+=1){var U=!X&&(q>>z&1)==1;E[Math.floor(z/3)][z%3+I-8-3]=U}for(z=0;z<18;z+=1)U=!X&&(q>>z&1)==1,E[z%3+I-8-3][Math.floor(z/3)]=U},G=function(X,q){for(var z=k<<3|q,U=F.getBCHTypeInfo(z),re=0;re<15;re+=1){var de=!X&&(U>>re&1)==1;re<6?E[re][8]=de:re<8?E[re+1][8]=de:E[I-15+re][8]=de}for(re=0;re<15;re+=1)de=!X&&(U>>re&1)==1,re<8?E[8][I-re-1]=de:re<9?E[8][15-re-1+1]=de:E[8][15-re-1]=de;E[I-8][8]=!X},ue=function(X,q){for(var z=-1,U=I-1,re=7,de=0,L=F.getMaskFunction(q),Y=I-1;Y>0;Y-=2)for(Y==6&&(Y-=1);;){for(var ae=0;ae<2;ae+=1)if(E[U][Y-ae]==null){var ye=!1;de<X.length&&(ye=(X[de]>>>re&1)==1),L(U,Y-ae)&&(ye=!ye),E[U][Y-ae]=ye,(re-=1)==-1&&(de+=1,re=7)}if((U+=z)<0||I<=U){U-=z,z=-z;break}}},xe=function(X,q,z){for(var U=P.getRSBlocks(X,q),re=T(),de=0;de<z.length;de+=1){var L=z[de];re.put(L.getMode(),4),re.put(L.getLength(),F.getLengthInBits(L.getMode(),X)),L.write(re)}var Y=0;for(de=0;de<U.length;de+=1)Y+=U[de].dataCount;if(re.getLengthInBits()>8*Y)throw"code length overflow. ("+re.getLengthInBits()+">"+8*Y+")";for(re.getLengthInBits()+4<=8*Y&&re.put(0,4);re.getLengthInBits()%8!=0;)re.putBit(!1);for(;!(re.getLengthInBits()>=8*Y||(re.put(236,8),re.getLengthInBits()>=8*Y));)re.put(17,8);return(function(ae,ye){for(var Te=0,ie=0,ge=0,se=new Array(ye.length),he=new Array(ye.length),Ue=0;Ue<ye.length;Ue+=1){var ke=ye[Ue].dataCount,Ye=ye[Ue].totalCount-ke;ie=Math.max(ie,ke),ge=Math.max(ge,Ye),se[Ue]=new Array(ke);for(var Ve=0;Ve<se[Ue].length;Ve+=1)se[Ue][Ve]=255&ae.getBuffer()[Ve+Te];Te+=ke;var Ct=F.getErrorCorrectPolynomial(Ye),wt=D(se[Ue],Ct.getLength()-1).mod(Ct);for(he[Ue]=new Array(Ct.getLength()-1),Ve=0;Ve<he[Ue].length;Ve+=1){var Nt=Ve+wt.getLength()-he[Ue].length;he[Ue][Ve]=Nt>=0?wt.getAt(Nt):0}}var wA=0;for(Ve=0;Ve<ye.length;Ve+=1)wA+=ye[Ve].totalCount;var GA=new Array(wA),Un=0;for(Ve=0;Ve<ie;Ve+=1)for(Ue=0;Ue<ye.length;Ue+=1)Ve<se[Ue].length&&(GA[Un]=se[Ue][Ve],Un+=1);for(Ve=0;Ve<ge;Ve+=1)for(Ue=0;Ue<ye.length;Ue+=1)Ve<he[Ue].length&&(GA[Un]=he[Ue][Ve],Un+=1);return GA})(re,U)};W.addData=function(X,q){var z=null;switch(q=q||"Byte"){case"Numeric":z=H(X);break;case"Alphanumeric":z=te(X);break;case"Byte":z=Z(X);break;case"Kanji":z=ne(X);break;default:throw"mode:"+q}v.push(z),Q=null},W.isDark=function(X,q){if(X<0||I<=X||q<0||I<=q)throw X+","+q;return E[X][q]},W.getModuleCount=function(){return I},W.make=function(){if(N<1){for(var X=1;X<40;X++){for(var q=P.getRSBlocks(X,k),z=T(),U=0;U<v.length;U++){var re=v[U];z.put(re.getMode(),4),z.put(re.getLength(),F.getLengthInBits(re.getMode(),X)),re.write(z)}var de=0;for(U=0;U<q.length;U++)de+=q[U].dataCount;if(z.getLengthInBits()<=8*de)break}N=X}M(!1,(function(){for(var L=0,Y=0,ae=0;ae<8;ae+=1){M(!0,ae);var ye=F.getLostPoint(W);(ae==0||L>ye)&&(L=ye,Y=ae)}return Y})())},W.createTableTag=function(X,q){X=X||2;var z="";z+='<table style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: "+(q=q===void 0?4*X:q)+"px;",z+='">',z+="<tbody>";for(var U=0;U<W.getModuleCount();U+=1){z+="<tr>";for(var re=0;re<W.getModuleCount();re+=1)z+='<td style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: 0px;",z+=" width: "+X+"px;",z+=" height: "+X+"px;",z+=" background-color: ",z+=W.isDark(U,re)?"#000000":"#ffffff",z+=";",z+='"/>';z+="</tr>"}return(z+="</tbody>")+"</table>"},W.createSvgTag=function(X,q,z,U){var re={};typeof arguments[0]=="object"&&(X=(re=arguments[0]).cellSize,q=re.margin,z=re.alt,U=re.title),X=X||2,q=q===void 0?4*X:q,(z=typeof z=="string"?{text:z}:z||{}).text=z.text||null,z.id=z.text?z.id||"qrcode-description":null,(U=typeof U=="string"?{text:U}:U||{}).text=U.text||null,U.id=U.text?U.id||"qrcode-title":null;var de,L,Y,ae,ye=W.getModuleCount()*X+2*q,Te="";for(ae="l"+X+",0 0,"+X+" -"+X+",0 0,-"+X+"z ",Te+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Te+=re.scalable?"":' width="'+ye+'px" height="'+ye+'px"',Te+=' viewBox="0 0 '+ye+" "+ye+'" ',Te+=' preserveAspectRatio="xMinYMin meet"',Te+=U.text||z.text?' role="img" aria-labelledby="'+Ae([U.id,z.id].join(" ").trim())+'"':"",Te+=">",Te+=U.text?'<title id="'+Ae(U.id)+'">'+Ae(U.text)+"</title>":"",Te+=z.text?'<description id="'+Ae(z.id)+'">'+Ae(z.text)+"</description>":"",Te+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Te+='<path d="',L=0;L<W.getModuleCount();L+=1)for(Y=L*X+q,de=0;de<W.getModuleCount();de+=1)W.isDark(L,de)&&(Te+="M"+(de*X+q)+","+Y+ae);return(Te+='" stroke="transparent" fill="black"/>')+"</svg>"},W.createDataURL=function(X,q){X=X||2,q=q===void 0?4*X:q;var z=W.getModuleCount()*X+2*q,U=q,re=z-q;return we(z,z,(function(de,L){if(U<=de&&de<re&&U<=L&&L<re){var Y=Math.floor((de-U)/X),ae=Math.floor((L-U)/X);return W.isDark(ae,Y)?0:1}return 1}))},W.createImgTag=function(X,q,z){X=X||2,q=q===void 0?4*X:q;var U=W.getModuleCount()*X+2*q,re="";return re+="<img",re+=' src="',re+=W.createDataURL(X,q),re+='"',re+=' width="',re+=U,re+='"',re+=' height="',re+=U,re+='"',z&&(re+=' alt="',re+=Ae(z),re+='"'),re+"/>"};var Ae=function(X){for(var q="",z=0;z<X.length;z+=1){var U=X.charAt(z);switch(U){case"<":q+="&lt;";break;case">":q+="&gt;";break;case"&":q+="&amp;";break;case'"':q+="&quot;";break;default:q+=U}}return q};return W.createASCII=function(X,q){if((X=X||1)<2)return(function(se){se=se===void 0?2:se;var he,Ue,ke,Ye,Ve,Ct=1*W.getModuleCount()+2*se,wt=se,Nt=Ct-se,wA={"██":"█","█ ":"▀"," █":"▄"," ":" "},GA={"██":"▀","█ ":"▀"," █":" "," ":" "},Un="";for(he=0;he<Ct;he+=2){for(ke=Math.floor((he-wt)/1),Ye=Math.floor((he+1-wt)/1),Ue=0;Ue<Ct;Ue+=1)Ve="█",wt<=Ue&&Ue<Nt&&wt<=he&&he<Nt&&W.isDark(ke,Math.floor((Ue-wt)/1))&&(Ve=" "),wt<=Ue&&Ue<Nt&&wt<=he+1&&he+1<Nt&&W.isDark(Ye,Math.floor((Ue-wt)/1))?Ve+=" ":Ve+="█",Un+=se<1&&he+1>=Nt?GA[Ve]:wA[Ve];Un+=`
179
+ }`,ote=function(t){ite(t,"."+gy+Ate+TU+`
180
+ .`+By+rte+TU)},ite=function(t,e){var n=t.ownerDocument;if(n){var A=n.createElement("style");A.textContent=e,t.appendChild(A)}},DU=(function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t})(),ste=(function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(wy(e)||ute(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return yA(this,void 0,void 0,function(){var n,A,r,o,i=this;return rA(this,function(a){switch(a.label){case 0:return n=DU.isSameOrigin(e),A=!yy(e)&&this._options.useCORS===!0&&jn.SUPPORT_CORS_IMAGES&&!n,r=!yy(e)&&!n&&!wy(e)&&typeof this._options.proxy=="string"&&jn.SUPPORT_CORS_XHR&&!A,!n&&this._options.allowTaint===!1&&!yy(e)&&!wy(e)&&!r&&!A?[2]:(o=e,r?[4,this.proxy(o)]:[3,2]);case 1:o=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,u){var f=new Image;f.onload=function(){return l(f)},f.onerror=u,(dte(o)||A)&&(f.crossOrigin="anonymous"),f.src=o,f.complete===!0&&setTimeout(function(){return l(f)},500),i._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var n=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(o,i){var a=jn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(a==="text")o(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return o(h.result)},!1),h.addEventListener("error",function(p){return i(p)},!1),h.readAsDataURL(l.response)}else i("Failed to proxy resource "+r+" with status code "+l.status)},l.onerror=i;var u=A.indexOf("?")>-1?"&":"?";if(l.open("GET",""+A+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=a),n._options.imageTimeout){var f=n._options.imageTimeout;l.timeout=f,l.ontimeout=function(){return i("Timed out ("+f+"ms) proxying "+r)}}l.send()})},t})(),ate=/^data:image\/svg\+xml/i,lte=/^data:image\/.*;base64,/i,cte=/^data:image\/.*/i,ute=function(t){return jn.SUPPORT_SVG_DRAWING||!fte(t)},yy=function(t){return cte.test(t)},dte=function(t){return lte.test(t)},wy=function(t){return t.substr(0,4)==="blob"},fte=function(t){return t.substr(-3).toLowerCase()==="svg"||ate.test(t)},Le=(function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t})(),$a=function(t,e,n){return new Le(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},qf=(function(){function t(e,n,A,r){this.type=1,this.start=e,this.startControl=n,this.endControl=A,this.end=r}return t.prototype.subdivide=function(e,n){var A=$a(this.start,this.startControl,e),r=$a(this.startControl,this.endControl,e),o=$a(this.endControl,this.end,e),i=$a(A,r,e),a=$a(r,o,e),l=$a(i,a,e);return n?new t(this.start,A,i,l):new t(l,a,o,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t})(),cr=function(t){return t.type===1},hte=(function(){function t(e){var n=e.styles,A=e.bounds,r=Sc(n.borderTopLeftRadius,A.width,A.height),o=r[0],i=r[1],a=Sc(n.borderTopRightRadius,A.width,A.height),l=a[0],u=a[1],f=Sc(n.borderBottomRightRadius,A.width,A.height),h=f[0],p=f[1],g=Sc(n.borderBottomLeftRadius,A.width,A.height),B=g[0],y=g[1],C=[];C.push((o+l)/A.width),C.push((B+h)/A.width),C.push((i+y)/A.height),C.push((u+p)/A.height);var w=Math.max.apply(Math,C);w>1&&(o/=w,i/=w,l/=w,u/=w,h/=w,p/=w,B/=w,y/=w);var F=A.width-l,_=A.height-p,D=A.width-h,P=A.height-y,T=n.borderTopWidth,H=n.borderRightWidth,te=n.borderBottomWidth,Z=n.borderLeftWidth,ne=Rt(n.paddingTop,e.bounds.width),pe=Rt(n.paddingRight,e.bounds.width),Be=Rt(n.paddingBottom,e.bounds.width),we=Rt(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?Xt(A.left+Z/3,A.top+T/3,o-Z/3,i-T/3,Qt.TOP_LEFT):new Le(A.left+Z/3,A.top+T/3),this.topRightBorderDoubleOuterBox=o>0||i>0?Xt(A.left+F,A.top+T/3,l-H/3,u-T/3,Qt.TOP_RIGHT):new Le(A.left+A.width-H/3,A.top+T/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?Xt(A.left+D,A.top+_,h-H/3,p-te/3,Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H/3,A.top+A.height-te/3),this.bottomLeftBorderDoubleOuterBox=B>0||y>0?Xt(A.left+Z/3,A.top+P,B-Z/3,y-te/3,Qt.BOTTOM_LEFT):new Le(A.left+Z/3,A.top+A.height-te/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?Xt(A.left+Z*2/3,A.top+T*2/3,o-Z*2/3,i-T*2/3,Qt.TOP_LEFT):new Le(A.left+Z*2/3,A.top+T*2/3),this.topRightBorderDoubleInnerBox=o>0||i>0?Xt(A.left+F,A.top+T*2/3,l-H*2/3,u-T*2/3,Qt.TOP_RIGHT):new Le(A.left+A.width-H*2/3,A.top+T*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?Xt(A.left+D,A.top+_,h-H*2/3,p-te*2/3,Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H*2/3,A.top+A.height-te*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||y>0?Xt(A.left+Z*2/3,A.top+P,B-Z*2/3,y-te*2/3,Qt.BOTTOM_LEFT):new Le(A.left+Z*2/3,A.top+A.height-te*2/3),this.topLeftBorderStroke=o>0||i>0?Xt(A.left+Z/2,A.top+T/2,o-Z/2,i-T/2,Qt.TOP_LEFT):new Le(A.left+Z/2,A.top+T/2),this.topRightBorderStroke=o>0||i>0?Xt(A.left+F,A.top+T/2,l-H/2,u-T/2,Qt.TOP_RIGHT):new Le(A.left+A.width-H/2,A.top+T/2),this.bottomRightBorderStroke=h>0||p>0?Xt(A.left+D,A.top+_,h-H/2,p-te/2,Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H/2,A.top+A.height-te/2),this.bottomLeftBorderStroke=B>0||y>0?Xt(A.left+Z/2,A.top+P,B-Z/2,y-te/2,Qt.BOTTOM_LEFT):new Le(A.left+Z/2,A.top+A.height-te/2),this.topLeftBorderBox=o>0||i>0?Xt(A.left,A.top,o,i,Qt.TOP_LEFT):new Le(A.left,A.top),this.topRightBorderBox=l>0||u>0?Xt(A.left+F,A.top,l,u,Qt.TOP_RIGHT):new Le(A.left+A.width,A.top),this.bottomRightBorderBox=h>0||p>0?Xt(A.left+D,A.top+_,h,p,Qt.BOTTOM_RIGHT):new Le(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=B>0||y>0?Xt(A.left,A.top+P,B,y,Qt.BOTTOM_LEFT):new Le(A.left,A.top+A.height),this.topLeftPaddingBox=o>0||i>0?Xt(A.left+Z,A.top+T,Math.max(0,o-Z),Math.max(0,i-T),Qt.TOP_LEFT):new Le(A.left+Z,A.top+T),this.topRightPaddingBox=l>0||u>0?Xt(A.left+Math.min(F,A.width-H),A.top+T,F>A.width+H?0:Math.max(0,l-H),Math.max(0,u-T),Qt.TOP_RIGHT):new Le(A.left+A.width-H,A.top+T),this.bottomRightPaddingBox=h>0||p>0?Xt(A.left+Math.min(D,A.width-Z),A.top+Math.min(_,A.height-te),Math.max(0,h-H),Math.max(0,p-te),Qt.BOTTOM_RIGHT):new Le(A.left+A.width-H,A.top+A.height-te),this.bottomLeftPaddingBox=B>0||y>0?Xt(A.left+Z,A.top+Math.min(P,A.height-te),Math.max(0,B-Z),Math.max(0,y-te),Qt.BOTTOM_LEFT):new Le(A.left+Z,A.top+A.height-te),this.topLeftContentBox=o>0||i>0?Xt(A.left+Z+we,A.top+T+ne,Math.max(0,o-(Z+we)),Math.max(0,i-(T+ne)),Qt.TOP_LEFT):new Le(A.left+Z+we,A.top+T+ne),this.topRightContentBox=l>0||u>0?Xt(A.left+Math.min(F,A.width+Z+we),A.top+T+ne,F>A.width+Z+we?0:l-Z+we,u-(T+ne),Qt.TOP_RIGHT):new Le(A.left+A.width-(H+pe),A.top+T+ne),this.bottomRightContentBox=h>0||p>0?Xt(A.left+Math.min(D,A.width-(Z+we)),A.top+Math.min(_,A.height+T+ne),Math.max(0,h-(H+pe)),p-(te+Be),Qt.BOTTOM_RIGHT):new Le(A.left+A.width-(H+pe),A.top+A.height-(te+Be)),this.bottomLeftContentBox=B>0||y>0?Xt(A.left+Z+we,A.top+P,Math.max(0,B-(Z+we)),y-(te+Be),Qt.BOTTOM_LEFT):new Le(A.left+Z+we,A.top+A.height-(te+Be))}return t})(),Qt;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Qt||(Qt={}));var Xt=function(t,e,n,A,r){var o=4*((Math.sqrt(2)-1)/3),i=n*o,a=A*o,l=t+n,u=e+A;switch(r){case Qt.TOP_LEFT:return new qf(new Le(t,u),new Le(t,u-a),new Le(l-i,e),new Le(l,e));case Qt.TOP_RIGHT:return new qf(new Le(t,e),new Le(t+i,e),new Le(l,u-a),new Le(l,u));case Qt.BOTTOM_RIGHT:return new qf(new Le(l,e),new Le(l,e+a),new Le(t+i,u),new Le(t,u));case Qt.BOTTOM_LEFT:default:return new qf(new Le(l,u),new Le(l-i,u),new Le(t,e+a),new Le(t,e))}},Jf=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},pte=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Xf=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},mte=(function(){function t(e,n,A){this.offsetX=e,this.offsetY=n,this.matrix=A,this.type=0,this.target=6}return t})(),Zf=(function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t})(),gte=(function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t})(),Bte=function(t){return t.type===0},MU=function(t){return t.type===1},yte=function(t){return t.type===2},OU=function(t,e){return t.length===e.length?t.some(function(n,A){return n===e[A]}):!1},wte=function(t,e,n,A,r){return t.map(function(o,i){switch(i){case 0:return o.add(e,n);case 1:return o.add(e+A,n);case 2:return o.add(e+A,n+r);case 3:return o.add(e,n+r)}return o})},LU=(function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t})(),NU=(function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new hte(this.container),this.container.styles.opacity<1&&this.effects.push(new gte(this.container.styles.opacity)),this.container.styles.transform!==null){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new mte(A,r,o))}if(this.container.styles.overflowX!==0){var i=Jf(this.curves),a=Xf(this.curves);OU(i,a)?this.effects.push(new Zf(i,6)):(this.effects.push(new Zf(i,2)),this.effects.push(new Zf(a,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,A=this.parent,r=this.effects.slice(0);A;){var o=A.effects.filter(function(l){return!MU(l)});if(n||A.container.styles.position!==0||!A.parent){if(r.unshift.apply(r,o),n=[2,3].indexOf(A.container.styles.position)===-1,A.container.styles.overflowX!==0){var i=Jf(A.curves),a=Xf(A.curves);OU(i,a)||r.unshift(new Zf(a,6))}}else r.unshift.apply(r,o);A=A.parent}return r.filter(function(l){return xn(l.target,e)})},t})(),Cy=function(t,e,n,A){t.container.elements.forEach(function(r){var o=xn(r.flags,4),i=xn(r.flags,2),a=new NU(r,t);xn(r.styles.display,2048)&&A.push(a);var l=xn(r.flags,8)?[]:A;if(o||i){var u=o||r.styles.isPositioned()?n:e,f=new LU(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var p=0;u.negativeZIndex.some(function(B,y){return h>B.element.container.styles.zIndex.order?(p=y,!1):p>0}),u.negativeZIndex.splice(p,0,f)}else if(h>0){var g=0;u.positiveZIndex.some(function(B,y){return h>=B.element.container.styles.zIndex.order?(g=y+1,!1):g>0}),u.positiveZIndex.splice(g,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Cy(a,f,o?f:n,l)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Cy(a,e,n,l);xn(r.flags,8)&&HU(r,l)})},HU=function(t,e){for(var n=t instanceof cy?t.start:1,A=t instanceof cy?t.reversed:!1,r=0;r<e.length;r++){var o=e[r];o.container instanceof cU&&typeof o.container.value=="number"&&o.container.value!==0&&(n=o.container.value),o.listValue=_c(n,o.container.styles.listStyleType,!0),n+=A?-1:1}},Cte=function(t){var e=new NU(t,null),n=new LU(e),A=[];return Cy(e,n,n,A),HU(e.container,A),n},PU=function(t,e){switch(e){case 0:return ur(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ur(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ur(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return ur(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},bte=function(t,e){switch(e){case 0:return ur(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return ur(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return ur(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return ur(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},vte=function(t,e){switch(e){case 0:return ur(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return ur(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return ur(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return ur(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Ete=function(t,e){switch(e){case 0:return eh(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return eh(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return eh(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return eh(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},eh=function(t,e){var n=[];return cr(t)?n.push(t.subdivide(.5,!1)):n.push(t),cr(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},ur=function(t,e,n,A){var r=[];return cr(t)?r.push(t.subdivide(.5,!1)):r.push(t),cr(n)?r.push(n.subdivide(.5,!0)):r.push(n),cr(A)?r.push(A.subdivide(.5,!0).reverse()):r.push(A),cr(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},RU=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},th=function(t){var e=t.styles,n=t.bounds,A=Rt(e.paddingLeft,n.width),r=Rt(e.paddingRight,n.width),o=Rt(e.paddingTop,n.width),i=Rt(e.paddingBottom,n.width);return n.add(A+e.borderLeftWidth,o+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+A+r),-(e.borderTopWidth+e.borderBottomWidth+o+i))},kte=function(t,e){return t===0?e.bounds:t===2?th(e):RU(e)},Ste=function(t,e){return t===0?e.bounds:t===2?th(e):RU(e)},by=function(t,e,n){var A=kte(za(t.styles.backgroundOrigin,e),t),r=Ste(za(t.styles.backgroundClip,e),t),o=Fte(za(t.styles.backgroundSize,e),n,A),i=o[0],a=o[1],l=Sc(za(t.styles.backgroundPosition,e),A.width-i,A.height-a),u=Qte(za(t.styles.backgroundRepeat,e),l,o,A,r),f=Math.round(A.left+l[0]),h=Math.round(A.top+l[1]);return[u,f,h,i,a]},Ka=function(t){return Lt(t)&&t.value===Ha.AUTO},nh=function(t){return typeof t=="number"},Fte=function(t,e,n){var A=e[0],r=e[1],o=e[2],i=t[0],a=t[1];if(!i)return[0,0];if(Fn(i)&&a&&Fn(a))return[Rt(i,n.width),Rt(a,n.height)];var l=nh(o);if(Lt(i)&&(i.value===Ha.CONTAIN||i.value===Ha.COVER)){if(nh(o)){var u=n.width/n.height;return u<o!=(i.value===Ha.COVER)?[n.width,n.width/o]:[n.height*o,n.height]}return[n.width,n.height]}var f=nh(A),h=nh(r),p=f||h;if(Ka(i)&&(!a||Ka(a))){if(f&&h)return[A,r];if(!l&&!p)return[n.width,n.height];if(p&&l){var g=f?A:r*o,B=h?r:A/o;return[g,B]}var y=f?A:n.width,C=h?r:n.height;return[y,C]}if(l){var w=0,F=0;return Fn(i)?w=Rt(i,n.width):Fn(a)&&(F=Rt(a,n.height)),Ka(i)?w=F*o:(!a||Ka(a))&&(F=w/o),[w,F]}var _=null,D=null;if(Fn(i)?_=Rt(i,n.width):a&&Fn(a)&&(D=Rt(a,n.height)),_!==null&&(!a||Ka(a))&&(D=f&&h?_/A*r:n.height),D!==null&&Ka(i)&&(_=f&&h?D/r*A:n.width),_!==null&&D!==null)return[_,D];throw new Error("Unable to calculate background-size for element")},za=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},Qte=function(t,e,n,A,r){var o=e[0],i=e[1],a=n[0],l=n[1];switch(t){case 2:return[new Le(Math.round(A.left),Math.round(A.top+i)),new Le(Math.round(A.left+A.width),Math.round(A.top+i)),new Le(Math.round(A.left+A.width),Math.round(l+A.top+i)),new Le(Math.round(A.left),Math.round(l+A.top+i))];case 3:return[new Le(Math.round(A.left+o),Math.round(A.top)),new Le(Math.round(A.left+o+a),Math.round(A.top)),new Le(Math.round(A.left+o+a),Math.round(A.height+A.top)),new Le(Math.round(A.left+o),Math.round(A.height+A.top))];case 1:return[new Le(Math.round(A.left+o),Math.round(A.top+i)),new Le(Math.round(A.left+o+a),Math.round(A.top+i)),new Le(Math.round(A.left+o+a),Math.round(A.top+i+l)),new Le(Math.round(A.left+o),Math.round(A.top+i+l))];default:return[new Le(Math.round(r.left),Math.round(r.top)),new Le(Math.round(r.left+r.width),Math.round(r.top)),new Le(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Le(Math.round(r.left),Math.round(r.height+r.top))]}},xte="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",VU="Hidden Text",Ute=(function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var A=this._document.createElement("div"),r=this._document.createElement("img"),o=this._document.createElement("span"),i=this._document.body;A.style.visibility="hidden",A.style.fontFamily=e,A.style.fontSize=n,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",i.appendChild(A),r.src=xte,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=n,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(VU)),A.appendChild(o),A.appendChild(r);var a=r.offsetTop-o.offsetTop+2;A.removeChild(o),A.appendChild(this._document.createTextNode(VU)),A.style.lineHeight="normal",r.style.verticalAlign="super";var l=r.offsetTop-A.offsetTop+2;return i.removeChild(A),{baseline:a,middle:l}},t.prototype.getMetrics=function(e,n){var A=e+" "+n;return typeof this._data[A]>"u"&&(this._data[A]=this.parseMetrics(e,n)),this._data[A]},t})(),$U=(function(){function t(e,n){this.context=e,this.options=n}return t})(),Ite=1e4,_te=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r._activeEffects=[],r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),A.canvas||(r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px"),r.fontMetrics=new Ute(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),r}return e.prototype.applyEffects=function(n){for(var A=this;this._activeEffects.length;)this.popEffect();n.forEach(function(r){return A.applyEffect(r)})},e.prototype.applyEffect=function(n){this.ctx.save(),yte(n)&&(this.ctx.globalAlpha=n.opacity),Bte(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),MU(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return yA(this,void 0,void 0,function(){var A;return rA(this,function(r){switch(r.label){case 0:return A=n.element.container.styles,A.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return yA(this,void 0,void 0,function(){return rA(this,function(A){switch(A.label){case 0:if(xn(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(n)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,A,r){var o=this;if(A===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+r);else{var i=ly(n.text);i.reduce(function(a,l){return o.ctx.fillText(l,a,n.bounds.top+r),a+o.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var A=n.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),r=Lte(n.fontFamily).join(", "),o=kc(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,A,n.fontWeight,o,r].join(" "),r,o]},e.prototype.renderTextNode=function(n,A){return yA(this,void 0,void 0,function(){var r,o,i,a,l,u,f,h,p=this;return rA(this,function(g){return r=this.createFontStyle(A),o=r[0],i=r[1],a=r[2],this.ctx.font=o,this.ctx.direction=A.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(i,a),u=l.baseline,f=l.middle,h=A.paintOrder,n.textBounds.forEach(function(B){h.forEach(function(y){switch(y){case 0:p.ctx.fillStyle=Vn(A.color),p.renderTextWithLetterSpacing(B,A.letterSpacing,u);var C=A.textShadow;C.length&&B.text.trim().length&&(C.slice(0).reverse().forEach(function(w){p.ctx.shadowColor=Vn(w.color),p.ctx.shadowOffsetX=w.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=w.offsetY.number*p.options.scale,p.ctx.shadowBlur=w.blur.number,p.renderTextWithLetterSpacing(B,A.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),A.textDecorationLine.length&&(p.ctx.fillStyle=Vn(A.textDecorationColor||A.color),A.textDecorationLine.forEach(function(w){switch(w){case 1:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+u),B.bounds.width,1);break;case 2:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:p.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+f),B.bounds.width,1);break}}));break;case 1:A.webkitTextStrokeWidth&&B.text.trim().length&&(p.ctx.strokeStyle=Vn(A.webkitTextStrokeColor),p.ctx.lineWidth=A.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,A,r){if(r&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var o=th(n),i=Xf(A);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,n.intrinsicWidth,n.intrinsicHeight,o.left,o.top,o.width,o.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return yA(this,void 0,void 0,function(){var A,r,o,i,a,l,F,F,u,f,h,p,D,g,B,P,y,C,w,F,_,D,P;return rA(this,function(T){switch(T.label){case 0:this.applyEffects(n.getEffects(4)),A=n.container,r=n.curves,o=A.styles,i=0,a=A.textNodes,T.label=1;case 1:return i<a.length?(l=a[i],[4,this.renderTextNode(l,o)]):[3,4];case 2:T.sent(),T.label=3;case 3:return i++,[3,1];case 4:if(!(A instanceof sU))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(A.src)];case 6:return F=T.sent(),this.renderReplacedElement(A,r,F),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+A.src),[3,8];case 8:if(A instanceof aU&&this.renderReplacedElement(A,r,A.canvas),!(A instanceof lU))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(A.svg)];case 10:return F=T.sent(),this.renderReplacedElement(A,r,F),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+A.svg.substring(0,255)),[3,12];case 12:return A instanceof hU&&A.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,width:A.width,height:A.height}),[4,u.render(A.tree)]):[3,14];case 13:f=T.sent(),A.width&&A.height&&this.ctx.drawImage(f,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height),T.label=14;case 14:if(A instanceof uy&&(h=Math.min(A.bounds.width,A.bounds.height),A.type===Kf?A.checked&&(this.ctx.save(),this.path([new Le(A.bounds.left+h*.39363,A.bounds.top+h*.79),new Le(A.bounds.left+h*.16,A.bounds.top+h*.5549),new Le(A.bounds.left+h*.27347,A.bounds.top+h*.44071),new Le(A.bounds.left+h*.39694,A.bounds.top+h*.5649),new Le(A.bounds.left+h*.72983,A.bounds.top+h*.23),new Le(A.bounds.left+h*.84,A.bounds.top+h*.34085),new Le(A.bounds.left+h*.39363,A.bounds.top+h*.79)]),this.ctx.fillStyle=Vn(uU),this.ctx.fill(),this.ctx.restore()):A.type===zf&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+h/2,A.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Vn(uU),this.ctx.fill(),this.ctx.restore())),Tte(A)&&A.value.length){switch(p=this.createFontStyle(o),D=p[0],g=p[1],B=this.fontMetrics.getMetrics(D,g).baseline,this.ctx.font=D,this.ctx.fillStyle=Vn(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Mte(A.styles.textAlign),P=th(A),y=0,A.styles.textAlign){case 1:y+=P.width/2;break;case 2:y+=P.width;break}C=P.add(y,0,0,-P.height/2+1),this.ctx.save(),this.path([new Le(P.left,P.top),new Le(P.left+P.width,P.top),new Le(P.left+P.width,P.top+P.height),new Le(P.left,P.top+P.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Uc(A.value,C),o.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!xn(A.styles.display,2048))return[3,20];if(A.styles.listStyleImage===null)return[3,19];if(w=A.styles.listStyleImage,w.type!==0)return[3,18];F=void 0,_=w.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return F=T.sent(),this.ctx.drawImage(F,A.bounds.left-(F.width+10),A.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:n.listValue&&A.styles.listStyleType!==-1&&(D=this.createFontStyle(o)[0],this.ctx.font=D,this.ctx.fillStyle=Vn(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",P=new Oo(A.bounds.left,A.bounds.top+Rt(A.styles.paddingTop,A.bounds.width),A.bounds.width,Vx(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Uc(n.listValue,P),o.letterSpacing,Vx(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return yA(this,void 0,void 0,function(){var A,r,w,o,i,w,a,l,w,u,f,w,h,p,w,g,B,w,y,C,w;return rA(this,function(F){switch(F.label){case 0:if(xn(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:F.sent(),A=0,r=n.negativeZIndex,F.label=2;case 2:return A<r.length?(w=r[A],[4,this.renderStack(w)]):[3,5];case 3:F.sent(),F.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:F.sent(),o=0,i=n.nonInlineLevel,F.label=7;case 7:return o<i.length?(w=i[o],[4,this.renderNode(w)]):[3,10];case 8:F.sent(),F.label=9;case 9:return o++,[3,7];case 10:a=0,l=n.nonPositionedFloats,F.label=11;case 11:return a<l.length?(w=l[a],[4,this.renderStack(w)]):[3,14];case 12:F.sent(),F.label=13;case 13:return a++,[3,11];case 14:u=0,f=n.nonPositionedInlineLevel,F.label=15;case 15:return u<f.length?(w=f[u],[4,this.renderStack(w)]):[3,18];case 16:F.sent(),F.label=17;case 17:return u++,[3,15];case 18:h=0,p=n.inlineLevel,F.label=19;case 19:return h<p.length?(w=p[h],[4,this.renderNode(w)]):[3,22];case 20:F.sent(),F.label=21;case 21:return h++,[3,19];case 22:g=0,B=n.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return g<B.length?(w=B[g],[4,this.renderStack(w)]):[3,26];case 24:F.sent(),F.label=25;case 25:return g++,[3,23];case 26:y=0,C=n.positiveZIndex,F.label=27;case 27:return y<C.length?(w=C[y],[4,this.renderStack(w)]):[3,30];case 28:F.sent(),F.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var A=this;n.forEach(function(r,o){var i=cr(r)?r.start:r;o===0?A.ctx.moveTo(i.x,i.y):A.ctx.lineTo(i.x,i.y),cr(r)&&A.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(n,A,r,o){this.path(n),this.ctx.fillStyle=A,this.ctx.translate(r,o),this.ctx.fill(),this.ctx.translate(-r,-o)},e.prototype.resizeImage=function(n,A,r){var o;if(n.width===A&&n.height===r)return n;var i=(o=this.canvas.ownerDocument)!==null&&o!==void 0?o:document,a=i.createElement("canvas");a.width=Math.max(1,A),a.height=Math.max(1,r);var l=a.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,A,r),a},e.prototype.renderBackgroundImage=function(n){return yA(this,void 0,void 0,function(){var A,r,o,i,a,l;return rA(this,function(u){switch(u.label){case 0:A=n.styles.backgroundImage.length-1,r=function(f){var h,p,g,ne,N,k,we,R,te,B,ne,N,k,we,R,y,C,w,F,_,D,P,T,H,te,Z,ne,pe,Be,we,R,K,N,k,E,I,Q,v,W,M,$,J;return rA(this,function(j){switch(j.label){case 0:if(f.type!==0)return[3,5];h=void 0,p=f.url,j.label=1;case 1:return j.trys.push([1,3,,4]),[4,o.context.cache.match(p)];case 2:return h=j.sent(),[3,4];case 3:return j.sent(),o.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(g=by(n,A,[h.width,h.height,h.width/h.height]),ne=g[0],N=g[1],k=g[2],we=g[3],R=g[4],te=o.ctx.createPattern(o.resizeImage(h,we,R),"repeat"),o.renderRepeat(ne,te,N,k)),[3,6];case 5:B9(f)?(B=by(n,A,[null,null,null]),ne=B[0],N=B[1],k=B[2],we=B[3],R=B[4],y=f9(f.angle,we,R),C=y[0],w=y[1],F=y[2],_=y[3],D=y[4],P=document.createElement("canvas"),P.width=we,P.height=R,T=P.getContext("2d"),H=T.createLinearGradient(w,_,F,D),Ix(f.stops,C).forEach(function(S){return H.addColorStop(S.stop,Vn(S.color))}),T.fillStyle=H,T.fillRect(0,0,we,R),we>0&&R>0&&(te=o.ctx.createPattern(P,"repeat"),o.renderRepeat(ne,te,N,k))):y9(f)&&(Z=by(n,A,[null,null,null]),ne=Z[0],pe=Z[1],Be=Z[2],we=Z[3],R=Z[4],K=f.position.length===0?[YB]:f.position,N=Rt(K[0],we),k=Rt(K[K.length-1],R),E=h9(f,N,k,we,R),I=E[0],Q=E[1],I>0&&Q>0&&(v=o.ctx.createRadialGradient(pe+N,Be+k,0,pe+N,Be+k,I),Ix(f.stops,I*2).forEach(function(S){return v.addColorStop(S.stop,Vn(S.color))}),o.path(ne),o.ctx.fillStyle=v,I!==Q?(W=n.bounds.left+.5*n.bounds.width,M=n.bounds.top+.5*n.bounds.height,$=Q/I,J=1/$,o.ctx.save(),o.ctx.translate(W,M),o.ctx.transform(1,0,0,$,0,0),o.ctx.translate(-W,-M),o.ctx.fillRect(pe,J*(Be-M)+M,we,R*J),o.ctx.restore()):o.ctx.fill())),j.label=6;case 6:return A--,[2]}})},o=this,i=0,a=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return i<a.length?(l=a[i],[5,r(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,A,r){return yA(this,void 0,void 0,function(){return rA(this,function(o){return this.path(PU(r,A)),this.ctx.fillStyle=Vn(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,A,r,o){return yA(this,void 0,void 0,function(){var i,a;return rA(this,function(l){switch(l.label){case 0:return A<3?[4,this.renderSolidBorder(n,r,o)]:[3,2];case 1:return l.sent(),[2];case 2:return i=bte(o,r),this.path(i),this.ctx.fillStyle=Vn(n),this.ctx.fill(),a=vte(o,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return yA(this,void 0,void 0,function(){var A,r,o,i,a,l,u,f,h=this;return rA(this,function(p){switch(p.label){case 0:return this.applyEffects(n.getEffects(2)),A=n.container.styles,r=!Li(A.backgroundColor)||A.backgroundImage.length,o=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],i=Dte(za(A.backgroundClip,0),n.curves),r||A.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),Li(A.backgroundColor)||(this.ctx.fillStyle=Vn(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(function(g){h.ctx.save();var B=Jf(n.curves),y=g.inset?0:Ite,C=wte(B,-y+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(h.path(B),h.ctx.clip(),h.mask(C)):(h.mask(B),h.ctx.clip(),h.path(C)),h.ctx.shadowOffsetX=g.offsetX.number+y,h.ctx.shadowOffsetY=g.offsetY.number,h.ctx.shadowColor=Vn(g.color),h.ctx.shadowBlur=g.blur.number,h.ctx.fillStyle=g.inset?Vn(g.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:a=0,l=0,u=o,p.label=3;case 3:return l<u.length?(f=u[l],f.style!==0&&!Li(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,3)];case 6:return p.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,n.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,n.curves)];case 10:p.sent(),p.label=11;case 11:a++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,A,r,o,i){return yA(this,void 0,void 0,function(){var a,l,u,f,h,p,g,B,y,C,w,F,_,D,P,T,P,T;return rA(this,function(H){return this.ctx.save(),a=Ete(o,r),l=PU(o,r),i===2&&(this.path(l),this.ctx.clip()),cr(l[0])?(u=l[0].start.x,f=l[0].start.y):(u=l[0].x,f=l[0].y),cr(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),r===0||r===2?g=Math.abs(u-h):g=Math.abs(f-p),this.ctx.beginPath(),i===3?this.formatPath(a):this.formatPath(l.slice(0,2)),B=A<3?A*3:A*2,y=A<3?A*2:A,i===3&&(B=A,y=A),C=!0,g<=B*2?C=!1:g<=B*2+y?(w=g/(2*B+y),B*=w,y*=w):(F=Math.floor((g+y)/(B+y)),_=(g-F*B)/(F-1),D=(g-(F+1)*B)/F,y=D<=0||Math.abs(y-_)<Math.abs(y-D)?_:D),C&&(i===3?this.ctx.setLineDash([0,B+y]):this.ctx.setLineDash([B,y])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=A*2+1.1,this.ctx.strokeStyle=Vn(n),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(cr(l[0])&&(P=l[3],T=l[0],this.ctx.beginPath(),this.formatPath([new Le(P.end.x,P.end.y),new Le(T.start.x,T.start.y)]),this.ctx.stroke()),cr(l[1])&&(P=l[1],T=l[2],this.ctx.beginPath(),this.formatPath([new Le(P.end.x,P.end.y),new Le(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A;return rA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Vn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=Cte(n),[4,this.renderStack(A)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})($U),Tte=function(t){return t instanceof fU||t instanceof dU?!0:t instanceof uy&&t.type!==zf&&t.type!==Kf},Dte=function(t,e){switch(t){case 0:return Jf(e);case 2:return pte(e);case 1:default:return Xf(e)}},Mte=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ote=["-apple-system","system-ui"],Lte=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return Ote.indexOf(e)===-1}):t},Nte=(function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=A,r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),r}return e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A,r;return rA(this,function(o){switch(o.label){case 0:return A=ay(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Hte(A)];case 1:return r=o.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Vn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})($U),Hte=function(t){return new Promise(function(e,n){var A=new Image;A.onload=function(){e(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Pte=(function(){function t(e){var n=e.id,A=e.enabled;this.id=n,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,cf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,cf([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,cf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,cf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t})(),Rte=(function(){function t(e,n){var A;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new Pte({id:this.instanceName,enabled:e.logging}),this.cache=(A=e.cache)!==null&&A!==void 0?A:new ste(this,e)}return t.instanceCount=1,t})(),Vte=function(t,e){return e===void 0&&(e={}),$te(t,e)};typeof window<"u"&&DU.setContext(window);var $te=function(t,e){return yA(void 0,void 0,void 0,function(){var n,A,r,o,i,a,l,u,f,h,p,g,B,y,C,w,F,_,D,P,H,T,H,te,Z,ne,pe,Be,we,R,K,N,k,E,I,Q,v,W,M,$;return rA(this,function(J){switch(J.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(A=n.defaultView,!A)throw new Error("Document is not attached to a Window");return r={allowTaint:(te=e.allowTaint)!==null&&te!==void 0?te:!1,imageTimeout:(Z=e.imageTimeout)!==null&&Z!==void 0?Z:15e3,proxy:e.proxy,useCORS:(ne=e.useCORS)!==null&&ne!==void 0?ne:!1},o=FB({logging:(pe=e.logging)!==null&&pe!==void 0?pe:!0,cache:e.cache},r),i={windowWidth:(Be=e.windowWidth)!==null&&Be!==void 0?Be:A.innerWidth,windowHeight:(we=e.windowHeight)!==null&&we!==void 0?we:A.innerHeight,scrollX:(R=e.scrollX)!==null&&R!==void 0?R:A.pageXOffset,scrollY:(K=e.scrollY)!==null&&K!==void 0?K:A.pageYOffset},a=new Oo(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new Rte(o,a),u=(N=e.foreignObjectRendering)!==null&&N!==void 0?N:!1,f={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new _U(l,t,f),p=h.clonedReferenceElement,p?[4,h.toIFrame(n,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=J.sent(),B=fy(p)||Kee(p)?wJ(p.ownerDocument):uf(l,p),y=B.width,C=B.height,w=B.left,F=B.top,_=Kte(l,p,e.backgroundColor),D={canvas:e.canvas,backgroundColor:_,scale:(I=(E=e.scale)!==null&&E!==void 0?E:A.devicePixelRatio)!==null&&I!==void 0?I:1,x:((Q=e.x)!==null&&Q!==void 0?Q:0)+w,y:((v=e.y)!==null&&v!==void 0?v:0)+F,width:(W=e.width)!==null&&W!==void 0?W:Math.ceil(y),height:(M=e.height)!==null&&M!==void 0?M:Math.ceil(C)},u?(l.logger.debug("Document cloned, using foreign object rendering"),H=new Nte(l,D),[4,H.render(p)]):[3,3];case 2:return P=J.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+w+","+F+" with size "+y+"x"+C+" using computed rendering"),l.logger.debug("Starting DOM parsing"),T=mU(l,p),_===T.styles.backgroundColor&&(T.styles.backgroundColor=No.TRANSPARENT),l.logger.debug("Starting renderer for element at "+D.x+","+D.y+" with size "+D.width+"x"+D.height),H=new _te(l,D),[4,H.render(T)];case 4:P=J.sent(),J.label=5;case 5:return(!(($=e.removeContainer)!==null&&$!==void 0)||$)&&(_U.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,P]}})})},Kte=function(t,e,n){var A=e.ownerDocument,r=A.documentElement?Fc(t,getComputedStyle(A.documentElement).backgroundColor):No.TRANSPARENT,o=A.body?Fc(t,getComputedStyle(A.body).backgroundColor):No.TRANSPARENT,i=typeof n=="string"?Fc(t,n):n===null?No.TRANSPARENT:4294967295;return e===A.documentElement?Li(r)?Li(o)?i:o:r:i};const zte=s.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},pending:{type:Boolean,default:!1},emitPending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),o=s.ref(""),i=s.ref();async function a(){if(r.value){n.emitPending&&A("update:pending",!0);const u=r.value,h=(await Vte(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,...n.options})).toDataURL();if(A("update:modelValue",h),n.emitPending&&A("update:pending",!1),n.debug){const p=new Image;p.src=h,document.body.appendChild(p)}return h}return""}const l=WE.debounce(async()=>{o.value=await a()},300,{trailing:!0,leading:!1});return s.onMounted(()=>{const u=r.value;n.renderUpdates&&(i.value=new MutationObserver(async f=>{n.emitPending&&A("update:pending",!0),l()}),i.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{n.emitPending&&A("update:pending",!0),l()},500)}),(u,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:s.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[s.renderSlot(u.$slots,"default")],6))}});var Ah={exports:{}},Wte=Ah.exports,KU;function Gte(){return KU||(KU=1,(function(t,e){(function(n,A){t.exports=A()})(Wte,(()=>(()=>{var n={873:(i,a)=>{var l,u,f=(function(){var h=function(R,K){var N=R,k=w[K],E=null,I=0,Q=null,v=[],W={},M=function(X,q){E=(function(z){for(var U=new Array(z),re=0;re<z;re+=1){U[re]=new Array(z);for(var de=0;de<z;de+=1)U[re][de]=null}return U})(I=4*N+17),$(0,0),$(I-7,0),$(0,I-7),j(),J(),G(X,q),N>=7&&S(X),Q==null&&(Q=xe(N,k,v)),ue(Q,q)},$=function(X,q){for(var z=-1;z<=7;z+=1)if(!(X+z<=-1||I<=X+z))for(var U=-1;U<=7;U+=1)q+U<=-1||I<=q+U||(E[X+z][q+U]=0<=z&&z<=6&&(U==0||U==6)||0<=U&&U<=6&&(z==0||z==6)||2<=z&&z<=4&&2<=U&&U<=4)},J=function(){for(var X=8;X<I-8;X+=1)E[X][6]==null&&(E[X][6]=X%2==0);for(var q=8;q<I-8;q+=1)E[6][q]==null&&(E[6][q]=q%2==0)},j=function(){for(var X=F.getPatternPosition(N),q=0;q<X.length;q+=1)for(var z=0;z<X.length;z+=1){var U=X[q],re=X[z];if(E[U][re]==null)for(var de=-2;de<=2;de+=1)for(var L=-2;L<=2;L+=1)E[U+de][re+L]=de==-2||de==2||L==-2||L==2||de==0&&L==0}},S=function(X){for(var q=F.getBCHTypeNumber(N),z=0;z<18;z+=1){var U=!X&&(q>>z&1)==1;E[Math.floor(z/3)][z%3+I-8-3]=U}for(z=0;z<18;z+=1)U=!X&&(q>>z&1)==1,E[z%3+I-8-3][Math.floor(z/3)]=U},G=function(X,q){for(var z=k<<3|q,U=F.getBCHTypeInfo(z),re=0;re<15;re+=1){var de=!X&&(U>>re&1)==1;re<6?E[re][8]=de:re<8?E[re+1][8]=de:E[I-15+re][8]=de}for(re=0;re<15;re+=1)de=!X&&(U>>re&1)==1,re<8?E[8][I-re-1]=de:re<9?E[8][15-re-1+1]=de:E[8][15-re-1]=de;E[I-8][8]=!X},ue=function(X,q){for(var z=-1,U=I-1,re=7,de=0,L=F.getMaskFunction(q),Y=I-1;Y>0;Y-=2)for(Y==6&&(Y-=1);;){for(var ae=0;ae<2;ae+=1)if(E[U][Y-ae]==null){var ye=!1;de<X.length&&(ye=(X[de]>>>re&1)==1),L(U,Y-ae)&&(ye=!ye),E[U][Y-ae]=ye,(re-=1)==-1&&(de+=1,re=7)}if((U+=z)<0||I<=U){U-=z,z=-z;break}}},xe=function(X,q,z){for(var U=P.getRSBlocks(X,q),re=T(),de=0;de<z.length;de+=1){var L=z[de];re.put(L.getMode(),4),re.put(L.getLength(),F.getLengthInBits(L.getMode(),X)),L.write(re)}var Y=0;for(de=0;de<U.length;de+=1)Y+=U[de].dataCount;if(re.getLengthInBits()>8*Y)throw"code length overflow. ("+re.getLengthInBits()+">"+8*Y+")";for(re.getLengthInBits()+4<=8*Y&&re.put(0,4);re.getLengthInBits()%8!=0;)re.putBit(!1);for(;!(re.getLengthInBits()>=8*Y||(re.put(236,8),re.getLengthInBits()>=8*Y));)re.put(17,8);return(function(ae,ye){for(var Te=0,ie=0,ge=0,se=new Array(ye.length),he=new Array(ye.length),Ue=0;Ue<ye.length;Ue+=1){var ke=ye[Ue].dataCount,Ye=ye[Ue].totalCount-ke;ie=Math.max(ie,ke),ge=Math.max(ge,Ye),se[Ue]=new Array(ke);for(var Ve=0;Ve<se[Ue].length;Ve+=1)se[Ue][Ve]=255&ae.getBuffer()[Ve+Te];Te+=ke;var Ct=F.getErrorCorrectPolynomial(Ye),wt=D(se[Ue],Ct.getLength()-1).mod(Ct);for(he[Ue]=new Array(Ct.getLength()-1),Ve=0;Ve<he[Ue].length;Ve+=1){var Nt=Ve+wt.getLength()-he[Ue].length;he[Ue][Ve]=Nt>=0?wt.getAt(Nt):0}}var wA=0;for(Ve=0;Ve<ye.length;Ve+=1)wA+=ye[Ve].totalCount;var GA=new Array(wA),Un=0;for(Ve=0;Ve<ie;Ve+=1)for(Ue=0;Ue<ye.length;Ue+=1)Ve<se[Ue].length&&(GA[Un]=se[Ue][Ve],Un+=1);for(Ve=0;Ve<ge;Ve+=1)for(Ue=0;Ue<ye.length;Ue+=1)Ve<he[Ue].length&&(GA[Un]=he[Ue][Ve],Un+=1);return GA})(re,U)};W.addData=function(X,q){var z=null;switch(q=q||"Byte"){case"Numeric":z=H(X);break;case"Alphanumeric":z=te(X);break;case"Byte":z=Z(X);break;case"Kanji":z=ne(X);break;default:throw"mode:"+q}v.push(z),Q=null},W.isDark=function(X,q){if(X<0||I<=X||q<0||I<=q)throw X+","+q;return E[X][q]},W.getModuleCount=function(){return I},W.make=function(){if(N<1){for(var X=1;X<40;X++){for(var q=P.getRSBlocks(X,k),z=T(),U=0;U<v.length;U++){var re=v[U];z.put(re.getMode(),4),z.put(re.getLength(),F.getLengthInBits(re.getMode(),X)),re.write(z)}var de=0;for(U=0;U<q.length;U++)de+=q[U].dataCount;if(z.getLengthInBits()<=8*de)break}N=X}M(!1,(function(){for(var L=0,Y=0,ae=0;ae<8;ae+=1){M(!0,ae);var ye=F.getLostPoint(W);(ae==0||L>ye)&&(L=ye,Y=ae)}return Y})())},W.createTableTag=function(X,q){X=X||2;var z="";z+='<table style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: "+(q=q===void 0?4*X:q)+"px;",z+='">',z+="<tbody>";for(var U=0;U<W.getModuleCount();U+=1){z+="<tr>";for(var re=0;re<W.getModuleCount();re+=1)z+='<td style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: 0px;",z+=" width: "+X+"px;",z+=" height: "+X+"px;",z+=" background-color: ",z+=W.isDark(U,re)?"#000000":"#ffffff",z+=";",z+='"/>';z+="</tr>"}return(z+="</tbody>")+"</table>"},W.createSvgTag=function(X,q,z,U){var re={};typeof arguments[0]=="object"&&(X=(re=arguments[0]).cellSize,q=re.margin,z=re.alt,U=re.title),X=X||2,q=q===void 0?4*X:q,(z=typeof z=="string"?{text:z}:z||{}).text=z.text||null,z.id=z.text?z.id||"qrcode-description":null,(U=typeof U=="string"?{text:U}:U||{}).text=U.text||null,U.id=U.text?U.id||"qrcode-title":null;var de,L,Y,ae,ye=W.getModuleCount()*X+2*q,Te="";for(ae="l"+X+",0 0,"+X+" -"+X+",0 0,-"+X+"z ",Te+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Te+=re.scalable?"":' width="'+ye+'px" height="'+ye+'px"',Te+=' viewBox="0 0 '+ye+" "+ye+'" ',Te+=' preserveAspectRatio="xMinYMin meet"',Te+=U.text||z.text?' role="img" aria-labelledby="'+Ae([U.id,z.id].join(" ").trim())+'"':"",Te+=">",Te+=U.text?'<title id="'+Ae(U.id)+'">'+Ae(U.text)+"</title>":"",Te+=z.text?'<description id="'+Ae(z.id)+'">'+Ae(z.text)+"</description>":"",Te+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Te+='<path d="',L=0;L<W.getModuleCount();L+=1)for(Y=L*X+q,de=0;de<W.getModuleCount();de+=1)W.isDark(L,de)&&(Te+="M"+(de*X+q)+","+Y+ae);return(Te+='" stroke="transparent" fill="black"/>')+"</svg>"},W.createDataURL=function(X,q){X=X||2,q=q===void 0?4*X:q;var z=W.getModuleCount()*X+2*q,U=q,re=z-q;return we(z,z,(function(de,L){if(U<=de&&de<re&&U<=L&&L<re){var Y=Math.floor((de-U)/X),ae=Math.floor((L-U)/X);return W.isDark(ae,Y)?0:1}return 1}))},W.createImgTag=function(X,q,z){X=X||2,q=q===void 0?4*X:q;var U=W.getModuleCount()*X+2*q,re="";return re+="<img",re+=' src="',re+=W.createDataURL(X,q),re+='"',re+=' width="',re+=U,re+='"',re+=' height="',re+=U,re+='"',z&&(re+=' alt="',re+=Ae(z),re+='"'),re+"/>"};var Ae=function(X){for(var q="",z=0;z<X.length;z+=1){var U=X.charAt(z);switch(U){case"<":q+="&lt;";break;case">":q+="&gt;";break;case"&":q+="&amp;";break;case'"':q+="&quot;";break;default:q+=U}}return q};return W.createASCII=function(X,q){if((X=X||1)<2)return(function(se){se=se===void 0?2:se;var he,Ue,ke,Ye,Ve,Ct=1*W.getModuleCount()+2*se,wt=se,Nt=Ct-se,wA={"██":"█","█ ":"▀"," █":"▄"," ":" "},GA={"██":"▀","█ ":"▀"," █":" "," ":" "},Un="";for(he=0;he<Ct;he+=2){for(ke=Math.floor((he-wt)/1),Ye=Math.floor((he+1-wt)/1),Ue=0;Ue<Ct;Ue+=1)Ve="█",wt<=Ue&&Ue<Nt&&wt<=he&&he<Nt&&W.isDark(ke,Math.floor((Ue-wt)/1))&&(Ve=" "),wt<=Ue&&Ue<Nt&&wt<=he+1&&he+1<Nt&&W.isDark(Ye,Math.floor((Ue-wt)/1))?Ve+=" ":Ve+="█",Un+=se<1&&he+1>=Nt?GA[Ve]:wA[Ve];Un+=`
181
181
  `}return Ct%2&&se>0?Un.substring(0,Un.length-Ct-1)+Array(Ct+1).join("▀"):Un.substring(0,Un.length-1)})(q);X-=1,q=q===void 0?2*X:q;var z,U,re,de,L=W.getModuleCount()*X+2*q,Y=q,ae=L-q,ye=Array(X+1).join("██"),Te=Array(X+1).join(" "),ie="",ge="";for(z=0;z<L;z+=1){for(re=Math.floor((z-Y)/X),ge="",U=0;U<L;U+=1)de=1,Y<=U&&U<ae&&Y<=z&&z<ae&&W.isDark(re,Math.floor((U-Y)/X))&&(de=0),ge+=de?ye:Te;for(re=0;re<X;re+=1)ie+=ge+`
182
182
  `}return ie.substring(0,ie.length-1)},W.renderTo2dContext=function(X,q){q=q||2;for(var z=W.getModuleCount(),U=0;U<z;U++)for(var re=0;re<z;re++)X.fillStyle=W.isDark(U,re)?"black":"white",X.fillRect(U*q,re*q,q,q)},W};h.stringToBytes=(h.stringToBytesFuncs={default:function(R){for(var K=[],N=0;N<R.length;N+=1){var k=R.charCodeAt(N);K.push(255&k)}return K}}).default,h.createStringToBytes=function(R,K){var N=(function(){for(var E=Be(R),I=function(){var J=E.read();if(J==-1)throw"eof";return J},Q=0,v={};;){var W=E.read();if(W==-1)break;var M=I(),$=I()<<8|I();v[String.fromCharCode(W<<8|M)]=$,Q+=1}if(Q!=K)throw Q+" != "+K;return v})(),k=63;return function(E){for(var I=[],Q=0;Q<E.length;Q+=1){var v=E.charCodeAt(Q);if(v<128)I.push(v);else{var W=N[E.charAt(Q)];typeof W=="number"?(255&W)==W?I.push(W):(I.push(W>>>8),I.push(255&W)):I.push(k)}}return I}};var p,g,B,y,C,w={L:1,M:0,Q:3,H:2},F=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],g=1335,B=7973,C=function(R){for(var K=0;R!=0;)K+=1,R>>>=1;return K},(y={}).getBCHTypeInfo=function(R){for(var K=R<<10;C(K)-C(g)>=0;)K^=g<<C(K)-C(g);return 21522^(R<<10|K)},y.getBCHTypeNumber=function(R){for(var K=R<<12;C(K)-C(B)>=0;)K^=B<<C(K)-C(B);return R<<12|K},y.getPatternPosition=function(R){return p[R-1]},y.getMaskFunction=function(R){switch(R){case 0:return function(K,N){return(K+N)%2==0};case 1:return function(K,N){return K%2==0};case 2:return function(K,N){return N%3==0};case 3:return function(K,N){return(K+N)%3==0};case 4:return function(K,N){return(Math.floor(K/2)+Math.floor(N/3))%2==0};case 5:return function(K,N){return K*N%2+K*N%3==0};case 6:return function(K,N){return(K*N%2+K*N%3)%2==0};case 7:return function(K,N){return(K*N%3+(K+N)%2)%2==0};default:throw"bad maskPattern:"+R}},y.getErrorCorrectPolynomial=function(R){for(var K=D([1],0),N=0;N<R;N+=1)K=K.multiply(D([1,_.gexp(N)],0));return K},y.getLengthInBits=function(R,K){if(1<=K&&K<10)switch(R){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+R}else if(K<27)switch(R){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+R}else{if(!(K<41))throw"type:"+K;switch(R){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+R}}},y.getLostPoint=function(R){for(var K=R.getModuleCount(),N=0,k=0;k<K;k+=1)for(var E=0;E<K;E+=1){for(var I=0,Q=R.isDark(k,E),v=-1;v<=1;v+=1)if(!(k+v<0||K<=k+v))for(var W=-1;W<=1;W+=1)E+W<0||K<=E+W||v==0&&W==0||Q==R.isDark(k+v,E+W)&&(I+=1);I>5&&(N+=3+I-5)}for(k=0;k<K-1;k+=1)for(E=0;E<K-1;E+=1){var M=0;R.isDark(k,E)&&(M+=1),R.isDark(k+1,E)&&(M+=1),R.isDark(k,E+1)&&(M+=1),R.isDark(k+1,E+1)&&(M+=1),M!=0&&M!=4||(N+=3)}for(k=0;k<K;k+=1)for(E=0;E<K-6;E+=1)R.isDark(k,E)&&!R.isDark(k,E+1)&&R.isDark(k,E+2)&&R.isDark(k,E+3)&&R.isDark(k,E+4)&&!R.isDark(k,E+5)&&R.isDark(k,E+6)&&(N+=40);for(E=0;E<K;E+=1)for(k=0;k<K-6;k+=1)R.isDark(k,E)&&!R.isDark(k+1,E)&&R.isDark(k+2,E)&&R.isDark(k+3,E)&&R.isDark(k+4,E)&&!R.isDark(k+5,E)&&R.isDark(k+6,E)&&(N+=40);var $=0;for(E=0;E<K;E+=1)for(k=0;k<K;k+=1)R.isDark(k,E)&&($+=1);return N+Math.abs(100*$/K/K-50)/5*10},y),_=(function(){for(var R=new Array(256),K=new Array(256),N=0;N<8;N+=1)R[N]=1<<N;for(N=8;N<256;N+=1)R[N]=R[N-4]^R[N-5]^R[N-6]^R[N-8];for(N=0;N<255;N+=1)K[R[N]]=N;return{glog:function(k){if(k<1)throw"glog("+k+")";return K[k]},gexp:function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return R[k]}}})();function D(R,K){if(R.length===void 0)throw R.length+"/"+K;var N=(function(){for(var E=0;E<R.length&&R[E]==0;)E+=1;for(var I=new Array(R.length-E+K),Q=0;Q<R.length-E;Q+=1)I[Q]=R[Q+E];return I})(),k={getAt:function(E){return N[E]},getLength:function(){return N.length},multiply:function(E){for(var I=new Array(k.getLength()+E.getLength()-1),Q=0;Q<k.getLength();Q+=1)for(var v=0;v<E.getLength();v+=1)I[Q+v]^=_.gexp(_.glog(k.getAt(Q))+_.glog(E.getAt(v)));return D(I,0)},mod:function(E){if(k.getLength()-E.getLength()<0)return k;for(var I=_.glog(k.getAt(0))-_.glog(E.getAt(0)),Q=new Array(k.getLength()),v=0;v<k.getLength();v+=1)Q[v]=k.getAt(v);for(v=0;v<E.getLength();v+=1)Q[v]^=_.gexp(_.glog(E.getAt(v))+I);return D(Q,0).mod(E)}};return k}var P=(function(){var R=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],K=function(k,E){var I={};return I.totalCount=k,I.dataCount=E,I},N={getRSBlocks:function(k,E){var I=(function(S,G){switch(G){case w.L:return R[4*(S-1)+0];case w.M:return R[4*(S-1)+1];case w.Q:return R[4*(S-1)+2];case w.H:return R[4*(S-1)+3];default:return}})(k,E);if(I===void 0)throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+E;for(var Q=I.length/3,v=[],W=0;W<Q;W+=1)for(var M=I[3*W+0],$=I[3*W+1],J=I[3*W+2],j=0;j<M;j+=1)v.push(K($,J));return v}};return N})(),T=function(){var R=[],K=0,N={getBuffer:function(){return R},getAt:function(k){var E=Math.floor(k/8);return(R[E]>>>7-k%8&1)==1},put:function(k,E){for(var I=0;I<E;I+=1)N.putBit((k>>>E-I-1&1)==1)},getLengthInBits:function(){return K},putBit:function(k){var E=Math.floor(K/8);R.length<=E&&R.push(0),k&&(R[E]|=128>>>K%8),K+=1}};return N},H=function(R){var K=R,N={getMode:function(){return 1},getLength:function(I){return K.length},write:function(I){for(var Q=K,v=0;v+2<Q.length;)I.put(k(Q.substring(v,v+3)),10),v+=3;v<Q.length&&(Q.length-v==1?I.put(k(Q.substring(v,v+1)),4):Q.length-v==2&&I.put(k(Q.substring(v,v+2)),7))}},k=function(I){for(var Q=0,v=0;v<I.length;v+=1)Q=10*Q+E(I.charAt(v));return Q},E=function(I){if("0"<=I&&I<="9")return I.charCodeAt(0)-48;throw"illegal char :"+I};return N},te=function(R){var K=R,N={getMode:function(){return 2},getLength:function(E){return K.length},write:function(E){for(var I=K,Q=0;Q+1<I.length;)E.put(45*k(I.charAt(Q))+k(I.charAt(Q+1)),11),Q+=2;Q<I.length&&E.put(k(I.charAt(Q)),6)}},k=function(E){if("0"<=E&&E<="9")return E.charCodeAt(0)-48;if("A"<=E&&E<="Z")return E.charCodeAt(0)-65+10;switch(E){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+E}};return N},Z=function(R){var K=h.stringToBytes(R);return{getMode:function(){return 4},getLength:function(N){return K.length},write:function(N){for(var k=0;k<K.length;k+=1)N.put(K[k],8)}}},ne=function(R){var K=h.stringToBytesFuncs.SJIS;if(!K)throw"sjis not supported.";(function(){var E=K("友");if(E.length!=2||(E[0]<<8|E[1])!=38726)throw"sjis not supported."})();var N=K(R),k={getMode:function(){return 8},getLength:function(E){return~~(N.length/2)},write:function(E){for(var I=N,Q=0;Q+1<I.length;){var v=(255&I[Q])<<8|255&I[Q+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(Q+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),E.put(v,13),Q+=2}if(Q<I.length)throw"illegal char at "+(Q+1)}};return k},pe=function(){var R=[],K={writeByte:function(N){R.push(255&N)},writeShort:function(N){K.writeByte(N),K.writeByte(N>>>8)},writeBytes:function(N,k,E){k=k||0,E=E||N.length;for(var I=0;I<E;I+=1)K.writeByte(N[I+k])},writeString:function(N){for(var k=0;k<N.length;k+=1)K.writeByte(N.charCodeAt(k))},toByteArray:function(){return R},toString:function(){var N="";N+="[";for(var k=0;k<R.length;k+=1)k>0&&(N+=","),N+=R[k];return N+"]"}};return K},Be=function(R){var K=R,N=0,k=0,E=0,I={read:function(){for(;E<8;){if(N>=K.length){if(E==0)return-1;throw"unexpected end of file./"+E}var v=K.charAt(N);if(N+=1,v=="=")return E=0,-1;v.match(/^\s$/)||(k=k<<6|Q(v.charCodeAt(0)),E+=6)}var W=k>>>E-8&255;return E-=8,W}},Q=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw"c:"+v};return I},we=function(R,K,N){for(var k=(function($,J){var j=$,S=J,G=new Array($*J),ue={setPixel:function(X,q,z){G[q*j+X]=z},write:function(X){X.writeString("GIF87a"),X.writeShort(j),X.writeShort(S),X.writeByte(128),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(255),X.writeByte(255),X.writeByte(255),X.writeString(","),X.writeShort(0),X.writeShort(0),X.writeShort(j),X.writeShort(S),X.writeByte(0);var q=xe(2);X.writeByte(2);for(var z=0;q.length-z>255;)X.writeByte(255),X.writeBytes(q,z,255),z+=255;X.writeByte(q.length-z),X.writeBytes(q,z,q.length-z),X.writeByte(0),X.writeString(";")}},xe=function(X){for(var q=1<<X,z=1+(1<<X),U=X+1,re=Ae(),de=0;de<q;de+=1)re.add(String.fromCharCode(de));re.add(String.fromCharCode(q)),re.add(String.fromCharCode(z));var L,Y,ae,ye=pe(),Te=(L=ye,Y=0,ae=0,{write:function(he,Ue){if(he>>>Ue)throw"length over";for(;Y+Ue>=8;)L.writeByte(255&(he<<Y|ae)),Ue-=8-Y,he>>>=8-Y,ae=0,Y=0;ae|=he<<Y,Y+=Ue},flush:function(){Y>0&&L.writeByte(ae)}});Te.write(q,U);var ie=0,ge=String.fromCharCode(G[ie]);for(ie+=1;ie<G.length;){var se=String.fromCharCode(G[ie]);ie+=1,re.contains(ge+se)?ge+=se:(Te.write(re.indexOf(ge),U),re.size()<4095&&(re.size()==1<<U&&(U+=1),re.add(ge+se)),ge=se)}return Te.write(re.indexOf(ge),U),Te.write(z,U),Te.flush(),ye.toByteArray()},Ae=function(){var X={},q=0,z={add:function(U){if(z.contains(U))throw"dup key:"+U;X[U]=q,q+=1},size:function(){return q},indexOf:function(U){return X[U]},contains:function(U){return X[U]!==void 0}};return z};return ue})(R,K),E=0;E<K;E+=1)for(var I=0;I<R;I+=1)k.setPixel(I,E,N(I,E));var Q=pe();k.write(Q);for(var v=(function(){var $=0,J=0,j=0,S="",G={},ue=function(Ae){S+=String.fromCharCode(xe(63&Ae))},xe=function(Ae){if(!(Ae<0)){if(Ae<26)return 65+Ae;if(Ae<52)return Ae-26+97;if(Ae<62)return Ae-52+48;if(Ae==62)return 43;if(Ae==63)return 47}throw"n:"+Ae};return G.writeByte=function(Ae){for($=$<<8|255&Ae,J+=8,j+=1;J>=6;)ue($>>>J-6),J-=6},G.flush=function(){if(J>0&&(ue($<<6-J),$=0,J=0),j%3!=0)for(var Ae=3-j%3,X=0;X<Ae;X+=1)S+="="},G.toString=function(){return S},G})(),W=Q.toByteArray(),M=0;M<W.length;M+=1)v.writeByte(W[M]);return v.flush(),"data:image/gif;base64,"+v};return h})();f.stringToBytesFuncs["UTF-8"]=function(h){return(function(p){for(var g=[],B=0;B<p.length;B++){var y=p.charCodeAt(B);y<128?g.push(y):y<2048?g.push(192|y>>6,128|63&y):y<55296||y>=57344?g.push(224|y>>12,128|y>>6&63,128|63&y):(B++,y=65536+((1023&y)<<10|1023&p.charCodeAt(B)),g.push(240|y>>18,128|y>>12&63,128|y>>6&63,128|63&y))}return g})(h)},(u=typeof(l=function(){return f})=="function"?l.apply(a,[]):l)===void 0||(i.exports=u)}},A={};function r(i){var a=A[i];if(a!==void 0)return a.exports;var l=A[i]={exports:{}};return n[i](l,l.exports,r),l.exports}r.n=i=>{var a=i&&i.__esModule?()=>i.default:()=>i;return r.d(a,{a}),a},r.d=(i,a)=>{for(var l in a)r.o(a,l)&&!r.o(i,l)&&Object.defineProperty(i,l,{enumerable:!0,get:a[l]})},r.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a);var o={};return(()=>{r.d(o,{default:()=>K});const i=N=>!!N&&typeof N=="object"&&!Array.isArray(N);function a(N,...k){if(!k.length)return N;const E=k.shift();return E!==void 0&&i(N)&&i(E)?(N=Object.assign({},N),Object.keys(E).forEach((I=>{const Q=N[I],v=E[I];Array.isArray(Q)&&Array.isArray(v)?N[I]=v:i(Q)&&i(v)?N[I]=a(Object.assign({},Q),v):N[I]=v})),a(N,...k)):N}function l(N,k){const E=document.createElement("a");E.download=k,E.href=N,document.body.appendChild(E),E.click(),document.body.removeChild(E)}const u={L:.07,M:.15,Q:.25,H:.3};class f{constructor({svg:k,type:E,window:I}){this._svg=k,this._type=E,this._window=I}draw(k,E,I,Q){let v;switch(this._type){case"dots":v=this._drawDot;break;case"classy":v=this._drawClassy;break;case"classy-rounded":v=this._drawClassyRounded;break;case"rounded":v=this._drawRounded;break;case"extra-rounded":v=this._drawExtraRounded;break;default:v=this._drawSquare}v.call(this,{x:k,y:E,size:I,getNeighbor:Q})}_rotateFigure({x:k,y:E,size:I,rotation:Q=0,draw:v}){var W;const M=k+I/2,$=E+I/2;v(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*Q/Math.PI},${M},${$})`)}_basicDot(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(I+E/2)),this._element.setAttribute("cy",String(Q+E/2)),this._element.setAttribute("r",String(E/2))}}))}_basicSquare(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(I)),this._element.setAttribute("y",String(Q)),this._element.setAttribute("width",String(E)),this._element.setAttribute("height",String(E))}}))}_basicSideRounded(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${I} ${Q}v ${E}h `+E/2+`a ${E/2} ${E/2}, 0, 0, 0, 0 ${-E}`)}}))}_basicCornerRounded(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${I} ${Q}v ${E}h ${E}v `+-E/2+`a ${E/2} ${E/2}, 0, 0, 0, ${-E/2} ${-E/2}`)}}))}_basicCornerExtraRounded(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${I} ${Q}v ${E}h ${E}a ${E} ${E}, 0, 0, 0, ${-E} ${-E}`)}}))}_basicCornersRounded(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${I} ${Q}v `+E/2+`a ${E/2} ${E/2}, 0, 0, 0, ${E/2} ${E/2}h `+E/2+"v "+-E/2+`a ${E/2} ${E/2}, 0, 0, 0, ${-E/2} ${-E/2}`)}}))}_drawDot({x:k,y:E,size:I}){this._basicDot({x:k,y:E,size:I,rotation:0})}_drawSquare({x:k,y:E,size:I}){this._basicSquare({x:k,y:E,size:I,rotation:0})}_drawRounded({x:k,y:E,size:I,getNeighbor:Q}){const v=Q?+Q(-1,0):0,W=Q?+Q(1,0):0,M=Q?+Q(0,-1):0,$=Q?+Q(0,1):0,J=v+W+M+$;if(J!==0)if(J>2||v&&W||M&&$)this._basicSquare({x:k,y:E,size:I,rotation:0});else{if(J===2){let j=0;return v&&M?j=Math.PI/2:M&&W?j=Math.PI:W&&$&&(j=-Math.PI/2),void this._basicCornerRounded({x:k,y:E,size:I,rotation:j})}if(J===1){let j=0;return M?j=Math.PI/2:W?j=Math.PI:$&&(j=-Math.PI/2),void this._basicSideRounded({x:k,y:E,size:I,rotation:j})}}else this._basicDot({x:k,y:E,size:I,rotation:0})}_drawExtraRounded({x:k,y:E,size:I,getNeighbor:Q}){const v=Q?+Q(-1,0):0,W=Q?+Q(1,0):0,M=Q?+Q(0,-1):0,$=Q?+Q(0,1):0,J=v+W+M+$;if(J!==0)if(J>2||v&&W||M&&$)this._basicSquare({x:k,y:E,size:I,rotation:0});else{if(J===2){let j=0;return v&&M?j=Math.PI/2:M&&W?j=Math.PI:W&&$&&(j=-Math.PI/2),void this._basicCornerExtraRounded({x:k,y:E,size:I,rotation:j})}if(J===1){let j=0;return M?j=Math.PI/2:W?j=Math.PI:$&&(j=-Math.PI/2),void this._basicSideRounded({x:k,y:E,size:I,rotation:j})}}else this._basicDot({x:k,y:E,size:I,rotation:0})}_drawClassy({x:k,y:E,size:I,getNeighbor:Q}){const v=Q?+Q(-1,0):0,W=Q?+Q(1,0):0,M=Q?+Q(0,-1):0,$=Q?+Q(0,1):0;v+W+M+$!==0?v||M?W||$?this._basicSquare({x:k,y:E,size:I,rotation:0}):this._basicCornerRounded({x:k,y:E,size:I,rotation:Math.PI/2}):this._basicCornerRounded({x:k,y:E,size:I,rotation:-Math.PI/2}):this._basicCornersRounded({x:k,y:E,size:I,rotation:Math.PI/2})}_drawClassyRounded({x:k,y:E,size:I,getNeighbor:Q}){const v=Q?+Q(-1,0):0,W=Q?+Q(1,0):0,M=Q?+Q(0,-1):0,$=Q?+Q(0,1):0;v+W+M+$!==0?v||M?W||$?this._basicSquare({x:k,y:E,size:I,rotation:0}):this._basicCornerExtraRounded({x:k,y:E,size:I,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:k,y:E,size:I,rotation:-Math.PI/2}):this._basicCornersRounded({x:k,y:E,size:I,rotation:Math.PI/2})}}const h={dot:"dot",square:"square",extraRounded:"extra-rounded"},p=Object.values(h);class g{constructor({svg:k,type:E,window:I}){this._svg=k,this._type=E,this._window=I}draw(k,E,I,Q){let v;switch(this._type){case h.square:v=this._drawSquare;break;case h.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:k,y:E,size:I,rotation:Q})}_rotateFigure({x:k,y:E,size:I,rotation:Q=0,draw:v}){var W;const M=k+I/2,$=E+I/2;v(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*Q/Math.PI},${M},${$})`)}_basicDot(k){const{size:E,x:I,y:Q}=k,v=E/7;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${I+E/2} ${Q}a ${E/2} ${E/2} 0 1 0 0.1 0zm 0 ${v}a ${E/2-v} ${E/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(k){const{size:E,x:I,y:Q}=k,v=E/7;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${I} ${Q}v ${E}h ${E}v `+-E+`zM ${I+v} ${Q+v}h `+(E-2*v)+"v "+(E-2*v)+"h "+(2*v-E)+"z")}}))}_basicExtraRounded(k){const{size:E,x:I,y:Q}=k,v=E/7;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${I} ${Q+2.5*v}v `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*v}h `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*-v}v `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*-v}h `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*v}M ${I+2.5*v} ${Q+v}h `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*v}v `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*v}h `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*-v}v `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*-v}`)}}))}_drawDot({x:k,y:E,size:I,rotation:Q}){this._basicDot({x:k,y:E,size:I,rotation:Q})}_drawSquare({x:k,y:E,size:I,rotation:Q}){this._basicSquare({x:k,y:E,size:I,rotation:Q})}_drawExtraRounded({x:k,y:E,size:I,rotation:Q}){this._basicExtraRounded({x:k,y:E,size:I,rotation:Q})}}const B={dot:"dot",square:"square"},y=Object.values(B);class C{constructor({svg:k,type:E,window:I}){this._svg=k,this._type=E,this._window=I}draw(k,E,I,Q){let v;v=this._type===B.square?this._drawSquare:this._drawDot,v.call(this,{x:k,y:E,size:I,rotation:Q})}_rotateFigure({x:k,y:E,size:I,rotation:Q=0,draw:v}){var W;const M=k+I/2,$=E+I/2;v(),(W=this._element)===null||W===void 0||W.setAttribute("transform",`rotate(${180*Q/Math.PI},${M},${$})`)}_basicDot(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(I+E/2)),this._element.setAttribute("cy",String(Q+E/2)),this._element.setAttribute("r",String(E/2))}}))}_basicSquare(k){const{size:E,x:I,y:Q}=k;this._rotateFigure(Object.assign(Object.assign({},k),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(I)),this._element.setAttribute("y",String(Q)),this._element.setAttribute("width",String(E)),this._element.setAttribute("height",String(E))}}))}_drawDot({x:k,y:E,size:I,rotation:Q}){this._basicDot({x:k,y:E,size:I,rotation:Q})}_drawSquare({x:k,y:E,size:I,rotation:Q}){this._basicSquare({x:k,y:E,size:I,rotation:Q})}}const w="circle",F=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],_=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class D{constructor(k,E){this._roundSize=I=>this._options.dotsOptions.roundSize?Math.floor(I):I,this._window=E,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(k.width)),this._element.setAttribute("height",String(k.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),k.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${k.width} ${k.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=k.image,this._instanceId=D.instanceCount++,this._options=k}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(k){const E=k.getModuleCount(),I=Math.min(this._options.width,this._options.height)-2*this._options.margin,Q=this._options.shape===w?I/Math.sqrt(2):I,v=this._roundSize(Q/E);let W={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=k,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:M,qrOptions:$}=this._options,J=M.imageSize*u[$.errorCorrectionLevel],j=Math.floor(J*E*E);W=(function({originalHeight:S,originalWidth:G,maxHiddenDots:ue,maxHiddenAxisDots:xe,dotSize:Ae}){const X={x:0,y:0},q={x:0,y:0};if(S<=0||G<=0||ue<=0||Ae<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const z=S/G;return X.x=Math.floor(Math.sqrt(ue/z)),X.x<=0&&(X.x=1),xe&&xe<X.x&&(X.x=xe),X.x%2==0&&X.x--,q.x=X.x*Ae,X.y=1+2*Math.ceil((X.x*z-1)/2),q.y=Math.round(q.x*z),(X.y*X.x>ue||xe&&xe<X.y)&&(xe&&xe<X.y?(X.y=xe,X.y%2==0&&X.x--):X.y-=2,q.y=X.y*Ae,X.x=1+2*Math.ceil((X.y/z-1)/2),q.x=Math.round(q.y/z)),{height:q.y,width:q.x,hideYDots:X.y,hideXDots:X.x}})({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:j,maxHiddenAxisDots:E-14,dotSize:v})}this.drawBackground(),this.drawDots(((M,$)=>{var J,j,S,G,ue,xe;return!(this._options.imageOptions.hideBackgroundDots&&M>=(E-W.hideYDots)/2&&M<(E+W.hideYDots)/2&&$>=(E-W.hideXDots)/2&&$<(E+W.hideXDots)/2||!((J=F[M])===null||J===void 0)&&J[$]||!((j=F[M-E+7])===null||j===void 0)&&j[$]||!((S=F[M])===null||S===void 0)&&S[$-E+7]||!((G=_[M])===null||G===void 0)&&G[$]||!((ue=_[M-E+7])===null||ue===void 0)&&ue[$]||!((xe=_[M])===null||xe===void 0)&&xe[$-E+7])})),this.drawCorners(),this._options.image&&await this.drawImage({width:W.width,height:W.height,count:E,dotSize:v})}drawBackground(){var k,E,I;const Q=this._element,v=this._options;if(Q){const W=(k=v.backgroundOptions)===null||k===void 0?void 0:k.gradient,M=(E=v.backgroundOptions)===null||E===void 0?void 0:E.color;let $=v.height,J=v.width;if(W||M){const j=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((I=v.backgroundOptions)===null||I===void 0)&&I.round&&($=J=Math.min(v.width,v.height),j.setAttribute("rx",String($/2*v.backgroundOptions.round))),j.setAttribute("x",String(this._roundSize((v.width-J)/2))),j.setAttribute("y",String(this._roundSize((v.height-$)/2))),j.setAttribute("width",String(J)),j.setAttribute("height",String($)),this._backgroundClipPath.appendChild(j),this._createColor({options:W,color:M,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(k){var E,I;if(!this._qr)throw"QR code is not defined";const Q=this._options,v=this._qr.getModuleCount();if(v>Q.width||v>Q.height)throw"The canvas is too small.";const W=Math.min(Q.width,Q.height)-2*Q.margin,M=Q.shape===w?W/Math.sqrt(2):W,$=this._roundSize(M/v),J=this._roundSize((Q.width-v*$)/2),j=this._roundSize((Q.height-v*$)/2),S=new f({svg:this._element,type:Q.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(E=Q.dotsOptions)===null||E===void 0?void 0:E.gradient,color:Q.dotsOptions.color,additionalRotation:0,x:0,y:0,height:Q.height,width:Q.width,name:`dot-color-${this._instanceId}`});for(let G=0;G<v;G++)for(let ue=0;ue<v;ue++)k&&!k(G,ue)||!((I=this._qr)===null||I===void 0)&&I.isDark(G,ue)&&(S.draw(J+ue*$,j+G*$,$,((xe,Ae)=>!(ue+xe<0||G+Ae<0||ue+xe>=v||G+Ae>=v)&&!(k&&!k(G+Ae,ue+xe))&&!!this._qr&&this._qr.isDark(G+Ae,ue+xe))),S._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(S._element));if(Q.shape===w){const G=this._roundSize((W/$-v)/2),ue=v+2*G,xe=J-G*$,Ae=j-G*$,X=[],q=this._roundSize(ue/2);for(let z=0;z<ue;z++){X[z]=[];for(let U=0;U<ue;U++)z>=G-1&&z<=ue-G&&U>=G-1&&U<=ue-G||Math.sqrt((z-q)*(z-q)+(U-q)*(U-q))>q?X[z][U]=0:X[z][U]=this._qr.isDark(U-2*G<0?U:U>=v?U-2*G:U-G,z-2*G<0?z:z>=v?z-2*G:z-G)?1:0}for(let z=0;z<ue;z++)for(let U=0;U<ue;U++)X[z][U]&&(S.draw(xe+U*$,Ae+z*$,$,((re,de)=>{var L;return!!(!((L=X[z+de])===null||L===void 0)&&L[U+re])})),S._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(S._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const k=this._element,E=this._options;if(!k)throw"Element code is not defined";const I=this._qr.getModuleCount(),Q=Math.min(E.width,E.height)-2*E.margin,v=E.shape===w?Q/Math.sqrt(2):Q,W=this._roundSize(v/I),M=7*W,$=3*W,J=this._roundSize((E.width-I*W)/2),j=this._roundSize((E.height-I*W)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((([S,G,ue])=>{var xe,Ae,X,q,z,U,re,de,L,Y,ae,ye,Te,ie;const ge=J+S*W*(I-7),se=j+G*W*(I-7);let he=this._dotsClipPath,Ue=this._dotsClipPath;if((!((xe=E.cornersSquareOptions)===null||xe===void 0)&&xe.gradient||!((Ae=E.cornersSquareOptions)===null||Ae===void 0)&&Ae.color)&&(he=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),he.setAttribute("id",`clip-path-corners-square-color-${S}-${G}-${this._instanceId}`),this._defs.appendChild(he),this._cornersSquareClipPath=this._cornersDotClipPath=Ue=he,this._createColor({options:(X=E.cornersSquareOptions)===null||X===void 0?void 0:X.gradient,color:(q=E.cornersSquareOptions)===null||q===void 0?void 0:q.color,additionalRotation:ue,x:ge,y:se,height:M,width:M,name:`corners-square-color-${S}-${G}-${this._instanceId}`})),((z=E.cornersSquareOptions)===null||z===void 0?void 0:z.type)&&p.includes(E.cornersSquareOptions.type)){const ke=new g({svg:this._element,type:E.cornersSquareOptions.type,window:this._window});ke.draw(ge,se,M,ue),ke._element&&he&&he.appendChild(ke._element)}else{const ke=new f({svg:this._element,type:((U=E.cornersSquareOptions)===null||U===void 0?void 0:U.type)||E.dotsOptions.type,window:this._window});for(let Ye=0;Ye<F.length;Ye++)for(let Ve=0;Ve<F[Ye].length;Ve++)!((re=F[Ye])===null||re===void 0)&&re[Ve]&&(ke.draw(ge+Ve*W,se+Ye*W,W,((Ct,wt)=>{var Nt;return!!(!((Nt=F[Ye+wt])===null||Nt===void 0)&&Nt[Ve+Ct])})),ke._element&&he&&he.appendChild(ke._element))}if((!((de=E.cornersDotOptions)===null||de===void 0)&&de.gradient||!((L=E.cornersDotOptions)===null||L===void 0)&&L.color)&&(Ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ue.setAttribute("id",`clip-path-corners-dot-color-${S}-${G}-${this._instanceId}`),this._defs.appendChild(Ue),this._cornersDotClipPath=Ue,this._createColor({options:(Y=E.cornersDotOptions)===null||Y===void 0?void 0:Y.gradient,color:(ae=E.cornersDotOptions)===null||ae===void 0?void 0:ae.color,additionalRotation:ue,x:ge+2*W,y:se+2*W,height:$,width:$,name:`corners-dot-color-${S}-${G}-${this._instanceId}`})),((ye=E.cornersDotOptions)===null||ye===void 0?void 0:ye.type)&&y.includes(E.cornersDotOptions.type)){const ke=new C({svg:this._element,type:E.cornersDotOptions.type,window:this._window});ke.draw(ge+2*W,se+2*W,$,ue),ke._element&&Ue&&Ue.appendChild(ke._element)}else{const ke=new f({svg:this._element,type:((Te=E.cornersDotOptions)===null||Te===void 0?void 0:Te.type)||E.dotsOptions.type,window:this._window});for(let Ye=0;Ye<_.length;Ye++)for(let Ve=0;Ve<_[Ye].length;Ve++)!((ie=_[Ye])===null||ie===void 0)&&ie[Ve]&&(ke.draw(ge+Ve*W,se+Ye*W,W,((Ct,wt)=>{var Nt;return!!(!((Nt=_[Ye+wt])===null||Nt===void 0)&&Nt[Ve+Ct])})),ke._element&&Ue&&Ue.appendChild(ke._element))}}))}loadImage(){return new Promise(((k,E)=>{var I;const Q=this._options;if(!Q.image)return E("Image is not defined");if(!((I=Q.nodeCanvas)===null||I===void 0)&&I.loadImage)Q.nodeCanvas.loadImage(Q.image).then((v=>{var W,M;if(this._image=v,this._options.imageOptions.saveAsBlob){const $=(W=Q.nodeCanvas)===null||W===void 0?void 0:W.createCanvas(this._image.width,this._image.height);(M=$?.getContext("2d"))===null||M===void 0||M.drawImage(v,0,0),this._imageUri=$?.toDataURL()}k()})).catch(E);else{const v=new this._window.Image;typeof Q.imageOptions.crossOrigin=="string"&&(v.crossOrigin=Q.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await(async function(W,M){return new Promise(($=>{const J=new M.XMLHttpRequest;J.onload=function(){const j=new M.FileReader;j.onloadend=function(){$(j.result)},j.readAsDataURL(J.response)},J.open("GET",W),J.responseType="blob",J.send()}))})(Q.image||"",this._window)),k()},v.src=Q.image}}))}async drawImage({width:k,height:E,count:I,dotSize:Q}){const v=this._options,W=this._roundSize((v.width-I*Q)/2),M=this._roundSize((v.height-I*Q)/2),$=W+this._roundSize(v.imageOptions.margin+(I*Q-k)/2),J=M+this._roundSize(v.imageOptions.margin+(I*Q-E)/2),j=k-2*v.imageOptions.margin,S=E-2*v.imageOptions.margin,G=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");G.setAttribute("href",this._imageUri||""),G.setAttribute("xlink:href",this._imageUri||""),G.setAttribute("x",String($)),G.setAttribute("y",String(J)),G.setAttribute("width",`${j}px`),G.setAttribute("height",`${S}px`),this._element.appendChild(G)}_createColor({options:k,color:E,additionalRotation:I,x:Q,y:v,height:W,width:M,name:$}){const J=M>W?M:W,j=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(j.setAttribute("x",String(Q)),j.setAttribute("y",String(v)),j.setAttribute("height",String(W)),j.setAttribute("width",String(M)),j.setAttribute("clip-path",`url('#clip-path-${$}')`),k){let S;if(k.type==="radial")S=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),S.setAttribute("id",$),S.setAttribute("gradientUnits","userSpaceOnUse"),S.setAttribute("fx",String(Q+M/2)),S.setAttribute("fy",String(v+W/2)),S.setAttribute("cx",String(Q+M/2)),S.setAttribute("cy",String(v+W/2)),S.setAttribute("r",String(J/2));else{const G=((k.rotation||0)+I)%(2*Math.PI),ue=(G+2*Math.PI)%(2*Math.PI);let xe=Q+M/2,Ae=v+W/2,X=Q+M/2,q=v+W/2;ue>=0&&ue<=.25*Math.PI||ue>1.75*Math.PI&&ue<=2*Math.PI?(xe-=M/2,Ae-=W/2*Math.tan(G),X+=M/2,q+=W/2*Math.tan(G)):ue>.25*Math.PI&&ue<=.75*Math.PI?(Ae-=W/2,xe-=M/2/Math.tan(G),q+=W/2,X+=M/2/Math.tan(G)):ue>.75*Math.PI&&ue<=1.25*Math.PI?(xe+=M/2,Ae+=W/2*Math.tan(G),X-=M/2,q-=W/2*Math.tan(G)):ue>1.25*Math.PI&&ue<=1.75*Math.PI&&(Ae+=W/2,xe+=M/2/Math.tan(G),q-=W/2,X-=M/2/Math.tan(G)),S=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),S.setAttribute("id",$),S.setAttribute("gradientUnits","userSpaceOnUse"),S.setAttribute("x1",String(Math.round(xe))),S.setAttribute("y1",String(Math.round(Ae))),S.setAttribute("x2",String(Math.round(X))),S.setAttribute("y2",String(Math.round(q)))}k.colorStops.forEach((({offset:G,color:ue})=>{const xe=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");xe.setAttribute("offset",100*G+"%"),xe.setAttribute("stop-color",ue),S.appendChild(xe)})),j.setAttribute("fill",`url('#${$}')`),this._defs.appendChild(S)}else E&&j.setAttribute("fill",E);this._element.appendChild(j)}}D.instanceCount=0;const P=D,T="canvas",H={};for(let N=0;N<=40;N++)H[N]=N;const te={type:T,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:H[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function Z(N){const k=Object.assign({},N);if(!k.colorStops||!k.colorStops.length)throw"Field 'colorStops' is required in gradient";return k.rotation?k.rotation=Number(k.rotation):k.rotation=0,k.colorStops=k.colorStops.map((E=>Object.assign(Object.assign({},E),{offset:Number(E.offset)}))),k}function ne(N){const k=Object.assign({},N);return k.width=Number(k.width),k.height=Number(k.height),k.margin=Number(k.margin),k.imageOptions=Object.assign(Object.assign({},k.imageOptions),{hideBackgroundDots:!!k.imageOptions.hideBackgroundDots,imageSize:Number(k.imageOptions.imageSize),margin:Number(k.imageOptions.margin)}),k.margin>Math.min(k.width,k.height)&&(k.margin=Math.min(k.width,k.height)),k.dotsOptions=Object.assign({},k.dotsOptions),k.dotsOptions.gradient&&(k.dotsOptions.gradient=Z(k.dotsOptions.gradient)),k.cornersSquareOptions&&(k.cornersSquareOptions=Object.assign({},k.cornersSquareOptions),k.cornersSquareOptions.gradient&&(k.cornersSquareOptions.gradient=Z(k.cornersSquareOptions.gradient))),k.cornersDotOptions&&(k.cornersDotOptions=Object.assign({},k.cornersDotOptions),k.cornersDotOptions.gradient&&(k.cornersDotOptions.gradient=Z(k.cornersDotOptions.gradient))),k.backgroundOptions&&(k.backgroundOptions=Object.assign({},k.backgroundOptions),k.backgroundOptions.gradient&&(k.backgroundOptions.gradient=Z(k.backgroundOptions.gradient))),k}var pe=r(873),Be=r.n(pe);function we(N){if(!N)throw new Error("Extension must be defined");N[0]==="."&&(N=N.substring(1));const k={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[N.toLowerCase()];if(!k)throw new Error(`Extension "${N}" is not supported`);return k}class R{constructor(k){k?.jsdom?this._window=new k.jsdom("",{resources:"usable"}).window:this._window=window,this._options=k?ne(a(te,k)):te,this.update()}static _clearContainer(k){k&&(k.innerHTML="")}_setupSvg(){if(!this._qr)return;const k=new P(this._options,this._window);this._svg=k.getElement(),this._svgDrawingPromise=k.drawQR(this._qr).then((()=>{var E;this._svg&&((E=this._extension)===null||E===void 0||E.call(this,k.getElement(),this._options))}))}_setupCanvas(){var k,E;this._qr&&(!((k=this._options.nodeCanvas)===null||k===void 0)&&k.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(E=this._svgDrawingPromise)===null||E===void 0?void 0:E.then((()=>{var I;if(!this._svg)return;const Q=this._svg,v=new this._window.XMLSerializer().serializeToString(Q),W=btoa(v),M=`data:${we("svg")};base64,${W}`;if(!((I=this._options.nodeCanvas)===null||I===void 0)&&I.loadImage)return this._options.nodeCanvas.loadImage(M).then(($=>{var J,j;$.width=this._options.width,$.height=this._options.height,(j=(J=this._nodeCanvas)===null||J===void 0?void 0:J.getContext("2d"))===null||j===void 0||j.drawImage($,0,0)}));{const $=new this._window.Image;return new Promise((J=>{$.onload=()=>{var j,S;(S=(j=this._domCanvas)===null||j===void 0?void 0:j.getContext("2d"))===null||S===void 0||S.drawImage($,0,0),J()},$.src=M}))}})))}async _getElement(k="png"){if(!this._qr)throw"QR code is empty";return k.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(k){R._clearContainer(this._container),this._options=k?ne(a(this._options,k)):this._options,this._options.data&&(this._qr=Be()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||(function(E){switch(!0){case/^[0-9]*$/.test(E):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(E):return"Alphanumeric";default:return"Byte"}})(this._options.data)),this._qr.make(),this._options.type===T?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(k){if(k){if(typeof k.appendChild!="function")throw"Container should be a single DOM node";this._options.type===T?this._domCanvas&&k.appendChild(this._domCanvas):this._svg&&k.appendChild(this._svg),this._container=k}}applyExtension(k){if(!k)throw"Extension function should be defined.";this._extension=k,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(k="png"){if(!this._qr)throw"QR code is empty";const E=await this._getElement(k),I=we(k);if(!E)return null;if(k.toLowerCase()==="svg"){const Q=`<?xml version="1.0" standalone="no"?>\r
183
183
  ${new this._window.XMLSerializer().serializeToString(E)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(Q):new Blob([Q],{type:I})}return new Promise((Q=>{const v=E;if("toBuffer"in v)if(I==="image/png")Q(v.toBuffer(I));else if(I==="image/jpeg")Q(v.toBuffer(I));else{if(I!=="application/pdf")throw Error("Unsupported extension");Q(v.toBuffer(I))}else"toBlob"in v&&v.toBlob(Q,I,1)}))}async download(k){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let E="png",I="qr";typeof k=="string"?(E=k,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof k=="object"&&k!==null&&(k.name&&(I=k.name),k.extension&&(E=k.extension));const Q=await this._getElement(E);if(Q)if(E.toLowerCase()==="svg"){let v=new XMLSerializer().serializeToString(Q);v=`<?xml version="1.0" standalone="no"?>\r
184
- `+v,l(`data:${we(E)};charset=utf-8,${encodeURIComponent(v)}`,`${I}.svg`)}else l(Q.toDataURL(we(E)),`${I}.${E}`)}}const K=R})(),o.default})()))})(Ah)),Ah.exports}var zte=Kte();const zU=x5(zte),Wte={class:"qr-code"},Gte=["innerHTML"],Yte=s.defineComponent({__name:"qr-code",props:{data:null,image:null,download:{type:Boolean,default:!1},filename:{type:String,default:"qr-code"}},emits:["update:dataUrl"],setup(t,{expose:e,emit:n}){const A=t,r=s.ref(),o=s.computed(()=>({width:300,height:300,type:"canvas",data:A.data,...A.image?{image:A.image}:{},margin:10,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,margin:20,crossOrigin:"anonymous"},dotsOptions:{type:"rounded"},backgroundOptions:{color:"#ffffff"},cornersSquareOptions:{color:"#333333",type:"extra-rounded"},cornersDotOptions:{color:"#333333",type:"dot"}}));function i(l=null,u=null){typeof window<"u"&&(r.value&&(r.value.innerHTML=""),new zU(l||o.value).append(r.value))}function a(){new zU({...o.value,width:1200,height:1200}).download({name:A.filename,extension:"png"})}return s.watch(()=>o.value,i,{deep:!0,immediate:!0}),s.onMounted(()=>{typeof window<"u"&&i()}),e({download:a}),(l,u)=>(s.openBlock(),s.createElementBlock("div",Wte,[A.download?(s.openBlock(),s.createElementBlock("button",{key:0,class:"btn btn-outline-contrast mb-3",onClick:a,innerHTML:l.$t("qrlink.download")},null,8,Gte)):(s.openBlock(),s.createElementBlock("div",{key:1,ref_key:"canvas",ref:r},null,512))]))}}),jte={class:"link-sharing"},qte={key:0,class:"link-sharing__links container"},Jte={class:"row"},Xte={key:0,class:"col-12 col-md-6"},Zte=["href"],ene={class:"caption"},tne={key:1,class:"col-12 col-md-6"},nne=["href"],Ane={class:"caption"},rne={key:2,class:"col-12 col-md-6"},one={class:"caption"},ine={key:3,class:"col-12 col-md-6"},sne=["href"],ane={class:"caption"},lne={key:4,class:"col-12 col-md-6"},cne=["href"],une={class:"caption"},dne={key:5,class:"col-12 col-md-6"},fne={class:"caption"},hne={key:6,class:"col-12 col-md-6"},pne=["href"],mne={class:"caption"},gne={key:1,class:"link-sharing__instructions pt-5"},Bne={class:"row"},yne={class:"col-12 text-center py-0"},wne={class:"mb-5"},Cne=t=>t.replace(/<(?:.|\n)*?>/gm,""),bne=s.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,n=s.ref(!1),A=s.computed(()=>encodeURIComponent(e.url));s.computed(()=>encodeURIComponent(e.media));const r=s.computed(()=>Cne(e.text)),o=s.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function i(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,l)=>{const u=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",jte,[n.value?(s.openBlock(),s.createElementBlock("div",gne,[s.createElementVNode("div",Bne,[s.createElementVNode("div",yne,[s.createElementVNode("div",wne,[s.createElementVNode("p",null,s.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),s.createElementVNode("p",null,[s.createElementVNode("strong",null,s.toDisplayString(Array.isArray(t.hashtags)?t.hashtags.join(", "):t.hashtags),1)]),s.createElementVNode("button",{type:"button",class:"btn btn-text",onClick:l[1]||(l[1]=s.withModifiers(f=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"arrow-left"}),s.createTextVNode(" "+s.toDisplayString(a.$t("common.back")),1)])])])])])):(s.openBlock(),s.createElementBlock("div",qte,[s.createElementVNode("div",Jte,[t.services.facebook?(s.openBlock(),s.createElementBlock("div",Xte,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"facebook"}),s.createElementVNode("span",ene,s.toDisplayString(a.$t("sharing.facebook")),1)],8,Zte)])):s.createCommentVNode("",!0),t.services.bluesky?(s.openBlock(),s.createElementBlock("div",tne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"bluesky-logo"}),s.createElementVNode("span",Ane,s.toDisplayString(a.$t("sharing.bluesky")),1)],8,nne)])):s.createCommentVNode("",!0),t.services.instagram?(s.openBlock(),s.createElementBlock("div",rne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:l[0]||(l[0]=s.withModifiers(f=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"instagram"}),s.createElementVNode("span",one,s.toDisplayString(a.$t("sharing.instagram")),1)])])):s.createCommentVNode("",!0),t.services.linkedin?(s.openBlock(),s.createElementBlock("div",ine,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${A.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"linkedin"}),s.createElementVNode("span",ane,s.toDisplayString(a.$t("sharing.linkedin")),1)],8,sne)])):s.createCommentVNode("",!0),t.services.whatsapp&&o.value?(s.openBlock(),s.createElementBlock("div",lne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"whatsapp"}),s.createElementVNode("span",une,s.toDisplayString(a.$t("sharing.whatsapp")),1)],8,cne)])):s.createCommentVNode("",!0),t.services.clipboard?(s.openBlock(),s.createElementBlock("div",dne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:s.withModifiers(i,["prevent","stop"])},[s.createVNode(u,{symbol:"copy"}),s.createElementVNode("span",fne,s.toDisplayString(a.$t("sharing.clipboard")),1)])])):s.createCommentVNode("",!0),t.services.mailto?(s.openBlock(),s.createElementBlock("div",hne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"mail"}),s.createElementVNode("span",mne,s.toDisplayString(a.$t("sharing.mailto")),1)],8,pne)])):s.createCommentVNode("",!0)])]))])}}}),vne={class:"base-form"},Ene=s.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function n(r){console.log("reset",r)}function A(r){console.log("submit",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",vne,[s.createElementVNode("form",{ref:"form",onInput:e,onReset:n,onSubmit:s.withModifiers(A,["prevent"])},[s.renderSlot(r.$slots,"default")],544)]))}}),kne={class:"modal-dialog__content d-flex flex-column"},Sne={class:"modal-dialog__header d-flex p-3 border-bottom"},Fne={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},Qne={class:"modal-dialog__body"},xne={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},Une=s.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:n}){const A=t,r=n,o=s.ref();function i(){document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),A.modal?o.value?.showModal():o.value?.show(),r("update:modelValue",!0)}function a(){const p=o.value&&new KeyframeEffect(o.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),g=new Animation(p,document.timeline);g.play(),g.addEventListener("finish",()=>{o.value?.close(),l()}),r("update:modelValue",!1)}function l(){const p=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(p,10),behavior:"instant"}),r("update:modelValue",!1)}function u(p){i(),r("confirm",p)}function f(){a(),r("cancel")}function h(p){const g=p.target;g&&g.nodeName==="DIALOG"&&a()}return s.watch(()=>A.modelValue,(p,g)=>{p&&p!==g?i():g&&a()},{immediate:!0}),s.onMounted(()=>{o.value?.addEventListener("cancel",p=>{p.preventDefault(),a()}),A.dismiss&&document.addEventListener("click",h),A.modelValue&&i()}),s.onBeforeUnmount(()=>{A.dismiss&&document.removeEventListener("click",h)}),e({show:i,close:a,confirm:u,cancel:f}),(p,g)=>(s.openBlock(),s.createElementBlock("dialog",{ref_key:"dialog",ref:o,class:s.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:l},[s.createElementVNode("div",kne,[s.createElementVNode("div",Sne,[t.title?(s.openBlock(),s.createElementBlock("h5",Fne,s.toDisplayString(t.title),1)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),s.createElementVNode("div",Qne,[s.renderSlot(p.$slots,"default")]),t.footer?(s.openBlock(),s.createElementBlock("div",xne,[s.renderSlot(p.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},s.toDisplayString(p.$t("common.close")),1)])):s.createCommentVNode("",!0)])],34))}}),Ine=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],_ne=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],Tne={key:0,class:"sortable-list__drag-handle"},Dne={type:"button",class:"btn"},Mne={key:0,class:"sortable-list__item"},One=s.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue","update:isDragging","update:dragIndex","update:dragOverIndex"],setup(t,{emit:e}){const n=t,A=s.ref(!1),r=s.ref(null),o=s.ref(null),i=e,a=s.computed({get(){return n.modelValue},set(F){i("update:modelValue",F)}}),l=s.computed(()=>document.querySelector(".is-drag-item")?.outerHTML),u=s.useSlots(),f=s.computed(()=>u["list-append"]);function h(F,_){F.dataTransfer&&(F.dataTransfer.dropEffect="move",F.dataTransfer.effectAllowed="move",F.dataTransfer.setData("index",_.toLocaleString()),A.value=!0,r.value=_)}function p(F,_){A.value=!1,r.value=null,o.value=null}function g(F,_){}function B(F,_){o.value=r.value!==_?_:null}function y(F,_){o.value=r.value!==_?_:null}function C(F,_){}function w(F,_){if(F.dataTransfer){F.preventDefault();const D=Number(F.dataTransfer.getData("index")),P=_,T=[...a.value];(P||P===0)&&(D||D===0)&&T.splice(P,0,T.splice(D,1)[0]),a.value=T}}return s.watch(()=>A.value,F=>{i("update:isDragging",F)},{immediate:!0}),s.watch(()=>r.value,F=>{i("update:dragIndex",F)},{immediate:!0}),s.watch(()=>o.value,F=>{i("update:dragOverIndex",F)},{immediate:!0}),(F,_)=>{const D=s.resolveComponent("svg-icon");return s.openBlock(),s.createBlock(s.TransitionGroup,{name:"list",tag:"ul",class:s.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:_[0]||(_[0]=s.withModifiers(()=>{},["prevent"])),onDragenter:_[1]||(_[1]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(P,T)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:T},[t.showPreview&&A.value&&o.value===T?(s.openBlock(),s.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:H=>B(H,T),onDragover:H=>y(H,T),onDragleave:H=>void 0,onDragend:H=>p(),onDrop:H=>w(H,T),innerHTML:l.value},null,40,Ine)):s.createCommentVNode("",!0),s.createElementVNode("li",{class:s.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":A.value&&r.value===T,"is-drop-target":A.value&&o.value===T&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:H=>h(H,T),onDrag:H=>void 0,onDragenter:H=>B(H,T),onDragover:H=>y(H,T),onDragleave:H=>void 0,onDragend:H=>p(),onDrop:H=>w(H,T)},[t.showDragHandle?(s.openBlock(),s.createElementBlock("div",Tne,[s.createElementVNode("button",Dne,[s.createVNode(D,{symbol:"drag"})])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[s.renderSlot(F.$slots,"list-item",{item:P,index:T},()=>[s.createTextVNode(s.toDisplayString(P),1)])],2)],42,_ne)],64))),128)),f.value?(s.openBlock(),s.createElementBlock("li",Mne,[s.renderSlot(F.$slots,"list-append")])):s.createCommentVNode("",!0)]),_:3},8,["class"])}}}),Lne={class:"touch-wrapper__controls"},Nne={class:"btn-group",role:"group"},Hne=s.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.getCurrentInstance(),A=n&&n.appContext.config.globalProperties.$config,r=t,o=e,i=s.ref();function a(f){const h=r.modelValue+f;o("update:modelValue",f===0?1:h>=1?h:1)}function l(f){if(f.ctrlKey){f.preventDefault();const h=0-f.deltaY*.01;a(h)}}function u(f){f.preventDefault();const{scale:h}=f,p=h>1?h*.01:0-h;a(p)}return s.onMounted(()=>{i.value&&(i.value.addEventListener("wheel",l,!1),i.value.addEventListener("gesturestart",u,!1),i.value.addEventListener("gesturechange",u,!1),i.value.addEventListener("gestureend",u,!1))}),(f,h)=>{const p=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"touchElement",ref:i,class:"touch-wrapper"},[s.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[s.createElementVNode("div",Lne,[s.createElementVNode("div",Nne,[s.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=g=>a(-1))},[s.createVNode(p,{symbol:"minus","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=g=>a(0))},[s.createVNode(p,{symbol:"maximize","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=g=>a(1))},[s.createVNode(p,{symbol:"plus","base-path":s.unref(A).iconSprite},null,8,["base-path"])])])])]),s.renderSlot(f.$slots,"default")],512)}}});var vy={};(function t(e,n,A,r){var o=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),i=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=(function(){if(!e.OffscreenCanvas)return!1;try{var Q=new OffscreenCanvas(1,1),v=Q.getContext("2d");v.fillRect(0,0,1,1);var W=Q.transferToImageBitmap();v.createPattern(W,"no-repeat")}catch{return!1}return!0})();function l(){}function u(Q){var v=n.exports.Promise,W=v!==void 0?v:e.Promise;return typeof W=="function"?new W(Q):(Q(l,l),null)}var f=(function(Q,v){return{transform:function(W){if(Q)return W;if(v.has(W))return v.get(W);var M=new OffscreenCanvas(W.width,W.height),$=M.getContext("2d");return $.drawImage(W,0,0),v.set(W,M),M},clear:function(){v.clear()}}})(a,new Map),h=(function(){var Q=Math.floor(16.666666666666668),v,W,M={},$=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(v=function(J){var j=Math.random();return M[j]=requestAnimationFrame(function S(G){$===G||$+Q-1<G?($=G,delete M[j],J()):M[j]=requestAnimationFrame(S)}),j},W=function(J){M[J]&&cancelAnimationFrame(M[J])}):(v=function(J){return setTimeout(J,Q)},W=function(J){return clearTimeout(J)}),{frame:v,cancel:W}})(),p=(function(){var Q,v,W={};function M($){function J(j,S){$.postMessage({options:j||{},callback:S})}$.init=function(S){var G=S.transferControlToOffscreen();$.postMessage({canvas:G},[G])},$.fire=function(S,G,ue){if(v)return J(S,null),v;var xe=Math.random().toString(36).slice(2);return v=u(function(Ae){function X(q){q.data.callback===xe&&(delete W[xe],$.removeEventListener("message",X),v=null,f.clear(),ue(),Ae())}$.addEventListener("message",X),J(S,xe),W[xe]=X.bind(null,{data:{callback:xe}})}),v},$.reset=function(){$.postMessage({reset:!0});for(var S in W)W[S](),delete W[S]}}return function(){if(Q)return Q;if(!A&&o){var $=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
185
- `);try{Q=new Worker(URL.createObjectURL(new Blob([$])))}catch(J){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",J),null}M(Q)}return Q}})(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function B(Q,v){return v?v(Q):Q}function y(Q){return Q!=null}function C(Q,v,W){return B(Q&&y(Q[v])?Q[v]:g[v],W)}function w(Q){return Q<0?0:Math.floor(Q)}function F(Q,v){return Math.floor(Math.random()*(v-Q))+Q}function _(Q){return parseInt(Q,16)}function D(Q){return Q.map(P)}function P(Q){var v=String(Q).replace(/[^0-9a-f]/gi,"");return v.length<6&&(v=v[0]+v[0]+v[1]+v[1]+v[2]+v[2]),{r:_(v.substring(0,2)),g:_(v.substring(2,4)),b:_(v.substring(4,6))}}function T(Q){var v=C(Q,"origin",Object);return v.x=C(v,"x",Number),v.y=C(v,"y",Number),v}function H(Q){Q.width=document.documentElement.clientWidth,Q.height=document.documentElement.clientHeight}function te(Q){var v=Q.getBoundingClientRect();Q.width=v.width,Q.height=v.height}function Z(Q){var v=document.createElement("canvas");return v.style.position="fixed",v.style.top="0px",v.style.left="0px",v.style.pointerEvents="none",v.style.zIndex=Q,v}function ne(Q,v,W,M,$,J,j,S,G){Q.save(),Q.translate(v,W),Q.rotate(J),Q.scale(M,$),Q.arc(0,0,1,j,S,G),Q.restore()}function pe(Q){var v=Q.angle*(Math.PI/180),W=Q.spread*(Math.PI/180);return{x:Q.x,y:Q.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Q.startVelocity*.5+Math.random()*Q.startVelocity,angle2D:-v+(.5*W-Math.random()*W),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Q.color,shape:Q.shape,tick:0,totalTicks:Q.ticks,decay:Q.decay,drift:Q.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Q.gravity*3,ovalScalar:.6,scalar:Q.scalar,flat:Q.flat}}function Be(Q,v){v.x+=Math.cos(v.angle2D)*v.velocity+v.drift,v.y+=Math.sin(v.angle2D)*v.velocity+v.gravity,v.velocity*=v.decay,v.flat?(v.wobble=0,v.wobbleX=v.x+10*v.scalar,v.wobbleY=v.y+10*v.scalar,v.tiltSin=0,v.tiltCos=0,v.random=1):(v.wobble+=v.wobbleSpeed,v.wobbleX=v.x+10*v.scalar*Math.cos(v.wobble),v.wobbleY=v.y+10*v.scalar*Math.sin(v.wobble),v.tiltAngle+=.1,v.tiltSin=Math.sin(v.tiltAngle),v.tiltCos=Math.cos(v.tiltAngle),v.random=Math.random()+2);var W=v.tick++/v.totalTicks,M=v.x+v.random*v.tiltCos,$=v.y+v.random*v.tiltSin,J=v.wobbleX+v.random*v.tiltCos,j=v.wobbleY+v.random*v.tiltSin;if(Q.fillStyle="rgba("+v.color.r+", "+v.color.g+", "+v.color.b+", "+(1-W)+")",Q.beginPath(),i&&v.shape.type==="path"&&typeof v.shape.path=="string"&&Array.isArray(v.shape.matrix))Q.fill(k(v.shape.path,v.shape.matrix,v.x,v.y,Math.abs(J-M)*.1,Math.abs(j-$)*.1,Math.PI/10*v.wobble));else if(v.shape.type==="bitmap"){var S=Math.PI/10*v.wobble,G=Math.abs(J-M)*.1,ue=Math.abs(j-$)*.1,xe=v.shape.bitmap.width*v.scalar,Ae=v.shape.bitmap.height*v.scalar,X=new DOMMatrix([Math.cos(S)*G,Math.sin(S)*G,-Math.sin(S)*ue,Math.cos(S)*ue,v.x,v.y]);X.multiplySelf(new DOMMatrix(v.shape.matrix));var q=Q.createPattern(f.transform(v.shape.bitmap),"no-repeat");q.setTransform(X),Q.globalAlpha=1-W,Q.fillStyle=q,Q.fillRect(v.x-xe/2,v.y-Ae/2,xe,Ae),Q.globalAlpha=1}else if(v.shape==="circle")Q.ellipse?Q.ellipse(v.x,v.y,Math.abs(J-M)*v.ovalScalar,Math.abs(j-$)*v.ovalScalar,Math.PI/10*v.wobble,0,2*Math.PI):ne(Q,v.x,v.y,Math.abs(J-M)*v.ovalScalar,Math.abs(j-$)*v.ovalScalar,Math.PI/10*v.wobble,0,2*Math.PI);else if(v.shape==="star")for(var z=Math.PI/2*3,U=4*v.scalar,re=8*v.scalar,de=v.x,L=v.y,Y=5,ae=Math.PI/Y;Y--;)de=v.x+Math.cos(z)*re,L=v.y+Math.sin(z)*re,Q.lineTo(de,L),z+=ae,de=v.x+Math.cos(z)*U,L=v.y+Math.sin(z)*U,Q.lineTo(de,L),z+=ae;else Q.moveTo(Math.floor(v.x),Math.floor(v.y)),Q.lineTo(Math.floor(v.wobbleX),Math.floor($)),Q.lineTo(Math.floor(J),Math.floor(j)),Q.lineTo(Math.floor(M),Math.floor(v.wobbleY));return Q.closePath(),Q.fill(),v.tick<v.totalTicks}function we(Q,v,W,M,$){var J=v.slice(),j=Q.getContext("2d"),S,G,ue=u(function(xe){function Ae(){S=G=null,j.clearRect(0,0,M.width,M.height),f.clear(),$(),xe()}function X(){A&&!(M.width===r.width&&M.height===r.height)&&(M.width=Q.width=r.width,M.height=Q.height=r.height),!M.width&&!M.height&&(W(Q),M.width=Q.width,M.height=Q.height),j.clearRect(0,0,M.width,M.height),J=J.filter(function(q){return Be(j,q)}),J.length?S=h.frame(X):Ae()}S=h.frame(X),G=Ae});return{addFettis:function(xe){return J=J.concat(xe),ue},canvas:Q,promise:ue,reset:function(){S&&h.cancel(S),G&&G()}}}function R(Q,v){var W=!Q,M=!!C(v||{},"resize"),$=!1,J=C(v,"disableForReducedMotion",Boolean),j=o&&!!C(v||{},"useWorker"),S=j?p():null,G=W?H:te,ue=Q&&S?!!Q.__confetti_initialized:!1,xe=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Ae;function X(z,U,re){for(var de=C(z,"particleCount",w),L=C(z,"angle",Number),Y=C(z,"spread",Number),ae=C(z,"startVelocity",Number),ye=C(z,"decay",Number),Te=C(z,"gravity",Number),ie=C(z,"drift",Number),ge=C(z,"colors",D),se=C(z,"ticks",Number),he=C(z,"shapes"),Ue=C(z,"scalar"),ke=!!C(z,"flat"),Ye=T(z),Ve=de,Ct=[],wt=Q.width*Ye.x,Nt=Q.height*Ye.y;Ve--;)Ct.push(pe({x:wt,y:Nt,angle:L,spread:Y,startVelocity:ae,color:ge[Ve%ge.length],shape:he[F(0,he.length)],ticks:se,decay:ye,gravity:Te,drift:ie,scalar:Ue,flat:ke}));return Ae?Ae.addFettis(Ct):(Ae=we(Q,Ct,G,U,re),Ae.promise)}function q(z){var U=J||C(z,"disableForReducedMotion",Boolean),re=C(z,"zIndex",Number);if(U&&xe)return u(function(ae){ae()});W&&Ae?Q=Ae.canvas:W&&!Q&&(Q=Z(re),document.body.appendChild(Q)),M&&!ue&&G(Q);var de={width:Q.width,height:Q.height};S&&!ue&&S.init(Q),ue=!0,S&&(Q.__confetti_initialized=!0);function L(){if(S){var ae={getBoundingClientRect:function(){if(!W)return Q.getBoundingClientRect()}};G(ae),S.postMessage({resize:{width:ae.width,height:ae.height}});return}de.width=de.height=null}function Y(){Ae=null,M&&($=!1,e.removeEventListener("resize",L)),W&&Q&&(document.body.contains(Q)&&document.body.removeChild(Q),Q=null,ue=!1)}return M&&!$&&($=!0,e.addEventListener("resize",L,!1)),S?S.fire(z,de,Y):X(z,de,Y)}return q.reset=function(){S&&S.reset(),Ae&&Ae.reset()},q}var K;function N(){return K||(K=R(null,{useWorker:!0,resize:!0})),K}function k(Q,v,W,M,$,J,j){var S=new Path2D(Q),G=new Path2D;G.addPath(S,new DOMMatrix(v));var ue=new Path2D;return ue.addPath(G,new DOMMatrix([Math.cos(j)*$,Math.sin(j)*$,-Math.sin(j)*J,Math.cos(j)*J,W,M])),ue}function E(Q){if(!i)throw new Error("path confetti are not supported in this browser");var v,W;typeof Q=="string"?v=Q:(v=Q.path,W=Q.matrix);var M=new Path2D(v),$=document.createElement("canvas"),J=$.getContext("2d");if(!W){for(var j=1e3,S=j,G=j,ue=0,xe=0,Ae,X,q=0;q<j;q+=2)for(var z=0;z<j;z+=2)J.isPointInPath(M,q,z,"nonzero")&&(S=Math.min(S,q),G=Math.min(G,z),ue=Math.max(ue,q),xe=Math.max(xe,z));Ae=ue-S,X=xe-G;var U=10,re=Math.min(U/Ae,U/X);W=[re,0,0,re,-Math.round(Ae/2+S)*re,-Math.round(X/2+G)*re]}return{type:"path",path:v,matrix:W}}function I(Q){var v,W=1,M="#000000",$='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Q=="string"?v=Q:(v=Q.text,W="scalar"in Q?Q.scalar:W,$="fontFamily"in Q?Q.fontFamily:$,M="color"in Q?Q.color:M);var J=10*W,j=""+J+"px "+$,S=new OffscreenCanvas(J,J),G=S.getContext("2d");G.font=j;var ue=G.measureText(v),xe=Math.ceil(ue.actualBoundingBoxRight+ue.actualBoundingBoxLeft),Ae=Math.ceil(ue.actualBoundingBoxAscent+ue.actualBoundingBoxDescent),X=2,q=ue.actualBoundingBoxLeft+X,z=ue.actualBoundingBoxAscent+X;xe+=X+X,Ae+=X+X,S=new OffscreenCanvas(xe,Ae),G=S.getContext("2d"),G.font=j,G.fillStyle=M,G.fillText(v,q,z);var U=1/W;return{type:"bitmap",bitmap:S.transferToImageBitmap(),matrix:[U,0,0,U,-xe*U/2,-Ae*U/2]}}n.exports=function(){return N().apply(this,arguments)},n.exports.reset=function(){N().reset()},n.exports.create=R,n.exports.shapeFromPath=E,n.exports.shapeFromText=I})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),vy,!1);const WU=vy.exports;vy.exports.create;const GU={default:{items:[{particleCount:80,spread:120,origin:{y:.625,x:.5}},{timeout:400,particleCount:80,spread:120,origin:{y:.625,x:.625}},{timeout:800,particleCount:80,spread:120,origin:{y:.625,x:.375}}]},randomDirection:{items:[{angle:Ey(55,125),spread:Ey(50,70),particleCount:Ey(50,100),origin:{y:.6}}]},pride:{items:[{timeout:20,particleCount:2,spread:32,origin:{x:0},colors:["#ff0000"]},{timeout:20,particleCount:2,spread:32,origin:{x:1},colors:["#ff0000"]}]}};function Ey(t,e){return Math.random()*(e-t)+t}const Pne=s.defineComponent({__name:"canvas-confetti",props:{preset:{type:String,default:"default"},items:{default:()=>[{}]},colors:{type:Array,default:()=>[]},loop:{type:Boolean,default:!1}},setup(t){const e=t,n=s.ref(null),A=s.computed(()=>({...GU[e.preset],items:GU[e.preset].items.map((i,a)=>({...i,...e.items[a],...e.colors.length?{colors:e.colors}:{}}))}));async function r(i){return new Promise(a=>{requestAnimationFrame(()=>WU(JSON.parse(JSON.stringify(i)))),setTimeout(()=>a(),0)})}async function o(){await Promise.all(A.value.items.map(i=>new Promise(a=>setTimeout(()=>{a(r(i))},i.timeout||0)))),e.loop&&o()}return s.onMounted(()=>{typeof window<"u"&&n.value&&(n.value,n.value.confetti=n.value?.confetti||WU.create(n.value,{resize:!0}),o())}),(i,a)=>(s.openBlock(),s.createElementBlock("canvas",{class:"canvas-confetti",ref_key:"canvas",ref:n},null,512))}});Ze.Accordion=WT,Ze.AccordionItem=RT,Ze.AssetUploader=c8,Ze.AutoSuggest=Q5,Ze.BaseButton=YT,Ze.BaseCamera=J5,Ze.BaseCarousel=ek,Ze.BaseForm=Ene,Ze.BaseHeadline=_T,Ze.BaseImage=UT,Ze.BaseInput=ZT,Ze.BaseParagraph=DT,Ze.CanvasConfetti=Pne,Ze.CheckGroup=VH,Ze.ColorPalette=u5,Ze.DomRenderer=Vte,Ze.FileUpload=e8,Ze.InputCheckbox=sD,Ze.InputColor=a5,Ze.InputDatepicker=OH,Ze.InputDatetime=uD,Ze.InputDropdown=v5,Ze.InputFile=AP,Ze.InputPassword=NH,Ze.InputTextarea=AD,Ze.LinkSharing=bne,Ze.LoadingSpinner=QT,Ze.MediaThumbnails=m8,Ze.ModalDialog=Une,Ze.PopoverDialog=Mg,Ze.PopoverNotifications=mJ,Ze.PopoverTooltip=uJ,Ze.ProgressSteps=k8,Ze.QrCode=Yte,Ze.RadioButtons=jH,Ze.RadioGroup=gu,Ze.RteEditor=r5,Ze.SelectMedia=iP,Ze.SortableList=One,Ze.SvgIcon=ST,Ze.TouchWrapper=Hne,Ze.UploadGroup=ZE,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"})}));
184
+ `+v,l(`data:${we(E)};charset=utf-8,${encodeURIComponent(v)}`,`${I}.svg`)}else l(Q.toDataURL(we(E)),`${I}.${E}`)}}const K=R})(),o.default})()))})(Ah)),Ah.exports}var Yte=Gte();const zU=_5(Yte),jte={class:"qr-code"},qte=["innerHTML"],Jte=s.defineComponent({__name:"qr-code",props:{data:null,image:null,download:{type:Boolean,default:!1},filename:{type:String,default:"qr-code"}},emits:["update:dataUrl"],setup(t,{expose:e,emit:n}){const A=t,r=s.ref(),o=s.computed(()=>({width:300,height:300,type:"canvas",data:A.data,...A.image?{image:A.image}:{},margin:10,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,margin:20,crossOrigin:"anonymous"},dotsOptions:{type:"rounded"},backgroundOptions:{color:"#ffffff"},cornersSquareOptions:{color:"#333333",type:"extra-rounded"},cornersDotOptions:{color:"#333333",type:"dot"}}));function i(l=null,u=null){typeof window<"u"&&(r.value&&(r.value.innerHTML=""),new zU(l||o.value).append(r.value))}function a(){new zU({...o.value,width:1200,height:1200}).download({name:A.filename,extension:"png"})}return s.watch(()=>o.value,i,{deep:!0,immediate:!0}),s.onMounted(()=>{typeof window<"u"&&i()}),e({download:a}),(l,u)=>(s.openBlock(),s.createElementBlock("div",jte,[A.download?(s.openBlock(),s.createElementBlock("button",{key:0,class:"btn btn-outline-contrast mb-3",onClick:a,innerHTML:l.$t("qrlink.download")},null,8,qte)):(s.openBlock(),s.createElementBlock("div",{key:1,ref_key:"canvas",ref:r},null,512))]))}}),Xte={class:"link-sharing"},Zte={key:0,class:"link-sharing__links container"},ene={class:"row"},tne={key:0,class:"col-12 col-md-6"},nne=["href"],Ane={class:"caption"},rne={key:1,class:"col-12 col-md-6"},one=["href"],ine={class:"caption"},sne={key:2,class:"col-12 col-md-6"},ane={class:"caption"},lne={key:3,class:"col-12 col-md-6"},cne=["href"],une={class:"caption"},dne={key:4,class:"col-12 col-md-6"},fne=["href"],hne={class:"caption"},pne={key:5,class:"col-12 col-md-6"},mne={class:"caption"},gne={key:6,class:"col-12 col-md-6"},Bne=["href"],yne={class:"caption"},wne={key:1,class:"link-sharing__instructions pt-5"},Cne={class:"row"},bne={class:"col-12 text-center py-0"},vne={class:"mb-5"},Ene=t=>t.replace(/<(?:.|\n)*?>/gm,""),kne=s.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,n=s.ref(!1),A=s.computed(()=>encodeURIComponent(e.url));s.computed(()=>encodeURIComponent(e.media));const r=s.computed(()=>Ene(e.text)),o=s.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function i(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,l)=>{const u=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",Xte,[n.value?(s.openBlock(),s.createElementBlock("div",wne,[s.createElementVNode("div",Cne,[s.createElementVNode("div",bne,[s.createElementVNode("div",vne,[s.createElementVNode("p",null,s.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),s.createElementVNode("p",null,[s.createElementVNode("strong",null,s.toDisplayString(Array.isArray(t.hashtags)?t.hashtags.join(", "):t.hashtags),1)]),s.createElementVNode("button",{type:"button",class:"btn btn-text",onClick:l[1]||(l[1]=s.withModifiers(f=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"arrow-left"}),s.createTextVNode(" "+s.toDisplayString(a.$t("common.back")),1)])])])])])):(s.openBlock(),s.createElementBlock("div",Zte,[s.createElementVNode("div",ene,[t.services.facebook?(s.openBlock(),s.createElementBlock("div",tne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"facebook"}),s.createElementVNode("span",Ane,s.toDisplayString(a.$t("sharing.facebook")),1)],8,nne)])):s.createCommentVNode("",!0),t.services.bluesky?(s.openBlock(),s.createElementBlock("div",rne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"bluesky-logo"}),s.createElementVNode("span",ine,s.toDisplayString(a.$t("sharing.bluesky")),1)],8,one)])):s.createCommentVNode("",!0),t.services.instagram?(s.openBlock(),s.createElementBlock("div",sne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:l[0]||(l[0]=s.withModifiers(f=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"instagram"}),s.createElementVNode("span",ane,s.toDisplayString(a.$t("sharing.instagram")),1)])])):s.createCommentVNode("",!0),t.services.linkedin?(s.openBlock(),s.createElementBlock("div",lne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${A.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"linkedin"}),s.createElementVNode("span",une,s.toDisplayString(a.$t("sharing.linkedin")),1)],8,cne)])):s.createCommentVNode("",!0),t.services.whatsapp&&o.value?(s.openBlock(),s.createElementBlock("div",dne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"whatsapp"}),s.createElementVNode("span",hne,s.toDisplayString(a.$t("sharing.whatsapp")),1)],8,fne)])):s.createCommentVNode("",!0),t.services.clipboard?(s.openBlock(),s.createElementBlock("div",pne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:s.withModifiers(i,["prevent","stop"])},[s.createVNode(u,{symbol:"copy"}),s.createElementVNode("span",mne,s.toDisplayString(a.$t("sharing.clipboard")),1)])])):s.createCommentVNode("",!0),t.services.mailto?(s.openBlock(),s.createElementBlock("div",gne,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"mail"}),s.createElementVNode("span",yne,s.toDisplayString(a.$t("sharing.mailto")),1)],8,Bne)])):s.createCommentVNode("",!0)])]))])}}}),Sne={class:"base-form"},Fne=s.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function n(r){console.log("reset",r)}function A(r){console.log("submit",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",Sne,[s.createElementVNode("form",{ref:"form",onInput:e,onReset:n,onSubmit:s.withModifiers(A,["prevent"])},[s.renderSlot(r.$slots,"default")],544)]))}}),Qne={class:"modal-dialog__content d-flex flex-column"},xne={class:"modal-dialog__header d-flex p-3 border-bottom"},Une={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},Ine={class:"modal-dialog__body"},_ne={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},Tne=s.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:n}){const A=t,r=n,o=s.ref();function i(){document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),A.modal?o.value?.showModal():o.value?.show(),r("update:modelValue",!0)}function a(){const p=o.value&&new KeyframeEffect(o.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),g=new Animation(p,document.timeline);g.play(),g.addEventListener("finish",()=>{o.value?.close(),l()}),r("update:modelValue",!1)}function l(){const p=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(p,10),behavior:"instant"}),r("update:modelValue",!1)}function u(p){i(),r("confirm",p)}function f(){a(),r("cancel")}function h(p){const g=p.target;g&&g.nodeName==="DIALOG"&&a()}return s.watch(()=>A.modelValue,(p,g)=>{p&&p!==g?i():g&&a()},{immediate:!0}),s.onMounted(()=>{o.value?.addEventListener("cancel",p=>{p.preventDefault(),a()}),A.dismiss&&document.addEventListener("click",h),A.modelValue&&i()}),s.onBeforeUnmount(()=>{A.dismiss&&document.removeEventListener("click",h)}),e({show:i,close:a,confirm:u,cancel:f}),(p,g)=>(s.openBlock(),s.createElementBlock("dialog",{ref_key:"dialog",ref:o,class:s.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:l},[s.createElementVNode("div",Qne,[s.createElementVNode("div",xne,[t.title?(s.openBlock(),s.createElementBlock("h5",Une,s.toDisplayString(t.title),1)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),s.createElementVNode("div",Ine,[s.renderSlot(p.$slots,"default")]),t.footer?(s.openBlock(),s.createElementBlock("div",_ne,[s.renderSlot(p.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},s.toDisplayString(p.$t("common.close")),1)])):s.createCommentVNode("",!0)])],34))}}),Dne=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],Mne=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],One={key:0,class:"sortable-list__drag-handle"},Lne={type:"button",class:"btn"},Nne={key:0,class:"sortable-list__item"},Hne=s.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue","update:isDragging","update:dragIndex","update:dragOverIndex"],setup(t,{emit:e}){const n=t,A=s.ref(!1),r=s.ref(null),o=s.ref(null),i=e,a=s.computed({get(){return n.modelValue},set(F){i("update:modelValue",F)}}),l=s.computed(()=>document.querySelector(".is-drag-item")?.outerHTML),u=s.useSlots(),f=s.computed(()=>u["list-append"]);function h(F,_){F.dataTransfer&&(F.dataTransfer.dropEffect="move",F.dataTransfer.effectAllowed="move",F.dataTransfer.setData("index",_.toLocaleString()),A.value=!0,r.value=_)}function p(F,_){A.value=!1,r.value=null,o.value=null}function g(F,_){}function B(F,_){o.value=r.value!==_?_:null}function y(F,_){o.value=r.value!==_?_:null}function C(F,_){}function w(F,_){if(F.dataTransfer){F.preventDefault();const D=Number(F.dataTransfer.getData("index")),P=_,T=[...a.value];(P||P===0)&&(D||D===0)&&T.splice(P,0,T.splice(D,1)[0]),a.value=T}}return s.watch(()=>A.value,F=>{i("update:isDragging",F)},{immediate:!0}),s.watch(()=>r.value,F=>{i("update:dragIndex",F)},{immediate:!0}),s.watch(()=>o.value,F=>{i("update:dragOverIndex",F)},{immediate:!0}),(F,_)=>{const D=s.resolveComponent("svg-icon");return s.openBlock(),s.createBlock(s.TransitionGroup,{name:"list",tag:"ul",class:s.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:_[0]||(_[0]=s.withModifiers(()=>{},["prevent"])),onDragenter:_[1]||(_[1]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(P,T)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:T},[t.showPreview&&A.value&&o.value===T?(s.openBlock(),s.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:H=>B(H,T),onDragover:H=>y(H,T),onDragleave:H=>void 0,onDragend:H=>p(),onDrop:H=>w(H,T),innerHTML:l.value},null,40,Dne)):s.createCommentVNode("",!0),s.createElementVNode("li",{class:s.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":A.value&&r.value===T,"is-drop-target":A.value&&o.value===T&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:H=>h(H,T),onDrag:H=>void 0,onDragenter:H=>B(H,T),onDragover:H=>y(H,T),onDragleave:H=>void 0,onDragend:H=>p(),onDrop:H=>w(H,T)},[t.showDragHandle?(s.openBlock(),s.createElementBlock("div",One,[s.createElementVNode("button",Lne,[s.createVNode(D,{symbol:"drag"})])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[s.renderSlot(F.$slots,"list-item",{item:P,index:T},()=>[s.createTextVNode(s.toDisplayString(P),1)])],2)],42,Mne)],64))),128)),f.value?(s.openBlock(),s.createElementBlock("li",Nne,[s.renderSlot(F.$slots,"list-append")])):s.createCommentVNode("",!0)]),_:3},8,["class"])}}}),Pne={class:"touch-wrapper__controls"},Rne={class:"btn-group",role:"group"},Vne=s.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.getCurrentInstance(),A=n&&n.appContext.config.globalProperties.$config,r=t,o=e,i=s.ref();function a(f){const h=r.modelValue+f;o("update:modelValue",f===0?1:h>=1?h:1)}function l(f){if(f.ctrlKey){f.preventDefault();const h=0-f.deltaY*.01;a(h)}}function u(f){f.preventDefault();const{scale:h}=f,p=h>1?h*.01:0-h;a(p)}return s.onMounted(()=>{i.value&&(i.value.addEventListener("wheel",l,!1),i.value.addEventListener("gesturestart",u,!1),i.value.addEventListener("gesturechange",u,!1),i.value.addEventListener("gestureend",u,!1))}),(f,h)=>{const p=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"touchElement",ref:i,class:"touch-wrapper"},[s.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[s.createElementVNode("div",Pne,[s.createElementVNode("div",Rne,[s.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=g=>a(-1))},[s.createVNode(p,{symbol:"minus","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=g=>a(0))},[s.createVNode(p,{symbol:"maximize","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=g=>a(1))},[s.createVNode(p,{symbol:"plus","base-path":s.unref(A).iconSprite},null,8,["base-path"])])])])]),s.renderSlot(f.$slots,"default")],512)}}});var vy={};(function t(e,n,A,r){var o=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),i=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=(function(){if(!e.OffscreenCanvas)return!1;try{var Q=new OffscreenCanvas(1,1),v=Q.getContext("2d");v.fillRect(0,0,1,1);var W=Q.transferToImageBitmap();v.createPattern(W,"no-repeat")}catch{return!1}return!0})();function l(){}function u(Q){var v=n.exports.Promise,W=v!==void 0?v:e.Promise;return typeof W=="function"?new W(Q):(Q(l,l),null)}var f=(function(Q,v){return{transform:function(W){if(Q)return W;if(v.has(W))return v.get(W);var M=new OffscreenCanvas(W.width,W.height),$=M.getContext("2d");return $.drawImage(W,0,0),v.set(W,M),M},clear:function(){v.clear()}}})(a,new Map),h=(function(){var Q=Math.floor(16.666666666666668),v,W,M={},$=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(v=function(J){var j=Math.random();return M[j]=requestAnimationFrame(function S(G){$===G||$+Q-1<G?($=G,delete M[j],J()):M[j]=requestAnimationFrame(S)}),j},W=function(J){M[J]&&cancelAnimationFrame(M[J])}):(v=function(J){return setTimeout(J,Q)},W=function(J){return clearTimeout(J)}),{frame:v,cancel:W}})(),p=(function(){var Q,v,W={};function M($){function J(j,S){$.postMessage({options:j||{},callback:S})}$.init=function(S){var G=S.transferControlToOffscreen();$.postMessage({canvas:G},[G])},$.fire=function(S,G,ue){if(v)return J(S,null),v;var xe=Math.random().toString(36).slice(2);return v=u(function(Ae){function X(q){q.data.callback===xe&&(delete W[xe],$.removeEventListener("message",X),v=null,f.clear(),ue(),Ae())}$.addEventListener("message",X),J(S,xe),W[xe]=X.bind(null,{data:{callback:xe}})}),v},$.reset=function(){$.postMessage({reset:!0});for(var S in W)W[S](),delete W[S]}}return function(){if(Q)return Q;if(!A&&o){var $=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
185
+ `);try{Q=new Worker(URL.createObjectURL(new Blob([$])))}catch(J){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",J),null}M(Q)}return Q}})(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function B(Q,v){return v?v(Q):Q}function y(Q){return Q!=null}function C(Q,v,W){return B(Q&&y(Q[v])?Q[v]:g[v],W)}function w(Q){return Q<0?0:Math.floor(Q)}function F(Q,v){return Math.floor(Math.random()*(v-Q))+Q}function _(Q){return parseInt(Q,16)}function D(Q){return Q.map(P)}function P(Q){var v=String(Q).replace(/[^0-9a-f]/gi,"");return v.length<6&&(v=v[0]+v[0]+v[1]+v[1]+v[2]+v[2]),{r:_(v.substring(0,2)),g:_(v.substring(2,4)),b:_(v.substring(4,6))}}function T(Q){var v=C(Q,"origin",Object);return v.x=C(v,"x",Number),v.y=C(v,"y",Number),v}function H(Q){Q.width=document.documentElement.clientWidth,Q.height=document.documentElement.clientHeight}function te(Q){var v=Q.getBoundingClientRect();Q.width=v.width,Q.height=v.height}function Z(Q){var v=document.createElement("canvas");return v.style.position="fixed",v.style.top="0px",v.style.left="0px",v.style.pointerEvents="none",v.style.zIndex=Q,v}function ne(Q,v,W,M,$,J,j,S,G){Q.save(),Q.translate(v,W),Q.rotate(J),Q.scale(M,$),Q.arc(0,0,1,j,S,G),Q.restore()}function pe(Q){var v=Q.angle*(Math.PI/180),W=Q.spread*(Math.PI/180);return{x:Q.x,y:Q.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Q.startVelocity*.5+Math.random()*Q.startVelocity,angle2D:-v+(.5*W-Math.random()*W),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Q.color,shape:Q.shape,tick:0,totalTicks:Q.ticks,decay:Q.decay,drift:Q.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Q.gravity*3,ovalScalar:.6,scalar:Q.scalar,flat:Q.flat}}function Be(Q,v){v.x+=Math.cos(v.angle2D)*v.velocity+v.drift,v.y+=Math.sin(v.angle2D)*v.velocity+v.gravity,v.velocity*=v.decay,v.flat?(v.wobble=0,v.wobbleX=v.x+10*v.scalar,v.wobbleY=v.y+10*v.scalar,v.tiltSin=0,v.tiltCos=0,v.random=1):(v.wobble+=v.wobbleSpeed,v.wobbleX=v.x+10*v.scalar*Math.cos(v.wobble),v.wobbleY=v.y+10*v.scalar*Math.sin(v.wobble),v.tiltAngle+=.1,v.tiltSin=Math.sin(v.tiltAngle),v.tiltCos=Math.cos(v.tiltAngle),v.random=Math.random()+2);var W=v.tick++/v.totalTicks,M=v.x+v.random*v.tiltCos,$=v.y+v.random*v.tiltSin,J=v.wobbleX+v.random*v.tiltCos,j=v.wobbleY+v.random*v.tiltSin;if(Q.fillStyle="rgba("+v.color.r+", "+v.color.g+", "+v.color.b+", "+(1-W)+")",Q.beginPath(),i&&v.shape.type==="path"&&typeof v.shape.path=="string"&&Array.isArray(v.shape.matrix))Q.fill(k(v.shape.path,v.shape.matrix,v.x,v.y,Math.abs(J-M)*.1,Math.abs(j-$)*.1,Math.PI/10*v.wobble));else if(v.shape.type==="bitmap"){var S=Math.PI/10*v.wobble,G=Math.abs(J-M)*.1,ue=Math.abs(j-$)*.1,xe=v.shape.bitmap.width*v.scalar,Ae=v.shape.bitmap.height*v.scalar,X=new DOMMatrix([Math.cos(S)*G,Math.sin(S)*G,-Math.sin(S)*ue,Math.cos(S)*ue,v.x,v.y]);X.multiplySelf(new DOMMatrix(v.shape.matrix));var q=Q.createPattern(f.transform(v.shape.bitmap),"no-repeat");q.setTransform(X),Q.globalAlpha=1-W,Q.fillStyle=q,Q.fillRect(v.x-xe/2,v.y-Ae/2,xe,Ae),Q.globalAlpha=1}else if(v.shape==="circle")Q.ellipse?Q.ellipse(v.x,v.y,Math.abs(J-M)*v.ovalScalar,Math.abs(j-$)*v.ovalScalar,Math.PI/10*v.wobble,0,2*Math.PI):ne(Q,v.x,v.y,Math.abs(J-M)*v.ovalScalar,Math.abs(j-$)*v.ovalScalar,Math.PI/10*v.wobble,0,2*Math.PI);else if(v.shape==="star")for(var z=Math.PI/2*3,U=4*v.scalar,re=8*v.scalar,de=v.x,L=v.y,Y=5,ae=Math.PI/Y;Y--;)de=v.x+Math.cos(z)*re,L=v.y+Math.sin(z)*re,Q.lineTo(de,L),z+=ae,de=v.x+Math.cos(z)*U,L=v.y+Math.sin(z)*U,Q.lineTo(de,L),z+=ae;else Q.moveTo(Math.floor(v.x),Math.floor(v.y)),Q.lineTo(Math.floor(v.wobbleX),Math.floor($)),Q.lineTo(Math.floor(J),Math.floor(j)),Q.lineTo(Math.floor(M),Math.floor(v.wobbleY));return Q.closePath(),Q.fill(),v.tick<v.totalTicks}function we(Q,v,W,M,$){var J=v.slice(),j=Q.getContext("2d"),S,G,ue=u(function(xe){function Ae(){S=G=null,j.clearRect(0,0,M.width,M.height),f.clear(),$(),xe()}function X(){A&&!(M.width===r.width&&M.height===r.height)&&(M.width=Q.width=r.width,M.height=Q.height=r.height),!M.width&&!M.height&&(W(Q),M.width=Q.width,M.height=Q.height),j.clearRect(0,0,M.width,M.height),J=J.filter(function(q){return Be(j,q)}),J.length?S=h.frame(X):Ae()}S=h.frame(X),G=Ae});return{addFettis:function(xe){return J=J.concat(xe),ue},canvas:Q,promise:ue,reset:function(){S&&h.cancel(S),G&&G()}}}function R(Q,v){var W=!Q,M=!!C(v||{},"resize"),$=!1,J=C(v,"disableForReducedMotion",Boolean),j=o&&!!C(v||{},"useWorker"),S=j?p():null,G=W?H:te,ue=Q&&S?!!Q.__confetti_initialized:!1,xe=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Ae;function X(z,U,re){for(var de=C(z,"particleCount",w),L=C(z,"angle",Number),Y=C(z,"spread",Number),ae=C(z,"startVelocity",Number),ye=C(z,"decay",Number),Te=C(z,"gravity",Number),ie=C(z,"drift",Number),ge=C(z,"colors",D),se=C(z,"ticks",Number),he=C(z,"shapes"),Ue=C(z,"scalar"),ke=!!C(z,"flat"),Ye=T(z),Ve=de,Ct=[],wt=Q.width*Ye.x,Nt=Q.height*Ye.y;Ve--;)Ct.push(pe({x:wt,y:Nt,angle:L,spread:Y,startVelocity:ae,color:ge[Ve%ge.length],shape:he[F(0,he.length)],ticks:se,decay:ye,gravity:Te,drift:ie,scalar:Ue,flat:ke}));return Ae?Ae.addFettis(Ct):(Ae=we(Q,Ct,G,U,re),Ae.promise)}function q(z){var U=J||C(z,"disableForReducedMotion",Boolean),re=C(z,"zIndex",Number);if(U&&xe)return u(function(ae){ae()});W&&Ae?Q=Ae.canvas:W&&!Q&&(Q=Z(re),document.body.appendChild(Q)),M&&!ue&&G(Q);var de={width:Q.width,height:Q.height};S&&!ue&&S.init(Q),ue=!0,S&&(Q.__confetti_initialized=!0);function L(){if(S){var ae={getBoundingClientRect:function(){if(!W)return Q.getBoundingClientRect()}};G(ae),S.postMessage({resize:{width:ae.width,height:ae.height}});return}de.width=de.height=null}function Y(){Ae=null,M&&($=!1,e.removeEventListener("resize",L)),W&&Q&&(document.body.contains(Q)&&document.body.removeChild(Q),Q=null,ue=!1)}return M&&!$&&($=!0,e.addEventListener("resize",L,!1)),S?S.fire(z,de,Y):X(z,de,Y)}return q.reset=function(){S&&S.reset(),Ae&&Ae.reset()},q}var K;function N(){return K||(K=R(null,{useWorker:!0,resize:!0})),K}function k(Q,v,W,M,$,J,j){var S=new Path2D(Q),G=new Path2D;G.addPath(S,new DOMMatrix(v));var ue=new Path2D;return ue.addPath(G,new DOMMatrix([Math.cos(j)*$,Math.sin(j)*$,-Math.sin(j)*J,Math.cos(j)*J,W,M])),ue}function E(Q){if(!i)throw new Error("path confetti are not supported in this browser");var v,W;typeof Q=="string"?v=Q:(v=Q.path,W=Q.matrix);var M=new Path2D(v),$=document.createElement("canvas"),J=$.getContext("2d");if(!W){for(var j=1e3,S=j,G=j,ue=0,xe=0,Ae,X,q=0;q<j;q+=2)for(var z=0;z<j;z+=2)J.isPointInPath(M,q,z,"nonzero")&&(S=Math.min(S,q),G=Math.min(G,z),ue=Math.max(ue,q),xe=Math.max(xe,z));Ae=ue-S,X=xe-G;var U=10,re=Math.min(U/Ae,U/X);W=[re,0,0,re,-Math.round(Ae/2+S)*re,-Math.round(X/2+G)*re]}return{type:"path",path:v,matrix:W}}function I(Q){var v,W=1,M="#000000",$='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Q=="string"?v=Q:(v=Q.text,W="scalar"in Q?Q.scalar:W,$="fontFamily"in Q?Q.fontFamily:$,M="color"in Q?Q.color:M);var J=10*W,j=""+J+"px "+$,S=new OffscreenCanvas(J,J),G=S.getContext("2d");G.font=j;var ue=G.measureText(v),xe=Math.ceil(ue.actualBoundingBoxRight+ue.actualBoundingBoxLeft),Ae=Math.ceil(ue.actualBoundingBoxAscent+ue.actualBoundingBoxDescent),X=2,q=ue.actualBoundingBoxLeft+X,z=ue.actualBoundingBoxAscent+X;xe+=X+X,Ae+=X+X,S=new OffscreenCanvas(xe,Ae),G=S.getContext("2d"),G.font=j,G.fillStyle=M,G.fillText(v,q,z);var U=1/W;return{type:"bitmap",bitmap:S.transferToImageBitmap(),matrix:[U,0,0,U,-xe*U/2,-Ae*U/2]}}n.exports=function(){return N().apply(this,arguments)},n.exports.reset=function(){N().reset()},n.exports.create=R,n.exports.shapeFromPath=E,n.exports.shapeFromText=I})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),vy,!1);const WU=vy.exports;vy.exports.create;const GU={default:{items:[{particleCount:80,spread:120,origin:{y:.625,x:.5}},{timeout:400,particleCount:80,spread:120,origin:{y:.625,x:.625}},{timeout:800,particleCount:80,spread:120,origin:{y:.625,x:.375}}]},randomDirection:{items:[{angle:Ey(55,125),spread:Ey(50,70),particleCount:Ey(50,100),origin:{y:.6}}]},pride:{items:[{timeout:20,particleCount:2,spread:32,origin:{x:0},colors:["#ff0000"]},{timeout:20,particleCount:2,spread:32,origin:{x:1},colors:["#ff0000"]}]}};function Ey(t,e){return Math.random()*(e-t)+t}const $ne=s.defineComponent({__name:"canvas-confetti",props:{preset:{type:String,default:"default"},items:{default:()=>[{}]},colors:{type:Array,default:()=>[]},loop:{type:Boolean,default:!1}},setup(t){const e=t,n=s.ref(null),A=s.computed(()=>({...GU[e.preset],items:GU[e.preset].items.map((i,a)=>({...i,...e.items[a],...e.colors.length?{colors:e.colors}:{}}))}));async function r(i){return new Promise(a=>{requestAnimationFrame(()=>WU(JSON.parse(JSON.stringify(i)))),setTimeout(()=>a(),0)})}async function o(){await Promise.all(A.value.items.map(i=>new Promise(a=>setTimeout(()=>{a(r(i))},i.timeout||0)))),e.loop&&o()}return s.onMounted(()=>{typeof window<"u"&&n.value&&(n.value,n.value.confetti=n.value?.confetti||WU.create(n.value,{resize:!0}),o())}),(i,a)=>(s.openBlock(),s.createElementBlock("canvas",{class:"canvas-confetti",ref_key:"canvas",ref:n},null,512))}});Ze.Accordion=WT,Ze.AccordionItem=RT,Ze.AssetUploader=f8,Ze.AutoSuggest=I5,Ze.BaseButton=YT,Ze.BaseCamera=e6,Ze.BaseCarousel=ek,Ze.BaseForm=Fne,Ze.BaseHeadline=_T,Ze.BaseImage=UT,Ze.BaseInput=ZT,Ze.BaseParagraph=DT,Ze.CanvasConfetti=$ne,Ze.CheckGroup=VH,Ze.ColorPalette=h5,Ze.CustomHtml=iP,Ze.DomRenderer=zte,Ze.FileUpload=A8,Ze.InputCheckbox=sD,Ze.InputColor=u5,Ze.InputDatepicker=OH,Ze.InputDatetime=uD,Ze.InputDropdown=S5,Ze.InputFile=AP,Ze.InputPassword=NH,Ze.InputTextarea=AD,Ze.LinkSharing=kne,Ze.LoadingSpinner=QT,Ze.MediaThumbnails=y8,Ze.ModalDialog=Tne,Ze.PopoverDialog=Mg,Ze.PopoverNotifications=yJ,Ze.PopoverTooltip=hJ,Ze.ProgressSteps=Q8,Ze.QrCode=Jte,Ze.RadioButtons=jH,Ze.RadioGroup=gu,Ze.RteEditor=s5,Ze.SelectMedia=lP,Ze.SortableList=Hne,Ze.SvgIcon=ST,Ze.TouchWrapper=Vne,Ze.UploadGroup=ZE,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"})}));