ablok-components 0.1.96 → 0.1.97
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,16 +1,16 @@
|
|
|
1
|
-
(function(NA,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],p):(NA=typeof globalThis<"u"?globalThis:NA||self,p(NA.AblokComponents={},NA.Vue,NA.core))})(this,function(NA,p,sh){"use strict";const qy={class:"icon",preserveAspectRatio:"xMaxYMin"},Zy=["xlink:href"],jy=p.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)=>(p.openBlock(),p.createElementBlock("i",{class:p.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(p.openBlock(),p.createElementBlock("svg",qy,[p.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,Zy)]))],2))}}),lG="",AE={class:"loading-spinner d-block"},eE={class:"loading-spinner__animation"},tE={class:"d-block",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"},nE=["fill"],rE=[p.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],iE=p.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("span",AE,[p.createElementVNode("span",eE,[(p.openBlock(),p.createElementBlock("svg",tE,[p.createElementVNode("path",{fill:t.color,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"},rE,8,nE)]))]),p.renderSlot(A.$slots,"default")]))}}),uG="",sE=p.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=p.computed(()=>A.tag||"p");return(n,r)=>(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.value),{class:p.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:p.withCtx(()=>[p.renderSlot(n.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),oE=["innerHTML"],aE=p.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("p",{class:p.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,oE))}});function Ee(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const lE={class:"accordion-item"},cE=["id"],uE=["data-bs-target","aria-controls"],fE={class:"flex-grow-1"},dE=["id","aria-labelledby","data-bs-parent"],hE={class:"accordion-body"},pE=["innerHTML"],gE=p.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Ee()},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)=>(p.openBlock(),p.createElementBlock("div",lE,[p.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[p.createElementVNode("button",{class:p.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},[p.renderSlot(i.$slots,"toggle",{},()=>[p.createElementVNode("span",fE,p.toDisplayString(t.title),1)])],10,uE)],8,cE),p.createElementVNode("div",{class:p.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[p.createElementVNode("div",hE,[p.renderSlot(i.$slots,"body",{},()=>[p.createElementVNode("article",{innerHTML:t.body},null,8,pE)])])],10,dE)]))}}),fG="",BE=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},mE={},wE={class:"accordion"};function CE(t,A){return p.openBlock(),p.createElementBlock("div",wE,[p.renderSlot(t.$slots,"default")])}const yE=BE(mE,[["render",CE]]),EE=["type","disabled"],QE=p.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},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=p.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("button",{type:t.type,disabled:t.disabled,class:p.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"}])},[p.renderSlot(n.$slots,"default",{},()=>[t.icon?(p.openBlock(),p.createBlock(i,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):p.createCommentVNode("",!0),e.value?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},p.toDisplayString(t.caption),3)):p.createCommentVNode("",!0)])],10,EE)}}}),dG="",FE={class:"input-group input__input-group"},UE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],bE=["for","innerHTML"],vE=p.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input",`input--${t.type}`])},[p.createElementVNode("div",FE,[p.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),p.withDirectives(p.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,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:p.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,UE),[[p.vModelDynamic,r.value]]),p.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,bE)):p.createCommentVNode("",!0)])],2))}}),hG="",IE={class:"input input--textarea"},SE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],TE=["for","innerHTML"],_E=p.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",IE,[p.renderSlot(i.$slots,"input-prepend"),p.withDirectives(p.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:p.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,SE),[[p.vModelText,r.value]]),p.renderSlot(i.$slots,"input-append"),p.renderSlot(i.$slots,"label",{},()=>[p.createElementVNode("label",{for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,TE)])]))}}),xE=["value","id","name","required","disabled","true-value","false-value"],OE=["for","innerHTML"],LE=p.createElementVNode("span",{class:"input__error"},"error",-1),HE=p.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=p.computed({get(){return e.modelValue||e.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=p.withModifiers(a=>i.void,["stop"]))},[p.withDirectives(p.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,xE),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,OE),LE]))}}),pG=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
2
|
-
`,ME={class:"check-group"},NE=["id","name","value","disabled","read-only","required"],DE=["for","innerHTML"],kE=p.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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;p.ref([]);const r=p.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=p.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)=>(p.openBlock(),p.createElementBlock("div",ME,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.value,(c,u)=>(p.openBlock(),p.createElementBlock("div",{key:u,class:"form-check"},[p.withDirectives(p.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,NE),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,DE)]))),128))]))}}),gG="",RE={class:"input radio-group"},KE=["id","name","value","checked","disabled","read-only","required","onChange"],PE=["for","innerHTML"],VE=["for"],GE=p.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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;p.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return p.onBeforeMount(()=>{}),(i,s)=>(p.openBlock(),p.createElementBlock("div",RE,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.options,(a,c)=>(p.openBlock(),p.createElementBlock("div",{key:c,class:"form-check"},[p.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,KE),p.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,PE)]))),128)),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id},p.toDisplayString(t.label),9,VE)):p.createCommentVNode("",!0)])]))}}),BG="",WE=["id","name","multiple","accept","disabled"],$E={class:"input__input-group input-group"},JE=["value","id","name","disabled"],XE=["for","disabled"],YE=p.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),zE=["for"],qE=["innerHTML"],ZE=p.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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=p.ref(),s=p.reactive([]),a=p.computed(()=>s&&s.map(c=>c.name));return p.computed(()=>s.map(c=>URL.createObjectURL(c))),p.watch(()=>e.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),p.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input input-file","input-file--primary"])},[p.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,WE),p.createElementVNode("div",$E,[p.renderSlot(c.$slots,"input-prepend"),p.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,JE),p.renderSlot(c.$slots,"input-append",{},()=>[p.createElementVNode("label",{for:t.id,disabled:t.disabled},[p.renderSlot(c.$slots,"button",{},()=>[YE])],8,XE)])]),p.createElementVNode("label",{for:t.id},[p.renderSlot(c.$slots,"label",{},()=>[p.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,qE)])],8,zE)]))}});function Le(t){this.content=t}Le.prototype={constructor:Le,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 Le(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 Le(e)},addToStart:function(t,A){return new Le([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Le(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 Le(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=Le.from(t),t.size?new Le(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Le.from(t),t.size?new Le(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Le.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}},Le.from=function(t){if(t instanceof Le)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Le(A)};function oh(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=oh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function ah(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=ah(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class J{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)=>{a.isText?(i+=a.text.slice(Math.max(A,c)-c,e-c),s=!n):a.isLeaf?(r?i+=typeof r=="function"?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),s=!n):!s&&a.isBlock&&(i+=n,s=!0)},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 J(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 J(n,r)}cutByIndex(A,e){return A==e?J.empty:A==0&&e==this.content.length?this:new J(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 J(r,i)}addToStart(A){return new J([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new J(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 oh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return ah(this,A,e,n)}findIndex(A,e=-1){if(A==0)return Ho(0,A);if(A==this.size)return Ho(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?Ho(n+1,s):Ho(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 J.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new J(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return J.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 J(e||A,n)}static from(A){if(!A)return J.empty;if(A instanceof J)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new J([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}J.empty=new J([],0);const oc={index:0,offset:0};function Ho(t,A){return oc.index=t,oc.offset=A,oc}function Mo(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(!Mo(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Mo(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let JA=class nh{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&&Mo(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 nh.none;if(A instanceof nh)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};JA.none=[];class No extends Error{}class AA{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=ch(this.content,A+this.openStart,e);return n&&new AA(n,this.openStart,this.openEnd)}removeBetween(A,e){return new AA(lh(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 AA.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 AA(J.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 AA(A,n,r)}}AA.empty=new AA(J.empty,0,0);function lh(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(lh(i.content,A-r-1,e-r-1)))}function ch(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=ch(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function jE(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 uh(t,A,e,0)}function uh(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=uh(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}=AQ(e,t);return Gr(i,dh(t,s,a,A,n))}else return Gr(i,Do(t,A,n))}function fh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function ac(t,A,e){let n=t.node(e);return fh(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 ys(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 dh(t,A,e,n,r){let i=t.depth>r&&ac(t,A,r+1),s=n.depth>r&&ac(e,n,r+1),a=[];return ys(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(fh(i,s),Vr(Gr(i,dh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Do(t,A,r+1)),a),ys(A,e,r,a),s&&Vr(Gr(s,Do(e,n,r+1)),a)),ys(n,null,r,a),new J(a)}function Do(t,A,e){let n=[];if(ys(null,t,e,n),t.depth>e){let r=ac(t,A,e+1);Vr(Gr(r,Do(t,A,e+1)),n)}return ys(A,null,e,n),new J(n)}function AQ(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(J.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Es{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 JA.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 ko(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 Es(e,n,i)}static resolveCached(A,e){for(let r=0;r<lc.length;r++){let i=lc[r];if(i.pos==e&&i.doc==A)return i}let n=lc[cc]=Es.resolve(A,e);return cc=(cc+1)%eQ,n}}let lc=[],cc=0,eQ=12;class ko{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 tQ=Object.create(null);let Wr=class rh{constructor(A,e,n,r=JA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||J.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&&Mo(this.attrs,e||A.defaultAttrs||tQ)&&JA.sameSet(this.marks,n||JA.none)}copy(A=null){return A==this.content?this:new rh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new rh(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 AA.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 AA(u,r.depth-s,i.depth-s)}replace(A,e,n){return jE(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 Es.resolveCached(this,A)}resolveNoCache(A){return Es.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()+")"),hh(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=J.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=JA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!JA.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=J.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ro 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):hh(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 Ro(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ro(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 hh(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 nQ(A,e);if(n.next==null)return $r.empty;let r=ph(n);n.next&&n.err("Unexpected trailing text");let i=cQ(lQ(r));return uQ(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 J.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:h}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let g=i(h,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 nQ{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 ph(t){let A=[];do A.push(rQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function rQ(t){let A=[];do A.push(iQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function iQ(t){let A=aQ(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=sQ(t,A);else break;return A}function gh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function sQ(t,A){let e=gh(t),n=e;return t.eat(",")&&(t.next!="}"?n=gh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function oQ(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 aQ(t){if(t.eat("(")){let A=ph(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=oQ(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 lQ(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 Bh(t,A){return A-t}function mh(t,A){let e=[];return n(A),e.sort(Bh);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 cQ(t){let A=Object.create(null);return e(mh(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]);mh(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(Bh);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function uQ(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 wh(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 Ch(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 yh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new fQ(t[e]);return A}let Eh=class zy{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=yh(n.attrs),this.defaultAttrs=wh(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:Ch(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),J.from(e),JA.setFrom(n))}createChecked(A=null,e,n){return e=J.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,JA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=J.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(J.empty,!0);return i?new Wr(this,A,e.append(i),JA.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:JA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new zy(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 fQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Ko{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=yh(r.attrs),this.excluded=null;let i=wh(this.attrs);this.instance=i?new JA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new JA(this,Ch(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Ko(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 dQ{constructor(A){this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=Le.from(A.nodes),e.marks=Le.from(A.marks||{}),this.nodes=Eh.compile(this.spec.nodes,this),this.marks=Ko.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;i.contentMatch=n[s]||(n[s]=$r.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=a=="_"?null:a?Qh(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==""?[]:Qh(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 Eh){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 Ro(n,n.defaultAttrs,A,JA.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 JA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Qh(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}class Ei{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.forEach(n=>{n.tag?this.tags.push(n):n.style&&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 vh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new vh(this,e,!0);return n.addAll(A,e.from,e.to),AA.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(gQ(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=Ih(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=Ih(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Ei(A,Ei.schemaRules(A)))}}const Fh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},hQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Uh={ol:!0,ul:!0},Po=1,Vo=2,Qs=4;function bh(t,A,e){return A!=null?(A?Po:0)|(A==="full"?Vo:0):t&&t.whitespace=="pre"?Po|Vo:e&~Qs}class Go{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=JA.none,this.stashMarks=[],this.match=s||(a&Qs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(J.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&Po)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let e=J.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(J.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):mQ(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&&!Fh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class vh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=bh(null,e.preserveWhitespace,0)|(n?Qs:0);r?i=new Go(r.type,r.attrs,JA.none,JA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Go(null,null,JA.none,JA.none,!0,null,s):i=new Go(A.schema.topNodeType,null,JA.none,JA.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.getAttribute("style");if(!n)return e();let r=this.readStyles(BQ(n));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&Vo||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Po)n.options&Vo?e=e.replace(/\r\n?/g,`
|
|
1
|
+
(function(NA,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],p):(NA=typeof globalThis<"u"?globalThis:NA||self,p(NA.AblokComponents={},NA.Vue,NA.core))})(this,function(NA,p,sh){"use strict";const qy={class:"icon",preserveAspectRatio:"xMaxYMin"},Zy=["xlink:href"],jy=p.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)=>(p.openBlock(),p.createElementBlock("i",{class:p.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(p.openBlock(),p.createElementBlock("svg",qy,[p.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,Zy)]))],2))}}),cG="",AE={class:"loading-spinner d-block"},eE={class:"loading-spinner__animation"},tE={class:"d-block",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"},nE=["fill"],rE=[p.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],iE=p.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("span",AE,[p.createElementVNode("span",eE,[(p.openBlock(),p.createElementBlock("svg",tE,[p.createElementVNode("path",{fill:t.color,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"},rE,8,nE)]))]),p.renderSlot(A.$slots,"default")]))}}),fG="",sE=p.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=p.computed(()=>A.tag||"p");return(n,r)=>(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.value),{class:p.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:p.withCtx(()=>[p.renderSlot(n.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),oE=["innerHTML"],aE=p.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(p.openBlock(),p.createElementBlock("p",{class:p.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,oE))}});function Qe(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const lE={class:"accordion-item"},cE=["id"],uE=["data-bs-target","aria-controls"],fE={class:"flex-grow-1"},dE=["id","aria-labelledby","data-bs-parent"],hE={class:"accordion-body"},pE=["innerHTML"],gE=p.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>Qe()},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)=>(p.openBlock(),p.createElementBlock("div",lE,[p.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[p.createElementVNode("button",{class:p.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},[p.renderSlot(i.$slots,"toggle",{},()=>[p.createElementVNode("span",fE,p.toDisplayString(t.title),1)])],10,uE)],8,cE),p.createElementVNode("div",{class:p.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[p.createElementVNode("div",hE,[p.renderSlot(i.$slots,"body",{},()=>[p.createElementVNode("article",{innerHTML:t.body},null,8,pE)])])],10,dE)]))}}),dG="",BE=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},mE={},wE={class:"accordion"};function CE(t,A){return p.openBlock(),p.createElementBlock("div",wE,[p.renderSlot(t.$slots,"default")])}const yE=BE(mE,[["render",CE]]),EE=["type","disabled"],QE=p.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},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=p.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("button",{type:t.type,disabled:t.disabled,class:p.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"}])},[p.renderSlot(n.$slots,"default",{},()=>[t.icon?(p.openBlock(),p.createBlock(i,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):p.createCommentVNode("",!0),e.value?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},p.toDisplayString(t.caption),3)):p.createCommentVNode("",!0)])],10,EE)}}}),hG="",FE={class:"input-group input__input-group"},UE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],bE=["for","innerHTML"],vE=p.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input",`input--${t.type}`])},[p.createElementVNode("div",FE,[p.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),p.withDirectives(p.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,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:p.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,UE),[[p.vModelDynamic,r.value]]),p.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,bE)):p.createCommentVNode("",!0)])],2))}}),pG="",IE={class:"input input--textarea"},SE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],TE=["for","innerHTML"],_E=p.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",IE,[p.renderSlot(i.$slots,"input-prepend"),p.withDirectives(p.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:p.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,SE),[[p.vModelText,r.value]]),p.renderSlot(i.$slots,"input-append"),p.renderSlot(i.$slots,"label",{},()=>[p.createElementVNode("label",{for:t.id,class:p.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,TE)])]))}}),xE=["value","id","name","required","disabled","true-value","false-value"],OE=["for","innerHTML"],LE=p.createElementVNode("span",{class:"input__error"},"error",-1),HE=p.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=p.computed({get(){return e.modelValue||e.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=p.withModifiers(a=>i.void,["stop"]))},[p.withDirectives(p.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,xE),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,OE),LE]))}}),gG=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
2
|
+
`,ME={class:"check-group"},NE=["id","name","value","disabled","read-only","required"],DE=["for","innerHTML"],kE=p.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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;p.ref([]);const r=p.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=p.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)=>(p.openBlock(),p.createElementBlock("div",ME,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.value,(c,u)=>(p.openBlock(),p.createElementBlock("div",{key:u,class:"form-check"},[p.withDirectives(p.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,NE),[[p.vModelCheckbox,r.value]]),p.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,DE)]))),128))]))}}),BG="",RE={class:"input radio-group"},KE=["id","name","value","checked","disabled","read-only","required","onChange"],PE=["for","innerHTML"],VE=["for"],GE=p.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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;p.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return p.onBeforeMount(()=>{}),(i,s)=>(p.openBlock(),p.createElementBlock("div",RE,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.options,(a,c)=>(p.openBlock(),p.createElementBlock("div",{key:c,class:"form-check"},[p.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,KE),p.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,PE)]))),128)),p.renderSlot(i.$slots,"label",{},()=>[t.label?(p.openBlock(),p.createElementBlock("label",{key:0,for:t.id},p.toDisplayString(t.label),9,VE)):p.createCommentVNode("",!0)])]))}}),mG="",WE=["id","name","multiple","accept","disabled"],$E={class:"input__input-group input-group"},JE=["value","id","name","disabled"],XE=["for","disabled"],YE=p.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),zE=["for"],qE=["innerHTML"],ZE=p.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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=p.ref(),s=p.reactive([]),a=p.computed(()=>s&&s.map(c=>c.name));return p.computed(()=>s.map(c=>URL.createObjectURL(c))),p.watch(()=>e.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),p.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["input input-file","input-file--primary"])},[p.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,WE),p.createElementVNode("div",$E,[p.renderSlot(c.$slots,"input-prepend"),p.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,JE),p.renderSlot(c.$slots,"input-append",{},()=>[p.createElementVNode("label",{for:t.id,disabled:t.disabled},[p.renderSlot(c.$slots,"button",{},()=>[YE])],8,XE)])]),p.createElementVNode("label",{for:t.id},[p.renderSlot(c.$slots,"label",{},()=>[p.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,qE)])],8,zE)]))}});function Le(t){this.content=t}Le.prototype={constructor:Le,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 Le(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 Le(e)},addToStart:function(t,A){return new Le([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Le(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 Le(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=Le.from(t),t.size?new Le(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Le.from(t),t.size?new Le(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Le.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}},Le.from=function(t){if(t instanceof Le)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Le(A)};function oh(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=oh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function ah(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=ah(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class J{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)=>{a.isText?(i+=a.text.slice(Math.max(A,c)-c,e-c),s=!n):a.isLeaf?(r?i+=typeof r=="function"?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),s=!n):!s&&a.isBlock&&(i+=n,s=!0)},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 J(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 J(n,r)}cutByIndex(A,e){return A==e?J.empty:A==0&&e==this.content.length?this:new J(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 J(r,i)}addToStart(A){return new J([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new J(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 oh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return ah(this,A,e,n)}findIndex(A,e=-1){if(A==0)return Ho(0,A);if(A==this.size)return Ho(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?Ho(n+1,s):Ho(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 J.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new J(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return J.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 J(e||A,n)}static from(A){if(!A)return J.empty;if(A instanceof J)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new J([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}J.empty=new J([],0);const oc={index:0,offset:0};function Ho(t,A){return oc.index=t,oc.offset=A,oc}function Mo(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(!Mo(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Mo(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let YA=class nh{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&&Mo(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 nh.none;if(A instanceof nh)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};YA.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=ch(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(lh(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(J.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(J.empty,0,0);function lh(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(lh(i.content,A-r-1,e-r-1)))}function ch(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=ch(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function jE(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 uh(t,A,e,0)}function uh(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=uh(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}=AQ(e,t);return Gr(i,dh(t,s,a,A,n))}else return Gr(i,Do(t,A,n))}function fh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function ac(t,A,e){let n=t.node(e);return fh(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 ys(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 dh(t,A,e,n,r){let i=t.depth>r&&ac(t,A,r+1),s=n.depth>r&&ac(e,n,r+1),a=[];return ys(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(fh(i,s),Vr(Gr(i,dh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Do(t,A,r+1)),a),ys(A,e,r,a),s&&Vr(Gr(s,Do(e,n,r+1)),a)),ys(n,null,r,a),new J(a)}function Do(t,A,e){let n=[];if(ys(null,t,e,n),t.depth>e){let r=ac(t,A,e+1);Vr(Gr(r,Do(t,A,e+1)),n)}return ys(A,null,e,n),new J(n)}function AQ(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(J.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Es{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 YA.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 ko(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 Es(e,n,i)}static resolveCached(A,e){for(let r=0;r<lc.length;r++){let i=lc[r];if(i.pos==e&&i.doc==A)return i}let n=lc[cc]=Es.resolve(A,e);return cc=(cc+1)%eQ,n}}let lc=[],cc=0,eQ=12;class ko{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 tQ=Object.create(null);let Wr=class rh{constructor(A,e,n,r=YA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||J.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&&Mo(this.attrs,e||A.defaultAttrs||tQ)&&YA.sameSet(this.marks,n||YA.none)}copy(A=null){return A==this.content?this:new rh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new rh(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 jE(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 Es.resolveCached(this,A)}resolveNoCache(A){return Es.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()+")"),hh(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=J.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=YA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!YA.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=J.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ro 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):hh(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 Ro(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ro(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 hh(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 nQ(A,e);if(n.next==null)return $r.empty;let r=ph(n);n.next&&n.err("Unexpected trailing text");let i=cQ(lQ(r));return uQ(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 J.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:h}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let g=i(h,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 nQ{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 ph(t){let A=[];do A.push(rQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function rQ(t){let A=[];do A.push(iQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function iQ(t){let A=aQ(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=sQ(t,A);else break;return A}function gh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function sQ(t,A){let e=gh(t),n=e;return t.eat(",")&&(t.next!="}"?n=gh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function oQ(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 aQ(t){if(t.eat("(")){let A=ph(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=oQ(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 lQ(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 Bh(t,A){return A-t}function mh(t,A){let e=[];return n(A),e.sort(Bh);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 cQ(t){let A=Object.create(null);return e(mh(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]);mh(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(Bh);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function uQ(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 wh(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 Ch(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 yh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new fQ(t[e]);return A}let Eh=class zy{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=yh(n.attrs),this.defaultAttrs=wh(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:Ch(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),J.from(e),YA.setFrom(n))}createChecked(A=null,e,n){return e=J.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,YA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=J.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(J.empty,!0);return i?new Wr(this,A,e.append(i),YA.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:YA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new zy(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 fQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Ko{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=yh(r.attrs),this.excluded=null;let i=wh(this.attrs);this.instance=i?new YA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new YA(this,Ch(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Ko(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 dQ{constructor(A){this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=Le.from(A.nodes),e.marks=Le.from(A.marks||{}),this.nodes=Eh.compile(this.spec.nodes,this),this.marks=Ko.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;i.contentMatch=n[s]||(n[s]=$r.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=a=="_"?null:a?Qh(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==""?[]:Qh(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 Eh){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 Ro(n,n.defaultAttrs,A,YA.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 YA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Qh(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}class Ei{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.forEach(n=>{n.tag?this.tags.push(n):n.style&&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 vh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new vh(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(gQ(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=Ih(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=Ih(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Ei(A,Ei.schemaRules(A)))}}const Fh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},hQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Uh={ol:!0,ul:!0},Po=1,Vo=2,Qs=4;function bh(t,A,e){return A!=null?(A?Po:0)|(A==="full"?Vo:0):t&&t.whitespace=="pre"?Po|Vo:e&~Qs}class Go{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=YA.none,this.stashMarks=[],this.match=s||(a&Qs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(J.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&Po)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let e=J.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(J.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):mQ(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&&!Fh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class vh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=bh(null,e.preserveWhitespace,0)|(n?Qs:0);r?i=new Go(r.type,r.attrs,YA.none,YA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Go(null,null,YA.none,YA.none,!0,null,s):i=new Go(A.schema.topNodeType,null,YA.none,YA.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.getAttribute("style");if(!n)return e();let r=this.readStyles(BQ(n));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&Vo||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Po)n.options&Vo?e=e.replace(/\r\n?/g,`
|
|
4
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;Uh.hasOwnProperty(n)&&this.parser.normalizeLists&&pQ(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:hQ.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(Fh.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=JA.none,n=JA.none;for(let r=0;r<A.length;r+=2)for(let i=void 0;;){let s=this.parser.matchStyle(A[r],A[r+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(a=>{s.clearMark(a)&&(n=a.addToSet(n))}):e=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(e),s.consuming===!1)i=s;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=bh(A,r,i.options);i.options&Qs&&i.content.length==0&&(s|=Qs),this.nodes.push(new Go(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=wQ(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 pQ(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&Uh.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function gQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function BQ(t){let A=/\s*([\w-]+)\s*:\s*([^;]+)/g,e,n=[];for(;e=A.exec(t);)n.push(e[1],e[2].trim());return n}function Ih(t){let A={};for(let e in t)A[e]=t[e];return A}function mQ(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 wQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class gn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=uc(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}=gn.renderSpec(uc(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&&gn.renderSpec(uc(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 h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),c[f]):a.setAttribute(f,c[f])}}for(let f=u;f<e.length;f++){let h=e[f];if(h===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:m}=gn.renderSpec(A,h,n);if(a.appendChild(g),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:a,contentDOM:s}}static fromSchema(A){return A.cached.domSerializer||(A.cached.domSerializer=new gn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Sh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Sh(A.marks)}}function Sh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function uc(t){return t.document||window.document}const Th=65535,_h=Math.pow(2,16);function CQ(t,A){return t+A*_h}function xh(t){return t&Th}function yQ(t){return(t-(t&Th))/_h}const Oh=1,Lh=2,Wo=4,Hh=8;class fc{constructor(A,e,n){this.pos=A,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Hh)>0}get deletedBefore(){return(this.delInfo&(Oh|Wo))>0}get deletedAfter(){return(this.delInfo&(Lh|Wo))>0}get deletedAcross(){return(this.delInfo&Wo)>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=xh(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+yQ(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],h=c+u;if(A<=h){let g=u?A==c?-1:A==h?1:e:e,m=c+r+(g<0?0:f);if(n)return m;let w=A==(e<0?c:h)?null:CQ(a/3,A-c),U=A==c?Lh:A==h?Oh:Wo;return(e<0?A!=c:A!=h)&&(U|=Hh),new fc(m,U,w)}r+=f-u}return n?A+r:new fc(A+r,0,null)}touches(A,e){let n=0,r=xh(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 Qi{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 Qi(this.maps,this.mirror,A,e)}copy(){return new Qi(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 Qi;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 fc(A,r,null)}}const dc=Object.create(null);class We{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=dc[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 dc)throw new RangeError("Duplicate use of step JSON ID "+A);return dc[A]=e,e.prototype.jsonID=A,e}}class pe{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new pe(A,null)}static fail(A){return new pe(null,A)}static fromReplace(A,e,n,r){try{return pe.ok(A.replace(e,n,r))}catch(i){if(i instanceof No)return pe.fail(i.message);throw i}}}function hc(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(hc(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return J.fromArray(n)}class nr extends We{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 AA(hc(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 pe.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 nr(e.pos,n.pos,this.mark)}merge(A){return A instanceof nr&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new nr(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 nr(e.from,e.to,A.markFromJSON(e.mark))}}We.jsonID("addMark",nr);class Bn extends We{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 AA(hc(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return pe.fromReplace(A,this.from,this.to,n)}invert(){return new nr(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))}}We.jsonID("removeMark",Bn);class rr extends We{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return pe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return pe.fromReplace(A,this.pos,this.pos+1,new AA(J.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 rr(this.pos,e.marks[r]);return new rr(this.pos,this.mark)}}return new Fi(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new rr(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 rr(e.pos,A.markFromJSON(e.mark))}}We.jsonID("addNodeMark",rr);class Fi extends We{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return pe.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return pe.fromReplace(A,this.pos,this.pos+1,new AA(J.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new rr(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Fi(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 Fi(e.pos,A.markFromJSON(e.mark))}}We.jsonID("removeNodeMark",Fi);class He extends We{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&pc(A,this.from,this.to)?pe.fail("Structure replace would overwrite content"):pe.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 He(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 He(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof He)||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?AA.empty:new AA(this.slice.content.append(A.slice.content),this.slice.openStart,A.slice.openEnd);return new He(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?AA.empty:new AA(A.slice.content.append(this.slice.content),A.slice.openStart,this.slice.openEnd);return new He(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 He(e.from,e.to,AA.fromJSON(A,e.slice),!!e.structure)}}We.jsonID("replace",He);class Ie extends We{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&&(pc(A,this.from,this.gapFrom)||pc(A,this.gapTo,this.to)))return pe.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return pe.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?pe.fromReplace(A,this.from,this.to,n):pe.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 Ie(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=A.map(this.gapFrom,-1),i=A.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||i>n.pos?null:new Ie(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 Ie(e.from,e.to,e.gapFrom,e.gapTo,AA.fromJSON(A,e.slice),e.insert,!!e.structure)}}We.jsonID("replaceAround",Ie);function pc(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 EQ(t,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(c,u,f)=>{if(!c.isInline)return;let h=c.marks;if(!n.isInSet(h)&&f.type.allowsMarkType(n.type)){let g=Math.max(u,A),m=Math.min(u+c.nodeSize,e),w=n.addToSet(h);for(let U=0;U<h.length;U++)h[U].isInSet(w)||(s&&s.to==g&&s.mark.eq(h[U])?s.to=m:r.push(s=new Bn(g,m,h[U])));a&&a.to==g?a.to=m:i.push(a=new nr(g,m,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function QQ(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 Ko){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 h=c[f],g;for(let m=0;m<r.length;m++){let w=r[m];w.step==i-1&&h.eq(r[m].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:h,from:Math.max(a,A),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function FQ(t,A,e,n=e.contentMatch){let r=t.doc.nodeAt(A),i=[],s=A+1;for(let a=0;a<r.childCount;a++){let c=r.child(a),u=s+c.nodeSize,f=n.matchType(c.type);if(!f)i.push(new He(s,u,AA.empty));else{n=f;for(let h=0;h<c.marks.length;h++)e.allowsMarkType(c.marks[h].type)||t.step(new Bn(s,u,c.marks[h]));if(c.isText&&!e.spec.code){let h,g=/\r?\n|\r/g,m;for(;h=g.exec(c.text);)m||(m=new AA(J.from(e.schema.text(" ",e.allowedMarks(c.marks))),0,0)),i.push(new He(s+h.index,s+h.index+h[0].length,m))}}s=u}if(!n.validEnd){let a=n.fillBefore(J.empty,!0);t.replace(s,s,new AA(a,0,0))}for(let a=i.length-1;a>=0;a--)t.step(i[a])}function UQ(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function Ui(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||!UQ(r,i,s))break}return null}function bQ(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=J.empty,h=0;for(let w=i,U=!1;w>e;w--)U||n.index(w)>0?(U=!0,f=J.from(n.node(w).copy(f)),h++):c--;let g=J.empty,m=0;for(let w=i,U=!1;w>e;w--)U||r.after(w+1)<r.end(w)?(U=!0,g=J.from(r.node(w).copy(g)),m++):u++;t.step(new Ie(c,u,s,a,new AA(f.append(g),h,m),f.size-h,!0))}function gc(t,A,e=null,n=t){let r=vQ(t,A),i=r&&IQ(n,A);return i?r.map(Mh).concat({type:A,attrs:e}).concat(i.map(Mh)):null}function Mh(t){return{type:t,attrs:null}}function vQ(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 IQ(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 SQ(t,A,e){let n=J.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=J.from(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new Ie(r,i,r,i,new AA(n,0,0),e.length,!0))}function TQ(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)&&_Q(t.doc,t.mapping.slice(i).map(a),n)){t.clearIncompatible(t.mapping.slice(i).map(a,1),n);let c=t.mapping.slice(i),u=c.map(a,1),f=c.map(a+s.nodeSize,1);return t.step(new Ie(u,f,u+1,f-1,new AA(J.from(n.create(r,null,s.marks)),0,0),1,!0)),!1}})}function _Q(t,A,e){let n=t.resolve(A),r=n.index();return n.parent.canReplaceWith(r,r+1,e)}function xQ(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 Ie(A,A+i.nodeSize,A+1,A+i.nodeSize-1,new AA(J.from(s),0,0),1,!0))}function bi(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 h=r.node(u),g=r.index(u);if(h.type.spec.isolating)return!1;let m=h.content.cutByIndex(g,h.childCount),w=n&&n[f+1];w&&(m=m.replaceChild(0,w.type.create(w.attrs)));let U=n&&n[f]||h;if(!h.canReplace(g+1,h.childCount)||!U.type.validContent(m))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 OQ(t,A,e=1,n){let r=t.doc.resolve(A),i=J.empty,s=J.empty;for(let a=r.depth,c=r.depth-e,u=e-1;a>c;a--,u--){i=J.from(r.node(a).copy(i));let f=n&&n[u];s=J.from(f?f.type.create(f.attrs,s):r.node(a).copy(s))}t.step(new He(A,A,new AA(i.append(s),e,e),!0))}function ir(t,A){let e=t.resolve(A),n=e.index();return Nh(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(n,n+1)}function Nh(t,A){return!!(t&&A&&!t.isLeaf&&t.canAppend(A))}function $o(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&&Nh(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 LQ(t,A,e){let n=new He(A-e,A+e,AA.empty,!0);t.step(n)}function HQ(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 Dh(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 h=u.contentMatchAt(c).findWrapping(r.firstChild.type);f=h&&u.canReplaceWith(c,c,h[0])}if(f)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function Bc(t,A,e=A,n=AA.empty){if(A==e&&!n.size)return null;let r=t.resolve(A),i=t.resolve(e);return kh(r,i,n)?new He(A,e,n):new MQ(r,i,n).fit()}function kh(t,A,e){return!e.openStart&&!e.openEnd&&t.start()==A.start()&&t.parent.canReplace(t.index(),A.index(),e.content)}class MQ{constructor(A,e,n){this.$from=A,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=J.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=J.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 AA(i,s,a);return A>-1?new Ie(n.pos,A,this.$to.pos,this.$to.end(),c,e):c.size||n.pos!=this.$to.pos?new He(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=mc(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,h=null;if(e==1&&(s?u.matchType(s.type)||(h=u.fillBefore(J.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:h};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=mc(A,e);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new AA(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=mc(A,e);if(r.childCount<=1&&e>0){let i=A.size-e<=e+r.size;this.unplaced=new AA(Fs(A,e-1,1),e-1,i?e-1:n)}else this.unplaced=new AA(Fs(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 U=0;U<i.length;U++)this.openFrontierNode(i[U]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-A,u=0,f=[],{match:h,type:g}=this.frontier[e];if(r){for(let U=0;U<r.childCount;U++)f.push(r.child(U));h=h.matchFragment(r)}let m=a.size+A-(s.content.size-s.openEnd);for(;u<a.childCount;){let U=a.child(u),b=h.matchType(U.type);if(!b)break;u++,(u>1||c==0||U.content.size)&&(h=b,f.push(Rh(U.mark(g.allowedMarks(U.marks)),u==1?c:0,u==a.childCount?m:-1)))}let w=u==a.childCount;w||(m=-1),this.placed=Us(this.placed,e,J.from(f)),this.frontier[e].match=h,w&&m<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let U=0,b=a;U<m;U++){let F=b.lastChild;this.frontier.push({type:F.type,match:F.contentMatchAt(F.childCount)}),b=F.content}this.unplaced=w?A==0?AA.empty:new AA(Fs(s.content,A-1,1),A-1,m<0?s.openEnd:A-1):new AA(Fs(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||!wc(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=wc(A,e,r,n,i);if(s){for(let a=e-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=wc(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=Us(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=Us(this.placed,this.depth,J.from(A.create(e,n))),this.frontier.push({type:A,match:A.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(J.empty,!0);e.childCount&&(this.placed=Us(this.placed,this.frontier.length,e))}}function Fs(t,A,e){return A==0?t.cutByIndex(e,t.childCount):t.replaceChild(0,t.firstChild.copy(Fs(t.firstChild.content,A-1,e)))}function Us(t,A,e){return A==0?t.append(e):t.replaceChild(t.childCount-1,t.lastChild.copy(Us(t.lastChild.content,A-1,e)))}function mc(t,A){for(let e=0;e<A;e++)t=t.firstChild.content;return t}function Rh(t,A,e){if(A<=0)return t;let n=t.content;return A>1&&(n=n.replaceChild(0,Rh(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(J.empty,!0)))),t.copy(n)}function wc(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&&!NQ(e,i.content,s)?a:null}function NQ(t,A,e){for(let n=e;n<A.childCount;n++)if(!t.allowsMarks(A.child(n).marks))return!0;return!1}function DQ(t){return t.spec.defining||t.spec.definingForContent}function kQ(t,A,e,n){if(!n.size)return t.deleteRange(A,e);let r=t.doc.resolve(A),i=t.doc.resolve(e);if(kh(r,i,n))return t.step(new He(A,e,n));let s=Ph(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,m=r.pos-1;g>0;g--,m--){let w=r.node(g).type.spec;if(w.defining||w.definingAsContext||w.isolating)break;s.indexOf(g)>-1?a=g:r.before(g)==m&&s.splice(1,0,-g)}let c=s.indexOf(a),u=[],f=n.openStart;for(let g=n.content,m=0;;m++){let w=g.firstChild;if(u.push(w),m==n.openStart)break;g=w.content}for(let g=f-1;g>=0;g--){let m=u[g],w=DQ(m.type);if(w&&!m.sameMarkup(r.node(Math.abs(a)-1)))f=g;else if(w||!m.type.isTextblock)break}for(let g=n.openStart;g>=0;g--){let m=(g+f+1)%(n.openStart+1),w=u[m];if(w)for(let U=0;U<s.length;U++){let b=s[(U+c)%s.length],F=!0;b<0&&(F=!1,b=-b);let I=r.node(b-1),M=r.index(b-1);if(I.canReplaceWith(M,M,w.type,w.marks))return t.replace(r.before(b),F?i.after(b):e,new AA(Kh(n.content,0,n.openStart,m),m,n.openEnd))}}let h=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(A,e,n),!(t.steps.length>h));g--){let m=s[g];m<0||(A=r.before(m),e=i.after(m))}}function Kh(t,A,e,n,r){if(A<e){let i=t.firstChild;t=t.replaceChild(0,i.copy(Kh(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(J.empty,!0))}return t}function RQ(t,A,e,n){if(!n.isInline&&A==e&&t.doc.resolve(A).parent.content.size){let r=HQ(t.doc,A,n.type);r!=null&&(A=e=r)}t.replaceRange(A,e,new AA(J.from(n),0,0))}function KQ(t,A,e){let n=t.doc.resolve(A),r=t.doc.resolve(e),i=Ph(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 Ph(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 vi extends We{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 pe.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 pe.fromReplace(A,this.pos,this.pos+1,new AA(J.from(r),0,e.isLeaf?0:1))}getMap(){return Ut.empty}invert(A){return new vi(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 vi(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 vi(e.pos,e.attr,e.value)}}We.jsonID("attr",vi);class bs extends We{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 pe.ok(n)}getMap(){return Ut.empty}invert(A){return new bs(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 bs(e.attr,e.value)}}We.jsonID("docAttr",bs);let Ii=class extends Error{};Ii=function t(A){let e=Error.call(this,A);return e.__proto__=t.prototype,e},Ii.prototype=Object.create(Error.prototype),Ii.prototype.constructor=Ii,Ii.prototype.name="TransformError";class PQ{constructor(A){this.doc=A,this.steps=[],this.docs=[],this.mapping=new Qi}get before(){return this.docs.length?this.docs[0]:this.doc}step(A){let e=this.maybeStep(A);if(e.failed)throw new Ii(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=AA.empty){let r=Bc(this.doc,A,e,n);return r&&this.step(r),this}replaceWith(A,e,n){return this.replace(A,e,new AA(J.from(n),0,0))}delete(A,e){return this.replace(A,e,AA.empty)}insert(A,e){return this.replaceWith(A,A,e)}replaceRange(A,e,n){return kQ(this,A,e,n),this}replaceRangeWith(A,e,n){return RQ(this,A,e,n),this}deleteRange(A,e){return KQ(this,A,e),this}lift(A,e){return bQ(this,A,e),this}join(A,e=1){return LQ(this,A,e),this}wrap(A,e){return SQ(this,A,e),this}setBlockType(A,e=A,n,r=null){return TQ(this,A,e,n,r),this}setNodeMarkup(A,e,n=null,r){return xQ(this,A,e,n,r),this}setNodeAttribute(A,e,n){return this.step(new vi(A,e,n)),this}setDocAttribute(A,e){return this.step(new bs(A,e)),this}addNodeMark(A,e){return this.step(new rr(A,e)),this}removeNodeMark(A,e){if(!(e instanceof JA)){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 Fi(A,e)),this}split(A,e=1,n){return OQ(this,A,e,n),this}addMark(A,e,n){return EQ(this,A,e,n),this}removeMark(A,e,n){return QQ(this,A,e,n),this}clearIncompatible(A,e,n){return FQ(this,A,e,n),this}}const Cc=Object.create(null);class EA{constructor(A,e,n){this.$anchor=A,this.$head=e,this.ranges=n||[new VQ(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=AA.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?AA.empty:e),a==0&&Wh(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),Wh(A,n,e.isInline?-1:1))}}static findFrom(A,e,n=!1){let r=A.parent.inlineContent?new wA(A):Si(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?Si(A.node(0),A.node(i),A.before(i+1),A.index(i),e,n):Si(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 nn(A.node(0))}static atStart(A){return Si(A,A,0,0,1)||new nn(A)}static atEnd(A){return Si(A,A,A.content.size,A.childCount,-1)||new nn(A)}static fromJSON(A,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Cc[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 Cc)throw new RangeError("Duplicate use of selection JSON ID "+A);return Cc[A]=e,e.prototype.jsonID=A,e}getBookmark(){return wA.between(this.$anchor,this.$head).getBookmark()}}EA.prototype.visible=!0;class VQ{constructor(A,e){this.$from=A,this.$to=e}}let Vh=!1;function Gh(t){!Vh&&!t.parent.inlineContent&&(Vh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class wA extends EA{constructor(A,e=A){Gh(A),Gh(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 EA.near(n);let r=A.resolve(e.map(this.anchor));return new wA(r.parent.inlineContent?r:n,n)}replace(A,e=AA.empty){if(super.replace(A,e),e==AA.empty){let n=this.$from.marksAcross(this.$to);n&&A.ensureMarks(n)}}eq(A){return A instanceof wA&&A.anchor==this.anchor&&A.head==this.head}getBookmark(){return new Jo(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 wA(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=EA.findFrom(e,n,!0)||EA.findFrom(e,-n,!0);if(i)e=i.$head;else return EA.near(e,n)}return A.parent.inlineContent||(r==0?A=e:(A=(EA.findFrom(A,-n,!0)||EA.findFrom(A,n,!0)).$anchor,A.pos<e.pos!=r<0&&(A=e))),new wA(A,e)}}EA.jsonID("text",wA);class Jo{constructor(A,e){this.anchor=A,this.head=e}map(A){return new Jo(A.map(this.anchor),A.map(this.head))}resolve(A){return wA.between(A.resolve(this.anchor),A.resolve(this.head))}}class cA extends EA{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?EA.near(i):new cA(i)}content(){return new AA(J.from(this.node),0,0)}eq(A){return A instanceof cA&&A.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new yc(this.anchor)}static fromJSON(A,e){if(typeof e.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new cA(A.resolve(e.anchor))}static create(A,e){return new cA(A.resolve(e))}static isSelectable(A){return!A.isText&&A.type.spec.selectable!==!1}}cA.prototype.visible=!1,EA.jsonID("node",cA);class yc{constructor(A){this.anchor=A}map(A){let{deleted:e,pos:n}=A.mapResult(this.anchor);return e?new Jo(n,n):new yc(n)}resolve(A){let e=A.resolve(this.anchor),n=e.nodeAfter;return n&&cA.isSelectable(n)?new cA(e):EA.near(e)}}class nn extends EA{constructor(A){super(A.resolve(0),A.resolve(A.content.size))}replace(A,e=AA.empty){if(e==AA.empty){A.delete(0,A.doc.content.size);let n=EA.atStart(A.doc);n.eq(A.selection)||A.setSelection(n)}else super.replace(A,e)}toJSON(){return{type:"all"}}static fromJSON(A){return new nn(A)}map(A){return new nn(A)}eq(A){return A instanceof nn}getBookmark(){return GQ}}EA.jsonID("all",nn);const GQ={map(){return this},resolve(t){return new nn(t)}};function Si(t,A,e,n,r,i=!1){if(A.inlineContent)return wA.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&&cA.isSelectable(a))return cA.create(t,e-(r<0?a.nodeSize:0))}else{let c=Si(t,a,e+r,r<0?a.childCount:0,r,i);if(c)return c}e+=a.nodeSize*r}return null}function Wh(t,A,e){let n=t.steps.length-1;if(n<A)return;let r=t.steps[n];if(!(r instanceof He||r instanceof Ie))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(EA.near(t.doc.resolve(s),e))}const $h=1,Xo=2,Jh=4;class WQ extends PQ{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|$h)&~Xo,this.storedMarks=null,this}get selectionSet(){return(this.updated&$h)>0}setStoredMarks(A){return this.storedMarks=A,this.updated|=Xo,this}ensureMarks(A){return JA.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&Xo)>0}addStep(A,e){super.addStep(A,e),this.updated=this.updated&~Xo,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)||JA.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(EA.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 Xh(t,A){return!A||!t?t:t.bind(A)}class vs{constructor(A,e,n){this.name=A,this.init=Xh(e.init,n),this.apply=Xh(e.apply,n)}}const $Q=[new vs("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new vs("selection",{init(t,A){return t.selection||EA.atStart(A.doc)},apply(t){return t.selection}}),new vs("storedMarks",{init(t){return t.storedMarks||null},apply(t,A,e,n){return n.selection.$cursor?t.storedMarks:null}}),new vs("scrollToSelection",{init(){return 0},apply(t,A){return t.scrolledIntoView?A+1:A}})];class Ec{constructor(A,e){this.schema=A,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=$Q.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 vs(n.key,n.spec.state,n))})}}class Ti{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 h=0;h<this.config.plugins.length;h++)r.push(h<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 Ti(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 WQ(this)}static create(A){let e=new Ec(A.doc?A.doc.type.schema:A.schema,A.plugins),n=new Ti(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 Ec(this.schema,A.plugins),n=e.fields,r=new Ti(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 Ec(A.schema,A.plugins),i=new Ti(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=EA.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 Yh(t,A,e){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(A):n=="handleDOMEvents"&&(r=Yh(r,A,{})),e[n]=r}return e}class gt{constructor(A){this.spec=A,this.props={},A.props&&Yh(A.props,this,this.props),this.key=A.key?A.key.key:zh("plugin")}getState(A){return A[this.key]}}const Qc=Object.create(null);function zh(t){return t in Qc?t+"$"+ ++Qc[t]:(Qc[t]=0,t+"$")}class mn{constructor(A="key"){this.key=zh(A)}get(A){return A.config.pluginsByKey[this.key]}getState(A){return A[this.key]}}const tt=function(t){for(var A=0;;A++)if(t=t.previousSibling,!t)return A},Is=function(t){let A=t.assignedSlot||t.parentNode;return A&&A.nodeType==11?A.host:A};let qh=null;const Ln=function(t,A,e){let n=qh||(qh=document.createRange());return n.setEnd(t,e??t.nodeValue.length),n.setStart(t,A||0),n},Jr=function(t,A,e,n){return e&&(Zh(t,A,e,n,-1)||Zh(t,A,e,n,1))},JQ=/^(img|br|input|textarea|hr)$/i;function Zh(t,A,e,n,r){for(;;){if(t==e&&A==n)return!0;if(A==(r<0?0:wn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Fc(t)||JQ.test(t.nodeName)||t.contentEditable=="false")return!1;A=tt(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?wn(t):0}else return!1}}function wn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function XQ(t,A,e){for(let n=A==0,r=A==wn(t);n||r;){if(t==e)return!0;let i=tt(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==wn(t)}}function Fc(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 Yo=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 YQ(t){let A=t.activeElement;for(;A&&A.shadowRoot;)A=A.shadowRoot.activeElement;return A}function zQ(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 Cn=typeof navigator<"u"?navigator:null,jh=typeof document<"u"?document:null,sr=Cn&&Cn.userAgent||"",Uc=/Edge\/(\d+)/.exec(sr),Ap=/MSIE \d/.exec(sr),bc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sr),Bt=!!(Ap||bc||Uc),or=Ap?document.documentMode:bc?+bc[1]:Uc?+Uc[1]:0,rn=!Bt&&/gecko\/(\d+)/i.test(sr);rn&&+(/Firefox\/(\d+)/.exec(sr)||[0,0])[1];const vc=!Bt&&/Chrome\/(\d+)/.exec(sr),$e=!!vc,qQ=vc?+vc[1]:0,nt=!Bt&&!!Cn&&/Apple Computer/.test(Cn.vendor),_i=nt&&(/Mobile\/\w+/.test(sr)||!!Cn&&Cn.maxTouchPoints>2),kt=_i||(Cn?/Mac/.test(Cn.platform):!1),ZQ=Cn?/Win/.test(Cn.platform):!1,sn=/Android \d/.test(sr),Ss=!!jh&&"webkitFontSmoothing"in jh.documentElement.style,jQ=Ss?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function AF(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Hn(t,A){return typeof t=="number"?t:t[A]}function eF(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 ep(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=Is(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?AF(i):eF(a),f=0,h=0;if(A.top<u.top+Hn(n,"top")?h=-(u.top-A.top+Hn(r,"top")):A.bottom>u.bottom-Hn(n,"bottom")&&(h=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||h)if(c)i.defaultView.scrollBy(f,h);else{let g=a.scrollLeft,m=a.scrollTop;h&&(a.scrollTop+=h),f&&(a.scrollLeft+=f);let w=a.scrollLeft-g,U=a.scrollTop-m;A={left:A.left-w,top:A.top-U,right:A.right-w,bottom:A.bottom-U}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function tF(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:tp(t.dom)}}function tp(t){let A=[],e=t.ownerDocument;for(let n=t;n&&(A.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=e);n=Is(n));return A}function nF({refDOM:t,refTop:A,stack:e}){let n=t?t.getBoundingClientRect().top:0;np(e,n==0?0:n-A)}function np(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 xi=null;function rF(t){if(t.setActive)return t.setActive();if(xi)return t.focus(xi);let A=tp(t);t.focus(xi==null?{get preventScroll(){return xi={preventScroll:!0},!0}}:void 0),xi||(xi=!1,np(A,0))}function rp(t,A){let e,n=2e8,r,i=0,s=A.top,a=A.top,c,u;for(let f=t.firstChild,h=0;f;f=f.nextSibling,h++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=Ln(f).getClientRects();else continue;for(let m=0;m<g.length;m++){let w=g[m];if(w.top<=s&&w.bottom>=a){s=Math.max(w.bottom,s),a=Math.min(w.top,a);let U=w.left>A.left?w.left-A.left:w.right<A.left?A.left-w.right:0;if(U<n){e=f,n=U,r=U&&e.nodeType==3?{left:w.right<A.left?w.right:w.left,top:A.top}:A,f.nodeType==1&&U&&(i=h+(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=h+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}:rp(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=ar(n,1);if(i.top!=i.bottom&&Ic(A,i))return{node:t,offset:r+(A.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function Ic(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 oF(t,A,e){let{node:n,offset:r}=rp(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 aF(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&&!s||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,c.left>n.left||c.top>n.top?r=a.posBefore:(c.right<n.left||c.bottom<n.top)&&(r=a.posAfter)),!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 ip(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(Ic(A,u))return ip(s,A,u)}}if((i=(i+1)%n)==r)break}return t}function lF(t,A){let e=t.dom.ownerDocument,n,r=0,i=zQ(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(!Ic(A,u)||(s=ip(t.dom,A,u),!s))return null}if(nt)for(let u=s;n&&u;u=Is(u))u.draggable&&(n=void 0);if(s=sF(s,A),n){if(rn&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let f=n.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=A.left&&h.bottom>A.top&&r++}let u;Ss&&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=aF(t,n,r,A))}a==null&&(a=oF(t,s,A));let c=t.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function sp(t){return t.top<t.bottom||t.left<t.right}function ar(t,A){let e=t.getClientRects();if(e.length){let n=e[A<0?0:e.length-1];if(sp(n))return n}return Array.prototype.find.call(e,sp)||t.getBoundingClientRect()}const cF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function op(t,A,e){let{node:n,offset:r,atom:i}=t.docView.domFromPos(A,e<0?-1:1),s=Ss||rn;if(n.nodeType==3)if(s&&(cF.test(n.nodeValue)||(e<0?!r:r==n.nodeValue.length))){let c=ar(Ln(n,r,r),e);if(rn&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ar(Ln(n,r-1,r-1),-1);if(u.top==c.top){let f=ar(Ln(n,r,r+1),-1);if(f.top!=c.top)return Ts(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++,Ts(ar(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(A-(i||0)).parent.inlineContent){if(i==null&&r&&(e<0||r==wn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Sc(c.getBoundingClientRect(),!1)}if(i==null&&r<wn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Sc(c.getBoundingClientRect(),!0)}return Sc(n.getBoundingClientRect(),e>=0)}if(i==null&&r&&(e<0||r==wn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?Ln(c,wn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Ts(ar(u,1),!1)}if(i==null&&r<wn(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 Ts(ar(u,-1),!0)}return Ts(ar(n.nodeType==3?Ln(n):n,-e),e>=0)}function Ts(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 Sc(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 ap(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 uF(t,A,e){let n=A.selection,r=e=="up"?n.$from:n.$to;return ap(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=op(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 fF=/[\u0590-\u08ac]/;function dF(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!fF.test(n.parent.textContent)||!a.modify?e=="left"||e=="backward"?i:s:ap(t,A,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:h}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",e,"character");let m=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:w,focusOffset:U}=t.domSelectionRange(),b=w&&!m.contains(w.nodeType==1?w:w.parentNode)||c==w&&u==U;try{a.collapse(f,h),c&&(c!=f||u!=h)&&a.extend&&a.extend(c,u)}catch{}return g!=null&&(a.caretBidiLevel=g),b})}let lp=null,cp=null,up=!1;function hF(t,A,e){return lp==A&&cp==e?up:(lp=A,cp=e,up=e=="up"||e=="down"?uF(t,A,e):dF(t,A,e))}const Rt=0,fp=1,Yr=2,yn=3;class _s{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>tt(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 pp){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 dp&&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?tt(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?tt(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 h=a;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=tt(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 h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){i=tt(h.dom);break}e+=h.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,m=0;g<this.children.length;g++){let w=this.children[g],U=m+w.size;if(i>m&&s<U)return w.setSelection(A-m-w.border,e-m-w.border,n,r);m=U}let a=this.domFromPos(A,A?-1:1),c=e==A?a:this.domFromPos(e,e?-1:1),u=n.getSelection(),f=!1;if((rn||nt)&&A==e){let{node:g,offset:m}=a;if(g.nodeType==3){if(f=!!(m&&g.nodeValue[m-1]==`
|
|
6
|
-
`),f&&m==g.nodeValue.length)for(let w=g,U;w;w=w.parentNode){if(U=w.nextSibling){U.nodeName=="BR"&&(a=c={node:U.parentNode,offset:tt(U)+1});break}let b=w.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let w=g.childNodes[m-1];f=w&&(w.nodeName=="BR"||w.contentEditable=="false")}}if(rn&&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&&nt)&&Jr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Jr(c.node,c.offset,u.focusNode,u.focusOffset))return;let h=!1;if((u.extend||A==e)&&!f){u.collapse(a.node,a.offset);try{A!=e&&u.extend(c.node,c.offset),h=!0}catch{}}if(!h){if(A>e){let m=a;a=c,c=m}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:fp,A==a&&e==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=yn:i.markDirty(A-a,e-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Yr:yn}n=s}this.dirty=Yr}markParentsDirty(){let A=1;for(let e=this.parent;e;e=e.parent,A++){let n=A==1?Yr:fp;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class dp extends _s{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 pF extends _s{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 _s{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=gn.renderSpec(document,e.type.spec.toDOM(e,n))),new zr(A,e,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&yn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(A){return this.dirty!=yn&&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=xc(i,e,s,n)),A>0&&(i=xc(i,0,A,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class lr extends _s{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,h=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:h}=gn.renderSpec(document,e.type.spec.toDOM(e)));!h&&!e.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),e.type.spec.draggable&&(f.draggable=!0));let g=f;return f=mp(f,n,e),u?c=new gF(A,e,n,r,f,h||null,g,u,i,s+1):e.isText?new zo(A,e,n,r,f,g,i):new lr(A,e,n,r,f,h||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=()=>J.empty)}return A}matchesNode(A,e,n){return this.dirty==Rt&&A.eq(this.node)&&_c(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 mF(this,s&&s.node,A);yF(this.node,this.innerDeco,(u,f,h)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,A):u.type.side>=0&&!h&&c.syncToMarks(f==this.node.childCount?JA.none:this.node.child(f).marks,n,A),c.placeWidget(u,A,r)},(u,f,h,g)=>{c.syncToMarks(u.marks,n,A);let m;c.findNodeMatch(u,f,h,g)||a&&A.state.selection.from>r&&A.state.selection.to<r+u.nodeSize&&(m=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,h,m,A)||c.updateNextNode(u,f,h,A,g,r)||c.addNode(u,f,h,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),gp(this.contentDOM,this.children,A),_i&&EF(this.dom))}localCompositionInfo(A,e){let{from:n,to:r}=A.state.selection;if(!(A.state.selection instanceof wA)||n<e||r>e+this.node.content.size)return null;let i=A.domSelectionRange(),s=QF(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,c=FF(this.node.content,a,n-e,r-e);return c<0?null:{node:s,pos:c,text:a}}else return{node:s,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 pF(this,i,e,r);A.input.compositionNodes.push(s),this.children=xc(this.children,n,n+r.length,A,s)}update(A,e,n,r){return this.dirty==yn||!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(_c(A,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Bp(this.dom,this.nodeDOM,Tc(this.outerDeco,this.node,e),Tc(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 hp(t,A,e,n,r){mp(n,A,t);let i=new lr(void 0,t,A,e,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class zo extends lr{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==yn||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=yn)}get domAtom(){return!1}}class pp extends _s{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 gF extends lr{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==yn)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 gp(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=wp(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof zr){let c=n?n.previousSibling:t.lastChild;gp(s.contentDOM,s.children,e),n=c?c.nextSibling:t.firstChild}}for(;n;)n=wp(n),r=!0;r&&e.trackWrites==t&&(e.trackWrites=null)}const xs=function(t){t&&(this.nodeName=t)};xs.prototype=Object.create(null);const qr=[new xs];function Tc(t,A,e){if(t.length==0)return qr;let n=e?qr[0]:new xs,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new xs(s.nodeName));for(let a in s){let c=s[a];c!=null&&(e&&r.length==1&&r.push(n=new xs(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 Bp(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}BF(r,a||qr[0],s)}return r}function BF(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 mp(t,A,e){return Bp(t,t,qr,Tc(A,e,t.nodeType!=1))}function _c(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 wp(t){let A=t.nextSibling;return t.parentNode.removeChild(t),A}class mF{constructor(A,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=A,this.preMatch=wF(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==yn&&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 lr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let f=c.dom,h,g=this.isLocked(f)&&!(A.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==A.text&&c.dirty!=yn&&_c(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&&(h=this.recreateWrapper(c,A,e,n,r,s)))return this.top.children[this.index]=h,h.contentDOM&&(h.dirty=Yr,h.updateChildren(r,s+1),h.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=lr.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=lr.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 dp(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))&&((nt||$e)&&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 pp(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 wF(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 CF(t,A){return t.type.side-A.type.side}function yF(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,h;for(;s<r.length&&r[s].to==i;){let b=r[s++];b.widget&&(f?(h||(h=[f])).push(b):f=b)}if(f)if(h){h.sort(CF);for(let b=0;b<h.length;b++)e(h[b],u,!!c)}else e(f,u,!!c);let g,m;if(c)m=-1,g=c,c=null;else if(u<t.childCount)m=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 F=0;F<a.length;F++)a[F].to<b&&(b=a[F].to);b<w&&(c=g.cut(b-i),g=g.cut(0,b-i),w=b,m=-1)}let U=g.isInline&&!g.isLeaf?a.filter(b=>!b.inline):a.slice();n(g,U,A.forChild(i,g),m),i=w}}function EF(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 QF(t,A){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&A>0){if(t.childNodes.length>A&&t.childNodes[A].nodeType==3)return t.childNodes[A];t=t.childNodes[A-1],A=wn(t)}else if(t.nodeType==1&&A<t.childNodes.length)t=t.childNodes[A],A=0;else return null}}function FF(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 xc(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 Oc(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(Yo(e)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&cA.isSelectable(f)&&r.parent&&!(f.isInline&&XQ(e.focusNode,e.focusOffset,r.dom))){let h=r.posBefore;u=new cA(s==h?a:n.resolve(h))}}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=Hc(t,c,a,f)}return u}function Cp(t){return t.editable?t.hasFocus():vp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Mn(t,A=!1){let e=t.state.selection;if(Fp(t,e),!!Cp(t)){if(!A&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&$e){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)bF(t);else{let{anchor:n,head:r}=e,i,s;yp&&!(e instanceof wA)&&(e.$from.parent.inlineContent||(i=Ep(t,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(s=Ep(t,e.to))),t.docView.setSelection(n,r,t.root,A),yp&&(i&&Qp(i),s&&Qp(s)),e.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&UF(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const yp=nt||$e&&qQ<63;function Ep(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(nt&&r&&r.contentEditable=="false")return Lc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Lc(r);if(i)return Lc(i)}}function Lc(t){return t.contentEditable="true",nt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Qp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function UF(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(()=>{(!Cp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function bF(t){let A=t.domSelection(),e=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.setEnd(n.parentNode,tt(n)+1):e.setEnd(n,0),e.collapse(!1),A.removeAllRanges(),A.addRange(e),!r&&!t.state.selection.visible&&Bt&&or<=11&&(n.disabled=!0,n.disabled=!1)}function Fp(t,A){if(A instanceof cA){let e=t.docView.descAt(A.from);e!=t.lastSelectedViewDesc&&(Up(t),e&&e.selectNode(),t.lastSelectedViewDesc=e)}else Up(t)}function Up(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Hc(t,A,e,n){return t.someProp("createSelectionBetween",r=>r(t,A,e))||wA.between(A,e,n)}function bp(t){return t.editable&&!t.hasFocus()?!1:vp(t)}function vp(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 vF(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 Mc(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&&EA.findFrom(i,A)}function cr(t,A){return t.dispatch(t.state.tr.setSelection(A).scrollIntoView()),!0}function Ip(t,A,e){let n=t.state.selection;if(n instanceof wA)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 cr(t,new wA(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(A>0?"forward":"backward")){let r=Mc(t.state,A);return r&&r instanceof cA?cr(t,r):!1}else if(!(kt&&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?cA.isSelectable(i)?cr(t,new cA(A<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Ss?cr(t,new wA(t.state.doc.resolve(A<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof cA&&n.node.isInline)return cr(t,new wA(A>0?n.$to:n.$from));{let r=Mc(t.state,A);return r?cr(t,r):!1}}}function qo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Os(t,A){let e=t.pmViewDesc;return e&&e.size==0&&(A<0||t.nextSibling||t.nodeName!="BR")}function Oi(t,A){return A<0?IF(t):SF(t)}function IF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r,i,s=!1;for(rn&&e.nodeType==1&&n<qo(e)&&Os(e.childNodes[n],-1)&&(s=!0);;)if(n>0){if(e.nodeType!=1)break;{let a=e.childNodes[n-1];if(Os(a,-1))r=e,i=--n;else if(a.nodeType==3)e=a,n=e.nodeValue.length;else break}}else{if(Sp(e))break;{let a=e.previousSibling;for(;a&&Os(a,-1);)r=e.parentNode,i=tt(a),a=a.previousSibling;if(a)e=a,n=qo(e);else{if(e=e.parentNode,e==t.dom)break;n=0}}}s?Nc(t,e,n):r&&Nc(t,r,i)}function SF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r=qo(e),i,s;for(;;)if(n<r){if(e.nodeType!=1)break;let a=e.childNodes[n];if(Os(a,1))i=e,s=++n;else break}else{if(Sp(e))break;{let a=e.nextSibling;for(;a&&Os(a,1);)i=a.parentNode,s=tt(a)+1,a=a.nextSibling;if(a)e=a,n=0,r=qo(e);else{if(e=e.parentNode,e==t.dom)break;n=r=0}}}i&&Nc(t,i,s)}function Sp(t){let A=t.pmViewDesc;return A&&A.node&&A.node.isBlock}function TF(t,A){for(;t&&A==t.childNodes.length&&!Fc(t);)A=tt(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 _F(t,A){for(;t&&!A&&!Fc(t);)A=tt(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 Nc(t,A,e){if(A.nodeType!=3){let i,s;(s=TF(A,e))?(A=s,e=0):(i=_F(A,e))&&(A=i,e=i.nodeValue.length)}let n=t.domSelection();if(Yo(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&&Mn(t)},50)}function Tp(t,A){let e=t.state.doc.resolve(A);if(!($e||ZQ)&&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 _p(t,A,e){let n=t.state.selection;if(n instanceof wA&&!n.empty||e.indexOf("s")>-1||kt&&e.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(A<0?"up":"down")){let s=Mc(t.state,A);if(s&&s instanceof cA)return cr(t,s)}if(!r.parent.inlineContent){let s=A<0?r:i,a=n instanceof nn?EA.near(s,A):EA.findFrom(s,A);return a?cr(t,a):!1}return!1}function xp(t,A){if(!(t.state.selection instanceof wA))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 Op(t,A,e){t.domObserver.stop(),A.contentEditable=e,t.domObserver.start()}function xF(t){if(!nt||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;Op(t,n,"true"),setTimeout(()=>Op(t,n,"false"),20)}return!1}function OF(t){let A="";return t.ctrlKey&&(A+="c"),t.metaKey&&(A+="m"),t.altKey&&(A+="a"),t.shiftKey&&(A+="s"),A}function LF(t,A){let e=A.keyCode,n=OF(A);if(e==8||kt&&e==72&&n=="c")return xp(t,-1)||Oi(t,-1);if(e==46&&!A.shiftKey||kt&&e==68&&n=="c")return xp(t,1)||Oi(t,1);if(e==13||e==27)return!0;if(e==37||kt&&e==66&&n=="c"){let r=e==37?Tp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Ip(t,r,n)||Oi(t,r)}else if(e==39||kt&&e==70&&n=="c"){let r=e==39?Tp(t,t.state.selection.from)=="ltr"?1:-1:1;return Ip(t,r,n)||Oi(t,r)}else{if(e==38||kt&&e==80&&n=="c")return _p(t,-1,n)||Oi(t,-1);if(e==40||kt&&e==78&&n=="c")return xF(t)||_p(t,1,n)||Oi(t,1);if(n==(kt?"m":"c")&&(e==66||e==73||e==89||e==90))return!0}return!1}function Lp(t,A){t.someProp("transformCopied",m=>{A=m(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 m=n.firstChild;e.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),n=m.content}let s=t.someProp("clipboardSerializer")||gn.fromSchema(t.state.schema),a=Pp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,f,h=0;for(;u&&u.nodeType==1&&(f=Rp[u.nodeName.toLowerCase()]);){for(let m=f.length-1;m>=0;m--){let w=a.createElement(f[m]);for(;c.firstChild;)w.appendChild(c.firstChild);c.appendChild(w),h++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${h?` -${h}`:""} ${JSON.stringify(e)}`);let g=t.someProp("clipboardTextSerializer",m=>m(A,t))||A.content.textBetween(0,A.content.size,`
|
|
5
|
+
`))}ignoreFallback(A){A.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(A){let e=YA.none,n=YA.none;for(let r=0;r<A.length;r+=2)for(let i=void 0;;){let s=this.parser.matchStyle(A[r],A[r+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(a=>{s.clearMark(a)&&(n=a.addToSet(n))}):e=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(e),s.consuming===!1)i=s;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=bh(A,r,i.options);i.options&Qs&&i.content.length==0&&(s|=Qs),this.nodes.push(new Go(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=wQ(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 pQ(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&Uh.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function gQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function BQ(t){let A=/\s*([\w-]+)\s*:\s*([^;]+)/g,e,n=[];for(;e=A.exec(t);)n.push(e[1],e[2].trim());return n}function Ih(t){let A={};for(let e in t)A[e]=t[e];return A}function mQ(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 wQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class gn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=uc(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}=gn.renderSpec(uc(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&&gn.renderSpec(uc(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 h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),c[f]):a.setAttribute(f,c[f])}}for(let f=u;f<e.length;f++){let h=e[f];if(h===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:m}=gn.renderSpec(A,h,n);if(a.appendChild(g),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:a,contentDOM:s}}static fromSchema(A){return A.cached.domSerializer||(A.cached.domSerializer=new gn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Sh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Sh(A.marks)}}function Sh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function uc(t){return t.document||window.document}const Th=65535,_h=Math.pow(2,16);function CQ(t,A){return t+A*_h}function xh(t){return t&Th}function yQ(t){return(t-(t&Th))/_h}const Oh=1,Lh=2,Wo=4,Hh=8;class fc{constructor(A,e,n){this.pos=A,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Hh)>0}get deletedBefore(){return(this.delInfo&(Oh|Wo))>0}get deletedAfter(){return(this.delInfo&(Lh|Wo))>0}get deletedAcross(){return(this.delInfo&Wo)>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=xh(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+yQ(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],h=c+u;if(A<=h){let g=u?A==c?-1:A==h?1:e:e,m=c+r+(g<0?0:f);if(n)return m;let w=A==(e<0?c:h)?null:CQ(a/3,A-c),U=A==c?Lh:A==h?Oh:Wo;return(e<0?A!=c:A!=h)&&(U|=Hh),new fc(m,U,w)}r+=f-u}return n?A+r:new fc(A+r,0,null)}touches(A,e){let n=0,r=xh(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 Qi{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 Qi(this.maps,this.mirror,A,e)}copy(){return new Qi(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 Qi;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 fc(A,r,null)}}const dc=Object.create(null);class We{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=dc[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 dc)throw new RangeError("Duplicate use of step JSON ID "+A);return dc[A]=e,e.prototype.jsonID=A,e}}class we{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new we(A,null)}static fail(A){return new we(null,A)}static fromReplace(A,e,n,r){try{return we.ok(A.replace(e,n,r))}catch(i){if(i instanceof No)return we.fail(i.message);throw i}}}function hc(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(hc(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return J.fromArray(n)}class nr extends We{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(hc(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 we.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 nr(e.pos,n.pos,this.mark)}merge(A){return A instanceof nr&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new nr(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 nr(e.from,e.to,A.markFromJSON(e.mark))}}We.jsonID("addMark",nr);class Bn extends We{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(hc(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return we.fromReplace(A,this.from,this.to,n)}invert(){return new nr(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))}}We.jsonID("removeMark",Bn);class rr extends We{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return we.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return we.fromReplace(A,this.pos,this.pos+1,new j(J.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 rr(this.pos,e.marks[r]);return new rr(this.pos,this.mark)}}return new Fi(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new rr(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 rr(e.pos,A.markFromJSON(e.mark))}}We.jsonID("addNodeMark",rr);class Fi extends We{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return we.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return we.fromReplace(A,this.pos,this.pos+1,new j(J.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new rr(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new Fi(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 Fi(e.pos,A.markFromJSON(e.mark))}}We.jsonID("removeNodeMark",Fi);class He extends We{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&pc(A,this.from,this.to)?we.fail("Structure replace would overwrite content"):we.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 He(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 He(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof He)||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 He(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 He(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 He(e.from,e.to,j.fromJSON(A,e.slice),!!e.structure)}}We.jsonID("replace",He);class Ie extends We{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&&(pc(A,this.from,this.gapFrom)||pc(A,this.gapTo,this.to)))return we.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return we.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?we.fromReplace(A,this.from,this.to,n):we.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 Ie(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=A.map(this.gapFrom,-1),i=A.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||i>n.pos?null:new Ie(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 Ie(e.from,e.to,e.gapFrom,e.gapTo,j.fromJSON(A,e.slice),e.insert,!!e.structure)}}We.jsonID("replaceAround",Ie);function pc(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 EQ(t,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(c,u,f)=>{if(!c.isInline)return;let h=c.marks;if(!n.isInSet(h)&&f.type.allowsMarkType(n.type)){let g=Math.max(u,A),m=Math.min(u+c.nodeSize,e),w=n.addToSet(h);for(let U=0;U<h.length;U++)h[U].isInSet(w)||(s&&s.to==g&&s.mark.eq(h[U])?s.to=m:r.push(s=new Bn(g,m,h[U])));a&&a.to==g?a.to=m:i.push(a=new nr(g,m,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function QQ(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 Ko){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 h=c[f],g;for(let m=0;m<r.length;m++){let w=r[m];w.step==i-1&&h.eq(r[m].style)&&(g=w)}g?(g.to=u,g.step=i):r.push({style:h,from:Math.max(a,A),to:u,step:i})}}}),r.forEach(s=>t.step(new Bn(s.from,s.to,s.style)))}function FQ(t,A,e,n=e.contentMatch){let r=t.doc.nodeAt(A),i=[],s=A+1;for(let a=0;a<r.childCount;a++){let c=r.child(a),u=s+c.nodeSize,f=n.matchType(c.type);if(!f)i.push(new He(s,u,j.empty));else{n=f;for(let h=0;h<c.marks.length;h++)e.allowsMarkType(c.marks[h].type)||t.step(new Bn(s,u,c.marks[h]));if(c.isText&&!e.spec.code){let h,g=/\r?\n|\r/g,m;for(;h=g.exec(c.text);)m||(m=new j(J.from(e.schema.text(" ",e.allowedMarks(c.marks))),0,0)),i.push(new He(s+h.index,s+h.index+h[0].length,m))}}s=u}if(!n.validEnd){let a=n.fillBefore(J.empty,!0);t.replace(s,s,new j(a,0,0))}for(let a=i.length-1;a>=0;a--)t.step(i[a])}function UQ(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function Ui(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||!UQ(r,i,s))break}return null}function bQ(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=J.empty,h=0;for(let w=i,U=!1;w>e;w--)U||n.index(w)>0?(U=!0,f=J.from(n.node(w).copy(f)),h++):c--;let g=J.empty,m=0;for(let w=i,U=!1;w>e;w--)U||r.after(w+1)<r.end(w)?(U=!0,g=J.from(r.node(w).copy(g)),m++):u++;t.step(new Ie(c,u,s,a,new j(f.append(g),h,m),f.size-h,!0))}function gc(t,A,e=null,n=t){let r=vQ(t,A),i=r&&IQ(n,A);return i?r.map(Mh).concat({type:A,attrs:e}).concat(i.map(Mh)):null}function Mh(t){return{type:t,attrs:null}}function vQ(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 IQ(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 SQ(t,A,e){let n=J.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=J.from(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new Ie(r,i,r,i,new j(n,0,0),e.length,!0))}function TQ(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)&&_Q(t.doc,t.mapping.slice(i).map(a),n)){t.clearIncompatible(t.mapping.slice(i).map(a,1),n);let c=t.mapping.slice(i),u=c.map(a,1),f=c.map(a+s.nodeSize,1);return t.step(new Ie(u,f,u+1,f-1,new j(J.from(n.create(r,null,s.marks)),0,0),1,!0)),!1}})}function _Q(t,A,e){let n=t.resolve(A),r=n.index();return n.parent.canReplaceWith(r,r+1,e)}function xQ(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 Ie(A,A+i.nodeSize,A+1,A+i.nodeSize-1,new j(J.from(s),0,0),1,!0))}function bi(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 h=r.node(u),g=r.index(u);if(h.type.spec.isolating)return!1;let m=h.content.cutByIndex(g,h.childCount),w=n&&n[f+1];w&&(m=m.replaceChild(0,w.type.create(w.attrs)));let U=n&&n[f]||h;if(!h.canReplace(g+1,h.childCount)||!U.type.validContent(m))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 OQ(t,A,e=1,n){let r=t.doc.resolve(A),i=J.empty,s=J.empty;for(let a=r.depth,c=r.depth-e,u=e-1;a>c;a--,u--){i=J.from(r.node(a).copy(i));let f=n&&n[u];s=J.from(f?f.type.create(f.attrs,s):r.node(a).copy(s))}t.step(new He(A,A,new j(i.append(s),e,e),!0))}function ir(t,A){let e=t.resolve(A),n=e.index();return Nh(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(n,n+1)}function Nh(t,A){return!!(t&&A&&!t.isLeaf&&t.canAppend(A))}function $o(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&&Nh(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 LQ(t,A,e){let n=new He(A-e,A+e,j.empty,!0);t.step(n)}function HQ(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 Dh(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 h=u.contentMatchAt(c).findWrapping(r.firstChild.type);f=h&&u.canReplaceWith(c,c,h[0])}if(f)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function Bc(t,A,e=A,n=j.empty){if(A==e&&!n.size)return null;let r=t.resolve(A),i=t.resolve(e);return kh(r,i,n)?new He(A,e,n):new MQ(r,i,n).fit()}function kh(t,A,e){return!e.openStart&&!e.openEnd&&t.start()==A.start()&&t.parent.canReplace(t.index(),A.index(),e.content)}class MQ{constructor(A,e,n){this.$from=A,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=J.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=J.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 Ie(n.pos,A,this.$to.pos,this.$to.end(),c,e):c.size||n.pos!=this.$to.pos?new He(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=mc(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,h=null;if(e==1&&(s?u.matchType(s.type)||(h=u.fillBefore(J.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:h};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=mc(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=mc(A,e);if(r.childCount<=1&&e>0){let i=A.size-e<=e+r.size;this.unplaced=new j(Fs(A,e-1,1),e-1,i?e-1:n)}else this.unplaced=new j(Fs(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 U=0;U<i.length;U++)this.openFrontierNode(i[U]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-A,u=0,f=[],{match:h,type:g}=this.frontier[e];if(r){for(let U=0;U<r.childCount;U++)f.push(r.child(U));h=h.matchFragment(r)}let m=a.size+A-(s.content.size-s.openEnd);for(;u<a.childCount;){let U=a.child(u),b=h.matchType(U.type);if(!b)break;u++,(u>1||c==0||U.content.size)&&(h=b,f.push(Rh(U.mark(g.allowedMarks(U.marks)),u==1?c:0,u==a.childCount?m:-1)))}let w=u==a.childCount;w||(m=-1),this.placed=Us(this.placed,e,J.from(f)),this.frontier[e].match=h,w&&m<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let U=0,b=a;U<m;U++){let Q=b.lastChild;this.frontier.push({type:Q.type,match:Q.contentMatchAt(Q.childCount)}),b=Q.content}this.unplaced=w?A==0?j.empty:new j(Fs(s.content,A-1,1),A-1,m<0?s.openEnd:A-1):new j(Fs(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||!wc(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=wc(A,e,r,n,i);if(s){for(let a=e-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],f=wc(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=Us(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=Us(this.placed,this.depth,J.from(A.create(e,n))),this.frontier.push({type:A,match:A.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(J.empty,!0);e.childCount&&(this.placed=Us(this.placed,this.frontier.length,e))}}function Fs(t,A,e){return A==0?t.cutByIndex(e,t.childCount):t.replaceChild(0,t.firstChild.copy(Fs(t.firstChild.content,A-1,e)))}function Us(t,A,e){return A==0?t.append(e):t.replaceChild(t.childCount-1,t.lastChild.copy(Us(t.lastChild.content,A-1,e)))}function mc(t,A){for(let e=0;e<A;e++)t=t.firstChild.content;return t}function Rh(t,A,e){if(A<=0)return t;let n=t.content;return A>1&&(n=n.replaceChild(0,Rh(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(J.empty,!0)))),t.copy(n)}function wc(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&&!NQ(e,i.content,s)?a:null}function NQ(t,A,e){for(let n=e;n<A.childCount;n++)if(!t.allowsMarks(A.child(n).marks))return!0;return!1}function DQ(t){return t.spec.defining||t.spec.definingForContent}function kQ(t,A,e,n){if(!n.size)return t.deleteRange(A,e);let r=t.doc.resolve(A),i=t.doc.resolve(e);if(kh(r,i,n))return t.step(new He(A,e,n));let s=Ph(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,m=r.pos-1;g>0;g--,m--){let w=r.node(g).type.spec;if(w.defining||w.definingAsContext||w.isolating)break;s.indexOf(g)>-1?a=g:r.before(g)==m&&s.splice(1,0,-g)}let c=s.indexOf(a),u=[],f=n.openStart;for(let g=n.content,m=0;;m++){let w=g.firstChild;if(u.push(w),m==n.openStart)break;g=w.content}for(let g=f-1;g>=0;g--){let m=u[g],w=DQ(m.type);if(w&&!m.sameMarkup(r.node(Math.abs(a)-1)))f=g;else if(w||!m.type.isTextblock)break}for(let g=n.openStart;g>=0;g--){let m=(g+f+1)%(n.openStart+1),w=u[m];if(w)for(let U=0;U<s.length;U++){let b=s[(U+c)%s.length],Q=!0;b<0&&(Q=!1,b=-b);let I=r.node(b-1),M=r.index(b-1);if(I.canReplaceWith(M,M,w.type,w.marks))return t.replace(r.before(b),Q?i.after(b):e,new j(Kh(n.content,0,n.openStart,m),m,n.openEnd))}}let h=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(A,e,n),!(t.steps.length>h));g--){let m=s[g];m<0||(A=r.before(m),e=i.after(m))}}function Kh(t,A,e,n,r){if(A<e){let i=t.firstChild;t=t.replaceChild(0,i.copy(Kh(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(J.empty,!0))}return t}function RQ(t,A,e,n){if(!n.isInline&&A==e&&t.doc.resolve(A).parent.content.size){let r=HQ(t.doc,A,n.type);r!=null&&(A=e=r)}t.replaceRange(A,e,new j(J.from(n),0,0))}function KQ(t,A,e){let n=t.doc.resolve(A),r=t.doc.resolve(e),i=Ph(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 Ph(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 vi extends We{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 we.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 we.fromReplace(A,this.pos,this.pos+1,new j(J.from(r),0,e.isLeaf?0:1))}getMap(){return Ut.empty}invert(A){return new vi(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 vi(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 vi(e.pos,e.attr,e.value)}}We.jsonID("attr",vi);class bs extends We{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 we.ok(n)}getMap(){return Ut.empty}invert(A){return new bs(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 bs(e.attr,e.value)}}We.jsonID("docAttr",bs);let Ii=class extends Error{};Ii=function t(A){let e=Error.call(this,A);return e.__proto__=t.prototype,e},Ii.prototype=Object.create(Error.prototype),Ii.prototype.constructor=Ii,Ii.prototype.name="TransformError";class PQ{constructor(A){this.doc=A,this.steps=[],this.docs=[],this.mapping=new Qi}get before(){return this.docs.length?this.docs[0]:this.doc}step(A){let e=this.maybeStep(A);if(e.failed)throw new Ii(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=Bc(this.doc,A,e,n);return r&&this.step(r),this}replaceWith(A,e,n){return this.replace(A,e,new j(J.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 kQ(this,A,e,n),this}replaceRangeWith(A,e,n){return RQ(this,A,e,n),this}deleteRange(A,e){return KQ(this,A,e),this}lift(A,e){return bQ(this,A,e),this}join(A,e=1){return LQ(this,A,e),this}wrap(A,e){return SQ(this,A,e),this}setBlockType(A,e=A,n,r=null){return TQ(this,A,e,n,r),this}setNodeMarkup(A,e,n=null,r){return xQ(this,A,e,n,r),this}setNodeAttribute(A,e,n){return this.step(new vi(A,e,n)),this}setDocAttribute(A,e){return this.step(new bs(A,e)),this}addNodeMark(A,e){return this.step(new rr(A,e)),this}removeNodeMark(A,e){if(!(e instanceof YA)){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 Fi(A,e)),this}split(A,e=1,n){return OQ(this,A,e,n),this}addMark(A,e,n){return EQ(this,A,e,n),this}removeMark(A,e,n){return QQ(this,A,e,n),this}clearIncompatible(A,e,n){return FQ(this,A,e,n),this}}const Cc=Object.create(null);class EA{constructor(A,e,n){this.$anchor=A,this.$head=e,this.ranges=n||[new VQ(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&&Wh(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),Wh(A,n,e.isInline?-1:1))}}static findFrom(A,e,n=!1){let r=A.parent.inlineContent?new CA(A):Si(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?Si(A.node(0),A.node(i),A.before(i+1),A.index(i),e,n):Si(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 nn(A.node(0))}static atStart(A){return Si(A,A,0,0,1)||new nn(A)}static atEnd(A){return Si(A,A,A.content.size,A.childCount,-1)||new nn(A)}static fromJSON(A,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Cc[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 Cc)throw new RangeError("Duplicate use of selection JSON ID "+A);return Cc[A]=e,e.prototype.jsonID=A,e}getBookmark(){return CA.between(this.$anchor,this.$head).getBookmark()}}EA.prototype.visible=!0;class VQ{constructor(A,e){this.$from=A,this.$to=e}}let Vh=!1;function Gh(t){!Vh&&!t.parent.inlineContent&&(Vh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class CA extends EA{constructor(A,e=A){Gh(A),Gh(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 EA.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 Jo(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=EA.findFrom(e,n,!0)||EA.findFrom(e,-n,!0);if(i)e=i.$head;else return EA.near(e,n)}return A.parent.inlineContent||(r==0?A=e:(A=(EA.findFrom(A,-n,!0)||EA.findFrom(A,n,!0)).$anchor,A.pos<e.pos!=r<0&&(A=e))),new CA(A,e)}}EA.jsonID("text",CA);class Jo{constructor(A,e){this.anchor=A,this.head=e}map(A){return new Jo(A.map(this.anchor),A.map(this.head))}resolve(A){return CA.between(A.resolve(this.anchor),A.resolve(this.head))}}class uA extends EA{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?EA.near(i):new uA(i)}content(){return new j(J.from(this.node),0,0)}eq(A){return A instanceof uA&&A.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new yc(this.anchor)}static fromJSON(A,e){if(typeof e.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new uA(A.resolve(e.anchor))}static create(A,e){return new uA(A.resolve(e))}static isSelectable(A){return!A.isText&&A.type.spec.selectable!==!1}}uA.prototype.visible=!1,EA.jsonID("node",uA);class yc{constructor(A){this.anchor=A}map(A){let{deleted:e,pos:n}=A.mapResult(this.anchor);return e?new Jo(n,n):new yc(n)}resolve(A){let e=A.resolve(this.anchor),n=e.nodeAfter;return n&&uA.isSelectable(n)?new uA(e):EA.near(e)}}class nn extends EA{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=EA.atStart(A.doc);n.eq(A.selection)||A.setSelection(n)}else super.replace(A,e)}toJSON(){return{type:"all"}}static fromJSON(A){return new nn(A)}map(A){return new nn(A)}eq(A){return A instanceof nn}getBookmark(){return GQ}}EA.jsonID("all",nn);const GQ={map(){return this},resolve(t){return new nn(t)}};function Si(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&&uA.isSelectable(a))return uA.create(t,e-(r<0?a.nodeSize:0))}else{let c=Si(t,a,e+r,r<0?a.childCount:0,r,i);if(c)return c}e+=a.nodeSize*r}return null}function Wh(t,A,e){let n=t.steps.length-1;if(n<A)return;let r=t.steps[n];if(!(r instanceof He||r instanceof Ie))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,f)=>{s==null&&(s=f)}),t.setSelection(EA.near(t.doc.resolve(s),e))}const $h=1,Xo=2,Jh=4;class WQ extends PQ{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|$h)&~Xo,this.storedMarks=null,this}get selectionSet(){return(this.updated&$h)>0}setStoredMarks(A){return this.storedMarks=A,this.updated|=Xo,this}ensureMarks(A){return YA.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&Xo)>0}addStep(A,e){super.addStep(A,e),this.updated=this.updated&~Xo,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)||YA.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(EA.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 Xh(t,A){return!A||!t?t:t.bind(A)}class vs{constructor(A,e,n){this.name=A,this.init=Xh(e.init,n),this.apply=Xh(e.apply,n)}}const $Q=[new vs("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new vs("selection",{init(t,A){return t.selection||EA.atStart(A.doc)},apply(t){return t.selection}}),new vs("storedMarks",{init(t){return t.storedMarks||null},apply(t,A,e,n){return n.selection.$cursor?t.storedMarks:null}}),new vs("scrollToSelection",{init(){return 0},apply(t,A){return t.scrolledIntoView?A+1:A}})];class Ec{constructor(A,e){this.schema=A,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=$Q.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 vs(n.key,n.spec.state,n))})}}class Ti{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 h=0;h<this.config.plugins.length;h++)r.push(h<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 Ti(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 WQ(this)}static create(A){let e=new Ec(A.doc?A.doc.type.schema:A.schema,A.plugins),n=new Ti(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 Ec(this.schema,A.plugins),n=e.fields,r=new Ti(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 Ec(A.schema,A.plugins),i=new Ti(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=EA.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 Yh(t,A,e){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(A):n=="handleDOMEvents"&&(r=Yh(r,A,{})),e[n]=r}return e}class gt{constructor(A){this.spec=A,this.props={},A.props&&Yh(A.props,this,this.props),this.key=A.key?A.key.key:zh("plugin")}getState(A){return A[this.key]}}const Qc=Object.create(null);function zh(t){return t in Qc?t+"$"+ ++Qc[t]:(Qc[t]=0,t+"$")}class mn{constructor(A="key"){this.key=zh(A)}get(A){return A.config.pluginsByKey[this.key]}getState(A){return A[this.key]}}const tt=function(t){for(var A=0;;A++)if(t=t.previousSibling,!t)return A},Is=function(t){let A=t.assignedSlot||t.parentNode;return A&&A.nodeType==11?A.host:A};let qh=null;const Ln=function(t,A,e){let n=qh||(qh=document.createRange());return n.setEnd(t,e??t.nodeValue.length),n.setStart(t,A||0),n},Jr=function(t,A,e,n){return e&&(Zh(t,A,e,n,-1)||Zh(t,A,e,n,1))},JQ=/^(img|br|input|textarea|hr)$/i;function Zh(t,A,e,n,r){for(;;){if(t==e&&A==n)return!0;if(A==(r<0?0:wn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Fc(t)||JQ.test(t.nodeName)||t.contentEditable=="false")return!1;A=tt(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?wn(t):0}else return!1}}function wn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function XQ(t,A,e){for(let n=A==0,r=A==wn(t);n||r;){if(t==e)return!0;let i=tt(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==wn(t)}}function Fc(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 Yo=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 YQ(t){let A=t.activeElement;for(;A&&A.shadowRoot;)A=A.shadowRoot.activeElement;return A}function zQ(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 Cn=typeof navigator<"u"?navigator:null,jh=typeof document<"u"?document:null,sr=Cn&&Cn.userAgent||"",Uc=/Edge\/(\d+)/.exec(sr),Ap=/MSIE \d/.exec(sr),bc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sr),Bt=!!(Ap||bc||Uc),or=Ap?document.documentMode:bc?+bc[1]:Uc?+Uc[1]:0,rn=!Bt&&/gecko\/(\d+)/i.test(sr);rn&&+(/Firefox\/(\d+)/.exec(sr)||[0,0])[1];const vc=!Bt&&/Chrome\/(\d+)/.exec(sr),$e=!!vc,qQ=vc?+vc[1]:0,nt=!Bt&&!!Cn&&/Apple Computer/.test(Cn.vendor),_i=nt&&(/Mobile\/\w+/.test(sr)||!!Cn&&Cn.maxTouchPoints>2),kt=_i||(Cn?/Mac/.test(Cn.platform):!1),ZQ=Cn?/Win/.test(Cn.platform):!1,sn=/Android \d/.test(sr),Ss=!!jh&&"webkitFontSmoothing"in jh.documentElement.style,jQ=Ss?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function AF(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Hn(t,A){return typeof t=="number"?t:t[A]}function eF(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 ep(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=Is(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?AF(i):eF(a),f=0,h=0;if(A.top<u.top+Hn(n,"top")?h=-(u.top-A.top+Hn(r,"top")):A.bottom>u.bottom-Hn(n,"bottom")&&(h=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||h)if(c)i.defaultView.scrollBy(f,h);else{let g=a.scrollLeft,m=a.scrollTop;h&&(a.scrollTop+=h),f&&(a.scrollLeft+=f);let w=a.scrollLeft-g,U=a.scrollTop-m;A={left:A.left-w,top:A.top-U,right:A.right-w,bottom:A.bottom-U}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function tF(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:tp(t.dom)}}function tp(t){let A=[],e=t.ownerDocument;for(let n=t;n&&(A.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=e);n=Is(n));return A}function nF({refDOM:t,refTop:A,stack:e}){let n=t?t.getBoundingClientRect().top:0;np(e,n==0?0:n-A)}function np(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 xi=null;function rF(t){if(t.setActive)return t.setActive();if(xi)return t.focus(xi);let A=tp(t);t.focus(xi==null?{get preventScroll(){return xi={preventScroll:!0},!0}}:void 0),xi||(xi=!1,np(A,0))}function rp(t,A){let e,n=2e8,r,i=0,s=A.top,a=A.top,c,u;for(let f=t.firstChild,h=0;f;f=f.nextSibling,h++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=Ln(f).getClientRects();else continue;for(let m=0;m<g.length;m++){let w=g[m];if(w.top<=s&&w.bottom>=a){s=Math.max(w.bottom,s),a=Math.min(w.top,a);let U=w.left>A.left?w.left-A.left:w.right<A.left?A.left-w.right:0;if(U<n){e=f,n=U,r=U&&e.nodeType==3?{left:w.right<A.left?w.right:w.left,top:A.top}:A,f.nodeType==1&&U&&(i=h+(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=h+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}:rp(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=ar(n,1);if(i.top!=i.bottom&&Ic(A,i))return{node:t,offset:r+(A.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function Ic(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 oF(t,A,e){let{node:n,offset:r}=rp(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 aF(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&&!s||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,c.left>n.left||c.top>n.top?r=a.posBefore:(c.right<n.left||c.bottom<n.top)&&(r=a.posAfter)),!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 ip(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(Ic(A,u))return ip(s,A,u)}}if((i=(i+1)%n)==r)break}return t}function lF(t,A){let e=t.dom.ownerDocument,n,r=0,i=zQ(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(!Ic(A,u)||(s=ip(t.dom,A,u),!s))return null}if(nt)for(let u=s;n&&u;u=Is(u))u.draggable&&(n=void 0);if(s=sF(s,A),n){if(rn&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let f=n.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=A.left&&h.bottom>A.top&&r++}let u;Ss&&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=aF(t,n,r,A))}a==null&&(a=oF(t,s,A));let c=t.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function sp(t){return t.top<t.bottom||t.left<t.right}function ar(t,A){let e=t.getClientRects();if(e.length){let n=e[A<0?0:e.length-1];if(sp(n))return n}return Array.prototype.find.call(e,sp)||t.getBoundingClientRect()}const cF=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function op(t,A,e){let{node:n,offset:r,atom:i}=t.docView.domFromPos(A,e<0?-1:1),s=Ss||rn;if(n.nodeType==3)if(s&&(cF.test(n.nodeValue)||(e<0?!r:r==n.nodeValue.length))){let c=ar(Ln(n,r,r),e);if(rn&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ar(Ln(n,r-1,r-1),-1);if(u.top==c.top){let f=ar(Ln(n,r,r+1),-1);if(f.top!=c.top)return Ts(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++,Ts(ar(Ln(n,c,u),f),f<0)}if(!t.state.doc.resolve(A-(i||0)).parent.inlineContent){if(i==null&&r&&(e<0||r==wn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return Sc(c.getBoundingClientRect(),!1)}if(i==null&&r<wn(n)){let c=n.childNodes[r];if(c.nodeType==1)return Sc(c.getBoundingClientRect(),!0)}return Sc(n.getBoundingClientRect(),e>=0)}if(i==null&&r&&(e<0||r==wn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?Ln(c,wn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Ts(ar(u,1),!1)}if(i==null&&r<wn(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 Ts(ar(u,-1),!0)}return Ts(ar(n.nodeType==3?Ln(n):n,-e),e>=0)}function Ts(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 Sc(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 ap(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 uF(t,A,e){let n=A.selection,r=e=="up"?n.$from:n.$to;return ap(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=op(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 fF=/[\u0590-\u08ac]/;function dF(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!fF.test(n.parent.textContent)||!a.modify?e=="left"||e=="backward"?i:s:ap(t,A,()=>{let{focusNode:c,focusOffset:u,anchorNode:f,anchorOffset:h}=t.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",e,"character");let m=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:w,focusOffset:U}=t.domSelectionRange(),b=w&&!m.contains(w.nodeType==1?w:w.parentNode)||c==w&&u==U;try{a.collapse(f,h),c&&(c!=f||u!=h)&&a.extend&&a.extend(c,u)}catch{}return g!=null&&(a.caretBidiLevel=g),b})}let lp=null,cp=null,up=!1;function hF(t,A,e){return lp==A&&cp==e?up:(lp=A,cp=e,up=e=="up"||e=="down"?uF(t,A,e):dF(t,A,e))}const Rt=0,fp=1,Yr=2,yn=3;class _s{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>tt(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 pp){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 dp&&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?tt(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?tt(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 h=a;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=tt(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 h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){i=tt(h.dom);break}e+=h.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,m=0;g<this.children.length;g++){let w=this.children[g],U=m+w.size;if(i>m&&s<U)return w.setSelection(A-m-w.border,e-m-w.border,n,r);m=U}let a=this.domFromPos(A,A?-1:1),c=e==A?a:this.domFromPos(e,e?-1:1),u=n.getSelection(),f=!1;if((rn||nt)&&A==e){let{node:g,offset:m}=a;if(g.nodeType==3){if(f=!!(m&&g.nodeValue[m-1]==`
|
|
6
|
+
`),f&&m==g.nodeValue.length)for(let w=g,U;w;w=w.parentNode){if(U=w.nextSibling){U.nodeName=="BR"&&(a=c={node:U.parentNode,offset:tt(U)+1});break}let b=w.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let w=g.childNodes[m-1];f=w&&(w.nodeName=="BR"||w.contentEditable=="false")}}if(rn&&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&&nt)&&Jr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Jr(c.node,c.offset,u.focusNode,u.focusOffset))return;let h=!1;if((u.extend||A==e)&&!f){u.collapse(a.node,a.offset);try{A!=e&&u.extend(c.node,c.offset),h=!0}catch{}}if(!h){if(A>e){let m=a;a=c,c=m}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:fp,A==a&&e==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=yn:i.markDirty(A-a,e-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Yr:yn}n=s}this.dirty=Yr}markParentsDirty(){let A=1;for(let e=this.parent;e;e=e.parent,A++){let n=A==1?Yr:fp;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class dp extends _s{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 pF extends _s{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 _s{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=gn.renderSpec(document,e.type.spec.toDOM(e,n))),new zr(A,e,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&yn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(A){return this.dirty!=yn&&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=xc(i,e,s,n)),A>0&&(i=xc(i,0,A,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class lr extends _s{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,h=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:h}=gn.renderSpec(document,e.type.spec.toDOM(e)));!h&&!e.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),e.type.spec.draggable&&(f.draggable=!0));let g=f;return f=mp(f,n,e),u?c=new gF(A,e,n,r,f,h||null,g,u,i,s+1):e.isText?new zo(A,e,n,r,f,g,i):new lr(A,e,n,r,f,h||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=()=>J.empty)}return A}matchesNode(A,e,n){return this.dirty==Rt&&A.eq(this.node)&&_c(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 mF(this,s&&s.node,A);yF(this.node,this.innerDeco,(u,f,h)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,A):u.type.side>=0&&!h&&c.syncToMarks(f==this.node.childCount?YA.none:this.node.child(f).marks,n,A),c.placeWidget(u,A,r)},(u,f,h,g)=>{c.syncToMarks(u.marks,n,A);let m;c.findNodeMatch(u,f,h,g)||a&&A.state.selection.from>r&&A.state.selection.to<r+u.nodeSize&&(m=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,f,h,m,A)||c.updateNextNode(u,f,h,A,g,r)||c.addNode(u,f,h,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),gp(this.contentDOM,this.children,A),_i&&EF(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.domSelectionRange(),s=QF(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,c=FF(this.node.content,a,n-e,r-e);return c<0?null:{node:s,pos:c,text:a}}else return{node:s,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 pF(this,i,e,r);A.input.compositionNodes.push(s),this.children=xc(this.children,n,n+r.length,A,s)}update(A,e,n,r){return this.dirty==yn||!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(_c(A,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Bp(this.dom,this.nodeDOM,Tc(this.outerDeco,this.node,e),Tc(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 hp(t,A,e,n,r){mp(n,A,t);let i=new lr(void 0,t,A,e,n,n,n,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class zo extends lr{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==yn||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=yn)}get domAtom(){return!1}}class pp extends _s{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 gF extends lr{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==yn)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 gp(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=wp(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof zr){let c=n?n.previousSibling:t.lastChild;gp(s.contentDOM,s.children,e),n=c?c.nextSibling:t.firstChild}}for(;n;)n=wp(n),r=!0;r&&e.trackWrites==t&&(e.trackWrites=null)}const xs=function(t){t&&(this.nodeName=t)};xs.prototype=Object.create(null);const qr=[new xs];function Tc(t,A,e){if(t.length==0)return qr;let n=e?qr[0]:new xs,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new xs(s.nodeName));for(let a in s){let c=s[a];c!=null&&(e&&r.length==1&&r.push(n=new xs(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 Bp(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}BF(r,a||qr[0],s)}return r}function BF(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 mp(t,A,e){return Bp(t,t,qr,Tc(A,e,t.nodeType!=1))}function _c(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 wp(t){let A=t.nextSibling;return t.parentNode.removeChild(t),A}class mF{constructor(A,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=A,this.preMatch=wF(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==yn&&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 lr){let u=this.preMatch.matched.get(c);if(u!=null&&u!=i)return!1;let f=c.dom,h,g=this.isLocked(f)&&!(A.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==A.text&&c.dirty!=yn&&_c(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&&(h=this.recreateWrapper(c,A,e,n,r,s)))return this.top.children[this.index]=h,h.contentDOM&&(h.dirty=Yr,h.updateChildren(r,s+1),h.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=lr.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=lr.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 dp(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))&&((nt||$e)&&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 pp(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 wF(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 CF(t,A){return t.type.side-A.type.side}function yF(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,h;for(;s<r.length&&r[s].to==i;){let b=r[s++];b.widget&&(f?(h||(h=[f])).push(b):f=b)}if(f)if(h){h.sort(CF);for(let b=0;b<h.length;b++)e(h[b],u,!!c)}else e(f,u,!!c);let g,m;if(c)m=-1,g=c,c=null;else if(u<t.childCount)m=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 Q=0;Q<a.length;Q++)a[Q].to<b&&(b=a[Q].to);b<w&&(c=g.cut(b-i),g=g.cut(0,b-i),w=b,m=-1)}let U=g.isInline&&!g.isLeaf?a.filter(b=>!b.inline):a.slice();n(g,U,A.forChild(i,g),m),i=w}}function EF(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 QF(t,A){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&A>0){if(t.childNodes.length>A&&t.childNodes[A].nodeType==3)return t.childNodes[A];t=t.childNodes[A-1],A=wn(t)}else if(t.nodeType==1&&A<t.childNodes.length)t=t.childNodes[A],A=0;else return null}}function FF(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 xc(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 Oc(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(Yo(e)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&uA.isSelectable(f)&&r.parent&&!(f.isInline&&XQ(e.focusNode,e.focusOffset,r.dom))){let h=r.posBefore;u=new uA(s==h?a:n.resolve(h))}}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=Hc(t,c,a,f)}return u}function Cp(t){return t.editable?t.hasFocus():vp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Mn(t,A=!1){let e=t.state.selection;if(Fp(t,e),!!Cp(t)){if(!A&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&$e){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)bF(t);else{let{anchor:n,head:r}=e,i,s;yp&&!(e instanceof CA)&&(e.$from.parent.inlineContent||(i=Ep(t,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(s=Ep(t,e.to))),t.docView.setSelection(n,r,t.root,A),yp&&(i&&Qp(i),s&&Qp(s)),e.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&UF(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const yp=nt||$e&&qQ<63;function Ep(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(nt&&r&&r.contentEditable=="false")return Lc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Lc(r);if(i)return Lc(i)}}function Lc(t){return t.contentEditable="true",nt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Qp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function UF(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(()=>{(!Cp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function bF(t){let A=t.domSelection(),e=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.setEnd(n.parentNode,tt(n)+1):e.setEnd(n,0),e.collapse(!1),A.removeAllRanges(),A.addRange(e),!r&&!t.state.selection.visible&&Bt&&or<=11&&(n.disabled=!0,n.disabled=!1)}function Fp(t,A){if(A instanceof uA){let e=t.docView.descAt(A.from);e!=t.lastSelectedViewDesc&&(Up(t),e&&e.selectNode(),t.lastSelectedViewDesc=e)}else Up(t)}function Up(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Hc(t,A,e,n){return t.someProp("createSelectionBetween",r=>r(t,A,e))||CA.between(A,e,n)}function bp(t){return t.editable&&!t.hasFocus()?!1:vp(t)}function vp(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 vF(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 Mc(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&&EA.findFrom(i,A)}function cr(t,A){return t.dispatch(t.state.tr.setSelection(A).scrollIntoView()),!0}function Ip(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 cr(t,new CA(n.$anchor,s))}else if(n.empty){if(t.endOfTextblock(A>0?"forward":"backward")){let r=Mc(t.state,A);return r&&r instanceof uA?cr(t,r):!1}else if(!(kt&&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?uA.isSelectable(i)?cr(t,new uA(A<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Ss?cr(t,new CA(t.state.doc.resolve(A<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof uA&&n.node.isInline)return cr(t,new CA(A>0?n.$to:n.$from));{let r=Mc(t.state,A);return r?cr(t,r):!1}}}function qo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Os(t,A){let e=t.pmViewDesc;return e&&e.size==0&&(A<0||t.nextSibling||t.nodeName!="BR")}function Oi(t,A){return A<0?IF(t):SF(t)}function IF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r,i,s=!1;for(rn&&e.nodeType==1&&n<qo(e)&&Os(e.childNodes[n],-1)&&(s=!0);;)if(n>0){if(e.nodeType!=1)break;{let a=e.childNodes[n-1];if(Os(a,-1))r=e,i=--n;else if(a.nodeType==3)e=a,n=e.nodeValue.length;else break}}else{if(Sp(e))break;{let a=e.previousSibling;for(;a&&Os(a,-1);)r=e.parentNode,i=tt(a),a=a.previousSibling;if(a)e=a,n=qo(e);else{if(e=e.parentNode,e==t.dom)break;n=0}}}s?Nc(t,e,n):r&&Nc(t,r,i)}function SF(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r=qo(e),i,s;for(;;)if(n<r){if(e.nodeType!=1)break;let a=e.childNodes[n];if(Os(a,1))i=e,s=++n;else break}else{if(Sp(e))break;{let a=e.nextSibling;for(;a&&Os(a,1);)i=a.parentNode,s=tt(a)+1,a=a.nextSibling;if(a)e=a,n=0,r=qo(e);else{if(e=e.parentNode,e==t.dom)break;n=r=0}}}i&&Nc(t,i,s)}function Sp(t){let A=t.pmViewDesc;return A&&A.node&&A.node.isBlock}function TF(t,A){for(;t&&A==t.childNodes.length&&!Fc(t);)A=tt(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 _F(t,A){for(;t&&!A&&!Fc(t);)A=tt(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 Nc(t,A,e){if(A.nodeType!=3){let i,s;(s=TF(A,e))?(A=s,e=0):(i=_F(A,e))&&(A=i,e=i.nodeValue.length)}let n=t.domSelection();if(Yo(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&&Mn(t)},50)}function Tp(t,A){let e=t.state.doc.resolve(A);if(!($e||ZQ)&&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 _p(t,A,e){let n=t.state.selection;if(n instanceof CA&&!n.empty||e.indexOf("s")>-1||kt&&e.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(A<0?"up":"down")){let s=Mc(t.state,A);if(s&&s instanceof uA)return cr(t,s)}if(!r.parent.inlineContent){let s=A<0?r:i,a=n instanceof nn?EA.near(s,A):EA.findFrom(s,A);return a?cr(t,a):!1}return!1}function xp(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 Op(t,A,e){t.domObserver.stop(),A.contentEditable=e,t.domObserver.start()}function xF(t){if(!nt||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;Op(t,n,"true"),setTimeout(()=>Op(t,n,"false"),20)}return!1}function OF(t){let A="";return t.ctrlKey&&(A+="c"),t.metaKey&&(A+="m"),t.altKey&&(A+="a"),t.shiftKey&&(A+="s"),A}function LF(t,A){let e=A.keyCode,n=OF(A);if(e==8||kt&&e==72&&n=="c")return xp(t,-1)||Oi(t,-1);if(e==46&&!A.shiftKey||kt&&e==68&&n=="c")return xp(t,1)||Oi(t,1);if(e==13||e==27)return!0;if(e==37||kt&&e==66&&n=="c"){let r=e==37?Tp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Ip(t,r,n)||Oi(t,r)}else if(e==39||kt&&e==70&&n=="c"){let r=e==39?Tp(t,t.state.selection.from)=="ltr"?1:-1:1;return Ip(t,r,n)||Oi(t,r)}else{if(e==38||kt&&e==80&&n=="c")return _p(t,-1,n)||Oi(t,-1);if(e==40||kt&&e==78&&n=="c")return xF(t)||_p(t,1,n)||Oi(t,1);if(n==(kt?"m":"c")&&(e==66||e==73||e==89||e==90))return!0}return!1}function Lp(t,A){t.someProp("transformCopied",m=>{A=m(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 m=n.firstChild;e.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),n=m.content}let s=t.someProp("clipboardSerializer")||gn.fromSchema(t.state.schema),a=Pp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,f,h=0;for(;u&&u.nodeType==1&&(f=Rp[u.nodeName.toLowerCase()]);){for(let m=f.length-1;m>=0;m--){let w=a.createElement(f[m]);for(;c.firstChild;)w.appendChild(c.firstChild);c.appendChild(w),h++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${h?` -${h}`:""} ${JSON.stringify(e)}`);let g=t.someProp("clipboardTextSerializer",m=>m(A,t))||A.content.textBetween(0,A.content.size,`
|
|
7
7
|
|
|
8
|
-
`);return{dom:c,text:g}}function Hp(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
|
|
9
|
-
`))),0,0):AA.empty;let h=t.someProp("clipboardTextParser",g=>g(A,r,n,t));if(h)a=h;else{let g=r.marks(),{schema:m}=t.state,w=gn.fromSchema(m);s=document.createElement("div"),A.split(/(?:\r\n?|\n)+/).forEach(U=>{let b=s.appendChild(document.createElement("p"));U&&b.appendChild(w.serializeNode(m.text(U,g)))})}}else t.someProp("transformPastedHTML",h=>{e=h(e,t)}),s=NF(e),Ss&&DF(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 h=+f[3];h>0;h--){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")||Ei.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!HF.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)a=kF(kp(a,+f[1],+f[2]),f[4]);else if(a=AA.maxOpen(MF(a.content,r),!0),a.openStart||a.openEnd){let h=0,g=0;for(let m=a.content.firstChild;h<a.openStart&&!m.type.spec.isolating;h++,m=m.firstChild);for(let m=a.content.lastChild;g<a.openEnd&&!m.type.spec.isolating;g++,m=m.lastChild);a=kp(a,h,g)}return t.someProp("transformPasted",h=>{a=h(a,t)}),a}const HF=/^(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 MF(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&&Np(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Dp(s[s.length-1],i.length));let f=Mp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return J.from(s)}return t}function Mp(t,A,e=0){for(let n=A.length-1;n>=e;n--)t=A[n].create(null,J.from(t));return t}function Np(t,A,e,n,r){if(r<t.length&&r<A.length&&t[r]==A[r]){let i=Np(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(J.from(Mp(e,t,r+1))))}}function Dp(t,A){if(A==0)return t;let e=t.content.replaceChild(t.childCount-1,Dp(t.lastChild,A-1)),n=t.contentMatchAt(t.childCount).fillBefore(J.empty,!0);return t.copy(e.append(n))}function Dc(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=Dc(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(J.empty,!0))),t.replaceChild(A<0?0:t.childCount-1,s.copy(a))}function kp(t,A,e){return A<t.openStart&&(t=new AA(Dc(t.content,-1,A,t.openStart,0,t.openEnd),A,t.openEnd)),e<t.openEnd&&(t=new AA(Dc(t.content,1,e,t.openEnd,0,0),t.openStart,e)),t}const Rp={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 Kp=null;function Pp(){return Kp||(Kp=document.implementation.createHTMLDocument("title"))}function NF(t){let A=/^(\s*<meta [^>]*>)*/.exec(t);A&&(t=t.slice(A[0].length));let e=Pp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&Rp[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 DF(t){let A=t.querySelectorAll($e?"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 kF(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=J.from(c.create(n[a+1],r)),i++,s++}return new AA(r,i,s)}const rt={},it={},RF={touchstart:!0,touchmove:!0};class KF{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.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 PF(t){for(let A in rt){let e=rt[A];t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>{GF(t,n)&&!Rc(t,n)&&(t.editable||!(n.type in it))&&e(t,n)},RF[A]?{passive:!0}:void 0)}nt&&t.dom.addEventListener("input",()=>null),kc(t)}function ur(t,A){t.input.lastSelectionOrigin=A,t.input.lastSelectionTime=Date.now()}function VF(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 kc(t){t.someProp("handleDOMEvents",A=>{for(let e in A)t.input.eventHandlers[e]||t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>Rc(t,n))})}function Rc(t,A){return t.someProp("handleDOMEvents",e=>{let n=e[A.type];return n?n(t,A)||A.defaultPrevented:!1})}function GF(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 WF(t,A){!Rc(t,A)&&rt[A.type]&&(t.editable||!(A.type in it))&&rt[A.type](t,A)}it.keydown=(t,A)=>{let e=A;if(t.input.shiftKey=e.keyCode==16||e.shiftKey,!Gp(t,e)&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!(sn&&$e&&e.keyCode==13)))if(e.keyCode!=229&&t.domObserver.forceFlush(),_i&&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))||LF(t,e)?e.preventDefault():ur(t,"key")},it.keyup=(t,A)=>{A.keyCode==16&&(t.input.shiftKey=!1)},it.keypress=(t,A)=>{let e=A;if(Gp(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||kt&&e.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,e))){e.preventDefault();return}let n=t.state.selection;if(!(n instanceof wA)||!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 Zo(t){return{left:t.clientX,top:t.clientY}}function $F(t,A){let e=A.x-t.clientX,n=A.y-t.clientY;return e*e+n*n<100}function Kc(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 Li(t,A,e){t.focused||t.focus();let n=t.state.tr.setSelection(A);e=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function JF(t,A){if(A==-1)return!1;let e=t.state.doc.resolve(A),n=e.nodeAfter;return n&&n.isAtom&&cA.isSelectable(n)?(Li(t,new cA(e),"pointer"),!0):!1}function XF(t,A){if(A==-1)return!1;let e=t.state.selection,n,r;e instanceof cA&&(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(cA.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?(Li(t,cA.create(t.state.doc,r),"pointer"),!0):!1}function YF(t,A,e,n,r){return Kc(t,"handleClickOn",A,e,n)||t.someProp("handleClick",i=>i(t,A,n))||(r?XF(t,e):JF(t,e))}function zF(t,A,e,n){return Kc(t,"handleDoubleClickOn",A,e,n)||t.someProp("handleDoubleClick",r=>r(t,A,n))}function qF(t,A,e,n){return Kc(t,"handleTripleClickOn",A,e,n)||t.someProp("handleTripleClick",r=>r(t,A,n))||ZF(t,e,n)}function ZF(t,A,e){if(e.button!=0)return!1;let n=t.state.doc;if(A==-1)return n.inlineContent?(Li(t,wA.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)Li(t,wA.create(n,a+1,a+1+s.content.size),"pointer");else if(cA.isSelectable(s))Li(t,cA.create(n,a),"pointer");else continue;return!0}}function Pc(t){return jo(t)}const Vp=kt?"metaKey":"ctrlKey";rt.mousedown=(t,A)=>{let e=A;t.input.shiftKey=e.shiftKey;let n=Pc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&$F(e,t.input.lastClick)&&!e[Vp]&&(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(Zo(e));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new jF(t,s,e,!!n)):(i=="doubleClick"?zF:qF)(t,s.pos,s.inside,e)?e.preventDefault():ur(t,"pointer"))};class jF{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[Vp],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:null;let{selection:u}=A.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof cA&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&rn&&!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)),ur(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(()=>Mn(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(Zo(A))),this.updateAllowDefault(A),this.allowDefault||!e?ur(this.view,"pointer"):YF(this.view,e.pos,e.inside,A,this.selectNode)?A.preventDefault():A.button==0&&(this.flushed||nt&&this.mightDrag&&!this.mightDrag.node.isAtom||$e&&!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)?(Li(this.view,EA.near(this.view.state.doc.resolve(e.pos)),"pointer"),A.preventDefault()):ur(this.view,"pointer")}move(A){this.updateAllowDefault(A),ur(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)}}rt.touchstart=t=>{t.input.lastTouch=Date.now(),Pc(t),ur(t,"pointer")},rt.touchmove=t=>{t.input.lastTouch=Date.now(),ur(t,"pointer")},rt.contextmenu=t=>Pc(t);function Gp(t,A){return t.composing?!0:nt&&Math.abs(A.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const AU=sn?5e3:-1;it.compositionstart=it.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(),jo(t,!0),t.markCursor=null;else if(jo(t),rn&&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}Wp(t,AU)},it.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.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Wp(t,20))};function Wp(t,A){clearTimeout(t.input.composingTimeout),A>-1&&(t.input.composingTimeout=setTimeout(()=>jo(t),A))}function $p(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=eU());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function eU(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function jo(t,A=!1){if(!(sn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),$p(t),A||t.docView&&t.docView.dirty){let e=Oc(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}function tU(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 Ls=Bt&&or<15||_i&&jQ<604;rt.copy=it.cut=(t,A)=>{let e=A,n=t.state.selection,r=e.type=="cut";if(n.empty)return;let i=Ls?null:e.clipboardData,s=n.content(),{dom:a,text:c}=Lp(t,s);i?(e.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):tU(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function nU(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function rU(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?Hs(t,n.value,null,r,A):Hs(t,n.textContent,n.innerHTML,r,A)},50)}function Hs(t,A,e,n,r){let i=Hp(t,A,e,n,t.state.selection.$from);if(t.someProp("handlePaste",c=>c(t,r,i||AA.empty)))return!0;if(!i)return!1;let s=nU(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," "):""}it.paste=(t,A)=>{let e=A;if(t.composing&&!sn)return;let n=Ls?null:e.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Hs(t,Jp(n),n.getData("text/html"),r,e)?e.preventDefault():rU(t,e)};class Xp{constructor(A,e,n){this.slice=A,this.move=e,this.node=n}}const Yp=kt?"altKey":"ctrlKey";rt.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(Zo(e)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof cA?r.to-1:r.to))){if(n&&n.mightDrag)s=cA.create(t.state.doc,n.mightDrag.pos);else if(e.target&&e.target.nodeType==1){let f=t.docView.nearestDesc(e.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=cA.create(t.state.doc,f.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u}=Lp(t,a);e.dataTransfer.clearData(),e.dataTransfer.setData(Ls?"Text":"text/html",c.innerHTML),e.dataTransfer.effectAllowed="copyMove",Ls||e.dataTransfer.setData("text/plain",u),t.dragging=new Xp(a,!e[Yp],s)},rt.dragend=t=>{let A=t.dragging;window.setTimeout(()=>{t.dragging==A&&(t.dragging=null)},50)},it.dragover=it.dragenter=(t,A)=>A.preventDefault(),it.drop=(t,A)=>{let e=A,n=t.dragging;if(t.dragging=null,!e.dataTransfer)return;let r=t.posAtCoords(Zo(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=Hp(t,Jp(e.dataTransfer),Ls?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!e[Yp]);if(t.someProp("handleDrop",w=>w(t,e,s||AA.empty,a))){e.preventDefault();return}if(!s)return;e.preventDefault();let c=s?Dh(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),h=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=u.doc;if(h?u.replaceRangeWith(f,f,s.content.firstChild):u.replaceRange(f,f,s),u.doc.eq(g))return;let m=u.doc.resolve(f);if(h&&cA.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new cA(m));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((U,b,F,I)=>w=I),u.setSelection(Hc(t,m,u.doc.resolve(w)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},rt.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())&&Mn(t)},20))},rt.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)},rt.beforeinput=(t,A)=>{if($e&&sn&&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 it)rt[t]=it[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 Aa{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 Aa&&(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 fr{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 fr&&Ms(this.attrs,A.attrs)&&Ms(this.spec,A.spec)}static is(A){return A.type instanceof fr}destroy(){}}class Vc{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 Vc&&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 Aa(e,n))}static inline(A,e,n,r){return new Kt(A,e,new fr(n,r))}static node(A,e,n,r){return new Kt(A,e,new Vc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof fr}get widget(){return this.type instanceof Aa}}const Hi=[],Zr={};class Qe{constructor(A,e){this.local=A.length?A:Hi,this.children=e.length?e:Hi}static create(A,e){return e.length?ea(e,A,0,Zr):Je}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==Je||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?iU(this.children,s||[],A,e,n,r,i):s?new Qe(s.sort(jr),Hi):Je}add(A,e){return e.length?this==Je?Qe.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=qp(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,ea(f,a,u+1,Zr)),i+=3}});let s=zp(i?Zp(e):e,-n);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||s.splice(a--,1);return new Qe(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(A){return A.length==0||this==Je?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,h;f<A.length;f++)(h=A[f])&&h.from>a&&h.to<c&&(A[f]=null,(s||(s=[])).push(h));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=Je?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 Qe(r,n):Je}forChild(A,e){if(this==Je)return this;if(e.isLeaf)return Qe.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 fr){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 Qe(r.sort(jr),Hi);return n?new dr([a,n]):a}return n||Je}eq(A){if(this==A)return!0;if(!(A instanceof Qe)||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 Gc(this.localsInner(A))}localsInner(A){if(this==Je)return Hi;if(A.inlineContent||!this.local.some(fr.is))return this.local;let e=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof fr||e.push(this.local[n]);return e}}Qe.empty=new Qe([],[]),Qe.removeOverlap=Gc;const Je=Qe.empty;class dr{constructor(A){this.members=A}map(A,e){const n=this.members.map(r=>r.map(A,e,Zr));return dr.from(n)}forChild(A,e){if(e.isLeaf)return Qe.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(A,e);i!=Je&&(i instanceof dr?n=n.concat(i.members):n.push(i))}return dr.from(n)}eq(A){if(!(A instanceof dr)||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?Gc(n?e:e.sort(jr)):Hi}static from(A){switch(A.length){case 0:return Je;case 1:return A[0];default:return new dr(A.every(e=>e instanceof Qe)?A:A.reduce((e,n)=>e.concat(n instanceof Qe?n:n.members),[]))}}}function iU(t,A,e,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<e.maps.length;u++){let h=0;e.maps[u].forEach((g,m,w,U)=>{let b=U-w-(m-g);for(let F=0;F<a.length;F+=3){let I=a[F+1];if(I<0||g>I+f-h)continue;let M=a[F]+f-h;m>=M?a[F+1]=g<=M?-2:-1:g>=f&&b&&(a[F]+=b,a[F+1]+=b)}h+=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),h=f-r;if(h<0||h>=n.content.size){c=!0;continue}let g=e.map(t[u+1]+i,-1),m=g-r,{index:w,offset:U}=n.content.findIndex(h),b=n.maybeChild(w);if(b&&U==h&&U+b.nodeSize==m){let F=a[u+2].mapInner(e,b,f+1,t[u]+i+1,s);F!=Je?(a[u]=h,a[u+1]=m,a[u+2]=F):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=sU(a,t,A,e,r,i,s),f=ea(u,n,0,s);A=f.local;for(let h=0;h<a.length;h+=3)a[h+1]<0&&(a.splice(h,3),h-=3);for(let h=0,g=0;h<f.children.length;h+=3){let m=f.children[h];for(;g<a.length&&a[g]<m;)g+=3;a.splice(g,0,f.children[h],f.children[h+1],f.children[h+2])}}return new Qe(A.sort(jr),a)}function zp(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 sU(t,A,e,n,r,i,s){function a(c,u){for(let f=0;f<c.local.length;f++){let h=c.local[f].map(n,r,u);h?e.push(h):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 qp(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 Zp(t){let A=[];for(let e=0;e<t.length;e++)t[e]!=null&&A.push(t[e]);return A}function ea(t,A,e,n){let r=[],i=!1;A.forEach((a,c)=>{let u=qp(t,a,c+e);if(u){i=!0;let f=ea(u,a,e+c+1,n);f!=Je&&r.push(c,c+a.nodeSize,f)}});let s=zp(i?Zp(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 Qe(s,r):Je}function jr(t,A){return t.from-A.from||t.to-A.to}function Gc(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),jp(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),jp(A,r,n.copy(i.from,n.to)));break}}}return A}function jp(t,A,e){for(;A<t.length&&jr(e,t[A])>0;)A++;t.splice(A,0,e)}function Wc(t){let A=[];return t.someProp("decorations",e=>{let n=e(t.state);n&&n!=Je&&A.push(n)}),t.cursorWrapper&&A.push(Qe.create(t.state.doc,[t.cursorWrapper.deco])),dr.from(A)}const oU={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},aU=Bt&&or<=11;class lU{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 cU{constructor(A,e){this.view=A,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lU,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]);Bt&&or<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),aU&&(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,oU)),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(bp(this.view)){if(this.suppressingSelectionUpdates)return Mn(this.view);if(Bt&&or<=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=Is(i))e.add(i);for(let i=A.anchorNode;i;i=Is(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)&&bp(A)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(A.editable)for(let f=0;f<e.length;f++){let h=this.registerMutation(e[f],c);h&&(i=i<0?h.from:Math.min(h.from,i),s=s<0?h.to:Math.max(h.to,s),h.typeOver&&(a=!0))}if(rn&&c.length>1){let f=c.filter(h=>h.nodeName=="BR");if(f.length==2){let h=f[0],g=f[1];h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.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&&Yo(n)&&(u=Oc(A))&&u.eq(EA.near(A.state.doc.resolve(0),1))?(A.input.lastFocus=0,Mn(A),this.currentSelection.set(n),A.scrollToSelection()):(i>-1||r)&&(i>-1&&(A.docView.markDirty(i,s),uU(A)),this.handleDOMChange(i,s,a,c),A.docView&&A.docView.dirty?A.updateState(A.state):this.currentSelection.eq(n)||Mn(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(Bt&&or<=11&&A.addedNodes.length)for(let f=0;f<A.addedNodes.length;f++){let{previousSibling:h,nextSibling:g}=A.addedNodes[f];(!h||Array.prototype.indexOf.call(A.addedNodes,h)<0)&&(r=h),(!g||Array.prototype.indexOf.call(A.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==A.target?tt(r)+1:0,a=n.localPosFromDOM(A.target,s,-1),c=i&&i.parentNode==A.target?tt(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 Ag=new WeakMap,eg=!1;function uU(t){if(!Ag.has(t)&&(Ag.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=rn,eg)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."),eg=!0}}function fU(t){let A;function e(c){c.preventDefault(),c.stopImmediatePropagation(),A=c.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",e,!0);let n=A.startContainer,r=A.startOffset,i=A.endContainer,s=A.endOffset,a=t.domAtPos(t.state.selection.anchor);return Jr(a.node,a.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}function dU(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}],Yo(c)||u.push({node:c.focusNode,offset:c.focusOffset})),$e&&t.input.lastKeyCode===8)for(let b=i;b>r;b--){let F=n.childNodes[b-1],I=F.pmViewDesc;if(F.nodeName=="BR"&&!I){i=b;break}if(!I||I.size)break}let h=t.state.doc,g=t.someProp("domParser")||Ei.fromSchema(t.state.schema),m=h.resolve(s),w=null,U=g.parse(n,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:r,to:i,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:hU,context:m});if(u&&u[0].pos!=null){let b=u[0].pos,F=u[1]&&u[1].pos;F==null&&(F=b),w={anchor:b+s,head:F+s}}return{doc:U,sel:w,from:s,to:a}}function hU(t){let A=t.pmViewDesc;if(A)return A.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(nt&&/^(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||nt&&/^(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 pU=/^(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 gU(t,A,e,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,A<0){let V=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,z=Oc(t,V);if(z&&!t.state.selection.eq(z)){if($e&&sn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",uA=>uA(t,Xr(13,"Enter"))))return;let lA=t.state.tr.setSelection(z);V=="pointer"?lA.setMeta("pointer",!0):V=="key"&&lA.scrollIntoView(),i&&lA.setMeta("composition",i),t.dispatch(lA)}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=dU(t,A,e),f=t.state.doc,h=f.slice(u.from,u.to),g,m;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(g=t.state.selection.to,m="end"):(g=t.state.selection.from,m="start"),t.input.lastKeyCode=null;let w=wU(h.content,u.doc.content,u.from,g,m);if((_i&&t.input.lastIOSEnter>Date.now()-225||sn)&&r.some(V=>V.nodeType==1&&!pU.test(V.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",V=>V(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!w)if(n&&c instanceof wA&&!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 V=tg(t,t.state.doc,u.sel);if(V&&!V.eq(t.state.selection)){let z=t.state.tr.setSelection(V);i&&z.setMeta("composition",i),t.dispatch(z)}}return}if($e&&t.cursorWrapper&&u.sel&&u.sel.anchor==t.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let V=w.endB-w.start;u.sel={anchor:u.sel.anchor+V,head:u.sel.anchor+V}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&w.start==w.endB&&t.state.selection instanceof wA&&(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)),Bt&&or<=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 U=u.doc.resolveNoCache(w.start-u.from),b=u.doc.resolveNoCache(w.endB-u.from),F=f.resolve(w.start),I=U.sameParent(b)&&U.parent.inlineContent&&F.end()>=w.endA,M;if((_i&&t.input.lastIOSEnter>Date.now()-225&&(!I||r.some(V=>V.nodeName=="DIV"||V.nodeName=="P"))||!I&&U.pos<u.doc.content.size&&!U.sameParent(b)&&(M=EA.findFrom(u.doc.resolve(U.pos+1),1,!0))&&M.head==b.pos)&&t.someProp("handleKeyDown",V=>V(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>w.start&&mU(f,w.start,w.endA,U,b)&&t.someProp("handleKeyDown",V=>V(t,Xr(8,"Backspace")))){sn&&$e&&t.domObserver.suppressSelectionUpdates();return}$e&&sn&&w.endB==w.start&&(t.input.lastAndroidDelete=Date.now()),sn&&!I&&U.start()!=b.start()&&b.parentOffset==0&&U.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(V){return V(t,Xr(13,"Enter"))})},20));let E=w.start,N=w.endA,T,H,Y;if(I){if(U.pos==b.pos)Bt&&or<=11&&U.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Mn(t),20)),T=t.state.tr.delete(E,N),H=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(Y=BU(U.parent.content.cut(U.parentOffset,b.parentOffset),F.parent.content.cut(F.parentOffset,w.endA-F.start()))))T=t.state.tr,Y.type=="add"?T.addMark(E,N,Y.mark):T.removeMark(E,N,Y.mark);else if(U.parent.child(U.index()).isText&&U.index()==b.index()-(b.textOffset?0:1)){let V=U.parent.textBetween(U.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",z=>z(t,E,N,V)))return;T=t.state.tr.insertText(V,E,N)}}if(T||(T=t.state.tr.replace(E,N,u.doc.slice(w.start-u.from,w.endB-u.from))),u.sel){let V=tg(t,T.doc,u.sel);V&&!($e&&sn&&t.composing&&V.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(V.head==E||V.head==T.mapping.map(N)-1)||Bt&&V.empty&&V.head==E)&&T.setSelection(V)}H&&T.ensureMarks(H),i&&T.setMeta("composition",i),t.dispatch(T.scrollIntoView())}function tg(t,A,e){return Math.max(e.anchor,e.head)>A.content.size?null:Hc(t,A.resolve(e.anchor),A.resolve(e.head))}function BU(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(J.from(u).eq(t))return{mark:a,type:s}}function mU(t,A,e,n,r){if(!n.parent.isTextblock||e-A<=r.pos-n.pos||$c(n,!0,!1)<r.pos)return!1;let i=t.resolve(A);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve($c(i,!0,!0));return!s.parent.isTextblock||s.pos>e||$c(s,!0,!1)<e?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function $c(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 wU(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&&ng(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&&ng(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function ng(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 CU{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 KF,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(ag),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=sg(this),ig(this),this.nodeViews=og(this),this.docView=hp(this.state.doc,rg(this),Wc(this),this.dom,this),this.domObserver=new cU(this,(n,r,i,s)=>gU(this,n,r,i,s)),this.domObserver.start(),PF(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&&kc(this);let e=this._props;this._props=A,A.plugins&&(A.plugins.forEach(ag),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&&($p(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 m=og(this);EU(m,this.nodeViews)&&(this.nodeViews=m,i=!0)}(a||e.handleDOMEvents!=this._props.handleDOMEvents)&&kc(this),this.editable=sg(this),ig(this);let c=Wc(this),u=rg(this),f=r.plugins!=A.plugins&&!r.doc.eq(A.doc)?"reset":A.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=i||!this.docView.matchesNode(A.doc,u,c);(h||!A.selection.eq(r.selection))&&(s=!0);let g=f=="preserve"&&s&&this.dom.style.overflowAnchor==null&&tF(this);if(s){this.domObserver.stop();let m=h&&(Bt||$e)&&!this.composing&&!r.selection.empty&&!A.selection.empty&&yU(r.selection,A.selection);if(h){let w=$e?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(A.doc,u,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=hp(A.doc,u,c,this.dom,this)),w&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&vF(this))?Mn(this,m):(Fp(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&&nF(g)}scrollToSelection(){let A=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof cA){let e=this.docView.domAfterPos(this.state.selection.from);e.nodeType==1&&ep(this,e.getBoundingClientRect(),A)}else ep(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 Xp(A.slice,A.move,r<0?void 0:cA.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(Bt){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&&rF(this.dom),Mn(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 lF(this,A)}coordsAtPos(A,e=1){return op(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 hF(this,e||this.state,A)}pasteHTML(A,e){return Hs(this,"",A,!1,e||new ClipboardEvent("paste"))}pasteText(A,e){return Hs(this,A,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(VF(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Wc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(A){return WF(this,A)}dispatch(A){let e=this._props.dispatchTransaction;e?e.call(this,A):this.updateState(this.state.apply(A))}domSelectionRange(){return nt&&this.root.nodeType===11&&YQ(this.dom.ownerDocument)==this.dom?fU(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function rg(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 ig(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 sg(t){return!t.someProp("editable",A=>A(t.state)===!1)}function yU(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 og(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 EU(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 ag(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 hr={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:"'"},ta={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},QU=typeof navigator<"u"&&/Mac/.test(navigator.platform),FU=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Me=0;Me<10;Me++)hr[48+Me]=hr[96+Me]=String(Me);for(var Me=1;Me<=24;Me++)hr[Me+111]="F"+Me;for(var Me=65;Me<=90;Me++)hr[Me]=String.fromCharCode(Me+32),ta[Me]=String.fromCharCode(Me);for(var Jc in hr)ta.hasOwnProperty(Jc)||(ta[Jc]=hr[Jc]);function UU(t){var A=QU&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||FU&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!A&&t.key||(t.shiftKey?ta:hr)[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 bU=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function vU(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))bU?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 IU(t){let A=Object.create(null);for(let e in t)A[vU(e)]=t[e];return A}function Xc(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 SU(t){return new gt({props:{handleKeyDown:lg(t)}})}function lg(t){let A=IU(t);return function(e,n){let r=UU(n),i,s=A[Xc(r,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=A[Xc(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=hr[n.keyCode])&&i!=r){let a=A[Xc(i,n)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const TU=(t,A)=>t.selection.empty?!1:(A&&A(t.tr.deleteSelection().scrollIntoView()),!0);function _U(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("backward",t):e.parentOffset>0)?null:e}const xU=(t,A,e)=>{let n=_U(t,e);if(!n)return!1;let r=cg(n);if(!r){let s=n.blockRange(),a=s&&Ui(s);return a==null?!1:(A&&A(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&dg(t,r,A))return!0;if(n.parent.content.size==0&&(Mi(i,"end")||cA.isSelectable(i))){let s=Bc(t.doc,n.before(),n.after(),AA.empty);if(s&&s.slice.size<s.to-s.from){if(A){let a=t.tr.step(s);a.setSelection(Mi(i,"end")?EA.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):cA.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};function Mi(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 OU=(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=cg(n)}let s=i&&i.nodeBefore;return!s||!cA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(cA.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function cg(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 LU(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("forward",t):e.parentOffset<e.parent.content.size)?null:e}const HU=(t,A,e)=>{let n=LU(t,e);if(!n)return!1;let r=ug(n);if(!r)return!1;let i=r.nodeAfter;if(dg(t,r,A))return!0;if(n.parent.content.size==0&&(Mi(i,"start")||cA.isSelectable(i))){let s=Bc(t.doc,n.before(),n.after(),AA.empty);if(s&&s.slice.size<s.to-s.from){if(A){let a=t.tr.step(s);a.setSelection(Mi(i,"start")?EA.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):cA.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},MU=(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=ug(n)}let s=i&&i.nodeAfter;return!s||!cA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(cA.create(t.doc,i.pos)).scrollIntoView()),!0)};function ug(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 NU=(t,A)=>{let e=t.selection,n=e instanceof cA,r;if(n){if(e.node.isTextblock||!ir(t.doc,e.from))return!1;r=e.from}else if(r=$o(t.doc,e.from,-1),r==null)return!1;if(A){let i=t.tr.join(r);n&&i.setSelection(cA.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),A(i.scrollIntoView())}return!0},DU=(t,A)=>{let e=t.selection,n;if(e instanceof cA){if(e.node.isTextblock||!ir(t.doc,e.to))return!1;n=e.to}else if(n=$o(t.doc,e.to,1),n==null)return!1;return A&&A(t.tr.join(n).scrollIntoView()),!0},kU=(t,A)=>{let{$from:e,$to:n}=t.selection,r=e.blockRange(n),i=r&&Ui(r);return i==null?!1:(A&&A(t.tr.lift(r,i).scrollIntoView()),!0)},RU=(t,A)=>{let{$head:e,$anchor:n}=t.selection;return!e.parent.type.spec.code||!e.sameParent(n)?!1:(A&&A(t.tr.insertText(`
|
|
10
|
-
`).scrollIntoView()),!0)};function fg(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 KU=(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=fg(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(EA.near(c.doc.resolve(a),1)),A(c.scrollIntoView())}return!0},PU=(t,A)=>{let e=t.selection,{$from:n,$to:r}=e;if(e instanceof nn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=fg(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(wA.create(a.doc,s+1)),A(a.scrollIntoView())}return!0},VU=(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(bi(t.doc,i))return A&&A(t.tr.split(i).scrollIntoView()),!0}let n=e.blockRange(),r=n&&Ui(n);return r==null?!1:(A&&A(t.tr.lift(n,r).scrollIntoView()),!0)},GU=(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(cA.create(t.doc,r))),!0)};function WU(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||ir(t.doc,A.pos))?!1:(e&&e(t.tr.clearIncompatible(A.pos,n.type,n.contentMatchAt(n.childCount)).join(A.pos).scrollIntoView()),!0)}function dg(t,A,e){let n=A.nodeBefore,r=A.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(WU(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 h=A.pos+r.nodeSize,g=J.empty;for(let U=i.length-1;U>=0;U--)g=J.from(i[U].create(null,g));g=J.from(n.copy(g));let m=t.tr.step(new Ie(A.pos-1,h,A.pos,h,new AA(g,1,0),i.length,!0)),w=h+2*i.length;ir(m.doc,w)&&m.join(w),e(m.scrollIntoView())}return!0}let c=EA.findFrom(A,1),u=c&&c.$from.blockRange(c.$to),f=u&&Ui(u);if(f!=null&&f>=A.depth)return e&&e(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Mi(r,"start",!0)&&Mi(n,"end")){let h=n,g=[];for(;g.push(h),!h.isTextblock;)h=h.lastChild;let m=r,w=1;for(;!m.isTextblock;m=m.firstChild)w++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(e){let U=J.empty;for(let F=g.length-1;F>=0;F--)U=J.from(g[F].copy(U));let b=t.tr.step(new Ie(A.pos-g.length,A.pos+r.nodeSize,A.pos+w,A.pos+r.nodeSize-w,new AA(U,g.length,0),0,!0));e(b.scrollIntoView())}return!0}}return!1}function hg(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(wA.create(A.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const $U=hg(-1),JU=hg(1);function XU(t,A=null){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i),a=s&&gc(s,t,A);return a?(n&&n(e.tr.wrap(s,a).scrollIntoView()),!0):!1}}function pg(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),h=f.index();r=f.parent.canReplaceWith(h,h+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 YU(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 ko(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new ko(r,e.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=gc(c,t,A,s);return u?(n&&n(zU(e.tr,s,u,a,t).scrollIntoView()),!0):!1}}function zU(t,A,e,n,r){let i=J.empty;for(let f=e.length-1;f>=0;f--)i=J.from(e[f].type.create(e[f].attrs,i));t.step(new Ie(A.start-(n?2:0),A.end,A.start,A.end,new AA(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,h=A.endIndex,g=!0;f<h;f++,g=!1)!g&&bi(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(f).nodeSize;return t}function qU(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?ZU(A,e,t,i):jU(A,e,i):!0:!1}}function ZU(t,A,e,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new Ie(i-1,s,i,s,new AA(J.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new ko(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=Ui(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return ir(r.doc,c)&&r.join(c),A(r.scrollIntoView()),!0}function jU(t,A,e){let n=t.tr,r=e.parent;for(let m=e.end,w=e.endIndex-1,U=e.startIndex;w>U;w--)m-=r.child(w).nodeSize,n.delete(m-1,m+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?J.empty:J.from(r))))return!1;let h=i.pos,g=h+s.nodeSize;return n.step(new Ie(h-(a?1:0),g+(c?1:0),h+1,g-1,new AA((a?J.empty:J.from(r.copy(J.empty))).append(c?J.empty:J.from(r.copy(J.empty))),a?0:1,c?0:1),a?0:1)),A(n.scrollIntoView()),!0}function Ab(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=J.from(u?t.create():null),h=new AA(J.from(t.create(null,J.from(a.type.create(null,f)))),u?3:1,0),g=i.start,m=i.end;e(A.tr.step(new Ie(g-(u?3:1),m,g,m,h,1,!0)).scrollIntoView())}return!0}}function na(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),filterTransaction:A.filterTransaction,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 ra{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 h=c(...f)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),h}]))}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)),h={...Object.fromEntries(Object.entries(n).map(([g,m])=>[g,(...U)=>{const b=this.buildProps(u,e),F=m(...U)(b);return a.push(F),h}])),run:f};return h}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:na({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 eb{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 iA(t,A,e){return t.config[A]===void 0&&t.parent?iA(t.parent,A,e):typeof t.config[A]=="function"?t.config[A].bind({...e,parent:t.parent?iA(t.parent,A,e):null}):t.config[A]}function ia(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 gg(t){const A=[],{nodeExtensions:e,markExtensions:n}=ia(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=iA(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([g,m])=>{A.push({type:h,name:g,attribute:{...i,...m}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=iA(s,"addAttributes",a);if(!c)return;const u=c();Object.entries(u).forEach(([f,h])=>{const g={...i,...h};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 Se(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 ge(...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 Yc(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)=>ge(e,n),{})}function Bg(t){return typeof t=="function"}function QA(t,A=void 0,...e){return Bg(t)?A?t.bind(A)(...e):t(...e):t}function tb(t={}){return Object.keys(t).length===0&&t.constructor===Object}function nb(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function mg(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):nb(e.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function wg(t){return Object.fromEntries(Object.entries(t).filter(([A,e])=>A==="attrs"&&tb(e)?!1:e!=null))}function rb(t,A){var e;const n=gg(t),{nodeExtensions:r,markExtensions:i}=ia(t),s=(e=r.find(u=>iA(u,"topNode")))===null||e===void 0?void 0:e.name,a=Object.fromEntries(r.map(u=>{const f=n.filter(F=>F.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:A},g=t.reduce((F,I)=>{const M=iA(I,"extendNodeSchema",h);return{...F,...M?M(u):{}}},{}),m=wg({...g,content:QA(iA(u,"content",h)),marks:QA(iA(u,"marks",h)),group:QA(iA(u,"group",h)),inline:QA(iA(u,"inline",h)),atom:QA(iA(u,"atom",h)),selectable:QA(iA(u,"selectable",h)),draggable:QA(iA(u,"draggable",h)),code:QA(iA(u,"code",h)),defining:QA(iA(u,"defining",h)),isolating:QA(iA(u,"isolating",h)),attrs:Object.fromEntries(f.map(F=>{var I;return[F.name,{default:(I=F==null?void 0:F.attribute)===null||I===void 0?void 0:I.default}]}))}),w=QA(iA(u,"parseHTML",h));w&&(m.parseDOM=w.map(F=>mg(F,f)));const U=iA(u,"renderHTML",h);U&&(m.toDOM=F=>U({node:F,HTMLAttributes:Yc(F,f)}));const b=iA(u,"renderText",h);return b&&(m.toText=b),[u.name,m]})),c=Object.fromEntries(i.map(u=>{const f=n.filter(b=>b.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:A},g=t.reduce((b,F)=>{const I=iA(F,"extendMarkSchema",h);return{...b,...I?I(u):{}}},{}),m=wg({...g,inclusive:QA(iA(u,"inclusive",h)),excludes:QA(iA(u,"excludes",h)),group:QA(iA(u,"group",h)),spanning:QA(iA(u,"spanning",h)),code:QA(iA(u,"code",h)),attrs:Object.fromEntries(f.map(b=>{var F;return[b.name,{default:(F=b==null?void 0:b.attribute)===null||F===void 0?void 0:F.default}]}))}),w=QA(iA(u,"parseHTML",h));w&&(m.parseDOM=w.map(b=>mg(b,f)));const U=iA(u,"renderHTML",h);return U&&(m.toDOM=b=>U({mark:b,HTMLAttributes:Yc(b,f)})),[u.name,m]}));return new dQ({topNode:s,nodes:a,marks:c})}function zc(t,A){return A.nodes[t]||A.marks[t]||null}function Cg(t,A){return Array.isArray(A)?A.some(e=>(typeof e=="string"?e:e.name)===t.name):A}const ib=(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 qc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class sa{constructor(A){this.find=A.find,this.handler=A.handler}}const sb=(t,A)=>{if(qc(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 Zc(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 h=ib(u)+i;return s.forEach(g=>{if(f)return;const m=sb(h,g.find);if(!m)return;const w=c.state.tr,U=na({state:c.state,transaction:w}),b={from:n-(m[0].length-i.length),to:r},{commands:F,chain:I,can:M}=new ra({editor:e,state:U});g.handler({state:U,range:b,match:m,commands:F,chain:I,can:M})===null||!w.steps.length||(w.setMeta(a,{transform:w,from:n,to:r,text:i}),c.dispatch(w),f=!0)}),f}function ob(t){const{editor:A,rules:e}=t,n=new gt({state:{init(){return null},apply(r,i){const s=r.getMeta(n);return s||(r.selectionSet||r.docChanged?null:i)}},props:{handleTextInput(r,i,s,a){return Zc({editor:A,from:i,to:s,text:a,rules:e,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Zc({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?Zc({editor:A,from:s.pos,to:s.pos,text:`
|
|
11
|
-
`,rules:e,plugin:n}):!1}},isInputRules:!0});return n}function ab(t){return typeof t=="number"}class lb{constructor(A){this.find=A.find,this.handler=A.handler}}const cb=(t,A)=>{if(qc(A))return[...t.matchAll(A)];const e=A(t);return e?e.map(n=>{const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(n.replaceWith)),r}):[]};function ub(t){const{editor:A,state:e,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new ra({editor:A,state:e}),h=[];return e.doc.nodesBetween(n,r,(m,w)=>{if(!m.isTextblock||m.type.spec.code)return;const U=Math.max(n,w),b=Math.min(r,w+m.content.size),
|
|
8
|
+
`);return{dom:c,text:g}}function Hp(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(J.from(t.state.schema.text(A.replace(/\r\n?/g,`
|
|
9
|
+
`))),0,0):j.empty;let h=t.someProp("clipboardTextParser",g=>g(A,r,n,t));if(h)a=h;else{let g=r.marks(),{schema:m}=t.state,w=gn.fromSchema(m);s=document.createElement("div"),A.split(/(?:\r\n?|\n)+/).forEach(U=>{let b=s.appendChild(document.createElement("p"));U&&b.appendChild(w.serializeNode(m.text(U,g)))})}}else t.someProp("transformPastedHTML",h=>{e=h(e,t)}),s=NF(e),Ss&&DF(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 h=+f[3];h>0;h--){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")||Ei.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!HF.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)a=kF(kp(a,+f[1],+f[2]),f[4]);else if(a=j.maxOpen(MF(a.content,r),!0),a.openStart||a.openEnd){let h=0,g=0;for(let m=a.content.firstChild;h<a.openStart&&!m.type.spec.isolating;h++,m=m.firstChild);for(let m=a.content.lastChild;g<a.openEnd&&!m.type.spec.isolating;g++,m=m.lastChild);a=kp(a,h,g)}return t.someProp("transformPasted",h=>{a=h(a,t)}),a}const HF=/^(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 MF(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&&Np(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Dp(s[s.length-1],i.length));let f=Mp(a,c);s.push(f),r=r.matchType(f.type),i=c}}),s)return J.from(s)}return t}function Mp(t,A,e=0){for(let n=A.length-1;n>=e;n--)t=A[n].create(null,J.from(t));return t}function Np(t,A,e,n,r){if(r<t.length&&r<A.length&&t[r]==A[r]){let i=Np(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(J.from(Mp(e,t,r+1))))}}function Dp(t,A){if(A==0)return t;let e=t.content.replaceChild(t.childCount-1,Dp(t.lastChild,A-1)),n=t.contentMatchAt(t.childCount).fillBefore(J.empty,!0);return t.copy(e.append(n))}function Dc(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=Dc(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(J.empty,!0))),t.replaceChild(A<0?0:t.childCount-1,s.copy(a))}function kp(t,A,e){return A<t.openStart&&(t=new j(Dc(t.content,-1,A,t.openStart,0,t.openEnd),A,t.openEnd)),e<t.openEnd&&(t=new j(Dc(t.content,1,e,t.openEnd,0,0),t.openStart,e)),t}const Rp={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 Kp=null;function Pp(){return Kp||(Kp=document.implementation.createHTMLDocument("title"))}function NF(t){let A=/^(\s*<meta [^>]*>)*/.exec(t);A&&(t=t.slice(A[0].length));let e=Pp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&Rp[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 DF(t){let A=t.querySelectorAll($e?"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 kF(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=J.from(c.create(n[a+1],r)),i++,s++}return new j(r,i,s)}const rt={},it={},RF={touchstart:!0,touchmove:!0};class KF{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.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 PF(t){for(let A in rt){let e=rt[A];t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>{GF(t,n)&&!Rc(t,n)&&(t.editable||!(n.type in it))&&e(t,n)},RF[A]?{passive:!0}:void 0)}nt&&t.dom.addEventListener("input",()=>null),kc(t)}function ur(t,A){t.input.lastSelectionOrigin=A,t.input.lastSelectionTime=Date.now()}function VF(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 kc(t){t.someProp("handleDOMEvents",A=>{for(let e in A)t.input.eventHandlers[e]||t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>Rc(t,n))})}function Rc(t,A){return t.someProp("handleDOMEvents",e=>{let n=e[A.type];return n?n(t,A)||A.defaultPrevented:!1})}function GF(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 WF(t,A){!Rc(t,A)&&rt[A.type]&&(t.editable||!(A.type in it))&&rt[A.type](t,A)}it.keydown=(t,A)=>{let e=A;if(t.input.shiftKey=e.keyCode==16||e.shiftKey,!Gp(t,e)&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!(sn&&$e&&e.keyCode==13)))if(e.keyCode!=229&&t.domObserver.forceFlush(),_i&&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))||LF(t,e)?e.preventDefault():ur(t,"key")},it.keyup=(t,A)=>{A.keyCode==16&&(t.input.shiftKey=!1)},it.keypress=(t,A)=>{let e=A;if(Gp(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||kt&&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 Zo(t){return{left:t.clientX,top:t.clientY}}function $F(t,A){let e=A.x-t.clientX,n=A.y-t.clientY;return e*e+n*n<100}function Kc(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 Li(t,A,e){t.focused||t.focus();let n=t.state.tr.setSelection(A);e=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function JF(t,A){if(A==-1)return!1;let e=t.state.doc.resolve(A),n=e.nodeAfter;return n&&n.isAtom&&uA.isSelectable(n)?(Li(t,new uA(e),"pointer"),!0):!1}function XF(t,A){if(A==-1)return!1;let e=t.state.selection,n,r;e instanceof uA&&(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(uA.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?(Li(t,uA.create(t.state.doc,r),"pointer"),!0):!1}function YF(t,A,e,n,r){return Kc(t,"handleClickOn",A,e,n)||t.someProp("handleClick",i=>i(t,A,n))||(r?XF(t,e):JF(t,e))}function zF(t,A,e,n){return Kc(t,"handleDoubleClickOn",A,e,n)||t.someProp("handleDoubleClick",r=>r(t,A,n))}function qF(t,A,e,n){return Kc(t,"handleTripleClickOn",A,e,n)||t.someProp("handleTripleClick",r=>r(t,A,n))||ZF(t,e,n)}function ZF(t,A,e){if(e.button!=0)return!1;let n=t.state.doc;if(A==-1)return n.inlineContent?(Li(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)Li(t,CA.create(n,a+1,a+1+s.content.size),"pointer");else if(uA.isSelectable(s))Li(t,uA.create(n,a),"pointer");else continue;return!0}}function Pc(t){return jo(t)}const Vp=kt?"metaKey":"ctrlKey";rt.mousedown=(t,A)=>{let e=A;t.input.shiftKey=e.shiftKey;let n=Pc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&$F(e,t.input.lastClick)&&!e[Vp]&&(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(Zo(e));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new jF(t,s,e,!!n)):(i=="doubleClick"?zF:qF)(t,s.pos,s.inside,e)?e.preventDefault():ur(t,"pointer"))};class jF{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[Vp],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:null;let{selection:u}=A.state;(n.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof uA&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&rn&&!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)),ur(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(()=>Mn(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(Zo(A))),this.updateAllowDefault(A),this.allowDefault||!e?ur(this.view,"pointer"):YF(this.view,e.pos,e.inside,A,this.selectNode)?A.preventDefault():A.button==0&&(this.flushed||nt&&this.mightDrag&&!this.mightDrag.node.isAtom||$e&&!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)?(Li(this.view,EA.near(this.view.state.doc.resolve(e.pos)),"pointer"),A.preventDefault()):ur(this.view,"pointer")}move(A){this.updateAllowDefault(A),ur(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)}}rt.touchstart=t=>{t.input.lastTouch=Date.now(),Pc(t),ur(t,"pointer")},rt.touchmove=t=>{t.input.lastTouch=Date.now(),ur(t,"pointer")},rt.contextmenu=t=>Pc(t);function Gp(t,A){return t.composing?!0:nt&&Math.abs(A.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const AU=sn?5e3:-1;it.compositionstart=it.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(),jo(t,!0),t.markCursor=null;else if(jo(t),rn&&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}Wp(t,AU)},it.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.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Wp(t,20))};function Wp(t,A){clearTimeout(t.input.composingTimeout),A>-1&&(t.input.composingTimeout=setTimeout(()=>jo(t),A))}function $p(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=eU());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function eU(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function jo(t,A=!1){if(!(sn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),$p(t),A||t.docView&&t.docView.dirty){let e=Oc(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}function tU(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 Ls=Bt&&or<15||_i&&jQ<604;rt.copy=it.cut=(t,A)=>{let e=A,n=t.state.selection,r=e.type=="cut";if(n.empty)return;let i=Ls?null:e.clipboardData,s=n.content(),{dom:a,text:c}=Lp(t,s);i?(e.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):tU(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function nU(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function rU(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?Hs(t,n.value,null,r,A):Hs(t,n.textContent,n.innerHTML,r,A)},50)}function Hs(t,A,e,n,r){let i=Hp(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=nU(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," "):""}it.paste=(t,A)=>{let e=A;if(t.composing&&!sn)return;let n=Ls?null:e.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&Hs(t,Jp(n),n.getData("text/html"),r,e)?e.preventDefault():rU(t,e)};class Xp{constructor(A,e,n){this.slice=A,this.move=e,this.node=n}}const Yp=kt?"altKey":"ctrlKey";rt.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(Zo(e)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof uA?r.to-1:r.to))){if(n&&n.mightDrag)s=uA.create(t.state.doc,n.mightDrag.pos);else if(e.target&&e.target.nodeType==1){let f=t.docView.nearestDesc(e.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=uA.create(t.state.doc,f.posBefore))}}let a=(s||t.state.selection).content(),{dom:c,text:u}=Lp(t,a);e.dataTransfer.clearData(),e.dataTransfer.setData(Ls?"Text":"text/html",c.innerHTML),e.dataTransfer.effectAllowed="copyMove",Ls||e.dataTransfer.setData("text/plain",u),t.dragging=new Xp(a,!e[Yp],s)},rt.dragend=t=>{let A=t.dragging;window.setTimeout(()=>{t.dragging==A&&(t.dragging=null)},50)},it.dragover=it.dragenter=(t,A)=>A.preventDefault(),it.drop=(t,A)=>{let e=A,n=t.dragging;if(t.dragging=null,!e.dataTransfer)return;let r=t.posAtCoords(Zo(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=Hp(t,Jp(e.dataTransfer),Ls?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!e[Yp]);if(t.someProp("handleDrop",w=>w(t,e,s||j.empty,a))){e.preventDefault();return}if(!s)return;e.preventDefault();let c=s?Dh(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),h=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=u.doc;if(h?u.replaceRangeWith(f,f,s.content.firstChild):u.replaceRange(f,f,s),u.doc.eq(g))return;let m=u.doc.resolve(f);if(h&&uA.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new uA(m));else{let w=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((U,b,Q,I)=>w=I),u.setSelection(Hc(t,m,u.doc.resolve(w)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},rt.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())&&Mn(t)},20))},rt.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)},rt.beforeinput=(t,A)=>{if($e&&sn&&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 it)rt[t]=it[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 Aa{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 Aa&&(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 fr{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 fr&&Ms(this.attrs,A.attrs)&&Ms(this.spec,A.spec)}static is(A){return A.type instanceof fr}destroy(){}}class Vc{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 Vc&&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 Aa(e,n))}static inline(A,e,n,r){return new Kt(A,e,new fr(n,r))}static node(A,e,n,r){return new Kt(A,e,new Vc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof fr}get widget(){return this.type instanceof Aa}}const Hi=[],Zr={};class Fe{constructor(A,e){this.local=A.length?A:Hi,this.children=e.length?e:Hi}static create(A,e){return e.length?ea(e,A,0,Zr):Je}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==Je||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?iU(this.children,s||[],A,e,n,r,i):s?new Fe(s.sort(jr),Hi):Je}add(A,e){return e.length?this==Je?Fe.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=qp(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,ea(f,a,u+1,Zr)),i+=3}});let s=zp(i?Zp(e):e,-n);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||s.splice(a--,1);return new Fe(s.length?this.local.concat(s).sort(jr):this.local,r||this.children)}remove(A){return A.length==0||this==Je?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,h;f<A.length;f++)(h=A[f])&&h.from>a&&h.to<c&&(A[f]=null,(s||(s=[])).push(h));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=Je?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 Fe(r,n):Je}forChild(A,e){if(this==Je)return this;if(e.isLeaf)return Fe.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 fr){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 Fe(r.sort(jr),Hi);return n?new dr([a,n]):a}return n||Je}eq(A){if(this==A)return!0;if(!(A instanceof Fe)||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 Gc(this.localsInner(A))}localsInner(A){if(this==Je)return Hi;if(A.inlineContent||!this.local.some(fr.is))return this.local;let e=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof fr||e.push(this.local[n]);return e}}Fe.empty=new Fe([],[]),Fe.removeOverlap=Gc;const Je=Fe.empty;class dr{constructor(A){this.members=A}map(A,e){const n=this.members.map(r=>r.map(A,e,Zr));return dr.from(n)}forChild(A,e){if(e.isLeaf)return Fe.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(A,e);i!=Je&&(i instanceof dr?n=n.concat(i.members):n.push(i))}return dr.from(n)}eq(A){if(!(A instanceof dr)||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?Gc(n?e:e.sort(jr)):Hi}static from(A){switch(A.length){case 0:return Je;case 1:return A[0];default:return new dr(A.every(e=>e instanceof Fe)?A:A.reduce((e,n)=>e.concat(n instanceof Fe?n:n.members),[]))}}}function iU(t,A,e,n,r,i,s){let a=t.slice();for(let u=0,f=i;u<e.maps.length;u++){let h=0;e.maps[u].forEach((g,m,w,U)=>{let b=U-w-(m-g);for(let Q=0;Q<a.length;Q+=3){let I=a[Q+1];if(I<0||g>I+f-h)continue;let M=a[Q]+f-h;m>=M?a[Q+1]=g<=M?-2:-1:g>=f&&b&&(a[Q]+=b,a[Q+1]+=b)}h+=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),h=f-r;if(h<0||h>=n.content.size){c=!0;continue}let g=e.map(t[u+1]+i,-1),m=g-r,{index:w,offset:U}=n.content.findIndex(h),b=n.maybeChild(w);if(b&&U==h&&U+b.nodeSize==m){let Q=a[u+2].mapInner(e,b,f+1,t[u]+i+1,s);Q!=Je?(a[u]=h,a[u+1]=m,a[u+2]=Q):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=sU(a,t,A,e,r,i,s),f=ea(u,n,0,s);A=f.local;for(let h=0;h<a.length;h+=3)a[h+1]<0&&(a.splice(h,3),h-=3);for(let h=0,g=0;h<f.children.length;h+=3){let m=f.children[h];for(;g<a.length&&a[g]<m;)g+=3;a.splice(g,0,f.children[h],f.children[h+1],f.children[h+2])}}return new Fe(A.sort(jr),a)}function zp(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 sU(t,A,e,n,r,i,s){function a(c,u){for(let f=0;f<c.local.length;f++){let h=c.local[f].map(n,r,u);h?e.push(h):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 qp(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 Zp(t){let A=[];for(let e=0;e<t.length;e++)t[e]!=null&&A.push(t[e]);return A}function ea(t,A,e,n){let r=[],i=!1;A.forEach((a,c)=>{let u=qp(t,a,c+e);if(u){i=!0;let f=ea(u,a,e+c+1,n);f!=Je&&r.push(c,c+a.nodeSize,f)}});let s=zp(i?Zp(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 Fe(s,r):Je}function jr(t,A){return t.from-A.from||t.to-A.to}function Gc(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),jp(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),jp(A,r,n.copy(i.from,n.to)));break}}}return A}function jp(t,A,e){for(;A<t.length&&jr(e,t[A])>0;)A++;t.splice(A,0,e)}function Wc(t){let A=[];return t.someProp("decorations",e=>{let n=e(t.state);n&&n!=Je&&A.push(n)}),t.cursorWrapper&&A.push(Fe.create(t.state.doc,[t.cursorWrapper.deco])),dr.from(A)}const oU={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},aU=Bt&&or<=11;class lU{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 cU{constructor(A,e){this.view=A,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lU,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]);Bt&&or<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),aU&&(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,oU)),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(bp(this.view)){if(this.suppressingSelectionUpdates)return Mn(this.view);if(Bt&&or<=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=Is(i))e.add(i);for(let i=A.anchorNode;i;i=Is(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)&&bp(A)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(A.editable)for(let f=0;f<e.length;f++){let h=this.registerMutation(e[f],c);h&&(i=i<0?h.from:Math.min(h.from,i),s=s<0?h.to:Math.max(h.to,s),h.typeOver&&(a=!0))}if(rn&&c.length>1){let f=c.filter(h=>h.nodeName=="BR");if(f.length==2){let h=f[0],g=f[1];h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.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&&Yo(n)&&(u=Oc(A))&&u.eq(EA.near(A.state.doc.resolve(0),1))?(A.input.lastFocus=0,Mn(A),this.currentSelection.set(n),A.scrollToSelection()):(i>-1||r)&&(i>-1&&(A.docView.markDirty(i,s),uU(A)),this.handleDOMChange(i,s,a,c),A.docView&&A.docView.dirty?A.updateState(A.state):this.currentSelection.eq(n)||Mn(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(Bt&&or<=11&&A.addedNodes.length)for(let f=0;f<A.addedNodes.length;f++){let{previousSibling:h,nextSibling:g}=A.addedNodes[f];(!h||Array.prototype.indexOf.call(A.addedNodes,h)<0)&&(r=h),(!g||Array.prototype.indexOf.call(A.addedNodes,g)<0)&&(i=g)}let s=r&&r.parentNode==A.target?tt(r)+1:0,a=n.localPosFromDOM(A.target,s,-1),c=i&&i.parentNode==A.target?tt(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 Ag=new WeakMap,eg=!1;function uU(t){if(!Ag.has(t)&&(Ag.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=rn,eg)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."),eg=!0}}function fU(t){let A;function e(c){c.preventDefault(),c.stopImmediatePropagation(),A=c.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",e,!0);let n=A.startContainer,r=A.startOffset,i=A.endContainer,s=A.endOffset,a=t.domAtPos(t.state.selection.anchor);return Jr(a.node,a.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}function dU(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}],Yo(c)||u.push({node:c.focusNode,offset:c.focusOffset})),$e&&t.input.lastKeyCode===8)for(let b=i;b>r;b--){let Q=n.childNodes[b-1],I=Q.pmViewDesc;if(Q.nodeName=="BR"&&!I){i=b;break}if(!I||I.size)break}let h=t.state.doc,g=t.someProp("domParser")||Ei.fromSchema(t.state.schema),m=h.resolve(s),w=null,U=g.parse(n,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:r,to:i,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:hU,context:m});if(u&&u[0].pos!=null){let b=u[0].pos,Q=u[1]&&u[1].pos;Q==null&&(Q=b),w={anchor:b+s,head:Q+s}}return{doc:U,sel:w,from:s,to:a}}function hU(t){let A=t.pmViewDesc;if(A)return A.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(nt&&/^(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||nt&&/^(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 pU=/^(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 gU(t,A,e,n,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,A<0){let P=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,oA=Oc(t,P);if(oA&&!t.state.selection.eq(oA)){if($e&&sn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",hA=>hA(t,Xr(13,"Enter"))))return;let UA=t.state.tr.setSelection(oA);P=="pointer"?UA.setMeta("pointer",!0):P=="key"&&UA.scrollIntoView(),i&&UA.setMeta("composition",i),t.dispatch(UA)}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=dU(t,A,e),f=t.state.doc,h=f.slice(u.from,u.to),g,m;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(g=t.state.selection.to,m="end"):(g=t.state.selection.from,m="start"),t.input.lastKeyCode=null;let w=wU(h.content,u.doc.content,u.from,g,m);if((_i&&t.input.lastIOSEnter>Date.now()-225||sn)&&r.some(P=>P.nodeType==1&&!pU.test(P.nodeName))&&(!w||w.endA>=w.endB)&&t.someProp("handleKeyDown",P=>P(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 P=tg(t,t.state.doc,u.sel);if(P&&!P.eq(t.state.selection)){let oA=t.state.tr.setSelection(P);i&&oA.setMeta("composition",i),t.dispatch(oA)}}return}if($e&&t.cursorWrapper&&u.sel&&u.sel.anchor==t.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let P=w.endB-w.start;u.sel={anchor:u.sel.anchor+P,head:u.sel.anchor+P}}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)),Bt&&or<=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 U=u.doc.resolveNoCache(w.start-u.from),b=u.doc.resolveNoCache(w.endB-u.from),Q=f.resolve(w.start),I=U.sameParent(b)&&U.parent.inlineContent&&Q.end()>=w.endA,M;if((_i&&t.input.lastIOSEnter>Date.now()-225&&(!I||r.some(P=>P.nodeName=="DIV"||P.nodeName=="P"))||!I&&U.pos<u.doc.content.size&&!U.sameParent(b)&&(M=EA.findFrom(u.doc.resolve(U.pos+1),1,!0))&&M.head==b.pos)&&t.someProp("handleKeyDown",P=>P(t,Xr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>w.start&&mU(f,w.start,w.endA,U,b)&&t.someProp("handleKeyDown",P=>P(t,Xr(8,"Backspace")))){sn&&$e&&t.domObserver.suppressSelectionUpdates();return}$e&&sn&&w.endB==w.start&&(t.input.lastAndroidDelete=Date.now()),sn&&!I&&U.start()!=b.start()&&b.parentOffset==0&&U.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(P){return P(t,Xr(13,"Enter"))})},20));let E=w.start,N=w.endA,T,H,Y;if(I){if(U.pos==b.pos)Bt&&or<=11&&U.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Mn(t),20)),T=t.state.tr.delete(E,N),H=f.resolve(w.start).marksAcross(f.resolve(w.endA));else if(w.endA==w.endB&&(Y=BU(U.parent.content.cut(U.parentOffset,b.parentOffset),Q.parent.content.cut(Q.parentOffset,w.endA-Q.start()))))T=t.state.tr,Y.type=="add"?T.addMark(E,N,Y.mark):T.removeMark(E,N,Y.mark);else if(U.parent.child(U.index()).isText&&U.index()==b.index()-(b.textOffset?0:1)){let P=U.parent.textBetween(U.parentOffset,b.parentOffset);if(t.someProp("handleTextInput",oA=>oA(t,E,N,P)))return;T=t.state.tr.insertText(P,E,N)}}if(T||(T=t.state.tr.replace(E,N,u.doc.slice(w.start-u.from,w.endB-u.from))),u.sel){let P=tg(t,T.doc,u.sel);P&&!($e&&sn&&t.composing&&P.empty&&(w.start!=w.endB||t.input.lastAndroidDelete<Date.now()-100)&&(P.head==E||P.head==T.mapping.map(N)-1)||Bt&&P.empty&&P.head==E)&&T.setSelection(P)}H&&T.ensureMarks(H),i&&T.setMeta("composition",i),t.dispatch(T.scrollIntoView())}function tg(t,A,e){return Math.max(e.anchor,e.head)>A.content.size?null:Hc(t,A.resolve(e.anchor),A.resolve(e.head))}function BU(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(J.from(u).eq(t))return{mark:a,type:s}}function mU(t,A,e,n,r){if(!n.parent.isTextblock||e-A<=r.pos-n.pos||$c(n,!0,!1)<r.pos)return!1;let i=t.resolve(A);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve($c(i,!0,!0));return!s.parent.isTextblock||s.pos>e||$c(s,!0,!1)<e?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function $c(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 wU(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&&ng(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&&ng(t.textBetween(i-1,i+1))&&(i+=c?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function ng(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 CU{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 KF,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(ag),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=sg(this),ig(this),this.nodeViews=og(this),this.docView=hp(this.state.doc,rg(this),Wc(this),this.dom,this),this.domObserver=new cU(this,(n,r,i,s)=>gU(this,n,r,i,s)),this.domObserver.start(),PF(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&&kc(this);let e=this._props;this._props=A,A.plugins&&(A.plugins.forEach(ag),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&&($p(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 m=og(this);EU(m,this.nodeViews)&&(this.nodeViews=m,i=!0)}(a||e.handleDOMEvents!=this._props.handleDOMEvents)&&kc(this),this.editable=sg(this),ig(this);let c=Wc(this),u=rg(this),f=r.plugins!=A.plugins&&!r.doc.eq(A.doc)?"reset":A.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=i||!this.docView.matchesNode(A.doc,u,c);(h||!A.selection.eq(r.selection))&&(s=!0);let g=f=="preserve"&&s&&this.dom.style.overflowAnchor==null&&tF(this);if(s){this.domObserver.stop();let m=h&&(Bt||$e)&&!this.composing&&!r.selection.empty&&!A.selection.empty&&yU(r.selection,A.selection);if(h){let w=$e?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(A.doc,u,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=hp(A.doc,u,c,this.dom,this)),w&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&vF(this))?Mn(this,m):(Fp(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&&nF(g)}scrollToSelection(){let A=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof uA){let e=this.docView.domAfterPos(this.state.selection.from);e.nodeType==1&&ep(this,e.getBoundingClientRect(),A)}else ep(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 Xp(A.slice,A.move,r<0?void 0:uA.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(Bt){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&&rF(this.dom),Mn(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 lF(this,A)}coordsAtPos(A,e=1){return op(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 hF(this,e||this.state,A)}pasteHTML(A,e){return Hs(this,"",A,!1,e||new ClipboardEvent("paste"))}pasteText(A,e){return Hs(this,A,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(VF(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Wc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(A){return WF(this,A)}dispatch(A){let e=this._props.dispatchTransaction;e?e.call(this,A):this.updateState(this.state.apply(A))}domSelectionRange(){return nt&&this.root.nodeType===11&&YQ(this.dom.ownerDocument)==this.dom?fU(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function rg(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 ig(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 sg(t){return!t.someProp("editable",A=>A(t.state)===!1)}function yU(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 og(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 EU(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 ag(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 hr={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:"'"},ta={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},QU=typeof navigator<"u"&&/Mac/.test(navigator.platform),FU=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Me=0;Me<10;Me++)hr[48+Me]=hr[96+Me]=String(Me);for(var Me=1;Me<=24;Me++)hr[Me+111]="F"+Me;for(var Me=65;Me<=90;Me++)hr[Me]=String.fromCharCode(Me+32),ta[Me]=String.fromCharCode(Me);for(var Jc in hr)ta.hasOwnProperty(Jc)||(ta[Jc]=hr[Jc]);function UU(t){var A=QU&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||FU&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!A&&t.key||(t.shiftKey?ta:hr)[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 bU=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function vU(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))bU?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 IU(t){let A=Object.create(null);for(let e in t)A[vU(e)]=t[e];return A}function Xc(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 SU(t){return new gt({props:{handleKeyDown:lg(t)}})}function lg(t){let A=IU(t);return function(e,n){let r=UU(n),i,s=A[Xc(r,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=A[Xc(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=hr[n.keyCode])&&i!=r){let a=A[Xc(i,n)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const TU=(t,A)=>t.selection.empty?!1:(A&&A(t.tr.deleteSelection().scrollIntoView()),!0);function _U(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("backward",t):e.parentOffset>0)?null:e}const xU=(t,A,e)=>{let n=_U(t,e);if(!n)return!1;let r=cg(n);if(!r){let s=n.blockRange(),a=s&&Ui(s);return a==null?!1:(A&&A(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&dg(t,r,A))return!0;if(n.parent.content.size==0&&(Mi(i,"end")||uA.isSelectable(i))){let s=Bc(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(Mi(i,"end")?EA.findFrom(a.doc.resolve(a.mapping.map(r.pos,-1)),-1):uA.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};function Mi(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 OU=(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=cg(n)}let s=i&&i.nodeBefore;return!s||!uA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(uA.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function cg(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 LU(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("forward",t):e.parentOffset<e.parent.content.size)?null:e}const HU=(t,A,e)=>{let n=LU(t,e);if(!n)return!1;let r=ug(n);if(!r)return!1;let i=r.nodeAfter;if(dg(t,r,A))return!0;if(n.parent.content.size==0&&(Mi(i,"start")||uA.isSelectable(i))){let s=Bc(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(Mi(i,"start")?EA.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):uA.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},MU=(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=ug(n)}let s=i&&i.nodeAfter;return!s||!uA.isSelectable(s)?!1:(A&&A(t.tr.setSelection(uA.create(t.doc,i.pos)).scrollIntoView()),!0)};function ug(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 NU=(t,A)=>{let e=t.selection,n=e instanceof uA,r;if(n){if(e.node.isTextblock||!ir(t.doc,e.from))return!1;r=e.from}else if(r=$o(t.doc,e.from,-1),r==null)return!1;if(A){let i=t.tr.join(r);n&&i.setSelection(uA.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),A(i.scrollIntoView())}return!0},DU=(t,A)=>{let e=t.selection,n;if(e instanceof uA){if(e.node.isTextblock||!ir(t.doc,e.to))return!1;n=e.to}else if(n=$o(t.doc,e.to,1),n==null)return!1;return A&&A(t.tr.join(n).scrollIntoView()),!0},kU=(t,A)=>{let{$from:e,$to:n}=t.selection,r=e.blockRange(n),i=r&&Ui(r);return i==null?!1:(A&&A(t.tr.lift(r,i).scrollIntoView()),!0)},RU=(t,A)=>{let{$head:e,$anchor:n}=t.selection;return!e.parent.type.spec.code||!e.sameParent(n)?!1:(A&&A(t.tr.insertText(`
|
|
10
|
+
`).scrollIntoView()),!0)};function fg(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 KU=(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=fg(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(EA.near(c.doc.resolve(a),1)),A(c.scrollIntoView())}return!0},PU=(t,A)=>{let e=t.selection,{$from:n,$to:r}=e;if(e instanceof nn||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=fg(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},VU=(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(bi(t.doc,i))return A&&A(t.tr.split(i).scrollIntoView()),!0}let n=e.blockRange(),r=n&&Ui(n);return r==null?!1:(A&&A(t.tr.lift(n,r).scrollIntoView()),!0)},GU=(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(uA.create(t.doc,r))),!0)};function WU(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||ir(t.doc,A.pos))?!1:(e&&e(t.tr.clearIncompatible(A.pos,n.type,n.contentMatchAt(n.childCount)).join(A.pos).scrollIntoView()),!0)}function dg(t,A,e){let n=A.nodeBefore,r=A.nodeAfter,i,s;if(n.type.spec.isolating||r.type.spec.isolating)return!1;if(WU(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 h=A.pos+r.nodeSize,g=J.empty;for(let U=i.length-1;U>=0;U--)g=J.from(i[U].create(null,g));g=J.from(n.copy(g));let m=t.tr.step(new Ie(A.pos-1,h,A.pos,h,new j(g,1,0),i.length,!0)),w=h+2*i.length;ir(m.doc,w)&&m.join(w),e(m.scrollIntoView())}return!0}let c=EA.findFrom(A,1),u=c&&c.$from.blockRange(c.$to),f=u&&Ui(u);if(f!=null&&f>=A.depth)return e&&e(t.tr.lift(u,f).scrollIntoView()),!0;if(a&&Mi(r,"start",!0)&&Mi(n,"end")){let h=n,g=[];for(;g.push(h),!h.isTextblock;)h=h.lastChild;let m=r,w=1;for(;!m.isTextblock;m=m.firstChild)w++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(e){let U=J.empty;for(let Q=g.length-1;Q>=0;Q--)U=J.from(g[Q].copy(U));let b=t.tr.step(new Ie(A.pos-g.length,A.pos+r.nodeSize,A.pos+w,A.pos+r.nodeSize-w,new j(U,g.length,0),0,!0));e(b.scrollIntoView())}return!0}}return!1}function hg(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 $U=hg(-1),JU=hg(1);function XU(t,A=null){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i),a=s&&gc(s,t,A);return a?(n&&n(e.tr.wrap(s,a).scrollIntoView()),!0):!1}}function pg(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),h=f.index();r=f.parent.canReplaceWith(h,h+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 YU(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 ko(f,f,s.depth),s.endIndex<s.parent.childCount&&(s=new ko(r,e.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=gc(c,t,A,s);return u?(n&&n(zU(e.tr,s,u,a,t).scrollIntoView()),!0):!1}}function zU(t,A,e,n,r){let i=J.empty;for(let f=e.length-1;f>=0;f--)i=J.from(e[f].type.create(e[f].attrs,i));t.step(new Ie(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,h=A.endIndex,g=!0;f<h;f++,g=!1)!g&&bi(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(f).nodeSize;return t}function qU(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?ZU(A,e,t,i):jU(A,e,i):!0:!1}}function ZU(t,A,e,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new Ie(i-1,s,i,s,new j(J.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new ko(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=Ui(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return ir(r.doc,c)&&r.join(c),A(r.scrollIntoView()),!0}function jU(t,A,e){let n=t.tr,r=e.parent;for(let m=e.end,w=e.endIndex-1,U=e.startIndex;w>U;w--)m-=r.child(w).nodeSize,n.delete(m-1,m+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?J.empty:J.from(r))))return!1;let h=i.pos,g=h+s.nodeSize;return n.step(new Ie(h-(a?1:0),g+(c?1:0),h+1,g-1,new j((a?J.empty:J.from(r.copy(J.empty))).append(c?J.empty:J.from(r.copy(J.empty))),a?0:1,c?0:1),a?0:1)),A(n.scrollIntoView()),!0}function Ab(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=J.from(u?t.create():null),h=new j(J.from(t.create(null,J.from(a.type.create(null,f)))),u?3:1,0),g=i.start,m=i.end;e(A.tr.step(new Ie(g-(u?3:1),m,g,m,h,1,!0)).scrollIntoView())}return!0}}function na(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),filterTransaction:A.filterTransaction,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 ra{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 h=c(...f)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),h}]))}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)),h={...Object.fromEntries(Object.entries(n).map(([g,m])=>[g,(...U)=>{const b=this.buildProps(u,e),Q=m(...U)(b);return a.push(Q),h}])),run:f};return h}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:na({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 eb{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 iA(t,A,e){return t.config[A]===void 0&&t.parent?iA(t.parent,A,e):typeof t.config[A]=="function"?t.config[A].bind({...e,parent:t.parent?iA(t.parent,A,e):null}):t.config[A]}function ia(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 gg(t){const A=[],{nodeExtensions:e,markExtensions:n}=ia(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=iA(s,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([g,m])=>{A.push({type:h,name:g,attribute:{...i,...m}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},c=iA(s,"addAttributes",a);if(!c)return;const u=c();Object.entries(u).forEach(([f,h])=>{const g={...i,...h};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 Se(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 Ce(...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 Yc(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)=>Ce(e,n),{})}function Bg(t){return typeof t=="function"}function QA(t,A=void 0,...e){return Bg(t)?A?t.bind(A)(...e):t(...e):t}function tb(t={}){return Object.keys(t).length===0&&t.constructor===Object}function nb(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function mg(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):nb(e.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function wg(t){return Object.fromEntries(Object.entries(t).filter(([A,e])=>A==="attrs"&&tb(e)?!1:e!=null))}function rb(t,A){var e;const n=gg(t),{nodeExtensions:r,markExtensions:i}=ia(t),s=(e=r.find(u=>iA(u,"topNode")))===null||e===void 0?void 0:e.name,a=Object.fromEntries(r.map(u=>{const f=n.filter(Q=>Q.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:A},g=t.reduce((Q,I)=>{const M=iA(I,"extendNodeSchema",h);return{...Q,...M?M(u):{}}},{}),m=wg({...g,content:QA(iA(u,"content",h)),marks:QA(iA(u,"marks",h)),group:QA(iA(u,"group",h)),inline:QA(iA(u,"inline",h)),atom:QA(iA(u,"atom",h)),selectable:QA(iA(u,"selectable",h)),draggable:QA(iA(u,"draggable",h)),code:QA(iA(u,"code",h)),defining:QA(iA(u,"defining",h)),isolating:QA(iA(u,"isolating",h)),attrs:Object.fromEntries(f.map(Q=>{var I;return[Q.name,{default:(I=Q==null?void 0:Q.attribute)===null||I===void 0?void 0:I.default}]}))}),w=QA(iA(u,"parseHTML",h));w&&(m.parseDOM=w.map(Q=>mg(Q,f)));const U=iA(u,"renderHTML",h);U&&(m.toDOM=Q=>U({node:Q,HTMLAttributes:Yc(Q,f)}));const b=iA(u,"renderText",h);return b&&(m.toText=b),[u.name,m]})),c=Object.fromEntries(i.map(u=>{const f=n.filter(b=>b.type===u.name),h={name:u.name,options:u.options,storage:u.storage,editor:A},g=t.reduce((b,Q)=>{const I=iA(Q,"extendMarkSchema",h);return{...b,...I?I(u):{}}},{}),m=wg({...g,inclusive:QA(iA(u,"inclusive",h)),excludes:QA(iA(u,"excludes",h)),group:QA(iA(u,"group",h)),spanning:QA(iA(u,"spanning",h)),code:QA(iA(u,"code",h)),attrs:Object.fromEntries(f.map(b=>{var Q;return[b.name,{default:(Q=b==null?void 0:b.attribute)===null||Q===void 0?void 0:Q.default}]}))}),w=QA(iA(u,"parseHTML",h));w&&(m.parseDOM=w.map(b=>mg(b,f)));const U=iA(u,"renderHTML",h);return U&&(m.toDOM=b=>U({mark:b,HTMLAttributes:Yc(b,f)})),[u.name,m]}));return new dQ({topNode:s,nodes:a,marks:c})}function zc(t,A){return A.nodes[t]||A.marks[t]||null}function Cg(t,A){return Array.isArray(A)?A.some(e=>(typeof e=="string"?e:e.name)===t.name):A}const ib=(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 qc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class sa{constructor(A){this.find=A.find,this.handler=A.handler}}const sb=(t,A)=>{if(qc(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 Zc(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 h=ib(u)+i;return s.forEach(g=>{if(f)return;const m=sb(h,g.find);if(!m)return;const w=c.state.tr,U=na({state:c.state,transaction:w}),b={from:n-(m[0].length-i.length),to:r},{commands:Q,chain:I,can:M}=new ra({editor:e,state:U});g.handler({state:U,range:b,match:m,commands:Q,chain:I,can:M})===null||!w.steps.length||(w.setMeta(a,{transform:w,from:n,to:r,text:i}),c.dispatch(w),f=!0)}),f}function ob(t){const{editor:A,rules:e}=t,n=new gt({state:{init(){return null},apply(r,i){const s=r.getMeta(n);return s||(r.selectionSet||r.docChanged?null:i)}},props:{handleTextInput(r,i,s,a){return Zc({editor:A,from:i,to:s,text:a,rules:e,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Zc({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?Zc({editor:A,from:s.pos,to:s.pos,text:`
|
|
11
|
+
`,rules:e,plugin:n}):!1}},isInputRules:!0});return n}function ab(t){return typeof t=="number"}class lb{constructor(A){this.find=A.find,this.handler=A.handler}}const cb=(t,A)=>{if(qc(A))return[...t.matchAll(A)];const e=A(t);return e?e.map(n=>{const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(n.replaceWith)),r}):[]};function ub(t){const{editor:A,state:e,from:n,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:c,chain:u,can:f}=new ra({editor:A,state:e}),h=[];return e.doc.nodesBetween(n,r,(m,w)=>{if(!m.isTextblock||m.type.spec.code)return;const U=Math.max(n,w),b=Math.min(r,w+m.content.size),Q=m.textBetween(U-w,b-w,void 0,"");cb(Q,i.find).forEach(M=>{if(M.index===void 0)return;const E=U+M.index+1,N=E+M[0].length,T={from:e.tr.mapping.map(E),to:e.tr.mapping.map(N)},H=i.handler({state:e,range:T,match:M,commands:c,chain:u,can:f,pasteEvent:s,dropEvent:a});h.push(H)})}),h.every(m=>m!==null)}function fb(t){const{editor:A,rules:e}=t;let n=null,r=!1,i=!1,s=new ClipboardEvent("paste"),a=new DragEvent("drop");return e.map(u=>new gt({view(f){const h=g=>{var m;n=!((m=f.dom.parentElement)===null||m===void 0)&&m.contains(g.target)?f.dom.parentElement:null};return window.addEventListener("dragstart",h),{destroy(){window.removeEventListener("dragstart",h)}}},props:{handleDOMEvents:{drop:(f,h)=>(i=n===f.dom.parentElement,a=h,!1),paste:(f,h)=>{var g;const m=(g=h.clipboardData)===null||g===void 0?void 0:g.getData("text/html");return s=h,r=!!(m!=null&&m.includes("data-pm-slice")),!1}}},appendTransaction:(f,h,g)=>{const m=f[0],w=m.getMeta("uiEvent")==="paste"&&!r,U=m.getMeta("uiEvent")==="drop"&&!i;if(!w&&!U)return;const b=h.doc.content.findDiffStart(g.doc.content),Q=h.doc.content.findDiffEnd(g.doc.content);if(!ab(b)||!Q||b===Q.b)return;const I=g.tr,M=na({state:g,transaction:I});if(!(!ub({editor:A,state:M,from:Math.max(b-1,0),to:Q.b-1,rule:u,pasteEvent:s,dropEvent:a})||!I.steps.length))return a=new DragEvent("drop"),s=new ClipboardEvent("paste"),I}}))}function db(t){const A=t.filter((e,n)=>t.indexOf(e)!==n);return[...new Set(A)]}class Ni{constructor(A,e){this.splittableMarks=[],this.editor=e,this.extensions=Ni.resolve(A),this.schema=rb(this.extensions,e),this.extensions.forEach(n=>{var r;this.editor.extensionStorage[n.name]=n.storage;const i={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:zc(n.name,this.schema)};n.type==="mark"&&(!((r=QA(iA(n,"keepOnSplit",i)))!==null&&r!==void 0)||r)&&this.splittableMarks.push(n.name);const s=iA(n,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const a=iA(n,"onCreate",i);a&&this.editor.on("create",a);const c=iA(n,"onUpdate",i);c&&this.editor.on("update",c);const u=iA(n,"onSelectionUpdate",i);u&&this.editor.on("selectionUpdate",u);const f=iA(n,"onTransaction",i);f&&this.editor.on("transaction",f);const h=iA(n,"onFocus",i);h&&this.editor.on("focus",h);const g=iA(n,"onBlur",i);g&&this.editor.on("blur",g);const m=iA(n,"onDestroy",i);m&&this.editor.on("destroy",m)})}static resolve(A){const e=Ni.sort(Ni.flatten(A)),n=db(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=iA(e,"addExtensions",n);return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(A){return A.sort((n,r)=>{const i=iA(n,"priority")||100,s=iA(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:zc(e.name,this.schema)},r=iA(e,"addCommands",n);return r?{...A,...r()}:A},{})}get plugins(){const{editor:A}=this,e=Ni.sort([...this.extensions].reverse()),n=[],r=[],i=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:A,type:zc(s.name,this.schema)},c=[],u=iA(s,"addKeyboardShortcuts",a);let f={};if(s.type==="mark"&&s.config.exitable&&(f.ArrowRight=()=>on.handleExit({editor:A,mark:s})),u){const U=Object.fromEntries(Object.entries(u()).map(([b,Q])=>[b,()=>Q({editor:A})]));f={...f,...U}}const h=SU(f);c.push(h);const g=iA(s,"addInputRules",a);Cg(s,A.options.enableInputRules)&&g&&n.push(...g());const m=iA(s,"addPasteRules",a);Cg(s,A.options.enablePasteRules)&&m&&r.push(...m());const w=iA(s,"addProseMirrorPlugins",a);if(w){const U=w();c.push(...U)}return c}).flat();return[ob({editor:A,rules:n}),...fb({editor:A,rules:r}),...i]}get attributes(){return gg(this.extensions)}get nodeViews(){const{editor:A}=this,{nodeExtensions:e}=ia(this.extensions);return Object.fromEntries(e.filter(n=>!!iA(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:Se(n.name,this.schema)},s=iA(n,"addNodeView",i);if(!s)return[];const a=(c,u,f,h)=>{const g=Yc(c,r);return s()({editor:A,node:c,getPos:f,decorations:h,HTMLAttributes:g,extension:n})};return[n.name,a]}))}}function hb(t){return Object.prototype.toString.call(t).slice(8,-1)}function jc(t){return hb(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function oa(t,A){const e={...t};return jc(t)&&jc(A)&&Object.keys(A).forEach(n=>{jc(A[n])?n in t?e[n]=oa(t[n],A[n]):Object.assign(e,{[n]:A[n]}):Object.assign(e,{[n]:A[n]})}),e}class Xe{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&&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=QA(iA(this,"addOptions",{name:this.name}))),this.storage=QA(iA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new Xe(A)}configure(A={}){const e=this.extend();return e.options=oa(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new Xe(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=QA(iA(e,"addOptions",{name:e.name})),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}}function yg(t,A,e){const{from:n,to:r}=A,{blockSeparator:i=`
|
|
12
12
|
|
|
13
|
-
`,textSerializers:s={}}=e||{};let a="",c=!0;return t.nodesBetween(n,r,(u,f,h,g)=>{var m;const w=s==null?void 0:s[u.type.name];w?(u.isBlock&&!c&&(a+=i,c=!0),h&&(a+=w({node:u,pos:f,parent:h,index:g,range:A}))):u.isText?(a+=(m=u==null?void 0:u.text)===null||m===void 0?void 0:m.slice(Math.max(n,f)-f,r-f),c=!1):u.isBlock&&!c&&(a+=i,c=!0)}),a}function Eg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,A])=>A.spec.toText).map(([A,e])=>[A,e.spec.toText]))}const pb=Xe.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new gt({key:new mn("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=Eg(e);return yg(n,{from:s,to:a},{textSerializers:c})}}})]}}),gb=()=>({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),Bb=(t=!1)=>({commands:A})=>A.setContent("",t),mb=()=>({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,h=u.resolve(f.map(c)),g=u.resolve(f.map(c+a.nodeSize)),m=h.blockRange(g);if(!m)return;const w=Ui(m);if(a.type.isTextblock){const{defaultType:U}=h.parent.contentMatchAt(h.index());A.setNodeMarkup(m.start,U)}(w||w===0)&&A.lift(m,w)})}),!0},wb=t=>A=>t(A),Cb=()=>({state:t,dispatch:A})=>PU(t,A),yb=(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 wA(n.doc.resolve(s-1))),!0},Eb=()=>({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},Qb=t=>({tr:A,state:e,dispatch:n})=>{const r=Se(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},Fb=t=>({tr:A,dispatch:e})=>{const{from:n,to:r}=t;return e&&A.delete(n,r),!0},Ub=()=>({state:t,dispatch:A})=>TU(t,A),bb=()=>({commands:t})=>t.keyboardShortcut("Enter"),vb=()=>({state:t,dispatch:A})=>KU(t,A);function aa(t,A,e={strict:!0}){const n=Object.keys(A);return n.length?n.every(r=>e.strict?A[r]===t[r]:qc(A[r])?A[r].test(t[r]):A[r]===t[r]):!0}function Au(t,A,e={}){return t.find(n=>n.type===A&&aa(n.attrs,e))}function Ib(t,A,e={}){return!!Au(t,A,e)}function eu(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=Au([...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(Au([...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&&Ib([...t.parent.child(a).marks],A,e);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function pr(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 Sb=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const i=pr(t,n.schema),{doc:s,selection:a}=e,{$from:c,from:u,to:f}=a;if(r){const h=eu(c,i,A);if(h&&h.from<=u&&h.to>=f){const g=wA.create(s,h.from,h.to);e.setSelection(g)}}return!0},Tb=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 tu(t){return t instanceof wA}function Nn(t=0,A=0,e=0){return Math.min(Math.max(t,A),e)}function Qg(t,A=null){if(!A)return null;const e=EA.atStart(t),n=EA.atEnd(t);if(A==="start"||A===!0)return e;if(A==="end")return n;const r=e.from,i=n.to;return A==="all"?wA.create(t,Nn(0,r,i),Nn(t.content.size,r,i)):wA.create(t,Nn(A,r,i),Nn(A,r,i))}function nu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const _b=(t=null,A={})=>({editor:e,view:n,tr:r,dispatch:i})=>{A={scrollIntoView:!0,...A};const s=()=>{nu()&&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&&!tu(e.state.selection))return s(),!0;const a=Qg(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},xb=(t,A)=>e=>t.every((n,r)=>A(n,{...e,index:r})),Ob=(t,A)=>({tr:e,commands:n})=>n.insertContentAt({from:e.selection.from,to:e.selection.to},t,A);function Fg(t){const A=`<body>${t}</body>`;return new window.DOMParser().parseFromString(A,"text/html").body}function la(t,A,e){if(e={slice:!0,parseOptions:{},...e},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?J.fromArray(t.map(n=>A.nodeFromJSON(n))):A.nodeFromJSON(t)}catch(n){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",n),la("",A,e)}if(typeof t=="string"){const n=Ei.fromSchema(A);return e.slice?n.parseSlice(Fg(t),e.parseOptions).content:n.parse(Fg(t),e.parseOptions)}return la("",A,e)}function Lb(t,A,e){const n=t.steps.length-1;if(n<A)return;const r=t.steps[n];if(!(r instanceof He||r instanceof Ie))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(EA.near(t.doc.resolve(s),e))}const Hb=t=>t.toString().startsWith("<"),Mb=(t,A,e)=>({tr:n,dispatch:r,editor:i})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=la(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((Hb(s)?s:[s]).forEach(g=>{g.check(),u=u?g.isText&&g.marks.length===0:!1,f=f?g.isBlock:!1}),a===c&&f){const{parent:g}=n.doc.resolve(a);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(a-=1,c+=1)}u?Array.isArray(A)?n.insertText(A.map(g=>g.text||"").join(""),a,c):typeof A=="object"&&A&&A.text?n.insertText(A.text,a,c):n.insertText(A,a,c):n.replaceWith(a,c,s),e.updateSelection&&Lb(n,n.steps.length-1,-1)}return!0},Nb=()=>({state:t,dispatch:A})=>NU(t,A),Db=()=>({state:t,dispatch:A})=>DU(t,A),kb=()=>({state:t,dispatch:A})=>xU(t,A),Rb=()=>({state:t,dispatch:A})=>HU(t,A),Kb=()=>({tr:t,state:A,dispatch:e})=>{try{const n=$o(A.doc,A.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),e&&e(t),!0)}catch{return!1}},Pb=()=>({state:t,dispatch:A,tr:e})=>{try{const n=$o(t.doc,t.selection.$from.pos,1);return n==null?!1:(e.join(n,2),A&&A(e),!0)}catch{return!1}};function ru(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Vb(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))nu()||ru()?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 Gb=t=>({editor:A,view:e,tr:n,dispatch:r})=>{const i=Vb(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 Ns(t,A,e={}){const{from:n,to:r,empty:i}=t.selection,s=A?Se(A,t.schema):null,a=[];t.doc.nodesBetween(n,r,(h,g)=>{if(h.isText)return;const m=Math.max(n,g),w=Math.min(r,g+h.nodeSize);a.push({node:h,from:m,to:w})});const c=r-n,u=a.filter(h=>s?s.name===h.node.type.name:!0).filter(h=>aa(h.node.attrs,e,{strict:!1}));return i?!!u.length:u.reduce((h,g)=>h+g.to-g.from,0)>=c}const Wb=(t,A={})=>({state:e,dispatch:n})=>{const r=Se(t,e.schema);return Ns(e,r,A)?kU(e,n):!1},$b=()=>({state:t,dispatch:A})=>VU(t,A),Jb=t=>({state:A,dispatch:e})=>{const n=Se(t,A.schema);return qU(n)(A,e)},Xb=()=>({state:t,dispatch:A})=>RU(t,A);function ca(t,A){return A.nodes[t]?"node":A.marks[t]?"mark":null}function Ug(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 Yb=(t,A)=>({tr:e,state:n,dispatch:r})=>{let i=null,s=null;const a=ca(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Se(t,n.schema)),a==="mark"&&(s=pr(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,Ug(u.attrs,A)),s&&u.marks.length&&u.marks.forEach(h=>{s===h.type&&e.addMark(f,f+u.nodeSize,s.create(Ug(h.attrs,A)))})})}),!0):!1},zb=()=>({tr:t,dispatch:A})=>(A&&t.scrollIntoView(),!0),qb=()=>({tr:t,commands:A})=>A.setTextSelection({from:0,to:t.doc.content.size}),Zb=()=>({state:t,dispatch:A})=>OU(t,A),jb=()=>({state:t,dispatch:A})=>MU(t,A),Av=()=>({state:t,dispatch:A})=>GU(t,A),ev=()=>({state:t,dispatch:A})=>JU(t,A),tv=()=>({state:t,dispatch:A})=>$U(t,A);function bg(t,A,e={}){return la(t,A,{slice:!1,parseOptions:e})}const nv=(t,A=!1,e={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=bg(t,r.schema,e);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!A),!0};function ua(t,A){const e=pr(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 rv(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 iv(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 iu(t){return A=>iv(A.$from,t)}function sv(t,A){const e=gn.fromSchema(A).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function ov(t,A){const e={from:0,to:t.content.size};return yg(t,e,A)}function av(t,A){const e=Se(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 lv(t,A){const e=ca(typeof A=="string"?A:A.name,t.schema);return e==="node"?av(t,A):e==="mark"?ua(t,A):{}}function vg(t,A,e){const n=[];return t===A?e.resolve(t).marks().forEach(r=>{const i=e.resolve(t-1),s=eu(i,r.type);s&&n.push({mark:r,...s})}):e.nodesBetween(t,A,(r,i)=>{n.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),n}function fa(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 su(t,A,e={}){const{empty:n,ranges:r}=t.selection,i=A?pr(A,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(h=>i?i.name===h.type.name:!0).find(h=>aa(h.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:h,$to:g})=>{const m=h.pos,w=g.pos;t.doc.nodesBetween(m,w,(U,b)=>{if(!U.isText&&!U.marks.length)return;const F=Math.max(m,b),I=Math.min(w,b+U.nodeSize),M=I-F;s+=M,a.push(...U.marks.map(E=>({mark:E,from:F,to:I})))})}),s===0)return!1;const c=a.filter(h=>i?i.name===h.mark.type.name:!0).filter(h=>aa(h.mark.attrs,e,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),u=a.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):!0).reduce((h,g)=>h+g.to-g.from,0);return(c>0?c+u:c)>=s}function cv(t,A,e={}){if(!A)return Ns(t,null,e)||su(t,null,e);const n=ca(A,t.schema);return n==="node"?Ns(t,A,e):n==="mark"?su(t,A,e):!1}function Ig(t,A){const{nodeExtensions:e}=ia(A),n=e.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=QA(iA(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function uv(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 fv(t){return t instanceof cA}function Sg(t,A,e){const r=t.state.doc.content.size,i=Nn(A,0,r),s=Nn(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),h=Math.min(a.left,c.left),g=Math.max(a.right,c.right),m=g-h,w=f-u,F={top:u,bottom:f,left:h,right:g,width:m,height:w,x:h,y:u};return{...F,toJSON:()=>F}}function dv(t,A,e){var n;const{selection:r}=A;let i=null;if(tu(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,h,g)=>{if(u)return!1;if(f.isInline){const m=!g||g.type.allowsMarkType(e),w=!!e.isInSet(f.marks)||!f.marks.some(U=>U.type.excludes(e));u=m&&w}return!u}),u})}const hv=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=e,{empty:s,ranges:a}=i,c=pr(t,n.schema);if(r)if(s){const u=ua(n,c);e.addStoredMark(c.create({...u,...A}))}else a.forEach(u=>{const f=u.$from.pos,h=u.$to.pos;n.doc.nodesBetween(f,h,(g,m)=>{const w=Math.max(m,f),U=Math.min(m+g.nodeSize,h);g.marks.find(F=>F.type===c)?g.marks.forEach(F=>{c===F.type&&e.addMark(w,U,c.create({...F.attrs,...A}))}):e.addMark(w,U,c.create(A))})});return dv(n,e,c)},pv=(t,A)=>({tr:e})=>(e.setMeta(t,A),!0),gv=(t,A={})=>({state:e,dispatch:n,chain:r})=>{const i=Se(t,e.schema);return i.isTextblock?r().command(({commands:s})=>pg(i,A)(e)?!0:s.clearNodes()).command(({state:s})=>pg(i,A)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Bv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,r=Nn(t,0,n.content.size),i=cA.create(n,r);A.setSelection(i)}return!0},mv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=wA.atStart(n).from,a=wA.atEnd(n).to,c=Nn(r,s,a),u=Nn(i,s,a),f=wA.create(n,c,u);A.setSelection(f)}return!0},wv=t=>({state:A,dispatch:e})=>{const n=Se(t,A.schema);return Ab(n)(A,e)};function Tg(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 Cv=({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=fa(u,a.node().type.name,a.node().attrs);if(i instanceof cA&&i.node.isBlock)return!a.parentOffset||!bi(s,a.pos)?!1:(n&&(t&&Tg(e,r.extensionManager.splittableMarks),A.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const h=c.parentOffset===c.parent.content.size;i instanceof wA&&A.deleteSelection();const g=a.depth===0?void 0:rv(a.node(-1).contentMatchAt(a.indexAfter(-1)));let m=h&&g?[{type:g,attrs:f}]:void 0,w=bi(A.doc,A.mapping.map(a.pos),1,m);if(!m&&!w&&bi(A.doc,A.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,m=g?[{type:g,attrs:f}]:void 0),w&&(A.split(A.mapping.map(a.pos),1,m),g&&!h&&!a.parentOffset&&a.parent.type!==g)){const U=A.mapping.map(a.before()),b=A.doc.resolve(U);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&A.setNodeMarkup(A.mapping.map(a.before()),g)}t&&Tg(e,r.extensionManager.splittableMarks),A.scrollIntoView()}return!0},yv=t=>({tr:A,state:e,dispatch:n,editor:r})=>{var i;const s=Se(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 h=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=J.empty;const F=a.index(-1)?1:a.index(-2)?2:3;for(let H=a.depth-F;H>=a.depth-3;H-=1)b=J.from(a.node(H).copy(b));const I=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,M=fa(h,a.node().type.name,a.node().attrs),E=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(M))||void 0;b=b.append(J.from(s.createAndFill(null,E)||void 0));const N=a.before(a.depth-(F-1));A.replace(N,a.after(-I),new AA(b,4-F,0));let T=-1;A.doc.nodesBetween(N,A.doc.content.size,(H,Y)=>{if(T>-1)return!1;H.isTextblock&&H.content.size===0&&(T=Y+1)}),T>-1&&A.setSelection(wA.near(A.doc.resolve(T))),A.scrollIntoView()}return!0}const g=c.pos===a.end()?f.contentMatchAt(0).defaultType:null,m=fa(h,f.type.name,f.attrs),w=fa(h,a.node().type.name,a.node().attrs);A.delete(a.pos,c.pos);const U=g?[{type:s,attrs:m},{type:g,attrs:w}]:[{type:s,attrs:m}];if(!bi(A.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:F}=e,{splittableMarks:I}=r.extensionManager,M=F||b.$to.parentOffset&&b.$from.marks();if(A.split(a.pos,2,U).scrollIntoView(),!M||!n)return!0;const E=M.filter(N=>I.includes(N.type.name));A.ensureMarks(E)}return!0},ou=(t,A)=>{const e=iu(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)&&ir(t.doc,e.pos)&&t.join(e.pos),!0},au=(t,A)=>{const e=iu(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)&&ir(t.doc,n)&&t.join(n),!0};var Ev=Object.freeze({__proto__:null,blur:gb,clearContent:Bb,clearNodes:mb,command:wb,createParagraphNear:Cb,cut:yb,deleteCurrentNode:Eb,deleteNode:Qb,deleteRange:Fb,deleteSelection:Ub,enter:bb,exitCode:vb,extendMarkRange:Sb,first:Tb,focus:_b,forEach:xb,insertContent:Ob,insertContentAt:Mb,joinUp:Nb,joinDown:Db,joinBackward:kb,joinForward:Rb,joinItemBackward:Kb,joinItemForward:Pb,keyboardShortcut:Gb,lift:Wb,liftEmptyBlock:$b,liftListItem:Jb,newlineInCode:Xb,resetAttributes:Yb,scrollIntoView:zb,selectAll:qb,selectNodeBackward:Zb,selectNodeForward:jb,selectParentNode:Av,selectTextblockEnd:ev,selectTextblockStart:tv,setContent:nv,setMark:hv,setMeta:pv,setNode:gv,setNodeSelection:Bv,setTextSelection:mv,sinkListItem:wv,splitBlock:Cv,splitListItem:yv,toggleList:(t,A,e,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:h,splittableMarks:g}=r.extensionManager,m=Se(t,s.schema),w=Se(A,s.schema),{selection:U,storedMarks:b}=s,{$from:F,$to:I}=U,M=F.blockRange(I),E=b||U.$to.parentOffset&&U.$from.marks();if(!M)return!1;const N=iu(T=>Ig(T.type.name,h))(U);if(M.depth>=1&&N&&M.depth-N.depth<=1){if(N.node.type===m)return u.liftListItem(w);if(Ig(N.node.type.name,h)&&m.validContent(N.node.content)&&a)return c().command(()=>(i.setNodeMarkup(N.pos,m),!0)).command(()=>ou(i,m)).command(()=>au(i,m)).run()}return!e||!E||!a?c().command(()=>f().wrapInList(m,n)?!0:u.clearNodes()).wrapInList(m,n).command(()=>ou(i,m)).command(()=>au(i,m)).run():c().command(()=>{const T=f().wrapInList(m,n),H=E.filter(Y=>g.includes(Y.type.name));return i.ensureMarks(H),T?!0:u.clearNodes()}).wrapInList(m,n).command(()=>ou(i,m)).command(()=>au(i,m)).run()},toggleMark:(t,A={},e={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=e,s=pr(t,n.schema);return su(n,s,A)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,A)},toggleNode:(t,A,e={})=>({state:n,commands:r})=>{const i=Se(t,n.schema),s=Se(A,n.schema);return Ns(n,i,e)?r.setNode(s):r.setNode(i,e)},toggleWrap:(t,A={})=>({state:e,commands:n})=>{const r=Se(t,e.schema);return Ns(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=pr(t,n.schema),{$from:u,empty:f,ranges:h}=a;if(!r)return!0;if(f&&s){let{from:g,to:m}=a;const w=(i=u.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,U=eu(u,c,w);U&&(g=U.from,m=U.to),e.removeMark(g,m,c)}else h.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=ca(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Se(t,n.schema)),a==="mark"&&(s=pr(t,n.schema)),r&&e.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(h,g)=>{i&&i===h.type&&e.setNodeMarkup(g,void 0,{...h.attrs,...A}),s&&h.marks.length&&h.marks.forEach(m=>{if(s===m.type){const w=Math.max(g,u),U=Math.min(g+h.nodeSize,f);e.addMark(w,U,s.create({...m.attrs,...A}))}})})}),!0):!1},wrapIn:(t,A={})=>({state:e,dispatch:n})=>{const r=Se(t,e.schema);return XU(r,A)(e,n)},wrapInList:(t,A={})=>({state:e,dispatch:n})=>{const r=Se(t,e.schema);return YU(r,A)(e,n)}});const Qv=Xe.create({name:"commands",addCommands(){return{...Ev}}}),Fv=Xe.create({name:"editable",addProseMirrorPlugins(){return[new gt({key:new mn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Uv=Xe.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new gt({key:new mn("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}}}})]}}),bv=Xe.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:h}=c,{pos:g,parent:m}=h,w=h.parent.isTextblock?a.doc.resolve(g-1):h,U=w.parent.type.spec.isolating,b=h.pos-h.parentOffset,F=U&&w.parent.childCount===1?b===h.pos:EA.atStart(u).from===g;return!f||!F||!m.type.isTextblock||m.textContent.length?!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 nu()||ru()?i:r},addProseMirrorPlugins(){return[new gt({key:new mn("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=EA.atStart(A.doc).from,c=EA.atEnd(A.doc).to;if(r||!(i===a&&s===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const h=e.tr,g=na({state:e,transaction:h}),{commands:m}=new ra({editor:this.editor,state:g});if(m.clearNodes(),!!h.steps.length)return h}})]}}),vv=Xe.create({name:"tabindex",addProseMirrorPlugins(){return[new gt({key:new mn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Iv=Object.freeze({__proto__:null,ClipboardTextSerializer:pb,Commands:Qv,Editable:Fv,FocusEvents:Uv,Keymap:bv,Tabindex:vv});const Sv=`.ProseMirror {
|
|
13
|
+
`,textSerializers:s={}}=e||{};let a="",c=!0;return t.nodesBetween(n,r,(u,f,h,g)=>{var m;const w=s==null?void 0:s[u.type.name];w?(u.isBlock&&!c&&(a+=i,c=!0),h&&(a+=w({node:u,pos:f,parent:h,index:g,range:A}))):u.isText?(a+=(m=u==null?void 0:u.text)===null||m===void 0?void 0:m.slice(Math.max(n,f)-f,r-f),c=!1):u.isBlock&&!c&&(a+=i,c=!0)}),a}function Eg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,A])=>A.spec.toText).map(([A,e])=>[A,e.spec.toText]))}const pb=Xe.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new gt({key:new mn("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=Eg(e);return yg(n,{from:s,to:a},{textSerializers:c})}}})]}}),gb=()=>({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),Bb=(t=!1)=>({commands:A})=>A.setContent("",t),mb=()=>({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,h=u.resolve(f.map(c)),g=u.resolve(f.map(c+a.nodeSize)),m=h.blockRange(g);if(!m)return;const w=Ui(m);if(a.type.isTextblock){const{defaultType:U}=h.parent.contentMatchAt(h.index());A.setNodeMarkup(m.start,U)}(w||w===0)&&A.lift(m,w)})}),!0},wb=t=>A=>t(A),Cb=()=>({state:t,dispatch:A})=>PU(t,A),yb=(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},Eb=()=>({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},Qb=t=>({tr:A,state:e,dispatch:n})=>{const r=Se(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},Fb=t=>({tr:A,dispatch:e})=>{const{from:n,to:r}=t;return e&&A.delete(n,r),!0},Ub=()=>({state:t,dispatch:A})=>TU(t,A),bb=()=>({commands:t})=>t.keyboardShortcut("Enter"),vb=()=>({state:t,dispatch:A})=>KU(t,A);function aa(t,A,e={strict:!0}){const n=Object.keys(A);return n.length?n.every(r=>e.strict?A[r]===t[r]:qc(A[r])?A[r].test(t[r]):A[r]===t[r]):!0}function Au(t,A,e={}){return t.find(n=>n.type===A&&aa(n.attrs,e))}function Ib(t,A,e={}){return!!Au(t,A,e)}function eu(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=Au([...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(Au([...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&&Ib([...t.parent.child(a).marks],A,e);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function pr(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 Sb=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const i=pr(t,n.schema),{doc:s,selection:a}=e,{$from:c,from:u,to:f}=a;if(r){const h=eu(c,i,A);if(h&&h.from<=u&&h.to>=f){const g=CA.create(s,h.from,h.to);e.setSelection(g)}}return!0},Tb=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 tu(t){return t instanceof CA}function Nn(t=0,A=0,e=0){return Math.min(Math.max(t,A),e)}function Qg(t,A=null){if(!A)return null;const e=EA.atStart(t),n=EA.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,Nn(0,r,i),Nn(t.content.size,r,i)):CA.create(t,Nn(A,r,i),Nn(A,r,i))}function nu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const _b=(t=null,A={})=>({editor:e,view:n,tr:r,dispatch:i})=>{A={scrollIntoView:!0,...A};const s=()=>{nu()&&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&&!tu(e.state.selection))return s(),!0;const a=Qg(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},xb=(t,A)=>e=>t.every((n,r)=>A(n,{...e,index:r})),Ob=(t,A)=>({tr:e,commands:n})=>n.insertContentAt({from:e.selection.from,to:e.selection.to},t,A);function Fg(t){const A=`<body>${t}</body>`;return new window.DOMParser().parseFromString(A,"text/html").body}function la(t,A,e){if(e={slice:!0,parseOptions:{},...e},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?J.fromArray(t.map(n=>A.nodeFromJSON(n))):A.nodeFromJSON(t)}catch(n){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",n),la("",A,e)}if(typeof t=="string"){const n=Ei.fromSchema(A);return e.slice?n.parseSlice(Fg(t),e.parseOptions).content:n.parse(Fg(t),e.parseOptions)}return la("",A,e)}function Lb(t,A,e){const n=t.steps.length-1;if(n<A)return;const r=t.steps[n];if(!(r instanceof He||r instanceof Ie))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,f)=>{s===0&&(s=f)}),t.setSelection(EA.near(t.doc.resolve(s),e))}const Hb=t=>t.toString().startsWith("<"),Mb=(t,A,e)=>({tr:n,dispatch:r,editor:i})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=la(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((Hb(s)?s:[s]).forEach(g=>{g.check(),u=u?g.isText&&g.marks.length===0:!1,f=f?g.isBlock:!1}),a===c&&f){const{parent:g}=n.doc.resolve(a);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(a-=1,c+=1)}u?Array.isArray(A)?n.insertText(A.map(g=>g.text||"").join(""),a,c):typeof A=="object"&&A&&A.text?n.insertText(A.text,a,c):n.insertText(A,a,c):n.replaceWith(a,c,s),e.updateSelection&&Lb(n,n.steps.length-1,-1)}return!0},Nb=()=>({state:t,dispatch:A})=>NU(t,A),Db=()=>({state:t,dispatch:A})=>DU(t,A),kb=()=>({state:t,dispatch:A})=>xU(t,A),Rb=()=>({state:t,dispatch:A})=>HU(t,A),Kb=()=>({tr:t,state:A,dispatch:e})=>{try{const n=$o(A.doc,A.selection.$from.pos,-1);return n==null?!1:(t.join(n,2),e&&e(t),!0)}catch{return!1}},Pb=()=>({state:t,dispatch:A,tr:e})=>{try{const n=$o(t.doc,t.selection.$from.pos,1);return n==null?!1:(e.join(n,2),A&&A(e),!0)}catch{return!1}};function ru(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Vb(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))nu()||ru()?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 Gb=t=>({editor:A,view:e,tr:n,dispatch:r})=>{const i=Vb(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 Ns(t,A,e={}){const{from:n,to:r,empty:i}=t.selection,s=A?Se(A,t.schema):null,a=[];t.doc.nodesBetween(n,r,(h,g)=>{if(h.isText)return;const m=Math.max(n,g),w=Math.min(r,g+h.nodeSize);a.push({node:h,from:m,to:w})});const c=r-n,u=a.filter(h=>s?s.name===h.node.type.name:!0).filter(h=>aa(h.node.attrs,e,{strict:!1}));return i?!!u.length:u.reduce((h,g)=>h+g.to-g.from,0)>=c}const Wb=(t,A={})=>({state:e,dispatch:n})=>{const r=Se(t,e.schema);return Ns(e,r,A)?kU(e,n):!1},$b=()=>({state:t,dispatch:A})=>VU(t,A),Jb=t=>({state:A,dispatch:e})=>{const n=Se(t,A.schema);return qU(n)(A,e)},Xb=()=>({state:t,dispatch:A})=>RU(t,A);function ca(t,A){return A.nodes[t]?"node":A.marks[t]?"mark":null}function Ug(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 Yb=(t,A)=>({tr:e,state:n,dispatch:r})=>{let i=null,s=null;const a=ca(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Se(t,n.schema)),a==="mark"&&(s=pr(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,Ug(u.attrs,A)),s&&u.marks.length&&u.marks.forEach(h=>{s===h.type&&e.addMark(f,f+u.nodeSize,s.create(Ug(h.attrs,A)))})})}),!0):!1},zb=()=>({tr:t,dispatch:A})=>(A&&t.scrollIntoView(),!0),qb=()=>({tr:t,commands:A})=>A.setTextSelection({from:0,to:t.doc.content.size}),Zb=()=>({state:t,dispatch:A})=>OU(t,A),jb=()=>({state:t,dispatch:A})=>MU(t,A),Av=()=>({state:t,dispatch:A})=>GU(t,A),ev=()=>({state:t,dispatch:A})=>JU(t,A),tv=()=>({state:t,dispatch:A})=>$U(t,A);function bg(t,A,e={}){return la(t,A,{slice:!1,parseOptions:e})}const nv=(t,A=!1,e={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=bg(t,r.schema,e);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!A),!0};function ua(t,A){const e=pr(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 rv(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 iv(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 iu(t){return A=>iv(A.$from,t)}function sv(t,A){const e=gn.fromSchema(A).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function ov(t,A){const e={from:0,to:t.content.size};return yg(t,e,A)}function av(t,A){const e=Se(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 lv(t,A){const e=ca(typeof A=="string"?A:A.name,t.schema);return e==="node"?av(t,A):e==="mark"?ua(t,A):{}}function vg(t,A,e){const n=[];return t===A?e.resolve(t).marks().forEach(r=>{const i=e.resolve(t-1),s=eu(i,r.type);s&&n.push({mark:r,...s})}):e.nodesBetween(t,A,(r,i)=>{n.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),n}function fa(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 su(t,A,e={}){const{empty:n,ranges:r}=t.selection,i=A?pr(A,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(h=>i?i.name===h.type.name:!0).find(h=>aa(h.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:h,$to:g})=>{const m=h.pos,w=g.pos;t.doc.nodesBetween(m,w,(U,b)=>{if(!U.isText&&!U.marks.length)return;const Q=Math.max(m,b),I=Math.min(w,b+U.nodeSize),M=I-Q;s+=M,a.push(...U.marks.map(E=>({mark:E,from:Q,to:I})))})}),s===0)return!1;const c=a.filter(h=>i?i.name===h.mark.type.name:!0).filter(h=>aa(h.mark.attrs,e,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),u=a.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):!0).reduce((h,g)=>h+g.to-g.from,0);return(c>0?c+u:c)>=s}function cv(t,A,e={}){if(!A)return Ns(t,null,e)||su(t,null,e);const n=ca(A,t.schema);return n==="node"?Ns(t,A,e):n==="mark"?su(t,A,e):!1}function Ig(t,A){const{nodeExtensions:e}=ia(A),n=e.find(s=>s.name===t);if(!n)return!1;const r={name:n.name,options:n.options,storage:n.storage},i=QA(iA(n,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function uv(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 fv(t){return t instanceof uA}function Sg(t,A,e){const r=t.state.doc.content.size,i=Nn(A,0,r),s=Nn(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),h=Math.min(a.left,c.left),g=Math.max(a.right,c.right),m=g-h,w=f-u,Q={top:u,bottom:f,left:h,right:g,width:m,height:w,x:h,y:u};return{...Q,toJSON:()=>Q}}function dv(t,A,e){var n;const{selection:r}=A;let i=null;if(tu(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,h,g)=>{if(u)return!1;if(f.isInline){const m=!g||g.type.allowsMarkType(e),w=!!e.isInSet(f.marks)||!f.marks.some(U=>U.type.excludes(e));u=m&&w}return!u}),u})}const hv=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=e,{empty:s,ranges:a}=i,c=pr(t,n.schema);if(r)if(s){const u=ua(n,c);e.addStoredMark(c.create({...u,...A}))}else a.forEach(u=>{const f=u.$from.pos,h=u.$to.pos;n.doc.nodesBetween(f,h,(g,m)=>{const w=Math.max(m,f),U=Math.min(m+g.nodeSize,h);g.marks.find(Q=>Q.type===c)?g.marks.forEach(Q=>{c===Q.type&&e.addMark(w,U,c.create({...Q.attrs,...A}))}):e.addMark(w,U,c.create(A))})});return dv(n,e,c)},pv=(t,A)=>({tr:e})=>(e.setMeta(t,A),!0),gv=(t,A={})=>({state:e,dispatch:n,chain:r})=>{const i=Se(t,e.schema);return i.isTextblock?r().command(({commands:s})=>pg(i,A)(e)?!0:s.clearNodes()).command(({state:s})=>pg(i,A)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Bv=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,r=Nn(t,0,n.content.size),i=uA.create(n,r);A.setSelection(i)}return!0},mv=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=Nn(r,s,a),u=Nn(i,s,a),f=CA.create(n,c,u);A.setSelection(f)}return!0},wv=t=>({state:A,dispatch:e})=>{const n=Se(t,A.schema);return Ab(n)(A,e)};function Tg(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 Cv=({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=fa(u,a.node().type.name,a.node().attrs);if(i instanceof uA&&i.node.isBlock)return!a.parentOffset||!bi(s,a.pos)?!1:(n&&(t&&Tg(e,r.extensionManager.splittableMarks),A.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const h=c.parentOffset===c.parent.content.size;i instanceof CA&&A.deleteSelection();const g=a.depth===0?void 0:rv(a.node(-1).contentMatchAt(a.indexAfter(-1)));let m=h&&g?[{type:g,attrs:f}]:void 0,w=bi(A.doc,A.mapping.map(a.pos),1,m);if(!m&&!w&&bi(A.doc,A.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(w=!0,m=g?[{type:g,attrs:f}]:void 0),w&&(A.split(A.mapping.map(a.pos),1,m),g&&!h&&!a.parentOffset&&a.parent.type!==g)){const U=A.mapping.map(a.before()),b=A.doc.resolve(U);a.node(-1).canReplaceWith(b.index(),b.index()+1,g)&&A.setNodeMarkup(A.mapping.map(a.before()),g)}t&&Tg(e,r.extensionManager.splittableMarks),A.scrollIntoView()}return!0},yv=t=>({tr:A,state:e,dispatch:n,editor:r})=>{var i;const s=Se(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 h=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=J.empty;const Q=a.index(-1)?1:a.index(-2)?2:3;for(let H=a.depth-Q;H>=a.depth-3;H-=1)b=J.from(a.node(H).copy(b));const I=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,M=fa(h,a.node().type.name,a.node().attrs),E=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(M))||void 0;b=b.append(J.from(s.createAndFill(null,E)||void 0));const N=a.before(a.depth-(Q-1));A.replace(N,a.after(-I),new j(b,4-Q,0));let T=-1;A.doc.nodesBetween(N,A.doc.content.size,(H,Y)=>{if(T>-1)return!1;H.isTextblock&&H.content.size===0&&(T=Y+1)}),T>-1&&A.setSelection(CA.near(A.doc.resolve(T))),A.scrollIntoView()}return!0}const g=c.pos===a.end()?f.contentMatchAt(0).defaultType:null,m=fa(h,f.type.name,f.attrs),w=fa(h,a.node().type.name,a.node().attrs);A.delete(a.pos,c.pos);const U=g?[{type:s,attrs:m},{type:g,attrs:w}]:[{type:s,attrs:m}];if(!bi(A.doc,a.pos,2))return!1;if(n){const{selection:b,storedMarks:Q}=e,{splittableMarks:I}=r.extensionManager,M=Q||b.$to.parentOffset&&b.$from.marks();if(A.split(a.pos,2,U).scrollIntoView(),!M||!n)return!0;const E=M.filter(N=>I.includes(N.type.name));A.ensureMarks(E)}return!0},ou=(t,A)=>{const e=iu(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)&&ir(t.doc,e.pos)&&t.join(e.pos),!0},au=(t,A)=>{const e=iu(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)&&ir(t.doc,n)&&t.join(n),!0};var Ev=Object.freeze({__proto__:null,blur:gb,clearContent:Bb,clearNodes:mb,command:wb,createParagraphNear:Cb,cut:yb,deleteCurrentNode:Eb,deleteNode:Qb,deleteRange:Fb,deleteSelection:Ub,enter:bb,exitCode:vb,extendMarkRange:Sb,first:Tb,focus:_b,forEach:xb,insertContent:Ob,insertContentAt:Mb,joinUp:Nb,joinDown:Db,joinBackward:kb,joinForward:Rb,joinItemBackward:Kb,joinItemForward:Pb,keyboardShortcut:Gb,lift:Wb,liftEmptyBlock:$b,liftListItem:Jb,newlineInCode:Xb,resetAttributes:Yb,scrollIntoView:zb,selectAll:qb,selectNodeBackward:Zb,selectNodeForward:jb,selectParentNode:Av,selectTextblockEnd:ev,selectTextblockStart:tv,setContent:nv,setMark:hv,setMeta:pv,setNode:gv,setNodeSelection:Bv,setTextSelection:mv,sinkListItem:wv,splitBlock:Cv,splitListItem:yv,toggleList:(t,A,e,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:f})=>{const{extensions:h,splittableMarks:g}=r.extensionManager,m=Se(t,s.schema),w=Se(A,s.schema),{selection:U,storedMarks:b}=s,{$from:Q,$to:I}=U,M=Q.blockRange(I),E=b||U.$to.parentOffset&&U.$from.marks();if(!M)return!1;const N=iu(T=>Ig(T.type.name,h))(U);if(M.depth>=1&&N&&M.depth-N.depth<=1){if(N.node.type===m)return u.liftListItem(w);if(Ig(N.node.type.name,h)&&m.validContent(N.node.content)&&a)return c().command(()=>(i.setNodeMarkup(N.pos,m),!0)).command(()=>ou(i,m)).command(()=>au(i,m)).run()}return!e||!E||!a?c().command(()=>f().wrapInList(m,n)?!0:u.clearNodes()).wrapInList(m,n).command(()=>ou(i,m)).command(()=>au(i,m)).run():c().command(()=>{const T=f().wrapInList(m,n),H=E.filter(Y=>g.includes(Y.type.name));return i.ensureMarks(H),T?!0:u.clearNodes()}).wrapInList(m,n).command(()=>ou(i,m)).command(()=>au(i,m)).run()},toggleMark:(t,A={},e={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=e,s=pr(t,n.schema);return su(n,s,A)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,A)},toggleNode:(t,A,e={})=>({state:n,commands:r})=>{const i=Se(t,n.schema),s=Se(A,n.schema);return Ns(n,i,e)?r.setNode(s):r.setNode(i,e)},toggleWrap:(t,A={})=>({state:e,commands:n})=>{const r=Se(t,e.schema);return Ns(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=pr(t,n.schema),{$from:u,empty:f,ranges:h}=a;if(!r)return!0;if(f&&s){let{from:g,to:m}=a;const w=(i=u.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,U=eu(u,c,w);U&&(g=U.from,m=U.to),e.removeMark(g,m,c)}else h.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=ca(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Se(t,n.schema)),a==="mark"&&(s=pr(t,n.schema)),r&&e.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;n.doc.nodesBetween(u,f,(h,g)=>{i&&i===h.type&&e.setNodeMarkup(g,void 0,{...h.attrs,...A}),s&&h.marks.length&&h.marks.forEach(m=>{if(s===m.type){const w=Math.max(g,u),U=Math.min(g+h.nodeSize,f);e.addMark(w,U,s.create({...m.attrs,...A}))}})})}),!0):!1},wrapIn:(t,A={})=>({state:e,dispatch:n})=>{const r=Se(t,e.schema);return XU(r,A)(e,n)},wrapInList:(t,A={})=>({state:e,dispatch:n})=>{const r=Se(t,e.schema);return YU(r,A)(e,n)}});const Qv=Xe.create({name:"commands",addCommands(){return{...Ev}}}),Fv=Xe.create({name:"editable",addProseMirrorPlugins(){return[new gt({key:new mn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Uv=Xe.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new gt({key:new mn("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}}}})]}}),bv=Xe.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:h}=c,{pos:g,parent:m}=h,w=h.parent.isTextblock?a.doc.resolve(g-1):h,U=w.parent.type.spec.isolating,b=h.pos-h.parentOffset,Q=U&&w.parent.childCount===1?b===h.pos:EA.atStart(u).from===g;return!f||!Q||!m.type.isTextblock||m.textContent.length?!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 nu()||ru()?i:r},addProseMirrorPlugins(){return[new gt({key:new mn("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=EA.atStart(A.doc).from,c=EA.atEnd(A.doc).to;if(r||!(i===a&&s===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const h=e.tr,g=na({state:e,transaction:h}),{commands:m}=new ra({editor:this.editor,state:g});if(m.clearNodes(),!!h.steps.length)return h}})]}}),vv=Xe.create({name:"tabindex",addProseMirrorPlugins(){return[new gt({key:new mn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Iv=Object.freeze({__proto__:null,ClipboardTextSerializer:pb,Commands:Qv,Editable:Fv,FocusEvents:Uv,Keymap:bv,Tabindex:vv});const Sv=`.ProseMirror {
|
|
14
14
|
position: relative;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -86,11 +86,11 @@ img.ProseMirror-separator {
|
|
|
86
86
|
opacity: 0
|
|
87
87
|
}`;function Tv(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 _v=class extends eb{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:{},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=Tv(Sv,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(){const e=[...this.options.enableCoreExtensions?Object.values(Iv):[],...this.options.extensions].filter(n=>["extension","node","mark"].includes(n==null?void 0:n.type));this.extensionManager=new Ni(e,this)}createCommandManager(){this.commandManager=new ra({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const A=bg(this.options.content,this.schema,this.options.parseOptions),e=Qg(A,this.options.autofocus);this.view=new CU(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Ti.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 lv(this.state,A)}isActive(A,e){const n=typeof A=="string"?A:null,r=typeof A=="string"?e:A;return cv(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return sv(this.state.doc.content,this.schema)}getText(A){const{blockSeparator:e=`
|
|
88
88
|
|
|
89
|
-
`,textSerializers:n={}}=A||{};return ov(this.state.doc,{blockSeparator:e,textSerializers:{...Eg(this.schema),...n}})}get isEmpty(){return uv(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)}};function Ai(t){return new sa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=QA(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(vg(e.from,e.to,A.doc).filter(m=>m.mark.type.excluded.find(U=>U===t.type&&U!==m.mark.type)).filter(m=>m.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 xv(t){return new sa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=QA(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 h=n[0][n[0].length-1];i.insertText(h,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 lu(t){return new sa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=A.doc.resolve(e.from),i=QA(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 Ds(t){return new sa({find:t.find,handler:({state:A,range:e,match:n,chain:r})=>{const i=QA(t.getAttributes,void 0,n)||{},s=A.tr.delete(e.from,e.to),c=s.doc.resolve(e.from).blockRange(),u=c&&gc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:h,storedMarks:g}=A,{splittableMarks:m}=t.editor.extensionManager,w=g||h.$to.parentOffset&&h.$from.marks();if(w){const U=w.filter(b=>m.includes(b.type.name));s.ensureMarks(U)}}if(t.keepAttributes){const h=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,i).run()}const f=s.doc.resolve(e.from-1).nodeBefore;f&&f.type===t.type&&ir(s.doc,e.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(e.from-1)}})}class on{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&&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=QA(iA(this,"addOptions",{name:this.name}))),this.storage=QA(iA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new on(A)}configure(A={}){const e=this.extend();return e.options=oa(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new on(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=QA(iA(e,"addOptions",{name:e.name})),e.storage=QA(iA(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 bt=class ih{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&&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=QA(iA(this,"addOptions",{name:this.name}))),this.storage=QA(iA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new ih(A)}configure(A={}){const e=this.extend();return e.options=oa(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new ih(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=QA(iA(e,"addOptions",{name:e.name})),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}};function ei(t){return new lb({find:t.find,handler:({state:A,range:e,match:n,pasteEvent:r})=>{const i=QA(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/),h=e.from+c.indexOf(a),g=h+a.length;if(vg(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>h).length)return null;g<e.to&&s.delete(g,e.to),h>e.from&&s.delete(e.from+f,h),u=e.from+f+a.length,s.addMark(e.from+f,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const Ov=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,Lv=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,Hv=on.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",ge(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[Ai({find:Ov,type:this.type})]},addPasteRules(){return[ei({find:Lv,type:this.type})]}}),Mv=Xe.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.every(e=>A.updateAttributes(e,{textAlign:t})):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.every(A=>t.resetAttributes(A,"textAlign"))}},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")}}}),Nv=/^\s*>\s$/,Dv=bt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",ge(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[Ds({find:Nv,type:this.type})]}}),kv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Rv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Kv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Pv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Vv=on.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",ge(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ai({find:kv,type:this.type}),Ai({find:Kv,type:this.type})]},addPasteRules(){return[ei({find:Rv,type:this.type}),ei({find:Pv,type:this.type})]}}),Gv=bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ge(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)}}}),_g=on.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ge(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ua(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),xg=/^\s*([-+*])\s$/,Wv=bt.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",ge(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(Gv.name,this.editor.getAttributes(_g.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ds({find:xg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ds({find:xg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(_g.name),editor:this.editor})),[t]}}),$v=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,Jv=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,Xv=on.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",ge(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ai({find:$v,type:this.type})]},addPasteRules(){return[ei({find:Jv,type:this.type})]}}),Yv=/^```([a-z]+)?[\s\n]$/,zv=/^~~~([a-z]+)?[\s\n]$/,qv=bt.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",ge(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(`
|
|
89
|
+
`,textSerializers:n={}}=A||{};return ov(this.state.doc,{blockSeparator:e,textSerializers:{...Eg(this.schema),...n}})}get isEmpty(){return uv(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)}};function Ai(t){return new sa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=QA(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(vg(e.from,e.to,A.doc).filter(m=>m.mark.type.excluded.find(U=>U===t.type&&U!==m.mark.type)).filter(m=>m.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 xv(t){return new sa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=QA(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 h=n[0][n[0].length-1];i.insertText(h,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 lu(t){return new sa({find:t.find,handler:({state:A,range:e,match:n})=>{const r=A.doc.resolve(e.from),i=QA(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 Ds(t){return new sa({find:t.find,handler:({state:A,range:e,match:n,chain:r})=>{const i=QA(t.getAttributes,void 0,n)||{},s=A.tr.delete(e.from,e.to),c=s.doc.resolve(e.from).blockRange(),u=c&&gc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:h,storedMarks:g}=A,{splittableMarks:m}=t.editor.extensionManager,w=g||h.$to.parentOffset&&h.$from.marks();if(w){const U=w.filter(b=>m.includes(b.type.name));s.ensureMarks(U)}}if(t.keepAttributes){const h=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,i).run()}const f=s.doc.resolve(e.from-1).nodeBefore;f&&f.type===t.type&&ir(s.doc,e.from-1)&&(!t.joinPredicate||t.joinPredicate(n,f))&&s.join(e.from-1)}})}class on{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&&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=QA(iA(this,"addOptions",{name:this.name}))),this.storage=QA(iA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new on(A)}configure(A={}){const e=this.extend();return e.options=oa(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new on(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=QA(iA(e,"addOptions",{name:e.name})),e.storage=QA(iA(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 bt=class ih{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&&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=QA(iA(this,"addOptions",{name:this.name}))),this.storage=QA(iA(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(A={}){return new ih(A)}configure(A={}){const e=this.extend();return e.options=oa(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new ih(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=QA(iA(e,"addOptions",{name:e.name})),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}};function ei(t){return new lb({find:t.find,handler:({state:A,range:e,match:n,pasteEvent:r})=>{const i=QA(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/),h=e.from+c.indexOf(a),g=h+a.length;if(vg(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>h).length)return null;g<e.to&&s.delete(g,e.to),h>e.from&&s.delete(e.from+f,h),u=e.from+f+a.length,s.addMark(e.from+f,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const Ov=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,Lv=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,Hv=on.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",Ce(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[Ai({find:Ov,type:this.type})]},addPasteRules(){return[ei({find:Lv,type:this.type})]}}),Mv=Xe.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.every(e=>A.updateAttributes(e,{textAlign:t})):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.every(A=>t.resetAttributes(A,"textAlign"))}},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")}}}),Nv=/^\s*>\s$/,Dv=bt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Ce(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[Ds({find:Nv,type:this.type})]}}),kv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Rv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Kv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Pv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Vv=on.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",Ce(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ai({find:kv,type:this.type}),Ai({find:Kv,type:this.type})]},addPasteRules(){return[ei({find:Rv,type:this.type}),ei({find:Pv,type:this.type})]}}),Gv=bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ce(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)}}}),_g=on.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ce(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ua(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),xg=/^\s*([-+*])\s$/,Wv=bt.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",Ce(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(Gv.name,this.editor.getAttributes(_g.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ds({find:xg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ds({find:xg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(_g.name),editor:this.editor})),[t]}}),$v=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,Jv=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,Xv=on.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Ce(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ai({find:$v,type:this.type})]},addPasteRules(){return[ei({find:Jv,type:this.type})]}}),Yv=/^```([a-z]+)?[\s\n]$/,zv=/^~~~([a-z]+)?[\s\n]$/,qv=bt.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",Ce(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
90
|
|
|
91
|
-
`);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[lu({find:Yv,type:this.type,getAttributes:t=>({language:t[1]})}),lu({find:zv,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new gt({key:new mn("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 s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(
|
|
92
|
-
`)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Zv=bt.create({name:"doc",topNode:!0,content:"block+"});function jv(t={}){return new gt({view(A){return new AI(A,t)}})}class AI{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(),h=a?f.bottom:f.top;a&&c&&(h=(h+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:f.left,right:f.right,top:h-this.width/2,bottom:h+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=Dh(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 eI=Xe.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[jv(this.options)]}});class
|
|
93
|
-
`},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 h=c.filter(g=>a.includes(g.type.name));u.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),uI=bt.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]}`,ge(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=>lu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ha=200,Te=function(){};Te.prototype.append=function(A){return A.length?(A=Te.from(A),!this.length&&A||A.length<ha&&this.leafAppend(A)||this.length<ha&&A.leafPrepend(this)||this.appendInner(A)):this},Te.prototype.prepend=function(A){return A.length?Te.from(A).append(this):this},Te.prototype.appendInner=function(A){return new fI(this,A)},Te.prototype.slice=function(A,e){return A===void 0&&(A=0),e===void 0&&(e=this.length),A>=e?Te.empty:this.sliceInner(Math.max(0,A),Math.min(this.length,e))},Te.prototype.get=function(A){if(!(A<0||A>=this.length))return this.getInner(A)},Te.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)},Te.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},Te.from=function(A){return A instanceof Te?A:A&&A.length?new Og(A):Te.empty};var Og=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<=ha)return new A(this.values.concat(r.flatten()))},A.prototype.leafPrepend=function(r){if(this.length+r.length<=ha)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}(Te);Te.empty=new Og([]);var fI=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}(Te);const dI=500;class an{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((h,g)=>{if(!h.step){r||(r=this.remapping(n,g+1),i=r.maps.length),i--,f.push(h);return}if(r){f.push(new En(h.map));let m=h.step.map(r.slice(i)),w;m&&s.maybeStep(m).doc&&(w=s.mapping.maps[s.mapping.maps.length-1],u.push(new En(w,void 0,void 0,u.length+f.length))),i--,w&&r.appendMap(w,i)}else s.maybeStep(h.step);if(h.selection)return a=r?h.selection.map(r.slice(i)):h.selection,c=new an(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 h=A.steps[f].invert(A.docs[f]),g=new En(A.mapping.maps[f],h,e),m;(m=c&&c.merge(g))&&(g=m,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>pI&&(a=hI(a,u),s-=u),new an(a.append(i),s)}remapping(A,e){let n=new Qi;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 an(this.items.append(A.map(e=>new En(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 m=i.getMirror(--c);if(m==null)return;s=Math.min(s,m);let w=i.maps[m];if(g.step){let U=A.steps[m].invert(A.docs[m]),b=g.selection&&g.selection.map(i.slice(c+1,m));b&&a++,n.push(new En(w,U,b))}else n.push(new En(w))},r);let u=[];for(let g=e;g<s;g++)u.push(new En(i.maps[g]));let f=this.items.slice(0,r).append(u).append(n),h=new an(f,a);return h.emptyItemCount()>dI&&(h=h.compress(this.items.length-n.length)),h}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 h=new En(u.invert(),c,f),g,m=r.length-1;(g=r.length&&r[m].merge(h))?r[m]=g:r.push(h)}}else s.map&&n--},this.items.length,0),new an(Te.from(r.reverse()),i)}}an.empty=new an(Te.empty,0);function hI(t,A){let e;return t.forEach((n,r)=>{if(n.selection&&A--==0)return e=r,!1}),t.slice(e)}class En{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 En(e.getMap().invert(),e,this.selection)}}}class gr{constructor(A,e,n,r,i){this.done=A,this.undone=e,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const pI=20;function gI(t,A,e,n){let r=e.getMeta(Br),i;if(r)return r.historyState;e.getMeta(mI)&&(t=new gr(t.done,t.undone,null,0,-1));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return t;if(s&&s.getMeta(Br))return s.getMeta(Br).redo?new gr(t.done.addTransform(e,void 0,n,pa(A)),t.undone,Lg(e.mapping.maps[e.steps.length-1]),t.prevTime,t.prevComposition):new gr(t.done,t.undone.addTransform(e,void 0,n,pa(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||!BI(e,t.prevRanges)),u=s?uu(t.prevRanges,e.mapping):Lg(e.mapping.maps[e.steps.length-1]);return new gr(t.done.addTransform(e,c?A.selection.getBookmark():void 0,n,pa(A)),an.empty,u,e.time,a??t.prevComposition)}else return(i=e.getMeta("rebased"))?new gr(t.done.rebased(e,i),t.undone.rebased(e,i),uu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition):new gr(t.done.addMaps(e.mapping.maps),t.undone.addMaps(e.mapping.maps),uu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition)}function BI(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 Lg(t){let A=[];return t.forEach((e,n,r,i)=>A.push(r,i)),A}function uu(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 Hg(t,A,e,n){let r=pa(A),i=Br.get(A).spec.config,s=(n?t.undone:t.done).popEvent(A,r);if(!s)return;let a=s.selection.resolve(s.transform.doc),c=(n?t.done:t.undone).addTransform(s.transform,A.selection.getBookmark(),i,r),u=new gr(n?c:s.remaining,n?s.remaining:c,null,0,-1);e(s.transform.setSelection(a).setMeta(Br,{redo:n,historyState:u}).scrollIntoView())}let fu=!1,Mg=null;function pa(t){let A=t.plugins;if(Mg!=A){fu=!1,Mg=A;for(let e=0;e<A.length;e++)if(A[e].spec.historyPreserveItems){fu=!0;break}}return fu}const Br=new mn("history"),mI=new mn("closeHistory");function wI(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new gt({key:Br,state:{init(){return new gr(an.empty,an.empty,null,0,-1)},apply(A,e,n){return gI(e,n,A,t)}},config:t,props:{handleDOMEvents:{beforeinput(A,e){let n=e.inputType,r=n=="historyUndo"?Ng:n=="historyRedo"?Dg:null;return r?(e.preventDefault(),r(A.state,A.dispatch)):!1}}}})}const Ng=(t,A)=>{let e=Br.getState(t);return!e||e.done.eventCount==0?!1:(A&&Hg(e,t,A,!1),!0)},Dg=(t,A)=>{let e=Br.getState(t);return!e||e.undone.eventCount==0?!1:(A&&Hg(e,t,A,!0),!0)},CI=Xe.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:A})=>Ng(t,A),redo:()=>({state:t,dispatch:A})=>Dg(t,A)}},addProseMirrorPlugins(){return[wI(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),yI=bt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",ge(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(wA.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(cA.create(r.doc,a.pos)):r.setSelection(wA.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(wA.create(r.doc,c+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[xv({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),EI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,QI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,FI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,UI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,bI=on.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",ge(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ai({find:EI,type:this.type}),Ai({find:FI,type:this.type})]},addPasteRules(){return[ei({find:QI,type:this.type}),ei({find:UI,type:this.type})]}}),vI=bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ge(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)}}}),II=bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ge(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=on.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",ge(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ua(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),Rg=/^(\d+)\.\s$/,SI=bt.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",ge(this.options.HTMLAttributes,e),0]:["ol",ge(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(II.name,this.editor.getAttributes(kg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ds({find:Rg,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=Ds({find:Rg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:A=>({start:+A[1],...this.editor.getAttributes(kg.name)}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[1],editor:this.editor})),[t]}}),TI=bt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",ge(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),_I=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,xI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,OI=on.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",ge(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(){const t={};return ru()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[Ai({find:_I,type:this.type})]},addPasteRules(){return[ei({find:xI,type:this.type})]}}),LI=bt.create({name:"text",group:"inline"}),HI=Xe.create({name:"starterKit",addExtensions(){var t,A,e,n,r,i,s,a,c,u,f,h,g,m,w,U,b,F;const I=[];return this.options.blockquote!==!1&&I.push(Dv.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&I.push(Vv.configure((A=this.options)===null||A===void 0?void 0:A.bold)),this.options.bulletList!==!1&&I.push(Wv.configure((e=this.options)===null||e===void 0?void 0:e.bulletList)),this.options.code!==!1&&I.push(Xv.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&I.push(qv.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&I.push(Zv.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&I.push(eI.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&I.push(lI.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&I.push(cI.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&I.push(uI.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&I.push(CI.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&I.push(yI.configure((h=this.options)===null||h===void 0?void 0:h.horizontalRule)),this.options.italic!==!1&&I.push(bI.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&I.push(vI.configure((m=this.options)===null||m===void 0?void 0:m.listItem)),this.options.orderedList!==!1&&I.push(SI.configure((w=this.options)===null||w===void 0?void 0:w.orderedList)),this.options.paragraph!==!1&&I.push(TI.configure((U=this.options)===null||U===void 0?void 0:U.paragraph)),this.options.strike!==!1&&I.push(OI.configure((b=this.options)===null||b===void 0?void 0:b.strike)),this.options.text!==!1&&I.push(LI.configure((F=this.options)===null||F===void 0?void 0:F.text)),I}});var MI="tippy-box",Kg="tippy-content",NI="tippy-backdrop",Pg="tippy-arrow",Vg="tippy-svg-arrow",ti={passive:!0,capture:!0},Gg=function(){return document.body};function DI(t,A){return{}.hasOwnProperty.call(t,A)}function du(t,A,e){if(Array.isArray(t)){var n=t[A];return n??(Array.isArray(e)?e[A]:e)}return t}function hu(t,A){var e={}.toString.call(t);return e.indexOf("[object")===0&&e.indexOf(A+"]")>-1}function Wg(t,A){return typeof t=="function"?t.apply(void 0,A):t}function $g(t,A){if(A===0)return t;var e;return function(n){clearTimeout(e),e=setTimeout(function(){t(n)},A)}}function kI(t,A){var e=Object.assign({},t);return A.forEach(function(n){delete e[n]}),e}function RI(t){return t.split(/\s+/).filter(Boolean)}function Di(t){return[].concat(t)}function Jg(t,A){t.indexOf(A)===-1&&t.push(A)}function KI(t){return t.filter(function(A,e){return t.indexOf(A)===e})}function PI(t){return t.split("-")[0]}function ga(t){return[].slice.call(t)}function Xg(t){return Object.keys(t).reduce(function(A,e){return t[e]!==void 0&&(A[e]=t[e]),A},{})}function ks(){return document.createElement("div")}function Rs(t){return["Element","Fragment"].some(function(A){return hu(t,A)})}function VI(t){return hu(t,"NodeList")}function GI(t){return hu(t,"MouseEvent")}function WI(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function $I(t){return Rs(t)?[t]:VI(t)?ga(t):Array.isArray(t)?t:ga(document.querySelectorAll(t))}function pu(t,A){t.forEach(function(e){e&&(e.style.transitionDuration=A+"ms")})}function Yg(t,A){t.forEach(function(e){e&&e.setAttribute("data-state",A)})}function JI(t){var A,e=Di(t),n=e[0];return n!=null&&(A=n.ownerDocument)!=null&&A.body?n.ownerDocument:document}function XI(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=PI(s.placement),f=s.modifiersData.offset;if(!f)return!0;var h=u==="bottom"?f.top.y:0,g=u==="top"?f.bottom.y:0,m=u==="right"?f.left.x:0,w=u==="left"?f.right.x:0,U=i.top-n+h>c,b=n-i.bottom-g>c,F=i.left-e+m>c,I=e-i.right-w>c;return U||b||F||I})}function gu(t,A,e){var n=A+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,e)})}function zg(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 Qn={isTouch:!1},qg=0;function YI(){Qn.isTouch||(Qn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zg))}function Zg(){var t=performance.now();t-qg<20&&(Qn.isTouch=!1,document.removeEventListener("mousemove",Zg)),qg=t}function zI(){var t=document.activeElement;if(WI(t)){var A=t._tippy;t.blur&&!A.state.isVisible&&t.blur()}}function qI(){document.addEventListener("touchstart",YI,ti),window.addEventListener("blur",zI)}var ZI=typeof window<"u"&&typeof document<"u",jI=ZI?!!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 jg(t){var A=/[ \t]{2,}/g,e=/^[ \t]*/gm;return t.replace(A," ").replace(e,"").trim()}function A1(t){return jg(`
|
|
91
|
+
`);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[lu({find:Yv,type:this.type,getAttributes:t=>({language:t[1]})}),lu({find:zv,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new gt({key:new mn("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 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,`
|
|
92
|
+
`)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Zv=bt.create({name:"doc",topNode:!0,content:"block+"});function jv(t={}){return new gt({view(A){return new AI(A,t)}})}class AI{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(),h=a?f.bottom:f.top;a&&c&&(h=(h+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:f.left,right:f.right,top:h-this.width/2,bottom:h+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=Dh(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 eI=Xe.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[jv(this.options)]}});class fe extends EA{constructor(A){super(A,A)}map(A,e){let n=A.resolve(e.map(this.head));return fe.valid(n)?new fe(n):EA.near(n)}content(){return j.empty}eq(A){return A instanceof fe&&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 fe(A.resolve(e.pos))}getBookmark(){return new cu(this.anchor)}static valid(A){let e=A.parent;if(e.isTextblock||!tI(A)||!nI(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&&fe.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(fe.valid(c))return c}for(;;){let s=e>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!uA.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(fe.valid(a))return a}return null}}}fe.prototype.visible=!1,fe.findFrom=fe.findGapCursorFrom,EA.jsonID("gapcursor",fe);class cu{constructor(A){this.pos=A}map(A){return new cu(A.map(this.pos))}resolve(A){let e=A.resolve(this.pos);return fe.valid(e)?new fe(e):EA.near(e)}}function tI(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 nI(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 rI(){return new gt({props:{decorations:aI,createSelectionBetween(t,A,e){return A.pos==e.pos&&fe.valid(e)?new fe(e):null},handleClick:sI,handleKeyDown:iI,handleDOMEvents:{beforeinput:oI}}})}const iI=lg({ArrowLeft:da("horiz",-1),ArrowRight:da("horiz",1),ArrowUp:da("vert",-1),ArrowDown:da("vert",1)});function da(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=fe.findGapCursorFrom(a,A,c);return u?(r&&r(n.tr.setSelection(new fe(u))),!0):!1}}function sI(t,A,e){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(A);if(!fe.valid(n))return!1;let r=t.posAtCoords({left:e.clientX,top:e.clientY});return r&&r.inside>-1&&uA.isSelectable(t.state.doc.nodeAt(r.inside))?!1:(t.dispatch(t.state.tr.setSelection(new fe(n))),!0)}function oI(t,A){if(A.inputType!="insertCompositionText"||!(t.state.selection instanceof fe))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=J.empty;for(let s=n.length-1;s>=0;s--)r=J.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 aI(t){if(!(t.selection instanceof fe))return null;let A=document.createElement("div");return A.className="ProseMirror-gapcursor",Fe.create(t.doc,[Kt.widget(t.selection.head,A,{key:"gapcursor"})])}const lI=Xe.create({name:"gapCursor",addProseMirrorPlugins(){return[rI()]},extendNodeSchema(t){var A;const e={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(A=QA(iA(t,"allowGapCursor",e)))!==null&&A!==void 0?A:null}}}),cI=bt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ce(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
93
|
+
`},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 h=c.filter(g=>a.includes(g.type.name));u.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),uI=bt.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]}`,Ce(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=>lu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var ha=200,Te=function(){};Te.prototype.append=function(A){return A.length?(A=Te.from(A),!this.length&&A||A.length<ha&&this.leafAppend(A)||this.length<ha&&A.leafPrepend(this)||this.appendInner(A)):this},Te.prototype.prepend=function(A){return A.length?Te.from(A).append(this):this},Te.prototype.appendInner=function(A){return new fI(this,A)},Te.prototype.slice=function(A,e){return A===void 0&&(A=0),e===void 0&&(e=this.length),A>=e?Te.empty:this.sliceInner(Math.max(0,A),Math.min(this.length,e))},Te.prototype.get=function(A){if(!(A<0||A>=this.length))return this.getInner(A)},Te.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)},Te.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},Te.from=function(A){return A instanceof Te?A:A&&A.length?new Og(A):Te.empty};var Og=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<=ha)return new A(this.values.concat(r.flatten()))},A.prototype.leafPrepend=function(r){if(this.length+r.length<=ha)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}(Te);Te.empty=new Og([]);var fI=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}(Te);const dI=500;class an{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((h,g)=>{if(!h.step){r||(r=this.remapping(n,g+1),i=r.maps.length),i--,f.push(h);return}if(r){f.push(new En(h.map));let m=h.step.map(r.slice(i)),w;m&&s.maybeStep(m).doc&&(w=s.mapping.maps[s.mapping.maps.length-1],u.push(new En(w,void 0,void 0,u.length+f.length))),i--,w&&r.appendMap(w,i)}else s.maybeStep(h.step);if(h.selection)return a=r?h.selection.map(r.slice(i)):h.selection,c=new an(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 h=A.steps[f].invert(A.docs[f]),g=new En(A.mapping.maps[f],h,e),m;(m=c&&c.merge(g))&&(g=m,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>pI&&(a=hI(a,u),s-=u),new an(a.append(i),s)}remapping(A,e){let n=new Qi;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 an(this.items.append(A.map(e=>new En(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 m=i.getMirror(--c);if(m==null)return;s=Math.min(s,m);let w=i.maps[m];if(g.step){let U=A.steps[m].invert(A.docs[m]),b=g.selection&&g.selection.map(i.slice(c+1,m));b&&a++,n.push(new En(w,U,b))}else n.push(new En(w))},r);let u=[];for(let g=e;g<s;g++)u.push(new En(i.maps[g]));let f=this.items.slice(0,r).append(u).append(n),h=new an(f,a);return h.emptyItemCount()>dI&&(h=h.compress(this.items.length-n.length)),h}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 h=new En(u.invert(),c,f),g,m=r.length-1;(g=r.length&&r[m].merge(h))?r[m]=g:r.push(h)}}else s.map&&n--},this.items.length,0),new an(Te.from(r.reverse()),i)}}an.empty=new an(Te.empty,0);function hI(t,A){let e;return t.forEach((n,r)=>{if(n.selection&&A--==0)return e=r,!1}),t.slice(e)}class En{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 En(e.getMap().invert(),e,this.selection)}}}class gr{constructor(A,e,n,r,i){this.done=A,this.undone=e,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}const pI=20;function gI(t,A,e,n){let r=e.getMeta(Br),i;if(r)return r.historyState;e.getMeta(mI)&&(t=new gr(t.done,t.undone,null,0,-1));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return t;if(s&&s.getMeta(Br))return s.getMeta(Br).redo?new gr(t.done.addTransform(e,void 0,n,pa(A)),t.undone,Lg(e.mapping.maps[e.steps.length-1]),t.prevTime,t.prevComposition):new gr(t.done,t.undone.addTransform(e,void 0,n,pa(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||!BI(e,t.prevRanges)),u=s?uu(t.prevRanges,e.mapping):Lg(e.mapping.maps[e.steps.length-1]);return new gr(t.done.addTransform(e,c?A.selection.getBookmark():void 0,n,pa(A)),an.empty,u,e.time,a??t.prevComposition)}else return(i=e.getMeta("rebased"))?new gr(t.done.rebased(e,i),t.undone.rebased(e,i),uu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition):new gr(t.done.addMaps(e.mapping.maps),t.undone.addMaps(e.mapping.maps),uu(t.prevRanges,e.mapping),t.prevTime,t.prevComposition)}function BI(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 Lg(t){let A=[];return t.forEach((e,n,r,i)=>A.push(r,i)),A}function uu(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 Hg(t,A,e,n){let r=pa(A),i=Br.get(A).spec.config,s=(n?t.undone:t.done).popEvent(A,r);if(!s)return;let a=s.selection.resolve(s.transform.doc),c=(n?t.done:t.undone).addTransform(s.transform,A.selection.getBookmark(),i,r),u=new gr(n?c:s.remaining,n?s.remaining:c,null,0,-1);e(s.transform.setSelection(a).setMeta(Br,{redo:n,historyState:u}).scrollIntoView())}let fu=!1,Mg=null;function pa(t){let A=t.plugins;if(Mg!=A){fu=!1,Mg=A;for(let e=0;e<A.length;e++)if(A[e].spec.historyPreserveItems){fu=!0;break}}return fu}const Br=new mn("history"),mI=new mn("closeHistory");function wI(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new gt({key:Br,state:{init(){return new gr(an.empty,an.empty,null,0,-1)},apply(A,e,n){return gI(e,n,A,t)}},config:t,props:{handleDOMEvents:{beforeinput(A,e){let n=e.inputType,r=n=="historyUndo"?Ng:n=="historyRedo"?Dg:null;return r?(e.preventDefault(),r(A.state,A.dispatch)):!1}}}})}const Ng=(t,A)=>{let e=Br.getState(t);return!e||e.done.eventCount==0?!1:(A&&Hg(e,t,A,!1),!0)},Dg=(t,A)=>{let e=Br.getState(t);return!e||e.undone.eventCount==0?!1:(A&&Hg(e,t,A,!0),!0)},CI=Xe.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:A})=>Ng(t,A),redo:()=>({state:t,dispatch:A})=>Dg(t,A)}},addProseMirrorPlugins(){return[wI(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),yI=bt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Ce(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(uA.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[xv({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),EI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,QI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,FI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,UI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,bI=on.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",Ce(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ai({find:EI,type:this.type}),Ai({find:FI,type:this.type})]},addPasteRules(){return[ei({find:QI,type:this.type}),ei({find:UI,type:this.type})]}}),vI=bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ce(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)}}}),II=bt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ce(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=on.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ce(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=ua(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),Rg=/^(\d+)\.\s$/,SI=bt.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",Ce(this.options.HTMLAttributes,e),0]:["ol",Ce(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(II.name,this.editor.getAttributes(kg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ds({find:Rg,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=Ds({find:Rg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:A=>({start:+A[1],...this.editor.getAttributes(kg.name)}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[1],editor:this.editor})),[t]}}),TI=bt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ce(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),_I=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,xI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,OI=on.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",Ce(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(){const t={};return ru()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[Ai({find:_I,type:this.type})]},addPasteRules(){return[ei({find:xI,type:this.type})]}}),LI=bt.create({name:"text",group:"inline"}),HI=Xe.create({name:"starterKit",addExtensions(){var t,A,e,n,r,i,s,a,c,u,f,h,g,m,w,U,b,Q;const I=[];return this.options.blockquote!==!1&&I.push(Dv.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&I.push(Vv.configure((A=this.options)===null||A===void 0?void 0:A.bold)),this.options.bulletList!==!1&&I.push(Wv.configure((e=this.options)===null||e===void 0?void 0:e.bulletList)),this.options.code!==!1&&I.push(Xv.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&I.push(qv.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&I.push(Zv.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&I.push(eI.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&I.push(lI.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&I.push(cI.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&I.push(uI.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&I.push(CI.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&I.push(yI.configure((h=this.options)===null||h===void 0?void 0:h.horizontalRule)),this.options.italic!==!1&&I.push(bI.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&I.push(vI.configure((m=this.options)===null||m===void 0?void 0:m.listItem)),this.options.orderedList!==!1&&I.push(SI.configure((w=this.options)===null||w===void 0?void 0:w.orderedList)),this.options.paragraph!==!1&&I.push(TI.configure((U=this.options)===null||U===void 0?void 0:U.paragraph)),this.options.strike!==!1&&I.push(OI.configure((b=this.options)===null||b===void 0?void 0:b.strike)),this.options.text!==!1&&I.push(LI.configure((Q=this.options)===null||Q===void 0?void 0:Q.text)),I}});var MI="tippy-box",Kg="tippy-content",NI="tippy-backdrop",Pg="tippy-arrow",Vg="tippy-svg-arrow",ti={passive:!0,capture:!0},Gg=function(){return document.body};function DI(t,A){return{}.hasOwnProperty.call(t,A)}function du(t,A,e){if(Array.isArray(t)){var n=t[A];return n??(Array.isArray(e)?e[A]:e)}return t}function hu(t,A){var e={}.toString.call(t);return e.indexOf("[object")===0&&e.indexOf(A+"]")>-1}function Wg(t,A){return typeof t=="function"?t.apply(void 0,A):t}function $g(t,A){if(A===0)return t;var e;return function(n){clearTimeout(e),e=setTimeout(function(){t(n)},A)}}function kI(t,A){var e=Object.assign({},t);return A.forEach(function(n){delete e[n]}),e}function RI(t){return t.split(/\s+/).filter(Boolean)}function Di(t){return[].concat(t)}function Jg(t,A){t.indexOf(A)===-1&&t.push(A)}function KI(t){return t.filter(function(A,e){return t.indexOf(A)===e})}function PI(t){return t.split("-")[0]}function ga(t){return[].slice.call(t)}function Xg(t){return Object.keys(t).reduce(function(A,e){return t[e]!==void 0&&(A[e]=t[e]),A},{})}function ks(){return document.createElement("div")}function Rs(t){return["Element","Fragment"].some(function(A){return hu(t,A)})}function VI(t){return hu(t,"NodeList")}function GI(t){return hu(t,"MouseEvent")}function WI(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function $I(t){return Rs(t)?[t]:VI(t)?ga(t):Array.isArray(t)?t:ga(document.querySelectorAll(t))}function pu(t,A){t.forEach(function(e){e&&(e.style.transitionDuration=A+"ms")})}function Yg(t,A){t.forEach(function(e){e&&e.setAttribute("data-state",A)})}function JI(t){var A,e=Di(t),n=e[0];return n!=null&&(A=n.ownerDocument)!=null&&A.body?n.ownerDocument:document}function XI(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=PI(s.placement),f=s.modifiersData.offset;if(!f)return!0;var h=u==="bottom"?f.top.y:0,g=u==="top"?f.bottom.y:0,m=u==="right"?f.left.x:0,w=u==="left"?f.right.x:0,U=i.top-n+h>c,b=n-i.bottom-g>c,Q=i.left-e+m>c,I=e-i.right-w>c;return U||b||Q||I})}function gu(t,A,e){var n=A+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,e)})}function zg(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 Qn={isTouch:!1},qg=0;function YI(){Qn.isTouch||(Qn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zg))}function Zg(){var t=performance.now();t-qg<20&&(Qn.isTouch=!1,document.removeEventListener("mousemove",Zg)),qg=t}function zI(){var t=document.activeElement;if(WI(t)){var A=t._tippy;t.blur&&!A.state.isVisible&&t.blur()}}function qI(){document.addEventListener("touchstart",YI,ti),window.addEventListener("blur",zI)}var ZI=typeof window<"u"&&typeof document<"u",jI=ZI?!!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 jg(t){var A=/[ \t]{2,}/g,e=/^[ \t]*/gm;return t.replace(A," ").replace(e,"").trim()}function A1(t){return jg(`
|
|
94
94
|
%ctippy.js
|
|
95
95
|
|
|
96
96
|
%c`+jg(t)+`
|
|
@@ -99,64 +99,64 @@ img.ProseMirror-separator {
|
|
|
99
99
|
`)}function AB(t){return[A1(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Ks;process.env.NODE_ENV!=="production"&&e1();function e1(){Ks=new Set}function Dn(t,A){if(t&&!Ks.has(A)){var e;Ks.add(A),(e=console).warn.apply(e,AB(A))}}function Bu(t,A){if(t&&!Ks.has(A)){var e;Ks.add(A),(e=console).error.apply(e,AB(A))}}function t1(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 eB={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},n1={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},vt=Object.assign({appendTo:Gg,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},eB,n1),r1=Object.keys(vt),i1=function(A){process.env.NODE_ENV!=="production"&&rB(A,[]);var e=Object.keys(A);e.forEach(function(n){vt[n]=A[n]})};function tB(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=vt[i])!=null?a:s}return n},{});return Object.assign({},t,e)}function s1(t,A){var e=A?Object.keys(tB(Object.assign({},vt,{plugins:A}))):r1,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 nB(t,A){var e=Object.assign({},A,{content:Wg(A.content,[t])},A.ignoreAttributes?{}:s1(t,A.plugins));return e.aria=Object.assign({},vt.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 rB(t,A){t===void 0&&(t={}),A===void 0&&(A=[]);var e=Object.keys(t);e.forEach(function(n){var r=kI(vt,Object.keys(eB)),i=!DI(r,n);i&&(i=A.filter(function(s){return s.name===n}).length===0),Dn(i,["`"+n+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
100
100
|
|
|
101
101
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
102
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var o1=function(){return"innerHTML"};function mu(t,A){t[o1()]=A}function iB(t){var A=ks();return t===!0?A.className=Pg:(A.className=Vg,Rs(t)?A.appendChild(t):mu(A,t)),A}function sB(t,A){Rs(A.content)?(mu(t,""),t.appendChild(A.content)):typeof A.content!="function"&&(A.allowHTML?mu(t,A.content):t.textContent=A.content)}function wu(t){var A=t.firstElementChild,e=ga(A.children);return{box:A,content:e.find(function(n){return n.classList.contains(Kg)}),arrow:e.find(function(n){return n.classList.contains(Pg)||n.classList.contains(Vg)}),backdrop:e.find(function(n){return n.classList.contains(NI)})}}function oB(t){var A=ks(),e=ks();e.className=MI,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var n=ks();n.className=Kg,n.setAttribute("data-state","hidden"),sB(n,t.props),A.appendChild(e),e.appendChild(n),r(t.props,t.props);function r(i,s){var a=wu(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)&&sB(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(c.removeChild(f),c.appendChild(iB(s.arrow))):c.appendChild(iB(s.arrow)):f&&c.removeChild(f)}return{popper:A,onUpdate:r}}oB.$$tippy=!0;var a1=1,Ba=[],Cu=[];function l1(t,A){var e=nB(t,Object.assign({},vt,tB(Xg(A)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,h,g,m=[],w=$g(v,e.interactiveDebounce),U,b=a1++,
|
|
102
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var o1=function(){return"innerHTML"};function mu(t,A){t[o1()]=A}function iB(t){var A=ks();return t===!0?A.className=Pg:(A.className=Vg,Rs(t)?A.appendChild(t):mu(A,t)),A}function sB(t,A){Rs(A.content)?(mu(t,""),t.appendChild(A.content)):typeof A.content!="function"&&(A.allowHTML?mu(t,A.content):t.textContent=A.content)}function wu(t){var A=t.firstElementChild,e=ga(A.children);return{box:A,content:e.find(function(n){return n.classList.contains(Kg)}),arrow:e.find(function(n){return n.classList.contains(Pg)||n.classList.contains(Vg)}),backdrop:e.find(function(n){return n.classList.contains(NI)})}}function oB(t){var A=ks(),e=ks();e.className=MI,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var n=ks();n.className=Kg,n.setAttribute("data-state","hidden"),sB(n,t.props),A.appendChild(e),e.appendChild(n),r(t.props,t.props);function r(i,s){var a=wu(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)&&sB(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(c.removeChild(f),c.appendChild(iB(s.arrow))):c.appendChild(iB(s.arrow)):f&&c.removeChild(f)}return{popper:A,onUpdate:r}}oB.$$tippy=!0;var a1=1,Ba=[],Cu=[];function l1(t,A){var e=nB(t,Object.assign({},vt,tB(Xg(A)))),n,r,i,s=!1,a=!1,c=!1,u=!1,f,h,g,m=[],w=$g(v,e.interactiveDebounce),U,b=a1++,Q=null,I=KI(e.plugins),M={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:b,reference:t,popper:ks(),popperInstance:Q,props:e,state:M,plugins:I,clearDelayTimeouts:X,setProps:bA,setContent:$A,show:_t,hide:Tn,hideWithInteractivity:Xt,enable:ae,disable:K,unmount:xt,destroy:fi};if(!e.render)return process.env.NODE_ENV!=="production"&&Bu(!0,"render() function has not been supplied."),E;var N=e.render(E),T=N.popper,H=N.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+E.id,E.popper=T,t._tippy=E,T._tippy=E;var Y=I.map(function(R){return R.fn(E)}),P=t.hasAttribute("aria-expanded");return ut(),LA(),nA(),sA("onCreate",[E]),e.showOnCreate&&Sn(),T.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&IA().addEventListener("mousemove",w)}),E;function oA(){var R=E.props.touch;return Array.isArray(R)?R:[R,0]}function UA(){return oA()[0]==="hold"}function hA(){var R;return!!((R=E.props.render)!=null&&R.$$tippy)}function cA(){return U||t}function IA(){var R=cA().parentNode;return R?JI(R):document}function ie(){return wu(T)}function KA(R){return E.state.isMounted&&!E.state.isVisible||Qn.isTouch||f&&f.type==="focus"?0:du(E.props.delay,R?0:1,vt.delay)}function nA(R){R===void 0&&(R=!1),T.style.pointerEvents=E.props.interactive&&!R?"":"none",T.style.zIndex=""+E.props.zIndex}function sA(R,rA,fA){if(fA===void 0&&(fA=!0),Y.forEach(function(HA){HA[R]&&HA[R].apply(HA,rA)}),fA){var RA;(RA=E.props)[R].apply(RA,rA)}}function jA(){var R=E.props.aria;if(R.content){var rA="aria-"+R.content,fA=T.id,RA=Di(E.props.triggerTarget||t);RA.forEach(function(HA){var Pe=HA.getAttribute(rA);if(E.state.isVisible)HA.setAttribute(rA,Pe?Pe+" "+fA:fA);else{var Ct=Pe&&Pe.replace(fA,"").trim();Ct?HA.setAttribute(rA,Ct):HA.removeAttribute(rA)}})}}function LA(){if(!(P||!E.props.aria.expanded)){var R=Di(E.props.triggerTarget||t);R.forEach(function(rA){E.props.interactive?rA.setAttribute("aria-expanded",E.state.isVisible&&rA===cA()?"true":"false"):rA.removeAttribute("aria-expanded")})}}function DA(){IA().removeEventListener("mousemove",w),Ba=Ba.filter(function(R){return R!==w})}function kA(R){if(!(Qn.isTouch&&(c||R.type==="mousedown"))){var rA=R.composedPath&&R.composedPath()[0]||R.target;if(!(E.props.interactive&&zg(T,rA))){if(Di(E.props.triggerTarget||t).some(function(fA){return zg(fA,rA)})){if(Qn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else sA("onClickOutside",[E,R]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),a=!0,setTimeout(function(){a=!1}),E.state.isMounted||de())}}}function WA(){c=!0}function te(){c=!1}function qA(){var R=IA();R.addEventListener("mousedown",kA,!0),R.addEventListener("touchend",kA,ti),R.addEventListener("touchstart",te,ti),R.addEventListener("touchmove",WA,ti)}function de(){var R=IA();R.removeEventListener("mousedown",kA,!0),R.removeEventListener("touchend",kA,ti),R.removeEventListener("touchstart",te,ti),R.removeEventListener("touchmove",WA,ti)}function lt(R,rA){je(R,function(){!E.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&rA()})}function ct(R,rA){je(R,rA)}function je(R,rA){var fA=ie().box;function RA(HA){HA.target===fA&&(gu(fA,"remove",RA),rA())}if(R===0)return rA();gu(fA,"remove",h),gu(fA,"add",RA),h=RA}function ke(R,rA,fA){fA===void 0&&(fA=!1);var RA=Di(E.props.triggerTarget||t);RA.forEach(function(HA){HA.addEventListener(R,rA,fA),m.push({node:HA,eventType:R,handler:rA,options:fA})})}function ut(){UA()&&(ke("touchstart",x,{passive:!0}),ke("touchend",k,{passive:!0})),RI(E.props.trigger).forEach(function(R){if(R!=="manual")switch(ke(R,x),R){case"mouseenter":ke("mouseleave",k);break;case"focus":ke(jI?"focusout":"blur",q);break;case"focusin":ke("focusout",q);break}})}function Tt(){m.forEach(function(R){var rA=R.node,fA=R.eventType,RA=R.handler,HA=R.options;rA.removeEventListener(fA,RA,HA)}),m=[]}function x(R){var rA,fA=!1;if(!(!E.state.isEnabled||lA(R)||a)){var RA=((rA=f)==null?void 0:rA.type)==="focus";f=R,U=R.currentTarget,LA(),!E.state.isVisible&&GI(R)&&Ba.forEach(function(HA){return HA(R)}),R.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||s)&&E.props.hideOnClick!==!1&&E.state.isVisible?fA=!0:Sn(R),R.type==="click"&&(s=!fA),fA&&!RA&&un(R)}}function v(R){var rA=R.target,fA=cA().contains(rA)||T.contains(rA);if(!(R.type==="mousemove"&&fA)){var RA=Ke().concat(T).map(function(HA){var Pe,Ct=HA._tippy,$n=(Pe=Ct.popperInstance)==null?void 0:Pe.state;return $n?{popperRect:HA.getBoundingClientRect(),popperState:$n,props:e}:null}).filter(Boolean);XI(RA,R)&&(DA(),un(R))}}function k(R){var rA=lA(R)||E.props.trigger.indexOf("click")>=0&&s;if(!rA){if(E.props.interactive){E.hideWithInteractivity(R);return}un(R)}}function q(R){E.props.trigger.indexOf("focusin")<0&&R.target!==cA()||E.props.interactive&&R.relatedTarget&&T.contains(R.relatedTarget)||un(R)}function lA(R){return Qn.isTouch?UA()!==R.type.indexOf("touch")>=0:!1}function SA(){ft();var R=E.props,rA=R.popperOptions,fA=R.placement,RA=R.offset,HA=R.getReferenceClientRect,Pe=R.moveTransition,Ct=hA()?wu(T).arrow:null,$n=HA?{getBoundingClientRect:HA,contextElement:HA.contextElement||cA()}:t,Bo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(rs){var Or=rs.state;if(hA()){var ml=ie(),wo=ml.box;["placement","reference-hidden","escaped"].forEach(function(is){is==="placement"?wo.setAttribute("data-placement",Or.placement):Or.attributes.popper["data-popper-"+is]?wo.setAttribute("data-"+is,""):wo.removeAttribute("data-"+is)}),Or.attributes.popper={}}}},Jn=[{name:"offset",options:{offset:RA}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Pe}},Bo];hA()&&Ct&&Jn.push({name:"arrow",options:{element:Ct,padding:3}}),Jn.push.apply(Jn,(rA==null?void 0:rA.modifiers)||[]),E.popperInstance=sh.createPopper($n,T,Object.assign({},rA,{placement:fA,onFirstUpdate:g,modifiers:Jn}))}function ft(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function Re(){var R=E.props.appendTo,rA,fA=cA();E.props.interactive&&R===Gg||R==="parent"?rA=fA.parentNode:rA=Wg(R,[fA]),rA.contains(T)||rA.appendChild(T),E.state.isMounted=!0,SA(),process.env.NODE_ENV!=="production"&&Dn(E.props.interactive&&R===vt.appendTo&&fA.nextElementSibling!==T,["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
103
|
|
|
104
104
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
105
105
|
|
|
106
106
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
107
107
|
|
|
108
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Ke(){return ga(T.querySelectorAll("[data-tippy-root]"))}function Sn(R){E.clearDelayTimeouts(),R&&
|
|
108
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Ke(){return ga(T.querySelectorAll("[data-tippy-root]"))}function Sn(R){E.clearDelayTimeouts(),R&&sA("onTrigger",[E,R]),qA();var rA=KA(!0),fA=oA(),RA=fA[0],HA=fA[1];Qn.isTouch&&RA==="hold"&&HA&&(rA=HA),rA?n=setTimeout(function(){E.show()},rA):E.show()}function un(R){if(E.clearDelayTimeouts(),sA("onUntrigger",[E,R]),!E.state.isVisible){de();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(R.type)>=0&&s)){var rA=KA(!1);rA?r=setTimeout(function(){E.state.isVisible&&E.hide()},rA):i=requestAnimationFrame(function(){E.hide()})}}function ae(){E.state.isEnabled=!0}function K(){E.hide(),E.state.isEnabled=!1}function X(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function bA(R){if(process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,ki("setProps")),!E.state.isDestroyed){sA("onBeforeUpdate",[E,R]),Tt();var rA=E.props,fA=nB(t,Object.assign({},rA,Xg(R),{ignoreAttributes:!0}));E.props=fA,ut(),rA.interactiveDebounce!==fA.interactiveDebounce&&(DA(),w=$g(v,fA.interactiveDebounce)),rA.triggerTarget&&!fA.triggerTarget?Di(rA.triggerTarget).forEach(function(RA){RA.removeAttribute("aria-expanded")}):fA.triggerTarget&&t.removeAttribute("aria-expanded"),LA(),nA(),H&&H(rA,fA),E.popperInstance&&(SA(),Ke().forEach(function(RA){requestAnimationFrame(RA._tippy.popperInstance.forceUpdate)})),sA("onAfterUpdate",[E,R])}}function $A(R){E.setProps({content:R})}function _t(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,ki("show"));var R=E.state.isVisible,rA=E.state.isDestroyed,fA=!E.state.isEnabled,RA=Qn.isTouch&&!E.props.touch,HA=du(E.props.duration,0,vt.duration);if(!(R||rA||fA||RA)&&!cA().hasAttribute("disabled")&&(sA("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,hA()&&(T.style.visibility="visible"),nA(),qA(),E.state.isMounted||(T.style.transition="none"),hA()){var Pe=ie(),Ct=Pe.box,$n=Pe.content;pu([Ct,$n],0)}g=function(){var Jn;if(!(!E.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=E.props.moveTransition,hA()&&E.props.animation){var mo=ie(),rs=mo.box,Or=mo.content;pu([rs,Or],HA),Yg([rs,Or],"visible")}jA(),LA(),Jg(Cu,E),(Jn=E.popperInstance)==null||Jn.forceUpdate(),sA("onMount",[E]),E.props.animation&&hA()&&ct(HA,function(){E.state.isShown=!0,sA("onShown",[E])})}},Re()}}function Tn(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,ki("hide"));var R=!E.state.isVisible,rA=E.state.isDestroyed,fA=!E.state.isEnabled,RA=du(E.props.duration,1,vt.duration);if(!(R||rA||fA)&&(sA("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,u=!1,s=!1,hA()&&(T.style.visibility="hidden"),DA(),de(),nA(!0),hA()){var HA=ie(),Pe=HA.box,Ct=HA.content;E.props.animation&&(pu([Pe,Ct],RA),Yg([Pe,Ct],"hidden"))}jA(),LA(),E.props.animation?hA()&<(RA,E.unmount):E.unmount()}}function Xt(R){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,ki("hideWithInteractivity")),IA().addEventListener("mousemove",w),Jg(Ba,w),w(R)}function xt(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,ki("unmount")),E.state.isVisible&&E.hide(),E.state.isMounted&&(ft(),Ke().forEach(function(R){R._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),Cu=Cu.filter(function(R){return R!==E}),E.state.isMounted=!1,sA("onHidden",[E]))}function fi(){process.env.NODE_ENV!=="production"&&Dn(E.state.isDestroyed,ki("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),Tt(),delete t._tippy,E.state.isDestroyed=!0,sA("onDestroy",[E]))}}function Ri(t,A){A===void 0&&(A={});var e=vt.plugins.concat(A.plugins||[]);process.env.NODE_ENV!=="production"&&(t1(t),rB(A,e)),qI();var n=Object.assign({},A,{plugins:e}),r=$I(t);if(process.env.NODE_ENV!=="production"){var i=Rs(n.content),s=r.length>1;Dn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
109
109
|
|
|
110
110
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
111
111
|
|
|
112
112
|
`,`1) content: element.innerHTML
|
|
113
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&l1(u,n);return f&&c.push(f),c},[]);return Rs(t)?a[0]:a}Ri.defaultProps=vt,Ri.setDefaultProps=i1,Ri.currentInput=Qn,Object.assign({},sh.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)}}),Ri.setDefaultProps({render:oB});class c1{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:h,selection:g}=c,{empty:m}=g,w=!h.textBetween(u,f).length&&tu(c.selection),U=this.element.contains(document.activeElement);return!(!(a.hasFocus()||U)||m||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 h,g,m;const{state:w,composing:U}=a,{selection:b}=w;if(U||!c&&!u)return;this.createTooltip();const{ranges:I}=b,M=Math.min(...I.map(T=>T.$from.pos)),E=Math.max(...I.map(T=>T.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,view:a,state:w,oldState:f,from:M,to:E}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(fv(w.selection)){let T=a.nodeDOM(M);const H=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(H&&(T=H.firstChild),T)return T.getBoundingClientRect()}return Sg(a,M,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=Ri(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 aB=t=>new gt({key:typeof t.pluginKey=="string"?new mn(t.pluginKey):t.pluginKey,view:A=>new c1({view:A,...t})});Xe.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[aB({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class u1{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,h=u.depth===1,g=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!f||!h||!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=Ri(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)||(()=>Sg(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 lB=t=>new gt({key:typeof t.pluginKey=="string"?new mn(t.pluginKey):t.pluginKey,view:A=>new u1({view:A,...t})});Xe.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[lB({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),p.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=p.ref(null);return p.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(aB({updateDelay:n,editor:r,element:e.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),p.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return p.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function cB(t){return p.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class f1 extends _v{constructor(A={}){return super(A),this.vueRenderers=p.reactive(new Map),this.contentComponent=null,this.reactiveState=cB(this.view.state),this.reactiveExtensionStorage=cB(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),p.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 d1=p.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=p.ref(),e=p.getCurrentInstance();return p.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&p.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=p.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),p.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=p.h(p.Teleport,{to:A.teleportElement,key:A.id},p.h(A.component,{ref:A.id,...A.props}));t.push(e)}),p.h("div",{ref:A=>{this.rootEl=A}},...t)}});p.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=p.ref(null);return p.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(lB({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),p.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return p.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),p.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return p.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),p.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,A;return p.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 h1=(t={})=>{const A=p.shallowRef();return p.onMounted(()=>{A.value=new f1(t)}),p.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},p1={class:"rte-editor"},g1={key:0,class:"rte-editor__controls"},B1=["disabled"],m1=["disabled"],w1=["disabled"],C1=["disabled"],y1=["disabled"],E1=["disabled"],Q1=p.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=h1({content:e.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[HI,Mv.configure({types:["heading","paragraph"]}),Hv]});return p.watch(()=>e.modelValue,(i,s)=>{if(r.value){if(r.value.getHTML()===i)return;r.value.commands.setContent(i,!1)}}),(i,s)=>{const a=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",p1,[p.unref(r)?(p.openBlock(),p.createElementBlock("div",g1,[p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("bold")}]),onClick:s[0]||(s[0]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleBold().run()}),disabled:!p.unref(r).can().chain().focus().toggleBold().run()},[p.createVNode(a,{symbol:"bold"})],10,B1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("italic")}]),onClick:s[1]||(s[1]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleItalic().run()}),disabled:!p.unref(r).can().chain().focus().toggleItalic().run()},[p.createVNode(a,{symbol:"italic"})],10,m1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("strike")}]),onClick:s[2]||(s[2]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleStrike().run()}),disabled:!p.unref(r).can().chain().focus().toggleStrike().run()}," strikethrough ",10,w1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("code")}]),onClick:s[3]||(s[3]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleCode().run()}),disabled:!p.unref(r).can().chain().focus().toggleCode().run()},[p.createVNode(a,{symbol:"code"})],10,C1),p.createElementVNode("button",{class:"btn btn-light",onClick:s[4]||(s[4]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().unsetAllMarks().run()})}," clear marks "),p.createElementVNode("button",{class:"btn btn-light",onClick:s[5]||(s[5]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().clearNodes().run()})}," clear nodes "),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("paragraph")}]),onClick:s[6]||(s[6]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setParagraph().run()})}," paragraph ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:1})}]),onClick:s[7]||(s[7]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:2})}]),onClick:s[8]||(s[8]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:3})}]),onClick:s[9]||(s[9]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:4})}]),onClick:s[10]||(s[10]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:5})}]),onClick:s[11]||(s[11]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:6})}]),onClick:s[12]||(s[12]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("bulletList")}]),onClick:s[13]||(s[13]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleBulletList().run()})},[p.createVNode(a,{id:"list"})],2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("orderedList")}]),onClick:s[14]||(s[14]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleOrderedList().run()})}," ordered list ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("codeBlock")}]),onClick:s[15]||(s[15]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleCodeBlock().run()})}," code block ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("blockquote")}]),onClick:s[16]||(s[16]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleBlockquote().run()})}," blockquote ",2),p.createElementVNode("button",{class:"btn btn-light",onClick:s[17]||(s[17]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setHorizontalRule().run()})}," horizontal rule "),p.createElementVNode("button",{class:"btn btn-light",onClick:s[18]||(s[18]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setHardBreak().run()})}," hard break "),p.createElementVNode("button",{class:"btn btn-light",onClick:s[19]||(s[19]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().undo().run()}),disabled:!p.unref(r).can().chain().focus().undo().run()}," undo ",8,y1),p.createElementVNode("button",{class:"btn btn-light",onClick:s[20]||(s[20]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().redo().run()}),disabled:!p.unref(r).can().chain().focus().redo().run()}," redo ",8,E1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("highlight")}]),onClick:s[21]||(s[21]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHighlight().run()})}," highlight ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive({textAlign:"left"})}]),onClick:s[22]||(s[22]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setTextAlign("left").run()})},[p.createVNode(a,{symbol:"align-left"})],2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive({textAlign:"center"})}]),onClick:s[23]||(s[23]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setTextAlign("center").run()})},[p.createVNode(a,{symbol:"align-center"})],2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive({textAlign:"right"})}]),onClick:s[24]||(s[24]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setTextAlign("right").run()})},[p.createVNode(a,{symbol:"align-right"})],2)])):p.createCommentVNode("",!0),p.createVNode(p.unref(d1),{class:"rte-editor__content",editor:p.unref(r)},null,8,["editor"])])}}}),IG="",F1={class:"input-color"},U1={class:"base-input__color-swatch"},b1=["name","id","disabled","read-only","required","aria-label"],v1=p.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=p.resolveComponent("base-input");return p.openBlock(),p.createElementBlock("div",F1,[p.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":p.withCtx(c=>[p.createElementVNode("span",U1,[p.withDirectives(p.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,b1),[[p.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),SG="";/*!
|
|
113
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var f=u&&l1(u,n);return f&&c.push(f),c},[]);return Rs(t)?a[0]:a}Ri.defaultProps=vt,Ri.setDefaultProps=i1,Ri.currentInput=Qn,Object.assign({},sh.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)}}),Ri.setDefaultProps({render:oB});class c1{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:h,selection:g}=c,{empty:m}=g,w=!h.textBetween(u,f).length&&tu(c.selection),U=this.element.contains(document.activeElement);return!(!(a.hasFocus()||U)||m||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 h,g,m;const{state:w,composing:U}=a,{selection:b}=w;if(U||!c&&!u)return;this.createTooltip();const{ranges:I}=b,M=Math.min(...I.map(T=>T.$from.pos)),E=Math.max(...I.map(T=>T.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,view:a,state:w,oldState:f,from:M,to:E}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(fv(w.selection)){let T=a.nodeDOM(M);const H=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(H&&(T=H.firstChild),T)return T.getBoundingClientRect()}return Sg(a,M,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=Ri(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 aB=t=>new gt({key:typeof t.pluginKey=="string"?new mn(t.pluginKey):t.pluginKey,view:A=>new c1({view:A,...t})});Xe.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[aB({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class u1{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,h=u.depth===1,g=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!f||!h||!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=Ri(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)||(()=>Sg(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 lB=t=>new gt({key:typeof t.pluginKey=="string"?new mn(t.pluginKey):t.pluginKey,view:A=>new u1({view:A,...t})});Xe.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[lB({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),p.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=p.ref(null);return p.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(aB({updateDelay:n,editor:r,element:e.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),p.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return p.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function cB(t){return p.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class f1 extends _v{constructor(A={}){return super(A),this.vueRenderers=p.reactive(new Map),this.contentComponent=null,this.reactiveState=cB(this.view.state),this.reactiveExtensionStorage=cB(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),p.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 d1=p.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=p.ref(),e=p.getCurrentInstance();return p.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&p.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=p.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),p.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=p.h(p.Teleport,{to:A.teleportElement,key:A.id},p.h(A.component,{ref:A.id,...A.props}));t.push(e)}),p.h("div",{ref:A=>{this.rootEl=A}},...t)}});p.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=p.ref(null);return p.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(lB({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),p.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return p.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),p.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return p.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),p.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,A;return p.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 h1=(t={})=>{const A=p.shallowRef();return p.onMounted(()=>{A.value=new f1(t)}),p.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},p1={class:"rte-editor"},g1={key:0,class:"rte-editor__controls"},B1=["disabled"],m1=["disabled"],w1=["disabled"],C1=["disabled"],y1=["disabled"],E1=["disabled"],Q1=p.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=h1({content:e.modelValue,onUpdate:()=>{var i;n("update:modelValue",(i=r.value)==null?void 0:i.getHTML())},extensions:[HI,Mv.configure({types:["heading","paragraph"]}),Hv]});return p.watch(()=>e.modelValue,(i,s)=>{if(r.value){if(r.value.getHTML()===i)return;r.value.commands.setContent(i,!1)}}),(i,s)=>{const a=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",p1,[p.unref(r)?(p.openBlock(),p.createElementBlock("div",g1,[p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("bold")}]),onClick:s[0]||(s[0]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleBold().run()}),disabled:!p.unref(r).can().chain().focus().toggleBold().run()},[p.createVNode(a,{symbol:"bold"})],10,B1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("italic")}]),onClick:s[1]||(s[1]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleItalic().run()}),disabled:!p.unref(r).can().chain().focus().toggleItalic().run()},[p.createVNode(a,{symbol:"italic"})],10,m1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("strike")}]),onClick:s[2]||(s[2]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleStrike().run()}),disabled:!p.unref(r).can().chain().focus().toggleStrike().run()}," strikethrough ",10,w1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("code")}]),onClick:s[3]||(s[3]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleCode().run()}),disabled:!p.unref(r).can().chain().focus().toggleCode().run()},[p.createVNode(a,{symbol:"code"})],10,C1),p.createElementVNode("button",{class:"btn btn-light",onClick:s[4]||(s[4]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().unsetAllMarks().run()})}," clear marks "),p.createElementVNode("button",{class:"btn btn-light",onClick:s[5]||(s[5]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().clearNodes().run()})}," clear nodes "),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("paragraph")}]),onClick:s[6]||(s[6]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setParagraph().run()})}," paragraph ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:1})}]),onClick:s[7]||(s[7]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:2})}]),onClick:s[8]||(s[8]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:3})}]),onClick:s[9]||(s[9]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:4})}]),onClick:s[10]||(s[10]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:5})}]),onClick:s[11]||(s[11]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("heading",{level:6})}]),onClick:s[12]||(s[12]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("bulletList")}]),onClick:s[13]||(s[13]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleBulletList().run()})},[p.createVNode(a,{id:"list"})],2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("orderedList")}]),onClick:s[14]||(s[14]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleOrderedList().run()})}," ordered list ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("codeBlock")}]),onClick:s[15]||(s[15]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleCodeBlock().run()})}," code block ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("blockquote")}]),onClick:s[16]||(s[16]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleBlockquote().run()})}," blockquote ",2),p.createElementVNode("button",{class:"btn btn-light",onClick:s[17]||(s[17]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setHorizontalRule().run()})}," horizontal rule "),p.createElementVNode("button",{class:"btn btn-light",onClick:s[18]||(s[18]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setHardBreak().run()})}," hard break "),p.createElementVNode("button",{class:"btn btn-light",onClick:s[19]||(s[19]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().undo().run()}),disabled:!p.unref(r).can().chain().focus().undo().run()}," undo ",8,y1),p.createElementVNode("button",{class:"btn btn-light",onClick:s[20]||(s[20]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().redo().run()}),disabled:!p.unref(r).can().chain().focus().redo().run()}," redo ",8,E1),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive("highlight")}]),onClick:s[21]||(s[21]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().toggleHighlight().run()})}," highlight ",2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive({textAlign:"left"})}]),onClick:s[22]||(s[22]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setTextAlign("left").run()})},[p.createVNode(a,{symbol:"align-left"})],2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive({textAlign:"center"})}]),onClick:s[23]||(s[23]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setTextAlign("center").run()})},[p.createVNode(a,{symbol:"align-center"})],2),p.createElementVNode("button",{class:p.normalizeClass(["btn btn-light",{"is-active":p.unref(r).isActive({textAlign:"right"})}]),onClick:s[24]||(s[24]=c=>{var u;return(u=p.unref(r))==null?void 0:u.chain().focus().setTextAlign("right").run()})},[p.createVNode(a,{symbol:"align-right"})],2)])):p.createCommentVNode("",!0),p.createVNode(p.unref(d1),{class:"rte-editor__content",editor:p.unref(r)},null,8,["editor"])])}}}),SG="",F1={class:"input-color"},U1={class:"base-input__color-swatch"},b1=["name","id","disabled","read-only","required","aria-label"],v1=p.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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=p.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>{const a=p.resolveComponent("base-input");return p.openBlock(),p.createElementBlock("div",F1,[p.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":p.withCtx(c=>[p.createElementVNode("span",U1,[p.withDirectives(p.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,b1),[[p.vModelText,r.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),TG="";/*!
|
|
114
114
|
* shared v9.8.0
|
|
115
115
|
* (c) 2023 kazuya kawaguchi
|
|
116
116
|
* Released under the MIT License.
|
|
117
|
-
*/const mr=typeof window<"u";let It,ni;if(process.env.NODE_ENV!=="production"){const t=mr&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(It=A=>{t.mark(A)},ni=(A,e,n)=>{t.measure(A,e,n),t.clearMarks(e),t.clearMarks(n)})}const I1=/\{([0-9a-zA-Z]+)\}/g;function yu(t,...A){return A.length===1&&
|
|
118
|
-
`)}function Eu(t){let A=t;return()=>++A}function wr(t,A){typeof console<"u"&&(console.warn("[intlify] "+t),A&&console.warn(A.stack))}const gB={};function N1(t){gB[t]||(gB[t]=!0,wr(t))}function D1(){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 wa=t=>!
|
|
117
|
+
*/const mr=typeof window<"u";let It,ni;if(process.env.NODE_ENV!=="production"){const t=mr&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(It=A=>{t.mark(A)},ni=(A,e,n)=>{t.measure(A,e,n),t.clearMarks(e),t.clearMarks(n)})}const I1=/\{([0-9a-zA-Z]+)\}/g;function yu(t,...A){return A.length===1&&PA(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(I1,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const kn=(t,A=!1)=>A?Symbol.for(t):Symbol(t),S1=(t,A,e)=>T1({l:t,k:A,s:e}),T1=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ye=t=>typeof t=="number"&&isFinite(t),_1=t=>hB(t)==="[object Date]",Ki=t=>hB(t)==="[object RegExp]",ma=t=>_A(t)&&Object.keys(t).length===0,ze=Object.assign;let uB;const Rn=()=>uB||(uB=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fB(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const x1=Object.prototype.hasOwnProperty;function Ps(t,A){return x1.call(t,A)}const ye=Array.isArray,re=t=>typeof t=="function",tA=t=>typeof t=="string",ZA=t=>typeof t=="boolean",PA=t=>t!==null&&typeof t=="object",O1=t=>PA(t)&&re(t.then)&&re(t.catch),dB=Object.prototype.toString,hB=t=>dB.call(t),_A=t=>{if(!PA(t))return!1;const A=Object.getPrototypeOf(t);return A===null||A.constructor===Object},L1=t=>t==null?"":ye(t)||_A(t)&&t.toString===dB?JSON.stringify(t,null,2):String(t);function H1(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const pB=2;function M1(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-pB;a<=s+pB||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,h=Math.max(1,e>r?u-f:e-A);i.push(" | "+" ".repeat(f)+"^".repeat(h))}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(`
|
|
118
|
+
`)}function Eu(t){let A=t;return()=>++A}function wr(t,A){typeof console<"u"&&(console.warn("[intlify] "+t),A&&console.warn(A.stack))}const gB={};function N1(t){gB[t]||(gB[t]=!0,wr(t))}function D1(){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 wa=t=>!PA(t)||ye(t);function Vs(t,A){if(wa(t)||wa(A))throw new Error("Invalid value");for(const e in t)Ps(t,e)&&(wa(t[e])||wa(A[e])?A[e]=t[e]:Vs(t[e],A[e]))}/*!
|
|
119
119
|
* message-compiler v9.8.0
|
|
120
120
|
* (c) 2023 kazuya kawaguchi
|
|
121
121
|
* Released under the MIT License.
|
|
122
|
-
*/function k1(t,A,e){return{line:t,column:A,offset:e}}function Qu(t,A,e){const n={start:t,end:A};return e!=null&&(n.source=e),n}const R1=/\{([0-9a-zA-Z]+)\}/g;function K1(t,...A){return A.length===1&&P1(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(R1,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const BB=Object.assign,mB=t=>typeof t=="string",P1=t=>t!==null&&typeof t=="object";function wB(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const
|
|
123
|
-
`,X1=String.fromCharCode(8232),Y1=String.fromCharCode(8233);function z1(t){const A=t;let e=0,n=1,r=1,i=0;const s=H=>A[H]===J1&&A[H+1]===st,a=H=>A[H]===st,c=H=>A[H]===Y1,u=H=>A[H]===X1,f=H=>s(H)||a(H)||c(H)||u(H),h=()=>e,g=()=>n,m=()=>r,w=()=>i,U=H=>s(H)||c(H)||u(H)?st:A[H],b=()=>U(e),F=()=>U(e+i);function I(){return i=0,f(e)&&(n++,r=0),s(e)&&e++,e++,r++,A[e]}function M(){return s(e+i)&&i++,i++,A[e+i]}function E(){e=0,n=1,r=1,i=0}function N(H=0){i=H}function T(){const H=e+i;for(;H!==e;)I();i=0}return{index:h,line:g,column:m,peekOffset:w,charAt:U,currentChar:b,currentPeek:F,next:I,peek:M,reset:E,resetPeek:N,skipToPeek:T}}const Cr=void 0,q1=".",CB="'",Z1="tokenizer";function j1(t,A={}){const e=A.location!==!1,n=z1(t),r=()=>n.index(),i=()=>k1(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 h(x,v,k,...Z){const oA=u();if(v.column+=k,v.offset+=k,f){const IA=e?Qu(oA.startLoc,v):null,ft=Pi(x,IA,{domain:Z1,args:Z});f(ft)}}function g(x,v,k){x.endLoc=i(),x.currentType=v;const Z={type:v};return e&&(Z.loc=Qu(x.startLoc,x.endLoc)),k!=null&&(Z.value=k),Z}const m=x=>g(x,14);function w(x,v){return x.currentChar()===v?(x.next(),v):(h(gA.EXPECTED_TOKEN,i(),0,v),"")}function U(x){let v="";for(;x.currentPeek()===Kn||x.currentPeek()===st;)v+=x.currentPeek(),x.peek();return v}function b(x){const v=U(x);return x.skipToPeek(),v}function F(x){if(x===Cr)return!1;const v=x.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v===95}function I(x){if(x===Cr)return!1;const v=x.charCodeAt(0);return v>=48&&v<=57}function M(x,v){const{currentType:k}=v;if(k!==2)return!1;U(x);const Z=F(x.currentPeek());return x.resetPeek(),Z}function E(x,v){const{currentType:k}=v;if(k!==2)return!1;U(x);const Z=x.currentPeek()==="-"?x.peek():x.currentPeek(),oA=I(Z);return x.resetPeek(),oA}function N(x,v){const{currentType:k}=v;if(k!==2)return!1;U(x);const Z=x.currentPeek()===CB;return x.resetPeek(),Z}function T(x,v){const{currentType:k}=v;if(k!==8)return!1;U(x);const Z=x.currentPeek()===".";return x.resetPeek(),Z}function H(x,v){const{currentType:k}=v;if(k!==9)return!1;U(x);const Z=F(x.currentPeek());return x.resetPeek(),Z}function Y(x,v){const{currentType:k}=v;if(!(k===8||k===12))return!1;U(x);const Z=x.currentPeek()===":";return x.resetPeek(),Z}function V(x,v){const{currentType:k}=v;if(k!==10)return!1;const Z=()=>{const IA=x.currentPeek();return IA==="{"?F(x.peek()):IA==="@"||IA==="%"||IA==="|"||IA===":"||IA==="."||IA===Kn||!IA?!1:IA===st?(x.peek(),Z()):F(IA)},oA=Z();return x.resetPeek(),oA}function z(x){U(x);const v=x.currentPeek()==="|";return x.resetPeek(),v}function lA(x){const v=U(x),k=x.currentPeek()==="%"&&x.peek()==="{";return x.resetPeek(),{isModulo:k,hasSpace:v.length>0}}function uA(x,v=!0){const k=(oA=!1,IA="",ft=!1)=>{const Re=x.currentPeek();return Re==="{"?IA==="%"?!1:oA:Re==="@"||!Re?IA==="%"?!0:oA:Re==="%"?(x.peek(),k(oA,"%",!0)):Re==="|"?IA==="%"||ft?!0:!(IA===Kn||IA===st):Re===Kn?(x.peek(),k(!0,Kn,ft)):Re===st?(x.peek(),k(!0,st,ft)):!0},Z=k();return v&&x.resetPeek(),Z}function aA(x,v){const k=x.currentChar();return k===Cr?Cr:v(k)?(x.next(),k):null}function LA(x){return aA(x,k=>{const Z=k.charCodeAt(0);return Z>=97&&Z<=122||Z>=65&&Z<=90||Z>=48&&Z<=57||Z===95||Z===36})}function Ae(x){return aA(x,k=>{const Z=k.charCodeAt(0);return Z>=48&&Z<=57})}function xA(x){return aA(x,k=>{const Z=k.charCodeAt(0);return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102})}function CA(x){let v="",k="";for(;v=Ae(x);)k+=v;return k}function vA(x){b(x);const v=x.currentChar();return v!=="%"&&h(gA.EXPECTED_TOKEN,i(),0,v),x.next(),"%"}function re(x){let v="";for(;;){const k=x.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(uA(x))v+=k,x.next();else break;else if(k===Kn||k===st)if(uA(x))v+=k,x.next();else{if(z(x))break;v+=k,x.next()}else v+=k,x.next()}return v}function RA(x){b(x);let v="",k="";for(;v=LA(x);)k+=v;return x.currentChar()===Cr&&h(gA.UNTERMINATED_CLOSING_BRACE,i(),0),k}function WA(x){b(x);let v="";return x.currentChar()==="-"?(x.next(),v+=`-${CA(x)}`):v+=CA(x),x.currentChar()===Cr&&h(gA.UNTERMINATED_CLOSING_BRACE,i(),0),v}function we(x){b(x),w(x,"'");let v="",k="";const Z=IA=>IA!==CB&&IA!==st;for(;v=aA(x,Z);)v==="\\"?k+=Ce(x):k+=v;const oA=x.currentChar();return oA===st||oA===Cr?(h(gA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oA===st&&(x.next(),w(x,"'")),k):(w(x,"'"),k)}function Ce(x){const v=x.currentChar();switch(v){case"\\":case"'":return x.next(),`\\${v}`;case"u":return Ue(x,v,4);case"U":return Ue(x,v,6);default:return h(gA.UNKNOWN_ESCAPE_SEQUENCE,i(),0,v),""}}function Ue(x,v,k){w(x,v);let Z="";for(let oA=0;oA<k;oA++){const IA=xA(x);if(!IA){h(gA.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${v}${Z}${x.currentChar()}`);break}Z+=IA}return`\\${v}${Z}`}function ee(x){b(x);let v="",k="";const Z=oA=>oA!=="{"&&oA!=="}"&&oA!==Kn&&oA!==st;for(;v=aA(x,Z);)k+=v;return k}function ye(x){let v="",k="";for(;v=LA(x);)k+=v;return k}function lt(x){const v=(k=!1,Z)=>{const oA=x.currentChar();return oA==="{"||oA==="%"||oA==="@"||oA==="|"||oA==="("||oA===")"||!oA||oA===Kn?Z:oA===st||oA===q1?(Z+=oA,x.next(),v(k,Z)):(Z+=oA,x.next(),v(!0,Z))};return v(!1,"")}function ct(x){b(x);const v=w(x,"|");return b(x),v}function je(x,v){let k=null;switch(x.currentChar()){case"{":return v.braceNest>=1&&h(gA.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),k=g(v,2,"{"),b(x),v.braceNest++,k;case"}":return v.braceNest>0&&v.currentType===2&&h(gA.EMPTY_PLACEHOLDER,i(),0),x.next(),k=g(v,3,"}"),v.braceNest--,v.braceNest>0&&b(x),v.inLinked&&v.braceNest===0&&(v.inLinked=!1),k;case"@":return v.braceNest>0&&h(gA.UNTERMINATED_CLOSING_BRACE,i(),0),k=ke(x,v)||m(v),v.braceNest=0,k;default:let oA=!0,IA=!0,ft=!0;if(z(x))return v.braceNest>0&&h(gA.UNTERMINATED_CLOSING_BRACE,i(),0),k=g(v,1,ct(x)),v.braceNest=0,v.inLinked=!1,k;if(v.braceNest>0&&(v.currentType===5||v.currentType===6||v.currentType===7))return h(gA.UNTERMINATED_CLOSING_BRACE,i(),0),v.braceNest=0,ut(x,v);if(oA=M(x,v))return k=g(v,5,RA(x)),b(x),k;if(IA=E(x,v))return k=g(v,6,WA(x)),b(x),k;if(ft=N(x,v))return k=g(v,7,we(x)),b(x),k;if(!oA&&!IA&&!ft)return k=g(v,13,ee(x)),h(gA.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,k.value),b(x),k;break}return k}function ke(x,v){const{currentType:k}=v;let Z=null;const oA=x.currentChar();switch((k===8||k===9||k===12||k===10)&&(oA===st||oA===Kn)&&h(gA.INVALID_LINKED_FORMAT,i(),0),oA){case"@":return x.next(),Z=g(v,8,"@"),v.inLinked=!0,Z;case".":return b(x),x.next(),g(v,9,".");case":":return b(x),x.next(),g(v,10,":");default:return z(x)?(Z=g(v,1,ct(x)),v.braceNest=0,v.inLinked=!1,Z):T(x,v)||Y(x,v)?(b(x),ke(x,v)):H(x,v)?(b(x),g(v,12,ye(x))):V(x,v)?(b(x),oA==="{"?je(x,v)||Z:g(v,11,lt(x))):(k===8&&h(gA.INVALID_LINKED_FORMAT,i(),0),v.braceNest=0,v.inLinked=!1,ut(x,v))}}function ut(x,v){let k={type:14};if(v.braceNest>0)return je(x,v)||m(v);if(v.inLinked)return ke(x,v)||m(v);switch(x.currentChar()){case"{":return je(x,v)||m(v);case"}":return h(gA.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),g(v,3,"}");case"@":return ke(x,v)||m(v);default:if(z(x))return k=g(v,1,ct(x)),v.braceNest=0,v.inLinked=!1,k;const{isModulo:oA,hasSpace:IA}=lA(x);if(oA)return IA?g(v,0,re(x)):g(v,4,vA(x));if(uA(x))return g(v,0,re(x));break}return k}function Tt(){const{currentType:x,offset:v,startLoc:k,endLoc:Z}=c;return c.lastType=x,c.lastOffset=v,c.lastStartLoc=k,c.lastEndLoc=Z,c.offset=r(),c.startLoc=i(),n.currentChar()===Cr?g(c,14):ut(n,c)}return{nextToken:Tt,currentOffset:r,currentPosition:i,context:u}}const AS="parser",eS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function tS(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 nS(t={}){const A=t.location!==!1,{onError:e}=t;function n(F,I,M,E,...N){const T=F.currentPosition();if(T.offset+=E,T.column+=E,e){const H=A?Qu(M,T):null,Y=Pi(I,H,{domain:AS,args:N});e(Y)}}function r(F,I,M){const E={type:F};return A&&(E.start=I,E.end=I,E.loc={start:M,end:M}),E}function i(F,I,M,E){E&&(F.type=E),A&&(F.end=I,F.loc&&(F.loc.end=M))}function s(F,I){const M=F.context(),E=r(3,M.offset,M.startLoc);return E.value=I,i(E,F.currentOffset(),F.currentPosition()),E}function a(F,I){const M=F.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(5,E,N);return T.index=parseInt(I,10),F.nextToken(),i(T,F.currentOffset(),F.currentPosition()),T}function c(F,I){const M=F.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(4,E,N);return T.key=I,F.nextToken(),i(T,F.currentOffset(),F.currentPosition()),T}function u(F,I){const M=F.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(9,E,N);return T.value=I.replace(eS,tS),F.nextToken(),i(T,F.currentOffset(),F.currentPosition()),T}function f(F){const I=F.nextToken(),M=F.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(8,E,N);return I.type!==12?(n(F,gA.UNEXPECTED_EMPTY_LINKED_MODIFIER,M.lastStartLoc,0),T.value="",i(T,E,N),{nextConsumeToken:I,node:T}):(I.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,Fn(I)),T.value=I.value||"",i(T,F.currentOffset(),F.currentPosition()),{node:T})}function h(F,I){const M=F.context(),E=r(7,M.offset,M.startLoc);return E.value=I,i(E,F.currentOffset(),F.currentPosition()),E}function g(F){const I=F.context(),M=r(6,I.offset,I.startLoc);let E=F.nextToken();if(E.type===9){const N=f(F);M.modifier=N.node,E=N.nextConsumeToken||F.nextToken()}switch(E.type!==10&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),E=F.nextToken(),E.type===2&&(E=F.nextToken()),E.type){case 11:E.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=h(F,E.value||"");break;case 5:E.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=c(F,E.value||"");break;case 6:E.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=a(F,E.value||"");break;case 7:E.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=u(F,E.value||"");break;default:n(F,gA.UNEXPECTED_EMPTY_LINKED_KEY,I.lastStartLoc,0);const N=F.context(),T=r(7,N.offset,N.startLoc);return T.value="",i(T,N.offset,N.startLoc),M.key=T,i(M,N.offset,N.startLoc),{nextConsumeToken:E,node:M}}return i(M,F.currentOffset(),F.currentPosition()),{node:M}}function m(F){const I=F.context(),M=I.currentType===1?F.currentOffset():I.offset,E=I.currentType===1?I.endLoc:I.startLoc,N=r(2,M,E);N.items=[];let T=null;do{const V=T||F.nextToken();switch(T=null,V.type){case 0:V.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(V)),N.items.push(s(F,V.value||""));break;case 6:V.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(V)),N.items.push(a(F,V.value||""));break;case 5:V.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(V)),N.items.push(c(F,V.value||""));break;case 7:V.value==null&&n(F,gA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(V)),N.items.push(u(F,V.value||""));break;case 8:const z=g(F);N.items.push(z.node),T=z.nextConsumeToken||null;break}}while(I.currentType!==14&&I.currentType!==1);const H=I.currentType===1?I.lastOffset:F.currentOffset(),Y=I.currentType===1?I.lastEndLoc:F.currentPosition();return i(N,H,Y),N}function w(F,I,M,E){const N=F.context();let T=E.items.length===0;const H=r(1,I,M);H.cases=[],H.cases.push(E);do{const Y=m(F);T||(T=Y.items.length===0),H.cases.push(Y)}while(N.currentType!==14);return T&&n(F,gA.MUST_HAVE_MESSAGES_IN_PLURAL,M,0),i(H,F.currentOffset(),F.currentPosition()),H}function U(F){const I=F.context(),{offset:M,startLoc:E}=I,N=m(F);return I.currentType===14?N:w(F,M,E,N)}function b(F){const I=j1(F,BB({},t)),M=I.context(),E=r(0,M.offset,M.startLoc);return A&&E.loc&&(E.loc.source=F),E.body=U(I),t.onCacheKey&&(E.cacheKey=t.onCacheKey(F)),M.currentType!==14&&n(I,gA.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,F[M.offset]||""),i(E,I.currentOffset(),I.currentPosition()),E}return{parse:b}}function Fn(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 rS(t,A={}){const e={ast:t,helpers:new Set};return{context:()=>e,helper:i=>(e.helpers.add(i),i)}}function yB(t,A){for(let e=0;e<t.length;e++)Fu(t[e],A)}function Fu(t,A){switch(t.type){case 1:yB(t.cases,A),A.helper("plural");break;case 2:yB(t.items,A);break;case 6:Fu(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 iS(t,A={}){const e=rS(t);e.helper("normalize"),t.body&&Fu(t.body,e);const n=e.context();t.helpers=Array.from(n.helpers)}function sS(t){const A=t.body;return A.type===2?EB(A):A.cases.forEach(e=>EB(e)),t}function EB(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=wB(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 oS="minifier";function Vi(t){switch(t.t=t.type,t.type){case 0:const A=t;Vi(A.body),A.b=A.body,delete A.body;break;case 1:const e=t,n=e.cases;for(let f=0;f<n.length;f++)Vi(n[f]);e.c=n,delete e.cases;break;case 2:const r=t,i=r.items;for(let f=0;f<i.length;f++)Vi(i[f]);r.i=i,delete r.items,r.static&&(r.s=r.static,delete r.static);break;case 3:case 9:case 8:case 7:const s=t;s.value&&(s.v=s.value,delete s.value);break;case 6:const a=t;Vi(a.key),a.k=a.key,delete a.key,a.modifier&&(Vi(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const c=t;c.i=c.index,delete c.index;break;case 4:const u=t;u.k=u.key,delete u.key;break;default:throw Pi(gA.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:oS,args:[t.type]})}delete t.type}const aS="parser";function lS(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,F){a.code+=b}function f(b,F=!0){const I=F?r:"";u(i?I+" ".repeat(b):I)}function h(b=!0){const F=++a.indentLevel;b&&f(F)}function g(b=!0){const F=--a.indentLevel;b&&f(F)}function m(){f(a.indentLevel)}return{context:c,push:u,indent:h,deindent:g,newline:m,helper:b=>`_${b}`,needIndent:()=>a.needIndent}}function cS(t,A){const{helper:e}=t;t.push(`${e("linked")}(`),Gi(t,A.key),A.modifier?(t.push(", "),Gi(t,A.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function uS(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&&(Gi(t,A.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function fS(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&&(Gi(t,A.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function dS(t,A){A.body?Gi(t,A.body):t.push("null")}function Gi(t,A){const{helper:e}=t;switch(A.type){case 0:dS(t,A);break;case 1:fS(t,A);break;case 2:uS(t,A);break;case 6:cS(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 Pi(gA.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:aS,args:[A.type]})}}const hS=(t,A={})=>{const e=mB(A.mode)?A.mode:"normal",n=mB(A.filename)?A.filename:"message.intl",r=!!A.sourceMap,i=A.breakLineCode!=null?A.breakLineCode:e==="arrow"?";":`
|
|
122
|
+
*/function k1(t,A,e){return{line:t,column:A,offset:e}}function Qu(t,A,e){const n={start:t,end:A};return e!=null&&(n.source=e),n}const R1=/\{([0-9a-zA-Z]+)\}/g;function K1(t,...A){return A.length===1&&P1(A[0])&&(A=A[0]),(!A||!A.hasOwnProperty)&&(A={}),t.replace(R1,(e,n)=>A.hasOwnProperty(n)?A[n]:"")}const BB=Object.assign,mB=t=>typeof t=="string",P1=t=>t!==null&&typeof t=="object";function wB(t,A=""){return t.reduce((e,n,r)=>r===0?e+n:e+A+n,"")}const BA={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},V1={[BA.EXPECTED_TOKEN]:"Expected token: '{0}'",[BA.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[BA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[BA.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[BA.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[BA.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[BA.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[BA.EMPTY_PLACEHOLDER]:"Empty placeholder",[BA.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[BA.INVALID_LINKED_FORMAT]:"Invalid linked format",[BA.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[BA.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[BA.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[BA.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[BA.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[BA.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Pi(t,A,e={}){const{domain:n,messages:r,args:i}=e,s=K1((r||V1)[t]||"",...i||[]),a=new SyntaxError(String(s));return a.code=t,A&&(a.location=A),a.domain=n,a}function G1(t){throw t}const W1=/<\/?[\w\s="/.':;#-\/]+>/,$1=t=>W1.test(t),Kn=" ",J1="\r",st=`
|
|
123
|
+
`,X1=String.fromCharCode(8232),Y1=String.fromCharCode(8233);function z1(t){const A=t;let e=0,n=1,r=1,i=0;const s=H=>A[H]===J1&&A[H+1]===st,a=H=>A[H]===st,c=H=>A[H]===Y1,u=H=>A[H]===X1,f=H=>s(H)||a(H)||c(H)||u(H),h=()=>e,g=()=>n,m=()=>r,w=()=>i,U=H=>s(H)||c(H)||u(H)?st:A[H],b=()=>U(e),Q=()=>U(e+i);function I(){return i=0,f(e)&&(n++,r=0),s(e)&&e++,e++,r++,A[e]}function M(){return s(e+i)&&i++,i++,A[e+i]}function E(){e=0,n=1,r=1,i=0}function N(H=0){i=H}function T(){const H=e+i;for(;H!==e;)I();i=0}return{index:h,line:g,column:m,peekOffset:w,charAt:U,currentChar:b,currentPeek:Q,next:I,peek:M,reset:E,resetPeek:N,skipToPeek:T}}const Cr=void 0,q1=".",CB="'",Z1="tokenizer";function j1(t,A={}){const e=A.location!==!1,n=z1(t),r=()=>n.index(),i=()=>k1(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 h(x,v,k,...q){const lA=u();if(v.column+=k,v.offset+=k,f){const SA=e?Qu(lA.startLoc,v):null,ft=Pi(x,SA,{domain:Z1,args:q});f(ft)}}function g(x,v,k){x.endLoc=i(),x.currentType=v;const q={type:v};return e&&(q.loc=Qu(x.startLoc,x.endLoc)),k!=null&&(q.value=k),q}const m=x=>g(x,14);function w(x,v){return x.currentChar()===v?(x.next(),v):(h(BA.EXPECTED_TOKEN,i(),0,v),"")}function U(x){let v="";for(;x.currentPeek()===Kn||x.currentPeek()===st;)v+=x.currentPeek(),x.peek();return v}function b(x){const v=U(x);return x.skipToPeek(),v}function Q(x){if(x===Cr)return!1;const v=x.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v===95}function I(x){if(x===Cr)return!1;const v=x.charCodeAt(0);return v>=48&&v<=57}function M(x,v){const{currentType:k}=v;if(k!==2)return!1;U(x);const q=Q(x.currentPeek());return x.resetPeek(),q}function E(x,v){const{currentType:k}=v;if(k!==2)return!1;U(x);const q=x.currentPeek()==="-"?x.peek():x.currentPeek(),lA=I(q);return x.resetPeek(),lA}function N(x,v){const{currentType:k}=v;if(k!==2)return!1;U(x);const q=x.currentPeek()===CB;return x.resetPeek(),q}function T(x,v){const{currentType:k}=v;if(k!==8)return!1;U(x);const q=x.currentPeek()===".";return x.resetPeek(),q}function H(x,v){const{currentType:k}=v;if(k!==9)return!1;U(x);const q=Q(x.currentPeek());return x.resetPeek(),q}function Y(x,v){const{currentType:k}=v;if(!(k===8||k===12))return!1;U(x);const q=x.currentPeek()===":";return x.resetPeek(),q}function P(x,v){const{currentType:k}=v;if(k!==10)return!1;const q=()=>{const SA=x.currentPeek();return SA==="{"?Q(x.peek()):SA==="@"||SA==="%"||SA==="|"||SA===":"||SA==="."||SA===Kn||!SA?!1:SA===st?(x.peek(),q()):Q(SA)},lA=q();return x.resetPeek(),lA}function oA(x){U(x);const v=x.currentPeek()==="|";return x.resetPeek(),v}function UA(x){const v=U(x),k=x.currentPeek()==="%"&&x.peek()==="{";return x.resetPeek(),{isModulo:k,hasSpace:v.length>0}}function hA(x,v=!0){const k=(lA=!1,SA="",ft=!1)=>{const Re=x.currentPeek();return Re==="{"?SA==="%"?!1:lA:Re==="@"||!Re?SA==="%"?!0:lA:Re==="%"?(x.peek(),k(lA,"%",!0)):Re==="|"?SA==="%"||ft?!0:!(SA===Kn||SA===st):Re===Kn?(x.peek(),k(!0,Kn,ft)):Re===st?(x.peek(),k(!0,st,ft)):!0},q=k();return v&&x.resetPeek(),q}function cA(x,v){const k=x.currentChar();return k===Cr?Cr:v(k)?(x.next(),k):null}function IA(x){return cA(x,k=>{const q=k.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36})}function ie(x){return cA(x,k=>{const q=k.charCodeAt(0);return q>=48&&q<=57})}function KA(x){return cA(x,k=>{const q=k.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102})}function nA(x){let v="",k="";for(;v=ie(x);)k+=v;return k}function sA(x){b(x);const v=x.currentChar();return v!=="%"&&h(BA.EXPECTED_TOKEN,i(),0,v),x.next(),"%"}function jA(x){let v="";for(;;){const k=x.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(hA(x))v+=k,x.next();else break;else if(k===Kn||k===st)if(hA(x))v+=k,x.next();else{if(oA(x))break;v+=k,x.next()}else v+=k,x.next()}return v}function LA(x){b(x);let v="",k="";for(;v=IA(x);)k+=v;return x.currentChar()===Cr&&h(BA.UNTERMINATED_CLOSING_BRACE,i(),0),k}function DA(x){b(x);let v="";return x.currentChar()==="-"?(x.next(),v+=`-${nA(x)}`):v+=nA(x),x.currentChar()===Cr&&h(BA.UNTERMINATED_CLOSING_BRACE,i(),0),v}function kA(x){b(x),w(x,"'");let v="",k="";const q=SA=>SA!==CB&&SA!==st;for(;v=cA(x,q);)v==="\\"?k+=WA(x):k+=v;const lA=x.currentChar();return lA===st||lA===Cr?(h(BA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),lA===st&&(x.next(),w(x,"'")),k):(w(x,"'"),k)}function WA(x){const v=x.currentChar();switch(v){case"\\":case"'":return x.next(),`\\${v}`;case"u":return te(x,v,4);case"U":return te(x,v,6);default:return h(BA.UNKNOWN_ESCAPE_SEQUENCE,i(),0,v),""}}function te(x,v,k){w(x,v);let q="";for(let lA=0;lA<k;lA++){const SA=KA(x);if(!SA){h(BA.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${v}${q}${x.currentChar()}`);break}q+=SA}return`\\${v}${q}`}function qA(x){b(x);let v="",k="";const q=lA=>lA!=="{"&&lA!=="}"&&lA!==Kn&&lA!==st;for(;v=cA(x,q);)k+=v;return k}function de(x){let v="",k="";for(;v=IA(x);)k+=v;return k}function lt(x){const v=(k=!1,q)=>{const lA=x.currentChar();return lA==="{"||lA==="%"||lA==="@"||lA==="|"||lA==="("||lA===")"||!lA||lA===Kn?q:lA===st||lA===q1?(q+=lA,x.next(),v(k,q)):(q+=lA,x.next(),v(!0,q))};return v(!1,"")}function ct(x){b(x);const v=w(x,"|");return b(x),v}function je(x,v){let k=null;switch(x.currentChar()){case"{":return v.braceNest>=1&&h(BA.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),x.next(),k=g(v,2,"{"),b(x),v.braceNest++,k;case"}":return v.braceNest>0&&v.currentType===2&&h(BA.EMPTY_PLACEHOLDER,i(),0),x.next(),k=g(v,3,"}"),v.braceNest--,v.braceNest>0&&b(x),v.inLinked&&v.braceNest===0&&(v.inLinked=!1),k;case"@":return v.braceNest>0&&h(BA.UNTERMINATED_CLOSING_BRACE,i(),0),k=ke(x,v)||m(v),v.braceNest=0,k;default:let lA=!0,SA=!0,ft=!0;if(oA(x))return v.braceNest>0&&h(BA.UNTERMINATED_CLOSING_BRACE,i(),0),k=g(v,1,ct(x)),v.braceNest=0,v.inLinked=!1,k;if(v.braceNest>0&&(v.currentType===5||v.currentType===6||v.currentType===7))return h(BA.UNTERMINATED_CLOSING_BRACE,i(),0),v.braceNest=0,ut(x,v);if(lA=M(x,v))return k=g(v,5,LA(x)),b(x),k;if(SA=E(x,v))return k=g(v,6,DA(x)),b(x),k;if(ft=N(x,v))return k=g(v,7,kA(x)),b(x),k;if(!lA&&!SA&&!ft)return k=g(v,13,qA(x)),h(BA.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,k.value),b(x),k;break}return k}function ke(x,v){const{currentType:k}=v;let q=null;const lA=x.currentChar();switch((k===8||k===9||k===12||k===10)&&(lA===st||lA===Kn)&&h(BA.INVALID_LINKED_FORMAT,i(),0),lA){case"@":return x.next(),q=g(v,8,"@"),v.inLinked=!0,q;case".":return b(x),x.next(),g(v,9,".");case":":return b(x),x.next(),g(v,10,":");default:return oA(x)?(q=g(v,1,ct(x)),v.braceNest=0,v.inLinked=!1,q):T(x,v)||Y(x,v)?(b(x),ke(x,v)):H(x,v)?(b(x),g(v,12,de(x))):P(x,v)?(b(x),lA==="{"?je(x,v)||q:g(v,11,lt(x))):(k===8&&h(BA.INVALID_LINKED_FORMAT,i(),0),v.braceNest=0,v.inLinked=!1,ut(x,v))}}function ut(x,v){let k={type:14};if(v.braceNest>0)return je(x,v)||m(v);if(v.inLinked)return ke(x,v)||m(v);switch(x.currentChar()){case"{":return je(x,v)||m(v);case"}":return h(BA.UNBALANCED_CLOSING_BRACE,i(),0),x.next(),g(v,3,"}");case"@":return ke(x,v)||m(v);default:if(oA(x))return k=g(v,1,ct(x)),v.braceNest=0,v.inLinked=!1,k;const{isModulo:lA,hasSpace:SA}=UA(x);if(lA)return SA?g(v,0,jA(x)):g(v,4,sA(x));if(hA(x))return g(v,0,jA(x));break}return k}function Tt(){const{currentType:x,offset:v,startLoc:k,endLoc:q}=c;return c.lastType=x,c.lastOffset=v,c.lastStartLoc=k,c.lastEndLoc=q,c.offset=r(),c.startLoc=i(),n.currentChar()===Cr?g(c,14):ut(n,c)}return{nextToken:Tt,currentOffset:r,currentPosition:i,context:u}}const AS="parser",eS=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function tS(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 nS(t={}){const A=t.location!==!1,{onError:e}=t;function n(Q,I,M,E,...N){const T=Q.currentPosition();if(T.offset+=E,T.column+=E,e){const H=A?Qu(M,T):null,Y=Pi(I,H,{domain:AS,args:N});e(Y)}}function r(Q,I,M){const E={type:Q};return A&&(E.start=I,E.end=I,E.loc={start:M,end:M}),E}function i(Q,I,M,E){E&&(Q.type=E),A&&(Q.end=I,Q.loc&&(Q.loc.end=M))}function s(Q,I){const M=Q.context(),E=r(3,M.offset,M.startLoc);return E.value=I,i(E,Q.currentOffset(),Q.currentPosition()),E}function a(Q,I){const M=Q.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(5,E,N);return T.index=parseInt(I,10),Q.nextToken(),i(T,Q.currentOffset(),Q.currentPosition()),T}function c(Q,I){const M=Q.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(4,E,N);return T.key=I,Q.nextToken(),i(T,Q.currentOffset(),Q.currentPosition()),T}function u(Q,I){const M=Q.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(9,E,N);return T.value=I.replace(eS,tS),Q.nextToken(),i(T,Q.currentOffset(),Q.currentPosition()),T}function f(Q){const I=Q.nextToken(),M=Q.context(),{lastOffset:E,lastStartLoc:N}=M,T=r(8,E,N);return I.type!==12?(n(Q,BA.UNEXPECTED_EMPTY_LINKED_MODIFIER,M.lastStartLoc,0),T.value="",i(T,E,N),{nextConsumeToken:I,node:T}):(I.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,Fn(I)),T.value=I.value||"",i(T,Q.currentOffset(),Q.currentPosition()),{node:T})}function h(Q,I){const M=Q.context(),E=r(7,M.offset,M.startLoc);return E.value=I,i(E,Q.currentOffset(),Q.currentPosition()),E}function g(Q){const I=Q.context(),M=r(6,I.offset,I.startLoc);let E=Q.nextToken();if(E.type===9){const N=f(Q);M.modifier=N.node,E=N.nextConsumeToken||Q.nextToken()}switch(E.type!==10&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),E=Q.nextToken(),E.type===2&&(E=Q.nextToken()),E.type){case 11:E.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=h(Q,E.value||"");break;case 5:E.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=c(Q,E.value||"");break;case 6:E.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=a(Q,E.value||"");break;case 7:E.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(E)),M.key=u(Q,E.value||"");break;default:n(Q,BA.UNEXPECTED_EMPTY_LINKED_KEY,I.lastStartLoc,0);const N=Q.context(),T=r(7,N.offset,N.startLoc);return T.value="",i(T,N.offset,N.startLoc),M.key=T,i(M,N.offset,N.startLoc),{nextConsumeToken:E,node:M}}return i(M,Q.currentOffset(),Q.currentPosition()),{node:M}}function m(Q){const I=Q.context(),M=I.currentType===1?Q.currentOffset():I.offset,E=I.currentType===1?I.endLoc:I.startLoc,N=r(2,M,E);N.items=[];let T=null;do{const P=T||Q.nextToken();switch(T=null,P.type){case 0:P.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(P)),N.items.push(s(Q,P.value||""));break;case 6:P.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(P)),N.items.push(a(Q,P.value||""));break;case 5:P.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(P)),N.items.push(c(Q,P.value||""));break;case 7:P.value==null&&n(Q,BA.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fn(P)),N.items.push(u(Q,P.value||""));break;case 8:const oA=g(Q);N.items.push(oA.node),T=oA.nextConsumeToken||null;break}}while(I.currentType!==14&&I.currentType!==1);const H=I.currentType===1?I.lastOffset:Q.currentOffset(),Y=I.currentType===1?I.lastEndLoc:Q.currentPosition();return i(N,H,Y),N}function w(Q,I,M,E){const N=Q.context();let T=E.items.length===0;const H=r(1,I,M);H.cases=[],H.cases.push(E);do{const Y=m(Q);T||(T=Y.items.length===0),H.cases.push(Y)}while(N.currentType!==14);return T&&n(Q,BA.MUST_HAVE_MESSAGES_IN_PLURAL,M,0),i(H,Q.currentOffset(),Q.currentPosition()),H}function U(Q){const I=Q.context(),{offset:M,startLoc:E}=I,N=m(Q);return I.currentType===14?N:w(Q,M,E,N)}function b(Q){const I=j1(Q,BB({},t)),M=I.context(),E=r(0,M.offset,M.startLoc);return A&&E.loc&&(E.loc.source=Q),E.body=U(I),t.onCacheKey&&(E.cacheKey=t.onCacheKey(Q)),M.currentType!==14&&n(I,BA.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,Q[M.offset]||""),i(E,I.currentOffset(),I.currentPosition()),E}return{parse:b}}function Fn(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 rS(t,A={}){const e={ast:t,helpers:new Set};return{context:()=>e,helper:i=>(e.helpers.add(i),i)}}function yB(t,A){for(let e=0;e<t.length;e++)Fu(t[e],A)}function Fu(t,A){switch(t.type){case 1:yB(t.cases,A),A.helper("plural");break;case 2:yB(t.items,A);break;case 6:Fu(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 iS(t,A={}){const e=rS(t);e.helper("normalize"),t.body&&Fu(t.body,e);const n=e.context();t.helpers=Array.from(n.helpers)}function sS(t){const A=t.body;return A.type===2?EB(A):A.cases.forEach(e=>EB(e)),t}function EB(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=wB(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 oS="minifier";function Vi(t){switch(t.t=t.type,t.type){case 0:const A=t;Vi(A.body),A.b=A.body,delete A.body;break;case 1:const e=t,n=e.cases;for(let f=0;f<n.length;f++)Vi(n[f]);e.c=n,delete e.cases;break;case 2:const r=t,i=r.items;for(let f=0;f<i.length;f++)Vi(i[f]);r.i=i,delete r.items,r.static&&(r.s=r.static,delete r.static);break;case 3:case 9:case 8:case 7:const s=t;s.value&&(s.v=s.value,delete s.value);break;case 6:const a=t;Vi(a.key),a.k=a.key,delete a.key,a.modifier&&(Vi(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const c=t;c.i=c.index,delete c.index;break;case 4:const u=t;u.k=u.key,delete u.key;break;default:throw Pi(BA.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:oS,args:[t.type]})}delete t.type}const aS="parser";function lS(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,Q){a.code+=b}function f(b,Q=!0){const I=Q?r:"";u(i?I+" ".repeat(b):I)}function h(b=!0){const Q=++a.indentLevel;b&&f(Q)}function g(b=!0){const Q=--a.indentLevel;b&&f(Q)}function m(){f(a.indentLevel)}return{context:c,push:u,indent:h,deindent:g,newline:m,helper:b=>`_${b}`,needIndent:()=>a.needIndent}}function cS(t,A){const{helper:e}=t;t.push(`${e("linked")}(`),Gi(t,A.key),A.modifier?(t.push(", "),Gi(t,A.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function uS(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&&(Gi(t,A.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function fS(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&&(Gi(t,A.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function dS(t,A){A.body?Gi(t,A.body):t.push("null")}function Gi(t,A){const{helper:e}=t;switch(A.type){case 0:dS(t,A);break;case 1:fS(t,A);break;case 2:uS(t,A);break;case 6:cS(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 Pi(BA.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:aS,args:[A.type]})}}const hS=(t,A={})=>{const e=mB(A.mode)?A.mode:"normal",n=mB(A.filename)?A.filename:"message.intl",r=!!A.sourceMap,i=A.breakLineCode!=null?A.breakLineCode:e==="arrow"?";":`
|
|
124
124
|
`,s=A.needIndent?A.needIndent:e!=="arrow",a=t.helpers||[],c=lS(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 { ${wB(a.map(h=>`${h}: _${h}`),", ")} } = ctx`),c.newline()),c.push("return "),Gi(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=BB({},A),n=!!e.jit,r=!!e.minify,i=e.optimize==null?!0:e.optimize,a=nS(e).parse(t);return n?(i&&sS(a),r&&Vi(a),{ast:a,code:""}):(iS(a,e),hS(a,e))}/*!
|
|
125
125
|
* core-base v9.8.0
|
|
126
126
|
* (c) 2023 kazuya kawaguchi
|
|
127
127
|
* Released under the MIT License.
|
|
128
|
-
*/function gS(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__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 BS=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mS(t){return BS.test(t)}function wS(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 CS(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 yS(t){const A=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:mS(A)?wS(A):"*"+A}function ES(t){const A=[];let e=-1,n=0,r=0,i,s,a,c,u,f,h;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=yS(s),s===!1))return!1;g[1]()}};function m(){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==="\\"&&m())){if(c=CS(i),h=yr[n],u=h[c]||h.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 QB=new Map;function QS(t,A){return kA(t)?t[A]:null}function FS(t,A){if(!kA(t))return null;let e=QB.get(A);if(e||(e=ES(A),e&&QB.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||jA(r))return null;r=s,i++}return r}const US=t=>t,bS=t=>"",vS="text",IS=t=>t.length===0?"":H1(t),SS=L1;function FB(t,A){return t=Math.abs(t),A===2?t?t>1?1:0:1:t?Math.min(t,2):0}function TS(t){const A=Ye(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ye(t.named.count)||Ye(t.named.n))?Ye(t.named.count)?t.named.count:Ye(t.named.n)?t.named.n:A:A}function _S(t,A){A.count||(A.count=t),A.n||(A.n=t)}function xS(t={}){const A=t.locale,e=TS(t),n=kA(t.pluralRules)&&nA(A)&&jA(t.pluralRules[A])?t.pluralRules[A]:FB,r=kA(t.pluralRules)&&nA(A)&&jA(t.pluralRules[A])?FB:void 0,i=F=>F[n(e,F.length,r)],s=t.list||[],a=F=>s[F],c=t.named||{};Ye(t.pluralIndex)&&_S(e,c);const u=F=>c[F];function f(F){const I=jA(t.messages)?t.messages(F):kA(t.messages)?t.messages[F]:!1;return I||(t.parent?t.parent.message(F):bS)}const h=F=>t.modifiers?t.modifiers[F]:US,g=TA(t.processor)&&jA(t.processor.normalize)?t.processor.normalize:IS,m=TA(t.processor)&&jA(t.processor.interpolate)?t.processor.interpolate:SS,w=TA(t.processor)&&nA(t.processor.type)?t.processor.type:vS,b={list:a,named:u,plural:i,linked:(F,...I)=>{const[M,E]=I;let N="text",T="";I.length===1?kA(M)?(T=M.modifier||T,N=M.type||N):nA(M)&&(T=M||T):I.length===2&&(nA(M)&&(T=M||T),nA(E)&&(N=E||N));const H=f(F)(b),Y=N==="vnode"&&Be(H)&&T?H[0]:H;return T?h(T)(Y,N):Y},message:f,type:w,interpolate:m,normalize:g,values:ze({},s,c)};return b}let Gs=null;function OS(t){Gs=t}function LS(t,A,e){Gs&&Gs.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:A,meta:e})}const HS=MS("function:translate");function MS(t){return A=>Gs&&Gs.emit(t,A)}const ot={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},NS={[ot.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ot.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ot.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ot.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ot.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ot.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ot.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 ri(t,...A){return yu(NS[t],...A)}const UB=gA.__EXTEND_POINT__,ii=Eu(UB),_e={INVALID_ARGUMENT:UB,INVALID_DATE_ARGUMENT:ii(),INVALID_ISO_DATE_ARGUMENT:ii(),NOT_SUPPORT_NON_STRING_MESSAGE:ii(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ii(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ii(),NOT_SUPPORT_LOCALE_TYPE:ii(),__EXTEND_POINT__:ii()};function Un(t){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:DS}:void 0)}const DS={[_e.INVALID_ARGUMENT]:"Invalid arguments",[_e.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[_e.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[_e.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[_e.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Uu(t,A){return A.locale!=null?bB(A.locale):bB(t.locale)}let bu;function bB(t){if(nA(t))return t;if(jA(t)){if(t.resolvedOnce&&bu!=null)return bu;if(t.constructor.name==="Function"){const A=t();if(O1(A))throw Un(_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return bu=A}else throw Un(_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Un(_e.NOT_SUPPORT_LOCALE_TYPE)}function kS(t,A,e){return[...new Set([e,...Be(A)?A:kA(A)?Object.keys(A):nA(A)?[A]:[e]])]}function vB(t,A,e){const n=nA(e)?e:Ws,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[e];for(;Be(s);)s=IB(i,s,A);const a=Be(A)||!TA(A)?A:A.default?A.default:null;s=nA(a)?[a]:a,Be(s)&&IB(i,s,!1),r.__localeChainCache.set(n,i)}return i}function IB(t,A,e){let n=!0;for(let r=0;r<A.length&&YA(n);r++){const i=A[r];nA(i)&&(n=RS(t,A[r],e))}return n}function RS(t,A,e){let n;const r=A.split("-");do{const i=r.join("-");n=KS(t,i,e),r.splice(-1,1)}while(r.length&&n===!0);return n}function KS(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)||TA(e))&&e[r]&&(n=e[r])}return n}const PS="9.8.0",Ca=-1,Ws="en-US",ya="",SB=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function VS(){return{upper:(t,A)=>A==="text"&&nA(t)?t.toUpperCase():A==="vnode"&&kA(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,A)=>A==="text"&&nA(t)?t.toLowerCase():A==="vnode"&&kA(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,A)=>A==="text"&&nA(t)?SB(t):A==="vnode"&&kA(t)&&"__v_isVNode"in t?SB(t.children):t}}let TB;function _B(t){TB=t}let xB;function GS(t){xB=t}let OB;function WS(t){OB=t}let LB=null;const $S=t=>{LB=t},JS=()=>LB;let HB=null;const MB=t=>{HB=t},XS=()=>HB;let NB=0;function YS(t={}){const A=jA(t.onWarn)?t.onWarn:wr,e=nA(t.version)?t.version:PS,n=nA(t.locale)||jA(t.locale)?t.locale:Ws,r=jA(n)?Ws:n,i=Be(t.fallbackLocale)||TA(t.fallbackLocale)||nA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=TA(t.messages)?t.messages:{[r]:{}},a=TA(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},c=TA(t.numberFormats)?t.numberFormats:{[r]:{}},u=ze({},t.modifiers||{},VS()),f=t.pluralRules||{},h=jA(t.missing)?t.missing:null,g=YA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=YA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,U=!!t.unresolving,b=jA(t.postTranslation)?t.postTranslation:null,F=TA(t.processor)?t.processor:null,I=YA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,M=!!t.escapeParameter,E=jA(t.messageCompiler)?t.messageCompiler:TB;process.env.NODE_ENV!=="production"&&jA(t.messageCompiler)&&N1(ri(ot.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const N=jA(t.messageResolver)?t.messageResolver:xB||QS,T=jA(t.localeFallbacker)?t.localeFallbacker:OB||kS,H=kA(t.fallbackContext)?t.fallbackContext:void 0,Y=t,V=kA(Y.__datetimeFormatters)?Y.__datetimeFormatters:new Map,z=kA(Y.__numberFormatters)?Y.__numberFormatters:new Map,lA=kA(Y.__meta)?Y.__meta:{};NB++;const uA={version:e,cid:NB,locale:n,fallbackLocale:i,messages:s,modifiers:u,pluralRules:f,missing:h,missingWarn:g,fallbackWarn:m,fallbackFormat:w,unresolving:U,postTranslation:b,processor:F,warnHtmlMessage:I,escapeParameter:M,messageCompiler:E,messageResolver:N,localeFallbacker:T,fallbackContext:H,onWarn:A,__meta:lA};return uA.datetimeFormats=a,uA.numberFormats=c,uA.__datetimeFormatters=V,uA.__numberFormatters=z,process.env.NODE_ENV!=="production"&&(uA.__v_emitter=Y.__v_emitter!=null?Y.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&LS(uA,e,lA),uA}function Ea(t,A){return t instanceof RegExp?t.test(A):t}function DB(t,A){return t instanceof RegExp?t.test(A):t}function vu(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 nA(a)?a:A}else return process.env.NODE_ENV!=="production"&&DB(n,A)&&s(ri(ot.NOT_FOUND_KEY,{key:A,locale:e})),A}function $s(t,A,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,A)}function Iu(t){return e=>zS(e,t)}function zS(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,kB(t,s)],[]))}else return kB(t,e)}function kB(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,Su(t,i)],[]);return t.normalize(n)}}function Su(t,A){const e=A.t||A.type;switch(e){case 3:const n=A;return n.v||n.value;case 9:const r=A;return r.v||r.value;case 4:const i=A;return t.interpolate(t.named(i.k||i.key));case 5:const s=A;return t.interpolate(t.list(s.i!=null?s.i:s.index));case 6:const a=A,c=a.m||a.modifier;return t.linked(Su(t,a.k||a.key),c?Su(t,c):void 0,t.type);case 7:const u=A;return u.v||u.value;case 8:const f=A;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${e}`)}}const qS="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function RB(t,A){A&&$1(t)&&wr(yu(qS,{source:t}))}const KB=t=>t;let Wi=Object.create(null);const si=t=>kA(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function PB(t,A={}){let e=!1;const n=A.onError||G1;return A.onError=r=>{e=!0,n(r)},{...pS(t,A),detectError:e}}const ZS=(t,A)=>{if(!nA(t))throw Un(_e.NOT_SUPPORT_NON_STRING_MESSAGE);{const e=YA(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&RB(t,e);const r=(A.onCacheKey||KB)(t),i=Wi[r];if(i)return i;const{code:s,detectError:a}=PB(t,A),c=new Function(`return ${s}`)();return a?c:Wi[r]=c}};function jS(t,A){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&nA(t)){const e=YA(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&RB(t,e);const r=(A.onCacheKey||KB)(t),i=Wi[r];if(i)return i;const{ast:s,detectError:a}=PB(t,{...A,location:process.env.NODE_ENV!=="production",jit:!0}),c=Iu(s);return a?c:Wi[r]=c}else{if(process.env.NODE_ENV!=="production"&&!si(t))return wr(`the message that is resolve with key '${A.key}' is not supported for jit compilation`),()=>t;const e=t.cacheKey;if(e){const n=Wi[e];return n||(Wi[e]=Iu(t))}else return Iu(t)}}const VB=()=>"",Pt=t=>jA(t);function GB(t,...A){const{fallbackFormat:e,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=Tu(...A),f=YA(u.missingWarn)?u.missingWarn:t.missingWarn,h=YA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=YA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,m=!!u.resolvedMessage,w=nA(u.default)||YA(u.default)?YA(u.default)?i?c:()=>c:u.default:e?i?c:()=>c:"",U=e||w!=="",b=Uu(t,u);g&&AT(u);let[F,I,M]=m?[c,b,a[b]||{}]:WB(t,c,b,s,h,f),E=F,N=c;if(!m&&!(nA(E)||si(E)||Pt(E))&&U&&(E=w,N=E),!m&&(!(nA(E)||si(E)||Pt(E))||!nA(I)))return r?Ca:c;if(process.env.NODE_ENV!=="production"&&nA(E)&&t.messageCompiler==null)return wr(`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 T=!1;const H=()=>{T=!0},Y=Pt(E)?E:$B(t,c,I,E,N,H);if(T)return E;const V=rT(t,I,M,u),z=xS(V),lA=eT(t,Y,z),uA=n?n(lA,c):lA;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const aA={timestamp:Date.now(),key:nA(c)?c:Pt(E)?E.key:"",locale:I||(Pt(E)?E.locale:""),format:nA(E)?E:Pt(E)?E.source:"",message:uA};aA.meta=ze({},t.__meta,JS()||{}),HS(aA)}return uA}function AT(t){Be(t.list)?t.list=t.list.map(A=>nA(A)?fB(A):A):kA(t.named)&&Object.keys(t.named).forEach(A=>{nA(t.named[A])&&(t.named[A]=fB(t.named[A]))})}function WB(t,A,e,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,e);let h={},g,m=null,w=e,U=null;const b="translate";for(let F=0;F<f.length;F++){if(g=U=f[F],process.env.NODE_ENV!=="production"&&e!==g&&Ea(r,A)&&a(ri(ot.FALLBACK_TO_TRANSLATE,{key:A,target:g})),process.env.NODE_ENV!=="production"&&e!==g){const T=t.__v_emitter;T&&T.emit("fallback",{type:b,key:A,from:w,to:U,groupId:`${b}:${A}`})}h=s[g]||{};let I=null,M,E;if(process.env.NODE_ENV!=="production"&&mr&&(I=window.performance.now(),M="intlify-message-resolve-start",E="intlify-message-resolve-end",It&&It(M)),(m=c(h,A))===null&&(m=h[A]),process.env.NODE_ENV!=="production"&&mr){const T=window.performance.now(),H=t.__v_emitter;H&&I&&m&&H.emit("message-resolve",{type:"message-resolve",key:A,message:m,time:T-I,groupId:`${b}:${A}`}),M&&E&&It&&ni&&(It(E),ni("intlify message resolve",M,E))}if(nA(m)||si(m)||Pt(m))break;const N=vu(t,A,g,i,b);N!==A&&(m=N),w=U}return[m,g,h]}function $B(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"&&mr&&(c=window.performance.now(),u="intlify-message-compilation-start",f="intlify-message-compilation-end",It&&It(u));const h=s(n,tT(t,e,r,n,a,i));if(process.env.NODE_ENV!=="production"&&mr){const g=window.performance.now(),m=t.__v_emitter;m&&c&&m.emit("message-compilation",{type:"message-compilation",message:n,time:g-c,groupId:`translate:${A}`}),u&&f&&It&&ni&&(It(f),ni("intlify message compilation",u,f))}return h.locale=e,h.key=A,h.source=n,h}function eT(t,A,e){let n=null,r,i;process.env.NODE_ENV!=="production"&&mr&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",It&&It(r));const s=A(e);if(process.env.NODE_ENV!=="production"&&mr){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&&It&&ni&&(It(i),ni("intlify message evaluation",r,i))}return s}function Tu(...t){const[A,e,n]=t,r={};if(!nA(A)&&!Ye(A)&&!Pt(A)&&!si(A))throw Un(_e.INVALID_ARGUMENT);const i=Ye(A)?String(A):(Pt(A),A);return Ye(e)?r.plural=e:nA(e)?r.default=e:TA(e)&&!ma(e)?r.named=e:Be(e)&&(r.list=e),Ye(n)?r.plural=n:nA(n)?r.default=n:TA(n)&&ze(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=nT(n),c=`Message compilation error: ${s.message}`,u=s.location&&a&&M1(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}
|
|
129
|
-
${u}`:c)}else throw s},onCacheKey:s=>S1(A,e,s)}}function nT(t){if(
|
|
128
|
+
*/function gS(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__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 BS=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mS(t){return BS.test(t)}function wS(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 CS(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 yS(t){const A=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:mS(A)?wS(A):"*"+A}function ES(t){const A=[];let e=-1,n=0,r=0,i,s,a,c,u,f,h;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=yS(s),s===!1))return!1;g[1]()}};function m(){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==="\\"&&m())){if(c=CS(i),h=yr[n],u=h[c]||h.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 QB=new Map;function QS(t,A){return PA(t)?t[A]:null}function FS(t,A){if(!PA(t))return null;let e=QB.get(A);if(e||(e=ES(A),e&&QB.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||re(r))return null;r=s,i++}return r}const US=t=>t,bS=t=>"",vS="text",IS=t=>t.length===0?"":H1(t),SS=L1;function FB(t,A){return t=Math.abs(t),A===2?t?t>1?1:0:1:t?Math.min(t,2):0}function TS(t){const A=Ye(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ye(t.named.count)||Ye(t.named.n))?Ye(t.named.count)?t.named.count:Ye(t.named.n)?t.named.n:A:A}function _S(t,A){A.count||(A.count=t),A.n||(A.n=t)}function xS(t={}){const A=t.locale,e=TS(t),n=PA(t.pluralRules)&&tA(A)&&re(t.pluralRules[A])?t.pluralRules[A]:FB,r=PA(t.pluralRules)&&tA(A)&&re(t.pluralRules[A])?FB:void 0,i=Q=>Q[n(e,Q.length,r)],s=t.list||[],a=Q=>s[Q],c=t.named||{};Ye(t.pluralIndex)&&_S(e,c);const u=Q=>c[Q];function f(Q){const I=re(t.messages)?t.messages(Q):PA(t.messages)?t.messages[Q]:!1;return I||(t.parent?t.parent.message(Q):bS)}const h=Q=>t.modifiers?t.modifiers[Q]:US,g=_A(t.processor)&&re(t.processor.normalize)?t.processor.normalize:IS,m=_A(t.processor)&&re(t.processor.interpolate)?t.processor.interpolate:SS,w=_A(t.processor)&&tA(t.processor.type)?t.processor.type:vS,b={list:a,named:u,plural:i,linked:(Q,...I)=>{const[M,E]=I;let N="text",T="";I.length===1?PA(M)?(T=M.modifier||T,N=M.type||N):tA(M)&&(T=M||T):I.length===2&&(tA(M)&&(T=M||T),tA(E)&&(N=E||N));const H=f(Q)(b),Y=N==="vnode"&&ye(H)&&T?H[0]:H;return T?h(T)(Y,N):Y},message:f,type:w,interpolate:m,normalize:g,values:ze({},s,c)};return b}let Gs=null;function OS(t){Gs=t}function LS(t,A,e){Gs&&Gs.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:A,meta:e})}const HS=MS("function:translate");function MS(t){return A=>Gs&&Gs.emit(t,A)}const ot={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},NS={[ot.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ot.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ot.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ot.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ot.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ot.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ot.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 ri(t,...A){return yu(NS[t],...A)}const UB=BA.__EXTEND_POINT__,ii=Eu(UB),_e={INVALID_ARGUMENT:UB,INVALID_DATE_ARGUMENT:ii(),INVALID_ISO_DATE_ARGUMENT:ii(),NOT_SUPPORT_NON_STRING_MESSAGE:ii(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ii(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ii(),NOT_SUPPORT_LOCALE_TYPE:ii(),__EXTEND_POINT__:ii()};function Un(t){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:DS}:void 0)}const DS={[_e.INVALID_ARGUMENT]:"Invalid arguments",[_e.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[_e.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[_e.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[_e.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Uu(t,A){return A.locale!=null?bB(A.locale):bB(t.locale)}let bu;function bB(t){if(tA(t))return t;if(re(t)){if(t.resolvedOnce&&bu!=null)return bu;if(t.constructor.name==="Function"){const A=t();if(O1(A))throw Un(_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return bu=A}else throw Un(_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Un(_e.NOT_SUPPORT_LOCALE_TYPE)}function kS(t,A,e){return[...new Set([e,...ye(A)?A:PA(A)?Object.keys(A):tA(A)?[A]:[e]])]}function vB(t,A,e){const n=tA(e)?e:Ws,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[e];for(;ye(s);)s=IB(i,s,A);const a=ye(A)||!_A(A)?A:A.default?A.default:null;s=tA(a)?[a]:a,ye(s)&&IB(i,s,!1),r.__localeChainCache.set(n,i)}return i}function IB(t,A,e){let n=!0;for(let r=0;r<A.length&&ZA(n);r++){const i=A[r];tA(i)&&(n=RS(t,A[r],e))}return n}function RS(t,A,e){let n;const r=A.split("-");do{const i=r.join("-");n=KS(t,i,e),r.splice(-1,1)}while(r.length&&n===!0);return n}function KS(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),(ye(e)||_A(e))&&e[r]&&(n=e[r])}return n}const PS="9.8.0",Ca=-1,Ws="en-US",ya="",SB=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function VS(){return{upper:(t,A)=>A==="text"&&tA(t)?t.toUpperCase():A==="vnode"&&PA(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,A)=>A==="text"&&tA(t)?t.toLowerCase():A==="vnode"&&PA(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,A)=>A==="text"&&tA(t)?SB(t):A==="vnode"&&PA(t)&&"__v_isVNode"in t?SB(t.children):t}}let TB;function _B(t){TB=t}let xB;function GS(t){xB=t}let OB;function WS(t){OB=t}let LB=null;const $S=t=>{LB=t},JS=()=>LB;let HB=null;const MB=t=>{HB=t},XS=()=>HB;let NB=0;function YS(t={}){const A=re(t.onWarn)?t.onWarn:wr,e=tA(t.version)?t.version:PS,n=tA(t.locale)||re(t.locale)?t.locale:Ws,r=re(n)?Ws:n,i=ye(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=ze({},t.modifiers||{},VS()),f=t.pluralRules||{},h=re(t.missing)?t.missing:null,g=ZA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=ZA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=!!t.fallbackFormat,U=!!t.unresolving,b=re(t.postTranslation)?t.postTranslation:null,Q=_A(t.processor)?t.processor:null,I=ZA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,M=!!t.escapeParameter,E=re(t.messageCompiler)?t.messageCompiler:TB;process.env.NODE_ENV!=="production"&&re(t.messageCompiler)&&N1(ri(ot.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const N=re(t.messageResolver)?t.messageResolver:xB||QS,T=re(t.localeFallbacker)?t.localeFallbacker:OB||kS,H=PA(t.fallbackContext)?t.fallbackContext:void 0,Y=t,P=PA(Y.__datetimeFormatters)?Y.__datetimeFormatters:new Map,oA=PA(Y.__numberFormatters)?Y.__numberFormatters:new Map,UA=PA(Y.__meta)?Y.__meta:{};NB++;const hA={version:e,cid:NB,locale:n,fallbackLocale:i,messages:s,modifiers:u,pluralRules:f,missing:h,missingWarn:g,fallbackWarn:m,fallbackFormat:w,unresolving:U,postTranslation:b,processor:Q,warnHtmlMessage:I,escapeParameter:M,messageCompiler:E,messageResolver:N,localeFallbacker:T,fallbackContext:H,onWarn:A,__meta:UA};return hA.datetimeFormats=a,hA.numberFormats=c,hA.__datetimeFormatters=P,hA.__numberFormatters=oA,process.env.NODE_ENV!=="production"&&(hA.__v_emitter=Y.__v_emitter!=null?Y.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&LS(hA,e,UA),hA}function Ea(t,A){return t instanceof RegExp?t.test(A):t}function DB(t,A){return t instanceof RegExp?t.test(A):t}function vu(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"&&DB(n,A)&&s(ri(ot.NOT_FOUND_KEY,{key:A,locale:e})),A}function $s(t,A,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,A)}function Iu(t){return e=>zS(e,t)}function zS(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,kB(t,s)],[]))}else return kB(t,e)}function kB(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,Su(t,i)],[]);return t.normalize(n)}}function Su(t,A){const e=A.t||A.type;switch(e){case 3:const n=A;return n.v||n.value;case 9:const r=A;return r.v||r.value;case 4:const i=A;return t.interpolate(t.named(i.k||i.key));case 5:const s=A;return t.interpolate(t.list(s.i!=null?s.i:s.index));case 6:const a=A,c=a.m||a.modifier;return t.linked(Su(t,a.k||a.key),c?Su(t,c):void 0,t.type);case 7:const u=A;return u.v||u.value;case 8:const f=A;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${e}`)}}const qS="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function RB(t,A){A&&$1(t)&&wr(yu(qS,{source:t}))}const KB=t=>t;let Wi=Object.create(null);const si=t=>PA(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function PB(t,A={}){let e=!1;const n=A.onError||G1;return A.onError=r=>{e=!0,n(r)},{...pS(t,A),detectError:e}}const ZS=(t,A)=>{if(!tA(t))throw Un(_e.NOT_SUPPORT_NON_STRING_MESSAGE);{const e=ZA(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&RB(t,e);const r=(A.onCacheKey||KB)(t),i=Wi[r];if(i)return i;const{code:s,detectError:a}=PB(t,A),c=new Function(`return ${s}`)();return a?c:Wi[r]=c}};function jS(t,A){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&tA(t)){const e=ZA(A.warnHtmlMessage)?A.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&RB(t,e);const r=(A.onCacheKey||KB)(t),i=Wi[r];if(i)return i;const{ast:s,detectError:a}=PB(t,{...A,location:process.env.NODE_ENV!=="production",jit:!0}),c=Iu(s);return a?c:Wi[r]=c}else{if(process.env.NODE_ENV!=="production"&&!si(t))return wr(`the message that is resolve with key '${A.key}' is not supported for jit compilation`),()=>t;const e=t.cacheKey;if(e){const n=Wi[e];return n||(Wi[e]=Iu(t))}else return Iu(t)}}const VB=()=>"",Pt=t=>re(t);function GB(t,...A){const{fallbackFormat:e,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=Tu(...A),f=ZA(u.missingWarn)?u.missingWarn:t.missingWarn,h=ZA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,g=ZA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,m=!!u.resolvedMessage,w=tA(u.default)||ZA(u.default)?ZA(u.default)?i?c:()=>c:u.default:e?i?c:()=>c:"",U=e||w!=="",b=Uu(t,u);g&&AT(u);let[Q,I,M]=m?[c,b,a[b]||{}]:WB(t,c,b,s,h,f),E=Q,N=c;if(!m&&!(tA(E)||si(E)||Pt(E))&&U&&(E=w,N=E),!m&&(!(tA(E)||si(E)||Pt(E))||!tA(I)))return r?Ca:c;if(process.env.NODE_ENV!=="production"&&tA(E)&&t.messageCompiler==null)return wr(`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 T=!1;const H=()=>{T=!0},Y=Pt(E)?E:$B(t,c,I,E,N,H);if(T)return E;const P=rT(t,I,M,u),oA=xS(P),UA=eT(t,Y,oA),hA=n?n(UA,c):UA;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const cA={timestamp:Date.now(),key:tA(c)?c:Pt(E)?E.key:"",locale:I||(Pt(E)?E.locale:""),format:tA(E)?E:Pt(E)?E.source:"",message:hA};cA.meta=ze({},t.__meta,JS()||{}),HS(cA)}return hA}function AT(t){ye(t.list)?t.list=t.list.map(A=>tA(A)?fB(A):A):PA(t.named)&&Object.keys(t.named).forEach(A=>{tA(t.named[A])&&(t.named[A]=fB(t.named[A]))})}function WB(t,A,e,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,f=u(t,n,e);let h={},g,m=null,w=e,U=null;const b="translate";for(let Q=0;Q<f.length;Q++){if(g=U=f[Q],process.env.NODE_ENV!=="production"&&e!==g&&Ea(r,A)&&a(ri(ot.FALLBACK_TO_TRANSLATE,{key:A,target:g})),process.env.NODE_ENV!=="production"&&e!==g){const T=t.__v_emitter;T&&T.emit("fallback",{type:b,key:A,from:w,to:U,groupId:`${b}:${A}`})}h=s[g]||{};let I=null,M,E;if(process.env.NODE_ENV!=="production"&&mr&&(I=window.performance.now(),M="intlify-message-resolve-start",E="intlify-message-resolve-end",It&&It(M)),(m=c(h,A))===null&&(m=h[A]),process.env.NODE_ENV!=="production"&&mr){const T=window.performance.now(),H=t.__v_emitter;H&&I&&m&&H.emit("message-resolve",{type:"message-resolve",key:A,message:m,time:T-I,groupId:`${b}:${A}`}),M&&E&&It&&ni&&(It(E),ni("intlify message resolve",M,E))}if(tA(m)||si(m)||Pt(m))break;const N=vu(t,A,g,i,b);N!==A&&(m=N),w=U}return[m,g,h]}function $B(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"&&mr&&(c=window.performance.now(),u="intlify-message-compilation-start",f="intlify-message-compilation-end",It&&It(u));const h=s(n,tT(t,e,r,n,a,i));if(process.env.NODE_ENV!=="production"&&mr){const g=window.performance.now(),m=t.__v_emitter;m&&c&&m.emit("message-compilation",{type:"message-compilation",message:n,time:g-c,groupId:`translate:${A}`}),u&&f&&It&&ni&&(It(f),ni("intlify message compilation",u,f))}return h.locale=e,h.key=A,h.source=n,h}function eT(t,A,e){let n=null,r,i;process.env.NODE_ENV!=="production"&&mr&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",It&&It(r));const s=A(e);if(process.env.NODE_ENV!=="production"&&mr){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&&It&&ni&&(It(i),ni("intlify message evaluation",r,i))}return s}function Tu(...t){const[A,e,n]=t,r={};if(!tA(A)&&!Ye(A)&&!Pt(A)&&!si(A))throw Un(_e.INVALID_ARGUMENT);const i=Ye(A)?String(A):(Pt(A),A);return Ye(e)?r.plural=e:tA(e)?r.default=e:_A(e)&&!ma(e)?r.named=e:ye(e)&&(r.list=e),Ye(n)?r.plural=n:tA(n)?r.default=n:_A(n)&&ze(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=nT(n),c=`Message compilation error: ${s.message}`,u=s.location&&a&&M1(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}
|
|
129
|
+
${u}`:c)}else throw s},onCacheKey:s=>S1(A,e,s)}}function nT(t){if(tA(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function rT(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:m=>{let w=s(e,m);if(w==null&&f){const[,,U]=WB(f,m,A,a,c,u);w=s(U,m)}if(tA(w)||si(w)){let U=!1;const Q=$B(t,m,A,w,m,()=>{U=!0});return U?VB:Q}else return Pt(w)?w:VB}};return t.processor&&(g.processor=t.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),Ye(n.plural)&&(g.pluralIndex=n.plural),g}const JB=typeof Intl<"u",XB={dateTimeFormat:JB&&typeof Intl.DateTimeFormat<"u",numberFormat:JB&&typeof Intl.NumberFormat<"u"};function YB(t,...A){const{datetimeFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!XB.dateTimeFormat)return i(ri(ot.CANNOT_FORMAT_DATE)),ya;const[c,u,f,h]=_u(...A),g=ZA(f.missingWarn)?f.missingWarn:t.missingWarn,m=ZA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,U=Uu(t,f),b=s(t,r,U);if(!tA(c)||c==="")return new Intl.DateTimeFormat(U,h).format(u);let Q={},I,M=null,E=U,N=null;const T="datetime format";for(let P=0;P<b.length;P++){if(I=N=b[P],process.env.NODE_ENV!=="production"&&U!==I&&Ea(m,c)&&i(ri(ot.FALLBACK_TO_DATE_FORMAT,{key:c,target:I})),process.env.NODE_ENV!=="production"&&U!==I){const oA=t.__v_emitter;oA&&oA.emit("fallback",{type:T,key:c,from:E,to:N,groupId:`${T}:${c}`})}if(Q=e[I]||{},M=Q[c],_A(M))break;vu(t,c,I,g,T),E=N}if(!_A(M)||!tA(I))return n?Ca:c;let H=`${I}__${c}`;ma(h)||(H=`${H}__${JSON.stringify(h)}`);let Y=a.get(H);return Y||(Y=new Intl.DateTimeFormat(I,ze({},M,h)),a.set(H,Y)),w?Y.formatToParts(u):Y.format(u)}const zB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function _u(...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 Un(_e.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 Un(_e.INVALID_ISO_DATE_ARGUMENT)}}else if(_1(A)){if(isNaN(A.getTime()))throw Un(_e.INVALID_DATE_ARGUMENT);a=A}else if(Ye(A))a=A;else throw Un(_e.INVALID_ARGUMENT);return tA(e)?i.key=e:_A(e)&&Object.keys(e).forEach(c=>{zB.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 qB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function ZB(t,...A){const{numberFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!XB.numberFormat)return i(ri(ot.CANNOT_FORMAT_NUMBER)),ya;const[c,u,f,h]=xu(...A),g=ZA(f.missingWarn)?f.missingWarn:t.missingWarn,m=ZA(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn,w=!!f.part,U=Uu(t,f),b=s(t,r,U);if(!tA(c)||c==="")return new Intl.NumberFormat(U,h).format(u);let Q={},I,M=null,E=U,N=null;const T="number format";for(let P=0;P<b.length;P++){if(I=N=b[P],process.env.NODE_ENV!=="production"&&U!==I&&Ea(m,c)&&i(ri(ot.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:I})),process.env.NODE_ENV!=="production"&&U!==I){const oA=t.__v_emitter;oA&&oA.emit("fallback",{type:T,key:c,from:E,to:N,groupId:`${T}:${c}`})}if(Q=e[I]||{},M=Q[c],_A(M))break;vu(t,c,I,g,T),E=N}if(!_A(M)||!tA(I))return n?Ca:c;let H=`${I}__${c}`;ma(h)||(H=`${H}__${JSON.stringify(h)}`);let Y=a.get(H);return Y||(Y=new Intl.NumberFormat(I,ze({},M,h)),a.set(H,Y)),w?Y.formatToParts(u):Y.format(u)}const jB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function xu(...t){const[A,e,n,r]=t,i={};let s={};if(!Ye(A))throw Un(_e.INVALID_ARGUMENT);const a=A;return tA(e)?i.key=e:_A(e)&&Object.keys(e).forEach(c=>{jB.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 Am(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}gS();/*!
|
|
130
130
|
* vue-i18n v9.8.0
|
|
131
131
|
* (c) 2023 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
|
-
*/const iT="9.8.0";function sT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1)}const em=ot.__EXTEND_POINT__,Er=Eu(em),Vt={FALLBACK_TO_ROOT:em,NOT_SUPPORTED_PRESERVE:Er(),NOT_SUPPORTED_FORMATTER:Er(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Er(),NOT_SUPPORTED_GET_CHOICE_INDEX:Er(),COMPONENT_NAME_LEGACY_COMPATIBLE:Er(),NOT_FOUND_PARENT_SCOPE:Er(),IGNORE_OBJ_FLATTEN:Er(),NOTICE_DROP_ALLOW_COMPOSITION:Er()},oT={[Vt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Vt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Vt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Vt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Vt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Vt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Vt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Vt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Vt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function Ou(t,...A){return yu(oT[t],...A)}const tm=_e.__EXTEND_POINT__,mt=Eu(tm),oe={UNEXPECTED_RETURN_TYPE:tm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Qr(t,...A){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:aT,args:A}:void 0)}const aT={[oe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[oe.INVALID_ARGUMENT]:"Invalid argument",[oe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[oe.NOT_INSTALLED]:"Need to install with `app.use` function",[oe.UNEXPECTED_ERROR]:"Unexpected error",[oe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[oe.REQUIRED_VALUE]:"Required in value: {0}",[oe.INVALID_VALUE]:"Invalid value",[oe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[oe.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[oe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[oe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[oe.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",[oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Lu=kn("__translateVNode"),Hu=kn("__datetimeParts"),Mu=kn("__numberParts"),Nu=kn("__enableEmitter"),Du=kn("__disableEmitter"),lT=kn("__setPluralRules"),nm=kn("__injectWithOption"),ku=kn("__dispose");function Js(t){if(!kA(t))return t;for(const A in t)if(Ps(t,A))if(!A.includes("."))kA(t[A])&&Js(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]]={}),!kA(r[e[s]])){process.env.NODE_ENV!=="production"&&wr(Ou(Vt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),kA(r[e[n]])&&Js(r[e[n]])}return t}function Ru(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(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]||{},Vs(u,s[c])):Vs(u,s)}else nA(a)&&Vs(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ps(s,a)&&Js(s[a]);return s}function rm(t){return t.type}function cT(t,A,e){let n=kA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Ru(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(kA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(kA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function im(t){return p.createVNode(p.Text,null,t,0)}const sm="__INTLIFY_META__",om=()=>[],uT=()=>!1;let am=0;function lm(t){return(A,e,n,r)=>t(e,n,p.getCurrentInstance()||void 0,r)}const fT=()=>{const t=p.getCurrentInstance();let A=null;return t&&(A=rm(t)[sm])?{[sm]:A}:null};function dT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson;let s=YA(t.inheritLocale)?t.inheritLocale:!0;const a=p.ref(e&&s?e.locale.value:nA(t.locale)?t.locale:Ws),c=p.ref(e&&s?e.fallbackLocale.value:nA(t.fallbackLocale)||Be(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=p.ref(Ru(a.value,t)),f=p.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=e?e.missingWarn:YA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:YA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=e?e.fallbackRoot:YA(t.fallbackRoot)?t.fallbackRoot:!0,U=!!t.fallbackFormat,b=jA(t.missing)?t.missing:null,F=jA(t.missing)?lm(t.missing):null,I=jA(t.postTranslation)?t.postTranslation:null,M=e?e.warnHtmlMessage:YA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const N=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{r&&MB(null);const K={version:iT,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:N,pluralRules:T,missing:F===null?void 0:F,missingWarn:g,fallbackWarn:m,fallbackFormat:U,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:M,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=f.value,K.numberFormats=h.value,K.__datetimeFormatters=TA(H)?H.__datetimeFormatters:void 0,K.__numberFormatters=TA(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=TA(H)?H.__v_emitter:void 0);const X=YS(K);return r&&MB(X),X})(),$s(H,a.value,c.value);function V(){return[a.value,c.value,u.value,f.value,h.value]}const z=p.computed({get:()=>a.value,set:K=>{a.value=K,H.locale=a.value}}),lA=p.computed({get:()=>c.value,set:K=>{c.value=K,H.fallbackLocale=c.value,$s(H,a.value,K)}}),uA=p.computed(()=>u.value),aA=p.computed(()=>f.value),LA=p.computed(()=>h.value);function Ae(){return jA(I)?I:null}function xA(K){I=K,H.postTranslation=K}function CA(){return b}function vA(K){K!==null&&(F=lm(K)),b=K,H.missing=F}function re(K,X){return K!=="translate"||!X.resolvedMessage}const RA=(K,X,UA,VA,_t,Tn)=>{V();let Xt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=e?XS():void 0),Xt=K(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=void 0)}if(UA!=="translate exists"&&Ye(Xt)&&Xt===Ca||UA==="translate exists"&&!Xt){const[xt,fi]=X();if(process.env.NODE_ENV!=="production"&&e&&nA(xt)&&re(UA,fi)&&(w&&(Ea(m,xt)||DB(g,xt))&&wr(Ou(Vt.FALLBACK_TO_ROOT,{key:xt,type:UA})),process.env.NODE_ENV!=="production")){const{__v_emitter:R}=H;R&&w&&R.emit("fallback",{type:UA,key:xt,to:"global",groupId:`${UA}:${xt}`})}return e&&w?VA(e):_t(xt)}else{if(Tn(Xt))return Xt;throw Qr(oe.UNEXPECTED_RETURN_TYPE)}};function WA(...K){return RA(X=>Reflect.apply(GB,null,[X,...K]),()=>Tu(...K),"translate",X=>Reflect.apply(X.t,X,[...K]),X=>X,X=>nA(X))}function we(...K){const[X,UA,VA]=K;if(VA&&!kA(VA))throw Qr(oe.INVALID_ARGUMENT);return WA(X,UA,ze({resolvedMessage:!0},VA||{}))}function Ce(...K){return RA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>Reflect.apply(X.d,X,[...K]),()=>ya,X=>nA(X))}function Ue(...K){return RA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>Reflect.apply(X.n,X,[...K]),()=>ya,X=>nA(X))}function ee(K){return K.map(X=>nA(X)||Ye(X)||YA(X)?im(String(X)):X)}const lt={normalize:ee,interpolate:K=>K,type:"vnode"};function ct(...K){return RA(X=>{let UA;const VA=X;try{VA.processor=lt,UA=Reflect.apply(GB,null,[VA,...K])}finally{VA.processor=null}return UA},()=>Tu(...K),"translate",X=>X[Lu](...K),X=>[im(X)],X=>Be(X))}function je(...K){return RA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>X[Mu](...K),om,X=>nA(X)||Be(X))}function ke(...K){return RA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>X[Hu](...K),om,X=>nA(X)||Be(X))}function ut(K){T=K,H.pluralRules=T}function Tt(K,X){return RA(()=>{if(!K)return!1;const UA=nA(X)?X:a.value,VA=k(UA),_t=H.messageResolver(VA,K);return si(_t)||Pt(_t)||nA(_t)},()=>[K],"translate exists",UA=>Reflect.apply(UA.te,UA,[K,X]),uT,UA=>YA(UA))}function x(K){let X=null;const UA=vB(H,c.value,a.value);for(let VA=0;VA<UA.length;VA++){const _t=u.value[UA[VA]]||{},Tn=H.messageResolver(_t,K);if(Tn!=null){X=Tn;break}}return X}function v(K){const X=x(K);return X??(e?e.tm(K)||{}:{})}function k(K){return u.value[K]||{}}function Z(K,X){if(i){const UA={[K]:X};for(const VA in UA)Ps(UA,VA)&&Js(UA[VA]);X=UA[K]}u.value[K]=X,H.messages=u.value}function oA(K,X){u.value[K]=u.value[K]||{};const UA={[K]:X};for(const VA in UA)Ps(UA,VA)&&Js(UA[VA]);X=UA[K],Vs(X,u.value[K]),H.messages=u.value}function IA(K){return f.value[K]||{}}function ft(K,X){f.value[K]=X,H.datetimeFormats=f.value,qB(H,K,X)}function Re(K,X){f.value[K]=ze(f.value[K]||{},X),H.datetimeFormats=f.value,qB(H,K,X)}function Ke(K){return h.value[K]||{}}function Sn(K,X){h.value[K]=X,H.numberFormats=h.value,Am(H,K,X)}function un(K,X){h.value[K]=ze(h.value[K]||{},X),H.numberFormats=h.value,Am(H,K,X)}am++,e&&mr&&(p.watch(e.locale,K=>{s&&(a.value=K,H.locale=K,$s(H,a.value,c.value))}),p.watch(e.fallbackLocale,K=>{s&&(c.value=K,H.fallbackLocale=K,$s(H,a.value,c.value))}));const ie={id:am,locale:z,fallbackLocale:lA,get inheritLocale(){return s},set inheritLocale(K){s=K,K&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,$s(H,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:uA,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(K){g=K,H.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(K){m=K,H.fallbackWarn=m},get fallbackRoot(){return w},set fallbackRoot(K){w=K},get fallbackFormat(){return U},set fallbackFormat(K){U=K,H.fallbackFormat=U},get warnHtmlMessage(){return M},set warnHtmlMessage(K){M=K,H.warnHtmlMessage=K},get escapeParameter(){return E},set escapeParameter(K){E=K,H.escapeParameter=K},t:WA,getLocaleMessage:k,setLocaleMessage:Z,mergeLocaleMessage:oA,getPostTranslationHandler:Ae,setPostTranslationHandler:xA,getMissingHandler:CA,setMissingHandler:vA,[lT]:ut};return ie.datetimeFormats=aA,ie.numberFormats=LA,ie.rt=we,ie.te=Tt,ie.tm=v,ie.d=Ce,ie.n=Ue,ie.getDateTimeFormat=IA,ie.setDateTimeFormat=ft,ie.mergeDateTimeFormat=Re,ie.getNumberFormat=Ke,ie.setNumberFormat=Sn,ie.mergeNumberFormat=un,ie[nm]=n,ie[Lu]=ct,ie[Hu]=ke,ie[Mu]=je,process.env.NODE_ENV!=="production"&&(ie[Nu]=K=>{H.__v_emitter=K},ie[Du]=()=>{H.__v_emitter=void 0}),ie}const Ku={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function hT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===p.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function cm(t){return p.Fragment}ze({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ye(t)||!isNaN(t)}},Ku);function pT(t){return Be(t)&&!nA(t[0])}function um(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),nA(t.format)?s.key=t.format:kA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?ze({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];Be(c)?u=c.map((g,m)=>{const w=r[g.type],U=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return pT(U)&&(U[0].key=`${g.type}-${m}`),U}):nA(c)&&(u=[c]);const f=ze({},i),h=nA(t.tag)||kA(t.tag)?t.tag:cm();return p.h(h,f,u)}}ze({value:{type:Number,required:!0},format:{type:[String,Object]}},Ku),ze({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ku);function fm(t,A){}const gT=kn("global-vue-i18n");function Qa(t={}){const A=p.getCurrentInstance();if(A==null)throw Qr(oe.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Qr(oe.NOT_INSTALLED);const e=BT(A),n=wT(e),r=rm(A),i=mT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Qr(oe.NOT_AVAILABLE_IN_LEGACY_MODE);return QT(A,i,n,t)}if(i==="global")return cT(n,t,r),n;if(i==="parent"){let c=CT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&wr(Ou(Vt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=ze({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=dT(c),s.__composerExtend&&(a[ku]=s.__composerExtend(a)),ET(s,A,a),s.__setInstance(A,a)}return a}function BT(t){{const A=p.inject(t.isCE?gT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Qr(t.isCE?oe.NOT_INSTALLED_WITH_PROVIDE:oe.UNEXPECTED_ERROR);return A}}function mT(t,A){return ma(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function wT(t){return t.mode==="composition"?t.global:t.global.__composer}function CT(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[nm]&&(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 ET(t,A,e){let n=null;p.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=D1();const r=e;r[Nu]&&r[Nu](n),n.on("*",fm)}},A),p.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",fm),r[Du]&&r[Du](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[ku];i&&(i(),delete r[ku])},A)}function QT(t,A,e,n={}){const r=A==="local",i=p.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Qr(oe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=YA(n.inheritLocale)?n.inheritLocale:!nA(n.locale),a=p.ref(!r||s?e.locale.value:nA(n.locale)?n.locale:Ws),c=p.ref(!r||s?e.fallbackLocale.value:nA(n.fallbackLocale)||Be(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=p.ref(Ru(a.value,n)),f=p.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:YA(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:YA(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:YA(n.fallbackRoot)?n.fallbackRoot:!0,U=!!n.fallbackFormat,b=jA(n.missing)?n.missing:null,F=jA(n.postTranslation)?n.postTranslation:null,I=r?e.warnHtmlMessage:YA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,E=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&e.pluralRules;function T(){return[a.value,c.value,u.value,f.value,h.value]}const H=p.computed({get:()=>i.value?i.value.locale.value:a.value,set:v=>{i.value&&(i.value.locale.value=v),a.value=v}}),Y=p.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:v=>{i.value&&(i.value.fallbackLocale.value=v),c.value=v}}),V=p.computed(()=>i.value?i.value.messages.value:u.value),z=p.computed(()=>f.value),lA=p.computed(()=>h.value);function uA(){return i.value?i.value.getPostTranslationHandler():F}function aA(v){i.value&&i.value.setPostTranslationHandler(v)}function LA(){return i.value?i.value.getMissingHandler():b}function Ae(v){i.value&&i.value.setMissingHandler(v)}function xA(v){return T(),v()}function CA(...v){return i.value?xA(()=>Reflect.apply(i.value.t,null,[...v])):xA(()=>"")}function vA(...v){return i.value?Reflect.apply(i.value.rt,null,[...v]):""}function re(...v){return i.value?xA(()=>Reflect.apply(i.value.d,null,[...v])):xA(()=>"")}function RA(...v){return i.value?xA(()=>Reflect.apply(i.value.n,null,[...v])):xA(()=>"")}function WA(v){return i.value?i.value.tm(v):{}}function we(v,k){return i.value?i.value.te(v,k):!1}function Ce(v){return i.value?i.value.getLocaleMessage(v):{}}function Ue(v,k){i.value&&(i.value.setLocaleMessage(v,k),u.value[v]=k)}function ee(v,k){i.value&&i.value.mergeLocaleMessage(v,k)}function ye(v){return i.value?i.value.getDateTimeFormat(v):{}}function lt(v,k){i.value&&(i.value.setDateTimeFormat(v,k),f.value[v]=k)}function ct(v,k){i.value&&i.value.mergeDateTimeFormat(v,k)}function je(v){return i.value?i.value.getNumberFormat(v):{}}function ke(v,k){i.value&&(i.value.setNumberFormat(v,k),h.value[v]=k)}function ut(v,k){i.value&&i.value.mergeNumberFormat(v,k)}const Tt={get id(){return i.value?i.value.id:-1},locale:H,fallbackLocale:Y,messages:V,datetimeFormats:z,numberFormats:lA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(v){i.value&&(i.value.inheritLocale=v)},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:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(v){i.value&&(i.value.fallbackRoot=v)},get fallbackFormat(){return i.value?i.value.fallbackFormat:U},set fallbackFormat(v){i.value&&(i.value.fallbackFormat=v)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(v){i.value&&(i.value.warnHtmlMessage=v)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(v){i.value&&(i.value.escapeParameter=v)},t:CA,getPostTranslationHandler:uA,setPostTranslationHandler:aA,getMissingHandler:LA,setMissingHandler:Ae,rt:vA,d:re,n:RA,tm:WA,te:we,getLocaleMessage:Ce,setLocaleMessage:Ue,mergeLocaleMessage:ee,getDateTimeFormat:ye,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:je,setNumberFormat:ke,mergeNumberFormat:ut};function x(v){v.locale.value=a.value,v.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{v.mergeLocaleMessage(k,u.value[k])}),Object.keys(f.value).forEach(k=>{v.mergeDateTimeFormat(k,f.value[k])}),Object.keys(h.value).forEach(k=>{v.mergeNumberFormat(k,h.value[k])}),v.escapeParameter=M,v.fallbackFormat=U,v.fallbackRoot=w,v.fallbackWarn=m,v.missingWarn=g,v.warnHtmlMessage=I}return p.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Qr(oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const v=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=v.locale.value,c.value=v.fallbackLocale.value,u.value=v.messages.value,f.value=v.datetimeFormats.value,h.value=v.numberFormats.value):r&&x(v)}),Tt}if(sT(),__INTLIFY_JIT_COMPILATION__?_B(jS):_B(ZS),GS(FS),WS(vB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Rn();t.__INTLIFY__=!0,OS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const FT={class:"input input-dropdown"},UT={class:"dropdown"},bT={class:"caption"},vT=["innerHTML"],IT={class:"caption__text"},ST={class:"d-block text-truncate"},TT={class:"dropdown-menu"},_T={class:"form-check"},xT=["value","id","name","label","required","disabled"],OT=["value","id","name","label","required","disabled"],LT=["for"],HT=p.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},value:{type:String},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}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=Qa(),n=t,r=A,i=p.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=p.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&n.modelValue.includes(c.value)}))),a=p.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=p.resolveComponent("base-button");return p.openBlock(),p.createElementBlock("div",FT,[p.createElementVNode("div",UT,[p.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:p.withCtx(()=>[p.createElementVNode("span",bT,[p.createVNode(p.Transition,{name:"bounce"},{default:p.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(p.openBlock(),p.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,vT)):p.createCommentVNode("",!0)]),_:1}),p.createElementVNode("span",IT,[p.createElementVNode("span",ST,p.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),p.createElementVNode("ul",TT,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s.value,(h,g)=>(p.openBlock(),p.createElementBlock("li",{key:`${h.value}-${g}`},[p.createElementVNode("div",{class:p.normalizeClass(["dropdown-item",h.active&&"active"])},[p.createElementVNode("div",_T,[t.multiple?p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__if`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,xT)),[[p.vModelCheckbox,i.value]]):p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__else`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,OT)),[[p.vModelRadio,i.value]]),p.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${g}`},p.toDisplayString(h.text),9,LT)])],2)]))),128))])])])}}}),TG="";var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fa={exports:{}};/**
|
|
133
|
+
*/const iT="9.8.0";function sT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1)}const em=ot.__EXTEND_POINT__,Er=Eu(em),Vt={FALLBACK_TO_ROOT:em,NOT_SUPPORTED_PRESERVE:Er(),NOT_SUPPORTED_FORMATTER:Er(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Er(),NOT_SUPPORTED_GET_CHOICE_INDEX:Er(),COMPONENT_NAME_LEGACY_COMPATIBLE:Er(),NOT_FOUND_PARENT_SCOPE:Er(),IGNORE_OBJ_FLATTEN:Er(),NOTICE_DROP_ALLOW_COMPOSITION:Er()},oT={[Vt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Vt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Vt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Vt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Vt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Vt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Vt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Vt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Vt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function Ou(t,...A){return yu(oT[t],...A)}const tm=_e.__EXTEND_POINT__,mt=Eu(tm),ce={UNEXPECTED_RETURN_TYPE:tm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Qr(t,...A){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:aT,args:A}:void 0)}const aT={[ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ce.INVALID_ARGUMENT]:"Invalid argument",[ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ce.NOT_INSTALLED]:"Need to install with `app.use` function",[ce.UNEXPECTED_ERROR]:"Unexpected error",[ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ce.REQUIRED_VALUE]:"Required in value: {0}",[ce.INVALID_VALUE]:"Invalid value",[ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ce.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ce.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",[ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Lu=kn("__translateVNode"),Hu=kn("__datetimeParts"),Mu=kn("__numberParts"),Nu=kn("__enableEmitter"),Du=kn("__disableEmitter"),lT=kn("__setPluralRules"),nm=kn("__injectWithOption"),ku=kn("__dispose");function Js(t){if(!PA(t))return t;for(const A in t)if(Ps(t,A))if(!A.includes("."))PA(t[A])&&Js(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]]={}),!PA(r[e[s]])){process.env.NODE_ENV!=="production"&&wr(Ou(Vt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),PA(r[e[n]])&&Js(r[e[n]])}return t}function Ru(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=_A(e)?e:ye(n)?{}:{[t]:{}};if(ye(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Vs(u,s[c])):Vs(u,s)}else tA(a)&&Vs(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ps(s,a)&&Js(s[a]);return s}function rm(t){return t.type}function cT(t,A,e){let n=PA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Ru(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(PA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(PA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function im(t){return p.createVNode(p.Text,null,t,0)}const sm="__INTLIFY_META__",om=()=>[],uT=()=>!1;let am=0;function lm(t){return(A,e,n,r)=>t(e,n,p.getCurrentInstance()||void 0,r)}const fT=()=>{const t=p.getCurrentInstance();let A=null;return t&&(A=rm(t)[sm])?{[sm]:A}:null};function dT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson;let s=ZA(t.inheritLocale)?t.inheritLocale:!0;const a=p.ref(e&&s?e.locale.value:tA(t.locale)?t.locale:Ws),c=p.ref(e&&s?e.fallbackLocale.value:tA(t.fallbackLocale)||ye(t.fallbackLocale)||_A(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=p.ref(Ru(a.value,t)),f=p.ref(_A(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=p.ref(_A(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=e?e.missingWarn:ZA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:ZA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=e?e.fallbackRoot:ZA(t.fallbackRoot)?t.fallbackRoot:!0,U=!!t.fallbackFormat,b=re(t.missing)?t.missing:null,Q=re(t.missing)?lm(t.missing):null,I=re(t.postTranslation)?t.postTranslation:null,M=e?e.warnHtmlMessage:ZA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const N=e?e.modifiers:_A(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{r&&MB(null);const K={version:iT,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:N,pluralRules:T,missing:Q===null?void 0:Q,missingWarn:g,fallbackWarn:m,fallbackFormat:U,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:M,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=f.value,K.numberFormats=h.value,K.__datetimeFormatters=_A(H)?H.__datetimeFormatters:void 0,K.__numberFormatters=_A(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=_A(H)?H.__v_emitter:void 0);const X=YS(K);return r&&MB(X),X})(),$s(H,a.value,c.value);function P(){return[a.value,c.value,u.value,f.value,h.value]}const oA=p.computed({get:()=>a.value,set:K=>{a.value=K,H.locale=a.value}}),UA=p.computed({get:()=>c.value,set:K=>{c.value=K,H.fallbackLocale=c.value,$s(H,a.value,K)}}),hA=p.computed(()=>u.value),cA=p.computed(()=>f.value),IA=p.computed(()=>h.value);function ie(){return re(I)?I:null}function KA(K){I=K,H.postTranslation=K}function nA(){return b}function sA(K){K!==null&&(Q=lm(K)),b=K,H.missing=Q}function jA(K,X){return K!=="translate"||!X.resolvedMessage}const LA=(K,X,bA,$A,_t,Tn)=>{P();let Xt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=e?XS():void 0),Xt=K(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=void 0)}if(bA!=="translate exists"&&Ye(Xt)&&Xt===Ca||bA==="translate exists"&&!Xt){const[xt,fi]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(xt)&&jA(bA,fi)&&(w&&(Ea(m,xt)||DB(g,xt))&&wr(Ou(Vt.FALLBACK_TO_ROOT,{key:xt,type:bA})),process.env.NODE_ENV!=="production")){const{__v_emitter:R}=H;R&&w&&R.emit("fallback",{type:bA,key:xt,to:"global",groupId:`${bA}:${xt}`})}return e&&w?$A(e):_t(xt)}else{if(Tn(Xt))return Xt;throw Qr(ce.UNEXPECTED_RETURN_TYPE)}};function DA(...K){return LA(X=>Reflect.apply(GB,null,[X,...K]),()=>Tu(...K),"translate",X=>Reflect.apply(X.t,X,[...K]),X=>X,X=>tA(X))}function kA(...K){const[X,bA,$A]=K;if($A&&!PA($A))throw Qr(ce.INVALID_ARGUMENT);return DA(X,bA,ze({resolvedMessage:!0},$A||{}))}function WA(...K){return LA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>Reflect.apply(X.d,X,[...K]),()=>ya,X=>tA(X))}function te(...K){return LA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>Reflect.apply(X.n,X,[...K]),()=>ya,X=>tA(X))}function qA(K){return K.map(X=>tA(X)||Ye(X)||ZA(X)?im(String(X)):X)}const lt={normalize:qA,interpolate:K=>K,type:"vnode"};function ct(...K){return LA(X=>{let bA;const $A=X;try{$A.processor=lt,bA=Reflect.apply(GB,null,[$A,...K])}finally{$A.processor=null}return bA},()=>Tu(...K),"translate",X=>X[Lu](...K),X=>[im(X)],X=>ye(X))}function je(...K){return LA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>X[Mu](...K),om,X=>tA(X)||ye(X))}function ke(...K){return LA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>X[Hu](...K),om,X=>tA(X)||ye(X))}function ut(K){T=K,H.pluralRules=T}function Tt(K,X){return LA(()=>{if(!K)return!1;const bA=tA(X)?X:a.value,$A=k(bA),_t=H.messageResolver($A,K);return si(_t)||Pt(_t)||tA(_t)},()=>[K],"translate exists",bA=>Reflect.apply(bA.te,bA,[K,X]),uT,bA=>ZA(bA))}function x(K){let X=null;const bA=vB(H,c.value,a.value);for(let $A=0;$A<bA.length;$A++){const _t=u.value[bA[$A]]||{},Tn=H.messageResolver(_t,K);if(Tn!=null){X=Tn;break}}return X}function v(K){const X=x(K);return X??(e?e.tm(K)||{}:{})}function k(K){return u.value[K]||{}}function q(K,X){if(i){const bA={[K]:X};for(const $A in bA)Ps(bA,$A)&&Js(bA[$A]);X=bA[K]}u.value[K]=X,H.messages=u.value}function lA(K,X){u.value[K]=u.value[K]||{};const bA={[K]:X};for(const $A in bA)Ps(bA,$A)&&Js(bA[$A]);X=bA[K],Vs(X,u.value[K]),H.messages=u.value}function SA(K){return f.value[K]||{}}function ft(K,X){f.value[K]=X,H.datetimeFormats=f.value,qB(H,K,X)}function Re(K,X){f.value[K]=ze(f.value[K]||{},X),H.datetimeFormats=f.value,qB(H,K,X)}function Ke(K){return h.value[K]||{}}function Sn(K,X){h.value[K]=X,H.numberFormats=h.value,Am(H,K,X)}function un(K,X){h.value[K]=ze(h.value[K]||{},X),H.numberFormats=h.value,Am(H,K,X)}am++,e&&mr&&(p.watch(e.locale,K=>{s&&(a.value=K,H.locale=K,$s(H,a.value,c.value))}),p.watch(e.fallbackLocale,K=>{s&&(c.value=K,H.fallbackLocale=K,$s(H,a.value,c.value))}));const ae={id:am,locale:oA,fallbackLocale:UA,get inheritLocale(){return s},set inheritLocale(K){s=K,K&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,$s(H,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:hA,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(K){g=K,H.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(K){m=K,H.fallbackWarn=m},get fallbackRoot(){return w},set fallbackRoot(K){w=K},get fallbackFormat(){return U},set fallbackFormat(K){U=K,H.fallbackFormat=U},get warnHtmlMessage(){return M},set warnHtmlMessage(K){M=K,H.warnHtmlMessage=K},get escapeParameter(){return E},set escapeParameter(K){E=K,H.escapeParameter=K},t:DA,getLocaleMessage:k,setLocaleMessage:q,mergeLocaleMessage:lA,getPostTranslationHandler:ie,setPostTranslationHandler:KA,getMissingHandler:nA,setMissingHandler:sA,[lT]:ut};return ae.datetimeFormats=cA,ae.numberFormats=IA,ae.rt=kA,ae.te=Tt,ae.tm=v,ae.d=WA,ae.n=te,ae.getDateTimeFormat=SA,ae.setDateTimeFormat=ft,ae.mergeDateTimeFormat=Re,ae.getNumberFormat=Ke,ae.setNumberFormat=Sn,ae.mergeNumberFormat=un,ae[nm]=n,ae[Lu]=ct,ae[Hu]=ke,ae[Mu]=je,process.env.NODE_ENV!=="production"&&(ae[Nu]=K=>{H.__v_emitter=K},ae[Du]=()=>{H.__v_emitter=void 0}),ae}const Ku={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function hT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===p.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function cm(t){return p.Fragment}ze({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ye(t)||!isNaN(t)}},Ku);function pT(t){return ye(t)&&!tA(t[0])}function um(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:PA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?ze({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];ye(c)?u=c.map((g,m)=>{const w=r[g.type],U=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return pT(U)&&(U[0].key=`${g.type}-${m}`),U}):tA(c)&&(u=[c]);const f=ze({},i),h=tA(t.tag)||PA(t.tag)?t.tag:cm();return p.h(h,f,u)}}ze({value:{type:Number,required:!0},format:{type:[String,Object]}},Ku),ze({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ku);function fm(t,A){}const gT=kn("global-vue-i18n");function Qa(t={}){const A=p.getCurrentInstance();if(A==null)throw Qr(ce.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Qr(ce.NOT_INSTALLED);const e=BT(A),n=wT(e),r=rm(A),i=mT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Qr(ce.NOT_AVAILABLE_IN_LEGACY_MODE);return QT(A,i,n,t)}if(i==="global")return cT(n,t,r),n;if(i==="parent"){let c=CT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&wr(Ou(Vt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=ze({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=dT(c),s.__composerExtend&&(a[ku]=s.__composerExtend(a)),ET(s,A,a),s.__setInstance(A,a)}return a}function BT(t){{const A=p.inject(t.isCE?gT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Qr(t.isCE?ce.NOT_INSTALLED_WITH_PROVIDE:ce.UNEXPECTED_ERROR);return A}}function mT(t,A){return ma(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function wT(t){return t.mode==="composition"?t.global:t.global.__composer}function CT(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[nm]&&(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 ET(t,A,e){let n=null;p.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=D1();const r=e;r[Nu]&&r[Nu](n),n.on("*",fm)}},A),p.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",fm),r[Du]&&r[Du](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[ku];i&&(i(),delete r[ku])},A)}function QT(t,A,e,n={}){const r=A==="local",i=p.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Qr(ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ZA(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=p.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:Ws),c=p.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||ye(n.fallbackLocale)||_A(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=p.ref(Ru(a.value,n)),f=p.ref(_A(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),h=p.ref(_A(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:ZA(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:ZA(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:ZA(n.fallbackRoot)?n.fallbackRoot:!0,U=!!n.fallbackFormat,b=re(n.missing)?n.missing:null,Q=re(n.postTranslation)?n.postTranslation:null,I=r?e.warnHtmlMessage:ZA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,E=r?e.modifiers:_A(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&e.pluralRules;function T(){return[a.value,c.value,u.value,f.value,h.value]}const H=p.computed({get:()=>i.value?i.value.locale.value:a.value,set:v=>{i.value&&(i.value.locale.value=v),a.value=v}}),Y=p.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:v=>{i.value&&(i.value.fallbackLocale.value=v),c.value=v}}),P=p.computed(()=>i.value?i.value.messages.value:u.value),oA=p.computed(()=>f.value),UA=p.computed(()=>h.value);function hA(){return i.value?i.value.getPostTranslationHandler():Q}function cA(v){i.value&&i.value.setPostTranslationHandler(v)}function IA(){return i.value?i.value.getMissingHandler():b}function ie(v){i.value&&i.value.setMissingHandler(v)}function KA(v){return T(),v()}function nA(...v){return i.value?KA(()=>Reflect.apply(i.value.t,null,[...v])):KA(()=>"")}function sA(...v){return i.value?Reflect.apply(i.value.rt,null,[...v]):""}function jA(...v){return i.value?KA(()=>Reflect.apply(i.value.d,null,[...v])):KA(()=>"")}function LA(...v){return i.value?KA(()=>Reflect.apply(i.value.n,null,[...v])):KA(()=>"")}function DA(v){return i.value?i.value.tm(v):{}}function kA(v,k){return i.value?i.value.te(v,k):!1}function WA(v){return i.value?i.value.getLocaleMessage(v):{}}function te(v,k){i.value&&(i.value.setLocaleMessage(v,k),u.value[v]=k)}function qA(v,k){i.value&&i.value.mergeLocaleMessage(v,k)}function de(v){return i.value?i.value.getDateTimeFormat(v):{}}function lt(v,k){i.value&&(i.value.setDateTimeFormat(v,k),f.value[v]=k)}function ct(v,k){i.value&&i.value.mergeDateTimeFormat(v,k)}function je(v){return i.value?i.value.getNumberFormat(v):{}}function ke(v,k){i.value&&(i.value.setNumberFormat(v,k),h.value[v]=k)}function ut(v,k){i.value&&i.value.mergeNumberFormat(v,k)}const Tt={get id(){return i.value?i.value.id:-1},locale:H,fallbackLocale:Y,messages:P,datetimeFormats:oA,numberFormats:UA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(v){i.value&&(i.value.inheritLocale=v)},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:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(v){i.value&&(i.value.fallbackRoot=v)},get fallbackFormat(){return i.value?i.value.fallbackFormat:U},set fallbackFormat(v){i.value&&(i.value.fallbackFormat=v)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(v){i.value&&(i.value.warnHtmlMessage=v)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(v){i.value&&(i.value.escapeParameter=v)},t:nA,getPostTranslationHandler:hA,setPostTranslationHandler:cA,getMissingHandler:IA,setMissingHandler:ie,rt:sA,d:jA,n:LA,tm:DA,te:kA,getLocaleMessage:WA,setLocaleMessage:te,mergeLocaleMessage:qA,getDateTimeFormat:de,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:je,setNumberFormat:ke,mergeNumberFormat:ut};function x(v){v.locale.value=a.value,v.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{v.mergeLocaleMessage(k,u.value[k])}),Object.keys(f.value).forEach(k=>{v.mergeDateTimeFormat(k,f.value[k])}),Object.keys(h.value).forEach(k=>{v.mergeNumberFormat(k,h.value[k])}),v.escapeParameter=M,v.fallbackFormat=U,v.fallbackRoot=w,v.fallbackWarn=m,v.missingWarn=g,v.warnHtmlMessage=I}return p.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Qr(ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const v=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=v.locale.value,c.value=v.fallbackLocale.value,u.value=v.messages.value,f.value=v.datetimeFormats.value,h.value=v.numberFormats.value):r&&x(v)}),Tt}if(sT(),__INTLIFY_JIT_COMPILATION__?_B(jS):_B(ZS),GS(FS),WS(vB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Rn();t.__INTLIFY__=!0,OS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const FT={class:"input input-dropdown"},UT={class:"dropdown"},bT={class:"caption"},vT=["innerHTML"],IT={class:"caption__text"},ST={class:"d-block text-truncate"},TT={class:"dropdown-menu"},_T={class:"form-check"},xT=["value","id","name","label","required","disabled"],OT=["value","id","name","label","required","disabled"],LT=["for"],HT=p.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},value:{type:String},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}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=Qa(),n=t,r=A,i=p.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=p.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&n.modelValue.includes(c.value)}))),a=p.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=p.resolveComponent("base-button");return p.openBlock(),p.createElementBlock("div",FT,[p.createElementVNode("div",UT,[p.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:p.withCtx(()=>[p.createElementVNode("span",bT,[p.createVNode(p.Transition,{name:"bounce"},{default:p.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(p.openBlock(),p.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,vT)):p.createCommentVNode("",!0)]),_:1}),p.createElementVNode("span",IT,[p.createElementVNode("span",ST,p.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),p.createElementVNode("ul",TT,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s.value,(h,g)=>(p.openBlock(),p.createElementBlock("li",{key:`${h.value}-${g}`},[p.createElementVNode("div",{class:p.normalizeClass(["dropdown-item",h.active&&"active"])},[p.createElementVNode("div",_T,[t.multiple?p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__if`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,xT)),[[p.vModelCheckbox,i.value]]):p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__else`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,OT)),[[p.vModelRadio,i.value]]),p.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${g}`},p.toDisplayString(h.text),9,LT)])],2)]))),128))])])])}}}),_G="";var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fa={exports:{}};/**
|
|
134
134
|
* @license
|
|
135
135
|
* Lodash <https://lodash.com/>
|
|
136
136
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
137
137
|
* Released under MIT license <https://lodash.com/license>
|
|
138
138
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
139
139
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
140
|
-
*/Fa.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__",h=1,g=2,m=4,w=1,U=2,b=1,F=2,I=4,M=8,E=16,N=32,T=64,H=128,Y=256,V=512,z=30,lA="...",uA=800,aA=16,LA=1,Ae=2,xA=3,CA=1/0,vA=9007199254740991,re=17976931348623157e292,RA=0/0,WA=4294967295,we=WA-1,Ce=WA>>>1,Ue=[["ary",H],["bind",b],["bindKey",F],["curry",M],["curryRight",E],["flip",V],["partial",N],["partialRight",T],["rearg",Y]],ee="[object Arguments]",ye="[object Array]",lt="[object AsyncFunction]",ct="[object Boolean]",je="[object Date]",ke="[object DOMException]",ut="[object Error]",Tt="[object Function]",x="[object GeneratorFunction]",v="[object Map]",k="[object Number]",Z="[object Null]",oA="[object Object]",IA="[object Promise]",ft="[object Proxy]",Re="[object RegExp]",Ke="[object Set]",Sn="[object String]",un="[object Symbol]",ie="[object Undefined]",K="[object WeakMap]",X="[object WeakSet]",UA="[object ArrayBuffer]",VA="[object DataView]",_t="[object Float32Array]",Tn="[object Float64Array]",Xt="[object Int8Array]",xt="[object Int16Array]",fi="[object Int32Array]",R="[object Uint8Array]",rA="[object Uint8ClampedArray]",fA="[object Uint16Array]",DA="[object Uint32Array]",HA=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$n=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,Jn=RegExp($n.source),mo=RegExp(Bo.source),rs=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,ml=/<%=([\s\S]+?)%>/g,wo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,kD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wf=/[\\^$.*+?()[\]{}|]/g,RD=RegExp(Wf.source),$f=/^\s+/,KD=/\s/,PD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,VD=/\{\n\/\* \[wrapped with (.+)\] \*/,GD=/,? & /,WD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$D=/[()=,{}\[\]\/\s]/,JD=/\\(\\)?/g,XD=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,FC=/\w*$/,YD=/^[-+]0x[0-9a-f]+$/i,zD=/^0b[01]+$/i,qD=/^\[object .+?Constructor\]$/,ZD=/^0o[0-7]+$/i,jD=/^(?:0|[1-9]\d*)$/,Ak=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,ek=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",tk="\\u0300-\\u036f",nk="\\ufe20-\\ufe2f",rk="\\u20d0-\\u20ff",UC=tk+nk+rk,bC="\\u2700-\\u27bf",vC="a-z\\xdf-\\xf6\\xf8-\\xff",ik="\\xac\\xb1\\xd7\\xf7",sk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ok="\\u2000-\\u206f",ak=" \\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",IC="A-Z\\xc0-\\xd6\\xd8-\\xde",SC="\\ufe0e\\ufe0f",TC=ik+sk+ok+ak,Jf="['’]",lk="["+Cl+"]",_C="["+TC+"]",yl="["+UC+"]",xC="\\d+",ck="["+bC+"]",OC="["+vC+"]",LC="[^"+Cl+TC+xC+bC+vC+IC+"]",Xf="\\ud83c[\\udffb-\\udfff]",uk="(?:"+yl+"|"+Xf+")",HC="[^"+Cl+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",zf="[\\ud800-\\udbff][\\udc00-\\udfff]",ss="["+IC+"]",MC="\\u200d",NC="(?:"+OC+"|"+LC+")",fk="(?:"+ss+"|"+LC+")",DC="(?:"+Jf+"(?:d|ll|m|re|s|t|ve))?",kC="(?:"+Jf+"(?:D|LL|M|RE|S|T|VE))?",RC=uk+"?",KC="["+SC+"]?",dk="(?:"+MC+"(?:"+[HC,Yf,zf].join("|")+")"+KC+RC+")*",hk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",PC=KC+RC+dk,gk="(?:"+[ck,Yf,zf].join("|")+")"+PC,Bk="(?:"+[HC+yl+"?",yl,Yf,zf,lk].join("|")+")",mk=RegExp(Jf,"g"),wk=RegExp(yl,"g"),qf=RegExp(Xf+"(?="+Xf+")|"+Bk+PC,"g"),Ck=RegExp([ss+"?"+OC+"+"+DC+"(?="+[_C,ss,"$"].join("|")+")",fk+"+"+kC+"(?="+[_C,ss+NC,"$"].join("|")+")",ss+"?"+NC+"+"+DC,ss+"+"+kC,pk,hk,xC,gk].join("|"),"g"),yk=RegExp("["+MC+Cl+UC+SC+"]"),Ek=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qk=["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"],F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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"},bk={"&":"&","<":"<",">":">",'"':""","'":"'"},vk={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ik={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sk=parseFloat,Tk=parseInt,VC=typeof Xs=="object"&&Xs&&Xs.Object===Object&&Xs,_k=typeof self=="object"&&self&&self.Object===Object&&self,Ve=VC||_k||Function("return this")(),Zf=A&&!A.nodeType&&A,di=Zf&&!0&&t&&!t.nodeType&&t,GC=di&&di.exports===Zf,jf=GC&&VC.process,Yt=function(){try{var O=di&&di.require&&di.require("util").types;return O||jf&&jf.binding&&jf.binding("util")}catch{}}(),WC=Yt&&Yt.isArrayBuffer,$C=Yt&&Yt.isDate,JC=Yt&&Yt.isMap,XC=Yt&&Yt.isRegExp,YC=Yt&&Yt.isSet,zC=Yt&&Yt.isTypedArray;function Ot(O,P,D){switch(D.length){case 0:return O.call(P);case 1:return O.call(P,D[0]);case 2:return O.call(P,D[0],D[1]);case 3:return O.call(P,D[0],D[1],D[2])}return O.apply(P,D)}function xk(O,P,D,tA){for(var BA=-1,KA=O==null?0:O.length;++BA<KA;){var be=O[BA];P(tA,be,D(be),O)}return tA}function zt(O,P){for(var D=-1,tA=O==null?0:O.length;++D<tA&&P(O[D],D,O)!==!1;);return O}function Ok(O,P){for(var D=O==null?0:O.length;D--&&P(O[D],D,O)!==!1;);return O}function qC(O,P){for(var D=-1,tA=O==null?0:O.length;++D<tA;)if(!P(O[D],D,O))return!1;return!0}function Lr(O,P){for(var D=-1,tA=O==null?0:O.length,BA=0,KA=[];++D<tA;){var be=O[D];P(be,D,O)&&(KA[BA++]=be)}return KA}function El(O,P){var D=O==null?0:O.length;return!!D&&as(O,P,0)>-1}function Ad(O,P,D){for(var tA=-1,BA=O==null?0:O.length;++tA<BA;)if(D(P,O[tA]))return!0;return!1}function se(O,P){for(var D=-1,tA=O==null?0:O.length,BA=Array(tA);++D<tA;)BA[D]=P(O[D],D,O);return BA}function Hr(O,P){for(var D=-1,tA=P.length,BA=O.length;++D<tA;)O[BA+D]=P[D];return O}function ed(O,P,D,tA){var BA=-1,KA=O==null?0:O.length;for(tA&&KA&&(D=O[++BA]);++BA<KA;)D=P(D,O[BA],BA,O);return D}function Lk(O,P,D,tA){var BA=O==null?0:O.length;for(tA&&BA&&(D=O[--BA]);BA--;)D=P(D,O[BA],BA,O);return D}function td(O,P){for(var D=-1,tA=O==null?0:O.length;++D<tA;)if(P(O[D],D,O))return!0;return!1}var Hk=nd("length");function Mk(O){return O.split("")}function Nk(O){return O.match(WD)||[]}function ZC(O,P,D){var tA;return D(O,function(BA,KA,be){if(P(BA,KA,be))return tA=KA,!1}),tA}function Ql(O,P,D,tA){for(var BA=O.length,KA=D+(tA?1:-1);tA?KA--:++KA<BA;)if(P(O[KA],KA,O))return KA;return-1}function as(O,P,D){return P===P?Yk(O,P,D):Ql(O,jC,D)}function Dk(O,P,D,tA){for(var BA=D-1,KA=O.length;++BA<KA;)if(tA(O[BA],P))return BA;return-1}function jC(O){return O!==O}function A0(O,P){var D=O==null?0:O.length;return D?id(O,P)/D:RA}function nd(O){return function(P){return P==null?e:P[O]}}function rd(O){return function(P){return O==null?e:O[P]}}function e0(O,P,D,tA,BA){return BA(O,function(KA,be,zA){D=tA?(tA=!1,KA):P(D,KA,be,zA)}),D}function kk(O,P){var D=O.length;for(O.sort(P);D--;)O[D]=O[D].value;return O}function id(O,P){for(var D,tA=-1,BA=O.length;++tA<BA;){var KA=P(O[tA]);KA!==e&&(D=D===e?KA:D+KA)}return D}function sd(O,P){for(var D=-1,tA=Array(O);++D<O;)tA[D]=P(D);return tA}function Rk(O,P){return se(P,function(D){return[D,O[D]]})}function t0(O){return O&&O.slice(0,s0(O)+1).replace($f,"")}function Lt(O){return function(P){return O(P)}}function od(O,P){return se(P,function(D){return O[D]})}function Co(O,P){return O.has(P)}function n0(O,P){for(var D=-1,tA=O.length;++D<tA&&as(P,O[D],0)>-1;);return D}function r0(O,P){for(var D=O.length;D--&&as(P,O[D],0)>-1;);return D}function Kk(O,P){for(var D=O.length,tA=0;D--;)O[D]===P&&++tA;return tA}var Pk=rd(Uk),Vk=rd(bk);function Gk(O){return"\\"+Ik[O]}function Wk(O,P){return O==null?e:O[P]}function ls(O){return yk.test(O)}function $k(O){return Ek.test(O)}function Jk(O){for(var P,D=[];!(P=O.next()).done;)D.push(P.value);return D}function ad(O){var P=-1,D=Array(O.size);return O.forEach(function(tA,BA){D[++P]=[BA,tA]}),D}function i0(O,P){return function(D){return O(P(D))}}function Mr(O,P){for(var D=-1,tA=O.length,BA=0,KA=[];++D<tA;){var be=O[D];(be===P||be===f)&&(O[D]=f,KA[BA++]=D)}return KA}function Fl(O){var P=-1,D=Array(O.size);return O.forEach(function(tA){D[++P]=tA}),D}function Xk(O){var P=-1,D=Array(O.size);return O.forEach(function(tA){D[++P]=[tA,tA]}),D}function Yk(O,P,D){for(var tA=D-1,BA=O.length;++tA<BA;)if(O[tA]===P)return tA;return-1}function zk(O,P,D){for(var tA=D+1;tA--;)if(O[tA]===P)return tA;return tA}function cs(O){return ls(O)?Zk(O):Hk(O)}function fn(O){return ls(O)?jk(O):Mk(O)}function s0(O){for(var P=O.length;P--&&KD.test(O.charAt(P)););return P}var qk=rd(vk);function Zk(O){for(var P=qf.lastIndex=0;qf.test(O);)++P;return P}function jk(O){return O.match(qf)||[]}function AR(O){return O.match(Ck)||[]}var eR=function O(P){P=P==null?Ve:us.defaults(Ve.Object(),P,us.pick(Ve,Qk));var D=P.Array,tA=P.Date,BA=P.Error,KA=P.Function,be=P.Math,zA=P.Object,ld=P.RegExp,tR=P.String,qt=P.TypeError,Ul=D.prototype,nR=KA.prototype,fs=zA.prototype,bl=P["__core-js_shared__"],vl=nR.toString,$A=fs.hasOwnProperty,rR=0,o0=function(){var o=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Il=fs.toString,iR=vl.call(zA),sR=Ve._,oR=ld("^"+vl.call($A).replace(Wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sl=GC?P.Buffer:e,Nr=P.Symbol,Tl=P.Uint8Array,a0=Sl?Sl.allocUnsafe:e,_l=i0(zA.getPrototypeOf,zA),l0=zA.create,c0=fs.propertyIsEnumerable,xl=Ul.splice,u0=Nr?Nr.isConcatSpreadable:e,yo=Nr?Nr.iterator:e,hi=Nr?Nr.toStringTag:e,Ol=function(){try{var o=wi(zA,"defineProperty");return o({},"",{}),o}catch{}}(),aR=P.clearTimeout!==Ve.clearTimeout&&P.clearTimeout,lR=tA&&tA.now!==Ve.Date.now&&tA.now,cR=P.setTimeout!==Ve.setTimeout&&P.setTimeout,Ll=be.ceil,Hl=be.floor,cd=zA.getOwnPropertySymbols,uR=Sl?Sl.isBuffer:e,f0=P.isFinite,fR=Ul.join,dR=i0(zA.keys,zA),ve=be.max,At=be.min,hR=tA.now,pR=P.parseInt,d0=be.random,gR=Ul.reverse,ud=wi(P,"DataView"),Eo=wi(P,"Map"),fd=wi(P,"Promise"),ds=wi(P,"Set"),Qo=wi(P,"WeakMap"),Fo=wi(zA,"create"),Ml=Qo&&new Qo,hs={},BR=Ci(ud),mR=Ci(Eo),wR=Ci(fd),CR=Ci(ds),yR=Ci(Qo),Nl=Nr?Nr.prototype:e,Uo=Nl?Nl.valueOf:e,h0=Nl?Nl.toString:e;function y(o){if(ce(o)&&!mA(o)&&!(o instanceof OA)){if(o instanceof Zt)return o;if($A.call(o,"__wrapped__"))return py(o)}return new Zt(o)}var ps=function(){function o(){}return function(l){if(!ae(l))return{};if(l0)return l0(l);o.prototype=l;var d=new o;return o.prototype=e,d}}();function Dl(){}function Zt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}y.templateSettings={escape:rs,evaluate:Or,interpolate:ml,variable:"",imports:{_:y}},y.prototype=Dl.prototype,y.prototype.constructor=y,Zt.prototype=ps(Dl.prototype),Zt.prototype.constructor=Zt;function OA(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=WA,this.__views__=[]}function ER(){var o=new OA(this.__wrapped__);return o.__actions__=yt(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=yt(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=yt(this.__views__),o}function QR(){if(this.__filtered__){var o=new OA(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function FR(){var o=this.__wrapped__.value(),l=this.__dir__,d=mA(o),B=l<0,C=d?o.length:0,Q=M4(0,C,this.__views__),S=Q.start,_=Q.end,L=_-S,G=B?_:S-1,W=this.__iteratees__,$=W.length,q=0,sA=At(L,this.__takeCount__);if(!d||!B&&C==L&&sA==L)return D0(o,this.__actions__);var hA=[];A:for(;L--&&q<sA;){G+=l;for(var FA=-1,pA=o[G];++FA<$;){var SA=W[FA],MA=SA.iteratee,Nt=SA.type,pt=MA(pA);if(Nt==Ae)pA=pt;else if(!pt){if(Nt==LA)continue A;break A}}hA[q++]=pA}return hA}OA.prototype=ps(Dl.prototype),OA.prototype.constructor=OA;function pi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function UR(){this.__data__=Fo?Fo(null):{},this.size=0}function bR(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function vR(o){var l=this.__data__;if(Fo){var d=l[o];return d===c?e:d}return $A.call(l,o)?l[o]:e}function IR(o){var l=this.__data__;return Fo?l[o]!==e:$A.call(l,o)}function SR(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=Fo&&l===e?c:l,this}pi.prototype.clear=UR,pi.prototype.delete=bR,pi.prototype.get=vR,pi.prototype.has=IR,pi.prototype.set=SR;function Xn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function TR(){this.__data__=[],this.size=0}function _R(o){var l=this.__data__,d=kl(l,o);if(d<0)return!1;var B=l.length-1;return d==B?l.pop():xl.call(l,d,1),--this.size,!0}function xR(o){var l=this.__data__,d=kl(l,o);return d<0?e:l[d][1]}function OR(o){return kl(this.__data__,o)>-1}function LR(o,l){var d=this.__data__,B=kl(d,o);return B<0?(++this.size,d.push([o,l])):d[B][1]=l,this}Xn.prototype.clear=TR,Xn.prototype.delete=_R,Xn.prototype.get=xR,Xn.prototype.has=OR,Xn.prototype.set=LR;function Yn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function HR(){this.size=0,this.__data__={hash:new pi,map:new(Eo||Xn),string:new pi}}function MR(o){var l=ql(this,o).delete(o);return this.size-=l?1:0,l}function NR(o){return ql(this,o).get(o)}function DR(o){return ql(this,o).has(o)}function kR(o,l){var d=ql(this,o),B=d.size;return d.set(o,l),this.size+=d.size==B?0:1,this}Yn.prototype.clear=HR,Yn.prototype.delete=MR,Yn.prototype.get=NR,Yn.prototype.has=DR,Yn.prototype.set=kR;function gi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Yn;++l<d;)this.add(o[l])}function RR(o){return this.__data__.set(o,c),this}function KR(o){return this.__data__.has(o)}gi.prototype.add=gi.prototype.push=RR,gi.prototype.has=KR;function dn(o){var l=this.__data__=new Xn(o);this.size=l.size}function PR(){this.__data__=new Xn,this.size=0}function VR(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function GR(o){return this.__data__.get(o)}function WR(o){return this.__data__.has(o)}function $R(o,l){var d=this.__data__;if(d instanceof Xn){var B=d.__data__;if(!Eo||B.length<r-1)return B.push([o,l]),this.size=++d.size,this;d=this.__data__=new Yn(B)}return d.set(o,l),this.size=d.size,this}dn.prototype.clear=PR,dn.prototype.delete=VR,dn.prototype.get=GR,dn.prototype.has=WR,dn.prototype.set=$R;function p0(o,l){var d=mA(o),B=!d&&yi(o),C=!d&&!B&&Pr(o),Q=!d&&!B&&!C&&ws(o),S=d||B||C||Q,_=S?sd(o.length,tR):[],L=_.length;for(var G in o)(l||$A.call(o,G))&&!(S&&(G=="length"||C&&(G=="offset"||G=="parent")||Q&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||jn(G,L)))&&_.push(G);return _}function g0(o){var l=o.length;return l?o[Qd(0,l-1)]:e}function JR(o,l){return Zl(yt(o),Bi(l,0,o.length))}function XR(o){return Zl(yt(o))}function dd(o,l,d){(d!==e&&!hn(o[l],d)||d===e&&!(l in o))&&zn(o,l,d)}function bo(o,l,d){var B=o[l];(!($A.call(o,l)&&hn(B,d))||d===e&&!(l in o))&&zn(o,l,d)}function kl(o,l){for(var d=o.length;d--;)if(hn(o[d][0],l))return d;return-1}function YR(o,l,d,B){return Dr(o,function(C,Q,S){l(B,C,d(C),S)}),B}function B0(o,l){return o&&xn(l,Oe(l),o)}function zR(o,l){return o&&xn(l,Qt(l),o)}function zn(o,l,d){l=="__proto__"&&Ol?Ol(o,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[l]=d}function hd(o,l){for(var d=-1,B=l.length,C=D(B),Q=o==null;++d<B;)C[d]=Q?e:Xd(o,l[d]);return C}function Bi(o,l,d){return o===o&&(d!==e&&(o=o<=d?o:d),l!==e&&(o=o>=l?o:l)),o}function jt(o,l,d,B,C,Q){var S,_=l&h,L=l&g,G=l&m;if(d&&(S=C?d(o,B,C,Q):d(o)),S!==e)return S;if(!ae(o))return o;var W=mA(o);if(W){if(S=D4(o),!_)return yt(o,S)}else{var $=et(o),q=$==Tt||$==x;if(Pr(o))return K0(o,_);if($==oA||$==ee||q&&!C){if(S=L||q?{}:sy(o),!_)return L?v4(o,zR(S,o)):b4(o,B0(S,o))}else{if(!ZA[$])return C?o:{};S=k4(o,$,_)}}Q||(Q=new dn);var sA=Q.get(o);if(sA)return sA;Q.set(o,S),Hy(o)?o.forEach(function(pA){S.add(jt(pA,l,d,pA,o,Q))}):Oy(o)&&o.forEach(function(pA,SA){S.set(SA,jt(pA,l,d,SA,o,Q))});var hA=G?L?Ld:Od:L?Qt:Oe,FA=W?e:hA(o);return zt(FA||o,function(pA,SA){FA&&(SA=pA,pA=o[SA]),bo(S,SA,jt(pA,l,d,SA,o,Q))}),S}function qR(o){var l=Oe(o);return function(d){return m0(d,o,l)}}function m0(o,l,d){var B=d.length;if(o==null)return!B;for(o=zA(o);B--;){var C=d[B],Q=l[C],S=o[C];if(S===e&&!(C in o)||!Q(S))return!1}return!0}function w0(o,l,d){if(typeof o!="function")throw new qt(s);return Oo(function(){o.apply(e,d)},l)}function vo(o,l,d,B){var C=-1,Q=El,S=!0,_=o.length,L=[],G=l.length;if(!_)return L;d&&(l=se(l,Lt(d))),B?(Q=Ad,S=!1):l.length>=r&&(Q=Co,S=!1,l=new gi(l));A:for(;++C<_;){var W=o[C],$=d==null?W:d(W);if(W=B||W!==0?W:0,S&&$===$){for(var q=G;q--;)if(l[q]===$)continue A;L.push(W)}else Q(l,$,B)||L.push(W)}return L}var Dr=$0(_n),C0=$0(gd,!0);function ZR(o,l){var d=!0;return Dr(o,function(B,C,Q){return d=!!l(B,C,Q),d}),d}function Rl(o,l,d){for(var B=-1,C=o.length;++B<C;){var Q=o[B],S=l(Q);if(S!=null&&(_===e?S===S&&!Mt(S):d(S,_)))var _=S,L=Q}return L}function jR(o,l,d,B){var C=o.length;for(d=yA(d),d<0&&(d=-d>C?0:C+d),B=B===e||B>C?C:yA(B),B<0&&(B+=C),B=d>B?0:Ny(B);d<B;)o[d++]=l;return o}function y0(o,l){var d=[];return Dr(o,function(B,C,Q){l(B,C,Q)&&d.push(B)}),d}function Ge(o,l,d,B,C){var Q=-1,S=o.length;for(d||(d=K4),C||(C=[]);++Q<S;){var _=o[Q];l>0&&d(_)?l>1?Ge(_,l-1,d,B,C):Hr(C,_):B||(C[C.length]=_)}return C}var pd=J0(),E0=J0(!0);function _n(o,l){return o&&pd(o,l,Oe)}function gd(o,l){return o&&E0(o,l,Oe)}function Kl(o,l){return Lr(l,function(d){return Ar(o[d])})}function mi(o,l){l=Rr(l,o);for(var d=0,B=l.length;o!=null&&d<B;)o=o[On(l[d++])];return d&&d==B?o:e}function Q0(o,l,d){var B=l(o);return mA(o)?B:Hr(B,d(o))}function dt(o){return o==null?o===e?ie:Z:hi&&hi in zA(o)?H4(o):X4(o)}function Bd(o,l){return o>l}function A4(o,l){return o!=null&&$A.call(o,l)}function e4(o,l){return o!=null&&l in zA(o)}function t4(o,l,d){return o>=At(l,d)&&o<ve(l,d)}function md(o,l,d){for(var B=d?Ad:El,C=o[0].length,Q=o.length,S=Q,_=D(Q),L=1/0,G=[];S--;){var W=o[S];S&&l&&(W=se(W,Lt(l))),L=At(W.length,L),_[S]=!d&&(l||C>=120&&W.length>=120)?new gi(S&&W):e}W=o[0];var $=-1,q=_[0];A:for(;++$<C&&G.length<L;){var sA=W[$],hA=l?l(sA):sA;if(sA=d||sA!==0?sA:0,!(q?Co(q,hA):B(G,hA,d))){for(S=Q;--S;){var FA=_[S];if(!(FA?Co(FA,hA):B(o[S],hA,d)))continue A}q&&q.push(hA),G.push(sA)}}return G}function n4(o,l,d,B){return _n(o,function(C,Q,S){l(B,d(C),Q,S)}),B}function Io(o,l,d){l=Rr(l,o),o=cy(o,l);var B=o==null?o:o[On(en(l))];return B==null?e:Ot(B,o,d)}function F0(o){return ce(o)&&dt(o)==ee}function r4(o){return ce(o)&&dt(o)==UA}function i4(o){return ce(o)&&dt(o)==je}function So(o,l,d,B,C){return o===l?!0:o==null||l==null||!ce(o)&&!ce(l)?o!==o&&l!==l:s4(o,l,d,B,So,C)}function s4(o,l,d,B,C,Q){var S=mA(o),_=mA(l),L=S?ye:et(o),G=_?ye:et(l);L=L==ee?oA:L,G=G==ee?oA:G;var W=L==oA,$=G==oA,q=L==G;if(q&&Pr(o)){if(!Pr(l))return!1;S=!0,W=!1}if(q&&!W)return Q||(Q=new dn),S||ws(o)?ny(o,l,d,B,C,Q):O4(o,l,L,d,B,C,Q);if(!(d&w)){var sA=W&&$A.call(o,"__wrapped__"),hA=$&&$A.call(l,"__wrapped__");if(sA||hA){var FA=sA?o.value():o,pA=hA?l.value():l;return Q||(Q=new dn),C(FA,pA,d,B,Q)}}return q?(Q||(Q=new dn),L4(o,l,d,B,C,Q)):!1}function o4(o){return ce(o)&&et(o)==v}function wd(o,l,d,B){var C=d.length,Q=C,S=!B;if(o==null)return!Q;for(o=zA(o);C--;){var _=d[C];if(S&&_[2]?_[1]!==o[_[0]]:!(_[0]in o))return!1}for(;++C<Q;){_=d[C];var L=_[0],G=o[L],W=_[1];if(S&&_[2]){if(G===e&&!(L in o))return!1}else{var $=new dn;if(B)var q=B(G,W,L,o,l,$);if(!(q===e?So(W,G,w|U,B,$):q))return!1}}return!0}function U0(o){if(!ae(o)||V4(o))return!1;var l=Ar(o)?oR:qD;return l.test(Ci(o))}function a4(o){return ce(o)&&dt(o)==Re}function l4(o){return ce(o)&&et(o)==Ke}function c4(o){return ce(o)&&rc(o.length)&&!!te[dt(o)]}function b0(o){return typeof o=="function"?o:o==null?Ft:typeof o=="object"?mA(o)?S0(o[0],o[1]):I0(o):Xy(o)}function Cd(o){if(!xo(o))return dR(o);var l=[];for(var d in zA(o))$A.call(o,d)&&d!="constructor"&&l.push(d);return l}function u4(o){if(!ae(o))return J4(o);var l=xo(o),d=[];for(var B in o)B=="constructor"&&(l||!$A.call(o,B))||d.push(B);return d}function yd(o,l){return o<l}function v0(o,l){var d=-1,B=Et(o)?D(o.length):[];return Dr(o,function(C,Q,S){B[++d]=l(C,Q,S)}),B}function I0(o){var l=Md(o);return l.length==1&&l[0][2]?ay(l[0][0],l[0][1]):function(d){return d===o||wd(d,o,l)}}function S0(o,l){return Dd(o)&&oy(l)?ay(On(o),l):function(d){var B=Xd(d,o);return B===e&&B===l?Yd(d,o):So(l,B,w|U)}}function Pl(o,l,d,B,C){o!==l&&pd(l,function(Q,S){if(C||(C=new dn),ae(Q))f4(o,l,S,d,Pl,B,C);else{var _=B?B(Rd(o,S),Q,S+"",o,l,C):e;_===e&&(_=Q),dd(o,S,_)}},Qt)}function f4(o,l,d,B,C,Q,S){var _=Rd(o,d),L=Rd(l,d),G=S.get(L);if(G){dd(o,d,G);return}var W=Q?Q(_,L,d+"",o,l,S):e,$=W===e;if($){var q=mA(L),sA=!q&&Pr(L),hA=!q&&!sA&&ws(L);W=L,q||sA||hA?mA(_)?W=_:de(_)?W=yt(_):sA?($=!1,W=K0(L,!0)):hA?($=!1,W=P0(L,!0)):W=[]:Lo(L)||yi(L)?(W=_,yi(_)?W=Dy(_):(!ae(_)||Ar(_))&&(W=sy(L))):$=!1}$&&(S.set(L,W),C(W,L,B,Q,S),S.delete(L)),dd(o,d,W)}function T0(o,l){var d=o.length;if(d)return l+=l<0?d:0,jn(l,d)?o[l]:e}function _0(o,l,d){l.length?l=se(l,function(Q){return mA(Q)?function(S){return mi(S,Q.length===1?Q[0]:Q)}:Q}):l=[Ft];var B=-1;l=se(l,Lt(dA()));var C=v0(o,function(Q,S,_){var L=se(l,function(G){return G(Q)});return{criteria:L,index:++B,value:Q}});return kk(C,function(Q,S){return U4(Q,S,d)})}function d4(o,l){return x0(o,l,function(d,B){return Yd(o,B)})}function x0(o,l,d){for(var B=-1,C=l.length,Q={};++B<C;){var S=l[B],_=mi(o,S);d(_,S)&&To(Q,Rr(S,o),_)}return Q}function h4(o){return function(l){return mi(l,o)}}function Ed(o,l,d,B){var C=B?Dk:as,Q=-1,S=l.length,_=o;for(o===l&&(l=yt(l)),d&&(_=se(o,Lt(d)));++Q<S;)for(var L=0,G=l[Q],W=d?d(G):G;(L=C(_,W,L,B))>-1;)_!==o&&xl.call(_,L,1),xl.call(o,L,1);return o}function O0(o,l){for(var d=o?l.length:0,B=d-1;d--;){var C=l[d];if(d==B||C!==Q){var Q=C;jn(C)?xl.call(o,C,1):bd(o,C)}}return o}function Qd(o,l){return o+Hl(d0()*(l-o+1))}function p4(o,l,d,B){for(var C=-1,Q=ve(Ll((l-o)/(d||1)),0),S=D(Q);Q--;)S[B?Q:++C]=o,o+=d;return S}function Fd(o,l){var d="";if(!o||l<1||l>vA)return d;do l%2&&(d+=o),l=Hl(l/2),l&&(o+=o);while(l);return d}function bA(o,l){return Kd(ly(o,l,Ft),o+"")}function g4(o){return g0(Cs(o))}function B4(o,l){var d=Cs(o);return Zl(d,Bi(l,0,d.length))}function To(o,l,d,B){if(!ae(o))return o;l=Rr(l,o);for(var C=-1,Q=l.length,S=Q-1,_=o;_!=null&&++C<Q;){var L=On(l[C]),G=d;if(L==="__proto__"||L==="constructor"||L==="prototype")return o;if(C!=S){var W=_[L];G=B?B(W,L,_):e,G===e&&(G=ae(W)?W:jn(l[C+1])?[]:{})}bo(_,L,G),_=_[L]}return o}var L0=Ml?function(o,l){return Ml.set(o,l),o}:Ft,m4=Ol?function(o,l){return Ol(o,"toString",{configurable:!0,enumerable:!1,value:qd(l),writable:!0})}:Ft;function w4(o){return Zl(Cs(o))}function An(o,l,d){var B=-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 Q=D(C);++B<C;)Q[B]=o[B+l];return Q}function C4(o,l){var d;return Dr(o,function(B,C,Q){return d=l(B,C,Q),!d}),!!d}function Vl(o,l,d){var B=0,C=o==null?B:o.length;if(typeof l=="number"&&l===l&&C<=Ce){for(;B<C;){var Q=B+C>>>1,S=o[Q];S!==null&&!Mt(S)&&(d?S<=l:S<l)?B=Q+1:C=Q}return C}return Ud(o,l,Ft,d)}function Ud(o,l,d,B){var C=0,Q=o==null?0:o.length;if(Q===0)return 0;l=d(l);for(var S=l!==l,_=l===null,L=Mt(l),G=l===e;C<Q;){var W=Hl((C+Q)/2),$=d(o[W]),q=$!==e,sA=$===null,hA=$===$,FA=Mt($);if(S)var pA=B||hA;else G?pA=hA&&(B||q):_?pA=hA&&q&&(B||!sA):L?pA=hA&&q&&!sA&&(B||!FA):sA||FA?pA=!1:pA=B?$<=l:$<l;pA?C=W+1:Q=W}return At(Q,we)}function H0(o,l){for(var d=-1,B=o.length,C=0,Q=[];++d<B;){var S=o[d],_=l?l(S):S;if(!d||!hn(_,L)){var L=_;Q[C++]=S===0?0:S}}return Q}function M0(o){return typeof o=="number"?o:Mt(o)?RA:+o}function Ht(o){if(typeof o=="string")return o;if(mA(o))return se(o,Ht)+"";if(Mt(o))return h0?h0.call(o):"";var l=o+"";return l=="0"&&1/o==-CA?"-0":l}function kr(o,l,d){var B=-1,C=El,Q=o.length,S=!0,_=[],L=_;if(d)S=!1,C=Ad;else if(Q>=r){var G=l?null:_4(o);if(G)return Fl(G);S=!1,C=Co,L=new gi}else L=l?[]:_;A:for(;++B<Q;){var W=o[B],$=l?l(W):W;if(W=d||W!==0?W:0,S&&$===$){for(var q=L.length;q--;)if(L[q]===$)continue A;l&&L.push($),_.push(W)}else C(L,$,d)||(L!==_&&L.push($),_.push(W))}return _}function bd(o,l){return l=Rr(l,o),o=cy(o,l),o==null||delete o[On(en(l))]}function N0(o,l,d,B){return To(o,l,d(mi(o,l)),B)}function Gl(o,l,d,B){for(var C=o.length,Q=B?C:-1;(B?Q--:++Q<C)&&l(o[Q],Q,o););return d?An(o,B?0:Q,B?Q+1:C):An(o,B?Q+1:0,B?C:Q)}function D0(o,l){var d=o;return d instanceof OA&&(d=d.value()),ed(l,function(B,C){return C.func.apply(C.thisArg,Hr([B],C.args))},d)}function vd(o,l,d){var B=o.length;if(B<2)return B?kr(o[0]):[];for(var C=-1,Q=D(B);++C<B;)for(var S=o[C],_=-1;++_<B;)_!=C&&(Q[C]=vo(Q[C]||S,o[_],l,d));return kr(Ge(Q,1),l,d)}function k0(o,l,d){for(var B=-1,C=o.length,Q=l.length,S={};++B<C;){var _=B<Q?l[B]:e;d(S,o[B],_)}return S}function Id(o){return de(o)?o:[]}function Sd(o){return typeof o=="function"?o:Ft}function Rr(o,l){return mA(o)?o:Dd(o,l)?[o]:hy(GA(o))}var y4=bA;function Kr(o,l,d){var B=o.length;return d=d===e?B:d,!l&&d>=B?o:An(o,l,d)}var R0=aR||function(o){return Ve.clearTimeout(o)};function K0(o,l){if(l)return o.slice();var d=o.length,B=a0?a0(d):new o.constructor(d);return o.copy(B),B}function Td(o){var l=new o.constructor(o.byteLength);return new Tl(l).set(new Tl(o)),l}function E4(o,l){var d=l?Td(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function Q4(o){var l=new o.constructor(o.source,FC.exec(o));return l.lastIndex=o.lastIndex,l}function F4(o){return Uo?zA(Uo.call(o)):{}}function P0(o,l){var d=l?Td(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function V0(o,l){if(o!==l){var d=o!==e,B=o===null,C=o===o,Q=Mt(o),S=l!==e,_=l===null,L=l===l,G=Mt(l);if(!_&&!G&&!Q&&o>l||Q&&S&&L&&!_&&!G||B&&S&&L||!d&&L||!C)return 1;if(!B&&!Q&&!G&&o<l||G&&d&&C&&!B&&!Q||_&&d&&C||!S&&C||!L)return-1}return 0}function U4(o,l,d){for(var B=-1,C=o.criteria,Q=l.criteria,S=C.length,_=d.length;++B<S;){var L=V0(C[B],Q[B]);if(L){if(B>=_)return L;var G=d[B];return L*(G=="desc"?-1:1)}}return o.index-l.index}function G0(o,l,d,B){for(var C=-1,Q=o.length,S=d.length,_=-1,L=l.length,G=ve(Q-S,0),W=D(L+G),$=!B;++_<L;)W[_]=l[_];for(;++C<S;)($||C<Q)&&(W[d[C]]=o[C]);for(;G--;)W[_++]=o[C++];return W}function W0(o,l,d,B){for(var C=-1,Q=o.length,S=-1,_=d.length,L=-1,G=l.length,W=ve(Q-_,0),$=D(W+G),q=!B;++C<W;)$[C]=o[C];for(var sA=C;++L<G;)$[sA+L]=l[L];for(;++S<_;)(q||C<Q)&&($[sA+d[S]]=o[C++]);return $}function yt(o,l){var d=-1,B=o.length;for(l||(l=D(B));++d<B;)l[d]=o[d];return l}function xn(o,l,d,B){var C=!d;d||(d={});for(var Q=-1,S=l.length;++Q<S;){var _=l[Q],L=B?B(d[_],o[_],_,d,o):e;L===e&&(L=o[_]),C?zn(d,_,L):bo(d,_,L)}return d}function b4(o,l){return xn(o,Nd(o),l)}function v4(o,l){return xn(o,ry(o),l)}function Wl(o,l){return function(d,B){var C=mA(d)?xk:YR,Q=l?l():{};return C(d,o,dA(B,2),Q)}}function gs(o){return bA(function(l,d){var B=-1,C=d.length,Q=C>1?d[C-1]:e,S=C>2?d[2]:e;for(Q=o.length>3&&typeof Q=="function"?(C--,Q):e,S&&ht(d[0],d[1],S)&&(Q=C<3?e:Q,C=1),l=zA(l);++B<C;){var _=d[B];_&&o(l,_,B,Q)}return l})}function $0(o,l){return function(d,B){if(d==null)return d;if(!Et(d))return o(d,B);for(var C=d.length,Q=l?C:-1,S=zA(d);(l?Q--:++Q<C)&&B(S[Q],Q,S)!==!1;);return d}}function J0(o){return function(l,d,B){for(var C=-1,Q=zA(l),S=B(l),_=S.length;_--;){var L=S[o?_:++C];if(d(Q[L],L,Q)===!1)break}return l}}function I4(o,l,d){var B=l&b,C=_o(o);function Q(){var S=this&&this!==Ve&&this instanceof Q?C:o;return S.apply(B?d:this,arguments)}return Q}function X0(o){return function(l){l=GA(l);var d=ls(l)?fn(l):e,B=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return B[o]()+C}}function Bs(o){return function(l){return ed($y(Wy(l).replace(mk,"")),o,"")}}function _o(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=ps(o.prototype),B=o.apply(d,l);return ae(B)?B:d}}function S4(o,l,d){var B=_o(o);function C(){for(var Q=arguments.length,S=D(Q),_=Q,L=ms(C);_--;)S[_]=arguments[_];var G=Q<3&&S[0]!==L&&S[Q-1]!==L?[]:Mr(S,L);if(Q-=G.length,Q<d)return j0(o,l,$l,C.placeholder,e,S,G,e,e,d-Q);var W=this&&this!==Ve&&this instanceof C?B:o;return Ot(W,this,S)}return C}function Y0(o){return function(l,d,B){var C=zA(l);if(!Et(l)){var Q=dA(d,3);l=Oe(l),d=function(_){return Q(C[_],_,C)}}var S=o(l,d,B);return S>-1?C[Q?l[S]:S]:e}}function z0(o){return Zn(function(l){var d=l.length,B=d,C=Zt.prototype.thru;for(o&&l.reverse();B--;){var Q=l[B];if(typeof Q!="function")throw new qt(s);if(C&&!S&&zl(Q)=="wrapper")var S=new Zt([],!0)}for(B=S?B:d;++B<d;){Q=l[B];var _=zl(Q),L=_=="wrapper"?Hd(Q):e;L&&kd(L[0])&&L[1]==(H|M|N|Y)&&!L[4].length&&L[9]==1?S=S[zl(L[0])].apply(S,L[3]):S=Q.length==1&&kd(Q)?S[_]():S.thru(Q)}return function(){var G=arguments,W=G[0];if(S&&G.length==1&&mA(W))return S.plant(W).value();for(var $=0,q=d?l[$].apply(this,G):W;++$<d;)q=l[$].call(this,q);return q}})}function $l(o,l,d,B,C,Q,S,_,L,G){var W=l&H,$=l&b,q=l&F,sA=l&(M|E),hA=l&V,FA=q?e:_o(o);function pA(){for(var SA=arguments.length,MA=D(SA),Nt=SA;Nt--;)MA[Nt]=arguments[Nt];if(sA)var pt=ms(pA),Dt=Kk(MA,pt);if(B&&(MA=G0(MA,B,C,sA)),Q&&(MA=W0(MA,Q,S,sA)),SA-=Dt,sA&&SA<G){var he=Mr(MA,pt);return j0(o,l,$l,pA.placeholder,d,MA,he,_,L,G-SA)}var pn=$?d:this,tr=q?pn[o]:o;return SA=MA.length,_?MA=Y4(MA,_):hA&&SA>1&&MA.reverse(),W&&L<SA&&(MA.length=L),this&&this!==Ve&&this instanceof pA&&(tr=FA||_o(tr)),tr.apply(pn,MA)}return pA}function q0(o,l){return function(d,B){return n4(d,o,l(B),{})}}function Jl(o,l){return function(d,B){var C;if(d===e&&B===e)return l;if(d!==e&&(C=d),B!==e){if(C===e)return B;typeof d=="string"||typeof B=="string"?(d=Ht(d),B=Ht(B)):(d=M0(d),B=M0(B)),C=o(d,B)}return C}}function _d(o){return Zn(function(l){return l=se(l,Lt(dA())),bA(function(d){var B=this;return o(l,function(C){return Ot(C,B,d)})})})}function Xl(o,l){l=l===e?" ":Ht(l);var d=l.length;if(d<2)return d?Fd(l,o):l;var B=Fd(l,Ll(o/cs(l)));return ls(l)?Kr(fn(B),0,o).join(""):B.slice(0,o)}function T4(o,l,d,B){var C=l&b,Q=_o(o);function S(){for(var _=-1,L=arguments.length,G=-1,W=B.length,$=D(W+L),q=this&&this!==Ve&&this instanceof S?Q:o;++G<W;)$[G]=B[G];for(;L--;)$[G++]=arguments[++_];return Ot(q,C?d:this,$)}return S}function Z0(o){return function(l,d,B){return B&&typeof B!="number"&&ht(l,d,B)&&(d=B=e),l=er(l),d===e?(d=l,l=0):d=er(d),B=B===e?l<d?1:-1:er(B),p4(l,d,B,o)}}function Yl(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=tn(l),d=tn(d)),o(l,d)}}function j0(o,l,d,B,C,Q,S,_,L,G){var W=l&M,$=W?S:e,q=W?e:S,sA=W?Q:e,hA=W?e:Q;l|=W?N:T,l&=~(W?T:N),l&I||(l&=~(b|F));var FA=[o,l,C,sA,$,hA,q,_,L,G],pA=d.apply(e,FA);return kd(o)&&uy(pA,FA),pA.placeholder=B,fy(pA,o,l)}function xd(o){var l=be[o];return function(d,B){if(d=tn(d),B=B==null?0:At(yA(B),292),B&&f0(d)){var C=(GA(d)+"e").split("e"),Q=l(C[0]+"e"+(+C[1]+B));return C=(GA(Q)+"e").split("e"),+(C[0]+"e"+(+C[1]-B))}return l(d)}}var _4=ds&&1/Fl(new ds([,-0]))[1]==CA?function(o){return new ds(o)}:Ah;function Ay(o){return function(l){var d=et(l);return d==v?ad(l):d==Ke?Xk(l):Rk(l,o(l))}}function qn(o,l,d,B,C,Q,S,_){var L=l&F;if(!L&&typeof o!="function")throw new qt(s);var G=B?B.length:0;if(G||(l&=~(N|T),B=C=e),S=S===e?S:ve(yA(S),0),_=_===e?_:yA(_),G-=C?C.length:0,l&T){var W=B,$=C;B=C=e}var q=L?e:Hd(o),sA=[o,l,d,B,C,W,$,Q,S,_];if(q&&$4(sA,q),o=sA[0],l=sA[1],d=sA[2],B=sA[3],C=sA[4],_=sA[9]=sA[9]===e?L?0:o.length:ve(sA[9]-G,0),!_&&l&(M|E)&&(l&=~(M|E)),!l||l==b)var hA=I4(o,l,d);else l==M||l==E?hA=S4(o,l,_):(l==N||l==(b|N))&&!C.length?hA=T4(o,l,d,B):hA=$l.apply(e,sA);var FA=q?L0:uy;return fy(FA(hA,sA),o,l)}function ey(o,l,d,B){return o===e||hn(o,fs[d])&&!$A.call(B,d)?l:o}function ty(o,l,d,B,C,Q){return ae(o)&&ae(l)&&(Q.set(l,o),Pl(o,l,e,ty,Q),Q.delete(l)),o}function x4(o){return Lo(o)?e:o}function ny(o,l,d,B,C,Q){var S=d&w,_=o.length,L=l.length;if(_!=L&&!(S&&L>_))return!1;var G=Q.get(o),W=Q.get(l);if(G&&W)return G==l&&W==o;var $=-1,q=!0,sA=d&U?new gi:e;for(Q.set(o,l),Q.set(l,o);++$<_;){var hA=o[$],FA=l[$];if(B)var pA=S?B(FA,hA,$,l,o,Q):B(hA,FA,$,o,l,Q);if(pA!==e){if(pA)continue;q=!1;break}if(sA){if(!td(l,function(SA,MA){if(!Co(sA,MA)&&(hA===SA||C(hA,SA,d,B,Q)))return sA.push(MA)})){q=!1;break}}else if(!(hA===FA||C(hA,FA,d,B,Q))){q=!1;break}}return Q.delete(o),Q.delete(l),q}function O4(o,l,d,B,C,Q,S){switch(d){case VA:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case UA:return!(o.byteLength!=l.byteLength||!Q(new Tl(o),new Tl(l)));case ct:case je:case k:return hn(+o,+l);case ut:return o.name==l.name&&o.message==l.message;case Re:case Sn:return o==l+"";case v:var _=ad;case Ke:var L=B&w;if(_||(_=Fl),o.size!=l.size&&!L)return!1;var G=S.get(o);if(G)return G==l;B|=U,S.set(o,l);var W=ny(_(o),_(l),B,C,Q,S);return S.delete(o),W;case un:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function L4(o,l,d,B,C,Q){var S=d&w,_=Od(o),L=_.length,G=Od(l),W=G.length;if(L!=W&&!S)return!1;for(var $=L;$--;){var q=_[$];if(!(S?q in l:$A.call(l,q)))return!1}var sA=Q.get(o),hA=Q.get(l);if(sA&&hA)return sA==l&&hA==o;var FA=!0;Q.set(o,l),Q.set(l,o);for(var pA=S;++$<L;){q=_[$];var SA=o[q],MA=l[q];if(B)var Nt=S?B(MA,SA,q,l,o,Q):B(SA,MA,q,o,l,Q);if(!(Nt===e?SA===MA||C(SA,MA,d,B,Q):Nt)){FA=!1;break}pA||(pA=q=="constructor")}if(FA&&!pA){var pt=o.constructor,Dt=l.constructor;pt!=Dt&&"constructor"in o&&"constructor"in l&&!(typeof pt=="function"&&pt instanceof pt&&typeof Dt=="function"&&Dt instanceof Dt)&&(FA=!1)}return Q.delete(o),Q.delete(l),FA}function Zn(o){return Kd(ly(o,e,my),o+"")}function Od(o){return Q0(o,Oe,Nd)}function Ld(o){return Q0(o,Qt,ry)}var Hd=Ml?function(o){return Ml.get(o)}:Ah;function zl(o){for(var l=o.name+"",d=hs[l],B=$A.call(hs,l)?d.length:0;B--;){var C=d[B],Q=C.func;if(Q==null||Q==o)return C.name}return l}function ms(o){var l=$A.call(y,"placeholder")?y:o;return l.placeholder}function dA(){var o=y.iteratee||Zd;return o=o===Zd?b0:o,arguments.length?o(arguments[0],arguments[1]):o}function ql(o,l){var d=o.__data__;return P4(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Md(o){for(var l=Oe(o),d=l.length;d--;){var B=l[d],C=o[B];l[d]=[B,C,oy(C)]}return l}function wi(o,l){var d=Wk(o,l);return U0(d)?d:e}function H4(o){var l=$A.call(o,hi),d=o[hi];try{o[hi]=e;var B=!0}catch{}var C=Il.call(o);return B&&(l?o[hi]=d:delete o[hi]),C}var Nd=cd?function(o){return o==null?[]:(o=zA(o),Lr(cd(o),function(l){return c0.call(o,l)}))}:eh,ry=cd?function(o){for(var l=[];o;)Hr(l,Nd(o)),o=_l(o);return l}:eh,et=dt;(ud&&et(new ud(new ArrayBuffer(1)))!=VA||Eo&&et(new Eo)!=v||fd&&et(fd.resolve())!=IA||ds&&et(new ds)!=Ke||Qo&&et(new Qo)!=K)&&(et=function(o){var l=dt(o),d=l==oA?o.constructor:e,B=d?Ci(d):"";if(B)switch(B){case BR:return VA;case mR:return v;case wR:return IA;case CR:return Ke;case yR:return K}return l});function M4(o,l,d){for(var B=-1,C=d.length;++B<C;){var Q=d[B],S=Q.size;switch(Q.type){case"drop":o+=S;break;case"dropRight":l-=S;break;case"take":l=At(l,o+S);break;case"takeRight":o=ve(o,l-S);break}}return{start:o,end:l}}function N4(o){var l=o.match(VD);return l?l[1].split(GD):[]}function iy(o,l,d){l=Rr(l,o);for(var B=-1,C=l.length,Q=!1;++B<C;){var S=On(l[B]);if(!(Q=o!=null&&d(o,S)))break;o=o[S]}return Q||++B!=C?Q:(C=o==null?0:o.length,!!C&&rc(C)&&jn(S,C)&&(mA(o)||yi(o)))}function D4(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&$A.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function sy(o){return typeof o.constructor=="function"&&!xo(o)?ps(_l(o)):{}}function k4(o,l,d){var B=o.constructor;switch(l){case UA:return Td(o);case ct:case je:return new B(+o);case VA:return E4(o,d);case _t:case Tn:case Xt:case xt:case fi:case R:case rA:case fA:case DA:return P0(o,d);case v:return new B;case k:case Sn:return new B(o);case Re:return Q4(o);case Ke:return new B;case un:return F4(o)}}function R4(o,l){var d=l.length;if(!d)return o;var B=d-1;return l[B]=(d>1?"& ":"")+l[B],l=l.join(d>2?", ":" "),o.replace(PD,`{
|
|
140
|
+
*/Fa.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__",h=1,g=2,m=4,w=1,U=2,b=1,Q=2,I=4,M=8,E=16,N=32,T=64,H=128,Y=256,P=512,oA=30,UA="...",hA=800,cA=16,IA=1,ie=2,KA=3,nA=1/0,sA=9007199254740991,jA=17976931348623157e292,LA=0/0,DA=4294967295,kA=DA-1,WA=DA>>>1,te=[["ary",H],["bind",b],["bindKey",Q],["curry",M],["curryRight",E],["flip",P],["partial",N],["partialRight",T],["rearg",Y]],qA="[object Arguments]",de="[object Array]",lt="[object AsyncFunction]",ct="[object Boolean]",je="[object Date]",ke="[object DOMException]",ut="[object Error]",Tt="[object Function]",x="[object GeneratorFunction]",v="[object Map]",k="[object Number]",q="[object Null]",lA="[object Object]",SA="[object Promise]",ft="[object Proxy]",Re="[object RegExp]",Ke="[object Set]",Sn="[object String]",un="[object Symbol]",ae="[object Undefined]",K="[object WeakMap]",X="[object WeakSet]",bA="[object ArrayBuffer]",$A="[object DataView]",_t="[object Float32Array]",Tn="[object Float64Array]",Xt="[object Int8Array]",xt="[object Int16Array]",fi="[object Int32Array]",R="[object Uint8Array]",rA="[object Uint8ClampedArray]",fA="[object Uint16Array]",RA="[object Uint32Array]",HA=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$n=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,Jn=RegExp($n.source),mo=RegExp(Bo.source),rs=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,ml=/<%=([\s\S]+?)%>/g,wo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,RD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wf=/[\\^$.*+?()[\]{}|]/g,KD=RegExp(Wf.source),$f=/^\s+/,PD=/\s/,VD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,GD=/\{\n\/\* \[wrapped with (.+)\] \*/,WD=/,? & /,$D=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,JD=/[()=,{}\[\]\/\s]/,XD=/\\(\\)?/g,YD=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,FC=/\w*$/,zD=/^[-+]0x[0-9a-f]+$/i,qD=/^0b[01]+$/i,ZD=/^\[object .+?Constructor\]$/,jD=/^0o[0-7]+$/i,Ak=/^(?:0|[1-9]\d*)$/,ek=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,tk=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",nk="\\u0300-\\u036f",rk="\\ufe20-\\ufe2f",ik="\\u20d0-\\u20ff",UC=nk+rk+ik,bC="\\u2700-\\u27bf",vC="a-z\\xdf-\\xf6\\xf8-\\xff",sk="\\xac\\xb1\\xd7\\xf7",ok="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ak="\\u2000-\\u206f",lk=" \\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",IC="A-Z\\xc0-\\xd6\\xd8-\\xde",SC="\\ufe0e\\ufe0f",TC=sk+ok+ak+lk,Jf="['’]",ck="["+Cl+"]",_C="["+TC+"]",yl="["+UC+"]",xC="\\d+",uk="["+bC+"]",OC="["+vC+"]",LC="[^"+Cl+TC+xC+bC+vC+IC+"]",Xf="\\ud83c[\\udffb-\\udfff]",fk="(?:"+yl+"|"+Xf+")",HC="[^"+Cl+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",zf="[\\ud800-\\udbff][\\udc00-\\udfff]",ss="["+IC+"]",MC="\\u200d",NC="(?:"+OC+"|"+LC+")",dk="(?:"+ss+"|"+LC+")",DC="(?:"+Jf+"(?:d|ll|m|re|s|t|ve))?",kC="(?:"+Jf+"(?:D|LL|M|RE|S|T|VE))?",RC=fk+"?",KC="["+SC+"]?",hk="(?:"+MC+"(?:"+[HC,Yf,zf].join("|")+")"+KC+RC+")*",pk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",PC=KC+RC+hk,Bk="(?:"+[uk,Yf,zf].join("|")+")"+PC,mk="(?:"+[HC+yl+"?",yl,Yf,zf,ck].join("|")+")",wk=RegExp(Jf,"g"),Ck=RegExp(yl,"g"),qf=RegExp(Xf+"(?="+Xf+")|"+mk+PC,"g"),yk=RegExp([ss+"?"+OC+"+"+DC+"(?="+[_C,ss,"$"].join("|")+")",dk+"+"+kC+"(?="+[_C,ss+NC,"$"].join("|")+")",ss+"?"+NC+"+"+DC,ss+"+"+kC,gk,pk,xC,Bk].join("|"),"g"),Ek=RegExp("["+MC+Cl+UC+SC+"]"),Qk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fk=["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"],Uk=-1,se={};se[_t]=se[Tn]=se[Xt]=se[xt]=se[fi]=se[R]=se[rA]=se[fA]=se[RA]=!0,se[qA]=se[de]=se[bA]=se[ct]=se[$A]=se[je]=se[ut]=se[Tt]=se[v]=se[k]=se[lA]=se[Re]=se[Ke]=se[Sn]=se[K]=!1;var ne={};ne[qA]=ne[de]=ne[bA]=ne[$A]=ne[ct]=ne[je]=ne[_t]=ne[Tn]=ne[Xt]=ne[xt]=ne[fi]=ne[v]=ne[k]=ne[lA]=ne[Re]=ne[Ke]=ne[Sn]=ne[un]=ne[R]=ne[rA]=ne[fA]=ne[RA]=!0,ne[ut]=ne[Tt]=ne[K]=!1;var bk={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",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"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"},vk={"&":"&","<":"<",">":">",'"':""","'":"'"},Ik={"&":"&","<":"<",">":">",""":'"',"'":"'"},Sk={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tk=parseFloat,_k=parseInt,VC=typeof Xs=="object"&&Xs&&Xs.Object===Object&&Xs,xk=typeof self=="object"&&self&&self.Object===Object&&self,Ve=VC||xk||Function("return this")(),Zf=A&&!A.nodeType&&A,di=Zf&&!0&&t&&!t.nodeType&&t,GC=di&&di.exports===Zf,jf=GC&&VC.process,Yt=function(){try{var O=di&&di.require&&di.require("util").types;return O||jf&&jf.binding&&jf.binding("util")}catch{}}(),WC=Yt&&Yt.isArrayBuffer,$C=Yt&&Yt.isDate,JC=Yt&&Yt.isMap,XC=Yt&&Yt.isRegExp,YC=Yt&&Yt.isSet,zC=Yt&&Yt.isTypedArray;function Ot(O,V,D){switch(D.length){case 0:return O.call(V);case 1:return O.call(V,D[0]);case 2:return O.call(V,D[0],D[1]);case 3:return O.call(V,D[0],D[1],D[2])}return O.apply(V,D)}function Ok(O,V,D,eA){for(var mA=-1,VA=O==null?0:O.length;++mA<VA;){var be=O[mA];V(eA,be,D(be),O)}return eA}function zt(O,V){for(var D=-1,eA=O==null?0:O.length;++D<eA&&V(O[D],D,O)!==!1;);return O}function Lk(O,V){for(var D=O==null?0:O.length;D--&&V(O[D],D,O)!==!1;);return O}function qC(O,V){for(var D=-1,eA=O==null?0:O.length;++D<eA;)if(!V(O[D],D,O))return!1;return!0}function Lr(O,V){for(var D=-1,eA=O==null?0:O.length,mA=0,VA=[];++D<eA;){var be=O[D];V(be,D,O)&&(VA[mA++]=be)}return VA}function El(O,V){var D=O==null?0:O.length;return!!D&&as(O,V,0)>-1}function Ad(O,V,D){for(var eA=-1,mA=O==null?0:O.length;++eA<mA;)if(D(V,O[eA]))return!0;return!1}function le(O,V){for(var D=-1,eA=O==null?0:O.length,mA=Array(eA);++D<eA;)mA[D]=V(O[D],D,O);return mA}function Hr(O,V){for(var D=-1,eA=V.length,mA=O.length;++D<eA;)O[mA+D]=V[D];return O}function ed(O,V,D,eA){var mA=-1,VA=O==null?0:O.length;for(eA&&VA&&(D=O[++mA]);++mA<VA;)D=V(D,O[mA],mA,O);return D}function Hk(O,V,D,eA){var mA=O==null?0:O.length;for(eA&&mA&&(D=O[--mA]);mA--;)D=V(D,O[mA],mA,O);return D}function td(O,V){for(var D=-1,eA=O==null?0:O.length;++D<eA;)if(V(O[D],D,O))return!0;return!1}var Mk=nd("length");function Nk(O){return O.split("")}function Dk(O){return O.match($D)||[]}function ZC(O,V,D){var eA;return D(O,function(mA,VA,be){if(V(mA,VA,be))return eA=VA,!1}),eA}function Ql(O,V,D,eA){for(var mA=O.length,VA=D+(eA?1:-1);eA?VA--:++VA<mA;)if(V(O[VA],VA,O))return VA;return-1}function as(O,V,D){return V===V?zk(O,V,D):Ql(O,jC,D)}function kk(O,V,D,eA){for(var mA=D-1,VA=O.length;++mA<VA;)if(eA(O[mA],V))return mA;return-1}function jC(O){return O!==O}function A0(O,V){var D=O==null?0:O.length;return D?id(O,V)/D:LA}function nd(O){return function(V){return V==null?e:V[O]}}function rd(O){return function(V){return O==null?e:O[V]}}function e0(O,V,D,eA,mA){return mA(O,function(VA,be,Ae){D=eA?(eA=!1,VA):V(D,VA,be,Ae)}),D}function Rk(O,V){var D=O.length;for(O.sort(V);D--;)O[D]=O[D].value;return O}function id(O,V){for(var D,eA=-1,mA=O.length;++eA<mA;){var VA=V(O[eA]);VA!==e&&(D=D===e?VA:D+VA)}return D}function sd(O,V){for(var D=-1,eA=Array(O);++D<O;)eA[D]=V(D);return eA}function Kk(O,V){return le(V,function(D){return[D,O[D]]})}function t0(O){return O&&O.slice(0,s0(O)+1).replace($f,"")}function Lt(O){return function(V){return O(V)}}function od(O,V){return le(V,function(D){return O[D]})}function Co(O,V){return O.has(V)}function n0(O,V){for(var D=-1,eA=O.length;++D<eA&&as(V,O[D],0)>-1;);return D}function r0(O,V){for(var D=O.length;D--&&as(V,O[D],0)>-1;);return D}function Pk(O,V){for(var D=O.length,eA=0;D--;)O[D]===V&&++eA;return eA}var Vk=rd(bk),Gk=rd(vk);function Wk(O){return"\\"+Sk[O]}function $k(O,V){return O==null?e:O[V]}function ls(O){return Ek.test(O)}function Jk(O){return Qk.test(O)}function Xk(O){for(var V,D=[];!(V=O.next()).done;)D.push(V.value);return D}function ad(O){var V=-1,D=Array(O.size);return O.forEach(function(eA,mA){D[++V]=[mA,eA]}),D}function i0(O,V){return function(D){return O(V(D))}}function Mr(O,V){for(var D=-1,eA=O.length,mA=0,VA=[];++D<eA;){var be=O[D];(be===V||be===f)&&(O[D]=f,VA[mA++]=D)}return VA}function Fl(O){var V=-1,D=Array(O.size);return O.forEach(function(eA){D[++V]=eA}),D}function Yk(O){var V=-1,D=Array(O.size);return O.forEach(function(eA){D[++V]=[eA,eA]}),D}function zk(O,V,D){for(var eA=D-1,mA=O.length;++eA<mA;)if(O[eA]===V)return eA;return-1}function qk(O,V,D){for(var eA=D+1;eA--;)if(O[eA]===V)return eA;return eA}function cs(O){return ls(O)?jk(O):Mk(O)}function fn(O){return ls(O)?AR(O):Nk(O)}function s0(O){for(var V=O.length;V--&&PD.test(O.charAt(V)););return V}var Zk=rd(Ik);function jk(O){for(var V=qf.lastIndex=0;qf.test(O);)++V;return V}function AR(O){return O.match(qf)||[]}function eR(O){return O.match(yk)||[]}var tR=function O(V){V=V==null?Ve:us.defaults(Ve.Object(),V,us.pick(Ve,Fk));var D=V.Array,eA=V.Date,mA=V.Error,VA=V.Function,be=V.Math,Ae=V.Object,ld=V.RegExp,nR=V.String,qt=V.TypeError,Ul=D.prototype,rR=VA.prototype,fs=Ae.prototype,bl=V["__core-js_shared__"],vl=rR.toString,XA=fs.hasOwnProperty,iR=0,o0=function(){var o=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Il=fs.toString,sR=vl.call(Ae),oR=Ve._,aR=ld("^"+vl.call(XA).replace(Wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sl=GC?V.Buffer:e,Nr=V.Symbol,Tl=V.Uint8Array,a0=Sl?Sl.allocUnsafe:e,_l=i0(Ae.getPrototypeOf,Ae),l0=Ae.create,c0=fs.propertyIsEnumerable,xl=Ul.splice,u0=Nr?Nr.isConcatSpreadable:e,yo=Nr?Nr.iterator:e,hi=Nr?Nr.toStringTag:e,Ol=function(){try{var o=wi(Ae,"defineProperty");return o({},"",{}),o}catch{}}(),lR=V.clearTimeout!==Ve.clearTimeout&&V.clearTimeout,cR=eA&&eA.now!==Ve.Date.now&&eA.now,uR=V.setTimeout!==Ve.setTimeout&&V.setTimeout,Ll=be.ceil,Hl=be.floor,cd=Ae.getOwnPropertySymbols,fR=Sl?Sl.isBuffer:e,f0=V.isFinite,dR=Ul.join,hR=i0(Ae.keys,Ae),ve=be.max,At=be.min,pR=eA.now,gR=V.parseInt,d0=be.random,BR=Ul.reverse,ud=wi(V,"DataView"),Eo=wi(V,"Map"),fd=wi(V,"Promise"),ds=wi(V,"Set"),Qo=wi(V,"WeakMap"),Fo=wi(Ae,"create"),Ml=Qo&&new Qo,hs={},mR=Ci(ud),wR=Ci(Eo),CR=Ci(fd),yR=Ci(ds),ER=Ci(Qo),Nl=Nr?Nr.prototype:e,Uo=Nl?Nl.valueOf:e,h0=Nl?Nl.toString:e;function y(o){if(he(o)&&!wA(o)&&!(o instanceof OA)){if(o instanceof Zt)return o;if(XA.call(o,"__wrapped__"))return py(o)}return new Zt(o)}var ps=function(){function o(){}return function(l){if(!ue(l))return{};if(l0)return l0(l);o.prototype=l;var d=new o;return o.prototype=e,d}}();function Dl(){}function Zt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}y.templateSettings={escape:rs,evaluate:Or,interpolate:ml,variable:"",imports:{_:y}},y.prototype=Dl.prototype,y.prototype.constructor=y,Zt.prototype=ps(Dl.prototype),Zt.prototype.constructor=Zt;function OA(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=DA,this.__views__=[]}function QR(){var o=new OA(this.__wrapped__);return o.__actions__=yt(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=yt(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=yt(this.__views__),o}function FR(){if(this.__filtered__){var o=new OA(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function UR(){var o=this.__wrapped__.value(),l=this.__dir__,d=wA(o),B=l<0,C=d?o.length:0,F=N4(0,C,this.__views__),S=F.start,_=F.end,L=_-S,G=B?_:S-1,W=this.__iteratees__,$=W.length,z=0,aA=At(L,this.__takeCount__);if(!d||!B&&C==L&&aA==L)return D0(o,this.__actions__);var pA=[];A:for(;L--&&z<aA;){G+=l;for(var FA=-1,gA=o[G];++FA<$;){var TA=W[FA],MA=TA.iteratee,Nt=TA.type,pt=MA(gA);if(Nt==ie)gA=pt;else if(!pt){if(Nt==IA)continue A;break A}}pA[z++]=gA}return pA}OA.prototype=ps(Dl.prototype),OA.prototype.constructor=OA;function pi(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function bR(){this.__data__=Fo?Fo(null):{},this.size=0}function vR(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function IR(o){var l=this.__data__;if(Fo){var d=l[o];return d===c?e:d}return XA.call(l,o)?l[o]:e}function SR(o){var l=this.__data__;return Fo?l[o]!==e:XA.call(l,o)}function TR(o,l){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=Fo&&l===e?c:l,this}pi.prototype.clear=bR,pi.prototype.delete=vR,pi.prototype.get=IR,pi.prototype.has=SR,pi.prototype.set=TR;function Xn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function _R(){this.__data__=[],this.size=0}function xR(o){var l=this.__data__,d=kl(l,o);if(d<0)return!1;var B=l.length-1;return d==B?l.pop():xl.call(l,d,1),--this.size,!0}function OR(o){var l=this.__data__,d=kl(l,o);return d<0?e:l[d][1]}function LR(o){return kl(this.__data__,o)>-1}function HR(o,l){var d=this.__data__,B=kl(d,o);return B<0?(++this.size,d.push([o,l])):d[B][1]=l,this}Xn.prototype.clear=_R,Xn.prototype.delete=xR,Xn.prototype.get=OR,Xn.prototype.has=LR,Xn.prototype.set=HR;function Yn(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var B=o[l];this.set(B[0],B[1])}}function MR(){this.size=0,this.__data__={hash:new pi,map:new(Eo||Xn),string:new pi}}function NR(o){var l=ql(this,o).delete(o);return this.size-=l?1:0,l}function DR(o){return ql(this,o).get(o)}function kR(o){return ql(this,o).has(o)}function RR(o,l){var d=ql(this,o),B=d.size;return d.set(o,l),this.size+=d.size==B?0:1,this}Yn.prototype.clear=MR,Yn.prototype.delete=NR,Yn.prototype.get=DR,Yn.prototype.has=kR,Yn.prototype.set=RR;function gi(o){var l=-1,d=o==null?0:o.length;for(this.__data__=new Yn;++l<d;)this.add(o[l])}function KR(o){return this.__data__.set(o,c),this}function PR(o){return this.__data__.has(o)}gi.prototype.add=gi.prototype.push=KR,gi.prototype.has=PR;function dn(o){var l=this.__data__=new Xn(o);this.size=l.size}function VR(){this.__data__=new Xn,this.size=0}function GR(o){var l=this.__data__,d=l.delete(o);return this.size=l.size,d}function WR(o){return this.__data__.get(o)}function $R(o){return this.__data__.has(o)}function JR(o,l){var d=this.__data__;if(d instanceof Xn){var B=d.__data__;if(!Eo||B.length<r-1)return B.push([o,l]),this.size=++d.size,this;d=this.__data__=new Yn(B)}return d.set(o,l),this.size=d.size,this}dn.prototype.clear=VR,dn.prototype.delete=GR,dn.prototype.get=WR,dn.prototype.has=$R,dn.prototype.set=JR;function p0(o,l){var d=wA(o),B=!d&&yi(o),C=!d&&!B&&Pr(o),F=!d&&!B&&!C&&ws(o),S=d||B||C||F,_=S?sd(o.length,nR):[],L=_.length;for(var G in o)(l||XA.call(o,G))&&!(S&&(G=="length"||C&&(G=="offset"||G=="parent")||F&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||jn(G,L)))&&_.push(G);return _}function g0(o){var l=o.length;return l?o[Qd(0,l-1)]:e}function XR(o,l){return Zl(yt(o),Bi(l,0,o.length))}function YR(o){return Zl(yt(o))}function dd(o,l,d){(d!==e&&!hn(o[l],d)||d===e&&!(l in o))&&zn(o,l,d)}function bo(o,l,d){var B=o[l];(!(XA.call(o,l)&&hn(B,d))||d===e&&!(l in o))&&zn(o,l,d)}function kl(o,l){for(var d=o.length;d--;)if(hn(o[d][0],l))return d;return-1}function zR(o,l,d,B){return Dr(o,function(C,F,S){l(B,C,d(C),S)}),B}function B0(o,l){return o&&xn(l,Oe(l),o)}function qR(o,l){return o&&xn(l,Qt(l),o)}function zn(o,l,d){l=="__proto__"&&Ol?Ol(o,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[l]=d}function hd(o,l){for(var d=-1,B=l.length,C=D(B),F=o==null;++d<B;)C[d]=F?e:Xd(o,l[d]);return C}function Bi(o,l,d){return o===o&&(d!==e&&(o=o<=d?o:d),l!==e&&(o=o>=l?o:l)),o}function jt(o,l,d,B,C,F){var S,_=l&h,L=l&g,G=l&m;if(d&&(S=C?d(o,B,C,F):d(o)),S!==e)return S;if(!ue(o))return o;var W=wA(o);if(W){if(S=k4(o),!_)return yt(o,S)}else{var $=et(o),z=$==Tt||$==x;if(Pr(o))return K0(o,_);if($==lA||$==qA||z&&!C){if(S=L||z?{}:sy(o),!_)return L?I4(o,qR(S,o)):v4(o,B0(S,o))}else{if(!ne[$])return C?o:{};S=R4(o,$,_)}}F||(F=new dn);var aA=F.get(o);if(aA)return aA;F.set(o,S),Hy(o)?o.forEach(function(gA){S.add(jt(gA,l,d,gA,o,F))}):Oy(o)&&o.forEach(function(gA,TA){S.set(TA,jt(gA,l,d,TA,o,F))});var pA=G?L?Ld:Od:L?Qt:Oe,FA=W?e:pA(o);return zt(FA||o,function(gA,TA){FA&&(TA=gA,gA=o[TA]),bo(S,TA,jt(gA,l,d,TA,o,F))}),S}function ZR(o){var l=Oe(o);return function(d){return m0(d,o,l)}}function m0(o,l,d){var B=d.length;if(o==null)return!B;for(o=Ae(o);B--;){var C=d[B],F=l[C],S=o[C];if(S===e&&!(C in o)||!F(S))return!1}return!0}function w0(o,l,d){if(typeof o!="function")throw new qt(s);return Oo(function(){o.apply(e,d)},l)}function vo(o,l,d,B){var C=-1,F=El,S=!0,_=o.length,L=[],G=l.length;if(!_)return L;d&&(l=le(l,Lt(d))),B?(F=Ad,S=!1):l.length>=r&&(F=Co,S=!1,l=new gi(l));A:for(;++C<_;){var W=o[C],$=d==null?W:d(W);if(W=B||W!==0?W:0,S&&$===$){for(var z=G;z--;)if(l[z]===$)continue A;L.push(W)}else F(l,$,B)||L.push(W)}return L}var Dr=$0(_n),C0=$0(gd,!0);function jR(o,l){var d=!0;return Dr(o,function(B,C,F){return d=!!l(B,C,F),d}),d}function Rl(o,l,d){for(var B=-1,C=o.length;++B<C;){var F=o[B],S=l(F);if(S!=null&&(_===e?S===S&&!Mt(S):d(S,_)))var _=S,L=F}return L}function A4(o,l,d,B){var C=o.length;for(d=yA(d),d<0&&(d=-d>C?0:C+d),B=B===e||B>C?C:yA(B),B<0&&(B+=C),B=d>B?0:Ny(B);d<B;)o[d++]=l;return o}function y0(o,l){var d=[];return Dr(o,function(B,C,F){l(B,C,F)&&d.push(B)}),d}function Ge(o,l,d,B,C){var F=-1,S=o.length;for(d||(d=P4),C||(C=[]);++F<S;){var _=o[F];l>0&&d(_)?l>1?Ge(_,l-1,d,B,C):Hr(C,_):B||(C[C.length]=_)}return C}var pd=J0(),E0=J0(!0);function _n(o,l){return o&&pd(o,l,Oe)}function gd(o,l){return o&&E0(o,l,Oe)}function Kl(o,l){return Lr(l,function(d){return Ar(o[d])})}function mi(o,l){l=Rr(l,o);for(var d=0,B=l.length;o!=null&&d<B;)o=o[On(l[d++])];return d&&d==B?o:e}function Q0(o,l,d){var B=l(o);return wA(o)?B:Hr(B,d(o))}function dt(o){return o==null?o===e?ae:q:hi&&hi in Ae(o)?M4(o):Y4(o)}function Bd(o,l){return o>l}function e4(o,l){return o!=null&&XA.call(o,l)}function t4(o,l){return o!=null&&l in Ae(o)}function n4(o,l,d){return o>=At(l,d)&&o<ve(l,d)}function md(o,l,d){for(var B=d?Ad:El,C=o[0].length,F=o.length,S=F,_=D(F),L=1/0,G=[];S--;){var W=o[S];S&&l&&(W=le(W,Lt(l))),L=At(W.length,L),_[S]=!d&&(l||C>=120&&W.length>=120)?new gi(S&&W):e}W=o[0];var $=-1,z=_[0];A:for(;++$<C&&G.length<L;){var aA=W[$],pA=l?l(aA):aA;if(aA=d||aA!==0?aA:0,!(z?Co(z,pA):B(G,pA,d))){for(S=F;--S;){var FA=_[S];if(!(FA?Co(FA,pA):B(o[S],pA,d)))continue A}z&&z.push(pA),G.push(aA)}}return G}function r4(o,l,d,B){return _n(o,function(C,F,S){l(B,d(C),F,S)}),B}function Io(o,l,d){l=Rr(l,o),o=cy(o,l);var B=o==null?o:o[On(en(l))];return B==null?e:Ot(B,o,d)}function F0(o){return he(o)&&dt(o)==qA}function i4(o){return he(o)&&dt(o)==bA}function s4(o){return he(o)&&dt(o)==je}function So(o,l,d,B,C){return o===l?!0:o==null||l==null||!he(o)&&!he(l)?o!==o&&l!==l:o4(o,l,d,B,So,C)}function o4(o,l,d,B,C,F){var S=wA(o),_=wA(l),L=S?de:et(o),G=_?de:et(l);L=L==qA?lA:L,G=G==qA?lA:G;var W=L==lA,$=G==lA,z=L==G;if(z&&Pr(o)){if(!Pr(l))return!1;S=!0,W=!1}if(z&&!W)return F||(F=new dn),S||ws(o)?ny(o,l,d,B,C,F):L4(o,l,L,d,B,C,F);if(!(d&w)){var aA=W&&XA.call(o,"__wrapped__"),pA=$&&XA.call(l,"__wrapped__");if(aA||pA){var FA=aA?o.value():o,gA=pA?l.value():l;return F||(F=new dn),C(FA,gA,d,B,F)}}return z?(F||(F=new dn),H4(o,l,d,B,C,F)):!1}function a4(o){return he(o)&&et(o)==v}function wd(o,l,d,B){var C=d.length,F=C,S=!B;if(o==null)return!F;for(o=Ae(o);C--;){var _=d[C];if(S&&_[2]?_[1]!==o[_[0]]:!(_[0]in o))return!1}for(;++C<F;){_=d[C];var L=_[0],G=o[L],W=_[1];if(S&&_[2]){if(G===e&&!(L in o))return!1}else{var $=new dn;if(B)var z=B(G,W,L,o,l,$);if(!(z===e?So(W,G,w|U,B,$):z))return!1}}return!0}function U0(o){if(!ue(o)||G4(o))return!1;var l=Ar(o)?aR:ZD;return l.test(Ci(o))}function l4(o){return he(o)&&dt(o)==Re}function c4(o){return he(o)&&et(o)==Ke}function u4(o){return he(o)&&rc(o.length)&&!!se[dt(o)]}function b0(o){return typeof o=="function"?o:o==null?Ft:typeof o=="object"?wA(o)?S0(o[0],o[1]):I0(o):Xy(o)}function Cd(o){if(!xo(o))return hR(o);var l=[];for(var d in Ae(o))XA.call(o,d)&&d!="constructor"&&l.push(d);return l}function f4(o){if(!ue(o))return X4(o);var l=xo(o),d=[];for(var B in o)B=="constructor"&&(l||!XA.call(o,B))||d.push(B);return d}function yd(o,l){return o<l}function v0(o,l){var d=-1,B=Et(o)?D(o.length):[];return Dr(o,function(C,F,S){B[++d]=l(C,F,S)}),B}function I0(o){var l=Md(o);return l.length==1&&l[0][2]?ay(l[0][0],l[0][1]):function(d){return d===o||wd(d,o,l)}}function S0(o,l){return Dd(o)&&oy(l)?ay(On(o),l):function(d){var B=Xd(d,o);return B===e&&B===l?Yd(d,o):So(l,B,w|U)}}function Pl(o,l,d,B,C){o!==l&&pd(l,function(F,S){if(C||(C=new dn),ue(F))d4(o,l,S,d,Pl,B,C);else{var _=B?B(Rd(o,S),F,S+"",o,l,C):e;_===e&&(_=F),dd(o,S,_)}},Qt)}function d4(o,l,d,B,C,F,S){var _=Rd(o,d),L=Rd(l,d),G=S.get(L);if(G){dd(o,d,G);return}var W=F?F(_,L,d+"",o,l,S):e,$=W===e;if($){var z=wA(L),aA=!z&&Pr(L),pA=!z&&!aA&&ws(L);W=L,z||aA||pA?wA(_)?W=_:Be(_)?W=yt(_):aA?($=!1,W=K0(L,!0)):pA?($=!1,W=P0(L,!0)):W=[]:Lo(L)||yi(L)?(W=_,yi(_)?W=Dy(_):(!ue(_)||Ar(_))&&(W=sy(L))):$=!1}$&&(S.set(L,W),C(W,L,B,F,S),S.delete(L)),dd(o,d,W)}function T0(o,l){var d=o.length;if(d)return l+=l<0?d:0,jn(l,d)?o[l]:e}function _0(o,l,d){l.length?l=le(l,function(F){return wA(F)?function(S){return mi(S,F.length===1?F[0]:F)}:F}):l=[Ft];var B=-1;l=le(l,Lt(dA()));var C=v0(o,function(F,S,_){var L=le(l,function(G){return G(F)});return{criteria:L,index:++B,value:F}});return Rk(C,function(F,S){return b4(F,S,d)})}function h4(o,l){return x0(o,l,function(d,B){return Yd(o,B)})}function x0(o,l,d){for(var B=-1,C=l.length,F={};++B<C;){var S=l[B],_=mi(o,S);d(_,S)&&To(F,Rr(S,o),_)}return F}function p4(o){return function(l){return mi(l,o)}}function Ed(o,l,d,B){var C=B?kk:as,F=-1,S=l.length,_=o;for(o===l&&(l=yt(l)),d&&(_=le(o,Lt(d)));++F<S;)for(var L=0,G=l[F],W=d?d(G):G;(L=C(_,W,L,B))>-1;)_!==o&&xl.call(_,L,1),xl.call(o,L,1);return o}function O0(o,l){for(var d=o?l.length:0,B=d-1;d--;){var C=l[d];if(d==B||C!==F){var F=C;jn(C)?xl.call(o,C,1):bd(o,C)}}return o}function Qd(o,l){return o+Hl(d0()*(l-o+1))}function g4(o,l,d,B){for(var C=-1,F=ve(Ll((l-o)/(d||1)),0),S=D(F);F--;)S[B?F:++C]=o,o+=d;return S}function Fd(o,l){var d="";if(!o||l<1||l>sA)return d;do l%2&&(d+=o),l=Hl(l/2),l&&(o+=o);while(l);return d}function vA(o,l){return Kd(ly(o,l,Ft),o+"")}function B4(o){return g0(Cs(o))}function m4(o,l){var d=Cs(o);return Zl(d,Bi(l,0,d.length))}function To(o,l,d,B){if(!ue(o))return o;l=Rr(l,o);for(var C=-1,F=l.length,S=F-1,_=o;_!=null&&++C<F;){var L=On(l[C]),G=d;if(L==="__proto__"||L==="constructor"||L==="prototype")return o;if(C!=S){var W=_[L];G=B?B(W,L,_):e,G===e&&(G=ue(W)?W:jn(l[C+1])?[]:{})}bo(_,L,G),_=_[L]}return o}var L0=Ml?function(o,l){return Ml.set(o,l),o}:Ft,w4=Ol?function(o,l){return Ol(o,"toString",{configurable:!0,enumerable:!1,value:qd(l),writable:!0})}:Ft;function C4(o){return Zl(Cs(o))}function An(o,l,d){var B=-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=D(C);++B<C;)F[B]=o[B+l];return F}function y4(o,l){var d;return Dr(o,function(B,C,F){return d=l(B,C,F),!d}),!!d}function Vl(o,l,d){var B=0,C=o==null?B:o.length;if(typeof l=="number"&&l===l&&C<=WA){for(;B<C;){var F=B+C>>>1,S=o[F];S!==null&&!Mt(S)&&(d?S<=l:S<l)?B=F+1:C=F}return C}return Ud(o,l,Ft,d)}function Ud(o,l,d,B){var C=0,F=o==null?0:o.length;if(F===0)return 0;l=d(l);for(var S=l!==l,_=l===null,L=Mt(l),G=l===e;C<F;){var W=Hl((C+F)/2),$=d(o[W]),z=$!==e,aA=$===null,pA=$===$,FA=Mt($);if(S)var gA=B||pA;else G?gA=pA&&(B||z):_?gA=pA&&z&&(B||!aA):L?gA=pA&&z&&!aA&&(B||!FA):aA||FA?gA=!1:gA=B?$<=l:$<l;gA?C=W+1:F=W}return At(F,kA)}function H0(o,l){for(var d=-1,B=o.length,C=0,F=[];++d<B;){var S=o[d],_=l?l(S):S;if(!d||!hn(_,L)){var L=_;F[C++]=S===0?0:S}}return F}function M0(o){return typeof o=="number"?o:Mt(o)?LA:+o}function Ht(o){if(typeof o=="string")return o;if(wA(o))return le(o,Ht)+"";if(Mt(o))return h0?h0.call(o):"";var l=o+"";return l=="0"&&1/o==-nA?"-0":l}function kr(o,l,d){var B=-1,C=El,F=o.length,S=!0,_=[],L=_;if(d)S=!1,C=Ad;else if(F>=r){var G=l?null:x4(o);if(G)return Fl(G);S=!1,C=Co,L=new gi}else L=l?[]:_;A:for(;++B<F;){var W=o[B],$=l?l(W):W;if(W=d||W!==0?W:0,S&&$===$){for(var z=L.length;z--;)if(L[z]===$)continue A;l&&L.push($),_.push(W)}else C(L,$,d)||(L!==_&&L.push($),_.push(W))}return _}function bd(o,l){return l=Rr(l,o),o=cy(o,l),o==null||delete o[On(en(l))]}function N0(o,l,d,B){return To(o,l,d(mi(o,l)),B)}function Gl(o,l,d,B){for(var C=o.length,F=B?C:-1;(B?F--:++F<C)&&l(o[F],F,o););return d?An(o,B?0:F,B?F+1:C):An(o,B?F+1:0,B?C:F)}function D0(o,l){var d=o;return d instanceof OA&&(d=d.value()),ed(l,function(B,C){return C.func.apply(C.thisArg,Hr([B],C.args))},d)}function vd(o,l,d){var B=o.length;if(B<2)return B?kr(o[0]):[];for(var C=-1,F=D(B);++C<B;)for(var S=o[C],_=-1;++_<B;)_!=C&&(F[C]=vo(F[C]||S,o[_],l,d));return kr(Ge(F,1),l,d)}function k0(o,l,d){for(var B=-1,C=o.length,F=l.length,S={};++B<C;){var _=B<F?l[B]:e;d(S,o[B],_)}return S}function Id(o){return Be(o)?o:[]}function Sd(o){return typeof o=="function"?o:Ft}function Rr(o,l){return wA(o)?o:Dd(o,l)?[o]:hy(JA(o))}var E4=vA;function Kr(o,l,d){var B=o.length;return d=d===e?B:d,!l&&d>=B?o:An(o,l,d)}var R0=lR||function(o){return Ve.clearTimeout(o)};function K0(o,l){if(l)return o.slice();var d=o.length,B=a0?a0(d):new o.constructor(d);return o.copy(B),B}function Td(o){var l=new o.constructor(o.byteLength);return new Tl(l).set(new Tl(o)),l}function Q4(o,l){var d=l?Td(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function F4(o){var l=new o.constructor(o.source,FC.exec(o));return l.lastIndex=o.lastIndex,l}function U4(o){return Uo?Ae(Uo.call(o)):{}}function P0(o,l){var d=l?Td(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function V0(o,l){if(o!==l){var d=o!==e,B=o===null,C=o===o,F=Mt(o),S=l!==e,_=l===null,L=l===l,G=Mt(l);if(!_&&!G&&!F&&o>l||F&&S&&L&&!_&&!G||B&&S&&L||!d&&L||!C)return 1;if(!B&&!F&&!G&&o<l||G&&d&&C&&!B&&!F||_&&d&&C||!S&&C||!L)return-1}return 0}function b4(o,l,d){for(var B=-1,C=o.criteria,F=l.criteria,S=C.length,_=d.length;++B<S;){var L=V0(C[B],F[B]);if(L){if(B>=_)return L;var G=d[B];return L*(G=="desc"?-1:1)}}return o.index-l.index}function G0(o,l,d,B){for(var C=-1,F=o.length,S=d.length,_=-1,L=l.length,G=ve(F-S,0),W=D(L+G),$=!B;++_<L;)W[_]=l[_];for(;++C<S;)($||C<F)&&(W[d[C]]=o[C]);for(;G--;)W[_++]=o[C++];return W}function W0(o,l,d,B){for(var C=-1,F=o.length,S=-1,_=d.length,L=-1,G=l.length,W=ve(F-_,0),$=D(W+G),z=!B;++C<W;)$[C]=o[C];for(var aA=C;++L<G;)$[aA+L]=l[L];for(;++S<_;)(z||C<F)&&($[aA+d[S]]=o[C++]);return $}function yt(o,l){var d=-1,B=o.length;for(l||(l=D(B));++d<B;)l[d]=o[d];return l}function xn(o,l,d,B){var C=!d;d||(d={});for(var F=-1,S=l.length;++F<S;){var _=l[F],L=B?B(d[_],o[_],_,d,o):e;L===e&&(L=o[_]),C?zn(d,_,L):bo(d,_,L)}return d}function v4(o,l){return xn(o,Nd(o),l)}function I4(o,l){return xn(o,ry(o),l)}function Wl(o,l){return function(d,B){var C=wA(d)?Ok:zR,F=l?l():{};return C(d,o,dA(B,2),F)}}function gs(o){return vA(function(l,d){var B=-1,C=d.length,F=C>1?d[C-1]:e,S=C>2?d[2]:e;for(F=o.length>3&&typeof F=="function"?(C--,F):e,S&&ht(d[0],d[1],S)&&(F=C<3?e:F,C=1),l=Ae(l);++B<C;){var _=d[B];_&&o(l,_,B,F)}return l})}function $0(o,l){return function(d,B){if(d==null)return d;if(!Et(d))return o(d,B);for(var C=d.length,F=l?C:-1,S=Ae(d);(l?F--:++F<C)&&B(S[F],F,S)!==!1;);return d}}function J0(o){return function(l,d,B){for(var C=-1,F=Ae(l),S=B(l),_=S.length;_--;){var L=S[o?_:++C];if(d(F[L],L,F)===!1)break}return l}}function S4(o,l,d){var B=l&b,C=_o(o);function F(){var S=this&&this!==Ve&&this instanceof F?C:o;return S.apply(B?d:this,arguments)}return F}function X0(o){return function(l){l=JA(l);var d=ls(l)?fn(l):e,B=d?d[0]:l.charAt(0),C=d?Kr(d,1).join(""):l.slice(1);return B[o]()+C}}function Bs(o){return function(l){return ed($y(Wy(l).replace(wk,"")),o,"")}}function _o(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=ps(o.prototype),B=o.apply(d,l);return ue(B)?B:d}}function T4(o,l,d){var B=_o(o);function C(){for(var F=arguments.length,S=D(F),_=F,L=ms(C);_--;)S[_]=arguments[_];var G=F<3&&S[0]!==L&&S[F-1]!==L?[]:Mr(S,L);if(F-=G.length,F<d)return j0(o,l,$l,C.placeholder,e,S,G,e,e,d-F);var W=this&&this!==Ve&&this instanceof C?B:o;return Ot(W,this,S)}return C}function Y0(o){return function(l,d,B){var C=Ae(l);if(!Et(l)){var F=dA(d,3);l=Oe(l),d=function(_){return F(C[_],_,C)}}var S=o(l,d,B);return S>-1?C[F?l[S]:S]:e}}function z0(o){return Zn(function(l){var d=l.length,B=d,C=Zt.prototype.thru;for(o&&l.reverse();B--;){var F=l[B];if(typeof F!="function")throw new qt(s);if(C&&!S&&zl(F)=="wrapper")var S=new Zt([],!0)}for(B=S?B:d;++B<d;){F=l[B];var _=zl(F),L=_=="wrapper"?Hd(F):e;L&&kd(L[0])&&L[1]==(H|M|N|Y)&&!L[4].length&&L[9]==1?S=S[zl(L[0])].apply(S,L[3]):S=F.length==1&&kd(F)?S[_]():S.thru(F)}return function(){var G=arguments,W=G[0];if(S&&G.length==1&&wA(W))return S.plant(W).value();for(var $=0,z=d?l[$].apply(this,G):W;++$<d;)z=l[$].call(this,z);return z}})}function $l(o,l,d,B,C,F,S,_,L,G){var W=l&H,$=l&b,z=l&Q,aA=l&(M|E),pA=l&P,FA=z?e:_o(o);function gA(){for(var TA=arguments.length,MA=D(TA),Nt=TA;Nt--;)MA[Nt]=arguments[Nt];if(aA)var pt=ms(gA),Dt=Pk(MA,pt);if(B&&(MA=G0(MA,B,C,aA)),F&&(MA=W0(MA,F,S,aA)),TA-=Dt,aA&&TA<G){var me=Mr(MA,pt);return j0(o,l,$l,gA.placeholder,d,MA,me,_,L,G-TA)}var pn=$?d:this,tr=z?pn[o]:o;return TA=MA.length,_?MA=z4(MA,_):pA&&TA>1&&MA.reverse(),W&&L<TA&&(MA.length=L),this&&this!==Ve&&this instanceof gA&&(tr=FA||_o(tr)),tr.apply(pn,MA)}return gA}function q0(o,l){return function(d,B){return r4(d,o,l(B),{})}}function Jl(o,l){return function(d,B){var C;if(d===e&&B===e)return l;if(d!==e&&(C=d),B!==e){if(C===e)return B;typeof d=="string"||typeof B=="string"?(d=Ht(d),B=Ht(B)):(d=M0(d),B=M0(B)),C=o(d,B)}return C}}function _d(o){return Zn(function(l){return l=le(l,Lt(dA())),vA(function(d){var B=this;return o(l,function(C){return Ot(C,B,d)})})})}function Xl(o,l){l=l===e?" ":Ht(l);var d=l.length;if(d<2)return d?Fd(l,o):l;var B=Fd(l,Ll(o/cs(l)));return ls(l)?Kr(fn(B),0,o).join(""):B.slice(0,o)}function _4(o,l,d,B){var C=l&b,F=_o(o);function S(){for(var _=-1,L=arguments.length,G=-1,W=B.length,$=D(W+L),z=this&&this!==Ve&&this instanceof S?F:o;++G<W;)$[G]=B[G];for(;L--;)$[G++]=arguments[++_];return Ot(z,C?d:this,$)}return S}function Z0(o){return function(l,d,B){return B&&typeof B!="number"&&ht(l,d,B)&&(d=B=e),l=er(l),d===e?(d=l,l=0):d=er(d),B=B===e?l<d?1:-1:er(B),g4(l,d,B,o)}}function Yl(o){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=tn(l),d=tn(d)),o(l,d)}}function j0(o,l,d,B,C,F,S,_,L,G){var W=l&M,$=W?S:e,z=W?e:S,aA=W?F:e,pA=W?e:F;l|=W?N:T,l&=~(W?T:N),l&I||(l&=~(b|Q));var FA=[o,l,C,aA,$,pA,z,_,L,G],gA=d.apply(e,FA);return kd(o)&&uy(gA,FA),gA.placeholder=B,fy(gA,o,l)}function xd(o){var l=be[o];return function(d,B){if(d=tn(d),B=B==null?0:At(yA(B),292),B&&f0(d)){var C=(JA(d)+"e").split("e"),F=l(C[0]+"e"+(+C[1]+B));return C=(JA(F)+"e").split("e"),+(C[0]+"e"+(+C[1]-B))}return l(d)}}var x4=ds&&1/Fl(new ds([,-0]))[1]==nA?function(o){return new ds(o)}:Ah;function Ay(o){return function(l){var d=et(l);return d==v?ad(l):d==Ke?Yk(l):Kk(l,o(l))}}function qn(o,l,d,B,C,F,S,_){var L=l&Q;if(!L&&typeof o!="function")throw new qt(s);var G=B?B.length:0;if(G||(l&=~(N|T),B=C=e),S=S===e?S:ve(yA(S),0),_=_===e?_:yA(_),G-=C?C.length:0,l&T){var W=B,$=C;B=C=e}var z=L?e:Hd(o),aA=[o,l,d,B,C,W,$,F,S,_];if(z&&J4(aA,z),o=aA[0],l=aA[1],d=aA[2],B=aA[3],C=aA[4],_=aA[9]=aA[9]===e?L?0:o.length:ve(aA[9]-G,0),!_&&l&(M|E)&&(l&=~(M|E)),!l||l==b)var pA=S4(o,l,d);else l==M||l==E?pA=T4(o,l,_):(l==N||l==(b|N))&&!C.length?pA=_4(o,l,d,B):pA=$l.apply(e,aA);var FA=z?L0:uy;return fy(FA(pA,aA),o,l)}function ey(o,l,d,B){return o===e||hn(o,fs[d])&&!XA.call(B,d)?l:o}function ty(o,l,d,B,C,F){return ue(o)&&ue(l)&&(F.set(l,o),Pl(o,l,e,ty,F),F.delete(l)),o}function O4(o){return Lo(o)?e:o}function ny(o,l,d,B,C,F){var S=d&w,_=o.length,L=l.length;if(_!=L&&!(S&&L>_))return!1;var G=F.get(o),W=F.get(l);if(G&&W)return G==l&&W==o;var $=-1,z=!0,aA=d&U?new gi:e;for(F.set(o,l),F.set(l,o);++$<_;){var pA=o[$],FA=l[$];if(B)var gA=S?B(FA,pA,$,l,o,F):B(pA,FA,$,o,l,F);if(gA!==e){if(gA)continue;z=!1;break}if(aA){if(!td(l,function(TA,MA){if(!Co(aA,MA)&&(pA===TA||C(pA,TA,d,B,F)))return aA.push(MA)})){z=!1;break}}else if(!(pA===FA||C(pA,FA,d,B,F))){z=!1;break}}return F.delete(o),F.delete(l),z}function L4(o,l,d,B,C,F,S){switch(d){case $A:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case bA:return!(o.byteLength!=l.byteLength||!F(new Tl(o),new Tl(l)));case ct:case je:case k:return hn(+o,+l);case ut:return o.name==l.name&&o.message==l.message;case Re:case Sn:return o==l+"";case v:var _=ad;case Ke:var L=B&w;if(_||(_=Fl),o.size!=l.size&&!L)return!1;var G=S.get(o);if(G)return G==l;B|=U,S.set(o,l);var W=ny(_(o),_(l),B,C,F,S);return S.delete(o),W;case un:if(Uo)return Uo.call(o)==Uo.call(l)}return!1}function H4(o,l,d,B,C,F){var S=d&w,_=Od(o),L=_.length,G=Od(l),W=G.length;if(L!=W&&!S)return!1;for(var $=L;$--;){var z=_[$];if(!(S?z in l:XA.call(l,z)))return!1}var aA=F.get(o),pA=F.get(l);if(aA&&pA)return aA==l&&pA==o;var FA=!0;F.set(o,l),F.set(l,o);for(var gA=S;++$<L;){z=_[$];var TA=o[z],MA=l[z];if(B)var Nt=S?B(MA,TA,z,l,o,F):B(TA,MA,z,o,l,F);if(!(Nt===e?TA===MA||C(TA,MA,d,B,F):Nt)){FA=!1;break}gA||(gA=z=="constructor")}if(FA&&!gA){var pt=o.constructor,Dt=l.constructor;pt!=Dt&&"constructor"in o&&"constructor"in l&&!(typeof pt=="function"&&pt instanceof pt&&typeof Dt=="function"&&Dt instanceof Dt)&&(FA=!1)}return F.delete(o),F.delete(l),FA}function Zn(o){return Kd(ly(o,e,my),o+"")}function Od(o){return Q0(o,Oe,Nd)}function Ld(o){return Q0(o,Qt,ry)}var Hd=Ml?function(o){return Ml.get(o)}:Ah;function zl(o){for(var l=o.name+"",d=hs[l],B=XA.call(hs,l)?d.length:0;B--;){var C=d[B],F=C.func;if(F==null||F==o)return C.name}return l}function ms(o){var l=XA.call(y,"placeholder")?y:o;return l.placeholder}function dA(){var o=y.iteratee||Zd;return o=o===Zd?b0:o,arguments.length?o(arguments[0],arguments[1]):o}function ql(o,l){var d=o.__data__;return V4(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Md(o){for(var l=Oe(o),d=l.length;d--;){var B=l[d],C=o[B];l[d]=[B,C,oy(C)]}return l}function wi(o,l){var d=$k(o,l);return U0(d)?d:e}function M4(o){var l=XA.call(o,hi),d=o[hi];try{o[hi]=e;var B=!0}catch{}var C=Il.call(o);return B&&(l?o[hi]=d:delete o[hi]),C}var Nd=cd?function(o){return o==null?[]:(o=Ae(o),Lr(cd(o),function(l){return c0.call(o,l)}))}:eh,ry=cd?function(o){for(var l=[];o;)Hr(l,Nd(o)),o=_l(o);return l}:eh,et=dt;(ud&&et(new ud(new ArrayBuffer(1)))!=$A||Eo&&et(new Eo)!=v||fd&&et(fd.resolve())!=SA||ds&&et(new ds)!=Ke||Qo&&et(new Qo)!=K)&&(et=function(o){var l=dt(o),d=l==lA?o.constructor:e,B=d?Ci(d):"";if(B)switch(B){case mR:return $A;case wR:return v;case CR:return SA;case yR:return Ke;case ER:return K}return l});function N4(o,l,d){for(var B=-1,C=d.length;++B<C;){var F=d[B],S=F.size;switch(F.type){case"drop":o+=S;break;case"dropRight":l-=S;break;case"take":l=At(l,o+S);break;case"takeRight":o=ve(o,l-S);break}}return{start:o,end:l}}function D4(o){var l=o.match(GD);return l?l[1].split(WD):[]}function iy(o,l,d){l=Rr(l,o);for(var B=-1,C=l.length,F=!1;++B<C;){var S=On(l[B]);if(!(F=o!=null&&d(o,S)))break;o=o[S]}return F||++B!=C?F:(C=o==null?0:o.length,!!C&&rc(C)&&jn(S,C)&&(wA(o)||yi(o)))}function k4(o){var l=o.length,d=new o.constructor(l);return l&&typeof o[0]=="string"&&XA.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function sy(o){return typeof o.constructor=="function"&&!xo(o)?ps(_l(o)):{}}function R4(o,l,d){var B=o.constructor;switch(l){case bA:return Td(o);case ct:case je:return new B(+o);case $A:return Q4(o,d);case _t:case Tn:case Xt:case xt:case fi:case R:case rA:case fA:case RA:return P0(o,d);case v:return new B;case k:case Sn:return new B(o);case Re:return F4(o);case Ke:return new B;case un:return U4(o)}}function K4(o,l){var d=l.length;if(!d)return o;var B=d-1;return l[B]=(d>1?"& ":"")+l[B],l=l.join(d>2?", ":" "),o.replace(VD,`{
|
|
141
141
|
/* [wrapped with `+l+`] */
|
|
142
|
-
`)}function K4(o){return mA(o)||yi(o)||!!(u0&&o&&o[u0])}function jn(o,l){var d=typeof o;return l=l??vA,!!l&&(d=="number"||d!="symbol"&&jD.test(o))&&o>-1&&o%1==0&&o<l}function ht(o,l,d){if(!ae(d))return!1;var B=typeof l;return(B=="number"?Et(d)&&jn(l,d.length):B=="string"&&l in d)?hn(d[l],o):!1}function Dd(o,l){if(mA(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||Mt(o)?!0:is.test(o)||!wo.test(o)||l!=null&&o in zA(l)}function P4(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function kd(o){var l=zl(o),d=y[l];if(typeof d!="function"||!(l in OA.prototype))return!1;if(o===d)return!0;var B=Hd(d);return!!B&&o===B[0]}function V4(o){return!!o0&&o0 in o}var G4=bl?Ar:th;function xo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||fs;return o===d}function oy(o){return o===o&&!ae(o)}function ay(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==e||o in zA(d))}}function W4(o){var l=tc(o,function(B){return d.size===u&&d.clear(),B}),d=l.cache;return l}function $4(o,l){var d=o[1],B=l[1],C=d|B,Q=C<(b|F|H),S=B==H&&d==M||B==H&&d==Y&&o[7].length<=l[8]||B==(H|Y)&&l[7].length<=l[8]&&d==M;if(!(Q||S))return o;B&b&&(o[2]=l[2],C|=d&b?0:I);var _=l[3];if(_){var L=o[3];o[3]=L?G0(L,_,l[4]):_,o[4]=L?Mr(o[3],f):l[4]}return _=l[5],_&&(L=o[5],o[5]=L?W0(L,_,l[6]):_,o[6]=L?Mr(o[5],f):l[6]),_=l[7],_&&(o[7]=_),B&H&&(o[8]=o[8]==null?l[8]:At(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function J4(o){var l=[];if(o!=null)for(var d in zA(o))l.push(d);return l}function X4(o){return Il.call(o)}function ly(o,l,d){return l=ve(l===e?o.length-1:l,0),function(){for(var B=arguments,C=-1,Q=ve(B.length-l,0),S=D(Q);++C<Q;)S[C]=B[l+C];C=-1;for(var _=D(l+1);++C<l;)_[C]=B[C];return _[l]=d(S),Ot(o,this,_)}}function cy(o,l){return l.length<2?o:mi(o,An(l,0,-1))}function Y4(o,l){for(var d=o.length,B=At(l.length,d),C=yt(o);B--;){var Q=l[B];o[B]=jn(Q,d)?C[Q]:e}return o}function Rd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var uy=dy(L0),Oo=cR||function(o,l){return Ve.setTimeout(o,l)},Kd=dy(m4);function fy(o,l,d){var B=l+"";return Kd(o,R4(B,z4(N4(B),d)))}function dy(o){var l=0,d=0;return function(){var B=hR(),C=aA-(B-d);if(d=B,C>0){if(++l>=uA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function Zl(o,l){var d=-1,B=o.length,C=B-1;for(l=l===e?B:l;++d<l;){var Q=Qd(d,C),S=o[Q];o[Q]=o[d],o[d]=S}return o.length=l,o}var hy=W4(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(kD,function(d,B,C,Q){l.push(C?Q.replace(JD,"$1"):B||d)}),l});function On(o){if(typeof o=="string"||Mt(o))return o;var l=o+"";return l=="0"&&1/o==-CA?"-0":l}function Ci(o){if(o!=null){try{return vl.call(o)}catch{}try{return o+""}catch{}}return""}function z4(o,l){return zt(Ue,function(d){var B="_."+d[0];l&d[1]&&!El(o,B)&&o.push(B)}),o.sort()}function py(o){if(o instanceof OA)return o.clone();var l=new Zt(o.__wrapped__,o.__chain__);return l.__actions__=yt(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function q4(o,l,d){(d?ht(o,l,d):l===e)?l=1:l=ve(yA(l),0);var B=o==null?0:o.length;if(!B||l<1)return[];for(var C=0,Q=0,S=D(Ll(B/l));C<B;)S[Q++]=An(o,C,C+=l);return S}function Z4(o){for(var l=-1,d=o==null?0:o.length,B=0,C=[];++l<d;){var Q=o[l];Q&&(C[B++]=Q)}return C}function j4(){var o=arguments.length;if(!o)return[];for(var l=D(o-1),d=arguments[0],B=o;B--;)l[B-1]=arguments[B];return Hr(mA(d)?yt(d):[d],Ge(l,1))}var AK=bA(function(o,l){return de(o)?vo(o,Ge(l,1,de,!0)):[]}),eK=bA(function(o,l){var d=en(l);return de(d)&&(d=e),de(o)?vo(o,Ge(l,1,de,!0),dA(d,2)):[]}),tK=bA(function(o,l){var d=en(l);return de(d)&&(d=e),de(o)?vo(o,Ge(l,1,de,!0),e,d):[]});function nK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:yA(l),An(o,l<0?0:l,B)):[]}function rK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:yA(l),l=B-l,An(o,0,l<0?0:l)):[]}function iK(o,l){return o&&o.length?Gl(o,dA(l,3),!0,!0):[]}function sK(o,l){return o&&o.length?Gl(o,dA(l,3),!0):[]}function oK(o,l,d,B){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&ht(o,l,d)&&(d=0,B=C),jR(o,l,d,B)):[]}function gy(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:yA(d);return C<0&&(C=ve(B+C,0)),Ql(o,dA(l,3),C)}function By(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B-1;return d!==e&&(C=yA(d),C=d<0?ve(B+C,0):At(C,B-1)),Ql(o,dA(l,3),C,!0)}function my(o){var l=o==null?0:o.length;return l?Ge(o,1):[]}function aK(o){var l=o==null?0:o.length;return l?Ge(o,CA):[]}function lK(o,l){var d=o==null?0:o.length;return d?(l=l===e?1:yA(l),Ge(o,l)):[]}function cK(o){for(var l=-1,d=o==null?0:o.length,B={};++l<d;){var C=o[l];B[C[0]]=C[1]}return B}function wy(o){return o&&o.length?o[0]:e}function uK(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:yA(d);return C<0&&(C=ve(B+C,0)),as(o,l,C)}function fK(o){var l=o==null?0:o.length;return l?An(o,0,-1):[]}var dK=bA(function(o){var l=se(o,Id);return l.length&&l[0]===o[0]?md(l):[]}),hK=bA(function(o){var l=en(o),d=se(o,Id);return l===en(d)?l=e:d.pop(),d.length&&d[0]===o[0]?md(d,dA(l,2)):[]}),pK=bA(function(o){var l=en(o),d=se(o,Id);return l=typeof l=="function"?l:e,l&&d.pop(),d.length&&d[0]===o[0]?md(d,e,l):[]});function gK(o,l){return o==null?"":fR.call(o,l)}function en(o){var l=o==null?0:o.length;return l?o[l-1]:e}function BK(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B;return d!==e&&(C=yA(d),C=C<0?ve(B+C,0):At(C,B-1)),l===l?zk(o,l,C):Ql(o,jC,C,!0)}function mK(o,l){return o&&o.length?T0(o,yA(l)):e}var wK=bA(Cy);function Cy(o,l){return o&&o.length&&l&&l.length?Ed(o,l):o}function CK(o,l,d){return o&&o.length&&l&&l.length?Ed(o,l,dA(d,2)):o}function yK(o,l,d){return o&&o.length&&l&&l.length?Ed(o,l,e,d):o}var EK=Zn(function(o,l){var d=o==null?0:o.length,B=hd(o,l);return O0(o,se(l,function(C){return jn(C,d)?+C:C}).sort(V0)),B});function QK(o,l){var d=[];if(!(o&&o.length))return d;var B=-1,C=[],Q=o.length;for(l=dA(l,3);++B<Q;){var S=o[B];l(S,B,o)&&(d.push(S),C.push(B))}return O0(o,C),d}function Pd(o){return o==null?o:gR.call(o)}function FK(o,l,d){var B=o==null?0:o.length;return B?(d&&typeof d!="number"&&ht(o,l,d)?(l=0,d=B):(l=l==null?0:yA(l),d=d===e?B:yA(d)),An(o,l,d)):[]}function UK(o,l){return Vl(o,l)}function bK(o,l,d){return Ud(o,l,dA(d,2))}function vK(o,l){var d=o==null?0:o.length;if(d){var B=Vl(o,l);if(B<d&&hn(o[B],l))return B}return-1}function IK(o,l){return Vl(o,l,!0)}function SK(o,l,d){return Ud(o,l,dA(d,2),!0)}function TK(o,l){var d=o==null?0:o.length;if(d){var B=Vl(o,l,!0)-1;if(hn(o[B],l))return B}return-1}function _K(o){return o&&o.length?H0(o):[]}function xK(o,l){return o&&o.length?H0(o,dA(l,2)):[]}function OK(o){var l=o==null?0:o.length;return l?An(o,1,l):[]}function LK(o,l,d){return o&&o.length?(l=d||l===e?1:yA(l),An(o,0,l<0?0:l)):[]}function HK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:yA(l),l=B-l,An(o,l<0?0:l,B)):[]}function MK(o,l){return o&&o.length?Gl(o,dA(l,3),!1,!0):[]}function NK(o,l){return o&&o.length?Gl(o,dA(l,3)):[]}var DK=bA(function(o){return kr(Ge(o,1,de,!0))}),kK=bA(function(o){var l=en(o);return de(l)&&(l=e),kr(Ge(o,1,de,!0),dA(l,2))}),RK=bA(function(o){var l=en(o);return l=typeof l=="function"?l:e,kr(Ge(o,1,de,!0),e,l)});function KK(o){return o&&o.length?kr(o):[]}function PK(o,l){return o&&o.length?kr(o,dA(l,2)):[]}function VK(o,l){return l=typeof l=="function"?l:e,o&&o.length?kr(o,e,l):[]}function Vd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(de(d))return l=ve(d.length,l),!0}),sd(l,function(d){return se(o,nd(d))})}function yy(o,l){if(!(o&&o.length))return[];var d=Vd(o);return l==null?d:se(d,function(B){return Ot(l,e,B)})}var GK=bA(function(o,l){return de(o)?vo(o,l):[]}),WK=bA(function(o){return vd(Lr(o,de))}),$K=bA(function(o){var l=en(o);return de(l)&&(l=e),vd(Lr(o,de),dA(l,2))}),JK=bA(function(o){var l=en(o);return l=typeof l=="function"?l:e,vd(Lr(o,de),e,l)}),XK=bA(Vd);function YK(o,l){return k0(o||[],l||[],bo)}function zK(o,l){return k0(o||[],l||[],To)}var qK=bA(function(o){var l=o.length,d=l>1?o[l-1]:e;return d=typeof d=="function"?(o.pop(),d):e,yy(o,d)});function Ey(o){var l=y(o);return l.__chain__=!0,l}function ZK(o,l){return l(o),o}function jl(o,l){return l(o)}var jK=Zn(function(o){var l=o.length,d=l?o[0]:0,B=this.__wrapped__,C=function(Q){return hd(Q,o)};return l>1||this.__actions__.length||!(B instanceof OA)||!jn(d)?this.thru(C):(B=B.slice(d,+d+(l?1:0)),B.__actions__.push({func:jl,args:[C],thisArg:e}),new Zt(B,this.__chain__).thru(function(Q){return l&&!Q.length&&Q.push(e),Q}))});function AP(){return Ey(this)}function eP(){return new Zt(this.value(),this.__chain__)}function tP(){this.__values__===e&&(this.__values__=My(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function nP(){return this}function rP(o){for(var l,d=this;d instanceof Dl;){var B=py(d);B.__index__=0,B.__values__=e,l?C.__wrapped__=B:l=B;var C=B;d=d.__wrapped__}return C.__wrapped__=o,l}function iP(){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:jl,args:[Pd],thisArg:e}),new Zt(l,this.__chain__)}return this.thru(Pd)}function sP(){return D0(this.__wrapped__,this.__actions__)}var oP=Wl(function(o,l,d){$A.call(o,d)?++o[d]:zn(o,d,1)});function aP(o,l,d){var B=mA(o)?qC:ZR;return d&&ht(o,l,d)&&(l=e),B(o,dA(l,3))}function lP(o,l){var d=mA(o)?Lr:y0;return d(o,dA(l,3))}var cP=Y0(gy),uP=Y0(By);function fP(o,l){return Ge(Ac(o,l),1)}function dP(o,l){return Ge(Ac(o,l),CA)}function hP(o,l,d){return d=d===e?1:yA(d),Ge(Ac(o,l),d)}function Qy(o,l){var d=mA(o)?zt:Dr;return d(o,dA(l,3))}function Fy(o,l){var d=mA(o)?Ok:C0;return d(o,dA(l,3))}var pP=Wl(function(o,l,d){$A.call(o,d)?o[d].push(l):zn(o,d,[l])});function gP(o,l,d,B){o=Et(o)?o:Cs(o),d=d&&!B?yA(d):0;var C=o.length;return d<0&&(d=ve(C+d,0)),ic(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&as(o,l,d)>-1}var BP=bA(function(o,l,d){var B=-1,C=typeof l=="function",Q=Et(o)?D(o.length):[];return Dr(o,function(S){Q[++B]=C?Ot(l,S,d):Io(S,l,d)}),Q}),mP=Wl(function(o,l,d){zn(o,d,l)});function Ac(o,l){var d=mA(o)?se:v0;return d(o,dA(l,3))}function wP(o,l,d,B){return o==null?[]:(mA(l)||(l=l==null?[]:[l]),d=B?e:d,mA(d)||(d=d==null?[]:[d]),_0(o,l,d))}var CP=Wl(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function yP(o,l,d){var B=mA(o)?ed:e0,C=arguments.length<3;return B(o,dA(l,4),d,C,Dr)}function EP(o,l,d){var B=mA(o)?Lk:e0,C=arguments.length<3;return B(o,dA(l,4),d,C,C0)}function QP(o,l){var d=mA(o)?Lr:y0;return d(o,nc(dA(l,3)))}function FP(o){var l=mA(o)?g0:g4;return l(o)}function UP(o,l,d){(d?ht(o,l,d):l===e)?l=1:l=yA(l);var B=mA(o)?JR:B4;return B(o,l)}function bP(o){var l=mA(o)?XR:w4;return l(o)}function vP(o){if(o==null)return 0;if(Et(o))return ic(o)?cs(o):o.length;var l=et(o);return l==v||l==Ke?o.size:Cd(o).length}function IP(o,l,d){var B=mA(o)?td:C4;return d&&ht(o,l,d)&&(l=e),B(o,dA(l,3))}var SP=bA(function(o,l){if(o==null)return[];var d=l.length;return d>1&&ht(o,l[0],l[1])?l=[]:d>2&&ht(l[0],l[1],l[2])&&(l=[l[0]]),_0(o,Ge(l,1),[])}),ec=lR||function(){return Ve.Date.now()};function TP(o,l){if(typeof l!="function")throw new qt(s);return o=yA(o),function(){if(--o<1)return l.apply(this,arguments)}}function Uy(o,l,d){return l=d?e:l,l=o&&l==null?o.length:l,qn(o,H,e,e,e,e,l)}function by(o,l){var d;if(typeof l!="function")throw new qt(s);return o=yA(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=e),d}}var Gd=bA(function(o,l,d){var B=b;if(d.length){var C=Mr(d,ms(Gd));B|=N}return qn(o,B,l,d,C)}),vy=bA(function(o,l,d){var B=b|F;if(d.length){var C=Mr(d,ms(vy));B|=N}return qn(l,B,o,d,C)});function Iy(o,l,d){l=d?e:l;var B=qn(o,M,e,e,e,e,e,l);return B.placeholder=Iy.placeholder,B}function Sy(o,l,d){l=d?e:l;var B=qn(o,E,e,e,e,e,e,l);return B.placeholder=Sy.placeholder,B}function Ty(o,l,d){var B,C,Q,S,_,L,G=0,W=!1,$=!1,q=!0;if(typeof o!="function")throw new qt(s);l=tn(l)||0,ae(d)&&(W=!!d.leading,$="maxWait"in d,Q=$?ve(tn(d.maxWait)||0,l):Q,q="trailing"in d?!!d.trailing:q);function sA(he){var pn=B,tr=C;return B=C=e,G=he,S=o.apply(tr,pn),S}function hA(he){return G=he,_=Oo(SA,l),W?sA(he):S}function FA(he){var pn=he-L,tr=he-G,Yy=l-pn;return $?At(Yy,Q-tr):Yy}function pA(he){var pn=he-L,tr=he-G;return L===e||pn>=l||pn<0||$&&tr>=Q}function SA(){var he=ec();if(pA(he))return MA(he);_=Oo(SA,FA(he))}function MA(he){return _=e,q&&B?sA(he):(B=C=e,S)}function Nt(){_!==e&&R0(_),G=0,B=L=C=_=e}function pt(){return _===e?S:MA(ec())}function Dt(){var he=ec(),pn=pA(he);if(B=arguments,C=this,L=he,pn){if(_===e)return hA(L);if($)return R0(_),_=Oo(SA,l),sA(L)}return _===e&&(_=Oo(SA,l)),S}return Dt.cancel=Nt,Dt.flush=pt,Dt}var _P=bA(function(o,l){return w0(o,1,l)}),xP=bA(function(o,l,d){return w0(o,tn(l)||0,d)});function OP(o){return qn(o,V)}function tc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new qt(s);var d=function(){var B=arguments,C=l?l.apply(this,B):B[0],Q=d.cache;if(Q.has(C))return Q.get(C);var S=o.apply(this,B);return d.cache=Q.set(C,S)||Q,S};return d.cache=new(tc.Cache||Yn),d}tc.Cache=Yn;function nc(o){if(typeof o!="function")throw new qt(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 LP(o){return by(2,o)}var HP=y4(function(o,l){l=l.length==1&&mA(l[0])?se(l[0],Lt(dA())):se(Ge(l,1),Lt(dA()));var d=l.length;return bA(function(B){for(var C=-1,Q=At(B.length,d);++C<Q;)B[C]=l[C].call(this,B[C]);return Ot(o,this,B)})}),Wd=bA(function(o,l){var d=Mr(l,ms(Wd));return qn(o,N,e,l,d)}),_y=bA(function(o,l){var d=Mr(l,ms(_y));return qn(o,T,e,l,d)}),MP=Zn(function(o,l){return qn(o,Y,e,e,e,l)});function NP(o,l){if(typeof o!="function")throw new qt(s);return l=l===e?l:yA(l),bA(o,l)}function DP(o,l){if(typeof o!="function")throw new qt(s);return l=l==null?0:ve(yA(l),0),bA(function(d){var B=d[l],C=Kr(d,0,l);return B&&Hr(C,B),Ot(o,this,C)})}function kP(o,l,d){var B=!0,C=!0;if(typeof o!="function")throw new qt(s);return ae(d)&&(B="leading"in d?!!d.leading:B,C="trailing"in d?!!d.trailing:C),Ty(o,l,{leading:B,maxWait:l,trailing:C})}function RP(o){return Uy(o,1)}function KP(o,l){return Wd(Sd(l),o)}function PP(){if(!arguments.length)return[];var o=arguments[0];return mA(o)?o:[o]}function VP(o){return jt(o,m)}function GP(o,l){return l=typeof l=="function"?l:e,jt(o,m,l)}function WP(o){return jt(o,h|m)}function $P(o,l){return l=typeof l=="function"?l:e,jt(o,h|m,l)}function JP(o,l){return l==null||m0(o,l,Oe(l))}function hn(o,l){return o===l||o!==o&&l!==l}var XP=Yl(Bd),YP=Yl(function(o,l){return o>=l}),yi=F0(function(){return arguments}())?F0:function(o){return ce(o)&&$A.call(o,"callee")&&!c0.call(o,"callee")},mA=D.isArray,zP=WC?Lt(WC):r4;function Et(o){return o!=null&&rc(o.length)&&!Ar(o)}function de(o){return ce(o)&&Et(o)}function qP(o){return o===!0||o===!1||ce(o)&&dt(o)==ct}var Pr=uR||th,ZP=$C?Lt($C):i4;function jP(o){return ce(o)&&o.nodeType===1&&!Lo(o)}function AV(o){if(o==null)return!0;if(Et(o)&&(mA(o)||typeof o=="string"||typeof o.splice=="function"||Pr(o)||ws(o)||yi(o)))return!o.length;var l=et(o);if(l==v||l==Ke)return!o.size;if(xo(o))return!Cd(o).length;for(var d in o)if($A.call(o,d))return!1;return!0}function eV(o,l){return So(o,l)}function tV(o,l,d){d=typeof d=="function"?d:e;var B=d?d(o,l):e;return B===e?So(o,l,e,d):!!B}function $d(o){if(!ce(o))return!1;var l=dt(o);return l==ut||l==ke||typeof o.message=="string"&&typeof o.name=="string"&&!Lo(o)}function nV(o){return typeof o=="number"&&f0(o)}function Ar(o){if(!ae(o))return!1;var l=dt(o);return l==Tt||l==x||l==lt||l==ft}function xy(o){return typeof o=="number"&&o==yA(o)}function rc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=vA}function ae(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function ce(o){return o!=null&&typeof o=="object"}var Oy=JC?Lt(JC):o4;function rV(o,l){return o===l||wd(o,l,Md(l))}function iV(o,l,d){return d=typeof d=="function"?d:e,wd(o,l,Md(l),d)}function sV(o){return Ly(o)&&o!=+o}function oV(o){if(G4(o))throw new BA(i);return U0(o)}function aV(o){return o===null}function lV(o){return o==null}function Ly(o){return typeof o=="number"||ce(o)&&dt(o)==k}function Lo(o){if(!ce(o)||dt(o)!=oA)return!1;var l=_l(o);if(l===null)return!0;var d=$A.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&vl.call(d)==iR}var Jd=XC?Lt(XC):a4;function cV(o){return xy(o)&&o>=-vA&&o<=vA}var Hy=YC?Lt(YC):l4;function ic(o){return typeof o=="string"||!mA(o)&&ce(o)&&dt(o)==Sn}function Mt(o){return typeof o=="symbol"||ce(o)&&dt(o)==un}var ws=zC?Lt(zC):c4;function uV(o){return o===e}function fV(o){return ce(o)&&et(o)==K}function dV(o){return ce(o)&&dt(o)==X}var hV=Yl(yd),pV=Yl(function(o,l){return o<=l});function My(o){if(!o)return[];if(Et(o))return ic(o)?fn(o):yt(o);if(yo&&o[yo])return Jk(o[yo]());var l=et(o),d=l==v?ad:l==Ke?Fl:Cs;return d(o)}function er(o){if(!o)return o===0?o:0;if(o=tn(o),o===CA||o===-CA){var l=o<0?-1:1;return l*re}return o===o?o:0}function yA(o){var l=er(o),d=l%1;return l===l?d?l-d:l:0}function Ny(o){return o?Bi(yA(o),0,WA):0}function tn(o){if(typeof o=="number")return o;if(Mt(o))return RA;if(ae(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=ae(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=t0(o);var d=zD.test(o);return d||ZD.test(o)?Tk(o.slice(2),d?2:8):YD.test(o)?RA:+o}function Dy(o){return xn(o,Qt(o))}function gV(o){return o?Bi(yA(o),-vA,vA):o===0?o:0}function GA(o){return o==null?"":Ht(o)}var BV=gs(function(o,l){if(xo(l)||Et(l)){xn(l,Oe(l),o);return}for(var d in l)$A.call(l,d)&&bo(o,d,l[d])}),ky=gs(function(o,l){xn(l,Qt(l),o)}),sc=gs(function(o,l,d,B){xn(l,Qt(l),o,B)}),mV=gs(function(o,l,d,B){xn(l,Oe(l),o,B)}),wV=Zn(hd);function CV(o,l){var d=ps(o);return l==null?d:B0(d,l)}var yV=bA(function(o,l){o=zA(o);var d=-1,B=l.length,C=B>2?l[2]:e;for(C&&ht(l[0],l[1],C)&&(B=1);++d<B;)for(var Q=l[d],S=Qt(Q),_=-1,L=S.length;++_<L;){var G=S[_],W=o[G];(W===e||hn(W,fs[G])&&!$A.call(o,G))&&(o[G]=Q[G])}return o}),EV=bA(function(o){return o.push(e,ty),Ot(Ry,e,o)});function QV(o,l){return ZC(o,dA(l,3),_n)}function FV(o,l){return ZC(o,dA(l,3),gd)}function UV(o,l){return o==null?o:pd(o,dA(l,3),Qt)}function bV(o,l){return o==null?o:E0(o,dA(l,3),Qt)}function vV(o,l){return o&&_n(o,dA(l,3))}function IV(o,l){return o&&gd(o,dA(l,3))}function SV(o){return o==null?[]:Kl(o,Oe(o))}function TV(o){return o==null?[]:Kl(o,Qt(o))}function Xd(o,l,d){var B=o==null?e:mi(o,l);return B===e?d:B}function _V(o,l){return o!=null&&iy(o,l,A4)}function Yd(o,l){return o!=null&&iy(o,l,e4)}var xV=q0(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),o[l]=d},qd(Ft)),OV=q0(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),$A.call(o,l)?o[l].push(d):o[l]=[d]},dA),LV=bA(Io);function Oe(o){return Et(o)?p0(o):Cd(o)}function Qt(o){return Et(o)?p0(o,!0):u4(o)}function HV(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,Q){zn(d,l(B,C,Q),B)}),d}function MV(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,Q){zn(d,C,l(B,C,Q))}),d}var NV=gs(function(o,l,d){Pl(o,l,d)}),Ry=gs(function(o,l,d,B){Pl(o,l,d,B)}),DV=Zn(function(o,l){var d={};if(o==null)return d;var B=!1;l=se(l,function(Q){return Q=Rr(Q,o),B||(B=Q.length>1),Q}),xn(o,Ld(o),d),B&&(d=jt(d,h|g|m,x4));for(var C=l.length;C--;)bd(d,l[C]);return d});function kV(o,l){return Ky(o,nc(dA(l)))}var RV=Zn(function(o,l){return o==null?{}:d4(o,l)});function Ky(o,l){if(o==null)return{};var d=se(Ld(o),function(B){return[B]});return l=dA(l),x0(o,d,function(B,C){return l(B,C[0])})}function KV(o,l,d){l=Rr(l,o);var B=-1,C=l.length;for(C||(C=1,o=e);++B<C;){var Q=o==null?e:o[On(l[B])];Q===e&&(B=C,Q=d),o=Ar(Q)?Q.call(o):Q}return o}function PV(o,l,d){return o==null?o:To(o,l,d)}function VV(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:To(o,l,d,B)}var Py=Ay(Oe),Vy=Ay(Qt);function GV(o,l,d){var B=mA(o),C=B||Pr(o)||ws(o);if(l=dA(l,4),d==null){var Q=o&&o.constructor;C?d=B?new Q:[]:ae(o)?d=Ar(Q)?ps(_l(o)):{}:d={}}return(C?zt:_n)(o,function(S,_,L){return l(d,S,_,L)}),d}function WV(o,l){return o==null?!0:bd(o,l)}function $V(o,l,d){return o==null?o:N0(o,l,Sd(d))}function JV(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:N0(o,l,Sd(d),B)}function Cs(o){return o==null?[]:od(o,Oe(o))}function XV(o){return o==null?[]:od(o,Qt(o))}function YV(o,l,d){return d===e&&(d=l,l=e),d!==e&&(d=tn(d),d=d===d?d:0),l!==e&&(l=tn(l),l=l===l?l:0),Bi(tn(o),l,d)}function zV(o,l,d){return l=er(l),d===e?(d=l,l=0):d=er(d),o=tn(o),t4(o,l,d)}function qV(o,l,d){if(d&&typeof d!="boolean"&&ht(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=er(o),l===e?(l=o,o=0):l=er(l)),o>l){var B=o;o=l,l=B}if(d||o%1||l%1){var C=d0();return At(o+C*(l-o+Sk("1e-"+((C+"").length-1))),l)}return Qd(o,l)}var ZV=Bs(function(o,l,d){return l=l.toLowerCase(),o+(d?Gy(l):l)});function Gy(o){return zd(GA(o).toLowerCase())}function Wy(o){return o=GA(o),o&&o.replace(Ak,Pk).replace(wk,"")}function jV(o,l,d){o=GA(o),l=Ht(l);var B=o.length;d=d===e?B:Bi(yA(d),0,B);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function A2(o){return o=GA(o),o&&mo.test(o)?o.replace(Bo,Vk):o}function e2(o){return o=GA(o),o&&RD.test(o)?o.replace(Wf,"\\$&"):o}var t2=Bs(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),n2=Bs(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),r2=X0("toLowerCase");function i2(o,l,d){o=GA(o),l=yA(l);var B=l?cs(o):0;if(!l||B>=l)return o;var C=(l-B)/2;return Xl(Hl(C),d)+o+Xl(Ll(C),d)}function s2(o,l,d){o=GA(o),l=yA(l);var B=l?cs(o):0;return l&&B<l?o+Xl(l-B,d):o}function o2(o,l,d){o=GA(o),l=yA(l);var B=l?cs(o):0;return l&&B<l?Xl(l-B,d)+o:o}function a2(o,l,d){return d||l==null?l=0:l&&(l=+l),pR(GA(o).replace($f,""),l||0)}function l2(o,l,d){return(d?ht(o,l,d):l===e)?l=1:l=yA(l),Fd(GA(o),l)}function c2(){var o=arguments,l=GA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var u2=Bs(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function f2(o,l,d){return d&&typeof d!="number"&&ht(o,l,d)&&(l=d=e),d=d===e?WA:d>>>0,d?(o=GA(o),o&&(typeof l=="string"||l!=null&&!Jd(l))&&(l=Ht(l),!l&&ls(o))?Kr(fn(o),0,d):o.split(l,d)):[]}var d2=Bs(function(o,l,d){return o+(d?" ":"")+zd(l)});function h2(o,l,d){return o=GA(o),d=d==null?0:Bi(yA(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function p2(o,l,d){var B=y.templateSettings;d&&ht(o,l,d)&&(l=e),o=GA(o),l=sc({},l,B,ey);var C=sc({},l.imports,B.imports,ey),Q=Oe(C),S=od(C,Q),_,L,G=0,W=l.interpolate||wl,$="__p += '",q=ld((l.escape||wl).source+"|"+W.source+"|"+(W===ml?XD:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),sA="//# sourceURL="+($A.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fk+"]")+`
|
|
143
|
-
`;o.replace(
|
|
144
|
-
__e(`+
|
|
142
|
+
`)}function P4(o){return wA(o)||yi(o)||!!(u0&&o&&o[u0])}function jn(o,l){var d=typeof o;return l=l??sA,!!l&&(d=="number"||d!="symbol"&&Ak.test(o))&&o>-1&&o%1==0&&o<l}function ht(o,l,d){if(!ue(d))return!1;var B=typeof l;return(B=="number"?Et(d)&&jn(l,d.length):B=="string"&&l in d)?hn(d[l],o):!1}function Dd(o,l){if(wA(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||Mt(o)?!0:is.test(o)||!wo.test(o)||l!=null&&o in Ae(l)}function V4(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function kd(o){var l=zl(o),d=y[l];if(typeof d!="function"||!(l in OA.prototype))return!1;if(o===d)return!0;var B=Hd(d);return!!B&&o===B[0]}function G4(o){return!!o0&&o0 in o}var W4=bl?Ar:th;function xo(o){var l=o&&o.constructor,d=typeof l=="function"&&l.prototype||fs;return o===d}function oy(o){return o===o&&!ue(o)}function ay(o,l){return function(d){return d==null?!1:d[o]===l&&(l!==e||o in Ae(d))}}function $4(o){var l=tc(o,function(B){return d.size===u&&d.clear(),B}),d=l.cache;return l}function J4(o,l){var d=o[1],B=l[1],C=d|B,F=C<(b|Q|H),S=B==H&&d==M||B==H&&d==Y&&o[7].length<=l[8]||B==(H|Y)&&l[7].length<=l[8]&&d==M;if(!(F||S))return o;B&b&&(o[2]=l[2],C|=d&b?0:I);var _=l[3];if(_){var L=o[3];o[3]=L?G0(L,_,l[4]):_,o[4]=L?Mr(o[3],f):l[4]}return _=l[5],_&&(L=o[5],o[5]=L?W0(L,_,l[6]):_,o[6]=L?Mr(o[5],f):l[6]),_=l[7],_&&(o[7]=_),B&H&&(o[8]=o[8]==null?l[8]:At(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=C,o}function X4(o){var l=[];if(o!=null)for(var d in Ae(o))l.push(d);return l}function Y4(o){return Il.call(o)}function ly(o,l,d){return l=ve(l===e?o.length-1:l,0),function(){for(var B=arguments,C=-1,F=ve(B.length-l,0),S=D(F);++C<F;)S[C]=B[l+C];C=-1;for(var _=D(l+1);++C<l;)_[C]=B[C];return _[l]=d(S),Ot(o,this,_)}}function cy(o,l){return l.length<2?o:mi(o,An(l,0,-1))}function z4(o,l){for(var d=o.length,B=At(l.length,d),C=yt(o);B--;){var F=l[B];o[B]=jn(F,d)?C[F]:e}return o}function Rd(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var uy=dy(L0),Oo=uR||function(o,l){return Ve.setTimeout(o,l)},Kd=dy(w4);function fy(o,l,d){var B=l+"";return Kd(o,K4(B,q4(D4(B),d)))}function dy(o){var l=0,d=0;return function(){var B=pR(),C=cA-(B-d);if(d=B,C>0){if(++l>=hA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function Zl(o,l){var d=-1,B=o.length,C=B-1;for(l=l===e?B:l;++d<l;){var F=Qd(d,C),S=o[F];o[F]=o[d],o[d]=S}return o.length=l,o}var hy=$4(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(RD,function(d,B,C,F){l.push(C?F.replace(XD,"$1"):B||d)}),l});function On(o){if(typeof o=="string"||Mt(o))return o;var l=o+"";return l=="0"&&1/o==-nA?"-0":l}function Ci(o){if(o!=null){try{return vl.call(o)}catch{}try{return o+""}catch{}}return""}function q4(o,l){return zt(te,function(d){var B="_."+d[0];l&d[1]&&!El(o,B)&&o.push(B)}),o.sort()}function py(o){if(o instanceof OA)return o.clone();var l=new Zt(o.__wrapped__,o.__chain__);return l.__actions__=yt(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function Z4(o,l,d){(d?ht(o,l,d):l===e)?l=1:l=ve(yA(l),0);var B=o==null?0:o.length;if(!B||l<1)return[];for(var C=0,F=0,S=D(Ll(B/l));C<B;)S[F++]=An(o,C,C+=l);return S}function j4(o){for(var l=-1,d=o==null?0:o.length,B=0,C=[];++l<d;){var F=o[l];F&&(C[B++]=F)}return C}function AK(){var o=arguments.length;if(!o)return[];for(var l=D(o-1),d=arguments[0],B=o;B--;)l[B-1]=arguments[B];return Hr(wA(d)?yt(d):[d],Ge(l,1))}var eK=vA(function(o,l){return Be(o)?vo(o,Ge(l,1,Be,!0)):[]}),tK=vA(function(o,l){var d=en(l);return Be(d)&&(d=e),Be(o)?vo(o,Ge(l,1,Be,!0),dA(d,2)):[]}),nK=vA(function(o,l){var d=en(l);return Be(d)&&(d=e),Be(o)?vo(o,Ge(l,1,Be,!0),e,d):[]});function rK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:yA(l),An(o,l<0?0:l,B)):[]}function iK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:yA(l),l=B-l,An(o,0,l<0?0:l)):[]}function sK(o,l){return o&&o.length?Gl(o,dA(l,3),!0,!0):[]}function oK(o,l){return o&&o.length?Gl(o,dA(l,3),!0):[]}function aK(o,l,d,B){var C=o==null?0:o.length;return C?(d&&typeof d!="number"&&ht(o,l,d)&&(d=0,B=C),A4(o,l,d,B)):[]}function gy(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:yA(d);return C<0&&(C=ve(B+C,0)),Ql(o,dA(l,3),C)}function By(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B-1;return d!==e&&(C=yA(d),C=d<0?ve(B+C,0):At(C,B-1)),Ql(o,dA(l,3),C,!0)}function my(o){var l=o==null?0:o.length;return l?Ge(o,1):[]}function lK(o){var l=o==null?0:o.length;return l?Ge(o,nA):[]}function cK(o,l){var d=o==null?0:o.length;return d?(l=l===e?1:yA(l),Ge(o,l)):[]}function uK(o){for(var l=-1,d=o==null?0:o.length,B={};++l<d;){var C=o[l];B[C[0]]=C[1]}return B}function wy(o){return o&&o.length?o[0]:e}function fK(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=d==null?0:yA(d);return C<0&&(C=ve(B+C,0)),as(o,l,C)}function dK(o){var l=o==null?0:o.length;return l?An(o,0,-1):[]}var hK=vA(function(o){var l=le(o,Id);return l.length&&l[0]===o[0]?md(l):[]}),pK=vA(function(o){var l=en(o),d=le(o,Id);return l===en(d)?l=e:d.pop(),d.length&&d[0]===o[0]?md(d,dA(l,2)):[]}),gK=vA(function(o){var l=en(o),d=le(o,Id);return l=typeof l=="function"?l:e,l&&d.pop(),d.length&&d[0]===o[0]?md(d,e,l):[]});function BK(o,l){return o==null?"":dR.call(o,l)}function en(o){var l=o==null?0:o.length;return l?o[l-1]:e}function mK(o,l,d){var B=o==null?0:o.length;if(!B)return-1;var C=B;return d!==e&&(C=yA(d),C=C<0?ve(B+C,0):At(C,B-1)),l===l?qk(o,l,C):Ql(o,jC,C,!0)}function wK(o,l){return o&&o.length?T0(o,yA(l)):e}var CK=vA(Cy);function Cy(o,l){return o&&o.length&&l&&l.length?Ed(o,l):o}function yK(o,l,d){return o&&o.length&&l&&l.length?Ed(o,l,dA(d,2)):o}function EK(o,l,d){return o&&o.length&&l&&l.length?Ed(o,l,e,d):o}var QK=Zn(function(o,l){var d=o==null?0:o.length,B=hd(o,l);return O0(o,le(l,function(C){return jn(C,d)?+C:C}).sort(V0)),B});function FK(o,l){var d=[];if(!(o&&o.length))return d;var B=-1,C=[],F=o.length;for(l=dA(l,3);++B<F;){var S=o[B];l(S,B,o)&&(d.push(S),C.push(B))}return O0(o,C),d}function Pd(o){return o==null?o:BR.call(o)}function UK(o,l,d){var B=o==null?0:o.length;return B?(d&&typeof d!="number"&&ht(o,l,d)?(l=0,d=B):(l=l==null?0:yA(l),d=d===e?B:yA(d)),An(o,l,d)):[]}function bK(o,l){return Vl(o,l)}function vK(o,l,d){return Ud(o,l,dA(d,2))}function IK(o,l){var d=o==null?0:o.length;if(d){var B=Vl(o,l);if(B<d&&hn(o[B],l))return B}return-1}function SK(o,l){return Vl(o,l,!0)}function TK(o,l,d){return Ud(o,l,dA(d,2),!0)}function _K(o,l){var d=o==null?0:o.length;if(d){var B=Vl(o,l,!0)-1;if(hn(o[B],l))return B}return-1}function xK(o){return o&&o.length?H0(o):[]}function OK(o,l){return o&&o.length?H0(o,dA(l,2)):[]}function LK(o){var l=o==null?0:o.length;return l?An(o,1,l):[]}function HK(o,l,d){return o&&o.length?(l=d||l===e?1:yA(l),An(o,0,l<0?0:l)):[]}function MK(o,l,d){var B=o==null?0:o.length;return B?(l=d||l===e?1:yA(l),l=B-l,An(o,l<0?0:l,B)):[]}function NK(o,l){return o&&o.length?Gl(o,dA(l,3),!1,!0):[]}function DK(o,l){return o&&o.length?Gl(o,dA(l,3)):[]}var kK=vA(function(o){return kr(Ge(o,1,Be,!0))}),RK=vA(function(o){var l=en(o);return Be(l)&&(l=e),kr(Ge(o,1,Be,!0),dA(l,2))}),KK=vA(function(o){var l=en(o);return l=typeof l=="function"?l:e,kr(Ge(o,1,Be,!0),e,l)});function PK(o){return o&&o.length?kr(o):[]}function VK(o,l){return o&&o.length?kr(o,dA(l,2)):[]}function GK(o,l){return l=typeof l=="function"?l:e,o&&o.length?kr(o,e,l):[]}function Vd(o){if(!(o&&o.length))return[];var l=0;return o=Lr(o,function(d){if(Be(d))return l=ve(d.length,l),!0}),sd(l,function(d){return le(o,nd(d))})}function yy(o,l){if(!(o&&o.length))return[];var d=Vd(o);return l==null?d:le(d,function(B){return Ot(l,e,B)})}var WK=vA(function(o,l){return Be(o)?vo(o,l):[]}),$K=vA(function(o){return vd(Lr(o,Be))}),JK=vA(function(o){var l=en(o);return Be(l)&&(l=e),vd(Lr(o,Be),dA(l,2))}),XK=vA(function(o){var l=en(o);return l=typeof l=="function"?l:e,vd(Lr(o,Be),e,l)}),YK=vA(Vd);function zK(o,l){return k0(o||[],l||[],bo)}function qK(o,l){return k0(o||[],l||[],To)}var ZK=vA(function(o){var l=o.length,d=l>1?o[l-1]:e;return d=typeof d=="function"?(o.pop(),d):e,yy(o,d)});function Ey(o){var l=y(o);return l.__chain__=!0,l}function jK(o,l){return l(o),o}function jl(o,l){return l(o)}var AP=Zn(function(o){var l=o.length,d=l?o[0]:0,B=this.__wrapped__,C=function(F){return hd(F,o)};return l>1||this.__actions__.length||!(B instanceof OA)||!jn(d)?this.thru(C):(B=B.slice(d,+d+(l?1:0)),B.__actions__.push({func:jl,args:[C],thisArg:e}),new Zt(B,this.__chain__).thru(function(F){return l&&!F.length&&F.push(e),F}))});function eP(){return Ey(this)}function tP(){return new Zt(this.value(),this.__chain__)}function nP(){this.__values__===e&&(this.__values__=My(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function rP(){return this}function iP(o){for(var l,d=this;d instanceof Dl;){var B=py(d);B.__index__=0,B.__values__=e,l?C.__wrapped__=B:l=B;var C=B;d=d.__wrapped__}return C.__wrapped__=o,l}function sP(){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:jl,args:[Pd],thisArg:e}),new Zt(l,this.__chain__)}return this.thru(Pd)}function oP(){return D0(this.__wrapped__,this.__actions__)}var aP=Wl(function(o,l,d){XA.call(o,d)?++o[d]:zn(o,d,1)});function lP(o,l,d){var B=wA(o)?qC:jR;return d&&ht(o,l,d)&&(l=e),B(o,dA(l,3))}function cP(o,l){var d=wA(o)?Lr:y0;return d(o,dA(l,3))}var uP=Y0(gy),fP=Y0(By);function dP(o,l){return Ge(Ac(o,l),1)}function hP(o,l){return Ge(Ac(o,l),nA)}function pP(o,l,d){return d=d===e?1:yA(d),Ge(Ac(o,l),d)}function Qy(o,l){var d=wA(o)?zt:Dr;return d(o,dA(l,3))}function Fy(o,l){var d=wA(o)?Lk:C0;return d(o,dA(l,3))}var gP=Wl(function(o,l,d){XA.call(o,d)?o[d].push(l):zn(o,d,[l])});function BP(o,l,d,B){o=Et(o)?o:Cs(o),d=d&&!B?yA(d):0;var C=o.length;return d<0&&(d=ve(C+d,0)),ic(o)?d<=C&&o.indexOf(l,d)>-1:!!C&&as(o,l,d)>-1}var mP=vA(function(o,l,d){var B=-1,C=typeof l=="function",F=Et(o)?D(o.length):[];return Dr(o,function(S){F[++B]=C?Ot(l,S,d):Io(S,l,d)}),F}),wP=Wl(function(o,l,d){zn(o,d,l)});function Ac(o,l){var d=wA(o)?le:v0;return d(o,dA(l,3))}function CP(o,l,d,B){return o==null?[]:(wA(l)||(l=l==null?[]:[l]),d=B?e:d,wA(d)||(d=d==null?[]:[d]),_0(o,l,d))}var yP=Wl(function(o,l,d){o[d?0:1].push(l)},function(){return[[],[]]});function EP(o,l,d){var B=wA(o)?ed:e0,C=arguments.length<3;return B(o,dA(l,4),d,C,Dr)}function QP(o,l,d){var B=wA(o)?Hk:e0,C=arguments.length<3;return B(o,dA(l,4),d,C,C0)}function FP(o,l){var d=wA(o)?Lr:y0;return d(o,nc(dA(l,3)))}function UP(o){var l=wA(o)?g0:B4;return l(o)}function bP(o,l,d){(d?ht(o,l,d):l===e)?l=1:l=yA(l);var B=wA(o)?XR:m4;return B(o,l)}function vP(o){var l=wA(o)?YR:C4;return l(o)}function IP(o){if(o==null)return 0;if(Et(o))return ic(o)?cs(o):o.length;var l=et(o);return l==v||l==Ke?o.size:Cd(o).length}function SP(o,l,d){var B=wA(o)?td:y4;return d&&ht(o,l,d)&&(l=e),B(o,dA(l,3))}var TP=vA(function(o,l){if(o==null)return[];var d=l.length;return d>1&&ht(o,l[0],l[1])?l=[]:d>2&&ht(l[0],l[1],l[2])&&(l=[l[0]]),_0(o,Ge(l,1),[])}),ec=cR||function(){return Ve.Date.now()};function _P(o,l){if(typeof l!="function")throw new qt(s);return o=yA(o),function(){if(--o<1)return l.apply(this,arguments)}}function Uy(o,l,d){return l=d?e:l,l=o&&l==null?o.length:l,qn(o,H,e,e,e,e,l)}function by(o,l){var d;if(typeof l!="function")throw new qt(s);return o=yA(o),function(){return--o>0&&(d=l.apply(this,arguments)),o<=1&&(l=e),d}}var Gd=vA(function(o,l,d){var B=b;if(d.length){var C=Mr(d,ms(Gd));B|=N}return qn(o,B,l,d,C)}),vy=vA(function(o,l,d){var B=b|Q;if(d.length){var C=Mr(d,ms(vy));B|=N}return qn(l,B,o,d,C)});function Iy(o,l,d){l=d?e:l;var B=qn(o,M,e,e,e,e,e,l);return B.placeholder=Iy.placeholder,B}function Sy(o,l,d){l=d?e:l;var B=qn(o,E,e,e,e,e,e,l);return B.placeholder=Sy.placeholder,B}function Ty(o,l,d){var B,C,F,S,_,L,G=0,W=!1,$=!1,z=!0;if(typeof o!="function")throw new qt(s);l=tn(l)||0,ue(d)&&(W=!!d.leading,$="maxWait"in d,F=$?ve(tn(d.maxWait)||0,l):F,z="trailing"in d?!!d.trailing:z);function aA(me){var pn=B,tr=C;return B=C=e,G=me,S=o.apply(tr,pn),S}function pA(me){return G=me,_=Oo(TA,l),W?aA(me):S}function FA(me){var pn=me-L,tr=me-G,Yy=l-pn;return $?At(Yy,F-tr):Yy}function gA(me){var pn=me-L,tr=me-G;return L===e||pn>=l||pn<0||$&&tr>=F}function TA(){var me=ec();if(gA(me))return MA(me);_=Oo(TA,FA(me))}function MA(me){return _=e,z&&B?aA(me):(B=C=e,S)}function Nt(){_!==e&&R0(_),G=0,B=L=C=_=e}function pt(){return _===e?S:MA(ec())}function Dt(){var me=ec(),pn=gA(me);if(B=arguments,C=this,L=me,pn){if(_===e)return pA(L);if($)return R0(_),_=Oo(TA,l),aA(L)}return _===e&&(_=Oo(TA,l)),S}return Dt.cancel=Nt,Dt.flush=pt,Dt}var xP=vA(function(o,l){return w0(o,1,l)}),OP=vA(function(o,l,d){return w0(o,tn(l)||0,d)});function LP(o){return qn(o,P)}function tc(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new qt(s);var d=function(){var B=arguments,C=l?l.apply(this,B):B[0],F=d.cache;if(F.has(C))return F.get(C);var S=o.apply(this,B);return d.cache=F.set(C,S)||F,S};return d.cache=new(tc.Cache||Yn),d}tc.Cache=Yn;function nc(o){if(typeof o!="function")throw new qt(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 HP(o){return by(2,o)}var MP=E4(function(o,l){l=l.length==1&&wA(l[0])?le(l[0],Lt(dA())):le(Ge(l,1),Lt(dA()));var d=l.length;return vA(function(B){for(var C=-1,F=At(B.length,d);++C<F;)B[C]=l[C].call(this,B[C]);return Ot(o,this,B)})}),Wd=vA(function(o,l){var d=Mr(l,ms(Wd));return qn(o,N,e,l,d)}),_y=vA(function(o,l){var d=Mr(l,ms(_y));return qn(o,T,e,l,d)}),NP=Zn(function(o,l){return qn(o,Y,e,e,e,l)});function DP(o,l){if(typeof o!="function")throw new qt(s);return l=l===e?l:yA(l),vA(o,l)}function kP(o,l){if(typeof o!="function")throw new qt(s);return l=l==null?0:ve(yA(l),0),vA(function(d){var B=d[l],C=Kr(d,0,l);return B&&Hr(C,B),Ot(o,this,C)})}function RP(o,l,d){var B=!0,C=!0;if(typeof o!="function")throw new qt(s);return ue(d)&&(B="leading"in d?!!d.leading:B,C="trailing"in d?!!d.trailing:C),Ty(o,l,{leading:B,maxWait:l,trailing:C})}function KP(o){return Uy(o,1)}function PP(o,l){return Wd(Sd(l),o)}function VP(){if(!arguments.length)return[];var o=arguments[0];return wA(o)?o:[o]}function GP(o){return jt(o,m)}function WP(o,l){return l=typeof l=="function"?l:e,jt(o,m,l)}function $P(o){return jt(o,h|m)}function JP(o,l){return l=typeof l=="function"?l:e,jt(o,h|m,l)}function XP(o,l){return l==null||m0(o,l,Oe(l))}function hn(o,l){return o===l||o!==o&&l!==l}var YP=Yl(Bd),zP=Yl(function(o,l){return o>=l}),yi=F0(function(){return arguments}())?F0:function(o){return he(o)&&XA.call(o,"callee")&&!c0.call(o,"callee")},wA=D.isArray,qP=WC?Lt(WC):i4;function Et(o){return o!=null&&rc(o.length)&&!Ar(o)}function Be(o){return he(o)&&Et(o)}function ZP(o){return o===!0||o===!1||he(o)&&dt(o)==ct}var Pr=fR||th,jP=$C?Lt($C):s4;function AV(o){return he(o)&&o.nodeType===1&&!Lo(o)}function eV(o){if(o==null)return!0;if(Et(o)&&(wA(o)||typeof o=="string"||typeof o.splice=="function"||Pr(o)||ws(o)||yi(o)))return!o.length;var l=et(o);if(l==v||l==Ke)return!o.size;if(xo(o))return!Cd(o).length;for(var d in o)if(XA.call(o,d))return!1;return!0}function tV(o,l){return So(o,l)}function nV(o,l,d){d=typeof d=="function"?d:e;var B=d?d(o,l):e;return B===e?So(o,l,e,d):!!B}function $d(o){if(!he(o))return!1;var l=dt(o);return l==ut||l==ke||typeof o.message=="string"&&typeof o.name=="string"&&!Lo(o)}function rV(o){return typeof o=="number"&&f0(o)}function Ar(o){if(!ue(o))return!1;var l=dt(o);return l==Tt||l==x||l==lt||l==ft}function xy(o){return typeof o=="number"&&o==yA(o)}function rc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=sA}function ue(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function he(o){return o!=null&&typeof o=="object"}var Oy=JC?Lt(JC):a4;function iV(o,l){return o===l||wd(o,l,Md(l))}function sV(o,l,d){return d=typeof d=="function"?d:e,wd(o,l,Md(l),d)}function oV(o){return Ly(o)&&o!=+o}function aV(o){if(W4(o))throw new mA(i);return U0(o)}function lV(o){return o===null}function cV(o){return o==null}function Ly(o){return typeof o=="number"||he(o)&&dt(o)==k}function Lo(o){if(!he(o)||dt(o)!=lA)return!1;var l=_l(o);if(l===null)return!0;var d=XA.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&vl.call(d)==sR}var Jd=XC?Lt(XC):l4;function uV(o){return xy(o)&&o>=-sA&&o<=sA}var Hy=YC?Lt(YC):c4;function ic(o){return typeof o=="string"||!wA(o)&&he(o)&&dt(o)==Sn}function Mt(o){return typeof o=="symbol"||he(o)&&dt(o)==un}var ws=zC?Lt(zC):u4;function fV(o){return o===e}function dV(o){return he(o)&&et(o)==K}function hV(o){return he(o)&&dt(o)==X}var pV=Yl(yd),gV=Yl(function(o,l){return o<=l});function My(o){if(!o)return[];if(Et(o))return ic(o)?fn(o):yt(o);if(yo&&o[yo])return Xk(o[yo]());var l=et(o),d=l==v?ad:l==Ke?Fl:Cs;return d(o)}function er(o){if(!o)return o===0?o:0;if(o=tn(o),o===nA||o===-nA){var l=o<0?-1:1;return l*jA}return o===o?o:0}function yA(o){var l=er(o),d=l%1;return l===l?d?l-d:l:0}function Ny(o){return o?Bi(yA(o),0,DA):0}function tn(o){if(typeof o=="number")return o;if(Mt(o))return LA;if(ue(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=ue(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=t0(o);var d=qD.test(o);return d||jD.test(o)?_k(o.slice(2),d?2:8):zD.test(o)?LA:+o}function Dy(o){return xn(o,Qt(o))}function BV(o){return o?Bi(yA(o),-sA,sA):o===0?o:0}function JA(o){return o==null?"":Ht(o)}var mV=gs(function(o,l){if(xo(l)||Et(l)){xn(l,Oe(l),o);return}for(var d in l)XA.call(l,d)&&bo(o,d,l[d])}),ky=gs(function(o,l){xn(l,Qt(l),o)}),sc=gs(function(o,l,d,B){xn(l,Qt(l),o,B)}),wV=gs(function(o,l,d,B){xn(l,Oe(l),o,B)}),CV=Zn(hd);function yV(o,l){var d=ps(o);return l==null?d:B0(d,l)}var EV=vA(function(o,l){o=Ae(o);var d=-1,B=l.length,C=B>2?l[2]:e;for(C&&ht(l[0],l[1],C)&&(B=1);++d<B;)for(var F=l[d],S=Qt(F),_=-1,L=S.length;++_<L;){var G=S[_],W=o[G];(W===e||hn(W,fs[G])&&!XA.call(o,G))&&(o[G]=F[G])}return o}),QV=vA(function(o){return o.push(e,ty),Ot(Ry,e,o)});function FV(o,l){return ZC(o,dA(l,3),_n)}function UV(o,l){return ZC(o,dA(l,3),gd)}function bV(o,l){return o==null?o:pd(o,dA(l,3),Qt)}function vV(o,l){return o==null?o:E0(o,dA(l,3),Qt)}function IV(o,l){return o&&_n(o,dA(l,3))}function SV(o,l){return o&&gd(o,dA(l,3))}function TV(o){return o==null?[]:Kl(o,Oe(o))}function _V(o){return o==null?[]:Kl(o,Qt(o))}function Xd(o,l,d){var B=o==null?e:mi(o,l);return B===e?d:B}function xV(o,l){return o!=null&&iy(o,l,e4)}function Yd(o,l){return o!=null&&iy(o,l,t4)}var OV=q0(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),o[l]=d},qd(Ft)),LV=q0(function(o,l,d){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),XA.call(o,l)?o[l].push(d):o[l]=[d]},dA),HV=vA(Io);function Oe(o){return Et(o)?p0(o):Cd(o)}function Qt(o){return Et(o)?p0(o,!0):f4(o)}function MV(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,F){zn(d,l(B,C,F),B)}),d}function NV(o,l){var d={};return l=dA(l,3),_n(o,function(B,C,F){zn(d,C,l(B,C,F))}),d}var DV=gs(function(o,l,d){Pl(o,l,d)}),Ry=gs(function(o,l,d,B){Pl(o,l,d,B)}),kV=Zn(function(o,l){var d={};if(o==null)return d;var B=!1;l=le(l,function(F){return F=Rr(F,o),B||(B=F.length>1),F}),xn(o,Ld(o),d),B&&(d=jt(d,h|g|m,O4));for(var C=l.length;C--;)bd(d,l[C]);return d});function RV(o,l){return Ky(o,nc(dA(l)))}var KV=Zn(function(o,l){return o==null?{}:h4(o,l)});function Ky(o,l){if(o==null)return{};var d=le(Ld(o),function(B){return[B]});return l=dA(l),x0(o,d,function(B,C){return l(B,C[0])})}function PV(o,l,d){l=Rr(l,o);var B=-1,C=l.length;for(C||(C=1,o=e);++B<C;){var F=o==null?e:o[On(l[B])];F===e&&(B=C,F=d),o=Ar(F)?F.call(o):F}return o}function VV(o,l,d){return o==null?o:To(o,l,d)}function GV(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:To(o,l,d,B)}var Py=Ay(Oe),Vy=Ay(Qt);function WV(o,l,d){var B=wA(o),C=B||Pr(o)||ws(o);if(l=dA(l,4),d==null){var F=o&&o.constructor;C?d=B?new F:[]:ue(o)?d=Ar(F)?ps(_l(o)):{}:d={}}return(C?zt:_n)(o,function(S,_,L){return l(d,S,_,L)}),d}function $V(o,l){return o==null?!0:bd(o,l)}function JV(o,l,d){return o==null?o:N0(o,l,Sd(d))}function XV(o,l,d,B){return B=typeof B=="function"?B:e,o==null?o:N0(o,l,Sd(d),B)}function Cs(o){return o==null?[]:od(o,Oe(o))}function YV(o){return o==null?[]:od(o,Qt(o))}function zV(o,l,d){return d===e&&(d=l,l=e),d!==e&&(d=tn(d),d=d===d?d:0),l!==e&&(l=tn(l),l=l===l?l:0),Bi(tn(o),l,d)}function qV(o,l,d){return l=er(l),d===e?(d=l,l=0):d=er(d),o=tn(o),n4(o,l,d)}function ZV(o,l,d){if(d&&typeof d!="boolean"&&ht(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=er(o),l===e?(l=o,o=0):l=er(l)),o>l){var B=o;o=l,l=B}if(d||o%1||l%1){var C=d0();return At(o+C*(l-o+Tk("1e-"+((C+"").length-1))),l)}return Qd(o,l)}var jV=Bs(function(o,l,d){return l=l.toLowerCase(),o+(d?Gy(l):l)});function Gy(o){return zd(JA(o).toLowerCase())}function Wy(o){return o=JA(o),o&&o.replace(ek,Vk).replace(Ck,"")}function A2(o,l,d){o=JA(o),l=Ht(l);var B=o.length;d=d===e?B:Bi(yA(d),0,B);var C=d;return d-=l.length,d>=0&&o.slice(d,C)==l}function e2(o){return o=JA(o),o&&mo.test(o)?o.replace(Bo,Gk):o}function t2(o){return o=JA(o),o&&KD.test(o)?o.replace(Wf,"\\$&"):o}var n2=Bs(function(o,l,d){return o+(d?"-":"")+l.toLowerCase()}),r2=Bs(function(o,l,d){return o+(d?" ":"")+l.toLowerCase()}),i2=X0("toLowerCase");function s2(o,l,d){o=JA(o),l=yA(l);var B=l?cs(o):0;if(!l||B>=l)return o;var C=(l-B)/2;return Xl(Hl(C),d)+o+Xl(Ll(C),d)}function o2(o,l,d){o=JA(o),l=yA(l);var B=l?cs(o):0;return l&&B<l?o+Xl(l-B,d):o}function a2(o,l,d){o=JA(o),l=yA(l);var B=l?cs(o):0;return l&&B<l?Xl(l-B,d)+o:o}function l2(o,l,d){return d||l==null?l=0:l&&(l=+l),gR(JA(o).replace($f,""),l||0)}function c2(o,l,d){return(d?ht(o,l,d):l===e)?l=1:l=yA(l),Fd(JA(o),l)}function u2(){var o=arguments,l=JA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var f2=Bs(function(o,l,d){return o+(d?"_":"")+l.toLowerCase()});function d2(o,l,d){return d&&typeof d!="number"&&ht(o,l,d)&&(l=d=e),d=d===e?DA:d>>>0,d?(o=JA(o),o&&(typeof l=="string"||l!=null&&!Jd(l))&&(l=Ht(l),!l&&ls(o))?Kr(fn(o),0,d):o.split(l,d)):[]}var h2=Bs(function(o,l,d){return o+(d?" ":"")+zd(l)});function p2(o,l,d){return o=JA(o),d=d==null?0:Bi(yA(d),0,o.length),l=Ht(l),o.slice(d,d+l.length)==l}function g2(o,l,d){var B=y.templateSettings;d&&ht(o,l,d)&&(l=e),o=JA(o),l=sc({},l,B,ey);var C=sc({},l.imports,B.imports,ey),F=Oe(C),S=od(C,F),_,L,G=0,W=l.interpolate||wl,$="__p += '",z=ld((l.escape||wl).source+"|"+W.source+"|"+(W===ml?YD:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),aA="//# sourceURL="+(XA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Uk+"]")+`
|
|
143
|
+
`;o.replace(z,function(gA,TA,MA,Nt,pt,Dt){return MA||(MA=Nt),$+=o.slice(G,Dt).replace(tk,Wk),TA&&(_=!0,$+=`' +
|
|
144
|
+
__e(`+TA+`) +
|
|
145
145
|
'`),pt&&(L=!0,$+=`';
|
|
146
146
|
`+pt+`;
|
|
147
147
|
__p += '`),MA&&($+=`' +
|
|
148
148
|
((__t = (`+MA+`)) == null ? '' : __t) +
|
|
149
|
-
'`),G=Dt+
|
|
150
|
-
`;var
|
|
149
|
+
'`),G=Dt+gA.length,gA}),$+=`';
|
|
150
|
+
`;var pA=XA.call(l,"variable")&&l.variable;if(!pA)$=`with (obj) {
|
|
151
151
|
`+$+`
|
|
152
152
|
}
|
|
153
|
-
`;else if(
|
|
154
|
-
`+(
|
|
153
|
+
`;else if(JD.test(pA))throw new mA(a);$=(L?$.replace(HA,""):$).replace(Pe,"$1").replace(Ct,"$1;"),$="function("+(pA||"obj")+`) {
|
|
154
|
+
`+(pA?"":`obj || (obj = {});
|
|
155
155
|
`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|
156
156
|
function print() { __p += __j.call(arguments, '') }
|
|
157
157
|
`:`;
|
|
158
158
|
`)+$+`return __p
|
|
159
|
-
}`;var FA=Jy(function(){return KA(Q,sA+"return "+$).apply(e,S)});if(FA.source=$,$d(FA))throw FA;return FA}function g2(o){return GA(o).toLowerCase()}function B2(o){return GA(o).toUpperCase()}function m2(o,l,d){if(o=GA(o),o&&(d||l===e))return t0(o);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=fn(l),Q=n0(B,C),S=r0(B,C)+1;return Kr(B,Q,S).join("")}function w2(o,l,d){if(o=GA(o),o&&(d||l===e))return o.slice(0,s0(o)+1);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=r0(B,fn(l))+1;return Kr(B,0,C).join("")}function C2(o,l,d){if(o=GA(o),o&&(d||l===e))return o.replace($f,"");if(!o||!(l=Ht(l)))return o;var B=fn(o),C=n0(B,fn(l));return Kr(B,C).join("")}function y2(o,l){var d=z,B=lA;if(ae(l)){var C="separator"in l?l.separator:C;d="length"in l?yA(l.length):d,B="omission"in l?Ht(l.omission):B}o=GA(o);var Q=o.length;if(ls(o)){var S=fn(o);Q=S.length}if(d>=Q)return o;var _=d-cs(B);if(_<1)return B;var L=S?Kr(S,0,_).join(""):o.slice(0,_);if(C===e)return L+B;if(S&&(_+=L.length-_),Jd(C)){if(o.slice(_).search(C)){var G,W=L;for(C.global||(C=ld(C.source,GA(FC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var $=G.index;L=L.slice(0,$===e?_:$)}}else if(o.indexOf(Ht(C),_)!=_){var q=L.lastIndexOf(C);q>-1&&(L=L.slice(0,q))}return L+B}function E2(o){return o=GA(o),o&&Jn.test(o)?o.replace($n,qk):o}var Q2=Bs(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),zd=X0("toUpperCase");function $y(o,l,d){return o=GA(o),l=d?e:l,l===e?$k(o)?AR(o):Nk(o):o.match(l)||[]}var Jy=bA(function(o,l){try{return Ot(o,e,l)}catch(d){return $d(d)?d:new BA(d)}}),F2=Zn(function(o,l){return zt(l,function(d){d=On(d),zn(o,d,Gd(o[d],o))}),o});function U2(o){var l=o==null?0:o.length,d=dA();return o=l?se(o,function(B){if(typeof B[1]!="function")throw new qt(s);return[d(B[0]),B[1]]}):[],bA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(Ot(Q[0],this,B))return Ot(Q[1],this,B)}})}function b2(o){return qR(jt(o,h))}function qd(o){return function(){return o}}function v2(o,l){return o==null||o!==o?l:o}var I2=z0(),S2=z0(!0);function Ft(o){return o}function Zd(o){return b0(typeof o=="function"?o:jt(o,h))}function T2(o){return I0(jt(o,h))}function _2(o,l){return S0(o,jt(l,h))}var x2=bA(function(o,l){return function(d){return Io(d,o,l)}}),O2=bA(function(o,l){return function(d){return Io(o,d,l)}});function jd(o,l,d){var B=Oe(l),C=Kl(l,B);d==null&&!(ae(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=Kl(l,Oe(l)));var Q=!(ae(d)&&"chain"in d)||!!d.chain,S=Ar(o);return zt(C,function(_){var L=l[_];o[_]=L,S&&(o.prototype[_]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),$=W.__actions__=yt(this.__actions__);return $.push({func:L,args:arguments,thisArg:o}),W.__chain__=G,W}return L.apply(o,Hr([this.value()],arguments))})}),o}function L2(){return Ve._===this&&(Ve._=sR),this}function Ah(){}function H2(o){return o=yA(o),bA(function(l){return T0(l,o)})}var M2=_d(se),N2=_d(qC),D2=_d(td);function Xy(o){return Dd(o)?nd(On(o)):h4(o)}function k2(o){return function(l){return o==null?e:mi(o,l)}}var R2=Z0(),K2=Z0(!0);function eh(){return[]}function th(){return!1}function P2(){return{}}function V2(){return""}function G2(){return!0}function W2(o,l){if(o=yA(o),o<1||o>vA)return[];var d=WA,B=At(o,WA);l=dA(l),o-=WA;for(var C=sd(B,l);++d<o;)l(d);return C}function $2(o){return mA(o)?se(o,On):Mt(o)?[o]:yt(hy(GA(o)))}function J2(o){var l=++rR;return GA(o)+l}var X2=Jl(function(o,l){return o+l},0),Y2=xd("ceil"),z2=Jl(function(o,l){return o/l},1),q2=xd("floor");function Z2(o){return o&&o.length?Rl(o,Ft,Bd):e}function j2(o,l){return o&&o.length?Rl(o,dA(l,2),Bd):e}function AG(o){return A0(o,Ft)}function eG(o,l){return A0(o,dA(l,2))}function tG(o){return o&&o.length?Rl(o,Ft,yd):e}function nG(o,l){return o&&o.length?Rl(o,dA(l,2),yd):e}var rG=Jl(function(o,l){return o*l},1),iG=xd("round"),sG=Jl(function(o,l){return o-l},0);function oG(o){return o&&o.length?id(o,Ft):0}function aG(o,l){return o&&o.length?id(o,dA(l,2)):0}return y.after=TP,y.ary=Uy,y.assign=BV,y.assignIn=ky,y.assignInWith=sc,y.assignWith=mV,y.at=wV,y.before=by,y.bind=Gd,y.bindAll=F2,y.bindKey=vy,y.castArray=PP,y.chain=Ey,y.chunk=q4,y.compact=Z4,y.concat=j4,y.cond=U2,y.conforms=b2,y.constant=qd,y.countBy=oP,y.create=CV,y.curry=Iy,y.curryRight=Sy,y.debounce=Ty,y.defaults=yV,y.defaultsDeep=EV,y.defer=_P,y.delay=xP,y.difference=AK,y.differenceBy=eK,y.differenceWith=tK,y.drop=nK,y.dropRight=rK,y.dropRightWhile=iK,y.dropWhile=sK,y.fill=oK,y.filter=lP,y.flatMap=fP,y.flatMapDeep=dP,y.flatMapDepth=hP,y.flatten=my,y.flattenDeep=aK,y.flattenDepth=lK,y.flip=OP,y.flow=I2,y.flowRight=S2,y.fromPairs=cK,y.functions=SV,y.functionsIn=TV,y.groupBy=pP,y.initial=fK,y.intersection=dK,y.intersectionBy=hK,y.intersectionWith=pK,y.invert=xV,y.invertBy=OV,y.invokeMap=BP,y.iteratee=Zd,y.keyBy=mP,y.keys=Oe,y.keysIn=Qt,y.map=Ac,y.mapKeys=HV,y.mapValues=MV,y.matches=T2,y.matchesProperty=_2,y.memoize=tc,y.merge=NV,y.mergeWith=Ry,y.method=x2,y.methodOf=O2,y.mixin=jd,y.negate=nc,y.nthArg=H2,y.omit=DV,y.omitBy=kV,y.once=LP,y.orderBy=wP,y.over=M2,y.overArgs=HP,y.overEvery=N2,y.overSome=D2,y.partial=Wd,y.partialRight=_y,y.partition=CP,y.pick=RV,y.pickBy=Ky,y.property=Xy,y.propertyOf=k2,y.pull=wK,y.pullAll=Cy,y.pullAllBy=CK,y.pullAllWith=yK,y.pullAt=EK,y.range=R2,y.rangeRight=K2,y.rearg=MP,y.reject=QP,y.remove=QK,y.rest=NP,y.reverse=Pd,y.sampleSize=UP,y.set=PV,y.setWith=VV,y.shuffle=bP,y.slice=FK,y.sortBy=SP,y.sortedUniq=_K,y.sortedUniqBy=xK,y.split=f2,y.spread=DP,y.tail=OK,y.take=LK,y.takeRight=HK,y.takeRightWhile=MK,y.takeWhile=NK,y.tap=ZK,y.throttle=kP,y.thru=jl,y.toArray=My,y.toPairs=Py,y.toPairsIn=Vy,y.toPath=$2,y.toPlainObject=Dy,y.transform=GV,y.unary=RP,y.union=DK,y.unionBy=kK,y.unionWith=RK,y.uniq=KK,y.uniqBy=PK,y.uniqWith=VK,y.unset=WV,y.unzip=Vd,y.unzipWith=yy,y.update=$V,y.updateWith=JV,y.values=Cs,y.valuesIn=XV,y.without=GK,y.words=$y,y.wrap=KP,y.xor=WK,y.xorBy=$K,y.xorWith=JK,y.zip=XK,y.zipObject=YK,y.zipObjectDeep=zK,y.zipWith=qK,y.entries=Py,y.entriesIn=Vy,y.extend=ky,y.extendWith=sc,jd(y,y),y.add=X2,y.attempt=Jy,y.camelCase=ZV,y.capitalize=Gy,y.ceil=Y2,y.clamp=YV,y.clone=VP,y.cloneDeep=WP,y.cloneDeepWith=$P,y.cloneWith=GP,y.conformsTo=JP,y.deburr=Wy,y.defaultTo=v2,y.divide=z2,y.endsWith=jV,y.eq=hn,y.escape=A2,y.escapeRegExp=e2,y.every=aP,y.find=cP,y.findIndex=gy,y.findKey=QV,y.findLast=uP,y.findLastIndex=By,y.findLastKey=FV,y.floor=q2,y.forEach=Qy,y.forEachRight=Fy,y.forIn=UV,y.forInRight=bV,y.forOwn=vV,y.forOwnRight=IV,y.get=Xd,y.gt=XP,y.gte=YP,y.has=_V,y.hasIn=Yd,y.head=wy,y.identity=Ft,y.includes=gP,y.indexOf=uK,y.inRange=zV,y.invoke=LV,y.isArguments=yi,y.isArray=mA,y.isArrayBuffer=zP,y.isArrayLike=Et,y.isArrayLikeObject=de,y.isBoolean=qP,y.isBuffer=Pr,y.isDate=ZP,y.isElement=jP,y.isEmpty=AV,y.isEqual=eV,y.isEqualWith=tV,y.isError=$d,y.isFinite=nV,y.isFunction=Ar,y.isInteger=xy,y.isLength=rc,y.isMap=Oy,y.isMatch=rV,y.isMatchWith=iV,y.isNaN=sV,y.isNative=oV,y.isNil=lV,y.isNull=aV,y.isNumber=Ly,y.isObject=ae,y.isObjectLike=ce,y.isPlainObject=Lo,y.isRegExp=Jd,y.isSafeInteger=cV,y.isSet=Hy,y.isString=ic,y.isSymbol=Mt,y.isTypedArray=ws,y.isUndefined=uV,y.isWeakMap=fV,y.isWeakSet=dV,y.join=gK,y.kebabCase=t2,y.last=en,y.lastIndexOf=BK,y.lowerCase=n2,y.lowerFirst=r2,y.lt=hV,y.lte=pV,y.max=Z2,y.maxBy=j2,y.mean=AG,y.meanBy=eG,y.min=tG,y.minBy=nG,y.stubArray=eh,y.stubFalse=th,y.stubObject=P2,y.stubString=V2,y.stubTrue=G2,y.multiply=rG,y.nth=mK,y.noConflict=L2,y.noop=Ah,y.now=ec,y.pad=i2,y.padEnd=s2,y.padStart=o2,y.parseInt=a2,y.random=qV,y.reduce=yP,y.reduceRight=EP,y.repeat=l2,y.replace=c2,y.result=KV,y.round=iG,y.runInContext=O,y.sample=FP,y.size=vP,y.snakeCase=u2,y.some=IP,y.sortedIndex=UK,y.sortedIndexBy=bK,y.sortedIndexOf=vK,y.sortedLastIndex=IK,y.sortedLastIndexBy=SK,y.sortedLastIndexOf=TK,y.startCase=d2,y.startsWith=h2,y.subtract=sG,y.sum=oG,y.sumBy=aG,y.template=p2,y.times=W2,y.toFinite=er,y.toInteger=yA,y.toLength=Ny,y.toLower=g2,y.toNumber=tn,y.toSafeInteger=gV,y.toString=GA,y.toUpper=B2,y.trim=m2,y.trimEnd=w2,y.trimStart=C2,y.truncate=y2,y.unescape=E2,y.uniqueId=J2,y.upperCase=Q2,y.upperFirst=zd,y.each=Qy,y.eachRight=Fy,y.first=wy,jd(y,function(){var o={};return _n(y,function(l,d){$A.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),zt(["drop","take"],function(o,l){OA.prototype[o]=function(d){d=d===e?1:ve(yA(d),0);var B=this.__filtered__&&!l?new OA(this):this.clone();return B.__filtered__?B.__takeCount__=At(d,B.__takeCount__):B.__views__.push({size:At(d,WA),type:o+(B.__dir__<0?"Right":"")}),B},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),zt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==LA||d==xA;OA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),zt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),zt(["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(Ft)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=bA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return Io(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(nc(dA(o)))},OA.prototype.slice=function(o,l){o=yA(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=yA(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(WA)},_n(OA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var S=this.__wrapped__,_=B?[1]:arguments,L=S instanceof OA,G=_[0],W=L||mA(S),$=function(SA){var MA=C.apply(y,Hr([SA],_));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(L=W=!1);var q=this.__chain__,sA=!!this.__actions__.length,hA=Q&&!q,FA=L&&!sA;if(!Q&&W){S=FA?S:new OA(this);var pA=o.apply(S,_);return pA.__actions__.push({func:jl,args:[$],thisArg:e}),new Zt(pA,q)}return hA&&FA?o.apply(this,_):(pA=this.thru($),hA?B?pA.value()[0]:pA.value():pA)})}),zt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ul[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(mA(Q)?Q:[],C)}return this[d](function(S){return l.apply(mA(S)?S:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";$A.call(hs,B)||(hs[B]=[]),hs[B].push({name:l,func:d})}}),hs[$l(e,F).name]=[{name:"wrapper",func:e}],OA.prototype.clone=ER,OA.prototype.reverse=QR,OA.prototype.value=FR,y.prototype.at=jK,y.prototype.chain=AP,y.prototype.commit=eP,y.prototype.next=tP,y.prototype.plant=rP,y.prototype.reverse=iP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=sP,y.prototype.first=y.prototype.head,yo&&(y.prototype[yo]=nP),y},us=eR();di?((di.exports=us)._=us,Zf._=us):Ve._=us}).call(Xs)}(Fa,Fa.exports);var dm=Fa.exports;const MT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAA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ggg==",NT={class:"camera__preview"},DT={class:"camera__bg-notification"},kT={class:p.normalizeClass("d-block light--text")},RT=["width","height"],KT=["width","height"],PT={key:0,class:"camera__countdown-overlay"},VT=["innerHTML","data-countdown"],GT=["src"],WT={class:"camera__controls"},$T={class:"container"},JT={class:"row"},XT={class:"col"},YT={class:"btn-group"},zT={key:0},qT={key:1},ZT={key:0,class:"camera__switch-cam"},jT={name:"BaseCamera",inheritAttrs:!1};function A_(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 e_=p.defineComponent({...jT,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:()=>MT},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n={"1-1":{width:720,height:720},"4-3":{width:640,height:480},"3-4":{width:480,height:640},"16-9":{width:1280,height:720},"9-16":{width:720,height:1280}},r=t,i=e,s=p.ref(),a=p.ref(),c=p.ref(),u=p.ref(),f=p.ref(!1),h=p.ref(!1),g=p.ref(0),m=p.ref(0),w=p.ref(),U=p.computed(()=>{const z=u.value&&c.value.findIndex(lA=>lA.deviceId===u.value.deviceId);return r.enableMirrorCamera&&z===0?"mirror-cam":""}),b=p.computed(()=>{const z=u.value&&c.value.findIndex(lA=>lA.deviceId===u.value.deviceId);return U.value?`mirror-cam mirror-device-${z}`:""});function F(){g.value=s.value&&s.value.clientWidth,m.value=s.value&&s.value.clientHeight}const I=dm.debounce(()=>{F()},300,{trailing:!0,leading:!1});function M(){c.value.length>1&&(N(),u.value=u.value&&u.value.deviceId===c.value[0].deviceId?c.value[1]:c.value[0],E())}function E(){navigator.mediaDevices.getUserMedia({audio:!1,video:{...u.value?{deviceId:u.value.deviceId}:{},width:{ideal:n[r.ratio]?n[r.ratio].width:s.value.clientWidth},height:{ideal:n[r.ratio]?n[r.ratio].height:s.value.clientHeight}}}).then(z=>{s.value.srcObject=z}).catch(z=>{console.log(z,"May the browser didnt support or there is some errors.")})}function N(){s.value.srcObject.getTracks().forEach(lA=>{lA.stop()})}function T(){f.value?(f.value=!1,h.value=!1,N()):(f.value=!0,E())}function H(){r.countdown?(w.value=w.value?w.value-1:r.countdown,w.value?setTimeout(H,1e3):Y()):Y()}A({onCapture:H});function Y(){h.value=!0;const z=a.value.getContext("2d"),lA=s.value,uA=lA&&lA.srcObject&&lA.srcObject.getTracks(),{width:aA,height:LA}=uA.length&&uA[0].getSettings(),Ae=aA/LA;let xA=a.value.width,CA=xA/Ae;CA<a.value.height&&(CA=a.value.height,xA=CA*Ae);const vA=U.value?-1:1;z.save(),z.scale(vA,1),z.drawImage(lA,xA>a.value.width?(a.value.width-xA)/2:0,CA>a.value.height?(a.value.height-CA)/2:0,xA*vA,CA),z.restore();const re=a.value.toDataURL("image/png");V(re)}function V(z){const lA=A_(z);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:lA,size:lA.size})}return p.onBeforeMount(async()=>{const z=await navigator.mediaDevices.enumerateDevices();c.value=z.filter(lA=>lA.kind==="videoinput"),u.value=c.value[0],r.defaultRearCamera&&M()}),p.onMounted(()=>{window.addEventListener("resize",I),F(),T()}),p.onBeforeUnmount(()=>{f.value=!1,h.value=!1,N(),window.removeEventListener("resize",I)}),(z,lA)=>{const uA=p.resolveComponent("loading-spinner"),aA=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["camera",b.value])},[p.createElementVNode("div",NT,[p.createElementVNode("div",DT,[p.createVNode(uA,{color:"#000"},{default:p.withCtx(()=>[p.createElementVNode("span",kT,p.toDisplayString(z.$t("camera.waitForCameraNotification")),1)]),_:1})]),p.createElementVNode("video",{ref_key:"camera",ref:s,class:"camera__video",width:g.value,height:m.value,autoplay:"",playsinline:""},null,8,RT),p.withDirectives(p.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:g.value,height:m.value},null,8,KT),[[p.vShow,h.value]]),w.value?(p.openBlock(),p.createElementBlock("div",PT,[(p.openBlock(),p.createElementBlock("p",{class:"countdown",key:w.value,innerHTML:w.value,"data-countdown":w.value},null,8,VT))])):p.createCommentVNode("",!0),t.enableGuide&&f.value?(p.openBlock(),p.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,GT)):p.createCommentVNode("",!0)]),p.createElementVNode("div",WT,[p.createElementVNode("div",$T,[p.createElementVNode("div",JT,[p.createElementVNode("div",XT,[p.createElementVNode("div",YT,[p.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[f.value?(p.openBlock(),p.createElementBlock("span",qT,p.toDisplayString(z.$t("common.pause")),1)):(p.openBlock(),p.createElementBlock("span",zT,p.toDisplayString(z.$t("common.play")),1))]),p.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:H},p.toDisplayString(z.$t("camera.capture")),1)])])])])]),c.value&&c.value.length>1?(p.openBlock(),p.createElementBlock("div",ZT,[p.createElementVNode("button",{class:"btn",onClick:p.withModifiers(M,["prevent"])},[p.createVNode(aA,{symbol:"switch-camera"})])])):p.createCommentVNode("",!0)],2)}}}),_G="",t_=/"(?:_|\\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*:/,n_=/"(?: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 i_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){s_(t);return}return A}function s_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function o_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.at(-1)==='"'&&!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(t_.test(t)||n_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,i_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const a_=/#/g,l_=/&/g,c_=/=/g,Pu=/\+/g,u_=/%5e/gi,f_=/%60/gi,d_=/%7c/gi,h_=/%20/gi;function p_(t){return encodeURI(""+t).replace(d_,"|")}function Vu(t){return p_(typeof t=="string"?t:JSON.stringify(t)).replace(Pu,"%2B").replace(h_,"+").replace(a_,"%23").replace(l_,"%26").replace(f_,"`").replace(u_,"^")}function Gu(t){return Vu(t).replace(c_,"%3D")}function hm(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function g_(t){return hm(t.replace(Pu," "))}function B_(t){return hm(t.replace(Pu," "))}function m_(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=g_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=B_(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 w_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Gu(t)}=${Vu(e)}`).join("&"):`${Gu(t)}=${Vu(A)}`:Gu(t)}function C_(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>w_(A,t[A])).filter(Boolean).join("&")}const y_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,E_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Q_=/^([/\\]\s*){2,}[^/\\]/;function pm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?y_.test(t):E_.test(t)||(A.acceptRelative?Q_.test(t):!1)}const F_=/\/$|\/\?|\/#/;function Wu(t="",A){return A?F_.test(t):t.endsWith("/")}function U_(t="",A){if(!A)return(Wu(t)?t.slice(0,-1):t)||"/";if(!Wu(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.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function b_(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(Wu(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 v_(t,A){if(S_(A)||pm(t))return t;const e=U_(A);return t.startsWith(e)?t:x_(e,t)}function I_(t,A){const e=gm(t),n={...m_(e.search),...A};return e.search=C_(n),O_(e)}function S_(t){return!t||t==="/"}function T_(t){return t&&t!=="/"}const __=/^\.?\//;function x_(t,...A){let e=t||"";for(const n of A.filter(r=>T_(r)))if(e){const r=n.replace(__,"");e=b_(e)+r}else e=n;return e}function gm(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,h,g=""]=e;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!pm(t,{acceptRelative:!0}))return A?gm(A+t):Bm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=Bm(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}}function Bm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function O_(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.protocol+"//":"")+r+i+A+e+n}class L_ extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function H_(t){var c,u,f,h,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)||((h=t.options)==null?void 0:h.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 L_(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const M_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function mm(t="GET"){return M_.has(t.toUpperCase())}function N_(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 D_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),k_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function R_(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return k_.test(A)?"json":D_.has(A)||A.startsWith("text/")?"text":"blob"}function K_(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 P_=new Set([408,409,425,429,500,502,503,504]),V_=new Set([101,204,205,304]);function wm(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=mm(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):P_.has(h))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1,timeout:a.options.timeout})}}const u=H_(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var g;const f={request:c,options:K_(u,t.defaults,e),response:void 0,error:void 0};if(f.options.method=(g=f.options.method)==null?void 0:g.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=v_(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=I_(f.request,{...f.options.params,...f.options.query}))),f.options.body&&mm(f.options.method)&&(N_(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"))),!f.options.signal&&f.options.timeout){const m=new n;setTimeout(()=>m.abort(),f.options.timeout),f.options.signal=m.signal}try{f.response=await A(f.request,f.options)}catch(m){return f.error=m,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}if(f.response.body&&!V_.has(f.response.status)&&f.options.method!=="HEAD"){const m=(f.options.parseResponse?"json":f.options.responseType)||R_(f.response.headers.get("content-type")||"");switch(m){case"json":{const w=await f.response.text(),U=f.options.parseResponse||o_;f.response._data=U(w);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[m]()}}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={})=>wm({...t,defaults:{...t.defaults,...a}}),s}const $u=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")}(),G_=$u.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),W_=$u.Headers,$_=$u.AbortController,J_=wm({fetch:G_,Headers:W_,AbortController:$_}),X_={class:"file-upload"},Y_=["src"],z_=["onClick"],q_=["for"],Z_=p.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),j_={key:0,class:"file-upload__loading-spinner"},Ax=[p.createElementVNode("span",{class:"spinner-border",role:"status"},[p.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function ex(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const tx=p.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([]),i=p.ref([]),s=p.ref(!1),a=p.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);p.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:e.toDataUrl?await ex(h):await u(h),type:h.type})))},{deep:!0}),p.watch(()=>i.value,async f=>{const h=e.multiple?f:f[0];n("update:modelValue",h),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 h=new FormData;h.append("file",f),s.value=!0;const m=await(e.customFetch||J_)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:h}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,h)=>{const g=p.resolveComponent("svg-icon"),m=p.resolveComponent("input-file");return p.openBlock(),p.createElementBlock("div",X_,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,(w,U)=>(p.openBlock(),p.createElementBlock("div",{key:w.src,class:"file-upload__thumbnail"},[p.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,Y_),p.createElementVNode("button",{onClick:p.withModifiers(b=>c(U),["prevent"]),class:"btn btn--close"},[p.createVNode(g,{symbol:"x"})],8,z_)]))),128)),p.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),p.createElementVNode("label",{for:t.id,class:"file-upload__label"},[p.renderSlot(f.$slots,"button",{},()=>[Z_]),p.createVNode(p.Transition,{name:"fade"},{default:p.withCtx(()=>[s.value?(p.openBlock(),p.createElementBlock("span",j_,Ax)):p.createCommentVNode("",!0)]),_:1})],8,q_)])}}}),OG="",nx={class:"upload-group"},rx=["innerHTML"],ix={class:"row"},sx={class:"img-container"},ox=["src"],ax=["onClick"],lx={class:"col-auto mb-4"},cx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Cm=p.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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=p.ref([...e.modelValue]);function i(s){r.value.splice(s,1),n("update:modelValue",r.value)}return p.watch(r.value,(s,a)=>{n("update:modelValue",s)}),(s,a)=>{const c=p.resolveComponent("svg-icon"),u=p.resolveComponent("file-upload");return p.openBlock(),p.createElementBlock("div",nx,[p.createElementVNode("label",{innerHTML:t.label},null,8,rx),p.createElementVNode("div",ix,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.value,(f,h)=>(p.openBlock(),p.createElementBlock("div",{key:f,class:"col-auto mb-4"},[p.createElementVNode("div",sx,[p.createElementVNode("img",{src:`${f}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,ox),p.createElementVNode("button",{onClick:p.withModifiers(g=>i(h),["prevent"]),class:"btn btn--close"},[p.createVNode(c,{symbol:"x"})],8,ax)])]))),128)),p.createElementVNode("div",lx,[p.createVNode(u,{src:r.value[r.value.length],"onUpdate:src":a[0]||(a[0]=f=>r.value[r.value.length]=f),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:p.withCtx(()=>[p.createElementVNode("span",cx,[p.createVNode(c,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])])])])}}}),LG="",ux={class:"upload-group"},fx=["innerHTML"],dx=p.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},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=p.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)=>(p.openBlock(),p.createElementBlock("div",ux,[p.createElementVNode("label",{innerHTML:t.label},null,8,fx),p.createVNode(Cm,{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"])]))}}),HG="",hx={class:"carousel d-flex"},px={class:"carousel__track d-flex justify-center align-items-center"},gx=["onClick"],ym=p.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=p.ref();function r(){n.value.scrollTo({top:0,left:0,behavior:"smooth"})}function i(){n.value.scrollTo({top:0,left:n.value.clientWidth,behavior:"smooth"})}function s(a){e("update:modelValue",a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",hx,[t.navigation?(p.openBlock(),p.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(r,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-left"})])):p.createCommentVNode("",!0),p.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[p.createElementVNode("div",px,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.items,(f,h)=>p.renderSlot(a.$slots,"carousel-item",{key:f.src,item:f,index:h},()=>[p.createElementVNode("div",{class:p.normalizeClass(["carousel__item",h===t.modelValue?"selected":""]),onClick:g=>s(h)},p.toDisplayString(f),11,gx)])),128))])],512),t.navigation?(p.openBlock(),p.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(i,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-right"})])):p.createCommentVNode("",!0)])}}}),MG="",Bx={class:"media-thumbnails"},mx=["onClick"],wx={class:"img-container ratio ratio-1x1"},Cx=["src"],yx=p.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=p.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Bx,[p.createVNode(ym,{items:t.assets},{"carousel-item":p.withCtx(a=>[p.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[p.createElementVNode("div",wx,[p.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:p.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,Cx)])],8,mx)]),_:1},8,["items"])]))}}),NG="",Ex={class:"progress-steps"},Qx={class:"progress-steps__list"},Fx={class:"progress-step"},Ux=["checked","id","value","disabled","read-only","required","onChange"],bx=["for"],vx=["innerHTML"],Ix=["for"],Sx=["innerHTML"],Tx=p.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)=>(p.openBlock(),p.createElementBlock("div",Ex,[p.createElementVNode("ul",Qx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.steps,(a,c)=>(p.openBlock(),p.createElementBlock("li",{key:c,class:p.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[p.renderSlot(i.$slots,"step",{},()=>[p.createElementVNode("div",Fx,[p.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,Ux),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"button",{step:a},()=>[p.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,vx)])],8,bx),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"label",{step:a},()=>[p.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,Sx)])],8,Ix)])])],2))),128))])]))}}),DG="";/*!
|
|
159
|
+
}`;var FA=Jy(function(){return VA(F,aA+"return "+$).apply(e,S)});if(FA.source=$,$d(FA))throw FA;return FA}function B2(o){return JA(o).toLowerCase()}function m2(o){return JA(o).toUpperCase()}function w2(o,l,d){if(o=JA(o),o&&(d||l===e))return t0(o);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=fn(l),F=n0(B,C),S=r0(B,C)+1;return Kr(B,F,S).join("")}function C2(o,l,d){if(o=JA(o),o&&(d||l===e))return o.slice(0,s0(o)+1);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=r0(B,fn(l))+1;return Kr(B,0,C).join("")}function y2(o,l,d){if(o=JA(o),o&&(d||l===e))return o.replace($f,"");if(!o||!(l=Ht(l)))return o;var B=fn(o),C=n0(B,fn(l));return Kr(B,C).join("")}function E2(o,l){var d=oA,B=UA;if(ue(l)){var C="separator"in l?l.separator:C;d="length"in l?yA(l.length):d,B="omission"in l?Ht(l.omission):B}o=JA(o);var F=o.length;if(ls(o)){var S=fn(o);F=S.length}if(d>=F)return o;var _=d-cs(B);if(_<1)return B;var L=S?Kr(S,0,_).join(""):o.slice(0,_);if(C===e)return L+B;if(S&&(_+=L.length-_),Jd(C)){if(o.slice(_).search(C)){var G,W=L;for(C.global||(C=ld(C.source,JA(FC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var $=G.index;L=L.slice(0,$===e?_:$)}}else if(o.indexOf(Ht(C),_)!=_){var z=L.lastIndexOf(C);z>-1&&(L=L.slice(0,z))}return L+B}function Q2(o){return o=JA(o),o&&Jn.test(o)?o.replace($n,Zk):o}var F2=Bs(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),zd=X0("toUpperCase");function $y(o,l,d){return o=JA(o),l=d?e:l,l===e?Jk(o)?eR(o):Dk(o):o.match(l)||[]}var Jy=vA(function(o,l){try{return Ot(o,e,l)}catch(d){return $d(d)?d:new mA(d)}}),U2=Zn(function(o,l){return zt(l,function(d){d=On(d),zn(o,d,Gd(o[d],o))}),o});function b2(o){var l=o==null?0:o.length,d=dA();return o=l?le(o,function(B){if(typeof B[1]!="function")throw new qt(s);return[d(B[0]),B[1]]}):[],vA(function(B){for(var C=-1;++C<l;){var F=o[C];if(Ot(F[0],this,B))return Ot(F[1],this,B)}})}function v2(o){return ZR(jt(o,h))}function qd(o){return function(){return o}}function I2(o,l){return o==null||o!==o?l:o}var S2=z0(),T2=z0(!0);function Ft(o){return o}function Zd(o){return b0(typeof o=="function"?o:jt(o,h))}function _2(o){return I0(jt(o,h))}function x2(o,l){return S0(o,jt(l,h))}var O2=vA(function(o,l){return function(d){return Io(d,o,l)}}),L2=vA(function(o,l){return function(d){return Io(o,d,l)}});function jd(o,l,d){var B=Oe(l),C=Kl(l,B);d==null&&!(ue(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=Kl(l,Oe(l)));var F=!(ue(d)&&"chain"in d)||!!d.chain,S=Ar(o);return zt(C,function(_){var L=l[_];o[_]=L,S&&(o.prototype[_]=function(){var G=this.__chain__;if(F||G){var W=o(this.__wrapped__),$=W.__actions__=yt(this.__actions__);return $.push({func:L,args:arguments,thisArg:o}),W.__chain__=G,W}return L.apply(o,Hr([this.value()],arguments))})}),o}function H2(){return Ve._===this&&(Ve._=oR),this}function Ah(){}function M2(o){return o=yA(o),vA(function(l){return T0(l,o)})}var N2=_d(le),D2=_d(qC),k2=_d(td);function Xy(o){return Dd(o)?nd(On(o)):p4(o)}function R2(o){return function(l){return o==null?e:mi(o,l)}}var K2=Z0(),P2=Z0(!0);function eh(){return[]}function th(){return!1}function V2(){return{}}function G2(){return""}function W2(){return!0}function $2(o,l){if(o=yA(o),o<1||o>sA)return[];var d=DA,B=At(o,DA);l=dA(l),o-=DA;for(var C=sd(B,l);++d<o;)l(d);return C}function J2(o){return wA(o)?le(o,On):Mt(o)?[o]:yt(hy(JA(o)))}function X2(o){var l=++iR;return JA(o)+l}var Y2=Jl(function(o,l){return o+l},0),z2=xd("ceil"),q2=Jl(function(o,l){return o/l},1),Z2=xd("floor");function j2(o){return o&&o.length?Rl(o,Ft,Bd):e}function AG(o,l){return o&&o.length?Rl(o,dA(l,2),Bd):e}function eG(o){return A0(o,Ft)}function tG(o,l){return A0(o,dA(l,2))}function nG(o){return o&&o.length?Rl(o,Ft,yd):e}function rG(o,l){return o&&o.length?Rl(o,dA(l,2),yd):e}var iG=Jl(function(o,l){return o*l},1),sG=xd("round"),oG=Jl(function(o,l){return o-l},0);function aG(o){return o&&o.length?id(o,Ft):0}function lG(o,l){return o&&o.length?id(o,dA(l,2)):0}return y.after=_P,y.ary=Uy,y.assign=mV,y.assignIn=ky,y.assignInWith=sc,y.assignWith=wV,y.at=CV,y.before=by,y.bind=Gd,y.bindAll=U2,y.bindKey=vy,y.castArray=VP,y.chain=Ey,y.chunk=Z4,y.compact=j4,y.concat=AK,y.cond=b2,y.conforms=v2,y.constant=qd,y.countBy=aP,y.create=yV,y.curry=Iy,y.curryRight=Sy,y.debounce=Ty,y.defaults=EV,y.defaultsDeep=QV,y.defer=xP,y.delay=OP,y.difference=eK,y.differenceBy=tK,y.differenceWith=nK,y.drop=rK,y.dropRight=iK,y.dropRightWhile=sK,y.dropWhile=oK,y.fill=aK,y.filter=cP,y.flatMap=dP,y.flatMapDeep=hP,y.flatMapDepth=pP,y.flatten=my,y.flattenDeep=lK,y.flattenDepth=cK,y.flip=LP,y.flow=S2,y.flowRight=T2,y.fromPairs=uK,y.functions=TV,y.functionsIn=_V,y.groupBy=gP,y.initial=dK,y.intersection=hK,y.intersectionBy=pK,y.intersectionWith=gK,y.invert=OV,y.invertBy=LV,y.invokeMap=mP,y.iteratee=Zd,y.keyBy=wP,y.keys=Oe,y.keysIn=Qt,y.map=Ac,y.mapKeys=MV,y.mapValues=NV,y.matches=_2,y.matchesProperty=x2,y.memoize=tc,y.merge=DV,y.mergeWith=Ry,y.method=O2,y.methodOf=L2,y.mixin=jd,y.negate=nc,y.nthArg=M2,y.omit=kV,y.omitBy=RV,y.once=HP,y.orderBy=CP,y.over=N2,y.overArgs=MP,y.overEvery=D2,y.overSome=k2,y.partial=Wd,y.partialRight=_y,y.partition=yP,y.pick=KV,y.pickBy=Ky,y.property=Xy,y.propertyOf=R2,y.pull=CK,y.pullAll=Cy,y.pullAllBy=yK,y.pullAllWith=EK,y.pullAt=QK,y.range=K2,y.rangeRight=P2,y.rearg=NP,y.reject=FP,y.remove=FK,y.rest=DP,y.reverse=Pd,y.sampleSize=bP,y.set=VV,y.setWith=GV,y.shuffle=vP,y.slice=UK,y.sortBy=TP,y.sortedUniq=xK,y.sortedUniqBy=OK,y.split=d2,y.spread=kP,y.tail=LK,y.take=HK,y.takeRight=MK,y.takeRightWhile=NK,y.takeWhile=DK,y.tap=jK,y.throttle=RP,y.thru=jl,y.toArray=My,y.toPairs=Py,y.toPairsIn=Vy,y.toPath=J2,y.toPlainObject=Dy,y.transform=WV,y.unary=KP,y.union=kK,y.unionBy=RK,y.unionWith=KK,y.uniq=PK,y.uniqBy=VK,y.uniqWith=GK,y.unset=$V,y.unzip=Vd,y.unzipWith=yy,y.update=JV,y.updateWith=XV,y.values=Cs,y.valuesIn=YV,y.without=WK,y.words=$y,y.wrap=PP,y.xor=$K,y.xorBy=JK,y.xorWith=XK,y.zip=YK,y.zipObject=zK,y.zipObjectDeep=qK,y.zipWith=ZK,y.entries=Py,y.entriesIn=Vy,y.extend=ky,y.extendWith=sc,jd(y,y),y.add=Y2,y.attempt=Jy,y.camelCase=jV,y.capitalize=Gy,y.ceil=z2,y.clamp=zV,y.clone=GP,y.cloneDeep=$P,y.cloneDeepWith=JP,y.cloneWith=WP,y.conformsTo=XP,y.deburr=Wy,y.defaultTo=I2,y.divide=q2,y.endsWith=A2,y.eq=hn,y.escape=e2,y.escapeRegExp=t2,y.every=lP,y.find=uP,y.findIndex=gy,y.findKey=FV,y.findLast=fP,y.findLastIndex=By,y.findLastKey=UV,y.floor=Z2,y.forEach=Qy,y.forEachRight=Fy,y.forIn=bV,y.forInRight=vV,y.forOwn=IV,y.forOwnRight=SV,y.get=Xd,y.gt=YP,y.gte=zP,y.has=xV,y.hasIn=Yd,y.head=wy,y.identity=Ft,y.includes=BP,y.indexOf=fK,y.inRange=qV,y.invoke=HV,y.isArguments=yi,y.isArray=wA,y.isArrayBuffer=qP,y.isArrayLike=Et,y.isArrayLikeObject=Be,y.isBoolean=ZP,y.isBuffer=Pr,y.isDate=jP,y.isElement=AV,y.isEmpty=eV,y.isEqual=tV,y.isEqualWith=nV,y.isError=$d,y.isFinite=rV,y.isFunction=Ar,y.isInteger=xy,y.isLength=rc,y.isMap=Oy,y.isMatch=iV,y.isMatchWith=sV,y.isNaN=oV,y.isNative=aV,y.isNil=cV,y.isNull=lV,y.isNumber=Ly,y.isObject=ue,y.isObjectLike=he,y.isPlainObject=Lo,y.isRegExp=Jd,y.isSafeInteger=uV,y.isSet=Hy,y.isString=ic,y.isSymbol=Mt,y.isTypedArray=ws,y.isUndefined=fV,y.isWeakMap=dV,y.isWeakSet=hV,y.join=BK,y.kebabCase=n2,y.last=en,y.lastIndexOf=mK,y.lowerCase=r2,y.lowerFirst=i2,y.lt=pV,y.lte=gV,y.max=j2,y.maxBy=AG,y.mean=eG,y.meanBy=tG,y.min=nG,y.minBy=rG,y.stubArray=eh,y.stubFalse=th,y.stubObject=V2,y.stubString=G2,y.stubTrue=W2,y.multiply=iG,y.nth=wK,y.noConflict=H2,y.noop=Ah,y.now=ec,y.pad=s2,y.padEnd=o2,y.padStart=a2,y.parseInt=l2,y.random=ZV,y.reduce=EP,y.reduceRight=QP,y.repeat=c2,y.replace=u2,y.result=PV,y.round=sG,y.runInContext=O,y.sample=UP,y.size=IP,y.snakeCase=f2,y.some=SP,y.sortedIndex=bK,y.sortedIndexBy=vK,y.sortedIndexOf=IK,y.sortedLastIndex=SK,y.sortedLastIndexBy=TK,y.sortedLastIndexOf=_K,y.startCase=h2,y.startsWith=p2,y.subtract=oG,y.sum=aG,y.sumBy=lG,y.template=g2,y.times=$2,y.toFinite=er,y.toInteger=yA,y.toLength=Ny,y.toLower=B2,y.toNumber=tn,y.toSafeInteger=BV,y.toString=JA,y.toUpper=m2,y.trim=w2,y.trimEnd=C2,y.trimStart=y2,y.truncate=E2,y.unescape=Q2,y.uniqueId=X2,y.upperCase=F2,y.upperFirst=zd,y.each=Qy,y.eachRight=Fy,y.first=wy,jd(y,function(){var o={};return _n(y,function(l,d){XA.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),zt(["drop","take"],function(o,l){OA.prototype[o]=function(d){d=d===e?1:ve(yA(d),0);var B=this.__filtered__&&!l?new OA(this):this.clone();return B.__filtered__?B.__takeCount__=At(d,B.__takeCount__):B.__views__.push({size:At(d,DA),type:o+(B.__dir__<0?"Right":"")}),B},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),zt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==IA||d==KA;OA.prototype[o]=function(C){var F=this.clone();return F.__iteratees__.push({iteratee:dA(C,3),type:d}),F.__filtered__=F.__filtered__||B,F}}),zt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),zt(["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(Ft)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=vA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return Io(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(nc(dA(o)))},OA.prototype.slice=function(o,l){o=yA(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=yA(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(DA)},_n(OA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],F=B||/^find/.test(l);C&&(y.prototype[l]=function(){var S=this.__wrapped__,_=B?[1]:arguments,L=S instanceof OA,G=_[0],W=L||wA(S),$=function(TA){var MA=C.apply(y,Hr([TA],_));return B&&z?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(L=W=!1);var z=this.__chain__,aA=!!this.__actions__.length,pA=F&&!z,FA=L&&!aA;if(!F&&W){S=FA?S:new OA(this);var gA=o.apply(S,_);return gA.__actions__.push({func:jl,args:[$],thisArg:e}),new Zt(gA,z)}return pA&&FA?o.apply(this,_):(gA=this.thru($),pA?B?gA.value()[0]:gA.value():gA)})}),zt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ul[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var F=this.value();return l.apply(wA(F)?F:[],C)}return this[d](function(S){return l.apply(wA(S)?S:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";XA.call(hs,B)||(hs[B]=[]),hs[B].push({name:l,func:d})}}),hs[$l(e,Q).name]=[{name:"wrapper",func:e}],OA.prototype.clone=QR,OA.prototype.reverse=FR,OA.prototype.value=UR,y.prototype.at=AP,y.prototype.chain=eP,y.prototype.commit=tP,y.prototype.next=nP,y.prototype.plant=iP,y.prototype.reverse=sP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=oP,y.prototype.first=y.prototype.head,yo&&(y.prototype[yo]=rP),y},us=tR();di?((di.exports=us)._=us,Zf._=us):Ve._=us}).call(Xs)}(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8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",NT={class:"camera__preview"},DT={class:"camera__bg-notification"},kT={class:p.normalizeClass("d-block light--text")},RT=["width","height"],KT=["width","height"],PT={key:0,class:"camera__countdown-overlay"},VT=["innerHTML","data-countdown"],GT=["src"],WT={class:"camera__controls"},$T={class:"container"},JT={class:"row"},XT={class:"col"},YT={class:"btn-group"},zT={key:0},qT={key:1},ZT={key:0,class:"camera__switch-cam"},jT={key:1,class:"base-camera__devices"},A_={name:"BaseCamera",inheritAttrs:!1};function e_(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 t_=p.defineComponent({...A_,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:()=>MT},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n={"1-1":{width:720,height:720},"4-3":{width:640,height:480},"3-4":{width:480,height:640},"16-9":{width:1280,height:720},"9-16":{width:720,height:1280}},r=t,i=e,s=p.ref(),a=p.ref(),c=p.ref([]),u=p.ref(),f=p.ref(),h=p.ref(!1),g=p.ref(!1),m=p.ref(0),w=p.ref(0),U=p.ref(),b=p.computed(()=>c.value.filter(nA=>nA.kind==="videoinput")),Q=p.computed(()=>c.value.filter(nA=>nA.kind==="audioinput")),I=p.computed({get(){return u.value&&u.value.deviceId},set(nA){u.value=b.value.find(sA=>sA.deviceId===nA)}}),M=p.computed({get(){return f.value&&f.value.deviceId},set(nA){f.value=Q.value.find(sA=>sA.deviceId===nA)}}),E=p.computed(()=>{const nA=u.value&&b.value.findIndex(sA=>sA.deviceId===u.value.deviceId);return r.enableMirrorCamera&&nA===0?"mirror-cam":""}),N=p.computed(()=>{const nA=u.value&&c.value.findIndex(sA=>sA.deviceId===u.value.deviceId);return E.value?`${E.value} mirror-device-${nA}`:""});function T(){m.value=s.value&&s.value.clientWidth,w.value=s.value&&s.value.clientHeight}const H=dm.debounce(()=>{T()},300,{trailing:!0,leading:!1});async function Y(){const nA={audio:r.enableAudio&&{...f.value?{deviceId:f.value.deviceId}:{}},video:{...u.value?{deviceId:u.value.deviceId}:{},width:{ideal:n[r.ratio]?n[r.ratio].width:s.value.clientWidth},height:{ideal:n[r.ratio]?n[r.ratio].height:s.value.clientHeight}}};return navigator.mediaDevices.getUserMedia(nA).catch(sA=>{console.error(sA,"navigator.mediaDevices.getUserMedia: failed")})}function P(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(sA=>{sA.stop()})}async function oA(){return s.value.srcObject=await Y(),c.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:c.value}}function UA(){h.value?(h.value=!1,g.value=!1,P()):(h.value=!0,oA())}function hA(){c.value.length>1&&(P(),u.value=u.value&&u.value.deviceId===b.value[0].deviceId?b.value[b.value.length-1]:b.value[0],oA())}async function cA(nA,sA){P(),nA&&(!sA||nA.deviceId!==sA.deviceId)&&await oA()}p.watch(()=>u.value,cA),p.watch(()=>f.value,cA);function IA(){r.countdown?(U.value=U.value?U.value-1:r.countdown,U.value?setTimeout(IA,1e3):ie()):ie()}A({onCapture:IA});function ie(){g.value=!0;const nA=a.value.getContext("2d"),sA=s.value,jA=sA&&sA.srcObject&&sA.srcObject.getTracks(),{width:LA,height:DA}=jA.length&&jA[0].getSettings(),kA=LA/DA;let WA=a.value.width,te=WA/kA;te<a.value.height&&(te=a.value.height,WA=te*kA);const qA=E.value?-1:1;nA.save(),nA.scale(qA,1),nA.drawImage(sA,WA>a.value.width?(a.value.width-WA)/2:0,te>a.value.height?(a.value.height-te)/2:0,WA*qA,te),nA.restore();const de=a.value.toDataURL("image/png");KA(de)}function KA(nA){const sA=e_(nA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:sA,size:sA.size})}return p.onMounted(async()=>{P(),await oA(),u.value=b.value[0],r.enableAudio&&(f.value=Q.value[0]),navigator.mediaDevices.addEventListener("devicechange",async nA=>{await oA()}),r.defaultRearCamera&&hA(),window.addEventListener("resize",H),T(),UA()}),p.onBeforeUnmount(()=>{h.value=!1,g.value=!1,P(),window.removeEventListener("resize",H)}),(nA,sA)=>{const jA=p.resolveComponent("loading-spinner"),LA=p.resolveComponent("svg-icon"),DA=p.resolveComponent("input-dropdown");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["camera",N.value])},[p.createElementVNode("div",NT,[p.createElementVNode("div",DT,[p.createVNode(jA,{color:"#000"},{default:p.withCtx(()=>[p.createElementVNode("span",kT,p.toDisplayString(nA.$t("camera.waitForCameraNotification")),1)]),_:1})]),p.createElementVNode("video",{ref_key:"camera",ref:s,class:"camera__video",width:m.value,height:w.value,autoplay:"",playsinline:""},null,8,RT),p.withDirectives(p.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:m.value,height:w.value},null,8,KT),[[p.vShow,g.value]]),U.value?(p.openBlock(),p.createElementBlock("div",PT,[(p.openBlock(),p.createElementBlock("p",{class:"countdown",key:U.value,innerHTML:U.value,"data-countdown":U.value},null,8,VT))])):p.createCommentVNode("",!0),t.enableGuide&&h.value?(p.openBlock(),p.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,GT)):p.createCommentVNode("",!0)]),p.createElementVNode("div",WT,[p.createElementVNode("div",$T,[p.createElementVNode("div",JT,[p.createElementVNode("div",XT,[p.createElementVNode("div",YT,[p.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:UA},[h.value?(p.openBlock(),p.createElementBlock("span",qT,p.toDisplayString(nA.$t("common.pause")),1)):(p.openBlock(),p.createElementBlock("span",zT,p.toDisplayString(nA.$t("common.play")),1))]),p.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:IA},p.toDisplayString(nA.$t("camera.capture")),1)])])])])]),b.value&&b.value.length>1?(p.openBlock(),p.createElementBlock("div",ZT,[p.createElementVNode("button",{class:"btn",onClick:p.withModifiers(hA,["prevent"])},[p.createVNode(LA,{symbol:"switch-camera"})])])):p.createCommentVNode("",!0),t.enableSelectDevice?(p.openBlock(),p.createElementBlock("div",jT,[Q.value.length&&f.value?(p.openBlock(),p.createBlock(DA,{key:0,modelValue:M.value,"onUpdate:modelValue":sA[0]||(sA[0]=kA=>M.value=kA),options:Q.value.map((kA,WA)=>({text:kA.label||`Microphone ${WA+1}`,value:kA.deviceId}))},null,8,["modelValue","options"])):p.createCommentVNode("",!0),b.value.length?(p.openBlock(),p.createBlock(DA,{key:1,modelValue:I.value,"onUpdate:modelValue":sA[1]||(sA[1]=kA=>I.value=kA),options:b.value.map((kA,WA)=>({text:kA.label||`Camera ${WA+1}`,value:kA.deviceId}))},null,8,["modelValue","options"])):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)],2)}}}),xG="",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*:/,r_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){o_(t);return}return A}function o_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function a_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.at(-1)==='"'&&!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(!i_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(n_.test(t)||r_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,s_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const l_=/#/g,c_=/&/g,u_=/=/g,Pu=/\+/g,f_=/%5e/gi,d_=/%60/gi,h_=/%7c/gi,p_=/%20/gi;function g_(t){return encodeURI(""+t).replace(h_,"|")}function Vu(t){return g_(typeof t=="string"?t:JSON.stringify(t)).replace(Pu,"%2B").replace(p_,"+").replace(l_,"%23").replace(c_,"%26").replace(d_,"`").replace(f_,"^")}function Gu(t){return Vu(t).replace(u_,"%3D")}function hm(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function B_(t){return hm(t.replace(Pu," "))}function m_(t){return hm(t.replace(Pu," "))}function w_(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=B_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=m_(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 C_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Gu(t)}=${Vu(e)}`).join("&"):`${Gu(t)}=${Vu(A)}`:Gu(t)}function y_(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>C_(A,t[A])).filter(Boolean).join("&")}const E_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Q_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,F_=/^([/\\]\s*){2,}[^/\\]/;function pm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?E_.test(t):Q_.test(t)||(A.acceptRelative?F_.test(t):!1)}const U_=/\/$|\/\?|\/#/;function Wu(t="",A){return A?U_.test(t):t.endsWith("/")}function b_(t="",A){if(!A)return(Wu(t)?t.slice(0,-1):t)||"/";if(!Wu(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.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function v_(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(Wu(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 I_(t,A){if(T_(A)||pm(t))return t;const e=b_(A);return t.startsWith(e)?t:O_(e,t)}function S_(t,A){const e=gm(t),n={...w_(e.search),...A};return e.search=y_(n),L_(e)}function T_(t){return!t||t==="/"}function __(t){return t&&t!=="/"}const x_=/^\.?\//;function O_(t,...A){let e=t||"";for(const n of A.filter(r=>__(r)))if(e){const r=n.replace(x_,"");e=v_(e)+r}else e=n;return e}function gm(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,h,g=""]=e;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!pm(t,{acceptRelative:!0}))return A?gm(A+t):Bm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=Bm(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}}function Bm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function L_(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.protocol+"//":"")+r+i+A+e+n}class H_ extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function M_(t){var c,u,f,h,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)||((h=t.options)==null?void 0:h.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 H_(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const N_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function mm(t="GET"){return N_.has(t.toUpperCase())}function D_(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 k_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),R_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function K_(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return R_.test(A)?"json":k_.has(A)||A.startsWith("text/")?"text":"blob"}function P_(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 V_=new Set([408,409,425,429,500,502,503,504]),G_=new Set([101,204,205,304]);function wm(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=mm(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):V_.has(h))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1,timeout:a.options.timeout})}}const u=M_(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var g;const f={request:c,options:P_(u,t.defaults,e),response:void 0,error:void 0};if(f.options.method=(g=f.options.method)==null?void 0:g.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=I_(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=S_(f.request,{...f.options.params,...f.options.query}))),f.options.body&&mm(f.options.method)&&(D_(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"))),!f.options.signal&&f.options.timeout){const m=new n;setTimeout(()=>m.abort(),f.options.timeout),f.options.signal=m.signal}try{f.response=await A(f.request,f.options)}catch(m){return f.error=m,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}if(f.response.body&&!G_.has(f.response.status)&&f.options.method!=="HEAD"){const m=(f.options.parseResponse?"json":f.options.responseType)||K_(f.response.headers.get("content-type")||"");switch(m){case"json":{const w=await f.response.text(),U=f.options.parseResponse||a_;f.response._data=U(w);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[m]()}}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={})=>wm({...t,defaults:{...t.defaults,...a}}),s}const $u=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")}(),W_=$u.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),$_=$u.Headers,J_=$u.AbortController,X_=wm({fetch:W_,Headers:$_,AbortController:J_}),Y_={class:"file-upload"},z_=["src"],q_=["onClick"],Z_=["for"],j_=p.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),Ax={key:0,class:"file-upload__loading-spinner"},ex=[p.createElementVNode("span",{class:"spinner-border",role:"status"},[p.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function tx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const nx=p.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([]),i=p.ref([]),s=p.ref(!1),a=p.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);p.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:e.toDataUrl?await tx(h):await u(h),type:h.type})))},{deep:!0}),p.watch(()=>i.value,async f=>{const h=e.multiple?f:f[0];n("update:modelValue",h),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 h=new FormData;h.append("file",f),s.value=!0;const m=await(e.customFetch||X_)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:h}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,h)=>{const g=p.resolveComponent("svg-icon"),m=p.resolveComponent("input-file");return p.openBlock(),p.createElementBlock("div",Y_,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,(w,U)=>(p.openBlock(),p.createElementBlock("div",{key:w.src,class:"file-upload__thumbnail"},[p.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,z_),p.createElementVNode("button",{onClick:p.withModifiers(b=>c(U),["prevent"]),class:"btn btn--close"},[p.createVNode(g,{symbol:"x"})],8,q_)]))),128)),p.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),p.createElementVNode("label",{for:t.id,class:"file-upload__label"},[p.renderSlot(f.$slots,"button",{},()=>[j_]),p.createVNode(p.Transition,{name:"fade"},{default:p.withCtx(()=>[s.value?(p.openBlock(),p.createElementBlock("span",Ax,ex)):p.createCommentVNode("",!0)]),_:1})],8,Z_)])}}}),LG="",rx={class:"upload-group"},ix=["innerHTML"],sx={class:"row"},ox={class:"img-container"},ax=["src"],lx=["onClick"],cx={class:"col-auto mb-4"},ux={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Cm=p.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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=p.ref([...e.modelValue]);function i(s){r.value.splice(s,1),n("update:modelValue",r.value)}return p.watch(r.value,(s,a)=>{n("update:modelValue",s)}),(s,a)=>{const c=p.resolveComponent("svg-icon"),u=p.resolveComponent("file-upload");return p.openBlock(),p.createElementBlock("div",rx,[p.createElementVNode("label",{innerHTML:t.label},null,8,ix),p.createElementVNode("div",sx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.value,(f,h)=>(p.openBlock(),p.createElementBlock("div",{key:f,class:"col-auto mb-4"},[p.createElementVNode("div",ox,[p.createElementVNode("img",{src:`${f}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,ax),p.createElementVNode("button",{onClick:p.withModifiers(g=>i(h),["prevent"]),class:"btn btn--close"},[p.createVNode(c,{symbol:"x"})],8,lx)])]))),128)),p.createElementVNode("div",cx,[p.createVNode(u,{src:r.value[r.value.length],"onUpdate:src":a[0]||(a[0]=f=>r.value[r.value.length]=f),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:p.withCtx(()=>[p.createElementVNode("span",ux,[p.createVNode(c,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])])])])}}}),HG="",fx={class:"upload-group"},dx=["innerHTML"],hx=p.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Qe()},id:{type:String,default:()=>Qe()},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=p.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)=>(p.openBlock(),p.createElementBlock("div",fx,[p.createElementVNode("label",{innerHTML:t.label},null,8,dx),p.createVNode(Cm,{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"])]))}}),MG="",px={class:"carousel d-flex"},gx={class:"carousel__track d-flex justify-center align-items-center"},Bx=["onClick"],ym=p.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=p.ref();function r(){n.value.scrollTo({top:0,left:0,behavior:"smooth"})}function i(){n.value.scrollTo({top:0,left:n.value.clientWidth,behavior:"smooth"})}function s(a){e("update:modelValue",a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",px,[t.navigation?(p.openBlock(),p.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(r,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-left"})])):p.createCommentVNode("",!0),p.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[p.createElementVNode("div",gx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.items,(f,h)=>p.renderSlot(a.$slots,"carousel-item",{key:f.src,item:f,index:h},()=>[p.createElementVNode("div",{class:p.normalizeClass(["carousel__item",h===t.modelValue?"selected":""]),onClick:g=>s(h)},p.toDisplayString(f),11,Bx)])),128))])],512),t.navigation?(p.openBlock(),p.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(i,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-right"})])):p.createCommentVNode("",!0)])}}}),NG="",mx={class:"media-thumbnails"},wx=["onClick"],Cx={class:"img-container ratio ratio-1x1"},yx=["src"],Ex=p.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=p.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",mx,[p.createVNode(ym,{items:t.assets},{"carousel-item":p.withCtx(a=>[p.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[p.createElementVNode("div",Cx,[p.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:p.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,yx)])],8,wx)]),_:1},8,["items"])]))}}),DG="",Qx={class:"progress-steps"},Fx={class:"progress-steps__list"},Ux={class:"progress-step"},bx=["checked","id","value","disabled","read-only","required","onChange"],vx=["for"],Ix=["innerHTML"],Sx=["for"],Tx=["innerHTML"],_x=p.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)=>(p.openBlock(),p.createElementBlock("div",Qx,[p.createElementVNode("ul",Fx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.steps,(a,c)=>(p.openBlock(),p.createElementBlock("li",{key:c,class:p.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[p.renderSlot(i.$slots,"step",{},()=>[p.createElementVNode("div",Ux,[p.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,bx),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"button",{step:a},()=>[p.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,Ix)])],8,vx),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"label",{step:a},()=>[p.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,Tx)])],8,Sx)])])],2))),128))])]))}}),kG="";/*!
|
|
160
160
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
161
161
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
162
162
|
* Released under MIT License
|
|
@@ -173,8 +173,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
173
173
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
174
174
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
175
175
|
PERFORMANCE OF THIS SOFTWARE.
|
|
176
|
-
***************************************************************************** */var Ju=function(t,A){return Ju=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])},Ju(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");Ju(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var Xu=function(){return Xu=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},Xu.apply(this,arguments)};function at(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(h){s(h)}}function c(f){try{u(n.throw(f))}catch(h){s(h)}}function u(f){f.done?i(f.value):r(f.value).then(a,c)}u((n=n.apply(t,A||[])).next())})}function qe(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 Ua(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 Pn=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}(),ba=function(t,A){return Pn.fromClientRect(t,A.getBoundingClientRect())},_x=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 Pn(0,0,n,r)},va=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},ue=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},Em="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xx=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ia=0;Ia<Em.length;Ia++)xx[Em.charCodeAt(Ia)]=Ia;for(var Qm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ys=typeof Uint8Array>"u"?[]:new Uint8Array(256),Sa=0;Sa<Qm.length;Sa++)Ys[Qm.charCodeAt(Sa)]=Sa;for(var Ox=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=Ys[t.charCodeAt(n)],s=Ys[t.charCodeAt(n+1)],a=Ys[t.charCodeAt(n+2)],c=Ys[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},Lx=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},Hx=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},oi=5,Yu=6+5,zu=2,Mx=Yu-oi,Fm=65536>>oi,Nx=1<<oi,qu=Nx-1,Dx=1024>>oi,kx=Fm+Dx,Rx=kx,Kx=32,Px=Rx+Kx,Vx=65536>>Yu,Gx=1<<Mx,Wx=Gx-1,Um=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},$x=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Jx=function(t,A){var e=Ox(t),n=Array.isArray(e)?Hx(e):new Uint32Array(e),r=Array.isArray(e)?Lx(e):new Uint16Array(e),i=24,s=Um(r,i/2,n[4]/2),a=n[5]===2?Um(r,(i+n[4])/2):$x(n,Math.ceil((i+n[4])/4));return new Xx(n[0],n[1],n[2],n[3],s,a)},Xx=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>>oi],e=(e<<zu)+(A&qu),this.data[e];if(A<=65535)return e=this.index[Fm+(A-55296>>oi)],e=(e<<zu)+(A&qu),this.data[e];if(A<this.highStart)return e=Px-Vx+(A>>Yu),e=this.index[e],e+=A>>oi&Wx,e=this.index[e],e=(e<<zu)+(A&qu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),bm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yx=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ta=0;Ta<bm.length;Ta++)Yx[bm.charCodeAt(Ta)]=Ta;var zx="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAk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LAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLA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AwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58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A/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8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AB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AH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AeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcA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FcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4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AB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",vm=50,qx=1,Im=2,Sm=3,Zx=4,jx=5,Tm=7,_m=8,xm=9,Fr=10,Zu=11,Om=12,ju=13,AO=14,zs=15,Af=16,_a=17,qs=18,eO=19,Lm=20,ef=21,Zs=22,tf=23,$i=24,St=25,js=26,Ao=27,Ji=28,tO=29,ai=30,nO=31,xa=32,Oa=33,nf=34,rf=35,sf=36,eo=37,of=38,La=39,Ha=40,af=41,Hm=42,rO=43,iO=[9001,65288],Mm="!",_A="×",Ma="÷",lf=Jx(zx),Vn=[ai,sf],cf=[qx,Im,Sm,jx],Nm=[Fr,_m],Dm=[Ao,js],sO=cf.concat(Nm),km=[of,La,Ha,nf,rf],oO=[zs,ju],aO=function(t,A){A===void 0&&(A="strict");var e=[],n=[],r=[];return t.forEach(function(i,s){var a=lf.get(i);if(a>vm?(r.push(!0),a-=vm):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),e.push(Af);if(a===Zx||a===Zu){if(s===0)return n.push(s),e.push(ai);var c=e[s-1];return sO.indexOf(c)===-1?(n.push(n[s-1]),e.push(c)):(n.push(s),e.push(ai))}if(n.push(s),a===nO)return e.push(A==="strict"?ef:eo);if(a===Hm||a===tO)return e.push(ai);if(a===rO)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(eo):e.push(ai);e.push(a)}),[n,e,r]},uf=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!==Fr)break}if(r===Fr)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!==Fr)break}if(a!==Fr)break}return!1},Rm=function(t,A){for(var e=t;e>=0;){var n=A[e];if(n===Fr)e--;else return n}return 0},lO=function(t,A,e,n,r){if(e[n]===0)return _A;var i=n-1;if(Array.isArray(r)&&r[i]===!0)return _A;var s=i-1,a=i+1,c=A[i],u=s>=0?A[s]:0,f=A[a];if(c===Im&&f===Sm)return _A;if(cf.indexOf(c)!==-1)return Mm;if(cf.indexOf(f)!==-1||Nm.indexOf(f)!==-1)return _A;if(Rm(i,A)===_m)return Ma;if(lf.get(t[i])===Zu||(c===xa||c===Oa)&&lf.get(t[a])===Zu||c===Tm||f===Tm||c===xm||[Fr,ju,zs].indexOf(c)===-1&&f===xm||[_a,qs,eO,$i,Ji].indexOf(f)!==-1||Rm(i,A)===Zs||uf(tf,Zs,i,A)||uf([_a,qs],ef,i,A)||uf(Om,Om,i,A))return _A;if(c===Fr)return Ma;if(c===tf||f===tf)return _A;if(f===Af||c===Af)return Ma;if([ju,zs,ef].indexOf(f)!==-1||c===AO||u===sf&&oO.indexOf(c)!==-1||c===Ji&&f===sf||f===Lm||Vn.indexOf(f)!==-1&&c===St||Vn.indexOf(c)!==-1&&f===St||c===Ao&&[eo,xa,Oa].indexOf(f)!==-1||[eo,xa,Oa].indexOf(c)!==-1&&f===js||Vn.indexOf(c)!==-1&&Dm.indexOf(f)!==-1||Dm.indexOf(c)!==-1&&Vn.indexOf(f)!==-1||[Ao,js].indexOf(c)!==-1&&(f===St||[Zs,zs].indexOf(f)!==-1&&A[a+1]===St)||[Zs,zs].indexOf(c)!==-1&&f===St||c===St&&[St,Ji,$i].indexOf(f)!==-1)return _A;if([St,Ji,$i,_a,qs].indexOf(f)!==-1)for(var h=i;h>=0;){var g=A[h];if(g===St)return _A;if([Ji,$i].indexOf(g)!==-1)h--;else break}if([Ao,js].indexOf(f)!==-1)for(var h=[_a,qs].indexOf(c)!==-1?s:i;h>=0;){var g=A[h];if(g===St)return _A;if([Ji,$i].indexOf(g)!==-1)h--;else break}if(of===c&&[of,La,nf,rf].indexOf(f)!==-1||[La,nf].indexOf(c)!==-1&&[La,Ha].indexOf(f)!==-1||[Ha,rf].indexOf(c)!==-1&&f===Ha||km.indexOf(c)!==-1&&[Lm,js].indexOf(f)!==-1||km.indexOf(f)!==-1&&c===Ao||Vn.indexOf(c)!==-1&&Vn.indexOf(f)!==-1||c===$i&&Vn.indexOf(f)!==-1||Vn.concat(St).indexOf(c)!==-1&&f===Zs&&iO.indexOf(t[a])===-1||Vn.concat(St).indexOf(f)!==-1&&c===qs)return _A;if(c===af&&f===af){for(var m=e[i],w=1;m>0&&(m--,A[m]===af);)w++;if(w%2!==0)return _A}return c===xa&&f===Oa?_A:Ma},cO=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=aO(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[St,ai,Hm].indexOf(a)!==-1?eo: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]},uO=function(){function t(A,e,n,r){this.codePoints=A,this.required=e===Mm,this.start=n,this.end=r}return t.prototype.slice=function(){return ue.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),fO=function(t,A){var e=va(t),n=cO(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=_A;u<a&&(f=lO(e,i,r,++u,s))===_A;);if(f!==_A||u===a){var h=new uO(e,f,c,u);return c=u,{value:h,done:!1}}return{done:!0,value:null}}}},dO=1,hO=2,to=4,Km=8,Na=10,Pm=47,no=92,pO=9,gO=32,Da=34,ro=61,BO=35,mO=36,wO=37,ka=39,Ra=40,io=41,CO=95,wt=45,yO=33,EO=60,QO=62,FO=64,UO=91,bO=93,vO=61,IO=123,Ka=63,SO=125,Vm=124,TO=126,_O=128,Gm=65533,ff=42,li=43,xO=44,OO=58,LO=59,so=46,HO=0,MO=8,NO=11,DO=14,kO=31,RO=127,bn=-1,Wm=48,$m=97,Jm=101,KO=102,PO=117,VO=122,Xm=65,Ym=69,zm=70,GO=85,WO=90,Ze=function(t){return t>=Wm&&t<=57},$O=function(t){return t>=55296&&t<=57343},Xi=function(t){return Ze(t)||t>=Xm&&t<=zm||t>=$m&&t<=KO},JO=function(t){return t>=$m&&t<=VO},XO=function(t){return t>=Xm&&t<=WO},YO=function(t){return JO(t)||XO(t)},zO=function(t){return t>=_O},Pa=function(t){return t===Na||t===pO||t===gO},Va=function(t){return YO(t)||zO(t)||t===CO},qm=function(t){return Va(t)||Ze(t)||t===wt},qO=function(t){return t>=HO&&t<=MO||t===NO||t>=DO&&t<=kO||t===RO},Ur=function(t,A){return t!==no?!1:A!==Na},Ga=function(t,A,e){return t===wt?Va(A)||Ur(A,e):Va(t)?!0:!!(t===no&&Ur(t,A))},df=function(t,A,e){return t===li||t===wt?Ze(A)?!0:A===so&&Ze(e):Ze(t===so?A:t)},ZO=function(t){var A=0,e=1;(t[A]===li||t[A]===wt)&&(t[A]===wt&&(e=-1),A++);for(var n=[];Ze(t[A]);)n.push(t[A++]);var r=n.length?parseInt(ue.apply(void 0,n),10):0;t[A]===so&&A++;for(var i=[];Ze(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(ue.apply(void 0,i),10):0;(t[A]===Ym||t[A]===Jm)&&A++;var c=1;(t[A]===li||t[A]===wt)&&(t[A]===wt&&(c=-1),A++);for(var u=[];Ze(t[A]);)u.push(t[A++]);var f=u.length?parseInt(ue.apply(void 0,u),10):0;return e*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},jO={type:2},AL={type:3},eL={type:4},tL={type:13},nL={type:8},rL={type:21},iL={type:9},sL={type:10},oL={type:11},aL={type:12},lL={type:14},Wa={type:23},cL={type:1},uL={type:25},fL={type:24},dL={type:26},hL={type:27},pL={type:28},gL={type:29},BL={type:31},hf={type:32},Zm=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(va(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==hf;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Da:return this.consumeStringToken(Da);case BO:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(qm(e)||Ur(n,r)){var i=Ga(e,n,r)?hO:dO,s=this.consumeName();return{type:5,value:s,flags:i}}break;case mO:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),tL;break;case ka:return this.consumeStringToken(ka);case Ra:return jO;case io:return AL;case ff:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),lL;break;case li:if(df(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case xO:return eL;case wt:var a=A,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(df(a,c,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Ga(a,c,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===wt&&u===QO)return this.consumeCodePoint(),this.consumeCodePoint(),fL;break;case so:if(df(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Pm:if(this.peekCodePoint(0)===ff)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===ff&&(f=this.consumeCodePoint(),f===Pm))return this.consumeToken();if(f===bn)return this.consumeToken()}break;case OO:return dL;case LO:return hL;case EO:if(this.peekCodePoint(0)===yO&&this.peekCodePoint(1)===wt&&this.peekCodePoint(2)===wt)return this.consumeCodePoint(),this.consumeCodePoint(),uL;break;case FO:var h=this.peekCodePoint(0),g=this.peekCodePoint(1),m=this.peekCodePoint(2);if(Ga(h,g,m)){var s=this.consumeName();return{type:7,value:s}}break;case UO:return pL;case no:if(Ur(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case bO:return gL;case vO:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),nL;break;case IO:return oL;case SO:return aL;case PO:case GO:var w=this.peekCodePoint(0),U=this.peekCodePoint(1);return w===li&&(Xi(U)||U===Ka)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Vm:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),iL;if(this.peekCodePoint(0)===Vm)return this.consumeCodePoint(),rL;break;case TO:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),sL;break;case bn:return hf}return Pa(A)?(this.consumeWhiteSpace(),BL):Ze(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Va(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:ue(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();Xi(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var n=!1;e===Ka&&A.length<6;)A.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(ue.apply(void 0,A.map(function(c){return c===Ka?Wm:c})),16),i=parseInt(ue.apply(void 0,A.map(function(c){return c===Ka?zm:c})),16);return{type:30,start:r,end:i}}var s=parseInt(ue.apply(void 0,A),16);if(this.peekCodePoint(0)===wt&&Xi(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];Xi(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(ue.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)===Ra?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ra?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===bn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ka||e===Da){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===bn||this.peekCodePoint(0)===io)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Wa)}for(;;){var r=this.consumeCodePoint();if(r===bn||r===io)return{type:22,value:ue.apply(void 0,A)};if(Pa(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===bn||this.peekCodePoint(0)===io?(this.consumeCodePoint(),{type:22,value:ue.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Wa);if(r===Da||r===ka||r===Ra||qO(r))return this.consumeBadUrlRemnants(),Wa;if(r===no)if(Ur(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Wa;else A.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Pa(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===io||A===bn)return;Ur(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+=ue.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===bn||r===void 0||r===A)return e+=this.consumeStringSlice(n),{type:0,value:e};if(r===Na)return this._value.splice(0,n),cL;if(r===no){var i=this._value[n+1];i!==bn&&i!==void 0&&(i===Na?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ur(r,i)&&(e+=this.consumeStringSlice(n),e+=ue(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=to,n=this.peekCodePoint(0);for((n===li||n===wt)&&A.push(this.consumeCodePoint());Ze(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===so&&Ze(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Km;Ze(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Ym||n===Jm)&&((r===li||r===wt)&&Ze(i)||Ze(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Km;Ze(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[ZO(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(Ga(r,i,s)){var a=this.consumeName();return{type:15,number:e,flags:n,unit:a}}return r===wO?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Xi(A)){for(var e=ue(A);Xi(this.peekCodePoint(0))&&e.length<6;)e+=ue(this.consumeCodePoint());Pa(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||$O(n)||n>1114111?Gm:n}return A===bn?Gm:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(qm(e))A+=ue(e);else if(Ur(e,this.peekCodePoint(0)))A+=ue(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),jm=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new Zm;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||wL(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"?hf:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),oo=function(t){return t.type===15},Yi=function(t){return t.type===17},XA=function(t){return t.type===20},mL=function(t){return t.type===0},pf=function(t,A){return XA(t)&&t.value===A},Aw=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},wL=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},me=function(t){return t.type===16||br(t)},ew=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Ne={type:17,number:0,flags:to},gf={type:16,number:50,flags:to},vr={type:16,number:100,flags:to},ao=function(t,A,e){var n=t[0],r=t[1];return[qA(n,A),qA(typeof r<"u"?r:n,e)]},qA=function(t,A){if(t.type===16)return t.number/100*A;if(oo(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},tw="deg",nw="grad",rw="rad",iw="turn",$a={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case tw:return Math.PI*A.number/180;case nw:return Math.PI/200*A.number;case rw:return A.number;case iw:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},sw=function(t){return t.type===15&&(t.unit===tw||t.unit===nw||t.unit===rw||t.unit===iw)},ow=function(t){var A=t.filter(XA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ne,Ne];case"to top":case"bottom":return Gt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ne,vr];case"to right":case"left":return Gt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[vr,vr];case"to bottom":case"top":return Gt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[vr,Ne];case"to left":case"right":return Gt(270)}return 0},Gt=function(t){return Math.PI*t/180},Ir={name:"color",parse:function(t,A){if(A.type===18){var e=CL[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 Tr(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 Tr(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 Tr(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 Tr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Gn[A.value.toUpperCase()];if(typeof a<"u")return a}return Gn.TRANSPARENT}},Sr=function(t){return(255&t)===0},xe=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+")"},Tr=function(t,A,e,n){return(t<<24|A<<16|e<<8|Math.round(n*255)<<0)>>>0},aw=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},lw=function(t,A){var e=A.filter(zi);if(e.length===3){var n=e.map(aw),r=n[0],i=n[1],s=n[2];return Tr(r,i,s,1)}if(e.length===4){var a=e.map(aw),r=a[0],i=a[1],s=a[2],c=a[3];return Tr(r,i,s,c)}return 0};function Bf(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 cw=function(t,A){var e=A.filter(zi),n=e[0],r=e[1],i=e[2],s=e[3],a=(n.type===17?Gt(n.number):$a.parse(t,n))/(Math.PI*2),c=me(r)?r.number/100:0,u=me(i)?i.number/100:0,f=typeof s<"u"&&me(s)?qA(s,1):1;if(c===0)return Tr(u*255,u*255,u*255,1);var h=u<=.5?u*(c+1):u+c-u*c,g=u*2-h,m=Bf(g,h,a+1/3),w=Bf(g,h,a),U=Bf(g,h,a-1/3);return Tr(m*255,w*255,U*255,f)},CL={hsl:cw,hsla:cw,rgb:lw,rgba:lw},lo=function(t,A){return Ir.parse(t,jm.create(A).parseComponentValue())},Gn={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},yL={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(XA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},EL={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ja=function(t,A){var e=Ir.parse(t,A[0]),n=A[1];return n&&me(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=Ne),n.stop===null&&(n.stop=vr);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=qA(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 h=s-u,g=r[u-1],m=(f-g)/(h+1),w=1;w<=h;w++)r[u+w-1]=m*w;u=null}}return t.map(function(U,b){var F=U.color;return{color:F,stop:Math.max(Math.min(1,r[b]/A),0)}})},QL=function(t,A,e){var n=A/2,r=e/2,i=qA(t[0],A)-n,s=r-qA(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},FL=function(t,A,e){var n=typeof t=="number"?t:QL(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)},fw=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},UL=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=fw(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)),h=fw(n,r,A,e,!1),u=h[0],f=h[1];i=cn(u-A,(f-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=qA(t.size[0],n),s=t.size.length===2?qA(t.size[1],r):i),[i,s]},bL=function(t,A){var e=Gt(180),n=[];return vn(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){e=ow(r);return}else if(sw(s)){e=$a.parse(t,s);return}}var a=Ja(t,r);n.push(a)}),{angle:e,stops:n,type:1}},Xa=function(t,A){var e=Gt(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=ow(r);return}else if(sw(s)){e=($a.parse(t,s)+Gt(270))%Gt(360);return}}var a=Ja(t,r);n.push(a)}),{angle:e,stops:n,type:1}},vL=function(t,A){var e=Gt(180),n=[],r=1,i=0,s=3,a=[];return vn(A).forEach(function(c,u){var f=c[0];if(u===0){if(XA(f)&&f.value==="linear"){r=1;return}else if(XA(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var h=Ir.parse(t,f.values[0]);n.push({stop:Ne,color:h})}else if(f.name==="to"){var h=Ir.parse(t,f.values[0]);n.push({stop:vr,color:h})}else if(f.name==="color-stop"){var g=f.values.filter(zi);if(g.length===2){var h=Ir.parse(t,g[1]),m=g[0];Yi(m)&&n.push({stop:{type:16,number:m.number*100,flags:m.flags},color:h})}}}}),r===1?{angle:(e+Gt(180))%Gt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},dw="closest-side",hw="farthest-side",pw="closest-corner",gw="farthest-corner",Bw="circle",mw="ellipse",ww="cover",Cw="contain",IL=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(h,g){if(u)if(XA(g))switch(g.value){case"center":return i.push(gf),h;case"top":case"left":return i.push(Ne),h;case"right":case"bottom":return i.push(vr),h}else(me(g)||br(g))&&i.push(g);else if(XA(g))switch(g.value){case Bw:return e=0,!1;case mw:return e=1,!1;case"at":return u=!0,!1;case dw:return n=0,!1;case ww:case hw:return n=1,!1;case Cw:case pw:return n=2,!1;case gw:return n=3,!1}else if(br(g)||me(g))return Array.isArray(n)||(n=[]),n.push(g),!1;return h},c)}if(c){var f=Ja(t,s);r.push(f)}}),{size:n,shape:e,stops:r,position:i,type:2}},Ya=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,h){if(XA(h))switch(h.value){case"center":return i.push(gf),!1;case"top":case"left":return i.push(Ne),!1;case"right":case"bottom":return i.push(vr),!1}else if(me(h)||br(h))return i.push(h),!1;return f},c):a===1&&(c=s.reduce(function(f,h){if(XA(h))switch(h.value){case Bw:return e=0,!1;case mw:return e=1,!1;case Cw:case dw:return n=0,!1;case hw:return n=1,!1;case pw:return n=2,!1;case ww:case gw:return n=3,!1}else if(br(h)||me(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return f},c)),c){var u=Ja(t,s);r.push(u)}}),{size:n,shape:e,stops:r,position:i,type:2}},SL=function(t){return t.type===1},TL=function(t){return t.type===2},mf={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=yw[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 _L(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!yw[t.name])}var yw={"linear-gradient":bL,"-moz-linear-gradient":Xa,"-ms-linear-gradient":Xa,"-o-linear-gradient":Xa,"-webkit-linear-gradient":Xa,"radial-gradient":IL,"-moz-radial-gradient":Ya,"-ms-radial-gradient":Ya,"-o-radial-gradient":Ya,"-webkit-radial-gradient":Ya,"-webkit-gradient":vL},xL={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)&&_L(n)}).map(function(n){return mf.parse(t,n)})}},OL={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(XA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},LL={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return vn(A).map(function(e){return e.filter(me)}).map(ew)}},HL={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(XA).map(function(n){return n.value}).join(" ")}).map(ML)}},ML=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}},qi;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(qi||(qi={}));var NL={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(DL)})}},DL=function(t){return XA(t)||me(t)},za=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},kL=za("top"),RL=za("right"),KL=za("bottom"),PL=za("left"),qa=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return ew(e.filter(me))}}},VL=qa("top-left"),GL=qa("top-right"),WL=qa("bottom-right"),$L=qa("bottom-left"),Za=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}}},JL=Za("top"),XL=Za("right"),YL=Za("bottom"),zL=Za("left"),ja=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return oo(e)?e.number:0}}},qL=ja("top"),ZL=ja("right"),jL=ja("bottom"),AH=ja("left"),eH={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tH={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(XA).reduce(function(e,n){return e|rH(n.value)},0)}},rH=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},iH={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}},sH={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}},Al;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Al||(Al={}));var oH={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return Al.STRICT;case"normal":default:return Al.NORMAL}}},aH={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ew=function(t,A){return XA(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:me(t)?qA(t,A):A},lH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:mf.parse(t,A)}},cH={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}}},wf={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}}},el=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},uH=el("top"),fH=el("right"),dH=el("bottom"),hH=el("left"),pH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(XA).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}})}},gH={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"}}},tl=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},BH=tl("top"),mH=tl("right"),wH=tl("bottom"),CH=tl("left"),yH={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}}},EH={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}},QH={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&pf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:Gn.TRANSPARENT,offsetX:Ne,offsetY:Ne,blur:Ne},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=Ir.parse(t,s)}return n})}},FH={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}},UH={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=IH[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},bH=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},vH=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},IH={matrix:bH,matrix3d:vH},Qw={type:16,number:50,flags:to},SH=[Qw,Qw],TH={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(me);return e.length!==2?SH:[e[0],e[1]]}},_H={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}}},co;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(co||(co={}));for(var xH={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return co.BREAK_ALL;case"keep-all":return co.KEEP_ALL;case"normal":default:return co.NORMAL}}},OH={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Yi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Fw={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")}},LH={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Yi(A)?A.number:1}},HH={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},MH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(XA).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})}},NH={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+"'"})}},DH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},kH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Yi(A))return A.number;if(XA(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},RH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(XA).map(function(e){return e.value})}},KH={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"}}},Fe=function(t,A){return(t&A)!==0},PH={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}},VH={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(Aw),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&Yi(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},GH={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],n=A.filter(Aw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(XA(i)&&i.value!=="none"){var a=s&&Yi(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},WH={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(oo).map(function(e){return Fw.parse(t,e)})}},$H={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(mL);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}},Uw=function(t,A,e){if(!t)return"";var n=t[Math.min(A,t.length-1)];return n?e?n.open:n.close:""},JH={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&pf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:255,offsetX:Ne,offsetY:Ne,blur:Ne,spread:Ne,inset:!1},r=0,i=0;i<e.length;i++){var s=e[i];pf(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=Ir.parse(t,s)}return n})}},XH={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],n=[];return A.filter(XA).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}},YH={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},zH={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return oo(A)?A.number:0}},qH=function(){function t(A,e){var n,r;this.animationDuration=eA(A,WH,e.animationDuration),this.backgroundClip=eA(A,yL,e.backgroundClip),this.backgroundColor=eA(A,EL,e.backgroundColor),this.backgroundImage=eA(A,xL,e.backgroundImage),this.backgroundOrigin=eA(A,OL,e.backgroundOrigin),this.backgroundPosition=eA(A,LL,e.backgroundPosition),this.backgroundRepeat=eA(A,HL,e.backgroundRepeat),this.backgroundSize=eA(A,NL,e.backgroundSize),this.borderTopColor=eA(A,kL,e.borderTopColor),this.borderRightColor=eA(A,RL,e.borderRightColor),this.borderBottomColor=eA(A,KL,e.borderBottomColor),this.borderLeftColor=eA(A,PL,e.borderLeftColor),this.borderTopLeftRadius=eA(A,VL,e.borderTopLeftRadius),this.borderTopRightRadius=eA(A,GL,e.borderTopRightRadius),this.borderBottomRightRadius=eA(A,WL,e.borderBottomRightRadius),this.borderBottomLeftRadius=eA(A,$L,e.borderBottomLeftRadius),this.borderTopStyle=eA(A,JL,e.borderTopStyle),this.borderRightStyle=eA(A,XL,e.borderRightStyle),this.borderBottomStyle=eA(A,YL,e.borderBottomStyle),this.borderLeftStyle=eA(A,zL,e.borderLeftStyle),this.borderTopWidth=eA(A,qL,e.borderTopWidth),this.borderRightWidth=eA(A,ZL,e.borderRightWidth),this.borderBottomWidth=eA(A,jL,e.borderBottomWidth),this.borderLeftWidth=eA(A,AH,e.borderLeftWidth),this.boxShadow=eA(A,JH,e.boxShadow),this.color=eA(A,eH,e.color),this.direction=eA(A,tH,e.direction),this.display=eA(A,nH,e.display),this.float=eA(A,iH,e.cssFloat),this.fontFamily=eA(A,NH,e.fontFamily),this.fontSize=eA(A,DH,e.fontSize),this.fontStyle=eA(A,KH,e.fontStyle),this.fontVariant=eA(A,RH,e.fontVariant),this.fontWeight=eA(A,kH,e.fontWeight),this.letterSpacing=eA(A,sH,e.letterSpacing),this.lineBreak=eA(A,oH,e.lineBreak),this.lineHeight=eA(A,aH,e.lineHeight),this.listStyleImage=eA(A,lH,e.listStyleImage),this.listStylePosition=eA(A,cH,e.listStylePosition),this.listStyleType=eA(A,wf,e.listStyleType),this.marginTop=eA(A,uH,e.marginTop),this.marginRight=eA(A,fH,e.marginRight),this.marginBottom=eA(A,dH,e.marginBottom),this.marginLeft=eA(A,hH,e.marginLeft),this.opacity=eA(A,LH,e.opacity);var i=eA(A,pH,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=eA(A,gH,e.overflowWrap),this.paddingTop=eA(A,BH,e.paddingTop),this.paddingRight=eA(A,mH,e.paddingRight),this.paddingBottom=eA(A,wH,e.paddingBottom),this.paddingLeft=eA(A,CH,e.paddingLeft),this.paintOrder=eA(A,XH,e.paintOrder),this.position=eA(A,EH,e.position),this.textAlign=eA(A,yH,e.textAlign),this.textDecorationColor=eA(A,HH,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=eA(A,MH,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=eA(A,QH,e.textShadow),this.textTransform=eA(A,FH,e.textTransform),this.transform=eA(A,UH,e.transform),this.transformOrigin=eA(A,TH,e.transformOrigin),this.visibility=eA(A,_H,e.visibility),this.webkitTextStrokeColor=eA(A,YH,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=eA(A,zH,e.webkitTextStrokeWidth),this.wordBreak=eA(A,xH,e.wordBreak),this.zIndex=eA(A,OH,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Sr(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 Fe(this.display,4)||Fe(this.display,33554432)||Fe(this.display,268435456)||Fe(this.display,536870912)||Fe(this.display,67108864)||Fe(this.display,134217728)},t}(),ZH=function(){function t(A,e){this.content=eA(A,PH,e.content),this.quotes=eA(A,$H,e.quotes)}return t}(),bw=function(){function t(A,e){this.counterIncrement=eA(A,VH,e.counterIncrement),this.counterReset=eA(A,GH,e.counterReset)}return t}(),eA=function(t,A,e){var n=new Zm,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;n.write(r);var i=new jm(n.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,XA(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 $a.parse(t,i.parseComponentValue());case"color":return Ir.parse(t,i.parseComponentValue());case"image":return mf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return br(a)?a:Ne;case"length-percentage":var c=i.parseComponentValue();return me(c)?c:Ne;case"time":return Fw.parse(t,i.parseComponentValue())}break}},jH="data-html2canvas-debug",AM=function(t){var A=t.getAttribute(jH);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Cf=function(t,A){var e=AM(t);return e===1||A===e},In=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Cf(e,3))debugger;this.styles=new qH(A,window.getComputedStyle(e,null)),Lf(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=ba(this.context,e),Cf(e,4)&&(this.flags|=16)}return t}(),eM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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AIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAg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4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",vw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo=typeof Uint8Array>"u"?[]:new Uint8Array(256),nl=0;nl<vw.length;nl++)uo[vw.charCodeAt(nl)]=nl;for(var tM=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=uo[t.charCodeAt(n)],s=uo[t.charCodeAt(n+1)],a=uo[t.charCodeAt(n+2)],c=uo[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},nM=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},rM=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,yf=6+5,Ef=2,iM=yf-ci,Iw=65536>>ci,sM=1<<ci,Qf=sM-1,oM=1024>>ci,aM=Iw+oM,lM=aM,cM=32,uM=lM+cM,fM=65536>>yf,dM=1<<iM,hM=dM-1,Sw=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},pM=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},gM=function(t,A){var e=tM(t),n=Array.isArray(e)?rM(e):new Uint32Array(e),r=Array.isArray(e)?nM(e):new Uint16Array(e),i=24,s=Sw(r,i/2,n[4]/2),a=n[5]===2?Sw(r,(i+n[4])/2):pM(n,Math.ceil((i+n[4])/4));return new BM(n[0],n[1],n[2],n[3],s,a)},BM=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&Qf),this.data[e];if(A<=65535)return e=this.index[Iw+(A-55296>>ci)],e=(e<<Ef)+(A&Qf),this.data[e];if(A<this.highStart)return e=uM-fM+(A>>yf),e=this.index[e],e+=A>>ci&hM,e=this.index[e],e=(e<<Ef)+(A&Qf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mM=typeof Uint8Array>"u"?[]:new Uint8Array(256),rl=0;rl<Tw.length;rl++)mM[Tw.charCodeAt(rl)]=rl;var wM=1,Ff=2,Uf=3,_w=4,xw=5,CM=7,Ow=8,bf=9,vf=10,Lw=11,Hw=12,Mw=13,Nw=14,If=15,yM=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},EM=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},QM=gM(eM),Wt="×",Sf="÷",FM=function(t){return QM.get(t)},UM=function(t,A,e){var n=e-2,r=A[n],i=A[e-1],s=A[e];if(i===Ff&&s===Uf)return Wt;if(i===Ff||i===Uf||i===_w||s===Ff||s===Uf||s===_w)return Sf;if(i===Ow&&[Ow,bf,Lw,Hw].indexOf(s)!==-1||(i===Lw||i===bf)&&(s===bf||s===vf)||(i===Hw||i===vf)&&s===vf||s===Mw||s===xw||s===CM||i===wM)return Wt;if(i===Mw&&s===Nw){for(;r===xw;)r=A[--n];if(r===Nw)return Wt}if(i===If&&s===If){for(var a=0;r===If;)a++,r=A[--n];if(a%2===0)return Wt}return Sf},bM=function(t){var A=yM(t),e=A.length,n=0,r=0,i=A.map(FM);return{next:function(){if(n>=e)return{done:!0,value:null};for(var s=Wt;n<e&&(s=UM(A,i,++n))===Wt;);if(s!==Wt||n===e){var a=EM.apply(null,A.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},vM=function(t){for(var A=bM(t),e=[],n;!(n=A.next()).done;)n.value&&e.push(n.value.slice());return e},IM=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},SM=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"?"👨".repeat(10):"";var n=A.firstChild,r=va(n.data).map(function(c){return ue(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 h=f.x>s.x||f.y>s.y;return s=f,u===0?!0:h});return t.body.removeChild(A),a},TM=function(){return typeof new Image().crossOrigin<"u"},_M=function(){return typeof new XMLHttpRequest().responseType=="string"},xM=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},Dw=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},OM=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=Tf(e,e,0,0,r);return n.fillStyle="red",n.fillRect(0,0,e,e),kw(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",Dw(c)?kw(Tf(e,e,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),Dw(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Tf=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},kw=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))})},De={get SUPPORT_RANGE_BOUNDS(){var t=IM(document);return Object.defineProperty(De,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=De.SUPPORT_RANGE_BOUNDS&&SM(document);return Object.defineProperty(De,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=xM(document);return Object.defineProperty(De,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?OM(document):Promise.resolve(!1);return Object.defineProperty(De,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=TM();return Object.defineProperty(De,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=_M();return Object.defineProperty(De,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(De,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(De,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},fo=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),LM=function(t,A,e,n){var r=NM(A,e),i=[],s=0;return r.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(De.SUPPORT_RANGE_BOUNDS){var c=Rw(n,s,a.length).getClientRects();if(c.length>1){var u=_f(a),f=0;u.forEach(function(g){i.push(new fo(g,Pn.fromDOMRectList(t,Rw(n,f+s,g.length).getClientRects()))),f+=g.length})}else i.push(new fo(a,Pn.fromDOMRectList(t,c)))}else{var h=n.splitText(a.length);i.push(new fo(a,HM(t,n))),n=h}else De.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},HM=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=ba(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return Pn.EMPTY},Rw=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},_f=function(t){if(De.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 vM(t)},MM=function(t,A){if(De.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 kM(t,A)},NM=function(t,A){return A.letterSpacing!==0?_f(t):MM(t,A)},DM=[32,160,4961,65792,65793,4153,4241],kM=function(t,A){for(var e=fO(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=va(s),c="";a.forEach(function(u){DM.indexOf(u)===-1?c+=ue(u):(c.length&&n.push(c),n.push(ue(u)),c="")}),c.length&&n.push(c)}};!(r=e.next()).done;)i();return n},RM=function(){function t(A,e,n){this.text=KM(e.data,n.textTransform),this.textBounds=LM(A,this.text,n,e)}return t}(),KM=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(PM,VM);case 2:return t.toUpperCase();default:return t}},PM=/(^|\s|:|-|\(|\))([a-z])/g,VM=function(t,A,e){return t.length>0?A+e.toUpperCase():t},Kw=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),Pw=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),Vw=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,s=ba(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),Gw=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),xf=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),GM=[{type:15,flags:0,unit:"px",number:3}],WM=[{type:16,flags:0,number:50}],$M=function(t){return t.width>t.height?new Pn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Pn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},JM=function(t){var A=t.type===XM?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},il="checkbox",sl="radio",XM="password",Ww=707406591,Of=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=JM(n),(r.type===il||r.type===sl)&&(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=$M(r.bounds)),r.type){case il:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=GM;break;case sl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=WM;break}return r}return A}(In),$w=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),Jw=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),Xw=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=zw(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?lo(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Gn.TRANSPARENT,s=n.contentWindow.document.body?lo(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Gn.TRANSPARENT;r.backgroundColor=Sr(i)?Sr(s)?r.styles.backgroundColor:s:i}}catch{}return r}return A}(In),YM=["OL","UL","MENU"],ol=function(t,A,e,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,qw(r)&&r.data.trim().length>0)e.textNodes.push(new RM(t,r,e.styles));else if(Zi(r))if(nC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return ol(t,a,e,n)});else{var s=Yw(t,r);s.styles.isVisible()&&(zM(r,s,n)?s.flags|=4:qM(s.styles)&&(s.flags|=2),YM.indexOf(r.tagName)!==-1&&(s.flags|=8),e.elements.push(s),r.slot,r.shadowRoot?ol(t,r.shadowRoot,s,n):!ll(r)&&!Zw(r)&&!cl(r)&&ol(t,r,s,n))}},Yw=function(t,A){return Mf(A)?new Kw(t,A):jw(A)?new Pw(t,A):Zw(A)?new Vw(t,A):ZM(A)?new Gw(t,A):jM(A)?new xf(t,A):AN(A)?new Of(t,A):cl(A)?new $w(t,A):ll(A)?new Jw(t,A):eC(A)?new Xw(t,A):new In(t,A)},zw=function(t,A){var e=Yw(t,A);return e.flags|=4,ol(t,A,e,e),e},zM=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Hf(t)&&e.styles.isTransparent()},qM=function(t){return t.isPositioned()||t.isFloating()},qw=function(t){return t.nodeType===Node.TEXT_NODE},Zi=function(t){return t.nodeType===Node.ELEMENT_NODE},Lf=function(t){return Zi(t)&&typeof t.style<"u"&&!al(t)},al=function(t){return typeof t.className=="object"},ZM=function(t){return t.tagName==="LI"},jM=function(t){return t.tagName==="OL"},AN=function(t){return t.tagName==="INPUT"},eN=function(t){return t.tagName==="HTML"},Zw=function(t){return t.tagName==="svg"},Hf=function(t){return t.tagName==="BODY"},jw=function(t){return t.tagName==="CANVAS"},AC=function(t){return t.tagName==="VIDEO"},Mf=function(t){return t.tagName==="IMG"},eC=function(t){return t.tagName==="IFRAME"},tC=function(t){return t.tagName==="STYLE"},tN=function(t){return t.tagName==="SCRIPT"},ll=function(t){return t.tagName==="TEXTAREA"},cl=function(t){return t.tagName==="SELECT"},nC=function(t){return t.tagName==="SLOT"},rC=function(t){return t.tagName.indexOf("-")>0},nN=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}(),iC={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"]},sC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},rN={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},iN={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ji=function(t,A,e,n,r,i){return t<A||t>e?po(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},oC=function(t,A,e,n){var r="";do e||t--,r=n(t)+r,t/=A;while(t*A>=A);return r},fe=function(t,A,e,n,r){var i=e-A+1;return(t<0?"-":"")+(oC(Math.abs(t),i,n,function(s){return ue(Math.floor(s%i)+A)})+r)},ui=function(t,A,e){e===void 0&&(e=". ");var n=A.length;return oC(Math.abs(t),n,!1,function(r){return A[Math.floor(r%n)]})+e},As=1,_r=2,xr=4,ho=8,Wn=function(t,A,e,n,r,i){if(t<-9999||t>9999)return po(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&&Fe(i,As)&&a!==""?a=A[u]+a:u>1||u===1&&c===0||u===1&&c===1&&Fe(i,_r)||u===1&&c===1&&Fe(i,xr)&&t>100||u===1&&c>1&&Fe(i,ho)?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},aC="十百千萬",lC="拾佰仟萬",cC="マイナス",Nf="마이너스",po=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=fe(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return ui(t,"〇一二三四五六七八九",r);case 6:return ji(t,1,3999,iC,3,n).toLowerCase();case 7:return ji(t,1,3999,iC,3,n);case 8:return fe(t,945,969,!1,n);case 9:return fe(t,97,122,!1,n);case 10:return fe(t,65,90,!1,n);case 11:return fe(t,1632,1641,!0,n);case 12:case 49:return ji(t,1,9999,sC,3,n);case 35:return ji(t,1,9999,sC,3,n).toLowerCase();case 13:return fe(t,2534,2543,!0,n);case 14:case 30:return fe(t,6112,6121,!0,n);case 15:return ui(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return ui(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Wn(t,"零一二三四五六七八九",aC,"負",r,_r|xr|ho);case 47:return Wn(t,"零壹貳參肆伍陸柒捌玖",lC,"負",r,As|_r|xr|ho);case 42:return Wn(t,"零一二三四五六七八九",aC,"负",r,_r|xr|ho);case 41:return Wn(t,"零壹贰叁肆伍陆柒捌玖",lC,"负",r,As|_r|xr|ho);case 26:return Wn(t,"〇一二三四五六七八九","十百千万",cC,r,0);case 25:return Wn(t,"零壱弐参四伍六七八九","拾百千万",cC,r,As|_r|xr);case 31:return Wn(t,"영일이삼사오육칠팔구","십백천만",Nf,i,As|_r|xr);case 33:return Wn(t,"零一二三四五六七八九","十百千萬",Nf,i,0);case 32:return Wn(t,"零壹貳參四五六七八九","拾百千",Nf,i,As|_r|xr);case 18:return fe(t,2406,2415,!0,n);case 20:return ji(t,1,19999,iN,3,n);case 21:return fe(t,2790,2799,!0,n);case 22:return fe(t,2662,2671,!0,n);case 22:return ji(t,1,10999,rN,3,n);case 23:return ui(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ui(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return fe(t,3302,3311,!0,n);case 28:return ui(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return ui(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return fe(t,3792,3801,!0,n);case 37:return fe(t,6160,6169,!0,n);case 38:return fe(t,4160,4169,!0,n);case 39:return fe(t,2918,2927,!0,n);case 40:return fe(t,1776,1785,!0,n);case 43:return fe(t,3046,3055,!0,n);case 44:return fe(t,3174,3183,!0,n);case 45:return fe(t,3664,3673,!0,n);case 46:return fe(t,3872,3881,!0,n);case 3:default:return fe(t,48,57,!0,n)}},uC="data-html2canvas-ignore",fC=function(){function t(A,e,n){if(this.context=A,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new nN,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=sN(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=lN(r).then(function(){return at(n,void 0,void 0,function(){var f,h;return qe(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(dN),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,h=this.clonedReferenceElement,typeof h>"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,aN(c)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(c,h)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write(uN(document.doctype)+"<html></html>"),fN(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(A){if(Cf(A,2))debugger;if(jw(A))return this.createCanvasClone(A);if(AC(A))return this.createVideoClone(A);if(tC(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Mf(e)&&(Mf(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),rC(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Df(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){(!Zi(e)||!tN(e)&&!e.hasAttribute(uC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Zi(e)||!tC(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(Zi(i)&&nC(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(qw(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var n=A.ownerDocument.defaultView;if(n&&Zi(A)&&(Lf(A)||al(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&&Lf(r)&&(this.clonedReferenceElement=r),Hf(r)&&gN(r);var c=this.counters.parse(new bw(this.context,i)),u=this.resolvePseudoContent(A,r,s,go.BEFORE);rC(A)&&(e=!0),AC(A)||this.cloneChildNodes(A,r,e),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(A,r,a,go.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||al(A))&&!eC(A)||e)&&Df(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(ll(A)||cl(A))&&(ll(r)||cl(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 bw(this.context,n));var c=new ZH(this.context,n),u=a.createElement("html2canvaspseudoelement");Df(n,u),c.content.forEach(function(h){if(h.type===0)u.appendChild(a.createTextNode(h.value));else if(h.type===22){var g=a.createElement("img");g.src=h.value,g.style.opacity="1",u.appendChild(g)}else if(h.type===18){if(h.name==="attr"){var m=h.values.filter(XA);m.length&&u.appendChild(a.createTextNode(A.getAttribute(m[0].value)||""))}else if(h.name==="counter"){var w=h.values.filter(zi),U=w[0],b=w[1];if(U&&XA(U)){var F=i.counters.getCounterValue(U.value),I=b&&XA(b)?wf.parse(i.context,b.value):3;u.appendChild(a.createTextNode(po(F,I,!1)))}}else if(h.name==="counters"){var M=h.values.filter(zi),U=M[0],E=M[1],b=M[2];if(U&&XA(U)){var N=i.counters.getCounterValues(U.value),T=b&&XA(b)?wf.parse(i.context,b.value):3,H=E&&E.type===0?E.value:"",Y=N.map(function(lA){return po(lA,T,!1)}).join(H);u.appendChild(a.createTextNode(Y))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(a.createTextNode(Uw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Uw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(h.value))}}),u.className=kf+" "+Rf;var f=r===go.BEFORE?" "+kf:" "+Rf;return al(e)?e.className.baseValue+=f:e.className+=f,u}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),go;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(go||(go={}));var sN=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},oN=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},aN=function(t){return Promise.all([].slice.call(t.images,0).map(oN))},lN=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)}})},cN=["all","d","content"],Df=function(t,A){for(var e=t.length-1;e>=0;e--){var n=t.item(e);cN.indexOf(n)===-1&&A.style.setProperty(n,t.getPropertyValue(n))}return A},uN=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},fN=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},dN=function(t){var A=t[0],e=t[1],n=t[2];A.scrollLeft=e,A.scrollTop=n},hN=":before",pN=":after",kf="___html2canvas___pseudoelement_before",Rf="___html2canvas___pseudoelement_after",dC=`{
|
|
176
|
+
***************************************************************************** */var Ju=function(t,A){return Ju=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])},Ju(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");Ju(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var Xu=function(){return Xu=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},Xu.apply(this,arguments)};function at(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(h){s(h)}}function c(f){try{u(n.throw(f))}catch(h){s(h)}}function u(f){f.done?i(f.value):r(f.value).then(a,c)}u((n=n.apply(t,A||[])).next())})}function qe(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 Ua(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 Pn=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}(),ba=function(t,A){return Pn.fromClientRect(t,A.getBoundingClientRect())},xx=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 Pn(0,0,n,r)},va=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},pe=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},Em="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ox=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ia=0;Ia<Em.length;Ia++)Ox[Em.charCodeAt(Ia)]=Ia;for(var Qm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ys=typeof Uint8Array>"u"?[]:new Uint8Array(256),Sa=0;Sa<Qm.length;Sa++)Ys[Qm.charCodeAt(Sa)]=Sa;for(var Lx=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=Ys[t.charCodeAt(n)],s=Ys[t.charCodeAt(n+1)],a=Ys[t.charCodeAt(n+2)],c=Ys[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},Hx=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},Mx=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},oi=5,Yu=6+5,zu=2,Nx=Yu-oi,Fm=65536>>oi,Dx=1<<oi,qu=Dx-1,kx=1024>>oi,Rx=Fm+kx,Kx=Rx,Px=32,Vx=Kx+Px,Gx=65536>>Yu,Wx=1<<Nx,$x=Wx-1,Um=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Jx=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Xx=function(t,A){var e=Lx(t),n=Array.isArray(e)?Mx(e):new Uint32Array(e),r=Array.isArray(e)?Hx(e):new Uint16Array(e),i=24,s=Um(r,i/2,n[4]/2),a=n[5]===2?Um(r,(i+n[4])/2):Jx(n,Math.ceil((i+n[4])/4));return new Yx(n[0],n[1],n[2],n[3],s,a)},Yx=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>>oi],e=(e<<zu)+(A&qu),this.data[e];if(A<=65535)return e=this.index[Fm+(A-55296>>oi)],e=(e<<zu)+(A&qu),this.data[e];if(A<this.highStart)return e=Vx-Gx+(A>>Yu),e=this.index[e],e+=A>>oi&$x,e=this.index[e],e=(e<<zu)+(A&qu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),bm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zx=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ta=0;Ta<bm.length;Ta++)zx[bm.charCodeAt(Ta)]=Ta;var qx="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1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ywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmC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MAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3U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AdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGf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tIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAC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ABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AH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B4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABY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QAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AH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4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAl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ASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",vm=50,Zx=1,Im=2,Sm=3,jx=4,AO=5,Tm=7,_m=8,xm=9,Fr=10,Zu=11,Om=12,ju=13,eO=14,zs=15,Af=16,_a=17,qs=18,tO=19,Lm=20,ef=21,Zs=22,tf=23,$i=24,St=25,js=26,Ao=27,Ji=28,nO=29,ai=30,rO=31,xa=32,Oa=33,nf=34,rf=35,sf=36,eo=37,of=38,La=39,Ha=40,af=41,Hm=42,iO=43,sO=[9001,65288],Mm="!",xA="×",Ma="÷",lf=Xx(qx),Vn=[ai,sf],cf=[Zx,Im,Sm,AO],Nm=[Fr,_m],Dm=[Ao,js],oO=cf.concat(Nm),km=[of,La,Ha,nf,rf],aO=[zs,ju],lO=function(t,A){A===void 0&&(A="strict");var e=[],n=[],r=[];return t.forEach(function(i,s){var a=lf.get(i);if(a>vm?(r.push(!0),a-=vm):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),e.push(Af);if(a===jx||a===Zu){if(s===0)return n.push(s),e.push(ai);var c=e[s-1];return oO.indexOf(c)===-1?(n.push(n[s-1]),e.push(c)):(n.push(s),e.push(ai))}if(n.push(s),a===rO)return e.push(A==="strict"?ef:eo);if(a===Hm||a===nO)return e.push(ai);if(a===iO)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(eo):e.push(ai);e.push(a)}),[n,e,r]},uf=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!==Fr)break}if(r===Fr)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!==Fr)break}if(a!==Fr)break}return!1},Rm=function(t,A){for(var e=t;e>=0;){var n=A[e];if(n===Fr)e--;else return n}return 0},cO=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===Im&&f===Sm)return xA;if(cf.indexOf(c)!==-1)return Mm;if(cf.indexOf(f)!==-1||Nm.indexOf(f)!==-1)return xA;if(Rm(i,A)===_m)return Ma;if(lf.get(t[i])===Zu||(c===xa||c===Oa)&&lf.get(t[a])===Zu||c===Tm||f===Tm||c===xm||[Fr,ju,zs].indexOf(c)===-1&&f===xm||[_a,qs,tO,$i,Ji].indexOf(f)!==-1||Rm(i,A)===Zs||uf(tf,Zs,i,A)||uf([_a,qs],ef,i,A)||uf(Om,Om,i,A))return xA;if(c===Fr)return Ma;if(c===tf||f===tf)return xA;if(f===Af||c===Af)return Ma;if([ju,zs,ef].indexOf(f)!==-1||c===eO||u===sf&&aO.indexOf(c)!==-1||c===Ji&&f===sf||f===Lm||Vn.indexOf(f)!==-1&&c===St||Vn.indexOf(c)!==-1&&f===St||c===Ao&&[eo,xa,Oa].indexOf(f)!==-1||[eo,xa,Oa].indexOf(c)!==-1&&f===js||Vn.indexOf(c)!==-1&&Dm.indexOf(f)!==-1||Dm.indexOf(c)!==-1&&Vn.indexOf(f)!==-1||[Ao,js].indexOf(c)!==-1&&(f===St||[Zs,zs].indexOf(f)!==-1&&A[a+1]===St)||[Zs,zs].indexOf(c)!==-1&&f===St||c===St&&[St,Ji,$i].indexOf(f)!==-1)return xA;if([St,Ji,$i,_a,qs].indexOf(f)!==-1)for(var h=i;h>=0;){var g=A[h];if(g===St)return xA;if([Ji,$i].indexOf(g)!==-1)h--;else break}if([Ao,js].indexOf(f)!==-1)for(var h=[_a,qs].indexOf(c)!==-1?s:i;h>=0;){var g=A[h];if(g===St)return xA;if([Ji,$i].indexOf(g)!==-1)h--;else break}if(of===c&&[of,La,nf,rf].indexOf(f)!==-1||[La,nf].indexOf(c)!==-1&&[La,Ha].indexOf(f)!==-1||[Ha,rf].indexOf(c)!==-1&&f===Ha||km.indexOf(c)!==-1&&[Lm,js].indexOf(f)!==-1||km.indexOf(f)!==-1&&c===Ao||Vn.indexOf(c)!==-1&&Vn.indexOf(f)!==-1||c===$i&&Vn.indexOf(f)!==-1||Vn.concat(St).indexOf(c)!==-1&&f===Zs&&sO.indexOf(t[a])===-1||Vn.concat(St).indexOf(f)!==-1&&c===qs)return xA;if(c===af&&f===af){for(var m=e[i],w=1;m>0&&(m--,A[m]===af);)w++;if(w%2!==0)return xA}return c===xa&&f===Oa?xA:Ma},uO=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=lO(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[St,ai,Hm].indexOf(a)!==-1?eo: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]},fO=function(){function t(A,e,n,r){this.codePoints=A,this.required=e===Mm,this.start=n,this.end=r}return t.prototype.slice=function(){return pe.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),dO=function(t,A){var e=va(t),n=uO(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=cO(e,i,r,++u,s))===xA;);if(f!==xA||u===a){var h=new fO(e,f,c,u);return c=u,{value:h,done:!1}}return{done:!0,value:null}}}},hO=1,pO=2,to=4,Km=8,Na=10,Pm=47,no=92,gO=9,BO=32,Da=34,ro=61,mO=35,wO=36,CO=37,ka=39,Ra=40,io=41,yO=95,wt=45,EO=33,QO=60,FO=62,UO=64,bO=91,vO=93,IO=61,SO=123,Ka=63,TO=125,Vm=124,_O=126,xO=128,Gm=65533,ff=42,li=43,OO=44,LO=58,HO=59,so=46,MO=0,NO=8,DO=11,kO=14,RO=31,KO=127,bn=-1,Wm=48,$m=97,Jm=101,PO=102,VO=117,GO=122,Xm=65,Ym=69,zm=70,WO=85,$O=90,Ze=function(t){return t>=Wm&&t<=57},JO=function(t){return t>=55296&&t<=57343},Xi=function(t){return Ze(t)||t>=Xm&&t<=zm||t>=$m&&t<=PO},XO=function(t){return t>=$m&&t<=GO},YO=function(t){return t>=Xm&&t<=$O},zO=function(t){return XO(t)||YO(t)},qO=function(t){return t>=xO},Pa=function(t){return t===Na||t===gO||t===BO},Va=function(t){return zO(t)||qO(t)||t===yO},qm=function(t){return Va(t)||Ze(t)||t===wt},ZO=function(t){return t>=MO&&t<=NO||t===DO||t>=kO&&t<=RO||t===KO},Ur=function(t,A){return t!==no?!1:A!==Na},Ga=function(t,A,e){return t===wt?Va(A)||Ur(A,e):Va(t)?!0:!!(t===no&&Ur(t,A))},df=function(t,A,e){return t===li||t===wt?Ze(A)?!0:A===so&&Ze(e):Ze(t===so?A:t)},jO=function(t){var A=0,e=1;(t[A]===li||t[A]===wt)&&(t[A]===wt&&(e=-1),A++);for(var n=[];Ze(t[A]);)n.push(t[A++]);var r=n.length?parseInt(pe.apply(void 0,n),10):0;t[A]===so&&A++;for(var i=[];Ze(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(pe.apply(void 0,i),10):0;(t[A]===Ym||t[A]===Jm)&&A++;var c=1;(t[A]===li||t[A]===wt)&&(t[A]===wt&&(c=-1),A++);for(var u=[];Ze(t[A]);)u.push(t[A++]);var f=u.length?parseInt(pe.apply(void 0,u),10):0;return e*(r+a*Math.pow(10,-s))*Math.pow(10,c*f)},AL={type:2},eL={type:3},tL={type:4},nL={type:13},rL={type:8},iL={type:21},sL={type:9},oL={type:10},aL={type:11},lL={type:12},cL={type:14},Wa={type:23},uL={type:1},fL={type:25},dL={type:24},hL={type:26},pL={type:27},gL={type:28},BL={type:29},mL={type:31},hf={type:32},Zm=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(va(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==hf;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Da:return this.consumeStringToken(Da);case mO:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(qm(e)||Ur(n,r)){var i=Ga(e,n,r)?pO:hO,s=this.consumeName();return{type:5,value:s,flags:i}}break;case wO:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),nL;break;case ka:return this.consumeStringToken(ka);case Ra:return AL;case io:return eL;case ff:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),cL;break;case li:if(df(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case OO:return tL;case wt:var a=A,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(df(a,c,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Ga(a,c,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===wt&&u===FO)return this.consumeCodePoint(),this.consumeCodePoint(),dL;break;case so:if(df(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Pm:if(this.peekCodePoint(0)===ff)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===ff&&(f=this.consumeCodePoint(),f===Pm))return this.consumeToken();if(f===bn)return this.consumeToken()}break;case LO:return hL;case HO:return pL;case QO:if(this.peekCodePoint(0)===EO&&this.peekCodePoint(1)===wt&&this.peekCodePoint(2)===wt)return this.consumeCodePoint(),this.consumeCodePoint(),fL;break;case UO:var h=this.peekCodePoint(0),g=this.peekCodePoint(1),m=this.peekCodePoint(2);if(Ga(h,g,m)){var s=this.consumeName();return{type:7,value:s}}break;case bO:return gL;case no:if(Ur(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case vO:return BL;case IO:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),rL;break;case SO:return aL;case TO:return lL;case VO:case WO:var w=this.peekCodePoint(0),U=this.peekCodePoint(1);return w===li&&(Xi(U)||U===Ka)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Vm:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),sL;if(this.peekCodePoint(0)===Vm)return this.consumeCodePoint(),iL;break;case _O:if(this.peekCodePoint(0)===ro)return this.consumeCodePoint(),oL;break;case bn:return hf}return Pa(A)?(this.consumeWhiteSpace(),mL):Ze(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Va(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:pe(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();Xi(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var n=!1;e===Ka&&A.length<6;)A.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(pe.apply(void 0,A.map(function(c){return c===Ka?Wm:c})),16),i=parseInt(pe.apply(void 0,A.map(function(c){return c===Ka?zm:c})),16);return{type:30,start:r,end:i}}var s=parseInt(pe.apply(void 0,A),16);if(this.peekCodePoint(0)===wt&&Xi(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];Xi(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(pe.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)===Ra?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ra?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===bn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ka||e===Da){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===bn||this.peekCodePoint(0)===io)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Wa)}for(;;){var r=this.consumeCodePoint();if(r===bn||r===io)return{type:22,value:pe.apply(void 0,A)};if(Pa(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===bn||this.peekCodePoint(0)===io?(this.consumeCodePoint(),{type:22,value:pe.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Wa);if(r===Da||r===ka||r===Ra||ZO(r))return this.consumeBadUrlRemnants(),Wa;if(r===no)if(Ur(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Wa;else A.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Pa(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===io||A===bn)return;Ur(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+=pe.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===bn||r===void 0||r===A)return e+=this.consumeStringSlice(n),{type:0,value:e};if(r===Na)return this._value.splice(0,n),uL;if(r===no){var i=this._value[n+1];i!==bn&&i!==void 0&&(i===Na?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ur(r,i)&&(e+=this.consumeStringSlice(n),e+=pe(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=to,n=this.peekCodePoint(0);for((n===li||n===wt)&&A.push(this.consumeCodePoint());Ze(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===so&&Ze(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Km;Ze(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Ym||n===Jm)&&((r===li||r===wt)&&Ze(i)||Ze(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Km;Ze(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[jO(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(Ga(r,i,s)){var a=this.consumeName();return{type:15,number:e,flags:n,unit:a}}return r===CO?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Xi(A)){for(var e=pe(A);Xi(this.peekCodePoint(0))&&e.length<6;)e+=pe(this.consumeCodePoint());Pa(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||JO(n)||n>1114111?Gm:n}return A===bn?Gm:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(qm(e))A+=pe(e);else if(Ur(e,this.peekCodePoint(0)))A+=pe(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),jm=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new Zm;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||CL(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"?hf:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),oo=function(t){return t.type===15},Yi=function(t){return t.type===17},zA=function(t){return t.type===20},wL=function(t){return t.type===0},pf=function(t,A){return zA(t)&&t.value===A},Aw=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},CL=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},Ee=function(t){return t.type===16||br(t)},ew=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Ne={type:17,number:0,flags:to},gf={type:16,number:50,flags:to},vr={type:16,number:100,flags:to},ao=function(t,A,e){var n=t[0],r=t[1];return[ee(n,A),ee(typeof r<"u"?r:n,e)]},ee=function(t,A){if(t.type===16)return t.number/100*A;if(oo(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},tw="deg",nw="grad",rw="rad",iw="turn",$a={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case tw:return Math.PI*A.number/180;case nw:return Math.PI/200*A.number;case rw:return A.number;case iw:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},sw=function(t){return t.type===15&&(t.unit===tw||t.unit===nw||t.unit===rw||t.unit===iw)},ow=function(t){var A=t.filter(zA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ne,Ne];case"to top":case"bottom":return Gt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ne,vr];case"to right":case"left":return Gt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[vr,vr];case"to bottom":case"top":return Gt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[vr,Ne];case"to left":case"right":return Gt(270)}return 0},Gt=function(t){return Math.PI*t/180},Ir={name:"color",parse:function(t,A){if(A.type===18){var e=yL[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 Tr(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 Tr(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 Tr(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 Tr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Gn[A.value.toUpperCase()];if(typeof a<"u")return a}return Gn.TRANSPARENT}},Sr=function(t){return(255&t)===0},xe=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+")"},Tr=function(t,A,e,n){return(t<<24|A<<16|e<<8|Math.round(n*255)<<0)>>>0},aw=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},lw=function(t,A){var e=A.filter(zi);if(e.length===3){var n=e.map(aw),r=n[0],i=n[1],s=n[2];return Tr(r,i,s,1)}if(e.length===4){var a=e.map(aw),r=a[0],i=a[1],s=a[2],c=a[3];return Tr(r,i,s,c)}return 0};function Bf(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 cw=function(t,A){var e=A.filter(zi),n=e[0],r=e[1],i=e[2],s=e[3],a=(n.type===17?Gt(n.number):$a.parse(t,n))/(Math.PI*2),c=Ee(r)?r.number/100:0,u=Ee(i)?i.number/100:0,f=typeof s<"u"&&Ee(s)?ee(s,1):1;if(c===0)return Tr(u*255,u*255,u*255,1);var h=u<=.5?u*(c+1):u+c-u*c,g=u*2-h,m=Bf(g,h,a+1/3),w=Bf(g,h,a),U=Bf(g,h,a-1/3);return Tr(m*255,w*255,U*255,f)},yL={hsl:cw,hsla:cw,rgb:lw,rgba:lw},lo=function(t,A){return Ir.parse(t,jm.create(A).parseComponentValue())},Gn={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},EL={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(zA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},QL={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ja=function(t,A){var e=Ir.parse(t,A[0]),n=A[1];return n&&Ee(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=Ne),n.stop===null&&(n.stop=vr);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=ee(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 h=s-u,g=r[u-1],m=(f-g)/(h+1),w=1;w<=h;w++)r[u+w-1]=m*w;u=null}}return t.map(function(U,b){var Q=U.color;return{color:Q,stop:Math.max(Math.min(1,r[b]/A),0)}})},FL=function(t,A,e){var n=A/2,r=e/2,i=ee(t[0],A)-n,s=r-ee(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},UL=function(t,A,e){var n=typeof t=="number"?t:FL(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)},fw=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},bL=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=fw(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)),h=fw(n,r,A,e,!1),u=h[0],f=h[1];i=cn(u-A,(f-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=ee(t.size[0],n),s=t.size.length===2?ee(t.size[1],r):i),[i,s]},vL=function(t,A){var e=Gt(180),n=[];return vn(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){e=ow(r);return}else if(sw(s)){e=$a.parse(t,s);return}}var a=Ja(t,r);n.push(a)}),{angle:e,stops:n,type:1}},Xa=function(t,A){var e=Gt(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=ow(r);return}else if(sw(s)){e=($a.parse(t,s)+Gt(270))%Gt(360);return}}var a=Ja(t,r);n.push(a)}),{angle:e,stops:n,type:1}},IL=function(t,A){var e=Gt(180),n=[],r=1,i=0,s=3,a=[];return vn(A).forEach(function(c,u){var f=c[0];if(u===0){if(zA(f)&&f.value==="linear"){r=1;return}else if(zA(f)&&f.value==="radial"){r=2;return}}if(f.type===18){if(f.name==="from"){var h=Ir.parse(t,f.values[0]);n.push({stop:Ne,color:h})}else if(f.name==="to"){var h=Ir.parse(t,f.values[0]);n.push({stop:vr,color:h})}else if(f.name==="color-stop"){var g=f.values.filter(zi);if(g.length===2){var h=Ir.parse(t,g[1]),m=g[0];Yi(m)&&n.push({stop:{type:16,number:m.number*100,flags:m.flags},color:h})}}}}),r===1?{angle:(e+Gt(180))%Gt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},dw="closest-side",hw="farthest-side",pw="closest-corner",gw="farthest-corner",Bw="circle",mw="ellipse",ww="cover",Cw="contain",SL=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(h,g){if(u)if(zA(g))switch(g.value){case"center":return i.push(gf),h;case"top":case"left":return i.push(Ne),h;case"right":case"bottom":return i.push(vr),h}else(Ee(g)||br(g))&&i.push(g);else if(zA(g))switch(g.value){case Bw:return e=0,!1;case mw:return e=1,!1;case"at":return u=!0,!1;case dw:return n=0,!1;case ww:case hw:return n=1,!1;case Cw:case pw:return n=2,!1;case gw:return n=3,!1}else if(br(g)||Ee(g))return Array.isArray(n)||(n=[]),n.push(g),!1;return h},c)}if(c){var f=Ja(t,s);r.push(f)}}),{size:n,shape:e,stops:r,position:i,type:2}},Ya=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,h){if(zA(h))switch(h.value){case"center":return i.push(gf),!1;case"top":case"left":return i.push(Ne),!1;case"right":case"bottom":return i.push(vr),!1}else if(Ee(h)||br(h))return i.push(h),!1;return f},c):a===1&&(c=s.reduce(function(f,h){if(zA(h))switch(h.value){case Bw:return e=0,!1;case mw:return e=1,!1;case Cw:case dw:return n=0,!1;case hw:return n=1,!1;case pw:return n=2,!1;case ww:case gw:return n=3,!1}else if(br(h)||Ee(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return f},c)),c){var u=Ja(t,s);r.push(u)}}),{size:n,shape:e,stops:r,position:i,type:2}},TL=function(t){return t.type===1},_L=function(t){return t.type===2},mf={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=yw[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 xL(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!yw[t.name])}var yw={"linear-gradient":vL,"-moz-linear-gradient":Xa,"-ms-linear-gradient":Xa,"-o-linear-gradient":Xa,"-webkit-linear-gradient":Xa,"radial-gradient":SL,"-moz-radial-gradient":Ya,"-ms-radial-gradient":Ya,"-o-radial-gradient":Ya,"-webkit-radial-gradient":Ya,"-webkit-gradient":IL},OL={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)&&xL(n)}).map(function(n){return mf.parse(t,n)})}},LL={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(zA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},HL={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return vn(A).map(function(e){return e.filter(Ee)}).map(ew)}},ML={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(zA).map(function(n){return n.value}).join(" ")}).map(NL)}},NL=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}},qi;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(qi||(qi={}));var DL={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return vn(A).map(function(e){return e.filter(kL)})}},kL=function(t){return zA(t)||Ee(t)},za=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},RL=za("top"),KL=za("right"),PL=za("bottom"),VL=za("left"),qa=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return ew(e.filter(Ee))}}},GL=qa("top-left"),WL=qa("top-right"),$L=qa("bottom-right"),JL=qa("bottom-left"),Za=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}}},XL=Za("top"),YL=Za("right"),zL=Za("bottom"),qL=Za("left"),ja=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return oo(e)?e.number:0}}},ZL=ja("top"),jL=ja("right"),AH=ja("bottom"),eH=ja("left"),tH={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nH={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},rH={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(zA).reduce(function(e,n){return e|iH(n.value)},0)}},iH=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},sH={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}},oH={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}},Al;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Al||(Al={}));var aH={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return Al.STRICT;case"normal":default:return Al.NORMAL}}},lH={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ew=function(t,A){return zA(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:Ee(t)?ee(t,A):A},cH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:mf.parse(t,A)}},uH={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}}},wf={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}}},el=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},fH=el("top"),dH=el("right"),hH=el("bottom"),pH=el("left"),gH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(zA).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}})}},BH={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"}}},tl=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mH=tl("top"),wH=tl("right"),CH=tl("bottom"),yH=tl("left"),EH={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}}},QH={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}},FH={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&pf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:Gn.TRANSPARENT,offsetX:Ne,offsetY:Ne,blur:Ne},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=Ir.parse(t,s)}return n})}},UH={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}},bH={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=SH[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},vH=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},IH=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},SH={matrix:vH,matrix3d:IH},Qw={type:16,number:50,flags:to},TH=[Qw,Qw],_H={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(Ee);return e.length!==2?TH:[e[0],e[1]]}},xH={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}}},co;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(co||(co={}));for(var OH={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return co.BREAK_ALL;case"keep-all":return co.KEEP_ALL;case"normal":default:return co.NORMAL}}},LH={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Yi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Fw={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")}},HH={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Yi(A)?A.number:1}},MH={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},NH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(zA).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})}},DH={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+"'"})}},kH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},RH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Yi(A))return A.number;if(zA(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},KH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(zA).map(function(e){return e.value})}},PH={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"}}},Ue=function(t,A){return(t&A)!==0},VH={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}},GH={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(Aw),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&Yi(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},WH={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],n=A.filter(Aw),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(zA(i)&&i.value!=="none"){var a=s&&Yi(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},$H={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(oo).map(function(e){return Fw.parse(t,e)})}},JH={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(wL);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}},Uw=function(t,A,e){if(!t)return"";var n=t[Math.min(A,t.length-1)];return n?e?n.open:n.close:""},XH={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&pf(A[0],"none")?[]:vn(A).map(function(e){for(var n={color:255,offsetX:Ne,offsetY:Ne,blur:Ne,spread:Ne,inset:!1},r=0,i=0;i<e.length;i++){var s=e[i];pf(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=Ir.parse(t,s)}return n})}},YH={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],n=[];return A.filter(zA).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}},zH={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},qH={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return oo(A)?A.number:0}},ZH=function(){function t(A,e){var n,r;this.animationDuration=AA(A,$H,e.animationDuration),this.backgroundClip=AA(A,EL,e.backgroundClip),this.backgroundColor=AA(A,QL,e.backgroundColor),this.backgroundImage=AA(A,OL,e.backgroundImage),this.backgroundOrigin=AA(A,LL,e.backgroundOrigin),this.backgroundPosition=AA(A,HL,e.backgroundPosition),this.backgroundRepeat=AA(A,ML,e.backgroundRepeat),this.backgroundSize=AA(A,DL,e.backgroundSize),this.borderTopColor=AA(A,RL,e.borderTopColor),this.borderRightColor=AA(A,KL,e.borderRightColor),this.borderBottomColor=AA(A,PL,e.borderBottomColor),this.borderLeftColor=AA(A,VL,e.borderLeftColor),this.borderTopLeftRadius=AA(A,GL,e.borderTopLeftRadius),this.borderTopRightRadius=AA(A,WL,e.borderTopRightRadius),this.borderBottomRightRadius=AA(A,$L,e.borderBottomRightRadius),this.borderBottomLeftRadius=AA(A,JL,e.borderBottomLeftRadius),this.borderTopStyle=AA(A,XL,e.borderTopStyle),this.borderRightStyle=AA(A,YL,e.borderRightStyle),this.borderBottomStyle=AA(A,zL,e.borderBottomStyle),this.borderLeftStyle=AA(A,qL,e.borderLeftStyle),this.borderTopWidth=AA(A,ZL,e.borderTopWidth),this.borderRightWidth=AA(A,jL,e.borderRightWidth),this.borderBottomWidth=AA(A,AH,e.borderBottomWidth),this.borderLeftWidth=AA(A,eH,e.borderLeftWidth),this.boxShadow=AA(A,XH,e.boxShadow),this.color=AA(A,tH,e.color),this.direction=AA(A,nH,e.direction),this.display=AA(A,rH,e.display),this.float=AA(A,sH,e.cssFloat),this.fontFamily=AA(A,DH,e.fontFamily),this.fontSize=AA(A,kH,e.fontSize),this.fontStyle=AA(A,PH,e.fontStyle),this.fontVariant=AA(A,KH,e.fontVariant),this.fontWeight=AA(A,RH,e.fontWeight),this.letterSpacing=AA(A,oH,e.letterSpacing),this.lineBreak=AA(A,aH,e.lineBreak),this.lineHeight=AA(A,lH,e.lineHeight),this.listStyleImage=AA(A,cH,e.listStyleImage),this.listStylePosition=AA(A,uH,e.listStylePosition),this.listStyleType=AA(A,wf,e.listStyleType),this.marginTop=AA(A,fH,e.marginTop),this.marginRight=AA(A,dH,e.marginRight),this.marginBottom=AA(A,hH,e.marginBottom),this.marginLeft=AA(A,pH,e.marginLeft),this.opacity=AA(A,HH,e.opacity);var i=AA(A,gH,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=AA(A,BH,e.overflowWrap),this.paddingTop=AA(A,mH,e.paddingTop),this.paddingRight=AA(A,wH,e.paddingRight),this.paddingBottom=AA(A,CH,e.paddingBottom),this.paddingLeft=AA(A,yH,e.paddingLeft),this.paintOrder=AA(A,YH,e.paintOrder),this.position=AA(A,QH,e.position),this.textAlign=AA(A,EH,e.textAlign),this.textDecorationColor=AA(A,MH,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=AA(A,NH,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=AA(A,FH,e.textShadow),this.textTransform=AA(A,UH,e.textTransform),this.transform=AA(A,bH,e.transform),this.transformOrigin=AA(A,_H,e.transformOrigin),this.visibility=AA(A,xH,e.visibility),this.webkitTextStrokeColor=AA(A,zH,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=AA(A,qH,e.webkitTextStrokeWidth),this.wordBreak=AA(A,OH,e.wordBreak),this.zIndex=AA(A,LH,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Sr(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 Ue(this.display,4)||Ue(this.display,33554432)||Ue(this.display,268435456)||Ue(this.display,536870912)||Ue(this.display,67108864)||Ue(this.display,134217728)},t}(),jH=function(){function t(A,e){this.content=AA(A,VH,e.content),this.quotes=AA(A,JH,e.quotes)}return t}(),bw=function(){function t(A,e){this.counterIncrement=AA(A,GH,e.counterIncrement),this.counterReset=AA(A,WH,e.counterReset)}return t}(),AA=function(t,A,e){var n=new Zm,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;n.write(r);var i=new jm(n.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,zA(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 $a.parse(t,i.parseComponentValue());case"color":return Ir.parse(t,i.parseComponentValue());case"image":return mf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return br(a)?a:Ne;case"length-percentage":var c=i.parseComponentValue();return Ee(c)?c:Ne;case"time":return Fw.parse(t,i.parseComponentValue())}break}},AM="data-html2canvas-debug",eM=function(t){var A=t.getAttribute(AM);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Cf=function(t,A){var e=eM(t);return e===1||A===e},In=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Cf(e,3))debugger;this.styles=new ZH(A,window.getComputedStyle(e,null)),Lf(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=ba(this.context,e),Cf(e,4)&&(this.flags|=16)}return t}(),tM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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AOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",vw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo=typeof Uint8Array>"u"?[]:new Uint8Array(256),nl=0;nl<vw.length;nl++)uo[vw.charCodeAt(nl)]=nl;for(var nM=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=uo[t.charCodeAt(n)],s=uo[t.charCodeAt(n+1)],a=uo[t.charCodeAt(n+2)],c=uo[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},rM=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},iM=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,yf=6+5,Ef=2,sM=yf-ci,Iw=65536>>ci,oM=1<<ci,Qf=oM-1,aM=1024>>ci,lM=Iw+aM,cM=lM,uM=32,fM=cM+uM,dM=65536>>yf,hM=1<<sM,pM=hM-1,Sw=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},gM=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},BM=function(t,A){var e=nM(t),n=Array.isArray(e)?iM(e):new Uint32Array(e),r=Array.isArray(e)?rM(e):new Uint16Array(e),i=24,s=Sw(r,i/2,n[4]/2),a=n[5]===2?Sw(r,(i+n[4])/2):gM(n,Math.ceil((i+n[4])/4));return new mM(n[0],n[1],n[2],n[3],s,a)},mM=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&Qf),this.data[e];if(A<=65535)return e=this.index[Iw+(A-55296>>ci)],e=(e<<Ef)+(A&Qf),this.data[e];if(A<this.highStart)return e=fM-dM+(A>>yf),e=this.index[e],e+=A>>ci&pM,e=this.index[e],e=(e<<Ef)+(A&Qf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wM=typeof Uint8Array>"u"?[]:new Uint8Array(256),rl=0;rl<Tw.length;rl++)wM[Tw.charCodeAt(rl)]=rl;var CM=1,Ff=2,Uf=3,_w=4,xw=5,yM=7,Ow=8,bf=9,vf=10,Lw=11,Hw=12,Mw=13,Nw=14,If=15,EM=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},QM=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},FM=BM(tM),Wt="×",Sf="÷",UM=function(t){return FM.get(t)},bM=function(t,A,e){var n=e-2,r=A[n],i=A[e-1],s=A[e];if(i===Ff&&s===Uf)return Wt;if(i===Ff||i===Uf||i===_w||s===Ff||s===Uf||s===_w)return Sf;if(i===Ow&&[Ow,bf,Lw,Hw].indexOf(s)!==-1||(i===Lw||i===bf)&&(s===bf||s===vf)||(i===Hw||i===vf)&&s===vf||s===Mw||s===xw||s===yM||i===CM)return Wt;if(i===Mw&&s===Nw){for(;r===xw;)r=A[--n];if(r===Nw)return Wt}if(i===If&&s===If){for(var a=0;r===If;)a++,r=A[--n];if(a%2===0)return Wt}return Sf},vM=function(t){var A=EM(t),e=A.length,n=0,r=0,i=A.map(UM);return{next:function(){if(n>=e)return{done:!0,value:null};for(var s=Wt;n<e&&(s=bM(A,i,++n))===Wt;);if(s!==Wt||n===e){var a=QM.apply(null,A.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},IM=function(t){for(var A=vM(t),e=[],n;!(n=A.next()).done;)n.value&&e.push(n.value.slice());return e},SM=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},TM=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"?"👨".repeat(10):"";var n=A.firstChild,r=va(n.data).map(function(c){return pe(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 h=f.x>s.x||f.y>s.y;return s=f,u===0?!0:h});return t.body.removeChild(A),a},_M=function(){return typeof new Image().crossOrigin<"u"},xM=function(){return typeof new XMLHttpRequest().responseType=="string"},OM=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},Dw=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},LM=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=Tf(e,e,0,0,r);return n.fillStyle="red",n.fillRect(0,0,e,e),kw(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",Dw(c)?kw(Tf(e,e,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),Dw(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Tf=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},kw=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))})},De={get SUPPORT_RANGE_BOUNDS(){var t=SM(document);return Object.defineProperty(De,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=De.SUPPORT_RANGE_BOUNDS&&TM(document);return Object.defineProperty(De,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=OM(document);return Object.defineProperty(De,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?LM(document):Promise.resolve(!1);return Object.defineProperty(De,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=_M();return Object.defineProperty(De,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=xM();return Object.defineProperty(De,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(De,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(De,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},fo=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),HM=function(t,A,e,n){var r=DM(A,e),i=[],s=0;return r.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(De.SUPPORT_RANGE_BOUNDS){var c=Rw(n,s,a.length).getClientRects();if(c.length>1){var u=_f(a),f=0;u.forEach(function(g){i.push(new fo(g,Pn.fromDOMRectList(t,Rw(n,f+s,g.length).getClientRects()))),f+=g.length})}else i.push(new fo(a,Pn.fromDOMRectList(t,c)))}else{var h=n.splitText(a.length);i.push(new fo(a,MM(t,n))),n=h}else De.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},MM=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=ba(t,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return Pn.EMPTY},Rw=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},_f=function(t){if(De.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 IM(t)},NM=function(t,A){if(De.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 RM(t,A)},DM=function(t,A){return A.letterSpacing!==0?_f(t):NM(t,A)},kM=[32,160,4961,65792,65793,4153,4241],RM=function(t,A){for(var e=dO(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=va(s),c="";a.forEach(function(u){kM.indexOf(u)===-1?c+=pe(u):(c.length&&n.push(c),n.push(pe(u)),c="")}),c.length&&n.push(c)}};!(r=e.next()).done;)i();return n},KM=function(){function t(A,e,n){this.text=PM(e.data,n.textTransform),this.textBounds=HM(A,this.text,n,e)}return t}(),PM=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(VM,GM);case 2:return t.toUpperCase();default:return t}},VM=/(^|\s|:|-|\(|\))([a-z])/g,GM=function(t,A,e){return t.length>0?A+e.toUpperCase():t},Kw=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),Pw=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),Vw=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,s=ba(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),Gw=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),xf=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),WM=[{type:15,flags:0,unit:"px",number:3}],$M=[{type:16,flags:0,number:50}],JM=function(t){return t.width>t.height?new Pn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Pn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},XM=function(t){var A=t.type===YM?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},il="checkbox",sl="radio",YM="password",Ww=707406591,Of=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=XM(n),(r.type===il||r.type===sl)&&(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=JM(r.bounds)),r.type){case il:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=WM;break;case sl:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=$M;break}return r}return A}(In),$w=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),Jw=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),Xw=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=zw(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?lo(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Gn.TRANSPARENT,s=n.contentWindow.document.body?lo(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Gn.TRANSPARENT;r.backgroundColor=Sr(i)?Sr(s)?r.styles.backgroundColor:s:i}}catch{}return r}return A}(In),zM=["OL","UL","MENU"],ol=function(t,A,e,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,qw(r)&&r.data.trim().length>0)e.textNodes.push(new KM(t,r,e.styles));else if(Zi(r))if(nC(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return ol(t,a,e,n)});else{var s=Yw(t,r);s.styles.isVisible()&&(qM(r,s,n)?s.flags|=4:ZM(s.styles)&&(s.flags|=2),zM.indexOf(r.tagName)!==-1&&(s.flags|=8),e.elements.push(s),r.slot,r.shadowRoot?ol(t,r.shadowRoot,s,n):!ll(r)&&!Zw(r)&&!cl(r)&&ol(t,r,s,n))}},Yw=function(t,A){return Mf(A)?new Kw(t,A):jw(A)?new Pw(t,A):Zw(A)?new Vw(t,A):jM(A)?new Gw(t,A):AN(A)?new xf(t,A):eN(A)?new Of(t,A):cl(A)?new $w(t,A):ll(A)?new Jw(t,A):eC(A)?new Xw(t,A):new In(t,A)},zw=function(t,A){var e=Yw(t,A);return e.flags|=4,ol(t,A,e,e),e},qM=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Hf(t)&&e.styles.isTransparent()},ZM=function(t){return t.isPositioned()||t.isFloating()},qw=function(t){return t.nodeType===Node.TEXT_NODE},Zi=function(t){return t.nodeType===Node.ELEMENT_NODE},Lf=function(t){return Zi(t)&&typeof t.style<"u"&&!al(t)},al=function(t){return typeof t.className=="object"},jM=function(t){return t.tagName==="LI"},AN=function(t){return t.tagName==="OL"},eN=function(t){return t.tagName==="INPUT"},tN=function(t){return t.tagName==="HTML"},Zw=function(t){return t.tagName==="svg"},Hf=function(t){return t.tagName==="BODY"},jw=function(t){return t.tagName==="CANVAS"},AC=function(t){return t.tagName==="VIDEO"},Mf=function(t){return t.tagName==="IMG"},eC=function(t){return t.tagName==="IFRAME"},tC=function(t){return t.tagName==="STYLE"},nN=function(t){return t.tagName==="SCRIPT"},ll=function(t){return t.tagName==="TEXTAREA"},cl=function(t){return t.tagName==="SELECT"},nC=function(t){return t.tagName==="SLOT"},rC=function(t){return t.tagName.indexOf("-")>0},rN=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}(),iC={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"]},sC={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},iN={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},sN={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ji=function(t,A,e,n,r,i){return t<A||t>e?po(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},oC=function(t,A,e,n){var r="";do e||t--,r=n(t)+r,t/=A;while(t*A>=A);return r},ge=function(t,A,e,n,r){var i=e-A+1;return(t<0?"-":"")+(oC(Math.abs(t),i,n,function(s){return pe(Math.floor(s%i)+A)})+r)},ui=function(t,A,e){e===void 0&&(e=". ");var n=A.length;return oC(Math.abs(t),n,!1,function(r){return A[Math.floor(r%n)]})+e},As=1,_r=2,xr=4,ho=8,Wn=function(t,A,e,n,r,i){if(t<-9999||t>9999)return po(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&&Ue(i,As)&&a!==""?a=A[u]+a:u>1||u===1&&c===0||u===1&&c===1&&Ue(i,_r)||u===1&&c===1&&Ue(i,xr)&&t>100||u===1&&c>1&&Ue(i,ho)?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},aC="十百千萬",lC="拾佰仟萬",cC="マイナス",Nf="마이너스",po=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=ge(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return ui(t,"〇一二三四五六七八九",r);case 6:return ji(t,1,3999,iC,3,n).toLowerCase();case 7:return ji(t,1,3999,iC,3,n);case 8:return ge(t,945,969,!1,n);case 9:return ge(t,97,122,!1,n);case 10:return ge(t,65,90,!1,n);case 11:return ge(t,1632,1641,!0,n);case 12:case 49:return ji(t,1,9999,sC,3,n);case 35:return ji(t,1,9999,sC,3,n).toLowerCase();case 13:return ge(t,2534,2543,!0,n);case 14:case 30:return ge(t,6112,6121,!0,n);case 15:return ui(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return ui(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Wn(t,"零一二三四五六七八九",aC,"負",r,_r|xr|ho);case 47:return Wn(t,"零壹貳參肆伍陸柒捌玖",lC,"負",r,As|_r|xr|ho);case 42:return Wn(t,"零一二三四五六七八九",aC,"负",r,_r|xr|ho);case 41:return Wn(t,"零壹贰叁肆伍陆柒捌玖",lC,"负",r,As|_r|xr|ho);case 26:return Wn(t,"〇一二三四五六七八九","十百千万",cC,r,0);case 25:return Wn(t,"零壱弐参四伍六七八九","拾百千万",cC,r,As|_r|xr);case 31:return Wn(t,"영일이삼사오육칠팔구","십백천만",Nf,i,As|_r|xr);case 33:return Wn(t,"零一二三四五六七八九","十百千萬",Nf,i,0);case 32:return Wn(t,"零壹貳參四五六七八九","拾百千",Nf,i,As|_r|xr);case 18:return ge(t,2406,2415,!0,n);case 20:return ji(t,1,19999,sN,3,n);case 21:return ge(t,2790,2799,!0,n);case 22:return ge(t,2662,2671,!0,n);case 22:return ji(t,1,10999,iN,3,n);case 23:return ui(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ui(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ge(t,3302,3311,!0,n);case 28:return ui(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return ui(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return ge(t,3792,3801,!0,n);case 37:return ge(t,6160,6169,!0,n);case 38:return ge(t,4160,4169,!0,n);case 39:return ge(t,2918,2927,!0,n);case 40:return ge(t,1776,1785,!0,n);case 43:return ge(t,3046,3055,!0,n);case 44:return ge(t,3174,3183,!0,n);case 45:return ge(t,3664,3673,!0,n);case 46:return ge(t,3872,3881,!0,n);case 3:default:return ge(t,48,57,!0,n)}},uC="data-html2canvas-ignore",fC=function(){function t(A,e,n){if(this.context=A,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new rN,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=oN(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=cN(r).then(function(){return at(n,void 0,void 0,function(){var f,h;return qe(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(hN),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,h=this.clonedReferenceElement,typeof h>"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,lN(c)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(c,h)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write(fN(document.doctype)+"<html></html>"),dN(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(A){if(Cf(A,2))debugger;if(jw(A))return this.createCanvasClone(A);if(AC(A))return this.createVideoClone(A);if(tC(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Mf(e)&&(Mf(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),rC(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Df(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){(!Zi(e)||!nN(e)&&!e.hasAttribute(uC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Zi(e)||!tC(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(Zi(i)&&nC(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(qw(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var n=A.ownerDocument.defaultView;if(n&&Zi(A)&&(Lf(A)||al(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&&Lf(r)&&(this.clonedReferenceElement=r),Hf(r)&&BN(r);var c=this.counters.parse(new bw(this.context,i)),u=this.resolvePseudoContent(A,r,s,go.BEFORE);rC(A)&&(e=!0),AC(A)||this.cloneChildNodes(A,r,e),u&&r.insertBefore(u,r.firstChild);var f=this.resolvePseudoContent(A,r,a,go.AFTER);return f&&r.appendChild(f),this.counters.pop(c),(i&&(this.options.copyStyles||al(A))&&!eC(A)||e)&&Df(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(ll(A)||cl(A))&&(ll(r)||cl(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 bw(this.context,n));var c=new jH(this.context,n),u=a.createElement("html2canvaspseudoelement");Df(n,u),c.content.forEach(function(h){if(h.type===0)u.appendChild(a.createTextNode(h.value));else if(h.type===22){var g=a.createElement("img");g.src=h.value,g.style.opacity="1",u.appendChild(g)}else if(h.type===18){if(h.name==="attr"){var m=h.values.filter(zA);m.length&&u.appendChild(a.createTextNode(A.getAttribute(m[0].value)||""))}else if(h.name==="counter"){var w=h.values.filter(zi),U=w[0],b=w[1];if(U&&zA(U)){var Q=i.counters.getCounterValue(U.value),I=b&&zA(b)?wf.parse(i.context,b.value):3;u.appendChild(a.createTextNode(po(Q,I,!1)))}}else if(h.name==="counters"){var M=h.values.filter(zi),U=M[0],E=M[1],b=M[2];if(U&&zA(U)){var N=i.counters.getCounterValues(U.value),T=b&&zA(b)?wf.parse(i.context,b.value):3,H=E&&E.type===0?E.value:"",Y=N.map(function(UA){return po(UA,T,!1)}).join(H);u.appendChild(a.createTextNode(Y))}}}else if(h.type===20)switch(h.value){case"open-quote":u.appendChild(a.createTextNode(Uw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Uw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(h.value))}}),u.className=kf+" "+Rf;var f=r===go.BEFORE?" "+kf:" "+Rf;return al(e)?e.className.baseValue+=f:e.className+=f,u}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),go;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(go||(go={}));var oN=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},aN=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},lN=function(t){return Promise.all([].slice.call(t.images,0).map(aN))},cN=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)}})},uN=["all","d","content"],Df=function(t,A){for(var e=t.length-1;e>=0;e--){var n=t.item(e);uN.indexOf(n)===-1&&A.style.setProperty(n,t.getPropertyValue(n))}return A},fN=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},dN=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},hN=function(t){var A=t[0],e=t[1],n=t[2];A.scrollLeft=e,A.scrollTop=n},pN=":before",gN=":after",kf="___html2canvas___pseudoelement_before",Rf="___html2canvas___pseudoelement_after",dC=`{
|
|
177
177
|
content: "" !important;
|
|
178
178
|
display: none !important;
|
|
179
|
-
}`,
|
|
180
|
-
.`+Rf+pN+dC)},BN=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},hC=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}(),mN=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)||(Pf(A)||EN(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 at(this,void 0,void 0,function(){var e,n,r,i,s=this;return qe(this,function(a){switch(a.label){case 0:return e=hC.isSameOrigin(A),n=!Kf(A)&&this._options.useCORS===!0&&De.SUPPORT_CORS_IMAGES&&!e,r=!Kf(A)&&!e&&!Pf(A)&&typeof this._options.proxy=="string"&&De.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Kf(A)&&!Pf(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,(QN(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=De.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(g){return s(g)},!1),h.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}(),wN=/^data:image\/svg\+xml/i,CN=/^data:image\/.*;base64,/i,yN=/^data:image\/.*/i,EN=function(t){return De.SUPPORT_SVG_DRAWING||!FN(t)},Kf=function(t){return yN.test(t)},QN=function(t){return CN.test(t)},Pf=function(t){return t.substr(0,4)==="blob"},FN=function(t){return t.substr(-3).toLowerCase()==="svg"||wN.test(t)},j=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}(),es=function(t,A,e){return new j(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},ul=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=es(this.start,this.startControl,A),r=es(this.startControl,this.endControl,A),i=es(this.endControl,this.end,A),s=es(n,r,A),a=es(r,i,A),c=es(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}(),$t=function(t){return t.type===1},UN=function(){function t(A){var e=A.styles,n=A.bounds,r=ao(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=ao(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=ao(e.borderBottomRightRadius,n.width,n.height),h=f[0],g=f[1],m=ao(e.borderBottomLeftRadius,n.width,n.height),w=m[0],U=m[1],b=[];b.push((i+c)/n.width),b.push((w+h)/n.width),b.push((s+U)/n.height),b.push((u+g)/n.height);var F=Math.max.apply(Math,b);F>1&&(i/=F,s/=F,c/=F,u/=F,h/=F,g/=F,w/=F,U/=F);var I=n.width-c,M=n.height-g,E=n.width-h,N=n.height-U,T=e.borderTopWidth,H=e.borderRightWidth,Y=e.borderBottomWidth,V=e.borderLeftWidth,z=qA(e.paddingTop,A.bounds.width),lA=qA(e.paddingRight,A.bounds.width),uA=qA(e.paddingBottom,A.bounds.width),aA=qA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ne(n.left+V/3,n.top+T/3,i-V/3,s-T/3,PA.TOP_LEFT):new j(n.left+V/3,n.top+T/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ne(n.left+I,n.top+T/3,c-H/3,u-T/3,PA.TOP_RIGHT):new j(n.left+n.width-H/3,n.top+T/3),this.bottomRightBorderDoubleOuterBox=h>0||g>0?ne(n.left+E,n.top+M,h-H/3,g-Y/3,PA.BOTTOM_RIGHT):new j(n.left+n.width-H/3,n.top+n.height-Y/3),this.bottomLeftBorderDoubleOuterBox=w>0||U>0?ne(n.left+V/3,n.top+N,w-V/3,U-Y/3,PA.BOTTOM_LEFT):new j(n.left+V/3,n.top+n.height-Y/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ne(n.left+V*2/3,n.top+T*2/3,i-V*2/3,s-T*2/3,PA.TOP_LEFT):new j(n.left+V*2/3,n.top+T*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ne(n.left+I,n.top+T*2/3,c-H*2/3,u-T*2/3,PA.TOP_RIGHT):new j(n.left+n.width-H*2/3,n.top+T*2/3),this.bottomRightBorderDoubleInnerBox=h>0||g>0?ne(n.left+E,n.top+M,h-H*2/3,g-Y*2/3,PA.BOTTOM_RIGHT):new j(n.left+n.width-H*2/3,n.top+n.height-Y*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||U>0?ne(n.left+V*2/3,n.top+N,w-V*2/3,U-Y*2/3,PA.BOTTOM_LEFT):new j(n.left+V*2/3,n.top+n.height-Y*2/3),this.topLeftBorderStroke=i>0||s>0?ne(n.left+V/2,n.top+T/2,i-V/2,s-T/2,PA.TOP_LEFT):new j(n.left+V/2,n.top+T/2),this.topRightBorderStroke=i>0||s>0?ne(n.left+I,n.top+T/2,c-H/2,u-T/2,PA.TOP_RIGHT):new j(n.left+n.width-H/2,n.top+T/2),this.bottomRightBorderStroke=h>0||g>0?ne(n.left+E,n.top+M,h-H/2,g-Y/2,PA.BOTTOM_RIGHT):new j(n.left+n.width-H/2,n.top+n.height-Y/2),this.bottomLeftBorderStroke=w>0||U>0?ne(n.left+V/2,n.top+N,w-V/2,U-Y/2,PA.BOTTOM_LEFT):new j(n.left+V/2,n.top+n.height-Y/2),this.topLeftBorderBox=i>0||s>0?ne(n.left,n.top,i,s,PA.TOP_LEFT):new j(n.left,n.top),this.topRightBorderBox=c>0||u>0?ne(n.left+I,n.top,c,u,PA.TOP_RIGHT):new j(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||g>0?ne(n.left+E,n.top+M,h,g,PA.BOTTOM_RIGHT):new j(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||U>0?ne(n.left,n.top+N,w,U,PA.BOTTOM_LEFT):new j(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ne(n.left+V,n.top+T,Math.max(0,i-V),Math.max(0,s-T),PA.TOP_LEFT):new j(n.left+V,n.top+T),this.topRightPaddingBox=c>0||u>0?ne(n.left+Math.min(I,n.width-H),n.top+T,I>n.width+H?0:Math.max(0,c-H),Math.max(0,u-T),PA.TOP_RIGHT):new j(n.left+n.width-H,n.top+T),this.bottomRightPaddingBox=h>0||g>0?ne(n.left+Math.min(E,n.width-V),n.top+Math.min(M,n.height-Y),Math.max(0,h-H),Math.max(0,g-Y),PA.BOTTOM_RIGHT):new j(n.left+n.width-H,n.top+n.height-Y),this.bottomLeftPaddingBox=w>0||U>0?ne(n.left+V,n.top+Math.min(N,n.height-Y),Math.max(0,w-V),Math.max(0,U-Y),PA.BOTTOM_LEFT):new j(n.left+V,n.top+n.height-Y),this.topLeftContentBox=i>0||s>0?ne(n.left+V+aA,n.top+T+z,Math.max(0,i-(V+aA)),Math.max(0,s-(T+z)),PA.TOP_LEFT):new j(n.left+V+aA,n.top+T+z),this.topRightContentBox=c>0||u>0?ne(n.left+Math.min(I,n.width+V+aA),n.top+T+z,I>n.width+V+aA?0:c-V+aA,u-(T+z),PA.TOP_RIGHT):new j(n.left+n.width-(H+lA),n.top+T+z),this.bottomRightContentBox=h>0||g>0?ne(n.left+Math.min(E,n.width-(V+aA)),n.top+Math.min(M,n.height+T+z),Math.max(0,h-(H+lA)),g-(Y+uA),PA.BOTTOM_RIGHT):new j(n.left+n.width-(H+lA),n.top+n.height-(Y+uA)),this.bottomLeftContentBox=w>0||U>0?ne(n.left+V+aA,n.top+N,Math.max(0,w-(V+aA)),U-(Y+uA),PA.BOTTOM_LEFT):new j(n.left+V+aA,n.top+n.height-(Y+uA))}return t}(),PA;(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"})(PA||(PA={}));var ne=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 PA.TOP_LEFT:return new ul(new j(t,u),new j(t,u-a),new j(c-s,A),new j(c,A));case PA.TOP_RIGHT:return new ul(new j(t,A),new j(t+s,A),new j(c,u-a),new j(c,u));case PA.BOTTOM_RIGHT:return new ul(new j(c,A),new j(c,A+a),new j(t+s,u),new j(t,u));case PA.BOTTOM_LEFT:default:return new ul(new j(c,u),new j(c-s,u),new j(t,A+a),new j(t,A))}},fl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},bN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},dl=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},vN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),hl=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),IN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),SN=function(t){return t.type===0},pC=function(t){return t.type===1},TN=function(t){return t.type===2},gC=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},_N=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})},BC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),mC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new UN(this.container),this.container.styles.opacity<1&&this.effects.push(new IN(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 vN(n,r,i))}if(this.container.styles.overflowX!==0){var s=fl(this.curves),a=dl(this.curves);gC(s,a)?this.effects.push(new hl(s,6)):(this.effects.push(new hl(s,2)),this.effects.push(new hl(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!pC(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=fl(n.curves),a=dl(n.curves);gC(s,a)||r.unshift(new hl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Fe(c.target,A)})},t}(),Vf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Fe(r.flags,4),s=Fe(r.flags,2),a=new mC(r,t);Fe(r.styles.display,2048)&&n.push(a);var c=Fe(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new BC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var g=0;u.negativeZIndex.some(function(w,U){return h>w.element.container.styles.zIndex.order?(g=U,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(h>0){var m=0;u.positiveZIndex.some(function(w,U){return h>=w.element.container.styles.zIndex.order?(m=U+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Vf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Vf(a,A,e,c);Fe(r.flags,8)&&wC(r,c)})},wC=function(t,A){for(var e=t instanceof xf?t.start:1,n=t instanceof xf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof Gw&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=po(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},xN=function(t){var A=new mC(t,null),e=new BC(A),n=[];return Vf(A,e,e,n),wC(A.container,n),e},CC=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ON=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Jt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},LN=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},HN=function(t,A){switch(A){case 0:return pl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return pl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return pl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return pl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},pl=function(t,A){var e=[];return $t(t)?e.push(t.subdivide(.5,!1)):e.push(t),$t(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Jt=function(t,A,e,n){var r=[];return $t(t)?r.push(t.subdivide(.5,!1)):r.push(t),$t(e)?r.push(e.subdivide(.5,!0)):r.push(e),$t(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),$t(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},yC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},gl=function(t){var A=t.styles,e=t.bounds,n=qA(A.paddingLeft,e.width),r=qA(A.paddingRight,e.width),i=qA(A.paddingTop,e.width),s=qA(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?gl(A):yC(A)},NN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},Gf=function(t,A,e){var n=MN(ns(t.styles.backgroundOrigin,A),t),r=NN(ns(t.styles.backgroundClip,A),t),i=DN(ns(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=ao(ns(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=kN(ns(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[u,f,h,s,a]},ts=function(t){return XA(t)&&t.value===qi.AUTO},Bl=function(t){return typeof t=="number"},DN=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(me(s)&&a&&me(a))return[qA(s,e.width),qA(a,e.height)];var c=Bl(i);if(XA(s)&&(s.value===qi.CONTAIN||s.value===qi.COVER)){if(Bl(i)){var u=e.width/e.height;return u<i!=(s.value===qi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Bl(n),h=Bl(r),g=f||h;if(ts(s)&&(!a||ts(a))){if(f&&h)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=h?r:n/i;return[m,w]}var U=f?n:e.width,b=h?r:e.height;return[U,b]}if(c){var F=0,I=0;return me(s)?F=qA(s,e.width):me(a)&&(I=qA(a,e.height)),ts(s)?F=I*i:(!a||ts(a))&&(I=F/i),[F,I]}var M=null,E=null;if(me(s)?M=qA(s,e.width):a&&me(a)&&(E=qA(a,e.height)),M!==null&&(!a||ts(a))&&(E=f&&h?M/n*r:e.height),E!==null&&ts(s)&&(M=f&&h?E/r*n:e.width),M!==null&&E!==null)return[M,E];throw new Error("Unable to calculate background-size for element")},ns=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},kN=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 j(Math.round(n.left),Math.round(n.top+s)),new j(Math.round(n.left+n.width),Math.round(n.top+s)),new j(Math.round(n.left+n.width),Math.round(c+n.top+s)),new j(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new j(Math.round(n.left+i),Math.round(n.top)),new j(Math.round(n.left+i+a),Math.round(n.top)),new j(Math.round(n.left+i+a),Math.round(n.height+n.top)),new j(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new j(Math.round(n.left+i),Math.round(n.top+s)),new j(Math.round(n.left+i+a),Math.round(n.top+s)),new j(Math.round(n.left+i+a),Math.round(n.top+s+c)),new j(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new j(Math.round(r.left),Math.round(r.top)),new j(Math.round(r.left+r.width),Math.round(r.top)),new j(Math.round(r.left+r.width),Math.round(r.height+r.top)),new j(Math.round(r.left),Math.round(r.height+r.top))]}},RN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",EC="Hidden Text",KN=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=RN,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(EC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(EC)),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}(),QC=function(){function t(A,e){this.context=A,this.options=e}return t}(),PN=1e4,VN=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 KN(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(),TN(e)&&(this.ctx.globalAlpha=e.opacity),SN(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)),pC(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 at(this,void 0,void 0,function(){var n;return qe(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 at(this,void 0,void 0,function(){return qe(this,function(n){switch(n.label){case 0:if(Fe(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=_f(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=XN(e.fontFamily).join(", "),i=oo(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 at(this,void 0,void 0,function(){var r,i,s,a,c,u,f,h,g=this;return qe(this,function(m){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,h=n.paintOrder,e.textBounds.forEach(function(w){h.forEach(function(U){switch(U){case 0:g.ctx.fillStyle=xe(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(F){g.ctx.shadowColor=xe(F.color),g.ctx.shadowOffsetX=F.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=F.offsetY.number*g.options.scale,g.ctx.shadowBlur=F.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=xe(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(F){switch(F){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=xe(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=gl(e),s=dl(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 at(this,void 0,void 0,function(){var n,r,i,s,a,c,I,I,u,f,h,g,E,m,w,N,U,b,F,I,M,E,N;return qe(this,function(T){switch(T.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,T.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:T.sent(),T.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof Kw))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Pw&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Vw))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Xw&&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=T.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),T.label=14;case 14:if(n instanceof Of&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===il?n.checked&&(this.ctx.save(),this.path([new j(n.bounds.left+h*.39363,n.bounds.top+h*.79),new j(n.bounds.left+h*.16,n.bounds.top+h*.5549),new j(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new j(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new j(n.bounds.left+h*.72983,n.bounds.top+h*.23),new j(n.bounds.left+h*.84,n.bounds.top+h*.34085),new j(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore()):n.type===sl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore())),GN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=xe(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$N(n.styles.textAlign),N=gl(n),U=0,n.styles.textAlign){case 1:U+=N.width/2;break;case 2:U+=N.width;break}b=N.add(U,0,0,-N.height/2+1),this.ctx.save(),this.path([new j(N.left,N.top),new j(N.left+N.width,N.top),new j(N.left+N.width,N.top+N.height),new j(N.left,N.top+N.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new fo(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fe(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(F=n.styles.listStyleImage,F.type!==0)return[3,18];I=void 0,M=F.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return I=T.sent(),this.ctx.drawImage(I,n.bounds.left-(I.width+10),n.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+M),[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=xe(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",N=new Pn(n.bounds.left,n.bounds.top+qA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ew(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new fo(e.listValue,N),i.letterSpacing,Ew(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return at(this,void 0,void 0,function(){var n,r,F,i,s,F,a,c,F,u,f,F,h,g,F,m,w,F,U,b,F;return qe(this,function(I){switch(I.label){case 0:if(Fe(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:I.sent(),n=0,r=e.negativeZIndex,I.label=2;case 2:return n<r.length?(F=r[n],[4,this.renderStack(F)]):[3,5];case 3:I.sent(),I.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:I.sent(),i=0,s=e.nonInlineLevel,I.label=7;case 7:return i<s.length?(F=s[i],[4,this.renderNode(F)]):[3,10];case 8:I.sent(),I.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,I.label=11;case 11:return a<c.length?(F=c[a],[4,this.renderStack(F)]):[3,14];case 12:I.sent(),I.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,I.label=15;case 15:return u<f.length?(F=f[u],[4,this.renderStack(F)]):[3,18];case 16:I.sent(),I.label=17;case 17:return u++,[3,15];case 18:h=0,g=e.inlineLevel,I.label=19;case 19:return h<g.length?(F=g[h],[4,this.renderNode(F)]):[3,22];case 20:I.sent(),I.label=21;case 21:return h++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return m<w.length?(F=w[m],[4,this.renderStack(F)]):[3,26];case 24:I.sent(),I.label=25;case 25:return m++,[3,23];case 26:U=0,b=e.positiveZIndex,I.label=27;case 27:return U<b.length?(F=b[U],[4,this.renderStack(F)]):[3,30];case 28:I.sent(),I.label=29;case 29:return U++,[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=$t(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),$t(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 at(this,void 0,void 0,function(){var n,r,i,s,a,c;return qe(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var h,g,m,z,xA,CA,aA,LA,Y,w,z,xA,CA,aA,LA,U,b,F,I,M,E,N,T,H,Y,V,z,lA,uA,aA,LA,Ae,xA,CA,vA,re,RA,WA,we,Ce,Ue,ee;return qe(this,function(ye){switch(ye.label){case 0:if(f.type!==0)return[3,5];h=void 0,g=f.url,ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return h=ye.sent(),[3,4];case 3:return ye.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return h&&(m=Gf(e,n,[h.width,h.height,h.width/h.height]),z=m[0],xA=m[1],CA=m[2],aA=m[3],LA=m[4],Y=i.ctx.createPattern(i.resizeImage(h,aA,LA),"repeat"),i.renderRepeat(z,Y,xA,CA)),[3,6];case 5:SL(f)?(w=Gf(e,n,[null,null,null]),z=w[0],xA=w[1],CA=w[2],aA=w[3],LA=w[4],U=FL(f.angle,aA,LA),b=U[0],F=U[1],I=U[2],M=U[3],E=U[4],N=document.createElement("canvas"),N.width=aA,N.height=LA,T=N.getContext("2d"),H=T.createLinearGradient(F,M,I,E),uw(f.stops,b).forEach(function(lt){return H.addColorStop(lt.stop,xe(lt.color))}),T.fillStyle=H,T.fillRect(0,0,aA,LA),aA>0&&LA>0&&(Y=i.ctx.createPattern(N,"repeat"),i.renderRepeat(z,Y,xA,CA))):TL(f)&&(V=Gf(e,n,[null,null,null]),z=V[0],lA=V[1],uA=V[2],aA=V[3],LA=V[4],Ae=f.position.length===0?[gf]:f.position,xA=qA(Ae[0],aA),CA=qA(Ae[Ae.length-1],LA),vA=UL(f,xA,CA,aA,LA),re=vA[0],RA=vA[1],re>0&&RA>0&&(WA=i.ctx.createRadialGradient(lA+xA,uA+CA,0,lA+xA,uA+CA,re),uw(f.stops,re*2).forEach(function(lt){return WA.addColorStop(lt.stop,xe(lt.color))}),i.path(z),i.ctx.fillStyle=WA,re!==RA?(we=e.bounds.left+.5*e.bounds.width,Ce=e.bounds.top+.5*e.bounds.height,Ue=RA/re,ee=1/Ue,i.ctx.save(),i.ctx.translate(we,Ce),i.ctx.transform(1,0,0,Ue,0,0),i.ctx.translate(-we,-Ce),i.ctx.fillRect(lA,ee*(uA-Ce)+Ce,aA,LA*ee),i.ctx.restore()):i.ctx.fill())),ye.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 at(this,void 0,void 0,function(){return qe(this,function(i){return this.path(CC(r,n)),this.ctx.fillStyle=xe(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return at(this,void 0,void 0,function(){var s,a;return qe(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=ON(i,r),this.path(s),this.ctx.fillStyle=xe(e),this.ctx.fill(),a=LN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,h=this;return qe(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Sr(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=WN(ns(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Sr(n.backgroundColor)||(this.ctx.fillStyle=xe(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(m){h.ctx.save();var w=fl(e.curves),U=m.inset?0:PN,b=_N(w,-U+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(w),h.ctx.clip(),h.mask(b)):(h.mask(w),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=m.offsetX.number+U,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=xe(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?xe(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.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&&!Sr(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 at(this,void 0,void 0,function(){var a,c,u,f,h,g,m,w,U,b,F,I,M,E,N,T,N,T;return qe(this,function(H){return this.ctx.save(),a=HN(i,r),c=CC(i,r),s===2&&(this.path(c),this.ctx.clip()),$t(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),$t(c[1])?(h=c[1].end.x,g=c[1].end.y):(h=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-h):m=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,U=n<3?n*2:n,s===3&&(w=n,U=n),b=!0,m<=w*2?b=!1:m<=w*2+U?(F=m/(2*w+U),w*=F,U*=F):(I=Math.floor((m+U)/(w+U)),M=(m-I*w)/(I-1),E=(m-(I+1)*w)/I,U=E<=0||Math.abs(U-M)<Math.abs(U-E)?M:E),b&&(s===3?this.ctx.setLineDash([0,w+U]):this.ctx.setLineDash([w,U])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=xe(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&($t(c[0])&&(N=c[3],T=c[0],this.ctx.beginPath(),this.formatPath([new j(N.end.x,N.end.y),new j(T.start.x,T.start.y)]),this.ctx.stroke()),$t(c[1])&&(N=c[1],T=c[2],this.ctx.beginPath(),this.formatPath([new j(N.end.x,N.end.y),new j(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n;return qe(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=xN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(QC),GN=function(t){return t instanceof Jw||t instanceof $w?!0:t instanceof Of&&t.type!==sl&&t.type!==il},WN=function(t,A){switch(t){case 0:return fl(A);case 2:return bN(A);case 1:default:return dl(A)}},$N=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},JN=["-apple-system","system-ui"],XN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return JN.indexOf(A)===-1}):t},YN=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 at(this,void 0,void 0,function(){var n,r;return qe(this,function(i){switch(i.label){case 0:return n=Tf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,zN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xe(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}(QC),zN=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))})},qN=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,Ua([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,Ua([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,Ua([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,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),ZN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new qN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new mN(this,A)}return t.instanceCount=1,t}(),jN=function(t,A){return A===void 0&&(A={}),AD(t,A)};typeof window<"u"&&hC.setContext(window);var AD=function(t,A){return at(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,h,g,m,w,U,b,F,I,M,E,N,H,T,H,Y,V,z,lA,uA,aA,LA,Ae,xA,CA,vA,re,RA,WA,we,Ce,Ue;return qe(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:(Y=A.allowTaint)!==null&&Y!==void 0?Y:!1,imageTimeout:(V=A.imageTimeout)!==null&&V!==void 0?V:15e3,proxy:A.proxy,useCORS:(z=A.useCORS)!==null&&z!==void 0?z:!1},i=Xu({logging:(lA=A.logging)!==null&&lA!==void 0?lA:!0,cache:A.cache},r),s={windowWidth:(uA=A.windowWidth)!==null&&uA!==void 0?uA:n.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(Ae=A.scrollY)!==null&&Ae!==void 0?Ae:n.pageYOffset},a=new Pn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new ZN(i,a),u=(xA=A.foreignObjectRendering)!==null&&xA!==void 0?xA:!1,f={allowTaint:(CA=A.allowTaint)!==null&&CA!==void 0?CA:!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),h=new fC(c,t,f),g=h.clonedReferenceElement,g?[4,h.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=ee.sent(),w=Hf(g)||eN(g)?_x(g.ownerDocument):ba(c,g),U=w.width,b=w.height,F=w.left,I=w.top,M=eD(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:M,scale:(re=(vA=A.scale)!==null&&vA!==void 0?vA:n.devicePixelRatio)!==null&&re!==void 0?re:1,x:((RA=A.x)!==null&&RA!==void 0?RA:0)+F,y:((WA=A.y)!==null&&WA!==void 0?WA:0)+I,width:(we=A.width)!==null&&we!==void 0?we:Math.ceil(U),height:(Ce=A.height)!==null&&Ce!==void 0?Ce:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),H=new YN(c,E),[4,H.render(g)]):[3,3];case 2:return N=ee.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+F+","+I+" with size "+U+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),T=zw(c,g),M===T.styles.backgroundColor&&(T.styles.backgroundColor=Gn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),H=new VN(c,E),[4,H.render(T)];case 4:N=ee.sent(),ee.label=5;case 5:return(!((Ue=A.removeContainer)!==null&&Ue!==void 0)||Ue)&&(fC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,N]}})})},eD=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?lo(t,getComputedStyle(n.documentElement).backgroundColor):Gn.TRANSPARENT,i=n.body?lo(t,getComputedStyle(n.body).backgroundColor):Gn.TRANSPARENT,s=typeof e=="string"?lo(t,e):e===null?Gn.TRANSPARENT:4294967295;return A===n.documentElement?Sr(r)?Sr(i)?s:i:r:s};const tD=p.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref(),i=p.ref(""),s=p.ref();async function a(){if(r.value){const u=r.value,h=(await jN(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight})).toDataURL();if(n("update:modelValue",h),e.debug){const g=new Image;g.src=h,document.body.appendChild(g)}return h}return""}const c=dm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return p.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)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:p.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[p.renderSlot(u.$slots,"default")],6))}}),nD={class:"link-sharing"},rD={key:0,class:"link-sharing__links container"},iD={class:"row"},sD={key:0,class:"col-12 col-md-6"},oD=["href"],aD={class:"caption"},lD={key:1,class:"col-12 col-md-6"},cD=["href"],uD={class:"caption"},fD={key:2,class:"col-12 col-md-6"},dD={class:"caption"},hD={key:3,class:"col-12 col-md-6"},pD=["href"],gD={class:"caption"},BD={key:4,class:"col-12 col-md-6"},mD=["href"],wD={class:"caption"},CD={key:5,class:"col-12 col-md-6"},yD={class:"caption"},ED={key:6,class:"col-12 col-md-6"},QD=["href"],FD={class:"caption"},UD={key:1,class:"link-sharing__instructions pt-5"},bD={class:"row"},vD={class:"col-12 text-center py-0"},ID={class:"mb-5"},SD=t=>t.replace(/<(?:.|\n)*?>/gm,""),TD=p.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,x:!0}}},setup(t){const A=t,e=p.ref(!1),n=p.computed(()=>encodeURIComponent(A.url));p.computed(()=>encodeURIComponent(A.media));const r=p.computed(()=>SD(A.text)),i=p.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),document.execCommand("copy"),document.body.removeChild(a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",nD,[e.value?(p.openBlock(),p.createElementBlock("div",UD,[p.createElementVNode("div",bD,[p.createElementVNode("div",vD,[p.createElementVNode("div",ID,[p.createElementVNode("p",null,p.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),p.createElementVNode("p",null,[p.createElementVNode("strong",null,p.toDisplayString(t.hashtags),1)])])])])])):(p.openBlock(),p.createElementBlock("div",rD,[p.createElementVNode("div",iD,[t.services.facebook?(p.openBlock(),p.createElementBlock("div",sD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"facebook"}),p.createElementVNode("span",aD,p.toDisplayString(a.$t("sharing.facebook")),1)],8,oD)])):p.createCommentVNode("",!0),t.services.x?(p.openBlock(),p.createElementBlock("div",lD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"x-logo"}),p.createElementVNode("span",uD,p.toDisplayString(a.$t("sharing.x")),1)],8,cD)])):p.createCommentVNode("",!0),t.services.instagram?(p.openBlock(),p.createElementBlock("div",fD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=p.withModifiers(f=>e.value=!e.value,["prevent"])),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"instagram"}),p.createElementVNode("span",dD,p.toDisplayString(a.$t("sharing.instagram")),1)])])):p.createCommentVNode("",!0),t.services.linkedin?(p.openBlock(),p.createElementBlock("div",hD,[p.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"},[p.createVNode(u,{symbol:"linkedin"}),p.createElementVNode("span",gD,p.toDisplayString(a.$t("sharing.linkedin")),1)],8,pD)])):p.createCommentVNode("",!0),t.services.whatsapp&&i.value?(p.openBlock(),p.createElementBlock("div",BD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"whatsapp"}),p.createElementVNode("span",wD,p.toDisplayString(a.$t("sharing.whatsapp")),1)],8,mD)])):p.createCommentVNode("",!0),t.services.clipboard?(p.openBlock(),p.createElementBlock("div",CD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:p.withModifiers(s,["prevent","stop"]),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"copy"}),p.createElementVNode("span",yD,p.toDisplayString(a.$t("sharing.clipboard")),1)])])):p.createCommentVNode("",!0),t.services.mailto?(p.openBlock(),p.createElementBlock("div",ED,[p.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"},[p.createVNode(u,{symbol:"mail"}),p.createElementVNode("span",FD,p.toDisplayString(a.$t("sharing.mailto")),1)],8,QD)])):p.createCommentVNode("",!0)])]))])}}}),kG="",_D={class:"base-form"},xD=p.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)=>(p.openBlock(),p.createElementBlock("div",_D,[p.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:p.withModifiers(n,["prevent"])},[p.renderSlot(r.$slots,"default")],544)]))}}),RG="",OD={class:"modal-dialog__content"},LD={class:"modal-dialog__header d-flex p-2"},HD={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},MD={class:"modal-dialog__body"},ND={key:0,class:"modal-dialog__footer d-flex p-2"},DD=p.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=p.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.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"}),m=new Animation(g,document.timeline);m.play(),m.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 h(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return p.watch(()=>n.modelValue,(g,m)=>{g?s():a()}),p.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",h)}),p.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(p.openBlock(),p.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:p.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[p.createElementVNode("div",OD,[p.createElementVNode("div",LD,[t.title?(p.openBlock(),p.createElementBlock("h5",HD,p.toDisplayString(t.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{type:"button",class:"btn-close ms-auto","aria-label":"Close",onClick:a})]),p.createElementVNode("div",MD,[p.renderSlot(g.$slots,"default")]),t.footer?(p.openBlock(),p.createElementBlock("div",ND,[p.renderSlot(g.$slots,"footer"),p.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},p.toDisplayString(g.$t("common.close")),1)])):p.createCommentVNode("",!0)])],34))}}),KG="";NA.Accordion=yE,NA.AccordionItem=gE,NA.AssetUploader=dx,NA.BaseButton=QE,NA.BaseCamera=e_,NA.BaseCarousel=ym,NA.BaseForm=xD,NA.BaseHeadline=sE,NA.BaseInput=vE,NA.BaseParagraph=aE,NA.CheckGroup=kE,NA.DomRenderer=tD,NA.FileUpload=tx,NA.InputCheckbox=HE,NA.InputColor=v1,NA.InputDropdown=HT,NA.InputFile=ZE,NA.InputTextarea=_E,NA.LinkSharing=TD,NA.LoadingSpinner=iE,NA.MediaThumbnails=yx,NA.ModalDialog=DD,NA.ProgressSteps=Tx,NA.RadioGroup=GE,NA.RteEditor=Q1,NA.SvgIcon=jy,NA.UploadGroup=Cm,Object.defineProperty(NA,Symbol.toStringTag,{value:"Module"})});
|
|
179
|
+
}`,BN=function(t){mN(t,"."+kf+pN+dC+`
|
|
180
|
+
.`+Rf+gN+dC)},mN=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},hC=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}(),wN=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)||(Pf(A)||QN(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 at(this,void 0,void 0,function(){var e,n,r,i,s=this;return qe(this,function(a){switch(a.label){case 0:return e=hC.isSameOrigin(A),n=!Kf(A)&&this._options.useCORS===!0&&De.SUPPORT_CORS_IMAGES&&!e,r=!Kf(A)&&!e&&!Pf(A)&&typeof this._options.proxy=="string"&&De.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Kf(A)&&!Pf(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,(FN(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=De.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(g){return s(g)},!1),h.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}(),CN=/^data:image\/svg\+xml/i,yN=/^data:image\/.*;base64,/i,EN=/^data:image\/.*/i,QN=function(t){return De.SUPPORT_SVG_DRAWING||!UN(t)},Kf=function(t){return EN.test(t)},FN=function(t){return yN.test(t)},Pf=function(t){return t.substr(0,4)==="blob"},UN=function(t){return t.substr(-3).toLowerCase()==="svg"||CN.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}(),es=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},ul=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=es(this.start,this.startControl,A),r=es(this.startControl,this.endControl,A),i=es(this.endControl,this.end,A),s=es(n,r,A),a=es(r,i,A),c=es(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}(),$t=function(t){return t.type===1},bN=function(){function t(A){var e=A.styles,n=A.bounds,r=ao(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=ao(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=ao(e.borderBottomRightRadius,n.width,n.height),h=f[0],g=f[1],m=ao(e.borderBottomLeftRadius,n.width,n.height),w=m[0],U=m[1],b=[];b.push((i+c)/n.width),b.push((w+h)/n.width),b.push((s+U)/n.height),b.push((u+g)/n.height);var Q=Math.max.apply(Math,b);Q>1&&(i/=Q,s/=Q,c/=Q,u/=Q,h/=Q,g/=Q,w/=Q,U/=Q);var I=n.width-c,M=n.height-g,E=n.width-h,N=n.height-U,T=e.borderTopWidth,H=e.borderRightWidth,Y=e.borderBottomWidth,P=e.borderLeftWidth,oA=ee(e.paddingTop,A.bounds.width),UA=ee(e.paddingRight,A.bounds.width),hA=ee(e.paddingBottom,A.bounds.width),cA=ee(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?oe(n.left+P/3,n.top+T/3,i-P/3,s-T/3,GA.TOP_LEFT):new Z(n.left+P/3,n.top+T/3),this.topRightBorderDoubleOuterBox=i>0||s>0?oe(n.left+I,n.top+T/3,c-H/3,u-T/3,GA.TOP_RIGHT):new Z(n.left+n.width-H/3,n.top+T/3),this.bottomRightBorderDoubleOuterBox=h>0||g>0?oe(n.left+E,n.top+M,h-H/3,g-Y/3,GA.BOTTOM_RIGHT):new Z(n.left+n.width-H/3,n.top+n.height-Y/3),this.bottomLeftBorderDoubleOuterBox=w>0||U>0?oe(n.left+P/3,n.top+N,w-P/3,U-Y/3,GA.BOTTOM_LEFT):new Z(n.left+P/3,n.top+n.height-Y/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?oe(n.left+P*2/3,n.top+T*2/3,i-P*2/3,s-T*2/3,GA.TOP_LEFT):new Z(n.left+P*2/3,n.top+T*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?oe(n.left+I,n.top+T*2/3,c-H*2/3,u-T*2/3,GA.TOP_RIGHT):new Z(n.left+n.width-H*2/3,n.top+T*2/3),this.bottomRightBorderDoubleInnerBox=h>0||g>0?oe(n.left+E,n.top+M,h-H*2/3,g-Y*2/3,GA.BOTTOM_RIGHT):new Z(n.left+n.width-H*2/3,n.top+n.height-Y*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||U>0?oe(n.left+P*2/3,n.top+N,w-P*2/3,U-Y*2/3,GA.BOTTOM_LEFT):new Z(n.left+P*2/3,n.top+n.height-Y*2/3),this.topLeftBorderStroke=i>0||s>0?oe(n.left+P/2,n.top+T/2,i-P/2,s-T/2,GA.TOP_LEFT):new Z(n.left+P/2,n.top+T/2),this.topRightBorderStroke=i>0||s>0?oe(n.left+I,n.top+T/2,c-H/2,u-T/2,GA.TOP_RIGHT):new Z(n.left+n.width-H/2,n.top+T/2),this.bottomRightBorderStroke=h>0||g>0?oe(n.left+E,n.top+M,h-H/2,g-Y/2,GA.BOTTOM_RIGHT):new Z(n.left+n.width-H/2,n.top+n.height-Y/2),this.bottomLeftBorderStroke=w>0||U>0?oe(n.left+P/2,n.top+N,w-P/2,U-Y/2,GA.BOTTOM_LEFT):new Z(n.left+P/2,n.top+n.height-Y/2),this.topLeftBorderBox=i>0||s>0?oe(n.left,n.top,i,s,GA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?oe(n.left+I,n.top,c,u,GA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||g>0?oe(n.left+E,n.top+M,h,g,GA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||U>0?oe(n.left,n.top+N,w,U,GA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?oe(n.left+P,n.top+T,Math.max(0,i-P),Math.max(0,s-T),GA.TOP_LEFT):new Z(n.left+P,n.top+T),this.topRightPaddingBox=c>0||u>0?oe(n.left+Math.min(I,n.width-H),n.top+T,I>n.width+H?0:Math.max(0,c-H),Math.max(0,u-T),GA.TOP_RIGHT):new Z(n.left+n.width-H,n.top+T),this.bottomRightPaddingBox=h>0||g>0?oe(n.left+Math.min(E,n.width-P),n.top+Math.min(M,n.height-Y),Math.max(0,h-H),Math.max(0,g-Y),GA.BOTTOM_RIGHT):new Z(n.left+n.width-H,n.top+n.height-Y),this.bottomLeftPaddingBox=w>0||U>0?oe(n.left+P,n.top+Math.min(N,n.height-Y),Math.max(0,w-P),Math.max(0,U-Y),GA.BOTTOM_LEFT):new Z(n.left+P,n.top+n.height-Y),this.topLeftContentBox=i>0||s>0?oe(n.left+P+cA,n.top+T+oA,Math.max(0,i-(P+cA)),Math.max(0,s-(T+oA)),GA.TOP_LEFT):new Z(n.left+P+cA,n.top+T+oA),this.topRightContentBox=c>0||u>0?oe(n.left+Math.min(I,n.width+P+cA),n.top+T+oA,I>n.width+P+cA?0:c-P+cA,u-(T+oA),GA.TOP_RIGHT):new Z(n.left+n.width-(H+UA),n.top+T+oA),this.bottomRightContentBox=h>0||g>0?oe(n.left+Math.min(E,n.width-(P+cA)),n.top+Math.min(M,n.height+T+oA),Math.max(0,h-(H+UA)),g-(Y+hA),GA.BOTTOM_RIGHT):new Z(n.left+n.width-(H+UA),n.top+n.height-(Y+hA)),this.bottomLeftContentBox=w>0||U>0?oe(n.left+P+cA,n.top+N,Math.max(0,w-(P+cA)),U-(Y+hA),GA.BOTTOM_LEFT):new Z(n.left+P+cA,n.top+n.height-(Y+hA))}return t}(),GA;(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"})(GA||(GA={}));var oe=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 GA.TOP_LEFT:return new ul(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case GA.TOP_RIGHT:return new ul(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case GA.BOTTOM_RIGHT:return new ul(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case GA.BOTTOM_LEFT:default:return new ul(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},fl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},vN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},dl=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}(),hl=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}(),TN=function(t){return t.type===0},pC=function(t){return t.type===1},_N=function(t){return t.type===2},gC=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},xN=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})},BC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),mC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new bN(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=fl(this.curves),a=dl(this.curves);gC(s,a)?this.effects.push(new hl(s,6)):(this.effects.push(new hl(s,2)),this.effects.push(new hl(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!pC(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=fl(n.curves),a=dl(n.curves);gC(s,a)||r.unshift(new hl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Ue(c.target,A)})},t}(),Vf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Ue(r.flags,4),s=Ue(r.flags,2),a=new mC(r,t);Ue(r.styles.display,2048)&&n.push(a);var c=Ue(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new BC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var g=0;u.negativeZIndex.some(function(w,U){return h>w.element.container.styles.zIndex.order?(g=U,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(h>0){var m=0;u.positiveZIndex.some(function(w,U){return h>=w.element.container.styles.zIndex.order?(m=U+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Vf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Vf(a,A,e,c);Ue(r.flags,8)&&wC(r,c)})},wC=function(t,A){for(var e=t instanceof xf?t.start:1,n=t instanceof xf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof Gw&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=po(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},ON=function(t){var A=new mC(t,null),e=new BC(A),n=[];return Vf(A,e,e,n),wC(A.container,n),e},CC=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},LN=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Jt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},HN=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},MN=function(t,A){switch(A){case 0:return pl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return pl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return pl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return pl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},pl=function(t,A){var e=[];return $t(t)?e.push(t.subdivide(.5,!1)):e.push(t),$t(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Jt=function(t,A,e,n){var r=[];return $t(t)?r.push(t.subdivide(.5,!1)):r.push(t),$t(e)?r.push(e.subdivide(.5,!0)):r.push(e),$t(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),$t(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},yC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},gl=function(t){var A=t.styles,e=t.bounds,n=ee(A.paddingLeft,e.width),r=ee(A.paddingRight,e.width),i=ee(A.paddingTop,e.width),s=ee(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))},NN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},DN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},Gf=function(t,A,e){var n=NN(ns(t.styles.backgroundOrigin,A),t),r=DN(ns(t.styles.backgroundClip,A),t),i=kN(ns(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=ao(ns(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=RN(ns(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[u,f,h,s,a]},ts=function(t){return zA(t)&&t.value===qi.AUTO},Bl=function(t){return typeof t=="number"},kN=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(Ee(s)&&a&&Ee(a))return[ee(s,e.width),ee(a,e.height)];var c=Bl(i);if(zA(s)&&(s.value===qi.CONTAIN||s.value===qi.COVER)){if(Bl(i)){var u=e.width/e.height;return u<i!=(s.value===qi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Bl(n),h=Bl(r),g=f||h;if(ts(s)&&(!a||ts(a))){if(f&&h)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=h?r:n/i;return[m,w]}var U=f?n:e.width,b=h?r:e.height;return[U,b]}if(c){var Q=0,I=0;return Ee(s)?Q=ee(s,e.width):Ee(a)&&(I=ee(a,e.height)),ts(s)?Q=I*i:(!a||ts(a))&&(I=Q/i),[Q,I]}var M=null,E=null;if(Ee(s)?M=ee(s,e.width):a&&Ee(a)&&(E=ee(a,e.height)),M!==null&&(!a||ts(a))&&(E=f&&h?M/n*r:e.height),E!==null&&ts(s)&&(M=f&&h?E/r*n:e.width),M!==null&&E!==null)return[M,E];throw new Error("Unable to calculate background-size for element")},ns=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},RN=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))]}},KN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",EC="Hidden Text",PN=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=KN,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(EC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(EC)),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}(),QC=function(){function t(A,e){this.context=A,this.options=e}return t}(),VN=1e4,GN=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 PN(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(),_N(e)&&(this.ctx.globalAlpha=e.opacity),TN(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)),pC(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 at(this,void 0,void 0,function(){var n;return qe(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 at(this,void 0,void 0,function(){return qe(this,function(n){switch(n.label){case 0:if(Ue(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=_f(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=YN(e.fontFamily).join(", "),i=oo(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 at(this,void 0,void 0,function(){var r,i,s,a,c,u,f,h,g=this;return qe(this,function(m){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,h=n.paintOrder,e.textBounds.forEach(function(w){h.forEach(function(U){switch(U){case 0:g.ctx.fillStyle=xe(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(Q){g.ctx.shadowColor=xe(Q.color),g.ctx.shadowOffsetX=Q.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=Q.offsetY.number*g.options.scale,g.ctx.shadowBlur=Q.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=xe(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(Q){switch(Q){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=xe(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=gl(e),s=dl(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 at(this,void 0,void 0,function(){var n,r,i,s,a,c,I,I,u,f,h,g,E,m,w,N,U,b,Q,I,M,E,N;return qe(this,function(T){switch(T.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,T.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:T.sent(),T.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof Kw))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Pw&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Vw))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Xw&&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=T.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),T.label=14;case 14:if(n instanceof Of&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===il?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+h*.39363,n.bounds.top+h*.79),new Z(n.bounds.left+h*.16,n.bounds.top+h*.5549),new Z(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new Z(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new Z(n.bounds.left+h*.72983,n.bounds.top+h*.23),new Z(n.bounds.left+h*.84,n.bounds.top+h*.34085),new Z(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore()):n.type===sl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore())),WN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=xe(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=JN(n.styles.textAlign),N=gl(n),U=0,n.styles.textAlign){case 1:U+=N.width/2;break;case 2:U+=N.width;break}b=N.add(U,0,0,-N.height/2+1),this.ctx.save(),this.path([new Z(N.left,N.top),new Z(N.left+N.width,N.top),new Z(N.left+N.width,N.top+N.height),new Z(N.left,N.top+N.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new fo(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ue(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(Q=n.styles.listStyleImage,Q.type!==0)return[3,18];I=void 0,M=Q.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return I=T.sent(),this.ctx.drawImage(I,n.bounds.left-(I.width+10),n.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+M),[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=xe(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",N=new Pn(n.bounds.left,n.bounds.top+ee(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ew(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new fo(e.listValue,N),i.letterSpacing,Ew(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return at(this,void 0,void 0,function(){var n,r,Q,i,s,Q,a,c,Q,u,f,Q,h,g,Q,m,w,Q,U,b,Q;return qe(this,function(I){switch(I.label){case 0:if(Ue(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:I.sent(),n=0,r=e.negativeZIndex,I.label=2;case 2:return n<r.length?(Q=r[n],[4,this.renderStack(Q)]):[3,5];case 3:I.sent(),I.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:I.sent(),i=0,s=e.nonInlineLevel,I.label=7;case 7:return i<s.length?(Q=s[i],[4,this.renderNode(Q)]):[3,10];case 8:I.sent(),I.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,I.label=11;case 11:return a<c.length?(Q=c[a],[4,this.renderStack(Q)]):[3,14];case 12:I.sent(),I.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,I.label=15;case 15:return u<f.length?(Q=f[u],[4,this.renderStack(Q)]):[3,18];case 16:I.sent(),I.label=17;case 17:return u++,[3,15];case 18:h=0,g=e.inlineLevel,I.label=19;case 19:return h<g.length?(Q=g[h],[4,this.renderNode(Q)]):[3,22];case 20:I.sent(),I.label=21;case 21:return h++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return m<w.length?(Q=w[m],[4,this.renderStack(Q)]):[3,26];case 24:I.sent(),I.label=25;case 25:return m++,[3,23];case 26:U=0,b=e.positiveZIndex,I.label=27;case 27:return U<b.length?(Q=b[U],[4,this.renderStack(Q)]):[3,30];case 28:I.sent(),I.label=29;case 29:return U++,[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=$t(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),$t(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 at(this,void 0,void 0,function(){var n,r,i,s,a,c;return qe(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var h,g,m,oA,KA,nA,cA,IA,Y,w,oA,KA,nA,cA,IA,U,b,Q,I,M,E,N,T,H,Y,P,oA,UA,hA,cA,IA,ie,KA,nA,sA,jA,LA,DA,kA,WA,te,qA;return qe(this,function(de){switch(de.label){case 0:if(f.type!==0)return[3,5];h=void 0,g=f.url,de.label=1;case 1:return de.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return h=de.sent(),[3,4];case 3:return de.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return h&&(m=Gf(e,n,[h.width,h.height,h.width/h.height]),oA=m[0],KA=m[1],nA=m[2],cA=m[3],IA=m[4],Y=i.ctx.createPattern(i.resizeImage(h,cA,IA),"repeat"),i.renderRepeat(oA,Y,KA,nA)),[3,6];case 5:TL(f)?(w=Gf(e,n,[null,null,null]),oA=w[0],KA=w[1],nA=w[2],cA=w[3],IA=w[4],U=UL(f.angle,cA,IA),b=U[0],Q=U[1],I=U[2],M=U[3],E=U[4],N=document.createElement("canvas"),N.width=cA,N.height=IA,T=N.getContext("2d"),H=T.createLinearGradient(Q,M,I,E),uw(f.stops,b).forEach(function(lt){return H.addColorStop(lt.stop,xe(lt.color))}),T.fillStyle=H,T.fillRect(0,0,cA,IA),cA>0&&IA>0&&(Y=i.ctx.createPattern(N,"repeat"),i.renderRepeat(oA,Y,KA,nA))):_L(f)&&(P=Gf(e,n,[null,null,null]),oA=P[0],UA=P[1],hA=P[2],cA=P[3],IA=P[4],ie=f.position.length===0?[gf]:f.position,KA=ee(ie[0],cA),nA=ee(ie[ie.length-1],IA),sA=bL(f,KA,nA,cA,IA),jA=sA[0],LA=sA[1],jA>0&&LA>0&&(DA=i.ctx.createRadialGradient(UA+KA,hA+nA,0,UA+KA,hA+nA,jA),uw(f.stops,jA*2).forEach(function(lt){return DA.addColorStop(lt.stop,xe(lt.color))}),i.path(oA),i.ctx.fillStyle=DA,jA!==LA?(kA=e.bounds.left+.5*e.bounds.width,WA=e.bounds.top+.5*e.bounds.height,te=LA/jA,qA=1/te,i.ctx.save(),i.ctx.translate(kA,WA),i.ctx.transform(1,0,0,te,0,0),i.ctx.translate(-kA,-WA),i.ctx.fillRect(UA,qA*(hA-WA)+WA,cA,IA*qA),i.ctx.restore()):i.ctx.fill())),de.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 at(this,void 0,void 0,function(){return qe(this,function(i){return this.path(CC(r,n)),this.ctx.fillStyle=xe(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return at(this,void 0,void 0,function(){var s,a;return qe(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=LN(i,r),this.path(s),this.ctx.fillStyle=xe(e),this.ctx.fill(),a=HN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,h=this;return qe(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Sr(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=$N(ns(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Sr(n.backgroundColor)||(this.ctx.fillStyle=xe(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(m){h.ctx.save();var w=fl(e.curves),U=m.inset?0:VN,b=xN(w,-U+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(w),h.ctx.clip(),h.mask(b)):(h.mask(w),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=m.offsetX.number+U,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=xe(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?xe(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.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&&!Sr(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 at(this,void 0,void 0,function(){var a,c,u,f,h,g,m,w,U,b,Q,I,M,E,N,T,N,T;return qe(this,function(H){return this.ctx.save(),a=MN(i,r),c=CC(i,r),s===2&&(this.path(c),this.ctx.clip()),$t(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),$t(c[1])?(h=c[1].end.x,g=c[1].end.y):(h=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-h):m=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,U=n<3?n*2:n,s===3&&(w=n,U=n),b=!0,m<=w*2?b=!1:m<=w*2+U?(Q=m/(2*w+U),w*=Q,U*=Q):(I=Math.floor((m+U)/(w+U)),M=(m-I*w)/(I-1),E=(m-(I+1)*w)/I,U=E<=0||Math.abs(U-M)<Math.abs(U-E)?M:E),b&&(s===3?this.ctx.setLineDash([0,w+U]):this.ctx.setLineDash([w,U])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=xe(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&($t(c[0])&&(N=c[3],T=c[0],this.ctx.beginPath(),this.formatPath([new Z(N.end.x,N.end.y),new Z(T.start.x,T.start.y)]),this.ctx.stroke()),$t(c[1])&&(N=c[1],T=c[2],this.ctx.beginPath(),this.formatPath([new Z(N.end.x,N.end.y),new Z(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n;return qe(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=ON(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(QC),WN=function(t){return t instanceof Jw||t instanceof $w?!0:t instanceof Of&&t.type!==sl&&t.type!==il},$N=function(t,A){switch(t){case 0:return fl(A);case 2:return vN(A);case 1:default:return dl(A)}},JN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},XN=["-apple-system","system-ui"],YN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return XN.indexOf(A)===-1}):t},zN=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 at(this,void 0,void 0,function(){var n,r;return qe(this,function(i){switch(i.label){case 0:return n=Tf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,qN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xe(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}(QC),qN=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))})},ZN=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,Ua([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,Ua([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,Ua([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,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),jN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new ZN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new wN(this,A)}return t.instanceCount=1,t}(),AD=function(t,A){return A===void 0&&(A={}),eD(t,A)};typeof window<"u"&&hC.setContext(window);var eD=function(t,A){return at(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,h,g,m,w,U,b,Q,I,M,E,N,H,T,H,Y,P,oA,UA,hA,cA,IA,ie,KA,nA,sA,jA,LA,DA,kA,WA,te;return qe(this,function(qA){switch(qA.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:(Y=A.allowTaint)!==null&&Y!==void 0?Y:!1,imageTimeout:(P=A.imageTimeout)!==null&&P!==void 0?P:15e3,proxy:A.proxy,useCORS:(oA=A.useCORS)!==null&&oA!==void 0?oA:!1},i=Xu({logging:(UA=A.logging)!==null&&UA!==void 0?UA:!0,cache:A.cache},r),s={windowWidth:(hA=A.windowWidth)!==null&&hA!==void 0?hA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(IA=A.scrollX)!==null&&IA!==void 0?IA:n.pageXOffset,scrollY:(ie=A.scrollY)!==null&&ie!==void 0?ie:n.pageYOffset},a=new Pn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new jN(i,a),u=(KA=A.foreignObjectRendering)!==null&&KA!==void 0?KA:!1,f={allowTaint:(nA=A.allowTaint)!==null&&nA!==void 0?nA:!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),h=new fC(c,t,f),g=h.clonedReferenceElement,g?[4,h.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=qA.sent(),w=Hf(g)||tN(g)?xx(g.ownerDocument):ba(c,g),U=w.width,b=w.height,Q=w.left,I=w.top,M=tD(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:M,scale:(jA=(sA=A.scale)!==null&&sA!==void 0?sA:n.devicePixelRatio)!==null&&jA!==void 0?jA:1,x:((LA=A.x)!==null&&LA!==void 0?LA:0)+Q,y:((DA=A.y)!==null&&DA!==void 0?DA:0)+I,width:(kA=A.width)!==null&&kA!==void 0?kA:Math.ceil(U),height:(WA=A.height)!==null&&WA!==void 0?WA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),H=new zN(c,E),[4,H.render(g)]):[3,3];case 2:return N=qA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+Q+","+I+" with size "+U+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),T=zw(c,g),M===T.styles.backgroundColor&&(T.styles.backgroundColor=Gn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),H=new GN(c,E),[4,H.render(T)];case 4:N=qA.sent(),qA.label=5;case 5:return(!((te=A.removeContainer)!==null&&te!==void 0)||te)&&(fC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,N]}})})},tD=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?lo(t,getComputedStyle(n.documentElement).backgroundColor):Gn.TRANSPARENT,i=n.body?lo(t,getComputedStyle(n.body).backgroundColor):Gn.TRANSPARENT,s=typeof e=="string"?lo(t,e):e===null?Gn.TRANSPARENT:4294967295;return A===n.documentElement?Sr(r)?Sr(i)?s:i:r:s};const nD=p.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref(),i=p.ref(""),s=p.ref();async function a(){if(r.value){const u=r.value,h=(await AD(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight})).toDataURL();if(n("update:modelValue",h),e.debug){const g=new Image;g.src=h,document.body.appendChild(g)}return h}return""}const c=dm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return p.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)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:p.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[p.renderSlot(u.$slots,"default")],6))}}),rD={class:"link-sharing"},iD={key:0,class:"link-sharing__links container"},sD={class:"row"},oD={key:0,class:"col-12 col-md-6"},aD=["href"],lD={class:"caption"},cD={key:1,class:"col-12 col-md-6"},uD=["href"],fD={class:"caption"},dD={key:2,class:"col-12 col-md-6"},hD={class:"caption"},pD={key:3,class:"col-12 col-md-6"},gD=["href"],BD={class:"caption"},mD={key:4,class:"col-12 col-md-6"},wD=["href"],CD={class:"caption"},yD={key:5,class:"col-12 col-md-6"},ED={class:"caption"},QD={key:6,class:"col-12 col-md-6"},FD=["href"],UD={class:"caption"},bD={key:1,class:"link-sharing__instructions pt-5"},vD={class:"row"},ID={class:"col-12 text-center py-0"},SD={class:"mb-5"},TD=t=>t.replace(/<(?:.|\n)*?>/gm,""),_D=p.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,x:!0}}},setup(t){const A=t,e=p.ref(!1),n=p.computed(()=>encodeURIComponent(A.url));p.computed(()=>encodeURIComponent(A.media));const r=p.computed(()=>TD(A.text)),i=p.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),document.execCommand("copy"),document.body.removeChild(a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",rD,[e.value?(p.openBlock(),p.createElementBlock("div",bD,[p.createElementVNode("div",vD,[p.createElementVNode("div",ID,[p.createElementVNode("div",SD,[p.createElementVNode("p",null,p.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),p.createElementVNode("p",null,[p.createElementVNode("strong",null,p.toDisplayString(t.hashtags),1)])])])])])):(p.openBlock(),p.createElementBlock("div",iD,[p.createElementVNode("div",sD,[t.services.facebook?(p.openBlock(),p.createElementBlock("div",oD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"facebook"}),p.createElementVNode("span",lD,p.toDisplayString(a.$t("sharing.facebook")),1)],8,aD)])):p.createCommentVNode("",!0),t.services.x?(p.openBlock(),p.createElementBlock("div",cD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"x-logo"}),p.createElementVNode("span",fD,p.toDisplayString(a.$t("sharing.x")),1)],8,uD)])):p.createCommentVNode("",!0),t.services.instagram?(p.openBlock(),p.createElementBlock("div",dD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=p.withModifiers(f=>e.value=!e.value,["prevent"])),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"instagram"}),p.createElementVNode("span",hD,p.toDisplayString(a.$t("sharing.instagram")),1)])])):p.createCommentVNode("",!0),t.services.linkedin?(p.openBlock(),p.createElementBlock("div",pD,[p.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"},[p.createVNode(u,{symbol:"linkedin"}),p.createElementVNode("span",BD,p.toDisplayString(a.$t("sharing.linkedin")),1)],8,gD)])):p.createCommentVNode("",!0),t.services.whatsapp&&i.value?(p.openBlock(),p.createElementBlock("div",mD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"whatsapp"}),p.createElementVNode("span",CD,p.toDisplayString(a.$t("sharing.whatsapp")),1)],8,wD)])):p.createCommentVNode("",!0),t.services.clipboard?(p.openBlock(),p.createElementBlock("div",yD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:p.withModifiers(s,["prevent","stop"]),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"copy"}),p.createElementVNode("span",ED,p.toDisplayString(a.$t("sharing.clipboard")),1)])])):p.createCommentVNode("",!0),t.services.mailto?(p.openBlock(),p.createElementBlock("div",QD,[p.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"},[p.createVNode(u,{symbol:"mail"}),p.createElementVNode("span",UD,p.toDisplayString(a.$t("sharing.mailto")),1)],8,FD)])):p.createCommentVNode("",!0)])]))])}}}),RG="",xD={class:"base-form"},OD=p.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)=>(p.openBlock(),p.createElementBlock("div",xD,[p.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:p.withModifiers(n,["prevent"])},[p.renderSlot(r.$slots,"default")],544)]))}}),KG="",LD={class:"modal-dialog__content"},HD={class:"modal-dialog__header d-flex p-2"},MD={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},ND={class:"modal-dialog__body"},DD={key:0,class:"modal-dialog__footer d-flex p-2"},kD=p.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=p.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.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"}),m=new Animation(g,document.timeline);m.play(),m.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 h(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return p.watch(()=>n.modelValue,(g,m)=>{g?s():a()}),p.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",h)}),p.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(p.openBlock(),p.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:p.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[p.createElementVNode("div",LD,[p.createElementVNode("div",HD,[t.title?(p.openBlock(),p.createElementBlock("h5",MD,p.toDisplayString(t.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{type:"button",class:"btn-close ms-auto","aria-label":"Close",onClick:a})]),p.createElementVNode("div",ND,[p.renderSlot(g.$slots,"default")]),t.footer?(p.openBlock(),p.createElementBlock("div",DD,[p.renderSlot(g.$slots,"footer"),p.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},p.toDisplayString(g.$t("common.close")),1)])):p.createCommentVNode("",!0)])],34))}}),PG="";NA.Accordion=yE,NA.AccordionItem=gE,NA.AssetUploader=hx,NA.BaseButton=QE,NA.BaseCamera=t_,NA.BaseCarousel=ym,NA.BaseForm=OD,NA.BaseHeadline=sE,NA.BaseInput=vE,NA.BaseParagraph=aE,NA.CheckGroup=kE,NA.DomRenderer=nD,NA.FileUpload=nx,NA.InputCheckbox=HE,NA.InputColor=v1,NA.InputDropdown=HT,NA.InputFile=ZE,NA.InputTextarea=_E,NA.LinkSharing=_D,NA.LoadingSpinner=iE,NA.MediaThumbnails=Ex,NA.ModalDialog=kD,NA.ProgressSteps=_x,NA.RadioGroup=GE,NA.RteEditor=Q1,NA.SvgIcon=jy,NA.UploadGroup=Cm,Object.defineProperty(NA,Symbol.toStringTag,{value:"Module"})});
|