ablok-components 0.1.145 → 0.1.147

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(vA,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):(vA=typeof globalThis<"u"?globalThis:vA||self,h(vA.AblokComponents={},vA.Vue,vA.core))})(this,function(vA,h,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=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(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",fE,[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,dE)]))],2))}}),XG="",pE={class:"loading-spinner d-block"},gE=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),mE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",pE,[gE,h.renderSlot(A.$slots,"default")]))}}),YG="",BE=["src","alt"],wE=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 A=h.ref(!1);return(e,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&&!A.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,BE)],2)):h.createCommentVNode("",!0)}}}),zG="",CE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.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"]))}}),yE=["innerHTML"],EE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function Be(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Be()},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:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",QE,[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",UE,h.toDisplayString(t.title),1)])],10,bE)],8,FE),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",IE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),qG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return h.openBlock(),h.createElementBlock("div",OE,[h.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["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 A=t,e=h.computed(()=>A.caption&&!A.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),e.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,kE)}}}),ZG="",NE={class:"input-group input__input-group"},ME=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.computed({get(){return e.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",NE,[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,ME),[[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,RE)):h.createCommentVNode("",!0)])],2))}}),jG="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.computed({get(){return e.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,VE),[[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,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=h.createElementVNode("span",{class:"input__error"},"error",-1),YE=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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue||e.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,$E),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),A3=`: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"},qE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],ZE=["for","innerHTML"],jE=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.computed({get(){const i=e.modelValue&&new Date(`${e.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,qE),[[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,ZE)):h.createCommentVNode("",!0)])],2))}}),AQ={class:"check-group"},eQ=["id","name","value","disabled","read-only","required"],tQ=["for","innerHTML"],nQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A;h.ref([]);const r=h.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>e.options&&e.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:e.modelValue&&e.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,eQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,tQ)]))),128))]))}}),e3="",rQ={class:"input radio-group"},iQ=["id","name","value","checked","disabled","read-only","required","onChange"],sQ=["for","innerHTML"],oQ=["for"],aQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A;h.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",rQ,[(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,iQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,sQ)]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,oQ)):h.createCommentVNode("",!0)])]))}}),t3="",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:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A;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(()=>e.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 Me(t){this.content=t}Me.prototype={constructor:Me,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new Me(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new Me(e)},addToStart:function(t,A){return new Me([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Me(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new Me(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=Me.from(t),t.size?new Me(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Me.from(t),t.size?new Me(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Me.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},Me.from=function(t){if(t instanceof Me)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Me(A)};function fh(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=fh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function dh(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,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++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=dh(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class Y{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,A-f),Math.min(c.content.size,e-f),n,r+f)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{let u=a.isText?a.text.slice(Math.max(A,c)-c,e-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(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new Y(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(A,e){return A==e?Y.empty:A==0&&e==this.content.length?this:new Y(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new Y(r,i)}addToStart(A){return new Y([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new Y(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))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(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return fh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return dh(this,A,e,n)}findIndex(A,e=-1){if(A==0)return ko(0,A);if(A==this.size)return ko(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>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(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return Y.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return Y.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new Y(e||A,n)}static from(A){if(!A)return Y.empty;if(A instanceof Y)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new Y([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,A){return gc.index=t,gc.offset=A,gc}function Do(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!Do(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Do(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let ZA=class ah{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&Do(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return ah.none;if(A instanceof ah)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};ZA.none=[];class No extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=ph(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(hh(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(Y.empty,0,0);function hh(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(hh(i.content,A-r-1,e-r-1)))}function ph(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=ph(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function mQ(t,A,e){if(e.openStart>t.depth)throw new No("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new No("Inconsistent open depths");return gh(t,A,e,0)}function gh(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=gh(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=BQ(e,t);return Gr(i,Bh(t,s,a,A,n))}else return Gr(i,Mo(t,A,n))}function mh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function mc(t,A,e){let n=t.node(e);return mh(n,A.node(e)),n}function Vr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function Qs(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(Vr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Vr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Vr(A.nodeBefore,n)}function Gr(t,A){return t.type.checkContent(A),t.copy(A)}function Bh(t,A,e,n,r){let i=t.depth>r&&mc(t,A,r+1),s=n.depth>r&&mc(e,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(mh(i,s),Vr(Gr(i,Bh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Mo(t,A,r+1)),a),Qs(A,e,r,a),s&&Vr(Gr(s,Mo(e,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,A,e){let n=[];if(Qs(null,t,e,n),t.depth>e){let r=mc(t,A,e+1);Vr(Gr(r,Mo(t,A,e+1)),n)}return Qs(A,null,e,n),new Y(n)}function BQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Fs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return ZA.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);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(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.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(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new Ro(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){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(e,n,i)}static resolveCached(A,e){for(let r=0;r<Bc.length;r++){let i=Bc[r];if(i.pos==e&&i.doc==A)return i}let n=Bc[wc]=Fs.resolve(A,e);return wc=(wc+1)%wQ,n}}let Bc=[],wc=0,wQ=12;class Ro{constructor(A,e,n){this.$from=A,this.$to=e,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(A,e,n,r=ZA.none){this.type=A,this.attrs=e,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(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&Do(this.attrs,e||A.defaultAttrs||CQ)&&ZA.sameSet(this.marks,n||ZA.none)}copy(A=null){return A==this.content?this:new lh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new lh(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),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(A,e,n){return mQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return Fs.resolveCached(this,A)}resolveNoCache(A){return Fs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,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 A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),wh(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);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(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=ZA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!ZA.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=Y.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(A,e,n,r){if(super(A,e,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):wh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new Ko(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ko(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function wh(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class $r{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new yQ(A,e);if(n.next==null)return $r.empty;let r=Ch(n);n.next&&n.err("Unexpected trailing text");let i=IQ(vQ(r));return SQ(i,n),i}matchType(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||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(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){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 e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
3
- `)}}$r.empty=new $r(!0);class yQ{constructor(A,e){this.string=A,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=A.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(A){return this.next==A&&(this.pos++||!0)}err(A){throw new SyntaxError(A+" (in content expression '"+this.string+"')")}}function Ch(t){let A=[];do A.push(EQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function EQ(t){let A=[];do A.push(QQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function QQ(t){let A=UQ(t);for(;;)if(t.eat("+"))A={type:"plus",expr:A};else if(t.eat("*"))A={type:"star",expr:A};else if(t.eat("?"))A={type:"opt",expr:A};else if(t.eat("{"))A=FQ(t,A);else break;return A}function yh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function FQ(t,A){let e=yh(t),n=e;return t.eat(",")&&(t.next!="}"?n=yh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function bQ(t,A){let e=t.nodeTypes,n=e[A];if(n)return[n];let r=[];for(let i in e){let s=e[i];s.groups.indexOf(A)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+A+"' found"),r}function UQ(t){if(t.eat("(")){let A=Ch(t);return t.eat(")")||t.err("Missing closing paren"),A}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let A=bQ(t,t.next).map(e=>(t.inline==null?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,A.length==1?A[0]:{type:"choice",exprs:A}}}function vQ(t){let A=[[]];return r(i(t,0),e()),A;function e(){return A.push([])-1}function n(s,a,c){let u={term:c,to:a};return A[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=e())}else if(s.type=="star"){let c=e();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=e();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=e();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=e();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 Eh(t,A){return A-t}function Qh(t,A){let e=[];return n(A),e.sort(Eh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);e.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&e.indexOf(c)==-1&&n(c)}}}function IQ(t){let A=Object.create(null);return e(Qh(t,0));function e(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]);Qh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=A[n.join(",")]=new $r(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Eh);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function SQ(t,A){for(let e=0,n=[t];e<n.length;e++){let r=n[e],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&&A.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Fh(t){let A=Object.create(null);for(let e in t){let n=t[e];if(!n.hasDefault)return null;A[e]=n.default}return A}function bh(t,A){let e=Object.create(null);for(let n in t){let r=A&&A[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)}e[n]=r}return e}function Uh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new TQ(t[e]);return A}let vh=class uE{constructor(A,e,n){this.name=A,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Uh(n.attrs),this.defaultAttrs=Fh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||A=="text"),this.isText=A=="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 A in this.attrs)if(this.attrs[A].isRequired)return!0;return!1}compatibleContent(A){return this==A||this.contentMatch.compatible(A.contentMatch)}computeAttrs(A){return!A&&this.defaultAttrs?this.defaultAttrs:bh(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(A),Y.from(e),ZA.setFrom(n))}createChecked(A=null,e,n){return e=Y.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,ZA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=Y.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e)}let r=this.contentMatch.matchFragment(e),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,A,e.append(i),ZA.setFrom(n)):null}validContent(A){let e=this.contentMatch.matchFragment(A);if(!e||!e.validEnd)return!1;for(let n=0;n<A.childCount;n++)if(!this.allowsMarks(A.child(n).marks))return!1;return!0}checkContent(A){if(!this.validContent(A))throw new RangeError(`Invalid content for node ${this.name}: ${A.toString().slice(0,50)}`)}allowsMarkType(A){return this.markSet==null||this.markSet.indexOf(A)>-1}allowsMarks(A){if(this.markSet==null)return!0;for(let e=0;e<A.length;e++)if(!this.allowsMarkType(A[e].type))return!1;return!0}allowedMarks(A){if(this.markSet==null)return A;let e;for(let n=0;n<A.length;n++)this.allowsMarkType(A[n].type)?e&&e.push(A[n]):e||(e=A.slice(0,n));return e?e.length?e:ZA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new uE(i,e,s));let r=e.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(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Po{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=Uh(r.attrs),this.excluded=null;let i=Fh(this.attrs);this.instance=i?new ZA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new ZA(this,bh(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Po(i,r++,e,s)),n}removeFromSet(A){for(var e=0;e<A.length;e++)A[e].type==this&&(A=A.slice(0,e).concat(A.slice(e+1)),e--);return A}isInSet(A){for(let e=0;e<A.length;e++)if(A[e].type==this)return A[e]}excludes(A){return this.excluded.indexOf(A)>-1}}class _Q{constructor(A){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=Me.from(A.nodes),e.marks=Me.from(A.marks||{}),this.nodes=vh.compile(this.spec.nodes,this),this.marks=Po.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?Ih(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==""?[]:Ih(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(A,e=null,n,r){if(typeof A=="string")A=this.nodeType(A);else if(A instanceof vh){if(A.schema!=this)throw new RangeError("Node type from different schema used ("+A.name+")")}else throw new RangeError("Invalid node type: "+A);return A.createChecked(e,n,r)}text(A,e){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,A,ZA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Wr.fromJSON(this,A)}markFromJSON(A){return ZA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Ih(t,A){let e=[];for(let n=0;n<A.length;n++){let r=A[n],i=t.marks[r],s=i;if(i)e.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)&&e.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+A[n]+"'")}return e}function xQ(t){return t.tag!=null}function OQ(t){return t.style!=null}class Fi{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.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=A.nodes[n.node];return r.contentMatch.matchType(r)})}parse(A,e={}){let n=new xh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new xh(this,e,!0);return n.addAll(A,e.from,e.to),j.maxOpen(n.finish())}matchTag(A,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(kQ(A,i.tag)&&(i.namespace===void 0||A.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(A);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(A,e,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(A)!=0||s.context&&!n.matchesContext(s.context)||a.length>A.length&&(a.charCodeAt(A.length)!=61||a.slice(A.length+1)!=e))){if(s.getAttrs){let c=s.getAttrs(e);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(A){let e=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<e.length;s++){let a=e[s];if((a.priority==null?50:a.priority)<i)break}e.splice(s,0,r)}for(let r in A.marks){let i=A.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in A.nodes){let i=A.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Fi(A,Fi.schemaRules(A)))}}const Sh={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},Th={ol:!0,ul:!0},Vo=1,Go=2,bs=4;function _h(t,A,e){return A!=null?(A?Vo:0)|(A==="full"?Go:0):t&&t.whitespace=="pre"?Vo|Go:e&~bs}class Wo{constructor(A,e,n,r,i,s,a){this.type=A,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=ZA.none,this.stashMarks=[],this.match=s||(a&bs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(Y.from(A));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(A.type))?(this.match=n,r):null}}return this.match.findWrapping(A.type)}finish(A){if(!(this.options&Vo)){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 e=Y.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(A){for(let e=this.stashMarks.length-1;e>=0;e--)if(A.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(A){for(let e=0,n=this.pendingMarks;e<n.length;e++){let r=n[e];(this.type?this.type.allowsMarkType(r.type):DQ(r.type,A))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(A){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:A.parentNode&&!Sh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class xh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=_h(null,e.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,ZA.none,ZA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,ZA.none,ZA.none,!0,null,s):i=new Wo(A.schema.topNodeType,null,ZA.none,ZA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){A.nodeType==3?this.addTextNode(A):A.nodeType==1&&this.addElement(A)}withStyleRules(A,e){let n=A.style;if(!n||!n.length)return e();let r=this.readStyles(A.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]);e();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(A){let e=A.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Vo)n.options&Go?e=e.replace(/\r\n?/g,`
4
- `):e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=A.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(A)}else this.findInside(A)}addElement(A,e){let n=A.nodeName.toLowerCase(),r;Th.hasOwnProperty(n)&&this.parser.normalizeLists&&HQ(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:LQ.hasOwnProperty(n))this.findInside(A),this.ignoreFallback(A);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(A=i.skip);let s,a=this.top,c=this.needsBlock;if(Sh.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(!A.firstChild){this.leafFallback(A);return}i&&i.skip?this.addAll(A):this.withStyleRules(A,()=>this.addAll(A)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(A,()=>{this.addElementByRule(A,i,i.consuming===!1?r:void 0)})}leafFallback(A){A.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(A.ownerDocument.createTextNode(`
5
- `))}ignoreFallback(A){A.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(A){let e=ZA.none,n=ZA.none;for(let r=0,i=A.length;r<i;r++){let s=A.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,A.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))}):e=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(e),c.consuming===!1)a=c;else break}}return[e,n]}addElementByRule(A,e,n){let r,i,s;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(A):r=this.enter(i,e.attrs||null,e.preserveWhitespace)):(s=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(A);else if(n)this.addElement(A,n);else if(e.getContent)this.findInside(A),e.getContent(A,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=A;typeof e.contentElement=="string"?c=A.querySelector(e.contentElement):typeof e.contentElement=="function"?c=e.contentElement(A):e.contentElement&&(c=e.contentElement),this.findAround(A,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(A,e,n){let r=e||0;for(let i=e?A.childNodes[e]:A.firstChild,s=n==null?null:A.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(A,r),this.addDOM(i);this.findAtPoint(A,r)}findPlace(A){let e,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(A);if(s&&(!e||e.length>s.length)&&(e=s,n=i,!s.length)||i.solid)break}if(!e)return!1;this.sync(n);for(let r=0;r<e.length;r++)this.enterInner(e[r],null,!1);return!0}insertNode(A){if(A.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(A)){this.closeExtra();let e=this.top;e.applyPending(A.type),e.match&&(e.match=e.match.matchType(A.type));let n=e.activeMarks;for(let r=0;r<A.marks.length;r++)(!e.type||e.type.allowsMarkType(A.marks[r].type))&&(n=A.marks[r].addToSet(n));return e.content.push(A.mark(n)),!0}return!1}enter(A,e,n){let r=this.findPlace(A.create(e));return r&&this.enterInner(A,e,!0,n),r}enterInner(A,e=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(A),i.match=i.match&&i.match.matchType(A);let s=_h(A,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new Wo(A,e,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(A=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(A));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(A){for(let e=this.open;e>=0;e--)if(this.nodes[e]==A)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let A=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let r=n.length-1;r>=0;r--)A+=n[r].nodeSize;e&&A++}return A}findAtPoint(A,e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==A&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)}findInside(A){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].pos==null&&A.nodeType==1&&A.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(A,e,n){if(A!=e&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&A.nodeType==1&&A.contains(this.find[r].node)&&e.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(A){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==A&&(this.find[e].pos=this.currentPos-(A.nodeValue.length-this.find[e].offset))}matchesContext(A){if(A.indexOf("|")>-1)return A.split(/\s*\|\s*/).some(this.matchesContext,this);let e=A.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=e[a];if(u==""){if(a==e.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(e.length-1,this.open)}textblockFromContext(){let A=this.options.context;if(A)for(let e=A.depth;e>=0;e--){let n=A.node(e).contentMatchAt(A.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let n=this.parser.schema.nodes[e];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(A){let e=NQ(A,this.top.pendingMarks);e&&this.top.stashMarks.push(e),this.top.pendingMarks=A.addToSet(this.top.pendingMarks)}removePendingMark(A,e){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(A)>-1)r.pendingMarks=A.removeFromSet(r.pendingMarks);else{r.activeMarks=A.removeFromSet(r.activeMarks);let s=r.popFromStashMark(A);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function HQ(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&Th.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function kQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function Oh(t){let A={};for(let e in t)A[e]=t[e];return A}function DQ(t,A){let e=A.schema.nodes;for(let n in e){let r=e[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==A||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function NQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class mn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=Cc(e).createDocumentFragment());let r=n,i=[];return A.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,e);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,e))}),n}serializeNodeInner(A,e){let{dom:n,contentDOM:r}=mn.renderSpec(Cc(e),this.nodes[A.type.name](A));if(r){if(A.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(A.content,e,r)}return n}serializeNode(A,e={}){let n=this.serializeNodeInner(A,e);for(let r=A.marks.length-1;r>=0;r--){let i=this.serializeMark(A.marks[r],A.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(A,e,n={}){let r=this.marks[A.type.name];return r&&mn.renderSpec(Cc(n),r(A,e))}static renderSpec(A,e,n=null){if(typeof e=="string")return{dom:A.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?A.createElementNS(n,r):A.createElement(r),c=e[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<e.length;f++){let p=e[f];if(p===0){if(f<e.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(A,p,n);if(a.appendChild(g),B){if(s)throw new RangeError("Multiple content holes");s=B}}}return{dom:a,contentDOM:s}}static fromSchema(A){return A.cached.domSerializer||(A.cached.domSerializer=new mn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Lh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Lh(A.marks)}}function Lh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function Cc(t){return t.document||window.document}const Hh=65535,kh=Math.pow(2,16);function MQ(t,A){return t+A*kh}function Dh(t){return t&Hh}function RQ(t){return(t-(t&Hh))/kh}const Nh=1,Mh=2,$o=4,Rh=8;class yc{constructor(A,e,n){this.pos=A,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Rh)>0}get deletedBefore(){return(this.delInfo&(Nh|$o))>0}get deletedAfter(){return(this.delInfo&(Mh|$o))>0}get deletedAcross(){return(this.delInfo&$o)>0}}class Ut{constructor(A,e=!1){if(this.ranges=A,this.inverted=e,!A.length&&Ut.empty)return Ut.empty}recover(A){let e=0,n=Dh(A);if(!this.inverted)for(let r=0;r<n;r++)e+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+e+RQ(A)}mapResult(A,e=1){return this._map(A,e,!1)}map(A,e=1){return this._map(A,e,!0)}_map(A,e,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>A)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(A<=p){let g=u?A==c?-1:A==p?1:e:e,B=c+r+(g<0?0:f);if(n)return B;let w=A==(e<0?c:p)?null:MQ(a/3,A-c),Q=A==c?Mh:A==p?Nh:$o;return(e<0?A!=c:A!=p)&&(Q|=Rh),new yc(B,Q,w)}r+=f-u}return n?A+r:new yc(A+r,0,null)}touches(A,e){let n=0,r=Dh(e),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>A)break;let u=this.ranges[a+i],f=c+u;if(A<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(A){let e=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+e],f=this.ranges[r+n];A(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(A){return A==0?Ut.empty:new Ut(A<0?[0,-A,0]:[0,0,A])}}Ut.empty=new Ut([]);class bi{constructor(A=[],e,n=0,r=A.length){this.maps=A,this.mirror=e,this.from=n,this.to=r}slice(A=0,e=this.maps.length){return new bi(this.maps,this.mirror,A,e)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(A,e){this.to=this.maps.push(A),e!=null&&this.setMirror(this.maps.length-1,e)}appendMapping(A){for(let e=0,n=this.maps.length;e<A.maps.length;e++){let r=A.getMirror(e);this.appendMap(A.maps[e],r!=null&&r<e?n+r:void 0)}}getMirror(A){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==A)return this.mirror[e+(e%2?-1:1)]}}setMirror(A,e){this.mirror||(this.mirror=[]),this.mirror.push(A,e)}appendMappingInverted(A){for(let e=A.maps.length-1,n=this.maps.length+A.maps.length;e>=0;e--){let r=A.getMirror(e);this.appendMap(A.maps[e].invert(),r!=null&&r>e?n-r-1:void 0)}}invert(){let A=new bi;return A.appendMappingInverted(this),A}map(A,e=1){if(this.mirror)return this._map(A,e,!0);for(let n=this.from;n<this.to;n++)A=this.maps[n].map(A,e);return A}mapResult(A,e=1){return this._map(A,e,!1)}_map(A,e,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(A,e);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,A=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,A=a.pos}return n?A:new yc(A,r,null)}}const Ec=Object.create(null);class Je{getMap(){return Ut.empty}merge(A){return null}static fromJSON(A,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Ec[e.stepType];if(!n)throw new RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(A,e)}static jsonID(A,e){if(A in Ec)throw new RangeError("Duplicate use of step JSON ID "+A);return Ec[A]=e,e.prototype.jsonID=A,e}}class Qe{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new Qe(A,null)}static fail(A){return new Qe(null,A)}static fromReplace(A,e,n,r){try{return Qe.ok(A.replace(e,n,r))}catch(i){if(i instanceof No)return Qe.fail(i.message);throw i}}}function Qc(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Qc(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return Y.fromArray(n)}class sr extends Je{constructor(A,e,n){super(),this.from=A,this.to=e,this.mark=n}apply(A){let e=A.slice(this.from,this.to),n=A.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Qc(e.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),e.openStart,e.openEnd);return Qe.fromReplace(A,this.from,this.to,i)}invert(){return new Bn(this.from,this.to,this.mark)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new sr(e.pos,n.pos,this.mark)}merge(A){return A instanceof sr&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new sr(Math.min(this.from,A.from),Math.max(this.to,A.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(e.from,e.to,A.markFromJSON(e.mark))}}Je.jsonID("addMark",sr);class Bn extends Je{constructor(A,e,n){super(),this.from=A,this.to=e,this.mark=n}apply(A){let e=A.slice(this.from,this.to),n=new j(Qc(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return Qe.fromReplace(A,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new Bn(e.pos,n.pos,this.mark)}merge(A){return A instanceof Bn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new Bn(Math.min(this.from,A.from),Math.max(this.to,A.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Bn(e.from,e.to,A.markFromJSON(e.mark))}}Je.jsonID("removeMark",Bn);class or extends Je{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);if(e){let n=this.mark.addToSet(e.marks);if(n.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(n))return new or(this.pos,e.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new or(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(e.pos,A.markFromJSON(e.mark))}}Je.jsonID("addNodeMark",or);class Ui extends Je{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new or(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Ui(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(e.pos,A.markFromJSON(e.mark))}}Je.jsonID("removeNodeMark",Ui);class xe extends Je{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&Fc(A,this.from,this.to)?Qe.fail("Structure replace would overwrite content"):Qe.fromReplace(A,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(A){return new xe(this.from,this.from+this.slice.size,A.slice(this.from,this.to))}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deletedAcross&&n.deletedAcross?null:new xe(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof xe)||A.structure||this.structure)return null;if(this.from+this.slice.size==A.from&&!this.slice.openEnd&&!A.slice.openStart){let e=this.slice.size+A.slice.size==0?j.empty:new j(this.slice.content.append(A.slice.content),this.slice.openStart,A.slice.openEnd);return new xe(this.from,this.to+(A.to-A.from),e,this.structure)}else if(A.to==this.from&&!this.slice.openStart&&!A.slice.openEnd){let e=this.slice.size+A.slice.size==0?j.empty:new j(A.slice.content.append(this.slice.content),A.slice.openStart,this.slice.openEnd);return new xe(A.from,this.to,e,this.structure)}else return null}toJSON(){let A={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(A.slice=this.slice.toJSON()),this.structure&&(A.structure=!0),A}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xe(e.from,e.to,j.fromJSON(A,e.slice),!!e.structure)}}Je.jsonID("replace",xe);class Oe extends Je{constructor(A,e,n,r,i,s,a=!1){super(),this.from=A,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(A){if(this.structure&&(Fc(A,this.from,this.gapFrom)||Fc(A,this.gapTo,this.to)))return Qe.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Qe.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?Qe.fromReplace(A,this.from,this.to,n):Qe.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(A){let e=this.gapTo-this.gapFrom;return new Oe(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,A.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:A.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:A.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||i>n.pos?null:new Oe(e.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let A={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(A.slice=this.slice.toJSON()),this.structure&&(A.structure=!0),A}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Oe(e.from,e.to,e.gapFrom,e.gapTo,j.fromJSON(A,e.slice),e.insert,!!e.structure)}}Je.jsonID("replaceAround",Oe);function Fc(t,A,e){let n=t.resolve(A),r=e-A,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,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(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,A),B=Math.min(u+c.nodeSize,e),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,A,e,n){let r=[],i=0;t.doc.nodesBetween(A,e,(s,a)=>{if(!s.isInline)return;i++;let c=null;if(n instanceof Po){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,e);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,A),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function Kh(t,A,e,n=e.contentMatch,r=!0){let i=t.doc.nodeAt(A),s=[],a=A+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 xe(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)e.allowsMarkType(u.marks[g].type)||t.step(new Bn(a,f,u.marks[g]));if(r&&u.isText&&e.whitespace!="pre"){let g,B=/\r?\n|\r/g,w;for(;g=B.exec(u.text);)w||(w=new j(Y.from(e.schema.text(" ",e.allowedMarks(u.marks))),0,0)),s.push(new xe(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 VQ(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function vi(t){let e=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,e))return n;if(n==0||r.type.spec.isolating||!VQ(r,i,s))break}return null}function GQ(t,A,e){let{$from:n,$to:r,depth:i}=A,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>e;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>e;w--)Q||r.after(w+1)<r.end(w)?(Q=!0,g=Y.from(r.node(w).copy(g)),B++):u++;t.step(new Oe(c,u,s,a,new j(f.append(g),p,B),f.size-p,!0))}function bc(t,A,e=null,n=t){let r=WQ(t,A),i=r&&$Q(n,A);return i?r.map(Ph).concat({type:A,attrs:e}).concat(i.map(Ph)):null}function Ph(t){return{type:t,attrs:null}}function WQ(t,A){let{parent:e,startIndex:n,endIndex:r}=t,i=e.contentMatchAt(n).findWrapping(A);if(!i)return null;let s=i.length?i[0]:A;return e.canReplaceWith(n,r,s)?i:null}function $Q(t,A){let{parent:e,startIndex:n,endIndex:r}=t,i=e.child(n),s=A.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:A).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(e.child(u).type);return!c||!c.validEnd?null:s}function JQ(t,A,e){let n=Y.empty;for(let s=e.length-1;s>=0;s--){if(n.size){let a=e[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(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new Oe(r,i,r,i,new j(n,0,0),e.length,!0))}function XQ(t,A,e,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(A,e,(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),Kh(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 Oe(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,A,e,n){A.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(e+1+i+s.index);t.replaceWith(c,c+1,A.type.schema.linebreakReplacement.create())}}})}function zQ(t,A,e,n){A.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(e+1+i);t.replaceWith(s,s+1,A.type.schema.text(`
6
- `))}})}function qQ(t,A,e){let n=t.resolve(A),r=n.index();return n.parent.canReplaceWith(r,r+1,e)}function ZQ(t,A,e,n,r){let i=t.doc.nodeAt(A);if(!i)throw new RangeError("No node at given position");e||(e=i.type);let s=e.create(n,null,r||i.marks);if(i.isLeaf)return t.replaceWith(A,A+i.nodeSize,s);if(!e.validContent(i.content))throw new RangeError("Invalid content for node type "+e.name);t.step(new Oe(A,A+i.nodeSize,A+1,A+i.nodeSize-1,new j(Y.from(s),0,0),1,!0))}function Ii(t,A,e=1,n){let r=t.resolve(A),i=r.depth-e,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=e-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,A,e=1,n){let r=t.doc.resolve(A),i=Y.empty,s=Y.empty;for(let a=r.depth,c=r.depth-e,u=e-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 xe(A,A,new j(i.append(s),e,e),!0))}function ar(t,A){let e=t.resolve(A),n=e.index();return Vh(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(n,n+1)}function Vh(t,A){return!!(t&&A&&!t.isLeaf&&t.canAppend(A))}function Jo(t,A,e=-1){let n=t.resolve(A);for(let r=n.depth;;r--){let i,s,a=n.index(r);if(r==n.depth?(i=n.nodeBefore,s=n.nodeAfter):e>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&&Vh(i,s)&&n.node(r).canReplace(a,a+1))return A;if(r==0)break;A=e<0?n.before(r):n.after(r)}}function AF(t,A,e){let n=new xe(A-e,A+e,j.empty,!0);t.step(n)}function eF(t,A,e){let n=t.resolve(A);if(n.parent.canReplaceWith(n.index(),n.index(),e))return A;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,e))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,e))return n.after(r+1);if(i<n.node(r).childCount)return null}return null}function Gh(t,A,e){let n=t.resolve(A);if(!e.content.size)return A;let r=e.content;for(let i=0;i<e.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(e.openStart==0&&e.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,A,e=A,n=j.empty){if(A==e&&!n.size)return null;let r=t.resolve(A),i=t.resolve(e);return Wh(r,i,n)?new xe(A,e,n):new tF(r,i,n).fit()}function Wh(t,A,e){return!e.openStart&&!e.openEnd&&t.start()==A.start()&&t.parent.canReplace(t.index(),A.index(),e.content)}class tF{constructor(A,e,n){this.$from=A,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let r=0;r<=A.depth;r++){let i=A.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(A.indexAfter(r))})}for(let r=A.depth;r>0;r--)this.placed=Y.from(A.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 A=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(A<0?this.$to:n.doc.resolve(A));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 A>-1?new Oe(n.pos,A,this.$to.pos,this.$to.end(),c,e):c.size||n.pos!=this.$to.pos?new xe(n.pos,r.pos,c):null}findFittable(){let A=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<A;n++){let i=e.firstChild;if(e.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){A=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=e==1?A: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(e==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(e==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:A,openStart:e,openEnd:n}=this.unplaced,r=Uc(A,e);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new j(A,e+1,Math.max(n,r.size+e>=A.size-n?e+1:0)),!0)}dropNode(){let{content:A,openStart:e,openEnd:n}=this.unplaced,r=Uc(A,e);if(r.childCount<=1&&e>0){let i=A.size-e<=e+r.size;this.unplaced=new j(Us(A,e-1,1),e-1,i?e-1:n)}else this.unplaced=new j(Us(A,e,1),e,n)}placeNodes({sliceDepth:A,frontierDepth:e,parent:n,inject:r,wrap:i}){for(;this.depth>e;)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-A,u=0,f=[],{match:p,type:g}=this.frontier[e];if(r){for(let Q=0;Q<r.childCount;Q++)f.push(r.child(Q));p=p.matchFragment(r)}let B=a.size+A-(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($h(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,e,Y.from(f)),this.frontier[e].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?A==0?j.empty:new j(Us(s.content,A-1,1),A-1,B<0?s.openEnd:A-1):new j(Us(s.content,A,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let A=this.frontier[this.depth],e;if(!A.type.isTextblock||!vc(this.$to,this.$to.depth,A.type,A.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.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(A){A:for(let e=Math.min(this.depth,A.depth);e>=0;e--){let{match:n,type:r}=this.frontier[e],i=e<A.depth&&A.end(e+1)==A.pos+(A.depth-(e+1)),s=vc(A,e,r,n,i);if(s){for(let a=e-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=vc(A,a,u,c,!0);if(!f||f.childCount)continue A}return{depth:e,fit:s,move:i?A.doc.resolve(A.after(e+1)):A}}}}close(A){let e=this.findCloseLevel(A);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=vs(this.placed,e.depth,e.fit)),A=e.move;for(let n=e.depth+1;n<=A.depth;n++){let r=A.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,A.index(n));this.openFrontierNode(r.type,r.attrs,i)}return A}openFrontierNode(A,e=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(A),this.placed=vs(this.placed,this.depth,Y.from(A.create(e,n))),this.frontier.push({type:A,match:A.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Y.empty,!0);e.childCount&&(this.placed=vs(this.placed,this.frontier.length,e))}}function Us(t,A,e){return A==0?t.cutByIndex(e,t.childCount):t.replaceChild(0,t.firstChild.copy(Us(t.firstChild.content,A-1,e)))}function vs(t,A,e){return A==0?t.append(e):t.replaceChild(t.childCount-1,t.lastChild.copy(vs(t.lastChild.content,A-1,e)))}function Uc(t,A){for(let e=0;e<A;e++)t=t.firstChild.content;return t}function $h(t,A,e){if(A<=0)return t;let n=t.content;return A>1&&(n=n.replaceChild(0,$h(n.firstChild,A-1,n.childCount==1?e-1:0))),A>0&&(n=t.type.contentMatch.fillBefore(n).append(n),e<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Y.empty,!0)))),t.copy(n)}function vc(t,A,e,n,r){let i=t.node(A),s=r?t.indexAfter(A):t.index(A);if(s==i.childCount&&!e.compatibleContent(i.type))return null;let a=n.fillBefore(i.content,!0,s);return a&&!nF(e,i.content,s)?a:null}function nF(t,A,e){for(let n=e;n<A.childCount;n++)if(!t.allowsMarks(A.child(n).marks))return!0;return!1}function rF(t){return t.spec.defining||t.spec.definingForContent}function iF(t,A,e,n){if(!n.size)return t.deleteRange(A,e);let r=t.doc.resolve(A),i=t.doc.resolve(e);if(Wh(r,i,n))return t.step(new xe(A,e,n));let s=Xh(r,t.doc.resolve(e));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):e,new j(Jh(n.content,0,n.openStart,B),B,n.openEnd))}}let p=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(A,e,n),!(t.steps.length>p));g--){let B=s[g];B<0||(A=r.before(B),e=i.after(B))}}function Jh(t,A,e,n,r){if(A<e){let i=t.firstChild;t=t.replaceChild(0,i.copy(Jh(i.content,A+1,e,n,i)))}if(A>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,A,e,n){if(!n.isInline&&A==e&&t.doc.resolve(A).parent.content.size){let r=eF(t.doc,A,n.type);r!=null&&(A=e=r)}t.replaceRange(A,e,new j(Y.from(n),0,0))}function oF(t,A,e){let n=t.doc.resolve(A),r=t.doc.resolve(e),i=Xh(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(A-n.start(s)==n.depth-s&&e>n.end(s)&&r.end(s)-e!=r.depth-s)return t.delete(n.before(s),e);t.delete(A,e)}function Xh(t,A){let e=[],n=Math.min(t.depth,A.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||A.end(r)>A.pos+(A.depth-r)||t.node(r).type.spec.isolating||A.node(r).type.spec.isolating)break;(i==A.start(r)||r==t.depth&&r==A.depth&&t.parent.inlineContent&&A.parent.inlineContent&&r&&A.start(r-1)==i-1)&&e.push(r)}return e}class Si extends Je{constructor(A,e,n){super(),this.pos=A,this.attr=e,this.value=n}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at attribute step's position");let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,null,e.marks);return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(r),0,e.isLeaf?0:1))}getMap(){return Ut.empty}invert(A){return new Si(this.pos,this.attr,A.nodeAt(this.pos).attrs[this.attr])}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Si(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(A,e){if(typeof e.pos!="number"||typeof e.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Si(e.pos,e.attr,e.value)}}Je.jsonID("attr",Si);class Is extends Je{constructor(A,e){super(),this.attr=A,this.value=e}apply(A){let e=Object.create(null);for(let r in A.attrs)e[r]=A.attrs[r];e[this.attr]=this.value;let n=A.type.create(e,A.content,A.marks);return Qe.ok(n)}getMap(){return Ut.empty}invert(A){return new Is(this.attr,A.attrs[this.attr])}map(A){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(A,e){if(typeof e.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Is(e.attr,e.value)}}Je.jsonID("docAttr",Is);let Ti=class extends Error{};Ti=function t(A){let e=Error.call(this,A);return e.__proto__=t.prototype,e},Ti.prototype=Object.create(Error.prototype),Ti.prototype.constructor=Ti,Ti.prototype.name="TransformError";class aF{constructor(A){this.doc=A,this.steps=[],this.docs=[],this.mapping=new bi}get before(){return this.docs.length?this.docs[0]:this.doc}step(A){let e=this.maybeStep(A);if(e.failed)throw new Ti(e.failed);return this}maybeStep(A){let e=A.apply(this.doc);return e.failed||this.addStep(A,e.doc),e}get docChanged(){return this.steps.length>0}addStep(A,e){this.docs.push(this.doc),this.steps.push(A),this.mapping.appendMap(A.getMap()),this.doc=e}replace(A,e=A,n=j.empty){let r=Xo(this.doc,A,e,n);return r&&this.step(r),this}replaceWith(A,e,n){return this.replace(A,e,new j(Y.from(n),0,0))}delete(A,e){return this.replace(A,e,j.empty)}insert(A,e){return this.replaceWith(A,A,e)}replaceRange(A,e,n){return iF(this,A,e,n),this}replaceRangeWith(A,e,n){return sF(this,A,e,n),this}deleteRange(A,e){return oF(this,A,e),this}lift(A,e){return GQ(this,A,e),this}join(A,e=1){return AF(this,A,e),this}wrap(A,e){return JQ(this,A,e),this}setBlockType(A,e=A,n,r=null){return XQ(this,A,e,n,r),this}setNodeMarkup(A,e,n=null,r){return ZQ(this,A,e,n,r),this}setNodeAttribute(A,e,n){return this.step(new Si(A,e,n)),this}setDocAttribute(A,e){return this.step(new Is(A,e)),this}addNodeMark(A,e){return this.step(new or(A,e)),this}removeNodeMark(A,e){if(!(e instanceof ZA)){let n=this.doc.nodeAt(A);if(!n)throw new RangeError("No node at position "+A);if(e=e.isInSet(n.marks),!e)return this}return this.step(new Ui(A,e)),this}split(A,e=1,n){return jQ(this,A,e,n),this}addMark(A,e,n){return KQ(this,A,e,n),this}removeMark(A,e,n){return PQ(this,A,e,n),this}clearIncompatible(A,e,n){return Kh(this,A,e,n),this}}const Ic=Object.create(null);class QA{constructor(A,e,n){this.$anchor=A,this.$head=e,this.ranges=n||[new lF(A.min(e),A.max(e))]}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 A=this.ranges;for(let e=0;e<A.length;e++)if(A[e].$from.pos!=A[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(A,e=j.empty){let n=e.content.lastChild,r=null;for(let a=0;a<e.openEnd;a++)r=n,n=n.lastChild;let i=A.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:u}=s[a],f=A.mapping.slice(i);A.replaceRange(f.map(c.pos),f.map(u.pos),a?j.empty:e),a==0&&qh(A,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(A,e){let n=A.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],c=A.mapping.slice(n),u=c.map(s.pos),f=c.map(a.pos);i?A.deleteRange(u,f):(A.replaceRangeWith(u,f,e),qh(A,n,e.isInline?-1:1))}}static findFrom(A,e,n=!1){let r=A.parent.inlineContent?new CA(A):_i(A.node(0),A.parent,A.pos,A.index(),e,n);if(r)return r;for(let i=A.depth-1;i>=0;i--){let s=e<0?_i(A.node(0),A.node(i),A.before(i+1),A.index(i),e,n):_i(A.node(0),A.node(i),A.after(i+1),A.index(i)+1,e,n);if(s)return s}return null}static near(A,e=1){return this.findFrom(A,e)||this.findFrom(A,-e)||new tn(A.node(0))}static atStart(A){return _i(A,A,0,0,1)||new tn(A)}static atEnd(A){return _i(A,A,A.content.size,A.childCount,-1)||new tn(A)}static fromJSON(A,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Ic[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(A,e)}static jsonID(A,e){if(A in Ic)throw new RangeError("Duplicate use of selection JSON ID "+A);return Ic[A]=e,e.prototype.jsonID=A,e}getBookmark(){return CA.between(this.$anchor,this.$head).getBookmark()}}QA.prototype.visible=!0;class lF{constructor(A,e){this.$from=A,this.$to=e}}let Yh=!1;function zh(t){!Yh&&!t.parent.inlineContent&&(Yh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class CA extends QA{constructor(A,e=A){zh(A),zh(e),super(A,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(A,e){let n=A.resolve(e.map(this.head));if(!n.parent.inlineContent)return QA.near(n);let r=A.resolve(e.map(this.anchor));return new CA(r.parent.inlineContent?r:n,n)}replace(A,e=j.empty){if(super.replace(A,e),e==j.empty){let n=this.$from.marksAcross(this.$to);n&&A.ensureMarks(n)}}eq(A){return A instanceof CA&&A.anchor==this.anchor&&A.head==this.head}getBookmark(){return new Yo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(A,e){if(typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new CA(A.resolve(e.anchor),A.resolve(e.head))}static create(A,e,n=e){let r=A.resolve(e);return new this(r,n==e?r:A.resolve(n))}static between(A,e,n){let r=A.pos-e.pos;if((!n||r)&&(n=r>=0?1:-1),!e.parent.inlineContent){let i=QA.findFrom(e,n,!0)||QA.findFrom(e,-n,!0);if(i)e=i.$head;else return QA.near(e,n)}return A.parent.inlineContent||(r==0?A=e:(A=(QA.findFrom(A,-n,!0)||QA.findFrom(A,n,!0)).$anchor,A.pos<e.pos!=r<0&&(A=e))),new CA(A,e)}}QA.jsonID("text",CA);class Yo{constructor(A,e){this.anchor=A,this.head=e}map(A){return new Yo(A.map(this.anchor),A.map(this.head))}resolve(A){return CA.between(A.resolve(this.anchor),A.resolve(this.head))}}class fA extends QA{constructor(A){let e=A.nodeAfter,n=A.node(0).resolve(A.pos+e.nodeSize);super(A,n),this.node=e}map(A,e){let{deleted:n,pos:r}=e.mapResult(this.anchor),i=A.resolve(r);return n?QA.near(i):new fA(i)}content(){return new j(Y.from(this.node),0,0)}eq(A){return A instanceof fA&&A.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Sc(this.anchor)}static fromJSON(A,e){if(typeof e.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new fA(A.resolve(e.anchor))}static create(A,e){return new fA(A.resolve(e))}static isSelectable(A){return!A.isText&&A.type.spec.selectable!==!1}}fA.prototype.visible=!1,QA.jsonID("node",fA);class Sc{constructor(A){this.anchor=A}map(A){let{deleted:e,pos:n}=A.mapResult(this.anchor);return e?new Yo(n,n):new Sc(n)}resolve(A){let e=A.resolve(this.anchor),n=e.nodeAfter;return n&&fA.isSelectable(n)?new fA(e):QA.near(e)}}class tn extends QA{constructor(A){super(A.resolve(0),A.resolve(A.content.size))}replace(A,e=j.empty){if(e==j.empty){A.delete(0,A.doc.content.size);let n=QA.atStart(A.doc);n.eq(A.selection)||A.setSelection(n)}else super.replace(A,e)}toJSON(){return{type:"all"}}static fromJSON(A){return new tn(A)}map(A){return new tn(A)}eq(A){return A instanceof tn}getBookmark(){return cF}}QA.jsonID("all",tn);const cF={map(){return this},resolve(t){return new tn(t)}};function _i(t,A,e,n,r,i=!1){if(A.inlineContent)return CA.create(t,e);for(let s=n-(r>0?0:1);r>0?s<A.childCount:s>=0;s+=r){let a=A.child(s);if(a.isAtom){if(!i&&fA.isSelectable(a))return fA.create(t,e-(r<0?a.nodeSize:0))}else{let c=_i(t,a,e+r,r<0?a.childCount:0,r,i);if(c)return c}e+=a.nodeSize*r}return null}function qh(t,A,e){let n=t.steps.length-1;if(n<A)return;let r=t.steps[n];if(!(r instanceof xe||r instanceof Oe))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(QA.near(t.doc.resolve(s),e))}const Zh=1,zo=2,jh=4;class uF extends aF{constructor(A){super(A.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=A.selection,this.storedMarks=A.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(A){if(A.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=A,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Zh)&~zo,this.storedMarks=null,this}get selectionSet(){return(this.updated&Zh)>0}setStoredMarks(A){return this.storedMarks=A,this.updated|=zo,this}ensureMarks(A){return ZA.sameSet(this.storedMarks||this.selection.$from.marks(),A)||this.setStoredMarks(A),this}addStoredMark(A){return this.ensureMarks(A.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(A){return this.ensureMarks(A.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&zo)>0}addStep(A,e){super.addStep(A,e),this.updated=this.updated&~zo,this.storedMarks=null}setTime(A){return this.time=A,this}replaceSelection(A){return this.selection.replace(this,A),this}replaceSelectionWith(A,e=!0){let n=this.selection;return e&&(A=A.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||ZA.none))),n.replaceWith(this,A),this}deleteSelection(){return this.selection.replace(this),this}insertText(A,e,n){let r=this.doc.type.schema;if(e==null)return A?this.replaceSelectionWith(r.text(A),!0):this.deleteSelection();{if(n==null&&(n=e),n=n??e,!A)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let s=this.doc.resolve(e);i=n==e?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(A,i)),this.selection.empty||this.setSelection(QA.near(this.selection.$to)),this}}setMeta(A,e){return this.meta[typeof A=="string"?A:A.key]=e,this}getMeta(A){return this.meta[typeof A=="string"?A:A.key]}get isGeneric(){for(let A in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=jh,this}get scrolledIntoView(){return(this.updated&jh)>0}}function Ap(t,A){return!A||!t?t:t.bind(A)}class Ss{constructor(A,e,n){this.name=A,this.init=Ap(e.init,n),this.apply=Ap(e.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,A){return t.selection||QA.atStart(A.doc)},apply(t){return t.selection}}),new Ss("storedMarks",{init(t){return t.storedMarks||null},apply(t,A,e,n){return n.selection.$cursor?t.storedMarks:null}}),new Ss("scrollToSelection",{init(){return 0},apply(t,A){return t.scrolledIntoView?A+1:A}})];class Tc{constructor(A,e){this.schema=A,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=fF.slice(),e&&e.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(A){this.config=A}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(A){return this.applyTransaction(A).state}filterTransaction(A,e=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=e){let r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,A,this))return!1}return!0}applyTransaction(A){if(!this.filterTransaction(A))return{state:this,transactions:[]};let e=[A],n=this.applyInner(A),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<e.length&&a.spec.appendTransaction.call(a,c?e.slice(c):e,u,n);if(f&&n.filterTransaction(f,s)){if(f.setMeta("appendedTransaction",A),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:e.length}:{state:this,n:0})}e.push(f),n=n.applyInner(f),i=!0}r&&(r[s]={state:n,n:e.length})}}if(!i)return{state:n,transactions:e}}}applyInner(A){if(!A.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let e=new xi(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];e[i.name]=i.apply(A,this[i.name],this,e)}return e}get tr(){return new uF(this)}static create(A){let e=new Tc(A.doc?A.doc.type.schema:A.schema,A.plugins),n=new xi(e);for(let r=0;r<e.fields.length;r++)n[e.fields[r].name]=e.fields[r].init(A,n);return n}reconfigure(A){let e=new Tc(this.schema,A.plugins),n=e.fields,r=new xi(e);for(let i=0;i<n.length;i++){let s=n[i].name;r[s]=this.hasOwnProperty(s)?this[s]:n[i].init(A,r)}return r}toJSON(A){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(n=>n.toJSON())),A&&typeof A=="object")for(let n in A){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=A[n],i=r.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(r,this[r.key]))}return e}static fromJSON(A,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!A.schema)throw new RangeError("Required config field 'schema' missing");let r=new Tc(A.schema,A.plugins),i=new xi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Wr.fromJSON(A.schema,e.doc);else if(s.name=="selection")i.selection=QA.fromJSON(i.doc,e.selection);else if(s.name=="storedMarks")e.storedMarks&&(i.storedMarks=e.storedMarks.map(A.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(e,a)){i[s.name]=u.fromJSON.call(c,A,e[a],i);return}}i[s.name]=s.init(A,i)}}),i}}function ep(t,A,e){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(A):n=="handleDOMEvents"&&(r=ep(r,A,{})),e[n]=r}return e}class pt{constructor(A){this.spec=A,this.props={},A.props&&ep(A.props,this,this.props),this.key=A.key?A.key.key:tp("plugin")}getState(A){return A[this.key]}}const _c=Object.create(null);function tp(t){return t in _c?t+"$"+ ++_c[t]:(_c[t]=0,t+"$")}class wn{constructor(A="key"){this.key=tp(A)}get(A){return A.config.pluginsByKey[this.key]}getState(A){return A[this.key]}}const Re=function(t){for(var A=0;;A++)if(t=t.previousSibling,!t)return A},Ts=function(t){let A=t.assignedSlot||t.parentNode;return A&&A.nodeType==11?A.host:A};let xc=null;const Ln=function(t,A,e){let n=xc||(xc=document.createRange());return n.setEnd(t,e??t.nodeValue.length),n.setStart(t,A||0),n},dF=function(){xc=null},Jr=function(t,A,e,n){return e&&(np(t,A,e,n,-1)||np(t,A,e,n,1))},hF=/^(img|br|input|textarea|hr)$/i;function np(t,A,e,n,r){for(;;){if(t==e&&A==n)return!0;if(A==(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;A=Re(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[A+(r<0?-1:0)],t.contentEditable=="false")return!1;A=r<0?Cn(t):0}else return!1}}function Cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function pF(t,A){for(;;){if(t.nodeType==3&&A)return t;if(t.nodeType==1&&A>0){if(t.contentEditable=="false")return null;t=t.childNodes[A-1],A=Cn(t)}else if(t.parentNode&&!_s(t))A=Re(t),t=t.parentNode;else return null}}function gF(t,A){for(;;){if(t.nodeType==3&&A<t.nodeValue.length)return t;if(t.nodeType==1&&A<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[A],A=0}else if(t.parentNode&&!_s(t))A=Re(t)+1,t=t.parentNode;else return null}}function mF(t,A,e){for(let n=A==0,r=A==Cn(t);n||r;){if(t==e)return!0;let i=Re(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==Cn(t)}}function _s(t){let A;for(let e=t;e&&!(A=e.pmViewDesc);e=e.parentNode);return A&&A.node&&A.node.isBlock&&(A.dom==t||A.contentDOM==t)}const qo=function(t){return t.focusNode&&Jr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Xr(t,A){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=t,e.key=e.code=A,e}function BF(t){let A=t.activeElement;for(;A&&A.shadowRoot;)A=A.shadowRoot.activeElement;return A}function wF(t,A,e){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(A,e);if(n)return{node:n.offsetNode,offset:n.offset}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(A,e);if(n)return{node:n.startContainer,offset:n.startOffset}}}const yn=typeof navigator<"u"?navigator:null,rp=typeof document<"u"?document:null,lr=yn&&yn.userAgent||"",Oc=/Edge\/(\d+)/.exec(lr),ip=/MSIE \d/.exec(lr),Lc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lr),gt=!!(ip||Lc||Oc),cr=ip?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=!!rp&&"webkitFontSmoothing"in rp.documentElement.style,EF=xs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function QF(t){let A=t.defaultView&&t.defaultView.visualViewport;return A?{left:0,right:A.width,top:0,bottom:A.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Hn(t,A){return typeof t=="number"?t:t[A]}function FF(t){let A=t.getBoundingClientRect(),e=A.width/t.offsetWidth||1,n=A.height/t.offsetHeight||1;return{left:A.left,right:A.left+t.clientWidth*e,top:A.top,bottom:A.top+t.clientHeight*n}}function sp(t,A,e){let n=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=e||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(A.top<u.top+Hn(n,"top")?p=-(u.top-A.top+Hn(r,"top")):A.bottom>u.bottom-Hn(n,"bottom")&&(p=A.bottom-A.top>u.bottom-u.top?A.top+Hn(r,"top")-u.top:A.bottom-u.bottom+Hn(r,"bottom")),A.left<u.left+Hn(n,"left")?f=-(u.left-A.left+Hn(r,"left")):A.right>u.right-Hn(n,"right")&&(f=A.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;A={left:A.left-w,top:A.top-Q,right:A.right-w,bottom:A.bottom-Q}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function bF(t){let A=t.dom.getBoundingClientRect(),e=Math.max(0,A.top),n,r;for(let i=(A.left+A.right)/2,s=e+1;s<Math.min(innerHeight,A.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>=e-20){n=a,r=c.top;break}}return{refDOM:n,refTop:r,stack:op(t.dom)}}function op(t){let A=[],e=t.ownerDocument;for(let n=t;n&&(A.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=e);n=Ts(n));return A}function UF({refDOM:t,refTop:A,stack:e}){let n=t?t.getBoundingClientRect().top:0;ap(e,n==0?0:n-A)}function ap(t,A){for(let e=0;e<t.length;e++){let{dom:n,top:r,left:i}=t[e];n.scrollTop!=r+A&&(n.scrollTop=r+A),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 A=op(t);t.focus(Li==null?{get preventScroll(){return Li={preventScroll:!0},!0}}:void 0),Li||(Li=!1,ap(A,0))}function lp(t,A){let e,n=2e8,r,i=0,s=A.top,a=A.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>A.left?w.left-A.left:w.right<A.left?A.left-w.right:0;if(Q<n){e=f,n=Q,r=Q&&e.nodeType==3?{left:w.right<A.left?w.right:w.left,top:A.top}:A,f.nodeType==1&&Q&&(i=p+(A.left>=(w.left+w.right)/2?1:0));continue}}else w.top>A.top&&!c&&w.left<=A.left&&w.right>=A.left&&(c=f,u={left:Math.max(w.left,Math.min(w.right,A.left)),top:w.top});!e&&(A.left>=w.right&&A.top>=w.top||A.left>=w.left&&A.top>=w.bottom)&&(i=p+1)}}return!e&&c&&(e=c,r=u,n=0),e&&e.nodeType==3?IF(e,r):!e||n&&e.nodeType==1?{node:t,offset:i}:lp(e,r)}function IF(t,A){let e=t.nodeValue.length,n=document.createRange();for(let r=0;r<e;r++){n.setEnd(t,r+1),n.setStart(t,r);let i=ur(n,1);if(i.top!=i.bottom&&kc(A,i))return{node:t,offset:r+(A.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function kc(t,A){return t.left>=A.left-1&&t.left<=A.right+1&&t.top>=A.top-1&&t.top<=A.bottom+1}function SF(t,A){let e=t.parentNode;return e&&/^li$/i.test(e.nodeName)&&A.left<t.getBoundingClientRect().left?e:t}function TF(t,A,e){let{node:n,offset:r}=lp(A,e),i=-1;if(n.nodeType==1&&!n.firstChild){let s=n.getBoundingClientRect();i=s.left!=s.right&&e.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(n,r,i)}function _F(t,A,e,n){let r=-1;for(let i=A,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(A,e,-1)}function cp(t,A,e){let n=t.childNodes.length;if(n&&e.top<e.bottom)for(let r=Math.max(0,Math.min(n-1,Math.floor(n*(A.top-e.top)/(e.bottom-e.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(A,u))return cp(s,A,u)}}if((i=(i+1)%n)==r)break}return t}function xF(t,A){let e=t.dom.ownerDocument,n,r=0,i=wF(e,A.left,A.top);i&&({node:n,offset:r}=i);let s=(t.root.elementFromPoint?t.root:e).elementFromPoint(A.left,A.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!kc(A,u)||(s=cp(t.dom,A,u),!s))return null}if(rt)for(let u=s;n&&u;u=Ts(u))u.draggable&&(n=void 0);if(s=SF(s,A),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<=A.left&&p.bottom>A.top&&r++}let u;xs&&r&&n.nodeType==1&&(u=n.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=A.top&&r--,n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&A.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,A))}a==null&&(a=TF(t,s,A));let c=t.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function up(t){return t.top<t.bottom||t.left<t.right}function ur(t,A){let e=t.getClientRects();if(e.length){let n=e[A<0?0:e.length-1];if(up(n))return n}return Array.prototype.find.call(e,up)||t.getBoundingClientRect()}const OF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function fp(t,A,e){let{node:n,offset:r,atom:i}=t.docView.domFromPos(A,e<0?-1:1),s=xs||nn;if(n.nodeType==3)if(s&&(OF.test(n.nodeValue)||(e<0?!r:r==n.nodeValue.length))){let c=ur(Ln(n,r,r),e);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=e<0?1:-1;return e<0&&!r?(u++,f=-1):e>=0&&r==n.nodeValue.length?(c--,f=1):e<0?c--:u++,Os(ur(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(A-(i||0)).parent.inlineContent){if(i==null&&r&&(e<0||r==Cn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Dc(c.getBoundingClientRect(),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Dc(c.getBoundingClientRect(),!0)}return Dc(n.getBoundingClientRect(),e>=0)}if(i==null&&r&&(e<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,-e),e>=0)}function Os(t,A){if(t.width==0)return t;let e=A?t.left:t.right;return{top:t.top,bottom:t.bottom,left:e,right:e}}function Dc(t,A){if(t.height==0)return t;let e=A?t.top:t.bottom;return{top:e,bottom:e,left:t.left,right:t.right}}function dp(t,A,e){let n=t.state,r=t.root.activeElement;n!=A&&t.updateState(A),r!=t.dom&&t.focus();try{return e()}finally{n!=A&&t.updateState(n),r!=t.dom&&r&&r.focus()}}function LF(t,A,e){let n=A.selection,r=e=="up"?n.$from:n.$to;return dp(t,A,()=>{let{node:i}=t.docView.domFromPos(r.pos,e=="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=fp(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&&(e=="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,A,e){let{$head:n}=A.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?e=="left"||e=="backward"?i:s:dp(t,A,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:p}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",e,"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 hp=null,pp=null,gp=!1;function DF(t,A,e){return hp==A&&pp==e?gp:(hp=A,pp=e,gp=e=="up"||e=="down"?LF(t,A,e):kF(t,A,e))}const Rt=0,mp=1,Yr=2,En=3;class Ls{constructor(A,e,n,r){this.parent=A,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=Rt,n.pmViewDesc=this}matchesWidget(A){return!1}matchesMark(A){return!1}matchesNode(A,e,n){return!1}matchesHack(A){return!1}parseRule(){return null}stopEvent(A){return!1}get size(){let A=0;for(let e=0;e<this.children.length;e++)A+=this.children[e].size;return A}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let A=0;A<this.children.length;A++)this.children[A].destroy()}posBeforeChild(A){for(let e=0,n=this.posAtStart;;e++){let r=this.children[e];if(r==A)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(A,e,n){if(this.contentDOM&&this.contentDOM.contains(A.nodeType==1?A:A.parentNode))if(n<0){let i,s;if(A==this.contentDOM)i=A.childNodes[e-1];else{for(;A.parentNode!=this.contentDOM;)A=A.parentNode;i=A.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(A==this.contentDOM)i=A.childNodes[e];else{for(;A.parentNode!=this.contentDOM;)A=A.parentNode;i=A.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(A==this.dom&&this.contentDOM)r=e>Re(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=A.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(e==0)for(let i=A;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&e==A.childNodes.length)for(let i=A;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(A,e=!1){for(let n=!0,r=A;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!e||i.node))if(n&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(A.nodeType==1?A:A.parentNode):s==A))n=!1;else return i}}getDesc(A){let e=A.pmViewDesc;for(let n=e;n;n=n.parent)if(n==this)return e}posFromDOM(A,e,n){for(let r=A;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(A,e,n)}return-1}descAt(A){for(let e=0,n=0;e<this.children.length;e++){let r=this.children[e],i=n+r.size;if(n==A&&i!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(A<i)return r.descAt(A-n-r.border);n=i}}domFromPos(A,e){if(!this.contentDOM)return{node:this.dom,offset:0,atom:A+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>A||s instanceof Cp){r=A-i;break}i=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,e);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof Bp&&i.side>=0;n--);if(e<=0){let i,s=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,s=!1);return i&&e&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,e):{node:this.contentDOM,offset:i?Re(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,e):{node:this.contentDOM,offset:i?Re(i.dom):this.contentDOM.childNodes.length}}}parseRange(A,e,n=0){if(this.children.length==0)return{node:this.contentDOM,from:A,to:e,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&&A<=u){let f=s+c.border;if(A>=f&&e<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(A,e,f);A=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=Re(g.dom)+1;break}A-=g.size}r==-1&&(r=0)}if(r>-1&&(u>e||a==this.children.length-1)){e=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=Re(p.dom);break}e+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:A,to:e,fromOffset:r,toOffset:i}}emptyChildAt(A){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[A<0?0:this.children.length-1];return e.size==0||e.emptyChildAt(A)}domAfterPos(A){let{node:e,offset:n}=this.domFromPos(A,0);if(e.nodeType!=1||n==e.childNodes.length)throw new RangeError("No node after pos "+A);return e.childNodes[n]}setSelection(A,e,n,r=!1){let i=Math.min(A,e),s=Math.max(A,e);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(A-B-w.border,e-B-w.border,n,r);B=Q}let a=this.domFromPos(A,A?-1:1),c=e==A?a:this.domFromPos(e,e?-1:1),u=n.getSelection(),f=!1;if((nn||rt)&&A==e){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:Re(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||A==e)&&!f){u.collapse(a.node,a.offset);try{A!=e&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(A>e){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(A){return!this.contentDOM&&A.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(A,e){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],s=n+i.size;if(n==s?A<=s&&e>=n:A<s&&e>n){let a=n+i.border,c=s-i.border;if(A>=a&&e<=c){this.dirty=A==n||e==s?Yr:mp,A==a&&e==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=En:i.markDirty(A-a,e-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 A=1;for(let e=this.parent;e;e=e.parent,A++){let n=A==1?Yr:mp;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(A){return!1}}class Bp extends Ls{constructor(A,e,n,r){let i,s=e.type.toDOM;if(typeof s=="function"&&(s=s(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!e.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(A,[],s,null),this.widget=e,this.widget=e,i=this}matchesWidget(A){return this.dirty==Rt&&A.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(A){let e=this.widget.spec.stopEvent;return e?e(A):!1}ignoreMutation(A){return A.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 NF extends Ls{constructor(A,e,n,r){super(A,[],e,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(A,e){return A!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(A){return{node:this.textDOM,offset:A}}ignoreMutation(A){return A.type==="characterData"&&A.target.nodeValue==A.oldValue}}class zr extends Ls{constructor(A,e,n,r){super(A,[],n,r),this.mark=e}static create(A,e,n,r){let i=r.nodeViews[e.type.name],s=i&&i(e,r,n);return(!s||!s.dom)&&(s=mn.renderSpec(document,e.type.spec.toDOM(e,n))),new zr(A,e,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(A){return this.dirty!=En&&this.mark.eq(A)}markDirty(A,e){if(super.markDirty(A,e),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(A,e,n){let r=zr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;e<s&&(i=Rc(i,e,s,n)),A>0&&(i=Rc(i,0,A,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class fr extends Ls{constructor(A,e,n,r,i,s,a,c,u){super(A,[],i,s),this.node=e,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(A,e,n,r,i,s){let a=i.nodeViews[e.type.name],c,u=a&&a(e,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},n,r),f=u&&u.dom,p=u&&u.contentDOM;if(e.isText){if(!f)f=document.createTextNode(e.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,e.type.spec.toDOM(e)));!p&&!e.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),e.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Qp(f,n,e),u?c=new MF(A,e,n,r,f,p||null,g,u,i,s+1):e.isText?new Zo(A,e,n,r,f,g,i):new fr(A,e,n,r,f,p||null,g,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let A={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(A.preserveWhitespace="full"),!this.contentDOM)A.getContent=()=>this.node.content;else if(!this.contentLost)A.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){A.contentElement=n.dom.parentNode;break}}A.contentElement||(A.getContent=()=>Y.empty)}return A}matchesNode(A,e,n){return this.dirty==Rt&&A.eq(this.node)&&Mc(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(A,e){let n=this.node.inlineContent,r=e,i=A.composing?this.localCompositionInfo(A,e):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new KF(this,s&&s.node,A);GF(this.node,this.innerDeco,(u,f,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,A):u.type.side>=0&&!p&&c.syncToMarks(f==this.node.childCount?ZA.none:this.node.child(f).marks,n,A),c.placeWidget(u,A,r)},(u,f,p,g)=>{c.syncToMarks(u.marks,n,A);let B;c.findNodeMatch(u,f,p,g)||a&&A.state.selection.from>r&&A.state.selection.to<r+u.nodeSize&&(B=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,p,B,A)||c.updateNextNode(u,f,p,A,g,r)||c.addNode(u,f,p,A,r),r+=u.nodeSize}),c.syncToMarks([],n,A),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Yr)&&(s&&this.protectLocalComposition(A,s),yp(this.contentDOM,this.children,A),Oi&&WF(this.dom))}localCompositionInfo(A,e){let{from:n,to:r}=A.state.selection;if(!(A.state.selection instanceof CA)||n<e||r>e+this.node.content.size)return null;let i=A.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-e,r-e);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(A,{node:e,pos:n,text:r}){if(this.getDesc(e))return;let i=e;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 NF(this,i,e,r);A.input.compositionNodes.push(s),this.children=Rc(this.children,n,n+r.length,A,s)}update(A,e,n,r){return this.dirty==En||!A.sameMarkup(this.node)?!1:(this.updateInner(A,e,n,r),!0)}updateInner(A,e,n,r){this.updateOuterDeco(e),this.node=A,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Rt}updateOuterDeco(A){if(Mc(A,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Ep(this.dom,this.nodeDOM,Nc(this.outerDeco,this.node,e),Nc(A,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=A}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 wp(t,A,e,n,r){Qp(n,A,t);let i=new fr(void 0,t,A,e,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Zo extends fr{constructor(A,e,n,r,i,s,a){super(A,e,n,r,i,null,s,a,0)}parseRule(){let A=this.nodeDOM.parentNode;for(;A&&A!=this.dom&&!A.pmIsDeco;)A=A.parentNode;return{skip:A||!0}}update(A,e,n,r){return this.dirty==En||this.dirty!=Rt&&!this.inParent()||!A.sameMarkup(this.node)?!1:(this.updateOuterDeco(e),(this.dirty!=Rt||A.text!=this.node.text)&&A.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=A.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=A,this.dirty=Rt,!0)}inParent(){let A=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==A)return!0;return!1}domFromPos(A){return{node:this.nodeDOM,offset:A}}localPosFromDOM(A,e,n){return A==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(A,e,n)}ignoreMutation(A){return A.type!="characterData"&&A.type!="selection"}slice(A,e,n){let r=this.node.cut(A,e),i=document.createTextNode(r.text);return new Zo(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(A,e){super.markDirty(A,e),this.dom!=this.nodeDOM&&(A==0||e==this.nodeDOM.nodeValue.length)&&(this.dirty=En)}get domAtom(){return!1}isText(A){return this.node.text==A}}class Cp extends Ls{parseRule(){return{ignore:!0}}matchesHack(A){return this.dirty==Rt&&this.dom.nodeName==A}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class MF extends fr{constructor(A,e,n,r,i,s,a,c,u,f){super(A,e,n,r,i,s,a,u,f),this.spec=c}update(A,e,n,r){if(this.dirty==En)return!1;if(this.spec.update){let i=this.spec.update(A,e,n);return i&&this.updateInner(A,e,n,r),i}else return!this.contentDOM&&!A.isLeaf?!1:super.update(A,e,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(A,e,n,r){this.spec.setSelection?this.spec.setSelection(A,e,n):super.setSelection(A,e,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(A){return this.spec.stopEvent?this.spec.stopEvent(A):!1}ignoreMutation(A){return this.spec.ignoreMutation?this.spec.ignoreMutation(A):super.ignoreMutation(A)}}function yp(t,A,e){let n=t.firstChild,r=!1;for(let i=0;i<A.length;i++){let s=A[i],a=s.dom;if(a.parentNode==t){for(;a!=n;)n=Fp(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof zr){let c=n?n.previousSibling:t.lastChild;yp(s.contentDOM,s.children,e),n=c?c.nextSibling:t.firstChild}}for(;n;)n=Fp(n),r=!0;r&&e.trackWrites==t&&(e.trackWrites=null)}const Hs=function(t){t&&(this.nodeName=t)};Hs.prototype=Object.create(null);const qr=[new Hs];function Nc(t,A,e){if(t.length==0)return qr;let n=e?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&&(e&&r.length==1&&r.push(n=new Hs(A.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 Ep(t,A,e,n){if(e==qr&&n==qr)return A;let r=A;for(let i=0;i<n.length;i++){let s=n[i],a=e[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,A,e){for(let n in A)n!="class"&&n!="style"&&n!="nodeName"&&!(n in e)&&t.removeAttribute(n);for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&e[n]!=A[n]&&t.setAttribute(n,e[n]);if(A.class!=e.class){let n=A.class?A.class.split(" ").filter(Boolean):[],r=e.class?e.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(A.style!=e.style){if(A.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(A.style);)t.style.removeProperty(r[1])}e.style&&(t.style.cssText+=e.style)}}function Qp(t,A,e){return Ep(t,t,qr,Nc(A,e,t.nodeType!=1))}function Mc(t,A){if(t.length!=A.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].type.eq(A[e].type))return!1;return!0}function Fp(t){let A=t.nextSibling;return t.parentNode.removeChild(t),A}class KF{constructor(A,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=A,this.preMatch=PF(A.node.content,A)}destroyBetween(A,e){if(A!=e){for(let n=A;n<e;n++)this.top.children[n].destroy();this.top.children.splice(A,e-A),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(A,e,n){let r=0,i=this.stack.length>>1,s=Math.min(i,A.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(A[r])&&A[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<A.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(A[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,A[i],e,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(A,e,n,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(A,e,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(A,e,n)&&!this.preMatch.matched.has(u)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(A,e,n,r,i){let s=this.top.children[r];return s.dirty==En&&s.dom==s.contentDOM&&(s.dirty=Yr),s.update(A,e,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(A){for(;;){let e=A.parentNode;if(!e)return-1;if(e==this.top.contentDOM){let n=A.pmViewDesc;if(n){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r}return-1}A=e}}updateNextNode(A,e,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)&&!(A.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==A.text&&c.dirty!=En&&Mc(e,c.outerDeco));if(!g&&c.update(A,e,n,r))return this.destroyBetween(this.index,a),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(p=this.recreateWrapper(c,A,e,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(A,e,n,r,i,s){if(A.dirty||e.isAtom||!A.children.length||!A.node.content.eq(e.content))return null;let a=fr.create(this.top,e,n,r,i,s);if(a.contentDOM){a.children=A.children,A.children=[];for(let c of a.children)c.parent=a}return A.destroy(),a}addNode(A,e,n,r,i){let s=fr.create(this.top,A,e,n,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(A,e,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(A)&&(A==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new Bp(this.top,A,e,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let A=this.top.children[this.index-1],e=this.top;for(;A instanceof zr;)e=A,A=e.children[e.children.length-1];(!A||!(A instanceof Zo)||/\n$/.test(A.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(A.node.text))&&((rt||nt)&&A&&A.dom.contentEditable=="false"&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))}addHackNode(A,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(A))this.index++;else{let n=document.createElement(A);A=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),A=="BR"&&(n.className="ProseMirror-trailingBreak");let r=new Cp(this.top,[],n,null);e!=this.top?e.children.push(r):e.children.splice(this.index++,0,r),this.changed=!0}}isLocked(A){return this.lock&&(A==this.lock||A.nodeType==1&&A.contains(this.lock.parentNode))}}function PF(t,A){let e=A,n=e.children.length,r=t.childCount,i=new Map,s=[];A:for(;r>0;){let a;for(;;)if(n){let u=e.children[n-1];if(u instanceof zr)e=u,n=u.children.length;else{a=u,n--;break}}else{if(e==A)break A;n=e.parent.children.indexOf(e),e=e.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 VF(t,A){return t.type.side-A.type.side}function GF(t,A,e,n){let r=A.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);n(f,r,A.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(VF);for(let b=0;b<p.length;b++)e(p[b],u,!!c)}else e(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,A.forChild(i,g),B),i=w}}function WF(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let A=t.style.cssText;t.style.cssText=A+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=A}}function $F(t,A,e,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>=e){if(i>=n&&c.slice(n-A.length-a,n-a)==A)return n-A.length;let u=a<n?c.lastIndexOf(A,n-a-1):-1;if(u>=0&&u+A.length+a>=e)return a+u;if(e==n&&c.length>=n+A.length-a&&c.slice(n-a,n-a+A.length)==A)return n}}return-1}function Rc(t,A,e,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>=e||f<=A?i.push(c):(u<A&&i.push(c.slice(0,A-u,n)),r&&(i.push(r),r=void 0),f>e&&i.push(c.slice(e-u,c.size,n)))}return i}function Kc(t,A=null){let e=t.domSelectionRange(),n=t.state.doc;if(!e.focusNode)return null;let r=t.docView.nearestDesc(e.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let a=n.resolve(s),c,u;if(qo(e)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&fA.isSelectable(f)&&r.parent&&!(f.isInline&&mF(e.focusNode,e.focusOffset,r.dom))){let p=r.posBefore;u=new fA(s==p?a:n.resolve(p))}}else{let f=t.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(f<0)return null;c=n.resolve(f)}if(!u){let f=A=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Vc(t,c,a,f)}return u}function bp(t){return t.editable?t.hasFocus():xp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function kn(t,A=!1){let e=t.state.selection;if(Sp(t,e),!!bp(t)){if(!A&&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}=e,i,s;Up&&!(e instanceof CA)&&(e.$from.parent.inlineContent||(i=vp(t,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(s=vp(t,e.to))),t.docView.setSelection(n,r,t.root,A),Up&&(i&&Ip(i),s&&Ip(s)),e.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 Up=rt||nt&&CF<63;function vp(t,A){let{node:e,offset:n}=t.docView.domFromPos(A,0),r=n<e.childNodes.length?e.childNodes[n]:null,i=n?e.childNodes[n-1]:null;if(rt&&r&&r.contentEditable=="false")return Pc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Pc(r);if(i)return Pc(i)}}function Pc(t){return t.contentEditable="true",rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Ip(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function JF(t){let A=t.dom.ownerDocument;A.removeEventListener("selectionchange",t.input.hideSelectionGuard);let e=t.domSelectionRange(),n=e.anchorNode,r=e.anchorOffset;A.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(e.anchorNode!=n||e.anchorOffset!=r)&&(A.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!bp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function XF(t){let A=t.domSelection(),e=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.setEnd(n.parentNode,Re(n)+1):e.setEnd(n,0),e.collapse(!1),A.removeAllRanges(),A.addRange(e),!r&&!t.state.selection.visible&&gt&&cr<=11&&(n.disabled=!0,n.disabled=!1)}function Sp(t,A){if(A instanceof fA){let e=t.docView.descAt(A.from);e!=t.lastSelectedViewDesc&&(Tp(t),e&&e.selectNode(),t.lastSelectedViewDesc=e)}else Tp(t)}function Tp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Vc(t,A,e,n){return t.someProp("createSelectionBetween",r=>r(t,A,e))||CA.between(A,e,n)}function _p(t){return t.editable&&!t.hasFocus()?!1:xp(t)}function xp(t){let A=t.domSelectionRange();if(!A.anchorNode)return!1;try{return t.dom.contains(A.anchorNode.nodeType==3?A.anchorNode.parentNode:A.anchorNode)&&(t.editable||t.dom.contains(A.focusNode.nodeType==3?A.focusNode.parentNode:A.focusNode))}catch{return!1}}function YF(t){let A=t.docView.domFromPos(t.state.selection.anchor,0),e=t.domSelectionRange();return Jr(A.node,A.offset,e.anchorNode,e.anchorOffset)}function Gc(t,A){let{$anchor:e,$head:n}=t.selection,r=A>0?e.max(n):e.min(n),i=r.parent.inlineContent?r.depth?t.doc.resolve(A>0?r.after():r.before()):null:r;return i&&QA.findFrom(i,A)}function dr(t,A){return t.dispatch(t.state.tr.setSelection(A).scrollIntoView()),!0}function Op(t,A,e){let n=t.state.selection;if(n instanceof CA)if(e.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:A<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(A<0?-1:1));return dr(t,new CA(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(A>0?"forward":"backward")){let r=Gc(t.state,A);return r&&r instanceof fA?dr(t,r):!1}else if(!(Mt&&e.indexOf("m")>-1)){let r=n.$head,i=r.textOffset?null:A<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=A<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?fA.isSelectable(i)?dr(t,new fA(A<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):xs?dr(t,new CA(t.state.doc.resolve(A<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof fA&&n.node.isInline)return dr(t,new CA(A>0?n.$to:n.$from));{let r=Gc(t.state,A);return r?dr(t,r):!1}}}function jo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ks(t,A){let e=t.pmViewDesc;return e&&e.size==0&&(A<0||t.nextSibling||t.nodeName!="BR")}function Hi(t,A){return A<0?zF(t):qF(t)}function zF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r,i,s=!1;for(nn&&e.nodeType==1&&n<jo(e)&&ks(e.childNodes[n],-1)&&(s=!0);;)if(n>0){if(e.nodeType!=1)break;{let a=e.childNodes[n-1];if(ks(a,-1))r=e,i=--n;else if(a.nodeType==3)e=a,n=e.nodeValue.length;else break}}else{if(Lp(e))break;{let a=e.previousSibling;for(;a&&ks(a,-1);)r=e.parentNode,i=Re(a),a=a.previousSibling;if(a)e=a,n=jo(e);else{if(e=e.parentNode,e==t.dom)break;n=0}}}s?Wc(t,e,n):r&&Wc(t,r,i)}function qF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r=jo(e),i,s;for(;;)if(n<r){if(e.nodeType!=1)break;let a=e.childNodes[n];if(ks(a,1))i=e,s=++n;else break}else{if(Lp(e))break;{let a=e.nextSibling;for(;a&&ks(a,1);)i=a.parentNode,s=Re(a)+1,a=a.nextSibling;if(a)e=a,n=0,r=jo(e);else{if(e=e.parentNode,e==t.dom)break;n=r=0}}}i&&Wc(t,i,s)}function Lp(t){let A=t.pmViewDesc;return A&&A.node&&A.node.isBlock}function ZF(t,A){for(;t&&A==t.childNodes.length&&!_s(t);)A=Re(t)+1,t=t.parentNode;for(;t&&A<t.childNodes.length;){let e=t.childNodes[A];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;t=e,A=0}}function jF(t,A){for(;t&&!A&&!_s(t);)A=Re(t),t=t.parentNode;for(;t&&A;){let e=t.childNodes[A-1];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;t=e,A=t.childNodes.length}}function Wc(t,A,e){if(A.nodeType!=3){let i,s;(s=ZF(A,e))?(A=s,e=0):(i=jF(A,e))&&(A=i,e=i.nodeValue.length)}let n=t.domSelection();if(qo(n)){let i=document.createRange();i.setEnd(A,e),i.setStart(A,e),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(A,e);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&kn(t)},50)}function Hp(t,A){let e=t.state.doc.resolve(A);if(!(nt||yF)&&e.parent.inlineContent){let r=t.coordsAtPos(A);if(A>e.start()){let i=t.coordsAtPos(A-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(A<e.end()){let i=t.coordsAtPos(A+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 kp(t,A,e){let n=t.state.selection;if(n instanceof CA&&!n.empty||e.indexOf("s")>-1||Mt&&e.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(A<0?"up":"down")){let s=Gc(t.state,A);if(s&&s instanceof fA)return dr(t,s)}if(!r.parent.inlineContent){let s=A<0?r:i,a=n instanceof tn?QA.near(s,A):QA.findFrom(s,A);return a?dr(t,a):!1}return!1}function Dp(t,A){if(!(t.state.selection instanceof CA))return!0;let{$head:e,$anchor:n,empty:r}=t.state.selection;if(!e.sameParent(n))return!0;if(!r)return!1;if(t.endOfTextblock(A>0?"forward":"backward"))return!0;let i=!e.textOffset&&(A<0?e.nodeBefore:e.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return A<0?s.delete(e.pos-i.nodeSize,e.pos):s.delete(e.pos,e.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Np(t,A,e){t.domObserver.stop(),A.contentEditable=e,t.domObserver.start()}function Ab(t){if(!rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:A,focusOffset:e}=t.domSelectionRange();if(A&&A.nodeType==1&&e==0&&A.firstChild&&A.firstChild.contentEditable=="false"){let n=A.firstChild;Np(t,n,"true"),setTimeout(()=>Np(t,n,"false"),20)}return!1}function eb(t){let A="";return t.ctrlKey&&(A+="c"),t.metaKey&&(A+="m"),t.altKey&&(A+="a"),t.shiftKey&&(A+="s"),A}function tb(t,A){let e=A.keyCode,n=eb(A);if(e==8||Mt&&e==72&&n=="c")return Dp(t,-1)||Hi(t,-1);if(e==46&&!A.shiftKey||Mt&&e==68&&n=="c")return Dp(t,1)||Hi(t,1);if(e==13||e==27)return!0;if(e==37||Mt&&e==66&&n=="c"){let r=e==37?Hp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Op(t,r,n)||Hi(t,r)}else if(e==39||Mt&&e==70&&n=="c"){let r=e==39?Hp(t,t.state.selection.from)=="ltr"?1:-1:1;return Op(t,r,n)||Hi(t,r)}else{if(e==38||Mt&&e==80&&n=="c")return kp(t,-1,n)||Hi(t,-1);if(e==40||Mt&&e==78&&n=="c")return Ab(t)||kp(t,1,n)||Hi(t,1);if(n==(Mt?"m":"c")&&(e==66||e==73||e==89||e==90))return!0}return!1}function Mp(t,A){t.someProp("transformCopied",B=>{A=B(A,t)});let e=[],{content:n,openStart:r,openEnd:i}=A;for(;r>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){r--,i--;let B=n.firstChild;e.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=Jp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,f,p=0;for(;u&&u.nodeType==1&&(f=Wp[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(e)}`);let g=t.someProp("clipboardTextSerializer",B=>B(A,t))||A.content.textBetween(0,A.content.size,`
8
-
9
- `);return{dom:c,text:g,slice:A}}function Rp(t,A,e,n,r){let i=r.parent.type.spec.code,s,a;if(!e&&!A)return null;let c=A&&(n||i||!e);if(c){if(t.someProp("transformPastedText",g=>{A=g(A,i||n,t)}),i)return A?new j(Y.from(t.state.schema.text(A.replace(/\r\n?/g,`
10
- `))),0,0):j.empty;let p=t.someProp("clipboardTextParser",g=>g(A,r,n,t));if(p)a=p;else{let g=r.marks(),{schema:B}=t.state,w=mn.fromSchema(B);s=document.createElement("div"),A.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=>{e=p(e,t)}),s=ib(e),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(Gp(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=Gp(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,A){if(t.childCount<2)return t;for(let e=A.depth;e>=0;e--){let r=A.node(e).contentMatchAt(A.index(e)),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]=Vp(s[s.length-1],i.length));let f=Kp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return Y.from(s)}return t}function Kp(t,A,e=0){for(let n=A.length-1;n>=e;n--)t=A[n].create(null,Y.from(t));return t}function Pp(t,A,e,n,r){if(r<t.length&&r<A.length&&t[r]==A[r]){let i=Pp(t,A,e,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?e.type:t[r+1]))return n.copy(n.content.append(Y.from(Kp(e,t,r+1))))}}function Vp(t,A){if(A==0)return t;let e=t.content.replaceChild(t.childCount-1,Vp(t.lastChild,A-1)),n=t.contentMatchAt(t.childCount).fillBefore(Y.empty,!0);return t.copy(e.append(n))}function $c(t,A,e,n,r,i){let s=A<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<n-1&&(a=$c(a,A,e,n,r+1,i)),r>=e&&(a=A<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(Y.empty,!0))),t.replaceChild(A<0?0:t.childCount-1,s.copy(a))}function Gp(t,A,e){return A<t.openStart&&(t=new j($c(t.content,-1,A,t.openStart,0,t.openEnd),A,t.openEnd)),e<t.openEnd&&(t=new j($c(t.content,1,e,t.openEnd,0,0),t.openStart,e)),t}const Wp={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 $p=null;function Jp(){return $p||($p=document.implementation.createHTMLDocument("title"))}function ib(t){let A=/^(\s*<meta [^>]*>)*/.exec(t);A&&(t=t.slice(A[0].length));let e=Jp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&Wp[n[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),e.innerHTML=t,r)for(let i=0;i<r.length;i++)e=e.querySelector(r[i])||e;return e}function sb(t){let A=t.querySelectorAll(nt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let e=0;e<A.length;e++){let n=A[e];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function ob(t,A){if(!t.size)return t;let e=t.content.firstChild.type.schema,n;try{n=JSON.parse(A)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=n.length-2;a>=0;a-=2){let c=e.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 A in it){let e=it[A];t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>{fb(t,n)&&!Xc(t,n)&&(t.editable||!(n.type in st))&&e(t,n)},ab[A]?{passive:!0}:void 0)}rt&&t.dom.addEventListener("input",()=>null),Jc(t)}function hr(t,A){t.input.lastSelectionOrigin=A,t.input.lastSelectionTime=Date.now()}function ub(t){t.domObserver.stop();for(let A in t.input.eventHandlers)t.dom.removeEventListener(A,t.input.eventHandlers[A]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Jc(t){t.someProp("handleDOMEvents",A=>{for(let e in A)t.input.eventHandlers[e]||t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>Xc(t,n))})}function Xc(t,A){return t.someProp("handleDOMEvents",e=>{let n=e[A.type];return n?n(t,A)||A.defaultPrevented:!1})}function fb(t,A){if(!A.bubbles)return!0;if(A.defaultPrevented)return!1;for(let e=A.target;e!=t.dom;e=e.parentNode)if(!e||e.nodeType==11||e.pmViewDesc&&e.pmViewDesc.stopEvent(A))return!1;return!0}function db(t,A){!Xc(t,A)&&it[A.type]&&(t.editable||!(A.type in st))&&it[A.type](t,A)}st.keydown=(t,A)=>{let e=A;if(t.input.shiftKey=e.keyCode==16||e.shiftKey,!Yp(t,e)&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!(rn&&nt&&e.keyCode==13)))if(e.keyCode!=229&&t.domObserver.forceFlush(),Oi&&e.keyCode==13&&!e.ctrlKey&&!e.altKey&&!e.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,e))||tb(t,e)?e.preventDefault():hr(t,"key")},st.keyup=(t,A)=>{A.keyCode==16&&(t.input.shiftKey=!1)},st.keypress=(t,A)=>{let e=A;if(Yp(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||Mt&&e.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,e))){e.preventDefault();return}let n=t.state.selection;if(!(n instanceof CA)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(e.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()),e.preventDefault()}};function Aa(t){return{left:t.clientX,top:t.clientY}}function hb(t,A){let e=A.x-t.clientX,n=A.y-t.clientY;return e*e+n*n<100}function Yc(t,A,e,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(A,a=>s>i.depth?a(t,e,i.nodeAfter,i.before(s),r,!0):a(t,e,i.node(s),i.before(s),r,!1)))return!0;return!1}function ki(t,A,e){t.focused||t.focus();let n=t.state.tr.setSelection(A);e=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function pb(t,A){if(A==-1)return!1;let e=t.state.doc.resolve(A),n=e.nodeAfter;return n&&n.isAtom&&fA.isSelectable(n)?(ki(t,new fA(e),"pointer"),!0):!1}function gb(t,A){if(A==-1)return!1;let e=t.state.selection,n,r;e instanceof fA&&(n=e.node);let i=t.state.doc.resolve(A);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(fA.isSelectable(a)){n&&e.$from.depth>0&&s>=e.$from.depth&&i.before(e.$from.depth+1)==e.$from.pos?r=i.before(e.$from.depth):r=i.before(s);break}}return r!=null?(ki(t,fA.create(t.state.doc,r),"pointer"),!0):!1}function mb(t,A,e,n,r){return Yc(t,"handleClickOn",A,e,n)||t.someProp("handleClick",i=>i(t,A,n))||(r?gb(t,e):pb(t,e))}function Bb(t,A,e,n){return Yc(t,"handleDoubleClickOn",A,e,n)||t.someProp("handleDoubleClick",r=>r(t,A,n))}function wb(t,A,e,n){return Yc(t,"handleTripleClickOn",A,e,n)||t.someProp("handleTripleClick",r=>r(t,A,n))||Cb(t,e,n)}function Cb(t,A,e){if(e.button!=0)return!1;let n=t.state.doc;if(A==-1)return n.inlineContent?(ki(t,CA.create(n,0,n.content.size),"pointer"),!0):!1;let r=n.resolve(A);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,CA.create(n,a+1,a+1+s.content.size),"pointer");else if(fA.isSelectable(s))ki(t,fA.create(n,a),"pointer");else continue;return!0}}function zc(t){return ea(t)}const Xp=Mt?"metaKey":"ctrlKey";it.mousedown=(t,A)=>{let e=A;t.input.shiftKey=e.shiftKey;let n=zc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&hb(e,t.input.lastClick)&&!e[Xp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:i};let s=t.posAtCoords(Aa(e));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new yb(t,s,e,!!n)):(i=="doubleClick"?Bb:wb)(t,s.pos,s.inside,e)?e.preventDefault():hr(t,"pointer"))};class yb{constructor(A,e,n,r){this.view=A,this.pos=e,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=A.state.doc,this.selectNode=!!n[Xp],this.allowDefault=n.shiftKey;let i,s;if(e.inside>-1)i=A.state.doc.nodeAt(e.inside),s=e.inside;else{let f=A.state.doc.resolve(e.pos);i=f.parent,s=f.depth?f.before():0}const a=r?null:n.target,c=a?A.docView.nearestDesc(a,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:u}=A.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof fA&&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()),A.root.addEventListener("mouseup",this.up=this.up.bind(this)),A.root.addEventListener("mousemove",this.move=this.move.bind(this)),hr(A,"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(A){if(this.done(),!this.view.dom.contains(A.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(Aa(A))),this.updateAllowDefault(A),this.allowDefault||!e?hr(this.view,"pointer"):mb(this.view,e.pos,e.inside,A,this.selectNode)?A.preventDefault():A.button==0&&(this.flushed||rt&&this.mightDrag&&!this.mightDrag.node.isAtom||nt&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(ki(this.view,QA.near(this.view.state.doc.resolve(e.pos)),"pointer"),A.preventDefault()):hr(this.view,"pointer")}move(A){this.updateAllowDefault(A),hr(this.view,"pointer"),A.buttons==0&&this.done()}updateAllowDefault(A){!this.allowDefault&&(Math.abs(this.event.x-A.clientX)>4||Math.abs(this.event.y-A.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 Yp(t,A){return t.composing?!0:rt&&Math.abs(A.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:A}=t,e=A.selection.$from;if(A.selection.empty&&(A.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||e.marks(),ea(t,!0),t.markCursor=null;else if(ea(t),nn&&A.selection.empty&&e.parentOffset&&!e.textOffset&&e.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}zp(t,Eb)},st.compositionend=(t,A)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=A.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++,zp(t,20))};function zp(t,A){clearTimeout(t.input.composingTimeout),A>-1&&(t.input.composingTimeout=setTimeout(()=>ea(t),A))}function qp(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 A=t.domSelectionRange();if(!A.focusNode)return null;let e=pF(A.focusNode,A.focusOffset),n=gF(A.focusNode,A.focusOffset);if(e&&n&&e!=n){let r=n.pmViewDesc;if(!r||!r.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let i=e.pmViewDesc;if(!(!i||!i.isText(e.nodeValue)))return n}}return e||n}function Fb(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ea(t,A=!1){if(!(rn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),qp(t),A||t.docView&&t.docView.dirty){let e=Kc(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}function bb(t,A){if(!t.dom.parentNode)return;let e=t.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(A),e.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(A),t.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),t.focus()},50)}const Ds=gt&&cr<15||Oi&&EF<604;it.copy=st.cut=(t,A)=>{let e=A,n=t.state.selection,r=e.type=="cut";if(n.empty)return;let i=Ds?null:e.clipboardData,s=n.content(),{dom:a,text:c}=Mp(t,s);i?(e.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,A){if(!t.dom.parentNode)return;let e=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(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),e?Ns(t,n.value,null,r,A):Ns(t,n.textContent,n.innerHTML,r,A)},50)}function Ns(t,A,e,n,r){let i=Rp(t,A,e,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 Zp(t){let A=t.getData("text/plain")||t.getData("Text");if(A)return A;let e=t.getData("text/uri-list");return e?e.replace(/\r?\n/g," "):""}st.paste=(t,A)=>{let e=A;if(t.composing&&!rn)return;let n=Ds?null:e.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Ns(t,Zp(n),n.getData("text/html"),r,e)?e.preventDefault():vb(t,e)};class jp{constructor(A,e,n){this.slice=A,this.move=e,this.node=n}}const Ag=Mt?"altKey":"ctrlKey";it.dragstart=(t,A)=>{let e=A,n=t.input.mouseDown;if(n&&n.done(),!e.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(Aa(e)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof fA?r.to-1:r.to))){if(n&&n.mightDrag)s=fA.create(t.state.doc,n.mightDrag.pos);else if(e.target&&e.target.nodeType==1){let p=t.docView.nearestDesc(e.target,!0);p&&p.node.type.spec.draggable&&p!=t.docView&&(s=fA.create(t.state.doc,p.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u,slice:f}=Mp(t,a);e.dataTransfer.clearData(),e.dataTransfer.setData(Ds?"Text":"text/html",c.innerHTML),e.dataTransfer.effectAllowed="copyMove",Ds||e.dataTransfer.setData("text/plain",u),t.dragging=new jp(f,!e[Ag],s)},it.dragend=t=>{let A=t.dragging;window.setTimeout(()=>{t.dragging==A&&(t.dragging=null)},50)},st.dragover=st.dragenter=(t,A)=>A.preventDefault(),st.drop=(t,A)=>{let e=A,n=t.dragging;if(t.dragging=null,!e.dataTransfer)return;let r=t.posAtCoords(Aa(e));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=Rp(t,Zp(e.dataTransfer),Ds?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!e[Ag]);if(t.someProp("handleDrop",w=>w(t,e,s||j.empty,a))){e.preventDefault();return}if(!s)return;e.preventDefault();let c=s?Gh(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&&fA.isSelectable(s.content.firstChild)&&B.nodeAfter&&B.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new fA(B));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((Q,b,v,_)=>w=_),u.setSelection(Vc(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,A)=>{let e=A;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),e.relatedTarget&&t.dom.contains(e.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},it.beforeinput=(t,A)=>{if(nt&&rn&&A.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,A){if(t==A)return!0;for(let e in t)if(t[e]!==A[e])return!1;for(let e in A)if(!(e in t))return!1;return!0}class ta{constructor(A,e){this.toDOM=A,this.spec=e||Zr,this.side=this.spec.side||0}map(A,e,n,r){let{pos:i,deleted:s}=A.mapResult(e.from+r,this.side<0?-1:1);return s?null:new Kt(i-n,i-n,this)}valid(){return!0}eq(A){return this==A||A instanceof ta&&(this.spec.key&&this.spec.key==A.spec.key||this.toDOM==A.toDOM&&Ms(this.spec,A.spec))}destroy(A){this.spec.destroy&&this.spec.destroy(A)}}class pr{constructor(A,e){this.attrs=A,this.spec=e||Zr}map(A,e,n,r){let i=A.map(e.from+r,this.spec.inclusiveStart?-1:1)-n,s=A.map(e.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=s?null:new Kt(i,s,this)}valid(A,e){return e.from<e.to}eq(A){return this==A||A instanceof pr&&Ms(this.attrs,A.attrs)&&Ms(this.spec,A.spec)}static is(A){return A.type instanceof pr}destroy(){}}class qc{constructor(A,e){this.attrs=A,this.spec=e||Zr}map(A,e,n,r){let i=A.mapResult(e.from+r,1);if(i.deleted)return null;let s=A.mapResult(e.to+r,-1);return s.deleted||s.pos<=i.pos?null:new Kt(i.pos-n,s.pos-n,this)}valid(A,e){let{index:n,offset:r}=A.content.findIndex(e.from),i;return r==e.from&&!(i=A.child(n)).isText&&r+i.nodeSize==e.to}eq(A){return this==A||A instanceof qc&&Ms(this.attrs,A.attrs)&&Ms(this.spec,A.spec)}destroy(){}}class Kt{constructor(A,e,n){this.from=A,this.to=e,this.type=n}copy(A,e){return new Kt(A,e,this.type)}eq(A,e=0){return this.type.eq(A.type)&&this.from+e==A.from&&this.to+e==A.to}map(A,e,n){return this.type.map(A,this,e,n)}static widget(A,e,n){return new Kt(A,A,new ta(e,n))}static inline(A,e,n,r){return new Kt(A,e,new pr(n,r))}static node(A,e,n,r){return new Kt(A,e,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 Di=[],Zr={};class Ie{constructor(A,e){this.local=A.length?A:Di,this.children=e.length?e:Di}static create(A,e){return e.length?na(e,A,0,Zr):Xe}find(A,e,n){let r=[];return this.findInner(A??0,e??1e9,r,0,n),r}findInner(A,e,n,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=e&&a.to>=A&&(!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]<e&&this.children[s+1]>A){let a=this.children[s]+1;this.children[s+2].findInner(A-a,e-a,n,r+a,i)}}map(A,e,n){return this==Xe||A.maps.length==0?this:this.mapInner(A,e,0,0,n||Zr)}mapInner(A,e,n,r,i){let s;for(let a=0;a<this.local.length;a++){let c=this.local[a].map(A,n,r);c&&c.type.valid(e,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?Ib(this.children,s||[],A,e,n,r,i):s?new Ie(s.sort(jr),Di):Xe}add(A,e){return e.length?this==Xe?Ie.create(A,e):this.addInner(A,e,0):this}addInner(A,e,n){let r,i=0;A.forEach((a,c)=>{let u=c+n,f;if(f=tg(e,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=eg(i?ng(e):e,-n);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||s.splice(a--,1);return new Ie(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(A){return A.length==0||this==Xe?this:this.removeInner(A,0)}removeInner(A,e){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let s,a=n[i]+e,c=n[i+1]+e;for(let f=0,p;f<A.length;f++)(p=A[f])&&p.from>a&&p.to<c&&(A[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!=Xe?n[i+2]=u:(n.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<A.length;i++)if(s=A[i])for(let a=0;a<r.length;a++)r[a].eq(s,e)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new Ie(r,n):Xe}forChild(A,e){if(this==Xe)return this;if(e.isLeaf)return Ie.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=A){this.children[a]==A&&(n=this.children[a+2]);break}let i=A+1,s=i+e.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 Ie(r.sort(jr),Di);return n?new gr([a,n]):a}return n||Xe}eq(A){if(this==A)return!0;if(!(A instanceof Ie)||this.local.length!=A.local.length||this.children.length!=A.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(A.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=A.children[e]||this.children[e+1]!=A.children[e+1]||!this.children[e+2].eq(A.children[e+2]))return!1;return!0}locals(A){return Zc(this.localsInner(A))}localsInner(A){if(this==Xe)return Di;if(A.inlineContent||!this.local.some(pr.is))return this.local;let e=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof pr||e.push(this.local[n]);return e}}Ie.empty=new Ie([],[]),Ie.removeOverlap=Zc;const Xe=Ie.empty;class gr{constructor(A){this.members=A}map(A,e){const n=this.members.map(r=>r.map(A,e,Zr));return gr.from(n)}forChild(A,e){if(e.isLeaf)return Ie.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(A,e);i!=Xe&&(i instanceof gr?n=n.concat(i.members):n.push(i))}return gr.from(n)}eq(A){if(!(A instanceof gr)||A.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(A.members[e]))return!1;return!0}locals(A){let e,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(A);if(i.length)if(!e)e=i;else{n&&(e=e.slice(),n=!1);for(let s=0;s<i.length;s++)e.push(i[s])}}return e?Zc(n?e:e.sort(jr)):Di}static from(A){switch(A.length){case 0:return Xe;case 1:return A[0];default:return new gr(A.every(e=>e instanceof Ie)?A:A.reduce((e,n)=>e.concat(n instanceof Ie?n:n.members),[]))}}}function Ib(t,A,e,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<e.maps.length;u++){let p=0;e.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=e.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=e.map(t[u]+i),p=f-r;if(p<0||p>=n.content.size){c=!0;continue}let g=e.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(e,b,f+1,t[u]+i+1,s);v!=Xe?(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,A,e,r,i,s),f=na(u,n,0,s);A=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 Ie(A.sort(jr),a)}function eg(t,A){if(!A||!t.length)return t;let e=[];for(let n=0;n<t.length;n++){let r=t[n];e.push(new Kt(r.from+A,r.to+A,r.type))}return e}function Sb(t,A,e,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?e.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],A[c]+i+1);return e}function tg(t,A,e){if(A.isLeaf)return null;let n=e+A.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>e&&s.to<n&&((r||(r=[])).push(s),t[i]=null);return r}function ng(t){let A=[];for(let e=0;e<t.length;e++)t[e]!=null&&A.push(t[e]);return A}function na(t,A,e,n){let r=[],i=!1;A.forEach((a,c)=>{let u=tg(t,a,c+e);if(u){i=!0;let f=na(u,a,e+c+1,n);f!=Xe&&r.push(c,c+a.nodeSize,f)}});let s=eg(i?ng(t):t,-e).sort(jr);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||(n.onRemove&&n.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new Ie(s,r):Xe}function jr(t,A){return t.from-A.from||t.to-A.to}function Zc(t){let A=t;for(let e=0;e<A.length-1;e++){let n=A[e];if(n.from!=n.to)for(let r=e+1;r<A.length;r++){let i=A[r];if(i.from==n.from){i.to!=n.to&&(A==t&&(A=t.slice()),A[r]=i.copy(i.from,n.to),rg(A,r+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(A==t&&(A=t.slice()),A[e]=n.copy(n.from,i.from),rg(A,r,n.copy(i.from,n.to)));break}}}return A}function rg(t,A,e){for(;A<t.length&&jr(e,t[A])>0;)A++;t.splice(A,0,e)}function jc(t){let A=[];return t.someProp("decorations",e=>{let n=e(t.state);n&&n!=Xe&&A.push(n)}),t.cursorWrapper&&A.push(Ie.create(t.state.doc,[t.cursorWrapper.deco])),gr.from(A)}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(A){this.anchorNode=A.anchorNode,this.anchorOffset=A.anchorOffset,this.focusNode=A.focusNode,this.focusOffset=A.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(A){return A.anchorNode==this.anchorNode&&A.anchorOffset==this.anchorOffset&&A.focusNode==this.focusNode&&A.focusOffset==this.focusOffset}}class Ob{constructor(A,e){this.view=A,this.handleDOMChange=e,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 A=this.observer.takeRecords();if(A.length){for(let e=0;e<A.length;e++)this.queue.push(A[e]);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(_p(this.view)){if(this.suppressingSelectionUpdates)return kn(this.view);if(gt&&cr<=11&&!this.view.state.selection.empty){let A=this.view.domSelectionRange();if(A.focusNode&&Jr(A.focusNode,A.focusOffset,A.anchorNode,A.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(A){if(!A.focusNode)return!0;let e=new Set,n;for(let i=A.focusNode;i;i=Ts(i))e.add(i);for(let i=A.anchorNode;i;i=Ts(i))if(e.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 A of this.observer.takeRecords())this.queue.push(A);return this.queue}flush(){let{view:A}=this;if(!A.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=A.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&_p(A)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(A.editable)for(let f=0;f<e.length;f++){let p=this.registerMutation(e[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(A,p)!=B)&&g.remove()}}}let u=null;i<0&&r&&A.input.lastFocus>Date.now()-200&&Math.max(A.input.lastTouch,A.input.lastClick.time)<Date.now()-300&&qo(n)&&(u=Kc(A))&&u.eq(QA.near(A.state.doc.resolve(0),1))?(A.input.lastFocus=0,kn(A),this.currentSelection.set(n),A.scrollToSelection()):(i>-1||r)&&(i>-1&&(A.docView.markDirty(i,s),Lb(A)),this.handleDOMChange(i,s,a,c),A.docView&&A.docView.dirty?A.updateState(A.state):this.currentSelection.eq(n)||kn(A),this.currentSelection.set(n))}registerMutation(A,e){if(e.indexOf(A.target)>-1)return null;let n=this.view.docView.nearestDesc(A.target);if(A.type=="attributes"&&(n==this.view.docView||A.attributeName=="contenteditable"||A.attributeName=="style"&&!A.oldValue&&!A.target.getAttribute("style"))||!n||n.ignoreMutation(A))return null;if(A.type=="childList"){for(let f=0;f<A.addedNodes.length;f++)e.push(A.addedNodes[f]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(A.target))return{from:n.posBefore,to:n.posAfter};let r=A.previousSibling,i=A.nextSibling;if(gt&&cr<=11&&A.addedNodes.length)for(let f=0;f<A.addedNodes.length;f++){let{previousSibling:p,nextSibling:g}=A.addedNodes[f];(!p||Array.prototype.indexOf.call(A.addedNodes,p)<0)&&(r=p),(!g||Array.prototype.indexOf.call(A.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==A.target?Re(r)+1:0,a=n.localPosFromDOM(A.target,s,-1),c=i&&i.parentNode==A.target?Re(i):A.target.childNodes.length,u=n.localPosFromDOM(A.target,c,1);return{from:a,to:u}}else return A.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:A.target.nodeValue==A.oldValue}}}let ig=new WeakMap,sg=!1;function Lb(t){if(!ig.has(t)&&(ig.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=nn,sg)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."),sg=!0}}function og(t,A){let e=A.startContainer,n=A.startOffset,r=A.endContainer,i=A.endOffset,s=t.domAtPos(t.state.selection.anchor);return Jr(s.node,s.offset,r,i)&&([e,n,r,i]=[r,i,e,n]),{anchorNode:e,anchorOffset:n,focusNode:r,focusOffset:i}}function Hb(t,A){if(A.getComposedRanges){let r=A.getComposedRanges(t.root)[0];if(r)return og(t,r)}let e;function n(r){r.preventDefault(),r.stopImmediatePropagation(),e=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),e?og(t,e):null}function kb(t,A){for(let e=A.parentNode;e&&e!=t.dom;e=e.parentNode){let n=t.docView.nearestDesc(e,!0);if(n&&n.node.isBlock)return e}return null}function Db(t,A,e){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(A,e),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:Nb,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 Nb(t){let A=t.pmViewDesc;if(A)return A.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}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,A,e,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,A<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,sA=Kc(t,N);if(sA&&!t.state.selection.eq(sA)){if(nt&&rn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",nA=>nA(t,Xr(13,"Enter"))))return;let BA=t.state.tr.setSelection(sA);N=="pointer"?BA.setMeta("pointer",!0):N=="key"&&BA.scrollIntoView(),i&&BA.setMeta("composition",i),t.dispatch(BA)}return}let s=t.state.doc.resolve(A),a=s.sharedDepth(e);A=s.before(a+1),e=t.state.doc.resolve(e).after(a+1);let c=t.state.selection,u=Db(t,A,e),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=Vb(p.content,u.doc.content,u.from,g,B);if((Oi&&t.input.lastIOSEnter>Date.now()-225||rn)&&r.some(N=>N.nodeType==1&&!Mb.test(N.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",N=>N(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!w)if(n&&c instanceof CA&&!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 N=ag(t,t.state.doc,u.sel);if(N&&!N.eq(t.state.selection)){let sA=t.state.tr.setSelection(N);i&&sA.setMeta("composition",i),t.dispatch(sA)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&w.start==w.endB&&t.state.selection instanceof CA&&(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(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!_&&Q.pos<u.doc.content.size&&!Q.sameParent(b)&&(S=QA.findFrom(u.doc.resolve(Q.pos+1),1,!0))&&S.head==b.pos)&&t.someProp("handleKeyDown",N=>N(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",N=>N(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(N){return N(t,Xr(13,"Enter"))})},20));let E=w.start,L=w.endA,U,D,P;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),D=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(P=Kb(Q.parent.content.cut(Q.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,w.endA-v.start()))))U=t.state.tr,P.type=="add"?U.addMark(E,L,P.mark):U.removeMark(E,L,P.mark);else if(Q.parent.child(Q.index()).isText&&Q.index()==b.index()-(b.textOffset?0:1)){let N=Q.parent.textBetween(Q.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",sA=>sA(t,E,L,N)))return;U=t.state.tr.insertText(N,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 N=ag(t,U.doc,u.sel);N&&!(nt&&rn&&t.composing&&N.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(N.head==E||N.head==U.mapping.map(L)-1)||gt&&N.empty&&N.head==E)&&U.setSelection(N)}D&&U.ensureMarks(D),i&&U.setMeta("composition",i),t.dispatch(U.scrollIntoView())}function ag(t,A,e){return Math.max(e.anchor,e.head)>A.content.size?null:Vc(t,A.resolve(e.anchor),A.resolve(e.head))}function Kb(t,A){let e=t.firstChild.marks,n=A.firstChild.marks,r=e,i=n,s,a,c;for(let f=0;f<n.length;f++)r=n[f].removeFromSet(r);for(let f=0;f<e.length;f++)i=e[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<A.childCount;f++)u.push(c(A.child(f)));if(Y.from(u).eq(t))return{mark:a,type:s}}function Pb(t,A,e,n,r){if(e-A<=r.pos-n.pos||Au(n,!0,!1)<r.pos)return!1;let i=t.resolve(A);if(!n.parent.isTextblock){let a=i.nodeAfter;return a!=null&&e==A+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Au(i,!0,!0));return!s.parent.isTextblock||s.pos>e||Au(s,!0,!1)<e?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function Au(t,A,e){let n=t.depth,r=A?t.end():t.pos;for(;n>0&&(A||t.indexAfter(n)==t.node(n).childCount);)n--,r++,A=!1;if(e){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Vb(t,A,e,n,r){let i=t.findDiffStart(A,e);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(A,e+t.size,e+A.size);if(r=="end"){let c=Math.max(0,i-Math.min(s,a));n-=s+c-i}if(s<i&&t.size<A.size){let c=n<=i&&n>=s?i-n:0;i-=c,i&&i<A.size&&lg(A.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&&lg(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function lg(t){if(t.length!=2)return!1;let A=t.charCodeAt(0),e=t.charCodeAt(1);return A>=56320&&A<=57343&&e>=55296&&e<=56319}class Gb{constructor(A,e){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=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(hg),this.dispatch=this.dispatch.bind(this),this.dom=A&&A.mount||document.createElement("div"),A&&(A.appendChild?A.appendChild(this.dom):typeof A=="function"?A(this.dom):A.mount&&(this.mounted=!0)),this.editable=fg(this),ug(this),this.nodeViews=dg(this),this.docView=wp(this.state.doc,cg(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 A=this._props;this._props={};for(let e in A)this._props[e]=A[e];this._props.state=this.state}return this._props}update(A){A.handleDOMEvents!=this._props.handleDOMEvents&&Jc(this);let e=this._props;this._props=A,A.plugins&&(A.plugins.forEach(hg),this.directPlugins=A.plugins),this.updateStateInner(A.state,e)}setProps(A){let e={};for(let n in this._props)e[n]=this._props[n];e.state=this.state;for(let n in A)e[n]=A[n];this.update(e)}updateState(A){this.updateStateInner(A,this._props)}updateStateInner(A,e){var n;let r=this.state,i=!1,s=!1;A.storedMarks&&this.composing&&(qp(this),s=!0),this.state=A;let a=r.plugins!=A.plugins||this._props.plugins!=e.plugins;if(a||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let B=dg(this);$b(B,this.nodeViews)&&(this.nodeViews=B,i=!0)}(a||e.handleDOMEvents!=this._props.handleDOMEvents)&&Jc(this),this.editable=fg(this),ug(this);let c=jc(this),u=cg(this),f=r.plugins!=A.plugins&&!r.doc.eq(A.doc)?"reset":A.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(A.doc,u,c);(p||!A.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&&!A.selection.empty&&Wb(r.selection,A.selection);if(p){let w=nt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Qb(this)),(i||!this.docView.update(A.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=wp(A.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):(Sp(this,A.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((n=this.dragging)===null||n===void 0)&&n.node&&!r.doc.eq(A.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&UF(g)}scrollToSelection(){let A=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof fA){let e=this.docView.domAfterPos(this.state.selection.from);e.nodeType==1&&sp(this,e.getBoundingClientRect(),A)}else sp(this,this.coordsAtPos(this.state.selection.head,1),A)}destroyPluginViews(){let A;for(;A=this.pluginViews.pop();)A.destroy&&A.destroy()}updatePluginViews(A){if(!A||A.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let n=this.directPlugins[e];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let n=this.state.plugins[e];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let e=0;e<this.pluginViews.length;e++){let n=this.pluginViews[e];n.update&&n.update(this,A)}}updateDraggedNode(A,e){let n=A.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-e.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new jp(A.slice,A.move,r<0?void 0:fA.create(this.state.doc,r))}someProp(A,e){let n=this._props&&this._props[A],r;if(n!=null&&(r=e?e(n):n))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[A];if(a!=null&&(r=e?e(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[A];if(a!=null&&(r=e?e(a):a))return r}}hasFocus(){if(gt){let A=this.root.activeElement;if(A==this.dom)return!0;if(!A||!this.dom.contains(A))return!1;for(;A&&this.dom!=A&&this.dom.contains(A);){if(A.contentEditable=="false")return!1;A=A.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 A=this._root;if(A==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return A||document}updateRoot(){this._root=null}posAtCoords(A){return xF(this,A)}coordsAtPos(A,e=1){return fp(this,A,e)}domAtPos(A,e=0){return this.docView.domFromPos(A,e)}nodeDOM(A){let e=this.docView.descAt(A);return e?e.nodeDOM:null}posAtDOM(A,e,n=-1){let r=this.docView.posFromDOM(A,e,n);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(A,e){return DF(this,e||this.state,A)}pasteHTML(A,e){return Ns(this,"",A,!1,e||new ClipboardEvent("paste"))}pasteText(A,e){return Ns(this,A,null,!0,e||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(A){return db(this,A)}dispatch(A){let e=this._props.dispatchTransaction;e?e.call(this,A):this.updateState(this.state.apply(A))}domSelectionRange(){let A=this.domSelection();return rt&&this.root.nodeType===11&&BF(this.dom.ownerDocument)==this.dom&&Hb(this,A)||A}domSelection(){return this.root.getSelection()}}function cg(t){let A=Object.create(null);return A.class="ProseMirror",A.contenteditable=String(t.editable),t.someProp("attributes",e=>{if(typeof e=="function"&&(e=e(t.state)),e)for(let n in e)n=="class"?A.class+=" "+e[n]:n=="style"?A.style=(A.style?A.style+";":"")+e[n]:!A[n]&&n!="contenteditable"&&n!="nodeName"&&(A[n]=String(e[n]))}),A.translate||(A.translate="no"),[Kt.node(0,t.state.doc.content.size,A)]}function ug(t){if(t.markCursor){let A=document.createElement("img");A.className="ProseMirror-separator",A.setAttribute("mark-placeholder","true"),A.setAttribute("alt",""),t.cursorWrapper={dom:A,deco:Kt.widget(t.state.selection.head,A,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function fg(t){return!t.someProp("editable",A=>A(t.state)===!1)}function Wb(t,A){let e=Math.min(t.$anchor.sharedDepth(t.head),A.$anchor.sharedDepth(A.head));return t.$anchor.start(e)!=A.$anchor.start(e)}function dg(t){let A=Object.create(null);function e(n){for(let r in n)Object.prototype.hasOwnProperty.call(A,r)||(A[r]=n[r])}return t.someProp("nodeViews",e),t.someProp("markViews",e),A}function $b(t,A){let e=0,n=0;for(let r in t){if(t[r]!=A[r])return!0;e++}for(let r in A)n++;return e!=n}function hg(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),Ke=0;Ke<10;Ke++)mr[48+Ke]=mr[96+Ke]=String(Ke);for(var Ke=1;Ke<=24;Ke++)mr[Ke+111]="F"+Ke;for(var Ke=65;Ke<=90;Ke++)mr[Ke]=String.fromCharCode(Ke+32),ra[Ke]=String.fromCharCode(Ke);for(var eu in mr)ra.hasOwnProperty(eu)||(ra[eu]=mr[eu]);function Yb(t){var A=Jb&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Xb&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!A&&t.key||(t.shiftKey?ra:mr)[t.keyCode]||t.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}const zb=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function qb(t){let A=t.split(/-(?!$)/),e=A[A.length-1];e=="Space"&&(e=" ");let n,r,i,s;for(let a=0;a<A.length-1;a++){let c=A[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&&(e="Alt-"+e),r&&(e="Ctrl-"+e),s&&(e="Meta-"+e),i&&(e="Shift-"+e),e}function Zb(t){let A=Object.create(null);for(let e in t)A[qb(e)]=t[e];return A}function tu(t,A,e=!0){return A.altKey&&(t="Alt-"+t),A.ctrlKey&&(t="Ctrl-"+t),A.metaKey&&(t="Meta-"+t),e&&A.shiftKey&&(t="Shift-"+t),t}function jb(t){return new pt({props:{handleKeyDown:pg(t)}})}function pg(t){let A=Zb(t);return function(e,n){let r=Yb(n),i,s=A[tu(r,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=A[tu(r,n,!1)];if(a&&a(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=mr[n.keyCode])&&i!=r){let a=A[tu(i,n)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const AU=(t,A)=>t.selection.empty?!1:(A&&A(t.tr.deleteSelection().scrollIntoView()),!0);function gg(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("backward",t):e.parentOffset>0)?null:e}const eU=(t,A,e)=>{let n=gg(t,e);if(!n)return!1;let r=nu(n);if(!r){let s=n.blockRange(),a=s&&vi(s);return a==null?!1:(A&&A(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&Cg(t,r,A))return!0;if(n.parent.content.size==0&&(Ni(i,"end")||fA.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(A){let a=t.tr.step(s);a.setSelection(Ni(i,"end")?QA.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):fA.create(a.doc,r.pos-i.nodeSize)),A(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(A&&A(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},tU=(t,A,e)=>{let n=gg(t,e);if(!n)return!1;let r=nu(n);return r?mg(t,r,A):!1},nU=(t,A,e)=>{let n=Bg(t,e);if(!n)return!1;let r=ru(n);return r?mg(t,r,A):!1};function mg(t,A,e){let n=A.nodeBefore,r=n,i=A.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=A.nodeAfter,a=s,c=A.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 xe&&u.slice.size>=c-i)return!1;if(e){let f=t.tr.step(u);f.setSelection(CA.create(f.doc,i)),e(f.scrollIntoView())}return!0}function Ni(t,A,e=!1){for(let n=t;n;n=A=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(e&&n.childCount!=1)return!1}return!1}const rU=(t,A,e)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(e?!e.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=nu(n)}let s=i&&i.nodeBefore;return!s||!fA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(fA.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function nu(t){if(!t.parent.type.spec.isolating)for(let A=t.depth-1;A>=0;A--){if(t.index(A)>0)return t.doc.resolve(t.before(A+1));if(t.node(A).type.spec.isolating)break}return null}function Bg(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("forward",t):e.parentOffset<e.parent.content.size)?null:e}const iU=(t,A,e)=>{let n=Bg(t,e);if(!n)return!1;let r=ru(n);if(!r)return!1;let i=r.nodeAfter;if(Cg(t,r,A))return!0;if(n.parent.content.size==0&&(Ni(i,"start")||fA.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(A){let a=t.tr.step(s);a.setSelection(Ni(i,"start")?QA.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):fA.create(a.doc,a.mapping.map(r.pos))),A(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(A&&A(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},sU=(t,A,e)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=ru(n)}let s=i&&i.nodeAfter;return!s||!fA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(fA.create(t.doc,i.pos)).scrollIntoView()),!0)};function ru(t){if(!t.parent.type.spec.isolating)for(let A=t.depth-1;A>=0;A--){let e=t.node(A);if(t.index(A)+1<e.childCount)return t.doc.resolve(t.after(A+1));if(e.type.spec.isolating)break}return null}const oU=(t,A)=>{let e=t.selection,n=e instanceof fA,r;if(n){if(e.node.isTextblock||!ar(t.doc,e.from))return!1;r=e.from}else if(r=Jo(t.doc,e.from,-1),r==null)return!1;if(A){let i=t.tr.join(r);n&&i.setSelection(fA.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),A(i.scrollIntoView())}return!0},aU=(t,A)=>{let e=t.selection,n;if(e instanceof fA){if(e.node.isTextblock||!ar(t.doc,e.to))return!1;n=e.to}else if(n=Jo(t.doc,e.to,1),n==null)return!1;return A&&A(t.tr.join(n).scrollIntoView()),!0},lU=(t,A)=>{let{$from:e,$to:n}=t.selection,r=e.blockRange(n),i=r&&vi(r);return i==null?!1:(A&&A(t.tr.lift(r,i).scrollIntoView()),!0)},cU=(t,A)=>{let{$head:e,$anchor:n}=t.selection;return!e.parent.type.spec.code||!e.sameParent(n)?!1:(A&&A(t.tr.insertText(`
11
- `).scrollIntoView()),!0)};function wg(t){for(let A=0;A<t.edgeCount;A++){let{type:e}=t.edge(A);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}const uU=(t,A)=>{let{$head:e,$anchor:n}=t.selection;if(!e.parent.type.spec.code||!e.sameParent(n))return!1;let r=e.node(-1),i=e.indexAfter(-1),s=wg(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(A){let a=e.after(),c=t.tr.replaceWith(a,a,s.createAndFill());c.setSelection(QA.near(c.doc.resolve(a),1)),A(c.scrollIntoView())}return!0},fU=(t,A)=>{let e=t.selection,{$from:n,$to:r}=e;if(e instanceof tn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=wg(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(A){let s=(!n.parentOffset&&r.index()<r.parent.childCount?n:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(CA.create(a.doc,s+1)),A(a.scrollIntoView())}return!0},dU=(t,A)=>{let{$cursor:e}=t.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let i=e.before();if(Ii(t.doc,i))return A&&A(t.tr.split(i).scrollIntoView()),!0}let n=e.blockRange(),r=n&&vi(n);return r==null?!1:(A&&A(t.tr.lift(n,r).scrollIntoView()),!0)},hU=(t,A)=>{let{$from:e,to:n}=t.selection,r,i=e.sharedDepth(n);return i==0?!1:(r=e.before(i),A&&A(t.tr.setSelection(fA.create(t.doc,r))),!0)};function pU(t,A,e){let n=A.nodeBefore,r=A.nodeAfter,i=A.index();return!n||!r||!n.type.compatibleContent(r.type)?!1:!n.content.size&&A.parent.canReplace(i-1,i)?(e&&e(t.tr.delete(A.pos-n.nodeSize,A.pos).scrollIntoView()),!0):!A.parent.canReplace(i,i+1)||!(r.isTextblock||ar(t.doc,A.pos))?!1:(e&&e(t.tr.clearIncompatible(A.pos,n.type,n.contentMatchAt(n.childCount)).join(A.pos).scrollIntoView()),!0)}function Cg(t,A,e){let n=A.nodeBefore,r=A.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(pU(t,A,e))return!0;let a=A.parent.canReplace(A.index(),A.index()+1);if(a&&(i=(s=n.contentMatchAt(n.childCount)).findWrapping(r.type))&&s.matchType(i[0]||r.type).validEnd){if(e){let p=A.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 Oe(A.pos-1,p,A.pos,p,new j(g,1,0),i.length,!0)),w=p+2*i.length;ar(B.doc,w)&&B.join(w),e(B.scrollIntoView())}return!0}let c=QA.findFrom(A,1),u=c&&c.$from.blockRange(c.$to),f=u&&vi(u);if(f!=null&&f>=A.depth)return e&&e(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Ni(r,"start",!0)&&Ni(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(e){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 Oe(A.pos-g.length,A.pos+r.nodeSize,A.pos+w,A.pos+r.nodeSize-w,new j(Q,g.length,0),0,!0));e(b.scrollIntoView())}return!0}}return!1}function yg(t){return function(A,e){let n=A.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?(e&&e(A.tr.setSelection(CA.create(A.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const gU=yg(-1),mU=yg(1);function BU(t,A=null){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i),a=s&&bc(s,t,A);return a?(n&&n(e.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Eg(t,A=null){return function(e,n){let r=!1;for(let i=0;i<e.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=e.selection.ranges[i];e.doc.nodesBetween(s,a,(c,u)=>{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(t,A)))if(c.type==t)r=!0;else{let f=e.doc.resolve(u),p=f.index();r=f.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=e.tr;for(let s=0;s<e.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=e.selection.ranges[s];i.setBlockType(a,c,t,A)}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,A=null){return function(e,n){let{$from:r,$to:i}=e.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=e.doc.resolve(s.start-2);c=new Ro(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new Ro(r,e.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=bc(c,t,A,s);return u?(n&&n(CU(e.tr,s,u,a,t).scrollIntoView()),!0):!1}}function CU(t,A,e,n,r){let i=Y.empty;for(let f=e.length-1;f>=0;f--)i=Y.from(e[f].type.create(e[f].attrs,i));t.step(new Oe(A.start-(n?2:0),A.end,A.start,A.end,new j(i,0,0),e.length,!0));let s=0;for(let f=0;f<e.length;f++)e[f].type==r&&(s=f+1);let a=e.length-s,c=A.start+e.length-(n?2:0),u=A.parent;for(let f=A.startIndex,p=A.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(A,e){let{$from:n,$to:r}=A.selection,i=n.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?e?n.node(i.depth-1).type==t?EU(A,e,t,i):QU(A,e,i):!0:!1}}function EU(t,A,e,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new Oe(i-1,s,i,s,new j(Y.from(e.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),A(r.scrollIntoView()),!0}function QU(t,A,e){let n=t.tr,r=e.parent;for(let B=e.end,w=e.endIndex-1,Q=e.startIndex;w>Q;w--)B-=r.child(w).nodeSize,n.delete(B-1,B+1);let i=n.doc.resolve(e.start),s=i.nodeAfter;if(n.mapping.map(e.end)!=e.start+i.nodeAfter.nodeSize)return!1;let a=e.startIndex==0,c=e.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 Oe(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)),A(n.scrollIntoView()),!0}function FU(t){return function(A,e){let{$from:n,$to:r}=A.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(e){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;e(A.tr.step(new Oe(g-(u?3:1),B,g,B,p,1,!0)).scrollIntoView())}return!0}}function ia(t){const{state:A,transaction:e}=t;let{selection:n}=e,{doc:r}=e,{storedMarks:i}=e;return{...A,apply:A.apply.bind(A),applyTransaction:A.applyTransaction.bind(A),plugins:A.plugins,schema:A.schema,reconfigure:A.reconfigure.bind(A),toJSON:A.toJSON.bind(A),get storedMarks(){return i},get selection(){return n},get doc(){return r},get tr(){return n=e.selection,r=e.doc,i=e.storedMarks,e}}}class sa{constructor(A){this.editor=A.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=A.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:A,editor:e,state:n}=this,{view:r}=e,{tr:i}=n,s=this.buildProps(i);return Object.fromEntries(Object.entries(A).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(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!A,u=A||i.tr,f=()=>(!c&&e&&!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,e),v=B(...Q)(b);return a.push(v),p}])),run:f};return p}createCan(A){const{rawCommands:e,state:n}=this,r=!1,i=A||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(e).map(([c,u])=>[c,(...f)=>u(...f)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a={tr:A,editor:r,view:s,state:ia({state:i,transaction:A}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(A,e),can:()=>this.createCan(A),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...f)=>u(...f)(a)]))}};return a}}class bU{constructor(){this.callbacks={}}on(A,e){return this.callbacks[A]||(this.callbacks[A]=[]),this.callbacks[A].push(e),this}emit(A,...e){const n=this.callbacks[A];return n&&n.forEach(r=>r.apply(this,e)),this}off(A,e){const n=this.callbacks[A];return n&&(e?this.callbacks[A]=n.filter(r=>r!==e):delete this.callbacks[A]),this}removeAllListeners(){this.callbacks={}}}function aA(t,A,e){return t.config[A]===void 0&&t.parent?aA(t.parent,A,e):typeof t.config[A]=="function"?t.config[A].bind({...e,parent:t.parent?aA(t.parent,A,e):null}):t.config[A]}function oa(t){const A=t.filter(r=>r.type==="extension"),e=t.filter(r=>r.type==="node"),n=t.filter(r=>r.type==="mark");return{baseExtensions:A,nodeExtensions:e,markExtensions:n}}function Qg(t){const A=[],{nodeExtensions:e,markExtensions:n}=oa(t),r=[...e,...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=aA(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(p=>{Object.entries(f.attributes).forEach(([g,B])=>{A.push({type:p,name:g,attribute:{...i,...B}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=aA(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,A.push({type:s.name,name:f,attribute:g})})}),A}function Le(t,A){if(typeof t=="string"){if(!A.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return A.nodes[t]}return t}function Fe(...t){return t.filter(A=>!!A).reduce((A,e)=>{const n={...A};return Object.entries(e).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,A){return A.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]}).reduce((e,n)=>Fe(e,n),{})}function Fg(t){return typeof t=="function"}function FA(t,A=void 0,...e){return Fg(t)?A?t.bind(A)(...e):t(...e):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 bg(t,A){return t.style?t:{...t,getAttrs:e=>{const n=t.getAttrs?t.getAttrs(e):t.attrs;if(n===!1)return!1;const r=A.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(e):vU(e.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function Ug(t){return Object.fromEntries(Object.entries(t).filter(([A,e])=>A==="attrs"&&UU(e)?!1:e!=null))}function IU(t,A){var e;const n=Qg(t),{nodeExtensions:r,markExtensions:i}=oa(t),s=(e=r.find(u=>aA(u,"topNode")))===null||e===void 0?void 0:e.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:A},g=t.reduce((v,_)=>{const S=aA(_,"extendNodeSchema",p);return{...v,...S?S(u):{}}},{}),B=Ug({...g,content:FA(aA(u,"content",p)),marks:FA(aA(u,"marks",p)),group:FA(aA(u,"group",p)),inline:FA(aA(u,"inline",p)),atom:FA(aA(u,"atom",p)),selectable:FA(aA(u,"selectable",p)),draggable:FA(aA(u,"draggable",p)),code:FA(aA(u,"code",p)),defining:FA(aA(u,"defining",p)),isolating:FA(aA(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=FA(aA(u,"parseHTML",p));w&&(B.parseDOM=w.map(v=>bg(v,f)));const Q=aA(u,"renderHTML",p);Q&&(B.toDOM=v=>Q({node:v,HTMLAttributes:iu(v,f)}));const b=aA(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:A},g=t.reduce((b,v)=>{const _=aA(v,"extendMarkSchema",p);return{...b,..._?_(u):{}}},{}),B=Ug({...g,inclusive:FA(aA(u,"inclusive",p)),excludes:FA(aA(u,"excludes",p)),group:FA(aA(u,"group",p)),spanning:FA(aA(u,"spanning",p)),code:FA(aA(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=FA(aA(u,"parseHTML",p));w&&(B.parseDOM=w.map(b=>bg(b,f)));const Q=aA(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,A){return A.nodes[t]||A.marks[t]||null}function vg(t,A){return Array.isArray(A)?A.some(e=>(typeof e=="string"?e:e.name)===t.name):A}const SU=(t,A=500)=>{let e="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-A),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%";e+=f.slice(0,Math.max(0,n-i))}),e};function ou(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class aa{constructor(A){this.find=A.find,this.handler=A.handler}}const TU=(t,A)=>{if(ou(A))return A.exec(t);const e=A(t);if(!e)return null;const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(e.replaceWith)),n};function la(t){var A;const{editor:e,from:n,to:r,text:i,rules:s,plugin:a}=t,{view:c}=e;if(c.composing)return!1;const u=c.state.doc.resolve(n);if(u.parent.type.spec.code||!((A=u.nodeBefore||u.nodeAfter)===null||A===void 0)&&A.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:e,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:A,rules:e}=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:A,from:u,to:p,text:f,rules:e,plugin:n})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return la({editor:A,from:i,to:s,text:a,rules:e,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&la({editor:A,from:i.pos,to:i.pos,text:"",rules:e,plugin:n})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?la({editor:A,from:s.pos,to:s.pos,text:`
12
- `,rules:e,plugin:n}):!1}},isInputRules:!0});return n}function xU(t){return typeof t=="number"}class OU{constructor(A){this.find=A.find,this.handler=A.handler}}const LU=(t,A,e)=>{if(ou(A))return[...t.matchAll(A)];const n=A(t,e);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:A,state:e,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new sa({editor:A,state:e}),p=[];return e.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:e.tr.mapping.map(E),to:e.tr.mapping.map(L)},D=i.handler({state:e,range:U,match:S,commands:c,chain:u,can:f,pasteEvent:s,dropEvent:a});p.push(D)})}),p.every(B=>B!==null)}const kU=t=>{var A;const e=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(A=e.clipboardData)===null||A===void 0||A.setData("text/html",t),e};function DU(t){const{editor:A,rules:e}=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:A,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 e.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,D=L+U.length,P=kU(U);return c({rule:f,state:B,from:L,to:{b:D},pasteEvt:P})}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 NU(t){const A=t.filter((e,n)=>t.indexOf(e)!==n);return[...new Set(A)]}class Mi{constructor(A,e){this.splittableMarks=[],this.editor=e,this.extensions=Mi.resolve(A),this.schema=IU(this.extensions,e),this.setupExtensions()}static resolve(A){const e=Mi.sort(Mi.flatten(A)),n=NU(e.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.`),e}static flatten(A){return A.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=aA(e,"addExtensions",n);return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(A){return A.sort((n,r)=>{const i=aA(n,"priority")||100,s=aA(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((A,e)=>{const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:su(e.name,this.schema)},r=aA(e,"addCommands",n);return r?{...A,...r()}:A},{})}get plugins(){const{editor:A}=this,e=Mi.sort([...this.extensions].reverse()),n=[],r=[],i=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:A,type:su(s.name,this.schema)},c=[],u=aA(s,"addKeyboardShortcuts",a);let f={};if(s.type==="mark"&&s.config.exitable&&(f.ArrowRight=()=>sn.handleExit({editor:A,mark:s})),u){const Q=Object.fromEntries(Object.entries(u()).map(([b,v])=>[b,()=>v({editor:A})]));f={...f,...Q}}const p=jb(f);c.push(p);const g=aA(s,"addInputRules",a);vg(s,A.options.enableInputRules)&&g&&n.push(...g());const B=aA(s,"addPasteRules",a);vg(s,A.options.enablePasteRules)&&B&&r.push(...B());const w=aA(s,"addProseMirrorPlugins",a);if(w){const Q=w();c.push(...Q)}return c}).flat();return[_U({editor:A,rules:n}),...DU({editor:A,rules:r}),...i]}get attributes(){return Qg(this.extensions)}get nodeViews(){const{editor:A}=this,{nodeExtensions:e}=oa(this.extensions);return Object.fromEntries(e.filter(n=>!!aA(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:A,type:Le(n.name,this.schema)},s=aA(n,"addNodeView",i);if(!s)return[];const a=(c,u,f,p)=>{const g=iu(c,r);return s()({editor:A,node:c,getPos:f,decorations:p,HTMLAttributes:g,extension:n})};return[n.name,a]}))}setupExtensions(){this.extensions.forEach(A=>{var e;this.editor.extensionStorage[A.name]=A.storage;const n={name:A.name,options:A.options,storage:A.storage,editor:this.editor,type:su(A.name,this.schema)};A.type==="mark"&&(!((e=FA(aA(A,"keepOnSplit",n)))!==null&&e!==void 0)||e)&&this.splittableMarks.push(A.name);const r=aA(A,"onBeforeCreate",n),i=aA(A,"onCreate",n),s=aA(A,"onUpdate",n),a=aA(A,"onSelectionUpdate",n),c=aA(A,"onTransaction",n),u=aA(A,"onFocus",n),f=aA(A,"onBlur",n),p=aA(A,"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,A){const e={...t};return au(t)&&au(A)&&Object.keys(A).forEach(n=>{au(A[n])?n in t?e[n]=ca(t[n],A[n]):Object.assign(e,{[n]:A[n]}):Object.assign(e,{[n]:A[n]})}),e}class Ye{constructor(A={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...A},this.name=this.config.name,A.defaultOptions&&Object.keys(A.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=FA(aA(this,"addOptions",{name:this.name}))),this.storage=FA(aA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new Ye(A)}configure(A={}){const e=this.extend();return e.parent=this.parent,e.options=ca(this.options,A),e.storage=FA(aA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new Ye({...this.config,...A});return e.parent=this,this.child=e,e.name=A.name?A.name:e.parent.name,A.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=FA(aA(e,"addOptions",{name:e.name})),e.storage=FA(aA(e,"addStorage",{name:e.name,options:e.options})),e}}function Ig(t,A,e){const{from:n,to:r}=A,{blockSeparator:i=`
13
-
14
- `,textSerializers:s={}}=e||{};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:A})),!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 Sg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,A])=>A.spec.toText).map(([A,e])=>[A,e.spec.toText]))}const RU=Ye.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pt({key:new wn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:A,schema:e}=t,{doc:n,selection:r}=A,{ranges:i}=r,s=Math.min(...i.map(f=>f.$from.pos)),a=Math.max(...i.map(f=>f.$to.pos)),c=Sg(e);return Ig(n,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),KU=()=>({editor:t,view:A})=>(requestAnimationFrame(()=>{var e;t.isDestroyed||(A.dom.blur(),(e=window==null?void 0:window.getSelection())===null||e===void 0||e.removeAllRanges())}),!0),PU=(t=!1)=>({commands:A})=>A.setContent("",t),VU=()=>({state:t,tr:A,dispatch:e})=>{const{selection:n}=A,{ranges:r}=n;return e&&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}=A,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());A.setNodeMarkup(B.start,Q)}(w||w===0)&&A.lift(B,w)})}),!0},GU=t=>A=>t(A),WU=()=>({state:t,dispatch:A})=>fU(t,A),$U=(t,A)=>({editor:e,tr:n})=>{const{state:r}=e,i=r.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const s=n.mapping.map(A);return n.insert(s,i.content),n.setSelection(new CA(n.doc.resolve(s-1))),!0},JU=()=>({tr:t,dispatch:A})=>{const{selection:e}=t,n=e.$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(A){const a=r.before(i),c=r.after(i);t.delete(a,c).scrollIntoView()}return!0}return!1},XU=t=>({tr:A,state:e,dispatch:n})=>{const r=Le(t,e.schema),i=A.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);A.delete(c,u).scrollIntoView()}return!0}return!1},YU=t=>({tr:A,dispatch:e})=>{const{from:n,to:r}=t;return e&&A.delete(n,r),!0},zU=()=>({state:t,dispatch:A})=>AU(t,A),qU=()=>({commands:t})=>t.keyboardShortcut("Enter"),ZU=()=>({state:t,dispatch:A})=>uU(t,A);function ua(t,A,e={strict:!0}){const n=Object.keys(A);return n.length?n.every(r=>e.strict?A[r]===t[r]:ou(A[r])?A[r].test(t[r]):A[r]===t[r]):!0}function lu(t,A,e={}){return t.find(n=>n.type===A&&ua(n.attrs,e))}function jU(t,A,e={}){return!!lu(t,A,e)}function cu(t,A,e={}){if(!t||!A)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],A,e);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],A,e);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],A,e);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function Br(t,A){if(typeof t=="string"){if(!A.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return A.marks[t]}return t}const Av=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const i=Br(t,n.schema),{doc:s,selection:a}=e,{$from:c,from:u,to:f}=a;if(r){const p=cu(c,i,A);if(p&&p.from<=u&&p.to>=f){const g=CA.create(s,p.from,p.to);e.setSelection(g)}}return!0},ev=t=>A=>{const e=typeof t=="function"?t(A):t;for(let n=0;n<e.length;n+=1)if(e[n](A))return!0;return!1};function uu(t){return t instanceof CA}function Dn(t=0,A=0,e=0){return Math.min(Math.max(t,A),e)}function Tg(t,A=null){if(!A)return null;const e=QA.atStart(t),n=QA.atEnd(t);if(A==="start"||A===!0)return e;if(A==="end")return n;const r=e.from,i=n.to;return A==="all"?CA.create(t,Dn(0,r,i),Dn(t.content.size,r,i)):CA.create(t,Dn(A,r,i),Dn(A,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,A={})=>({editor:e,view:n,tr:r,dispatch:i})=>{A={scrollIntoView:!0,...A};const s=()=>{fu()&&n.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(n.focus(),A!=null&&A.scrollIntoView&&e.commands.scrollIntoView())})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!uu(e.state.selection))return s(),!0;const a=Tg(r.doc,t)||e.state.selection,c=e.state.selection.eq(a);return i&&(c||r.setSelection(a),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},nv=(t,A)=>e=>t.every((n,r)=>A(n,{...e,index:r})),rv=(t,A)=>({tr:e,commands:n})=>n.insertContentAt({from:e.selection.from,to:e.selection.to},t,A),_g=t=>{const A=t.childNodes;for(let e=A.length-1;e>=0;e-=1){const n=A[e];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&_g(n)}return t};function xg(t){const A=`<body>${t}</body>`,e=new window.DOMParser().parseFromString(A,"text/html").body;return _g(e)}function fa(t,A,e){e={slice:!0,parseOptions:{},...e};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=>A.nodeFromJSON(s))):A.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),fa("",A,e)}if(r){const i=Fi.fromSchema(A);return e.slice?i.parseSlice(xg(t),e.parseOptions).content:i.parse(xg(t),e.parseOptions)}return fa("",A,e)}function iv(t,A,e){const n=t.steps.length-1;if(n<A)return;const r=t.steps[n];if(!(r instanceof xe||r instanceof Oe))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(QA.near(t.doc.resolve(s),e))}const sv=t=>t.toString().startsWith("<"),ov=(t,A,e)=>({tr:n,dispatch:r,editor:i})=>{if(r){e={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...e};const s=fa(A,i.schema,{parseOptions:{preserveWhitespace:"full",...e.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(A)?g=A.map(B=>B.text||"").join(""):typeof A=="object"&&A&&A.text?g=A.text:g=A,n.insertText(g,a,c)):(g=s,n.replaceWith(a,c,g)),e.updateSelection&&iv(n,n.steps.length-1,-1),e.applyInputRules&&n.setMeta("applyInputRules",{from:a,text:g}),e.applyPasteRules&&n.setMeta("applyPasteRules",{from:a,text:g})}return!0},av=()=>({state:t,dispatch:A})=>oU(t,A),lv=()=>({state:t,dispatch:A})=>aU(t,A),cv=()=>({state:t,dispatch:A})=>eU(t,A),uv=()=>({state:t,dispatch:A})=>iU(t,A),fv=()=>({tr:t,state:A,dispatch:e})=>{try{const n=Jo(A.doc,A.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),e&&e(t),!0)}catch{return!1}},dv=()=>({state:t,dispatch:A,tr:e})=>{try{const n=Jo(t.doc,t.selection.$from.pos,1);return n==null?!1:(e.join(n,2),A&&A(e),!0)}catch{return!1}},hv=()=>({state:t,dispatch:A})=>tU(t,A),pv=()=>({state:t,dispatch:A})=>nU(t,A);function Og(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function gv(t){const A=t.split(/-(?!$)/);let e=A[A.length-1];e==="Space"&&(e=" ");let n,r,i,s;for(let a=0;a<A.length-1;a+=1){const c=A[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()||Og()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return n&&(e=`Alt-${e}`),r&&(e=`Ctrl-${e}`),s&&(e=`Meta-${e}`),i&&(e=`Shift-${e}`),e}const mv=t=>({editor:A,view:e,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=A.captureTransaction(()=>{e.someProp("handleKeyDown",u=>u(e,a))});return c==null||c.steps.forEach(u=>{const f=u.map(n.mapping);f&&r&&n.maybeStep(f)}),!0};function Rs(t,A,e={}){const{from:n,to:r,empty:i}=t.selection,s=A?Le(A,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,e,{strict:!1}));return i?!!u.length:u.reduce((p,g)=>p+g.to-g.from,0)>=c}const Bv=(t,A={})=>({state:e,dispatch:n})=>{const r=Le(t,e.schema);return Rs(e,r,A)?lU(e,n):!1},wv=()=>({state:t,dispatch:A})=>dU(t,A),Cv=t=>({state:A,dispatch:e})=>{const n=Le(t,A.schema);return yU(n)(A,e)},yv=()=>({state:t,dispatch:A})=>cU(t,A);function da(t,A){return A.nodes[t]?"node":A.marks[t]?"mark":null}function Lg(t,A){const e=typeof A=="string"?[A]:A;return Object.keys(t).reduce((n,r)=>(e.includes(r)||(n[r]=t[r]),n),{})}const Ev=(t,A)=>({tr:e,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=Le(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&e.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,f)=>{i&&i===u.type&&e.setNodeMarkup(f,void 0,Lg(u.attrs,A)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&e.addMark(f,f+u.nodeSize,s.create(Lg(p.attrs,A)))})})}),!0):!1},Qv=()=>({tr:t,dispatch:A})=>(A&&t.scrollIntoView(),!0),Fv=()=>({tr:t,commands:A})=>A.setTextSelection({from:0,to:t.doc.content.size}),bv=()=>({state:t,dispatch:A})=>rU(t,A),Uv=()=>({state:t,dispatch:A})=>sU(t,A),vv=()=>({state:t,dispatch:A})=>hU(t,A),Iv=()=>({state:t,dispatch:A})=>mU(t,A),Sv=()=>({state:t,dispatch:A})=>gU(t,A);function Hg(t,A,e={}){return fa(t,A,{slice:!1,parseOptions:e})}const Tv=(t,A=!1,e={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=Hg(t,r.schema,e);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!A),!0};function ha(t,A){const e=Br(A,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===e.name);return a?{...a.attrs}:{}}function _v(t){for(let A=0;A<t.edgeCount;A+=1){const{type:e}=t.edge(A);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}function xv(t,A){for(let e=t.depth;e>0;e-=1){const n=t.node(e);if(A(n))return{pos:e>0?t.before(e):0,start:t.start(e),depth:e,node:n}}}function du(t){return A=>xv(A.$from,t)}function Ov(t,A){const e=mn.fromSchema(A).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function Lv(t,A){const e={from:0,to:t.content.size};return Ig(t,e,A)}function Hv(t,A){const e=Le(A,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===e.name);return s?{...s.attrs}:{}}function kv(t,A){const e=da(typeof A=="string"?A:A.name,t.schema);return e==="node"?Hv(t,A):e==="mark"?ha(t,A):{}}function kg(t,A,e){const n=[];return t===A?e.resolve(t).marks().forEach(r=>{const i=e.resolve(t-1),s=cu(i,r.type);s&&n.push({mark:r,...s})}):e.nodesBetween(t,A,(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,A,e){return Object.fromEntries(Object.entries(e).filter(([n])=>{const r=t.find(i=>i.type===A&&i.name===n);return r?r.attribute.keepOnSplit:!1}))}function hu(t,A,e={}){const{empty:n,ranges:r}=t.selection,i=A?Br(A,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,e,{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,e,{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,A,e={}){if(!A)return Rs(t,null,e)||hu(t,null,e);const n=da(A,t.schema);return n==="node"?Rs(t,A,e):n==="mark"?hu(t,A,e):!1}function Dg(t,A){const{nodeExtensions:e}=oa(A),n=e.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=FA(aA(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Nv(t){var A;const e=(A=t.type.createAndFill())===null||A===void 0?void 0:A.toJSON(),n=t.toJSON();return JSON.stringify(e)===JSON.stringify(n)}function Mv(t){return t instanceof fA}function Ng(t,A,e){const r=t.state.doc.content.size,i=Dn(A,0,r),s=Dn(e,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,A,e){var n;const{selection:r}=A;let i=null;if(uu(r)&&(i=r.$cursor),i){const a=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!e.isInSet(a)||!a.some(c=>c.type.excludes(e))}const{ranges:s}=r;return s.some(({$from:a,$to:c})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(e):!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(e),w=!!e.isInSet(f.marks)||!f.marks.some(Q=>Q.type.excludes(e));u=B&&w}return!u}),u})}const Kv=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=e,{empty:s,ranges:a}=i,c=Br(t,n.schema);if(r)if(s){const u=ha(n,c);e.addStoredMark(c.create({...u,...A}))}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&&e.addMark(w,Q,c.create({...v.attrs,...A}))}):e.addMark(w,Q,c.create(A))})});return Rv(n,e,c)},Pv=(t,A)=>({tr:e})=>(e.setMeta(t,A),!0),Vv=(t,A={})=>({state:e,dispatch:n,chain:r})=>{const i=Le(t,e.schema);return i.isTextblock?r().command(({commands:s})=>Eg(i,A)(e)?!0:s.clearNodes()).command(({state:s})=>Eg(i,A)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Gv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,r=Dn(t,0,n.content.size),i=fA.create(n,r);A.setSelection(i)}return!0},Wv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=CA.atStart(n).from,a=CA.atEnd(n).to,c=Dn(r,s,a),u=Dn(i,s,a),f=CA.create(n,c,u);A.setSelection(f)}return!0},$v=t=>({state:A,dispatch:e})=>{const n=Le(t,A.schema);return FU(n)(A,e)};function Mg(t,A){const e=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(e){const n=e.filter(r=>A==null?void 0:A.includes(r.type.name));t.tr.ensureMarks(n)}}const Jv=({keepMarks:t=!0}={})=>({tr:A,state:e,dispatch:n,editor:r})=>{const{selection:i,doc:s}=A,{$from:a,$to:c}=i,u=r.extensionManager.attributes,f=pa(u,a.node().type.name,a.node().attrs);if(i instanceof fA&&i.node.isBlock)return!a.parentOffset||!Ii(s,a.pos)?!1:(n&&(t&&Mg(e,r.extensionManager.splittableMarks),A.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof CA&&A.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(A.doc,A.mapping.map(a.pos),1,B);if(!B&&!w&&Ii(A.doc,A.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,B=g?[{type:g,attrs:f}]:void 0),w&&(A.split(A.mapping.map(a.pos),1,B),g&&!p&&!a.parentOffset&&a.parent.type!==g)){const Q=A.mapping.map(a.before()),b=A.doc.resolve(Q);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&A.setNodeMarkup(A.mapping.map(a.before()),g)}t&&Mg(e,r.extensionManager.splittableMarks),A.scrollIntoView()}return!0},Xv=t=>({tr:A,state:e,dispatch:n,editor:r})=>{var i;const s=Le(t,e.schema),{$from:a,$to:c}=e.selection,u=e.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 D=a.depth-v;D>=a.depth-3;D-=1)b=Y.from(a.node(D).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));A.replace(L,a.after(-_),new j(b,4-v,0));let U=-1;A.doc.nodesBetween(L,A.doc.content.size,(D,P)=>{if(U>-1)return!1;D.isTextblock&&D.content.size===0&&(U=P+1)}),U>-1&&A.setSelection(CA.near(A.doc.resolve(U))),A.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);A.delete(a.pos,c.pos);const Q=g?[{type:s,attrs:B},{type:g,attrs:w}]:[{type:s,attrs:B}];if(!Ii(A.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:v}=e,{splittableMarks:_}=r.extensionManager,S=v||b.$to.parentOffset&&b.$from.marks();if(A.split(a.pos,2,Q).scrollIntoView(),!S||!n)return!0;const E=S.filter(L=>_.includes(L.type.name));A.ensureMarks(E)}return!0},pu=(t,A)=>{const e=du(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.node.type===(r==null?void 0:r.type)&&ar(t.doc,e.pos)&&t.join(e.pos),!0},gu=(t,A)=>{const e=du(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(e.start).after(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.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:PU,clearNodes:VU,command:GU,createParagraphNear:WU,cut:$U,deleteCurrentNode:JU,deleteNode:XU,deleteRange:YU,deleteSelection:zU,enter:qU,exitCode:ZU,extendMarkRange:Av,first:ev,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:Pv,setNode:Vv,setNodeSelection:Gv,setTextSelection:Wv,sinkListItem:$v,splitBlock:Jv,splitListItem:Xv,toggleList:(t,A,e,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:p,splittableMarks:g}=r.extensionManager,B=Le(t,s.schema),w=Le(A,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!e||!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),D=E.filter(P=>g.includes(P.type.name));return i.ensureMarks(D),U?!0:u.clearNodes()}).wrapInList(B,n).command(()=>pu(i,B)).command(()=>gu(i,B)).run()},toggleMark:(t,A={},e={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=e,s=Br(t,n.schema);return hu(n,s,A)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,A)},toggleNode:(t,A,e={})=>({state:n,commands:r})=>{const i=Le(t,n.schema),s=Le(A,n.schema);return Rs(n,i,e)?r.setNode(s):r.setNode(i,e)},toggleWrap:(t,A={})=>({state:e,commands:n})=>{const r=Le(t,e.schema);return Rs(e,r,A)?n.lift(r):n.wrapIn(r,A)},undoInputRule:()=>({state:t,dispatch:A})=>{const e=t.plugins;for(let n=0;n<e.length;n+=1){const r=e[n];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(A){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:A})=>{const{selection:e}=t,{empty:n,ranges:r}=e;return n||A&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,A={})=>({tr:e,state:n,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=A,{selection:a}=e,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),e.removeMark(g,B,c)}else p.forEach(g=>{e.removeMark(g.$from.pos,g.$to.pos,c)});return e.removeStoredMark(c),!0},updateAttributes:(t,A={})=>({tr:e,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=Le(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&e.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(p,g)=>{i&&i===p.type&&e.setNodeMarkup(g,void 0,{...p.attrs,...A}),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);e.addMark(w,Q,s.create({...B.attrs,...A}))}})})}),!0):!1},wrapIn:(t,A={})=>({state:e,dispatch:n})=>{const r=Le(t,e.schema);return BU(r,A)(e,n)},wrapInList:(t,A={})=>({state:e,dispatch:n})=>{const r=Le(t,e.schema);return wU(r,A)(e,n)}});const zv=Ye.create({name:"commands",addCommands(){return{...Yv}}}),qv=Ye.create({name:"editable",addProseMirrorPlugins(){return[new pt({key:new wn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Zv=Ye.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new pt({key:new wn("focusEvents"),props:{handleDOMEvents:{focus:(A,e)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return A.dispatch(n),!1},blur:(A,e)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return A.dispatch(n),!1}}}})]}}),jv=Ye.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:QA.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()]),A=()=>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:A,"Mod-Delete":A,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":A,"Ctrl-Alt-Backspace":A,"Alt-Delete":A,"Alt-d":A,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return fu()||Og()?i:r},addProseMirrorPlugins(){return[new pt({key:new wn("clearDocument"),appendTransaction:(t,A,e)=>{if(!(t.some(w=>w.docChanged)&&!A.doc.eq(e.doc)))return;const{empty:r,from:i,to:s}=A.selection,a=QA.atStart(A.doc).from,c=QA.atEnd(A.doc).to;if(r||!(i===a&&s===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const p=e.tr,g=ia({state:e,transaction:p}),{commands:B}=new sa({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),AI=Ye.create({name:"tabindex",addProseMirrorPlugins(){return[new pt({key:new wn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Ai{constructor(A,e,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=A,this.editor=e,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 A;return(A=this.actualDepth)!==null&&A!==void 0?A:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(A){let e=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}e=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:e,to:n},A)}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 A=this.resolvedPos.start(this.resolvedPos.depth-1),e=this.resolvedPos.doc.resolve(A);return new Ai(e,this.editor)}get before(){let A=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return A.depth!==this.depth&&(A=this.resolvedPos.doc.resolve(this.from-3)),new Ai(A,this.editor)}get after(){let A=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return A.depth!==this.depth&&(A=this.resolvedPos.doc.resolve(this.to+3)),new Ai(A,this.editor)}get children(){const A=[];return this.node.content.forEach((e,n)=>{const r=e.isBlock&&!e.isTextblock,i=this.pos+n+1,s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new Ai(s,this.editor,r,r?e:null);r&&(a.actualDepth=this.depth+1),A.push(new Ai(s,this.editor,r,r?e:null))}),A}get firstChild(){return this.children[0]||null}get lastChild(){const A=this.children;return A[A.length-1]||null}closest(A,e={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===A)if(Object.keys(e).length>0){const i=r.node.attrs,s=Object.keys(e);for(let a=0;a<s.length;a+=1){const c=s[a];if(i[c]!==e[c])break}}else n=r;r=r.parent}return n}querySelector(A,e={}){return this.querySelectorAll(A,e,!0)[0]||null}querySelectorAll(A,e={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(e);return this.children.forEach(s=>{n&&r.length>0||(s.node.type.name===A&&i.every(c=>e[c]===s.node.attrs[c])&&r.push(s),!(n&&r.length>0)&&(r=r.concat(s.querySelectorAll(A,e,n))))}),r}setAttribute(A){const e=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,A).setTextSelection(e.from).run()}}const eI=`.ProseMirror {
1
+ (function(QA,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):(QA=typeof globalThis<"u"?globalThis:QA||self,h(QA.AblokComponents={},QA.Vue,QA.core))})(this,function(QA,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(A,e)=>(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))}}),qG="",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(A,e)=>(h.openBlock(),h.createElementBlock("span",gE,[mE,h.renderSlot(A.$slots,"default")]))}}),ZG="",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 A=h.ref(!1);return(e,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&&!A.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,wE)],2)):h.createCommentVNode("",!0)}}}),jG="",yE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.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(A,e)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,EE))}});function de(){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:()=>de()},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:A}){const e=t,n=A;function r(){n("update:modelValue",!e.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)]))}}),A3="",xE=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},OE={},LE={class:"accordion"};function HE(t,A){return h.openBlock(),h.createElementBlock("div",LE,[h.renderSlot(t.$slots,"default")])}const kE=xE(OE,[["render",HE]]),DE=["type","disabled"],NE=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 A=t,e=h.computed(()=>A.caption&&!A.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),e.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)}}}),e3="",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"],PE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.computed({get(){return e.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))}}),t3="",VE={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:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",VE,[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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue||e.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]))}}),n3=`: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"],AQ=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.computed({get(){const i=e.modelValue&&new Date(`${e.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))}}),eQ={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:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A;h.ref([]);const r=h.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>e.options&&e.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:e.modelValue&&e.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",eQ,[(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))]))}}),r3="",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:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A;h.ref(e.options.map(i=>i.value===e.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)])]))}}),i3="",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:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A;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(()=>e.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 Me(t){this.content=t}Me.prototype={constructor:Me,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new Me(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new Me(e)},addToStart:function(t,A){return new Me([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Me(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new Me(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=Me.from(t),t.size?new Me(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Me.from(t),t.size?new Me(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Me.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},Me.from=function(t){if(t instanceof Me)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Me(A)};function dh(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=dh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function hh(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,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++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=hh(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class Y{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,A-f),Math.min(c.content.size,e-f),n,r+f)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{let u=a.isText?a.text.slice(Math.max(A,c)-c,e-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(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new Y(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(A,e){return A==e?Y.empty:A==0&&e==this.content.length?this:new Y(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new Y(r,i)}addToStart(A){return new Y([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new Y(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))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(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return dh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return hh(this,A,e,n)}findIndex(A,e=-1){if(A==0)return ko(0,A);if(A==this.size)return ko(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>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(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return Y.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return Y.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new Y(e||A,n)}static from(A){if(!A)return Y.empty;if(A instanceof Y)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new Y([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,A){return gc.index=t,gc.offset=A,gc}function Do(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!Do(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Do(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let ZA=class ah{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&Do(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return ah.none;if(A instanceof ah)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};ZA.none=[];class No extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=gh(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(ph(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(Y.empty,0,0);function ph(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(ph(i.content,A-r-1,e-r-1)))}function gh(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=gh(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function mQ(t,A,e){if(e.openStart>t.depth)throw new No("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new No("Inconsistent open depths");return mh(t,A,e,0)}function mh(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=mh(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=BQ(e,t);return Gr(i,wh(t,s,a,A,n))}else return Gr(i,Mo(t,A,n))}function Bh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function mc(t,A,e){let n=t.node(e);return Bh(n,A.node(e)),n}function Vr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function Qs(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(Vr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Vr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Vr(A.nodeBefore,n)}function Gr(t,A){return t.type.checkContent(A),t.copy(A)}function wh(t,A,e,n,r){let i=t.depth>r&&mc(t,A,r+1),s=n.depth>r&&mc(e,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Bh(i,s),Vr(Gr(i,wh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Mo(t,A,r+1)),a),Qs(A,e,r,a),s&&Vr(Gr(s,Mo(e,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,A,e){let n=[];if(Qs(null,t,e,n),t.depth>e){let r=mc(t,A,e+1);Vr(Gr(r,Mo(t,A,e+1)),n)}return Qs(A,null,e,n),new Y(n)}function BQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Fs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return ZA.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);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(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.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(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new Ro(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){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(e,n,i)}static resolveCached(A,e){for(let r=0;r<Bc.length;r++){let i=Bc[r];if(i.pos==e&&i.doc==A)return i}let n=Bc[wc]=Fs.resolve(A,e);return wc=(wc+1)%wQ,n}}let Bc=[],wc=0,wQ=12;class Ro{constructor(A,e,n){this.$from=A,this.$to=e,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(A,e,n,r=ZA.none){this.type=A,this.attrs=e,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(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&Do(this.attrs,e||A.defaultAttrs||CQ)&&ZA.sameSet(this.marks,n||ZA.none)}copy(A=null){return A==this.content?this:new lh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new lh(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),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(A,e,n){return mQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return Fs.resolveCached(this,A)}resolveNoCache(A){return Fs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,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 A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),Ch(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);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(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=ZA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!ZA.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=Y.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(A,e,n,r){if(super(A,e,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(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new Ko(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ko(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function Ch(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class $r{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new yQ(A,e);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(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||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(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){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 e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
3
+ `)}}$r.empty=new $r(!0);class yQ{constructor(A,e){this.string=A,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=A.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(A){return this.next==A&&(this.pos++||!0)}err(A){throw new SyntaxError(A+" (in content expression '"+this.string+"')")}}function yh(t){let A=[];do A.push(EQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function EQ(t){let A=[];do A.push(QQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function QQ(t){let A=UQ(t);for(;;)if(t.eat("+"))A={type:"plus",expr:A};else if(t.eat("*"))A={type:"star",expr:A};else if(t.eat("?"))A={type:"opt",expr:A};else if(t.eat("{"))A=FQ(t,A);else break;return A}function Eh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function FQ(t,A){let e=Eh(t),n=e;return t.eat(",")&&(t.next!="}"?n=Eh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function bQ(t,A){let e=t.nodeTypes,n=e[A];if(n)return[n];let r=[];for(let i in e){let s=e[i];s.groups.indexOf(A)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+A+"' found"),r}function UQ(t){if(t.eat("(")){let A=yh(t);return t.eat(")")||t.err("Missing closing paren"),A}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let A=bQ(t,t.next).map(e=>(t.inline==null?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,A.length==1?A[0]:{type:"choice",exprs:A}}}function vQ(t){let A=[[]];return r(i(t,0),e()),A;function e(){return A.push([])-1}function n(s,a,c){let u={term:c,to:a};return A[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=e())}else if(s.type=="star"){let c=e();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=e();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=e();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=e();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,A){return A-t}function Fh(t,A){let e=[];return n(A),e.sort(Qh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);e.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&e.indexOf(c)==-1&&n(c)}}}function IQ(t){let A=Object.create(null);return e(Fh(t,0));function e(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=A[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:A[a.join(",")]||e(a)})}return i}}function SQ(t,A){for(let e=0,n=[t];e<n.length;e++){let r=n[e],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&&A.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function bh(t){let A=Object.create(null);for(let e in t){let n=t[e];if(!n.hasDefault)return null;A[e]=n.default}return A}function Uh(t,A){let e=Object.create(null);for(let n in t){let r=A&&A[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)}e[n]=r}return e}function vh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new TQ(t[e]);return A}let Ih=class fE{constructor(A,e,n){this.name=A,this.schema=e,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||A=="text"),this.isText=A=="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 A in this.attrs)if(this.attrs[A].isRequired)return!0;return!1}compatibleContent(A){return this==A||this.contentMatch.compatible(A.contentMatch)}computeAttrs(A){return!A&&this.defaultAttrs?this.defaultAttrs:Uh(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(A),Y.from(e),ZA.setFrom(n))}createChecked(A=null,e,n){return e=Y.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,ZA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=Y.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e)}let r=this.contentMatch.matchFragment(e),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,A,e.append(i),ZA.setFrom(n)):null}validContent(A){let e=this.contentMatch.matchFragment(A);if(!e||!e.validEnd)return!1;for(let n=0;n<A.childCount;n++)if(!this.allowsMarks(A.child(n).marks))return!1;return!0}checkContent(A){if(!this.validContent(A))throw new RangeError(`Invalid content for node ${this.name}: ${A.toString().slice(0,50)}`)}allowsMarkType(A){return this.markSet==null||this.markSet.indexOf(A)>-1}allowsMarks(A){if(this.markSet==null)return!0;for(let e=0;e<A.length;e++)if(!this.allowsMarkType(A[e].type))return!1;return!0}allowedMarks(A){if(this.markSet==null)return A;let e;for(let n=0;n<A.length;n++)this.allowsMarkType(A[n].type)?e&&e.push(A[n]):e||(e=A.slice(0,n));return e?e.length?e:ZA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new fE(i,e,s));let r=e.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(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Po{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=vh(r.attrs),this.excluded=null;let i=bh(this.attrs);this.instance=i?new ZA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new ZA(this,Uh(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Po(i,r++,e,s)),n}removeFromSet(A){for(var e=0;e<A.length;e++)A[e].type==this&&(A=A.slice(0,e).concat(A.slice(e+1)),e--);return A}isInSet(A){for(let e=0;e<A.length;e++)if(A[e].type==this)return A[e]}excludes(A){return this.excluded.indexOf(A)>-1}}class _Q{constructor(A){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=Me.from(A.nodes),e.marks=Me.from(A.marks||{}),this.nodes=Ih.compile(this.spec.nodes,this),this.marks=Po.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(A,e=null,n,r){if(typeof A=="string")A=this.nodeType(A);else if(A instanceof Ih){if(A.schema!=this)throw new RangeError("Node type from different schema used ("+A.name+")")}else throw new RangeError("Invalid node type: "+A);return A.createChecked(e,n,r)}text(A,e){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,A,ZA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Wr.fromJSON(this,A)}markFromJSON(A){return ZA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Sh(t,A){let e=[];for(let n=0;n<A.length;n++){let r=A[n],i=t.marks[r],s=i;if(i)e.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)&&e.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+A[n]+"'")}return e}function xQ(t){return t.tag!=null}function OQ(t){return t.style!=null}class Fi{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.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=A.nodes[n.node];return r.contentMatch.matchType(r)})}parse(A,e={}){let n=new Oh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new Oh(this,e,!0);return n.addAll(A,e.from,e.to),j.maxOpen(n.finish())}matchTag(A,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(kQ(A,i.tag)&&(i.namespace===void 0||A.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(A);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(A,e,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(A)!=0||s.context&&!n.matchesContext(s.context)||a.length>A.length&&(a.charCodeAt(A.length)!=61||a.slice(A.length+1)!=e))){if(s.getAttrs){let c=s.getAttrs(e);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(A){let e=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<e.length;s++){let a=e[s];if((a.priority==null?50:a.priority)<i)break}e.splice(s,0,r)}for(let r in A.marks){let i=A.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 A.nodes){let i=A.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Lh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Fi(A,Fi.schemaRules(A)))}}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},Vo=1,Go=2,bs=4;function xh(t,A,e){return A!=null?(A?Vo:0)|(A==="full"?Go:0):t&&t.whitespace=="pre"?Vo|Go:e&~bs}class Wo{constructor(A,e,n,r,i,s,a){this.type=A,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=ZA.none,this.stashMarks=[],this.match=s||(a&bs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(Y.from(A));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(A.type))?(this.match=n,r):null}}return this.match.findWrapping(A.type)}finish(A){if(!(this.options&Vo)){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 e=Y.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(A){for(let e=this.stashMarks.length-1;e>=0;e--)if(A.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(A){for(let e=0,n=this.pendingMarks;e<n.length;e++){let r=n[e];(this.type?this.type.allowsMarkType(r.type):DQ(r.type,A))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(A){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:A.parentNode&&!Th.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class Oh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=xh(null,e.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,ZA.none,ZA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,ZA.none,ZA.none,!0,null,s):i=new Wo(A.schema.topNodeType,null,ZA.none,ZA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){A.nodeType==3?this.addTextNode(A):A.nodeType==1&&this.addElement(A)}withStyleRules(A,e){let n=A.style;if(!n||!n.length)return e();let r=this.readStyles(A.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]);e();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(A){let e=A.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Vo)n.options&Go?e=e.replace(/\r\n?/g,`
4
+ `):e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=A.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(A)}else this.findInside(A)}addElement(A,e){let n=A.nodeName.toLowerCase(),r;_h.hasOwnProperty(n)&&this.parser.normalizeLists&&HQ(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:LQ.hasOwnProperty(n))this.findInside(A),this.ignoreFallback(A);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(A=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(!A.firstChild){this.leafFallback(A);return}i&&i.skip?this.addAll(A):this.withStyleRules(A,()=>this.addAll(A)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(A,()=>{this.addElementByRule(A,i,i.consuming===!1?r:void 0)})}leafFallback(A){A.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(A.ownerDocument.createTextNode(`
5
+ `))}ignoreFallback(A){A.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(A){let e=ZA.none,n=ZA.none;for(let r=0,i=A.length;r<i;r++){let s=A.item(r);for(let a=void 0;;){let c=this.parser.matchStyle(s,A.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))}):e=this.parser.schema.marks[c.mark].create(c.attrs).addToSet(e),c.consuming===!1)a=c;else break}}return[e,n]}addElementByRule(A,e,n){let r,i,s;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(A):r=this.enter(i,e.attrs||null,e.preserveWhitespace)):(s=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(s));let a=this.top;if(i&&i.isLeaf)this.findInside(A);else if(n)this.addElement(A,n);else if(e.getContent)this.findInside(A),e.getContent(A,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=A;typeof e.contentElement=="string"?c=A.querySelector(e.contentElement):typeof e.contentElement=="function"?c=e.contentElement(A):e.contentElement&&(c=e.contentElement),this.findAround(A,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(A,e,n){let r=e||0;for(let i=e?A.childNodes[e]:A.firstChild,s=n==null?null:A.childNodes[n];i!=s;i=i.nextSibling,++r)this.findAtPoint(A,r),this.addDOM(i);this.findAtPoint(A,r)}findPlace(A){let e,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],s=i.findWrapping(A);if(s&&(!e||e.length>s.length)&&(e=s,n=i,!s.length)||i.solid)break}if(!e)return!1;this.sync(n);for(let r=0;r<e.length;r++)this.enterInner(e[r],null,!1);return!0}insertNode(A){if(A.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(A)){this.closeExtra();let e=this.top;e.applyPending(A.type),e.match&&(e.match=e.match.matchType(A.type));let n=e.activeMarks;for(let r=0;r<A.marks.length;r++)(!e.type||e.type.allowsMarkType(A.marks[r].type))&&(n=A.marks[r].addToSet(n));return e.content.push(A.mark(n)),!0}return!1}enter(A,e,n){let r=this.findPlace(A.create(e));return r&&this.enterInner(A,e,!0,n),r}enterInner(A,e=null,n=!1,r){this.closeExtra();let i=this.top;i.applyPending(A),i.match=i.match&&i.match.matchType(A);let s=xh(A,r,i.options);i.options&bs&&i.content.length==0&&(s|=bs),this.nodes.push(new Wo(A,e,i.activeMarks,i.pendingMarks,n,null,s)),this.open++}closeExtra(A=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(A));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(A){for(let e=this.open;e>=0;e--)if(this.nodes[e]==A)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let A=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let r=n.length-1;r>=0;r--)A+=n[r].nodeSize;e&&A++}return A}findAtPoint(A,e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==A&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)}findInside(A){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].pos==null&&A.nodeType==1&&A.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(A,e,n){if(A!=e&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&A.nodeType==1&&A.contains(this.find[r].node)&&e.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(A){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==A&&(this.find[e].pos=this.currentPos-(A.nodeValue.length-this.find[e].offset))}matchesContext(A){if(A.indexOf("|")>-1)return A.split(/\s*\|\s*/).some(this.matchesContext,this);let e=A.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=e[a];if(u==""){if(a==e.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(e.length-1,this.open)}textblockFromContext(){let A=this.options.context;if(A)for(let e=A.depth;e>=0;e--){let n=A.node(e).contentMatchAt(A.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let n=this.parser.schema.nodes[e];if(n.isTextblock&&n.defaultAttrs)return n}}addPendingMark(A){let e=NQ(A,this.top.pendingMarks);e&&this.top.stashMarks.push(e),this.top.pendingMarks=A.addToSet(this.top.pendingMarks)}removePendingMark(A,e){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(A)>-1)r.pendingMarks=A.removeFromSet(r.pendingMarks);else{r.activeMarks=A.removeFromSet(r.activeMarks);let s=r.popFromStashMark(A);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function HQ(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&_h.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function kQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function Lh(t){let A={};for(let e in t)A[e]=t[e];return A}function DQ(t,A){let e=A.schema.nodes;for(let n in e){let r=e[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==A||i.indexOf(f)<0&&s(f))return!0}};if(s(r.contentMatch))return!0}}function NQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class mn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=Cc(e).createDocumentFragment());let r=n,i=[];return A.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,e);f&&(i.push([u,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(s,e))}),n}serializeNodeInner(A,e){let{dom:n,contentDOM:r}=mn.renderSpec(Cc(e),this.nodes[A.type.name](A));if(r){if(A.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(A.content,e,r)}return n}serializeNode(A,e={}){let n=this.serializeNodeInner(A,e);for(let r=A.marks.length-1;r>=0;r--){let i=this.serializeMark(A.marks[r],A.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(A,e,n={}){let r=this.marks[A.type.name];return r&&mn.renderSpec(Cc(n),r(A,e))}static renderSpec(A,e,n=null){if(typeof e=="string")return{dom:A.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let s,a=n?A.createElementNS(n,r):A.createElement(r),c=e[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<e.length;f++){let p=e[f];if(p===0){if(f<e.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(A,p,n);if(a.appendChild(g),B){if(s)throw new RangeError("Multiple content holes");s=B}}}return{dom:a,contentDOM:s}}static fromSchema(A){return A.cached.domSerializer||(A.cached.domSerializer=new mn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Hh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Hh(A.marks)}}function Hh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function Cc(t){return t.document||window.document}const kh=65535,Dh=Math.pow(2,16);function MQ(t,A){return t+A*Dh}function Nh(t){return t&kh}function RQ(t){return(t-(t&kh))/Dh}const Mh=1,Rh=2,$o=4,Kh=8;class yc{constructor(A,e,n){this.pos=A,this.delInfo=e,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(A,e=!1){if(this.ranges=A,this.inverted=e,!A.length&&Ut.empty)return Ut.empty}recover(A){let e=0,n=Nh(A);if(!this.inverted)for(let r=0;r<n;r++)e+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[n*3]+e+RQ(A)}mapResult(A,e=1){return this._map(A,e,!1)}map(A,e=1){return this._map(A,e,!0)}_map(A,e,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>A)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=c+u;if(A<=p){let g=u?A==c?-1:A==p?1:e:e,B=c+r+(g<0?0:f);if(n)return B;let w=A==(e<0?c:p)?null:MQ(a/3,A-c),Q=A==c?Rh:A==p?Mh:$o;return(e<0?A!=c:A!=p)&&(Q|=Kh),new yc(B,Q,w)}r+=f-u}return n?A+r:new yc(A+r,0,null)}touches(A,e){let n=0,r=Nh(e),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>A)break;let u=this.ranges[a+i],f=c+u;if(A<=f&&a==r*3)return!0;n+=this.ranges[a+s]-u}return!1}forEach(A){let e=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+e],f=this.ranges[r+n];A(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(A){return A==0?Ut.empty:new Ut(A<0?[0,-A,0]:[0,0,A])}}Ut.empty=new Ut([]);class bi{constructor(A=[],e,n=0,r=A.length){this.maps=A,this.mirror=e,this.from=n,this.to=r}slice(A=0,e=this.maps.length){return new bi(this.maps,this.mirror,A,e)}copy(){return new bi(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(A,e){this.to=this.maps.push(A),e!=null&&this.setMirror(this.maps.length-1,e)}appendMapping(A){for(let e=0,n=this.maps.length;e<A.maps.length;e++){let r=A.getMirror(e);this.appendMap(A.maps[e],r!=null&&r<e?n+r:void 0)}}getMirror(A){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==A)return this.mirror[e+(e%2?-1:1)]}}setMirror(A,e){this.mirror||(this.mirror=[]),this.mirror.push(A,e)}appendMappingInverted(A){for(let e=A.maps.length-1,n=this.maps.length+A.maps.length;e>=0;e--){let r=A.getMirror(e);this.appendMap(A.maps[e].invert(),r!=null&&r>e?n-r-1:void 0)}}invert(){let A=new bi;return A.appendMappingInverted(this),A}map(A,e=1){if(this.mirror)return this._map(A,e,!0);for(let n=this.from;n<this.to;n++)A=this.maps[n].map(A,e);return A}mapResult(A,e=1){return this._map(A,e,!1)}_map(A,e,n){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(A,e);if(a.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,A=this.maps[c].recover(a.recover);continue}}r|=a.delInfo,A=a.pos}return n?A:new yc(A,r,null)}}const Ec=Object.create(null);class Je{getMap(){return Ut.empty}merge(A){return null}static fromJSON(A,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Ec[e.stepType];if(!n)throw new RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(A,e)}static jsonID(A,e){if(A in Ec)throw new RangeError("Duplicate use of step JSON ID "+A);return Ec[A]=e,e.prototype.jsonID=A,e}}class Qe{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new Qe(A,null)}static fail(A){return new Qe(null,A)}static fromReplace(A,e,n,r){try{return Qe.ok(A.replace(e,n,r))}catch(i){if(i instanceof No)return Qe.fail(i.message);throw i}}}function Qc(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Qc(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return Y.fromArray(n)}class sr extends Je{constructor(A,e,n){super(),this.from=A,this.to=e,this.mark=n}apply(A){let e=A.slice(this.from,this.to),n=A.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Qc(e.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),e.openStart,e.openEnd);return Qe.fromReplace(A,this.from,this.to,i)}invert(){return new Bn(this.from,this.to,this.mark)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new sr(e.pos,n.pos,this.mark)}merge(A){return A instanceof sr&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new sr(Math.min(this.from,A.from),Math.max(this.to,A.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sr(e.from,e.to,A.markFromJSON(e.mark))}}Je.jsonID("addMark",sr);class Bn extends Je{constructor(A,e,n){super(),this.from=A,this.to=e,this.mark=n}apply(A){let e=A.slice(this.from,this.to),n=new j(Qc(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return Qe.fromReplace(A,this.from,this.to,n)}invert(){return new sr(this.from,this.to,this.mark)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new Bn(e.pos,n.pos,this.mark)}merge(A){return A instanceof Bn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new Bn(Math.min(this.from,A.from),Math.max(this.to,A.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Bn(e.from,e.to,A.markFromJSON(e.mark))}}Je.jsonID("removeMark",Bn);class or extends Je{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);if(e){let n=this.mark.addToSet(e.marks);if(n.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(n))return new or(this.pos,e.marks[r]);return new or(this.pos,this.mark)}}return new Ui(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new or(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new or(e.pos,A.markFromJSON(e.mark))}}Je.jsonID("addNodeMark",or);class Ui extends Je{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new or(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Ui(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ui(e.pos,A.markFromJSON(e.mark))}}Je.jsonID("removeNodeMark",Ui);class xe extends Je{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&Fc(A,this.from,this.to)?Qe.fail("Structure replace would overwrite content"):Qe.fromReplace(A,this.from,this.to,this.slice)}getMap(){return new Ut([this.from,this.to-this.from,this.slice.size])}invert(A){return new xe(this.from,this.from+this.slice.size,A.slice(this.from,this.to))}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1);return e.deletedAcross&&n.deletedAcross?null:new xe(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof xe)||A.structure||this.structure)return null;if(this.from+this.slice.size==A.from&&!this.slice.openEnd&&!A.slice.openStart){let e=this.slice.size+A.slice.size==0?j.empty:new j(this.slice.content.append(A.slice.content),this.slice.openStart,A.slice.openEnd);return new xe(this.from,this.to+(A.to-A.from),e,this.structure)}else if(A.to==this.from&&!this.slice.openStart&&!A.slice.openEnd){let e=this.slice.size+A.slice.size==0?j.empty:new j(A.slice.content.append(this.slice.content),A.slice.openStart,this.slice.openEnd);return new xe(A.from,this.to,e,this.structure)}else return null}toJSON(){let A={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(A.slice=this.slice.toJSON()),this.structure&&(A.structure=!0),A}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xe(e.from,e.to,j.fromJSON(A,e.slice),!!e.structure)}}Je.jsonID("replace",xe);class Oe extends Je{constructor(A,e,n,r,i,s,a=!1){super(),this.from=A,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(A){if(this.structure&&(Fc(A,this.from,this.gapFrom)||Fc(A,this.gapTo,this.to)))return Qe.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Qe.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?Qe.fromReplace(A,this.from,this.to,n):Qe.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(A){let e=this.gapTo-this.gapFrom;return new Oe(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,A.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(A){let e=A.mapResult(this.from,1),n=A.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:A.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:A.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||i>n.pos?null:new Oe(e.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let A={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(A.slice=this.slice.toJSON()),this.structure&&(A.structure=!0),A}static fromJSON(A,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Oe(e.from,e.to,e.gapFrom,e.gapTo,j.fromJSON(A,e.slice),e.insert,!!e.structure)}}Je.jsonID("replaceAround",Oe);function Fc(t,A,e){let n=t.resolve(A),r=e-A,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,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(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,A),B=Math.min(u+c.nodeSize,e),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,A,e,n){let r=[],i=0;t.doc.nodesBetween(A,e,(s,a)=>{if(!s.isInline)return;i++;let c=null;if(n instanceof Po){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,e);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,A),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function Ph(t,A,e,n=e.contentMatch,r=!0){let i=t.doc.nodeAt(A),s=[],a=A+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 xe(a,f,j.empty));else{n=p;for(let g=0;g<u.marks.length;g++)e.allowsMarkType(u.marks[g].type)||t.step(new Bn(a,f,u.marks[g]));if(r&&u.isText&&e.whitespace!="pre"){let g,B=/\r?\n|\r/g,w;for(;g=B.exec(u.text);)w||(w=new j(Y.from(e.schema.text(" ",e.allowedMarks(u.marks))),0,0)),s.push(new xe(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 VQ(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function vi(t){let e=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,e))return n;if(n==0||r.type.spec.isolating||!VQ(r,i,s))break}return null}function GQ(t,A,e){let{$from:n,$to:r,depth:i}=A,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>e;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>e;w--)Q||r.after(w+1)<r.end(w)?(Q=!0,g=Y.from(r.node(w).copy(g)),B++):u++;t.step(new Oe(c,u,s,a,new j(f.append(g),p,B),f.size-p,!0))}function bc(t,A,e=null,n=t){let r=WQ(t,A),i=r&&$Q(n,A);return i?r.map(Vh).concat({type:A,attrs:e}).concat(i.map(Vh)):null}function Vh(t){return{type:t,attrs:null}}function WQ(t,A){let{parent:e,startIndex:n,endIndex:r}=t,i=e.contentMatchAt(n).findWrapping(A);if(!i)return null;let s=i.length?i[0]:A;return e.canReplaceWith(n,r,s)?i:null}function $Q(t,A){let{parent:e,startIndex:n,endIndex:r}=t,i=e.child(n),s=A.contentMatch.findWrapping(i.type);if(!s)return null;let c=(s.length?s[s.length-1]:A).contentMatch;for(let u=n;c&&u<r;u++)c=c.matchType(e.child(u).type);return!c||!c.validEnd?null:s}function JQ(t,A,e){let n=Y.empty;for(let s=e.length-1;s>=0;s--){if(n.size){let a=e[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(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new Oe(r,i,r,i,new j(n,0,0),e.length,!0))}function XQ(t,A,e,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(A,e,(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),Ph(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 Oe(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,A,e,n){A.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(e+1+i+s.index);t.replaceWith(c,c+1,A.type.schema.linebreakReplacement.create())}}})}function zQ(t,A,e,n){A.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(n).map(e+1+i);t.replaceWith(s,s+1,A.type.schema.text(`
6
+ `))}})}function qQ(t,A,e){let n=t.resolve(A),r=n.index();return n.parent.canReplaceWith(r,r+1,e)}function ZQ(t,A,e,n,r){let i=t.doc.nodeAt(A);if(!i)throw new RangeError("No node at given position");e||(e=i.type);let s=e.create(n,null,r||i.marks);if(i.isLeaf)return t.replaceWith(A,A+i.nodeSize,s);if(!e.validContent(i.content))throw new RangeError("Invalid content for node type "+e.name);t.step(new Oe(A,A+i.nodeSize,A+1,A+i.nodeSize-1,new j(Y.from(s),0,0),1,!0))}function Ii(t,A,e=1,n){let r=t.resolve(A),i=r.depth-e,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=e-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,A,e=1,n){let r=t.doc.resolve(A),i=Y.empty,s=Y.empty;for(let a=r.depth,c=r.depth-e,u=e-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 xe(A,A,new j(i.append(s),e,e),!0))}function ar(t,A){let e=t.resolve(A),n=e.index();return Gh(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(n,n+1)}function Gh(t,A){return!!(t&&A&&!t.isLeaf&&t.canAppend(A))}function Jo(t,A,e=-1){let n=t.resolve(A);for(let r=n.depth;;r--){let i,s,a=n.index(r);if(r==n.depth?(i=n.nodeBefore,s=n.nodeAfter):e>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 A;if(r==0)break;A=e<0?n.before(r):n.after(r)}}function AF(t,A,e){let n=new xe(A-e,A+e,j.empty,!0);t.step(n)}function eF(t,A,e){let n=t.resolve(A);if(n.parent.canReplaceWith(n.index(),n.index(),e))return A;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,e))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,e))return n.after(r+1);if(i<n.node(r).childCount)return null}return null}function Wh(t,A,e){let n=t.resolve(A);if(!e.content.size)return A;let r=e.content;for(let i=0;i<e.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(e.openStart==0&&e.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,A,e=A,n=j.empty){if(A==e&&!n.size)return null;let r=t.resolve(A),i=t.resolve(e);return $h(r,i,n)?new xe(A,e,n):new tF(r,i,n).fit()}function $h(t,A,e){return!e.openStart&&!e.openEnd&&t.start()==A.start()&&t.parent.canReplace(t.index(),A.index(),e.content)}class tF{constructor(A,e,n){this.$from=A,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let r=0;r<=A.depth;r++){let i=A.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(A.indexAfter(r))})}for(let r=A.depth;r>0;r--)this.placed=Y.from(A.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 A=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(A<0?this.$to:n.doc.resolve(A));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 A>-1?new Oe(n.pos,A,this.$to.pos,this.$to.end(),c,e):c.size||n.pos!=this.$to.pos?new xe(n.pos,r.pos,c):null}findFittable(){let A=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<A;n++){let i=e.firstChild;if(e.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){A=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=e==1?A: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(e==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(e==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:A,openStart:e,openEnd:n}=this.unplaced,r=Uc(A,e);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new j(A,e+1,Math.max(n,r.size+e>=A.size-n?e+1:0)),!0)}dropNode(){let{content:A,openStart:e,openEnd:n}=this.unplaced,r=Uc(A,e);if(r.childCount<=1&&e>0){let i=A.size-e<=e+r.size;this.unplaced=new j(Us(A,e-1,1),e-1,i?e-1:n)}else this.unplaced=new j(Us(A,e,1),e,n)}placeNodes({sliceDepth:A,frontierDepth:e,parent:n,inject:r,wrap:i}){for(;this.depth>e;)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-A,u=0,f=[],{match:p,type:g}=this.frontier[e];if(r){for(let Q=0;Q<r.childCount;Q++)f.push(r.child(Q));p=p.matchFragment(r)}let B=a.size+A-(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,e,Y.from(f)),this.frontier[e].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?A==0?j.empty:new j(Us(s.content,A-1,1),A-1,B<0?s.openEnd:A-1):new j(Us(s.content,A,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let A=this.frontier[this.depth],e;if(!A.type.isTextblock||!vc(this.$to,this.$to.depth,A.type,A.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.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(A){A:for(let e=Math.min(this.depth,A.depth);e>=0;e--){let{match:n,type:r}=this.frontier[e],i=e<A.depth&&A.end(e+1)==A.pos+(A.depth-(e+1)),s=vc(A,e,r,n,i);if(s){for(let a=e-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=vc(A,a,u,c,!0);if(!f||f.childCount)continue A}return{depth:e,fit:s,move:i?A.doc.resolve(A.after(e+1)):A}}}}close(A){let e=this.findCloseLevel(A);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=vs(this.placed,e.depth,e.fit)),A=e.move;for(let n=e.depth+1;n<=A.depth;n++){let r=A.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,A.index(n));this.openFrontierNode(r.type,r.attrs,i)}return A}openFrontierNode(A,e=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(A),this.placed=vs(this.placed,this.depth,Y.from(A.create(e,n))),this.frontier.push({type:A,match:A.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Y.empty,!0);e.childCount&&(this.placed=vs(this.placed,this.frontier.length,e))}}function Us(t,A,e){return A==0?t.cutByIndex(e,t.childCount):t.replaceChild(0,t.firstChild.copy(Us(t.firstChild.content,A-1,e)))}function vs(t,A,e){return A==0?t.append(e):t.replaceChild(t.childCount-1,t.lastChild.copy(vs(t.lastChild.content,A-1,e)))}function Uc(t,A){for(let e=0;e<A;e++)t=t.firstChild.content;return t}function Jh(t,A,e){if(A<=0)return t;let n=t.content;return A>1&&(n=n.replaceChild(0,Jh(n.firstChild,A-1,n.childCount==1?e-1:0))),A>0&&(n=t.type.contentMatch.fillBefore(n).append(n),e<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(Y.empty,!0)))),t.copy(n)}function vc(t,A,e,n,r){let i=t.node(A),s=r?t.indexAfter(A):t.index(A);if(s==i.childCount&&!e.compatibleContent(i.type))return null;let a=n.fillBefore(i.content,!0,s);return a&&!nF(e,i.content,s)?a:null}function nF(t,A,e){for(let n=e;n<A.childCount;n++)if(!t.allowsMarks(A.child(n).marks))return!0;return!1}function rF(t){return t.spec.defining||t.spec.definingForContent}function iF(t,A,e,n){if(!n.size)return t.deleteRange(A,e);let r=t.doc.resolve(A),i=t.doc.resolve(e);if($h(r,i,n))return t.step(new xe(A,e,n));let s=Yh(r,t.doc.resolve(e));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):e,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(A,e,n),!(t.steps.length>p));g--){let B=s[g];B<0||(A=r.before(B),e=i.after(B))}}function Xh(t,A,e,n,r){if(A<e){let i=t.firstChild;t=t.replaceChild(0,i.copy(Xh(i.content,A+1,e,n,i)))}if(A>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,A,e,n){if(!n.isInline&&A==e&&t.doc.resolve(A).parent.content.size){let r=eF(t.doc,A,n.type);r!=null&&(A=e=r)}t.replaceRange(A,e,new j(Y.from(n),0,0))}function oF(t,A,e){let n=t.doc.resolve(A),r=t.doc.resolve(e),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(A-n.start(s)==n.depth-s&&e>n.end(s)&&r.end(s)-e!=r.depth-s)return t.delete(n.before(s),e);t.delete(A,e)}function Yh(t,A){let e=[],n=Math.min(t.depth,A.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||A.end(r)>A.pos+(A.depth-r)||t.node(r).type.spec.isolating||A.node(r).type.spec.isolating)break;(i==A.start(r)||r==t.depth&&r==A.depth&&t.parent.inlineContent&&A.parent.inlineContent&&r&&A.start(r-1)==i-1)&&e.push(r)}return e}class Si extends Je{constructor(A,e,n){super(),this.pos=A,this.attr=e,this.value=n}apply(A){let e=A.nodeAt(this.pos);if(!e)return Qe.fail("No node at attribute step's position");let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,null,e.marks);return Qe.fromReplace(A,this.pos,this.pos+1,new j(Y.from(r),0,e.isLeaf?0:1))}getMap(){return Ut.empty}invert(A){return new Si(this.pos,this.attr,A.nodeAt(this.pos).attrs[this.attr])}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Si(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(A,e){if(typeof e.pos!="number"||typeof e.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Si(e.pos,e.attr,e.value)}}Je.jsonID("attr",Si);class Is extends Je{constructor(A,e){super(),this.attr=A,this.value=e}apply(A){let e=Object.create(null);for(let r in A.attrs)e[r]=A.attrs[r];e[this.attr]=this.value;let n=A.type.create(e,A.content,A.marks);return Qe.ok(n)}getMap(){return Ut.empty}invert(A){return new Is(this.attr,A.attrs[this.attr])}map(A){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(A,e){if(typeof e.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Is(e.attr,e.value)}}Je.jsonID("docAttr",Is);let Ti=class extends Error{};Ti=function t(A){let e=Error.call(this,A);return e.__proto__=t.prototype,e},Ti.prototype=Object.create(Error.prototype),Ti.prototype.constructor=Ti,Ti.prototype.name="TransformError";class aF{constructor(A){this.doc=A,this.steps=[],this.docs=[],this.mapping=new bi}get before(){return this.docs.length?this.docs[0]:this.doc}step(A){let e=this.maybeStep(A);if(e.failed)throw new Ti(e.failed);return this}maybeStep(A){let e=A.apply(this.doc);return e.failed||this.addStep(A,e.doc),e}get docChanged(){return this.steps.length>0}addStep(A,e){this.docs.push(this.doc),this.steps.push(A),this.mapping.appendMap(A.getMap()),this.doc=e}replace(A,e=A,n=j.empty){let r=Xo(this.doc,A,e,n);return r&&this.step(r),this}replaceWith(A,e,n){return this.replace(A,e,new j(Y.from(n),0,0))}delete(A,e){return this.replace(A,e,j.empty)}insert(A,e){return this.replaceWith(A,A,e)}replaceRange(A,e,n){return iF(this,A,e,n),this}replaceRangeWith(A,e,n){return sF(this,A,e,n),this}deleteRange(A,e){return oF(this,A,e),this}lift(A,e){return GQ(this,A,e),this}join(A,e=1){return AF(this,A,e),this}wrap(A,e){return JQ(this,A,e),this}setBlockType(A,e=A,n,r=null){return XQ(this,A,e,n,r),this}setNodeMarkup(A,e,n=null,r){return ZQ(this,A,e,n,r),this}setNodeAttribute(A,e,n){return this.step(new Si(A,e,n)),this}setDocAttribute(A,e){return this.step(new Is(A,e)),this}addNodeMark(A,e){return this.step(new or(A,e)),this}removeNodeMark(A,e){if(!(e instanceof ZA)){let n=this.doc.nodeAt(A);if(!n)throw new RangeError("No node at position "+A);if(e=e.isInSet(n.marks),!e)return this}return this.step(new Ui(A,e)),this}split(A,e=1,n){return jQ(this,A,e,n),this}addMark(A,e,n){return KQ(this,A,e,n),this}removeMark(A,e,n){return PQ(this,A,e,n),this}clearIncompatible(A,e,n){return Ph(this,A,e,n),this}}const Ic=Object.create(null);class FA{constructor(A,e,n){this.$anchor=A,this.$head=e,this.ranges=n||[new lF(A.min(e),A.max(e))]}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 A=this.ranges;for(let e=0;e<A.length;e++)if(A[e].$from.pos!=A[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(A,e=j.empty){let n=e.content.lastChild,r=null;for(let a=0;a<e.openEnd;a++)r=n,n=n.lastChild;let i=A.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:u}=s[a],f=A.mapping.slice(i);A.replaceRange(f.map(c.pos),f.map(u.pos),a?j.empty:e),a==0&&Zh(A,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(A,e){let n=A.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],c=A.mapping.slice(n),u=c.map(s.pos),f=c.map(a.pos);i?A.deleteRange(u,f):(A.replaceRangeWith(u,f,e),Zh(A,n,e.isInline?-1:1))}}static findFrom(A,e,n=!1){let r=A.parent.inlineContent?new CA(A):_i(A.node(0),A.parent,A.pos,A.index(),e,n);if(r)return r;for(let i=A.depth-1;i>=0;i--){let s=e<0?_i(A.node(0),A.node(i),A.before(i+1),A.index(i),e,n):_i(A.node(0),A.node(i),A.after(i+1),A.index(i)+1,e,n);if(s)return s}return null}static near(A,e=1){return this.findFrom(A,e)||this.findFrom(A,-e)||new tn(A.node(0))}static atStart(A){return _i(A,A,0,0,1)||new tn(A)}static atEnd(A){return _i(A,A,A.content.size,A.childCount,-1)||new tn(A)}static fromJSON(A,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Ic[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(A,e)}static jsonID(A,e){if(A in Ic)throw new RangeError("Duplicate use of selection JSON ID "+A);return Ic[A]=e,e.prototype.jsonID=A,e}getBookmark(){return CA.between(this.$anchor,this.$head).getBookmark()}}FA.prototype.visible=!0;class lF{constructor(A,e){this.$from=A,this.$to=e}}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 CA extends FA{constructor(A,e=A){qh(A),qh(e),super(A,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(A,e){let n=A.resolve(e.map(this.head));if(!n.parent.inlineContent)return FA.near(n);let r=A.resolve(e.map(this.anchor));return new CA(r.parent.inlineContent?r:n,n)}replace(A,e=j.empty){if(super.replace(A,e),e==j.empty){let n=this.$from.marksAcross(this.$to);n&&A.ensureMarks(n)}}eq(A){return A instanceof CA&&A.anchor==this.anchor&&A.head==this.head}getBookmark(){return new Yo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(A,e){if(typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new CA(A.resolve(e.anchor),A.resolve(e.head))}static create(A,e,n=e){let r=A.resolve(e);return new this(r,n==e?r:A.resolve(n))}static between(A,e,n){let r=A.pos-e.pos;if((!n||r)&&(n=r>=0?1:-1),!e.parent.inlineContent){let i=FA.findFrom(e,n,!0)||FA.findFrom(e,-n,!0);if(i)e=i.$head;else return FA.near(e,n)}return A.parent.inlineContent||(r==0?A=e:(A=(FA.findFrom(A,-n,!0)||FA.findFrom(A,n,!0)).$anchor,A.pos<e.pos!=r<0&&(A=e))),new CA(A,e)}}FA.jsonID("text",CA);class Yo{constructor(A,e){this.anchor=A,this.head=e}map(A){return new Yo(A.map(this.anchor),A.map(this.head))}resolve(A){return CA.between(A.resolve(this.anchor),A.resolve(this.head))}}class fA extends FA{constructor(A){let e=A.nodeAfter,n=A.node(0).resolve(A.pos+e.nodeSize);super(A,n),this.node=e}map(A,e){let{deleted:n,pos:r}=e.mapResult(this.anchor),i=A.resolve(r);return n?FA.near(i):new fA(i)}content(){return new j(Y.from(this.node),0,0)}eq(A){return A instanceof fA&&A.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Sc(this.anchor)}static fromJSON(A,e){if(typeof e.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new fA(A.resolve(e.anchor))}static create(A,e){return new fA(A.resolve(e))}static isSelectable(A){return!A.isText&&A.type.spec.selectable!==!1}}fA.prototype.visible=!1,FA.jsonID("node",fA);class Sc{constructor(A){this.anchor=A}map(A){let{deleted:e,pos:n}=A.mapResult(this.anchor);return e?new Yo(n,n):new Sc(n)}resolve(A){let e=A.resolve(this.anchor),n=e.nodeAfter;return n&&fA.isSelectable(n)?new fA(e):FA.near(e)}}class tn extends FA{constructor(A){super(A.resolve(0),A.resolve(A.content.size))}replace(A,e=j.empty){if(e==j.empty){A.delete(0,A.doc.content.size);let n=FA.atStart(A.doc);n.eq(A.selection)||A.setSelection(n)}else super.replace(A,e)}toJSON(){return{type:"all"}}static fromJSON(A){return new tn(A)}map(A){return new tn(A)}eq(A){return A instanceof tn}getBookmark(){return cF}}FA.jsonID("all",tn);const cF={map(){return this},resolve(t){return new tn(t)}};function _i(t,A,e,n,r,i=!1){if(A.inlineContent)return CA.create(t,e);for(let s=n-(r>0?0:1);r>0?s<A.childCount:s>=0;s+=r){let a=A.child(s);if(a.isAtom){if(!i&&fA.isSelectable(a))return fA.create(t,e-(r<0?a.nodeSize:0))}else{let c=_i(t,a,e+r,r<0?a.childCount:0,r,i);if(c)return c}e+=a.nodeSize*r}return null}function Zh(t,A,e){let n=t.steps.length-1;if(n<A)return;let r=t.steps[n];if(!(r instanceof xe||r instanceof Oe))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(FA.near(t.doc.resolve(s),e))}const jh=1,zo=2,Ap=4;class uF extends aF{constructor(A){super(A.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=A.selection,this.storedMarks=A.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(A){if(A.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=A,this.curSelectionFor=this.steps.length,this.updated=(this.updated|jh)&~zo,this.storedMarks=null,this}get selectionSet(){return(this.updated&jh)>0}setStoredMarks(A){return this.storedMarks=A,this.updated|=zo,this}ensureMarks(A){return ZA.sameSet(this.storedMarks||this.selection.$from.marks(),A)||this.setStoredMarks(A),this}addStoredMark(A){return this.ensureMarks(A.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(A){return this.ensureMarks(A.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&zo)>0}addStep(A,e){super.addStep(A,e),this.updated=this.updated&~zo,this.storedMarks=null}setTime(A){return this.time=A,this}replaceSelection(A){return this.selection.replace(this,A),this}replaceSelectionWith(A,e=!0){let n=this.selection;return e&&(A=A.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||ZA.none))),n.replaceWith(this,A),this}deleteSelection(){return this.selection.replace(this),this}insertText(A,e,n){let r=this.doc.type.schema;if(e==null)return A?this.replaceSelectionWith(r.text(A),!0):this.deleteSelection();{if(n==null&&(n=e),n=n??e,!A)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let s=this.doc.resolve(e);i=n==e?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(A,i)),this.selection.empty||this.setSelection(FA.near(this.selection.$to)),this}}setMeta(A,e){return this.meta[typeof A=="string"?A:A.key]=e,this}getMeta(A){return this.meta[typeof A=="string"?A:A.key]}get isGeneric(){for(let A in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Ap,this}get scrolledIntoView(){return(this.updated&Ap)>0}}function ep(t,A){return!A||!t?t:t.bind(A)}class Ss{constructor(A,e,n){this.name=A,this.init=ep(e.init,n),this.apply=ep(e.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,A){return t.selection||FA.atStart(A.doc)},apply(t){return t.selection}}),new Ss("storedMarks",{init(t){return t.storedMarks||null},apply(t,A,e,n){return n.selection.$cursor?t.storedMarks:null}}),new Ss("scrollToSelection",{init(){return 0},apply(t,A){return t.scrolledIntoView?A+1:A}})];class Tc{constructor(A,e){this.schema=A,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=fF.slice(),e&&e.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(A){this.config=A}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(A){return this.applyTransaction(A).state}filterTransaction(A,e=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=e){let r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,A,this))return!1}return!0}applyTransaction(A){if(!this.filterTransaction(A))return{state:this,transactions:[]};let e=[A],n=this.applyInner(A),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<e.length&&a.spec.appendTransaction.call(a,c?e.slice(c):e,u,n);if(f&&n.filterTransaction(f,s)){if(f.setMeta("appendedTransaction",A),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:e.length}:{state:this,n:0})}e.push(f),n=n.applyInner(f),i=!0}r&&(r[s]={state:n,n:e.length})}}if(!i)return{state:n,transactions:e}}}applyInner(A){if(!A.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let e=new xi(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];e[i.name]=i.apply(A,this[i.name],this,e)}return e}get tr(){return new uF(this)}static create(A){let e=new Tc(A.doc?A.doc.type.schema:A.schema,A.plugins),n=new xi(e);for(let r=0;r<e.fields.length;r++)n[e.fields[r].name]=e.fields[r].init(A,n);return n}reconfigure(A){let e=new Tc(this.schema,A.plugins),n=e.fields,r=new xi(e);for(let i=0;i<n.length;i++){let s=n[i].name;r[s]=this.hasOwnProperty(s)?this[s]:n[i].init(A,r)}return r}toJSON(A){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(n=>n.toJSON())),A&&typeof A=="object")for(let n in A){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=A[n],i=r.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(r,this[r.key]))}return e}static fromJSON(A,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!A.schema)throw new RangeError("Required config field 'schema' missing");let r=new Tc(A.schema,A.plugins),i=new xi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Wr.fromJSON(A.schema,e.doc);else if(s.name=="selection")i.selection=FA.fromJSON(i.doc,e.selection);else if(s.name=="storedMarks")e.storedMarks&&(i.storedMarks=e.storedMarks.map(A.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(e,a)){i[s.name]=u.fromJSON.call(c,A,e[a],i);return}}i[s.name]=s.init(A,i)}}),i}}function tp(t,A,e){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(A):n=="handleDOMEvents"&&(r=tp(r,A,{})),e[n]=r}return e}class pt{constructor(A){this.spec=A,this.props={},A.props&&tp(A.props,this,this.props),this.key=A.key?A.key.key:np("plugin")}getState(A){return A[this.key]}}const _c=Object.create(null);function np(t){return t in _c?t+"$"+ ++_c[t]:(_c[t]=0,t+"$")}class wn{constructor(A="key"){this.key=np(A)}get(A){return A.config.pluginsByKey[this.key]}getState(A){return A[this.key]}}const Re=function(t){for(var A=0;;A++)if(t=t.previousSibling,!t)return A},Ts=function(t){let A=t.assignedSlot||t.parentNode;return A&&A.nodeType==11?A.host:A};let xc=null;const Ln=function(t,A,e){let n=xc||(xc=document.createRange());return n.setEnd(t,e??t.nodeValue.length),n.setStart(t,A||0),n},dF=function(){xc=null},Jr=function(t,A,e,n){return e&&(rp(t,A,e,n,-1)||rp(t,A,e,n,1))},hF=/^(img|br|input|textarea|hr)$/i;function rp(t,A,e,n,r){for(;;){if(t==e&&A==n)return!0;if(A==(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;A=Re(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[A+(r<0?-1:0)],t.contentEditable=="false")return!1;A=r<0?Cn(t):0}else return!1}}function Cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function pF(t,A){for(;;){if(t.nodeType==3&&A)return t;if(t.nodeType==1&&A>0){if(t.contentEditable=="false")return null;t=t.childNodes[A-1],A=Cn(t)}else if(t.parentNode&&!_s(t))A=Re(t),t=t.parentNode;else return null}}function gF(t,A){for(;;){if(t.nodeType==3&&A<t.nodeValue.length)return t;if(t.nodeType==1&&A<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[A],A=0}else if(t.parentNode&&!_s(t))A=Re(t)+1,t=t.parentNode;else return null}}function mF(t,A,e){for(let n=A==0,r=A==Cn(t);n||r;){if(t==e)return!0;let i=Re(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==Cn(t)}}function _s(t){let A;for(let e=t;e&&!(A=e.pmViewDesc);e=e.parentNode);return A&&A.node&&A.node.isBlock&&(A.dom==t||A.contentDOM==t)}const qo=function(t){return t.focusNode&&Jr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Xr(t,A){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=t,e.key=e.code=A,e}function BF(t){let A=t.activeElement;for(;A&&A.shadowRoot;)A=A.shadowRoot.activeElement;return A}function wF(t,A,e){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(A,e);if(n)return{node:n.offsetNode,offset:n.offset}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(A,e);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 A=t.defaultView&&t.defaultView.visualViewport;return A?{left:0,right:A.width,top:0,bottom:A.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Hn(t,A){return typeof t=="number"?t:t[A]}function FF(t){let A=t.getBoundingClientRect(),e=A.width/t.offsetWidth||1,n=A.height/t.offsetHeight||1;return{left:A.left,right:A.left+t.clientWidth*e,top:A.top,bottom:A.top+t.clientHeight*n}}function op(t,A,e){let n=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=e||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(A.top<u.top+Hn(n,"top")?p=-(u.top-A.top+Hn(r,"top")):A.bottom>u.bottom-Hn(n,"bottom")&&(p=A.bottom-A.top>u.bottom-u.top?A.top+Hn(r,"top")-u.top:A.bottom-u.bottom+Hn(r,"bottom")),A.left<u.left+Hn(n,"left")?f=-(u.left-A.left+Hn(r,"left")):A.right>u.right-Hn(n,"right")&&(f=A.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;A={left:A.left-w,top:A.top-Q,right:A.right-w,bottom:A.bottom-Q}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function bF(t){let A=t.dom.getBoundingClientRect(),e=Math.max(0,A.top),n,r;for(let i=(A.left+A.right)/2,s=e+1;s<Math.min(innerHeight,A.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>=e-20){n=a,r=c.top;break}}return{refDOM:n,refTop:r,stack:ap(t.dom)}}function ap(t){let A=[],e=t.ownerDocument;for(let n=t;n&&(A.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=e);n=Ts(n));return A}function UF({refDOM:t,refTop:A,stack:e}){let n=t?t.getBoundingClientRect().top:0;lp(e,n==0?0:n-A)}function lp(t,A){for(let e=0;e<t.length;e++){let{dom:n,top:r,left:i}=t[e];n.scrollTop!=r+A&&(n.scrollTop=r+A),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 A=ap(t);t.focus(Li==null?{get preventScroll(){return Li={preventScroll:!0},!0}}:void 0),Li||(Li=!1,lp(A,0))}function cp(t,A){let e,n=2e8,r,i=0,s=A.top,a=A.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>A.left?w.left-A.left:w.right<A.left?A.left-w.right:0;if(Q<n){e=f,n=Q,r=Q&&e.nodeType==3?{left:w.right<A.left?w.right:w.left,top:A.top}:A,f.nodeType==1&&Q&&(i=p+(A.left>=(w.left+w.right)/2?1:0));continue}}else w.top>A.top&&!c&&w.left<=A.left&&w.right>=A.left&&(c=f,u={left:Math.max(w.left,Math.min(w.right,A.left)),top:w.top});!e&&(A.left>=w.right&&A.top>=w.top||A.left>=w.left&&A.top>=w.bottom)&&(i=p+1)}}return!e&&c&&(e=c,r=u,n=0),e&&e.nodeType==3?IF(e,r):!e||n&&e.nodeType==1?{node:t,offset:i}:cp(e,r)}function IF(t,A){let e=t.nodeValue.length,n=document.createRange();for(let r=0;r<e;r++){n.setEnd(t,r+1),n.setStart(t,r);let i=ur(n,1);if(i.top!=i.bottom&&kc(A,i))return{node:t,offset:r+(A.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function kc(t,A){return t.left>=A.left-1&&t.left<=A.right+1&&t.top>=A.top-1&&t.top<=A.bottom+1}function SF(t,A){let e=t.parentNode;return e&&/^li$/i.test(e.nodeName)&&A.left<t.getBoundingClientRect().left?e:t}function TF(t,A,e){let{node:n,offset:r}=cp(A,e),i=-1;if(n.nodeType==1&&!n.firstChild){let s=n.getBoundingClientRect();i=s.left!=s.right&&e.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(n,r,i)}function _F(t,A,e,n){let r=-1;for(let i=A,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(A,e,-1)}function up(t,A,e){let n=t.childNodes.length;if(n&&e.top<e.bottom)for(let r=Math.max(0,Math.min(n-1,Math.floor(n*(A.top-e.top)/(e.bottom-e.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(A,u))return up(s,A,u)}}if((i=(i+1)%n)==r)break}return t}function xF(t,A){let e=t.dom.ownerDocument,n,r=0,i=wF(e,A.left,A.top);i&&({node:n,offset:r}=i);let s=(t.root.elementFromPoint?t.root:e).elementFromPoint(A.left,A.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=t.dom.getBoundingClientRect();if(!kc(A,u)||(s=up(t.dom,A,u),!s))return null}if(rt)for(let u=s;n&&u;u=Ts(u))u.draggable&&(n=void 0);if(s=SF(s,A),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<=A.left&&p.bottom>A.top&&r++}let u;xs&&r&&n.nodeType==1&&(u=n.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=A.top&&r--,n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&A.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,A))}a==null&&(a=TF(t,s,A));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,A){let e=t.getClientRects();if(e.length){let n=e[A<0?0:e.length-1];if(fp(n))return n}return Array.prototype.find.call(e,fp)||t.getBoundingClientRect()}const OF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dp(t,A,e){let{node:n,offset:r,atom:i}=t.docView.domFromPos(A,e<0?-1:1),s=xs||nn;if(n.nodeType==3)if(s&&(OF.test(n.nodeValue)||(e<0?!r:r==n.nodeValue.length))){let c=ur(Ln(n,r,r),e);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=e<0?1:-1;return e<0&&!r?(u++,f=-1):e>=0&&r==n.nodeValue.length?(c--,f=1):e<0?c--:u++,Os(ur(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(A-(i||0)).parent.inlineContent){if(i==null&&r&&(e<0||r==Cn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Dc(c.getBoundingClientRect(),!1)}if(i==null&&r<Cn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Dc(c.getBoundingClientRect(),!0)}return Dc(n.getBoundingClientRect(),e>=0)}if(i==null&&r&&(e<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,-e),e>=0)}function Os(t,A){if(t.width==0)return t;let e=A?t.left:t.right;return{top:t.top,bottom:t.bottom,left:e,right:e}}function Dc(t,A){if(t.height==0)return t;let e=A?t.top:t.bottom;return{top:e,bottom:e,left:t.left,right:t.right}}function hp(t,A,e){let n=t.state,r=t.root.activeElement;n!=A&&t.updateState(A),r!=t.dom&&t.focus();try{return e()}finally{n!=A&&t.updateState(n),r!=t.dom&&r&&r.focus()}}function LF(t,A,e){let n=A.selection,r=e=="up"?n.$from:n.$to;return hp(t,A,()=>{let{node:i}=t.docView.domFromPos(r.pos,e=="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&&(e=="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,A,e){let{$head:n}=A.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?e=="left"||e=="backward"?i:s:hp(t,A,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:p}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",e,"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,A,e){return pp==A&&gp==e?mp:(pp=A,gp=e,mp=e=="up"||e=="down"?LF(t,A,e):kF(t,A,e))}const Rt=0,Bp=1,Yr=2,En=3;class Ls{constructor(A,e,n,r){this.parent=A,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=Rt,n.pmViewDesc=this}matchesWidget(A){return!1}matchesMark(A){return!1}matchesNode(A,e,n){return!1}matchesHack(A){return!1}parseRule(){return null}stopEvent(A){return!1}get size(){let A=0;for(let e=0;e<this.children.length;e++)A+=this.children[e].size;return A}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let A=0;A<this.children.length;A++)this.children[A].destroy()}posBeforeChild(A){for(let e=0,n=this.posAtStart;;e++){let r=this.children[e];if(r==A)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(A,e,n){if(this.contentDOM&&this.contentDOM.contains(A.nodeType==1?A:A.parentNode))if(n<0){let i,s;if(A==this.contentDOM)i=A.childNodes[e-1];else{for(;A.parentNode!=this.contentDOM;)A=A.parentNode;i=A.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(A==this.contentDOM)i=A.childNodes[e];else{for(;A.parentNode!=this.contentDOM;)A=A.parentNode;i=A.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(A==this.dom&&this.contentDOM)r=e>Re(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=A.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(e==0)for(let i=A;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&e==A.childNodes.length)for(let i=A;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(A,e=!1){for(let n=!0,r=A;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!e||i.node))if(n&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(A.nodeType==1?A:A.parentNode):s==A))n=!1;else return i}}getDesc(A){let e=A.pmViewDesc;for(let n=e;n;n=n.parent)if(n==this)return e}posFromDOM(A,e,n){for(let r=A;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(A,e,n)}return-1}descAt(A){for(let e=0,n=0;e<this.children.length;e++){let r=this.children[e],i=n+r.size;if(n==A&&i!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(A<i)return r.descAt(A-n-r.border);n=i}}domFromPos(A,e){if(!this.contentDOM)return{node:this.dom,offset:0,atom:A+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>A||s instanceof yp){r=A-i;break}i=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,e);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof wp&&i.side>=0;n--);if(e<=0){let i,s=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,s=!1);return i&&e&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,e):{node:this.contentDOM,offset:i?Re(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,e):{node:this.contentDOM,offset:i?Re(i.dom):this.contentDOM.childNodes.length}}}parseRange(A,e,n=0){if(this.children.length==0)return{node:this.contentDOM,from:A,to:e,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&&A<=u){let f=s+c.border;if(A>=f&&e<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(A,e,f);A=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=Re(g.dom)+1;break}A-=g.size}r==-1&&(r=0)}if(r>-1&&(u>e||a==this.children.length-1)){e=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=Re(p.dom);break}e+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:A,to:e,fromOffset:r,toOffset:i}}emptyChildAt(A){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[A<0?0:this.children.length-1];return e.size==0||e.emptyChildAt(A)}domAfterPos(A){let{node:e,offset:n}=this.domFromPos(A,0);if(e.nodeType!=1||n==e.childNodes.length)throw new RangeError("No node after pos "+A);return e.childNodes[n]}setSelection(A,e,n,r=!1){let i=Math.min(A,e),s=Math.max(A,e);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(A-B-w.border,e-B-w.border,n,r);B=Q}let a=this.domFromPos(A,A?-1:1),c=e==A?a:this.domFromPos(e,e?-1:1),u=n.getSelection(),f=!1;if((nn||rt)&&A==e){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:Re(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||A==e)&&!f){u.collapse(a.node,a.offset);try{A!=e&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(A>e){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(A){return!this.contentDOM&&A.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(A,e){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],s=n+i.size;if(n==s?A<=s&&e>=n:A<s&&e>n){let a=n+i.border,c=s-i.border;if(A>=a&&e<=c){this.dirty=A==n||e==s?Yr:Bp,A==a&&e==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=En:i.markDirty(A-a,e-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 A=1;for(let e=this.parent;e;e=e.parent,A++){let n=A==1?Yr:Bp;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(A){return!1}}class wp extends Ls{constructor(A,e,n,r){let i,s=e.type.toDOM;if(typeof s=="function"&&(s=s(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!e.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(A,[],s,null),this.widget=e,this.widget=e,i=this}matchesWidget(A){return this.dirty==Rt&&A.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(A){let e=this.widget.spec.stopEvent;return e?e(A):!1}ignoreMutation(A){return A.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 NF extends Ls{constructor(A,e,n,r){super(A,[],e,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(A,e){return A!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(A){return{node:this.textDOM,offset:A}}ignoreMutation(A){return A.type==="characterData"&&A.target.nodeValue==A.oldValue}}class zr extends Ls{constructor(A,e,n,r){super(A,[],n,r),this.mark=e}static create(A,e,n,r){let i=r.nodeViews[e.type.name],s=i&&i(e,r,n);return(!s||!s.dom)&&(s=mn.renderSpec(document,e.type.spec.toDOM(e,n))),new zr(A,e,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(A){return this.dirty!=En&&this.mark.eq(A)}markDirty(A,e){if(super.markDirty(A,e),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(A,e,n){let r=zr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;e<s&&(i=Rc(i,e,s,n)),A>0&&(i=Rc(i,0,A,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class fr extends Ls{constructor(A,e,n,r,i,s,a,c,u){super(A,[],i,s),this.node=e,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(A,e,n,r,i,s){let a=i.nodeViews[e.type.name],c,u=a&&a(e,i,()=>{if(!c)return s;if(c.parent)return c.parent.posBeforeChild(c)},n,r),f=u&&u.dom,p=u&&u.contentDOM;if(e.isText){if(!f)f=document.createTextNode(e.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,e.type.spec.toDOM(e)));!p&&!e.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),e.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Fp(f,n,e),u?c=new MF(A,e,n,r,f,p||null,g,u,i,s+1):e.isText?new Zo(A,e,n,r,f,g,i):new fr(A,e,n,r,f,p||null,g,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let A={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(A.preserveWhitespace="full"),!this.contentDOM)A.getContent=()=>this.node.content;else if(!this.contentLost)A.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){A.contentElement=n.dom.parentNode;break}}A.contentElement||(A.getContent=()=>Y.empty)}return A}matchesNode(A,e,n){return this.dirty==Rt&&A.eq(this.node)&&Mc(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(A,e){let n=this.node.inlineContent,r=e,i=A.composing?this.localCompositionInfo(A,e):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,c=new KF(this,s&&s.node,A);GF(this.node,this.innerDeco,(u,f,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,A):u.type.side>=0&&!p&&c.syncToMarks(f==this.node.childCount?ZA.none:this.node.child(f).marks,n,A),c.placeWidget(u,A,r)},(u,f,p,g)=>{c.syncToMarks(u.marks,n,A);let B;c.findNodeMatch(u,f,p,g)||a&&A.state.selection.from>r&&A.state.selection.to<r+u.nodeSize&&(B=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,p,B,A)||c.updateNextNode(u,f,p,A,g,r)||c.addNode(u,f,p,A,r),r+=u.nodeSize}),c.syncToMarks([],n,A),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Yr)&&(s&&this.protectLocalComposition(A,s),Ep(this.contentDOM,this.children,A),Oi&&WF(this.dom))}localCompositionInfo(A,e){let{from:n,to:r}=A.state.selection;if(!(A.state.selection instanceof CA)||n<e||r>e+this.node.content.size)return null;let i=A.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-e,r-e);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(A,{node:e,pos:n,text:r}){if(this.getDesc(e))return;let i=e;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 NF(this,i,e,r);A.input.compositionNodes.push(s),this.children=Rc(this.children,n,n+r.length,A,s)}update(A,e,n,r){return this.dirty==En||!A.sameMarkup(this.node)?!1:(this.updateInner(A,e,n,r),!0)}updateInner(A,e,n,r){this.updateOuterDeco(e),this.node=A,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Rt}updateOuterDeco(A){if(Mc(A,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Qp(this.dom,this.nodeDOM,Nc(this.outerDeco,this.node,e),Nc(A,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=A}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,A,e,n,r){Fp(n,A,t);let i=new fr(void 0,t,A,e,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Zo extends fr{constructor(A,e,n,r,i,s,a){super(A,e,n,r,i,null,s,a,0)}parseRule(){let A=this.nodeDOM.parentNode;for(;A&&A!=this.dom&&!A.pmIsDeco;)A=A.parentNode;return{skip:A||!0}}update(A,e,n,r){return this.dirty==En||this.dirty!=Rt&&!this.inParent()||!A.sameMarkup(this.node)?!1:(this.updateOuterDeco(e),(this.dirty!=Rt||A.text!=this.node.text)&&A.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=A.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=A,this.dirty=Rt,!0)}inParent(){let A=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==A)return!0;return!1}domFromPos(A){return{node:this.nodeDOM,offset:A}}localPosFromDOM(A,e,n){return A==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(A,e,n)}ignoreMutation(A){return A.type!="characterData"&&A.type!="selection"}slice(A,e,n){let r=this.node.cut(A,e),i=document.createTextNode(r.text);return new Zo(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(A,e){super.markDirty(A,e),this.dom!=this.nodeDOM&&(A==0||e==this.nodeDOM.nodeValue.length)&&(this.dirty=En)}get domAtom(){return!1}isText(A){return this.node.text==A}}class yp extends Ls{parseRule(){return{ignore:!0}}matchesHack(A){return this.dirty==Rt&&this.dom.nodeName==A}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class MF extends fr{constructor(A,e,n,r,i,s,a,c,u,f){super(A,e,n,r,i,s,a,u,f),this.spec=c}update(A,e,n,r){if(this.dirty==En)return!1;if(this.spec.update){let i=this.spec.update(A,e,n);return i&&this.updateInner(A,e,n,r),i}else return!this.contentDOM&&!A.isLeaf?!1:super.update(A,e,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(A,e,n,r){this.spec.setSelection?this.spec.setSelection(A,e,n):super.setSelection(A,e,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(A){return this.spec.stopEvent?this.spec.stopEvent(A):!1}ignoreMutation(A){return this.spec.ignoreMutation?this.spec.ignoreMutation(A):super.ignoreMutation(A)}}function Ep(t,A,e){let n=t.firstChild,r=!1;for(let i=0;i<A.length;i++){let s=A[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,e),n=c?c.nextSibling:t.firstChild}}for(;n;)n=bp(n),r=!0;r&&e.trackWrites==t&&(e.trackWrites=null)}const Hs=function(t){t&&(this.nodeName=t)};Hs.prototype=Object.create(null);const qr=[new Hs];function Nc(t,A,e){if(t.length==0)return qr;let n=e?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&&(e&&r.length==1&&r.push(n=new Hs(A.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,A,e,n){if(e==qr&&n==qr)return A;let r=A;for(let i=0;i<n.length;i++){let s=n[i],a=e[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,A,e){for(let n in A)n!="class"&&n!="style"&&n!="nodeName"&&!(n in e)&&t.removeAttribute(n);for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&e[n]!=A[n]&&t.setAttribute(n,e[n]);if(A.class!=e.class){let n=A.class?A.class.split(" ").filter(Boolean):[],r=e.class?e.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(A.style!=e.style){if(A.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(A.style);)t.style.removeProperty(r[1])}e.style&&(t.style.cssText+=e.style)}}function Fp(t,A,e){return Qp(t,t,qr,Nc(A,e,t.nodeType!=1))}function Mc(t,A){if(t.length!=A.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].type.eq(A[e].type))return!1;return!0}function bp(t){let A=t.nextSibling;return t.parentNode.removeChild(t),A}class KF{constructor(A,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=A,this.preMatch=PF(A.node.content,A)}destroyBetween(A,e){if(A!=e){for(let n=A;n<e;n++)this.top.children[n].destroy();this.top.children.splice(A,e-A),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(A,e,n){let r=0,i=this.stack.length>>1,s=Math.min(i,A.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(A[r])&&A[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<A.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(A[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,A[i],e,n);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(A,e,n,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(A,e,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(A,e,n)&&!this.preMatch.matched.has(u)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(A,e,n,r,i){let s=this.top.children[r];return s.dirty==En&&s.dom==s.contentDOM&&(s.dirty=Yr),s.update(A,e,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(A){for(;;){let e=A.parentNode;if(!e)return-1;if(e==this.top.contentDOM){let n=A.pmViewDesc;if(n){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r}return-1}A=e}}updateNextNode(A,e,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)&&!(A.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==A.text&&c.dirty!=En&&Mc(e,c.outerDeco));if(!g&&c.update(A,e,n,r))return this.destroyBetween(this.index,a),c.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(p=this.recreateWrapper(c,A,e,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(A,e,n,r,i,s){if(A.dirty||e.isAtom||!A.children.length||!A.node.content.eq(e.content))return null;let a=fr.create(this.top,e,n,r,i,s);if(a.contentDOM){a.children=A.children,A.children=[];for(let c of a.children)c.parent=a}return A.destroy(),a}addNode(A,e,n,r,i){let s=fr.create(this.top,A,e,n,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(A,e,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(A)&&(A==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new wp(this.top,A,e,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let A=this.top.children[this.index-1],e=this.top;for(;A instanceof zr;)e=A,A=e.children[e.children.length-1];(!A||!(A instanceof Zo)||/\n$/.test(A.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(A.node.text))&&((rt||nt)&&A&&A.dom.contentEditable=="false"&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))}addHackNode(A,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(A))this.index++;else{let n=document.createElement(A);A=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),A=="BR"&&(n.className="ProseMirror-trailingBreak");let r=new yp(this.top,[],n,null);e!=this.top?e.children.push(r):e.children.splice(this.index++,0,r),this.changed=!0}}isLocked(A){return this.lock&&(A==this.lock||A.nodeType==1&&A.contains(this.lock.parentNode))}}function PF(t,A){let e=A,n=e.children.length,r=t.childCount,i=new Map,s=[];A:for(;r>0;){let a;for(;;)if(n){let u=e.children[n-1];if(u instanceof zr)e=u,n=u.children.length;else{a=u,n--;break}}else{if(e==A)break A;n=e.parent.children.indexOf(e),e=e.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 VF(t,A){return t.type.side-A.type.side}function GF(t,A,e,n){let r=A.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let f=t.child(u);n(f,r,A.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(VF);for(let b=0;b<p.length;b++)e(p[b],u,!!c)}else e(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,A.forChild(i,g),B),i=w}}function WF(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let A=t.style.cssText;t.style.cssText=A+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=A}}function $F(t,A,e,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>=e){if(i>=n&&c.slice(n-A.length-a,n-a)==A)return n-A.length;let u=a<n?c.lastIndexOf(A,n-a-1):-1;if(u>=0&&u+A.length+a>=e)return a+u;if(e==n&&c.length>=n+A.length-a&&c.slice(n-a,n-a+A.length)==A)return n}}return-1}function Rc(t,A,e,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>=e||f<=A?i.push(c):(u<A&&i.push(c.slice(0,A-u,n)),r&&(i.push(r),r=void 0),f>e&&i.push(c.slice(e-u,c.size,n)))}return i}function Kc(t,A=null){let e=t.domSelectionRange(),n=t.state.doc;if(!e.focusNode)return null;let r=t.docView.nearestDesc(e.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let a=n.resolve(s),c,u;if(qo(e)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&fA.isSelectable(f)&&r.parent&&!(f.isInline&&mF(e.focusNode,e.focusOffset,r.dom))){let p=r.posBefore;u=new fA(s==p?a:n.resolve(p))}}else{let f=t.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(f<0)return null;c=n.resolve(f)}if(!u){let f=A=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Vc(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,A=!1){let e=t.state.selection;if(Tp(t,e),!!Up(t)){if(!A&&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}=e,i,s;vp&&!(e instanceof CA)&&(e.$from.parent.inlineContent||(i=Ip(t,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(s=Ip(t,e.to))),t.docView.setSelection(n,r,t.root,A),vp&&(i&&Sp(i),s&&Sp(s)),e.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,A){let{node:e,offset:n}=t.docView.domFromPos(A,0),r=n<e.childNodes.length?e.childNodes[n]:null,i=n?e.childNodes[n-1]:null;if(rt&&r&&r.contentEditable=="false")return Pc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Pc(r);if(i)return Pc(i)}}function Pc(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 A=t.dom.ownerDocument;A.removeEventListener("selectionchange",t.input.hideSelectionGuard);let e=t.domSelectionRange(),n=e.anchorNode,r=e.anchorOffset;A.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(e.anchorNode!=n||e.anchorOffset!=r)&&(A.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Up(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function XF(t){let A=t.domSelection(),e=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.setEnd(n.parentNode,Re(n)+1):e.setEnd(n,0),e.collapse(!1),A.removeAllRanges(),A.addRange(e),!r&&!t.state.selection.visible&&gt&&cr<=11&&(n.disabled=!0,n.disabled=!1)}function Tp(t,A){if(A instanceof fA){let e=t.docView.descAt(A.from);e!=t.lastSelectedViewDesc&&(_p(t),e&&e.selectNode(),t.lastSelectedViewDesc=e)}else _p(t)}function _p(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Vc(t,A,e,n){return t.someProp("createSelectionBetween",r=>r(t,A,e))||CA.between(A,e,n)}function xp(t){return t.editable&&!t.hasFocus()?!1:Op(t)}function Op(t){let A=t.domSelectionRange();if(!A.anchorNode)return!1;try{return t.dom.contains(A.anchorNode.nodeType==3?A.anchorNode.parentNode:A.anchorNode)&&(t.editable||t.dom.contains(A.focusNode.nodeType==3?A.focusNode.parentNode:A.focusNode))}catch{return!1}}function YF(t){let A=t.docView.domFromPos(t.state.selection.anchor,0),e=t.domSelectionRange();return Jr(A.node,A.offset,e.anchorNode,e.anchorOffset)}function Gc(t,A){let{$anchor:e,$head:n}=t.selection,r=A>0?e.max(n):e.min(n),i=r.parent.inlineContent?r.depth?t.doc.resolve(A>0?r.after():r.before()):null:r;return i&&FA.findFrom(i,A)}function dr(t,A){return t.dispatch(t.state.tr.setSelection(A).scrollIntoView()),!0}function Lp(t,A,e){let n=t.state.selection;if(n instanceof CA)if(e.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:A<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(A<0?-1:1));return dr(t,new CA(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(A>0?"forward":"backward")){let r=Gc(t.state,A);return r&&r instanceof fA?dr(t,r):!1}else if(!(Mt&&e.indexOf("m")>-1)){let r=n.$head,i=r.textOffset?null:A<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=A<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?fA.isSelectable(i)?dr(t,new fA(A<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):xs?dr(t,new CA(t.state.doc.resolve(A<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof fA&&n.node.isInline)return dr(t,new CA(A>0?n.$to:n.$from));{let r=Gc(t.state,A);return r?dr(t,r):!1}}}function jo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ks(t,A){let e=t.pmViewDesc;return e&&e.size==0&&(A<0||t.nextSibling||t.nodeName!="BR")}function Hi(t,A){return A<0?zF(t):qF(t)}function zF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r,i,s=!1;for(nn&&e.nodeType==1&&n<jo(e)&&ks(e.childNodes[n],-1)&&(s=!0);;)if(n>0){if(e.nodeType!=1)break;{let a=e.childNodes[n-1];if(ks(a,-1))r=e,i=--n;else if(a.nodeType==3)e=a,n=e.nodeValue.length;else break}}else{if(Hp(e))break;{let a=e.previousSibling;for(;a&&ks(a,-1);)r=e.parentNode,i=Re(a),a=a.previousSibling;if(a)e=a,n=jo(e);else{if(e=e.parentNode,e==t.dom)break;n=0}}}s?Wc(t,e,n):r&&Wc(t,r,i)}function qF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r=jo(e),i,s;for(;;)if(n<r){if(e.nodeType!=1)break;let a=e.childNodes[n];if(ks(a,1))i=e,s=++n;else break}else{if(Hp(e))break;{let a=e.nextSibling;for(;a&&ks(a,1);)i=a.parentNode,s=Re(a)+1,a=a.nextSibling;if(a)e=a,n=0,r=jo(e);else{if(e=e.parentNode,e==t.dom)break;n=r=0}}}i&&Wc(t,i,s)}function Hp(t){let A=t.pmViewDesc;return A&&A.node&&A.node.isBlock}function ZF(t,A){for(;t&&A==t.childNodes.length&&!_s(t);)A=Re(t)+1,t=t.parentNode;for(;t&&A<t.childNodes.length;){let e=t.childNodes[A];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;t=e,A=0}}function jF(t,A){for(;t&&!A&&!_s(t);)A=Re(t),t=t.parentNode;for(;t&&A;){let e=t.childNodes[A-1];if(e.nodeType==3)return e;if(e.nodeType==1&&e.contentEditable=="false")break;t=e,A=t.childNodes.length}}function Wc(t,A,e){if(A.nodeType!=3){let i,s;(s=ZF(A,e))?(A=s,e=0):(i=jF(A,e))&&(A=i,e=i.nodeValue.length)}let n=t.domSelection();if(qo(n)){let i=document.createRange();i.setEnd(A,e),i.setStart(A,e),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(A,e);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&kn(t)},50)}function kp(t,A){let e=t.state.doc.resolve(A);if(!(nt||yF)&&e.parent.inlineContent){let r=t.coordsAtPos(A);if(A>e.start()){let i=t.coordsAtPos(A-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(A<e.end()){let i=t.coordsAtPos(A+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 Dp(t,A,e){let n=t.state.selection;if(n instanceof CA&&!n.empty||e.indexOf("s")>-1||Mt&&e.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(A<0?"up":"down")){let s=Gc(t.state,A);if(s&&s instanceof fA)return dr(t,s)}if(!r.parent.inlineContent){let s=A<0?r:i,a=n instanceof tn?FA.near(s,A):FA.findFrom(s,A);return a?dr(t,a):!1}return!1}function Np(t,A){if(!(t.state.selection instanceof CA))return!0;let{$head:e,$anchor:n,empty:r}=t.state.selection;if(!e.sameParent(n))return!0;if(!r)return!1;if(t.endOfTextblock(A>0?"forward":"backward"))return!0;let i=!e.textOffset&&(A<0?e.nodeBefore:e.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return A<0?s.delete(e.pos-i.nodeSize,e.pos):s.delete(e.pos,e.pos+i.nodeSize),t.dispatch(s),!0}return!1}function Mp(t,A,e){t.domObserver.stop(),A.contentEditable=e,t.domObserver.start()}function Ab(t){if(!rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:A,focusOffset:e}=t.domSelectionRange();if(A&&A.nodeType==1&&e==0&&A.firstChild&&A.firstChild.contentEditable=="false"){let n=A.firstChild;Mp(t,n,"true"),setTimeout(()=>Mp(t,n,"false"),20)}return!1}function eb(t){let A="";return t.ctrlKey&&(A+="c"),t.metaKey&&(A+="m"),t.altKey&&(A+="a"),t.shiftKey&&(A+="s"),A}function tb(t,A){let e=A.keyCode,n=eb(A);if(e==8||Mt&&e==72&&n=="c")return Np(t,-1)||Hi(t,-1);if(e==46&&!A.shiftKey||Mt&&e==68&&n=="c")return Np(t,1)||Hi(t,1);if(e==13||e==27)return!0;if(e==37||Mt&&e==66&&n=="c"){let r=e==37?kp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Lp(t,r,n)||Hi(t,r)}else if(e==39||Mt&&e==70&&n=="c"){let r=e==39?kp(t,t.state.selection.from)=="ltr"?1:-1:1;return Lp(t,r,n)||Hi(t,r)}else{if(e==38||Mt&&e==80&&n=="c")return Dp(t,-1,n)||Hi(t,-1);if(e==40||Mt&&e==78&&n=="c")return Ab(t)||Dp(t,1,n)||Hi(t,1);if(n==(Mt?"m":"c")&&(e==66||e==73||e==89||e==90))return!0}return!1}function Rp(t,A){t.someProp("transformCopied",B=>{A=B(A,t)});let e=[],{content:n,openStart:r,openEnd:i}=A;for(;r>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){r--,i--;let B=n.firstChild;e.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(e)}`);let g=t.someProp("clipboardTextSerializer",B=>B(A,t))||A.content.textBetween(0,A.content.size,`
8
+
9
+ `);return{dom:c,text:g,slice:A}}function Kp(t,A,e,n,r){let i=r.parent.type.spec.code,s,a;if(!e&&!A)return null;let c=A&&(n||i||!e);if(c){if(t.someProp("transformPastedText",g=>{A=g(A,i||n,t)}),i)return A?new j(Y.from(t.state.schema.text(A.replace(/\r\n?/g,`
10
+ `))),0,0):j.empty;let p=t.someProp("clipboardTextParser",g=>g(A,r,n,t));if(p)a=p;else{let g=r.marks(),{schema:B}=t.state,w=mn.fromSchema(B);s=document.createElement("div"),A.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=>{e=p(e,t)}),s=ib(e),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,A){if(t.childCount<2)return t;for(let e=A.depth;e>=0;e--){let r=A.node(e).contentMatchAt(A.index(e)),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&&Vp(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=Pp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return Y.from(s)}return t}function Pp(t,A,e=0){for(let n=A.length-1;n>=e;n--)t=A[n].create(null,Y.from(t));return t}function Vp(t,A,e,n,r){if(r<t.length&&r<A.length&&t[r]==A[r]){let i=Vp(t,A,e,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?e.type:t[r+1]))return n.copy(n.content.append(Y.from(Pp(e,t,r+1))))}}function Gp(t,A){if(A==0)return t;let e=t.content.replaceChild(t.childCount-1,Gp(t.lastChild,A-1)),n=t.contentMatchAt(t.childCount).fillBefore(Y.empty,!0);return t.copy(e.append(n))}function $c(t,A,e,n,r,i){let s=A<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<n-1&&(a=$c(a,A,e,n,r+1,i)),r>=e&&(a=A<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(Y.empty,!0))),t.replaceChild(A<0?0:t.childCount-1,s.copy(a))}function Wp(t,A,e){return A<t.openStart&&(t=new j($c(t.content,-1,A,t.openStart,0,t.openEnd),A,t.openEnd)),e<t.openEnd&&(t=new j($c(t.content,1,e,t.openEnd,0,0),t.openStart,e)),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 A=/^(\s*<meta [^>]*>)*/.exec(t);A&&(t=t.slice(A[0].length));let e=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("")),e.innerHTML=t,r)for(let i=0;i<r.length;i++)e=e.querySelector(r[i])||e;return e}function sb(t){let A=t.querySelectorAll(nt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let e=0;e<A.length;e++){let n=A[e];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function ob(t,A){if(!t.size)return t;let e=t.content.firstChild.type.schema,n;try{n=JSON.parse(A)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=n.length-2;a>=0;a-=2){let c=e.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 A in it){let e=it[A];t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>{fb(t,n)&&!Xc(t,n)&&(t.editable||!(n.type in st))&&e(t,n)},ab[A]?{passive:!0}:void 0)}rt&&t.dom.addEventListener("input",()=>null),Jc(t)}function hr(t,A){t.input.lastSelectionOrigin=A,t.input.lastSelectionTime=Date.now()}function ub(t){t.domObserver.stop();for(let A in t.input.eventHandlers)t.dom.removeEventListener(A,t.input.eventHandlers[A]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Jc(t){t.someProp("handleDOMEvents",A=>{for(let e in A)t.input.eventHandlers[e]||t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>Xc(t,n))})}function Xc(t,A){return t.someProp("handleDOMEvents",e=>{let n=e[A.type];return n?n(t,A)||A.defaultPrevented:!1})}function fb(t,A){if(!A.bubbles)return!0;if(A.defaultPrevented)return!1;for(let e=A.target;e!=t.dom;e=e.parentNode)if(!e||e.nodeType==11||e.pmViewDesc&&e.pmViewDesc.stopEvent(A))return!1;return!0}function db(t,A){!Xc(t,A)&&it[A.type]&&(t.editable||!(A.type in st))&&it[A.type](t,A)}st.keydown=(t,A)=>{let e=A;if(t.input.shiftKey=e.keyCode==16||e.shiftKey,!zp(t,e)&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!(rn&&nt&&e.keyCode==13)))if(e.keyCode!=229&&t.domObserver.forceFlush(),Oi&&e.keyCode==13&&!e.ctrlKey&&!e.altKey&&!e.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,e))||tb(t,e)?e.preventDefault():hr(t,"key")},st.keyup=(t,A)=>{A.keyCode==16&&(t.input.shiftKey=!1)},st.keypress=(t,A)=>{let e=A;if(zp(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||Mt&&e.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,e))){e.preventDefault();return}let n=t.state.selection;if(!(n instanceof CA)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(e.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()),e.preventDefault()}};function Aa(t){return{left:t.clientX,top:t.clientY}}function hb(t,A){let e=A.x-t.clientX,n=A.y-t.clientY;return e*e+n*n<100}function Yc(t,A,e,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(A,a=>s>i.depth?a(t,e,i.nodeAfter,i.before(s),r,!0):a(t,e,i.node(s),i.before(s),r,!1)))return!0;return!1}function ki(t,A,e){t.focused||t.focus();let n=t.state.tr.setSelection(A);e=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function pb(t,A){if(A==-1)return!1;let e=t.state.doc.resolve(A),n=e.nodeAfter;return n&&n.isAtom&&fA.isSelectable(n)?(ki(t,new fA(e),"pointer"),!0):!1}function gb(t,A){if(A==-1)return!1;let e=t.state.selection,n,r;e instanceof fA&&(n=e.node);let i=t.state.doc.resolve(A);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(fA.isSelectable(a)){n&&e.$from.depth>0&&s>=e.$from.depth&&i.before(e.$from.depth+1)==e.$from.pos?r=i.before(e.$from.depth):r=i.before(s);break}}return r!=null?(ki(t,fA.create(t.state.doc,r),"pointer"),!0):!1}function mb(t,A,e,n,r){return Yc(t,"handleClickOn",A,e,n)||t.someProp("handleClick",i=>i(t,A,n))||(r?gb(t,e):pb(t,e))}function Bb(t,A,e,n){return Yc(t,"handleDoubleClickOn",A,e,n)||t.someProp("handleDoubleClick",r=>r(t,A,n))}function wb(t,A,e,n){return Yc(t,"handleTripleClickOn",A,e,n)||t.someProp("handleTripleClick",r=>r(t,A,n))||Cb(t,e,n)}function Cb(t,A,e){if(e.button!=0)return!1;let n=t.state.doc;if(A==-1)return n.inlineContent?(ki(t,CA.create(n,0,n.content.size),"pointer"),!0):!1;let r=n.resolve(A);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,CA.create(n,a+1,a+1+s.content.size),"pointer");else if(fA.isSelectable(s))ki(t,fA.create(n,a),"pointer");else continue;return!0}}function zc(t){return ea(t)}const Yp=Mt?"metaKey":"ctrlKey";it.mousedown=(t,A)=>{let e=A;t.input.shiftKey=e.shiftKey;let n=zc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&hb(e,t.input.lastClick)&&!e[Yp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:i};let s=t.posAtCoords(Aa(e));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new yb(t,s,e,!!n)):(i=="doubleClick"?Bb:wb)(t,s.pos,s.inside,e)?e.preventDefault():hr(t,"pointer"))};class yb{constructor(A,e,n,r){this.view=A,this.pos=e,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=A.state.doc,this.selectNode=!!n[Yp],this.allowDefault=n.shiftKey;let i,s;if(e.inside>-1)i=A.state.doc.nodeAt(e.inside),s=e.inside;else{let f=A.state.doc.resolve(e.pos);i=f.parent,s=f.depth?f.before():0}const a=r?null:n.target,c=a?A.docView.nearestDesc(a,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:u}=A.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof fA&&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()),A.root.addEventListener("mouseup",this.up=this.up.bind(this)),A.root.addEventListener("mousemove",this.move=this.move.bind(this)),hr(A,"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(A){if(this.done(),!this.view.dom.contains(A.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(Aa(A))),this.updateAllowDefault(A),this.allowDefault||!e?hr(this.view,"pointer"):mb(this.view,e.pos,e.inside,A,this.selectNode)?A.preventDefault():A.button==0&&(this.flushed||rt&&this.mightDrag&&!this.mightDrag.node.isAtom||nt&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(ki(this.view,FA.near(this.view.state.doc.resolve(e.pos)),"pointer"),A.preventDefault()):hr(this.view,"pointer")}move(A){this.updateAllowDefault(A),hr(this.view,"pointer"),A.buttons==0&&this.done()}updateAllowDefault(A){!this.allowDefault&&(Math.abs(this.event.x-A.clientX)>4||Math.abs(this.event.y-A.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,A){return t.composing?!0:rt&&Math.abs(A.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:A}=t,e=A.selection.$from;if(A.selection.empty&&(A.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||e.marks(),ea(t,!0),t.markCursor=null;else if(ea(t),nn&&A.selection.empty&&e.parentOffset&&!e.textOffset&&e.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,A)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=A.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,A){clearTimeout(t.input.composingTimeout),A>-1&&(t.input.composingTimeout=setTimeout(()=>ea(t),A))}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 A=t.domSelectionRange();if(!A.focusNode)return null;let e=pF(A.focusNode,A.focusOffset),n=gF(A.focusNode,A.focusOffset);if(e&&n&&e!=n){let r=n.pmViewDesc;if(!r||!r.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let i=e.pmViewDesc;if(!(!i||!i.isText(e.nodeValue)))return n}}return e||n}function Fb(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ea(t,A=!1){if(!(rn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Zp(t),A||t.docView&&t.docView.dirty){let e=Kc(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}function bb(t,A){if(!t.dom.parentNode)return;let e=t.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(A),e.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),r=document.createRange();r.selectNodeContents(A),t.dom.blur(),n.removeAllRanges(),n.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),t.focus()},50)}const Ds=gt&&cr<15||Oi&&EF<604;it.copy=st.cut=(t,A)=>{let e=A,n=t.state.selection,r=e.type=="cut";if(n.empty)return;let i=Ds?null:e.clipboardData,s=n.content(),{dom:a,text:c}=Rp(t,s);i?(e.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,A){if(!t.dom.parentNode)return;let e=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(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),e?Ns(t,n.value,null,r,A):Ns(t,n.textContent,n.innerHTML,r,A)},50)}function Ns(t,A,e,n,r){let i=Kp(t,A,e,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 A=t.getData("text/plain")||t.getData("Text");if(A)return A;let e=t.getData("text/uri-list");return e?e.replace(/\r?\n/g," "):""}st.paste=(t,A)=>{let e=A;if(t.composing&&!rn)return;let n=Ds?null:e.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Ns(t,jp(n),n.getData("text/html"),r,e)?e.preventDefault():vb(t,e)};class Ag{constructor(A,e,n){this.slice=A,this.move=e,this.node=n}}const eg=Mt?"altKey":"ctrlKey";it.dragstart=(t,A)=>{let e=A,n=t.input.mouseDown;if(n&&n.done(),!e.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(Aa(e)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof fA?r.to-1:r.to))){if(n&&n.mightDrag)s=fA.create(t.state.doc,n.mightDrag.pos);else if(e.target&&e.target.nodeType==1){let p=t.docView.nearestDesc(e.target,!0);p&&p.node.type.spec.draggable&&p!=t.docView&&(s=fA.create(t.state.doc,p.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u,slice:f}=Rp(t,a);e.dataTransfer.clearData(),e.dataTransfer.setData(Ds?"Text":"text/html",c.innerHTML),e.dataTransfer.effectAllowed="copyMove",Ds||e.dataTransfer.setData("text/plain",u),t.dragging=new Ag(f,!e[eg],s)},it.dragend=t=>{let A=t.dragging;window.setTimeout(()=>{t.dragging==A&&(t.dragging=null)},50)},st.dragover=st.dragenter=(t,A)=>A.preventDefault(),st.drop=(t,A)=>{let e=A,n=t.dragging;if(t.dragging=null,!e.dataTransfer)return;let r=t.posAtCoords(Aa(e));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(e.dataTransfer),Ds?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!e[eg]);if(t.someProp("handleDrop",w=>w(t,e,s||j.empty,a))){e.preventDefault();return}if(!s)return;e.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&&fA.isSelectable(s.content.firstChild)&&B.nodeAfter&&B.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new fA(B));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((Q,b,v,_)=>w=_),u.setSelection(Vc(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,A)=>{let e=A;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),e.relatedTarget&&t.dom.contains(e.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},it.beforeinput=(t,A)=>{if(nt&&rn&&A.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,A){if(t==A)return!0;for(let e in t)if(t[e]!==A[e])return!1;for(let e in A)if(!(e in t))return!1;return!0}class ta{constructor(A,e){this.toDOM=A,this.spec=e||Zr,this.side=this.spec.side||0}map(A,e,n,r){let{pos:i,deleted:s}=A.mapResult(e.from+r,this.side<0?-1:1);return s?null:new Kt(i-n,i-n,this)}valid(){return!0}eq(A){return this==A||A instanceof ta&&(this.spec.key&&this.spec.key==A.spec.key||this.toDOM==A.toDOM&&Ms(this.spec,A.spec))}destroy(A){this.spec.destroy&&this.spec.destroy(A)}}class pr{constructor(A,e){this.attrs=A,this.spec=e||Zr}map(A,e,n,r){let i=A.map(e.from+r,this.spec.inclusiveStart?-1:1)-n,s=A.map(e.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=s?null:new Kt(i,s,this)}valid(A,e){return e.from<e.to}eq(A){return this==A||A instanceof pr&&Ms(this.attrs,A.attrs)&&Ms(this.spec,A.spec)}static is(A){return A.type instanceof pr}destroy(){}}class qc{constructor(A,e){this.attrs=A,this.spec=e||Zr}map(A,e,n,r){let i=A.mapResult(e.from+r,1);if(i.deleted)return null;let s=A.mapResult(e.to+r,-1);return s.deleted||s.pos<=i.pos?null:new Kt(i.pos-n,s.pos-n,this)}valid(A,e){let{index:n,offset:r}=A.content.findIndex(e.from),i;return r==e.from&&!(i=A.child(n)).isText&&r+i.nodeSize==e.to}eq(A){return this==A||A instanceof qc&&Ms(this.attrs,A.attrs)&&Ms(this.spec,A.spec)}destroy(){}}class Kt{constructor(A,e,n){this.from=A,this.to=e,this.type=n}copy(A,e){return new Kt(A,e,this.type)}eq(A,e=0){return this.type.eq(A.type)&&this.from+e==A.from&&this.to+e==A.to}map(A,e,n){return this.type.map(A,this,e,n)}static widget(A,e,n){return new Kt(A,A,new ta(e,n))}static inline(A,e,n,r){return new Kt(A,e,new pr(n,r))}static node(A,e,n,r){return new Kt(A,e,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 Di=[],Zr={};class Ie{constructor(A,e){this.local=A.length?A:Di,this.children=e.length?e:Di}static create(A,e){return e.length?na(e,A,0,Zr):Xe}find(A,e,n){let r=[];return this.findInner(A??0,e??1e9,r,0,n),r}findInner(A,e,n,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=e&&a.to>=A&&(!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]<e&&this.children[s+1]>A){let a=this.children[s]+1;this.children[s+2].findInner(A-a,e-a,n,r+a,i)}}map(A,e,n){return this==Xe||A.maps.length==0?this:this.mapInner(A,e,0,0,n||Zr)}mapInner(A,e,n,r,i){let s;for(let a=0;a<this.local.length;a++){let c=this.local[a].map(A,n,r);c&&c.type.valid(e,c)?(s||(s=[])).push(c):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?Ib(this.children,s||[],A,e,n,r,i):s?new Ie(s.sort(jr),Di):Xe}add(A,e){return e.length?this==Xe?Ie.create(A,e):this.addInner(A,e,0):this}addInner(A,e,n){let r,i=0;A.forEach((a,c)=>{let u=c+n,f;if(f=ng(e,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(e):e,-n);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||s.splice(a--,1);return new Ie(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(A){return A.length==0||this==Xe?this:this.removeInner(A,0)}removeInner(A,e){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let s,a=n[i]+e,c=n[i+1]+e;for(let f=0,p;f<A.length;f++)(p=A[f])&&p.from>a&&p.to<c&&(A[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!=Xe?n[i+2]=u:(n.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<A.length;i++)if(s=A[i])for(let a=0;a<r.length;a++)r[a].eq(s,e)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new Ie(r,n):Xe}forChild(A,e){if(this==Xe)return this;if(e.isLeaf)return Ie.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=A){this.children[a]==A&&(n=this.children[a+2]);break}let i=A+1,s=i+e.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 Ie(r.sort(jr),Di);return n?new gr([a,n]):a}return n||Xe}eq(A){if(this==A)return!0;if(!(A instanceof Ie)||this.local.length!=A.local.length||this.children.length!=A.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(A.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=A.children[e]||this.children[e+1]!=A.children[e+1]||!this.children[e+2].eq(A.children[e+2]))return!1;return!0}locals(A){return Zc(this.localsInner(A))}localsInner(A){if(this==Xe)return Di;if(A.inlineContent||!this.local.some(pr.is))return this.local;let e=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof pr||e.push(this.local[n]);return e}}Ie.empty=new Ie([],[]),Ie.removeOverlap=Zc;const Xe=Ie.empty;class gr{constructor(A){this.members=A}map(A,e){const n=this.members.map(r=>r.map(A,e,Zr));return gr.from(n)}forChild(A,e){if(e.isLeaf)return Ie.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(A,e);i!=Xe&&(i instanceof gr?n=n.concat(i.members):n.push(i))}return gr.from(n)}eq(A){if(!(A instanceof gr)||A.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(A.members[e]))return!1;return!0}locals(A){let e,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(A);if(i.length)if(!e)e=i;else{n&&(e=e.slice(),n=!1);for(let s=0;s<i.length;s++)e.push(i[s])}}return e?Zc(n?e:e.sort(jr)):Di}static from(A){switch(A.length){case 0:return Xe;case 1:return A[0];default:return new gr(A.every(e=>e instanceof Ie)?A:A.reduce((e,n)=>e.concat(n instanceof Ie?n:n.members),[]))}}}function Ib(t,A,e,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<e.maps.length;u++){let p=0;e.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=e.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=e.map(t[u]+i),p=f-r;if(p<0||p>=n.content.size){c=!0;continue}let g=e.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(e,b,f+1,t[u]+i+1,s);v!=Xe?(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,A,e,r,i,s),f=na(u,n,0,s);A=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 Ie(A.sort(jr),a)}function tg(t,A){if(!A||!t.length)return t;let e=[];for(let n=0;n<t.length;n++){let r=t[n];e.push(new Kt(r.from+A,r.to+A,r.type))}return e}function Sb(t,A,e,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?e.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],A[c]+i+1);return e}function ng(t,A,e){if(A.isLeaf)return null;let n=e+A.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>e&&s.to<n&&((r||(r=[])).push(s),t[i]=null);return r}function rg(t){let A=[];for(let e=0;e<t.length;e++)t[e]!=null&&A.push(t[e]);return A}function na(t,A,e,n){let r=[],i=!1;A.forEach((a,c)=>{let u=ng(t,a,c+e);if(u){i=!0;let f=na(u,a,e+c+1,n);f!=Xe&&r.push(c,c+a.nodeSize,f)}});let s=tg(i?rg(t):t,-e).sort(jr);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||(n.onRemove&&n.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new Ie(s,r):Xe}function jr(t,A){return t.from-A.from||t.to-A.to}function Zc(t){let A=t;for(let e=0;e<A.length-1;e++){let n=A[e];if(n.from!=n.to)for(let r=e+1;r<A.length;r++){let i=A[r];if(i.from==n.from){i.to!=n.to&&(A==t&&(A=t.slice()),A[r]=i.copy(i.from,n.to),ig(A,r+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(A==t&&(A=t.slice()),A[e]=n.copy(n.from,i.from),ig(A,r,n.copy(i.from,n.to)));break}}}return A}function ig(t,A,e){for(;A<t.length&&jr(e,t[A])>0;)A++;t.splice(A,0,e)}function jc(t){let A=[];return t.someProp("decorations",e=>{let n=e(t.state);n&&n!=Xe&&A.push(n)}),t.cursorWrapper&&A.push(Ie.create(t.state.doc,[t.cursorWrapper.deco])),gr.from(A)}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(A){this.anchorNode=A.anchorNode,this.anchorOffset=A.anchorOffset,this.focusNode=A.focusNode,this.focusOffset=A.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(A){return A.anchorNode==this.anchorNode&&A.anchorOffset==this.anchorOffset&&A.focusNode==this.focusNode&&A.focusOffset==this.focusOffset}}class Ob{constructor(A,e){this.view=A,this.handleDOMChange=e,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 A=this.observer.takeRecords();if(A.length){for(let e=0;e<A.length;e++)this.queue.push(A[e]);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 A=this.view.domSelectionRange();if(A.focusNode&&Jr(A.focusNode,A.focusOffset,A.anchorNode,A.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(A){if(!A.focusNode)return!0;let e=new Set,n;for(let i=A.focusNode;i;i=Ts(i))e.add(i);for(let i=A.anchorNode;i;i=Ts(i))if(e.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 A of this.observer.takeRecords())this.queue.push(A);return this.queue}flush(){let{view:A}=this;if(!A.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=A.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&xp(A)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(A.editable)for(let f=0;f<e.length;f++){let p=this.registerMutation(e[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(A,p)!=B)&&g.remove()}}}let u=null;i<0&&r&&A.input.lastFocus>Date.now()-200&&Math.max(A.input.lastTouch,A.input.lastClick.time)<Date.now()-300&&qo(n)&&(u=Kc(A))&&u.eq(FA.near(A.state.doc.resolve(0),1))?(A.input.lastFocus=0,kn(A),this.currentSelection.set(n),A.scrollToSelection()):(i>-1||r)&&(i>-1&&(A.docView.markDirty(i,s),Lb(A)),this.handleDOMChange(i,s,a,c),A.docView&&A.docView.dirty?A.updateState(A.state):this.currentSelection.eq(n)||kn(A),this.currentSelection.set(n))}registerMutation(A,e){if(e.indexOf(A.target)>-1)return null;let n=this.view.docView.nearestDesc(A.target);if(A.type=="attributes"&&(n==this.view.docView||A.attributeName=="contenteditable"||A.attributeName=="style"&&!A.oldValue&&!A.target.getAttribute("style"))||!n||n.ignoreMutation(A))return null;if(A.type=="childList"){for(let f=0;f<A.addedNodes.length;f++)e.push(A.addedNodes[f]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(A.target))return{from:n.posBefore,to:n.posAfter};let r=A.previousSibling,i=A.nextSibling;if(gt&&cr<=11&&A.addedNodes.length)for(let f=0;f<A.addedNodes.length;f++){let{previousSibling:p,nextSibling:g}=A.addedNodes[f];(!p||Array.prototype.indexOf.call(A.addedNodes,p)<0)&&(r=p),(!g||Array.prototype.indexOf.call(A.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==A.target?Re(r)+1:0,a=n.localPosFromDOM(A.target,s,-1),c=i&&i.parentNode==A.target?Re(i):A.target.childNodes.length,u=n.localPosFromDOM(A.target,c,1);return{from:a,to:u}}else return A.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:A.target.nodeValue==A.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,A){let e=A.startContainer,n=A.startOffset,r=A.endContainer,i=A.endOffset,s=t.domAtPos(t.state.selection.anchor);return Jr(s.node,s.offset,r,i)&&([e,n,r,i]=[r,i,e,n]),{anchorNode:e,anchorOffset:n,focusNode:r,focusOffset:i}}function Hb(t,A){if(A.getComposedRanges){let r=A.getComposedRanges(t.root)[0];if(r)return ag(t,r)}let e;function n(r){r.preventDefault(),r.stopImmediatePropagation(),e=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),e?ag(t,e):null}function kb(t,A){for(let e=A.parentNode;e&&e!=t.dom;e=e.parentNode){let n=t.docView.nearestDesc(e,!0);if(n&&n.node.isBlock)return e}return null}function Db(t,A,e){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(A,e),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:Nb,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 Nb(t){let A=t.pmViewDesc;if(A)return A.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}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,A,e,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,A<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,sA=Kc(t,N);if(sA&&!t.state.selection.eq(sA)){if(nt&&rn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",nA=>nA(t,Xr(13,"Enter"))))return;let BA=t.state.tr.setSelection(sA);N=="pointer"?BA.setMeta("pointer",!0):N=="key"&&BA.scrollIntoView(),i&&BA.setMeta("composition",i),t.dispatch(BA)}return}let s=t.state.doc.resolve(A),a=s.sharedDepth(e);A=s.before(a+1),e=t.state.doc.resolve(e).after(a+1);let c=t.state.selection,u=Db(t,A,e),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=Vb(p.content,u.doc.content,u.from,g,B);if((Oi&&t.input.lastIOSEnter>Date.now()-225||rn)&&r.some(N=>N.nodeType==1&&!Mb.test(N.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",N=>N(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!w)if(n&&c instanceof CA&&!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 N=lg(t,t.state.doc,u.sel);if(N&&!N.eq(t.state.selection)){let sA=t.state.tr.setSelection(N);i&&sA.setMeta("composition",i),t.dispatch(sA)}}return}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&w.start==w.endB&&t.state.selection instanceof CA&&(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(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!_&&Q.pos<u.doc.content.size&&!Q.sameParent(b)&&(S=FA.findFrom(u.doc.resolve(Q.pos+1),1,!0))&&S.head==b.pos)&&t.someProp("handleKeyDown",N=>N(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",N=>N(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(N){return N(t,Xr(13,"Enter"))})},20));let E=w.start,L=w.endA,U,D,P;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),D=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(P=Kb(Q.parent.content.cut(Q.parentOffset,b.parentOffset),v.parent.content.cut(v.parentOffset,w.endA-v.start()))))U=t.state.tr,P.type=="add"?U.addMark(E,L,P.mark):U.removeMark(E,L,P.mark);else if(Q.parent.child(Q.index()).isText&&Q.index()==b.index()-(b.textOffset?0:1)){let N=Q.parent.textBetween(Q.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",sA=>sA(t,E,L,N)))return;U=t.state.tr.insertText(N,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 N=lg(t,U.doc,u.sel);N&&!(nt&&rn&&t.composing&&N.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(N.head==E||N.head==U.mapping.map(L)-1)||gt&&N.empty&&N.head==E)&&U.setSelection(N)}D&&U.ensureMarks(D),i&&U.setMeta("composition",i),t.dispatch(U.scrollIntoView())}function lg(t,A,e){return Math.max(e.anchor,e.head)>A.content.size?null:Vc(t,A.resolve(e.anchor),A.resolve(e.head))}function Kb(t,A){let e=t.firstChild.marks,n=A.firstChild.marks,r=e,i=n,s,a,c;for(let f=0;f<n.length;f++)r=n[f].removeFromSet(r);for(let f=0;f<e.length;f++)i=e[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<A.childCount;f++)u.push(c(A.child(f)));if(Y.from(u).eq(t))return{mark:a,type:s}}function Pb(t,A,e,n,r){if(e-A<=r.pos-n.pos||Au(n,!0,!1)<r.pos)return!1;let i=t.resolve(A);if(!n.parent.isTextblock){let a=i.nodeAfter;return a!=null&&e==A+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Au(i,!0,!0));return!s.parent.isTextblock||s.pos>e||Au(s,!0,!1)<e?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function Au(t,A,e){let n=t.depth,r=A?t.end():t.pos;for(;n>0&&(A||t.indexAfter(n)==t.node(n).childCount);)n--,r++,A=!1;if(e){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Vb(t,A,e,n,r){let i=t.findDiffStart(A,e);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(A,e+t.size,e+A.size);if(r=="end"){let c=Math.max(0,i-Math.min(s,a));n-=s+c-i}if(s<i&&t.size<A.size){let c=n<=i&&n>=s?i-n:0;i-=c,i&&i<A.size&&cg(A.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 A=t.charCodeAt(0),e=t.charCodeAt(1);return A>=56320&&A<=57343&&e>=55296&&e<=56319}class Gb{constructor(A,e){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=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(pg),this.dispatch=this.dispatch.bind(this),this.dom=A&&A.mount||document.createElement("div"),A&&(A.appendChild?A.appendChild(this.dom):typeof A=="function"?A(this.dom):A.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 A=this._props;this._props={};for(let e in A)this._props[e]=A[e];this._props.state=this.state}return this._props}update(A){A.handleDOMEvents!=this._props.handleDOMEvents&&Jc(this);let e=this._props;this._props=A,A.plugins&&(A.plugins.forEach(pg),this.directPlugins=A.plugins),this.updateStateInner(A.state,e)}setProps(A){let e={};for(let n in this._props)e[n]=this._props[n];e.state=this.state;for(let n in A)e[n]=A[n];this.update(e)}updateState(A){this.updateStateInner(A,this._props)}updateStateInner(A,e){var n;let r=this.state,i=!1,s=!1;A.storedMarks&&this.composing&&(Zp(this),s=!0),this.state=A;let a=r.plugins!=A.plugins||this._props.plugins!=e.plugins;if(a||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let B=hg(this);$b(B,this.nodeViews)&&(this.nodeViews=B,i=!0)}(a||e.handleDOMEvents!=this._props.handleDOMEvents)&&Jc(this),this.editable=dg(this),fg(this);let c=jc(this),u=ug(this),f=r.plugins!=A.plugins&&!r.doc.eq(A.doc)?"reset":A.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(A.doc,u,c);(p||!A.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&&!A.selection.empty&&Wb(r.selection,A.selection);if(p){let w=nt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Qb(this)),(i||!this.docView.update(A.doc,u,c,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Cp(A.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,A.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((n=this.dragging)===null||n===void 0)&&n.node&&!r.doc.eq(A.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&UF(g)}scrollToSelection(){let A=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof fA){let e=this.docView.domAfterPos(this.state.selection.from);e.nodeType==1&&op(this,e.getBoundingClientRect(),A)}else op(this,this.coordsAtPos(this.state.selection.head,1),A)}destroyPluginViews(){let A;for(;A=this.pluginViews.pop();)A.destroy&&A.destroy()}updatePluginViews(A){if(!A||A.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let n=this.directPlugins[e];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let n=this.state.plugins[e];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let e=0;e<this.pluginViews.length;e++){let n=this.pluginViews[e];n.update&&n.update(this,A)}}updateDraggedNode(A,e){let n=A.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-e.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new Ag(A.slice,A.move,r<0?void 0:fA.create(this.state.doc,r))}someProp(A,e){let n=this._props&&this._props[A],r;if(n!=null&&(r=e?e(n):n))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[A];if(a!=null&&(r=e?e(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[A];if(a!=null&&(r=e?e(a):a))return r}}hasFocus(){if(gt){let A=this.root.activeElement;if(A==this.dom)return!0;if(!A||!this.dom.contains(A))return!1;for(;A&&this.dom!=A&&this.dom.contains(A);){if(A.contentEditable=="false")return!1;A=A.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 A=this._root;if(A==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return A||document}updateRoot(){this._root=null}posAtCoords(A){return xF(this,A)}coordsAtPos(A,e=1){return dp(this,A,e)}domAtPos(A,e=0){return this.docView.domFromPos(A,e)}nodeDOM(A){let e=this.docView.descAt(A);return e?e.nodeDOM:null}posAtDOM(A,e,n=-1){let r=this.docView.posFromDOM(A,e,n);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(A,e){return DF(this,e||this.state,A)}pasteHTML(A,e){return Ns(this,"",A,!1,e||new ClipboardEvent("paste"))}pasteText(A,e){return Ns(this,A,null,!0,e||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(A){return db(this,A)}dispatch(A){let e=this._props.dispatchTransaction;e?e.call(this,A):this.updateState(this.state.apply(A))}domSelectionRange(){let A=this.domSelection();return rt&&this.root.nodeType===11&&BF(this.dom.ownerDocument)==this.dom&&Hb(this,A)||A}domSelection(){return this.root.getSelection()}}function ug(t){let A=Object.create(null);return A.class="ProseMirror",A.contenteditable=String(t.editable),t.someProp("attributes",e=>{if(typeof e=="function"&&(e=e(t.state)),e)for(let n in e)n=="class"?A.class+=" "+e[n]:n=="style"?A.style=(A.style?A.style+";":"")+e[n]:!A[n]&&n!="contenteditable"&&n!="nodeName"&&(A[n]=String(e[n]))}),A.translate||(A.translate="no"),[Kt.node(0,t.state.doc.content.size,A)]}function fg(t){if(t.markCursor){let A=document.createElement("img");A.className="ProseMirror-separator",A.setAttribute("mark-placeholder","true"),A.setAttribute("alt",""),t.cursorWrapper={dom:A,deco:Kt.widget(t.state.selection.head,A,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function dg(t){return!t.someProp("editable",A=>A(t.state)===!1)}function Wb(t,A){let e=Math.min(t.$anchor.sharedDepth(t.head),A.$anchor.sharedDepth(A.head));return t.$anchor.start(e)!=A.$anchor.start(e)}function hg(t){let A=Object.create(null);function e(n){for(let r in n)Object.prototype.hasOwnProperty.call(A,r)||(A[r]=n[r])}return t.someProp("nodeViews",e),t.someProp("markViews",e),A}function $b(t,A){let e=0,n=0;for(let r in t){if(t[r]!=A[r])return!0;e++}for(let r in A)n++;return e!=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),Ke=0;Ke<10;Ke++)mr[48+Ke]=mr[96+Ke]=String(Ke);for(var Ke=1;Ke<=24;Ke++)mr[Ke+111]="F"+Ke;for(var Ke=65;Ke<=90;Ke++)mr[Ke]=String.fromCharCode(Ke+32),ra[Ke]=String.fromCharCode(Ke);for(var eu in mr)ra.hasOwnProperty(eu)||(ra[eu]=mr[eu]);function Yb(t){var A=Jb&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Xb&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!A&&t.key||(t.shiftKey?ra:mr)[t.keyCode]||t.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}const zb=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function qb(t){let A=t.split(/-(?!$)/),e=A[A.length-1];e=="Space"&&(e=" ");let n,r,i,s;for(let a=0;a<A.length-1;a++){let c=A[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&&(e="Alt-"+e),r&&(e="Ctrl-"+e),s&&(e="Meta-"+e),i&&(e="Shift-"+e),e}function Zb(t){let A=Object.create(null);for(let e in t)A[qb(e)]=t[e];return A}function tu(t,A,e=!0){return A.altKey&&(t="Alt-"+t),A.ctrlKey&&(t="Ctrl-"+t),A.metaKey&&(t="Meta-"+t),e&&A.shiftKey&&(t="Shift-"+t),t}function jb(t){return new pt({props:{handleKeyDown:gg(t)}})}function gg(t){let A=Zb(t);return function(e,n){let r=Yb(n),i,s=A[tu(r,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=A[tu(r,n,!1)];if(a&&a(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=mr[n.keyCode])&&i!=r){let a=A[tu(i,n)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const AU=(t,A)=>t.selection.empty?!1:(A&&A(t.tr.deleteSelection().scrollIntoView()),!0);function mg(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("backward",t):e.parentOffset>0)?null:e}const eU=(t,A,e)=>{let n=mg(t,e);if(!n)return!1;let r=nu(n);if(!r){let s=n.blockRange(),a=s&&vi(s);return a==null?!1:(A&&A(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&yg(t,r,A))return!0;if(n.parent.content.size==0&&(Ni(i,"end")||fA.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(A){let a=t.tr.step(s);a.setSelection(Ni(i,"end")?FA.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):fA.create(a.doc,r.pos-i.nodeSize)),A(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(A&&A(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},tU=(t,A,e)=>{let n=mg(t,e);if(!n)return!1;let r=nu(n);return r?Bg(t,r,A):!1},nU=(t,A,e)=>{let n=wg(t,e);if(!n)return!1;let r=ru(n);return r?Bg(t,r,A):!1};function Bg(t,A,e){let n=A.nodeBefore,r=n,i=A.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=A.nodeAfter,a=s,c=A.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 xe&&u.slice.size>=c-i)return!1;if(e){let f=t.tr.step(u);f.setSelection(CA.create(f.doc,i)),e(f.scrollIntoView())}return!0}function Ni(t,A,e=!1){for(let n=t;n;n=A=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(e&&n.childCount!=1)return!1}return!1}const rU=(t,A,e)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(e?!e.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=nu(n)}let s=i&&i.nodeBefore;return!s||!fA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(fA.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function nu(t){if(!t.parent.type.spec.isolating)for(let A=t.depth-1;A>=0;A--){if(t.index(A)>0)return t.doc.resolve(t.before(A+1));if(t.node(A).type.spec.isolating)break}return null}function wg(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("forward",t):e.parentOffset<e.parent.content.size)?null:e}const iU=(t,A,e)=>{let n=wg(t,e);if(!n)return!1;let r=ru(n);if(!r)return!1;let i=r.nodeAfter;if(yg(t,r,A))return!0;if(n.parent.content.size==0&&(Ni(i,"start")||fA.isSelectable(i))){let s=Xo(t.doc,n.before(),n.after(),j.empty);if(s&&s.slice.size<s.to-s.from){if(A){let a=t.tr.step(s);a.setSelection(Ni(i,"start")?FA.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):fA.create(a.doc,a.mapping.map(r.pos))),A(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==n.depth-1?(A&&A(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},sU=(t,A,e)=>{let{$head:n,empty:r}=t.selection,i=n;if(!r)return!1;if(n.parent.isTextblock){if(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=ru(n)}let s=i&&i.nodeAfter;return!s||!fA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(fA.create(t.doc,i.pos)).scrollIntoView()),!0)};function ru(t){if(!t.parent.type.spec.isolating)for(let A=t.depth-1;A>=0;A--){let e=t.node(A);if(t.index(A)+1<e.childCount)return t.doc.resolve(t.after(A+1));if(e.type.spec.isolating)break}return null}const oU=(t,A)=>{let e=t.selection,n=e instanceof fA,r;if(n){if(e.node.isTextblock||!ar(t.doc,e.from))return!1;r=e.from}else if(r=Jo(t.doc,e.from,-1),r==null)return!1;if(A){let i=t.tr.join(r);n&&i.setSelection(fA.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),A(i.scrollIntoView())}return!0},aU=(t,A)=>{let e=t.selection,n;if(e instanceof fA){if(e.node.isTextblock||!ar(t.doc,e.to))return!1;n=e.to}else if(n=Jo(t.doc,e.to,1),n==null)return!1;return A&&A(t.tr.join(n).scrollIntoView()),!0},lU=(t,A)=>{let{$from:e,$to:n}=t.selection,r=e.blockRange(n),i=r&&vi(r);return i==null?!1:(A&&A(t.tr.lift(r,i).scrollIntoView()),!0)},cU=(t,A)=>{let{$head:e,$anchor:n}=t.selection;return!e.parent.type.spec.code||!e.sameParent(n)?!1:(A&&A(t.tr.insertText(`
11
+ `).scrollIntoView()),!0)};function Cg(t){for(let A=0;A<t.edgeCount;A++){let{type:e}=t.edge(A);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}const uU=(t,A)=>{let{$head:e,$anchor:n}=t.selection;if(!e.parent.type.spec.code||!e.sameParent(n))return!1;let r=e.node(-1),i=e.indexAfter(-1),s=Cg(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(A){let a=e.after(),c=t.tr.replaceWith(a,a,s.createAndFill());c.setSelection(FA.near(c.doc.resolve(a),1)),A(c.scrollIntoView())}return!0},fU=(t,A)=>{let e=t.selection,{$from:n,$to:r}=e;if(e 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(A){let s=(!n.parentOffset&&r.index()<r.parent.childCount?n:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(CA.create(a.doc,s+1)),A(a.scrollIntoView())}return!0},dU=(t,A)=>{let{$cursor:e}=t.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let i=e.before();if(Ii(t.doc,i))return A&&A(t.tr.split(i).scrollIntoView()),!0}let n=e.blockRange(),r=n&&vi(n);return r==null?!1:(A&&A(t.tr.lift(n,r).scrollIntoView()),!0)},hU=(t,A)=>{let{$from:e,to:n}=t.selection,r,i=e.sharedDepth(n);return i==0?!1:(r=e.before(i),A&&A(t.tr.setSelection(fA.create(t.doc,r))),!0)};function pU(t,A,e){let n=A.nodeBefore,r=A.nodeAfter,i=A.index();return!n||!r||!n.type.compatibleContent(r.type)?!1:!n.content.size&&A.parent.canReplace(i-1,i)?(e&&e(t.tr.delete(A.pos-n.nodeSize,A.pos).scrollIntoView()),!0):!A.parent.canReplace(i,i+1)||!(r.isTextblock||ar(t.doc,A.pos))?!1:(e&&e(t.tr.clearIncompatible(A.pos,n.type,n.contentMatchAt(n.childCount)).join(A.pos).scrollIntoView()),!0)}function yg(t,A,e){let n=A.nodeBefore,r=A.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(pU(t,A,e))return!0;let a=A.parent.canReplace(A.index(),A.index()+1);if(a&&(i=(s=n.contentMatchAt(n.childCount)).findWrapping(r.type))&&s.matchType(i[0]||r.type).validEnd){if(e){let p=A.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 Oe(A.pos-1,p,A.pos,p,new j(g,1,0),i.length,!0)),w=p+2*i.length;ar(B.doc,w)&&B.join(w),e(B.scrollIntoView())}return!0}let c=FA.findFrom(A,1),u=c&&c.$from.blockRange(c.$to),f=u&&vi(u);if(f!=null&&f>=A.depth)return e&&e(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Ni(r,"start",!0)&&Ni(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(e){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 Oe(A.pos-g.length,A.pos+r.nodeSize,A.pos+w,A.pos+r.nodeSize-w,new j(Q,g.length,0),0,!0));e(b.scrollIntoView())}return!0}}return!1}function Eg(t){return function(A,e){let n=A.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?(e&&e(A.tr.setSelection(CA.create(A.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const gU=Eg(-1),mU=Eg(1);function BU(t,A=null){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i),a=s&&bc(s,t,A);return a?(n&&n(e.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Qg(t,A=null){return function(e,n){let r=!1;for(let i=0;i<e.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=e.selection.ranges[i];e.doc.nodesBetween(s,a,(c,u)=>{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(t,A)))if(c.type==t)r=!0;else{let f=e.doc.resolve(u),p=f.index();r=f.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=e.tr;for(let s=0;s<e.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=e.selection.ranges[s];i.setBlockType(a,c,t,A)}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,A=null){return function(e,n){let{$from:r,$to:i}=e.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=e.doc.resolve(s.start-2);c=new Ro(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new Ro(r,e.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=bc(c,t,A,s);return u?(n&&n(CU(e.tr,s,u,a,t).scrollIntoView()),!0):!1}}function CU(t,A,e,n,r){let i=Y.empty;for(let f=e.length-1;f>=0;f--)i=Y.from(e[f].type.create(e[f].attrs,i));t.step(new Oe(A.start-(n?2:0),A.end,A.start,A.end,new j(i,0,0),e.length,!0));let s=0;for(let f=0;f<e.length;f++)e[f].type==r&&(s=f+1);let a=e.length-s,c=A.start+e.length-(n?2:0),u=A.parent;for(let f=A.startIndex,p=A.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(A,e){let{$from:n,$to:r}=A.selection,i=n.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?e?n.node(i.depth-1).type==t?EU(A,e,t,i):QU(A,e,i):!0:!1}}function EU(t,A,e,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new Oe(i-1,s,i,s,new j(Y.from(e.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),A(r.scrollIntoView()),!0}function QU(t,A,e){let n=t.tr,r=e.parent;for(let B=e.end,w=e.endIndex-1,Q=e.startIndex;w>Q;w--)B-=r.child(w).nodeSize,n.delete(B-1,B+1);let i=n.doc.resolve(e.start),s=i.nodeAfter;if(n.mapping.map(e.end)!=e.start+i.nodeAfter.nodeSize)return!1;let a=e.startIndex==0,c=e.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 Oe(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)),A(n.scrollIntoView()),!0}function FU(t){return function(A,e){let{$from:n,$to:r}=A.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(e){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;e(A.tr.step(new Oe(g-(u?3:1),B,g,B,p,1,!0)).scrollIntoView())}return!0}}function ia(t){const{state:A,transaction:e}=t;let{selection:n}=e,{doc:r}=e,{storedMarks:i}=e;return{...A,apply:A.apply.bind(A),applyTransaction:A.applyTransaction.bind(A),plugins:A.plugins,schema:A.schema,reconfigure:A.reconfigure.bind(A),toJSON:A.toJSON.bind(A),get storedMarks(){return i},get selection(){return n},get doc(){return r},get tr(){return n=e.selection,r=e.doc,i=e.storedMarks,e}}}class sa{constructor(A){this.editor=A.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=A.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:A,editor:e,state:n}=this,{view:r}=e,{tr:i}=n,s=this.buildProps(i);return Object.fromEntries(Object.entries(A).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(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!A,u=A||i.tr,f=()=>(!c&&e&&!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,e),v=B(...Q)(b);return a.push(v),p}])),run:f};return p}createCan(A){const{rawCommands:e,state:n}=this,r=!1,i=A||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(e).map(([c,u])=>[c,(...f)=>u(...f)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a={tr:A,editor:r,view:s,state:ia({state:i,transaction:A}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(A,e),can:()=>this.createCan(A),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...f)=>u(...f)(a)]))}};return a}}class bU{constructor(){this.callbacks={}}on(A,e){return this.callbacks[A]||(this.callbacks[A]=[]),this.callbacks[A].push(e),this}emit(A,...e){const n=this.callbacks[A];return n&&n.forEach(r=>r.apply(this,e)),this}off(A,e){const n=this.callbacks[A];return n&&(e?this.callbacks[A]=n.filter(r=>r!==e):delete this.callbacks[A]),this}removeAllListeners(){this.callbacks={}}}function aA(t,A,e){return t.config[A]===void 0&&t.parent?aA(t.parent,A,e):typeof t.config[A]=="function"?t.config[A].bind({...e,parent:t.parent?aA(t.parent,A,e):null}):t.config[A]}function oa(t){const A=t.filter(r=>r.type==="extension"),e=t.filter(r=>r.type==="node"),n=t.filter(r=>r.type==="mark");return{baseExtensions:A,nodeExtensions:e,markExtensions:n}}function Fg(t){const A=[],{nodeExtensions:e,markExtensions:n}=oa(t),r=[...e,...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=aA(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(p=>{Object.entries(f.attributes).forEach(([g,B])=>{A.push({type:p,name:g,attribute:{...i,...B}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=aA(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,A.push({type:s.name,name:f,attribute:g})})}),A}function Le(t,A){if(typeof t=="string"){if(!A.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return A.nodes[t]}return t}function Fe(...t){return t.filter(A=>!!A).reduce((A,e)=>{const n={...A};return Object.entries(e).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,A){return A.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]}).reduce((e,n)=>Fe(e,n),{})}function bg(t){return typeof t=="function"}function bA(t,A=void 0,...e){return bg(t)?A?t.bind(A)(...e):t(...e):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,A){return t.style?t:{...t,getAttrs:e=>{const n=t.getAttrs?t.getAttrs(e):t.attrs;if(n===!1)return!1;const r=A.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(e):vU(e.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function vg(t){return Object.fromEntries(Object.entries(t).filter(([A,e])=>A==="attrs"&&UU(e)?!1:e!=null))}function IU(t,A){var e;const n=Fg(t),{nodeExtensions:r,markExtensions:i}=oa(t),s=(e=r.find(u=>aA(u,"topNode")))===null||e===void 0?void 0:e.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:A},g=t.reduce((v,_)=>{const S=aA(_,"extendNodeSchema",p);return{...v,...S?S(u):{}}},{}),B=vg({...g,content:bA(aA(u,"content",p)),marks:bA(aA(u,"marks",p)),group:bA(aA(u,"group",p)),inline:bA(aA(u,"inline",p)),atom:bA(aA(u,"atom",p)),selectable:bA(aA(u,"selectable",p)),draggable:bA(aA(u,"draggable",p)),code:bA(aA(u,"code",p)),defining:bA(aA(u,"defining",p)),isolating:bA(aA(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=bA(aA(u,"parseHTML",p));w&&(B.parseDOM=w.map(v=>Ug(v,f)));const Q=aA(u,"renderHTML",p);Q&&(B.toDOM=v=>Q({node:v,HTMLAttributes:iu(v,f)}));const b=aA(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:A},g=t.reduce((b,v)=>{const _=aA(v,"extendMarkSchema",p);return{...b,..._?_(u):{}}},{}),B=vg({...g,inclusive:bA(aA(u,"inclusive",p)),excludes:bA(aA(u,"excludes",p)),group:bA(aA(u,"group",p)),spanning:bA(aA(u,"spanning",p)),code:bA(aA(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=bA(aA(u,"parseHTML",p));w&&(B.parseDOM=w.map(b=>Ug(b,f)));const Q=aA(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,A){return A.nodes[t]||A.marks[t]||null}function Ig(t,A){return Array.isArray(A)?A.some(e=>(typeof e=="string"?e:e.name)===t.name):A}const SU=(t,A=500)=>{let e="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-A),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%";e+=f.slice(0,Math.max(0,n-i))}),e};function ou(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class aa{constructor(A){this.find=A.find,this.handler=A.handler}}const TU=(t,A)=>{if(ou(A))return A.exec(t);const e=A(t);if(!e)return null;const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(e.replaceWith)),n};function la(t){var A;const{editor:e,from:n,to:r,text:i,rules:s,plugin:a}=t,{view:c}=e;if(c.composing)return!1;const u=c.state.doc.resolve(n);if(u.parent.type.spec.code||!((A=u.nodeBefore||u.nodeAfter)===null||A===void 0)&&A.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:e,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:A,rules:e}=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:A,from:u,to:p,text:f,rules:e,plugin:n})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return la({editor:A,from:i,to:s,text:a,rules:e,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&la({editor:A,from:i.pos,to:i.pos,text:"",rules:e,plugin:n})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?la({editor:A,from:s.pos,to:s.pos,text:`
12
+ `,rules:e,plugin:n}):!1}},isInputRules:!0});return n}function xU(t){return typeof t=="number"}class OU{constructor(A){this.find=A.find,this.handler=A.handler}}const LU=(t,A,e)=>{if(ou(A))return[...t.matchAll(A)];const n=A(t,e);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:A,state:e,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new sa({editor:A,state:e}),p=[];return e.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:e.tr.mapping.map(E),to:e.tr.mapping.map(L)},D=i.handler({state:e,range:U,match:S,commands:c,chain:u,can:f,pasteEvent:s,dropEvent:a});p.push(D)})}),p.every(B=>B!==null)}const kU=t=>{var A;const e=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(A=e.clipboardData)===null||A===void 0||A.setData("text/html",t),e};function DU(t){const{editor:A,rules:e}=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:A,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 e.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,D=L+U.length,P=kU(U);return c({rule:f,state:B,from:L,to:{b:D},pasteEvt:P})}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 NU(t){const A=t.filter((e,n)=>t.indexOf(e)!==n);return[...new Set(A)]}class Mi{constructor(A,e){this.splittableMarks=[],this.editor=e,this.extensions=Mi.resolve(A),this.schema=IU(this.extensions,e),this.setupExtensions()}static resolve(A){const e=Mi.sort(Mi.flatten(A)),n=NU(e.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.`),e}static flatten(A){return A.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=aA(e,"addExtensions",n);return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(A){return A.sort((n,r)=>{const i=aA(n,"priority")||100,s=aA(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((A,e)=>{const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:su(e.name,this.schema)},r=aA(e,"addCommands",n);return r?{...A,...r()}:A},{})}get plugins(){const{editor:A}=this,e=Mi.sort([...this.extensions].reverse()),n=[],r=[],i=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:A,type:su(s.name,this.schema)},c=[],u=aA(s,"addKeyboardShortcuts",a);let f={};if(s.type==="mark"&&s.config.exitable&&(f.ArrowRight=()=>sn.handleExit({editor:A,mark:s})),u){const Q=Object.fromEntries(Object.entries(u()).map(([b,v])=>[b,()=>v({editor:A})]));f={...f,...Q}}const p=jb(f);c.push(p);const g=aA(s,"addInputRules",a);Ig(s,A.options.enableInputRules)&&g&&n.push(...g());const B=aA(s,"addPasteRules",a);Ig(s,A.options.enablePasteRules)&&B&&r.push(...B());const w=aA(s,"addProseMirrorPlugins",a);if(w){const Q=w();c.push(...Q)}return c}).flat();return[_U({editor:A,rules:n}),...DU({editor:A,rules:r}),...i]}get attributes(){return Fg(this.extensions)}get nodeViews(){const{editor:A}=this,{nodeExtensions:e}=oa(this.extensions);return Object.fromEntries(e.filter(n=>!!aA(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:A,type:Le(n.name,this.schema)},s=aA(n,"addNodeView",i);if(!s)return[];const a=(c,u,f,p)=>{const g=iu(c,r);return s()({editor:A,node:c,getPos:f,decorations:p,HTMLAttributes:g,extension:n})};return[n.name,a]}))}setupExtensions(){this.extensions.forEach(A=>{var e;this.editor.extensionStorage[A.name]=A.storage;const n={name:A.name,options:A.options,storage:A.storage,editor:this.editor,type:su(A.name,this.schema)};A.type==="mark"&&(!((e=bA(aA(A,"keepOnSplit",n)))!==null&&e!==void 0)||e)&&this.splittableMarks.push(A.name);const r=aA(A,"onBeforeCreate",n),i=aA(A,"onCreate",n),s=aA(A,"onUpdate",n),a=aA(A,"onSelectionUpdate",n),c=aA(A,"onTransaction",n),u=aA(A,"onFocus",n),f=aA(A,"onBlur",n),p=aA(A,"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,A){const e={...t};return au(t)&&au(A)&&Object.keys(A).forEach(n=>{au(A[n])?n in t?e[n]=ca(t[n],A[n]):Object.assign(e,{[n]:A[n]}):Object.assign(e,{[n]:A[n]})}),e}class Ye{constructor(A={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...A},this.name=this.config.name,A.defaultOptions&&Object.keys(A.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=bA(aA(this,"addOptions",{name:this.name}))),this.storage=bA(aA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new Ye(A)}configure(A={}){const e=this.extend();return e.parent=this.parent,e.options=ca(this.options,A),e.storage=bA(aA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new Ye({...this.config,...A});return e.parent=this,this.child=e,e.name=A.name?A.name:e.parent.name,A.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=bA(aA(e,"addOptions",{name:e.name})),e.storage=bA(aA(e,"addStorage",{name:e.name,options:e.options})),e}}function Sg(t,A,e){const{from:n,to:r}=A,{blockSeparator:i=`
13
+
14
+ `,textSerializers:s={}}=e||{};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:A})),!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(([,A])=>A.spec.toText).map(([A,e])=>[A,e.spec.toText]))}const RU=Ye.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pt({key:new wn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:A,schema:e}=t,{doc:n,selection:r}=A,{ranges:i}=r,s=Math.min(...i.map(f=>f.$from.pos)),a=Math.max(...i.map(f=>f.$to.pos)),c=Tg(e);return Sg(n,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),KU=()=>({editor:t,view:A})=>(requestAnimationFrame(()=>{var e;t.isDestroyed||(A.dom.blur(),(e=window==null?void 0:window.getSelection())===null||e===void 0||e.removeAllRanges())}),!0),PU=(t=!1)=>({commands:A})=>A.setContent("",t),VU=()=>({state:t,tr:A,dispatch:e})=>{const{selection:n}=A,{ranges:r}=n;return e&&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}=A,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());A.setNodeMarkup(B.start,Q)}(w||w===0)&&A.lift(B,w)})}),!0},GU=t=>A=>t(A),WU=()=>({state:t,dispatch:A})=>fU(t,A),$U=(t,A)=>({editor:e,tr:n})=>{const{state:r}=e,i=r.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const s=n.mapping.map(A);return n.insert(s,i.content),n.setSelection(new CA(n.doc.resolve(s-1))),!0},JU=()=>({tr:t,dispatch:A})=>{const{selection:e}=t,n=e.$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(A){const a=r.before(i),c=r.after(i);t.delete(a,c).scrollIntoView()}return!0}return!1},XU=t=>({tr:A,state:e,dispatch:n})=>{const r=Le(t,e.schema),i=A.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);A.delete(c,u).scrollIntoView()}return!0}return!1},YU=t=>({tr:A,dispatch:e})=>{const{from:n,to:r}=t;return e&&A.delete(n,r),!0},zU=()=>({state:t,dispatch:A})=>AU(t,A),qU=()=>({commands:t})=>t.keyboardShortcut("Enter"),ZU=()=>({state:t,dispatch:A})=>uU(t,A);function ua(t,A,e={strict:!0}){const n=Object.keys(A);return n.length?n.every(r=>e.strict?A[r]===t[r]:ou(A[r])?A[r].test(t[r]):A[r]===t[r]):!0}function lu(t,A,e={}){return t.find(n=>n.type===A&&ua(n.attrs,e))}function jU(t,A,e={}){return!!lu(t,A,e)}function cu(t,A,e={}){if(!t||!A)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],A,e);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],A,e);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],A,e);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function Br(t,A){if(typeof t=="string"){if(!A.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return A.marks[t]}return t}const Av=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const i=Br(t,n.schema),{doc:s,selection:a}=e,{$from:c,from:u,to:f}=a;if(r){const p=cu(c,i,A);if(p&&p.from<=u&&p.to>=f){const g=CA.create(s,p.from,p.to);e.setSelection(g)}}return!0},ev=t=>A=>{const e=typeof t=="function"?t(A):t;for(let n=0;n<e.length;n+=1)if(e[n](A))return!0;return!1};function uu(t){return t instanceof CA}function Dn(t=0,A=0,e=0){return Math.min(Math.max(t,A),e)}function _g(t,A=null){if(!A)return null;const e=FA.atStart(t),n=FA.atEnd(t);if(A==="start"||A===!0)return e;if(A==="end")return n;const r=e.from,i=n.to;return A==="all"?CA.create(t,Dn(0,r,i),Dn(t.content.size,r,i)):CA.create(t,Dn(A,r,i),Dn(A,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,A={})=>({editor:e,view:n,tr:r,dispatch:i})=>{A={scrollIntoView:!0,...A};const s=()=>{fu()&&n.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(n.focus(),A!=null&&A.scrollIntoView&&e.commands.scrollIntoView())})};if(n.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!uu(e.state.selection))return s(),!0;const a=_g(r.doc,t)||e.state.selection,c=e.state.selection.eq(a);return i&&(c||r.setSelection(a),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},nv=(t,A)=>e=>t.every((n,r)=>A(n,{...e,index:r})),rv=(t,A)=>({tr:e,commands:n})=>n.insertContentAt({from:e.selection.from,to:e.selection.to},t,A),xg=t=>{const A=t.childNodes;for(let e=A.length-1;e>=0;e-=1){const n=A[e];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 A=`<body>${t}</body>`,e=new window.DOMParser().parseFromString(A,"text/html").body;return xg(e)}function fa(t,A,e){e={slice:!0,parseOptions:{},...e};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=>A.nodeFromJSON(s))):A.nodeFromJSON(t)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),fa("",A,e)}if(r){const i=Fi.fromSchema(A);return e.slice?i.parseSlice(Og(t),e.parseOptions).content:i.parse(Og(t),e.parseOptions)}return fa("",A,e)}function iv(t,A,e){const n=t.steps.length-1;if(n<A)return;const r=t.steps[n];if(!(r instanceof xe||r instanceof Oe))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(FA.near(t.doc.resolve(s),e))}const sv=t=>t.toString().startsWith("<"),ov=(t,A,e)=>({tr:n,dispatch:r,editor:i})=>{if(r){e={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...e};const s=fa(A,i.schema,{parseOptions:{preserveWhitespace:"full",...e.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(A)?g=A.map(B=>B.text||"").join(""):typeof A=="object"&&A&&A.text?g=A.text:g=A,n.insertText(g,a,c)):(g=s,n.replaceWith(a,c,g)),e.updateSelection&&iv(n,n.steps.length-1,-1),e.applyInputRules&&n.setMeta("applyInputRules",{from:a,text:g}),e.applyPasteRules&&n.setMeta("applyPasteRules",{from:a,text:g})}return!0},av=()=>({state:t,dispatch:A})=>oU(t,A),lv=()=>({state:t,dispatch:A})=>aU(t,A),cv=()=>({state:t,dispatch:A})=>eU(t,A),uv=()=>({state:t,dispatch:A})=>iU(t,A),fv=()=>({tr:t,state:A,dispatch:e})=>{try{const n=Jo(A.doc,A.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),e&&e(t),!0)}catch{return!1}},dv=()=>({state:t,dispatch:A,tr:e})=>{try{const n=Jo(t.doc,t.selection.$from.pos,1);return n==null?!1:(e.join(n,2),A&&A(e),!0)}catch{return!1}},hv=()=>({state:t,dispatch:A})=>tU(t,A),pv=()=>({state:t,dispatch:A})=>nU(t,A);function Lg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function gv(t){const A=t.split(/-(?!$)/);let e=A[A.length-1];e==="Space"&&(e=" ");let n,r,i,s;for(let a=0;a<A.length-1;a+=1){const c=A[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&&(e=`Alt-${e}`),r&&(e=`Ctrl-${e}`),s&&(e=`Meta-${e}`),i&&(e=`Shift-${e}`),e}const mv=t=>({editor:A,view:e,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=A.captureTransaction(()=>{e.someProp("handleKeyDown",u=>u(e,a))});return c==null||c.steps.forEach(u=>{const f=u.map(n.mapping);f&&r&&n.maybeStep(f)}),!0};function Rs(t,A,e={}){const{from:n,to:r,empty:i}=t.selection,s=A?Le(A,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,e,{strict:!1}));return i?!!u.length:u.reduce((p,g)=>p+g.to-g.from,0)>=c}const Bv=(t,A={})=>({state:e,dispatch:n})=>{const r=Le(t,e.schema);return Rs(e,r,A)?lU(e,n):!1},wv=()=>({state:t,dispatch:A})=>dU(t,A),Cv=t=>({state:A,dispatch:e})=>{const n=Le(t,A.schema);return yU(n)(A,e)},yv=()=>({state:t,dispatch:A})=>cU(t,A);function da(t,A){return A.nodes[t]?"node":A.marks[t]?"mark":null}function Hg(t,A){const e=typeof A=="string"?[A]:A;return Object.keys(t).reduce((n,r)=>(e.includes(r)||(n[r]=t[r]),n),{})}const Ev=(t,A)=>({tr:e,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=Le(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&e.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,f)=>{i&&i===u.type&&e.setNodeMarkup(f,void 0,Hg(u.attrs,A)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&e.addMark(f,f+u.nodeSize,s.create(Hg(p.attrs,A)))})})}),!0):!1},Qv=()=>({tr:t,dispatch:A})=>(A&&t.scrollIntoView(),!0),Fv=()=>({tr:t,commands:A})=>A.setTextSelection({from:0,to:t.doc.content.size}),bv=()=>({state:t,dispatch:A})=>rU(t,A),Uv=()=>({state:t,dispatch:A})=>sU(t,A),vv=()=>({state:t,dispatch:A})=>hU(t,A),Iv=()=>({state:t,dispatch:A})=>mU(t,A),Sv=()=>({state:t,dispatch:A})=>gU(t,A);function kg(t,A,e={}){return fa(t,A,{slice:!1,parseOptions:e})}const Tv=(t,A=!1,e={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=kg(t,r.schema,e);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!A),!0};function ha(t,A){const e=Br(A,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===e.name);return a?{...a.attrs}:{}}function _v(t){for(let A=0;A<t.edgeCount;A+=1){const{type:e}=t.edge(A);if(e.isTextblock&&!e.hasRequiredAttrs())return e}return null}function xv(t,A){for(let e=t.depth;e>0;e-=1){const n=t.node(e);if(A(n))return{pos:e>0?t.before(e):0,start:t.start(e),depth:e,node:n}}}function du(t){return A=>xv(A.$from,t)}function Ov(t,A){const e=mn.fromSchema(A).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function Lv(t,A){const e={from:0,to:t.content.size};return Sg(t,e,A)}function Hv(t,A){const e=Le(A,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===e.name);return s?{...s.attrs}:{}}function kv(t,A){const e=da(typeof A=="string"?A:A.name,t.schema);return e==="node"?Hv(t,A):e==="mark"?ha(t,A):{}}function Dg(t,A,e){const n=[];return t===A?e.resolve(t).marks().forEach(r=>{const i=e.resolve(t-1),s=cu(i,r.type);s&&n.push({mark:r,...s})}):e.nodesBetween(t,A,(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,A,e){return Object.fromEntries(Object.entries(e).filter(([n])=>{const r=t.find(i=>i.type===A&&i.name===n);return r?r.attribute.keepOnSplit:!1}))}function hu(t,A,e={}){const{empty:n,ranges:r}=t.selection,i=A?Br(A,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,e,{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,e,{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,A,e={}){if(!A)return Rs(t,null,e)||hu(t,null,e);const n=da(A,t.schema);return n==="node"?Rs(t,A,e):n==="mark"?hu(t,A,e):!1}function Ng(t,A){const{nodeExtensions:e}=oa(A),n=e.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=bA(aA(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Nv(t){var A;const e=(A=t.type.createAndFill())===null||A===void 0?void 0:A.toJSON(),n=t.toJSON();return JSON.stringify(e)===JSON.stringify(n)}function Mv(t){return t instanceof fA}function Mg(t,A,e){const r=t.state.doc.content.size,i=Dn(A,0,r),s=Dn(e,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,A,e){var n;const{selection:r}=A;let i=null;if(uu(r)&&(i=r.$cursor),i){const a=(n=t.storedMarks)!==null&&n!==void 0?n:i.marks();return!!e.isInSet(a)||!a.some(c=>c.type.excludes(e))}const{ranges:s}=r;return s.some(({$from:a,$to:c})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(e):!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(e),w=!!e.isInSet(f.marks)||!f.marks.some(Q=>Q.type.excludes(e));u=B&&w}return!u}),u})}const Kv=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=e,{empty:s,ranges:a}=i,c=Br(t,n.schema);if(r)if(s){const u=ha(n,c);e.addStoredMark(c.create({...u,...A}))}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&&e.addMark(w,Q,c.create({...v.attrs,...A}))}):e.addMark(w,Q,c.create(A))})});return Rv(n,e,c)},Pv=(t,A)=>({tr:e})=>(e.setMeta(t,A),!0),Vv=(t,A={})=>({state:e,dispatch:n,chain:r})=>{const i=Le(t,e.schema);return i.isTextblock?r().command(({commands:s})=>Qg(i,A)(e)?!0:s.clearNodes()).command(({state:s})=>Qg(i,A)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Gv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,r=Dn(t,0,n.content.size),i=fA.create(n,r);A.setSelection(i)}return!0},Wv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=CA.atStart(n).from,a=CA.atEnd(n).to,c=Dn(r,s,a),u=Dn(i,s,a),f=CA.create(n,c,u);A.setSelection(f)}return!0},$v=t=>({state:A,dispatch:e})=>{const n=Le(t,A.schema);return FU(n)(A,e)};function Rg(t,A){const e=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(e){const n=e.filter(r=>A==null?void 0:A.includes(r.type.name));t.tr.ensureMarks(n)}}const Jv=({keepMarks:t=!0}={})=>({tr:A,state:e,dispatch:n,editor:r})=>{const{selection:i,doc:s}=A,{$from:a,$to:c}=i,u=r.extensionManager.attributes,f=pa(u,a.node().type.name,a.node().attrs);if(i instanceof fA&&i.node.isBlock)return!a.parentOffset||!Ii(s,a.pos)?!1:(n&&(t&&Rg(e,r.extensionManager.splittableMarks),A.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof CA&&A.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(A.doc,A.mapping.map(a.pos),1,B);if(!B&&!w&&Ii(A.doc,A.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,B=g?[{type:g,attrs:f}]:void 0),w&&(A.split(A.mapping.map(a.pos),1,B),g&&!p&&!a.parentOffset&&a.parent.type!==g)){const Q=A.mapping.map(a.before()),b=A.doc.resolve(Q);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&A.setNodeMarkup(A.mapping.map(a.before()),g)}t&&Rg(e,r.extensionManager.splittableMarks),A.scrollIntoView()}return!0},Xv=t=>({tr:A,state:e,dispatch:n,editor:r})=>{var i;const s=Le(t,e.schema),{$from:a,$to:c}=e.selection,u=e.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 D=a.depth-v;D>=a.depth-3;D-=1)b=Y.from(a.node(D).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));A.replace(L,a.after(-_),new j(b,4-v,0));let U=-1;A.doc.nodesBetween(L,A.doc.content.size,(D,P)=>{if(U>-1)return!1;D.isTextblock&&D.content.size===0&&(U=P+1)}),U>-1&&A.setSelection(CA.near(A.doc.resolve(U))),A.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);A.delete(a.pos,c.pos);const Q=g?[{type:s,attrs:B},{type:g,attrs:w}]:[{type:s,attrs:B}];if(!Ii(A.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:v}=e,{splittableMarks:_}=r.extensionManager,S=v||b.$to.parentOffset&&b.$from.marks();if(A.split(a.pos,2,Q).scrollIntoView(),!S||!n)return!0;const E=S.filter(L=>_.includes(L.type.name));A.ensureMarks(E)}return!0},pu=(t,A)=>{const e=du(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.node.type===(r==null?void 0:r.type)&&ar(t.doc,e.pos)&&t.join(e.pos),!0},gu=(t,A)=>{const e=du(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(e.start).after(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.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:PU,clearNodes:VU,command:GU,createParagraphNear:WU,cut:$U,deleteCurrentNode:JU,deleteNode:XU,deleteRange:YU,deleteSelection:zU,enter:qU,exitCode:ZU,extendMarkRange:Av,first:ev,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:Pv,setNode:Vv,setNodeSelection:Gv,setTextSelection:Wv,sinkListItem:$v,splitBlock:Jv,splitListItem:Xv,toggleList:(t,A,e,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:p,splittableMarks:g}=r.extensionManager,B=Le(t,s.schema),w=Le(A,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=>Ng(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(Ng(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!e||!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),D=E.filter(P=>g.includes(P.type.name));return i.ensureMarks(D),U?!0:u.clearNodes()}).wrapInList(B,n).command(()=>pu(i,B)).command(()=>gu(i,B)).run()},toggleMark:(t,A={},e={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=e,s=Br(t,n.schema);return hu(n,s,A)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,A)},toggleNode:(t,A,e={})=>({state:n,commands:r})=>{const i=Le(t,n.schema),s=Le(A,n.schema);return Rs(n,i,e)?r.setNode(s):r.setNode(i,e)},toggleWrap:(t,A={})=>({state:e,commands:n})=>{const r=Le(t,e.schema);return Rs(e,r,A)?n.lift(r):n.wrapIn(r,A)},undoInputRule:()=>({state:t,dispatch:A})=>{const e=t.plugins;for(let n=0;n<e.length;n+=1){const r=e[n];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(A){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:A})=>{const{selection:e}=t,{empty:n,ranges:r}=e;return n||A&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,A={})=>({tr:e,state:n,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=A,{selection:a}=e,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),e.removeMark(g,B,c)}else p.forEach(g=>{e.removeMark(g.$from.pos,g.$to.pos,c)});return e.removeStoredMark(c),!0},updateAttributes:(t,A={})=>({tr:e,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=Le(t,n.schema)),a==="mark"&&(s=Br(t,n.schema)),r&&e.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(p,g)=>{i&&i===p.type&&e.setNodeMarkup(g,void 0,{...p.attrs,...A}),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);e.addMark(w,Q,s.create({...B.attrs,...A}))}})})}),!0):!1},wrapIn:(t,A={})=>({state:e,dispatch:n})=>{const r=Le(t,e.schema);return BU(r,A)(e,n)},wrapInList:(t,A={})=>({state:e,dispatch:n})=>{const r=Le(t,e.schema);return wU(r,A)(e,n)}});const zv=Ye.create({name:"commands",addCommands(){return{...Yv}}}),qv=Ye.create({name:"editable",addProseMirrorPlugins(){return[new pt({key:new wn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Zv=Ye.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new pt({key:new wn("focusEvents"),props:{handleDOMEvents:{focus:(A,e)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return A.dispatch(n),!1},blur:(A,e)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return A.dispatch(n),!1}}}})]}}),jv=Ye.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:FA.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()]),A=()=>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:A,"Mod-Delete":A,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":A,"Ctrl-Alt-Backspace":A,"Alt-Delete":A,"Alt-d":A,"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,A,e)=>{if(!(t.some(w=>w.docChanged)&&!A.doc.eq(e.doc)))return;const{empty:r,from:i,to:s}=A.selection,a=FA.atStart(A.doc).from,c=FA.atEnd(A.doc).to;if(r||!(i===a&&s===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const p=e.tr,g=ia({state:e,transaction:p}),{commands:B}=new sa({editor:this.editor,state:g});if(B.clearNodes(),!!p.steps.length)return p}})]}}),AI=Ye.create({name:"tabindex",addProseMirrorPlugins(){return[new pt({key:new wn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Ai{constructor(A,e,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=A,this.editor=e,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 A;return(A=this.actualDepth)!==null&&A!==void 0?A:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(A){let e=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}e=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:e,to:n},A)}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 A=this.resolvedPos.start(this.resolvedPos.depth-1),e=this.resolvedPos.doc.resolve(A);return new Ai(e,this.editor)}get before(){let A=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return A.depth!==this.depth&&(A=this.resolvedPos.doc.resolve(this.from-3)),new Ai(A,this.editor)}get after(){let A=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return A.depth!==this.depth&&(A=this.resolvedPos.doc.resolve(this.to+3)),new Ai(A,this.editor)}get children(){const A=[];return this.node.content.forEach((e,n)=>{const r=e.isBlock&&!e.isTextblock,i=this.pos+n+1,s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new Ai(s,this.editor,r,r?e:null);r&&(a.actualDepth=this.depth+1),A.push(new Ai(s,this.editor,r,r?e:null))}),A}get firstChild(){return this.children[0]||null}get lastChild(){const A=this.children;return A[A.length-1]||null}closest(A,e={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===A)if(Object.keys(e).length>0){const i=r.node.attrs,s=Object.keys(e);for(let a=0;a<s.length;a+=1){const c=s[a];if(i[c]!==e[c])break}}else n=r;r=r.parent}return n}querySelector(A,e={}){return this.querySelectorAll(A,e,!0)[0]||null}querySelectorAll(A,e={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(e);return this.children.forEach(s=>{n&&r.length>0||(s.node.type.name===A&&i.every(c=>e[c]===s.node.attrs[c])&&r.push(s),!(n&&r.length>0)&&(r=r.concat(s.querySelectorAll(A,e,n))))}),r}setAttribute(A){const e=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,A).setTextSelection(e.from).run()}}const eI=`.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,A,e){const n=document.querySelector(`style[data-tiptap-style${e?`-${e}`:""}]`);if(n!==null)return n;const r=document.createElement("style");return A&&r.setAttribute("nonce",A),r.setAttribute(`data-tiptap-style${e?`-${e}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let nI=class extends bU{constructor(A={}){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(A),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(eI,this.options.injectNonce))}setOptions(A={}){this.options={...this.options,...A},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(A,e=!0){this.setOptions({editable:A}),e&&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(A,e){const n=Fg(e)?e(A,[...this.state.plugins]):[...this.state.plugins,A],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(A){if(this.isDestroyed)return;const e=typeof A=="string"?`${A}$`:A.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(n)}createExtensionManager(){var A,e;const r=[...this.options.enableCoreExtensions?[qv,RU.configure({blockSeparator:(e=(A=this.options.coreExtensionOptions)===null||A===void 0?void 0:A.clipboardTextSerializer)===null||e===void 0?void 0:e.blockSeparator}),zv,Zv,jv,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 A=Hg(this.options.content,this.schema,this.options.parseOptions),e=Tg(A,this.options.autofocus);this.view=new Gb(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:xi.create({doc:A,selection:e||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(A){this.isCapturingTransaction=!0,A(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(A){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=A;return}A.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const e=this.state.apply(A),n=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:A}),n&&this.emit("selectionUpdate",{editor:this,transaction:A});const r=A.getMeta("focus"),i=A.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:A}),i&&this.emit("blur",{editor:this,event:i.event,transaction:A}),!(!A.docChanged||A.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:A})}getAttributes(A){return kv(this.state,A)}isActive(A,e){const n=typeof A=="string"?A:null,r=typeof A=="string"?e:A;return Dv(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Ov(this.state.doc.content,this.schema)}getText(A){const{blockSeparator:e=`
88
+ }`;function tI(t,A,e){const n=document.querySelector(`style[data-tiptap-style${e?`-${e}`:""}]`);if(n!==null)return n;const r=document.createElement("style");return A&&r.setAttribute("nonce",A),r.setAttribute(`data-tiptap-style${e?`-${e}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}let nI=class extends bU{constructor(A={}){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(A),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(eI,this.options.injectNonce))}setOptions(A={}){this.options={...this.options,...A},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(A,e=!0){this.setOptions({editable:A}),e&&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(A,e){const n=bg(e)?e(A,[...this.state.plugins]):[...this.state.plugins,A],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(A){if(this.isDestroyed)return;const e=typeof A=="string"?`${A}$`:A.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(n)}createExtensionManager(){var A,e;const r=[...this.options.enableCoreExtensions?[qv,RU.configure({blockSeparator:(e=(A=this.options.coreExtensionOptions)===null||A===void 0?void 0:A.clipboardTextSerializer)===null||e===void 0?void 0:e.blockSeparator}),zv,Zv,jv,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 A=kg(this.options.content,this.schema,this.options.parseOptions),e=_g(A,this.options.autofocus);this.view=new Gb(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:xi.create({doc:A,selection:e||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(A){this.isCapturingTransaction=!0,A(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(A){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=A;return}A.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const e=this.state.apply(A),n=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:A}),n&&this.emit("selectionUpdate",{editor:this,transaction:A});const r=A.getMeta("focus"),i=A.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:A}),i&&this.emit("blur",{editor:this,event:i.event,transaction:A}),!(!A.docChanged||A.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:A})}getAttributes(A){return kv(this.state,A)}isActive(A,e){const n=typeof A=="string"?A:null,r=typeof A=="string"?e:A;return Dv(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Ov(this.state.doc.content,this.schema)}getText(A){const{blockSeparator:e=`
89
89
 
90
- `,textSerializers:n={}}=A||{};return Lv(this.state.doc,{blockSeparator:e,textSerializers:{...Sg(this.schema),...n}})}get isEmpty(){return Nv(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 A;return!(!((A=this.view)===null||A===void 0)&&A.docView)}$node(A,e){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(A,e))||null}$nodes(A,e){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(A,e))||null}$pos(A){const e=this.state.doc.resolve(A);return new Ai(e,this)}get $doc(){return this.$pos(0)}};function ei(t){return new aa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=FA(t.getAttributes,void 0,n);if(r===!1||r===null)return null;const{tr:i}=A,s=n[n.length-1],a=n[0];if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),f=u+s.length;if(kg(e.from,e.to,A.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<e.to&&i.delete(f,e.to),u>e.from&&i.delete(e.from+c,u);const g=e.from+c+s.length;i.addMark(e.from+c,g,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function rI(t){return new aa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=FA(t.getAttributes,void 0,n)||{},{tr:i}=A,s=e.from;let a=e.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:A,range:e,match:n})=>{const r=A.doc.resolve(e.from),i=FA(t.getAttributes,void 0,n)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;A.tr.delete(e.from,e.to).setBlockType(e.from,e.from,t.type,i)}})}function Ks(t){return new aa({find:t.find,handler:({state:A,range:e,match:n,chain:r})=>{const i=FA(t.getAttributes,void 0,n)||{},s=A.tr.delete(e.from,e.to),c=s.doc.resolve(e.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}=A,{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(e.from-1).nodeBefore;f&&f.type===t.type&&ar(s.doc,e.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(e.from-1)}})}class sn{constructor(A={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...A},this.name=this.config.name,A.defaultOptions&&Object.keys(A.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=FA(aA(this,"addOptions",{name:this.name}))),this.storage=FA(aA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new sn(A)}configure(A={}){const e=this.extend();return e.options=ca(this.options,A),e.storage=FA(aA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new sn({...this.config,...A});return e.parent=this,this.child=e,e.name=A.name?A.name:e.parent.name,A.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=FA(aA(e,"addOptions",{name:e.name})),e.storage=FA(aA(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:A,mark:e}){const{tr:n}=A.state,r=A.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===e.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===e.name);return c&&n.removeStoredMark(c),n.insertText(" ",r.pos),A.view.dispatch(n),!0}return!1}}let vt=class ch{constructor(A={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...A},this.name=this.config.name,A.defaultOptions&&Object.keys(A.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=FA(aA(this,"addOptions",{name:this.name}))),this.storage=FA(aA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new ch(A)}configure(A={}){const e=this.extend();return e.options=ca(this.options,A),e.storage=FA(aA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new ch({...this.config,...A});return e.parent=this,this.child=e,e.name=A.name?A.name:e.parent.name,A.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=FA(aA(e,"addOptions",{name:e.name})),e.storage=FA(aA(e,"addStorage",{name:e.name,options:e.options})),e}};function ti(t){return new OU({find:t.find,handler:({state:A,range:e,match:n,pasteEvent:r})=>{const i=FA(t.getAttributes,void 0,n,r);if(i===!1||i===null)return null;const{tr:s}=A,a=n[n.length-1],c=n[0];let u=e.to;if(a){const f=c.search(/\S/),p=e.from+c.indexOf(a),g=p+a.length;if(kg(e.from,e.to,A.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<e.to&&s.delete(g,e.to),p>e.from&&s.delete(e.from+f,p),u=e.from+f+a.length,s.addMark(e.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",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:A})=>A.setMark(this.name,t),toggleHighlight:t=>({commands:A})=>A.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ei({find:iI,type:this.type})]},addPasteRules(){return[ti({find:sI,type:this.type})]}}),aI=Ye.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:A})=>this.options.alignments.includes(t)?this.options.types.map(e=>A.updateAttributes(e,{textAlign:t})).every(e=>e):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(A=>t.resetAttributes(A,"textAlign")).every(A=>A)}},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",Fe(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",Fe(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[ei({find:uI,type:this.type}),ei({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",Fe(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)}}}),Rg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ha(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),Kg=/^\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",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:A})=>this.options.keepAttributes?A().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(gI.name,this.editor.getAttributes(Rg.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:Kg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:Kg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Rg.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",Fe(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[ei({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 A;const{languageClassPrefix:e}=this.options,i=[...((A=t.firstElementChild)===null||A===void 0?void 0:A.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:A}){return["pre",Fe(this.options.HTMLAttributes,A),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:A})=>A.setNode(this.name,t),toggleCodeBlock:t=>({commands:A})=>A.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:A}=this.editor.state.selection,e=A.pos===1;return!t||A.parent.type.name!==this.name?!1:e||!A.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:A}=t,{selection:e}=A,{$from:n,empty:r}=e;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={}}=A||{};return Lv(this.state.doc,{blockSeparator:e,textSerializers:{...Tg(this.schema),...n}})}get isEmpty(){return Nv(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 A;return!(!((A=this.view)===null||A===void 0)&&A.docView)}$node(A,e){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(A,e))||null}$nodes(A,e){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(A,e))||null}$pos(A){const e=this.state.doc.resolve(A);return new Ai(e,this)}get $doc(){return this.$pos(0)}};function ei(t){return new aa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=bA(t.getAttributes,void 0,n);if(r===!1||r===null)return null;const{tr:i}=A,s=n[n.length-1],a=n[0];if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),f=u+s.length;if(Dg(e.from,e.to,A.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<e.to&&i.delete(f,e.to),u>e.from&&i.delete(e.from+c,u);const g=e.from+c+s.length;i.addMark(e.from+c,g,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function rI(t){return new aa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=bA(t.getAttributes,void 0,n)||{},{tr:i}=A,s=e.from;let a=e.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:A,range:e,match:n})=>{const r=A.doc.resolve(e.from),i=bA(t.getAttributes,void 0,n)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),t.type))return null;A.tr.delete(e.from,e.to).setBlockType(e.from,e.from,t.type,i)}})}function Ks(t){return new aa({find:t.find,handler:({state:A,range:e,match:n,chain:r})=>{const i=bA(t.getAttributes,void 0,n)||{},s=A.tr.delete(e.from,e.to),c=s.doc.resolve(e.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}=A,{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(e.from-1).nodeBefore;f&&f.type===t.type&&ar(s.doc,e.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(e.from-1)}})}class sn{constructor(A={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...A},this.name=this.config.name,A.defaultOptions&&Object.keys(A.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=bA(aA(this,"addOptions",{name:this.name}))),this.storage=bA(aA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new sn(A)}configure(A={}){const e=this.extend();return e.options=ca(this.options,A),e.storage=bA(aA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new sn({...this.config,...A});return e.parent=this,this.child=e,e.name=A.name?A.name:e.parent.name,A.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=bA(aA(e,"addOptions",{name:e.name})),e.storage=bA(aA(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:A,mark:e}){const{tr:n}=A.state,r=A.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===e.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===e.name);return c&&n.removeStoredMark(c),n.insertText(" ",r.pos),A.view.dispatch(n),!0}return!1}}let vt=class ch{constructor(A={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...A},this.name=this.config.name,A.defaultOptions&&Object.keys(A.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=bA(aA(this,"addOptions",{name:this.name}))),this.storage=bA(aA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new ch(A)}configure(A={}){const e=this.extend();return e.options=ca(this.options,A),e.storage=bA(aA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new ch({...this.config,...A});return e.parent=this,this.child=e,e.name=A.name?A.name:e.parent.name,A.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=bA(aA(e,"addOptions",{name:e.name})),e.storage=bA(aA(e,"addStorage",{name:e.name,options:e.options})),e}};function ti(t){return new OU({find:t.find,handler:({state:A,range:e,match:n,pasteEvent:r})=>{const i=bA(t.getAttributes,void 0,n,r);if(i===!1||i===null)return null;const{tr:s}=A,a=n[n.length-1],c=n[0];let u=e.to;if(a){const f=c.search(/\S/),p=e.from+c.indexOf(a),g=p+a.length;if(Dg(e.from,e.to,A.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<e.to&&s.delete(g,e.to),p>e.from&&s.delete(e.from+f,p),u=e.from+f+a.length,s.addMark(e.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",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:A})=>A.setMark(this.name,t),toggleHighlight:t=>({commands:A})=>A.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ei({find:iI,type:this.type})]},addPasteRules(){return[ti({find:sI,type:this.type})]}}),aI=Ye.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:A})=>this.options.alignments.includes(t)?this.options.types.map(e=>A.updateAttributes(e,{textAlign:t})).every(e=>e):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(A=>t.resetAttributes(A,"textAlign")).every(A=>A)}},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",Fe(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",Fe(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[ei({find:uI,type:this.type}),ei({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",Fe(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",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ha(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),Pg=/^\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",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:A})=>this.options.keepAttributes?A().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:Pg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:Pg,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",Fe(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[ei({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 A;const{languageClassPrefix:e}=this.options,i=[...((A=t.firstElementChild)===null||A===void 0?void 0:A.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:A}){return["pre",Fe(this.options.HTMLAttributes,A),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:A})=>A.setNode(this.name,t),toggleCodeBlock:t=>({commands:A})=>A.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:A}=this.editor.state.selection,e=A.pos===1;return!t||A.parent.type.name!==this.name?!1:e||!A.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:A}=t,{selection:e}=A,{$from:n,empty:r}=e;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
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:A}=t,{selection:e,doc:n}=A,{$from:r,empty:i}=e;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,A)=>{if(!A.clipboardData||this.editor.isActive(this.type.name))return!1;const e=A.clipboardData.getData("text/plain"),n=A.clipboardData.getData("vscode-editor-data"),r=n?JSON.parse(n):void 0,i=r==null?void 0:r.mode;if(!e||!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(CA.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(e.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(A){return new UI(A,t)}})}class UI{constructor(A,e){var n;this.editorView=A,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=e.width)!==null&&n!==void 0?n:1,this.color=e.color===!1?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=s=>{this[r](s)};return A.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:A,handler:e})=>this.editorView.dom.removeEventListener(A,e))}update(A,e){this.cursorPos!=null&&e.doc!=A.state.doc&&(this.cursorPos>A.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(A){A!=this.cursorPos&&(this.cursorPos=A,A==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let A=this.editorView.state.doc.resolve(this.cursorPos),e=!A.parent.inlineContent,n;if(e){let a=A.nodeBefore,c=A.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",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e);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(A){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),A)}dragover(A){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:A.clientX,top:A.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,e,A):r;if(e&&!i){let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Gh(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(A){(A.target==this.editorView.dom||!this.editorView.dom.contains(A.relatedTarget))&&this.setCursor(null)}}const vI=Ye.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[bI(this.options)]}});class ge extends QA{constructor(A){super(A,A)}map(A,e){let n=A.resolve(e.map(this.head));return ge.valid(n)?new ge(n):QA.near(n)}content(){return j.empty}eq(A){return A instanceof ge&&A.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ge(A.resolve(e.pos))}getBookmark(){return new Bu(this.anchor)}static valid(A){let e=A.parent;if(e.isTextblock||!II(A)||!SI(A))return!1;let n=e.type.spec.allowGapCursor;if(n!=null)return n;let r=e.contentMatchAt(A.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(A,e,n=!1){A:for(;;){if(!n&&ge.valid(A))return A;let r=A.pos,i=null;for(let s=A.depth;;s--){let a=A.node(s);if(e>0?A.indexAfter(s)<a.childCount:A.index(s)>0){i=a.child(e>0?A.indexAfter(s):A.index(s)-1);break}else if(s==0)return null;r+=e;let c=A.doc.resolve(r);if(ge.valid(c))return c}for(;;){let s=e>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!fA.isSelectable(i)){A=A.doc.resolve(r+i.nodeSize*e),n=!1;continue A}break}i=s,r+=e;let a=A.doc.resolve(r);if(ge.valid(a))return a}return null}}}ge.prototype.visible=!1,ge.findFrom=ge.findGapCursorFrom,QA.jsonID("gapcursor",ge);class Bu{constructor(A){this.pos=A}map(A){return new Bu(A.map(this.pos))}resolve(A){let e=A.resolve(this.pos);return ge.valid(e)?new ge(e):QA.near(e)}}function II(t){for(let A=t.depth;A>=0;A--){let e=t.index(A),n=t.node(A);if(e==0){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(e-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 A=t.depth;A>=0;A--){let e=t.indexAfter(A),n=t.node(A);if(e==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(e);;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,A,e){return A.pos==e.pos&&ge.valid(e)?new ge(e):null},handleClick:xI,handleKeyDown:_I,handleDOMEvents:{beforeinput:OI}}})}const _I=pg({ArrowLeft:ga("horiz",-1),ArrowRight:ga("horiz",1),ArrowUp:ga("vert",-1),ArrowDown:ga("vert",1)});function ga(t,A){const e=t=="vert"?A>0?"down":"up":A>0?"right":"left";return function(n,r,i){let s=n.selection,a=A>0?s.$to:s.$from,c=s.empty;if(s instanceof CA){if(!i.endOfTextblock(e)||a.depth==0)return!1;c=!1,a=n.doc.resolve(A>0?a.after():a.before())}let u=ge.findGapCursorFrom(a,A,c);return u?(r&&r(n.tr.setSelection(new ge(u))),!0):!1}}function xI(t,A,e){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(A);if(!ge.valid(n))return!1;let r=t.posAtCoords({left:e.clientX,top:e.clientY});return r&&r.inside>-1&&fA.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ge(n))),!0)}function OI(t,A){if(A.inputType!="insertCompositionText"||!(t.state.selection instanceof ge))return!1;let{$from:e}=t.state.selection,n=e.parent.contentMatchAt(e.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(e.pos,e.pos,new j(r,0,0));return i.setSelection(CA.near(i.doc.resolve(e.pos+1))),t.dispatch(i),!1}function LI(t){if(!(t.selection instanceof ge))return null;let A=document.createElement("div");return A.className="ProseMirror-gapcursor",Ie.create(t.doc,[Kt.widget(t.selection.head,A,{key:"gapcursor"})])}const HI=Ye.create({name:"gapCursor",addProseMirrorPlugins(){return[TI()]},extendNodeSchema(t){var A;const e={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(A=FA(aA(t,"allowGapCursor",e)))!==null&&A!==void 0?A: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",Fe(this.options.HTMLAttributes,t)]},renderText(){return`
94
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:A,state:e,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=e;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 A().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:A}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Fe(this.options.HTMLAttributes,A),0]},addCommands(){return{setHeading:t=>({commands:A})=>this.options.levels.includes(t.level)?A.setNode(this.name,t):!1,toggleHeading:t=>({commands:A})=>this.options.levels.includes(t.level)?A.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,A)=>({...t,[`Mod-Alt-${A}`]:()=>this.editor.commands.toggleHeading({level:A})}),{})},addInputRules(){return this.options.levels.map(t=>mu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ma=200,He=function(){};He.prototype.append=function(A){return A.length?(A=He.from(A),!this.length&&A||A.length<ma&&this.leafAppend(A)||this.length<ma&&A.leafPrepend(this)||this.appendInner(A)):this},He.prototype.prepend=function(A){return A.length?He.from(A).append(this):this},He.prototype.appendInner=function(A){return new NI(this,A)},He.prototype.slice=function(A,e){return A===void 0&&(A=0),e===void 0&&(e=this.length),A>=e?He.empty:this.sliceInner(Math.max(0,A),Math.min(this.length,e))},He.prototype.get=function(A){if(!(A<0||A>=this.length))return this.getInner(A)},He.prototype.forEach=function(A,e,n){e===void 0&&(e=0),n===void 0&&(n=this.length),e<=n?this.forEachInner(A,e,n,0):this.forEachInvertedInner(A,e,n,0)},He.prototype.map=function(A,e,n){e===void 0&&(e=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,s){return r.push(A(i,s))},e,n),r},He.from=function(A){return A instanceof He?A:A&&A.length?new Pg(A):He.empty};var Pg=function(t){function A(n){t.call(this),this.values=n}t&&(A.__proto__=t),A.prototype=Object.create(t&&t.prototype),A.prototype.constructor=A;var e={length:{configurable:!0},depth:{configurable:!0}};return A.prototype.flatten=function(){return this.values},A.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new A(this.values.slice(r,i))},A.prototype.getInner=function(r){return this.values[r]},A.prototype.forEachInner=function(r,i,s,a){for(var c=i;c<s;c++)if(r(this.values[c],a+c)===!1)return!1},A.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},A.prototype.leafAppend=function(r){if(this.length+r.length<=ma)return new A(this.values.concat(r.flatten()))},A.prototype.leafPrepend=function(r){if(this.length+r.length<=ma)return new A(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(A.prototype,e),A}(He);He.empty=new Pg([]);var NI=function(t){function A(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(A.__proto__=t),A.prototype=Object.create(t&&t.prototype),A.prototype.constructor=A,A.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},A.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},A.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},A.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},A.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))},A.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new A(this.left,r)},A.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new A(r,this.right)},A.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new A(this.left,new A(this.right,n)):new A(this,n)},A}(He);const MI=500;class on{constructor(A,e){this.items=A,this.eventCount=e}popEvent(A,e){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;e&&(r=this.remapping(n,this.items.length),i=r.maps.length);let s=A.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(A,e,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<A.steps.length;f++){let p=A.steps[f].invert(A.docs[f]),g=new Qn(A.mapping.maps[f],p,e),B;(B=c&&c.merge(g))&&(g=B,f?i.pop():a=a.slice(0,a.length-1)),i.push(g),e&&(s++,e=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(A,e){let n=new bi;return this.items.forEach((r,i)=>{let s=r.mirrorOffset!=null&&i-r.mirrorOffset>=A?n.maps.length-r.mirrorOffset:void 0;n.appendMap(r.map,s)},A,e),n}addMaps(A){return this.eventCount==0?this:new on(this.items.append(A.map(e=>new Qn(e))),this.eventCount)}rebased(A,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),i=A.mapping,s=A.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},r);let c=e;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=A.steps[B].invert(A.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=e;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 A=0;return this.items.forEach(e=>{e.step||A++}),A}compress(A=this.items.length){let e=this.remapping(0,A),n=e.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=A)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(e.slice(n)),u=c&&c.getMap();if(n--,u&&e.appendMap(u,n),c){let f=s.selection&&s.selection.map(e.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(He.from(r.reverse()),i)}}on.empty=new on(He.empty,0);function RI(t,A){let e;return t.forEach((n,r)=>{if(n.selection&&A--==0)return e=r,!1}),t.slice(e)}class Qn{constructor(A,e,n,r){this.map=A,this.step=e,this.selection=n,this.mirrorOffset=r}merge(A){if(this.step&&A.step&&!A.selection){let e=A.step.merge(this.step);if(e)return new Qn(e.getMap().invert(),e,this.selection)}}}class wr{constructor(A,e,n,r,i){this.done=A,this.undone=e,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const KI=20;function PI(t,A,e,n){let r=e.getMeta(ni),i;if(r)return r.historyState;e.getMeta(WI)&&(t=new wr(t.done,t.undone,null,0,-1));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return t;if(s&&s.getMeta(ni))return s.getMeta(ni).redo?new wr(t.done.addTransform(e,void 0,n,Ba(A)),t.undone,Vg(e.mapping.maps[e.steps.length-1]),t.prevTime,t.prevComposition):new wr(t.done,t.undone.addTransform(e,void 0,n,Ba(A)),null,t.prevTime,t.prevComposition);if(e.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=e.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(e.time||0)-n.newGroupDelay||!VI(e,t.prevRanges)),u=s?wu(t.prevRanges,e.mapping):Vg(e.mapping.maps[e.steps.length-1]);return new wr(t.done.addTransform(e,c?A.selection.getBookmark():void 0,n,Ba(A)),on.empty,u,e.time,a??t.prevComposition)}else return(i=e.getMeta("rebased"))?new wr(t.done.rebased(e,i),t.undone.rebased(e,i),wu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition):new wr(t.done.addMaps(e.mapping.maps),t.undone.addMaps(e.mapping.maps),wu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition)}function VI(t,A){if(!A)return!1;if(!t.docChanged)return!0;let e=!1;return t.mapping.maps[0].forEach((n,r)=>{for(let i=0;i<A.length;i+=2)n<=A[i+1]&&r>=A[i]&&(e=!0)}),e}function Vg(t){let A=[];return t.forEach((e,n,r,i)=>A.push(r,i)),A}function wu(t,A){if(!t)return null;let e=[];for(let n=0;n<t.length;n+=2){let r=A.map(t[n],1),i=A.map(t[n+1],-1);r<=i&&e.push(r,i)}return e}function GI(t,A,e){let n=Ba(A),r=ni.get(A).spec.config,i=(e?t.undone:t.done).popEvent(A,n);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(e?t.done:t.undone).addTransform(i.transform,A.selection.getBookmark(),r,n),c=new wr(e?a:i.remaining,e?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(ni,{redo:e,historyState:c})}let Cu=!1,Gg=null;function Ba(t){let A=t.plugins;if(Gg!=A){Cu=!1,Gg=A;for(let e=0;e<A.length;e++)if(A[e].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(A,e,n){return PI(e,n,A,t)}},config:t,props:{handleDOMEvents:{beforeinput(A,e){let n=e.inputType,r=n=="historyUndo"?$g:n=="historyRedo"?Jg:null;return r?(e.preventDefault(),r(A.state,A.dispatch)):!1}}}})}function Wg(t,A){return(e,n)=>{let r=ni.getState(e);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(n){let i=GI(r,e,t);i&&n(A?i.scrollIntoView():i)}return!0}}const $g=Wg(!1,!0),Jg=Wg(!0,!0),JI=Ye.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:A})=>$g(t,A),redo:()=>({state:t,dispatch:A})=>Jg(t,A)}},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",Fe(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:A})=>{const{$to:e}=A.selection,n=t();return e.parentOffset===0?n.insertContentAt(Math.max(e.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(CA.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(fA.create(r.doc,a.pos)):r.setSelection(CA.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(CA.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",Fe(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[ei({find:YI,type:this.type}),ei({find:qI,type:this.type})]},addPasteRules(){return[ti({find:zI,type:this.type}),ti({find:ZI,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",Fe(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)}}}),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",Fe(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)}}}),Xg=sn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ha(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),Yg=/^(\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:A,...e}=t;return A===1?["ol",Fe(this.options.HTMLAttributes,e),0]:["ol",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:A})=>this.options.keepAttributes?A().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(e1.name,this.editor.getAttributes(Xg.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:Yg,type:this.type,getAttributes:A=>({start:+A[1]}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:Yg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:A=>({start:+A[1],...this.editor.getAttributes(Xg.name)}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[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",Fe(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",Fe(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[ei({find:r1,type:this.type})]},addPasteRules(){return[ti({find:i1,type:this.type})]}}),o1=vt.create({name:"text",group:"inline"}),a1=Ye.create({name:"starterKit",addExtensions(){var t,A,e,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((A=this.options)===null||A===void 0?void 0:A.bold)),this.options.bulletList!==!1&&_.push(mI.configure((e=this.options)===null||e===void 0?void 0:e.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(DI.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(A1.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",zg="tippy-content",c1="tippy-backdrop",qg="tippy-arrow",Zg="tippy-svg-arrow",ri={passive:!0,capture:!0},jg=function(){return document.body};function u1(t,A){return{}.hasOwnProperty.call(t,A)}function yu(t,A,e){if(Array.isArray(t)){var n=t[A];return n??(Array.isArray(e)?e[A]:e)}return t}function Eu(t,A){var e={}.toString.call(t);return e.indexOf("[object")===0&&e.indexOf(A+"]")>-1}function Am(t,A){return typeof t=="function"?t.apply(void 0,A):t}function em(t,A){if(A===0)return t;var e;return function(n){clearTimeout(e),e=setTimeout(function(){t(n)},A)}}function f1(t,A){var e=Object.assign({},t);return A.forEach(function(n){delete e[n]}),e}function d1(t){return t.split(/\s+/).filter(Boolean)}function Ri(t){return[].concat(t)}function tm(t,A){t.indexOf(A)===-1&&t.push(A)}function h1(t){return t.filter(function(A,e){return t.indexOf(A)===e})}function p1(t){return t.split("-")[0]}function wa(t){return[].slice.call(t)}function nm(t){return Object.keys(t).reduce(function(A,e){return t[e]!==void 0&&(A[e]=t[e]),A},{})}function Ps(){return document.createElement("div")}function Vs(t){return["Element","Fragment"].some(function(A){return Eu(t,A)})}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 Vs(t)?[t]:g1(t)?wa(t):Array.isArray(t)?t:wa(document.querySelectorAll(t))}function Qu(t,A){t.forEach(function(e){e&&(e.style.transitionDuration=A+"ms")})}function rm(t,A){t.forEach(function(e){e&&e.setAttribute("data-state",A)})}function C1(t){var A,e=Ri(t),n=e[0];return n!=null&&(A=n.ownerDocument)!=null&&A.body?n.ownerDocument:document}function y1(t,A){var e=A.clientX,n=A.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-e+B>c,_=e-i.right-w>c;return Q||b||v||_})}function Fu(t,A,e){var n=A+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,e)})}function im(t,A){for(var e=A;e;){var n;if(t.contains(e))return!0;e=e.getRootNode==null||(n=e.getRootNode())==null?void 0:n.host}return!1}var Fn={isTouch:!1},sm=0;function E1(){Fn.isTouch||(Fn.isTouch=!0,window.performance&&document.addEventListener("mousemove",om))}function om(){var t=performance.now();t-sm<20&&(Fn.isTouch=!1,document.removeEventListener("mousemove",om)),sm=t}function Q1(){var t=document.activeElement;if(B1(t)){var A=t._tippy;t.blur&&!A.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 A=t==="destroy"?"n already-":" ";return[t+"() was called on a"+A+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function am(t){var A=/[ \t]{2,}/g,e=/^[ \t]*/gm;return t.replace(A," ").replace(e,"").trim()}function v1(t){return am(`
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(A){return new UI(A,t)}})}class UI{constructor(A,e){var n;this.editorView=A,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=e.width)!==null&&n!==void 0?n:1,this.color=e.color===!1?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=s=>{this[r](s)};return A.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:A,handler:e})=>this.editorView.dom.removeEventListener(A,e))}update(A,e){this.cursorPos!=null&&e.doc!=A.state.doc&&(this.cursorPos>A.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(A){A!=this.cursorPos&&(this.cursorPos=A,A==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let A=this.editorView.state.doc.resolve(this.cursorPos),e=!A.parent.inlineContent,n;if(e){let a=A.nodeBefore,c=A.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",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e);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(A){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),A)}dragover(A){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:A.clientX,top:A.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,e,A):r;if(e&&!i){let s=e.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(A){(A.target==this.editorView.dom||!this.editorView.dom.contains(A.relatedTarget))&&this.setCursor(null)}}const vI=Ye.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[bI(this.options)]}});class me extends FA{constructor(A){super(A,A)}map(A,e){let n=A.resolve(e.map(this.head));return me.valid(n)?new me(n):FA.near(n)}content(){return j.empty}eq(A){return A instanceof me&&A.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(A,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new me(A.resolve(e.pos))}getBookmark(){return new Bu(this.anchor)}static valid(A){let e=A.parent;if(e.isTextblock||!II(A)||!SI(A))return!1;let n=e.type.spec.allowGapCursor;if(n!=null)return n;let r=e.contentMatchAt(A.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(A,e,n=!1){A:for(;;){if(!n&&me.valid(A))return A;let r=A.pos,i=null;for(let s=A.depth;;s--){let a=A.node(s);if(e>0?A.indexAfter(s)<a.childCount:A.index(s)>0){i=a.child(e>0?A.indexAfter(s):A.index(s)-1);break}else if(s==0)return null;r+=e;let c=A.doc.resolve(r);if(me.valid(c))return c}for(;;){let s=e>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!fA.isSelectable(i)){A=A.doc.resolve(r+i.nodeSize*e),n=!1;continue A}break}i=s,r+=e;let a=A.doc.resolve(r);if(me.valid(a))return a}return null}}}me.prototype.visible=!1,me.findFrom=me.findGapCursorFrom,FA.jsonID("gapcursor",me);class Bu{constructor(A){this.pos=A}map(A){return new Bu(A.map(this.pos))}resolve(A){let e=A.resolve(this.pos);return me.valid(e)?new me(e):FA.near(e)}}function II(t){for(let A=t.depth;A>=0;A--){let e=t.index(A),n=t.node(A);if(e==0){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(e-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 A=t.depth;A>=0;A--){let e=t.indexAfter(A),n=t.node(A);if(e==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let r=n.child(e);;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,A,e){return A.pos==e.pos&&me.valid(e)?new me(e):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,A){const e=t=="vert"?A>0?"down":"up":A>0?"right":"left";return function(n,r,i){let s=n.selection,a=A>0?s.$to:s.$from,c=s.empty;if(s instanceof CA){if(!i.endOfTextblock(e)||a.depth==0)return!1;c=!1,a=n.doc.resolve(A>0?a.after():a.before())}let u=me.findGapCursorFrom(a,A,c);return u?(r&&r(n.tr.setSelection(new me(u))),!0):!1}}function xI(t,A,e){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(A);if(!me.valid(n))return!1;let r=t.posAtCoords({left:e.clientX,top:e.clientY});return r&&r.inside>-1&&fA.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new me(n))),!0)}function OI(t,A){if(A.inputType!="insertCompositionText"||!(t.state.selection instanceof me))return!1;let{$from:e}=t.state.selection,n=e.parent.contentMatchAt(e.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(e.pos,e.pos,new j(r,0,0));return i.setSelection(CA.near(i.doc.resolve(e.pos+1))),t.dispatch(i),!1}function LI(t){if(!(t.selection instanceof me))return null;let A=document.createElement("div");return A.className="ProseMirror-gapcursor",Ie.create(t.doc,[Kt.widget(t.selection.head,A,{key:"gapcursor"})])}const HI=Ye.create({name:"gapCursor",addProseMirrorPlugins(){return[TI()]},extendNodeSchema(t){var A;const e={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(A=bA(aA(t,"allowGapCursor",e)))!==null&&A!==void 0?A: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",Fe(this.options.HTMLAttributes,t)]},renderText(){return`
94
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:A,state:e,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=e;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 A().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:A}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Fe(this.options.HTMLAttributes,A),0]},addCommands(){return{setHeading:t=>({commands:A})=>this.options.levels.includes(t.level)?A.setNode(this.name,t):!1,toggleHeading:t=>({commands:A})=>this.options.levels.includes(t.level)?A.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,A)=>({...t,[`Mod-Alt-${A}`]:()=>this.editor.commands.toggleHeading({level:A})}),{})},addInputRules(){return this.options.levels.map(t=>mu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ma=200,He=function(){};He.prototype.append=function(A){return A.length?(A=He.from(A),!this.length&&A||A.length<ma&&this.leafAppend(A)||this.length<ma&&A.leafPrepend(this)||this.appendInner(A)):this},He.prototype.prepend=function(A){return A.length?He.from(A).append(this):this},He.prototype.appendInner=function(A){return new NI(this,A)},He.prototype.slice=function(A,e){return A===void 0&&(A=0),e===void 0&&(e=this.length),A>=e?He.empty:this.sliceInner(Math.max(0,A),Math.min(this.length,e))},He.prototype.get=function(A){if(!(A<0||A>=this.length))return this.getInner(A)},He.prototype.forEach=function(A,e,n){e===void 0&&(e=0),n===void 0&&(n=this.length),e<=n?this.forEachInner(A,e,n,0):this.forEachInvertedInner(A,e,n,0)},He.prototype.map=function(A,e,n){e===void 0&&(e=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(i,s){return r.push(A(i,s))},e,n),r},He.from=function(A){return A instanceof He?A:A&&A.length?new Vg(A):He.empty};var Vg=function(t){function A(n){t.call(this),this.values=n}t&&(A.__proto__=t),A.prototype=Object.create(t&&t.prototype),A.prototype.constructor=A;var e={length:{configurable:!0},depth:{configurable:!0}};return A.prototype.flatten=function(){return this.values},A.prototype.sliceInner=function(r,i){return r==0&&i==this.length?this:new A(this.values.slice(r,i))},A.prototype.getInner=function(r){return this.values[r]},A.prototype.forEachInner=function(r,i,s,a){for(var c=i;c<s;c++)if(r(this.values[c],a+c)===!1)return!1},A.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},A.prototype.leafAppend=function(r){if(this.length+r.length<=ma)return new A(this.values.concat(r.flatten()))},A.prototype.leafPrepend=function(r){if(this.length+r.length<=ma)return new A(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(A.prototype,e),A}(He);He.empty=new Vg([]);var NI=function(t){function A(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(A.__proto__=t),A.prototype=Object.create(t&&t.prototype),A.prototype.constructor=A,A.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},A.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},A.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},A.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},A.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))},A.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new A(this.left,r)},A.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new A(r,this.right)},A.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new A(this.left,new A(this.right,n)):new A(this,n)},A}(He);const MI=500;class on{constructor(A,e){this.items=A,this.eventCount=e}popEvent(A,e){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;e&&(r=this.remapping(n,this.items.length),i=r.maps.length);let s=A.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(A,e,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<A.steps.length;f++){let p=A.steps[f].invert(A.docs[f]),g=new Qn(A.mapping.maps[f],p,e),B;(B=c&&c.merge(g))&&(g=B,f?i.pop():a=a.slice(0,a.length-1)),i.push(g),e&&(s++,e=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(A,e){let n=new bi;return this.items.forEach((r,i)=>{let s=r.mirrorOffset!=null&&i-r.mirrorOffset>=A?n.maps.length-r.mirrorOffset:void 0;n.appendMap(r.map,s)},A,e),n}addMaps(A){return this.eventCount==0?this:new on(this.items.append(A.map(e=>new Qn(e))),this.eventCount)}rebased(A,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),i=A.mapping,s=A.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},r);let c=e;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=A.steps[B].invert(A.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=e;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 A=0;return this.items.forEach(e=>{e.step||A++}),A}compress(A=this.items.length){let e=this.remapping(0,A),n=e.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=A)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(e.slice(n)),u=c&&c.getMap();if(n--,u&&e.appendMap(u,n),c){let f=s.selection&&s.selection.map(e.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(He.from(r.reverse()),i)}}on.empty=new on(He.empty,0);function RI(t,A){let e;return t.forEach((n,r)=>{if(n.selection&&A--==0)return e=r,!1}),t.slice(e)}class Qn{constructor(A,e,n,r){this.map=A,this.step=e,this.selection=n,this.mirrorOffset=r}merge(A){if(this.step&&A.step&&!A.selection){let e=A.step.merge(this.step);if(e)return new Qn(e.getMap().invert(),e,this.selection)}}}class wr{constructor(A,e,n,r,i){this.done=A,this.undone=e,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const KI=20;function PI(t,A,e,n){let r=e.getMeta(ni),i;if(r)return r.historyState;e.getMeta(WI)&&(t=new wr(t.done,t.undone,null,0,-1));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return t;if(s&&s.getMeta(ni))return s.getMeta(ni).redo?new wr(t.done.addTransform(e,void 0,n,Ba(A)),t.undone,Gg(e.mapping.maps[e.steps.length-1]),t.prevTime,t.prevComposition):new wr(t.done,t.undone.addTransform(e,void 0,n,Ba(A)),null,t.prevTime,t.prevComposition);if(e.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=e.getMeta("composition"),c=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(e.time||0)-n.newGroupDelay||!VI(e,t.prevRanges)),u=s?wu(t.prevRanges,e.mapping):Gg(e.mapping.maps[e.steps.length-1]);return new wr(t.done.addTransform(e,c?A.selection.getBookmark():void 0,n,Ba(A)),on.empty,u,e.time,a??t.prevComposition)}else return(i=e.getMeta("rebased"))?new wr(t.done.rebased(e,i),t.undone.rebased(e,i),wu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition):new wr(t.done.addMaps(e.mapping.maps),t.undone.addMaps(e.mapping.maps),wu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition)}function VI(t,A){if(!A)return!1;if(!t.docChanged)return!0;let e=!1;return t.mapping.maps[0].forEach((n,r)=>{for(let i=0;i<A.length;i+=2)n<=A[i+1]&&r>=A[i]&&(e=!0)}),e}function Gg(t){let A=[];return t.forEach((e,n,r,i)=>A.push(r,i)),A}function wu(t,A){if(!t)return null;let e=[];for(let n=0;n<t.length;n+=2){let r=A.map(t[n],1),i=A.map(t[n+1],-1);r<=i&&e.push(r,i)}return e}function GI(t,A,e){let n=Ba(A),r=ni.get(A).spec.config,i=(e?t.undone:t.done).popEvent(A,n);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(e?t.done:t.undone).addTransform(i.transform,A.selection.getBookmark(),r,n),c=new wr(e?a:i.remaining,e?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(ni,{redo:e,historyState:c})}let Cu=!1,Wg=null;function Ba(t){let A=t.plugins;if(Wg!=A){Cu=!1,Wg=A;for(let e=0;e<A.length;e++)if(A[e].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(A,e,n){return PI(e,n,A,t)}},config:t,props:{handleDOMEvents:{beforeinput(A,e){let n=e.inputType,r=n=="historyUndo"?Jg:n=="historyRedo"?Xg:null;return r?(e.preventDefault(),r(A.state,A.dispatch)):!1}}}})}function $g(t,A){return(e,n)=>{let r=ni.getState(e);if(!r||(t?r.undone:r.done).eventCount==0)return!1;if(n){let i=GI(r,e,t);i&&n(A?i.scrollIntoView():i)}return!0}}const Jg=$g(!1,!0),Xg=$g(!0,!0),JI=Ye.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:A})=>Jg(t,A),redo:()=>({state:t,dispatch:A})=>Xg(t,A)}},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",Fe(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:A})=>{const{$to:e}=A.selection,n=t();return e.parentOffset===0?n.insertContentAt(Math.max(e.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(CA.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(fA.create(r.doc,a.pos)):r.setSelection(CA.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(CA.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",Fe(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[ei({find:YI,type:this.type}),ei({find:qI,type:this.type})]},addPasteRules(){return[ti({find:zI,type:this.type}),ti({find:ZI,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",Fe(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)}}}),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",Fe(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",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ha(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.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:A,...e}=t;return A===1?["ol",Fe(this.options.HTMLAttributes,e),0]:["ol",Fe(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:A})=>this.options.keepAttributes?A().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(e1.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:A=>({start:+A[1]}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ks({find:zg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:A=>({start:+A[1],...this.editor.getAttributes(Yg.name)}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[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",Fe(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",Fe(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[ei({find:r1,type:this.type})]},addPasteRules(){return[ti({find:i1,type:this.type})]}}),o1=vt.create({name:"text",group:"inline"}),a1=Ye.create({name:"starterKit",addExtensions(){var t,A,e,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((A=this.options)===null||A===void 0?void 0:A.bold)),this.options.bulletList!==!1&&_.push(mI.configure((e=this.options)===null||e===void 0?void 0:e.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(DI.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(A1.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},Am=function(){return document.body};function u1(t,A){return{}.hasOwnProperty.call(t,A)}function yu(t,A,e){if(Array.isArray(t)){var n=t[A];return n??(Array.isArray(e)?e[A]:e)}return t}function Eu(t,A){var e={}.toString.call(t);return e.indexOf("[object")===0&&e.indexOf(A+"]")>-1}function em(t,A){return typeof t=="function"?t.apply(void 0,A):t}function tm(t,A){if(A===0)return t;var e;return function(n){clearTimeout(e),e=setTimeout(function(){t(n)},A)}}function f1(t,A){var e=Object.assign({},t);return A.forEach(function(n){delete e[n]}),e}function d1(t){return t.split(/\s+/).filter(Boolean)}function Ri(t){return[].concat(t)}function nm(t,A){t.indexOf(A)===-1&&t.push(A)}function h1(t){return t.filter(function(A,e){return t.indexOf(A)===e})}function p1(t){return t.split("-")[0]}function wa(t){return[].slice.call(t)}function rm(t){return Object.keys(t).reduce(function(A,e){return t[e]!==void 0&&(A[e]=t[e]),A},{})}function Ps(){return document.createElement("div")}function Vs(t){return["Element","Fragment"].some(function(A){return Eu(t,A)})}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 Vs(t)?[t]:g1(t)?wa(t):Array.isArray(t)?t:wa(document.querySelectorAll(t))}function Qu(t,A){t.forEach(function(e){e&&(e.style.transitionDuration=A+"ms")})}function im(t,A){t.forEach(function(e){e&&e.setAttribute("data-state",A)})}function C1(t){var A,e=Ri(t),n=e[0];return n!=null&&(A=n.ownerDocument)!=null&&A.body?n.ownerDocument:document}function y1(t,A){var e=A.clientX,n=A.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-e+B>c,_=e-i.right-w>c;return Q||b||v||_})}function Fu(t,A,e){var n=A+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,e)})}function sm(t,A){for(var e=A;e;){var n;if(t.contains(e))return!0;e=e.getRootNode==null||(n=e.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 A=t._tippy;t.blur&&!A.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 A=t==="destroy"?"n already-":" ";return[t+"() was called on a"+A+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function lm(t){var A=/[ \t]{2,}/g,e=/^[ \t]*/gm;return t.replace(A," ").replace(e,"").trim()}function v1(t){return lm(`
95
95
  %ctippy.js
96
96
 
97
- %c`+am(t)+`
97
+ %c`+lm(t)+`
98
98
 
99
99
  %c👷‍ This is a development-only message. It will be removed in production.
100
- `)}function lm(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 Nn(t,A){if(t&&!Gs.has(A)){var e;Gs.add(A),(e=console).warn.apply(e,lm(A))}}function bu(t,A){if(t&&!Gs.has(A)){var e;Gs.add(A),(e=console).error.apply(e,lm(A))}}function S1(t){var A=!t,e=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;bu(A,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bu(e,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var cm={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:jg,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},cm,T1),_1=Object.keys(It),x1=function(A){process.env.NODE_ENV!=="production"&&dm(A,[]);var e=Object.keys(A);e.forEach(function(n){It[n]=A[n]})};function um(t){var A=t.plugins||[],e=A.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,e)}function O1(t,A){var e=A?Object.keys(um(Object.assign({},It,{plugins:A}))):_1,n=e.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 fm(t,A){var e=Object.assign({},A,{content:Am(A.content,[t])},A.ignoreAttributes?{}:O1(t,A.plugins));return e.aria=Object.assign({},It.aria,e.aria),e.aria={expanded:e.aria.expanded==="auto"?A.interactive:e.aria.expanded,content:e.aria.content==="auto"?A.interactive?null:"describedby":e.aria.content},e}function dm(t,A){t===void 0&&(t={}),A===void 0&&(A=[]);var e=Object.keys(t);e.forEach(function(n){var r=f1(It,Object.keys(cm)),i=!u1(r,n);i&&(i=A.filter(function(s){return s.name===n}).length===0),Nn(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[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 Nn(t,A){if(t&&!Gs.has(A)){var e;Gs.add(A),(e=console).warn.apply(e,cm(A))}}function bu(t,A){if(t&&!Gs.has(A)){var e;Gs.add(A),(e=console).error.apply(e,cm(A))}}function S1(t){var A=!t,e=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;bu(A,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bu(e,["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:Am,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(A){process.env.NODE_ENV!=="production"&&hm(A,[]);var e=Object.keys(A);e.forEach(function(n){It[n]=A[n]})};function fm(t){var A=t.plugins||[],e=A.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,e)}function O1(t,A){var e=A?Object.keys(fm(Object.assign({},It,{plugins:A}))):_1,n=e.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,A){var e=Object.assign({},A,{content:em(A.content,[t])},A.ignoreAttributes?{}:O1(t,A.plugins));return e.aria=Object.assign({},It.aria,e.aria),e.aria={expanded:e.aria.expanded==="auto"?A.interactive:e.aria.expanded,content:e.aria.content==="auto"?A.interactive?null:"describedby":e.aria.content},e}function hm(t,A){t===void 0&&(t={}),A===void 0&&(A=[]);var e=Object.keys(t);e.forEach(function(n){var r=f1(It,Object.keys(um)),i=!u1(r,n);i&&(i=A.filter(function(s){return s.name===n}).length===0),Nn(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,A){t[L1()]=A}function hm(t){var A=Ps();return t===!0?A.className=qg:(A.className=Zg,Vs(t)?A.appendChild(t):Uu(A,t)),A}function pm(t,A){Vs(A.content)?(Uu(t,""),t.appendChild(A.content)):typeof A.content!="function"&&(A.allowHTML?Uu(t,A.content):t.textContent=A.content)}function vu(t){var A=t.firstElementChild,e=wa(A.children);return{box:A,content:e.find(function(n){return n.classList.contains(zg)}),arrow:e.find(function(n){return n.classList.contains(qg)||n.classList.contains(Zg)}),backdrop:e.find(function(n){return n.classList.contains(c1)})}}function gm(t){var A=Ps(),e=Ps();e.className=l1,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var n=Ps();n.className=zg,n.setAttribute("data-state","hidden"),pm(n,t.props),A.appendChild(e),e.appendChild(n),r(t.props,t.props);function r(i,s){var a=vu(A),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)&&pm(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(c.removeChild(f),c.appendChild(hm(s.arrow))):c.appendChild(hm(s.arrow)):f&&c.removeChild(f)}return{popper:A,onUpdate:r}}gm.$$tippy=!0;var H1=1,Ca=[],Iu=[];function k1(t,A){var e=fm(t,Object.assign({},It,um(nm(A)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,p,g,B=[],w=em(z,e.interactiveDebounce),Q,b=H1++,v=null,_=h1(e.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:b,reference:t,popper:Ps(),popperInstance:v,props:e,state:S,plugins:_,clearDelayTimeouts:PA,setProps:R,setContent:X,show:SA,hide:re,hideWithInteractivity:Ct,enable:te,disable:DA,unmount:Tn,destroy:Jt};if(!e.render)return process.env.NODE_ENV!=="production"&&bu(!0,"render() function has not been supplied."),E;var L=e.render(E),U=L.popper,D=L.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+E.id,E.popper=U,t._tippy=E,U._tippy=E;var P=_.map(function(K){return K.fn(E)}),N=t.hasAttribute("aria-expanded");return _t(),XA(),HA(),rA("onCreate",[E]),e.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&&LA().addEventListener("mousemove",w)}),E;function sA(){var K=E.props.touch;return Array.isArray(K)?K:[K,0]}function BA(){return sA()[0]==="hold"}function nA(){var K;return!!((K=E.props.render)!=null&&K.$$tippy)}function cA(){return Q||t}function LA(){var K=cA().parentNode;return K?C1(K):document}function oe(){return vu(U)}function RA(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 HA(K){K===void 0&&(K=!1),U.style.pointerEvents=E.props.interactive&&!K?"":"none",U.style.zIndex=""+E.props.zIndex}function rA(K,iA,uA){if(uA===void 0&&(uA=!0),P.forEach(function(NA){NA[K]&&NA[K].apply(NA,iA)}),uA){var VA;(VA=E.props)[K].apply(VA,iA)}}function mA(){var K=E.props.aria;if(K.content){var iA="aria-"+K.content,uA=U.id,VA=Ri(E.props.triggerTarget||t);VA.forEach(function(NA){var Ge=NA.getAttribute(iA);if(E.state.isVisible)NA.setAttribute(iA,Ge?Ge+" "+uA:uA);else{var yt=Ge&&Ge.replace(uA,"").trim();yt?NA.setAttribute(iA,yt):NA.removeAttribute(iA)}})}}function XA(){if(!(N||!E.props.aria.expanded)){var K=Ri(E.props.triggerTarget||t);K.forEach(function(iA){E.props.interactive?iA.setAttribute("aria-expanded",E.state.isVisible&&iA===cA()?"true":"false"):iA.removeAttribute("aria-expanded")})}}function kA(){LA().removeEventListener("mousemove",w),Ca=Ca.filter(function(K){return K!==w})}function GA(K){if(!(Fn.isTouch&&(c||K.type==="mousedown"))){var iA=K.composedPath&&K.composedPath()[0]||K.target;if(!(E.props.interactive&&im(U,iA))){if(Ri(E.props.triggerTarget||t).some(function(uA){return im(uA,iA)})){if(Fn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else rA("onClickOutside",[E,K]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),a=!0,setTimeout(function(){a=!1}),E.state.isMounted||zA())}}}function KA(){c=!0}function Ae(){c=!1}function ee(){var K=LA();K.addEventListener("mousedown",GA,!0),K.addEventListener("touchend",GA,ri),K.addEventListener("touchstart",Ae,ri),K.addEventListener("touchmove",KA,ri)}function zA(){var K=LA();K.removeEventListener("mousedown",GA,!0),K.removeEventListener("touchend",GA,ri),K.removeEventListener("touchstart",Ae,ri),K.removeEventListener("touchmove",KA,ri)}function he(K,iA){At(K,function(){!E.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&iA()})}function ct(K,iA){At(K,iA)}function At(K,iA){var uA=oe().box;function VA(NA){NA.target===uA&&(Fu(uA,"remove",VA),iA())}if(K===0)return iA();Fu(uA,"remove",p),Fu(uA,"add",VA),p=VA}function ut(K,iA,uA){uA===void 0&&(uA=!1);var VA=Ri(E.props.triggerTarget||t);VA.forEach(function(NA){NA.addEventListener(K,iA,uA),B.push({node:NA,eventType:K,handler:iA,options:uA})})}function _t(){BA()&&(ut("touchstart",un,{passive:!0}),ut("touchend",bA,{passive:!0})),d1(E.props.trigger).forEach(function(K){if(K!=="manual")switch(ut(K,un),K){case"mouseenter":ut("mouseleave",bA);break;case"focus":ut(U1?"focusout":"blur",Sn);break;case"focusin":ut("focusout",Sn);break}})}function xt(){B.forEach(function(K){var iA=K.node,uA=K.eventType,VA=K.handler,NA=K.options;iA.removeEventListener(uA,VA,NA)}),B=[]}function un(K){var iA,uA=!1;if(!(!E.state.isEnabled||ve(K)||a)){var VA=((iA=f)==null?void 0:iA.type)==="focus";f=K,Q=K.currentTarget,XA(),!E.state.isVisible&&m1(K)&&Ca.forEach(function(NA){return NA(K)}),K.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||s)&&E.props.hideOnClick!==!1&&E.state.isVisible?uA=!0:$(K),K.type==="click"&&(s=!uA),uA&&!VA&&oA(K)}}function z(K){var iA=K.target,uA=cA().contains(iA)||U.contains(iA);if(!(K.type==="mousemove"&&uA)){var VA=x().concat(U).map(function(NA){var Ge,yt=NA._tippy,Yn=(Ge=yt.popperInstance)==null?void 0:Ge.state;return Yn?{popperRect:NA.getBoundingClientRect(),popperState:Yn,props:e}:null}).filter(Boolean);y1(VA,K)&&(kA(),oA(K))}}function bA(K){var iA=ve(K)||E.props.trigger.indexOf("click")>=0&&s;if(!iA){if(E.props.interactive){E.hideWithInteractivity(K);return}oA(K)}}function Sn(K){E.props.trigger.indexOf("focusin")<0&&K.target!==cA()||E.props.interactive&&K.relatedTarget&&U.contains(K.relatedTarget)||oA(K)}function ve(K){return Fn.isTouch?BA()!==K.type.indexOf("touch")>=0:!1}function fn(){xr();var K=E.props,iA=K.popperOptions,uA=K.placement,VA=K.offset,NA=K.getReferenceClientRect,Ge=K.moveTransition,yt=nA()?vu(U).arrow:null,Yn=NA?{getBoundingClientRect:NA,contextElement:NA.contextElement||cA()}:t,Bo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ss){var Or=ss.state;if(nA()){var vl=oe(),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:VA}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ge}},Bo];nA()&&yt&&zn.push({name:"arrow",options:{element:yt,padding:3}}),zn.push.apply(zn,(iA==null?void 0:iA.modifiers)||[]),E.popperInstance=uh.createPopper(Yn,U,Object.assign({},iA,{placement:uA,onFirstUpdate:g,modifiers:zn}))}function xr(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function T(){var K=E.props.appendTo,iA,uA=cA();E.props.interactive&&K===jg||K==="parent"?iA=uA.parentNode:iA=Am(K,[uA]),iA.contains(U)||iA.appendChild(U),E.state.isMounted=!0,fn(),process.env.NODE_ENV!=="production"&&Nn(E.props.interactive&&K===It.appendTo&&uA.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 L1=function(){return"innerHTML"};function Uu(t,A){t[L1()]=A}function pm(t){var A=Ps();return t===!0?A.className=Zg:(A.className=jg,Vs(t)?A.appendChild(t):Uu(A,t)),A}function gm(t,A){Vs(A.content)?(Uu(t,""),t.appendChild(A.content)):typeof A.content!="function"&&(A.allowHTML?Uu(t,A.content):t.textContent=A.content)}function vu(t){var A=t.firstElementChild,e=wa(A.children);return{box:A,content:e.find(function(n){return n.classList.contains(qg)}),arrow:e.find(function(n){return n.classList.contains(Zg)||n.classList.contains(jg)}),backdrop:e.find(function(n){return n.classList.contains(c1)})}}function mm(t){var A=Ps(),e=Ps();e.className=l1,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var n=Ps();n.className=qg,n.setAttribute("data-state","hidden"),gm(n,t.props),A.appendChild(e),e.appendChild(n),r(t.props,t.props);function r(i,s){var a=vu(A),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:A,onUpdate:r}}mm.$$tippy=!0;var H1=1,Ca=[],Iu=[];function k1(t,A){var e=dm(t,Object.assign({},It,fm(rm(A)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,p,g,B=[],w=tm(z,e.interactiveDebounce),Q,b=H1++,v=null,_=h1(e.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:b,reference:t,popper:Ps(),popperInstance:v,props:e,state:S,plugins:_,clearDelayTimeouts:PA,setProps:R,setContent:X,show:SA,hide:re,hideWithInteractivity:Ct,enable:te,disable:DA,unmount:Tn,destroy:Jt};if(!e.render)return process.env.NODE_ENV!=="production"&&bu(!0,"render() function has not been supplied."),E;var L=e.render(E),U=L.popper,D=L.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+E.id,E.popper=U,t._tippy=E,U._tippy=E;var P=_.map(function(K){return K.fn(E)}),N=t.hasAttribute("aria-expanded");return _t(),XA(),HA(),rA("onCreate",[E]),e.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&&LA().addEventListener("mousemove",w)}),E;function sA(){var K=E.props.touch;return Array.isArray(K)?K:[K,0]}function BA(){return sA()[0]==="hold"}function nA(){var K;return!!((K=E.props.render)!=null&&K.$$tippy)}function cA(){return Q||t}function LA(){var K=cA().parentNode;return K?C1(K):document}function oe(){return vu(U)}function RA(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 HA(K){K===void 0&&(K=!1),U.style.pointerEvents=E.props.interactive&&!K?"":"none",U.style.zIndex=""+E.props.zIndex}function rA(K,iA,uA){if(uA===void 0&&(uA=!0),P.forEach(function(NA){NA[K]&&NA[K].apply(NA,iA)}),uA){var VA;(VA=E.props)[K].apply(VA,iA)}}function mA(){var K=E.props.aria;if(K.content){var iA="aria-"+K.content,uA=U.id,VA=Ri(E.props.triggerTarget||t);VA.forEach(function(NA){var Ge=NA.getAttribute(iA);if(E.state.isVisible)NA.setAttribute(iA,Ge?Ge+" "+uA:uA);else{var yt=Ge&&Ge.replace(uA,"").trim();yt?NA.setAttribute(iA,yt):NA.removeAttribute(iA)}})}}function XA(){if(!(N||!E.props.aria.expanded)){var K=Ri(E.props.triggerTarget||t);K.forEach(function(iA){E.props.interactive?iA.setAttribute("aria-expanded",E.state.isVisible&&iA===cA()?"true":"false"):iA.removeAttribute("aria-expanded")})}}function kA(){LA().removeEventListener("mousemove",w),Ca=Ca.filter(function(K){return K!==w})}function GA(K){if(!(Fn.isTouch&&(c||K.type==="mousedown"))){var iA=K.composedPath&&K.composedPath()[0]||K.target;if(!(E.props.interactive&&sm(U,iA))){if(Ri(E.props.triggerTarget||t).some(function(uA){return sm(uA,iA)})){if(Fn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else rA("onClickOutside",[E,K]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),a=!0,setTimeout(function(){a=!1}),E.state.isMounted||zA())}}}function KA(){c=!0}function Ae(){c=!1}function ee(){var K=LA();K.addEventListener("mousedown",GA,!0),K.addEventListener("touchend",GA,ri),K.addEventListener("touchstart",Ae,ri),K.addEventListener("touchmove",KA,ri)}function zA(){var K=LA();K.removeEventListener("mousedown",GA,!0),K.removeEventListener("touchend",GA,ri),K.removeEventListener("touchstart",Ae,ri),K.removeEventListener("touchmove",KA,ri)}function pe(K,iA){At(K,function(){!E.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&iA()})}function ct(K,iA){At(K,iA)}function At(K,iA){var uA=oe().box;function VA(NA){NA.target===uA&&(Fu(uA,"remove",VA),iA())}if(K===0)return iA();Fu(uA,"remove",p),Fu(uA,"add",VA),p=VA}function ut(K,iA,uA){uA===void 0&&(uA=!1);var VA=Ri(E.props.triggerTarget||t);VA.forEach(function(NA){NA.addEventListener(K,iA,uA),B.push({node:NA,eventType:K,handler:iA,options:uA})})}function _t(){BA()&&(ut("touchstart",un,{passive:!0}),ut("touchend",UA,{passive:!0})),d1(E.props.trigger).forEach(function(K){if(K!=="manual")switch(ut(K,un),K){case"mouseenter":ut("mouseleave",UA);break;case"focus":ut(U1?"focusout":"blur",Sn);break;case"focusin":ut("focusout",Sn);break}})}function xt(){B.forEach(function(K){var iA=K.node,uA=K.eventType,VA=K.handler,NA=K.options;iA.removeEventListener(uA,VA,NA)}),B=[]}function un(K){var iA,uA=!1;if(!(!E.state.isEnabled||ve(K)||a)){var VA=((iA=f)==null?void 0:iA.type)==="focus";f=K,Q=K.currentTarget,XA(),!E.state.isVisible&&m1(K)&&Ca.forEach(function(NA){return NA(K)}),K.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||s)&&E.props.hideOnClick!==!1&&E.state.isVisible?uA=!0:$(K),K.type==="click"&&(s=!uA),uA&&!VA&&oA(K)}}function z(K){var iA=K.target,uA=cA().contains(iA)||U.contains(iA);if(!(K.type==="mousemove"&&uA)){var VA=x().concat(U).map(function(NA){var Ge,yt=NA._tippy,Yn=(Ge=yt.popperInstance)==null?void 0:Ge.state;return Yn?{popperRect:NA.getBoundingClientRect(),popperState:Yn,props:e}:null}).filter(Boolean);y1(VA,K)&&(kA(),oA(K))}}function UA(K){var iA=ve(K)||E.props.trigger.indexOf("click")>=0&&s;if(!iA){if(E.props.interactive){E.hideWithInteractivity(K);return}oA(K)}}function Sn(K){E.props.trigger.indexOf("focusin")<0&&K.target!==cA()||E.props.interactive&&K.relatedTarget&&U.contains(K.relatedTarget)||oA(K)}function ve(K){return Fn.isTouch?BA()!==K.type.indexOf("touch")>=0:!1}function fn(){xr();var K=E.props,iA=K.popperOptions,uA=K.placement,VA=K.offset,NA=K.getReferenceClientRect,Ge=K.moveTransition,yt=nA()?vu(U).arrow:null,Yn=NA?{getBoundingClientRect:NA,contextElement:NA.contextElement||cA()}:t,Bo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ss){var Or=ss.state;if(nA()){var vl=oe(),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:VA}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ge}},Bo];nA()&&yt&&zn.push({name:"arrow",options:{element:yt,padding:3}}),zn.push.apply(zn,(iA==null?void 0:iA.modifiers)||[]),E.popperInstance=uh.createPopper(Yn,U,Object.assign({},iA,{placement:uA,onFirstUpdate:g,modifiers:zn}))}function xr(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function T(){var K=E.props.appendTo,iA,uA=cA();E.props.interactive&&K===Am||K==="parent"?iA=uA.parentNode:iA=em(K,[uA]),iA.contains(U)||iA.appendChild(U),E.state.isMounted=!0,fn(),process.env.NODE_ENV!=="production"&&Nn(E.props.interactive&&K===It.appendTo&&uA.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&&rA("onTrigger",[E,K]),ee();var iA=RA(!0),uA=sA(),VA=uA[0],NA=uA[1];Fn.isTouch&&VA==="hold"&&NA&&(iA=NA),iA?n=setTimeout(function(){E.show()},iA):E.show()}function oA(K){if(E.clearDelayTimeouts(),rA("onUntrigger",[E,K]),!E.state.isVisible){zA();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(K.type)>=0&&s)){var iA=RA(!1);iA?r=setTimeout(function(){E.state.isVisible&&E.hide()},iA):i=requestAnimationFrame(function(){E.hide()})}}function te(){E.state.isEnabled=!0}function DA(){E.hide(),E.state.isEnabled=!1}function PA(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function R(K){if(process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("setProps")),!E.state.isDestroyed){rA("onBeforeUpdate",[E,K]),xt();var iA=E.props,uA=fm(t,Object.assign({},iA,nm(K),{ignoreAttributes:!0}));E.props=uA,_t(),iA.interactiveDebounce!==uA.interactiveDebounce&&(kA(),w=em(z,uA.interactiveDebounce)),iA.triggerTarget&&!uA.triggerTarget?Ri(iA.triggerTarget).forEach(function(VA){VA.removeAttribute("aria-expanded")}):uA.triggerTarget&&t.removeAttribute("aria-expanded"),XA(),HA(),D&&D(iA,uA),E.popperInstance&&(fn(),x().forEach(function(VA){requestAnimationFrame(VA._tippy.popperInstance.forceUpdate)})),rA("onAfterUpdate",[E,K])}}function X(K){E.setProps({content:K})}function SA(){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("show"));var K=E.state.isVisible,iA=E.state.isDestroyed,uA=!E.state.isEnabled,VA=Fn.isTouch&&!E.props.touch,NA=yu(E.props.duration,0,It.duration);if(!(K||iA||uA||VA)&&!cA().hasAttribute("disabled")&&(rA("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,nA()&&(U.style.visibility="visible"),HA(),ee(),E.state.isMounted||(U.style.transition="none"),nA()){var Ge=oe(),yt=Ge.box,Yn=Ge.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,nA()&&E.props.animation){var wo=oe(),ss=wo.box,Or=wo.content;Qu([ss,Or],NA),rm([ss,Or],"visible")}mA(),XA(),tm(Iu,E),(zn=E.popperInstance)==null||zn.forceUpdate(),rA("onMount",[E]),E.props.animation&&nA()&&ct(NA,function(){E.state.isShown=!0,rA("onShown",[E])})}},T()}}function re(){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("hide"));var K=!E.state.isVisible,iA=E.state.isDestroyed,uA=!E.state.isEnabled,VA=yu(E.props.duration,1,It.duration);if(!(K||iA||uA)&&(rA("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,u=!1,s=!1,nA()&&(U.style.visibility="hidden"),kA(),zA(),HA(!0),nA()){var NA=oe(),Ge=NA.box,yt=NA.content;E.props.animation&&(Qu([Ge,yt],VA),rm([Ge,yt],"hidden"))}mA(),XA(),E.props.animation?nA()&&he(VA,E.unmount):E.unmount()}}function Ct(K){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("hideWithInteractivity")),LA().addEventListener("mousemove",w),tm(Ca,w),w(K)}function Tn(){process.env.NODE_ENV!=="production"&&Nn(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,rA("onHidden",[E]))}function Jt(){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),xt(),delete t._tippy,E.state.isDestroyed=!0,rA("onDestroy",[E]))}}function Pi(t,A){A===void 0&&(A={});var e=It.plugins.concat(A.plugins||[]);process.env.NODE_ENV!=="production"&&(S1(t),dm(A,e)),F1();var n=Object.assign({},A,{plugins:e}),r=w1(t);if(process.env.NODE_ENV!=="production"){var i=Vs(n.content),s=r.length>1;Nn(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&&rA("onTrigger",[E,K]),ee();var iA=RA(!0),uA=sA(),VA=uA[0],NA=uA[1];Fn.isTouch&&VA==="hold"&&NA&&(iA=NA),iA?n=setTimeout(function(){E.show()},iA):E.show()}function oA(K){if(E.clearDelayTimeouts(),rA("onUntrigger",[E,K]),!E.state.isVisible){zA();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(K.type)>=0&&s)){var iA=RA(!1);iA?r=setTimeout(function(){E.state.isVisible&&E.hide()},iA):i=requestAnimationFrame(function(){E.hide()})}}function te(){E.state.isEnabled=!0}function DA(){E.hide(),E.state.isEnabled=!1}function PA(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function R(K){if(process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("setProps")),!E.state.isDestroyed){rA("onBeforeUpdate",[E,K]),xt();var iA=E.props,uA=dm(t,Object.assign({},iA,rm(K),{ignoreAttributes:!0}));E.props=uA,_t(),iA.interactiveDebounce!==uA.interactiveDebounce&&(kA(),w=tm(z,uA.interactiveDebounce)),iA.triggerTarget&&!uA.triggerTarget?Ri(iA.triggerTarget).forEach(function(VA){VA.removeAttribute("aria-expanded")}):uA.triggerTarget&&t.removeAttribute("aria-expanded"),XA(),HA(),D&&D(iA,uA),E.popperInstance&&(fn(),x().forEach(function(VA){requestAnimationFrame(VA._tippy.popperInstance.forceUpdate)})),rA("onAfterUpdate",[E,K])}}function X(K){E.setProps({content:K})}function SA(){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("show"));var K=E.state.isVisible,iA=E.state.isDestroyed,uA=!E.state.isEnabled,VA=Fn.isTouch&&!E.props.touch,NA=yu(E.props.duration,0,It.duration);if(!(K||iA||uA||VA)&&!cA().hasAttribute("disabled")&&(rA("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,nA()&&(U.style.visibility="visible"),HA(),ee(),E.state.isMounted||(U.style.transition="none"),nA()){var Ge=oe(),yt=Ge.box,Yn=Ge.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,nA()&&E.props.animation){var wo=oe(),ss=wo.box,Or=wo.content;Qu([ss,Or],NA),im([ss,Or],"visible")}mA(),XA(),nm(Iu,E),(zn=E.popperInstance)==null||zn.forceUpdate(),rA("onMount",[E]),E.props.animation&&nA()&&ct(NA,function(){E.state.isShown=!0,rA("onShown",[E])})}},T()}}function re(){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("hide"));var K=!E.state.isVisible,iA=E.state.isDestroyed,uA=!E.state.isEnabled,VA=yu(E.props.duration,1,It.duration);if(!(K||iA||uA)&&(rA("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,u=!1,s=!1,nA()&&(U.style.visibility="hidden"),kA(),zA(),HA(!0),nA()){var NA=oe(),Ge=NA.box,yt=NA.content;E.props.animation&&(Qu([Ge,yt],VA),im([Ge,yt],"hidden"))}mA(),XA(),E.props.animation?nA()&&pe(VA,E.unmount):E.unmount()}}function Ct(K){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("hideWithInteractivity")),LA().addEventListener("mousemove",w),nm(Ca,w),w(K)}function Tn(){process.env.NODE_ENV!=="production"&&Nn(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,rA("onHidden",[E]))}function Jt(){process.env.NODE_ENV!=="production"&&Nn(E.state.isDestroyed,Ki("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),xt(),delete t._tippy,E.state.isDestroyed=!0,rA("onDestroy",[E]))}}function Pi(t,A){A===void 0&&(A={});var e=It.plugins.concat(A.plugins||[]);process.env.NODE_ENV!=="production"&&(S1(t),hm(A,e)),F1();var n=Object.assign({},A,{plugins:e}),r=w1(t);if(process.env.NODE_ENV!=="production"){var i=Vs(n.content),s=r.length>1;Nn(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 Vs(t)?a[0]:a}Pi.defaultProps=It,Pi.setDefaultProps=x1,Pi.currentInput=Fn,Object.assign({},uh.applyStyles,{effect:function(A){var e=A.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Pi.setDefaultProps({render:gm});class D1{constructor({editor:A,element:e,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 D=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(D&&(U=D.firstChild),U)return U.getBoundingClientRect()}return Ng(a,S,E)})}),this.show()},this.editor=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){const{state:n}=A,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(A,e);return}const i=!(e!=null&&e.selection.eq(A.state.selection)),s=!(e!=null&&e.doc.eq(A.state.doc));this.updateHandler(A,i,s,e)}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.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 mm=t=>new pt({key:typeof t.pluginKey=="string"?new wn(t.pluginKey):t.pluginKey,view:A=>new D1({view:A,...t})});Ye.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[mm({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class N1{constructor({editor:A,element:e,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=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){var n,r,i;const{state:s}=A,{doc:a,selection:c}=s,{from:u,to:f}=c;if(e&&e.doc.eq(a)&&e.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:A,state:s,oldState:e}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Ng(A,u,f))}),this.show()}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),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:A=>new N1({view:A,...t})});Ye.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Bm({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:A}){const e=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(mm({updateDelay:n,editor:r,element:e.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:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function wm(t){return h.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class M1 extends nI{constructor(A={}){return super(A),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=wm(this.view.state),this.reactiveExtensionStorage=wm(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(A,e){super.registerPlugin(A,e),this.reactiveState.value=this.view.state}unregisterPlugin(A){super.unregisterPlugin(A),this.reactiveState.value=this.view.state}}const R1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=h.ref(),e=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&h.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=h.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.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:A}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(A=>{const e=h.h(h.Teleport,{to:A.teleportElement,key:A.id},h.h(A.component,{ref:A.id,...A.props}));t.push(e)}),h.h("div",{ref:A=>{this.rootEl=A}},...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:A}){const e=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(Bm({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),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,A;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(A=(t=this.$slots).default)===null||A===void 0?void 0:A.call(t))}});const K1=(t={})=>{const A=h.shallowRef();return h.onMounted(()=>{A.value=new M1(t)}),h.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},P1={class:"rte-editor"},V1={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:A}){const e=t,n=A,r=K1({content:e.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(()=>e.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",V1,[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"])])}}}),d3="",q1={class:"input-color"},Z1={class:"base-input__color-swatch"},j1=["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:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.computed({get(){return e.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"])])}}}),h3="";/*!
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 Vs(t)?a[0]:a}Pi.defaultProps=It,Pi.setDefaultProps=x1,Pi.currentInput=Fn,Object.assign({},uh.applyStyles,{effect:function(A){var e=A.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Pi.setDefaultProps({render:mm});class D1{constructor({editor:A,element:e,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 D=U.dataset.nodeViewWrapper?U:U.querySelector("[data-node-view-wrapper]");if(D&&(U=D.firstChild),U)return U.getBoundingClientRect()}return Mg(a,S,E)})}),this.show()},this.editor=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){const{state:n}=A,r=n.selection.$from.pos!==n.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(A,e);return}const i=!(e!=null&&e.selection.eq(A.state.selection)),s=!(e!=null&&e.doc.eq(A.state.doc));this.updateHandler(A,i,s,e)}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.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:A=>new D1({view:A,...t})});Ye.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 N1{constructor({editor:A,element:e,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=A,this.element=e,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:A}=this.editor.options,e=!!A.parentElement;this.tippy||!e||(this.tippy=Pi(A,{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(A,e){var n,r,i;const{state:s}=A,{doc:a,selection:c}=s,{from:u,to:f}=c;if(e&&e.doc.eq(a)&&e.selection.eq(c))return;if(this.createTooltip(),!((n=this.shouldShow)===null||n===void 0?void 0:n.call(this,{editor:this.editor,view:A,state:s,oldState:e}))){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(A,u,f))}),this.show()}show(){var A;(A=this.tippy)===null||A===void 0||A.show()}hide(){var A;(A=this.tippy)===null||A===void 0||A.hide()}destroy(){var A,e;!((A=this.tippy)===null||A===void 0)&&A.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.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:A=>new N1({view:A,...t})});Ye.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:A}){const e=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:e.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:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function Cm(t){return h.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class M1 extends nI{constructor(A={}){return super(A),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(A,e){super.registerPlugin(A,e),this.reactiveState.value=this.view.state}unregisterPlugin(A){super.unregisterPlugin(A),this.reactiveState.value=this.view.state}}const R1=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=h.ref(),e=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&h.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=h.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.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:A}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(A=>{const e=h.h(h.Teleport,{to:A.teleportElement,key:A.id},h.h(A.component,{ref:A.id,...A.props}));t.push(e)}),h.h("div",{ref:A=>{this.rootEl=A}},...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:A}){const e=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(wm({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),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,A;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(A=(t=this.$slots).default)===null||A===void 0?void 0:A.call(t))}});const K1=(t={})=>{const A=h.shallowRef();return h.onMounted(()=>{A.value=new M1(t)}),h.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},P1={class:"rte-editor"},V1={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:A}){const e=t,n=A,r=K1({content:e.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(()=>e.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",V1,[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"])])}}}),g3="",q1={class:"input-color"},Z1={class:"base-input__color-swatch"},j1=["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:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.computed({get(){return e.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"])])}}}),m3="",eS={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:()=>de()},id:{type:String,default:()=>de()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",eS,[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"])]))}}),B3="";/*!
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=A=>{t.mark(A)},ii=(A,e,n)=>{t.measure(A,e,n),t.clearMarks(e),t.clearMarks(n)})}const eS=/\{([0-9a-zA-Z]+)\}/g;function Su(t,...A){return A.length===1&&WA(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(eS,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const Rn=(t,A=!1)=>A?Symbol.for(t):Symbol(t),tS=(t,A,e)=>nS({l:t,k:A,s:e}),nS=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ze=t=>typeof t=="number"&&isFinite(t),rS=t=>Qm(t)==="[object Date]",Vi=t=>Qm(t)==="[object RegExp]",ya=t=>_A(t)&&Object.keys(t).length===0,qe=Object.assign;let Cm;const Kn=()=>Cm||(Cm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ym(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const iS=Object.prototype.hasOwnProperty;function Ea(t,A){return iS.call(t,A)}const be=Array.isArray,le=t=>typeof t=="function",tA=t=>typeof t=="string",ne=t=>typeof t=="boolean",WA=t=>t!==null&&typeof t=="object",sS=t=>WA(t)&&le(t.then)&&le(t.catch),Em=Object.prototype.toString,Qm=t=>Em.call(t),_A=t=>{if(!WA(t))return!1;const A=Object.getPrototypeOf(t);return A===null||A.constructor===Object},oS=t=>t==null?"":be(t)||_A(t)&&t.toString===Em?JSON.stringify(t,null,2):String(t);function aS(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const Fm=2;function lS(t,A=0,e=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>=A){for(let a=s-Fm;a<=s+Fm||e>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=A-(r-u)+1,p=Math.max(1,e>r?u-f:e-A);i.push(" | "+" ".repeat(f)+"^".repeat(p))}else if(a>s){if(e>r){const f=Math.max(Math.min(e-r,u),1);i.push(" | "+"^".repeat(f))}r+=u+1}}break}return i.join(`
119
- `)}function Qa(t){let A=t;return()=>++A}function Pn(t,A){typeof console<"u"&&(console.warn("[intlify] "+t),A&&console.warn(A.stack))}const bm={};function Um(t){bm[t]||(bm[t]=!0,Pn(t))}function cS(){const t=new Map;return{events:t,on(e,n){const r=t.get(e);r&&r.push(n)||t.set(e,[n])},off(e,n){const r=t.get(e);r&&r.splice(r.indexOf(n)>>>0,1)},emit(e,n){(t.get(e)||[]).slice().map(r=>r(n)),(t.get("*")||[]).slice().map(r=>r(e,n))}}}const Fa=t=>!WA(t)||be(t);function ba(t,A){if(Fa(t)||Fa(A))throw new Error("Invalid value");const e=[{src:t,des:A}];for(;e.length;){const{src:n,des:r}=e.pop();Object.keys(n).forEach(i=>{Fa(n[i])||Fa(r[i])?r[i]=n[i]:e.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=A=>{t.mark(A)},ii=(A,e,n)=>{t.measure(A,e,n),t.clearMarks(e),t.clearMarks(n)})}const rS=/\{([0-9a-zA-Z]+)\}/g;function Su(t,...A){return A.length===1&&WA(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(rS,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const Rn=(t,A=!1)=>A?Symbol.for(t):Symbol(t),iS=(t,A,e)=>sS({l:t,k:A,s:e}),sS=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ze=t=>typeof t=="number"&&isFinite(t),oS=t=>Fm(t)==="[object Date]",Vi=t=>Fm(t)==="[object RegExp]",ya=t=>_A(t)&&Object.keys(t).length===0,qe=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,A){return aS.call(t,A)}const be=Array.isArray,le=t=>typeof t=="function",tA=t=>typeof t=="string",ne=t=>typeof t=="boolean",WA=t=>t!==null&&typeof t=="object",lS=t=>WA(t)&&le(t.then)&&le(t.catch),Qm=Object.prototype.toString,Fm=t=>Qm.call(t),_A=t=>{if(!WA(t))return!1;const A=Object.getPrototypeOf(t);return A===null||A.constructor===Object},cS=t=>t==null?"":be(t)||_A(t)&&t.toString===Qm?JSON.stringify(t,null,2):String(t);function uS(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const bm=2;function fS(t,A=0,e=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>=A){for(let a=s-bm;a<=s+bm||e>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=A-(r-u)+1,p=Math.max(1,e>r?u-f:e-A);i.push(" | "+" ".repeat(f)+"^".repeat(p))}else if(a>s){if(e>r){const f=Math.max(Math.min(e-r,u),1);i.push(" | "+"^".repeat(f))}r+=u+1}}break}return i.join(`
119
+ `)}function Qa(t){let A=t;return()=>++A}function Pn(t,A){typeof console<"u"&&(console.warn("[intlify] "+t),A&&console.warn(A.stack))}const Um={};function vm(t){Um[t]||(Um[t]=!0,Pn(t))}function dS(){const t=new Map;return{events:t,on(e,n){const r=t.get(e);r&&r.push(n)||t.set(e,[n])},off(e,n){const r=t.get(e);r&&r.splice(r.indexOf(n)>>>0,1)},emit(e,n){(t.get(e)||[]).slice().map(r=>r(n)),(t.get("*")||[]).slice().map(r=>r(e,n))}}}const Fa=t=>!WA(t)||be(t);function ba(t,A){if(Fa(t)||Fa(A))throw new Error("Invalid value");const e=[{src:t,des:A}];for(;e.length;){const{src:n,des:r}=e.pop();Object.keys(n).forEach(i=>{Fa(n[i])||Fa(r[i])?r[i]=n[i]:e.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 uS(t,A,e){return{line:t,column:A,offset:e}}function Ua(t,A,e){const n={start:t,end:A};return e!=null&&(n.source=e),n}const fS=/\{([0-9a-zA-Z]+)\}/g;function vm(t,...A){return A.length===1&&dS(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(fS,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const Im=Object.assign,Sm=t=>typeof t=="string",dS=t=>t!==null&&typeof t=="object";function Tm(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const va={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},hS={[va.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function pS(t,A,...e){const n=vm(hS[t]||"",...e||[]),r={message:String(n),code:t};return A&&(r.location=A),r}const gA={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},gS={[gA.EXPECTED_TOKEN]:"Expected token: '{0}'",[gA.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[gA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[gA.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[gA.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[gA.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[gA.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[gA.EMPTY_PLACEHOLDER]:"Empty placeholder",[gA.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[gA.INVALID_LINKED_FORMAT]:"Invalid linked format",[gA.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[gA.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[gA.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[gA.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[gA.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[gA.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gi(t,A,e={}){const{domain:n,messages:r,args:i}=e,s=vm((r||gS)[t]||"",...i||[]),a=new SyntaxError(String(s));return a.code=t,A&&(a.location=A),a.domain=n,a}function mS(t){throw t}const BS=/<\/?[\w\s="/.':;#-\/]+>/,wS=t=>BS.test(t),Vn=" ",CS="\r",ot=`
124
- `,yS=String.fromCharCode(8232),ES=String.fromCharCode(8233);function QS(t){const A=t;let e=0,n=1,r=1,i=0;const s=D=>A[D]===CS&&A[D+1]===ot,a=D=>A[D]===ot,c=D=>A[D]===ES,u=D=>A[D]===yS,f=D=>s(D)||a(D)||c(D)||u(D),p=()=>e,g=()=>n,B=()=>r,w=()=>i,Q=D=>s(D)||c(D)||u(D)?ot:A[D],b=()=>Q(e),v=()=>Q(e+i);function _(){return i=0,f(e)&&(n++,r=0),s(e)&&e++,e++,r++,A[e]}function S(){return s(e+i)&&i++,i++,A[e+i]}function E(){e=0,n=1,r=1,i=0}function L(D=0){i=D}function U(){const D=e+i;for(;D!==e;)_();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,FS=".",_m="'",bS="tokenizer";function US(t,A={}){const e=A.location!==!1,n=QS(t),r=()=>n.index(),i=()=>uS(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}=A;function p(T,x,$,...oA){const te=u();if(x.column+=$,x.offset+=$,f){const DA=e?Ua(te.startLoc,x):null,PA=Gi(T,DA,{domain:bS,args:oA});f(PA)}}function g(T,x,$){T.endLoc=i(),T.currentType=x;const oA={type:x};return e&&(oA.loc=Ua(T.startLoc,T.endLoc)),$!=null&&(oA.value=$),oA}const B=T=>g(T,14);function w(T,x){return T.currentChar()===x?(T.next(),x):(p(gA.EXPECTED_TOKEN,i(),0,x),"")}function Q(T){let x="";for(;T.currentPeek()===Vn||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 oA=v(T.currentPeek());return T.resetPeek(),oA}function E(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oA=T.currentPeek()==="-"?T.peek():T.currentPeek(),te=_(oA);return T.resetPeek(),te}function L(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oA=T.currentPeek()===_m;return T.resetPeek(),oA}function U(T,x){const{currentType:$}=x;if($!==8)return!1;Q(T);const oA=T.currentPeek()===".";return T.resetPeek(),oA}function D(T,x){const{currentType:$}=x;if($!==9)return!1;Q(T);const oA=v(T.currentPeek());return T.resetPeek(),oA}function P(T,x){const{currentType:$}=x;if(!($===8||$===12))return!1;Q(T);const oA=T.currentPeek()===":";return T.resetPeek(),oA}function N(T,x){const{currentType:$}=x;if($!==10)return!1;const oA=()=>{const DA=T.currentPeek();return DA==="{"?v(T.peek()):DA==="@"||DA==="%"||DA==="|"||DA===":"||DA==="."||DA===Vn||!DA?!1:DA===ot?(T.peek(),oA()):nA(T,!1)},te=oA();return T.resetPeek(),te}function sA(T){Q(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function BA(T){const x=Q(T),$=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:$,hasSpace:x.length>0}}function nA(T,x=!0){const $=(te=!1,DA="",PA=!1)=>{const R=T.currentPeek();return R==="{"?DA==="%"?!1:te:R==="@"||!R?DA==="%"?!0:te:R==="%"?(T.peek(),$(te,"%",!0)):R==="|"?DA==="%"||PA?!0:!(DA===Vn||DA===ot):R===Vn?(T.peek(),$(!0,Vn,PA)):R===ot?(T.peek(),$(!0,ot,PA)):!0},oA=$();return x&&T.resetPeek(),oA}function cA(T,x){const $=T.currentChar();return $===Cr?Cr:x($)?(T.next(),$):null}function LA(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36}function oe(T){return cA(T,LA)}function RA(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 HA(T){return cA(T,RA)}function rA(T){const x=T.charCodeAt(0);return x>=48&&x<=57}function mA(T){return cA(T,rA)}function XA(T){const x=T.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function kA(T){return cA(T,XA)}function GA(T){let x="",$="";for(;x=mA(T);)$+=x;return $}function KA(T){b(T);const x=T.currentChar();return x!=="%"&&p(gA.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function Ae(T){let x="";for(;;){const $=T.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($==="%")if(nA(T))x+=$,T.next();else break;else if($===Vn||$===ot)if(nA(T))x+=$,T.next();else{if(sA(T))break;x+=$,T.next()}else x+=$,T.next()}return x}function ee(T){b(T);let x="",$="";for(;x=HA(T);)$+=x;return T.currentChar()===Cr&&p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),$}function zA(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${GA(T)}`):x+=GA(T),T.currentChar()===Cr&&p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),x}function he(T){return T!==_m&&T!==ot}function ct(T){b(T),w(T,"'");let x="",$="";for(;x=cA(T,he);)x==="\\"?$+=At(T):$+=x;const oA=T.currentChar();return oA===ot||oA===Cr?(p(gA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oA===ot&&(T.next(),w(T,"'")),$):(w(T,"'"),$)}function At(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(gA.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ut(T,x,$){w(T,x);let oA="";for(let te=0;te<$;te++){const DA=kA(T);if(!DA){p(gA.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${oA}${T.currentChar()}`);break}oA+=DA}return`\\${x}${oA}`}function _t(T){return T!=="{"&&T!=="}"&&T!==Vn&&T!==ot}function xt(T){b(T);let x="",$="";for(;x=cA(T,_t);)$+=x;return $}function un(T){let x="",$="";for(;x=oe(T);)$+=x;return $}function z(T){const x=$=>{const oA=T.currentChar();return oA==="{"||oA==="%"||oA==="@"||oA==="|"||oA==="("||oA===")"||!oA||oA===Vn?$:($+=oA,T.next(),x($))};return x("")}function bA(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(gA.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),$=g(x,2,"{"),b(T),x.braceNest++,$;case"}":return x.braceNest>0&&x.currentType===2&&p(gA.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(gA.UNTERMINATED_CLOSING_BRACE,i(),0),$=ve(T,x)||B(x),x.braceNest=0,$;default:{let te=!0,DA=!0,PA=!0;if(sA(T))return x.braceNest>0&&p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),$=g(x,1,bA(T)),x.braceNest=0,x.inLinked=!1,$;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,fn(T,x);if(te=S(T,x))return $=g(x,5,ee(T)),b(T),$;if(DA=E(T,x))return $=g(x,6,zA(T)),b(T),$;if(PA=L(T,x))return $=g(x,7,ct(T)),b(T),$;if(!te&&!DA&&!PA)return $=g(x,13,xt(T)),p(gA.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$.value),b(T),$;break}}return $}function ve(T,x){const{currentType:$}=x;let oA=null;const te=T.currentChar();switch(($===8||$===9||$===12||$===10)&&(te===ot||te===Vn)&&p(gA.INVALID_LINKED_FORMAT,i(),0),te){case"@":return T.next(),oA=g(x,8,"@"),x.inLinked=!0,oA;case".":return b(T),T.next(),g(x,9,".");case":":return b(T),T.next(),g(x,10,":");default:return sA(T)?(oA=g(x,1,bA(T)),x.braceNest=0,x.inLinked=!1,oA):U(T,x)||P(T,x)?(b(T),ve(T,x)):D(T,x)?(b(T),g(x,12,un(T))):N(T,x)?(b(T),te==="{"?Sn(T,x)||oA:g(x,11,z(T))):($===8&&p(gA.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 ve(T,x)||B(x);switch(T.currentChar()){case"{":return Sn(T,x)||B(x);case"}":return p(gA.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),g(x,3,"}");case"@":return ve(T,x)||B(x);default:{if(sA(T))return $=g(x,1,bA(T)),x.braceNest=0,x.inLinked=!1,$;const{isModulo:te,hasSpace:DA}=BA(T);if(te)return DA?g(x,0,Ae(T)):g(x,4,KA(T));if(nA(T))return g(x,0,Ae(T));break}}return $}function xr(){const{currentType:T,offset:x,startLoc:$,endLoc:oA}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=$,c.lastEndLoc=oA,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 vS="parser",IS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function SS(t,A,e){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(A||e,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function TS(t={}){const A=t.location!==!1,{onError:e,onWarn:n}=t;function r(S,E,L,U,...D){const P=S.currentPosition();if(P.offset+=U,P.column+=U,e){const N=A?Ua(L,P):null,sA=Gi(E,N,{domain:vS,args:D});e(sA)}}function i(S,E,L,U,...D){const P=S.currentPosition();if(P.offset+=U,P.column+=U,n){const N=A?Ua(L,P):null;n(pS(E,N,D))}}function s(S,E,L){const U={type:S};return A&&(U.start=E,U.end=E,U.loc={start:L,end:L}),U}function a(S,E,L,U){U&&(S.type=U),A&&(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:D}=L,P=s(5,U,D);return P.index=parseInt(E,10),S.nextToken(),a(P,S.currentOffset(),S.currentPosition()),P}function f(S,E,L){const U=S.context(),{lastOffset:D,lastStartLoc:P}=U,N=s(4,D,P);return N.key=E,L===!0&&(N.modulo=!0),S.nextToken(),a(N,S.currentOffset(),S.currentPosition()),N}function p(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:D}=L,P=s(9,U,D);return P.value=E.replace(IS,SS),S.nextToken(),a(P,S.currentOffset(),S.currentPosition()),P}function g(S){const E=S.nextToken(),L=S.context(),{lastOffset:U,lastStartLoc:D}=L,P=s(8,U,D);return E.type!==12?(r(S,gA.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),P.value="",a(P,U,D),{nextConsumeToken:E,node:P}):(E.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,an(E)),P.value=E.value||"",a(P,S.currentOffset(),S.currentPosition()),{node:P})}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 D=g(S);L.modifier=D.node,U=D.nextConsumeToken||S.nextToken()}switch(U.type!==10&&r(S,gA.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,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=B(S,U.value||"");break;case 5:U.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=f(S,U.value||"");break;case 6:U.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=u(S,U.value||"");break;case 7:U.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=p(S,U.value||"");break;default:{r(S,gA.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const D=S.context(),P=s(7,D.offset,D.startLoc);return P.value="",a(P,D.offset,D.startLoc),L.key=P,a(L,D.offset,D.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,D=s(2,L,U);D.items=[];let P=null,N=null;do{const nA=P||S.nextToken();switch(P=null,nA.type){case 0:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(c(S,nA.value||""));break;case 6:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(u(S,nA.value||""));break;case 4:N=!0;break;case 5:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(f(S,nA.value||"",!!N)),N&&(i(S,va.USE_MODULO_SYNTAX,E.lastStartLoc,0,an(nA)),N=null);break;case 7:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(p(S,nA.value||""));break;case 8:{const cA=w(S);D.items.push(cA.node),P=cA.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const sA=E.currentType===1?E.lastOffset:S.currentOffset(),BA=E.currentType===1?E.lastEndLoc:S.currentPosition();return a(D,sA,BA),D}function b(S,E,L,U){const D=S.context();let P=U.items.length===0;const N=s(1,E,L);N.cases=[],N.cases.push(U);do{const sA=Q(S);P||(P=sA.items.length===0),N.cases.push(sA)}while(D.currentType!==14);return P&&r(S,gA.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),a(N,S.currentOffset(),S.currentPosition()),N}function v(S){const E=S.context(),{offset:L,startLoc:U}=E,D=Q(S);return E.currentType===14?D:b(S,L,U,D)}function _(S){const E=US(S,Im({},t)),L=E.context(),U=s(0,L.offset,L.startLoc);return A&&U.loc&&(U.loc.source=S),U.body=v(E),t.onCacheKey&&(U.cacheKey=t.onCacheKey(S)),L.currentType!==14&&r(E,gA.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 A=(t.value||"").replace(/\r?\n/gu,"\\n");return A.length>10?A.slice(0,9)+"…":A}function _S(t,A={}){const e={ast:t,helpers:new Set};return{context:()=>e,helper:i=>(e.helpers.add(i),i)}}function xm(t,A){for(let e=0;e<t.length;e++)Tu(t[e],A)}function Tu(t,A){switch(t.type){case 1:xm(t.cases,A),A.helper("plural");break;case 2:xm(t.items,A);break;case 6:{Tu(t.key,A),A.helper("linked"),A.helper("type");break}case 5:A.helper("interpolate"),A.helper("list");break;case 4:A.helper("interpolate"),A.helper("named");break}}function xS(t,A={}){const e=_S(t);e.helper("normalize"),t.body&&Tu(t.body,e);const n=e.context();t.helpers=Array.from(n.helpers)}function OS(t){const A=t.body;return A.type===2?Om(A):A.cases.forEach(e=>Om(e)),t}function Om(t){if(t.items.length===1){const A=t.items[0];(A.type===3||A.type===9)&&(t.static=A.value,delete A.value)}else{const A=[];for(let e=0;e<t.items.length;e++){const n=t.items[e];if(!(n.type===3||n.type===9)||n.value==null)break;A.push(n.value)}if(A.length===t.items.length){t.static=Tm(A);for(let e=0;e<t.items.length;e++){const n=t.items[e];(n.type===3||n.type===9)&&delete n.value}}}}const LS="minifier";function Wi(t){switch(t.t=t.type,t.type){case 0:{const A=t;Wi(A.body),A.b=A.body,delete A.body;break}case 1:{const A=t,e=A.cases;for(let n=0;n<e.length;n++)Wi(e[n]);A.c=e,delete A.cases;break}case 2:{const A=t,e=A.items;for(let n=0;n<e.length;n++)Wi(e[n]);A.i=e,delete A.items,A.static&&(A.s=A.static,delete A.static);break}case 3:case 9:case 8:case 7:{const A=t;A.value&&(A.v=A.value,delete A.value);break}case 6:{const A=t;Wi(A.key),A.k=A.key,delete A.key,A.modifier&&(Wi(A.modifier),A.m=A.modifier,delete A.modifier);break}case 5:{const A=t;A.i=A.index,delete A.index;break}case 4:{const A=t;A.k=A.key,delete A.key;break}default:throw Gi(gA.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:LS,args:[t.type]})}delete t.type}const HS="parser";function kS(t,A){const{sourceMap:e,filename:n,breakLineCode:r,needIndent:i}=A,s=A.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 DS(t,A){const{helper:e}=t;t.push(`${e("linked")}(`),$i(t,A.key),A.modifier?(t.push(", "),$i(t,A.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function NS(t,A){const{helper:e,needIndent:n}=t;t.push(`${e("normalize")}([`),t.indent(n());const r=A.items.length;for(let i=0;i<r&&($i(t,A.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function MS(t,A){const{helper:e,needIndent:n}=t;if(A.cases.length>1){t.push(`${e("plural")}([`),t.indent(n());const r=A.cases.length;for(let i=0;i<r&&($i(t,A.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function RS(t,A){A.body?$i(t,A.body):t.push("null")}function $i(t,A){const{helper:e}=t;switch(A.type){case 0:RS(t,A);break;case 1:MS(t,A);break;case 2:NS(t,A);break;case 6:DS(t,A);break;case 8:t.push(JSON.stringify(A.value),A);break;case 7:t.push(JSON.stringify(A.value),A);break;case 5:t.push(`${e("interpolate")}(${e("list")}(${A.index}))`,A);break;case 4:t.push(`${e("interpolate")}(${e("named")}(${JSON.stringify(A.key)}))`,A);break;case 9:t.push(JSON.stringify(A.value),A);break;case 3:t.push(JSON.stringify(A.value),A);break;default:throw Gi(gA.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:HS,args:[A.type]})}}const KS=(t,A={})=>{const e=Sm(A.mode)?A.mode:"normal",n=Sm(A.filename)?A.filename:"message.intl",r=!!A.sourceMap,i=A.breakLineCode!=null?A.breakLineCode:e==="arrow"?";":`
125
- `,s=A.needIndent?A.needIndent:e!=="arrow",a=t.helpers||[],c=kS(t,{mode:e,filename:n,sourceMap:r,breakLineCode:i,needIndent:s});c.push(e==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),a.length>0&&(c.push(`const { ${Tm(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 PS(t,A={}){const e=Im({},A),n=!!e.jit,r=!!e.minify,i=e.optimize==null?!0:e.optimize,a=TS(e).parse(t);return n?(i&&OS(a),r&&Wi(a),{ast:a,code:""}):(xS(a,e),KS(a,e))}/*!
123
+ */function hS(t,A,e){return{line:t,column:A,offset:e}}function Ua(t,A,e){const n={start:t,end:A};return e!=null&&(n.source=e),n}const pS=/\{([0-9a-zA-Z]+)\}/g;function Im(t,...A){return A.length===1&&gS(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(pS,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const Sm=Object.assign,Tm=t=>typeof t=="string",gS=t=>t!==null&&typeof t=="object";function _m(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const va={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},mS={[va.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function BS(t,A,...e){const n=Im(mS[t]||"",...e||[]),r={message:String(n),code:t};return A&&(r.location=A),r}const gA={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={[gA.EXPECTED_TOKEN]:"Expected token: '{0}'",[gA.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[gA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[gA.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[gA.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[gA.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[gA.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[gA.EMPTY_PLACEHOLDER]:"Empty placeholder",[gA.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[gA.INVALID_LINKED_FORMAT]:"Invalid linked format",[gA.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[gA.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[gA.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[gA.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[gA.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[gA.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gi(t,A,e={}){const{domain:n,messages:r,args:i}=e,s=Im((r||wS)[t]||"",...i||[]),a=new SyntaxError(String(s));return a.code=t,A&&(a.location=A),a.domain=n,a}function CS(t){throw t}const yS=/<\/?[\w\s="/.':;#-\/]+>/,ES=t=>yS.test(t),Vn=" ",QS="\r",ot=`
124
+ `,FS=String.fromCharCode(8232),bS=String.fromCharCode(8233);function US(t){const A=t;let e=0,n=1,r=1,i=0;const s=D=>A[D]===QS&&A[D+1]===ot,a=D=>A[D]===ot,c=D=>A[D]===bS,u=D=>A[D]===FS,f=D=>s(D)||a(D)||c(D)||u(D),p=()=>e,g=()=>n,B=()=>r,w=()=>i,Q=D=>s(D)||c(D)||u(D)?ot:A[D],b=()=>Q(e),v=()=>Q(e+i);function _(){return i=0,f(e)&&(n++,r=0),s(e)&&e++,e++,r++,A[e]}function S(){return s(e+i)&&i++,i++,A[e+i]}function E(){e=0,n=1,r=1,i=0}function L(D=0){i=D}function U(){const D=e+i;for(;D!==e;)_();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,A={}){const e=A.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}=A;function p(T,x,$,...oA){const te=u();if(x.column+=$,x.offset+=$,f){const DA=e?Ua(te.startLoc,x):null,PA=Gi(T,DA,{domain:IS,args:oA});f(PA)}}function g(T,x,$){T.endLoc=i(),T.currentType=x;const oA={type:x};return e&&(oA.loc=Ua(T.startLoc,T.endLoc)),$!=null&&(oA.value=$),oA}const B=T=>g(T,14);function w(T,x){return T.currentChar()===x?(T.next(),x):(p(gA.EXPECTED_TOKEN,i(),0,x),"")}function Q(T){let x="";for(;T.currentPeek()===Vn||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 oA=v(T.currentPeek());return T.resetPeek(),oA}function E(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oA=T.currentPeek()==="-"?T.peek():T.currentPeek(),te=_(oA);return T.resetPeek(),te}function L(T,x){const{currentType:$}=x;if($!==2)return!1;Q(T);const oA=T.currentPeek()===xm;return T.resetPeek(),oA}function U(T,x){const{currentType:$}=x;if($!==8)return!1;Q(T);const oA=T.currentPeek()===".";return T.resetPeek(),oA}function D(T,x){const{currentType:$}=x;if($!==9)return!1;Q(T);const oA=v(T.currentPeek());return T.resetPeek(),oA}function P(T,x){const{currentType:$}=x;if(!($===8||$===12))return!1;Q(T);const oA=T.currentPeek()===":";return T.resetPeek(),oA}function N(T,x){const{currentType:$}=x;if($!==10)return!1;const oA=()=>{const DA=T.currentPeek();return DA==="{"?v(T.peek()):DA==="@"||DA==="%"||DA==="|"||DA===":"||DA==="."||DA===Vn||!DA?!1:DA===ot?(T.peek(),oA()):nA(T,!1)},te=oA();return T.resetPeek(),te}function sA(T){Q(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function BA(T){const x=Q(T),$=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:$,hasSpace:x.length>0}}function nA(T,x=!0){const $=(te=!1,DA="",PA=!1)=>{const R=T.currentPeek();return R==="{"?DA==="%"?!1:te:R==="@"||!R?DA==="%"?!0:te:R==="%"?(T.peek(),$(te,"%",!0)):R==="|"?DA==="%"||PA?!0:!(DA===Vn||DA===ot):R===Vn?(T.peek(),$(!0,Vn,PA)):R===ot?(T.peek(),$(!0,ot,PA)):!0},oA=$();return x&&T.resetPeek(),oA}function cA(T,x){const $=T.currentChar();return $===Cr?Cr:x($)?(T.next(),$):null}function LA(T){const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36}function oe(T){return cA(T,LA)}function RA(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 HA(T){return cA(T,RA)}function rA(T){const x=T.charCodeAt(0);return x>=48&&x<=57}function mA(T){return cA(T,rA)}function XA(T){const x=T.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function kA(T){return cA(T,XA)}function GA(T){let x="",$="";for(;x=mA(T);)$+=x;return $}function KA(T){b(T);const x=T.currentChar();return x!=="%"&&p(gA.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function Ae(T){let x="";for(;;){const $=T.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($==="%")if(nA(T))x+=$,T.next();else break;else if($===Vn||$===ot)if(nA(T))x+=$,T.next();else{if(sA(T))break;x+=$,T.next()}else x+=$,T.next()}return x}function ee(T){b(T);let x="",$="";for(;x=HA(T);)$+=x;return T.currentChar()===Cr&&p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),$}function zA(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${GA(T)}`):x+=GA(T),T.currentChar()===Cr&&p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),x}function pe(T){return T!==xm&&T!==ot}function ct(T){b(T),w(T,"'");let x="",$="";for(;x=cA(T,pe);)x==="\\"?$+=At(T):$+=x;const oA=T.currentChar();return oA===ot||oA===Cr?(p(gA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oA===ot&&(T.next(),w(T,"'")),$):(w(T,"'"),$)}function At(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(gA.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ut(T,x,$){w(T,x);let oA="";for(let te=0;te<$;te++){const DA=kA(T);if(!DA){p(gA.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${oA}${T.currentChar()}`);break}oA+=DA}return`\\${x}${oA}`}function _t(T){return T!=="{"&&T!=="}"&&T!==Vn&&T!==ot}function xt(T){b(T);let x="",$="";for(;x=cA(T,_t);)$+=x;return $}function un(T){let x="",$="";for(;x=oe(T);)$+=x;return $}function z(T){const x=$=>{const oA=T.currentChar();return oA==="{"||oA==="%"||oA==="@"||oA==="|"||oA==="("||oA===")"||!oA||oA===Vn?$:($+=oA,T.next(),x($))};return x("")}function UA(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(gA.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),$=g(x,2,"{"),b(T),x.braceNest++,$;case"}":return x.braceNest>0&&x.currentType===2&&p(gA.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(gA.UNTERMINATED_CLOSING_BRACE,i(),0),$=ve(T,x)||B(x),x.braceNest=0,$;default:{let te=!0,DA=!0,PA=!0;if(sA(T))return x.braceNest>0&&p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),$=g(x,1,UA(T)),x.braceNest=0,x.inLinked=!1,$;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return p(gA.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,fn(T,x);if(te=S(T,x))return $=g(x,5,ee(T)),b(T),$;if(DA=E(T,x))return $=g(x,6,zA(T)),b(T),$;if(PA=L(T,x))return $=g(x,7,ct(T)),b(T),$;if(!te&&!DA&&!PA)return $=g(x,13,xt(T)),p(gA.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$.value),b(T),$;break}}return $}function ve(T,x){const{currentType:$}=x;let oA=null;const te=T.currentChar();switch(($===8||$===9||$===12||$===10)&&(te===ot||te===Vn)&&p(gA.INVALID_LINKED_FORMAT,i(),0),te){case"@":return T.next(),oA=g(x,8,"@"),x.inLinked=!0,oA;case".":return b(T),T.next(),g(x,9,".");case":":return b(T),T.next(),g(x,10,":");default:return sA(T)?(oA=g(x,1,UA(T)),x.braceNest=0,x.inLinked=!1,oA):U(T,x)||P(T,x)?(b(T),ve(T,x)):D(T,x)?(b(T),g(x,12,un(T))):N(T,x)?(b(T),te==="{"?Sn(T,x)||oA:g(x,11,z(T))):($===8&&p(gA.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 ve(T,x)||B(x);switch(T.currentChar()){case"{":return Sn(T,x)||B(x);case"}":return p(gA.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),g(x,3,"}");case"@":return ve(T,x)||B(x);default:{if(sA(T))return $=g(x,1,UA(T)),x.braceNest=0,x.inLinked=!1,$;const{isModulo:te,hasSpace:DA}=BA(T);if(te)return DA?g(x,0,Ae(T)):g(x,4,KA(T));if(nA(T))return g(x,0,Ae(T));break}}return $}function xr(){const{currentType:T,offset:x,startLoc:$,endLoc:oA}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=$,c.lastEndLoc=oA,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,A,e){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(A||e,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function OS(t={}){const A=t.location!==!1,{onError:e,onWarn:n}=t;function r(S,E,L,U,...D){const P=S.currentPosition();if(P.offset+=U,P.column+=U,e){const N=A?Ua(L,P):null,sA=Gi(E,N,{domain:TS,args:D});e(sA)}}function i(S,E,L,U,...D){const P=S.currentPosition();if(P.offset+=U,P.column+=U,n){const N=A?Ua(L,P):null;n(BS(E,N,D))}}function s(S,E,L){const U={type:S};return A&&(U.start=E,U.end=E,U.loc={start:L,end:L}),U}function a(S,E,L,U){U&&(S.type=U),A&&(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:D}=L,P=s(5,U,D);return P.index=parseInt(E,10),S.nextToken(),a(P,S.currentOffset(),S.currentPosition()),P}function f(S,E,L){const U=S.context(),{lastOffset:D,lastStartLoc:P}=U,N=s(4,D,P);return N.key=E,L===!0&&(N.modulo=!0),S.nextToken(),a(N,S.currentOffset(),S.currentPosition()),N}function p(S,E){const L=S.context(),{lastOffset:U,lastStartLoc:D}=L,P=s(9,U,D);return P.value=E.replace(_S,xS),S.nextToken(),a(P,S.currentOffset(),S.currentPosition()),P}function g(S){const E=S.nextToken(),L=S.context(),{lastOffset:U,lastStartLoc:D}=L,P=s(8,U,D);return E.type!==12?(r(S,gA.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),P.value="",a(P,U,D),{nextConsumeToken:E,node:P}):(E.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,an(E)),P.value=E.value||"",a(P,S.currentOffset(),S.currentPosition()),{node:P})}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 D=g(S);L.modifier=D.node,U=D.nextConsumeToken||S.nextToken()}switch(U.type!==10&&r(S,gA.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,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=B(S,U.value||"");break;case 5:U.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=f(S,U.value||"");break;case 6:U.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=u(S,U.value||"");break;case 7:U.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(U)),L.key=p(S,U.value||"");break;default:{r(S,gA.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const D=S.context(),P=s(7,D.offset,D.startLoc);return P.value="",a(P,D.offset,D.startLoc),L.key=P,a(L,D.offset,D.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,D=s(2,L,U);D.items=[];let P=null,N=null;do{const nA=P||S.nextToken();switch(P=null,nA.type){case 0:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(c(S,nA.value||""));break;case 6:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(u(S,nA.value||""));break;case 4:N=!0;break;case 5:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(f(S,nA.value||"",!!N)),N&&(i(S,va.USE_MODULO_SYNTAX,E.lastStartLoc,0,an(nA)),N=null);break;case 7:nA.value==null&&r(S,gA.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,an(nA)),D.items.push(p(S,nA.value||""));break;case 8:{const cA=w(S);D.items.push(cA.node),P=cA.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const sA=E.currentType===1?E.lastOffset:S.currentOffset(),BA=E.currentType===1?E.lastEndLoc:S.currentPosition();return a(D,sA,BA),D}function b(S,E,L,U){const D=S.context();let P=U.items.length===0;const N=s(1,E,L);N.cases=[],N.cases.push(U);do{const sA=Q(S);P||(P=sA.items.length===0),N.cases.push(sA)}while(D.currentType!==14);return P&&r(S,gA.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),a(N,S.currentOffset(),S.currentPosition()),N}function v(S){const E=S.context(),{offset:L,startLoc:U}=E,D=Q(S);return E.currentType===14?D:b(S,L,U,D)}function _(S){const E=SS(S,Sm({},t)),L=E.context(),U=s(0,L.offset,L.startLoc);return A&&U.loc&&(U.loc.source=S),U.body=v(E),t.onCacheKey&&(U.cacheKey=t.onCacheKey(S)),L.currentType!==14&&r(E,gA.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 A=(t.value||"").replace(/\r?\n/gu,"\\n");return A.length>10?A.slice(0,9)+"…":A}function LS(t,A={}){const e={ast:t,helpers:new Set};return{context:()=>e,helper:i=>(e.helpers.add(i),i)}}function Om(t,A){for(let e=0;e<t.length;e++)Tu(t[e],A)}function Tu(t,A){switch(t.type){case 1:Om(t.cases,A),A.helper("plural");break;case 2:Om(t.items,A);break;case 6:{Tu(t.key,A),A.helper("linked"),A.helper("type");break}case 5:A.helper("interpolate"),A.helper("list");break;case 4:A.helper("interpolate"),A.helper("named");break}}function HS(t,A={}){const e=LS(t);e.helper("normalize"),t.body&&Tu(t.body,e);const n=e.context();t.helpers=Array.from(n.helpers)}function kS(t){const A=t.body;return A.type===2?Lm(A):A.cases.forEach(e=>Lm(e)),t}function Lm(t){if(t.items.length===1){const A=t.items[0];(A.type===3||A.type===9)&&(t.static=A.value,delete A.value)}else{const A=[];for(let e=0;e<t.items.length;e++){const n=t.items[e];if(!(n.type===3||n.type===9)||n.value==null)break;A.push(n.value)}if(A.length===t.items.length){t.static=_m(A);for(let e=0;e<t.items.length;e++){const n=t.items[e];(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 A=t;Wi(A.body),A.b=A.body,delete A.body;break}case 1:{const A=t,e=A.cases;for(let n=0;n<e.length;n++)Wi(e[n]);A.c=e,delete A.cases;break}case 2:{const A=t,e=A.items;for(let n=0;n<e.length;n++)Wi(e[n]);A.i=e,delete A.items,A.static&&(A.s=A.static,delete A.static);break}case 3:case 9:case 8:case 7:{const A=t;A.value&&(A.v=A.value,delete A.value);break}case 6:{const A=t;Wi(A.key),A.k=A.key,delete A.key,A.modifier&&(Wi(A.modifier),A.m=A.modifier,delete A.modifier);break}case 5:{const A=t;A.i=A.index,delete A.index;break}case 4:{const A=t;A.k=A.key,delete A.key;break}default:throw Gi(gA.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:DS,args:[t.type]})}delete t.type}const NS="parser";function MS(t,A){const{sourceMap:e,filename:n,breakLineCode:r,needIndent:i}=A,s=A.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,A){const{helper:e}=t;t.push(`${e("linked")}(`),$i(t,A.key),A.modifier?(t.push(", "),$i(t,A.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function KS(t,A){const{helper:e,needIndent:n}=t;t.push(`${e("normalize")}([`),t.indent(n());const r=A.items.length;for(let i=0;i<r&&($i(t,A.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function PS(t,A){const{helper:e,needIndent:n}=t;if(A.cases.length>1){t.push(`${e("plural")}([`),t.indent(n());const r=A.cases.length;for(let i=0;i<r&&($i(t,A.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function VS(t,A){A.body?$i(t,A.body):t.push("null")}function $i(t,A){const{helper:e}=t;switch(A.type){case 0:VS(t,A);break;case 1:PS(t,A);break;case 2:KS(t,A);break;case 6:RS(t,A);break;case 8:t.push(JSON.stringify(A.value),A);break;case 7:t.push(JSON.stringify(A.value),A);break;case 5:t.push(`${e("interpolate")}(${e("list")}(${A.index}))`,A);break;case 4:t.push(`${e("interpolate")}(${e("named")}(${JSON.stringify(A.key)}))`,A);break;case 9:t.push(JSON.stringify(A.value),A);break;case 3:t.push(JSON.stringify(A.value),A);break;default:throw Gi(gA.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:NS,args:[A.type]})}}const GS=(t,A={})=>{const e=Tm(A.mode)?A.mode:"normal",n=Tm(A.filename)?A.filename:"message.intl",r=!!A.sourceMap,i=A.breakLineCode!=null?A.breakLineCode:e==="arrow"?";":`
125
+ `,s=A.needIndent?A.needIndent:e!=="arrow",a=t.helpers||[],c=MS(t,{mode:e,filename:n,sourceMap:r,breakLineCode:i,needIndent:s});c.push(e==="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,A={}){const e=Sm({},A),n=!!e.jit,r=!!e.minify,i=e.optimize==null?!0:e.optimize,a=OS(e).parse(t);return n?(i&&kS(a),r&&Wi(a),{ast:a,code:""}):(HS(a,e),GS(a,e))}/*!
126
126
  * core-base v9.13.1
127
127
  * (c) 2024 kazuya kawaguchi
128
128
  * Released under the MIT License.
129
- */function VS(){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 GS=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function WS(t){return GS.test(t)}function $S(t){const A=t.charCodeAt(0),e=t.charCodeAt(t.length-1);return A===e&&(A===34||A===39)?t.slice(1,-1):t}function JS(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 XS(t){const A=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:WS(A)?$S(A):"*"+A}function YS(t){const A=[];let e=-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&&(A.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=XS(s),s===!1))return!1;g[1]()}};function B(){const w=t[e+1];if(n===5&&w==="'"||n===6&&w==='"')return e++,a="\\"+w,g[0](),!0}for(;n!==null;)if(e++,i=t[e],!(i==="\\"&&B())){if(c=JS(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 A}}const Lm=new Map;function zS(t,A){return WA(t)?t[A]:null}function qS(t,A){if(!WA(t))return null;let e=Lm.get(A);if(e||(e=YS(A),e&&Lm.set(A,e)),!e)return null;const n=e.length;let r=t,i=0;for(;i<n;){const s=r[e[i]];if(s===void 0||le(r))return null;r=s,i++}return r}const ZS=t=>t,jS=t=>"",AT="text",eT=t=>t.length===0?"":aS(t),tT=oS;function Hm(t,A){return t=Math.abs(t),A===2?t?t>1?1:0:1:t?Math.min(t,2):0}function nT(t){const A=ze(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(ze(t.named.count)||ze(t.named.n))?ze(t.named.count)?t.named.count:ze(t.named.n)?t.named.n:A:A}function rT(t,A){A.count||(A.count=t),A.n||(A.n=t)}function iT(t={}){const A=t.locale,e=nT(t),n=WA(t.pluralRules)&&tA(A)&&le(t.pluralRules[A])?t.pluralRules[A]:Hm,r=WA(t.pluralRules)&&tA(A)&&le(t.pluralRules[A])?Hm:void 0,i=v=>v[n(e,v.length,r)],s=t.list||[],a=v=>s[v],c=t.named||{};ze(t.pluralIndex)&&rT(e,c);const u=v=>c[v];function f(v){const _=le(t.messages)?t.messages(v):WA(t.messages)?t.messages[v]:!1;return _||(t.parent?t.parent.message(v):jS)}const p=v=>t.modifiers?t.modifiers[v]:ZS,g=_A(t.processor)&&le(t.processor.normalize)?t.processor.normalize:eT,B=_A(t.processor)&&le(t.processor.interpolate)?t.processor.interpolate:tT,w=_A(t.processor)&&tA(t.processor.type)?t.processor.type:AT,b={list:a,named:u,plural:i,linked:(v,..._)=>{const[S,E]=_;let L="text",U="";_.length===1?WA(S)?(U=S.modifier||U,L=S.type||L):tA(S)&&(U=S||U):_.length===2&&(tA(S)&&(U=S||U),tA(E)&&(L=E||L));const D=f(v)(b),P=L==="vnode"&&be(D)&&U?D[0]:D;return U?p(U)(P,L):P},message:f,type:w,interpolate:B,normalize:g,values:qe({},s,c)};return b}let Ws=null;function sT(t){Ws=t}function oT(t,A,e){Ws&&Ws.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:A,meta:e})}const aT=lT("function:translate");function lT(t){return A=>Ws&&Ws.emit(t,A)}const km=va.__EXTEND_POINT__,si=Qa(km),at={NOT_FOUND_KEY:km,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()},cT={[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,...A){return Su(cT[t],...A)}const Dm=gA.__EXTEND_POINT__,ai=Qa(Dm),ke={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:uT}:void 0)}const uT={[ke.INVALID_ARGUMENT]:"Invalid arguments",[ke.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ke.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ke.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ke.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function _u(t,A){return A.locale!=null?Nm(A.locale):Nm(t.locale)}let xu;function Nm(t){if(tA(t))return t;if(le(t)){if(t.resolvedOnce&&xu!=null)return xu;if(t.constructor.name==="Function"){const A=t();if(sS(A))throw bn(ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return xu=A}else throw bn(ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bn(ke.NOT_SUPPORT_LOCALE_TYPE)}function fT(t,A,e){return[...new Set([e,...be(A)?A:WA(A)?Object.keys(A):tA(A)?[A]:[e]])]}function Mm(t,A,e){const n=tA(e)?e:$s,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[e];for(;be(s);)s=Rm(i,s,A);const a=be(A)||!_A(A)?A:A.default?A.default:null;s=tA(a)?[a]:a,be(s)&&Rm(i,s,!1),r.__localeChainCache.set(n,i)}return i}function Rm(t,A,e){let n=!0;for(let r=0;r<A.length&&ne(n);r++){const i=A[r];tA(i)&&(n=dT(t,A[r],e))}return n}function dT(t,A,e){let n;const r=A.split("-");do{const i=r.join("-");n=hT(t,i,e),r.splice(-1,1)}while(r.length&&n===!0);return n}function hT(t,A,e){let n=!1;if(!t.includes(A)&&(n=!0,A)){n=A[A.length-1]!=="!";const r=A.replace(/!/g,"");t.push(r),(be(e)||_A(e))&&e[r]&&(n=e[r])}return n}const pT="9.13.1",Ia=-1,$s="en-US",Sa="",Km=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function gT(){return{upper:(t,A)=>A==="text"&&tA(t)?t.toUpperCase():A==="vnode"&&WA(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,A)=>A==="text"&&tA(t)?t.toLowerCase():A==="vnode"&&WA(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,A)=>A==="text"&&tA(t)?Km(t):A==="vnode"&&WA(t)&&"__v_isVNode"in t?Km(t.children):t}}let Pm;function Vm(t){Pm=t}let Gm;function mT(t){Gm=t}let Wm;function BT(t){Wm=t}let $m=null;const wT=t=>{$m=t},CT=()=>$m;let Jm=null;const Xm=t=>{Jm=t},yT=()=>Jm;let Ym=0;function ET(t={}){const A=le(t.onWarn)?t.onWarn:Pn,e=tA(t.version)?t.version:pT,n=tA(t.locale)||le(t.locale)?t.locale:$s,r=le(n)?$s:n,i=be(t.fallbackLocale)||_A(t.fallbackLocale)||tA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=_A(t.messages)?t.messages:{[r]:{}},a=_A(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=_A(t.numberFormats)?t.numberFormats:{[r]:{}},u=qe({},t.modifiers||{},gT()),f=t.pluralRules||{},p=le(t.missing)?t.missing:null,g=ne(t.missingWarn)||Vi(t.missingWarn)?t.missingWarn:!0,B=ne(t.fallbackWarn)||Vi(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,Q=!!t.unresolving,b=le(t.postTranslation)?t.postTranslation:null,v=_A(t.processor)?t.processor:null,_=ne(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=le(t.messageCompiler)?t.messageCompiler:Pm;process.env.NODE_ENV!=="production"&&le(t.messageCompiler)&&Um(oi(at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=le(t.messageResolver)?t.messageResolver:Gm||zS,U=le(t.localeFallbacker)?t.localeFallbacker:Wm||fT,D=WA(t.fallbackContext)?t.fallbackContext:void 0,P=t,N=WA(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,sA=WA(P.__numberFormatters)?P.__numberFormatters:new Map,BA=WA(P.__meta)?P.__meta:{};Ym++;const nA={version:e,cid:Ym,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:D,onWarn:A,__meta:BA};return nA.datetimeFormats=a,nA.numberFormats=c,nA.__datetimeFormatters=N,nA.__numberFormatters=sA,process.env.NODE_ENV!=="production"&&(nA.__v_emitter=P.__v_emitter!=null?P.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&oT(nA,e,BA),nA}function Ta(t,A){return t instanceof RegExp?t.test(A):t}function zm(t,A){return t instanceof RegExp?t.test(A):t}function Ou(t,A,e,n,r){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:e,key:A,type:r,groupId:`${r}:${A}`})}if(i!==null){const a=i(t,e,A,r);return tA(a)?a:A}else return process.env.NODE_ENV!=="production"&&zm(n,A)&&s(oi(at.NOT_FOUND_KEY,{key:A,locale:e})),A}function Js(t,A,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,A)}function qm(t,A){return t===A?!1:t.split("-")[0]===A.split("-")[0]}function QT(t,A){const e=A.indexOf(t);if(e===-1)return!1;for(let n=e+1;n<A.length;n++)if(qm(t,A[n]))return!0;return!1}function Lu(t){return e=>FT(e,t)}function FT(t,A){const e=A.b||A.body;if((e.t||e.type)===1){const n=e,r=n.c||n.cases;return t.plural(r.reduce((i,s)=>[...i,Zm(t,s)],[]))}else return Zm(t,e)}function Zm(t,A){const e=A.s||A.static;if(e)return t.type==="text"?e:t.normalize([e]);{const n=(A.i||A.items).reduce((r,i)=>[...r,Hu(t,i)],[]);return t.normalize(n)}}function Hu(t,A){const e=A.t||A.type;switch(e){case 3:{const n=A;return n.v||n.value}case 9:{const n=A;return n.v||n.value}case 4:{const n=A;return t.interpolate(t.named(n.k||n.key))}case 5:{const n=A;return t.interpolate(t.list(n.i!=null?n.i:n.index))}case 6:{const n=A,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=A;return n.v||n.value}case 8:{const n=A;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${e}`)}}const bT="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function jm(t,A){A&&wS(t)&&Pn(Su(bT,{source:t}))}const AB=t=>t;let Ji=Object.create(null);function eB(t){t.code===va.USE_MODULO_SYNTAX&&Pn(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
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 A=t.charCodeAt(0),e=t.charCodeAt(t.length-1);return A===e&&(A===34||A===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 A=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:XS(A)?YS(A):"*"+A}function ZS(t){const A=[];let e=-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&&(A.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[e+1];if(n===5&&w==="'"||n===6&&w==='"')return e++,a="\\"+w,g[0](),!0}for(;n!==null;)if(e++,i=t[e],!(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 A}}const Hm=new Map;function jS(t,A){return WA(t)?t[A]:null}function AT(t,A){if(!WA(t))return null;let e=Hm.get(A);if(e||(e=ZS(A),e&&Hm.set(A,e)),!e)return null;const n=e.length;let r=t,i=0;for(;i<n;){const s=r[e[i]];if(s===void 0||le(r))return null;r=s,i++}return r}const eT=t=>t,tT=t=>"",nT="text",rT=t=>t.length===0?"":uS(t),iT=cS;function km(t,A){return t=Math.abs(t),A===2?t?t>1?1:0:1:t?Math.min(t,2):0}function sT(t){const A=ze(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(ze(t.named.count)||ze(t.named.n))?ze(t.named.count)?t.named.count:ze(t.named.n)?t.named.n:A:A}function oT(t,A){A.count||(A.count=t),A.n||(A.n=t)}function aT(t={}){const A=t.locale,e=sT(t),n=WA(t.pluralRules)&&tA(A)&&le(t.pluralRules[A])?t.pluralRules[A]:km,r=WA(t.pluralRules)&&tA(A)&&le(t.pluralRules[A])?km:void 0,i=v=>v[n(e,v.length,r)],s=t.list||[],a=v=>s[v],c=t.named||{};ze(t.pluralIndex)&&oT(e,c);const u=v=>c[v];function f(v){const _=le(t.messages)?t.messages(v):WA(t.messages)?t.messages[v]:!1;return _||(t.parent?t.parent.message(v):tT)}const p=v=>t.modifiers?t.modifiers[v]:eT,g=_A(t.processor)&&le(t.processor.normalize)?t.processor.normalize:rT,B=_A(t.processor)&&le(t.processor.interpolate)?t.processor.interpolate:iT,w=_A(t.processor)&&tA(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?WA(S)?(U=S.modifier||U,L=S.type||L):tA(S)&&(U=S||U):_.length===2&&(tA(S)&&(U=S||U),tA(E)&&(L=E||L));const D=f(v)(b),P=L==="vnode"&&be(D)&&U?D[0]:D;return U?p(U)(P,L):P},message:f,type:w,interpolate:B,normalize:g,values:qe({},s,c)};return b}let Ws=null;function lT(t){Ws=t}function cT(t,A,e){Ws&&Ws.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:A,meta:e})}const uT=fT("function:translate");function fT(t){return A=>Ws&&Ws.emit(t,A)}const Dm=va.__EXTEND_POINT__,si=Qa(Dm),at={NOT_FOUND_KEY:Dm,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,...A){return Su(dT[t],...A)}const Nm=gA.__EXTEND_POINT__,ai=Qa(Nm),ke={INVALID_ARGUMENT:Nm,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={[ke.INVALID_ARGUMENT]:"Invalid arguments",[ke.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ke.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ke.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ke.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function _u(t,A){return A.locale!=null?Mm(A.locale):Mm(t.locale)}let xu;function Mm(t){if(tA(t))return t;if(le(t)){if(t.resolvedOnce&&xu!=null)return xu;if(t.constructor.name==="Function"){const A=t();if(lS(A))throw bn(ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return xu=A}else throw bn(ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bn(ke.NOT_SUPPORT_LOCALE_TYPE)}function pT(t,A,e){return[...new Set([e,...be(A)?A:WA(A)?Object.keys(A):tA(A)?[A]:[e]])]}function Rm(t,A,e){const n=tA(e)?e:$s,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[e];for(;be(s);)s=Km(i,s,A);const a=be(A)||!_A(A)?A:A.default?A.default:null;s=tA(a)?[a]:a,be(s)&&Km(i,s,!1),r.__localeChainCache.set(n,i)}return i}function Km(t,A,e){let n=!0;for(let r=0;r<A.length&&ne(n);r++){const i=A[r];tA(i)&&(n=gT(t,A[r],e))}return n}function gT(t,A,e){let n;const r=A.split("-");do{const i=r.join("-");n=mT(t,i,e),r.splice(-1,1)}while(r.length&&n===!0);return n}function mT(t,A,e){let n=!1;if(!t.includes(A)&&(n=!0,A)){n=A[A.length-1]!=="!";const r=A.replace(/!/g,"");t.push(r),(be(e)||_A(e))&&e[r]&&(n=e[r])}return n}const BT="9.13.1",Ia=-1,$s="en-US",Sa="",Pm=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function wT(){return{upper:(t,A)=>A==="text"&&tA(t)?t.toUpperCase():A==="vnode"&&WA(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,A)=>A==="text"&&tA(t)?t.toLowerCase():A==="vnode"&&WA(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,A)=>A==="text"&&tA(t)?Pm(t):A==="vnode"&&WA(t)&&"__v_isVNode"in t?Pm(t.children):t}}let Vm;function Gm(t){Vm=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 A=le(t.onWarn)?t.onWarn:Pn,e=tA(t.version)?t.version:BT,n=tA(t.locale)||le(t.locale)?t.locale:$s,r=le(n)?$s:n,i=be(t.fallbackLocale)||_A(t.fallbackLocale)||tA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=_A(t.messages)?t.messages:{[r]:{}},a=_A(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=_A(t.numberFormats)?t.numberFormats:{[r]:{}},u=qe({},t.modifiers||{},wT()),f=t.pluralRules||{},p=le(t.missing)?t.missing:null,g=ne(t.missingWarn)||Vi(t.missingWarn)?t.missingWarn:!0,B=ne(t.fallbackWarn)||Vi(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,Q=!!t.unresolving,b=le(t.postTranslation)?t.postTranslation:null,v=_A(t.processor)?t.processor:null,_=ne(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=le(t.messageCompiler)?t.messageCompiler:Vm;process.env.NODE_ENV!=="production"&&le(t.messageCompiler)&&vm(oi(at.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=le(t.messageResolver)?t.messageResolver:Wm||jS,U=le(t.localeFallbacker)?t.localeFallbacker:$m||pT,D=WA(t.fallbackContext)?t.fallbackContext:void 0,P=t,N=WA(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,sA=WA(P.__numberFormatters)?P.__numberFormatters:new Map,BA=WA(P.__meta)?P.__meta:{};zm++;const nA={version:e,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:D,onWarn:A,__meta:BA};return nA.datetimeFormats=a,nA.numberFormats=c,nA.__datetimeFormatters=N,nA.__numberFormatters=sA,process.env.NODE_ENV!=="production"&&(nA.__v_emitter=P.__v_emitter!=null?P.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&cT(nA,e,BA),nA}function Ta(t,A){return t instanceof RegExp?t.test(A):t}function qm(t,A){return t instanceof RegExp?t.test(A):t}function Ou(t,A,e,n,r){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const a=t.__v_emitter;a&&a.emit("missing",{locale:e,key:A,type:r,groupId:`${r}:${A}`})}if(i!==null){const a=i(t,e,A,r);return tA(a)?a:A}else return process.env.NODE_ENV!=="production"&&qm(n,A)&&s(oi(at.NOT_FOUND_KEY,{key:A,locale:e})),A}function Js(t,A,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,A)}function Zm(t,A){return t===A?!1:t.split("-")[0]===A.split("-")[0]}function UT(t,A){const e=A.indexOf(t);if(e===-1)return!1;for(let n=e+1;n<A.length;n++)if(Zm(t,A[n]))return!0;return!1}function Lu(t){return e=>vT(e,t)}function vT(t,A){const e=A.b||A.body;if((e.t||e.type)===1){const n=e,r=n.c||n.cases;return t.plural(r.reduce((i,s)=>[...i,jm(t,s)],[]))}else return jm(t,e)}function jm(t,A){const e=A.s||A.static;if(e)return t.type==="text"?e:t.normalize([e]);{const n=(A.i||A.items).reduce((r,i)=>[...r,Hu(t,i)],[]);return t.normalize(n)}}function Hu(t,A){const e=A.t||A.type;switch(e){case 3:{const n=A;return n.v||n.value}case 9:{const n=A;return n.v||n.value}case 4:{const n=A;return t.interpolate(t.named(n.k||n.key))}case 5:{const n=A;return t.interpolate(t.list(n.i!=null?n.i:n.index))}case 6:{const n=A,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=A;return n.v||n.value}case 8:{const n=A;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${e}`)}}const IT="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function AB(t,A){A&&ES(t)&&Pn(Su(IT,{source:t}))}const eB=t=>t;let Ji=Object.create(null);function tB(t){t.code===va.USE_MODULO_SYNTAX&&Pn(`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=>WA(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function tB(t,A={}){let e=!1;const n=A.onError||mS;return A.onError=r=>{e=!0,n(r)},{...PS(t,A),detectError:e}}const UT=(t,A)=>{if(!tA(t))throw bn(ke.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(A.onWarn=eB);{const e=ne(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&jm(t,e);const r=(A.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{code:s,detectError:a}=tB(t,A),c=new Function(`return ${s}`)();return a?c:Ji[r]=c}};function vT(t,A){if(process.env.NODE_ENV!=="production"&&(A.onWarn=eB),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&tA(t)){const e=ne(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&jm(t,e);const r=(A.onCacheKey||AB)(t),i=Ji[r];if(i)return i;const{ast:s,detectError:a}=tB(t,{...A,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 Pn(`the message that is resolve with key '${A.key}' is not supported for jit compilation`),()=>t;const e=t.cacheKey;if(e){const n=Ji[e];return n||(Ji[e]=Lu(t))}else return Lu(t)}}const nB=()=>"",Pt=t=>le(t);function rB(t,...A){const{fallbackFormat:e,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=ku(...A),f=ne(u.missingWarn)?u.missingWarn:t.missingWarn,p=ne(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=ne(u.escapeParameter)?u.escapeParameter:t.escapeParameter,B=!!u.resolvedMessage,w=tA(u.default)||ne(u.default)?ne(u.default)?i?c:()=>c:u.default:e?i?c:()=>c:"",Q=e||w!=="",b=_u(t,u);g&&IT(u);let[v,_,S]=B?[c,b,a[b]||{}]:iB(t,c,b,s,p,f),E=v,L=c;if(!B&&!(tA(E)||li(E)||Pt(E))&&Q&&(E=w,L=E),!B&&(!(tA(E)||li(E)||Pt(E))||!tA(_)))return r?Ia:c;if(process.env.NODE_ENV!=="production"&&tA(E)&&t.messageCompiler==null)return Pn(`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 D=()=>{U=!0},P=Pt(E)?E:sB(t,c,_,E,L,D);if(U)return E;const N=xT(t,_,S,u),sA=iT(N),BA=ST(t,P,sA),nA=n?n(BA,c):BA;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const cA={timestamp:Date.now(),key:tA(c)?c:Pt(E)?E.key:"",locale:_||(Pt(E)?E.locale:""),format:tA(E)?E:Pt(E)?E.source:"",message:nA};cA.meta=qe({},t.__meta,CT()||{}),aT(cA)}return nA}function IT(t){be(t.list)?t.list=t.list.map(A=>tA(A)?ym(A):A):WA(t.named)&&Object.keys(t.named).forEach(A=>{tA(t.named[A])&&(t.named[A]=ym(t.named[A]))})}function iB(t,A,e,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,e);let p={},g,B=null,w=e,Q=null;const b="translate";for(let v=0;v<f.length;v++){if(g=Q=f[v],process.env.NODE_ENV!=="production"&&e!==g&&!qm(e,g)&&Ta(r,A)&&a(oi(at.FALLBACK_TO_TRANSLATE,{key:A,target:g})),process.env.NODE_ENV!=="production"&&e!==g){const L=t.__v_emitter;L&&L.emit("fallback",{type:b,key:A,from:w,to:Q,groupId:`${b}:${A}`})}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,A))===null&&(B=p[A]),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:A,message:B,time:L-_,groupId:`${b}:${A}`}),S&&E&&St&&ii&&(St(E),ii("intlify message resolve",S,E))}if(tA(B)||li(B)||Pt(B))break;if(!QT(g,f)){const L=Ou(t,A,g,i,b);L!==A&&(B=L)}w=Q}return[B,g,p]}function sB(t,A,e,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Pt(n)){const g=n;return g.locale=g.locale||e,g.key=g.key||A,g}if(s==null){const g=()=>n;return g.locale=e,g.key=A,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,TT(t,e,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:${A}`}),u&&f&&St&&ii&&(St(f),ii("intlify message compilation",u,f))}return p.locale=e,p.key=A,p.source=n,p}function ST(t,A,e){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=A(e);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:${A.key}`}),r&&i&&St&&ii&&(St(i),ii("intlify message evaluation",r,i))}return s}function ku(...t){const[A,e,n]=t,r={};if(!tA(A)&&!ze(A)&&!Pt(A)&&!li(A))throw bn(ke.INVALID_ARGUMENT);const i=ze(A)?String(A):(Pt(A),A);return ze(e)?r.plural=e:tA(e)?r.default=e:_A(e)&&!ya(e)?r.named=e:be(e)&&(r.list=e),ze(n)?r.plural=n:tA(n)?r.default=n:_A(n)&&qe(r,n),[i,r]}function TT(t,A,e,n,r,i){return{locale:A,key:e,warnHtmlMessage:r,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=_T(n),c=`Message compilation error: ${s.message}`,u=s.location&&a&&lS(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:${e}`}),console.error(u?`${c}
132
- ${u}`:c)}else throw s},onCacheKey:s=>tS(A,e,s)}}function _T(t){if(tA(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function xT(t,A,e,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=t,g={locale:A,modifiers:r,pluralRules:i,messages:B=>{let w=s(e,B);if(w==null&&f){const[,,Q]=iB(f,B,A,a,c,u);w=s(Q,B)}if(tA(w)||li(w)){let Q=!1;const v=sB(t,B,A,w,B,()=>{Q=!0});return Q?nB:v}else return Pt(w)?w:nB}};return t.processor&&(g.processor=t.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),ze(n.plural)&&(g.pluralIndex=n.plural),g}const oB=typeof Intl<"u",aB={dateTimeFormat:oB&&typeof Intl.DateTimeFormat<"u",numberFormat:oB&&typeof Intl.NumberFormat<"u"};function lB(t,...A){const{datetimeFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!aB.dateTimeFormat)return i(oi(at.CANNOT_FORMAT_DATE)),Sa;const[c,u,f,p]=Du(...A),g=ne(f.missingWarn)?f.missingWarn:t.missingWarn,B=ne(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!tA(c)||c==="")return new Intl.DateTimeFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="datetime format";for(let N=0;N<b.length;N++){if(_=L=b[N],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 sA=t.__v_emitter;sA&&sA.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=e[_]||{},S=v[c],_A(S))break;Ou(t,c,_,g,U),E=L}if(!_A(S)||!tA(_))return n?Ia:c;let D=`${_}__${c}`;ya(p)||(D=`${D}__${JSON.stringify(p)}`);let P=a.get(D);return P||(P=new Intl.DateTimeFormat(_,qe({},S,p)),a.set(D,P)),w?P.formatToParts(u):P.format(u)}const cB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Du(...t){const[A,e,n,r]=t,i={};let s={},a;if(tA(A)){const c=A.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw bn(ke.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(ke.INVALID_ISO_DATE_ARGUMENT)}}else if(rS(A)){if(isNaN(A.getTime()))throw bn(ke.INVALID_DATE_ARGUMENT);a=A}else if(ze(A))a=A;else throw bn(ke.INVALID_ARGUMENT);return tA(e)?i.key=e:_A(e)&&Object.keys(e).forEach(c=>{cB.includes(c)?s[c]=e[c]:i[c]=e[c]}),tA(n)?i.locale=n:_A(n)&&(s=n),_A(r)&&(s=r),[i.key||"",a,i,s]}function uB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function fB(t,...A){const{numberFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!aB.numberFormat)return i(oi(at.CANNOT_FORMAT_NUMBER)),Sa;const[c,u,f,p]=Nu(...A),g=ne(f.missingWarn)?f.missingWarn:t.missingWarn,B=ne(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!tA(c)||c==="")return new Intl.NumberFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="number format";for(let N=0;N<b.length;N++){if(_=L=b[N],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 sA=t.__v_emitter;sA&&sA.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=e[_]||{},S=v[c],_A(S))break;Ou(t,c,_,g,U),E=L}if(!_A(S)||!tA(_))return n?Ia:c;let D=`${_}__${c}`;ya(p)||(D=`${D}__${JSON.stringify(p)}`);let P=a.get(D);return P||(P=new Intl.NumberFormat(_,qe({},S,p)),a.set(D,P)),w?P.formatToParts(u):P.format(u)}const dB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nu(...t){const[A,e,n,r]=t,i={};let s={};if(!ze(A))throw bn(ke.INVALID_ARGUMENT);const a=A;return tA(e)?i.key=e:_A(e)&&Object.keys(e).forEach(c=>{dB.includes(c)?s[c]=e[c]:i[c]=e[c]}),tA(n)?i.locale=n:_A(n)&&(s=n),_A(r)&&(s=r),[i.key||"",a,i,s]}function hB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}VS();/*!
131
+ (message compiler warning message: ${t.message})`)}const li=t=>WA(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function nB(t,A={}){let e=!1;const n=A.onError||CS;return A.onError=r=>{e=!0,n(r)},{...WS(t,A),detectError:e}}const ST=(t,A)=>{if(!tA(t))throw bn(ke.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(A.onWarn=tB);{const e=ne(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&AB(t,e);const r=(A.onCacheKey||eB)(t),i=Ji[r];if(i)return i;const{code:s,detectError:a}=nB(t,A),c=new Function(`return ${s}`)();return a?c:Ji[r]=c}};function TT(t,A){if(process.env.NODE_ENV!=="production"&&(A.onWarn=tB),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&tA(t)){const e=ne(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&AB(t,e);const r=(A.onCacheKey||eB)(t),i=Ji[r];if(i)return i;const{ast:s,detectError:a}=nB(t,{...A,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 Pn(`the message that is resolve with key '${A.key}' is not supported for jit compilation`),()=>t;const e=t.cacheKey;if(e){const n=Ji[e];return n||(Ji[e]=Lu(t))}else return Lu(t)}}const rB=()=>"",Pt=t=>le(t);function iB(t,...A){const{fallbackFormat:e,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=ku(...A),f=ne(u.missingWarn)?u.missingWarn:t.missingWarn,p=ne(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=ne(u.escapeParameter)?u.escapeParameter:t.escapeParameter,B=!!u.resolvedMessage,w=tA(u.default)||ne(u.default)?ne(u.default)?i?c:()=>c:u.default:e?i?c:()=>c:"",Q=e||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&&!(tA(E)||li(E)||Pt(E))&&Q&&(E=w,L=E),!B&&(!(tA(E)||li(E)||Pt(E))||!tA(_)))return r?Ia:c;if(process.env.NODE_ENV!=="production"&&tA(E)&&t.messageCompiler==null)return Pn(`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 D=()=>{U=!0},P=Pt(E)?E:oB(t,c,_,E,L,D);if(U)return E;const N=HT(t,_,S,u),sA=aT(N),BA=xT(t,P,sA),nA=n?n(BA,c):BA;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const cA={timestamp:Date.now(),key:tA(c)?c:Pt(E)?E.key:"",locale:_||(Pt(E)?E.locale:""),format:tA(E)?E:Pt(E)?E.source:"",message:nA};cA.meta=qe({},t.__meta,QT()||{}),uT(cA)}return nA}function _T(t){be(t.list)?t.list=t.list.map(A=>tA(A)?Em(A):A):WA(t.named)&&Object.keys(t.named).forEach(A=>{tA(t.named[A])&&(t.named[A]=Em(t.named[A]))})}function sB(t,A,e,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,e);let p={},g,B=null,w=e,Q=null;const b="translate";for(let v=0;v<f.length;v++){if(g=Q=f[v],process.env.NODE_ENV!=="production"&&e!==g&&!Zm(e,g)&&Ta(r,A)&&a(oi(at.FALLBACK_TO_TRANSLATE,{key:A,target:g})),process.env.NODE_ENV!=="production"&&e!==g){const L=t.__v_emitter;L&&L.emit("fallback",{type:b,key:A,from:w,to:Q,groupId:`${b}:${A}`})}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,A))===null&&(B=p[A]),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:A,message:B,time:L-_,groupId:`${b}:${A}`}),S&&E&&St&&ii&&(St(E),ii("intlify message resolve",S,E))}if(tA(B)||li(B)||Pt(B))break;if(!UT(g,f)){const L=Ou(t,A,g,i,b);L!==A&&(B=L)}w=Q}return[B,g,p]}function oB(t,A,e,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(Pt(n)){const g=n;return g.locale=g.locale||e,g.key=g.key||A,g}if(s==null){const g=()=>n;return g.locale=e,g.key=A,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,e,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:${A}`}),u&&f&&St&&ii&&(St(f),ii("intlify message compilation",u,f))}return p.locale=e,p.key=A,p.source=n,p}function xT(t,A,e){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=A(e);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:${A.key}`}),r&&i&&St&&ii&&(St(i),ii("intlify message evaluation",r,i))}return s}function ku(...t){const[A,e,n]=t,r={};if(!tA(A)&&!ze(A)&&!Pt(A)&&!li(A))throw bn(ke.INVALID_ARGUMENT);const i=ze(A)?String(A):(Pt(A),A);return ze(e)?r.plural=e:tA(e)?r.default=e:_A(e)&&!ya(e)?r.named=e:be(e)&&(r.list=e),ze(n)?r.plural=n:tA(n)?r.default=n:_A(n)&&qe(r,n),[i,r]}function OT(t,A,e,n,r,i){return{locale:A,key:e,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:${e}`}),console.error(u?`${c}
132
+ ${u}`:c)}else throw s},onCacheKey:s=>iS(A,e,s)}}function LT(t){if(tA(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function HT(t,A,e,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=t,g={locale:A,modifiers:r,pluralRules:i,messages:B=>{let w=s(e,B);if(w==null&&f){const[,,Q]=sB(f,B,A,a,c,u);w=s(Q,B)}if(tA(w)||li(w)){let Q=!1;const v=oB(t,B,A,w,B,()=>{Q=!0});return Q?rB:v}else return Pt(w)?w:rB}};return t.processor&&(g.processor=t.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),ze(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,...A){const{datetimeFormats:e,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]=Du(...A),g=ne(f.missingWarn)?f.missingWarn:t.missingWarn,B=ne(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!tA(c)||c==="")return new Intl.DateTimeFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="datetime format";for(let N=0;N<b.length;N++){if(_=L=b[N],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 sA=t.__v_emitter;sA&&sA.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=e[_]||{},S=v[c],_A(S))break;Ou(t,c,_,g,U),E=L}if(!_A(S)||!tA(_))return n?Ia:c;let D=`${_}__${c}`;ya(p)||(D=`${D}__${JSON.stringify(p)}`);let P=a.get(D);return P||(P=new Intl.DateTimeFormat(_,qe({},S,p)),a.set(D,P)),w?P.formatToParts(u):P.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 Du(...t){const[A,e,n,r]=t,i={};let s={},a;if(tA(A)){const c=A.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw bn(ke.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(ke.INVALID_ISO_DATE_ARGUMENT)}}else if(oS(A)){if(isNaN(A.getTime()))throw bn(ke.INVALID_DATE_ARGUMENT);a=A}else if(ze(A))a=A;else throw bn(ke.INVALID_ARGUMENT);return tA(e)?i.key=e:_A(e)&&Object.keys(e).forEach(c=>{uB.includes(c)?s[c]=e[c]:i[c]=e[c]}),tA(n)?i.locale=n:_A(n)&&(s=n),_A(r)&&(s=r),[i.key||"",a,i,s]}function fB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function dB(t,...A){const{numberFormats:e,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]=Nu(...A),g=ne(f.missingWarn)?f.missingWarn:t.missingWarn,B=ne(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,Q=_u(t,f),b=s(t,r,Q);if(!tA(c)||c==="")return new Intl.NumberFormat(Q,p).format(u);let v={},_,S=null,E=Q,L=null;const U="number format";for(let N=0;N<b.length;N++){if(_=L=b[N],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 sA=t.__v_emitter;sA&&sA.emit("fallback",{type:U,key:c,from:E,to:L,groupId:`${U}:${c}`})}if(v=e[_]||{},S=v[c],_A(S))break;Ou(t,c,_,g,U),E=L}if(!_A(S)||!tA(_))return n?Ia:c;let D=`${_}__${c}`;ya(p)||(D=`${D}__${JSON.stringify(p)}`);let P=a.get(D);return P||(P=new Intl.NumberFormat(_,qe({},S,p)),a.set(D,P)),w?P.formatToParts(u):P.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 Nu(...t){const[A,e,n,r]=t,i={};let s={};if(!ze(A))throw bn(ke.INVALID_ARGUMENT);const a=A;return tA(e)?i.key=e:_A(e)&&Object.keys(e).forEach(c=>{hB.includes(c)?s[c]=e[c]:i[c]=e[c]}),tA(n)?i.locale=n:_A(n)&&(s=n),_A(r)&&(s=r),[i.key||"",a,i,s]}function pB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}$S();/*!
133
133
  * vue-i18n v9.13.1
134
134
  * (c) 2024 kazuya kawaguchi
135
135
  * Released under the MIT License.
136
- */const OT="9.13.1";function LT(){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 pB=at.__EXTEND_POINT__,Gn=Qa(pB),mt={FALLBACK_TO_ROOT:pB,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()},HT={[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,...A){return Su(HT[t],...A)}const gB=ke.__EXTEND_POINT__,Bt=Qa(gB),de={UNEXPECTED_RETURN_TYPE:gB,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,...A){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:kT,args:A}:void 0)}const kT={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.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",[de.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"),Pu=Rn("__enableEmitter"),Vu=Rn("__disableEmitter"),DT=Rn("__setPluralRules"),mB=Rn("__injectWithOption"),Gu=Rn("__dispose");function Xs(t){if(!WA(t))return t;for(const A in t)if(Ea(t,A))if(!A.includes("."))WA(t[A])&&Xs(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!WA(r[e[s]])){process.env.NODE_ENV!=="production"&&Pn(_a(mt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),WA(r[e[n]])&&Xs(r[e[n]])}return t}function Wu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=_A(e)?e:be(n)?{}:{[t]:{}};if(be(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 tA(a)&&ba(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ea(s,a)&&Xs(s[a]);return s}function BB(t){return t.type}function NT(t,A,e){let n=WA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Wu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(WA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(WA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function wB(t){return h.createVNode(h.Text,null,t,0)}const CB="__INTLIFY_META__",yB=()=>[],MT=()=>!1;let EB=0;function QB(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const RT=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=BB(t)[CB])?{[CB]:A}:null};function KT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson,s=Mn?h.ref:h.shallowRef,a=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&a&&Um(_a(mt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=ne(t.inheritLocale)?t.inheritLocale:!0;const u=s(e&&c?e.locale.value:tA(t.locale)?t.locale:$s),f=s(e&&c?e.fallbackLocale.value:tA(t.fallbackLocale)||be(t.fallbackLocale)||_A(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_A(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),B=s(_A(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=e?e.missingWarn:ne(t.missingWarn)||Vi(t.missingWarn)?t.missingWarn:!0,Q=e?e.fallbackWarn:ne(t.fallbackWarn)||Vi(t.fallbackWarn)?t.fallbackWarn:!0,b=e?e.fallbackRoot:ne(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=le(t.missing)?t.missing:null,S=le(t.missing)?QB(t.missing):null,E=le(t.postTranslation)?t.postTranslation:null,L=e?e.warnHtmlMessage:ne(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const D=e?e.modifiers:_A(t.modifiers)?t.modifiers:{};let P=t.pluralRules||e&&e.pluralRules,N;N=(()=>{r&&Xm(null);const R={version:OT,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:D,pluralRules:P,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=_A(N)?N.__datetimeFormatters:void 0,R.__numberFormatters=_A(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_A(N)?N.__v_emitter:void 0);const X=ET(R);return r&&Xm(X),X})(),Js(N,u.value,f.value);function BA(){return[u.value,f.value,p.value,g.value,B.value]}const nA=h.computed({get:()=>u.value,set:R=>{u.value=R,N.locale=u.value}}),cA=h.computed({get:()=>f.value,set:R=>{f.value=R,N.fallbackLocale=f.value,Js(N,u.value,R)}}),LA=h.computed(()=>p.value),oe=h.computed(()=>g.value),RA=h.computed(()=>B.value);function HA(){return le(E)?E:null}function rA(R){E=R,N.postTranslation=R}function mA(){return _}function XA(R){R!==null&&(S=QB(R)),_=R,N.missing=S}function kA(R,X){return R!=="translate"||!X.resolvedMessage}const GA=(R,X,SA,re,Ct,Tn)=>{BA();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=e?yT():void 0),Jt=R(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=void 0)}if(SA!=="translate exists"&&ze(Jt)&&Jt===Ia||SA==="translate exists"&&!Jt){const[K,iA]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(K)&&kA(SA,iA)&&(b&&(Ta(Q,K)||zm(w,K))&&Pn(_a(mt.FALLBACK_TO_ROOT,{key:K,type:SA})),process.env.NODE_ENV!=="production")){const{__v_emitter:uA}=N;uA&&b&&uA.emit("fallback",{type:SA,key:K,to:"global",groupId:`${SA}:${K}`})}return e&&b?re(e):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(de.UNEXPECTED_RETURN_TYPE)}};function KA(...R){return GA(X=>Reflect.apply(rB,null,[X,...R]),()=>ku(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>tA(X))}function Ae(...R){const[X,SA,re]=R;if(re&&!WA(re))throw Er(de.INVALID_ARGUMENT);return KA(X,SA,qe({resolvedMessage:!0},re||{}))}function ee(...R){return GA(X=>Reflect.apply(lB,null,[X,...R]),()=>Du(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Sa,X=>tA(X))}function zA(...R){return GA(X=>Reflect.apply(fB,null,[X,...R]),()=>Nu(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Sa,X=>tA(X))}function he(R){return R.map(X=>tA(X)||ze(X)||ne(X)?wB(String(X)):X)}const At={normalize:he,interpolate:R=>R,type:"vnode"};function ut(...R){return GA(X=>{let SA;const re=X;try{re.processor=At,SA=Reflect.apply(rB,null,[re,...R])}finally{re.processor=null}return SA},()=>ku(...R),"translate",X=>X[Mu](...R),X=>[wB(X)],X=>be(X))}function _t(...R){return GA(X=>Reflect.apply(fB,null,[X,...R]),()=>Nu(...R),"number format",X=>X[Ku](...R),yB,X=>tA(X)||be(X))}function xt(...R){return GA(X=>Reflect.apply(lB,null,[X,...R]),()=>Du(...R),"datetime format",X=>X[Ru](...R),yB,X=>tA(X)||be(X))}function un(R){P=R,N.pluralRules=P}function z(R,X){return GA(()=>{if(!R)return!1;const SA=tA(X)?X:u.value,re=ve(SA),Ct=N.messageResolver(re,R);return a?Ct!=null:li(Ct)||Pt(Ct)||tA(Ct)},()=>[R],"translate exists",SA=>Reflect.apply(SA.te,SA,[R,X]),MT,SA=>ne(SA))}function bA(R){let X=null;const SA=Mm(N,f.value,u.value);for(let re=0;re<SA.length;re++){const Ct=p.value[SA[re]]||{},Tn=N.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=bA(R);return X??(e?e.tm(R)||{}:{})}function ve(R){return p.value[R]||{}}function fn(R,X){if(i){const SA={[R]:X};for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R]}p.value[R]=X,N.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const SA={[R]:X};if(i)for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R],ba(X,p.value[R]),N.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,N.datetimeFormats=g.value,uB(N,R,X)}function $(R,X){g.value[R]=qe(g.value[R]||{},X),N.datetimeFormats=g.value,uB(N,R,X)}function oA(R){return B.value[R]||{}}function te(R,X){B.value[R]=X,N.numberFormats=B.value,hB(N,R,X)}function DA(R,X){B.value[R]=qe(B.value[R]||{},X),N.numberFormats=B.value,hB(N,R,X)}EB++,e&&Mn&&(h.watch(e.locale,R=>{c&&(u.value=R,N.locale=R,Js(N,u.value,f.value))}),h.watch(e.fallbackLocale,R=>{c&&(f.value=R,N.fallbackLocale=R,Js(N,u.value,f.value))}));const PA={id:EB,locale:nA,fallbackLocale:cA,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&e&&(u.value=e.locale.value,f.value=e.fallbackLocale.value,Js(N,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:LA,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,N.missingWarn=w},get fallbackWarn(){return Q},set fallbackWarn(R){Q=R,N.fallbackWarn=Q},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,N.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,N.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,N.escapeParameter=R},t:KA,getLocaleMessage:ve,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:HA,setPostTranslationHandler:rA,getMissingHandler:mA,setMissingHandler:XA,[DT]:un};return PA.datetimeFormats=oe,PA.numberFormats=RA,PA.rt=Ae,PA.te=z,PA.tm=Sn,PA.d=ee,PA.n=zA,PA.getDateTimeFormat=T,PA.setDateTimeFormat=x,PA.mergeDateTimeFormat=$,PA.getNumberFormat=oA,PA.setNumberFormat=te,PA.mergeNumberFormat=DA,PA[mB]=n,PA[Mu]=ut,PA[Ru]=xt,PA[Ku]=_t,process.env.NODE_ENV!=="production"&&(PA[Pu]=R=>{N.__v_emitter=R},PA[Vu]=()=>{N.__v_emitter=void 0}),PA}const $u={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function PT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function FB(t){return h.Fragment}qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ze(t)||!isNaN(t)}},$u);function VT(t){return be(t)&&!tA(t[0])}function bB(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),tA(t.format)?s.key=t.format:WA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,B)=>e.includes(B)?qe({},g,{[B]:t.format[B]}):g,{}));const c=n(t.value,s,a);let u=[s.key];be(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 VT(Q)&&(Q[0].key=`${g.type}-${B}`),Q}):tA(c)&&(u=[c]);const f=qe({},i),p=tA(t.tag)||WA(t.tag)?t.tag:FB();return h.h(p,f,u)}}qe({value:{type:Number,required:!0},format:{type:[String,Object]}},$u),qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$u);function UB(t,A){}const GT=Rn("global-vue-i18n");function xa(t={}){const A=h.getCurrentInstance();if(A==null)throw Er(de.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Er(de.NOT_INSTALLED);const e=WT(A),n=JT(e),r=BB(A),i=$T(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Er(de.NOT_AVAILABLE_IN_LEGACY_MODE);return qT(A,i,n,t)}if(i==="global")return NT(n,t,r),n;if(i==="parent"){let c=XT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Pn(_a(mt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=qe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=KT(c),s.__composerExtend&&(a[Gu]=s.__composerExtend(a)),zT(s,A,a),s.__setInstance(A,a)}return a}function WT(t){{const A=h.inject(t.isCE?GT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Er(t.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return A}}function $T(t,A){return ya(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function JT(t){return t.mode==="composition"?t.global:t.global.__composer}function XT(t,A,e=!1){let n=null;const r=A.root;let i=YT(A,e);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,e&&n&&!n[mB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function YT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function zT(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=cS();const r=e;r[Pu]&&r[Pu](n),n.on("*",UB)}},A),h.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",UB),r[Vu]&&r[Vu](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[Gu];i&&(i(),delete r[Gu])},A)}function qT(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ne(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=h.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:$s),c=h.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||be(n.fallbackLocale)||_A(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_A(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_A(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:ne(n.missingWarn)||Vi(n.missingWarn)?n.missingWarn:!0,B=r?e.fallbackWarn:ne(n.fallbackWarn)||Vi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:ne(n.fallbackRoot)?n.fallbackRoot:!0,Q=!!n.fallbackFormat,b=le(n.missing)?n.missing:null,v=le(n.postTranslation)?n.postTranslation:null,_=r?e.warnHtmlMessage:ne(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?e.modifiers:_A(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&e.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const D=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),P=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),N=h.computed(()=>i.value?i.value.messages.value:u.value),sA=h.computed(()=>f.value),BA=h.computed(()=>p.value);function nA(){return i.value?i.value.getPostTranslationHandler():v}function cA(z){i.value&&i.value.setPostTranslationHandler(z)}function LA(){return i.value?i.value.getMissingHandler():b}function oe(z){i.value&&i.value.setMissingHandler(z)}function RA(z){return U(),z()}function HA(...z){return i.value?RA(()=>Reflect.apply(i.value.t,null,[...z])):RA(()=>"")}function rA(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function mA(...z){return i.value?RA(()=>Reflect.apply(i.value.d,null,[...z])):RA(()=>"")}function XA(...z){return i.value?RA(()=>Reflect.apply(i.value.n,null,[...z])):RA(()=>"")}function kA(z){return i.value?i.value.tm(z):{}}function GA(z,bA){return i.value?i.value.te(z,bA):!1}function KA(z){return i.value?i.value.getLocaleMessage(z):{}}function Ae(z,bA){i.value&&(i.value.setLocaleMessage(z,bA),u.value[z]=bA)}function ee(z,bA){i.value&&i.value.mergeLocaleMessage(z,bA)}function zA(z){return i.value?i.value.getDateTimeFormat(z):{}}function he(z,bA){i.value&&(i.value.setDateTimeFormat(z,bA),f.value[z]=bA)}function ct(z,bA){i.value&&i.value.mergeDateTimeFormat(z,bA)}function At(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,bA){i.value&&(i.value.setNumberFormat(z,bA),p.value[z]=bA)}function _t(z,bA){i.value&&i.value.mergeNumberFormat(z,bA)}const xt={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:P,messages:N,datetimeFormats:sA,numberFormats:BA,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:HA,getPostTranslationHandler:nA,setPostTranslationHandler:cA,getMissingHandler:LA,setMissingHandler:oe,rt:rA,d:mA,n:XA,tm:kA,te:GA,getLocaleMessage:KA,setLocaleMessage:Ae,mergeLocaleMessage:ee,getDateTimeFormat:zA,setDateTimeFormat:he,mergeDateTimeFormat:ct,getNumberFormat:At,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(bA=>{z.mergeLocaleMessage(bA,u.value[bA])}),Object.keys(f.value).forEach(bA=>{z.mergeDateTimeFormat(bA,f.value[bA])}),Object.keys(p.value).forEach(bA=>{z.mergeNumberFormat(bA,p.value[bA])}),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(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;A==="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(LT(),__INTLIFY_JIT_COMPILATION__?Vm(vT):Vm(UT),mT(qS),BT(Mm),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Kn();t.__INTLIFY__=!0,sT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ZT={class:"input input-dropdown"},jT={class:"dropdown"},A_={class:"caption"},e_=["innerHTML"],t_={class:"caption__text"},n_={class:"d-block text-truncate"},r_={class:"dropdown-menu"},i_={class:"form-check"},s_=["value","id","name","label","required","disabled"],o_=["value","id","name","label","required","disabled"],a_=["for"],l_=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:A}){const{t:e}=xa(),n=t,r=A,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||`${e("common.select")}`);return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",ZT,[h.createElementVNode("div",jT,[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",A_,[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,e_)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",t_,[h.createElementVNode("span",n_,h.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",r_,[(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",i_,[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,s_)),[[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,o_)),[[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,a_)])],2)]))),128))])])])}}}),p3="",c_={key:0,class:"auto-suggest__suggestions position-relative"},u_={class:"suggestions dropdown-menu show w-100 mt-2"},f_=["onClick"],d_=["innerHTML"],h_=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:A}){const e=t,n=A,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return e.modelValue},set(f){n("update:modelValue",f)}}),a=h.computed(()=>{const f=new RegExp(`(${s.value})`,"i");return s.value?e.options.reduce((p,g)=>[...p,...f.test(g)?[g.replace(f,"<strong>$1</strong>")]:[]],[]):e.options});h.watch(()=>e.options,(f,p)=>{f.length&&(i.value=!0)},{deep:!0});function c(){e.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",c_,[h.createElementVNode("ul",u_,[(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,d_)],8,f_))),128))])])):h.createCommentVNode("",!0)],512)}}}),g3="";var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oa={exports:{}};/**
136
+ */const kT="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()},NT={[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,...A){return Su(NT[t],...A)}const mB=ke.__EXTEND_POINT__,Bt=Qa(mB),he={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,...A){return Gi(t,null,process.env.NODE_ENV!=="production"?{messages:MT,args:A}:void 0)}const MT={[he.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[he.INVALID_ARGUMENT]:"Invalid argument",[he.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[he.NOT_INSTALLED]:"Need to install with `app.use` function",[he.UNEXPECTED_ERROR]:"Unexpected error",[he.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[he.REQUIRED_VALUE]:"Required in value: {0}",[he.INVALID_VALUE]:"Invalid value",[he.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[he.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[he.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[he.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[he.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",[he.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"),Pu=Rn("__enableEmitter"),Vu=Rn("__disableEmitter"),RT=Rn("__setPluralRules"),BB=Rn("__injectWithOption"),Gu=Rn("__dispose");function Xs(t){if(!WA(t))return t;for(const A in t)if(Ea(t,A))if(!A.includes("."))WA(t[A])&&Xs(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!WA(r[e[s]])){process.env.NODE_ENV!=="production"&&Pn(_a(mt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),WA(r[e[n]])&&Xs(r[e[n]])}return t}function Wu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=_A(e)?e:be(n)?{}:{[t]:{}};if(be(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 tA(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,A,e){let n=WA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Wu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(WA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(WA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.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(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const VT=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=wB(t)[yB])?{[yB]:A}:null};function GT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===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=ne(t.inheritLocale)?t.inheritLocale:!0;const u=s(e&&c?e.locale.value:tA(t.locale)?t.locale:$s),f=s(e&&c?e.fallbackLocale.value:tA(t.fallbackLocale)||be(t.fallbackLocale)||_A(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:u.value),p=s(Wu(u.value,t)),g=s(_A(t.datetimeFormats)?t.datetimeFormats:{[u.value]:{}}),B=s(_A(t.numberFormats)?t.numberFormats:{[u.value]:{}});let w=e?e.missingWarn:ne(t.missingWarn)||Vi(t.missingWarn)?t.missingWarn:!0,Q=e?e.fallbackWarn:ne(t.fallbackWarn)||Vi(t.fallbackWarn)?t.fallbackWarn:!0,b=e?e.fallbackRoot:ne(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,_=le(t.missing)?t.missing:null,S=le(t.missing)?FB(t.missing):null,E=le(t.postTranslation)?t.postTranslation:null,L=e?e.warnHtmlMessage:ne(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter;const D=e?e.modifiers:_A(t.modifiers)?t.modifiers:{};let P=t.pluralRules||e&&e.pluralRules,N;N=(()=>{r&&Ym(null);const R={version:kT,locale:u.value,fallbackLocale:f.value,messages:p.value,modifiers:D,pluralRules:P,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=_A(N)?N.__datetimeFormatters:void 0,R.__numberFormatters=_A(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=_A(N)?N.__v_emitter:void 0);const X=bT(R);return r&&Ym(X),X})(),Js(N,u.value,f.value);function BA(){return[u.value,f.value,p.value,g.value,B.value]}const nA=h.computed({get:()=>u.value,set:R=>{u.value=R,N.locale=u.value}}),cA=h.computed({get:()=>f.value,set:R=>{f.value=R,N.fallbackLocale=f.value,Js(N,u.value,R)}}),LA=h.computed(()=>p.value),oe=h.computed(()=>g.value),RA=h.computed(()=>B.value);function HA(){return le(E)?E:null}function rA(R){E=R,N.postTranslation=R}function mA(){return _}function XA(R){R!==null&&(S=FB(R)),_=R,N.missing=S}function kA(R,X){return R!=="translate"||!X.resolvedMessage}const GA=(R,X,SA,re,Ct,Tn)=>{BA();let Jt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=e?FT():void 0),Jt=R(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(N.fallbackContext=void 0)}if(SA!=="translate exists"&&ze(Jt)&&Jt===Ia||SA==="translate exists"&&!Jt){const[K,iA]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(K)&&kA(SA,iA)&&(b&&(Ta(Q,K)||qm(w,K))&&Pn(_a(mt.FALLBACK_TO_ROOT,{key:K,type:SA})),process.env.NODE_ENV!=="production")){const{__v_emitter:uA}=N;uA&&b&&uA.emit("fallback",{type:SA,key:K,to:"global",groupId:`${SA}:${K}`})}return e&&b?re(e):Ct(K)}else{if(Tn(Jt))return Jt;throw Er(he.UNEXPECTED_RETURN_TYPE)}};function KA(...R){return GA(X=>Reflect.apply(iB,null,[X,...R]),()=>ku(...R),"translate",X=>Reflect.apply(X.t,X,[...R]),X=>X,X=>tA(X))}function Ae(...R){const[X,SA,re]=R;if(re&&!WA(re))throw Er(he.INVALID_ARGUMENT);return KA(X,SA,qe({resolvedMessage:!0},re||{}))}function ee(...R){return GA(X=>Reflect.apply(cB,null,[X,...R]),()=>Du(...R),"datetime format",X=>Reflect.apply(X.d,X,[...R]),()=>Sa,X=>tA(X))}function zA(...R){return GA(X=>Reflect.apply(dB,null,[X,...R]),()=>Nu(...R),"number format",X=>Reflect.apply(X.n,X,[...R]),()=>Sa,X=>tA(X))}function pe(R){return R.map(X=>tA(X)||ze(X)||ne(X)?CB(String(X)):X)}const At={normalize:pe,interpolate:R=>R,type:"vnode"};function ut(...R){return GA(X=>{let SA;const re=X;try{re.processor=At,SA=Reflect.apply(iB,null,[re,...R])}finally{re.processor=null}return SA},()=>ku(...R),"translate",X=>X[Mu](...R),X=>[CB(X)],X=>be(X))}function _t(...R){return GA(X=>Reflect.apply(dB,null,[X,...R]),()=>Nu(...R),"number format",X=>X[Ku](...R),EB,X=>tA(X)||be(X))}function xt(...R){return GA(X=>Reflect.apply(cB,null,[X,...R]),()=>Du(...R),"datetime format",X=>X[Ru](...R),EB,X=>tA(X)||be(X))}function un(R){P=R,N.pluralRules=P}function z(R,X){return GA(()=>{if(!R)return!1;const SA=tA(X)?X:u.value,re=ve(SA),Ct=N.messageResolver(re,R);return a?Ct!=null:li(Ct)||Pt(Ct)||tA(Ct)},()=>[R],"translate exists",SA=>Reflect.apply(SA.te,SA,[R,X]),PT,SA=>ne(SA))}function UA(R){let X=null;const SA=Rm(N,f.value,u.value);for(let re=0;re<SA.length;re++){const Ct=p.value[SA[re]]||{},Tn=N.messageResolver(Ct,R);if(Tn!=null){X=Tn;break}}return X}function Sn(R){const X=UA(R);return X??(e?e.tm(R)||{}:{})}function ve(R){return p.value[R]||{}}function fn(R,X){if(i){const SA={[R]:X};for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R]}p.value[R]=X,N.messages=p.value}function xr(R,X){p.value[R]=p.value[R]||{};const SA={[R]:X};if(i)for(const re in SA)Ea(SA,re)&&Xs(SA[re]);X=SA[R],ba(X,p.value[R]),N.messages=p.value}function T(R){return g.value[R]||{}}function x(R,X){g.value[R]=X,N.datetimeFormats=g.value,fB(N,R,X)}function $(R,X){g.value[R]=qe(g.value[R]||{},X),N.datetimeFormats=g.value,fB(N,R,X)}function oA(R){return B.value[R]||{}}function te(R,X){B.value[R]=X,N.numberFormats=B.value,pB(N,R,X)}function DA(R,X){B.value[R]=qe(B.value[R]||{},X),N.numberFormats=B.value,pB(N,R,X)}QB++,e&&Mn&&(h.watch(e.locale,R=>{c&&(u.value=R,N.locale=R,Js(N,u.value,f.value))}),h.watch(e.fallbackLocale,R=>{c&&(f.value=R,N.fallbackLocale=R,Js(N,u.value,f.value))}));const PA={id:QB,locale:nA,fallbackLocale:cA,get inheritLocale(){return c},set inheritLocale(R){c=R,R&&e&&(u.value=e.locale.value,f.value=e.fallbackLocale.value,Js(N,u.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:LA,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return w},set missingWarn(R){w=R,N.missingWarn=w},get fallbackWarn(){return Q},set fallbackWarn(R){Q=R,N.fallbackWarn=Q},get fallbackRoot(){return b},set fallbackRoot(R){b=R},get fallbackFormat(){return v},set fallbackFormat(R){v=R,N.fallbackFormat=v},get warnHtmlMessage(){return L},set warnHtmlMessage(R){L=R,N.warnHtmlMessage=R},get escapeParameter(){return U},set escapeParameter(R){U=R,N.escapeParameter=R},t:KA,getLocaleMessage:ve,setLocaleMessage:fn,mergeLocaleMessage:xr,getPostTranslationHandler:HA,setPostTranslationHandler:rA,getMissingHandler:mA,setMissingHandler:XA,[RT]:un};return PA.datetimeFormats=oe,PA.numberFormats=RA,PA.rt=Ae,PA.te=z,PA.tm=Sn,PA.d=ee,PA.n=zA,PA.getDateTimeFormat=T,PA.setDateTimeFormat=x,PA.mergeDateTimeFormat=$,PA.getNumberFormat=oA,PA.setNumberFormat=te,PA.mergeNumberFormat=DA,PA[BB]=n,PA[Mu]=ut,PA[Ru]=xt,PA[Ku]=_t,process.env.NODE_ENV!=="production"&&(PA[Pu]=R=>{N.__v_emitter=R},PA[Vu]=()=>{N.__v_emitter=void 0}),PA}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},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===h.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function bB(t){return h.Fragment}qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ze(t)||!isNaN(t)}},$u);function $T(t){return be(t)&&!tA(t[0])}function UB(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),tA(t.format)?s.key=t.format:WA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,B)=>e.includes(B)?qe({},g,{[B]:t.format[B]}):g,{}));const c=n(t.value,s,a);let u=[s.key];be(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}):tA(c)&&(u=[c]);const f=qe({},i),p=tA(t.tag)||WA(t.tag)?t.tag:bB();return h.h(p,f,u)}}qe({value:{type:Number,required:!0},format:{type:[String,Object]}},$u),qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$u);function vB(t,A){}const JT=Rn("global-vue-i18n");function xa(t={}){const A=h.getCurrentInstance();if(A==null)throw Er(he.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Er(he.NOT_INSTALLED);const e=XT(A),n=zT(e),r=wB(A),i=YT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Er(he.NOT_AVAILABLE_IN_LEGACY_MODE);return A_(A,i,n,t)}if(i==="global")return KT(n,t,r),n;if(i==="parent"){let c=qT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Pn(_a(mt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=qe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=GT(c),s.__composerExtend&&(a[Gu]=s.__composerExtend(a)),jT(s,A,a),s.__setInstance(A,a)}return a}function XT(t){{const A=h.inject(t.isCE?JT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Er(t.isCE?he.NOT_INSTALLED_WITH_PROVIDE:he.UNEXPECTED_ERROR);return A}}function YT(t,A){return ya(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function zT(t){return t.mode==="composition"?t.global:t.global.__composer}function qT(t,A,e=!1){let n=null;const r=A.root;let i=ZT(A,e);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,e&&n&&!n[BB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function ZT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function jT(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=dS();const r=e;r[Pu]&&r[Pu](n),n.on("*",vB)}},A),h.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",vB),r[Vu]&&r[Vu](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[Gu];i&&(i(),delete r[Gu])},A)}function A_(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Er(he.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ne(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=h.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:$s),c=h.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||be(n.fallbackLocale)||_A(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Wu(a.value,n)),f=h.ref(_A(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(_A(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:ne(n.missingWarn)||Vi(n.missingWarn)?n.missingWarn:!0,B=r?e.fallbackWarn:ne(n.fallbackWarn)||Vi(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:ne(n.fallbackRoot)?n.fallbackRoot:!0,Q=!!n.fallbackFormat,b=le(n.missing)?n.missing:null,v=le(n.postTranslation)?n.postTranslation:null,_=r?e.warnHtmlMessage:ne(n.warnHtmlMessage)?n.warnHtmlMessage:!0,S=!!n.escapeParameter,E=r?e.modifiers:_A(n.modifiers)?n.modifiers:{},L=n.pluralRules||r&&e.pluralRules;function U(){return[a.value,c.value,u.value,f.value,p.value]}const D=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:z=>{i.value&&(i.value.locale.value=z),a.value=z}}),P=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:z=>{i.value&&(i.value.fallbackLocale.value=z),c.value=z}}),N=h.computed(()=>i.value?i.value.messages.value:u.value),sA=h.computed(()=>f.value),BA=h.computed(()=>p.value);function nA(){return i.value?i.value.getPostTranslationHandler():v}function cA(z){i.value&&i.value.setPostTranslationHandler(z)}function LA(){return i.value?i.value.getMissingHandler():b}function oe(z){i.value&&i.value.setMissingHandler(z)}function RA(z){return U(),z()}function HA(...z){return i.value?RA(()=>Reflect.apply(i.value.t,null,[...z])):RA(()=>"")}function rA(...z){return i.value?Reflect.apply(i.value.rt,null,[...z]):""}function mA(...z){return i.value?RA(()=>Reflect.apply(i.value.d,null,[...z])):RA(()=>"")}function XA(...z){return i.value?RA(()=>Reflect.apply(i.value.n,null,[...z])):RA(()=>"")}function kA(z){return i.value?i.value.tm(z):{}}function GA(z,UA){return i.value?i.value.te(z,UA):!1}function KA(z){return i.value?i.value.getLocaleMessage(z):{}}function Ae(z,UA){i.value&&(i.value.setLocaleMessage(z,UA),u.value[z]=UA)}function ee(z,UA){i.value&&i.value.mergeLocaleMessage(z,UA)}function zA(z){return i.value?i.value.getDateTimeFormat(z):{}}function pe(z,UA){i.value&&(i.value.setDateTimeFormat(z,UA),f.value[z]=UA)}function ct(z,UA){i.value&&i.value.mergeDateTimeFormat(z,UA)}function At(z){return i.value?i.value.getNumberFormat(z):{}}function ut(z,UA){i.value&&(i.value.setNumberFormat(z,UA),p.value[z]=UA)}function _t(z,UA){i.value&&i.value.mergeNumberFormat(z,UA)}const xt={get id(){return i.value?i.value.id:-1},locale:D,fallbackLocale:P,messages:N,datetimeFormats:sA,numberFormats:BA,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:HA,getPostTranslationHandler:nA,setPostTranslationHandler:cA,getMissingHandler:LA,setMissingHandler:oe,rt:rA,d:mA,n:XA,tm:kA,te:GA,getLocaleMessage:KA,setLocaleMessage:Ae,mergeLocaleMessage:ee,getDateTimeFormat:zA,setDateTimeFormat:pe,mergeDateTimeFormat:ct,getNumberFormat:At,setNumberFormat:ut,mergeNumberFormat:_t};function un(z){z.locale.value=a.value,z.fallbackLocale.value=c.value,Object.keys(u.value).forEach(UA=>{z.mergeLocaleMessage(UA,u.value[UA])}),Object.keys(f.value).forEach(UA=>{z.mergeDateTimeFormat(UA,f.value[UA])}),Object.keys(p.value).forEach(UA=>{z.mergeNumberFormat(UA,p.value[UA])}),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(he.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const z=i.value=t.proxy.$i18n.__composer;A==="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(TT):Gm(ST),CT(AT),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 e_={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:A}){const{t:e}=xa(),n=t,r=A,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||`${e("common.select")}`);return(c,u)=>{const f=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",e_,[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))])])])}}}),w3="",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:A}){const e=t,n=A,r=h.ref(),i=h.ref(!1),s=h.computed({get(){return e.modelValue},set(f){n("update:modelValue",f)}}),a=h.computed(()=>{const f=new RegExp(`(${s.value})`,"i");return s.value?e.options.reduce((p,g)=>[...p,...f.test(g)?[g.replace(f,"<strong>$1</strong>")]:[]],[]):e.options});h.watch(()=>e.options,(f,p)=>{f.length&&(i.value=!0)},{deep:!0});function c(){e.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)}}}),C3="";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,A){(function(){var e,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,D=128,P=256,N=512,sA=30,BA="...",nA=800,cA=16,LA=1,oe=2,RA=3,HA=1/0,rA=9007199254740991,mA=17976931348623157e292,XA=0/0,kA=4294967295,GA=kA-1,KA=kA>>>1,Ae=[["ary",D],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",N],["partial",L],["partialRight",U],["rearg",P]],ee="[object Arguments]",zA="[object Array]",he="[object AsyncFunction]",ct="[object Boolean]",At="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",bA="[object Number]",Sn="[object Null]",ve="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",$="[object String]",oA="[object Symbol]",te="[object Undefined]",DA="[object WeakMap]",PA="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",SA="[object Float32Array]",re="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",iA="[object Uint8ClampedArray]",uA="[object Uint16Array]",VA="[object Uint32Array]",NA=/\b__p \+= '';/g,Ge=/\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*$/,FM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,bM=RegExp(zf.source),qf=/^\s+/,UM=/\s/,vM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,IM=/\{\n\/\* \[wrapped with (.+)\] \*/,SM=/,? & /,TM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_M=/[()=,{}\[\]\/\s]/,xM=/\\(\\)?/g,OM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,MC=/\w*$/,LM=/^[-+]0x[0-9a-f]+$/i,HM=/^0b[01]+$/i,kM=/^\[object .+?Constructor\]$/,DM=/^0o[0-7]+$/i,NM=/^(?:0|[1-9]\d*)$/,MM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,RM=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",KM="\\u0300-\\u036f",PM="\\ufe20-\\ufe2f",VM="\\u20d0-\\u20ff",RC=KM+PM+VM,KC="\\u2700-\\u27bf",PC="a-z\\xdf-\\xf6\\xf8-\\xff",GM="\\xac\\xb1\\xd7\\xf7",WM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$M="\\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",VC="A-Z\\xc0-\\xd6\\xd8-\\xde",GC="\\ufe0e\\ufe0f",WC=GM+WM+$M+JM,Zf="['’]",XM="["+Sl+"]",$C="["+WC+"]",Tl="["+RC+"]",JC="\\d+",YM="["+KC+"]",XC="["+PC+"]",YC="[^"+Sl+WC+JC+KC+PC+VC+"]",jf="\\ud83c[\\udffb-\\udfff]",zM="(?:"+Tl+"|"+jf+")",zC="[^"+Sl+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",ed="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+VC+"]",qC="\\u200d",ZC="(?:"+XC+"|"+YC+")",qM="(?:"+ls+"|"+YC+")",jC="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",A0="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",e0=zM+"?",t0="["+GC+"]?",ZM="(?:"+qC+"(?:"+[zC,Ad,ed].join("|")+")"+t0+e0+")*",jM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",n0=t0+e0+ZM,eR="(?:"+[YM,Ad,ed].join("|")+")"+n0,tR="(?:"+[zC+Tl+"?",Tl,Ad,ed,XM].join("|")+")",nR=RegExp(Zf,"g"),rR=RegExp(Tl,"g"),td=RegExp(jf+"(?="+jf+")|"+tR+n0,"g"),iR=RegExp([ls+"?"+XC+"+"+jC+"(?="+[$C,ls,"$"].join("|")+")",qM+"+"+A0+"(?="+[$C,ls+ZC,"$"].join("|")+")",ls+"?"+ZC+"+"+jC,ls+"+"+A0,AR,jM,JC,eR].join("|"),"g"),sR=RegExp("["+qC+Sl+RC+GC+"]"),oR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aR=["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"],lR=-1,ce={};ce[SA]=ce[re]=ce[Ct]=ce[Tn]=ce[Jt]=ce[K]=ce[iA]=ce[uA]=ce[VA]=!0,ce[ee]=ce[zA]=ce[R]=ce[ct]=ce[X]=ce[At]=ce[_t]=ce[xt]=ce[z]=ce[bA]=ce[ve]=ce[T]=ce[x]=ce[$]=ce[DA]=!1;var ae={};ae[ee]=ae[zA]=ae[R]=ae[X]=ae[ct]=ae[At]=ae[SA]=ae[re]=ae[Ct]=ae[Tn]=ae[Jt]=ae[z]=ae[bA]=ae[ve]=ae[T]=ae[x]=ae[$]=ae[oA]=ae[K]=ae[iA]=ae[uA]=ae[VA]=!0,ae[_t]=ae[xt]=ae[DA]=!1;var cR={À:"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"},uR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hR=parseFloat,pR=parseInt,r0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,gR=typeof self=="object"&&self&&self.Object===Object&&self,We=r0||gR||Function("return this")(),nd=A&&!A.nodeType&&A,pi=nd&&!0&&t&&!t.nodeType&&t,i0=pi&&pi.exports===nd,rd=i0&&r0.process,Xt=function(){try{var H=pi&&pi.require&&pi.require("util").types;return H||rd&&rd.binding&&rd.binding("util")}catch{}}(),s0=Xt&&Xt.isArrayBuffer,o0=Xt&&Xt.isDate,a0=Xt&&Xt.isMap,l0=Xt&&Xt.isRegExp,c0=Xt&&Xt.isSet,u0=Xt&&Xt.isTypedArray;function Ot(H,V,M){switch(M.length){case 0:return H.call(V);case 1:return H.call(V,M[0]);case 2:return H.call(V,M[0],M[1]);case 3:return H.call(V,M[0],M[1],M[2])}return H.apply(V,M)}function mR(H,V,M,eA){for(var wA=-1,$A=H==null?0:H.length;++wA<$A;){var Te=H[wA];V(eA,Te,M(Te),H)}return eA}function Yt(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA&&V(H[M],M,H)!==!1;);return H}function BR(H,V){for(var M=H==null?0:H.length;M--&&V(H[M],M,H)!==!1;);return H}function f0(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(!V(H[M],M,H))return!1;return!0}function Lr(H,V){for(var M=-1,eA=H==null?0:H.length,wA=0,$A=[];++M<eA;){var Te=H[M];V(Te,M,H)&&($A[wA++]=Te)}return $A}function _l(H,V){var M=H==null?0:H.length;return!!M&&cs(H,V,0)>-1}function id(H,V,M){for(var eA=-1,wA=H==null?0:H.length;++eA<wA;)if(M(V,H[eA]))return!0;return!1}function fe(H,V){for(var M=-1,eA=H==null?0:H.length,wA=Array(eA);++M<eA;)wA[M]=V(H[M],M,H);return wA}function Hr(H,V){for(var M=-1,eA=V.length,wA=H.length;++M<eA;)H[wA+M]=V[M];return H}function sd(H,V,M,eA){var wA=-1,$A=H==null?0:H.length;for(eA&&$A&&(M=H[++wA]);++wA<$A;)M=V(M,H[wA],wA,H);return M}function wR(H,V,M,eA){var wA=H==null?0:H.length;for(eA&&wA&&(M=H[--wA]);wA--;)M=V(M,H[wA],wA,H);return M}function od(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(V(H[M],M,H))return!0;return!1}var CR=ad("length");function yR(H){return H.split("")}function ER(H){return H.match(TM)||[]}function d0(H,V,M){var eA;return M(H,function(wA,$A,Te){if(V(wA,$A,Te))return eA=$A,!1}),eA}function xl(H,V,M,eA){for(var wA=H.length,$A=M+(eA?1:-1);eA?$A--:++$A<wA;)if(V(H[$A],$A,H))return $A;return-1}function cs(H,V,M){return V===V?LR(H,V,M):xl(H,h0,M)}function QR(H,V,M,eA){for(var wA=M-1,$A=H.length;++wA<$A;)if(eA(H[wA],V))return wA;return-1}function h0(H){return H!==H}function p0(H,V){var M=H==null?0:H.length;return M?cd(H,V)/M:XA}function ad(H){return function(V){return V==null?e:V[H]}}function ld(H){return function(V){return H==null?e:H[V]}}function g0(H,V,M,eA,wA){return wA(H,function($A,Te,ie){M=eA?(eA=!1,$A):V(M,$A,Te,ie)}),M}function FR(H,V){var M=H.length;for(H.sort(V);M--;)H[M]=H[M].value;return H}function cd(H,V){for(var M,eA=-1,wA=H.length;++eA<wA;){var $A=V(H[eA]);$A!==e&&(M=M===e?$A:M+$A)}return M}function ud(H,V){for(var M=-1,eA=Array(H);++M<H;)eA[M]=V(M);return eA}function bR(H,V){return fe(V,function(M){return[M,H[M]]})}function m0(H){return H&&H.slice(0,y0(H)+1).replace(qf,"")}function Lt(H){return function(V){return H(V)}}function fd(H,V){return fe(V,function(M){return H[M]})}function yo(H,V){return H.has(V)}function B0(H,V){for(var M=-1,eA=H.length;++M<eA&&cs(V,H[M],0)>-1;);return M}function w0(H,V){for(var M=H.length;M--&&cs(V,H[M],0)>-1;);return M}function UR(H,V){for(var M=H.length,eA=0;M--;)H[M]===V&&++eA;return eA}var vR=ld(cR),IR=ld(uR);function SR(H){return"\\"+dR[H]}function TR(H,V){return H==null?e:H[V]}function us(H){return sR.test(H)}function _R(H){return oR.test(H)}function xR(H){for(var V,M=[];!(V=H.next()).done;)M.push(V.value);return M}function dd(H){var V=-1,M=Array(H.size);return H.forEach(function(eA,wA){M[++V]=[wA,eA]}),M}function C0(H,V){return function(M){return H(V(M))}}function kr(H,V){for(var M=-1,eA=H.length,wA=0,$A=[];++M<eA;){var Te=H[M];(Te===V||Te===f)&&(H[M]=f,$A[wA++]=M)}return $A}function Ol(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=eA}),M}function OR(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=[eA,eA]}),M}function LR(H,V,M){for(var eA=M-1,wA=H.length;++eA<wA;)if(H[eA]===V)return eA;return-1}function HR(H,V,M){for(var eA=M+1;eA--;)if(H[eA]===V)return eA;return eA}function fs(H){return us(H)?DR(H):CR(H)}function dn(H){return us(H)?NR(H):yR(H)}function y0(H){for(var V=H.length;V--&&UM.test(H.charAt(V)););return V}var kR=ld(fR);function DR(H){for(var V=td.lastIndex=0;td.test(H);)++V;return V}function NR(H){return H.match(td)||[]}function MR(H){return H.match(iR)||[]}var RR=function H(V){V=V==null?We:ds.defaults(We.Object(),V,ds.pick(We,aR));var M=V.Array,eA=V.Date,wA=V.Error,$A=V.Function,Te=V.Math,ie=V.Object,hd=V.RegExp,KR=V.String,zt=V.TypeError,Ll=M.prototype,PR=$A.prototype,hs=ie.prototype,Hl=V["__core-js_shared__"],kl=PR.toString,qA=hs.hasOwnProperty,VR=0,E0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Dl=hs.toString,GR=kl.call(ie),WR=We._,$R=hd("^"+kl.call(qA).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=i0?V.Buffer:e,Dr=V.Symbol,Ml=V.Uint8Array,Q0=Nl?Nl.allocUnsafe:e,Rl=C0(ie.getPrototypeOf,ie),F0=ie.create,b0=hs.propertyIsEnumerable,Kl=Ll.splice,U0=Dr?Dr.isConcatSpreadable:e,Eo=Dr?Dr.iterator:e,gi=Dr?Dr.toStringTag:e,Pl=function(){try{var o=yi(ie,"defineProperty");return o({},"",{}),o}catch{}}(),JR=V.clearTimeout!==We.clearTimeout&&V.clearTimeout,XR=eA&&eA.now!==We.Date.now&&eA.now,YR=V.setTimeout!==We.setTimeout&&V.setTimeout,Vl=Te.ceil,Gl=Te.floor,pd=ie.getOwnPropertySymbols,zR=Nl?Nl.isBuffer:e,v0=V.isFinite,qR=Ll.join,ZR=C0(ie.keys,ie),_e=Te.max,et=Te.min,jR=eA.now,A4=V.parseInt,I0=Te.random,e4=Ll.reverse,gd=yi(V,"DataView"),Qo=yi(V,"Map"),md=yi(V,"Promise"),ps=yi(V,"Set"),Fo=yi(V,"WeakMap"),bo=yi(ie,"create"),Wl=Fo&&new Fo,gs={},t4=Ei(gd),n4=Ei(Qo),r4=Ei(md),i4=Ei(ps),s4=Ei(Fo),$l=Dr?Dr.prototype:e,Uo=$l?$l.valueOf:e,S0=$l?$l.toString:e;function y(o){if(me(o)&&!yA(o)&&!(o instanceof OA)){if(o instanceof qt)return o;if(qA.call(o,"__wrapped__"))return Ty(o)}return new qt(o)}var ms=function(){function o(){}return function(l){if(!pe(l))return{};if(F0)return F0(l);o.prototype=l;var d=new o;return o.prototype=e,d}}();function Jl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}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 OA(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kA,this.__views__=[]}function o4(){var o=new OA(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 a4(){if(this.__filtered__){var o=new OA(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function l4(){var o=this.__wrapped__.value(),l=this.__dir__,d=yA(o),m=l<0,C=d?o.length:0,F=yK(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,lA=et(k,this.__takeCount__);if(!d||!m&&C==k&&lA==k)return j0(o,this.__actions__);var hA=[];A:for(;k--&&q<lA;){G+=l;for(var UA=-1,pA=o[G];++UA<J;){var TA=W[UA],MA=TA.iteratee,Dt=TA.type,ht=MA(pA);if(Dt==oe)pA=ht;else if(!ht){if(Dt==LA)continue A;break A}}hA[q++]=pA}return hA}OA.prototype=ms(Jl.prototype),OA.prototype.constructor=OA;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 c4(){this.__data__=bo?bo(null):{},this.size=0}function u4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function f4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?e:d}return qA.call(l,o)?l[o]:e}function d4(o){var l=this.__data__;return bo?l[o]!==e:qA.call(l,o)}function h4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===e?c:l,this}mi.prototype.clear=c4,mi.prototype.delete=u4,mi.prototype.get=f4,mi.prototype.has=d4,mi.prototype.set=h4;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 p4(){this.__data__=[],this.size=0}function g4(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 m4(o){var l=this.__data__,d=Xl(l,o);return d<0?e:l[d][1]}function B4(o){return Xl(this.__data__,o)>-1}function w4(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=p4,qn.prototype.delete=g4,qn.prototype.get=m4,qn.prototype.has=B4,qn.prototype.set=w4;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 C4(){this.size=0,this.__data__={hash:new mi,map:new(Qo||qn),string:new mi}}function y4(o){var l=sc(this,o).delete(o);return this.size-=l?1:0,l}function E4(o){return sc(this,o).get(o)}function Q4(o){return sc(this,o).has(o)}function F4(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=C4,Zn.prototype.delete=y4,Zn.prototype.get=E4,Zn.prototype.has=Q4,Zn.prototype.set=F4;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function b4(o){return this.__data__.set(o,c),this}function U4(o){return this.__data__.has(o)}Bi.prototype.add=Bi.prototype.push=b4,Bi.prototype.has=U4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function v4(){this.__data__=new qn,this.size=0}function I4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function S4(o){return this.__data__.get(o)}function T4(o){return this.__data__.has(o)}function _4(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=v4,hn.prototype.delete=I4,hn.prototype.get=S4,hn.prototype.has=T4,hn.prototype.set=_4;function T0(o,l){var d=yA(o),m=!d&&Qi(o),C=!d&&!m&&Pr(o),F=!d&&!m&&!C&&ys(o),I=d||m||C||F,O=I?ud(o.length,KR):[],k=O.length;for(var G in o)(l||qA.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 _0(o){var l=o.length;return l?o[Id(0,l-1)]:e}function x4(o,l){return oc(Et(o),wi(l,0,o.length))}function O4(o){return oc(Et(o))}function Bd(o,l,d){(d!==e&&!pn(o[l],d)||d===e&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var m=o[l];(!(qA.call(o,l)&&pn(m,d))||d===e&&!(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 L4(o,l,d,m){return Nr(o,function(C,F,I){l(m,C,d(C),I)}),m}function x0(o,l){return o&&xn(l,Ne(l),o)}function H4(o,l){return o&&xn(l,Ft(l),o)}function jn(o,l,d){l=="__proto__"&&Pl?Pl(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?e:jd(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==e&&(o=o<=d?o:d),l!==e&&(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!==e)return I;if(!pe(o))return o;var W=yA(o);if(W){if(I=QK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Pr(o))return ty(o,O);if(J==ve||J==ee||q&&!C){if(I=k||q?{}:yy(o),!O)return k?fK(o,H4(I,o)):uK(o,x0(I,o))}else{if(!ae[J])return C?o:{};I=FK(o,J,O)}}F||(F=new hn);var lA=F.get(o);if(lA)return lA;F.set(o,I),zy(o)?o.forEach(function(pA){I.add(Zt(pA,l,d,pA,o,F))}):Xy(o)&&o.forEach(function(pA,TA){I.set(TA,Zt(pA,l,d,TA,o,F))});var hA=G?k?Md:Nd:k?Ft:Ne,UA=W?e:hA(o);return Yt(UA||o,function(pA,TA){UA&&(TA=pA,pA=o[TA]),vo(I,TA,Zt(pA,l,d,TA,o,F))}),I}function k4(o){var l=Ne(o);return function(d){return O0(d,o,l)}}function O0(o,l,d){var m=d.length;if(o==null)return!m;for(o=ie(o);m--;){var C=d[m],F=l[C],I=o[C];if(I===e&&!(C in o)||!F(I))return!1}return!0}function L0(o,l,d){if(typeof o!="function")throw new zt(s);return Lo(function(){o.apply(e,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=fe(l,Lt(d))),m?(F=id,I=!1):l.length>=r&&(F=yo,I=!1,l=new Bi(l));A: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 A;k.push(W)}else F(l,J,m)||k.push(W)}return k}var Nr=oy(_n),H0=oy(yd,!0);function D4(o,l){var d=!0;return Nr(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===e?I===I&&!kt(I):d(I,O)))var O=I,k=F}return k}function N4(o,l,d,m){var C=o.length;for(d=EA(d),d<0&&(d=-d>C?0:C+d),m=m===e||m>C?C:EA(m),m<0&&(m+=C),m=d>m?0:Zy(m);d<m;)o[d++]=l;return o}function k0(o,l){var d=[];return Nr(o,function(m,C,F){l(m,C,F)&&d.push(m)}),d}function $e(o,l,d,m,C){var F=-1,I=o.length;for(d||(d=UK),C||(C=[]);++F<I;){var O=o[F];l>0&&d(O)?l>1?$e(O,l-1,d,m,C):Hr(C,O):m||(C[C.length]=O)}return C}var Cd=ay(),D0=ay(!0);function _n(o,l){return o&&Cd(o,l,Ne)}function yd(o,l){return o&&D0(o,l,Ne)}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:e}function N0(o,l,d){var m=l(o);return yA(o)?m:Hr(m,d(o))}function ft(o){return o==null?o===e?te:Sn:gi&&gi in ie(o)?CK(o):OK(o)}function Ed(o,l){return o>l}function M4(o,l){return o!=null&&qA.call(o,l)}function R4(o,l){return o!=null&&l in ie(o)}function K4(o,l,d){return o>=et(l,d)&&o<_e(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=fe(W,Lt(l))),k=et(W.length,k),O[I]=!d&&(l||C>=120&&W.length>=120)?new Bi(I&&W):e}W=o[0];var J=-1,q=O[0];A:for(;++J<C&&G.length<k;){var lA=W[J],hA=l?l(lA):lA;if(lA=d||lA!==0?lA:0,!(q?yo(q,hA):m(G,hA,d))){for(I=F;--I;){var UA=O[I];if(!(UA?yo(UA,hA):m(o[I],hA,d)))continue A}q&&q.push(hA),G.push(lA)}}return G}function P4(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=by(o,l);var m=o==null?o:o[On(An(l))];return m==null?e:Ot(m,o,d)}function M0(o){return me(o)&&ft(o)==ee}function V4(o){return me(o)&&ft(o)==R}function G4(o){return me(o)&&ft(o)==At}function To(o,l,d,m,C){return o===l?!0:o==null||l==null||!me(o)&&!me(l)?o!==o&&l!==l:W4(o,l,d,m,To,C)}function W4(o,l,d,m,C,F){var I=yA(o),O=yA(l),k=I?zA:tt(o),G=O?zA:tt(l);k=k==ee?ve:k,G=G==ee?ve:G;var W=k==ve,J=G==ve,q=k==G;if(q&&Pr(o)){if(!Pr(l))return!1;I=!0,W=!1}if(q&&!W)return F||(F=new hn),I||ys(o)?By(o,l,d,m,C,F):BK(o,l,k,d,m,C,F);if(!(d&w)){var lA=W&&qA.call(o,"__wrapped__"),hA=J&&qA.call(l,"__wrapped__");if(lA||hA){var UA=lA?o.value():o,pA=hA?l.value():l;return F||(F=new hn),C(UA,pA,d,m,F)}}return q?(F||(F=new hn),wK(o,l,d,m,C,F)):!1}function $4(o){return me(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=ie(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===e&&!(k in o))return!1}else{var J=new hn;if(m)var q=m(G,W,k,o,l,J);if(!(q===e?To(W,G,w|Q,m,J):q))return!1}}return!0}function R0(o){if(!pe(o)||IK(o))return!1;var l=nr(o)?$R:kM;return l.test(Ei(o))}function J4(o){return me(o)&&ft(o)==T}function X4(o){return me(o)&&tt(o)==x}function Y4(o){return me(o)&&dc(o.length)&&!!ce[ft(o)]}function K0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?yA(o)?G0(o[0],o[1]):V0(o):lE(o)}function bd(o){if(!Oo(o))return ZR(o);var l=[];for(var d in ie(o))qA.call(o,d)&&d!="constructor"&&l.push(d);return l}function z4(o){if(!pe(o))return xK(o);var l=Oo(o),d=[];for(var m in o)m=="constructor"&&(l||!qA.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 Nr(o,function(C,F,I){m[++d]=l(C,F,I)}),m}function V0(o){var l=Kd(o);return l.length==1&&l[0][2]?Qy(l[0][0],l[0][1]):function(d){return d===o||Fd(d,o,l)}}function G0(o,l){return Vd(o)&&Ey(l)?Qy(On(o),l):function(d){var m=jd(d,o);return m===e&&m===l?Ah(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),pe(F))q4(o,l,I,d,ql,m,C);else{var O=m?m(Wd(o,I),F,I+"",o,l,C):e;O===e&&(O=F),Bd(o,I,O)}},Ft)}function q4(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):e,J=W===e;if(J){var q=yA(k),lA=!q&&Pr(k),hA=!q&&!lA&&ys(k);W=k,q||lA||hA?yA(O)?W=O:ye(O)?W=Et(O):lA?(J=!1,W=ty(k,!0)):hA?(J=!1,W=ny(k,!0)):W=[]:Ho(k)||Qi(k)?(W=O,Qi(O)?W=jy(O):(!pe(O)||nr(O))&&(W=yy(k))):J=!1}J&&(I.set(k,W),C(W,k,m,F,I),I.delete(k)),Bd(o,d,W)}function W0(o,l){var d=o.length;if(d)return l+=l<0?d:0,tr(l,d)?o[l]:e}function $0(o,l,d){l.length?l=fe(l,function(F){return yA(F)?function(I){return Ci(I,F.length===1?F[0]:F)}:F}):l=[bt];var m=-1;l=fe(l,Lt(dA()));var C=P0(o,function(F,I,O){var k=fe(l,function(G){return G(F)});return{criteria:k,index:++m,value:F}});return FR(C,function(F,I){return cK(F,I,d)})}function Z4(o,l){return J0(o,l,function(d,m){return Ah(o,m)})}function J0(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 j4(o){return function(l){return Ci(l,o)}}function vd(o,l,d,m){var C=m?QR:cs,F=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=fe(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 X0(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(I0()*(l-o+1))}function AK(o,l,d,m){for(var C=-1,F=_e(Vl((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>rA)return d;do l%2&&(d+=o),l=Gl(l/2),l&&(o+=o);while(l);return d}function IA(o,l){return $d(Fy(o,l,bt),o+"")}function eK(o){return _0(Es(o))}function tK(o,l){var d=Es(o);return oc(d,wi(l,0,d.length))}function _o(o,l,d,m){if(!pe(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):e,G===e&&(G=pe(W)?W:tr(l[C+1])?[]:{})}vo(O,k,G),O=O[k]}return o}var Y0=Wl?function(o,l){return Wl.set(o,l),o}:bt,nK=Pl?function(o,l){return Pl(o,"toString",{configurable:!0,enumerable:!1,value:th(l),writable:!0})}:bt;function rK(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 iK(o,l){var d;return Nr(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<=KA){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===e;C<F;){var W=Gl((C+F)/2),J=d(o[W]),q=J!==e,lA=J===null,hA=J===J,UA=kt(J);if(I)var pA=m||hA;else G?pA=hA&&(m||q):O?pA=hA&&q&&(m||!lA):k?pA=hA&&q&&!lA&&(m||!UA):lA||UA?pA=!1:pA=m?J<=l:J<l;pA?C=W+1:F=W}return et(F,GA)}function z0(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 q0(o){return typeof o=="number"?o:kt(o)?XA:+o}function Ht(o){if(typeof o=="string")return o;if(yA(o))return fe(o,Ht)+"";if(kt(o))return S0?S0.call(o):"";var l=o+"";return l=="0"&&1/o==-HA?"-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:gK(o);if(G)return Ol(G);I=!1,C=yo,k=new Bi}else k=l?[]:O;A: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 A;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=by(o,l),o==null||delete o[On(An(l))]}function Z0(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 j0(o,l){var d=o;return d instanceof OA&&(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($e(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]:e;d(I,o[m],O)}return I}function Od(o){return ye(o)?o:[]}function Ld(o){return typeof o=="function"?o:bt}function Rr(o,l){return yA(o)?o:Vd(o,l)?[o]:Sy(YA(o))}var sK=IA;function Kr(o,l,d){var m=o.length;return d=d===e?m:d,!l&&d>=m?o:jt(o,l,d)}var ey=JR||function(o){return We.clearTimeout(o)};function ty(o,l){if(l)return o.slice();var d=o.length,m=Q0?Q0(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 oK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function aK(o){var l=new o.constructor(o.source,MC.exec(o));return l.lastIndex=o.lastIndex,l}function lK(o){return Uo?ie(Uo.call(o)):{}}function ny(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function ry(o,l){if(o!==l){var d=o!==e,m=o===null,C=o===o,F=kt(o),I=l!==e,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 cK(o,l,d){for(var m=-1,C=o.criteria,F=l.criteria,I=C.length,O=d.length;++m<I;){var k=ry(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 iy(o,l,d,m){for(var C=-1,F=o.length,I=d.length,O=-1,k=l.length,G=_e(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 sy(o,l,d,m){for(var C=-1,F=o.length,I=-1,O=d.length,k=-1,G=l.length,W=_e(F-O,0),J=M(W+G),q=!m;++C<W;)J[C]=o[C];for(var lA=C;++k<G;)J[lA+k]=l[k];for(;++I<O;)(q||C<F)&&(J[lA+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):e;k===e&&(k=o[O]),C?jn(d,O,k):vo(d,O,k)}return d}function uK(o,l){return xn(o,Pd(o),l)}function fK(o,l){return xn(o,wy(o),l)}function Ac(o,l){return function(d,m){var C=yA(d)?mR:L4,F=l?l():{};return C(d,o,dA(m,2),F)}}function Bs(o){return IA(function(l,d){var m=-1,C=d.length,F=C>1?d[C-1]:e,I=C>2?d[2]:e;for(F=o.length>3&&typeof F=="function"?(C--,F):e,I&&dt(d[0],d[1],I)&&(F=C<3?e:F,C=1),l=ie(l);++m<C;){var O=d[m];O&&o(l,O,m,F)}return l})}function oy(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=ie(d);(l?F--:++F<C)&&m(I[F],F,I)!==!1;);return d}}function ay(o){return function(l,d,m){for(var C=-1,F=ie(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 dK(o,l,d){var m=l&b,C=xo(o);function F(){var I=this&&this!==We&&this instanceof F?C:o;return I.apply(m?d:this,arguments)}return F}function ly(o){return function(l){l=YA(l);var d=us(l)?dn(l):e,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(oE(sE(l).replace(nR,"")),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 pe(m)?m:d}}function hK(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 hy(o,l,ec,C.placeholder,e,I,G,e,e,d-F);var W=this&&this!==We&&this instanceof C?m:o;return Ot(W,this,I)}return C}function cy(o){return function(l,d,m){var C=ie(l);if(!Qt(l)){var F=dA(d,3);l=Ne(l),d=function(O){return F(C[O],O,C)}}var I=o(l,d,m);return I>-1?C[F?l[I]:I]:e}}function uy(o){return er(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):e;k&&Gd(k[0])&&k[1]==(D|S|L|P)&&!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&&yA(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 ec(o,l,d,m,C,F,I,O,k,G){var W=l&D,J=l&b,q=l&v,lA=l&(S|E),hA=l&N,UA=q?e:xo(o);function pA(){for(var TA=arguments.length,MA=M(TA),Dt=TA;Dt--;)MA[Dt]=arguments[Dt];if(lA)var ht=Cs(pA),Nt=UR(MA,ht);if(m&&(MA=iy(MA,m,C,lA)),F&&(MA=sy(MA,F,I,lA)),TA-=Nt,lA&&TA<G){var Ee=kr(MA,ht);return hy(o,l,ec,pA.placeholder,d,MA,Ee,O,k,G-TA)}var gn=J?d:this,ir=q?gn[o]:o;return TA=MA.length,O?MA=LK(MA,O):hA&&TA>1&&MA.reverse(),W&&k<TA&&(MA.length=k),this&&this!==We&&this instanceof pA&&(ir=UA||xo(ir)),ir.apply(gn,MA)}return pA}function fy(o,l){return function(d,m){return P4(d,o,l(m),{})}}function tc(o,l){return function(d,m){var C;if(d===e&&m===e)return l;if(d!==e&&(C=d),m!==e){if(C===e)return m;typeof d=="string"||typeof m=="string"?(d=Ht(d),m=Ht(m)):(d=q0(d),m=q0(m)),C=o(d,m)}return C}}function kd(o){return er(function(l){return l=fe(l,Lt(dA())),IA(function(d){var m=this;return o(l,function(C){return Ot(C,m,d)})})})}function nc(o,l){l=l===e?" ":Ht(l);var d=l.length;if(d<2)return d?Sd(l,o):l;var m=Sd(l,Vl(o/fs(l)));return us(l)?Kr(dn(m),0,o).join(""):m.slice(0,o)}function pK(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!==We&&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 dy(o){return function(l,d,m){return m&&typeof m!="number"&&dt(l,d,m)&&(d=m=e),l=rr(l),d===e?(d=l,l=0):d=rr(d),m=m===e?l<d?1:-1:rr(m),AK(l,d,m,o)}}function rc(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=en(l),d=en(d)),o(l,d)}}function hy(o,l,d,m,C,F,I,O,k,G){var W=l&S,J=W?I:e,q=W?e:I,lA=W?F:e,hA=W?e:F;l|=W?L:U,l&=~(W?U:L),l&_||(l&=~(b|v));var UA=[o,l,C,lA,J,hA,q,O,k,G],pA=d.apply(e,UA);return Gd(o)&&Uy(pA,UA),pA.placeholder=m,vy(pA,o,l)}function Dd(o){var l=Te[o];return function(d,m){if(d=en(d),m=m==null?0:et(EA(m),292),m&&v0(d)){var C=(YA(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+m));return C=(YA(F)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return l(d)}}var gK=ps&&1/Ol(new ps([,-0]))[1]==HA?function(o){return new ps(o)}:ih;function py(o){return function(l){var d=tt(l);return d==z?dd(l):d==x?OR(l):bR(l,o(l))}}function Ar(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=e),I=I===e?I:_e(EA(I),0),O=O===e?O:EA(O),G-=C?C.length:0,l&U){var W=m,J=C;m=C=e}var q=k?e:Rd(o),lA=[o,l,d,m,C,W,J,F,I,O];if(q&&_K(lA,q),o=lA[0],l=lA[1],d=lA[2],m=lA[3],C=lA[4],O=lA[9]=lA[9]===e?k?0:o.length:_e(lA[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var hA=dK(o,l,d);else l==S||l==E?hA=hK(o,l,O):(l==L||l==(b|L))&&!C.length?hA=pK(o,l,d,m):hA=ec.apply(e,lA);var UA=q?Y0:Uy;return vy(UA(hA,lA),o,l)}function gy(o,l,d,m){return o===e||pn(o,hs[d])&&!qA.call(m,d)?l:o}function my(o,l,d,m,C,F){return pe(o)&&pe(l)&&(F.set(l,o),ql(o,l,e,my,F),F.delete(l)),o}function mK(o){return Ho(o)?e:o}function By(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,lA=d&Q?new Bi:e;for(F.set(o,l),F.set(l,o);++J<O;){var hA=o[J],UA=l[J];if(m)var pA=I?m(UA,hA,J,l,o,F):m(hA,UA,J,o,l,F);if(pA!==e){if(pA)continue;q=!1;break}if(lA){if(!od(l,function(TA,MA){if(!yo(lA,MA)&&(hA===TA||C(hA,TA,d,m,F)))return lA.push(MA)})){q=!1;break}}else if(!(hA===UA||C(hA,UA,d,m,F))){q=!1;break}}return F.delete(o),F.delete(l),q}function BK(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 At:case bA: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=By(O(o),O(l),m,C,F,I);return I.delete(o),W;case oA:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function wK(o,l,d,m,C,F){var I=d&w,O=Nd(o),k=O.length,G=Nd(l),W=G.length;if(k!=W&&!I)return!1;for(var J=k;J--;){var q=O[J];if(!(I?q in l:qA.call(l,q)))return!1}var lA=F.get(o),hA=F.get(l);if(lA&&hA)return lA==l&&hA==o;var UA=!0;F.set(o,l),F.set(l,o);for(var pA=I;++J<k;){q=O[J];var TA=o[q],MA=l[q];if(m)var Dt=I?m(MA,TA,q,l,o,F):m(TA,MA,q,o,l,F);if(!(Dt===e?TA===MA||C(TA,MA,d,m,F):Dt)){UA=!1;break}pA||(pA=q=="constructor")}if(UA&&!pA){var ht=o.constructor,Nt=l.constructor;ht!=Nt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Nt=="function"&&Nt instanceof Nt)&&(UA=!1)}return F.delete(o),F.delete(l),UA}function er(o){return $d(Fy(o,e,Oy),o+"")}function Nd(o){return N0(o,Ne,Pd)}function Md(o){return N0(o,Ft,wy)}var Rd=Wl?function(o){return Wl.get(o)}:ih;function ic(o){for(var l=o.name+"",d=gs[l],m=qA.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=qA.call(y,"placeholder")?y:o;return l.placeholder}function dA(){var o=y.iteratee||nh;return o=o===nh?K0:o,arguments.length?o(arguments[0],arguments[1]):o}function sc(o,l){var d=o.__data__;return vK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Kd(o){for(var l=Ne(o),d=l.length;d--;){var m=l[d],C=o[m];l[d]=[m,C,Ey(C)]}return l}function yi(o,l){var d=TR(o,l);return R0(d)?d:e}function CK(o){var l=qA.call(o,gi),d=o[gi];try{o[gi]=e;var m=!0}catch{}var C=Dl.call(o);return m&&(l?o[gi]=d:delete o[gi]),C}var Pd=pd?function(o){return o==null?[]:(o=ie(o),Lr(pd(o),function(l){return b0.call(o,l)}))}:sh,wy=pd?function(o){for(var l=[];o;)Hr(l,Pd(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)!=DA)&&(tt=function(o){var l=ft(o),d=l==ve?o.constructor:e,m=d?Ei(d):"";if(m)switch(m){case t4:return X;case n4:return z;case r4:return fn;case i4:return x;case s4:return DA}return l});function yK(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=et(l,o+I);break;case"takeRight":o=_e(o,l-I);break}}return{start:o,end:l}}function EK(o){var l=o.match(IM);return l?l[1].split(SM):[]}function Cy(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)&&(yA(o)||Qi(o)))}function QK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&qA.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function yy(o){return typeof o.constructor=="function"&&!Oo(o)?ms(Rl(o)):{}}function FK(o,l,d){var m=o.constructor;switch(l){case R:return Hd(o);case ct:case At:return new m(+o);case X:return oK(o,d);case SA:case re:case Ct:case Tn:case Jt:case K:case iA:case uA:case VA:return ny(o,d);case z:return new m;case bA:case $:return new m(o);case T:return aK(o);case x:return new m;case oA:return lK(o)}}function bK(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(vM,`{
143
+ */Oa.exports,function(t,A){(function(){var e,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,D=128,P=256,N=512,sA=30,BA="...",nA=800,cA=16,LA=1,oe=2,RA=3,HA=1/0,rA=9007199254740991,mA=17976931348623157e292,XA=0/0,kA=4294967295,GA=kA-1,KA=kA>>>1,Ae=[["ary",D],["bind",b],["bindKey",v],["curry",S],["curryRight",E],["flip",N],["partial",L],["partialRight",U],["rearg",P]],ee="[object Arguments]",zA="[object Array]",pe="[object AsyncFunction]",ct="[object Boolean]",At="[object Date]",ut="[object DOMException]",_t="[object Error]",xt="[object Function]",un="[object GeneratorFunction]",z="[object Map]",UA="[object Number]",Sn="[object Null]",ve="[object Object]",fn="[object Promise]",xr="[object Proxy]",T="[object RegExp]",x="[object Set]",$="[object String]",oA="[object Symbol]",te="[object Undefined]",DA="[object WeakMap]",PA="[object WeakSet]",R="[object ArrayBuffer]",X="[object DataView]",SA="[object Float32Array]",re="[object Float64Array]",Ct="[object Int8Array]",Tn="[object Int16Array]",Jt="[object Int32Array]",K="[object Uint8Array]",iA="[object Uint8ClampedArray]",uA="[object Uint16Array]",VA="[object Uint32Array]",NA=/\b__p \+= '';/g,Ge=/\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*$/,vM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,IM=RegExp(zf.source),qf=/^\s+/,SM=/\s/,TM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_M=/\{\n\/\* \[wrapped with (.+)\] \*/,xM=/,? & /,OM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,LM=/[()=,{}\[\]\/\s]/,HM=/\\(\\)?/g,kM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,RC=/\w*$/,DM=/^[-+]0x[0-9a-f]+$/i,NM=/^0b[01]+$/i,MM=/^\[object .+?Constructor\]$/,RM=/^0o[0-7]+$/i,KM=/^(?:0|[1-9]\d*)$/,PM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,VM=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",GM="\\u0300-\\u036f",WM="\\ufe20-\\ufe2f",$M="\\u20d0-\\u20ff",KC=GM+WM+$M,PC="\\u2700-\\u27bf",VC="a-z\\xdf-\\xf6\\xf8-\\xff",JM="\\xac\\xb1\\xd7\\xf7",XM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YM="\\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=JM+XM+YM+zM,Zf="['’]",qM="["+Sl+"]",JC="["+$C+"]",Tl="["+KC+"]",XC="\\d+",ZM="["+PC+"]",YC="["+VC+"]",zC="[^"+Sl+$C+XC+PC+VC+GC+"]",jf="\\ud83c[\\udffb-\\udfff]",jM="(?:"+Tl+"|"+jf+")",qC="[^"+Sl+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",ed="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+GC+"]",ZC="\\u200d",jC="(?:"+YC+"|"+zC+")",AR="(?:"+ls+"|"+zC+")",A0="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",e0="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",t0=jM+"?",n0="["+WC+"]?",eR="(?:"+ZC+"(?:"+[qC,Ad,ed].join("|")+")"+n0+t0+")*",tR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",r0=n0+t0+eR,rR="(?:"+[ZM,Ad,ed].join("|")+")"+r0,iR="(?:"+[qC+Tl+"?",Tl,Ad,ed,qM].join("|")+")",sR=RegExp(Zf,"g"),oR=RegExp(Tl,"g"),td=RegExp(jf+"(?="+jf+")|"+iR+r0,"g"),aR=RegExp([ls+"?"+YC+"+"+A0+"(?="+[JC,ls,"$"].join("|")+")",AR+"+"+e0+"(?="+[JC,ls+jC,"$"].join("|")+")",ls+"?"+jC+"+"+A0,ls+"+"+e0,nR,tR,XC,rR].join("|"),"g"),lR=RegExp("["+ZC+Sl+KC+WC+"]"),cR=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uR=["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"],fR=-1,ce={};ce[SA]=ce[re]=ce[Ct]=ce[Tn]=ce[Jt]=ce[K]=ce[iA]=ce[uA]=ce[VA]=!0,ce[ee]=ce[zA]=ce[R]=ce[ct]=ce[X]=ce[At]=ce[_t]=ce[xt]=ce[z]=ce[UA]=ce[ve]=ce[T]=ce[x]=ce[$]=ce[DA]=!1;var ae={};ae[ee]=ae[zA]=ae[R]=ae[X]=ae[ct]=ae[At]=ae[SA]=ae[re]=ae[Ct]=ae[Tn]=ae[Jt]=ae[z]=ae[UA]=ae[ve]=ae[T]=ae[x]=ae[$]=ae[oA]=ae[K]=ae[iA]=ae[uA]=ae[VA]=!0,ae[_t]=ae[xt]=ae[DA]=!1;var dR={À:"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"},hR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pR={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},gR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mR=parseFloat,BR=parseInt,i0=typeof Ys=="object"&&Ys&&Ys.Object===Object&&Ys,wR=typeof self=="object"&&self&&self.Object===Object&&self,We=i0||wR||Function("return this")(),nd=A&&!A.nodeType&&A,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,V,M){switch(M.length){case 0:return H.call(V);case 1:return H.call(V,M[0]);case 2:return H.call(V,M[0],M[1]);case 3:return H.call(V,M[0],M[1],M[2])}return H.apply(V,M)}function CR(H,V,M,eA){for(var wA=-1,$A=H==null?0:H.length;++wA<$A;){var Te=H[wA];V(eA,Te,M(Te),H)}return eA}function Yt(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA&&V(H[M],M,H)!==!1;);return H}function yR(H,V){for(var M=H==null?0:H.length;M--&&V(H[M],M,H)!==!1;);return H}function d0(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(!V(H[M],M,H))return!1;return!0}function Lr(H,V){for(var M=-1,eA=H==null?0:H.length,wA=0,$A=[];++M<eA;){var Te=H[M];V(Te,M,H)&&($A[wA++]=Te)}return $A}function _l(H,V){var M=H==null?0:H.length;return!!M&&cs(H,V,0)>-1}function id(H,V,M){for(var eA=-1,wA=H==null?0:H.length;++eA<wA;)if(M(V,H[eA]))return!0;return!1}function fe(H,V){for(var M=-1,eA=H==null?0:H.length,wA=Array(eA);++M<eA;)wA[M]=V(H[M],M,H);return wA}function Hr(H,V){for(var M=-1,eA=V.length,wA=H.length;++M<eA;)H[wA+M]=V[M];return H}function sd(H,V,M,eA){var wA=-1,$A=H==null?0:H.length;for(eA&&$A&&(M=H[++wA]);++wA<$A;)M=V(M,H[wA],wA,H);return M}function ER(H,V,M,eA){var wA=H==null?0:H.length;for(eA&&wA&&(M=H[--wA]);wA--;)M=V(M,H[wA],wA,H);return M}function od(H,V){for(var M=-1,eA=H==null?0:H.length;++M<eA;)if(V(H[M],M,H))return!0;return!1}var QR=ad("length");function FR(H){return H.split("")}function bR(H){return H.match(OM)||[]}function h0(H,V,M){var eA;return M(H,function(wA,$A,Te){if(V(wA,$A,Te))return eA=$A,!1}),eA}function xl(H,V,M,eA){for(var wA=H.length,$A=M+(eA?1:-1);eA?$A--:++$A<wA;)if(V(H[$A],$A,H))return $A;return-1}function cs(H,V,M){return V===V?DR(H,V,M):xl(H,p0,M)}function UR(H,V,M,eA){for(var wA=M-1,$A=H.length;++wA<$A;)if(eA(H[wA],V))return wA;return-1}function p0(H){return H!==H}function g0(H,V){var M=H==null?0:H.length;return M?cd(H,V)/M:XA}function ad(H){return function(V){return V==null?e:V[H]}}function ld(H){return function(V){return H==null?e:H[V]}}function m0(H,V,M,eA,wA){return wA(H,function($A,Te,ie){M=eA?(eA=!1,$A):V(M,$A,Te,ie)}),M}function vR(H,V){var M=H.length;for(H.sort(V);M--;)H[M]=H[M].value;return H}function cd(H,V){for(var M,eA=-1,wA=H.length;++eA<wA;){var $A=V(H[eA]);$A!==e&&(M=M===e?$A:M+$A)}return M}function ud(H,V){for(var M=-1,eA=Array(H);++M<H;)eA[M]=V(M);return eA}function IR(H,V){return fe(V,function(M){return[M,H[M]]})}function B0(H){return H&&H.slice(0,E0(H)+1).replace(qf,"")}function Lt(H){return function(V){return H(V)}}function fd(H,V){return fe(V,function(M){return H[M]})}function yo(H,V){return H.has(V)}function w0(H,V){for(var M=-1,eA=H.length;++M<eA&&cs(V,H[M],0)>-1;);return M}function C0(H,V){for(var M=H.length;M--&&cs(V,H[M],0)>-1;);return M}function SR(H,V){for(var M=H.length,eA=0;M--;)H[M]===V&&++eA;return eA}var TR=ld(dR),_R=ld(hR);function xR(H){return"\\"+gR[H]}function OR(H,V){return H==null?e:H[V]}function us(H){return lR.test(H)}function LR(H){return cR.test(H)}function HR(H){for(var V,M=[];!(V=H.next()).done;)M.push(V.value);return M}function dd(H){var V=-1,M=Array(H.size);return H.forEach(function(eA,wA){M[++V]=[wA,eA]}),M}function y0(H,V){return function(M){return H(V(M))}}function kr(H,V){for(var M=-1,eA=H.length,wA=0,$A=[];++M<eA;){var Te=H[M];(Te===V||Te===f)&&(H[M]=f,$A[wA++]=M)}return $A}function Ol(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=eA}),M}function kR(H){var V=-1,M=Array(H.size);return H.forEach(function(eA){M[++V]=[eA,eA]}),M}function DR(H,V,M){for(var eA=M-1,wA=H.length;++eA<wA;)if(H[eA]===V)return eA;return-1}function NR(H,V,M){for(var eA=M+1;eA--;)if(H[eA]===V)return eA;return eA}function fs(H){return us(H)?RR(H):QR(H)}function dn(H){return us(H)?KR(H):FR(H)}function E0(H){for(var V=H.length;V--&&SM.test(H.charAt(V)););return V}var MR=ld(pR);function RR(H){for(var V=td.lastIndex=0;td.test(H);)++V;return V}function KR(H){return H.match(td)||[]}function PR(H){return H.match(aR)||[]}var VR=function H(V){V=V==null?We:ds.defaults(We.Object(),V,ds.pick(We,uR));var M=V.Array,eA=V.Date,wA=V.Error,$A=V.Function,Te=V.Math,ie=V.Object,hd=V.RegExp,GR=V.String,zt=V.TypeError,Ll=M.prototype,WR=$A.prototype,hs=ie.prototype,Hl=V["__core-js_shared__"],kl=WR.toString,qA=hs.hasOwnProperty,$R=0,Q0=function(){var o=/[^.]+$/.exec(Hl&&Hl.keys&&Hl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Dl=hs.toString,JR=kl.call(ie),XR=We._,YR=hd("^"+kl.call(qA).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=s0?V.Buffer:e,Dr=V.Symbol,Ml=V.Uint8Array,F0=Nl?Nl.allocUnsafe:e,Rl=y0(ie.getPrototypeOf,ie),b0=ie.create,U0=hs.propertyIsEnumerable,Kl=Ll.splice,v0=Dr?Dr.isConcatSpreadable:e,Eo=Dr?Dr.iterator:e,gi=Dr?Dr.toStringTag:e,Pl=function(){try{var o=yi(ie,"defineProperty");return o({},"",{}),o}catch{}}(),zR=V.clearTimeout!==We.clearTimeout&&V.clearTimeout,qR=eA&&eA.now!==We.Date.now&&eA.now,ZR=V.setTimeout!==We.setTimeout&&V.setTimeout,Vl=Te.ceil,Gl=Te.floor,pd=ie.getOwnPropertySymbols,jR=Nl?Nl.isBuffer:e,I0=V.isFinite,A4=Ll.join,e4=y0(ie.keys,ie),_e=Te.max,et=Te.min,t4=eA.now,n4=V.parseInt,S0=Te.random,r4=Ll.reverse,gd=yi(V,"DataView"),Qo=yi(V,"Map"),md=yi(V,"Promise"),ps=yi(V,"Set"),Fo=yi(V,"WeakMap"),bo=yi(ie,"create"),Wl=Fo&&new Fo,gs={},i4=Ei(gd),s4=Ei(Qo),o4=Ei(md),a4=Ei(ps),l4=Ei(Fo),$l=Dr?Dr.prototype:e,Uo=$l?$l.valueOf:e,T0=$l?$l.toString:e;function y(o){if(Be(o)&&!yA(o)&&!(o instanceof OA)){if(o instanceof qt)return o;if(qA.call(o,"__wrapped__"))return _y(o)}return new qt(o)}var ms=function(){function o(){}return function(l){if(!ge(l))return{};if(b0)return b0(l);o.prototype=l;var d=new o;return o.prototype=e,d}}();function Jl(){}function qt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}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 OA(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kA,this.__views__=[]}function c4(){var o=new OA(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 u4(){if(this.__filtered__){var o=new OA(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function f4(){var o=this.__wrapped__.value(),l=this.__dir__,d=yA(o),m=l<0,C=d?o.length:0,F=FK(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,lA=et(k,this.__takeCount__);if(!d||!m&&C==k&&lA==k)return Ay(o,this.__actions__);var hA=[];A:for(;k--&&q<lA;){G+=l;for(var vA=-1,pA=o[G];++vA<J;){var TA=W[vA],MA=TA.iteratee,Dt=TA.type,ht=MA(pA);if(Dt==oe)pA=ht;else if(!ht){if(Dt==LA)continue A;break A}}hA[q++]=pA}return hA}OA.prototype=ms(Jl.prototype),OA.prototype.constructor=OA;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 d4(){this.__data__=bo?bo(null):{},this.size=0}function h4(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function p4(o){var l=this.__data__;if(bo){var d=l[o];return d===c?e:d}return qA.call(l,o)?l[o]:e}function g4(o){var l=this.__data__;return bo?l[o]!==e:qA.call(l,o)}function m4(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=bo&&l===e?c:l,this}mi.prototype.clear=d4,mi.prototype.delete=h4,mi.prototype.get=p4,mi.prototype.has=g4,mi.prototype.set=m4;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 B4(){this.__data__=[],this.size=0}function w4(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 C4(o){var l=this.__data__,d=Xl(l,o);return d<0?e:l[d][1]}function y4(o){return Xl(this.__data__,o)>-1}function E4(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=B4,qn.prototype.delete=w4,qn.prototype.get=C4,qn.prototype.has=y4,qn.prototype.set=E4;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 Q4(){this.size=0,this.__data__={hash:new mi,map:new(Qo||qn),string:new mi}}function F4(o){var l=sc(this,o).delete(o);return this.size-=l?1:0,l}function b4(o){return sc(this,o).get(o)}function U4(o){return sc(this,o).has(o)}function v4(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=Q4,Zn.prototype.delete=F4,Zn.prototype.get=b4,Zn.prototype.has=U4,Zn.prototype.set=v4;function Bi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Zn;++l<d;)this.add(o[l])}function I4(o){return this.__data__.set(o,c),this}function S4(o){return this.__data__.has(o)}Bi.prototype.add=Bi.prototype.push=I4,Bi.prototype.has=S4;function hn(o){var l=this.__data__=new qn(o);this.size=l.size}function T4(){this.__data__=new qn,this.size=0}function _4(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function x4(o){return this.__data__.get(o)}function O4(o){return this.__data__.has(o)}function L4(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=T4,hn.prototype.delete=_4,hn.prototype.get=x4,hn.prototype.has=O4,hn.prototype.set=L4;function _0(o,l){var d=yA(o),m=!d&&Qi(o),C=!d&&!m&&Pr(o),F=!d&&!m&&!C&&ys(o),I=d||m||C||F,O=I?ud(o.length,GR):[],k=O.length;for(var G in o)(l||qA.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)]:e}function H4(o,l){return oc(Et(o),wi(l,0,o.length))}function k4(o){return oc(Et(o))}function Bd(o,l,d){(d!==e&&!pn(o[l],d)||d===e&&!(l in o))&&jn(o,l,d)}function vo(o,l,d){var m=o[l];(!(qA.call(o,l)&&pn(m,d))||d===e&&!(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 D4(o,l,d,m){return Nr(o,function(C,F,I){l(m,C,d(C),I)}),m}function O0(o,l){return o&&xn(l,Ne(l),o)}function N4(o,l){return o&&xn(l,Ft(l),o)}function jn(o,l,d){l=="__proto__"&&Pl?Pl(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?e:jd(o,l[d]);return C}function wi(o,l,d){return o===o&&(d!==e&&(o=o<=d?o:d),l!==e&&(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!==e)return I;if(!ge(o))return o;var W=yA(o);if(W){if(I=UK(o),!O)return Et(o,I)}else{var J=tt(o),q=J==xt||J==un;if(Pr(o))return ny(o,O);if(J==ve||J==ee||q&&!C){if(I=k||q?{}:Ey(o),!O)return k?pK(o,N4(I,o)):hK(o,O0(I,o))}else{if(!ae[J])return C?o:{};I=vK(o,J,O)}}F||(F=new hn);var lA=F.get(o);if(lA)return lA;F.set(o,I),qy(o)?o.forEach(function(pA){I.add(Zt(pA,l,d,pA,o,F))}):Yy(o)&&o.forEach(function(pA,TA){I.set(TA,Zt(pA,l,d,TA,o,F))});var hA=G?k?Md:Nd:k?Ft:Ne,vA=W?e:hA(o);return Yt(vA||o,function(pA,TA){vA&&(TA=pA,pA=o[TA]),vo(I,TA,Zt(pA,l,d,TA,o,F))}),I}function M4(o){var l=Ne(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=ie(o);m--;){var C=d[m],F=l[C],I=o[C];if(I===e&&!(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(e,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=fe(l,Lt(d))),m?(F=id,I=!1):l.length>=r&&(F=yo,I=!1,l=new Bi(l));A: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 A;k.push(W)}else F(l,J,m)||k.push(W)}return k}var Nr=ay(_n),k0=ay(yd,!0);function R4(o,l){var d=!0;return Nr(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===e?I===I&&!kt(I):d(I,O)))var O=I,k=F}return k}function K4(o,l,d,m){var C=o.length;for(d=EA(d),d<0&&(d=-d>C?0:C+d),m=m===e||m>C?C:EA(m),m<0&&(m+=C),m=d>m?0:jy(m);d<m;)o[d++]=l;return o}function D0(o,l){var d=[];return Nr(o,function(m,C,F){l(m,C,F)&&d.push(m)}),d}function $e(o,l,d,m,C){var F=-1,I=o.length;for(d||(d=SK),C||(C=[]);++F<I;){var O=o[F];l>0&&d(O)?l>1?$e(O,l-1,d,m,C):Hr(C,O):m||(C[C.length]=O)}return C}var Cd=ly(),N0=ly(!0);function _n(o,l){return o&&Cd(o,l,Ne)}function yd(o,l){return o&&N0(o,l,Ne)}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:e}function M0(o,l,d){var m=l(o);return yA(o)?m:Hr(m,d(o))}function ft(o){return o==null?o===e?te:Sn:gi&&gi in ie(o)?QK(o):kK(o)}function Ed(o,l){return o>l}function P4(o,l){return o!=null&&qA.call(o,l)}function V4(o,l){return o!=null&&l in ie(o)}function G4(o,l,d){return o>=et(l,d)&&o<_e(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=fe(W,Lt(l))),k=et(W.length,k),O[I]=!d&&(l||C>=120&&W.length>=120)?new Bi(I&&W):e}W=o[0];var J=-1,q=O[0];A:for(;++J<C&&G.length<k;){var lA=W[J],hA=l?l(lA):lA;if(lA=d||lA!==0?lA:0,!(q?yo(q,hA):m(G,hA,d))){for(I=F;--I;){var vA=O[I];if(!(vA?yo(vA,hA):m(o[I],hA,d)))continue A}q&&q.push(hA),G.push(lA)}}return G}function W4(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(An(l))];return m==null?e:Ot(m,o,d)}function R0(o){return Be(o)&&ft(o)==ee}function $4(o){return Be(o)&&ft(o)==R}function J4(o){return Be(o)&&ft(o)==At}function To(o,l,d,m,C){return o===l?!0:o==null||l==null||!Be(o)&&!Be(l)?o!==o&&l!==l:X4(o,l,d,m,To,C)}function X4(o,l,d,m,C,F){var I=yA(o),O=yA(l),k=I?zA:tt(o),G=O?zA:tt(l);k=k==ee?ve:k,G=G==ee?ve:G;var W=k==ve,J=G==ve,q=k==G;if(q&&Pr(o)){if(!Pr(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):yK(o,l,k,d,m,C,F);if(!(d&w)){var lA=W&&qA.call(o,"__wrapped__"),hA=J&&qA.call(l,"__wrapped__");if(lA||hA){var vA=lA?o.value():o,pA=hA?l.value():l;return F||(F=new hn),C(vA,pA,d,m,F)}}return q?(F||(F=new hn),EK(o,l,d,m,C,F)):!1}function Y4(o){return Be(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=ie(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===e&&!(k in o))return!1}else{var J=new hn;if(m)var q=m(G,W,k,o,l,J);if(!(q===e?To(W,G,w|Q,m,J):q))return!1}}return!0}function K0(o){if(!ge(o)||_K(o))return!1;var l=nr(o)?YR:MM;return l.test(Ei(o))}function z4(o){return Be(o)&&ft(o)==T}function q4(o){return Be(o)&&tt(o)==x}function Z4(o){return Be(o)&&dc(o.length)&&!!ce[ft(o)]}function P0(o){return typeof o=="function"?o:o==null?bt:typeof o=="object"?yA(o)?W0(o[0],o[1]):G0(o):cE(o)}function bd(o){if(!Oo(o))return e4(o);var l=[];for(var d in ie(o))qA.call(o,d)&&d!="constructor"&&l.push(d);return l}function j4(o){if(!ge(o))return HK(o);var l=Oo(o),d=[];for(var m in o)m=="constructor"&&(l||!qA.call(o,m))||d.push(m);return d}function Ud(o,l){return o<l}function V0(o,l){var d=-1,m=Qt(o)?M(o.length):[];return Nr(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 Vd(o)&&Qy(l)?Fy(On(o),l):function(d){var m=jd(d,o);return m===e&&m===l?Ah(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),ge(F))AK(o,l,I,d,ql,m,C);else{var O=m?m(Wd(o,I),F,I+"",o,l,C):e;O===e&&(O=F),Bd(o,I,O)}},Ft)}function AK(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):e,J=W===e;if(J){var q=yA(k),lA=!q&&Pr(k),hA=!q&&!lA&&ys(k);W=k,q||lA||hA?yA(O)?W=O:ye(O)?W=Et(O):lA?(J=!1,W=ny(k,!0)):hA?(J=!1,W=ry(k,!0)):W=[]:Ho(k)||Qi(k)?(W=O,Qi(O)?W=AE(O):(!ge(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]:e}function J0(o,l,d){l.length?l=fe(l,function(F){return yA(F)?function(I){return Ci(I,F.length===1?F[0]:F)}:F}):l=[bt];var m=-1;l=fe(l,Lt(dA()));var C=V0(o,function(F,I,O){var k=fe(l,function(G){return G(F)});return{criteria:k,index:++m,value:F}});return vR(C,function(F,I){return dK(F,I,d)})}function eK(o,l){return X0(o,l,function(d,m){return Ah(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 tK(o){return function(l){return Ci(l,o)}}function vd(o,l,d,m){var C=m?UR:cs,F=-1,I=l.length,O=o;for(o===l&&(l=Et(l)),d&&(O=fe(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 nK(o,l,d,m){for(var C=-1,F=_e(Vl((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>rA)return d;do l%2&&(d+=o),l=Gl(l/2),l&&(o+=o);while(l);return d}function IA(o,l){return $d(by(o,l,bt),o+"")}function rK(o){return x0(Es(o))}function iK(o,l){var d=Es(o);return oc(d,wi(l,0,d.length))}function _o(o,l,d,m){if(!ge(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):e,G===e&&(G=ge(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,sK=Pl?function(o,l){return Pl(o,"toString",{configurable:!0,enumerable:!1,value:th(l),writable:!0})}:bt;function oK(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 aK(o,l){var d;return Nr(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<=KA){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===e;C<F;){var W=Gl((C+F)/2),J=d(o[W]),q=J!==e,lA=J===null,hA=J===J,vA=kt(J);if(I)var pA=m||hA;else G?pA=hA&&(m||q):O?pA=hA&&q&&(m||!lA):k?pA=hA&&q&&!lA&&(m||!vA):lA||vA?pA=!1:pA=m?J<=l:J<l;pA?C=W+1:F=W}return et(F,GA)}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)?XA:+o}function Ht(o){if(typeof o=="string")return o;if(yA(o))return fe(o,Ht)+"";if(kt(o))return T0?T0.call(o):"";var l=o+"";return l=="0"&&1/o==-HA?"-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:wK(o);if(G)return Ol(G);I=!1,C=yo,k=new Bi}else k=l?[]:O;A: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 A;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(An(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 Ay(o,l){var d=o;return d instanceof OA&&(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($e(F,1),l,d)}function ey(o,l,d){for(var m=-1,C=o.length,F=l.length,I={};++m<C;){var O=m<F?l[m]:e;d(I,o[m],O)}return I}function Od(o){return ye(o)?o:[]}function Ld(o){return typeof o=="function"?o:bt}function Rr(o,l){return yA(o)?o:Vd(o,l)?[o]:Ty(YA(o))}var lK=IA;function Kr(o,l,d){var m=o.length;return d=d===e?m:d,!l&&d>=m?o:jt(o,l,d)}var ty=zR||function(o){return We.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 cK(o,l){var d=l?Hd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function uK(o){var l=new o.constructor(o.source,RC.exec(o));return l.lastIndex=o.lastIndex,l}function fK(o){return Uo?ie(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!==e,m=o===null,C=o===o,F=kt(o),I=l!==e,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 dK(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=_e(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=_e(F-O,0),J=M(W+G),q=!m;++C<W;)J[C]=o[C];for(var lA=C;++k<G;)J[lA+k]=l[k];for(;++I<O;)(q||C<F)&&(J[lA+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):e;k===e&&(k=o[O]),C?jn(d,O,k):vo(d,O,k)}return d}function hK(o,l){return xn(o,Pd(o),l)}function pK(o,l){return xn(o,Cy(o),l)}function Ac(o,l){return function(d,m){var C=yA(d)?CR:D4,F=l?l():{};return C(d,o,dA(m,2),F)}}function Bs(o){return IA(function(l,d){var m=-1,C=d.length,F=C>1?d[C-1]:e,I=C>2?d[2]:e;for(F=o.length>3&&typeof F=="function"?(C--,F):e,I&&dt(d[0],d[1],I)&&(F=C<3?e:F,C=1),l=ie(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=ie(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=ie(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 gK(o,l,d){var m=l&b,C=xo(o);function F(){var I=this&&this!==We&&this instanceof F?C:o;return I.apply(m?d:this,arguments)}return F}function cy(o){return function(l){l=YA(l);var d=us(l)?dn(l):e,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(sR,"")),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 ge(m)?m:d}}function mK(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,ec,C.placeholder,e,I,G,e,e,d-F);var W=this&&this!==We&&this instanceof C?m:o;return Ot(W,this,I)}return C}function uy(o){return function(l,d,m){var C=ie(l);if(!Qt(l)){var F=dA(d,3);l=Ne(l),d=function(O){return F(C[O],O,C)}}var I=o(l,d,m);return I>-1?C[F?l[I]:I]:e}}function fy(o){return er(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):e;k&&Gd(k[0])&&k[1]==(D|S|L|P)&&!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&&yA(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 ec(o,l,d,m,C,F,I,O,k,G){var W=l&D,J=l&b,q=l&v,lA=l&(S|E),hA=l&N,vA=q?e:xo(o);function pA(){for(var TA=arguments.length,MA=M(TA),Dt=TA;Dt--;)MA[Dt]=arguments[Dt];if(lA)var ht=Cs(pA),Nt=SR(MA,ht);if(m&&(MA=sy(MA,m,C,lA)),F&&(MA=oy(MA,F,I,lA)),TA-=Nt,lA&&TA<G){var Ee=kr(MA,ht);return py(o,l,ec,pA.placeholder,d,MA,Ee,O,k,G-TA)}var gn=J?d:this,ir=q?gn[o]:o;return TA=MA.length,O?MA=DK(MA,O):hA&&TA>1&&MA.reverse(),W&&k<TA&&(MA.length=k),this&&this!==We&&this instanceof pA&&(ir=vA||xo(ir)),ir.apply(gn,MA)}return pA}function dy(o,l){return function(d,m){return W4(d,o,l(m),{})}}function tc(o,l){return function(d,m){var C;if(d===e&&m===e)return l;if(d!==e&&(C=d),m!==e){if(C===e)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 er(function(l){return l=fe(l,Lt(dA())),IA(function(d){var m=this;return o(l,function(C){return Ot(C,m,d)})})})}function nc(o,l){l=l===e?" ":Ht(l);var d=l.length;if(d<2)return d?Sd(l,o):l;var m=Sd(l,Vl(o/fs(l)));return us(l)?Kr(dn(m),0,o).join(""):m.slice(0,o)}function BK(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!==We&&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=e),l=rr(l),d===e?(d=l,l=0):d=rr(d),m=m===e?l<d?1:-1:rr(m),nK(l,d,m,o)}}function rc(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=en(l),d=en(d)),o(l,d)}}function py(o,l,d,m,C,F,I,O,k,G){var W=l&S,J=W?I:e,q=W?e:I,lA=W?F:e,hA=W?e:F;l|=W?L:U,l&=~(W?U:L),l&_||(l&=~(b|v));var vA=[o,l,C,lA,J,hA,q,O,k,G],pA=d.apply(e,vA);return Gd(o)&&vy(pA,vA),pA.placeholder=m,Iy(pA,o,l)}function Dd(o){var l=Te[o];return function(d,m){if(d=en(d),m=m==null?0:et(EA(m),292),m&&I0(d)){var C=(YA(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+m));return C=(YA(F)+"e").split("e"),+(C[0]+"e"+(+C[1]-m))}return l(d)}}var wK=ps&&1/Ol(new ps([,-0]))[1]==HA?function(o){return new ps(o)}:ih;function gy(o){return function(l){var d=tt(l);return d==z?dd(l):d==x?kR(l):IR(l,o(l))}}function Ar(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=e),I=I===e?I:_e(EA(I),0),O=O===e?O:EA(O),G-=C?C.length:0,l&U){var W=m,J=C;m=C=e}var q=k?e:Rd(o),lA=[o,l,d,m,C,W,J,F,I,O];if(q&&LK(lA,q),o=lA[0],l=lA[1],d=lA[2],m=lA[3],C=lA[4],O=lA[9]=lA[9]===e?k?0:o.length:_e(lA[9]-G,0),!O&&l&(S|E)&&(l&=~(S|E)),!l||l==b)var hA=gK(o,l,d);else l==S||l==E?hA=mK(o,l,O):(l==L||l==(b|L))&&!C.length?hA=BK(o,l,d,m):hA=ec.apply(e,lA);var vA=q?z0:vy;return Iy(vA(hA,lA),o,l)}function my(o,l,d,m){return o===e||pn(o,hs[d])&&!qA.call(m,d)?l:o}function By(o,l,d,m,C,F){return ge(o)&&ge(l)&&(F.set(l,o),ql(o,l,e,By,F),F.delete(l)),o}function CK(o){return Ho(o)?e: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,lA=d&Q?new Bi:e;for(F.set(o,l),F.set(l,o);++J<O;){var hA=o[J],vA=l[J];if(m)var pA=I?m(vA,hA,J,l,o,F):m(hA,vA,J,o,l,F);if(pA!==e){if(pA)continue;q=!1;break}if(lA){if(!od(l,function(TA,MA){if(!yo(lA,MA)&&(hA===TA||C(hA,TA,d,m,F)))return lA.push(MA)})){q=!1;break}}else if(!(hA===vA||C(hA,vA,d,m,F))){q=!1;break}}return F.delete(o),F.delete(l),q}function yK(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 At:case UA: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 oA:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function EK(o,l,d,m,C,F){var I=d&w,O=Nd(o),k=O.length,G=Nd(l),W=G.length;if(k!=W&&!I)return!1;for(var J=k;J--;){var q=O[J];if(!(I?q in l:qA.call(l,q)))return!1}var lA=F.get(o),hA=F.get(l);if(lA&&hA)return lA==l&&hA==o;var vA=!0;F.set(o,l),F.set(l,o);for(var pA=I;++J<k;){q=O[J];var TA=o[q],MA=l[q];if(m)var Dt=I?m(MA,TA,q,l,o,F):m(TA,MA,q,o,l,F);if(!(Dt===e?TA===MA||C(TA,MA,d,m,F):Dt)){vA=!1;break}pA||(pA=q=="constructor")}if(vA&&!pA){var ht=o.constructor,Nt=l.constructor;ht!=Nt&&"constructor"in o&&"constructor"in l&&!(typeof ht=="function"&&ht instanceof ht&&typeof Nt=="function"&&Nt instanceof Nt)&&(vA=!1)}return F.delete(o),F.delete(l),vA}function er(o){return $d(by(o,e,Ly),o+"")}function Nd(o){return M0(o,Ne,Pd)}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=qA.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=qA.call(y,"placeholder")?y:o;return l.placeholder}function dA(){var o=y.iteratee||nh;return o=o===nh?P0:o,arguments.length?o(arguments[0],arguments[1]):o}function sc(o,l){var d=o.__data__;return TK(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Kd(o){for(var l=Ne(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=OR(o,l);return K0(d)?d:e}function QK(o){var l=qA.call(o,gi),d=o[gi];try{o[gi]=e;var m=!0}catch{}var C=Dl.call(o);return m&&(l?o[gi]=d:delete o[gi]),C}var Pd=pd?function(o){return o==null?[]:(o=ie(o),Lr(pd(o),function(l){return U0.call(o,l)}))}:sh,Cy=pd?function(o){for(var l=[];o;)Hr(l,Pd(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)!=DA)&&(tt=function(o){var l=ft(o),d=l==ve?o.constructor:e,m=d?Ei(d):"";if(m)switch(m){case i4:return X;case s4:return z;case o4:return fn;case a4:return x;case l4:return DA}return l});function FK(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=et(l,o+I);break;case"takeRight":o=_e(o,l-I);break}}return{start:o,end:l}}function bK(o){var l=o.match(_M);return l?l[1].split(xM):[]}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)&&(yA(o)||Qi(o)))}function UK(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&qA.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 vK(o,l,d){var m=o.constructor;switch(l){case R:return Hd(o);case ct:case At:return new m(+o);case X:return cK(o,d);case SA:case re:case Ct:case Tn:case Jt:case K:case iA:case uA:case VA:return ry(o,d);case z:return new m;case UA:case $:return new m(o);case T:return uK(o);case x:return new m;case oA:return fK(o)}}function IK(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(TM,`{
144
144
  /* [wrapped with `+l+`] */
145
- `)}function UK(o){return yA(o)||Qi(o)||!!(U0&&o&&o[U0])}function tr(o,l){var d=typeof o;return l=l??rA,!!l&&(d=="number"||d!="symbol"&&NM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!pe(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 Vd(o,l){if(yA(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 ie(l)}function vK(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 OA.prototype))return!1;if(o===d)return!0;var m=Rd(d);return!!m&&o===m[0]}function IK(o){return!!E0&&E0 in o}var SK=Hl?nr:oh;function Oo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||hs;return o===d}function Ey(o){return o===o&&!pe(o)}function Qy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==e||o in ie(d))}}function TK(o){var l=uc(o,function(m){return d.size===u&&d.clear(),m}),d=l.cache;return l}function _K(o,l){var d=o[1],m=l[1],C=d|m,F=C<(b|v|D),I=m==D&&d==S||m==D&&d==P&&o[7].length<=l[8]||m==(D|P)&&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?iy(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?sy(k,O,l[6]):O,o[6]=k?kr(o[5],f):l[6]),O=l[7],O&&(o[7]=O),m&D&&(o[8]=o[8]==null?l[8]:et(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function xK(o){var l=[];if(o!=null)for(var d in ie(o))l.push(d);return l}function OK(o){return Dl.call(o)}function Fy(o,l,d){return l=_e(l===e?o.length-1:l,0),function(){for(var m=arguments,C=-1,F=_e(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 by(o,l){return l.length<2?o:Ci(o,jt(l,0,-1))}function LK(o,l){for(var d=o.length,m=et(l.length,d),C=Et(o);m--;){var F=l[m];o[m]=tr(F,d)?C[F]:e}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var Uy=Iy(Y0),Lo=YR||function(o,l){return We.setTimeout(o,l)},$d=Iy(nK);function vy(o,l,d){var m=l+"";return $d(o,bK(m,HK(EK(m),d)))}function Iy(o){var l=0,d=0;return function(){var m=jR(),C=cA-(m-d);if(d=m,C>0){if(++l>=nA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function oc(o,l){var d=-1,m=o.length,C=m-1;for(l=l===e?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 Sy=TK(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(FM,function(d,m,C,F){l.push(C?F.replace(xM,"$1"):m||d)}),l});function On(o){if(typeof o=="string"||kt(o))return o;var l=o+"";return l=="0"&&1/o==-HA?"-0":l}function Ei(o){if(o!=null){try{return kl.call(o)}catch{}try{return o+""}catch{}}return""}function HK(o,l){return Yt(Ae,function(d){var m="_."+d[0];l&d[1]&&!_l(o,m)&&o.push(m)}),o.sort()}function Ty(o){if(o instanceof OA)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===e)?l=1:l=_e(EA(l),0);var m=o==null?0:o.length;if(!m||l<1)return[];for(var C=0,F=0,I=M(Vl(m/l));C<m;)I[F++]=jt(o,C,C+=l);return I}function DK(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 NK(){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(yA(d)?Et(d):[d],$e(l,1))}var MK=IA(function(o,l){return ye(o)?Io(o,$e(l,1,ye,!0)):[]}),RK=IA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),dA(d,2)):[]}),KK=IA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),e,d):[]});function PK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===e?1:EA(l),jt(o,l<0?0:l,m)):[]}function VK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===e?1:EA(l),l=m-l,jt(o,0,l<0?0:l)):[]}function GK(o,l){return o&&o.length?jl(o,dA(l,3),!0,!0):[]}function WK(o,l){return o&&o.length?jl(o,dA(l,3),!0):[]}function $K(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),N4(o,l,d,m)):[]}function _y(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(m+C,0)),xl(o,dA(l,3),C)}function xy(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m-1;return d!==e&&(C=EA(d),C=d<0?_e(m+C,0):et(C,m-1)),xl(o,dA(l,3),C,!0)}function Oy(o){var l=o==null?0:o.length;return l?$e(o,1):[]}function JK(o){var l=o==null?0:o.length;return l?$e(o,HA):[]}function XK(o,l){var d=o==null?0:o.length;return d?(l=l===e?1:EA(l),$e(o,l)):[]}function YK(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 Ly(o){return o&&o.length?o[0]:e}function zK(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(m+C,0)),cs(o,l,C)}function qK(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var ZK=IA(function(o){var l=fe(o,Od);return l.length&&l[0]===o[0]?Qd(l):[]}),jK=IA(function(o){var l=An(o),d=fe(o,Od);return l===An(d)?l=e:d.pop(),d.length&&d[0]===o[0]?Qd(d,dA(l,2)):[]}),AP=IA(function(o){var l=An(o),d=fe(o,Od);return l=typeof l=="function"?l:e,l&&d.pop(),d.length&&d[0]===o[0]?Qd(d,e,l):[]});function eP(o,l){return o==null?"":qR.call(o,l)}function An(o){var l=o==null?0:o.length;return l?o[l-1]:e}function tP(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m;return d!==e&&(C=EA(d),C=C<0?_e(m+C,0):et(C,m-1)),l===l?HR(o,l,C):xl(o,h0,C,!0)}function nP(o,l){return o&&o.length?W0(o,EA(l)):e}var rP=IA(Hy);function Hy(o,l){return o&&o.length&&l&&l.length?vd(o,l):o}function iP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,dA(d,2)):o}function sP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,e,d):o}var oP=er(function(o,l){var d=o==null?0:o.length,m=wd(o,l);return X0(o,fe(l,function(C){return tr(C,d)?+C:C}).sort(ry)),m});function aP(o,l){var d=[];if(!(o&&o.length))return d;var m=-1,C=[],F=o.length;for(l=dA(l,3);++m<F;){var I=o[m];l(I,m,o)&&(d.push(I),C.push(m))}return X0(o,C),d}function Jd(o){return o==null?o:e4.call(o)}function lP(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:EA(l),d=d===e?m:EA(d)),jt(o,l,d)):[]}function cP(o,l){return Zl(o,l)}function uP(o,l,d){return Td(o,l,dA(d,2))}function fP(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 dP(o,l){return Zl(o,l,!0)}function hP(o,l,d){return Td(o,l,dA(d,2),!0)}function pP(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 gP(o){return o&&o.length?z0(o):[]}function mP(o,l){return o&&o.length?z0(o,dA(l,2)):[]}function BP(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function wP(o,l,d){return o&&o.length?(l=d||l===e?1:EA(l),jt(o,0,l<0?0:l)):[]}function CP(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===e?1:EA(l),l=m-l,jt(o,l<0?0:l,m)):[]}function yP(o,l){return o&&o.length?jl(o,dA(l,3),!1,!0):[]}function EP(o,l){return o&&o.length?jl(o,dA(l,3)):[]}var QP=IA(function(o){return Mr($e(o,1,ye,!0))}),FP=IA(function(o){var l=An(o);return ye(l)&&(l=e),Mr($e(o,1,ye,!0),dA(l,2))}),bP=IA(function(o){var l=An(o);return l=typeof l=="function"?l:e,Mr($e(o,1,ye,!0),e,l)});function UP(o){return o&&o.length?Mr(o):[]}function vP(o,l){return o&&o.length?Mr(o,dA(l,2)):[]}function IP(o,l){return l=typeof l=="function"?l:e,o&&o.length?Mr(o,e,l):[]}function Xd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(ye(d))return l=_e(d.length,l),!0}),ud(l,function(d){return fe(o,ad(d))})}function ky(o,l){if(!(o&&o.length))return[];var d=Xd(o);return l==null?d:fe(d,function(m){return Ot(l,e,m)})}var SP=IA(function(o,l){return ye(o)?Io(o,l):[]}),TP=IA(function(o){return xd(Lr(o,ye))}),_P=IA(function(o){var l=An(o);return ye(l)&&(l=e),xd(Lr(o,ye),dA(l,2))}),xP=IA(function(o){var l=An(o);return l=typeof l=="function"?l:e,xd(Lr(o,ye),e,l)}),OP=IA(Xd);function LP(o,l){return Ay(o||[],l||[],vo)}function HP(o,l){return Ay(o||[],l||[],_o)}var kP=IA(function(o){var l=o.length,d=l>1?o[l-1]:e;return d=typeof d=="function"?(o.pop(),d):e,ky(o,d)});function Dy(o){var l=y(o);return l.__chain__=!0,l}function DP(o,l){return l(o),o}function ac(o,l){return l(o)}var NP=er(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 OA)||!tr(d)?this.thru(C):(m=m.slice(d,+d+(l?1:0)),m.__actions__.push({func:ac,args:[C],thisArg:e}),new qt(m,this.__chain__).thru(function(F){return l&&!F.length&&F.push(e),F}))});function MP(){return Dy(this)}function RP(){return new qt(this.value(),this.__chain__)}function KP(){this.__values__===e&&(this.__values__=qy(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function PP(){return this}function VP(o){for(var l,d=this;d instanceof Jl;){var m=Ty(d);m.__index__=0,m.__values__=e,l?C.__wrapped__=m:l=m;var C=m;d=d.__wrapped__}return C.__wrapped__=o,l}function GP(){var o=this.__wrapped__;if(o instanceof OA){var l=o;return this.__actions__.length&&(l=new OA(this)),l=l.reverse(),l.__actions__.push({func:ac,args:[Jd],thisArg:e}),new qt(l,this.__chain__)}return this.thru(Jd)}function WP(){return j0(this.__wrapped__,this.__actions__)}var $P=Ac(function(o,l,d){qA.call(o,d)?++o[d]:jn(o,d,1)});function JP(o,l,d){var m=yA(o)?f0:D4;return d&&dt(o,l,d)&&(l=e),m(o,dA(l,3))}function XP(o,l){var d=yA(o)?Lr:k0;return d(o,dA(l,3))}var YP=cy(_y),zP=cy(xy);function qP(o,l){return $e(lc(o,l),1)}function ZP(o,l){return $e(lc(o,l),HA)}function jP(o,l,d){return d=d===e?1:EA(d),$e(lc(o,l),d)}function Ny(o,l){var d=yA(o)?Yt:Nr;return d(o,dA(l,3))}function My(o,l){var d=yA(o)?BR:H0;return d(o,dA(l,3))}var AV=Ac(function(o,l,d){qA.call(o,d)?o[d].push(l):jn(o,d,[l])});function eV(o,l,d,m){o=Qt(o)?o:Es(o),d=d&&!m?EA(d):0;var C=o.length;return d<0&&(d=_e(C+d,0)),hc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var tV=IA(function(o,l,d){var m=-1,C=typeof l=="function",F=Qt(o)?M(o.length):[];return Nr(o,function(I){F[++m]=C?Ot(l,I,d):So(I,l,d)}),F}),nV=Ac(function(o,l,d){jn(o,d,l)});function lc(o,l){var d=yA(o)?fe:P0;return d(o,dA(l,3))}function rV(o,l,d,m){return o==null?[]:(yA(l)||(l=l==null?[]:[l]),d=m?e:d,yA(d)||(d=d==null?[]:[d]),$0(o,l,d))}var iV=Ac(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function sV(o,l,d){var m=yA(o)?sd:g0,C=arguments.length<3;return m(o,dA(l,4),d,C,Nr)}function oV(o,l,d){var m=yA(o)?wR:g0,C=arguments.length<3;return m(o,dA(l,4),d,C,H0)}function aV(o,l){var d=yA(o)?Lr:k0;return d(o,fc(dA(l,3)))}function lV(o){var l=yA(o)?_0:eK;return l(o)}function cV(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=EA(l);var m=yA(o)?x4:tK;return m(o,l)}function uV(o){var l=yA(o)?O4:rK;return l(o)}function fV(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 dV(o,l,d){var m=yA(o)?od:iK;return d&&dt(o,l,d)&&(l=e),m(o,dA(l,3))}var hV=IA(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]]),$0(o,$e(l,1),[])}),cc=XR||function(){return We.Date.now()};function pV(o,l){if(typeof l!="function")throw new zt(s);return o=EA(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ry(o,l,d){return l=d?e:l,l=o&&l==null?o.length:l,Ar(o,D,e,e,e,e,l)}function Ky(o,l){var d;if(typeof l!="function")throw new zt(s);return o=EA(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=e),d}}var Yd=IA(function(o,l,d){var m=b;if(d.length){var C=kr(d,Cs(Yd));m|=L}return Ar(o,m,l,d,C)}),Py=IA(function(o,l,d){var m=b|v;if(d.length){var C=kr(d,Cs(Py));m|=L}return Ar(l,m,o,d,C)});function Vy(o,l,d){l=d?e:l;var m=Ar(o,S,e,e,e,e,e,l);return m.placeholder=Vy.placeholder,m}function Gy(o,l,d){l=d?e:l;var m=Ar(o,E,e,e,e,e,e,l);return m.placeholder=Gy.placeholder,m}function Wy(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=en(l)||0,pe(d)&&(W=!!d.leading,J="maxWait"in d,F=J?_e(en(d.maxWait)||0,l):F,q="trailing"in d?!!d.trailing:q);function lA(Ee){var gn=m,ir=C;return m=C=e,G=Ee,I=o.apply(ir,gn),I}function hA(Ee){return G=Ee,O=Lo(TA,l),W?lA(Ee):I}function UA(Ee){var gn=Ee-k,ir=Ee-G,cE=l-gn;return J?et(cE,F-ir):cE}function pA(Ee){var gn=Ee-k,ir=Ee-G;return k===e||gn>=l||gn<0||J&&ir>=F}function TA(){var Ee=cc();if(pA(Ee))return MA(Ee);O=Lo(TA,UA(Ee))}function MA(Ee){return O=e,q&&m?lA(Ee):(m=C=e,I)}function Dt(){O!==e&&ey(O),G=0,m=k=C=O=e}function ht(){return O===e?I:MA(cc())}function Nt(){var Ee=cc(),gn=pA(Ee);if(m=arguments,C=this,k=Ee,gn){if(O===e)return hA(k);if(J)return ey(O),O=Lo(TA,l),lA(k)}return O===e&&(O=Lo(TA,l)),I}return Nt.cancel=Dt,Nt.flush=ht,Nt}var gV=IA(function(o,l){return L0(o,1,l)}),mV=IA(function(o,l,d){return L0(o,en(l)||0,d)});function BV(o){return Ar(o,N)}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 wV(o){return Ky(2,o)}var CV=sK(function(o,l){l=l.length==1&&yA(l[0])?fe(l[0],Lt(dA())):fe($e(l,1),Lt(dA()));var d=l.length;return IA(function(m){for(var C=-1,F=et(m.length,d);++C<F;)m[C]=l[C].call(this,m[C]);return Ot(o,this,m)})}),zd=IA(function(o,l){var d=kr(l,Cs(zd));return Ar(o,L,e,l,d)}),$y=IA(function(o,l){var d=kr(l,Cs($y));return Ar(o,U,e,l,d)}),yV=er(function(o,l){return Ar(o,P,e,e,e,l)});function EV(o,l){if(typeof o!="function")throw new zt(s);return l=l===e?l:EA(l),IA(o,l)}function QV(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_e(EA(l),0),IA(function(d){var m=d[l],C=Kr(d,0,l);return m&&Hr(C,m),Ot(o,this,C)})}function FV(o,l,d){var m=!0,C=!0;if(typeof o!="function")throw new zt(s);return pe(d)&&(m="leading"in d?!!d.leading:m,C="trailing"in d?!!d.trailing:C),Wy(o,l,{leading:m,maxWait:l,trailing:C})}function bV(o){return Ry(o,1)}function UV(o,l){return zd(Ld(l),o)}function vV(){if(!arguments.length)return[];var o=arguments[0];return yA(o)?o:[o]}function IV(o){return Zt(o,B)}function SV(o,l){return l=typeof l=="function"?l:e,Zt(o,B,l)}function TV(o){return Zt(o,p|B)}function _V(o,l){return l=typeof l=="function"?l:e,Zt(o,p|B,l)}function xV(o,l){return l==null||O0(o,l,Ne(l))}function pn(o,l){return o===l||o!==o&&l!==l}var OV=rc(Ed),LV=rc(function(o,l){return o>=l}),Qi=M0(function(){return arguments}())?M0:function(o){return me(o)&&qA.call(o,"callee")&&!b0.call(o,"callee")},yA=M.isArray,HV=s0?Lt(s0):V4;function Qt(o){return o!=null&&dc(o.length)&&!nr(o)}function ye(o){return me(o)&&Qt(o)}function kV(o){return o===!0||o===!1||me(o)&&ft(o)==ct}var Pr=zR||oh,DV=o0?Lt(o0):G4;function NV(o){return me(o)&&o.nodeType===1&&!Ho(o)}function MV(o){if(o==null)return!0;if(Qt(o)&&(yA(o)||typeof o=="string"||typeof o.splice=="function"||Pr(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(qA.call(o,d))return!1;return!0}function RV(o,l){return To(o,l)}function KV(o,l,d){d=typeof d=="function"?d:e;var m=d?d(o,l):e;return m===e?To(o,l,e,d):!!m}function qd(o){if(!me(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!Ho(o)}function PV(o){return typeof o=="number"&&v0(o)}function nr(o){if(!pe(o))return!1;var l=ft(o);return l==xt||l==un||l==he||l==xr}function Jy(o){return typeof o=="number"&&o==EA(o)}function dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=rA}function pe(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function me(o){return o!=null&&typeof o=="object"}var Xy=a0?Lt(a0):$4;function VV(o,l){return o===l||Fd(o,l,Kd(l))}function GV(o,l,d){return d=typeof d=="function"?d:e,Fd(o,l,Kd(l),d)}function WV(o){return Yy(o)&&o!=+o}function $V(o){if(SK(o))throw new wA(i);return R0(o)}function JV(o){return o===null}function XV(o){return o==null}function Yy(o){return typeof o=="number"||me(o)&&ft(o)==bA}function Ho(o){if(!me(o)||ft(o)!=ve)return!1;var l=Rl(o);if(l===null)return!0;var d=qA.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&kl.call(d)==GR}var Zd=l0?Lt(l0):J4;function YV(o){return Jy(o)&&o>=-rA&&o<=rA}var zy=c0?Lt(c0):X4;function hc(o){return typeof o=="string"||!yA(o)&&me(o)&&ft(o)==$}function kt(o){return typeof o=="symbol"||me(o)&&ft(o)==oA}var ys=u0?Lt(u0):Y4;function zV(o){return o===e}function qV(o){return me(o)&&tt(o)==DA}function ZV(o){return me(o)&&ft(o)==PA}var jV=rc(Ud),A2=rc(function(o,l){return o<=l});function qy(o){if(!o)return[];if(Qt(o))return hc(o)?dn(o):Et(o);if(Eo&&o[Eo])return xR(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=en(o),o===HA||o===-HA){var l=o<0?-1:1;return l*mA}return o===o?o:0}function EA(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function Zy(o){return o?wi(EA(o),0,kA):0}function en(o){if(typeof o=="number")return o;if(kt(o))return XA;if(pe(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=pe(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=m0(o);var d=HM.test(o);return d||DM.test(o)?pR(o.slice(2),d?2:8):LM.test(o)?XA:+o}function jy(o){return xn(o,Ft(o))}function e2(o){return o?wi(EA(o),-rA,rA):o===0?o:0}function YA(o){return o==null?"":Ht(o)}var t2=Bs(function(o,l){if(Oo(l)||Qt(l)){xn(l,Ne(l),o);return}for(var d in l)qA.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)}),n2=Bs(function(o,l,d,m){xn(l,Ne(l),o,m)}),r2=er(wd);function i2(o,l){var d=ms(o);return l==null?d:x0(d,l)}var s2=IA(function(o,l){o=ie(o);var d=-1,m=l.length,C=m>2?l[2]:e;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===e||pn(W,hs[G])&&!qA.call(o,G))&&(o[G]=F[G])}return o}),o2=IA(function(o){return o.push(e,my),Ot(eE,e,o)});function a2(o,l){return d0(o,dA(l,3),_n)}function l2(o,l){return d0(o,dA(l,3),yd)}function c2(o,l){return o==null?o:Cd(o,dA(l,3),Ft)}function u2(o,l){return o==null?o:D0(o,dA(l,3),Ft)}function f2(o,l){return o&&_n(o,dA(l,3))}function d2(o,l){return o&&yd(o,dA(l,3))}function h2(o){return o==null?[]:zl(o,Ne(o))}function p2(o){return o==null?[]:zl(o,Ft(o))}function jd(o,l,d){var m=o==null?e:Ci(o,l);return m===e?d:m}function g2(o,l){return o!=null&&Cy(o,l,M4)}function Ah(o,l){return o!=null&&Cy(o,l,R4)}var m2=fy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),o[l]=d},th(bt)),B2=fy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),qA.call(o,l)?o[l].push(d):o[l]=[d]},dA),w2=IA(So);function Ne(o){return Qt(o)?T0(o):bd(o)}function Ft(o){return Qt(o)?T0(o,!0):z4(o)}function C2(o,l){var d={};return l=dA(l,3),_n(o,function(m,C,F){jn(d,l(m,C,F),m)}),d}function y2(o,l){var d={};return l=dA(l,3),_n(o,function(m,C,F){jn(d,C,l(m,C,F))}),d}var E2=Bs(function(o,l,d){ql(o,l,d)}),eE=Bs(function(o,l,d,m){ql(o,l,d,m)}),Q2=er(function(o,l){var d={};if(o==null)return d;var m=!1;l=fe(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,mK));for(var C=l.length;C--;)_d(d,l[C]);return d});function F2(o,l){return tE(o,fc(dA(l)))}var b2=er(function(o,l){return o==null?{}:Z4(o,l)});function tE(o,l){if(o==null)return{};var d=fe(Md(o),function(m){return[m]});return l=dA(l),J0(o,d,function(m,C){return l(m,C[0])})}function U2(o,l,d){l=Rr(l,o);var m=-1,C=l.length;for(C||(C=1,o=e);++m<C;){var F=o==null?e:o[On(l[m])];F===e&&(m=C,F=d),o=nr(F)?F.call(o):F}return o}function v2(o,l,d){return o==null?o:_o(o,l,d)}function I2(o,l,d,m){return m=typeof m=="function"?m:e,o==null?o:_o(o,l,d,m)}var nE=py(Ne),rE=py(Ft);function S2(o,l,d){var m=yA(o),C=m||Pr(o)||ys(o);if(l=dA(l,4),d==null){var F=o&&o.constructor;C?d=m?new F:[]:pe(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 T2(o,l){return o==null?!0:_d(o,l)}function _2(o,l,d){return o==null?o:Z0(o,l,Ld(d))}function x2(o,l,d,m){return m=typeof m=="function"?m:e,o==null?o:Z0(o,l,Ld(d),m)}function Es(o){return o==null?[]:fd(o,Ne(o))}function O2(o){return o==null?[]:fd(o,Ft(o))}function L2(o,l,d){return d===e&&(d=l,l=e),d!==e&&(d=en(d),d=d===d?d:0),l!==e&&(l=en(l),l=l===l?l:0),wi(en(o),l,d)}function H2(o,l,d){return l=rr(l),d===e?(d=l,l=0):d=rr(d),o=en(o),K4(o,l,d)}function k2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=e),d===e&&(typeof l=="boolean"?(d=l,l=e):typeof o=="boolean"&&(d=o,o=e)),o===e&&l===e?(o=0,l=1):(o=rr(o),l===e?(l=o,o=0):l=rr(l)),o>l){var m=o;o=l,l=m}if(d||o%1||l%1){var C=I0();return et(o+C*(l-o+hR("1e-"+((C+"").length-1))),l)}return Id(o,l)}var D2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?iE(l):l)});function iE(o){return eh(YA(o).toLowerCase())}function sE(o){return o=YA(o),o&&o.replace(MM,vR).replace(rR,"")}function N2(o,l,d){o=YA(o),l=Ht(l);var m=o.length;d=d===e?m:wi(EA(d),0,m);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function M2(o){return o=YA(o),o&&wo.test(o)?o.replace(Bo,IR):o}function R2(o){return o=YA(o),o&&bM.test(o)?o.replace(zf,"\\$&"):o}var K2=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),P2=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),V2=ly("toLowerCase");function G2(o,l,d){o=YA(o),l=EA(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(Vl(C),d)}function W2(o,l,d){o=YA(o),l=EA(l);var m=l?fs(o):0;return l&&m<l?o+nc(l-m,d):o}function $2(o,l,d){o=YA(o),l=EA(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),A4(YA(o).replace(qf,""),l||0)}function X2(o,l,d){return(d?dt(o,l,d):l===e)?l=1:l=EA(l),Sd(YA(o),l)}function Y2(){var o=arguments,l=YA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var z2=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function q2(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=e),d=d===e?kA:d>>>0,d?(o=YA(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 Z2=ws(function(o,l,d){return o+(d?" ":"")+eh(l)});function j2(o,l,d){return o=YA(o),d=d==null?0:wi(EA(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function AG(o,l,d){var m=y.templateSettings;d&&dt(o,l,d)&&(l=e),o=YA(o),l=pc({},l,m,gy);var C=pc({},l.imports,m.imports,gy),F=Ne(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?OM:Il).source+"|"+(l.evaluate||Il).source+"|$","g"),lA="//# sourceURL="+(qA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lR+"]")+`
146
- `;o.replace(q,function(pA,TA,MA,Dt,ht,Nt){return MA||(MA=Dt),J+=o.slice(G,Nt).replace(RM,SR),TA&&(O=!0,J+=`' +
145
+ `)}function SK(o){return yA(o)||Qi(o)||!!(v0&&o&&o[v0])}function tr(o,l){var d=typeof o;return l=l??rA,!!l&&(d=="number"||d!="symbol"&&KM.test(o))&&o>-1&&o%1==0&&o<l}function dt(o,l,d){if(!ge(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 Vd(o,l){if(yA(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 ie(l)}function TK(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 OA.prototype))return!1;if(o===d)return!0;var m=Rd(d);return!!m&&o===m[0]}function _K(o){return!!Q0&&Q0 in o}var xK=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&&!ge(o)}function Fy(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==e||o in ie(d))}}function OK(o){var l=uc(o,function(m){return d.size===u&&d.clear(),m}),d=l.cache;return l}function LK(o,l){var d=o[1],m=l[1],C=d|m,F=C<(b|v|D),I=m==D&&d==S||m==D&&d==P&&o[7].length<=l[8]||m==(D|P)&&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&D&&(o[8]=o[8]==null?l[8]:et(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function HK(o){var l=[];if(o!=null)for(var d in ie(o))l.push(d);return l}function kK(o){return Dl.call(o)}function by(o,l,d){return l=_e(l===e?o.length-1:l,0),function(){for(var m=arguments,C=-1,F=_e(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 DK(o,l){for(var d=o.length,m=et(l.length,d),C=Et(o);m--;){var F=l[m];o[m]=tr(F,d)?C[F]:e}return o}function Wd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var vy=Sy(z0),Lo=ZR||function(o,l){return We.setTimeout(o,l)},$d=Sy(sK);function Iy(o,l,d){var m=l+"";return $d(o,IK(m,NK(bK(m),d)))}function Sy(o){var l=0,d=0;return function(){var m=t4(),C=cA-(m-d);if(d=m,C>0){if(++l>=nA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function oc(o,l){var d=-1,m=o.length,C=m-1;for(l=l===e?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=OK(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(vM,function(d,m,C,F){l.push(C?F.replace(HM,"$1"):m||d)}),l});function On(o){if(typeof o=="string"||kt(o))return o;var l=o+"";return l=="0"&&1/o==-HA?"-0":l}function Ei(o){if(o!=null){try{return kl.call(o)}catch{}try{return o+""}catch{}}return""}function NK(o,l){return Yt(Ae,function(d){var m="_."+d[0];l&d[1]&&!_l(o,m)&&o.push(m)}),o.sort()}function _y(o){if(o instanceof OA)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 MK(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=_e(EA(l),0);var m=o==null?0:o.length;if(!m||l<1)return[];for(var C=0,F=0,I=M(Vl(m/l));C<m;)I[F++]=jt(o,C,C+=l);return I}function RK(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 KK(){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(yA(d)?Et(d):[d],$e(l,1))}var PK=IA(function(o,l){return ye(o)?Io(o,$e(l,1,ye,!0)):[]}),VK=IA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),dA(d,2)):[]}),GK=IA(function(o,l){var d=An(l);return ye(d)&&(d=e),ye(o)?Io(o,$e(l,1,ye,!0),e,d):[]});function WK(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===e?1:EA(l),jt(o,l<0?0:l,m)):[]}function $K(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===e?1:EA(l),l=m-l,jt(o,0,l<0?0:l)):[]}function JK(o,l){return o&&o.length?jl(o,dA(l,3),!0,!0):[]}function XK(o,l){return o&&o.length?jl(o,dA(l,3),!0):[]}function YK(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),K4(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:EA(d);return C<0&&(C=_e(m+C,0)),xl(o,dA(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!==e&&(C=EA(d),C=d<0?_e(m+C,0):et(C,m-1)),xl(o,dA(l,3),C,!0)}function Ly(o){var l=o==null?0:o.length;return l?$e(o,1):[]}function zK(o){var l=o==null?0:o.length;return l?$e(o,HA):[]}function qK(o,l){var d=o==null?0:o.length;return d?(l=l===e?1:EA(l),$e(o,l)):[]}function ZK(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]:e}function jK(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=d==null?0:EA(d);return C<0&&(C=_e(m+C,0)),cs(o,l,C)}function AP(o){var l=o==null?0:o.length;return l?jt(o,0,-1):[]}var eP=IA(function(o){var l=fe(o,Od);return l.length&&l[0]===o[0]?Qd(l):[]}),tP=IA(function(o){var l=An(o),d=fe(o,Od);return l===An(d)?l=e:d.pop(),d.length&&d[0]===o[0]?Qd(d,dA(l,2)):[]}),nP=IA(function(o){var l=An(o),d=fe(o,Od);return l=typeof l=="function"?l:e,l&&d.pop(),d.length&&d[0]===o[0]?Qd(d,e,l):[]});function rP(o,l){return o==null?"":A4.call(o,l)}function An(o){var l=o==null?0:o.length;return l?o[l-1]:e}function iP(o,l,d){var m=o==null?0:o.length;if(!m)return-1;var C=m;return d!==e&&(C=EA(d),C=C<0?_e(m+C,0):et(C,m-1)),l===l?NR(o,l,C):xl(o,p0,C,!0)}function sP(o,l){return o&&o.length?$0(o,EA(l)):e}var oP=IA(ky);function ky(o,l){return o&&o.length&&l&&l.length?vd(o,l):o}function aP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,dA(d,2)):o}function lP(o,l,d){return o&&o.length&&l&&l.length?vd(o,l,e,d):o}var cP=er(function(o,l){var d=o==null?0:o.length,m=wd(o,l);return Y0(o,fe(l,function(C){return tr(C,d)?+C:C}).sort(iy)),m});function uP(o,l){var d=[];if(!(o&&o.length))return d;var m=-1,C=[],F=o.length;for(l=dA(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:r4.call(o)}function fP(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:EA(l),d=d===e?m:EA(d)),jt(o,l,d)):[]}function dP(o,l){return Zl(o,l)}function hP(o,l,d){return Td(o,l,dA(d,2))}function pP(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 gP(o,l){return Zl(o,l,!0)}function mP(o,l,d){return Td(o,l,dA(d,2),!0)}function BP(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 wP(o){return o&&o.length?q0(o):[]}function CP(o,l){return o&&o.length?q0(o,dA(l,2)):[]}function yP(o){var l=o==null?0:o.length;return l?jt(o,1,l):[]}function EP(o,l,d){return o&&o.length?(l=d||l===e?1:EA(l),jt(o,0,l<0?0:l)):[]}function QP(o,l,d){var m=o==null?0:o.length;return m?(l=d||l===e?1:EA(l),l=m-l,jt(o,l<0?0:l,m)):[]}function FP(o,l){return o&&o.length?jl(o,dA(l,3),!1,!0):[]}function bP(o,l){return o&&o.length?jl(o,dA(l,3)):[]}var UP=IA(function(o){return Mr($e(o,1,ye,!0))}),vP=IA(function(o){var l=An(o);return ye(l)&&(l=e),Mr($e(o,1,ye,!0),dA(l,2))}),IP=IA(function(o){var l=An(o);return l=typeof l=="function"?l:e,Mr($e(o,1,ye,!0),e,l)});function SP(o){return o&&o.length?Mr(o):[]}function TP(o,l){return o&&o.length?Mr(o,dA(l,2)):[]}function _P(o,l){return l=typeof l=="function"?l:e,o&&o.length?Mr(o,e,l):[]}function Xd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(ye(d))return l=_e(d.length,l),!0}),ud(l,function(d){return fe(o,ad(d))})}function Dy(o,l){if(!(o&&o.length))return[];var d=Xd(o);return l==null?d:fe(d,function(m){return Ot(l,e,m)})}var xP=IA(function(o,l){return ye(o)?Io(o,l):[]}),OP=IA(function(o){return xd(Lr(o,ye))}),LP=IA(function(o){var l=An(o);return ye(l)&&(l=e),xd(Lr(o,ye),dA(l,2))}),HP=IA(function(o){var l=An(o);return l=typeof l=="function"?l:e,xd(Lr(o,ye),e,l)}),kP=IA(Xd);function DP(o,l){return ey(o||[],l||[],vo)}function NP(o,l){return ey(o||[],l||[],_o)}var MP=IA(function(o){var l=o.length,d=l>1?o[l-1]:e;return d=typeof d=="function"?(o.pop(),d):e,Dy(o,d)});function Ny(o){var l=y(o);return l.__chain__=!0,l}function RP(o,l){return l(o),o}function ac(o,l){return l(o)}var KP=er(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 OA)||!tr(d)?this.thru(C):(m=m.slice(d,+d+(l?1:0)),m.__actions__.push({func:ac,args:[C],thisArg:e}),new qt(m,this.__chain__).thru(function(F){return l&&!F.length&&F.push(e),F}))});function PP(){return Ny(this)}function VP(){return new qt(this.value(),this.__chain__)}function GP(){this.__values__===e&&(this.__values__=Zy(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function WP(){return this}function $P(o){for(var l,d=this;d instanceof Jl;){var m=_y(d);m.__index__=0,m.__values__=e,l?C.__wrapped__=m:l=m;var C=m;d=d.__wrapped__}return C.__wrapped__=o,l}function JP(){var o=this.__wrapped__;if(o instanceof OA){var l=o;return this.__actions__.length&&(l=new OA(this)),l=l.reverse(),l.__actions__.push({func:ac,args:[Jd],thisArg:e}),new qt(l,this.__chain__)}return this.thru(Jd)}function XP(){return Ay(this.__wrapped__,this.__actions__)}var YP=Ac(function(o,l,d){qA.call(o,d)?++o[d]:jn(o,d,1)});function zP(o,l,d){var m=yA(o)?d0:R4;return d&&dt(o,l,d)&&(l=e),m(o,dA(l,3))}function qP(o,l){var d=yA(o)?Lr:D0;return d(o,dA(l,3))}var ZP=uy(xy),jP=uy(Oy);function AV(o,l){return $e(lc(o,l),1)}function eV(o,l){return $e(lc(o,l),HA)}function tV(o,l,d){return d=d===e?1:EA(d),$e(lc(o,l),d)}function My(o,l){var d=yA(o)?Yt:Nr;return d(o,dA(l,3))}function Ry(o,l){var d=yA(o)?yR:k0;return d(o,dA(l,3))}var nV=Ac(function(o,l,d){qA.call(o,d)?o[d].push(l):jn(o,d,[l])});function rV(o,l,d,m){o=Qt(o)?o:Es(o),d=d&&!m?EA(d):0;var C=o.length;return d<0&&(d=_e(C+d,0)),hc(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&cs(o,l,d)>-1}var iV=IA(function(o,l,d){var m=-1,C=typeof l=="function",F=Qt(o)?M(o.length):[];return Nr(o,function(I){F[++m]=C?Ot(l,I,d):So(I,l,d)}),F}),sV=Ac(function(o,l,d){jn(o,d,l)});function lc(o,l){var d=yA(o)?fe:V0;return d(o,dA(l,3))}function oV(o,l,d,m){return o==null?[]:(yA(l)||(l=l==null?[]:[l]),d=m?e:d,yA(d)||(d=d==null?[]:[d]),J0(o,l,d))}var aV=Ac(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function lV(o,l,d){var m=yA(o)?sd:m0,C=arguments.length<3;return m(o,dA(l,4),d,C,Nr)}function cV(o,l,d){var m=yA(o)?ER:m0,C=arguments.length<3;return m(o,dA(l,4),d,C,k0)}function uV(o,l){var d=yA(o)?Lr:D0;return d(o,fc(dA(l,3)))}function fV(o){var l=yA(o)?x0:rK;return l(o)}function dV(o,l,d){(d?dt(o,l,d):l===e)?l=1:l=EA(l);var m=yA(o)?H4:iK;return m(o,l)}function hV(o){var l=yA(o)?k4:oK;return l(o)}function pV(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 gV(o,l,d){var m=yA(o)?od:aK;return d&&dt(o,l,d)&&(l=e),m(o,dA(l,3))}var mV=IA(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,$e(l,1),[])}),cc=qR||function(){return We.Date.now()};function BV(o,l){if(typeof l!="function")throw new zt(s);return o=EA(o),function(){if(--o<1)return l.apply(this,arguments)}}function Ky(o,l,d){return l=d?e:l,l=o&&l==null?o.length:l,Ar(o,D,e,e,e,e,l)}function Py(o,l){var d;if(typeof l!="function")throw new zt(s);return o=EA(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=e),d}}var Yd=IA(function(o,l,d){var m=b;if(d.length){var C=kr(d,Cs(Yd));m|=L}return Ar(o,m,l,d,C)}),Vy=IA(function(o,l,d){var m=b|v;if(d.length){var C=kr(d,Cs(Vy));m|=L}return Ar(l,m,o,d,C)});function Gy(o,l,d){l=d?e:l;var m=Ar(o,S,e,e,e,e,e,l);return m.placeholder=Gy.placeholder,m}function Wy(o,l,d){l=d?e:l;var m=Ar(o,E,e,e,e,e,e,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=en(l)||0,ge(d)&&(W=!!d.leading,J="maxWait"in d,F=J?_e(en(d.maxWait)||0,l):F,q="trailing"in d?!!d.trailing:q);function lA(Ee){var gn=m,ir=C;return m=C=e,G=Ee,I=o.apply(ir,gn),I}function hA(Ee){return G=Ee,O=Lo(TA,l),W?lA(Ee):I}function vA(Ee){var gn=Ee-k,ir=Ee-G,uE=l-gn;return J?et(uE,F-ir):uE}function pA(Ee){var gn=Ee-k,ir=Ee-G;return k===e||gn>=l||gn<0||J&&ir>=F}function TA(){var Ee=cc();if(pA(Ee))return MA(Ee);O=Lo(TA,vA(Ee))}function MA(Ee){return O=e,q&&m?lA(Ee):(m=C=e,I)}function Dt(){O!==e&&ty(O),G=0,m=k=C=O=e}function ht(){return O===e?I:MA(cc())}function Nt(){var Ee=cc(),gn=pA(Ee);if(m=arguments,C=this,k=Ee,gn){if(O===e)return hA(k);if(J)return ty(O),O=Lo(TA,l),lA(k)}return O===e&&(O=Lo(TA,l)),I}return Nt.cancel=Dt,Nt.flush=ht,Nt}var wV=IA(function(o,l){return H0(o,1,l)}),CV=IA(function(o,l,d){return H0(o,en(l)||0,d)});function yV(o){return Ar(o,N)}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 EV(o){return Py(2,o)}var QV=lK(function(o,l){l=l.length==1&&yA(l[0])?fe(l[0],Lt(dA())):fe($e(l,1),Lt(dA()));var d=l.length;return IA(function(m){for(var C=-1,F=et(m.length,d);++C<F;)m[C]=l[C].call(this,m[C]);return Ot(o,this,m)})}),zd=IA(function(o,l){var d=kr(l,Cs(zd));return Ar(o,L,e,l,d)}),Jy=IA(function(o,l){var d=kr(l,Cs(Jy));return Ar(o,U,e,l,d)}),FV=er(function(o,l){return Ar(o,P,e,e,e,l)});function bV(o,l){if(typeof o!="function")throw new zt(s);return l=l===e?l:EA(l),IA(o,l)}function UV(o,l){if(typeof o!="function")throw new zt(s);return l=l==null?0:_e(EA(l),0),IA(function(d){var m=d[l],C=Kr(d,0,l);return m&&Hr(C,m),Ot(o,this,C)})}function vV(o,l,d){var m=!0,C=!0;if(typeof o!="function")throw new zt(s);return ge(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 IV(o){return Ky(o,1)}function SV(o,l){return zd(Ld(l),o)}function TV(){if(!arguments.length)return[];var o=arguments[0];return yA(o)?o:[o]}function _V(o){return Zt(o,B)}function xV(o,l){return l=typeof l=="function"?l:e,Zt(o,B,l)}function OV(o){return Zt(o,p|B)}function LV(o,l){return l=typeof l=="function"?l:e,Zt(o,p|B,l)}function HV(o,l){return l==null||L0(o,l,Ne(l))}function pn(o,l){return o===l||o!==o&&l!==l}var kV=rc(Ed),DV=rc(function(o,l){return o>=l}),Qi=R0(function(){return arguments}())?R0:function(o){return Be(o)&&qA.call(o,"callee")&&!U0.call(o,"callee")},yA=M.isArray,NV=o0?Lt(o0):$4;function Qt(o){return o!=null&&dc(o.length)&&!nr(o)}function ye(o){return Be(o)&&Qt(o)}function MV(o){return o===!0||o===!1||Be(o)&&ft(o)==ct}var Pr=jR||oh,RV=a0?Lt(a0):J4;function KV(o){return Be(o)&&o.nodeType===1&&!Ho(o)}function PV(o){if(o==null)return!0;if(Qt(o)&&(yA(o)||typeof o=="string"||typeof o.splice=="function"||Pr(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(qA.call(o,d))return!1;return!0}function VV(o,l){return To(o,l)}function GV(o,l,d){d=typeof d=="function"?d:e;var m=d?d(o,l):e;return m===e?To(o,l,e,d):!!m}function qd(o){if(!Be(o))return!1;var l=ft(o);return l==_t||l==ut||typeof o.message=="string"&&typeof o.name=="string"&&!Ho(o)}function WV(o){return typeof o=="number"&&I0(o)}function nr(o){if(!ge(o))return!1;var l=ft(o);return l==xt||l==un||l==pe||l==xr}function Xy(o){return typeof o=="number"&&o==EA(o)}function dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=rA}function ge(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function Be(o){return o!=null&&typeof o=="object"}var Yy=l0?Lt(l0):Y4;function $V(o,l){return o===l||Fd(o,l,Kd(l))}function JV(o,l,d){return d=typeof d=="function"?d:e,Fd(o,l,Kd(l),d)}function XV(o){return zy(o)&&o!=+o}function YV(o){if(xK(o))throw new wA(i);return K0(o)}function zV(o){return o===null}function qV(o){return o==null}function zy(o){return typeof o=="number"||Be(o)&&ft(o)==UA}function Ho(o){if(!Be(o)||ft(o)!=ve)return!1;var l=Rl(o);if(l===null)return!0;var d=qA.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&kl.call(d)==JR}var Zd=c0?Lt(c0):z4;function ZV(o){return Xy(o)&&o>=-rA&&o<=rA}var qy=u0?Lt(u0):q4;function hc(o){return typeof o=="string"||!yA(o)&&Be(o)&&ft(o)==$}function kt(o){return typeof o=="symbol"||Be(o)&&ft(o)==oA}var ys=f0?Lt(f0):Z4;function jV(o){return o===e}function A2(o){return Be(o)&&tt(o)==DA}function e2(o){return Be(o)&&ft(o)==PA}var t2=rc(Ud),n2=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 HR(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=en(o),o===HA||o===-HA){var l=o<0?-1:1;return l*mA}return o===o?o:0}function EA(o){var l=rr(o),d=l%1;return l===l?d?l-d:l:0}function jy(o){return o?wi(EA(o),0,kA):0}function en(o){if(typeof o=="number")return o;if(kt(o))return XA;if(ge(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=ge(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=B0(o);var d=NM.test(o);return d||RM.test(o)?BR(o.slice(2),d?2:8):DM.test(o)?XA:+o}function AE(o){return xn(o,Ft(o))}function r2(o){return o?wi(EA(o),-rA,rA):o===0?o:0}function YA(o){return o==null?"":Ht(o)}var i2=Bs(function(o,l){if(Oo(l)||Qt(l)){xn(l,Ne(l),o);return}for(var d in l)qA.call(l,d)&&vo(o,d,l[d])}),eE=Bs(function(o,l){xn(l,Ft(l),o)}),pc=Bs(function(o,l,d,m){xn(l,Ft(l),o,m)}),s2=Bs(function(o,l,d,m){xn(l,Ne(l),o,m)}),o2=er(wd);function a2(o,l){var d=ms(o);return l==null?d:O0(d,l)}var l2=IA(function(o,l){o=ie(o);var d=-1,m=l.length,C=m>2?l[2]:e;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===e||pn(W,hs[G])&&!qA.call(o,G))&&(o[G]=F[G])}return o}),c2=IA(function(o){return o.push(e,By),Ot(tE,e,o)});function u2(o,l){return h0(o,dA(l,3),_n)}function f2(o,l){return h0(o,dA(l,3),yd)}function d2(o,l){return o==null?o:Cd(o,dA(l,3),Ft)}function h2(o,l){return o==null?o:N0(o,dA(l,3),Ft)}function p2(o,l){return o&&_n(o,dA(l,3))}function g2(o,l){return o&&yd(o,dA(l,3))}function m2(o){return o==null?[]:zl(o,Ne(o))}function B2(o){return o==null?[]:zl(o,Ft(o))}function jd(o,l,d){var m=o==null?e:Ci(o,l);return m===e?d:m}function w2(o,l){return o!=null&&yy(o,l,P4)}function Ah(o,l){return o!=null&&yy(o,l,V4)}var C2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),o[l]=d},th(bt)),y2=dy(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),qA.call(o,l)?o[l].push(d):o[l]=[d]},dA),E2=IA(So);function Ne(o){return Qt(o)?_0(o):bd(o)}function Ft(o){return Qt(o)?_0(o,!0):j4(o)}function Q2(o,l){var d={};return l=dA(l,3),_n(o,function(m,C,F){jn(d,l(m,C,F),m)}),d}function F2(o,l){var d={};return l=dA(l,3),_n(o,function(m,C,F){jn(d,C,l(m,C,F))}),d}var b2=Bs(function(o,l,d){ql(o,l,d)}),tE=Bs(function(o,l,d,m){ql(o,l,d,m)}),U2=er(function(o,l){var d={};if(o==null)return d;var m=!1;l=fe(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,CK));for(var C=l.length;C--;)_d(d,l[C]);return d});function v2(o,l){return nE(o,fc(dA(l)))}var I2=er(function(o,l){return o==null?{}:eK(o,l)});function nE(o,l){if(o==null)return{};var d=fe(Md(o),function(m){return[m]});return l=dA(l),X0(o,d,function(m,C){return l(m,C[0])})}function S2(o,l,d){l=Rr(l,o);var m=-1,C=l.length;for(C||(C=1,o=e);++m<C;){var F=o==null?e:o[On(l[m])];F===e&&(m=C,F=d),o=nr(F)?F.call(o):F}return o}function T2(o,l,d){return o==null?o:_o(o,l,d)}function _2(o,l,d,m){return m=typeof m=="function"?m:e,o==null?o:_o(o,l,d,m)}var rE=gy(Ne),iE=gy(Ft);function x2(o,l,d){var m=yA(o),C=m||Pr(o)||ys(o);if(l=dA(l,4),d==null){var F=o&&o.constructor;C?d=m?new F:[]:ge(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 O2(o,l){return o==null?!0:_d(o,l)}function L2(o,l,d){return o==null?o:j0(o,l,Ld(d))}function H2(o,l,d,m){return m=typeof m=="function"?m:e,o==null?o:j0(o,l,Ld(d),m)}function Es(o){return o==null?[]:fd(o,Ne(o))}function k2(o){return o==null?[]:fd(o,Ft(o))}function D2(o,l,d){return d===e&&(d=l,l=e),d!==e&&(d=en(d),d=d===d?d:0),l!==e&&(l=en(l),l=l===l?l:0),wi(en(o),l,d)}function N2(o,l,d){return l=rr(l),d===e?(d=l,l=0):d=rr(d),o=en(o),G4(o,l,d)}function M2(o,l,d){if(d&&typeof d!="boolean"&&dt(o,l,d)&&(l=d=e),d===e&&(typeof l=="boolean"?(d=l,l=e):typeof o=="boolean"&&(d=o,o=e)),o===e&&l===e?(o=0,l=1):(o=rr(o),l===e?(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 et(o+C*(l-o+mR("1e-"+((C+"").length-1))),l)}return Id(o,l)}var R2=ws(function(o,l,d){return l=l.toLowerCase(),o+(d?sE(l):l)});function sE(o){return eh(YA(o).toLowerCase())}function oE(o){return o=YA(o),o&&o.replace(PM,TR).replace(oR,"")}function K2(o,l,d){o=YA(o),l=Ht(l);var m=o.length;d=d===e?m:wi(EA(d),0,m);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function P2(o){return o=YA(o),o&&wo.test(o)?o.replace(Bo,_R):o}function V2(o){return o=YA(o),o&&IM.test(o)?o.replace(zf,"\\$&"):o}var G2=ws(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),W2=ws(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),$2=cy("toLowerCase");function J2(o,l,d){o=YA(o),l=EA(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(Vl(C),d)}function X2(o,l,d){o=YA(o),l=EA(l);var m=l?fs(o):0;return l&&m<l?o+nc(l-m,d):o}function Y2(o,l,d){o=YA(o),l=EA(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),n4(YA(o).replace(qf,""),l||0)}function q2(o,l,d){return(d?dt(o,l,d):l===e)?l=1:l=EA(l),Sd(YA(o),l)}function Z2(){var o=arguments,l=YA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var j2=ws(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function AG(o,l,d){return d&&typeof d!="number"&&dt(o,l,d)&&(l=d=e),d=d===e?kA:d>>>0,d?(o=YA(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 eG=ws(function(o,l,d){return o+(d?" ":"")+eh(l)});function tG(o,l,d){return o=YA(o),d=d==null?0:wi(EA(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function nG(o,l,d){var m=y.templateSettings;d&&dt(o,l,d)&&(l=e),o=YA(o),l=pc({},l,m,my);var C=pc({},l.imports,m.imports,my),F=Ne(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?kM:Il).source+"|"+(l.evaluate||Il).source+"|$","g"),lA="//# sourceURL="+(qA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fR+"]")+`
146
+ `;o.replace(q,function(pA,TA,MA,Dt,ht,Nt){return MA||(MA=Dt),J+=o.slice(G,Nt).replace(VM,xR),TA&&(O=!0,J+=`' +
147
147
  __e(`+TA+`) +
148
148
  '`),ht&&(k=!0,J+=`';
149
149
  `+ht+`;
@@ -153,13 +153,13 @@ __p += '`),MA&&(J+=`' +
153
153
  `;var hA=qA.call(l,"variable")&&l.variable;if(!hA)J=`with (obj) {
154
154
  `+J+`
155
155
  }
156
- `;else if(_M.test(hA))throw new wA(a);J=(k?J.replace(NA,""):J).replace(Ge,"$1").replace(yt,"$1;"),J="function("+(hA||"obj")+`) {
156
+ `;else if(LM.test(hA))throw new wA(a);J=(k?J.replace(NA,""):J).replace(Ge,"$1").replace(yt,"$1;"),J="function("+(hA||"obj")+`) {
157
157
  `+(hA?"":`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 UA=aE(function(){return $A(F,lA+"return "+J).apply(e,I)});if(UA.source=J,qd(UA))throw UA;return UA}function eG(o){return YA(o).toLowerCase()}function tG(o){return YA(o).toUpperCase()}function nG(o,l,d){if(o=YA(o),o&&(d||l===e))return m0(o);if(!o||!(l=Ht(l)))return o;var m=dn(o),C=dn(l),F=B0(m,C),I=w0(m,C)+1;return Kr(m,F,I).join("")}function rG(o,l,d){if(o=YA(o),o&&(d||l===e))return o.slice(0,y0(o)+1);if(!o||!(l=Ht(l)))return o;var m=dn(o),C=w0(m,dn(l))+1;return Kr(m,0,C).join("")}function iG(o,l,d){if(o=YA(o),o&&(d||l===e))return o.replace(qf,"");if(!o||!(l=Ht(l)))return o;var m=dn(o),C=B0(m,dn(l));return Kr(m,C).join("")}function sG(o,l){var d=sA,m=BA;if(pe(l)){var C="separator"in l?l.separator:C;d="length"in l?EA(l.length):d,m="omission"in l?Ht(l.omission):m}o=YA(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===e)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,YA(MC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===e?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 oG(o){return o=YA(o),o&&zn.test(o)?o.replace(Yn,kR):o}var aG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),eh=ly("toUpperCase");function oE(o,l,d){return o=YA(o),l=d?e:l,l===e?_R(o)?MR(o):ER(o):o.match(l)||[]}var aE=IA(function(o,l){try{return Ot(o,e,l)}catch(d){return qd(d)?d:new wA(d)}}),lG=er(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function cG(o){var l=o==null?0:o.length,d=dA();return o=l?fe(o,function(m){if(typeof m[1]!="function")throw new zt(s);return[d(m[0]),m[1]]}):[],IA(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 uG(o){return k4(Zt(o,p))}function th(o){return function(){return o}}function fG(o,l){return o==null||o!==o?l:o}var dG=uy(),hG=uy(!0);function bt(o){return o}function nh(o){return K0(typeof o=="function"?o:Zt(o,p))}function pG(o){return V0(Zt(o,p))}function gG(o,l){return G0(o,Zt(l,p))}var mG=IA(function(o,l){return function(d){return So(d,o,l)}}),BG=IA(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var m=Ne(l),C=zl(l,m);d==null&&!(pe(l)&&(C.length||!m.length))&&(d=l,l=o,o=this,C=zl(l,Ne(l)));var F=!(pe(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 wG(){return We._===this&&(We._=WR),this}function ih(){}function CG(o){return o=EA(o),IA(function(l){return W0(l,o)})}var yG=kd(fe),EG=kd(f0),QG=kd(od);function lE(o){return Vd(o)?ad(On(o)):j4(o)}function FG(o){return function(l){return o==null?e:Ci(o,l)}}var bG=dy(),UG=dy(!0);function sh(){return[]}function oh(){return!1}function vG(){return{}}function IG(){return""}function SG(){return!0}function TG(o,l){if(o=EA(o),o<1||o>rA)return[];var d=kA,m=et(o,kA);l=dA(l),o-=kA;for(var C=ud(m,l);++d<o;)l(d);return C}function _G(o){return yA(o)?fe(o,On):kt(o)?[o]:Et(Sy(YA(o)))}function xG(o){var l=++VR;return YA(o)+l}var OG=tc(function(o,l){return o+l},0),LG=Dd("ceil"),HG=tc(function(o,l){return o/l},1),kG=Dd("floor");function DG(o){return o&&o.length?Yl(o,bt,Ed):e}function NG(o,l){return o&&o.length?Yl(o,dA(l,2),Ed):e}function MG(o){return p0(o,bt)}function RG(o,l){return p0(o,dA(l,2))}function KG(o){return o&&o.length?Yl(o,bt,Ud):e}function PG(o,l){return o&&o.length?Yl(o,dA(l,2),Ud):e}var VG=tc(function(o,l){return o*l},1),GG=Dd("round"),WG=tc(function(o,l){return o-l},0);function $G(o){return o&&o.length?cd(o,bt):0}function JG(o,l){return o&&o.length?cd(o,dA(l,2)):0}return y.after=pV,y.ary=Ry,y.assign=t2,y.assignIn=AE,y.assignInWith=pc,y.assignWith=n2,y.at=r2,y.before=Ky,y.bind=Yd,y.bindAll=lG,y.bindKey=Py,y.castArray=vV,y.chain=Dy,y.chunk=kK,y.compact=DK,y.concat=NK,y.cond=cG,y.conforms=uG,y.constant=th,y.countBy=$P,y.create=i2,y.curry=Vy,y.curryRight=Gy,y.debounce=Wy,y.defaults=s2,y.defaultsDeep=o2,y.defer=gV,y.delay=mV,y.difference=MK,y.differenceBy=RK,y.differenceWith=KK,y.drop=PK,y.dropRight=VK,y.dropRightWhile=GK,y.dropWhile=WK,y.fill=$K,y.filter=XP,y.flatMap=qP,y.flatMapDeep=ZP,y.flatMapDepth=jP,y.flatten=Oy,y.flattenDeep=JK,y.flattenDepth=XK,y.flip=BV,y.flow=dG,y.flowRight=hG,y.fromPairs=YK,y.functions=h2,y.functionsIn=p2,y.groupBy=AV,y.initial=qK,y.intersection=ZK,y.intersectionBy=jK,y.intersectionWith=AP,y.invert=m2,y.invertBy=B2,y.invokeMap=tV,y.iteratee=nh,y.keyBy=nV,y.keys=Ne,y.keysIn=Ft,y.map=lc,y.mapKeys=C2,y.mapValues=y2,y.matches=pG,y.matchesProperty=gG,y.memoize=uc,y.merge=E2,y.mergeWith=eE,y.method=mG,y.methodOf=BG,y.mixin=rh,y.negate=fc,y.nthArg=CG,y.omit=Q2,y.omitBy=F2,y.once=wV,y.orderBy=rV,y.over=yG,y.overArgs=CV,y.overEvery=EG,y.overSome=QG,y.partial=zd,y.partialRight=$y,y.partition=iV,y.pick=b2,y.pickBy=tE,y.property=lE,y.propertyOf=FG,y.pull=rP,y.pullAll=Hy,y.pullAllBy=iP,y.pullAllWith=sP,y.pullAt=oP,y.range=bG,y.rangeRight=UG,y.rearg=yV,y.reject=aV,y.remove=aP,y.rest=EV,y.reverse=Jd,y.sampleSize=cV,y.set=v2,y.setWith=I2,y.shuffle=uV,y.slice=lP,y.sortBy=hV,y.sortedUniq=gP,y.sortedUniqBy=mP,y.split=q2,y.spread=QV,y.tail=BP,y.take=wP,y.takeRight=CP,y.takeRightWhile=yP,y.takeWhile=EP,y.tap=DP,y.throttle=FV,y.thru=ac,y.toArray=qy,y.toPairs=nE,y.toPairsIn=rE,y.toPath=_G,y.toPlainObject=jy,y.transform=S2,y.unary=bV,y.union=QP,y.unionBy=FP,y.unionWith=bP,y.uniq=UP,y.uniqBy=vP,y.uniqWith=IP,y.unset=T2,y.unzip=Xd,y.unzipWith=ky,y.update=_2,y.updateWith=x2,y.values=Es,y.valuesIn=O2,y.without=SP,y.words=oE,y.wrap=UV,y.xor=TP,y.xorBy=_P,y.xorWith=xP,y.zip=OP,y.zipObject=LP,y.zipObjectDeep=HP,y.zipWith=kP,y.entries=nE,y.entriesIn=rE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=OG,y.attempt=aE,y.camelCase=D2,y.capitalize=iE,y.ceil=LG,y.clamp=L2,y.clone=IV,y.cloneDeep=TV,y.cloneDeepWith=_V,y.cloneWith=SV,y.conformsTo=xV,y.deburr=sE,y.defaultTo=fG,y.divide=HG,y.endsWith=N2,y.eq=pn,y.escape=M2,y.escapeRegExp=R2,y.every=JP,y.find=YP,y.findIndex=_y,y.findKey=a2,y.findLast=zP,y.findLastIndex=xy,y.findLastKey=l2,y.floor=kG,y.forEach=Ny,y.forEachRight=My,y.forIn=c2,y.forInRight=u2,y.forOwn=f2,y.forOwnRight=d2,y.get=jd,y.gt=OV,y.gte=LV,y.has=g2,y.hasIn=Ah,y.head=Ly,y.identity=bt,y.includes=eV,y.indexOf=zK,y.inRange=H2,y.invoke=w2,y.isArguments=Qi,y.isArray=yA,y.isArrayBuffer=HV,y.isArrayLike=Qt,y.isArrayLikeObject=ye,y.isBoolean=kV,y.isBuffer=Pr,y.isDate=DV,y.isElement=NV,y.isEmpty=MV,y.isEqual=RV,y.isEqualWith=KV,y.isError=qd,y.isFinite=PV,y.isFunction=nr,y.isInteger=Jy,y.isLength=dc,y.isMap=Xy,y.isMatch=VV,y.isMatchWith=GV,y.isNaN=WV,y.isNative=$V,y.isNil=XV,y.isNull=JV,y.isNumber=Yy,y.isObject=pe,y.isObjectLike=me,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=YV,y.isSet=zy,y.isString=hc,y.isSymbol=kt,y.isTypedArray=ys,y.isUndefined=zV,y.isWeakMap=qV,y.isWeakSet=ZV,y.join=eP,y.kebabCase=K2,y.last=An,y.lastIndexOf=tP,y.lowerCase=P2,y.lowerFirst=V2,y.lt=jV,y.lte=A2,y.max=DG,y.maxBy=NG,y.mean=MG,y.meanBy=RG,y.min=KG,y.minBy=PG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=vG,y.stubString=IG,y.stubTrue=SG,y.multiply=VG,y.nth=nP,y.noConflict=wG,y.noop=ih,y.now=cc,y.pad=G2,y.padEnd=W2,y.padStart=$2,y.parseInt=J2,y.random=k2,y.reduce=sV,y.reduceRight=oV,y.repeat=X2,y.replace=Y2,y.result=U2,y.round=GG,y.runInContext=H,y.sample=lV,y.size=fV,y.snakeCase=z2,y.some=dV,y.sortedIndex=cP,y.sortedIndexBy=uP,y.sortedIndexOf=fP,y.sortedLastIndex=dP,y.sortedLastIndexBy=hP,y.sortedLastIndexOf=pP,y.startCase=Z2,y.startsWith=j2,y.subtract=WG,y.sum=$G,y.sumBy=JG,y.template=AG,y.times=TG,y.toFinite=rr,y.toInteger=EA,y.toLength=Zy,y.toLower=eG,y.toNumber=en,y.toSafeInteger=e2,y.toString=YA,y.toUpper=tG,y.trim=nG,y.trimEnd=rG,y.trimStart=iG,y.truncate=sG,y.unescape=oG,y.uniqueId=xG,y.upperCase=aG,y.upperFirst=eh,y.each=Ny,y.eachRight=My,y.first=Ly,rh(y,function(){var o={};return _n(y,function(l,d){qA.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){OA.prototype[o]=function(d){d=d===e?1:_e(EA(d),0);var m=this.__filtered__&&!l?new OA(this):this.clone();return m.__filtered__?m.__takeCount__=et(d,m.__takeCount__):m.__views__.push({size:et(d,kA),type:o+(m.__dir__<0?"Right":"")}),m},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,m=d==LA||d==RA;OA.prototype[o]=function(C){var F=this.clone();return F.__iteratees__.push({iteratee:dA(C,3),type:d}),F.__filtered__=F.__filtered__||m,F}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");OA.prototype[o]=function(){return this.__filtered__?new OA(this):this[d](1)}}),OA.prototype.compact=function(){return this.filter(bt)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=IA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return So(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(fc(dA(o)))},OA.prototype.slice=function(o,l){o=EA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new OA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=EA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},OA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},OA.prototype.toArray=function(){return this.take(kA)},_n(OA.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 OA,G=O[0],W=k||yA(I),J=function(TA){var MA=C.apply(y,Hr([TA],O));return m&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,lA=!!this.__actions__.length,hA=F&&!q,UA=k&&!lA;if(!F&&W){I=UA?I:new OA(this);var pA=o.apply(I,O);return pA.__actions__.push({func:ac,args:[J],thisArg:e}),new qt(pA,q)}return hA&&UA?o.apply(this,O):(pA=this.thru(J),hA?m?pA.value()[0]:pA.value():pA)})}),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(yA(F)?F:[],C)}return this[d](function(I){return l.apply(yA(I)?I:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var m=d.name+"";qA.call(gs,m)||(gs[m]=[]),gs[m].push({name:l,func:d})}}),gs[ec(e,v).name]=[{name:"wrapper",func:e}],OA.prototype.clone=o4,OA.prototype.reverse=a4,OA.prototype.value=l4,y.prototype.at=NP,y.prototype.chain=MP,y.prototype.commit=RP,y.prototype.next=KP,y.prototype.plant=VP,y.prototype.reverse=GP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=WP,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=PP),y},ds=RR();pi?((pi.exports=ds)._=ds,nd._=ds):We._=ds}).call(Ys)}(Oa,Oa.exports);var vB=Oa.exports;const p_="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==",g_={class:"camera__preview"},m_={key:0,class:"camera__bg-notification"},B_=["innerHTML"],w_=["width","height"],C_={key:1,class:"camera__countdown-overlay"},y_=["innerHTML","data-countdown"],E_=["src"],Q_={class:"camera__controls"},F_={class:"container"},b_={class:"row"},U_={class:"col"},v_={class:"btn-group"},I_={key:0},S_={key:1},T_={key:0,class:"camera__switch-cam"},__={key:1,class:"base-camera__devices"},x_={name:"BaseCamera",inheritAttrs:!1};function O_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const L_=h.defineComponent({...x_,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:()=>p_},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:A,emit:e}){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=e,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(rA=>rA.kind==="videoinput")),_=h.computed(()=>u.value.filter(rA=>rA.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(rA){f.value=v.value.find(mA=>mA.deviceId===rA)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(rA){p.value=_.value.find(mA=>mA.deviceId===rA)}}),L=h.computed(()=>{const rA=f.value&&v.value.findIndex(mA=>mA.deviceId===f.value.deviceId);return r.enableMirrorCamera&&rA===0?"mirror-cam":""}),U=h.computed(()=>{const rA=f.value&&u.value.findIndex(mA=>mA.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${rA}`:""});function D(){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 P=vB.debounce(()=>{D()},300,{trailing:!0,leading:!1});async function N(){const rA={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(rA).catch(mA=>{console.error(mA,"navigator.mediaDevices.getUserMedia: failed")})}function sA(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(mA=>{mA.stop()})}async function BA(){return s.value.srcObject=await N(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function nA(){g.value?(g.value=!1,B.value=!1,sA()):(g.value=!0,BA())}function cA(){u.value.length>1&&(sA(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],BA())}async function LA(rA,mA){sA(),rA&&(!mA||rA.deviceId!==mA.deviceId)&&await BA()}h.watch(()=>f.value,LA),h.watch(()=>p.value,LA);function oe(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(oe,1e3):RA()):RA()}A({onCapture:oe});function RA(){B.value=!0;const rA=a.value.getContext("2d"),mA=s.value,XA=mA&&mA.srcObject&&mA.srcObject.getTracks(),{aspectRatio:kA,width:GA,height:KA}=XA.length&&XA[0].getSettings(),Ae=n[r.ratio],ee=Ae.width/Ae.height;let zA=Ae.width,he=Ae.height;r.enableCropImage?kA>ee?zA=he*kA:kA<ee&&(he=zA/kA):(zA=GA,he=KA,a.value.width=zA,a.value.height=he);const ct=L.value?-1:1;rA.save(),rA.scale(ct,1),rA.drawImage(mA,zA>a.value.width?(a.value.width-zA)/2:0,he>a.value.height?(a.value.height-he)/2:0,zA*ct,he),rA.restore();const At=a.value.toDataURL("image/png");HA(At)}function HA(rA){const mA=O_(rA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:mA,size:mA.size})}return h.onMounted(async()=>{sA(),await BA(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async rA=>{await BA()}),r.defaultRearCamera&&cA(),nA(),window.addEventListener("resize",P),D(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,B.value=!1,sA(),window.removeEventListener("resize",P)}),(rA,mA)=>{const XA=h.resolveComponent("loading-spinner"),kA=h.resolveComponent("svg-icon"),GA=h.resolveComponent("input-dropdown");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",U.value])},[h.createElementVNode("div",g_,[c.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",m_,[h.createVNode(XA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:rA.$t("camera.waitForCameraNotification")},null,8,B_)]),_: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,w_),[[h.vShow,B.value]]),b.value?(h.openBlock(),h.createElementBlock("div",C_,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,y_))])):h.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(h.openBlock(),h.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,E_)):h.createCommentVNode("",!0)]),h.createElementVNode("div",Q_,[h.createElementVNode("div",F_,[h.createElementVNode("div",b_,[h.createElementVNode("div",U_,[h.createElementVNode("div",v_,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:nA},[g.value?(h.openBlock(),h.createElementBlock("span",S_,h.toDisplayString(rA.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",I_,h.toDisplayString(rA.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:oe},h.toDisplayString(rA.$t("camera.capture")),1)])])])])]),v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",T_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(cA,["prevent"])},[h.createVNode(kA,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",__,[_.value.length&&p.value?(h.openBlock(),h.createBlock(GA,{key:0,modelValue:E.value,"onUpdate:modelValue":mA[0]||(mA[0]=KA=>E.value=KA),options:_.value.map((KA,Ae)=>({text:KA.label||`Microphone ${Ae+1}`,value:KA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(GA,{key:1,modelValue:S.value,"onUpdate:modelValue":mA[1]||(mA[1]=KA=>S.value=KA),options:v.value.map((KA,Ae)=>({text:KA.label||`Camera ${Ae+1}`,value:KA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),m3="",H_=/"(?:_|\\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*:/,k_=/"(?: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*:/,D_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function N_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){M_(t);return}return A}function M_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function R_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.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(!D_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(H_.test(t)||k_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,N_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const K_=/#/g,P_=/&/g,V_=/\//g,G_=/=/g,Ju=/\+/g,W_=/%5e/gi,$_=/%60/gi,J_=/%7c/gi,X_=/%20/gi;function Y_(t){return encodeURI(""+t).replace(J_,"|")}function Xu(t){return Y_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(X_,"+").replace(K_,"%23").replace(P_,"%26").replace($_,"`").replace(W_,"^").replace(V_,"%2F")}function Yu(t){return Xu(t).replace(G_,"%3D")}function IB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function z_(t){return IB(t.replace(Ju," "))}function q_(t){return IB(t.replace(Ju," "))}function Z_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=z_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=q_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function j_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Yu(t)}=${Xu(e)}`).join("&"):`${Yu(t)}=${Xu(A)}`:Yu(t)}function Ax(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>j_(A,t[A])).filter(Boolean).join("&")}const ex=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,nx=/^([/\\]\s*){2,}[^/\\]/,rx=/\/$|\/\?|\/#/,ix=/^\.?\//;function SB(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?ex.test(t):tx.test(t)||(A.acceptRelative?nx.test(t):!1)}function zu(t="",A){return A?rx.test(t):t.endsWith("/")}function sx(t="",A){if(!A)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function ox(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function ax(t,A){if(cx(A)||SB(t))return t;const e=sx(A);return t.startsWith(e)?t:fx(e,t)}function lx(t,A){const e=_B(t),n={...Z_(e.search),...A};return e.search=Ax(n),dx(e)}function cx(t){return!t||t==="/"}function ux(t){return t&&t!=="/"}function fx(t,...A){let e=t||"";for(const n of A.filter(r=>ux(r)))if(e){const r=n.replace(ix,"");e=ox(e)+r}else e=n;return e}const TB=Symbol.for("ufo:protocolRelative");function _B(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,p,g=""]=e;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!SB(t,{acceptRelative:!0}))return A?_B(A+t):xB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=xB(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,[TB]:!n}}function xB(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function dx(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[TB]?(t.protocol||"")+"//":"")+r+i+A+e+n}class hx extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function px(t){var c,u,f,p,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((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=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new hx(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 gx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function OB(t="GET"){return gx.has(t.toUpperCase())}function mx(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const Bx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wx=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Cx(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return wx.test(A)?"json":Bx.has(A)||A.startsWith("text/")?"text":"blob"}function yx(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const Ex=new Set([408,409,425,429,500,502,503,504]),Qx=new Set([101,204,205,304]);function LB(t={}){const{fetch:A=globalThis.fetch,Headers:e=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=OB(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):Ex.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=px(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const f={request:c,options:yx(u,t.defaults,e),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=ax(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=lx(f.request,{...f.options.params,...f.options.query}))),f.options.body&&OB(f.options.method)&&(mx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(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 A(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&&!Qx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||Cx(f.response.headers.get("content-type")||"");switch(w){case"json":{const Q=await f.response.text(),b=f.options.parseResponse||R_;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)=>A(...a),s.create=(a={})=>LB({...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")}(),Fx=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),bx=qu.Headers,Ux=qu.AbortController,vx=LB({fetch:Fx,Headers:bx,AbortController:Ux}),Ix={class:"file-upload"},Sx=["src"],Tx=["onClick"],_x=["onClick"],xx=["for"],Ox=["innerHTML"],Lx={key:0,class:"file-upload__loading-spinner"},Hx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function kx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const Dx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:e.toDataUrl?await kx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=e.multiple?f:f[0];n("update:modelValue",p),e.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(e.customFetch||vx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:p}).catch(Q=>{console.error("Error",Q)});return s.value=!1,`${e.baseResponsePath==="/media"&&B.path.endsWith(".svg")?"/api/v1/assets":e.baseResponsePath}/${B.path}`}return(f,p)=>{const g=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",Ix,[(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,Sx),h.createElementVNode("button",{onClick:h.withModifiers(b=>c(Q),["prevent"]),class:"btn btn--close"},[h.createVNode(g,{symbol:"x"})],8,Tx)],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,_x))],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,Ox)]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[s.value?(h.openBlock(),h.createElementBlock("span",Lx,Hx)):h.createCommentVNode("",!0)]),_:1})],8,xx)])}}}),w3="",Nx={class:"upload-group"},Mx=["innerHTML"],Rx={class:"upload-group__list"},Kx={class:"img-container"},Px=["src"],Vx=["onClick"],Gx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},HB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.ref(""),i=h.computed({get(){return e.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",Nx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,Mx)):h.createCommentVNode("",!0),h.createElementVNode("div",Rx,[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",Kx,[h.createElementVNode("img",{src:`${g}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Px),h.createElementVNode("button",{onClick:h.withModifiers(w=>s(B),["prevent"]),class:"btn btn--close"},[h.createVNode(u,{symbol:"x"})],8,Vx)])]),"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",Gx,[h.createVNode(u,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])]),_:1},8,["modelValue"])])])}}}),C3="",Wx={class:"asset-uploader"},$x=["innerHTML"],Jx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",Wx,[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,innerHTML:t.label},null,8,$x)):h.createCommentVNode("",!0),h.createVNode(HB,{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"])]))}}),y3="",Xx={class:"carousel d-flex"},Yx=["onClick"],kB=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:A}){const e=A,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){e("update:modelValue",c)}return(c,u)=>{const f=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",Xx,[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,Yx)])),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)])}}}),E3="",zx={class:"media-thumbnails"},qx=["onClick"],Zx={class:"img-container"},jx=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:A}){const e=A,n=h.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>{const a=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",zx,[h.createVNode(kB,{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",Zx,[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,qx)]),_:1},8,["items"])])}}}),Q3="",AO={class:"progress-steps"},eO={class:"progress-steps__list"},tO={class:"progress-step"},nO=["checked","id","value","disabled","read-only","required","onChange"],rO=["for"],iO=["innerHTML"],sO=["for"],oO=["innerHTML"],aO=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:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",AO,[h.createElementVNode("ul",eO,[(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",tO,[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,nO),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,iO)])],8,rO),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,oO)])],8,sO)])])],2))),128))])]))}}),F3="";/*!
162
+ }`;var vA=lE(function(){return $A(F,lA+"return "+J).apply(e,I)});if(vA.source=J,qd(vA))throw vA;return vA}function rG(o){return YA(o).toLowerCase()}function iG(o){return YA(o).toUpperCase()}function sG(o,l,d){if(o=YA(o),o&&(d||l===e))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 oG(o,l,d){if(o=YA(o),o&&(d||l===e))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 aG(o,l,d){if(o=YA(o),o&&(d||l===e))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 lG(o,l){var d=sA,m=BA;if(ge(l)){var C="separator"in l?l.separator:C;d="length"in l?EA(l.length):d,m="omission"in l?Ht(l.omission):m}o=YA(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===e)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,YA(RC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===e?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 cG(o){return o=YA(o),o&&zn.test(o)?o.replace(Yn,MR):o}var uG=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),eh=cy("toUpperCase");function aE(o,l,d){return o=YA(o),l=d?e:l,l===e?LR(o)?PR(o):bR(o):o.match(l)||[]}var lE=IA(function(o,l){try{return Ot(o,e,l)}catch(d){return qd(d)?d:new wA(d)}}),fG=er(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function dG(o){var l=o==null?0:o.length,d=dA();return o=l?fe(o,function(m){if(typeof m[1]!="function")throw new zt(s);return[d(m[0]),m[1]]}):[],IA(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 hG(o){return M4(Zt(o,p))}function th(o){return function(){return o}}function pG(o,l){return o==null||o!==o?l:o}var gG=fy(),mG=fy(!0);function bt(o){return o}function nh(o){return P0(typeof o=="function"?o:Zt(o,p))}function BG(o){return G0(Zt(o,p))}function wG(o,l){return W0(o,Zt(l,p))}var CG=IA(function(o,l){return function(d){return So(d,o,l)}}),yG=IA(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var m=Ne(l),C=zl(l,m);d==null&&!(ge(l)&&(C.length||!m.length))&&(d=l,l=o,o=this,C=zl(l,Ne(l)));var F=!(ge(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 EG(){return We._===this&&(We._=XR),this}function ih(){}function QG(o){return o=EA(o),IA(function(l){return $0(l,o)})}var FG=kd(fe),bG=kd(d0),UG=kd(od);function cE(o){return Vd(o)?ad(On(o)):tK(o)}function vG(o){return function(l){return o==null?e:Ci(o,l)}}var IG=hy(),SG=hy(!0);function sh(){return[]}function oh(){return!1}function TG(){return{}}function _G(){return""}function xG(){return!0}function OG(o,l){if(o=EA(o),o<1||o>rA)return[];var d=kA,m=et(o,kA);l=dA(l),o-=kA;for(var C=ud(m,l);++d<o;)l(d);return C}function LG(o){return yA(o)?fe(o,On):kt(o)?[o]:Et(Ty(YA(o)))}function HG(o){var l=++$R;return YA(o)+l}var kG=tc(function(o,l){return o+l},0),DG=Dd("ceil"),NG=tc(function(o,l){return o/l},1),MG=Dd("floor");function RG(o){return o&&o.length?Yl(o,bt,Ed):e}function KG(o,l){return o&&o.length?Yl(o,dA(l,2),Ed):e}function PG(o){return g0(o,bt)}function VG(o,l){return g0(o,dA(l,2))}function GG(o){return o&&o.length?Yl(o,bt,Ud):e}function WG(o,l){return o&&o.length?Yl(o,dA(l,2),Ud):e}var $G=tc(function(o,l){return o*l},1),JG=Dd("round"),XG=tc(function(o,l){return o-l},0);function YG(o){return o&&o.length?cd(o,bt):0}function zG(o,l){return o&&o.length?cd(o,dA(l,2)):0}return y.after=BV,y.ary=Ky,y.assign=i2,y.assignIn=eE,y.assignInWith=pc,y.assignWith=s2,y.at=o2,y.before=Py,y.bind=Yd,y.bindAll=fG,y.bindKey=Vy,y.castArray=TV,y.chain=Ny,y.chunk=MK,y.compact=RK,y.concat=KK,y.cond=dG,y.conforms=hG,y.constant=th,y.countBy=YP,y.create=a2,y.curry=Gy,y.curryRight=Wy,y.debounce=$y,y.defaults=l2,y.defaultsDeep=c2,y.defer=wV,y.delay=CV,y.difference=PK,y.differenceBy=VK,y.differenceWith=GK,y.drop=WK,y.dropRight=$K,y.dropRightWhile=JK,y.dropWhile=XK,y.fill=YK,y.filter=qP,y.flatMap=AV,y.flatMapDeep=eV,y.flatMapDepth=tV,y.flatten=Ly,y.flattenDeep=zK,y.flattenDepth=qK,y.flip=yV,y.flow=gG,y.flowRight=mG,y.fromPairs=ZK,y.functions=m2,y.functionsIn=B2,y.groupBy=nV,y.initial=AP,y.intersection=eP,y.intersectionBy=tP,y.intersectionWith=nP,y.invert=C2,y.invertBy=y2,y.invokeMap=iV,y.iteratee=nh,y.keyBy=sV,y.keys=Ne,y.keysIn=Ft,y.map=lc,y.mapKeys=Q2,y.mapValues=F2,y.matches=BG,y.matchesProperty=wG,y.memoize=uc,y.merge=b2,y.mergeWith=tE,y.method=CG,y.methodOf=yG,y.mixin=rh,y.negate=fc,y.nthArg=QG,y.omit=U2,y.omitBy=v2,y.once=EV,y.orderBy=oV,y.over=FG,y.overArgs=QV,y.overEvery=bG,y.overSome=UG,y.partial=zd,y.partialRight=Jy,y.partition=aV,y.pick=I2,y.pickBy=nE,y.property=cE,y.propertyOf=vG,y.pull=oP,y.pullAll=ky,y.pullAllBy=aP,y.pullAllWith=lP,y.pullAt=cP,y.range=IG,y.rangeRight=SG,y.rearg=FV,y.reject=uV,y.remove=uP,y.rest=bV,y.reverse=Jd,y.sampleSize=dV,y.set=T2,y.setWith=_2,y.shuffle=hV,y.slice=fP,y.sortBy=mV,y.sortedUniq=wP,y.sortedUniqBy=CP,y.split=AG,y.spread=UV,y.tail=yP,y.take=EP,y.takeRight=QP,y.takeRightWhile=FP,y.takeWhile=bP,y.tap=RP,y.throttle=vV,y.thru=ac,y.toArray=Zy,y.toPairs=rE,y.toPairsIn=iE,y.toPath=LG,y.toPlainObject=AE,y.transform=x2,y.unary=IV,y.union=UP,y.unionBy=vP,y.unionWith=IP,y.uniq=SP,y.uniqBy=TP,y.uniqWith=_P,y.unset=O2,y.unzip=Xd,y.unzipWith=Dy,y.update=L2,y.updateWith=H2,y.values=Es,y.valuesIn=k2,y.without=xP,y.words=aE,y.wrap=SV,y.xor=OP,y.xorBy=LP,y.xorWith=HP,y.zip=kP,y.zipObject=DP,y.zipObjectDeep=NP,y.zipWith=MP,y.entries=rE,y.entriesIn=iE,y.extend=eE,y.extendWith=pc,rh(y,y),y.add=kG,y.attempt=lE,y.camelCase=R2,y.capitalize=sE,y.ceil=DG,y.clamp=D2,y.clone=_V,y.cloneDeep=OV,y.cloneDeepWith=LV,y.cloneWith=xV,y.conformsTo=HV,y.deburr=oE,y.defaultTo=pG,y.divide=NG,y.endsWith=K2,y.eq=pn,y.escape=P2,y.escapeRegExp=V2,y.every=zP,y.find=ZP,y.findIndex=xy,y.findKey=u2,y.findLast=jP,y.findLastIndex=Oy,y.findLastKey=f2,y.floor=MG,y.forEach=My,y.forEachRight=Ry,y.forIn=d2,y.forInRight=h2,y.forOwn=p2,y.forOwnRight=g2,y.get=jd,y.gt=kV,y.gte=DV,y.has=w2,y.hasIn=Ah,y.head=Hy,y.identity=bt,y.includes=rV,y.indexOf=jK,y.inRange=N2,y.invoke=E2,y.isArguments=Qi,y.isArray=yA,y.isArrayBuffer=NV,y.isArrayLike=Qt,y.isArrayLikeObject=ye,y.isBoolean=MV,y.isBuffer=Pr,y.isDate=RV,y.isElement=KV,y.isEmpty=PV,y.isEqual=VV,y.isEqualWith=GV,y.isError=qd,y.isFinite=WV,y.isFunction=nr,y.isInteger=Xy,y.isLength=dc,y.isMap=Yy,y.isMatch=$V,y.isMatchWith=JV,y.isNaN=XV,y.isNative=YV,y.isNil=qV,y.isNull=zV,y.isNumber=zy,y.isObject=ge,y.isObjectLike=Be,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=ZV,y.isSet=qy,y.isString=hc,y.isSymbol=kt,y.isTypedArray=ys,y.isUndefined=jV,y.isWeakMap=A2,y.isWeakSet=e2,y.join=rP,y.kebabCase=G2,y.last=An,y.lastIndexOf=iP,y.lowerCase=W2,y.lowerFirst=$2,y.lt=t2,y.lte=n2,y.max=RG,y.maxBy=KG,y.mean=PG,y.meanBy=VG,y.min=GG,y.minBy=WG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=TG,y.stubString=_G,y.stubTrue=xG,y.multiply=$G,y.nth=sP,y.noConflict=EG,y.noop=ih,y.now=cc,y.pad=J2,y.padEnd=X2,y.padStart=Y2,y.parseInt=z2,y.random=M2,y.reduce=lV,y.reduceRight=cV,y.repeat=q2,y.replace=Z2,y.result=S2,y.round=JG,y.runInContext=H,y.sample=fV,y.size=pV,y.snakeCase=j2,y.some=gV,y.sortedIndex=dP,y.sortedIndexBy=hP,y.sortedIndexOf=pP,y.sortedLastIndex=gP,y.sortedLastIndexBy=mP,y.sortedLastIndexOf=BP,y.startCase=eG,y.startsWith=tG,y.subtract=XG,y.sum=YG,y.sumBy=zG,y.template=nG,y.times=OG,y.toFinite=rr,y.toInteger=EA,y.toLength=jy,y.toLower=rG,y.toNumber=en,y.toSafeInteger=r2,y.toString=YA,y.toUpper=iG,y.trim=sG,y.trimEnd=oG,y.trimStart=aG,y.truncate=lG,y.unescape=cG,y.uniqueId=HG,y.upperCase=uG,y.upperFirst=eh,y.each=My,y.eachRight=Ry,y.first=Hy,rh(y,function(){var o={};return _n(y,function(l,d){qA.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){OA.prototype[o]=function(d){d=d===e?1:_e(EA(d),0);var m=this.__filtered__&&!l?new OA(this):this.clone();return m.__filtered__?m.__takeCount__=et(d,m.__takeCount__):m.__views__.push({size:et(d,kA),type:o+(m.__dir__<0?"Right":"")}),m},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,m=d==LA||d==RA;OA.prototype[o]=function(C){var F=this.clone();return F.__iteratees__.push({iteratee:dA(C,3),type:d}),F.__filtered__=F.__filtered__||m,F}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");OA.prototype[o]=function(){return this.__filtered__?new OA(this):this[d](1)}}),OA.prototype.compact=function(){return this.filter(bt)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=IA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return So(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(fc(dA(o)))},OA.prototype.slice=function(o,l){o=EA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new OA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=EA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},OA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},OA.prototype.toArray=function(){return this.take(kA)},_n(OA.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 OA,G=O[0],W=k||yA(I),J=function(TA){var MA=C.apply(y,Hr([TA],O));return m&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,lA=!!this.__actions__.length,hA=F&&!q,vA=k&&!lA;if(!F&&W){I=vA?I:new OA(this);var pA=o.apply(I,O);return pA.__actions__.push({func:ac,args:[J],thisArg:e}),new qt(pA,q)}return hA&&vA?o.apply(this,O):(pA=this.thru(J),hA?m?pA.value()[0]:pA.value():pA)})}),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(yA(F)?F:[],C)}return this[d](function(I){return l.apply(yA(I)?I:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var m=d.name+"";qA.call(gs,m)||(gs[m]=[]),gs[m].push({name:l,func:d})}}),gs[ec(e,v).name]=[{name:"wrapper",func:e}],OA.prototype.clone=c4,OA.prototype.reverse=u4,OA.prototype.value=f4,y.prototype.at=KP,y.prototype.chain=PP,y.prototype.commit=VP,y.prototype.next=GP,y.prototype.plant=$P,y.prototype.reverse=JP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=XP,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=WP),y},ds=VR();pi?((pi.exports=ds)._=ds,nd._=ds):We._=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 A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const D_=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:A,emit:e}){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=e,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(rA=>rA.kind==="videoinput")),_=h.computed(()=>u.value.filter(rA=>rA.kind==="audioinput")),S=h.computed({get(){return f.value&&f.value.deviceId},set(rA){f.value=v.value.find(mA=>mA.deviceId===rA)}}),E=h.computed({get(){return p.value&&p.value.deviceId},set(rA){p.value=_.value.find(mA=>mA.deviceId===rA)}}),L=h.computed(()=>{const rA=f.value&&v.value.findIndex(mA=>mA.deviceId===f.value.deviceId);return r.enableMirrorCamera&&rA===0?"mirror-cam":""}),U=h.computed(()=>{const rA=f.value&&u.value.findIndex(mA=>mA.deviceId===f.value.deviceId);return L.value?`${L.value} mirror-device-${rA}`:""});function D(){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 P=IB.debounce(()=>{D()},300,{trailing:!0,leading:!1});async function N(){const rA={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(rA).catch(mA=>{console.error(mA,"navigator.mediaDevices.getUserMedia: failed")})}function sA(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(mA=>{mA.stop()})}async function BA(){return s.value.srcObject=await N(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function nA(){g.value?(g.value=!1,B.value=!1,sA()):(g.value=!0,BA())}function cA(){u.value.length>1&&(sA(),f.value=f.value&&f.value.deviceId===v.value[0].deviceId?v.value[v.value.length-1]:v.value[0],BA())}async function LA(rA,mA){sA(),rA&&(!mA||rA.deviceId!==mA.deviceId)&&await BA()}h.watch(()=>f.value,LA),h.watch(()=>p.value,LA);function oe(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(oe,1e3):RA()):RA()}A({onCapture:oe});function RA(){B.value=!0;const rA=a.value.getContext("2d"),mA=s.value,XA=mA&&mA.srcObject&&mA.srcObject.getTracks(),{aspectRatio:kA,width:GA,height:KA}=XA.length&&XA[0].getSettings(),Ae=n[r.ratio],ee=Ae.width/Ae.height;let zA=Ae.width,pe=Ae.height;r.enableCropImage?kA>ee?zA=pe*kA:kA<ee&&(pe=zA/kA):(zA=GA,pe=KA,a.value.width=zA,a.value.height=pe);const ct=L.value?-1:1;rA.save(),rA.scale(ct,1),rA.drawImage(mA,zA>a.value.width?(a.value.width-zA)/2:0,pe>a.value.height?(a.value.height-pe)/2:0,zA*ct,pe),rA.restore();const At=a.value.toDataURL("image/png");HA(At)}function HA(rA){const mA=k_(rA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:mA,size:mA.size})}return h.onMounted(async()=>{sA(),await BA(),f.value=v.value[0],r.enableAudio&&(p.value=_.value[0]),navigator.mediaDevices.addEventListener("devicechange",async rA=>{await BA()}),r.defaultRearCamera&&cA(),nA(),window.addEventListener("resize",P),D(),await h.nextTick(),c.value=!0}),h.onBeforeUnmount(()=>{g.value=!1,B.value=!1,sA(),window.removeEventListener("resize",P)}),(rA,mA)=>{const XA=h.resolveComponent("loading-spinner"),kA=h.resolveComponent("svg-icon"),GA=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(XA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass("d-block text-center"),innerHTML:rA.$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:nA},[g.value?(h.openBlock(),h.createElementBlock("span",x_,h.toDisplayString(rA.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",__,h.toDisplayString(rA.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:oe},h.toDisplayString(rA.$t("camera.capture")),1)])])])])]),v.value&&v.value.length>1?(h.openBlock(),h.createElementBlock("div",O_,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(cA,["prevent"])},[h.createVNode(kA,{symbol:"switch-camera"})])])):h.createCommentVNode("",!0),t.enableSelectDevice?(h.openBlock(),h.createElementBlock("div",L_,[_.value.length&&p.value?(h.openBlock(),h.createBlock(GA,{key:0,modelValue:E.value,"onUpdate:modelValue":mA[0]||(mA[0]=KA=>E.value=KA),options:_.value.map((KA,Ae)=>({text:KA.label||`Microphone ${Ae+1}`,value:KA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0),v.value.length?(h.openBlock(),h.createBlock(GA,{key:1,modelValue:S.value,"onUpdate:modelValue":mA[1]||(mA[1]=KA=>S.value=KA),options:v.value.map((KA,Ae)=>({text:KA.label||`Camera ${Ae+1}`,value:KA.deviceId}))},null,8,["modelValue","options"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)],2)}}}),y3="",N_=/"(?:_|\\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,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){P_(t);return}return A}function P_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function V_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.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(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(N_.test(t)||M_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,K_)}return JSON.parse(t)}catch(n){if(A.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 Ax(t){return SB(t.replace(Ju," "))}function ex(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=j_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=Ax(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function tx(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Yu(t)}=${Xu(e)}`).join("&"):`${Yu(t)}=${Xu(A)}`:Yu(t)}function nx(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>tx(A,t[A])).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,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?rx.test(t):ix.test(t)||(A.acceptRelative?sx.test(t):!1)}function zu(t="",A){return A?ox.test(t):t.endsWith("/")}function lx(t="",A){if(!A)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function cx(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function ux(t,A){if(dx(A)||TB(t))return t;const e=lx(A);return t.startsWith(e)?t:px(e,t)}function fx(t,A){const e=xB(t),n={...ex(e.search),...A};return e.search=nx(n),gx(e)}function dx(t){return!t||t==="/"}function hx(t){return t&&t!=="/"}function px(t,...A){let e=t||"";for(const n of A.filter(r=>hx(r)))if(e){const r=n.replace(ax,"");e=cx(e)+r}else e=n;return e}const _B=Symbol.for("ufo:protocolRelative");function xB(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,p,g=""]=e;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!TB(t,{acceptRelative:!0}))return A?xB(A+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[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function gx(t){const A=t.pathname||"",e=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+A+e+n}class mx extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function Bx(t){var c,u,f,p,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((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=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,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 A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="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 A=t.split(";").shift()||"";return Ex.test(A)?"json":yx.has(A)||A.startsWith("text/")?"text":"blob"}function Fx(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((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:A=globalThis.fetch,Headers:e=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,e),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 e(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 A(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||V_;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)=>A(...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"],Dx={key:0,class:"file-upload__loading-spinner"},Nx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function Mx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const Rx=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.ref([]),i=h.ref([]),s=h.ref(!1),a=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);h.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async p=>({src:e.toDataUrl?await Mx(p):await u(p),type:p.type})))},{deep:!0}),h.watch(()=>i.value,async f=>{const p=e.multiple?f:f[0];n("update:modelValue",p),e.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(e.customFetch||Tx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:p}).catch(Q=>{console.error("Error",Q)});return s.value=!1,`${e.baseResponsePath==="/media"&&B.path.endsWith(".svg")?"/api/v1/assets":e.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",Dx,Nx)):h.createCommentVNode("",!0)]),_:1})],8,Hx)])}}}),Q3="",Kx={class:"upload-group"},Px=["innerHTML"],Vx={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:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.ref(""),i=h.computed({get(){return e.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,Px)):h.createCommentVNode("",!0),h.createElementVNode("div",Vx,[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"])])])}}}),F3="",Xx={class:"asset-uploader"},Yx=["innerHTML"],zx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>de()},id:{type:String,default:()=>de()},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:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.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"])]))}}),b3="",qx={class:"carousel d-flex"},Zx=["onClick"],DB=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:A}){const e=A,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){e("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)])}}}),U3="",jx={class:"media-thumbnails"},AO=["onClick"],eO={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:A}){const e=A,n=h.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>{const a=h.resolveComponent("base-image");return h.openBlock(),h.createElementBlock("div",jx,[h.createVNode(DB,{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",eO,[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"])])}}}),v3="",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:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.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))])]))}}),I3="";/*!
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,A){return Zu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])},Zu(t,A)};function ln(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Zu(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var ju=function(){return ju=Object.assign||function(A){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},ju.apply(this,arguments)};function lt(t,A,e,n){function r(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=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,A||[])).next())})}function Ze(t,A){var e={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(;e;)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 e.label++,{value:u[1],done:!1};case 5:e.label++,r=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=A.call(t,e)}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,A,e){if(e||arguments.length===2)for(var n=0,r=A.length,i;n<r;n++)(i||!(n in A))&&(i||(i=Array.prototype.slice.call(A,0,n)),i[n]=A[n]);return t.concat(i||A)}for(var Wn=function(){function t(A,e,n,r){this.left=A,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(A,e,n,r){return new t(this.left+A,this.top+e,this.width+n,this.height+r)},t.fromClientRect=function(A,e){return new t(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},t.fromDOMRectList=function(A,e){var n=Array.from(e).find(function(r){return r.width!==0});return n?new t(n.left+A.windowBounds.left,n.top+A.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ha=function(t,A){return Wn.fromClientRect(t,A.getBoundingClientRect())},lO=function(t){var A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");var n=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),r=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Wn(0,0,n,r)},ka=function(t){for(var A=[],e=0,n=t.length;e<n;){var r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},we=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var n=[],r=-1,i="";++r<e;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},DB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Da=0;Da<DB.length;Da++)cO[DB.charCodeAt(Da)]=Da;for(var NB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Na=0;Na<NB.length;Na++)zs[NB.charCodeAt(Na)]=Na;for(var uO=function(t){var A=t.length*.75,e=t.length,n,r=0,i,s,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),f=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;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},fO=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},dO=function(t){for(var A=t.length,e=[],n=0;n<A;n+=4)e.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return e},ci=5,Af=6+5,ef=2,hO=Af-ci,MB=65536>>ci,pO=1<<ci,tf=pO-1,gO=1024>>ci,mO=MB+gO,BO=mO,wO=32,CO=BO+wO,yO=65536>>Af,EO=1<<hO,QO=EO-1,RB=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},FO=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},bO=function(t,A){var e=uO(t),n=Array.isArray(e)?dO(e):new Uint32Array(e),r=Array.isArray(e)?fO(e):new Uint16Array(e),i=24,s=RB(r,i/2,n[4]/2),a=n[5]===2?RB(r,(i+n[4])/2):FO(n,Math.ceil((i+n[4])/4));return new UO(n[0],n[1],n[2],n[3],s,a)},UO=function(){function t(A,e,n,r,i,s){this.initialValue=A,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>ci],e=(e<<ef)+(A&tf),this.data[e];if(A<=65535)return e=this.index[MB+(A-55296>>ci)],e=(e<<ef)+(A&tf),this.data[e];if(A<this.highStart)return e=CO-yO+(A>>Af),e=this.index[e],e+=A>>ci&QO,e=this.index[e],e=(e<<ef)+(A&tf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),KB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ma=0;Ma<KB.length;Ma++)vO[KB.charCodeAt(Ma)]=Ma;var IO="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,SO=1,VB=2,GB=3,TO=4,_O=5,WB=7,$B=8,JB=9,Qr=10,nf=11,XB=12,rf=13,xO=14,qs=15,sf=16,Ra=17,Zs=18,OO=19,YB=20,of=21,js=22,af=23,Xi=24,Tt=25,Ao=26,eo=27,Yi=28,LO=29,ui=30,HO=31,Ka=32,Pa=33,lf=34,cf=35,uf=36,to=37,ff=38,Va=39,Ga=40,df=41,zB=42,kO=43,DO=[9001,65288],qB="!",xA="×",Wa="÷",hf=bO(IO),$n=[ui,uf],pf=[SO,VB,GB,_O],ZB=[Qr,$B],jB=[eo,Ao],NO=pf.concat(ZB),Aw=[ff,Va,Ga,lf,cf],MO=[qs,rf],RO=function(t,A){A===void 0&&(A="strict");var e=[],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(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),e.push(sf);if(a===TO||a===nf){if(s===0)return n.push(s),e.push(ui);var c=e[s-1];return NO.indexOf(c)===-1?(n.push(n[s-1]),e.push(c)):(n.push(s),e.push(ui))}if(n.push(s),a===HO)return e.push(A==="strict"?of:to);if(a===zB||a===LO)return e.push(ui);if(a===kO)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(to):e.push(ui);e.push(a)}),[n,e,r]},gf=function(t,A,e,n){var r=n[e];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var i=e;i<=n.length;){i++;var s=n[i];if(s===A)return!0;if(s!==Qr)break}if(r===Qr)for(var i=e;i>0;){i--;var a=n[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=e;c<=n.length;){c++;var s=n[c];if(s===A)return!0;if(s!==Qr)break}if(a!==Qr)break}return!1},ew=function(t,A){for(var e=t;e>=0;){var n=A[e];if(n===Qr)e--;else return n}return 0},KO=function(t,A,e,n,r){if(e[n]===0)return xA;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return xA;var s=i-1,a=i+1,c=A[i],u=s>=0?A[s]:0,f=A[a];if(c===VB&&f===GB)return xA;if(pf.indexOf(c)!==-1)return qB;if(pf.indexOf(f)!==-1||ZB.indexOf(f)!==-1)return xA;if(ew(i,A)===$B)return Wa;if(hf.get(t[i])===nf||(c===Ka||c===Pa)&&hf.get(t[a])===nf||c===WB||f===WB||c===JB||[Qr,rf,qs].indexOf(c)===-1&&f===JB||[Ra,Zs,OO,Xi,Yi].indexOf(f)!==-1||ew(i,A)===js||gf(af,js,i,A)||gf([Ra,Zs],of,i,A)||gf(XB,XB,i,A))return xA;if(c===Qr)return Wa;if(c===af||f===af)return xA;if(f===sf||c===sf)return Wa;if([rf,qs,of].indexOf(f)!==-1||c===xO||u===uf&&MO.indexOf(c)!==-1||c===Yi&&f===uf||f===YB||$n.indexOf(f)!==-1&&c===Tt||$n.indexOf(c)!==-1&&f===Tt||c===eo&&[to,Ka,Pa].indexOf(f)!==-1||[to,Ka,Pa].indexOf(c)!==-1&&f===Ao||$n.indexOf(c)!==-1&&jB.indexOf(f)!==-1||jB.indexOf(c)!==-1&&$n.indexOf(f)!==-1||[eo,Ao].indexOf(c)!==-1&&(f===Tt||[js,qs].indexOf(f)!==-1&&A[a+1]===Tt)||[js,qs].indexOf(c)!==-1&&f===Tt||c===Tt&&[Tt,Yi,Xi].indexOf(f)!==-1)return xA;if([Tt,Yi,Xi,Ra,Zs].indexOf(f)!==-1)for(var p=i;p>=0;){var g=A[p];if(g===Tt)return xA;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if([eo,Ao].indexOf(f)!==-1)for(var p=[Ra,Zs].indexOf(c)!==-1?s:i;p>=0;){var g=A[p];if(g===Tt)return xA;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if(ff===c&&[ff,Va,lf,cf].indexOf(f)!==-1||[Va,lf].indexOf(c)!==-1&&[Va,Ga].indexOf(f)!==-1||[Ga,cf].indexOf(c)!==-1&&f===Ga||Aw.indexOf(c)!==-1&&[YB,Ao].indexOf(f)!==-1||Aw.indexOf(f)!==-1&&c===eo||$n.indexOf(c)!==-1&&$n.indexOf(f)!==-1||c===Xi&&$n.indexOf(f)!==-1||$n.concat(Tt).indexOf(c)!==-1&&f===js&&DO.indexOf(t[a])===-1||$n.concat(Tt).indexOf(f)!==-1&&c===Zs)return xA;if(c===df&&f===df){for(var B=e[i],w=1;B>0&&(B--,A[B]===df);)w++;if(w%2!==0)return xA}return c===Ka&&f===Pa?xA:Wa},PO=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=RO(t,A.lineBreak),n=e[0],r=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(r=r.map(function(a){return[Tt,ui,zB].indexOf(a)!==-1?to:a}));var s=A.wordBreak==="keep-all"?i.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[n,r,s]},VO=function(){function t(A,e,n,r){this.codePoints=A,this.required=e===qB,this.start=n,this.end=r}return t.prototype.slice=function(){return we.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),GO=function(t,A){var e=ka(t),n=PO(e,A),r=n[0],i=n[1],s=n[2],a=e.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=xA;u<a&&(f=KO(e,i,r,++u,s))===xA;);if(f!==xA||u===a){var p=new VO(e,f,c,u);return c=u,{value:p,done:!1}}return{done:!0,value:null}}}},WO=1,$O=2,no=4,tw=8,$a=10,nw=47,ro=92,JO=9,XO=32,Ja=34,io=61,YO=35,zO=36,qO=37,Xa=39,Ya=40,so=41,ZO=95,wt=45,jO=33,AL=60,eL=62,tL=64,nL=91,rL=93,iL=61,sL=123,za=63,oL=125,rw=124,aL=126,lL=128,iw=65533,mf=42,fi=43,cL=44,uL=58,fL=59,oo=46,dL=0,hL=8,pL=11,gL=14,mL=31,BL=127,Un=-1,sw=48,ow=97,aw=101,wL=102,CL=117,yL=122,lw=65,cw=69,uw=70,EL=85,QL=90,je=function(t){return t>=sw&&t<=57},FL=function(t){return t>=55296&&t<=57343},zi=function(t){return je(t)||t>=lw&&t<=uw||t>=ow&&t<=wL},bL=function(t){return t>=ow&&t<=yL},UL=function(t){return t>=lw&&t<=QL},vL=function(t){return bL(t)||UL(t)},IL=function(t){return t>=lL},qa=function(t){return t===$a||t===JO||t===XO},Za=function(t){return vL(t)||IL(t)||t===ZO},fw=function(t){return Za(t)||je(t)||t===wt},SL=function(t){return t>=dL&&t<=hL||t===pL||t>=gL&&t<=mL||t===BL},Fr=function(t,A){return t!==ro?!1:A!==$a},ja=function(t,A,e){return t===wt?Za(A)||Fr(A,e):Za(t)?!0:!!(t===ro&&Fr(t,A))},Bf=function(t,A,e){return t===fi||t===wt?je(A)?!0:A===oo&&je(e):je(t===oo?A:t)},TL=function(t){var A=0,e=1;(t[A]===fi||t[A]===wt)&&(t[A]===wt&&(e=-1),A++);for(var n=[];je(t[A]);)n.push(t[A++]);var r=n.length?parseInt(we.apply(void 0,n),10):0;t[A]===oo&&A++;for(var i=[];je(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(we.apply(void 0,i),10):0;(t[A]===cw||t[A]===aw)&&A++;var c=1;(t[A]===fi||t[A]===wt)&&(t[A]===wt&&(c=-1),A++);for(var u=[];je(t[A]);)u.push(t[A++]);var f=u.length?parseInt(we.apply(void 0,u),10):0;return e*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},_L={type:2},xL={type:3},OL={type:4},LL={type:13},HL={type:8},kL={type:21},DL={type:9},NL={type:10},ML={type:11},RL={type:12},KL={type:14},Al={type:23},PL={type:1},VL={type:25},GL={type:24},WL={type:26},$L={type:27},JL={type:28},XL={type:29},YL={type:31},wf={type:32},dw=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(ka(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==wf;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Ja:return this.consumeStringToken(Ja);case YO:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(fw(e)||Fr(n,r)){var i=ja(e,n,r)?$O:WO,s=this.consumeName();return{type:5,value:s,flags:i}}break;case zO:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),LL;break;case Xa:return this.consumeStringToken(Xa);case Ya:return _L;case so:return xL;case mf:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),KL;break;case fi:if(Bf(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case cL:return OL;case wt:var a=A,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Bf(a,c,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(ja(a,c,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===wt&&u===eL)return this.consumeCodePoint(),this.consumeCodePoint(),GL;break;case oo:if(Bf(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case nw:if(this.peekCodePoint(0)===mf)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===mf&&(f=this.consumeCodePoint(),f===nw))return this.consumeToken();if(f===Un)return this.consumeToken()}break;case uL:return WL;case fL:return $L;case AL:if(this.peekCodePoint(0)===jO&&this.peekCodePoint(1)===wt&&this.peekCodePoint(2)===wt)return this.consumeCodePoint(),this.consumeCodePoint(),VL;break;case tL: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 nL:return JL;case ro:if(Fr(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case rL:return XL;case iL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),HL;break;case sL:return ML;case oL:return RL;case CL:case EL:var w=this.peekCodePoint(0),Q=this.peekCodePoint(1);return w===fi&&(zi(Q)||Q===za)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case rw:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),DL;if(this.peekCodePoint(0)===rw)return this.consumeCodePoint(),kL;break;case aL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),NL;break;case Un:return wf}return qa(A)?(this.consumeWhiteSpace(),YL):je(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Za(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:we(A)}},t.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},t.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},t.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},t.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();zi(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var n=!1;e===za&&A.length<6;)A.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(we.apply(void 0,A.map(function(c){return c===za?sw:c})),16),i=parseInt(we.apply(void 0,A.map(function(c){return c===za?uw:c})),16);return{type:30,start:r,end:i}}var s=parseInt(we.apply(void 0,A),16);if(this.peekCodePoint(0)===wt&&zi(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];zi(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(we.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 A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Xa||e===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(),Al)}for(;;){var r=this.consumeCodePoint();if(r===Un||r===so)return{type:22,value:we.apply(void 0,A)};if(qa(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so?(this.consumeCodePoint(),{type:22,value:we.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Al);if(r===Ja||r===Xa||r===Ya||SL(r))return this.consumeBadUrlRemnants(),Al;if(r===ro)if(Fr(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Al;else A.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;qa(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===so||A===Un)return;Fr(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(A){for(var e=5e4,n="";A>0;){var r=Math.min(e,A);n+=we.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(A){var e="",n=0;do{var r=this._value[n];if(r===Un||r===void 0||r===A)return e+=this.consumeStringSlice(n),{type:0,value:e};if(r===$a)return this._value.splice(0,n),PL;if(r===ro){var i=this._value[n+1];i!==Un&&i!==void 0&&(i===$a?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Fr(r,i)&&(e+=this.consumeStringSlice(n),e+=we(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=no,n=this.peekCodePoint(0);for((n===fi||n===wt)&&A.push(this.consumeCodePoint());je(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===oo&&je(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=tw;je(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===cw||n===aw)&&((r===fi||r===wt)&&je(i)||je(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=tw;je(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[TL(A),e]},t.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],n=A[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:e,flags:n,unit:a}}return r===qO?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(zi(A)){for(var e=we(A);zi(this.peekCodePoint(0))&&e.length<6;)e+=we(this.consumeCodePoint());qa(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||FL(n)||n>1114111?iw:n}return A===Un?iw:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(fw(e))A+=we(e);else if(Fr(e,this.peekCodePoint(0)))A+=we(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),hw=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new dw;return e.write(A),new t(e.read())},t.parseValue=function(A){return t.create(A).parseComponentValue()},t.parseValues=function(A){return t.create(A).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},t.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},t.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},n=this.consumeToken();;){if(n.type===32||qL(n,A))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?wf:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),ao=function(t){return t.type===15},qi=function(t){return t.type===17},jA=function(t){return t.type===20},zL=function(t){return t.type===0},Cf=function(t,A){return jA(t)&&t.value===A},pw=function(t){return t.type!==31},Zi=function(t){return t.type!==31&&t.type!==4},vn=function(t){var A=[],e=[];return t.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&A.push(e),A},qL=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},br=function(t){return t.type===17||t.type===15},Ue=function(t){return t.type===16||br(t)},gw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Pe={type:17,number:0,flags:no},yf={type:16,number:50,flags:no},Ur={type:16,number:100,flags:no},lo=function(t,A,e){var n=t[0],r=t[1];return[se(n,A),se(typeof r<"u"?r:n,e)]},se=function(t,A){if(t.type===16)return t.number/100*A;if(ao(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},mw="deg",Bw="grad",ww="rad",Cw="turn",el={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case mw:return Math.PI*A.number/180;case Bw:return Math.PI/200*A.number;case ww:return A.number;case Cw:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},yw=function(t){return t.type===15&&(t.unit===mw||t.unit===Bw||t.unit===ww||t.unit===Cw)},Ew=function(t){var A=t.filter(jA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Pe,Pe];case"to top":case"bottom":return Vt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Pe,Ur];case"to right":case"left":return Vt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ur,Ur];case"to bottom":case"top":return Vt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ur,Pe];case"to left":case"right":return Vt(270)}return 0},Vt=function(t){return Math.PI*t/180},vr={name:"color",parse:function(t,A){if(A.type===18){var e=ZL[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(t,A.values)}if(A.type===5){if(A.value.length===3){var n=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(A.value.length===4){var n=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3),s=A.value.substring(3,4);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(A.value.length===6){var n=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(A.value.length===8){var n=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6),s=A.value.substring(6,8);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Jn[A.value.toUpperCase()];if(typeof a<"u")return a}return Jn.TRANSPARENT}},Ir=function(t){return(255&t)===0},De=function(t){var A=255&t,e=255&t>>8,n=255&t>>16,r=255&t>>24;return A<255?"rgba("+r+","+n+","+e+","+A/255+")":"rgb("+r+","+n+","+e+")"},Sr=function(t,A,e,n){return(t<<24|A<<16|e<<8|Math.round(n*255)<<0)>>>0},Qw=function(t,A){if(t.type===17)return t.number;if(t.type===16){var e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},Fw=function(t,A){var e=A.filter(Zi);if(e.length===3){var n=e.map(Qw),r=n[0],i=n[1],s=n[2];return Sr(r,i,s,1)}if(e.length===4){var a=e.map(Qw),r=a[0],i=a[1],s=a[2],c=a[3];return Sr(r,i,s,c)}return 0};function Ef(t,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t}var bw=function(t,A){var e=A.filter(Zi),n=e[0],r=e[1],i=e[2],s=e[3],a=(n.type===17?Vt(n.number):el.parse(t,n))/(Math.PI*2),c=Ue(r)?r.number/100:0,u=Ue(i)?i.number/100:0,f=typeof s<"u"&&Ue(s)?se(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)},ZL={hsl:bw,hsla:bw,rgb:Fw,rgba:Fw},co=function(t,A){return vr.parse(t,hw.create(A).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},jL={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(jA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},AH={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tl=function(t,A){var e=vr.parse(t,A[0]),n=A[1];return n&&Ue(n)?{color:e,stop:n}:{color:e,stop:null}},Uw=function(t,A){var e=t[0],n=t[t.length-1];e.stop===null&&(e.stop=Pe),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=se(a,A);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]/A),0)}})},eH=function(t,A,e){var n=A/2,r=e/2,i=se(t[0],A)-n,s=r-se(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},tH=function(t,A,e){var n=typeof t=="number"?t:eH(t,A,e),r=Math.abs(A*Math.sin(n))+Math.abs(e*Math.cos(n)),i=A/2,s=e/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,A){return Math.sqrt(t*t+A*A)},vw=function(t,A,e,n,r){var i=[[0,0],[0,A],[t,0],[t,A]];return i.reduce(function(s,a){var c=a[0],u=a[1],f=cn(e-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},nH=function(t,A,e,n,r){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(A),Math.abs(A-n),Math.abs(e),Math.abs(e-r)):t.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-n)),s=Math.min(Math.abs(e),Math.abs(e-r)));break;case 2:if(t.shape===0)i=s=Math.min(cn(A,e),cn(A,e-r),cn(A-n,e),cn(A-n,e-r));else if(t.shape===1){var a=Math.min(Math.abs(e),Math.abs(e-r))/Math.min(Math.abs(A),Math.abs(A-n)),c=vw(n,r,A,e,!0),u=c[0],f=c[1];i=cn(u-A,(f-e)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(A),Math.abs(A-n),Math.abs(e),Math.abs(e-r)):t.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-n)),s=Math.max(Math.abs(e),Math.abs(e-r)));break;case 3:if(t.shape===0)i=s=Math.max(cn(A,e),cn(A,e-r),cn(A-n,e),cn(A-n,e-r));else if(t.shape===1){var a=Math.max(Math.abs(e),Math.abs(e-r))/Math.max(Math.abs(A),Math.abs(A-n)),p=vw(n,r,A,e,!1),u=p[0],f=p[1];i=cn(u-A,(f-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=se(t.size[0],n),s=t.size.length===2?se(t.size[1],r):i),[i,s]},rH=function(t,A){var e=Vt(180),n=[];return vn(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){e=Ew(r);return}else if(yw(s)){e=el.parse(t,s);return}}var a=tl(t,r);n.push(a)}),{angle:e,stops:n,type:1}},nl=function(t,A){var e=Vt(180),n=[];return vn(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){e=Ew(r);return}else if(yw(s)){e=(el.parse(t,s)+Vt(270))%Vt(360);return}}var a=tl(t,r);n.push(a)}),{angle:e,stops:n,type:1}},iH=function(t,A){var e=Vt(180),n=[],r=1,i=0,s=3,a=[];return vn(A).forEach(function(c,u){var f=c[0];if(u===0){if(jA(f)&&f.value==="linear"){r=1;return}else if(jA(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:Pe,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:(e+Vt(180))%Vt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},Iw="closest-side",Sw="farthest-side",Tw="closest-corner",_w="farthest-corner",xw="circle",Ow="ellipse",Lw="cover",Hw="contain",sH=function(t,A){var e=0,n=3,r=[],i=[];return vn(A).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,g){if(u)if(jA(g))switch(g.value){case"center":return i.push(yf),p;case"top":case"left":return i.push(Pe),p;case"right":case"bottom":return i.push(Ur),p}else(Ue(g)||br(g))&&i.push(g);else if(jA(g))switch(g.value){case xw:return e=0,!1;case Ow:return e=1,!1;case"at":return u=!0,!1;case Iw:return n=0,!1;case Lw:case Sw:return n=1,!1;case Hw:case Tw:return n=2,!1;case _w:return n=3,!1}else if(br(g)||Ue(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:e,stops:r,position:i,type:2}},rl=function(t,A){var e=0,n=3,r=[],i=[];return vn(A).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(f,p){if(jA(p))switch(p.value){case"center":return i.push(yf),!1;case"top":case"left":return i.push(Pe),!1;case"right":case"bottom":return i.push(Ur),!1}else if(Ue(p)||br(p))return i.push(p),!1;return f},c):a===1&&(c=s.reduce(function(f,p){if(jA(p))switch(p.value){case xw:return e=0,!1;case Ow:return e=1,!1;case Hw:case Iw:return n=0,!1;case Sw:return n=1,!1;case Tw:return n=2,!1;case Lw:case _w:return n=3,!1}else if(br(p)||Ue(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:e,stops:r,position:i,type:2}},oH=function(t){return t.type===1},aH=function(t){return t.type===2},Qf={name:"image",parse:function(t,A){if(A.type===22){var e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){var n=kw[A.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return n(t,A.values)}throw new Error("Unsupported image type "+A.type)}};function lH(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!kw[t.name])}var kw={"linear-gradient":rH,"-moz-linear-gradient":nl,"-ms-linear-gradient":nl,"-o-linear-gradient":nl,"-webkit-linear-gradient":nl,"radial-gradient":sH,"-moz-radial-gradient":rl,"-ms-radial-gradient":rl,"-o-radial-gradient":rl,"-webkit-radial-gradient":rl,"-webkit-gradient":iH},cH={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(n){return Zi(n)&&lH(n)}).map(function(n){return Qf.parse(t,n)})}},uH={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(jA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},fH={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return vn(A).map(function(e){return e.filter(Ue)}).map(gw)}},dH={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(jA).map(function(n){return n.value}).join(" ")}).map(hH)}},hH=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 pH={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(gH)})}},gH=function(t){return jA(t)||Ue(t)},il=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},mH=il("top"),BH=il("right"),wH=il("bottom"),CH=il("left"),sl=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return gw(e.filter(Ue))}}},yH=sl("top-left"),EH=sl("top-right"),QH=sl("bottom-right"),FH=sl("bottom-left"),ol=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},bH=ol("top"),UH=ol("right"),vH=ol("bottom"),IH=ol("left"),al=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return ao(e)?e.number:0}}},SH=al("top"),TH=al("right"),_H=al("bottom"),xH=al("left"),OH={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},LH={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},HH={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(jA).reduce(function(e,n){return e|kH(n.value)},0)}},kH=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},DH={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},NH={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ll;(function(t){t.NORMAL="normal",t.STRICT="strict"})(ll||(ll={}));var MH={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return ll.STRICT;case"normal":default:return ll.NORMAL}}},RH={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dw=function(t,A){return jA(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:Ue(t)?se(t,A):A},KH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:Qf.parse(t,A)}},PH={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Ff={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){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}},VH=cl("top"),GH=cl("right"),WH=cl("bottom"),$H=cl("left"),JH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(jA).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},XH={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){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"}},YH=ul("top"),zH=ul("right"),qH=ul("bottom"),ZH=ul("left"),jH={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ak={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},ek={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&Cf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:Jn.TRANSPARENT,offsetX:Pe,offsetY:Pe,blur:Pe},r=0,i=0;i<e.length;i++){var s=e[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})}},tk={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},nk={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=sk[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},rk=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},ik=function(t){var A=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),e=A[0],n=A[1];A[2],A[3];var r=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],a=A[13];return A[14],A[15],A.length===16?[e,n,r,i,s,a]:null},sk={matrix:rk,matrix3d:ik},Nw={type:16,number:50,flags:no},ok=[Nw,Nw],ak={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(Ue);return e.length!==2?ok:[e[0],e[1]]}},lk={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){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 ck={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return uo.BREAK_ALL;case"keep-all":return uo.KEEP_ALL;case"normal":default:return uo.NORMAL}}},uk={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(qi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Mw={name:"time",parse:function(t,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},fk={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return qi(A)?A.number:1}},dk={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hk={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(jA).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},pk={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,A){var e=[],n=[];return A.forEach(function(r){switch(r.type){case 20:case 0:e.push(r.value);break;case 17:e.push(r.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(r){return r.indexOf(" ")===-1?r:"'"+r+"'"})}},gk={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},mk={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(qi(A))return A.number;if(jA(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},Bk={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(jA).map(function(e){return e.value})}},wk={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Se=function(t,A){return(t&A)!==0},Ck={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},yk={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var n=[],r=A.filter(pw),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}},Ek={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],n=A.filter(pw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(jA(i)&&i.value!=="none"){var a=s&&qi(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},Qk={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(ao).map(function(e){return Mw.parse(t,e)})}},Fk={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var n=[],r=A.filter(zL);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}},Rw=function(t,A,e){if(!t)return"";var n=t[Math.min(A,t.length-1)];return n?e?n.open:n.close:""},bk={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&Cf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:255,offsetX:Pe,offsetY:Pe,blur:Pe,spread:Pe,inset:!1},r=0,i=0;i<e.length;i++){var s=e[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})}},Uk={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],n=[];return A.filter(jA).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),e.forEach(function(r){n.indexOf(r)===-1&&n.push(r)}),n}},vk={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ik={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return ao(A)?A.number:0}},Sk=function(){function t(A,e){var n,r;this.animationDuration=AA(A,Qk,e.animationDuration),this.backgroundClip=AA(A,jL,e.backgroundClip),this.backgroundColor=AA(A,AH,e.backgroundColor),this.backgroundImage=AA(A,cH,e.backgroundImage),this.backgroundOrigin=AA(A,uH,e.backgroundOrigin),this.backgroundPosition=AA(A,fH,e.backgroundPosition),this.backgroundRepeat=AA(A,dH,e.backgroundRepeat),this.backgroundSize=AA(A,pH,e.backgroundSize),this.borderTopColor=AA(A,mH,e.borderTopColor),this.borderRightColor=AA(A,BH,e.borderRightColor),this.borderBottomColor=AA(A,wH,e.borderBottomColor),this.borderLeftColor=AA(A,CH,e.borderLeftColor),this.borderTopLeftRadius=AA(A,yH,e.borderTopLeftRadius),this.borderTopRightRadius=AA(A,EH,e.borderTopRightRadius),this.borderBottomRightRadius=AA(A,QH,e.borderBottomRightRadius),this.borderBottomLeftRadius=AA(A,FH,e.borderBottomLeftRadius),this.borderTopStyle=AA(A,bH,e.borderTopStyle),this.borderRightStyle=AA(A,UH,e.borderRightStyle),this.borderBottomStyle=AA(A,vH,e.borderBottomStyle),this.borderLeftStyle=AA(A,IH,e.borderLeftStyle),this.borderTopWidth=AA(A,SH,e.borderTopWidth),this.borderRightWidth=AA(A,TH,e.borderRightWidth),this.borderBottomWidth=AA(A,_H,e.borderBottomWidth),this.borderLeftWidth=AA(A,xH,e.borderLeftWidth),this.boxShadow=AA(A,bk,e.boxShadow),this.color=AA(A,OH,e.color),this.direction=AA(A,LH,e.direction),this.display=AA(A,HH,e.display),this.float=AA(A,DH,e.cssFloat),this.fontFamily=AA(A,pk,e.fontFamily),this.fontSize=AA(A,gk,e.fontSize),this.fontStyle=AA(A,wk,e.fontStyle),this.fontVariant=AA(A,Bk,e.fontVariant),this.fontWeight=AA(A,mk,e.fontWeight),this.letterSpacing=AA(A,NH,e.letterSpacing),this.lineBreak=AA(A,MH,e.lineBreak),this.lineHeight=AA(A,RH,e.lineHeight),this.listStyleImage=AA(A,KH,e.listStyleImage),this.listStylePosition=AA(A,PH,e.listStylePosition),this.listStyleType=AA(A,Ff,e.listStyleType),this.marginTop=AA(A,VH,e.marginTop),this.marginRight=AA(A,GH,e.marginRight),this.marginBottom=AA(A,WH,e.marginBottom),this.marginLeft=AA(A,$H,e.marginLeft),this.opacity=AA(A,fk,e.opacity);var i=AA(A,JH,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=AA(A,XH,e.overflowWrap),this.paddingTop=AA(A,YH,e.paddingTop),this.paddingRight=AA(A,zH,e.paddingRight),this.paddingBottom=AA(A,qH,e.paddingBottom),this.paddingLeft=AA(A,ZH,e.paddingLeft),this.paintOrder=AA(A,Uk,e.paintOrder),this.position=AA(A,Ak,e.position),this.textAlign=AA(A,jH,e.textAlign),this.textDecorationColor=AA(A,dk,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=AA(A,hk,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=AA(A,ek,e.textShadow),this.textTransform=AA(A,tk,e.textTransform),this.transform=AA(A,nk,e.transform),this.transformOrigin=AA(A,ak,e.transformOrigin),this.visibility=AA(A,lk,e.visibility),this.webkitTextStrokeColor=AA(A,vk,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=AA(A,Ik,e.webkitTextStrokeWidth),this.wordBreak=AA(A,ck,e.wordBreak),this.zIndex=AA(A,uk,e.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 Se(this.display,4)||Se(this.display,33554432)||Se(this.display,268435456)||Se(this.display,536870912)||Se(this.display,67108864)||Se(this.display,134217728)},t}(),Tk=function(){function t(A,e){this.content=AA(A,Ck,e.content),this.quotes=AA(A,Fk,e.quotes)}return t}(),Kw=function(){function t(A,e){this.counterIncrement=AA(A,yk,e.counterIncrement),this.counterReset=AA(A,Ek,e.counterReset)}return t}(),AA=function(t,A,e){var n=new dw,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;n.write(r);var i=new hw(n.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,jA(s)?s.value:A.initialValue);case 0:return A.parse(t,i.parseComponentValue());case 1:return A.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return el.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:Pe;case"length-percentage":var c=i.parseComponentValue();return Ue(c)?c:Pe;case"time":return Mw.parse(t,i.parseComponentValue())}break}},_k="data-html2canvas-debug",xk=function(t){var A=t.getAttribute(_k);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},bf=function(t,A){var e=xk(t);return e===1||A===e},In=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,bf(e,3))debugger;this.styles=new Sk(A,window.getComputedStyle(e,null)),Mf(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Ha(this.context,e),bf(e,4)&&(this.flags|=16)}return t}(),Ok="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 Lk=function(t){var A=t.length*.75,e=t.length,n,r=0,i,s,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),f=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;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},Hk=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},kk=function(t){for(var A=t.length,e=[],n=0;n<A;n+=4)e.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return e},di=5,Uf=6+5,vf=2,Dk=Uf-di,Vw=65536>>di,Nk=1<<di,If=Nk-1,Mk=1024>>di,Rk=Vw+Mk,Kk=Rk,Pk=32,Vk=Kk+Pk,Gk=65536>>Uf,Wk=1<<Dk,$k=Wk-1,Gw=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Jk=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Xk=function(t,A){var e=Lk(t),n=Array.isArray(e)?kk(e):new Uint32Array(e),r=Array.isArray(e)?Hk(e):new Uint16Array(e),i=24,s=Gw(r,i/2,n[4]/2),a=n[5]===2?Gw(r,(i+n[4])/2):Jk(n,Math.ceil((i+n[4])/4));return new Yk(n[0],n[1],n[2],n[3],s,a)},Yk=function(){function t(A,e,n,r,i,s){this.initialValue=A,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>di],e=(e<<vf)+(A&If),this.data[e];if(A<=65535)return e=this.index[Vw+(A-55296>>di)],e=(e<<vf)+(A&If),this.data[e];if(A<this.highStart)return e=Vk-Gk+(A>>Uf),e=this.index[e],e+=A>>di&$k,e=this.index[e],e=(e<<vf)+(A&If),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Ww="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zk=typeof Uint8Array>"u"?[]:new Uint8Array(256),dl=0;dl<Ww.length;dl++)zk[Ww.charCodeAt(dl)]=dl;var qk=1,Sf=2,Tf=3,$w=4,Jw=5,Zk=7,Xw=8,_f=9,xf=10,Yw=11,zw=12,qw=13,Zw=14,Of=15,jk=function(t){for(var A=[],e=0,n=t.length;e<n;){var r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},AD=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var n=[],r=-1,i="";++r<e;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},eD=Xk(Ok),Gt="×",Lf="÷",tD=function(t){return eD.get(t)},nD=function(t,A,e){var n=e-2,r=A[n],i=A[e-1],s=A[e];if(i===Sf&&s===Tf)return Gt;if(i===Sf||i===Tf||i===$w||s===Sf||s===Tf||s===$w)return Lf;if(i===Xw&&[Xw,_f,Yw,zw].indexOf(s)!==-1||(i===Yw||i===_f)&&(s===_f||s===xf)||(i===zw||i===xf)&&s===xf||s===qw||s===Jw||s===Zk||i===qk)return Gt;if(i===qw&&s===Zw){for(;r===Jw;)r=A[--n];if(r===Zw)return Gt}if(i===Of&&s===Of){for(var a=0;r===Of;)a++,r=A[--n];if(a%2===0)return Gt}return Lf},rD=function(t){var A=jk(t),e=A.length,n=0,r=0,i=A.map(tD);return{next:function(){if(n>=e)return{done:!0,value:null};for(var s=Gt;n<e&&(s=nD(A,i,++n))===Gt;);if(s!==Gt||n===e){var a=AD.apply(null,A.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},iD=function(t){for(var A=rD(t),e=[],n;!(n=A.next()).done;)n.value&&e.push(n.value.slice());return e},sD=function(t){var A=123;if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=A+"px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===A)return!0}}return!1},oD=function(t){var A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);var e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=A.firstChild,r=ka(n.data).map(function(c){return we(c)}),i=0,s={},a=r.every(function(c,u){e.setStart(n,i),e.setEnd(n,i+c.length);var f=e.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(A),a},aD=function(){return typeof new Image().crossOrigin<"u"},lD=function(){return typeof new XMLHttpRequest().responseType=="string"},cD=function(t){var A=new Image,e=t.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},jw=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},uD=function(t){var A=t.createElement("canvas"),e=100;A.width=e,A.height=e;var n=A.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var r=new Image,i=A.toDataURL();r.src=i;var s=Hf(e,e,0,0,r);return n.fillStyle="red",n.fillRect(0,0,e,e),AC(s).then(function(a){n.drawImage(a,0,0);var c=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=e+"px",jw(c)?AC(Hf(e,e,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),jw(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Hf=function(t,A,e,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",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.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(A,e){var n=new Image;n.onload=function(){return A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Ve={get SUPPORT_RANGE_BOUNDS(){var t=sD(document);return Object.defineProperty(Ve,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Ve.SUPPORT_RANGE_BOUNDS&&oD(document);return Object.defineProperty(Ve,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=cD(document);return Object.defineProperty(Ve,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?uD(document):Promise.resolve(!1);return Object.defineProperty(Ve,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=aD();return Object.defineProperty(Ve,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=lD();return Object.defineProperty(Ve,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ve,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ve,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},ho=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),fD=function(t,A,e,n){var r=pD(A,e),i=[],s=0;return r.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(Ve.SUPPORT_RANGE_BOUNDS){var c=eC(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,eC(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,dD(t,n))),n=p}else Ve.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},dD=function(t,A){var e=A.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(n,A);var i=Ha(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return Wn.EMPTY},eC=function(t,A,e){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,A),r.setEnd(t,A+e),r},kf=function(t){if(Ve.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(function(e){return e.segment})}return iD(t)},hD=function(t,A){if(Ve.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return mD(t,A)},pD=function(t,A){return A.letterSpacing!==0?kf(t):hD(t,A)},gD=[32,160,4961,65792,65793,4153,4241],mD=function(t,A){for(var e=GO(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),a=ka(s),c="";a.forEach(function(u){gD.indexOf(u)===-1?c+=we(u):(c.length&&n.push(c),n.push(we(u)),c="")}),c.length&&n.push(c)}};!(r=e.next()).done;)i();return n},BD=function(){function t(A,e,n){this.text=wD(e.data,n.textTransform),this.textBounds=fD(A,this.text,n,e)}return t}(),wD=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(CD,yD);case 2:return t.toUpperCase();default:return t}},CD=/(^|\s|:|-|\(|\))([a-z])/g,yD=function(t,A,e){return t.length>0?A+e.toUpperCase():t},tC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 A}(In),nC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return A}(In),rC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,s=Ha(e,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 A}(In),iC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(In),Df=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return A}(In),ED=[{type:15,flags:0,unit:"px",number:3}],QD=[{type:16,flags:0,number:50}],FD=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},bD=function(t){var A=t.type===UD?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},hl="checkbox",pl="radio",UD="password",sC=707406591,Nf=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=bD(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=FD(r.bounds)),r.type){case hl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ED;break;case pl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=QD;break}return r}return A}(In),oC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return A}(In),aC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(In),lC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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=uC(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?co(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Jn.TRANSPARENT,s=n.contentWindow.document.body?co(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Jn.TRANSPARENT;r.backgroundColor=Ir(i)?Ir(s)?r.styles.backgroundColor:s:i}}catch{}return r}return A}(In),vD=["OL","UL","MENU"],gl=function(t,A,e,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,fC(r)&&r.data.trim().length>0)e.textNodes.push(new BD(t,r,e.styles));else if(As(r))if(BC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return gl(t,a,e,n)});else{var s=cC(t,r);s.styles.isVisible()&&(ID(r,s,n)?s.flags|=4:SD(s.styles)&&(s.flags|=2),vD.indexOf(r.tagName)!==-1&&(s.flags|=8),e.elements.push(s),r.slot,r.shadowRoot?gl(t,r.shadowRoot,s,n):!Bl(r)&&!dC(r)&&!wl(r)&&gl(t,r,s,n))}},cC=function(t,A){return Kf(A)?new tC(t,A):hC(A)?new nC(t,A):dC(A)?new rC(t,A):TD(A)?new iC(t,A):_D(A)?new Df(t,A):xD(A)?new Nf(t,A):wl(A)?new oC(t,A):Bl(A)?new aC(t,A):gC(A)?new lC(t,A):new In(t,A)},uC=function(t,A){var e=cC(t,A);return e.flags|=4,gl(t,A,e,e),e},ID=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Rf(t)&&e.styles.isTransparent()},SD=function(t){return t.isPositioned()||t.isFloating()},fC=function(t){return t.nodeType===Node.TEXT_NODE},As=function(t){return t.nodeType===Node.ELEMENT_NODE},Mf=function(t){return As(t)&&typeof t.style<"u"&&!ml(t)},ml=function(t){return typeof t.className=="object"},TD=function(t){return t.tagName==="LI"},_D=function(t){return t.tagName==="OL"},xD=function(t){return t.tagName==="INPUT"},OD=function(t){return t.tagName==="HTML"},dC=function(t){return t.tagName==="svg"},Rf=function(t){return t.tagName==="BODY"},hC=function(t){return t.tagName==="CANVAS"},pC=function(t){return t.tagName==="VIDEO"},Kf=function(t){return t.tagName==="IMG"},gC=function(t){return t.tagName==="IFRAME"},mC=function(t){return t.tagName==="STYLE"},LD=function(t){return t.tagName==="SCRIPT"},Bl=function(t){return t.tagName==="TEXTAREA"},wl=function(t){return t.tagName==="SELECT"},BC=function(t){return t.tagName==="SLOT"},wC=function(t){return t.tagName.indexOf("-")>0},HD=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},t.prototype.pop=function(A){var e=this;A.forEach(function(n){return e.counters[n].pop()})},t.prototype.parse=function(A){var e=this,n=A.counterIncrement,r=A.counterReset,i=!0;n!==null&&n.forEach(function(a){var c=e.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=e.counters[a.counter];s.push(a.counter),c||(c=e.counters[a.counter]=[]),c.push(a.reset)}),s},t}(),CC={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"]},yC={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},kD={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},DD={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(t,A,e,n,r,i){return t<A||t>e?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},EC=function(t,A,e,n){var r="";do e||t--,r=n(t)+r,t/=A;while(t*A>=A);return r},Ce=function(t,A,e,n,r){var i=e-A+1;return(t<0?"-":"")+(EC(Math.abs(t),i,n,function(s){return we(Math.floor(s%i)+A)})+r)},hi=function(t,A,e){e===void 0&&(e=". ");var n=A.length;return EC(Math.abs(t),n,!1,function(r){return A[Math.floor(r%n)]})+e},ts=1,Tr=2,_r=4,po=8,Xn=function(t,A,e,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 A[0]+a;for(var c=0;s>0&&c<=4;c++){var u=s%10;u===0&&Se(i,ts)&&a!==""?a=A[u]+a:u>1||u===1&&c===0||u===1&&c===1&&Se(i,Tr)||u===1&&c===1&&Se(i,_r)&&t>100||u===1&&c>1&&Se(i,po)?a=A[u]+(c>0?e[c-1]:"")+a:u===1&&c>0&&(a=e[c-1]+a),s=Math.floor(s/10)}return(t<0?n:"")+a},QC="十百千萬",FC="拾佰仟萬",bC="マイナス",Pf="마이너스",go=function(t,A,e){var n=e?". ":"",r=e?"、":"",i=e?", ":"",s=e?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=Ce(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return hi(t,"〇一二三四五六七八九",r);case 6:return es(t,1,3999,CC,3,n).toLowerCase();case 7:return es(t,1,3999,CC,3,n);case 8:return Ce(t,945,969,!1,n);case 9:return Ce(t,97,122,!1,n);case 10:return Ce(t,65,90,!1,n);case 11:return Ce(t,1632,1641,!0,n);case 12:case 49:return es(t,1,9999,yC,3,n);case 35:return es(t,1,9999,yC,3,n).toLowerCase();case 13:return Ce(t,2534,2543,!0,n);case 14:case 30:return Ce(t,6112,6121,!0,n);case 15:return hi(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return hi(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Xn(t,"零一二三四五六七八九",QC,"負",r,Tr|_r|po);case 47:return Xn(t,"零壹貳參肆伍陸柒捌玖",FC,"負",r,ts|Tr|_r|po);case 42:return Xn(t,"零一二三四五六七八九",QC,"负",r,Tr|_r|po);case 41:return Xn(t,"零壹贰叁肆伍陆柒捌玖",FC,"负",r,ts|Tr|_r|po);case 26:return Xn(t,"〇一二三四五六七八九","十百千万",bC,r,0);case 25:return Xn(t,"零壱弐参四伍六七八九","拾百千万",bC,r,ts|Tr|_r);case 31:return Xn(t,"영일이삼사오육칠팔구","십백천만",Pf,i,ts|Tr|_r);case 33:return Xn(t,"零一二三四五六七八九","十百千萬",Pf,i,0);case 32:return Xn(t,"零壹貳參四五六七八九","拾百千",Pf,i,ts|Tr|_r);case 18:return Ce(t,2406,2415,!0,n);case 20:return es(t,1,19999,DD,3,n);case 21:return Ce(t,2790,2799,!0,n);case 22:return Ce(t,2662,2671,!0,n);case 22:return es(t,1,10999,kD,3,n);case 23:return hi(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return hi(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ce(t,3302,3311,!0,n);case 28:return hi(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return hi(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Ce(t,3792,3801,!0,n);case 37:return Ce(t,6160,6169,!0,n);case 38:return Ce(t,4160,4169,!0,n);case 39:return Ce(t,2918,2927,!0,n);case 40:return Ce(t,1776,1785,!0,n);case 43:return Ce(t,3046,3055,!0,n);case 44:return Ce(t,3174,3183,!0,n);case 45:return Ce(t,3664,3673,!0,n);case 46:return Ce(t,3872,3881,!0,n);case 3:default:return Ce(t,48,57,!0,n)}},UC="data-html2canvas-ignore",vC=function(){function t(A,e,n){if(this.context=A,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new HD,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(A,e){var n=this,r=ND(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=r.contentWindow,c=a.document,u=KD(r).then(function(){return lt(n,void 0,void 0,function(){var f,p;return Ze(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(WD),a&&(a.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==e.top||a.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.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,RD(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(VD(document.doctype)+"<html></html>"),GD(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(A){if(bf(A,2))debugger;if(hC(A))return this.createCanvasClone(A);if(pC(A))return this.createVideoClone(A);if(mC(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Kf(e)&&(Kf(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),wC(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Vf(A.style,e),e},t.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=A.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 A.cloneNode(!1)},t.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var n=A.ownerDocument.createElement("img");try{return n.src=A.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var i=A.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var a=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.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",A)}s.drawImage(A,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},t.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},t.prototype.appendChildNode=function(A,e,n){(!As(e)||!LD(e)&&!e.hasAttribute(UC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!As(e)||!mC(e))&&A.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(A,e,n){for(var r=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(As(i)&&BC(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return r.appendChildNode(e,a,n)})}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(A,e){if(fC(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var n=A.ownerDocument.defaultView;if(n&&As(A)&&(Mf(A)||ml(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var i=n.getComputedStyle(A),s=n.getComputedStyle(A,":before"),a=n.getComputedStyle(A,":after");this.referenceElement===A&&Mf(r)&&(this.clonedReferenceElement=r),Rf(r)&&XD(r);var c=this.counters.parse(new Kw(this.context,i)),u=this.resolvePseudoContent(A,r,s,mo.BEFORE);wC(A)&&(e=!0),pC(A)||this.cloneChildNodes(A,r,e),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(A,r,a,mo.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||ml(A))&&!gC(A)||e)&&Vf(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Bl(A)||wl(A))&&(Bl(r)||wl(r))&&(r.value=A.value),r}return A.cloneNode(!1)},t.prototype.resolvePseudoContent=function(A,e,n,r){var i=this;if(n){var s=n.content,a=e.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Kw(this.context,n));var c=new Tk(this.context,n),u=a.createElement("html2canvaspseudoelement");Vf(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(jA);B.length&&u.appendChild(a.createTextNode(A.getAttribute(B[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(Zi),Q=w[0],b=w[1];if(Q&&jA(Q)){var v=i.counters.getCounterValue(Q.value),_=b&&jA(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&&jA(Q)){var L=i.counters.getCounterValues(Q.value),U=b&&jA(b)?Ff.parse(i.context,b.value):3,D=E&&E.type===0?E.value:"",P=L.map(function(BA){return go(BA,U,!1)}).join(D);u.appendChild(a.createTextNode(P))}}}else if(p.type===20)switch(p.value){case"open-quote":u.appendChild(a.createTextNode(Rw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Rw(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(e)?e.className.baseValue+=f:e.className+=f,u}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),mo;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(mo||(mo={}));var ND=function(t,A){var e=t.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(UC,"true"),t.body.appendChild(e),e},MD=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},RD=function(t){return Promise.all([].slice.call(t.images,0).map(MD))},KD=function(t){return new Promise(function(A,e){var n=t.contentWindow;if(!n)return e("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),A(t))},50)}})},PD=["all","d","content"],Vf=function(t,A){for(var e=t.length-1;e>=0;e--){var n=t.item(e);PD.indexOf(n)===-1&&A.style.setProperty(n,t.getPropertyValue(n))}return A},VD=function(t){var A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=t.internalSubset),t.publicId&&(A+='"'+t.publicId+'"'),t.systemId&&(A+='"'+t.systemId+'"'),A+=">"),A},GD=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},WD=function(t){var A=t[0],e=t[1],n=t[2];A.scrollLeft=e,A.scrollTop=n},$D=":before",JD=":after",Gf="___html2canvas___pseudoelement_before",Wf="___html2canvas___pseudoelement_after",IC=`{
179
+ ***************************************************************************** */var Zu=function(t,A){return Zu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])},Zu(t,A)};function ln(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Zu(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var ju=function(){return ju=Object.assign||function(A){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},ju.apply(this,arguments)};function lt(t,A,e,n){function r(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=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,A||[])).next())})}function Ze(t,A){var e={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(;e;)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 e.label++,{value:u[1],done:!1};case 5:e.label++,r=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=A.call(t,e)}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,A,e){if(e||arguments.length===2)for(var n=0,r=A.length,i;n<r;n++)(i||!(n in A))&&(i||(i=Array.prototype.slice.call(A,0,n)),i[n]=A[n]);return t.concat(i||A)}for(var Wn=function(){function t(A,e,n,r){this.left=A,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(A,e,n,r){return new t(this.left+A,this.top+e,this.width+n,this.height+r)},t.fromClientRect=function(A,e){return new t(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},t.fromDOMRectList=function(A,e){var n=Array.from(e).find(function(r){return r.width!==0});return n?new t(n.left+A.windowBounds.left,n.top+A.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ha=function(t,A){return Wn.fromClientRect(t,A.getBoundingClientRect())},fO=function(t){var A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");var n=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),r=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new Wn(0,0,n,r)},ka=function(t){for(var A=[],e=0,n=t.length;e<n;){var r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},we=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var n=[],r=-1,i="";++r<e;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},NB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Da=0;Da<NB.length;Da++)dO[NB.charCodeAt(Da)]=Da;for(var MB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Na=0;Na<MB.length;Na++)zs[MB.charCodeAt(Na)]=Na;for(var hO=function(t){var A=t.length*.75,e=t.length,n,r=0,i,s,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),f=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;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 A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},gO=function(t){for(var A=t.length,e=[],n=0;n<A;n+=4)e.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return e},ci=5,Af=6+5,ef=2,mO=Af-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>>Af,bO=1<<mO,UO=bO-1,KB=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},vO=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},IO=function(t,A){var e=hO(t),n=Array.isArray(e)?gO(e):new Uint32Array(e),r=Array.isArray(e)?pO(e):new Uint16Array(e),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(A,e,n,r,i,s){this.initialValue=A,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>ci],e=(e<<ef)+(A&tf),this.data[e];if(A<=65535)return e=this.index[RB+(A-55296>>ci)],e=(e<<ef)+(A&tf),this.data[e];if(A<this.highStart)return e=QO-FO+(A>>Af),e=this.index[e],e+=A>>ci&UO,e=this.index[e],e=(e<<ef)+(A&tf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),PB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",TO=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ma=0;Ma<PB.length;Ma++)TO[PB.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==",VB=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,Ao=26,eo=27,Yi=28,DO=29,ui=30,NO=31,Ka=32,Pa=33,lf=34,cf=35,uf=36,to=37,ff=38,Va=39,Ga=40,df=41,qB=42,MO=43,RO=[9001,65288],ZB="!",xA="×",Wa="÷",hf=IO(_O),$n=[ui,uf],pf=[xO,GB,WB,LO],jB=[Qr,JB],Aw=[eo,Ao],KO=pf.concat(jB),ew=[ff,Va,Ga,lf,cf],PO=[qs,rf],VO=function(t,A){A===void 0&&(A="strict");var e=[],n=[],r=[];return t.forEach(function(i,s){var a=hf.get(i);if(a>VB?(r.push(!0),a-=VB):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),e.push(sf);if(a===OO||a===nf){if(s===0)return n.push(s),e.push(ui);var c=e[s-1];return KO.indexOf(c)===-1?(n.push(n[s-1]),e.push(c)):(n.push(s),e.push(ui))}if(n.push(s),a===NO)return e.push(A==="strict"?of:to);if(a===qB||a===DO)return e.push(ui);if(a===MO)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(to):e.push(ui);e.push(a)}),[n,e,r]},gf=function(t,A,e,n){var r=n[e];if(Array.isArray(t)?t.indexOf(r)!==-1:t===r)for(var i=e;i<=n.length;){i++;var s=n[i];if(s===A)return!0;if(s!==Qr)break}if(r===Qr)for(var i=e;i>0;){i--;var a=n[i];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=e;c<=n.length;){c++;var s=n[c];if(s===A)return!0;if(s!==Qr)break}if(a!==Qr)break}return!1},tw=function(t,A){for(var e=t;e>=0;){var n=A[e];if(n===Qr)e--;else return n}return 0},GO=function(t,A,e,n,r){if(e[n]===0)return xA;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return xA;var s=i-1,a=i+1,c=A[i],u=s>=0?A[s]:0,f=A[a];if(c===GB&&f===WB)return xA;if(pf.indexOf(c)!==-1)return ZB;if(pf.indexOf(f)!==-1||jB.indexOf(f)!==-1)return xA;if(tw(i,A)===JB)return Wa;if(hf.get(t[i])===nf||(c===Ka||c===Pa)&&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,A)===js||gf(af,js,i,A)||gf([Ra,Zs],of,i,A)||gf(YB,YB,i,A))return xA;if(c===Qr)return Wa;if(c===af||f===af)return xA;if(f===sf||c===sf)return Wa;if([rf,qs,of].indexOf(f)!==-1||c===HO||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===eo&&[to,Ka,Pa].indexOf(f)!==-1||[to,Ka,Pa].indexOf(c)!==-1&&f===Ao||$n.indexOf(c)!==-1&&Aw.indexOf(f)!==-1||Aw.indexOf(c)!==-1&&$n.indexOf(f)!==-1||[eo,Ao].indexOf(c)!==-1&&(f===Tt||[js,qs].indexOf(f)!==-1&&A[a+1]===Tt)||[js,qs].indexOf(c)!==-1&&f===Tt||c===Tt&&[Tt,Yi,Xi].indexOf(f)!==-1)return xA;if([Tt,Yi,Xi,Ra,Zs].indexOf(f)!==-1)for(var p=i;p>=0;){var g=A[p];if(g===Tt)return xA;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if([eo,Ao].indexOf(f)!==-1)for(var p=[Ra,Zs].indexOf(c)!==-1?s:i;p>=0;){var g=A[p];if(g===Tt)return xA;if([Yi,Xi].indexOf(g)!==-1)p--;else break}if(ff===c&&[ff,Va,lf,cf].indexOf(f)!==-1||[Va,lf].indexOf(c)!==-1&&[Va,Ga].indexOf(f)!==-1||[Ga,cf].indexOf(c)!==-1&&f===Ga||ew.indexOf(c)!==-1&&[zB,Ao].indexOf(f)!==-1||ew.indexOf(f)!==-1&&c===eo||$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 xA;if(c===df&&f===df){for(var B=e[i],w=1;B>0&&(B--,A[B]===df);)w++;if(w%2!==0)return xA}return c===Ka&&f===Pa?xA:Wa},WO=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=VO(t,A.lineBreak),n=e[0],r=e[1],i=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(r=r.map(function(a){return[Tt,ui,qB].indexOf(a)!==-1?to:a}));var s=A.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(A,e,n,r){this.codePoints=A,this.required=e===ZB,this.start=n,this.end=r}return t.prototype.slice=function(){return we.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),JO=function(t,A){var e=ka(t),n=WO(e,A),r=n[0],i=n[1],s=n[2],a=e.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var f=xA;u<a&&(f=GO(e,i,r,++u,s))===xA;);if(f!==xA||u===a){var p=new $O(e,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,AL=37,Xa=39,Ya=40,so=41,eL=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,je=function(t){return t>=ow&&t<=57},vL=function(t){return t>=55296&&t<=57343},zi=function(t){return je(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===eL},dw=function(t){return Za(t)||je(t)||t===wt},xL=function(t){return t>=gL&&t<=mL||t===BL||t>=wL&&t<=CL||t===yL},Fr=function(t,A){return t!==ro?!1:A!==$a},ja=function(t,A,e){return t===wt?Za(A)||Fr(A,e):Za(t)?!0:!!(t===ro&&Fr(t,A))},Bf=function(t,A,e){return t===fi||t===wt?je(A)?!0:A===oo&&je(e):je(t===oo?A:t)},OL=function(t){var A=0,e=1;(t[A]===fi||t[A]===wt)&&(t[A]===wt&&(e=-1),A++);for(var n=[];je(t[A]);)n.push(t[A++]);var r=n.length?parseInt(we.apply(void 0,n),10):0;t[A]===oo&&A++;for(var i=[];je(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(we.apply(void 0,i),10):0;(t[A]===uw||t[A]===lw)&&A++;var c=1;(t[A]===fi||t[A]===wt)&&(t[A]===wt&&(c=-1),A++);for(var u=[];je(t[A]);)u.push(t[A++]);var f=u.length?parseInt(we.apply(void 0,u),10):0;return e*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},LL={type:2},HL={type:3},kL={type:4},DL={type:13},NL={type:8},ML={type:21},RL={type:9},KL={type:10},PL={type:11},VL={type:12},GL={type:14},Al={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(A){this._value=this._value.concat(ka(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==wf;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Ja:return this.consumeStringToken(Ja);case ZO:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(dw(e)||Fr(n,r)){var i=ja(e,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(),DL;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(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case dL:return kL;case wt:var a=A,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Bf(a,c,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(ja(a,c,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===wt&&u===rL)return this.consumeCodePoint(),this.consumeCodePoint(),JL;break;case oo:if(Bf(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),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(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case oL:return qL;case aL:if(this.peekCodePoint(0)===io)return this.consumeCodePoint(),NL;break;case lL:return PL;case cL:return VL;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(A),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(A)?(this.consumeWhiteSpace(),ZL):je(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Za(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:we(A)}},t.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},t.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},t.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},t.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();zi(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var n=!1;e===za&&A.length<6;)A.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(we.apply(void 0,A.map(function(c){return c===za?ow:c})),16),i=parseInt(we.apply(void 0,A.map(function(c){return c===za?fw:c})),16);return{type:30,start:r,end:i}}var s=parseInt(we.apply(void 0,A),16);if(this.peekCodePoint(0)===wt&&zi(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];zi(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(we.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 A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ya?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Un)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Xa||e===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(),Al)}for(;;){var r=this.consumeCodePoint();if(r===Un||r===so)return{type:22,value:we.apply(void 0,A)};if(qa(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Un||this.peekCodePoint(0)===so?(this.consumeCodePoint(),{type:22,value:we.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Al);if(r===Ja||r===Xa||r===Ya||xL(r))return this.consumeBadUrlRemnants(),Al;if(r===ro)if(Fr(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Al;else A.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;qa(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===so||A===Un)return;Fr(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(A){for(var e=5e4,n="";A>0;){var r=Math.min(e,A);n+=we.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(A){var e="",n=0;do{var r=this._value[n];if(r===Un||r===void 0||r===A)return e+=this.consumeStringSlice(n),{type:0,value:e};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?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Fr(r,i)&&(e+=this.consumeStringSlice(n),e+=we(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=no,n=this.peekCodePoint(0);for((n===fi||n===wt)&&A.push(this.consumeCodePoint());je(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===oo&&je(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=nw;je(this.peekCodePoint(0));)A.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)&&je(i)||je(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=nw;je(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[OL(A),e]},t.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],n=A[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:e,flags:n,unit:a}}return r===AL?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(zi(A)){for(var e=we(A);zi(this.peekCodePoint(0))&&e.length<6;)e+=we(this.consumeCodePoint());qa(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||vL(n)||n>1114111?sw:n}return A===Un?sw:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(dw(e))A+=we(e);else if(Fr(e,this.peekCodePoint(0)))A+=we(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),pw=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new hw;return e.write(A),new t(e.read())},t.parseValue=function(A){return t.create(A).parseComponentValue()},t.parseValues=function(A){return t.create(A).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},t.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},t.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},n=this.consumeToken();;){if(n.type===32||AH(n,A))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?wf:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),ao=function(t){return t.type===15},qi=function(t){return t.type===17},jA=function(t){return t.type===20},jL=function(t){return t.type===0},Cf=function(t,A){return jA(t)&&t.value===A},gw=function(t){return t.type!==31},Zi=function(t){return t.type!==31&&t.type!==4},vn=function(t){var A=[],e=[];return t.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&A.push(e),A},AH=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},br=function(t){return t.type===17||t.type===15},Ue=function(t){return t.type===16||br(t)},mw=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Pe={type:17,number:0,flags:no},yf={type:16,number:50,flags:no},Ur={type:16,number:100,flags:no},lo=function(t,A,e){var n=t[0],r=t[1];return[se(n,A),se(typeof r<"u"?r:n,e)]},se=function(t,A){if(t.type===16)return t.number/100*A;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",el={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case Bw:return Math.PI*A.number/180;case ww:return Math.PI/200*A.number;case Cw:return A.number;case yw:return Math.PI*2*A.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 A=t.filter(jA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Pe,Pe];case"to top":case"bottom":return Vt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Pe,Ur];case"to right":case"left":return Vt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ur,Ur];case"to bottom":case"top":return Vt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ur,Pe];case"to left":case"right":return Vt(270)}return 0},Vt=function(t){return Math.PI*t/180},vr={name:"color",parse:function(t,A){if(A.type===18){var e=eH[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(t,A.values)}if(A.type===5){if(A.value.length===3){var n=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(A.value.length===4){var n=A.value.substring(0,1),r=A.value.substring(1,2),i=A.value.substring(2,3),s=A.value.substring(3,4);return Sr(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(A.value.length===6){var n=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(A.value.length===8){var n=A.value.substring(0,2),r=A.value.substring(2,4),i=A.value.substring(4,6),s=A.value.substring(6,8);return Sr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Jn[A.value.toUpperCase()];if(typeof a<"u")return a}return Jn.TRANSPARENT}},Ir=function(t){return(255&t)===0},De=function(t){var A=255&t,e=255&t>>8,n=255&t>>16,r=255&t>>24;return A<255?"rgba("+r+","+n+","+e+","+A/255+")":"rgb("+r+","+n+","+e+")"},Sr=function(t,A,e,n){return(t<<24|A<<16|e<<8|Math.round(n*255)<<0)>>>0},Fw=function(t,A){if(t.type===17)return t.number;if(t.type===16){var e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},bw=function(t,A){var e=A.filter(Zi);if(e.length===3){var n=e.map(Fw),r=n[0],i=n[1],s=n[2];return Sr(r,i,s,1)}if(e.length===4){var a=e.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,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t}var Uw=function(t,A){var e=A.filter(Zi),n=e[0],r=e[1],i=e[2],s=e[3],a=(n.type===17?Vt(n.number):el.parse(t,n))/(Math.PI*2),c=Ue(r)?r.number/100:0,u=Ue(i)?i.number/100:0,f=typeof s<"u"&&Ue(s)?se(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)},eH={hsl:Uw,hsla:Uw,rgb:bw,rgba:bw},co=function(t,A){return vr.parse(t,pw.create(A).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,A){return A.map(function(e){if(jA(e))switch(e.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,A){var e=vr.parse(t,A[0]),n=A[1];return n&&Ue(n)?{color:e,stop:n}:{color:e,stop:null}},vw=function(t,A){var e=t[0],n=t[t.length-1];e.stop===null&&(e.stop=Pe),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=se(a,A);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]/A),0)}})},rH=function(t,A,e){var n=A/2,r=e/2,i=se(t[0],A)-n,s=r-se(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},iH=function(t,A,e){var n=typeof t=="number"?t:rH(t,A,e),r=Math.abs(A*Math.sin(n))+Math.abs(e*Math.cos(n)),i=A/2,s=e/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,A){return Math.sqrt(t*t+A*A)},Iw=function(t,A,e,n,r){var i=[[0,0],[0,A],[t,0],[t,A]];return i.reduce(function(s,a){var c=a[0],u=a[1],f=cn(e-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,A,e,n,r){var i=0,s=0;switch(t.size){case 0:t.shape===0?i=s=Math.min(Math.abs(A),Math.abs(A-n),Math.abs(e),Math.abs(e-r)):t.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-n)),s=Math.min(Math.abs(e),Math.abs(e-r)));break;case 2:if(t.shape===0)i=s=Math.min(cn(A,e),cn(A,e-r),cn(A-n,e),cn(A-n,e-r));else if(t.shape===1){var a=Math.min(Math.abs(e),Math.abs(e-r))/Math.min(Math.abs(A),Math.abs(A-n)),c=Iw(n,r,A,e,!0),u=c[0],f=c[1];i=cn(u-A,(f-e)/a),s=a*i}break;case 1:t.shape===0?i=s=Math.max(Math.abs(A),Math.abs(A-n),Math.abs(e),Math.abs(e-r)):t.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-n)),s=Math.max(Math.abs(e),Math.abs(e-r)));break;case 3:if(t.shape===0)i=s=Math.max(cn(A,e),cn(A,e-r),cn(A-n,e),cn(A-n,e-r));else if(t.shape===1){var a=Math.max(Math.abs(e),Math.abs(e-r))/Math.max(Math.abs(A),Math.abs(A-n)),p=Iw(n,r,A,e,!1),u=p[0],f=p[1];i=cn(u-A,(f-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=se(t.size[0],n),s=t.size.length===2?se(t.size[1],r):i),[i,s]},oH=function(t,A){var e=Vt(180),n=[];return vn(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){e=Qw(r);return}else if(Ew(s)){e=el.parse(t,s);return}}var a=tl(t,r);n.push(a)}),{angle:e,stops:n,type:1}},nl=function(t,A){var e=Vt(180),n=[];return vn(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){e=Qw(r);return}else if(Ew(s)){e=(el.parse(t,s)+Vt(270))%Vt(360);return}}var a=tl(t,r);n.push(a)}),{angle:e,stops:n,type:1}},aH=function(t,A){var e=Vt(180),n=[],r=1,i=0,s=3,a=[];return vn(A).forEach(function(c,u){var f=c[0];if(u===0){if(jA(f)&&f.value==="linear"){r=1;return}else if(jA(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:Pe,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:(e+Vt(180))%Vt(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,A){var e=0,n=3,r=[],i=[];return vn(A).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,g){if(u)if(jA(g))switch(g.value){case"center":return i.push(yf),p;case"top":case"left":return i.push(Pe),p;case"right":case"bottom":return i.push(Ur),p}else(Ue(g)||br(g))&&i.push(g);else if(jA(g))switch(g.value){case Ow:return e=0,!1;case Lw:return e=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)||Ue(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:e,stops:r,position:i,type:2}},rl=function(t,A){var e=0,n=3,r=[],i=[];return vn(A).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(f,p){if(jA(p))switch(p.value){case"center":return i.push(yf),!1;case"top":case"left":return i.push(Pe),!1;case"right":case"bottom":return i.push(Ur),!1}else if(Ue(p)||br(p))return i.push(p),!1;return f},c):a===1&&(c=s.reduce(function(f,p){if(jA(p))switch(p.value){case Ow:return e=0,!1;case Lw:return e=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)||Ue(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:e,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,A){if(A.type===22){var e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){var n=Dw[A.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return n(t,A.values)}throw new Error("Unsupported image type "+A.type)}};function fH(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Dw[t.name])}var Dw={"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,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.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,A){return A.map(function(e){if(jA(e))switch(e.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,A){return vn(A).map(function(e){return e.filter(Ue)}).map(mw)}},gH={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(jA).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,A){return vn(A).map(function(e){return e.filter(wH)})}},wH=function(t){return jA(t)||Ue(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(A,e){return mw(e.filter(Ue))}}},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(A,e){switch(e){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(A,e){return ao(e)?e.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"},DH={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},NH={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(jA).reduce(function(e,n){return e|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,A){switch(A){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,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.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,A){switch(A){case"strict":return ll.STRICT;case"normal":default:return ll.NORMAL}}},VH={name:"line-height",initialValue:"normal",prefix:!1,type:4},Nw=function(t,A){return jA(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:Ue(t)?se(t,A):A},GH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:Qf.parse(t,A)}},WH={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Ff={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){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,A){return A.filter(jA).map(function(e){switch(e.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,A){switch(A){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"),Ak=ul("bottom"),ek=ul("left"),tk={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,A){switch(A){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,A){switch(A){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,A){return A.length===1&&Cf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:Jn.TRANSPARENT,offsetX:Pe,offsetY:Pe,blur:Pe},r=0,i=0;i<e.length;i++){var s=e[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,A){switch(A){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,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=lk[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},ok=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},ak=function(t){var A=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),e=A[0],n=A[1];A[2],A[3];var r=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],a=A[13];return A[14],A[15],A.length===16?[e,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,A){var e=A.filter(Ue);return e.length!==2?ck:[e[0],e[1]]}},fk={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,A){switch(A){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,A){switch(A){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,A){if(A.type===20)return{auto:!0,order:0};if(qi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Rw={name:"time",parse:function(t,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},pk={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return qi(A)?A.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,A){return A.filter(jA).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},Bk={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,A){var e=[],n=[];return A.forEach(function(r){switch(r.type){case 20:case 0:e.push(r.value);break;case 17:e.push(r.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.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,A){if(qi(A))return A.number;if(jA(A))switch(A.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,A){return A.filter(jA).map(function(e){return e.value})}},Ek={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Se=function(t,A){return(t&A)!==0},Qk={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},Fk={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var n=[],r=A.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,A){if(A.length===0)return[];for(var e=[],n=A.filter(gw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(jA(i)&&i.value!=="none"){var a=s&&qi(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},Uk={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(ao).map(function(e){return Rw.parse(t,e)})}},vk={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var n=[],r=A.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,A,e){if(!t)return"";var n=t[Math.min(A,t.length-1)];return n?e?n.open:n.close:""},Ik={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&Cf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:255,offsetX:Pe,offsetY:Pe,blur:Pe,spread:Pe,inset:!1},r=0,i=0;i<e.length;i++){var s=e[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,A){var e=[0,1,2],n=[];return A.filter(jA).forEach(function(r){switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),e.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,A){return ao(A)?A.number:0}},xk=function(){function t(A,e){var n,r;this.animationDuration=AA(A,Uk,e.animationDuration),this.backgroundClip=AA(A,tH,e.backgroundClip),this.backgroundColor=AA(A,nH,e.backgroundColor),this.backgroundImage=AA(A,dH,e.backgroundImage),this.backgroundOrigin=AA(A,hH,e.backgroundOrigin),this.backgroundPosition=AA(A,pH,e.backgroundPosition),this.backgroundRepeat=AA(A,gH,e.backgroundRepeat),this.backgroundSize=AA(A,BH,e.backgroundSize),this.borderTopColor=AA(A,CH,e.borderTopColor),this.borderRightColor=AA(A,yH,e.borderRightColor),this.borderBottomColor=AA(A,EH,e.borderBottomColor),this.borderLeftColor=AA(A,QH,e.borderLeftColor),this.borderTopLeftRadius=AA(A,FH,e.borderTopLeftRadius),this.borderTopRightRadius=AA(A,bH,e.borderTopRightRadius),this.borderBottomRightRadius=AA(A,UH,e.borderBottomRightRadius),this.borderBottomLeftRadius=AA(A,vH,e.borderBottomLeftRadius),this.borderTopStyle=AA(A,IH,e.borderTopStyle),this.borderRightStyle=AA(A,SH,e.borderRightStyle),this.borderBottomStyle=AA(A,TH,e.borderBottomStyle),this.borderLeftStyle=AA(A,_H,e.borderLeftStyle),this.borderTopWidth=AA(A,xH,e.borderTopWidth),this.borderRightWidth=AA(A,OH,e.borderRightWidth),this.borderBottomWidth=AA(A,LH,e.borderBottomWidth),this.borderLeftWidth=AA(A,HH,e.borderLeftWidth),this.boxShadow=AA(A,Ik,e.boxShadow),this.color=AA(A,kH,e.color),this.direction=AA(A,DH,e.direction),this.display=AA(A,NH,e.display),this.float=AA(A,RH,e.cssFloat),this.fontFamily=AA(A,Bk,e.fontFamily),this.fontSize=AA(A,wk,e.fontSize),this.fontStyle=AA(A,Ek,e.fontStyle),this.fontVariant=AA(A,yk,e.fontVariant),this.fontWeight=AA(A,Ck,e.fontWeight),this.letterSpacing=AA(A,KH,e.letterSpacing),this.lineBreak=AA(A,PH,e.lineBreak),this.lineHeight=AA(A,VH,e.lineHeight),this.listStyleImage=AA(A,GH,e.listStyleImage),this.listStylePosition=AA(A,WH,e.listStylePosition),this.listStyleType=AA(A,Ff,e.listStyleType),this.marginTop=AA(A,$H,e.marginTop),this.marginRight=AA(A,JH,e.marginRight),this.marginBottom=AA(A,XH,e.marginBottom),this.marginLeft=AA(A,YH,e.marginLeft),this.opacity=AA(A,pk,e.opacity);var i=AA(A,zH,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=AA(A,qH,e.overflowWrap),this.paddingTop=AA(A,ZH,e.paddingTop),this.paddingRight=AA(A,jH,e.paddingRight),this.paddingBottom=AA(A,Ak,e.paddingBottom),this.paddingLeft=AA(A,ek,e.paddingLeft),this.paintOrder=AA(A,Sk,e.paintOrder),this.position=AA(A,nk,e.position),this.textAlign=AA(A,tk,e.textAlign),this.textDecorationColor=AA(A,gk,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=AA(A,mk,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=AA(A,rk,e.textShadow),this.textTransform=AA(A,ik,e.textTransform),this.transform=AA(A,sk,e.transform),this.transformOrigin=AA(A,uk,e.transformOrigin),this.visibility=AA(A,fk,e.visibility),this.webkitTextStrokeColor=AA(A,Tk,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=AA(A,_k,e.webkitTextStrokeWidth),this.wordBreak=AA(A,dk,e.wordBreak),this.zIndex=AA(A,hk,e.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 Se(this.display,4)||Se(this.display,33554432)||Se(this.display,268435456)||Se(this.display,536870912)||Se(this.display,67108864)||Se(this.display,134217728)},t}(),Ok=function(){function t(A,e){this.content=AA(A,Qk,e.content),this.quotes=AA(A,vk,e.quotes)}return t}(),Pw=function(){function t(A,e){this.counterIncrement=AA(A,Fk,e.counterIncrement),this.counterReset=AA(A,bk,e.counterReset)}return t}(),AA=function(t,A,e){var n=new hw,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;n.write(r);var i=new pw(n.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,jA(s)?s.value:A.initialValue);case 0:return A.parse(t,i.parseComponentValue());case 1:return A.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return el.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:Pe;case"length-percentage":var c=i.parseComponentValue();return Ue(c)?c:Pe;case"time":return Rw.parse(t,i.parseComponentValue())}break}},Lk="data-html2canvas-debug",Hk=function(t){var A=t.getAttribute(Lk);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},bf=function(t,A){var e=Hk(t);return e===1||A===e},In=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,bf(e,3))debugger;this.styles=new xk(A,window.getComputedStyle(e,null)),Mf(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Ha(this.context,e),bf(e,4)&&(this.flags|=16)}return t}(),kk="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Vw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fo=typeof Uint8Array>"u"?[]:new Uint8Array(256),fl=0;fl<Vw.length;fl++)fo[Vw.charCodeAt(fl)]=fl;for(var Dk=function(t){var A=t.length*.75,e=t.length,n,r=0,i,s,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),f=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;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},Nk=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},Mk=function(t){for(var A=t.length,e=[],n=0;n<A;n+=4)e.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return e},di=5,Uf=6+5,vf=2,Rk=Uf-di,Gw=65536>>di,Kk=1<<di,If=Kk-1,Pk=1024>>di,Vk=Gw+Pk,Gk=Vk,Wk=32,$k=Gk+Wk,Jk=65536>>Uf,Xk=1<<Rk,Yk=Xk-1,Ww=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},zk=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},qk=function(t,A){var e=Dk(t),n=Array.isArray(e)?Mk(e):new Uint32Array(e),r=Array.isArray(e)?Nk(e):new Uint16Array(e),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(A,e,n,r,i,s){this.initialValue=A,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>di],e=(e<<vf)+(A&If),this.data[e];if(A<=65535)return e=this.index[Gw+(A-55296>>di)],e=(e<<vf)+(A&If),this.data[e];if(A<this.highStart)return e=$k-Jk+(A>>Uf),e=this.index[e],e+=A>>di&Yk,e=this.index[e],e=(e<<vf)+(A&If),this.data[e];if(A<=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 AD=1,Sf=2,Tf=3,Jw=4,Xw=5,eD=7,Yw=8,_f=9,xf=10,zw=11,qw=12,Zw=13,jw=14,Of=15,tD=function(t){for(var A=[],e=0,n=t.length;e<n;){var r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((r&1023)<<10)+(i&1023)+65536):(A.push(r),e--)}else A.push(r)}return A},nD=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var n=[],r=-1,i="";++r<e;){var s=t[r];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(r+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},rD=qk(kk),Gt="×",Lf="÷",iD=function(t){return rD.get(t)},sD=function(t,A,e){var n=e-2,r=A[n],i=A[e-1],s=A[e];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===eD||i===AD)return Gt;if(i===Zw&&s===jw){for(;r===Xw;)r=A[--n];if(r===jw)return Gt}if(i===Of&&s===Of){for(var a=0;r===Of;)a++,r=A[--n];if(a%2===0)return Gt}return Lf},oD=function(t){var A=tD(t),e=A.length,n=0,r=0,i=A.map(iD);return{next:function(){if(n>=e)return{done:!0,value:null};for(var s=Gt;n<e&&(s=sD(A,i,++n))===Gt;);if(s!==Gt||n===e){var a=nD.apply(null,A.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},aD=function(t){for(var A=oD(t),e=[],n;!(n=A.next()).done;)n.value&&e.push(n.value.slice());return e},lD=function(t){var A=123;if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=A+"px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),i===A)return!0}}return!1},cD=function(t){var A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);var e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=A.firstChild,r=ka(n.data).map(function(c){return we(c)}),i=0,s={},a=r.every(function(c,u){e.setStart(n,i),e.setEnd(n,i+c.length);var f=e.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(A),a},uD=function(){return typeof new Image().crossOrigin<"u"},fD=function(){return typeof new XMLHttpRequest().responseType=="string"},dD=function(t){var A=new Image,e=t.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},AC=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},hD=function(t){var A=t.createElement("canvas"),e=100;A.width=e,A.height=e;var n=A.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var r=new Image,i=A.toDataURL();r.src=i;var s=Hf(e,e,0,0,r);return n.fillStyle="red",n.fillRect(0,0,e,e),eC(s).then(function(a){n.drawImage(a,0,0);var c=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var u=t.createElement("div");return u.style.backgroundImage="url("+i+")",u.style.height=e+"px",AC(c)?eC(Hf(e,e,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),AC(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Hf=function(t,A,e,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",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(r),s},eC=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){return A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Ve={get SUPPORT_RANGE_BOUNDS(){var t=lD(document);return Object.defineProperty(Ve,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Ve.SUPPORT_RANGE_BOUNDS&&cD(document);return Object.defineProperty(Ve,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=dD(document);return Object.defineProperty(Ve,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?hD(document):Promise.resolve(!1);return Object.defineProperty(Ve,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=uD();return Object.defineProperty(Ve,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=fD();return Object.defineProperty(Ve,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ve,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ve,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},ho=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),pD=function(t,A,e,n){var r=BD(A,e),i=[],s=0;return r.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(Ve.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,gD(t,n))),n=p}else Ve.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},gD=function(t,A){var e=A.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(n,A);var i=Ha(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return Wn.EMPTY},tC=function(t,A,e){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(t,A),r.setEnd(t,A+e),r},kf=function(t){if(Ve.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(function(e){return e.segment})}return aD(t)},mD=function(t,A){if(Ve.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(function(n){return n.segment})}return CD(t,A)},BD=function(t,A){return A.letterSpacing!==0?kf(t):mD(t,A)},wD=[32,160,4961,65792,65793,4153,4241],CD=function(t,A){for(var e=JO(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),n=[],r,i=function(){if(r.value){var s=r.value.slice(),a=ka(s),c="";a.forEach(function(u){wD.indexOf(u)===-1?c+=we(u):(c.length&&n.push(c),n.push(we(u)),c="")}),c.length&&n.push(c)}};!(r=e.next()).done;)i();return n},yD=function(){function t(A,e,n){this.text=ED(e.data,n.textTransform),this.textBounds=pD(A,this.text,n,e)}return t}(),ED=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(QD,FD);case 2:return t.toUpperCase();default:return t}},QD=/(^|\s|:|-|\(|\))([a-z])/g,FD=function(t,A,e){return t.length>0?A+e.toUpperCase():t},nC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 A}(In),rC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return A}(In),iC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,s=Ha(e,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 A}(In),sC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(In),Df=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,r}return A}(In),bD=[{type:15,flags:0,unit:"px",number:3}],UD=[{type:16,flags:0,number:50}],vD=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},ID=function(t){var A=t.type===SD?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},hl="checkbox",pl="radio",SD="password",oC=707406591,Nf=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=ID(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=vD(r.bounds)),r.type){case hl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=bD;break;case pl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=UD;break}return r}return A}(In),aC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return A}(In),lC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(In),cC=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?co(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Jn.TRANSPARENT,s=n.contentWindow.document.body?co(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Jn.TRANSPARENT;r.backgroundColor=Ir(i)?Ir(s)?r.styles.backgroundColor:s:i}}catch{}return r}return A}(In),TD=["OL","UL","MENU"],gl=function(t,A,e,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,dC(r)&&r.data.trim().length>0)e.textNodes.push(new yD(t,r,e.styles));else if(As(r))if(wC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return gl(t,a,e,n)});else{var s=uC(t,r);s.styles.isVisible()&&(_D(r,s,n)?s.flags|=4:xD(s.styles)&&(s.flags|=2),TD.indexOf(r.tagName)!==-1&&(s.flags|=8),e.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,A){return Kf(A)?new nC(t,A):pC(A)?new rC(t,A):hC(A)?new iC(t,A):OD(A)?new sC(t,A):LD(A)?new Df(t,A):HD(A)?new Nf(t,A):wl(A)?new aC(t,A):Bl(A)?new lC(t,A):mC(A)?new cC(t,A):new In(t,A)},fC=function(t,A){var e=uC(t,A);return e.flags|=4,gl(t,A,e,e),e},_D=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Rf(t)&&e.styles.isTransparent()},xD=function(t){return t.isPositioned()||t.isFloating()},dC=function(t){return t.nodeType===Node.TEXT_NODE},As=function(t){return t.nodeType===Node.ELEMENT_NODE},Mf=function(t){return As(t)&&typeof t.style<"u"&&!ml(t)},ml=function(t){return typeof t.className=="object"},OD=function(t){return t.tagName==="LI"},LD=function(t){return t.tagName==="OL"},HD=function(t){return t.tagName==="INPUT"},kD=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"},DD=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},ND=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},t.prototype.pop=function(A){var e=this;A.forEach(function(n){return e.counters[n].pop()})},t.prototype.parse=function(A){var e=this,n=A.counterIncrement,r=A.counterReset,i=!0;n!==null&&n.forEach(function(a){var c=e.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=e.counters[a.counter];s.push(a.counter),c||(c=e.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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},MD={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},RD={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(t,A,e,n,r,i){return t<A||t>e?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,A,e,n){var r="";do e||t--,r=n(t)+r,t/=A;while(t*A>=A);return r},Ce=function(t,A,e,n,r){var i=e-A+1;return(t<0?"-":"")+(QC(Math.abs(t),i,n,function(s){return we(Math.floor(s%i)+A)})+r)},hi=function(t,A,e){e===void 0&&(e=". ");var n=A.length;return QC(Math.abs(t),n,!1,function(r){return A[Math.floor(r%n)]})+e},ts=1,Tr=2,_r=4,po=8,Xn=function(t,A,e,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 A[0]+a;for(var c=0;s>0&&c<=4;c++){var u=s%10;u===0&&Se(i,ts)&&a!==""?a=A[u]+a:u>1||u===1&&c===0||u===1&&c===1&&Se(i,Tr)||u===1&&c===1&&Se(i,_r)&&t>100||u===1&&c>1&&Se(i,po)?a=A[u]+(c>0?e[c-1]:"")+a:u===1&&c>0&&(a=e[c-1]+a),s=Math.floor(s/10)}return(t<0?n:"")+a},FC="十百千萬",bC="拾佰仟萬",UC="マイナス",Pf="마이너스",go=function(t,A,e){var n=e?". ":"",r=e?"、":"",i=e?", ":"",s=e?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=Ce(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return hi(t,"〇一二三四五六七八九",r);case 6:return es(t,1,3999,yC,3,n).toLowerCase();case 7:return es(t,1,3999,yC,3,n);case 8:return Ce(t,945,969,!1,n);case 9:return Ce(t,97,122,!1,n);case 10:return Ce(t,65,90,!1,n);case 11:return Ce(t,1632,1641,!0,n);case 12:case 49:return es(t,1,9999,EC,3,n);case 35:return es(t,1,9999,EC,3,n).toLowerCase();case 13:return Ce(t,2534,2543,!0,n);case 14:case 30:return Ce(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,"영일이삼사오육칠팔구","십백천만",Pf,i,ts|Tr|_r);case 33:return Xn(t,"零一二三四五六七八九","十百千萬",Pf,i,0);case 32:return Xn(t,"零壹貳參四五六七八九","拾百千",Pf,i,ts|Tr|_r);case 18:return Ce(t,2406,2415,!0,n);case 20:return es(t,1,19999,RD,3,n);case 21:return Ce(t,2790,2799,!0,n);case 22:return Ce(t,2662,2671,!0,n);case 22:return es(t,1,10999,MD,3,n);case 23:return hi(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return hi(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ce(t,3302,3311,!0,n);case 28:return hi(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return hi(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Ce(t,3792,3801,!0,n);case 37:return Ce(t,6160,6169,!0,n);case 38:return Ce(t,4160,4169,!0,n);case 39:return Ce(t,2918,2927,!0,n);case 40:return Ce(t,1776,1785,!0,n);case 43:return Ce(t,3046,3055,!0,n);case 44:return Ce(t,3174,3183,!0,n);case 45:return Ce(t,3664,3673,!0,n);case 46:return Ce(t,3872,3881,!0,n);case 3:default:return Ce(t,48,57,!0,n)}},vC="data-html2canvas-ignore",IC=function(){function t(A,e,n){if(this.context=A,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new ND,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(A,e){var n=this,r=KD(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=r.contentWindow,c=a.document,u=GD(r).then(function(){return lt(n,void 0,void 0,function(){var f,p;return Ze(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(XD),a&&(a.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==e.top||a.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.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,VD(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($D(document.doctype)+"<html></html>"),JD(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(A){if(bf(A,2))debugger;if(pC(A))return this.createCanvasClone(A);if(gC(A))return this.createVideoClone(A);if(BC(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Kf(e)&&(Kf(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),CC(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Vf(A.style,e),e},t.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),r=A.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 A.cloneNode(!1)},t.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var n=A.ownerDocument.createElement("img");try{return n.src=A.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var i=A.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var a=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.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",A)}s.drawImage(A,0,0)}return r}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},t.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},t.prototype.appendChildNode=function(A,e,n){(!As(e)||!DD(e)&&!e.hasAttribute(vC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!As(e)||!BC(e))&&A.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(A,e,n){for(var r=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(As(i)&&wC(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(a){return r.appendChildNode(e,a,n)})}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(A,e){if(dC(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var n=A.ownerDocument.defaultView;if(n&&As(A)&&(Mf(A)||ml(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var i=n.getComputedStyle(A),s=n.getComputedStyle(A,":before"),a=n.getComputedStyle(A,":after");this.referenceElement===A&&Mf(r)&&(this.clonedReferenceElement=r),Rf(r)&&qD(r);var c=this.counters.parse(new Pw(this.context,i)),u=this.resolvePseudoContent(A,r,s,mo.BEFORE);CC(A)&&(e=!0),gC(A)||this.cloneChildNodes(A,r,e),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(A,r,a,mo.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||ml(A))&&!mC(A)||e)&&Vf(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Bl(A)||wl(A))&&(Bl(r)||wl(r))&&(r.value=A.value),r}return A.cloneNode(!1)},t.prototype.resolvePseudoContent=function(A,e,n,r){var i=this;if(n){var s=n.content,a=e.ownerDocument;if(!(!a||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Pw(this.context,n));var c=new Ok(this.context,n),u=a.createElement("html2canvaspseudoelement");Vf(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(jA);B.length&&u.appendChild(a.createTextNode(A.getAttribute(B[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(Zi),Q=w[0],b=w[1];if(Q&&jA(Q)){var v=i.counters.getCounterValue(Q.value),_=b&&jA(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&&jA(Q)){var L=i.counters.getCounterValues(Q.value),U=b&&jA(b)?Ff.parse(i.context,b.value):3,D=E&&E.type===0?E.value:"",P=L.map(function(BA){return go(BA,U,!1)}).join(D);u.appendChild(a.createTextNode(P))}}}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(e)?e.className.baseValue+=f:e.className+=f,u}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),mo;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(mo||(mo={}));var KD=function(t,A){var e=t.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(vC,"true"),t.body.appendChild(e),e},PD=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},VD=function(t){return Promise.all([].slice.call(t.images,0).map(PD))},GD=function(t){return new Promise(function(A,e){var n=t.contentWindow;if(!n)return e("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),A(t))},50)}})},WD=["all","d","content"],Vf=function(t,A){for(var e=t.length-1;e>=0;e--){var n=t.item(e);WD.indexOf(n)===-1&&A.style.setProperty(n,t.getPropertyValue(n))}return A},$D=function(t){var A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=t.internalSubset),t.publicId&&(A+='"'+t.publicId+'"'),t.systemId&&(A+='"'+t.systemId+'"'),A+=">"),A},JD=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},XD=function(t){var A=t[0],e=t[1],n=t[2];A.scrollLeft=e,A.scrollTop=n},YD=":before",zD=":after",Gf="___html2canvas___pseudoelement_before",Wf="___html2canvas___pseudoelement_after",SC=`{
180
180
  content: "" !important;
181
181
  display: none !important;
182
- }`,XD=function(t){YD(t,"."+Gf+$D+IC+`
183
- .`+Wf+JD+IC)},YD=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),zD=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||AN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return lt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(eN(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(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.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(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),qD=/^data:image\/svg\+xml/i,ZD=/^data:image\/.*;base64,/i,jD=/^data:image\/.*/i,AN=function(t){return Ve.SUPPORT_SVG_DRAWING||!tN(t)},$f=function(t){return jD.test(t)},eN=function(t){return ZD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},tN=function(t){return t.substr(-3).toLowerCase()==="svg"||qD.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},nN=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(e.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=e.borderTopWidth,D=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=se(e.paddingTop,A.bounds.width),BA=se(e.paddingRight,A.bounds.width),nA=se(e.paddingBottom,A.bounds.width),cA=se(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ue(n.left+N/3,n.top+U/3,i-N/3,s-U/3,JA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ue(n.left+_,n.top+U/3,c-D/3,u-U/3,JA.TOP_RIGHT):new Z(n.left+n.width-D/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?ue(n.left+E,n.top+S,p-D/3,g-P/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?ue(n.left+N/3,n.top+L,w-N/3,Q-P/3,JA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ue(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,JA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ue(n.left+_,n.top+U*2/3,c-D*2/3,u-U*2/3,JA.TOP_RIGHT):new Z(n.left+n.width-D*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?ue(n.left+E,n.top+S,p-D*2/3,g-P*2/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?ue(n.left+N*2/3,n.top+L,w-N*2/3,Q-P*2/3,JA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ue(n.left+N/2,n.top+U/2,i-N/2,s-U/2,JA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ue(n.left+_,n.top+U/2,c-D/2,u-U/2,JA.TOP_RIGHT):new Z(n.left+n.width-D/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?ue(n.left+E,n.top+S,p-D/2,g-P/2,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||Q>0?ue(n.left+N/2,n.top+L,w-N/2,Q-P/2,JA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ue(n.left,n.top,i,s,JA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ue(n.left+_,n.top,c,u,JA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?ue(n.left+E,n.top+S,p,g,JA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?ue(n.left,n.top+L,w,Q,JA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ue(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),JA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ue(n.left+Math.min(_,n.width-D),n.top+U,_>n.width+D?0:Math.max(0,c-D),Math.max(0,u-U),JA.TOP_RIGHT):new Z(n.left+n.width-D,n.top+U),this.bottomRightPaddingBox=p>0||g>0?ue(n.left+Math.min(E,n.width-N),n.top+Math.min(S,n.height-P),Math.max(0,p-D),Math.max(0,g-P),JA.BOTTOM_RIGHT):new Z(n.left+n.width-D,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||Q>0?ue(n.left+N,n.top+Math.min(L,n.height-P),Math.max(0,w-N),Math.max(0,Q-P),JA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ue(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),JA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ue(n.left+Math.min(_,n.width+N+cA),n.top+U+sA,_>n.width+N+cA?0:c-N+cA,u-(U+sA),JA.TOP_RIGHT):new Z(n.left+n.width-(D+BA),n.top+U+sA),this.bottomRightContentBox=p>0||g>0?ue(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(S,n.height+U+sA),Math.max(0,p-(D+BA)),g-(P+nA),JA.BOTTOM_RIGHT):new Z(n.left+n.width-(D+BA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||Q>0?ue(n.left+N+cA,n.top+L,Math.max(0,w-(N+cA)),Q-(P+nA),JA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),JA;(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"})(JA||(JA={}));var ue=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case JA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case JA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case JA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case JA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},rN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},iN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),sN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),oN=function(t){return t.type===0},TC=function(t){return t.type===1},aN=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},lN=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new nN(this.container),this.container.styles.opacity<1&&this.effects.push(new sN(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 iN(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(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(A){for(var e=[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!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Se(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Se(r.flags,4),s=Se(r.flags,2),a=new OC(r,t);Se(r.styles.display,2048)&&n.push(a);var c=Se(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(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:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Se(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},cN=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){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)}},uN=function(t,A){switch(A){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)}},fN=function(t,A){switch(A){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)}},dN=function(t,A){switch(A){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,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},$t=function(t,A,e,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=se(A.paddingLeft,e.width),r=se(A.paddingRight,e.width),i=se(A.paddingTop,e.width),s=se(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},hN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},pN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=hN(is(t.styles.backgroundOrigin,A),t),r=pN(is(t.styles.backgroundClip,A),t),i=gN(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=mN(is(t.styles.backgroundRepeat,A),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 jA(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},gN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(Ue(s)&&a&&Ue(a))return[se(s,e.width),se(a,e.height)];var c=Ul(i);if(jA(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.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[e.width,e.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:e.width,b=p?r:e.height;return[Q,b]}if(c){var v=0,_=0;return Ue(s)?v=se(s,e.width):Ue(a)&&(_=se(a,e.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(Ue(s)?S=se(s,e.width):a&&Ue(a)&&(E=se(a,e.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:e.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:e.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},mN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[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))]}},BN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",wN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){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=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=BN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,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(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),NC=function(){function t(A,e){this.context=A,this.options=e}return t}(),CN=1e4,yN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 wN(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 A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),aN(e)&&(this.ctx.globalAlpha=e.opacity),oN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return lt(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Se(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=UN(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return Ze(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,e.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=De(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=De(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=De(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=De(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]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){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 Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.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 tC))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 nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))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 lC&&n.tree?(u=new A(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 Nf&&(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=De(sC),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=De(sC),this.ctx.fill(),this.ctx.restore())),EN(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=De(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=FN(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(!Se(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:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+se(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.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]}})})},A.prototype.renderStackContent=function(e){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 Ze(this,function(_){switch(_.label){case 0:if(Se(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:_.sent(),n=0,r=e.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(e.element)];case 6:_.sent(),i=0,s=e.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=e.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=e.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=e.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=e.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=e.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]}})})},A.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.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)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;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(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var p,g,B,sA,RA,HA,cA,LA,P,w,sA,RA,HA,cA,LA,Q,b,v,_,S,E,L,U,D,P,N,sA,BA,nA,cA,LA,oe,RA,HA,rA,mA,XA,kA,GA,KA,Ae,ee;return Ze(this,function(zA){switch(zA.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,zA.label=1;case 1:return zA.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=zA.sent(),[3,4];case 3:return zA.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=Yf(e,n,[p.width,p.height,p.width/p.height]),sA=B[0],RA=B[1],HA=B[2],cA=B[3],LA=B[4],P=i.ctx.createPattern(i.resizeImage(p,cA,LA),"repeat"),i.renderRepeat(sA,P,RA,HA)),[3,6];case 5:oH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],RA=w[1],HA=w[2],cA=w[3],LA=w[4],Q=tH(f.angle,cA,LA),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=cA,L.height=LA,U=L.getContext("2d"),D=U.createLinearGradient(v,S,_,E),Uw(f.stops,b).forEach(function(he){return D.addColorStop(he.stop,De(he.color))}),U.fillStyle=D,U.fillRect(0,0,cA,LA),cA>0&&LA>0&&(P=i.ctx.createPattern(L,"repeat"),i.renderRepeat(sA,P,RA,HA))):aH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],BA=N[1],nA=N[2],cA=N[3],LA=N[4],oe=f.position.length===0?[yf]:f.position,RA=se(oe[0],cA),HA=se(oe[oe.length-1],LA),rA=nH(f,RA,HA,cA,LA),mA=rA[0],XA=rA[1],mA>0&&XA>0&&(kA=i.ctx.createRadialGradient(BA+RA,nA+HA,0,BA+RA,nA+HA,mA),Uw(f.stops,mA*2).forEach(function(he){return kA.addColorStop(he.stop,De(he.color))}),i.path(sA),i.ctx.fillStyle=kA,mA!==XA?(GA=e.bounds.left+.5*e.bounds.width,KA=e.bounds.top+.5*e.bounds.height,Ae=XA/mA,ee=1/Ae,i.ctx.save(),i.ctx.translate(GA,KA),i.ctx.transform(1,0,0,Ae,0,0),i.ctx.translate(-GA,-KA),i.ctx.fillRect(BA,ee*(nA-KA)+KA,cA,LA*ee),i.ctx.restore()):i.ctx.fill())),zA.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.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]}})})},A.prototype.renderSolidBorder=function(e,n,r){return lt(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=De(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=uN(i,r),this.path(s),this.ctx.fillStyle=De(e),this.ctx.fill(),a=fN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.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=QN(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=De(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=yl(e.curves),Q=B.inset?0:CN,b=lN(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=De(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?De(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,e.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,e.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,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,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 Ze(this,function(D){return this.ctx.save(),a=dN(i,r),c=HC(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=De(e),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]})})},A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=cN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(NC),EN=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Nf&&t.type!==pl&&t.type!==hl},QN=function(t,A){switch(t){case 0:return yl(A);case 2:return rN(A);case 1:default:return El(A)}},FN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},bN=["-apple-system","system-ui"],UN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return bN.indexOf(A)===-1}):t},vN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n,r;return Ze(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,e),[4,IN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=De(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]}})})},A}(NC),IN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},SN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),TN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new SN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new zD(this,A)}return t.instanceCount=1,t}(),_N=function(t,A){return A===void 0&&(A={}),xN(t,A)};typeof window<"u"&&SC.setContext(window);var xN=function(t,A){return lt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,D,U,D,P,N,sA,BA,nA,cA,LA,oe,RA,HA,rA,mA,XA,kA,GA,KA,Ae;return Ze(this,function(ee){switch(ee.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(BA=A.logging)!==null&&BA!==void 0?BA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(oe=A.scrollY)!==null&&oe!==void 0?oe:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new TN(i,a),u=(RA=A.foreignObjectRendering)!==null&&RA!==void 0?RA:!1,f={allowTaint:(HA=A.allowTaint)!==null&&HA!==void 0?HA:!1,onclone:A.onclone,ignoreElements:A.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 vC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=ee.sent(),w=Rf(g)||OD(g)?lO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=ON(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:S,scale:(mA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&mA!==void 0?mA:1,x:((XA=A.x)!==null&&XA!==void 0?XA:0)+v,y:((kA=A.y)!==null&&kA!==void 0?kA:0)+_,width:(GA=A.width)!==null&&GA!==void 0?GA:Math.ceil(Q),height:(KA=A.height)!==null&&KA!==void 0?KA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),D=new vN(c,E),[4,D.render(g)]):[3,3];case 2:return L=ee.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=uC(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),D=new yN(c,E),[4,D.render(U)];case 4:L=ee.sent(),ee.label=5;case 5:return(!((Ae=A.removeContainer)!==null&&Ae!==void 0)||Ae)&&(vC.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},ON=function(t,A,e){var n=A.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 e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const LN=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:A}){const e=t,n=A,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await _N(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",p),e.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=vB.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;e.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))}}),HN={class:"link-sharing"},kN={key:0,class:"link-sharing__links container"},DN={class:"row"},NN={key:0,class:"col-12 col-md-6"},MN=["href"],RN={class:"caption"},KN={key:1,class:"col-12 col-md-6"},PN=["href"],VN={class:"caption"},GN={key:2,class:"col-12 col-md-6"},WN={class:"caption"},$N={key:3,class:"col-12 col-md-6"},JN=["href"],XN={class:"caption"},YN={key:4,class:"col-12 col-md-6"},zN=["href"],qN={class:"caption"},ZN={key:5,class:"col-12 col-md-6"},jN={class:"caption"},AM={key:6,class:"col-12 col-md-6"},eM=["href"],tM={class:"caption"},nM={key:1,class:"link-sharing__instructions pt-5"},rM={class:"row"},iM={class:"col-12 text-center py-0"},sM={class:"mb-5"},oM=t=>t.replace(/<(?:.|\n)*?>/gm,""),aM=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 A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>oM(A.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=A.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",HN,[e.value?(h.openBlock(),h.createElementBlock("div",nM,[h.createElementVNode("div",rM,[h.createElementVNode("div",iM,[h.createElementVNode("div",sM,[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",kN,[h.createElementVNode("div",DN,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",NN,[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",RN,h.toDisplayString(a.$t("sharing.facebook")),1)],8,MN)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",KN,[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",VN,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,PN)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",GN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>e.value=!e.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",WN,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",$N,[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",XN,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,JN)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",YN,[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",qN,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,zN)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",ZN,[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",jN,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",AM,[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",tM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,eM)])):h.createCommentVNode("",!0)])]))])}}}),b3="",lM={class:"base-form"},cM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",lM,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),U3="",uM={class:"modal-dialog__content d-flex flex-column"},fM={class:"modal-dialog__header d-flex p-3 border-bottom"},dM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},hM={class:"modal-dialog__body"},pM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},gM=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:A,emit:e}){const n=t,r=e,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)}),A({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",uM,[h.createElementVNode("div",fM,[t.title?(h.openBlock(),h.createElementBlock("h5",dM,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",hM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",pM,[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))}}),v3="",mM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],BM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],wM={key:0,class:"sortable-list__drag-handle"},CM={type:"button",class:"btn"},yM={key:0,class:"sortable-list__item"},EM=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:A}){const e=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=A,a=h.computed({get(){return e.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:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U),innerHTML:c.value},null,40,mM)):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:D=>p(D,U),onDrag:D=>void 0,onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",wM,[h.createElementVNode("button",CM,[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,BM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",yM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),I3="",QM=h.defineComponent({__name:"touch-wrapper",emits:["on-set-scale"],setup(t,{emit:A}){const e=h.ref(),n=A;function r(a){n("on-set-scale",a)}function i(a){if(a.ctrlKey){a.preventDefault();const c=0-a.deltaY*.01;r(c)}}function s(a){a.preventDefault();const{scale:c}=a,u=c>1?c*.01:0-c;r(u)}return h.onMounted(()=>{e.value&&(e.value.addEventListener("wheel",i,!1),e.value.addEventListener("gesturestart",s,!1),e.value.addEventListener("gesturechange",s,!1),e.value.addEventListener("gestureend",s,!1))}),(a,c)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:e,class:"touch-wrapper"},[h.renderSlot(a.$slots,"default")],512))}});vA.Accordion=HE,vA.AccordionItem=TE,vA.AssetUploader=Jx,vA.AutoSuggest=h_,vA.BaseButton=DE,vA.BaseCamera=L_,vA.BaseCarousel=kB,vA.BaseForm=cM,vA.BaseHeadline=CE,vA.BaseImage=wE,vA.BaseInput=KE,vA.BaseParagraph=EE,vA.CheckGroup=nQ,vA.DomRenderer=LN,vA.FileUpload=Dx,vA.InputCheckbox=YE,vA.InputColor=AS,vA.InputDatetime=jE,vA.InputDropdown=l_,vA.InputFile=gQ,vA.InputTextarea=WE,vA.LinkSharing=aM,vA.LoadingSpinner=mE,vA.MediaThumbnails=jx,vA.ModalDialog=gM,vA.ProgressSteps=aO,vA.RadioGroup=aQ,vA.RteEditor=z1,vA.SortableList=EM,vA.SvgIcon=hE,vA.TouchWrapper=QM,vA.UploadGroup=HB,Object.defineProperty(vA,Symbol.toStringTag,{value:"Module"})});
182
+ }`,qD=function(t){ZD(t,"."+Gf+YD+SC+`
183
+ .`+Wf+zD+SC)},ZD=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},TC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),jD=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||nN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return lt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=TC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(rN(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(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.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(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),AN=/^data:image\/svg\+xml/i,eN=/^data:image\/.*;base64,/i,tN=/^data:image\/.*/i,nN=function(t){return Ve.SUPPORT_SVG_DRAWING||!iN(t)},$f=function(t){return tN.test(t)},rN=function(t){return eN.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},iN=function(t){return t.substr(-3).toLowerCase()==="svg"||AN.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},sN=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(e.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=e.borderTopWidth,D=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=se(e.paddingTop,A.bounds.width),BA=se(e.paddingRight,A.bounds.width),nA=se(e.paddingBottom,A.bounds.width),cA=se(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ue(n.left+N/3,n.top+U/3,i-N/3,s-U/3,JA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ue(n.left+_,n.top+U/3,c-D/3,u-U/3,JA.TOP_RIGHT):new Z(n.left+n.width-D/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?ue(n.left+E,n.top+S,p-D/3,g-P/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?ue(n.left+N/3,n.top+L,w-N/3,Q-P/3,JA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ue(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,JA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ue(n.left+_,n.top+U*2/3,c-D*2/3,u-U*2/3,JA.TOP_RIGHT):new Z(n.left+n.width-D*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?ue(n.left+E,n.top+S,p-D*2/3,g-P*2/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?ue(n.left+N*2/3,n.top+L,w-N*2/3,Q-P*2/3,JA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ue(n.left+N/2,n.top+U/2,i-N/2,s-U/2,JA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ue(n.left+_,n.top+U/2,c-D/2,u-U/2,JA.TOP_RIGHT):new Z(n.left+n.width-D/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?ue(n.left+E,n.top+S,p-D/2,g-P/2,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||Q>0?ue(n.left+N/2,n.top+L,w-N/2,Q-P/2,JA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ue(n.left,n.top,i,s,JA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ue(n.left+_,n.top,c,u,JA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?ue(n.left+E,n.top+S,p,g,JA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?ue(n.left,n.top+L,w,Q,JA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ue(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),JA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ue(n.left+Math.min(_,n.width-D),n.top+U,_>n.width+D?0:Math.max(0,c-D),Math.max(0,u-U),JA.TOP_RIGHT):new Z(n.left+n.width-D,n.top+U),this.bottomRightPaddingBox=p>0||g>0?ue(n.left+Math.min(E,n.width-N),n.top+Math.min(S,n.height-P),Math.max(0,p-D),Math.max(0,g-P),JA.BOTTOM_RIGHT):new Z(n.left+n.width-D,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||Q>0?ue(n.left+N,n.top+Math.min(L,n.height-P),Math.max(0,w-N),Math.max(0,Q-P),JA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ue(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),JA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ue(n.left+Math.min(_,n.width+N+cA),n.top+U+sA,_>n.width+N+cA?0:c-N+cA,u-(U+sA),JA.TOP_RIGHT):new Z(n.left+n.width-(D+BA),n.top+U+sA),this.bottomRightContentBox=p>0||g>0?ue(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(S,n.height+U+sA),Math.max(0,p-(D+BA)),g-(P+nA),JA.BOTTOM_RIGHT):new Z(n.left+n.width-(D+BA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||Q>0?ue(n.left+N+cA,n.top+L,Math.max(0,w-(N+cA)),Q-(P+nA),JA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),JA;(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"})(JA||(JA={}));var ue=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case JA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case JA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case JA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case JA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},oN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},aN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),lN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),cN=function(t){return t.type===0},_C=function(t){return t.type===1},uN=function(t){return t.type===2},xC=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},fN=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},OC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),LC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new sN(this.container),this.container.styles.opacity<1&&this.effects.push(new lN(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 aN(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(A){for(var e=[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(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[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 Se(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Se(r.flags,4),s=Se(r.flags,2),a=new LC(r,t);Se(r.styles.display,2048)&&n.push(a);var c=Se(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,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:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Se(r.flags,8)&&HC(r,c)})},HC=function(t,A){for(var e=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof sC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},dN=function(t){var A=new LC(t,null),e=new OC(A),n=[];return Xf(A,e,e,n),HC(A.container,n),e},kC=function(t,A){switch(A){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)}},hN=function(t,A){switch(A){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)}},pN=function(t,A){switch(A){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)}},gN=function(t,A){switch(A){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,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},$t=function(t,A,e,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},DC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=se(A.paddingLeft,e.width),r=se(A.paddingRight,e.width),i=se(A.paddingTop,e.width),s=se(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},mN=function(t,A){return t===0?A.bounds:t===2?bl(A):DC(A)},BN=function(t,A){return t===0?A.bounds:t===2?bl(A):DC(A)},Yf=function(t,A,e){var n=mN(is(t.styles.backgroundOrigin,A),t),r=BN(is(t.styles.backgroundClip,A),t),i=wN(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=CN(is(t.styles.backgroundRepeat,A),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 jA(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},wN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(Ue(s)&&a&&Ue(a))return[se(s,e.width),se(a,e.height)];var c=Ul(i);if(jA(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.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[e.width,e.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:e.width,b=p?r:e.height;return[Q,b]}if(c){var v=0,_=0;return Ue(s)?v=se(s,e.width):Ue(a)&&(_=se(a,e.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(Ue(s)?S=se(s,e.width):a&&Ue(a)&&(E=se(a,e.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:e.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:e.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},CN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[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))]}},yN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",NC="Hidden Text",EN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){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=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=yN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(NC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(NC)),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(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),MC=function(){function t(A,e){this.context=A,this.options=e}return t}(),QN=1e4,FN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 EN(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 A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),uN(e)&&(this.ctx.globalAlpha=e.opacity),cN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),_C(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return lt(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Se(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=SN(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return Ze(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,e.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=De(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=De(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=De(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=De(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]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){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 Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.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 A(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 Nf&&(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=De(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=De(oC),this.ctx.fill(),this.ctx.restore())),bN(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=De(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=vN(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(!Se(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:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+se(n.styles.paddingTop,n.bounds.width),n.bounds.width,Nw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.listValue,L),i.letterSpacing,Nw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){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 Ze(this,function(_){switch(_.label){case 0:if(Se(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:_.sent(),n=0,r=e.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(e.element)];case 6:_.sent(),i=0,s=e.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=e.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=e.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=e.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=e.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=e.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]}})})},A.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.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)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;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(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var p,g,B,sA,RA,HA,cA,LA,P,w,sA,RA,HA,cA,LA,Q,b,v,_,S,E,L,U,D,P,N,sA,BA,nA,cA,LA,oe,RA,HA,rA,mA,XA,kA,GA,KA,Ae,ee;return Ze(this,function(zA){switch(zA.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,zA.label=1;case 1:return zA.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=zA.sent(),[3,4];case 3:return zA.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=Yf(e,n,[p.width,p.height,p.width/p.height]),sA=B[0],RA=B[1],HA=B[2],cA=B[3],LA=B[4],P=i.ctx.createPattern(i.resizeImage(p,cA,LA),"repeat"),i.renderRepeat(sA,P,RA,HA)),[3,6];case 5:cH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],RA=w[1],HA=w[2],cA=w[3],LA=w[4],Q=iH(f.angle,cA,LA),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=cA,L.height=LA,U=L.getContext("2d"),D=U.createLinearGradient(v,S,_,E),vw(f.stops,b).forEach(function(pe){return D.addColorStop(pe.stop,De(pe.color))}),U.fillStyle=D,U.fillRect(0,0,cA,LA),cA>0&&LA>0&&(P=i.ctx.createPattern(L,"repeat"),i.renderRepeat(sA,P,RA,HA))):uH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],BA=N[1],nA=N[2],cA=N[3],LA=N[4],oe=f.position.length===0?[yf]:f.position,RA=se(oe[0],cA),HA=se(oe[oe.length-1],LA),rA=sH(f,RA,HA,cA,LA),mA=rA[0],XA=rA[1],mA>0&&XA>0&&(kA=i.ctx.createRadialGradient(BA+RA,nA+HA,0,BA+RA,nA+HA,mA),vw(f.stops,mA*2).forEach(function(pe){return kA.addColorStop(pe.stop,De(pe.color))}),i.path(sA),i.ctx.fillStyle=kA,mA!==XA?(GA=e.bounds.left+.5*e.bounds.width,KA=e.bounds.top+.5*e.bounds.height,Ae=XA/mA,ee=1/Ae,i.ctx.save(),i.ctx.translate(GA,KA),i.ctx.transform(1,0,0,Ae,0,0),i.ctx.translate(-GA,-KA),i.ctx.fillRect(BA,ee*(nA-KA)+KA,cA,LA*ee),i.ctx.restore()):i.ctx.fill())),zA.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.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]}})})},A.prototype.renderSolidBorder=function(e,n,r){return lt(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(kC(r,n)),this.ctx.fillStyle=De(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=hN(i,r),this.path(s),this.ctx.fillStyle=De(e),this.ctx.fill(),a=pN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.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=UN(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=De(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=yl(e.curves),Q=B.inset?0:QN,b=fN(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=De(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?De(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,e.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,e.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,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,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 Ze(this,function(D){return this.ctx.save(),a=gN(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=De(e),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]})})},A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=dN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(MC),bN=function(t){return t instanceof lC||t instanceof aC?!0:t instanceof Nf&&t.type!==pl&&t.type!==hl},UN=function(t,A){switch(t){case 0:return yl(A);case 2:return oN(A);case 1:default:return El(A)}},vN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},IN=["-apple-system","system-ui"],SN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return IN.indexOf(A)===-1}):t},TN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,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 A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n,r;return Ze(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,e),[4,_N(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=De(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]}})})},A}(MC),_N=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},xN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),ON=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new xN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new jD(this,A)}return t.instanceCount=1,t}(),LN=function(t,A){return A===void 0&&(A={}),HN(t,A)};typeof window<"u"&&TC.setContext(window);var HN=function(t,A){return lt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,D,U,D,P,N,sA,BA,nA,cA,LA,oe,RA,HA,rA,mA,XA,kA,GA,KA,Ae;return Ze(this,function(ee){switch(ee.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(BA=A.logging)!==null&&BA!==void 0?BA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(oe=A.scrollY)!==null&&oe!==void 0?oe:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new ON(i,a),u=(RA=A.foreignObjectRendering)!==null&&RA!==void 0?RA:!1,f={allowTaint:(HA=A.allowTaint)!==null&&HA!==void 0?HA:!1,onclone:A.onclone,ignoreElements:A.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(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=ee.sent(),w=Rf(g)||kD(g)?fO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=kN(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:S,scale:(mA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&mA!==void 0?mA:1,x:((XA=A.x)!==null&&XA!==void 0?XA:0)+v,y:((kA=A.y)!==null&&kA!==void 0?kA:0)+_,width:(GA=A.width)!==null&&GA!==void 0?GA:Math.ceil(Q),height:(KA=A.height)!==null&&KA!==void 0?KA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),D=new TN(c,E),[4,D.render(g)]):[3,3];case 2:return L=ee.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),D=new FN(c,E),[4,D.render(U)];case 4:L=ee.sent(),ee.label=5;case 5:return(!((Ae=A.removeContainer)!==null&&Ae!==void 0)||Ae)&&(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]}})})},kN=function(t,A,e){var n=A.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 e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const DN=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:A}){const e=t,n=A,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await LN(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",p),e.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;e.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))}}),NN={class:"link-sharing"},MN={key:0,class:"link-sharing__links container"},RN={class:"row"},KN={key:0,class:"col-12 col-md-6"},PN=["href"],VN={class:"caption"},GN={key:1,class:"col-12 col-md-6"},WN=["href"],$N={class:"caption"},JN={key:2,class:"col-12 col-md-6"},XN={class:"caption"},YN={key:3,class:"col-12 col-md-6"},zN=["href"],qN={class:"caption"},ZN={key:4,class:"col-12 col-md-6"},jN=["href"],AM={class:"caption"},eM={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 A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>cM(A.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=A.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",NN,[e.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",MN,[h.createElementVNode("div",RN,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",KN,[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",VN,h.toDisplayString(a.$t("sharing.facebook")),1)],8,PN)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",GN,[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",$N,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,WN)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",JN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>e.value=!e.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",XN,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",YN,[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",qN,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,zN)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",ZN,[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,jN)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",eM,[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)])]))])}}}),S3="",fM={class:"base-form"},dM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(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:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),T3="",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:A,emit:e}){const n=t,r=e,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)}),A({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))}}),_3="",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:A}){const e=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=A,a=h.computed({get(){return e.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:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,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:D=>p(D,U),onDrag:D=>void 0,onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,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"])}}}),x3="",UM=h.defineComponent({__name:"touch-wrapper",emits:["on-set-scale"],setup(t,{emit:A}){const e=h.ref(),n=A;function r(a){n("on-set-scale",a)}function i(a){if(a.ctrlKey){a.preventDefault();const c=0-a.deltaY*.01;r(c)}}function s(a){a.preventDefault();const{scale:c}=a,u=c>1?c*.01:0-c;r(u)}return h.onMounted(()=>{e.value&&(e.value.addEventListener("wheel",i,!1),e.value.addEventListener("gesturestart",s,!1),e.value.addEventListener("gesturechange",s,!1),e.value.addEventListener("gestureend",s,!1))}),(a,c)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:e,class:"touch-wrapper"},[h.renderSlot(a.$slots,"default")],512))}});QA.Accordion=kE,QA.AccordionItem=_E,QA.AssetUploader=zx,QA.AutoSuggest=m_,QA.BaseButton=NE,QA.BaseCamera=D_,QA.BaseCarousel=DB,QA.BaseForm=dM,QA.BaseHeadline=yE,QA.BaseImage=CE,QA.BaseInput=PE,QA.BaseParagraph=QE,QA.CheckGroup=rQ,QA.ColorPalette=nS,QA.DomRenderer=DN,QA.FileUpload=Rx,QA.InputCheckbox=zE,QA.InputColor=AS,QA.InputDatetime=AQ,QA.InputDropdown=f_,QA.InputFile=gQ,QA.InputTextarea=$E,QA.LinkSharing=uM,QA.LoadingSpinner=BE,QA.MediaThumbnails=tO,QA.ModalDialog=wM,QA.ProgressSteps=uO,QA.RadioGroup=fh,QA.RteEditor=z1,QA.SortableList=bM,QA.SvgIcon=pE,QA.TouchWrapper=UM,QA.UploadGroup=kB,Object.defineProperty(QA,Symbol.toStringTag,{value:"Module"})});