ablok-components 0.1.150 → 0.1.152

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.
@@ -1,17 +1,17 @@
1
- (function(Qe,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(Qe=typeof globalThis<"u"?globalThis:Qe||self,h(Qe.AblokComponents={},Qe.Vue,Qe.core))})(this,function(Qe,h,uh){"use strict";const dE={class:"icon",preserveAspectRatio:"xMaxYMin"},hE=["xlink:href"],pE=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",dE,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,hE)]))],2))}}),jG="",gE={class:"loading-spinner d-block"},mE=h.createElementVNode("span",{class:"loading-spinner__animation"},[h.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[h.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("span",gE,[mE,h.renderSlot(e.$slots,"default")]))}}),e3="",wE=["src","alt"],CE=h.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const e=h.ref(!1);return(A,n)=>{const r=h.resolveComponent("loading-spinner");return t.src?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!e.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!e.value,"opacity-1":e.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>e.value=!0)},null,42,wE)],2)):h.createCommentVNode("",!0)}}}),A3="",yE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,A=h.computed(()=>e.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(A.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),EE=["innerHTML"],QE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${e.size||""} ${e.className||""}`]),innerHTML:e.text},null,10,EE))}});function dA(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const FE={class:"accordion-item"},bE=["id"],UE=["data-bs-target","aria-controls"],vE={class:"flex-grow-1"},IE=["id","aria-labelledby","data-bs-parent"],SE={class:"accordion-body"},TE=["innerHTML"],_E=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>dA()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(){n("update:modelValue",!A.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",FE,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[h.renderSlot(i.$slots,"toggle",{},()=>[h.createElementVNode("span",vE,h.toDisplayString(t.title),1)])],10,UE)],8,bE),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",SE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,TE)])])],10,IE)]))}}),t3="",xE=(t,e)=>{const A=t.__vccOpts||t;for(const[n,r]of e)A[n]=r;return A},OE={},LE={class:"accordion"};function HE(t,e){return h.openBlock(),h.createElementBlock("div",LE,[h.renderSlot(t.$slots,"default")])}const kE=xE(OE,[["render",HE]]),NE=["type","disabled"],DE=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,A=h.computed(()=>e.caption&&!e.circle);return(n,r)=>{const i=h.resolveComponent("loading-spinner"),s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?h.renderSlot(n.$slots,"pending-icon",{key:0},()=>[h.createVNode(i)]):h.createCommentVNode("",!0),h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),A.value?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,NE)}}}),n3="",ME={class:"input-group input__input-group"},RE=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],KE=["for","innerHTML"],VE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",ME,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,RE),[[h.vModelDynamic,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,KE)):h.createCommentVNode("",!0)])],2))}}),r3="",PE={class:"input input--textarea"},GE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],WE=["for","innerHTML"],$E=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",PE,[h.renderSlot(i.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,GE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append"),h.renderSlot(i.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,WE)])]))}}),JE=["value","id","name","required","disabled","true-value","false-value"],XE=["for","innerHTML"],YE=h.createElementVNode("span",{class:"input__error"},"error",-1),zE=h.defineComponent({__name:"input-checkbox",props:{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},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue||A.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=h.withModifiers(a=>i.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,JE),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,XE),YE]))}}),i3=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
2
- `,qE={class:"input-group input__input-group"},ZE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],jE=["for","innerHTML"],eQ=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){const i=A.modelValue&&new Date(`${A.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",qE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,ZE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,jE)):h.createCommentVNode("",!0)])],2))}}),AQ={class:"check-group"},tQ=["id","name","value","disabled","read-only","required"],nQ=["for","innerHTML"],rQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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 A=t,n=e;h.ref([]);const r=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>A.options&&A.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:A.modelValue&&A.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",AQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(c,u)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"form-check"},[h.withDirectives(h.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:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,tQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,nQ)]))),128))]))}}),s3="",iQ={class:"input radio-group"},sQ=["id","name","value","checked","disabled","read-only","required","onChange"],oQ=["for","innerHTML"],aQ=["for"],fh=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref(A.options.map(i=>i.value===A.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",iQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,sQ),h.renderSlot(i.$slots,"option-label",{option:a,index:c},()=>[h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,oQ)])]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,aQ)):h.createCommentVNode("",!0)])]))}}),o3="",lQ=["id","name","multiple","accept","disabled"],cQ={class:"input__input-group input-group"},uQ=["value","id","name","disabled"],fQ=["for","disabled"],dQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),hQ=["for"],pQ=["innerHTML"],gQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=h.ref(),s=h.reactive([]),a=h.computed(()=>s&&s.map(c=>c.name));return h.computed(()=>s.map(c=>URL.createObjectURL(c))),h.watch(()=>A.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),h.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,lQ),h.createElementVNode("div",cQ,[h.renderSlot(c.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,uQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[dQ])],8,fQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,pQ)])],8,hQ)]))}});function MA(t){this.content=t}MA.prototype={constructor:MA,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,A){var n=A&&A!=t?this.remove(A):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(A||t,e):(i[r+1]=e,A&&(i[r]=A)),new MA(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var A=this.content.slice();return A.splice(e,2),new MA(A)},addToStart:function(t,e){return new MA([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var A=this.remove(t).content.slice();return A.push(t,e),new MA(A)},addBefore:function(t,e,A){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,A),new MA(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=MA.from(t),t.size?new MA(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=MA.from(t),t.size?new MA(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=MA.from(t);for(var A=0;A<t.content.length;A+=2)e=e.remove(t.content[A]);return e},toObject:function(){var t={};return this.forEach(function(e,A){t[e]=A}),t},get size(){return this.content.length>>1}},MA.from=function(t){if(t instanceof MA)return t;var e=[];if(t)for(var A in t)e.push(A,t[A]);return new MA(e)};function dh(t,e,A){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:A;let r=t.child(n),i=e.child(n);if(r==i){A+=r.nodeSize;continue}if(!r.sameMarkup(i))return A;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)A++;return A}if(r.content.size||i.content.size){let s=dh(r.content,i.content,A+1);if(s!=null)return s}A+=r.nodeSize}}function hh(t,e,A,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:A,b:n};let s=t.child(--r),a=e.child(--i),c=s.nodeSize;if(s==a){A-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:A,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,A--,n--;return{a:A,b:n}}if(s.content.size||a.content.size){let u=hh(s.content,a.content,A-1,n-1);if(u)return u}A-=c,n-=c}}class Y{constructor(e,A){if(this.content=e,this.size=A||0,A==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,A,n,r=0,i){for(let s=0,a=0;a<A;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,e-f),Math.min(c.content.size,A-f),n,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,A,n,r){let i="",s=!0;return this.nodesBetween(e,A,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,A-c):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)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let A=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(A.isText&&A.sameMarkup(n)&&(r[r.length-1]=A.withText(A.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Y(r,this.size+e.size)}cut(e,A=this.size){if(e==0&&A==this.size)return this;let n=[],r=0;if(A>e)for(let i=0,s=0;s<A;i++){let a=this.content[i],c=s+a.nodeSize;c>e&&((s<e||c>A)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,A-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,A-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(e,A){return e==A?Y.empty:e==0&&A==this.content.length?this:new Y(this.content.slice(e,A))}replaceChild(e,A){let n=this.content[e];if(n==A)return this;let r=this.content.slice(),i=this.size+A.nodeSize-n.nodeSize;return r[e]=A,new Y(r,i)}addToStart(e){return new Y([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Y(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let A=0;A<this.content.length;A++)if(!this.content[A].eq(e.content[A]))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 A=this.content[e];if(!A)throw new RangeError("Index "+e+" out of range for "+this);return A}maybeChild(e){return this.content[e]||null}forEach(e){for(let A=0,n=0;A<this.content.length;A++){let r=this.content[A];e(r,n,A),n+=r.nodeSize}}findDiffStart(e,A=0){return dh(this,e,A)}findDiffEnd(e,A=this.size,n=e.size){return hh(this,e,A,n)}findIndex(e,A=-1){if(e==0)return ko(0,e);if(e==this.size)return ko(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e||A>0?ko(n+1,s):ko(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,A){if(!A)return Y.empty;if(!Array.isArray(A))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(A.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Y.empty;let A,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(A||(A=e.slice(0,r)),A[A.length-1]=i.withText(A[A.length-1].text+i.text)):A&&A.push(i)}return new Y(A||e,n)}static from(e){if(!e)return Y.empty;if(e instanceof Y)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Y([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,e){return gc.index=t,gc.offset=e,gc}function No(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let A=Array.isArray(t);if(Array.isArray(e)!=A)return!1;if(A){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!No(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!No(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let Ze=class ah{constructor(e,A){this.type=e,this.attrs=A}addToSet(e){let A,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))A||(A=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(A||(A=e.slice(0,r)),A.push(this),n=!0),A&&A.push(i)}}return A||(A=e.slice()),n||A.push(this),A}removeFromSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return e.slice(0,A).concat(e.slice(A+1));return e}isInSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return!0;return!1}eq(e){return this==e||this.type==e.type&&No(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[A.type];if(!n)throw new RangeError(`There is no mark type ${A.type} in this schema`);return n.create(A.attrs)}static sameSet(e,A){if(e==A)return!0;if(e.length!=A.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(A[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return ah.none;if(e instanceof ah)return[e];let A=e.slice();return A.sort((n,r)=>n.type.rank-r.type.rank),A}};Ze.none=[];class Do extends Error{}class j{constructor(e,A,n){this.content=e,this.openStart=A,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,A){let n=gh(this.content,e+this.openStart,A);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(e,A){return new j(ph(this.content,e+this.openStart,A+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,A){if(!A)return j.empty;let n=A.openStart||0,r=A.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(e,A.content),n,r)}static maxOpen(e,A=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.lastChild)r++;return new j(e,n,r)}}j.empty=new j(Y.empty,0,0);function ph(t,e,A){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(A);if(r==e||i.isText){if(a!=A&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(A))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ph(i.content,e-r-1,A-r-1)))}function gh(t,e,A,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,A)?null:t.cut(0,e).append(A).append(t.cut(e));let a=gh(s.content,e-i-1,A);return a&&t.replaceChild(r,s.copy(a))}function mQ(t,e,A){if(A.openStart>t.depth)throw new Do("Inserted content deeper than insertion position");if(t.depth-A.openStart!=e.depth-A.openEnd)throw new Do("Inconsistent open depths");return mh(t,e,A,0)}function mh(t,e,A,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-A.openStart){let s=mh(t,e,A,n+1);return i.copy(i.content.replaceChild(r,s))}else if(A.content.size)if(!A.openStart&&!A.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(A.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=BQ(A,t);return Gr(i,wh(t,s,a,e,n))}else return Gr(i,Mo(t,e,n))}function Bh(t,e){if(!e.type.compatibleContent(t.type))throw new Do("Cannot join "+e.type.name+" onto "+t.type.name)}function mc(t,e,A){let n=t.node(A);return Bh(n,e.node(A)),n}function Pr(t,e){let A=e.length-1;A>=0&&t.isText&&t.sameMarkup(e[A])?e[A]=t.withText(e[A].text+t.text):e.push(t)}function Qs(t,e,A,n){let r=(e||t).node(A),i=0,s=e?e.index(A):r.childCount;t&&(i=t.index(A),t.depth>A?i++:t.textOffset&&(Pr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Pr(r.child(a),n);e&&e.depth==A&&e.textOffset&&Pr(e.nodeBefore,n)}function Gr(t,e){return t.type.checkContent(e),t.copy(e)}function wh(t,e,A,n,r){let i=t.depth>r&&mc(t,e,r+1),s=n.depth>r&&mc(A,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&e.index(r)==A.index(r)?(Bh(i,s),Pr(Gr(i,wh(t,e,A,n,r+1)),a)):(i&&Pr(Gr(i,Mo(t,e,r+1)),a),Qs(e,A,r,a),s&&Pr(Gr(s,Mo(A,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,e,A){let n=[];if(Qs(null,t,A,n),t.depth>A){let r=mc(t,e,A+1);Pr(Gr(r,Mo(t,e,A+1)),n)}return Qs(e,null,A,n),new Y(n)}function BQ(t,e){let A=e.depth-t.openStart,r=e.node(A).copy(t.content);for(let i=A-1;i>=0;i--)r=e.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+A),end:r.resolveNoCache(r.content.size-t.openEnd-A)}}class Fs{constructor(e,A,n){this.pos=e,this.path=A,this.parentOffset=n,this.depth=A.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,A=this.index(this.depth);if(A==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(A);return n?e.child(A).cut(n):r}get nodeBefore(){let e=this.index(this.depth),A=this.pos-this.path[this.path.length-1];return A?this.parent.child(e).cut(0,A):e==0?null:this.parent.child(e-1)}posAtIndex(e,A){A=this.resolveDepth(A);let n=this.path[A*3],r=A==0?0:this.path[A*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,A=this.index();if(e.content.size==0)return Ze.none;if(this.textOffset)return e.child(A).marks;let n=e.maybeChild(A-1),r=e.maybeChild(A);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let A=this.parent.maybeChild(this.index());if(!A||!A.isInline)return null;let n=A.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let A=this.depth;A>0;A--)if(this.start(A)<=e&&this.end(A)>=e)return A;return 0}blockRange(e=this,A){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!A||A(this.node(n))))return new Ro(this,e,n);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 A=1;A<=this.depth;A++)e+=(e?"/":"")+this.node(A).type.name+"_"+this.index(A-1);return e+":"+this.parentOffset}static resolve(e,A){if(!(A>=0&&A<=e.content.size))throw new RangeError("Position "+A+" out of range");let n=[],r=0,i=A;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(A,n,i)}static resolveCached(e,A){for(let r=0;r<Bc.length;r++){let i=Bc[r];if(i.pos==A&&i.doc==e)return i}let n=Bc[wc]=Fs.resolve(e,A);return wc=(wc+1)%wQ,n}}let Bc=[],wc=0,wQ=12;class Ro{constructor(e,A,n){this.$from=e,this.$to=A,this.depth=n}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 CQ=Object.create(null);let Wr=class lh{constructor(e,A,n,r=Ze.none){this.type=e,this.attrs=A,this.marks=r,this.content=n||Y.empty}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,A,n,r=0){this.content.nodesBetween(e,A,n,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,A,n,r){return this.content.textBetween(e,A,n,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,A,n){return this.type==e&&No(this.attrs,A||e.defaultAttrs||CQ)&&Ze.sameSet(this.marks,n||Ze.none)}copy(e=null){return e==this.content?this:new lh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new lh(this.type,this.attrs,this.content,e)}cut(e,A=this.content.size){return e==0&&A==this.content.size?this:this.copy(this.content.cut(e,A))}slice(e,A=this.content.size,n=!1){if(e==A)return j.empty;let r=this.resolve(e),i=this.resolve(A),s=n?0:r.sharedDepth(A),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(e,A,n){return mQ(this.resolve(e),this.resolve(A),n)}nodeAt(e){for(let A=this;;){let{index:n,offset:r}=A.content.findIndex(e);if(A=A.maybeChild(n),!A)return null;if(r==e||A.isText)return A;e-=r+1}}childAfter(e){let{index:A,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(A),index:A,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:A,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(A),index:A,offset:n};let r=this.content.child(A-1);return{node:r,index:A-1,offset:n-r.nodeSize}}resolve(e){return Fs.resolveCached(this,e)}resolveNoCache(e){return Fs.resolve(this,e)}rangeHasMark(e,A,n){let r=!1;return A>e&&this.nodesBetween(e,A,i=>(n.isInSet(i.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()+")"),Ch(this.marks,e)}contentMatchAt(e){let A=this.type.contentMatch.matchFragment(this.content,0,e);if(!A)throw new Error("Called contentMatchAt on a node with invalid content");return A}canReplace(e,A,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,A);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,A,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,A);return s?s.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);let e=Ze.none;for(let A=0;A<this.marks.length;A++)e=this.marks[A].addToSet(e);if(!Ze.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(A=>A.type.name)}`);this.content.forEach(A=>A.check())}toJSON(){let e={type:this.type.name};for(let A 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(A=>A.toJSON())),e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(A.marks){if(!Array.isArray(A.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=A.marks.map(e.markFromJSON)}if(A.type=="text"){if(typeof A.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(A.text,n)}let r=Y.fromJSON(e,A.content);return e.nodeType(A.type).create(A.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(e,A,n,r){if(super(e,A,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ch(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,A){return this.text.slice(e,A)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ko(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ko(this.type,this.attrs,e,this.marks)}cut(e=0,A=this.text.length){return e==0&&A==this.text.length?this:this.withText(this.text.slice(e,A))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ch(t,e){for(let A=t.length-1;A>=0;A--)e=t[A].type.name+"("+e+")";return e}class $r{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,A){let n=new yQ(e,A);if(n.next==null)return $r.empty;let r=yh(n);n.next&&n.err("Unexpected trailing text");let i=IQ(vQ(r));return SQ(i,n),i}matchType(e){for(let A=0;A<this.next.length;A++)if(this.next[A].type==e)return this.next[A].next;return null}matchFragment(e,A=0,n=e.childCount){let r=this;for(let i=A;r&&i<n;i++)r=r.matchType(e.child(i).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:A}=this.next[e];if(!(A.isText||A.hasRequiredAttrs()))return A}return null}compatible(e){for(let A=0;A<this.next.length;A++)for(let n=0;n<e.next.length;n++)if(this.next[A].type==e.next[n].type)return!0;return!1}fillBefore(e,A=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(e,n);if(c&&(!A||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let g=i(p,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let A=this.computeWrapping(e);return this.wrapCache.push(e,A),A}computeWrapping(e){let A=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in A)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),A[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 A(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&A(n.next[r].next)}return A(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
3
- `)}}$r.empty=new $r(!0);class yQ{constructor(e,A){this.string=e,this.nodeTypes=A,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 yh(t){let e=[];do e.push(EQ(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function EQ(t){let e=[];do e.push(QQ(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function QQ(t){let e=UQ(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=FQ(t,e);else break;return e}function Eh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function FQ(t,e){let A=Eh(t),n=A;return t.eat(",")&&(t.next!="}"?n=Eh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:A,max:n,expr:e}}function bQ(t,e){let A=t.nodeTypes,n=A[e];if(n)return[n];let r=[];for(let i in A){let s=A[i];s.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function UQ(t){if(t.eat("(")){let e=yh(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=bQ(t,t.next).map(A=>(t.inline==null?t.inline=A.isInline:t.inline!=A.isInline&&t.err("Mixing inline and block content"),{type:"name",value:A}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function vQ(t){let e=[[]];return r(i(t,0),A()),e;function A(){return e.push([])-1}function n(s,a,c){let u={term:c,to:a};return e[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=A())}else if(s.type=="star"){let c=A();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=A();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let f=A();r(i(s.expr,c),f),c=f}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let f=A();n(c,f),r(i(s.expr,c),f),c=f}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Qh(t,e){return e-t}function Fh(t,e){let A=[];return n(e),A.sort(Qh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);A.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&A.indexOf(c)==-1&&n(c)}}}function IQ(t){let e=Object.create(null);return A(Fh(t,0));function A(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);Fh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=e[n.join(",")]=new $r(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Qh);i.next.push({type:r[s][0],next:e[a.join(",")]||A(a)})}return i}}function SQ(t,e){for(let A=0,n=[t];A<n.length;A++){let r=n[A],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function bh(t){let e=Object.create(null);for(let A in t){let n=t[A];if(!n.hasDefault)return null;e[A]=n.default}return e}function Uh(t,e){let A=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}A[n]=r}return A}function vh(t){let e=Object.create(null);if(t)for(let A in t)e[A]=new TQ(t[A]);return e}let Ih=class fE{constructor(e,A,n){this.name=e,this.schema=A,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=vh(n.attrs),this.defaultAttrs=bh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$r.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:Uh(this.attrs,e)}create(e=null,A,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(e),Y.from(A),Ze.setFrom(n))}createChecked(e=null,A,n){return A=Y.from(A),this.checkContent(A),new Wr(this,this.computeAttrs(e),A,Ze.setFrom(n))}createAndFill(e=null,A,n){if(e=this.computeAttrs(e),A=Y.from(A),A.size){let s=this.contentMatch.fillBefore(A);if(!s)return null;A=s.append(A)}let r=this.contentMatch.matchFragment(A),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,e,A.append(i),Ze.setFrom(n)):null}validContent(e){let A=this.contentMatch.matchFragment(e);if(!A||!A.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).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)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let A=0;A<e.length;A++)if(!this.allowsMarkType(e[A].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let A;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?A&&A.push(e[n]):A||(A=e.slice(0,n));return A?A.length?A:Ze.none:e}static compile(e,A){let n=Object.create(null);e.forEach((i,s)=>n[i]=new fE(i,A,s));let r=A.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class TQ{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Vo{constructor(e,A,n,r){this.name=e,this.rank=A,this.schema=n,this.spec=r,this.attrs=vh(r.attrs),this.excluded=null;let i=bh(this.attrs);this.instance=i?new Ze(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ze(this,Uh(this.attrs,e))}static compile(e,A){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new Vo(i,r++,A,s)),n}removeFromSet(e){for(var A=0;A<e.length;A++)e[A].type==this&&(e=e.slice(0,A).concat(e.slice(A+1)),A--);return e}isInSet(e){for(let A=0;A<e.length;A++)if(e[A].type==this)return e[A]}excludes(e){return this.excluded.indexOf(e)>-1}}class _Q{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let A=this.spec={};for(let r in e)A[r]=e[r];A.nodes=MA.from(e.nodes),A.marks=MA.from(e.marks||{}),this.nodes=Ih.compile(this.spec.nodes,this),this.marks=Vo.compile(this.spec.marks,this);let n=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 i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=$r.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Sh(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Sh(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,A=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ih){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(A,n,r)}text(e,A){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,e,Ze.setFrom(A))}mark(e,A){return typeof e=="string"&&(e=this.marks[e]),e.create(A)}nodeFromJSON(e){return Wr.fromJSON(this,e)}markFromJSON(e){return Ze.fromJSON(this,e)}nodeType(e){let A=this.nodes[e];if(!A)throw new RangeError("Unknown node type: "+e);return A}}function Sh(t,e){let A=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)A.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&A.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return A}function xQ(t){return t.tag!=null}function OQ(t){return t.style!=null}class Fi{constructor(e,A){this.schema=e,this.rules=A,this.tags=[],this.styles=[],A.forEach(n=>{xQ(n)?this.tags.push(n):OQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=e.nodes[n.node];return r.contentMatch.matchType(r)})}parse(e,A={}){let n=new Oh(this,A,!1);return n.addAll(e,A.from,A.to),n.finish()}parseSlice(e,A={}){let n=new Oh(this,A,!0);return n.addAll(e,A.from,A.to),j.maxOpen(n.finish())}matchTag(e,A,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(kQ(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||A.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,A,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=A))){if(s.getAttrs){let c=s.getAttrs(A);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let A=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<A.length;s++){let a=A[s];if((a.priority==null?50:a.priority)<i)break}A.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return A}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Fi(e,Fi.schemaRules(e)))}}const Th={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},LQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_h={ol:!0,ul:!0},Po=1,Go=2,bs=4;function xh(t,e,A){return e!=null?(e?Po:0)|(e==="full"?Go:0):t&&t.whitespace=="pre"?Po|Go:A&~bs}class Wo{constructor(e,A,n,r,i,s,a){this.type=e,this.attrs=A,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Ze.none,this.stashMarks=[],this.match=s||(a&bs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let A=this.type.contentMatch.fillBefore(Y.from(e));if(A)this.match=this.type.contentMatch.matchFragment(A);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Po)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let A=Y.from(this.content);return!e&&this.match&&(A=A.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,A,this.marks):A}popFromStashMark(e){for(let A=this.stashMarks.length-1;A>=0;A--)if(e.eq(this.stashMarks[A]))return this.stashMarks.splice(A,1)[0]}applyPending(e){for(let A=0,n=this.pendingMarks;A<n.length;A++){let r=n[A];(this.type?this.type.allowsMarkType(r.type):NQ(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Th.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Oh{constructor(e,A,n){this.parser=e,this.options=A,this.isOpen=n,this.open=0;let r=A.topNode,i,s=xh(null,A.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,Ze.none,Ze.none,!0,A.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,Ze.none,Ze.none,!0,null,s):i=new Wo(e.schema.topNodeType,null,Ze.none,Ze.none,!0,null,s),this.nodes=[i],this.find=A.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,A){let n=e.style;if(!n||!n.length)return A();let r=this.readStyles(e.style);if(!r)return;let[i,s]=r,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);A();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let A=e.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(n.options&Po)n.options&Go?A=A.replace(/\r\n?/g,`
4
- `):A=A.replace(/\r?\n|\r/g," ");else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A)),this.findInText(e)}else this.findInside(e)}addElement(e,A){let n=e.nodeName.toLowerCase(),r;_h.hasOwnProperty(n)&&this.parser.normalizeLists&&HQ(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,A));if(i?i.ignore:LQ.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,a=this.top,c=this.needsBlock;if(Th.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?r:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
5
- `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let A=Ze.none,n=Ze.none;for(let r=0,i=e.length;r<i;r++){let s=e.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,e.getPropertyValue(s),this,a);if(!c)break;if(c.ignore)return null;if(c.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(u=>{c.clearMark(u)&&(n=u.addToSet(n))}):A=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(A),c.consuming===!1)a=c;else break}}return[A,n]}addElementByRule(e,A,n){let r,i,s;A.node?(i=this.parser.schema.nodes[A.node],i.isLeaf?this.insertNode(i.create(A.attrs))||this.leafFallback(e):r=this.enter(i,A.attrs||null,A.preserveWhitespace)):(s=this.parser.schema.marks[A.mark].create(A.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(A.getContent)this.findInside(e),A.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof A.contentElement=="string"?c=e.querySelector(A.contentElement):typeof A.contentElement=="function"?c=A.contentElement(e):A.contentElement&&(c=A.contentElement),this.findAround(e,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,A,n){let r=A||0;for(let i=A?e.childNodes[A]:e.firstChild,s=n==null?null:e.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let A,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(e);if(s&&(!A||A.length>s.length)&&(A=s,n=i,!s.length)||i.solid)break}if(!A)return!1;this.sync(n);for(let r=0;r<A.length;r++)this.enterInner(A[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let A=this.textblockFromContext();A&&this.enterInner(A)}if(this.findPlace(e)){this.closeExtra();let A=this.top;A.applyPending(e.type),A.match&&(A.match=A.match.matchType(e.type));let n=A.activeMarks;for(let r=0;r<e.marks.length;r++)(!A.type||A.type.allowsMarkType(e.marks[r].type))&&(n=e.marks[r].addToSet(n));return A.content.push(e.mark(n)),!0}return!1}enter(e,A,n){let r=this.findPlace(e.create(A));return r&&this.enterInner(e,A,!0,n),r}enterInner(e,A=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=xh(e,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new Wo(e,A,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(e=!1){let A=this.nodes.length-1;if(A>this.open){for(;A>this.open;A--)this.nodes[A-1].content.push(this.nodes[A].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 A=this.open;A>=0;A--)if(this.nodes[A]==e)return this.open=A,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let A=this.open;A>=0;A--){let n=this.nodes[A].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;A&&e++}return e}findAtPoint(e,A){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==A&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].pos==null&&e.nodeType==1&&e.contains(this.find[A].node)&&(this.find[A].pos=this.currentPos)}findAround(e,A,n){if(e!=A&&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)&&A.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&(this.find[A].pos=this.currentPos-(e.nodeValue.length-this.find[A].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let A=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),s=(a,c)=>{for(;a>=0;a--){let u=A[a];if(u==""){if(a==A.length-1||a==0)continue;for(;c>=i;c--)if(s(a-1,c))return!0;return!1}else{let f=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!f||f.name!=u&&f.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(A.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let A=e.depth;A>=0;A--){let n=e.node(A).contentMatchAt(e.indexAfter(A)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let A in this.parser.schema.nodes){let n=this.parser.schema.nodes[A];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(e){let A=DQ(e,this.top.pendingMarks);A&&this.top.stashMarks.push(A),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,A){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let s=r.popFromStashMark(e);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==A)break}}}function HQ(t){for(let e=t.firstChild,A=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&_h.hasOwnProperty(n)&&A?(A.appendChild(e),e=A):n=="li"?A=e:n&&(A=null)}}function kQ(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Lh(t){let e={};for(let A in t)e[A]=t[A];return e}function NQ(t,e){let A=e.schema.nodes;for(let n in A){let r=A[n];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let c=0;c<a.edgeCount;c++){let{type:u,next:f}=a.edge(c);if(u==e||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function DQ(t,e){for(let A=0;A<e.length;A++)if(t.eq(e[A]))return e[A]}class mn{constructor(e,A){this.nodes=e,this.marks=A}serializeFragment(e,A={},n){n||(n=Cc(A).createDocumentFragment());let r=n,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,c=0;for(;a<i.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,c++}for(;a<i.length;)r=i.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],f=this.serializeMark(u,s.isInline,A);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,A))}),n}serializeNodeInner(e,A){let{dom:n,contentDOM:r}=mn.renderSpec(Cc(A),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,A,r)}return n}serializeNode(e,A={}){let n=this.serializeNodeInner(e,A);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,A);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,A,n={}){let r=this.marks[e.type.name];return r&&mn.renderSpec(Cc(n),r(e,A))}static renderSpec(e,A,n=null){if(typeof A=="string")return{dom:e.createTextNode(A)};if(A.nodeType!=null)return{dom:A};if(A.dom&&A.dom.nodeType!=null)return A;let r=A[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?e.createElementNS(n,r):e.createElement(r),c=A[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let f in c)if(c[f]!=null){let p=f.indexOf(" ");p>0?a.setAttributeNS(f.slice(0,p),f.slice(p+1),c[f]):a.setAttribute(f,c[f])}}for(let f=u;f<A.length;f++){let p=A[f];if(p===0){if(f<A.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:g,contentDOM:B}=mn.renderSpec(e,p,n);if(a.appendChild(g),B){if(s)throw new RangeError("Multiple content holes");s=B}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new mn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let A=Hh(e.nodes);return A.text||(A.text=n=>n.text),A}static marksFromSchema(e){return Hh(e.marks)}}function Hh(t){let e={};for(let A in t){let n=t[A].spec.toDOM;n&&(e[A]=n)}return e}function Cc(t){return t.document||window.document}const kh=65535,Nh=Math.pow(2,16);function MQ(t,e){return t+e*Nh}function Dh(t){return t&kh}function RQ(t){return(t-(t&kh))/Nh}const Mh=1,Rh=2,$o=4,Kh=8;class yc{constructor(e,A,n){this.pos=e,this.delInfo=A,this.recover=n}get deleted(){return(this.delInfo&Kh)>0}get deletedBefore(){return(this.delInfo&(Mh|$o))>0}get deletedAfter(){return(this.delInfo&(Rh|$o))>0}get deletedAcross(){return(this.delInfo&$o)>0}}class Ut{constructor(e,A=!1){if(this.ranges=e,this.inverted=A,!e.length&&Ut.empty)return Ut.empty}recover(e){let A=0,n=Dh(e);if(!this.inverted)for(let r=0;r<n;r++)A+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+A+RQ(e)}mapResult(e,A=1){return this._map(e,A,!1)}map(e,A=1){return this._map(e,A,!0)}_map(e,A,n){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(e<=p){let g=u?e==c?-1:e==p?1:A:A,B=c+r+(g<0?0:f);if(n)return B;let w=e==(A<0?c:p)?null:MQ(a/3,e-c),Q=e==c?Rh:e==p?Mh:$o;return(A<0?e!=c:e!=p)&&(Q|=Kh),new yc(B,Q,w)}r+=f-u}return n?e+r:new yc(e+r,0,null)}touches(e,A){let n=0,r=Dh(A),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?n:0);if(c>e)break;let u=this.ranges[a+i],f=c+u;if(e<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(e){let A=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),c=s+(this.inverted?0:i),u=this.ranges[r+A],f=this.ranges[r+n];e(a,a+u,c,c+f),i+=f-u}}invert(){return new Ut(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Ut.empty:new Ut(e<0?[0,-e,0]:[0,0,e])}}Ut.empty=new Ut([]);class bi{constructor(e=[],A,n=0,r=e.length){this.maps=e,this.mirror=A,this.from=n,this.to=r}slice(e=0,A=this.maps.length){return new bi(this.maps,this.mirror,e,A)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,A){this.to=this.maps.push(e),A!=null&&this.setMirror(this.maps.length-1,A)}appendMapping(e){for(let A=0,n=this.maps.length;A<e.maps.length;A++){let r=e.getMirror(A);this.appendMap(e.maps[A],r!=null&&r<A?n+r:void 0)}}getMirror(e){if(this.mirror){for(let A=0;A<this.mirror.length;A++)if(this.mirror[A]==e)return this.mirror[A+(A%2?-1:1)]}}setMirror(e,A){this.mirror||(this.mirror=[]),this.mirror.push(e,A)}appendMappingInverted(e){for(let A=e.maps.length-1,n=this.maps.length+e.maps.length;A>=0;A--){let r=e.getMirror(A);this.appendMap(e.maps[A].invert(),r!=null&&r>A?n-r-1:void 0)}}invert(){let e=new bi;return e.appendMappingInverted(this),e}map(e,A=1){if(this.mirror)return this._map(e,A,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,A);return e}mapResult(e,A=1){return this._map(e,A,!1)}_map(e,A,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(e,A);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return n?e:new yc(e,r,null)}}const Ec=Object.create(null);class JA{getMap(){return Ut.empty}merge(e){return null}static fromJSON(e,A){if(!A||!A.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Ec[A.stepType];if(!n)throw new RangeError(`No step type ${A.stepType} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Ec)throw new RangeError("Duplicate use of step JSON ID "+e);return Ec[e]=A,A.prototype.jsonID=e,A}}class QA{constructor(e,A){this.doc=e,this.failed=A}static ok(e){return new QA(e,null)}static fail(e){return new QA(null,e)}static fromReplace(e,A,n,r){try{return QA.ok(e.replace(A,n,r))}catch(i){if(i instanceof Do)return QA.fail(i.message);throw i}}}function Qc(t,e,A){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Qc(i.content,e,i))),i.isInline&&(i=e(i,A,r)),n.push(i)}return Y.fromArray(n)}class sr extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Qc(A.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,i)}invert(){return new Bn(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new sr(A.pos,n.pos,this.mark)}merge(e){return e instanceof sr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new sr(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,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("addMark",sr);class Bn extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=new j(Qc(A.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new Bn(A.pos,n.pos,this.mark)}merge(e){return e instanceof Bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Bn(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,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Bn(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("removeMark",Bn);class or extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.addToSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);if(A){let n=this.mark.addToSet(A.marks);if(n.length==A.marks.length){for(let r=0;r<A.marks.length;r++)if(!A.marks[r].isInSet(n))return new or(this.pos,A.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new or(A.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("addNodeMark",or);class Ui extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.removeFromSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);return!A||!this.mark.isInSet(A.marks)?this:new or(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Ui(A.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("removeNodeMark",Ui);class xA extends JA{constructor(e,A,n,r=!1){super(),this.from=e,this.to=A,this.slice=n,this.structure=r}apply(e){return this.structure&&Fc(e,this.from,this.to)?QA.fail("Structure replace would overwrite content"):QA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(e){return new xA(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deletedAcross&&n.deletedAcross?null:new xA(A.pos,Math.max(A.pos,n.pos),this.slice)}merge(e){if(!(e instanceof xA)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let A=this.slice.size+e.slice.size==0?j.empty:new j(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new xA(this.from,this.to+(e.to-e.from),A,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let A=this.slice.size+e.slice.size==0?j.empty:new j(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new xA(e.from,this.to,A,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,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xA(A.from,A.to,j.fromJSON(e,A.slice),!!A.structure)}}JA.jsonID("replace",xA);class OA extends JA{constructor(e,A,n,r,i,s,a=!1){super(),this.from=e,this.to=A,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(Fc(e,this.from,this.gapFrom)||Fc(e,this.gapTo,this.to)))return QA.fail("Structure gap-replace would overwrite content");let A=e.slice(this.gapFrom,this.gapTo);if(A.openStart||A.openEnd)return QA.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,A.content);return n?QA.fromReplace(e,this.from,this.to,n):QA.fail("Content does not fit in gap")}getMap(){return new Ut([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let A=this.gapTo-this.gapFrom;return new OA(this.from,this.from+this.slice.size+A,this.from+this.insert,this.from+this.insert+A,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?A.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return A.deletedAcross&&n.deletedAcross||r<A.pos||i>n.pos?null:new OA(A.pos,n.pos,r,i,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,A){if(typeof A.from!="number"||typeof A.to!="number"||typeof A.gapFrom!="number"||typeof A.gapTo!="number"||typeof A.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new OA(A.from,A.to,A.gapFrom,A.gapTo,j.fromJSON(e,A.slice),A.insert,!!A.structure)}}JA.jsonID("replaceAround",OA);function Fc(t,e,A){let n=t.resolve(e),r=A-e,i=n.depth;for(;r>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,r--;if(r>0){let s=n.node(i).maybeChild(n.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function KQ(t,e,A,n){let r=[],i=[],s,a;t.doc.nodesBetween(e,A,(c,u,f)=>{if(!c.isInline)return;let p=c.marks;if(!n.isInSet(p)&&f.type.allowsMarkType(n.type)){let g=Math.max(u,e),B=Math.min(u+c.nodeSize,A),w=n.addToSet(p);for(let Q=0;Q<p.length;Q++)p[Q].isInSet(w)||(s&&s.to==g&&s.mark.eq(p[Q])?s.to=B:r.push(s=new Bn(g,B,p[Q])));a&&a.to==g?a.to=B:i.push(a=new sr(g,B,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function VQ(t,e,A,n){let r=[],i=0;t.doc.nodesBetween(e,A,(s,a)=>{if(!s.isInline)return;i++;let c=null;if(n instanceof Vo){let u=s.marks,f;for(;f=n.isInSet(u);)(c||(c=[])).push(f),u=f.removeFromSet(u)}else n?n.isInSet(s.marks)&&(c=[n]):c=s.marks;if(c&&c.length){let u=Math.min(a+s.nodeSize,A);for(let f=0;f<c.length;f++){let p=c[f],g;for(let B=0;B<r.length;B++){let w=r[B];w.step==i-1&&p.eq(r[B].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:p,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function Vh(t,e,A,n=A.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let c=0;c<i.childCount;c++){let u=i.child(c),f=a+u.nodeSize,p=n.matchType(u.type);if(!p)s.push(new xA(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)A.allowsMarkType(u.marks[g].type)||t.step(new Bn(a,f,u.marks[g]));if(r&&u.isText&&A.whitespace!="pre"){let g,B=/\r?\n|\r/g,w;for(;g=B.exec(u.text);)w||(w=new j(Y.from(A.schema.text(" ",A.allowedMarks(u.marks))),0,0)),s.push(new xA(a+g.index,a+g.index+g[0].length,w))}}a=f}if(!n.validEnd){let c=n.fillBefore(Y.empty,!0);t.replace(a,a,new j(c,0,0))}for(let c=s.length-1;c>=0;c--)t.step(s[c])}function PQ(t,e,A){return(e==0||t.canReplace(e,t.childCount))&&(A==t.childCount||t.canReplace(0,A))}function vi(t){let A=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),s=t.$to.indexAfter(n);if(n<t.depth&&r.canReplace(i,s,A))return n;if(n==0||r.type.spec.isolating||!PQ(r,i,s))break}return null}function GQ(t,e,A){let{$from:n,$to:r,depth:i}=e,s=n.before(i+1),a=r.after(i+1),c=s,u=a,f=Y.empty,p=0;for(let w=i,Q=!1;w>A;w--)Q||n.index(w)>0?(Q=!0,f=Y.from(n.node(w).copy(f)),p++):c--;let g=Y.empty,B=0;for(let w=i,Q=!1;w>A;w--)Q||r.after(w+1)<r.end(w)?(Q=!0,g=Y.from(r.node(w).copy(g)),B++):u++;t.step(new OA(c,u,s,a,new j(f.append(g),p,B),f.size-p,!0))}function bc(t,e,A=null,n=t){let r=WQ(t,e),i=r&&$Q(n,e);return i?r.map(Ph).concat({type:e,attrs:A}).concat(i.map(Ph)):null}function Ph(t){return{type:t,attrs:null}}function WQ(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.contentMatchAt(n).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return A.canReplaceWith(n,r,s)?i:null}function $Q(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.child(n),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(A.child(u).type);return!c||!c.validEnd?null:s}function JQ(t,e,A){let n=Y.empty;for(let s=A.length-1;s>=0;s--){if(n.size){let a=A[s].type.contentMatch.matchFragment(n);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Y.from(A[s].type.create(A[s].attrs,n))}let r=e.start,i=e.end;t.step(new OA(r,i,r,i,new j(n,0,0),A.length,!0))}function XQ(t,e,A,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,A,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(n,r)&&qQ(t.doc,t.mapping.slice(i).map(a),n)){let c=null;if(n.schema.linebreakReplacement){let g=n.whitespace=="pre",B=!!n.contentMatch.matchType(n.schema.linebreakReplacement);g&&!B?c=!1:!g&&B&&(c=!0)}c===!1&&zQ(t,s,a,i),Vh(t,t.mapping.slice(i).map(a,1),n,void 0,c===null);let u=t.mapping.slice(i),f=u.map(a,1),p=u.map(a+s.nodeSize,1);return t.step(new OA(f,p,f+1,p-1,new j(Y.from(n.create(r,null,s.marks)),0,0),1,!0)),c===!0&&YQ(t,s,a,i),!1}})}function YQ(t,e,A,n){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let c=t.mapping.slice(n).map(A+1+i+s.index);t.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function zQ(t,e,A,n){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(A+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
6
- `))}})}function qQ(t,e,A){let n=t.resolve(e),r=n.index();return n.parent.canReplaceWith(r,r+1,A)}function ZQ(t,e,A,n,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");A||(A=i.type);let s=A.create(n,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!A.validContent(i.content))throw new RangeError("Invalid content for node type "+A.name);t.step(new OA(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new j(Y.from(s),0,0),1,!0))}function Ii(t,e,A=1,n){let r=t.resolve(e),i=r.depth-A,s=n&&n[n.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,f=A-2;u>i;u--,f--){let p=r.node(u),g=r.index(u);if(p.type.spec.isolating)return!1;let B=p.content.cutByIndex(g,p.childCount),w=n&&n[f+1];w&&(B=B.replaceChild(0,w.type.create(w.attrs)));let Q=n&&n[f]||p;if(!p.canReplace(g+1,p.childCount)||!Q.type.validContent(B))return!1}let a=r.indexAfter(i),c=n&&n[0];return r.node(i).canReplaceWith(a,a,c?c.type:r.node(i+1).type)}function jQ(t,e,A=1,n){let r=t.doc.resolve(e),i=Y.empty,s=Y.empty;for(let a=r.depth,c=r.depth-A,u=A-1;a>c;a--,u--){i=Y.from(r.node(a).copy(i));let f=n&&n[u];s=Y.from(f?f.type.create(f.attrs,s):r.node(a).copy(s))}t.step(new xA(e,e,new j(i.append(s),A,A),!0))}function ar(t,e){let A=t.resolve(e),n=A.index();return Gh(A.nodeBefore,A.nodeAfter)&&A.parent.canReplace(n,n+1)}function Gh(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Jo(t,e,A=-1){let n=t.resolve(e);for(let r=n.depth;;r--){let i,s,a=n.index(r);if(r==n.depth?(i=n.nodeBefore,s=n.nodeAfter):A>0?(i=n.node(r+1),a++,s=n.node(r).maybeChild(a)):(i=n.node(r).maybeChild(a-1),s=n.node(r+1)),i&&!i.isTextblock&&Gh(i,s)&&n.node(r).canReplace(a,a+1))return e;if(r==0)break;e=A<0?n.before(r):n.after(r)}}function eF(t,e,A){let n=new xA(e-A,e+A,j.empty,!0);t.step(n)}function AF(t,e,A){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),A))return e;if(n.parentOffset==0)for(let r=n.depth-1;r>=0;r--){let i=n.index(r);if(n.node(r).canReplaceWith(i,i,A))return n.before(r+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let r=n.depth-1;r>=0;r--){let i=n.indexAfter(r);if(n.node(r).canReplaceWith(i,i,A))return n.after(r+1);if(i<n.node(r).childCount)return null}return null}function Wh(t,e,A){let n=t.resolve(e);if(!A.content.size)return e;let r=A.content;for(let i=0;i<A.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(A.openStart==0&&A.size?2:1);i++)for(let s=n.depth;s>=0;s--){let a=s==n.depth?0:n.pos<=(n.start(s+1)+n.end(s+1))/2?-1:1,c=n.index(s)+(a>0?1:0),u=n.node(s),f=!1;if(i==1)f=u.canReplace(c,c,r);else{let p=u.contentMatchAt(c).findWrapping(r.firstChild.type);f=p&&u.canReplaceWith(c,c,p[0])}if(f)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function Xo(t,e,A=e,n=j.empty){if(e==A&&!n.size)return null;let r=t.resolve(e),i=t.resolve(A);return $h(r,i,n)?new xA(e,A,n):new tF(r,i,n).fit()}function $h(t,e,A){return!A.openStart&&!A.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),A.content)}class tF{constructor(e,A,n){this.$from=e,this.$to=A,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Y.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(),A=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,s=n.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let c=new j(i,s,a);return e>-1?new OA(n.pos,e,this.$to.pos,this.$to.end(),c,A):c.size||n.pos!=this.$to.pos?new xA(n.pos,r.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let A=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=A.firstChild;if(A.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}A=i.content}for(let A=1;A<=2;A++)for(let n=A==1?e:this.unplaced.openStart;n>=0;n--){let r,i=null;n?(i=Uc(this.unplaced.content,n-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:c,match:u}=this.frontier[a],f,p=null;if(A==1&&(s?u.matchType(s.type)||(p=u.fillBefore(Y.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:p};if(A==2&&s&&(f=u.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:a,parent:i,wrap:f};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=Uc(e,A);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new j(e,A+1,Math.max(n,r.size+A>=e.size-n?A+1:0)),!0)}dropNode(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=Uc(e,A);if(r.childCount<=1&&A>0){let i=e.size-A<=A+r.size;this.unplaced=new j(Us(e,A-1,1),A-1,i?A-1:n)}else this.unplaced=new j(Us(e,A,1),A,n)}placeNodes({sliceDepth:e,frontierDepth:A,parent:n,inject:r,wrap:i}){for(;this.depth>A;)this.closeFrontierNode();if(i)for(let Q=0;Q<i.length;Q++)this.openFrontierNode(i[Q]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-e,u=0,f=[],{match:p,type:g}=this.frontier[A];if(r){for(let Q=0;Q<r.childCount;Q++)f.push(r.child(Q));p=p.matchFragment(r)}let B=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let Q=a.child(u),b=p.matchType(Q.type);if(!b)break;u++,(u>1||c==0||Q.content.size)&&(p=b,f.push(Jh(Q.mark(g.allowedMarks(Q.marks)),u==1?c:0,u==a.childCount?B:-1)))}let w=u==a.childCount;w||(B=-1),this.placed=vs(this.placed,A,Y.from(f)),this.frontier[A].match=p,w&&B<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let Q=0,b=a;Q<B;Q++){let v=b.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),b=v.content}this.unplaced=w?e==0?j.empty:new j(Us(s.content,e-1,1),e-1,B<0?s.openEnd:e-1):new j(Us(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],A;if(!e.type.isTextblock||!vc(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(A=this.findCloseLevel(this.$to))&&A.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let A=Math.min(this.depth,e.depth);A>=0;A--){let{match:n,type:r}=this.frontier[A],i=A<e.depth&&e.end(A+1)==e.pos+(e.depth-(A+1)),s=vc(e,A,r,n,i);if(s){for(let a=A-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=vc(e,a,u,c,!0);if(!f||f.childCount)continue e}return{depth:A,fit:s,move:i?e.doc.resolve(e.after(A+1)):e}}}}close(e){let A=this.findCloseLevel(e);if(!A)return null;for(;this.depth>A.depth;)this.closeFrontierNode();A.fit.childCount&&(this.placed=vs(this.placed,A.depth,A.fit)),e=A.move;for(let n=A.depth+1;n<=e.depth;n++){let r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,A=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=vs(this.placed,this.depth,Y.from(e.create(A,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let A=this.frontier.pop().match.fillBefore(Y.empty,!0);A.childCount&&(this.placed=vs(this.placed,this.frontier.length,A))}}function Us(t,e,A){return e==0?t.cutByIndex(A,t.childCount):t.replaceChild(0,t.firstChild.copy(Us(t.firstChild.content,e-1,A)))}function vs(t,e,A){return e==0?t.append(A):t.replaceChild(t.childCount-1,t.lastChild.copy(vs(t.lastChild.content,e-1,A)))}function Uc(t,e){for(let A=0;A<e;A++)t=t.firstChild.content;return t}function Jh(t,e,A){if(e<=0)return t;let n=t.content;return e>1&&(n=n.replaceChild(0,Jh(n.firstChild,e-1,n.childCount==1?A-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),A<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Y.empty,!0)))),t.copy(n)}function vc(t,e,A,n,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!A.compatibleContent(i.type))return null;let a=n.fillBefore(i.content,!0,s);return a&&!nF(A,i.content,s)?a:null}function nF(t,e,A){for(let n=A;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}function rF(t){return t.spec.defining||t.spec.definingForContent}function iF(t,e,A,n){if(!n.size)return t.deleteRange(e,A);let r=t.doc.resolve(e),i=t.doc.resolve(A);if($h(r,i,n))return t.step(new xA(e,A,n));let s=Yh(r,t.doc.resolve(A));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let g=r.depth,B=r.pos-1;g>0;g--,B--){let w=r.node(g).type.spec;if(w.defining||w.definingAsContext||w.isolating)break;s.indexOf(g)>-1?a=g:r.before(g)==B&&s.splice(1,0,-g)}let c=s.indexOf(a),u=[],f=n.openStart;for(let g=n.content,B=0;;B++){let w=g.firstChild;if(u.push(w),B==n.openStart)break;g=w.content}for(let g=f-1;g>=0;g--){let B=u[g],w=rF(B.type);if(w&&!B.sameMarkup(r.node(Math.abs(a)-1)))f=g;else if(w||!B.type.isTextblock)break}for(let g=n.openStart;g>=0;g--){let B=(g+f+1)%(n.openStart+1),w=u[B];if(w)for(let Q=0;Q<s.length;Q++){let b=s[(Q+c)%s.length],v=!0;b<0&&(v=!1,b=-b);let _=r.node(b-1),S=r.index(b-1);if(_.canReplaceWith(S,S,w.type,w.marks))return t.replace(r.before(b),v?i.after(b):A,new j(Xh(n.content,0,n.openStart,B),B,n.openEnd))}}let p=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(e,A,n),!(t.steps.length>p));g--){let B=s[g];B<0||(e=r.before(B),A=i.after(B))}}function Xh(t,e,A,n,r){if(e<A){let i=t.firstChild;t=t.replaceChild(0,i.copy(Xh(i.content,e+1,A,n,i)))}if(e>n){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(Y.empty,!0))}return t}function sF(t,e,A,n){if(!n.isInline&&e==A&&t.doc.resolve(e).parent.content.size){let r=AF(t.doc,e,n.type);r!=null&&(e=A=r)}t.replaceRange(e,A,new j(Y.from(n),0,0))}function oF(t,e,A){let n=t.doc.resolve(e),r=t.doc.resolve(A),i=Yh(n,r);for(let s=0;s<i.length;s++){let a=i[s],c=s==i.length-1;if(c&&a==0||n.node(a).type.contentMatch.validEnd)return t.delete(n.start(a),r.end(a));if(a>0&&(c||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return t.delete(n.before(a),r.after(a))}for(let s=1;s<=n.depth&&s<=r.depth;s++)if(e-n.start(s)==n.depth-s&&A>n.end(s)&&r.end(s)-A!=r.depth-s)return t.delete(n.before(s),A);t.delete(e,A)}function Yh(t,e){let A=[],n=Math.min(t.depth,e.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<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;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&A.push(r)}return A}class Si extends JA{constructor(e,A,n){super(),this.pos=e,this.attr=A,this.value=n}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at attribute step's position");let n=Object.create(null);for(let i in A.attrs)n[i]=A.attrs[i];n[this.attr]=this.value;let r=A.type.create(n,null,A.marks);return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(r),0,A.isLeaf?0:1))}getMap(){return Ut.empty}invert(e){return new Si(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Si(A.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.pos!="number"||typeof A.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Si(A.pos,A.attr,A.value)}}JA.jsonID("attr",Si);class Is extends JA{constructor(e,A){super(),this.attr=e,this.value=A}apply(e){let A=Object.create(null);for(let r in e.attrs)A[r]=e.attrs[r];A[this.attr]=this.value;let n=e.type.create(A,e.content,e.marks);return QA.ok(n)}getMap(){return Ut.empty}invert(e){return new Is(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Is(A.attr,A.value)}}JA.jsonID("docAttr",Is);let Ti=class extends Error{};Ti=function t(e){let A=Error.call(this,e);return A.__proto__=t.prototype,A},Ti.prototype=Object.create(Error.prototype),Ti.prototype.constructor=Ti,Ti.prototype.name="TransformError";class aF{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new bi}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let A=this.maybeStep(e);if(A.failed)throw new Ti(A.failed);return this}maybeStep(e){let A=e.apply(this.doc);return A.failed||this.addStep(e,A.doc),A}get docChanged(){return this.steps.length>0}addStep(e,A){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=A}replace(e,A=e,n=j.empty){let r=Xo(this.doc,e,A,n);return r&&this.step(r),this}replaceWith(e,A,n){return this.replace(e,A,new j(Y.from(n),0,0))}delete(e,A){return this.replace(e,A,j.empty)}insert(e,A){return this.replaceWith(e,e,A)}replaceRange(e,A,n){return iF(this,e,A,n),this}replaceRangeWith(e,A,n){return sF(this,e,A,n),this}deleteRange(e,A){return oF(this,e,A),this}lift(e,A){return GQ(this,e,A),this}join(e,A=1){return eF(this,e,A),this}wrap(e,A){return JQ(this,e,A),this}setBlockType(e,A=e,n,r=null){return XQ(this,e,A,n,r),this}setNodeMarkup(e,A,n=null,r){return ZQ(this,e,A,n,r),this}setNodeAttribute(e,A,n){return this.step(new Si(e,A,n)),this}setDocAttribute(e,A){return this.step(new Is(e,A)),this}addNodeMark(e,A){return this.step(new or(e,A)),this}removeNodeMark(e,A){if(!(A instanceof Ze)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(A=A.isInSet(n.marks),!A)return this}return this.step(new Ui(e,A)),this}split(e,A=1,n){return jQ(this,e,A,n),this}addMark(e,A,n){return KQ(this,e,A,n),this}removeMark(e,A,n){return VQ(this,e,A,n),this}clearIncompatible(e,A,n){return Vh(this,e,A,n),this}}const Ic=Object.create(null);class Fe{constructor(e,A,n){this.$anchor=e,this.$head=A,this.ranges=n||[new lF(e.min(A),e.max(A))]}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 A=0;A<e.length;A++)if(e[A].$from.pos!=e[A].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,A=j.empty){let n=A.content.lastChild,r=null;for(let a=0;a<A.openEnd;a++)r=n,n=n.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:u}=s[a],f=e.mapping.slice(i);e.replaceRange(f.map(c.pos),f.map(u.pos),a?j.empty:A),a==0&&Zh(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,A){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],c=e.mapping.slice(n),u=c.map(s.pos),f=c.map(a.pos);i?e.deleteRange(u,f):(e.replaceRangeWith(u,f,A),Zh(e,n,A.isInline?-1:1))}}static findFrom(e,A,n=!1){let r=e.parent.inlineContent?new Ce(e):_i(e.node(0),e.parent,e.pos,e.index(),A,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=A<0?_i(e.node(0),e.node(i),e.before(i+1),e.index(i),A,n):_i(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,A,n);if(s)return s}return null}static near(e,A=1){return this.findFrom(e,A)||this.findFrom(e,-A)||new tn(e.node(0))}static atStart(e){return _i(e,e,0,0,1)||new tn(e)}static atEnd(e){return _i(e,e,e.content.size,e.childCount,-1)||new tn(e)}static fromJSON(e,A){if(!A||!A.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Ic[A.type];if(!n)throw new RangeError(`No selection type ${A.type} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Ic)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ic[e]=A,A.prototype.jsonID=e,A}getBookmark(){return Ce.between(this.$anchor,this.$head).getBookmark()}}Fe.prototype.visible=!0;class lF{constructor(e,A){this.$from=e,this.$to=A}}let zh=!1;function qh(t){!zh&&!t.parent.inlineContent&&(zh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Ce extends Fe{constructor(e,A=e){qh(e),qh(A),super(e,A)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,A){let n=e.resolve(A.map(this.head));if(!n.parent.inlineContent)return Fe.near(n);let r=e.resolve(A.map(this.anchor));return new Ce(r.parent.inlineContent?r:n,n)}replace(e,A=j.empty){if(super.replace(e,A),A==j.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof Ce&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Yo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,A){if(typeof A.anchor!="number"||typeof A.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ce(e.resolve(A.anchor),e.resolve(A.head))}static create(e,A,n=A){let r=e.resolve(A);return new this(r,n==A?r:e.resolve(n))}static between(e,A,n){let r=e.pos-A.pos;if((!n||r)&&(n=r>=0?1:-1),!A.parent.inlineContent){let i=Fe.findFrom(A,n,!0)||Fe.findFrom(A,-n,!0);if(i)A=i.$head;else return Fe.near(A,n)}return e.parent.inlineContent||(r==0?e=A:(e=(Fe.findFrom(e,-n,!0)||Fe.findFrom(e,n,!0)).$anchor,e.pos<A.pos!=r<0&&(e=A))),new Ce(e,A)}}Fe.jsonID("text",Ce);class Yo{constructor(e,A){this.anchor=e,this.head=A}map(e){return new Yo(e.map(this.anchor),e.map(this.head))}resolve(e){return Ce.between(e.resolve(this.anchor),e.resolve(this.head))}}class fe extends Fe{constructor(e){let A=e.nodeAfter,n=e.node(0).resolve(e.pos+A.nodeSize);super(e,n),this.node=A}map(e,A){let{deleted:n,pos:r}=A.mapResult(this.anchor),i=e.resolve(r);return n?Fe.near(i):new fe(i)}content(){return new j(Y.from(this.node),0,0)}eq(e){return e instanceof fe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Sc(this.anchor)}static fromJSON(e,A){if(typeof A.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new fe(e.resolve(A.anchor))}static create(e,A){return new fe(e.resolve(A))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}fe.prototype.visible=!1,Fe.jsonID("node",fe);class Sc{constructor(e){this.anchor=e}map(e){let{deleted:A,pos:n}=e.mapResult(this.anchor);return A?new Yo(n,n):new Sc(n)}resolve(e){let A=e.resolve(this.anchor),n=A.nodeAfter;return n&&fe.isSelectable(n)?new fe(A):Fe.near(A)}}class tn extends Fe{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,A=j.empty){if(A==j.empty){e.delete(0,e.doc.content.size);let n=Fe.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,A)}toJSON(){return{type:"all"}}static fromJSON(e){return new tn(e)}map(e){return new tn(e)}eq(e){return e instanceof tn}getBookmark(){return cF}}Fe.jsonID("all",tn);const cF={map(){return this},resolve(t){return new tn(t)}};function _i(t,e,A,n,r,i=!1){if(e.inlineContent)return Ce.create(t,A);for(let s=n-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&fe.isSelectable(a))return fe.create(t,A-(r<0?a.nodeSize:0))}else{let c=_i(t,a,A+r,r<0?a.childCount:0,r,i);if(c)return c}A+=a.nodeSize*r}return null}function Zh(t,e,A){let n=t.steps.length-1;if(n<e)return;let r=t.steps[n];if(!(r instanceof xA||r instanceof OA))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(Fe.near(t.doc.resolve(s),A))}const jh=1,zo=2,ep=4;class uF extends aF{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|jh)&~zo,this.storedMarks=null,this}get selectionSet(){return(this.updated&jh)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=zo,this}ensureMarks(e){return Ze.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&zo)>0}addStep(e,A){super.addStep(e,A),this.updated=this.updated&~zo,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,A=!0){let n=this.selection;return A&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Ze.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,A,n){let r=this.doc.type.schema;if(A==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n==null&&(n=A),n=n??A,!e)return this.deleteRange(A,n);let i=this.storedMarks;if(!i){let s=this.doc.resolve(A);i=n==A?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(A,n,r.text(e,i)),this.selection.empty||this.setSelection(Fe.near(this.selection.$to)),this}}setMeta(e,A){return this.meta[typeof e=="string"?e:e.key]=A,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|=ep,this}get scrolledIntoView(){return(this.updated&ep)>0}}function Ap(t,e){return!e||!t?t:t.bind(e)}class Ss{constructor(e,A,n){this.name=e,this.init=Ap(A.init,n),this.apply=Ap(A.apply,n)}}const fF=[new Ss("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ss("selection",{init(t,e){return t.selection||Fe.atStart(e.doc)},apply(t){return t.selection}}),new Ss("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,A,n){return n.selection.$cursor?t.storedMarks:null}}),new Ss("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Tc{constructor(e,A){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=fF.slice(),A&&A.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new Ss(n.key,n.spec.state,n))})}}class xi{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,A=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=A){let r=this.config.plugins[n];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 A=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let c=r?r[s].n:0,u=r?r[s].state:this,f=c<A.length&&a.spec.appendTransaction.call(a,c?A.slice(c):A,u,n);if(f&&n.filterTransaction(f,s)){if(f.setMeta("appendedTransaction",e),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:A.length}:{state:this,n:0})}A.push(f),n=n.applyInner(f),i=!0}r&&(r[s]={state:n,n:A.length})}}if(!i)return{state:n,transactions:A}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let A=new xi(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];A[i.name]=i.apply(e,this[i.name],this,A)}return A}get tr(){return new uF(this)}static create(e){let A=new Tc(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new xi(A);for(let r=0;r<A.fields.length;r++)n[A.fields[r].name]=A.fields[r].init(e,n);return n}reconfigure(e){let A=new Tc(this.schema,e.plugins),n=A.fields,r=new xi(A);for(let i=0;i<n.length;i++){let s=n[i].name;r[s]=this.hasOwnProperty(s)?this[s]:n[i].init(e,r)}return r}toJSON(e){let A={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(A.storedMarks=this.storedMarks.map(n=>n.toJSON())),e&&typeof e=="object")for(let n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(A[n]=i.toJSON.call(r,this[r.key]))}return A}static fromJSON(e,A,n){if(!A)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Tc(e.schema,e.plugins),i=new xi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Wr.fromJSON(e.schema,A.doc);else if(s.name=="selection")i.selection=Fe.fromJSON(i.doc,A.selection);else if(s.name=="storedMarks")A.storedMarks&&(i.storedMarks=A.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let a in n){let c=n[a],u=c.spec.state;if(c.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(A,a)){i[s.name]=u.fromJSON.call(c,e,A[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function tp(t,e,A){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(e):n=="handleDOMEvents"&&(r=tp(r,e,{})),A[n]=r}return A}class pt{constructor(e){this.spec=e,this.props={},e.props&&tp(e.props,this,this.props),this.key=e.key?e.key.key:np("plugin")}getState(e){return e[this.key]}}const _c=Object.create(null);function np(t){return t in _c?t+"$"+ ++_c[t]:(_c[t]=0,t+"$")}class wn{constructor(e="key"){this.key=np(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const RA=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ts=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let xc=null;const Ln=function(t,e,A){let n=xc||(xc=document.createRange());return n.setEnd(t,A??t.nodeValue.length),n.setStart(t,e||0),n},dF=function(){xc=null},Jr=function(t,e,A,n){return A&&(rp(t,e,A,n,-1)||rp(t,e,A,n,1))},hF=/^(img|br|input|textarea|hr)$/i;function rp(t,e,A,n,r){for(;;){if(t==A&&e==n)return!0;if(e==(r<0?0:Cn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||_s(t)||hF.test(t.nodeName)||t.contentEditable=="false")return!1;e=RA(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Cn(t):0}else return!1}}function Cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function pF(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=Cn(t)}else if(t.parentNode&&!_s(t))e=RA(t),t=t.parentNode;else return null}}function gF(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&&!_s(t))e=RA(t)+1,t=t.parentNode;else return null}}function mF(t,e,A){for(let n=e==0,r=e==Cn(t);n||r;){if(t==A)return!0;let i=RA(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==Cn(t)}}function _s(t){let e;for(let A=t;A&&!(e=A.pmViewDesc);A=A.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const qo=function(t){return t.focusNode&&Jr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Xr(t,e){let A=document.createEvent("Event");return A.initEvent("keydown",!0,!0),A.keyCode=t,A.key=A.code=e,A}function BF(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function wF(t,e,A){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,A);if(n)return{node:n.offsetNode,offset:n.offset}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,A);if(n)return{node:n.startContainer,offset:n.startOffset}}}const yn=typeof navigator<"u"?navigator:null,ip=typeof document<"u"?document:null,lr=yn&&yn.userAgent||"",Oc=/Edge\/(\d+)/.exec(lr),sp=/MSIE \d/.exec(lr),Lc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lr),gt=!!(sp||Lc||Oc),cr=sp?document.documentMode:Lc?+Lc[1]:Oc?+Oc[1]:0,nn=!gt&&/gecko\/(\d+)/i.test(lr);nn&&+(/Firefox\/(\d+)/.exec(lr)||[0,0])[1];const Hc=!gt&&/Chrome\/(\d+)/.exec(lr),nt=!!Hc,CF=Hc?+Hc[1]:0,rt=!gt&&!!yn&&/Apple Computer/.test(yn.vendor),Oi=rt&&(/Mobile\/\w+/.test(lr)||!!yn&&yn.maxTouchPoints>2),Mt=Oi||(yn?/Mac/.test(yn.platform):!1),yF=yn?/Win/.test(yn.platform):!1,rn=/Android \d/.test(lr),xs=!!ip&&"webkitFontSmoothing"in ip.documentElement.style,EF=xs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function QF(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 Hn(t,e){return typeof t=="number"?t:t[e]}function FF(t){let e=t.getBoundingClientRect(),A=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*A,top:e.top,bottom:e.top+t.clientHeight*n}}function op(t,e,A){let n=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=A||t.dom;s;s=Ts(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?QF(i):FF(a),f=0,p=0;if(e.top<u.top+Hn(n,"top")?p=-(u.top-e.top+Hn(r,"top")):e.bottom>u.bottom-Hn(n,"bottom")&&(p=e.bottom-e.top>u.bottom-u.top?e.top+Hn(r,"top")-u.top:e.bottom-u.bottom+Hn(r,"bottom")),e.left<u.left+Hn(n,"left")?f=-(u.left-e.left+Hn(r,"left")):e.right>u.right-Hn(n,"right")&&(f=e.right-u.right+Hn(r,"right")),f||p)if(c)i.defaultView.scrollBy(f,p);else{let g=a.scrollLeft,B=a.scrollTop;p&&(a.scrollTop+=p),f&&(a.scrollLeft+=f);let w=a.scrollLeft-g,Q=a.scrollTop-B;e={left:e.left-w,top:e.top-Q,right:e.right-w,bottom:e.bottom-Q}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function bF(t){let e=t.dom.getBoundingClientRect(),A=Math.max(0,e.top),n,r;for(let i=(e.left+e.right)/2,s=A+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let c=a.getBoundingClientRect();if(c.top>=A-20){n=a,r=c.top;break}}return{refDOM:n,refTop:r,stack:ap(t.dom)}}function ap(t){let e=[],A=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=A);n=Ts(n));return e}function UF({refDOM:t,refTop:e,stack:A}){let n=t?t.getBoundingClientRect().top:0;lp(A,n==0?0:n-e)}function lp(t,e){for(let A=0;A<t.length;A++){let{dom:n,top:r,left:i}=t[A];n.scrollTop!=r+e&&(n.scrollTop=r+e),n.scrollLeft!=i&&(n.scrollLeft=i)}}let Li=null;function vF(t){if(t.setActive)return t.setActive();if(Li)return t.focus(Li);let e=ap(t);t.focus(Li==null?{get preventScroll(){return Li={preventScroll:!0},!0}}:void 0),Li||(Li=!1,lp(e,0))}function cp(t,e){let A,n=2e8,r,i=0,s=e.top,a=e.top,c,u;for(let f=t.firstChild,p=0;f;f=f.nextSibling,p++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=Ln(f).getClientRects();else continue;for(let B=0;B<g.length;B++){let w=g[B];if(w.top<=s&&w.bottom>=a){s=Math.max(w.bottom,s),a=Math.min(w.top,a);let Q=w.left>e.left?w.left-e.left:w.right<e.left?e.left-w.right:0;if(Q<n){A=f,n=Q,r=Q&&A.nodeType==3?{left:w.right<e.left?w.right:w.left,top:e.top}:e,f.nodeType==1&&Q&&(i=p+(e.left>=(w.left+w.right)/2?1:0));continue}}else w.top>e.top&&!c&&w.left<=e.left&&w.right>=e.left&&(c=f,u={left:Math.max(w.left,Math.min(w.right,e.left)),top:w.top});!A&&(e.left>=w.right&&e.top>=w.top||e.left>=w.left&&e.top>=w.bottom)&&(i=p+1)}}return!A&&c&&(A=c,r=u,n=0),A&&A.nodeType==3?IF(A,r):!A||n&&A.nodeType==1?{node:t,offset:i}:cp(A,r)}function IF(t,e){let A=t.nodeValue.length,n=document.createRange();for(let r=0;r<A;r++){n.setEnd(t,r+1),n.setStart(t,r);let i=ur(n,1);if(i.top!=i.bottom&&kc(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function kc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function SF(t,e){let A=t.parentNode;return A&&/^li$/i.test(A.nodeName)&&e.left<t.getBoundingClientRect().left?A:t}function TF(t,e,A){let{node:n,offset:r}=cp(e,A),i=-1;if(n.nodeType==1&&!n.firstChild){let s=n.getBoundingClientRect();i=s.left!=s.right&&A.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(n,r,i)}function _F(t,e,A,n){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!s&&c.left>n.left||c.top>n.top?r=a.posBefore:(!s&&c.right<n.left||c.bottom<n.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText)return(a.node.isBlock?n.top<(c.top+c.bottom)/2:n.left<(c.left+c.right)/2)?a.posBefore:a.posAfter}i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,A,-1)}function up(t,e,A){let n=t.childNodes.length;if(n&&A.top<A.bottom)for(let r=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-A.top)/(A.bottom-A.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let c=0;c<a.length;c++){let u=a[c];if(kc(e,u))return up(s,e,u)}}if((i=(i+1)%n)==r)break}return t}function xF(t,e){let A=t.dom.ownerDocument,n,r=0,i=wF(A,e.left,e.top);i&&({node:n,offset:r}=i);let s=(t.root.elementFromPoint?t.root:A).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!kc(e,u)||(s=up(t.dom,e,u),!s))return null}if(rt)for(let u=s;n&&u;u=Ts(u))u.draggable&&(n=void 0);if(s=SF(s,e),n){if(nn&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let f=n.childNodes[r],p;f.nodeName=="IMG"&&(p=f.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&r++}let u;xs&&r&&n.nodeType==1&&(u=n.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&r--,n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&e.top>n.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||n.nodeType!=1||n.childNodes[r-1].nodeName!="BR")&&(a=_F(t,n,r,e))}a==null&&(a=TF(t,s,e));let c=t.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function fp(t){return t.top<t.bottom||t.left<t.right}function ur(t,e){let A=t.getClientRects();if(A.length){let n=A[e<0?0:A.length-1];if(fp(n))return n}return Array.prototype.find.call(A,fp)||t.getBoundingClientRect()}const OF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dp(t,e,A){let{node:n,offset:r,atom:i}=t.docView.domFromPos(e,A<0?-1:1),s=xs||nn;if(n.nodeType==3)if(s&&(OF.test(n.nodeValue)||(A<0?!r:r==n.nodeValue.length))){let c=ur(Ln(n,r,r),A);if(nn&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ur(Ln(n,r-1,r-1),-1);if(u.top==c.top){let f=ur(Ln(n,r,r+1),-1);if(f.top!=c.top)return Os(f,f.left<u.left)}}return c}else{let c=r,u=r,f=A<0?1:-1;return A<0&&!r?(u++,f=-1):A>=0&&r==n.nodeValue.length?(c--,f=1):A<0?c--:u++,Os(ur(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(A<0||r==Cn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Nc(c.getBoundingClientRect(),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Nc(c.getBoundingClientRect(),!0)}return Nc(n.getBoundingClientRect(),A>=0)}if(i==null&&r&&(A<0||r==Cn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?Ln(c,Cn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Os(ur(u,1),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?Ln(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Os(ur(u,-1),!0)}return Os(ur(n.nodeType==3?Ln(n):n,-A),A>=0)}function Os(t,e){if(t.width==0)return t;let A=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:A,right:A}}function Nc(t,e){if(t.height==0)return t;let A=e?t.top:t.bottom;return{top:A,bottom:A,left:t.left,right:t.right}}function hp(t,e,A){let n=t.state,r=t.root.activeElement;n!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return A()}finally{n!=e&&t.updateState(n),r!=t.dom&&r&&r.focus()}}function LF(t,e,A){let n=e.selection,r=A=="up"?n.$from:n.$to;return hp(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,A=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=dp(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let c;if(a.nodeType==1)c=a.getClientRects();else if(a.nodeType==3)c=Ln(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let f=c[u];if(f.bottom>f.top+1&&(A=="up"?s.top-f.top>(f.bottom-s.top)*2:f.bottom-s.bottom>(s.bottom-f.top)*2))return!1}}return!0})}const HF=/[\u0590-\u08ac]/;function kF(t,e,A){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let r=n.parentOffset,i=!r,s=r==n.parent.content.size,a=t.domSelection();return!HF.test(n.parent.textContent)||!a.modify?A=="left"||A=="backward"?i:s:hp(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:p}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",A,"character");let B=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:w,focusOffset:Q}=t.domSelectionRange(),b=w&&!B.contains(w.nodeType==1?w:w.parentNode)||c==w&&u==Q;try{a.collapse(f,p),c&&(c!=f||u!=p)&&a.extend&&a.extend(c,u)}catch{}return g!=null&&(a.caretBidiLevel=g),b})}let pp=null,gp=null,mp=!1;function NF(t,e,A){return pp==e&&gp==A?mp:(pp=e,gp=A,mp=A=="up"||A=="down"?LF(t,e,A):kF(t,e,A))}const Rt=0,Bp=1,Yr=2,En=3;class Ls{constructor(e,A,n,r){this.parent=e,this.children=A,this.dom=n,this.contentDOM=r,this.dirty=Rt,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,A,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let A=0;A<this.children.length;A++)e+=this.children[A].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 A=0,n=this.posAtStart;;A++){let r=this.children[A];if(r==e)return n;n+=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,A,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let i,s;if(e==this.contentDOM)i=e.childNodes[A-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[A];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=A>RA(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(A==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&A==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,A=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!A||i.node))if(n&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))n=!1;else return i}}getDesc(e){let A=e.pmViewDesc;for(let n=A;n;n=n.parent)if(n==this)return A}posFromDOM(e,A,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,A,n)}return-1}descAt(e){for(let A=0,n=0;A<this.children.length;A++){let r=this.children[A],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,A){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let i=0;n<this.children.length;n++){let s=this.children[n],a=i+s.size;if(a>e||s instanceof yp){r=e-i;break}i=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,A);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof wp&&i.side>=0;n--);if(A<=0){let i,s=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,s=!1);return i&&A&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,A):{node:this.contentDOM,offset:i?RA(i.dom)+1:0}}else{let i,s=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,A):{node:this.contentDOM,offset:i?RA(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,A,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:A,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=n,a=0;;a++){let c=this.children[a],u=s+c.size;if(r==-1&&e<=u){let f=s+c.border;if(e>=f&&A<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,A,f);e=s;for(let p=a;p>0;p--){let g=this.children[p-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=RA(g.dom)+1;break}e-=g.size}r==-1&&(r=0)}if(r>-1&&(u>A||a==this.children.length-1)){A=u;for(let f=a+1;f<this.children.length;f++){let p=this.children[f];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=RA(p.dom);break}A+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:A,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let A=this.children[e<0?0:this.children.length-1];return A.size==0||A.emptyChildAt(e)}domAfterPos(e){let{node:A,offset:n}=this.domFromPos(e,0);if(A.nodeType!=1||n==A.childNodes.length)throw new RangeError("No node after pos "+e);return A.childNodes[n]}setSelection(e,A,n,r=!1){let i=Math.min(e,A),s=Math.max(e,A);for(let g=0,B=0;g<this.children.length;g++){let w=this.children[g],Q=B+w.size;if(i>B&&s<Q)return w.setSelection(e-B-w.border,A-B-w.border,n,r);B=Q}let a=this.domFromPos(e,e?-1:1),c=A==e?a:this.domFromPos(A,A?-1:1),u=n.getSelection(),f=!1;if((nn||rt)&&e==A){let{node:g,offset:B}=a;if(g.nodeType==3){if(f=!!(B&&g.nodeValue[B-1]==`
7
- `),f&&B==g.nodeValue.length)for(let w=g,Q;w;w=w.parentNode){if(Q=w.nextSibling){Q.nodeName=="BR"&&(a=c={node:Q.parentNode,offset:RA(Q)+1});break}let b=w.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let w=g.childNodes[B-1];f=w&&(w.nodeName=="BR"||w.contentEditable=="false")}}if(nn&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let g=u.focusNode.childNodes[u.focusOffset];g&&g.contentEditable=="false"&&(r=!0)}if(!(r||f&&rt)&&Jr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Jr(c.node,c.offset,u.focusNode,u.focusOffset))return;let p=!1;if((u.extend||e==A)&&!f){u.collapse(a.node,a.offset);try{e!=A&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(e>A){let B=a;a=c,c=B}let g=document.createRange();g.setEnd(c.node,c.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,A){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],s=n+i.size;if(n==s?e<=s&&A>=n:e<s&&A>n){let a=n+i.border,c=s-i.border;if(e>=a&&A<=c){this.dirty=e==n||A==s?Yr:Bp,e==a&&A==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=En:i.markDirty(e-a,A-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Yr:En}n=s}this.dirty=Yr}markParentsDirty(){let e=1;for(let A=this.parent;A;A=A.parent,e++){let n=e==1?Yr:Bp;A.dirty<n&&(A.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class wp extends Ls{constructor(e,A,n,r){let i,s=A.type.toDOM;if(typeof s=="function"&&(s=s(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!A.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=A,this.widget=A,i=this}matchesWidget(e){return this.dirty==Rt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let A=this.widget.spec.stopEvent;return A?A(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 side(){return this.widget.type.side}}class DF extends Ls{constructor(e,A,n,r){super(e,[],A,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,A){return e!=this.textDOM?this.posAtStart+(A?this.size:0):this.posAtStart+A}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class zr extends Ls{constructor(e,A,n,r){super(e,[],n,r),this.mark=A}static create(e,A,n,r){let i=r.nodeViews[A.type.name],s=i&&i(A,r,n);return(!s||!s.dom)&&(s=mn.renderSpec(document,A.type.spec.toDOM(A,n))),new zr(e,A,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&En||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=En&&this.mark.eq(e)}markDirty(e,A){if(super.markDirty(e,A),this.dirty!=Rt){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=Rt}}slice(e,A,n){let r=zr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;A<s&&(i=Rc(i,A,s,n)),e>0&&(i=Rc(i,0,e,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class fr extends Ls{constructor(e,A,n,r,i,s,a,c,u){super(e,[],i,s),this.node=A,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,A,n,r,i,s){let a=i.nodeViews[A.type.name],c,u=a&&a(A,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},n,r),f=u&&u.dom,p=u&&u.contentDOM;if(A.isText){if(!f)f=document.createTextNode(A.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:p}=mn.renderSpec(document,A.type.spec.toDOM(A)));!p&&!A.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),A.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Fp(f,n,A),u?c=new MF(e,A,n,r,f,p||null,g,u,i,s+1):A.isText?new Zo(e,A,n,r,f,g,i):new fr(e,A,n,r,f,p||null,g,i,s+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 A=this.children.length-1;A>=0;A--){let n=this.children[A];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Y.empty)}return e}matchesNode(e,A,n){return this.dirty==Rt&&e.eq(this.node)&&Mc(A,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,A){let n=this.node.inlineContent,r=A,i=e.composing?this.localCompositionInfo(e,A):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new KF(this,s&&s.node,e);GF(this.node,this.innerDeco,(u,f,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,e):u.type.side>=0&&!p&&c.syncToMarks(f==this.node.childCount?Ze.none:this.node.child(f).marks,n,e),c.placeWidget(u,e,r)},(u,f,p,g)=>{c.syncToMarks(u.marks,n,e);let B;c.findNodeMatch(u,f,p,g)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(B=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,p,B,e)||c.updateNextNode(u,f,p,e,g,r)||c.addNode(u,f,p,e,r),r+=u.nodeSize}),c.syncToMarks([],n,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Yr)&&(s&&this.protectLocalComposition(e,s),Ep(this.contentDOM,this.children,e),Oi&&WF(this.dom))}localCompositionInfo(e,A){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Ce)||n<A||r>A+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=$F(this.node.content,s,n-A,r-A);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:A,pos:n,text:r}){if(this.getDesc(A))return;let i=A;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new DF(this,i,A,r);e.input.compositionNodes.push(s),this.children=Rc(this.children,n,n+r.length,e,s)}update(e,A,n,r){return this.dirty==En||!e.sameMarkup(this.node)?!1:(this.updateInner(e,A,n,r),!0)}updateInner(e,A,n,r){this.updateOuterDeco(A),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Rt}updateOuterDeco(e){if(Mc(e,this.outerDeco))return;let A=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Qp(this.dom,this.nodeDOM,Dc(this.outerDeco,this.node,A),Dc(e,this.node,A)),this.dom!=n&&(n.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 Cp(t,e,A,n,r){Fp(n,e,t);let i=new fr(void 0,t,e,A,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Zo extends fr{constructor(e,A,n,r,i,s,a){super(e,A,n,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,A,n,r){return this.dirty==En||this.dirty!=Rt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(A),(this.dirty!=Rt||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=Rt,!0)}inParent(){let e=this.parent.contentDOM;for(let A=this.nodeDOM;A;A=A.parentNode)if(A==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,A,n){return e==this.nodeDOM?this.posAtStart+Math.min(A,this.node.text.length):super.localPosFromDOM(e,A,n)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,A,n){let r=this.node.cut(e,A),i=document.createTextNode(r.text);return new Zo(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,A){super.markDirty(e,A),this.dom!=this.nodeDOM&&(e==0||A==this.nodeDOM.nodeValue.length)&&(this.dirty=En)}get domAtom(){return!1}isText(e){return this.node.text==e}}class yp extends Ls{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Rt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class MF extends fr{constructor(e,A,n,r,i,s,a,c,u,f){super(e,A,n,r,i,s,a,u,f),this.spec=c}update(e,A,n,r){if(this.dirty==En)return!1;if(this.spec.update){let i=this.spec.update(e,A,n);return i&&this.updateInner(e,A,n,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,A,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,A,n,r){this.spec.setSelection?this.spec.setSelection(e,A,n):super.setSelection(e,A,n,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 Ep(t,e,A){let n=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=n;)n=bp(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof zr){let c=n?n.previousSibling:t.lastChild;Ep(s.contentDOM,s.children,A),n=c?c.nextSibling:t.firstChild}}for(;n;)n=bp(n),r=!0;r&&A.trackWrites==t&&(A.trackWrites=null)}const Hs=function(t){t&&(this.nodeName=t)};Hs.prototype=Object.create(null);const qr=[new Hs];function Dc(t,e,A){if(t.length==0)return qr;let n=A?qr[0]:new Hs,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new Hs(s.nodeName));for(let a in s){let c=s[a];c!=null&&(A&&r.length==1&&r.push(n=new Hs(e.isInline?"span":"div")),a=="class"?n.class=(n.class?n.class+" ":"")+c:a=="style"?n.style=(n.style?n.style+";":"")+c:a!="nodeName"&&(n[a]=c))}}}return r}function Qp(t,e,A,n){if(A==qr&&n==qr)return e;let r=e;for(let i=0;i<n.length;i++){let s=n[i],a=A[i];if(i){let c;a&&a.nodeName==s.nodeName&&r!=t&&(c=r.parentNode)&&c.nodeName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(r),a=qr[0]),r=c}RF(r,a||qr[0],s)}return r}function RF(t,e,A){for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in A)&&t.removeAttribute(n);for(let n in A)n!="class"&&n!="style"&&n!="nodeName"&&A[n]!=e[n]&&t.setAttribute(n,A[n]);if(e.class!=A.class){let n=e.class?e.class.split(" ").filter(Boolean):[],r=A.class?A.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)r.indexOf(n[i])==-1&&t.classList.remove(n[i]);for(let i=0;i<r.length;i++)n.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=A.style){if(e.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(e.style);)t.style.removeProperty(r[1])}A.style&&(t.style.cssText+=A.style)}}function Fp(t,e,A){return Qp(t,t,qr,Dc(e,A,t.nodeType!=1))}function Mc(t,e){if(t.length!=e.length)return!1;for(let A=0;A<t.length;A++)if(!t[A].type.eq(e[A].type))return!1;return!0}function bp(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class KF{constructor(e,A,n){this.lock=A,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=VF(e.node.content,e)}destroyBetween(e,A){if(e!=A){for(let n=e;n<A;n++)this.top.children[n].destroy();this.top.children.splice(e,A-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,A,n){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=Rt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let u=this.top.children[c];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){a=c;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let c=zr.create(this.top,e[i],A,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,A,n,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,A,n))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,c=Math.min(this.top.children.length,a+5);a<c;a++){let u=this.top.children[a];if(u.matchesNode(e,A,n)&&!this.preMatch.matched.has(u)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,A,n,r,i){let s=this.top.children[r];return s.dirty==En&&s.dom==s.contentDOM&&(s.dirty=Yr),s.update(e,A,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let A=e.parentNode;if(!A)return-1;if(A==this.top.contentDOM){let n=e.pmViewDesc;if(n){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r}return-1}e=A}}updateNextNode(e,A,n,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let c=this.top.children[a];if(c instanceof fr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let f=c.dom,p,g=this.isLocked(f)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=En&&Mc(A,c.outerDeco));if(!g&&c.update(e,A,n,r))return this.destroyBetween(this.index,a),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(p=this.recreateWrapper(c,e,A,n,r,s)))return this.top.children[this.index]=p,p.contentDOM&&(p.dirty=Yr,p.updateChildren(r,s+1),p.dirty=Rt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,A,n,r,i,s){if(e.dirty||A.isAtom||!e.children.length||!e.node.content.eq(A.content))return null;let a=fr.create(this.top,A,n,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let c of a.children)c.parent=a}return e.destroy(),a}addNode(e,A,n,r,i){let s=fr.create(this.top,e,A,n,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,A,n){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 i=new wp(this.top,e,A,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],A=this.top;for(;e instanceof zr;)A=e,e=A.children[A.children.length-1];(!e||!(e instanceof Zo)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((rt||nt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",A),this.addHackNode("BR",this.top))}addHackNode(e,A){if(A==this.top&&this.index<A.children.length&&A.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),e=="BR"&&(n.className="ProseMirror-trailingBreak");let r=new yp(this.top,[],n,null);A!=this.top?A.children.push(r):A.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 VF(t,e){let A=e,n=A.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(n){let u=A.children[n-1];if(u instanceof zr)A=u,n=u.children.length;else{a=u,n--;break}}else{if(A==e)break e;n=A.parent.children.indexOf(A),A=A.parent}let c=a.node;if(c){if(c!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function PF(t,e){return t.type.side-e.type.side}function GF(t,e,A,n){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);n(f,r,e.forChild(i,f),u),i+=f.nodeSize}return}let s=0,a=[],c=null;for(let u=0;;){let f,p;for(;s<r.length&&r[s].to==i;){let b=r[s++];b.widget&&(f?(p||(p=[f])).push(b):f=b)}if(f)if(p){p.sort(PF);for(let b=0;b<p.length;b++)A(p[b],u,!!c)}else A(f,u,!!c);let g,B;if(c)B=-1,g=c,c=null;else if(u<t.childCount)B=u,g=t.child(u++);else break;for(let b=0;b<a.length;b++)a[b].to<=i&&a.splice(b--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let w=i+g.nodeSize;if(g.isText){let b=w;s<r.length&&r[s].from<b&&(b=r[s].from);for(let v=0;v<a.length;v++)a[v].to<b&&(b=a[v].to);b<w&&(c=g.cut(b-i),g=g.cut(0,b-i),w=b,B=-1)}else for(;s<r.length&&r[s].to<w;)s++;let Q=g.isInline&&!g.isLeaf?a.filter(b=>!b.inline):a.slice();n(g,Q,e.forChild(i,g),B),i=w}}function WF(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 $F(t,e,A,n){for(let r=0,i=0;r<t.childCount&&i<=n;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let c=s.text;for(;r<t.childCount;){let u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=A){if(i>=n&&c.slice(n-e.length-a,n-a)==e)return n-e.length;let u=a<n?c.lastIndexOf(e,n-a-1):-1;if(u>=0&&u+e.length+a>=A)return a+u;if(A==n&&c.length>=n+e.length-a&&c.slice(n-a,n-a+e.length)==e)return n}}return-1}function Rc(t,e,A,n,r){let i=[];for(let s=0,a=0;s<t.length;s++){let c=t[s],u=a,f=a+=c.size;u>=A||f<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,n)),r&&(i.push(r),r=void 0),f>A&&i.push(c.slice(A-u,c.size,n)))}return i}function Kc(t,e=null){let A=t.domSelectionRange(),n=t.state.doc;if(!A.focusNode)return null;let r=t.docView.nearestDesc(A.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(A.focusNode,A.focusOffset,1);if(s<0)return null;let a=n.resolve(s),c,u;if(qo(A)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&fe.isSelectable(f)&&r.parent&&!(f.isInline&&mF(A.focusNode,A.focusOffset,r.dom))){let p=r.posBefore;u=new fe(s==p?a:n.resolve(p))}}else{let f=t.docView.posFromDOM(A.anchorNode,A.anchorOffset,1);if(f<0)return null;c=n.resolve(f)}if(!u){let f=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Pc(t,c,a,f)}return u}function Up(t){return t.editable?t.hasFocus():Op(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function kn(t,e=!1){let A=t.state.selection;if(Tp(t,A),!!Up(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&nt){let n=t.domSelectionRange(),r=t.domObserver.currentSelection;if(n.anchorNode&&r.anchorNode&&Jr(n.anchorNode,n.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)XF(t);else{let{anchor:n,head:r}=A,i,s;vp&&!(A instanceof Ce)&&(A.$from.parent.inlineContent||(i=Ip(t,A.from)),!A.empty&&!A.$from.parent.inlineContent&&(s=Ip(t,A.to))),t.docView.setSelection(n,r,t.root,e),vp&&(i&&Sp(i),s&&Sp(s)),A.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&JF(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const vp=rt||nt&&CF<63;function Ip(t,e){let{node:A,offset:n}=t.docView.domFromPos(e,0),r=n<A.childNodes.length?A.childNodes[n]:null,i=n?A.childNodes[n-1]:null;if(rt&&r&&r.contentEditable=="false")return Vc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Vc(r);if(i)return Vc(i)}}function Vc(t){return t.contentEditable="true",rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Sp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function JF(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let A=t.domSelectionRange(),n=A.anchorNode,r=A.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(A.anchorNode!=n||A.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Up(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function XF(t){let e=t.domSelection(),A=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?A.setEnd(n.parentNode,RA(n)+1):A.setEnd(n,0),A.collapse(!1),e.removeAllRanges(),e.addRange(A),!r&&!t.state.selection.visible&&gt&&cr<=11&&(n.disabled=!0,n.disabled=!1)}function Tp(t,e){if(e instanceof fe){let A=t.docView.descAt(e.from);A!=t.lastSelectedViewDesc&&(_p(t),A&&A.selectNode(),t.lastSelectedViewDesc=A)}else _p(t)}function _p(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Pc(t,e,A,n){return t.someProp("createSelectionBetween",r=>r(t,e,A))||Ce.between(e,A,n)}function xp(t){return t.editable&&!t.hasFocus()?!1:Op(t)}function Op(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 YF(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),A=t.domSelectionRange();return Jr(e.node,e.offset,A.anchorNode,A.anchorOffset)}function Gc(t,e){let{$anchor:A,$head:n}=t.selection,r=e>0?A.max(n):A.min(n),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&Fe.findFrom(i,e)}function dr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Lp(t,e,A){let n=t.state.selection;if(n instanceof Ce)if(A.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return dr(t,new Ce(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Gc(t.state,e);return r&&r instanceof fe?dr(t,r):!1}else if(!(Mt&&A.indexOf("m")>-1)){let r=n.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?fe.isSelectable(i)?dr(t,new fe(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):xs?dr(t,new Ce(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof fe&&n.node.isInline)return dr(t,new Ce(e>0?n.$to:n.$from));{let r=Gc(t.state,e);return r?dr(t,r):!1}}}function jo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ks(t,e){let A=t.pmViewDesc;return A&&A.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Hi(t,e){return e<0?zF(t):qF(t)}function zF(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r,i,s=!1;for(nn&&A.nodeType==1&&n<jo(A)&&ks(A.childNodes[n],-1)&&(s=!0);;)if(n>0){if(A.nodeType!=1)break;{let a=A.childNodes[n-1];if(ks(a,-1))r=A,i=--n;else if(a.nodeType==3)A=a,n=A.nodeValue.length;else break}}else{if(Hp(A))break;{let a=A.previousSibling;for(;a&&ks(a,-1);)r=A.parentNode,i=RA(a),a=a.previousSibling;if(a)A=a,n=jo(A);else{if(A=A.parentNode,A==t.dom)break;n=0}}}s?Wc(t,A,n):r&&Wc(t,r,i)}function qF(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r=jo(A),i,s;for(;;)if(n<r){if(A.nodeType!=1)break;let a=A.childNodes[n];if(ks(a,1))i=A,s=++n;else break}else{if(Hp(A))break;{let a=A.nextSibling;for(;a&&ks(a,1);)i=a.parentNode,s=RA(a)+1,a=a.nextSibling;if(a)A=a,n=0,r=jo(A);else{if(A=A.parentNode,A==t.dom)break;n=r=0}}}i&&Wc(t,i,s)}function Hp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function ZF(t,e){for(;t&&e==t.childNodes.length&&!_s(t);)e=RA(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let A=t.childNodes[e];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=0}}function jF(t,e){for(;t&&!e&&!_s(t);)e=RA(t),t=t.parentNode;for(;t&&e;){let A=t.childNodes[e-1];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=t.childNodes.length}}function Wc(t,e,A){if(e.nodeType!=3){let i,s;(s=ZF(e,A))?(e=s,A=0):(i=jF(e,A))&&(e=i,A=i.nodeValue.length)}let n=t.domSelection();if(qo(n)){let i=document.createRange();i.setEnd(e,A),i.setStart(e,A),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(e,A);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&kn(t)},50)}function kp(t,e){let A=t.state.doc.resolve(e);if(!(nt||yF)&&A.parent.inlineContent){let r=t.coordsAtPos(e);if(e>A.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<A.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Np(t,e,A){let n=t.state.selection;if(n instanceof Ce&&!n.empty||A.indexOf("s")>-1||Mt&&A.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Gc(t.state,e);if(s&&s instanceof fe)return dr(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=n instanceof tn?Fe.near(s,e):Fe.findFrom(s,e);return a?dr(t,a):!1}return!1}function Dp(t,e){if(!(t.state.selection instanceof Ce))return!0;let{$head:A,$anchor:n,empty:r}=t.state.selection;if(!A.sameParent(n))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!A.textOffset&&(e<0?A.nodeBefore:A.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(A.pos-i.nodeSize,A.pos):s.delete(A.pos,A.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Mp(t,e,A){t.domObserver.stop(),e.contentEditable=A,t.domObserver.start()}function eb(t){if(!rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:A}=t.domSelectionRange();if(e&&e.nodeType==1&&A==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let n=e.firstChild;Mp(t,n,"true"),setTimeout(()=>Mp(t,n,"false"),20)}return!1}function Ab(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function tb(t,e){let A=e.keyCode,n=Ab(e);if(A==8||Mt&&A==72&&n=="c")return Dp(t,-1)||Hi(t,-1);if(A==46&&!e.shiftKey||Mt&&A==68&&n=="c")return Dp(t,1)||Hi(t,1);if(A==13||A==27)return!0;if(A==37||Mt&&A==66&&n=="c"){let r=A==37?kp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Lp(t,r,n)||Hi(t,r)}else if(A==39||Mt&&A==70&&n=="c"){let r=A==39?kp(t,t.state.selection.from)=="ltr"?1:-1:1;return Lp(t,r,n)||Hi(t,r)}else{if(A==38||Mt&&A==80&&n=="c")return Np(t,-1,n)||Hi(t,-1);if(A==40||Mt&&A==78&&n=="c")return eb(t)||Np(t,1,n)||Hi(t,1);if(n==(Mt?"m":"c")&&(A==66||A==73||A==89||A==90))return!0}return!1}function Rp(t,e){t.someProp("transformCopied",B=>{e=B(e,t)});let A=[],{content:n,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){r--,i--;let B=n.firstChild;A.push(B.type.name,B.attrs!=B.type.defaultAttrs?B.attrs:null),n=B.content}let s=t.someProp("clipboardSerializer")||mn.fromSchema(t.state.schema),a=Xp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,f,p=0;for(;u&&u.nodeType==1&&(f=$p[u.nodeName.toLowerCase()]);){for(let B=f.length-1;B>=0;B--){let w=a.createElement(f[B]);for(;c.firstChild;)w.appendChild(c.firstChild);c.appendChild(w),p++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${p?` -${p}`:""} ${JSON.stringify(A)}`);let g=t.someProp("clipboardTextSerializer",B=>B(e,t))||e.content.textBetween(0,e.content.size,`
1
+ (function(Qe,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(Qe=typeof globalThis<"u"?globalThis:Qe||self,h(Qe.AblokComponents={},Qe.Vue,Qe.core))})(this,function(Qe,h,uh){"use strict";const dE={class:"icon",preserveAspectRatio:"xMaxYMin"},hE=["xlink:href"],pE=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",dE,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,hE)]))],2))}}),e3="",gE={class:"loading-spinner d-block"},mE=h.createElementVNode("span",{class:"loading-spinner__animation"},[h.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[h.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("span",gE,[mE,h.renderSlot(e.$slots,"default")]))}}),A3="",wE=["src","alt"],CE=h.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const e=h.ref(!1);return(A,n)=>{const r=h.resolveComponent("loading-spinner");return t.src?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!e.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!e.value,"opacity-1":e.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>e.value=!0)},null,42,wE)],2)):h.createCommentVNode("",!0)}}}),t3="",yE=["innerHTML"],EE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const e=t,A=h.computed(()=>e.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(A.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createElementVNode("span",{class:"headline__text",innerHTML:n.text},null,8,yE)])]),_:3},8,["class"]))}}),QE=["innerHTML"],FE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${e.size||""} ${e.className||""}`]),innerHTML:e.text},null,10,QE))}});function dA(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const bE={class:"accordion-item"},UE=["id"],vE=["data-bs-target","aria-controls"],IE={class:"flex-grow-1"},SE=["id","aria-labelledby","data-bs-parent"],TE={class:"accordion-body"},_E=["innerHTML"],xE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>dA()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(){n("update:modelValue",!A.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",bE,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[h.renderSlot(i.$slots,"toggle",{},()=>[h.createElementVNode("span",IE,h.toDisplayString(t.title),1)])],10,vE)],8,UE),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",TE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,_E)])])],10,SE)]))}}),n3="",OE=(t,e)=>{const A=t.__vccOpts||t;for(const[n,r]of e)A[n]=r;return A},LE={},HE={class:"accordion"};function kE(t,e){return h.openBlock(),h.createElementBlock("div",HE,[h.renderSlot(t.$slots,"default")])}const NE=OE(LE,[["render",kE]]),DE=["type","disabled"],ME=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const e=t,A=h.computed(()=>e.caption&&!e.circle);return(n,r)=>{const i=h.resolveComponent("loading-spinner"),s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?h.renderSlot(n.$slots,"pending-icon",{key:0},()=>[h.createVNode(i)]):h.createCommentVNode("",!0),h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),A.value?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,DE)}}}),r3="",RE={class:"input-group input__input-group"},KE=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],VE=["for","innerHTML"],PE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",RE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,KE),[[h.vModelDynamic,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,VE)):h.createCommentVNode("",!0)])],2))}}),i3="",GE={class:"input input--textarea"},WE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],$E=["for","innerHTML"],JE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",GE,[h.renderSlot(i.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,WE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append"),h.renderSlot(i.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,$E)])]))}}),XE=["value","id","name","required","disabled","true-value","false-value"],YE=["for","innerHTML"],zE=h.createElementVNode("span",{class:"input__error"},"error",-1),qE=h.defineComponent({__name:"input-checkbox",props:{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},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue||A.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=h.withModifiers(a=>i.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,XE),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,YE),zE]))}}),s3=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
2
+ `,ZE={class:"input-group input__input-group"},jE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],eQ=["for","innerHTML"],AQ=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){const i=A.modelValue&&new Date(`${A.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",ZE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,jE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,eQ)):h.createCommentVNode("",!0)])],2))}}),tQ={class:"check-group"},nQ=["id","name","value","disabled","read-only","required"],rQ=["for","innerHTML"],iQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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 A=t,n=e;h.ref([]);const r=h.computed({get(){return A.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>A.options&&A.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:A.modelValue&&A.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",tQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(c,u)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"form-check"},[h.withDirectives(h.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:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,nQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,rQ)]))),128))]))}}),o3="",sQ={class:"input radio-group"},oQ=["id","name","value","checked","disabled","read-only","required","onChange"],aQ=["for","innerHTML"],lQ=["for"],fh=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:e}){const A=t,n=e;h.ref(A.options.map(i=>i.value===A.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",sQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,oQ),h.renderSlot(i.$slots,"option-label",{option:a,index:c},()=>[h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,aQ)])]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,lQ)):h.createCommentVNode("",!0)])]))}}),a3="",cQ=["id","name","multiple","accept","disabled"],uQ={class:"input__input-group input-group"},fQ=["value","id","name","disabled"],dQ=["for","disabled"],hQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),pQ=["for"],gQ=["innerHTML"],mQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=h.ref(),s=h.reactive([]),a=h.computed(()=>s&&s.map(c=>c.name));return h.computed(()=>s.map(c=>URL.createObjectURL(c))),h.watch(()=>A.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),h.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,cQ),h.createElementVNode("div",uQ,[h.renderSlot(c.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,fQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[hQ])],8,dQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,gQ)])],8,pQ)]))}});function MA(t){this.content=t}MA.prototype={constructor:MA,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,A){var n=A&&A!=t?this.remove(A):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(A||t,e):(i[r+1]=e,A&&(i[r]=A)),new MA(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var A=this.content.slice();return A.splice(e,2),new MA(A)},addToStart:function(t,e){return new MA([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var A=this.remove(t).content.slice();return A.push(t,e),new MA(A)},addBefore:function(t,e,A){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,A),new MA(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=MA.from(t),t.size?new MA(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=MA.from(t),t.size?new MA(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=MA.from(t);for(var A=0;A<t.content.length;A+=2)e=e.remove(t.content[A]);return e},toObject:function(){var t={};return this.forEach(function(e,A){t[e]=A}),t},get size(){return this.content.length>>1}},MA.from=function(t){if(t instanceof MA)return t;var e=[];if(t)for(var A in t)e.push(A,t[A]);return new MA(e)};function dh(t,e,A){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:A;let r=t.child(n),i=e.child(n);if(r==i){A+=r.nodeSize;continue}if(!r.sameMarkup(i))return A;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)A++;return A}if(r.content.size||i.content.size){let s=dh(r.content,i.content,A+1);if(s!=null)return s}A+=r.nodeSize}}function hh(t,e,A,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:A,b:n};let s=t.child(--r),a=e.child(--i),c=s.nodeSize;if(s==a){A-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:A,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,A--,n--;return{a:A,b:n}}if(s.content.size||a.content.size){let u=hh(s.content,a.content,A-1,n-1);if(u)return u}A-=c,n-=c}}class Y{constructor(e,A){if(this.content=e,this.size=A||0,A==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,A,n,r=0,i){for(let s=0,a=0;a<A;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,e-f),Math.min(c.content.size,A-f),n,r+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,A,n,r){let i="",s=!0;return this.nodesBetween(e,A,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,A-c):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)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let A=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(A.isText&&A.sameMarkup(n)&&(r[r.length-1]=A.withText(A.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Y(r,this.size+e.size)}cut(e,A=this.size){if(e==0&&A==this.size)return this;let n=[],r=0;if(A>e)for(let i=0,s=0;s<A;i++){let a=this.content[i],c=s+a.nodeSize;c>e&&((s<e||c>A)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,A-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,A-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(e,A){return e==A?Y.empty:e==0&&A==this.content.length?this:new Y(this.content.slice(e,A))}replaceChild(e,A){let n=this.content[e];if(n==A)return this;let r=this.content.slice(),i=this.size+A.nodeSize-n.nodeSize;return r[e]=A,new Y(r,i)}addToStart(e){return new Y([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Y(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let A=0;A<this.content.length;A++)if(!this.content[A].eq(e.content[A]))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 A=this.content[e];if(!A)throw new RangeError("Index "+e+" out of range for "+this);return A}maybeChild(e){return this.content[e]||null}forEach(e){for(let A=0,n=0;A<this.content.length;A++){let r=this.content[A];e(r,n,A),n+=r.nodeSize}}findDiffStart(e,A=0){return dh(this,e,A)}findDiffEnd(e,A=this.size,n=e.size){return hh(this,e,A,n)}findIndex(e,A=-1){if(e==0)return ko(0,e);if(e==this.size)return ko(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e||A>0?ko(n+1,s):ko(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,A){if(!A)return Y.empty;if(!Array.isArray(A))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(A.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Y.empty;let A,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(A||(A=e.slice(0,r)),A[A.length-1]=i.withText(A[A.length-1].text+i.text)):A&&A.push(i)}return new Y(A||e,n)}static from(e){if(!e)return Y.empty;if(e instanceof Y)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Y([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,e){return gc.index=t,gc.offset=e,gc}function No(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let A=Array.isArray(t);if(Array.isArray(e)!=A)return!1;if(A){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!No(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!No(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let Ze=class ah{constructor(e,A){this.type=e,this.attrs=A}addToSet(e){let A,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))A||(A=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(A||(A=e.slice(0,r)),A.push(this),n=!0),A&&A.push(i)}}return A||(A=e.slice()),n||A.push(this),A}removeFromSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return e.slice(0,A).concat(e.slice(A+1));return e}isInSet(e){for(let A=0;A<e.length;A++)if(this.eq(e[A]))return!0;return!1}eq(e){return this==e||this.type==e.type&&No(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let A in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[A.type];if(!n)throw new RangeError(`There is no mark type ${A.type} in this schema`);return n.create(A.attrs)}static sameSet(e,A){if(e==A)return!0;if(e.length!=A.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(A[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return ah.none;if(e instanceof ah)return[e];let A=e.slice();return A.sort((n,r)=>n.type.rank-r.type.rank),A}};Ze.none=[];class Do extends Error{}class j{constructor(e,A,n){this.content=e,this.openStart=A,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,A){let n=gh(this.content,e+this.openStart,A);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(e,A){return new j(ph(this.content,e+this.openStart,A+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,A){if(!A)return j.empty;let n=A.openStart||0,r=A.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(e,A.content),n,r)}static maxOpen(e,A=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(A||!i.type.spec.isolating);i=i.lastChild)r++;return new j(e,n,r)}}j.empty=new j(Y.empty,0,0);function ph(t,e,A){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(A);if(r==e||i.isText){if(a!=A&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(A))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ph(i.content,e-r-1,A-r-1)))}function gh(t,e,A,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,A)?null:t.cut(0,e).append(A).append(t.cut(e));let a=gh(s.content,e-i-1,A);return a&&t.replaceChild(r,s.copy(a))}function BQ(t,e,A){if(A.openStart>t.depth)throw new Do("Inserted content deeper than insertion position");if(t.depth-A.openStart!=e.depth-A.openEnd)throw new Do("Inconsistent open depths");return mh(t,e,A,0)}function mh(t,e,A,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-A.openStart){let s=mh(t,e,A,n+1);return i.copy(i.content.replaceChild(r,s))}else if(A.content.size)if(!A.openStart&&!A.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(A.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=wQ(A,t);return Gr(i,wh(t,s,a,e,n))}else return Gr(i,Mo(t,e,n))}function Bh(t,e){if(!e.type.compatibleContent(t.type))throw new Do("Cannot join "+e.type.name+" onto "+t.type.name)}function mc(t,e,A){let n=t.node(A);return Bh(n,e.node(A)),n}function Pr(t,e){let A=e.length-1;A>=0&&t.isText&&t.sameMarkup(e[A])?e[A]=t.withText(e[A].text+t.text):e.push(t)}function Qs(t,e,A,n){let r=(e||t).node(A),i=0,s=e?e.index(A):r.childCount;t&&(i=t.index(A),t.depth>A?i++:t.textOffset&&(Pr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Pr(r.child(a),n);e&&e.depth==A&&e.textOffset&&Pr(e.nodeBefore,n)}function Gr(t,e){return t.type.checkContent(e),t.copy(e)}function wh(t,e,A,n,r){let i=t.depth>r&&mc(t,e,r+1),s=n.depth>r&&mc(A,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&e.index(r)==A.index(r)?(Bh(i,s),Pr(Gr(i,wh(t,e,A,n,r+1)),a)):(i&&Pr(Gr(i,Mo(t,e,r+1)),a),Qs(e,A,r,a),s&&Pr(Gr(s,Mo(A,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,e,A){let n=[];if(Qs(null,t,A,n),t.depth>A){let r=mc(t,e,A+1);Pr(Gr(r,Mo(t,e,A+1)),n)}return Qs(e,null,A,n),new Y(n)}function wQ(t,e){let A=e.depth-t.openStart,r=e.node(A).copy(t.content);for(let i=A-1;i>=0;i--)r=e.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+A),end:r.resolveNoCache(r.content.size-t.openEnd-A)}}class Fs{constructor(e,A,n){this.pos=e,this.path=A,this.parentOffset=n,this.depth=A.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,A=this.index(this.depth);if(A==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(A);return n?e.child(A).cut(n):r}get nodeBefore(){let e=this.index(this.depth),A=this.pos-this.path[this.path.length-1];return A?this.parent.child(e).cut(0,A):e==0?null:this.parent.child(e-1)}posAtIndex(e,A){A=this.resolveDepth(A);let n=this.path[A*3],r=A==0?0:this.path[A*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,A=this.index();if(e.content.size==0)return Ze.none;if(this.textOffset)return e.child(A).marks;let n=e.maybeChild(A-1),r=e.maybeChild(A);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let A=this.parent.maybeChild(this.index());if(!A||!A.isInline)return null;let n=A.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let A=this.depth;A>0;A--)if(this.start(A)<=e&&this.end(A)>=e)return A;return 0}blockRange(e=this,A){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!A||A(this.node(n))))return new Ro(this,e,n);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 A=1;A<=this.depth;A++)e+=(e?"/":"")+this.node(A).type.name+"_"+this.index(A-1);return e+":"+this.parentOffset}static resolve(e,A){if(!(A>=0&&A<=e.content.size))throw new RangeError("Position "+A+" out of range");let n=[],r=0,i=A;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(A,n,i)}static resolveCached(e,A){for(let r=0;r<Bc.length;r++){let i=Bc[r];if(i.pos==A&&i.doc==e)return i}let n=Bc[wc]=Fs.resolve(e,A);return wc=(wc+1)%CQ,n}}let Bc=[],wc=0,CQ=12;class Ro{constructor(e,A,n){this.$from=e,this.$to=A,this.depth=n}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 yQ=Object.create(null);let Wr=class lh{constructor(e,A,n,r=Ze.none){this.type=e,this.attrs=A,this.marks=r,this.content=n||Y.empty}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,A,n,r=0){this.content.nodesBetween(e,A,n,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,A,n,r){return this.content.textBetween(e,A,n,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,A,n){return this.type==e&&No(this.attrs,A||e.defaultAttrs||yQ)&&Ze.sameSet(this.marks,n||Ze.none)}copy(e=null){return e==this.content?this:new lh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new lh(this.type,this.attrs,this.content,e)}cut(e,A=this.content.size){return e==0&&A==this.content.size?this:this.copy(this.content.cut(e,A))}slice(e,A=this.content.size,n=!1){if(e==A)return j.empty;let r=this.resolve(e),i=this.resolve(A),s=n?0:r.sharedDepth(A),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(e,A,n){return BQ(this.resolve(e),this.resolve(A),n)}nodeAt(e){for(let A=this;;){let{index:n,offset:r}=A.content.findIndex(e);if(A=A.maybeChild(n),!A)return null;if(r==e||A.isText)return A;e-=r+1}}childAfter(e){let{index:A,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(A),index:A,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:A,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(A),index:A,offset:n};let r=this.content.child(A-1);return{node:r,index:A-1,offset:n-r.nodeSize}}resolve(e){return Fs.resolveCached(this,e)}resolveNoCache(e){return Fs.resolve(this,e)}rangeHasMark(e,A,n){let r=!1;return A>e&&this.nodesBetween(e,A,i=>(n.isInSet(i.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()+")"),Ch(this.marks,e)}contentMatchAt(e){let A=this.type.contentMatch.matchFragment(this.content,0,e);if(!A)throw new Error("Called contentMatchAt on a node with invalid content");return A}canReplace(e,A,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,A);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(e,A,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,A);return s?s.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);let e=Ze.none;for(let A=0;A<this.marks.length;A++)e=this.marks[A].addToSet(e);if(!Ze.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(A=>A.type.name)}`);this.content.forEach(A=>A.check())}toJSON(){let e={type:this.type.name};for(let A 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(A=>A.toJSON())),e}static fromJSON(e,A){if(!A)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(A.marks){if(!Array.isArray(A.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=A.marks.map(e.markFromJSON)}if(A.type=="text"){if(typeof A.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(A.text,n)}let r=Y.fromJSON(e,A.content);return e.nodeType(A.type).create(A.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(e,A,n,r){if(super(e,A,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ch(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,A){return this.text.slice(e,A)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ko(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ko(this.type,this.attrs,e,this.marks)}cut(e=0,A=this.text.length){return e==0&&A==this.text.length?this:this.withText(this.text.slice(e,A))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ch(t,e){for(let A=t.length-1;A>=0;A--)e=t[A].type.name+"("+e+")";return e}class $r{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,A){let n=new EQ(e,A);if(n.next==null)return $r.empty;let r=yh(n);n.next&&n.err("Unexpected trailing text");let i=SQ(IQ(r));return TQ(i,n),i}matchType(e){for(let A=0;A<this.next.length;A++)if(this.next[A].type==e)return this.next[A].next;return null}matchFragment(e,A=0,n=e.childCount){let r=this;for(let i=A;r&&i<n;i++)r=r.matchType(e.child(i).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:A}=this.next[e];if(!(A.isText||A.hasRequiredAttrs()))return A}return null}compatible(e){for(let A=0;A<this.next.length;A++)for(let n=0;n<e.next.length;n++)if(this.next[A].type==e.next[n].type)return!0;return!1}fillBefore(e,A=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(e,n);if(c&&(!A||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let g=i(p,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let A=this.computeWrapping(e);return this.wrapCache.push(e,A),A}computeWrapping(e){let A=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in A)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),A[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 A(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&A(n.next[r].next)}return A(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
3
+ `)}}$r.empty=new $r(!0);class EQ{constructor(e,A){this.string=e,this.nodeTypes=A,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 yh(t){let e=[];do e.push(QQ(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function QQ(t){let e=[];do e.push(FQ(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function FQ(t){let e=vQ(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=bQ(t,e);else break;return e}function Eh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function bQ(t,e){let A=Eh(t),n=A;return t.eat(",")&&(t.next!="}"?n=Eh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:A,max:n,expr:e}}function UQ(t,e){let A=t.nodeTypes,n=A[e];if(n)return[n];let r=[];for(let i in A){let s=A[i];s.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function vQ(t){if(t.eat("(")){let e=yh(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=UQ(t,t.next).map(A=>(t.inline==null?t.inline=A.isInline:t.inline!=A.isInline&&t.err("Mixing inline and block content"),{type:"name",value:A}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function IQ(t){let e=[[]];return r(i(t,0),A()),e;function A(){return e.push([])-1}function n(s,a,c){let u={term:c,to:a};return e[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=A())}else if(s.type=="star"){let c=A();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=A();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let f=A();r(i(s.expr,c),f),c=f}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let f=A();n(c,f),r(i(s.expr,c),f),c=f}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Qh(t,e){return e-t}function Fh(t,e){let A=[];return n(e),A.sort(Qh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);A.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&A.indexOf(c)==-1&&n(c)}}}function SQ(t){let e=Object.create(null);return A(Fh(t,0));function A(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);Fh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=e[n.join(",")]=new $r(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Qh);i.next.push({type:r[s][0],next:e[a.join(",")]||A(a)})}return i}}function TQ(t,e){for(let A=0,n=[t];A<n.length;A++){let r=n[A],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function bh(t){let e=Object.create(null);for(let A in t){let n=t[A];if(!n.hasDefault)return null;e[A]=n.default}return e}function Uh(t,e){let A=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}A[n]=r}return A}function vh(t){let e=Object.create(null);if(t)for(let A in t)e[A]=new _Q(t[A]);return e}let Ih=class fE{constructor(e,A,n){this.name=e,this.schema=A,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=vh(n.attrs),this.defaultAttrs=bh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$r.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:Uh(this.attrs,e)}create(e=null,A,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(e),Y.from(A),Ze.setFrom(n))}createChecked(e=null,A,n){return A=Y.from(A),this.checkContent(A),new Wr(this,this.computeAttrs(e),A,Ze.setFrom(n))}createAndFill(e=null,A,n){if(e=this.computeAttrs(e),A=Y.from(A),A.size){let s=this.contentMatch.fillBefore(A);if(!s)return null;A=s.append(A)}let r=this.contentMatch.matchFragment(A),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,e,A.append(i),Ze.setFrom(n)):null}validContent(e){let A=this.contentMatch.matchFragment(e);if(!A||!A.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).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)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let A=0;A<e.length;A++)if(!this.allowsMarkType(e[A].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let A;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?A&&A.push(e[n]):A||(A=e.slice(0,n));return A?A.length?A:Ze.none:e}static compile(e,A){let n=Object.create(null);e.forEach((i,s)=>n[i]=new fE(i,A,s));let r=A.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class _Q{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Vo{constructor(e,A,n,r){this.name=e,this.rank=A,this.schema=n,this.spec=r,this.attrs=vh(r.attrs),this.excluded=null;let i=bh(this.attrs);this.instance=i?new Ze(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ze(this,Uh(this.attrs,e))}static compile(e,A){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new Vo(i,r++,A,s)),n}removeFromSet(e){for(var A=0;A<e.length;A++)e[A].type==this&&(e=e.slice(0,A).concat(e.slice(A+1)),A--);return e}isInSet(e){for(let A=0;A<e.length;A++)if(e[A].type==this)return e[A]}excludes(e){return this.excluded.indexOf(e)>-1}}class xQ{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let A=this.spec={};for(let r in e)A[r]=e[r];A.nodes=MA.from(e.nodes),A.marks=MA.from(e.marks||{}),this.nodes=Ih.compile(this.spec.nodes,this),this.marks=Vo.compile(this.spec.marks,this);let n=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 i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=$r.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Sh(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Sh(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,A=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ih){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(A,n,r)}text(e,A){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,e,Ze.setFrom(A))}mark(e,A){return typeof e=="string"&&(e=this.marks[e]),e.create(A)}nodeFromJSON(e){return Wr.fromJSON(this,e)}markFromJSON(e){return Ze.fromJSON(this,e)}nodeType(e){let A=this.nodes[e];if(!A)throw new RangeError("Unknown node type: "+e);return A}}function Sh(t,e){let A=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)A.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&A.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return A}function OQ(t){return t.tag!=null}function LQ(t){return t.style!=null}class Fi{constructor(e,A){this.schema=e,this.rules=A,this.tags=[],this.styles=[],A.forEach(n=>{OQ(n)?this.tags.push(n):LQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=e.nodes[n.node];return r.contentMatch.matchType(r)})}parse(e,A={}){let n=new Oh(this,A,!1);return n.addAll(e,A.from,A.to),n.finish()}parseSlice(e,A={}){let n=new Oh(this,A,!0);return n.addAll(e,A.from,A.to),j.maxOpen(n.finish())}matchTag(e,A,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(NQ(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||A.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,A,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=A))){if(s.getAttrs){let c=s.getAttrs(A);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let A=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<A.length;s++){let a=A[s];if((a.priority==null?50:a.priority)<i)break}A.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return A}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Fi(e,Fi.schemaRules(e)))}}const Th={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},HQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_h={ol:!0,ul:!0},Po=1,Go=2,bs=4;function xh(t,e,A){return e!=null?(e?Po:0)|(e==="full"?Go:0):t&&t.whitespace=="pre"?Po|Go:A&~bs}class Wo{constructor(e,A,n,r,i,s,a){this.type=e,this.attrs=A,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Ze.none,this.stashMarks=[],this.match=s||(a&bs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let A=this.type.contentMatch.fillBefore(Y.from(e));if(A)this.match=this.type.contentMatch.matchFragment(A);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Po)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let A=Y.from(this.content);return!e&&this.match&&(A=A.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,A,this.marks):A}popFromStashMark(e){for(let A=this.stashMarks.length-1;A>=0;A--)if(e.eq(this.stashMarks[A]))return this.stashMarks.splice(A,1)[0]}applyPending(e){for(let A=0,n=this.pendingMarks;A<n.length;A++){let r=n[A];(this.type?this.type.allowsMarkType(r.type):DQ(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Th.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Oh{constructor(e,A,n){this.parser=e,this.options=A,this.isOpen=n,this.open=0;let r=A.topNode,i,s=xh(null,A.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,Ze.none,Ze.none,!0,A.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,Ze.none,Ze.none,!0,null,s):i=new Wo(e.schema.topNodeType,null,Ze.none,Ze.none,!0,null,s),this.nodes=[i],this.find=A.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,A){let n=e.style;if(!n||!n.length)return A();let r=this.readStyles(e.style);if(!r)return;let[i,s]=r,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);A();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let A=e.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(A)){if(n.options&Po)n.options&Go?A=A.replace(/\r\n?/g,`
4
+ `):A=A.replace(/\r?\n|\r/g," ");else if(A=A.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(A)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(A=A.slice(1))}A&&this.insertNode(this.parser.schema.text(A)),this.findInText(e)}else this.findInside(e)}addElement(e,A){let n=e.nodeName.toLowerCase(),r;_h.hasOwnProperty(n)&&this.parser.normalizeLists&&kQ(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,A));if(i?i.ignore:HQ.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,a=this.top,c=this.needsBlock;if(Th.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?r:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
5
+ `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let A=Ze.none,n=Ze.none;for(let r=0,i=e.length;r<i;r++){let s=e.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,e.getPropertyValue(s),this,a);if(!c)break;if(c.ignore)return null;if(c.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(u=>{c.clearMark(u)&&(n=u.addToSet(n))}):A=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(A),c.consuming===!1)a=c;else break}}return[A,n]}addElementByRule(e,A,n){let r,i,s;A.node?(i=this.parser.schema.nodes[A.node],i.isLeaf?this.insertNode(i.create(A.attrs))||this.leafFallback(e):r=this.enter(i,A.attrs||null,A.preserveWhitespace)):(s=this.parser.schema.marks[A.mark].create(A.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(A.getContent)this.findInside(e),A.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof A.contentElement=="string"?c=e.querySelector(A.contentElement):typeof A.contentElement=="function"?c=A.contentElement(e):A.contentElement&&(c=A.contentElement),this.findAround(e,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,A,n){let r=A||0;for(let i=A?e.childNodes[A]:e.firstChild,s=n==null?null:e.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let A,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(e);if(s&&(!A||A.length>s.length)&&(A=s,n=i,!s.length)||i.solid)break}if(!A)return!1;this.sync(n);for(let r=0;r<A.length;r++)this.enterInner(A[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let A=this.textblockFromContext();A&&this.enterInner(A)}if(this.findPlace(e)){this.closeExtra();let A=this.top;A.applyPending(e.type),A.match&&(A.match=A.match.matchType(e.type));let n=A.activeMarks;for(let r=0;r<e.marks.length;r++)(!A.type||A.type.allowsMarkType(e.marks[r].type))&&(n=e.marks[r].addToSet(n));return A.content.push(e.mark(n)),!0}return!1}enter(e,A,n){let r=this.findPlace(e.create(A));return r&&this.enterInner(e,A,!0,n),r}enterInner(e,A=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=xh(e,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new Wo(e,A,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(e=!1){let A=this.nodes.length-1;if(A>this.open){for(;A>this.open;A--)this.nodes[A-1].content.push(this.nodes[A].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 A=this.open;A>=0;A--)if(this.nodes[A]==e)return this.open=A,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let A=this.open;A>=0;A--){let n=this.nodes[A].content;for(let r=n.length-1;r>=0;r--)e+=n[r].nodeSize;A&&e++}return e}findAtPoint(e,A){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==A&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].pos==null&&e.nodeType==1&&e.contains(this.find[A].node)&&(this.find[A].pos=this.currentPos)}findAround(e,A,n){if(e!=A&&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)&&A.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let A=0;A<this.find.length;A++)this.find[A].node==e&&(this.find[A].pos=this.currentPos-(e.nodeValue.length-this.find[A].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let A=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),s=(a,c)=>{for(;a>=0;a--){let u=A[a];if(u==""){if(a==A.length-1||a==0)continue;for(;c>=i;c--)if(s(a-1,c))return!0;return!1}else{let f=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!f||f.name!=u&&f.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(A.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let A=e.depth;A>=0;A--){let n=e.node(A).contentMatchAt(e.indexAfter(A)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let A in this.parser.schema.nodes){let n=this.parser.schema.nodes[A];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(e){let A=MQ(e,this.top.pendingMarks);A&&this.top.stashMarks.push(A),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,A){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let s=r.popFromStashMark(e);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==A)break}}}function kQ(t){for(let e=t.firstChild,A=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&_h.hasOwnProperty(n)&&A?(A.appendChild(e),e=A):n=="li"?A=e:n&&(A=null)}}function NQ(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Lh(t){let e={};for(let A in t)e[A]=t[A];return e}function DQ(t,e){let A=e.schema.nodes;for(let n in A){let r=A[n];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let c=0;c<a.edgeCount;c++){let{type:u,next:f}=a.edge(c);if(u==e||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function MQ(t,e){for(let A=0;A<e.length;A++)if(t.eq(e[A]))return e[A]}class mn{constructor(e,A){this.nodes=e,this.marks=A}serializeFragment(e,A={},n){n||(n=Cc(A).createDocumentFragment());let r=n,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,c=0;for(;a<i.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,c++}for(;a<i.length;)r=i.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],f=this.serializeMark(u,s.isInline,A);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,A))}),n}serializeNodeInner(e,A){let{dom:n,contentDOM:r}=mn.renderSpec(Cc(A),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,A,r)}return n}serializeNode(e,A={}){let n=this.serializeNodeInner(e,A);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,A);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,A,n={}){let r=this.marks[e.type.name];return r&&mn.renderSpec(Cc(n),r(e,A))}static renderSpec(e,A,n=null){if(typeof A=="string")return{dom:e.createTextNode(A)};if(A.nodeType!=null)return{dom:A};if(A.dom&&A.dom.nodeType!=null)return A;let r=A[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?e.createElementNS(n,r):e.createElement(r),c=A[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let f in c)if(c[f]!=null){let p=f.indexOf(" ");p>0?a.setAttributeNS(f.slice(0,p),f.slice(p+1),c[f]):a.setAttribute(f,c[f])}}for(let f=u;f<A.length;f++){let p=A[f];if(p===0){if(f<A.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:g,contentDOM:B}=mn.renderSpec(e,p,n);if(a.appendChild(g),B){if(s)throw new RangeError("Multiple content holes");s=B}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new mn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let A=Hh(e.nodes);return A.text||(A.text=n=>n.text),A}static marksFromSchema(e){return Hh(e.marks)}}function Hh(t){let e={};for(let A in t){let n=t[A].spec.toDOM;n&&(e[A]=n)}return e}function Cc(t){return t.document||window.document}const kh=65535,Nh=Math.pow(2,16);function RQ(t,e){return t+e*Nh}function Dh(t){return t&kh}function KQ(t){return(t-(t&kh))/Nh}const Mh=1,Rh=2,$o=4,Kh=8;class yc{constructor(e,A,n){this.pos=e,this.delInfo=A,this.recover=n}get deleted(){return(this.delInfo&Kh)>0}get deletedBefore(){return(this.delInfo&(Mh|$o))>0}get deletedAfter(){return(this.delInfo&(Rh|$o))>0}get deletedAcross(){return(this.delInfo&$o)>0}}class Ut{constructor(e,A=!1){if(this.ranges=e,this.inverted=A,!e.length&&Ut.empty)return Ut.empty}recover(e){let A=0,n=Dh(e);if(!this.inverted)for(let r=0;r<n;r++)A+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+A+KQ(e)}mapResult(e,A=1){return this._map(e,A,!1)}map(e,A=1){return this._map(e,A,!0)}_map(e,A,n){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(e<=p){let g=u?e==c?-1:e==p?1:A:A,B=c+r+(g<0?0:f);if(n)return B;let w=e==(A<0?c:p)?null:RQ(a/3,e-c),Q=e==c?Rh:e==p?Mh:$o;return(A<0?e!=c:e!=p)&&(Q|=Kh),new yc(B,Q,w)}r+=f-u}return n?e+r:new yc(e+r,0,null)}touches(e,A){let n=0,r=Dh(A),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?n:0);if(c>e)break;let u=this.ranges[a+i],f=c+u;if(e<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(e){let A=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),c=s+(this.inverted?0:i),u=this.ranges[r+A],f=this.ranges[r+n];e(a,a+u,c,c+f),i+=f-u}}invert(){return new Ut(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Ut.empty:new Ut(e<0?[0,-e,0]:[0,0,e])}}Ut.empty=new Ut([]);class bi{constructor(e=[],A,n=0,r=e.length){this.maps=e,this.mirror=A,this.from=n,this.to=r}slice(e=0,A=this.maps.length){return new bi(this.maps,this.mirror,e,A)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,A){this.to=this.maps.push(e),A!=null&&this.setMirror(this.maps.length-1,A)}appendMapping(e){for(let A=0,n=this.maps.length;A<e.maps.length;A++){let r=e.getMirror(A);this.appendMap(e.maps[A],r!=null&&r<A?n+r:void 0)}}getMirror(e){if(this.mirror){for(let A=0;A<this.mirror.length;A++)if(this.mirror[A]==e)return this.mirror[A+(A%2?-1:1)]}}setMirror(e,A){this.mirror||(this.mirror=[]),this.mirror.push(e,A)}appendMappingInverted(e){for(let A=e.maps.length-1,n=this.maps.length+e.maps.length;A>=0;A--){let r=e.getMirror(A);this.appendMap(e.maps[A].invert(),r!=null&&r>A?n-r-1:void 0)}}invert(){let e=new bi;return e.appendMappingInverted(this),e}map(e,A=1){if(this.mirror)return this._map(e,A,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,A);return e}mapResult(e,A=1){return this._map(e,A,!1)}_map(e,A,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(e,A);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return n?e:new yc(e,r,null)}}const Ec=Object.create(null);class JA{getMap(){return Ut.empty}merge(e){return null}static fromJSON(e,A){if(!A||!A.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Ec[A.stepType];if(!n)throw new RangeError(`No step type ${A.stepType} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Ec)throw new RangeError("Duplicate use of step JSON ID "+e);return Ec[e]=A,A.prototype.jsonID=e,A}}class QA{constructor(e,A){this.doc=e,this.failed=A}static ok(e){return new QA(e,null)}static fail(e){return new QA(null,e)}static fromReplace(e,A,n,r){try{return QA.ok(e.replace(A,n,r))}catch(i){if(i instanceof Do)return QA.fail(i.message);throw i}}}function Qc(t,e,A){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Qc(i.content,e,i))),i.isInline&&(i=e(i,A,r)),n.push(i)}return Y.fromArray(n)}class sr extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Qc(A.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,i)}invert(){return new Bn(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new sr(A.pos,n.pos,this.mark)}merge(e){return e instanceof sr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new sr(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,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("addMark",sr);class Bn extends JA{constructor(e,A,n){super(),this.from=e,this.to=A,this.mark=n}apply(e){let A=e.slice(this.from,this.to),n=new j(Qc(A.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),A.openStart,A.openEnd);return QA.fromReplace(e,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deleted&&n.deleted||A.pos>=n.pos?null:new Bn(A.pos,n.pos,this.mark)}merge(e){return e instanceof Bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Bn(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,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Bn(A.from,A.to,e.markFromJSON(A.mark))}}JA.jsonID("removeMark",Bn);class or extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.addToSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);if(A){let n=this.mark.addToSet(A.marks);if(n.length==A.marks.length){for(let r=0;r<A.marks.length;r++)if(!A.marks[r].isInSet(n))return new or(this.pos,A.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new or(A.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("addNodeMark",or);class Ui extends JA{constructor(e,A){super(),this.pos=e,this.mark=A}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at mark step's position");let n=A.type.create(A.attrs,null,this.mark.removeFromSet(A.marks));return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(n),0,A.isLeaf?0:1))}invert(e){let A=e.nodeAt(this.pos);return!A||!this.mark.isInSet(A.marks)?this:new or(this.pos,this.mark)}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Ui(A.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(A.pos,e.markFromJSON(A.mark))}}JA.jsonID("removeNodeMark",Ui);class xA extends JA{constructor(e,A,n,r=!1){super(),this.from=e,this.to=A,this.slice=n,this.structure=r}apply(e){return this.structure&&Fc(e,this.from,this.to)?QA.fail("Structure replace would overwrite content"):QA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(e){return new xA(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return A.deletedAcross&&n.deletedAcross?null:new xA(A.pos,Math.max(A.pos,n.pos),this.slice)}merge(e){if(!(e instanceof xA)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let A=this.slice.size+e.slice.size==0?j.empty:new j(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new xA(this.from,this.to+(e.to-e.from),A,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let A=this.slice.size+e.slice.size==0?j.empty:new j(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new xA(e.from,this.to,A,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,A){if(typeof A.from!="number"||typeof A.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xA(A.from,A.to,j.fromJSON(e,A.slice),!!A.structure)}}JA.jsonID("replace",xA);class OA extends JA{constructor(e,A,n,r,i,s,a=!1){super(),this.from=e,this.to=A,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(Fc(e,this.from,this.gapFrom)||Fc(e,this.gapTo,this.to)))return QA.fail("Structure gap-replace would overwrite content");let A=e.slice(this.gapFrom,this.gapTo);if(A.openStart||A.openEnd)return QA.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,A.content);return n?QA.fromReplace(e,this.from,this.to,n):QA.fail("Content does not fit in gap")}getMap(){return new Ut([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let A=this.gapTo-this.gapFrom;return new OA(this.from,this.from+this.slice.size+A,this.from+this.insert,this.from+this.insert+A,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let A=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?A.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return A.deletedAcross&&n.deletedAcross||r<A.pos||i>n.pos?null:new OA(A.pos,n.pos,r,i,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,A){if(typeof A.from!="number"||typeof A.to!="number"||typeof A.gapFrom!="number"||typeof A.gapTo!="number"||typeof A.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new OA(A.from,A.to,A.gapFrom,A.gapTo,j.fromJSON(e,A.slice),A.insert,!!A.structure)}}JA.jsonID("replaceAround",OA);function Fc(t,e,A){let n=t.resolve(e),r=A-e,i=n.depth;for(;r>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,r--;if(r>0){let s=n.node(i).maybeChild(n.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function VQ(t,e,A,n){let r=[],i=[],s,a;t.doc.nodesBetween(e,A,(c,u,f)=>{if(!c.isInline)return;let p=c.marks;if(!n.isInSet(p)&&f.type.allowsMarkType(n.type)){let g=Math.max(u,e),B=Math.min(u+c.nodeSize,A),w=n.addToSet(p);for(let Q=0;Q<p.length;Q++)p[Q].isInSet(w)||(s&&s.to==g&&s.mark.eq(p[Q])?s.to=B:r.push(s=new Bn(g,B,p[Q])));a&&a.to==g?a.to=B:i.push(a=new sr(g,B,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function PQ(t,e,A,n){let r=[],i=0;t.doc.nodesBetween(e,A,(s,a)=>{if(!s.isInline)return;i++;let c=null;if(n instanceof Vo){let u=s.marks,f;for(;f=n.isInSet(u);)(c||(c=[])).push(f),u=f.removeFromSet(u)}else n?n.isInSet(s.marks)&&(c=[n]):c=s.marks;if(c&&c.length){let u=Math.min(a+s.nodeSize,A);for(let f=0;f<c.length;f++){let p=c[f],g;for(let B=0;B<r.length;B++){let w=r[B];w.step==i-1&&p.eq(r[B].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:p,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function Vh(t,e,A,n=A.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let c=0;c<i.childCount;c++){let u=i.child(c),f=a+u.nodeSize,p=n.matchType(u.type);if(!p)s.push(new xA(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)A.allowsMarkType(u.marks[g].type)||t.step(new Bn(a,f,u.marks[g]));if(r&&u.isText&&A.whitespace!="pre"){let g,B=/\r?\n|\r/g,w;for(;g=B.exec(u.text);)w||(w=new j(Y.from(A.schema.text(" ",A.allowedMarks(u.marks))),0,0)),s.push(new xA(a+g.index,a+g.index+g[0].length,w))}}a=f}if(!n.validEnd){let c=n.fillBefore(Y.empty,!0);t.replace(a,a,new j(c,0,0))}for(let c=s.length-1;c>=0;c--)t.step(s[c])}function GQ(t,e,A){return(e==0||t.canReplace(e,t.childCount))&&(A==t.childCount||t.canReplace(0,A))}function vi(t){let A=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),s=t.$to.indexAfter(n);if(n<t.depth&&r.canReplace(i,s,A))return n;if(n==0||r.type.spec.isolating||!GQ(r,i,s))break}return null}function WQ(t,e,A){let{$from:n,$to:r,depth:i}=e,s=n.before(i+1),a=r.after(i+1),c=s,u=a,f=Y.empty,p=0;for(let w=i,Q=!1;w>A;w--)Q||n.index(w)>0?(Q=!0,f=Y.from(n.node(w).copy(f)),p++):c--;let g=Y.empty,B=0;for(let w=i,Q=!1;w>A;w--)Q||r.after(w+1)<r.end(w)?(Q=!0,g=Y.from(r.node(w).copy(g)),B++):u++;t.step(new OA(c,u,s,a,new j(f.append(g),p,B),f.size-p,!0))}function bc(t,e,A=null,n=t){let r=$Q(t,e),i=r&&JQ(n,e);return i?r.map(Ph).concat({type:e,attrs:A}).concat(i.map(Ph)):null}function Ph(t){return{type:t,attrs:null}}function $Q(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.contentMatchAt(n).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return A.canReplaceWith(n,r,s)?i:null}function JQ(t,e){let{parent:A,startIndex:n,endIndex:r}=t,i=A.child(n),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(A.child(u).type);return!c||!c.validEnd?null:s}function XQ(t,e,A){let n=Y.empty;for(let s=A.length-1;s>=0;s--){if(n.size){let a=A[s].type.contentMatch.matchFragment(n);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Y.from(A[s].type.create(A[s].attrs,n))}let r=e.start,i=e.end;t.step(new OA(r,i,r,i,new j(n,0,0),A.length,!0))}function YQ(t,e,A,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,A,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(n,r)&&ZQ(t.doc,t.mapping.slice(i).map(a),n)){let c=null;if(n.schema.linebreakReplacement){let g=n.whitespace=="pre",B=!!n.contentMatch.matchType(n.schema.linebreakReplacement);g&&!B?c=!1:!g&&B&&(c=!0)}c===!1&&qQ(t,s,a,i),Vh(t,t.mapping.slice(i).map(a,1),n,void 0,c===null);let u=t.mapping.slice(i),f=u.map(a,1),p=u.map(a+s.nodeSize,1);return t.step(new OA(f,p,f+1,p-1,new j(Y.from(n.create(r,null,s.marks)),0,0),1,!0)),c===!0&&zQ(t,s,a,i),!1}})}function zQ(t,e,A,n){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let c=t.mapping.slice(n).map(A+1+i+s.index);t.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function qQ(t,e,A,n){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(A+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
6
+ `))}})}function ZQ(t,e,A){let n=t.resolve(e),r=n.index();return n.parent.canReplaceWith(r,r+1,A)}function jQ(t,e,A,n,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");A||(A=i.type);let s=A.create(n,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!A.validContent(i.content))throw new RangeError("Invalid content for node type "+A.name);t.step(new OA(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new j(Y.from(s),0,0),1,!0))}function Ii(t,e,A=1,n){let r=t.resolve(e),i=r.depth-A,s=n&&n[n.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let u=r.depth-1,f=A-2;u>i;u--,f--){let p=r.node(u),g=r.index(u);if(p.type.spec.isolating)return!1;let B=p.content.cutByIndex(g,p.childCount),w=n&&n[f+1];w&&(B=B.replaceChild(0,w.type.create(w.attrs)));let Q=n&&n[f]||p;if(!p.canReplace(g+1,p.childCount)||!Q.type.validContent(B))return!1}let a=r.indexAfter(i),c=n&&n[0];return r.node(i).canReplaceWith(a,a,c?c.type:r.node(i+1).type)}function eF(t,e,A=1,n){let r=t.doc.resolve(e),i=Y.empty,s=Y.empty;for(let a=r.depth,c=r.depth-A,u=A-1;a>c;a--,u--){i=Y.from(r.node(a).copy(i));let f=n&&n[u];s=Y.from(f?f.type.create(f.attrs,s):r.node(a).copy(s))}t.step(new xA(e,e,new j(i.append(s),A,A),!0))}function ar(t,e){let A=t.resolve(e),n=A.index();return Gh(A.nodeBefore,A.nodeAfter)&&A.parent.canReplace(n,n+1)}function Gh(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Jo(t,e,A=-1){let n=t.resolve(e);for(let r=n.depth;;r--){let i,s,a=n.index(r);if(r==n.depth?(i=n.nodeBefore,s=n.nodeAfter):A>0?(i=n.node(r+1),a++,s=n.node(r).maybeChild(a)):(i=n.node(r).maybeChild(a-1),s=n.node(r+1)),i&&!i.isTextblock&&Gh(i,s)&&n.node(r).canReplace(a,a+1))return e;if(r==0)break;e=A<0?n.before(r):n.after(r)}}function AF(t,e,A){let n=new xA(e-A,e+A,j.empty,!0);t.step(n)}function tF(t,e,A){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),A))return e;if(n.parentOffset==0)for(let r=n.depth-1;r>=0;r--){let i=n.index(r);if(n.node(r).canReplaceWith(i,i,A))return n.before(r+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let r=n.depth-1;r>=0;r--){let i=n.indexAfter(r);if(n.node(r).canReplaceWith(i,i,A))return n.after(r+1);if(i<n.node(r).childCount)return null}return null}function Wh(t,e,A){let n=t.resolve(e);if(!A.content.size)return e;let r=A.content;for(let i=0;i<A.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(A.openStart==0&&A.size?2:1);i++)for(let s=n.depth;s>=0;s--){let a=s==n.depth?0:n.pos<=(n.start(s+1)+n.end(s+1))/2?-1:1,c=n.index(s)+(a>0?1:0),u=n.node(s),f=!1;if(i==1)f=u.canReplace(c,c,r);else{let p=u.contentMatchAt(c).findWrapping(r.firstChild.type);f=p&&u.canReplaceWith(c,c,p[0])}if(f)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function Xo(t,e,A=e,n=j.empty){if(e==A&&!n.size)return null;let r=t.resolve(e),i=t.resolve(A);return $h(r,i,n)?new xA(e,A,n):new nF(r,i,n).fit()}function $h(t,e,A){return!A.openStart&&!A.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),A.content)}class nF{constructor(e,A,n){this.$from=e,this.$to=A,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Y.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(),A=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,s=n.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let c=new j(i,s,a);return e>-1?new OA(n.pos,e,this.$to.pos,this.$to.end(),c,A):c.size||n.pos!=this.$to.pos?new xA(n.pos,r.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let A=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=A.firstChild;if(A.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}A=i.content}for(let A=1;A<=2;A++)for(let n=A==1?e:this.unplaced.openStart;n>=0;n--){let r,i=null;n?(i=Uc(this.unplaced.content,n-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:c,match:u}=this.frontier[a],f,p=null;if(A==1&&(s?u.matchType(s.type)||(p=u.fillBefore(Y.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:p};if(A==2&&s&&(f=u.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:a,parent:i,wrap:f};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=Uc(e,A);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new j(e,A+1,Math.max(n,r.size+A>=e.size-n?A+1:0)),!0)}dropNode(){let{content:e,openStart:A,openEnd:n}=this.unplaced,r=Uc(e,A);if(r.childCount<=1&&A>0){let i=e.size-A<=A+r.size;this.unplaced=new j(Us(e,A-1,1),A-1,i?A-1:n)}else this.unplaced=new j(Us(e,A,1),A,n)}placeNodes({sliceDepth:e,frontierDepth:A,parent:n,inject:r,wrap:i}){for(;this.depth>A;)this.closeFrontierNode();if(i)for(let Q=0;Q<i.length;Q++)this.openFrontierNode(i[Q]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-e,u=0,f=[],{match:p,type:g}=this.frontier[A];if(r){for(let Q=0;Q<r.childCount;Q++)f.push(r.child(Q));p=p.matchFragment(r)}let B=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let Q=a.child(u),b=p.matchType(Q.type);if(!b)break;u++,(u>1||c==0||Q.content.size)&&(p=b,f.push(Jh(Q.mark(g.allowedMarks(Q.marks)),u==1?c:0,u==a.childCount?B:-1)))}let w=u==a.childCount;w||(B=-1),this.placed=vs(this.placed,A,Y.from(f)),this.frontier[A].match=p,w&&B<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let Q=0,b=a;Q<B;Q++){let v=b.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),b=v.content}this.unplaced=w?e==0?j.empty:new j(Us(s.content,e-1,1),e-1,B<0?s.openEnd:e-1):new j(Us(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],A;if(!e.type.isTextblock||!vc(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(A=this.findCloseLevel(this.$to))&&A.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let A=Math.min(this.depth,e.depth);A>=0;A--){let{match:n,type:r}=this.frontier[A],i=A<e.depth&&e.end(A+1)==e.pos+(e.depth-(A+1)),s=vc(e,A,r,n,i);if(s){for(let a=A-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=vc(e,a,u,c,!0);if(!f||f.childCount)continue e}return{depth:A,fit:s,move:i?e.doc.resolve(e.after(A+1)):e}}}}close(e){let A=this.findCloseLevel(e);if(!A)return null;for(;this.depth>A.depth;)this.closeFrontierNode();A.fit.childCount&&(this.placed=vs(this.placed,A.depth,A.fit)),e=A.move;for(let n=A.depth+1;n<=e.depth;n++){let r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,A=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=vs(this.placed,this.depth,Y.from(e.create(A,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let A=this.frontier.pop().match.fillBefore(Y.empty,!0);A.childCount&&(this.placed=vs(this.placed,this.frontier.length,A))}}function Us(t,e,A){return e==0?t.cutByIndex(A,t.childCount):t.replaceChild(0,t.firstChild.copy(Us(t.firstChild.content,e-1,A)))}function vs(t,e,A){return e==0?t.append(A):t.replaceChild(t.childCount-1,t.lastChild.copy(vs(t.lastChild.content,e-1,A)))}function Uc(t,e){for(let A=0;A<e;A++)t=t.firstChild.content;return t}function Jh(t,e,A){if(e<=0)return t;let n=t.content;return e>1&&(n=n.replaceChild(0,Jh(n.firstChild,e-1,n.childCount==1?A-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),A<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Y.empty,!0)))),t.copy(n)}function vc(t,e,A,n,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!A.compatibleContent(i.type))return null;let a=n.fillBefore(i.content,!0,s);return a&&!rF(A,i.content,s)?a:null}function rF(t,e,A){for(let n=A;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}function iF(t){return t.spec.defining||t.spec.definingForContent}function sF(t,e,A,n){if(!n.size)return t.deleteRange(e,A);let r=t.doc.resolve(e),i=t.doc.resolve(A);if($h(r,i,n))return t.step(new xA(e,A,n));let s=Yh(r,t.doc.resolve(A));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let g=r.depth,B=r.pos-1;g>0;g--,B--){let w=r.node(g).type.spec;if(w.defining||w.definingAsContext||w.isolating)break;s.indexOf(g)>-1?a=g:r.before(g)==B&&s.splice(1,0,-g)}let c=s.indexOf(a),u=[],f=n.openStart;for(let g=n.content,B=0;;B++){let w=g.firstChild;if(u.push(w),B==n.openStart)break;g=w.content}for(let g=f-1;g>=0;g--){let B=u[g],w=iF(B.type);if(w&&!B.sameMarkup(r.node(Math.abs(a)-1)))f=g;else if(w||!B.type.isTextblock)break}for(let g=n.openStart;g>=0;g--){let B=(g+f+1)%(n.openStart+1),w=u[B];if(w)for(let Q=0;Q<s.length;Q++){let b=s[(Q+c)%s.length],v=!0;b<0&&(v=!1,b=-b);let _=r.node(b-1),S=r.index(b-1);if(_.canReplaceWith(S,S,w.type,w.marks))return t.replace(r.before(b),v?i.after(b):A,new j(Xh(n.content,0,n.openStart,B),B,n.openEnd))}}let p=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(e,A,n),!(t.steps.length>p));g--){let B=s[g];B<0||(e=r.before(B),A=i.after(B))}}function Xh(t,e,A,n,r){if(e<A){let i=t.firstChild;t=t.replaceChild(0,i.copy(Xh(i.content,e+1,A,n,i)))}if(e>n){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(Y.empty,!0))}return t}function oF(t,e,A,n){if(!n.isInline&&e==A&&t.doc.resolve(e).parent.content.size){let r=tF(t.doc,e,n.type);r!=null&&(e=A=r)}t.replaceRange(e,A,new j(Y.from(n),0,0))}function aF(t,e,A){let n=t.doc.resolve(e),r=t.doc.resolve(A),i=Yh(n,r);for(let s=0;s<i.length;s++){let a=i[s],c=s==i.length-1;if(c&&a==0||n.node(a).type.contentMatch.validEnd)return t.delete(n.start(a),r.end(a));if(a>0&&(c||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return t.delete(n.before(a),r.after(a))}for(let s=1;s<=n.depth&&s<=r.depth;s++)if(e-n.start(s)==n.depth-s&&A>n.end(s)&&r.end(s)-A!=r.depth-s)return t.delete(n.before(s),A);t.delete(e,A)}function Yh(t,e){let A=[],n=Math.min(t.depth,e.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<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;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&A.push(r)}return A}class Si extends JA{constructor(e,A,n){super(),this.pos=e,this.attr=A,this.value=n}apply(e){let A=e.nodeAt(this.pos);if(!A)return QA.fail("No node at attribute step's position");let n=Object.create(null);for(let i in A.attrs)n[i]=A.attrs[i];n[this.attr]=this.value;let r=A.type.create(n,null,A.marks);return QA.fromReplace(e,this.pos,this.pos+1,new j(Y.from(r),0,A.isLeaf?0:1))}getMap(){return Ut.empty}invert(e){return new Si(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let A=e.mapResult(this.pos,1);return A.deletedAfter?null:new Si(A.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.pos!="number"||typeof A.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Si(A.pos,A.attr,A.value)}}JA.jsonID("attr",Si);class Is extends JA{constructor(e,A){super(),this.attr=e,this.value=A}apply(e){let A=Object.create(null);for(let r in e.attrs)A[r]=e.attrs[r];A[this.attr]=this.value;let n=e.type.create(A,e.content,e.marks);return QA.ok(n)}getMap(){return Ut.empty}invert(e){return new Is(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,A){if(typeof A.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Is(A.attr,A.value)}}JA.jsonID("docAttr",Is);let Ti=class extends Error{};Ti=function t(e){let A=Error.call(this,e);return A.__proto__=t.prototype,A},Ti.prototype=Object.create(Error.prototype),Ti.prototype.constructor=Ti,Ti.prototype.name="TransformError";class lF{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new bi}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let A=this.maybeStep(e);if(A.failed)throw new Ti(A.failed);return this}maybeStep(e){let A=e.apply(this.doc);return A.failed||this.addStep(e,A.doc),A}get docChanged(){return this.steps.length>0}addStep(e,A){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=A}replace(e,A=e,n=j.empty){let r=Xo(this.doc,e,A,n);return r&&this.step(r),this}replaceWith(e,A,n){return this.replace(e,A,new j(Y.from(n),0,0))}delete(e,A){return this.replace(e,A,j.empty)}insert(e,A){return this.replaceWith(e,e,A)}replaceRange(e,A,n){return sF(this,e,A,n),this}replaceRangeWith(e,A,n){return oF(this,e,A,n),this}deleteRange(e,A){return aF(this,e,A),this}lift(e,A){return WQ(this,e,A),this}join(e,A=1){return AF(this,e,A),this}wrap(e,A){return XQ(this,e,A),this}setBlockType(e,A=e,n,r=null){return YQ(this,e,A,n,r),this}setNodeMarkup(e,A,n=null,r){return jQ(this,e,A,n,r),this}setNodeAttribute(e,A,n){return this.step(new Si(e,A,n)),this}setDocAttribute(e,A){return this.step(new Is(e,A)),this}addNodeMark(e,A){return this.step(new or(e,A)),this}removeNodeMark(e,A){if(!(A instanceof Ze)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(A=A.isInSet(n.marks),!A)return this}return this.step(new Ui(e,A)),this}split(e,A=1,n){return eF(this,e,A,n),this}addMark(e,A,n){return VQ(this,e,A,n),this}removeMark(e,A,n){return PQ(this,e,A,n),this}clearIncompatible(e,A,n){return Vh(this,e,A,n),this}}const Ic=Object.create(null);class Fe{constructor(e,A,n){this.$anchor=e,this.$head=A,this.ranges=n||[new cF(e.min(A),e.max(A))]}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 A=0;A<e.length;A++)if(e[A].$from.pos!=e[A].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,A=j.empty){let n=A.content.lastChild,r=null;for(let a=0;a<A.openEnd;a++)r=n,n=n.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:u}=s[a],f=e.mapping.slice(i);e.replaceRange(f.map(c.pos),f.map(u.pos),a?j.empty:A),a==0&&Zh(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,A){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],c=e.mapping.slice(n),u=c.map(s.pos),f=c.map(a.pos);i?e.deleteRange(u,f):(e.replaceRangeWith(u,f,A),Zh(e,n,A.isInline?-1:1))}}static findFrom(e,A,n=!1){let r=e.parent.inlineContent?new Ce(e):_i(e.node(0),e.parent,e.pos,e.index(),A,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=A<0?_i(e.node(0),e.node(i),e.before(i+1),e.index(i),A,n):_i(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,A,n);if(s)return s}return null}static near(e,A=1){return this.findFrom(e,A)||this.findFrom(e,-A)||new tn(e.node(0))}static atStart(e){return _i(e,e,0,0,1)||new tn(e)}static atEnd(e){return _i(e,e,e.content.size,e.childCount,-1)||new tn(e)}static fromJSON(e,A){if(!A||!A.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Ic[A.type];if(!n)throw new RangeError(`No selection type ${A.type} defined`);return n.fromJSON(e,A)}static jsonID(e,A){if(e in Ic)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ic[e]=A,A.prototype.jsonID=e,A}getBookmark(){return Ce.between(this.$anchor,this.$head).getBookmark()}}Fe.prototype.visible=!0;class cF{constructor(e,A){this.$from=e,this.$to=A}}let zh=!1;function qh(t){!zh&&!t.parent.inlineContent&&(zh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Ce extends Fe{constructor(e,A=e){qh(e),qh(A),super(e,A)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,A){let n=e.resolve(A.map(this.head));if(!n.parent.inlineContent)return Fe.near(n);let r=e.resolve(A.map(this.anchor));return new Ce(r.parent.inlineContent?r:n,n)}replace(e,A=j.empty){if(super.replace(e,A),A==j.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof Ce&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Yo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,A){if(typeof A.anchor!="number"||typeof A.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ce(e.resolve(A.anchor),e.resolve(A.head))}static create(e,A,n=A){let r=e.resolve(A);return new this(r,n==A?r:e.resolve(n))}static between(e,A,n){let r=e.pos-A.pos;if((!n||r)&&(n=r>=0?1:-1),!A.parent.inlineContent){let i=Fe.findFrom(A,n,!0)||Fe.findFrom(A,-n,!0);if(i)A=i.$head;else return Fe.near(A,n)}return e.parent.inlineContent||(r==0?e=A:(e=(Fe.findFrom(e,-n,!0)||Fe.findFrom(e,n,!0)).$anchor,e.pos<A.pos!=r<0&&(e=A))),new Ce(e,A)}}Fe.jsonID("text",Ce);class Yo{constructor(e,A){this.anchor=e,this.head=A}map(e){return new Yo(e.map(this.anchor),e.map(this.head))}resolve(e){return Ce.between(e.resolve(this.anchor),e.resolve(this.head))}}class fe extends Fe{constructor(e){let A=e.nodeAfter,n=e.node(0).resolve(e.pos+A.nodeSize);super(e,n),this.node=A}map(e,A){let{deleted:n,pos:r}=A.mapResult(this.anchor),i=e.resolve(r);return n?Fe.near(i):new fe(i)}content(){return new j(Y.from(this.node),0,0)}eq(e){return e instanceof fe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Sc(this.anchor)}static fromJSON(e,A){if(typeof A.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new fe(e.resolve(A.anchor))}static create(e,A){return new fe(e.resolve(A))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}fe.prototype.visible=!1,Fe.jsonID("node",fe);class Sc{constructor(e){this.anchor=e}map(e){let{deleted:A,pos:n}=e.mapResult(this.anchor);return A?new Yo(n,n):new Sc(n)}resolve(e){let A=e.resolve(this.anchor),n=A.nodeAfter;return n&&fe.isSelectable(n)?new fe(A):Fe.near(A)}}class tn extends Fe{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,A=j.empty){if(A==j.empty){e.delete(0,e.doc.content.size);let n=Fe.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,A)}toJSON(){return{type:"all"}}static fromJSON(e){return new tn(e)}map(e){return new tn(e)}eq(e){return e instanceof tn}getBookmark(){return uF}}Fe.jsonID("all",tn);const uF={map(){return this},resolve(t){return new tn(t)}};function _i(t,e,A,n,r,i=!1){if(e.inlineContent)return Ce.create(t,A);for(let s=n-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&fe.isSelectable(a))return fe.create(t,A-(r<0?a.nodeSize:0))}else{let c=_i(t,a,A+r,r<0?a.childCount:0,r,i);if(c)return c}A+=a.nodeSize*r}return null}function Zh(t,e,A){let n=t.steps.length-1;if(n<e)return;let r=t.steps[n];if(!(r instanceof xA||r instanceof OA))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(Fe.near(t.doc.resolve(s),A))}const jh=1,zo=2,ep=4;class fF extends lF{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|jh)&~zo,this.storedMarks=null,this}get selectionSet(){return(this.updated&jh)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=zo,this}ensureMarks(e){return Ze.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&zo)>0}addStep(e,A){super.addStep(e,A),this.updated=this.updated&~zo,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,A=!0){let n=this.selection;return A&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Ze.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,A,n){let r=this.doc.type.schema;if(A==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n==null&&(n=A),n=n??A,!e)return this.deleteRange(A,n);let i=this.storedMarks;if(!i){let s=this.doc.resolve(A);i=n==A?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(A,n,r.text(e,i)),this.selection.empty||this.setSelection(Fe.near(this.selection.$to)),this}}setMeta(e,A){return this.meta[typeof e=="string"?e:e.key]=A,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|=ep,this}get scrolledIntoView(){return(this.updated&ep)>0}}function Ap(t,e){return!e||!t?t:t.bind(e)}class Ss{constructor(e,A,n){this.name=e,this.init=Ap(A.init,n),this.apply=Ap(A.apply,n)}}const dF=[new Ss("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ss("selection",{init(t,e){return t.selection||Fe.atStart(e.doc)},apply(t){return t.selection}}),new Ss("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,A,n){return n.selection.$cursor?t.storedMarks:null}}),new Ss("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Tc{constructor(e,A){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=dF.slice(),A&&A.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new Ss(n.key,n.spec.state,n))})}}class xi{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,A=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=A){let r=this.config.plugins[n];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 A=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let c=r?r[s].n:0,u=r?r[s].state:this,f=c<A.length&&a.spec.appendTransaction.call(a,c?A.slice(c):A,u,n);if(f&&n.filterTransaction(f,s)){if(f.setMeta("appendedTransaction",e),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:A.length}:{state:this,n:0})}A.push(f),n=n.applyInner(f),i=!0}r&&(r[s]={state:n,n:A.length})}}if(!i)return{state:n,transactions:A}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let A=new xi(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];A[i.name]=i.apply(e,this[i.name],this,A)}return A}get tr(){return new fF(this)}static create(e){let A=new Tc(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new xi(A);for(let r=0;r<A.fields.length;r++)n[A.fields[r].name]=A.fields[r].init(e,n);return n}reconfigure(e){let A=new Tc(this.schema,e.plugins),n=A.fields,r=new xi(A);for(let i=0;i<n.length;i++){let s=n[i].name;r[s]=this.hasOwnProperty(s)?this[s]:n[i].init(e,r)}return r}toJSON(e){let A={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(A.storedMarks=this.storedMarks.map(n=>n.toJSON())),e&&typeof e=="object")for(let n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(A[n]=i.toJSON.call(r,this[r.key]))}return A}static fromJSON(e,A,n){if(!A)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Tc(e.schema,e.plugins),i=new xi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Wr.fromJSON(e.schema,A.doc);else if(s.name=="selection")i.selection=Fe.fromJSON(i.doc,A.selection);else if(s.name=="storedMarks")A.storedMarks&&(i.storedMarks=A.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let a in n){let c=n[a],u=c.spec.state;if(c.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(A,a)){i[s.name]=u.fromJSON.call(c,e,A[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function tp(t,e,A){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(e):n=="handleDOMEvents"&&(r=tp(r,e,{})),A[n]=r}return A}class pt{constructor(e){this.spec=e,this.props={},e.props&&tp(e.props,this,this.props),this.key=e.key?e.key.key:np("plugin")}getState(e){return e[this.key]}}const _c=Object.create(null);function np(t){return t in _c?t+"$"+ ++_c[t]:(_c[t]=0,t+"$")}class wn{constructor(e="key"){this.key=np(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const RA=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ts=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let xc=null;const Ln=function(t,e,A){let n=xc||(xc=document.createRange());return n.setEnd(t,A??t.nodeValue.length),n.setStart(t,e||0),n},hF=function(){xc=null},Jr=function(t,e,A,n){return A&&(rp(t,e,A,n,-1)||rp(t,e,A,n,1))},pF=/^(img|br|input|textarea|hr)$/i;function rp(t,e,A,n,r){for(;;){if(t==A&&e==n)return!0;if(e==(r<0?0:Cn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||_s(t)||pF.test(t.nodeName)||t.contentEditable=="false")return!1;e=RA(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Cn(t):0}else return!1}}function Cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function gF(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=Cn(t)}else if(t.parentNode&&!_s(t))e=RA(t),t=t.parentNode;else return null}}function mF(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&&!_s(t))e=RA(t)+1,t=t.parentNode;else return null}}function BF(t,e,A){for(let n=e==0,r=e==Cn(t);n||r;){if(t==A)return!0;let i=RA(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==Cn(t)}}function _s(t){let e;for(let A=t;A&&!(e=A.pmViewDesc);A=A.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const qo=function(t){return t.focusNode&&Jr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Xr(t,e){let A=document.createEvent("Event");return A.initEvent("keydown",!0,!0),A.keyCode=t,A.key=A.code=e,A}function wF(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function CF(t,e,A){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,A);if(n)return{node:n.offsetNode,offset:n.offset}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,A);if(n)return{node:n.startContainer,offset:n.startOffset}}}const yn=typeof navigator<"u"?navigator:null,ip=typeof document<"u"?document:null,lr=yn&&yn.userAgent||"",Oc=/Edge\/(\d+)/.exec(lr),sp=/MSIE \d/.exec(lr),Lc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lr),gt=!!(sp||Lc||Oc),cr=sp?document.documentMode:Lc?+Lc[1]:Oc?+Oc[1]:0,nn=!gt&&/gecko\/(\d+)/i.test(lr);nn&&+(/Firefox\/(\d+)/.exec(lr)||[0,0])[1];const Hc=!gt&&/Chrome\/(\d+)/.exec(lr),nt=!!Hc,yF=Hc?+Hc[1]:0,rt=!gt&&!!yn&&/Apple Computer/.test(yn.vendor),Oi=rt&&(/Mobile\/\w+/.test(lr)||!!yn&&yn.maxTouchPoints>2),Mt=Oi||(yn?/Mac/.test(yn.platform):!1),EF=yn?/Win/.test(yn.platform):!1,rn=/Android \d/.test(lr),xs=!!ip&&"webkitFontSmoothing"in ip.documentElement.style,QF=xs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function FF(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 Hn(t,e){return typeof t=="number"?t:t[e]}function bF(t){let e=t.getBoundingClientRect(),A=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*A,top:e.top,bottom:e.top+t.clientHeight*n}}function op(t,e,A){let n=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=A||t.dom;s;s=Ts(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?FF(i):bF(a),f=0,p=0;if(e.top<u.top+Hn(n,"top")?p=-(u.top-e.top+Hn(r,"top")):e.bottom>u.bottom-Hn(n,"bottom")&&(p=e.bottom-e.top>u.bottom-u.top?e.top+Hn(r,"top")-u.top:e.bottom-u.bottom+Hn(r,"bottom")),e.left<u.left+Hn(n,"left")?f=-(u.left-e.left+Hn(r,"left")):e.right>u.right-Hn(n,"right")&&(f=e.right-u.right+Hn(r,"right")),f||p)if(c)i.defaultView.scrollBy(f,p);else{let g=a.scrollLeft,B=a.scrollTop;p&&(a.scrollTop+=p),f&&(a.scrollLeft+=f);let w=a.scrollLeft-g,Q=a.scrollTop-B;e={left:e.left-w,top:e.top-Q,right:e.right-w,bottom:e.bottom-Q}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function UF(t){let e=t.dom.getBoundingClientRect(),A=Math.max(0,e.top),n,r;for(let i=(e.left+e.right)/2,s=A+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let c=a.getBoundingClientRect();if(c.top>=A-20){n=a,r=c.top;break}}return{refDOM:n,refTop:r,stack:ap(t.dom)}}function ap(t){let e=[],A=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=A);n=Ts(n));return e}function vF({refDOM:t,refTop:e,stack:A}){let n=t?t.getBoundingClientRect().top:0;lp(A,n==0?0:n-e)}function lp(t,e){for(let A=0;A<t.length;A++){let{dom:n,top:r,left:i}=t[A];n.scrollTop!=r+e&&(n.scrollTop=r+e),n.scrollLeft!=i&&(n.scrollLeft=i)}}let Li=null;function IF(t){if(t.setActive)return t.setActive();if(Li)return t.focus(Li);let e=ap(t);t.focus(Li==null?{get preventScroll(){return Li={preventScroll:!0},!0}}:void 0),Li||(Li=!1,lp(e,0))}function cp(t,e){let A,n=2e8,r,i=0,s=e.top,a=e.top,c,u;for(let f=t.firstChild,p=0;f;f=f.nextSibling,p++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=Ln(f).getClientRects();else continue;for(let B=0;B<g.length;B++){let w=g[B];if(w.top<=s&&w.bottom>=a){s=Math.max(w.bottom,s),a=Math.min(w.top,a);let Q=w.left>e.left?w.left-e.left:w.right<e.left?e.left-w.right:0;if(Q<n){A=f,n=Q,r=Q&&A.nodeType==3?{left:w.right<e.left?w.right:w.left,top:e.top}:e,f.nodeType==1&&Q&&(i=p+(e.left>=(w.left+w.right)/2?1:0));continue}}else w.top>e.top&&!c&&w.left<=e.left&&w.right>=e.left&&(c=f,u={left:Math.max(w.left,Math.min(w.right,e.left)),top:w.top});!A&&(e.left>=w.right&&e.top>=w.top||e.left>=w.left&&e.top>=w.bottom)&&(i=p+1)}}return!A&&c&&(A=c,r=u,n=0),A&&A.nodeType==3?SF(A,r):!A||n&&A.nodeType==1?{node:t,offset:i}:cp(A,r)}function SF(t,e){let A=t.nodeValue.length,n=document.createRange();for(let r=0;r<A;r++){n.setEnd(t,r+1),n.setStart(t,r);let i=ur(n,1);if(i.top!=i.bottom&&kc(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function kc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function TF(t,e){let A=t.parentNode;return A&&/^li$/i.test(A.nodeName)&&e.left<t.getBoundingClientRect().left?A:t}function _F(t,e,A){let{node:n,offset:r}=cp(e,A),i=-1;if(n.nodeType==1&&!n.firstChild){let s=n.getBoundingClientRect();i=s.left!=s.right&&A.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(n,r,i)}function xF(t,e,A,n){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!s&&c.left>n.left||c.top>n.top?r=a.posBefore:(!s&&c.right<n.left||c.bottom<n.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText)return(a.node.isBlock?n.top<(c.top+c.bottom)/2:n.left<(c.left+c.right)/2)?a.posBefore:a.posAfter}i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,A,-1)}function up(t,e,A){let n=t.childNodes.length;if(n&&A.top<A.bottom)for(let r=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-A.top)/(A.bottom-A.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let c=0;c<a.length;c++){let u=a[c];if(kc(e,u))return up(s,e,u)}}if((i=(i+1)%n)==r)break}return t}function OF(t,e){let A=t.dom.ownerDocument,n,r=0,i=CF(A,e.left,e.top);i&&({node:n,offset:r}=i);let s=(t.root.elementFromPoint?t.root:A).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!kc(e,u)||(s=up(t.dom,e,u),!s))return null}if(rt)for(let u=s;n&&u;u=Ts(u))u.draggable&&(n=void 0);if(s=TF(s,e),n){if(nn&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let f=n.childNodes[r],p;f.nodeName=="IMG"&&(p=f.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&r++}let u;xs&&r&&n.nodeType==1&&(u=n.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&r--,n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&e.top>n.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||n.nodeType!=1||n.childNodes[r-1].nodeName!="BR")&&(a=xF(t,n,r,e))}a==null&&(a=_F(t,s,e));let c=t.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function fp(t){return t.top<t.bottom||t.left<t.right}function ur(t,e){let A=t.getClientRects();if(A.length){let n=A[e<0?0:A.length-1];if(fp(n))return n}return Array.prototype.find.call(A,fp)||t.getBoundingClientRect()}const LF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dp(t,e,A){let{node:n,offset:r,atom:i}=t.docView.domFromPos(e,A<0?-1:1),s=xs||nn;if(n.nodeType==3)if(s&&(LF.test(n.nodeValue)||(A<0?!r:r==n.nodeValue.length))){let c=ur(Ln(n,r,r),A);if(nn&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ur(Ln(n,r-1,r-1),-1);if(u.top==c.top){let f=ur(Ln(n,r,r+1),-1);if(f.top!=c.top)return Os(f,f.left<u.left)}}return c}else{let c=r,u=r,f=A<0?1:-1;return A<0&&!r?(u++,f=-1):A>=0&&r==n.nodeValue.length?(c--,f=1):A<0?c--:u++,Os(ur(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(A<0||r==Cn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Nc(c.getBoundingClientRect(),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Nc(c.getBoundingClientRect(),!0)}return Nc(n.getBoundingClientRect(),A>=0)}if(i==null&&r&&(A<0||r==Cn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?Ln(c,Cn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Os(ur(u,1),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?Ln(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Os(ur(u,-1),!0)}return Os(ur(n.nodeType==3?Ln(n):n,-A),A>=0)}function Os(t,e){if(t.width==0)return t;let A=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:A,right:A}}function Nc(t,e){if(t.height==0)return t;let A=e?t.top:t.bottom;return{top:A,bottom:A,left:t.left,right:t.right}}function hp(t,e,A){let n=t.state,r=t.root.activeElement;n!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return A()}finally{n!=e&&t.updateState(n),r!=t.dom&&r&&r.focus()}}function HF(t,e,A){let n=e.selection,r=A=="up"?n.$from:n.$to;return hp(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,A=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=dp(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let c;if(a.nodeType==1)c=a.getClientRects();else if(a.nodeType==3)c=Ln(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let f=c[u];if(f.bottom>f.top+1&&(A=="up"?s.top-f.top>(f.bottom-s.top)*2:f.bottom-s.bottom>(s.bottom-f.top)*2))return!1}}return!0})}const kF=/[\u0590-\u08ac]/;function NF(t,e,A){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let r=n.parentOffset,i=!r,s=r==n.parent.content.size,a=t.domSelection();return!kF.test(n.parent.textContent)||!a.modify?A=="left"||A=="backward"?i:s:hp(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:p}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",A,"character");let B=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:w,focusOffset:Q}=t.domSelectionRange(),b=w&&!B.contains(w.nodeType==1?w:w.parentNode)||c==w&&u==Q;try{a.collapse(f,p),c&&(c!=f||u!=p)&&a.extend&&a.extend(c,u)}catch{}return g!=null&&(a.caretBidiLevel=g),b})}let pp=null,gp=null,mp=!1;function DF(t,e,A){return pp==e&&gp==A?mp:(pp=e,gp=A,mp=A=="up"||A=="down"?HF(t,e,A):NF(t,e,A))}const Rt=0,Bp=1,Yr=2,En=3;class Ls{constructor(e,A,n,r){this.parent=e,this.children=A,this.dom=n,this.contentDOM=r,this.dirty=Rt,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,A,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let A=0;A<this.children.length;A++)e+=this.children[A].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 A=0,n=this.posAtStart;;A++){let r=this.children[A];if(r==e)return n;n+=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,A,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let i,s;if(e==this.contentDOM)i=e.childNodes[A-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[A];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=A>RA(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(A==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&A==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,A=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!A||i.node))if(n&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))n=!1;else return i}}getDesc(e){let A=e.pmViewDesc;for(let n=A;n;n=n.parent)if(n==this)return A}posFromDOM(e,A,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,A,n)}return-1}descAt(e){for(let A=0,n=0;A<this.children.length;A++){let r=this.children[A],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,A){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let i=0;n<this.children.length;n++){let s=this.children[n],a=i+s.size;if(a>e||s instanceof yp){r=e-i;break}i=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,A);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof wp&&i.side>=0;n--);if(A<=0){let i,s=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,s=!1);return i&&A&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,A):{node:this.contentDOM,offset:i?RA(i.dom)+1:0}}else{let i,s=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,A):{node:this.contentDOM,offset:i?RA(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,A,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:A,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=n,a=0;;a++){let c=this.children[a],u=s+c.size;if(r==-1&&e<=u){let f=s+c.border;if(e>=f&&A<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,A,f);e=s;for(let p=a;p>0;p--){let g=this.children[p-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=RA(g.dom)+1;break}e-=g.size}r==-1&&(r=0)}if(r>-1&&(u>A||a==this.children.length-1)){A=u;for(let f=a+1;f<this.children.length;f++){let p=this.children[f];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=RA(p.dom);break}A+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:A,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let A=this.children[e<0?0:this.children.length-1];return A.size==0||A.emptyChildAt(e)}domAfterPos(e){let{node:A,offset:n}=this.domFromPos(e,0);if(A.nodeType!=1||n==A.childNodes.length)throw new RangeError("No node after pos "+e);return A.childNodes[n]}setSelection(e,A,n,r=!1){let i=Math.min(e,A),s=Math.max(e,A);for(let g=0,B=0;g<this.children.length;g++){let w=this.children[g],Q=B+w.size;if(i>B&&s<Q)return w.setSelection(e-B-w.border,A-B-w.border,n,r);B=Q}let a=this.domFromPos(e,e?-1:1),c=A==e?a:this.domFromPos(A,A?-1:1),u=n.getSelection(),f=!1;if((nn||rt)&&e==A){let{node:g,offset:B}=a;if(g.nodeType==3){if(f=!!(B&&g.nodeValue[B-1]==`
7
+ `),f&&B==g.nodeValue.length)for(let w=g,Q;w;w=w.parentNode){if(Q=w.nextSibling){Q.nodeName=="BR"&&(a=c={node:Q.parentNode,offset:RA(Q)+1});break}let b=w.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let w=g.childNodes[B-1];f=w&&(w.nodeName=="BR"||w.contentEditable=="false")}}if(nn&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let g=u.focusNode.childNodes[u.focusOffset];g&&g.contentEditable=="false"&&(r=!0)}if(!(r||f&&rt)&&Jr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Jr(c.node,c.offset,u.focusNode,u.focusOffset))return;let p=!1;if((u.extend||e==A)&&!f){u.collapse(a.node,a.offset);try{e!=A&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(e>A){let B=a;a=c,c=B}let g=document.createRange();g.setEnd(c.node,c.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,A){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],s=n+i.size;if(n==s?e<=s&&A>=n:e<s&&A>n){let a=n+i.border,c=s-i.border;if(e>=a&&A<=c){this.dirty=e==n||A==s?Yr:Bp,e==a&&A==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=En:i.markDirty(e-a,A-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Yr:En}n=s}this.dirty=Yr}markParentsDirty(){let e=1;for(let A=this.parent;A;A=A.parent,e++){let n=e==1?Yr:Bp;A.dirty<n&&(A.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class wp extends Ls{constructor(e,A,n,r){let i,s=A.type.toDOM;if(typeof s=="function"&&(s=s(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!A.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=A,this.widget=A,i=this}matchesWidget(e){return this.dirty==Rt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let A=this.widget.spec.stopEvent;return A?A(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 side(){return this.widget.type.side}}class MF extends Ls{constructor(e,A,n,r){super(e,[],A,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,A){return e!=this.textDOM?this.posAtStart+(A?this.size:0):this.posAtStart+A}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class zr extends Ls{constructor(e,A,n,r){super(e,[],n,r),this.mark=A}static create(e,A,n,r){let i=r.nodeViews[A.type.name],s=i&&i(A,r,n);return(!s||!s.dom)&&(s=mn.renderSpec(document,A.type.spec.toDOM(A,n))),new zr(e,A,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&En||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=En&&this.mark.eq(e)}markDirty(e,A){if(super.markDirty(e,A),this.dirty!=Rt){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=Rt}}slice(e,A,n){let r=zr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;A<s&&(i=Rc(i,A,s,n)),e>0&&(i=Rc(i,0,e,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class fr extends Ls{constructor(e,A,n,r,i,s,a,c,u){super(e,[],i,s),this.node=A,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,A,n,r,i,s){let a=i.nodeViews[A.type.name],c,u=a&&a(A,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},n,r),f=u&&u.dom,p=u&&u.contentDOM;if(A.isText){if(!f)f=document.createTextNode(A.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:p}=mn.renderSpec(document,A.type.spec.toDOM(A)));!p&&!A.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),A.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Fp(f,n,A),u?c=new RF(e,A,n,r,f,p||null,g,u,i,s+1):A.isText?new Zo(e,A,n,r,f,g,i):new fr(e,A,n,r,f,p||null,g,i,s+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 A=this.children.length-1;A>=0;A--){let n=this.children[A];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Y.empty)}return e}matchesNode(e,A,n){return this.dirty==Rt&&e.eq(this.node)&&Mc(A,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,A){let n=this.node.inlineContent,r=A,i=e.composing?this.localCompositionInfo(e,A):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new VF(this,s&&s.node,e);WF(this.node,this.innerDeco,(u,f,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,e):u.type.side>=0&&!p&&c.syncToMarks(f==this.node.childCount?Ze.none:this.node.child(f).marks,n,e),c.placeWidget(u,e,r)},(u,f,p,g)=>{c.syncToMarks(u.marks,n,e);let B;c.findNodeMatch(u,f,p,g)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(B=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,p,B,e)||c.updateNextNode(u,f,p,e,g,r)||c.addNode(u,f,p,e,r),r+=u.nodeSize}),c.syncToMarks([],n,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Yr)&&(s&&this.protectLocalComposition(e,s),Ep(this.contentDOM,this.children,e),Oi&&$F(this.dom))}localCompositionInfo(e,A){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Ce)||n<A||r>A+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=JF(this.node.content,s,n-A,r-A);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:A,pos:n,text:r}){if(this.getDesc(A))return;let i=A;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new MF(this,i,A,r);e.input.compositionNodes.push(s),this.children=Rc(this.children,n,n+r.length,e,s)}update(e,A,n,r){return this.dirty==En||!e.sameMarkup(this.node)?!1:(this.updateInner(e,A,n,r),!0)}updateInner(e,A,n,r){this.updateOuterDeco(A),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Rt}updateOuterDeco(e){if(Mc(e,this.outerDeco))return;let A=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Qp(this.dom,this.nodeDOM,Dc(this.outerDeco,this.node,A),Dc(e,this.node,A)),this.dom!=n&&(n.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 Cp(t,e,A,n,r){Fp(n,e,t);let i=new fr(void 0,t,e,A,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Zo extends fr{constructor(e,A,n,r,i,s,a){super(e,A,n,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,A,n,r){return this.dirty==En||this.dirty!=Rt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(A),(this.dirty!=Rt||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=Rt,!0)}inParent(){let e=this.parent.contentDOM;for(let A=this.nodeDOM;A;A=A.parentNode)if(A==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,A,n){return e==this.nodeDOM?this.posAtStart+Math.min(A,this.node.text.length):super.localPosFromDOM(e,A,n)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,A,n){let r=this.node.cut(e,A),i=document.createTextNode(r.text);return new Zo(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,A){super.markDirty(e,A),this.dom!=this.nodeDOM&&(e==0||A==this.nodeDOM.nodeValue.length)&&(this.dirty=En)}get domAtom(){return!1}isText(e){return this.node.text==e}}class yp extends Ls{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Rt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class RF extends fr{constructor(e,A,n,r,i,s,a,c,u,f){super(e,A,n,r,i,s,a,u,f),this.spec=c}update(e,A,n,r){if(this.dirty==En)return!1;if(this.spec.update){let i=this.spec.update(e,A,n);return i&&this.updateInner(e,A,n,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,A,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,A,n,r){this.spec.setSelection?this.spec.setSelection(e,A,n):super.setSelection(e,A,n,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 Ep(t,e,A){let n=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=n;)n=bp(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof zr){let c=n?n.previousSibling:t.lastChild;Ep(s.contentDOM,s.children,A),n=c?c.nextSibling:t.firstChild}}for(;n;)n=bp(n),r=!0;r&&A.trackWrites==t&&(A.trackWrites=null)}const Hs=function(t){t&&(this.nodeName=t)};Hs.prototype=Object.create(null);const qr=[new Hs];function Dc(t,e,A){if(t.length==0)return qr;let n=A?qr[0]:new Hs,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new Hs(s.nodeName));for(let a in s){let c=s[a];c!=null&&(A&&r.length==1&&r.push(n=new Hs(e.isInline?"span":"div")),a=="class"?n.class=(n.class?n.class+" ":"")+c:a=="style"?n.style=(n.style?n.style+";":"")+c:a!="nodeName"&&(n[a]=c))}}}return r}function Qp(t,e,A,n){if(A==qr&&n==qr)return e;let r=e;for(let i=0;i<n.length;i++){let s=n[i],a=A[i];if(i){let c;a&&a.nodeName==s.nodeName&&r!=t&&(c=r.parentNode)&&c.nodeName.toLowerCase()==s.nodeName||(c=document.createElement(s.nodeName),c.pmIsDeco=!0,c.appendChild(r),a=qr[0]),r=c}KF(r,a||qr[0],s)}return r}function KF(t,e,A){for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in A)&&t.removeAttribute(n);for(let n in A)n!="class"&&n!="style"&&n!="nodeName"&&A[n]!=e[n]&&t.setAttribute(n,A[n]);if(e.class!=A.class){let n=e.class?e.class.split(" ").filter(Boolean):[],r=A.class?A.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)r.indexOf(n[i])==-1&&t.classList.remove(n[i]);for(let i=0;i<r.length;i++)n.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=A.style){if(e.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(e.style);)t.style.removeProperty(r[1])}A.style&&(t.style.cssText+=A.style)}}function Fp(t,e,A){return Qp(t,t,qr,Dc(e,A,t.nodeType!=1))}function Mc(t,e){if(t.length!=e.length)return!1;for(let A=0;A<t.length;A++)if(!t[A].type.eq(e[A].type))return!1;return!0}function bp(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class VF{constructor(e,A,n){this.lock=A,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=PF(e.node.content,e)}destroyBetween(e,A){if(e!=A){for(let n=e;n<A;n++)this.top.children[n].destroy();this.top.children.splice(e,A-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,A,n){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=Rt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let u=this.top.children[c];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){a=c;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let c=zr.create(this.top,e[i],A,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,A,n,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,A,n))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,c=Math.min(this.top.children.length,a+5);a<c;a++){let u=this.top.children[a];if(u.matchesNode(e,A,n)&&!this.preMatch.matched.has(u)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,A,n,r,i){let s=this.top.children[r];return s.dirty==En&&s.dom==s.contentDOM&&(s.dirty=Yr),s.update(e,A,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let A=e.parentNode;if(!A)return-1;if(A==this.top.contentDOM){let n=e.pmViewDesc;if(n){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r}return-1}e=A}}updateNextNode(e,A,n,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let c=this.top.children[a];if(c instanceof fr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let f=c.dom,p,g=this.isLocked(f)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=En&&Mc(A,c.outerDeco));if(!g&&c.update(e,A,n,r))return this.destroyBetween(this.index,a),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(p=this.recreateWrapper(c,e,A,n,r,s)))return this.top.children[this.index]=p,p.contentDOM&&(p.dirty=Yr,p.updateChildren(r,s+1),p.dirty=Rt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,A,n,r,i,s){if(e.dirty||A.isAtom||!e.children.length||!e.node.content.eq(A.content))return null;let a=fr.create(this.top,A,n,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let c of a.children)c.parent=a}return e.destroy(),a}addNode(e,A,n,r,i){let s=fr.create(this.top,e,A,n,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,A,n){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 i=new wp(this.top,e,A,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],A=this.top;for(;e instanceof zr;)A=e,e=A.children[A.children.length-1];(!e||!(e instanceof Zo)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((rt||nt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",A),this.addHackNode("BR",this.top))}addHackNode(e,A){if(A==this.top&&this.index<A.children.length&&A.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),e=="BR"&&(n.className="ProseMirror-trailingBreak");let r=new yp(this.top,[],n,null);A!=this.top?A.children.push(r):A.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 PF(t,e){let A=e,n=A.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(n){let u=A.children[n-1];if(u instanceof zr)A=u,n=u.children.length;else{a=u,n--;break}}else{if(A==e)break e;n=A.parent.children.indexOf(A),A=A.parent}let c=a.node;if(c){if(c!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function GF(t,e){return t.type.side-e.type.side}function WF(t,e,A,n){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);n(f,r,e.forChild(i,f),u),i+=f.nodeSize}return}let s=0,a=[],c=null;for(let u=0;;){let f,p;for(;s<r.length&&r[s].to==i;){let b=r[s++];b.widget&&(f?(p||(p=[f])).push(b):f=b)}if(f)if(p){p.sort(GF);for(let b=0;b<p.length;b++)A(p[b],u,!!c)}else A(f,u,!!c);let g,B;if(c)B=-1,g=c,c=null;else if(u<t.childCount)B=u,g=t.child(u++);else break;for(let b=0;b<a.length;b++)a[b].to<=i&&a.splice(b--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let w=i+g.nodeSize;if(g.isText){let b=w;s<r.length&&r[s].from<b&&(b=r[s].from);for(let v=0;v<a.length;v++)a[v].to<b&&(b=a[v].to);b<w&&(c=g.cut(b-i),g=g.cut(0,b-i),w=b,B=-1)}else for(;s<r.length&&r[s].to<w;)s++;let Q=g.isInline&&!g.isLeaf?a.filter(b=>!b.inline):a.slice();n(g,Q,e.forChild(i,g),B),i=w}}function $F(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 JF(t,e,A,n){for(let r=0,i=0;r<t.childCount&&i<=n;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let c=s.text;for(;r<t.childCount;){let u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;c+=u.text}if(i>=A){if(i>=n&&c.slice(n-e.length-a,n-a)==e)return n-e.length;let u=a<n?c.lastIndexOf(e,n-a-1):-1;if(u>=0&&u+e.length+a>=A)return a+u;if(A==n&&c.length>=n+e.length-a&&c.slice(n-a,n-a+e.length)==e)return n}}return-1}function Rc(t,e,A,n,r){let i=[];for(let s=0,a=0;s<t.length;s++){let c=t[s],u=a,f=a+=c.size;u>=A||f<=e?i.push(c):(u<e&&i.push(c.slice(0,e-u,n)),r&&(i.push(r),r=void 0),f>A&&i.push(c.slice(A-u,c.size,n)))}return i}function Kc(t,e=null){let A=t.domSelectionRange(),n=t.state.doc;if(!A.focusNode)return null;let r=t.docView.nearestDesc(A.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(A.focusNode,A.focusOffset,1);if(s<0)return null;let a=n.resolve(s),c,u;if(qo(A)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&fe.isSelectable(f)&&r.parent&&!(f.isInline&&BF(A.focusNode,A.focusOffset,r.dom))){let p=r.posBefore;u=new fe(s==p?a:n.resolve(p))}}else{let f=t.docView.posFromDOM(A.anchorNode,A.anchorOffset,1);if(f<0)return null;c=n.resolve(f)}if(!u){let f=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Pc(t,c,a,f)}return u}function Up(t){return t.editable?t.hasFocus():Op(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function kn(t,e=!1){let A=t.state.selection;if(Tp(t,A),!!Up(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&nt){let n=t.domSelectionRange(),r=t.domObserver.currentSelection;if(n.anchorNode&&r.anchorNode&&Jr(n.anchorNode,n.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)YF(t);else{let{anchor:n,head:r}=A,i,s;vp&&!(A instanceof Ce)&&(A.$from.parent.inlineContent||(i=Ip(t,A.from)),!A.empty&&!A.$from.parent.inlineContent&&(s=Ip(t,A.to))),t.docView.setSelection(n,r,t.root,e),vp&&(i&&Sp(i),s&&Sp(s)),A.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&XF(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const vp=rt||nt&&yF<63;function Ip(t,e){let{node:A,offset:n}=t.docView.domFromPos(e,0),r=n<A.childNodes.length?A.childNodes[n]:null,i=n?A.childNodes[n-1]:null;if(rt&&r&&r.contentEditable=="false")return Vc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Vc(r);if(i)return Vc(i)}}function Vc(t){return t.contentEditable="true",rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Sp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function XF(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let A=t.domSelectionRange(),n=A.anchorNode,r=A.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(A.anchorNode!=n||A.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Up(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function YF(t){let e=t.domSelection(),A=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?A.setEnd(n.parentNode,RA(n)+1):A.setEnd(n,0),A.collapse(!1),e.removeAllRanges(),e.addRange(A),!r&&!t.state.selection.visible&&gt&&cr<=11&&(n.disabled=!0,n.disabled=!1)}function Tp(t,e){if(e instanceof fe){let A=t.docView.descAt(e.from);A!=t.lastSelectedViewDesc&&(_p(t),A&&A.selectNode(),t.lastSelectedViewDesc=A)}else _p(t)}function _p(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Pc(t,e,A,n){return t.someProp("createSelectionBetween",r=>r(t,e,A))||Ce.between(e,A,n)}function xp(t){return t.editable&&!t.hasFocus()?!1:Op(t)}function Op(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 zF(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),A=t.domSelectionRange();return Jr(e.node,e.offset,A.anchorNode,A.anchorOffset)}function Gc(t,e){let{$anchor:A,$head:n}=t.selection,r=e>0?A.max(n):A.min(n),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&Fe.findFrom(i,e)}function dr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Lp(t,e,A){let n=t.state.selection;if(n instanceof Ce)if(A.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return dr(t,new Ce(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Gc(t.state,e);return r&&r instanceof fe?dr(t,r):!1}else if(!(Mt&&A.indexOf("m")>-1)){let r=n.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?fe.isSelectable(i)?dr(t,new fe(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):xs?dr(t,new Ce(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof fe&&n.node.isInline)return dr(t,new Ce(e>0?n.$to:n.$from));{let r=Gc(t.state,e);return r?dr(t,r):!1}}}function jo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ks(t,e){let A=t.pmViewDesc;return A&&A.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Hi(t,e){return e<0?qF(t):ZF(t)}function qF(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r,i,s=!1;for(nn&&A.nodeType==1&&n<jo(A)&&ks(A.childNodes[n],-1)&&(s=!0);;)if(n>0){if(A.nodeType!=1)break;{let a=A.childNodes[n-1];if(ks(a,-1))r=A,i=--n;else if(a.nodeType==3)A=a,n=A.nodeValue.length;else break}}else{if(Hp(A))break;{let a=A.previousSibling;for(;a&&ks(a,-1);)r=A.parentNode,i=RA(a),a=a.previousSibling;if(a)A=a,n=jo(A);else{if(A=A.parentNode,A==t.dom)break;n=0}}}s?Wc(t,A,n):r&&Wc(t,r,i)}function ZF(t){let e=t.domSelectionRange(),A=e.focusNode,n=e.focusOffset;if(!A)return;let r=jo(A),i,s;for(;;)if(n<r){if(A.nodeType!=1)break;let a=A.childNodes[n];if(ks(a,1))i=A,s=++n;else break}else{if(Hp(A))break;{let a=A.nextSibling;for(;a&&ks(a,1);)i=a.parentNode,s=RA(a)+1,a=a.nextSibling;if(a)A=a,n=0,r=jo(A);else{if(A=A.parentNode,A==t.dom)break;n=r=0}}}i&&Wc(t,i,s)}function Hp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function jF(t,e){for(;t&&e==t.childNodes.length&&!_s(t);)e=RA(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let A=t.childNodes[e];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=0}}function eb(t,e){for(;t&&!e&&!_s(t);)e=RA(t),t=t.parentNode;for(;t&&e;){let A=t.childNodes[e-1];if(A.nodeType==3)return A;if(A.nodeType==1&&A.contentEditable=="false")break;t=A,e=t.childNodes.length}}function Wc(t,e,A){if(e.nodeType!=3){let i,s;(s=jF(e,A))?(e=s,A=0):(i=eb(e,A))&&(e=i,A=i.nodeValue.length)}let n=t.domSelection();if(qo(n)){let i=document.createRange();i.setEnd(e,A),i.setStart(e,A),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(e,A);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&kn(t)},50)}function kp(t,e){let A=t.state.doc.resolve(e);if(!(nt||EF)&&A.parent.inlineContent){let r=t.coordsAtPos(e);if(e>A.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<A.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Np(t,e,A){let n=t.state.selection;if(n instanceof Ce&&!n.empty||A.indexOf("s")>-1||Mt&&A.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Gc(t.state,e);if(s&&s instanceof fe)return dr(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=n instanceof tn?Fe.near(s,e):Fe.findFrom(s,e);return a?dr(t,a):!1}return!1}function Dp(t,e){if(!(t.state.selection instanceof Ce))return!0;let{$head:A,$anchor:n,empty:r}=t.state.selection;if(!A.sameParent(n))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!A.textOffset&&(e<0?A.nodeBefore:A.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(A.pos-i.nodeSize,A.pos):s.delete(A.pos,A.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Mp(t,e,A){t.domObserver.stop(),e.contentEditable=A,t.domObserver.start()}function Ab(t){if(!rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:A}=t.domSelectionRange();if(e&&e.nodeType==1&&A==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let n=e.firstChild;Mp(t,n,"true"),setTimeout(()=>Mp(t,n,"false"),20)}return!1}function tb(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function nb(t,e){let A=e.keyCode,n=tb(e);if(A==8||Mt&&A==72&&n=="c")return Dp(t,-1)||Hi(t,-1);if(A==46&&!e.shiftKey||Mt&&A==68&&n=="c")return Dp(t,1)||Hi(t,1);if(A==13||A==27)return!0;if(A==37||Mt&&A==66&&n=="c"){let r=A==37?kp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Lp(t,r,n)||Hi(t,r)}else if(A==39||Mt&&A==70&&n=="c"){let r=A==39?kp(t,t.state.selection.from)=="ltr"?1:-1:1;return Lp(t,r,n)||Hi(t,r)}else{if(A==38||Mt&&A==80&&n=="c")return Np(t,-1,n)||Hi(t,-1);if(A==40||Mt&&A==78&&n=="c")return Ab(t)||Np(t,1,n)||Hi(t,1);if(n==(Mt?"m":"c")&&(A==66||A==73||A==89||A==90))return!0}return!1}function Rp(t,e){t.someProp("transformCopied",B=>{e=B(e,t)});let A=[],{content:n,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){r--,i--;let B=n.firstChild;A.push(B.type.name,B.attrs!=B.type.defaultAttrs?B.attrs:null),n=B.content}let s=t.someProp("clipboardSerializer")||mn.fromSchema(t.state.schema),a=Xp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,f,p=0;for(;u&&u.nodeType==1&&(f=$p[u.nodeName.toLowerCase()]);){for(let B=f.length-1;B>=0;B--){let w=a.createElement(f[B]);for(;c.firstChild;)w.appendChild(c.firstChild);c.appendChild(w),p++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${p?` -${p}`:""} ${JSON.stringify(A)}`);let g=t.someProp("clipboardTextSerializer",B=>B(e,t))||e.content.textBetween(0,e.content.size,`
8
8
 
9
9
  `);return{dom:c,text:g,slice:e}}function Kp(t,e,A,n,r){let i=r.parent.type.spec.code,s,a;if(!A&&!e)return null;let c=e&&(n||i||!A);if(c){if(t.someProp("transformPastedText",g=>{e=g(e,i||n,t)}),i)return e?new j(Y.from(t.state.schema.text(e.replace(/\r\n?/g,`
10
- `))),0,0):j.empty;let p=t.someProp("clipboardTextParser",g=>g(e,r,n,t));if(p)a=p;else{let g=r.marks(),{schema:B}=t.state,w=mn.fromSchema(B);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(Q=>{let b=s.appendChild(document.createElement("p"));Q&&b.appendChild(w.serializeNode(B.text(Q,g)))})}}else t.someProp("transformPastedHTML",p=>{A=p(A,t)}),s=ib(A),xs&&sb(s);let u=s&&s.querySelector("[data-pm-slice]"),f=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let p=+f[3];p>0;p--){let g=s.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;s=g}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Fi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!nb.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)a=ob(Wp(a,+f[1],+f[2]),f[4]);else if(a=j.maxOpen(rb(a.content,r),!0),a.openStart||a.openEnd){let p=0,g=0;for(let B=a.content.firstChild;p<a.openStart&&!B.type.spec.isolating;p++,B=B.firstChild);for(let B=a.content.lastChild;g<a.openEnd&&!B.type.spec.isolating;g++,B=B.lastChild);a=Wp(a,p,g)}return t.someProp("transformPasted",p=>{a=p(a,t)}),a}const nb=/^(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 rb(t,e){if(t.childCount<2)return t;for(let A=e.depth;A>=0;A--){let r=e.node(A).contentMatchAt(e.index(A)),i,s=[];if(t.forEach(a=>{if(!s)return;let c=r.findWrapping(a.type),u;if(!c)return s=null;if(u=s.length&&i.length&&Pp(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Gp(s[s.length-1],i.length));let f=Vp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return Y.from(s)}return t}function Vp(t,e,A=0){for(let n=e.length-1;n>=A;n--)t=e[n].create(null,Y.from(t));return t}function Pp(t,e,A,n,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Pp(t,e,A,n.lastChild,r+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(r==t.length-1?A.type:t[r+1]))return n.copy(n.content.append(Y.from(Vp(A,t,r+1))))}}function Gp(t,e){if(e==0)return t;let A=t.content.replaceChild(t.childCount-1,Gp(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(Y.empty,!0);return t.copy(A.append(n))}function $c(t,e,A,n,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<n-1&&(a=$c(a,e,A,n,r+1,i)),r>=A&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(Y.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function Wp(t,e,A){return e<t.openStart&&(t=new j($c(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),A<t.openEnd&&(t=new j($c(t.content,1,A,t.openEnd,0,0),t.openStart,A)),t}const $p={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Jp=null;function Xp(){return Jp||(Jp=document.implementation.createHTMLDocument("title"))}function ib(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let A=Xp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&$p[n[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),A.innerHTML=t,r)for(let i=0;i<r.length;i++)A=A.querySelector(r[i])||A;return A}function sb(t){let e=t.querySelectorAll(nt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let A=0;A<e.length;A++){let n=e[A];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function ob(t,e){if(!t.size)return t;let A=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=n.length-2;a>=0;a-=2){let c=A.nodes[n[a]];if(!c||c.hasRequiredAttrs())break;r=Y.from(c.create(n[a+1],r)),i++,s++}return new j(r,i,s)}const it={},st={},ab={touchstart:!0,touchmove:!0};class lb{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=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 cb(t){for(let e in it){let A=it[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>{fb(t,n)&&!Xc(t,n)&&(t.editable||!(n.type in st))&&A(t,n)},ab[e]?{passive:!0}:void 0)}rt&&t.dom.addEventListener("input",()=>null),Jc(t)}function hr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function ub(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 Jc(t){t.someProp("handleDOMEvents",e=>{for(let A in e)t.input.eventHandlers[A]||t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>Xc(t,n))})}function Xc(t,e){return t.someProp("handleDOMEvents",A=>{let n=A[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function fb(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let A=e.target;A!=t.dom;A=A.parentNode)if(!A||A.nodeType==11||A.pmViewDesc&&A.pmViewDesc.stopEvent(e))return!1;return!0}function db(t,e){!Xc(t,e)&&it[e.type]&&(t.editable||!(e.type in st))&&it[e.type](t,e)}st.keydown=(t,e)=>{let A=e;if(t.input.shiftKey=A.keyCode==16||A.shiftKey,!zp(t,A)&&(t.input.lastKeyCode=A.keyCode,t.input.lastKeyCodeTime=Date.now(),!(rn&&nt&&A.keyCode==13)))if(A.keyCode!=229&&t.domObserver.forceFlush(),Oi&&A.keyCode==13&&!A.ctrlKey&&!A.altKey&&!A.metaKey){let n=Date.now();t.input.lastIOSEnter=n,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==n&&(t.someProp("handleKeyDown",r=>r(t,Xr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,A))||tb(t,A)?A.preventDefault():hr(t,"key")},st.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},st.keypress=(t,e)=>{let A=e;if(zp(t,A)||!A.charCode||A.ctrlKey&&!A.altKey||Mt&&A.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,A))){A.preventDefault();return}let n=t.state.selection;if(!(n instanceof Ce)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(A.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,n.$from.pos,n.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),A.preventDefault()}};function ea(t){return{left:t.clientX,top:t.clientY}}function hb(t,e){let A=e.x-t.clientX,n=e.y-t.clientY;return A*A+n*n<100}function Yc(t,e,A,n,r){if(n==-1)return!1;let i=t.state.doc.resolve(n);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,A,i.nodeAfter,i.before(s),r,!0):a(t,A,i.node(s),i.before(s),r,!1)))return!0;return!1}function ki(t,e,A){t.focused||t.focus();let n=t.state.tr.setSelection(e);A=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function pb(t,e){if(e==-1)return!1;let A=t.state.doc.resolve(e),n=A.nodeAfter;return n&&n.isAtom&&fe.isSelectable(n)?(ki(t,new fe(A),"pointer"),!0):!1}function gb(t,e){if(e==-1)return!1;let A=t.state.selection,n,r;A instanceof fe&&(n=A.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(fe.isSelectable(a)){n&&A.$from.depth>0&&s>=A.$from.depth&&i.before(A.$from.depth+1)==A.$from.pos?r=i.before(A.$from.depth):r=i.before(s);break}}return r!=null?(ki(t,fe.create(t.state.doc,r),"pointer"),!0):!1}function mb(t,e,A,n,r){return Yc(t,"handleClickOn",e,A,n)||t.someProp("handleClick",i=>i(t,e,n))||(r?gb(t,A):pb(t,A))}function Bb(t,e,A,n){return Yc(t,"handleDoubleClickOn",e,A,n)||t.someProp("handleDoubleClick",r=>r(t,e,n))}function wb(t,e,A,n){return Yc(t,"handleTripleClickOn",e,A,n)||t.someProp("handleTripleClick",r=>r(t,e,n))||Cb(t,A,n)}function Cb(t,e,A){if(A.button!=0)return!1;let n=t.state.doc;if(e==-1)return n.inlineContent?(ki(t,Ce.create(n,0,n.content.size),"pointer"),!0):!1;let r=n.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)ki(t,Ce.create(n,a+1,a+1+s.content.size),"pointer");else if(fe.isSelectable(s))ki(t,fe.create(n,a),"pointer");else continue;return!0}}function zc(t){return Aa(t)}const Yp=Mt?"metaKey":"ctrlKey";it.mousedown=(t,e)=>{let A=e;t.input.shiftKey=A.shiftKey;let n=zc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&hb(A,t.input.lastClick)&&!A[Yp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:A.clientX,y:A.clientY,type:i};let s=t.posAtCoords(ea(A));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new yb(t,s,A,!!n)):(i=="doubleClick"?Bb:wb)(t,s.pos,s.inside,A)?A.preventDefault():hr(t,"pointer"))};class yb{constructor(e,A,n,r){this.view=e,this.pos=A,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[Yp],this.allowDefault=n.shiftKey;let i,s;if(A.inside>-1)i=e.state.doc.nodeAt(A.inside),s=A.inside;else{let f=e.state.doc.resolve(A.pos);i=f.parent,s=f.depth?f.before():0}const a=r?null:n.target,c=a?e.docView.nearestDesc(a,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:u}=e.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof fe&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&nn&&!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)),hr(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(()=>kn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let A=this.pos;this.view.state.doc!=this.startDoc&&(A=this.view.posAtCoords(ea(e))),this.updateAllowDefault(e),this.allowDefault||!A?hr(this.view,"pointer"):mb(this.view,A.pos,A.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||rt&&this.mightDrag&&!this.mightDrag.node.isAtom||nt&&!this.view.state.selection.visible&&Math.min(Math.abs(A.pos-this.view.state.selection.from),Math.abs(A.pos-this.view.state.selection.to))<=2)?(ki(this.view,Fe.near(this.view.state.doc.resolve(A.pos)),"pointer"),e.preventDefault()):hr(this.view,"pointer")}move(e){this.updateAllowDefault(e),hr(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)}}it.touchstart=t=>{t.input.lastTouch=Date.now(),zc(t),hr(t,"pointer")},it.touchmove=t=>{t.input.lastTouch=Date.now(),hr(t,"pointer")},it.contextmenu=t=>zc(t);function zp(t,e){return t.composing?!0:rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Eb=rn?5e3:-1;st.compositionstart=st.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,A=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!A.textOffset&&A.parentOffset&&A.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||A.marks(),Aa(t,!0),t.markCursor=null;else if(Aa(t),nn&&e.selection.empty&&A.parentOffset&&!A.textOffset&&A.nodeBefore.marks.length){let n=t.domSelectionRange();for(let r=n.focusNode,i=n.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}qp(t,Eb)},st.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++,qp(t,20))};function qp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Aa(t),e))}function Zp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Fb());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Qb(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let A=pF(e.focusNode,e.focusOffset),n=gF(e.focusNode,e.focusOffset);if(A&&n&&A!=n){let r=n.pmViewDesc;if(!r||!r.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let i=A.pmViewDesc;if(!(!i||!i.isText(A.nodeValue)))return n}}return A||n}function Fb(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Aa(t,e=!1){if(!(rn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Zp(t),e||t.docView&&t.docView.dirty){let A=Kc(t);return A&&!A.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(A)):t.updateState(t.state),!0}return!1}}function bb(t,e){if(!t.dom.parentNode)return;let A=t.dom.parentNode.appendChild(document.createElement("div"));A.appendChild(e),A.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout(()=>{A.parentNode&&A.parentNode.removeChild(A),t.focus()},50)}const Ns=gt&&cr<15||Oi&&EF<604;it.copy=st.cut=(t,e)=>{let A=e,n=t.state.selection,r=A.type=="cut";if(n.empty)return;let i=Ns?null:A.clipboardData,s=n.content(),{dom:a,text:c}=Rp(t,s);i?(A.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):bb(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Ub(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function vb(t,e){if(!t.dom.parentNode)return;let A=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(A?"textarea":"div"));A||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),A?Ds(t,n.value,null,r,e):Ds(t,n.textContent,n.innerHTML,r,e)},50)}function Ds(t,e,A,n,r){let i=Kp(t,e,A,n,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,r,i||j.empty)))return!0;if(!i)return!1;let s=Ub(i),a=s?t.state.tr.replaceSelectionWith(s,n):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function jp(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let A=t.getData("text/uri-list");return A?A.replace(/\r?\n/g," "):""}st.paste=(t,e)=>{let A=e;if(t.composing&&!rn)return;let n=Ns?null:A.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Ds(t,jp(n),n.getData("text/html"),r,A)?A.preventDefault():vb(t,A)};class eg{constructor(e,A,n){this.slice=e,this.move=A,this.node=n}}const Ag=Mt?"altKey":"ctrlKey";it.dragstart=(t,e)=>{let A=e,n=t.input.mouseDown;if(n&&n.done(),!A.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(ea(A)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof fe?r.to-1:r.to))){if(n&&n.mightDrag)s=fe.create(t.state.doc,n.mightDrag.pos);else if(A.target&&A.target.nodeType==1){let p=t.docView.nearestDesc(A.target,!0);p&&p.node.type.spec.draggable&&p!=t.docView&&(s=fe.create(t.state.doc,p.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u,slice:f}=Rp(t,a);A.dataTransfer.clearData(),A.dataTransfer.setData(Ns?"Text":"text/html",c.innerHTML),A.dataTransfer.effectAllowed="copyMove",Ns||A.dataTransfer.setData("text/plain",u),t.dragging=new eg(f,!A[Ag],s)},it.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},st.dragover=st.dragenter=(t,e)=>e.preventDefault(),st.drop=(t,e)=>{let A=e,n=t.dragging;if(t.dragging=null,!A.dataTransfer)return;let r=t.posAtCoords(ea(A));if(!r)return;let i=t.state.doc.resolve(r.pos),s=n&&n.slice;s?t.someProp("transformPasted",w=>{s=w(s,t)}):s=Kp(t,jp(A.dataTransfer),Ns?null:A.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!A[Ag]);if(t.someProp("handleDrop",w=>w(t,A,s||j.empty,a))){A.preventDefault();return}if(!s)return;A.preventDefault();let c=s?Wh(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;if(a){let{node:w}=n;w?w.replace(u):u.deleteSelection()}let f=u.mapping.map(c),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=u.doc;if(p?u.replaceRangeWith(f,f,s.content.firstChild):u.replaceRange(f,f,s),u.doc.eq(g))return;let B=u.doc.resolve(f);if(p&&fe.isSelectable(s.content.firstChild)&&B.nodeAfter&&B.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new fe(B));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((Q,b,v,_)=>w=_),u.setSelection(Pc(t,B,u.doc.resolve(w)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},it.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())&&kn(t)},20))},it.blur=(t,e)=>{let A=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),A.relatedTarget&&t.dom.contains(A.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},it.beforeinput=(t,e)=>{if(nt&&rn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:n}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=n||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Xr(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 st)it[t]=st[t];function Ms(t,e){if(t==e)return!0;for(let A in t)if(t[A]!==e[A])return!1;for(let A in e)if(!(A in t))return!1;return!0}class ta{constructor(e,A){this.toDOM=e,this.spec=A||Zr,this.side=this.spec.side||0}map(e,A,n,r){let{pos:i,deleted:s}=e.mapResult(A.from+r,this.side<0?-1:1);return s?null:new Kt(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof ta&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ms(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class pr{constructor(e,A){this.attrs=e,this.spec=A||Zr}map(e,A,n,r){let i=e.map(A.from+r,this.spec.inclusiveStart?-1:1)-n,s=e.map(A.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=s?null:new Kt(i,s,this)}valid(e,A){return A.from<A.to}eq(e){return this==e||e instanceof pr&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)}static is(e){return e.type instanceof pr}destroy(){}}class qc{constructor(e,A){this.attrs=e,this.spec=A||Zr}map(e,A,n,r){let i=e.mapResult(A.from+r,1);if(i.deleted)return null;let s=e.mapResult(A.to+r,-1);return s.deleted||s.pos<=i.pos?null:new Kt(i.pos-n,s.pos-n,this)}valid(e,A){let{index:n,offset:r}=e.content.findIndex(A.from),i;return r==A.from&&!(i=e.child(n)).isText&&r+i.nodeSize==A.to}eq(e){return this==e||e instanceof qc&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)}destroy(){}}class Kt{constructor(e,A,n){this.from=e,this.to=A,this.type=n}copy(e,A){return new Kt(e,A,this.type)}eq(e,A=0){return this.type.eq(e.type)&&this.from+A==e.from&&this.to+A==e.to}map(e,A,n){return this.type.map(e,this,A,n)}static widget(e,A,n){return new Kt(e,e,new ta(A,n))}static inline(e,A,n,r){return new Kt(e,A,new pr(n,r))}static node(e,A,n,r){return new Kt(e,A,new qc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof pr}get widget(){return this.type instanceof ta}}const Ni=[],Zr={};class IA{constructor(e,A){this.local=e.length?e:Ni,this.children=A.length?A:Ni}static create(e,A){return A.length?na(A,e,0,Zr):XA}find(e,A,n){let r=[];return this.findInner(e??0,A??1e9,r,0,n),r}findInner(e,A,n,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=A&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<A&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,A-a,n,r+a,i)}}map(e,A,n){return this==XA||e.maps.length==0?this:this.mapInner(e,A,0,0,n||Zr)}mapInner(e,A,n,r,i){let s;for(let a=0;a<this.local.length;a++){let c=this.local[a].map(e,n,r);c&&c.type.valid(A,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?Ib(this.children,s||[],e,A,n,r,i):s?new IA(s.sort(jr),Ni):XA}add(e,A){return A.length?this==XA?IA.create(e,A):this.addInner(e,A,0):this}addInner(e,A,n){let r,i=0;e.forEach((a,c)=>{let u=c+n,f;if(f=ng(A,a,u)){for(r||(r=this.children.slice());i<r.length&&r[i]<c;)i+=3;r[i]==c?r[i+2]=r[i+2].addInner(a,f,u+1):r.splice(i,0,c,c+a.nodeSize,na(f,a,u+1,Zr)),i+=3}});let s=tg(i?rg(A):A,-n);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new IA(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(e){return e.length==0||this==XA?this:this.removeInner(e,0)}removeInner(e,A){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let s,a=n[i]+A,c=n[i+1]+A;for(let f=0,p;f<e.length;f++)(p=e[f])&&p.from>a&&p.to<c&&(e[f]=null,(s||(s=[])).push(p));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=XA?n[i+2]=u:(n.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,A)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new IA(r,n):XA}forChild(e,A){if(this==XA)return this;if(A.isLeaf)return IA.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,s=i+A.content.size;for(let a=0;a<this.local.length;a++){let c=this.local[a];if(c.from<s&&c.to>i&&c.type instanceof pr){let u=Math.max(i,c.from)-i,f=Math.min(s,c.to)-i;u<f&&(r||(r=[])).push(c.copy(u,f))}}if(r){let a=new IA(r.sort(jr),Ni);return n?new gr([a,n]):a}return n||XA}eq(e){if(this==e)return!0;if(!(e instanceof IA)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let A=0;A<this.local.length;A++)if(!this.local[A].eq(e.local[A]))return!1;for(let A=0;A<this.children.length;A+=3)if(this.children[A]!=e.children[A]||this.children[A+1]!=e.children[A+1]||!this.children[A+2].eq(e.children[A+2]))return!1;return!0}locals(e){return Zc(this.localsInner(e))}localsInner(e){if(this==XA)return Ni;if(e.inlineContent||!this.local.some(pr.is))return this.local;let A=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof pr||A.push(this.local[n]);return A}}IA.empty=new IA([],[]),IA.removeOverlap=Zc;const XA=IA.empty;class gr{constructor(e){this.members=e}map(e,A){const n=this.members.map(r=>r.map(e,A,Zr));return gr.from(n)}forChild(e,A){if(A.isLeaf)return IA.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,A);i!=XA&&(i instanceof gr?n=n.concat(i.members):n.push(i))}return gr.from(n)}eq(e){if(!(e instanceof gr)||e.members.length!=this.members.length)return!1;for(let A=0;A<this.members.length;A++)if(!this.members[A].eq(e.members[A]))return!1;return!0}locals(e){let A,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!A)A=i;else{n&&(A=A.slice(),n=!1);for(let s=0;s<i.length;s++)A.push(i[s])}}return A?Zc(n?A:A.sort(jr)):Ni}static from(e){switch(e.length){case 0:return XA;case 1:return e[0];default:return new gr(e.every(A=>A instanceof IA)?e:e.reduce((A,n)=>A.concat(n instanceof IA?n:n.members),[]))}}}function Ib(t,e,A,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<A.maps.length;u++){let p=0;A.maps[u].forEach((g,B,w,Q)=>{let b=Q-w-(B-g);for(let v=0;v<a.length;v+=3){let _=a[v+1];if(_<0||g>_+f-p)continue;let S=a[v]+f-p;B>=S?a[v+1]=g<=S?-2:-1:g>=f&&b&&(a[v]+=b,a[v+1]+=b)}p+=b}),f=A.maps[u].map(f,-1)}let c=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){c=!0,a[u+1]=-1;continue}let f=A.map(t[u]+i),p=f-r;if(p<0||p>=n.content.size){c=!0;continue}let g=A.map(t[u+1]+i,-1),B=g-r,{index:w,offset:Q}=n.content.findIndex(p),b=n.maybeChild(w);if(b&&Q==p&&Q+b.nodeSize==B){let v=a[u+2].mapInner(A,b,f+1,t[u]+i+1,s);v!=XA?(a[u]=p,a[u+1]=B,a[u+2]=v):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=Sb(a,t,e,A,r,i,s),f=na(u,n,0,s);e=f.local;for(let p=0;p<a.length;p+=3)a[p+1]<0&&(a.splice(p,3),p-=3);for(let p=0,g=0;p<f.children.length;p+=3){let B=f.children[p];for(;g<a.length&&a[g]<B;)g+=3;a.splice(g,0,f.children[p],f.children[p+1],f.children[p+2])}}return new IA(e.sort(jr),a)}function tg(t,e){if(!e||!t.length)return t;let A=[];for(let n=0;n<t.length;n++){let r=t[n];A.push(new Kt(r.from+e,r.to+e,r.type))}return A}function Sb(t,e,A,n,r,i,s){function a(c,u){for(let f=0;f<c.local.length;f++){let p=c.local[f].map(n,r,u);p?A.push(p):s.onRemove&&s.onRemove(c.local[f].spec)}for(let f=0;f<c.children.length;f+=3)a(c.children[f+2],c.children[f]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&a(t[c+2],e[c]+i+1);return A}function ng(t,e,A){if(e.isLeaf)return null;let n=A+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>A&&s.to<n&&((r||(r=[])).push(s),t[i]=null);return r}function rg(t){let e=[];for(let A=0;A<t.length;A++)t[A]!=null&&e.push(t[A]);return e}function na(t,e,A,n){let r=[],i=!1;e.forEach((a,c)=>{let u=ng(t,a,c+A);if(u){i=!0;let f=na(u,a,A+c+1,n);f!=XA&&r.push(c,c+a.nodeSize,f)}});let s=tg(i?rg(t):t,-A).sort(jr);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(n.onRemove&&n.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new IA(s,r):XA}function jr(t,e){return t.from-e.from||t.to-e.to}function Zc(t){let e=t;for(let A=0;A<e.length-1;A++){let n=e[A];if(n.from!=n.to)for(let r=A+1;r<e.length;r++){let i=e[r];if(i.from==n.from){i.to!=n.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,n.to),ig(e,r+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(e==t&&(e=t.slice()),e[A]=n.copy(n.from,i.from),ig(e,r,n.copy(i.from,n.to)));break}}}return e}function ig(t,e,A){for(;e<t.length&&jr(A,t[e])>0;)e++;t.splice(e,0,A)}function jc(t){let e=[];return t.someProp("decorations",A=>{let n=A(t.state);n&&n!=XA&&e.push(n)}),t.cursorWrapper&&e.push(IA.create(t.state.doc,[t.cursorWrapper.deco])),gr.from(e)}const Tb={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},_b=gt&&cr<=11;class xb{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 Ob{constructor(e,A){this.view=e,this.handleDOMChange=A,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new xb,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let r=0;r<n.length;r++)this.queue.push(n[r]);gt&&cr<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),_b&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.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,Tb)),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 A=0;A<e.length;A++)this.queue.push(e[A]);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(xp(this.view)){if(this.suppressingSelectionUpdates)return kn(this.view);if(gt&&cr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Jr(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 A=new Set,n;for(let i=e.focusNode;i;i=Ts(i))A.add(i);for(let i=e.anchorNode;i;i=Ts(i))if(A.has(i)){n=i;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))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 A=this.pendingRecords();A.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&xp(e)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(e.editable)for(let f=0;f<A.length;f++){let p=this.registerMutation(A[f],c);p&&(i=i<0?p.from:Math.min(p.from,i),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(a=!0))}if(nn&&c.length){let f=c.filter(p=>p.nodeName=="BR");if(f.length==2){let[p,g]=f;p.parentNode&&p.parentNode.parentNode==g.parentNode?g.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let g of f){let B=g.parentNode;B&&B.nodeName=="LI"&&(!p||kb(e,p)!=B)&&g.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&qo(n)&&(u=Kc(e))&&u.eq(Fe.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,kn(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),Lb(e)),this.handleDOMChange(i,s,a,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||kn(e),this.currentSelection.set(n))}registerMutation(e,A){if(A.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++)A.push(e.addedNodes[f]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(gt&&cr<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:p,nextSibling:g}=e.addedNodes[f];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(r=p),(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==e.target?RA(r)+1:0,a=n.localPosFromDOM(e.target,s,-1),c=i&&i.parentNode==e.target?RA(i):e.target.childNodes.length,u=n.localPosFromDOM(e.target,c,1);return{from:a,to:u}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let sg=new WeakMap,og=!1;function Lb(t){if(!sg.has(t)&&(sg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=nn,og)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."),og=!0}}function ag(t,e){let A=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Jr(s.node,s.offset,r,i)&&([A,n,r,i]=[r,i,A,n]),{anchorNode:A,anchorOffset:n,focusNode:r,focusOffset:i}}function Hb(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return ag(t,r)}let A;function n(r){r.preventDefault(),r.stopImmediatePropagation(),A=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),A?ag(t,A):null}function kb(t,e){for(let A=e.parentNode;A&&A!=t.dom;A=A.parentNode){let n=t.docView.nearestDesc(A,!0);if(n&&n.node.isBlock)return A}return null}function Nb(t,e,A){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,A),c=t.domSelectionRange(),u,f=c.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(u=[{node:f,offset:c.anchorOffset}],qo(c)||u.push({node:c.focusNode,offset:c.focusOffset})),nt&&t.input.lastKeyCode===8)for(let b=i;b>r;b--){let v=n.childNodes[b-1],_=v.pmViewDesc;if(v.nodeName=="BR"&&!_){i=b;break}if(!_||_.size)break}let p=t.state.doc,g=t.someProp("domParser")||Fi.fromSchema(t.state.schema),B=p.resolve(s),w=null,Q=g.parse(n,{topNode:B.parent,topMatch:B.parent.contentMatchAt(B.index()),topOpen:!0,from:r,to:i,preserveWhitespace:B.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:Db,context:B});if(u&&u[0].pos!=null){let b=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=b),w={anchor:b+s,head:v+s}}return{doc:Q,sel:w,from:s,to:a}}function Db(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let A=document.createElement("div");return A.appendChild(document.createElement("li")),{skip:A}}else if(t.parentNode.lastChild==t||rt&&/^(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 Mb=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Rb(t,e,A,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let D=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,se=Kc(t,D);if(se&&!t.state.selection.eq(se)){if(nt&&rn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ne=>ne(t,Xr(13,"Enter"))))return;let Be=t.state.tr.setSelection(se);D=="pointer"?Be.setMeta("pointer",!0):D=="key"&&Be.scrollIntoView(),i&&Be.setMeta("composition",i),t.dispatch(Be)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(A);e=s.before(a+1),A=t.state.doc.resolve(A).after(a+1);let c=t.state.selection,u=Nb(t,e,A),f=t.state.doc,p=f.slice(u.from,u.to),g,B;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(g=t.state.selection.to,B="end"):(g=t.state.selection.from,B="start"),t.input.lastKeyCode=null;let w=Pb(p.content,u.doc.content,u.from,g,B);if((Oi&&t.input.lastIOSEnter>Date.now()-225||rn)&&r.some(D=>D.nodeType==1&&!Mb.test(D.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",D=>D(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!w)if(n&&c instanceof Ce&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))w={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let D=lg(t,t.state.doc,u.sel);if(D&&!D.eq(t.state.selection)){let se=t.state.tr.setSelection(D);i&&se.setMeta("composition",i),t.dispatch(se)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&w.start==w.endB&&t.state.selection instanceof Ce&&(w.start>t.state.selection.from&&w.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?w.start=t.state.selection.from:w.endA<t.state.selection.to&&w.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(w.endB+=t.state.selection.to-w.endA,w.endA=t.state.selection.to)),gt&&cr<=11&&w.endB==w.start+1&&w.endA==w.start&&w.start>u.from&&u.doc.textBetween(w.start-u.from-1,w.start-u.from+1)=="  "&&(w.start--,w.endA--,w.endB--);let Q=u.doc.resolveNoCache(w.start-u.from),b=u.doc.resolveNoCache(w.endB-u.from),v=f.resolve(w.start),_=Q.sameParent(b)&&Q.parent.inlineContent&&v.end()>=w.endA,S;if((Oi&&t.input.lastIOSEnter>Date.now()-225&&(!_||r.some(D=>D.nodeName=="DIV"||D.nodeName=="P"))||!_&&Q.pos<u.doc.content.size&&!Q.sameParent(b)&&(S=Fe.findFrom(u.doc.resolve(Q.pos+1),1,!0))&&S.head==b.pos)&&t.someProp("handleKeyDown",D=>D(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>w.start&&Vb(f,w.start,w.endA,Q,b)&&t.someProp("handleKeyDown",D=>D(t,Xr(8,"Backspace")))){rn&&nt&&t.domObserver.suppressSelectionUpdates();return}nt&&rn&&w.endB==w.start&&(t.input.lastAndroidDelete=Date.now()),rn&&!_&&Q.start()!=b.start()&&b.parentOffset==0&&Q.depth==b.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==w.endA&&(w.endB-=2,b=u.doc.resolveNoCache(w.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(D){return D(t,Xr(13,"Enter"))})},20));let E=w.start,L=w.endA,U,N,V;if(_){if(Q.pos==b.pos)gt&&cr<=11&&Q.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>kn(t),20)),U=t.state.tr.delete(E,L),N=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(V=Kb(Q.parent.content.cut(Q.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,w.endA-v.start()))))U=t.state.tr,V.type=="add"?U.addMark(E,L,V.mark):U.removeMark(E,L,V.mark);else if(Q.parent.child(Q.index()).isText&&Q.index()==b.index()-(b.textOffset?0:1)){let D=Q.parent.textBetween(Q.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",se=>se(t,E,L,D)))return;U=t.state.tr.insertText(D,E,L)}}if(U||(U=t.state.tr.replace(E,L,u.doc.slice(w.start-u.from,w.endB-u.from))),u.sel){let D=lg(t,U.doc,u.sel);D&&!(nt&&rn&&t.composing&&D.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(D.head==E||D.head==U.mapping.map(L)-1)||gt&&D.empty&&D.head==E)&&U.setSelection(D)}N&&U.ensureMarks(N),i&&U.setMeta("composition",i),t.dispatch(U.scrollIntoView())}function lg(t,e,A){return Math.max(A.anchor,A.head)>e.content.size?null:Pc(t,e.resolve(A.anchor),e.resolve(A.head))}function Kb(t,e){let A=t.firstChild.marks,n=e.firstChild.marks,r=A,i=n,s,a,c;for(let f=0;f<n.length;f++)r=n[f].removeFromSet(r);for(let f=0;f<A.length;f++)i=A[f].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",c=f=>f.mark(a.addToSet(f.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",c=f=>f.mark(a.removeFromSet(f.marks));else return null;let u=[];for(let f=0;f<e.childCount;f++)u.push(c(e.child(f)));if(Y.from(u).eq(t))return{mark:a,type:s}}function Vb(t,e,A,n,r){if(A-e<=r.pos-n.pos||eu(n,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!n.parent.isTextblock){let a=i.nodeAfter;return a!=null&&A==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(eu(i,!0,!0));return!s.parent.isTextblock||s.pos>A||eu(s,!0,!1)<A?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function eu(t,e,A){let n=t.depth,r=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,r++,e=!1;if(A){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Pb(t,e,A,n,r){let i=t.findDiffStart(e,A);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,A+t.size,A+e.size);if(r=="end"){let c=Math.max(0,i-Math.min(s,a));n-=s+c-i}if(s<i&&t.size<e.size){let c=n<=i&&n>=s?i-n:0;i-=c,i&&i<e.size&&cg(e.textBetween(i-1,i+1))&&(i+=c?1:-1),a=i+(a-s),s=i}else if(a<i){let c=n<=i&&n>=a?i-n:0;i-=c,i&&i<t.size&&cg(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function cg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),A=t.charCodeAt(1);return e>=56320&&e<=57343&&A>=55296&&A<=56319}class Gb{constructor(e,A){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 lb,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=A,this.state=A.state,this.directPlugins=A.plugins||[],this.directPlugins.forEach(pg),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=dg(this),fg(this),this.nodeViews=hg(this),this.docView=Cp(this.state.doc,ug(this),jc(this),this.dom,this),this.domObserver=new Ob(this,(n,r,i,s)=>Rb(this,n,r,i,s)),this.domObserver.start(),cb(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 A in e)this._props[A]=e[A];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Jc(this);let A=this._props;this._props=e,e.plugins&&(e.plugins.forEach(pg),this.directPlugins=e.plugins),this.updateStateInner(e.state,A)}setProps(e){let A={};for(let n in this._props)A[n]=this._props[n];A.state=this.state;for(let n in e)A[n]=e[n];this.update(A)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,A){var n;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Zp(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=A.plugins;if(a||this._props.plugins!=A.plugins||this._props.nodeViews!=A.nodeViews){let B=hg(this);$b(B,this.nodeViews)&&(this.nodeViews=B,i=!0)}(a||A.handleDOMEvents!=this._props.handleDOMEvents)&&Jc(this),this.editable=dg(this),fg(this);let c=jc(this),u=ug(this),f=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,u,c);(p||!e.selection.eq(r.selection))&&(s=!0);let g=f=="preserve"&&s&&this.dom.style.overflowAnchor==null&&bF(this);if(s){this.domObserver.stop();let B=p&&(gt||nt)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Wb(r.selection,e.selection);if(p){let w=nt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Qb(this)),(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Cp(e.doc,u,c,this.dom,this)),w&&!this.trackWrites&&(B=!0)}B||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&YF(this))?kn(this,B):(Tp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((n=this.dragging)===null||n===void 0)&&n.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&UF(g)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",A=>A(this)))if(this.state.selection instanceof fe){let A=this.docView.domAfterPos(this.state.selection.from);A.nodeType==1&&op(this,A.getBoundingClientRect(),e)}else op(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 A=0;A<this.directPlugins.length;A++){let n=this.directPlugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let A=0;A<this.state.plugins.length;A++){let n=this.state.plugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let A=0;A<this.pluginViews.length;A++){let n=this.pluginViews[A];n.update&&n.update(this,e)}}updateDraggedNode(e,A){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let i=n.from+(this.state.doc.content.size-A.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new eg(e.slice,e.move,r<0?void 0:fe.create(this.state.doc,r))}someProp(e,A){let n=this._props&&this._props[e],r;if(n!=null&&(r=A?A(n):n))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=A?A(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=A?A(a):a))return r}}hasFocus(){if(gt){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&&vF(this.dom),kn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let A=this.dom.parentNode;A;A=A.parentNode)if(A.nodeType==9||A.nodeType==11&&A.host)return A.getSelection||(Object.getPrototypeOf(A).getSelection=()=>A.ownerDocument.getSelection()),this._root=A}return e||document}updateRoot(){this._root=null}posAtCoords(e){return xF(this,e)}coordsAtPos(e,A=1){return dp(this,e,A)}domAtPos(e,A=0){return this.docView.domFromPos(e,A)}nodeDOM(e){let A=this.docView.descAt(e);return A?A.nodeDOM:null}posAtDOM(e,A,n=-1){let r=this.docView.posFromDOM(e,A,n);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,A){return NF(this,A||this.state,e)}pasteHTML(e,A){return Ds(this,"",e,!1,A||new ClipboardEvent("paste"))}pasteText(e,A){return Ds(this,e,null,!0,A||new ClipboardEvent("paste"))}destroy(){this.docView&&(ub(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],jc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,dF())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return db(this,e)}dispatch(e){let A=this._props.dispatchTransaction;A?A.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return rt&&this.root.nodeType===11&&BF(this.dom.ownerDocument)==this.dom&&Hb(this,e)||e}domSelection(){return this.root.getSelection()}}function ug(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",A=>{if(typeof A=="function"&&(A=A(t.state)),A)for(let n in A)n=="class"?e.class+=" "+A[n]:n=="style"?e.style=(e.style?e.style+";":"")+A[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(A[n]))}),e.translate||(e.translate="no"),[Kt.node(0,t.state.doc.content.size,e)]}function fg(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:Kt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function dg(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Wb(t,e){let A=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(A)!=e.$anchor.start(A)}function hg(t){let e=Object.create(null);function A(n){for(let r in n)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=n[r])}return t.someProp("nodeViews",A),t.someProp("markViews",A),e}function $b(t,e){let A=0,n=0;for(let r in t){if(t[r]!=e[r])return!0;A++}for(let r in e)n++;return A!=n}function pg(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 mr={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:"'"},ra={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Jb=typeof navigator<"u"&&/Mac/.test(navigator.platform),Xb=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),KA=0;KA<10;KA++)mr[48+KA]=mr[96+KA]=String(KA);for(var KA=1;KA<=24;KA++)mr[KA+111]="F"+KA;for(var KA=65;KA<=90;KA++)mr[KA]=String.fromCharCode(KA+32),ra[KA]=String.fromCharCode(KA);for(var Au in mr)ra.hasOwnProperty(Au)||(ra[Au]=mr[Au]);function Yb(t){var e=Jb&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Xb&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",A=!e&&t.key||(t.shiftKey?ra:mr)[t.keyCode]||t.key||"Unidentified";return A=="Esc"&&(A="Escape"),A=="Del"&&(A="Delete"),A=="Left"&&(A="ArrowLeft"),A=="Up"&&(A="ArrowUp"),A=="Right"&&(A="ArrowRight"),A=="Down"&&(A="ArrowDown"),A}const zb=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function qb(t){let e=t.split(/-(?!$)/),A=e[e.length-1];A=="Space"&&(A=" ");let n,r,i,s;for(let a=0;a<e.length-1;a++){let c=e[a];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))zb?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+c)}return n&&(A="Alt-"+A),r&&(A="Ctrl-"+A),s&&(A="Meta-"+A),i&&(A="Shift-"+A),A}function Zb(t){let e=Object.create(null);for(let A in t)e[qb(A)]=t[A];return e}function tu(t,e,A=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),A&&e.shiftKey&&(t="Shift-"+t),t}function jb(t){return new pt({props:{handleKeyDown:gg(t)}})}function gg(t){let e=Zb(t);return function(A,n){let r=Yb(n),i,s=e[tu(r,n)];if(s&&s(A.state,A.dispatch,A))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=e[tu(r,n,!1)];if(a&&a(A.state,A.dispatch,A))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=mr[n.keyCode])&&i!=r){let a=e[tu(i,n)];if(a&&a(A.state,A.dispatch,A))return!0}}return!1}}const eU=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function mg(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("backward",t):A.parentOffset>0)?null:A}const AU=(t,e,A)=>{let n=mg(t,A);if(!n)return!1;let r=nu(n);if(!r){let s=n.blockRange(),a=s&&vi(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&yg(t,r,e))return!0;if(n.parent.content.size==0&&(Di(i,"end")||fe.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Di(i,"end")?Fe.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):fe.create(a.doc,r.pos-i.nodeSize)),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},tU=(t,e,A)=>{let n=mg(t,A);if(!n)return!1;let r=nu(n);return r?Bg(t,r,e):!1},nU=(t,e,A)=>{let n=wg(t,A);if(!n)return!1;let r=ru(n);return r?Bg(t,r,e):!1};function Bg(t,e,A){let n=e.nodeBefore,r=n,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let s=e.nodeAfter,a=s,c=e.pos+1;for(;!a.isTextblock;c++){if(a.type.spec.isolating)return!1;let f=a.firstChild;if(!f)return!1;a=f}let u=Xo(t.doc,i,c,j.empty);if(!u||u.from!=i||u instanceof xA&&u.slice.size>=c-i)return!1;if(A){let f=t.tr.step(u);f.setSelection(Ce.create(f.doc,i)),A(f.scrollIntoView())}return!0}function Di(t,e,A=!1){for(let n=t;n;n=e=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(A&&n.childCount!=1)return!1}return!1}const rU=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=nu(n)}let s=i&&i.nodeBefore;return!s||!fe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(fe.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function nu(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 wg(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("forward",t):A.parentOffset<A.parent.content.size)?null:A}const iU=(t,e,A)=>{let n=wg(t,A);if(!n)return!1;let r=ru(n);if(!r)return!1;let i=r.nodeAfter;if(yg(t,r,e))return!0;if(n.parent.content.size==0&&(Di(i,"start")||fe.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Di(i,"start")?Fe.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):fe.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},sU=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=ru(n)}let s=i&&i.nodeAfter;return!s||!fe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(fe.create(t.doc,i.pos)).scrollIntoView()),!0)};function ru(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let A=t.node(e);if(t.index(e)+1<A.childCount)return t.doc.resolve(t.after(e+1));if(A.type.spec.isolating)break}return null}const oU=(t,e)=>{let A=t.selection,n=A instanceof fe,r;if(n){if(A.node.isTextblock||!ar(t.doc,A.from))return!1;r=A.from}else if(r=Jo(t.doc,A.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);n&&i.setSelection(fe.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},aU=(t,e)=>{let A=t.selection,n;if(A instanceof fe){if(A.node.isTextblock||!ar(t.doc,A.to))return!1;n=A.to}else if(n=Jo(t.doc,A.to,1),n==null)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0},lU=(t,e)=>{let{$from:A,$to:n}=t.selection,r=A.blockRange(n),i=r&&vi(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},cU=(t,e)=>{let{$head:A,$anchor:n}=t.selection;return!A.parent.type.spec.code||!A.sameParent(n)?!1:(e&&e(t.tr.insertText(`
11
- `).scrollIntoView()),!0)};function Cg(t){for(let e=0;e<t.edgeCount;e++){let{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}const uU=(t,e)=>{let{$head:A,$anchor:n}=t.selection;if(!A.parent.type.spec.code||!A.sameParent(n))return!1;let r=A.node(-1),i=A.indexAfter(-1),s=Cg(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=A.after(),c=t.tr.replaceWith(a,a,s.createAndFill());c.setSelection(Fe.near(c.doc.resolve(a),1)),e(c.scrollIntoView())}return!0},fU=(t,e)=>{let A=t.selection,{$from:n,$to:r}=A;if(A instanceof tn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=Cg(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!n.parentOffset&&r.index()<r.parent.childCount?n:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(Ce.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},dU=(t,e)=>{let{$cursor:A}=t.selection;if(!A||A.parent.content.size)return!1;if(A.depth>1&&A.after()!=A.end(-1)){let i=A.before();if(Ii(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let n=A.blockRange(),r=n&&vi(n);return r==null?!1:(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)},hU=(t,e)=>{let{$from:A,to:n}=t.selection,r,i=A.sharedDepth(n);return i==0?!1:(r=A.before(i),e&&e(t.tr.setSelection(fe.create(t.doc,r))),!0)};function pU(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i=e.index();return!n||!r||!n.type.compatibleContent(r.type)?!1:!n.content.size&&e.parent.canReplace(i-1,i)?(A&&A(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||ar(t.doc,e.pos))?!1:(A&&A(t.tr.clearIncompatible(e.pos,n.type,n.contentMatchAt(n.childCount)).join(e.pos).scrollIntoView()),!0)}function yg(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(pU(t,e,A))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(i=(s=n.contentMatchAt(n.childCount)).findWrapping(r.type))&&s.matchType(i[0]||r.type).validEnd){if(A){let p=e.pos+r.nodeSize,g=Y.empty;for(let Q=i.length-1;Q>=0;Q--)g=Y.from(i[Q].create(null,g));g=Y.from(n.copy(g));let B=t.tr.step(new OA(e.pos-1,p,e.pos,p,new j(g,1,0),i.length,!0)),w=p+2*i.length;ar(B.doc,w)&&B.join(w),A(B.scrollIntoView())}return!0}let c=Fe.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),f=u&&vi(u);if(f!=null&&f>=e.depth)return A&&A(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Di(r,"start",!0)&&Di(n,"end")){let p=n,g=[];for(;g.push(p),!p.isTextblock;)p=p.lastChild;let B=r,w=1;for(;!B.isTextblock;B=B.firstChild)w++;if(p.canReplace(p.childCount,p.childCount,B.content)){if(A){let Q=Y.empty;for(let v=g.length-1;v>=0;v--)Q=Y.from(g[v].copy(Q));let b=t.tr.step(new OA(e.pos-g.length,e.pos+r.nodeSize,e.pos+w,e.pos+r.nodeSize-w,new j(Q,g.length,0),0,!0));A(b.scrollIntoView())}return!0}}return!1}function Eg(t){return function(e,A){let n=e.selection,r=t<0?n.$from:n.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(A&&A(e.tr.setSelection(Ce.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const gU=Eg(-1),mU=Eg(1);function BU(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,s=r.blockRange(i),a=s&&bc(s,t,e);return a?(n&&n(A.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Qg(t,e=null){return function(A,n){let r=!1;for(let i=0;i<A.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=A.selection.ranges[i];A.doc.nodesBetween(s,a,(c,u)=>{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)r=!0;else{let f=A.doc.resolve(u),p=f.index();r=f.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=A.tr;for(let s=0;s<A.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=A.selection.ranges[s];i.setBlockType(a,c,t,e)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function wU(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,s=r.blockRange(i),a=!1,c=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let f=A.doc.resolve(s.start-2);c=new Ro(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new Ro(r,A.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=bc(c,t,e,s);return u?(n&&n(CU(A.tr,s,u,a,t).scrollIntoView()),!0):!1}}function CU(t,e,A,n,r){let i=Y.empty;for(let f=A.length-1;f>=0;f--)i=Y.from(A[f].type.create(A[f].attrs,i));t.step(new OA(e.start-(n?2:0),e.end,e.start,e.end,new j(i,0,0),A.length,!0));let s=0;for(let f=0;f<A.length;f++)A[f].type==r&&(s=f+1);let a=A.length-s,c=e.start+A.length-(n?2:0),u=e.parent;for(let f=e.startIndex,p=e.endIndex,g=!0;f<p;f++,g=!1)!g&&Ii(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(f).nodeSize;return t}function yU(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?A?n.node(i.depth-1).type==t?EU(e,A,t,i):QU(e,A,i):!0:!1}}function EU(t,e,A,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new OA(i-1,s,i,s,new j(Y.from(A.create(null,n.parent.copy())),1,0),1,!0)),n=new Ro(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=vi(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return ar(r.doc,c)&&r.join(c),e(r.scrollIntoView()),!0}function QU(t,e,A){let n=t.tr,r=A.parent;for(let B=A.end,w=A.endIndex-1,Q=A.startIndex;w>Q;w--)B-=r.child(w).nodeSize,n.delete(B-1,B+1);let i=n.doc.resolve(A.start),s=i.nodeAfter;if(n.mapping.map(A.end)!=A.start+i.nodeAfter.nodeSize)return!1;let a=A.startIndex==0,c=A.endIndex==r.childCount,u=i.node(-1),f=i.index(-1);if(!u.canReplace(f+(a?0:1),f+1,s.content.append(c?Y.empty:Y.from(r))))return!1;let p=i.pos,g=p+s.nodeSize;return n.step(new OA(p-(a?1:0),g+(c?1:0),p+1,g-1,new j((a?Y.empty:Y.from(r.copy(Y.empty))).append(c?Y.empty:Y.from(r.copy(Y.empty))),a?0:1,c?0:1),a?0:1)),e(n.scrollIntoView()),!0}function FU(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,c=a.child(s-1);if(c.type!=t)return!1;if(A){let u=c.lastChild&&c.lastChild.type==a.type,f=Y.from(u?t.create():null),p=new j(Y.from(t.create(null,Y.from(a.type.create(null,f)))),u?3:1,0),g=i.start,B=i.end;A(e.tr.step(new OA(g-(u?3:1),B,g,B,p,1,!0)).scrollIntoView())}return!0}}function ia(t){const{state:e,transaction:A}=t;let{selection:n}=A,{doc:r}=A,{storedMarks:i}=A;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 i},get selection(){return n},get doc(){return r},get tr(){return n=A.selection,r=A.doc,i=A.storedMarks,A}}}class sa{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:A,state:n}=this,{view:r}=A,{tr:i}=n,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,c])=>[a,(...f)=>{const p=c(...f)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!e,u=e||i.tr,f=()=>(!c&&A&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(g=>g===!0)),p={...Object.fromEntries(Object.entries(n).map(([g,B])=>[g,(...Q)=>{const b=this.buildProps(u,A),v=B(...Q)(b);return a.push(v),p}])),run:f};return p}createCan(e){const{rawCommands:A,state:n}=this,r=!1,i=e||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(A).map(([c,u])=>[c,(...f)=>u(...f)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:ia({state:i,transaction:e}),dispatch:A?()=>{}:void 0,chain:()=>this.createChain(e,A),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...f)=>u(...f)(a)]))}};return a}}class bU{constructor(){this.callbacks={}}on(e,A){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(A),this}emit(e,...A){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,A)),this}off(e,A){const n=this.callbacks[e];return n&&(A?this.callbacks[e]=n.filter(r=>r!==A):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ae(t,e,A){return t.config[e]===void 0&&t.parent?ae(t.parent,e,A):typeof t.config[e]=="function"?t.config[e].bind({...A,parent:t.parent?ae(t.parent,e,A):null}):t.config[e]}function oa(t){const e=t.filter(r=>r.type==="extension"),A=t.filter(r=>r.type==="node"),n=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:A,markExtensions:n}}function Fg(t){const e=[],{nodeExtensions:A,markExtensions:n}=oa(t),r=[...A,...n],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=ae(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(p=>{Object.entries(f.attributes).forEach(([g,B])=>{e.push({type:p,name:g,attribute:{...i,...B}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=ae(s,"addAttributes",a);if(!c)return;const u=c();Object.entries(u).forEach(([f,p])=>{const g={...i,...p};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,e.push({type:s.name,name:f,attribute:g})})}),e}function LA(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 FA(...t){return t.filter(e=>!!e).reduce((e,A)=>{const n={...e};return Object.entries(A).forEach(([r,i])=>{if(!n[r]){n[r]=i;return}if(r==="class"){const a=i?i.split(" "):[],c=n[r]?n[r].split(" "):[],u=a.filter(f=>!c.includes(f));n[r]=[...c,...u].join(" ")}else r==="style"?n[r]=[n[r],i].join("; "):n[r]=i}),n},{})}function iu(t,e){return e.filter(A=>A.attribute.rendered).map(A=>A.attribute.renderHTML?A.attribute.renderHTML(t.attrs)||{}:{[A.name]:t.attrs[A.name]}).reduce((A,n)=>FA(A,n),{})}function bg(t){return typeof t=="function"}function be(t,e=void 0,...A){return bg(t)?e?t.bind(e)(...A):t(...A):t}function UU(t={}){return Object.keys(t).length===0&&t.constructor===Object}function vU(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Ug(t,e){return t.style?t:{...t,getAttrs:A=>{const n=t.getAttrs?t.getAttrs(A):t.attrs;if(n===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(A):vU(A.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function vg(t){return Object.fromEntries(Object.entries(t).filter(([e,A])=>e==="attrs"&&UU(A)?!1:A!=null))}function IU(t,e){var A;const n=Fg(t),{nodeExtensions:r,markExtensions:i}=oa(t),s=(A=r.find(u=>ae(u,"topNode")))===null||A===void 0?void 0:A.name,a=Object.fromEntries(r.map(u=>{const f=n.filter(v=>v.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:e},g=t.reduce((v,_)=>{const S=ae(_,"extendNodeSchema",p);return{...v,...S?S(u):{}}},{}),B=vg({...g,content:be(ae(u,"content",p)),marks:be(ae(u,"marks",p)),group:be(ae(u,"group",p)),inline:be(ae(u,"inline",p)),atom:be(ae(u,"atom",p)),selectable:be(ae(u,"selectable",p)),draggable:be(ae(u,"draggable",p)),code:be(ae(u,"code",p)),defining:be(ae(u,"defining",p)),isolating:be(ae(u,"isolating",p)),attrs:Object.fromEntries(f.map(v=>{var _;return[v.name,{default:(_=v==null?void 0:v.attribute)===null||_===void 0?void 0:_.default}]}))}),w=be(ae(u,"parseHTML",p));w&&(B.parseDOM=w.map(v=>Ug(v,f)));const Q=ae(u,"renderHTML",p);Q&&(B.toDOM=v=>Q({node:v,HTMLAttributes:iu(v,f)}));const b=ae(u,"renderText",p);return b&&(B.toText=b),[u.name,B]})),c=Object.fromEntries(i.map(u=>{const f=n.filter(b=>b.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:e},g=t.reduce((b,v)=>{const _=ae(v,"extendMarkSchema",p);return{...b,..._?_(u):{}}},{}),B=vg({...g,inclusive:be(ae(u,"inclusive",p)),excludes:be(ae(u,"excludes",p)),group:be(ae(u,"group",p)),spanning:be(ae(u,"spanning",p)),code:be(ae(u,"code",p)),attrs:Object.fromEntries(f.map(b=>{var v;return[b.name,{default:(v=b==null?void 0:b.attribute)===null||v===void 0?void 0:v.default}]}))}),w=be(ae(u,"parseHTML",p));w&&(B.parseDOM=w.map(b=>Ug(b,f)));const Q=ae(u,"renderHTML",p);return Q&&(B.toDOM=b=>Q({mark:b,HTMLAttributes:iu(b,f)})),[u.name,B]}));return new _Q({topNode:s,nodes:a,marks:c})}function su(t,e){return e.nodes[t]||e.marks[t]||null}function Ig(t,e){return Array.isArray(e)?e.some(A=>(typeof A=="string"?A:A.name)===t.name):e}const SU=(t,e=500)=>{let A="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-e),n,(r,i,s,a)=>{var c,u;const f=((u=(c=r.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";A+=f.slice(0,Math.max(0,n-i))}),A};function ou(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class aa{constructor(e){this.find=e.find,this.handler=e.handler}}const TU=(t,e)=>{if(ou(e))return e.exec(t);const A=e(t);if(!A)return null;const n=[A.text];return n.index=A.index,n.input=t,n.data=A.data,A.replaceWith&&(A.text.includes(A.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(A.replaceWith)),n};function la(t){var e;const{editor:A,from:n,to:r,text:i,rules:s,plugin:a}=t,{view:c}=A;if(c.composing)return!1;const u=c.state.doc.resolve(n);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(g=>g.type.spec.code))return!1;let f=!1;const p=SU(u)+i;return s.forEach(g=>{if(f)return;const B=TU(p,g.find);if(!B)return;const w=c.state.tr,Q=ia({state:c.state,transaction:w}),b={from:n-(B[0].length-i.length),to:r},{commands:v,chain:_,can:S}=new sa({editor:A,state:Q});g.handler({state:Q,range:b,match:B,commands:v,chain:_,can:S})===null||!w.steps.length||(w.setMeta(a,{transform:w,from:n,to:r,text:i}),c.dispatch(w),f=!0)}),f}function _U(t){const{editor:e,rules:A}=t,n=new pt({state:{init(){return null},apply(r,i){const s=r.getMeta(n);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:u,text:f}=a,p=u+f.length;la({editor:e,from:u,to:p,text:f,rules:A,plugin:n})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return la({editor:e,from:i,to:s,text:a,rules:A,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&la({editor:e,from:i.pos,to:i.pos,text:"",rules:A,plugin:n})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?la({editor:e,from:s.pos,to:s.pos,text:`
12
- `,rules:A,plugin:n}):!1}},isInputRules:!0});return n}function xU(t){return typeof t=="number"}class OU{constructor(e){this.find=e.find,this.handler=e.handler}}const LU=(t,e,A)=>{if(ou(e))return[...t.matchAll(e)];const n=e(t,A);return n?n.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function HU(t){const{editor:e,state:A,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new sa({editor:e,state:A}),p=[];return A.doc.nodesBetween(n,r,(B,w)=>{if(!B.isTextblock||B.type.spec.code)return;const Q=Math.max(n,w),b=Math.min(r,w+B.content.size),v=B.textBetween(Q-w,b-w,void 0,"");LU(v,i.find,s).forEach(S=>{if(S.index===void 0)return;const E=Q+S.index+1,L=E+S[0].length,U={from:A.tr.mapping.map(E),to:A.tr.mapping.map(L)},N=i.handler({state:A,range:U,match:S,commands:c,chain:u,can:f,pasteEvent:s,dropEvent:a});p.push(N)})}),p.every(B=>B!==null)}const kU=t=>{var e;const A=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=A.clipboardData)===null||e===void 0||e.setData("text/html",t),A};function NU(t){const{editor:e,rules:A}=t;let n=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const c=({state:f,from:p,to:g,rule:B,pasteEvt:w})=>{const Q=f.tr,b=ia({state:f,transaction:Q});if(!(!HU({editor:e,state:b,from:Math.max(p-1,0),to:g.b-1,rule:B,pasteEvent:w,dropEvent:a})||!Q.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,Q};return A.map(f=>new pt({view(p){const g=B=>{var w;n=!((w=p.dom.parentElement)===null||w===void 0)&&w.contains(B.target)?p.dom.parentElement:null};return window.addEventListener("dragstart",g),{destroy(){window.removeEventListener("dragstart",g)}}},props:{handleDOMEvents:{drop:(p,g)=>(i=n===p.dom.parentElement,a=g,!1),paste:(p,g)=>{var B;const w=(B=g.clipboardData)===null||B===void 0?void 0:B.getData("text/html");return s=g,r=!!(w!=null&&w.includes("data-pm-slice")),!1}}},appendTransaction:(p,g,B)=>{const w=p[0],Q=w.getMeta("uiEvent")==="paste"&&!r,b=w.getMeta("uiEvent")==="drop"&&!i,v=w.getMeta("applyPasteRules"),_=!!v;if(!Q&&!b&&!_)return;if(_){const{from:L,text:U}=v,N=L+U.length,V=kU(U);return c({rule:f,state:B,from:L,to:{b:N},pasteEvt:V})}const S=g.doc.content.findDiffStart(B.doc.content),E=g.doc.content.findDiffEnd(B.doc.content);if(!(!xU(S)||!E||S===E.b))return c({rule:f,state:B,from:S,to:E,pasteEvt:s})}}))}function DU(t){const e=t.filter((A,n)=>t.indexOf(A)!==n);return[...new Set(e)]}class Mi{constructor(e,A){this.splittableMarks=[],this.editor=A,this.extensions=Mi.resolve(e),this.schema=IU(this.extensions,A),this.setupExtensions()}static resolve(e){const A=Mi.sort(Mi.flatten(e)),n=DU(A.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),A}static flatten(e){return e.map(A=>{const n={name:A.name,options:A.options,storage:A.storage},r=ae(A,"addExtensions",n);return r?[A,...this.flatten(r())]:A}).flat(10)}static sort(e){return e.sort((n,r)=>{const i=ae(n,"priority")||100,s=ae(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,A)=>{const n={name:A.name,options:A.options,storage:A.storage,editor:this.editor,type:su(A.name,this.schema)},r=ae(A,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,A=Mi.sort([...this.extensions].reverse()),n=[],r=[],i=A.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:su(s.name,this.schema)},c=[],u=ae(s,"addKeyboardShortcuts",a);let f={};if(s.type==="mark"&&s.config.exitable&&(f.ArrowRight=()=>sn.handleExit({editor:e,mark:s})),u){const Q=Object.fromEntries(Object.entries(u()).map(([b,v])=>[b,()=>v({editor:e})]));f={...f,...Q}}const p=jb(f);c.push(p);const g=ae(s,"addInputRules",a);Ig(s,e.options.enableInputRules)&&g&&n.push(...g());const B=ae(s,"addPasteRules",a);Ig(s,e.options.enablePasteRules)&&B&&r.push(...B());const w=ae(s,"addProseMirrorPlugins",a);if(w){const Q=w();c.push(...Q)}return c}).flat();return[_U({editor:e,rules:n}),...NU({editor:e,rules:r}),...i]}get attributes(){return Fg(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:A}=oa(this.extensions);return Object.fromEntries(A.filter(n=>!!ae(n,"addNodeView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e,type:LA(n.name,this.schema)},s=ae(n,"addNodeView",i);if(!s)return[];const a=(c,u,f,p)=>{const g=iu(c,r);return s()({editor:e,node:c,getPos:f,decorations:p,HTMLAttributes:g,extension:n})};return[n.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var A;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:su(e.name,this.schema)};e.type==="mark"&&(!((A=be(ae(e,"keepOnSplit",n)))!==null&&A!==void 0)||A)&&this.splittableMarks.push(e.name);const r=ae(e,"onBeforeCreate",n),i=ae(e,"onCreate",n),s=ae(e,"onUpdate",n),a=ae(e,"onSelectionUpdate",n),c=ae(e,"onTransaction",n),u=ae(e,"onFocus",n),f=ae(e,"onBlur",n),p=ae(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),c&&this.editor.on("transaction",c),u&&this.editor.on("focus",u),f&&this.editor.on("blur",f),p&&this.editor.on("destroy",p)})}}function MU(t){return Object.prototype.toString.call(t).slice(8,-1)}function au(t){return MU(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function ca(t,e){const A={...t};return au(t)&&au(e)&&Object.keys(e).forEach(n=>{au(e[n])?n in t?A[n]=ca(t[n],e[n]):Object.assign(A,{[n]:e[n]}):Object.assign(A,{[n]:e[n]})}),A}class YA{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new YA(e)}configure(e={}){const A=this.extend();return A.parent=this.parent,A.options=ca(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new YA({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}}function Sg(t,e,A){const{from:n,to:r}=e,{blockSeparator:i=`
10
+ `))),0,0):j.empty;let p=t.someProp("clipboardTextParser",g=>g(e,r,n,t));if(p)a=p;else{let g=r.marks(),{schema:B}=t.state,w=mn.fromSchema(B);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(Q=>{let b=s.appendChild(document.createElement("p"));Q&&b.appendChild(w.serializeNode(B.text(Q,g)))})}}else t.someProp("transformPastedHTML",p=>{A=p(A,t)}),s=sb(A),xs&&ob(s);let u=s&&s.querySelector("[data-pm-slice]"),f=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let p=+f[3];p>0;p--){let g=s.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;s=g}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Fi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!rb.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)a=ab(Wp(a,+f[1],+f[2]),f[4]);else if(a=j.maxOpen(ib(a.content,r),!0),a.openStart||a.openEnd){let p=0,g=0;for(let B=a.content.firstChild;p<a.openStart&&!B.type.spec.isolating;p++,B=B.firstChild);for(let B=a.content.lastChild;g<a.openEnd&&!B.type.spec.isolating;g++,B=B.lastChild);a=Wp(a,p,g)}return t.someProp("transformPasted",p=>{a=p(a,t)}),a}const rb=/^(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 ib(t,e){if(t.childCount<2)return t;for(let A=e.depth;A>=0;A--){let r=e.node(A).contentMatchAt(e.index(A)),i,s=[];if(t.forEach(a=>{if(!s)return;let c=r.findWrapping(a.type),u;if(!c)return s=null;if(u=s.length&&i.length&&Pp(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Gp(s[s.length-1],i.length));let f=Vp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return Y.from(s)}return t}function Vp(t,e,A=0){for(let n=e.length-1;n>=A;n--)t=e[n].create(null,Y.from(t));return t}function Pp(t,e,A,n,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Pp(t,e,A,n.lastChild,r+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(r==t.length-1?A.type:t[r+1]))return n.copy(n.content.append(Y.from(Vp(A,t,r+1))))}}function Gp(t,e){if(e==0)return t;let A=t.content.replaceChild(t.childCount-1,Gp(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(Y.empty,!0);return t.copy(A.append(n))}function $c(t,e,A,n,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<n-1&&(a=$c(a,e,A,n,r+1,i)),r>=A&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(Y.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function Wp(t,e,A){return e<t.openStart&&(t=new j($c(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),A<t.openEnd&&(t=new j($c(t.content,1,A,t.openEnd,0,0),t.openStart,A)),t}const $p={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Jp=null;function Xp(){return Jp||(Jp=document.implementation.createHTMLDocument("title"))}function sb(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let A=Xp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&$p[n[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),A.innerHTML=t,r)for(let i=0;i<r.length;i++)A=A.querySelector(r[i])||A;return A}function ob(t){let e=t.querySelectorAll(nt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let A=0;A<e.length;A++){let n=e[A];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function ab(t,e){if(!t.size)return t;let A=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=n.length-2;a>=0;a-=2){let c=A.nodes[n[a]];if(!c||c.hasRequiredAttrs())break;r=Y.from(c.create(n[a+1],r)),i++,s++}return new j(r,i,s)}const it={},st={},lb={touchstart:!0,touchmove:!0};class cb{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=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 ub(t){for(let e in it){let A=it[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>{db(t,n)&&!Xc(t,n)&&(t.editable||!(n.type in st))&&A(t,n)},lb[e]?{passive:!0}:void 0)}rt&&t.dom.addEventListener("input",()=>null),Jc(t)}function hr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function fb(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 Jc(t){t.someProp("handleDOMEvents",e=>{for(let A in e)t.input.eventHandlers[A]||t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>Xc(t,n))})}function Xc(t,e){return t.someProp("handleDOMEvents",A=>{let n=A[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function db(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let A=e.target;A!=t.dom;A=A.parentNode)if(!A||A.nodeType==11||A.pmViewDesc&&A.pmViewDesc.stopEvent(e))return!1;return!0}function hb(t,e){!Xc(t,e)&&it[e.type]&&(t.editable||!(e.type in st))&&it[e.type](t,e)}st.keydown=(t,e)=>{let A=e;if(t.input.shiftKey=A.keyCode==16||A.shiftKey,!zp(t,A)&&(t.input.lastKeyCode=A.keyCode,t.input.lastKeyCodeTime=Date.now(),!(rn&&nt&&A.keyCode==13)))if(A.keyCode!=229&&t.domObserver.forceFlush(),Oi&&A.keyCode==13&&!A.ctrlKey&&!A.altKey&&!A.metaKey){let n=Date.now();t.input.lastIOSEnter=n,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==n&&(t.someProp("handleKeyDown",r=>r(t,Xr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,A))||nb(t,A)?A.preventDefault():hr(t,"key")},st.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},st.keypress=(t,e)=>{let A=e;if(zp(t,A)||!A.charCode||A.ctrlKey&&!A.altKey||Mt&&A.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,A))){A.preventDefault();return}let n=t.state.selection;if(!(n instanceof Ce)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(A.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,n.$from.pos,n.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),A.preventDefault()}};function ea(t){return{left:t.clientX,top:t.clientY}}function pb(t,e){let A=e.x-t.clientX,n=e.y-t.clientY;return A*A+n*n<100}function Yc(t,e,A,n,r){if(n==-1)return!1;let i=t.state.doc.resolve(n);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,A,i.nodeAfter,i.before(s),r,!0):a(t,A,i.node(s),i.before(s),r,!1)))return!0;return!1}function ki(t,e,A){t.focused||t.focus();let n=t.state.tr.setSelection(e);A=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function gb(t,e){if(e==-1)return!1;let A=t.state.doc.resolve(e),n=A.nodeAfter;return n&&n.isAtom&&fe.isSelectable(n)?(ki(t,new fe(A),"pointer"),!0):!1}function mb(t,e){if(e==-1)return!1;let A=t.state.selection,n,r;A instanceof fe&&(n=A.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(fe.isSelectable(a)){n&&A.$from.depth>0&&s>=A.$from.depth&&i.before(A.$from.depth+1)==A.$from.pos?r=i.before(A.$from.depth):r=i.before(s);break}}return r!=null?(ki(t,fe.create(t.state.doc,r),"pointer"),!0):!1}function Bb(t,e,A,n,r){return Yc(t,"handleClickOn",e,A,n)||t.someProp("handleClick",i=>i(t,e,n))||(r?mb(t,A):gb(t,A))}function wb(t,e,A,n){return Yc(t,"handleDoubleClickOn",e,A,n)||t.someProp("handleDoubleClick",r=>r(t,e,n))}function Cb(t,e,A,n){return Yc(t,"handleTripleClickOn",e,A,n)||t.someProp("handleTripleClick",r=>r(t,e,n))||yb(t,A,n)}function yb(t,e,A){if(A.button!=0)return!1;let n=t.state.doc;if(e==-1)return n.inlineContent?(ki(t,Ce.create(n,0,n.content.size),"pointer"),!0):!1;let r=n.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)ki(t,Ce.create(n,a+1,a+1+s.content.size),"pointer");else if(fe.isSelectable(s))ki(t,fe.create(n,a),"pointer");else continue;return!0}}function zc(t){return Aa(t)}const Yp=Mt?"metaKey":"ctrlKey";it.mousedown=(t,e)=>{let A=e;t.input.shiftKey=A.shiftKey;let n=zc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&pb(A,t.input.lastClick)&&!A[Yp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:A.clientX,y:A.clientY,type:i};let s=t.posAtCoords(ea(A));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Eb(t,s,A,!!n)):(i=="doubleClick"?wb:Cb)(t,s.pos,s.inside,A)?A.preventDefault():hr(t,"pointer"))};class Eb{constructor(e,A,n,r){this.view=e,this.pos=A,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[Yp],this.allowDefault=n.shiftKey;let i,s;if(A.inside>-1)i=e.state.doc.nodeAt(A.inside),s=A.inside;else{let f=e.state.doc.resolve(A.pos);i=f.parent,s=f.depth?f.before():0}const a=r?null:n.target,c=a?e.docView.nearestDesc(a,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:u}=e.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof fe&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&nn&&!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)),hr(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(()=>kn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let A=this.pos;this.view.state.doc!=this.startDoc&&(A=this.view.posAtCoords(ea(e))),this.updateAllowDefault(e),this.allowDefault||!A?hr(this.view,"pointer"):Bb(this.view,A.pos,A.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||rt&&this.mightDrag&&!this.mightDrag.node.isAtom||nt&&!this.view.state.selection.visible&&Math.min(Math.abs(A.pos-this.view.state.selection.from),Math.abs(A.pos-this.view.state.selection.to))<=2)?(ki(this.view,Fe.near(this.view.state.doc.resolve(A.pos)),"pointer"),e.preventDefault()):hr(this.view,"pointer")}move(e){this.updateAllowDefault(e),hr(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)}}it.touchstart=t=>{t.input.lastTouch=Date.now(),zc(t),hr(t,"pointer")},it.touchmove=t=>{t.input.lastTouch=Date.now(),hr(t,"pointer")},it.contextmenu=t=>zc(t);function zp(t,e){return t.composing?!0:rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Qb=rn?5e3:-1;st.compositionstart=st.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,A=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!A.textOffset&&A.parentOffset&&A.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||A.marks(),Aa(t,!0),t.markCursor=null;else if(Aa(t),nn&&e.selection.empty&&A.parentOffset&&!A.textOffset&&A.nodeBefore.marks.length){let n=t.domSelectionRange();for(let r=n.focusNode,i=n.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}qp(t,Qb)},st.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++,qp(t,20))};function qp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Aa(t),e))}function Zp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=bb());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Fb(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let A=gF(e.focusNode,e.focusOffset),n=mF(e.focusNode,e.focusOffset);if(A&&n&&A!=n){let r=n.pmViewDesc;if(!r||!r.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let i=A.pmViewDesc;if(!(!i||!i.isText(A.nodeValue)))return n}}return A||n}function bb(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Aa(t,e=!1){if(!(rn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Zp(t),e||t.docView&&t.docView.dirty){let A=Kc(t);return A&&!A.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(A)):t.updateState(t.state),!0}return!1}}function Ub(t,e){if(!t.dom.parentNode)return;let A=t.dom.parentNode.appendChild(document.createElement("div"));A.appendChild(e),A.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout(()=>{A.parentNode&&A.parentNode.removeChild(A),t.focus()},50)}const Ns=gt&&cr<15||Oi&&QF<604;it.copy=st.cut=(t,e)=>{let A=e,n=t.state.selection,r=A.type=="cut";if(n.empty)return;let i=Ns?null:A.clipboardData,s=n.content(),{dom:a,text:c}=Rp(t,s);i?(A.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):Ub(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function vb(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Ib(t,e){if(!t.dom.parentNode)return;let A=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(A?"textarea":"div"));A||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),A?Ds(t,n.value,null,r,e):Ds(t,n.textContent,n.innerHTML,r,e)},50)}function Ds(t,e,A,n,r){let i=Kp(t,e,A,n,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,r,i||j.empty)))return!0;if(!i)return!1;let s=vb(i),a=s?t.state.tr.replaceSelectionWith(s,n):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function jp(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let A=t.getData("text/uri-list");return A?A.replace(/\r?\n/g," "):""}st.paste=(t,e)=>{let A=e;if(t.composing&&!rn)return;let n=Ns?null:A.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Ds(t,jp(n),n.getData("text/html"),r,A)?A.preventDefault():Ib(t,A)};class eg{constructor(e,A,n){this.slice=e,this.move=A,this.node=n}}const Ag=Mt?"altKey":"ctrlKey";it.dragstart=(t,e)=>{let A=e,n=t.input.mouseDown;if(n&&n.done(),!A.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(ea(A)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof fe?r.to-1:r.to))){if(n&&n.mightDrag)s=fe.create(t.state.doc,n.mightDrag.pos);else if(A.target&&A.target.nodeType==1){let p=t.docView.nearestDesc(A.target,!0);p&&p.node.type.spec.draggable&&p!=t.docView&&(s=fe.create(t.state.doc,p.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u,slice:f}=Rp(t,a);A.dataTransfer.clearData(),A.dataTransfer.setData(Ns?"Text":"text/html",c.innerHTML),A.dataTransfer.effectAllowed="copyMove",Ns||A.dataTransfer.setData("text/plain",u),t.dragging=new eg(f,!A[Ag],s)},it.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},st.dragover=st.dragenter=(t,e)=>e.preventDefault(),st.drop=(t,e)=>{let A=e,n=t.dragging;if(t.dragging=null,!A.dataTransfer)return;let r=t.posAtCoords(ea(A));if(!r)return;let i=t.state.doc.resolve(r.pos),s=n&&n.slice;s?t.someProp("transformPasted",w=>{s=w(s,t)}):s=Kp(t,jp(A.dataTransfer),Ns?null:A.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!A[Ag]);if(t.someProp("handleDrop",w=>w(t,A,s||j.empty,a))){A.preventDefault();return}if(!s)return;A.preventDefault();let c=s?Wh(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;if(a){let{node:w}=n;w?w.replace(u):u.deleteSelection()}let f=u.mapping.map(c),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=u.doc;if(p?u.replaceRangeWith(f,f,s.content.firstChild):u.replaceRange(f,f,s),u.doc.eq(g))return;let B=u.doc.resolve(f);if(p&&fe.isSelectable(s.content.firstChild)&&B.nodeAfter&&B.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new fe(B));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((Q,b,v,_)=>w=_),u.setSelection(Pc(t,B,u.doc.resolve(w)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},it.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())&&kn(t)},20))},it.blur=(t,e)=>{let A=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),A.relatedTarget&&t.dom.contains(A.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},it.beforeinput=(t,e)=>{if(nt&&rn&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:n}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=n||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Xr(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 st)it[t]=st[t];function Ms(t,e){if(t==e)return!0;for(let A in t)if(t[A]!==e[A])return!1;for(let A in e)if(!(A in t))return!1;return!0}class ta{constructor(e,A){this.toDOM=e,this.spec=A||Zr,this.side=this.spec.side||0}map(e,A,n,r){let{pos:i,deleted:s}=e.mapResult(A.from+r,this.side<0?-1:1);return s?null:new Kt(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof ta&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ms(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class pr{constructor(e,A){this.attrs=e,this.spec=A||Zr}map(e,A,n,r){let i=e.map(A.from+r,this.spec.inclusiveStart?-1:1)-n,s=e.map(A.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=s?null:new Kt(i,s,this)}valid(e,A){return A.from<A.to}eq(e){return this==e||e instanceof pr&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)}static is(e){return e.type instanceof pr}destroy(){}}class qc{constructor(e,A){this.attrs=e,this.spec=A||Zr}map(e,A,n,r){let i=e.mapResult(A.from+r,1);if(i.deleted)return null;let s=e.mapResult(A.to+r,-1);return s.deleted||s.pos<=i.pos?null:new Kt(i.pos-n,s.pos-n,this)}valid(e,A){let{index:n,offset:r}=e.content.findIndex(A.from),i;return r==A.from&&!(i=e.child(n)).isText&&r+i.nodeSize==A.to}eq(e){return this==e||e instanceof qc&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)}destroy(){}}class Kt{constructor(e,A,n){this.from=e,this.to=A,this.type=n}copy(e,A){return new Kt(e,A,this.type)}eq(e,A=0){return this.type.eq(e.type)&&this.from+A==e.from&&this.to+A==e.to}map(e,A,n){return this.type.map(e,this,A,n)}static widget(e,A,n){return new Kt(e,e,new ta(A,n))}static inline(e,A,n,r){return new Kt(e,A,new pr(n,r))}static node(e,A,n,r){return new Kt(e,A,new qc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof pr}get widget(){return this.type instanceof ta}}const Ni=[],Zr={};class IA{constructor(e,A){this.local=e.length?e:Ni,this.children=A.length?A:Ni}static create(e,A){return A.length?na(A,e,0,Zr):XA}find(e,A,n){let r=[];return this.findInner(e??0,A??1e9,r,0,n),r}findInner(e,A,n,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=A&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<A&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,A-a,n,r+a,i)}}map(e,A,n){return this==XA||e.maps.length==0?this:this.mapInner(e,A,0,0,n||Zr)}mapInner(e,A,n,r,i){let s;for(let a=0;a<this.local.length;a++){let c=this.local[a].map(e,n,r);c&&c.type.valid(A,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?Sb(this.children,s||[],e,A,n,r,i):s?new IA(s.sort(jr),Ni):XA}add(e,A){return A.length?this==XA?IA.create(e,A):this.addInner(e,A,0):this}addInner(e,A,n){let r,i=0;e.forEach((a,c)=>{let u=c+n,f;if(f=ng(A,a,u)){for(r||(r=this.children.slice());i<r.length&&r[i]<c;)i+=3;r[i]==c?r[i+2]=r[i+2].addInner(a,f,u+1):r.splice(i,0,c,c+a.nodeSize,na(f,a,u+1,Zr)),i+=3}});let s=tg(i?rg(A):A,-n);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new IA(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(e){return e.length==0||this==XA?this:this.removeInner(e,0)}removeInner(e,A){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let s,a=n[i]+A,c=n[i+1]+A;for(let f=0,p;f<e.length;f++)(p=e[f])&&p.from>a&&p.to<c&&(e[f]=null,(s||(s=[])).push(p));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=XA?n[i+2]=u:(n.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,A)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new IA(r,n):XA}forChild(e,A){if(this==XA)return this;if(A.isLeaf)return IA.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,s=i+A.content.size;for(let a=0;a<this.local.length;a++){let c=this.local[a];if(c.from<s&&c.to>i&&c.type instanceof pr){let u=Math.max(i,c.from)-i,f=Math.min(s,c.to)-i;u<f&&(r||(r=[])).push(c.copy(u,f))}}if(r){let a=new IA(r.sort(jr),Ni);return n?new gr([a,n]):a}return n||XA}eq(e){if(this==e)return!0;if(!(e instanceof IA)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let A=0;A<this.local.length;A++)if(!this.local[A].eq(e.local[A]))return!1;for(let A=0;A<this.children.length;A+=3)if(this.children[A]!=e.children[A]||this.children[A+1]!=e.children[A+1]||!this.children[A+2].eq(e.children[A+2]))return!1;return!0}locals(e){return Zc(this.localsInner(e))}localsInner(e){if(this==XA)return Ni;if(e.inlineContent||!this.local.some(pr.is))return this.local;let A=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof pr||A.push(this.local[n]);return A}}IA.empty=new IA([],[]),IA.removeOverlap=Zc;const XA=IA.empty;class gr{constructor(e){this.members=e}map(e,A){const n=this.members.map(r=>r.map(e,A,Zr));return gr.from(n)}forChild(e,A){if(A.isLeaf)return IA.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,A);i!=XA&&(i instanceof gr?n=n.concat(i.members):n.push(i))}return gr.from(n)}eq(e){if(!(e instanceof gr)||e.members.length!=this.members.length)return!1;for(let A=0;A<this.members.length;A++)if(!this.members[A].eq(e.members[A]))return!1;return!0}locals(e){let A,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!A)A=i;else{n&&(A=A.slice(),n=!1);for(let s=0;s<i.length;s++)A.push(i[s])}}return A?Zc(n?A:A.sort(jr)):Ni}static from(e){switch(e.length){case 0:return XA;case 1:return e[0];default:return new gr(e.every(A=>A instanceof IA)?e:e.reduce((A,n)=>A.concat(n instanceof IA?n:n.members),[]))}}}function Sb(t,e,A,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<A.maps.length;u++){let p=0;A.maps[u].forEach((g,B,w,Q)=>{let b=Q-w-(B-g);for(let v=0;v<a.length;v+=3){let _=a[v+1];if(_<0||g>_+f-p)continue;let S=a[v]+f-p;B>=S?a[v+1]=g<=S?-2:-1:g>=f&&b&&(a[v]+=b,a[v+1]+=b)}p+=b}),f=A.maps[u].map(f,-1)}let c=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){c=!0,a[u+1]=-1;continue}let f=A.map(t[u]+i),p=f-r;if(p<0||p>=n.content.size){c=!0;continue}let g=A.map(t[u+1]+i,-1),B=g-r,{index:w,offset:Q}=n.content.findIndex(p),b=n.maybeChild(w);if(b&&Q==p&&Q+b.nodeSize==B){let v=a[u+2].mapInner(A,b,f+1,t[u]+i+1,s);v!=XA?(a[u]=p,a[u+1]=B,a[u+2]=v):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=Tb(a,t,e,A,r,i,s),f=na(u,n,0,s);e=f.local;for(let p=0;p<a.length;p+=3)a[p+1]<0&&(a.splice(p,3),p-=3);for(let p=0,g=0;p<f.children.length;p+=3){let B=f.children[p];for(;g<a.length&&a[g]<B;)g+=3;a.splice(g,0,f.children[p],f.children[p+1],f.children[p+2])}}return new IA(e.sort(jr),a)}function tg(t,e){if(!e||!t.length)return t;let A=[];for(let n=0;n<t.length;n++){let r=t[n];A.push(new Kt(r.from+e,r.to+e,r.type))}return A}function Tb(t,e,A,n,r,i,s){function a(c,u){for(let f=0;f<c.local.length;f++){let p=c.local[f].map(n,r,u);p?A.push(p):s.onRemove&&s.onRemove(c.local[f].spec)}for(let f=0;f<c.children.length;f+=3)a(c.children[f+2],c.children[f]+u+1)}for(let c=0;c<t.length;c+=3)t[c+1]==-1&&a(t[c+2],e[c]+i+1);return A}function ng(t,e,A){if(e.isLeaf)return null;let n=A+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>A&&s.to<n&&((r||(r=[])).push(s),t[i]=null);return r}function rg(t){let e=[];for(let A=0;A<t.length;A++)t[A]!=null&&e.push(t[A]);return e}function na(t,e,A,n){let r=[],i=!1;e.forEach((a,c)=>{let u=ng(t,a,c+A);if(u){i=!0;let f=na(u,a,A+c+1,n);f!=XA&&r.push(c,c+a.nodeSize,f)}});let s=tg(i?rg(t):t,-A).sort(jr);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(n.onRemove&&n.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new IA(s,r):XA}function jr(t,e){return t.from-e.from||t.to-e.to}function Zc(t){let e=t;for(let A=0;A<e.length-1;A++){let n=e[A];if(n.from!=n.to)for(let r=A+1;r<e.length;r++){let i=e[r];if(i.from==n.from){i.to!=n.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,n.to),ig(e,r+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(e==t&&(e=t.slice()),e[A]=n.copy(n.from,i.from),ig(e,r,n.copy(i.from,n.to)));break}}}return e}function ig(t,e,A){for(;e<t.length&&jr(A,t[e])>0;)e++;t.splice(e,0,A)}function jc(t){let e=[];return t.someProp("decorations",A=>{let n=A(t.state);n&&n!=XA&&e.push(n)}),t.cursorWrapper&&e.push(IA.create(t.state.doc,[t.cursorWrapper.deco])),gr.from(e)}const _b={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},xb=gt&&cr<=11;class Ob{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 Lb{constructor(e,A){this.view=e,this.handleDOMChange=A,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ob,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let r=0;r<n.length;r++)this.queue.push(n[r]);gt&&cr<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),xb&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.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,_b)),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 A=0;A<e.length;A++)this.queue.push(e[A]);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(xp(this.view)){if(this.suppressingSelectionUpdates)return kn(this.view);if(gt&&cr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Jr(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 A=new Set,n;for(let i=e.focusNode;i;i=Ts(i))A.add(i);for(let i=e.anchorNode;i;i=Ts(i))if(A.has(i)){n=i;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))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 A=this.pendingRecords();A.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&xp(e)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(e.editable)for(let f=0;f<A.length;f++){let p=this.registerMutation(A[f],c);p&&(i=i<0?p.from:Math.min(p.from,i),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(a=!0))}if(nn&&c.length){let f=c.filter(p=>p.nodeName=="BR");if(f.length==2){let[p,g]=f;p.parentNode&&p.parentNode.parentNode==g.parentNode?g.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let g of f){let B=g.parentNode;B&&B.nodeName=="LI"&&(!p||Nb(e,p)!=B)&&g.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&qo(n)&&(u=Kc(e))&&u.eq(Fe.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,kn(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),Hb(e)),this.handleDOMChange(i,s,a,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||kn(e),this.currentSelection.set(n))}registerMutation(e,A){if(A.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++)A.push(e.addedNodes[f]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(gt&&cr<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:p,nextSibling:g}=e.addedNodes[f];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(r=p),(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==e.target?RA(r)+1:0,a=n.localPosFromDOM(e.target,s,-1),c=i&&i.parentNode==e.target?RA(i):e.target.childNodes.length,u=n.localPosFromDOM(e.target,c,1);return{from:a,to:u}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let sg=new WeakMap,og=!1;function Hb(t){if(!sg.has(t)&&(sg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=nn,og)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."),og=!0}}function ag(t,e){let A=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Jr(s.node,s.offset,r,i)&&([A,n,r,i]=[r,i,A,n]),{anchorNode:A,anchorOffset:n,focusNode:r,focusOffset:i}}function kb(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return ag(t,r)}let A;function n(r){r.preventDefault(),r.stopImmediatePropagation(),A=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),A?ag(t,A):null}function Nb(t,e){for(let A=e.parentNode;A&&A!=t.dom;A=A.parentNode){let n=t.docView.nearestDesc(A,!0);if(n&&n.node.isBlock)return A}return null}function Db(t,e,A){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,A),c=t.domSelectionRange(),u,f=c.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(u=[{node:f,offset:c.anchorOffset}],qo(c)||u.push({node:c.focusNode,offset:c.focusOffset})),nt&&t.input.lastKeyCode===8)for(let b=i;b>r;b--){let v=n.childNodes[b-1],_=v.pmViewDesc;if(v.nodeName=="BR"&&!_){i=b;break}if(!_||_.size)break}let p=t.state.doc,g=t.someProp("domParser")||Fi.fromSchema(t.state.schema),B=p.resolve(s),w=null,Q=g.parse(n,{topNode:B.parent,topMatch:B.parent.contentMatchAt(B.index()),topOpen:!0,from:r,to:i,preserveWhitespace:B.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:Mb,context:B});if(u&&u[0].pos!=null){let b=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=b),w={anchor:b+s,head:v+s}}return{doc:Q,sel:w,from:s,to:a}}function Mb(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let A=document.createElement("div");return A.appendChild(document.createElement("li")),{skip:A}}else if(t.parentNode.lastChild==t||rt&&/^(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 Rb=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Kb(t,e,A,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let D=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,se=Kc(t,D);if(se&&!t.state.selection.eq(se)){if(nt&&rn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ne=>ne(t,Xr(13,"Enter"))))return;let Be=t.state.tr.setSelection(se);D=="pointer"?Be.setMeta("pointer",!0):D=="key"&&Be.scrollIntoView(),i&&Be.setMeta("composition",i),t.dispatch(Be)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(A);e=s.before(a+1),A=t.state.doc.resolve(A).after(a+1);let c=t.state.selection,u=Db(t,e,A),f=t.state.doc,p=f.slice(u.from,u.to),g,B;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(g=t.state.selection.to,B="end"):(g=t.state.selection.from,B="start"),t.input.lastKeyCode=null;let w=Gb(p.content,u.doc.content,u.from,g,B);if((Oi&&t.input.lastIOSEnter>Date.now()-225||rn)&&r.some(D=>D.nodeType==1&&!Rb.test(D.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",D=>D(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!w)if(n&&c instanceof Ce&&!c.empty&&c.$head.sameParent(c.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))w={start:c.from,endA:c.to,endB:c.to};else{if(u.sel){let D=lg(t,t.state.doc,u.sel);if(D&&!D.eq(t.state.selection)){let se=t.state.tr.setSelection(D);i&&se.setMeta("composition",i),t.dispatch(se)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&w.start==w.endB&&t.state.selection instanceof Ce&&(w.start>t.state.selection.from&&w.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?w.start=t.state.selection.from:w.endA<t.state.selection.to&&w.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(w.endB+=t.state.selection.to-w.endA,w.endA=t.state.selection.to)),gt&&cr<=11&&w.endB==w.start+1&&w.endA==w.start&&w.start>u.from&&u.doc.textBetween(w.start-u.from-1,w.start-u.from+1)=="  "&&(w.start--,w.endA--,w.endB--);let Q=u.doc.resolveNoCache(w.start-u.from),b=u.doc.resolveNoCache(w.endB-u.from),v=f.resolve(w.start),_=Q.sameParent(b)&&Q.parent.inlineContent&&v.end()>=w.endA,S;if((Oi&&t.input.lastIOSEnter>Date.now()-225&&(!_||r.some(D=>D.nodeName=="DIV"||D.nodeName=="P"))||!_&&Q.pos<u.doc.content.size&&!Q.sameParent(b)&&(S=Fe.findFrom(u.doc.resolve(Q.pos+1),1,!0))&&S.head==b.pos)&&t.someProp("handleKeyDown",D=>D(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>w.start&&Pb(f,w.start,w.endA,Q,b)&&t.someProp("handleKeyDown",D=>D(t,Xr(8,"Backspace")))){rn&&nt&&t.domObserver.suppressSelectionUpdates();return}nt&&rn&&w.endB==w.start&&(t.input.lastAndroidDelete=Date.now()),rn&&!_&&Q.start()!=b.start()&&b.parentOffset==0&&Q.depth==b.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==w.endA&&(w.endB-=2,b=u.doc.resolveNoCache(w.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(D){return D(t,Xr(13,"Enter"))})},20));let E=w.start,L=w.endA,U,N,V;if(_){if(Q.pos==b.pos)gt&&cr<=11&&Q.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>kn(t),20)),U=t.state.tr.delete(E,L),N=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(V=Vb(Q.parent.content.cut(Q.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,w.endA-v.start()))))U=t.state.tr,V.type=="add"?U.addMark(E,L,V.mark):U.removeMark(E,L,V.mark);else if(Q.parent.child(Q.index()).isText&&Q.index()==b.index()-(b.textOffset?0:1)){let D=Q.parent.textBetween(Q.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",se=>se(t,E,L,D)))return;U=t.state.tr.insertText(D,E,L)}}if(U||(U=t.state.tr.replace(E,L,u.doc.slice(w.start-u.from,w.endB-u.from))),u.sel){let D=lg(t,U.doc,u.sel);D&&!(nt&&rn&&t.composing&&D.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(D.head==E||D.head==U.mapping.map(L)-1)||gt&&D.empty&&D.head==E)&&U.setSelection(D)}N&&U.ensureMarks(N),i&&U.setMeta("composition",i),t.dispatch(U.scrollIntoView())}function lg(t,e,A){return Math.max(A.anchor,A.head)>e.content.size?null:Pc(t,e.resolve(A.anchor),e.resolve(A.head))}function Vb(t,e){let A=t.firstChild.marks,n=e.firstChild.marks,r=A,i=n,s,a,c;for(let f=0;f<n.length;f++)r=n[f].removeFromSet(r);for(let f=0;f<A.length;f++)i=A[f].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",c=f=>f.mark(a.addToSet(f.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",c=f=>f.mark(a.removeFromSet(f.marks));else return null;let u=[];for(let f=0;f<e.childCount;f++)u.push(c(e.child(f)));if(Y.from(u).eq(t))return{mark:a,type:s}}function Pb(t,e,A,n,r){if(A-e<=r.pos-n.pos||eu(n,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!n.parent.isTextblock){let a=i.nodeAfter;return a!=null&&A==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(eu(i,!0,!0));return!s.parent.isTextblock||s.pos>A||eu(s,!0,!1)<A?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function eu(t,e,A){let n=t.depth,r=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,r++,e=!1;if(A){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Gb(t,e,A,n,r){let i=t.findDiffStart(e,A);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,A+t.size,A+e.size);if(r=="end"){let c=Math.max(0,i-Math.min(s,a));n-=s+c-i}if(s<i&&t.size<e.size){let c=n<=i&&n>=s?i-n:0;i-=c,i&&i<e.size&&cg(e.textBetween(i-1,i+1))&&(i+=c?1:-1),a=i+(a-s),s=i}else if(a<i){let c=n<=i&&n>=a?i-n:0;i-=c,i&&i<t.size&&cg(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function cg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),A=t.charCodeAt(1);return e>=56320&&e<=57343&&A>=55296&&A<=56319}class Wb{constructor(e,A){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 cb,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=A,this.state=A.state,this.directPlugins=A.plugins||[],this.directPlugins.forEach(pg),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=dg(this),fg(this),this.nodeViews=hg(this),this.docView=Cp(this.state.doc,ug(this),jc(this),this.dom,this),this.domObserver=new Lb(this,(n,r,i,s)=>Kb(this,n,r,i,s)),this.domObserver.start(),ub(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 A in e)this._props[A]=e[A];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Jc(this);let A=this._props;this._props=e,e.plugins&&(e.plugins.forEach(pg),this.directPlugins=e.plugins),this.updateStateInner(e.state,A)}setProps(e){let A={};for(let n in this._props)A[n]=this._props[n];A.state=this.state;for(let n in e)A[n]=e[n];this.update(A)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,A){var n;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Zp(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=A.plugins;if(a||this._props.plugins!=A.plugins||this._props.nodeViews!=A.nodeViews){let B=hg(this);Jb(B,this.nodeViews)&&(this.nodeViews=B,i=!0)}(a||A.handleDOMEvents!=this._props.handleDOMEvents)&&Jc(this),this.editable=dg(this),fg(this);let c=jc(this),u=ug(this),f=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,u,c);(p||!e.selection.eq(r.selection))&&(s=!0);let g=f=="preserve"&&s&&this.dom.style.overflowAnchor==null&&UF(this);if(s){this.domObserver.stop();let B=p&&(gt||nt)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&$b(r.selection,e.selection);if(p){let w=nt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Fb(this)),(i||!this.docView.update(e.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Cp(e.doc,u,c,this.dom,this)),w&&!this.trackWrites&&(B=!0)}B||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&zF(this))?kn(this,B):(Tp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((n=this.dragging)===null||n===void 0)&&n.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&vF(g)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",A=>A(this)))if(this.state.selection instanceof fe){let A=this.docView.domAfterPos(this.state.selection.from);A.nodeType==1&&op(this,A.getBoundingClientRect(),e)}else op(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 A=0;A<this.directPlugins.length;A++){let n=this.directPlugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let A=0;A<this.state.plugins.length;A++){let n=this.state.plugins[A];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let A=0;A<this.pluginViews.length;A++){let n=this.pluginViews[A];n.update&&n.update(this,e)}}updateDraggedNode(e,A){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let i=n.from+(this.state.doc.content.size-A.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new eg(e.slice,e.move,r<0?void 0:fe.create(this.state.doc,r))}someProp(e,A){let n=this._props&&this._props[e],r;if(n!=null&&(r=A?A(n):n))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=A?A(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=A?A(a):a))return r}}hasFocus(){if(gt){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&&IF(this.dom),kn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let A=this.dom.parentNode;A;A=A.parentNode)if(A.nodeType==9||A.nodeType==11&&A.host)return A.getSelection||(Object.getPrototypeOf(A).getSelection=()=>A.ownerDocument.getSelection()),this._root=A}return e||document}updateRoot(){this._root=null}posAtCoords(e){return OF(this,e)}coordsAtPos(e,A=1){return dp(this,e,A)}domAtPos(e,A=0){return this.docView.domFromPos(e,A)}nodeDOM(e){let A=this.docView.descAt(e);return A?A.nodeDOM:null}posAtDOM(e,A,n=-1){let r=this.docView.posFromDOM(e,A,n);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,A){return DF(this,A||this.state,e)}pasteHTML(e,A){return Ds(this,"",e,!1,A||new ClipboardEvent("paste"))}pasteText(e,A){return Ds(this,e,null,!0,A||new ClipboardEvent("paste"))}destroy(){this.docView&&(fb(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],jc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,hF())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return hb(this,e)}dispatch(e){let A=this._props.dispatchTransaction;A?A.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return rt&&this.root.nodeType===11&&wF(this.dom.ownerDocument)==this.dom&&kb(this,e)||e}domSelection(){return this.root.getSelection()}}function ug(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",A=>{if(typeof A=="function"&&(A=A(t.state)),A)for(let n in A)n=="class"?e.class+=" "+A[n]:n=="style"?e.style=(e.style?e.style+";":"")+A[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(A[n]))}),e.translate||(e.translate="no"),[Kt.node(0,t.state.doc.content.size,e)]}function fg(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:Kt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function dg(t){return!t.someProp("editable",e=>e(t.state)===!1)}function $b(t,e){let A=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(A)!=e.$anchor.start(A)}function hg(t){let e=Object.create(null);function A(n){for(let r in n)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=n[r])}return t.someProp("nodeViews",A),t.someProp("markViews",A),e}function Jb(t,e){let A=0,n=0;for(let r in t){if(t[r]!=e[r])return!0;A++}for(let r in e)n++;return A!=n}function pg(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 mr={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:"'"},ra={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Xb=typeof navigator<"u"&&/Mac/.test(navigator.platform),Yb=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),KA=0;KA<10;KA++)mr[48+KA]=mr[96+KA]=String(KA);for(var KA=1;KA<=24;KA++)mr[KA+111]="F"+KA;for(var KA=65;KA<=90;KA++)mr[KA]=String.fromCharCode(KA+32),ra[KA]=String.fromCharCode(KA);for(var Au in mr)ra.hasOwnProperty(Au)||(ra[Au]=mr[Au]);function zb(t){var e=Xb&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Yb&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",A=!e&&t.key||(t.shiftKey?ra:mr)[t.keyCode]||t.key||"Unidentified";return A=="Esc"&&(A="Escape"),A=="Del"&&(A="Delete"),A=="Left"&&(A="ArrowLeft"),A=="Up"&&(A="ArrowUp"),A=="Right"&&(A="ArrowRight"),A=="Down"&&(A="ArrowDown"),A}const qb=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Zb(t){let e=t.split(/-(?!$)/),A=e[e.length-1];A=="Space"&&(A=" ");let n,r,i,s;for(let a=0;a<e.length-1;a++){let c=e[a];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))qb?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+c)}return n&&(A="Alt-"+A),r&&(A="Ctrl-"+A),s&&(A="Meta-"+A),i&&(A="Shift-"+A),A}function jb(t){let e=Object.create(null);for(let A in t)e[Zb(A)]=t[A];return e}function tu(t,e,A=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),A&&e.shiftKey&&(t="Shift-"+t),t}function eU(t){return new pt({props:{handleKeyDown:gg(t)}})}function gg(t){let e=jb(t);return function(A,n){let r=zb(n),i,s=e[tu(r,n)];if(s&&s(A.state,A.dispatch,A))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=e[tu(r,n,!1)];if(a&&a(A.state,A.dispatch,A))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=mr[n.keyCode])&&i!=r){let a=e[tu(i,n)];if(a&&a(A.state,A.dispatch,A))return!0}}return!1}}const AU=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function mg(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("backward",t):A.parentOffset>0)?null:A}const tU=(t,e,A)=>{let n=mg(t,A);if(!n)return!1;let r=nu(n);if(!r){let s=n.blockRange(),a=s&&vi(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&yg(t,r,e))return!0;if(n.parent.content.size==0&&(Di(i,"end")||fe.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Di(i,"end")?Fe.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):fe.create(a.doc,r.pos-i.nodeSize)),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},nU=(t,e,A)=>{let n=mg(t,A);if(!n)return!1;let r=nu(n);return r?Bg(t,r,e):!1},rU=(t,e,A)=>{let n=wg(t,A);if(!n)return!1;let r=ru(n);return r?Bg(t,r,e):!1};function Bg(t,e,A){let n=e.nodeBefore,r=n,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let s=e.nodeAfter,a=s,c=e.pos+1;for(;!a.isTextblock;c++){if(a.type.spec.isolating)return!1;let f=a.firstChild;if(!f)return!1;a=f}let u=Xo(t.doc,i,c,j.empty);if(!u||u.from!=i||u instanceof xA&&u.slice.size>=c-i)return!1;if(A){let f=t.tr.step(u);f.setSelection(Ce.create(f.doc,i)),A(f.scrollIntoView())}return!0}function Di(t,e,A=!1){for(let n=t;n;n=e=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(A&&n.childCount!=1)return!1}return!1}const iU=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=nu(n)}let s=i&&i.nodeBefore;return!s||!fe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(fe.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function nu(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 wg(t,e){let{$cursor:A}=t.selection;return!A||(e?!e.endOfTextblock("forward",t):A.parentOffset<A.parent.content.size)?null:A}const sU=(t,e,A)=>{let n=wg(t,A);if(!n)return!1;let r=ru(n);if(!r)return!1;let i=r.nodeAfter;if(yg(t,r,e))return!0;if(n.parent.content.size==0&&(Di(i,"start")||fe.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Di(i,"start")?Fe.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):fe.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},oU=(t,e,A)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(A?!A.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=ru(n)}let s=i&&i.nodeAfter;return!s||!fe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(fe.create(t.doc,i.pos)).scrollIntoView()),!0)};function ru(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let A=t.node(e);if(t.index(e)+1<A.childCount)return t.doc.resolve(t.after(e+1));if(A.type.spec.isolating)break}return null}const aU=(t,e)=>{let A=t.selection,n=A instanceof fe,r;if(n){if(A.node.isTextblock||!ar(t.doc,A.from))return!1;r=A.from}else if(r=Jo(t.doc,A.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);n&&i.setSelection(fe.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},lU=(t,e)=>{let A=t.selection,n;if(A instanceof fe){if(A.node.isTextblock||!ar(t.doc,A.to))return!1;n=A.to}else if(n=Jo(t.doc,A.to,1),n==null)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0},cU=(t,e)=>{let{$from:A,$to:n}=t.selection,r=A.blockRange(n),i=r&&vi(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},uU=(t,e)=>{let{$head:A,$anchor:n}=t.selection;return!A.parent.type.spec.code||!A.sameParent(n)?!1:(e&&e(t.tr.insertText(`
11
+ `).scrollIntoView()),!0)};function Cg(t){for(let e=0;e<t.edgeCount;e++){let{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}const fU=(t,e)=>{let{$head:A,$anchor:n}=t.selection;if(!A.parent.type.spec.code||!A.sameParent(n))return!1;let r=A.node(-1),i=A.indexAfter(-1),s=Cg(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=A.after(),c=t.tr.replaceWith(a,a,s.createAndFill());c.setSelection(Fe.near(c.doc.resolve(a),1)),e(c.scrollIntoView())}return!0},dU=(t,e)=>{let A=t.selection,{$from:n,$to:r}=A;if(A instanceof tn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=Cg(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!n.parentOffset&&r.index()<r.parent.childCount?n:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(Ce.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},hU=(t,e)=>{let{$cursor:A}=t.selection;if(!A||A.parent.content.size)return!1;if(A.depth>1&&A.after()!=A.end(-1)){let i=A.before();if(Ii(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let n=A.blockRange(),r=n&&vi(n);return r==null?!1:(e&&e(t.tr.lift(n,r).scrollIntoView()),!0)},pU=(t,e)=>{let{$from:A,to:n}=t.selection,r,i=A.sharedDepth(n);return i==0?!1:(r=A.before(i),e&&e(t.tr.setSelection(fe.create(t.doc,r))),!0)};function gU(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i=e.index();return!n||!r||!n.type.compatibleContent(r.type)?!1:!n.content.size&&e.parent.canReplace(i-1,i)?(A&&A(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||ar(t.doc,e.pos))?!1:(A&&A(t.tr.clearIncompatible(e.pos,n.type,n.contentMatchAt(n.childCount)).join(e.pos).scrollIntoView()),!0)}function yg(t,e,A){let n=e.nodeBefore,r=e.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(gU(t,e,A))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(i=(s=n.contentMatchAt(n.childCount)).findWrapping(r.type))&&s.matchType(i[0]||r.type).validEnd){if(A){let p=e.pos+r.nodeSize,g=Y.empty;for(let Q=i.length-1;Q>=0;Q--)g=Y.from(i[Q].create(null,g));g=Y.from(n.copy(g));let B=t.tr.step(new OA(e.pos-1,p,e.pos,p,new j(g,1,0),i.length,!0)),w=p+2*i.length;ar(B.doc,w)&&B.join(w),A(B.scrollIntoView())}return!0}let c=Fe.findFrom(e,1),u=c&&c.$from.blockRange(c.$to),f=u&&vi(u);if(f!=null&&f>=e.depth)return A&&A(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Di(r,"start",!0)&&Di(n,"end")){let p=n,g=[];for(;g.push(p),!p.isTextblock;)p=p.lastChild;let B=r,w=1;for(;!B.isTextblock;B=B.firstChild)w++;if(p.canReplace(p.childCount,p.childCount,B.content)){if(A){let Q=Y.empty;for(let v=g.length-1;v>=0;v--)Q=Y.from(g[v].copy(Q));let b=t.tr.step(new OA(e.pos-g.length,e.pos+r.nodeSize,e.pos+w,e.pos+r.nodeSize-w,new j(Q,g.length,0),0,!0));A(b.scrollIntoView())}return!0}}return!1}function Eg(t){return function(e,A){let n=e.selection,r=t<0?n.$from:n.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(A&&A(e.tr.setSelection(Ce.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const mU=Eg(-1),BU=Eg(1);function wU(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,s=r.blockRange(i),a=s&&bc(s,t,e);return a?(n&&n(A.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Qg(t,e=null){return function(A,n){let r=!1;for(let i=0;i<A.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=A.selection.ranges[i];A.doc.nodesBetween(s,a,(c,u)=>{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(t,e)))if(c.type==t)r=!0;else{let f=A.doc.resolve(u),p=f.index();r=f.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=A.tr;for(let s=0;s<A.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=A.selection.ranges[s];i.setBlockType(a,c,t,e)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function CU(t,e=null){return function(A,n){let{$from:r,$to:i}=A.selection,s=r.blockRange(i),a=!1,c=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let f=A.doc.resolve(s.start-2);c=new Ro(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new Ro(r,A.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=bc(c,t,e,s);return u?(n&&n(yU(A.tr,s,u,a,t).scrollIntoView()),!0):!1}}function yU(t,e,A,n,r){let i=Y.empty;for(let f=A.length-1;f>=0;f--)i=Y.from(A[f].type.create(A[f].attrs,i));t.step(new OA(e.start-(n?2:0),e.end,e.start,e.end,new j(i,0,0),A.length,!0));let s=0;for(let f=0;f<A.length;f++)A[f].type==r&&(s=f+1);let a=A.length-s,c=e.start+A.length-(n?2:0),u=e.parent;for(let f=e.startIndex,p=e.endIndex,g=!0;f<p;f++,g=!1)!g&&Ii(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(f).nodeSize;return t}function EU(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?A?n.node(i.depth-1).type==t?QU(e,A,t,i):FU(e,A,i):!0:!1}}function QU(t,e,A,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new OA(i-1,s,i,s,new j(Y.from(A.create(null,n.parent.copy())),1,0),1,!0)),n=new Ro(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=vi(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return ar(r.doc,c)&&r.join(c),e(r.scrollIntoView()),!0}function FU(t,e,A){let n=t.tr,r=A.parent;for(let B=A.end,w=A.endIndex-1,Q=A.startIndex;w>Q;w--)B-=r.child(w).nodeSize,n.delete(B-1,B+1);let i=n.doc.resolve(A.start),s=i.nodeAfter;if(n.mapping.map(A.end)!=A.start+i.nodeAfter.nodeSize)return!1;let a=A.startIndex==0,c=A.endIndex==r.childCount,u=i.node(-1),f=i.index(-1);if(!u.canReplace(f+(a?0:1),f+1,s.content.append(c?Y.empty:Y.from(r))))return!1;let p=i.pos,g=p+s.nodeSize;return n.step(new OA(p-(a?1:0),g+(c?1:0),p+1,g-1,new j((a?Y.empty:Y.from(r.copy(Y.empty))).append(c?Y.empty:Y.from(r.copy(Y.empty))),a?0:1,c?0:1),a?0:1)),e(n.scrollIntoView()),!0}function bU(t){return function(e,A){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,c=a.child(s-1);if(c.type!=t)return!1;if(A){let u=c.lastChild&&c.lastChild.type==a.type,f=Y.from(u?t.create():null),p=new j(Y.from(t.create(null,Y.from(a.type.create(null,f)))),u?3:1,0),g=i.start,B=i.end;A(e.tr.step(new OA(g-(u?3:1),B,g,B,p,1,!0)).scrollIntoView())}return!0}}function ia(t){const{state:e,transaction:A}=t;let{selection:n}=A,{doc:r}=A,{storedMarks:i}=A;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 i},get selection(){return n},get doc(){return r},get tr(){return n=A.selection,r=A.doc,i=A.storedMarks,A}}}class sa{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:A,state:n}=this,{view:r}=A,{tr:i}=n,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,c])=>[a,(...f)=>{const p=c(...f)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!e,u=e||i.tr,f=()=>(!c&&A&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(g=>g===!0)),p={...Object.fromEntries(Object.entries(n).map(([g,B])=>[g,(...Q)=>{const b=this.buildProps(u,A),v=B(...Q)(b);return a.push(v),p}])),run:f};return p}createCan(e){const{rawCommands:A,state:n}=this,r=!1,i=e||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(A).map(([c,u])=>[c,(...f)=>u(...f)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,A=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:ia({state:i,transaction:e}),dispatch:A?()=>{}:void 0,chain:()=>this.createChain(e,A),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...f)=>u(...f)(a)]))}};return a}}class UU{constructor(){this.callbacks={}}on(e,A){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(A),this}emit(e,...A){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,A)),this}off(e,A){const n=this.callbacks[e];return n&&(A?this.callbacks[e]=n.filter(r=>r!==A):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ae(t,e,A){return t.config[e]===void 0&&t.parent?ae(t.parent,e,A):typeof t.config[e]=="function"?t.config[e].bind({...A,parent:t.parent?ae(t.parent,e,A):null}):t.config[e]}function oa(t){const e=t.filter(r=>r.type==="extension"),A=t.filter(r=>r.type==="node"),n=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:A,markExtensions:n}}function Fg(t){const e=[],{nodeExtensions:A,markExtensions:n}=oa(t),r=[...A,...n],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=ae(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(p=>{Object.entries(f.attributes).forEach(([g,B])=>{e.push({type:p,name:g,attribute:{...i,...B}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=ae(s,"addAttributes",a);if(!c)return;const u=c();Object.entries(u).forEach(([f,p])=>{const g={...i,...p};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,e.push({type:s.name,name:f,attribute:g})})}),e}function LA(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 FA(...t){return t.filter(e=>!!e).reduce((e,A)=>{const n={...e};return Object.entries(A).forEach(([r,i])=>{if(!n[r]){n[r]=i;return}if(r==="class"){const a=i?i.split(" "):[],c=n[r]?n[r].split(" "):[],u=a.filter(f=>!c.includes(f));n[r]=[...c,...u].join(" ")}else r==="style"?n[r]=[n[r],i].join("; "):n[r]=i}),n},{})}function iu(t,e){return e.filter(A=>A.attribute.rendered).map(A=>A.attribute.renderHTML?A.attribute.renderHTML(t.attrs)||{}:{[A.name]:t.attrs[A.name]}).reduce((A,n)=>FA(A,n),{})}function bg(t){return typeof t=="function"}function be(t,e=void 0,...A){return bg(t)?e?t.bind(e)(...A):t(...A):t}function vU(t={}){return Object.keys(t).length===0&&t.constructor===Object}function IU(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Ug(t,e){return t.style?t:{...t,getAttrs:A=>{const n=t.getAttrs?t.getAttrs(A):t.attrs;if(n===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(A):IU(A.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function vg(t){return Object.fromEntries(Object.entries(t).filter(([e,A])=>e==="attrs"&&vU(A)?!1:A!=null))}function SU(t,e){var A;const n=Fg(t),{nodeExtensions:r,markExtensions:i}=oa(t),s=(A=r.find(u=>ae(u,"topNode")))===null||A===void 0?void 0:A.name,a=Object.fromEntries(r.map(u=>{const f=n.filter(v=>v.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:e},g=t.reduce((v,_)=>{const S=ae(_,"extendNodeSchema",p);return{...v,...S?S(u):{}}},{}),B=vg({...g,content:be(ae(u,"content",p)),marks:be(ae(u,"marks",p)),group:be(ae(u,"group",p)),inline:be(ae(u,"inline",p)),atom:be(ae(u,"atom",p)),selectable:be(ae(u,"selectable",p)),draggable:be(ae(u,"draggable",p)),code:be(ae(u,"code",p)),defining:be(ae(u,"defining",p)),isolating:be(ae(u,"isolating",p)),attrs:Object.fromEntries(f.map(v=>{var _;return[v.name,{default:(_=v==null?void 0:v.attribute)===null||_===void 0?void 0:_.default}]}))}),w=be(ae(u,"parseHTML",p));w&&(B.parseDOM=w.map(v=>Ug(v,f)));const Q=ae(u,"renderHTML",p);Q&&(B.toDOM=v=>Q({node:v,HTMLAttributes:iu(v,f)}));const b=ae(u,"renderText",p);return b&&(B.toText=b),[u.name,B]})),c=Object.fromEntries(i.map(u=>{const f=n.filter(b=>b.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:e},g=t.reduce((b,v)=>{const _=ae(v,"extendMarkSchema",p);return{...b,..._?_(u):{}}},{}),B=vg({...g,inclusive:be(ae(u,"inclusive",p)),excludes:be(ae(u,"excludes",p)),group:be(ae(u,"group",p)),spanning:be(ae(u,"spanning",p)),code:be(ae(u,"code",p)),attrs:Object.fromEntries(f.map(b=>{var v;return[b.name,{default:(v=b==null?void 0:b.attribute)===null||v===void 0?void 0:v.default}]}))}),w=be(ae(u,"parseHTML",p));w&&(B.parseDOM=w.map(b=>Ug(b,f)));const Q=ae(u,"renderHTML",p);return Q&&(B.toDOM=b=>Q({mark:b,HTMLAttributes:iu(b,f)})),[u.name,B]}));return new xQ({topNode:s,nodes:a,marks:c})}function su(t,e){return e.nodes[t]||e.marks[t]||null}function Ig(t,e){return Array.isArray(e)?e.some(A=>(typeof A=="string"?A:A.name)===t.name):e}const TU=(t,e=500)=>{let A="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-e),n,(r,i,s,a)=>{var c,u;const f=((u=(c=r.type.spec).toText)===null||u===void 0?void 0:u.call(c,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";A+=f.slice(0,Math.max(0,n-i))}),A};function ou(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class aa{constructor(e){this.find=e.find,this.handler=e.handler}}const _U=(t,e)=>{if(ou(e))return e.exec(t);const A=e(t);if(!A)return null;const n=[A.text];return n.index=A.index,n.input=t,n.data=A.data,A.replaceWith&&(A.text.includes(A.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(A.replaceWith)),n};function la(t){var e;const{editor:A,from:n,to:r,text:i,rules:s,plugin:a}=t,{view:c}=A;if(c.composing)return!1;const u=c.state.doc.resolve(n);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(g=>g.type.spec.code))return!1;let f=!1;const p=TU(u)+i;return s.forEach(g=>{if(f)return;const B=_U(p,g.find);if(!B)return;const w=c.state.tr,Q=ia({state:c.state,transaction:w}),b={from:n-(B[0].length-i.length),to:r},{commands:v,chain:_,can:S}=new sa({editor:A,state:Q});g.handler({state:Q,range:b,match:B,commands:v,chain:_,can:S})===null||!w.steps.length||(w.setMeta(a,{transform:w,from:n,to:r,text:i}),c.dispatch(w),f=!0)}),f}function xU(t){const{editor:e,rules:A}=t,n=new pt({state:{init(){return null},apply(r,i){const s=r.getMeta(n);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:u,text:f}=a,p=u+f.length;la({editor:e,from:u,to:p,text:f,rules:A,plugin:n})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return la({editor:e,from:i,to:s,text:a,rules:A,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&la({editor:e,from:i.pos,to:i.pos,text:"",rules:A,plugin:n})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?la({editor:e,from:s.pos,to:s.pos,text:`
12
+ `,rules:A,plugin:n}):!1}},isInputRules:!0});return n}function OU(t){return typeof t=="number"}class LU{constructor(e){this.find=e.find,this.handler=e.handler}}const HU=(t,e,A)=>{if(ou(e))return[...t.matchAll(e)];const n=e(t,A);return n?n.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function kU(t){const{editor:e,state:A,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new sa({editor:e,state:A}),p=[];return A.doc.nodesBetween(n,r,(B,w)=>{if(!B.isTextblock||B.type.spec.code)return;const Q=Math.max(n,w),b=Math.min(r,w+B.content.size),v=B.textBetween(Q-w,b-w,void 0,"");HU(v,i.find,s).forEach(S=>{if(S.index===void 0)return;const E=Q+S.index+1,L=E+S[0].length,U={from:A.tr.mapping.map(E),to:A.tr.mapping.map(L)},N=i.handler({state:A,range:U,match:S,commands:c,chain:u,can:f,pasteEvent:s,dropEvent:a});p.push(N)})}),p.every(B=>B!==null)}const NU=t=>{var e;const A=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=A.clipboardData)===null||e===void 0||e.setData("text/html",t),A};function DU(t){const{editor:e,rules:A}=t;let n=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const c=({state:f,from:p,to:g,rule:B,pasteEvt:w})=>{const Q=f.tr,b=ia({state:f,transaction:Q});if(!(!kU({editor:e,state:b,from:Math.max(p-1,0),to:g.b-1,rule:B,pasteEvent:w,dropEvent:a})||!Q.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,Q};return A.map(f=>new pt({view(p){const g=B=>{var w;n=!((w=p.dom.parentElement)===null||w===void 0)&&w.contains(B.target)?p.dom.parentElement:null};return window.addEventListener("dragstart",g),{destroy(){window.removeEventListener("dragstart",g)}}},props:{handleDOMEvents:{drop:(p,g)=>(i=n===p.dom.parentElement,a=g,!1),paste:(p,g)=>{var B;const w=(B=g.clipboardData)===null||B===void 0?void 0:B.getData("text/html");return s=g,r=!!(w!=null&&w.includes("data-pm-slice")),!1}}},appendTransaction:(p,g,B)=>{const w=p[0],Q=w.getMeta("uiEvent")==="paste"&&!r,b=w.getMeta("uiEvent")==="drop"&&!i,v=w.getMeta("applyPasteRules"),_=!!v;if(!Q&&!b&&!_)return;if(_){const{from:L,text:U}=v,N=L+U.length,V=NU(U);return c({rule:f,state:B,from:L,to:{b:N},pasteEvt:V})}const S=g.doc.content.findDiffStart(B.doc.content),E=g.doc.content.findDiffEnd(B.doc.content);if(!(!OU(S)||!E||S===E.b))return c({rule:f,state:B,from:S,to:E,pasteEvt:s})}}))}function MU(t){const e=t.filter((A,n)=>t.indexOf(A)!==n);return[...new Set(e)]}class Mi{constructor(e,A){this.splittableMarks=[],this.editor=A,this.extensions=Mi.resolve(e),this.schema=SU(this.extensions,A),this.setupExtensions()}static resolve(e){const A=Mi.sort(Mi.flatten(e)),n=MU(A.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),A}static flatten(e){return e.map(A=>{const n={name:A.name,options:A.options,storage:A.storage},r=ae(A,"addExtensions",n);return r?[A,...this.flatten(r())]:A}).flat(10)}static sort(e){return e.sort((n,r)=>{const i=ae(n,"priority")||100,s=ae(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,A)=>{const n={name:A.name,options:A.options,storage:A.storage,editor:this.editor,type:su(A.name,this.schema)},r=ae(A,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,A=Mi.sort([...this.extensions].reverse()),n=[],r=[],i=A.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:su(s.name,this.schema)},c=[],u=ae(s,"addKeyboardShortcuts",a);let f={};if(s.type==="mark"&&s.config.exitable&&(f.ArrowRight=()=>sn.handleExit({editor:e,mark:s})),u){const Q=Object.fromEntries(Object.entries(u()).map(([b,v])=>[b,()=>v({editor:e})]));f={...f,...Q}}const p=eU(f);c.push(p);const g=ae(s,"addInputRules",a);Ig(s,e.options.enableInputRules)&&g&&n.push(...g());const B=ae(s,"addPasteRules",a);Ig(s,e.options.enablePasteRules)&&B&&r.push(...B());const w=ae(s,"addProseMirrorPlugins",a);if(w){const Q=w();c.push(...Q)}return c}).flat();return[xU({editor:e,rules:n}),...DU({editor:e,rules:r}),...i]}get attributes(){return Fg(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:A}=oa(this.extensions);return Object.fromEntries(A.filter(n=>!!ae(n,"addNodeView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:e,type:LA(n.name,this.schema)},s=ae(n,"addNodeView",i);if(!s)return[];const a=(c,u,f,p)=>{const g=iu(c,r);return s()({editor:e,node:c,getPos:f,decorations:p,HTMLAttributes:g,extension:n})};return[n.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var A;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:su(e.name,this.schema)};e.type==="mark"&&(!((A=be(ae(e,"keepOnSplit",n)))!==null&&A!==void 0)||A)&&this.splittableMarks.push(e.name);const r=ae(e,"onBeforeCreate",n),i=ae(e,"onCreate",n),s=ae(e,"onUpdate",n),a=ae(e,"onSelectionUpdate",n),c=ae(e,"onTransaction",n),u=ae(e,"onFocus",n),f=ae(e,"onBlur",n),p=ae(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),c&&this.editor.on("transaction",c),u&&this.editor.on("focus",u),f&&this.editor.on("blur",f),p&&this.editor.on("destroy",p)})}}function RU(t){return Object.prototype.toString.call(t).slice(8,-1)}function au(t){return RU(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function ca(t,e){const A={...t};return au(t)&&au(e)&&Object.keys(e).forEach(n=>{au(e[n])?n in t?A[n]=ca(t[n],e[n]):Object.assign(A,{[n]:e[n]}):Object.assign(A,{[n]:e[n]})}),A}class YA{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new YA(e)}configure(e={}){const A=this.extend();return A.parent=this.parent,A.options=ca(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new YA({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}}function Sg(t,e,A){const{from:n,to:r}=e,{blockSeparator:i=`
13
13
 
14
- `,textSerializers:s={}}=A||{};let a="";return t.nodesBetween(n,r,(c,u,f,p)=>{var g;c.isBlock&&u>n&&(a+=i);const B=s==null?void 0:s[c.type.name];if(B)return f&&(a+=B({node:c,pos:u,parent:f,index:p,range:e})),!1;c.isText&&(a+=(g=c==null?void 0:c.text)===null||g===void 0?void 0:g.slice(Math.max(n,u)-u,r-u))}),a}function Tg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,A])=>[e,A.spec.toText]))}const RU=YA.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pt({key:new wn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:A}=t,{doc:n,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(f=>f.$from.pos)),a=Math.max(...i.map(f=>f.$to.pos)),c=Tg(A);return Sg(n,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),KU=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var A;t.isDestroyed||(e.dom.blur(),(A=window==null?void 0:window.getSelection())===null||A===void 0||A.removeAllRanges())}),!0),VU=(t=!1)=>({commands:e})=>e.setContent("",t),PU=()=>({state:t,tr:e,dispatch:A})=>{const{selection:n}=e,{ranges:r}=n;return A&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,c)=>{if(a.type.isText)return;const{doc:u,mapping:f}=e,p=u.resolve(f.map(c)),g=u.resolve(f.map(c+a.nodeSize)),B=p.blockRange(g);if(!B)return;const w=vi(B);if(a.type.isTextblock){const{defaultType:Q}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(B.start,Q)}(w||w===0)&&e.lift(B,w)})}),!0},GU=t=>e=>t(e),WU=()=>({state:t,dispatch:e})=>fU(t,e),$U=(t,e)=>({editor:A,tr:n})=>{const{state:r}=A,i=r.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const s=n.mapping.map(e);return n.insert(s,i.content),n.setSelection(new Ce(n.doc.resolve(s-1))),!0},JU=()=>({tr:t,dispatch:e})=>{const{selection:A}=t,n=A.$anchor.node();if(n.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===n.type){if(e){const a=r.before(i),c=r.after(i);t.delete(a,c).scrollIntoView()}return!0}return!1},XU=t=>({tr:e,state:A,dispatch:n})=>{const r=LA(t,A.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(n){const c=i.before(s),u=i.after(s);e.delete(c,u).scrollIntoView()}return!0}return!1},YU=t=>({tr:e,dispatch:A})=>{const{from:n,to:r}=t;return A&&e.delete(n,r),!0},zU=()=>({state:t,dispatch:e})=>eU(t,e),qU=()=>({commands:t})=>t.keyboardShortcut("Enter"),ZU=()=>({state:t,dispatch:e})=>uU(t,e);function ua(t,e,A={strict:!0}){const n=Object.keys(e);return n.length?n.every(r=>A.strict?e[r]===t[r]:ou(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function lu(t,e,A={}){return t.find(n=>n.type===e&&ua(n.attrs,A))}function jU(t,e,A={}){return!!lu(t,e,A)}function cu(t,e,A={}){if(!t||!e)return;let n=t.parent.childAfter(t.parentOffset);if(t.parentOffset===n.offset&&n.offset!==0&&(n=t.parent.childBefore(t.parentOffset)),!n.node)return;const r=lu([...n.node.marks],e,A);if(!r)return;let i=n.index,s=t.start()+n.offset,a=i+1,c=s+n.node.nodeSize;for(lu([...n.node.marks],e,A);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&jU([...t.parent.child(a).marks],e,A);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function Br(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}const ev=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const i=Br(t,n.schema),{doc:s,selection:a}=A,{$from:c,from:u,to:f}=a;if(r){const p=cu(c,i,e);if(p&&p.from<=u&&p.to>=f){const g=Ce.create(s,p.from,p.to);A.setSelection(g)}}return!0},Av=t=>e=>{const A=typeof t=="function"?t(e):t;for(let n=0;n<A.length;n+=1)if(A[n](e))return!0;return!1};function uu(t){return t instanceof Ce}function Nn(t=0,e=0,A=0){return Math.min(Math.max(t,e),A)}function _g(t,e=null){if(!e)return null;const A=Fe.atStart(t),n=Fe.atEnd(t);if(e==="start"||e===!0)return A;if(e==="end")return n;const r=A.from,i=n.to;return e==="all"?Ce.create(t,Nn(0,r,i),Nn(t.content.size,r,i)):Ce.create(t,Nn(e,r,i),Nn(e,r,i))}function fu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const tv=(t=null,e={})=>({editor:A,view:n,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{fu()&&n.dom.focus(),requestAnimationFrame(()=>{A.isDestroyed||(n.focus(),e!=null&&e.scrollIntoView&&A.commands.scrollIntoView())})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!uu(A.state.selection))return s(),!0;const a=_g(r.doc,t)||A.state.selection,c=A.state.selection.eq(a);return i&&(c||r.setSelection(a),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},nv=(t,e)=>A=>t.every((n,r)=>e(n,{...A,index:r})),rv=(t,e)=>({tr:A,commands:n})=>n.insertContentAt({from:A.selection.from,to:A.selection.to},t,e),xg=t=>{const e=t.childNodes;for(let A=e.length-1;A>=0;A-=1){const n=e[A];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&xg(n)}return t};function Og(t){const e=`<body>${t}</body>`,A=new window.DOMParser().parseFromString(e,"text/html").body;return xg(A)}function fa(t,e,A){A={slice:!0,parseOptions:{},...A};const n=typeof t=="object"&&t!==null,r=typeof t=="string";if(n)try{return Array.isArray(t)&&t.length>0?Y.fromArray(t.map(s=>e.nodeFromJSON(s))):e.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),fa("",e,A)}if(r){const i=Fi.fromSchema(e);return A.slice?i.parseSlice(Og(t),A.parseOptions).content:i.parse(Og(t),A.parseOptions)}return fa("",e,A)}function iv(t,e,A){const n=t.steps.length-1;if(n<e)return;const r=t.steps[n];if(!(r instanceof xA||r instanceof OA))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(Fe.near(t.doc.resolve(s),A))}const sv=t=>t.toString().startsWith("<"),ov=(t,e,A)=>({tr:n,dispatch:r,editor:i})=>{if(r){A={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...A};const s=fa(e,i.schema,{parseOptions:{preserveWhitespace:"full",...A.parseOptions}});if(s.toString()==="<>")return!0;let{from:a,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,f=!0;if((sv(s)?s:[s]).forEach(B=>{B.check(),u=u?B.isText&&B.marks.length===0:!1,f=f?B.isBlock:!1}),a===c&&f){const{parent:B}=n.doc.resolve(a);B.isTextblock&&!B.type.spec.code&&!B.childCount&&(a-=1,c+=1)}let g;u?(Array.isArray(e)?g=e.map(B=>B.text||"").join(""):typeof e=="object"&&e&&e.text?g=e.text:g=e,n.insertText(g,a,c)):(g=s,n.replaceWith(a,c,g)),A.updateSelection&&iv(n,n.steps.length-1,-1),A.applyInputRules&&n.setMeta("applyInputRules",{from:a,text:g}),A.applyPasteRules&&n.setMeta("applyPasteRules",{from:a,text:g})}return!0},av=()=>({state:t,dispatch:e})=>oU(t,e),lv=()=>({state:t,dispatch:e})=>aU(t,e),cv=()=>({state:t,dispatch:e})=>AU(t,e),uv=()=>({state:t,dispatch:e})=>iU(t,e),fv=()=>({tr:t,state:e,dispatch:A})=>{try{const n=Jo(e.doc,e.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),A&&A(t),!0)}catch{return!1}},dv=()=>({state:t,dispatch:e,tr:A})=>{try{const n=Jo(t.doc,t.selection.$from.pos,1);return n==null?!1:(A.join(n,2),e&&e(A),!0)}catch{return!1}},hv=()=>({state:t,dispatch:e})=>tU(t,e),pv=()=>({state:t,dispatch:e})=>nU(t,e);function Lg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function gv(t){const e=t.split(/-(?!$)/);let A=e[e.length-1];A==="Space"&&(A=" ");let n,r,i,s;for(let a=0;a<e.length-1;a+=1){const c=e[a];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))fu()||Lg()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return n&&(A=`Alt-${A}`),r&&(A=`Ctrl-${A}`),s&&(A=`Meta-${A}`),i&&(A=`Shift-${A}`),A}const mv=t=>({editor:e,view:A,tr:n,dispatch:r})=>{const i=gv(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{A.someProp("handleKeyDown",u=>u(A,a))});return c==null||c.steps.forEach(u=>{const f=u.map(n.mapping);f&&r&&n.maybeStep(f)}),!0};function Rs(t,e,A={}){const{from:n,to:r,empty:i}=t.selection,s=e?LA(e,t.schema):null,a=[];t.doc.nodesBetween(n,r,(p,g)=>{if(p.isText)return;const B=Math.max(n,g),w=Math.min(r,g+p.nodeSize);a.push({node:p,from:B,to:w})});const c=r-n,u=a.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>ua(p.node.attrs,A,{strict:!1}));return i?!!u.length:u.reduce((p,g)=>p+g.to-g.from,0)>=c}const Bv=(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return Rs(A,r,e)?lU(A,n):!1},wv=()=>({state:t,dispatch:e})=>dU(t,e),Cv=t=>({state:e,dispatch:A})=>{const n=LA(t,e.schema);return yU(n)(e,A)},yv=()=>({state:t,dispatch:e})=>cU(t,e);function da(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Hg(t,e){const A=typeof e=="string"?[e]:e;return Object.keys(t).reduce((n,r)=>(A.includes(r)||(n[r]=t[r]),n),{})}const Ev=(t,e)=>({tr:A,state:n,dispatch:r})=>{let i=null,s=null;const a=da(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=LA(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&A.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,f)=>{i&&i===u.type&&A.setNodeMarkup(f,void 0,Hg(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&A.addMark(f,f+u.nodeSize,s.create(Hg(p.attrs,e)))})})}),!0):!1},Qv=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Fv=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),bv=()=>({state:t,dispatch:e})=>rU(t,e),Uv=()=>({state:t,dispatch:e})=>sU(t,e),vv=()=>({state:t,dispatch:e})=>hU(t,e),Iv=()=>({state:t,dispatch:e})=>mU(t,e),Sv=()=>({state:t,dispatch:e})=>gU(t,e);function kg(t,e,A={}){return fa(t,e,{slice:!1,parseOptions:A})}const Tv=(t,e=!1,A={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=kg(t,r.schema,A);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0};function ha(t,e){const A=Br(e,t.schema),{from:n,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(n,r,c=>{s.push(...c.marks)});const a=s.find(c=>c.type.name===A.name);return a?{...a.attrs}:{}}function _v(t){for(let e=0;e<t.edgeCount;e+=1){const{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}function xv(t,e){for(let A=t.depth;A>0;A-=1){const n=t.node(A);if(e(n))return{pos:A>0?t.before(A):0,start:t.start(A),depth:A,node:n}}}function du(t){return e=>xv(e.$from,t)}function Ov(t,e){const A=mn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(A),r.innerHTML}function Lv(t,e){const A={from:0,to:t.content.size};return Sg(t,A,e)}function Hv(t,e){const A=LA(e,t.schema),{from:n,to:r}=t.selection,i=[];t.doc.nodesBetween(n,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===A.name);return s?{...s.attrs}:{}}function kv(t,e){const A=da(typeof e=="string"?e:e.name,t.schema);return A==="node"?Hv(t,e):A==="mark"?ha(t,e):{}}function Ng(t,e,A){const n=[];return t===e?A.resolve(t).marks().forEach(r=>{const i=A.resolve(t-1),s=cu(i,r.type);s&&n.push({mark:r,...s})}):A.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||n.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),n}function pa(t,e,A){return Object.fromEntries(Object.entries(A).filter(([n])=>{const r=t.find(i=>i.type===e&&i.name===n);return r?r.attribute.keepOnSplit:!1}))}function hu(t,e,A={}){const{empty:n,ranges:r}=t.selection,i=e?Br(e,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>ua(p.attrs,A,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:p,$to:g})=>{const B=p.pos,w=g.pos;t.doc.nodesBetween(B,w,(Q,b)=>{if(!Q.isText&&!Q.marks.length)return;const v=Math.max(B,b),_=Math.min(w,b+Q.nodeSize),S=_-v;s+=S,a.push(...Q.marks.map(E=>({mark:E,from:v,to:_})))})}),s===0)return!1;const c=a.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>ua(p.mark.attrs,A,{strict:!1})).reduce((p,g)=>p+g.to-g.from,0),u=a.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,g)=>p+g.to-g.from,0);return(c>0?c+u:c)>=s}function Nv(t,e,A={}){if(!e)return Rs(t,null,A)||hu(t,null,A);const n=da(e,t.schema);return n==="node"?Rs(t,e,A):n==="mark"?hu(t,e,A):!1}function Dg(t,e){const{nodeExtensions:A}=oa(e),n=A.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=be(ae(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Dv(t){var e;const A=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),n=t.toJSON();return JSON.stringify(A)===JSON.stringify(n)}function Mv(t){return t instanceof fe}function Mg(t,e,A){const r=t.state.doc.content.size,i=Nn(e,0,r),s=Nn(A,0,r),a=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(a.top,c.top),f=Math.max(a.bottom,c.bottom),p=Math.min(a.left,c.left),g=Math.max(a.right,c.right),B=g-p,w=f-u,v={top:u,bottom:f,left:p,right:g,width:B,height:w,x:p,y:u};return{...v,toJSON:()=>v}}function Rv(t,e,A){var n;const{selection:r}=e;let i=null;if(uu(r)&&(i=r.$cursor),i){const a=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!A.isInSet(a)||!a.some(c=>c.type.excludes(A))}const{ranges:s}=r;return s.some(({$from:a,$to:c})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(A):!1;return t.doc.nodesBetween(a.pos,c.pos,(f,p,g)=>{if(u)return!1;if(f.isInline){const B=!g||g.type.allowsMarkType(A),w=!!A.isInSet(f.marks)||!f.marks.some(Q=>Q.type.excludes(A));u=B&&w}return!u}),u})}const Kv=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const{selection:i}=A,{empty:s,ranges:a}=i,c=Br(t,n.schema);if(r)if(s){const u=ha(n,c);A.addStoredMark(c.create({...u,...e}))}else a.forEach(u=>{const f=u.$from.pos,p=u.$to.pos;n.doc.nodesBetween(f,p,(g,B)=>{const w=Math.max(B,f),Q=Math.min(B+g.nodeSize,p);g.marks.find(v=>v.type===c)?g.marks.forEach(v=>{c===v.type&&A.addMark(w,Q,c.create({...v.attrs,...e}))}):A.addMark(w,Q,c.create(e))})});return Rv(n,A,c)},Vv=(t,e)=>({tr:A})=>(A.setMeta(t,e),!0),Pv=(t,e={})=>({state:A,dispatch:n,chain:r})=>{const i=LA(t,A.schema);return i.isTextblock?r().command(({commands:s})=>Qg(i,e)(A)?!0:s.clearNodes()).command(({state:s})=>Qg(i,e)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Gv=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,r=Nn(t,0,n.content.size),i=fe.create(n,r);e.setSelection(i)}return!0},Wv=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Ce.atStart(n).from,a=Ce.atEnd(n).to,c=Nn(r,s,a),u=Nn(i,s,a),f=Ce.create(n,c,u);e.setSelection(f)}return!0},$v=t=>({state:e,dispatch:A})=>{const n=LA(t,e.schema);return FU(n)(e,A)};function Rg(t,e){const A=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(A){const n=A.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(n)}}const Jv=({keepMarks:t=!0}={})=>({tr:e,state:A,dispatch:n,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:c}=i,u=r.extensionManager.attributes,f=pa(u,a.node().type.name,a.node().attrs);if(i instanceof fe&&i.node.isBlock)return!a.parentOffset||!Ii(s,a.pos)?!1:(n&&(t&&Rg(A,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof Ce&&e.deleteSelection();const g=a.depth===0?void 0:_v(a.node(-1).contentMatchAt(a.indexAfter(-1)));let B=p&&g?[{type:g,attrs:f}]:void 0,w=Ii(e.doc,e.mapping.map(a.pos),1,B);if(!B&&!w&&Ii(e.doc,e.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,B=g?[{type:g,attrs:f}]:void 0),w&&(e.split(e.mapping.map(a.pos),1,B),g&&!p&&!a.parentOffset&&a.parent.type!==g)){const Q=e.mapping.map(a.before()),b=e.doc.resolve(Q);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&e.setNodeMarkup(e.mapping.map(a.before()),g)}t&&Rg(A,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},Xv=t=>({tr:e,state:A,dispatch:n,editor:r})=>{var i;const s=LA(t,A.schema),{$from:a,$to:c}=A.selection,u=A.selection.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(c))return!1;const f=a.node(-1);if(f.type!==s)return!1;const p=r.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(n){let b=Y.empty;const v=a.index(-1)?1:a.index(-2)?2:3;for(let N=a.depth-v;N>=a.depth-3;N-=1)b=Y.from(a.node(N).copy(b));const _=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,S=pa(p,a.node().type.name,a.node().attrs),E=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(S))||void 0;b=b.append(Y.from(s.createAndFill(null,E)||void 0));const L=a.before(a.depth-(v-1));e.replace(L,a.after(-_),new j(b,4-v,0));let U=-1;e.doc.nodesBetween(L,e.doc.content.size,(N,V)=>{if(U>-1)return!1;N.isTextblock&&N.content.size===0&&(U=V+1)}),U>-1&&e.setSelection(Ce.near(e.doc.resolve(U))),e.scrollIntoView()}return!0}const g=c.pos===a.end()?f.contentMatchAt(0).defaultType:null,B=pa(p,f.type.name,f.attrs),w=pa(p,a.node().type.name,a.node().attrs);e.delete(a.pos,c.pos);const Q=g?[{type:s,attrs:B},{type:g,attrs:w}]:[{type:s,attrs:B}];if(!Ii(e.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:v}=A,{splittableMarks:_}=r.extensionManager,S=v||b.$to.parentOffset&&b.$from.marks();if(e.split(a.pos,2,Q).scrollIntoView(),!S||!n)return!0;const E=S.filter(L=>_.includes(L.type.name));e.ensureMarks(E)}return!0},pu=(t,e)=>{const A=du(s=>s.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(Math.max(0,A.pos-1)).before(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&ar(t.doc,A.pos)&&t.join(A.pos),!0},gu=(t,e)=>{const A=du(s=>s.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(A.start).after(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&ar(t.doc,n)&&t.join(n),!0};var Yv=Object.freeze({__proto__:null,blur:KU,clearContent:VU,clearNodes:PU,command:GU,createParagraphNear:WU,cut:$U,deleteCurrentNode:JU,deleteNode:XU,deleteRange:YU,deleteSelection:zU,enter:qU,exitCode:ZU,extendMarkRange:ev,first:Av,focus:tv,forEach:nv,insertContent:rv,insertContentAt:ov,joinUp:av,joinDown:lv,joinBackward:cv,joinForward:uv,joinItemBackward:fv,joinItemForward:dv,joinTextblockBackward:hv,joinTextblockForward:pv,keyboardShortcut:mv,lift:Bv,liftEmptyBlock:wv,liftListItem:Cv,newlineInCode:yv,resetAttributes:Ev,scrollIntoView:Qv,selectAll:Fv,selectNodeBackward:bv,selectNodeForward:Uv,selectParentNode:vv,selectTextblockEnd:Iv,selectTextblockStart:Sv,setContent:Tv,setMark:Kv,setMeta:Vv,setNode:Pv,setNodeSelection:Gv,setTextSelection:Wv,sinkListItem:$v,splitBlock:Jv,splitListItem:Xv,toggleList:(t,e,A,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:p,splittableMarks:g}=r.extensionManager,B=LA(t,s.schema),w=LA(e,s.schema),{selection:Q,storedMarks:b}=s,{$from:v,$to:_}=Q,S=v.blockRange(_),E=b||Q.$to.parentOffset&&Q.$from.marks();if(!S)return!1;const L=du(U=>Dg(U.type.name,p))(Q);if(S.depth>=1&&L&&S.depth-L.depth<=1){if(L.node.type===B)return u.liftListItem(w);if(Dg(L.node.type.name,p)&&B.validContent(L.node.content)&&a)return c().command(()=>(i.setNodeMarkup(L.pos,B),!0)).command(()=>pu(i,B)).command(()=>gu(i,B)).run()}return!A||!E||!a?c().command(()=>f().wrapInList(B,n)?!0:u.clearNodes()).wrapInList(B,n).command(()=>pu(i,B)).command(()=>gu(i,B)).run():c().command(()=>{const U=f().wrapInList(B,n),N=E.filter(V=>g.includes(V.type.name));return i.ensureMarks(N),U?!0:u.clearNodes()}).wrapInList(B,n).command(()=>pu(i,B)).command(()=>gu(i,B)).run()},toggleMark:(t,e={},A={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=A,s=Br(t,n.schema);return hu(n,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,A={})=>({state:n,commands:r})=>{const i=LA(t,n.schema),s=LA(e,n.schema);return Rs(n,i,A)?r.setNode(s):r.setNode(i,A)},toggleWrap:(t,e={})=>({state:A,commands:n})=>{const r=LA(t,A.schema);return Rs(A,r,e)?n.lift(r):n.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const A=t.plugins;for(let n=0;n<A.length;n+=1){const r=A[n];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let c=a.steps.length-1;c>=0;c-=1)s.step(a.steps[c].invert(a.docs[c]));if(i.text){const c=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:A}=t,{empty:n,ranges:r}=A;return n||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:A,state:n,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=A,c=Br(t,n.schema),{$from:u,empty:f,ranges:p}=a;if(!r)return!0;if(f&&s){let{from:g,to:B}=a;const w=(i=u.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,Q=cu(u,c,w);Q&&(g=Q.from,B=Q.to),A.removeMark(g,B,c)}else p.forEach(g=>{A.removeMark(g.$from.pos,g.$to.pos,c)});return A.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:A,state:n,dispatch:r})=>{let i=null,s=null;const a=da(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=LA(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&A.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(p,g)=>{i&&i===p.type&&A.setNodeMarkup(g,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(B=>{if(s===B.type){const w=Math.max(g,u),Q=Math.min(g+p.nodeSize,f);A.addMark(w,Q,s.create({...B.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return BU(r,e)(A,n)},wrapInList:(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return wU(r,e)(A,n)}});const zv=YA.create({name:"commands",addCommands(){return{...Yv}}}),qv=YA.create({name:"editable",addProseMirrorPlugins(){return[new pt({key:new wn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Zv=YA.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new pt({key:new wn("focusEvents"),props:{handleDOMEvents:{focus:(e,A)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1},blur:(e,A)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1}}}})]}}),jv=YA.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:c,doc:u}=a,{empty:f,$anchor:p}=c,{pos:g,parent:B}=p,w=p.parent.isTextblock&&g>0?a.doc.resolve(g-1):p,Q=w.parent.type.spec.isolating,b=p.pos-p.parentOffset,v=Q&&w.parent.childCount===1?b===p.pos:Fe.atStart(u).from===g;return!f||!B.type.isTextblock||B.textContent.length||!v||v&&p.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.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={...n},i={...n,"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 fu()||Lg()?i:r},addProseMirrorPlugins(){return[new pt({key:new wn("clearDocument"),appendTransaction:(t,e,A)=>{if(!(t.some(w=>w.docChanged)&&!e.doc.eq(A.doc)))return;const{empty:r,from:i,to:s}=e.selection,a=Fe.atStart(e.doc).from,c=Fe.atEnd(e.doc).to;if(r||!(i===a&&s===c)||!(A.doc.textBetween(0,A.doc.content.size," "," ").length===0))return;const p=A.tr,g=ia({state:A,transaction:p}),{commands:B}=new sa({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),eI=YA.create({name:"tabindex",addProseMirrorPlugins(){return[new pt({key:new wn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class ei{constructor(e,A,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=A,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!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let A=this.from,n=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}A=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:A,to:n},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),A=this.resolvedPos.doc.resolve(e);return new ei(A,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 ei(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 ei(e,this.editor)}get children(){const e=[];return this.node.content.forEach((A,n)=>{const r=A.isBlock&&!A.isTextblock,i=this.pos+n+1,s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new ei(s,this.editor,r,r?A:null);r&&(a.actualDepth=this.depth+1),e.push(new ei(s,this.editor,r,r?A:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,A={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(A).length>0){const i=r.node.attrs,s=Object.keys(A);for(let a=0;a<s.length;a+=1){const c=s[a];if(i[c]!==A[c])break}}else n=r;r=r.parent}return n}querySelector(e,A={}){return this.querySelectorAll(e,A,!0)[0]||null}querySelectorAll(e,A={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(A);return this.children.forEach(s=>{n&&r.length>0||(s.node.type.name===e&&i.every(c=>A[c]===s.node.attrs[c])&&r.push(s),!(n&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,A,n))))}),r}setAttribute(e){const A=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(A.from).run()}}const AI=`.ProseMirror {
14
+ `,textSerializers:s={}}=A||{};let a="";return t.nodesBetween(n,r,(c,u,f,p)=>{var g;c.isBlock&&u>n&&(a+=i);const B=s==null?void 0:s[c.type.name];if(B)return f&&(a+=B({node:c,pos:u,parent:f,index:p,range:e})),!1;c.isText&&(a+=(g=c==null?void 0:c.text)===null||g===void 0?void 0:g.slice(Math.max(n,u)-u,r-u))}),a}function Tg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,A])=>[e,A.spec.toText]))}const KU=YA.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pt({key:new wn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:A}=t,{doc:n,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(f=>f.$from.pos)),a=Math.max(...i.map(f=>f.$to.pos)),c=Tg(A);return Sg(n,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),VU=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var A;t.isDestroyed||(e.dom.blur(),(A=window==null?void 0:window.getSelection())===null||A===void 0||A.removeAllRanges())}),!0),PU=(t=!1)=>({commands:e})=>e.setContent("",t),GU=()=>({state:t,tr:e,dispatch:A})=>{const{selection:n}=e,{ranges:r}=n;return A&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,c)=>{if(a.type.isText)return;const{doc:u,mapping:f}=e,p=u.resolve(f.map(c)),g=u.resolve(f.map(c+a.nodeSize)),B=p.blockRange(g);if(!B)return;const w=vi(B);if(a.type.isTextblock){const{defaultType:Q}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(B.start,Q)}(w||w===0)&&e.lift(B,w)})}),!0},WU=t=>e=>t(e),$U=()=>({state:t,dispatch:e})=>dU(t,e),JU=(t,e)=>({editor:A,tr:n})=>{const{state:r}=A,i=r.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const s=n.mapping.map(e);return n.insert(s,i.content),n.setSelection(new Ce(n.doc.resolve(s-1))),!0},XU=()=>({tr:t,dispatch:e})=>{const{selection:A}=t,n=A.$anchor.node();if(n.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===n.type){if(e){const a=r.before(i),c=r.after(i);t.delete(a,c).scrollIntoView()}return!0}return!1},YU=t=>({tr:e,state:A,dispatch:n})=>{const r=LA(t,A.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(n){const c=i.before(s),u=i.after(s);e.delete(c,u).scrollIntoView()}return!0}return!1},zU=t=>({tr:e,dispatch:A})=>{const{from:n,to:r}=t;return A&&e.delete(n,r),!0},qU=()=>({state:t,dispatch:e})=>AU(t,e),ZU=()=>({commands:t})=>t.keyboardShortcut("Enter"),jU=()=>({state:t,dispatch:e})=>fU(t,e);function ua(t,e,A={strict:!0}){const n=Object.keys(e);return n.length?n.every(r=>A.strict?e[r]===t[r]:ou(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function lu(t,e,A={}){return t.find(n=>n.type===e&&ua(n.attrs,A))}function ev(t,e,A={}){return!!lu(t,e,A)}function cu(t,e,A={}){if(!t||!e)return;let n=t.parent.childAfter(t.parentOffset);if(t.parentOffset===n.offset&&n.offset!==0&&(n=t.parent.childBefore(t.parentOffset)),!n.node)return;const r=lu([...n.node.marks],e,A);if(!r)return;let i=n.index,s=t.start()+n.offset,a=i+1,c=s+n.node.nodeSize;for(lu([...n.node.marks],e,A);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&ev([...t.parent.child(a).marks],e,A);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function Br(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}const Av=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const i=Br(t,n.schema),{doc:s,selection:a}=A,{$from:c,from:u,to:f}=a;if(r){const p=cu(c,i,e);if(p&&p.from<=u&&p.to>=f){const g=Ce.create(s,p.from,p.to);A.setSelection(g)}}return!0},tv=t=>e=>{const A=typeof t=="function"?t(e):t;for(let n=0;n<A.length;n+=1)if(A[n](e))return!0;return!1};function uu(t){return t instanceof Ce}function Nn(t=0,e=0,A=0){return Math.min(Math.max(t,e),A)}function _g(t,e=null){if(!e)return null;const A=Fe.atStart(t),n=Fe.atEnd(t);if(e==="start"||e===!0)return A;if(e==="end")return n;const r=A.from,i=n.to;return e==="all"?Ce.create(t,Nn(0,r,i),Nn(t.content.size,r,i)):Ce.create(t,Nn(e,r,i),Nn(e,r,i))}function fu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const nv=(t=null,e={})=>({editor:A,view:n,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{fu()&&n.dom.focus(),requestAnimationFrame(()=>{A.isDestroyed||(n.focus(),e!=null&&e.scrollIntoView&&A.commands.scrollIntoView())})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!uu(A.state.selection))return s(),!0;const a=_g(r.doc,t)||A.state.selection,c=A.state.selection.eq(a);return i&&(c||r.setSelection(a),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},rv=(t,e)=>A=>t.every((n,r)=>e(n,{...A,index:r})),iv=(t,e)=>({tr:A,commands:n})=>n.insertContentAt({from:A.selection.from,to:A.selection.to},t,e),xg=t=>{const e=t.childNodes;for(let A=e.length-1;A>=0;A-=1){const n=e[A];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&xg(n)}return t};function Og(t){const e=`<body>${t}</body>`,A=new window.DOMParser().parseFromString(e,"text/html").body;return xg(A)}function fa(t,e,A){A={slice:!0,parseOptions:{},...A};const n=typeof t=="object"&&t!==null,r=typeof t=="string";if(n)try{return Array.isArray(t)&&t.length>0?Y.fromArray(t.map(s=>e.nodeFromJSON(s))):e.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),fa("",e,A)}if(r){const i=Fi.fromSchema(e);return A.slice?i.parseSlice(Og(t),A.parseOptions).content:i.parse(Og(t),A.parseOptions)}return fa("",e,A)}function sv(t,e,A){const n=t.steps.length-1;if(n<e)return;const r=t.steps[n];if(!(r instanceof xA||r instanceof OA))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(Fe.near(t.doc.resolve(s),A))}const ov=t=>t.toString().startsWith("<"),av=(t,e,A)=>({tr:n,dispatch:r,editor:i})=>{if(r){A={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...A};const s=fa(e,i.schema,{parseOptions:{preserveWhitespace:"full",...A.parseOptions}});if(s.toString()==="<>")return!0;let{from:a,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,f=!0;if((ov(s)?s:[s]).forEach(B=>{B.check(),u=u?B.isText&&B.marks.length===0:!1,f=f?B.isBlock:!1}),a===c&&f){const{parent:B}=n.doc.resolve(a);B.isTextblock&&!B.type.spec.code&&!B.childCount&&(a-=1,c+=1)}let g;u?(Array.isArray(e)?g=e.map(B=>B.text||"").join(""):typeof e=="object"&&e&&e.text?g=e.text:g=e,n.insertText(g,a,c)):(g=s,n.replaceWith(a,c,g)),A.updateSelection&&sv(n,n.steps.length-1,-1),A.applyInputRules&&n.setMeta("applyInputRules",{from:a,text:g}),A.applyPasteRules&&n.setMeta("applyPasteRules",{from:a,text:g})}return!0},lv=()=>({state:t,dispatch:e})=>aU(t,e),cv=()=>({state:t,dispatch:e})=>lU(t,e),uv=()=>({state:t,dispatch:e})=>tU(t,e),fv=()=>({state:t,dispatch:e})=>sU(t,e),dv=()=>({tr:t,state:e,dispatch:A})=>{try{const n=Jo(e.doc,e.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),A&&A(t),!0)}catch{return!1}},hv=()=>({state:t,dispatch:e,tr:A})=>{try{const n=Jo(t.doc,t.selection.$from.pos,1);return n==null?!1:(A.join(n,2),e&&e(A),!0)}catch{return!1}},pv=()=>({state:t,dispatch:e})=>nU(t,e),gv=()=>({state:t,dispatch:e})=>rU(t,e);function Lg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function mv(t){const e=t.split(/-(?!$)/);let A=e[e.length-1];A==="Space"&&(A=" ");let n,r,i,s;for(let a=0;a<e.length-1;a+=1){const c=e[a];if(/^(cmd|meta|m)$/i.test(c))s=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))fu()||Lg()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return n&&(A=`Alt-${A}`),r&&(A=`Ctrl-${A}`),s&&(A=`Meta-${A}`),i&&(A=`Shift-${A}`),A}const Bv=t=>({editor:e,view:A,tr:n,dispatch:r})=>{const i=mv(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{A.someProp("handleKeyDown",u=>u(A,a))});return c==null||c.steps.forEach(u=>{const f=u.map(n.mapping);f&&r&&n.maybeStep(f)}),!0};function Rs(t,e,A={}){const{from:n,to:r,empty:i}=t.selection,s=e?LA(e,t.schema):null,a=[];t.doc.nodesBetween(n,r,(p,g)=>{if(p.isText)return;const B=Math.max(n,g),w=Math.min(r,g+p.nodeSize);a.push({node:p,from:B,to:w})});const c=r-n,u=a.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>ua(p.node.attrs,A,{strict:!1}));return i?!!u.length:u.reduce((p,g)=>p+g.to-g.from,0)>=c}const wv=(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return Rs(A,r,e)?cU(A,n):!1},Cv=()=>({state:t,dispatch:e})=>hU(t,e),yv=t=>({state:e,dispatch:A})=>{const n=LA(t,e.schema);return EU(n)(e,A)},Ev=()=>({state:t,dispatch:e})=>uU(t,e);function da(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Hg(t,e){const A=typeof e=="string"?[e]:e;return Object.keys(t).reduce((n,r)=>(A.includes(r)||(n[r]=t[r]),n),{})}const Qv=(t,e)=>({tr:A,state:n,dispatch:r})=>{let i=null,s=null;const a=da(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=LA(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&A.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,f)=>{i&&i===u.type&&A.setNodeMarkup(f,void 0,Hg(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&A.addMark(f,f+u.nodeSize,s.create(Hg(p.attrs,e)))})})}),!0):!1},Fv=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),bv=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),Uv=()=>({state:t,dispatch:e})=>iU(t,e),vv=()=>({state:t,dispatch:e})=>oU(t,e),Iv=()=>({state:t,dispatch:e})=>pU(t,e),Sv=()=>({state:t,dispatch:e})=>BU(t,e),Tv=()=>({state:t,dispatch:e})=>mU(t,e);function kg(t,e,A={}){return fa(t,e,{slice:!1,parseOptions:A})}const _v=(t,e=!1,A={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=kg(t,r.schema,A);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0};function ha(t,e){const A=Br(e,t.schema),{from:n,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(n,r,c=>{s.push(...c.marks)});const a=s.find(c=>c.type.name===A.name);return a?{...a.attrs}:{}}function xv(t){for(let e=0;e<t.edgeCount;e+=1){const{type:A}=t.edge(e);if(A.isTextblock&&!A.hasRequiredAttrs())return A}return null}function Ov(t,e){for(let A=t.depth;A>0;A-=1){const n=t.node(A);if(e(n))return{pos:A>0?t.before(A):0,start:t.start(A),depth:A,node:n}}}function du(t){return e=>Ov(e.$from,t)}function Lv(t,e){const A=mn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(A),r.innerHTML}function Hv(t,e){const A={from:0,to:t.content.size};return Sg(t,A,e)}function kv(t,e){const A=LA(e,t.schema),{from:n,to:r}=t.selection,i=[];t.doc.nodesBetween(n,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===A.name);return s?{...s.attrs}:{}}function Nv(t,e){const A=da(typeof e=="string"?e:e.name,t.schema);return A==="node"?kv(t,e):A==="mark"?ha(t,e):{}}function Ng(t,e,A){const n=[];return t===e?A.resolve(t).marks().forEach(r=>{const i=A.resolve(t-1),s=cu(i,r.type);s&&n.push({mark:r,...s})}):A.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||n.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),n}function pa(t,e,A){return Object.fromEntries(Object.entries(A).filter(([n])=>{const r=t.find(i=>i.type===e&&i.name===n);return r?r.attribute.keepOnSplit:!1}))}function hu(t,e,A={}){const{empty:n,ranges:r}=t.selection,i=e?Br(e,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>ua(p.attrs,A,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:p,$to:g})=>{const B=p.pos,w=g.pos;t.doc.nodesBetween(B,w,(Q,b)=>{if(!Q.isText&&!Q.marks.length)return;const v=Math.max(B,b),_=Math.min(w,b+Q.nodeSize),S=_-v;s+=S,a.push(...Q.marks.map(E=>({mark:E,from:v,to:_})))})}),s===0)return!1;const c=a.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>ua(p.mark.attrs,A,{strict:!1})).reduce((p,g)=>p+g.to-g.from,0),u=a.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,g)=>p+g.to-g.from,0);return(c>0?c+u:c)>=s}function Dv(t,e,A={}){if(!e)return Rs(t,null,A)||hu(t,null,A);const n=da(e,t.schema);return n==="node"?Rs(t,e,A):n==="mark"?hu(t,e,A):!1}function Dg(t,e){const{nodeExtensions:A}=oa(e),n=A.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=be(ae(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Mv(t){var e;const A=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),n=t.toJSON();return JSON.stringify(A)===JSON.stringify(n)}function Rv(t){return t instanceof fe}function Mg(t,e,A){const r=t.state.doc.content.size,i=Nn(e,0,r),s=Nn(A,0,r),a=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(a.top,c.top),f=Math.max(a.bottom,c.bottom),p=Math.min(a.left,c.left),g=Math.max(a.right,c.right),B=g-p,w=f-u,v={top:u,bottom:f,left:p,right:g,width:B,height:w,x:p,y:u};return{...v,toJSON:()=>v}}function Kv(t,e,A){var n;const{selection:r}=e;let i=null;if(uu(r)&&(i=r.$cursor),i){const a=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!A.isInSet(a)||!a.some(c=>c.type.excludes(A))}const{ranges:s}=r;return s.some(({$from:a,$to:c})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(A):!1;return t.doc.nodesBetween(a.pos,c.pos,(f,p,g)=>{if(u)return!1;if(f.isInline){const B=!g||g.type.allowsMarkType(A),w=!!A.isInSet(f.marks)||!f.marks.some(Q=>Q.type.excludes(A));u=B&&w}return!u}),u})}const Vv=(t,e={})=>({tr:A,state:n,dispatch:r})=>{const{selection:i}=A,{empty:s,ranges:a}=i,c=Br(t,n.schema);if(r)if(s){const u=ha(n,c);A.addStoredMark(c.create({...u,...e}))}else a.forEach(u=>{const f=u.$from.pos,p=u.$to.pos;n.doc.nodesBetween(f,p,(g,B)=>{const w=Math.max(B,f),Q=Math.min(B+g.nodeSize,p);g.marks.find(v=>v.type===c)?g.marks.forEach(v=>{c===v.type&&A.addMark(w,Q,c.create({...v.attrs,...e}))}):A.addMark(w,Q,c.create(e))})});return Kv(n,A,c)},Pv=(t,e)=>({tr:A})=>(A.setMeta(t,e),!0),Gv=(t,e={})=>({state:A,dispatch:n,chain:r})=>{const i=LA(t,A.schema);return i.isTextblock?r().command(({commands:s})=>Qg(i,e)(A)?!0:s.clearNodes()).command(({state:s})=>Qg(i,e)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Wv=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,r=Nn(t,0,n.content.size),i=fe.create(n,r);e.setSelection(i)}return!0},$v=t=>({tr:e,dispatch:A})=>{if(A){const{doc:n}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Ce.atStart(n).from,a=Ce.atEnd(n).to,c=Nn(r,s,a),u=Nn(i,s,a),f=Ce.create(n,c,u);e.setSelection(f)}return!0},Jv=t=>({state:e,dispatch:A})=>{const n=LA(t,e.schema);return bU(n)(e,A)};function Rg(t,e){const A=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(A){const n=A.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(n)}}const Xv=({keepMarks:t=!0}={})=>({tr:e,state:A,dispatch:n,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:c}=i,u=r.extensionManager.attributes,f=pa(u,a.node().type.name,a.node().attrs);if(i instanceof fe&&i.node.isBlock)return!a.parentOffset||!Ii(s,a.pos)?!1:(n&&(t&&Rg(A,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof Ce&&e.deleteSelection();const g=a.depth===0?void 0:xv(a.node(-1).contentMatchAt(a.indexAfter(-1)));let B=p&&g?[{type:g,attrs:f}]:void 0,w=Ii(e.doc,e.mapping.map(a.pos),1,B);if(!B&&!w&&Ii(e.doc,e.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,B=g?[{type:g,attrs:f}]:void 0),w&&(e.split(e.mapping.map(a.pos),1,B),g&&!p&&!a.parentOffset&&a.parent.type!==g)){const Q=e.mapping.map(a.before()),b=e.doc.resolve(Q);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&e.setNodeMarkup(e.mapping.map(a.before()),g)}t&&Rg(A,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},Yv=t=>({tr:e,state:A,dispatch:n,editor:r})=>{var i;const s=LA(t,A.schema),{$from:a,$to:c}=A.selection,u=A.selection.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(c))return!1;const f=a.node(-1);if(f.type!==s)return!1;const p=r.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(n){let b=Y.empty;const v=a.index(-1)?1:a.index(-2)?2:3;for(let N=a.depth-v;N>=a.depth-3;N-=1)b=Y.from(a.node(N).copy(b));const _=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,S=pa(p,a.node().type.name,a.node().attrs),E=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(S))||void 0;b=b.append(Y.from(s.createAndFill(null,E)||void 0));const L=a.before(a.depth-(v-1));e.replace(L,a.after(-_),new j(b,4-v,0));let U=-1;e.doc.nodesBetween(L,e.doc.content.size,(N,V)=>{if(U>-1)return!1;N.isTextblock&&N.content.size===0&&(U=V+1)}),U>-1&&e.setSelection(Ce.near(e.doc.resolve(U))),e.scrollIntoView()}return!0}const g=c.pos===a.end()?f.contentMatchAt(0).defaultType:null,B=pa(p,f.type.name,f.attrs),w=pa(p,a.node().type.name,a.node().attrs);e.delete(a.pos,c.pos);const Q=g?[{type:s,attrs:B},{type:g,attrs:w}]:[{type:s,attrs:B}];if(!Ii(e.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:v}=A,{splittableMarks:_}=r.extensionManager,S=v||b.$to.parentOffset&&b.$from.marks();if(e.split(a.pos,2,Q).scrollIntoView(),!S||!n)return!0;const E=S.filter(L=>_.includes(L.type.name));e.ensureMarks(E)}return!0},pu=(t,e)=>{const A=du(s=>s.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(Math.max(0,A.pos-1)).before(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&ar(t.doc,A.pos)&&t.join(A.pos),!0},gu=(t,e)=>{const A=du(s=>s.type===e)(t.selection);if(!A)return!0;const n=t.doc.resolve(A.start).after(A.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return A.node.type===(r==null?void 0:r.type)&&ar(t.doc,n)&&t.join(n),!0};var zv=Object.freeze({__proto__:null,blur:VU,clearContent:PU,clearNodes:GU,command:WU,createParagraphNear:$U,cut:JU,deleteCurrentNode:XU,deleteNode:YU,deleteRange:zU,deleteSelection:qU,enter:ZU,exitCode:jU,extendMarkRange:Av,first:tv,focus:nv,forEach:rv,insertContent:iv,insertContentAt:av,joinUp:lv,joinDown:cv,joinBackward:uv,joinForward:fv,joinItemBackward:dv,joinItemForward:hv,joinTextblockBackward:pv,joinTextblockForward:gv,keyboardShortcut:Bv,lift:wv,liftEmptyBlock:Cv,liftListItem:yv,newlineInCode:Ev,resetAttributes:Qv,scrollIntoView:Fv,selectAll:bv,selectNodeBackward:Uv,selectNodeForward:vv,selectParentNode:Iv,selectTextblockEnd:Sv,selectTextblockStart:Tv,setContent:_v,setMark:Vv,setMeta:Pv,setNode:Gv,setNodeSelection:Wv,setTextSelection:$v,sinkListItem:Jv,splitBlock:Xv,splitListItem:Yv,toggleList:(t,e,A,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:p,splittableMarks:g}=r.extensionManager,B=LA(t,s.schema),w=LA(e,s.schema),{selection:Q,storedMarks:b}=s,{$from:v,$to:_}=Q,S=v.blockRange(_),E=b||Q.$to.parentOffset&&Q.$from.marks();if(!S)return!1;const L=du(U=>Dg(U.type.name,p))(Q);if(S.depth>=1&&L&&S.depth-L.depth<=1){if(L.node.type===B)return u.liftListItem(w);if(Dg(L.node.type.name,p)&&B.validContent(L.node.content)&&a)return c().command(()=>(i.setNodeMarkup(L.pos,B),!0)).command(()=>pu(i,B)).command(()=>gu(i,B)).run()}return!A||!E||!a?c().command(()=>f().wrapInList(B,n)?!0:u.clearNodes()).wrapInList(B,n).command(()=>pu(i,B)).command(()=>gu(i,B)).run():c().command(()=>{const U=f().wrapInList(B,n),N=E.filter(V=>g.includes(V.type.name));return i.ensureMarks(N),U?!0:u.clearNodes()}).wrapInList(B,n).command(()=>pu(i,B)).command(()=>gu(i,B)).run()},toggleMark:(t,e={},A={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=A,s=Br(t,n.schema);return hu(n,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,A={})=>({state:n,commands:r})=>{const i=LA(t,n.schema),s=LA(e,n.schema);return Rs(n,i,A)?r.setNode(s):r.setNode(i,A)},toggleWrap:(t,e={})=>({state:A,commands:n})=>{const r=LA(t,A.schema);return Rs(A,r,e)?n.lift(r):n.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const A=t.plugins;for(let n=0;n<A.length;n+=1){const r=A[n];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let c=a.steps.length-1;c>=0;c-=1)s.step(a.steps[c].invert(a.docs[c]));if(i.text){const c=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,c))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:A}=t,{empty:n,ranges:r}=A;return n||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:A,state:n,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=A,c=Br(t,n.schema),{$from:u,empty:f,ranges:p}=a;if(!r)return!0;if(f&&s){let{from:g,to:B}=a;const w=(i=u.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,Q=cu(u,c,w);Q&&(g=Q.from,B=Q.to),A.removeMark(g,B,c)}else p.forEach(g=>{A.removeMark(g.$from.pos,g.$to.pos,c)});return A.removeStoredMark(c),!0},updateAttributes:(t,e={})=>({tr:A,state:n,dispatch:r})=>{let i=null,s=null;const a=da(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=LA(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&A.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(p,g)=>{i&&i===p.type&&A.setNodeMarkup(g,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(B=>{if(s===B.type){const w=Math.max(g,u),Q=Math.min(g+p.nodeSize,f);A.addMark(w,Q,s.create({...B.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return wU(r,e)(A,n)},wrapInList:(t,e={})=>({state:A,dispatch:n})=>{const r=LA(t,A.schema);return CU(r,e)(A,n)}});const qv=YA.create({name:"commands",addCommands(){return{...zv}}}),Zv=YA.create({name:"editable",addProseMirrorPlugins(){return[new pt({key:new wn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),jv=YA.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new pt({key:new wn("focusEvents"),props:{handleDOMEvents:{focus:(e,A)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1},blur:(e,A)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:A}).setMeta("addToHistory",!1);return e.dispatch(n),!1}}}})]}}),eI=YA.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:c,doc:u}=a,{empty:f,$anchor:p}=c,{pos:g,parent:B}=p,w=p.parent.isTextblock&&g>0?a.doc.resolve(g-1):p,Q=w.parent.type.spec.isolating,b=p.pos-p.parentOffset,v=Q&&w.parent.childCount===1?b===p.pos:Fe.atStart(u).from===g;return!f||!B.type.isTextblock||B.textContent.length||!v||v&&p.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.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={...n},i={...n,"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 fu()||Lg()?i:r},addProseMirrorPlugins(){return[new pt({key:new wn("clearDocument"),appendTransaction:(t,e,A)=>{if(!(t.some(w=>w.docChanged)&&!e.doc.eq(A.doc)))return;const{empty:r,from:i,to:s}=e.selection,a=Fe.atStart(e.doc).from,c=Fe.atEnd(e.doc).to;if(r||!(i===a&&s===c)||!(A.doc.textBetween(0,A.doc.content.size," "," ").length===0))return;const p=A.tr,g=ia({state:A,transaction:p}),{commands:B}=new sa({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),AI=YA.create({name:"tabindex",addProseMirrorPlugins(){return[new pt({key:new wn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class ei{constructor(e,A,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=A,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!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let A=this.from,n=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}A=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:A,to:n},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),A=this.resolvedPos.doc.resolve(e);return new ei(A,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 ei(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 ei(e,this.editor)}get children(){const e=[];return this.node.content.forEach((A,n)=>{const r=A.isBlock&&!A.isTextblock,i=this.pos+n+1,s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new ei(s,this.editor,r,r?A:null);r&&(a.actualDepth=this.depth+1),e.push(new ei(s,this.editor,r,r?A:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,A={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(A).length>0){const i=r.node.attrs,s=Object.keys(A);for(let a=0;a<s.length;a+=1){const c=s[a];if(i[c]!==A[c])break}}else n=r;r=r.parent}return n}querySelector(e,A={}){return this.querySelectorAll(e,A,!0)[0]||null}querySelectorAll(e,A={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(A);return this.children.forEach(s=>{n&&r.length>0||(s.node.type.name===e&&i.every(c=>A[c]===s.node.attrs[c])&&r.push(s),!(n&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,A,n))))}),r}setAttribute(e){const A=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(A.from).run()}}const tI=`.ProseMirror {
15
15
  position: relative;
16
16
  }
17
17
 
@@ -85,65 +85,65 @@ img.ProseMirror-separator {
85
85
 
86
86
  .tippy-box[data-animation=fade][data-state=hidden] {
87
87
  opacity: 0
88
- }`;function tI(t,e,A){const n=document.querySelector(`style[data-tiptap-style${A?`-${A}`:""}]`);if(n!==null)return n;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${A?`-${A}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let nI=class extends bU{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>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.createView(),this.injectCSS(),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),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}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&&document&&(this.css=tI(AI,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,A=!0){this.setOptions({editable:e}),A&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,A){const n=bg(A)?A(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const A=typeof e=="string"?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(A))});this.view.updateState(n)}createExtensionManager(){var e,A;const r=[...this.options.enableCoreExtensions?[qv,RU.configure({blockSeparator:(A=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||A===void 0?void 0:A.blockSeparator}),zv,Zv,jv,eI]:[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Mi(r,this)}createCommandManager(){this.commandManager=new sa({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=kg(this.options.content,this.schema,this.options.parseOptions),A=_g(e,this.options.autofocus);this.view=new Gb(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:xi.create({doc:e,selection:A||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const A=this.capturedTransaction;return this.capturedTransaction=null,A}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const A=this.state.apply(e),n=!this.state.selection.eq(A.selection);this.view.updateState(A),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return kv(this.state,e)}isActive(e,A){const n=typeof e=="string"?e:null,r=typeof e=="string"?A:e;return Nv(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Ov(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:A=`
88
+ }`;function nI(t,e,A){const n=document.querySelector(`style[data-tiptap-style${A?`-${A}`:""}]`);if(n!==null)return n;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${A?`-${A}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let rI=class extends UU{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>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.createView(),this.injectCSS(),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),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}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&&document&&(this.css=nI(tI,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,A=!0){this.setOptions({editable:e}),A&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,A){const n=bg(A)?A(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const A=typeof e=="string"?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(A))});this.view.updateState(n)}createExtensionManager(){var e,A;const r=[...this.options.enableCoreExtensions?[Zv,KU.configure({blockSeparator:(A=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||A===void 0?void 0:A.blockSeparator}),qv,jv,eI,AI]:[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Mi(r,this)}createCommandManager(){this.commandManager=new sa({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=kg(this.options.content,this.schema,this.options.parseOptions),A=_g(e,this.options.autofocus);this.view=new Wb(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:xi.create({doc:e,selection:A||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const A=this.capturedTransaction;return this.capturedTransaction=null,A}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const A=this.state.apply(e),n=!this.state.selection.eq(A.selection);this.view.updateState(A),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Nv(this.state,e)}isActive(e,A){const n=typeof e=="string"?e:null,r=typeof e=="string"?A:e;return Dv(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Lv(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:A=`
89
89
 
90
- `,textSerializers:n={}}=e||{};return Lv(this.state.doc,{blockSeparator:A,textSerializers:{...Tg(this.schema),...n}})}get isEmpty(){return Dv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,A))||null}$nodes(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,A))||null}$pos(e){const A=this.state.doc.resolve(e);return new ei(A,this)}get $doc(){return this.$pos(0)}};function Ai(t){return new aa({find:t.find,handler:({state:e,range:A,match:n})=>{const r=be(t.getAttributes,void 0,n);if(r===!1||r===null)return null;const{tr:i}=e,s=n[n.length-1],a=n[0];if(s){const c=a.search(/\S/),u=A.from+a.indexOf(s),f=u+s.length;if(Ng(A.from,A.to,e.doc).filter(B=>B.mark.type.excluded.find(Q=>Q===t.type&&Q!==B.mark.type)).filter(B=>B.to>u).length)return null;f<A.to&&i.delete(f,A.to),u>A.from&&i.delete(A.from+c,u);const g=A.from+c+s.length;i.addMark(A.from+c,g,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function rI(t){return new aa({find:t.find,handler:({state:e,range:A,match:n})=>{const r=be(t.getAttributes,void 0,n)||{},{tr:i}=e,s=A.from;let a=A.to;const c=t.type.create(r);if(n[1]){const u=n[0].lastIndexOf(n[1]);let f=s+u;f>a?f=a:a=f+n[1].length;const p=n[0][n[0].length-1];i.insertText(p,s+n[0].length-1),i.replaceWith(f,a,c)}else n[0]&&i.insert(s-1,t.type.create(r)).delete(i.mapping.map(s),i.mapping.map(a));i.scrollIntoView()}})}function mu(t){return new aa({find:t.find,handler:({state:e,range:A,match:n})=>{const r=e.doc.resolve(A.from),i=be(t.getAttributes,void 0,n)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(A.from,A.to).setBlockType(A.from,A.from,t.type,i)}})}function Ks(t){return new aa({find:t.find,handler:({state:e,range:A,match:n,chain:r})=>{const i=be(t.getAttributes,void 0,n)||{},s=e.tr.delete(A.from,A.to),c=s.doc.resolve(A.from).blockRange(),u=c&&bc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:p,storedMarks:g}=e,{splittableMarks:B}=t.editor.extensionManager,w=g||p.$to.parentOffset&&p.$from.marks();if(w){const Q=w.filter(b=>B.includes(b.type.name));s.ensureMarks(Q)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(p,i).run()}const f=s.doc.resolve(A.from-1).nodeBefore;f&&f.type===t.type&&ar(s.doc,A.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(A.from-1)}})}class sn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new sn(e)}configure(e={}){const A=this.extend();return A.options=ca(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new sn({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}static handleExit({editor:e,mark:A}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===A.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===A.name);return c&&n.removeStoredMark(c),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}let vt=class ch{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ch(e)}configure(e={}){const A=this.extend();return A.options=ca(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new ch({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}};function ti(t){return new OU({find:t.find,handler:({state:e,range:A,match:n,pasteEvent:r})=>{const i=be(t.getAttributes,void 0,n,r);if(i===!1||i===null)return null;const{tr:s}=e,a=n[n.length-1],c=n[0];let u=A.to;if(a){const f=c.search(/\S/),p=A.from+c.indexOf(a),g=p+a.length;if(Ng(A.from,A.to,e.doc).filter(w=>w.mark.type.excluded.find(b=>b===t.type&&b!==w.mark.type)).filter(w=>w.to>p).length)return null;g<A.to&&s.delete(g,A.to),p>A.from&&s.delete(A.from+f,p),u=A.from+f+a.length,s.addMark(A.from+f,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const iI=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,sI=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,oI=sn.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",FA(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[Ai({find:iI,type:this.type})]},addPasteRules(){return[ti({find:sI,type:this.type})]}}),aI=YA.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>t.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(A=>e.updateAttributes(A,{textAlign:t})).every(A=>A):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},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")}}}),lI=/^\s*>\s$/,cI=vt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",FA(this.options.HTMLAttributes,t),0]},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[Ks({find:lI,type:this.type})]}}),uI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,fI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,dI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,hI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,pI=sn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",FA(this.options.HTMLAttributes,t),0]},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[Ai({find:uI,type:this.type}),Ai({find:dI,type:this.type})]},addPasteRules(){return[ti({find:fI,type:this.type}),ti({find:hI,type:this.type})]}}),gI=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(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)}}}),Kg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=ha(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),Vg=/^\s*([-+*])\s$/,mI=vt.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",FA(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(gI.name,this.editor.getAttributes(Kg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ks({find:Vg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:Vg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Kg.name),editor:this.editor})),[t]}}),BI=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,wI=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,CI=sn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",FA(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[Ai({find:BI,type:this.type})]},addPasteRules(){return[ti({find:wI,type:this.type})]}}),yI=/^```([a-z]+)?[\s\n]$/,EI=/^~~~([a-z]+)?[\s\n]$/,QI=vt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:A}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(A)).map(s=>s.replace(A,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",FA(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,A=e.pos===1;return!t||e.parent.type.name!==this.name?!1:A||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:A}=e,{$from:n,empty:r}=A;if(!r||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,s=n.parent.textContent.endsWith(`
90
+ `,textSerializers:n={}}=e||{};return Hv(this.state.doc,{blockSeparator:A,textSerializers:{...Tg(this.schema),...n}})}get isEmpty(){return Mv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,A))||null}$nodes(e,A){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,A))||null}$pos(e){const A=this.state.doc.resolve(e);return new ei(A,this)}get $doc(){return this.$pos(0)}};function Ai(t){return new aa({find:t.find,handler:({state:e,range:A,match:n})=>{const r=be(t.getAttributes,void 0,n);if(r===!1||r===null)return null;const{tr:i}=e,s=n[n.length-1],a=n[0];if(s){const c=a.search(/\S/),u=A.from+a.indexOf(s),f=u+s.length;if(Ng(A.from,A.to,e.doc).filter(B=>B.mark.type.excluded.find(Q=>Q===t.type&&Q!==B.mark.type)).filter(B=>B.to>u).length)return null;f<A.to&&i.delete(f,A.to),u>A.from&&i.delete(A.from+c,u);const g=A.from+c+s.length;i.addMark(A.from+c,g,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function iI(t){return new aa({find:t.find,handler:({state:e,range:A,match:n})=>{const r=be(t.getAttributes,void 0,n)||{},{tr:i}=e,s=A.from;let a=A.to;const c=t.type.create(r);if(n[1]){const u=n[0].lastIndexOf(n[1]);let f=s+u;f>a?f=a:a=f+n[1].length;const p=n[0][n[0].length-1];i.insertText(p,s+n[0].length-1),i.replaceWith(f,a,c)}else n[0]&&i.insert(s-1,t.type.create(r)).delete(i.mapping.map(s),i.mapping.map(a));i.scrollIntoView()}})}function mu(t){return new aa({find:t.find,handler:({state:e,range:A,match:n})=>{const r=e.doc.resolve(A.from),i=be(t.getAttributes,void 0,n)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;e.tr.delete(A.from,A.to).setBlockType(A.from,A.from,t.type,i)}})}function Ks(t){return new aa({find:t.find,handler:({state:e,range:A,match:n,chain:r})=>{const i=be(t.getAttributes,void 0,n)||{},s=e.tr.delete(A.from,A.to),c=s.doc.resolve(A.from).blockRange(),u=c&&bc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:p,storedMarks:g}=e,{splittableMarks:B}=t.editor.extensionManager,w=g||p.$to.parentOffset&&p.$from.marks();if(w){const Q=w.filter(b=>B.includes(b.type.name));s.ensureMarks(Q)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(p,i).run()}const f=s.doc.resolve(A.from-1).nodeBefore;f&&f.type===t.type&&ar(s.doc,A.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(A.from-1)}})}class sn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new sn(e)}configure(e={}){const A=this.extend();return A.options=ca(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new sn({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}static handleExit({editor:e,mark:A}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===A.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===A.name);return c&&n.removeStoredMark(c),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}let vt=class ch{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=be(ae(this,"addOptions",{name:this.name}))),this.storage=be(ae(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ch(e)}configure(e={}){const A=this.extend();return A.options=ca(this.options,e),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}extend(e={}){const A=new ch({...this.config,...e});return A.parent=this,this.child=A,A.name=e.name?e.name:A.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${A.name}".`),A.options=be(ae(A,"addOptions",{name:A.name})),A.storage=be(ae(A,"addStorage",{name:A.name,options:A.options})),A}};function ti(t){return new LU({find:t.find,handler:({state:e,range:A,match:n,pasteEvent:r})=>{const i=be(t.getAttributes,void 0,n,r);if(i===!1||i===null)return null;const{tr:s}=e,a=n[n.length-1],c=n[0];let u=A.to;if(a){const f=c.search(/\S/),p=A.from+c.indexOf(a),g=p+a.length;if(Ng(A.from,A.to,e.doc).filter(w=>w.mark.type.excluded.find(b=>b===t.type&&b!==w.mark.type)).filter(w=>w.to>p).length)return null;g<A.to&&s.delete(g,A.to),p>A.from&&s.delete(A.from+f,p),u=A.from+f+a.length,s.addMark(A.from+f,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const sI=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,oI=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,aI=sn.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",FA(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[Ai({find:sI,type:this.type})]},addPasteRules(){return[ti({find:oI,type:this.type})]}}),lI=YA.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>t.style.textAlign||this.options.defaultAlignment,renderHTML:t=>t.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${t.textAlign}`}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(A=>e.updateAttributes(A,{textAlign:t})).every(A=>A):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},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")}}}),cI=/^\s*>\s$/,uI=vt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",FA(this.options.HTMLAttributes,t),0]},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[Ks({find:cI,type:this.type})]}}),fI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,dI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,hI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,pI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,gI=sn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",FA(this.options.HTMLAttributes,t),0]},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[Ai({find:fI,type:this.type}),Ai({find:hI,type:this.type})]},addPasteRules(){return[ti({find:dI,type:this.type}),ti({find:pI,type:this.type})]}}),mI=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(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)}}}),Kg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=ha(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),Vg=/^\s*([-+*])\s$/,BI=vt.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",FA(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(mI.name,this.editor.getAttributes(Kg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ks({find:Vg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:Vg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Kg.name),editor:this.editor})),[t]}}),wI=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,CI=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,yI=sn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",FA(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[Ai({find:wI,type:this.type})]},addPasteRules(){return[ti({find:CI,type:this.type})]}}),EI=/^```([a-z]+)?[\s\n]$/,QI=/^~~~([a-z]+)?[\s\n]$/,FI=vt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:A}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(A)).map(s=>s.replace(A,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",FA(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,A=e.pos===1;return!t||e.parent.type.name!==this.name?!1:A||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:A}=e,{$from:n,empty:r}=A;if(!r||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,s=n.parent.textContent.endsWith(`
91
91
 
92
- `);return!i||!s?!1:t.chain().command(({tr:a})=>(a.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:A,doc:n}=e,{$from:r,empty:i}=A;if(!i||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const a=r.after();return a===void 0||n.nodeAt(a)?!1:t.commands.exitCode()}}},addInputRules(){return[mu({find:yI,type:this.type,getAttributes:t=>({language:t[1]})}),mu({find:EI,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new pt({key:new wn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const A=e.clipboardData.getData("text/plain"),n=e.clipboardData.getData("vscode-editor-data"),r=n?JSON.parse(n):void 0,i=r==null?void 0:r.mode;if(!A||!i)return!1;const{tr:s}=t.state;return t.state.selection.from===t.state.doc.nodeSize-(1+t.state.selection.$to.depth*2)?s.insert(t.state.selection.from-1,this.type.create({language:i})):s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(Ce.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(A.replace(/\r\n?/g,`
93
- `)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),FI=vt.create({name:"doc",topNode:!0,content:"block+"});function bI(t={}){return new pt({view(e){return new UI(e,t)}})}class UI{constructor(e,A){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=A.width)!==null&&n!==void 0?n:1,this.color=A.color===!1?void 0:A.color||"black",this.class=A.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=s=>{this[r](s)};return e.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:A})=>this.editorView.dom.removeEventListener(e,A))}update(e,A){this.cursorPos!=null&&A.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),A=!e.parent.inlineContent,n;if(A){let a=e.nodeBefore,c=e.nodeAfter;if(a||c){let u=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(u){let f=u.getBoundingClientRect(),p=a?f.bottom:f.top;a&&c&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:f.left,right:f.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!n){let a=this.editorView.coordsAtPos(this.cursorPos);n={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.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",A),this.element.classList.toggle("prosemirror-dropcursor-inline",!A);let i,s;if(!r||r==document.body&&getComputedStyle(r).position=="static")i=-pageXOffset,s=-pageYOffset;else{let a=r.getBoundingClientRect();i=a.left-r.scrollLeft,s=a.top-r.scrollTop}this.element.style.left=n.left-i+"px",this.element.style.top=n.top-s+"px",this.element.style.width=n.right-n.left+"px",this.element.style.height=n.bottom-n.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let A=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=A&&A.inside>=0&&this.editorView.state.doc.nodeAt(A.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,A,e):r;if(A&&!i){let s=A.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Wh(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const vI=YA.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[bI(this.options)]}});class mA extends Fe{constructor(e){super(e,e)}map(e,A){let n=e.resolve(A.map(this.head));return mA.valid(n)?new mA(n):Fe.near(n)}content(){return j.empty}eq(e){return e instanceof mA&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mA(e.resolve(A.pos))}getBookmark(){return new Bu(this.anchor)}static valid(e){let A=e.parent;if(A.isTextblock||!II(e)||!SI(e))return!1;let n=A.type.spec.allowGapCursor;if(n!=null)return n;let r=A.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,A,n=!1){e:for(;;){if(!n&&mA.valid(e))return e;let r=e.pos,i=null;for(let s=e.depth;;s--){let a=e.node(s);if(A>0?e.indexAfter(s)<a.childCount:e.index(s)>0){i=a.child(A>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;r+=A;let c=e.doc.resolve(r);if(mA.valid(c))return c}for(;;){let s=A>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!fe.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*A),n=!1;continue e}break}i=s,r+=A;let a=e.doc.resolve(r);if(mA.valid(a))return a}return null}}}mA.prototype.visible=!1,mA.findFrom=mA.findGapCursorFrom,Fe.jsonID("gapcursor",mA);class Bu{constructor(e){this.pos=e}map(e){return new Bu(e.map(this.pos))}resolve(e){let A=e.resolve(this.pos);return mA.valid(A)?new mA(A):Fe.near(A)}}function II(t){for(let e=t.depth;e>=0;e--){let A=t.index(e),n=t.node(e);if(A==0){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A-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 SI(t){for(let e=t.depth;e>=0;e--){let A=t.indexAfter(e),n=t.node(e);if(A==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A);;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 TI(){return new pt({props:{decorations:LI,createSelectionBetween(t,e,A){return e.pos==A.pos&&mA.valid(A)?new mA(A):null},handleClick:xI,handleKeyDown:_I,handleDOMEvents:{beforeinput:OI}}})}const _I=gg({ArrowLeft:ga("horiz",-1),ArrowRight:ga("horiz",1),ArrowUp:ga("vert",-1),ArrowDown:ga("vert",1)});function ga(t,e){const A=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(n,r,i){let s=n.selection,a=e>0?s.$to:s.$from,c=s.empty;if(s instanceof Ce){if(!i.endOfTextblock(A)||a.depth==0)return!1;c=!1,a=n.doc.resolve(e>0?a.after():a.before())}let u=mA.findGapCursorFrom(a,e,c);return u?(r&&r(n.tr.setSelection(new mA(u))),!0):!1}}function xI(t,e,A){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!mA.valid(n))return!1;let r=t.posAtCoords({left:A.clientX,top:A.clientY});return r&&r.inside>-1&&fe.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new mA(n))),!0)}function OI(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof mA))return!1;let{$from:A}=t.state.selection,n=A.parent.contentMatchAt(A.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let r=Y.empty;for(let s=n.length-1;s>=0;s--)r=Y.from(n[s].createAndFill(null,r));let i=t.state.tr.replace(A.pos,A.pos,new j(r,0,0));return i.setSelection(Ce.near(i.doc.resolve(A.pos+1))),t.dispatch(i),!1}function LI(t){if(!(t.selection instanceof mA))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",IA.create(t.doc,[Kt.widget(t.selection.head,e,{key:"gapcursor"})])}const HI=YA.create({name:"gapCursor",addProseMirrorPlugins(){return[TI()]},extendNodeSchema(t){var e;const A={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=be(ae(t,"allowGapCursor",A)))!==null&&e!==void 0?e:null}}}),kI=vt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",FA(this.options.HTMLAttributes,t)]},renderText(){return`
94
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:A,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=A;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,c=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&c&&s){const p=c.filter(g=>a.includes(g.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),NI=vt.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]}`,FA(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=>mu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ma=200,HA=function(){};HA.prototype.append=function(e){return e.length?(e=HA.from(e),!this.length&&e||e.length<ma&&this.leafAppend(e)||this.length<ma&&e.leafPrepend(this)||this.appendInner(e)):this},HA.prototype.prepend=function(e){return e.length?HA.from(e).append(this):this},HA.prototype.appendInner=function(e){return new DI(this,e)},HA.prototype.slice=function(e,A){return e===void 0&&(e=0),A===void 0&&(A=this.length),e>=A?HA.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,A))},HA.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},HA.prototype.forEach=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length),A<=n?this.forEachInner(e,A,n,0):this.forEachInvertedInner(e,A,n,0)},HA.prototype.map=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,s){return r.push(e(i,s))},A,n),r},HA.from=function(e){return e instanceof HA?e:e&&e.length?new Pg(e):HA.empty};var Pg=function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var A={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new e(this.values.slice(r,i))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,i,s,a){for(var c=i;c<s;c++)if(r(this.values[c],a+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,a){for(var c=i-1;c>=s;c--)if(r(this.values[c],a+c)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=ma)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=ma)return new e(r.flatten().concat(this.values))},A.length.get=function(){return this.values.length},A.depth.get=function(){return 0},Object.defineProperties(e.prototype,A),e}(HA);HA.empty=new Pg([]);var DI=function(t){function e(A,n){t.call(this),this.left=A,this.right=n,this.length=A.length+n.length,this.depth=Math.max(A.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,r,i,s){var a=this.left.length;if(r<a&&this.left.forEachInner(n,r,Math.min(i,a),s)===!1||i>a&&this.right.forEachInner(n,Math.max(r-a,0),Math.min(this.length,i)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(n,r,i,s){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(n,r-a,Math.max(i,a)-a,s+a)===!1||i<a&&this.left.forEachInvertedInner(n,Math.min(r,a),i,s)===!1)return!1},e.prototype.sliceInner=function(n,r){if(n==0&&r==this.length)return this;var i=this.left.length;return r<=i?this.left.slice(n,r):n>=i?this.right.slice(n-i,r-i):this.left.slice(n,i).append(this.right.slice(0,r-i))},e.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new e(r,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e}(HA);const MI=500;class on{constructor(e,A){this.items=e,this.eventCount=A}popEvent(e,A){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let r,i;A&&(r=this.remapping(n,this.items.length),i=r.maps.length);let s=e.tr,a,c,u=[],f=[];return this.items.forEach((p,g)=>{if(!p.step){r||(r=this.remapping(n,g+1),i=r.maps.length),i--,f.push(p);return}if(r){f.push(new Qn(p.map));let B=p.step.map(r.slice(i)),w;B&&s.maybeStep(B).doc&&(w=s.mapping.maps[s.mapping.maps.length-1],u.push(new Qn(w,void 0,void 0,u.length+f.length))),i--,w&&r.appendMap(w,i)}else s.maybeStep(p.step);if(p.selection)return a=r?p.selection.map(r.slice(i)):p.selection,c=new on(this.items.slice(0,n).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:a}}addTransform(e,A,n,r){let i=[],s=this.eventCount,a=this.items,c=!r&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let p=e.steps[f].invert(e.docs[f]),g=new Qn(e.mapping.maps[f],p,A),B;(B=c&&c.merge(g))&&(g=B,f?i.pop():a=a.slice(0,a.length-1)),i.push(g),A&&(s++,A=void 0),r||(c=g)}let u=s-n.depth;return u>KI&&(a=RI(a,u),s-=u),new on(a.append(i),s)}remapping(e,A){let n=new bi;return this.items.forEach((r,i)=>{let s=r.mirrorOffset!=null&&i-r.mirrorOffset>=e?n.maps.length-r.mirrorOffset:void 0;n.appendMap(r.map,s)},e,A),n}addMaps(e){return this.eventCount==0?this:new on(this.items.append(e.map(A=>new Qn(A))),this.eventCount)}rebased(e,A){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-A),i=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},r);let c=A;this.items.forEach(g=>{let B=i.getMirror(--c);if(B==null)return;s=Math.min(s,B);let w=i.maps[B];if(g.step){let Q=e.steps[B].invert(e.docs[B]),b=g.selection&&g.selection.map(i.slice(c+1,B));b&&a++,n.push(new Qn(w,Q,b))}else n.push(new Qn(w))},r);let u=[];for(let g=A;g<s;g++)u.push(new Qn(i.maps[g]));let f=this.items.slice(0,r).append(u).append(n),p=new on(f,a);return p.emptyItemCount()>MI&&(p=p.compress(this.items.length-n.length)),p}emptyItemCount(){let e=0;return this.items.forEach(A=>{A.step||e++}),e}compress(e=this.items.length){let A=this.remapping(0,e),n=A.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=e)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(A.slice(n)),u=c&&c.getMap();if(n--,u&&A.appendMap(u,n),c){let f=s.selection&&s.selection.map(A.slice(n));f&&i++;let p=new Qn(u.invert(),c,f),g,B=r.length-1;(g=r.length&&r[B].merge(p))?r[B]=g:r.push(p)}}else s.map&&n--},this.items.length,0),new on(HA.from(r.reverse()),i)}}on.empty=new on(HA.empty,0);function RI(t,e){let A;return t.forEach((n,r)=>{if(n.selection&&e--==0)return A=r,!1}),t.slice(A)}class Qn{constructor(e,A,n,r){this.map=e,this.step=A,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let A=e.step.merge(this.step);if(A)return new Qn(A.getMap().invert(),A,this.selection)}}}class wr{constructor(e,A,n,r,i){this.done=e,this.undone=A,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const KI=20;function VI(t,e,A,n){let r=A.getMeta(ni),i;if(r)return r.historyState;A.getMeta(WI)&&(t=new wr(t.done,t.undone,null,0,-1));let s=A.getMeta("appendedTransaction");if(A.steps.length==0)return t;if(s&&s.getMeta(ni))return s.getMeta(ni).redo?new wr(t.done.addTransform(A,void 0,n,Ba(e)),t.undone,Gg(A.mapping.maps[A.steps.length-1]),t.prevTime,t.prevComposition):new wr(t.done,t.undone.addTransform(A,void 0,n,Ba(e)),null,t.prevTime,t.prevComposition);if(A.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=A.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(A.time||0)-n.newGroupDelay||!PI(A,t.prevRanges)),u=s?wu(t.prevRanges,A.mapping):Gg(A.mapping.maps[A.steps.length-1]);return new wr(t.done.addTransform(A,c?e.selection.getBookmark():void 0,n,Ba(e)),on.empty,u,A.time,a??t.prevComposition)}else return(i=A.getMeta("rebased"))?new wr(t.done.rebased(A,i),t.undone.rebased(A,i),wu(t.prevRanges,A.mapping),t.prevTime,t.prevComposition):new wr(t.done.addMaps(A.mapping.maps),t.undone.addMaps(A.mapping.maps),wu(t.prevRanges,A.mapping),t.prevTime,t.prevComposition)}function PI(t,e){if(!e)return!1;if(!t.docChanged)return!0;let A=!1;return t.mapping.maps[0].forEach((n,r)=>{for(let i=0;i<e.length;i+=2)n<=e[i+1]&&r>=e[i]&&(A=!0)}),A}function Gg(t){let e=[];return t.forEach((A,n,r,i)=>e.push(r,i)),e}function wu(t,e){if(!t)return null;let A=[];for(let n=0;n<t.length;n+=2){let r=e.map(t[n],1),i=e.map(t[n+1],-1);r<=i&&A.push(r,i)}return A}function GI(t,e,A){let n=Ba(e),r=ni.get(e).spec.config,i=(A?t.undone:t.done).popEvent(e,n);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(A?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),r,n),c=new wr(A?a:i.remaining,A?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(ni,{redo:A,historyState:c})}let Cu=!1,Wg=null;function Ba(t){let e=t.plugins;if(Wg!=e){Cu=!1,Wg=e;for(let A=0;A<e.length;A++)if(e[A].spec.historyPreserveItems){Cu=!0;break}}return Cu}const ni=new wn("history"),WI=new wn("closeHistory");function $I(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new pt({key:ni,state:{init(){return new wr(on.empty,on.empty,null,0,-1)},apply(e,A,n){return VI(A,n,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,A){let n=A.inputType,r=n=="historyUndo"?Jg:n=="historyRedo"?Xg:null;return r?(A.preventDefault(),r(e.state,e.dispatch)):!1}}}})}function $g(t,e){return(A,n)=>{let r=ni.getState(A);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(n){let i=GI(r,A,t);i&&n(e?i.scrollIntoView():i)}return!0}}const Jg=$g(!1,!0),Xg=$g(!0,!0),JI=YA.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Jg(t,e),redo:()=>({state:t,dispatch:e})=>Xg(t,e)}},addProseMirrorPlugins(){return[$I(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()}}}),XI=vt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",FA(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:A}=e.selection,n=t();return A.parentOffset===0?n.insertContentAt(Math.max(A.pos-2,0),{type:this.name}):n.insertContent({type:this.name}),n.command(({tr:r,dispatch:i})=>{var s;if(i){const{$to:a}=r.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?r.setSelection(Ce.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(fe.create(r.doc,a.pos)):r.setSelection(Ce.create(r.doc,a.pos));else{const u=(s=a.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();u&&(r.insert(c,u),r.setSelection(Ce.create(r.doc,c+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[rI({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),YI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,zI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,qI=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,ZI=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,jI=sn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",FA(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[Ai({find:YI,type:this.type}),Ai({find:qI,type:this.type})]},addPasteRules(){return[ti({find:zI,type:this.type}),ti({find:ZI,type:this.type})]}}),e1=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(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)}}}),A1=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(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)}}}),Yg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=ha(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),zg=/^(\d+)\.\s$/,t1=vt.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}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...A}=t;return e===1?["ol",FA(this.options.HTMLAttributes,A),0]:["ol",FA(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(A1.name,this.editor.getAttributes(Yg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ks({find:zg,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:zg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Yg.name)}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1],editor:this.editor})),[t]}}),n1=vt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),r1=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,i1=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,s1=sn.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",FA(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[Ai({find:r1,type:this.type})]},addPasteRules(){return[ti({find:i1,type:this.type})]}}),o1=vt.create({name:"text",group:"inline"}),a1=YA.create({name:"starterKit",addExtensions(){var t,e,A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v;const _=[];return this.options.blockquote!==!1&&_.push(cI.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&_.push(pI.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&_.push(mI.configure((A=this.options)===null||A===void 0?void 0:A.bulletList)),this.options.code!==!1&&_.push(CI.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&_.push(QI.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&_.push(FI.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&_.push(vI.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&_.push(HI.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&_.push(kI.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&_.push(NI.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&_.push(JI.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&_.push(XI.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&_.push(jI.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&_.push(e1.configure((B=this.options)===null||B===void 0?void 0:B.listItem)),this.options.orderedList!==!1&&_.push(t1.configure((w=this.options)===null||w===void 0?void 0:w.orderedList)),this.options.paragraph!==!1&&_.push(n1.configure((Q=this.options)===null||Q===void 0?void 0:Q.paragraph)),this.options.strike!==!1&&_.push(s1.configure((b=this.options)===null||b===void 0?void 0:b.strike)),this.options.text!==!1&&_.push(o1.configure((v=this.options)===null||v===void 0?void 0:v.text)),_}});var l1="tippy-box",qg="tippy-content",c1="tippy-backdrop",Zg="tippy-arrow",jg="tippy-svg-arrow",ri={passive:!0,capture:!0},em=function(){return document.body};function u1(t,e){return{}.hasOwnProperty.call(t,e)}function yu(t,e,A){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(A)?A[e]:A)}return t}function Eu(t,e){var A={}.toString.call(t);return A.indexOf("[object")===0&&A.indexOf(e+"]")>-1}function Am(t,e){return typeof t=="function"?t.apply(void 0,e):t}function tm(t,e){if(e===0)return t;var A;return function(n){clearTimeout(A),A=setTimeout(function(){t(n)},e)}}function f1(t,e){var A=Object.assign({},t);return e.forEach(function(n){delete A[n]}),A}function d1(t){return t.split(/\s+/).filter(Boolean)}function Ri(t){return[].concat(t)}function nm(t,e){t.indexOf(e)===-1&&t.push(e)}function h1(t){return t.filter(function(e,A){return t.indexOf(e)===A})}function p1(t){return t.split("-")[0]}function wa(t){return[].slice.call(t)}function rm(t){return Object.keys(t).reduce(function(e,A){return t[A]!==void 0&&(e[A]=t[A]),e},{})}function Vs(){return document.createElement("div")}function Ps(t){return["Element","Fragment"].some(function(e){return Eu(t,e)})}function g1(t){return Eu(t,"NodeList")}function m1(t){return Eu(t,"MouseEvent")}function B1(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function w1(t){return Ps(t)?[t]:g1(t)?wa(t):Array.isArray(t)?t:wa(document.querySelectorAll(t))}function Qu(t,e){t.forEach(function(A){A&&(A.style.transitionDuration=e+"ms")})}function im(t,e){t.forEach(function(A){A&&A.setAttribute("data-state",e)})}function C1(t){var e,A=Ri(t),n=A[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function y1(t,e){var A=e.clientX,n=e.clientY;return t.every(function(r){var i=r.popperRect,s=r.popperState,a=r.props,c=a.interactiveBorder,u=p1(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=u==="bottom"?f.top.y:0,g=u==="top"?f.bottom.y:0,B=u==="right"?f.left.x:0,w=u==="left"?f.right.x:0,Q=i.top-n+p>c,b=n-i.bottom-g>c,v=i.left-A+B>c,_=A-i.right-w>c;return Q||b||v||_})}function Fu(t,e,A){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,A)})}function sm(t,e){for(var A=e;A;){var n;if(t.contains(A))return!0;A=A.getRootNode==null||(n=A.getRootNode())==null?void 0:n.host}return!1}var Fn={isTouch:!1},om=0;function E1(){Fn.isTouch||(Fn.isTouch=!0,window.performance&&document.addEventListener("mousemove",am))}function am(){var t=performance.now();t-om<20&&(Fn.isTouch=!1,document.removeEventListener("mousemove",am)),om=t}function Q1(){var t=document.activeElement;if(B1(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function F1(){document.addEventListener("touchstart",E1,ri),window.addEventListener("blur",Q1)}var b1=typeof window<"u"&&typeof document<"u",U1=b1?!!window.msCrypto:!1;function Ki(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function lm(t){var e=/[ \t]{2,}/g,A=/^[ \t]*/gm;return t.replace(e," ").replace(A,"").trim()}function v1(t){return lm(`
92
+ `);return!i||!s?!1:t.chain().command(({tr:a})=>(a.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:A,doc:n}=e,{$from:r,empty:i}=A;if(!i||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const a=r.after();return a===void 0||n.nodeAt(a)?!1:t.commands.exitCode()}}},addInputRules(){return[mu({find:EI,type:this.type,getAttributes:t=>({language:t[1]})}),mu({find:QI,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new pt({key:new wn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const A=e.clipboardData.getData("text/plain"),n=e.clipboardData.getData("vscode-editor-data"),r=n?JSON.parse(n):void 0,i=r==null?void 0:r.mode;if(!A||!i)return!1;const{tr:s}=t.state;return t.state.selection.from===t.state.doc.nodeSize-(1+t.state.selection.$to.depth*2)?s.insert(t.state.selection.from-1,this.type.create({language:i})):s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(Ce.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(A.replace(/\r\n?/g,`
93
+ `)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),bI=vt.create({name:"doc",topNode:!0,content:"block+"});function UI(t={}){return new pt({view(e){return new vI(e,t)}})}class vI{constructor(e,A){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=A.width)!==null&&n!==void 0?n:1,this.color=A.color===!1?void 0:A.color||"black",this.class=A.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=s=>{this[r](s)};return e.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:A})=>this.editorView.dom.removeEventListener(e,A))}update(e,A){this.cursorPos!=null&&A.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),A=!e.parent.inlineContent,n;if(A){let a=e.nodeBefore,c=e.nodeAfter;if(a||c){let u=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(u){let f=u.getBoundingClientRect(),p=a?f.bottom:f.top;a&&c&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:f.left,right:f.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!n){let a=this.editorView.coordsAtPos(this.cursorPos);n={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.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",A),this.element.classList.toggle("prosemirror-dropcursor-inline",!A);let i,s;if(!r||r==document.body&&getComputedStyle(r).position=="static")i=-pageXOffset,s=-pageYOffset;else{let a=r.getBoundingClientRect();i=a.left-r.scrollLeft,s=a.top-r.scrollTop}this.element.style.left=n.left-i+"px",this.element.style.top=n.top-s+"px",this.element.style.width=n.right-n.left+"px",this.element.style.height=n.bottom-n.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let A=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=A&&A.inside>=0&&this.editorView.state.doc.nodeAt(A.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,A,e):r;if(A&&!i){let s=A.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Wh(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const II=YA.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[UI(this.options)]}});class mA extends Fe{constructor(e){super(e,e)}map(e,A){let n=e.resolve(A.map(this.head));return mA.valid(n)?new mA(n):Fe.near(n)}content(){return j.empty}eq(e){return e instanceof mA&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,A){if(typeof A.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mA(e.resolve(A.pos))}getBookmark(){return new Bu(this.anchor)}static valid(e){let A=e.parent;if(A.isTextblock||!SI(e)||!TI(e))return!1;let n=A.type.spec.allowGapCursor;if(n!=null)return n;let r=A.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,A,n=!1){e:for(;;){if(!n&&mA.valid(e))return e;let r=e.pos,i=null;for(let s=e.depth;;s--){let a=e.node(s);if(A>0?e.indexAfter(s)<a.childCount:e.index(s)>0){i=a.child(A>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;r+=A;let c=e.doc.resolve(r);if(mA.valid(c))return c}for(;;){let s=A>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!fe.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*A),n=!1;continue e}break}i=s,r+=A;let a=e.doc.resolve(r);if(mA.valid(a))return a}return null}}}mA.prototype.visible=!1,mA.findFrom=mA.findGapCursorFrom,Fe.jsonID("gapcursor",mA);class Bu{constructor(e){this.pos=e}map(e){return new Bu(e.map(this.pos))}resolve(e){let A=e.resolve(this.pos);return mA.valid(A)?new mA(A):Fe.near(A)}}function SI(t){for(let e=t.depth;e>=0;e--){let A=t.index(e),n=t.node(e);if(A==0){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A-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 TI(t){for(let e=t.depth;e>=0;e--){let A=t.indexAfter(e),n=t.node(e);if(A==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(A);;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 _I(){return new pt({props:{decorations:HI,createSelectionBetween(t,e,A){return e.pos==A.pos&&mA.valid(A)?new mA(A):null},handleClick:OI,handleKeyDown:xI,handleDOMEvents:{beforeinput:LI}}})}const xI=gg({ArrowLeft:ga("horiz",-1),ArrowRight:ga("horiz",1),ArrowUp:ga("vert",-1),ArrowDown:ga("vert",1)});function ga(t,e){const A=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(n,r,i){let s=n.selection,a=e>0?s.$to:s.$from,c=s.empty;if(s instanceof Ce){if(!i.endOfTextblock(A)||a.depth==0)return!1;c=!1,a=n.doc.resolve(e>0?a.after():a.before())}let u=mA.findGapCursorFrom(a,e,c);return u?(r&&r(n.tr.setSelection(new mA(u))),!0):!1}}function OI(t,e,A){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!mA.valid(n))return!1;let r=t.posAtCoords({left:A.clientX,top:A.clientY});return r&&r.inside>-1&&fe.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new mA(n))),!0)}function LI(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof mA))return!1;let{$from:A}=t.state.selection,n=A.parent.contentMatchAt(A.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let r=Y.empty;for(let s=n.length-1;s>=0;s--)r=Y.from(n[s].createAndFill(null,r));let i=t.state.tr.replace(A.pos,A.pos,new j(r,0,0));return i.setSelection(Ce.near(i.doc.resolve(A.pos+1))),t.dispatch(i),!1}function HI(t){if(!(t.selection instanceof mA))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",IA.create(t.doc,[Kt.widget(t.selection.head,e,{key:"gapcursor"})])}const kI=YA.create({name:"gapCursor",addProseMirrorPlugins(){return[_I()]},extendNodeSchema(t){var e;const A={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=be(ae(t,"allowGapCursor",A)))!==null&&e!==void 0?e:null}}}),NI=vt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",FA(this.options.HTMLAttributes,t)]},renderText(){return`
94
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:A,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=A;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,c=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&c&&s){const p=c.filter(g=>a.includes(g.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),DI=vt.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]}`,FA(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=>mu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ma=200,HA=function(){};HA.prototype.append=function(e){return e.length?(e=HA.from(e),!this.length&&e||e.length<ma&&this.leafAppend(e)||this.length<ma&&e.leafPrepend(this)||this.appendInner(e)):this},HA.prototype.prepend=function(e){return e.length?HA.from(e).append(this):this},HA.prototype.appendInner=function(e){return new MI(this,e)},HA.prototype.slice=function(e,A){return e===void 0&&(e=0),A===void 0&&(A=this.length),e>=A?HA.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,A))},HA.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},HA.prototype.forEach=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length),A<=n?this.forEachInner(e,A,n,0):this.forEachInvertedInner(e,A,n,0)},HA.prototype.map=function(e,A,n){A===void 0&&(A=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,s){return r.push(e(i,s))},A,n),r},HA.from=function(e){return e instanceof HA?e:e&&e.length?new Pg(e):HA.empty};var Pg=function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var A={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new e(this.values.slice(r,i))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,i,s,a){for(var c=i;c<s;c++)if(r(this.values[c],a+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,a){for(var c=i-1;c>=s;c--)if(r(this.values[c],a+c)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=ma)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=ma)return new e(r.flatten().concat(this.values))},A.length.get=function(){return this.values.length},A.depth.get=function(){return 0},Object.defineProperties(e.prototype,A),e}(HA);HA.empty=new Pg([]);var MI=function(t){function e(A,n){t.call(this),this.left=A,this.right=n,this.length=A.length+n.length,this.depth=Math.max(A.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,r,i,s){var a=this.left.length;if(r<a&&this.left.forEachInner(n,r,Math.min(i,a),s)===!1||i>a&&this.right.forEachInner(n,Math.max(r-a,0),Math.min(this.length,i)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(n,r,i,s){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(n,r-a,Math.max(i,a)-a,s+a)===!1||i<a&&this.left.forEachInvertedInner(n,Math.min(r,a),i,s)===!1)return!1},e.prototype.sliceInner=function(n,r){if(n==0&&r==this.length)return this;var i=this.left.length;return r<=i?this.left.slice(n,r):n>=i?this.right.slice(n-i,r-i):this.left.slice(n,i).append(this.right.slice(0,r-i))},e.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new e(r,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e}(HA);const RI=500;class on{constructor(e,A){this.items=e,this.eventCount=A}popEvent(e,A){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let r,i;A&&(r=this.remapping(n,this.items.length),i=r.maps.length);let s=e.tr,a,c,u=[],f=[];return this.items.forEach((p,g)=>{if(!p.step){r||(r=this.remapping(n,g+1),i=r.maps.length),i--,f.push(p);return}if(r){f.push(new Qn(p.map));let B=p.step.map(r.slice(i)),w;B&&s.maybeStep(B).doc&&(w=s.mapping.maps[s.mapping.maps.length-1],u.push(new Qn(w,void 0,void 0,u.length+f.length))),i--,w&&r.appendMap(w,i)}else s.maybeStep(p.step);if(p.selection)return a=r?p.selection.map(r.slice(i)):p.selection,c=new on(this.items.slice(0,n).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:s,selection:a}}addTransform(e,A,n,r){let i=[],s=this.eventCount,a=this.items,c=!r&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let p=e.steps[f].invert(e.docs[f]),g=new Qn(e.mapping.maps[f],p,A),B;(B=c&&c.merge(g))&&(g=B,f?i.pop():a=a.slice(0,a.length-1)),i.push(g),A&&(s++,A=void 0),r||(c=g)}let u=s-n.depth;return u>VI&&(a=KI(a,u),s-=u),new on(a.append(i),s)}remapping(e,A){let n=new bi;return this.items.forEach((r,i)=>{let s=r.mirrorOffset!=null&&i-r.mirrorOffset>=e?n.maps.length-r.mirrorOffset:void 0;n.appendMap(r.map,s)},e,A),n}addMaps(e){return this.eventCount==0?this:new on(this.items.append(e.map(A=>new Qn(A))),this.eventCount)}rebased(e,A){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-A),i=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},r);let c=A;this.items.forEach(g=>{let B=i.getMirror(--c);if(B==null)return;s=Math.min(s,B);let w=i.maps[B];if(g.step){let Q=e.steps[B].invert(e.docs[B]),b=g.selection&&g.selection.map(i.slice(c+1,B));b&&a++,n.push(new Qn(w,Q,b))}else n.push(new Qn(w))},r);let u=[];for(let g=A;g<s;g++)u.push(new Qn(i.maps[g]));let f=this.items.slice(0,r).append(u).append(n),p=new on(f,a);return p.emptyItemCount()>RI&&(p=p.compress(this.items.length-n.length)),p}emptyItemCount(){let e=0;return this.items.forEach(A=>{A.step||e++}),e}compress(e=this.items.length){let A=this.remapping(0,e),n=A.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=e)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(A.slice(n)),u=c&&c.getMap();if(n--,u&&A.appendMap(u,n),c){let f=s.selection&&s.selection.map(A.slice(n));f&&i++;let p=new Qn(u.invert(),c,f),g,B=r.length-1;(g=r.length&&r[B].merge(p))?r[B]=g:r.push(p)}}else s.map&&n--},this.items.length,0),new on(HA.from(r.reverse()),i)}}on.empty=new on(HA.empty,0);function KI(t,e){let A;return t.forEach((n,r)=>{if(n.selection&&e--==0)return A=r,!1}),t.slice(A)}class Qn{constructor(e,A,n,r){this.map=e,this.step=A,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let A=e.step.merge(this.step);if(A)return new Qn(A.getMap().invert(),A,this.selection)}}}class wr{constructor(e,A,n,r,i){this.done=e,this.undone=A,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const VI=20;function PI(t,e,A,n){let r=A.getMeta(ni),i;if(r)return r.historyState;A.getMeta($I)&&(t=new wr(t.done,t.undone,null,0,-1));let s=A.getMeta("appendedTransaction");if(A.steps.length==0)return t;if(s&&s.getMeta(ni))return s.getMeta(ni).redo?new wr(t.done.addTransform(A,void 0,n,Ba(e)),t.undone,Gg(A.mapping.maps[A.steps.length-1]),t.prevTime,t.prevComposition):new wr(t.done,t.undone.addTransform(A,void 0,n,Ba(e)),null,t.prevTime,t.prevComposition);if(A.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=A.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(A.time||0)-n.newGroupDelay||!GI(A,t.prevRanges)),u=s?wu(t.prevRanges,A.mapping):Gg(A.mapping.maps[A.steps.length-1]);return new wr(t.done.addTransform(A,c?e.selection.getBookmark():void 0,n,Ba(e)),on.empty,u,A.time,a??t.prevComposition)}else return(i=A.getMeta("rebased"))?new wr(t.done.rebased(A,i),t.undone.rebased(A,i),wu(t.prevRanges,A.mapping),t.prevTime,t.prevComposition):new wr(t.done.addMaps(A.mapping.maps),t.undone.addMaps(A.mapping.maps),wu(t.prevRanges,A.mapping),t.prevTime,t.prevComposition)}function GI(t,e){if(!e)return!1;if(!t.docChanged)return!0;let A=!1;return t.mapping.maps[0].forEach((n,r)=>{for(let i=0;i<e.length;i+=2)n<=e[i+1]&&r>=e[i]&&(A=!0)}),A}function Gg(t){let e=[];return t.forEach((A,n,r,i)=>e.push(r,i)),e}function wu(t,e){if(!t)return null;let A=[];for(let n=0;n<t.length;n+=2){let r=e.map(t[n],1),i=e.map(t[n+1],-1);r<=i&&A.push(r,i)}return A}function WI(t,e,A){let n=Ba(e),r=ni.get(e).spec.config,i=(A?t.undone:t.done).popEvent(e,n);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(A?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),r,n),c=new wr(A?a:i.remaining,A?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(ni,{redo:A,historyState:c})}let Cu=!1,Wg=null;function Ba(t){let e=t.plugins;if(Wg!=e){Cu=!1,Wg=e;for(let A=0;A<e.length;A++)if(e[A].spec.historyPreserveItems){Cu=!0;break}}return Cu}const ni=new wn("history"),$I=new wn("closeHistory");function JI(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new pt({key:ni,state:{init(){return new wr(on.empty,on.empty,null,0,-1)},apply(e,A,n){return PI(A,n,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,A){let n=A.inputType,r=n=="historyUndo"?Jg:n=="historyRedo"?Xg:null;return r?(A.preventDefault(),r(e.state,e.dispatch)):!1}}}})}function $g(t,e){return(A,n)=>{let r=ni.getState(A);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(n){let i=WI(r,A,t);i&&n(e?i.scrollIntoView():i)}return!0}}const Jg=$g(!1,!0),Xg=$g(!0,!0),XI=YA.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Jg(t,e),redo:()=>({state:t,dispatch:e})=>Xg(t,e)}},addProseMirrorPlugins(){return[JI(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()}}}),YI=vt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",FA(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:A}=e.selection,n=t();return A.parentOffset===0?n.insertContentAt(Math.max(A.pos-2,0),{type:this.name}):n.insertContent({type:this.name}),n.command(({tr:r,dispatch:i})=>{var s;if(i){const{$to:a}=r.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?r.setSelection(Ce.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(fe.create(r.doc,a.pos)):r.setSelection(Ce.create(r.doc,a.pos));else{const u=(s=a.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();u&&(r.insert(c,u),r.setSelection(Ce.create(r.doc,c+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[iI({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),zI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,qI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,ZI=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,jI=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,e1=sn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",FA(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[Ai({find:zI,type:this.type}),Ai({find:ZI,type:this.type})]},addPasteRules(){return[ti({find:qI,type:this.type}),ti({find:jI,type:this.type})]}}),A1=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(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)}}}),t1=vt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",FA(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)}}}),Yg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const A=ha(t,this.type);return Object.entries(A).some(([,r])=>!!r)?!0:e.unsetMark(this.name)}}}}),zg=/^(\d+)\.\s$/,n1=vt.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}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...A}=t;return e===1?["ol",FA(this.options.HTMLAttributes,A),0]:["ol",FA(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(t1.name,this.editor.getAttributes(Yg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ks({find:zg,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:zg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Yg.name)}),joinPredicate:(e,A)=>A.childCount+A.attrs.start===+e[1],editor:this.editor})),[t]}}),r1=vt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",FA(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),i1=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,s1=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,o1=sn.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",FA(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[Ai({find:i1,type:this.type})]},addPasteRules(){return[ti({find:s1,type:this.type})]}}),a1=vt.create({name:"text",group:"inline"}),l1=YA.create({name:"starterKit",addExtensions(){var t,e,A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v;const _=[];return this.options.blockquote!==!1&&_.push(uI.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&_.push(gI.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&_.push(BI.configure((A=this.options)===null||A===void 0?void 0:A.bulletList)),this.options.code!==!1&&_.push(yI.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&_.push(FI.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&_.push(bI.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&_.push(II.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&_.push(kI.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&_.push(NI.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&_.push(DI.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&_.push(XI.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&_.push(YI.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&_.push(e1.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&_.push(A1.configure((B=this.options)===null||B===void 0?void 0:B.listItem)),this.options.orderedList!==!1&&_.push(n1.configure((w=this.options)===null||w===void 0?void 0:w.orderedList)),this.options.paragraph!==!1&&_.push(r1.configure((Q=this.options)===null||Q===void 0?void 0:Q.paragraph)),this.options.strike!==!1&&_.push(o1.configure((b=this.options)===null||b===void 0?void 0:b.strike)),this.options.text!==!1&&_.push(a1.configure((v=this.options)===null||v===void 0?void 0:v.text)),_}});var c1="tippy-box",qg="tippy-content",u1="tippy-backdrop",Zg="tippy-arrow",jg="tippy-svg-arrow",ri={passive:!0,capture:!0},em=function(){return document.body};function f1(t,e){return{}.hasOwnProperty.call(t,e)}function yu(t,e,A){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(A)?A[e]:A)}return t}function Eu(t,e){var A={}.toString.call(t);return A.indexOf("[object")===0&&A.indexOf(e+"]")>-1}function Am(t,e){return typeof t=="function"?t.apply(void 0,e):t}function tm(t,e){if(e===0)return t;var A;return function(n){clearTimeout(A),A=setTimeout(function(){t(n)},e)}}function d1(t,e){var A=Object.assign({},t);return e.forEach(function(n){delete A[n]}),A}function h1(t){return t.split(/\s+/).filter(Boolean)}function Ri(t){return[].concat(t)}function nm(t,e){t.indexOf(e)===-1&&t.push(e)}function p1(t){return t.filter(function(e,A){return t.indexOf(e)===A})}function g1(t){return t.split("-")[0]}function wa(t){return[].slice.call(t)}function rm(t){return Object.keys(t).reduce(function(e,A){return t[A]!==void 0&&(e[A]=t[A]),e},{})}function Vs(){return document.createElement("div")}function Ps(t){return["Element","Fragment"].some(function(e){return Eu(t,e)})}function m1(t){return Eu(t,"NodeList")}function B1(t){return Eu(t,"MouseEvent")}function w1(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function C1(t){return Ps(t)?[t]:m1(t)?wa(t):Array.isArray(t)?t:wa(document.querySelectorAll(t))}function Qu(t,e){t.forEach(function(A){A&&(A.style.transitionDuration=e+"ms")})}function im(t,e){t.forEach(function(A){A&&A.setAttribute("data-state",e)})}function y1(t){var e,A=Ri(t),n=A[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function E1(t,e){var A=e.clientX,n=e.clientY;return t.every(function(r){var i=r.popperRect,s=r.popperState,a=r.props,c=a.interactiveBorder,u=g1(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=u==="bottom"?f.top.y:0,g=u==="top"?f.bottom.y:0,B=u==="right"?f.left.x:0,w=u==="left"?f.right.x:0,Q=i.top-n+p>c,b=n-i.bottom-g>c,v=i.left-A+B>c,_=A-i.right-w>c;return Q||b||v||_})}function Fu(t,e,A){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,A)})}function sm(t,e){for(var A=e;A;){var n;if(t.contains(A))return!0;A=A.getRootNode==null||(n=A.getRootNode())==null?void 0:n.host}return!1}var Fn={isTouch:!1},om=0;function Q1(){Fn.isTouch||(Fn.isTouch=!0,window.performance&&document.addEventListener("mousemove",am))}function am(){var t=performance.now();t-om<20&&(Fn.isTouch=!1,document.removeEventListener("mousemove",am)),om=t}function F1(){var t=document.activeElement;if(w1(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function b1(){document.addEventListener("touchstart",Q1,ri),window.addEventListener("blur",F1)}var U1=typeof window<"u"&&typeof document<"u",v1=U1?!!window.msCrypto:!1;function Ki(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function lm(t){var e=/[ \t]{2,}/g,A=/^[ \t]*/gm;return t.replace(e," ").replace(A,"").trim()}function I1(t){return lm(`
95
95
  %ctippy.js
96
96
 
97
97
  %c`+lm(t)+`
98
98
 
99
99
  %c👷‍ This is a development-only message. It will be removed in production.
100
- `)}function cm(t){return[v1(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Gs;process.env.NODE_ENV!=="production"&&I1();function I1(){Gs=new Set}function Dn(t,e){if(t&&!Gs.has(e)){var A;Gs.add(e),(A=console).warn.apply(A,cm(e))}}function bu(t,e){if(t&&!Gs.has(e)){var A;Gs.add(e),(A=console).error.apply(A,cm(e))}}function S1(t){var e=!t,A=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;bu(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bu(A,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var um={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},T1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},It=Object.assign({appendTo:em,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},um,T1),_1=Object.keys(It),x1=function(e){process.env.NODE_ENV!=="production"&&hm(e,[]);var A=Object.keys(e);A.forEach(function(n){It[n]=e[n]})};function fm(t){var e=t.plugins||[],A=e.reduce(function(n,r){var i=r.name,s=r.defaultValue;if(i){var a;n[i]=t[i]!==void 0?t[i]:(a=It[i])!=null?a:s}return n},{});return Object.assign({},t,A)}function O1(t,e){var A=e?Object.keys(fm(Object.assign({},It,{plugins:e}))):_1,n=A.reduce(function(r,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return r;if(i==="content")r[i]=s;else try{r[i]=JSON.parse(s)}catch{r[i]=s}return r},{});return n}function dm(t,e){var A=Object.assign({},e,{content:Am(e.content,[t])},e.ignoreAttributes?{}:O1(t,e.plugins));return A.aria=Object.assign({},It.aria,A.aria),A.aria={expanded:A.aria.expanded==="auto"?e.interactive:A.aria.expanded,content:A.aria.content==="auto"?e.interactive?null:"describedby":A.aria.content},A}function hm(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var A=Object.keys(t);A.forEach(function(n){var r=f1(It,Object.keys(um)),i=!u1(r,n);i&&(i=e.filter(function(s){return s.name===n}).length===0),Dn(i,["`"+n+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
100
+ `)}function cm(t){return[I1(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Gs;process.env.NODE_ENV!=="production"&&S1();function S1(){Gs=new Set}function Dn(t,e){if(t&&!Gs.has(e)){var A;Gs.add(e),(A=console).warn.apply(A,cm(e))}}function bu(t,e){if(t&&!Gs.has(e)){var A;Gs.add(e),(A=console).error.apply(A,cm(e))}}function T1(t){var e=!t,A=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;bu(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bu(A,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var um={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},It=Object.assign({appendTo:em,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},um,_1),x1=Object.keys(It),O1=function(e){process.env.NODE_ENV!=="production"&&hm(e,[]);var A=Object.keys(e);A.forEach(function(n){It[n]=e[n]})};function fm(t){var e=t.plugins||[],A=e.reduce(function(n,r){var i=r.name,s=r.defaultValue;if(i){var a;n[i]=t[i]!==void 0?t[i]:(a=It[i])!=null?a:s}return n},{});return Object.assign({},t,A)}function L1(t,e){var A=e?Object.keys(fm(Object.assign({},It,{plugins:e}))):x1,n=A.reduce(function(r,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return r;if(i==="content")r[i]=s;else try{r[i]=JSON.parse(s)}catch{r[i]=s}return r},{});return n}function dm(t,e){var A=Object.assign({},e,{content:Am(e.content,[t])},e.ignoreAttributes?{}:L1(t,e.plugins));return A.aria=Object.assign({},It.aria,A.aria),A.aria={expanded:A.aria.expanded==="auto"?e.interactive:A.aria.expanded,content:A.aria.content==="auto"?e.interactive?null:"describedby":A.aria.content},A}function hm(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var A=Object.keys(t);A.forEach(function(n){var r=d1(It,Object.keys(um)),i=!f1(r,n);i&&(i=e.filter(function(s){return s.name===n}).length===0),Dn(i,["`"+n+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
101
101
 
102
102
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
103
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var L1=function(){return"innerHTML"};function Uu(t,e){t[L1()]=e}function pm(t){var e=Vs();return t===!0?e.className=Zg:(e.className=jg,Ps(t)?e.appendChild(t):Uu(e,t)),e}function gm(t,e){Ps(e.content)?(Uu(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Uu(t,e.content):t.textContent=e.content)}function vu(t){var e=t.firstElementChild,A=wa(e.children);return{box:e,content:A.find(function(n){return n.classList.contains(qg)}),arrow:A.find(function(n){return n.classList.contains(Zg)||n.classList.contains(jg)}),backdrop:A.find(function(n){return n.classList.contains(c1)})}}function mm(t){var e=Vs(),A=Vs();A.className=l1,A.setAttribute("data-state","hidden"),A.setAttribute("tabindex","-1");var n=Vs();n.className=qg,n.setAttribute("data-state","hidden"),gm(n,t.props),e.appendChild(A),A.appendChild(n),r(t.props,t.props);function r(i,s){var a=vu(e),c=a.box,u=a.content,f=a.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&gm(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(c.removeChild(f),c.appendChild(pm(s.arrow))):c.appendChild(pm(s.arrow)):f&&c.removeChild(f)}return{popper:e,onUpdate:r}}mm.$$tippy=!0;var H1=1,Ca=[],Iu=[];function k1(t,e){var A=dm(t,Object.assign({},It,fm(rm(e)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,p,g,B=[],w=tm(z,A.interactiveDebounce),Q,b=H1++,v=null,_=h1(A.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:b,reference:t,popper:Vs(),popperInstance:v,props:A,state:S,plugins:_,clearDelayTimeouts:Ve,setProps:R,setContent:X,show:Se,hide:rA,hideWithInteractivity:Ct,enable:tA,disable:Ne,unmount:Tn,destroy:Jt};if(!A.render)return process.env.NODE_ENV!=="production"&&bu(!0,"render() function has not been supplied."),E;var L=A.render(E),U=L.popper,N=L.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+E.id,E.popper=U,t._tippy=E,U._tippy=E;var V=_.map(function(K){return K.fn(E)}),D=t.hasAttribute("aria-expanded");return _t(),Xe(),He(),re("onCreate",[E]),A.showOnCreate&&$(),U.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),U.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&Le().addEventListener("mousemove",w)}),E;function se(){var K=E.props.touch;return Array.isArray(K)?K:[K,0]}function Be(){return se()[0]==="hold"}function ne(){var K;return!!((K=E.props.render)!=null&&K.$$tippy)}function ce(){return Q||t}function Le(){var K=ce().parentNode;return K?C1(K):document}function oA(){return vu(U)}function Re(K){return E.state.isMounted&&!E.state.isVisible||Fn.isTouch||f&&f.type==="focus"?0:yu(E.props.delay,K?0:1,It.delay)}function He(K){K===void 0&&(K=!1),U.style.pointerEvents=E.props.interactive&&!K?"":"none",U.style.zIndex=""+E.props.zIndex}function re(K,ie,ue){if(ue===void 0&&(ue=!0),V.forEach(function(De){De[K]&&De[K].apply(De,ie)}),ue){var Pe;(Pe=E.props)[K].apply(Pe,ie)}}function me(){var K=E.props.aria;if(K.content){var ie="aria-"+K.content,ue=U.id,Pe=Ri(E.props.triggerTarget||t);Pe.forEach(function(De){var GA=De.getAttribute(ie);if(E.state.isVisible)De.setAttribute(ie,GA?GA+" "+ue:ue);else{var yt=GA&&GA.replace(ue,"").trim();yt?De.setAttribute(ie,yt):De.removeAttribute(ie)}})}}function Xe(){if(!(D||!E.props.aria.expanded)){var K=Ri(E.props.triggerTarget||t);K.forEach(function(ie){E.props.interactive?ie.setAttribute("aria-expanded",E.state.isVisible&&ie===ce()?"true":"false"):ie.removeAttribute("aria-expanded")})}}function ke(){Le().removeEventListener("mousemove",w),Ca=Ca.filter(function(K){return K!==w})}function Ge(K){if(!(Fn.isTouch&&(c||K.type==="mousedown"))){var ie=K.composedPath&&K.composedPath()[0]||K.target;if(!(E.props.interactive&&sm(U,ie))){if(Ri(E.props.triggerTarget||t).some(function(ue){return sm(ue,ie)})){if(Fn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else re("onClickOutside",[E,K]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),a=!0,setTimeout(function(){a=!1}),E.state.isMounted||ze())}}}function Ke(){c=!0}function eA(){c=!1}function AA(){var K=Le();K.addEventListener("mousedown",Ge,!0),K.addEventListener("touchend",Ge,ri),K.addEventListener("touchstart",eA,ri),K.addEventListener("touchmove",Ke,ri)}function ze(){var K=Le();K.removeEventListener("mousedown",Ge,!0),K.removeEventListener("touchend",Ge,ri),K.removeEventListener("touchstart",eA,ri),K.removeEventListener("touchmove",Ke,ri)}function pA(K,ie){et(K,function(){!E.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&ie()})}function ct(K,ie){et(K,ie)}function et(K,ie){var ue=oA().box;function Pe(De){De.target===ue&&(Fu(ue,"remove",Pe),ie())}if(K===0)return ie();Fu(ue,"remove",p),Fu(ue,"add",Pe),p=Pe}function ut(K,ie,ue){ue===void 0&&(ue=!1);var Pe=Ri(E.props.triggerTarget||t);Pe.forEach(function(De){De.addEventListener(K,ie,ue),B.push({node:De,eventType:K,handler:ie,options:ue})})}function _t(){Be()&&(ut("touchstart",un,{passive:!0}),ut("touchend",Ue,{passive:!0})),d1(E.props.trigger).forEach(function(K){if(K!=="manual")switch(ut(K,un),K){case"mouseenter":ut("mouseleave",Ue);break;case"focus":ut(U1?"focusout":"blur",Sn);break;case"focusin":ut("focusout",Sn);break}})}function xt(){B.forEach(function(K){var ie=K.node,ue=K.eventType,Pe=K.handler,De=K.options;ie.removeEventListener(ue,Pe,De)}),B=[]}function un(K){var ie,ue=!1;if(!(!E.state.isEnabled||vA(K)||a)){var Pe=((ie=f)==null?void 0:ie.type)==="focus";f=K,Q=K.currentTarget,Xe(),!E.state.isVisible&&m1(K)&&Ca.forEach(function(De){return De(K)}),K.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||s)&&E.props.hideOnClick!==!1&&E.state.isVisible?ue=!0:$(K),K.type==="click"&&(s=!ue),ue&&!Pe&&oe(K)}}function z(K){var ie=K.target,ue=ce().contains(ie)||U.contains(ie);if(!(K.type==="mousemove"&&ue)){var Pe=x().concat(U).map(function(De){var GA,yt=De._tippy,Yn=(GA=yt.popperInstance)==null?void 0:GA.state;return Yn?{popperRect:De.getBoundingClientRect(),popperState:Yn,props:A}:null}).filter(Boolean);y1(Pe,K)&&(ke(),oe(K))}}function Ue(K){var ie=vA(K)||E.props.trigger.indexOf("click")>=0&&s;if(!ie){if(E.props.interactive){E.hideWithInteractivity(K);return}oe(K)}}function Sn(K){E.props.trigger.indexOf("focusin")<0&&K.target!==ce()||E.props.interactive&&K.relatedTarget&&U.contains(K.relatedTarget)||oe(K)}function vA(K){return Fn.isTouch?Be()!==K.type.indexOf("touch")>=0:!1}function fn(){xr();var K=E.props,ie=K.popperOptions,ue=K.placement,Pe=K.offset,De=K.getReferenceClientRect,GA=K.moveTransition,yt=ne()?vu(U).arrow:null,Yn=De?{getBoundingClientRect:De,contextElement:De.contextElement||ce()}:t,Bo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ss){var Or=ss.state;if(ne()){var vl=oA(),Co=vl.box;["placement","reference-hidden","escaped"].forEach(function(as){as==="placement"?Co.setAttribute("data-placement",Or.placement):Or.attributes.popper["data-popper-"+as]?Co.setAttribute("data-"+as,""):Co.removeAttribute("data-"+as)}),Or.attributes.popper={}}}},zn=[{name:"offset",options:{offset:Pe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!GA}},Bo];ne()&&yt&&zn.push({name:"arrow",options:{element:yt,padding:3}}),zn.push.apply(zn,(ie==null?void 0:ie.modifiers)||[]),E.popperInstance=uh.createPopper(Yn,U,Object.assign({},ie,{placement:ue,onFirstUpdate:g,modifiers:zn}))}function xr(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function T(){var K=E.props.appendTo,ie,ue=ce();E.props.interactive&&K===em||K==="parent"?ie=ue.parentNode:ie=Am(K,[ue]),ie.contains(U)||ie.appendChild(U),E.state.isMounted=!0,fn(),process.env.NODE_ENV!=="production"&&Dn(E.props.interactive&&K===It.appendTo&&ue.nextElementSibling!==U,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
103
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var H1=function(){return"innerHTML"};function Uu(t,e){t[H1()]=e}function pm(t){var e=Vs();return t===!0?e.className=Zg:(e.className=jg,Ps(t)?e.appendChild(t):Uu(e,t)),e}function gm(t,e){Ps(e.content)?(Uu(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Uu(t,e.content):t.textContent=e.content)}function vu(t){var e=t.firstElementChild,A=wa(e.children);return{box:e,content:A.find(function(n){return n.classList.contains(qg)}),arrow:A.find(function(n){return n.classList.contains(Zg)||n.classList.contains(jg)}),backdrop:A.find(function(n){return n.classList.contains(u1)})}}function mm(t){var e=Vs(),A=Vs();A.className=c1,A.setAttribute("data-state","hidden"),A.setAttribute("tabindex","-1");var n=Vs();n.className=qg,n.setAttribute("data-state","hidden"),gm(n,t.props),e.appendChild(A),A.appendChild(n),r(t.props,t.props);function r(i,s){var a=vu(e),c=a.box,u=a.content,f=a.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&gm(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(c.removeChild(f),c.appendChild(pm(s.arrow))):c.appendChild(pm(s.arrow)):f&&c.removeChild(f)}return{popper:e,onUpdate:r}}mm.$$tippy=!0;var k1=1,Ca=[],Iu=[];function N1(t,e){var A=dm(t,Object.assign({},It,fm(rm(e)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,p,g,B=[],w=tm(z,A.interactiveDebounce),Q,b=k1++,v=null,_=p1(A.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:b,reference:t,popper:Vs(),popperInstance:v,props:A,state:S,plugins:_,clearDelayTimeouts:Ve,setProps:R,setContent:X,show:Se,hide:rA,hideWithInteractivity:Ct,enable:tA,disable:Ne,unmount:Tn,destroy:Jt};if(!A.render)return process.env.NODE_ENV!=="production"&&bu(!0,"render() function has not been supplied."),E;var L=A.render(E),U=L.popper,N=L.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+E.id,E.popper=U,t._tippy=E,U._tippy=E;var V=_.map(function(K){return K.fn(E)}),D=t.hasAttribute("aria-expanded");return _t(),Xe(),He(),re("onCreate",[E]),A.showOnCreate&&$(),U.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),U.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&Le().addEventListener("mousemove",w)}),E;function se(){var K=E.props.touch;return Array.isArray(K)?K:[K,0]}function Be(){return se()[0]==="hold"}function ne(){var K;return!!((K=E.props.render)!=null&&K.$$tippy)}function ce(){return Q||t}function Le(){var K=ce().parentNode;return K?y1(K):document}function oA(){return vu(U)}function Re(K){return E.state.isMounted&&!E.state.isVisible||Fn.isTouch||f&&f.type==="focus"?0:yu(E.props.delay,K?0:1,It.delay)}function He(K){K===void 0&&(K=!1),U.style.pointerEvents=E.props.interactive&&!K?"":"none",U.style.zIndex=""+E.props.zIndex}function re(K,ie,ue){if(ue===void 0&&(ue=!0),V.forEach(function(De){De[K]&&De[K].apply(De,ie)}),ue){var Pe;(Pe=E.props)[K].apply(Pe,ie)}}function me(){var K=E.props.aria;if(K.content){var ie="aria-"+K.content,ue=U.id,Pe=Ri(E.props.triggerTarget||t);Pe.forEach(function(De){var GA=De.getAttribute(ie);if(E.state.isVisible)De.setAttribute(ie,GA?GA+" "+ue:ue);else{var yt=GA&&GA.replace(ue,"").trim();yt?De.setAttribute(ie,yt):De.removeAttribute(ie)}})}}function Xe(){if(!(D||!E.props.aria.expanded)){var K=Ri(E.props.triggerTarget||t);K.forEach(function(ie){E.props.interactive?ie.setAttribute("aria-expanded",E.state.isVisible&&ie===ce()?"true":"false"):ie.removeAttribute("aria-expanded")})}}function ke(){Le().removeEventListener("mousemove",w),Ca=Ca.filter(function(K){return K!==w})}function Ge(K){if(!(Fn.isTouch&&(c||K.type==="mousedown"))){var ie=K.composedPath&&K.composedPath()[0]||K.target;if(!(E.props.interactive&&sm(U,ie))){if(Ri(E.props.triggerTarget||t).some(function(ue){return sm(ue,ie)})){if(Fn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else re("onClickOutside",[E,K]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),a=!0,setTimeout(function(){a=!1}),E.state.isMounted||ze())}}}function Ke(){c=!0}function eA(){c=!1}function AA(){var K=Le();K.addEventListener("mousedown",Ge,!0),K.addEventListener("touchend",Ge,ri),K.addEventListener("touchstart",eA,ri),K.addEventListener("touchmove",Ke,ri)}function ze(){var K=Le();K.removeEventListener("mousedown",Ge,!0),K.removeEventListener("touchend",Ge,ri),K.removeEventListener("touchstart",eA,ri),K.removeEventListener("touchmove",Ke,ri)}function pA(K,ie){et(K,function(){!E.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&ie()})}function ct(K,ie){et(K,ie)}function et(K,ie){var ue=oA().box;function Pe(De){De.target===ue&&(Fu(ue,"remove",Pe),ie())}if(K===0)return ie();Fu(ue,"remove",p),Fu(ue,"add",Pe),p=Pe}function ut(K,ie,ue){ue===void 0&&(ue=!1);var Pe=Ri(E.props.triggerTarget||t);Pe.forEach(function(De){De.addEventListener(K,ie,ue),B.push({node:De,eventType:K,handler:ie,options:ue})})}function _t(){Be()&&(ut("touchstart",un,{passive:!0}),ut("touchend",Ue,{passive:!0})),h1(E.props.trigger).forEach(function(K){if(K!=="manual")switch(ut(K,un),K){case"mouseenter":ut("mouseleave",Ue);break;case"focus":ut(v1?"focusout":"blur",Sn);break;case"focusin":ut("focusout",Sn);break}})}function xt(){B.forEach(function(K){var ie=K.node,ue=K.eventType,Pe=K.handler,De=K.options;ie.removeEventListener(ue,Pe,De)}),B=[]}function un(K){var ie,ue=!1;if(!(!E.state.isEnabled||vA(K)||a)){var Pe=((ie=f)==null?void 0:ie.type)==="focus";f=K,Q=K.currentTarget,Xe(),!E.state.isVisible&&B1(K)&&Ca.forEach(function(De){return De(K)}),K.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||s)&&E.props.hideOnClick!==!1&&E.state.isVisible?ue=!0:$(K),K.type==="click"&&(s=!ue),ue&&!Pe&&oe(K)}}function z(K){var ie=K.target,ue=ce().contains(ie)||U.contains(ie);if(!(K.type==="mousemove"&&ue)){var Pe=x().concat(U).map(function(De){var GA,yt=De._tippy,Yn=(GA=yt.popperInstance)==null?void 0:GA.state;return Yn?{popperRect:De.getBoundingClientRect(),popperState:Yn,props:A}:null}).filter(Boolean);E1(Pe,K)&&(ke(),oe(K))}}function Ue(K){var ie=vA(K)||E.props.trigger.indexOf("click")>=0&&s;if(!ie){if(E.props.interactive){E.hideWithInteractivity(K);return}oe(K)}}function Sn(K){E.props.trigger.indexOf("focusin")<0&&K.target!==ce()||E.props.interactive&&K.relatedTarget&&U.contains(K.relatedTarget)||oe(K)}function vA(K){return Fn.isTouch?Be()!==K.type.indexOf("touch")>=0:!1}function fn(){xr();var K=E.props,ie=K.popperOptions,ue=K.placement,Pe=K.offset,De=K.getReferenceClientRect,GA=K.moveTransition,yt=ne()?vu(U).arrow:null,Yn=De?{getBoundingClientRect:De,contextElement:De.contextElement||ce()}:t,Bo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ss){var Or=ss.state;if(ne()){var vl=oA(),Co=vl.box;["placement","reference-hidden","escaped"].forEach(function(as){as==="placement"?Co.setAttribute("data-placement",Or.placement):Or.attributes.popper["data-popper-"+as]?Co.setAttribute("data-"+as,""):Co.removeAttribute("data-"+as)}),Or.attributes.popper={}}}},zn=[{name:"offset",options:{offset:Pe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!GA}},Bo];ne()&&yt&&zn.push({name:"arrow",options:{element:yt,padding:3}}),zn.push.apply(zn,(ie==null?void 0:ie.modifiers)||[]),E.popperInstance=uh.createPopper(Yn,U,Object.assign({},ie,{placement:ue,onFirstUpdate:g,modifiers:zn}))}function xr(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function T(){var K=E.props.appendTo,ie,ue=ce();E.props.interactive&&K===em||K==="parent"?ie=ue.parentNode:ie=Am(K,[ue]),ie.contains(U)||ie.appendChild(U),E.state.isMounted=!0,fn(),process.env.NODE_ENV!=="production"&&Dn(E.props.interactive&&K===It.appendTo&&ue.nextElementSibling!==U,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
104
104
 
105
105
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
106
106
 
107
107
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
108
108
 
109
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function x(){return wa(U.querySelectorAll("[data-tippy-root]"))}function $(K){E.clearDelayTimeouts(),K&&re("onTrigger",[E,K]),AA();var ie=Re(!0),ue=se(),Pe=ue[0],De=ue[1];Fn.isTouch&&Pe==="hold"&&De&&(ie=De),ie?n=setTimeout(function(){E.show()},ie):E.show()}function oe(K){if(E.clearDelayTimeouts(),re("onUntrigger",[E,K]),!E.state.isVisible){ze();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(K.type)>=0&&s)){var ie=Re(!1);ie?r=setTimeout(function(){E.state.isVisible&&E.hide()},ie):i=requestAnimationFrame(function(){E.hide()})}}function tA(){E.state.isEnabled=!0}function Ne(){E.hide(),E.state.isEnabled=!1}function Ve(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function R(K){if(process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("setProps")),!E.state.isDestroyed){re("onBeforeUpdate",[E,K]),xt();var ie=E.props,ue=dm(t,Object.assign({},ie,rm(K),{ignoreAttributes:!0}));E.props=ue,_t(),ie.interactiveDebounce!==ue.interactiveDebounce&&(ke(),w=tm(z,ue.interactiveDebounce)),ie.triggerTarget&&!ue.triggerTarget?Ri(ie.triggerTarget).forEach(function(Pe){Pe.removeAttribute("aria-expanded")}):ue.triggerTarget&&t.removeAttribute("aria-expanded"),Xe(),He(),N&&N(ie,ue),E.popperInstance&&(fn(),x().forEach(function(Pe){requestAnimationFrame(Pe._tippy.popperInstance.forceUpdate)})),re("onAfterUpdate",[E,K])}}function X(K){E.setProps({content:K})}function Se(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("show"));var K=E.state.isVisible,ie=E.state.isDestroyed,ue=!E.state.isEnabled,Pe=Fn.isTouch&&!E.props.touch,De=yu(E.props.duration,0,It.duration);if(!(K||ie||ue||Pe)&&!ce().hasAttribute("disabled")&&(re("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,ne()&&(U.style.visibility="visible"),He(),AA(),E.state.isMounted||(U.style.transition="none"),ne()){var GA=oA(),yt=GA.box,Yn=GA.content;Qu([yt,Yn],0)}g=function(){var zn;if(!(!E.state.isVisible||u)){if(u=!0,U.offsetHeight,U.style.transition=E.props.moveTransition,ne()&&E.props.animation){var wo=oA(),ss=wo.box,Or=wo.content;Qu([ss,Or],De),im([ss,Or],"visible")}me(),Xe(),nm(Iu,E),(zn=E.popperInstance)==null||zn.forceUpdate(),re("onMount",[E]),E.props.animation&&ne()&&ct(De,function(){E.state.isShown=!0,re("onShown",[E])})}},T()}}function rA(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("hide"));var K=!E.state.isVisible,ie=E.state.isDestroyed,ue=!E.state.isEnabled,Pe=yu(E.props.duration,1,It.duration);if(!(K||ie||ue)&&(re("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,u=!1,s=!1,ne()&&(U.style.visibility="hidden"),ke(),ze(),He(!0),ne()){var De=oA(),GA=De.box,yt=De.content;E.props.animation&&(Qu([GA,yt],Pe),im([GA,yt],"hidden"))}me(),Xe(),E.props.animation?ne()&&pA(Pe,E.unmount):E.unmount()}}function Ct(K){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("hideWithInteractivity")),Le().addEventListener("mousemove",w),nm(Ca,w),w(K)}function Tn(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("unmount")),E.state.isVisible&&E.hide(),E.state.isMounted&&(xr(),x().forEach(function(K){K._tippy.unmount()}),U.parentNode&&U.parentNode.removeChild(U),Iu=Iu.filter(function(K){return K!==E}),E.state.isMounted=!1,re("onHidden",[E]))}function Jt(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),xt(),delete t._tippy,E.state.isDestroyed=!0,re("onDestroy",[E]))}}function Vi(t,e){e===void 0&&(e={});var A=It.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(S1(t),hm(e,A)),F1();var n=Object.assign({},e,{plugins:A}),r=w1(t);if(process.env.NODE_ENV!=="production"){var i=Ps(n.content),s=r.length>1;Dn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
109
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function x(){return wa(U.querySelectorAll("[data-tippy-root]"))}function $(K){E.clearDelayTimeouts(),K&&re("onTrigger",[E,K]),AA();var ie=Re(!0),ue=se(),Pe=ue[0],De=ue[1];Fn.isTouch&&Pe==="hold"&&De&&(ie=De),ie?n=setTimeout(function(){E.show()},ie):E.show()}function oe(K){if(E.clearDelayTimeouts(),re("onUntrigger",[E,K]),!E.state.isVisible){ze();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(K.type)>=0&&s)){var ie=Re(!1);ie?r=setTimeout(function(){E.state.isVisible&&E.hide()},ie):i=requestAnimationFrame(function(){E.hide()})}}function tA(){E.state.isEnabled=!0}function Ne(){E.hide(),E.state.isEnabled=!1}function Ve(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function R(K){if(process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("setProps")),!E.state.isDestroyed){re("onBeforeUpdate",[E,K]),xt();var ie=E.props,ue=dm(t,Object.assign({},ie,rm(K),{ignoreAttributes:!0}));E.props=ue,_t(),ie.interactiveDebounce!==ue.interactiveDebounce&&(ke(),w=tm(z,ue.interactiveDebounce)),ie.triggerTarget&&!ue.triggerTarget?Ri(ie.triggerTarget).forEach(function(Pe){Pe.removeAttribute("aria-expanded")}):ue.triggerTarget&&t.removeAttribute("aria-expanded"),Xe(),He(),N&&N(ie,ue),E.popperInstance&&(fn(),x().forEach(function(Pe){requestAnimationFrame(Pe._tippy.popperInstance.forceUpdate)})),re("onAfterUpdate",[E,K])}}function X(K){E.setProps({content:K})}function Se(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("show"));var K=E.state.isVisible,ie=E.state.isDestroyed,ue=!E.state.isEnabled,Pe=Fn.isTouch&&!E.props.touch,De=yu(E.props.duration,0,It.duration);if(!(K||ie||ue||Pe)&&!ce().hasAttribute("disabled")&&(re("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,ne()&&(U.style.visibility="visible"),He(),AA(),E.state.isMounted||(U.style.transition="none"),ne()){var GA=oA(),yt=GA.box,Yn=GA.content;Qu([yt,Yn],0)}g=function(){var zn;if(!(!E.state.isVisible||u)){if(u=!0,U.offsetHeight,U.style.transition=E.props.moveTransition,ne()&&E.props.animation){var wo=oA(),ss=wo.box,Or=wo.content;Qu([ss,Or],De),im([ss,Or],"visible")}me(),Xe(),nm(Iu,E),(zn=E.popperInstance)==null||zn.forceUpdate(),re("onMount",[E]),E.props.animation&&ne()&&ct(De,function(){E.state.isShown=!0,re("onShown",[E])})}},T()}}function rA(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("hide"));var K=!E.state.isVisible,ie=E.state.isDestroyed,ue=!E.state.isEnabled,Pe=yu(E.props.duration,1,It.duration);if(!(K||ie||ue)&&(re("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,u=!1,s=!1,ne()&&(U.style.visibility="hidden"),ke(),ze(),He(!0),ne()){var De=oA(),GA=De.box,yt=De.content;E.props.animation&&(Qu([GA,yt],Pe),im([GA,yt],"hidden"))}me(),Xe(),E.props.animation?ne()&&pA(Pe,E.unmount):E.unmount()}}function Ct(K){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("hideWithInteractivity")),Le().addEventListener("mousemove",w),nm(Ca,w),w(K)}function Tn(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("unmount")),E.state.isVisible&&E.hide(),E.state.isMounted&&(xr(),x().forEach(function(K){K._tippy.unmount()}),U.parentNode&&U.parentNode.removeChild(U),Iu=Iu.filter(function(K){return K!==E}),E.state.isMounted=!1,re("onHidden",[E]))}function Jt(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,Ki("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),xt(),delete t._tippy,E.state.isDestroyed=!0,re("onDestroy",[E]))}}function Vi(t,e){e===void 0&&(e={});var A=It.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(T1(t),hm(e,A)),b1();var n=Object.assign({},e,{plugins:A}),r=C1(t);if(process.env.NODE_ENV!=="production"){var i=Ps(n.content),s=r.length>1;Dn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
110
110
 
111
111
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
112
112
 
113
113
  `,`1) content: element.innerHTML
114
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&k1(u,n);return f&&c.push(f),c},[]);return Ps(t)?a[0]:a}Vi.defaultProps=It,Vi.setDefaultProps=x1,Vi.currentInput=Fn,Object.assign({},uh.applyStyles,{effect:function(e){var A=e.state,n={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(A.elements.popper.style,n.popper),A.styles=n,A.elements.arrow&&Object.assign(A.elements.arrow.style,n.arrow)}}),Vi.setDefaultProps({render:mm});class N1{constructor({editor:e,element:A,view:n,tippyOptions:r={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:u,to:f})=>{const{doc:p,selection:g}=c,{empty:B}=g,w=!p.textBetween(u,f).length&&uu(c.selection),Q=this.element.contains(document.activeElement);return!(!(a.hasFocus()||Q)||B||w||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const u=!(c!=null&&c.selection.eq(a.state.selection)),f=!(c!=null&&c.doc.eq(a.state.doc));!u&&!f||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,u,f,c)},this.updateDelay))},this.updateHandler=(a,c,u,f)=>{var p,g,B;const{state:w,composing:Q}=a,{selection:b}=w;if(Q||!c&&!u)return;this.createTooltip();const{ranges:_}=b,S=Math.min(..._.map(U=>U.$from.pos)),E=Math.max(..._.map(U=>U.$to.pos));if(!((p=this.shouldShow)===null||p===void 0?void 0:p.call(this,{editor:this.editor,view:a,state:w,oldState:f,from:S,to:E}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((B=this.tippyOptions)===null||B===void 0?void 0:B.getReferenceClientRect)||(()=>{if(Mv(w.selection)){let U=a.nodeDOM(S);const N=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(N&&(U=N.firstChild),U)return U.getBoundingClientRect()}return Mg(a,S,E)})}),this.show()},this.editor=e,this.element=A,this.view=n,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=Vi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){const{state:n}=e,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,A);return}const i=!(A!=null&&A.selection.eq(e.state.selection)),s=!(A!=null&&A.doc.eq(e.state.doc));this.updateHandler(e,i,s,A)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Bm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:e=>new N1({view:e,...t})});YA.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Bm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class D1{constructor({editor:e,element:A,view:n,tippyOptions:r={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:c}=a,{$anchor:u,empty:f}=c,p=u.depth===1,g=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!f||!p||!g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=A,this.view=n,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=Vi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){var n,r,i;const{state:s}=e,{doc:a,selection:c}=s,{from:u,to:f}=c;if(A&&A.doc.eq(a)&&A.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:e,state:s,oldState:A}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Mg(e,u,f))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const wm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:e=>new D1({view:e,...t})});YA.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[wm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),h.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(Bm({updateDelay:n,editor:r,element:A.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}});function Cm(t){return h.customRef((e,A)=>({get(){return e(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{A()})})}}))}class M1 extends nI{constructor(e={}){return super(e),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=Cm(this.view.state),this.reactiveExtensionStorage=Cm(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),h.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,A){super.registerPlugin(e,A),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const R1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=h.ref(),A=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&e.value&&h.nextTick(()=>{if(!e.value||!n.options.element.firstChild)return;const r=h.unref(e.value);e.value.append(...n.options.element.childNodes),n.contentComponent=A.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),h.onBeforeUnmount(()=>{const n=t.editor;if(!n||(n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;const r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const A=h.h(h.Teleport,{to:e.teleportElement,key:e.id},h.h(e.component,{ref:e.id,...e.props}));t.push(A)}),h.h("div",{ref:e=>{this.rootEl=e}},...t)}});h.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(wm({pluginKey:n,editor:r,element:A.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}}),h.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return h.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),h.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const K1=(t={})=>{const e=h.shallowRef();return h.onMounted(()=>{e.value=new M1(t)}),h.onBeforeUnmount(()=>{var A;(A=e.value)===null||A===void 0||A.destroy()}),e},V1={class:"rte-editor"},P1={key:0,class:"rte-editor__controls"},G1=["disabled"],W1=["disabled"],$1=["disabled"],J1=["disabled"],X1=["disabled"],Y1=["disabled"],z1=h.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:"<p>I’m running Tiptap with Vue.js. 🎉</p>"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=K1({content:A.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[a1,aI.configure({types:["heading","paragraph"]}),oI]});return h.watch(()=>A.modelValue,(i,s)=>{if(r.value){if(r.value.getHTML()===i)return;r.value.commands.setContent(i,!1)}}),(i,s)=>{const a=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",V1,[h.unref(r)?(h.openBlock(),h.createElementBlock("div",P1,[h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("bold")}]),onClick:s[0]||(s[0]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBold().run()}),disabled:!h.unref(r).can().chain().focus().toggleBold().run()},[h.createVNode(a,{symbol:"bold"})],10,G1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("italic")}]),onClick:s[1]||(s[1]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleItalic().run()}),disabled:!h.unref(r).can().chain().focus().toggleItalic().run()},[h.createVNode(a,{symbol:"italic"})],10,W1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("strike")}]),onClick:s[2]||(s[2]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleStrike().run()}),disabled:!h.unref(r).can().chain().focus().toggleStrike().run()}," strikethrough ",10,$1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("code")}]),onClick:s[3]||(s[3]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleCode().run()}),disabled:!h.unref(r).can().chain().focus().toggleCode().run()},[h.createVNode(a,{symbol:"code"})],10,J1),h.createElementVNode("button",{class:"btn btn-light",onClick:s[4]||(s[4]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().unsetAllMarks().run()})}," clear marks "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[5]||(s[5]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().clearNodes().run()})}," clear nodes "),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("paragraph")}]),onClick:s[6]||(s[6]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setParagraph().run()})}," paragraph ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:1})}]),onClick:s[7]||(s[7]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:2})}]),onClick:s[8]||(s[8]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:3})}]),onClick:s[9]||(s[9]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:4})}]),onClick:s[10]||(s[10]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:5})}]),onClick:s[11]||(s[11]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:6})}]),onClick:s[12]||(s[12]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("bulletList")}]),onClick:s[13]||(s[13]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBulletList().run()})},[h.createVNode(a,{id:"list"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("orderedList")}]),onClick:s[14]||(s[14]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleOrderedList().run()})}," ordered list ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("codeBlock")}]),onClick:s[15]||(s[15]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleCodeBlock().run()})}," code block ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("blockquote")}]),onClick:s[16]||(s[16]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBlockquote().run()})}," blockquote ",2),h.createElementVNode("button",{class:"btn btn-light",onClick:s[17]||(s[17]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setHorizontalRule().run()})}," horizontal rule "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[18]||(s[18]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setHardBreak().run()})}," hard break "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[19]||(s[19]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().undo().run()}),disabled:!h.unref(r).can().chain().focus().undo().run()}," undo ",8,X1),h.createElementVNode("button",{class:"btn btn-light",onClick:s[20]||(s[20]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().redo().run()}),disabled:!h.unref(r).can().chain().focus().redo().run()}," redo ",8,Y1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("highlight")}]),onClick:s[21]||(s[21]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHighlight().run()})}," highlight ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"left"})}]),onClick:s[22]||(s[22]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("left").run()})},[h.createVNode(a,{symbol:"align-left"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"center"})}]),onClick:s[23]||(s[23]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("center").run()})},[h.createVNode(a,{symbol:"align-center"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"right"})}]),onClick:s[24]||(s[24]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("right").run()})},[h.createVNode(a,{symbol:"align-right"})],2)])):h.createCommentVNode("",!0),h.createVNode(h.unref(R1),{class:"rte-editor__content",editor:h.unref(r)},null,8,["editor"])])}}}),B3="",q1={class:"input-color"},Z1={class:"base-input__color-swatch"},j1=["name","id","disabled","read-only","required","aria-label"],eS=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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 A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",q1,[h.createVNode(a,{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=c=>r.value=c),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":h.withCtx(c=>[h.createElementVNode("span",Z1,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[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,j1),[[h.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),w3="",AS={class:"color-palette"},tS=["for"],nS=h.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",AS,[h.createVNode(fh,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[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":h.withCtx(a=>[h.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:h.normalizeStyle({backgroundColor:a.option})},null,12,tS)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),C3="";/*!
114
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&N1(u,n);return f&&c.push(f),c},[]);return Ps(t)?a[0]:a}Vi.defaultProps=It,Vi.setDefaultProps=O1,Vi.currentInput=Fn,Object.assign({},uh.applyStyles,{effect:function(e){var A=e.state,n={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(A.elements.popper.style,n.popper),A.styles=n,A.elements.arrow&&Object.assign(A.elements.arrow.style,n.arrow)}}),Vi.setDefaultProps({render:mm});class D1{constructor({editor:e,element:A,view:n,tippyOptions:r={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:u,to:f})=>{const{doc:p,selection:g}=c,{empty:B}=g,w=!p.textBetween(u,f).length&&uu(c.selection),Q=this.element.contains(document.activeElement);return!(!(a.hasFocus()||Q)||B||w||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const u=!(c!=null&&c.selection.eq(a.state.selection)),f=!(c!=null&&c.doc.eq(a.state.doc));!u&&!f||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,u,f,c)},this.updateDelay))},this.updateHandler=(a,c,u,f)=>{var p,g,B;const{state:w,composing:Q}=a,{selection:b}=w;if(Q||!c&&!u)return;this.createTooltip();const{ranges:_}=b,S=Math.min(..._.map(U=>U.$from.pos)),E=Math.max(..._.map(U=>U.$to.pos));if(!((p=this.shouldShow)===null||p===void 0?void 0:p.call(this,{editor:this.editor,view:a,state:w,oldState:f,from:S,to:E}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((B=this.tippyOptions)===null||B===void 0?void 0:B.getReferenceClientRect)||(()=>{if(Rv(w.selection)){let U=a.nodeDOM(S);const N=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(N&&(U=N.firstChild),U)return U.getBoundingClientRect()}return Mg(a,S,E)})}),this.show()},this.editor=e,this.element=A,this.view=n,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=Vi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){const{state:n}=e,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,A);return}const i=!(A!=null&&A.selection.eq(e.state.selection)),s=!(A!=null&&A.doc.eq(e.state.doc));this.updateHandler(e,i,s,A)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Bm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:e=>new D1({view:e,...t})});YA.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Bm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class M1{constructor({editor:e,element:A,view:n,tippyOptions:r={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:c}=a,{$anchor:u,empty:f}=c,p=u.depth===1,g=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!f||!p||!g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=A,this.view=n,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,A=!!e.parentElement;this.tippy||!A||(this.tippy=Vi(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,A){var n,r,i;const{state:s}=e,{doc:a,selection:c}=s,{from:u,to:f}=c;if(A&&A.doc.eq(a)&&A.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:e,state:s,oldState:A}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Mg(e,u,f))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,A;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(A=this.tippy)===null||A===void 0||A.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const wm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:e=>new M1({view:e,...t})});YA.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[wm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),h.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(Bm({updateDelay:n,editor:r,element:A.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}});function Cm(t){return h.customRef((e,A)=>({get(){return e(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{A()})})}}))}class R1 extends rI{constructor(e={}){return super(e),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=Cm(this.view.state),this.reactiveExtensionStorage=Cm(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),h.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,A){super.registerPlugin(e,A),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const K1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=h.ref(),A=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&e.value&&h.nextTick(()=>{if(!e.value||!n.options.element.firstChild)return;const r=h.unref(e.value);e.value.append(...n.options.element.childNodes),n.contentComponent=A.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),h.onBeforeUnmount(()=>{const n=t.editor;if(!n||(n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;const r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const A=h.h(h.Teleport,{to:e.teleportElement,key:e.id},h.h(e.component,{ref:e.id,...e.props}));t.push(A)}),h.h("div",{ref:e=>{this.rootEl=e}},...t)}});h.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const A=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(wm({pluginKey:n,editor:r,element:A.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:A},(n=e.default)===null||n===void 0?void 0:n.call(e))}}}),h.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return h.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),h.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const V1=(t={})=>{const e=h.shallowRef();return h.onMounted(()=>{e.value=new R1(t)}),h.onBeforeUnmount(()=>{var A;(A=e.value)===null||A===void 0||A.destroy()}),e},P1={class:"rte-editor"},G1={key:0,class:"rte-editor__controls"},W1=["disabled"],$1=["disabled"],J1=["disabled"],X1=["disabled"],Y1=["disabled"],z1=["disabled"],q1=h.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:"<p>I’m running Tiptap with Vue.js. 🎉</p>"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=V1({content:A.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[l1,lI.configure({types:["heading","paragraph"]}),aI]});return h.watch(()=>A.modelValue,(i,s)=>{if(r.value){if(r.value.getHTML()===i)return;r.value.commands.setContent(i,!1)}}),(i,s)=>{const a=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",P1,[h.unref(r)?(h.openBlock(),h.createElementBlock("div",G1,[h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("bold")}]),onClick:s[0]||(s[0]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBold().run()}),disabled:!h.unref(r).can().chain().focus().toggleBold().run()},[h.createVNode(a,{symbol:"bold"})],10,W1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("italic")}]),onClick:s[1]||(s[1]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleItalic().run()}),disabled:!h.unref(r).can().chain().focus().toggleItalic().run()},[h.createVNode(a,{symbol:"italic"})],10,$1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("strike")}]),onClick:s[2]||(s[2]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleStrike().run()}),disabled:!h.unref(r).can().chain().focus().toggleStrike().run()}," strikethrough ",10,J1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("code")}]),onClick:s[3]||(s[3]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleCode().run()}),disabled:!h.unref(r).can().chain().focus().toggleCode().run()},[h.createVNode(a,{symbol:"code"})],10,X1),h.createElementVNode("button",{class:"btn btn-light",onClick:s[4]||(s[4]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().unsetAllMarks().run()})}," clear marks "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[5]||(s[5]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().clearNodes().run()})}," clear nodes "),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("paragraph")}]),onClick:s[6]||(s[6]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setParagraph().run()})}," paragraph ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:1})}]),onClick:s[7]||(s[7]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:2})}]),onClick:s[8]||(s[8]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:3})}]),onClick:s[9]||(s[9]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:4})}]),onClick:s[10]||(s[10]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:5})}]),onClick:s[11]||(s[11]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("heading",{level:6})}]),onClick:s[12]||(s[12]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("bulletList")}]),onClick:s[13]||(s[13]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBulletList().run()})},[h.createVNode(a,{id:"list"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("orderedList")}]),onClick:s[14]||(s[14]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleOrderedList().run()})}," ordered list ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("codeBlock")}]),onClick:s[15]||(s[15]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleCodeBlock().run()})}," code block ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("blockquote")}]),onClick:s[16]||(s[16]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleBlockquote().run()})}," blockquote ",2),h.createElementVNode("button",{class:"btn btn-light",onClick:s[17]||(s[17]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setHorizontalRule().run()})}," horizontal rule "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[18]||(s[18]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setHardBreak().run()})}," hard break "),h.createElementVNode("button",{class:"btn btn-light",onClick:s[19]||(s[19]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().undo().run()}),disabled:!h.unref(r).can().chain().focus().undo().run()}," undo ",8,Y1),h.createElementVNode("button",{class:"btn btn-light",onClick:s[20]||(s[20]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().redo().run()}),disabled:!h.unref(r).can().chain().focus().redo().run()}," redo ",8,z1),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive("highlight")}]),onClick:s[21]||(s[21]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().toggleHighlight().run()})}," highlight ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"left"})}]),onClick:s[22]||(s[22]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("left").run()})},[h.createVNode(a,{symbol:"align-left"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"center"})}]),onClick:s[23]||(s[23]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("center").run()})},[h.createVNode(a,{symbol:"align-center"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(r).isActive({textAlign:"right"})}]),onClick:s[24]||(s[24]=c=>{var u;return(u=h.unref(r))==null?void 0:u.chain().focus().setTextAlign("right").run()})},[h.createVNode(a,{symbol:"align-right"})],2)])):h.createCommentVNode("",!0),h.createVNode(h.unref(K1),{class:"rte-editor__content",editor:h.unref(r)},null,8,["editor"])])}}}),w3="",Z1={class:"input-color"},j1={class:"base-input__color-swatch"},eS=["name","id","disabled","read-only","required","aria-label"],AS=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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 A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",Z1,[h.createVNode(a,{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=c=>r.value=c),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":h.withCtx(c=>[h.createElementVNode("span",j1,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[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,eS),[[h.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),C3="",tS={class:"color-palette"},nS=["for"],rS=h.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.computed({get(){return A.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",tS,[h.createVNode(fh,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[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":h.withCtx(a=>[h.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:h.normalizeStyle({backgroundColor:a.option})},null,12,nS)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),y3="";/*!
115
115
  * shared v9.13.1
116
116
  * (c) 2024 kazuya kawaguchi
117
117
  * Released under the MIT License.
118
- */const Mn=typeof window<"u";let St,ii;if(process.env.NODE_ENV!=="production"){const t=Mn&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(St=e=>{t.mark(e)},ii=(e,A,n)=>{t.measure(e,A,n),t.clearMarks(A),t.clearMarks(n)})}const rS=/\{([0-9a-zA-Z]+)\}/g;function Su(t,...e){return e.length===1&&We(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(rS,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Rn=(t,e=!1)=>e?Symbol.for(t):Symbol(t),iS=(t,e,A)=>sS({l:t,k:e,s:A}),sS=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),zA=t=>typeof t=="number"&&isFinite(t),oS=t=>Fm(t)==="[object Date]",Pi=t=>Fm(t)==="[object RegExp]",ya=t=>_e(t)&&Object.keys(t).length===0,qA=Object.assign;let ym;const Kn=()=>ym||(ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Em(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const aS=Object.prototype.hasOwnProperty;function Ea(t,e){return aS.call(t,e)}const bA=Array.isArray,lA=t=>typeof t=="function",te=t=>typeof t=="string",nA=t=>typeof t=="boolean",We=t=>t!==null&&typeof t=="object",lS=t=>We(t)&&lA(t.then)&&lA(t.catch),Qm=Object.prototype.toString,Fm=t=>Qm.call(t),_e=t=>{if(!We(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},cS=t=>t==null?"":bA(t)||_e(t)&&t.toString===Qm?JSON.stringify(t,null,2):String(t);function uS(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const bm=2;function fS(t,e=0,A=t.length){const n=t.split(/\r?\n/);let r=0;const i=[];for(let s=0;s<n.length;s++)if(r+=n[s].length+1,r>=e){for(let a=s-bm;a<=s+bm||A>r;a++){if(a<0||a>=n.length)continue;const c=a+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${n[a]}`);const u=n[a].length;if(a===s){const f=e-(r-u)+1,p=Math.max(1,A>r?u-f:A-e);i.push(" | "+" ".repeat(f)+"^".repeat(p))}else if(a>s){if(A>r){const f=Math.max(Math.min(A-r,u),1);i.push(" | "+"^".repeat(f))}r+=u+1}}break}return i.join(`
119
- `)}function Qa(t){let e=t;return()=>++e}function Vn(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Um={};function vm(t){Um[t]||(Um[t]=!0,Vn(t))}function dS(){const t=new Map;return{events:t,on(A,n){const r=t.get(A);r&&r.push(n)||t.set(A,[n])},off(A,n){const r=t.get(A);r&&r.splice(r.indexOf(n)>>>0,1)},emit(A,n){(t.get(A)||[]).slice().map(r=>r(n)),(t.get("*")||[]).slice().map(r=>r(A,n))}}}const Fa=t=>!We(t)||bA(t);function ba(t,e){if(Fa(t)||Fa(e))throw new Error("Invalid value");const A=[{src:t,des:e}];for(;A.length;){const{src:n,des:r}=A.pop();Object.keys(n).forEach(i=>{Fa(n[i])||Fa(r[i])?r[i]=n[i]:A.push({src:n[i],des:r[i]})})}}/*!
118
+ */const Mn=typeof window<"u";let St,ii;if(process.env.NODE_ENV!=="production"){const t=Mn&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(St=e=>{t.mark(e)},ii=(e,A,n)=>{t.measure(e,A,n),t.clearMarks(A),t.clearMarks(n)})}const iS=/\{([0-9a-zA-Z]+)\}/g;function Su(t,...e){return e.length===1&&We(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(iS,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Rn=(t,e=!1)=>e?Symbol.for(t):Symbol(t),sS=(t,e,A)=>oS({l:t,k:e,s:A}),oS=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),zA=t=>typeof t=="number"&&isFinite(t),aS=t=>Fm(t)==="[object Date]",Pi=t=>Fm(t)==="[object RegExp]",ya=t=>_e(t)&&Object.keys(t).length===0,qA=Object.assign;let ym;const Kn=()=>ym||(ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Em(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const lS=Object.prototype.hasOwnProperty;function Ea(t,e){return lS.call(t,e)}const bA=Array.isArray,lA=t=>typeof t=="function",te=t=>typeof t=="string",nA=t=>typeof t=="boolean",We=t=>t!==null&&typeof t=="object",cS=t=>We(t)&&lA(t.then)&&lA(t.catch),Qm=Object.prototype.toString,Fm=t=>Qm.call(t),_e=t=>{if(!We(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},uS=t=>t==null?"":bA(t)||_e(t)&&t.toString===Qm?JSON.stringify(t,null,2):String(t);function fS(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const bm=2;function dS(t,e=0,A=t.length){const n=t.split(/\r?\n/);let r=0;const i=[];for(let s=0;s<n.length;s++)if(r+=n[s].length+1,r>=e){for(let a=s-bm;a<=s+bm||A>r;a++){if(a<0||a>=n.length)continue;const c=a+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${n[a]}`);const u=n[a].length;if(a===s){const f=e-(r-u)+1,p=Math.max(1,A>r?u-f:A-e);i.push(" | "+" ".repeat(f)+"^".repeat(p))}else if(a>s){if(A>r){const f=Math.max(Math.min(A-r,u),1);i.push(" | "+"^".repeat(f))}r+=u+1}}break}return i.join(`
119
+ `)}function Qa(t){let e=t;return()=>++e}function Vn(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Um={};function vm(t){Um[t]||(Um[t]=!0,Vn(t))}function hS(){const t=new Map;return{events:t,on(A,n){const r=t.get(A);r&&r.push(n)||t.set(A,[n])},off(A,n){const r=t.get(A);r&&r.splice(r.indexOf(n)>>>0,1)},emit(A,n){(t.get(A)||[]).slice().map(r=>r(n)),(t.get("*")||[]).slice().map(r=>r(A,n))}}}const Fa=t=>!We(t)||bA(t);function ba(t,e){if(Fa(t)||Fa(e))throw new Error("Invalid value");const A=[{src:t,des:e}];for(;A.length;){const{src:n,des:r}=A.pop();Object.keys(n).forEach(i=>{Fa(n[i])||Fa(r[i])?r[i]=n[i]:A.push({src:n[i],des:r[i]})})}}/*!
120
120
  * message-compiler v9.13.1
121
121
  * (c) 2024 kazuya kawaguchi
122
122
  * Released under the MIT License.
123
- */function hS(t,e,A){return{line:t,column:e,offset:A}}function Ua(t,e,A){const n={start:t,end:e};return A!=null&&(n.source=A),n}const pS=/\{([0-9a-zA-Z]+)\}/g;function Im(t,...e){return e.length===1&&gS(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(pS,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Sm=Object.assign,Tm=t=>typeof t=="string",gS=t=>t!==null&&typeof t=="object";function _m(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const va={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},mS={[va.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function BS(t,e,...A){const n=Im(mS[t]||"",...A||[]),r={message:String(n),code:t};return e&&(r.location=e),r}const ge={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},wS={[ge.EXPECTED_TOKEN]:"Expected token: '{0}'",[ge.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ge.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ge.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ge.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ge.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ge.EMPTY_PLACEHOLDER]:"Empty placeholder",[ge.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ge.INVALID_LINKED_FORMAT]:"Invalid linked format",[ge.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ge.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ge.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ge.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ge.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ge.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gi(t,e,A={}){const{domain:n,messages:r,args:i}=A,s=Im((r||wS)[t]||"",...i||[]),a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=n,a}function CS(t){throw t}const yS=/<\/?[\w\s="/.':;#-\/]+>/,ES=t=>yS.test(t),Pn=" ",QS="\r",ot=`
124
- `,FS=String.fromCharCode(8232),bS=String.fromCharCode(8233);function US(t){const e=t;let A=0,n=1,r=1,i=0;const s=N=>e[N]===QS&&e[N+1]===ot,a=N=>e[N]===ot,c=N=>e[N]===bS,u=N=>e[N]===FS,f=N=>s(N)||a(N)||c(N)||u(N),p=()=>A,g=()=>n,B=()=>r,w=()=>i,Q=N=>s(N)||c(N)||u(N)?ot:e[N],b=()=>Q(A),v=()=>Q(A+i);function _(){return i=0,f(A)&&(n++,r=0),s(A)&&A++,A++,r++,e[A]}function S(){return s(A+i)&&i++,i++,e[A+i]}function E(){A=0,n=1,r=1,i=0}function L(N=0){i=N}function U(){const N=A+i;for(;N!==A;)_();i=0}return{index:p,line:g,column:B,peekOffset:w,charAt:Q,currentChar:b,currentPeek:v,next:_,peek:S,reset:E,resetPeek:L,skipToPeek:U}}const Cr=void 0,vS=".",xm="'",IS="tokenizer";function SS(t,e={}){const A=e.location!==!1,n=US(t),r=()=>n.index(),i=()=>hS(n.line(),n.column(),n.index()),s=i(),a=r(),c={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:f}=e;function p(T,x,$,...oe){const tA=u();if(x.column+=$,x.offset+=$,f){const Ne=A?Ua(tA.startLoc,x):null,Ve=Gi(T,Ne,{domain:IS,args:oe});f(Ve)}}function g(T,x,$){T.endLoc=i(),T.currentType=x;const oe={type:x};return A&&(oe.loc=Ua(T.startLoc,T.endLoc)),$!=null&&(oe.value=$),oe}const B=T=>g(T,14);function w(T,x){return T.currentChar()===x?(T.next(),x):(p(ge.EXPECTED_TOKEN,i(),0,x),"")}function Q(T){let x="";for(;T.currentPeek()===Pn||T.currentPeek()===ot;)x+=T.currentPeek(),T.peek();return x}function b(T){const x=Q(T);return T.skipToPeek(),x}function v(T){if(T===Cr)return!1;const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x===95}function _(T){if(T===Cr)return!1;const x=T.charCodeAt(0);return x>=48&&x<=57}function S(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oe=v(T.currentPeek());return T.resetPeek(),oe}function E(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oe=T.currentPeek()==="-"?T.peek():T.currentPeek(),tA=_(oe);return T.resetPeek(),tA}function L(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oe=T.currentPeek()===xm;return T.resetPeek(),oe}function U(T,x){const{currentType:$}=x;if($!==8)return!1;Q(T);const oe=T.currentPeek()===".";return T.resetPeek(),oe}function N(T,x){const{currentType:$}=x;if($!==9)return!1;Q(T);const oe=v(T.currentPeek());return T.resetPeek(),oe}function V(T,x){const{currentType:$}=x;if(!($===8||$===12))return!1;Q(T);const oe=T.currentPeek()===":";return T.resetPeek(),oe}function D(T,x){const{currentType:$}=x;if($!==10)return!1;const oe=()=>{const Ne=T.currentPeek();return Ne==="{"?v(T.peek()):Ne==="@"||Ne==="%"||Ne==="|"||Ne===":"||Ne==="."||Ne===Pn||!Ne?!1:Ne===ot?(T.peek(),oe()):ne(T,!1)},tA=oe();return T.resetPeek(),tA}function se(T){Q(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function Be(T){const x=Q(T),$=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:$,hasSpace:x.length>0}}function ne(T,x=!0){const $=(tA=!1,Ne="",Ve=!1)=>{const R=T.currentPeek();return R==="{"?Ne==="%"?!1:tA:R==="@"||!R?Ne==="%"?!0:tA:R==="%"?(T.peek(),$(tA,"%",!0)):R==="|"?Ne==="%"||Ve?!0:!(Ne===Pn||Ne===ot):R===Pn?(T.peek(),$(!0,Pn,Ve)):R===ot?(T.peek(),$(!0,ot,Ve)):!0},oe=$();return x&&T.resetPeek(),oe}function ce(T,x){const $=T.currentChar();return $===Cr?Cr:x($)?(T.next(),$):null}function Le(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36}function oA(T){return ce(T,Le)}function Re(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36||x===45}function He(T){return ce(T,Re)}function re(T){const x=T.charCodeAt(0);return x>=48&&x<=57}function me(T){return ce(T,re)}function Xe(T){const x=T.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function ke(T){return ce(T,Xe)}function Ge(T){let x="",$="";for(;x=me(T);)$+=x;return $}function Ke(T){b(T);const x=T.currentChar();return x!=="%"&&p(ge.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function eA(T){let x="";for(;;){const $=T.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($==="%")if(ne(T))x+=$,T.next();else break;else if($===Pn||$===ot)if(ne(T))x+=$,T.next();else{if(se(T))break;x+=$,T.next()}else x+=$,T.next()}return x}function AA(T){b(T);let x="",$="";for(;x=He(T);)$+=x;return T.currentChar()===Cr&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),$}function ze(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${Ge(T)}`):x+=Ge(T),T.currentChar()===Cr&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),x}function pA(T){return T!==xm&&T!==ot}function ct(T){b(T),w(T,"'");let x="",$="";for(;x=ce(T,pA);)x==="\\"?$+=et(T):$+=x;const oe=T.currentChar();return oe===ot||oe===Cr?(p(ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oe===ot&&(T.next(),w(T,"'")),$):(w(T,"'"),$)}function et(T){const x=T.currentChar();switch(x){case"\\":case"'":return T.next(),`\\${x}`;case"u":return ut(T,x,4);case"U":return ut(T,x,6);default:return p(ge.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ut(T,x,$){w(T,x);let oe="";for(let tA=0;tA<$;tA++){const Ne=ke(T);if(!Ne){p(ge.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${oe}${T.currentChar()}`);break}oe+=Ne}return`\\${x}${oe}`}function _t(T){return T!=="{"&&T!=="}"&&T!==Pn&&T!==ot}function xt(T){b(T);let x="",$="";for(;x=ce(T,_t);)$+=x;return $}function un(T){let x="",$="";for(;x=oA(T);)$+=x;return $}function z(T){const x=$=>{const oe=T.currentChar();return oe==="{"||oe==="%"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===Pn?$:($+=oe,T.next(),x($))};return x("")}function Ue(T){b(T);const x=w(T,"|");return b(T),x}function Sn(T,x){let $=null;switch(T.currentChar()){case"{":return x.braceNest>=1&&p(ge.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),$=g(x,2,"{"),b(T),x.braceNest++,$;case"}":return x.braceNest>0&&x.currentType===2&&p(ge.EMPTY_PLACEHOLDER,i(),0),T.next(),$=g(x,3,"}"),x.braceNest--,x.braceNest>0&&b(T),x.inLinked&&x.braceNest===0&&(x.inLinked=!1),$;case"@":return x.braceNest>0&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),$=vA(T,x)||B(x),x.braceNest=0,$;default:{let tA=!0,Ne=!0,Ve=!0;if(se(T))return x.braceNest>0&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),$=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,$;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,fn(T,x);if(tA=S(T,x))return $=g(x,5,AA(T)),b(T),$;if(Ne=E(T,x))return $=g(x,6,ze(T)),b(T),$;if(Ve=L(T,x))return $=g(x,7,ct(T)),b(T),$;if(!tA&&!Ne&&!Ve)return $=g(x,13,xt(T)),p(ge.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$.value),b(T),$;break}}return $}function vA(T,x){const{currentType:$}=x;let oe=null;const tA=T.currentChar();switch(($===8||$===9||$===12||$===10)&&(tA===ot||tA===Pn)&&p(ge.INVALID_LINKED_FORMAT,i(),0),tA){case"@":return T.next(),oe=g(x,8,"@"),x.inLinked=!0,oe;case".":return b(T),T.next(),g(x,9,".");case":":return b(T),T.next(),g(x,10,":");default:return se(T)?(oe=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,oe):U(T,x)||V(T,x)?(b(T),vA(T,x)):N(T,x)?(b(T),g(x,12,un(T))):D(T,x)?(b(T),tA==="{"?Sn(T,x)||oe:g(x,11,z(T))):($===8&&p(ge.INVALID_LINKED_FORMAT,i(),0),x.braceNest=0,x.inLinked=!1,fn(T,x))}}function fn(T,x){let $={type:14};if(x.braceNest>0)return Sn(T,x)||B(x);if(x.inLinked)return vA(T,x)||B(x);switch(T.currentChar()){case"{":return Sn(T,x)||B(x);case"}":return p(ge.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),g(x,3,"}");case"@":return vA(T,x)||B(x);default:{if(se(T))return $=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,$;const{isModulo:tA,hasSpace:Ne}=Be(T);if(tA)return Ne?g(x,0,eA(T)):g(x,4,Ke(T));if(ne(T))return g(x,0,eA(T));break}}return $}function xr(){const{currentType:T,offset:x,startLoc:$,endLoc:oe}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=$,c.lastEndLoc=oe,c.offset=r(),c.startLoc=i(),n.currentChar()===Cr?g(c,14):fn(n,c)}return{nextToken:xr,currentOffset:r,currentPosition:i,context:u}}const TS="parser",_S=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function xS(t,e,A){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||A,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function OS(t={}){const e=t.location!==!1,{onError:A,onWarn:n}=t;function r(S,E,L,U,...N){const V=S.currentPosition();if(V.offset+=U,V.column+=U,A){const D=e?Ua(L,V):null,se=Gi(E,D,{domain:TS,args:N});A(se)}}function i(S,E,L,U,...N){const V=S.currentPosition();if(V.offset+=U,V.column+=U,n){const D=e?Ua(L,V):null;n(BS(E,D,N))}}function s(S,E,L){const U={type:S};return e&&(U.start=E,U.end=E,U.loc={start:L,end:L}),U}function a(S,E,L,U){U&&(S.type=U),e&&(S.end=E,S.loc&&(S.loc.end=L))}function c(S,E){const L=S.context(),U=s(3,L.offset,L.startLoc);return U.value=E,a(U,S.currentOffset(),S.currentPosition()),U}function u(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(5,U,N);return V.index=parseInt(E,10),S.nextToken(),a(V,S.currentOffset(),S.currentPosition()),V}function f(S,E,L){const U=S.context(),{lastOffset:N,lastStartLoc:V}=U,D=s(4,N,V);return D.key=E,L===!0&&(D.modulo=!0),S.nextToken(),a(D,S.currentOffset(),S.currentPosition()),D}function p(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(9,U,N);return V.value=E.replace(_S,xS),S.nextToken(),a(V,S.currentOffset(),S.currentPosition()),V}function g(S){const E=S.nextToken(),L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(8,U,N);return E.type!==12?(r(S,ge.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),V.value="",a(V,U,N),{nextConsumeToken:E,node:V}):(E.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,an(E)),V.value=E.value||"",a(V,S.currentOffset(),S.currentPosition()),{node:V})}function B(S,E){const L=S.context(),U=s(7,L.offset,L.startLoc);return U.value=E,a(U,S.currentOffset(),S.currentPosition()),U}function w(S){const E=S.context(),L=s(6,E.offset,E.startLoc);let U=S.nextToken();if(U.type===9){const N=g(S);L.modifier=N.node,U=N.nextConsumeToken||S.nextToken()}switch(U.type!==10&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),U=S.nextToken(),U.type===2&&(U=S.nextToken()),U.type){case 11:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=B(S,U.value||"");break;case 5:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=f(S,U.value||"");break;case 6:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=u(S,U.value||"");break;case 7:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=p(S,U.value||"");break;default:{r(S,ge.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const N=S.context(),V=s(7,N.offset,N.startLoc);return V.value="",a(V,N.offset,N.startLoc),L.key=V,a(L,N.offset,N.startLoc),{nextConsumeToken:U,node:L}}}return a(L,S.currentOffset(),S.currentPosition()),{node:L}}function Q(S){const E=S.context(),L=E.currentType===1?S.currentOffset():E.offset,U=E.currentType===1?E.endLoc:E.startLoc,N=s(2,L,U);N.items=[];let V=null,D=null;do{const ne=V||S.nextToken();switch(V=null,ne.type){case 0:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(c(S,ne.value||""));break;case 6:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(u(S,ne.value||""));break;case 4:D=!0;break;case 5:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(f(S,ne.value||"",!!D)),D&&(i(S,va.USE_MODULO_SYNTAX,E.lastStartLoc,0,an(ne)),D=null);break;case 7:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(p(S,ne.value||""));break;case 8:{const ce=w(S);N.items.push(ce.node),V=ce.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const se=E.currentType===1?E.lastOffset:S.currentOffset(),Be=E.currentType===1?E.lastEndLoc:S.currentPosition();return a(N,se,Be),N}function b(S,E,L,U){const N=S.context();let V=U.items.length===0;const D=s(1,E,L);D.cases=[],D.cases.push(U);do{const se=Q(S);V||(V=se.items.length===0),D.cases.push(se)}while(N.currentType!==14);return V&&r(S,ge.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),a(D,S.currentOffset(),S.currentPosition()),D}function v(S){const E=S.context(),{offset:L,startLoc:U}=E,N=Q(S);return E.currentType===14?N:b(S,L,U,N)}function _(S){const E=SS(S,Sm({},t)),L=E.context(),U=s(0,L.offset,L.startLoc);return e&&U.loc&&(U.loc.source=S),U.body=v(E),t.onCacheKey&&(U.cacheKey=t.onCacheKey(S)),L.currentType!==14&&r(E,ge.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,S[L.offset]||""),a(U,E.currentOffset(),E.currentPosition()),U}return{parse:_}}function an(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function LS(t,e={}){const A={ast:t,helpers:new Set};return{context:()=>A,helper:i=>(A.helpers.add(i),i)}}function Om(t,e){for(let A=0;A<t.length;A++)Tu(t[A],e)}function Tu(t,e){switch(t.type){case 1:Om(t.cases,e),e.helper("plural");break;case 2:Om(t.items,e);break;case 6:{Tu(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function HS(t,e={}){const A=LS(t);A.helper("normalize"),t.body&&Tu(t.body,A);const n=A.context();t.helpers=Array.from(n.helpers)}function kS(t){const e=t.body;return e.type===2?Lm(e):e.cases.forEach(A=>Lm(A)),t}function Lm(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let A=0;A<t.items.length;A++){const n=t.items[A];if(!(n.type===3||n.type===9)||n.value==null)break;e.push(n.value)}if(e.length===t.items.length){t.static=_m(e);for(let A=0;A<t.items.length;A++){const n=t.items[A];(n.type===3||n.type===9)&&delete n.value}}}}const NS="minifier";function Wi(t){switch(t.t=t.type,t.type){case 0:{const e=t;Wi(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,A=e.cases;for(let n=0;n<A.length;n++)Wi(A[n]);e.c=A,delete e.cases;break}case 2:{const e=t,A=e.items;for(let n=0;n<A.length;n++)Wi(A[n]);e.i=A,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Wi(e.key),e.k=e.key,delete e.key,e.modifier&&(Wi(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw Gi(ge.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:NS,args:[t.type]})}delete t.type}const DS="parser";function MS(t,e){const{sourceMap:A,filename:n,breakLineCode:r,needIndent:i}=e,s=e.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};s&&t.loc&&(a.source=t.loc.source);const c=()=>a;function u(b,v){a.code+=b}function f(b,v=!0){const _=v?r:"";u(i?_+" ".repeat(b):_)}function p(b=!0){const v=++a.indentLevel;b&&f(v)}function g(b=!0){const v=--a.indentLevel;b&&f(v)}function B(){f(a.indentLevel)}return{context:c,push:u,indent:p,deindent:g,newline:B,helper:b=>`_${b}`,needIndent:()=>a.needIndent}}function RS(t,e){const{helper:A}=t;t.push(`${A("linked")}(`),$i(t,e.key),e.modifier?(t.push(", "),$i(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function KS(t,e){const{helper:A,needIndent:n}=t;t.push(`${A("normalize")}([`),t.indent(n());const r=e.items.length;for(let i=0;i<r&&($i(t,e.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function VS(t,e){const{helper:A,needIndent:n}=t;if(e.cases.length>1){t.push(`${A("plural")}([`),t.indent(n());const r=e.cases.length;for(let i=0;i<r&&($i(t,e.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function PS(t,e){e.body?$i(t,e.body):t.push("null")}function $i(t,e){const{helper:A}=t;switch(e.type){case 0:PS(t,e);break;case 1:VS(t,e);break;case 2:KS(t,e);break;case 6:RS(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${A("interpolate")}(${A("list")}(${e.index}))`,e);break;case 4:t.push(`${A("interpolate")}(${A("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw Gi(ge.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:DS,args:[e.type]})}}const GS=(t,e={})=>{const A=Tm(e.mode)?e.mode:"normal",n=Tm(e.filename)?e.filename:"message.intl",r=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:A==="arrow"?";":`
125
- `,s=e.needIndent?e.needIndent:A!=="arrow",a=t.helpers||[],c=MS(t,{mode:A,filename:n,sourceMap:r,breakLineCode:i,needIndent:s});c.push(A==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),a.length>0&&(c.push(`const { ${_m(a.map(p=>`${p}: _${p}`),", ")} } = ctx`),c.newline()),c.push("return "),$i(c,t),c.deindent(s),c.push("}"),delete t.helpers;const{code:u,map:f}=c.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function WS(t,e={}){const A=Sm({},e),n=!!A.jit,r=!!A.minify,i=A.optimize==null?!0:A.optimize,a=OS(A).parse(t);return n?(i&&kS(a),r&&Wi(a),{ast:a,code:""}):(HS(a,A),GS(a,A))}/*!
123
+ */function pS(t,e,A){return{line:t,column:e,offset:A}}function Ua(t,e,A){const n={start:t,end:e};return A!=null&&(n.source=A),n}const gS=/\{([0-9a-zA-Z]+)\}/g;function Im(t,...e){return e.length===1&&mS(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(gS,(A,n)=>e.hasOwnProperty(n)?e[n]:"")}const Sm=Object.assign,Tm=t=>typeof t=="string",mS=t=>t!==null&&typeof t=="object";function _m(t,e=""){return t.reduce((A,n,r)=>r===0?A+n:A+e+n,"")}const va={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},BS={[va.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function wS(t,e,...A){const n=Im(BS[t]||"",...A||[]),r={message:String(n),code:t};return e&&(r.location=e),r}const ge={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},CS={[ge.EXPECTED_TOKEN]:"Expected token: '{0}'",[ge.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ge.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ge.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ge.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ge.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ge.EMPTY_PLACEHOLDER]:"Empty placeholder",[ge.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ge.INVALID_LINKED_FORMAT]:"Invalid linked format",[ge.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ge.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ge.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ge.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ge.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ge.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gi(t,e,A={}){const{domain:n,messages:r,args:i}=A,s=Im((r||CS)[t]||"",...i||[]),a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=n,a}function yS(t){throw t}const ES=/<\/?[\w\s="/.':;#-\/]+>/,QS=t=>ES.test(t),Pn=" ",FS="\r",ot=`
124
+ `,bS=String.fromCharCode(8232),US=String.fromCharCode(8233);function vS(t){const e=t;let A=0,n=1,r=1,i=0;const s=N=>e[N]===FS&&e[N+1]===ot,a=N=>e[N]===ot,c=N=>e[N]===US,u=N=>e[N]===bS,f=N=>s(N)||a(N)||c(N)||u(N),p=()=>A,g=()=>n,B=()=>r,w=()=>i,Q=N=>s(N)||c(N)||u(N)?ot:e[N],b=()=>Q(A),v=()=>Q(A+i);function _(){return i=0,f(A)&&(n++,r=0),s(A)&&A++,A++,r++,e[A]}function S(){return s(A+i)&&i++,i++,e[A+i]}function E(){A=0,n=1,r=1,i=0}function L(N=0){i=N}function U(){const N=A+i;for(;N!==A;)_();i=0}return{index:p,line:g,column:B,peekOffset:w,charAt:Q,currentChar:b,currentPeek:v,next:_,peek:S,reset:E,resetPeek:L,skipToPeek:U}}const Cr=void 0,IS=".",xm="'",SS="tokenizer";function TS(t,e={}){const A=e.location!==!1,n=vS(t),r=()=>n.index(),i=()=>pS(n.line(),n.column(),n.index()),s=i(),a=r(),c={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:f}=e;function p(T,x,$,...oe){const tA=u();if(x.column+=$,x.offset+=$,f){const Ne=A?Ua(tA.startLoc,x):null,Ve=Gi(T,Ne,{domain:SS,args:oe});f(Ve)}}function g(T,x,$){T.endLoc=i(),T.currentType=x;const oe={type:x};return A&&(oe.loc=Ua(T.startLoc,T.endLoc)),$!=null&&(oe.value=$),oe}const B=T=>g(T,14);function w(T,x){return T.currentChar()===x?(T.next(),x):(p(ge.EXPECTED_TOKEN,i(),0,x),"")}function Q(T){let x="";for(;T.currentPeek()===Pn||T.currentPeek()===ot;)x+=T.currentPeek(),T.peek();return x}function b(T){const x=Q(T);return T.skipToPeek(),x}function v(T){if(T===Cr)return!1;const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x===95}function _(T){if(T===Cr)return!1;const x=T.charCodeAt(0);return x>=48&&x<=57}function S(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oe=v(T.currentPeek());return T.resetPeek(),oe}function E(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oe=T.currentPeek()==="-"?T.peek():T.currentPeek(),tA=_(oe);return T.resetPeek(),tA}function L(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oe=T.currentPeek()===xm;return T.resetPeek(),oe}function U(T,x){const{currentType:$}=x;if($!==8)return!1;Q(T);const oe=T.currentPeek()===".";return T.resetPeek(),oe}function N(T,x){const{currentType:$}=x;if($!==9)return!1;Q(T);const oe=v(T.currentPeek());return T.resetPeek(),oe}function V(T,x){const{currentType:$}=x;if(!($===8||$===12))return!1;Q(T);const oe=T.currentPeek()===":";return T.resetPeek(),oe}function D(T,x){const{currentType:$}=x;if($!==10)return!1;const oe=()=>{const Ne=T.currentPeek();return Ne==="{"?v(T.peek()):Ne==="@"||Ne==="%"||Ne==="|"||Ne===":"||Ne==="."||Ne===Pn||!Ne?!1:Ne===ot?(T.peek(),oe()):ne(T,!1)},tA=oe();return T.resetPeek(),tA}function se(T){Q(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function Be(T){const x=Q(T),$=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:$,hasSpace:x.length>0}}function ne(T,x=!0){const $=(tA=!1,Ne="",Ve=!1)=>{const R=T.currentPeek();return R==="{"?Ne==="%"?!1:tA:R==="@"||!R?Ne==="%"?!0:tA:R==="%"?(T.peek(),$(tA,"%",!0)):R==="|"?Ne==="%"||Ve?!0:!(Ne===Pn||Ne===ot):R===Pn?(T.peek(),$(!0,Pn,Ve)):R===ot?(T.peek(),$(!0,ot,Ve)):!0},oe=$();return x&&T.resetPeek(),oe}function ce(T,x){const $=T.currentChar();return $===Cr?Cr:x($)?(T.next(),$):null}function Le(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36}function oA(T){return ce(T,Le)}function Re(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36||x===45}function He(T){return ce(T,Re)}function re(T){const x=T.charCodeAt(0);return x>=48&&x<=57}function me(T){return ce(T,re)}function Xe(T){const x=T.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function ke(T){return ce(T,Xe)}function Ge(T){let x="",$="";for(;x=me(T);)$+=x;return $}function Ke(T){b(T);const x=T.currentChar();return x!=="%"&&p(ge.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function eA(T){let x="";for(;;){const $=T.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($==="%")if(ne(T))x+=$,T.next();else break;else if($===Pn||$===ot)if(ne(T))x+=$,T.next();else{if(se(T))break;x+=$,T.next()}else x+=$,T.next()}return x}function AA(T){b(T);let x="",$="";for(;x=He(T);)$+=x;return T.currentChar()===Cr&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),$}function ze(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${Ge(T)}`):x+=Ge(T),T.currentChar()===Cr&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),x}function pA(T){return T!==xm&&T!==ot}function ct(T){b(T),w(T,"'");let x="",$="";for(;x=ce(T,pA);)x==="\\"?$+=et(T):$+=x;const oe=T.currentChar();return oe===ot||oe===Cr?(p(ge.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oe===ot&&(T.next(),w(T,"'")),$):(w(T,"'"),$)}function et(T){const x=T.currentChar();switch(x){case"\\":case"'":return T.next(),`\\${x}`;case"u":return ut(T,x,4);case"U":return ut(T,x,6);default:return p(ge.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ut(T,x,$){w(T,x);let oe="";for(let tA=0;tA<$;tA++){const Ne=ke(T);if(!Ne){p(ge.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${oe}${T.currentChar()}`);break}oe+=Ne}return`\\${x}${oe}`}function _t(T){return T!=="{"&&T!=="}"&&T!==Pn&&T!==ot}function xt(T){b(T);let x="",$="";for(;x=ce(T,_t);)$+=x;return $}function un(T){let x="",$="";for(;x=oA(T);)$+=x;return $}function z(T){const x=$=>{const oe=T.currentChar();return oe==="{"||oe==="%"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===Pn?$:($+=oe,T.next(),x($))};return x("")}function Ue(T){b(T);const x=w(T,"|");return b(T),x}function Sn(T,x){let $=null;switch(T.currentChar()){case"{":return x.braceNest>=1&&p(ge.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),$=g(x,2,"{"),b(T),x.braceNest++,$;case"}":return x.braceNest>0&&x.currentType===2&&p(ge.EMPTY_PLACEHOLDER,i(),0),T.next(),$=g(x,3,"}"),x.braceNest--,x.braceNest>0&&b(T),x.inLinked&&x.braceNest===0&&(x.inLinked=!1),$;case"@":return x.braceNest>0&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),$=vA(T,x)||B(x),x.braceNest=0,$;default:{let tA=!0,Ne=!0,Ve=!0;if(se(T))return x.braceNest>0&&p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),$=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,$;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return p(ge.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,fn(T,x);if(tA=S(T,x))return $=g(x,5,AA(T)),b(T),$;if(Ne=E(T,x))return $=g(x,6,ze(T)),b(T),$;if(Ve=L(T,x))return $=g(x,7,ct(T)),b(T),$;if(!tA&&!Ne&&!Ve)return $=g(x,13,xt(T)),p(ge.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$.value),b(T),$;break}}return $}function vA(T,x){const{currentType:$}=x;let oe=null;const tA=T.currentChar();switch(($===8||$===9||$===12||$===10)&&(tA===ot||tA===Pn)&&p(ge.INVALID_LINKED_FORMAT,i(),0),tA){case"@":return T.next(),oe=g(x,8,"@"),x.inLinked=!0,oe;case".":return b(T),T.next(),g(x,9,".");case":":return b(T),T.next(),g(x,10,":");default:return se(T)?(oe=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,oe):U(T,x)||V(T,x)?(b(T),vA(T,x)):N(T,x)?(b(T),g(x,12,un(T))):D(T,x)?(b(T),tA==="{"?Sn(T,x)||oe:g(x,11,z(T))):($===8&&p(ge.INVALID_LINKED_FORMAT,i(),0),x.braceNest=0,x.inLinked=!1,fn(T,x))}}function fn(T,x){let $={type:14};if(x.braceNest>0)return Sn(T,x)||B(x);if(x.inLinked)return vA(T,x)||B(x);switch(T.currentChar()){case"{":return Sn(T,x)||B(x);case"}":return p(ge.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),g(x,3,"}");case"@":return vA(T,x)||B(x);default:{if(se(T))return $=g(x,1,Ue(T)),x.braceNest=0,x.inLinked=!1,$;const{isModulo:tA,hasSpace:Ne}=Be(T);if(tA)return Ne?g(x,0,eA(T)):g(x,4,Ke(T));if(ne(T))return g(x,0,eA(T));break}}return $}function xr(){const{currentType:T,offset:x,startLoc:$,endLoc:oe}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=$,c.lastEndLoc=oe,c.offset=r(),c.startLoc=i(),n.currentChar()===Cr?g(c,14):fn(n,c)}return{nextToken:xr,currentOffset:r,currentPosition:i,context:u}}const _S="parser",xS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function OS(t,e,A){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||A,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function LS(t={}){const e=t.location!==!1,{onError:A,onWarn:n}=t;function r(S,E,L,U,...N){const V=S.currentPosition();if(V.offset+=U,V.column+=U,A){const D=e?Ua(L,V):null,se=Gi(E,D,{domain:_S,args:N});A(se)}}function i(S,E,L,U,...N){const V=S.currentPosition();if(V.offset+=U,V.column+=U,n){const D=e?Ua(L,V):null;n(wS(E,D,N))}}function s(S,E,L){const U={type:S};return e&&(U.start=E,U.end=E,U.loc={start:L,end:L}),U}function a(S,E,L,U){U&&(S.type=U),e&&(S.end=E,S.loc&&(S.loc.end=L))}function c(S,E){const L=S.context(),U=s(3,L.offset,L.startLoc);return U.value=E,a(U,S.currentOffset(),S.currentPosition()),U}function u(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(5,U,N);return V.index=parseInt(E,10),S.nextToken(),a(V,S.currentOffset(),S.currentPosition()),V}function f(S,E,L){const U=S.context(),{lastOffset:N,lastStartLoc:V}=U,D=s(4,N,V);return D.key=E,L===!0&&(D.modulo=!0),S.nextToken(),a(D,S.currentOffset(),S.currentPosition()),D}function p(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(9,U,N);return V.value=E.replace(xS,OS),S.nextToken(),a(V,S.currentOffset(),S.currentPosition()),V}function g(S){const E=S.nextToken(),L=S.context(),{lastOffset:U,lastStartLoc:N}=L,V=s(8,U,N);return E.type!==12?(r(S,ge.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),V.value="",a(V,U,N),{nextConsumeToken:E,node:V}):(E.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,an(E)),V.value=E.value||"",a(V,S.currentOffset(),S.currentPosition()),{node:V})}function B(S,E){const L=S.context(),U=s(7,L.offset,L.startLoc);return U.value=E,a(U,S.currentOffset(),S.currentPosition()),U}function w(S){const E=S.context(),L=s(6,E.offset,E.startLoc);let U=S.nextToken();if(U.type===9){const N=g(S);L.modifier=N.node,U=N.nextConsumeToken||S.nextToken()}switch(U.type!==10&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),U=S.nextToken(),U.type===2&&(U=S.nextToken()),U.type){case 11:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=B(S,U.value||"");break;case 5:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=f(S,U.value||"");break;case 6:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=u(S,U.value||"");break;case 7:U.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=p(S,U.value||"");break;default:{r(S,ge.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const N=S.context(),V=s(7,N.offset,N.startLoc);return V.value="",a(V,N.offset,N.startLoc),L.key=V,a(L,N.offset,N.startLoc),{nextConsumeToken:U,node:L}}}return a(L,S.currentOffset(),S.currentPosition()),{node:L}}function Q(S){const E=S.context(),L=E.currentType===1?S.currentOffset():E.offset,U=E.currentType===1?E.endLoc:E.startLoc,N=s(2,L,U);N.items=[];let V=null,D=null;do{const ne=V||S.nextToken();switch(V=null,ne.type){case 0:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(c(S,ne.value||""));break;case 6:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(u(S,ne.value||""));break;case 4:D=!0;break;case 5:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(f(S,ne.value||"",!!D)),D&&(i(S,va.USE_MODULO_SYNTAX,E.lastStartLoc,0,an(ne)),D=null);break;case 7:ne.value==null&&r(S,ge.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(ne)),N.items.push(p(S,ne.value||""));break;case 8:{const ce=w(S);N.items.push(ce.node),V=ce.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const se=E.currentType===1?E.lastOffset:S.currentOffset(),Be=E.currentType===1?E.lastEndLoc:S.currentPosition();return a(N,se,Be),N}function b(S,E,L,U){const N=S.context();let V=U.items.length===0;const D=s(1,E,L);D.cases=[],D.cases.push(U);do{const se=Q(S);V||(V=se.items.length===0),D.cases.push(se)}while(N.currentType!==14);return V&&r(S,ge.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),a(D,S.currentOffset(),S.currentPosition()),D}function v(S){const E=S.context(),{offset:L,startLoc:U}=E,N=Q(S);return E.currentType===14?N:b(S,L,U,N)}function _(S){const E=TS(S,Sm({},t)),L=E.context(),U=s(0,L.offset,L.startLoc);return e&&U.loc&&(U.loc.source=S),U.body=v(E),t.onCacheKey&&(U.cacheKey=t.onCacheKey(S)),L.currentType!==14&&r(E,ge.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,S[L.offset]||""),a(U,E.currentOffset(),E.currentPosition()),U}return{parse:_}}function an(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function HS(t,e={}){const A={ast:t,helpers:new Set};return{context:()=>A,helper:i=>(A.helpers.add(i),i)}}function Om(t,e){for(let A=0;A<t.length;A++)Tu(t[A],e)}function Tu(t,e){switch(t.type){case 1:Om(t.cases,e),e.helper("plural");break;case 2:Om(t.items,e);break;case 6:{Tu(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function kS(t,e={}){const A=HS(t);A.helper("normalize"),t.body&&Tu(t.body,A);const n=A.context();t.helpers=Array.from(n.helpers)}function NS(t){const e=t.body;return e.type===2?Lm(e):e.cases.forEach(A=>Lm(A)),t}function Lm(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let A=0;A<t.items.length;A++){const n=t.items[A];if(!(n.type===3||n.type===9)||n.value==null)break;e.push(n.value)}if(e.length===t.items.length){t.static=_m(e);for(let A=0;A<t.items.length;A++){const n=t.items[A];(n.type===3||n.type===9)&&delete n.value}}}}const DS="minifier";function Wi(t){switch(t.t=t.type,t.type){case 0:{const e=t;Wi(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,A=e.cases;for(let n=0;n<A.length;n++)Wi(A[n]);e.c=A,delete e.cases;break}case 2:{const e=t,A=e.items;for(let n=0;n<A.length;n++)Wi(A[n]);e.i=A,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Wi(e.key),e.k=e.key,delete e.key,e.modifier&&(Wi(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw Gi(ge.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:DS,args:[t.type]})}delete t.type}const MS="parser";function RS(t,e){const{sourceMap:A,filename:n,breakLineCode:r,needIndent:i}=e,s=e.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};s&&t.loc&&(a.source=t.loc.source);const c=()=>a;function u(b,v){a.code+=b}function f(b,v=!0){const _=v?r:"";u(i?_+" ".repeat(b):_)}function p(b=!0){const v=++a.indentLevel;b&&f(v)}function g(b=!0){const v=--a.indentLevel;b&&f(v)}function B(){f(a.indentLevel)}return{context:c,push:u,indent:p,deindent:g,newline:B,helper:b=>`_${b}`,needIndent:()=>a.needIndent}}function KS(t,e){const{helper:A}=t;t.push(`${A("linked")}(`),$i(t,e.key),e.modifier?(t.push(", "),$i(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function VS(t,e){const{helper:A,needIndent:n}=t;t.push(`${A("normalize")}([`),t.indent(n());const r=e.items.length;for(let i=0;i<r&&($i(t,e.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function PS(t,e){const{helper:A,needIndent:n}=t;if(e.cases.length>1){t.push(`${A("plural")}([`),t.indent(n());const r=e.cases.length;for(let i=0;i<r&&($i(t,e.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function GS(t,e){e.body?$i(t,e.body):t.push("null")}function $i(t,e){const{helper:A}=t;switch(e.type){case 0:GS(t,e);break;case 1:PS(t,e);break;case 2:VS(t,e);break;case 6:KS(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${A("interpolate")}(${A("list")}(${e.index}))`,e);break;case 4:t.push(`${A("interpolate")}(${A("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw Gi(ge.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:MS,args:[e.type]})}}const WS=(t,e={})=>{const A=Tm(e.mode)?e.mode:"normal",n=Tm(e.filename)?e.filename:"message.intl",r=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:A==="arrow"?";":`
125
+ `,s=e.needIndent?e.needIndent:A!=="arrow",a=t.helpers||[],c=RS(t,{mode:A,filename:n,sourceMap:r,breakLineCode:i,needIndent:s});c.push(A==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),a.length>0&&(c.push(`const { ${_m(a.map(p=>`${p}: _${p}`),", ")} } = ctx`),c.newline()),c.push("return "),$i(c,t),c.deindent(s),c.push("}"),delete t.helpers;const{code:u,map:f}=c.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function $S(t,e={}){const A=Sm({},e),n=!!A.jit,r=!!A.minify,i=A.optimize==null?!0:A.optimize,a=LS(A).parse(t);return n?(i&&NS(a),r&&Wi(a),{ast:a,code:""}):(kS(a,A),WS(a,A))}/*!
126
126
  * core-base v9.13.1
127
127
  * (c) 2024 kazuya kawaguchi
128
128
  * Released under the MIT License.
129
- */function $S(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const yr=[];yr[0]={w:[0],i:[3,0],"[":[4],o:[7]},yr[1]={w:[1],".":[2],"[":[4],o:[7]},yr[2]={w:[2],i:[3,0],0:[3,0]},yr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},yr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},yr[5]={"'":[4,0],o:8,l:[5,0]},yr[6]={'"':[4,0],o:8,l:[6,0]};const JS=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function XS(t){return JS.test(t)}function YS(t){const e=t.charCodeAt(0),A=t.charCodeAt(t.length-1);return e===A&&(e===34||e===39)?t.slice(1,-1):t}function zS(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function qS(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:XS(e)?YS(e):"*"+e}function ZS(t){const e=[];let A=-1,n=0,r=0,i,s,a,c,u,f,p;const g=[];g[0]=()=>{s===void 0?s=a:s+=a},g[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},g[2]=()=>{g[0](),r++},g[3]=()=>{if(r>0)r--,n=4,g[0]();else{if(r=0,s===void 0||(s=qS(s),s===!1))return!1;g[1]()}};function B(){const w=t[A+1];if(n===5&&w==="'"||n===6&&w==='"')return A++,a="\\"+w,g[0](),!0}for(;n!==null;)if(A++,i=t[A],!(i==="\\"&&B())){if(c=zS(i),p=yr[n],u=p[c]||p.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=g[u[1]],f&&(a=i,f()===!1))))return;if(n===7)return e}}const Hm=new Map;function jS(t,e){return We(t)?t[e]:null}function eT(t,e){if(!We(t))return null;let A=Hm.get(e);if(A||(A=ZS(e),A&&Hm.set(e,A)),!A)return null;const n=A.length;let r=t,i=0;for(;i<n;){const s=r[A[i]];if(s===void 0||lA(r))return null;r=s,i++}return r}const AT=t=>t,tT=t=>"",nT="text",rT=t=>t.length===0?"":uS(t),iT=cS;function km(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function sT(t){const e=zA(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(zA(t.named.count)||zA(t.named.n))?zA(t.named.count)?t.named.count:zA(t.named.n)?t.named.n:e:e}function oT(t,e){e.count||(e.count=t),e.n||(e.n=t)}function aT(t={}){const e=t.locale,A=sT(t),n=We(t.pluralRules)&&te(e)&&lA(t.pluralRules[e])?t.pluralRules[e]:km,r=We(t.pluralRules)&&te(e)&&lA(t.pluralRules[e])?km:void 0,i=v=>v[n(A,v.length,r)],s=t.list||[],a=v=>s[v],c=t.named||{};zA(t.pluralIndex)&&oT(A,c);const u=v=>c[v];function f(v){const _=lA(t.messages)?t.messages(v):We(t.messages)?t.messages[v]:!1;return _||(t.parent?t.parent.message(v):tT)}const p=v=>t.modifiers?t.modifiers[v]:AT,g=_e(t.processor)&&lA(t.processor.normalize)?t.processor.normalize:rT,B=_e(t.processor)&&lA(t.processor.interpolate)?t.processor.interpolate:iT,w=_e(t.processor)&&te(t.processor.type)?t.processor.type:nT,b={list:a,named:u,plural:i,linked:(v,..._)=>{const[S,E]=_;let L="text",U="";_.length===1?We(S)?(U=S.modifier||U,L=S.type||L):te(S)&&(U=S||U):_.length===2&&(te(S)&&(U=S||U),te(E)&&(L=E||L));const N=f(v)(b),V=L==="vnode"&&bA(N)&&U?N[0]:N;return U?p(U)(V,L):V},message:f,type:w,interpolate:B,normalize:g,values:qA({},s,c)};return b}let Ws=null;function lT(t){Ws=t}function cT(t,e,A){Ws&&Ws.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:A})}const uT=fT("function:translate");function fT(t){return e=>Ws&&Ws.emit(t,e)}const Nm=va.__EXTEND_POINT__,si=Qa(Nm),at={NOT_FOUND_KEY:Nm,FALLBACK_TO_TRANSLATE:si(),CANNOT_FORMAT_NUMBER:si(),FALLBACK_TO_NUMBER_FORMAT:si(),CANNOT_FORMAT_DATE:si(),FALLBACK_TO_DATE_FORMAT:si(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:si(),__EXTEND_POINT__:si()},dT={[at.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[at.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[at.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[at.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[at.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[at.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function oi(t,...e){return Su(dT[t],...e)}const Dm=ge.__EXTEND_POINT__,ai=Qa(Dm),kA={INVALID_ARGUMENT:Dm,INVALID_DATE_ARGUMENT:ai(),INVALID_ISO_DATE_ARGUMENT:ai(),NOT_SUPPORT_NON_STRING_MESSAGE:ai(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ai(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ai(),NOT_SUPPORT_LOCALE_TYPE:ai(),__EXTEND_POINT__:ai()};function bn(t){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:hT}:void 0)}const hT={[kA.INVALID_ARGUMENT]:"Invalid arguments",[kA.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[kA.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[kA.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[kA.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[kA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[kA.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function _u(t,e){return e.locale!=null?Mm(e.locale):Mm(t.locale)}let xu;function Mm(t){if(te(t))return t;if(lA(t)){if(t.resolvedOnce&&xu!=null)return xu;if(t.constructor.name==="Function"){const e=t();if(lS(e))throw bn(kA.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return xu=e}else throw bn(kA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bn(kA.NOT_SUPPORT_LOCALE_TYPE)}function pT(t,e,A){return[...new Set([A,...bA(e)?e:We(e)?Object.keys(e):te(e)?[e]:[A]])]}function Rm(t,e,A){const n=te(A)?A:$s,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[A];for(;bA(s);)s=Km(i,s,e);const a=bA(e)||!_e(e)?e:e.default?e.default:null;s=te(a)?[a]:a,bA(s)&&Km(i,s,!1),r.__localeChainCache.set(n,i)}return i}function Km(t,e,A){let n=!0;for(let r=0;r<e.length&&nA(n);r++){const i=e[r];te(i)&&(n=gT(t,e[r],A))}return n}function gT(t,e,A){let n;const r=e.split("-");do{const i=r.join("-");n=mT(t,i,A),r.splice(-1,1)}while(r.length&&n===!0);return n}function mT(t,e,A){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const r=e.replace(/!/g,"");t.push(r),(bA(A)||_e(A))&&A[r]&&(n=A[r])}return n}const BT="9.13.1",Ia=-1,$s="en-US",Sa="",Vm=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function wT(){return{upper:(t,e)=>e==="text"&&te(t)?t.toUpperCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&te(t)?t.toLowerCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&te(t)?Vm(t):e==="vnode"&&We(t)&&"__v_isVNode"in t?Vm(t.children):t}}let Pm;function Gm(t){Pm=t}let Wm;function CT(t){Wm=t}let $m;function yT(t){$m=t}let Jm=null;const ET=t=>{Jm=t},QT=()=>Jm;let Xm=null;const Ym=t=>{Xm=t},FT=()=>Xm;let zm=0;function bT(t={}){const e=lA(t.onWarn)?t.onWarn:Vn,A=te(t.version)?t.version:BT,n=te(t.locale)||lA(t.locale)?t.locale:$s,r=lA(n)?$s:n,i=bA(t.fallbackLocale)||_e(t.fallbackLocale)||te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=_e(t.messages)?t.messages:{[r]:{}},a=_e(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=_e(t.numberFormats)?t.numberFormats:{[r]:{}},u=qA({},t.modifiers||{},wT()),f=t.pluralRules||{},p=lA(t.missing)?t.missing:null,g=nA(t.missingWarn)||Pi(t.missingWarn)?t.missingWarn:!0,B=nA(t.fallbackWarn)||Pi(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,Q=!!t.unresolving,b=lA(t.postTranslation)?t.postTranslation:null,v=_e(t.processor)?t.processor:null,_=nA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=lA(t.messageCompiler)?t.messageCompiler:Pm;process.env.NODE_ENV!=="production"&&lA(t.messageCompiler)&&vm(oi(at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=lA(t.messageResolver)?t.messageResolver:Wm||jS,U=lA(t.localeFallbacker)?t.localeFallbacker:$m||pT,N=We(t.fallbackContext)?t.fallbackContext:void 0,V=t,D=We(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,se=We(V.__numberFormatters)?V.__numberFormatters:new Map,Be=We(V.__meta)?V.__meta:{};zm++;const ne={version:A,cid:zm,locale:n,fallbackLocale:i,messages:s,modifiers:u,pluralRules:f,missing:p,missingWarn:g,fallbackWarn:B,fallbackFormat:w,unresolving:Q,postTranslation:b,processor:v,warnHtmlMessage:_,escapeParameter:S,messageCompiler:E,messageResolver:L,localeFallbacker:U,fallbackContext:N,onWarn:e,__meta:Be};return ne.datetimeFormats=a,ne.numberFormats=c,ne.__datetimeFormatters=D,ne.__numberFormatters=se,process.env.NODE_ENV!=="production"&&(ne.__v_emitter=V.__v_emitter!=null?V.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&cT(ne,A,Be),ne}function Ta(t,e){return t instanceof RegExp?t.test(e):t}function qm(t,e){return t instanceof RegExp?t.test(e):t}function Ou(t,e,A,n,r){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:A,key:e,type:r,groupId:`${r}:${e}`})}if(i!==null){const a=i(t,A,e,r);return te(a)?a:e}else return process.env.NODE_ENV!=="production"&&qm(n,e)&&s(oi(at.NOT_FOUND_KEY,{key:e,locale:A})),e}function Js(t,e,A){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,A,e)}function Zm(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function UT(t,e){const A=e.indexOf(t);if(A===-1)return!1;for(let n=A+1;n<e.length;n++)if(Zm(t,e[n]))return!0;return!1}function Lu(t){return A=>vT(A,t)}function vT(t,e){const A=e.b||e.body;if((A.t||A.type)===1){const n=A,r=n.c||n.cases;return t.plural(r.reduce((i,s)=>[...i,jm(t,s)],[]))}else return jm(t,A)}function jm(t,e){const A=e.s||e.static;if(A)return t.type==="text"?A:t.normalize([A]);{const n=(e.i||e.items).reduce((r,i)=>[...r,Hu(t,i)],[]);return t.normalize(n)}}function Hu(t,e){const A=e.t||e.type;switch(A){case 3:{const n=e;return n.v||n.value}case 9:{const n=e;return n.v||n.value}case 4:{const n=e;return t.interpolate(t.named(n.k||n.key))}case 5:{const n=e;return t.interpolate(t.list(n.i!=null?n.i:n.index))}case 6:{const n=e,r=n.m||n.modifier;return t.linked(Hu(t,n.k||n.key),r?Hu(t,r):void 0,t.type)}case 7:{const n=e;return n.v||n.value}case 8:{const n=e;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${A}`)}}const IT="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function eB(t,e){e&&ES(t)&&Vn(Su(IT,{source:t}))}const AB=t=>t;let Ji=Object.create(null);function tB(t){t.code===va.USE_MODULO_SYNTAX&&Vn(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
129
+ */function JS(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const yr=[];yr[0]={w:[0],i:[3,0],"[":[4],o:[7]},yr[1]={w:[1],".":[2],"[":[4],o:[7]},yr[2]={w:[2],i:[3,0],0:[3,0]},yr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},yr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},yr[5]={"'":[4,0],o:8,l:[5,0]},yr[6]={'"':[4,0],o:8,l:[6,0]};const XS=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function YS(t){return XS.test(t)}function zS(t){const e=t.charCodeAt(0),A=t.charCodeAt(t.length-1);return e===A&&(e===34||e===39)?t.slice(1,-1):t}function qS(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ZS(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:YS(e)?zS(e):"*"+e}function jS(t){const e=[];let A=-1,n=0,r=0,i,s,a,c,u,f,p;const g=[];g[0]=()=>{s===void 0?s=a:s+=a},g[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},g[2]=()=>{g[0](),r++},g[3]=()=>{if(r>0)r--,n=4,g[0]();else{if(r=0,s===void 0||(s=ZS(s),s===!1))return!1;g[1]()}};function B(){const w=t[A+1];if(n===5&&w==="'"||n===6&&w==='"')return A++,a="\\"+w,g[0](),!0}for(;n!==null;)if(A++,i=t[A],!(i==="\\"&&B())){if(c=qS(i),p=yr[n],u=p[c]||p.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=g[u[1]],f&&(a=i,f()===!1))))return;if(n===7)return e}}const Hm=new Map;function eT(t,e){return We(t)?t[e]:null}function AT(t,e){if(!We(t))return null;let A=Hm.get(e);if(A||(A=jS(e),A&&Hm.set(e,A)),!A)return null;const n=A.length;let r=t,i=0;for(;i<n;){const s=r[A[i]];if(s===void 0||lA(r))return null;r=s,i++}return r}const tT=t=>t,nT=t=>"",rT="text",iT=t=>t.length===0?"":fS(t),sT=uS;function km(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function oT(t){const e=zA(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(zA(t.named.count)||zA(t.named.n))?zA(t.named.count)?t.named.count:zA(t.named.n)?t.named.n:e:e}function aT(t,e){e.count||(e.count=t),e.n||(e.n=t)}function lT(t={}){const e=t.locale,A=oT(t),n=We(t.pluralRules)&&te(e)&&lA(t.pluralRules[e])?t.pluralRules[e]:km,r=We(t.pluralRules)&&te(e)&&lA(t.pluralRules[e])?km:void 0,i=v=>v[n(A,v.length,r)],s=t.list||[],a=v=>s[v],c=t.named||{};zA(t.pluralIndex)&&aT(A,c);const u=v=>c[v];function f(v){const _=lA(t.messages)?t.messages(v):We(t.messages)?t.messages[v]:!1;return _||(t.parent?t.parent.message(v):nT)}const p=v=>t.modifiers?t.modifiers[v]:tT,g=_e(t.processor)&&lA(t.processor.normalize)?t.processor.normalize:iT,B=_e(t.processor)&&lA(t.processor.interpolate)?t.processor.interpolate:sT,w=_e(t.processor)&&te(t.processor.type)?t.processor.type:rT,b={list:a,named:u,plural:i,linked:(v,..._)=>{const[S,E]=_;let L="text",U="";_.length===1?We(S)?(U=S.modifier||U,L=S.type||L):te(S)&&(U=S||U):_.length===2&&(te(S)&&(U=S||U),te(E)&&(L=E||L));const N=f(v)(b),V=L==="vnode"&&bA(N)&&U?N[0]:N;return U?p(U)(V,L):V},message:f,type:w,interpolate:B,normalize:g,values:qA({},s,c)};return b}let Ws=null;function cT(t){Ws=t}function uT(t,e,A){Ws&&Ws.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:A})}const fT=dT("function:translate");function dT(t){return e=>Ws&&Ws.emit(t,e)}const Nm=va.__EXTEND_POINT__,si=Qa(Nm),at={NOT_FOUND_KEY:Nm,FALLBACK_TO_TRANSLATE:si(),CANNOT_FORMAT_NUMBER:si(),FALLBACK_TO_NUMBER_FORMAT:si(),CANNOT_FORMAT_DATE:si(),FALLBACK_TO_DATE_FORMAT:si(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:si(),__EXTEND_POINT__:si()},hT={[at.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[at.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[at.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[at.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[at.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[at.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function oi(t,...e){return Su(hT[t],...e)}const Dm=ge.__EXTEND_POINT__,ai=Qa(Dm),kA={INVALID_ARGUMENT:Dm,INVALID_DATE_ARGUMENT:ai(),INVALID_ISO_DATE_ARGUMENT:ai(),NOT_SUPPORT_NON_STRING_MESSAGE:ai(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ai(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ai(),NOT_SUPPORT_LOCALE_TYPE:ai(),__EXTEND_POINT__:ai()};function bn(t){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:pT}:void 0)}const pT={[kA.INVALID_ARGUMENT]:"Invalid arguments",[kA.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[kA.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[kA.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[kA.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[kA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[kA.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function _u(t,e){return e.locale!=null?Mm(e.locale):Mm(t.locale)}let xu;function Mm(t){if(te(t))return t;if(lA(t)){if(t.resolvedOnce&&xu!=null)return xu;if(t.constructor.name==="Function"){const e=t();if(cS(e))throw bn(kA.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return xu=e}else throw bn(kA.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bn(kA.NOT_SUPPORT_LOCALE_TYPE)}function gT(t,e,A){return[...new Set([A,...bA(e)?e:We(e)?Object.keys(e):te(e)?[e]:[A]])]}function Rm(t,e,A){const n=te(A)?A:$s,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[A];for(;bA(s);)s=Km(i,s,e);const a=bA(e)||!_e(e)?e:e.default?e.default:null;s=te(a)?[a]:a,bA(s)&&Km(i,s,!1),r.__localeChainCache.set(n,i)}return i}function Km(t,e,A){let n=!0;for(let r=0;r<e.length&&nA(n);r++){const i=e[r];te(i)&&(n=mT(t,e[r],A))}return n}function mT(t,e,A){let n;const r=e.split("-");do{const i=r.join("-");n=BT(t,i,A),r.splice(-1,1)}while(r.length&&n===!0);return n}function BT(t,e,A){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const r=e.replace(/!/g,"");t.push(r),(bA(A)||_e(A))&&A[r]&&(n=A[r])}return n}const wT="9.13.1",Ia=-1,$s="en-US",Sa="",Vm=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function CT(){return{upper:(t,e)=>e==="text"&&te(t)?t.toUpperCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&te(t)?t.toLowerCase():e==="vnode"&&We(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&te(t)?Vm(t):e==="vnode"&&We(t)&&"__v_isVNode"in t?Vm(t.children):t}}let Pm;function Gm(t){Pm=t}let Wm;function yT(t){Wm=t}let $m;function ET(t){$m=t}let Jm=null;const QT=t=>{Jm=t},FT=()=>Jm;let Xm=null;const Ym=t=>{Xm=t},bT=()=>Xm;let zm=0;function UT(t={}){const e=lA(t.onWarn)?t.onWarn:Vn,A=te(t.version)?t.version:wT,n=te(t.locale)||lA(t.locale)?t.locale:$s,r=lA(n)?$s:n,i=bA(t.fallbackLocale)||_e(t.fallbackLocale)||te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=_e(t.messages)?t.messages:{[r]:{}},a=_e(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=_e(t.numberFormats)?t.numberFormats:{[r]:{}},u=qA({},t.modifiers||{},CT()),f=t.pluralRules||{},p=lA(t.missing)?t.missing:null,g=nA(t.missingWarn)||Pi(t.missingWarn)?t.missingWarn:!0,B=nA(t.fallbackWarn)||Pi(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,Q=!!t.unresolving,b=lA(t.postTranslation)?t.postTranslation:null,v=_e(t.processor)?t.processor:null,_=nA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=lA(t.messageCompiler)?t.messageCompiler:Pm;process.env.NODE_ENV!=="production"&&lA(t.messageCompiler)&&vm(oi(at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=lA(t.messageResolver)?t.messageResolver:Wm||eT,U=lA(t.localeFallbacker)?t.localeFallbacker:$m||gT,N=We(t.fallbackContext)?t.fallbackContext:void 0,V=t,D=We(V.__datetimeFormatters)?V.__datetimeFormatters:new Map,se=We(V.__numberFormatters)?V.__numberFormatters:new Map,Be=We(V.__meta)?V.__meta:{};zm++;const ne={version:A,cid:zm,locale:n,fallbackLocale:i,messages:s,modifiers:u,pluralRules:f,missing:p,missingWarn:g,fallbackWarn:B,fallbackFormat:w,unresolving:Q,postTranslation:b,processor:v,warnHtmlMessage:_,escapeParameter:S,messageCompiler:E,messageResolver:L,localeFallbacker:U,fallbackContext:N,onWarn:e,__meta:Be};return ne.datetimeFormats=a,ne.numberFormats=c,ne.__datetimeFormatters=D,ne.__numberFormatters=se,process.env.NODE_ENV!=="production"&&(ne.__v_emitter=V.__v_emitter!=null?V.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&uT(ne,A,Be),ne}function Ta(t,e){return t instanceof RegExp?t.test(e):t}function qm(t,e){return t instanceof RegExp?t.test(e):t}function Ou(t,e,A,n,r){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:A,key:e,type:r,groupId:`${r}:${e}`})}if(i!==null){const a=i(t,A,e,r);return te(a)?a:e}else return process.env.NODE_ENV!=="production"&&qm(n,e)&&s(oi(at.NOT_FOUND_KEY,{key:e,locale:A})),e}function Js(t,e,A){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,A,e)}function Zm(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function vT(t,e){const A=e.indexOf(t);if(A===-1)return!1;for(let n=A+1;n<e.length;n++)if(Zm(t,e[n]))return!0;return!1}function Lu(t){return A=>IT(A,t)}function IT(t,e){const A=e.b||e.body;if((A.t||A.type)===1){const n=A,r=n.c||n.cases;return t.plural(r.reduce((i,s)=>[...i,jm(t,s)],[]))}else return jm(t,A)}function jm(t,e){const A=e.s||e.static;if(A)return t.type==="text"?A:t.normalize([A]);{const n=(e.i||e.items).reduce((r,i)=>[...r,Hu(t,i)],[]);return t.normalize(n)}}function Hu(t,e){const A=e.t||e.type;switch(A){case 3:{const n=e;return n.v||n.value}case 9:{const n=e;return n.v||n.value}case 4:{const n=e;return t.interpolate(t.named(n.k||n.key))}case 5:{const n=e;return t.interpolate(t.list(n.i!=null?n.i:n.index))}case 6:{const n=e,r=n.m||n.modifier;return t.linked(Hu(t,n.k||n.key),r?Hu(t,r):void 0,t.type)}case 7:{const n=e;return n.v||n.value}case 8:{const n=e;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${A}`)}}const ST="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function eB(t,e){e&&QS(t)&&Vn(Su(ST,{source:t}))}const AB=t=>t;let Ji=Object.create(null);function tB(t){t.code===va.USE_MODULO_SYNTAX&&Vn(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
130
130
  reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
131
- (message compiler warning message: ${t.message})`)}const li=t=>We(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function nB(t,e={}){let A=!1;const n=e.onError||CS;return e.onError=r=>{A=!0,n(r)},{...WS(t,e),detectError:A}}const ST=(t,e)=>{if(!te(t))throw bn(kA.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=tB);{const A=nA(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&eB(t,A);const r=(e.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{code:s,detectError:a}=nB(t,e),c=new Function(`return ${s}`)();return a?c:Ji[r]=c}};function TT(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=tB),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&te(t)){const A=nA(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&eB(t,A);const r=(e.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{ast:s,detectError:a}=nB(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),c=Lu(s);return a?c:Ji[r]=c}else{if(process.env.NODE_ENV!=="production"&&!li(t))return Vn(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const A=t.cacheKey;if(A){const n=Ji[A];return n||(Ji[A]=Lu(t))}else return Lu(t)}}const rB=()=>"",Vt=t=>lA(t);function iB(t,...e){const{fallbackFormat:A,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=ku(...e),f=nA(u.missingWarn)?u.missingWarn:t.missingWarn,p=nA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=nA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,B=!!u.resolvedMessage,w=te(u.default)||nA(u.default)?nA(u.default)?i?c:()=>c:u.default:A?i?c:()=>c:"",Q=A||w!=="",b=_u(t,u);g&&_T(u);let[v,_,S]=B?[c,b,a[b]||{}]:sB(t,c,b,s,p,f),E=v,L=c;if(!B&&!(te(E)||li(E)||Vt(E))&&Q&&(E=w,L=E),!B&&(!(te(E)||li(E)||Vt(E))||!te(_)))return r?Ia:c;if(process.env.NODE_ENV!=="production"&&te(E)&&t.messageCompiler==null)return Vn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let U=!1;const N=()=>{U=!0},V=Vt(E)?E:oB(t,c,_,E,L,N);if(U)return E;const D=HT(t,_,S,u),se=aT(D),Be=xT(t,V,se),ne=n?n(Be,c):Be;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:te(c)?c:Vt(E)?E.key:"",locale:_||(Vt(E)?E.locale:""),format:te(E)?E:Vt(E)?E.source:"",message:ne};ce.meta=qA({},t.__meta,QT()||{}),uT(ce)}return ne}function _T(t){bA(t.list)?t.list=t.list.map(e=>te(e)?Em(e):e):We(t.named)&&Object.keys(t.named).forEach(e=>{te(t.named[e])&&(t.named[e]=Em(t.named[e]))})}function sB(t,e,A,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,A);let p={},g,B=null,w=A,Q=null;const b="translate";for(let v=0;v<f.length;v++){if(g=Q=f[v],process.env.NODE_ENV!=="production"&&A!==g&&!Zm(A,g)&&Ta(r,e)&&a(oi(at.FALLBACK_TO_TRANSLATE,{key:e,target:g})),process.env.NODE_ENV!=="production"&&A!==g){const L=t.__v_emitter;L&&L.emit("fallback",{type:b,key:e,from:w,to:Q,groupId:`${b}:${e}`})}p=s[g]||{};let _=null,S,E;if(process.env.NODE_ENV!=="production"&&Mn&&(_=window.performance.now(),S="intlify-message-resolve-start",E="intlify-message-resolve-end",St&&St(S)),(B=c(p,e))===null&&(B=p[e]),process.env.NODE_ENV!=="production"&&Mn){const L=window.performance.now(),U=t.__v_emitter;U&&_&&B&&U.emit("message-resolve",{type:"message-resolve",key:e,message:B,time:L-_,groupId:`${b}:${e}`}),S&&E&&St&&ii&&(St(E),ii("intlify message resolve",S,E))}if(te(B)||li(B)||Vt(B))break;if(!UT(g,f)){const L=Ou(t,e,g,i,b);L!==e&&(B=L)}w=Q}return[B,g,p]}function oB(t,e,A,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Vt(n)){const g=n;return g.locale=g.locale||A,g.key=g.key||e,g}if(s==null){const g=()=>n;return g.locale=A,g.key=e,g}let c=null,u,f;process.env.NODE_ENV!=="production"&&Mn&&(c=window.performance.now(),u="intlify-message-compilation-start",f="intlify-message-compilation-end",St&&St(u));const p=s(n,OT(t,A,r,n,a,i));if(process.env.NODE_ENV!=="production"&&Mn){const g=window.performance.now(),B=t.__v_emitter;B&&c&&B.emit("message-compilation",{type:"message-compilation",message:n,time:g-c,groupId:`translate:${e}`}),u&&f&&St&&ii&&(St(f),ii("intlify message compilation",u,f))}return p.locale=A,p.key=e,p.source=n,p}function xT(t,e,A){let n=null,r,i;process.env.NODE_ENV!=="production"&&Mn&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",St&&St(r));const s=e(A);if(process.env.NODE_ENV!=="production"&&Mn){const a=window.performance.now(),c=t.__v_emitter;c&&n&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:a-n,groupId:`translate:${e.key}`}),r&&i&&St&&ii&&(St(i),ii("intlify message evaluation",r,i))}return s}function ku(...t){const[e,A,n]=t,r={};if(!te(e)&&!zA(e)&&!Vt(e)&&!li(e))throw bn(kA.INVALID_ARGUMENT);const i=zA(e)?String(e):(Vt(e),e);return zA(A)?r.plural=A:te(A)?r.default=A:_e(A)&&!ya(A)?r.named=A:bA(A)&&(r.list=A),zA(n)?r.plural=n:te(n)?r.default=n:_e(n)&&qA(r,n),[i,r]}function OT(t,e,A,n,r,i){return{locale:e,key:A,warnHtmlMessage:r,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=LT(n),c=`Message compilation error: ${s.message}`,u=s.location&&a&&fS(a,s.location.start.offset,s.location.end.offset),f=t.__v_emitter;f&&a&&f.emit("compile-error",{message:a,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${A}`}),console.error(u?`${c}
132
- ${u}`:c)}else throw s},onCacheKey:s=>iS(e,A,s)}}function LT(t){if(te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function HT(t,e,A,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=t,g={locale:e,modifiers:r,pluralRules:i,messages:B=>{let w=s(A,B);if(w==null&&f){const[,,Q]=sB(f,B,e,a,c,u);w=s(Q,B)}if(te(w)||li(w)){let Q=!1;const v=oB(t,B,e,w,B,()=>{Q=!0});return Q?rB:v}else return Vt(w)?w:rB}};return t.processor&&(g.processor=t.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),zA(n.plural)&&(g.pluralIndex=n.plural),g}const aB=typeof Intl<"u",lB={dateTimeFormat:aB&&typeof Intl.DateTimeFormat<"u",numberFormat:aB&&typeof Intl.NumberFormat<"u"};function cB(t,...e){const{datetimeFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!lB.dateTimeFormat)return i(oi(at.CANNOT_FORMAT_DATE)),Sa;const[c,u,f,p]=Nu(...e),g=nA(f.missingWarn)?f.missingWarn:t.missingWarn,B=nA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!te(c)||c==="")return new Intl.DateTimeFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="datetime format";for(let D=0;D<b.length;D++){if(_=L=b[D],process.env.NODE_ENV!=="production"&&Q!==_&&Ta(B,c)&&i(oi(at.FALLBACK_TO_DATE_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&Q!==_){const se=t.__v_emitter;se&&se.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=A[_]||{},S=v[c],_e(S))break;Ou(t,c,_,g,U),E=L}if(!_e(S)||!te(_))return n?Ia:c;let N=`${_}__${c}`;ya(p)||(N=`${N}__${JSON.stringify(p)}`);let V=a.get(N);return V||(V=new Intl.DateTimeFormat(_,qA({},S,p)),a.set(N,V)),w?V.formatToParts(u):V.format(u)}const uB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Nu(...t){const[e,A,n,r]=t,i={};let s={},a;if(te(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw bn(kA.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(u);try{a.toISOString()}catch{throw bn(kA.INVALID_ISO_DATE_ARGUMENT)}}else if(oS(e)){if(isNaN(e.getTime()))throw bn(kA.INVALID_DATE_ARGUMENT);a=e}else if(zA(e))a=e;else throw bn(kA.INVALID_ARGUMENT);return te(A)?i.key=A:_e(A)&&Object.keys(A).forEach(c=>{uB.includes(c)?s[c]=A[c]:i[c]=A[c]}),te(n)?i.locale=n:_e(n)&&(s=n),_e(r)&&(s=r),[i.key||"",a,i,s]}function fB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function dB(t,...e){const{numberFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!lB.numberFormat)return i(oi(at.CANNOT_FORMAT_NUMBER)),Sa;const[c,u,f,p]=Du(...e),g=nA(f.missingWarn)?f.missingWarn:t.missingWarn,B=nA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!te(c)||c==="")return new Intl.NumberFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="number format";for(let D=0;D<b.length;D++){if(_=L=b[D],process.env.NODE_ENV!=="production"&&Q!==_&&Ta(B,c)&&i(oi(at.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&Q!==_){const se=t.__v_emitter;se&&se.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=A[_]||{},S=v[c],_e(S))break;Ou(t,c,_,g,U),E=L}if(!_e(S)||!te(_))return n?Ia:c;let N=`${_}__${c}`;ya(p)||(N=`${N}__${JSON.stringify(p)}`);let V=a.get(N);return V||(V=new Intl.NumberFormat(_,qA({},S,p)),a.set(N,V)),w?V.formatToParts(u):V.format(u)}const hB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Du(...t){const[e,A,n,r]=t,i={};let s={};if(!zA(e))throw bn(kA.INVALID_ARGUMENT);const a=e;return te(A)?i.key=A:_e(A)&&Object.keys(A).forEach(c=>{hB.includes(c)?s[c]=A[c]:i[c]=A[c]}),te(n)?i.locale=n:_e(n)&&(s=n),_e(r)&&(s=r),[i.key||"",a,i,s]}function pB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}$S();/*!
131
+ (message compiler warning message: ${t.message})`)}const li=t=>We(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function nB(t,e={}){let A=!1;const n=e.onError||yS;return e.onError=r=>{A=!0,n(r)},{...$S(t,e),detectError:A}}const TT=(t,e)=>{if(!te(t))throw bn(kA.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=tB);{const A=nA(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&eB(t,A);const r=(e.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{code:s,detectError:a}=nB(t,e),c=new Function(`return ${s}`)();return a?c:Ji[r]=c}};function _T(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=tB),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&te(t)){const A=nA(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&eB(t,A);const r=(e.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{ast:s,detectError:a}=nB(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),c=Lu(s);return a?c:Ji[r]=c}else{if(process.env.NODE_ENV!=="production"&&!li(t))return Vn(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const A=t.cacheKey;if(A){const n=Ji[A];return n||(Ji[A]=Lu(t))}else return Lu(t)}}const rB=()=>"",Vt=t=>lA(t);function iB(t,...e){const{fallbackFormat:A,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=ku(...e),f=nA(u.missingWarn)?u.missingWarn:t.missingWarn,p=nA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=nA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,B=!!u.resolvedMessage,w=te(u.default)||nA(u.default)?nA(u.default)?i?c:()=>c:u.default:A?i?c:()=>c:"",Q=A||w!=="",b=_u(t,u);g&&xT(u);let[v,_,S]=B?[c,b,a[b]||{}]:sB(t,c,b,s,p,f),E=v,L=c;if(!B&&!(te(E)||li(E)||Vt(E))&&Q&&(E=w,L=E),!B&&(!(te(E)||li(E)||Vt(E))||!te(_)))return r?Ia:c;if(process.env.NODE_ENV!=="production"&&te(E)&&t.messageCompiler==null)return Vn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let U=!1;const N=()=>{U=!0},V=Vt(E)?E:oB(t,c,_,E,L,N);if(U)return E;const D=kT(t,_,S,u),se=lT(D),Be=OT(t,V,se),ne=n?n(Be,c):Be;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:te(c)?c:Vt(E)?E.key:"",locale:_||(Vt(E)?E.locale:""),format:te(E)?E:Vt(E)?E.source:"",message:ne};ce.meta=qA({},t.__meta,FT()||{}),fT(ce)}return ne}function xT(t){bA(t.list)?t.list=t.list.map(e=>te(e)?Em(e):e):We(t.named)&&Object.keys(t.named).forEach(e=>{te(t.named[e])&&(t.named[e]=Em(t.named[e]))})}function sB(t,e,A,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,A);let p={},g,B=null,w=A,Q=null;const b="translate";for(let v=0;v<f.length;v++){if(g=Q=f[v],process.env.NODE_ENV!=="production"&&A!==g&&!Zm(A,g)&&Ta(r,e)&&a(oi(at.FALLBACK_TO_TRANSLATE,{key:e,target:g})),process.env.NODE_ENV!=="production"&&A!==g){const L=t.__v_emitter;L&&L.emit("fallback",{type:b,key:e,from:w,to:Q,groupId:`${b}:${e}`})}p=s[g]||{};let _=null,S,E;if(process.env.NODE_ENV!=="production"&&Mn&&(_=window.performance.now(),S="intlify-message-resolve-start",E="intlify-message-resolve-end",St&&St(S)),(B=c(p,e))===null&&(B=p[e]),process.env.NODE_ENV!=="production"&&Mn){const L=window.performance.now(),U=t.__v_emitter;U&&_&&B&&U.emit("message-resolve",{type:"message-resolve",key:e,message:B,time:L-_,groupId:`${b}:${e}`}),S&&E&&St&&ii&&(St(E),ii("intlify message resolve",S,E))}if(te(B)||li(B)||Vt(B))break;if(!vT(g,f)){const L=Ou(t,e,g,i,b);L!==e&&(B=L)}w=Q}return[B,g,p]}function oB(t,e,A,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Vt(n)){const g=n;return g.locale=g.locale||A,g.key=g.key||e,g}if(s==null){const g=()=>n;return g.locale=A,g.key=e,g}let c=null,u,f;process.env.NODE_ENV!=="production"&&Mn&&(c=window.performance.now(),u="intlify-message-compilation-start",f="intlify-message-compilation-end",St&&St(u));const p=s(n,LT(t,A,r,n,a,i));if(process.env.NODE_ENV!=="production"&&Mn){const g=window.performance.now(),B=t.__v_emitter;B&&c&&B.emit("message-compilation",{type:"message-compilation",message:n,time:g-c,groupId:`translate:${e}`}),u&&f&&St&&ii&&(St(f),ii("intlify message compilation",u,f))}return p.locale=A,p.key=e,p.source=n,p}function OT(t,e,A){let n=null,r,i;process.env.NODE_ENV!=="production"&&Mn&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",St&&St(r));const s=e(A);if(process.env.NODE_ENV!=="production"&&Mn){const a=window.performance.now(),c=t.__v_emitter;c&&n&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:a-n,groupId:`translate:${e.key}`}),r&&i&&St&&ii&&(St(i),ii("intlify message evaluation",r,i))}return s}function ku(...t){const[e,A,n]=t,r={};if(!te(e)&&!zA(e)&&!Vt(e)&&!li(e))throw bn(kA.INVALID_ARGUMENT);const i=zA(e)?String(e):(Vt(e),e);return zA(A)?r.plural=A:te(A)?r.default=A:_e(A)&&!ya(A)?r.named=A:bA(A)&&(r.list=A),zA(n)?r.plural=n:te(n)?r.default=n:_e(n)&&qA(r,n),[i,r]}function LT(t,e,A,n,r,i){return{locale:e,key:A,warnHtmlMessage:r,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=HT(n),c=`Message compilation error: ${s.message}`,u=s.location&&a&&dS(a,s.location.start.offset,s.location.end.offset),f=t.__v_emitter;f&&a&&f.emit("compile-error",{message:a,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${A}`}),console.error(u?`${c}
132
+ ${u}`:c)}else throw s},onCacheKey:s=>sS(e,A,s)}}function HT(t){if(te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function kT(t,e,A,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=t,g={locale:e,modifiers:r,pluralRules:i,messages:B=>{let w=s(A,B);if(w==null&&f){const[,,Q]=sB(f,B,e,a,c,u);w=s(Q,B)}if(te(w)||li(w)){let Q=!1;const v=oB(t,B,e,w,B,()=>{Q=!0});return Q?rB:v}else return Vt(w)?w:rB}};return t.processor&&(g.processor=t.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),zA(n.plural)&&(g.pluralIndex=n.plural),g}const aB=typeof Intl<"u",lB={dateTimeFormat:aB&&typeof Intl.DateTimeFormat<"u",numberFormat:aB&&typeof Intl.NumberFormat<"u"};function cB(t,...e){const{datetimeFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!lB.dateTimeFormat)return i(oi(at.CANNOT_FORMAT_DATE)),Sa;const[c,u,f,p]=Nu(...e),g=nA(f.missingWarn)?f.missingWarn:t.missingWarn,B=nA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!te(c)||c==="")return new Intl.DateTimeFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="datetime format";for(let D=0;D<b.length;D++){if(_=L=b[D],process.env.NODE_ENV!=="production"&&Q!==_&&Ta(B,c)&&i(oi(at.FALLBACK_TO_DATE_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&Q!==_){const se=t.__v_emitter;se&&se.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=A[_]||{},S=v[c],_e(S))break;Ou(t,c,_,g,U),E=L}if(!_e(S)||!te(_))return n?Ia:c;let N=`${_}__${c}`;ya(p)||(N=`${N}__${JSON.stringify(p)}`);let V=a.get(N);return V||(V=new Intl.DateTimeFormat(_,qA({},S,p)),a.set(N,V)),w?V.formatToParts(u):V.format(u)}const uB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Nu(...t){const[e,A,n,r]=t,i={};let s={},a;if(te(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw bn(kA.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(u);try{a.toISOString()}catch{throw bn(kA.INVALID_ISO_DATE_ARGUMENT)}}else if(aS(e)){if(isNaN(e.getTime()))throw bn(kA.INVALID_DATE_ARGUMENT);a=e}else if(zA(e))a=e;else throw bn(kA.INVALID_ARGUMENT);return te(A)?i.key=A:_e(A)&&Object.keys(A).forEach(c=>{uB.includes(c)?s[c]=A[c]:i[c]=A[c]}),te(n)?i.locale=n:_e(n)&&(s=n),_e(r)&&(s=r),[i.key||"",a,i,s]}function fB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function dB(t,...e){const{numberFormats:A,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!lB.numberFormat)return i(oi(at.CANNOT_FORMAT_NUMBER)),Sa;const[c,u,f,p]=Du(...e),g=nA(f.missingWarn)?f.missingWarn:t.missingWarn,B=nA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!te(c)||c==="")return new Intl.NumberFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="number format";for(let D=0;D<b.length;D++){if(_=L=b[D],process.env.NODE_ENV!=="production"&&Q!==_&&Ta(B,c)&&i(oi(at.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&Q!==_){const se=t.__v_emitter;se&&se.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=A[_]||{},S=v[c],_e(S))break;Ou(t,c,_,g,U),E=L}if(!_e(S)||!te(_))return n?Ia:c;let N=`${_}__${c}`;ya(p)||(N=`${N}__${JSON.stringify(p)}`);let V=a.get(N);return V||(V=new Intl.NumberFormat(_,qA({},S,p)),a.set(N,V)),w?V.formatToParts(u):V.format(u)}const hB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Du(...t){const[e,A,n,r]=t,i={};let s={};if(!zA(e))throw bn(kA.INVALID_ARGUMENT);const a=e;return te(A)?i.key=A:_e(A)&&Object.keys(A).forEach(c=>{hB.includes(c)?s[c]=A[c]:i[c]=A[c]}),te(n)?i.locale=n:_e(n)&&(s=n),_e(r)&&(s=r),[i.key||"",a,i,s]}function pB(t,e,A){const n=t;for(const r in A){const i=`${e}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}JS();/*!
133
133
  * vue-i18n v9.13.1
134
134
  * (c) 2024 kazuya kawaguchi
135
135
  * Released under the MIT License.
136
- */const kT="9.13.1";function NT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kn().__INTLIFY_PROD_DEVTOOLS__=!1)}const gB=at.__EXTEND_POINT__,Gn=Qa(gB),mt={FALLBACK_TO_ROOT:gB,NOT_SUPPORTED_PRESERVE:Gn(),NOT_SUPPORTED_FORMATTER:Gn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Gn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Gn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Gn(),NOT_FOUND_PARENT_SCOPE:Gn(),IGNORE_OBJ_FLATTEN:Gn(),NOTICE_DROP_ALLOW_COMPOSITION:Gn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Gn()},DT={[mt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[mt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[mt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[mt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[mt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[mt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[mt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[mt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[mt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function _a(t,...e){return Su(DT[t],...e)}const mB=kA.__EXTEND_POINT__,Bt=Qa(mB),hA={UNEXPECTED_RETURN_TYPE:mB,INVALID_ARGUMENT:Bt(),MUST_BE_CALL_SETUP_TOP:Bt(),NOT_INSTALLED:Bt(),NOT_AVAILABLE_IN_LEGACY_MODE:Bt(),REQUIRED_VALUE:Bt(),INVALID_VALUE:Bt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bt(),NOT_INSTALLED_WITH_PROVIDE:Bt(),UNEXPECTED_ERROR:Bt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bt(),BRIDGE_SUPPORT_VUE_2_ONLY:Bt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bt(),__EXTEND_POINT__:Bt()};function Er(t,...e){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:MT,args:e}:void 0)}const MT={[hA.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[hA.INVALID_ARGUMENT]:"Invalid argument",[hA.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[hA.NOT_INSTALLED]:"Need to install with `app.use` function",[hA.UNEXPECTED_ERROR]:"Unexpected error",[hA.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[hA.REQUIRED_VALUE]:"Required in value: {0}",[hA.INVALID_VALUE]:"Invalid value",[hA.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[hA.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[hA.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[hA.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[hA.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[hA.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Mu=Rn("__translateVNode"),Ru=Rn("__datetimeParts"),Ku=Rn("__numberParts"),Vu=Rn("__enableEmitter"),Pu=Rn("__disableEmitter"),RT=Rn("__setPluralRules"),BB=Rn("__injectWithOption"),Gu=Rn("__dispose");function Xs(t){if(!We(t))return t;for(const e in t)if(Ea(t,e))if(!e.includes("."))We(t[e])&&Xs(t[e]);else{const A=e.split("."),n=A.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(A[s]in r||(r[A[s]]={}),!We(r[A[s]])){process.env.NODE_ENV!=="production"&&Vn(_a(mt.IGNORE_OBJ_FLATTEN,{key:A[s]})),i=!0;break}r=r[A[s]]}i||(r[A[n]]=t[e],delete t[e]),We(r[A[n]])&&Xs(r[A[n]])}return t}function Wu(t,e){const{messages:A,__i18n:n,messageResolver:r,flatJson:i}=e,s=_e(A)?A:bA(n)?{}:{[t]:{}};if(bA(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},ba(u,s[c])):ba(u,s)}else te(a)&&ba(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ea(s,a)&&Xs(s[a]);return s}function wB(t){return t.type}function KT(t,e,A){let n=We(e.messages)?e.messages:{};"__i18nGlobal"in A&&(n=Wu(t.locale.value,{messages:n,__i18n:A.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(We(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(We(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function CB(t){return h.createVNode(h.Text,null,t,0)}const yB="__INTLIFY_META__",EB=()=>[],VT=()=>!1;let QB=0;function FB(t){return(e,A,n,r)=>t(A,n,h.getCurrentInstance()||void 0,r)}const PT=()=>{const t=h.getCurrentInstance();let e=null;return t&&(e=wB(t)[yB])?{[yB]:e}:null};function GT(t={},e){const{__root:A,__injectWithOption:n}=t,r=A===void 0,i=t.flatJson,s=Mn?h.ref:h.shallowRef,a=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&vm(_a(mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=nA(t.inheritLocale)?t.inheritLocale:!0;const u=s(A&&c?A.locale.value:te(t.locale)?t.locale:$s),f=s(A&&c?A.fallbackLocale.value:te(t.fallbackLocale)||bA(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_e(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),B=s(_e(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=A?A.missingWarn:nA(t.missingWarn)||Pi(t.missingWarn)?t.missingWarn:!0,Q=A?A.fallbackWarn:nA(t.fallbackWarn)||Pi(t.fallbackWarn)?t.fallbackWarn:!0,b=A?A.fallbackRoot:nA(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=lA(t.missing)?t.missing:null,S=lA(t.missing)?FB(t.missing):null,E=lA(t.postTranslation)?t.postTranslation:null,L=A?A.warnHtmlMessage:nA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const N=A?A.modifiers:_e(t.modifiers)?t.modifiers:{};let V=t.pluralRules||A&&A.pluralRules,D;D=(()=>{r&&Ym(null);const R={version:kT,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:N,pluralRules:V,missing:S===null?void 0:S,missingWarn:w,fallbackWarn:Q,fallbackFormat:v,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:L,escapeParameter:U,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=g.value,R.numberFormats=B.value,R.__datetimeFormatters=_e(D)?D.__datetimeFormatters:void 0,R.__numberFormatters=_e(D)?D.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_e(D)?D.__v_emitter:void 0);const X=bT(R);return r&&Ym(X),X})(),Js(D,u.value,f.value);function Be(){return[u.value,f.value,p.value,g.value,B.value]}const ne=h.computed({get:()=>u.value,set:R=>{u.value=R,D.locale=u.value}}),ce=h.computed({get:()=>f.value,set:R=>{f.value=R,D.fallbackLocale=f.value,Js(D,u.value,R)}}),Le=h.computed(()=>p.value),oA=h.computed(()=>g.value),Re=h.computed(()=>B.value);function He(){return lA(E)?E:null}function re(R){E=R,D.postTranslation=R}function me(){return _}function Xe(R){R!==null&&(S=FB(R)),_=R,D.missing=S}function ke(R,X){return R!=="translate"||!X.resolvedMessage}const Ge=(R,X,Se,rA,Ct,Tn)=>{Be();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=A?FT():void 0),Jt=R(D)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=void 0)}if(Se!=="translate exists"&&zA(Jt)&&Jt===Ia||Se==="translate exists"&&!Jt){const[K,ie]=X();if(process.env.NODE_ENV!=="production"&&A&&te(K)&&ke(Se,ie)&&(b&&(Ta(Q,K)||qm(w,K))&&Vn(_a(mt.FALLBACK_TO_ROOT,{key:K,type:Se})),process.env.NODE_ENV!=="production")){const{__v_emitter:ue}=D;ue&&b&&ue.emit("fallback",{type:Se,key:K,to:"global",groupId:`${Se}:${K}`})}return A&&b?rA(A):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(hA.UNEXPECTED_RETURN_TYPE)}};function Ke(...R){return Ge(X=>Reflect.apply(iB,null,[X,...R]),()=>ku(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>te(X))}function eA(...R){const[X,Se,rA]=R;if(rA&&!We(rA))throw Er(hA.INVALID_ARGUMENT);return Ke(X,Se,qA({resolvedMessage:!0},rA||{}))}function AA(...R){return Ge(X=>Reflect.apply(cB,null,[X,...R]),()=>Nu(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Sa,X=>te(X))}function ze(...R){return Ge(X=>Reflect.apply(dB,null,[X,...R]),()=>Du(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Sa,X=>te(X))}function pA(R){return R.map(X=>te(X)||zA(X)||nA(X)?CB(String(X)):X)}const et={normalize:pA,interpolate:R=>R,type:"vnode"};function ut(...R){return Ge(X=>{let Se;const rA=X;try{rA.processor=et,Se=Reflect.apply(iB,null,[rA,...R])}finally{rA.processor=null}return Se},()=>ku(...R),"translate",X=>X[Mu](...R),X=>[CB(X)],X=>bA(X))}function _t(...R){return Ge(X=>Reflect.apply(dB,null,[X,...R]),()=>Du(...R),"number format",X=>X[Ku](...R),EB,X=>te(X)||bA(X))}function xt(...R){return Ge(X=>Reflect.apply(cB,null,[X,...R]),()=>Nu(...R),"datetime format",X=>X[Ru](...R),EB,X=>te(X)||bA(X))}function un(R){V=R,D.pluralRules=V}function z(R,X){return Ge(()=>{if(!R)return!1;const Se=te(X)?X:u.value,rA=vA(Se),Ct=D.messageResolver(rA,R);return a?Ct!=null:li(Ct)||Vt(Ct)||te(Ct)},()=>[R],"translate exists",Se=>Reflect.apply(Se.te,Se,[R,X]),VT,Se=>nA(Se))}function Ue(R){let X=null;const Se=Rm(D,f.value,u.value);for(let rA=0;rA<Se.length;rA++){const Ct=p.value[Se[rA]]||{},Tn=D.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=Ue(R);return X??(A?A.tm(R)||{}:{})}function vA(R){return p.value[R]||{}}function fn(R,X){if(i){const Se={[R]:X};for(const rA in Se)Ea(Se,rA)&&Xs(Se[rA]);X=Se[R]}p.value[R]=X,D.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const Se={[R]:X};if(i)for(const rA in Se)Ea(Se,rA)&&Xs(Se[rA]);X=Se[R],ba(X,p.value[R]),D.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,D.datetimeFormats=g.value,fB(D,R,X)}function $(R,X){g.value[R]=qA(g.value[R]||{},X),D.datetimeFormats=g.value,fB(D,R,X)}function oe(R){return B.value[R]||{}}function tA(R,X){B.value[R]=X,D.numberFormats=B.value,pB(D,R,X)}function Ne(R,X){B.value[R]=qA(B.value[R]||{},X),D.numberFormats=B.value,pB(D,R,X)}QB++,A&&Mn&&(h.watch(A.locale,R=>{c&&(u.value=R,D.locale=R,Js(D,u.value,f.value))}),h.watch(A.fallbackLocale,R=>{c&&(f.value=R,D.fallbackLocale=R,Js(D,u.value,f.value))}));const Ve={id:QB,locale:ne,fallbackLocale:ce,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&A&&(u.value=A.locale.value,f.value=A.fallbackLocale.value,Js(D,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Le,get modifiers(){return N},get pluralRules(){return V||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,D.missingWarn=w},get fallbackWarn(){return Q},set fallbackWarn(R){Q=R,D.fallbackWarn=Q},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,D.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,D.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,D.escapeParameter=R},t:Ke,getLocaleMessage:vA,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:He,setPostTranslationHandler:re,getMissingHandler:me,setMissingHandler:Xe,[RT]:un};return Ve.datetimeFormats=oA,Ve.numberFormats=Re,Ve.rt=eA,Ve.te=z,Ve.tm=Sn,Ve.d=AA,Ve.n=ze,Ve.getDateTimeFormat=T,Ve.setDateTimeFormat=x,Ve.mergeDateTimeFormat=$,Ve.getNumberFormat=oe,Ve.setNumberFormat=tA,Ve.mergeNumberFormat=Ne,Ve[BB]=n,Ve[Mu]=ut,Ve[Ru]=xt,Ve[Ku]=_t,process.env.NODE_ENV!=="production"&&(Ve[Vu]=R=>{D.__v_emitter=R},Ve[Pu]=()=>{D.__v_emitter=void 0}),Ve}const $u={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function WT({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):e.reduce((A,n)=>{const r=t[n];return r&&(A[n]=r()),A},{})}function bB(t){return h.Fragment}qA({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>zA(t)||!isNaN(t)}},$u);function $T(t){return bA(t)&&!te(t[0])}function UB(t,e,A,n){const{slots:r,attrs:i}=e;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),te(t.format)?s.key=t.format:We(t.format)&&(te(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,B)=>A.includes(B)?qA({},g,{[B]:t.format[B]}):g,{}));const c=n(t.value,s,a);let u=[s.key];bA(c)?u=c.map((g,B)=>{const w=r[g.type],Q=w?w({[g.type]:g.value,index:B,parts:c}):[g.value];return $T(Q)&&(Q[0].key=`${g.type}-${B}`),Q}):te(c)&&(u=[c]);const f=qA({},i),p=te(t.tag)||We(t.tag)?t.tag:bB();return h.h(p,f,u)}}qA({value:{type:Number,required:!0},format:{type:[String,Object]}},$u),qA({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$u);function vB(t,e){}const JT=Rn("global-vue-i18n");function xa(t={}){const e=h.getCurrentInstance();if(e==null)throw Er(hA.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Er(hA.NOT_INSTALLED);const A=XT(e),n=zT(A),r=wB(e),i=YT(t,r);if(__VUE_I18N_LEGACY_API__&&A.mode==="legacy"&&!t.__useComponent){if(!A.allowComposition)throw Er(hA.NOT_AVAILABLE_IN_LEGACY_MODE);return e_(e,i,n,t)}if(i==="global")return KT(n,t,r),n;if(i==="parent"){let c=qT(A,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Vn(_a(mt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=A;let a=s.__getInstance(e);if(a==null){const c=qA({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=GT(c),s.__composerExtend&&(a[Gu]=s.__composerExtend(a)),jT(s,e,a),s.__setInstance(e,a)}return a}function XT(t){{const e=h.inject(t.isCE?JT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Er(t.isCE?hA.NOT_INSTALLED_WITH_PROVIDE:hA.UNEXPECTED_ERROR);return e}}function YT(t,e){return ya(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function zT(t){return t.mode==="composition"?t.global:t.global.__composer}function qT(t,e,A=!1){let n=null;const r=e.root;let i=ZT(e,A);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,A&&n&&!n[BB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function ZT(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function jT(t,e,A){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=A,n=dS();const r=A;r[Vu]&&r[Vu](n),n.on("*",vB)}},e),h.onUnmounted(()=>{const r=A;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(n&&n.off("*",vB),r[Pu]&&r[Pu](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=r[Gu];i&&(i(),delete r[Gu])},e)}function e_(t,e,A,n={}){const r=e==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(hA.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=nA(n.inheritLocale)?n.inheritLocale:!te(n.locale),a=h.ref(!r||s?A.locale.value:te(n.locale)?n.locale:$s),c=h.ref(!r||s?A.fallbackLocale.value:te(n.fallbackLocale)||bA(n.fallbackLocale)||_e(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_e(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_e(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?A.missingWarn:nA(n.missingWarn)||Pi(n.missingWarn)?n.missingWarn:!0,B=r?A.fallbackWarn:nA(n.fallbackWarn)||Pi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?A.fallbackRoot:nA(n.fallbackRoot)?n.fallbackRoot:!0,Q=!!n.fallbackFormat,b=lA(n.missing)?n.missing:null,v=lA(n.postTranslation)?n.postTranslation:null,_=r?A.warnHtmlMessage:nA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?A.modifiers:_e(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&A.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),V=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),D=h.computed(()=>i.value?i.value.messages.value:u.value),se=h.computed(()=>f.value),Be=h.computed(()=>p.value);function ne(){return i.value?i.value.getPostTranslationHandler():v}function ce(z){i.value&&i.value.setPostTranslationHandler(z)}function Le(){return i.value?i.value.getMissingHandler():b}function oA(z){i.value&&i.value.setMissingHandler(z)}function Re(z){return U(),z()}function He(...z){return i.value?Re(()=>Reflect.apply(i.value.t,null,[...z])):Re(()=>"")}function re(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function me(...z){return i.value?Re(()=>Reflect.apply(i.value.d,null,[...z])):Re(()=>"")}function Xe(...z){return i.value?Re(()=>Reflect.apply(i.value.n,null,[...z])):Re(()=>"")}function ke(z){return i.value?i.value.tm(z):{}}function Ge(z,Ue){return i.value?i.value.te(z,Ue):!1}function Ke(z){return i.value?i.value.getLocaleMessage(z):{}}function eA(z,Ue){i.value&&(i.value.setLocaleMessage(z,Ue),u.value[z]=Ue)}function AA(z,Ue){i.value&&i.value.mergeLocaleMessage(z,Ue)}function ze(z){return i.value?i.value.getDateTimeFormat(z):{}}function pA(z,Ue){i.value&&(i.value.setDateTimeFormat(z,Ue),f.value[z]=Ue)}function ct(z,Ue){i.value&&i.value.mergeDateTimeFormat(z,Ue)}function et(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,Ue){i.value&&(i.value.setNumberFormat(z,Ue),p.value[z]=Ue)}function _t(z,Ue){i.value&&i.value.mergeNumberFormat(z,Ue)}const xt={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:V,messages:D,datetimeFormats:se,numberFormats:Be,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(z){i.value&&(i.value.inheritLocale=z)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:E},get pluralRules(){return i.value?i.value.pluralRules:L},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(z){i.value&&(i.value.missingWarn=z)},get fallbackWarn(){return i.value?i.value.fallbackWarn:B},set fallbackWarn(z){i.value&&(i.value.missingWarn=z)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(z){i.value&&(i.value.fallbackRoot=z)},get fallbackFormat(){return i.value?i.value.fallbackFormat:Q},set fallbackFormat(z){i.value&&(i.value.fallbackFormat=z)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:_},set warnHtmlMessage(z){i.value&&(i.value.warnHtmlMessage=z)},get escapeParameter(){return i.value?i.value.escapeParameter:S},set escapeParameter(z){i.value&&(i.value.escapeParameter=z)},t:He,getPostTranslationHandler:ne,setPostTranslationHandler:ce,getMissingHandler:Le,setMissingHandler:oA,rt:re,d:me,n:Xe,tm:ke,te:Ge,getLocaleMessage:Ke,setLocaleMessage:eA,mergeLocaleMessage:AA,getDateTimeFormat:ze,setDateTimeFormat:pA,mergeDateTimeFormat:ct,getNumberFormat:et,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(Ue=>{z.mergeLocaleMessage(Ue,u.value[Ue])}),Object.keys(f.value).forEach(Ue=>{z.mergeDateTimeFormat(Ue,f.value[Ue])}),Object.keys(p.value).forEach(Ue=>{z.mergeNumberFormat(Ue,p.value[Ue])}),z.escapeParameter=S,z.fallbackFormat=Q,z.fallbackRoot=w,z.fallbackWarn=B,z.missingWarn=g,z.warnHtmlMessage=_}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Er(hA.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;e==="global"?(a.value=z.locale.value,c.value=z.fallbackLocale.value,u.value=z.messages.value,f.value=z.datetimeFormats.value,p.value=z.numberFormats.value):r&&un(z)}),xt}if(NT(),__INTLIFY_JIT_COMPILATION__?Gm(TT):Gm(ST),CT(eT),yT(Rm),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Kn();t.__INTLIFY__=!0,lT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const A_={class:"input input-dropdown"},t_={class:"dropdown"},n_={class:"caption"},r_=["innerHTML"],i_={class:"caption__text"},s_={class:"d-block text-truncate"},o_={class:"dropdown-menu"},a_={class:"form-check"},l_=["value","id","name","label","required","disabled"],c_=["value","id","name","label","required","disabled"],u_=["for"],f_=h.defineComponent({__name:"input-dropdown",props:{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},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:A}=xa(),n=t,r=e,i=h.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=h.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&c.value&&(n.exactMatch?n.modelValue===c.value:n.modelValue.includes(c.value))}))),a=h.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${A("common.select")}`);return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",A_,[h.createElementVNode("div",t_,[h.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:h.withCtx(()=>[h.createElementVNode("span",n_,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,r_)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",i_,[h.createElementVNode("span",s_,h.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",o_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,(p,g)=>(h.openBlock(),h.createElementBlock("li",{key:`${p.value}-${g}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",p.active&&"active"])},[h.createElementVNode("div",a_,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=B=>i.value=B),value:p.value,key:`${t.name}-${p.value}-${g}__if`,id:`${t.name}-${p.value}-${g}`,name:t.name,label:p.text,required:t.required,disabled:p.selectable===!1,class:"form-check-input"},null,8,l_)),[[h.vModelCheckbox,i.value]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=B=>i.value=B),value:p.value,key:`${t.name}-${p.value}-${g}__else`,id:`${t.name}-${p.value}-${g}`,name:t.name,label:p.text,required:t.required,disabled:p.selectable===!1,class:"form-check-input visually-hidden"},null,8,c_)),[[h.vModelRadio,i.value]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${p.value}-${g}`},h.toDisplayString(p.text),9,u_)])],2)]))),128))])])])}}}),y3="",d_={key:0,class:"auto-suggest__suggestions position-relative"},h_={class:"suggestions dropdown-menu show w-100 mt-2"},p_=["onClick"],g_=["innerHTML"],m_=h.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}},emits:["update:modelValue","update:suggestion"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return A.modelValue},set(f){n("update:modelValue",f)}}),a=h.computed(()=>{const f=new RegExp(`(${s.value})`,"i");return s.value?A.options.reduce((p,g)=>[...p,...f.test(g)?[g.replace(f,"<strong>$1</strong>")]:[]],[]):A.options});h.watch(()=>A.options,(f,p)=>{f.length&&(i.value=!0)},{deep:!0});function c(){A.options.length&&(i.value=!0)}function u(f){i.value=!1,n("update:modelValue",f)}return h.onBeforeMount(()=>{document.addEventListener("click",f=>{const p=f.target;i.value&&p&&!r.value.contains(p)&&(i.value=!1)})}),(f,p)=>{const g=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:r},[h.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:c},[h.renderSlot(f.$slots,"default",{},()=>[h.createVNode(g,h.mergeProps({modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=B=>s.value=B)},f.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(h.openBlock(),h.createElementBlock("div",d_,[h.createElementVNode("ul",h_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,B=>(h.openBlock(),h.createElementBlock("li",{key:B,class:"suggestions__item dropdown-item",onClick:h.withModifiers(w=>u(B),["prevent"])},[h.createElementVNode("p",{class:"text-truncate my-2",innerHTML:B},null,8,g_)],8,p_))),128))])])):h.createCommentVNode("",!0)],512)}}}),E3="";var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oa={exports:{}};/**
136
+ */const NT="9.13.1";function DT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kn().__INTLIFY_PROD_DEVTOOLS__=!1)}const gB=at.__EXTEND_POINT__,Gn=Qa(gB),mt={FALLBACK_TO_ROOT:gB,NOT_SUPPORTED_PRESERVE:Gn(),NOT_SUPPORTED_FORMATTER:Gn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Gn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Gn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Gn(),NOT_FOUND_PARENT_SCOPE:Gn(),IGNORE_OBJ_FLATTEN:Gn(),NOTICE_DROP_ALLOW_COMPOSITION:Gn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Gn()},MT={[mt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[mt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[mt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[mt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[mt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[mt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[mt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[mt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[mt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function _a(t,...e){return Su(MT[t],...e)}const mB=kA.__EXTEND_POINT__,Bt=Qa(mB),hA={UNEXPECTED_RETURN_TYPE:mB,INVALID_ARGUMENT:Bt(),MUST_BE_CALL_SETUP_TOP:Bt(),NOT_INSTALLED:Bt(),NOT_AVAILABLE_IN_LEGACY_MODE:Bt(),REQUIRED_VALUE:Bt(),INVALID_VALUE:Bt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bt(),NOT_INSTALLED_WITH_PROVIDE:Bt(),UNEXPECTED_ERROR:Bt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bt(),BRIDGE_SUPPORT_VUE_2_ONLY:Bt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bt(),__EXTEND_POINT__:Bt()};function Er(t,...e){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:RT,args:e}:void 0)}const RT={[hA.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[hA.INVALID_ARGUMENT]:"Invalid argument",[hA.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[hA.NOT_INSTALLED]:"Need to install with `app.use` function",[hA.UNEXPECTED_ERROR]:"Unexpected error",[hA.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[hA.REQUIRED_VALUE]:"Required in value: {0}",[hA.INVALID_VALUE]:"Invalid value",[hA.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[hA.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[hA.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[hA.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[hA.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[hA.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Mu=Rn("__translateVNode"),Ru=Rn("__datetimeParts"),Ku=Rn("__numberParts"),Vu=Rn("__enableEmitter"),Pu=Rn("__disableEmitter"),KT=Rn("__setPluralRules"),BB=Rn("__injectWithOption"),Gu=Rn("__dispose");function Xs(t){if(!We(t))return t;for(const e in t)if(Ea(t,e))if(!e.includes("."))We(t[e])&&Xs(t[e]);else{const A=e.split("."),n=A.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(A[s]in r||(r[A[s]]={}),!We(r[A[s]])){process.env.NODE_ENV!=="production"&&Vn(_a(mt.IGNORE_OBJ_FLATTEN,{key:A[s]})),i=!0;break}r=r[A[s]]}i||(r[A[n]]=t[e],delete t[e]),We(r[A[n]])&&Xs(r[A[n]])}return t}function Wu(t,e){const{messages:A,__i18n:n,messageResolver:r,flatJson:i}=e,s=_e(A)?A:bA(n)?{}:{[t]:{}};if(bA(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},ba(u,s[c])):ba(u,s)}else te(a)&&ba(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ea(s,a)&&Xs(s[a]);return s}function wB(t){return t.type}function VT(t,e,A){let n=We(e.messages)?e.messages:{};"__i18nGlobal"in A&&(n=Wu(t.locale.value,{messages:n,__i18n:A.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(We(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(We(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function CB(t){return h.createVNode(h.Text,null,t,0)}const yB="__INTLIFY_META__",EB=()=>[],PT=()=>!1;let QB=0;function FB(t){return(e,A,n,r)=>t(A,n,h.getCurrentInstance()||void 0,r)}const GT=()=>{const t=h.getCurrentInstance();let e=null;return t&&(e=wB(t)[yB])?{[yB]:e}:null};function WT(t={},e){const{__root:A,__injectWithOption:n}=t,r=A===void 0,i=t.flatJson,s=Mn?h.ref:h.shallowRef,a=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&vm(_a(mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=nA(t.inheritLocale)?t.inheritLocale:!0;const u=s(A&&c?A.locale.value:te(t.locale)?t.locale:$s),f=s(A&&c?A.fallbackLocale.value:te(t.fallbackLocale)||bA(t.fallbackLocale)||_e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_e(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),B=s(_e(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=A?A.missingWarn:nA(t.missingWarn)||Pi(t.missingWarn)?t.missingWarn:!0,Q=A?A.fallbackWarn:nA(t.fallbackWarn)||Pi(t.fallbackWarn)?t.fallbackWarn:!0,b=A?A.fallbackRoot:nA(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=lA(t.missing)?t.missing:null,S=lA(t.missing)?FB(t.missing):null,E=lA(t.postTranslation)?t.postTranslation:null,L=A?A.warnHtmlMessage:nA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const N=A?A.modifiers:_e(t.modifiers)?t.modifiers:{};let V=t.pluralRules||A&&A.pluralRules,D;D=(()=>{r&&Ym(null);const R={version:NT,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:N,pluralRules:V,missing:S===null?void 0:S,missingWarn:w,fallbackWarn:Q,fallbackFormat:v,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:L,escapeParameter:U,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=g.value,R.numberFormats=B.value,R.__datetimeFormatters=_e(D)?D.__datetimeFormatters:void 0,R.__numberFormatters=_e(D)?D.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_e(D)?D.__v_emitter:void 0);const X=UT(R);return r&&Ym(X),X})(),Js(D,u.value,f.value);function Be(){return[u.value,f.value,p.value,g.value,B.value]}const ne=h.computed({get:()=>u.value,set:R=>{u.value=R,D.locale=u.value}}),ce=h.computed({get:()=>f.value,set:R=>{f.value=R,D.fallbackLocale=f.value,Js(D,u.value,R)}}),Le=h.computed(()=>p.value),oA=h.computed(()=>g.value),Re=h.computed(()=>B.value);function He(){return lA(E)?E:null}function re(R){E=R,D.postTranslation=R}function me(){return _}function Xe(R){R!==null&&(S=FB(R)),_=R,D.missing=S}function ke(R,X){return R!=="translate"||!X.resolvedMessage}const Ge=(R,X,Se,rA,Ct,Tn)=>{Be();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=A?bT():void 0),Jt=R(D)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=void 0)}if(Se!=="translate exists"&&zA(Jt)&&Jt===Ia||Se==="translate exists"&&!Jt){const[K,ie]=X();if(process.env.NODE_ENV!=="production"&&A&&te(K)&&ke(Se,ie)&&(b&&(Ta(Q,K)||qm(w,K))&&Vn(_a(mt.FALLBACK_TO_ROOT,{key:K,type:Se})),process.env.NODE_ENV!=="production")){const{__v_emitter:ue}=D;ue&&b&&ue.emit("fallback",{type:Se,key:K,to:"global",groupId:`${Se}:${K}`})}return A&&b?rA(A):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(hA.UNEXPECTED_RETURN_TYPE)}};function Ke(...R){return Ge(X=>Reflect.apply(iB,null,[X,...R]),()=>ku(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>te(X))}function eA(...R){const[X,Se,rA]=R;if(rA&&!We(rA))throw Er(hA.INVALID_ARGUMENT);return Ke(X,Se,qA({resolvedMessage:!0},rA||{}))}function AA(...R){return Ge(X=>Reflect.apply(cB,null,[X,...R]),()=>Nu(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Sa,X=>te(X))}function ze(...R){return Ge(X=>Reflect.apply(dB,null,[X,...R]),()=>Du(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Sa,X=>te(X))}function pA(R){return R.map(X=>te(X)||zA(X)||nA(X)?CB(String(X)):X)}const et={normalize:pA,interpolate:R=>R,type:"vnode"};function ut(...R){return Ge(X=>{let Se;const rA=X;try{rA.processor=et,Se=Reflect.apply(iB,null,[rA,...R])}finally{rA.processor=null}return Se},()=>ku(...R),"translate",X=>X[Mu](...R),X=>[CB(X)],X=>bA(X))}function _t(...R){return Ge(X=>Reflect.apply(dB,null,[X,...R]),()=>Du(...R),"number format",X=>X[Ku](...R),EB,X=>te(X)||bA(X))}function xt(...R){return Ge(X=>Reflect.apply(cB,null,[X,...R]),()=>Nu(...R),"datetime format",X=>X[Ru](...R),EB,X=>te(X)||bA(X))}function un(R){V=R,D.pluralRules=V}function z(R,X){return Ge(()=>{if(!R)return!1;const Se=te(X)?X:u.value,rA=vA(Se),Ct=D.messageResolver(rA,R);return a?Ct!=null:li(Ct)||Vt(Ct)||te(Ct)},()=>[R],"translate exists",Se=>Reflect.apply(Se.te,Se,[R,X]),PT,Se=>nA(Se))}function Ue(R){let X=null;const Se=Rm(D,f.value,u.value);for(let rA=0;rA<Se.length;rA++){const Ct=p.value[Se[rA]]||{},Tn=D.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=Ue(R);return X??(A?A.tm(R)||{}:{})}function vA(R){return p.value[R]||{}}function fn(R,X){if(i){const Se={[R]:X};for(const rA in Se)Ea(Se,rA)&&Xs(Se[rA]);X=Se[R]}p.value[R]=X,D.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const Se={[R]:X};if(i)for(const rA in Se)Ea(Se,rA)&&Xs(Se[rA]);X=Se[R],ba(X,p.value[R]),D.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,D.datetimeFormats=g.value,fB(D,R,X)}function $(R,X){g.value[R]=qA(g.value[R]||{},X),D.datetimeFormats=g.value,fB(D,R,X)}function oe(R){return B.value[R]||{}}function tA(R,X){B.value[R]=X,D.numberFormats=B.value,pB(D,R,X)}function Ne(R,X){B.value[R]=qA(B.value[R]||{},X),D.numberFormats=B.value,pB(D,R,X)}QB++,A&&Mn&&(h.watch(A.locale,R=>{c&&(u.value=R,D.locale=R,Js(D,u.value,f.value))}),h.watch(A.fallbackLocale,R=>{c&&(f.value=R,D.fallbackLocale=R,Js(D,u.value,f.value))}));const Ve={id:QB,locale:ne,fallbackLocale:ce,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&A&&(u.value=A.locale.value,f.value=A.fallbackLocale.value,Js(D,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Le,get modifiers(){return N},get pluralRules(){return V||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,D.missingWarn=w},get fallbackWarn(){return Q},set fallbackWarn(R){Q=R,D.fallbackWarn=Q},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,D.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,D.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,D.escapeParameter=R},t:Ke,getLocaleMessage:vA,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:He,setPostTranslationHandler:re,getMissingHandler:me,setMissingHandler:Xe,[KT]:un};return Ve.datetimeFormats=oA,Ve.numberFormats=Re,Ve.rt=eA,Ve.te=z,Ve.tm=Sn,Ve.d=AA,Ve.n=ze,Ve.getDateTimeFormat=T,Ve.setDateTimeFormat=x,Ve.mergeDateTimeFormat=$,Ve.getNumberFormat=oe,Ve.setNumberFormat=tA,Ve.mergeNumberFormat=Ne,Ve[BB]=n,Ve[Mu]=ut,Ve[Ru]=xt,Ve[Ku]=_t,process.env.NODE_ENV!=="production"&&(Ve[Vu]=R=>{D.__v_emitter=R},Ve[Pu]=()=>{D.__v_emitter=void 0}),Ve}const $u={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function $T({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):e.reduce((A,n)=>{const r=t[n];return r&&(A[n]=r()),A},{})}function bB(t){return h.Fragment}qA({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>zA(t)||!isNaN(t)}},$u);function JT(t){return bA(t)&&!te(t[0])}function UB(t,e,A,n){const{slots:r,attrs:i}=e;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),te(t.format)?s.key=t.format:We(t.format)&&(te(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,B)=>A.includes(B)?qA({},g,{[B]:t.format[B]}):g,{}));const c=n(t.value,s,a);let u=[s.key];bA(c)?u=c.map((g,B)=>{const w=r[g.type],Q=w?w({[g.type]:g.value,index:B,parts:c}):[g.value];return JT(Q)&&(Q[0].key=`${g.type}-${B}`),Q}):te(c)&&(u=[c]);const f=qA({},i),p=te(t.tag)||We(t.tag)?t.tag:bB();return h.h(p,f,u)}}qA({value:{type:Number,required:!0},format:{type:[String,Object]}},$u),qA({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$u);function vB(t,e){}const XT=Rn("global-vue-i18n");function xa(t={}){const e=h.getCurrentInstance();if(e==null)throw Er(hA.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Er(hA.NOT_INSTALLED);const A=YT(e),n=qT(A),r=wB(e),i=zT(t,r);if(__VUE_I18N_LEGACY_API__&&A.mode==="legacy"&&!t.__useComponent){if(!A.allowComposition)throw Er(hA.NOT_AVAILABLE_IN_LEGACY_MODE);return A_(e,i,n,t)}if(i==="global")return VT(n,t,r),n;if(i==="parent"){let c=ZT(A,e,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Vn(_a(mt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=A;let a=s.__getInstance(e);if(a==null){const c=qA({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=WT(c),s.__composerExtend&&(a[Gu]=s.__composerExtend(a)),e_(s,e,a),s.__setInstance(e,a)}return a}function YT(t){{const e=h.inject(t.isCE?XT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Er(t.isCE?hA.NOT_INSTALLED_WITH_PROVIDE:hA.UNEXPECTED_ERROR);return e}}function zT(t,e){return ya(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function qT(t){return t.mode==="composition"?t.global:t.global.__composer}function ZT(t,e,A=!1){let n=null;const r=e.root;let i=jT(e,A);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,A&&n&&!n[BB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function jT(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function e_(t,e,A){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=A,n=hS();const r=A;r[Vu]&&r[Vu](n),n.on("*",vB)}},e),h.onUnmounted(()=>{const r=A;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(n&&n.off("*",vB),r[Pu]&&r[Pu](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=r[Gu];i&&(i(),delete r[Gu])},e)}function A_(t,e,A,n={}){const r=e==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(hA.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=nA(n.inheritLocale)?n.inheritLocale:!te(n.locale),a=h.ref(!r||s?A.locale.value:te(n.locale)?n.locale:$s),c=h.ref(!r||s?A.fallbackLocale.value:te(n.fallbackLocale)||bA(n.fallbackLocale)||_e(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_e(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_e(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?A.missingWarn:nA(n.missingWarn)||Pi(n.missingWarn)?n.missingWarn:!0,B=r?A.fallbackWarn:nA(n.fallbackWarn)||Pi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?A.fallbackRoot:nA(n.fallbackRoot)?n.fallbackRoot:!0,Q=!!n.fallbackFormat,b=lA(n.missing)?n.missing:null,v=lA(n.postTranslation)?n.postTranslation:null,_=r?A.warnHtmlMessage:nA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?A.modifiers:_e(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&A.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),V=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),D=h.computed(()=>i.value?i.value.messages.value:u.value),se=h.computed(()=>f.value),Be=h.computed(()=>p.value);function ne(){return i.value?i.value.getPostTranslationHandler():v}function ce(z){i.value&&i.value.setPostTranslationHandler(z)}function Le(){return i.value?i.value.getMissingHandler():b}function oA(z){i.value&&i.value.setMissingHandler(z)}function Re(z){return U(),z()}function He(...z){return i.value?Re(()=>Reflect.apply(i.value.t,null,[...z])):Re(()=>"")}function re(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function me(...z){return i.value?Re(()=>Reflect.apply(i.value.d,null,[...z])):Re(()=>"")}function Xe(...z){return i.value?Re(()=>Reflect.apply(i.value.n,null,[...z])):Re(()=>"")}function ke(z){return i.value?i.value.tm(z):{}}function Ge(z,Ue){return i.value?i.value.te(z,Ue):!1}function Ke(z){return i.value?i.value.getLocaleMessage(z):{}}function eA(z,Ue){i.value&&(i.value.setLocaleMessage(z,Ue),u.value[z]=Ue)}function AA(z,Ue){i.value&&i.value.mergeLocaleMessage(z,Ue)}function ze(z){return i.value?i.value.getDateTimeFormat(z):{}}function pA(z,Ue){i.value&&(i.value.setDateTimeFormat(z,Ue),f.value[z]=Ue)}function ct(z,Ue){i.value&&i.value.mergeDateTimeFormat(z,Ue)}function et(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,Ue){i.value&&(i.value.setNumberFormat(z,Ue),p.value[z]=Ue)}function _t(z,Ue){i.value&&i.value.mergeNumberFormat(z,Ue)}const xt={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:V,messages:D,datetimeFormats:se,numberFormats:Be,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(z){i.value&&(i.value.inheritLocale=z)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:E},get pluralRules(){return i.value?i.value.pluralRules:L},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(z){i.value&&(i.value.missingWarn=z)},get fallbackWarn(){return i.value?i.value.fallbackWarn:B},set fallbackWarn(z){i.value&&(i.value.missingWarn=z)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(z){i.value&&(i.value.fallbackRoot=z)},get fallbackFormat(){return i.value?i.value.fallbackFormat:Q},set fallbackFormat(z){i.value&&(i.value.fallbackFormat=z)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:_},set warnHtmlMessage(z){i.value&&(i.value.warnHtmlMessage=z)},get escapeParameter(){return i.value?i.value.escapeParameter:S},set escapeParameter(z){i.value&&(i.value.escapeParameter=z)},t:He,getPostTranslationHandler:ne,setPostTranslationHandler:ce,getMissingHandler:Le,setMissingHandler:oA,rt:re,d:me,n:Xe,tm:ke,te:Ge,getLocaleMessage:Ke,setLocaleMessage:eA,mergeLocaleMessage:AA,getDateTimeFormat:ze,setDateTimeFormat:pA,mergeDateTimeFormat:ct,getNumberFormat:et,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(Ue=>{z.mergeLocaleMessage(Ue,u.value[Ue])}),Object.keys(f.value).forEach(Ue=>{z.mergeDateTimeFormat(Ue,f.value[Ue])}),Object.keys(p.value).forEach(Ue=>{z.mergeNumberFormat(Ue,p.value[Ue])}),z.escapeParameter=S,z.fallbackFormat=Q,z.fallbackRoot=w,z.fallbackWarn=B,z.missingWarn=g,z.warnHtmlMessage=_}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Er(hA.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;e==="global"?(a.value=z.locale.value,c.value=z.fallbackLocale.value,u.value=z.messages.value,f.value=z.datetimeFormats.value,p.value=z.numberFormats.value):r&&un(z)}),xt}if(DT(),__INTLIFY_JIT_COMPILATION__?Gm(_T):Gm(TT),yT(AT),ET(Rm),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Kn();t.__INTLIFY__=!0,cT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const t_={class:"input input-dropdown"},n_={class:"dropdown"},r_={class:"caption"},i_=["innerHTML"],s_={class:"caption__text"},o_={class:"d-block text-truncate"},a_={class:"dropdown-menu"},l_={class:"form-check"},c_=["value","id","name","label","required","disabled"],u_=["value","id","name","label","required","disabled"],f_=["for"],d_=h.defineComponent({__name:"input-dropdown",props:{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},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:A}=xa(),n=t,r=e,i=h.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=h.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&c.value&&(n.exactMatch?n.modelValue===c.value:n.modelValue.includes(c.value))}))),a=h.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${A("common.select")}`);return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",t_,[h.createElementVNode("div",n_,[h.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:h.withCtx(()=>[h.createElementVNode("span",r_,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,i_)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",s_,[h.createElementVNode("span",o_,h.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",a_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,(p,g)=>(h.openBlock(),h.createElementBlock("li",{key:`${p.value}-${g}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",p.active&&"active"])},[h.createElementVNode("div",l_,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=B=>i.value=B),value:p.value,key:`${t.name}-${p.value}-${g}__if`,id:`${t.name}-${p.value}-${g}`,name:t.name,label:p.text,required:t.required,disabled:p.selectable===!1,class:"form-check-input"},null,8,c_)),[[h.vModelCheckbox,i.value]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=B=>i.value=B),value:p.value,key:`${t.name}-${p.value}-${g}__else`,id:`${t.name}-${p.value}-${g}`,name:t.name,label:p.text,required:t.required,disabled:p.selectable===!1,class:"form-check-input visually-hidden"},null,8,u_)),[[h.vModelRadio,i.value]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${p.value}-${g}`},h.toDisplayString(p.text),9,f_)])],2)]))),128))])])])}}}),E3="",h_={key:0,class:"auto-suggest__suggestions position-relative"},p_={class:"suggestions dropdown-menu show w-100 mt-2"},g_=["onClick"],m_=["innerHTML"],B_=h.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}},emits:["update:modelValue","update:suggestion"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return A.modelValue},set(f){n("update:modelValue",f)}}),a=h.computed(()=>{const f=new RegExp(`(${s.value})`,"i");return s.value?A.options.reduce((p,g)=>[...p,...f.test(g)?[g.replace(f,"<strong>$1</strong>")]:[]],[]):A.options});h.watch(()=>A.options,(f,p)=>{f.length&&(i.value=!0)},{deep:!0});function c(){A.options.length&&(i.value=!0)}function u(f){i.value=!1,n("update:modelValue",f)}return h.onBeforeMount(()=>{document.addEventListener("click",f=>{const p=f.target;i.value&&p&&!r.value.contains(p)&&(i.value=!1)})}),(f,p)=>{const g=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:r},[h.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:c},[h.renderSlot(f.$slots,"default",{},()=>[h.createVNode(g,h.mergeProps({modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=B=>s.value=B)},f.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(h.openBlock(),h.createElementBlock("div",h_,[h.createElementVNode("ul",p_,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,B=>(h.openBlock(),h.createElementBlock("li",{key:B,class:"suggestions__item dropdown-item",onClick:h.withModifiers(w=>u(B),["prevent"])},[h.createElementVNode("p",{class:"text-truncate my-2",innerHTML:B},null,8,m_)],8,g_))),128))])])):h.createCommentVNode("",!0)],512)}}}),Q3="";var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oa={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */Oa.exports,function(t,e){(function(){var A,n="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,g=2,B=4,w=1,Q=2,b=1,v=2,_=4,S=8,E=16,L=32,U=64,N=128,V=256,D=512,se=30,Be="...",ne=800,ce=16,Le=1,oA=2,Re=3,He=1/0,re=9007199254740991,me=17976931348623157e292,Xe=0/0,ke=4294967295,Ge=ke-1,Ke=ke>>>1,eA=[["ary",N],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",D],["partial",L],["partialRight",U],["rearg",V]],AA="[object Arguments]",ze="[object Array]",pA="[object AsyncFunction]",ct="[object Boolean]",et="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",Ue="[object Number]",Sn="[object Null]",vA="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",$="[object String]",oe="[object Symbol]",tA="[object Undefined]",Ne="[object WeakMap]",Ve="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",Se="[object Float32Array]",rA="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",ie="[object Uint8ClampedArray]",ue="[object Uint16Array]",Pe="[object Uint32Array]",De=/\b__p \+= '';/g,GA=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yn=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,zn=RegExp(Yn.source),wo=RegExp(Bo.source),ss=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,vl=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,SM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,TM=RegExp(zf.source),qf=/^\s+/,_M=/\s/,xM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OM=/\{\n\/\* \[wrapped with (.+)\] \*/,LM=/,? & /,HM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kM=/[()=,{}\[\]\/\s]/,NM=/\\(\\)?/g,DM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,RC=/\w*$/,MM=/^[-+]0x[0-9a-f]+$/i,RM=/^0b[01]+$/i,KM=/^\[object .+?Constructor\]$/,VM=/^0o[0-7]+$/i,PM=/^(?:0|[1-9]\d*)$/,GM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,WM=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",$M="\\u0300-\\u036f",JM="\\ufe20-\\ufe2f",XM="\\u20d0-\\u20ff",KC=$M+JM+XM,VC="\\u2700-\\u27bf",PC="a-z\\xdf-\\xf6\\xf8-\\xff",YM="\\xac\\xb1\\xd7\\xf7",zM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qM="\\u2000-\\u206f",ZM=" \\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",GC="A-Z\\xc0-\\xd6\\xd8-\\xde",WC="\\ufe0e\\ufe0f",$C=YM+zM+qM+ZM,Zf="['’]",jM="["+Sl+"]",JC="["+$C+"]",Tl="["+KC+"]",XC="\\d+",eR="["+VC+"]",YC="["+PC+"]",zC="[^"+Sl+$C+XC+VC+PC+GC+"]",jf="\\ud83c[\\udffb-\\udfff]",AR="(?:"+Tl+"|"+jf+")",qC="[^"+Sl+"]",ed="(?:\\ud83c[\\udde6-\\uddff]){2}",Ad="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+GC+"]",ZC="\\u200d",jC="(?:"+YC+"|"+zC+")",tR="(?:"+ls+"|"+zC+")",e0="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",A0="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",t0=AR+"?",n0="["+WC+"]?",nR="(?:"+ZC+"(?:"+[qC,ed,Ad].join("|")+")"+n0+t0+")*",rR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",iR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",r0=n0+t0+nR,sR="(?:"+[eR,ed,Ad].join("|")+")"+r0,oR="(?:"+[qC+Tl+"?",Tl,ed,Ad,jM].join("|")+")",aR=RegExp(Zf,"g"),lR=RegExp(Tl,"g"),td=RegExp(jf+"(?="+jf+")|"+oR+r0,"g"),cR=RegExp([ls+"?"+YC+"+"+e0+"(?="+[JC,ls,"$"].join("|")+")",tR+"+"+A0+"(?="+[JC,ls+jC,"$"].join("|")+")",ls+"?"+jC+"+"+e0,ls+"+"+A0,iR,rR,XC,sR].join("|"),"g"),uR=RegExp("["+ZC+Sl+KC+WC+"]"),fR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dR=["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"],hR=-1,cA={};cA[Se]=cA[rA]=cA[Ct]=cA[Tn]=cA[Jt]=cA[K]=cA[ie]=cA[ue]=cA[Pe]=!0,cA[AA]=cA[ze]=cA[R]=cA[ct]=cA[X]=cA[et]=cA[_t]=cA[xt]=cA[z]=cA[Ue]=cA[vA]=cA[T]=cA[x]=cA[$]=cA[Ne]=!1;var aA={};aA[AA]=aA[ze]=aA[R]=aA[X]=aA[ct]=aA[et]=aA[Se]=aA[rA]=aA[Ct]=aA[Tn]=aA[Jt]=aA[z]=aA[Ue]=aA[vA]=aA[T]=aA[x]=aA[$]=aA[oe]=aA[K]=aA[ie]=aA[ue]=aA[Pe]=!0,aA[_t]=aA[xt]=aA[Ne]=!1;var pR={À:"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"},gR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},BR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wR=parseFloat,CR=parseInt,i0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,yR=typeof self=="object"&&self&&self.Object===Object&&self,WA=i0||yR||Function("return this")(),nd=e&&!e.nodeType&&e,pi=nd&&!0&&t&&!t.nodeType&&t,s0=pi&&pi.exports===nd,rd=s0&&i0.process,Xt=function(){try{var H=pi&&pi.require&&pi.require("util").types;return H||rd&&rd.binding&&rd.binding("util")}catch{}}(),o0=Xt&&Xt.isArrayBuffer,a0=Xt&&Xt.isDate,l0=Xt&&Xt.isMap,c0=Xt&&Xt.isRegExp,u0=Xt&&Xt.isSet,f0=Xt&&Xt.isTypedArray;function Ot(H,P,M){switch(M.length){case 0:return H.call(P);case 1:return H.call(P,M[0]);case 2:return H.call(P,M[0],M[1]);case 3:return H.call(P,M[0],M[1],M[2])}return H.apply(P,M)}function ER(H,P,M,Ae){for(var we=-1,$e=H==null?0:H.length;++we<$e;){var TA=H[we];P(Ae,TA,M(TA),H)}return Ae}function Yt(H,P){for(var M=-1,Ae=H==null?0:H.length;++M<Ae&&P(H[M],M,H)!==!1;);return H}function QR(H,P){for(var M=H==null?0:H.length;M--&&P(H[M],M,H)!==!1;);return H}function d0(H,P){for(var M=-1,Ae=H==null?0:H.length;++M<Ae;)if(!P(H[M],M,H))return!1;return!0}function Lr(H,P){for(var M=-1,Ae=H==null?0:H.length,we=0,$e=[];++M<Ae;){var TA=H[M];P(TA,M,H)&&($e[we++]=TA)}return $e}function _l(H,P){var M=H==null?0:H.length;return!!M&&cs(H,P,0)>-1}function id(H,P,M){for(var Ae=-1,we=H==null?0:H.length;++Ae<we;)if(M(P,H[Ae]))return!0;return!1}function fA(H,P){for(var M=-1,Ae=H==null?0:H.length,we=Array(Ae);++M<Ae;)we[M]=P(H[M],M,H);return we}function Hr(H,P){for(var M=-1,Ae=P.length,we=H.length;++M<Ae;)H[we+M]=P[M];return H}function sd(H,P,M,Ae){var we=-1,$e=H==null?0:H.length;for(Ae&&$e&&(M=H[++we]);++we<$e;)M=P(M,H[we],we,H);return M}function FR(H,P,M,Ae){var we=H==null?0:H.length;for(Ae&&we&&(M=H[--we]);we--;)M=P(M,H[we],we,H);return M}function od(H,P){for(var M=-1,Ae=H==null?0:H.length;++M<Ae;)if(P(H[M],M,H))return!0;return!1}var bR=ad("length");function UR(H){return H.split("")}function vR(H){return H.match(HM)||[]}function h0(H,P,M){var Ae;return M(H,function(we,$e,TA){if(P(we,$e,TA))return Ae=$e,!1}),Ae}function xl(H,P,M,Ae){for(var we=H.length,$e=M+(Ae?1:-1);Ae?$e--:++$e<we;)if(P(H[$e],$e,H))return $e;return-1}function cs(H,P,M){return P===P?MR(H,P,M):xl(H,p0,M)}function IR(H,P,M,Ae){for(var we=M-1,$e=H.length;++we<$e;)if(Ae(H[we],P))return we;return-1}function p0(H){return H!==H}function g0(H,P){var M=H==null?0:H.length;return M?cd(H,P)/M:Xe}function ad(H){return function(P){return P==null?A:P[H]}}function ld(H){return function(P){return H==null?A:H[P]}}function m0(H,P,M,Ae,we){return we(H,function($e,TA,iA){M=Ae?(Ae=!1,$e):P(M,$e,TA,iA)}),M}function SR(H,P){var M=H.length;for(H.sort(P);M--;)H[M]=H[M].value;return H}function cd(H,P){for(var M,Ae=-1,we=H.length;++Ae<we;){var $e=P(H[Ae]);$e!==A&&(M=M===A?$e:M+$e)}return M}function ud(H,P){for(var M=-1,Ae=Array(H);++M<H;)Ae[M]=P(M);return Ae}function TR(H,P){return fA(P,function(M){return[M,H[M]]})}function B0(H){return H&&H.slice(0,E0(H)+1).replace(qf,"")}function Lt(H){return function(P){return H(P)}}function fd(H,P){return fA(P,function(M){return H[M]})}function yo(H,P){return H.has(P)}function w0(H,P){for(var M=-1,Ae=H.length;++M<Ae&&cs(P,H[M],0)>-1;);return M}function C0(H,P){for(var M=H.length;M--&&cs(P,H[M],0)>-1;);return M}function _R(H,P){for(var M=H.length,Ae=0;M--;)H[M]===P&&++Ae;return Ae}var xR=ld(pR),OR=ld(gR);function LR(H){return"\\"+BR[H]}function HR(H,P){return H==null?A:H[P]}function us(H){return uR.test(H)}function kR(H){return fR.test(H)}function NR(H){for(var P,M=[];!(P=H.next()).done;)M.push(P.value);return M}function dd(H){var P=-1,M=Array(H.size);return H.forEach(function(Ae,we){M[++P]=[we,Ae]}),M}function y0(H,P){return function(M){return H(P(M))}}function kr(H,P){for(var M=-1,Ae=H.length,we=0,$e=[];++M<Ae;){var TA=H[M];(TA===P||TA===f)&&(H[M]=f,$e[we++]=M)}return $e}function Ol(H){var P=-1,M=Array(H.size);return H.forEach(function(Ae){M[++P]=Ae}),M}function DR(H){var P=-1,M=Array(H.size);return H.forEach(function(Ae){M[++P]=[Ae,Ae]}),M}function MR(H,P,M){for(var Ae=M-1,we=H.length;++Ae<we;)if(H[Ae]===P)return Ae;return-1}function RR(H,P,M){for(var Ae=M+1;Ae--;)if(H[Ae]===P)return Ae;return Ae}function fs(H){return us(H)?VR(H):bR(H)}function dn(H){return us(H)?PR(H):UR(H)}function E0(H){for(var P=H.length;P--&&_M.test(H.charAt(P)););return P}var KR=ld(mR);function VR(H){for(var P=td.lastIndex=0;td.test(H);)++P;return P}function PR(H){return H.match(td)||[]}function GR(H){return H.match(cR)||[]}var WR=function H(P){P=P==null?WA:ds.defaults(WA.Object(),P,ds.pick(WA,dR));var M=P.Array,Ae=P.Date,we=P.Error,$e=P.Function,TA=P.Math,iA=P.Object,hd=P.RegExp,$R=P.String,zt=P.TypeError,Ll=M.prototype,JR=$e.prototype,hs=iA.prototype,Hl=P["__core-js_shared__"],kl=JR.toString,qe=hs.hasOwnProperty,XR=0,Q0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Nl=hs.toString,YR=kl.call(iA),zR=WA._,qR=hd("^"+kl.call(qe).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=s0?P.Buffer:A,Nr=P.Symbol,Ml=P.Uint8Array,F0=Dl?Dl.allocUnsafe:A,Rl=y0(iA.getPrototypeOf,iA),b0=iA.create,U0=hs.propertyIsEnumerable,Kl=Ll.splice,v0=Nr?Nr.isConcatSpreadable:A,Eo=Nr?Nr.iterator:A,gi=Nr?Nr.toStringTag:A,Vl=function(){try{var o=yi(iA,"defineProperty");return o({},"",{}),o}catch{}}(),ZR=P.clearTimeout!==WA.clearTimeout&&P.clearTimeout,jR=Ae&&Ae.now!==WA.Date.now&&Ae.now,e4=P.setTimeout!==WA.setTimeout&&P.setTimeout,Pl=TA.ceil,Gl=TA.floor,pd=iA.getOwnPropertySymbols,A4=Dl?Dl.isBuffer:A,I0=P.isFinite,t4=Ll.join,n4=y0(iA.keys,iA),_A=TA.max,At=TA.min,r4=Ae.now,i4=P.parseInt,S0=TA.random,s4=Ll.reverse,gd=yi(P,"DataView"),Qo=yi(P,"Map"),md=yi(P,"Promise"),ps=yi(P,"Set"),Fo=yi(P,"WeakMap"),bo=yi(iA,"create"),Wl=Fo&&new Fo,gs={},o4=Ei(gd),a4=Ei(Qo),l4=Ei(md),c4=Ei(ps),u4=Ei(Fo),$l=Nr?Nr.prototype:A,Uo=$l?$l.valueOf:A,T0=$l?$l.toString:A;function y(o){if(BA(o)&&!ye(o)&&!(o instanceof Oe)){if(o instanceof qt)return o;if(qe.call(o,"__wrapped__"))return _y(o)}return new qt(o)}var ms=function(){function o(){}return function(l){if(!gA(l))return{};if(b0)return b0(l);o.prototype=l;var d=new o;return o.prototype=A,d}}();function Jl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=A}y.templateSettings={escape:ss,evaluate:Or,interpolate:vl,variable:"",imports:{_:y}},y.prototype=Jl.prototype,y.prototype.constructor=y,qt.prototype=ms(Jl.prototype),qt.prototype.constructor=qt;function Oe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function f4(){var o=new Oe(this.__wrapped__);return o.__actions__=Et(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Et(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Et(this.__views__),o}function d4(){if(this.__filtered__){var o=new Oe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function h4(){var o=this.__wrapped__.value(),l=this.__dir__,d=ye(o),m=l<0,C=d?o.length:0,F=UK(0,C,this.__views__),I=F.start,O=F.end,k=O-I,G=m?O:I-1,W=this.__iteratees__,J=W.length,q=0,le=At(k,this.__takeCount__);if(!d||!m&&C==k&&le==k)return ey(o,this.__actions__);var he=[];e:for(;k--&&q<le;){G+=l;for(var ve=-1,pe=o[G];++ve<J;){var Te=W[ve],Me=Te.iteratee,Nt=Te.type,ht=Me(pe);if(Nt==oA)pe=ht;else if(!ht){if(Nt==Le)continue e;break e}}he[q++]=pe}return he}Oe.prototype=ms(Jl.prototype),Oe.prototype.constructor=Oe;function mi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function p4(){this.__data__=bo?bo(null):{},this.size=0}function g4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function m4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?A:d}return qe.call(l,o)?l[o]:A}function B4(o){var l=this.__data__;return bo?l[o]!==A:qe.call(l,o)}function w4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===A?c:l,this}mi.prototype.clear=p4,mi.prototype.delete=g4,mi.prototype.get=m4,mi.prototype.has=B4,mi.prototype.set=w4;function qn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function C4(){this.__data__=[],this.size=0}function y4(o){var l=this.__data__,d=Xl(l,o);if(d<0)return!1;var m=l.length-1;return d==m?l.pop():Kl.call(l,d,1),--this.size,!0}function E4(o){var l=this.__data__,d=Xl(l,o);return d<0?A:l[d][1]}function Q4(o){return Xl(this.__data__,o)>-1}function F4(o,l){var d=this.__data__,m=Xl(d,o);return m<0?(++this.size,d.push([o,l])):d[m][1]=l,this}qn.prototype.clear=C4,qn.prototype.delete=y4,qn.prototype.get=E4,qn.prototype.has=Q4,qn.prototype.set=F4;function Zn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function b4(){this.size=0,this.__data__={hash:new mi,map:new(Qo||qn),string:new mi}}function U4(o){var l=sc(this,o).delete(o);return this.size-=l?1:0,l}function v4(o){return sc(this,o).get(o)}function I4(o){return sc(this,o).has(o)}function S4(o,l){var d=sc(this,o),m=d.size;return d.set(o,l),this.size+=d.size==m?0:1,this}Zn.prototype.clear=b4,Zn.prototype.delete=U4,Zn.prototype.get=v4,Zn.prototype.has=I4,Zn.prototype.set=S4;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function T4(o){return this.__data__.set(o,c),this}function _4(o){return this.__data__.has(o)}Bi.prototype.add=Bi.prototype.push=T4,Bi.prototype.has=_4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function x4(){this.__data__=new qn,this.size=0}function O4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function L4(o){return this.__data__.get(o)}function H4(o){return this.__data__.has(o)}function k4(o,l){var d=this.__data__;if(d instanceof qn){var m=d.__data__;if(!Qo||m.length<r-1)return m.push([o,l]),this.size=++d.size,this;d=this.__data__=new Zn(m)}return d.set(o,l),this.size=d.size,this}hn.prototype.clear=x4,hn.prototype.delete=O4,hn.prototype.get=L4,hn.prototype.has=H4,hn.prototype.set=k4;function _0(o,l){var d=ye(o),m=!d&&Qi(o),C=!d&&!m&&Vr(o),F=!d&&!m&&!C&&ys(o),I=d||m||C||F,O=I?ud(o.length,$R):[],k=O.length;for(var G in o)(l||qe.call(o,G))&&!(I&&(G=="length"||C&&(G=="offset"||G=="parent")||F&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||tr(G,k)))&&O.push(G);return O}function x0(o){var l=o.length;return l?o[Id(0,l-1)]:A}function N4(o,l){return oc(Et(o),wi(l,0,o.length))}function D4(o){return oc(Et(o))}function Bd(o,l,d){(d!==A&&!pn(o[l],d)||d===A&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var m=o[l];(!(qe.call(o,l)&&pn(m,d))||d===A&&!(l in o))&&jn(o,l,d)}function Xl(o,l){for(var d=o.length;d--;)if(pn(o[d][0],l))return d;return-1}function M4(o,l,d,m){return Dr(o,function(C,F,I){l(m,C,d(C),I)}),m}function O0(o,l){return o&&xn(l,DA(l),o)}function R4(o,l){return o&&xn(l,Ft(l),o)}function jn(o,l,d){l=="__proto__"&&Vl?Vl(o,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[l]=d}function wd(o,l){for(var d=-1,m=l.length,C=M(m),F=o==null;++d<m;)C[d]=F?A:jd(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==A&&(o=o<=d?o:d),l!==A&&(o=o>=l?o:l)),o}function Zt(o,l,d,m,C,F){var I,O=l&p,k=l&g,G=l&B;if(d&&(I=C?d(o,m,C,F):d(o)),I!==A)return I;if(!gA(o))return o;var W=ye(o);if(W){if(I=IK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Vr(o))return ny(o,O);if(J==vA||J==AA||q&&!C){if(I=k||q?{}:Ey(o),!O)return k?mK(o,R4(I,o)):gK(o,O0(I,o))}else{if(!aA[J])return C?o:{};I=SK(o,J,O)}}F||(F=new hn);var le=F.get(o);if(le)return le;F.set(o,I),qy(o)?o.forEach(function(pe){I.add(Zt(pe,l,d,pe,o,F))}):Yy(o)&&o.forEach(function(pe,Te){I.set(Te,Zt(pe,l,d,Te,o,F))});var he=G?k?Md:Dd:k?Ft:DA,ve=W?A:he(o);return Yt(ve||o,function(pe,Te){ve&&(Te=pe,pe=o[Te]),vo(I,Te,Zt(pe,l,d,Te,o,F))}),I}function K4(o){var l=DA(o);return function(d){return L0(d,o,l)}}function L0(o,l,d){var m=d.length;if(o==null)return!m;for(o=iA(o);m--;){var C=d[m],F=l[C],I=o[C];if(I===A&&!(C in o)||!F(I))return!1}return!0}function H0(o,l,d){if(typeof o!="function")throw new zt(s);return Lo(function(){o.apply(A,d)},l)}function Io(o,l,d,m){var C=-1,F=_l,I=!0,O=o.length,k=[],G=l.length;if(!O)return k;d&&(l=fA(l,Lt(d))),m?(F=id,I=!1):l.length>=r&&(F=yo,I=!1,l=new Bi(l));e:for(;++C<O;){var W=o[C],J=d==null?W:d(W);if(W=m||W!==0?W:0,I&&J===J){for(var q=G;q--;)if(l[q]===J)continue e;k.push(W)}else F(l,J,m)||k.push(W)}return k}var Dr=ay(_n),k0=ay(yd,!0);function V4(o,l){var d=!0;return Dr(o,function(m,C,F){return d=!!l(m,C,F),d}),d}function Yl(o,l,d){for(var m=-1,C=o.length;++m<C;){var F=o[m],I=l(F);if(I!=null&&(O===A?I===I&&!kt(I):d(I,O)))var O=I,k=F}return k}function P4(o,l,d,m){var C=o.length;for(d=Ee(d),d<0&&(d=-d>C?0:C+d),m=m===A||m>C?C:Ee(m),m<0&&(m+=C),m=d>m?0:jy(m);d<m;)o[d++]=l;return o}function N0(o,l){var d=[];return Dr(o,function(m,C,F){l(m,C,F)&&d.push(m)}),d}function $A(o,l,d,m,C){var F=-1,I=o.length;for(d||(d=_K),C||(C=[]);++F<I;){var O=o[F];l>0&&d(O)?l>1?$A(O,l-1,d,m,C):Hr(C,O):m||(C[C.length]=O)}return C}var Cd=ly(),D0=ly(!0);function _n(o,l){return o&&Cd(o,l,DA)}function yd(o,l){return o&&D0(o,l,DA)}function zl(o,l){return Lr(l,function(d){return nr(o[d])})}function Ci(o,l){l=Rr(l,o);for(var d=0,m=l.length;o!=null&&d<m;)o=o[On(l[d++])];return d&&d==m?o:A}function M0(o,l,d){var m=l(o);return ye(o)?m:Hr(m,d(o))}function ft(o){return o==null?o===A?tA:Sn:gi&&gi in iA(o)?bK(o):DK(o)}function Ed(o,l){return o>l}function G4(o,l){return o!=null&&qe.call(o,l)}function W4(o,l){return o!=null&&l in iA(o)}function $4(o,l,d){return o>=At(l,d)&&o<_A(l,d)}function Qd(o,l,d){for(var m=d?id:_l,C=o[0].length,F=o.length,I=F,O=M(F),k=1/0,G=[];I--;){var W=o[I];I&&l&&(W=fA(W,Lt(l))),k=At(W.length,k),O[I]=!d&&(l||C>=120&&W.length>=120)?new Bi(I&&W):A}W=o[0];var J=-1,q=O[0];e:for(;++J<C&&G.length<k;){var le=W[J],he=l?l(le):le;if(le=d||le!==0?le:0,!(q?yo(q,he):m(G,he,d))){for(I=F;--I;){var ve=O[I];if(!(ve?yo(ve,he):m(o[I],he,d)))continue e}q&&q.push(he),G.push(le)}}return G}function J4(o,l,d,m){return _n(o,function(C,F,I){l(m,d(C),F,I)}),m}function So(o,l,d){l=Rr(l,o),o=Uy(o,l);var m=o==null?o:o[On(en(l))];return m==null?A:Ot(m,o,d)}function R0(o){return BA(o)&&ft(o)==AA}function X4(o){return BA(o)&&ft(o)==R}function Y4(o){return BA(o)&&ft(o)==et}function To(o,l,d,m,C){return o===l?!0:o==null||l==null||!BA(o)&&!BA(l)?o!==o&&l!==l:z4(o,l,d,m,To,C)}function z4(o,l,d,m,C,F){var I=ye(o),O=ye(l),k=I?ze:tt(o),G=O?ze:tt(l);k=k==AA?vA:k,G=G==AA?vA:G;var W=k==vA,J=G==vA,q=k==G;if(q&&Vr(o)){if(!Vr(l))return!1;I=!0,W=!1}if(q&&!W)return F||(F=new hn),I||ys(o)?wy(o,l,d,m,C,F):QK(o,l,k,d,m,C,F);if(!(d&w)){var le=W&&qe.call(o,"__wrapped__"),he=J&&qe.call(l,"__wrapped__");if(le||he){var ve=le?o.value():o,pe=he?l.value():l;return F||(F=new hn),C(ve,pe,d,m,F)}}return q?(F||(F=new hn),FK(o,l,d,m,C,F)):!1}function q4(o){return BA(o)&&tt(o)==z}function Fd(o,l,d,m){var C=d.length,F=C,I=!m;if(o==null)return!F;for(o=iA(o);C--;){var O=d[C];if(I&&O[2]?O[1]!==o[O[0]]:!(O[0]in o))return!1}for(;++C<F;){O=d[C];var k=O[0],G=o[k],W=O[1];if(I&&O[2]){if(G===A&&!(k in o))return!1}else{var J=new hn;if(m)var q=m(G,W,k,o,l,J);if(!(q===A?To(W,G,w|Q,m,J):q))return!1}}return!0}function K0(o){if(!gA(o)||OK(o))return!1;var l=nr(o)?qR:KM;return l.test(Ei(o))}function Z4(o){return BA(o)&&ft(o)==T}function j4(o){return BA(o)&&tt(o)==x}function eK(o){return BA(o)&&dc(o.length)&&!!cA[ft(o)]}function V0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?ye(o)?W0(o[0],o[1]):G0(o):cE(o)}function bd(o){if(!Oo(o))return n4(o);var l=[];for(var d in iA(o))qe.call(o,d)&&d!="constructor"&&l.push(d);return l}function AK(o){if(!gA(o))return NK(o);var l=Oo(o),d=[];for(var m in o)m=="constructor"&&(l||!qe.call(o,m))||d.push(m);return d}function Ud(o,l){return o<l}function P0(o,l){var d=-1,m=Qt(o)?M(o.length):[];return Dr(o,function(C,F,I){m[++d]=l(C,F,I)}),m}function G0(o){var l=Kd(o);return l.length==1&&l[0][2]?Fy(l[0][0],l[0][1]):function(d){return d===o||Fd(d,o,l)}}function W0(o,l){return Pd(o)&&Qy(l)?Fy(On(o),l):function(d){var m=jd(d,o);return m===A&&m===l?eh(d,o):To(l,m,w|Q)}}function ql(o,l,d,m,C){o!==l&&Cd(l,function(F,I){if(C||(C=new hn),gA(F))tK(o,l,I,d,ql,m,C);else{var O=m?m(Wd(o,I),F,I+"",o,l,C):A;O===A&&(O=F),Bd(o,I,O)}},Ft)}function tK(o,l,d,m,C,F,I){var O=Wd(o,d),k=Wd(l,d),G=I.get(k);if(G){Bd(o,d,G);return}var W=F?F(O,k,d+"",o,l,I):A,J=W===A;if(J){var q=ye(k),le=!q&&Vr(k),he=!q&&!le&&ys(k);W=k,q||le||he?ye(O)?W=O:yA(O)?W=Et(O):le?(J=!1,W=ny(k,!0)):he?(J=!1,W=ry(k,!0)):W=[]:Ho(k)||Qi(k)?(W=O,Qi(O)?W=eE(O):(!gA(O)||nr(O))&&(W=Ey(k))):J=!1}J&&(I.set(k,W),C(W,k,m,F,I),I.delete(k)),Bd(o,d,W)}function $0(o,l){var d=o.length;if(d)return l+=l<0?d:0,tr(l,d)?o[l]:A}function J0(o,l,d){l.length?l=fA(l,function(F){return ye(F)?function(I){return Ci(I,F.length===1?F[0]:F)}:F}):l=[bt];var m=-1;l=fA(l,Lt(de()));var C=P0(o,function(F,I,O){var k=fA(l,function(G){return G(F)});return{criteria:k,index:++m,value:F}});return SR(C,function(F,I){return pK(F,I,d)})}function nK(o,l){return X0(o,l,function(d,m){return eh(o,m)})}function X0(o,l,d){for(var m=-1,C=l.length,F={};++m<C;){var I=l[m],O=Ci(o,I);d(O,I)&&_o(F,Rr(I,o),O)}return F}function rK(o){return function(l){return Ci(l,o)}}function vd(o,l,d,m){var C=m?IR:cs,F=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=fA(o,Lt(d)));++F<I;)for(var k=0,G=l[F],W=d?d(G):G;(k=C(O,W,k,m))>-1;)O!==o&&Kl.call(O,k,1),Kl.call(o,k,1);return o}function Y0(o,l){for(var d=o?l.length:0,m=d-1;d--;){var C=l[d];if(d==m||C!==F){var F=C;tr(C)?Kl.call(o,C,1):_d(o,C)}}return o}function Id(o,l){return o+Gl(S0()*(l-o+1))}function iK(o,l,d,m){for(var C=-1,F=_A(Pl((l-o)/(d||1)),0),I=M(F);F--;)I[m?F:++C]=o,o+=d;return I}function Sd(o,l){var d="";if(!o||l<1||l>re)return d;do l%2&&(d+=o),l=Gl(l/2),l&&(o+=o);while(l);return d}function Ie(o,l){return $d(by(o,l,bt),o+"")}function sK(o){return x0(Es(o))}function oK(o,l){var d=Es(o);return oc(d,wi(l,0,d.length))}function _o(o,l,d,m){if(!gA(o))return o;l=Rr(l,o);for(var C=-1,F=l.length,I=F-1,O=o;O!=null&&++C<F;){var k=On(l[C]),G=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return o;if(C!=I){var W=O[k];G=m?m(W,k,O):A,G===A&&(G=gA(W)?W:tr(l[C+1])?[]:{})}vo(O,k,G),O=O[k]}return o}var z0=Wl?function(o,l){return Wl.set(o,l),o}:bt,aK=Vl?function(o,l){return Vl(o,"toString",{configurable:!0,enumerable:!1,value:th(l),writable:!0})}:bt;function lK(o){return oc(Es(o))}function jt(o,l,d){var m=-1,C=o.length;l<0&&(l=-l>C?0:C+l),d=d>C?C:d,d<0&&(d+=C),C=l>d?0:d-l>>>0,l>>>=0;for(var F=M(C);++m<C;)F[m]=o[m+l];return F}function cK(o,l){var d;return Dr(o,function(m,C,F){return d=l(m,C,F),!d}),!!d}function Zl(o,l,d){var m=0,C=o==null?m:o.length;if(typeof l=="number"&&l===l&&C<=Ke){for(;m<C;){var F=m+C>>>1,I=o[F];I!==null&&!kt(I)&&(d?I<=l:I<l)?m=F+1:C=F}return C}return Td(o,l,bt,d)}function Td(o,l,d,m){var C=0,F=o==null?0:o.length;if(F===0)return 0;l=d(l);for(var I=l!==l,O=l===null,k=kt(l),G=l===A;C<F;){var W=Gl((C+F)/2),J=d(o[W]),q=J!==A,le=J===null,he=J===J,ve=kt(J);if(I)var pe=m||he;else G?pe=he&&(m||q):O?pe=he&&q&&(m||!le):k?pe=he&&q&&!le&&(m||!ve):le||ve?pe=!1:pe=m?J<=l:J<l;pe?C=W+1:F=W}return At(F,Ge)}function q0(o,l){for(var d=-1,m=o.length,C=0,F=[];++d<m;){var I=o[d],O=l?l(I):I;if(!d||!pn(O,k)){var k=O;F[C++]=I===0?0:I}}return F}function Z0(o){return typeof o=="number"?o:kt(o)?Xe:+o}function Ht(o){if(typeof o=="string")return o;if(ye(o))return fA(o,Ht)+"";if(kt(o))return T0?T0.call(o):"";var l=o+"";return l=="0"&&1/o==-He?"-0":l}function Mr(o,l,d){var m=-1,C=_l,F=o.length,I=!0,O=[],k=O;if(d)I=!1,C=id;else if(F>=r){var G=l?null:yK(o);if(G)return Ol(G);I=!1,C=yo,k=new Bi}else k=l?[]:O;e:for(;++m<F;){var W=o[m],J=l?l(W):W;if(W=d||W!==0?W:0,I&&J===J){for(var q=k.length;q--;)if(k[q]===J)continue e;l&&k.push(J),O.push(W)}else C(k,J,d)||(k!==O&&k.push(J),O.push(W))}return O}function _d(o,l){return l=Rr(l,o),o=Uy(o,l),o==null||delete o[On(en(l))]}function j0(o,l,d,m){return _o(o,l,d(Ci(o,l)),m)}function jl(o,l,d,m){for(var C=o.length,F=m?C:-1;(m?F--:++F<C)&&l(o[F],F,o););return d?jt(o,m?0:F,m?F+1:C):jt(o,m?F+1:0,m?C:F)}function ey(o,l){var d=o;return d instanceof Oe&&(d=d.value()),sd(l,function(m,C){return C.func.apply(C.thisArg,Hr([m],C.args))},d)}function xd(o,l,d){var m=o.length;if(m<2)return m?Mr(o[0]):[];for(var C=-1,F=M(m);++C<m;)for(var I=o[C],O=-1;++O<m;)O!=C&&(F[C]=Io(F[C]||I,o[O],l,d));return Mr($A(F,1),l,d)}function Ay(o,l,d){for(var m=-1,C=o.length,F=l.length,I={};++m<C;){var O=m<F?l[m]:A;d(I,o[m],O)}return I}function Od(o){return yA(o)?o:[]}function Ld(o){return typeof o=="function"?o:bt}function Rr(o,l){return ye(o)?o:Pd(o,l)?[o]:Ty(Ye(o))}var uK=Ie;function Kr(o,l,d){var m=o.length;return d=d===A?m:d,!l&&d>=m?o:jt(o,l,d)}var ty=ZR||function(o){return WA.clearTimeout(o)};function ny(o,l){if(l)return o.slice();var d=o.length,m=F0?F0(d):new o.constructor(d);return o.copy(m),m}function Hd(o){var l=new o.constructor(o.byteLength);return new Ml(l).set(new Ml(o)),l}function fK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function dK(o){var l=new o.constructor(o.source,RC.exec(o));return l.lastIndex=o.lastIndex,l}function hK(o){return Uo?iA(Uo.call(o)):{}}function ry(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function iy(o,l){if(o!==l){var d=o!==A,m=o===null,C=o===o,F=kt(o),I=l!==A,O=l===null,k=l===l,G=kt(l);if(!O&&!G&&!F&&o>l||F&&I&&k&&!O&&!G||m&&I&&k||!d&&k||!C)return 1;if(!m&&!F&&!G&&o<l||G&&d&&C&&!m&&!F||O&&d&&C||!I&&C||!k)return-1}return 0}function pK(o,l,d){for(var m=-1,C=o.criteria,F=l.criteria,I=C.length,O=d.length;++m<I;){var k=iy(C[m],F[m]);if(k){if(m>=O)return k;var G=d[m];return k*(G=="desc"?-1:1)}}return o.index-l.index}function sy(o,l,d,m){for(var C=-1,F=o.length,I=d.length,O=-1,k=l.length,G=_A(F-I,0),W=M(k+G),J=!m;++O<k;)W[O]=l[O];for(;++C<I;)(J||C<F)&&(W[d[C]]=o[C]);for(;G--;)W[O++]=o[C++];return W}function oy(o,l,d,m){for(var C=-1,F=o.length,I=-1,O=d.length,k=-1,G=l.length,W=_A(F-O,0),J=M(W+G),q=!m;++C<W;)J[C]=o[C];for(var le=C;++k<G;)J[le+k]=l[k];for(;++I<O;)(q||C<F)&&(J[le+d[I]]=o[C++]);return J}function Et(o,l){var d=-1,m=o.length;for(l||(l=M(m));++d<m;)l[d]=o[d];return l}function xn(o,l,d,m){var C=!d;d||(d={});for(var F=-1,I=l.length;++F<I;){var O=l[F],k=m?m(d[O],o[O],O,d,o):A;k===A&&(k=o[O]),C?jn(d,O,k):vo(d,O,k)}return d}function gK(o,l){return xn(o,Vd(o),l)}function mK(o,l){return xn(o,Cy(o),l)}function ec(o,l){return function(d,m){var C=ye(d)?ER:M4,F=l?l():{};return C(d,o,de(m,2),F)}}function Bs(o){return Ie(function(l,d){var m=-1,C=d.length,F=C>1?d[C-1]:A,I=C>2?d[2]:A;for(F=o.length>3&&typeof F=="function"?(C--,F):A,I&&dt(d[0],d[1],I)&&(F=C<3?A:F,C=1),l=iA(l);++m<C;){var O=d[m];O&&o(l,O,m,F)}return l})}function ay(o,l){return function(d,m){if(d==null)return d;if(!Qt(d))return o(d,m);for(var C=d.length,F=l?C:-1,I=iA(d);(l?F--:++F<C)&&m(I[F],F,I)!==!1;);return d}}function ly(o){return function(l,d,m){for(var C=-1,F=iA(l),I=m(l),O=I.length;O--;){var k=I[o?O:++C];if(d(F[k],k,F)===!1)break}return l}}function BK(o,l,d){var m=l&b,C=xo(o);function F(){var I=this&&this!==WA&&this instanceof F?C:o;return I.apply(m?d:this,arguments)}return F}function cy(o){return function(l){l=Ye(l);var d=us(l)?dn(l):A,m=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return m[o]()+C}}function ws(o){return function(l){return sd(aE(oE(l).replace(aR,"")),o,"")}}function xo(o){return function(){var l=arguments;switch(l.length){case 0:return new o;case 1:return new o(l[0]);case 2:return new o(l[0],l[1]);case 3:return new o(l[0],l[1],l[2]);case 4:return new o(l[0],l[1],l[2],l[3]);case 5:return new o(l[0],l[1],l[2],l[3],l[4]);case 6:return new o(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new o(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ms(o.prototype),m=o.apply(d,l);return gA(m)?m:d}}function wK(o,l,d){var m=xo(o);function C(){for(var F=arguments.length,I=M(F),O=F,k=Cs(C);O--;)I[O]=arguments[O];var G=F<3&&I[0]!==k&&I[F-1]!==k?[]:kr(I,k);if(F-=G.length,F<d)return py(o,l,Ac,C.placeholder,A,I,G,A,A,d-F);var W=this&&this!==WA&&this instanceof C?m:o;return Ot(W,this,I)}return C}function uy(o){return function(l,d,m){var C=iA(l);if(!Qt(l)){var F=de(d,3);l=DA(l),d=function(O){return F(C[O],O,C)}}var I=o(l,d,m);return I>-1?C[F?l[I]:I]:A}}function fy(o){return Ar(function(l){var d=l.length,m=d,C=qt.prototype.thru;for(o&&l.reverse();m--;){var F=l[m];if(typeof F!="function")throw new zt(s);if(C&&!I&&ic(F)=="wrapper")var I=new qt([],!0)}for(m=I?m:d;++m<d;){F=l[m];var O=ic(F),k=O=="wrapper"?Rd(F):A;k&&Gd(k[0])&&k[1]==(N|S|L|V)&&!k[4].length&&k[9]==1?I=I[ic(k[0])].apply(I,k[3]):I=F.length==1&&Gd(F)?I[O]():I.thru(F)}return function(){var G=arguments,W=G[0];if(I&&G.length==1&&ye(W))return I.plant(W).value();for(var J=0,q=d?l[J].apply(this,G):W;++J<d;)q=l[J].call(this,q);return q}})}function Ac(o,l,d,m,C,F,I,O,k,G){var W=l&N,J=l&b,q=l&v,le=l&(S|E),he=l&D,ve=q?A:xo(o);function pe(){for(var Te=arguments.length,Me=M(Te),Nt=Te;Nt--;)Me[Nt]=arguments[Nt];if(le)var ht=Cs(pe),Dt=_R(Me,ht);if(m&&(Me=sy(Me,m,C,le)),F&&(Me=oy(Me,F,I,le)),Te-=Dt,le&&Te<G){var EA=kr(Me,ht);return py(o,l,Ac,pe.placeholder,d,Me,EA,O,k,G-Te)}var gn=J?d:this,ir=q?gn[o]:o;return Te=Me.length,O?Me=MK(Me,O):he&&Te>1&&Me.reverse(),W&&k<Te&&(Me.length=k),this&&this!==WA&&this instanceof pe&&(ir=ve||xo(ir)),ir.apply(gn,Me)}return pe}function dy(o,l){return function(d,m){return J4(d,o,l(m),{})}}function tc(o,l){return function(d,m){var C;if(d===A&&m===A)return l;if(d!==A&&(C=d),m!==A){if(C===A)return m;typeof d=="string"||typeof m=="string"?(d=Ht(d),m=Ht(m)):(d=Z0(d),m=Z0(m)),C=o(d,m)}return C}}function kd(o){return Ar(function(l){return l=fA(l,Lt(de())),Ie(function(d){var m=this;return o(l,function(C){return Ot(C,m,d)})})})}function nc(o,l){l=l===A?" ":Ht(l);var d=l.length;if(d<2)return d?Sd(l,o):l;var m=Sd(l,Pl(o/fs(l)));return us(l)?Kr(dn(m),0,o).join(""):m.slice(0,o)}function CK(o,l,d,m){var C=l&b,F=xo(o);function I(){for(var O=-1,k=arguments.length,G=-1,W=m.length,J=M(W+k),q=this&&this!==WA&&this instanceof I?F:o;++G<W;)J[G]=m[G];for(;k--;)J[G++]=arguments[++O];return Ot(q,C?d:this,J)}return I}function hy(o){return function(l,d,m){return m&&typeof m!="number"&&dt(l,d,m)&&(d=m=A),l=rr(l),d===A?(d=l,l=0):d=rr(d),m=m===A?l<d?1:-1:rr(m),iK(l,d,m,o)}}function rc(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=An(l),d=An(d)),o(l,d)}}function py(o,l,d,m,C,F,I,O,k,G){var W=l&S,J=W?I:A,q=W?A:I,le=W?F:A,he=W?A:F;l|=W?L:U,l&=~(W?U:L),l&_||(l&=~(b|v));var ve=[o,l,C,le,J,he,q,O,k,G],pe=d.apply(A,ve);return Gd(o)&&vy(pe,ve),pe.placeholder=m,Iy(pe,o,l)}function Nd(o){var l=TA[o];return function(d,m){if(d=An(d),m=m==null?0:At(Ee(m),292),m&&I0(d)){var C=(Ye(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+m));return C=(Ye(F)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return l(d)}}var yK=ps&&1/Ol(new ps([,-0]))[1]==He?function(o){return new ps(o)}:ih;function gy(o){return function(l){var d=tt(l);return d==z?dd(l):d==x?DR(l):TR(l,o(l))}}function er(o,l,d,m,C,F,I,O){var k=l&v;if(!k&&typeof o!="function")throw new zt(s);var G=m?m.length:0;if(G||(l&=~(L|U),m=C=A),I=I===A?I:_A(Ee(I),0),O=O===A?O:Ee(O),G-=C?C.length:0,l&U){var W=m,J=C;m=C=A}var q=k?A:Rd(o),le=[o,l,d,m,C,W,J,F,I,O];if(q&&kK(le,q),o=le[0],l=le[1],d=le[2],m=le[3],C=le[4],O=le[9]=le[9]===A?k?0:o.length:_A(le[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var he=BK(o,l,d);else l==S||l==E?he=wK(o,l,O):(l==L||l==(b|L))&&!C.length?he=CK(o,l,d,m):he=Ac.apply(A,le);var ve=q?z0:vy;return Iy(ve(he,le),o,l)}function my(o,l,d,m){return o===A||pn(o,hs[d])&&!qe.call(m,d)?l:o}function By(o,l,d,m,C,F){return gA(o)&&gA(l)&&(F.set(l,o),ql(o,l,A,By,F),F.delete(l)),o}function EK(o){return Ho(o)?A:o}function wy(o,l,d,m,C,F){var I=d&w,O=o.length,k=l.length;if(O!=k&&!(I&&k>O))return!1;var G=F.get(o),W=F.get(l);if(G&&W)return G==l&&W==o;var J=-1,q=!0,le=d&Q?new Bi:A;for(F.set(o,l),F.set(l,o);++J<O;){var he=o[J],ve=l[J];if(m)var pe=I?m(ve,he,J,l,o,F):m(he,ve,J,o,l,F);if(pe!==A){if(pe)continue;q=!1;break}if(le){if(!od(l,function(Te,Me){if(!yo(le,Me)&&(he===Te||C(he,Te,d,m,F)))return le.push(Me)})){q=!1;break}}else if(!(he===ve||C(he,ve,d,m,F))){q=!1;break}}return F.delete(o),F.delete(l),q}function QK(o,l,d,m,C,F,I){switch(d){case X:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case R:return!(o.byteLength!=l.byteLength||!F(new Ml(o),new Ml(l)));case ct:case et:case Ue:return pn(+o,+l);case _t:return o.name==l.name&&o.message==l.message;case T:case $:return o==l+"";case z:var O=dd;case x:var k=m&w;if(O||(O=Ol),o.size!=l.size&&!k)return!1;var G=I.get(o);if(G)return G==l;m|=Q,I.set(o,l);var W=wy(O(o),O(l),m,C,F,I);return I.delete(o),W;case oe:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function FK(o,l,d,m,C,F){var I=d&w,O=Dd(o),k=O.length,G=Dd(l),W=G.length;if(k!=W&&!I)return!1;for(var J=k;J--;){var q=O[J];if(!(I?q in l:qe.call(l,q)))return!1}var le=F.get(o),he=F.get(l);if(le&&he)return le==l&&he==o;var ve=!0;F.set(o,l),F.set(l,o);for(var pe=I;++J<k;){q=O[J];var Te=o[q],Me=l[q];if(m)var Nt=I?m(Me,Te,q,l,o,F):m(Te,Me,q,o,l,F);if(!(Nt===A?Te===Me||C(Te,Me,d,m,F):Nt)){ve=!1;break}pe||(pe=q=="constructor")}if(ve&&!pe){var ht=o.constructor,Dt=l.constructor;ht!=Dt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Dt=="function"&&Dt instanceof Dt)&&(ve=!1)}return F.delete(o),F.delete(l),ve}function Ar(o){return $d(by(o,A,Ly),o+"")}function Dd(o){return M0(o,DA,Vd)}function Md(o){return M0(o,Ft,Cy)}var Rd=Wl?function(o){return Wl.get(o)}:ih;function ic(o){for(var l=o.name+"",d=gs[l],m=qe.call(gs,l)?d.length:0;m--;){var C=d[m],F=C.func;if(F==null||F==o)return C.name}return l}function Cs(o){var l=qe.call(y,"placeholder")?y:o;return l.placeholder}function de(){var o=y.iteratee||nh;return o=o===nh?V0:o,arguments.length?o(arguments[0],arguments[1]):o}function sc(o,l){var d=o.__data__;return xK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Kd(o){for(var l=DA(o),d=l.length;d--;){var m=l[d],C=o[m];l[d]=[m,C,Qy(C)]}return l}function yi(o,l){var d=HR(o,l);return K0(d)?d:A}function bK(o){var l=qe.call(o,gi),d=o[gi];try{o[gi]=A;var m=!0}catch{}var C=Nl.call(o);return m&&(l?o[gi]=d:delete o[gi]),C}var Vd=pd?function(o){return o==null?[]:(o=iA(o),Lr(pd(o),function(l){return U0.call(o,l)}))}:sh,Cy=pd?function(o){for(var l=[];o;)Hr(l,Vd(o)),o=Rl(o);return l}:sh,tt=ft;(gd&&tt(new gd(new ArrayBuffer(1)))!=X||Qo&&tt(new Qo)!=z||md&&tt(md.resolve())!=fn||ps&&tt(new ps)!=x||Fo&&tt(new Fo)!=Ne)&&(tt=function(o){var l=ft(o),d=l==vA?o.constructor:A,m=d?Ei(d):"";if(m)switch(m){case o4:return X;case a4:return z;case l4:return fn;case c4:return x;case u4:return Ne}return l});function UK(o,l,d){for(var m=-1,C=d.length;++m<C;){var F=d[m],I=F.size;switch(F.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,o+I);break;case"takeRight":o=_A(o,l-I);break}}return{start:o,end:l}}function vK(o){var l=o.match(OM);return l?l[1].split(LM):[]}function yy(o,l,d){l=Rr(l,o);for(var m=-1,C=l.length,F=!1;++m<C;){var I=On(l[m]);if(!(F=o!=null&&d(o,I)))break;o=o[I]}return F||++m!=C?F:(C=o==null?0:o.length,!!C&&dc(C)&&tr(I,C)&&(ye(o)||Qi(o)))}function IK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&qe.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function Ey(o){return typeof o.constructor=="function"&&!Oo(o)?ms(Rl(o)):{}}function SK(o,l,d){var m=o.constructor;switch(l){case R:return Hd(o);case ct:case et:return new m(+o);case X:return fK(o,d);case Se:case rA:case Ct:case Tn:case Jt:case K:case ie:case ue:case Pe:return ry(o,d);case z:return new m;case Ue:case $:return new m(o);case T:return dK(o);case x:return new m;case oe:return hK(o)}}function TK(o,l){var d=l.length;if(!d)return o;var m=d-1;return l[m]=(d>1?"& ":"")+l[m],l=l.join(d>2?", ":" "),o.replace(xM,`{
143
+ */Oa.exports,function(t,e){(function(){var A,n="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,g=2,B=4,w=1,Q=2,b=1,v=2,_=4,S=8,E=16,L=32,U=64,N=128,V=256,D=512,se=30,Be="...",ne=800,ce=16,Le=1,oA=2,Re=3,He=1/0,re=9007199254740991,me=17976931348623157e292,Xe=0/0,ke=4294967295,Ge=ke-1,Ke=ke>>>1,eA=[["ary",N],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",D],["partial",L],["partialRight",U],["rearg",V]],AA="[object Arguments]",ze="[object Array]",pA="[object AsyncFunction]",ct="[object Boolean]",et="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",Ue="[object Number]",Sn="[object Null]",vA="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",$="[object String]",oe="[object Symbol]",tA="[object Undefined]",Ne="[object WeakMap]",Ve="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",Se="[object Float32Array]",rA="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",ie="[object Uint8ClampedArray]",ue="[object Uint16Array]",Pe="[object Uint32Array]",De=/\b__p \+= '';/g,GA=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yn=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,zn=RegExp(Yn.source),wo=RegExp(Bo.source),ss=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,vl=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,TM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,_M=RegExp(zf.source),qf=/^\s+/,xM=/\s/,OM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,LM=/\{\n\/\* \[wrapped with (.+)\] \*/,HM=/,? & /,kM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,NM=/[()=,{}\[\]\/\s]/,DM=/\\(\\)?/g,MM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,RC=/\w*$/,RM=/^[-+]0x[0-9a-f]+$/i,KM=/^0b[01]+$/i,VM=/^\[object .+?Constructor\]$/,PM=/^0o[0-7]+$/i,GM=/^(?:0|[1-9]\d*)$/,WM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,$M=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",JM="\\u0300-\\u036f",XM="\\ufe20-\\ufe2f",YM="\\u20d0-\\u20ff",KC=JM+XM+YM,VC="\\u2700-\\u27bf",PC="a-z\\xdf-\\xf6\\xf8-\\xff",zM="\\xac\\xb1\\xd7\\xf7",qM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ZM="\\u2000-\\u206f",jM=" \\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",GC="A-Z\\xc0-\\xd6\\xd8-\\xde",WC="\\ufe0e\\ufe0f",$C=zM+qM+ZM+jM,Zf="['’]",eR="["+Sl+"]",JC="["+$C+"]",Tl="["+KC+"]",XC="\\d+",AR="["+VC+"]",YC="["+PC+"]",zC="[^"+Sl+$C+XC+VC+PC+GC+"]",jf="\\ud83c[\\udffb-\\udfff]",tR="(?:"+Tl+"|"+jf+")",qC="[^"+Sl+"]",ed="(?:\\ud83c[\\udde6-\\uddff]){2}",Ad="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+GC+"]",ZC="\\u200d",jC="(?:"+YC+"|"+zC+")",nR="(?:"+ls+"|"+zC+")",e0="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",A0="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",t0=tR+"?",n0="["+WC+"]?",rR="(?:"+ZC+"(?:"+[qC,ed,Ad].join("|")+")"+n0+t0+")*",iR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",r0=n0+t0+rR,oR="(?:"+[AR,ed,Ad].join("|")+")"+r0,aR="(?:"+[qC+Tl+"?",Tl,ed,Ad,eR].join("|")+")",lR=RegExp(Zf,"g"),cR=RegExp(Tl,"g"),td=RegExp(jf+"(?="+jf+")|"+aR+r0,"g"),uR=RegExp([ls+"?"+YC+"+"+e0+"(?="+[JC,ls,"$"].join("|")+")",nR+"+"+A0+"(?="+[JC,ls+jC,"$"].join("|")+")",ls+"?"+jC+"+"+e0,ls+"+"+A0,sR,iR,XC,oR].join("|"),"g"),fR=RegExp("["+ZC+Sl+KC+WC+"]"),dR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hR=["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"],pR=-1,cA={};cA[Se]=cA[rA]=cA[Ct]=cA[Tn]=cA[Jt]=cA[K]=cA[ie]=cA[ue]=cA[Pe]=!0,cA[AA]=cA[ze]=cA[R]=cA[ct]=cA[X]=cA[et]=cA[_t]=cA[xt]=cA[z]=cA[Ue]=cA[vA]=cA[T]=cA[x]=cA[$]=cA[Ne]=!1;var aA={};aA[AA]=aA[ze]=aA[R]=aA[X]=aA[ct]=aA[et]=aA[Se]=aA[rA]=aA[Ct]=aA[Tn]=aA[Jt]=aA[z]=aA[Ue]=aA[vA]=aA[T]=aA[x]=aA[$]=aA[oe]=aA[K]=aA[ie]=aA[ue]=aA[Pe]=!0,aA[_t]=aA[xt]=aA[Ne]=!1;var gR={À:"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"},mR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},BR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},wR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},CR=parseFloat,yR=parseInt,i0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,ER=typeof self=="object"&&self&&self.Object===Object&&self,WA=i0||ER||Function("return this")(),nd=e&&!e.nodeType&&e,pi=nd&&!0&&t&&!t.nodeType&&t,s0=pi&&pi.exports===nd,rd=s0&&i0.process,Xt=function(){try{var H=pi&&pi.require&&pi.require("util").types;return H||rd&&rd.binding&&rd.binding("util")}catch{}}(),o0=Xt&&Xt.isArrayBuffer,a0=Xt&&Xt.isDate,l0=Xt&&Xt.isMap,c0=Xt&&Xt.isRegExp,u0=Xt&&Xt.isSet,f0=Xt&&Xt.isTypedArray;function Ot(H,P,M){switch(M.length){case 0:return H.call(P);case 1:return H.call(P,M[0]);case 2:return H.call(P,M[0],M[1]);case 3:return H.call(P,M[0],M[1],M[2])}return H.apply(P,M)}function QR(H,P,M,Ae){for(var we=-1,$e=H==null?0:H.length;++we<$e;){var TA=H[we];P(Ae,TA,M(TA),H)}return Ae}function Yt(H,P){for(var M=-1,Ae=H==null?0:H.length;++M<Ae&&P(H[M],M,H)!==!1;);return H}function FR(H,P){for(var M=H==null?0:H.length;M--&&P(H[M],M,H)!==!1;);return H}function d0(H,P){for(var M=-1,Ae=H==null?0:H.length;++M<Ae;)if(!P(H[M],M,H))return!1;return!0}function Lr(H,P){for(var M=-1,Ae=H==null?0:H.length,we=0,$e=[];++M<Ae;){var TA=H[M];P(TA,M,H)&&($e[we++]=TA)}return $e}function _l(H,P){var M=H==null?0:H.length;return!!M&&cs(H,P,0)>-1}function id(H,P,M){for(var Ae=-1,we=H==null?0:H.length;++Ae<we;)if(M(P,H[Ae]))return!0;return!1}function fA(H,P){for(var M=-1,Ae=H==null?0:H.length,we=Array(Ae);++M<Ae;)we[M]=P(H[M],M,H);return we}function Hr(H,P){for(var M=-1,Ae=P.length,we=H.length;++M<Ae;)H[we+M]=P[M];return H}function sd(H,P,M,Ae){var we=-1,$e=H==null?0:H.length;for(Ae&&$e&&(M=H[++we]);++we<$e;)M=P(M,H[we],we,H);return M}function bR(H,P,M,Ae){var we=H==null?0:H.length;for(Ae&&we&&(M=H[--we]);we--;)M=P(M,H[we],we,H);return M}function od(H,P){for(var M=-1,Ae=H==null?0:H.length;++M<Ae;)if(P(H[M],M,H))return!0;return!1}var UR=ad("length");function vR(H){return H.split("")}function IR(H){return H.match(kM)||[]}function h0(H,P,M){var Ae;return M(H,function(we,$e,TA){if(P(we,$e,TA))return Ae=$e,!1}),Ae}function xl(H,P,M,Ae){for(var we=H.length,$e=M+(Ae?1:-1);Ae?$e--:++$e<we;)if(P(H[$e],$e,H))return $e;return-1}function cs(H,P,M){return P===P?RR(H,P,M):xl(H,p0,M)}function SR(H,P,M,Ae){for(var we=M-1,$e=H.length;++we<$e;)if(Ae(H[we],P))return we;return-1}function p0(H){return H!==H}function g0(H,P){var M=H==null?0:H.length;return M?cd(H,P)/M:Xe}function ad(H){return function(P){return P==null?A:P[H]}}function ld(H){return function(P){return H==null?A:H[P]}}function m0(H,P,M,Ae,we){return we(H,function($e,TA,iA){M=Ae?(Ae=!1,$e):P(M,$e,TA,iA)}),M}function TR(H,P){var M=H.length;for(H.sort(P);M--;)H[M]=H[M].value;return H}function cd(H,P){for(var M,Ae=-1,we=H.length;++Ae<we;){var $e=P(H[Ae]);$e!==A&&(M=M===A?$e:M+$e)}return M}function ud(H,P){for(var M=-1,Ae=Array(H);++M<H;)Ae[M]=P(M);return Ae}function _R(H,P){return fA(P,function(M){return[M,H[M]]})}function B0(H){return H&&H.slice(0,E0(H)+1).replace(qf,"")}function Lt(H){return function(P){return H(P)}}function fd(H,P){return fA(P,function(M){return H[M]})}function yo(H,P){return H.has(P)}function w0(H,P){for(var M=-1,Ae=H.length;++M<Ae&&cs(P,H[M],0)>-1;);return M}function C0(H,P){for(var M=H.length;M--&&cs(P,H[M],0)>-1;);return M}function xR(H,P){for(var M=H.length,Ae=0;M--;)H[M]===P&&++Ae;return Ae}var OR=ld(gR),LR=ld(mR);function HR(H){return"\\"+wR[H]}function kR(H,P){return H==null?A:H[P]}function us(H){return fR.test(H)}function NR(H){return dR.test(H)}function DR(H){for(var P,M=[];!(P=H.next()).done;)M.push(P.value);return M}function dd(H){var P=-1,M=Array(H.size);return H.forEach(function(Ae,we){M[++P]=[we,Ae]}),M}function y0(H,P){return function(M){return H(P(M))}}function kr(H,P){for(var M=-1,Ae=H.length,we=0,$e=[];++M<Ae;){var TA=H[M];(TA===P||TA===f)&&(H[M]=f,$e[we++]=M)}return $e}function Ol(H){var P=-1,M=Array(H.size);return H.forEach(function(Ae){M[++P]=Ae}),M}function MR(H){var P=-1,M=Array(H.size);return H.forEach(function(Ae){M[++P]=[Ae,Ae]}),M}function RR(H,P,M){for(var Ae=M-1,we=H.length;++Ae<we;)if(H[Ae]===P)return Ae;return-1}function KR(H,P,M){for(var Ae=M+1;Ae--;)if(H[Ae]===P)return Ae;return Ae}function fs(H){return us(H)?PR(H):UR(H)}function dn(H){return us(H)?GR(H):vR(H)}function E0(H){for(var P=H.length;P--&&xM.test(H.charAt(P)););return P}var VR=ld(BR);function PR(H){for(var P=td.lastIndex=0;td.test(H);)++P;return P}function GR(H){return H.match(td)||[]}function WR(H){return H.match(uR)||[]}var $R=function H(P){P=P==null?WA:ds.defaults(WA.Object(),P,ds.pick(WA,hR));var M=P.Array,Ae=P.Date,we=P.Error,$e=P.Function,TA=P.Math,iA=P.Object,hd=P.RegExp,JR=P.String,zt=P.TypeError,Ll=M.prototype,XR=$e.prototype,hs=iA.prototype,Hl=P["__core-js_shared__"],kl=XR.toString,qe=hs.hasOwnProperty,YR=0,Q0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Nl=hs.toString,zR=kl.call(iA),qR=WA._,ZR=hd("^"+kl.call(qe).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=s0?P.Buffer:A,Nr=P.Symbol,Ml=P.Uint8Array,F0=Dl?Dl.allocUnsafe:A,Rl=y0(iA.getPrototypeOf,iA),b0=iA.create,U0=hs.propertyIsEnumerable,Kl=Ll.splice,v0=Nr?Nr.isConcatSpreadable:A,Eo=Nr?Nr.iterator:A,gi=Nr?Nr.toStringTag:A,Vl=function(){try{var o=yi(iA,"defineProperty");return o({},"",{}),o}catch{}}(),jR=P.clearTimeout!==WA.clearTimeout&&P.clearTimeout,e4=Ae&&Ae.now!==WA.Date.now&&Ae.now,A4=P.setTimeout!==WA.setTimeout&&P.setTimeout,Pl=TA.ceil,Gl=TA.floor,pd=iA.getOwnPropertySymbols,t4=Dl?Dl.isBuffer:A,I0=P.isFinite,n4=Ll.join,r4=y0(iA.keys,iA),_A=TA.max,At=TA.min,i4=Ae.now,s4=P.parseInt,S0=TA.random,o4=Ll.reverse,gd=yi(P,"DataView"),Qo=yi(P,"Map"),md=yi(P,"Promise"),ps=yi(P,"Set"),Fo=yi(P,"WeakMap"),bo=yi(iA,"create"),Wl=Fo&&new Fo,gs={},a4=Ei(gd),l4=Ei(Qo),c4=Ei(md),u4=Ei(ps),f4=Ei(Fo),$l=Nr?Nr.prototype:A,Uo=$l?$l.valueOf:A,T0=$l?$l.toString:A;function y(o){if(BA(o)&&!ye(o)&&!(o instanceof Oe)){if(o instanceof qt)return o;if(qe.call(o,"__wrapped__"))return _y(o)}return new qt(o)}var ms=function(){function o(){}return function(l){if(!gA(l))return{};if(b0)return b0(l);o.prototype=l;var d=new o;return o.prototype=A,d}}();function Jl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=A}y.templateSettings={escape:ss,evaluate:Or,interpolate:vl,variable:"",imports:{_:y}},y.prototype=Jl.prototype,y.prototype.constructor=y,qt.prototype=ms(Jl.prototype),qt.prototype.constructor=qt;function Oe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function d4(){var o=new Oe(this.__wrapped__);return o.__actions__=Et(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Et(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Et(this.__views__),o}function h4(){if(this.__filtered__){var o=new Oe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function p4(){var o=this.__wrapped__.value(),l=this.__dir__,d=ye(o),m=l<0,C=d?o.length:0,F=vK(0,C,this.__views__),I=F.start,O=F.end,k=O-I,G=m?O:I-1,W=this.__iteratees__,J=W.length,q=0,le=At(k,this.__takeCount__);if(!d||!m&&C==k&&le==k)return ey(o,this.__actions__);var he=[];e:for(;k--&&q<le;){G+=l;for(var ve=-1,pe=o[G];++ve<J;){var Te=W[ve],Me=Te.iteratee,Nt=Te.type,ht=Me(pe);if(Nt==oA)pe=ht;else if(!ht){if(Nt==Le)continue e;break e}}he[q++]=pe}return he}Oe.prototype=ms(Jl.prototype),Oe.prototype.constructor=Oe;function mi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function g4(){this.__data__=bo?bo(null):{},this.size=0}function m4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function B4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?A:d}return qe.call(l,o)?l[o]:A}function w4(o){var l=this.__data__;return bo?l[o]!==A:qe.call(l,o)}function C4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===A?c:l,this}mi.prototype.clear=g4,mi.prototype.delete=m4,mi.prototype.get=B4,mi.prototype.has=w4,mi.prototype.set=C4;function qn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function y4(){this.__data__=[],this.size=0}function E4(o){var l=this.__data__,d=Xl(l,o);if(d<0)return!1;var m=l.length-1;return d==m?l.pop():Kl.call(l,d,1),--this.size,!0}function Q4(o){var l=this.__data__,d=Xl(l,o);return d<0?A:l[d][1]}function F4(o){return Xl(this.__data__,o)>-1}function b4(o,l){var d=this.__data__,m=Xl(d,o);return m<0?(++this.size,d.push([o,l])):d[m][1]=l,this}qn.prototype.clear=y4,qn.prototype.delete=E4,qn.prototype.get=Q4,qn.prototype.has=F4,qn.prototype.set=b4;function Zn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var m=o[l];this.set(m[0],m[1])}}function U4(){this.size=0,this.__data__={hash:new mi,map:new(Qo||qn),string:new mi}}function v4(o){var l=sc(this,o).delete(o);return this.size-=l?1:0,l}function I4(o){return sc(this,o).get(o)}function S4(o){return sc(this,o).has(o)}function T4(o,l){var d=sc(this,o),m=d.size;return d.set(o,l),this.size+=d.size==m?0:1,this}Zn.prototype.clear=U4,Zn.prototype.delete=v4,Zn.prototype.get=I4,Zn.prototype.has=S4,Zn.prototype.set=T4;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function _4(o){return this.__data__.set(o,c),this}function x4(o){return this.__data__.has(o)}Bi.prototype.add=Bi.prototype.push=_4,Bi.prototype.has=x4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function O4(){this.__data__=new qn,this.size=0}function L4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function H4(o){return this.__data__.get(o)}function k4(o){return this.__data__.has(o)}function N4(o,l){var d=this.__data__;if(d instanceof qn){var m=d.__data__;if(!Qo||m.length<r-1)return m.push([o,l]),this.size=++d.size,this;d=this.__data__=new Zn(m)}return d.set(o,l),this.size=d.size,this}hn.prototype.clear=O4,hn.prototype.delete=L4,hn.prototype.get=H4,hn.prototype.has=k4,hn.prototype.set=N4;function _0(o,l){var d=ye(o),m=!d&&Qi(o),C=!d&&!m&&Vr(o),F=!d&&!m&&!C&&ys(o),I=d||m||C||F,O=I?ud(o.length,JR):[],k=O.length;for(var G in o)(l||qe.call(o,G))&&!(I&&(G=="length"||C&&(G=="offset"||G=="parent")||F&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||tr(G,k)))&&O.push(G);return O}function x0(o){var l=o.length;return l?o[Id(0,l-1)]:A}function D4(o,l){return oc(Et(o),wi(l,0,o.length))}function M4(o){return oc(Et(o))}function Bd(o,l,d){(d!==A&&!pn(o[l],d)||d===A&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var m=o[l];(!(qe.call(o,l)&&pn(m,d))||d===A&&!(l in o))&&jn(o,l,d)}function Xl(o,l){for(var d=o.length;d--;)if(pn(o[d][0],l))return d;return-1}function R4(o,l,d,m){return Dr(o,function(C,F,I){l(m,C,d(C),I)}),m}function O0(o,l){return o&&xn(l,DA(l),o)}function K4(o,l){return o&&xn(l,Ft(l),o)}function jn(o,l,d){l=="__proto__"&&Vl?Vl(o,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[l]=d}function wd(o,l){for(var d=-1,m=l.length,C=M(m),F=o==null;++d<m;)C[d]=F?A:jd(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==A&&(o=o<=d?o:d),l!==A&&(o=o>=l?o:l)),o}function Zt(o,l,d,m,C,F){var I,O=l&p,k=l&g,G=l&B;if(d&&(I=C?d(o,m,C,F):d(o)),I!==A)return I;if(!gA(o))return o;var W=ye(o);if(W){if(I=SK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Vr(o))return ny(o,O);if(J==vA||J==AA||q&&!C){if(I=k||q?{}:Ey(o),!O)return k?BK(o,K4(I,o)):mK(o,O0(I,o))}else{if(!aA[J])return C?o:{};I=TK(o,J,O)}}F||(F=new hn);var le=F.get(o);if(le)return le;F.set(o,I),qy(o)?o.forEach(function(pe){I.add(Zt(pe,l,d,pe,o,F))}):Yy(o)&&o.forEach(function(pe,Te){I.set(Te,Zt(pe,l,d,Te,o,F))});var he=G?k?Md:Dd:k?Ft:DA,ve=W?A:he(o);return Yt(ve||o,function(pe,Te){ve&&(Te=pe,pe=o[Te]),vo(I,Te,Zt(pe,l,d,Te,o,F))}),I}function V4(o){var l=DA(o);return function(d){return L0(d,o,l)}}function L0(o,l,d){var m=d.length;if(o==null)return!m;for(o=iA(o);m--;){var C=d[m],F=l[C],I=o[C];if(I===A&&!(C in o)||!F(I))return!1}return!0}function H0(o,l,d){if(typeof o!="function")throw new zt(s);return Lo(function(){o.apply(A,d)},l)}function Io(o,l,d,m){var C=-1,F=_l,I=!0,O=o.length,k=[],G=l.length;if(!O)return k;d&&(l=fA(l,Lt(d))),m?(F=id,I=!1):l.length>=r&&(F=yo,I=!1,l=new Bi(l));e:for(;++C<O;){var W=o[C],J=d==null?W:d(W);if(W=m||W!==0?W:0,I&&J===J){for(var q=G;q--;)if(l[q]===J)continue e;k.push(W)}else F(l,J,m)||k.push(W)}return k}var Dr=ay(_n),k0=ay(yd,!0);function P4(o,l){var d=!0;return Dr(o,function(m,C,F){return d=!!l(m,C,F),d}),d}function Yl(o,l,d){for(var m=-1,C=o.length;++m<C;){var F=o[m],I=l(F);if(I!=null&&(O===A?I===I&&!kt(I):d(I,O)))var O=I,k=F}return k}function G4(o,l,d,m){var C=o.length;for(d=Ee(d),d<0&&(d=-d>C?0:C+d),m=m===A||m>C?C:Ee(m),m<0&&(m+=C),m=d>m?0:jy(m);d<m;)o[d++]=l;return o}function N0(o,l){var d=[];return Dr(o,function(m,C,F){l(m,C,F)&&d.push(m)}),d}function $A(o,l,d,m,C){var F=-1,I=o.length;for(d||(d=xK),C||(C=[]);++F<I;){var O=o[F];l>0&&d(O)?l>1?$A(O,l-1,d,m,C):Hr(C,O):m||(C[C.length]=O)}return C}var Cd=ly(),D0=ly(!0);function _n(o,l){return o&&Cd(o,l,DA)}function yd(o,l){return o&&D0(o,l,DA)}function zl(o,l){return Lr(l,function(d){return nr(o[d])})}function Ci(o,l){l=Rr(l,o);for(var d=0,m=l.length;o!=null&&d<m;)o=o[On(l[d++])];return d&&d==m?o:A}function M0(o,l,d){var m=l(o);return ye(o)?m:Hr(m,d(o))}function ft(o){return o==null?o===A?tA:Sn:gi&&gi in iA(o)?UK(o):MK(o)}function Ed(o,l){return o>l}function W4(o,l){return o!=null&&qe.call(o,l)}function $4(o,l){return o!=null&&l in iA(o)}function J4(o,l,d){return o>=At(l,d)&&o<_A(l,d)}function Qd(o,l,d){for(var m=d?id:_l,C=o[0].length,F=o.length,I=F,O=M(F),k=1/0,G=[];I--;){var W=o[I];I&&l&&(W=fA(W,Lt(l))),k=At(W.length,k),O[I]=!d&&(l||C>=120&&W.length>=120)?new Bi(I&&W):A}W=o[0];var J=-1,q=O[0];e:for(;++J<C&&G.length<k;){var le=W[J],he=l?l(le):le;if(le=d||le!==0?le:0,!(q?yo(q,he):m(G,he,d))){for(I=F;--I;){var ve=O[I];if(!(ve?yo(ve,he):m(o[I],he,d)))continue e}q&&q.push(he),G.push(le)}}return G}function X4(o,l,d,m){return _n(o,function(C,F,I){l(m,d(C),F,I)}),m}function So(o,l,d){l=Rr(l,o),o=Uy(o,l);var m=o==null?o:o[On(en(l))];return m==null?A:Ot(m,o,d)}function R0(o){return BA(o)&&ft(o)==AA}function Y4(o){return BA(o)&&ft(o)==R}function z4(o){return BA(o)&&ft(o)==et}function To(o,l,d,m,C){return o===l?!0:o==null||l==null||!BA(o)&&!BA(l)?o!==o&&l!==l:q4(o,l,d,m,To,C)}function q4(o,l,d,m,C,F){var I=ye(o),O=ye(l),k=I?ze:tt(o),G=O?ze:tt(l);k=k==AA?vA:k,G=G==AA?vA:G;var W=k==vA,J=G==vA,q=k==G;if(q&&Vr(o)){if(!Vr(l))return!1;I=!0,W=!1}if(q&&!W)return F||(F=new hn),I||ys(o)?wy(o,l,d,m,C,F):FK(o,l,k,d,m,C,F);if(!(d&w)){var le=W&&qe.call(o,"__wrapped__"),he=J&&qe.call(l,"__wrapped__");if(le||he){var ve=le?o.value():o,pe=he?l.value():l;return F||(F=new hn),C(ve,pe,d,m,F)}}return q?(F||(F=new hn),bK(o,l,d,m,C,F)):!1}function Z4(o){return BA(o)&&tt(o)==z}function Fd(o,l,d,m){var C=d.length,F=C,I=!m;if(o==null)return!F;for(o=iA(o);C--;){var O=d[C];if(I&&O[2]?O[1]!==o[O[0]]:!(O[0]in o))return!1}for(;++C<F;){O=d[C];var k=O[0],G=o[k],W=O[1];if(I&&O[2]){if(G===A&&!(k in o))return!1}else{var J=new hn;if(m)var q=m(G,W,k,o,l,J);if(!(q===A?To(W,G,w|Q,m,J):q))return!1}}return!0}function K0(o){if(!gA(o)||LK(o))return!1;var l=nr(o)?ZR:VM;return l.test(Ei(o))}function j4(o){return BA(o)&&ft(o)==T}function eK(o){return BA(o)&&tt(o)==x}function AK(o){return BA(o)&&dc(o.length)&&!!cA[ft(o)]}function V0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?ye(o)?W0(o[0],o[1]):G0(o):cE(o)}function bd(o){if(!Oo(o))return r4(o);var l=[];for(var d in iA(o))qe.call(o,d)&&d!="constructor"&&l.push(d);return l}function tK(o){if(!gA(o))return DK(o);var l=Oo(o),d=[];for(var m in o)m=="constructor"&&(l||!qe.call(o,m))||d.push(m);return d}function Ud(o,l){return o<l}function P0(o,l){var d=-1,m=Qt(o)?M(o.length):[];return Dr(o,function(C,F,I){m[++d]=l(C,F,I)}),m}function G0(o){var l=Kd(o);return l.length==1&&l[0][2]?Fy(l[0][0],l[0][1]):function(d){return d===o||Fd(d,o,l)}}function W0(o,l){return Pd(o)&&Qy(l)?Fy(On(o),l):function(d){var m=jd(d,o);return m===A&&m===l?eh(d,o):To(l,m,w|Q)}}function ql(o,l,d,m,C){o!==l&&Cd(l,function(F,I){if(C||(C=new hn),gA(F))nK(o,l,I,d,ql,m,C);else{var O=m?m(Wd(o,I),F,I+"",o,l,C):A;O===A&&(O=F),Bd(o,I,O)}},Ft)}function nK(o,l,d,m,C,F,I){var O=Wd(o,d),k=Wd(l,d),G=I.get(k);if(G){Bd(o,d,G);return}var W=F?F(O,k,d+"",o,l,I):A,J=W===A;if(J){var q=ye(k),le=!q&&Vr(k),he=!q&&!le&&ys(k);W=k,q||le||he?ye(O)?W=O:yA(O)?W=Et(O):le?(J=!1,W=ny(k,!0)):he?(J=!1,W=ry(k,!0)):W=[]:Ho(k)||Qi(k)?(W=O,Qi(O)?W=eE(O):(!gA(O)||nr(O))&&(W=Ey(k))):J=!1}J&&(I.set(k,W),C(W,k,m,F,I),I.delete(k)),Bd(o,d,W)}function $0(o,l){var d=o.length;if(d)return l+=l<0?d:0,tr(l,d)?o[l]:A}function J0(o,l,d){l.length?l=fA(l,function(F){return ye(F)?function(I){return Ci(I,F.length===1?F[0]:F)}:F}):l=[bt];var m=-1;l=fA(l,Lt(de()));var C=P0(o,function(F,I,O){var k=fA(l,function(G){return G(F)});return{criteria:k,index:++m,value:F}});return TR(C,function(F,I){return gK(F,I,d)})}function rK(o,l){return X0(o,l,function(d,m){return eh(o,m)})}function X0(o,l,d){for(var m=-1,C=l.length,F={};++m<C;){var I=l[m],O=Ci(o,I);d(O,I)&&_o(F,Rr(I,o),O)}return F}function iK(o){return function(l){return Ci(l,o)}}function vd(o,l,d,m){var C=m?SR:cs,F=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=fA(o,Lt(d)));++F<I;)for(var k=0,G=l[F],W=d?d(G):G;(k=C(O,W,k,m))>-1;)O!==o&&Kl.call(O,k,1),Kl.call(o,k,1);return o}function Y0(o,l){for(var d=o?l.length:0,m=d-1;d--;){var C=l[d];if(d==m||C!==F){var F=C;tr(C)?Kl.call(o,C,1):_d(o,C)}}return o}function Id(o,l){return o+Gl(S0()*(l-o+1))}function sK(o,l,d,m){for(var C=-1,F=_A(Pl((l-o)/(d||1)),0),I=M(F);F--;)I[m?F:++C]=o,o+=d;return I}function Sd(o,l){var d="";if(!o||l<1||l>re)return d;do l%2&&(d+=o),l=Gl(l/2),l&&(o+=o);while(l);return d}function Ie(o,l){return $d(by(o,l,bt),o+"")}function oK(o){return x0(Es(o))}function aK(o,l){var d=Es(o);return oc(d,wi(l,0,d.length))}function _o(o,l,d,m){if(!gA(o))return o;l=Rr(l,o);for(var C=-1,F=l.length,I=F-1,O=o;O!=null&&++C<F;){var k=On(l[C]),G=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return o;if(C!=I){var W=O[k];G=m?m(W,k,O):A,G===A&&(G=gA(W)?W:tr(l[C+1])?[]:{})}vo(O,k,G),O=O[k]}return o}var z0=Wl?function(o,l){return Wl.set(o,l),o}:bt,lK=Vl?function(o,l){return Vl(o,"toString",{configurable:!0,enumerable:!1,value:th(l),writable:!0})}:bt;function cK(o){return oc(Es(o))}function jt(o,l,d){var m=-1,C=o.length;l<0&&(l=-l>C?0:C+l),d=d>C?C:d,d<0&&(d+=C),C=l>d?0:d-l>>>0,l>>>=0;for(var F=M(C);++m<C;)F[m]=o[m+l];return F}function uK(o,l){var d;return Dr(o,function(m,C,F){return d=l(m,C,F),!d}),!!d}function Zl(o,l,d){var m=0,C=o==null?m:o.length;if(typeof l=="number"&&l===l&&C<=Ke){for(;m<C;){var F=m+C>>>1,I=o[F];I!==null&&!kt(I)&&(d?I<=l:I<l)?m=F+1:C=F}return C}return Td(o,l,bt,d)}function Td(o,l,d,m){var C=0,F=o==null?0:o.length;if(F===0)return 0;l=d(l);for(var I=l!==l,O=l===null,k=kt(l),G=l===A;C<F;){var W=Gl((C+F)/2),J=d(o[W]),q=J!==A,le=J===null,he=J===J,ve=kt(J);if(I)var pe=m||he;else G?pe=he&&(m||q):O?pe=he&&q&&(m||!le):k?pe=he&&q&&!le&&(m||!ve):le||ve?pe=!1:pe=m?J<=l:J<l;pe?C=W+1:F=W}return At(F,Ge)}function q0(o,l){for(var d=-1,m=o.length,C=0,F=[];++d<m;){var I=o[d],O=l?l(I):I;if(!d||!pn(O,k)){var k=O;F[C++]=I===0?0:I}}return F}function Z0(o){return typeof o=="number"?o:kt(o)?Xe:+o}function Ht(o){if(typeof o=="string")return o;if(ye(o))return fA(o,Ht)+"";if(kt(o))return T0?T0.call(o):"";var l=o+"";return l=="0"&&1/o==-He?"-0":l}function Mr(o,l,d){var m=-1,C=_l,F=o.length,I=!0,O=[],k=O;if(d)I=!1,C=id;else if(F>=r){var G=l?null:EK(o);if(G)return Ol(G);I=!1,C=yo,k=new Bi}else k=l?[]:O;e:for(;++m<F;){var W=o[m],J=l?l(W):W;if(W=d||W!==0?W:0,I&&J===J){for(var q=k.length;q--;)if(k[q]===J)continue e;l&&k.push(J),O.push(W)}else C(k,J,d)||(k!==O&&k.push(J),O.push(W))}return O}function _d(o,l){return l=Rr(l,o),o=Uy(o,l),o==null||delete o[On(en(l))]}function j0(o,l,d,m){return _o(o,l,d(Ci(o,l)),m)}function jl(o,l,d,m){for(var C=o.length,F=m?C:-1;(m?F--:++F<C)&&l(o[F],F,o););return d?jt(o,m?0:F,m?F+1:C):jt(o,m?F+1:0,m?C:F)}function ey(o,l){var d=o;return d instanceof Oe&&(d=d.value()),sd(l,function(m,C){return C.func.apply(C.thisArg,Hr([m],C.args))},d)}function xd(o,l,d){var m=o.length;if(m<2)return m?Mr(o[0]):[];for(var C=-1,F=M(m);++C<m;)for(var I=o[C],O=-1;++O<m;)O!=C&&(F[C]=Io(F[C]||I,o[O],l,d));return Mr($A(F,1),l,d)}function Ay(o,l,d){for(var m=-1,C=o.length,F=l.length,I={};++m<C;){var O=m<F?l[m]:A;d(I,o[m],O)}return I}function Od(o){return yA(o)?o:[]}function Ld(o){return typeof o=="function"?o:bt}function Rr(o,l){return ye(o)?o:Pd(o,l)?[o]:Ty(Ye(o))}var fK=Ie;function Kr(o,l,d){var m=o.length;return d=d===A?m:d,!l&&d>=m?o:jt(o,l,d)}var ty=jR||function(o){return WA.clearTimeout(o)};function ny(o,l){if(l)return o.slice();var d=o.length,m=F0?F0(d):new o.constructor(d);return o.copy(m),m}function Hd(o){var l=new o.constructor(o.byteLength);return new Ml(l).set(new Ml(o)),l}function dK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function hK(o){var l=new o.constructor(o.source,RC.exec(o));return l.lastIndex=o.lastIndex,l}function pK(o){return Uo?iA(Uo.call(o)):{}}function ry(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function iy(o,l){if(o!==l){var d=o!==A,m=o===null,C=o===o,F=kt(o),I=l!==A,O=l===null,k=l===l,G=kt(l);if(!O&&!G&&!F&&o>l||F&&I&&k&&!O&&!G||m&&I&&k||!d&&k||!C)return 1;if(!m&&!F&&!G&&o<l||G&&d&&C&&!m&&!F||O&&d&&C||!I&&C||!k)return-1}return 0}function gK(o,l,d){for(var m=-1,C=o.criteria,F=l.criteria,I=C.length,O=d.length;++m<I;){var k=iy(C[m],F[m]);if(k){if(m>=O)return k;var G=d[m];return k*(G=="desc"?-1:1)}}return o.index-l.index}function sy(o,l,d,m){for(var C=-1,F=o.length,I=d.length,O=-1,k=l.length,G=_A(F-I,0),W=M(k+G),J=!m;++O<k;)W[O]=l[O];for(;++C<I;)(J||C<F)&&(W[d[C]]=o[C]);for(;G--;)W[O++]=o[C++];return W}function oy(o,l,d,m){for(var C=-1,F=o.length,I=-1,O=d.length,k=-1,G=l.length,W=_A(F-O,0),J=M(W+G),q=!m;++C<W;)J[C]=o[C];for(var le=C;++k<G;)J[le+k]=l[k];for(;++I<O;)(q||C<F)&&(J[le+d[I]]=o[C++]);return J}function Et(o,l){var d=-1,m=o.length;for(l||(l=M(m));++d<m;)l[d]=o[d];return l}function xn(o,l,d,m){var C=!d;d||(d={});for(var F=-1,I=l.length;++F<I;){var O=l[F],k=m?m(d[O],o[O],O,d,o):A;k===A&&(k=o[O]),C?jn(d,O,k):vo(d,O,k)}return d}function mK(o,l){return xn(o,Vd(o),l)}function BK(o,l){return xn(o,Cy(o),l)}function ec(o,l){return function(d,m){var C=ye(d)?QR:R4,F=l?l():{};return C(d,o,de(m,2),F)}}function Bs(o){return Ie(function(l,d){var m=-1,C=d.length,F=C>1?d[C-1]:A,I=C>2?d[2]:A;for(F=o.length>3&&typeof F=="function"?(C--,F):A,I&&dt(d[0],d[1],I)&&(F=C<3?A:F,C=1),l=iA(l);++m<C;){var O=d[m];O&&o(l,O,m,F)}return l})}function ay(o,l){return function(d,m){if(d==null)return d;if(!Qt(d))return o(d,m);for(var C=d.length,F=l?C:-1,I=iA(d);(l?F--:++F<C)&&m(I[F],F,I)!==!1;);return d}}function ly(o){return function(l,d,m){for(var C=-1,F=iA(l),I=m(l),O=I.length;O--;){var k=I[o?O:++C];if(d(F[k],k,F)===!1)break}return l}}function wK(o,l,d){var m=l&b,C=xo(o);function F(){var I=this&&this!==WA&&this instanceof F?C:o;return I.apply(m?d:this,arguments)}return F}function cy(o){return function(l){l=Ye(l);var d=us(l)?dn(l):A,m=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return m[o]()+C}}function ws(o){return function(l){return sd(aE(oE(l).replace(lR,"")),o,"")}}function xo(o){return function(){var l=arguments;switch(l.length){case 0:return new o;case 1:return new o(l[0]);case 2:return new o(l[0],l[1]);case 3:return new o(l[0],l[1],l[2]);case 4:return new o(l[0],l[1],l[2],l[3]);case 5:return new o(l[0],l[1],l[2],l[3],l[4]);case 6:return new o(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new o(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ms(o.prototype),m=o.apply(d,l);return gA(m)?m:d}}function CK(o,l,d){var m=xo(o);function C(){for(var F=arguments.length,I=M(F),O=F,k=Cs(C);O--;)I[O]=arguments[O];var G=F<3&&I[0]!==k&&I[F-1]!==k?[]:kr(I,k);if(F-=G.length,F<d)return py(o,l,Ac,C.placeholder,A,I,G,A,A,d-F);var W=this&&this!==WA&&this instanceof C?m:o;return Ot(W,this,I)}return C}function uy(o){return function(l,d,m){var C=iA(l);if(!Qt(l)){var F=de(d,3);l=DA(l),d=function(O){return F(C[O],O,C)}}var I=o(l,d,m);return I>-1?C[F?l[I]:I]:A}}function fy(o){return Ar(function(l){var d=l.length,m=d,C=qt.prototype.thru;for(o&&l.reverse();m--;){var F=l[m];if(typeof F!="function")throw new zt(s);if(C&&!I&&ic(F)=="wrapper")var I=new qt([],!0)}for(m=I?m:d;++m<d;){F=l[m];var O=ic(F),k=O=="wrapper"?Rd(F):A;k&&Gd(k[0])&&k[1]==(N|S|L|V)&&!k[4].length&&k[9]==1?I=I[ic(k[0])].apply(I,k[3]):I=F.length==1&&Gd(F)?I[O]():I.thru(F)}return function(){var G=arguments,W=G[0];if(I&&G.length==1&&ye(W))return I.plant(W).value();for(var J=0,q=d?l[J].apply(this,G):W;++J<d;)q=l[J].call(this,q);return q}})}function Ac(o,l,d,m,C,F,I,O,k,G){var W=l&N,J=l&b,q=l&v,le=l&(S|E),he=l&D,ve=q?A:xo(o);function pe(){for(var Te=arguments.length,Me=M(Te),Nt=Te;Nt--;)Me[Nt]=arguments[Nt];if(le)var ht=Cs(pe),Dt=xR(Me,ht);if(m&&(Me=sy(Me,m,C,le)),F&&(Me=oy(Me,F,I,le)),Te-=Dt,le&&Te<G){var EA=kr(Me,ht);return py(o,l,Ac,pe.placeholder,d,Me,EA,O,k,G-Te)}var gn=J?d:this,ir=q?gn[o]:o;return Te=Me.length,O?Me=RK(Me,O):he&&Te>1&&Me.reverse(),W&&k<Te&&(Me.length=k),this&&this!==WA&&this instanceof pe&&(ir=ve||xo(ir)),ir.apply(gn,Me)}return pe}function dy(o,l){return function(d,m){return X4(d,o,l(m),{})}}function tc(o,l){return function(d,m){var C;if(d===A&&m===A)return l;if(d!==A&&(C=d),m!==A){if(C===A)return m;typeof d=="string"||typeof m=="string"?(d=Ht(d),m=Ht(m)):(d=Z0(d),m=Z0(m)),C=o(d,m)}return C}}function kd(o){return Ar(function(l){return l=fA(l,Lt(de())),Ie(function(d){var m=this;return o(l,function(C){return Ot(C,m,d)})})})}function nc(o,l){l=l===A?" ":Ht(l);var d=l.length;if(d<2)return d?Sd(l,o):l;var m=Sd(l,Pl(o/fs(l)));return us(l)?Kr(dn(m),0,o).join(""):m.slice(0,o)}function yK(o,l,d,m){var C=l&b,F=xo(o);function I(){for(var O=-1,k=arguments.length,G=-1,W=m.length,J=M(W+k),q=this&&this!==WA&&this instanceof I?F:o;++G<W;)J[G]=m[G];for(;k--;)J[G++]=arguments[++O];return Ot(q,C?d:this,J)}return I}function hy(o){return function(l,d,m){return m&&typeof m!="number"&&dt(l,d,m)&&(d=m=A),l=rr(l),d===A?(d=l,l=0):d=rr(d),m=m===A?l<d?1:-1:rr(m),sK(l,d,m,o)}}function rc(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=An(l),d=An(d)),o(l,d)}}function py(o,l,d,m,C,F,I,O,k,G){var W=l&S,J=W?I:A,q=W?A:I,le=W?F:A,he=W?A:F;l|=W?L:U,l&=~(W?U:L),l&_||(l&=~(b|v));var ve=[o,l,C,le,J,he,q,O,k,G],pe=d.apply(A,ve);return Gd(o)&&vy(pe,ve),pe.placeholder=m,Iy(pe,o,l)}function Nd(o){var l=TA[o];return function(d,m){if(d=An(d),m=m==null?0:At(Ee(m),292),m&&I0(d)){var C=(Ye(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+m));return C=(Ye(F)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return l(d)}}var EK=ps&&1/Ol(new ps([,-0]))[1]==He?function(o){return new ps(o)}:ih;function gy(o){return function(l){var d=tt(l);return d==z?dd(l):d==x?MR(l):_R(l,o(l))}}function er(o,l,d,m,C,F,I,O){var k=l&v;if(!k&&typeof o!="function")throw new zt(s);var G=m?m.length:0;if(G||(l&=~(L|U),m=C=A),I=I===A?I:_A(Ee(I),0),O=O===A?O:Ee(O),G-=C?C.length:0,l&U){var W=m,J=C;m=C=A}var q=k?A:Rd(o),le=[o,l,d,m,C,W,J,F,I,O];if(q&&NK(le,q),o=le[0],l=le[1],d=le[2],m=le[3],C=le[4],O=le[9]=le[9]===A?k?0:o.length:_A(le[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var he=wK(o,l,d);else l==S||l==E?he=CK(o,l,O):(l==L||l==(b|L))&&!C.length?he=yK(o,l,d,m):he=Ac.apply(A,le);var ve=q?z0:vy;return Iy(ve(he,le),o,l)}function my(o,l,d,m){return o===A||pn(o,hs[d])&&!qe.call(m,d)?l:o}function By(o,l,d,m,C,F){return gA(o)&&gA(l)&&(F.set(l,o),ql(o,l,A,By,F),F.delete(l)),o}function QK(o){return Ho(o)?A:o}function wy(o,l,d,m,C,F){var I=d&w,O=o.length,k=l.length;if(O!=k&&!(I&&k>O))return!1;var G=F.get(o),W=F.get(l);if(G&&W)return G==l&&W==o;var J=-1,q=!0,le=d&Q?new Bi:A;for(F.set(o,l),F.set(l,o);++J<O;){var he=o[J],ve=l[J];if(m)var pe=I?m(ve,he,J,l,o,F):m(he,ve,J,o,l,F);if(pe!==A){if(pe)continue;q=!1;break}if(le){if(!od(l,function(Te,Me){if(!yo(le,Me)&&(he===Te||C(he,Te,d,m,F)))return le.push(Me)})){q=!1;break}}else if(!(he===ve||C(he,ve,d,m,F))){q=!1;break}}return F.delete(o),F.delete(l),q}function FK(o,l,d,m,C,F,I){switch(d){case X:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case R:return!(o.byteLength!=l.byteLength||!F(new Ml(o),new Ml(l)));case ct:case et:case Ue:return pn(+o,+l);case _t:return o.name==l.name&&o.message==l.message;case T:case $:return o==l+"";case z:var O=dd;case x:var k=m&w;if(O||(O=Ol),o.size!=l.size&&!k)return!1;var G=I.get(o);if(G)return G==l;m|=Q,I.set(o,l);var W=wy(O(o),O(l),m,C,F,I);return I.delete(o),W;case oe:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function bK(o,l,d,m,C,F){var I=d&w,O=Dd(o),k=O.length,G=Dd(l),W=G.length;if(k!=W&&!I)return!1;for(var J=k;J--;){var q=O[J];if(!(I?q in l:qe.call(l,q)))return!1}var le=F.get(o),he=F.get(l);if(le&&he)return le==l&&he==o;var ve=!0;F.set(o,l),F.set(l,o);for(var pe=I;++J<k;){q=O[J];var Te=o[q],Me=l[q];if(m)var Nt=I?m(Me,Te,q,l,o,F):m(Te,Me,q,o,l,F);if(!(Nt===A?Te===Me||C(Te,Me,d,m,F):Nt)){ve=!1;break}pe||(pe=q=="constructor")}if(ve&&!pe){var ht=o.constructor,Dt=l.constructor;ht!=Dt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Dt=="function"&&Dt instanceof Dt)&&(ve=!1)}return F.delete(o),F.delete(l),ve}function Ar(o){return $d(by(o,A,Ly),o+"")}function Dd(o){return M0(o,DA,Vd)}function Md(o){return M0(o,Ft,Cy)}var Rd=Wl?function(o){return Wl.get(o)}:ih;function ic(o){for(var l=o.name+"",d=gs[l],m=qe.call(gs,l)?d.length:0;m--;){var C=d[m],F=C.func;if(F==null||F==o)return C.name}return l}function Cs(o){var l=qe.call(y,"placeholder")?y:o;return l.placeholder}function de(){var o=y.iteratee||nh;return o=o===nh?V0:o,arguments.length?o(arguments[0],arguments[1]):o}function sc(o,l){var d=o.__data__;return OK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Kd(o){for(var l=DA(o),d=l.length;d--;){var m=l[d],C=o[m];l[d]=[m,C,Qy(C)]}return l}function yi(o,l){var d=kR(o,l);return K0(d)?d:A}function UK(o){var l=qe.call(o,gi),d=o[gi];try{o[gi]=A;var m=!0}catch{}var C=Nl.call(o);return m&&(l?o[gi]=d:delete o[gi]),C}var Vd=pd?function(o){return o==null?[]:(o=iA(o),Lr(pd(o),function(l){return U0.call(o,l)}))}:sh,Cy=pd?function(o){for(var l=[];o;)Hr(l,Vd(o)),o=Rl(o);return l}:sh,tt=ft;(gd&&tt(new gd(new ArrayBuffer(1)))!=X||Qo&&tt(new Qo)!=z||md&&tt(md.resolve())!=fn||ps&&tt(new ps)!=x||Fo&&tt(new Fo)!=Ne)&&(tt=function(o){var l=ft(o),d=l==vA?o.constructor:A,m=d?Ei(d):"";if(m)switch(m){case a4:return X;case l4:return z;case c4:return fn;case u4:return x;case f4:return Ne}return l});function vK(o,l,d){for(var m=-1,C=d.length;++m<C;){var F=d[m],I=F.size;switch(F.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,o+I);break;case"takeRight":o=_A(o,l-I);break}}return{start:o,end:l}}function IK(o){var l=o.match(LM);return l?l[1].split(HM):[]}function yy(o,l,d){l=Rr(l,o);for(var m=-1,C=l.length,F=!1;++m<C;){var I=On(l[m]);if(!(F=o!=null&&d(o,I)))break;o=o[I]}return F||++m!=C?F:(C=o==null?0:o.length,!!C&&dc(C)&&tr(I,C)&&(ye(o)||Qi(o)))}function SK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&qe.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function Ey(o){return typeof o.constructor=="function"&&!Oo(o)?ms(Rl(o)):{}}function TK(o,l,d){var m=o.constructor;switch(l){case R:return Hd(o);case ct:case et:return new m(+o);case X:return dK(o,d);case Se:case rA:case Ct:case Tn:case Jt:case K:case ie:case ue:case Pe:return ry(o,d);case z:return new m;case Ue:case $:return new m(o);case T:return hK(o);case x:return new m;case oe:return pK(o)}}function _K(o,l){var d=l.length;if(!d)return o;var m=d-1;return l[m]=(d>1?"& ":"")+l[m],l=l.join(d>2?", ":" "),o.replace(OM,`{
144
144
  /* [wrapped with `+l+`] */
145
- `)}function _K(o){return ye(o)||Qi(o)||!!(v0&&o&&o[v0])}function tr(o,l){var d=typeof o;return l=l??re,!!l&&(d=="number"||d!="symbol"&&PM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!gA(d))return!1;var m=typeof l;return(m=="number"?Qt(d)&&tr(l,d.length):m=="string"&&l in d)?pn(d[l],o):!1}function Pd(o,l){if(ye(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||kt(o)?!0:as.test(o)||!Co.test(o)||l!=null&&o in iA(l)}function xK(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function Gd(o){var l=ic(o),d=y[l];if(typeof d!="function"||!(l in Oe.prototype))return!1;if(o===d)return!0;var m=Rd(d);return!!m&&o===m[0]}function OK(o){return!!Q0&&Q0 in o}var LK=Hl?nr:oh;function Oo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||hs;return o===d}function Qy(o){return o===o&&!gA(o)}function Fy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==A||o in iA(d))}}function HK(o){var l=uc(o,function(m){return d.size===u&&d.clear(),m}),d=l.cache;return l}function kK(o,l){var d=o[1],m=l[1],C=d|m,F=C<(b|v|N),I=m==N&&d==S||m==N&&d==V&&o[7].length<=l[8]||m==(N|V)&&l[7].length<=l[8]&&d==S;if(!(F||I))return o;m&b&&(o[2]=l[2],C|=d&b?0:_);var O=l[3];if(O){var k=o[3];o[3]=k?sy(k,O,l[4]):O,o[4]=k?kr(o[3],f):l[4]}return O=l[5],O&&(k=o[5],o[5]=k?oy(k,O,l[6]):O,o[6]=k?kr(o[5],f):l[6]),O=l[7],O&&(o[7]=O),m&N&&(o[8]=o[8]==null?l[8]:At(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function NK(o){var l=[];if(o!=null)for(var d in iA(o))l.push(d);return l}function DK(o){return Nl.call(o)}function by(o,l,d){return l=_A(l===A?o.length-1:l,0),function(){for(var m=arguments,C=-1,F=_A(m.length-l,0),I=M(F);++C<F;)I[C]=m[l+C];C=-1;for(var O=M(l+1);++C<l;)O[C]=m[C];return O[l]=d(I),Ot(o,this,O)}}function Uy(o,l){return l.length<2?o:Ci(o,jt(l,0,-1))}function MK(o,l){for(var d=o.length,m=At(l.length,d),C=Et(o);m--;){var F=l[m];o[m]=tr(F,d)?C[F]:A}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var vy=Sy(z0),Lo=e4||function(o,l){return WA.setTimeout(o,l)},$d=Sy(aK);function Iy(o,l,d){var m=l+"";return $d(o,TK(m,RK(vK(m),d)))}function Sy(o){var l=0,d=0;return function(){var m=r4(),C=ce-(m-d);if(d=m,C>0){if(++l>=ne)return arguments[0]}else l=0;return o.apply(A,arguments)}}function oc(o,l){var d=-1,m=o.length,C=m-1;for(l=l===A?m:l;++d<l;){var F=Id(d,C),I=o[F];o[F]=o[d],o[d]=I}return o.length=l,o}var Ty=HK(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(SM,function(d,m,C,F){l.push(C?F.replace(NM,"$1"):m||d)}),l});function On(o){if(typeof o=="string"||kt(o))return o;var l=o+"";return l=="0"&&1/o==-He?"-0":l}function Ei(o){if(o!=null){try{return kl.call(o)}catch{}try{return o+""}catch{}}return""}function RK(o,l){return Yt(eA,function(d){var m="_."+d[0];l&d[1]&&!_l(o,m)&&o.push(m)}),o.sort()}function _y(o){if(o instanceof Oe)return o.clone();var l=new qt(o.__wrapped__,o.__chain__);return l.__actions__=Et(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function KK(o,l,d){(d?dt(o,l,d):l===A)?l=1:l=_A(Ee(l),0);var m=o==null?0:o.length;if(!m||l<1)return[];for(var C=0,F=0,I=M(Pl(m/l));C<m;)I[F++]=jt(o,C,C+=l);return I}function VK(o){for(var l=-1,d=o==null?0:o.length,m=0,C=[];++l<d;){var F=o[l];F&&(C[m++]=F)}return C}function PK(){var o=arguments.length;if(!o)return[];for(var l=M(o-1),d=arguments[0],m=o;m--;)l[m-1]=arguments[m];return Hr(ye(d)?Et(d):[d],$A(l,1))}var GK=Ie(function(o,l){return yA(o)?Io(o,$A(l,1,yA,!0)):[]}),WK=Ie(function(o,l){var d=en(l);return yA(d)&&(d=A),yA(o)?Io(o,$A(l,1,yA,!0),de(d,2)):[]}),$K=Ie(function(o,l){var d=en(l);return yA(d)&&(d=A),yA(o)?Io(o,$A(l,1,yA,!0),A,d):[]});function JK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Ee(l),jt(o,l<0?0:l,m)):[]}function XK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Ee(l),l=m-l,jt(o,0,l<0?0:l)):[]}function YK(o,l){return o&&o.length?jl(o,de(l,3),!0,!0):[]}function zK(o,l){return o&&o.length?jl(o,de(l,3),!0):[]}function qK(o,l,d,m){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&dt(o,l,d)&&(d=0,m=C),P4(o,l,d,m)):[]}function xy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:Ee(d);return C<0&&(C=_A(m+C,0)),xl(o,de(l,3),C)}function Oy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m-1;return d!==A&&(C=Ee(d),C=d<0?_A(m+C,0):At(C,m-1)),xl(o,de(l,3),C,!0)}function Ly(o){var l=o==null?0:o.length;return l?$A(o,1):[]}function ZK(o){var l=o==null?0:o.length;return l?$A(o,He):[]}function jK(o,l){var d=o==null?0:o.length;return d?(l=l===A?1:Ee(l),$A(o,l)):[]}function eV(o){for(var l=-1,d=o==null?0:o.length,m={};++l<d;){var C=o[l];m[C[0]]=C[1]}return m}function Hy(o){return o&&o.length?o[0]:A}function AV(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:Ee(d);return C<0&&(C=_A(m+C,0)),cs(o,l,C)}function tV(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var nV=Ie(function(o){var l=fA(o,Od);return l.length&&l[0]===o[0]?Qd(l):[]}),rV=Ie(function(o){var l=en(o),d=fA(o,Od);return l===en(d)?l=A:d.pop(),d.length&&d[0]===o[0]?Qd(d,de(l,2)):[]}),iV=Ie(function(o){var l=en(o),d=fA(o,Od);return l=typeof l=="function"?l:A,l&&d.pop(),d.length&&d[0]===o[0]?Qd(d,A,l):[]});function sV(o,l){return o==null?"":t4.call(o,l)}function en(o){var l=o==null?0:o.length;return l?o[l-1]:A}function oV(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m;return d!==A&&(C=Ee(d),C=C<0?_A(m+C,0):At(C,m-1)),l===l?RR(o,l,C):xl(o,p0,C,!0)}function aV(o,l){return o&&o.length?$0(o,Ee(l)):A}var lV=Ie(ky);function ky(o,l){return o&&o.length&&l&&l.length?vd(o,l):o}function cV(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,de(d,2)):o}function uV(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,A,d):o}var fV=Ar(function(o,l){var d=o==null?0:o.length,m=wd(o,l);return Y0(o,fA(l,function(C){return tr(C,d)?+C:C}).sort(iy)),m});function dV(o,l){var d=[];if(!(o&&o.length))return d;var m=-1,C=[],F=o.length;for(l=de(l,3);++m<F;){var I=o[m];l(I,m,o)&&(d.push(I),C.push(m))}return Y0(o,C),d}function Jd(o){return o==null?o:s4.call(o)}function hV(o,l,d){var m=o==null?0:o.length;return m?(d&&typeof d!="number"&&dt(o,l,d)?(l=0,d=m):(l=l==null?0:Ee(l),d=d===A?m:Ee(d)),jt(o,l,d)):[]}function pV(o,l){return Zl(o,l)}function gV(o,l,d){return Td(o,l,de(d,2))}function mV(o,l){var d=o==null?0:o.length;if(d){var m=Zl(o,l);if(m<d&&pn(o[m],l))return m}return-1}function BV(o,l){return Zl(o,l,!0)}function wV(o,l,d){return Td(o,l,de(d,2),!0)}function CV(o,l){var d=o==null?0:o.length;if(d){var m=Zl(o,l,!0)-1;if(pn(o[m],l))return m}return-1}function yV(o){return o&&o.length?q0(o):[]}function EV(o,l){return o&&o.length?q0(o,de(l,2)):[]}function QV(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function FV(o,l,d){return o&&o.length?(l=d||l===A?1:Ee(l),jt(o,0,l<0?0:l)):[]}function bV(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Ee(l),l=m-l,jt(o,l<0?0:l,m)):[]}function UV(o,l){return o&&o.length?jl(o,de(l,3),!1,!0):[]}function vV(o,l){return o&&o.length?jl(o,de(l,3)):[]}var IV=Ie(function(o){return Mr($A(o,1,yA,!0))}),SV=Ie(function(o){var l=en(o);return yA(l)&&(l=A),Mr($A(o,1,yA,!0),de(l,2))}),TV=Ie(function(o){var l=en(o);return l=typeof l=="function"?l:A,Mr($A(o,1,yA,!0),A,l)});function _V(o){return o&&o.length?Mr(o):[]}function xV(o,l){return o&&o.length?Mr(o,de(l,2)):[]}function OV(o,l){return l=typeof l=="function"?l:A,o&&o.length?Mr(o,A,l):[]}function Xd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(yA(d))return l=_A(d.length,l),!0}),ud(l,function(d){return fA(o,ad(d))})}function Ny(o,l){if(!(o&&o.length))return[];var d=Xd(o);return l==null?d:fA(d,function(m){return Ot(l,A,m)})}var LV=Ie(function(o,l){return yA(o)?Io(o,l):[]}),HV=Ie(function(o){return xd(Lr(o,yA))}),kV=Ie(function(o){var l=en(o);return yA(l)&&(l=A),xd(Lr(o,yA),de(l,2))}),NV=Ie(function(o){var l=en(o);return l=typeof l=="function"?l:A,xd(Lr(o,yA),A,l)}),DV=Ie(Xd);function MV(o,l){return Ay(o||[],l||[],vo)}function RV(o,l){return Ay(o||[],l||[],_o)}var KV=Ie(function(o){var l=o.length,d=l>1?o[l-1]:A;return d=typeof d=="function"?(o.pop(),d):A,Ny(o,d)});function Dy(o){var l=y(o);return l.__chain__=!0,l}function VV(o,l){return l(o),o}function ac(o,l){return l(o)}var PV=Ar(function(o){var l=o.length,d=l?o[0]:0,m=this.__wrapped__,C=function(F){return wd(F,o)};return l>1||this.__actions__.length||!(m instanceof Oe)||!tr(d)?this.thru(C):(m=m.slice(d,+d+(l?1:0)),m.__actions__.push({func:ac,args:[C],thisArg:A}),new qt(m,this.__chain__).thru(function(F){return l&&!F.length&&F.push(A),F}))});function GV(){return Dy(this)}function WV(){return new qt(this.value(),this.__chain__)}function $V(){this.__values__===A&&(this.__values__=Zy(this.value()));var o=this.__index__>=this.__values__.length,l=o?A:this.__values__[this.__index__++];return{done:o,value:l}}function JV(){return this}function XV(o){for(var l,d=this;d instanceof Jl;){var m=_y(d);m.__index__=0,m.__values__=A,l?C.__wrapped__=m:l=m;var C=m;d=d.__wrapped__}return C.__wrapped__=o,l}function YV(){var o=this.__wrapped__;if(o instanceof Oe){var l=o;return this.__actions__.length&&(l=new Oe(this)),l=l.reverse(),l.__actions__.push({func:ac,args:[Jd],thisArg:A}),new qt(l,this.__chain__)}return this.thru(Jd)}function zV(){return ey(this.__wrapped__,this.__actions__)}var qV=ec(function(o,l,d){qe.call(o,d)?++o[d]:jn(o,d,1)});function ZV(o,l,d){var m=ye(o)?d0:V4;return d&&dt(o,l,d)&&(l=A),m(o,de(l,3))}function jV(o,l){var d=ye(o)?Lr:N0;return d(o,de(l,3))}var eP=uy(xy),AP=uy(Oy);function tP(o,l){return $A(lc(o,l),1)}function nP(o,l){return $A(lc(o,l),He)}function rP(o,l,d){return d=d===A?1:Ee(d),$A(lc(o,l),d)}function My(o,l){var d=ye(o)?Yt:Dr;return d(o,de(l,3))}function Ry(o,l){var d=ye(o)?QR:k0;return d(o,de(l,3))}var iP=ec(function(o,l,d){qe.call(o,d)?o[d].push(l):jn(o,d,[l])});function sP(o,l,d,m){o=Qt(o)?o:Es(o),d=d&&!m?Ee(d):0;var C=o.length;return d<0&&(d=_A(C+d,0)),hc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var oP=Ie(function(o,l,d){var m=-1,C=typeof l=="function",F=Qt(o)?M(o.length):[];return Dr(o,function(I){F[++m]=C?Ot(l,I,d):So(I,l,d)}),F}),aP=ec(function(o,l,d){jn(o,d,l)});function lc(o,l){var d=ye(o)?fA:P0;return d(o,de(l,3))}function lP(o,l,d,m){return o==null?[]:(ye(l)||(l=l==null?[]:[l]),d=m?A:d,ye(d)||(d=d==null?[]:[d]),J0(o,l,d))}var cP=ec(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function uP(o,l,d){var m=ye(o)?sd:m0,C=arguments.length<3;return m(o,de(l,4),d,C,Dr)}function fP(o,l,d){var m=ye(o)?FR:m0,C=arguments.length<3;return m(o,de(l,4),d,C,k0)}function dP(o,l){var d=ye(o)?Lr:N0;return d(o,fc(de(l,3)))}function hP(o){var l=ye(o)?x0:sK;return l(o)}function pP(o,l,d){(d?dt(o,l,d):l===A)?l=1:l=Ee(l);var m=ye(o)?N4:oK;return m(o,l)}function gP(o){var l=ye(o)?D4:lK;return l(o)}function mP(o){if(o==null)return 0;if(Qt(o))return hc(o)?fs(o):o.length;var l=tt(o);return l==z||l==x?o.size:bd(o).length}function BP(o,l,d){var m=ye(o)?od:cK;return d&&dt(o,l,d)&&(l=A),m(o,de(l,3))}var wP=Ie(function(o,l){if(o==null)return[];var d=l.length;return d>1&&dt(o,l[0],l[1])?l=[]:d>2&&dt(l[0],l[1],l[2])&&(l=[l[0]]),J0(o,$A(l,1),[])}),cc=jR||function(){return WA.Date.now()};function CP(o,l){if(typeof l!="function")throw new zt(s);return o=Ee(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ky(o,l,d){return l=d?A:l,l=o&&l==null?o.length:l,er(o,N,A,A,A,A,l)}function Vy(o,l){var d;if(typeof l!="function")throw new zt(s);return o=Ee(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=A),d}}var Yd=Ie(function(o,l,d){var m=b;if(d.length){var C=kr(d,Cs(Yd));m|=L}return er(o,m,l,d,C)}),Py=Ie(function(o,l,d){var m=b|v;if(d.length){var C=kr(d,Cs(Py));m|=L}return er(l,m,o,d,C)});function Gy(o,l,d){l=d?A:l;var m=er(o,S,A,A,A,A,A,l);return m.placeholder=Gy.placeholder,m}function Wy(o,l,d){l=d?A:l;var m=er(o,E,A,A,A,A,A,l);return m.placeholder=Wy.placeholder,m}function $y(o,l,d){var m,C,F,I,O,k,G=0,W=!1,J=!1,q=!0;if(typeof o!="function")throw new zt(s);l=An(l)||0,gA(d)&&(W=!!d.leading,J="maxWait"in d,F=J?_A(An(d.maxWait)||0,l):F,q="trailing"in d?!!d.trailing:q);function le(EA){var gn=m,ir=C;return m=C=A,G=EA,I=o.apply(ir,gn),I}function he(EA){return G=EA,O=Lo(Te,l),W?le(EA):I}function ve(EA){var gn=EA-k,ir=EA-G,uE=l-gn;return J?At(uE,F-ir):uE}function pe(EA){var gn=EA-k,ir=EA-G;return k===A||gn>=l||gn<0||J&&ir>=F}function Te(){var EA=cc();if(pe(EA))return Me(EA);O=Lo(Te,ve(EA))}function Me(EA){return O=A,q&&m?le(EA):(m=C=A,I)}function Nt(){O!==A&&ty(O),G=0,m=k=C=O=A}function ht(){return O===A?I:Me(cc())}function Dt(){var EA=cc(),gn=pe(EA);if(m=arguments,C=this,k=EA,gn){if(O===A)return he(k);if(J)return ty(O),O=Lo(Te,l),le(k)}return O===A&&(O=Lo(Te,l)),I}return Dt.cancel=Nt,Dt.flush=ht,Dt}var yP=Ie(function(o,l){return H0(o,1,l)}),EP=Ie(function(o,l,d){return H0(o,An(l)||0,d)});function QP(o){return er(o,D)}function uc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new zt(s);var d=function(){var m=arguments,C=l?l.apply(this,m):m[0],F=d.cache;if(F.has(C))return F.get(C);var I=o.apply(this,m);return d.cache=F.set(C,I)||F,I};return d.cache=new(uc.Cache||Zn),d}uc.Cache=Zn;function fc(o){if(typeof o!="function")throw new zt(s);return function(){var l=arguments;switch(l.length){case 0:return!o.call(this);case 1:return!o.call(this,l[0]);case 2:return!o.call(this,l[0],l[1]);case 3:return!o.call(this,l[0],l[1],l[2])}return!o.apply(this,l)}}function FP(o){return Vy(2,o)}var bP=uK(function(o,l){l=l.length==1&&ye(l[0])?fA(l[0],Lt(de())):fA($A(l,1),Lt(de()));var d=l.length;return Ie(function(m){for(var C=-1,F=At(m.length,d);++C<F;)m[C]=l[C].call(this,m[C]);return Ot(o,this,m)})}),zd=Ie(function(o,l){var d=kr(l,Cs(zd));return er(o,L,A,l,d)}),Jy=Ie(function(o,l){var d=kr(l,Cs(Jy));return er(o,U,A,l,d)}),UP=Ar(function(o,l){return er(o,V,A,A,A,l)});function vP(o,l){if(typeof o!="function")throw new zt(s);return l=l===A?l:Ee(l),Ie(o,l)}function IP(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_A(Ee(l),0),Ie(function(d){var m=d[l],C=Kr(d,0,l);return m&&Hr(C,m),Ot(o,this,C)})}function SP(o,l,d){var m=!0,C=!0;if(typeof o!="function")throw new zt(s);return gA(d)&&(m="leading"in d?!!d.leading:m,C="trailing"in d?!!d.trailing:C),$y(o,l,{leading:m,maxWait:l,trailing:C})}function TP(o){return Ky(o,1)}function _P(o,l){return zd(Ld(l),o)}function xP(){if(!arguments.length)return[];var o=arguments[0];return ye(o)?o:[o]}function OP(o){return Zt(o,B)}function LP(o,l){return l=typeof l=="function"?l:A,Zt(o,B,l)}function HP(o){return Zt(o,p|B)}function kP(o,l){return l=typeof l=="function"?l:A,Zt(o,p|B,l)}function NP(o,l){return l==null||L0(o,l,DA(l))}function pn(o,l){return o===l||o!==o&&l!==l}var DP=rc(Ed),MP=rc(function(o,l){return o>=l}),Qi=R0(function(){return arguments}())?R0:function(o){return BA(o)&&qe.call(o,"callee")&&!U0.call(o,"callee")},ye=M.isArray,RP=o0?Lt(o0):X4;function Qt(o){return o!=null&&dc(o.length)&&!nr(o)}function yA(o){return BA(o)&&Qt(o)}function KP(o){return o===!0||o===!1||BA(o)&&ft(o)==ct}var Vr=A4||oh,VP=a0?Lt(a0):Y4;function PP(o){return BA(o)&&o.nodeType===1&&!Ho(o)}function GP(o){if(o==null)return!0;if(Qt(o)&&(ye(o)||typeof o=="string"||typeof o.splice=="function"||Vr(o)||ys(o)||Qi(o)))return!o.length;var l=tt(o);if(l==z||l==x)return!o.size;if(Oo(o))return!bd(o).length;for(var d in o)if(qe.call(o,d))return!1;return!0}function WP(o,l){return To(o,l)}function $P(o,l,d){d=typeof d=="function"?d:A;var m=d?d(o,l):A;return m===A?To(o,l,A,d):!!m}function qd(o){if(!BA(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!Ho(o)}function JP(o){return typeof o=="number"&&I0(o)}function nr(o){if(!gA(o))return!1;var l=ft(o);return l==xt||l==un||l==pA||l==xr}function Xy(o){return typeof o=="number"&&o==Ee(o)}function dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=re}function gA(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function BA(o){return o!=null&&typeof o=="object"}var Yy=l0?Lt(l0):q4;function XP(o,l){return o===l||Fd(o,l,Kd(l))}function YP(o,l,d){return d=typeof d=="function"?d:A,Fd(o,l,Kd(l),d)}function zP(o){return zy(o)&&o!=+o}function qP(o){if(LK(o))throw new we(i);return K0(o)}function ZP(o){return o===null}function jP(o){return o==null}function zy(o){return typeof o=="number"||BA(o)&&ft(o)==Ue}function Ho(o){if(!BA(o)||ft(o)!=vA)return!1;var l=Rl(o);if(l===null)return!0;var d=qe.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&kl.call(d)==YR}var Zd=c0?Lt(c0):Z4;function e2(o){return Xy(o)&&o>=-re&&o<=re}var qy=u0?Lt(u0):j4;function hc(o){return typeof o=="string"||!ye(o)&&BA(o)&&ft(o)==$}function kt(o){return typeof o=="symbol"||BA(o)&&ft(o)==oe}var ys=f0?Lt(f0):eK;function A2(o){return o===A}function t2(o){return BA(o)&&tt(o)==Ne}function n2(o){return BA(o)&&ft(o)==Ve}var r2=rc(Ud),i2=rc(function(o,l){return o<=l});function Zy(o){if(!o)return[];if(Qt(o))return hc(o)?dn(o):Et(o);if(Eo&&o[Eo])return NR(o[Eo]());var l=tt(o),d=l==z?dd:l==x?Ol:Es;return d(o)}function rr(o){if(!o)return o===0?o:0;if(o=An(o),o===He||o===-He){var l=o<0?-1:1;return l*me}return o===o?o:0}function Ee(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function jy(o){return o?wi(Ee(o),0,ke):0}function An(o){if(typeof o=="number")return o;if(kt(o))return Xe;if(gA(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=gA(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=B0(o);var d=RM.test(o);return d||VM.test(o)?CR(o.slice(2),d?2:8):MM.test(o)?Xe:+o}function eE(o){return xn(o,Ft(o))}function s2(o){return o?wi(Ee(o),-re,re):o===0?o:0}function Ye(o){return o==null?"":Ht(o)}var o2=Bs(function(o,l){if(Oo(l)||Qt(l)){xn(l,DA(l),o);return}for(var d in l)qe.call(l,d)&&vo(o,d,l[d])}),AE=Bs(function(o,l){xn(l,Ft(l),o)}),pc=Bs(function(o,l,d,m){xn(l,Ft(l),o,m)}),a2=Bs(function(o,l,d,m){xn(l,DA(l),o,m)}),l2=Ar(wd);function c2(o,l){var d=ms(o);return l==null?d:O0(d,l)}var u2=Ie(function(o,l){o=iA(o);var d=-1,m=l.length,C=m>2?l[2]:A;for(C&&dt(l[0],l[1],C)&&(m=1);++d<m;)for(var F=l[d],I=Ft(F),O=-1,k=I.length;++O<k;){var G=I[O],W=o[G];(W===A||pn(W,hs[G])&&!qe.call(o,G))&&(o[G]=F[G])}return o}),f2=Ie(function(o){return o.push(A,By),Ot(tE,A,o)});function d2(o,l){return h0(o,de(l,3),_n)}function h2(o,l){return h0(o,de(l,3),yd)}function p2(o,l){return o==null?o:Cd(o,de(l,3),Ft)}function g2(o,l){return o==null?o:D0(o,de(l,3),Ft)}function m2(o,l){return o&&_n(o,de(l,3))}function B2(o,l){return o&&yd(o,de(l,3))}function w2(o){return o==null?[]:zl(o,DA(o))}function C2(o){return o==null?[]:zl(o,Ft(o))}function jd(o,l,d){var m=o==null?A:Ci(o,l);return m===A?d:m}function y2(o,l){return o!=null&&yy(o,l,G4)}function eh(o,l){return o!=null&&yy(o,l,W4)}var E2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Nl.call(l)),o[l]=d},th(bt)),Q2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Nl.call(l)),qe.call(o,l)?o[l].push(d):o[l]=[d]},de),F2=Ie(So);function DA(o){return Qt(o)?_0(o):bd(o)}function Ft(o){return Qt(o)?_0(o,!0):AK(o)}function b2(o,l){var d={};return l=de(l,3),_n(o,function(m,C,F){jn(d,l(m,C,F),m)}),d}function U2(o,l){var d={};return l=de(l,3),_n(o,function(m,C,F){jn(d,C,l(m,C,F))}),d}var v2=Bs(function(o,l,d){ql(o,l,d)}),tE=Bs(function(o,l,d,m){ql(o,l,d,m)}),I2=Ar(function(o,l){var d={};if(o==null)return d;var m=!1;l=fA(l,function(F){return F=Rr(F,o),m||(m=F.length>1),F}),xn(o,Md(o),d),m&&(d=Zt(d,p|g|B,EK));for(var C=l.length;C--;)_d(d,l[C]);return d});function S2(o,l){return nE(o,fc(de(l)))}var T2=Ar(function(o,l){return o==null?{}:nK(o,l)});function nE(o,l){if(o==null)return{};var d=fA(Md(o),function(m){return[m]});return l=de(l),X0(o,d,function(m,C){return l(m,C[0])})}function _2(o,l,d){l=Rr(l,o);var m=-1,C=l.length;for(C||(C=1,o=A);++m<C;){var F=o==null?A:o[On(l[m])];F===A&&(m=C,F=d),o=nr(F)?F.call(o):F}return o}function x2(o,l,d){return o==null?o:_o(o,l,d)}function O2(o,l,d,m){return m=typeof m=="function"?m:A,o==null?o:_o(o,l,d,m)}var rE=gy(DA),iE=gy(Ft);function L2(o,l,d){var m=ye(o),C=m||Vr(o)||ys(o);if(l=de(l,4),d==null){var F=o&&o.constructor;C?d=m?new F:[]:gA(o)?d=nr(F)?ms(Rl(o)):{}:d={}}return(C?Yt:_n)(o,function(I,O,k){return l(d,I,O,k)}),d}function H2(o,l){return o==null?!0:_d(o,l)}function k2(o,l,d){return o==null?o:j0(o,l,Ld(d))}function N2(o,l,d,m){return m=typeof m=="function"?m:A,o==null?o:j0(o,l,Ld(d),m)}function Es(o){return o==null?[]:fd(o,DA(o))}function D2(o){return o==null?[]:fd(o,Ft(o))}function M2(o,l,d){return d===A&&(d=l,l=A),d!==A&&(d=An(d),d=d===d?d:0),l!==A&&(l=An(l),l=l===l?l:0),wi(An(o),l,d)}function R2(o,l,d){return l=rr(l),d===A?(d=l,l=0):d=rr(d),o=An(o),$4(o,l,d)}function K2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=A),d===A&&(typeof l=="boolean"?(d=l,l=A):typeof o=="boolean"&&(d=o,o=A)),o===A&&l===A?(o=0,l=1):(o=rr(o),l===A?(l=o,o=0):l=rr(l)),o>l){var m=o;o=l,l=m}if(d||o%1||l%1){var C=S0();return At(o+C*(l-o+wR("1e-"+((C+"").length-1))),l)}return Id(o,l)}var V2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?sE(l):l)});function sE(o){return Ah(Ye(o).toLowerCase())}function oE(o){return o=Ye(o),o&&o.replace(GM,xR).replace(lR,"")}function P2(o,l,d){o=Ye(o),l=Ht(l);var m=o.length;d=d===A?m:wi(Ee(d),0,m);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function G2(o){return o=Ye(o),o&&wo.test(o)?o.replace(Bo,OR):o}function W2(o){return o=Ye(o),o&&TM.test(o)?o.replace(zf,"\\$&"):o}var $2=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),J2=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),X2=cy("toLowerCase");function Y2(o,l,d){o=Ye(o),l=Ee(l);var m=l?fs(o):0;if(!l||m>=l)return o;var C=(l-m)/2;return nc(Gl(C),d)+o+nc(Pl(C),d)}function z2(o,l,d){o=Ye(o),l=Ee(l);var m=l?fs(o):0;return l&&m<l?o+nc(l-m,d):o}function q2(o,l,d){o=Ye(o),l=Ee(l);var m=l?fs(o):0;return l&&m<l?nc(l-m,d)+o:o}function Z2(o,l,d){return d||l==null?l=0:l&&(l=+l),i4(Ye(o).replace(qf,""),l||0)}function j2(o,l,d){return(d?dt(o,l,d):l===A)?l=1:l=Ee(l),Sd(Ye(o),l)}function eG(){var o=arguments,l=Ye(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var AG=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function tG(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=A),d=d===A?ke:d>>>0,d?(o=Ye(o),o&&(typeof l=="string"||l!=null&&!Zd(l))&&(l=Ht(l),!l&&us(o))?Kr(dn(o),0,d):o.split(l,d)):[]}var nG=ws(function(o,l,d){return o+(d?" ":"")+Ah(l)});function rG(o,l,d){return o=Ye(o),d=d==null?0:wi(Ee(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function iG(o,l,d){var m=y.templateSettings;d&&dt(o,l,d)&&(l=A),o=Ye(o),l=pc({},l,m,my);var C=pc({},l.imports,m.imports,my),F=DA(C),I=fd(C,F),O,k,G=0,W=l.interpolate||Il,J="__p += '",q=hd((l.escape||Il).source+"|"+W.source+"|"+(W===vl?DM:Il).source+"|"+(l.evaluate||Il).source+"|$","g"),le="//# sourceURL="+(qe.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hR+"]")+`
146
- `;o.replace(q,function(pe,Te,Me,Nt,ht,Dt){return Me||(Me=Nt),J+=o.slice(G,Dt).replace(WM,LR),Te&&(O=!0,J+=`' +
145
+ `)}function xK(o){return ye(o)||Qi(o)||!!(v0&&o&&o[v0])}function tr(o,l){var d=typeof o;return l=l??re,!!l&&(d=="number"||d!="symbol"&&GM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!gA(d))return!1;var m=typeof l;return(m=="number"?Qt(d)&&tr(l,d.length):m=="string"&&l in d)?pn(d[l],o):!1}function Pd(o,l){if(ye(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||kt(o)?!0:as.test(o)||!Co.test(o)||l!=null&&o in iA(l)}function OK(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function Gd(o){var l=ic(o),d=y[l];if(typeof d!="function"||!(l in Oe.prototype))return!1;if(o===d)return!0;var m=Rd(d);return!!m&&o===m[0]}function LK(o){return!!Q0&&Q0 in o}var HK=Hl?nr:oh;function Oo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||hs;return o===d}function Qy(o){return o===o&&!gA(o)}function Fy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==A||o in iA(d))}}function kK(o){var l=uc(o,function(m){return d.size===u&&d.clear(),m}),d=l.cache;return l}function NK(o,l){var d=o[1],m=l[1],C=d|m,F=C<(b|v|N),I=m==N&&d==S||m==N&&d==V&&o[7].length<=l[8]||m==(N|V)&&l[7].length<=l[8]&&d==S;if(!(F||I))return o;m&b&&(o[2]=l[2],C|=d&b?0:_);var O=l[3];if(O){var k=o[3];o[3]=k?sy(k,O,l[4]):O,o[4]=k?kr(o[3],f):l[4]}return O=l[5],O&&(k=o[5],o[5]=k?oy(k,O,l[6]):O,o[6]=k?kr(o[5],f):l[6]),O=l[7],O&&(o[7]=O),m&N&&(o[8]=o[8]==null?l[8]:At(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function DK(o){var l=[];if(o!=null)for(var d in iA(o))l.push(d);return l}function MK(o){return Nl.call(o)}function by(o,l,d){return l=_A(l===A?o.length-1:l,0),function(){for(var m=arguments,C=-1,F=_A(m.length-l,0),I=M(F);++C<F;)I[C]=m[l+C];C=-1;for(var O=M(l+1);++C<l;)O[C]=m[C];return O[l]=d(I),Ot(o,this,O)}}function Uy(o,l){return l.length<2?o:Ci(o,jt(l,0,-1))}function RK(o,l){for(var d=o.length,m=At(l.length,d),C=Et(o);m--;){var F=l[m];o[m]=tr(F,d)?C[F]:A}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var vy=Sy(z0),Lo=A4||function(o,l){return WA.setTimeout(o,l)},$d=Sy(lK);function Iy(o,l,d){var m=l+"";return $d(o,_K(m,KK(IK(m),d)))}function Sy(o){var l=0,d=0;return function(){var m=i4(),C=ce-(m-d);if(d=m,C>0){if(++l>=ne)return arguments[0]}else l=0;return o.apply(A,arguments)}}function oc(o,l){var d=-1,m=o.length,C=m-1;for(l=l===A?m:l;++d<l;){var F=Id(d,C),I=o[F];o[F]=o[d],o[d]=I}return o.length=l,o}var Ty=kK(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(TM,function(d,m,C,F){l.push(C?F.replace(DM,"$1"):m||d)}),l});function On(o){if(typeof o=="string"||kt(o))return o;var l=o+"";return l=="0"&&1/o==-He?"-0":l}function Ei(o){if(o!=null){try{return kl.call(o)}catch{}try{return o+""}catch{}}return""}function KK(o,l){return Yt(eA,function(d){var m="_."+d[0];l&d[1]&&!_l(o,m)&&o.push(m)}),o.sort()}function _y(o){if(o instanceof Oe)return o.clone();var l=new qt(o.__wrapped__,o.__chain__);return l.__actions__=Et(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function VK(o,l,d){(d?dt(o,l,d):l===A)?l=1:l=_A(Ee(l),0);var m=o==null?0:o.length;if(!m||l<1)return[];for(var C=0,F=0,I=M(Pl(m/l));C<m;)I[F++]=jt(o,C,C+=l);return I}function PK(o){for(var l=-1,d=o==null?0:o.length,m=0,C=[];++l<d;){var F=o[l];F&&(C[m++]=F)}return C}function GK(){var o=arguments.length;if(!o)return[];for(var l=M(o-1),d=arguments[0],m=o;m--;)l[m-1]=arguments[m];return Hr(ye(d)?Et(d):[d],$A(l,1))}var WK=Ie(function(o,l){return yA(o)?Io(o,$A(l,1,yA,!0)):[]}),$K=Ie(function(o,l){var d=en(l);return yA(d)&&(d=A),yA(o)?Io(o,$A(l,1,yA,!0),de(d,2)):[]}),JK=Ie(function(o,l){var d=en(l);return yA(d)&&(d=A),yA(o)?Io(o,$A(l,1,yA,!0),A,d):[]});function XK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Ee(l),jt(o,l<0?0:l,m)):[]}function YK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Ee(l),l=m-l,jt(o,0,l<0?0:l)):[]}function zK(o,l){return o&&o.length?jl(o,de(l,3),!0,!0):[]}function qK(o,l){return o&&o.length?jl(o,de(l,3),!0):[]}function ZK(o,l,d,m){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&dt(o,l,d)&&(d=0,m=C),G4(o,l,d,m)):[]}function xy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:Ee(d);return C<0&&(C=_A(m+C,0)),xl(o,de(l,3),C)}function Oy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m-1;return d!==A&&(C=Ee(d),C=d<0?_A(m+C,0):At(C,m-1)),xl(o,de(l,3),C,!0)}function Ly(o){var l=o==null?0:o.length;return l?$A(o,1):[]}function jK(o){var l=o==null?0:o.length;return l?$A(o,He):[]}function eV(o,l){var d=o==null?0:o.length;return d?(l=l===A?1:Ee(l),$A(o,l)):[]}function AV(o){for(var l=-1,d=o==null?0:o.length,m={};++l<d;){var C=o[l];m[C[0]]=C[1]}return m}function Hy(o){return o&&o.length?o[0]:A}function tV(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:Ee(d);return C<0&&(C=_A(m+C,0)),cs(o,l,C)}function nV(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var rV=Ie(function(o){var l=fA(o,Od);return l.length&&l[0]===o[0]?Qd(l):[]}),iV=Ie(function(o){var l=en(o),d=fA(o,Od);return l===en(d)?l=A:d.pop(),d.length&&d[0]===o[0]?Qd(d,de(l,2)):[]}),sV=Ie(function(o){var l=en(o),d=fA(o,Od);return l=typeof l=="function"?l:A,l&&d.pop(),d.length&&d[0]===o[0]?Qd(d,A,l):[]});function oV(o,l){return o==null?"":n4.call(o,l)}function en(o){var l=o==null?0:o.length;return l?o[l-1]:A}function aV(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m;return d!==A&&(C=Ee(d),C=C<0?_A(m+C,0):At(C,m-1)),l===l?KR(o,l,C):xl(o,p0,C,!0)}function lV(o,l){return o&&o.length?$0(o,Ee(l)):A}var cV=Ie(ky);function ky(o,l){return o&&o.length&&l&&l.length?vd(o,l):o}function uV(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,de(d,2)):o}function fV(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,A,d):o}var dV=Ar(function(o,l){var d=o==null?0:o.length,m=wd(o,l);return Y0(o,fA(l,function(C){return tr(C,d)?+C:C}).sort(iy)),m});function hV(o,l){var d=[];if(!(o&&o.length))return d;var m=-1,C=[],F=o.length;for(l=de(l,3);++m<F;){var I=o[m];l(I,m,o)&&(d.push(I),C.push(m))}return Y0(o,C),d}function Jd(o){return o==null?o:o4.call(o)}function pV(o,l,d){var m=o==null?0:o.length;return m?(d&&typeof d!="number"&&dt(o,l,d)?(l=0,d=m):(l=l==null?0:Ee(l),d=d===A?m:Ee(d)),jt(o,l,d)):[]}function gV(o,l){return Zl(o,l)}function mV(o,l,d){return Td(o,l,de(d,2))}function BV(o,l){var d=o==null?0:o.length;if(d){var m=Zl(o,l);if(m<d&&pn(o[m],l))return m}return-1}function wV(o,l){return Zl(o,l,!0)}function CV(o,l,d){return Td(o,l,de(d,2),!0)}function yV(o,l){var d=o==null?0:o.length;if(d){var m=Zl(o,l,!0)-1;if(pn(o[m],l))return m}return-1}function EV(o){return o&&o.length?q0(o):[]}function QV(o,l){return o&&o.length?q0(o,de(l,2)):[]}function FV(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function bV(o,l,d){return o&&o.length?(l=d||l===A?1:Ee(l),jt(o,0,l<0?0:l)):[]}function UV(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===A?1:Ee(l),l=m-l,jt(o,l<0?0:l,m)):[]}function vV(o,l){return o&&o.length?jl(o,de(l,3),!1,!0):[]}function IV(o,l){return o&&o.length?jl(o,de(l,3)):[]}var SV=Ie(function(o){return Mr($A(o,1,yA,!0))}),TV=Ie(function(o){var l=en(o);return yA(l)&&(l=A),Mr($A(o,1,yA,!0),de(l,2))}),_V=Ie(function(o){var l=en(o);return l=typeof l=="function"?l:A,Mr($A(o,1,yA,!0),A,l)});function xV(o){return o&&o.length?Mr(o):[]}function OV(o,l){return o&&o.length?Mr(o,de(l,2)):[]}function LV(o,l){return l=typeof l=="function"?l:A,o&&o.length?Mr(o,A,l):[]}function Xd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(yA(d))return l=_A(d.length,l),!0}),ud(l,function(d){return fA(o,ad(d))})}function Ny(o,l){if(!(o&&o.length))return[];var d=Xd(o);return l==null?d:fA(d,function(m){return Ot(l,A,m)})}var HV=Ie(function(o,l){return yA(o)?Io(o,l):[]}),kV=Ie(function(o){return xd(Lr(o,yA))}),NV=Ie(function(o){var l=en(o);return yA(l)&&(l=A),xd(Lr(o,yA),de(l,2))}),DV=Ie(function(o){var l=en(o);return l=typeof l=="function"?l:A,xd(Lr(o,yA),A,l)}),MV=Ie(Xd);function RV(o,l){return Ay(o||[],l||[],vo)}function KV(o,l){return Ay(o||[],l||[],_o)}var VV=Ie(function(o){var l=o.length,d=l>1?o[l-1]:A;return d=typeof d=="function"?(o.pop(),d):A,Ny(o,d)});function Dy(o){var l=y(o);return l.__chain__=!0,l}function PV(o,l){return l(o),o}function ac(o,l){return l(o)}var GV=Ar(function(o){var l=o.length,d=l?o[0]:0,m=this.__wrapped__,C=function(F){return wd(F,o)};return l>1||this.__actions__.length||!(m instanceof Oe)||!tr(d)?this.thru(C):(m=m.slice(d,+d+(l?1:0)),m.__actions__.push({func:ac,args:[C],thisArg:A}),new qt(m,this.__chain__).thru(function(F){return l&&!F.length&&F.push(A),F}))});function WV(){return Dy(this)}function $V(){return new qt(this.value(),this.__chain__)}function JV(){this.__values__===A&&(this.__values__=Zy(this.value()));var o=this.__index__>=this.__values__.length,l=o?A:this.__values__[this.__index__++];return{done:o,value:l}}function XV(){return this}function YV(o){for(var l,d=this;d instanceof Jl;){var m=_y(d);m.__index__=0,m.__values__=A,l?C.__wrapped__=m:l=m;var C=m;d=d.__wrapped__}return C.__wrapped__=o,l}function zV(){var o=this.__wrapped__;if(o instanceof Oe){var l=o;return this.__actions__.length&&(l=new Oe(this)),l=l.reverse(),l.__actions__.push({func:ac,args:[Jd],thisArg:A}),new qt(l,this.__chain__)}return this.thru(Jd)}function qV(){return ey(this.__wrapped__,this.__actions__)}var ZV=ec(function(o,l,d){qe.call(o,d)?++o[d]:jn(o,d,1)});function jV(o,l,d){var m=ye(o)?d0:P4;return d&&dt(o,l,d)&&(l=A),m(o,de(l,3))}function eP(o,l){var d=ye(o)?Lr:N0;return d(o,de(l,3))}var AP=uy(xy),tP=uy(Oy);function nP(o,l){return $A(lc(o,l),1)}function rP(o,l){return $A(lc(o,l),He)}function iP(o,l,d){return d=d===A?1:Ee(d),$A(lc(o,l),d)}function My(o,l){var d=ye(o)?Yt:Dr;return d(o,de(l,3))}function Ry(o,l){var d=ye(o)?FR:k0;return d(o,de(l,3))}var sP=ec(function(o,l,d){qe.call(o,d)?o[d].push(l):jn(o,d,[l])});function oP(o,l,d,m){o=Qt(o)?o:Es(o),d=d&&!m?Ee(d):0;var C=o.length;return d<0&&(d=_A(C+d,0)),hc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var aP=Ie(function(o,l,d){var m=-1,C=typeof l=="function",F=Qt(o)?M(o.length):[];return Dr(o,function(I){F[++m]=C?Ot(l,I,d):So(I,l,d)}),F}),lP=ec(function(o,l,d){jn(o,d,l)});function lc(o,l){var d=ye(o)?fA:P0;return d(o,de(l,3))}function cP(o,l,d,m){return o==null?[]:(ye(l)||(l=l==null?[]:[l]),d=m?A:d,ye(d)||(d=d==null?[]:[d]),J0(o,l,d))}var uP=ec(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function fP(o,l,d){var m=ye(o)?sd:m0,C=arguments.length<3;return m(o,de(l,4),d,C,Dr)}function dP(o,l,d){var m=ye(o)?bR:m0,C=arguments.length<3;return m(o,de(l,4),d,C,k0)}function hP(o,l){var d=ye(o)?Lr:N0;return d(o,fc(de(l,3)))}function pP(o){var l=ye(o)?x0:oK;return l(o)}function gP(o,l,d){(d?dt(o,l,d):l===A)?l=1:l=Ee(l);var m=ye(o)?D4:aK;return m(o,l)}function mP(o){var l=ye(o)?M4:cK;return l(o)}function BP(o){if(o==null)return 0;if(Qt(o))return hc(o)?fs(o):o.length;var l=tt(o);return l==z||l==x?o.size:bd(o).length}function wP(o,l,d){var m=ye(o)?od:uK;return d&&dt(o,l,d)&&(l=A),m(o,de(l,3))}var CP=Ie(function(o,l){if(o==null)return[];var d=l.length;return d>1&&dt(o,l[0],l[1])?l=[]:d>2&&dt(l[0],l[1],l[2])&&(l=[l[0]]),J0(o,$A(l,1),[])}),cc=e4||function(){return WA.Date.now()};function yP(o,l){if(typeof l!="function")throw new zt(s);return o=Ee(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ky(o,l,d){return l=d?A:l,l=o&&l==null?o.length:l,er(o,N,A,A,A,A,l)}function Vy(o,l){var d;if(typeof l!="function")throw new zt(s);return o=Ee(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=A),d}}var Yd=Ie(function(o,l,d){var m=b;if(d.length){var C=kr(d,Cs(Yd));m|=L}return er(o,m,l,d,C)}),Py=Ie(function(o,l,d){var m=b|v;if(d.length){var C=kr(d,Cs(Py));m|=L}return er(l,m,o,d,C)});function Gy(o,l,d){l=d?A:l;var m=er(o,S,A,A,A,A,A,l);return m.placeholder=Gy.placeholder,m}function Wy(o,l,d){l=d?A:l;var m=er(o,E,A,A,A,A,A,l);return m.placeholder=Wy.placeholder,m}function $y(o,l,d){var m,C,F,I,O,k,G=0,W=!1,J=!1,q=!0;if(typeof o!="function")throw new zt(s);l=An(l)||0,gA(d)&&(W=!!d.leading,J="maxWait"in d,F=J?_A(An(d.maxWait)||0,l):F,q="trailing"in d?!!d.trailing:q);function le(EA){var gn=m,ir=C;return m=C=A,G=EA,I=o.apply(ir,gn),I}function he(EA){return G=EA,O=Lo(Te,l),W?le(EA):I}function ve(EA){var gn=EA-k,ir=EA-G,uE=l-gn;return J?At(uE,F-ir):uE}function pe(EA){var gn=EA-k,ir=EA-G;return k===A||gn>=l||gn<0||J&&ir>=F}function Te(){var EA=cc();if(pe(EA))return Me(EA);O=Lo(Te,ve(EA))}function Me(EA){return O=A,q&&m?le(EA):(m=C=A,I)}function Nt(){O!==A&&ty(O),G=0,m=k=C=O=A}function ht(){return O===A?I:Me(cc())}function Dt(){var EA=cc(),gn=pe(EA);if(m=arguments,C=this,k=EA,gn){if(O===A)return he(k);if(J)return ty(O),O=Lo(Te,l),le(k)}return O===A&&(O=Lo(Te,l)),I}return Dt.cancel=Nt,Dt.flush=ht,Dt}var EP=Ie(function(o,l){return H0(o,1,l)}),QP=Ie(function(o,l,d){return H0(o,An(l)||0,d)});function FP(o){return er(o,D)}function uc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new zt(s);var d=function(){var m=arguments,C=l?l.apply(this,m):m[0],F=d.cache;if(F.has(C))return F.get(C);var I=o.apply(this,m);return d.cache=F.set(C,I)||F,I};return d.cache=new(uc.Cache||Zn),d}uc.Cache=Zn;function fc(o){if(typeof o!="function")throw new zt(s);return function(){var l=arguments;switch(l.length){case 0:return!o.call(this);case 1:return!o.call(this,l[0]);case 2:return!o.call(this,l[0],l[1]);case 3:return!o.call(this,l[0],l[1],l[2])}return!o.apply(this,l)}}function bP(o){return Vy(2,o)}var UP=fK(function(o,l){l=l.length==1&&ye(l[0])?fA(l[0],Lt(de())):fA($A(l,1),Lt(de()));var d=l.length;return Ie(function(m){for(var C=-1,F=At(m.length,d);++C<F;)m[C]=l[C].call(this,m[C]);return Ot(o,this,m)})}),zd=Ie(function(o,l){var d=kr(l,Cs(zd));return er(o,L,A,l,d)}),Jy=Ie(function(o,l){var d=kr(l,Cs(Jy));return er(o,U,A,l,d)}),vP=Ar(function(o,l){return er(o,V,A,A,A,l)});function IP(o,l){if(typeof o!="function")throw new zt(s);return l=l===A?l:Ee(l),Ie(o,l)}function SP(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_A(Ee(l),0),Ie(function(d){var m=d[l],C=Kr(d,0,l);return m&&Hr(C,m),Ot(o,this,C)})}function TP(o,l,d){var m=!0,C=!0;if(typeof o!="function")throw new zt(s);return gA(d)&&(m="leading"in d?!!d.leading:m,C="trailing"in d?!!d.trailing:C),$y(o,l,{leading:m,maxWait:l,trailing:C})}function _P(o){return Ky(o,1)}function xP(o,l){return zd(Ld(l),o)}function OP(){if(!arguments.length)return[];var o=arguments[0];return ye(o)?o:[o]}function LP(o){return Zt(o,B)}function HP(o,l){return l=typeof l=="function"?l:A,Zt(o,B,l)}function kP(o){return Zt(o,p|B)}function NP(o,l){return l=typeof l=="function"?l:A,Zt(o,p|B,l)}function DP(o,l){return l==null||L0(o,l,DA(l))}function pn(o,l){return o===l||o!==o&&l!==l}var MP=rc(Ed),RP=rc(function(o,l){return o>=l}),Qi=R0(function(){return arguments}())?R0:function(o){return BA(o)&&qe.call(o,"callee")&&!U0.call(o,"callee")},ye=M.isArray,KP=o0?Lt(o0):Y4;function Qt(o){return o!=null&&dc(o.length)&&!nr(o)}function yA(o){return BA(o)&&Qt(o)}function VP(o){return o===!0||o===!1||BA(o)&&ft(o)==ct}var Vr=t4||oh,PP=a0?Lt(a0):z4;function GP(o){return BA(o)&&o.nodeType===1&&!Ho(o)}function WP(o){if(o==null)return!0;if(Qt(o)&&(ye(o)||typeof o=="string"||typeof o.splice=="function"||Vr(o)||ys(o)||Qi(o)))return!o.length;var l=tt(o);if(l==z||l==x)return!o.size;if(Oo(o))return!bd(o).length;for(var d in o)if(qe.call(o,d))return!1;return!0}function $P(o,l){return To(o,l)}function JP(o,l,d){d=typeof d=="function"?d:A;var m=d?d(o,l):A;return m===A?To(o,l,A,d):!!m}function qd(o){if(!BA(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!Ho(o)}function XP(o){return typeof o=="number"&&I0(o)}function nr(o){if(!gA(o))return!1;var l=ft(o);return l==xt||l==un||l==pA||l==xr}function Xy(o){return typeof o=="number"&&o==Ee(o)}function dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=re}function gA(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function BA(o){return o!=null&&typeof o=="object"}var Yy=l0?Lt(l0):Z4;function YP(o,l){return o===l||Fd(o,l,Kd(l))}function zP(o,l,d){return d=typeof d=="function"?d:A,Fd(o,l,Kd(l),d)}function qP(o){return zy(o)&&o!=+o}function ZP(o){if(HK(o))throw new we(i);return K0(o)}function jP(o){return o===null}function e2(o){return o==null}function zy(o){return typeof o=="number"||BA(o)&&ft(o)==Ue}function Ho(o){if(!BA(o)||ft(o)!=vA)return!1;var l=Rl(o);if(l===null)return!0;var d=qe.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&kl.call(d)==zR}var Zd=c0?Lt(c0):j4;function A2(o){return Xy(o)&&o>=-re&&o<=re}var qy=u0?Lt(u0):eK;function hc(o){return typeof o=="string"||!ye(o)&&BA(o)&&ft(o)==$}function kt(o){return typeof o=="symbol"||BA(o)&&ft(o)==oe}var ys=f0?Lt(f0):AK;function t2(o){return o===A}function n2(o){return BA(o)&&tt(o)==Ne}function r2(o){return BA(o)&&ft(o)==Ve}var i2=rc(Ud),s2=rc(function(o,l){return o<=l});function Zy(o){if(!o)return[];if(Qt(o))return hc(o)?dn(o):Et(o);if(Eo&&o[Eo])return DR(o[Eo]());var l=tt(o),d=l==z?dd:l==x?Ol:Es;return d(o)}function rr(o){if(!o)return o===0?o:0;if(o=An(o),o===He||o===-He){var l=o<0?-1:1;return l*me}return o===o?o:0}function Ee(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function jy(o){return o?wi(Ee(o),0,ke):0}function An(o){if(typeof o=="number")return o;if(kt(o))return Xe;if(gA(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=gA(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=B0(o);var d=KM.test(o);return d||PM.test(o)?yR(o.slice(2),d?2:8):RM.test(o)?Xe:+o}function eE(o){return xn(o,Ft(o))}function o2(o){return o?wi(Ee(o),-re,re):o===0?o:0}function Ye(o){return o==null?"":Ht(o)}var a2=Bs(function(o,l){if(Oo(l)||Qt(l)){xn(l,DA(l),o);return}for(var d in l)qe.call(l,d)&&vo(o,d,l[d])}),AE=Bs(function(o,l){xn(l,Ft(l),o)}),pc=Bs(function(o,l,d,m){xn(l,Ft(l),o,m)}),l2=Bs(function(o,l,d,m){xn(l,DA(l),o,m)}),c2=Ar(wd);function u2(o,l){var d=ms(o);return l==null?d:O0(d,l)}var f2=Ie(function(o,l){o=iA(o);var d=-1,m=l.length,C=m>2?l[2]:A;for(C&&dt(l[0],l[1],C)&&(m=1);++d<m;)for(var F=l[d],I=Ft(F),O=-1,k=I.length;++O<k;){var G=I[O],W=o[G];(W===A||pn(W,hs[G])&&!qe.call(o,G))&&(o[G]=F[G])}return o}),d2=Ie(function(o){return o.push(A,By),Ot(tE,A,o)});function h2(o,l){return h0(o,de(l,3),_n)}function p2(o,l){return h0(o,de(l,3),yd)}function g2(o,l){return o==null?o:Cd(o,de(l,3),Ft)}function m2(o,l){return o==null?o:D0(o,de(l,3),Ft)}function B2(o,l){return o&&_n(o,de(l,3))}function w2(o,l){return o&&yd(o,de(l,3))}function C2(o){return o==null?[]:zl(o,DA(o))}function y2(o){return o==null?[]:zl(o,Ft(o))}function jd(o,l,d){var m=o==null?A:Ci(o,l);return m===A?d:m}function E2(o,l){return o!=null&&yy(o,l,W4)}function eh(o,l){return o!=null&&yy(o,l,$4)}var Q2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Nl.call(l)),o[l]=d},th(bt)),F2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Nl.call(l)),qe.call(o,l)?o[l].push(d):o[l]=[d]},de),b2=Ie(So);function DA(o){return Qt(o)?_0(o):bd(o)}function Ft(o){return Qt(o)?_0(o,!0):tK(o)}function U2(o,l){var d={};return l=de(l,3),_n(o,function(m,C,F){jn(d,l(m,C,F),m)}),d}function v2(o,l){var d={};return l=de(l,3),_n(o,function(m,C,F){jn(d,C,l(m,C,F))}),d}var I2=Bs(function(o,l,d){ql(o,l,d)}),tE=Bs(function(o,l,d,m){ql(o,l,d,m)}),S2=Ar(function(o,l){var d={};if(o==null)return d;var m=!1;l=fA(l,function(F){return F=Rr(F,o),m||(m=F.length>1),F}),xn(o,Md(o),d),m&&(d=Zt(d,p|g|B,QK));for(var C=l.length;C--;)_d(d,l[C]);return d});function T2(o,l){return nE(o,fc(de(l)))}var _2=Ar(function(o,l){return o==null?{}:rK(o,l)});function nE(o,l){if(o==null)return{};var d=fA(Md(o),function(m){return[m]});return l=de(l),X0(o,d,function(m,C){return l(m,C[0])})}function x2(o,l,d){l=Rr(l,o);var m=-1,C=l.length;for(C||(C=1,o=A);++m<C;){var F=o==null?A:o[On(l[m])];F===A&&(m=C,F=d),o=nr(F)?F.call(o):F}return o}function O2(o,l,d){return o==null?o:_o(o,l,d)}function L2(o,l,d,m){return m=typeof m=="function"?m:A,o==null?o:_o(o,l,d,m)}var rE=gy(DA),iE=gy(Ft);function H2(o,l,d){var m=ye(o),C=m||Vr(o)||ys(o);if(l=de(l,4),d==null){var F=o&&o.constructor;C?d=m?new F:[]:gA(o)?d=nr(F)?ms(Rl(o)):{}:d={}}return(C?Yt:_n)(o,function(I,O,k){return l(d,I,O,k)}),d}function k2(o,l){return o==null?!0:_d(o,l)}function N2(o,l,d){return o==null?o:j0(o,l,Ld(d))}function D2(o,l,d,m){return m=typeof m=="function"?m:A,o==null?o:j0(o,l,Ld(d),m)}function Es(o){return o==null?[]:fd(o,DA(o))}function M2(o){return o==null?[]:fd(o,Ft(o))}function R2(o,l,d){return d===A&&(d=l,l=A),d!==A&&(d=An(d),d=d===d?d:0),l!==A&&(l=An(l),l=l===l?l:0),wi(An(o),l,d)}function K2(o,l,d){return l=rr(l),d===A?(d=l,l=0):d=rr(d),o=An(o),J4(o,l,d)}function V2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=A),d===A&&(typeof l=="boolean"?(d=l,l=A):typeof o=="boolean"&&(d=o,o=A)),o===A&&l===A?(o=0,l=1):(o=rr(o),l===A?(l=o,o=0):l=rr(l)),o>l){var m=o;o=l,l=m}if(d||o%1||l%1){var C=S0();return At(o+C*(l-o+CR("1e-"+((C+"").length-1))),l)}return Id(o,l)}var P2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?sE(l):l)});function sE(o){return Ah(Ye(o).toLowerCase())}function oE(o){return o=Ye(o),o&&o.replace(WM,OR).replace(cR,"")}function G2(o,l,d){o=Ye(o),l=Ht(l);var m=o.length;d=d===A?m:wi(Ee(d),0,m);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function W2(o){return o=Ye(o),o&&wo.test(o)?o.replace(Bo,LR):o}function $2(o){return o=Ye(o),o&&_M.test(o)?o.replace(zf,"\\$&"):o}var J2=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),X2=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),Y2=cy("toLowerCase");function z2(o,l,d){o=Ye(o),l=Ee(l);var m=l?fs(o):0;if(!l||m>=l)return o;var C=(l-m)/2;return nc(Gl(C),d)+o+nc(Pl(C),d)}function q2(o,l,d){o=Ye(o),l=Ee(l);var m=l?fs(o):0;return l&&m<l?o+nc(l-m,d):o}function Z2(o,l,d){o=Ye(o),l=Ee(l);var m=l?fs(o):0;return l&&m<l?nc(l-m,d)+o:o}function j2(o,l,d){return d||l==null?l=0:l&&(l=+l),s4(Ye(o).replace(qf,""),l||0)}function eG(o,l,d){return(d?dt(o,l,d):l===A)?l=1:l=Ee(l),Sd(Ye(o),l)}function AG(){var o=arguments,l=Ye(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var tG=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function nG(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=A),d=d===A?ke:d>>>0,d?(o=Ye(o),o&&(typeof l=="string"||l!=null&&!Zd(l))&&(l=Ht(l),!l&&us(o))?Kr(dn(o),0,d):o.split(l,d)):[]}var rG=ws(function(o,l,d){return o+(d?" ":"")+Ah(l)});function iG(o,l,d){return o=Ye(o),d=d==null?0:wi(Ee(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function sG(o,l,d){var m=y.templateSettings;d&&dt(o,l,d)&&(l=A),o=Ye(o),l=pc({},l,m,my);var C=pc({},l.imports,m.imports,my),F=DA(C),I=fd(C,F),O,k,G=0,W=l.interpolate||Il,J="__p += '",q=hd((l.escape||Il).source+"|"+W.source+"|"+(W===vl?MM:Il).source+"|"+(l.evaluate||Il).source+"|$","g"),le="//# sourceURL="+(qe.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pR+"]")+`
146
+ `;o.replace(q,function(pe,Te,Me,Nt,ht,Dt){return Me||(Me=Nt),J+=o.slice(G,Dt).replace($M,HR),Te&&(O=!0,J+=`' +
147
147
  __e(`+Te+`) +
148
148
  '`),ht&&(k=!0,J+=`';
149
149
  `+ht+`;
@@ -153,13 +153,13 @@ __p += '`),Me&&(J+=`' +
153
153
  `;var he=qe.call(l,"variable")&&l.variable;if(!he)J=`with (obj) {
154
154
  `+J+`
155
155
  }
156
- `;else if(kM.test(he))throw new we(a);J=(k?J.replace(De,""):J).replace(GA,"$1").replace(yt,"$1;"),J="function("+(he||"obj")+`) {
156
+ `;else if(NM.test(he))throw new we(a);J=(k?J.replace(De,""):J).replace(GA,"$1").replace(yt,"$1;"),J="function("+(he||"obj")+`) {
157
157
  `+(he?"":`obj || (obj = {});
158
158
  `)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
161
  `)+J+`return __p
162
- }`;var ve=lE(function(){return $e(F,le+"return "+J).apply(A,I)});if(ve.source=J,qd(ve))throw ve;return ve}function sG(o){return Ye(o).toLowerCase()}function oG(o){return Ye(o).toUpperCase()}function aG(o,l,d){if(o=Ye(o),o&&(d||l===A))return B0(o);if(!o||!(l=Ht(l)))return o;var m=dn(o),C=dn(l),F=w0(m,C),I=C0(m,C)+1;return Kr(m,F,I).join("")}function lG(o,l,d){if(o=Ye(o),o&&(d||l===A))return o.slice(0,E0(o)+1);if(!o||!(l=Ht(l)))return o;var m=dn(o),C=C0(m,dn(l))+1;return Kr(m,0,C).join("")}function cG(o,l,d){if(o=Ye(o),o&&(d||l===A))return o.replace(qf,"");if(!o||!(l=Ht(l)))return o;var m=dn(o),C=w0(m,dn(l));return Kr(m,C).join("")}function uG(o,l){var d=se,m=Be;if(gA(l)){var C="separator"in l?l.separator:C;d="length"in l?Ee(l.length):d,m="omission"in l?Ht(l.omission):m}o=Ye(o);var F=o.length;if(us(o)){var I=dn(o);F=I.length}if(d>=F)return o;var O=d-fs(m);if(O<1)return m;var k=I?Kr(I,0,O).join(""):o.slice(0,O);if(C===A)return k+m;if(I&&(O+=k.length-O),Zd(C)){if(o.slice(O).search(C)){var G,W=k;for(C.global||(C=hd(C.source,Ye(RC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===A?O:J)}}else if(o.indexOf(Ht(C),O)!=O){var q=k.lastIndexOf(C);q>-1&&(k=k.slice(0,q))}return k+m}function fG(o){return o=Ye(o),o&&zn.test(o)?o.replace(Yn,KR):o}var dG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),Ah=cy("toUpperCase");function aE(o,l,d){return o=Ye(o),l=d?A:l,l===A?kR(o)?GR(o):vR(o):o.match(l)||[]}var lE=Ie(function(o,l){try{return Ot(o,A,l)}catch(d){return qd(d)?d:new we(d)}}),hG=Ar(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function pG(o){var l=o==null?0:o.length,d=de();return o=l?fA(o,function(m){if(typeof m[1]!="function")throw new zt(s);return[d(m[0]),m[1]]}):[],Ie(function(m){for(var C=-1;++C<l;){var F=o[C];if(Ot(F[0],this,m))return Ot(F[1],this,m)}})}function gG(o){return K4(Zt(o,p))}function th(o){return function(){return o}}function mG(o,l){return o==null||o!==o?l:o}var BG=fy(),wG=fy(!0);function bt(o){return o}function nh(o){return V0(typeof o=="function"?o:Zt(o,p))}function CG(o){return G0(Zt(o,p))}function yG(o,l){return W0(o,Zt(l,p))}var EG=Ie(function(o,l){return function(d){return So(d,o,l)}}),QG=Ie(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var m=DA(l),C=zl(l,m);d==null&&!(gA(l)&&(C.length||!m.length))&&(d=l,l=o,o=this,C=zl(l,DA(l)));var F=!(gA(d)&&"chain"in d)||!!d.chain,I=nr(o);return Yt(C,function(O){var k=l[O];o[O]=k,I&&(o.prototype[O]=function(){var G=this.__chain__;if(F||G){var W=o(this.__wrapped__),J=W.__actions__=Et(this.__actions__);return J.push({func:k,args:arguments,thisArg:o}),W.__chain__=G,W}return k.apply(o,Hr([this.value()],arguments))})}),o}function FG(){return WA._===this&&(WA._=zR),this}function ih(){}function bG(o){return o=Ee(o),Ie(function(l){return $0(l,o)})}var UG=kd(fA),vG=kd(d0),IG=kd(od);function cE(o){return Pd(o)?ad(On(o)):rK(o)}function SG(o){return function(l){return o==null?A:Ci(o,l)}}var TG=hy(),_G=hy(!0);function sh(){return[]}function oh(){return!1}function xG(){return{}}function OG(){return""}function LG(){return!0}function HG(o,l){if(o=Ee(o),o<1||o>re)return[];var d=ke,m=At(o,ke);l=de(l),o-=ke;for(var C=ud(m,l);++d<o;)l(d);return C}function kG(o){return ye(o)?fA(o,On):kt(o)?[o]:Et(Ty(Ye(o)))}function NG(o){var l=++XR;return Ye(o)+l}var DG=tc(function(o,l){return o+l},0),MG=Nd("ceil"),RG=tc(function(o,l){return o/l},1),KG=Nd("floor");function VG(o){return o&&o.length?Yl(o,bt,Ed):A}function PG(o,l){return o&&o.length?Yl(o,de(l,2),Ed):A}function GG(o){return g0(o,bt)}function WG(o,l){return g0(o,de(l,2))}function $G(o){return o&&o.length?Yl(o,bt,Ud):A}function JG(o,l){return o&&o.length?Yl(o,de(l,2),Ud):A}var XG=tc(function(o,l){return o*l},1),YG=Nd("round"),zG=tc(function(o,l){return o-l},0);function qG(o){return o&&o.length?cd(o,bt):0}function ZG(o,l){return o&&o.length?cd(o,de(l,2)):0}return y.after=CP,y.ary=Ky,y.assign=o2,y.assignIn=AE,y.assignInWith=pc,y.assignWith=a2,y.at=l2,y.before=Vy,y.bind=Yd,y.bindAll=hG,y.bindKey=Py,y.castArray=xP,y.chain=Dy,y.chunk=KK,y.compact=VK,y.concat=PK,y.cond=pG,y.conforms=gG,y.constant=th,y.countBy=qV,y.create=c2,y.curry=Gy,y.curryRight=Wy,y.debounce=$y,y.defaults=u2,y.defaultsDeep=f2,y.defer=yP,y.delay=EP,y.difference=GK,y.differenceBy=WK,y.differenceWith=$K,y.drop=JK,y.dropRight=XK,y.dropRightWhile=YK,y.dropWhile=zK,y.fill=qK,y.filter=jV,y.flatMap=tP,y.flatMapDeep=nP,y.flatMapDepth=rP,y.flatten=Ly,y.flattenDeep=ZK,y.flattenDepth=jK,y.flip=QP,y.flow=BG,y.flowRight=wG,y.fromPairs=eV,y.functions=w2,y.functionsIn=C2,y.groupBy=iP,y.initial=tV,y.intersection=nV,y.intersectionBy=rV,y.intersectionWith=iV,y.invert=E2,y.invertBy=Q2,y.invokeMap=oP,y.iteratee=nh,y.keyBy=aP,y.keys=DA,y.keysIn=Ft,y.map=lc,y.mapKeys=b2,y.mapValues=U2,y.matches=CG,y.matchesProperty=yG,y.memoize=uc,y.merge=v2,y.mergeWith=tE,y.method=EG,y.methodOf=QG,y.mixin=rh,y.negate=fc,y.nthArg=bG,y.omit=I2,y.omitBy=S2,y.once=FP,y.orderBy=lP,y.over=UG,y.overArgs=bP,y.overEvery=vG,y.overSome=IG,y.partial=zd,y.partialRight=Jy,y.partition=cP,y.pick=T2,y.pickBy=nE,y.property=cE,y.propertyOf=SG,y.pull=lV,y.pullAll=ky,y.pullAllBy=cV,y.pullAllWith=uV,y.pullAt=fV,y.range=TG,y.rangeRight=_G,y.rearg=UP,y.reject=dP,y.remove=dV,y.rest=vP,y.reverse=Jd,y.sampleSize=pP,y.set=x2,y.setWith=O2,y.shuffle=gP,y.slice=hV,y.sortBy=wP,y.sortedUniq=yV,y.sortedUniqBy=EV,y.split=tG,y.spread=IP,y.tail=QV,y.take=FV,y.takeRight=bV,y.takeRightWhile=UV,y.takeWhile=vV,y.tap=VV,y.throttle=SP,y.thru=ac,y.toArray=Zy,y.toPairs=rE,y.toPairsIn=iE,y.toPath=kG,y.toPlainObject=eE,y.transform=L2,y.unary=TP,y.union=IV,y.unionBy=SV,y.unionWith=TV,y.uniq=_V,y.uniqBy=xV,y.uniqWith=OV,y.unset=H2,y.unzip=Xd,y.unzipWith=Ny,y.update=k2,y.updateWith=N2,y.values=Es,y.valuesIn=D2,y.without=LV,y.words=aE,y.wrap=_P,y.xor=HV,y.xorBy=kV,y.xorWith=NV,y.zip=DV,y.zipObject=MV,y.zipObjectDeep=RV,y.zipWith=KV,y.entries=rE,y.entriesIn=iE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=DG,y.attempt=lE,y.camelCase=V2,y.capitalize=sE,y.ceil=MG,y.clamp=M2,y.clone=OP,y.cloneDeep=HP,y.cloneDeepWith=kP,y.cloneWith=LP,y.conformsTo=NP,y.deburr=oE,y.defaultTo=mG,y.divide=RG,y.endsWith=P2,y.eq=pn,y.escape=G2,y.escapeRegExp=W2,y.every=ZV,y.find=eP,y.findIndex=xy,y.findKey=d2,y.findLast=AP,y.findLastIndex=Oy,y.findLastKey=h2,y.floor=KG,y.forEach=My,y.forEachRight=Ry,y.forIn=p2,y.forInRight=g2,y.forOwn=m2,y.forOwnRight=B2,y.get=jd,y.gt=DP,y.gte=MP,y.has=y2,y.hasIn=eh,y.head=Hy,y.identity=bt,y.includes=sP,y.indexOf=AV,y.inRange=R2,y.invoke=F2,y.isArguments=Qi,y.isArray=ye,y.isArrayBuffer=RP,y.isArrayLike=Qt,y.isArrayLikeObject=yA,y.isBoolean=KP,y.isBuffer=Vr,y.isDate=VP,y.isElement=PP,y.isEmpty=GP,y.isEqual=WP,y.isEqualWith=$P,y.isError=qd,y.isFinite=JP,y.isFunction=nr,y.isInteger=Xy,y.isLength=dc,y.isMap=Yy,y.isMatch=XP,y.isMatchWith=YP,y.isNaN=zP,y.isNative=qP,y.isNil=jP,y.isNull=ZP,y.isNumber=zy,y.isObject=gA,y.isObjectLike=BA,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=e2,y.isSet=qy,y.isString=hc,y.isSymbol=kt,y.isTypedArray=ys,y.isUndefined=A2,y.isWeakMap=t2,y.isWeakSet=n2,y.join=sV,y.kebabCase=$2,y.last=en,y.lastIndexOf=oV,y.lowerCase=J2,y.lowerFirst=X2,y.lt=r2,y.lte=i2,y.max=VG,y.maxBy=PG,y.mean=GG,y.meanBy=WG,y.min=$G,y.minBy=JG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=xG,y.stubString=OG,y.stubTrue=LG,y.multiply=XG,y.nth=aV,y.noConflict=FG,y.noop=ih,y.now=cc,y.pad=Y2,y.padEnd=z2,y.padStart=q2,y.parseInt=Z2,y.random=K2,y.reduce=uP,y.reduceRight=fP,y.repeat=j2,y.replace=eG,y.result=_2,y.round=YG,y.runInContext=H,y.sample=hP,y.size=mP,y.snakeCase=AG,y.some=BP,y.sortedIndex=pV,y.sortedIndexBy=gV,y.sortedIndexOf=mV,y.sortedLastIndex=BV,y.sortedLastIndexBy=wV,y.sortedLastIndexOf=CV,y.startCase=nG,y.startsWith=rG,y.subtract=zG,y.sum=qG,y.sumBy=ZG,y.template=iG,y.times=HG,y.toFinite=rr,y.toInteger=Ee,y.toLength=jy,y.toLower=sG,y.toNumber=An,y.toSafeInteger=s2,y.toString=Ye,y.toUpper=oG,y.trim=aG,y.trimEnd=lG,y.trimStart=cG,y.truncate=uG,y.unescape=fG,y.uniqueId=NG,y.upperCase=dG,y.upperFirst=Ah,y.each=My,y.eachRight=Ry,y.first=Hy,rh(y,function(){var o={};return _n(y,function(l,d){qe.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Yt(["drop","take"],function(o,l){Oe.prototype[o]=function(d){d=d===A?1:_A(Ee(d),0);var m=this.__filtered__&&!l?new Oe(this):this.clone();return m.__filtered__?m.__takeCount__=At(d,m.__takeCount__):m.__views__.push({size:At(d,ke),type:o+(m.__dir__<0?"Right":"")}),m},Oe.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,m=d==Le||d==Re;Oe.prototype[o]=function(C){var F=this.clone();return F.__iteratees__.push({iteratee:de(C,3),type:d}),F.__filtered__=F.__filtered__||m,F}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");Oe.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");Oe.prototype[o]=function(){return this.__filtered__?new Oe(this):this[d](1)}}),Oe.prototype.compact=function(){return this.filter(bt)},Oe.prototype.find=function(o){return this.filter(o).head()},Oe.prototype.findLast=function(o){return this.reverse().find(o)},Oe.prototype.invokeMap=Ie(function(o,l){return typeof o=="function"?new Oe(this):this.map(function(d){return So(d,o,l)})}),Oe.prototype.reject=function(o){return this.filter(fc(de(o)))},Oe.prototype.slice=function(o,l){o=Ee(o);var d=this;return d.__filtered__&&(o>0||l<0)?new Oe(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==A&&(l=Ee(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},Oe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Oe.prototype.toArray=function(){return this.take(ke)},_n(Oe.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),C=y[m?"take"+(l=="last"?"Right":""):l],F=m||/^find/.test(l);C&&(y.prototype[l]=function(){var I=this.__wrapped__,O=m?[1]:arguments,k=I instanceof Oe,G=O[0],W=k||ye(I),J=function(Te){var Me=C.apply(y,Hr([Te],O));return m&&q?Me[0]:Me};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,le=!!this.__actions__.length,he=F&&!q,ve=k&&!le;if(!F&&W){I=ve?I:new Oe(this);var pe=o.apply(I,O);return pe.__actions__.push({func:ac,args:[J],thisArg:A}),new qt(pe,q)}return he&&ve?o.apply(this,O):(pe=this.thru(J),he?m?pe.value()[0]:pe.value():pe)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ll[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(m&&!this.__chain__){var F=this.value();return l.apply(ye(F)?F:[],C)}return this[d](function(I){return l.apply(ye(I)?I:[],C)})}}),_n(Oe.prototype,function(o,l){var d=y[l];if(d){var m=d.name+"";qe.call(gs,m)||(gs[m]=[]),gs[m].push({name:l,func:d})}}),gs[Ac(A,v).name]=[{name:"wrapper",func:A}],Oe.prototype.clone=f4,Oe.prototype.reverse=d4,Oe.prototype.value=h4,y.prototype.at=PV,y.prototype.chain=GV,y.prototype.commit=WV,y.prototype.next=$V,y.prototype.plant=XV,y.prototype.reverse=YV,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=zV,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=JV),y},ds=WR();pi?((pi.exports=ds)._=ds,nd._=ds):WA._=ds}).call(Ys)}(Oa,Oa.exports);var IB=Oa.exports;const B_="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==",w_={class:"camera__preview"},C_={key:0,class:"camera__bg-notification"},y_=["innerHTML"],E_=["width","height"],Q_={key:1,class:"camera__countdown-overlay"},F_=["innerHTML","data-countdown"],b_=["src"],U_={class:"camera__controls"},v_={class:"container"},I_={class:"row"},S_={class:"col"},T_={class:"btn-group"},__={key:0},x_={key:1},O_={key:0,class:"camera__switch-cam"},L_={key:1,class:"base-camera__devices"},H_={name:"BaseCamera",inheritAttrs:!1};function k_(t){const e=atob(t.split(",")[1]),A=new ArrayBuffer(e.length),n=new Uint8Array(A);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return new Blob([A],{type:"image/png"})}const N_=h.defineComponent({...H_,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:()=>B_},countdown:{type:Number,default:0},ratio:{type:String,default:"3x4"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:A}){const n={"1x1":{width:720,height:720},"3x2":{width:1080,height:720},"2x3":{width:720,height:1080},"4x3":{width:960,height:720},"3x4":{width:720,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,i=A,s=h.ref(),a=h.ref(),c=h.ref(!1),u=h.ref([]),f=h.ref(),p=h.ref(),g=h.ref(!1),B=h.ref(!1),w=h.ref(0),Q=h.ref(0),b=h.ref(),v=h.computed(()=>u.value.filter(re=>re.kind==="videoinput")),_=h.computed(()=>u.value.filter(re=>re.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(re){f.value=v.value.find(me=>me.deviceId===re)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(re){p.value=_.value.find(me=>me.deviceId===re)}}),L=h.computed(()=>{const re=f.value&&v.value.findIndex(me=>me.deviceId===f.value.deviceId);return r.enableMirrorCamera&&re===0?"mirror-cam":""}),U=h.computed(()=>{const re=f.value&&u.value.findIndex(me=>me.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${re}`:""});function N(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,Q.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const V=IB.debounce(()=>{N()},300,{trailing:!0,leading:!1});async function D(){const re={audio:r.enableAudio&&{...p.value?{deviceId:p.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(re).catch(me=>{console.error(me,"navigator.mediaDevices.getUserMedia: failed")})}function se(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(me=>{me.stop()})}async function Be(){return s.value.srcObject=await D(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function ne(){g.value?(g.value=!1,B.value=!1,se()):(g.value=!0,Be())}function ce(){u.value.length>1&&(se(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],Be())}async function Le(re,me){se(),re&&(!me||re.deviceId!==me.deviceId)&&await Be()}h.watch(()=>f.value,Le),h.watch(()=>p.value,Le);function oA(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(oA,1e3):Re()):Re()}e({onCapture:oA});function Re(){B.value=!0;const re=a.value.getContext("2d"),me=s.value,Xe=me&&me.srcObject&&me.srcObject.getTracks(),{aspectRatio:ke,width:Ge,height:Ke}=Xe.length&&Xe[0].getSettings(),eA=n[r.ratio],AA=eA.width/eA.height;let ze=eA.width,pA=eA.height;r.enableCropImage?ke>AA?ze=pA*ke:ke<AA&&(pA=ze/ke):(ze=Ge,pA=Ke,a.value.width=ze,a.value.height=pA);const ct=L.value?-1:1;re.save(),re.scale(ct,1),re.drawImage(me,ze>a.value.width?(a.value.width-ze)/2:0,pA>a.value.height?(a.value.height-pA)/2:0,ze*ct,pA),re.restore();const et=a.value.toDataURL("image/png");He(et)}function He(re){const me=k_(re);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:me,size:me.size})}return h.onMounted(async()=>{se(),await Be(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async re=>{await Be()}),r.defaultRearCamera&&ce(),ne(),window.addEventListener("resize",V),N(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,B.value=!1,se(),window.removeEventListener("resize",V)}),(re,me)=>{const Xe=h.resolveComponent("loading-spinner"),ke=h.resolveComponent("svg-icon"),Ge=h.resolveComponent("input-dropdown");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",U.value])},[h.createElementVNode("div",w_,[c.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",C_,[h.createVNode(Xe,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:re.$t("camera.waitForCameraNotification")},null,8,y_)]),_:1})])),h.withDirectives(h.createElementVNode("video",{ref_key:"camera",ref:s,class:h.normalizeClass(["camera__video",`aspect-ratio--${r.ratio}`]),autoplay:"",playsinline:""},null,2),[[h.vShow,c.value]]),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:w.value,height:Q.value},null,8,E_),[[h.vShow,B.value]]),b.value?(h.openBlock(),h.createElementBlock("div",Q_,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,F_))])):h.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(h.openBlock(),h.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,b_)):h.createCommentVNode("",!0)]),h.createElementVNode("div",U_,[h.createElementVNode("div",v_,[h.createElementVNode("div",I_,[h.createElementVNode("div",S_,[h.createElementVNode("div",T_,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:ne},[g.value?(h.openBlock(),h.createElementBlock("span",x_,h.toDisplayString(re.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",__,h.toDisplayString(re.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:oA},h.toDisplayString(re.$t("camera.capture")),1)])])])])]),v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",O_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(ce,["prevent"])},[h.createVNode(ke,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",L_,[_.value.length&&p.value?(h.openBlock(),h.createBlock(Ge,{key:0,modelValue:E.value,"onUpdate:modelValue":me[0]||(me[0]=Ke=>E.value=Ke),options:_.value.map((Ke,eA)=>({text:Ke.label||`Microphone ${eA+1}`,value:Ke.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(Ge,{key:1,modelValue:S.value,"onUpdate:modelValue":me[1]||(me[1]=Ke=>S.value=Ke),options:v.value.map((Ke,eA)=>({text:Ke.label||`Camera ${eA+1}`,value:Ke.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),Q3="",D_=/"(?:_|\\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*:/,M_=/"(?: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*:/,R_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function K_(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){V_(t);return}return e}function V_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function P_(t,e={}){if(typeof t!="string")return t;const A=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return A.slice(1,-1);if(A.length<=9){const n=A.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!R_.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(D_.test(t)||M_.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,K_)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}const G_=/#/g,W_=/&/g,$_=/\//g,J_=/=/g,Ju=/\+/g,X_=/%5e/gi,Y_=/%60/gi,z_=/%7c/gi,q_=/%20/gi;function Z_(t){return encodeURI(""+t).replace(z_,"|")}function Xu(t){return Z_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(q_,"+").replace(G_,"%23").replace(W_,"%26").replace(Y_,"`").replace(X_,"^").replace($_,"%2F")}function Yu(t){return Xu(t).replace(J_,"%3D")}function SB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function j_(t){return SB(t.replace(Ju," "))}function ex(t){return SB(t.replace(Ju," "))}function Ax(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const A of t.split("&")){const n=A.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=j_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=ex(n[2]||"");e[r]===void 0?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}return e}function tx(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(A=>`${Yu(t)}=${Xu(A)}`).join("&"):`${Yu(t)}=${Xu(e)}`:Yu(t)}function nx(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>tx(e,t[e])).filter(Boolean).join("&")}const rx=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ix=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,sx=/^([/\\]\s*){2,}[^/\\]/,ox=/\/$|\/\?|\/#/,ax=/^\.?\//;function TB(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?rx.test(t):ix.test(t)||(e.acceptRelative?sx.test(t):!1)}function zu(t="",e){return e?ox.test(t):t.endsWith("/")}function lx(t="",e){if(!e)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");r>=0&&(A=t.slice(0,r),n=t.slice(r));const[i,...s]=A.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function cx(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");if(r>=0&&(A=t.slice(0,r),n=t.slice(r),!A))return n;const[i,...s]=A.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function ux(t,e){if(dx(e)||TB(t))return t;const A=lx(e);return t.startsWith(A)?t:px(A,t)}function fx(t,e){const A=xB(t),n={...Ax(A.search),...e};return A.search=nx(n),gx(A)}function dx(t){return!t||t==="/"}function hx(t){return t&&t!=="/"}function px(t,...e){let A=t||"";for(const n of e.filter(r=>hx(r)))if(A){const r=n.replace(ax,"");A=cx(A)+r}else A=n;return A}const _B=Symbol.for("ufo:protocolRelative");function xB(t="",e){const A=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(A){const[,p,g=""]=A;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!TB(t,{acceptRelative:!0}))return e?xB(e+t):OB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=OB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f,[_B]:!n}}function OB(t=""){const[e="",A="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:A,hash:n}}function gx(t){const e=t.pathname||"",A=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[_B]?(t.protocol||"")+"//":"")+r+i+e+A+n}class mx extends Error{constructor(e,A){super(e,A),this.name="FetchError",A!=null&&A.cause&&!this.cause&&(this.cause=A.cause)}}function Bx(t){var c,u,f,p,g;const e=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",A=((f=t.request)==null?void 0:f.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${A}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${e?` ${e}`:""}`,a=new mx(s,t.error?{cause:t.error}:void 0);for(const B of["request","options","response"])Object.defineProperty(a,B,{get(){return t[B]}});for(const[B,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,B,{get(){return t.response&&t.response[w]}});return a}const wx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function LB(t="GET"){return wx.has(t.toUpperCase())}function Cx(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 yx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ex=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Qx(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return Ex.test(e)?"json":yx.has(e)||e.startsWith("text/")?"text":"blob"}function Fx(t,e,A=globalThis.Headers){const n={...e,...t};if(e!=null&&e.params&&(t!=null&&t.params)&&(n.params={...e==null?void 0:e.params,...t==null?void 0:t.params}),e!=null&&e.query&&(t!=null&&t.query)&&(n.query={...e==null?void 0:e.query,...t==null?void 0:t.query}),e!=null&&e.headers&&(t!=null&&t.headers)){n.headers=new A((e==null?void 0:e.headers)||{});for(const[r,i]of new A((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const bx=new Set([408,409,425,429,500,502,503,504]),Ux=new Set([101,204,205,304]);function HB(t={}){const{fetch:e=globalThis.fetch,Headers:A=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=LB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):bx.has(p))){const g=a.options.retryDelay||0;return g>0&&await new Promise(B=>setTimeout(B,g)),i(a.request,{...a.options,retry:f-1})}}const u=Bx(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const f={request:c,options:Fx(u,t.defaults,A),response:void 0,error:void 0};f.options.method=(B=f.options.method)==null?void 0:B.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=ux(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=fx(f.request,{...f.options.params,...f.options.query}))),f.options.body&&LB(f.options.method)&&(Cx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new A(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 p;if(!f.options.signal&&f.options.timeout){const w=new n;p=setTimeout(()=>w.abort(),f.options.timeout),f.options.signal=w.signal}try{f.response=await e(f.request,f.options)}catch(w){return f.error=w,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}finally{p&&clearTimeout(p)}if(f.response.body&&!Ux.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||Qx(f.response.headers.get("content-type")||"");switch(w){case"json":{const Q=await f.response.text(),b=f.options.parseResponse||P_;f.response._data=b(Q);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[w]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>e(...a),s.create=(a={})=>HB({...t,defaults:{...t.defaults,...a}}),s}const qu=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")}(),vx=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Ix=qu.Headers,Sx=qu.AbortController,Tx=HB({fetch:vx,Headers:Ix,AbortController:Sx}),_x={class:"file-upload"},xx=["src"],Ox=["onClick"],Lx=["onClick"],Hx=["for"],kx=["innerHTML"],Nx={key:0,class:"file-upload__loading-spinner"},Dx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function Mx(t){return await new Promise(e=>{let A=new FileReader;A.onload=()=>e(A.result),A.readAsDataURL(t)})}const Rx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String,default:"Select file"},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,default:"image/*"},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}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const A=t,n=e,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>A.modelValue.length?A.modelValue:A.src?[{type:"",src:A.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:A.toDataUrl?await Mx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=A.multiple?f:f[0];n("update:modelValue",p),A.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const p=new FormData;p.append("file",f),s.value=!0;const B=await(A.customFetch||Tx)(A.endpoint,{method:"POST",...A.customFetch?{}:{headers:{Accept:"application/json",...A.authToken?{Authorization:`Bearer ${A.authToken}`}:{}}},body:p}).catch(Q=>{console.error("Error",Q)});return s.value=!1,`${A.baseResponsePath==="/media"&&B.path.endsWith(".svg")?"/api/v1/assets":A.baseResponsePath}/${B.path}`}return(f,p)=>{const g=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",_x,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,Q)=>(h.openBlock(),h.createElementBlock("div",{key:w.src,class:h.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,xx),h.createElementVNode("button",{onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close"},[h.createVNode(g,{symbol:"x"})],8,Ox)],64)):(h.openBlock(),h.createElementBlock("button",{key:1,onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close btn-outline-dark"},[h.createVNode(g,{symbol:"x"})],8,Lx))],2))),128)),h.createVNode(B,{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(f.$slots,"button",{},()=>[h.createElementVNode("span",{class:"btn btn-outline-dark",innerHTML:t.label},null,8,kx)]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[s.value?(h.openBlock(),h.createElementBlock("span",Nx,Dx)):h.createCommentVNode("",!0)]),_:1})],8,Hx)])}}}),b3="",Kx={class:"upload-group"},Vx=["innerHTML"],Px={class:"upload-group__list"},Gx={class:"img-container"},Wx=["src"],$x=["onClick"],Jx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},kB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},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 A=t,n=e,r=h.ref(""),i=h.computed({get(){return A.modelValue},set(a){n("update:modelValue",a)}});function s(a){i.value.splice(a,1),n("update:modelValue",i.value)}return h.watch(r,(a,c)=>{a&&(n("update:modelValue",[...i.value,a]),r.value="")}),(a,c)=>{const u=h.resolveComponent("svg-icon"),f=h.resolveComponent("file-upload"),p=h.resolveComponent("sortable-list");return h.openBlock(),h.createElementBlock("div",Kx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,Vx)):h.createCommentVNode("",!0),h.createElementVNode("div",Px,[h.createVNode(p,{modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=g=>i.value=g),vertical:!1,class:"mb-3"},{"list-item":h.withCtx(({item:g,index:B})=>[h.createElementVNode("div",Gx,[h.createElementVNode("img",{src:`${g}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Wx),h.createElementVNode("button",{onClick:h.withModifiers(w=>s(B),["prevent"]),class:"btn btn--close"},[h.createVNode(u,{symbol:"x"})],8,$x)])]),"list-append":h.withCtx(()=>[h.createVNode(f,{src:r.value,"onUpdate:src":c[0]||(c[0]=g=>r.value=g),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},{button:h.withCtx(()=>[h.createElementVNode("span",Jx,[h.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),U3="",Xx={class:"asset-uploader"},Yx=["innerHTML"],zx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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,default:"image/*"},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 A=t,n=e,r=h.computed({get(){return A.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:A.modelValue[a]&&A.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":A.mediaTypeMap[s.split(".")[1]],src:s,name:A.modelValue[a]&&A.modelValue[a].name||`${A.name}-${a}`,...A.type?{type:A.type}:{}})))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",Xx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,Yx)):h.createCommentVNode("",!0),h.createVNode(kB,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[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},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),v3="",qx={class:"carousel d-flex"},Zx=["onClick"],NB=h.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 A=e,n=h.ref(),r=h.ref();function i(){n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth>0?n.value.scrollLeft-n.value.clientWidth:0,behavior:"smooth"})}function s(){console.log(n.value.clientWidth,n.value.scrollLeft),n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth<=r.value.clientWidth?n.value.scrollLeft+n.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(c){A("update:modelValue",c)}return(c,u)=>{const f=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",qx,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:h.withModifiers(i,["prevent","stop"])},[h.createVNode(f,{symbol:"chevron-left"})])):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(p,g)=>h.renderSlot(c.$slots,"carousel-item",{key:p.src,item:p,index:g},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item",g===t.modelValue?"selected":""]),onClick:B=>a(g)},h.toDisplayString(p),11,Zx)])),128))],512)],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(f,{symbol:"chevron-right"})])):h.createCommentVNode("",!0)])}}}),I3="",jx={class:"media-thumbnails"},eO=["onClick"],AO={class:"img-container"},tO=h.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 A=e,n=h.ref(-1);function r(i){A("update:modelValue",i),A("select",i)}return(i,s)=>{const a=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",jx,[h.createVNode(NB,{items:t.assets},{"carousel-item":h.withCtx(c=>[h.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:u=>r(c.index)},[h.createElementVNode("div",AO,[h.createVNode(a,{src:c.item.thumbnail||c.item.src,class:h.normalizeClass(["img-fluid",n.value===c.index?"is-active":""])},null,8,["src","class"])])],8,eO)]),_:1},8,["items"])])}}}),S3="",nO={class:"progress-steps"},rO={class:"progress-steps__list"},iO={class:"progress-step"},sO=["checked","id","value","disabled","read-only","required","onChange"],oO=["for"],aO=["innerHTML"],lO=["for"],cO=["innerHTML"],uO=h.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 A=t,n=e;function r(i){n("update:modelValue",i),i>=A.progress&&n("update:progress",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",nO,[h.createElementVNode("ul",rO,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(a,c)=>(h.openBlock(),h.createElementBlock("li",{key:c,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[h.renderSlot(i.$slots,"step",{},()=>[h.createElementVNode("div",iO,[h.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,sO),h.createElementVNode("label",{for:`step-${c}`},[h.renderSlot(i.$slots,"button",{step:a},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,aO)])],8,oO),h.createElementVNode("label",{for:`step-${c}`},[h.renderSlot(i.$slots,"label",{step:a},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,cO)])],8,lO)])])],2))),128))])]))}}),T3="";/*!
162
+ }`;var ve=lE(function(){return $e(F,le+"return "+J).apply(A,I)});if(ve.source=J,qd(ve))throw ve;return ve}function oG(o){return Ye(o).toLowerCase()}function aG(o){return Ye(o).toUpperCase()}function lG(o,l,d){if(o=Ye(o),o&&(d||l===A))return B0(o);if(!o||!(l=Ht(l)))return o;var m=dn(o),C=dn(l),F=w0(m,C),I=C0(m,C)+1;return Kr(m,F,I).join("")}function cG(o,l,d){if(o=Ye(o),o&&(d||l===A))return o.slice(0,E0(o)+1);if(!o||!(l=Ht(l)))return o;var m=dn(o),C=C0(m,dn(l))+1;return Kr(m,0,C).join("")}function uG(o,l,d){if(o=Ye(o),o&&(d||l===A))return o.replace(qf,"");if(!o||!(l=Ht(l)))return o;var m=dn(o),C=w0(m,dn(l));return Kr(m,C).join("")}function fG(o,l){var d=se,m=Be;if(gA(l)){var C="separator"in l?l.separator:C;d="length"in l?Ee(l.length):d,m="omission"in l?Ht(l.omission):m}o=Ye(o);var F=o.length;if(us(o)){var I=dn(o);F=I.length}if(d>=F)return o;var O=d-fs(m);if(O<1)return m;var k=I?Kr(I,0,O).join(""):o.slice(0,O);if(C===A)return k+m;if(I&&(O+=k.length-O),Zd(C)){if(o.slice(O).search(C)){var G,W=k;for(C.global||(C=hd(C.source,Ye(RC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===A?O:J)}}else if(o.indexOf(Ht(C),O)!=O){var q=k.lastIndexOf(C);q>-1&&(k=k.slice(0,q))}return k+m}function dG(o){return o=Ye(o),o&&zn.test(o)?o.replace(Yn,VR):o}var hG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),Ah=cy("toUpperCase");function aE(o,l,d){return o=Ye(o),l=d?A:l,l===A?NR(o)?WR(o):IR(o):o.match(l)||[]}var lE=Ie(function(o,l){try{return Ot(o,A,l)}catch(d){return qd(d)?d:new we(d)}}),pG=Ar(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function gG(o){var l=o==null?0:o.length,d=de();return o=l?fA(o,function(m){if(typeof m[1]!="function")throw new zt(s);return[d(m[0]),m[1]]}):[],Ie(function(m){for(var C=-1;++C<l;){var F=o[C];if(Ot(F[0],this,m))return Ot(F[1],this,m)}})}function mG(o){return V4(Zt(o,p))}function th(o){return function(){return o}}function BG(o,l){return o==null||o!==o?l:o}var wG=fy(),CG=fy(!0);function bt(o){return o}function nh(o){return V0(typeof o=="function"?o:Zt(o,p))}function yG(o){return G0(Zt(o,p))}function EG(o,l){return W0(o,Zt(l,p))}var QG=Ie(function(o,l){return function(d){return So(d,o,l)}}),FG=Ie(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var m=DA(l),C=zl(l,m);d==null&&!(gA(l)&&(C.length||!m.length))&&(d=l,l=o,o=this,C=zl(l,DA(l)));var F=!(gA(d)&&"chain"in d)||!!d.chain,I=nr(o);return Yt(C,function(O){var k=l[O];o[O]=k,I&&(o.prototype[O]=function(){var G=this.__chain__;if(F||G){var W=o(this.__wrapped__),J=W.__actions__=Et(this.__actions__);return J.push({func:k,args:arguments,thisArg:o}),W.__chain__=G,W}return k.apply(o,Hr([this.value()],arguments))})}),o}function bG(){return WA._===this&&(WA._=qR),this}function ih(){}function UG(o){return o=Ee(o),Ie(function(l){return $0(l,o)})}var vG=kd(fA),IG=kd(d0),SG=kd(od);function cE(o){return Pd(o)?ad(On(o)):iK(o)}function TG(o){return function(l){return o==null?A:Ci(o,l)}}var _G=hy(),xG=hy(!0);function sh(){return[]}function oh(){return!1}function OG(){return{}}function LG(){return""}function HG(){return!0}function kG(o,l){if(o=Ee(o),o<1||o>re)return[];var d=ke,m=At(o,ke);l=de(l),o-=ke;for(var C=ud(m,l);++d<o;)l(d);return C}function NG(o){return ye(o)?fA(o,On):kt(o)?[o]:Et(Ty(Ye(o)))}function DG(o){var l=++YR;return Ye(o)+l}var MG=tc(function(o,l){return o+l},0),RG=Nd("ceil"),KG=tc(function(o,l){return o/l},1),VG=Nd("floor");function PG(o){return o&&o.length?Yl(o,bt,Ed):A}function GG(o,l){return o&&o.length?Yl(o,de(l,2),Ed):A}function WG(o){return g0(o,bt)}function $G(o,l){return g0(o,de(l,2))}function JG(o){return o&&o.length?Yl(o,bt,Ud):A}function XG(o,l){return o&&o.length?Yl(o,de(l,2),Ud):A}var YG=tc(function(o,l){return o*l},1),zG=Nd("round"),qG=tc(function(o,l){return o-l},0);function ZG(o){return o&&o.length?cd(o,bt):0}function jG(o,l){return o&&o.length?cd(o,de(l,2)):0}return y.after=yP,y.ary=Ky,y.assign=a2,y.assignIn=AE,y.assignInWith=pc,y.assignWith=l2,y.at=c2,y.before=Vy,y.bind=Yd,y.bindAll=pG,y.bindKey=Py,y.castArray=OP,y.chain=Dy,y.chunk=VK,y.compact=PK,y.concat=GK,y.cond=gG,y.conforms=mG,y.constant=th,y.countBy=ZV,y.create=u2,y.curry=Gy,y.curryRight=Wy,y.debounce=$y,y.defaults=f2,y.defaultsDeep=d2,y.defer=EP,y.delay=QP,y.difference=WK,y.differenceBy=$K,y.differenceWith=JK,y.drop=XK,y.dropRight=YK,y.dropRightWhile=zK,y.dropWhile=qK,y.fill=ZK,y.filter=eP,y.flatMap=nP,y.flatMapDeep=rP,y.flatMapDepth=iP,y.flatten=Ly,y.flattenDeep=jK,y.flattenDepth=eV,y.flip=FP,y.flow=wG,y.flowRight=CG,y.fromPairs=AV,y.functions=C2,y.functionsIn=y2,y.groupBy=sP,y.initial=nV,y.intersection=rV,y.intersectionBy=iV,y.intersectionWith=sV,y.invert=Q2,y.invertBy=F2,y.invokeMap=aP,y.iteratee=nh,y.keyBy=lP,y.keys=DA,y.keysIn=Ft,y.map=lc,y.mapKeys=U2,y.mapValues=v2,y.matches=yG,y.matchesProperty=EG,y.memoize=uc,y.merge=I2,y.mergeWith=tE,y.method=QG,y.methodOf=FG,y.mixin=rh,y.negate=fc,y.nthArg=UG,y.omit=S2,y.omitBy=T2,y.once=bP,y.orderBy=cP,y.over=vG,y.overArgs=UP,y.overEvery=IG,y.overSome=SG,y.partial=zd,y.partialRight=Jy,y.partition=uP,y.pick=_2,y.pickBy=nE,y.property=cE,y.propertyOf=TG,y.pull=cV,y.pullAll=ky,y.pullAllBy=uV,y.pullAllWith=fV,y.pullAt=dV,y.range=_G,y.rangeRight=xG,y.rearg=vP,y.reject=hP,y.remove=hV,y.rest=IP,y.reverse=Jd,y.sampleSize=gP,y.set=O2,y.setWith=L2,y.shuffle=mP,y.slice=pV,y.sortBy=CP,y.sortedUniq=EV,y.sortedUniqBy=QV,y.split=nG,y.spread=SP,y.tail=FV,y.take=bV,y.takeRight=UV,y.takeRightWhile=vV,y.takeWhile=IV,y.tap=PV,y.throttle=TP,y.thru=ac,y.toArray=Zy,y.toPairs=rE,y.toPairsIn=iE,y.toPath=NG,y.toPlainObject=eE,y.transform=H2,y.unary=_P,y.union=SV,y.unionBy=TV,y.unionWith=_V,y.uniq=xV,y.uniqBy=OV,y.uniqWith=LV,y.unset=k2,y.unzip=Xd,y.unzipWith=Ny,y.update=N2,y.updateWith=D2,y.values=Es,y.valuesIn=M2,y.without=HV,y.words=aE,y.wrap=xP,y.xor=kV,y.xorBy=NV,y.xorWith=DV,y.zip=MV,y.zipObject=RV,y.zipObjectDeep=KV,y.zipWith=VV,y.entries=rE,y.entriesIn=iE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=MG,y.attempt=lE,y.camelCase=P2,y.capitalize=sE,y.ceil=RG,y.clamp=R2,y.clone=LP,y.cloneDeep=kP,y.cloneDeepWith=NP,y.cloneWith=HP,y.conformsTo=DP,y.deburr=oE,y.defaultTo=BG,y.divide=KG,y.endsWith=G2,y.eq=pn,y.escape=W2,y.escapeRegExp=$2,y.every=jV,y.find=AP,y.findIndex=xy,y.findKey=h2,y.findLast=tP,y.findLastIndex=Oy,y.findLastKey=p2,y.floor=VG,y.forEach=My,y.forEachRight=Ry,y.forIn=g2,y.forInRight=m2,y.forOwn=B2,y.forOwnRight=w2,y.get=jd,y.gt=MP,y.gte=RP,y.has=E2,y.hasIn=eh,y.head=Hy,y.identity=bt,y.includes=oP,y.indexOf=tV,y.inRange=K2,y.invoke=b2,y.isArguments=Qi,y.isArray=ye,y.isArrayBuffer=KP,y.isArrayLike=Qt,y.isArrayLikeObject=yA,y.isBoolean=VP,y.isBuffer=Vr,y.isDate=PP,y.isElement=GP,y.isEmpty=WP,y.isEqual=$P,y.isEqualWith=JP,y.isError=qd,y.isFinite=XP,y.isFunction=nr,y.isInteger=Xy,y.isLength=dc,y.isMap=Yy,y.isMatch=YP,y.isMatchWith=zP,y.isNaN=qP,y.isNative=ZP,y.isNil=e2,y.isNull=jP,y.isNumber=zy,y.isObject=gA,y.isObjectLike=BA,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=A2,y.isSet=qy,y.isString=hc,y.isSymbol=kt,y.isTypedArray=ys,y.isUndefined=t2,y.isWeakMap=n2,y.isWeakSet=r2,y.join=oV,y.kebabCase=J2,y.last=en,y.lastIndexOf=aV,y.lowerCase=X2,y.lowerFirst=Y2,y.lt=i2,y.lte=s2,y.max=PG,y.maxBy=GG,y.mean=WG,y.meanBy=$G,y.min=JG,y.minBy=XG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=OG,y.stubString=LG,y.stubTrue=HG,y.multiply=YG,y.nth=lV,y.noConflict=bG,y.noop=ih,y.now=cc,y.pad=z2,y.padEnd=q2,y.padStart=Z2,y.parseInt=j2,y.random=V2,y.reduce=fP,y.reduceRight=dP,y.repeat=eG,y.replace=AG,y.result=x2,y.round=zG,y.runInContext=H,y.sample=pP,y.size=BP,y.snakeCase=tG,y.some=wP,y.sortedIndex=gV,y.sortedIndexBy=mV,y.sortedIndexOf=BV,y.sortedLastIndex=wV,y.sortedLastIndexBy=CV,y.sortedLastIndexOf=yV,y.startCase=rG,y.startsWith=iG,y.subtract=qG,y.sum=ZG,y.sumBy=jG,y.template=sG,y.times=kG,y.toFinite=rr,y.toInteger=Ee,y.toLength=jy,y.toLower=oG,y.toNumber=An,y.toSafeInteger=o2,y.toString=Ye,y.toUpper=aG,y.trim=lG,y.trimEnd=cG,y.trimStart=uG,y.truncate=fG,y.unescape=dG,y.uniqueId=DG,y.upperCase=hG,y.upperFirst=Ah,y.each=My,y.eachRight=Ry,y.first=Hy,rh(y,function(){var o={};return _n(y,function(l,d){qe.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Yt(["drop","take"],function(o,l){Oe.prototype[o]=function(d){d=d===A?1:_A(Ee(d),0);var m=this.__filtered__&&!l?new Oe(this):this.clone();return m.__filtered__?m.__takeCount__=At(d,m.__takeCount__):m.__views__.push({size:At(d,ke),type:o+(m.__dir__<0?"Right":"")}),m},Oe.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,m=d==Le||d==Re;Oe.prototype[o]=function(C){var F=this.clone();return F.__iteratees__.push({iteratee:de(C,3),type:d}),F.__filtered__=F.__filtered__||m,F}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");Oe.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");Oe.prototype[o]=function(){return this.__filtered__?new Oe(this):this[d](1)}}),Oe.prototype.compact=function(){return this.filter(bt)},Oe.prototype.find=function(o){return this.filter(o).head()},Oe.prototype.findLast=function(o){return this.reverse().find(o)},Oe.prototype.invokeMap=Ie(function(o,l){return typeof o=="function"?new Oe(this):this.map(function(d){return So(d,o,l)})}),Oe.prototype.reject=function(o){return this.filter(fc(de(o)))},Oe.prototype.slice=function(o,l){o=Ee(o);var d=this;return d.__filtered__&&(o>0||l<0)?new Oe(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==A&&(l=Ee(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},Oe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Oe.prototype.toArray=function(){return this.take(ke)},_n(Oe.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),C=y[m?"take"+(l=="last"?"Right":""):l],F=m||/^find/.test(l);C&&(y.prototype[l]=function(){var I=this.__wrapped__,O=m?[1]:arguments,k=I instanceof Oe,G=O[0],W=k||ye(I),J=function(Te){var Me=C.apply(y,Hr([Te],O));return m&&q?Me[0]:Me};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,le=!!this.__actions__.length,he=F&&!q,ve=k&&!le;if(!F&&W){I=ve?I:new Oe(this);var pe=o.apply(I,O);return pe.__actions__.push({func:ac,args:[J],thisArg:A}),new qt(pe,q)}return he&&ve?o.apply(this,O):(pe=this.thru(J),he?m?pe.value()[0]:pe.value():pe)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ll[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(m&&!this.__chain__){var F=this.value();return l.apply(ye(F)?F:[],C)}return this[d](function(I){return l.apply(ye(I)?I:[],C)})}}),_n(Oe.prototype,function(o,l){var d=y[l];if(d){var m=d.name+"";qe.call(gs,m)||(gs[m]=[]),gs[m].push({name:l,func:d})}}),gs[Ac(A,v).name]=[{name:"wrapper",func:A}],Oe.prototype.clone=d4,Oe.prototype.reverse=h4,Oe.prototype.value=p4,y.prototype.at=GV,y.prototype.chain=WV,y.prototype.commit=$V,y.prototype.next=JV,y.prototype.plant=YV,y.prototype.reverse=zV,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=qV,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=XV),y},ds=$R();pi?((pi.exports=ds)._=ds,nd._=ds):WA._=ds}).call(Ys)}(Oa,Oa.exports);var IB=Oa.exports;const w_="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==",C_={class:"camera__preview"},y_={key:0,class:"camera__bg-notification"},E_=["innerHTML"],Q_=["width","height"],F_={key:1,class:"camera__countdown-overlay"},b_=["innerHTML","data-countdown"],U_=["src"],v_={class:"camera__controls"},I_={class:"container"},S_={class:"row"},T_={class:"col"},__={class:"btn-group"},x_={key:0},O_={key:1},L_={key:0,class:"camera__switch-cam"},H_={key:1,class:"base-camera__devices"},k_={name:"BaseCamera",inheritAttrs:!1};function N_(t){const e=atob(t.split(",")[1]),A=new ArrayBuffer(e.length),n=new Uint8Array(A);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return new Blob([A],{type:"image/png"})}const D_=h.defineComponent({...k_,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:()=>w_},countdown:{type:Number,default:0},ratio:{type:String,default:"3x4"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1},enableCropImage:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:e,emit:A}){const n={"1x1":{width:720,height:720},"3x2":{width:1080,height:720},"2x3":{width:720,height:1080},"4x3":{width:960,height:720},"3x4":{width:720,height:960},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,i=A,s=h.ref(),a=h.ref(),c=h.ref(!1),u=h.ref([]),f=h.ref(),p=h.ref(),g=h.ref(!1),B=h.ref(!1),w=h.ref(0),Q=h.ref(0),b=h.ref(),v=h.computed(()=>u.value.filter(re=>re.kind==="videoinput")),_=h.computed(()=>u.value.filter(re=>re.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(re){f.value=v.value.find(me=>me.deviceId===re)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(re){p.value=_.value.find(me=>me.deviceId===re)}}),L=h.computed(()=>{const re=f.value&&v.value.findIndex(me=>me.deviceId===f.value.deviceId);return r.enableMirrorCamera&&re===0?"mirror-cam":""}),U=h.computed(()=>{const re=f.value&&u.value.findIndex(me=>me.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${re}`:""});function N(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,Q.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const V=IB.debounce(()=>{N()},300,{trailing:!0,leading:!1});async function D(){const re={audio:r.enableAudio&&{...p.value?{deviceId:p.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:1024},height:{ideal:1024}}};return navigator.mediaDevices.getUserMedia(re).catch(me=>{console.error(me,"navigator.mediaDevices.getUserMedia: failed")})}function se(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(me=>{me.stop()})}async function Be(){return s.value.srcObject=await D(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function ne(){g.value?(g.value=!1,B.value=!1,se()):(g.value=!0,Be())}function ce(){u.value.length>1&&(se(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],Be())}async function Le(re,me){se(),re&&(!me||re.deviceId!==me.deviceId)&&await Be()}h.watch(()=>f.value,Le),h.watch(()=>p.value,Le);function oA(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(oA,1e3):Re()):Re()}e({onCapture:oA});function Re(){B.value=!0;const re=a.value.getContext("2d"),me=s.value,Xe=me&&me.srcObject&&me.srcObject.getTracks(),{aspectRatio:ke,width:Ge,height:Ke}=Xe.length&&Xe[0].getSettings(),eA=n[r.ratio],AA=eA.width/eA.height;let ze=eA.width,pA=eA.height;r.enableCropImage?ke>AA?ze=pA*ke:ke<AA&&(pA=ze/ke):(ze=Ge,pA=Ke,a.value.width=ze,a.value.height=pA);const ct=L.value?-1:1;re.save(),re.scale(ct,1),re.drawImage(me,ze>a.value.width?(a.value.width-ze)/2:0,pA>a.value.height?(a.value.height-pA)/2:0,ze*ct,pA),re.restore();const et=a.value.toDataURL("image/png");He(et)}function He(re){const me=N_(re);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:me,size:me.size})}return h.onMounted(async()=>{se(),await Be(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async re=>{await Be()}),r.defaultRearCamera&&ce(),ne(),window.addEventListener("resize",V),N(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,B.value=!1,se(),window.removeEventListener("resize",V)}),(re,me)=>{const Xe=h.resolveComponent("loading-spinner"),ke=h.resolveComponent("svg-icon"),Ge=h.resolveComponent("input-dropdown");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",U.value])},[h.createElementVNode("div",C_,[c.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",y_,[h.createVNode(Xe,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:re.$t("camera.waitForCameraNotification")},null,8,E_)]),_:1})])),h.withDirectives(h.createElementVNode("video",{ref_key:"camera",ref:s,class:h.normalizeClass(["camera__video",`aspect-ratio--${r.ratio}`]),autoplay:"",playsinline:""},null,2),[[h.vShow,c.value]]),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:w.value,height:Q.value},null,8,Q_),[[h.vShow,B.value]]),b.value?(h.openBlock(),h.createElementBlock("div",F_,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,b_))])):h.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(h.openBlock(),h.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,U_)):h.createCommentVNode("",!0)]),h.createElementVNode("div",v_,[h.createElementVNode("div",I_,[h.createElementVNode("div",S_,[h.createElementVNode("div",T_,[h.createElementVNode("div",__,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:ne},[g.value?(h.openBlock(),h.createElementBlock("span",O_,h.toDisplayString(re.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",x_,h.toDisplayString(re.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:oA},h.toDisplayString(re.$t("camera.capture")),1)])])])])]),v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",L_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(ce,["prevent"])},[h.createVNode(ke,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",H_,[_.value.length&&p.value?(h.openBlock(),h.createBlock(Ge,{key:0,modelValue:E.value,"onUpdate:modelValue":me[0]||(me[0]=Ke=>E.value=Ke),options:_.value.map((Ke,eA)=>({text:Ke.label||`Microphone ${eA+1}`,value:Ke.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(Ge,{key:1,modelValue:S.value,"onUpdate:modelValue":me[1]||(me[1]=Ke=>S.value=Ke),options:v.value.map((Ke,eA)=>({text:Ke.label||`Camera ${eA+1}`,value:Ke.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),F3="",M_=/"(?:_|\\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*:/,R_=/"(?: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*:/,K_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function V_(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){P_(t);return}return e}function P_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function G_(t,e={}){if(typeof t!="string")return t;const A=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return A.slice(1,-1);if(A.length<=9){const n=A.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!K_.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(M_.test(t)||R_.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,V_)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}const W_=/#/g,$_=/&/g,J_=/\//g,X_=/=/g,Ju=/\+/g,Y_=/%5e/gi,z_=/%60/gi,q_=/%7c/gi,Z_=/%20/gi;function j_(t){return encodeURI(""+t).replace(q_,"|")}function Xu(t){return j_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(Z_,"+").replace(W_,"%23").replace($_,"%26").replace(z_,"`").replace(Y_,"^").replace(J_,"%2F")}function Yu(t){return Xu(t).replace(X_,"%3D")}function SB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ex(t){return SB(t.replace(Ju," "))}function Ax(t){return SB(t.replace(Ju," "))}function tx(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const A of t.split("&")){const n=A.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=ex(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=Ax(n[2]||"");e[r]===void 0?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}return e}function nx(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(A=>`${Yu(t)}=${Xu(A)}`).join("&"):`${Yu(t)}=${Xu(e)}`:Yu(t)}function rx(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>nx(e,t[e])).filter(Boolean).join("&")}const ix=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,sx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ox=/^([/\\]\s*){2,}[^/\\]/,ax=/\/$|\/\?|\/#/,lx=/^\.?\//;function TB(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?ix.test(t):sx.test(t)||(e.acceptRelative?ox.test(t):!1)}function zu(t="",e){return e?ax.test(t):t.endsWith("/")}function cx(t="",e){if(!e)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");r>=0&&(A=t.slice(0,r),n=t.slice(r));const[i,...s]=A.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function ux(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let A=t,n="";const r=t.indexOf("#");if(r>=0&&(A=t.slice(0,r),n=t.slice(r),!A))return n;const[i,...s]=A.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function fx(t,e){if(hx(e)||TB(t))return t;const A=cx(e);return t.startsWith(A)?t:gx(A,t)}function dx(t,e){const A=xB(t),n={...tx(A.search),...e};return A.search=rx(n),mx(A)}function hx(t){return!t||t==="/"}function px(t){return t&&t!=="/"}function gx(t,...e){let A=t||"";for(const n of e.filter(r=>px(r)))if(A){const r=n.replace(lx,"");A=ux(A)+r}else A=n;return A}const _B=Symbol.for("ufo:protocolRelative");function xB(t="",e){const A=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(A){const[,p,g=""]=A;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!TB(t,{acceptRelative:!0}))return e?xB(e+t):OB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=OB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f,[_B]:!n}}function OB(t=""){const[e="",A="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:A,hash:n}}function mx(t){const e=t.pathname||"",A=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[_B]?(t.protocol||"")+"//":"")+r+i+e+A+n}class Bx extends Error{constructor(e,A){super(e,A),this.name="FetchError",A!=null&&A.cause&&!this.cause&&(this.cause=A.cause)}}function wx(t){var c,u,f,p,g;const e=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",A=((f=t.request)==null?void 0:f.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${A}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${e?` ${e}`:""}`,a=new Bx(s,t.error?{cause:t.error}:void 0);for(const B of["request","options","response"])Object.defineProperty(a,B,{get(){return t[B]}});for(const[B,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,B,{get(){return t.response&&t.response[w]}});return a}const Cx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function LB(t="GET"){return Cx.has(t.toUpperCase())}function yx(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 Ex=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Qx=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Fx(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return Qx.test(e)?"json":Ex.has(e)||e.startsWith("text/")?"text":"blob"}function bx(t,e,A=globalThis.Headers){const n={...e,...t};if(e!=null&&e.params&&(t!=null&&t.params)&&(n.params={...e==null?void 0:e.params,...t==null?void 0:t.params}),e!=null&&e.query&&(t!=null&&t.query)&&(n.query={...e==null?void 0:e.query,...t==null?void 0:t.query}),e!=null&&e.headers&&(t!=null&&t.headers)){n.headers=new A((e==null?void 0:e.headers)||{});for(const[r,i]of new A((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const Ux=new Set([408,409,425,429,500,502,503,504]),vx=new Set([101,204,205,304]);function HB(t={}){const{fetch:e=globalThis.fetch,Headers:A=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=LB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):Ux.has(p))){const g=a.options.retryDelay||0;return g>0&&await new Promise(B=>setTimeout(B,g)),i(a.request,{...a.options,retry:f-1})}}const u=wx(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const f={request:c,options:bx(u,t.defaults,A),response:void 0,error:void 0};f.options.method=(B=f.options.method)==null?void 0:B.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=fx(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=dx(f.request,{...f.options.params,...f.options.query}))),f.options.body&&LB(f.options.method)&&(yx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new A(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 p;if(!f.options.signal&&f.options.timeout){const w=new n;p=setTimeout(()=>w.abort(),f.options.timeout),f.options.signal=w.signal}try{f.response=await e(f.request,f.options)}catch(w){return f.error=w,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}finally{p&&clearTimeout(p)}if(f.response.body&&!vx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||Fx(f.response.headers.get("content-type")||"");switch(w){case"json":{const Q=await f.response.text(),b=f.options.parseResponse||G_;f.response._data=b(Q);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[w]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>e(...a),s.create=(a={})=>HB({...t,defaults:{...t.defaults,...a}}),s}const qu=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")}(),Ix=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Sx=qu.Headers,Tx=qu.AbortController,_x=HB({fetch:Ix,Headers:Sx,AbortController:Tx}),xx={class:"file-upload"},Ox=["src"],Lx=["onClick"],Hx=["onClick"],kx=["for"],Nx=["innerHTML"],Dx={key:0,class:"file-upload__loading-spinner"},Mx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function Rx(t){return await new Promise(e=>{let A=new FileReader;A.onload=()=>e(A.result),A.readAsDataURL(t)})}const Kx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String,default:"Select file"},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,default:"image/*"},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}},emits:["update:modelValue","update:src"],setup(t,{emit:e}){const A=t,n=e,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>A.modelValue.length?A.modelValue:A.src?[{type:"",src:A.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:A.toDataUrl?await Rx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=A.multiple?f:f[0];n("update:modelValue",p),A.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const p=new FormData;p.append("file",f),s.value=!0;const B=await(A.customFetch||_x)(A.endpoint,{method:"POST",...A.customFetch?{}:{headers:{Accept:"application/json",...A.authToken?{Authorization:`Bearer ${A.authToken}`}:{}}},body:p}).catch(Q=>{console.error("Error",Q)});return s.value=!1,`${A.baseResponsePath==="/media"&&B.path.endsWith(".svg")?"/api/v1/assets":A.baseResponsePath}/${B.path}`}return(f,p)=>{const g=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",xx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(w,Q)=>(h.openBlock(),h.createElementBlock("div",{key:w.src,class:h.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,Ox),h.createElementVNode("button",{onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close"},[h.createVNode(g,{symbol:"x"})],8,Lx)],64)):(h.openBlock(),h.createElementBlock("button",{key:1,onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close btn-outline-dark"},[h.createVNode(g,{symbol:"x"})],8,Hx))],2))),128)),h.createVNode(B,{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(f.$slots,"button",{},()=>[h.createElementVNode("span",{class:"btn btn-outline-dark",innerHTML:t.label},null,8,Nx)]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[s.value?(h.openBlock(),h.createElementBlock("span",Dx,Mx)):h.createCommentVNode("",!0)]),_:1})],8,kx)])}}}),U3="",Vx={class:"upload-group"},Px=["innerHTML"],Gx={class:"upload-group__list"},Wx={class:"img-container"},$x=["src"],Jx=["onClick"],Xx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},kB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},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 A=t,n=e,r=h.ref(""),i=h.computed({get(){return A.modelValue},set(a){n("update:modelValue",a)}});function s(a){i.value.splice(a,1),n("update:modelValue",i.value)}return h.watch(r,(a,c)=>{a&&(n("update:modelValue",[...i.value,a]),r.value="")}),(a,c)=>{const u=h.resolveComponent("svg-icon"),f=h.resolveComponent("file-upload"),p=h.resolveComponent("sortable-list");return h.openBlock(),h.createElementBlock("div",Vx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,Px)):h.createCommentVNode("",!0),h.createElementVNode("div",Gx,[h.createVNode(p,{modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=g=>i.value=g),vertical:!1,class:"mb-3"},{"list-item":h.withCtx(({item:g,index:B})=>[h.createElementVNode("div",Wx,[h.createElementVNode("img",{src:`${g}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,$x),h.createElementVNode("button",{onClick:h.withModifiers(w=>s(B),["prevent"]),class:"btn btn--close"},[h.createVNode(u,{symbol:"x"})],8,Jx)])]),"list-append":h.withCtx(()=>[h.createVNode(f,{src:r.value,"onUpdate:src":c[0]||(c[0]=g=>r.value=g),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},{button:h.withCtx(()=>[h.createElementVNode("span",Xx,[h.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),v3="",Yx={class:"asset-uploader"},zx=["innerHTML"],qx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>dA()},id:{type:String,default:()=>dA()},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,default:"image/*"},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 A=t,n=e,r=h.computed({get(){return A.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:A.modelValue[a]&&A.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":A.mediaTypeMap[s.split(".")[1]],src:s,name:A.modelValue[a]&&A.modelValue[a].name||`${A.name}-${a}`,...A.type?{type:A.type}:{}})))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",Yx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,zx)):h.createCommentVNode("",!0),h.createVNode(kB,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[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},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),I3="",Zx={class:"carousel d-flex"},jx=["onClick"],NB=h.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 A=e,n=h.ref(),r=h.ref();function i(){n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth>0?n.value.scrollLeft-n.value.clientWidth:0,behavior:"smooth"})}function s(){console.log(n.value.clientWidth,n.value.scrollLeft),n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth<=r.value.clientWidth?n.value.scrollLeft+n.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(c){A("update:modelValue",c)}return(c,u)=>{const f=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",Zx,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:h.withModifiers(i,["prevent","stop"])},[h.createVNode(f,{symbol:"chevron-left"})])):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(p,g)=>h.renderSlot(c.$slots,"carousel-item",{key:p.src,item:p,index:g},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item",g===t.modelValue?"selected":""]),onClick:B=>a(g)},h.toDisplayString(p),11,jx)])),128))],512)],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(f,{symbol:"chevron-right"})])):h.createCommentVNode("",!0)])}}}),S3="",eO={class:"media-thumbnails"},AO=["onClick"],tO={class:"img-container"},nO=h.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 A=e,n=h.ref(-1);function r(i){A("update:modelValue",i),A("select",i)}return(i,s)=>{const a=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",eO,[h.createVNode(NB,{items:t.assets},{"carousel-item":h.withCtx(c=>[h.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:u=>r(c.index)},[h.createElementVNode("div",tO,[h.createVNode(a,{src:c.item.thumbnail||c.item.src,class:h.normalizeClass(["img-fluid",n.value===c.index?"is-active":""])},null,8,["src","class"])])],8,AO)]),_:1},8,["items"])])}}}),T3="",rO={class:"progress-steps"},iO={class:"progress-steps__list"},sO={class:"progress-step"},oO=["checked","id","value","disabled","read-only","required","onChange"],aO=["for"],lO=["innerHTML"],cO=["for"],uO=["innerHTML"],fO=h.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 A=t,n=e;function r(i){n("update:modelValue",i),i>=A.progress&&n("update:progress",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",rO,[h.createElementVNode("ul",iO,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(a,c)=>(h.openBlock(),h.createElementBlock("li",{key:c,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[h.renderSlot(i.$slots,"step",{},()=>[h.createElementVNode("div",sO,[h.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,oO),h.createElementVNode("label",{for:`step-${c}`},[h.renderSlot(i.$slots,"button",{step:a},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,lO)])],8,aO),h.createElementVNode("label",{for:`step-${c}`},[h.renderSlot(i.$slots,"label",{step:a},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,uO)])],8,cO)])])],2))),128))])]))}}),_3="";/*!
163
163
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
164
164
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
165
165
  * Released under MIT License
@@ -176,8 +176,8 @@ function print() { __p += __j.call(arguments, '') }
176
176
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
177
177
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
178
178
  PERFORMANCE OF THIS SOFTWARE.
179
- ***************************************************************************** */var Zu=function(t,e){return Zu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(A[r]=n[r])},Zu(t,e)};function ln(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Zu(t,e);function A(){this.constructor=t}t.prototype=e===null?Object.create(e):(A.prototype=e.prototype,new A)}var ju=function(){return ju=Object.assign||function(e){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},ju.apply(this,arguments)};function lt(t,e,A,n){function r(i){return i instanceof A?i:new A(function(s){s(i)})}return new(A||(A=Promise))(function(i,s){function a(f){try{u(n.next(f))}catch(p){s(p)}}function c(f){try{u(n.throw(f))}catch(p){s(p)}}function u(f){f.done?i(f.value):r(f.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function ZA(t,e){var A={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;A;)try{if(n=1,r&&(i=u[0]&2?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return A.label++,{value:u[1],done:!1};case 5:A.label++,r=u[1],u=[0];continue;case 7:u=A.ops.pop(),A.trys.pop();continue;default:if(i=A.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){A=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){A.label=u[1];break}if(u[0]===6&&A.label<i[1]){A.label=i[1],i=u;break}if(i&&A.label<i[2]){A.label=i[2],A.ops.push(u);break}i[2]&&A.ops.pop(),A.trys.pop();continue}u=e.call(t,A)}catch(f){u=[6,f],r=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function La(t,e,A){if(A||arguments.length===2)for(var n=0,r=e.length,i;n<r;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||e)}for(var Wn=function(){function t(e,A,n,r){this.left=e,this.top=A,this.width=n,this.height=r}return t.prototype.add=function(e,A,n,r){return new t(this.left+e,this.top+A,this.width+n,this.height+r)},t.fromClientRect=function(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)},t.fromDOMRectList=function(e,A){var n=Array.from(A).find(function(r){return r.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ha=function(t,e){return Wn.fromClientRect(t,e.getBoundingClientRect())},fO=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),r=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new Wn(0,0,n,r)},ka=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},wA=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},DB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Na=0;Na<DB.length;Na++)dO[DB.charCodeAt(Na)]=Na;for(var MB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Da=0;Da<MB.length;Da++)zs[MB.charCodeAt(Da)]=Da;for(var hO=function(t){var e=t.length*.75,A=t.length,n,r=0,i,s,a,c;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(n=0;n<A;n+=4)i=zs[t.charCodeAt(n)],s=zs[t.charCodeAt(n+1)],a=zs[t.charCodeAt(n+2)],c=zs[t.charCodeAt(n+3)],f[r++]=i<<2|s>>4,f[r++]=(s&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},pO=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},gO=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},ci=5,ef=6+5,Af=2,mO=ef-ci,RB=65536>>ci,BO=1<<ci,tf=BO-1,wO=1024>>ci,CO=RB+wO,yO=CO,EO=32,QO=yO+EO,FO=65536>>ef,bO=1<<mO,UO=bO-1,KB=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},vO=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},IO=function(t,e){var A=hO(t),n=Array.isArray(A)?gO(A):new Uint32Array(A),r=Array.isArray(A)?pO(A):new Uint16Array(A),i=24,s=KB(r,i/2,n[4]/2),a=n[5]===2?KB(r,(i+n[4])/2):vO(n,Math.ceil((i+n[4])/4));return new SO(n[0],n[1],n[2],n[3],s,a)},SO=function(){function t(e,A,n,r,i,s){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ci],A=(A<<Af)+(e&tf),this.data[A];if(e<=65535)return A=this.index[RB+(e-55296>>ci)],A=(A<<Af)+(e&tf),this.data[A];if(e<this.highStart)return A=QO-FO+(e>>ef),A=this.index[A],A+=e>>ci&UO,A=this.index[A],A=(A<<Af)+(e&tf),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),VB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",TO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ma=0;Ma<VB.length;Ma++)TO[VB.charCodeAt(Ma)]=Ma;var _O="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==",PB=50,xO=1,GB=2,WB=3,OO=4,LO=5,$B=7,JB=8,XB=9,Qr=10,nf=11,YB=12,rf=13,HO=14,qs=15,sf=16,Ra=17,Zs=18,kO=19,zB=20,of=21,js=22,af=23,Xi=24,Tt=25,eo=26,Ao=27,Yi=28,NO=29,ui=30,DO=31,Ka=32,Va=33,lf=34,cf=35,uf=36,to=37,ff=38,Pa=39,Ga=40,df=41,qB=42,MO=43,RO=[9001,65288],ZB="!",xe="×",Wa="÷",hf=IO(_O),$n=[ui,uf],pf=[xO,GB,WB,LO],jB=[Qr,JB],ew=[Ao,eo],KO=pf.concat(jB),Aw=[ff,Pa,Ga,lf,cf],VO=[qs,rf],PO=function(t,e){e===void 0&&(e="strict");var A=[],n=[],r=[];return t.forEach(function(i,s){var a=hf.get(i);if(a>PB?(r.push(!0),a-=PB):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),A.push(sf);if(a===OO||a===nf){if(s===0)return n.push(s),A.push(ui);var c=A[s-1];return KO.indexOf(c)===-1?(n.push(n[s-1]),A.push(c)):(n.push(s),A.push(ui))}if(n.push(s),a===DO)return A.push(e==="strict"?of:to);if(a===qB||a===NO)return A.push(ui);if(a===MO)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(to):A.push(ui);A.push(a)}),[n,A,r]},gf=function(t,e,A,n){var r=n[A];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var i=A;i<=n.length;){i++;var s=n[i];if(s===e)return!0;if(s!==Qr)break}if(r===Qr)for(var i=A;i>0;){i--;var a=n[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=A;c<=n.length;){c++;var s=n[c];if(s===e)return!0;if(s!==Qr)break}if(a!==Qr)break}return!1},tw=function(t,e){for(var A=t;A>=0;){var n=e[A];if(n===Qr)A--;else return n}return 0},GO=function(t,e,A,n,r){if(A[n]===0)return xe;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return xe;var s=i-1,a=i+1,c=e[i],u=s>=0?e[s]:0,f=e[a];if(c===GB&&f===WB)return xe;if(pf.indexOf(c)!==-1)return ZB;if(pf.indexOf(f)!==-1||jB.indexOf(f)!==-1)return xe;if(tw(i,e)===JB)return Wa;if(hf.get(t[i])===nf||(c===Ka||c===Va)&&hf.get(t[a])===nf||c===$B||f===$B||c===XB||[Qr,rf,qs].indexOf(c)===-1&&f===XB||[Ra,Zs,kO,Xi,Yi].indexOf(f)!==-1||tw(i,e)===js||gf(af,js,i,e)||gf([Ra,Zs],of,i,e)||gf(YB,YB,i,e))return xe;if(c===Qr)return Wa;if(c===af||f===af)return xe;if(f===sf||c===sf)return Wa;if([rf,qs,of].indexOf(f)!==-1||c===HO||u===uf&&VO.indexOf(c)!==-1||c===Yi&&f===uf||f===zB||$n.indexOf(f)!==-1&&c===Tt||$n.indexOf(c)!==-1&&f===Tt||c===Ao&&[to,Ka,Va].indexOf(f)!==-1||[to,Ka,Va].indexOf(c)!==-1&&f===eo||$n.indexOf(c)!==-1&&ew.indexOf(f)!==-1||ew.indexOf(c)!==-1&&$n.indexOf(f)!==-1||[Ao,eo].indexOf(c)!==-1&&(f===Tt||[js,qs].indexOf(f)!==-1&&e[a+1]===Tt)||[js,qs].indexOf(c)!==-1&&f===Tt||c===Tt&&[Tt,Yi,Xi].indexOf(f)!==-1)return xe;if([Tt,Yi,Xi,Ra,Zs].indexOf(f)!==-1)for(var p=i;p>=0;){var g=e[p];if(g===Tt)return xe;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if([Ao,eo].indexOf(f)!==-1)for(var p=[Ra,Zs].indexOf(c)!==-1?s:i;p>=0;){var g=e[p];if(g===Tt)return xe;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if(ff===c&&[ff,Pa,lf,cf].indexOf(f)!==-1||[Pa,lf].indexOf(c)!==-1&&[Pa,Ga].indexOf(f)!==-1||[Ga,cf].indexOf(c)!==-1&&f===Ga||Aw.indexOf(c)!==-1&&[zB,eo].indexOf(f)!==-1||Aw.indexOf(f)!==-1&&c===Ao||$n.indexOf(c)!==-1&&$n.indexOf(f)!==-1||c===Xi&&$n.indexOf(f)!==-1||$n.concat(Tt).indexOf(c)!==-1&&f===js&&RO.indexOf(t[a])===-1||$n.concat(Tt).indexOf(f)!==-1&&c===Zs)return xe;if(c===df&&f===df){for(var B=A[i],w=1;B>0&&(B--,e[B]===df);)w++;if(w%2!==0)return xe}return c===Ka&&f===Va?xe:Wa},WO=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=PO(t,e.lineBreak),n=A[0],r=A[1],i=A[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[Tt,ui,qB].indexOf(a)!==-1?to:a}));var s=e.wordBreak==="keep-all"?i.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[n,r,s]},$O=function(){function t(e,A,n,r){this.codePoints=e,this.required=A===ZB,this.start=n,this.end=r}return t.prototype.slice=function(){return wA.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),JO=function(t,e){var A=ka(t),n=WO(A,e),r=n[0],i=n[1],s=n[2],a=A.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=xe;u<a&&(f=GO(A,i,r,++u,s))===xe;);if(f!==xe||u===a){var p=new $O(A,f,c,u);return c=u,{value:p,done:!1}}return{done:!0,value:null}}}},XO=1,YO=2,no=4,nw=8,$a=10,rw=47,ro=92,zO=9,qO=32,Ja=34,io=61,ZO=35,jO=36,eL=37,Xa=39,Ya=40,so=41,AL=95,wt=45,tL=33,nL=60,rL=62,iL=64,sL=91,oL=93,aL=61,lL=123,za=63,cL=125,iw=124,uL=126,fL=128,sw=65533,mf=42,fi=43,dL=44,hL=58,pL=59,oo=46,gL=0,mL=8,BL=11,wL=14,CL=31,yL=127,Un=-1,ow=48,aw=97,lw=101,EL=102,QL=117,FL=122,cw=65,uw=69,fw=70,bL=85,UL=90,jA=function(t){return t>=ow&&t<=57},vL=function(t){return t>=55296&&t<=57343},zi=function(t){return jA(t)||t>=cw&&t<=fw||t>=aw&&t<=EL},IL=function(t){return t>=aw&&t<=FL},SL=function(t){return t>=cw&&t<=UL},TL=function(t){return IL(t)||SL(t)},_L=function(t){return t>=fL},qa=function(t){return t===$a||t===zO||t===qO},Za=function(t){return TL(t)||_L(t)||t===AL},dw=function(t){return Za(t)||jA(t)||t===wt},xL=function(t){return t>=gL&&t<=mL||t===BL||t>=wL&&t<=CL||t===yL},Fr=function(t,e){return t!==ro?!1:e!==$a},ja=function(t,e,A){return t===wt?Za(e)||Fr(e,A):Za(t)?!0:!!(t===ro&&Fr(t,e))},Bf=function(t,e,A){return t===fi||t===wt?jA(e)?!0:e===oo&&jA(A):jA(t===oo?e:t)},OL=function(t){var e=0,A=1;(t[e]===fi||t[e]===wt)&&(t[e]===wt&&(A=-1),e++);for(var n=[];jA(t[e]);)n.push(t[e++]);var r=n.length?parseInt(wA.apply(void 0,n),10):0;t[e]===oo&&e++;for(var i=[];jA(t[e]);)i.push(t[e++]);var s=i.length,a=s?parseInt(wA.apply(void 0,i),10):0;(t[e]===uw||t[e]===lw)&&e++;var c=1;(t[e]===fi||t[e]===wt)&&(t[e]===wt&&(c=-1),e++);for(var u=[];jA(t[e]);)u.push(t[e++]);var f=u.length?parseInt(wA.apply(void 0,u),10):0;return A*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},LL={type:2},HL={type:3},kL={type:4},NL={type:13},DL={type:8},ML={type:21},RL={type:9},KL={type:10},VL={type:11},PL={type:12},GL={type:14},el={type:23},WL={type:1},$L={type:25},JL={type:24},XL={type:26},YL={type:27},zL={type:28},qL={type:29},ZL={type:31},wf={type:32},hw=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(ka(e))},t.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==wf;)e.push(A),A=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Ja:return this.consumeStringToken(Ja);case ZO:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(dw(A)||Fr(n,r)){var i=ja(A,n,r)?YO:XO,s=this.consumeName();return{type:5,value:s,flags:i}}break;case jO:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),NL;break;case Xa:return this.consumeStringToken(Xa);case Ya:return LL;case so:return HL;case mf:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),GL;break;case fi:if(Bf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case dL:return kL;case wt:var a=e,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Bf(a,c,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ja(a,c,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===wt&&u===rL)return this.consumeCodePoint(),this.consumeCodePoint(),JL;break;case oo:if(Bf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case rw:if(this.peekCodePoint(0)===mf)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===mf&&(f=this.consumeCodePoint(),f===rw))return this.consumeToken();if(f===Un)return this.consumeToken()}break;case hL:return XL;case pL:return YL;case nL:if(this.peekCodePoint(0)===tL&&this.peekCodePoint(1)===wt&&this.peekCodePoint(2)===wt)return this.consumeCodePoint(),this.consumeCodePoint(),$L;break;case iL:var p=this.peekCodePoint(0),g=this.peekCodePoint(1),B=this.peekCodePoint(2);if(ja(p,g,B)){var s=this.consumeName();return{type:7,value:s}}break;case sL:return zL;case ro:if(Fr(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case oL:return qL;case aL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),DL;break;case lL:return VL;case cL:return PL;case QL:case bL:var w=this.peekCodePoint(0),Q=this.peekCodePoint(1);return w===fi&&(zi(Q)||Q===za)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case iw:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),RL;if(this.peekCodePoint(0)===iw)return this.consumeCodePoint(),ML;break;case uL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),KL;break;case Un:return wf}return qa(e)?(this.consumeWhiteSpace(),ZL):jA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Za(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:wA(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=[],A=this.consumeCodePoint();zi(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var n=!1;A===za&&e.length<6;)e.push(A),A=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(wA.apply(void 0,e.map(function(c){return c===za?ow:c})),16),i=parseInt(wA.apply(void 0,e.map(function(c){return c===za?fw:c})),16);return{type:30,start:r,end:i}}var s=parseInt(wA.apply(void 0,e),16);if(this.peekCodePoint(0)===wt&&zi(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var a=[];zi(A)&&a.length<6;)a.push(A),A=this.consumeCodePoint();var i=parseInt(wA.apply(void 0,a),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Xa||A===Ja){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),el)}for(;;){var r=this.consumeCodePoint();if(r===Un||r===so)return{type:22,value:wA.apply(void 0,e)};if(qa(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so?(this.consumeCodePoint(),{type:22,value:wA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),el);if(r===Ja||r===Xa||r===Ya||xL(r))return this.consumeBadUrlRemnants(),el;if(r===ro)if(Fr(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),el;else e.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;qa(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===so||e===Un)return;Fr(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var A=5e4,n="";e>0;){var r=Math.min(A,e);n+=wA.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var A="",n=0;do{var r=this._value[n];if(r===Un||r===void 0||r===e)return A+=this.consumeStringSlice(n),{type:0,value:A};if(r===$a)return this._value.splice(0,n),WL;if(r===ro){var i=this._value[n+1];i!==Un&&i!==void 0&&(i===$a?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):Fr(r,i)&&(A+=this.consumeStringSlice(n),A+=wA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],A=no,n=this.peekCodePoint(0);for((n===fi||n===wt)&&e.push(this.consumeCodePoint());jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===oo&&jA(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=nw;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===uw||n===lw)&&((r===fi||r===wt)&&jA(i)||jA(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=nw;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[OL(e),A]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(ja(r,i,s)){var a=this.consumeName();return{type:15,number:A,flags:n,unit:a}}return r===eL?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(zi(e)){for(var A=wA(e);zi(this.peekCodePoint(0))&&A.length<6;)A+=wA(this.consumeCodePoint());qa(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||vL(n)||n>1114111?sw:n}return e===Un?sw:e},t.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(dw(A))e+=wA(A);else if(Fr(A,this.peekCodePoint(0)))e+=wA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),e}},t}(),pw=function(){function t(e){this._tokens=e}return t.create=function(e){var A=new hw;return A.write(e),new t(A.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 A=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(A.type===32)return e;e.push(A),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 A={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||eH(n,e))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?wf:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),ao=function(t){return t.type===15},qi=function(t){return t.type===17},je=function(t){return t.type===20},jL=function(t){return t.type===0},Cf=function(t,e){return je(t)&&t.value===e},gw=function(t){return t.type!==31},Zi=function(t){return t.type!==31&&t.type!==4},vn=function(t){var e=[],A=[];return t.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&e.push(A),e},eH=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},br=function(t){return t.type===17||t.type===15},UA=function(t){return t.type===16||br(t)},mw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},VA={type:17,number:0,flags:no},yf={type:16,number:50,flags:no},Ur={type:16,number:100,flags:no},lo=function(t,e,A){var n=t[0],r=t[1];return[sA(n,e),sA(typeof r<"u"?r:n,A)]},sA=function(t,e){if(t.type===16)return t.number/100*e;if(ao(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Bw="deg",ww="grad",Cw="rad",yw="turn",Al={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Bw:return Math.PI*e.number/180;case ww:return Math.PI/200*e.number;case Cw:return e.number;case yw:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ew=function(t){return t.type===15&&(t.unit===Bw||t.unit===ww||t.unit===Cw||t.unit===yw)},Qw=function(t){var e=t.filter(je).map(function(A){return A.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[VA,VA];case"to top":case"bottom":return Pt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[VA,Ur];case"to right":case"left":return Pt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ur,Ur];case"to bottom":case"top":return Pt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ur,VA];case"to left":case"right":return Pt(270)}return 0},Pt=function(t){return Math.PI*t/180},vr={name:"color",parse:function(t,e){if(e.type===18){var A=AH[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3),s=e.value.substring(3,4);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),s=e.value.substring(6,8);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(e.type===20){var a=Jn[e.value.toUpperCase()];if(typeof a<"u")return a}return Jn.TRANSPARENT}},Ir=function(t){return(255&t)===0},NA=function(t){var e=255&t,A=255&t>>8,n=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+n+","+A+","+e/255+")":"rgb("+r+","+n+","+A+")"},Sr=function(t,e,A,n){return(t<<24|e<<16|A<<8|Math.round(n*255)<<0)>>>0},Fw=function(t,e){if(t.type===17)return t.number;if(t.type===16){var A=e===3?1:255;return e===3?t.number/100*A:Math.round(t.number/100*A)}return 0},bw=function(t,e){var A=e.filter(Zi);if(A.length===3){var n=A.map(Fw),r=n[0],i=n[1],s=n[2];return Sr(r,i,s,1)}if(A.length===4){var a=A.map(Fw),r=a[0],i=a[1],s=a[2],c=a[3];return Sr(r,i,s,c)}return 0};function Ef(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<1/2?e:A<2/3?(e-t)*6*(2/3-A)+t:t}var Uw=function(t,e){var A=e.filter(Zi),n=A[0],r=A[1],i=A[2],s=A[3],a=(n.type===17?Pt(n.number):Al.parse(t,n))/(Math.PI*2),c=UA(r)?r.number/100:0,u=UA(i)?i.number/100:0,f=typeof s<"u"&&UA(s)?sA(s,1):1;if(c===0)return Sr(u*255,u*255,u*255,1);var p=u<=.5?u*(c+1):u+c-u*c,g=u*2-p,B=Ef(g,p,a+1/3),w=Ef(g,p,a),Q=Ef(g,p,a-1/3);return Sr(B*255,w*255,Q*255,f)},AH={hsl:Uw,hsla:Uw,rgb:bw,rgba:bw},co=function(t,e){return vr.parse(t,pw.create(e).parseComponentValue())},Jn={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},tH={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(je(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},nH={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tl=function(t,e){var A=vr.parse(t,e[0]),n=e[1];return n&&UA(n)?{color:A,stop:n}:{color:A,stop:null}},vw=function(t,e){var A=t[0],n=t[t.length-1];A.stop===null&&(A.stop=VA),n.stop===null&&(n.stop=Ur);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=sA(a,e);c>i?r.push(c):r.push(i),i=c}else r.push(null)}for(var u=null,s=0;s<r.length;s++){var f=r[s];if(f===null)u===null&&(u=s);else if(u!==null){for(var p=s-u,g=r[u-1],B=(f-g)/(p+1),w=1;w<=p;w++)r[u+w-1]=B*w;u=null}}return t.map(function(Q,b){var v=Q.color;return{color:v,stop:Math.max(Math.min(1,r[b]/e),0)}})},rH=function(t,e,A){var n=e/2,r=A/2,i=sA(t[0],e)-n,s=r-sA(t[1],A);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},iH=function(t,e,A){var n=typeof t=="number"?t:rH(t,e,A),r=Math.abs(e*Math.sin(n))+Math.abs(A*Math.cos(n)),i=e/2,s=A/2,a=r/2,c=Math.sin(n-Math.PI/2)*a,u=Math.cos(n-Math.PI/2)*a;return[r,i-u,i+u,s-c,s+c]},cn=function(t,e){return Math.sqrt(t*t+e*e)},Iw=function(t,e,A,n,r){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(s,a){var c=a[0],u=a[1],f=cn(A-c,n-u);return(r?f<s.optimumDistance:f>s.optimumDistance)?{optimumCorner:a,optimumDistance:f}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},sH=function(t,e,A,n,r){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),s=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(t.shape===0)i=s=Math.min(cn(e,A),cn(e,A-r),cn(e-n,A),cn(e-n,A-r));else if(t.shape===1){var a=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(e),Math.abs(e-n)),c=Iw(n,r,e,A,!0),u=c[0],f=c[1];i=cn(u-e,(f-A)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),s=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(t.shape===0)i=s=Math.max(cn(e,A),cn(e,A-r),cn(e-n,A),cn(e-n,A-r));else if(t.shape===1){var a=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(e),Math.abs(e-n)),p=Iw(n,r,e,A,!1),u=p[0],f=p[1];i=cn(u-e,(f-A)/a),s=a*i}break}return Array.isArray(t.size)&&(i=sA(t.size[0],n),s=t.size.length===2?sA(t.size[1],r):i),[i,s]},oH=function(t,e){var A=Pt(180),n=[];return vn(e).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){A=Qw(r);return}else if(Ew(s)){A=Al.parse(t,s);return}}var a=tl(t,r);n.push(a)}),{angle:A,stops:n,type:1}},nl=function(t,e){var A=Pt(180),n=[];return vn(e).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=Qw(r);return}else if(Ew(s)){A=(Al.parse(t,s)+Pt(270))%Pt(360);return}}var a=tl(t,r);n.push(a)}),{angle:A,stops:n,type:1}},aH=function(t,e){var A=Pt(180),n=[],r=1,i=0,s=3,a=[];return vn(e).forEach(function(c,u){var f=c[0];if(u===0){if(je(f)&&f.value==="linear"){r=1;return}else if(je(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var p=vr.parse(t,f.values[0]);n.push({stop:VA,color:p})}else if(f.name==="to"){var p=vr.parse(t,f.values[0]);n.push({stop:Ur,color:p})}else if(f.name==="color-stop"){var g=f.values.filter(Zi);if(g.length===2){var p=vr.parse(t,g[1]),B=g[0];qi(B)&&n.push({stop:{type:16,number:B.number*100,flags:B.flags},color:p})}}}}),r===1?{angle:(A+Pt(180))%Pt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},Sw="closest-side",Tw="farthest-side",_w="closest-corner",xw="farthest-corner",Ow="circle",Lw="ellipse",Hw="cover",kw="contain",lH=function(t,e){var A=0,n=3,r=[],i=[];return vn(e).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,g){if(u)if(je(g))switch(g.value){case"center":return i.push(yf),p;case"top":case"left":return i.push(VA),p;case"right":case"bottom":return i.push(Ur),p}else(UA(g)||br(g))&&i.push(g);else if(je(g))switch(g.value){case Ow:return A=0,!1;case Lw:return A=1,!1;case"at":return u=!0,!1;case Sw:return n=0,!1;case Hw:case Tw:return n=1,!1;case kw:case _w:return n=2,!1;case xw:return n=3,!1}else if(br(g)||UA(g))return Array.isArray(n)||(n=[]),n.push(g),!1;return p},c)}if(c){var f=tl(t,s);r.push(f)}}),{size:n,shape:A,stops:r,position:i,type:2}},rl=function(t,e){var A=0,n=3,r=[],i=[];return vn(e).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(f,p){if(je(p))switch(p.value){case"center":return i.push(yf),!1;case"top":case"left":return i.push(VA),!1;case"right":case"bottom":return i.push(Ur),!1}else if(UA(p)||br(p))return i.push(p),!1;return f},c):a===1&&(c=s.reduce(function(f,p){if(je(p))switch(p.value){case Ow:return A=0,!1;case Lw:return A=1,!1;case kw:case Sw:return n=0,!1;case Tw:return n=1,!1;case _w:return n=2,!1;case Hw:case xw:return n=3,!1}else if(br(p)||UA(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return f},c)),c){var u=tl(t,s);r.push(u)}}),{size:n,shape:A,stops:r,position:i,type:2}},cH=function(t){return t.type===1},uH=function(t){return t.type===2},Qf={name:"image",parse:function(t,e){if(e.type===22){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(e.type===18){var n=Nw[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function fH(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Nw[t.name])}var Nw={"linear-gradient":oH,"-moz-linear-gradient":nl,"-ms-linear-gradient":nl,"-o-linear-gradient":nl,"-webkit-linear-gradient":nl,"radial-gradient":lH,"-moz-radial-gradient":rl,"-ms-radial-gradient":rl,"-o-radial-gradient":rl,"-webkit-radial-gradient":rl,"-webkit-gradient":aH},dH={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e.filter(function(n){return Zi(n)&&fH(n)}).map(function(n){return Qf.parse(t,n)})}},hH={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(je(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},pH={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return vn(e).map(function(A){return A.filter(UA)}).map(mw)}},gH={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return vn(e).map(function(A){return A.filter(je).map(function(n){return n.value}).join(" ")}).map(mH)}},mH=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}},ji;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ji||(ji={}));var BH={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return vn(e).map(function(A){return A.filter(wH)})}},wH=function(t){return je(t)||UA(t)},il=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},CH=il("top"),yH=il("right"),EH=il("bottom"),QH=il("left"),sl=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return mw(A.filter(UA))}}},FH=sl("top-left"),bH=sl("top-right"),UH=sl("bottom-right"),vH=sl("bottom-left"),ol=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},IH=ol("top"),SH=ol("right"),TH=ol("bottom"),_H=ol("left"),al=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return ao(A)?A.number:0}}},xH=al("top"),OH=al("right"),LH=al("bottom"),HH=al("left"),kH={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},NH={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},DH={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(je).reduce(function(A,n){return A|MH(n.value)},0)}},MH=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},RH={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}},KH={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}},ll;(function(t){t.NORMAL="normal",t.STRICT="strict"})(ll||(ll={}));var VH={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return ll.STRICT;case"normal":default:return ll.NORMAL}}},PH={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dw=function(t,e){return je(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:UA(t)?sA(t,e):e},GH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:Qf.parse(t,e)}},WH={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}}},Ff={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}}},cl=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},$H=cl("top"),JH=cl("right"),XH=cl("bottom"),YH=cl("left"),zH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(je).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},qH={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"}}},ul=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ZH=ul("top"),jH=ul("right"),ek=ul("bottom"),Ak=ul("left"),tk={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}}},nk={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}},rk={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Cf(e[0],"none")?[]:vn(e).map(function(A){for(var n={color:Jn.TRANSPARENT,offsetX:VA,offsetY:VA,blur:VA},r=0,i=0;i<A.length;i++){var s=A[i];br(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:n.blur=s,r++):n.color=vr.parse(t,s)}return n})}},ik={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}},sk={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 A=lk[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return A(e.values)}return null}},ok=function(t){var e=t.filter(function(A){return A.type===17}).map(function(A){return A.number});return e.length===6?e:null},ak=function(t){var e=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),A=e[0],n=e[1];e[2],e[3];var r=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],a=e[13];return e[14],e[15],e.length===16?[A,n,r,i,s,a]:null},lk={matrix:ok,matrix3d:ak},Mw={type:16,number:50,flags:no},ck=[Mw,Mw],uk={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var A=e.filter(UA);return A.length!==2?ck:[A[0],A[1]]}},fk={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}}},uo;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(uo||(uo={}));for(var dk={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return uo.BREAK_ALL;case"keep-all":return uo.KEEP_ALL;case"normal":default:return uo.NORMAL}}},hk={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(qi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Rw={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")}},pk={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return qi(e)?e.number:1}},gk={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},mk={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(je).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},Bk={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var A=[],n=[];return e.forEach(function(r){switch(r.type){case 20:case 0:A.push(r.value);break;case 17:A.push(r.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},wk={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ck={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(qi(e))return e.number;if(je(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},yk={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(je).map(function(A){return A.value})}},Ek={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"}}},SA=function(t,e){return(t&e)!==0},Qk={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e}},Fk={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;for(var n=[],r=e.filter(gw),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&qi(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},bk={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var A=[],n=e.filter(gw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(je(i)&&i.value!=="none"){var a=s&&qi(s)?s.number:0;A.push({counter:i.value,reset:a})}}return A}},Uk={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(ao).map(function(A){return Rw.parse(t,A)})}},vk={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;var n=[],r=e.filter(jL);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var s=r[i].value,a=r[i+1].value;n.push({open:s,close:a})}return n}},Kw=function(t,e,A){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?A?n.open:n.close:""},Ik={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Cf(e[0],"none")?[]:vn(e).map(function(A){for(var n={color:255,offsetX:VA,offsetY:VA,blur:VA,spread:VA,inset:!1},r=0,i=0;i<A.length;i++){var s=A[i];Cf(s,"inset")?n.inset=!0:br(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:r===2?n.blur=s:n.spread=s,r++):n.color=vr.parse(t,s)}return n})}},Sk={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var A=[0,1,2],n=[];return e.filter(je).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),A.forEach(function(r){n.indexOf(r)===-1&&n.push(r)}),n}},Tk={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},_k={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return ao(e)?e.number:0}},xk=function(){function t(e,A){var n,r;this.animationDuration=ee(e,Uk,A.animationDuration),this.backgroundClip=ee(e,tH,A.backgroundClip),this.backgroundColor=ee(e,nH,A.backgroundColor),this.backgroundImage=ee(e,dH,A.backgroundImage),this.backgroundOrigin=ee(e,hH,A.backgroundOrigin),this.backgroundPosition=ee(e,pH,A.backgroundPosition),this.backgroundRepeat=ee(e,gH,A.backgroundRepeat),this.backgroundSize=ee(e,BH,A.backgroundSize),this.borderTopColor=ee(e,CH,A.borderTopColor),this.borderRightColor=ee(e,yH,A.borderRightColor),this.borderBottomColor=ee(e,EH,A.borderBottomColor),this.borderLeftColor=ee(e,QH,A.borderLeftColor),this.borderTopLeftRadius=ee(e,FH,A.borderTopLeftRadius),this.borderTopRightRadius=ee(e,bH,A.borderTopRightRadius),this.borderBottomRightRadius=ee(e,UH,A.borderBottomRightRadius),this.borderBottomLeftRadius=ee(e,vH,A.borderBottomLeftRadius),this.borderTopStyle=ee(e,IH,A.borderTopStyle),this.borderRightStyle=ee(e,SH,A.borderRightStyle),this.borderBottomStyle=ee(e,TH,A.borderBottomStyle),this.borderLeftStyle=ee(e,_H,A.borderLeftStyle),this.borderTopWidth=ee(e,xH,A.borderTopWidth),this.borderRightWidth=ee(e,OH,A.borderRightWidth),this.borderBottomWidth=ee(e,LH,A.borderBottomWidth),this.borderLeftWidth=ee(e,HH,A.borderLeftWidth),this.boxShadow=ee(e,Ik,A.boxShadow),this.color=ee(e,kH,A.color),this.direction=ee(e,NH,A.direction),this.display=ee(e,DH,A.display),this.float=ee(e,RH,A.cssFloat),this.fontFamily=ee(e,Bk,A.fontFamily),this.fontSize=ee(e,wk,A.fontSize),this.fontStyle=ee(e,Ek,A.fontStyle),this.fontVariant=ee(e,yk,A.fontVariant),this.fontWeight=ee(e,Ck,A.fontWeight),this.letterSpacing=ee(e,KH,A.letterSpacing),this.lineBreak=ee(e,VH,A.lineBreak),this.lineHeight=ee(e,PH,A.lineHeight),this.listStyleImage=ee(e,GH,A.listStyleImage),this.listStylePosition=ee(e,WH,A.listStylePosition),this.listStyleType=ee(e,Ff,A.listStyleType),this.marginTop=ee(e,$H,A.marginTop),this.marginRight=ee(e,JH,A.marginRight),this.marginBottom=ee(e,XH,A.marginBottom),this.marginLeft=ee(e,YH,A.marginLeft),this.opacity=ee(e,pk,A.opacity);var i=ee(e,zH,A.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=ee(e,qH,A.overflowWrap),this.paddingTop=ee(e,ZH,A.paddingTop),this.paddingRight=ee(e,jH,A.paddingRight),this.paddingBottom=ee(e,ek,A.paddingBottom),this.paddingLeft=ee(e,Ak,A.paddingLeft),this.paintOrder=ee(e,Sk,A.paintOrder),this.position=ee(e,nk,A.position),this.textAlign=ee(e,tk,A.textAlign),this.textDecorationColor=ee(e,gk,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=ee(e,mk,(r=A.textDecorationLine)!==null&&r!==void 0?r:A.textDecoration),this.textShadow=ee(e,rk,A.textShadow),this.textTransform=ee(e,ik,A.textTransform),this.transform=ee(e,sk,A.transform),this.transformOrigin=ee(e,uk,A.transformOrigin),this.visibility=ee(e,fk,A.visibility),this.webkitTextStrokeColor=ee(e,Tk,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=ee(e,_k,A.webkitTextStrokeWidth),this.wordBreak=ee(e,dk,A.wordBreak),this.zIndex=ee(e,hk,A.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Ir(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 SA(this.display,4)||SA(this.display,33554432)||SA(this.display,268435456)||SA(this.display,536870912)||SA(this.display,67108864)||SA(this.display,134217728)},t}(),Ok=function(){function t(e,A){this.content=ee(e,Qk,A.content),this.quotes=ee(e,vk,A.quotes)}return t}(),Vw=function(){function t(e,A){this.counterIncrement=ee(e,Fk,A.counterIncrement),this.counterReset=ee(e,bk,A.counterReset)}return t}(),ee=function(t,e,A){var n=new hw,r=A!==null&&typeof A<"u"?A.toString():e.initialValue;n.write(r);var i=new pw(n.read());switch(e.type){case 2:var s=i.parseComponentValue();return e.parse(t,je(s)?s.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Al.parse(t,i.parseComponentValue());case"color":return vr.parse(t,i.parseComponentValue());case"image":return Qf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return br(a)?a:VA;case"length-percentage":var c=i.parseComponentValue();return UA(c)?c:VA;case"time":return Rw.parse(t,i.parseComponentValue())}break}},Lk="data-html2canvas-debug",Hk=function(t){var e=t.getAttribute(Lk);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},bf=function(t,e){var A=Hk(t);return A===1||e===A},In=function(){function t(e,A){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,bf(A,3))debugger;this.styles=new xk(e,window.getComputedStyle(A,null)),Mf(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Ha(this.context,A),bf(A,4)&&(this.flags|=16)}return t}(),kk="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Pw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fo=typeof Uint8Array>"u"?[]:new Uint8Array(256),fl=0;fl<Pw.length;fl++)fo[Pw.charCodeAt(fl)]=fl;for(var Nk=function(t){var e=t.length*.75,A=t.length,n,r=0,i,s,a,c;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(n=0;n<A;n+=4)i=fo[t.charCodeAt(n)],s=fo[t.charCodeAt(n+1)],a=fo[t.charCodeAt(n+2)],c=fo[t.charCodeAt(n+3)],f[r++]=i<<2|s>>4,f[r++]=(s&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},Dk=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},Mk=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},di=5,Uf=6+5,vf=2,Rk=Uf-di,Gw=65536>>di,Kk=1<<di,If=Kk-1,Vk=1024>>di,Pk=Gw+Vk,Gk=Pk,Wk=32,$k=Gk+Wk,Jk=65536>>Uf,Xk=1<<Rk,Yk=Xk-1,Ww=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},zk=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},qk=function(t,e){var A=Nk(t),n=Array.isArray(A)?Mk(A):new Uint32Array(A),r=Array.isArray(A)?Dk(A):new Uint16Array(A),i=24,s=Ww(r,i/2,n[4]/2),a=n[5]===2?Ww(r,(i+n[4])/2):zk(n,Math.ceil((i+n[4])/4));return new Zk(n[0],n[1],n[2],n[3],s,a)},Zk=function(){function t(e,A,n,r,i,s){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>di],A=(A<<vf)+(e&If),this.data[A];if(e<=65535)return A=this.index[Gw+(e-55296>>di)],A=(A<<vf)+(e&If),this.data[A];if(e<this.highStart)return A=$k-Jk+(e>>Uf),A=this.index[A],A+=e>>di&Yk,A=this.index[A],A=(A<<vf)+(e&If),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),$w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jk=typeof Uint8Array>"u"?[]:new Uint8Array(256),dl=0;dl<$w.length;dl++)jk[$w.charCodeAt(dl)]=dl;var eN=1,Sf=2,Tf=3,Jw=4,Xw=5,AN=7,Yw=8,_f=9,xf=10,zw=11,qw=12,Zw=13,jw=14,Of=15,tN=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},nN=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},rN=qk(kk),Gt="×",Lf="÷",iN=function(t){return rN.get(t)},sN=function(t,e,A){var n=A-2,r=e[n],i=e[A-1],s=e[A];if(i===Sf&&s===Tf)return Gt;if(i===Sf||i===Tf||i===Jw||s===Sf||s===Tf||s===Jw)return Lf;if(i===Yw&&[Yw,_f,zw,qw].indexOf(s)!==-1||(i===zw||i===_f)&&(s===_f||s===xf)||(i===qw||i===xf)&&s===xf||s===Zw||s===Xw||s===AN||i===eN)return Gt;if(i===Zw&&s===jw){for(;r===Xw;)r=e[--n];if(r===jw)return Gt}if(i===Of&&s===Of){for(var a=0;r===Of;)a++,r=e[--n];if(a%2===0)return Gt}return Lf},oN=function(t){var e=tN(t),A=e.length,n=0,r=0,i=e.map(iN);return{next:function(){if(n>=A)return{done:!0,value:null};for(var s=Gt;n<A&&(s=sN(e,i,++n))===Gt;);if(s!==Gt||n===A){var a=nN.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},aN=function(t){for(var e=oN(t),A=[],n;!(n=e.next()).done;)n.value&&A.push(n.value.slice());return A},lN=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),A.selectNode(n);var r=A.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===e)return!0}}return!1},cN=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 A=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,r=ka(n.data).map(function(c){return wA(c)}),i=0,s={},a=r.every(function(c,u){A.setStart(n,i),A.setEnd(n,i+c.length);var f=A.getBoundingClientRect();i+=c.length;var p=f.x>s.x||f.y>s.y;return s=f,u===0?!0:p});return t.body.removeChild(e),a},uN=function(){return typeof new Image().crossOrigin<"u"},fN=function(){return typeof new XMLHttpRequest().responseType=="string"},dN=function(t){var e=new Image,A=t.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),A.toDataURL()}catch{return!1}return!0},eC=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},hN=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=e.toDataURL();r.src=i;var s=Hf(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),AC(s).then(function(a){n.drawImage(a,0,0);var c=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=A+"px",eC(c)?AC(Hf(A,A,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),eC(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},Hf=function(t,e,A,n,r){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(r),s},AC=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){return e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},PA={get SUPPORT_RANGE_BOUNDS(){var t=lN(document);return Object.defineProperty(PA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=PA.SUPPORT_RANGE_BOUNDS&&cN(document);return Object.defineProperty(PA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=dN(document);return Object.defineProperty(PA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?hN(document):Promise.resolve(!1);return Object.defineProperty(PA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=uN();return Object.defineProperty(PA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=fN();return Object.defineProperty(PA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(PA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(PA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},ho=function(){function t(e,A){this.text=e,this.bounds=A}return t}(),pN=function(t,e,A,n){var r=BN(e,A),i=[],s=0;return r.forEach(function(a){if(A.textDecorationLine.length||a.trim().length>0)if(PA.SUPPORT_RANGE_BOUNDS){var c=tC(n,s,a.length).getClientRects();if(c.length>1){var u=kf(a),f=0;u.forEach(function(g){i.push(new ho(g,Wn.fromDOMRectList(t,tC(n,f+s,g.length).getClientRects()))),f+=g.length})}else i.push(new ho(a,Wn.fromDOMRectList(t,c)))}else{var p=n.splitText(a.length);i.push(new ho(a,gN(t,n))),n=p}else PA.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},gN=function(t,e){var A=e.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=Ha(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return Wn.EMPTY},tC=function(t,e,A){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,e),r.setEnd(t,e+A),r},kf=function(t){if(PA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(A){return A.segment})}return aN(t)},mN=function(t,e){if(PA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map(function(n){return n.segment})}return CN(t,e)},BN=function(t,e){return e.letterSpacing!==0?kf(t):mN(t,e)},wN=[32,160,4961,65792,65793,4153,4241],CN=function(t,e){for(var A=JO(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),a=ka(s),c="";a.forEach(function(u){wN.indexOf(u)===-1?c+=wA(u):(c.length&&n.push(c),n.push(wA(u)),c="")}),c.length&&n.push(c)}};!(r=A.next()).done;)i();return n},yN=function(){function t(e,A,n){this.text=EN(A.data,n.textTransform),this.textBounds=pN(e,this.text,n,A)}return t}(),EN=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(QN,FN);case 2:return t.toUpperCase();default:return t}},QN=/(^|\s|:|-|\(|\))([a-z])/g,FN=function(t,e,A){return t.length>0?e+A.toUpperCase():t},nC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e}(In),rC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e}(In),iC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=new XMLSerializer,s=Ha(A,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e}(In),sC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(In),Nf=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return e}(In),bN=[{type:15,flags:0,unit:"px",number:3}],UN=[{type:16,flags:0,number:50}],vN=function(t){return t.width>t.height?new Wn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Wn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},IN=function(t){var e=t.type===SN?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},hl="checkbox",pl="radio",SN="password",oC=707406591,Df=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=IN(n),(r.type===hl||r.type===pl)&&(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=vN(r.bounds)),r.type){case hl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=bN;break;case pl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=UN;break}return r}return e}(In),aC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e}(In),lC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(In),cC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=fC(A,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?co(A,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Jn.TRANSPARENT,s=n.contentWindow.document.body?co(A,getComputedStyle(n.contentWindow.document.body).backgroundColor):Jn.TRANSPARENT;r.backgroundColor=Ir(i)?Ir(s)?r.styles.backgroundColor:s:i}}catch{}return r}return e}(In),TN=["OL","UL","MENU"],gl=function(t,e,A,n){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,dC(r)&&r.data.trim().length>0)A.textNodes.push(new yN(t,r,A.styles));else if(es(r))if(wC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return gl(t,a,A,n)});else{var s=uC(t,r);s.styles.isVisible()&&(_N(r,s,n)?s.flags|=4:xN(s.styles)&&(s.flags|=2),TN.indexOf(r.tagName)!==-1&&(s.flags|=8),A.elements.push(s),r.slot,r.shadowRoot?gl(t,r.shadowRoot,s,n):!Bl(r)&&!hC(r)&&!wl(r)&&gl(t,r,s,n))}},uC=function(t,e){return Kf(e)?new nC(t,e):pC(e)?new rC(t,e):hC(e)?new iC(t,e):ON(e)?new sC(t,e):LN(e)?new Nf(t,e):HN(e)?new Df(t,e):wl(e)?new aC(t,e):Bl(e)?new lC(t,e):mC(e)?new cC(t,e):new In(t,e)},fC=function(t,e){var A=uC(t,e);return A.flags|=4,gl(t,e,A,A),A},_N=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Rf(t)&&A.styles.isTransparent()},xN=function(t){return t.isPositioned()||t.isFloating()},dC=function(t){return t.nodeType===Node.TEXT_NODE},es=function(t){return t.nodeType===Node.ELEMENT_NODE},Mf=function(t){return es(t)&&typeof t.style<"u"&&!ml(t)},ml=function(t){return typeof t.className=="object"},ON=function(t){return t.tagName==="LI"},LN=function(t){return t.tagName==="OL"},HN=function(t){return t.tagName==="INPUT"},kN=function(t){return t.tagName==="HTML"},hC=function(t){return t.tagName==="svg"},Rf=function(t){return t.tagName==="BODY"},pC=function(t){return t.tagName==="CANVAS"},gC=function(t){return t.tagName==="VIDEO"},Kf=function(t){return t.tagName==="IMG"},mC=function(t){return t.tagName==="IFRAME"},BC=function(t){return t.tagName==="STYLE"},NN=function(t){return t.tagName==="SCRIPT"},Bl=function(t){return t.tagName==="TEXTAREA"},wl=function(t){return t.tagName==="SELECT"},wC=function(t){return t.tagName==="SLOT"},CC=function(t){return t.tagName.indexOf("-")>0},DN=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},t.prototype.getCounterValues=function(e){var A=this.counters[e];return A||[]},t.prototype.pop=function(e){var A=this;e.forEach(function(n){return A.counters[n].pop()})},t.prototype.parse=function(e){var A=this,n=e.counterIncrement,r=e.counterReset,i=!0;n!==null&&n.forEach(function(a){var c=A.counters[a.counter];c&&a.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=a.increment)});var s=[];return i&&r.forEach(function(a){var c=A.counters[a.counter];s.push(a.counter),c||(c=A.counters[a.counter]=[]),c.push(a.reset)}),s},t}(),yC={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"]},EC={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},MN={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},RN={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},As=function(t,e,A,n,r,i){return t<e||t>A?go(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},QC=function(t,e,A,n){var r="";do A||t--,r=n(t)+r,t/=e;while(t*e>=e);return r},CA=function(t,e,A,n,r){var i=A-e+1;return(t<0?"-":"")+(QC(Math.abs(t),i,n,function(s){return wA(Math.floor(s%i)+e)})+r)},hi=function(t,e,A){A===void 0&&(A=". ");var n=e.length;return QC(Math.abs(t),n,!1,function(r){return e[Math.floor(r%n)]})+A},ts=1,Tr=2,_r=4,po=8,Xn=function(t,e,A,n,r,i){if(t<-9999||t>9999)return go(t,4,r.length>0);var s=Math.abs(t),a=r;if(s===0)return e[0]+a;for(var c=0;s>0&&c<=4;c++){var u=s%10;u===0&&SA(i,ts)&&a!==""?a=e[u]+a:u>1||u===1&&c===0||u===1&&c===1&&SA(i,Tr)||u===1&&c===1&&SA(i,_r)&&t>100||u===1&&c>1&&SA(i,po)?a=e[u]+(c>0?A[c-1]:"")+a:u===1&&c>0&&(a=A[c-1]+a),s=Math.floor(s/10)}return(t<0?n:"")+a},FC="十百千萬",bC="拾佰仟萬",UC="マイナス",Vf="마이너스",go=function(t,e,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",s=A?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=CA(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return hi(t,"〇一二三四五六七八九",r);case 6:return As(t,1,3999,yC,3,n).toLowerCase();case 7:return As(t,1,3999,yC,3,n);case 8:return CA(t,945,969,!1,n);case 9:return CA(t,97,122,!1,n);case 10:return CA(t,65,90,!1,n);case 11:return CA(t,1632,1641,!0,n);case 12:case 49:return As(t,1,9999,EC,3,n);case 35:return As(t,1,9999,EC,3,n).toLowerCase();case 13:return CA(t,2534,2543,!0,n);case 14:case 30:return CA(t,6112,6121,!0,n);case 15:return hi(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return hi(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Xn(t,"零一二三四五六七八九",FC,"負",r,Tr|_r|po);case 47:return Xn(t,"零壹貳參肆伍陸柒捌玖",bC,"負",r,ts|Tr|_r|po);case 42:return Xn(t,"零一二三四五六七八九",FC,"负",r,Tr|_r|po);case 41:return Xn(t,"零壹贰叁肆伍陆柒捌玖",bC,"负",r,ts|Tr|_r|po);case 26:return Xn(t,"〇一二三四五六七八九","十百千万",UC,r,0);case 25:return Xn(t,"零壱弐参四伍六七八九","拾百千万",UC,r,ts|Tr|_r);case 31:return Xn(t,"영일이삼사오육칠팔구","십백천만",Vf,i,ts|Tr|_r);case 33:return Xn(t,"零一二三四五六七八九","十百千萬",Vf,i,0);case 32:return Xn(t,"零壹貳參四五六七八九","拾百千",Vf,i,ts|Tr|_r);case 18:return CA(t,2406,2415,!0,n);case 20:return As(t,1,19999,RN,3,n);case 21:return CA(t,2790,2799,!0,n);case 22:return CA(t,2662,2671,!0,n);case 22:return As(t,1,10999,MN,3,n);case 23:return hi(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return hi(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return CA(t,3302,3311,!0,n);case 28:return hi(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return hi(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return CA(t,3792,3801,!0,n);case 37:return CA(t,6160,6169,!0,n);case 38:return CA(t,4160,4169,!0,n);case 39:return CA(t,2918,2927,!0,n);case 40:return CA(t,1776,1785,!0,n);case 43:return CA(t,3046,3055,!0,n);case 44:return CA(t,3174,3183,!0,n);case 45:return CA(t,3664,3673,!0,n);case 46:return CA(t,3872,3881,!0,n);case 3:default:return CA(t,48,57,!0,n)}},vC="data-html2canvas-ignore",IC=function(){function t(e,A,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new DN,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,A){var n=this,r=KN(e,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,a=r.contentWindow,c=a.document,u=GN(r).then(function(){return lt(n,void 0,void 0,function(){var f,p;return ZA(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(XN),a&&(a.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==A.top||a.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-A.left,a.scrollY-A.top,0,0))),f=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,PN(c)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(c,p)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write($N(document.doctype)+"<html></html>"),JN(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(e){if(bf(e,2))debugger;if(pC(e))return this.createCanvasClone(e);if(gC(e))return this.createVideoClone(e);if(BC(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return Kf(A)&&(Kf(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),CC(A)?this.createCustomElementClone(A):A},t.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return Pf(e.style,A),A},t.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}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 i=e.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=(A=e.getContext("webgl2"))!==null&&A!==void 0?A:e.getContext("webgl");if(a){var c=a.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.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 A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}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,A,n){(!es(A)||!NN(A)&&!A.hasAttribute(vC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!es(A)||!BC(A))&&e.appendChild(this.cloneNode(A,n))},t.prototype.cloneChildNodes=function(e,A,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(es(i)&&wC(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return r.appendChildNode(A,a,n)})}else this.appendChildNode(A,i,n)},t.prototype.cloneNode=function(e,A){if(dC(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&es(e)&&(Mf(e)||ml(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),s=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&Mf(r)&&(this.clonedReferenceElement=r),Rf(r)&&qN(r);var c=this.counters.parse(new Vw(this.context,i)),u=this.resolvePseudoContent(e,r,s,mo.BEFORE);CC(e)&&(A=!0),gC(e)||this.cloneChildNodes(e,r,A),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(e,r,a,mo.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||ml(e))&&!mC(e)||A)&&Pf(i,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Bl(e)||wl(e))&&(Bl(r)||wl(r))&&(r.value=e.value),r}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,A,n,r){var i=this;if(n){var s=n.content,a=A.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Vw(this.context,n));var c=new Ok(this.context,n),u=a.createElement("html2canvaspseudoelement");Pf(n,u),c.content.forEach(function(p){if(p.type===0)u.appendChild(a.createTextNode(p.value));else if(p.type===22){var g=a.createElement("img");g.src=p.value,g.style.opacity="1",u.appendChild(g)}else if(p.type===18){if(p.name==="attr"){var B=p.values.filter(je);B.length&&u.appendChild(a.createTextNode(e.getAttribute(B[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(Zi),Q=w[0],b=w[1];if(Q&&je(Q)){var v=i.counters.getCounterValue(Q.value),_=b&&je(b)?Ff.parse(i.context,b.value):3;u.appendChild(a.createTextNode(go(v,_,!1)))}}else if(p.name==="counters"){var S=p.values.filter(Zi),Q=S[0],E=S[1],b=S[2];if(Q&&je(Q)){var L=i.counters.getCounterValues(Q.value),U=b&&je(b)?Ff.parse(i.context,b.value):3,N=E&&E.type===0?E.value:"",V=L.map(function(Be){return go(Be,U,!1)}).join(N);u.appendChild(a.createTextNode(V))}}}else if(p.type===20)switch(p.value){case"open-quote":u.appendChild(a.createTextNode(Kw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Kw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(p.value))}}),u.className=Gf+" "+Wf;var f=r===mo.BEFORE?" "+Gf:" "+Wf;return ml(A)?A.className.baseValue+=f:A.className+=f,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),mo;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(mo||(mo={}));var KN=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(vC,"true"),t.body.appendChild(A),A},VN=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},PN=function(t){return Promise.all([].slice.call(t.images,0).map(VN))},GN=function(t){return new Promise(function(e,A){var n=t.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},WN=["all","d","content"],Pf=function(t,e){for(var A=t.length-1;A>=0;A--){var n=t.item(A);WN.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},$N=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},JN=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},XN=function(t){var e=t[0],A=t[1],n=t[2];e.scrollLeft=A,e.scrollTop=n},YN=":before",zN=":after",Gf="___html2canvas___pseudoelement_before",Wf="___html2canvas___pseudoelement_after",SC=`{
179
+ ***************************************************************************** */var Zu=function(t,e){return Zu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(A[r]=n[r])},Zu(t,e)};function ln(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Zu(t,e);function A(){this.constructor=t}t.prototype=e===null?Object.create(e):(A.prototype=e.prototype,new A)}var ju=function(){return ju=Object.assign||function(e){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},ju.apply(this,arguments)};function lt(t,e,A,n){function r(i){return i instanceof A?i:new A(function(s){s(i)})}return new(A||(A=Promise))(function(i,s){function a(f){try{u(n.next(f))}catch(p){s(p)}}function c(f){try{u(n.throw(f))}catch(p){s(p)}}function u(f){f.done?i(f.value):r(f.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function ZA(t,e){var A={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;A;)try{if(n=1,r&&(i=u[0]&2?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return A.label++,{value:u[1],done:!1};case 5:A.label++,r=u[1],u=[0];continue;case 7:u=A.ops.pop(),A.trys.pop();continue;default:if(i=A.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){A=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){A.label=u[1];break}if(u[0]===6&&A.label<i[1]){A.label=i[1],i=u;break}if(i&&A.label<i[2]){A.label=i[2],A.ops.push(u);break}i[2]&&A.ops.pop(),A.trys.pop();continue}u=e.call(t,A)}catch(f){u=[6,f],r=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function La(t,e,A){if(A||arguments.length===2)for(var n=0,r=e.length,i;n<r;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||e)}for(var Wn=function(){function t(e,A,n,r){this.left=e,this.top=A,this.width=n,this.height=r}return t.prototype.add=function(e,A,n,r){return new t(this.left+e,this.top+A,this.width+n,this.height+r)},t.fromClientRect=function(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)},t.fromDOMRectList=function(e,A){var n=Array.from(A).find(function(r){return r.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ha=function(t,e){return Wn.fromClientRect(t,e.getBoundingClientRect())},dO=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),r=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new Wn(0,0,n,r)},ka=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},wA=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},DB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Na=0;Na<DB.length;Na++)hO[DB.charCodeAt(Na)]=Na;for(var MB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Da=0;Da<MB.length;Da++)zs[MB.charCodeAt(Da)]=Da;for(var pO=function(t){var e=t.length*.75,A=t.length,n,r=0,i,s,a,c;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(n=0;n<A;n+=4)i=zs[t.charCodeAt(n)],s=zs[t.charCodeAt(n+1)],a=zs[t.charCodeAt(n+2)],c=zs[t.charCodeAt(n+3)],f[r++]=i<<2|s>>4,f[r++]=(s&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},gO=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},mO=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},ci=5,ef=6+5,Af=2,BO=ef-ci,RB=65536>>ci,wO=1<<ci,tf=wO-1,CO=1024>>ci,yO=RB+CO,EO=yO,QO=32,FO=EO+QO,bO=65536>>ef,UO=1<<BO,vO=UO-1,KB=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},IO=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},SO=function(t,e){var A=pO(t),n=Array.isArray(A)?mO(A):new Uint32Array(A),r=Array.isArray(A)?gO(A):new Uint16Array(A),i=24,s=KB(r,i/2,n[4]/2),a=n[5]===2?KB(r,(i+n[4])/2):IO(n,Math.ceil((i+n[4])/4));return new TO(n[0],n[1],n[2],n[3],s,a)},TO=function(){function t(e,A,n,r,i,s){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ci],A=(A<<Af)+(e&tf),this.data[A];if(e<=65535)return A=this.index[RB+(e-55296>>ci)],A=(A<<Af)+(e&tf),this.data[A];if(e<this.highStart)return A=FO-bO+(e>>ef),A=this.index[A],A+=e>>ci&vO,A=this.index[A],A=(A<<Af)+(e&tf),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),VB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_O=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ma=0;Ma<VB.length;Ma++)_O[VB.charCodeAt(Ma)]=Ma;var xO="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==",PB=50,OO=1,GB=2,WB=3,LO=4,HO=5,$B=7,JB=8,XB=9,Qr=10,nf=11,YB=12,rf=13,kO=14,qs=15,sf=16,Ra=17,Zs=18,NO=19,zB=20,of=21,js=22,af=23,Xi=24,Tt=25,eo=26,Ao=27,Yi=28,DO=29,ui=30,MO=31,Ka=32,Va=33,lf=34,cf=35,uf=36,to=37,ff=38,Pa=39,Ga=40,df=41,qB=42,RO=43,KO=[9001,65288],ZB="!",xe="×",Wa="÷",hf=SO(xO),$n=[ui,uf],pf=[OO,GB,WB,HO],jB=[Qr,JB],ew=[Ao,eo],VO=pf.concat(jB),Aw=[ff,Pa,Ga,lf,cf],PO=[qs,rf],GO=function(t,e){e===void 0&&(e="strict");var A=[],n=[],r=[];return t.forEach(function(i,s){var a=hf.get(i);if(a>PB?(r.push(!0),a-=PB):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),A.push(sf);if(a===LO||a===nf){if(s===0)return n.push(s),A.push(ui);var c=A[s-1];return VO.indexOf(c)===-1?(n.push(n[s-1]),A.push(c)):(n.push(s),A.push(ui))}if(n.push(s),a===MO)return A.push(e==="strict"?of:to);if(a===qB||a===DO)return A.push(ui);if(a===RO)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(to):A.push(ui);A.push(a)}),[n,A,r]},gf=function(t,e,A,n){var r=n[A];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var i=A;i<=n.length;){i++;var s=n[i];if(s===e)return!0;if(s!==Qr)break}if(r===Qr)for(var i=A;i>0;){i--;var a=n[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=A;c<=n.length;){c++;var s=n[c];if(s===e)return!0;if(s!==Qr)break}if(a!==Qr)break}return!1},tw=function(t,e){for(var A=t;A>=0;){var n=e[A];if(n===Qr)A--;else return n}return 0},WO=function(t,e,A,n,r){if(A[n]===0)return xe;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return xe;var s=i-1,a=i+1,c=e[i],u=s>=0?e[s]:0,f=e[a];if(c===GB&&f===WB)return xe;if(pf.indexOf(c)!==-1)return ZB;if(pf.indexOf(f)!==-1||jB.indexOf(f)!==-1)return xe;if(tw(i,e)===JB)return Wa;if(hf.get(t[i])===nf||(c===Ka||c===Va)&&hf.get(t[a])===nf||c===$B||f===$B||c===XB||[Qr,rf,qs].indexOf(c)===-1&&f===XB||[Ra,Zs,NO,Xi,Yi].indexOf(f)!==-1||tw(i,e)===js||gf(af,js,i,e)||gf([Ra,Zs],of,i,e)||gf(YB,YB,i,e))return xe;if(c===Qr)return Wa;if(c===af||f===af)return xe;if(f===sf||c===sf)return Wa;if([rf,qs,of].indexOf(f)!==-1||c===kO||u===uf&&PO.indexOf(c)!==-1||c===Yi&&f===uf||f===zB||$n.indexOf(f)!==-1&&c===Tt||$n.indexOf(c)!==-1&&f===Tt||c===Ao&&[to,Ka,Va].indexOf(f)!==-1||[to,Ka,Va].indexOf(c)!==-1&&f===eo||$n.indexOf(c)!==-1&&ew.indexOf(f)!==-1||ew.indexOf(c)!==-1&&$n.indexOf(f)!==-1||[Ao,eo].indexOf(c)!==-1&&(f===Tt||[js,qs].indexOf(f)!==-1&&e[a+1]===Tt)||[js,qs].indexOf(c)!==-1&&f===Tt||c===Tt&&[Tt,Yi,Xi].indexOf(f)!==-1)return xe;if([Tt,Yi,Xi,Ra,Zs].indexOf(f)!==-1)for(var p=i;p>=0;){var g=e[p];if(g===Tt)return xe;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if([Ao,eo].indexOf(f)!==-1)for(var p=[Ra,Zs].indexOf(c)!==-1?s:i;p>=0;){var g=e[p];if(g===Tt)return xe;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if(ff===c&&[ff,Pa,lf,cf].indexOf(f)!==-1||[Pa,lf].indexOf(c)!==-1&&[Pa,Ga].indexOf(f)!==-1||[Ga,cf].indexOf(c)!==-1&&f===Ga||Aw.indexOf(c)!==-1&&[zB,eo].indexOf(f)!==-1||Aw.indexOf(f)!==-1&&c===Ao||$n.indexOf(c)!==-1&&$n.indexOf(f)!==-1||c===Xi&&$n.indexOf(f)!==-1||$n.concat(Tt).indexOf(c)!==-1&&f===js&&KO.indexOf(t[a])===-1||$n.concat(Tt).indexOf(f)!==-1&&c===Zs)return xe;if(c===df&&f===df){for(var B=A[i],w=1;B>0&&(B--,e[B]===df);)w++;if(w%2!==0)return xe}return c===Ka&&f===Va?xe:Wa},$O=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=GO(t,e.lineBreak),n=A[0],r=A[1],i=A[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[Tt,ui,qB].indexOf(a)!==-1?to:a}));var s=e.wordBreak==="keep-all"?i.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[n,r,s]},JO=function(){function t(e,A,n,r){this.codePoints=e,this.required=A===ZB,this.start=n,this.end=r}return t.prototype.slice=function(){return wA.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),XO=function(t,e){var A=ka(t),n=$O(A,e),r=n[0],i=n[1],s=n[2],a=A.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=xe;u<a&&(f=WO(A,i,r,++u,s))===xe;);if(f!==xe||u===a){var p=new JO(A,f,c,u);return c=u,{value:p,done:!1}}return{done:!0,value:null}}}},YO=1,zO=2,no=4,nw=8,$a=10,rw=47,ro=92,qO=9,ZO=32,Ja=34,io=61,jO=35,eL=36,AL=37,Xa=39,Ya=40,so=41,tL=95,wt=45,nL=33,rL=60,iL=62,sL=64,oL=91,aL=93,lL=61,cL=123,za=63,uL=125,iw=124,fL=126,dL=128,sw=65533,mf=42,fi=43,hL=44,pL=58,gL=59,oo=46,mL=0,BL=8,wL=11,CL=14,yL=31,EL=127,Un=-1,ow=48,aw=97,lw=101,QL=102,FL=117,bL=122,cw=65,uw=69,fw=70,UL=85,vL=90,jA=function(t){return t>=ow&&t<=57},IL=function(t){return t>=55296&&t<=57343},zi=function(t){return jA(t)||t>=cw&&t<=fw||t>=aw&&t<=QL},SL=function(t){return t>=aw&&t<=bL},TL=function(t){return t>=cw&&t<=vL},_L=function(t){return SL(t)||TL(t)},xL=function(t){return t>=dL},qa=function(t){return t===$a||t===qO||t===ZO},Za=function(t){return _L(t)||xL(t)||t===tL},dw=function(t){return Za(t)||jA(t)||t===wt},OL=function(t){return t>=mL&&t<=BL||t===wL||t>=CL&&t<=yL||t===EL},Fr=function(t,e){return t!==ro?!1:e!==$a},ja=function(t,e,A){return t===wt?Za(e)||Fr(e,A):Za(t)?!0:!!(t===ro&&Fr(t,e))},Bf=function(t,e,A){return t===fi||t===wt?jA(e)?!0:e===oo&&jA(A):jA(t===oo?e:t)},LL=function(t){var e=0,A=1;(t[e]===fi||t[e]===wt)&&(t[e]===wt&&(A=-1),e++);for(var n=[];jA(t[e]);)n.push(t[e++]);var r=n.length?parseInt(wA.apply(void 0,n),10):0;t[e]===oo&&e++;for(var i=[];jA(t[e]);)i.push(t[e++]);var s=i.length,a=s?parseInt(wA.apply(void 0,i),10):0;(t[e]===uw||t[e]===lw)&&e++;var c=1;(t[e]===fi||t[e]===wt)&&(t[e]===wt&&(c=-1),e++);for(var u=[];jA(t[e]);)u.push(t[e++]);var f=u.length?parseInt(wA.apply(void 0,u),10):0;return A*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},HL={type:2},kL={type:3},NL={type:4},DL={type:13},ML={type:8},RL={type:21},KL={type:9},VL={type:10},PL={type:11},GL={type:12},WL={type:14},el={type:23},$L={type:1},JL={type:25},XL={type:24},YL={type:26},zL={type:27},qL={type:28},ZL={type:29},jL={type:31},wf={type:32},hw=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(ka(e))},t.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==wf;)e.push(A),A=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Ja:return this.consumeStringToken(Ja);case jO:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(dw(A)||Fr(n,r)){var i=ja(A,n,r)?zO:YO,s=this.consumeName();return{type:5,value:s,flags:i}}break;case eL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),DL;break;case Xa:return this.consumeStringToken(Xa);case Ya:return HL;case so:return kL;case mf:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),WL;break;case fi:if(Bf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case hL:return NL;case wt:var a=e,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Bf(a,c,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ja(a,c,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===wt&&u===iL)return this.consumeCodePoint(),this.consumeCodePoint(),XL;break;case oo:if(Bf(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case rw:if(this.peekCodePoint(0)===mf)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===mf&&(f=this.consumeCodePoint(),f===rw))return this.consumeToken();if(f===Un)return this.consumeToken()}break;case pL:return YL;case gL:return zL;case rL:if(this.peekCodePoint(0)===nL&&this.peekCodePoint(1)===wt&&this.peekCodePoint(2)===wt)return this.consumeCodePoint(),this.consumeCodePoint(),JL;break;case sL:var p=this.peekCodePoint(0),g=this.peekCodePoint(1),B=this.peekCodePoint(2);if(ja(p,g,B)){var s=this.consumeName();return{type:7,value:s}}break;case oL:return qL;case ro:if(Fr(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case aL:return ZL;case lL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),ML;break;case cL:return PL;case uL:return GL;case FL:case UL:var w=this.peekCodePoint(0),Q=this.peekCodePoint(1);return w===fi&&(zi(Q)||Q===za)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case iw:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),KL;if(this.peekCodePoint(0)===iw)return this.consumeCodePoint(),RL;break;case fL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),VL;break;case Un:return wf}return qa(e)?(this.consumeWhiteSpace(),jL):jA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Za(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:wA(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=[],A=this.consumeCodePoint();zi(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var n=!1;A===za&&e.length<6;)e.push(A),A=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(wA.apply(void 0,e.map(function(c){return c===za?ow:c})),16),i=parseInt(wA.apply(void 0,e.map(function(c){return c===za?fw:c})),16);return{type:30,start:r,end:i}}var s=parseInt(wA.apply(void 0,e),16);if(this.peekCodePoint(0)===wt&&zi(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var a=[];zi(A)&&a.length<6;)a.push(A),A=this.consumeCodePoint();var i=parseInt(wA.apply(void 0,a),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Xa||A===Ja){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),el)}for(;;){var r=this.consumeCodePoint();if(r===Un||r===so)return{type:22,value:wA.apply(void 0,e)};if(qa(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so?(this.consumeCodePoint(),{type:22,value:wA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),el);if(r===Ja||r===Xa||r===Ya||OL(r))return this.consumeBadUrlRemnants(),el;if(r===ro)if(Fr(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),el;else e.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;qa(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===so||e===Un)return;Fr(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var A=5e4,n="";e>0;){var r=Math.min(A,e);n+=wA.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var A="",n=0;do{var r=this._value[n];if(r===Un||r===void 0||r===e)return A+=this.consumeStringSlice(n),{type:0,value:A};if(r===$a)return this._value.splice(0,n),$L;if(r===ro){var i=this._value[n+1];i!==Un&&i!==void 0&&(i===$a?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):Fr(r,i)&&(A+=this.consumeStringSlice(n),A+=wA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],A=no,n=this.peekCodePoint(0);for((n===fi||n===wt)&&e.push(this.consumeCodePoint());jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===oo&&jA(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=nw;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===uw||n===lw)&&((r===fi||r===wt)&&jA(i)||jA(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=nw;jA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[LL(e),A]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(ja(r,i,s)){var a=this.consumeName();return{type:15,number:A,flags:n,unit:a}}return r===AL?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(zi(e)){for(var A=wA(e);zi(this.peekCodePoint(0))&&A.length<6;)A+=wA(this.consumeCodePoint());qa(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||IL(n)||n>1114111?sw:n}return e===Un?sw:e},t.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(dw(A))e+=wA(A);else if(Fr(A,this.peekCodePoint(0)))e+=wA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),e}},t}(),pw=function(){function t(e){this._tokens=e}return t.create=function(e){var A=new hw;return A.write(e),new t(A.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 A=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(A.type===32)return e;e.push(A),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 A={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||AH(n,e))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?wf:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),ao=function(t){return t.type===15},qi=function(t){return t.type===17},je=function(t){return t.type===20},eH=function(t){return t.type===0},Cf=function(t,e){return je(t)&&t.value===e},gw=function(t){return t.type!==31},Zi=function(t){return t.type!==31&&t.type!==4},vn=function(t){var e=[],A=[];return t.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&e.push(A),e},AH=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},br=function(t){return t.type===17||t.type===15},UA=function(t){return t.type===16||br(t)},mw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},VA={type:17,number:0,flags:no},yf={type:16,number:50,flags:no},Ur={type:16,number:100,flags:no},lo=function(t,e,A){var n=t[0],r=t[1];return[sA(n,e),sA(typeof r<"u"?r:n,A)]},sA=function(t,e){if(t.type===16)return t.number/100*e;if(ao(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Bw="deg",ww="grad",Cw="rad",yw="turn",Al={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Bw:return Math.PI*e.number/180;case ww:return Math.PI/200*e.number;case Cw:return e.number;case yw:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ew=function(t){return t.type===15&&(t.unit===Bw||t.unit===ww||t.unit===Cw||t.unit===yw)},Qw=function(t){var e=t.filter(je).map(function(A){return A.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[VA,VA];case"to top":case"bottom":return Pt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[VA,Ur];case"to right":case"left":return Pt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ur,Ur];case"to bottom":case"top":return Pt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ur,VA];case"to left":case"right":return Pt(270)}return 0},Pt=function(t){return Math.PI*t/180},vr={name:"color",parse:function(t,e){if(e.type===18){var A=tH[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3),s=e.value.substring(3,4);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),s=e.value.substring(6,8);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(e.type===20){var a=Jn[e.value.toUpperCase()];if(typeof a<"u")return a}return Jn.TRANSPARENT}},Ir=function(t){return(255&t)===0},NA=function(t){var e=255&t,A=255&t>>8,n=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+n+","+A+","+e/255+")":"rgb("+r+","+n+","+A+")"},Sr=function(t,e,A,n){return(t<<24|e<<16|A<<8|Math.round(n*255)<<0)>>>0},Fw=function(t,e){if(t.type===17)return t.number;if(t.type===16){var A=e===3?1:255;return e===3?t.number/100*A:Math.round(t.number/100*A)}return 0},bw=function(t,e){var A=e.filter(Zi);if(A.length===3){var n=A.map(Fw),r=n[0],i=n[1],s=n[2];return Sr(r,i,s,1)}if(A.length===4){var a=A.map(Fw),r=a[0],i=a[1],s=a[2],c=a[3];return Sr(r,i,s,c)}return 0};function Ef(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<1/2?e:A<2/3?(e-t)*6*(2/3-A)+t:t}var Uw=function(t,e){var A=e.filter(Zi),n=A[0],r=A[1],i=A[2],s=A[3],a=(n.type===17?Pt(n.number):Al.parse(t,n))/(Math.PI*2),c=UA(r)?r.number/100:0,u=UA(i)?i.number/100:0,f=typeof s<"u"&&UA(s)?sA(s,1):1;if(c===0)return Sr(u*255,u*255,u*255,1);var p=u<=.5?u*(c+1):u+c-u*c,g=u*2-p,B=Ef(g,p,a+1/3),w=Ef(g,p,a),Q=Ef(g,p,a-1/3);return Sr(B*255,w*255,Q*255,f)},tH={hsl:Uw,hsla:Uw,rgb:bw,rgba:bw},co=function(t,e){return vr.parse(t,pw.create(e).parseComponentValue())},Jn={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},nH={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(je(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rH={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tl=function(t,e){var A=vr.parse(t,e[0]),n=e[1];return n&&UA(n)?{color:A,stop:n}:{color:A,stop:null}},vw=function(t,e){var A=t[0],n=t[t.length-1];A.stop===null&&(A.stop=VA),n.stop===null&&(n.stop=Ur);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=sA(a,e);c>i?r.push(c):r.push(i),i=c}else r.push(null)}for(var u=null,s=0;s<r.length;s++){var f=r[s];if(f===null)u===null&&(u=s);else if(u!==null){for(var p=s-u,g=r[u-1],B=(f-g)/(p+1),w=1;w<=p;w++)r[u+w-1]=B*w;u=null}}return t.map(function(Q,b){var v=Q.color;return{color:v,stop:Math.max(Math.min(1,r[b]/e),0)}})},iH=function(t,e,A){var n=e/2,r=A/2,i=sA(t[0],e)-n,s=r-sA(t[1],A);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},sH=function(t,e,A){var n=typeof t=="number"?t:iH(t,e,A),r=Math.abs(e*Math.sin(n))+Math.abs(A*Math.cos(n)),i=e/2,s=A/2,a=r/2,c=Math.sin(n-Math.PI/2)*a,u=Math.cos(n-Math.PI/2)*a;return[r,i-u,i+u,s-c,s+c]},cn=function(t,e){return Math.sqrt(t*t+e*e)},Iw=function(t,e,A,n,r){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(s,a){var c=a[0],u=a[1],f=cn(A-c,n-u);return(r?f<s.optimumDistance:f>s.optimumDistance)?{optimumCorner:a,optimumDistance:f}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},oH=function(t,e,A,n,r){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),s=Math.min(Math.abs(A),Math.abs(A-r)));break;case 2:if(t.shape===0)i=s=Math.min(cn(e,A),cn(e,A-r),cn(e-n,A),cn(e-n,A-r));else if(t.shape===1){var a=Math.min(Math.abs(A),Math.abs(A-r))/Math.min(Math.abs(e),Math.abs(e-n)),c=Iw(n,r,e,A,!0),u=c[0],f=c[1];i=cn(u-e,(f-A)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(A),Math.abs(A-r)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),s=Math.max(Math.abs(A),Math.abs(A-r)));break;case 3:if(t.shape===0)i=s=Math.max(cn(e,A),cn(e,A-r),cn(e-n,A),cn(e-n,A-r));else if(t.shape===1){var a=Math.max(Math.abs(A),Math.abs(A-r))/Math.max(Math.abs(e),Math.abs(e-n)),p=Iw(n,r,e,A,!1),u=p[0],f=p[1];i=cn(u-e,(f-A)/a),s=a*i}break}return Array.isArray(t.size)&&(i=sA(t.size[0],n),s=t.size.length===2?sA(t.size[1],r):i),[i,s]},aH=function(t,e){var A=Pt(180),n=[];return vn(e).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){A=Qw(r);return}else if(Ew(s)){A=Al.parse(t,s);return}}var a=tl(t,r);n.push(a)}),{angle:A,stops:n,type:1}},nl=function(t,e){var A=Pt(180),n=[];return vn(e).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=Qw(r);return}else if(Ew(s)){A=(Al.parse(t,s)+Pt(270))%Pt(360);return}}var a=tl(t,r);n.push(a)}),{angle:A,stops:n,type:1}},lH=function(t,e){var A=Pt(180),n=[],r=1,i=0,s=3,a=[];return vn(e).forEach(function(c,u){var f=c[0];if(u===0){if(je(f)&&f.value==="linear"){r=1;return}else if(je(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var p=vr.parse(t,f.values[0]);n.push({stop:VA,color:p})}else if(f.name==="to"){var p=vr.parse(t,f.values[0]);n.push({stop:Ur,color:p})}else if(f.name==="color-stop"){var g=f.values.filter(Zi);if(g.length===2){var p=vr.parse(t,g[1]),B=g[0];qi(B)&&n.push({stop:{type:16,number:B.number*100,flags:B.flags},color:p})}}}}),r===1?{angle:(A+Pt(180))%Pt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},Sw="closest-side",Tw="farthest-side",_w="closest-corner",xw="farthest-corner",Ow="circle",Lw="ellipse",Hw="cover",kw="contain",cH=function(t,e){var A=0,n=3,r=[],i=[];return vn(e).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,g){if(u)if(je(g))switch(g.value){case"center":return i.push(yf),p;case"top":case"left":return i.push(VA),p;case"right":case"bottom":return i.push(Ur),p}else(UA(g)||br(g))&&i.push(g);else if(je(g))switch(g.value){case Ow:return A=0,!1;case Lw:return A=1,!1;case"at":return u=!0,!1;case Sw:return n=0,!1;case Hw:case Tw:return n=1,!1;case kw:case _w:return n=2,!1;case xw:return n=3,!1}else if(br(g)||UA(g))return Array.isArray(n)||(n=[]),n.push(g),!1;return p},c)}if(c){var f=tl(t,s);r.push(f)}}),{size:n,shape:A,stops:r,position:i,type:2}},rl=function(t,e){var A=0,n=3,r=[],i=[];return vn(e).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(f,p){if(je(p))switch(p.value){case"center":return i.push(yf),!1;case"top":case"left":return i.push(VA),!1;case"right":case"bottom":return i.push(Ur),!1}else if(UA(p)||br(p))return i.push(p),!1;return f},c):a===1&&(c=s.reduce(function(f,p){if(je(p))switch(p.value){case Ow:return A=0,!1;case Lw:return A=1,!1;case kw:case Sw:return n=0,!1;case Tw:return n=1,!1;case _w:return n=2,!1;case Hw:case xw:return n=3,!1}else if(br(p)||UA(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return f},c)),c){var u=tl(t,s);r.push(u)}}),{size:n,shape:A,stops:r,position:i,type:2}},uH=function(t){return t.type===1},fH=function(t){return t.type===2},Qf={name:"image",parse:function(t,e){if(e.type===22){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(e.type===18){var n=Nw[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function dH(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Nw[t.name])}var Nw={"linear-gradient":aH,"-moz-linear-gradient":nl,"-ms-linear-gradient":nl,"-o-linear-gradient":nl,"-webkit-linear-gradient":nl,"radial-gradient":cH,"-moz-radial-gradient":rl,"-ms-radial-gradient":rl,"-o-radial-gradient":rl,"-webkit-radial-gradient":rl,"-webkit-gradient":lH},hH={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e.filter(function(n){return Zi(n)&&dH(n)}).map(function(n){return Qf.parse(t,n)})}},pH={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(je(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gH={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return vn(e).map(function(A){return A.filter(UA)}).map(mw)}},mH={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return vn(e).map(function(A){return A.filter(je).map(function(n){return n.value}).join(" ")}).map(BH)}},BH=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}},ji;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ji||(ji={}));var wH={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return vn(e).map(function(A){return A.filter(CH)})}},CH=function(t){return je(t)||UA(t)},il=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},yH=il("top"),EH=il("right"),QH=il("bottom"),FH=il("left"),sl=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return mw(A.filter(UA))}}},bH=sl("top-left"),UH=sl("top-right"),vH=sl("bottom-right"),IH=sl("bottom-left"),ol=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},SH=ol("top"),TH=ol("right"),_H=ol("bottom"),xH=ol("left"),al=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return ao(A)?A.number:0}}},OH=al("top"),LH=al("right"),HH=al("bottom"),kH=al("left"),NH={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},DH={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},MH={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(je).reduce(function(A,n){return A|RH(n.value)},0)}},RH=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},KH={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}},VH={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}},ll;(function(t){t.NORMAL="normal",t.STRICT="strict"})(ll||(ll={}));var PH={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return ll.STRICT;case"normal":default:return ll.NORMAL}}},GH={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dw=function(t,e){return je(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:UA(t)?sA(t,e):e},WH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:Qf.parse(t,e)}},$H={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}}},Ff={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}}},cl=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},JH=cl("top"),XH=cl("right"),YH=cl("bottom"),zH=cl("left"),qH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(je).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ZH={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"}}},ul=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},jH=ul("top"),ek=ul("right"),Ak=ul("bottom"),tk=ul("left"),nk={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}}},rk={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}},ik={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Cf(e[0],"none")?[]:vn(e).map(function(A){for(var n={color:Jn.TRANSPARENT,offsetX:VA,offsetY:VA,blur:VA},r=0,i=0;i<A.length;i++){var s=A[i];br(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:n.blur=s,r++):n.color=vr.parse(t,s)}return n})}},sk={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}},ok={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 A=ck[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return A(e.values)}return null}},ak=function(t){var e=t.filter(function(A){return A.type===17}).map(function(A){return A.number});return e.length===6?e:null},lk=function(t){var e=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),A=e[0],n=e[1];e[2],e[3];var r=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],a=e[13];return e[14],e[15],e.length===16?[A,n,r,i,s,a]:null},ck={matrix:ak,matrix3d:lk},Mw={type:16,number:50,flags:no},uk=[Mw,Mw],fk={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var A=e.filter(UA);return A.length!==2?uk:[A[0],A[1]]}},dk={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}}},uo;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(uo||(uo={}));for(var hk={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return uo.BREAK_ALL;case"keep-all":return uo.KEEP_ALL;case"normal":default:return uo.NORMAL}}},pk={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(qi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Rw={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")}},gk={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return qi(e)?e.number:1}},mk={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bk={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(je).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},wk={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var A=[],n=[];return e.forEach(function(r){switch(r.type){case 20:case 0:A.push(r.value);break;case 17:A.push(r.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},Ck={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},yk={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(qi(e))return e.number;if(je(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ek={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(je).map(function(A){return A.value})}},Qk={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"}}},SA=function(t,e){return(t&e)!==0},Fk={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e}},bk={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;for(var n=[],r=e.filter(gw),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&qi(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},Uk={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var A=[],n=e.filter(gw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(je(i)&&i.value!=="none"){var a=s&&qi(s)?s.number:0;A.push({counter:i.value,reset:a})}}return A}},vk={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(ao).map(function(A){return Rw.parse(t,A)})}},Ik={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;var n=[],r=e.filter(eH);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var s=r[i].value,a=r[i+1].value;n.push({open:s,close:a})}return n}},Kw=function(t,e,A){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?A?n.open:n.close:""},Sk={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Cf(e[0],"none")?[]:vn(e).map(function(A){for(var n={color:255,offsetX:VA,offsetY:VA,blur:VA,spread:VA,inset:!1},r=0,i=0;i<A.length;i++){var s=A[i];Cf(s,"inset")?n.inset=!0:br(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:r===2?n.blur=s:n.spread=s,r++):n.color=vr.parse(t,s)}return n})}},Tk={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var A=[0,1,2],n=[];return e.filter(je).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),A.forEach(function(r){n.indexOf(r)===-1&&n.push(r)}),n}},_k={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},xk={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return ao(e)?e.number:0}},Ok=function(){function t(e,A){var n,r;this.animationDuration=ee(e,vk,A.animationDuration),this.backgroundClip=ee(e,nH,A.backgroundClip),this.backgroundColor=ee(e,rH,A.backgroundColor),this.backgroundImage=ee(e,hH,A.backgroundImage),this.backgroundOrigin=ee(e,pH,A.backgroundOrigin),this.backgroundPosition=ee(e,gH,A.backgroundPosition),this.backgroundRepeat=ee(e,mH,A.backgroundRepeat),this.backgroundSize=ee(e,wH,A.backgroundSize),this.borderTopColor=ee(e,yH,A.borderTopColor),this.borderRightColor=ee(e,EH,A.borderRightColor),this.borderBottomColor=ee(e,QH,A.borderBottomColor),this.borderLeftColor=ee(e,FH,A.borderLeftColor),this.borderTopLeftRadius=ee(e,bH,A.borderTopLeftRadius),this.borderTopRightRadius=ee(e,UH,A.borderTopRightRadius),this.borderBottomRightRadius=ee(e,vH,A.borderBottomRightRadius),this.borderBottomLeftRadius=ee(e,IH,A.borderBottomLeftRadius),this.borderTopStyle=ee(e,SH,A.borderTopStyle),this.borderRightStyle=ee(e,TH,A.borderRightStyle),this.borderBottomStyle=ee(e,_H,A.borderBottomStyle),this.borderLeftStyle=ee(e,xH,A.borderLeftStyle),this.borderTopWidth=ee(e,OH,A.borderTopWidth),this.borderRightWidth=ee(e,LH,A.borderRightWidth),this.borderBottomWidth=ee(e,HH,A.borderBottomWidth),this.borderLeftWidth=ee(e,kH,A.borderLeftWidth),this.boxShadow=ee(e,Sk,A.boxShadow),this.color=ee(e,NH,A.color),this.direction=ee(e,DH,A.direction),this.display=ee(e,MH,A.display),this.float=ee(e,KH,A.cssFloat),this.fontFamily=ee(e,wk,A.fontFamily),this.fontSize=ee(e,Ck,A.fontSize),this.fontStyle=ee(e,Qk,A.fontStyle),this.fontVariant=ee(e,Ek,A.fontVariant),this.fontWeight=ee(e,yk,A.fontWeight),this.letterSpacing=ee(e,VH,A.letterSpacing),this.lineBreak=ee(e,PH,A.lineBreak),this.lineHeight=ee(e,GH,A.lineHeight),this.listStyleImage=ee(e,WH,A.listStyleImage),this.listStylePosition=ee(e,$H,A.listStylePosition),this.listStyleType=ee(e,Ff,A.listStyleType),this.marginTop=ee(e,JH,A.marginTop),this.marginRight=ee(e,XH,A.marginRight),this.marginBottom=ee(e,YH,A.marginBottom),this.marginLeft=ee(e,zH,A.marginLeft),this.opacity=ee(e,gk,A.opacity);var i=ee(e,qH,A.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=ee(e,ZH,A.overflowWrap),this.paddingTop=ee(e,jH,A.paddingTop),this.paddingRight=ee(e,ek,A.paddingRight),this.paddingBottom=ee(e,Ak,A.paddingBottom),this.paddingLeft=ee(e,tk,A.paddingLeft),this.paintOrder=ee(e,Tk,A.paintOrder),this.position=ee(e,rk,A.position),this.textAlign=ee(e,nk,A.textAlign),this.textDecorationColor=ee(e,mk,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=ee(e,Bk,(r=A.textDecorationLine)!==null&&r!==void 0?r:A.textDecoration),this.textShadow=ee(e,ik,A.textShadow),this.textTransform=ee(e,sk,A.textTransform),this.transform=ee(e,ok,A.transform),this.transformOrigin=ee(e,fk,A.transformOrigin),this.visibility=ee(e,dk,A.visibility),this.webkitTextStrokeColor=ee(e,_k,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=ee(e,xk,A.webkitTextStrokeWidth),this.wordBreak=ee(e,hk,A.wordBreak),this.zIndex=ee(e,pk,A.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Ir(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 SA(this.display,4)||SA(this.display,33554432)||SA(this.display,268435456)||SA(this.display,536870912)||SA(this.display,67108864)||SA(this.display,134217728)},t}(),Lk=function(){function t(e,A){this.content=ee(e,Fk,A.content),this.quotes=ee(e,Ik,A.quotes)}return t}(),Vw=function(){function t(e,A){this.counterIncrement=ee(e,bk,A.counterIncrement),this.counterReset=ee(e,Uk,A.counterReset)}return t}(),ee=function(t,e,A){var n=new hw,r=A!==null&&typeof A<"u"?A.toString():e.initialValue;n.write(r);var i=new pw(n.read());switch(e.type){case 2:var s=i.parseComponentValue();return e.parse(t,je(s)?s.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Al.parse(t,i.parseComponentValue());case"color":return vr.parse(t,i.parseComponentValue());case"image":return Qf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return br(a)?a:VA;case"length-percentage":var c=i.parseComponentValue();return UA(c)?c:VA;case"time":return Rw.parse(t,i.parseComponentValue())}break}},Hk="data-html2canvas-debug",kk=function(t){var e=t.getAttribute(Hk);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},bf=function(t,e){var A=kk(t);return A===1||e===A},In=function(){function t(e,A){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,bf(A,3))debugger;this.styles=new Ok(e,window.getComputedStyle(A,null)),Mf(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Ha(this.context,A),bf(A,4)&&(this.flags|=16)}return t}(),Nk="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Pw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fo=typeof Uint8Array>"u"?[]:new Uint8Array(256),fl=0;fl<Pw.length;fl++)fo[Pw.charCodeAt(fl)]=fl;for(var Dk=function(t){var e=t.length*.75,A=t.length,n,r=0,i,s,a,c;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(n=0;n<A;n+=4)i=fo[t.charCodeAt(n)],s=fo[t.charCodeAt(n+1)],a=fo[t.charCodeAt(n+2)],c=fo[t.charCodeAt(n+3)],f[r++]=i<<2|s>>4,f[r++]=(s&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},Mk=function(t){for(var e=t.length,A=[],n=0;n<e;n+=2)A.push(t[n+1]<<8|t[n]);return A},Rk=function(t){for(var e=t.length,A=[],n=0;n<e;n+=4)A.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return A},di=5,Uf=6+5,vf=2,Kk=Uf-di,Gw=65536>>di,Vk=1<<di,If=Vk-1,Pk=1024>>di,Gk=Gw+Pk,Wk=Gk,$k=32,Jk=Wk+$k,Xk=65536>>Uf,Yk=1<<Kk,zk=Yk-1,Ww=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},qk=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},Zk=function(t,e){var A=Dk(t),n=Array.isArray(A)?Rk(A):new Uint32Array(A),r=Array.isArray(A)?Mk(A):new Uint16Array(A),i=24,s=Ww(r,i/2,n[4]/2),a=n[5]===2?Ww(r,(i+n[4])/2):qk(n,Math.ceil((i+n[4])/4));return new jk(n[0],n[1],n[2],n[3],s,a)},jk=function(){function t(e,A,n,r,i,s){this.initialValue=e,this.errorValue=A,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>di],A=(A<<vf)+(e&If),this.data[A];if(e<=65535)return A=this.index[Gw+(e-55296>>di)],A=(A<<vf)+(e&If),this.data[A];if(e<this.highStart)return A=Jk-Xk+(e>>Uf),A=this.index[A],A+=e>>di&zk,A=this.index[A],A=(A<<vf)+(e&If),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),$w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eN=typeof Uint8Array>"u"?[]:new Uint8Array(256),dl=0;dl<$w.length;dl++)eN[$w.charCodeAt(dl)]=dl;var AN=1,Sf=2,Tf=3,Jw=4,Xw=5,tN=7,Yw=8,_f=9,xf=10,zw=11,qw=12,Zw=13,jw=14,Of=15,nN=function(t){for(var e=[],A=0,n=t.length;A<n;){var r=t.charCodeAt(A++);if(r>=55296&&r<=56319&&A<n){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((r&1023)<<10)+(i&1023)+65536):(e.push(r),A--)}else e.push(r)}return e},rN=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var n=[],r=-1,i="";++r<A;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===A||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},iN=Zk(Nk),Gt="×",Lf="÷",sN=function(t){return iN.get(t)},oN=function(t,e,A){var n=A-2,r=e[n],i=e[A-1],s=e[A];if(i===Sf&&s===Tf)return Gt;if(i===Sf||i===Tf||i===Jw||s===Sf||s===Tf||s===Jw)return Lf;if(i===Yw&&[Yw,_f,zw,qw].indexOf(s)!==-1||(i===zw||i===_f)&&(s===_f||s===xf)||(i===qw||i===xf)&&s===xf||s===Zw||s===Xw||s===tN||i===AN)return Gt;if(i===Zw&&s===jw){for(;r===Xw;)r=e[--n];if(r===jw)return Gt}if(i===Of&&s===Of){for(var a=0;r===Of;)a++,r=e[--n];if(a%2===0)return Gt}return Lf},aN=function(t){var e=nN(t),A=e.length,n=0,r=0,i=e.map(sN);return{next:function(){if(n>=A)return{done:!0,value:null};for(var s=Gt;n<A&&(s=oN(e,i,++n))===Gt;);if(s!==Gt||n===A){var a=rN.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},lN=function(t){for(var e=aN(t),A=[],n;!(n=e.next()).done;)n.value&&A.push(n.value.slice());return A},cN=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),A.selectNode(n);var r=A.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===e)return!0}}return!1},uN=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 A=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,r=ka(n.data).map(function(c){return wA(c)}),i=0,s={},a=r.every(function(c,u){A.setStart(n,i),A.setEnd(n,i+c.length);var f=A.getBoundingClientRect();i+=c.length;var p=f.x>s.x||f.y>s.y;return s=f,u===0?!0:p});return t.body.removeChild(e),a},fN=function(){return typeof new Image().crossOrigin<"u"},dN=function(){return typeof new XMLHttpRequest().responseType=="string"},hN=function(t){var e=new Image,A=t.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),A.toDataURL()}catch{return!1}return!0},eC=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},pN=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var r=new Image,i=e.toDataURL();r.src=i;var s=Hf(A,A,0,0,r);return n.fillStyle="red",n.fillRect(0,0,A,A),AC(s).then(function(a){n.drawImage(a,0,0);var c=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=A+"px",eC(c)?AC(Hf(A,A,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),eC(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},Hf=function(t,e,A,n,r){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(r),s},AC=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){return e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},PA={get SUPPORT_RANGE_BOUNDS(){var t=cN(document);return Object.defineProperty(PA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=PA.SUPPORT_RANGE_BOUNDS&&uN(document);return Object.defineProperty(PA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=hN(document);return Object.defineProperty(PA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?pN(document):Promise.resolve(!1);return Object.defineProperty(PA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=fN();return Object.defineProperty(PA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=dN();return Object.defineProperty(PA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(PA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(PA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},ho=function(){function t(e,A){this.text=e,this.bounds=A}return t}(),gN=function(t,e,A,n){var r=wN(e,A),i=[],s=0;return r.forEach(function(a){if(A.textDecorationLine.length||a.trim().length>0)if(PA.SUPPORT_RANGE_BOUNDS){var c=tC(n,s,a.length).getClientRects();if(c.length>1){var u=kf(a),f=0;u.forEach(function(g){i.push(new ho(g,Wn.fromDOMRectList(t,tC(n,f+s,g.length).getClientRects()))),f+=g.length})}else i.push(new ho(a,Wn.fromDOMRectList(t,c)))}else{var p=n.splitText(a.length);i.push(new ho(a,mN(t,n))),n=p}else PA.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},mN=function(t,e){var A=e.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=Ha(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return Wn.EMPTY},tC=function(t,e,A){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,e),r.setEnd(t,e+A),r},kf=function(t){if(PA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(A){return A.segment})}return lN(t)},BN=function(t,e){if(PA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map(function(n){return n.segment})}return yN(t,e)},wN=function(t,e){return e.letterSpacing!==0?kf(t):BN(t,e)},CN=[32,160,4961,65792,65793,4153,4241],yN=function(t,e){for(var A=XO(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),a=ka(s),c="";a.forEach(function(u){CN.indexOf(u)===-1?c+=wA(u):(c.length&&n.push(c),n.push(wA(u)),c="")}),c.length&&n.push(c)}};!(r=A.next()).done;)i();return n},EN=function(){function t(e,A,n){this.text=QN(A.data,n.textTransform),this.textBounds=gN(e,this.text,n,A)}return t}(),QN=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(FN,bN);case 2:return t.toUpperCase();default:return t}},FN=/(^|\s|:|-|\(|\))([a-z])/g,bN=function(t,e,A){return t.length>0?e+A.toUpperCase():t},nC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e}(In),rC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e}(In),iC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=new XMLSerializer,s=Ha(A,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e}(In),sC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(In),Nf=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return e}(In),UN=[{type:15,flags:0,unit:"px",number:3}],vN=[{type:16,flags:0,number:50}],IN=function(t){return t.width>t.height?new Wn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Wn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},SN=function(t){var e=t.type===TN?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},hl="checkbox",pl="radio",TN="password",oC=707406591,Df=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=SN(n),(r.type===hl||r.type===pl)&&(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=IN(r.bounds)),r.type){case hl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=UN;break;case pl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=vN;break}return r}return e}(In),aC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e}(In),lC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.value=n.value,r}return e}(In),cC=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=fC(A,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?co(A,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Jn.TRANSPARENT,s=n.contentWindow.document.body?co(A,getComputedStyle(n.contentWindow.document.body).backgroundColor):Jn.TRANSPARENT;r.backgroundColor=Ir(i)?Ir(s)?r.styles.backgroundColor:s:i}}catch{}return r}return e}(In),_N=["OL","UL","MENU"],gl=function(t,e,A,n){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,dC(r)&&r.data.trim().length>0)A.textNodes.push(new EN(t,r,A.styles));else if(es(r))if(wC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return gl(t,a,A,n)});else{var s=uC(t,r);s.styles.isVisible()&&(xN(r,s,n)?s.flags|=4:ON(s.styles)&&(s.flags|=2),_N.indexOf(r.tagName)!==-1&&(s.flags|=8),A.elements.push(s),r.slot,r.shadowRoot?gl(t,r.shadowRoot,s,n):!Bl(r)&&!hC(r)&&!wl(r)&&gl(t,r,s,n))}},uC=function(t,e){return Kf(e)?new nC(t,e):pC(e)?new rC(t,e):hC(e)?new iC(t,e):LN(e)?new sC(t,e):HN(e)?new Nf(t,e):kN(e)?new Df(t,e):wl(e)?new aC(t,e):Bl(e)?new lC(t,e):mC(e)?new cC(t,e):new In(t,e)},fC=function(t,e){var A=uC(t,e);return A.flags|=4,gl(t,e,A,A),A},xN=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Rf(t)&&A.styles.isTransparent()},ON=function(t){return t.isPositioned()||t.isFloating()},dC=function(t){return t.nodeType===Node.TEXT_NODE},es=function(t){return t.nodeType===Node.ELEMENT_NODE},Mf=function(t){return es(t)&&typeof t.style<"u"&&!ml(t)},ml=function(t){return typeof t.className=="object"},LN=function(t){return t.tagName==="LI"},HN=function(t){return t.tagName==="OL"},kN=function(t){return t.tagName==="INPUT"},NN=function(t){return t.tagName==="HTML"},hC=function(t){return t.tagName==="svg"},Rf=function(t){return t.tagName==="BODY"},pC=function(t){return t.tagName==="CANVAS"},gC=function(t){return t.tagName==="VIDEO"},Kf=function(t){return t.tagName==="IMG"},mC=function(t){return t.tagName==="IFRAME"},BC=function(t){return t.tagName==="STYLE"},DN=function(t){return t.tagName==="SCRIPT"},Bl=function(t){return t.tagName==="TEXTAREA"},wl=function(t){return t.tagName==="SELECT"},wC=function(t){return t.tagName==="SLOT"},CC=function(t){return t.tagName.indexOf("-")>0},MN=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},t.prototype.getCounterValues=function(e){var A=this.counters[e];return A||[]},t.prototype.pop=function(e){var A=this;e.forEach(function(n){return A.counters[n].pop()})},t.prototype.parse=function(e){var A=this,n=e.counterIncrement,r=e.counterReset,i=!0;n!==null&&n.forEach(function(a){var c=A.counters[a.counter];c&&a.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=a.increment)});var s=[];return i&&r.forEach(function(a){var c=A.counters[a.counter];s.push(a.counter),c||(c=A.counters[a.counter]=[]),c.push(a.reset)}),s},t}(),yC={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"]},EC={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},RN={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},KN={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},As=function(t,e,A,n,r,i){return t<e||t>A?go(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},QC=function(t,e,A,n){var r="";do A||t--,r=n(t)+r,t/=e;while(t*e>=e);return r},CA=function(t,e,A,n,r){var i=A-e+1;return(t<0?"-":"")+(QC(Math.abs(t),i,n,function(s){return wA(Math.floor(s%i)+e)})+r)},hi=function(t,e,A){A===void 0&&(A=". ");var n=e.length;return QC(Math.abs(t),n,!1,function(r){return e[Math.floor(r%n)]})+A},ts=1,Tr=2,_r=4,po=8,Xn=function(t,e,A,n,r,i){if(t<-9999||t>9999)return go(t,4,r.length>0);var s=Math.abs(t),a=r;if(s===0)return e[0]+a;for(var c=0;s>0&&c<=4;c++){var u=s%10;u===0&&SA(i,ts)&&a!==""?a=e[u]+a:u>1||u===1&&c===0||u===1&&c===1&&SA(i,Tr)||u===1&&c===1&&SA(i,_r)&&t>100||u===1&&c>1&&SA(i,po)?a=e[u]+(c>0?A[c-1]:"")+a:u===1&&c>0&&(a=A[c-1]+a),s=Math.floor(s/10)}return(t<0?n:"")+a},FC="十百千萬",bC="拾佰仟萬",UC="マイナス",Vf="마이너스",go=function(t,e,A){var n=A?". ":"",r=A?"、":"",i=A?", ":"",s=A?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=CA(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return hi(t,"〇一二三四五六七八九",r);case 6:return As(t,1,3999,yC,3,n).toLowerCase();case 7:return As(t,1,3999,yC,3,n);case 8:return CA(t,945,969,!1,n);case 9:return CA(t,97,122,!1,n);case 10:return CA(t,65,90,!1,n);case 11:return CA(t,1632,1641,!0,n);case 12:case 49:return As(t,1,9999,EC,3,n);case 35:return As(t,1,9999,EC,3,n).toLowerCase();case 13:return CA(t,2534,2543,!0,n);case 14:case 30:return CA(t,6112,6121,!0,n);case 15:return hi(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return hi(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Xn(t,"零一二三四五六七八九",FC,"負",r,Tr|_r|po);case 47:return Xn(t,"零壹貳參肆伍陸柒捌玖",bC,"負",r,ts|Tr|_r|po);case 42:return Xn(t,"零一二三四五六七八九",FC,"负",r,Tr|_r|po);case 41:return Xn(t,"零壹贰叁肆伍陆柒捌玖",bC,"负",r,ts|Tr|_r|po);case 26:return Xn(t,"〇一二三四五六七八九","十百千万",UC,r,0);case 25:return Xn(t,"零壱弐参四伍六七八九","拾百千万",UC,r,ts|Tr|_r);case 31:return Xn(t,"영일이삼사오육칠팔구","십백천만",Vf,i,ts|Tr|_r);case 33:return Xn(t,"零一二三四五六七八九","十百千萬",Vf,i,0);case 32:return Xn(t,"零壹貳參四五六七八九","拾百千",Vf,i,ts|Tr|_r);case 18:return CA(t,2406,2415,!0,n);case 20:return As(t,1,19999,KN,3,n);case 21:return CA(t,2790,2799,!0,n);case 22:return CA(t,2662,2671,!0,n);case 22:return As(t,1,10999,RN,3,n);case 23:return hi(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return hi(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return CA(t,3302,3311,!0,n);case 28:return hi(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return hi(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return CA(t,3792,3801,!0,n);case 37:return CA(t,6160,6169,!0,n);case 38:return CA(t,4160,4169,!0,n);case 39:return CA(t,2918,2927,!0,n);case 40:return CA(t,1776,1785,!0,n);case 43:return CA(t,3046,3055,!0,n);case 44:return CA(t,3174,3183,!0,n);case 45:return CA(t,3664,3673,!0,n);case 46:return CA(t,3872,3881,!0,n);case 3:default:return CA(t,48,57,!0,n)}},vC="data-html2canvas-ignore",IC=function(){function t(e,A,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new MN,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,A){var n=this,r=VN(e,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,a=r.contentWindow,c=a.document,u=WN(r).then(function(){return lt(n,void 0,void 0,function(){var f,p;return ZA(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(YN),a&&(a.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==A.top||a.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-A.left,a.scrollY-A.top,0,0))),f=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,GN(c)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(c,p)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write(JN(document.doctype)+"<html></html>"),XN(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(e){if(bf(e,2))debugger;if(pC(e))return this.createCanvasClone(e);if(gC(e))return this.createVideoClone(e);if(BC(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return Kf(A)&&(Kf(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),CC(A)?this.createCustomElementClone(A):A},t.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return Pf(e.style,A),A},t.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}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 i=e.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=(A=e.getContext("webgl2"))!==null&&A!==void 0?A:e.getContext("webgl");if(a){var c=a.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.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 A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}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,A,n){(!es(A)||!DN(A)&&!A.hasAttribute(vC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!es(A)||!BC(A))&&e.appendChild(this.cloneNode(A,n))},t.prototype.cloneChildNodes=function(e,A,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(es(i)&&wC(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return r.appendChildNode(A,a,n)})}else this.appendChildNode(A,i,n)},t.prototype.cloneNode=function(e,A){if(dC(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&es(e)&&(Mf(e)||ml(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),s=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&Mf(r)&&(this.clonedReferenceElement=r),Rf(r)&&ZN(r);var c=this.counters.parse(new Vw(this.context,i)),u=this.resolvePseudoContent(e,r,s,mo.BEFORE);CC(e)&&(A=!0),gC(e)||this.cloneChildNodes(e,r,A),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(e,r,a,mo.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||ml(e))&&!mC(e)||A)&&Pf(i,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Bl(e)||wl(e))&&(Bl(r)||wl(r))&&(r.value=e.value),r}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,A,n,r){var i=this;if(n){var s=n.content,a=A.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Vw(this.context,n));var c=new Lk(this.context,n),u=a.createElement("html2canvaspseudoelement");Pf(n,u),c.content.forEach(function(p){if(p.type===0)u.appendChild(a.createTextNode(p.value));else if(p.type===22){var g=a.createElement("img");g.src=p.value,g.style.opacity="1",u.appendChild(g)}else if(p.type===18){if(p.name==="attr"){var B=p.values.filter(je);B.length&&u.appendChild(a.createTextNode(e.getAttribute(B[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(Zi),Q=w[0],b=w[1];if(Q&&je(Q)){var v=i.counters.getCounterValue(Q.value),_=b&&je(b)?Ff.parse(i.context,b.value):3;u.appendChild(a.createTextNode(go(v,_,!1)))}}else if(p.name==="counters"){var S=p.values.filter(Zi),Q=S[0],E=S[1],b=S[2];if(Q&&je(Q)){var L=i.counters.getCounterValues(Q.value),U=b&&je(b)?Ff.parse(i.context,b.value):3,N=E&&E.type===0?E.value:"",V=L.map(function(Be){return go(Be,U,!1)}).join(N);u.appendChild(a.createTextNode(V))}}}else if(p.type===20)switch(p.value){case"open-quote":u.appendChild(a.createTextNode(Kw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Kw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(p.value))}}),u.className=Gf+" "+Wf;var f=r===mo.BEFORE?" "+Gf:" "+Wf;return ml(A)?A.className.baseValue+=f:A.className+=f,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),mo;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(mo||(mo={}));var VN=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(vC,"true"),t.body.appendChild(A),A},PN=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},GN=function(t){return Promise.all([].slice.call(t.images,0).map(PN))},WN=function(t){return new Promise(function(e,A){var n=t.contentWindow;if(!n)return A("No window assigned for iframe");var r=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var i=setInterval(function(){r.body.childNodes.length>0&&r.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},$N=["all","d","content"],Pf=function(t,e){for(var A=t.length-1;A>=0;A--){var n=t.item(A);$N.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},JN=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},XN=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},YN=function(t){var e=t[0],A=t[1],n=t[2];e.scrollLeft=A,e.scrollTop=n},zN=":before",qN=":after",Gf="___html2canvas___pseudoelement_before",Wf="___html2canvas___pseudoelement_after",SC=`{
180
180
  content: "" !important;
181
181
  display: none !important;
182
- }`,qN=function(t){ZN(t,"."+Gf+YN+SC+`
183
- .`+Wf+zN+SC)},ZN=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},TC=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.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}(),jN=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(Jf(e)||nD(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return lt(this,void 0,void 0,function(){var A,n,r,i,s=this;return ZA(this,function(a){switch(a.label){case 0:return A=TC.isSameOrigin(e),n=!$f(e)&&this._options.useCORS===!0&&PA.SUPPORT_CORS_IMAGES&&!A,r=!$f(e)&&!A&&!Jf(e)&&typeof this._options.proxy=="string"&&PA.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!$f(e)&&!Jf(e)&&!r&&!n?[2]:(i=e,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(rD(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._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 A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,s){var a=PA.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),A._options.imageTimeout){var f=A._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),eD=/^data:image\/svg\+xml/i,AD=/^data:image\/.*;base64,/i,tD=/^data:image\/.*/i,nD=function(t){return PA.SUPPORT_SVG_DRAWING||!iD(t)},$f=function(t){return tD.test(t)},rD=function(t){return AD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},iD=function(t){return t.substr(-3).toLowerCase()==="svg"||eD.test(t)},Z=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),ns=function(t,e,A){return new Z(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},Cl=function(){function t(e,A,n,r){this.type=1,this.start=e,this.startControl=A,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,A){var n=ns(this.start,this.startControl,e),r=ns(this.startControl,this.endControl,e),i=ns(this.endControl,this.end,e),s=ns(n,r,e),a=ns(r,i,e),c=ns(s,a,e);return A?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},sD=function(){function t(e){var A=e.styles,n=e.bounds,r=lo(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(A.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(A.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(A.borderBottomLeftRadius,n.width,n.height),w=B[0],Q=B[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+Q)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,Q/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-Q,U=A.borderTopWidth,N=A.borderRightWidth,V=A.borderBottomWidth,D=A.borderLeftWidth,se=sA(A.paddingTop,e.bounds.width),Be=sA(A.paddingRight,e.bounds.width),ne=sA(A.paddingBottom,e.bounds.width),ce=sA(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?uA(n.left+D/3,n.top+U/3,i-D/3,s-U/3,Je.TOP_LEFT):new Z(n.left+D/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?uA(n.left+_,n.top+U/3,c-N/3,u-U/3,Je.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?uA(n.left+E,n.top+S,p-N/3,g-V/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-V/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?uA(n.left+D/3,n.top+L,w-D/3,Q-V/3,Je.BOTTOM_LEFT):new Z(n.left+D/3,n.top+n.height-V/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?uA(n.left+D*2/3,n.top+U*2/3,i-D*2/3,s-U*2/3,Je.TOP_LEFT):new Z(n.left+D*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?uA(n.left+_,n.top+U*2/3,c-N*2/3,u-U*2/3,Je.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?uA(n.left+E,n.top+S,p-N*2/3,g-V*2/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-V*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?uA(n.left+D*2/3,n.top+L,w-D*2/3,Q-V*2/3,Je.BOTTOM_LEFT):new Z(n.left+D*2/3,n.top+n.height-V*2/3),this.topLeftBorderStroke=i>0||s>0?uA(n.left+D/2,n.top+U/2,i-D/2,s-U/2,Je.TOP_LEFT):new Z(n.left+D/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?uA(n.left+_,n.top+U/2,c-N/2,u-U/2,Je.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?uA(n.left+E,n.top+S,p-N/2,g-V/2,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-V/2),this.bottomLeftBorderStroke=w>0||Q>0?uA(n.left+D/2,n.top+L,w-D/2,Q-V/2,Je.BOTTOM_LEFT):new Z(n.left+D/2,n.top+n.height-V/2),this.topLeftBorderBox=i>0||s>0?uA(n.left,n.top,i,s,Je.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?uA(n.left+_,n.top,c,u,Je.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?uA(n.left+E,n.top+S,p,g,Je.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?uA(n.left,n.top+L,w,Q,Je.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?uA(n.left+D,n.top+U,Math.max(0,i-D),Math.max(0,s-U),Je.TOP_LEFT):new Z(n.left+D,n.top+U),this.topRightPaddingBox=c>0||u>0?uA(n.left+Math.min(_,n.width-N),n.top+U,_>n.width+N?0:Math.max(0,c-N),Math.max(0,u-U),Je.TOP_RIGHT):new Z(n.left+n.width-N,n.top+U),this.bottomRightPaddingBox=p>0||g>0?uA(n.left+Math.min(E,n.width-D),n.top+Math.min(S,n.height-V),Math.max(0,p-N),Math.max(0,g-V),Je.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-V),this.bottomLeftPaddingBox=w>0||Q>0?uA(n.left+D,n.top+Math.min(L,n.height-V),Math.max(0,w-D),Math.max(0,Q-V),Je.BOTTOM_LEFT):new Z(n.left+D,n.top+n.height-V),this.topLeftContentBox=i>0||s>0?uA(n.left+D+ce,n.top+U+se,Math.max(0,i-(D+ce)),Math.max(0,s-(U+se)),Je.TOP_LEFT):new Z(n.left+D+ce,n.top+U+se),this.topRightContentBox=c>0||u>0?uA(n.left+Math.min(_,n.width+D+ce),n.top+U+se,_>n.width+D+ce?0:c-D+ce,u-(U+se),Je.TOP_RIGHT):new Z(n.left+n.width-(N+Be),n.top+U+se),this.bottomRightContentBox=p>0||g>0?uA(n.left+Math.min(E,n.width-(D+ce)),n.top+Math.min(S,n.height+U+se),Math.max(0,p-(N+Be)),g-(V+ne),Je.BOTTOM_RIGHT):new Z(n.left+n.width-(N+Be),n.top+n.height-(V+ne)),this.bottomLeftContentBox=w>0||Q>0?uA(n.left+D+ce,n.top+L,Math.max(0,w-(D+ce)),Q-(V+ne),Je.BOTTOM_LEFT):new Z(n.left+D+ce,n.top+n.height-(V+ne))}return t}(),Je;(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"})(Je||(Je={}));var uA=function(t,e,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,a=n*i,c=t+A,u=e+n;switch(r){case Je.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,e),new Z(c,e));case Je.TOP_RIGHT:return new Cl(new Z(t,e),new Z(t+s,e),new Z(c,u-a),new Z(c,u));case Je.BOTTOM_RIGHT:return new Cl(new Z(c,e),new Z(c,e+a),new Z(t+s,u),new Z(t,u));case Je.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,e+a),new Z(t,e))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},oD=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},aD=function(){function t(e,A,n){this.offsetX=e,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),lD=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),cD=function(t){return t.type===0},_C=function(t){return t.type===1},uD=function(t){return t.type===2},xC=function(t,e){return t.length===e.length?t.some(function(A,n){return A===e[n]}):!1},fD=function(t,e,A,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(e,A);case 1:return i.add(e+n,A);case 2:return i.add(e+n,A+r);case 3:return i.add(e,A+r)}return i})},OC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),LC=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new sD(this.container),this.container.styles.opacity<1&&this.effects.push(new lD(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new aD(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);xC(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!_C(c)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);xC(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return SA(c.target,e)})},t}(),Xf=function(t,e,A,n){t.container.elements.forEach(function(r){var i=SA(r.flags,4),s=SA(r.flags,2),a=new LC(r,t);SA(r.styles.display,2048)&&n.push(a);var c=SA(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?A:e,f=new OC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,Q){return p>w.element.container.styles.zIndex.order?(g=Q,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var B=0;u.positiveZIndex.some(function(w,Q){return p>=w.element.container.styles.zIndex.order?(B=Q+1,!1):B>0}),u.positiveZIndex.splice(B,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:A,c)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Xf(a,e,A,c);SA(r.flags,8)&&HC(r,c)})},HC=function(t,e){for(var A=t instanceof Nf?t.start:1,n=t instanceof Nf?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof sC&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=go(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},dD=function(t){var e=new LC(t,null),A=new OC(e),n=[];return Xf(e,A,A,n),HC(e.container,n),A},kC=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},hD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},pD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},gD=function(t,e){switch(e){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,e){var A=[];return Wt(t)?A.push(t.subdivide(.5,!1)):A.push(t),Wt(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},$t=function(t,e,A,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(A)?r.push(A.subdivide(.5,!0)):r.push(A),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},NC=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},bl=function(t){var e=t.styles,A=t.bounds,n=sA(e.paddingLeft,A.width),r=sA(e.paddingRight,A.width),i=sA(e.paddingTop,A.width),s=sA(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+s))},mD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},BD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},Yf=function(t,e,A){var n=mD(is(t.styles.backgroundOrigin,e),t),r=BD(is(t.styles.backgroundClip,e),t),i=wD(is(t.styles.backgroundSize,e),A,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,e),n.width-s,n.height-a),u=CD(is(t.styles.backgroundRepeat,e),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return je(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},wD=function(t,e,A){var n=e[0],r=e[1],i=e[2],s=t[0],a=t[1];if(!s)return[0,0];if(UA(s)&&a&&UA(a))return[sA(s,A.width),sA(a,A.height)];var c=Ul(i);if(je(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=A.width/A.height;return u<i!=(s.value===ji.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[A.width,A.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:A.width,b=p?r:A.height;return[Q,b]}if(c){var v=0,_=0;return UA(s)?v=sA(s,A.width):UA(a)&&(_=sA(a,A.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(UA(s)?S=sA(s,A.width):a&&UA(a)&&(E=sA(a,A.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:A.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:A.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},CD=function(t,e,A,n,r){var i=e[0],s=e[1],a=A[0],c=A[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},yD="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",ED=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=yD,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(e,A){var n=e+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,A)),this._data[n]},t}(),MC=function(){function t(e,A){this.context=e,this.options=A}return t}(),QD=1e4,FD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ED(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},e.prototype.applyEffect=function(A){this.ctx.save(),uD(A)&&(this.ctx.globalAlpha=A.opacity),cD(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),_C(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return lt(this,void 0,void 0,function(){return ZA(this,function(n){switch(n.label){case 0:if(SA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=kf(A.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,A.bounds.top+r),a+i.ctx.measureText(c).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=SD(A.fontFamily).join(", "),i=ao(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(A,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return ZA(this,function(B){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,A.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=NA(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=NA(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=NA(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=NA(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=bl(A),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,B,w,L,Q,b,v,_,S,E,L;return ZA(this,function(U){switch(U.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof nC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof rC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof iC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof cC&&n.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Df&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore())),bD(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],B=g[1],w=this.fontMetrics.getMetrics(E,B).baseline,this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=vD(n.styles.textAlign),L=bl(n),Q=0,n.styles.textAlign){case 1:Q+=L.width/2;break;case 2:Q+=L.width;break}b=L.add(Q,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!SA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+sA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(A.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,B,w,v,Q,b,v;return ZA(this,function(_){switch(_.label){case 0:if(SA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:_.sent(),n=0,r=A.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:_.sent(),i=0,s=A.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=A.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=A.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=A.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:B=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return B<w.length?(v=w[B],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return B++,[3,23];case 26:Q=0,b=A.positiveZIndex,_.label=27;case 27:return Q<b.length?(v=b[Q],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){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(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(A,0,0,A.width,A.height,0,0,n,r),a},e.prototype.renderBackgroundImage=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return ZA(this,function(u){switch(u.label){case 0:n=A.styles.backgroundImage.length-1,r=function(f){var p,g,B,se,Re,He,ce,Le,V,w,se,Re,He,ce,Le,Q,b,v,_,S,E,L,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA,AA;return ZA(this,function(ze){switch(ze.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,ze.label=1;case 1:return ze.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=ze.sent(),[3,4];case 3:return ze.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=Yf(A,n,[p.width,p.height,p.width/p.height]),se=B[0],Re=B[1],He=B[2],ce=B[3],Le=B[4],V=i.ctx.createPattern(i.resizeImage(p,ce,Le),"repeat"),i.renderRepeat(se,V,Re,He)),[3,6];case 5:cH(f)?(w=Yf(A,n,[null,null,null]),se=w[0],Re=w[1],He=w[2],ce=w[3],Le=w[4],Q=iH(f.angle,ce,Le),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=ce,L.height=Le,U=L.getContext("2d"),N=U.createLinearGradient(v,S,_,E),vw(f.stops,b).forEach(function(pA){return N.addColorStop(pA.stop,NA(pA.color))}),U.fillStyle=N,U.fillRect(0,0,ce,Le),ce>0&&Le>0&&(V=i.ctx.createPattern(L,"repeat"),i.renderRepeat(se,V,Re,He))):uH(f)&&(D=Yf(A,n,[null,null,null]),se=D[0],Be=D[1],ne=D[2],ce=D[3],Le=D[4],oA=f.position.length===0?[yf]:f.position,Re=sA(oA[0],ce),He=sA(oA[oA.length-1],Le),re=sH(f,Re,He,ce,Le),me=re[0],Xe=re[1],me>0&&Xe>0&&(ke=i.ctx.createRadialGradient(Be+Re,ne+He,0,Be+Re,ne+He,me),vw(f.stops,me*2).forEach(function(pA){return ke.addColorStop(pA.stop,NA(pA.color))}),i.path(se),i.ctx.fillStyle=ke,me!==Xe?(Ge=A.bounds.left+.5*A.bounds.width,Ke=A.bounds.top+.5*A.bounds.height,eA=Xe/me,AA=1/eA,i.ctx.save(),i.ctx.translate(Ge,Ke),i.ctx.transform(1,0,0,eA,0,0),i.ctx.translate(-Ge,-Ke),i.ctx.fillRect(Be,AA*(ne-Ke)+Ke,ce,Le*AA),i.ctx.restore()):i.ctx.fill())),ze.label=6;case 6:return n--,[2]}})},i=this,s=0,a=A.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,n,r){return lt(this,void 0,void 0,function(){return ZA(this,function(i){return this.path(kC(r,n)),this.ctx.fillStyle=NA(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return ZA(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=hD(i,r),this.path(s),this.ctx.fillStyle=NA(A),this.ctx.fill(),a=pD(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return ZA(this,function(g){switch(g.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=UD(is(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=NA(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=yl(A.curves),Q=B.inset?0:QD,b=fD(w,-Q+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=B.offsetX.number+Q,p.ctx.shadowOffsetY=B.offsetY.number,p.ctx.shadowColor=NA(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?NA(B.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,A.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,A.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,U,L,U;return ZA(this,function(N){return this.ctx.save(),a=gD(i,r),c=kC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?B=Math.abs(u-p):B=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,Q=n<3?n*2:n,s===3&&(w=n,Q=n),b=!0,B<=w*2?b=!1:B<=w*2+Q?(v=B/(2*w+Q),w*=v,Q*=v):(_=Math.floor((B+Q)/(w+Q)),S=(B-_*w)/(_-1),E=(B-(_+1)*w)/_,Q=E<=0||Math.abs(Q-S)<Math.abs(Q-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+Q]):this.ctx.setLineDash([w,Q])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=NA(A),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Wt(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=dD(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(MC),bD=function(t){return t instanceof lC||t instanceof aC?!0:t instanceof Df&&t.type!==pl&&t.type!==hl},UD=function(t,e){switch(t){case 0:return yl(e);case 2:return oD(e);case 1:default:return El(e)}},vD=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ID=["-apple-system","system-ui"],SD=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return ID.indexOf(e)===-1}):t},TD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n,r;return ZA(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,_D(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=NA(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}(MC),_D=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},xD=function(){function t(e){var A=e.id,n=e.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([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=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),OD=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new xD({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new jN(this,e)}return t.instanceCount=1,t}(),LD=function(t,e){return e===void 0&&(e={}),HD(t,e)};typeof window<"u"&&TC.setContext(window);var HD=function(t,e){return lt(void 0,void 0,void 0,function(){var A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,N,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA;return ZA(this,function(AA){switch(AA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(V=e.allowTaint)!==null&&V!==void 0?V:!1,imageTimeout:(D=e.imageTimeout)!==null&&D!==void 0?D:15e3,proxy:e.proxy,useCORS:(se=e.useCORS)!==null&&se!==void 0?se:!1},i=ju({logging:(Be=e.logging)!==null&&Be!==void 0?Be:!0,cache:e.cache},r),s={windowWidth:(ne=e.windowWidth)!==null&&ne!==void 0?ne:n.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:n.innerHeight,scrollX:(Le=e.scrollX)!==null&&Le!==void 0?Le:n.pageXOffset,scrollY:(oA=e.scrollY)!==null&&oA!==void 0?oA:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new OD(i,a),u=(Re=e.foreignObjectRendering)!==null&&Re!==void 0?Re:!1,f={allowTaint:(He=e.allowTaint)!==null&&He!==void 0?He:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new IC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(A,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=AA.sent(),w=Rf(g)||kN(g)?fO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=kD(c,g,e.backgroundColor),E={canvas:e.canvas,backgroundColor:S,scale:(me=(re=e.scale)!==null&&re!==void 0?re:n.devicePixelRatio)!==null&&me!==void 0?me:1,x:((Xe=e.x)!==null&&Xe!==void 0?Xe:0)+v,y:((ke=e.y)!==null&&ke!==void 0?ke:0)+_,width:(Ge=e.width)!==null&&Ge!==void 0?Ge:Math.ceil(Q),height:(Ke=e.height)!==null&&Ke!==void 0?Ke:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new TD(c,E),[4,N.render(g)]):[3,3];case 2:return L=AA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+Q+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=fC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),N=new FD(c,E),[4,N.render(U)];case 4:L=AA.sent(),AA.label=5;case 5:return(!((eA=e.removeContainer)!==null&&eA!==void 0)||eA)&&(IC.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},kD=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof A=="string"?co(t,A):A===null?Jn.TRANSPARENT:4294967295;return e===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const ND=h.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:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await LD(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...A.options})).toDataURL();if(n("update:modelValue",p),A.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=IB.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;A.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),DD={class:"link-sharing"},MD={key:0,class:"link-sharing__links container"},RD={class:"row"},KD={key:0,class:"col-12 col-md-6"},VD=["href"],PD={class:"caption"},GD={key:1,class:"col-12 col-md-6"},WD=["href"],$D={class:"caption"},JD={key:2,class:"col-12 col-md-6"},XD={class:"caption"},YD={key:3,class:"col-12 col-md-6"},zD=["href"],qD={class:"caption"},ZD={key:4,class:"col-12 col-md-6"},jD=["href"],eM={class:"caption"},AM={key:5,class:"col-12 col-md-6"},tM={class:"caption"},nM={key:6,class:"col-12 col-md-6"},rM=["href"],iM={class:"caption"},sM={key:1,class:"link-sharing__instructions pt-5"},oM={class:"row"},aM={class:"col-12 text-center py-0"},lM={class:"mb-5"},cM=t=>t.replace(/<(?:.|\n)*?>/gm,""),uM=h.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,A=h.ref(!1),n=h.computed(()=>encodeURIComponent(e.url));h.computed(()=>encodeURIComponent(e.media));const r=h.computed(()=>cM(e.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){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,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",DD,[A.value?(h.openBlock(),h.createElementBlock("div",sM,[h.createElementVNode("div",oM,[h.createElementVNode("div",aM,[h.createElementVNode("div",lM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",MD,[h.createElementVNode("div",RD,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",KD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",PD,h.toDisplayString(a.$t("sharing.facebook")),1)],8,VD)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",GD,[h.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"},[h.createVNode(u,{symbol:"bluesky-logo"}),h.createElementVNode("span",$D,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,WD)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",JD,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>A.value=!A.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",XD,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",YD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",qD,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,zD)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",ZD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",eM,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,jD)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",AM,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",tM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",nM,[h.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"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",iM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,rM)])):h.createCommentVNode("",!0)])]))])}}}),_3="",fM={class:"base-form"},dM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function A(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",fM,[h.createElementVNode("form",{ref:"form",onInput:e,onReset:A,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),x3="",hM={class:"modal-dialog__content d-flex flex-column"},pM={class:"modal-dialog__header d-flex p-3 border-bottom"},gM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},mM={class:"modal-dialog__body"},BM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},wM=h.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:A}){const n=t,r=A,i=h.ref();function s(){var g,B;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(B=i.value)==null||B.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),B=new Animation(g,document.timeline);B.play(),B.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const B=g.target;B&&B.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,B)=>{g&&g!==B?s():B&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",B=>{B.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),e({show:s,close:a,confirm:u,cancel:f}),(g,B)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",hM,[h.createElementVNode("div",pM,[t.title?(h.openBlock(),h.createElementBlock("h5",gM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",mM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",BM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),O3="",CM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],yM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],EM={key:0,class:"sortable-list__drag-handle"},QM={type:"button",class:"btn"},FM={key:0,class:"sortable-list__item"},bM=h.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"],setup(t,{emit:e}){const A=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=e,a=h.computed({get(){return A.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function B(_,S){}function w(_,S){i.value=r.value!==S?S:null}function Q(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U),innerHTML:c.value},null,40,CM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:N=>p(N,U),onDrag:N=>void 0,onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",EM,[h.createElementVNode("button",QM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,yM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",FM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),L3="",UM={class:"touch-wrapper__controls"},vM={class:"btn-group",role:"group"},IM=h.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=h.getCurrentInstance(),n=A&&A.appContext.config.globalProperties.$config,r=t,i=e,s=h.ref();function a(f){const p=r.modelValue+f;i("update:modelValue",p>=1?p:1)}function c(f){if(f.ctrlKey){f.preventDefault();const p=0-f.deltaY*.01;a(p)}}function u(f){f.preventDefault();const{scale:p}=f,g=p>1?p*.01:0-p;a(g)}return h.onMounted(()=>{s.value&&(s.value.addEventListener("wheel",c,!1),s.value.addEventListener("gesturestart",u,!1),s.value.addEventListener("gesturechange",u,!1),s.value.addEventListener("gestureend",u,!1))}),(f,p)=>{const g=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:s,class:"touch-wrapper"},[h.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[h.createElementVNode("div",UM,[h.createElementVNode("div",vM,[h.createElementVNode("button",{type:"button",class:"btn",onClick:p[0]||(p[0]=B=>a(-1))},[h.createVNode(g,{symbol:"minus","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[1]||(p[1]=B=>a(0))},[h.createVNode(g,{symbol:"maximize","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[2]||(p[2]=B=>a(1))},[h.createVNode(g,{symbol:"plus","base-path":h.unref(n).iconSprite},null,8,["base-path"])])])])]),h.renderSlot(f.$slots,"default")],512)}}}),H3="";Qe.Accordion=kE,Qe.AccordionItem=_E,Qe.AssetUploader=zx,Qe.AutoSuggest=m_,Qe.BaseButton=DE,Qe.BaseCamera=N_,Qe.BaseCarousel=NB,Qe.BaseForm=dM,Qe.BaseHeadline=yE,Qe.BaseImage=CE,Qe.BaseInput=VE,Qe.BaseParagraph=QE,Qe.CheckGroup=rQ,Qe.ColorPalette=nS,Qe.DomRenderer=ND,Qe.FileUpload=Rx,Qe.InputCheckbox=zE,Qe.InputColor=eS,Qe.InputDatetime=eQ,Qe.InputDropdown=f_,Qe.InputFile=gQ,Qe.InputTextarea=$E,Qe.LinkSharing=uM,Qe.LoadingSpinner=BE,Qe.MediaThumbnails=tO,Qe.ModalDialog=wM,Qe.ProgressSteps=uO,Qe.RadioGroup=fh,Qe.RteEditor=z1,Qe.SortableList=bM,Qe.SvgIcon=pE,Qe.TouchWrapper=IM,Qe.UploadGroup=kB,Object.defineProperty(Qe,Symbol.toStringTag,{value:"Module"})});
182
+ }`,ZN=function(t){jN(t,"."+Gf+zN+SC+`
183
+ .`+Wf+qN+SC)},jN=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},TC=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.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}(),eD=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(Jf(e)||rD(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return lt(this,void 0,void 0,function(){var A,n,r,i,s=this;return ZA(this,function(a){switch(a.label){case 0:return A=TC.isSameOrigin(e),n=!$f(e)&&this._options.useCORS===!0&&PA.SUPPORT_CORS_IMAGES&&!A,r=!$f(e)&&!A&&!Jf(e)&&typeof this._options.proxy=="string"&&PA.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!$f(e)&&!Jf(e)&&!r&&!n?[2]:(i=e,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(iD(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._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 A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,s){var a=PA.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),A._options.imageTimeout){var f=A._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),AD=/^data:image\/svg\+xml/i,tD=/^data:image\/.*;base64,/i,nD=/^data:image\/.*/i,rD=function(t){return PA.SUPPORT_SVG_DRAWING||!sD(t)},$f=function(t){return nD.test(t)},iD=function(t){return tD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},sD=function(t){return t.substr(-3).toLowerCase()==="svg"||AD.test(t)},Z=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),ns=function(t,e,A){return new Z(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},Cl=function(){function t(e,A,n,r){this.type=1,this.start=e,this.startControl=A,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,A){var n=ns(this.start,this.startControl,e),r=ns(this.startControl,this.endControl,e),i=ns(this.endControl,this.end,e),s=ns(n,r,e),a=ns(r,i,e),c=ns(s,a,e);return A?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},oD=function(){function t(e){var A=e.styles,n=e.bounds,r=lo(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(A.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(A.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(A.borderBottomLeftRadius,n.width,n.height),w=B[0],Q=B[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+Q)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,Q/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-Q,U=A.borderTopWidth,N=A.borderRightWidth,V=A.borderBottomWidth,D=A.borderLeftWidth,se=sA(A.paddingTop,e.bounds.width),Be=sA(A.paddingRight,e.bounds.width),ne=sA(A.paddingBottom,e.bounds.width),ce=sA(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?uA(n.left+D/3,n.top+U/3,i-D/3,s-U/3,Je.TOP_LEFT):new Z(n.left+D/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?uA(n.left+_,n.top+U/3,c-N/3,u-U/3,Je.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?uA(n.left+E,n.top+S,p-N/3,g-V/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-V/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?uA(n.left+D/3,n.top+L,w-D/3,Q-V/3,Je.BOTTOM_LEFT):new Z(n.left+D/3,n.top+n.height-V/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?uA(n.left+D*2/3,n.top+U*2/3,i-D*2/3,s-U*2/3,Je.TOP_LEFT):new Z(n.left+D*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?uA(n.left+_,n.top+U*2/3,c-N*2/3,u-U*2/3,Je.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?uA(n.left+E,n.top+S,p-N*2/3,g-V*2/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-V*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?uA(n.left+D*2/3,n.top+L,w-D*2/3,Q-V*2/3,Je.BOTTOM_LEFT):new Z(n.left+D*2/3,n.top+n.height-V*2/3),this.topLeftBorderStroke=i>0||s>0?uA(n.left+D/2,n.top+U/2,i-D/2,s-U/2,Je.TOP_LEFT):new Z(n.left+D/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?uA(n.left+_,n.top+U/2,c-N/2,u-U/2,Je.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?uA(n.left+E,n.top+S,p-N/2,g-V/2,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-V/2),this.bottomLeftBorderStroke=w>0||Q>0?uA(n.left+D/2,n.top+L,w-D/2,Q-V/2,Je.BOTTOM_LEFT):new Z(n.left+D/2,n.top+n.height-V/2),this.topLeftBorderBox=i>0||s>0?uA(n.left,n.top,i,s,Je.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?uA(n.left+_,n.top,c,u,Je.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?uA(n.left+E,n.top+S,p,g,Je.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?uA(n.left,n.top+L,w,Q,Je.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?uA(n.left+D,n.top+U,Math.max(0,i-D),Math.max(0,s-U),Je.TOP_LEFT):new Z(n.left+D,n.top+U),this.topRightPaddingBox=c>0||u>0?uA(n.left+Math.min(_,n.width-N),n.top+U,_>n.width+N?0:Math.max(0,c-N),Math.max(0,u-U),Je.TOP_RIGHT):new Z(n.left+n.width-N,n.top+U),this.bottomRightPaddingBox=p>0||g>0?uA(n.left+Math.min(E,n.width-D),n.top+Math.min(S,n.height-V),Math.max(0,p-N),Math.max(0,g-V),Je.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-V),this.bottomLeftPaddingBox=w>0||Q>0?uA(n.left+D,n.top+Math.min(L,n.height-V),Math.max(0,w-D),Math.max(0,Q-V),Je.BOTTOM_LEFT):new Z(n.left+D,n.top+n.height-V),this.topLeftContentBox=i>0||s>0?uA(n.left+D+ce,n.top+U+se,Math.max(0,i-(D+ce)),Math.max(0,s-(U+se)),Je.TOP_LEFT):new Z(n.left+D+ce,n.top+U+se),this.topRightContentBox=c>0||u>0?uA(n.left+Math.min(_,n.width+D+ce),n.top+U+se,_>n.width+D+ce?0:c-D+ce,u-(U+se),Je.TOP_RIGHT):new Z(n.left+n.width-(N+Be),n.top+U+se),this.bottomRightContentBox=p>0||g>0?uA(n.left+Math.min(E,n.width-(D+ce)),n.top+Math.min(S,n.height+U+se),Math.max(0,p-(N+Be)),g-(V+ne),Je.BOTTOM_RIGHT):new Z(n.left+n.width-(N+Be),n.top+n.height-(V+ne)),this.bottomLeftContentBox=w>0||Q>0?uA(n.left+D+ce,n.top+L,Math.max(0,w-(D+ce)),Q-(V+ne),Je.BOTTOM_LEFT):new Z(n.left+D+ce,n.top+n.height-(V+ne))}return t}(),Je;(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"})(Je||(Je={}));var uA=function(t,e,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,a=n*i,c=t+A,u=e+n;switch(r){case Je.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,e),new Z(c,e));case Je.TOP_RIGHT:return new Cl(new Z(t,e),new Z(t+s,e),new Z(c,u-a),new Z(c,u));case Je.BOTTOM_RIGHT:return new Cl(new Z(c,e),new Z(c,e+a),new Z(t+s,u),new Z(t,u));case Je.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,e+a),new Z(t,e))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},aD=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},lD=function(){function t(e,A,n){this.offsetX=e,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),cD=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),uD=function(t){return t.type===0},_C=function(t){return t.type===1},fD=function(t){return t.type===2},xC=function(t,e){return t.length===e.length?t.some(function(A,n){return A===e[n]}):!1},dD=function(t,e,A,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(e,A);case 1:return i.add(e+n,A);case 2:return i.add(e+n,A+r);case 3:return i.add(e,A+r)}return i})},OC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),LC=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new oD(this.container),this.container.styles.opacity<1&&this.effects.push(new cD(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new lD(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);xC(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!_C(c)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);xC(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return SA(c.target,e)})},t}(),Xf=function(t,e,A,n){t.container.elements.forEach(function(r){var i=SA(r.flags,4),s=SA(r.flags,2),a=new LC(r,t);SA(r.styles.display,2048)&&n.push(a);var c=SA(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?A:e,f=new OC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,Q){return p>w.element.container.styles.zIndex.order?(g=Q,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var B=0;u.positiveZIndex.some(function(w,Q){return p>=w.element.container.styles.zIndex.order?(B=Q+1,!1):B>0}),u.positiveZIndex.splice(B,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:A,c)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Xf(a,e,A,c);SA(r.flags,8)&&HC(r,c)})},HC=function(t,e){for(var A=t instanceof Nf?t.start:1,n=t instanceof Nf?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof sC&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=go(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},hD=function(t){var e=new LC(t,null),A=new OC(e),n=[];return Xf(e,A,A,n),HC(e.container,n),A},kC=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},pD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},gD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},mD=function(t,e){switch(e){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,e){var A=[];return Wt(t)?A.push(t.subdivide(.5,!1)):A.push(t),Wt(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},$t=function(t,e,A,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(A)?r.push(A.subdivide(.5,!0)):r.push(A),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},NC=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},bl=function(t){var e=t.styles,A=t.bounds,n=sA(e.paddingLeft,A.width),r=sA(e.paddingRight,A.width),i=sA(e.paddingTop,A.width),s=sA(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+s))},BD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},wD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},Yf=function(t,e,A){var n=BD(is(t.styles.backgroundOrigin,e),t),r=wD(is(t.styles.backgroundClip,e),t),i=CD(is(t.styles.backgroundSize,e),A,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,e),n.width-s,n.height-a),u=yD(is(t.styles.backgroundRepeat,e),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return je(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},CD=function(t,e,A){var n=e[0],r=e[1],i=e[2],s=t[0],a=t[1];if(!s)return[0,0];if(UA(s)&&a&&UA(a))return[sA(s,A.width),sA(a,A.height)];var c=Ul(i);if(je(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=A.width/A.height;return u<i!=(s.value===ji.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[A.width,A.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:A.width,b=p?r:A.height;return[Q,b]}if(c){var v=0,_=0;return UA(s)?v=sA(s,A.width):UA(a)&&(_=sA(a,A.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(UA(s)?S=sA(s,A.width):a&&UA(a)&&(E=sA(a,A.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:A.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:A.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},yD=function(t,e,A,n,r){var i=e[0],s=e[1],a=A[0],c=A[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},ED="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",QD=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=ED,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(e,A){var n=e+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,A)),this._data[n]},t}(),MC=function(){function t(e,A){this.context=e,this.options=A}return t}(),FD=1e4,bD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new QD(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},e.prototype.applyEffect=function(A){this.ctx.save(),fD(A)&&(this.ctx.globalAlpha=A.opacity),uD(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),_C(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return lt(this,void 0,void 0,function(){return ZA(this,function(n){switch(n.label){case 0:if(SA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=kf(A.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,A.bounds.top+r),a+i.ctx.measureText(c).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=TD(A.fontFamily).join(", "),i=ao(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(A,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return ZA(this,function(B){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,A.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=NA(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=NA(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=NA(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=NA(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=bl(A),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,B,w,L,Q,b,v,_,S,E,L;return ZA(this,function(U){switch(U.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof nC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof rC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof iC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof cC&&n.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Df&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore())),UD(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],B=g[1],w=this.fontMetrics.getMetrics(E,B).baseline,this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ID(n.styles.textAlign),L=bl(n),Q=0,n.styles.textAlign){case 1:Q+=L.width/2;break;case 2:Q+=L.width;break}b=L.add(Q,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!SA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+sA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(A.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,B,w,v,Q,b,v;return ZA(this,function(_){switch(_.label){case 0:if(SA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:_.sent(),n=0,r=A.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:_.sent(),i=0,s=A.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=A.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=A.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=A.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:B=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return B<w.length?(v=w[B],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return B++,[3,23];case 26:Q=0,b=A.positiveZIndex,_.label=27;case 27:return Q<b.length?(v=b[Q],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){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(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(A,0,0,A.width,A.height,0,0,n,r),a},e.prototype.renderBackgroundImage=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return ZA(this,function(u){switch(u.label){case 0:n=A.styles.backgroundImage.length-1,r=function(f){var p,g,B,se,Re,He,ce,Le,V,w,se,Re,He,ce,Le,Q,b,v,_,S,E,L,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA,AA;return ZA(this,function(ze){switch(ze.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,ze.label=1;case 1:return ze.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=ze.sent(),[3,4];case 3:return ze.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=Yf(A,n,[p.width,p.height,p.width/p.height]),se=B[0],Re=B[1],He=B[2],ce=B[3],Le=B[4],V=i.ctx.createPattern(i.resizeImage(p,ce,Le),"repeat"),i.renderRepeat(se,V,Re,He)),[3,6];case 5:uH(f)?(w=Yf(A,n,[null,null,null]),se=w[0],Re=w[1],He=w[2],ce=w[3],Le=w[4],Q=sH(f.angle,ce,Le),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=ce,L.height=Le,U=L.getContext("2d"),N=U.createLinearGradient(v,S,_,E),vw(f.stops,b).forEach(function(pA){return N.addColorStop(pA.stop,NA(pA.color))}),U.fillStyle=N,U.fillRect(0,0,ce,Le),ce>0&&Le>0&&(V=i.ctx.createPattern(L,"repeat"),i.renderRepeat(se,V,Re,He))):fH(f)&&(D=Yf(A,n,[null,null,null]),se=D[0],Be=D[1],ne=D[2],ce=D[3],Le=D[4],oA=f.position.length===0?[yf]:f.position,Re=sA(oA[0],ce),He=sA(oA[oA.length-1],Le),re=oH(f,Re,He,ce,Le),me=re[0],Xe=re[1],me>0&&Xe>0&&(ke=i.ctx.createRadialGradient(Be+Re,ne+He,0,Be+Re,ne+He,me),vw(f.stops,me*2).forEach(function(pA){return ke.addColorStop(pA.stop,NA(pA.color))}),i.path(se),i.ctx.fillStyle=ke,me!==Xe?(Ge=A.bounds.left+.5*A.bounds.width,Ke=A.bounds.top+.5*A.bounds.height,eA=Xe/me,AA=1/eA,i.ctx.save(),i.ctx.translate(Ge,Ke),i.ctx.transform(1,0,0,eA,0,0),i.ctx.translate(-Ge,-Ke),i.ctx.fillRect(Be,AA*(ne-Ke)+Ke,ce,Le*AA),i.ctx.restore()):i.ctx.fill())),ze.label=6;case 6:return n--,[2]}})},i=this,s=0,a=A.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,n,r){return lt(this,void 0,void 0,function(){return ZA(this,function(i){return this.path(kC(r,n)),this.ctx.fillStyle=NA(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return ZA(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=pD(i,r),this.path(s),this.ctx.fillStyle=NA(A),this.ctx.fill(),a=gD(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return ZA(this,function(g){switch(g.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=vD(is(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=NA(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=yl(A.curves),Q=B.inset?0:FD,b=dD(w,-Q+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=B.offsetX.number+Q,p.ctx.shadowOffsetY=B.offsetY.number,p.ctx.shadowColor=NA(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?NA(B.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,A.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,A.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,U,L,U;return ZA(this,function(N){return this.ctx.save(),a=mD(i,r),c=kC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?B=Math.abs(u-p):B=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,Q=n<3?n*2:n,s===3&&(w=n,Q=n),b=!0,B<=w*2?b=!1:B<=w*2+Q?(v=B/(2*w+Q),w*=v,Q*=v):(_=Math.floor((B+Q)/(w+Q)),S=(B-_*w)/(_-1),E=(B-(_+1)*w)/_,Q=E<=0||Math.abs(Q-S)<Math.abs(Q-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+Q]):this.ctx.setLineDash([w,Q])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=NA(A),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Wt(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=hD(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(MC),UD=function(t){return t instanceof lC||t instanceof aC?!0:t instanceof Df&&t.type!==pl&&t.type!==hl},vD=function(t,e){switch(t){case 0:return yl(e);case 2:return aD(e);case 1:default:return El(e)}},ID=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},SD=["-apple-system","system-ui"],TD=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return SD.indexOf(e)===-1}):t},_D=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n,r;return ZA(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,xD(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=NA(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}(MC),xD=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},OD=function(){function t(e){var A=e.id,n=e.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([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=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),LD=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new OD({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new eD(this,e)}return t.instanceCount=1,t}(),HD=function(t,e){return e===void 0&&(e={}),kD(t,e)};typeof window<"u"&&TC.setContext(window);var kD=function(t,e){return lt(void 0,void 0,void 0,function(){var A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,N,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA;return ZA(this,function(AA){switch(AA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(V=e.allowTaint)!==null&&V!==void 0?V:!1,imageTimeout:(D=e.imageTimeout)!==null&&D!==void 0?D:15e3,proxy:e.proxy,useCORS:(se=e.useCORS)!==null&&se!==void 0?se:!1},i=ju({logging:(Be=e.logging)!==null&&Be!==void 0?Be:!0,cache:e.cache},r),s={windowWidth:(ne=e.windowWidth)!==null&&ne!==void 0?ne:n.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:n.innerHeight,scrollX:(Le=e.scrollX)!==null&&Le!==void 0?Le:n.pageXOffset,scrollY:(oA=e.scrollY)!==null&&oA!==void 0?oA:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new LD(i,a),u=(Re=e.foreignObjectRendering)!==null&&Re!==void 0?Re:!1,f={allowTaint:(He=e.allowTaint)!==null&&He!==void 0?He:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new IC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(A,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=AA.sent(),w=Rf(g)||NN(g)?dO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=ND(c,g,e.backgroundColor),E={canvas:e.canvas,backgroundColor:S,scale:(me=(re=e.scale)!==null&&re!==void 0?re:n.devicePixelRatio)!==null&&me!==void 0?me:1,x:((Xe=e.x)!==null&&Xe!==void 0?Xe:0)+v,y:((ke=e.y)!==null&&ke!==void 0?ke:0)+_,width:(Ge=e.width)!==null&&Ge!==void 0?Ge:Math.ceil(Q),height:(Ke=e.height)!==null&&Ke!==void 0?Ke:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new _D(c,E),[4,N.render(g)]):[3,3];case 2:return L=AA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+Q+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=fC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),N=new bD(c,E),[4,N.render(U)];case 4:L=AA.sent(),AA.label=5;case 5:return(!((eA=e.removeContainer)!==null&&eA!==void 0)||eA)&&(IC.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},ND=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof A=="string"?co(t,A):A===null?Jn.TRANSPARENT:4294967295;return e===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const DD=h.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:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await HD(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...A.options})).toDataURL();if(n("update:modelValue",p),A.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=IB.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;A.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),MD={class:"link-sharing"},RD={key:0,class:"link-sharing__links container"},KD={class:"row"},VD={key:0,class:"col-12 col-md-6"},PD=["href"],GD={class:"caption"},WD={key:1,class:"col-12 col-md-6"},$D=["href"],JD={class:"caption"},XD={key:2,class:"col-12 col-md-6"},YD={class:"caption"},zD={key:3,class:"col-12 col-md-6"},qD=["href"],ZD={class:"caption"},jD={key:4,class:"col-12 col-md-6"},eM=["href"],AM={class:"caption"},tM={key:5,class:"col-12 col-md-6"},nM={class:"caption"},rM={key:6,class:"col-12 col-md-6"},iM=["href"],sM={class:"caption"},oM={key:1,class:"link-sharing__instructions pt-5"},aM={class:"row"},lM={class:"col-12 text-center py-0"},cM={class:"mb-5"},uM=t=>t.replace(/<(?:.|\n)*?>/gm,""),fM=h.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,A=h.ref(!1),n=h.computed(()=>encodeURIComponent(e.url));h.computed(()=>encodeURIComponent(e.media));const r=h.computed(()=>uM(e.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){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,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",MD,[A.value?(h.openBlock(),h.createElementBlock("div",oM,[h.createElementVNode("div",aM,[h.createElementVNode("div",lM,[h.createElementVNode("div",cM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",RD,[h.createElementVNode("div",KD,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",VD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",GD,h.toDisplayString(a.$t("sharing.facebook")),1)],8,PD)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",WD,[h.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"},[h.createVNode(u,{symbol:"bluesky-logo"}),h.createElementVNode("span",JD,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,$D)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",XD,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>A.value=!A.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",YD,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",zD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",ZD,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,qD)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",jD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",AM,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,eM)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",tM,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",nM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",rM,[h.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"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",sM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,iM)])):h.createCommentVNode("",!0)])]))])}}}),x3="",dM={class:"base-form"},hM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function A(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",dM,[h.createElementVNode("form",{ref:"form",onInput:e,onReset:A,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),O3="",pM={class:"modal-dialog__content d-flex flex-column"},gM={class:"modal-dialog__header d-flex p-3 border-bottom"},mM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},BM={class:"modal-dialog__body"},wM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},CM=h.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:A}){const n=t,r=A,i=h.ref();function s(){var g,B;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(B=i.value)==null||B.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),B=new Animation(g,document.timeline);B.play(),B.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const B=g.target;B&&B.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,B)=>{g&&g!==B?s():B&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",B=>{B.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),e({show:s,close:a,confirm:u,cancel:f}),(g,B)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",pM,[h.createElementVNode("div",gM,[t.title?(h.openBlock(),h.createElementBlock("h5",mM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",BM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",wM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),L3="",yM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],EM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],QM={key:0,class:"sortable-list__drag-handle"},FM={type:"button",class:"btn"},bM={key:0,class:"sortable-list__item"},UM=h.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"],setup(t,{emit:e}){const A=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=e,a=h.computed({get(){return A.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function B(_,S){}function w(_,S){i.value=r.value!==S?S:null}function Q(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U),innerHTML:c.value},null,40,yM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:N=>p(N,U),onDrag:N=>void 0,onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",QM,[h.createElementVNode("button",FM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,EM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",bM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),H3="",vM={class:"touch-wrapper__controls"},IM={class:"btn-group",role:"group"},SM=h.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=h.getCurrentInstance(),n=A&&A.appContext.config.globalProperties.$config,r=t,i=e,s=h.ref();function a(f){const p=r.modelValue+f;i("update:modelValue",f===0?1:p>=1?p:1)}function c(f){if(f.ctrlKey){f.preventDefault();const p=0-f.deltaY*.01;a(p)}}function u(f){f.preventDefault();const{scale:p}=f,g=p>1?p*.01:0-p;a(g)}return h.onMounted(()=>{s.value&&(s.value.addEventListener("wheel",c,!1),s.value.addEventListener("gesturestart",u,!1),s.value.addEventListener("gesturechange",u,!1),s.value.addEventListener("gestureend",u,!1))}),(f,p)=>{const g=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:s,class:"touch-wrapper"},[h.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[h.createElementVNode("div",vM,[h.createElementVNode("div",IM,[h.createElementVNode("button",{type:"button",class:"btn",onClick:p[0]||(p[0]=B=>a(-1))},[h.createVNode(g,{symbol:"minus","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[1]||(p[1]=B=>a(0))},[h.createVNode(g,{symbol:"maximize","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[2]||(p[2]=B=>a(1))},[h.createVNode(g,{symbol:"plus","base-path":h.unref(n).iconSprite},null,8,["base-path"])])])])]),h.renderSlot(f.$slots,"default")],512)}}}),k3="";Qe.Accordion=NE,Qe.AccordionItem=xE,Qe.AssetUploader=qx,Qe.AutoSuggest=B_,Qe.BaseButton=ME,Qe.BaseCamera=D_,Qe.BaseCarousel=NB,Qe.BaseForm=hM,Qe.BaseHeadline=EE,Qe.BaseImage=CE,Qe.BaseInput=PE,Qe.BaseParagraph=FE,Qe.CheckGroup=iQ,Qe.ColorPalette=rS,Qe.DomRenderer=DD,Qe.FileUpload=Kx,Qe.InputCheckbox=qE,Qe.InputColor=AS,Qe.InputDatetime=AQ,Qe.InputDropdown=d_,Qe.InputFile=mQ,Qe.InputTextarea=JE,Qe.LinkSharing=fM,Qe.LoadingSpinner=BE,Qe.MediaThumbnails=nO,Qe.ModalDialog=CM,Qe.ProgressSteps=fO,Qe.RadioGroup=fh,Qe.RteEditor=q1,Qe.SortableList=UM,Qe.SvgIcon=pE,Qe.TouchWrapper=SM,Qe.UploadGroup=kB,Object.defineProperty(Qe,Symbol.toStringTag,{value:"Module"})});