ablok-components 0.1.76 → 0.1.77
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.
- package/dist/ablok-components.es.js +3048 -3062
- package/dist/ablok-components.umd.js +27 -27
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(kA,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(kA=typeof globalThis<"u"?globalThis:kA||self,h(kA.AblokComponents={},kA.Vue,kA.core))})(this,function(kA,h,Xd){"use strict";const Iy={class:"icon",preserveAspectRatio:"xMaxYMin"},Sy=["xlink:href"],Ty=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",Iy,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,Sy)]))],2))}}),C2="",xy={class:"loading-spinner d-block"},Hy={class:"loading-spinner__animation"},_y={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"},Ly=["fill"],Oy=[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],ky=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",xy,[h.createElementVNode("span",Hy,[(h.openBlock(),h.createElementBlock("svg",_y,[h.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"},Oy,8,Ly)]))]),h.renderSlot(A.$slots,"default")]))}}),Q2="",My=h.defineComponent({__name:"base-headline",props:{tag:null,size:null,variant:null,text:null,className:null},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(e)),{class:h.normalizeClass(["headline",`${t.size} headline--${t.size}${t.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(t.text),1)])]),_:3},8,["class"]))}}),Dy=["innerHTML"],Ny=h.defineComponent({__name:"base-paragraph",props:{size:null,variant:null,text:null,className:null},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["base-paragraph",`${t.size} ${t.className||""}`])},[h.renderSlot(A.$slots,"default",{},()=>[h.createElementVNode("p",{innerHTML:t.text},null,8,Dy)])],2))}});function we(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const Ry={class:"accordion-item"},Ky=["id"],Vy=["data-bs-target","aria-controls"],Py={class:"flex-grow-1"},Gy=["id","aria-labelledby","data-bs-parent"],Wy={class:"accordion-body"},$y=["innerHTML"],Jy=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>we()},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;function n(){A("update:modelValue",!e.modelValue)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Ry,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:n},[h.renderSlot(r.$slots,"toggle",{},()=>[h.createElementVNode("span",Py,h.toDisplayString(t.title),1)])],10,Vy)],8,Ky),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",Wy,[h.renderSlot(r.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,$y)])])],10,Gy)]))}}),E2="",Xy=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},Yy={},zy={class:"accordion"};function qy(t,A){return h.openBlock(),h.createElementBlock("div",zy,[h.renderSlot(t.$slots,"default")])}const Zy=Xy(Yy,[["render",qy]]),jy=["type","disabled"],AQ=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=h.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(i,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),h.unref(e)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,jy)}}}),F2="",eQ={class:"input-group input__input-group"},tQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],nQ=["for","innerHTML"],rQ=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",eQ,[h.renderSlot(r.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),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:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,tQ),[[h.vModelDynamic,h.unref(n)]]),h.renderSlot(r.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,nQ)):h.createCommentVNode("",!0)])],2))}}),U2="",iQ={class:"input input--textarea"},sQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],oQ=["for","innerHTML"],aQ=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",iQ,[h.renderSlot(r.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,sQ),[[h.vModelText,h.unref(n)]]),h.renderSlot(r.$slots,"input-append"),h.renderSlot(r.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,oQ)])]))}}),lQ=["value","id","name","required","disabled","true-value","false-value"],cQ=["for","innerHTML"],uQ=h.createElementVNode("span",{class:"input__error"},"error",-1),fQ=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue||e.checked},set(r){A("update:checked",r),A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:i[1]||(i[1]=h.withModifiers(s=>r.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),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,lQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,cQ),uQ]))}}),b2=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
2
|
-
`,dQ={class:"check-group"},hQ=["id","name","value","disabled","read-only","required"],pQ=["for","innerHTML"],gQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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;h.ref([]);const n=h.computed({get(){return e.modelValue},set(i){A("update:modelValue",i)}}),r=h.computed(()=>e.options.map(i=>(i=typeof i=="string"?{text:i,value:i}:i,{...i,active:e.modelValue&&e.modelValue.includes(i.value)})));return(i,s)=>(h.openBlock(),h.createElementBlock("div",dQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(r),(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=u=>h.isRef(n)?n.value=u:null),id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,hQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:a.text},null,8,pQ)]))),128))]))}}),v2="",BQ={class:"input radio-group"},mQ=["id","name","value","checked","disabled","read-only","required","onChange"],wQ=["for","innerHTML"],CQ=["for"],yQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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;h.ref(e.options.map(r=>r.value===e.modelValue));function n(r){console.log("asdfa",r),A("update:modelValue",r)}return h.onBeforeMount(()=>{}),(r,i)=>(h.openBlock(),h.createElementBlock("div",BQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(s,a)=>(h.openBlock(),h.createElementBlock("div",{key:a,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${a}`,name:t.name,class:"form-check-input",value:s.value||s,checked:s.value?s.value===t.modelValue:s===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:c=>n(s)},null,40,mQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${a}`,innerHTML:t.label},null,8,wQ)]))),128)),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,CQ)):h.createCommentVNode("",!0)])]))}}),I2="",QQ=["id","name","multiple","accept","disabled"],EQ={class:"input__input-group input-group"},FQ=["value","id","name","disabled"],UQ=["for","disabled"],bQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),vQ=["for"],IQ=["innerHTML"],SQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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;function n(a){const c=a.target&&a.target.files;c&&(i.splice(0,i.length),Array.from(c).forEach(u=>{i.push(u)}))}const r=h.ref(),i=h.reactive([]),s=h.computed(()=>i&&i.map(a=>a.name));return h.computed(()=>i.map(a=>URL.createObjectURL(a))),h.watch(()=>e.modelValue,(a,c)=>{a.length===0&&(r.value.value=null)},{deep:!0}),h.watch(()=>i,(a,c)=>{A("update:modelValue",a)},{deep:!0}),(a,c)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:r,type:"file",id:t.id,name:t.name,class:"d-none",onChange:n,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,QQ),h.createElementVNode("div",EQ,[h.renderSlot(a.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:h.unref(s),id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,FQ),h.renderSlot(a.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(a.$slots,"button",{},()=>[bQ])],8,UQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(a.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,IQ)])],8,vQ)]))}});function He(t){this.content=t}He.prototype={constructor:He,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 He(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 He(e)},addToStart:function(t,A){return new He([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new He(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 He(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=He.from(t),t.size?new He(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=He.from(t),t.size?new He(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=He.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}},He.from=function(t){if(t instanceof He)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new He(A)};function Yd(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=Yd(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function zd(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,d=Math.min(s.text.length,a.text.length);for(;u<d&&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=zd(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class X{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 d=a+1;c.nodesBetween(Math.max(0,A-d),Math.min(c.content.size,e-d),n,r+d)}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 X(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 X(n,r)}cutByIndex(A,e){return A==e?X.empty:A==0&&e==this.content.length?this:new X(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 X(r,i)}addToStart(A){return new X([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new X(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 Yd(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return zd(this,A,e,n)}findIndex(A,e=-1){if(A==0)return Uo(0,A);if(A==this.size)return Uo(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?Uo(n+1,s):Uo(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 X.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new X(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return X.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 X(e||A,n)}static from(A){if(!A)return X.empty;if(A instanceof X)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new X([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}X.empty=new X([],0);const Zl={index:0,offset:0};function Uo(t,A){return Zl.index=t,Zl.offset=A,Zl}function bo(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(!bo(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!bo(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let PA=class Wd{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&&bo(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 Wd.none;if(A instanceof Wd)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};PA.none=[];class vo 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=Zd(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(qd(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(X.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(X.empty,0,0);function qd(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(qd(i.content,A-r-1,e-r-1)))}function Zd(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=Zd(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function TQ(t,A,e){if(e.openStart>t.depth)throw new vo("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new vo("Inconsistent open depths");return jd(t,A,e,0)}function jd(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=jd(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 Mr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=xQ(e,t);return Mr(i,eh(t,s,a,A,n))}else return Mr(i,Io(t,A,n))}function Ah(t,A){if(!A.type.compatibleContent(t.type))throw new vo("Cannot join "+A.type.name+" onto "+t.type.name)}function jl(t,A,e){let n=t.node(e);return Ah(n,A.node(e)),n}function kr(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 ds(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&&(kr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)kr(r.child(a),n);A&&A.depth==e&&A.textOffset&&kr(A.nodeBefore,n)}function Mr(t,A){return t.type.checkContent(A),t.copy(A)}function eh(t,A,e,n,r){let i=t.depth>r&&jl(t,A,r+1),s=n.depth>r&&jl(e,n,r+1),a=[];return ds(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Ah(i,s),kr(Mr(i,eh(t,A,e,n,r+1)),a)):(i&&kr(Mr(i,Io(t,A,r+1)),a),ds(A,e,r,a),s&&kr(Mr(s,Io(e,n,r+1)),a)),ds(n,null,r,a),new X(a)}function Io(t,A,e){let n=[];if(ds(null,t,e,n),t.depth>e){let r=jl(t,A,e+1);kr(Mr(r,Io(t,A,e+1)),n)}return ds(A,null,e,n),new X(n)}function xQ(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(X.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class hs{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 PA.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 So(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 hs(e,n,i)}static resolveCached(A,e){for(let r=0;r<Ac.length;r++){let i=Ac[r];if(i.pos==e&&i.doc==A)return i}let n=Ac[ec]=hs.resolve(A,e);return ec=(ec+1)%HQ,n}}let Ac=[],ec=0,HQ=12;class So{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 _Q=Object.create(null);let Dr=class $d{constructor(A,e,n,r=PA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||X.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&&bo(this.attrs,e||A.defaultAttrs||_Q)&&PA.sameSet(this.marks,n||PA.none)}copy(A=null){return A==this.content?this:new $d(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new $d(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 TQ(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 hs.resolveCached(this,A)}resolveNoCache(A){return hs.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()+")"),th(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=X.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=PA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!PA.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=X.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Dr.prototype.text=void 0;class To extends Dr{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):th(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 To(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new To(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 th(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class Nr{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new LQ(A,e);if(n.next==null)return Nr.empty;let r=nh(n);n.next&&n.err("Unexpected trailing text");let i=KQ(RQ(r));return VQ(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 X.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:p}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let B=i(p,a.concat(d));if(B)return B}}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
|
-
`)}}Nr.empty=new Nr(!0);class LQ{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 nh(t){let A=[];do A.push(OQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function OQ(t){let A=[];do A.push(kQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function kQ(t){let A=NQ(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=MQ(t,A);else break;return A}function rh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function MQ(t,A){let e=rh(t),n=e;return t.eat(",")&&(t.next!="}"?n=rh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function DQ(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 NQ(t){if(t.eat("(")){let A=nh(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=DQ(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 RQ(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 d=e();r(i(s.expr,c),d),c=d}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let d=e();n(c,d),r(i(s.expr,c),d),c=d}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function ih(t,A){return A-t}function sh(t,A){let e=[];return n(A),e.sort(ih);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 KQ(t){let A=Object.create(null);return e(sh(t,0));function e(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let d=0;d<r.length;d++)r[d][0]==a&&(u=r[d][1]);sh(t,c).forEach(d=>{u||r.push([a,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=A[n.join(",")]=new Nr(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(ih);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function VQ(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 oh(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 ah(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 lh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new PQ(t[e]);return A}let ch=class vy{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=lh(n.attrs),this.defaultAttrs=oh(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==Nr.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:ah(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Dr(this,this.computeAttrs(A),X.from(e),PA.setFrom(n))}createChecked(A=null,e,n){return e=X.from(e),this.checkContent(e),new Dr(this,this.computeAttrs(A),e,PA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=X.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(X.empty,!0);return i?new Dr(this,A,e.append(i),PA.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:PA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new vy(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 PQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class xo{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=lh(r.attrs),this.excluded=null;let i=oh(this.attrs);this.instance=i?new PA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new PA(this,ah(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new xo(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 GQ{constructor(A){this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=He.from(A.nodes),e.marks=He.from(A.marks||{}),this.nodes=ch.compile(this.spec.nodes,this),this.marks=xo.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]=Nr.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=a=="_"?null:a?uh(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==""?[]:uh(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 ch){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 To(n,n.defaultAttrs,A,PA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Dr.fromJSON(this,A)}markFromJSON(A){return PA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function uh(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 di{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 ph(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new ph(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(JQ(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=gh(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=gh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new di(A,di.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},WQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},dh={ol:!0,ul:!0},Ho=1,_o=2,ps=4;function hh(t,A,e){return A!=null?(A?Ho:0)|(A==="full"?_o:0):t&&t.whitespace=="pre"?Ho|_o:e&~ps}class Lo{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=PA.none,this.stashMarks=[],this.match=s||(a&ps?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(X.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&Ho)){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=X.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(X.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):YQ(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 ph{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=hh(null,e.preserveWhitespace,0)|(n?ps:0);r?i=new Lo(r.type,r.attrs,PA.none,PA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Lo(null,null,PA.none,PA.none,!0,null,s):i=new Lo(A.schema.topNodeType,null,PA.none,PA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){if(A.nodeType==3)this.addTextNode(A);else if(A.nodeType==1){let e=A.getAttribute("style");if(!e)this.addElement(A);else{let n=this.readStyles(XQ(e));if(!n)return;let[r,i]=n,s=this.top;for(let a=0;a<i.length;a++)this.removePendingMark(i[a],s);for(let a=0;a<r.length;a++)this.addPendingMark(r[a]);this.addElement(A);for(let a=0;a<r.length;a++)this.removePendingMark(r[a],s);for(let a=0;a<i.length;a++)this.addPendingMark(i[a])}}}addTextNode(A){let e=A.nodeValue,n=this.top;if(n.options&_o||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Ho)n.options&_o?e=e.replace(/\r\n?/g,`
|
|
1
|
+
(function(MA,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(MA=typeof globalThis<"u"?globalThis:MA||self,h(MA.AblokComponents={},MA.Vue,MA.core))})(this,function(MA,h,Xd){"use strict";const Iy={class:"icon",preserveAspectRatio:"xMaxYMin"},Sy=["xlink:href"],Ty=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",Iy,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,Sy)]))],2))}}),C2="",xy={class:"loading-spinner d-block"},Hy={class:"loading-spinner__animation"},_y={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"},Ly=["fill"],Oy=[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],My=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",xy,[h.createElementVNode("span",Hy,[(h.openBlock(),h.createElementBlock("svg",_y,[h.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"},Oy,8,Ly)]))]),h.renderSlot(A.$slots,"default")]))}}),Q2="",Dy=h.defineComponent({__name:"base-headline",props:{tag:null,size:null,variant:null,text:null,className:null},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(e)),{class:h.normalizeClass(["headline",`${t.size} headline--${t.size}${t.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(t.text),1)])]),_:3},8,["class"]))}}),ky=["innerHTML"],Ny=h.defineComponent({__name:"base-paragraph",props:{size:null,variant:null,text:null,className:null},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["base-paragraph",`${t.size} ${t.className||""}`])},[h.renderSlot(A.$slots,"default",{},()=>[h.createElementVNode("p",{innerHTML:t.text},null,8,ky)])],2))}});function we(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const Ry={class:"accordion-item"},Ky=["id"],Vy=["data-bs-target","aria-controls"],Py={class:"flex-grow-1"},Gy=["id","aria-labelledby","data-bs-parent"],Wy={class:"accordion-body"},$y=["innerHTML"],Jy=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>we()},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;function n(){A("update:modelValue",!e.modelValue)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Ry,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:n},[h.renderSlot(r.$slots,"toggle",{},()=>[h.createElementVNode("span",Py,h.toDisplayString(t.title),1)])],10,Vy)],8,Ky),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",Wy,[h.renderSlot(r.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,$y)])])],10,Gy)]))}}),E2="",Xy=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},Yy={},zy={class:"accordion"};function qy(t,A){return h.openBlock(),h.createElementBlock("div",zy,[h.renderSlot(t.$slots,"default")])}const Zy=Xy(Yy,[["render",qy]]),jy=["type","disabled"],AQ=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=h.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(i,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),h.unref(e)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,jy)}}}),F2="",eQ={class:"input-group input__input-group"},tQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],nQ=["for","innerHTML"],rQ=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",eQ,[h.renderSlot(r.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),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:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,tQ),[[h.vModelDynamic,h.unref(n)]]),h.renderSlot(r.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,nQ)):h.createCommentVNode("",!0)])],2))}}),U2="",iQ={class:"input input--textarea"},sQ=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],oQ=["for","innerHTML"],aQ=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",iQ,[h.renderSlot(r.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,sQ),[[h.vModelText,h.unref(n)]]),h.renderSlot(r.$slots,"input-append"),h.renderSlot(r.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,oQ)])]))}}),lQ=["value","id","name","required","disabled","true-value","false-value"],cQ=["for","innerHTML"],uQ=h.createElementVNode("span",{class:"input__error"},"error",-1),fQ=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue||e.checked},set(r){A("update:checked",r),A("update:modelValue",r)}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:i[1]||(i[1]=h.withModifiers(s=>r.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),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,lQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,cQ),uQ]))}}),b2=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
|
|
2
|
+
`,dQ={class:"check-group"},hQ=["id","name","value","disabled","read-only","required"],pQ=["for","innerHTML"],gQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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;h.ref([]);const n=h.computed({get(){return e.modelValue},set(i){A("update:modelValue",i)}}),r=h.computed(()=>e.options.map(i=>(i=typeof i=="string"?{text:i,value:i}:i,{...i,active:e.modelValue&&e.modelValue.includes(i.value)})));return(i,s)=>(h.openBlock(),h.createElementBlock("div",dQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(r),(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=u=>h.isRef(n)?n.value=u:null),id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,hQ),[[h.vModelCheckbox,h.unref(n)]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:a.text},null,8,pQ)]))),128))]))}}),v2="",BQ={class:"input radio-group"},mQ=["id","name","value","checked","disabled","read-only","required","onChange"],wQ=["for","innerHTML"],CQ=["for"],yQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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;h.ref(e.options.map(r=>r.value===e.modelValue));function n(r){console.log("asdfa",r),A("update:modelValue",r)}return h.onBeforeMount(()=>{}),(r,i)=>(h.openBlock(),h.createElementBlock("div",BQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(s,a)=>(h.openBlock(),h.createElementBlock("div",{key:a,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${a}`,name:t.name,class:"form-check-input",value:s.value||s,checked:s.value?s.value===t.modelValue:s===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:c=>n(s)},null,40,mQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${a}`,innerHTML:t.label},null,8,wQ)]))),128)),h.renderSlot(r.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,CQ)):h.createCommentVNode("",!0)])]))}}),I2="",QQ=["id","name","multiple","accept","disabled"],EQ={class:"input__input-group input-group"},FQ=["value","id","name","disabled"],UQ=["for","disabled"],bQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),vQ=["for"],IQ=["innerHTML"],SQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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;function n(a){const c=a.target&&a.target.files;c&&(i.splice(0,i.length),Array.from(c).forEach(u=>{i.push(u)}))}const r=h.ref(),i=h.reactive([]),s=h.computed(()=>i&&i.map(a=>a.name));return h.computed(()=>i.map(a=>URL.createObjectURL(a))),h.watch(()=>e.modelValue,(a,c)=>{a.length===0&&(r.value.value=null)},{deep:!0}),h.watch(()=>i,(a,c)=>{A("update:modelValue",a)},{deep:!0}),(a,c)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:r,type:"file",id:t.id,name:t.name,class:"d-none",onChange:n,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,QQ),h.createElementVNode("div",EQ,[h.renderSlot(a.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:h.unref(s),id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,FQ),h.renderSlot(a.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(a.$slots,"button",{},()=>[bQ])],8,UQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(a.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,IQ)])],8,vQ)]))}});function He(t){this.content=t}He.prototype={constructor:He,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 He(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 He(e)},addToStart:function(t,A){return new He([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new He(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 He(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=He.from(t),t.size?new He(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=He.from(t),t.size?new He(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=He.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}},He.from=function(t){if(t instanceof He)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new He(A)};function Yd(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=Yd(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function zd(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,d=Math.min(s.text.length,a.text.length);for(;u<d&&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=zd(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class X{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 d=a+1;c.nodesBetween(Math.max(0,A-d),Math.min(c.content.size,e-d),n,r+d)}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 X(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 X(n,r)}cutByIndex(A,e){return A==e?X.empty:A==0&&e==this.content.length?this:new X(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 X(r,i)}addToStart(A){return new X([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new X(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 Yd(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return zd(this,A,e,n)}findIndex(A,e=-1){if(A==0)return Uo(0,A);if(A==this.size)return Uo(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?Uo(n+1,s):Uo(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 X.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new X(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return X.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 X(e||A,n)}static from(A){if(!A)return X.empty;if(A instanceof X)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new X([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}X.empty=new X([],0);const Zl={index:0,offset:0};function Uo(t,A){return Zl.index=t,Zl.offset=A,Zl}function bo(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(!bo(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!bo(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let PA=class Wd{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&&bo(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 Wd.none;if(A instanceof Wd)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};PA.none=[];class vo 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=Zd(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(qd(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(X.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(X.empty,0,0);function qd(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(qd(i.content,A-r-1,e-r-1)))}function Zd(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=Zd(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function TQ(t,A,e){if(e.openStart>t.depth)throw new vo("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new vo("Inconsistent open depths");return jd(t,A,e,0)}function jd(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=jd(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 Dr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=xQ(e,t);return Dr(i,eh(t,s,a,A,n))}else return Dr(i,Io(t,A,n))}function Ah(t,A){if(!A.type.compatibleContent(t.type))throw new vo("Cannot join "+A.type.name+" onto "+t.type.name)}function jl(t,A,e){let n=t.node(e);return Ah(n,A.node(e)),n}function Mr(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 ds(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&&(Mr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Mr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Mr(A.nodeBefore,n)}function Dr(t,A){return t.type.checkContent(A),t.copy(A)}function eh(t,A,e,n,r){let i=t.depth>r&&jl(t,A,r+1),s=n.depth>r&&jl(e,n,r+1),a=[];return ds(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Ah(i,s),Mr(Dr(i,eh(t,A,e,n,r+1)),a)):(i&&Mr(Dr(i,Io(t,A,r+1)),a),ds(A,e,r,a),s&&Mr(Dr(s,Io(e,n,r+1)),a)),ds(n,null,r,a),new X(a)}function Io(t,A,e){let n=[];if(ds(null,t,e,n),t.depth>e){let r=jl(t,A,e+1);Mr(Dr(r,Io(t,A,e+1)),n)}return ds(A,null,e,n),new X(n)}function xQ(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(X.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class hs{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 PA.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 So(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 hs(e,n,i)}static resolveCached(A,e){for(let r=0;r<Ac.length;r++){let i=Ac[r];if(i.pos==e&&i.doc==A)return i}let n=Ac[ec]=hs.resolve(A,e);return ec=(ec+1)%HQ,n}}let Ac=[],ec=0,HQ=12;class So{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 _Q=Object.create(null);let kr=class $d{constructor(A,e,n,r=PA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||X.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&&bo(this.attrs,e||A.defaultAttrs||_Q)&&PA.sameSet(this.marks,n||PA.none)}copy(A=null){return A==this.content?this:new $d(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new $d(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 TQ(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 hs.resolveCached(this,A)}resolveNoCache(A){return hs.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()+")"),th(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=X.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=PA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!PA.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=X.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};kr.prototype.text=void 0;class To extends kr{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):th(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 To(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new To(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 th(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class Nr{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new LQ(A,e);if(n.next==null)return Nr.empty;let r=nh(n);n.next&&n.err("Unexpected trailing text");let i=KQ(RQ(r));return VQ(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 X.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:p}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let B=i(p,a.concat(d));if(B)return B}}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
|
+
`)}}Nr.empty=new Nr(!0);class LQ{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 nh(t){let A=[];do A.push(OQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function OQ(t){let A=[];do A.push(MQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function MQ(t){let A=NQ(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=DQ(t,A);else break;return A}function rh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function DQ(t,A){let e=rh(t),n=e;return t.eat(",")&&(t.next!="}"?n=rh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function kQ(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 NQ(t){if(t.eat("(")){let A=nh(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=kQ(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 RQ(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 d=e();r(i(s.expr,c),d),c=d}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let d=e();n(c,d),r(i(s.expr,c),d),c=d}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function ih(t,A){return A-t}function sh(t,A){let e=[];return n(A),e.sort(ih);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 KQ(t){let A=Object.create(null);return e(sh(t,0));function e(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let d=0;d<r.length;d++)r[d][0]==a&&(u=r[d][1]);sh(t,c).forEach(d=>{u||r.push([a,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=A[n.join(",")]=new Nr(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(ih);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function VQ(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 oh(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 ah(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 lh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new PQ(t[e]);return A}let ch=class vy{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=lh(n.attrs),this.defaultAttrs=oh(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==Nr.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:ah(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new kr(this,this.computeAttrs(A),X.from(e),PA.setFrom(n))}createChecked(A=null,e,n){return e=X.from(e),this.checkContent(e),new kr(this,this.computeAttrs(A),e,PA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=X.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(X.empty,!0);return i?new kr(this,A,e.append(i),PA.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:PA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new vy(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 PQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class xo{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=lh(r.attrs),this.excluded=null;let i=oh(this.attrs);this.instance=i?new PA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new PA(this,ah(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new xo(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 GQ{constructor(A){this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=He.from(A.nodes),e.marks=He.from(A.marks||{}),this.nodes=ch.compile(this.spec.nodes,this),this.marks=xo.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]=Nr.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=a=="_"?null:a?uh(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==""?[]:uh(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 ch){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 To(n,n.defaultAttrs,A,PA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return kr.fromJSON(this,A)}markFromJSON(A){return PA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function uh(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 di{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 ph(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new ph(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(JQ(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=gh(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=gh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new di(A,di.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},WQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},dh={ol:!0,ul:!0},Ho=1,_o=2,ps=4;function hh(t,A,e){return A!=null?(A?Ho:0)|(A==="full"?_o:0):t&&t.whitespace=="pre"?Ho|_o:e&~ps}class Lo{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=PA.none,this.stashMarks=[],this.match=s||(a&ps?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(X.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&Ho)){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=X.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(X.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):YQ(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 ph{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=hh(null,e.preserveWhitespace,0)|(n?ps:0);r?i=new Lo(r.type,r.attrs,PA.none,PA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Lo(null,null,PA.none,PA.none,!0,null,s):i=new Lo(A.schema.topNodeType,null,PA.none,PA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){if(A.nodeType==3)this.addTextNode(A);else if(A.nodeType==1){let e=A.getAttribute("style");if(!e)this.addElement(A);else{let n=this.readStyles(XQ(e));if(!n)return;let[r,i]=n,s=this.top;for(let a=0;a<i.length;a++)this.removePendingMark(i[a],s);for(let a=0;a<r.length;a++)this.addPendingMark(r[a]);this.addElement(A);for(let a=0;a<r.length;a++)this.removePendingMark(r[a],s);for(let a=0;a<i.length;a++)this.addPendingMark(i[a])}}}addTextNode(A){let e=A.nodeValue,n=this.top;if(n.options&_o||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Ho)n.options&_o?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;dh.hasOwnProperty(n)&&this.parser.normalizeLists&&$Q(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:WQ.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}this.addAll(A),s&&this.sync(a),this.needsBlock=c}else 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=PA.none,n=PA.none;A: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)continue A;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.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=hh(A,r,i.options);i.options&ps&&i.content.length==0&&(s|=ps),this.nodes.push(new Lo(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 d=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!d||d.name!=u&&d.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=zQ(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 $Q(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&dh.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function JQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function XQ(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 gh(t){let A={};for(let e in t)A[e]=t[e];return A}function YQ(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:d}=a.edge(c);if(u==A||i.indexOf(d)<0&&s(d))return!0}};if(s(r.contentMatch))return!0}}function zQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class dn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=tc(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++],d=this.serializeMark(u,s.isInline,e);d&&(i.push([u,r]),r.appendChild(d.dom),r=d.contentDOM||d.dom)}}r.appendChild(this.serializeNodeInner(s,e))}),n}serializeNodeInner(A,e){let{dom:n,contentDOM:r}=dn.renderSpec(tc(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&&dn.renderSpec(tc(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 d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?a.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:B,contentDOM:m}=dn.renderSpec(A,p,n);if(a.appendChild(B),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 dn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Bh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Bh(A.marks)}}function Bh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function tc(t){return t.document||window.document}const mh=65535,wh=Math.pow(2,16);function qQ(t,A){return t+A*wh}function Ch(t){return t&mh}function ZQ(t){return(t-(t&mh))/wh}const yh=1,Qh=2,Oo=4,Eh=8;class nc{constructor(A,e,n){this.pos=A,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Eh)>0}get deletedBefore(){return(this.delInfo&(yh|Oo))>0}get deletedAfter(){return(this.delInfo&(Qh|Oo))>0}get deletedAcross(){return(this.delInfo&Oo)>0}}class Mt{constructor(A,e=!1){if(this.ranges=A,this.inverted=e,!A.length&&Mt.empty)return Mt.empty}recover(A){let e=0,n=Ch(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+ZQ(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],d=this.ranges[a+s],p=c+u;if(A<=p){let B=u?A==c?-1:A==p?1:e:e,m=c+r+(B<0?0:d);if(n)return m;let C=A==(e<0?c:p)?null:qQ(a/3,A-c),E=A==c?Qh:A==p?yh:Oo;return(e<0?A!=c:A!=p)&&(E|=Eh),new nc(m,E,C)}r+=d-u}return n?A+r:new nc(A+r,0,null)}touches(A,e){let n=0,r=Ch(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],d=c+u;if(A<=d&&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],d=this.ranges[r+n];A(a,a+u,c,c+d),i+=d-u}}invert(){return new Mt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(A){return A==0?Mt.empty:new Mt(A<0?[0,-A,0]:[0,0,A])}}Mt.empty=new Mt([]);class hi{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 hi(this.maps,this.mirror,A,e)}copy(){return new hi(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 hi;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 nc(A,r,null)}}const rc=Object.create(null);class ft{getMap(){return Mt.empty}merge(A){return null}static fromJSON(A,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=rc[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 rc)throw new RangeError("Duplicate use of step JSON ID "+A);return rc[A]=e,e.prototype.jsonID=A,e}}class Ce{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new Ce(A,null)}static fail(A){return new Ce(null,A)}static fromReplace(A,e,n,r){try{return Ce.ok(A.replace(e,n,r))}catch(i){if(i instanceof vo)return Ce.fail(i.message);throw i}}}function ic(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(ic(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return X.fromArray(n)}class Zn extends ft{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(ic(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 Ce.fromReplace(A,this.from,this.to,i)}invert(){return new hn(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 Zn(e.pos,n.pos,this.mark)}merge(A){return A instanceof Zn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new Zn(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 Zn(e.from,e.to,A.markFromJSON(e.mark))}}ft.jsonID("addMark",Zn);class hn extends ft{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(ic(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return Ce.fromReplace(A,this.from,this.to,n)}invert(){return new Zn(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 hn(e.pos,n.pos,this.mark)}merge(A){return A instanceof hn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new hn(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 hn(e.from,e.to,A.markFromJSON(e.mark))}}ft.jsonID("removeMark",hn);class jn extends ft{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Ce.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Ce.fromReplace(A,this.pos,this.pos+1,new j(X.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 jn(this.pos,e.marks[r]);return new jn(this.pos,this.mark)}}return new pi(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new jn(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 jn(e.pos,A.markFromJSON(e.mark))}}ft.jsonID("addNodeMark",jn);class pi extends ft{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Ce.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Ce.fromReplace(A,this.pos,this.pos+1,new j(X.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new jn(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new pi(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 pi(e.pos,A.markFromJSON(e.mark))}}ft.jsonID("removeNodeMark",pi);class Ge extends ft{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&sc(A,this.from,this.to)?Ce.fail("Structure replace would overwrite content"):Ce.fromReplace(A,this.from,this.to,this.slice)}getMap(){return new Mt([this.from,this.to-this.from,this.slice.size])}invert(A){return new Ge(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 Ge(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof Ge)||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 Ge(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 Ge(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 Ge(e.from,e.to,j.fromJSON(A,e.slice),!!e.structure)}}ft.jsonID("replace",Ge);class ve extends ft{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&&(sc(A,this.from,this.gapFrom)||sc(A,this.gapTo,this.to)))return Ce.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Ce.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?Ce.fromReplace(A,this.from,this.to,n):Ce.fail("Content does not fit in gap")}getMap(){return new Mt([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 ve(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 ve(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 ve(e.from,e.to,e.gapFrom,e.gapTo,j.fromJSON(A,e.slice),e.insert,!!e.structure)}}ft.jsonID("replaceAround",ve);function sc(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 jQ(t,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(c,u,d)=>{if(!c.isInline)return;let p=c.marks;if(!n.isInSet(p)&&d.type.allowsMarkType(n.type)){let B=Math.max(u,A),m=Math.min(u+c.nodeSize,e),C=n.addToSet(p);for(let E=0;E<p.length;E++)p[E].isInSet(C)||(s&&s.to==B&&s.mark.eq(p[E])?s.to=m:r.push(s=new hn(B,m,p[E])));a&&a.to==B?a.to=m:i.push(a=new Zn(B,m,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function AE(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 xo){let u=s.marks,d;for(;d=n.isInSet(u);)(c||(c=[])).push(d),u=d.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 d=0;d<c.length;d++){let p=c[d],B;for(let m=0;m<r.length;m++){let C=r[m];C.step==i-1&&p.eq(r[m].style)&&(B=C)}B?(B.to=u,B.step=i):r.push({style:p,from:Math.max(a,A),to:u,step:i})}}}),r.forEach(s=>t.step(new hn(s.from,s.to,s.style)))}function eE(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,d=n.matchType(c.type);if(!d)i.push(new Ge(s,u,j.empty));else{n=d;for(let p=0;p<c.marks.length;p++)e.allowsMarkType(c.marks[p].type)||t.step(new hn(s,u,c.marks[p]))}s=u}if(!n.validEnd){let a=n.fillBefore(X.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 tE(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function gi(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||!tE(r,i,s))break}return null}function nE(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,d=X.empty,p=0;for(let C=i,E=!1;C>e;C--)E||n.index(C)>0?(E=!0,d=X.from(n.node(C).copy(d)),p++):c--;let B=X.empty,m=0;for(let C=i,E=!1;C>e;C--)E||r.after(C+1)<r.end(C)?(E=!0,B=X.from(r.node(C).copy(B)),m++):u++;t.step(new ve(c,u,s,a,new j(d.append(B),p,m),d.size-p,!0))}function oc(t,A,e=null,n=t){let r=rE(t,A),i=r&&iE(n,A);return i?r.map(Fh).concat({type:A,attrs:e}).concat(i.map(Fh)):null}function Fh(t){return{type:t,attrs:null}}function rE(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 iE(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 sE(t,A,e){let n=X.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=X.from(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new ve(r,i,r,i,new j(n,0,0),e.length,!0))}function oE(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)&&aE(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),d=c.map(a+s.nodeSize,1);return t.step(new ve(u,d,u+1,d-1,new j(X.from(n.create(r,null,s.marks)),0,0),1,!0)),!1}})}function aE(t,A,e){let n=t.resolve(A),r=n.index();return n.parent.canReplaceWith(r,r+1,e)}function lE(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 ve(A,A+i.nodeSize,A+1,A+i.nodeSize-1,new j(X.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,d=e-2;u>i;u--,d--){let p=r.node(u),B=r.index(u);if(p.type.spec.isolating)return!1;let m=p.content.cutByIndex(B,p.childCount),C=n&&n[d]||p;if(C!=p&&(m=m.replaceChild(0,C.type.create(C.attrs))),!p.canReplace(B+1,p.childCount)||!C.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 cE(t,A,e=1,n){let r=t.doc.resolve(A),i=X.empty,s=X.empty;for(let a=r.depth,c=r.depth-e,u=e-1;a>c;a--,u--){i=X.from(r.node(a).copy(i));let d=n&&n[u];s=X.from(d?d.type.create(d.attrs,s):r.node(a).copy(s))}t.step(new Ge(A,A,new j(i.append(s),e,e),!0))}function Ar(t,A){let e=t.resolve(A),n=e.index();return Uh(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(n,n+1)}function Uh(t,A){return!!(t&&A&&!t.isLeaf&&t.canAppend(A))}function bh(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&&Uh(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 uE(t,A,e){let n=new Ge(A-e,A+e,j.empty,!0);t.step(n)}function fE(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 vh(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),d=!1;if(i==1)d=u.canReplace(c,c,r);else{let p=u.contentMatchAt(c).findWrapping(r.firstChild.type);d=p&&u.canReplaceWith(c,c,p[0])}if(d)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function ac(t,A,e=A,n=j.empty){if(A==e&&!n.size)return null;let r=t.resolve(A),i=t.resolve(e);return Ih(r,i,n)?new Ge(A,e,n):new dE(r,i,n).fit()}function Ih(t,A,e){return!e.openStart&&!e.openEnd&&t.start()==A.start()&&t.parent.canReplace(t.index(),A.index(),e.content)}class dE{constructor(A,e,n){this.$from=A,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=X.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=X.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 ve(n.pos,A,this.$to.pos,this.$to.end(),c,e):c.size||n.pos!=this.$to.pos?new Ge(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=lc(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],d,p=null;if(e==1&&(s?u.matchType(s.type)||(p=u.fillBefore(X.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:p};if(e==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:a,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:A,openStart:e,openEnd:n}=this.unplaced,r=lc(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=lc(A,e);if(r.childCount<=1&&e>0){let i=A.size-e<=e+r.size;this.unplaced=new j(gs(A,e-1,1),e-1,i?e-1:n)}else this.unplaced=new j(gs(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 E=0;E<i.length;E++)this.openFrontierNode(i[E]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-A,u=0,d=[],{match:p,type:B}=this.frontier[e];if(r){for(let E=0;E<r.childCount;E++)d.push(r.child(E));p=p.matchFragment(r)}let m=a.size+A-(s.content.size-s.openEnd);for(;u<a.childCount;){let E=a.child(u),S=p.matchType(E.type);if(!S)break;u++,(u>1||c==0||E.content.size)&&(p=S,d.push(Sh(E.mark(B.allowedMarks(E.marks)),u==1?c:0,u==a.childCount?m:-1)))}let C=u==a.childCount;C||(m=-1),this.placed=Bs(this.placed,e,X.from(d)),this.frontier[e].match=p,C&&m<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let E=0,S=a;E<m;E++){let U=S.lastChild;this.frontier.push({type:U.type,match:U.contentMatchAt(U.childCount)}),S=U.content}this.unplaced=C?A==0?j.empty:new j(gs(s.content,A-1,1),A-1,m<0?s.openEnd:A-1):new j(gs(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||!cc(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=cc(A,e,r,n,i);if(s){for(let a=e-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],d=cc(A,a,u,c,!0);if(!d||d.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=Bs(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=Bs(this.placed,this.depth,X.from(A.create(e,n))),this.frontier.push({type:A,match:A.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(X.empty,!0);e.childCount&&(this.placed=Bs(this.placed,this.frontier.length,e))}}function gs(t,A,e){return A==0?t.cutByIndex(e,t.childCount):t.replaceChild(0,t.firstChild.copy(gs(t.firstChild.content,A-1,e)))}function Bs(t,A,e){return A==0?t.append(e):t.replaceChild(t.childCount-1,t.lastChild.copy(Bs(t.lastChild.content,A-1,e)))}function lc(t,A){for(let e=0;e<A;e++)t=t.firstChild.content;return t}function Sh(t,A,e){if(A<=0)return t;let n=t.content;return A>1&&(n=n.replaceChild(0,Sh(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(X.empty,!0)))),t.copy(n)}function cc(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&&!hE(e,i.content,s)?a:null}function hE(t,A,e){for(let n=e;n<A.childCount;n++)if(!t.allowsMarks(A.child(n).marks))return!0;return!1}function pE(t){return t.spec.defining||t.spec.definingForContent}function gE(t,A,e,n){if(!n.size)return t.deleteRange(A,e);let r=t.doc.resolve(A),i=t.doc.resolve(e);if(Ih(r,i,n))return t.step(new Ge(A,e,n));let s=xh(r,t.doc.resolve(e));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let B=r.depth,m=r.pos-1;B>0;B--,m--){let C=r.node(B).type.spec;if(C.defining||C.definingAsContext||C.isolating)break;s.indexOf(B)>-1?a=B:r.before(B)==m&&s.splice(1,0,-B)}let c=s.indexOf(a),u=[],d=n.openStart;for(let B=n.content,m=0;;m++){let C=B.firstChild;if(u.push(C),m==n.openStart)break;B=C.content}for(let B=d-1;B>=0;B--){let m=u[B].type,C=pE(m);if(C&&r.node(c).type!=m)d=B;else if(C||!m.isTextblock)break}for(let B=n.openStart;B>=0;B--){let m=(B+d+1)%(n.openStart+1),C=u[m];if(C)for(let E=0;E<s.length;E++){let S=s[(E+c)%s.length],U=!0;S<0&&(U=!1,S=-S);let v=r.node(S-1),k=r.index(S-1);if(v.canReplaceWith(k,k,C.type,C.marks))return t.replace(r.before(S),U?i.after(S):e,new j(Th(n.content,0,n.openStart,m),m,n.openEnd))}}let p=t.steps.length;for(let B=s.length-1;B>=0&&(t.replace(A,e,n),!(t.steps.length>p));B--){let m=s[B];m<0||(A=r.before(m),e=i.after(m))}}function Th(t,A,e,n,r){if(A<e){let i=t.firstChild;t=t.replaceChild(0,i.copy(Th(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(X.empty,!0))}return t}function BE(t,A,e,n){if(!n.isInline&&A==e&&t.doc.resolve(A).parent.content.size){let r=fE(t.doc,A,n.type);r!=null&&(A=e=r)}t.replaceRange(A,e,new j(X.from(n),0,0))}function mE(t,A,e){let n=t.doc.resolve(A),r=t.doc.resolve(e),i=xh(n,r);for(let s=0;s<i.length;s++){let a=i[s],c=s==i.length-1;if(c&&a==0||n.node(a).type.contentMatch.validEnd)return t.delete(n.start(a),r.end(a));if(a>0&&(c||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return t.delete(n.before(a),r.after(a))}for(let s=1;s<=n.depth&&s<=r.depth;s++)if(A-n.start(s)==n.depth-s&&e>n.end(s)&&r.end(s)-e!=r.depth-s)return t.delete(n.before(s),e);t.delete(A,e)}function xh(t,A){let e=[],n=Math.min(t.depth,A.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||A.end(r)>A.pos+(A.depth-r)||t.node(r).type.spec.isolating||A.node(r).type.spec.isolating)break;(i==A.start(r)||r==t.depth&&r==A.depth&&t.parent.inlineContent&&A.parent.inlineContent&&r&&A.start(r-1)==i-1)&&e.push(r)}return e}class mi extends ft{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 Ce.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 Ce.fromReplace(A,this.pos,this.pos+1,new j(X.from(r),0,e.isLeaf?0:1))}getMap(){return Mt.empty}invert(A){return new mi(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 mi(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 mi(e.pos,e.attr,e.value)}}ft.jsonID("attr",mi);let wi=class extends Error{};wi=function t(A){let e=Error.call(this,A);return e.__proto__=t.prototype,e},wi.prototype=Object.create(Error.prototype),wi.prototype.constructor=wi,wi.prototype.name="TransformError";class wE{constructor(A){this.doc=A,this.steps=[],this.docs=[],this.mapping=new hi}get before(){return this.docs.length?this.docs[0]:this.doc}step(A){let e=this.maybeStep(A);if(e.failed)throw new wi(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=ac(this.doc,A,e,n);return r&&this.step(r),this}replaceWith(A,e,n){return this.replace(A,e,new j(X.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 gE(this,A,e,n),this}replaceRangeWith(A,e,n){return BE(this,A,e,n),this}deleteRange(A,e){return mE(this,A,e),this}lift(A,e){return nE(this,A,e),this}join(A,e=1){return uE(this,A,e),this}wrap(A,e){return sE(this,A,e),this}setBlockType(A,e=A,n,r=null){return oE(this,A,e,n,r),this}setNodeMarkup(A,e,n=null,r){return lE(this,A,e,n,r),this}setNodeAttribute(A,e,n){return this.step(new mi(A,e,n)),this}addNodeMark(A,e){return this.step(new jn(A,e)),this}removeNodeMark(A,e){if(!(e instanceof PA)){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 pi(A,e)),this}split(A,e=1,n){return cE(this,A,e,n),this}addMark(A,e,n){return jQ(this,A,e,n),this}removeMark(A,e,n){return AE(this,A,e,n),this}clearIncompatible(A,e,n){return eE(this,A,e,n),this}}const uc=Object.create(null);class yA{constructor(A,e,n){this.$anchor=A,this.$head=e,this.ranges=n||[new CE(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],d=A.mapping.slice(i);A.replaceRange(d.map(c.pos),d.map(u.pos),a?j.empty:e),a==0&&Lh(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),d=c.map(a.pos);i?A.deleteRange(u,d):(A.replaceRangeWith(u,d,e),Lh(A,n,e.isInline?-1:1))}}static findFrom(A,e,n=!1){let r=A.parent.inlineContent?new FA(A):Ci(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?Ci(A.node(0),A.node(i),A.before(i+1),A.index(i),e,n):Ci(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 jt(A.node(0))}static atStart(A){return Ci(A,A,0,0,1)||new jt(A)}static atEnd(A){return Ci(A,A,A.content.size,A.childCount,-1)||new jt(A)}static fromJSON(A,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=uc[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 uc)throw new RangeError("Duplicate use of selection JSON ID "+A);return uc[A]=e,e.prototype.jsonID=A,e}getBookmark(){return FA.between(this.$anchor,this.$head).getBookmark()}}yA.prototype.visible=!0;class CE{constructor(A,e){this.$from=A,this.$to=e}}let Hh=!1;function _h(t){!Hh&&!t.parent.inlineContent&&(Hh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class FA extends yA{constructor(A,e=A){_h(A),_h(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 yA.near(n);let r=A.resolve(e.map(this.anchor));return new FA(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 FA&&A.anchor==this.anchor&&A.head==this.head}getBookmark(){return new ko(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 FA(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=yA.findFrom(e,n,!0)||yA.findFrom(e,-n,!0);if(i)e=i.$head;else return yA.near(e,n)}return A.parent.inlineContent||(r==0?A=e:(A=(yA.findFrom(A,-n,!0)||yA.findFrom(A,n,!0)).$anchor,A.pos<e.pos!=r<0&&(A=e))),new FA(A,e)}}yA.jsonID("text",FA);class ko{constructor(A,e){this.anchor=A,this.head=e}map(A){return new ko(A.map(this.anchor),A.map(this.head))}resolve(A){return FA.between(A.resolve(this.anchor),A.resolve(this.head))}}class uA extends yA{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?yA.near(i):new uA(i)}content(){return new j(X.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 fc(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,yA.jsonID("node",uA);class fc{constructor(A){this.anchor=A}map(A){let{deleted:e,pos:n}=A.mapResult(this.anchor);return e?new ko(n,n):new fc(n)}resolve(A){let e=A.resolve(this.anchor),n=e.nodeAfter;return n&&uA.isSelectable(n)?new uA(e):yA.near(e)}}class jt extends yA{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=yA.atStart(A.doc);n.eq(A.selection)||A.setSelection(n)}else super.replace(A,e)}toJSON(){return{type:"all"}}static fromJSON(A){return new jt(A)}map(A){return new jt(A)}eq(A){return A instanceof jt}getBookmark(){return yE}}yA.jsonID("all",jt);const yE={map(){return this},resolve(t){return new jt(t)}};function Ci(t,A,e,n,r,i=!1){if(A.inlineContent)return FA.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=Ci(t,a,e+r,r<0?a.childCount:0,r,i);if(c)return c}e+=a.nodeSize*r}return null}function Lh(t,A,e){let n=t.steps.length-1;if(n<A)return;let r=t.steps[n];if(!(r instanceof Ge||r instanceof ve))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,d)=>{s==null&&(s=d)}),t.setSelection(yA.near(t.doc.resolve(s),e))}const Oh=1,Mo=2,kh=4;class QE extends wE{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|Oh)&~Mo,this.storedMarks=null,this}get selectionSet(){return(this.updated&Oh)>0}setStoredMarks(A){return this.storedMarks=A,this.updated|=Mo,this}ensureMarks(A){return PA.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&Mo)>0}addStep(A,e){super.addStep(A,e),this.updated=this.updated&~Mo,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)||PA.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(yA.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|=kh,this}get scrolledIntoView(){return(this.updated&kh)>0}}function Mh(t,A){return!A||!t?t:t.bind(A)}class ms{constructor(A,e,n){this.name=A,this.init=Mh(e.init,n),this.apply=Mh(e.apply,n)}}const EE=[new ms("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new ms("selection",{init(t,A){return t.selection||yA.atStart(A.doc)},apply(t){return t.selection}}),new ms("storedMarks",{init(t){return t.storedMarks||null},apply(t,A,e,n){return n.selection.$cursor?t.storedMarks:null}}),new ms("scrollToSelection",{init(){return 0},apply(t,A){return t.scrolledIntoView?A+1:A}})];class dc{constructor(A,e){this.schema=A,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=EE.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 ms(n.key,n.spec.state,n))})}}class yi{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,d=c<e.length&&a.spec.appendTransaction.call(a,c?e.slice(c):e,u,n);if(d&&n.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",A),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:e.length}:{state:this,n:0})}e.push(d),n=n.applyInner(d),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 yi(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 QE(this)}static create(A){let e=new dc(A.doc?A.doc.type.schema:A.schema,A.plugins),n=new yi(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 dc(this.schema,A.plugins),n=e.fields,r=new yi(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 dc(A.schema,A.plugins),i=new yi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Dr.fromJSON(A.schema,e.doc);else if(s.name=="selection")i.selection=yA.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 Dh(t,A,e){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(A):n=="handleDOMEvents"&&(r=Dh(r,A,{})),e[n]=r}return e}class dt{constructor(A){this.spec=A,this.props={},A.props&&Dh(A.props,this,this.props),this.key=A.key?A.key.key:Nh("plugin")}getState(A){return A[this.key]}}const hc=Object.create(null);function Nh(t){return t in hc?t+"$"+ ++hc[t]:(hc[t]=0,t+"$")}class pn{constructor(A="key"){this.key=Nh(A)}get(A){return A.config.pluginsByKey[this.key]}getState(A){return A[this.key]}}const Qt=function(t){for(var A=0;;A++)if(t=t.previousSibling,!t)return A},ws=function(t){let A=t.assignedSlot||t.parentNode;return A&&A.nodeType==11?A.host:A};let Rh=null;const In=function(t,A,e){let n=Rh||(Rh=document.createRange());return n.setEnd(t,e??t.nodeValue.length),n.setStart(t,A||0),n},Rr=function(t,A,e,n){return e&&(Kh(t,A,e,n,-1)||Kh(t,A,e,n,1))},FE=/^(img|br|input|textarea|hr)$/i;function Kh(t,A,e,n,r){for(;;){if(t==e&&A==n)return!0;if(A==(r<0?0:gn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||bE(t)||FE.test(t.nodeName)||t.contentEditable=="false")return!1;A=Qt(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?gn(t):0}else return!1}}function gn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function UE(t,A,e){for(let n=A==0,r=A==gn(t);n||r;){if(t==e)return!0;let i=Qt(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==gn(t)}}function bE(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 Do=function(t){return t.focusNode&&Rr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Kr(t,A){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=t,e.key=e.code=A,e}function vE(t){let A=t.activeElement;for(;A&&A.shadowRoot;)A=A.shadowRoot.activeElement;return A}const er=typeof navigator<"u"?navigator:null,Vh=typeof document<"u"?document:null,tr=er&&er.userAgent||"",pc=/Edge\/(\d+)/.exec(tr),Ph=/MSIE \d/.exec(tr),gc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tr),ht=!!(Ph||gc||pc),nr=Ph?document.documentMode:gc?+gc[1]:pc?+pc[1]:0,An=!ht&&/gecko\/(\d+)/i.test(tr);An&&+(/Firefox\/(\d+)/.exec(tr)||[0,0])[1];const Bc=!ht&&/Chrome\/(\d+)/.exec(tr),je=!!Bc,IE=Bc?+Bc[1]:0,At=!ht&&!!er&&/Apple Computer/.test(er.vendor),Qi=At&&(/Mobile\/\w+/.test(tr)||!!er&&er.maxTouchPoints>2),Dt=Qi||(er?/Mac/.test(er.platform):!1),en=/Android \d/.test(tr),No=!!Vh&&"webkitFontSmoothing"in Vh.documentElement.style,SE=No?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function TE(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function rr(t,A){return typeof t=="number"?t:t[A]}function xE(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 Gh(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=ws(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?TE(i):xE(a),d=0,p=0;if(A.top<u.top+rr(n,"top")?p=-(u.top-A.top+rr(r,"top")):A.bottom>u.bottom-rr(n,"bottom")&&(p=A.bottom-u.bottom+rr(r,"bottom")),A.left<u.left+rr(n,"left")?d=-(u.left-A.left+rr(r,"left")):A.right>u.right-rr(n,"right")&&(d=A.right-u.right+rr(r,"right")),d||p)if(c)i.defaultView.scrollBy(d,p);else{let B=a.scrollLeft,m=a.scrollTop;p&&(a.scrollTop+=p),d&&(a.scrollLeft+=d);let C=a.scrollLeft-B,E=a.scrollTop-m;A={left:A.left-C,top:A.top-E,right:A.right-C,bottom:A.bottom-E}}if(c)break}}function HE(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:Wh(t.dom)}}function Wh(t){let A=[],e=t.ownerDocument;for(let n=t;n&&(A.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=e);n=ws(n));return A}function _E({refDOM:t,refTop:A,stack:e}){let n=t?t.getBoundingClientRect().top:0;$h(e,n==0?0:n-A)}function $h(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 Ei=null;function LE(t){if(t.setActive)return t.setActive();if(Ei)return t.focus(Ei);let A=Wh(t);t.focus(Ei==null?{get preventScroll(){return Ei={preventScroll:!0},!0}}:void 0),Ei||(Ei=!1,$h(A,0))}function Jh(t,A){let e,n=2e8,r,i=0,s=A.top,a=A.top;for(let c=t.firstChild,u=0;c;c=c.nextSibling,u++){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=In(c).getClientRects();else continue;for(let p=0;p<d.length;p++){let B=d[p];if(B.top<=s&&B.bottom>=a){s=Math.max(B.bottom,s),a=Math.min(B.top,a);let m=B.left>A.left?B.left-A.left:B.right<A.left?A.left-B.right:0;if(m<n){e=c,n=m,r=m&&e.nodeType==3?{left:B.right<A.left?B.right:B.left,top:A.top}:A,c.nodeType==1&&m&&(i=u+(A.left>=(B.left+B.right)/2?1:0));continue}}!e&&(A.left>=B.right&&A.top>=B.top||A.left>=B.left&&A.top>=B.bottom)&&(i=u+1)}}return e&&e.nodeType==3?OE(e,r):!e||n&&e.nodeType==1?{node:t,offset:i}:Jh(e,r)}function OE(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=ir(n,1);if(i.top!=i.bottom&&mc(A,i))return{node:t,offset:r+(A.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function mc(t,A){return t.left>=A.left-1&&t.left<=A.right+1&&t.top>=A.top-1&&t.top<=A.bottom+1}function kE(t,A){let e=t.parentNode;return e&&/^li$/i.test(e.nodeName)&&A.left<t.getBoundingClientRect().left?e:t}function ME(t,A,e){let{node:n,offset:r}=Jh(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 DE(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)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 Xh(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(mc(A,u))return Xh(s,A,u)}}if((i=(i+1)%n)==r)break}return t}function NE(t,A){let e=t.dom.ownerDocument,n,r=0;if(e.caretPositionFromPoint)try{let c=e.caretPositionFromPoint(A.left,A.top);c&&({offsetNode:n,offset:r}=c)}catch{}if(!n&&e.caretRangeFromPoint){let c=e.caretRangeFromPoint(A.left,A.top);c&&({startContainer:n,startOffset:r}=c)}let i=(t.root.elementFromPoint?t.root:e).elementFromPoint(A.left,A.top),s;if(!i||!t.dom.contains(i.nodeType!=1?i.parentNode:i)){let c=t.dom.getBoundingClientRect();if(!mc(A,c)||(i=Xh(t.dom,A,c),!i))return null}if(At)for(let c=i;n&&c;c=ws(c))c.draggable&&(n=void 0);if(i=kE(i,A),n){if(An&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let c=n.childNodes[r],u;c.nodeName=="IMG"&&(u=c.getBoundingClientRect()).right<=A.left&&u.bottom>A.top&&r++}n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&A.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(r==0||n.nodeType!=1||n.childNodes[r-1].nodeName!="BR")&&(s=DE(t,n,r,A))}s==null&&(s=ME(t,i,A));let a=t.docView.nearestDesc(i,!0);return{pos:s,inside:a?a.posAtStart-a.border:-1}}function ir(t,A){let e=t.getClientRects();return e.length?e[A<0?0:e.length-1]:t.getBoundingClientRect()}const RE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Yh(t,A,e){let{node:n,offset:r,atom:i}=t.docView.domFromPos(A,e<0?-1:1),s=No||An;if(n.nodeType==3)if(s&&(RE.test(n.nodeValue)||(e<0?!r:r==n.nodeValue.length))){let c=ir(In(n,r,r),e);if(An&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ir(In(n,r-1,r-1),-1);if(u.top==c.top){let d=ir(In(n,r,r+1),-1);if(d.top!=c.top)return Cs(d,d.left<u.left)}}return c}else{let c=r,u=r,d=e<0?1:-1;return e<0&&!r?(u++,d=-1):e>=0&&r==n.nodeValue.length?(c--,d=1):e<0?c--:u++,Cs(ir(In(n,c,u),1),d<0)}if(!t.state.doc.resolve(A-(i||0)).parent.inlineContent){if(i==null&&r&&(e<0||r==gn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return wc(c.getBoundingClientRect(),!1)}if(i==null&&r<gn(n)){let c=n.childNodes[r];if(c.nodeType==1)return wc(c.getBoundingClientRect(),!0)}return wc(n.getBoundingClientRect(),e>=0)}if(i==null&&r&&(e<0||r==gn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?In(c,gn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Cs(ir(u,1),!1)}if(i==null&&r<gn(n)){let c=n.childNodes[r];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?In(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Cs(ir(u,-1),!0)}return Cs(ir(n.nodeType==3?In(n):n,-e),e>=0)}function Cs(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 wc(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 zh(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 KE(t,A,e){let n=A.selection,r=e=="up"?n.$from:n.$to;return zh(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=Yh(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=In(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(e=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const VE=/[\u0590-\u08ac]/;function PE(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!VE.test(n.parent.textContent)||!a.modify?e=="left"||e=="backward"?i:s:zh(t,A,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:p}=t.domSelectionRange(),B=a.caretBidiLevel;a.modify("move",e,"character");let m=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:C,focusOffset:E}=t.domSelectionRange(),S=C&&!m.contains(C.nodeType==1?C:C.parentNode)||c==C&&u==E;try{a.collapse(d,p),c&&(c!=d||u!=p)&&a.extend&&a.extend(c,u)}catch{}return B!=null&&(a.caretBidiLevel=B),S})}let qh=null,Zh=null,jh=!1;function GE(t,A,e){return qh==A&&Zh==e?jh:(qh=A,Zh=e,jh=e=="up"||e=="down"?KE(t,A,e):PE(t,A,e))}const tn=0,Ap=1,Fi=2,Bn=3;class ys{constructor(A,e,n,r){this.parent=A,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=tn,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>Qt(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 np){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 ep&&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?Qt(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?Qt(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 d=s+c.border;if(A>=d&&e<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(A,e,d);A=s;for(let p=a;p>0;p--){let B=this.children[p-1];if(B.size&&B.dom.parentNode==this.contentDOM&&!B.emptyChildAt(1)){r=Qt(B.dom)+1;break}A-=B.size}r==-1&&(r=0)}if(r>-1&&(u>e||a==this.children.length-1)){e=u;for(let d=a+1;d<this.children.length;d++){let p=this.children[d];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=Qt(p.dom);break}e+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:A,to:e,fromOffset:r,toOffset:i}}emptyChildAt(A){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[A<0?0:this.children.length-1];return e.size==0||e.emptyChildAt(A)}domAfterPos(A){let{node:e,offset:n}=this.domFromPos(A,0);if(e.nodeType!=1||n==e.childNodes.length)throw new RangeError("No node after pos "+A);return e.childNodes[n]}setSelection(A,e,n,r=!1){let i=Math.min(A,e),s=Math.max(A,e);for(let B=0,m=0;B<this.children.length;B++){let C=this.children[B],E=m+C.size;if(i>m&&s<E)return C.setSelection(A-m-C.border,e-m-C.border,n,r);m=E}let a=this.domFromPos(A,A?-1:1),c=e==A?a:this.domFromPos(e,e?-1:1),u=n.getSelection(),d=!1;if((An||At)&&A==e){let{node:B,offset:m}=a;if(B.nodeType==3){if(d=!!(m&&B.nodeValue[m-1]==`
|
|
6
|
-
`),d&&m==B.nodeValue.length)for(let C=B,E;C;C=C.parentNode){if(E=C.nextSibling){E.nodeName=="BR"&&(a=c={node:E.parentNode,offset:Qt(E)+1});break}let S=C.pmViewDesc;if(S&&S.node&&S.node.isBlock)break}}else{let C=B.childNodes[m-1];d=C&&(C.nodeName=="BR"||C.contentEditable=="false")}}if(An&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let B=u.focusNode.childNodes[u.focusOffset];B&&B.contentEditable=="false"&&(r=!0)}if(!(r||d&&At)&&Rr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Rr(c.node,c.offset,u.focusNode,u.focusOffset))return;let p=!1;if((u.extend||A==e)&&!d){u.collapse(a.node,a.offset);try{A!=e&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(A>e){let m=a;a=c,c=m}let B=document.createRange();B.setEnd(c.node,c.offset),B.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(B)}}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?Fi:Ap,A==a&&e==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Bn:i.markDirty(A-a,e-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Fi:Bn}n=s}this.dirty=Fi}markParentsDirty(){let A=1;for(let e=this.parent;e;e=e.parent,A++){let n=A==1?Fi:Ap;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class ep extends ys{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==tn&&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 WE extends ys{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 Vr extends ys{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=dn.renderSpec(document,e.type.spec.toDOM(e,n))),new Vr(A,e,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Bn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(A){return this.dirty!=Bn&&this.mark.eq(A)}markDirty(A,e){if(super.markDirty(A,e),this.dirty!=tn){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=tn}}slice(A,e,n){let r=Vr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;e<s&&(i=Qc(i,e,s,n)),A>0&&(i=Qc(i,0,A,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class Pr extends ys{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,s&&this.updateChildren(c,u)}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),d=u&&u.dom,p=u&&u.contentDOM;if(e.isText){if(!d)d=document.createTextNode(e.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:p}=dn.renderSpec(document,e.type.spec.toDOM(e)));!p&&!e.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let B=d;return d=sp(d,n,e),u?c=new $E(A,e,n,r,d,p||null,B,u,i,s+1):e.isText?new Ro(A,e,n,r,d,B,i):new Pr(A,e,n,r,d,p||null,B,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=()=>X.empty)}return A}matchesNode(A,e,n){return this.dirty==tn&&A.eq(this.node)&&yc(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 XE(this,s&&s.node,A);qE(this.node,this.innerDeco,(u,d,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,A):u.type.side>=0&&!p&&c.syncToMarks(d==this.node.childCount?PA.none:this.node.child(d).marks,n,A),c.placeWidget(u,A,r)},(u,d,p,B)=>{c.syncToMarks(u.marks,n,A);let m;c.findNodeMatch(u,d,p,B)||a&&A.state.selection.from>r&&A.state.selection.to<r+u.nodeSize&&(m=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,d,p,m,A)||c.updateNextNode(u,d,p,A,B)||c.addNode(u,d,p,A,r),r+=u.nodeSize}),c.syncToMarks([],n,A),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Fi)&&(s&&this.protectLocalComposition(A,s),rp(this.contentDOM,this.children,A),Qi&&ZE(this.dom))}localCompositionInfo(A,e){let{from:n,to:r}=A.state.selection;if(!(A.state.selection instanceof FA)||n<e||r>e+this.node.content.size)return null;let i=A.domSelectionRange(),s=jE(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,c=AF(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 WE(this,i,e,r);A.input.compositionNodes.push(s),this.children=Qc(this.children,n,n+r.length,A,s)}update(A,e,n,r){return this.dirty==Bn||!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=tn}updateOuterDeco(A){if(yc(A,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=ip(this.dom,this.nodeDOM,Cc(this.outerDeco,this.node,e),Cc(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 tp(t,A,e,n,r){return sp(n,A,t),new Pr(void 0,t,A,e,n,n,n,r,0)}class Ro extends Pr{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==Bn||this.dirty!=tn&&!this.inParent()||!A.sameMarkup(this.node)?!1:(this.updateOuterDeco(e),(this.dirty!=tn||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=tn,!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 Ro(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=Bn)}get domAtom(){return!1}}class np extends ys{parseRule(){return{ignore:!0}}matchesHack(A){return this.dirty==tn&&this.dom.nodeName==A}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class $E extends Pr{constructor(A,e,n,r,i,s,a,c,u,d){super(A,e,n,r,i,s,a,u,d),this.spec=c}update(A,e,n,r){if(this.dirty==Bn)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 rp(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=op(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof Vr){let c=n?n.previousSibling:t.lastChild;rp(s.contentDOM,s.children,e),n=c?c.nextSibling:t.firstChild}}for(;n;)n=op(n),r=!0;r&&e.trackWrites==t&&(e.trackWrites=null)}const Qs=function(t){t&&(this.nodeName=t)};Qs.prototype=Object.create(null);const Gr=[new Qs];function Cc(t,A,e){if(t.length==0)return Gr;let n=e?Gr[0]:new Qs,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new Qs(s.nodeName));for(let a in s){let c=s[a];c!=null&&(e&&r.length==1&&r.push(n=new Qs(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 ip(t,A,e,n){if(e==Gr&&n==Gr)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=Gr[0]),r=c}JE(r,a||Gr[0],s)}return r}function JE(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 sp(t,A,e){return ip(t,t,Gr,Cc(A,e,t.nodeType!=1))}function yc(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 op(t){let A=t.nextSibling;return t.parentNode.removeChild(t),A}class XE{constructor(A,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=A,this.preMatch=YE(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=tn,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=Vr.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==Bn&&s.dom==s.contentDOM&&(s.dirty=Fi),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){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof Pr){let c=this.preMatch.matched.get(a);if(c!=null&&c!=i)return!1;let u=a.dom;if(!(this.isLocked(u)&&!(A.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==A.text&&a.dirty!=Bn&&yc(e,a.outerDeco)))&&a.update(A,e,n,r))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;break}}return!1}addNode(A,e,n,r,i){this.top.children.splice(this.index++,0,Pr.create(this.top,A,e,n,r,i)),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 ep(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 Vr;)e=A,A=e.children[e.children.length-1];(!A||!(A instanceof Ro)||/\n$/.test(A.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(A.node.text))&&((At||je)&&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 np(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 YE(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 Vr)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 zE(t,A){return t.type.side-A.type.side}function qE(t,A,e,n){let r=A.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);n(d,r,A.forChild(i,d),u),i+=d.nodeSize}return}let s=0,a=[],c=null;for(let u=0;;){if(s<r.length&&r[s].to==i){let C=r[s++],E;for(;s<r.length&&r[s].to==i;)(E||(E=[C])).push(r[s++]);if(E){E.sort(zE);for(let S=0;S<E.length;S++)e(E[S],u,!!c)}else e(C,u,!!c)}let d,p;if(c)p=-1,d=c,c=null;else if(u<t.childCount)p=u,d=t.child(u++);else break;for(let C=0;C<a.length;C++)a[C].to<=i&&a.splice(C--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let B=i+d.nodeSize;if(d.isText){let C=B;s<r.length&&r[s].from<C&&(C=r[s].from);for(let E=0;E<a.length;E++)a[E].to<C&&(C=a[E].to);C<B&&(c=d.cut(C-i),d=d.cut(0,C-i),B=C,p=-1)}let m=d.isInline&&!d.isLeaf?a.filter(C=>!C.inline):a.slice();n(d,m,A.forChild(i,d),p),i=B}}function ZE(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 jE(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=gn(t)}else if(t.nodeType==1&&A<t.childNodes.length)t=t.childNodes[A],A=0;else return null}}function AF(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){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 Qc(t,A,e,n,r){let i=[];for(let s=0,a=0;s<t.length;s++){let c=t[s],u=a,d=a+=c.size;u>=e||d<=A?i.push(c):(u<A&&i.push(c.slice(0,A-u,n)),r&&(i.push(r),r=void 0),d>e&&i.push(c.slice(e-u,c.size,n)))}return i}function Ec(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(Do(e)){for(c=a;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&uA.isSelectable(d)&&r.parent&&!(d.isInline&&UE(e.focusNode,e.focusOffset,r.dom))){let p=r.posBefore;u=new uA(s==p?a:n.resolve(p))}}else{let d=t.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(d<0)return null;c=n.resolve(d)}if(!u){let d=A=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Uc(t,c,a,d)}return u}function ap(t){return t.editable?t.hasFocus():pp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Sn(t,A=!1){let e=t.state.selection;if(fp(t,e),!!ap(t)){if(!A&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&je){let n=t.domSelectionRange(),r=t.domObserver.currentSelection;if(n.anchorNode&&r.anchorNode&&Rr(n.anchorNode,n.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)tF(t);else{let{anchor:n,head:r}=e,i,s;lp&&!(e instanceof FA)&&(e.$from.parent.inlineContent||(i=cp(t,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(s=cp(t,e.to))),t.docView.setSelection(n,r,t.root,A),lp&&(i&&up(i),s&&up(s)),e.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&eF(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const lp=At||je&&IE<63;function cp(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(At&&r&&r.contentEditable=="false")return Fc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Fc(r);if(i)return Fc(i)}}function Fc(t){return t.contentEditable="true",At&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function up(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function eF(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(()=>{(!ap(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function tF(t){let A=t.domSelection(),e=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.setEnd(n.parentNode,Qt(n)+1):e.setEnd(n,0),e.collapse(!1),A.removeAllRanges(),A.addRange(e),!r&&!t.state.selection.visible&&ht&&nr<=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&&(dp(t),e&&e.selectNode(),t.lastSelectedViewDesc=e)}else dp(t)}function dp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Uc(t,A,e,n){return t.someProp("createSelectionBetween",r=>r(t,A,e))||FA.between(A,e,n)}function hp(t){return t.editable&&!t.hasFocus()?!1:pp(t)}function pp(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 nF(t){let A=t.docView.domFromPos(t.state.selection.anchor,0),e=t.domSelectionRange();return Rr(A.node,A.offset,e.anchorNode,e.anchorOffset)}function bc(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&&yA.findFrom(i,A)}function Wr(t,A){return t.dispatch(t.state.tr.setSelection(A).scrollIntoView()),!0}function gp(t,A,e){let n=t.state.selection;if(n instanceof FA){if(!n.empty||e.indexOf("s")>-1)return!1;if(t.endOfTextblock(A>0?"right":"left")){let r=bc(t.state,A);return r&&r instanceof uA?Wr(t,r):!1}else if(!(Dt&&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)?Wr(t,new uA(A<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):No?Wr(t,new FA(t.state.doc.resolve(A<0?a:a+i.nodeSize))):!1:!1}}else{if(n instanceof uA&&n.node.isInline)return Wr(t,new FA(A>0?n.$to:n.$from));{let r=bc(t.state,A);return r?Wr(t,r):!1}}}function Ko(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Es(t){let A=t.pmViewDesc;return A&&A.size==0&&(t.nextSibling||t.nodeName!="BR")}function vc(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r,i,s=!1;for(An&&e.nodeType==1&&n<Ko(e)&&Es(e.childNodes[n])&&(s=!0);;)if(n>0){if(e.nodeType!=1)break;{let a=e.childNodes[n-1];if(Es(a))r=e,i=--n;else if(a.nodeType==3)e=a,n=e.nodeValue.length;else break}}else{if(Bp(e))break;{let a=e.previousSibling;for(;a&&Es(a);)r=e.parentNode,i=Qt(a),a=a.previousSibling;if(a)e=a,n=Ko(e);else{if(e=e.parentNode,e==t.dom)break;n=0}}}s?Sc(t,e,n):r&&Sc(t,r,i)}function Ic(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r=Ko(e),i,s;for(;;)if(n<r){if(e.nodeType!=1)break;let a=e.childNodes[n];if(Es(a))i=e,s=++n;else break}else{if(Bp(e))break;{let a=e.nextSibling;for(;a&&Es(a);)i=a.parentNode,s=Qt(a)+1,a=a.nextSibling;if(a)e=a,n=0,r=Ko(e);else{if(e=e.parentNode,e==t.dom)break;n=r=0}}}i&&Sc(t,i,s)}function Bp(t){let A=t.pmViewDesc;return A&&A.node&&A.node.isBlock}function Sc(t,A,e){let n=t.domSelection();if(Do(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&&Sn(t)},50)}function mp(t,A,e){let n=t.state.selection;if(n instanceof FA&&!n.empty||e.indexOf("s")>-1||Dt&&e.indexOf("m")>-1)return!1;let{$from:r,$to:i}=n;if(!r.parent.inlineContent||t.endOfTextblock(A<0?"up":"down")){let s=bc(t.state,A);if(s&&s instanceof uA)return Wr(t,s)}if(!r.parent.inlineContent){let s=A<0?r:i,a=n instanceof jt?yA.near(s,A):yA.findFrom(s,A);return a?Wr(t,a):!1}return!1}function wp(t,A){if(!(t.state.selection instanceof FA))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 Cp(t,A,e){t.domObserver.stop(),A.contentEditable=e,t.domObserver.start()}function rF(t){if(!At||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;Cp(t,n,"true"),setTimeout(()=>Cp(t,n,"false"),20)}return!1}function iF(t){let A="";return t.ctrlKey&&(A+="c"),t.metaKey&&(A+="m"),t.altKey&&(A+="a"),t.shiftKey&&(A+="s"),A}function sF(t,A){let e=A.keyCode,n=iF(A);return e==8||Dt&&e==72&&n=="c"?wp(t,-1)||vc(t):e==46||Dt&&e==68&&n=="c"?wp(t,1)||Ic(t):e==13||e==27?!0:e==37||Dt&&e==66&&n=="c"?gp(t,-1,n)||vc(t):e==39||Dt&&e==70&&n=="c"?gp(t,1,n)||Ic(t):e==38||Dt&&e==80&&n=="c"?mp(t,-1,n)||vc(t):e==40||Dt&&e==78&&n=="c"?rF(t)||mp(t,1,n)||Ic(t):n==(Dt?"m":"c")&&(e==66||e==73||e==89||e==90)}function yp(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")||dn.fromSchema(t.state.schema),a=Sp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,d,p=0;for(;u&&u.nodeType==1&&(d=vp[u.nodeName.toLowerCase()]);){for(let m=d.length-1;m>=0;m--){let C=a.createElement(d[m]);for(;c.firstChild;)C.appendChild(c.firstChild);c.appendChild(C),p++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${p?` -${p}`:""} ${JSON.stringify(e)}`);let B=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=PA.none,n=PA.none;A: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)continue A;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.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=hh(A,r,i.options);i.options&ps&&i.content.length==0&&(s|=ps),this.nodes.push(new Lo(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 d=c>0||c==0&&r?this.nodes[c].type:n&&c>=i?n.node(c-i).type:null;if(!d||d.name!=u&&d.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=zQ(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 $Q(t){for(let A=t.firstChild,e=null;A;A=A.nextSibling){let n=A.nodeType==1?A.nodeName.toLowerCase():null;n&&dh.hasOwnProperty(n)&&e?(e.appendChild(A),A=e):n=="li"?e=A:n&&(e=null)}}function JQ(t,A){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,A)}function XQ(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 gh(t){let A={};for(let e in t)A[e]=t[e];return A}function YQ(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:d}=a.edge(c);if(u==A||i.indexOf(d)<0&&s(d))return!0}};if(s(r.contentMatch))return!0}}function zQ(t,A){for(let e=0;e<A.length;e++)if(t.eq(A[e]))return A[e]}class dn{constructor(A,e){this.nodes=A,this.marks=e}serializeFragment(A,e={},n){n||(n=tc(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++],d=this.serializeMark(u,s.isInline,e);d&&(i.push([u,r]),r.appendChild(d.dom),r=d.contentDOM||d.dom)}}r.appendChild(this.serializeNodeInner(s,e))}),n}serializeNodeInner(A,e){let{dom:n,contentDOM:r}=dn.renderSpec(tc(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&&dn.renderSpec(tc(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 d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?a.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:B,contentDOM:m}=dn.renderSpec(A,p,n);if(a.appendChild(B),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 dn(this.nodesFromSchema(A),this.marksFromSchema(A)))}static nodesFromSchema(A){let e=Bh(A.nodes);return e.text||(e.text=n=>n.text),e}static marksFromSchema(A){return Bh(A.marks)}}function Bh(t){let A={};for(let e in t){let n=t[e].spec.toDOM;n&&(A[e]=n)}return A}function tc(t){return t.document||window.document}const mh=65535,wh=Math.pow(2,16);function qQ(t,A){return t+A*wh}function Ch(t){return t&mh}function ZQ(t){return(t-(t&mh))/wh}const yh=1,Qh=2,Oo=4,Eh=8;class nc{constructor(A,e,n){this.pos=A,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Eh)>0}get deletedBefore(){return(this.delInfo&(yh|Oo))>0}get deletedAfter(){return(this.delInfo&(Qh|Oo))>0}get deletedAcross(){return(this.delInfo&Oo)>0}}class Dt{constructor(A,e=!1){if(this.ranges=A,this.inverted=e,!A.length&&Dt.empty)return Dt.empty}recover(A){let e=0,n=Ch(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+ZQ(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],d=this.ranges[a+s],p=c+u;if(A<=p){let B=u?A==c?-1:A==p?1:e:e,m=c+r+(B<0?0:d);if(n)return m;let C=A==(e<0?c:p)?null:qQ(a/3,A-c),E=A==c?Qh:A==p?yh:Oo;return(e<0?A!=c:A!=p)&&(E|=Eh),new nc(m,E,C)}r+=d-u}return n?A+r:new nc(A+r,0,null)}touches(A,e){let n=0,r=Ch(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],d=c+u;if(A<=d&&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],d=this.ranges[r+n];A(a,a+u,c,c+d),i+=d-u}}invert(){return new Dt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(A){return A==0?Dt.empty:new Dt(A<0?[0,-A,0]:[0,0,A])}}Dt.empty=new Dt([]);class hi{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 hi(this.maps,this.mirror,A,e)}copy(){return new hi(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 hi;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 nc(A,r,null)}}const rc=Object.create(null);class ft{getMap(){return Dt.empty}merge(A){return null}static fromJSON(A,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=rc[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 rc)throw new RangeError("Duplicate use of step JSON ID "+A);return rc[A]=e,e.prototype.jsonID=A,e}}class Ce{constructor(A,e){this.doc=A,this.failed=e}static ok(A){return new Ce(A,null)}static fail(A){return new Ce(null,A)}static fromReplace(A,e,n,r){try{return Ce.ok(A.replace(e,n,r))}catch(i){if(i instanceof vo)return Ce.fail(i.message);throw i}}}function ic(t,A,e){let n=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(ic(i.content,A,i))),i.isInline&&(i=A(i,e,r)),n.push(i)}return X.fromArray(n)}class Zn extends ft{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(ic(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 Ce.fromReplace(A,this.from,this.to,i)}invert(){return new hn(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 Zn(e.pos,n.pos,this.mark)}merge(A){return A instanceof Zn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new Zn(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 Zn(e.from,e.to,A.markFromJSON(e.mark))}}ft.jsonID("addMark",Zn);class hn extends ft{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(ic(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),A),e.openStart,e.openEnd);return Ce.fromReplace(A,this.from,this.to,n)}invert(){return new Zn(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 hn(e.pos,n.pos,this.mark)}merge(A){return A instanceof hn&&A.mark.eq(this.mark)&&this.from<=A.to&&this.to>=A.from?new hn(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 hn(e.from,e.to,A.markFromJSON(e.mark))}}ft.jsonID("removeMark",hn);class jn extends ft{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Ce.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Ce.fromReplace(A,this.pos,this.pos+1,new j(X.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 jn(this.pos,e.marks[r]);return new jn(this.pos,this.mark)}}return new pi(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new jn(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 jn(e.pos,A.markFromJSON(e.mark))}}ft.jsonID("addNodeMark",jn);class pi extends ft{constructor(A,e){super(),this.pos=A,this.mark=e}apply(A){let e=A.nodeAt(this.pos);if(!e)return Ce.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Ce.fromReplace(A,this.pos,this.pos+1,new j(X.from(n),0,e.isLeaf?0:1))}invert(A){let e=A.nodeAt(this.pos);return!e||!this.mark.isInSet(e.marks)?this:new jn(this.pos,this.mark)}map(A){let e=A.mapResult(this.pos,1);return e.deletedAfter?null:new pi(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 pi(e.pos,A.markFromJSON(e.mark))}}ft.jsonID("removeNodeMark",pi);class Ge extends ft{constructor(A,e,n,r=!1){super(),this.from=A,this.to=e,this.slice=n,this.structure=r}apply(A){return this.structure&&sc(A,this.from,this.to)?Ce.fail("Structure replace would overwrite content"):Ce.fromReplace(A,this.from,this.to,this.slice)}getMap(){return new Dt([this.from,this.to-this.from,this.slice.size])}invert(A){return new Ge(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 Ge(e.pos,Math.max(e.pos,n.pos),this.slice)}merge(A){if(!(A instanceof Ge)||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 Ge(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 Ge(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 Ge(e.from,e.to,j.fromJSON(A,e.slice),!!e.structure)}}ft.jsonID("replace",Ge);class ve extends ft{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&&(sc(A,this.from,this.gapFrom)||sc(A,this.gapTo,this.to)))return Ce.fail("Structure gap-replace would overwrite content");let e=A.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Ce.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?Ce.fromReplace(A,this.from,this.to,n):Ce.fail("Content does not fit in gap")}getMap(){return new Dt([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 ve(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 ve(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 ve(e.from,e.to,e.gapFrom,e.gapTo,j.fromJSON(A,e.slice),e.insert,!!e.structure)}}ft.jsonID("replaceAround",ve);function sc(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 jQ(t,A,e,n){let r=[],i=[],s,a;t.doc.nodesBetween(A,e,(c,u,d)=>{if(!c.isInline)return;let p=c.marks;if(!n.isInSet(p)&&d.type.allowsMarkType(n.type)){let B=Math.max(u,A),m=Math.min(u+c.nodeSize,e),C=n.addToSet(p);for(let E=0;E<p.length;E++)p[E].isInSet(C)||(s&&s.to==B&&s.mark.eq(p[E])?s.to=m:r.push(s=new hn(B,m,p[E])));a&&a.to==B?a.to=m:i.push(a=new Zn(B,m,n))}}),r.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function AE(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 xo){let u=s.marks,d;for(;d=n.isInSet(u);)(c||(c=[])).push(d),u=d.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 d=0;d<c.length;d++){let p=c[d],B;for(let m=0;m<r.length;m++){let C=r[m];C.step==i-1&&p.eq(r[m].style)&&(B=C)}B?(B.to=u,B.step=i):r.push({style:p,from:Math.max(a,A),to:u,step:i})}}}),r.forEach(s=>t.step(new hn(s.from,s.to,s.style)))}function eE(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,d=n.matchType(c.type);if(!d)i.push(new Ge(s,u,j.empty));else{n=d;for(let p=0;p<c.marks.length;p++)e.allowsMarkType(c.marks[p].type)||t.step(new hn(s,u,c.marks[p]))}s=u}if(!n.validEnd){let a=n.fillBefore(X.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 tE(t,A,e){return(A==0||t.canReplace(A,t.childCount))&&(e==t.childCount||t.canReplace(0,e))}function gi(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||!tE(r,i,s))break}return null}function nE(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,d=X.empty,p=0;for(let C=i,E=!1;C>e;C--)E||n.index(C)>0?(E=!0,d=X.from(n.node(C).copy(d)),p++):c--;let B=X.empty,m=0;for(let C=i,E=!1;C>e;C--)E||r.after(C+1)<r.end(C)?(E=!0,B=X.from(r.node(C).copy(B)),m++):u++;t.step(new ve(c,u,s,a,new j(d.append(B),p,m),d.size-p,!0))}function oc(t,A,e=null,n=t){let r=rE(t,A),i=r&&iE(n,A);return i?r.map(Fh).concat({type:A,attrs:e}).concat(i.map(Fh)):null}function Fh(t){return{type:t,attrs:null}}function rE(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 iE(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 sE(t,A,e){let n=X.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=X.from(e[s].type.create(e[s].attrs,n))}let r=A.start,i=A.end;t.step(new ve(r,i,r,i,new j(n,0,0),e.length,!0))}function oE(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)&&aE(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),d=c.map(a+s.nodeSize,1);return t.step(new ve(u,d,u+1,d-1,new j(X.from(n.create(r,null,s.marks)),0,0),1,!0)),!1}})}function aE(t,A,e){let n=t.resolve(A),r=n.index();return n.parent.canReplaceWith(r,r+1,e)}function lE(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 ve(A,A+i.nodeSize,A+1,A+i.nodeSize-1,new j(X.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,d=e-2;u>i;u--,d--){let p=r.node(u),B=r.index(u);if(p.type.spec.isolating)return!1;let m=p.content.cutByIndex(B,p.childCount),C=n&&n[d]||p;if(C!=p&&(m=m.replaceChild(0,C.type.create(C.attrs))),!p.canReplace(B+1,p.childCount)||!C.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 cE(t,A,e=1,n){let r=t.doc.resolve(A),i=X.empty,s=X.empty;for(let a=r.depth,c=r.depth-e,u=e-1;a>c;a--,u--){i=X.from(r.node(a).copy(i));let d=n&&n[u];s=X.from(d?d.type.create(d.attrs,s):r.node(a).copy(s))}t.step(new Ge(A,A,new j(i.append(s),e,e),!0))}function Ar(t,A){let e=t.resolve(A),n=e.index();return Uh(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(n,n+1)}function Uh(t,A){return!!(t&&A&&!t.isLeaf&&t.canAppend(A))}function bh(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&&Uh(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 uE(t,A,e){let n=new Ge(A-e,A+e,j.empty,!0);t.step(n)}function fE(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 vh(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),d=!1;if(i==1)d=u.canReplace(c,c,r);else{let p=u.contentMatchAt(c).findWrapping(r.firstChild.type);d=p&&u.canReplaceWith(c,c,p[0])}if(d)return a==0?n.pos:a<0?n.before(s+1):n.after(s+1)}return null}function ac(t,A,e=A,n=j.empty){if(A==e&&!n.size)return null;let r=t.resolve(A),i=t.resolve(e);return Ih(r,i,n)?new Ge(A,e,n):new dE(r,i,n).fit()}function Ih(t,A,e){return!e.openStart&&!e.openEnd&&t.start()==A.start()&&t.parent.canReplace(t.index(),A.index(),e.content)}class dE{constructor(A,e,n){this.$from=A,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=X.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=X.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 ve(n.pos,A,this.$to.pos,this.$to.end(),c,e):c.size||n.pos!=this.$to.pos?new Ge(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=lc(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],d,p=null;if(e==1&&(s?u.matchType(s.type)||(p=u.fillBefore(X.from(s),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:p};if(e==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:a,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:A,openStart:e,openEnd:n}=this.unplaced,r=lc(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=lc(A,e);if(r.childCount<=1&&e>0){let i=A.size-e<=e+r.size;this.unplaced=new j(gs(A,e-1,1),e-1,i?e-1:n)}else this.unplaced=new j(gs(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 E=0;E<i.length;E++)this.openFrontierNode(i[E]);let s=this.unplaced,a=n?n.content:s.content,c=s.openStart-A,u=0,d=[],{match:p,type:B}=this.frontier[e];if(r){for(let E=0;E<r.childCount;E++)d.push(r.child(E));p=p.matchFragment(r)}let m=a.size+A-(s.content.size-s.openEnd);for(;u<a.childCount;){let E=a.child(u),S=p.matchType(E.type);if(!S)break;u++,(u>1||c==0||E.content.size)&&(p=S,d.push(Sh(E.mark(B.allowedMarks(E.marks)),u==1?c:0,u==a.childCount?m:-1)))}let C=u==a.childCount;C||(m=-1),this.placed=Bs(this.placed,e,X.from(d)),this.frontier[e].match=p,C&&m<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let E=0,S=a;E<m;E++){let U=S.lastChild;this.frontier.push({type:U.type,match:U.contentMatchAt(U.childCount)}),S=U.content}this.unplaced=C?A==0?j.empty:new j(gs(s.content,A-1,1),A-1,m<0?s.openEnd:A-1):new j(gs(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||!cc(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=cc(A,e,r,n,i);if(s){for(let a=e-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],d=cc(A,a,u,c,!0);if(!d||d.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=Bs(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=Bs(this.placed,this.depth,X.from(A.create(e,n))),this.frontier.push({type:A,match:A.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(X.empty,!0);e.childCount&&(this.placed=Bs(this.placed,this.frontier.length,e))}}function gs(t,A,e){return A==0?t.cutByIndex(e,t.childCount):t.replaceChild(0,t.firstChild.copy(gs(t.firstChild.content,A-1,e)))}function Bs(t,A,e){return A==0?t.append(e):t.replaceChild(t.childCount-1,t.lastChild.copy(Bs(t.lastChild.content,A-1,e)))}function lc(t,A){for(let e=0;e<A;e++)t=t.firstChild.content;return t}function Sh(t,A,e){if(A<=0)return t;let n=t.content;return A>1&&(n=n.replaceChild(0,Sh(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(X.empty,!0)))),t.copy(n)}function cc(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&&!hE(e,i.content,s)?a:null}function hE(t,A,e){for(let n=e;n<A.childCount;n++)if(!t.allowsMarks(A.child(n).marks))return!0;return!1}function pE(t){return t.spec.defining||t.spec.definingForContent}function gE(t,A,e,n){if(!n.size)return t.deleteRange(A,e);let r=t.doc.resolve(A),i=t.doc.resolve(e);if(Ih(r,i,n))return t.step(new Ge(A,e,n));let s=xh(r,t.doc.resolve(e));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let B=r.depth,m=r.pos-1;B>0;B--,m--){let C=r.node(B).type.spec;if(C.defining||C.definingAsContext||C.isolating)break;s.indexOf(B)>-1?a=B:r.before(B)==m&&s.splice(1,0,-B)}let c=s.indexOf(a),u=[],d=n.openStart;for(let B=n.content,m=0;;m++){let C=B.firstChild;if(u.push(C),m==n.openStart)break;B=C.content}for(let B=d-1;B>=0;B--){let m=u[B].type,C=pE(m);if(C&&r.node(c).type!=m)d=B;else if(C||!m.isTextblock)break}for(let B=n.openStart;B>=0;B--){let m=(B+d+1)%(n.openStart+1),C=u[m];if(C)for(let E=0;E<s.length;E++){let S=s[(E+c)%s.length],U=!0;S<0&&(U=!1,S=-S);let v=r.node(S-1),M=r.index(S-1);if(v.canReplaceWith(M,M,C.type,C.marks))return t.replace(r.before(S),U?i.after(S):e,new j(Th(n.content,0,n.openStart,m),m,n.openEnd))}}let p=t.steps.length;for(let B=s.length-1;B>=0&&(t.replace(A,e,n),!(t.steps.length>p));B--){let m=s[B];m<0||(A=r.before(m),e=i.after(m))}}function Th(t,A,e,n,r){if(A<e){let i=t.firstChild;t=t.replaceChild(0,i.copy(Th(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(X.empty,!0))}return t}function BE(t,A,e,n){if(!n.isInline&&A==e&&t.doc.resolve(A).parent.content.size){let r=fE(t.doc,A,n.type);r!=null&&(A=e=r)}t.replaceRange(A,e,new j(X.from(n),0,0))}function mE(t,A,e){let n=t.doc.resolve(A),r=t.doc.resolve(e),i=xh(n,r);for(let s=0;s<i.length;s++){let a=i[s],c=s==i.length-1;if(c&&a==0||n.node(a).type.contentMatch.validEnd)return t.delete(n.start(a),r.end(a));if(a>0&&(c||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return t.delete(n.before(a),r.after(a))}for(let s=1;s<=n.depth&&s<=r.depth;s++)if(A-n.start(s)==n.depth-s&&e>n.end(s)&&r.end(s)-e!=r.depth-s)return t.delete(n.before(s),e);t.delete(A,e)}function xh(t,A){let e=[],n=Math.min(t.depth,A.depth);for(let r=n;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||A.end(r)>A.pos+(A.depth-r)||t.node(r).type.spec.isolating||A.node(r).type.spec.isolating)break;(i==A.start(r)||r==t.depth&&r==A.depth&&t.parent.inlineContent&&A.parent.inlineContent&&r&&A.start(r-1)==i-1)&&e.push(r)}return e}class mi extends ft{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 Ce.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 Ce.fromReplace(A,this.pos,this.pos+1,new j(X.from(r),0,e.isLeaf?0:1))}getMap(){return Dt.empty}invert(A){return new mi(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 mi(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 mi(e.pos,e.attr,e.value)}}ft.jsonID("attr",mi);let wi=class extends Error{};wi=function t(A){let e=Error.call(this,A);return e.__proto__=t.prototype,e},wi.prototype=Object.create(Error.prototype),wi.prototype.constructor=wi,wi.prototype.name="TransformError";class wE{constructor(A){this.doc=A,this.steps=[],this.docs=[],this.mapping=new hi}get before(){return this.docs.length?this.docs[0]:this.doc}step(A){let e=this.maybeStep(A);if(e.failed)throw new wi(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=ac(this.doc,A,e,n);return r&&this.step(r),this}replaceWith(A,e,n){return this.replace(A,e,new j(X.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 gE(this,A,e,n),this}replaceRangeWith(A,e,n){return BE(this,A,e,n),this}deleteRange(A,e){return mE(this,A,e),this}lift(A,e){return nE(this,A,e),this}join(A,e=1){return uE(this,A,e),this}wrap(A,e){return sE(this,A,e),this}setBlockType(A,e=A,n,r=null){return oE(this,A,e,n,r),this}setNodeMarkup(A,e,n=null,r){return lE(this,A,e,n,r),this}setNodeAttribute(A,e,n){return this.step(new mi(A,e,n)),this}addNodeMark(A,e){return this.step(new jn(A,e)),this}removeNodeMark(A,e){if(!(e instanceof PA)){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 pi(A,e)),this}split(A,e=1,n){return cE(this,A,e,n),this}addMark(A,e,n){return jQ(this,A,e,n),this}removeMark(A,e,n){return AE(this,A,e,n),this}clearIncompatible(A,e,n){return eE(this,A,e,n),this}}const uc=Object.create(null);class yA{constructor(A,e,n){this.$anchor=A,this.$head=e,this.ranges=n||[new CE(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],d=A.mapping.slice(i);A.replaceRange(d.map(c.pos),d.map(u.pos),a?j.empty:e),a==0&&Lh(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),d=c.map(a.pos);i?A.deleteRange(u,d):(A.replaceRangeWith(u,d,e),Lh(A,n,e.isInline?-1:1))}}static findFrom(A,e,n=!1){let r=A.parent.inlineContent?new FA(A):Ci(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?Ci(A.node(0),A.node(i),A.before(i+1),A.index(i),e,n):Ci(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 jt(A.node(0))}static atStart(A){return Ci(A,A,0,0,1)||new jt(A)}static atEnd(A){return Ci(A,A,A.content.size,A.childCount,-1)||new jt(A)}static fromJSON(A,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=uc[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 uc)throw new RangeError("Duplicate use of selection JSON ID "+A);return uc[A]=e,e.prototype.jsonID=A,e}getBookmark(){return FA.between(this.$anchor,this.$head).getBookmark()}}yA.prototype.visible=!0;class CE{constructor(A,e){this.$from=A,this.$to=e}}let Hh=!1;function _h(t){!Hh&&!t.parent.inlineContent&&(Hh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class FA extends yA{constructor(A,e=A){_h(A),_h(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 yA.near(n);let r=A.resolve(e.map(this.anchor));return new FA(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 FA&&A.anchor==this.anchor&&A.head==this.head}getBookmark(){return new Mo(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 FA(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=yA.findFrom(e,n,!0)||yA.findFrom(e,-n,!0);if(i)e=i.$head;else return yA.near(e,n)}return A.parent.inlineContent||(r==0?A=e:(A=(yA.findFrom(A,-n,!0)||yA.findFrom(A,n,!0)).$anchor,A.pos<e.pos!=r<0&&(A=e))),new FA(A,e)}}yA.jsonID("text",FA);class Mo{constructor(A,e){this.anchor=A,this.head=e}map(A){return new Mo(A.map(this.anchor),A.map(this.head))}resolve(A){return FA.between(A.resolve(this.anchor),A.resolve(this.head))}}class uA extends yA{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?yA.near(i):new uA(i)}content(){return new j(X.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 fc(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,yA.jsonID("node",uA);class fc{constructor(A){this.anchor=A}map(A){let{deleted:e,pos:n}=A.mapResult(this.anchor);return e?new Mo(n,n):new fc(n)}resolve(A){let e=A.resolve(this.anchor),n=e.nodeAfter;return n&&uA.isSelectable(n)?new uA(e):yA.near(e)}}class jt extends yA{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=yA.atStart(A.doc);n.eq(A.selection)||A.setSelection(n)}else super.replace(A,e)}toJSON(){return{type:"all"}}static fromJSON(A){return new jt(A)}map(A){return new jt(A)}eq(A){return A instanceof jt}getBookmark(){return yE}}yA.jsonID("all",jt);const yE={map(){return this},resolve(t){return new jt(t)}};function Ci(t,A,e,n,r,i=!1){if(A.inlineContent)return FA.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=Ci(t,a,e+r,r<0?a.childCount:0,r,i);if(c)return c}e+=a.nodeSize*r}return null}function Lh(t,A,e){let n=t.steps.length-1;if(n<A)return;let r=t.steps[n];if(!(r instanceof Ge||r instanceof ve))return;let i=t.mapping.maps[n],s;i.forEach((a,c,u,d)=>{s==null&&(s=d)}),t.setSelection(yA.near(t.doc.resolve(s),e))}const Oh=1,Do=2,Mh=4;class QE extends wE{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|Oh)&~Do,this.storedMarks=null,this}get selectionSet(){return(this.updated&Oh)>0}setStoredMarks(A){return this.storedMarks=A,this.updated|=Do,this}ensureMarks(A){return PA.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&Do)>0}addStep(A,e){super.addStep(A,e),this.updated=this.updated&~Do,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)||PA.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(yA.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|=Mh,this}get scrolledIntoView(){return(this.updated&Mh)>0}}function Dh(t,A){return!A||!t?t:t.bind(A)}class ms{constructor(A,e,n){this.name=A,this.init=Dh(e.init,n),this.apply=Dh(e.apply,n)}}const EE=[new ms("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new ms("selection",{init(t,A){return t.selection||yA.atStart(A.doc)},apply(t){return t.selection}}),new ms("storedMarks",{init(t){return t.storedMarks||null},apply(t,A,e,n){return n.selection.$cursor?t.storedMarks:null}}),new ms("scrollToSelection",{init(){return 0},apply(t,A){return t.scrolledIntoView?A+1:A}})];class dc{constructor(A,e){this.schema=A,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=EE.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 ms(n.key,n.spec.state,n))})}}class yi{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,d=c<e.length&&a.spec.appendTransaction.call(a,c?e.slice(c):e,u,n);if(d&&n.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",A),!r){r=[];for(let p=0;p<this.config.plugins.length;p++)r.push(p<s?{state:n,n:e.length}:{state:this,n:0})}e.push(d),n=n.applyInner(d),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 yi(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 QE(this)}static create(A){let e=new dc(A.doc?A.doc.type.schema:A.schema,A.plugins),n=new yi(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 dc(this.schema,A.plugins),n=e.fields,r=new yi(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 dc(A.schema,A.plugins),i=new yi(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=kr.fromJSON(A.schema,e.doc);else if(s.name=="selection")i.selection=yA.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 kh(t,A,e){for(let n in t){let r=t[n];r instanceof Function?r=r.bind(A):n=="handleDOMEvents"&&(r=kh(r,A,{})),e[n]=r}return e}class dt{constructor(A){this.spec=A,this.props={},A.props&&kh(A.props,this,this.props),this.key=A.key?A.key.key:Nh("plugin")}getState(A){return A[this.key]}}const hc=Object.create(null);function Nh(t){return t in hc?t+"$"+ ++hc[t]:(hc[t]=0,t+"$")}class pn{constructor(A="key"){this.key=Nh(A)}get(A){return A.config.pluginsByKey[this.key]}getState(A){return A[this.key]}}const Qt=function(t){for(var A=0;;A++)if(t=t.previousSibling,!t)return A},ws=function(t){let A=t.assignedSlot||t.parentNode;return A&&A.nodeType==11?A.host:A};let Rh=null;const In=function(t,A,e){let n=Rh||(Rh=document.createRange());return n.setEnd(t,e??t.nodeValue.length),n.setStart(t,A||0),n},Rr=function(t,A,e,n){return e&&(Kh(t,A,e,n,-1)||Kh(t,A,e,n,1))},FE=/^(img|br|input|textarea|hr)$/i;function Kh(t,A,e,n,r){for(;;){if(t==e&&A==n)return!0;if(A==(r<0?0:gn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||bE(t)||FE.test(t.nodeName)||t.contentEditable=="false")return!1;A=Qt(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?gn(t):0}else return!1}}function gn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function UE(t,A,e){for(let n=A==0,r=A==gn(t);n||r;){if(t==e)return!0;let i=Qt(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,r=r&&i==gn(t)}}function bE(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 ko=function(t){return t.focusNode&&Rr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Kr(t,A){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=t,e.key=e.code=A,e}function vE(t){let A=t.activeElement;for(;A&&A.shadowRoot;)A=A.shadowRoot.activeElement;return A}const er=typeof navigator<"u"?navigator:null,Vh=typeof document<"u"?document:null,tr=er&&er.userAgent||"",pc=/Edge\/(\d+)/.exec(tr),Ph=/MSIE \d/.exec(tr),gc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tr),ht=!!(Ph||gc||pc),nr=Ph?document.documentMode:gc?+gc[1]:pc?+pc[1]:0,An=!ht&&/gecko\/(\d+)/i.test(tr);An&&+(/Firefox\/(\d+)/.exec(tr)||[0,0])[1];const Bc=!ht&&/Chrome\/(\d+)/.exec(tr),je=!!Bc,IE=Bc?+Bc[1]:0,At=!ht&&!!er&&/Apple Computer/.test(er.vendor),Qi=At&&(/Mobile\/\w+/.test(tr)||!!er&&er.maxTouchPoints>2),kt=Qi||(er?/Mac/.test(er.platform):!1),en=/Android \d/.test(tr),No=!!Vh&&"webkitFontSmoothing"in Vh.documentElement.style,SE=No?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function TE(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function rr(t,A){return typeof t=="number"?t:t[A]}function xE(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 Gh(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=ws(s)){if(s.nodeType!=1)continue;let a=s,c=a==i.body,u=c?TE(i):xE(a),d=0,p=0;if(A.top<u.top+rr(n,"top")?p=-(u.top-A.top+rr(r,"top")):A.bottom>u.bottom-rr(n,"bottom")&&(p=A.bottom-u.bottom+rr(r,"bottom")),A.left<u.left+rr(n,"left")?d=-(u.left-A.left+rr(r,"left")):A.right>u.right-rr(n,"right")&&(d=A.right-u.right+rr(r,"right")),d||p)if(c)i.defaultView.scrollBy(d,p);else{let B=a.scrollLeft,m=a.scrollTop;p&&(a.scrollTop+=p),d&&(a.scrollLeft+=d);let C=a.scrollLeft-B,E=a.scrollTop-m;A={left:A.left-C,top:A.top-E,right:A.right-C,bottom:A.bottom-E}}if(c)break}}function HE(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:Wh(t.dom)}}function Wh(t){let A=[],e=t.ownerDocument;for(let n=t;n&&(A.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=e);n=ws(n));return A}function _E({refDOM:t,refTop:A,stack:e}){let n=t?t.getBoundingClientRect().top:0;$h(e,n==0?0:n-A)}function $h(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 Ei=null;function LE(t){if(t.setActive)return t.setActive();if(Ei)return t.focus(Ei);let A=Wh(t);t.focus(Ei==null?{get preventScroll(){return Ei={preventScroll:!0},!0}}:void 0),Ei||(Ei=!1,$h(A,0))}function Jh(t,A){let e,n=2e8,r,i=0,s=A.top,a=A.top;for(let c=t.firstChild,u=0;c;c=c.nextSibling,u++){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=In(c).getClientRects();else continue;for(let p=0;p<d.length;p++){let B=d[p];if(B.top<=s&&B.bottom>=a){s=Math.max(B.bottom,s),a=Math.min(B.top,a);let m=B.left>A.left?B.left-A.left:B.right<A.left?A.left-B.right:0;if(m<n){e=c,n=m,r=m&&e.nodeType==3?{left:B.right<A.left?B.right:B.left,top:A.top}:A,c.nodeType==1&&m&&(i=u+(A.left>=(B.left+B.right)/2?1:0));continue}}!e&&(A.left>=B.right&&A.top>=B.top||A.left>=B.left&&A.top>=B.bottom)&&(i=u+1)}}return e&&e.nodeType==3?OE(e,r):!e||n&&e.nodeType==1?{node:t,offset:i}:Jh(e,r)}function OE(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=ir(n,1);if(i.top!=i.bottom&&mc(A,i))return{node:t,offset:r+(A.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function mc(t,A){return t.left>=A.left-1&&t.left<=A.right+1&&t.top>=A.top-1&&t.top<=A.bottom+1}function ME(t,A){let e=t.parentNode;return e&&/^li$/i.test(e.nodeName)&&A.left<t.getBoundingClientRect().left?e:t}function DE(t,A,e){let{node:n,offset:r}=Jh(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 kE(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)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 Xh(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(mc(A,u))return Xh(s,A,u)}}if((i=(i+1)%n)==r)break}return t}function NE(t,A){let e=t.dom.ownerDocument,n,r=0;if(e.caretPositionFromPoint)try{let c=e.caretPositionFromPoint(A.left,A.top);c&&({offsetNode:n,offset:r}=c)}catch{}if(!n&&e.caretRangeFromPoint){let c=e.caretRangeFromPoint(A.left,A.top);c&&({startContainer:n,startOffset:r}=c)}let i=(t.root.elementFromPoint?t.root:e).elementFromPoint(A.left,A.top),s;if(!i||!t.dom.contains(i.nodeType!=1?i.parentNode:i)){let c=t.dom.getBoundingClientRect();if(!mc(A,c)||(i=Xh(t.dom,A,c),!i))return null}if(At)for(let c=i;n&&c;c=ws(c))c.draggable&&(n=void 0);if(i=ME(i,A),n){if(An&&n.nodeType==1&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let c=n.childNodes[r],u;c.nodeName=="IMG"&&(u=c.getBoundingClientRect()).right<=A.left&&u.bottom>A.top&&r++}n==t.dom&&r==n.childNodes.length-1&&n.lastChild.nodeType==1&&A.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(r==0||n.nodeType!=1||n.childNodes[r-1].nodeName!="BR")&&(s=kE(t,n,r,A))}s==null&&(s=DE(t,i,A));let a=t.docView.nearestDesc(i,!0);return{pos:s,inside:a?a.posAtStart-a.border:-1}}function ir(t,A){let e=t.getClientRects();return e.length?e[A<0?0:e.length-1]:t.getBoundingClientRect()}const RE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Yh(t,A,e){let{node:n,offset:r,atom:i}=t.docView.domFromPos(A,e<0?-1:1),s=No||An;if(n.nodeType==3)if(s&&(RE.test(n.nodeValue)||(e<0?!r:r==n.nodeValue.length))){let c=ir(In(n,r,r),e);if(An&&r&&/\s/.test(n.nodeValue[r-1])&&r<n.nodeValue.length){let u=ir(In(n,r-1,r-1),-1);if(u.top==c.top){let d=ir(In(n,r,r+1),-1);if(d.top!=c.top)return Cs(d,d.left<u.left)}}return c}else{let c=r,u=r,d=e<0?1:-1;return e<0&&!r?(u++,d=-1):e>=0&&r==n.nodeValue.length?(c--,d=1):e<0?c--:u++,Cs(ir(In(n,c,u),1),d<0)}if(!t.state.doc.resolve(A-(i||0)).parent.inlineContent){if(i==null&&r&&(e<0||r==gn(n))){let c=n.childNodes[r-1];if(c.nodeType==1)return wc(c.getBoundingClientRect(),!1)}if(i==null&&r<gn(n)){let c=n.childNodes[r];if(c.nodeType==1)return wc(c.getBoundingClientRect(),!0)}return wc(n.getBoundingClientRect(),e>=0)}if(i==null&&r&&(e<0||r==gn(n))){let c=n.childNodes[r-1],u=c.nodeType==3?In(c,gn(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return Cs(ir(u,1),!1)}if(i==null&&r<gn(n)){let c=n.childNodes[r];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?In(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return Cs(ir(u,-1),!0)}return Cs(ir(n.nodeType==3?In(n):n,-e),e>=0)}function Cs(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 wc(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 zh(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 KE(t,A,e){let n=A.selection,r=e=="up"?n.$from:n.$to;return zh(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=Yh(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=In(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(e=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const VE=/[\u0590-\u08ac]/;function PE(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!VE.test(n.parent.textContent)||!a.modify?e=="left"||e=="backward"?i:s:zh(t,A,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:p}=t.domSelectionRange(),B=a.caretBidiLevel;a.modify("move",e,"character");let m=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:C,focusOffset:E}=t.domSelectionRange(),S=C&&!m.contains(C.nodeType==1?C:C.parentNode)||c==C&&u==E;try{a.collapse(d,p),c&&(c!=d||u!=p)&&a.extend&&a.extend(c,u)}catch{}return B!=null&&(a.caretBidiLevel=B),S})}let qh=null,Zh=null,jh=!1;function GE(t,A,e){return qh==A&&Zh==e?jh:(qh=A,Zh=e,jh=e=="up"||e=="down"?KE(t,A,e):PE(t,A,e))}const tn=0,Ap=1,Fi=2,Bn=3;class ys{constructor(A,e,n,r){this.parent=A,this.children=e,this.dom=n,this.contentDOM=r,this.dirty=tn,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>Qt(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 np){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 ep&&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?Qt(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?Qt(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 d=s+c.border;if(A>=d&&e<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(A,e,d);A=s;for(let p=a;p>0;p--){let B=this.children[p-1];if(B.size&&B.dom.parentNode==this.contentDOM&&!B.emptyChildAt(1)){r=Qt(B.dom)+1;break}A-=B.size}r==-1&&(r=0)}if(r>-1&&(u>e||a==this.children.length-1)){e=u;for(let d=a+1;d<this.children.length;d++){let p=this.children[d];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=Qt(p.dom);break}e+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:A,to:e,fromOffset:r,toOffset:i}}emptyChildAt(A){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[A<0?0:this.children.length-1];return e.size==0||e.emptyChildAt(A)}domAfterPos(A){let{node:e,offset:n}=this.domFromPos(A,0);if(e.nodeType!=1||n==e.childNodes.length)throw new RangeError("No node after pos "+A);return e.childNodes[n]}setSelection(A,e,n,r=!1){let i=Math.min(A,e),s=Math.max(A,e);for(let B=0,m=0;B<this.children.length;B++){let C=this.children[B],E=m+C.size;if(i>m&&s<E)return C.setSelection(A-m-C.border,e-m-C.border,n,r);m=E}let a=this.domFromPos(A,A?-1:1),c=e==A?a:this.domFromPos(e,e?-1:1),u=n.getSelection(),d=!1;if((An||At)&&A==e){let{node:B,offset:m}=a;if(B.nodeType==3){if(d=!!(m&&B.nodeValue[m-1]==`
|
|
6
|
+
`),d&&m==B.nodeValue.length)for(let C=B,E;C;C=C.parentNode){if(E=C.nextSibling){E.nodeName=="BR"&&(a=c={node:E.parentNode,offset:Qt(E)+1});break}let S=C.pmViewDesc;if(S&&S.node&&S.node.isBlock)break}}else{let C=B.childNodes[m-1];d=C&&(C.nodeName=="BR"||C.contentEditable=="false")}}if(An&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let B=u.focusNode.childNodes[u.focusOffset];B&&B.contentEditable=="false"&&(r=!0)}if(!(r||d&&At)&&Rr(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Rr(c.node,c.offset,u.focusNode,u.focusOffset))return;let p=!1;if((u.extend||A==e)&&!d){u.collapse(a.node,a.offset);try{A!=e&&u.extend(c.node,c.offset),p=!0}catch{}}if(!p){if(A>e){let m=a;a=c,c=m}let B=document.createRange();B.setEnd(c.node,c.offset),B.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(B)}}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?Fi:Ap,A==a&&e==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Bn:i.markDirty(A-a,e-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Fi:Bn}n=s}this.dirty=Fi}markParentsDirty(){let A=1;for(let e=this.parent;e;e=e.parent,A++){let n=A==1?Fi:Ap;e.dirty<n&&(e.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class ep extends ys{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==tn&&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 WE extends ys{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 Vr extends ys{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=dn.renderSpec(document,e.type.spec.toDOM(e,n))),new Vr(A,e,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Bn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(A){return this.dirty!=Bn&&this.mark.eq(A)}markDirty(A,e){if(super.markDirty(A,e),this.dirty!=tn){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=tn}}slice(A,e,n){let r=Vr.create(this.parent,this.mark,!0,n),i=this.children,s=this.size;e<s&&(i=Qc(i,e,s,n)),A>0&&(i=Qc(i,0,A,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class Pr extends ys{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,s&&this.updateChildren(c,u)}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),d=u&&u.dom,p=u&&u.contentDOM;if(e.isText){if(!d)d=document.createTextNode(e.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:p}=dn.renderSpec(document,e.type.spec.toDOM(e)));!p&&!e.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let B=d;return d=sp(d,n,e),u?c=new $E(A,e,n,r,d,p||null,B,u,i,s+1):e.isText?new Ro(A,e,n,r,d,B,i):new Pr(A,e,n,r,d,p||null,B,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=()=>X.empty)}return A}matchesNode(A,e,n){return this.dirty==tn&&A.eq(this.node)&&yc(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 XE(this,s&&s.node,A);qE(this.node,this.innerDeco,(u,d,p)=>{u.spec.marks?c.syncToMarks(u.spec.marks,n,A):u.type.side>=0&&!p&&c.syncToMarks(d==this.node.childCount?PA.none:this.node.child(d).marks,n,A),c.placeWidget(u,A,r)},(u,d,p,B)=>{c.syncToMarks(u.marks,n,A);let m;c.findNodeMatch(u,d,p,B)||a&&A.state.selection.from>r&&A.state.selection.to<r+u.nodeSize&&(m=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(u,d,p,m,A)||c.updateNextNode(u,d,p,A,B)||c.addNode(u,d,p,A,r),r+=u.nodeSize}),c.syncToMarks([],n,A),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Fi)&&(s&&this.protectLocalComposition(A,s),rp(this.contentDOM,this.children,A),Qi&&ZE(this.dom))}localCompositionInfo(A,e){let{from:n,to:r}=A.state.selection;if(!(A.state.selection instanceof FA)||n<e||r>e+this.node.content.size)return null;let i=A.domSelectionRange(),s=jE(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,c=AF(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 WE(this,i,e,r);A.input.compositionNodes.push(s),this.children=Qc(this.children,n,n+r.length,A,s)}update(A,e,n,r){return this.dirty==Bn||!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=tn}updateOuterDeco(A){if(yc(A,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=ip(this.dom,this.nodeDOM,Cc(this.outerDeco,this.node,e),Cc(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 tp(t,A,e,n,r){return sp(n,A,t),new Pr(void 0,t,A,e,n,n,n,r,0)}class Ro extends Pr{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==Bn||this.dirty!=tn&&!this.inParent()||!A.sameMarkup(this.node)?!1:(this.updateOuterDeco(e),(this.dirty!=tn||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=tn,!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 Ro(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=Bn)}get domAtom(){return!1}}class np extends ys{parseRule(){return{ignore:!0}}matchesHack(A){return this.dirty==tn&&this.dom.nodeName==A}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class $E extends Pr{constructor(A,e,n,r,i,s,a,c,u,d){super(A,e,n,r,i,s,a,u,d),this.spec=c}update(A,e,n,r){if(this.dirty==Bn)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 rp(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=op(n),r=!0;n=n.nextSibling}else r=!0,t.insertBefore(a,n);if(s instanceof Vr){let c=n?n.previousSibling:t.lastChild;rp(s.contentDOM,s.children,e),n=c?c.nextSibling:t.firstChild}}for(;n;)n=op(n),r=!0;r&&e.trackWrites==t&&(e.trackWrites=null)}const Qs=function(t){t&&(this.nodeName=t)};Qs.prototype=Object.create(null);const Gr=[new Qs];function Cc(t,A,e){if(t.length==0)return Gr;let n=e?Gr[0]:new Qs,r=[n];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(n=new Qs(s.nodeName));for(let a in s){let c=s[a];c!=null&&(e&&r.length==1&&r.push(n=new Qs(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 ip(t,A,e,n){if(e==Gr&&n==Gr)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=Gr[0]),r=c}JE(r,a||Gr[0],s)}return r}function JE(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 sp(t,A,e){return ip(t,t,Gr,Cc(A,e,t.nodeType!=1))}function yc(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 op(t){let A=t.nextSibling;return t.parentNode.removeChild(t),A}class XE{constructor(A,e,n){this.lock=e,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=A,this.preMatch=YE(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=tn,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=Vr.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==Bn&&s.dom==s.contentDOM&&(s.dirty=Fi),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){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof Pr){let c=this.preMatch.matched.get(a);if(c!=null&&c!=i)return!1;let u=a.dom;if(!(this.isLocked(u)&&!(A.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==A.text&&a.dirty!=Bn&&yc(e,a.outerDeco)))&&a.update(A,e,n,r))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;break}}return!1}addNode(A,e,n,r,i){this.top.children.splice(this.index++,0,Pr.create(this.top,A,e,n,r,i)),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 ep(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 Vr;)e=A,A=e.children[e.children.length-1];(!A||!(A instanceof Ro)||/\n$/.test(A.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(A.node.text))&&((At||je)&&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 np(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 YE(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 Vr)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 zE(t,A){return t.type.side-A.type.side}function qE(t,A,e,n){let r=A.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);n(d,r,A.forChild(i,d),u),i+=d.nodeSize}return}let s=0,a=[],c=null;for(let u=0;;){if(s<r.length&&r[s].to==i){let C=r[s++],E;for(;s<r.length&&r[s].to==i;)(E||(E=[C])).push(r[s++]);if(E){E.sort(zE);for(let S=0;S<E.length;S++)e(E[S],u,!!c)}else e(C,u,!!c)}let d,p;if(c)p=-1,d=c,c=null;else if(u<t.childCount)p=u,d=t.child(u++);else break;for(let C=0;C<a.length;C++)a[C].to<=i&&a.splice(C--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let B=i+d.nodeSize;if(d.isText){let C=B;s<r.length&&r[s].from<C&&(C=r[s].from);for(let E=0;E<a.length;E++)a[E].to<C&&(C=a[E].to);C<B&&(c=d.cut(C-i),d=d.cut(0,C-i),B=C,p=-1)}let m=d.isInline&&!d.isLeaf?a.filter(C=>!C.inline):a.slice();n(d,m,A.forChild(i,d),p),i=B}}function ZE(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 jE(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=gn(t)}else if(t.nodeType==1&&A<t.childNodes.length)t=t.childNodes[A],A=0;else return null}}function AF(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){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 Qc(t,A,e,n,r){let i=[];for(let s=0,a=0;s<t.length;s++){let c=t[s],u=a,d=a+=c.size;u>=e||d<=A?i.push(c):(u<A&&i.push(c.slice(0,A-u,n)),r&&(i.push(r),r=void 0),d>e&&i.push(c.slice(e-u,c.size,n)))}return i}function Ec(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(ko(e)){for(c=a;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&uA.isSelectable(d)&&r.parent&&!(d.isInline&&UE(e.focusNode,e.focusOffset,r.dom))){let p=r.posBefore;u=new uA(s==p?a:n.resolve(p))}}else{let d=t.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(d<0)return null;c=n.resolve(d)}if(!u){let d=A=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Uc(t,c,a,d)}return u}function ap(t){return t.editable?t.hasFocus():pp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Sn(t,A=!1){let e=t.state.selection;if(fp(t,e),!!ap(t)){if(!A&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&je){let n=t.domSelectionRange(),r=t.domObserver.currentSelection;if(n.anchorNode&&r.anchorNode&&Rr(n.anchorNode,n.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)tF(t);else{let{anchor:n,head:r}=e,i,s;lp&&!(e instanceof FA)&&(e.$from.parent.inlineContent||(i=cp(t,e.from)),!e.empty&&!e.$from.parent.inlineContent&&(s=cp(t,e.to))),t.docView.setSelection(n,r,t.root,A),lp&&(i&&up(i),s&&up(s)),e.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&eF(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const lp=At||je&&IE<63;function cp(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(At&&r&&r.contentEditable=="false")return Fc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Fc(r);if(i)return Fc(i)}}function Fc(t){return t.contentEditable="true",At&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function up(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function eF(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(()=>{(!ap(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function tF(t){let A=t.domSelection(),e=document.createRange(),n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.setEnd(n.parentNode,Qt(n)+1):e.setEnd(n,0),e.collapse(!1),A.removeAllRanges(),A.addRange(e),!r&&!t.state.selection.visible&&ht&&nr<=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&&(dp(t),e&&e.selectNode(),t.lastSelectedViewDesc=e)}else dp(t)}function dp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Uc(t,A,e,n){return t.someProp("createSelectionBetween",r=>r(t,A,e))||FA.between(A,e,n)}function hp(t){return t.editable&&!t.hasFocus()?!1:pp(t)}function pp(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 nF(t){let A=t.docView.domFromPos(t.state.selection.anchor,0),e=t.domSelectionRange();return Rr(A.node,A.offset,e.anchorNode,e.anchorOffset)}function bc(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&&yA.findFrom(i,A)}function Wr(t,A){return t.dispatch(t.state.tr.setSelection(A).scrollIntoView()),!0}function gp(t,A,e){let n=t.state.selection;if(n instanceof FA){if(!n.empty||e.indexOf("s")>-1)return!1;if(t.endOfTextblock(A>0?"right":"left")){let r=bc(t.state,A);return r&&r instanceof uA?Wr(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)?Wr(t,new uA(A<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):No?Wr(t,new FA(t.state.doc.resolve(A<0?a:a+i.nodeSize))):!1:!1}}else{if(n instanceof uA&&n.node.isInline)return Wr(t,new FA(A>0?n.$to:n.$from));{let r=bc(t.state,A);return r?Wr(t,r):!1}}}function Ko(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Es(t){let A=t.pmViewDesc;return A&&A.size==0&&(t.nextSibling||t.nodeName!="BR")}function vc(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r,i,s=!1;for(An&&e.nodeType==1&&n<Ko(e)&&Es(e.childNodes[n])&&(s=!0);;)if(n>0){if(e.nodeType!=1)break;{let a=e.childNodes[n-1];if(Es(a))r=e,i=--n;else if(a.nodeType==3)e=a,n=e.nodeValue.length;else break}}else{if(Bp(e))break;{let a=e.previousSibling;for(;a&&Es(a);)r=e.parentNode,i=Qt(a),a=a.previousSibling;if(a)e=a,n=Ko(e);else{if(e=e.parentNode,e==t.dom)break;n=0}}}s?Sc(t,e,n):r&&Sc(t,r,i)}function Ic(t){let A=t.domSelectionRange(),e=A.focusNode,n=A.focusOffset;if(!e)return;let r=Ko(e),i,s;for(;;)if(n<r){if(e.nodeType!=1)break;let a=e.childNodes[n];if(Es(a))i=e,s=++n;else break}else{if(Bp(e))break;{let a=e.nextSibling;for(;a&&Es(a);)i=a.parentNode,s=Qt(a)+1,a=a.nextSibling;if(a)e=a,n=0,r=Ko(e);else{if(e=e.parentNode,e==t.dom)break;n=r=0}}}i&&Sc(t,i,s)}function Bp(t){let A=t.pmViewDesc;return A&&A.node&&A.node.isBlock}function Sc(t,A,e){let n=t.domSelection();if(ko(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&&Sn(t)},50)}function mp(t,A,e){let n=t.state.selection;if(n instanceof FA&&!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=bc(t.state,A);if(s&&s instanceof uA)return Wr(t,s)}if(!r.parent.inlineContent){let s=A<0?r:i,a=n instanceof jt?yA.near(s,A):yA.findFrom(s,A);return a?Wr(t,a):!1}return!1}function wp(t,A){if(!(t.state.selection instanceof FA))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 Cp(t,A,e){t.domObserver.stop(),A.contentEditable=e,t.domObserver.start()}function rF(t){if(!At||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;Cp(t,n,"true"),setTimeout(()=>Cp(t,n,"false"),20)}return!1}function iF(t){let A="";return t.ctrlKey&&(A+="c"),t.metaKey&&(A+="m"),t.altKey&&(A+="a"),t.shiftKey&&(A+="s"),A}function sF(t,A){let e=A.keyCode,n=iF(A);return e==8||kt&&e==72&&n=="c"?wp(t,-1)||vc(t):e==46||kt&&e==68&&n=="c"?wp(t,1)||Ic(t):e==13||e==27?!0:e==37||kt&&e==66&&n=="c"?gp(t,-1,n)||vc(t):e==39||kt&&e==70&&n=="c"?gp(t,1,n)||Ic(t):e==38||kt&&e==80&&n=="c"?mp(t,-1,n)||vc(t):e==40||kt&&e==78&&n=="c"?rF(t)||mp(t,1,n)||Ic(t):n==(kt?"m":"c")&&(e==66||e==73||e==89||e==90)}function yp(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")||dn.fromSchema(t.state.schema),a=Sp(),c=a.createElement("div");c.appendChild(s.serializeFragment(n,{document:a}));let u=c.firstChild,d,p=0;for(;u&&u.nodeType==1&&(d=vp[u.nodeName.toLowerCase()]);){for(let m=d.length-1;m>=0;m--){let C=a.createElement(d[m]);for(;c.firstChild;)C.appendChild(c.firstChild);c.appendChild(C),p++}u=c.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${p?` -${p}`:""} ${JSON.stringify(e)}`);let B=t.someProp("clipboardTextSerializer",m=>m(A,t))||A.content.textBetween(0,A.content.size,`
|
|
7
7
|
|
|
8
8
|
`);return{dom:c,text:B}}function Qp(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",B=>{A=B(A,i||n,t)}),i)return A?new j(X.from(t.state.schema.text(A.replace(/\r\n?/g,`
|
|
9
|
-
`))),0,0):j.empty;let p=t.someProp("clipboardTextParser",B=>B(A,r,n,t));if(p)a=p;else{let B=r.marks(),{schema:m}=t.state,C=dn.fromSchema(m);s=document.createElement("div"),A.split(/(?:\r\n?|\n)+/).forEach(E=>{let S=s.appendChild(document.createElement("p"));E&&S.appendChild(C.serializeNode(m.text(E,B)))})}}else t.someProp("transformPastedHTML",p=>{e=p(e,t)}),s=lF(e),No&&cF(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let p=+d[3];p>0;p--){let B=s.firstChild;for(;B&&B.nodeType!=1;)B=B.nextSibling;if(!B)break;s=B}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||di.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||d),context:r,ruleFromNode(B){return B.nodeName=="BR"&&!B.nextSibling&&B.parentNode&&!oF.test(B.parentNode.nodeName)?{ignore:!0}:null}})),d)a=uF(bp(a,+d[1],+d[2]),d[4]);else if(a=j.maxOpen(aF(a.content,r),!0),a.openStart||a.openEnd){let p=0,B=0;for(let m=a.content.firstChild;p<a.openStart&&!m.type.spec.isolating;p++,m=m.firstChild);for(let m=a.content.lastChild;B<a.openEnd&&!m.type.spec.isolating;B++,m=m.lastChild);a=bp(a,p,B)}return t.someProp("transformPasted",p=>{a=p(a,t)}),a}const oF=/^(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 aF(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&&Fp(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Up(s[s.length-1],i.length));let d=Ep(a,c);s.push(d),r=r.matchType(d.type),i=c}}),s)return X.from(s)}return t}function Ep(t,A,e=0){for(let n=A.length-1;n>=e;n--)t=A[n].create(null,X.from(t));return t}function Fp(t,A,e,n,r){if(r<t.length&&r<A.length&&t[r]==A[r]){let i=Fp(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(X.from(Ep(e,t,r+1))))}}function Up(t,A){if(A==0)return t;let e=t.content.replaceChild(t.childCount-1,Up(t.lastChild,A-1)),n=t.contentMatchAt(t.childCount).fillBefore(X.empty,!0);return t.copy(e.append(n))}function Tc(t,A,e,n,r,i){let s=A<0?t.firstChild:t.lastChild,a=s.content;return r<n-1&&(a=Tc(a,A,e,n,r+1,i)),r>=e&&(a=A<0?s.contentMatchAt(0).fillBefore(a,t.childCount>1||i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(X.empty,!0))),t.replaceChild(A<0?0:t.childCount-1,s.copy(a))}function bp(t,A,e){return A<t.openStart&&(t=new j(Tc(t.content,-1,A,t.openStart,0,t.openEnd),A,t.openEnd)),e<t.openEnd&&(t=new j(Tc(t.content,1,e,t.openEnd,0,0),t.openStart,e)),t}const vp={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 Ip=null;function Sp(){return Ip||(Ip=document.implementation.createHTMLDocument("title"))}function lF(t){let A=/^(\s*<meta [^>]*>)*/.exec(t);A&&(t=t.slice(A[0].length));let e=Sp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&vp[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 cF(t){let A=t.querySelectorAll(je?"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 uF(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=X.from(c.create(n[a+1],r)),i++,s++}return new j(r,i,s)}const et={},tt={},fF={touchstart:!0,touchmove:!0};class dF{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.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function hF(t){for(let A in et){let e=et[A];t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>{gF(t,n)&&!Hc(t,n)&&(t.editable||!(n.type in tt))&&e(t,n)},fF[A]?{passive:!0}:void 0)}At&&t.dom.addEventListener("input",()=>null),xc(t)}function sr(t,A){t.input.lastSelectionOrigin=A,t.input.lastSelectionTime=Date.now()}function pF(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 xc(t){t.someProp("handleDOMEvents",A=>{for(let e in A)t.input.eventHandlers[e]||t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>Hc(t,n))})}function Hc(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 BF(t,A){!Hc(t,A)&&et[A.type]&&(t.editable||!(A.type in tt))&&et[A.type](t,A)}tt.keydown=(t,A)=>{let e=A;if(t.input.shiftKey=e.keyCode==16||e.shiftKey,!xp(t,e)&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!(en&&je&&e.keyCode==13)))if(e.keyCode!=229&&t.domObserver.forceFlush(),Qi&&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,Kr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,e))||sF(t,e)?e.preventDefault():sr(t,"key")},tt.keyup=(t,A)=>{A.keyCode==16&&(t.input.shiftKey=!1)},tt.keypress=(t,A)=>{let e=A;if(xp(t,e)||!e.charCode||e.ctrlKey&&!e.altKey||Dt&&e.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,e))){e.preventDefault();return}let n=t.state.selection;if(!(n instanceof FA)||!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 Vo(t){return{left:t.clientX,top:t.clientY}}function mF(t,A){let e=A.x-t.clientX,n=A.y-t.clientY;return e*e+n*n<100}function _c(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 Ui(t,A,e){t.focused||t.focus();let n=t.state.tr.setSelection(A);e=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function wF(t,A){if(A==-1)return!1;let e=t.state.doc.resolve(A),n=e.nodeAfter;return n&&n.isAtom&&uA.isSelectable(n)?(Ui(t,new uA(e),"pointer"),!0):!1}function CF(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?(Ui(t,uA.create(t.state.doc,r),"pointer"),!0):!1}function yF(t,A,e,n,r){return _c(t,"handleClickOn",A,e,n)||t.someProp("handleClick",i=>i(t,A,n))||(r?CF(t,e):wF(t,e))}function QF(t,A,e,n){return _c(t,"handleDoubleClickOn",A,e,n)||t.someProp("handleDoubleClick",r=>r(t,A,n))}function EF(t,A,e,n){return _c(t,"handleTripleClickOn",A,e,n)||t.someProp("handleTripleClick",r=>r(t,A,n))||FF(t,e,n)}function FF(t,A,e){if(e.button!=0)return!1;let n=t.state.doc;if(A==-1)return n.inlineContent?(Ui(t,FA.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)Ui(t,FA.create(n,a+1,a+1+s.content.size),"pointer");else if(uA.isSelectable(s))Ui(t,uA.create(n,a),"pointer");else continue;return!0}}function Lc(t){return Po(t)}const Tp=Dt?"metaKey":"ctrlKey";et.mousedown=(t,A)=>{let e=A;t.input.shiftKey=e.shiftKey;let n=Lc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&mF(e,t.input.lastClick)&&!e[Tp]&&(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(Vo(e));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new UF(t,s,e,!!n)):(i=="doubleClick"?QF:EF)(t,s.pos,s.inside,e)?e.preventDefault():sr(t,"pointer"))};class UF{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[Tp],this.allowDefault=n.shiftKey;let i,s;if(e.inside>-1)i=A.state.doc.nodeAt(e.inside),s=e.inside;else{let d=A.state.doc.resolve(e.pos);i=d.parent,s=d.depth?d.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&&An&&!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)),sr(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(()=>Sn(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(Vo(A))),this.updateAllowDefault(A),this.allowDefault||!e?sr(this.view,"pointer"):yF(this.view,e.pos,e.inside,A,this.selectNode)?A.preventDefault():A.button==0&&(this.flushed||At&&this.mightDrag&&!this.mightDrag.node.isAtom||je&&!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)?(Ui(this.view,yA.near(this.view.state.doc.resolve(e.pos)),"pointer"),A.preventDefault()):sr(this.view,"pointer")}move(A){this.updateAllowDefault(A),sr(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)}}et.touchstart=t=>{t.input.lastTouch=Date.now(),Lc(t),sr(t,"pointer")},et.touchmove=t=>{t.input.lastTouch=Date.now(),sr(t,"pointer")},et.contextmenu=t=>Lc(t);function xp(t,A){return t.composing?!0:At&&Math.abs(A.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const bF=en?5e3:-1;tt.compositionstart=tt.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(),Po(t,!0),t.markCursor=null;else if(Po(t),An&&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}Hp(t,bF)},tt.compositionend=(t,A)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=A.timeStamp,Hp(t,20))};function Hp(t,A){clearTimeout(t.input.composingTimeout),A>-1&&(t.input.composingTimeout=setTimeout(()=>Po(t),A))}function _p(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=vF());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function vF(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Po(t,A=!1){if(!(en&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),_p(t),A||t.docView&&t.docView.dirty){let e=Ec(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}function IF(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 bi=ht&&nr<15||Qi&&SE<604;et.copy=tt.cut=(t,A)=>{let e=A,n=t.state.selection,r=e.type=="cut";if(n.empty)return;let i=bi?null:e.clipboardData,s=n.content(),{dom:a,text:c}=yp(t,s);i?(e.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):IF(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function SF(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function TF(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(),setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),e?Fs(t,n.value,null,t.input.shiftKey,A):Fs(t,n.textContent,n.innerHTML,t.input.shiftKey,A)},50)}function Fs(t,A,e,n,r){let i=Qp(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=SF(i),a=s?t.state.tr.replaceSelectionWith(s,t.input.shiftKey):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}tt.paste=(t,A)=>{let e=A;if(t.composing&&!en)return;let n=bi?null:e.clipboardData;n&&Fs(t,n.getData("text/plain"),n.getData("text/html"),t.input.shiftKey,e)?e.preventDefault():TF(t,e)};class xF{constructor(A,e){this.slice=A,this.move=e}}const Lp=Dt?"altKey":"ctrlKey";et.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(Vo(e));if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof uA?r.to-1:r.to))){if(n&&n.mightDrag)t.dispatch(t.state.tr.setSelection(uA.create(t.state.doc,n.mightDrag.pos)));else if(e.target&&e.target.nodeType==1){let u=t.docView.nearestDesc(e.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&t.dispatch(t.state.tr.setSelection(uA.create(t.state.doc,u.posBefore)))}}let s=t.state.selection.content(),{dom:a,text:c}=yp(t,s);e.dataTransfer.clearData(),e.dataTransfer.setData(bi?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",bi||e.dataTransfer.setData("text/plain",c),t.dragging=new xF(s,!e[Lp])},et.dragend=t=>{let A=t.dragging;window.setTimeout(()=>{t.dragging==A&&(t.dragging=null)},50)},tt.dragover=tt.dragenter=(t,A)=>A.preventDefault(),tt.drop=(t,A)=>{let e=A,n=t.dragging;if(t.dragging=null,!e.dataTransfer)return;let r=t.posAtCoords(Vo(e));if(!r)return;let i=t.state.doc.resolve(r.pos),s=n&&n.slice;s?t.someProp("transformPasted",C=>{s=C(s,t)}):s=Qp(t,e.dataTransfer.getData(bi?"Text":"text/plain"),bi?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!e[Lp]);if(t.someProp("handleDrop",C=>C(t,e,s||j.empty,a))){e.preventDefault();return}if(!s)return;e.preventDefault();let c=s?vh(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;a&&u.deleteSelection();let d=u.mapping.map(c),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,B=u.doc;if(p?u.replaceRangeWith(d,d,s.content.firstChild):u.replaceRange(d,d,s),u.doc.eq(B))return;let m=u.doc.resolve(d);if(p&&uA.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new uA(m));else{let C=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((E,S,U,v)=>C=v),u.setSelection(Uc(t,m,u.doc.resolve(C)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},et.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())&&Sn(t)},20))},et.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)},et.beforeinput=(t,A)=>{if(je&&en&&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,Kr(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 tt)et[t]=tt[t];function Us(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 Oc{constructor(A,e){this.toDOM=A,this.spec=e||$r,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 Nt(i-n,i-n,this)}valid(){return!0}eq(A){return this==A||A instanceof Oc&&(this.spec.key&&this.spec.key==A.spec.key||this.toDOM==A.toDOM&&Us(this.spec,A.spec))}destroy(A){this.spec.destroy&&this.spec.destroy(A)}}class or{constructor(A,e){this.attrs=A,this.spec=e||$r}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 Nt(i,s,this)}valid(A,e){return e.from<e.to}eq(A){return this==A||A instanceof or&&Us(this.attrs,A.attrs)&&Us(this.spec,A.spec)}static is(A){return A.type instanceof or}destroy(){}}class kc{constructor(A,e){this.attrs=A,this.spec=e||$r}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 Nt(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 kc&&Us(this.attrs,A.attrs)&&Us(this.spec,A.spec)}destroy(){}}class Nt{constructor(A,e,n){this.from=A,this.to=e,this.type=n}copy(A,e){return new Nt(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 Nt(A,A,new Oc(e,n))}static inline(A,e,n,r){return new Nt(A,e,new or(n,r))}static node(A,e,n,r){return new Nt(A,e,new kc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof or}}const vi=[],$r={};class ye{constructor(A,e){this.local=A.length?A:vi,this.children=e.length?e:vi}static create(A,e){return e.length?Go(e,A,0,$r):We}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==We||A.maps.length==0?this:this.mapInner(A,e,0,0,n||$r)}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?HF(this.children,s||[],A,e,n,r,i):s?new ye(s.sort(Jr),vi):We}add(A,e){return e.length?this==We?ye.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,d;if(d=kp(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,d,u+1):r.splice(i,0,c,c+a.nodeSize,Go(d,a,u+1,$r)),i+=3}});let s=Op(i?Mp(e):e,-n);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||s.splice(a--,1);return new ye(s.length?this.local.concat(s).sort(Jr):this.local,r||this.children)}remove(A){return A.length==0||this==We?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 d=0,p;d<A.length;d++)(p=A[d])&&p.from>a&&p.to<c&&(A[d]=null,(s||(s=[])).push(p));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=We?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 ye(r,n):We}forChild(A,e){if(this==We)return this;if(e.isLeaf)return ye.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 or){let u=Math.max(i,c.from)-i,d=Math.min(s,c.to)-i;u<d&&(r||(r=[])).push(c.copy(u,d))}}if(r){let a=new ye(r.sort(Jr),vi);return n?new ar([a,n]):a}return n||We}eq(A){if(this==A)return!0;if(!(A instanceof ye)||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 Mc(this.localsInner(A))}localsInner(A){if(this==We)return vi;if(A.inlineContent||!this.local.some(or.is))return this.local;let e=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof or||e.push(this.local[n]);return e}}ye.empty=new ye([],[]),ye.removeOverlap=Mc;const We=ye.empty;class ar{constructor(A){this.members=A}map(A,e){const n=this.members.map(r=>r.map(A,e,$r));return ar.from(n)}forChild(A,e){if(e.isLeaf)return ye.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(A,e);i!=We&&(i instanceof ar?n=n.concat(i.members):n.push(i))}return ar.from(n)}eq(A){if(!(A instanceof ar)||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?Mc(n?e:e.sort(Jr)):vi}static from(A){switch(A.length){case 0:return We;case 1:return A[0];default:return new ar(A.every(e=>e instanceof ye)?A:A.reduce((e,n)=>e.concat(n instanceof ye?n:n.members),[]))}}}function HF(t,A,e,n,r,i,s){let a=t.slice();for(let u=0,d=i;u<e.maps.length;u++){let p=0;e.maps[u].forEach((B,m,C,E)=>{let S=E-C-(m-B);for(let U=0;U<a.length;U+=3){let v=a[U+1];if(v<0||B>v+d-p)continue;let k=a[U]+d-p;m>=k?a[U+1]=B<=k?-2:-1:C>=r&&S&&(a[U]+=S,a[U+1]+=S)}p+=S}),d=e.maps[u].map(d,-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 d=e.map(t[u]+i),p=d-r;if(p<0||p>=n.content.size){c=!0;continue}let B=e.map(t[u+1]+i,-1),m=B-r,{index:C,offset:E}=n.content.findIndex(p),S=n.maybeChild(C);if(S&&E==p&&E+S.nodeSize==m){let U=a[u+2].mapInner(e,S,d+1,t[u]+i+1,s);U!=We?(a[u]=p,a[u+1]=m,a[u+2]=U):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=_F(a,t,A,e,r,i,s),d=Go(u,n,0,s);A=d.local;for(let p=0;p<a.length;p+=3)a[p+1]<0&&(a.splice(p,3),p-=3);for(let p=0,B=0;p<d.children.length;p+=3){let m=d.children[p];for(;B<a.length&&a[B]<m;)B+=3;a.splice(B,0,d.children[p],d.children[p+1],d.children[p+2])}}return new ye(A.sort(Jr),a)}function Op(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 Nt(r.from+A,r.to+A,r.type))}return e}function _F(t,A,e,n,r,i,s){function a(c,u){for(let d=0;d<c.local.length;d++){let p=c.local[d].map(n,r,u);p?e.push(p):s.onRemove&&s.onRemove(c.local[d].spec)}for(let d=0;d<c.children.length;d+=3)a(c.children[d+2],c.children[d]+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 kp(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 Mp(t){let A=[];for(let e=0;e<t.length;e++)t[e]!=null&&A.push(t[e]);return A}function Go(t,A,e,n){let r=[],i=!1;A.forEach((a,c)=>{let u=kp(t,a,c+e);if(u){i=!0;let d=Go(u,a,e+c+1,n);d!=We&&r.push(c,c+a.nodeSize,d)}});let s=Op(i?Mp(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 ye(s,r):We}function Jr(t,A){return t.from-A.from||t.to-A.to}function Mc(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),Dp(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),Dp(A,r,n.copy(i.from,n.to)));break}}}return A}function Dp(t,A,e){for(;A<t.length&&Jr(e,t[A])>0;)A++;t.splice(A,0,e)}function Dc(t){let A=[];return t.someProp("decorations",e=>{let n=e(t.state);n&&n!=We&&A.push(n)}),t.cursorWrapper&&A.push(ye.create(t.state.doc,[t.cursorWrapper.deco])),ar.from(A)}const LF={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},OF=ht&&nr<=11;class kF{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 MF{constructor(A,e){this.view=A,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new kF,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]);ht&&nr<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),OF&&(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,LF)),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(hp(this.view)){if(this.suppressingSelectionUpdates)return Sn(this.view);if(ht&&nr<=11&&!this.view.state.selection.empty){let A=this.view.domSelectionRange();if(A.focusNode&&Rr(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=ws(i))e.add(i);for(let i=A.anchorNode;i;i=ws(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}flush(){let{view:A}=this;if(!A.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let n=A.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&hp(A)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(A.editable)for(let d=0;d<e.length;d++){let p=this.registerMutation(e[d],c);p&&(i=i<0?p.from:Math.min(p.from,i),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(a=!0))}if(An&&c.length>1){let d=c.filter(p=>p.nodeName=="BR");if(d.length==2){let p=d[0],B=d[1];p.parentNode&&p.parentNode.parentNode==B.parentNode?B.remove():p.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&&Do(n)&&(u=Ec(A))&&u.eq(yA.near(A.state.doc.resolve(0),1))?(A.input.lastFocus=0,Sn(A),this.currentSelection.set(n),A.scrollToSelection()):(i>-1||r)&&(i>-1&&(A.docView.markDirty(i,s),DF(A)),this.handleDOMChange(i,s,a,c),A.docView&&A.docView.dirty?A.updateState(A.state):this.currentSelection.eq(n)||Sn(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 d=0;d<A.addedNodes.length;d++)e.push(A.addedNodes[d]);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(ht&&nr<=11&&A.addedNodes.length)for(let d=0;d<A.addedNodes.length;d++){let{previousSibling:p,nextSibling:B}=A.addedNodes[d];(!p||Array.prototype.indexOf.call(A.addedNodes,p)<0)&&(r=p),(!B||Array.prototype.indexOf.call(A.addedNodes,B)<0)&&(i=B)}let s=r&&r.parentNode==A.target?Qt(r)+1:0,a=n.localPosFromDOM(A.target,s,-1),c=i&&i.parentNode==A.target?Qt(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 Np=new WeakMap,Rp=!1;function DF(t){if(!Np.has(t)&&(Np.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=An,Rp)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."),Rp=!0}}function NF(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 Rr(a.node,a.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}function RF(t,A,e){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(A,e),c=t.domSelectionRange(),u,d=c.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],Do(c)||u.push({node:c.focusNode,offset:c.focusOffset})),je&&t.input.lastKeyCode===8)for(let S=i;S>r;S--){let U=n.childNodes[S-1],v=U.pmViewDesc;if(U.nodeName=="BR"&&!v){i=S;break}if(!v||v.size)break}let p=t.state.doc,B=t.someProp("domParser")||di.fromSchema(t.state.schema),m=p.resolve(s),C=null,E=B.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:KF,context:m});if(u&&u[0].pos!=null){let S=u[0].pos,U=u[1]&&u[1].pos;U==null&&(U=S),C={anchor:S+s,head:U+s}}return{doc:E,sel:C,from:s,to:a}}function KF(t){let A=t.pmViewDesc;if(A)return A.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(At&&/^(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||At&&/^(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 VF=/^(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 PF(t,A,e,n,r){if(A<0){let W=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,$=Ec(t,W);if($&&!t.state.selection.eq($)){if(je&&en&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",gA=>gA(t,Kr(13,"Enter"))))return;let eA=t.state.tr.setSelection($);W=="pointer"?eA.setMeta("pointer",!0):W=="key"&&eA.scrollIntoView(),t.dispatch(eA)}return}let i=t.state.doc.resolve(A),s=i.sharedDepth(e);A=i.before(s+1),e=t.state.doc.resolve(e).after(s+1);let a=t.state.selection,c=RF(t,A,e),u=t.state.doc,d=u.slice(c.from,c.to),p,B;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,B="end"):(p=t.state.selection.from,B="start"),t.input.lastKeyCode=null;let m=$F(d.content,c.doc.content,c.from,p,B);if((Qi&&t.input.lastIOSEnter>Date.now()-225||en)&&r.some(W=>W.nodeType==1&&!VF.test(W.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",W=>W(t,Kr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(n&&a instanceof FA&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let W=Kp(t,t.state.doc,c.sel);W&&!W.eq(t.state.selection)&&t.dispatch(t.state.tr.setSelection(W))}return}if(je&&t.cursorWrapper&&c.sel&&c.sel.anchor==t.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let W=m.endB-m.start;c.sel={anchor:c.sel.anchor+W,head:c.sel.anchor+W}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof FA&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),ht&&nr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)==" "&&(m.start--,m.endA--,m.endB--);let C=c.doc.resolveNoCache(m.start-c.from),E=c.doc.resolveNoCache(m.endB-c.from),S=u.resolve(m.start),U=C.sameParent(E)&&C.parent.inlineContent&&S.end()>=m.endA,v;if((Qi&&t.input.lastIOSEnter>Date.now()-225&&(!U||r.some(W=>W.nodeName=="DIV"||W.nodeName=="P"))||!U&&C.pos<c.doc.content.size&&(v=yA.findFrom(c.doc.resolve(C.pos+1),1,!0))&&v.head==E.pos)&&t.someProp("handleKeyDown",W=>W(t,Kr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&WF(u,m.start,m.endA,C,E)&&t.someProp("handleKeyDown",W=>W(t,Kr(8,"Backspace")))){en&&je&&t.domObserver.suppressSelectionUpdates();return}je&&en&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),en&&!U&&C.start()!=E.start()&&E.parentOffset==0&&C.depth==E.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,E=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(W){return W(t,Kr(13,"Enter"))})},20));let k=m.start,F=m.endA,T,_,N;if(U){if(C.pos==E.pos)ht&&nr<=11&&C.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Sn(t),20)),T=t.state.tr.delete(k,F),_=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(N=GF(C.parent.content.cut(C.parentOffset,E.parentOffset),S.parent.content.cut(S.parentOffset,m.endA-S.start()))))T=t.state.tr,N.type=="add"?T.addMark(k,F,N.mark):T.removeMark(k,F,N.mark);else if(C.parent.child(C.index()).isText&&C.index()==E.index()-(E.textOffset?0:1)){let W=C.parent.textBetween(C.parentOffset,E.parentOffset);if(t.someProp("handleTextInput",$=>$(t,k,F,W)))return;T=t.state.tr.insertText(W,k,F)}}if(T||(T=t.state.tr.replace(k,F,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let W=Kp(t,T.doc,c.sel);W&&!(je&&en&&t.composing&&W.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(W.head==k||W.head==T.mapping.map(F)-1)||ht&&W.empty&&W.head==k)&&T.setSelection(W)}_&&T.ensureMarks(_),t.dispatch(T.scrollIntoView())}function Kp(t,A,e){return Math.max(e.anchor,e.head)>A.content.size?null:Uc(t,A.resolve(e.anchor),A.resolve(e.head))}function GF(t,A){let e=t.firstChild.marks,n=A.firstChild.marks,r=e,i=n,s,a,c;for(let d=0;d<n.length;d++)r=n[d].removeFromSet(r);for(let d=0;d<e.length;d++)i=e[d].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",c=d=>d.mark(a.addToSet(d.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",c=d=>d.mark(a.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<A.childCount;d++)u.push(c(A.child(d)));if(X.from(u).eq(t))return{mark:a,type:s}}function WF(t,A,e,n,r){if(!n.parent.isTextblock||e-A<=r.pos-n.pos||Nc(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(Nc(i,!0,!0));return!s.parent.isTextblock||s.pos>e||Nc(s,!0,!1)<e?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function Nc(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 $F(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,a=i+(a-s),s=i}else if(a<i){let c=n<=i&&n>=a?i-n:0;i-=c,s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}class JF{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 dF,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach($p),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=Gp(this),Pp(this),this.nodeViews=Wp(this),this.docView=tp(this.state.doc,Vp(this),Dc(this),this.dom,this),this.domObserver=new MF(this,(n,r,i,s)=>PF(this,n,r,i,s)),this.domObserver.start(),hF(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&&xc(this);let e=this._props;this._props=A,A.plugins&&(A.plugins.forEach($p),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){let n=this.state,r=!1,i=!1;A.storedMarks&&this.composing&&(_p(this),i=!0),this.state=A;let s=n.plugins!=A.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let B=Wp(this);YF(B,this.nodeViews)&&(this.nodeViews=B,r=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&xc(this),this.editable=Gp(this),Pp(this);let a=Dc(this),c=Vp(this),u=n.plugins!=A.plugins&&!n.doc.eq(A.doc)?"reset":A.scrollToSelection>n.scrollToSelection?"to selection":"preserve",d=r||!this.docView.matchesNode(A.doc,c,a);(d||!A.selection.eq(n.selection))&&(i=!0);let p=u=="preserve"&&i&&this.dom.style.overflowAnchor==null&&HE(this);if(i){this.domObserver.stop();let B=d&&(ht||je)&&!this.composing&&!n.selection.empty&&!A.selection.empty&&XF(n.selection,A.selection);if(d){let m=je?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(A.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=tp(A.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(B=!0)}B||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&nF(this))?Sn(this,B):(fp(this,A.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&_E(p)}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&&Gh(this,e.getBoundingClientRect(),A)}else Gh(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)}}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(ht){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&&LE(this.dom),Sn(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}posAtCoords(A){return NE(this,A)}coordsAtPos(A,e=1){return Yh(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 GE(this,e||this.state,A)}pasteHTML(A,e){return Fs(this,"",A,!1,e||new ClipboardEvent("paste"))}pasteText(A,e){return Fs(this,A,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(pF(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Dc(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 BF(this,A)}dispatch(A){let e=this._props.dispatchTransaction;e?e.call(this,A):this.updateState(this.state.apply(A))}domSelectionRange(){return At&&this.root.nodeType===11&&vE(this.dom.ownerDocument)==this.dom?NF(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Vp(t){let A=Object.create(null);return A.class="ProseMirror",A.contenteditable=String(t.editable),A.translate="no",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]))}),[Nt.node(0,t.state.doc.content.size,A)]}function Pp(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:Nt.widget(t.state.selection.head,A,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Gp(t){return!t.someProp("editable",A=>A(t.state)===!1)}function XF(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 Wp(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 YF(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 $p(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 lr={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:"'"},Wo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Jp=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),zF=typeof navigator<"u"&&/Mac/.test(navigator.platform),qF=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ZF=zF||Jp&&+Jp[1]<57,_e=0;_e<10;_e++)lr[48+_e]=lr[96+_e]=String(_e);for(var _e=1;_e<=24;_e++)lr[_e+111]="F"+_e;for(var _e=65;_e<=90;_e++)lr[_e]=String.fromCharCode(_e+32),Wo[_e]=String.fromCharCode(_e);for(var Rc in lr)Wo.hasOwnProperty(Rc)||(Wo[Rc]=lr[Rc]);function jF(t){var A=ZF&&(t.ctrlKey||t.altKey||t.metaKey)||qF&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!A&&t.key||(t.shiftKey?Wo:lr)[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 AU=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function eU(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))AU?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 tU(t){let A=Object.create(null);for(let e in t)A[eU(e)]=t[e];return A}function Kc(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 nU(t){return new dt({props:{handleKeyDown:Xp(t)}})}function Xp(t){let A=tU(t);return function(e,n){let r=jF(n),i,s=A[Kc(r,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=A[Kc(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=lr[n.keyCode])&&i!=r){let a=A[Kc(i,n)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const rU=(t,A)=>t.selection.empty?!1:(A&&A(t.tr.deleteSelection().scrollIntoView()),!0);function iU(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("backward",t):e.parentOffset>0)?null:e}const sU=(t,A,e)=>{let n=iU(t,e);if(!n)return!1;let r=Yp(n);if(!r){let s=n.blockRange(),a=s&&gi(s);return a==null?!1:(A&&A(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&Zp(t,r,A))return!0;if(n.parent.content.size==0&&(Ii(i,"end")||uA.isSelectable(i))){let s=ac(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(Ii(i,"end")?yA.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 Ii(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=Yp(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 Yp(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 aU(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("forward",t):e.parentOffset<e.parent.content.size)?null:e}const lU=(t,A,e)=>{let n=aU(t,e);if(!n)return!1;let r=zp(n);if(!r)return!1;let i=r.nodeAfter;if(Zp(t,r,A))return!0;if(n.parent.content.size==0&&(Ii(i,"start")||uA.isSelectable(i))){let s=ac(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(Ii(i,"start")?yA.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},cU=(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=zp(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 zp(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 uU=(t,A)=>{let e=t.selection,n=e instanceof uA,r;if(n){if(e.node.isTextblock||!Ar(t.doc,e.from))return!1;r=e.from}else if(r=bh(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},fU=(t,A)=>{let e=t.selection,n;if(e instanceof uA){if(e.node.isTextblock||!Ar(t.doc,e.to))return!1;n=e.to}else if(n=bh(t.doc,e.to,1),n==null)return!1;return A&&A(t.tr.join(n).scrollIntoView()),!0},dU=(t,A)=>{let{$from:e,$to:n}=t.selection,r=e.blockRange(n),i=r&&gi(r);return i==null?!1:(A&&A(t.tr.lift(r,i).scrollIntoView()),!0)},hU=(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 qp(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 pU=(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=qp(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(yA.near(c.doc.resolve(a),1)),A(c.scrollIntoView())}return!0},gU=(t,A)=>{let e=t.selection,{$from:n,$to:r}=e;if(e instanceof jt||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=qp(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(FA.create(a.doc,s+1)),A(a.scrollIntoView())}return!0},BU=(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&&gi(n);return r==null?!1:(A&&A(t.tr.lift(n,r).scrollIntoView()),!0)},mU=(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||Ar(t.doc,A.pos))?!1:(e&&e(t.tr.clearIncompatible(A.pos,n.type,n.contentMatchAt(n.childCount)).join(A.pos).scrollIntoView()),!0)}function Zp(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 p=A.pos+r.nodeSize,B=X.empty;for(let E=i.length-1;E>=0;E--)B=X.from(i[E].create(null,B));B=X.from(n.copy(B));let m=t.tr.step(new ve(A.pos-1,p,A.pos,p,new j(B,1,0),i.length,!0)),C=p+2*i.length;Ar(m.doc,C)&&m.join(C),e(m.scrollIntoView())}return!0}let c=yA.findFrom(A,1),u=c&&c.$from.blockRange(c.$to),d=u&&gi(u);if(d!=null&&d>=A.depth)return e&&e(t.tr.lift(u,d).scrollIntoView()),!0;if(a&&Ii(r,"start",!0)&&Ii(n,"end")){let p=n,B=[];for(;B.push(p),!p.isTextblock;)p=p.lastChild;let m=r,C=1;for(;!m.isTextblock;m=m.firstChild)C++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(e){let E=X.empty;for(let U=B.length-1;U>=0;U--)E=X.from(B[U].copy(E));let S=t.tr.step(new ve(A.pos-B.length,A.pos+r.nodeSize,A.pos+C,A.pos+r.nodeSize-C,new j(E,B.length,0),0,!0));e(S.scrollIntoView())}return!0}}return!1}function jp(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(FA.create(A.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const CU=jp(-1),yU=jp(1);function QU(t,A=null){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i),a=s&&oc(s,t,A);return a?(n&&n(e.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Ag(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 d=e.doc.resolve(u),p=d.index();r=d.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=e.tr;for(let s=0;s<e.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=e.selection.ranges[s];i.setBlockType(a,c,t,A)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function EU(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 d=e.doc.resolve(s.start-2);c=new So(d,d,s.depth),s.endIndex<s.parent.childCount&&(s=new So(r,e.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=oc(c,t,A,s);return u?(n&&n(FU(e.tr,s,u,a,t).scrollIntoView()),!0):!1}}function FU(t,A,e,n,r){let i=X.empty;for(let d=e.length-1;d>=0;d--)i=X.from(e[d].type.create(e[d].attrs,i));t.step(new ve(A.start-(n?2:0),A.end,A.start,A.end,new j(i,0,0),e.length,!0));let s=0;for(let d=0;d<e.length;d++)e[d].type==r&&(s=d+1);let a=e.length-s,c=A.start+e.length-(n?2:0),u=A.parent;for(let d=A.startIndex,p=A.endIndex,B=!0;d<p;d++,B=!1)!B&&Bi(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(d).nodeSize;return t}function UU(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?bU(A,e,t,i):vU(A,e,i):!0:!1}}function bU(t,A,e,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new ve(i-1,s,i,s,new j(X.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new So(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=gi(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return Ar(r.doc,c)&&r.join(c),A(r.scrollIntoView()),!0}function vU(t,A,e){let n=t.tr,r=e.parent;for(let m=e.end,C=e.endIndex-1,E=e.startIndex;C>E;C--)m-=r.child(C).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),d=i.index(-1);if(!u.canReplace(d+(a?0:1),d+1,s.content.append(c?X.empty:X.from(r))))return!1;let p=i.pos,B=p+s.nodeSize;return n.step(new ve(p-(a?1:0),B+(c?1:0),p+1,B-1,new j((a?X.empty:X.from(r.copy(X.empty))).append(c?X.empty:X.from(r.copy(X.empty))),a?0:1,c?0:1),a?0:1)),A(n.scrollIntoView()),!0}function IU(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,d=X.from(u?t.create():null),p=new j(X.from(t.create(null,X.from(a.type.create(null,d)))),u?3:1,0),B=i.start,m=i.end;e(A.tr.step(new ve(B-(u?3:1),m,B,m,p,1,!0)).scrollIntoView())}return!0}}function $o(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 Jo{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,(...d)=>{const p=c(...d)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!A,u=A||i.tr,d=()=>(!c&&e&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(B=>B===!0)),p={...Object.fromEntries(Object.entries(n).map(([B,m])=>[B,(...E)=>{const S=this.buildProps(u,e),U=m(...E)(S);return a.push(U),p}])),run:d};return p}createCan(A){const{rawCommands:e,state:n}=this,r=!1,i=A||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(e).map(([c,u])=>[c,(...d)=>u(...d)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r;i.storedMarks&&A.setStoredMarks(i.storedMarks);const a={tr:A,editor:r,view:s,state:$o({state:i,transaction:A}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(A),can:()=>this.createCan(A),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)(a)]))}};return a}}class SU{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 Xo(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 eg(t){const A=[],{nodeExtensions:e,markExtensions:n}=Xo(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(d=>{d.types.forEach(p=>{Object.entries(d.attributes).forEach(([B,m])=>{A.push({type:p,name:B,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(([d,p])=>{const B={...i,...p};typeof(B==null?void 0:B.default)=="function"&&(B.default=B.default()),B!=null&&B.isRequired&&(B==null?void 0:B.default)===void 0&&delete B.default,A.push({type:s.name,name:d,attribute:B})})}),A}function Ie(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 pe(...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}r==="class"?n[r]=[n[r],i].join(" "):r==="style"?n[r]=[n[r],i].join("; "):n[r]=i}),n},{})}function Vc(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)=>pe(e,n),{})}function tg(t){return typeof t=="function"}function QA(t,A=void 0,...e){return tg(t)?A?t.bind(A)(...e):t(...e):t}function TU(t={}){return Object.keys(t).length===0&&t.constructor===Object}function xU(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function ng(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):xU(e.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function rg(t){return Object.fromEntries(Object.entries(t).filter(([A,e])=>A==="attrs"&&TU(e)?!1:e!=null))}function HU(t,A){var e;const n=eg(t),{nodeExtensions:r,markExtensions:i}=Xo(t),s=(e=r.find(u=>iA(u,"topNode")))===null||e===void 0?void 0:e.name,a=Object.fromEntries(r.map(u=>{const d=n.filter(U=>U.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:A},B=t.reduce((U,v)=>{const k=iA(v,"extendNodeSchema",p);return{...U,...k?k(u):{}}},{}),m=rg({...B,content:QA(iA(u,"content",p)),marks:QA(iA(u,"marks",p)),group:QA(iA(u,"group",p)),inline:QA(iA(u,"inline",p)),atom:QA(iA(u,"atom",p)),selectable:QA(iA(u,"selectable",p)),draggable:QA(iA(u,"draggable",p)),code:QA(iA(u,"code",p)),defining:QA(iA(u,"defining",p)),isolating:QA(iA(u,"isolating",p)),attrs:Object.fromEntries(d.map(U=>{var v;return[U.name,{default:(v=U==null?void 0:U.attribute)===null||v===void 0?void 0:v.default}]}))}),C=QA(iA(u,"parseHTML",p));C&&(m.parseDOM=C.map(U=>ng(U,d)));const E=iA(u,"renderHTML",p);E&&(m.toDOM=U=>E({node:U,HTMLAttributes:Vc(U,d)}));const S=iA(u,"renderText",p);return S&&(m.toText=S),[u.name,m]})),c=Object.fromEntries(i.map(u=>{const d=n.filter(S=>S.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:A},B=t.reduce((S,U)=>{const v=iA(U,"extendMarkSchema",p);return{...S,...v?v(u):{}}},{}),m=rg({...B,inclusive:QA(iA(u,"inclusive",p)),excludes:QA(iA(u,"excludes",p)),group:QA(iA(u,"group",p)),spanning:QA(iA(u,"spanning",p)),code:QA(iA(u,"code",p)),attrs:Object.fromEntries(d.map(S=>{var U;return[S.name,{default:(U=S==null?void 0:S.attribute)===null||U===void 0?void 0:U.default}]}))}),C=QA(iA(u,"parseHTML",p));C&&(m.parseDOM=C.map(S=>ng(S,d)));const E=iA(u,"renderHTML",p);return E&&(m.toDOM=S=>E({mark:S,HTMLAttributes:Vc(S,d)})),[u.name,m]}));return new GQ({topNode:s,nodes:a,marks:c})}function Pc(t,A){return A.nodes[t]||A.marks[t]||null}function ig(t,A){return Array.isArray(A)?A.some(e=>(typeof e=="string"?e:e.name)===t.name):A}const _U=(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 d=((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+=d.slice(0,Math.max(0,n-i))}),e};function Gc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Yo{constructor(A){this.find=A.find,this.handler=A.handler}}const LU=(t,A)=>{if(Gc(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 Wc(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(B=>B.type.spec.code))return!1;let d=!1;const p=_U(u)+i;return s.forEach(B=>{if(d)return;const m=LU(p,B.find);if(!m)return;const C=c.state.tr,E=$o({state:c.state,transaction:C}),S={from:n-(m[0].length-i.length),to:r},{commands:U,chain:v,can:k}=new Jo({editor:e,state:E});B.handler({state:E,range:S,match:m,commands:U,chain:v,can:k})===null||!C.steps.length||(C.setMeta(a,{transform:C,from:n,to:r,text:i}),c.dispatch(C),d=!0)}),d}function OU(t){const{editor:A,rules:e}=t,n=new dt({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 Wc({editor:A,from:i,to:s,text:a,rules:e,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Wc({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?Wc({editor:A,from:s.pos,to:s.pos,text:`
|
|
11
|
-
`,rules:e,plugin:n}):!1}},isInputRules:!0});return n}function
|
|
9
|
+
`))),0,0):j.empty;let p=t.someProp("clipboardTextParser",B=>B(A,r,n,t));if(p)a=p;else{let B=r.marks(),{schema:m}=t.state,C=dn.fromSchema(m);s=document.createElement("div"),A.split(/(?:\r\n?|\n)+/).forEach(E=>{let S=s.appendChild(document.createElement("p"));E&&S.appendChild(C.serializeNode(m.text(E,B)))})}}else t.someProp("transformPastedHTML",p=>{e=p(e,t)}),s=lF(e),No&&cF(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let p=+d[3];p>0;p--){let B=s.firstChild;for(;B&&B.nodeType!=1;)B=B.nextSibling;if(!B)break;s=B}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||di.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(c||d),context:r,ruleFromNode(B){return B.nodeName=="BR"&&!B.nextSibling&&B.parentNode&&!oF.test(B.parentNode.nodeName)?{ignore:!0}:null}})),d)a=uF(bp(a,+d[1],+d[2]),d[4]);else if(a=j.maxOpen(aF(a.content,r),!0),a.openStart||a.openEnd){let p=0,B=0;for(let m=a.content.firstChild;p<a.openStart&&!m.type.spec.isolating;p++,m=m.firstChild);for(let m=a.content.lastChild;B<a.openEnd&&!m.type.spec.isolating;B++,m=m.lastChild);a=bp(a,p,B)}return t.someProp("transformPasted",p=>{a=p(a,t)}),a}const oF=/^(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 aF(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&&Fp(c,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Up(s[s.length-1],i.length));let d=Ep(a,c);s.push(d),r=r.matchType(d.type),i=c}}),s)return X.from(s)}return t}function Ep(t,A,e=0){for(let n=A.length-1;n>=e;n--)t=A[n].create(null,X.from(t));return t}function Fp(t,A,e,n,r){if(r<t.length&&r<A.length&&t[r]==A[r]){let i=Fp(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(X.from(Ep(e,t,r+1))))}}function Up(t,A){if(A==0)return t;let e=t.content.replaceChild(t.childCount-1,Up(t.lastChild,A-1)),n=t.contentMatchAt(t.childCount).fillBefore(X.empty,!0);return t.copy(e.append(n))}function Tc(t,A,e,n,r,i){let s=A<0?t.firstChild:t.lastChild,a=s.content;return r<n-1&&(a=Tc(a,A,e,n,r+1,i)),r>=e&&(a=A<0?s.contentMatchAt(0).fillBefore(a,t.childCount>1||i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(X.empty,!0))),t.replaceChild(A<0?0:t.childCount-1,s.copy(a))}function bp(t,A,e){return A<t.openStart&&(t=new j(Tc(t.content,-1,A,t.openStart,0,t.openEnd),A,t.openEnd)),e<t.openEnd&&(t=new j(Tc(t.content,1,e,t.openEnd,0,0),t.openStart,e)),t}const vp={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 Ip=null;function Sp(){return Ip||(Ip=document.implementation.createHTMLDocument("title"))}function lF(t){let A=/^(\s*<meta [^>]*>)*/.exec(t);A&&(t=t.slice(A[0].length));let e=Sp().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),r;if((r=n&&vp[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 cF(t){let A=t.querySelectorAll(je?"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 uF(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=X.from(c.create(n[a+1],r)),i++,s++}return new j(r,i,s)}const et={},tt={},fF={touchstart:!0,touchmove:!0};class dF{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.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function hF(t){for(let A in et){let e=et[A];t.dom.addEventListener(A,t.input.eventHandlers[A]=n=>{gF(t,n)&&!Hc(t,n)&&(t.editable||!(n.type in tt))&&e(t,n)},fF[A]?{passive:!0}:void 0)}At&&t.dom.addEventListener("input",()=>null),xc(t)}function sr(t,A){t.input.lastSelectionOrigin=A,t.input.lastSelectionTime=Date.now()}function pF(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 xc(t){t.someProp("handleDOMEvents",A=>{for(let e in A)t.input.eventHandlers[e]||t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>Hc(t,n))})}function Hc(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 BF(t,A){!Hc(t,A)&&et[A.type]&&(t.editable||!(A.type in tt))&&et[A.type](t,A)}tt.keydown=(t,A)=>{let e=A;if(t.input.shiftKey=e.keyCode==16||e.shiftKey,!xp(t,e)&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!(en&&je&&e.keyCode==13)))if(e.keyCode!=229&&t.domObserver.forceFlush(),Qi&&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,Kr(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,e))||sF(t,e)?e.preventDefault():sr(t,"key")},tt.keyup=(t,A)=>{A.keyCode==16&&(t.input.shiftKey=!1)},tt.keypress=(t,A)=>{let e=A;if(xp(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 FA)||!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 Vo(t){return{left:t.clientX,top:t.clientY}}function mF(t,A){let e=A.x-t.clientX,n=A.y-t.clientY;return e*e+n*n<100}function _c(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 Ui(t,A,e){t.focused||t.focus();let n=t.state.tr.setSelection(A);e=="pointer"&&n.setMeta("pointer",!0),t.dispatch(n)}function wF(t,A){if(A==-1)return!1;let e=t.state.doc.resolve(A),n=e.nodeAfter;return n&&n.isAtom&&uA.isSelectable(n)?(Ui(t,new uA(e),"pointer"),!0):!1}function CF(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?(Ui(t,uA.create(t.state.doc,r),"pointer"),!0):!1}function yF(t,A,e,n,r){return _c(t,"handleClickOn",A,e,n)||t.someProp("handleClick",i=>i(t,A,n))||(r?CF(t,e):wF(t,e))}function QF(t,A,e,n){return _c(t,"handleDoubleClickOn",A,e,n)||t.someProp("handleDoubleClick",r=>r(t,A,n))}function EF(t,A,e,n){return _c(t,"handleTripleClickOn",A,e,n)||t.someProp("handleTripleClick",r=>r(t,A,n))||FF(t,e,n)}function FF(t,A,e){if(e.button!=0)return!1;let n=t.state.doc;if(A==-1)return n.inlineContent?(Ui(t,FA.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)Ui(t,FA.create(n,a+1,a+1+s.content.size),"pointer");else if(uA.isSelectable(s))Ui(t,uA.create(n,a),"pointer");else continue;return!0}}function Lc(t){return Po(t)}const Tp=kt?"metaKey":"ctrlKey";et.mousedown=(t,A)=>{let e=A;t.input.shiftKey=e.shiftKey;let n=Lc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&mF(e,t.input.lastClick)&&!e[Tp]&&(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(Vo(e));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new UF(t,s,e,!!n)):(i=="doubleClick"?QF:EF)(t,s.pos,s.inside,e)?e.preventDefault():sr(t,"pointer"))};class UF{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[Tp],this.allowDefault=n.shiftKey;let i,s;if(e.inside>-1)i=A.state.doc.nodeAt(e.inside),s=e.inside;else{let d=A.state.doc.resolve(e.pos);i=d.parent,s=d.depth?d.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&&An&&!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)),sr(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(()=>Sn(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(Vo(A))),this.updateAllowDefault(A),this.allowDefault||!e?sr(this.view,"pointer"):yF(this.view,e.pos,e.inside,A,this.selectNode)?A.preventDefault():A.button==0&&(this.flushed||At&&this.mightDrag&&!this.mightDrag.node.isAtom||je&&!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)?(Ui(this.view,yA.near(this.view.state.doc.resolve(e.pos)),"pointer"),A.preventDefault()):sr(this.view,"pointer")}move(A){this.updateAllowDefault(A),sr(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)}}et.touchstart=t=>{t.input.lastTouch=Date.now(),Lc(t),sr(t,"pointer")},et.touchmove=t=>{t.input.lastTouch=Date.now(),sr(t,"pointer")},et.contextmenu=t=>Lc(t);function xp(t,A){return t.composing?!0:At&&Math.abs(A.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const bF=en?5e3:-1;tt.compositionstart=tt.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(),Po(t,!0),t.markCursor=null;else if(Po(t),An&&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}Hp(t,bF)},tt.compositionend=(t,A)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=A.timeStamp,Hp(t,20))};function Hp(t,A){clearTimeout(t.input.composingTimeout),A>-1&&(t.input.composingTimeout=setTimeout(()=>Po(t),A))}function _p(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=vF());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function vF(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Po(t,A=!1){if(!(en&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),_p(t),A||t.docView&&t.docView.dirty){let e=Ec(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}function IF(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 bi=ht&&nr<15||Qi&&SE<604;et.copy=tt.cut=(t,A)=>{let e=A,n=t.state.selection,r=e.type=="cut";if(n.empty)return;let i=bi?null:e.clipboardData,s=n.content(),{dom:a,text:c}=yp(t,s);i?(e.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",c)):IF(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function SF(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function TF(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(),setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),e?Fs(t,n.value,null,t.input.shiftKey,A):Fs(t,n.textContent,n.innerHTML,t.input.shiftKey,A)},50)}function Fs(t,A,e,n,r){let i=Qp(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=SF(i),a=s?t.state.tr.replaceSelectionWith(s,t.input.shiftKey):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}tt.paste=(t,A)=>{let e=A;if(t.composing&&!en)return;let n=bi?null:e.clipboardData;n&&Fs(t,n.getData("text/plain"),n.getData("text/html"),t.input.shiftKey,e)?e.preventDefault():TF(t,e)};class xF{constructor(A,e){this.slice=A,this.move=e}}const Lp=kt?"altKey":"ctrlKey";et.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(Vo(e));if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof uA?r.to-1:r.to))){if(n&&n.mightDrag)t.dispatch(t.state.tr.setSelection(uA.create(t.state.doc,n.mightDrag.pos)));else if(e.target&&e.target.nodeType==1){let u=t.docView.nearestDesc(e.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&t.dispatch(t.state.tr.setSelection(uA.create(t.state.doc,u.posBefore)))}}let s=t.state.selection.content(),{dom:a,text:c}=yp(t,s);e.dataTransfer.clearData(),e.dataTransfer.setData(bi?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",bi||e.dataTransfer.setData("text/plain",c),t.dragging=new xF(s,!e[Lp])},et.dragend=t=>{let A=t.dragging;window.setTimeout(()=>{t.dragging==A&&(t.dragging=null)},50)},tt.dragover=tt.dragenter=(t,A)=>A.preventDefault(),tt.drop=(t,A)=>{let e=A,n=t.dragging;if(t.dragging=null,!e.dataTransfer)return;let r=t.posAtCoords(Vo(e));if(!r)return;let i=t.state.doc.resolve(r.pos),s=n&&n.slice;s?t.someProp("transformPasted",C=>{s=C(s,t)}):s=Qp(t,e.dataTransfer.getData(bi?"Text":"text/plain"),bi?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&!e[Lp]);if(t.someProp("handleDrop",C=>C(t,e,s||j.empty,a))){e.preventDefault();return}if(!s)return;e.preventDefault();let c=s?vh(t.state.doc,i.pos,s):i.pos;c==null&&(c=i.pos);let u=t.state.tr;a&&u.deleteSelection();let d=u.mapping.map(c),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,B=u.doc;if(p?u.replaceRangeWith(d,d,s.content.firstChild):u.replaceRange(d,d,s),u.doc.eq(B))return;let m=u.doc.resolve(d);if(p&&uA.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new uA(m));else{let C=u.mapping.map(c);u.mapping.maps[u.mapping.maps.length-1].forEach((E,S,U,v)=>C=v),u.setSelection(Uc(t,m,u.doc.resolve(C)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},et.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())&&Sn(t)},20))},et.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)},et.beforeinput=(t,A)=>{if(je&&en&&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,Kr(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 tt)et[t]=tt[t];function Us(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 Oc{constructor(A,e){this.toDOM=A,this.spec=e||$r,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 Nt(i-n,i-n,this)}valid(){return!0}eq(A){return this==A||A instanceof Oc&&(this.spec.key&&this.spec.key==A.spec.key||this.toDOM==A.toDOM&&Us(this.spec,A.spec))}destroy(A){this.spec.destroy&&this.spec.destroy(A)}}class or{constructor(A,e){this.attrs=A,this.spec=e||$r}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 Nt(i,s,this)}valid(A,e){return e.from<e.to}eq(A){return this==A||A instanceof or&&Us(this.attrs,A.attrs)&&Us(this.spec,A.spec)}static is(A){return A.type instanceof or}destroy(){}}class Mc{constructor(A,e){this.attrs=A,this.spec=e||$r}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 Nt(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 Mc&&Us(this.attrs,A.attrs)&&Us(this.spec,A.spec)}destroy(){}}class Nt{constructor(A,e,n){this.from=A,this.to=e,this.type=n}copy(A,e){return new Nt(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 Nt(A,A,new Oc(e,n))}static inline(A,e,n,r){return new Nt(A,e,new or(n,r))}static node(A,e,n,r){return new Nt(A,e,new Mc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof or}}const vi=[],$r={};class ye{constructor(A,e){this.local=A.length?A:vi,this.children=e.length?e:vi}static create(A,e){return e.length?Go(e,A,0,$r):We}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==We||A.maps.length==0?this:this.mapInner(A,e,0,0,n||$r)}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?HF(this.children,s||[],A,e,n,r,i):s?new ye(s.sort(Jr),vi):We}add(A,e){return e.length?this==We?ye.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,d;if(d=Mp(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,d,u+1):r.splice(i,0,c,c+a.nodeSize,Go(d,a,u+1,$r)),i+=3}});let s=Op(i?Dp(e):e,-n);for(let a=0;a<s.length;a++)s[a].type.valid(A,s[a])||s.splice(a--,1);return new ye(s.length?this.local.concat(s).sort(Jr):this.local,r||this.children)}remove(A){return A.length==0||this==We?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 d=0,p;d<A.length;d++)(p=A[d])&&p.from>a&&p.to<c&&(A[d]=null,(s||(s=[])).push(p));if(!s)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(s,a+1);u!=We?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 ye(r,n):We}forChild(A,e){if(this==We)return this;if(e.isLeaf)return ye.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 or){let u=Math.max(i,c.from)-i,d=Math.min(s,c.to)-i;u<d&&(r||(r=[])).push(c.copy(u,d))}}if(r){let a=new ye(r.sort(Jr),vi);return n?new ar([a,n]):a}return n||We}eq(A){if(this==A)return!0;if(!(A instanceof ye)||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 Dc(this.localsInner(A))}localsInner(A){if(this==We)return vi;if(A.inlineContent||!this.local.some(or.is))return this.local;let e=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof or||e.push(this.local[n]);return e}}ye.empty=new ye([],[]),ye.removeOverlap=Dc;const We=ye.empty;class ar{constructor(A){this.members=A}map(A,e){const n=this.members.map(r=>r.map(A,e,$r));return ar.from(n)}forChild(A,e){if(e.isLeaf)return ye.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(A,e);i!=We&&(i instanceof ar?n=n.concat(i.members):n.push(i))}return ar.from(n)}eq(A){if(!(A instanceof ar)||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?Dc(n?e:e.sort(Jr)):vi}static from(A){switch(A.length){case 0:return We;case 1:return A[0];default:return new ar(A.every(e=>e instanceof ye)?A:A.reduce((e,n)=>e.concat(n instanceof ye?n:n.members),[]))}}}function HF(t,A,e,n,r,i,s){let a=t.slice();for(let u=0,d=i;u<e.maps.length;u++){let p=0;e.maps[u].forEach((B,m,C,E)=>{let S=E-C-(m-B);for(let U=0;U<a.length;U+=3){let v=a[U+1];if(v<0||B>v+d-p)continue;let M=a[U]+d-p;m>=M?a[U+1]=B<=M?-2:-1:C>=r&&S&&(a[U]+=S,a[U+1]+=S)}p+=S}),d=e.maps[u].map(d,-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 d=e.map(t[u]+i),p=d-r;if(p<0||p>=n.content.size){c=!0;continue}let B=e.map(t[u+1]+i,-1),m=B-r,{index:C,offset:E}=n.content.findIndex(p),S=n.maybeChild(C);if(S&&E==p&&E+S.nodeSize==m){let U=a[u+2].mapInner(e,S,d+1,t[u]+i+1,s);U!=We?(a[u]=p,a[u+1]=m,a[u+2]=U):(a[u+1]=-2,c=!0)}else c=!0}if(c){let u=_F(a,t,A,e,r,i,s),d=Go(u,n,0,s);A=d.local;for(let p=0;p<a.length;p+=3)a[p+1]<0&&(a.splice(p,3),p-=3);for(let p=0,B=0;p<d.children.length;p+=3){let m=d.children[p];for(;B<a.length&&a[B]<m;)B+=3;a.splice(B,0,d.children[p],d.children[p+1],d.children[p+2])}}return new ye(A.sort(Jr),a)}function Op(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 Nt(r.from+A,r.to+A,r.type))}return e}function _F(t,A,e,n,r,i,s){function a(c,u){for(let d=0;d<c.local.length;d++){let p=c.local[d].map(n,r,u);p?e.push(p):s.onRemove&&s.onRemove(c.local[d].spec)}for(let d=0;d<c.children.length;d+=3)a(c.children[d+2],c.children[d]+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 Mp(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 Dp(t){let A=[];for(let e=0;e<t.length;e++)t[e]!=null&&A.push(t[e]);return A}function Go(t,A,e,n){let r=[],i=!1;A.forEach((a,c)=>{let u=Mp(t,a,c+e);if(u){i=!0;let d=Go(u,a,e+c+1,n);d!=We&&r.push(c,c+a.nodeSize,d)}});let s=Op(i?Dp(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 ye(s,r):We}function Jr(t,A){return t.from-A.from||t.to-A.to}function Dc(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),kp(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),kp(A,r,n.copy(i.from,n.to)));break}}}return A}function kp(t,A,e){for(;A<t.length&&Jr(e,t[A])>0;)A++;t.splice(A,0,e)}function kc(t){let A=[];return t.someProp("decorations",e=>{let n=e(t.state);n&&n!=We&&A.push(n)}),t.cursorWrapper&&A.push(ye.create(t.state.doc,[t.cursorWrapper.deco])),ar.from(A)}const LF={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},OF=ht&&nr<=11;class MF{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 DF{constructor(A,e){this.view=A,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new MF,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]);ht&&nr<=11&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),OF&&(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,LF)),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(hp(this.view)){if(this.suppressingSelectionUpdates)return Sn(this.view);if(ht&&nr<=11&&!this.view.state.selection.empty){let A=this.view.domSelectionRange();if(A.focusNode&&Rr(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=ws(i))e.add(i);for(let i=A.anchorNode;i;i=ws(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}flush(){let{view:A}=this;if(!A.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let n=A.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&hp(A)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,c=[];if(A.editable)for(let d=0;d<e.length;d++){let p=this.registerMutation(e[d],c);p&&(i=i<0?p.from:Math.min(p.from,i),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(a=!0))}if(An&&c.length>1){let d=c.filter(p=>p.nodeName=="BR");if(d.length==2){let p=d[0],B=d[1];p.parentNode&&p.parentNode.parentNode==B.parentNode?B.remove():p.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&&ko(n)&&(u=Ec(A))&&u.eq(yA.near(A.state.doc.resolve(0),1))?(A.input.lastFocus=0,Sn(A),this.currentSelection.set(n),A.scrollToSelection()):(i>-1||r)&&(i>-1&&(A.docView.markDirty(i,s),kF(A)),this.handleDOMChange(i,s,a,c),A.docView&&A.docView.dirty?A.updateState(A.state):this.currentSelection.eq(n)||Sn(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 d=0;d<A.addedNodes.length;d++)e.push(A.addedNodes[d]);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(ht&&nr<=11&&A.addedNodes.length)for(let d=0;d<A.addedNodes.length;d++){let{previousSibling:p,nextSibling:B}=A.addedNodes[d];(!p||Array.prototype.indexOf.call(A.addedNodes,p)<0)&&(r=p),(!B||Array.prototype.indexOf.call(A.addedNodes,B)<0)&&(i=B)}let s=r&&r.parentNode==A.target?Qt(r)+1:0,a=n.localPosFromDOM(A.target,s,-1),c=i&&i.parentNode==A.target?Qt(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 Np=new WeakMap,Rp=!1;function kF(t){if(!Np.has(t)&&(Np.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=An,Rp)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."),Rp=!0}}function NF(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 Rr(a.node,a.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}function RF(t,A,e){let{node:n,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(A,e),c=t.domSelectionRange(),u,d=c.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],ko(c)||u.push({node:c.focusNode,offset:c.focusOffset})),je&&t.input.lastKeyCode===8)for(let S=i;S>r;S--){let U=n.childNodes[S-1],v=U.pmViewDesc;if(U.nodeName=="BR"&&!v){i=S;break}if(!v||v.size)break}let p=t.state.doc,B=t.someProp("domParser")||di.fromSchema(t.state.schema),m=p.resolve(s),C=null,E=B.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:KF,context:m});if(u&&u[0].pos!=null){let S=u[0].pos,U=u[1]&&u[1].pos;U==null&&(U=S),C={anchor:S+s,head:U+s}}return{doc:E,sel:C,from:s,to:a}}function KF(t){let A=t.pmViewDesc;if(A)return A.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(At&&/^(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||At&&/^(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 VF=/^(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 PF(t,A,e,n,r){if(A<0){let W=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,$=Ec(t,W);if($&&!t.state.selection.eq($)){if(je&&en&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",gA=>gA(t,Kr(13,"Enter"))))return;let eA=t.state.tr.setSelection($);W=="pointer"?eA.setMeta("pointer",!0):W=="key"&&eA.scrollIntoView(),t.dispatch(eA)}return}let i=t.state.doc.resolve(A),s=i.sharedDepth(e);A=i.before(s+1),e=t.state.doc.resolve(e).after(s+1);let a=t.state.selection,c=RF(t,A,e),u=t.state.doc,d=u.slice(c.from,c.to),p,B;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,B="end"):(p=t.state.selection.from,B="start"),t.input.lastKeyCode=null;let m=$F(d.content,c.doc.content,c.from,p,B);if((Qi&&t.input.lastIOSEnter>Date.now()-225||en)&&r.some(W=>W.nodeType==1&&!VF.test(W.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",W=>W(t,Kr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(n&&a instanceof FA&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let W=Kp(t,t.state.doc,c.sel);W&&!W.eq(t.state.selection)&&t.dispatch(t.state.tr.setSelection(W))}return}if(je&&t.cursorWrapper&&c.sel&&c.sel.anchor==t.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let W=m.endB-m.start;c.sel={anchor:c.sel.anchor+W,head:c.sel.anchor+W}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof FA&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),ht&&nr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)==" "&&(m.start--,m.endA--,m.endB--);let C=c.doc.resolveNoCache(m.start-c.from),E=c.doc.resolveNoCache(m.endB-c.from),S=u.resolve(m.start),U=C.sameParent(E)&&C.parent.inlineContent&&S.end()>=m.endA,v;if((Qi&&t.input.lastIOSEnter>Date.now()-225&&(!U||r.some(W=>W.nodeName=="DIV"||W.nodeName=="P"))||!U&&C.pos<c.doc.content.size&&(v=yA.findFrom(c.doc.resolve(C.pos+1),1,!0))&&v.head==E.pos)&&t.someProp("handleKeyDown",W=>W(t,Kr(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&WF(u,m.start,m.endA,C,E)&&t.someProp("handleKeyDown",W=>W(t,Kr(8,"Backspace")))){en&&je&&t.domObserver.suppressSelectionUpdates();return}je&&en&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),en&&!U&&C.start()!=E.start()&&E.parentOffset==0&&C.depth==E.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,E=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(W){return W(t,Kr(13,"Enter"))})},20));let M=m.start,F=m.endA,T,_,N;if(U){if(C.pos==E.pos)ht&&nr<=11&&C.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Sn(t),20)),T=t.state.tr.delete(M,F),_=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(N=GF(C.parent.content.cut(C.parentOffset,E.parentOffset),S.parent.content.cut(S.parentOffset,m.endA-S.start()))))T=t.state.tr,N.type=="add"?T.addMark(M,F,N.mark):T.removeMark(M,F,N.mark);else if(C.parent.child(C.index()).isText&&C.index()==E.index()-(E.textOffset?0:1)){let W=C.parent.textBetween(C.parentOffset,E.parentOffset);if(t.someProp("handleTextInput",$=>$(t,M,F,W)))return;T=t.state.tr.insertText(W,M,F)}}if(T||(T=t.state.tr.replace(M,F,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let W=Kp(t,T.doc,c.sel);W&&!(je&&en&&t.composing&&W.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(W.head==M||W.head==T.mapping.map(F)-1)||ht&&W.empty&&W.head==M)&&T.setSelection(W)}_&&T.ensureMarks(_),t.dispatch(T.scrollIntoView())}function Kp(t,A,e){return Math.max(e.anchor,e.head)>A.content.size?null:Uc(t,A.resolve(e.anchor),A.resolve(e.head))}function GF(t,A){let e=t.firstChild.marks,n=A.firstChild.marks,r=e,i=n,s,a,c;for(let d=0;d<n.length;d++)r=n[d].removeFromSet(r);for(let d=0;d<e.length;d++)i=e[d].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",c=d=>d.mark(a.addToSet(d.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",c=d=>d.mark(a.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<A.childCount;d++)u.push(c(A.child(d)));if(X.from(u).eq(t))return{mark:a,type:s}}function WF(t,A,e,n,r){if(!n.parent.isTextblock||e-A<=r.pos-n.pos||Nc(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(Nc(i,!0,!0));return!s.parent.isTextblock||s.pos>e||Nc(s,!0,!1)<e?!1:n.parent.content.cut(n.parentOffset).eq(s.parent.content)}function Nc(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 $F(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,a=i+(a-s),s=i}else if(a<i){let c=n<=i&&n>=a?i-n:0;i-=c,s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}class JF{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 dF,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach($p),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=Gp(this),Pp(this),this.nodeViews=Wp(this),this.docView=tp(this.state.doc,Vp(this),kc(this),this.dom,this),this.domObserver=new DF(this,(n,r,i,s)=>PF(this,n,r,i,s)),this.domObserver.start(),hF(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&&xc(this);let e=this._props;this._props=A,A.plugins&&(A.plugins.forEach($p),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){let n=this.state,r=!1,i=!1;A.storedMarks&&this.composing&&(_p(this),i=!0),this.state=A;let s=n.plugins!=A.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let B=Wp(this);YF(B,this.nodeViews)&&(this.nodeViews=B,r=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&xc(this),this.editable=Gp(this),Pp(this);let a=kc(this),c=Vp(this),u=n.plugins!=A.plugins&&!n.doc.eq(A.doc)?"reset":A.scrollToSelection>n.scrollToSelection?"to selection":"preserve",d=r||!this.docView.matchesNode(A.doc,c,a);(d||!A.selection.eq(n.selection))&&(i=!0);let p=u=="preserve"&&i&&this.dom.style.overflowAnchor==null&&HE(this);if(i){this.domObserver.stop();let B=d&&(ht||je)&&!this.composing&&!n.selection.empty&&!A.selection.empty&&XF(n.selection,A.selection);if(d){let m=je?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(A.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=tp(A.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(B=!0)}B||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&nF(this))?Sn(this,B):(fp(this,A.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&_E(p)}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&&Gh(this,e.getBoundingClientRect(),A)}else Gh(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)}}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(ht){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&&LE(this.dom),Sn(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}posAtCoords(A){return NE(this,A)}coordsAtPos(A,e=1){return Yh(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 GE(this,e||this.state,A)}pasteHTML(A,e){return Fs(this,"",A,!1,e||new ClipboardEvent("paste"))}pasteText(A,e){return Fs(this,A,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(pF(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],kc(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 BF(this,A)}dispatch(A){let e=this._props.dispatchTransaction;e?e.call(this,A):this.updateState(this.state.apply(A))}domSelectionRange(){return At&&this.root.nodeType===11&&vE(this.dom.ownerDocument)==this.dom?NF(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Vp(t){let A=Object.create(null);return A.class="ProseMirror",A.contenteditable=String(t.editable),A.translate="no",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]))}),[Nt.node(0,t.state.doc.content.size,A)]}function Pp(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:Nt.widget(t.state.selection.head,A,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Gp(t){return!t.someProp("editable",A=>A(t.state)===!1)}function XF(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 Wp(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 YF(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 $p(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 lr={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:"'"},Wo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Jp=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),zF=typeof navigator<"u"&&/Mac/.test(navigator.platform),qF=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ZF=zF||Jp&&+Jp[1]<57,_e=0;_e<10;_e++)lr[48+_e]=lr[96+_e]=String(_e);for(var _e=1;_e<=24;_e++)lr[_e+111]="F"+_e;for(var _e=65;_e<=90;_e++)lr[_e]=String.fromCharCode(_e+32),Wo[_e]=String.fromCharCode(_e);for(var Rc in lr)Wo.hasOwnProperty(Rc)||(Wo[Rc]=lr[Rc]);function jF(t){var A=ZF&&(t.ctrlKey||t.altKey||t.metaKey)||qF&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!A&&t.key||(t.shiftKey?Wo:lr)[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 AU=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function eU(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))AU?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 tU(t){let A=Object.create(null);for(let e in t)A[eU(e)]=t[e];return A}function Kc(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 nU(t){return new dt({props:{handleKeyDown:Xp(t)}})}function Xp(t){let A=tU(t);return function(e,n){let r=jF(n),i,s=A[Kc(r,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=" "){if(n.shiftKey){let a=A[Kc(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=lr[n.keyCode])&&i!=r){let a=A[Kc(i,n)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const rU=(t,A)=>t.selection.empty?!1:(A&&A(t.tr.deleteSelection().scrollIntoView()),!0);function iU(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("backward",t):e.parentOffset>0)?null:e}const sU=(t,A,e)=>{let n=iU(t,e);if(!n)return!1;let r=Yp(n);if(!r){let s=n.blockRange(),a=s&&gi(s);return a==null?!1:(A&&A(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&Zp(t,r,A))return!0;if(n.parent.content.size==0&&(Ii(i,"end")||uA.isSelectable(i))){let s=ac(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(Ii(i,"end")?yA.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 Ii(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=Yp(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 Yp(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 aU(t,A){let{$cursor:e}=t.selection;return!e||(A?!A.endOfTextblock("forward",t):e.parentOffset<e.parent.content.size)?null:e}const lU=(t,A,e)=>{let n=aU(t,e);if(!n)return!1;let r=zp(n);if(!r)return!1;let i=r.nodeAfter;if(Zp(t,r,A))return!0;if(n.parent.content.size==0&&(Ii(i,"start")||uA.isSelectable(i))){let s=ac(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(Ii(i,"start")?yA.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},cU=(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=zp(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 zp(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 uU=(t,A)=>{let e=t.selection,n=e instanceof uA,r;if(n){if(e.node.isTextblock||!Ar(t.doc,e.from))return!1;r=e.from}else if(r=bh(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},fU=(t,A)=>{let e=t.selection,n;if(e instanceof uA){if(e.node.isTextblock||!Ar(t.doc,e.to))return!1;n=e.to}else if(n=bh(t.doc,e.to,1),n==null)return!1;return A&&A(t.tr.join(n).scrollIntoView()),!0},dU=(t,A)=>{let{$from:e,$to:n}=t.selection,r=e.blockRange(n),i=r&&gi(r);return i==null?!1:(A&&A(t.tr.lift(r,i).scrollIntoView()),!0)},hU=(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 qp(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 pU=(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=qp(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(yA.near(c.doc.resolve(a),1)),A(c.scrollIntoView())}return!0},gU=(t,A)=>{let e=t.selection,{$from:n,$to:r}=e;if(e instanceof jt||n.parent.inlineContent||r.parent.inlineContent)return!1;let i=qp(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(FA.create(a.doc,s+1)),A(a.scrollIntoView())}return!0},BU=(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&&gi(n);return r==null?!1:(A&&A(t.tr.lift(n,r).scrollIntoView()),!0)},mU=(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||Ar(t.doc,A.pos))?!1:(e&&e(t.tr.clearIncompatible(A.pos,n.type,n.contentMatchAt(n.childCount)).join(A.pos).scrollIntoView()),!0)}function Zp(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 p=A.pos+r.nodeSize,B=X.empty;for(let E=i.length-1;E>=0;E--)B=X.from(i[E].create(null,B));B=X.from(n.copy(B));let m=t.tr.step(new ve(A.pos-1,p,A.pos,p,new j(B,1,0),i.length,!0)),C=p+2*i.length;Ar(m.doc,C)&&m.join(C),e(m.scrollIntoView())}return!0}let c=yA.findFrom(A,1),u=c&&c.$from.blockRange(c.$to),d=u&&gi(u);if(d!=null&&d>=A.depth)return e&&e(t.tr.lift(u,d).scrollIntoView()),!0;if(a&&Ii(r,"start",!0)&&Ii(n,"end")){let p=n,B=[];for(;B.push(p),!p.isTextblock;)p=p.lastChild;let m=r,C=1;for(;!m.isTextblock;m=m.firstChild)C++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(e){let E=X.empty;for(let U=B.length-1;U>=0;U--)E=X.from(B[U].copy(E));let S=t.tr.step(new ve(A.pos-B.length,A.pos+r.nodeSize,A.pos+C,A.pos+r.nodeSize-C,new j(E,B.length,0),0,!0));e(S.scrollIntoView())}return!0}}return!1}function jp(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(FA.create(A.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const CU=jp(-1),yU=jp(1);function QU(t,A=null){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i),a=s&&oc(s,t,A);return a?(n&&n(e.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Ag(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 d=e.doc.resolve(u),p=d.index();r=d.parent.canReplaceWith(p,p+1,t)}})}if(!r)return!1;if(n){let i=e.tr;for(let s=0;s<e.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:c}}=e.selection.ranges[s];i.setBlockType(a,c,t,A)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function EU(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 d=e.doc.resolve(s.start-2);c=new So(d,d,s.depth),s.endIndex<s.parent.childCount&&(s=new So(r,e.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=oc(c,t,A,s);return u?(n&&n(FU(e.tr,s,u,a,t).scrollIntoView()),!0):!1}}function FU(t,A,e,n,r){let i=X.empty;for(let d=e.length-1;d>=0;d--)i=X.from(e[d].type.create(e[d].attrs,i));t.step(new ve(A.start-(n?2:0),A.end,A.start,A.end,new j(i,0,0),e.length,!0));let s=0;for(let d=0;d<e.length;d++)e[d].type==r&&(s=d+1);let a=e.length-s,c=A.start+e.length-(n?2:0),u=A.parent;for(let d=A.startIndex,p=A.endIndex,B=!0;d<p;d++,B=!1)!B&&Bi(t.doc,c,a)&&(t.split(c,a),c+=2*a),c+=u.child(d).nodeSize;return t}function UU(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?bU(A,e,t,i):vU(A,e,i):!0:!1}}function bU(t,A,e,n){let r=t.tr,i=n.end,s=n.$to.end(n.depth);i<s&&(r.step(new ve(i-1,s,i,s,new j(X.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new So(r.doc.resolve(n.$from.pos),r.doc.resolve(s),n.depth));const a=gi(n);if(a==null)return!1;r.lift(n,a);let c=r.mapping.map(i,-1)-1;return Ar(r.doc,c)&&r.join(c),A(r.scrollIntoView()),!0}function vU(t,A,e){let n=t.tr,r=e.parent;for(let m=e.end,C=e.endIndex-1,E=e.startIndex;C>E;C--)m-=r.child(C).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),d=i.index(-1);if(!u.canReplace(d+(a?0:1),d+1,s.content.append(c?X.empty:X.from(r))))return!1;let p=i.pos,B=p+s.nodeSize;return n.step(new ve(p-(a?1:0),B+(c?1:0),p+1,B-1,new j((a?X.empty:X.from(r.copy(X.empty))).append(c?X.empty:X.from(r.copy(X.empty))),a?0:1,c?0:1),a?0:1)),A(n.scrollIntoView()),!0}function IU(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,d=X.from(u?t.create():null),p=new j(X.from(t.create(null,X.from(a.type.create(null,d)))),u?3:1,0),B=i.start,m=i.end;e(A.tr.step(new ve(B-(u?3:1),m,B,m,p,1,!0)).scrollIntoView())}return!0}}function $o(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 Jo{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,(...d)=>{const p=c(...d)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r,a=[],c=!!A,u=A||i.tr,d=()=>(!c&&e&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(B=>B===!0)),p={...Object.fromEntries(Object.entries(n).map(([B,m])=>[B,(...E)=>{const S=this.buildProps(u,e),U=m(...E)(S);return a.push(U),p}])),run:d};return p}createCan(A){const{rawCommands:e,state:n}=this,r=!1,i=A||n.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(e).map(([c,u])=>[c,(...d)=>u(...d)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(A,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:s}=r;i.storedMarks&&A.setStoredMarks(i.storedMarks);const a={tr:A,editor:r,view:s,state:$o({state:i,transaction:A}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(A),can:()=>this.createCan(A),get commands(){return Object.fromEntries(Object.entries(n).map(([c,u])=>[c,(...d)=>u(...d)(a)]))}};return a}}class SU{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 Xo(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 eg(t){const A=[],{nodeExtensions:e,markExtensions:n}=Xo(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(d=>{d.types.forEach(p=>{Object.entries(d.attributes).forEach(([B,m])=>{A.push({type:p,name:B,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(([d,p])=>{const B={...i,...p};typeof(B==null?void 0:B.default)=="function"&&(B.default=B.default()),B!=null&&B.isRequired&&(B==null?void 0:B.default)===void 0&&delete B.default,A.push({type:s.name,name:d,attribute:B})})}),A}function Ie(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 pe(...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}r==="class"?n[r]=[n[r],i].join(" "):r==="style"?n[r]=[n[r],i].join("; "):n[r]=i}),n},{})}function Vc(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)=>pe(e,n),{})}function tg(t){return typeof t=="function"}function QA(t,A=void 0,...e){return tg(t)?A?t.bind(A)(...e):t(...e):t}function TU(t={}){return Object.keys(t).length===0&&t.constructor===Object}function xU(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function ng(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):xU(e.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...n,...r}}}}function rg(t){return Object.fromEntries(Object.entries(t).filter(([A,e])=>A==="attrs"&&TU(e)?!1:e!=null))}function HU(t,A){var e;const n=eg(t),{nodeExtensions:r,markExtensions:i}=Xo(t),s=(e=r.find(u=>iA(u,"topNode")))===null||e===void 0?void 0:e.name,a=Object.fromEntries(r.map(u=>{const d=n.filter(U=>U.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:A},B=t.reduce((U,v)=>{const M=iA(v,"extendNodeSchema",p);return{...U,...M?M(u):{}}},{}),m=rg({...B,content:QA(iA(u,"content",p)),marks:QA(iA(u,"marks",p)),group:QA(iA(u,"group",p)),inline:QA(iA(u,"inline",p)),atom:QA(iA(u,"atom",p)),selectable:QA(iA(u,"selectable",p)),draggable:QA(iA(u,"draggable",p)),code:QA(iA(u,"code",p)),defining:QA(iA(u,"defining",p)),isolating:QA(iA(u,"isolating",p)),attrs:Object.fromEntries(d.map(U=>{var v;return[U.name,{default:(v=U==null?void 0:U.attribute)===null||v===void 0?void 0:v.default}]}))}),C=QA(iA(u,"parseHTML",p));C&&(m.parseDOM=C.map(U=>ng(U,d)));const E=iA(u,"renderHTML",p);E&&(m.toDOM=U=>E({node:U,HTMLAttributes:Vc(U,d)}));const S=iA(u,"renderText",p);return S&&(m.toText=S),[u.name,m]})),c=Object.fromEntries(i.map(u=>{const d=n.filter(S=>S.type===u.name),p={name:u.name,options:u.options,storage:u.storage,editor:A},B=t.reduce((S,U)=>{const v=iA(U,"extendMarkSchema",p);return{...S,...v?v(u):{}}},{}),m=rg({...B,inclusive:QA(iA(u,"inclusive",p)),excludes:QA(iA(u,"excludes",p)),group:QA(iA(u,"group",p)),spanning:QA(iA(u,"spanning",p)),code:QA(iA(u,"code",p)),attrs:Object.fromEntries(d.map(S=>{var U;return[S.name,{default:(U=S==null?void 0:S.attribute)===null||U===void 0?void 0:U.default}]}))}),C=QA(iA(u,"parseHTML",p));C&&(m.parseDOM=C.map(S=>ng(S,d)));const E=iA(u,"renderHTML",p);return E&&(m.toDOM=S=>E({mark:S,HTMLAttributes:Vc(S,d)})),[u.name,m]}));return new GQ({topNode:s,nodes:a,marks:c})}function Pc(t,A){return A.nodes[t]||A.marks[t]||null}function ig(t,A){return Array.isArray(A)?A.some(e=>(typeof e=="string"?e:e.name)===t.name):A}const _U=(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 d=((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+=d.slice(0,Math.max(0,n-i))}),e};function Gc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Yo{constructor(A){this.find=A.find,this.handler=A.handler}}const LU=(t,A)=>{if(Gc(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 Wc(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(B=>B.type.spec.code))return!1;let d=!1;const p=_U(u)+i;return s.forEach(B=>{if(d)return;const m=LU(p,B.find);if(!m)return;const C=c.state.tr,E=$o({state:c.state,transaction:C}),S={from:n-(m[0].length-i.length),to:r},{commands:U,chain:v,can:M}=new Jo({editor:e,state:E});B.handler({state:E,range:S,match:m,commands:U,chain:v,can:M})===null||!C.steps.length||(C.setMeta(a,{transform:C,from:n,to:r,text:i}),c.dispatch(C),d=!0)}),d}function OU(t){const{editor:A,rules:e}=t,n=new dt({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 Wc({editor:A,from:i,to:s,text:a,rules:e,plugin:n})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Wc({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?Wc({editor:A,from:s.pos,to:s.pos,text:`
|
|
11
|
+
`,rules:e,plugin:n}):!1}},isInputRules:!0});return n}function MU(t){return typeof t=="number"}class DU{constructor(A){this.find=A.find,this.handler=A.handler}}const kU=(t,A)=>{if(Gc(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 NU(t){const{editor:A,state:e,from:n,to:r,rule:i}=t,{commands:s,chain:a,can:c}=new Jo({editor:A,state:e}),u=[];return e.doc.nodesBetween(n,r,(p,B)=>{if(!p.isTextblock||p.type.spec.code)return;const m=Math.max(n,B),C=Math.min(r,B+p.content.size),E=p.textBetween(m-B,C-B,void 0,"");kU(E,i.find).forEach(U=>{if(U.index===void 0)return;const v=m+U.index+1,M=v+U[0].length,F={from:e.tr.mapping.map(v),to:e.tr.mapping.map(M)},T=i.handler({state:e,range:F,match:U,commands:s,chain:a,can:c});u.push(T)})}),u.every(p=>p!==null)}function RU(t){const{editor:A,rules:e}=t;let n=null,r=!1,i=!1;return e.map(a=>new dt({view(c){const u=d=>{var p;n=!((p=c.dom.parentElement)===null||p===void 0)&&p.contains(d.target)?c.dom.parentElement:null};return window.addEventListener("dragstart",u),{destroy(){window.removeEventListener("dragstart",u)}}},props:{handleDOMEvents:{drop:c=>(i=n===c.dom.parentElement,!1),paste:(c,u)=>{var d;const p=(d=u.clipboardData)===null||d===void 0?void 0:d.getData("text/html");return r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(c,u,d)=>{const p=c[0],B=p.getMeta("uiEvent")==="paste"&&!r,m=p.getMeta("uiEvent")==="drop"&&!i;if(!B&&!m)return;const C=u.doc.content.findDiffStart(d.doc.content),E=u.doc.content.findDiffEnd(d.doc.content);if(!MU(C)||!E||C===E.b)return;const S=d.tr,U=$o({state:d,transaction:S});if(!(!NU({editor:A,state:U,from:Math.max(C-1,0),to:E.b-1,rule:a})||!S.steps.length))return S}}))}function KU(t){const A=t.filter((e,n)=>t.indexOf(e)!==n);return[...new Set(A)]}class Si{constructor(A,e){this.splittableMarks=[],this.editor=e,this.extensions=Si.resolve(A),this.schema=HU(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:Pc(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 d=iA(n,"onTransaction",i);d&&this.editor.on("transaction",d);const p=iA(n,"onFocus",i);p&&this.editor.on("focus",p);const B=iA(n,"onBlur",i);B&&this.editor.on("blur",B);const m=iA(n,"onDestroy",i);m&&this.editor.on("destroy",m)})}static resolve(A){const e=Si.sort(Si.flatten(A)),n=KU(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:Pc(e.name,this.schema)},r=iA(e,"addCommands",n);return r?{...A,...r()}:A},{})}get plugins(){const{editor:A}=this,e=Si.sort([...this.extensions].reverse()),n=[],r=[],i=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:A,type:Pc(s.name,this.schema)},c=[],u=iA(s,"addKeyboardShortcuts",a);let d={};if(s.type==="mark"&&s.config.exitable&&(d.ArrowRight=()=>nn.handleExit({editor:A,mark:s})),u){const E=Object.fromEntries(Object.entries(u()).map(([S,U])=>[S,()=>U({editor:A})]));d={...d,...E}}const p=nU(d);c.push(p);const B=iA(s,"addInputRules",a);ig(s,A.options.enableInputRules)&&B&&n.push(...B());const m=iA(s,"addPasteRules",a);ig(s,A.options.enablePasteRules)&&m&&r.push(...m());const C=iA(s,"addProseMirrorPlugins",a);if(C){const E=C();c.push(...E)}return c}).flat();return[OU({editor:A,rules:n}),...RU({editor:A,rules:r}),...i]}get attributes(){return eg(this.extensions)}get nodeViews(){const{editor:A}=this,{nodeExtensions:e}=Xo(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:Ie(n.name,this.schema)},s=iA(n,"addNodeView",i);if(!s)return[];const a=(c,u,d,p)=>{const B=Vc(c,r);return s()({editor:A,node:c,getPos:d,decorations:p,HTMLAttributes:B,extension:n})};return[n.name,a]}))}}function VU(t){return Object.prototype.toString.call(t).slice(8,-1)}function $c(t){return VU(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function zo(t,A){const e={...t};return $c(t)&&$c(A)&&Object.keys(A).forEach(n=>{$c(A[n])?n in t?e[n]=zo(t[n],A[n]):Object.assign(e,{[n]:A[n]}):Object.assign(e,{[n]:A[n]})}),e}class $e{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 $e(A)}configure(A={}){const e=this.extend();return e.options=zo(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new $e(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 sg(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,d,p,B)=>{var m;const C=s==null?void 0:s[u.type.name];C?(u.isBlock&&!c&&(a+=i,c=!0),p&&(a+=C({node:u,pos:d,parent:p,index:B,range:A}))):u.isText?(a+=(m=u==null?void 0:u.text)===null||m===void 0?void 0:m.slice(Math.max(n,d)-d,r-d),c=!1):u.isBlock&&!c&&(a+=i,c=!0)}),a}function og(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,A])=>A.spec.toText).map(([A,e])=>[A,e.spec.toText]))}const PU=$e.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new dt({key:new pn("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(d=>d.$from.pos)),a=Math.max(...i.map(d=>d.$to.pos)),c=og(e);return sg(n,{from:s,to:a},{textSerializers:c})}}})]}}),GU=()=>({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),WU=(t=!1)=>({commands:A})=>A.setContent("",t),$U=()=>({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:d}=A,p=u.resolve(d.map(c)),B=u.resolve(d.map(c+a.nodeSize)),m=p.blockRange(B);if(!m)return;const C=gi(m);if(a.type.isTextblock){const{defaultType:E}=p.parent.contentMatchAt(p.index());A.setNodeMarkup(m.start,E)}(C||C===0)&&A.lift(m,C)})}),!0},JU=t=>A=>t(A),XU=()=>({state:t,dispatch:A})=>gU(t,A),YU=()=>({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},zU=t=>({tr:A,state:e,dispatch:n})=>{const r=Ie(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},qU=t=>({tr:A,dispatch:e})=>{const{from:n,to:r}=t;return e&&A.delete(n,r),!0},ZU=()=>({state:t,dispatch:A})=>rU(t,A),jU=()=>({commands:t})=>t.keyboardShortcut("Enter"),Ab=()=>({state:t,dispatch:A})=>pU(t,A);function qo(t,A,e={strict:!0}){const n=Object.keys(A);return n.length?n.every(r=>e.strict?A[r]===t[r]:Gc(A[r])?A[r].test(t[r]):A[r]===t[r]):!0}function Jc(t,A,e={}){return t.find(n=>n.type===A&&qo(n.attrs,e))}function eb(t,A,e={}){return!!Jc(t,A,e)}function Xc(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=Jc([...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(Jc([...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&&eb([...t.parent.child(a).marks],A,e);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function cr(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 tb=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const i=cr(t,n.schema),{doc:s,selection:a}=e,{$from:c,from:u,to:d}=a;if(r){const p=Xc(c,i,A);if(p&&p.from<=u&&p.to>=d){const B=FA.create(s,p.from,p.to);e.setSelection(B)}}return!0},nb=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 Yc(t){return t instanceof FA}function Tn(t=0,A=0,e=0){return Math.min(Math.max(t,A),e)}function ag(t,A=null){if(!A)return null;const e=yA.atStart(t),n=yA.atEnd(t);if(A==="start"||A===!0)return e;if(A==="end")return n;const r=e.from,i=n.to;return A==="all"?FA.create(t,Tn(0,r,i),Tn(t.content.size,r,i)):FA.create(t,Tn(A,r,i),Tn(A,r,i))}function zc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const rb=(t=null,A={})=>({editor:e,view:n,tr:r,dispatch:i})=>{A={scrollIntoView:!0,...A};const s=()=>{zc()&&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&&!Yc(e.state.selection))return s(),!0;const a=ag(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},ib=(t,A)=>e=>t.every((n,r)=>A(n,{...e,index:r})),sb=(t,A)=>({tr:e,commands:n})=>n.insertContentAt({from:e.selection.from,to:e.selection.to},t,A);function lg(t){const A=`<body>${t}</body>`;return new window.DOMParser().parseFromString(A,"text/html").body}function Zo(t,A,e){if(e={slice:!0,parseOptions:{},...e},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?X.fromArray(t.map(n=>A.nodeFromJSON(n))):A.nodeFromJSON(t)}catch(n){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",n),Zo("",A,e)}if(typeof t=="string"){const n=di.fromSchema(A);return e.slice?n.parseSlice(lg(t),e.parseOptions).content:n.parse(lg(t),e.parseOptions)}return Zo("",A,e)}function ob(t,A,e){const n=t.steps.length-1;if(n<A)return;const r=t.steps[n];if(!(r instanceof Ge||r instanceof ve))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,d)=>{s===0&&(s=d)}),t.setSelection(yA.near(t.doc.resolve(s),e))}const ab=t=>t.toString().startsWith("<"),lb=(t,A,e)=>({tr:n,dispatch:r,editor:i})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=Zo(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}:t,u=!0,d=!0;if((ab(s)?s:[s]).forEach(B=>{B.check(),u=u?B.isText&&B.marks.length===0:!1,d=d?B.isBlock:!1}),a===c&&d){const{parent:B}=n.doc.resolve(a);B.isTextblock&&!B.type.spec.code&&!B.childCount&&(a-=1,c+=1)}u?Array.isArray(A)?n.insertText(A.map(B=>B.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&&ob(n,n.steps.length-1,-1)}return!0},cb=()=>({state:t,dispatch:A})=>uU(t,A),ub=()=>({state:t,dispatch:A})=>fU(t,A),fb=()=>({state:t,dispatch:A})=>sU(t,A),db=()=>({state:t,dispatch:A})=>lU(t,A);function cg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function hb(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))zc()||cg()?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 pb=t=>({editor:A,view:e,tr:n,dispatch:r})=>{const i=hb(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 d=u.map(n.mapping);d&&r&&n.maybeStep(d)}),!0};function bs(t,A,e={}){const{from:n,to:r,empty:i}=t.selection,s=A?Ie(A,t.schema):null,a=[];t.doc.nodesBetween(n,r,(p,B)=>{if(p.isText)return;const m=Math.max(n,B),C=Math.min(r,B+p.nodeSize);a.push({node:p,from:m,to:C})});const c=r-n,u=a.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>qo(p.node.attrs,e,{strict:!1}));return i?!!u.length:u.reduce((p,B)=>p+B.to-B.from,0)>=c}const gb=(t,A={})=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return bs(e,r,A)?dU(e,n):!1},Bb=()=>({state:t,dispatch:A})=>BU(t,A),mb=t=>({state:A,dispatch:e})=>{const n=Ie(t,A.schema);return UU(n)(A,e)},wb=()=>({state:t,dispatch:A})=>hU(t,A);function jo(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 Cb=(t,A)=>({tr:e,state:n,dispatch:r})=>{let i=null,s=null;const a=jo(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Ie(t,n.schema)),a==="mark"&&(s=cr(t,n.schema)),r&&e.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{i&&i===u.type&&e.setNodeMarkup(d,void 0,ug(u.attrs,A)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&e.addMark(d,d+u.nodeSize,s.create(ug(p.attrs,A)))})})}),!0):!1},yb=()=>({tr:t,dispatch:A})=>(A&&t.scrollIntoView(),!0),Qb=()=>({tr:t,commands:A})=>A.setTextSelection({from:0,to:t.doc.content.size}),Eb=()=>({state:t,dispatch:A})=>oU(t,A),Fb=()=>({state:t,dispatch:A})=>cU(t,A),Ub=()=>({state:t,dispatch:A})=>mU(t,A),bb=()=>({state:t,dispatch:A})=>yU(t,A),vb=()=>({state:t,dispatch:A})=>CU(t,A);function fg(t,A,e={}){return Zo(t,A,{slice:!1,parseOptions:e})}const Ib=(t,A=!1,e={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=fg(t,r.schema,e);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!A),!0};function Sb(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 Tb(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 qc(t){return A=>Tb(A.$from,t)}function xb(t,A){const e=dn.fromSchema(A).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function Hb(t,A){const e={from:0,to:t.content.size};return sg(t,e,A)}function Aa(t,A){const e=cr(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 _b(t,A){const e=Ie(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 Lb(t,A){const e=jo(typeof A=="string"?A:A.name,t.schema);return e==="node"?_b(t,A):e==="mark"?Aa(t,A):{}}function dg(t,A,e){const n=[];return t===A?e.resolve(t).marks().forEach(r=>{const i=e.resolve(t-1),s=Xc(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 ea(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 Zc(t,A,e={}){const{empty:n,ranges:r}=t.selection,i=A?cr(A,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>qo(p.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:p,$to:B})=>{const m=p.pos,C=B.pos;t.doc.nodesBetween(m,C,(E,S)=>{if(!E.isText&&!E.marks.length)return;const U=Math.max(m,S),v=Math.min(C,S+E.nodeSize),k=v-U;s+=k,a.push(...E.marks.map(F=>({mark:F,from:U,to:v})))})}),s===0)return!1;const c=a.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>qo(p.mark.attrs,e,{strict:!1})).reduce((p,B)=>p+B.to-B.from,0),u=a.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,B)=>p+B.to-B.from,0);return(c>0?c+u:c)>=s}function Ob(t,A,e={}){if(!A)return bs(t,null,e)||Zc(t,null,e);const n=jo(A,t.schema);return n==="node"?bs(t,A,e):n==="mark"?Zc(t,A,e):!1}function hg(t,A){const{nodeExtensions:e}=Xo(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 kb(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 Mb(t){return t instanceof uA}function pg(t,A,e){const r=t.state.doc.content.size,i=Tn(A,0,r),s=Tn(e,0,r),a=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(a.top,c.top),d=Math.max(a.bottom,c.bottom),p=Math.min(a.left,c.left),B=Math.max(a.right,c.right),m=B-p,C=d-u,U={top:u,bottom:d,left:p,right:B,width:m,height:C,x:p,y:u};return{...U,toJSON:()=>U}}function Db(t,A,e){var n;const{selection:r}=A;let i=null;if(Yc(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,(d,p,B)=>{if(u)return!1;if(d.isInline){const m=!B||B.type.allowsMarkType(e),C=!!e.isInSet(d.marks)||!d.marks.some(E=>E.type.excludes(e));u=m&&C}return!u}),u})}const Nb=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=e,{empty:s,ranges:a}=i,c=cr(t,n.schema);if(r)if(s){const u=Aa(n,c);e.addStoredMark(c.create({...u,...A}))}else a.forEach(u=>{const d=u.$from.pos,p=u.$to.pos;n.doc.nodesBetween(d,p,(B,m)=>{const C=Math.max(m,d),E=Math.min(m+B.nodeSize,p);B.marks.find(U=>U.type===c)?B.marks.forEach(U=>{c===U.type&&e.addMark(C,E,c.create({...U.attrs,...A}))}):e.addMark(C,E,c.create(A))})});return Db(n,e,c)},Rb=(t,A)=>({tr:e})=>(e.setMeta(t,A),!0),Kb=(t,A={})=>({state:e,dispatch:n,chain:r})=>{const i=Ie(t,e.schema);return i.isTextblock?r().command(({commands:s})=>Ag(i,A)(e)?!0:s.clearNodes()).command(({state:s})=>Ag(i,A)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Vb=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,r=Tn(t,0,n.content.size),i=uA.create(n,r);A.setSelection(i)}return!0},Pb=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=FA.atStart(n).from,a=FA.atEnd(n).to,c=Tn(r,s,a),u=Tn(i,s,a),d=FA.create(n,c,u);A.setSelection(d)}return!0},Gb=t=>({state:A,dispatch:e})=>{const n=Ie(t,A.schema);return IU(n)(A,e)};function gg(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 Wb=({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,d=ea(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&&gg(e,r.extensionManager.splittableMarks),A.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof FA&&A.deleteSelection();const B=a.depth===0?void 0:Sb(a.node(-1).contentMatchAt(a.indexAfter(-1)));let m=p&&B?[{type:B,attrs:d}]:void 0,C=Bi(A.doc,A.mapping.map(a.pos),1,m);if(!m&&!C&&Bi(A.doc,A.mapping.map(a.pos),1,B?[{type:B}]:void 0)&&(C=!0,m=B?[{type:B,attrs:d}]:void 0),C&&(A.split(A.mapping.map(a.pos),1,m),B&&!p&&!a.parentOffset&&a.parent.type!==B)){const E=A.mapping.map(a.before()),S=A.doc.resolve(E);a.node(-1).canReplaceWith(S.index(),S.index()+1,B)&&A.setNodeMarkup(A.mapping.map(a.before()),B)}t&&gg(e,r.extensionManager.splittableMarks),A.scrollIntoView()}return!0},$b=t=>({tr:A,state:e,dispatch:n,editor:r})=>{var i;const s=Ie(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 d=a.node(-1);if(d.type!==s)return!1;const p=r.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(n){let S=X.empty;const U=a.index(-1)?1:a.index(-2)?2:3;for(let N=a.depth-U;N>=a.depth-3;N-=1)S=X.from(a.node(N).copy(S));const v=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,k=ea(p,a.node().type.name,a.node().attrs),F=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(k))||void 0;S=S.append(X.from(s.createAndFill(null,F)||void 0));const T=a.before(a.depth-(U-1));A.replace(T,a.after(-v),new j(S,4-U,0));let _=-1;A.doc.nodesBetween(T,A.doc.content.size,(N,W)=>{if(_>-1)return!1;N.isTextblock&&N.content.size===0&&(_=W+1)}),_>-1&&A.setSelection(FA.near(A.doc.resolve(_))),A.scrollIntoView()}return!0}const B=c.pos===a.end()?d.contentMatchAt(0).defaultType:null,m=ea(p,d.type.name,d.attrs),C=ea(p,a.node().type.name,a.node().attrs);A.delete(a.pos,c.pos);const E=B?[{type:s,attrs:m},{type:B,attrs:C}]:[{type:s,attrs:m}];if(!Bi(A.doc,a.pos,2))return!1;if(n){const{selection:S,storedMarks:U}=e,{splittableMarks:v}=r.extensionManager,k=U||S.$to.parentOffset&&S.$from.marks();if(A.split(a.pos,2,E).scrollIntoView(),!k||!n)return!0;const F=k.filter(T=>v.includes(T.type.name));A.ensureMarks(F)}return!0},jc=(t,A)=>{const e=qc(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.node.type===(r==null?void 0:r.type)&&Ar(t.doc,e.pos)&&t.join(e.pos),!0},Au=(t,A)=>{const e=qc(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(e.start).after(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.node.type===(r==null?void 0:r.type)&&Ar(t.doc,n)&&t.join(n),!0};var Jb=Object.freeze({__proto__:null,blur:GU,clearContent:WU,clearNodes:$U,command:JU,createParagraphNear:XU,deleteCurrentNode:YU,deleteNode:zU,deleteRange:qU,deleteSelection:ZU,enter:jU,exitCode:Ab,extendMarkRange:tb,first:nb,focus:rb,forEach:ib,insertContent:sb,insertContentAt:lb,joinUp:cb,joinDown:ub,joinBackward:fb,joinForward:db,keyboardShortcut:pb,lift:gb,liftEmptyBlock:Bb,liftListItem:mb,newlineInCode:wb,resetAttributes:Cb,scrollIntoView:yb,selectAll:Qb,selectNodeBackward:Eb,selectNodeForward:Fb,selectParentNode:Ub,selectTextblockEnd:bb,selectTextblockStart:vb,setContent:Ib,setMark:Nb,setMeta:Rb,setNode:Kb,setNodeSelection:Vb,setTextSelection:Pb,sinkListItem:Gb,splitBlock:Wb,splitListItem:$b,toggleList:(t,A,e,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:d})=>{const{extensions:p,splittableMarks:B}=r.extensionManager,m=Ie(t,s.schema),C=Ie(A,s.schema),{selection:E,storedMarks:S}=s,{$from:U,$to:v}=E,k=U.blockRange(v),F=S||E.$to.parentOffset&&E.$from.marks();if(!k)return!1;const T=qc(_=>hg(_.type.name,p))(E);if(k.depth>=1&&T&&k.depth-T.depth<=1){if(T.node.type===m)return u.liftListItem(C);if(hg(T.node.type.name,p)&&m.validContent(T.node.content)&&a)return c().command(()=>(i.setNodeMarkup(T.pos,m),!0)).command(()=>jc(i,m)).command(()=>Au(i,m)).run()}return!e||!F||!a?c().command(()=>d().wrapInList(m,n)?!0:u.clearNodes()).wrapInList(m,n).command(()=>jc(i,m)).command(()=>Au(i,m)).run():c().command(()=>{const _=d().wrapInList(m,n),N=F.filter(W=>B.includes(W.type.name));return i.ensureMarks(N),_?!0:u.clearNodes()}).wrapInList(m,n).command(()=>jc(i,m)).command(()=>Au(i,m)).run()},toggleMark:(t,A={},e={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=e,s=cr(t,n.schema);return Zc(n,s,A)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,A)},toggleNode:(t,A,e={})=>({state:n,commands:r})=>{const i=Ie(t,n.schema),s=Ie(A,n.schema);return bs(n,i,e)?r.setNode(s):r.setNode(i,e)},toggleWrap:(t,A={})=>({state:e,commands:n})=>{const r=Ie(t,e.schema);return bs(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=cr(t,n.schema),{$from:u,empty:d,ranges:p}=a;if(!r)return!0;if(d&&s){let{from:B,to:m}=a;const C=(i=u.marks().find(S=>S.type===c))===null||i===void 0?void 0:i.attrs,E=Xc(u,c,C);E&&(B=E.from,m=E.to),e.removeMark(B,m,c)}else p.forEach(B=>{e.removeMark(B.$from.pos,B.$to.pos,c)});return e.removeStoredMark(c),!0},updateAttributes:(t,A={})=>({tr:e,state:n,dispatch:r})=>{let i=null,s=null;const a=jo(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Ie(t,n.schema)),a==="mark"&&(s=cr(t,n.schema)),r&&e.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;n.doc.nodesBetween(u,d,(p,B)=>{i&&i===p.type&&e.setNodeMarkup(B,void 0,{...p.attrs,...A}),s&&p.marks.length&&p.marks.forEach(m=>{if(s===m.type){const C=Math.max(B,u),E=Math.min(B+p.nodeSize,d);e.addMark(C,E,s.create({...m.attrs,...A}))}})})}),!0):!1},wrapIn:(t,A={})=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return QU(r,A)(e,n)},wrapInList:(t,A={})=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return EU(r,A)(e,n)}});const Xb=$e.create({name:"commands",addCommands(){return{...Jb}}}),Yb=$e.create({name:"editable",addProseMirrorPlugins(){return[new dt({key:new pn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),zb=$e.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new dt({key:new pn("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}}}})]}}),qb=$e.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:d,$anchor:p}=c,{pos:B,parent:m}=p,C=yA.atStart(u).from===B;return!d||!C||!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 zc()||cg()?i:r},addProseMirrorPlugins(){return[new dt({key:new pn("clearDocument"),appendTransaction:(t,A,e)=>{if(!(t.some(C=>C.docChanged)&&!A.doc.eq(e.doc)))return;const{empty:r,from:i,to:s}=A.selection,a=yA.atStart(A.doc).from,c=yA.atEnd(A.doc).to;if(r||!(i===a&&s===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const p=e.tr,B=$o({state:e,transaction:p}),{commands:m}=new Jo({editor:this.editor,state:B});if(m.clearNodes(),!!p.steps.length)return p}})]}}),Zb=$e.create({name:"tabindex",addProseMirrorPlugins(){return[new dt({key:new pn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var jb=Object.freeze({__proto__:null,ClipboardTextSerializer:PU,Commands:Xb,Editable:Yb,FocusEvents:zb,Keymap:qb,Tabindex:Zb});const Av=`.ProseMirror {
|
|
13
|
+
`,textSerializers:s={}}=e||{};let a="",c=!0;return t.nodesBetween(n,r,(u,d,p,B)=>{var m;const C=s==null?void 0:s[u.type.name];C?(u.isBlock&&!c&&(a+=i,c=!0),p&&(a+=C({node:u,pos:d,parent:p,index:B,range:A}))):u.isText?(a+=(m=u==null?void 0:u.text)===null||m===void 0?void 0:m.slice(Math.max(n,d)-d,r-d),c=!1):u.isBlock&&!c&&(a+=i,c=!0)}),a}function og(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,A])=>A.spec.toText).map(([A,e])=>[A,e.spec.toText]))}const PU=$e.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new dt({key:new pn("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(d=>d.$from.pos)),a=Math.max(...i.map(d=>d.$to.pos)),c=og(e);return sg(n,{from:s,to:a},{textSerializers:c})}}})]}}),GU=()=>({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),WU=(t=!1)=>({commands:A})=>A.setContent("",t),$U=()=>({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:d}=A,p=u.resolve(d.map(c)),B=u.resolve(d.map(c+a.nodeSize)),m=p.blockRange(B);if(!m)return;const C=gi(m);if(a.type.isTextblock){const{defaultType:E}=p.parent.contentMatchAt(p.index());A.setNodeMarkup(m.start,E)}(C||C===0)&&A.lift(m,C)})}),!0},JU=t=>A=>t(A),XU=()=>({state:t,dispatch:A})=>gU(t,A),YU=()=>({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},zU=t=>({tr:A,state:e,dispatch:n})=>{const r=Ie(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},qU=t=>({tr:A,dispatch:e})=>{const{from:n,to:r}=t;return e&&A.delete(n,r),!0},ZU=()=>({state:t,dispatch:A})=>rU(t,A),jU=()=>({commands:t})=>t.keyboardShortcut("Enter"),Ab=()=>({state:t,dispatch:A})=>pU(t,A);function qo(t,A,e={strict:!0}){const n=Object.keys(A);return n.length?n.every(r=>e.strict?A[r]===t[r]:Gc(A[r])?A[r].test(t[r]):A[r]===t[r]):!0}function Jc(t,A,e={}){return t.find(n=>n.type===A&&qo(n.attrs,e))}function eb(t,A,e={}){return!!Jc(t,A,e)}function Xc(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=Jc([...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(Jc([...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&&eb([...t.parent.child(a).marks],A,e);)c+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:c}}function cr(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 tb=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const i=cr(t,n.schema),{doc:s,selection:a}=e,{$from:c,from:u,to:d}=a;if(r){const p=Xc(c,i,A);if(p&&p.from<=u&&p.to>=d){const B=FA.create(s,p.from,p.to);e.setSelection(B)}}return!0},nb=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 Yc(t){return t instanceof FA}function Tn(t=0,A=0,e=0){return Math.min(Math.max(t,A),e)}function ag(t,A=null){if(!A)return null;const e=yA.atStart(t),n=yA.atEnd(t);if(A==="start"||A===!0)return e;if(A==="end")return n;const r=e.from,i=n.to;return A==="all"?FA.create(t,Tn(0,r,i),Tn(t.content.size,r,i)):FA.create(t,Tn(A,r,i),Tn(A,r,i))}function zc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const rb=(t=null,A={})=>({editor:e,view:n,tr:r,dispatch:i})=>{A={scrollIntoView:!0,...A};const s=()=>{zc()&&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&&!Yc(e.state.selection))return s(),!0;const a=ag(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},ib=(t,A)=>e=>t.every((n,r)=>A(n,{...e,index:r})),sb=(t,A)=>({tr:e,commands:n})=>n.insertContentAt({from:e.selection.from,to:e.selection.to},t,A);function lg(t){const A=`<body>${t}</body>`;return new window.DOMParser().parseFromString(A,"text/html").body}function Zo(t,A,e){if(e={slice:!0,parseOptions:{},...e},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?X.fromArray(t.map(n=>A.nodeFromJSON(n))):A.nodeFromJSON(t)}catch(n){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",n),Zo("",A,e)}if(typeof t=="string"){const n=di.fromSchema(A);return e.slice?n.parseSlice(lg(t),e.parseOptions).content:n.parse(lg(t),e.parseOptions)}return Zo("",A,e)}function ob(t,A,e){const n=t.steps.length-1;if(n<A)return;const r=t.steps[n];if(!(r instanceof Ge||r instanceof ve))return;const i=t.mapping.maps[n];let s=0;i.forEach((a,c,u,d)=>{s===0&&(s=d)}),t.setSelection(yA.near(t.doc.resolve(s),e))}const ab=t=>t.toString().startsWith("<"),lb=(t,A,e)=>({tr:n,dispatch:r,editor:i})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=Zo(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}:t,u=!0,d=!0;if((ab(s)?s:[s]).forEach(B=>{B.check(),u=u?B.isText&&B.marks.length===0:!1,d=d?B.isBlock:!1}),a===c&&d){const{parent:B}=n.doc.resolve(a);B.isTextblock&&!B.type.spec.code&&!B.childCount&&(a-=1,c+=1)}u?Array.isArray(A)?n.insertText(A.map(B=>B.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&&ob(n,n.steps.length-1,-1)}return!0},cb=()=>({state:t,dispatch:A})=>uU(t,A),ub=()=>({state:t,dispatch:A})=>fU(t,A),fb=()=>({state:t,dispatch:A})=>sU(t,A),db=()=>({state:t,dispatch:A})=>lU(t,A);function cg(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function hb(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))zc()||cg()?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 pb=t=>({editor:A,view:e,tr:n,dispatch:r})=>{const i=hb(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 d=u.map(n.mapping);d&&r&&n.maybeStep(d)}),!0};function bs(t,A,e={}){const{from:n,to:r,empty:i}=t.selection,s=A?Ie(A,t.schema):null,a=[];t.doc.nodesBetween(n,r,(p,B)=>{if(p.isText)return;const m=Math.max(n,B),C=Math.min(r,B+p.nodeSize);a.push({node:p,from:m,to:C})});const c=r-n,u=a.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>qo(p.node.attrs,e,{strict:!1}));return i?!!u.length:u.reduce((p,B)=>p+B.to-B.from,0)>=c}const gb=(t,A={})=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return bs(e,r,A)?dU(e,n):!1},Bb=()=>({state:t,dispatch:A})=>BU(t,A),mb=t=>({state:A,dispatch:e})=>{const n=Ie(t,A.schema);return UU(n)(A,e)},wb=()=>({state:t,dispatch:A})=>hU(t,A);function jo(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 Cb=(t,A)=>({tr:e,state:n,dispatch:r})=>{let i=null,s=null;const a=jo(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Ie(t,n.schema)),a==="mark"&&(s=cr(t,n.schema)),r&&e.selection.ranges.forEach(c=>{n.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{i&&i===u.type&&e.setNodeMarkup(d,void 0,ug(u.attrs,A)),s&&u.marks.length&&u.marks.forEach(p=>{s===p.type&&e.addMark(d,d+u.nodeSize,s.create(ug(p.attrs,A)))})})}),!0):!1},yb=()=>({tr:t,dispatch:A})=>(A&&t.scrollIntoView(),!0),Qb=()=>({tr:t,commands:A})=>A.setTextSelection({from:0,to:t.doc.content.size}),Eb=()=>({state:t,dispatch:A})=>oU(t,A),Fb=()=>({state:t,dispatch:A})=>cU(t,A),Ub=()=>({state:t,dispatch:A})=>mU(t,A),bb=()=>({state:t,dispatch:A})=>yU(t,A),vb=()=>({state:t,dispatch:A})=>CU(t,A);function fg(t,A,e={}){return Zo(t,A,{slice:!1,parseOptions:e})}const Ib=(t,A=!1,e={})=>({tr:n,editor:r,dispatch:i})=>{const{doc:s}=n,a=fg(t,r.schema,e);return i&&n.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!A),!0};function Sb(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 Tb(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 qc(t){return A=>Tb(A.$from,t)}function xb(t,A){const e=dn.fromSchema(A).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function Hb(t,A){const e={from:0,to:t.content.size};return sg(t,e,A)}function Aa(t,A){const e=cr(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 _b(t,A){const e=Ie(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 Lb(t,A){const e=jo(typeof A=="string"?A:A.name,t.schema);return e==="node"?_b(t,A):e==="mark"?Aa(t,A):{}}function dg(t,A,e){const n=[];return t===A?e.resolve(t).marks().forEach(r=>{const i=e.resolve(t-1),s=Xc(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 ea(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 Zc(t,A,e={}){const{empty:n,ranges:r}=t.selection,i=A?cr(A,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>qo(p.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:p,$to:B})=>{const m=p.pos,C=B.pos;t.doc.nodesBetween(m,C,(E,S)=>{if(!E.isText&&!E.marks.length)return;const U=Math.max(m,S),v=Math.min(C,S+E.nodeSize),M=v-U;s+=M,a.push(...E.marks.map(F=>({mark:F,from:U,to:v})))})}),s===0)return!1;const c=a.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>qo(p.mark.attrs,e,{strict:!1})).reduce((p,B)=>p+B.to-B.from,0),u=a.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,B)=>p+B.to-B.from,0);return(c>0?c+u:c)>=s}function Ob(t,A,e={}){if(!A)return bs(t,null,e)||Zc(t,null,e);const n=jo(A,t.schema);return n==="node"?bs(t,A,e):n==="mark"?Zc(t,A,e):!1}function hg(t,A){const{nodeExtensions:e}=Xo(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 Mb(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 Db(t){return t instanceof uA}function pg(t,A,e){const r=t.state.doc.content.size,i=Tn(A,0,r),s=Tn(e,0,r),a=t.coordsAtPos(i),c=t.coordsAtPos(s,-1),u=Math.min(a.top,c.top),d=Math.max(a.bottom,c.bottom),p=Math.min(a.left,c.left),B=Math.max(a.right,c.right),m=B-p,C=d-u,U={top:u,bottom:d,left:p,right:B,width:m,height:C,x:p,y:u};return{...U,toJSON:()=>U}}function kb(t,A,e){var n;const{selection:r}=A;let i=null;if(Yc(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,(d,p,B)=>{if(u)return!1;if(d.isInline){const m=!B||B.type.allowsMarkType(e),C=!!e.isInSet(d.marks)||!d.marks.some(E=>E.type.excludes(e));u=m&&C}return!u}),u})}const Nb=(t,A={})=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=e,{empty:s,ranges:a}=i,c=cr(t,n.schema);if(r)if(s){const u=Aa(n,c);e.addStoredMark(c.create({...u,...A}))}else a.forEach(u=>{const d=u.$from.pos,p=u.$to.pos;n.doc.nodesBetween(d,p,(B,m)=>{const C=Math.max(m,d),E=Math.min(m+B.nodeSize,p);B.marks.find(U=>U.type===c)?B.marks.forEach(U=>{c===U.type&&e.addMark(C,E,c.create({...U.attrs,...A}))}):e.addMark(C,E,c.create(A))})});return kb(n,e,c)},Rb=(t,A)=>({tr:e})=>(e.setMeta(t,A),!0),Kb=(t,A={})=>({state:e,dispatch:n,chain:r})=>{const i=Ie(t,e.schema);return i.isTextblock?r().command(({commands:s})=>Ag(i,A)(e)?!0:s.clearNodes()).command(({state:s})=>Ag(i,A)(s,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Vb=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,r=Tn(t,0,n.content.size),i=uA.create(n,r);A.setSelection(i)}return!0},Pb=t=>({tr:A,dispatch:e})=>{if(e){const{doc:n}=A,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=FA.atStart(n).from,a=FA.atEnd(n).to,c=Tn(r,s,a),u=Tn(i,s,a),d=FA.create(n,c,u);A.setSelection(d)}return!0},Gb=t=>({state:A,dispatch:e})=>{const n=Ie(t,A.schema);return IU(n)(A,e)};function gg(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 Wb=({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,d=ea(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&&gg(e,r.extensionManager.splittableMarks),A.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){const p=c.parentOffset===c.parent.content.size;i instanceof FA&&A.deleteSelection();const B=a.depth===0?void 0:Sb(a.node(-1).contentMatchAt(a.indexAfter(-1)));let m=p&&B?[{type:B,attrs:d}]:void 0,C=Bi(A.doc,A.mapping.map(a.pos),1,m);if(!m&&!C&&Bi(A.doc,A.mapping.map(a.pos),1,B?[{type:B}]:void 0)&&(C=!0,m=B?[{type:B,attrs:d}]:void 0),C&&(A.split(A.mapping.map(a.pos),1,m),B&&!p&&!a.parentOffset&&a.parent.type!==B)){const E=A.mapping.map(a.before()),S=A.doc.resolve(E);a.node(-1).canReplaceWith(S.index(),S.index()+1,B)&&A.setNodeMarkup(A.mapping.map(a.before()),B)}t&&gg(e,r.extensionManager.splittableMarks),A.scrollIntoView()}return!0},$b=t=>({tr:A,state:e,dispatch:n,editor:r})=>{var i;const s=Ie(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 d=a.node(-1);if(d.type!==s)return!1;const p=r.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(n){let S=X.empty;const U=a.index(-1)?1:a.index(-2)?2:3;for(let N=a.depth-U;N>=a.depth-3;N-=1)S=X.from(a.node(N).copy(S));const v=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,M=ea(p,a.node().type.name,a.node().attrs),F=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(M))||void 0;S=S.append(X.from(s.createAndFill(null,F)||void 0));const T=a.before(a.depth-(U-1));A.replace(T,a.after(-v),new j(S,4-U,0));let _=-1;A.doc.nodesBetween(T,A.doc.content.size,(N,W)=>{if(_>-1)return!1;N.isTextblock&&N.content.size===0&&(_=W+1)}),_>-1&&A.setSelection(FA.near(A.doc.resolve(_))),A.scrollIntoView()}return!0}const B=c.pos===a.end()?d.contentMatchAt(0).defaultType:null,m=ea(p,d.type.name,d.attrs),C=ea(p,a.node().type.name,a.node().attrs);A.delete(a.pos,c.pos);const E=B?[{type:s,attrs:m},{type:B,attrs:C}]:[{type:s,attrs:m}];if(!Bi(A.doc,a.pos,2))return!1;if(n){const{selection:S,storedMarks:U}=e,{splittableMarks:v}=r.extensionManager,M=U||S.$to.parentOffset&&S.$from.marks();if(A.split(a.pos,2,E).scrollIntoView(),!M||!n)return!0;const F=M.filter(T=>v.includes(T.type.name));A.ensureMarks(F)}return!0},jc=(t,A)=>{const e=qc(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.node.type===(r==null?void 0:r.type)&&Ar(t.doc,e.pos)&&t.join(e.pos),!0},Au=(t,A)=>{const e=qc(s=>s.type===A)(t.selection);if(!e)return!0;const n=t.doc.resolve(e.start).after(e.depth);if(n===void 0)return!0;const r=t.doc.nodeAt(n);return e.node.type===(r==null?void 0:r.type)&&Ar(t.doc,n)&&t.join(n),!0};var Jb=Object.freeze({__proto__:null,blur:GU,clearContent:WU,clearNodes:$U,command:JU,createParagraphNear:XU,deleteCurrentNode:YU,deleteNode:zU,deleteRange:qU,deleteSelection:ZU,enter:jU,exitCode:Ab,extendMarkRange:tb,first:nb,focus:rb,forEach:ib,insertContent:sb,insertContentAt:lb,joinUp:cb,joinDown:ub,joinBackward:fb,joinForward:db,keyboardShortcut:pb,lift:gb,liftEmptyBlock:Bb,liftListItem:mb,newlineInCode:wb,resetAttributes:Cb,scrollIntoView:yb,selectAll:Qb,selectNodeBackward:Eb,selectNodeForward:Fb,selectParentNode:Ub,selectTextblockEnd:bb,selectTextblockStart:vb,setContent:Ib,setMark:Nb,setMeta:Rb,setNode:Kb,setNodeSelection:Vb,setTextSelection:Pb,sinkListItem:Gb,splitBlock:Wb,splitListItem:$b,toggleList:(t,A,e,n={})=>({editor:r,tr:i,state:s,dispatch:a,chain:c,commands:u,can:d})=>{const{extensions:p,splittableMarks:B}=r.extensionManager,m=Ie(t,s.schema),C=Ie(A,s.schema),{selection:E,storedMarks:S}=s,{$from:U,$to:v}=E,M=U.blockRange(v),F=S||E.$to.parentOffset&&E.$from.marks();if(!M)return!1;const T=qc(_=>hg(_.type.name,p))(E);if(M.depth>=1&&T&&M.depth-T.depth<=1){if(T.node.type===m)return u.liftListItem(C);if(hg(T.node.type.name,p)&&m.validContent(T.node.content)&&a)return c().command(()=>(i.setNodeMarkup(T.pos,m),!0)).command(()=>jc(i,m)).command(()=>Au(i,m)).run()}return!e||!F||!a?c().command(()=>d().wrapInList(m,n)?!0:u.clearNodes()).wrapInList(m,n).command(()=>jc(i,m)).command(()=>Au(i,m)).run():c().command(()=>{const _=d().wrapInList(m,n),N=F.filter(W=>B.includes(W.type.name));return i.ensureMarks(N),_?!0:u.clearNodes()}).wrapInList(m,n).command(()=>jc(i,m)).command(()=>Au(i,m)).run()},toggleMark:(t,A={},e={})=>({state:n,commands:r})=>{const{extendEmptyMarkRange:i=!1}=e,s=cr(t,n.schema);return Zc(n,s,A)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,A)},toggleNode:(t,A,e={})=>({state:n,commands:r})=>{const i=Ie(t,n.schema),s=Ie(A,n.schema);return bs(n,i,e)?r.setNode(s):r.setNode(i,e)},toggleWrap:(t,A={})=>({state:e,commands:n})=>{const r=Ie(t,e.schema);return bs(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=cr(t,n.schema),{$from:u,empty:d,ranges:p}=a;if(!r)return!0;if(d&&s){let{from:B,to:m}=a;const C=(i=u.marks().find(S=>S.type===c))===null||i===void 0?void 0:i.attrs,E=Xc(u,c,C);E&&(B=E.from,m=E.to),e.removeMark(B,m,c)}else p.forEach(B=>{e.removeMark(B.$from.pos,B.$to.pos,c)});return e.removeStoredMark(c),!0},updateAttributes:(t,A={})=>({tr:e,state:n,dispatch:r})=>{let i=null,s=null;const a=jo(typeof t=="string"?t:t.name,n.schema);return a?(a==="node"&&(i=Ie(t,n.schema)),a==="mark"&&(s=cr(t,n.schema)),r&&e.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;n.doc.nodesBetween(u,d,(p,B)=>{i&&i===p.type&&e.setNodeMarkup(B,void 0,{...p.attrs,...A}),s&&p.marks.length&&p.marks.forEach(m=>{if(s===m.type){const C=Math.max(B,u),E=Math.min(B+p.nodeSize,d);e.addMark(C,E,s.create({...m.attrs,...A}))}})})}),!0):!1},wrapIn:(t,A={})=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return QU(r,A)(e,n)},wrapInList:(t,A={})=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return EU(r,A)(e,n)}});const Xb=$e.create({name:"commands",addCommands(){return{...Jb}}}),Yb=$e.create({name:"editable",addProseMirrorPlugins(){return[new dt({key:new pn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),zb=$e.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new dt({key:new pn("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}}}})]}}),qb=$e.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:d,$anchor:p}=c,{pos:B,parent:m}=p,C=yA.atStart(u).from===B;return!d||!C||!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 zc()||cg()?i:r},addProseMirrorPlugins(){return[new dt({key:new pn("clearDocument"),appendTransaction:(t,A,e)=>{if(!(t.some(C=>C.docChanged)&&!A.doc.eq(e.doc)))return;const{empty:r,from:i,to:s}=A.selection,a=yA.atStart(A.doc).from,c=yA.atEnd(A.doc).to;if(r||!(i===a&&s===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const p=e.tr,B=$o({state:e,transaction:p}),{commands:m}=new Jo({editor:this.editor,state:B});if(m.clearNodes(),!!p.steps.length)return p}})]}}),Zb=$e.create({name:"tabindex",addProseMirrorPlugins(){return[new dt({key:new pn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var jb=Object.freeze({__proto__:null,ClipboardTextSerializer:PU,Commands:Xb,Editable:Yb,FocusEvents:zb,Keymap:qb,Tabindex:Zb});const Av=`.ProseMirror {
|
|
14
14
|
position: relative;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -86,11 +86,11 @@ img.ProseMirror-separator {
|
|
|
86
86
|
opacity: 0
|
|
87
87
|
}`;function ev(t,A){const e=document.querySelector("style[data-tiptap-style]");if(e!==null)return e;const n=document.createElement("style");return A&&n.setAttribute("nonce",A),n.setAttribute("data-tiptap-style",""),n.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(n),n}let tv=class extends SU{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=ev(Av,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=tg(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(jb):[],...this.options.extensions].filter(n=>["extension","node","mark"].includes(n==null?void 0:n.type));this.extensionManager=new Si(e,this)}createCommandManager(){this.commandManager=new Jo({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const A=fg(this.options.content,this.schema,this.options.parseOptions),e=ag(A,this.options.autofocus);this.view=new JF(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:yi.create({doc:A,selection:e||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}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 Lb(this.state,A)}isActive(A,e){const n=typeof A=="string"?A:null,r=typeof A=="string"?e:A;return Ob(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return xb(this.state.doc.content,this.schema)}getText(A){const{blockSeparator:e=`
|
|
88
88
|
|
|
89
|
-
`,textSerializers:n={}}=A||{};return Hb(this.state.doc,{blockSeparator:e,textSerializers:{...og(this.schema),...n}})}get isEmpty(){return kb(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 Xr(t){return new Yo({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];let c=e.to;if(s){const u=a.search(/\S/),d=e.from+a.indexOf(s),p=d+s.length;if(dg(e.from,e.to,A.doc).filter(m=>m.mark.type.excluded.find(E=>E===t.type&&E!==m.mark.type)).filter(m=>m.to>d).length)return null;p<e.to&&i.delete(p,e.to),d>e.from&&i.delete(e.from+u,d),c=e.from+u+s.length,i.addMark(e.from+u,c,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function nv(t){return new Yo({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;if(n[1]){const c=n[0].lastIndexOf(n[1]);let u=s+c;u>a?u=a:a=u+n[1].length;const d=n[0][n[0].length-1];i.insertText(d,s+n[0].length-1),i.replaceWith(u,a,t.type.create(r))}else n[0]&&i.replaceWith(s,a,t.type.create(r))}})}function eu(t){return new Yo({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 vs(t){return new Yo({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&&oc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:p,storedMarks:B}=A,{splittableMarks:m}=t.editor.extensionManager,C=B||p.$to.parentOffset&&p.$from.marks();if(C){const E=C.filter(S=>m.includes(S.type.name));s.ensureMarks(E)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(p,i).run()}const d=s.doc.resolve(e.from-1).nodeBefore;d&&d.type===t.type&&Ar(s.doc,e.from-1)&&(!t.joinPredicate||t.joinPredicate(n,d))&&s.join(e.from-1)}})}class nn{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 nn(A)}configure(A={}){const e=this.extend();return e.options=zo(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new nn(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 Et=class Jd{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 Jd(A)}configure(A={}){const e=this.extend();return e.options=zo(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new Jd(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 Yr(t){return new MU({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];let c=e.to;if(s){const u=a.search(/\S/),d=e.from+a.indexOf(s),p=d+s.length;if(dg(e.from,e.to,A.doc).filter(m=>m.mark.type.excluded.find(E=>E===t.type&&E!==m.mark.type)).filter(m=>m.to>d).length)return null;p<e.to&&i.delete(p,e.to),d>e.from&&i.delete(e.from+u,d),c=e.from+u+s.length,i.addMark(e.from+u,c,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}const rv=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,iv=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,sv=nn.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",pe(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[Xr({find:rv,type:this.type})]},addPasteRules(){return[Yr({find:iv,type:this.type})]}}),ov=$e.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")}}}),av=/^\s*>\s$/,lv=Et.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",pe(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[vs({find:av,type:this.type})]}}),cv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,uv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,fv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,dv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,hv=nn.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",pe(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[Xr({find:cv,type:this.type}),Xr({find:fv,type:this.type})]},addPasteRules(){return[Yr({find:uv,type:this.type}),Yr({find:dv,type:this.type})]}}),pv=Et.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(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)}}}),Bg=nn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=Aa(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),mg=/^\s*([-+*])\s$/,gv=Et.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",pe(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(pv.name,this.editor.getAttributes(Bg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=vs({find:mg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=vs({find:mg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Bg.name),editor:this.editor})),[t]}}),Bv=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,mv=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,wv=nn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",pe(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[Xr({find:Bv,type:this.type})]},addPasteRules(){return[Yr({find:mv,type:this.type})]}}),Cv=/^```([a-z]+)?[\s\n]$/,yv=/^~~~([a-z]+)?[\s\n]$/,Qv=Et.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",pe(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 Hb(this.state.doc,{blockSeparator:e,textSerializers:{...og(this.schema),...n}})}get isEmpty(){return Mb(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 Xr(t){return new Yo({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];let c=e.to;if(s){const u=a.search(/\S/),d=e.from+a.indexOf(s),p=d+s.length;if(dg(e.from,e.to,A.doc).filter(m=>m.mark.type.excluded.find(E=>E===t.type&&E!==m.mark.type)).filter(m=>m.to>d).length)return null;p<e.to&&i.delete(p,e.to),d>e.from&&i.delete(e.from+u,d),c=e.from+u+s.length,i.addMark(e.from+u,c,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}function nv(t){return new Yo({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;if(n[1]){const c=n[0].lastIndexOf(n[1]);let u=s+c;u>a?u=a:a=u+n[1].length;const d=n[0][n[0].length-1];i.insertText(d,s+n[0].length-1),i.replaceWith(u,a,t.type.create(r))}else n[0]&&i.replaceWith(s,a,t.type.create(r))}})}function eu(t){return new Yo({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 vs(t){return new Yo({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&&oc(c,t.type,i);if(!u)return null;if(s.wrap(c,u),t.keepMarks&&t.editor){const{selection:p,storedMarks:B}=A,{splittableMarks:m}=t.editor.extensionManager,C=B||p.$to.parentOffset&&p.$from.marks();if(C){const E=C.filter(S=>m.includes(S.type.name));s.ensureMarks(E)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(p,i).run()}const d=s.doc.resolve(e.from-1).nodeBefore;d&&d.type===t.type&&Ar(s.doc,e.from-1)&&(!t.joinPredicate||t.joinPredicate(n,d))&&s.join(e.from-1)}})}class nn{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 nn(A)}configure(A={}){const e=this.extend();return e.options=zo(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new nn(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 Et=class Jd{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 Jd(A)}configure(A={}){const e=this.extend();return e.options=zo(this.options,A),e.storage=QA(iA(e,"addStorage",{name:e.name,options:e.options})),e}extend(A={}){const e=new Jd(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 Yr(t){return new DU({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];let c=e.to;if(s){const u=a.search(/\S/),d=e.from+a.indexOf(s),p=d+s.length;if(dg(e.from,e.to,A.doc).filter(m=>m.mark.type.excluded.find(E=>E===t.type&&E!==m.mark.type)).filter(m=>m.to>d).length)return null;p<e.to&&i.delete(p,e.to),d>e.from&&i.delete(e.from+u,d),c=e.from+u+s.length,i.addMark(e.from+u,c,t.type.create(r||{})),i.removeStoredMark(t.type)}}})}const rv=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,iv=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,sv=nn.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",pe(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[Xr({find:rv,type:this.type})]},addPasteRules(){return[Yr({find:iv,type:this.type})]}}),ov=$e.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")}}}),av=/^\s*>\s$/,lv=Et.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",pe(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[vs({find:av,type:this.type})]}}),cv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,uv=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,fv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,dv=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,hv=nn.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",pe(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[Xr({find:cv,type:this.type}),Xr({find:fv,type:this.type})]},addPasteRules(){return[Yr({find:uv,type:this.type}),Yr({find:dv,type:this.type})]}}),pv=Et.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(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)}}}),Bg=nn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=Aa(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),mg=/^\s*([-+*])\s$/,gv=Et.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",pe(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(pv.name,this.editor.getAttributes(Bg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=vs({find:mg,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=vs({find:mg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Bg.name),editor:this.editor})),[t]}}),Bv=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,mv=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,wv=nn.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",pe(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[Xr({find:Bv,type:this.type})]},addPasteRules(){return[Yr({find:mv,type:this.type})]}}),Cv=/^```([a-z]+)?[\s\n]$/,yv=/^~~~([a-z]+)?[\s\n]$/,Qv=Et.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",pe(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
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[eu({find:Cv,type:this.type,getAttributes:t=>({language:t[1]})}),eu({find:yv,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new dt({key:new pn("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(FA.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(e.replace(/\r\n?/g,`
|
|
92
92
|
`)),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Ev=Et.create({name:"doc",topNode:!0,content:"block+"});function Fv(t={}){return new dt({view(A){return new Uv(A,t)}})}class Uv{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 d=u.getBoundingClientRect(),p=a?d.bottom:d.top;a&&c&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),n={left:d.left,right:d.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!n){let a=this.editorView.coordsAtPos(this.cursorPos);n={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e);let i,s;if(!r||r==document.body&&getComputedStyle(r).position=="static")i=-pageXOffset,s=-pageYOffset;else{let a=r.getBoundingClientRect();i=a.left-r.scrollLeft,s=a.top-r.scrollTop}this.element.style.left=n.left-i+"px",this.element.style.top=n.top-s+"px",this.element.style.width=n.right-n.left+"px",this.element.style.height=n.bottom-n.top+"px"}scheduleRemoval(A){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),A)}dragover(A){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:A.clientX,top:A.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r=="function"?r(this.editorView,e,A):r;if(e&&!i){let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=vh(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 bv=$e.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Fv(this.options)]}});class se extends yA{constructor(A){super(A,A)}map(A,e){let n=A.resolve(e.map(this.head));return se.valid(n)?new se(n):yA.near(n)}content(){return j.empty}eq(A){return A instanceof se&&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 se(A.resolve(e.pos))}getBookmark(){return new tu(this.anchor)}static valid(A){let e=A.parent;if(e.isTextblock||!vv(A)||!Iv(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&&se.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(se.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(se.valid(a))return a}return null}}}se.prototype.visible=!1,se.findFrom=se.findGapCursorFrom,yA.jsonID("gapcursor",se);class tu{constructor(A){this.pos=A}map(A){return new tu(A.map(this.pos))}resolve(A){let e=A.resolve(this.pos);return se.valid(e)?new se(e):yA.near(e)}}function vv(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 Iv(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 Sv(){return new dt({props:{decorations:_v,createSelectionBetween(t,A,e){return A.pos==e.pos&&se.valid(e)?new se(e):null},handleClick:xv,handleKeyDown:Tv,handleDOMEvents:{beforeinput:Hv}}})}const Tv=Xp({ArrowLeft:ta("horiz",-1),ArrowRight:ta("horiz",1),ArrowUp:ta("vert",-1),ArrowDown:ta("vert",1)});function ta(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 FA){if(!i.endOfTextblock(e)||a.depth==0)return!1;c=!1,a=n.doc.resolve(A>0?a.after():a.before())}let u=se.findGapCursorFrom(a,A,c);return u?(r&&r(n.tr.setSelection(new se(u))),!0):!1}}function xv(t,A,e){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(A);if(!se.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 se(n))),!0)}function Hv(t,A){if(A.inputType!="insertCompositionText"||!(t.state.selection instanceof se))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=X.empty;for(let s=n.length-1;s>=0;s--)r=X.from(n[s].createAndFill(null,r));let i=t.state.tr.replace(e.pos,e.pos,new j(r,0,0));return i.setSelection(FA.near(i.doc.resolve(e.pos+1))),t.dispatch(i),!1}function _v(t){if(!(t.selection instanceof se))return null;let A=document.createElement("div");return A.className="ProseMirror-gapcursor",ye.create(t.doc,[Nt.widget(t.selection.head,A,{key:"gapcursor"})])}const Lv=$e.create({name:"gapCursor",addProseMirrorPlugins(){return[Sv()]},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}}}),Ov=Et.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",pe(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:d})=>{if(d&&c&&s){const p=c.filter(B=>a.includes(B.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),kv=Et.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]}`,pe(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=>eu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var na=200,Le=function(){};Le.prototype.append=function(A){return A.length?(A=Le.from(A),!this.length&&A||A.length<na&&this.leafAppend(A)||this.length<na&&A.leafPrepend(this)||this.appendInner(A)):this},Le.prototype.prepend=function(A){return A.length?Le.from(A).append(this):this},Le.prototype.appendInner=function(A){return new Mv(this,A)},Le.prototype.slice=function(A,e){return A===void 0&&(A=0),e===void 0&&(e=this.length),A>=e?Le.empty:this.sliceInner(Math.max(0,A),Math.min(this.length,e))},Le.prototype.get=function(A){if(!(A<0||A>=this.length))return this.getInner(A)},Le.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)},Le.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},Le.from=function(A){return A instanceof Le?A:A&&A.length?new wg(A):Le.empty};var wg=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<=na)return new A(this.values.concat(r.flatten()))},A.prototype.leafPrepend=function(r){if(this.length+r.length<=na)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}(Le);Le.empty=new wg([]);var Mv=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}(Le),Cg=Le;const Dv=500;class rn{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=[],d=[];return this.items.forEach((p,B)=>{if(!p.step){r||(r=this.remapping(n,B+1),i=r.maps.length),i--,d.push(p);return}if(r){d.push(new mn(p.map));let m=p.step.map(r.slice(i)),C;m&&s.maybeStep(m).doc&&(C=s.mapping.maps[s.mapping.maps.length-1],u.push(new mn(C,void 0,void 0,u.length+d.length))),i--,C&&r.appendMap(C,i)}else s.maybeStep(p.step);if(p.selection)return a=r?p.selection.map(r.slice(i)):p.selection,c=new rn(this.items.slice(0,n).append(d.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 d=0;d<A.steps.length;d++){let p=A.steps[d].invert(A.docs[d]),B=new mn(A.mapping.maps[d],p,e),m;(m=c&&c.merge(B))&&(B=m,d?i.pop():a=a.slice(0,a.length-1)),i.push(B),e&&(s++,e=void 0),r||(c=B)}let u=s-n.depth;return u>Rv&&(a=Nv(a,u),s-=u),new rn(a.append(i),s)}remapping(A,e){let n=new hi;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 rn(this.items.append(A.map(e=>new mn(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(B=>{B.selection&&a--},r);let c=e;this.items.forEach(B=>{let m=i.getMirror(--c);if(m==null)return;s=Math.min(s,m);let C=i.maps[m];if(B.step){let E=A.steps[m].invert(A.docs[m]),S=B.selection&&B.selection.map(i.slice(c+1,m));S&&a++,n.push(new mn(C,E,S))}else n.push(new mn(C))},r);let u=[];for(let B=e;B<s;B++)u.push(new mn(i.maps[B]));let d=this.items.slice(0,r).append(u).append(n),p=new rn(d,a);return p.emptyItemCount()>Dv&&(p=p.compress(this.items.length-n.length)),p}emptyItemCount(){let A=0;return this.items.forEach(e=>{e.step||A++}),A}compress(A=this.items.length){let e=this.remapping(0,A),n=e.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=A)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(e.slice(n)),u=c&&c.getMap();if(n--,u&&e.appendMap(u,n),c){let d=s.selection&&s.selection.map(e.slice(n));d&&i++;let p=new mn(u.invert(),c,d),B,m=r.length-1;(B=r.length&&r[m].merge(p))?r[m]=B:r.push(p)}}else s.map&&n--},this.items.length,0),new rn(Cg.from(r.reverse()),i)}}rn.empty=new rn(Cg.empty,0);function Nv(t,A){let e;return t.forEach((n,r)=>{if(n.selection&&A--==0)return e=r,!1}),t.slice(e)}class mn{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 mn(e.getMap().invert(),e,this.selection)}}}class ur{constructor(A,e,n,r){this.done=A,this.undone=e,this.prevRanges=n,this.prevTime=r}}const Rv=20;function Kv(t,A,e,n){let r=e.getMeta(fr),i;if(r)return r.historyState;e.getMeta(Pv)&&(t=new ur(t.done,t.undone,null,0));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return t;if(s&&s.getMeta(fr))return s.getMeta(fr).redo?new ur(t.done.addTransform(e,void 0,n,ra(A)),t.undone,yg(e.mapping.maps[e.steps.length-1]),t.prevTime):new ur(t.done,t.undone.addTransform(e,void 0,n,ra(A)),null,t.prevTime);if(e.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=t.prevTime==0||!s&&(t.prevTime<(e.time||0)-n.newGroupDelay||!Vv(e,t.prevRanges)),c=s?nu(t.prevRanges,e.mapping):yg(e.mapping.maps[e.steps.length-1]);return new ur(t.done.addTransform(e,a?A.selection.getBookmark():void 0,n,ra(A)),rn.empty,c,e.time)}else return(i=e.getMeta("rebased"))?new ur(t.done.rebased(e,i),t.undone.rebased(e,i),nu(t.prevRanges,e.mapping),t.prevTime):new ur(t.done.addMaps(e.mapping.maps),t.undone.addMaps(e.mapping.maps),nu(t.prevRanges,e.mapping),t.prevTime)}function Vv(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 yg(t){let A=[];return t.forEach((e,n,r,i)=>A.push(r,i)),A}function nu(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 Qg(t,A,e,n){let r=ra(A),i=fr.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 ur(n?c:s.remaining,n?s.remaining:c,null,0);e(s.transform.setSelection(a).setMeta(fr,{redo:n,historyState:u}).scrollIntoView())}let ru=!1,Eg=null;function ra(t){let A=t.plugins;if(Eg!=A){ru=!1,Eg=A;for(let e=0;e<A.length;e++)if(A[e].spec.historyPreserveItems){ru=!0;break}}return ru}const fr=new pn("history"),Pv=new pn("closeHistory");function Gv(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new dt({key:fr,state:{init(){return new ur(rn.empty,rn.empty,null,0)},apply(A,e,n){return Kv(e,n,A,t)}},config:t,props:{handleDOMEvents:{beforeinput(A,e){let n=e.inputType,r=n=="historyUndo"?Fg:n=="historyRedo"?Ug:null;return r?(e.preventDefault(),r(A.state,A.dispatch)):!1}}}})}const Fg=(t,A)=>{let e=fr.getState(t);return!e||e.done.eventCount==0?!1:(A&&Qg(e,t,A,!1),!0)},Ug=(t,A)=>{let e=fr.getState(t);return!e||e.undone.eventCount==0?!1:(A&&Qg(e,t,A,!0),!0)},Wv=$e.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:A})=>Fg(t,A),redo:()=>({state:t,dispatch:A})=>Ug(t,A)}},addProseMirrorPlugins(){return[Gv(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),$v=Et.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",pe(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t})=>t().insertContent({type:this.name}).command(({tr:A,dispatch:e})=>{var n;if(e){const{$to:r}=A.selection,i=r.end();if(r.nodeAfter)A.setSelection(FA.create(A.doc,r.pos));else{const s=(n=r.parent.type.contentMatch.defaultType)===null||n===void 0?void 0:n.create();s&&(A.insert(i,s),A.setSelection(FA.create(A.doc,i)))}A.scrollIntoView()}return!0}).run()}},addInputRules(){return[nv({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Jv=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,Xv=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Yv=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,zv=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,qv=nn.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",pe(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[Xr({find:Jv,type:this.type}),Xr({find:Yv,type:this.type})]},addPasteRules(){return[Yr({find:Xv,type:this.type}),Yr({find:zv,type:this.type})]}}),Zv=Et.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(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)}}}),jv=Et.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(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)}}}),bg=nn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=Aa(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),vg=/^(\d+)\.\s$/,AI=Et.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",pe(this.options.HTMLAttributes,e),0]:["ol",pe(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(jv.name,this.editor.getAttributes(bg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=vs({find:vg,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=vs({find:vg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:A=>({start:+A[1],...this.editor.getAttributes(bg.name)}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[1],editor:this.editor})),[t]}}),eI=Et.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,nI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,rI=nn.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",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Xr({find:tI,type:this.type})]},addPasteRules(){return[Yr({find:nI,type:this.type})]}}),iI=Et.create({name:"text",group:"inline"}),sI=$e.create({name:"starterKit",addExtensions(){var t,A,e,n,r,i,s,a,c,u,d,p,B,m,C,E,S,U;const v=[];return this.options.blockquote!==!1&&v.push(lv.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&v.push(hv.configure((A=this.options)===null||A===void 0?void 0:A.bold)),this.options.bulletList!==!1&&v.push(gv.configure((e=this.options)===null||e===void 0?void 0:e.bulletList)),this.options.code!==!1&&v.push(wv.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&v.push(Qv.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&v.push(Ev.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&v.push(bv.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&v.push(Lv.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&v.push(Ov.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&v.push(kv.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&v.push(Wv.configure((d=this.options)===null||d===void 0?void 0:d.history)),this.options.horizontalRule!==!1&&v.push($v.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&v.push(qv.configure((B=this.options)===null||B===void 0?void 0:B.italic)),this.options.listItem!==!1&&v.push(Zv.configure((m=this.options)===null||m===void 0?void 0:m.listItem)),this.options.orderedList!==!1&&v.push(AI.configure((C=this.options)===null||C===void 0?void 0:C.orderedList)),this.options.paragraph!==!1&&v.push(eI.configure((E=this.options)===null||E===void 0?void 0:E.paragraph)),this.options.strike!==!1&&v.push(rI.configure((S=this.options)===null||S===void 0?void 0:S.strike)),this.options.text!==!1&&v.push(iI.configure((U=this.options)===null||U===void 0?void 0:U.text)),v}});var oI="tippy-box",Ig="tippy-content",aI="tippy-backdrop",Sg="tippy-arrow",Tg="tippy-svg-arrow",zr={passive:!0,capture:!0},xg=function(){return document.body};function lI(t,A){return{}.hasOwnProperty.call(t,A)}function iu(t,A,e){if(Array.isArray(t)){var n=t[A];return n??(Array.isArray(e)?e[A]:e)}return t}function su(t,A){var e={}.toString.call(t);return e.indexOf("[object")===0&&e.indexOf(A+"]")>-1}function Hg(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 cI(t,A){var e=Object.assign({},t);return A.forEach(function(n){delete e[n]}),e}function uI(t){return t.split(/\s+/).filter(Boolean)}function Ti(t){return[].concat(t)}function Lg(t,A){t.indexOf(A)===-1&&t.push(A)}function fI(t){return t.filter(function(A,e){return t.indexOf(A)===e})}function dI(t){return t.split("-")[0]}function ia(t){return[].slice.call(t)}function Og(t){return Object.keys(t).reduce(function(A,e){return t[e]!==void 0&&(A[e]=t[e]),A},{})}function Is(){return document.createElement("div")}function Ss(t){return["Element","Fragment"].some(function(A){return su(t,A)})}function hI(t){return su(t,"NodeList")}function pI(t){return su(t,"MouseEvent")}function gI(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function BI(t){return Ss(t)?[t]:hI(t)?ia(t):Array.isArray(t)?t:ia(document.querySelectorAll(t))}function ou(t,A){t.forEach(function(e){e&&(e.style.transitionDuration=A+"ms")})}function kg(t,A){t.forEach(function(e){e&&e.setAttribute("data-state",A)})}function mI(t){var A,e=Ti(t),n=e[0];return n!=null&&(A=n.ownerDocument)!=null&&A.body?n.ownerDocument:document}function wI(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=dI(s.placement),d=s.modifiersData.offset;if(!d)return!0;var p=u==="bottom"?d.top.y:0,B=u==="top"?d.bottom.y:0,m=u==="right"?d.left.x:0,C=u==="left"?d.right.x:0,E=i.top-n+p>c,S=n-i.bottom-B>c,U=i.left-e+m>c,v=e-i.right-C>c;return E||S||U||v})}function au(t,A,e){var n=A+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,e)})}function Mg(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 wn={isTouch:!1},Dg=0;function CI(){wn.isTouch||(wn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ng))}function Ng(){var t=performance.now();t-Dg<20&&(wn.isTouch=!1,document.removeEventListener("mousemove",Ng)),Dg=t}function yI(){var t=document.activeElement;if(gI(t)){var A=t._tippy;t.blur&&!A.state.isVisible&&t.blur()}}function QI(){document.addEventListener("touchstart",CI,zr),window.addEventListener("blur",yI)}var EI=typeof window<"u"&&typeof document<"u",FI=EI?!!window.msCrypto:!1;function xi(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 Rg(t){var A=/[ \t]{2,}/g,e=/^[ \t]*/gm;return t.replace(A," ").replace(e,"").trim()}function UI(t){return Rg(`
|
|
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:d})=>{if(d&&c&&s){const p=c.filter(B=>a.includes(B.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Mv=Et.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]}`,pe(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=>eu({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var na=200,Le=function(){};Le.prototype.append=function(A){return A.length?(A=Le.from(A),!this.length&&A||A.length<na&&this.leafAppend(A)||this.length<na&&A.leafPrepend(this)||this.appendInner(A)):this},Le.prototype.prepend=function(A){return A.length?Le.from(A).append(this):this},Le.prototype.appendInner=function(A){return new Dv(this,A)},Le.prototype.slice=function(A,e){return A===void 0&&(A=0),e===void 0&&(e=this.length),A>=e?Le.empty:this.sliceInner(Math.max(0,A),Math.min(this.length,e))},Le.prototype.get=function(A){if(!(A<0||A>=this.length))return this.getInner(A)},Le.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)},Le.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},Le.from=function(A){return A instanceof Le?A:A&&A.length?new wg(A):Le.empty};var wg=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<=na)return new A(this.values.concat(r.flatten()))},A.prototype.leafPrepend=function(r){if(this.length+r.length<=na)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}(Le);Le.empty=new wg([]);var Dv=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}(Le),Cg=Le;const kv=500;class rn{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=[],d=[];return this.items.forEach((p,B)=>{if(!p.step){r||(r=this.remapping(n,B+1),i=r.maps.length),i--,d.push(p);return}if(r){d.push(new mn(p.map));let m=p.step.map(r.slice(i)),C;m&&s.maybeStep(m).doc&&(C=s.mapping.maps[s.mapping.maps.length-1],u.push(new mn(C,void 0,void 0,u.length+d.length))),i--,C&&r.appendMap(C,i)}else s.maybeStep(p.step);if(p.selection)return a=r?p.selection.map(r.slice(i)):p.selection,c=new rn(this.items.slice(0,n).append(d.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 d=0;d<A.steps.length;d++){let p=A.steps[d].invert(A.docs[d]),B=new mn(A.mapping.maps[d],p,e),m;(m=c&&c.merge(B))&&(B=m,d?i.pop():a=a.slice(0,a.length-1)),i.push(B),e&&(s++,e=void 0),r||(c=B)}let u=s-n.depth;return u>Rv&&(a=Nv(a,u),s-=u),new rn(a.append(i),s)}remapping(A,e){let n=new hi;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 rn(this.items.append(A.map(e=>new mn(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(B=>{B.selection&&a--},r);let c=e;this.items.forEach(B=>{let m=i.getMirror(--c);if(m==null)return;s=Math.min(s,m);let C=i.maps[m];if(B.step){let E=A.steps[m].invert(A.docs[m]),S=B.selection&&B.selection.map(i.slice(c+1,m));S&&a++,n.push(new mn(C,E,S))}else n.push(new mn(C))},r);let u=[];for(let B=e;B<s;B++)u.push(new mn(i.maps[B]));let d=this.items.slice(0,r).append(u).append(n),p=new rn(d,a);return p.emptyItemCount()>kv&&(p=p.compress(this.items.length-n.length)),p}emptyItemCount(){let A=0;return this.items.forEach(e=>{e.step||A++}),A}compress(A=this.items.length){let e=this.remapping(0,A),n=e.maps.length,r=[],i=0;return this.items.forEach((s,a)=>{if(a>=A)r.push(s),s.selection&&i++;else if(s.step){let c=s.step.map(e.slice(n)),u=c&&c.getMap();if(n--,u&&e.appendMap(u,n),c){let d=s.selection&&s.selection.map(e.slice(n));d&&i++;let p=new mn(u.invert(),c,d),B,m=r.length-1;(B=r.length&&r[m].merge(p))?r[m]=B:r.push(p)}}else s.map&&n--},this.items.length,0),new rn(Cg.from(r.reverse()),i)}}rn.empty=new rn(Cg.empty,0);function Nv(t,A){let e;return t.forEach((n,r)=>{if(n.selection&&A--==0)return e=r,!1}),t.slice(e)}class mn{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 mn(e.getMap().invert(),e,this.selection)}}}class ur{constructor(A,e,n,r){this.done=A,this.undone=e,this.prevRanges=n,this.prevTime=r}}const Rv=20;function Kv(t,A,e,n){let r=e.getMeta(fr),i;if(r)return r.historyState;e.getMeta(Pv)&&(t=new ur(t.done,t.undone,null,0));let s=e.getMeta("appendedTransaction");if(e.steps.length==0)return t;if(s&&s.getMeta(fr))return s.getMeta(fr).redo?new ur(t.done.addTransform(e,void 0,n,ra(A)),t.undone,yg(e.mapping.maps[e.steps.length-1]),t.prevTime):new ur(t.done,t.undone.addTransform(e,void 0,n,ra(A)),null,t.prevTime);if(e.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=t.prevTime==0||!s&&(t.prevTime<(e.time||0)-n.newGroupDelay||!Vv(e,t.prevRanges)),c=s?nu(t.prevRanges,e.mapping):yg(e.mapping.maps[e.steps.length-1]);return new ur(t.done.addTransform(e,a?A.selection.getBookmark():void 0,n,ra(A)),rn.empty,c,e.time)}else return(i=e.getMeta("rebased"))?new ur(t.done.rebased(e,i),t.undone.rebased(e,i),nu(t.prevRanges,e.mapping),t.prevTime):new ur(t.done.addMaps(e.mapping.maps),t.undone.addMaps(e.mapping.maps),nu(t.prevRanges,e.mapping),t.prevTime)}function Vv(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 yg(t){let A=[];return t.forEach((e,n,r,i)=>A.push(r,i)),A}function nu(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 Qg(t,A,e,n){let r=ra(A),i=fr.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 ur(n?c:s.remaining,n?s.remaining:c,null,0);e(s.transform.setSelection(a).setMeta(fr,{redo:n,historyState:u}).scrollIntoView())}let ru=!1,Eg=null;function ra(t){let A=t.plugins;if(Eg!=A){ru=!1,Eg=A;for(let e=0;e<A.length;e++)if(A[e].spec.historyPreserveItems){ru=!0;break}}return ru}const fr=new pn("history"),Pv=new pn("closeHistory");function Gv(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new dt({key:fr,state:{init(){return new ur(rn.empty,rn.empty,null,0)},apply(A,e,n){return Kv(e,n,A,t)}},config:t,props:{handleDOMEvents:{beforeinput(A,e){let n=e.inputType,r=n=="historyUndo"?Fg:n=="historyRedo"?Ug:null;return r?(e.preventDefault(),r(A.state,A.dispatch)):!1}}}})}const Fg=(t,A)=>{let e=fr.getState(t);return!e||e.done.eventCount==0?!1:(A&&Qg(e,t,A,!1),!0)},Ug=(t,A)=>{let e=fr.getState(t);return!e||e.undone.eventCount==0?!1:(A&&Qg(e,t,A,!0),!0)},Wv=$e.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:A})=>Fg(t,A),redo:()=>({state:t,dispatch:A})=>Ug(t,A)}},addProseMirrorPlugins(){return[Gv(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),$v=Et.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",pe(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t})=>t().insertContent({type:this.name}).command(({tr:A,dispatch:e})=>{var n;if(e){const{$to:r}=A.selection,i=r.end();if(r.nodeAfter)A.setSelection(FA.create(A.doc,r.pos));else{const s=(n=r.parent.type.contentMatch.defaultType)===null||n===void 0?void 0:n.create();s&&(A.insert(i,s),A.setSelection(FA.create(A.doc,i)))}A.scrollIntoView()}return!0}).run()}},addInputRules(){return[nv({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Jv=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,Xv=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Yv=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,zv=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,qv=nn.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",pe(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[Xr({find:Jv,type:this.type}),Xr({find:Yv,type:this.type})]},addPasteRules(){return[Yr({find:Xv,type:this.type}),Yr({find:zv,type:this.type})]}}),Zv=Et.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(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)}}}),jv=Et.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",pe(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)}}}),bg=nn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:A})=>{const e=Aa(t,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:A.unsetMark(this.name)}}}}),vg=/^(\d+)\.\s$/,AI=Et.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",pe(this.options.HTMLAttributes,e),0]:["ol",pe(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(jv.name,this.editor.getAttributes(bg.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=vs({find:vg,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=vs({find:vg,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:A=>({start:+A[1],...this.editor.getAttributes(bg.name)}),joinPredicate:(A,e)=>e.childCount+e.attrs.start===+A[1],editor:this.editor})),[t]}}),eI=Et.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,nI=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,rI=nn.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",pe(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Xr({find:tI,type:this.type})]},addPasteRules(){return[Yr({find:nI,type:this.type})]}}),iI=Et.create({name:"text",group:"inline"}),sI=$e.create({name:"starterKit",addExtensions(){var t,A,e,n,r,i,s,a,c,u,d,p,B,m,C,E,S,U;const v=[];return this.options.blockquote!==!1&&v.push(lv.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bold!==!1&&v.push(hv.configure((A=this.options)===null||A===void 0?void 0:A.bold)),this.options.bulletList!==!1&&v.push(gv.configure((e=this.options)===null||e===void 0?void 0:e.bulletList)),this.options.code!==!1&&v.push(wv.configure((n=this.options)===null||n===void 0?void 0:n.code)),this.options.codeBlock!==!1&&v.push(Qv.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&v.push(Ev.configure((i=this.options)===null||i===void 0?void 0:i.document)),this.options.dropcursor!==!1&&v.push(bv.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&v.push(Lv.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&v.push(Ov.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&v.push(Mv.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&v.push(Wv.configure((d=this.options)===null||d===void 0?void 0:d.history)),this.options.horizontalRule!==!1&&v.push($v.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&v.push(qv.configure((B=this.options)===null||B===void 0?void 0:B.italic)),this.options.listItem!==!1&&v.push(Zv.configure((m=this.options)===null||m===void 0?void 0:m.listItem)),this.options.orderedList!==!1&&v.push(AI.configure((C=this.options)===null||C===void 0?void 0:C.orderedList)),this.options.paragraph!==!1&&v.push(eI.configure((E=this.options)===null||E===void 0?void 0:E.paragraph)),this.options.strike!==!1&&v.push(rI.configure((S=this.options)===null||S===void 0?void 0:S.strike)),this.options.text!==!1&&v.push(iI.configure((U=this.options)===null||U===void 0?void 0:U.text)),v}});var oI="tippy-box",Ig="tippy-content",aI="tippy-backdrop",Sg="tippy-arrow",Tg="tippy-svg-arrow",zr={passive:!0,capture:!0},xg=function(){return document.body};function lI(t,A){return{}.hasOwnProperty.call(t,A)}function iu(t,A,e){if(Array.isArray(t)){var n=t[A];return n??(Array.isArray(e)?e[A]:e)}return t}function su(t,A){var e={}.toString.call(t);return e.indexOf("[object")===0&&e.indexOf(A+"]")>-1}function Hg(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 cI(t,A){var e=Object.assign({},t);return A.forEach(function(n){delete e[n]}),e}function uI(t){return t.split(/\s+/).filter(Boolean)}function Ti(t){return[].concat(t)}function Lg(t,A){t.indexOf(A)===-1&&t.push(A)}function fI(t){return t.filter(function(A,e){return t.indexOf(A)===e})}function dI(t){return t.split("-")[0]}function ia(t){return[].slice.call(t)}function Og(t){return Object.keys(t).reduce(function(A,e){return t[e]!==void 0&&(A[e]=t[e]),A},{})}function Is(){return document.createElement("div")}function Ss(t){return["Element","Fragment"].some(function(A){return su(t,A)})}function hI(t){return su(t,"NodeList")}function pI(t){return su(t,"MouseEvent")}function gI(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function BI(t){return Ss(t)?[t]:hI(t)?ia(t):Array.isArray(t)?t:ia(document.querySelectorAll(t))}function ou(t,A){t.forEach(function(e){e&&(e.style.transitionDuration=A+"ms")})}function Mg(t,A){t.forEach(function(e){e&&e.setAttribute("data-state",A)})}function mI(t){var A,e=Ti(t),n=e[0];return n!=null&&(A=n.ownerDocument)!=null&&A.body?n.ownerDocument:document}function wI(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=dI(s.placement),d=s.modifiersData.offset;if(!d)return!0;var p=u==="bottom"?d.top.y:0,B=u==="top"?d.bottom.y:0,m=u==="right"?d.left.x:0,C=u==="left"?d.right.x:0,E=i.top-n+p>c,S=n-i.bottom-B>c,U=i.left-e+m>c,v=e-i.right-C>c;return E||S||U||v})}function au(t,A,e){var n=A+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[n](r,e)})}function Dg(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 wn={isTouch:!1},kg=0;function CI(){wn.isTouch||(wn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ng))}function Ng(){var t=performance.now();t-kg<20&&(wn.isTouch=!1,document.removeEventListener("mousemove",Ng)),kg=t}function yI(){var t=document.activeElement;if(gI(t)){var A=t._tippy;t.blur&&!A.state.isVisible&&t.blur()}}function QI(){document.addEventListener("touchstart",CI,zr),window.addEventListener("blur",yI)}var EI=typeof window<"u"&&typeof document<"u",FI=EI?!!window.msCrypto:!1;function xi(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 Rg(t){var A=/[ \t]{2,}/g,e=/^[ \t]*/gm;return t.replace(A," ").replace(e,"").trim()}function UI(t){return Rg(`
|
|
94
94
|
%ctippy.js
|
|
95
95
|
|
|
96
96
|
%c`+Rg(t)+`
|
|
@@ -99,18 +99,18 @@ img.ProseMirror-separator {
|
|
|
99
99
|
`)}function Kg(t){return[UI(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Ts;process.env.NODE_ENV!=="production"&&bI();function bI(){Ts=new Set}function xn(t,A){if(t&&!Ts.has(A)){var e;Ts.add(A),(e=console).warn.apply(e,Kg(A))}}function lu(t,A){if(t&&!Ts.has(A)){var e;Ts.add(A),(e=console).error.apply(e,Kg(A))}}function vI(t){var A=!t,e=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;lu(A,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),lu(e,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Vg={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},II={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ft=Object.assign({appendTo:xg,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},Vg,II),SI=Object.keys(Ft),TI=function(A){process.env.NODE_ENV!=="production"&&Wg(A,[]);var e=Object.keys(A);e.forEach(function(n){Ft[n]=A[n]})};function Pg(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=Ft[i])!=null?a:s}return n},{});return Object.assign({},t,e)}function xI(t,A){var e=A?Object.keys(Pg(Object.assign({},Ft,{plugins:A}))):SI,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 Gg(t,A){var e=Object.assign({},A,{content:Hg(A.content,[t])},A.ignoreAttributes?{}:xI(t,A.plugins));return e.aria=Object.assign({},Ft.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 Wg(t,A){t===void 0&&(t={}),A===void 0&&(A=[]);var e=Object.keys(t);e.forEach(function(n){var r=cI(Ft,Object.keys(Vg)),i=!lI(r,n);i&&(i=A.filter(function(s){return s.name===n}).length===0),xn(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 HI=function(){return"innerHTML"};function cu(t,A){t[HI()]=A}function $g(t){var A=Is();return t===!0?A.className=Sg:(A.className=Tg,Ss(t)?A.appendChild(t):cu(A,t)),A}function Jg(t,A){Ss(A.content)?(cu(t,""),t.appendChild(A.content)):typeof A.content!="function"&&(A.allowHTML?cu(t,A.content):t.textContent=A.content)}function uu(t){var A=t.firstElementChild,e=ia(A.children);return{box:A,content:e.find(function(n){return n.classList.contains(Ig)}),arrow:e.find(function(n){return n.classList.contains(Sg)||n.classList.contains(Tg)}),backdrop:e.find(function(n){return n.classList.contains(aI)})}}function Xg(t){var A=Is(),e=Is();e.className=oI,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var n=Is();n.className=Ig,n.setAttribute("data-state","hidden"),Jg(n,t.props),A.appendChild(e),e.appendChild(n),r(t.props,t.props);function r(i,s){var a=uu(A),c=a.box,u=a.content,d=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)&&Jg(u,t.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild($g(s.arrow))):c.appendChild($g(s.arrow)):d&&c.removeChild(d)}return{popper:A,onUpdate:r}}Xg.$$tippy=!0;var _I=1,sa=[],fu=[];function LI(t,A){var e=Gg(t,Object.assign({},Ft,Pg(Og(A)))),n,r,i,s=!1,a=!1,c=!1,u=!1,d,p,B,m=[],C=_g(b,e.interactiveDebounce),E,S=_I++,U=null,v=fI(e.plugins),
|
|
102
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var HI=function(){return"innerHTML"};function cu(t,A){t[HI()]=A}function $g(t){var A=Is();return t===!0?A.className=Sg:(A.className=Tg,Ss(t)?A.appendChild(t):cu(A,t)),A}function Jg(t,A){Ss(A.content)?(cu(t,""),t.appendChild(A.content)):typeof A.content!="function"&&(A.allowHTML?cu(t,A.content):t.textContent=A.content)}function uu(t){var A=t.firstElementChild,e=ia(A.children);return{box:A,content:e.find(function(n){return n.classList.contains(Ig)}),arrow:e.find(function(n){return n.classList.contains(Sg)||n.classList.contains(Tg)}),backdrop:e.find(function(n){return n.classList.contains(aI)})}}function Xg(t){var A=Is(),e=Is();e.className=oI,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var n=Is();n.className=Ig,n.setAttribute("data-state","hidden"),Jg(n,t.props),A.appendChild(e),e.appendChild(n),r(t.props,t.props);function r(i,s){var a=uu(A),c=a.box,u=a.content,d=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)&&Jg(u,t.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild($g(s.arrow))):c.appendChild($g(s.arrow)):d&&c.removeChild(d)}return{popper:A,onUpdate:r}}Xg.$$tippy=!0;var _I=1,sa=[],fu=[];function LI(t,A){var e=Gg(t,Object.assign({},Ft,Pg(Og(A)))),n,r,i,s=!1,a=!1,c=!1,u=!1,d,p,B,m=[],C=_g(b,e.interactiveDebounce),E,S=_I++,U=null,v=fI(e.plugins),M={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},F={id:S,reference:t,popper:Is(),popperInstance:U,props:e,state:M,plugins:v,clearDelayTimeouts:Fe,setProps:an,setContent:St,show:Gt,hide:Tt,hideWithInteractivity:ni,enable:Y,disable:oe,unmount:Ur,destroy:io};if(!e.render)return process.env.NODE_ENV!=="production"&&lu(!0,"render() function has not been supplied."),F;var T=e.render(F),_=T.popper,N=T.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+F.id,F.popper=_,t._tippy=F,_._tippy=F;var W=v.map(function(R){return R.fn(F)}),$=t.hasAttribute("aria-expanded");return ot(),ZA(),vA(),mA("onCreate",[F]),e.showOnCreate&&KA(),_.addEventListener("mouseenter",function(){F.props.interactive&&F.state.isVisible&&F.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){F.props.interactive&&F.props.trigger.indexOf("mouseenter")>=0&&HA().addEventListener("mousemove",C)}),F;function eA(){var R=F.props.touch;return Array.isArray(R)?R:[R,0]}function gA(){return eA()[0]==="hold"}function wA(){var R;return!!((R=F.props.render)!=null&&R.$$tippy)}function aA(){return E||t}function HA(){var R=aA().parentNode;return R?mI(R):document}function WA(){return uu(_)}function bA(R){return F.state.isMounted&&!F.state.isVisible||wn.isTouch||d&&d.type==="focus"?0:iu(F.props.delay,R?0:1,Ft.delay)}function vA(R){R===void 0&&(R=!1),_.style.pointerEvents=F.props.interactive&&!R?"":"none",_.style.zIndex=""+F.props.zIndex}function mA(R,rA,lA){if(lA===void 0&&(lA=!0),W.forEach(function(LA){LA[R]&&LA[R].apply(LA,rA)}),lA){var DA;(DA=F.props)[R].apply(DA,rA)}}function re(){var R=F.props.aria;if(R.content){var rA="aria-"+R.content,lA=_.id,DA=Ti(F.props.triggerTarget||t);DA.forEach(function(LA){var Ke=LA.getAttribute(rA);if(F.state.isVisible)LA.setAttribute(rA,Ke?Ke+" "+lA:lA);else{var Bt=Ke&&Ke.replace(lA,"").trim();Bt?LA.setAttribute(rA,Bt):LA.removeAttribute(rA)}})}}function ZA(){if(!($||!F.props.aria.expanded)){var R=Ti(F.props.triggerTarget||t);R.forEach(function(rA){F.props.interactive?rA.setAttribute("aria-expanded",F.state.isVisible&&rA===aA()?"true":"false"):rA.removeAttribute("aria-expanded")})}}function $A(){HA().removeEventListener("mousemove",C),sa=sa.filter(function(R){return R!==C})}function Be(R){if(!(wn.isTouch&&(c||R.type==="mousedown"))){var rA=R.composedPath&&R.composedPath()[0]||R.target;if(!(F.props.interactive&&Dg(_,rA))){if(Ti(F.props.triggerTarget||t).some(function(lA){return Dg(lA,rA)})){if(wn.isTouch||F.state.isVisible&&F.props.trigger.indexOf("click")>=0)return}else mA("onClickOutside",[F,R]);F.props.hideOnClick===!0&&(F.clearDelayTimeouts(),F.hide(),a=!0,setTimeout(function(){a=!1}),F.state.isMounted||fe())}}}function me(){c=!0}function Te(){c=!1}function jA(){var R=HA();R.addEventListener("mousedown",Be,!0),R.addEventListener("touchend",Be,zr),R.addEventListener("touchstart",Te,zr),R.addEventListener("touchmove",me,zr)}function fe(){var R=HA();R.removeEventListener("mousedown",Be,!0),R.removeEventListener("touchend",Be,zr),R.removeEventListener("touchstart",Te,zr),R.removeEventListener("touchmove",me,zr)}function it(R,rA){ze(R,function(){!F.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&rA()})}function st(R,rA){ze(R,rA)}function ze(R,rA){var lA=WA().box;function DA(LA){LA.target===lA&&(au(lA,"remove",DA),rA())}if(R===0)return rA();au(lA,"remove",p),au(lA,"add",DA),p=DA}function ke(R,rA,lA){lA===void 0&&(lA=!1);var DA=Ti(F.props.triggerTarget||t);DA.forEach(function(LA){LA.addEventListener(R,rA,lA),m.push({node:LA,eventType:R,handler:rA,options:lA})})}function ot(){gA()&&(ke("touchstart",H,{passive:!0}),ke("touchend",k,{passive:!0})),uI(F.props.trigger).forEach(function(R){if(R!=="manual")switch(ke(R,H),R){case"mouseenter":ke("mouseleave",k);break;case"focus":ke(FI?"focusout":"blur",q);break;case"focusin":ke("focusout",q);break}})}function It(){m.forEach(function(R){var rA=R.node,lA=R.eventType,DA=R.handler,LA=R.options;rA.removeEventListener(lA,DA,LA)}),m=[]}function H(R){var rA,lA=!1;if(!(!F.state.isEnabled||oA(R)||a)){var DA=((rA=d)==null?void 0:rA.type)==="focus";d=R,E=R.currentTarget,ZA(),!F.state.isVisible&&pI(R)&&sa.forEach(function(LA){return LA(R)}),R.type==="click"&&(F.props.trigger.indexOf("mouseenter")<0||s)&&F.props.hideOnClick!==!1&&F.state.isVisible?lA=!0:KA(R),R.type==="click"&&(s=!lA),lA&&!DA&&V(R)}}function b(R){var rA=R.target,lA=aA().contains(rA)||_.contains(rA);if(!(R.type==="mousemove"&&lA)){var DA=Re().concat(_).map(function(LA){var Ke,Bt=LA._tippy,Kn=(Ke=Bt.popperInstance)==null?void 0:Ke.state;return Kn?{popperRect:LA.getBoundingClientRect(),popperState:Kn,props:e}:null}).filter(Boolean);wI(DA,R)&&($A(),V(R))}}function k(R){var rA=oA(R)||F.props.trigger.indexOf("click")>=0&&s;if(!rA){if(F.props.interactive){F.hideWithInteractivity(R);return}V(R)}}function q(R){F.props.trigger.indexOf("focusin")<0&&R.target!==aA()||F.props.interactive&&R.relatedTarget&&_.contains(R.relatedTarget)||V(R)}function oA(R){return wn.isTouch?gA()!==R.type.indexOf("touch")>=0:!1}function IA(){at();var R=F.props,rA=R.popperOptions,lA=R.placement,DA=R.offset,LA=R.getReferenceClientRect,Ke=R.moveTransition,Bt=wA()?uu(_).arrow:null,Kn=LA?{getBoundingClientRect:LA,contextElement:LA.contextElement||aA()}:t,so={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(zi){var br=zi.state;if(wA()){var ll=WA(),ao=ll.box;["placement","reference-hidden","escaped"].forEach(function(qi){qi==="placement"?ao.setAttribute("data-placement",br.placement):br.attributes.popper["data-popper-"+qi]?ao.setAttribute("data-"+qi,""):ao.removeAttribute("data-"+qi)}),br.attributes.popper={}}}},Vn=[{name:"offset",options:{offset:DA}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ke}},so];wA()&&Bt&&Vn.push({name:"arrow",options:{element:Bt,padding:3}}),Vn.push.apply(Vn,(rA==null?void 0:rA.modifiers)||[]),F.popperInstance=Xd.createPopper(Kn,_,Object.assign({},rA,{placement:lA,onFirstUpdate:B,modifiers:Vn}))}function at(){F.popperInstance&&(F.popperInstance.destroy(),F.popperInstance=null)}function Ne(){var R=F.props.appendTo,rA,lA=aA();F.props.interactive&&R===xg||R==="parent"?rA=lA.parentNode:rA=Hg(R,[lA]),rA.contains(_)||rA.appendChild(_),F.state.isMounted=!0,IA(),process.env.NODE_ENV!=="production"&&xn(F.props.interactive&&R===Ft.appendTo&&lA.nextElementSibling!==_,["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 Re(){return ia(_.querySelectorAll("[data-tippy-root]"))}function KA(R){F.clearDelayTimeouts(),R&&mA("onTrigger",[F,R]),jA();var rA=bA(!0),lA=eA(),
|
|
108
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Re(){return ia(_.querySelectorAll("[data-tippy-root]"))}function KA(R){F.clearDelayTimeouts(),R&&mA("onTrigger",[F,R]),jA();var rA=bA(!0),lA=eA(),DA=lA[0],LA=lA[1];wn.isTouch&&DA==="hold"&&LA&&(rA=LA),rA?n=setTimeout(function(){F.show()},rA):F.show()}function V(R){if(F.clearDelayTimeouts(),mA("onUntrigger",[F,R]),!F.state.isVisible){fe();return}if(!(F.props.trigger.indexOf("mouseenter")>=0&&F.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(R.type)>=0&&s)){var rA=bA(!1);rA?r=setTimeout(function(){F.state.isVisible&&F.hide()},rA):i=requestAnimationFrame(function(){F.hide()})}}function Y(){F.state.isEnabled=!0}function oe(){F.hide(),F.state.isEnabled=!1}function Fe(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)}function an(R){if(process.env.NODE_ENV!=="production"&&xn(F.state.isDestroyed,xi("setProps")),!F.state.isDestroyed){mA("onBeforeUpdate",[F,R]),It();var rA=F.props,lA=Gg(t,Object.assign({},rA,Og(R),{ignoreAttributes:!0}));F.props=lA,ot(),rA.interactiveDebounce!==lA.interactiveDebounce&&($A(),C=_g(b,lA.interactiveDebounce)),rA.triggerTarget&&!lA.triggerTarget?Ti(rA.triggerTarget).forEach(function(DA){DA.removeAttribute("aria-expanded")}):lA.triggerTarget&&t.removeAttribute("aria-expanded"),ZA(),vA(),N&&N(rA,lA),F.popperInstance&&(IA(),Re().forEach(function(DA){requestAnimationFrame(DA._tippy.popperInstance.forceUpdate)})),mA("onAfterUpdate",[F,R])}}function St(R){F.setProps({content:R})}function Gt(){process.env.NODE_ENV!=="production"&&xn(F.state.isDestroyed,xi("show"));var R=F.state.isVisible,rA=F.state.isDestroyed,lA=!F.state.isEnabled,DA=wn.isTouch&&!F.props.touch,LA=iu(F.props.duration,0,Ft.duration);if(!(R||rA||lA||DA)&&!aA().hasAttribute("disabled")&&(mA("onShow",[F],!1),F.props.onShow(F)!==!1)){if(F.state.isVisible=!0,wA()&&(_.style.visibility="visible"),vA(),jA(),F.state.isMounted||(_.style.transition="none"),wA()){var Ke=WA(),Bt=Ke.box,Kn=Ke.content;ou([Bt,Kn],0)}B=function(){var Vn;if(!(!F.state.isVisible||u)){if(u=!0,_.offsetHeight,_.style.transition=F.props.moveTransition,wA()&&F.props.animation){var oo=WA(),zi=oo.box,br=oo.content;ou([zi,br],LA),Mg([zi,br],"visible")}re(),ZA(),Lg(fu,F),(Vn=F.popperInstance)==null||Vn.forceUpdate(),mA("onMount",[F]),F.props.animation&&wA()&&st(LA,function(){F.state.isShown=!0,mA("onShown",[F])})}},Ne()}}function Tt(){process.env.NODE_ENV!=="production"&&xn(F.state.isDestroyed,xi("hide"));var R=!F.state.isVisible,rA=F.state.isDestroyed,lA=!F.state.isEnabled,DA=iu(F.props.duration,1,Ft.duration);if(!(R||rA||lA)&&(mA("onHide",[F],!1),F.props.onHide(F)!==!1)){if(F.state.isVisible=!1,F.state.isShown=!1,u=!1,s=!1,wA()&&(_.style.visibility="hidden"),$A(),fe(),vA(!0),wA()){var LA=WA(),Ke=LA.box,Bt=LA.content;F.props.animation&&(ou([Ke,Bt],DA),Mg([Ke,Bt],"hidden"))}re(),ZA(),F.props.animation?wA()&&it(DA,F.unmount):F.unmount()}}function ni(R){process.env.NODE_ENV!=="production"&&xn(F.state.isDestroyed,xi("hideWithInteractivity")),HA().addEventListener("mousemove",C),Lg(sa,C),C(R)}function Ur(){process.env.NODE_ENV!=="production"&&xn(F.state.isDestroyed,xi("unmount")),F.state.isVisible&&F.hide(),F.state.isMounted&&(at(),Re().forEach(function(R){R._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),fu=fu.filter(function(R){return R!==F}),F.state.isMounted=!1,mA("onHidden",[F]))}function io(){process.env.NODE_ENV!=="production"&&xn(F.state.isDestroyed,xi("destroy")),!F.state.isDestroyed&&(F.clearDelayTimeouts(),F.unmount(),It(),delete t._tippy,F.state.isDestroyed=!0,mA("onDestroy",[F]))}}function Hi(t,A){A===void 0&&(A={});var e=Ft.plugins.concat(A.plugins||[]);process.env.NODE_ENV!=="production"&&(vI(t),Wg(A,e)),QI();var n=Object.assign({},A,{plugins:e}),r=BI(t);if(process.env.NODE_ENV!=="production"){var i=Ss(n.content),s=r.length>1;xn(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 d=u&&LI(u,n);return d&&c.push(d),c},[]);return Ss(t)?a[0]:a}Hi.defaultProps=Ft,Hi.setDefaultProps=TI,Hi.currentInput=wn,Object.assign({},Xd.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)}}),Hi.setDefaultProps({render:Xg});class OI{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:d})=>{const{doc:p,selection:B}=c,{empty:m}=B,C=!p.textBetween(u,d).length&&Yc(c.selection),E=this.element.contains(document.activeElement);return!(!(a.hasFocus()||E)||m||C||!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)=>{this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,c)},this.updateDelay)},this.updateHandler=(a,c)=>{var u,d,p;const{state:B,composing:m}=a,{doc:C,selection:E}=B,S=c&&c.doc.eq(C)&&c.selection.eq(E);if(m||S)return;this.createTooltip();const{ranges:U}=E,v=Math.min(...U.map(T=>T.$from.pos)),k=Math.max(...U.map(T=>T.$to.pos));if(!((u=this.shouldShow)===null||u===void 0?void 0:u.call(this,{editor:this.editor,view:a,state:B,oldState:c,from:v,to:k}))){this.hide();return}(d=this.tippy)===null||d===void 0||d.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(Mb(B.selection)){let T=a.nodeDOM(v);const _=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(_&&(T=_.firstChild),T)return T.getBoundingClientRect()}return pg(a,v,k)})}),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=Hi(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}this.updateHandler(A,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 Yg=t=>new dt({key:typeof t.pluginKey=="string"?new pn(t.pluginKey):t.pluginKey,view:A=>new OI({view:A,...t})});$e.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Yg({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class kI{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:d}=c,p=u.depth===1,B=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!d||!p||!B||!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=Hi(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:d}=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)||(()=>pg(A,u,d))}),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 zg=t=>new dt({key:typeof t.pluginKey=="string"?new pn(t.pluginKey):t.pluginKey,view:A=>new kI({view:A,...t})});$e.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[zg({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),h.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:A}){const e=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(Yg({updateDelay:n,editor:r,element:e.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function qg(t){return h.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class MI extends tv{constructor(A={}){return super(A),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=qg(this.view.state),this.reactiveExtensionStorage=qg(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),h.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(A,e){super.registerPlugin(A,e),this.reactiveState.value=this.view.state}unregisterPlugin(A){super.unregisterPlugin(A),this.reactiveState.value=this.view.state}}const DI=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=h.ref(),e=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&h.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=h.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),h.onBeforeUnmount(()=>{const n=t.editor;if(!n||(n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;const r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}),{rootEl:A}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(A=>{const e=h.h(h.Teleport,{to:A.teleportElement,key:A.id},h.h(A.component,{ref:A.id,...A.props}));t.push(e)}),h.h("div",{ref:A=>{this.rootEl=A}},...t)}});h.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:A}){const e=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(zg({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),h.defineComponent({props:{as:{type:String,default:"div"}},render(){return h.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),h.defineComponent({props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,A;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(A=(t=this.$slots).default)===null||A===void 0?void 0:A.call(t))}});const NI=(t={})=>{const A=h.shallowRef();return h.onMounted(()=>{A.value=new MI(t)}),h.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},RI={class:"rte-editor"},KI={key:0,class:"rte-editor__controls"},VI=["disabled"],PI=["disabled"],GI=["disabled"],WI=["disabled"],$I=["disabled"],JI=["disabled"],XI=h.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:"<p>I’m running Tiptap with Vue.js. 🎉</p>"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=NI({content:e.modelValue,onUpdate:()=>{var r;A("update:modelValue",(r=n.value)==null?void 0:r.getHTML())},extensions:[sI,ov.configure({types:["heading","paragraph"]}),sv]});return h.watch(()=>e.modelValue,(r,i)=>{if(n.value){if(n.value.getHTML()===r)return;n.value.commands.setContent(r,!1)}}),(r,i)=>{const s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",RI,[h.unref(n)?(h.openBlock(),h.createElementBlock("div",KI,[h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("bold")}]),onClick:i[0]||(i[0]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleBold().run()}),disabled:!h.unref(n).can().chain().focus().toggleBold().run()},[h.createVNode(s,{symbol:"bold"})],10,VI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("italic")}]),onClick:i[1]||(i[1]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleItalic().run()}),disabled:!h.unref(n).can().chain().focus().toggleItalic().run()},[h.createVNode(s,{symbol:"italic"})],10,PI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("strike")}]),onClick:i[2]||(i[2]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleStrike().run()}),disabled:!h.unref(n).can().chain().focus().toggleStrike().run()}," strikethrough ",10,GI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("code")}]),onClick:i[3]||(i[3]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleCode().run()}),disabled:!h.unref(n).can().chain().focus().toggleCode().run()},[h.createVNode(s,{symbol:"code"})],10,WI),h.createElementVNode("button",{class:"btn btn-light",onClick:i[4]||(i[4]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().unsetAllMarks().run()})}," clear marks "),h.createElementVNode("button",{class:"btn btn-light",onClick:i[5]||(i[5]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().clearNodes().run()})}," clear nodes "),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("paragraph")}]),onClick:i[6]||(i[6]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setParagraph().run()})}," paragraph ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:1})}]),onClick:i[7]||(i[7]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:2})}]),onClick:i[8]||(i[8]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:3})}]),onClick:i[9]||(i[9]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:4})}]),onClick:i[10]||(i[10]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:5})}]),onClick:i[11]||(i[11]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:6})}]),onClick:i[12]||(i[12]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("bulletList")}]),onClick:i[13]||(i[13]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleBulletList().run()})},[h.createVNode(s,{id:"list"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("orderedList")}]),onClick:i[14]||(i[14]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleOrderedList().run()})}," ordered list ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("codeBlock")}]),onClick:i[15]||(i[15]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleCodeBlock().run()})}," code block ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("blockquote")}]),onClick:i[16]||(i[16]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleBlockquote().run()})}," blockquote ",2),h.createElementVNode("button",{class:"btn btn-light",onClick:i[17]||(i[17]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setHorizontalRule().run()})}," horizontal rule "),h.createElementVNode("button",{class:"btn btn-light",onClick:i[18]||(i[18]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setHardBreak().run()})}," hard break "),h.createElementVNode("button",{class:"btn btn-light",onClick:i[19]||(i[19]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().undo().run()}),disabled:!h.unref(n).can().chain().focus().undo().run()}," undo ",8,$I),h.createElementVNode("button",{class:"btn btn-light",onClick:i[20]||(i[20]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().redo().run()}),disabled:!h.unref(n).can().chain().focus().redo().run()}," redo ",8,JI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("highlight")}]),onClick:i[21]||(i[21]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHighlight().run()})}," highlight ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive({textAlign:"left"})}]),onClick:i[22]||(i[22]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setTextAlign("left").run()})},[h.createVNode(s,{symbol:"align-left"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive({textAlign:"center"})}]),onClick:i[23]||(i[23]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setTextAlign("center").run()})},[h.createVNode(s,{symbol:"align-center"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive({textAlign:"right"})}]),onClick:i[24]||(i[24]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setTextAlign("right").run()})},[h.createVNode(s,{symbol:"align-right"})],2)])):h.createCommentVNode("",!0),h.createVNode(h.unref(DI),{class:"rte-editor__content",editor:h.unref(n)},null,8,["editor"])])}}}),N2="",YI={class:"input-color"},zI={class:"base-input__color-swatch"},qI=["name","id","disabled","read-only","required","aria-label"],ZI=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>{const s=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",YI,[h.createVNode(s,{modelValue:h.unref(n),"onUpdate:modelValue":i[1]||(i[1]=a=>h.isRef(n)?n.value=a:null),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":h.withCtx(a=>[h.createElementVNode("span",zI,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=c=>h.isRef(n)?n.value=c:null),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,qI),[[h.vModelText,h.unref(n)]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),R2="";/*!
|
|
113
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var a=r.reduce(function(c,u){var d=u&&LI(u,n);return d&&c.push(d),c},[]);return Ss(t)?a[0]:a}Hi.defaultProps=Ft,Hi.setDefaultProps=TI,Hi.currentInput=wn,Object.assign({},Xd.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)}}),Hi.setDefaultProps({render:Xg});class OI{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:d})=>{const{doc:p,selection:B}=c,{empty:m}=B,C=!p.textBetween(u,d).length&&Yc(c.selection),E=this.element.contains(document.activeElement);return!(!(a.hasFocus()||E)||m||C||!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)=>{this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,c)},this.updateDelay)},this.updateHandler=(a,c)=>{var u,d,p;const{state:B,composing:m}=a,{doc:C,selection:E}=B,S=c&&c.doc.eq(C)&&c.selection.eq(E);if(m||S)return;this.createTooltip();const{ranges:U}=E,v=Math.min(...U.map(T=>T.$from.pos)),M=Math.max(...U.map(T=>T.$to.pos));if(!((u=this.shouldShow)===null||u===void 0?void 0:u.call(this,{editor:this.editor,view:a,state:B,oldState:c,from:v,to:M}))){this.hide();return}(d=this.tippy)===null||d===void 0||d.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(Db(B.selection)){let T=a.nodeDOM(v);const _=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(_&&(T=_.firstChild),T)return T.getBoundingClientRect()}return pg(a,v,M)})}),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=Hi(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}this.updateHandler(A,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 Yg=t=>new dt({key:typeof t.pluginKey=="string"?new pn(t.pluginKey):t.pluginKey,view:A=>new OI({view:A,...t})});$e.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Yg({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class MI{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:d}=c,p=u.depth===1,B=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!d||!p||!B||!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=Hi(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:d}=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)||(()=>pg(A,u,d))}),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 zg=t=>new dt({key:typeof t.pluginKey=="string"?new pn(t.pluginKey):t.pluginKey,view:A=>new MI({view:A,...t})});$e.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[zg({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),h.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:A}){const e=h.ref(null);return h.onMounted(()=>{const{updateDelay:n,editor:r,pluginKey:i,shouldShow:s,tippyOptions:a}=t;r.registerPlugin(Yg({updateDelay:n,editor:r,element:e.value,pluginKey:i,shouldShow:s,tippyOptions:a}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}});function qg(t){return h.customRef((A,e)=>({get(){return A(),t},set(n){t=n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class DI extends tv{constructor(A={}){return super(A),this.vueRenderers=h.reactive(new Map),this.contentComponent=null,this.reactiveState=qg(this.view.state),this.reactiveExtensionStorage=qg(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),h.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(A,e){super.registerPlugin(A,e),this.reactiveState.value=this.view.state}unregisterPlugin(A){super.unregisterPlugin(A),this.reactiveState.value=this.view.state}}const kI=h.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const A=h.ref(),e=h.getCurrentInstance();return h.watchEffect(()=>{const n=t.editor;n&&n.options.element&&A.value&&h.nextTick(()=>{if(!A.value||!n.options.element.firstChild)return;const r=h.unref(A.value);A.value.append(...n.options.element.childNodes),n.contentComponent=e.ctx._,n.setOptions({element:r}),n.createNodeViews()})}),h.onBeforeUnmount(()=>{const n=t.editor;if(!n||(n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;const r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}),{rootEl:A}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(A=>{const e=h.h(h.Teleport,{to:A.teleportElement,key:A.id},h.h(A.component,{ref:A.id,...A.props}));t.push(e)}),h.h("div",{ref:A=>{this.rootEl=A}},...t)}});h.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:A}){const e=h.ref(null);return h.onMounted(()=>{const{pluginKey:n,editor:r,tippyOptions:i,shouldShow:s}=t;r.registerPlugin(zg({pluginKey:n,editor:r,element:e.value,tippyOptions:i,shouldShow:s}))}),h.onBeforeUnmount(()=>{const{pluginKey:n,editor:r}=t;r.unregisterPlugin(n)}),()=>{var n;return h.h("div",{ref:e},(n=A.default)===null||n===void 0?void 0:n.call(A))}}}),h.defineComponent({props:{as:{type:String,default:"div"}},render(){return h.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),h.defineComponent({props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,A;return h.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(A=(t=this.$slots).default)===null||A===void 0?void 0:A.call(t))}});const NI=(t={})=>{const A=h.shallowRef();return h.onMounted(()=>{A.value=new DI(t)}),h.onBeforeUnmount(()=>{var e;(e=A.value)===null||e===void 0||e.destroy()}),A},RI={class:"rte-editor"},KI={key:0,class:"rte-editor__controls"},VI=["disabled"],PI=["disabled"],GI=["disabled"],WI=["disabled"],$I=["disabled"],JI=["disabled"],XI=h.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:"<p>I’m running Tiptap with Vue.js. 🎉</p>"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=NI({content:e.modelValue,onUpdate:()=>{var r;A("update:modelValue",(r=n.value)==null?void 0:r.getHTML())},extensions:[sI,ov.configure({types:["heading","paragraph"]}),sv]});return h.watch(()=>e.modelValue,(r,i)=>{if(n.value){if(n.value.getHTML()===r)return;n.value.commands.setContent(r,!1)}}),(r,i)=>{const s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",RI,[h.unref(n)?(h.openBlock(),h.createElementBlock("div",KI,[h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("bold")}]),onClick:i[0]||(i[0]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleBold().run()}),disabled:!h.unref(n).can().chain().focus().toggleBold().run()},[h.createVNode(s,{symbol:"bold"})],10,VI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("italic")}]),onClick:i[1]||(i[1]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleItalic().run()}),disabled:!h.unref(n).can().chain().focus().toggleItalic().run()},[h.createVNode(s,{symbol:"italic"})],10,PI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("strike")}]),onClick:i[2]||(i[2]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleStrike().run()}),disabled:!h.unref(n).can().chain().focus().toggleStrike().run()}," strikethrough ",10,GI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("code")}]),onClick:i[3]||(i[3]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleCode().run()}),disabled:!h.unref(n).can().chain().focus().toggleCode().run()},[h.createVNode(s,{symbol:"code"})],10,WI),h.createElementVNode("button",{class:"btn btn-light",onClick:i[4]||(i[4]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().unsetAllMarks().run()})}," clear marks "),h.createElementVNode("button",{class:"btn btn-light",onClick:i[5]||(i[5]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().clearNodes().run()})}," clear nodes "),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("paragraph")}]),onClick:i[6]||(i[6]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setParagraph().run()})}," paragraph ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:1})}]),onClick:i[7]||(i[7]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:1}).run()})}," h1 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:2})}]),onClick:i[8]||(i[8]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:2}).run()})}," h2 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:3})}]),onClick:i[9]||(i[9]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:3}).run()})}," h3 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:4})}]),onClick:i[10]||(i[10]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:4}).run()})}," h4 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:5})}]),onClick:i[11]||(i[11]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:5}).run()})}," h5 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("heading",{level:6})}]),onClick:i[12]||(i[12]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHeading({level:6}).run()})}," h6 ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("bulletList")}]),onClick:i[13]||(i[13]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleBulletList().run()})},[h.createVNode(s,{id:"list"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("orderedList")}]),onClick:i[14]||(i[14]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleOrderedList().run()})}," ordered list ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("codeBlock")}]),onClick:i[15]||(i[15]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleCodeBlock().run()})}," code block ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("blockquote")}]),onClick:i[16]||(i[16]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleBlockquote().run()})}," blockquote ",2),h.createElementVNode("button",{class:"btn btn-light",onClick:i[17]||(i[17]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setHorizontalRule().run()})}," horizontal rule "),h.createElementVNode("button",{class:"btn btn-light",onClick:i[18]||(i[18]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setHardBreak().run()})}," hard break "),h.createElementVNode("button",{class:"btn btn-light",onClick:i[19]||(i[19]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().undo().run()}),disabled:!h.unref(n).can().chain().focus().undo().run()}," undo ",8,$I),h.createElementVNode("button",{class:"btn btn-light",onClick:i[20]||(i[20]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().redo().run()}),disabled:!h.unref(n).can().chain().focus().redo().run()}," redo ",8,JI),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive("highlight")}]),onClick:i[21]||(i[21]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().toggleHighlight().run()})}," highlight ",2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive({textAlign:"left"})}]),onClick:i[22]||(i[22]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setTextAlign("left").run()})},[h.createVNode(s,{symbol:"align-left"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive({textAlign:"center"})}]),onClick:i[23]||(i[23]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setTextAlign("center").run()})},[h.createVNode(s,{symbol:"align-center"})],2),h.createElementVNode("button",{class:h.normalizeClass(["btn btn-light",{"is-active":h.unref(n).isActive({textAlign:"right"})}]),onClick:i[24]||(i[24]=a=>{var c;return(c=h.unref(n))==null?void 0:c.chain().focus().setTextAlign("right").run()})},[h.createVNode(s,{symbol:"align-right"})],2)])):h.createCommentVNode("",!0),h.createVNode(h.unref(kI),{class:"rte-editor__content",editor:h.unref(n)},null,8,["editor"])])}}}),N2="",YI={class:"input-color"},zI={class:"base-input__color-swatch"},qI=["name","id","disabled","read-only","required","aria-label"],ZI=h.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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=h.computed({get(){return e.modelValue},set(r){A("update:modelValue",r)}});return(r,i)=>{const s=h.resolveComponent("base-input");return h.openBlock(),h.createElementBlock("div",YI,[h.createVNode(s,{modelValue:h.unref(n),"onUpdate:modelValue":i[1]||(i[1]=a=>h.isRef(n)?n.value=a:null),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":h.withCtx(a=>[h.createElementVNode("span",zI,[h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=c=>h.isRef(n)?n.value=c:null),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,qI),[[h.vModelText,h.unref(n)]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),R2="";/*!
|
|
114
114
|
* shared v9.2.2
|
|
115
115
|
* (c) 2022 kazuya kawaguchi
|
|
116
116
|
* Released under the MIT License.
|
|
@@ -120,7 +120,7 @@ img.ProseMirror-separator {
|
|
|
120
120
|
* (c) 2022 kazuya kawaguchi
|
|
121
121
|
* Released under the MIT License.
|
|
122
122
|
*/const hA={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,__EXTEND_POINT__:15},a1={[hA.EXPECTED_TOKEN]:"Expected token: '{0}'",[hA.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[hA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[hA.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[hA.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[hA.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[hA.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[hA.EMPTY_PLACEHOLDER]:"Empty placeholder",[hA.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[hA.INVALID_LINKED_FORMAT]:"Invalid linked format",[hA.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[hA.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[hA.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[hA.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function la(t,A,e={}){const{domain:n,messages:r,args:i}=e,s=process.env.NODE_ENV!=="production"?oa((r||a1)[t]||"",...i||[]):t,a=new SyntaxError(String(s));return a.code=t,A&&(a.location=A),a.domain=n,a}function l1(t){throw t}function c1(t,A,e){return{line:t,column:A,offset:e}}function pu(t,A,e){const n={start:t,end:A};return e!=null&&(n.source=e),n}const _n=" ",u1="\r",nt=`
|
|
123
|
-
`,f1=String.fromCharCode(8232),d1=String.fromCharCode(8233);function h1(t){const A=t;let e=0,n=1,r=1,i=0;const s=N=>A[N]===u1&&A[N+1]===nt,a=N=>A[N]===nt,c=N=>A[N]===d1,u=N=>A[N]===f1,d=N=>s(N)||a(N)||c(N)||u(N),p=()=>e,B=()=>n,m=()=>r,C=()=>i,E=N=>s(N)||c(N)||u(N)?nt:A[N],S=()=>E(e),U=()=>E(e+i);function v(){return i=0,d(e)&&(n++,r=0),s(e)&&e++,e++,r++,A[e]}function k(){return s(e+i)&&i++,i++,A[e+i]}function F(){e=0,n=1,r=1,i=0}function T(N=0){i=N}function _(){const N=e+i;for(;N!==e;)v();i=0}return{index:p,line:B,column:m,peekOffset:C,charAt:E,currentChar:S,currentPeek:U,next:v,peek:k,reset:F,resetPeek:T,skipToPeek:_}}const hr=void 0,tB="'",p1="tokenizer";function g1(t,A={}){const e=A.location!==!1,n=h1(t),r=()=>n.index(),i=()=>c1(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:d}=A;function p(H,b,D,...q){const oA=u();if(b.column+=D,b.offset+=D,d){const IA=pu(oA.startLoc,b),at=la(H,IA,{domain:p1,args:q});d(at)}}function B(H,b,D){H.endLoc=i(),H.currentType=b;const q={type:b};return e&&(q.loc=pu(H.startLoc,H.endLoc)),D!=null&&(q.value=D),q}const m=H=>B(H,14);function C(H,b){return H.currentChar()===b?(H.next(),b):(p(hA.EXPECTED_TOKEN,i(),0,b),"")}function E(H){let b="";for(;H.currentPeek()===_n||H.currentPeek()===nt;)b+=H.currentPeek(),H.peek();return b}function S(H){const b=E(H);return H.skipToPeek(),b}function U(H){if(H===hr)return!1;const b=H.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function v(H){if(H===hr)return!1;const b=H.charCodeAt(0);return b>=48&&b<=57}function k(H,b){const{currentType:D}=b;if(D!==2)return!1;E(H);const q=U(H.currentPeek());return H.resetPeek(),q}function F(H,b){const{currentType:D}=b;if(D!==2)return!1;E(H);const q=H.currentPeek()==="-"?H.peek():H.currentPeek(),oA=v(q);return H.resetPeek(),oA}function T(H,b){const{currentType:D}=b;if(D!==2)return!1;E(H);const q=H.currentPeek()===tB;return H.resetPeek(),q}function _(H,b){const{currentType:D}=b;if(D!==8)return!1;E(H);const q=H.currentPeek()===".";return H.resetPeek(),q}function N(H,b){const{currentType:D}=b;if(D!==9)return!1;E(H);const q=U(H.currentPeek());return H.resetPeek(),q}function W(H,b){const{currentType:D}=b;if(!(D===8||D===12))return!1;E(H);const q=H.currentPeek()===":";return H.resetPeek(),q}function $(H,b){const{currentType:D}=b;if(D!==10)return!1;const q=()=>{const IA=H.currentPeek();return IA==="{"?U(H.peek()):IA==="@"||IA==="%"||IA==="|"||IA===":"||IA==="."||IA===_n||!IA?!1:IA===nt?(H.peek(),q()):U(IA)},oA=q();return H.resetPeek(),oA}function eA(H){E(H);const b=H.currentPeek()==="|";return H.resetPeek(),b}function gA(H){const b=E(H),D=H.currentPeek()==="%"&&H.peek()==="{";return H.resetPeek(),{isModulo:D,hasSpace:b.length>0}}function wA(H,b=!0){const D=(oA=!1,IA="",at=!1)=>{const Ne=H.currentPeek();return Ne==="{"?IA==="%"?!1:oA:Ne==="@"||!Ne?IA==="%"?!0:oA:Ne==="%"?(H.peek(),D(oA,"%",!0)):Ne==="|"?IA==="%"||at?!0:!(IA===_n||IA===nt):Ne===_n?(H.peek(),D(!0,_n,at)):Ne===nt?(H.peek(),D(!0,nt,at)):!0},q=D();return b&&H.resetPeek(),q}function aA(H,b){const D=H.currentChar();return D===hr?hr:b(D)?(H.next(),D):null}function HA(H){return aA(H,D=>{const q=D.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36})}function WA(H){return aA(H,D=>{const q=D.charCodeAt(0);return q>=48&&q<=57})}function bA(H){return aA(H,D=>{const q=D.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102})}function vA(H){let b="",D="";for(;b=WA(H);)D+=b;return D}function mA(H){S(H);const b=H.currentChar();return b!=="%"&&p(hA.EXPECTED_TOKEN,i(),0,b),H.next(),"%"}function re(H){let b="";for(;;){const D=H.currentChar();if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D==="%")if(wA(H))b+=D,H.next();else break;else if(D===_n||D===nt)if(wA(H))b+=D,H.next();else{if(eA(H))break;b+=D,H.next()}else b+=D,H.next()}return b}function ZA(H){S(H);let b="",D="";for(;b=HA(H);)D+=b;return H.currentChar()===hr&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),D}function $A(H){S(H);let b="";return H.currentChar()==="-"?(H.next(),b+=`-${vA(H)}`):b+=vA(H),H.currentChar()===hr&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),b}function Be(H){S(H),C(H,"'");let b="",D="";const q=IA=>IA!==tB&&IA!==nt;for(;b=aA(H,q);)b==="\\"?D+=me(H):D+=b;const oA=H.currentChar();return oA===nt||oA===hr?(p(hA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oA===nt&&(H.next(),C(H,"'")),D):(C(H,"'"),D)}function me(H){const b=H.currentChar();switch(b){case"\\":case"'":return H.next(),`\\${b}`;case"u":return Te(H,b,4);case"U":return Te(H,b,6);default:return p(hA.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function Te(H,b,D){C(H,b);let q="";for(let oA=0;oA<D;oA++){const IA=bA(H);if(!IA){p(hA.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${q}${H.currentChar()}`);break}q+=IA}return`\\${b}${q}`}function jA(H){S(H);let b="",D="";const q=oA=>oA!=="{"&&oA!=="}"&&oA!==_n&&oA!==nt;for(;b=aA(H,q);)D+=b;return D}function fe(H){let b="",D="";for(;b=HA(H);)D+=b;return D}function it(H){const b=(D=!1,q)=>{const oA=H.currentChar();return oA==="{"||oA==="%"||oA==="@"||oA==="|"||!oA||oA===_n?q:oA===nt?(q+=oA,H.next(),b(D,q)):(q+=oA,H.next(),b(!0,q))};return b(!1,"")}function st(H){S(H);const b=C(H,"|");return S(H),b}function ze(H,b){let D=null;switch(H.currentChar()){case"{":return b.braceNest>=1&&p(hA.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),H.next(),D=B(b,2,"{"),S(H),b.braceNest++,D;case"}":return b.braceNest>0&&b.currentType===2&&p(hA.EMPTY_PLACEHOLDER,i(),0),H.next(),D=B(b,3,"}"),b.braceNest--,b.braceNest>0&&S(H),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),D;case"@":return b.braceNest>0&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),D=De(H,b)||m(b),b.braceNest=0,D;default:let oA=!0,IA=!0,at=!0;if(eA(H))return b.braceNest>0&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),D=B(b,1,st(H)),b.braceNest=0,b.inLinked=!1,D;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,ot(H,b);if(oA=k(H,b))return D=B(b,5,ZA(H)),S(H),D;if(IA=F(H,b))return D=B(b,6,$A(H)),S(H),D;if(at=T(H,b))return D=B(b,7,Be(H)),S(H),D;if(!oA&&!IA&&!at)return D=B(b,13,jA(H)),p(hA.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,D.value),S(H),D;break}return D}function De(H,b){const{currentType:D}=b;let q=null;const oA=H.currentChar();switch((D===8||D===9||D===12||D===10)&&(oA===nt||oA===_n)&&p(hA.INVALID_LINKED_FORMAT,i(),0),oA){case"@":return H.next(),q=B(b,8,"@"),b.inLinked=!0,q;case".":return S(H),H.next(),B(b,9,".");case":":return S(H),H.next(),B(b,10,":");default:return eA(H)?(q=B(b,1,st(H)),b.braceNest=0,b.inLinked=!1,q):_(H,b)||W(H,b)?(S(H),De(H,b)):N(H,b)?(S(H),B(b,12,fe(H))):$(H,b)?(S(H),oA==="{"?ze(H,b)||q:B(b,11,it(H))):(D===8&&p(hA.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,ot(H,b))}}function ot(H,b){let D={type:14};if(b.braceNest>0)return ze(H,b)||m(b);if(b.inLinked)return De(H,b)||m(b);switch(H.currentChar()){case"{":return ze(H,b)||m(b);case"}":return p(hA.UNBALANCED_CLOSING_BRACE,i(),0),H.next(),B(b,3,"}");case"@":return De(H,b)||m(b);default:if(eA(H))return D=B(b,1,st(H)),b.braceNest=0,b.inLinked=!1,D;const{isModulo:oA,hasSpace:IA}=gA(H);if(oA)return IA?B(b,0,re(H)):B(b,4,mA(H));if(wA(H))return B(b,0,re(H));break}return D}function It(){const{currentType:H,offset:b,startLoc:D,endLoc:q}=c;return c.lastType=H,c.lastOffset=b,c.lastStartLoc=D,c.lastEndLoc=q,c.offset=r(),c.startLoc=i(),n.currentChar()===hr?B(c,14):ot(n,c)}return{nextToken:It,currentOffset:r,currentPosition:i,context:u}}const B1="parser",m1=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function w1(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 C1(t={}){const A=t.location!==!1,{onError:e}=t;function n(U,v,k,F,...T){const _=U.currentPosition();if(_.offset+=F,_.column+=F,e){const N=pu(k,_),W=la(v,N,{domain:B1,args:T});e(W)}}function r(U,v,k){const F={type:U,start:v,end:v};return A&&(F.loc={start:k,end:k}),F}function i(U,v,k,F){U.end=v,F&&(U.type=F),A&&U.loc&&(U.loc.end=k)}function s(U,v){const k=U.context(),F=r(3,k.offset,k.startLoc);return F.value=v,i(F,U.currentOffset(),U.currentPosition()),F}function a(U,v){const k=U.context(),{lastOffset:F,lastStartLoc:T}=k,_=r(5,F,T);return _.index=parseInt(v,10),U.nextToken(),i(_,U.currentOffset(),U.currentPosition()),_}function c(U,v){const k=U.context(),{lastOffset:F,lastStartLoc:T}=k,_=r(4,F,T);return _.key=v,U.nextToken(),i(_,U.currentOffset(),U.currentPosition()),_}function u(U,v){const k=U.context(),{lastOffset:F,lastStartLoc:T}=k,_=r(9,F,T);return _.value=v.replace(m1,w1),U.nextToken(),i(_,U.currentOffset(),U.currentPosition()),_}function d(U){const v=U.nextToken(),k=U.context(),{lastOffset:F,lastStartLoc:T}=k,_=r(8,F,T);return v.type!==12?(n(U,hA.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),_.value="",i(_,F,T),{nextConsumeToken:v,node:_}):(v.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Cn(v)),_.value=v.value||"",i(_,U.currentOffset(),U.currentPosition()),{node:_})}function p(U,v){const k=U.context(),F=r(7,k.offset,k.startLoc);return F.value=v,i(F,U.currentOffset(),U.currentPosition()),F}function B(U){const v=U.context(),k=r(6,v.offset,v.startLoc);let F=U.nextToken();if(F.type===9){const T=d(U);k.modifier=T.node,F=T.nextConsumeToken||U.nextToken()}switch(F.type!==10&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),F=U.nextToken(),F.type===2&&(F=U.nextToken()),F.type){case 11:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),k.key=p(U,F.value||"");break;case 5:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),k.key=c(U,F.value||"");break;case 6:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),k.key=a(U,F.value||"");break;case 7:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),k.key=u(U,F.value||"");break;default:n(U,hA.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const T=U.context(),_=r(7,T.offset,T.startLoc);return _.value="",i(_,T.offset,T.startLoc),k.key=_,i(k,T.offset,T.startLoc),{nextConsumeToken:F,node:k}}return i(k,U.currentOffset(),U.currentPosition()),{node:k}}function m(U){const v=U.context(),k=v.currentType===1?U.currentOffset():v.offset,F=v.currentType===1?v.endLoc:v.startLoc,T=r(2,k,F);T.items=[];let _=null;do{const $=_||U.nextToken();switch(_=null,$.type){case 0:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(s(U,$.value||""));break;case 6:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(a(U,$.value||""));break;case 5:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(c(U,$.value||""));break;case 7:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(u(U,$.value||""));break;case 8:const eA=B(U);T.items.push(eA.node),_=eA.nextConsumeToken||null;break}}while(v.currentType!==14&&v.currentType!==1);const N=v.currentType===1?v.lastOffset:U.currentOffset(),W=v.currentType===1?v.lastEndLoc:U.currentPosition();return i(T,N,W),T}function C(U,v,k,F){const T=U.context();let _=F.items.length===0;const N=r(1,v,k);N.cases=[],N.cases.push(F);do{const W=m(U);_||(_=W.items.length===0),N.cases.push(W)}while(T.currentType!==14);return _&&n(U,hA.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),i(N,U.currentOffset(),U.currentPosition()),N}function E(U){const v=U.context(),{offset:k,startLoc:F}=v,T=m(U);return v.currentType===14?T:C(U,k,F,T)}function S(U){const v=g1(U,Oe({},t)),k=v.context(),F=r(0,k.offset,k.startLoc);return A&&F.loc&&(F.loc.source=U),F.body=E(v),k.currentType!==14&&n(v,hA.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,U[k.offset]||""),i(F,v.currentOffset(),v.currentPosition()),F}return{parse:S}}function Cn(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 y1(t,A={}){const e={ast:t,helpers:new Set};return{context:()=>e,helper:i=>(e.helpers.add(i),i)}}function nB(t,A){for(let e=0;e<t.length;e++)gu(t[e],A)}function gu(t,A){switch(t.type){case 1:nB(t.cases,A),A.helper("plural");break;case 2:nB(t.items,A);break;case 6:gu(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 Q1(t,A={}){const e=y1(t);e.helper("normalize"),t.body&&gu(t.body,e);const n=e.context();t.helpers=Array.from(n.helpers)}function E1(t,A){const{sourceMap:e,filename:n,breakLineCode:r,needIndent:i}=A,s={source:t.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0},a=()=>s;function c(E,S){s.code+=E}function u(E,S=!0){const U=S?r:"";c(i?U+" ".repeat(E):U)}function d(E=!0){const S=++s.indentLevel;E&&u(S)}function p(E=!0){const S=--s.indentLevel;E&&u(S)}function B(){u(s.indentLevel)}return{context:a,push:c,indent:d,deindent:p,newline:B,helper:E=>`_${E}`,needIndent:()=>s.needIndent}}function F1(t,A){const{helper:e}=t;t.push(`${e("linked")}(`),Li(t,A.key),A.modifier?(t.push(", "),Li(t,A.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function U1(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&&(Li(t,A.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function b1(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&&(Li(t,A.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function v1(t,A){A.body?Li(t,A.body):t.push("null")}function Li(t,A){const{helper:e}=t;switch(A.type){case 0:v1(t,A);break;case 1:b1(t,A);break;case 2:U1(t,A);break;case 6:F1(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:if(process.env.NODE_ENV!=="production")throw new Error(`unhandled codegen node type: ${A.type}`)}}const I1=(t,A={})=>{const e=nA(A.mode)?A.mode:"normal",n=nA(A.filename)?A.filename:"message.intl",r=!!A.sourceMap,i=A.breakLineCode!=null?A.breakLineCode:e==="arrow"?";":`
|
|
123
|
+
`,f1=String.fromCharCode(8232),d1=String.fromCharCode(8233);function h1(t){const A=t;let e=0,n=1,r=1,i=0;const s=N=>A[N]===u1&&A[N+1]===nt,a=N=>A[N]===nt,c=N=>A[N]===d1,u=N=>A[N]===f1,d=N=>s(N)||a(N)||c(N)||u(N),p=()=>e,B=()=>n,m=()=>r,C=()=>i,E=N=>s(N)||c(N)||u(N)?nt:A[N],S=()=>E(e),U=()=>E(e+i);function v(){return i=0,d(e)&&(n++,r=0),s(e)&&e++,e++,r++,A[e]}function M(){return s(e+i)&&i++,i++,A[e+i]}function F(){e=0,n=1,r=1,i=0}function T(N=0){i=N}function _(){const N=e+i;for(;N!==e;)v();i=0}return{index:p,line:B,column:m,peekOffset:C,charAt:E,currentChar:S,currentPeek:U,next:v,peek:M,reset:F,resetPeek:T,skipToPeek:_}}const hr=void 0,tB="'",p1="tokenizer";function g1(t,A={}){const e=A.location!==!1,n=h1(t),r=()=>n.index(),i=()=>c1(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:d}=A;function p(H,b,k,...q){const oA=u();if(b.column+=k,b.offset+=k,d){const IA=pu(oA.startLoc,b),at=la(H,IA,{domain:p1,args:q});d(at)}}function B(H,b,k){H.endLoc=i(),H.currentType=b;const q={type:b};return e&&(q.loc=pu(H.startLoc,H.endLoc)),k!=null&&(q.value=k),q}const m=H=>B(H,14);function C(H,b){return H.currentChar()===b?(H.next(),b):(p(hA.EXPECTED_TOKEN,i(),0,b),"")}function E(H){let b="";for(;H.currentPeek()===_n||H.currentPeek()===nt;)b+=H.currentPeek(),H.peek();return b}function S(H){const b=E(H);return H.skipToPeek(),b}function U(H){if(H===hr)return!1;const b=H.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function v(H){if(H===hr)return!1;const b=H.charCodeAt(0);return b>=48&&b<=57}function M(H,b){const{currentType:k}=b;if(k!==2)return!1;E(H);const q=U(H.currentPeek());return H.resetPeek(),q}function F(H,b){const{currentType:k}=b;if(k!==2)return!1;E(H);const q=H.currentPeek()==="-"?H.peek():H.currentPeek(),oA=v(q);return H.resetPeek(),oA}function T(H,b){const{currentType:k}=b;if(k!==2)return!1;E(H);const q=H.currentPeek()===tB;return H.resetPeek(),q}function _(H,b){const{currentType:k}=b;if(k!==8)return!1;E(H);const q=H.currentPeek()===".";return H.resetPeek(),q}function N(H,b){const{currentType:k}=b;if(k!==9)return!1;E(H);const q=U(H.currentPeek());return H.resetPeek(),q}function W(H,b){const{currentType:k}=b;if(!(k===8||k===12))return!1;E(H);const q=H.currentPeek()===":";return H.resetPeek(),q}function $(H,b){const{currentType:k}=b;if(k!==10)return!1;const q=()=>{const IA=H.currentPeek();return IA==="{"?U(H.peek()):IA==="@"||IA==="%"||IA==="|"||IA===":"||IA==="."||IA===_n||!IA?!1:IA===nt?(H.peek(),q()):U(IA)},oA=q();return H.resetPeek(),oA}function eA(H){E(H);const b=H.currentPeek()==="|";return H.resetPeek(),b}function gA(H){const b=E(H),k=H.currentPeek()==="%"&&H.peek()==="{";return H.resetPeek(),{isModulo:k,hasSpace:b.length>0}}function wA(H,b=!0){const k=(oA=!1,IA="",at=!1)=>{const Ne=H.currentPeek();return Ne==="{"?IA==="%"?!1:oA:Ne==="@"||!Ne?IA==="%"?!0:oA:Ne==="%"?(H.peek(),k(oA,"%",!0)):Ne==="|"?IA==="%"||at?!0:!(IA===_n||IA===nt):Ne===_n?(H.peek(),k(!0,_n,at)):Ne===nt?(H.peek(),k(!0,nt,at)):!0},q=k();return b&&H.resetPeek(),q}function aA(H,b){const k=H.currentChar();return k===hr?hr:b(k)?(H.next(),k):null}function HA(H){return aA(H,k=>{const q=k.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36})}function WA(H){return aA(H,k=>{const q=k.charCodeAt(0);return q>=48&&q<=57})}function bA(H){return aA(H,k=>{const q=k.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102})}function vA(H){let b="",k="";for(;b=WA(H);)k+=b;return k}function mA(H){S(H);const b=H.currentChar();return b!=="%"&&p(hA.EXPECTED_TOKEN,i(),0,b),H.next(),"%"}function re(H){let b="";for(;;){const k=H.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(wA(H))b+=k,H.next();else break;else if(k===_n||k===nt)if(wA(H))b+=k,H.next();else{if(eA(H))break;b+=k,H.next()}else b+=k,H.next()}return b}function ZA(H){S(H);let b="",k="";for(;b=HA(H);)k+=b;return H.currentChar()===hr&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),k}function $A(H){S(H);let b="";return H.currentChar()==="-"?(H.next(),b+=`-${vA(H)}`):b+=vA(H),H.currentChar()===hr&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),b}function Be(H){S(H),C(H,"'");let b="",k="";const q=IA=>IA!==tB&&IA!==nt;for(;b=aA(H,q);)b==="\\"?k+=me(H):k+=b;const oA=H.currentChar();return oA===nt||oA===hr?(p(hA.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oA===nt&&(H.next(),C(H,"'")),k):(C(H,"'"),k)}function me(H){const b=H.currentChar();switch(b){case"\\":case"'":return H.next(),`\\${b}`;case"u":return Te(H,b,4);case"U":return Te(H,b,6);default:return p(hA.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function Te(H,b,k){C(H,b);let q="";for(let oA=0;oA<k;oA++){const IA=bA(H);if(!IA){p(hA.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${q}${H.currentChar()}`);break}q+=IA}return`\\${b}${q}`}function jA(H){S(H);let b="",k="";const q=oA=>oA!=="{"&&oA!=="}"&&oA!==_n&&oA!==nt;for(;b=aA(H,q);)k+=b;return k}function fe(H){let b="",k="";for(;b=HA(H);)k+=b;return k}function it(H){const b=(k=!1,q)=>{const oA=H.currentChar();return oA==="{"||oA==="%"||oA==="@"||oA==="|"||!oA||oA===_n?q:oA===nt?(q+=oA,H.next(),b(k,q)):(q+=oA,H.next(),b(!0,q))};return b(!1,"")}function st(H){S(H);const b=C(H,"|");return S(H),b}function ze(H,b){let k=null;switch(H.currentChar()){case"{":return b.braceNest>=1&&p(hA.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),H.next(),k=B(b,2,"{"),S(H),b.braceNest++,k;case"}":return b.braceNest>0&&b.currentType===2&&p(hA.EMPTY_PLACEHOLDER,i(),0),H.next(),k=B(b,3,"}"),b.braceNest--,b.braceNest>0&&S(H),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),k;case"@":return b.braceNest>0&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),k=ke(H,b)||m(b),b.braceNest=0,k;default:let oA=!0,IA=!0,at=!0;if(eA(H))return b.braceNest>0&&p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),k=B(b,1,st(H)),b.braceNest=0,b.inLinked=!1,k;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return p(hA.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,ot(H,b);if(oA=M(H,b))return k=B(b,5,ZA(H)),S(H),k;if(IA=F(H,b))return k=B(b,6,$A(H)),S(H),k;if(at=T(H,b))return k=B(b,7,Be(H)),S(H),k;if(!oA&&!IA&&!at)return k=B(b,13,jA(H)),p(hA.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,k.value),S(H),k;break}return k}function ke(H,b){const{currentType:k}=b;let q=null;const oA=H.currentChar();switch((k===8||k===9||k===12||k===10)&&(oA===nt||oA===_n)&&p(hA.INVALID_LINKED_FORMAT,i(),0),oA){case"@":return H.next(),q=B(b,8,"@"),b.inLinked=!0,q;case".":return S(H),H.next(),B(b,9,".");case":":return S(H),H.next(),B(b,10,":");default:return eA(H)?(q=B(b,1,st(H)),b.braceNest=0,b.inLinked=!1,q):_(H,b)||W(H,b)?(S(H),ke(H,b)):N(H,b)?(S(H),B(b,12,fe(H))):$(H,b)?(S(H),oA==="{"?ze(H,b)||q:B(b,11,it(H))):(k===8&&p(hA.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,ot(H,b))}}function ot(H,b){let k={type:14};if(b.braceNest>0)return ze(H,b)||m(b);if(b.inLinked)return ke(H,b)||m(b);switch(H.currentChar()){case"{":return ze(H,b)||m(b);case"}":return p(hA.UNBALANCED_CLOSING_BRACE,i(),0),H.next(),B(b,3,"}");case"@":return ke(H,b)||m(b);default:if(eA(H))return k=B(b,1,st(H)),b.braceNest=0,b.inLinked=!1,k;const{isModulo:oA,hasSpace:IA}=gA(H);if(oA)return IA?B(b,0,re(H)):B(b,4,mA(H));if(wA(H))return B(b,0,re(H));break}return k}function It(){const{currentType:H,offset:b,startLoc:k,endLoc:q}=c;return c.lastType=H,c.lastOffset=b,c.lastStartLoc=k,c.lastEndLoc=q,c.offset=r(),c.startLoc=i(),n.currentChar()===hr?B(c,14):ot(n,c)}return{nextToken:It,currentOffset:r,currentPosition:i,context:u}}const B1="parser",m1=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function w1(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 C1(t={}){const A=t.location!==!1,{onError:e}=t;function n(U,v,M,F,...T){const _=U.currentPosition();if(_.offset+=F,_.column+=F,e){const N=pu(M,_),W=la(v,N,{domain:B1,args:T});e(W)}}function r(U,v,M){const F={type:U,start:v,end:v};return A&&(F.loc={start:M,end:M}),F}function i(U,v,M,F){U.end=v,F&&(U.type=F),A&&U.loc&&(U.loc.end=M)}function s(U,v){const M=U.context(),F=r(3,M.offset,M.startLoc);return F.value=v,i(F,U.currentOffset(),U.currentPosition()),F}function a(U,v){const M=U.context(),{lastOffset:F,lastStartLoc:T}=M,_=r(5,F,T);return _.index=parseInt(v,10),U.nextToken(),i(_,U.currentOffset(),U.currentPosition()),_}function c(U,v){const M=U.context(),{lastOffset:F,lastStartLoc:T}=M,_=r(4,F,T);return _.key=v,U.nextToken(),i(_,U.currentOffset(),U.currentPosition()),_}function u(U,v){const M=U.context(),{lastOffset:F,lastStartLoc:T}=M,_=r(9,F,T);return _.value=v.replace(m1,w1),U.nextToken(),i(_,U.currentOffset(),U.currentPosition()),_}function d(U){const v=U.nextToken(),M=U.context(),{lastOffset:F,lastStartLoc:T}=M,_=r(8,F,T);return v.type!==12?(n(U,hA.UNEXPECTED_EMPTY_LINKED_MODIFIER,M.lastStartLoc,0),_.value="",i(_,F,T),{nextConsumeToken:v,node:_}):(v.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,Cn(v)),_.value=v.value||"",i(_,U.currentOffset(),U.currentPosition()),{node:_})}function p(U,v){const M=U.context(),F=r(7,M.offset,M.startLoc);return F.value=v,i(F,U.currentOffset(),U.currentPosition()),F}function B(U){const v=U.context(),M=r(6,v.offset,v.startLoc);let F=U.nextToken();if(F.type===9){const T=d(U);M.modifier=T.node,F=T.nextConsumeToken||U.nextToken()}switch(F.type!==10&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),F=U.nextToken(),F.type===2&&(F=U.nextToken()),F.type){case 11:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),M.key=p(U,F.value||"");break;case 5:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),M.key=c(U,F.value||"");break;case 6:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),M.key=a(U,F.value||"");break;case 7:F.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn(F)),M.key=u(U,F.value||"");break;default:n(U,hA.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const T=U.context(),_=r(7,T.offset,T.startLoc);return _.value="",i(_,T.offset,T.startLoc),M.key=_,i(M,T.offset,T.startLoc),{nextConsumeToken:F,node:M}}return i(M,U.currentOffset(),U.currentPosition()),{node:M}}function m(U){const v=U.context(),M=v.currentType===1?U.currentOffset():v.offset,F=v.currentType===1?v.endLoc:v.startLoc,T=r(2,M,F);T.items=[];let _=null;do{const $=_||U.nextToken();switch(_=null,$.type){case 0:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(s(U,$.value||""));break;case 6:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(a(U,$.value||""));break;case 5:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(c(U,$.value||""));break;case 7:$.value==null&&n(U,hA.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Cn($)),T.items.push(u(U,$.value||""));break;case 8:const eA=B(U);T.items.push(eA.node),_=eA.nextConsumeToken||null;break}}while(v.currentType!==14&&v.currentType!==1);const N=v.currentType===1?v.lastOffset:U.currentOffset(),W=v.currentType===1?v.lastEndLoc:U.currentPosition();return i(T,N,W),T}function C(U,v,M,F){const T=U.context();let _=F.items.length===0;const N=r(1,v,M);N.cases=[],N.cases.push(F);do{const W=m(U);_||(_=W.items.length===0),N.cases.push(W)}while(T.currentType!==14);return _&&n(U,hA.MUST_HAVE_MESSAGES_IN_PLURAL,M,0),i(N,U.currentOffset(),U.currentPosition()),N}function E(U){const v=U.context(),{offset:M,startLoc:F}=v,T=m(U);return v.currentType===14?T:C(U,M,F,T)}function S(U){const v=g1(U,Oe({},t)),M=v.context(),F=r(0,M.offset,M.startLoc);return A&&F.loc&&(F.loc.source=U),F.body=E(v),M.currentType!==14&&n(v,hA.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,U[M.offset]||""),i(F,v.currentOffset(),v.currentPosition()),F}return{parse:S}}function Cn(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 y1(t,A={}){const e={ast:t,helpers:new Set};return{context:()=>e,helper:i=>(e.helpers.add(i),i)}}function nB(t,A){for(let e=0;e<t.length;e++)gu(t[e],A)}function gu(t,A){switch(t.type){case 1:nB(t.cases,A),A.helper("plural");break;case 2:nB(t.items,A);break;case 6:gu(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 Q1(t,A={}){const e=y1(t);e.helper("normalize"),t.body&&gu(t.body,e);const n=e.context();t.helpers=Array.from(n.helpers)}function E1(t,A){const{sourceMap:e,filename:n,breakLineCode:r,needIndent:i}=A,s={source:t.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0},a=()=>s;function c(E,S){s.code+=E}function u(E,S=!0){const U=S?r:"";c(i?U+" ".repeat(E):U)}function d(E=!0){const S=++s.indentLevel;E&&u(S)}function p(E=!0){const S=--s.indentLevel;E&&u(S)}function B(){u(s.indentLevel)}return{context:a,push:c,indent:d,deindent:p,newline:B,helper:E=>`_${E}`,needIndent:()=>s.needIndent}}function F1(t,A){const{helper:e}=t;t.push(`${e("linked")}(`),Li(t,A.key),A.modifier?(t.push(", "),Li(t,A.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function U1(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&&(Li(t,A.items[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function b1(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&&(Li(t,A.cases[i]),i!==r-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function v1(t,A){A.body?Li(t,A.body):t.push("null")}function Li(t,A){const{helper:e}=t;switch(A.type){case 0:v1(t,A);break;case 1:b1(t,A);break;case 2:U1(t,A);break;case 6:F1(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:if(process.env.NODE_ENV!=="production")throw new Error(`unhandled codegen node type: ${A.type}`)}}const I1=(t,A={})=>{const e=nA(A.mode)?A.mode:"normal",n=nA(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=E1(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 { ${a.map(p=>`${p}: _${p}`).join(", ")} } = ctx`),c.newline()),c.push("return "),Li(c,t),c.deindent(s),c.push("}");const{code:u,map:d}=c.context();return{ast:t,code:u,map:d?d.toJSON():void 0}};function S1(t,A={}){const e=Oe({},A),r=C1(e).parse(t);return Q1(r,e),I1(r,e)}/*!
|
|
125
125
|
* devtools-if v9.2.2
|
|
126
126
|
* (c) 2022 kazuya kawaguchi
|
|
@@ -129,38 +129,38 @@ img.ProseMirror-separator {
|
|
|
129
129
|
* core-base v9.2.2
|
|
130
130
|
* (c) 2022 kazuya kawaguchi
|
|
131
131
|
* Released under the MIT License.
|
|
132
|
-
*/const pr=[];pr[0]={w:[0],i:[3,0],["["]:[4],o:[7]},pr[1]={w:[1],["."]:[2],["["]:[4],o:[7]},pr[2]={w:[2],i:[3,0],[0]:[3,0]},pr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},pr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},pr[5]={["'"]:[4,0],o:8,l:[5,0]},pr[6]={['"']:[4,0],o:8,l:[6,0]};const T1=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function x1(t){return T1.test(t)}function H1(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 _1(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 L1(t){const A=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:x1(A)?H1(A):"*"+A}function O1(t){const A=[];let e=-1,n=0,r=0,i,s,a,c,u,d,p;const B=[];B[0]=()=>{s===void 0?s=a:s+=a},B[1]=()=>{s!==void 0&&(A.push(s),s=void 0)},B[2]=()=>{B[0](),r++},B[3]=()=>{if(r>0)r--,n=4,B[0]();else{if(r=0,s===void 0||(s=L1(s),s===!1))return!1;B[1]()}};function m(){const C=t[e+1];if(n===5&&C==="'"||n===6&&C==='"')return e++,a="\\"+C,B[0](),!0}for(;n!==null;)if(e++,i=t[e],!(i==="\\"&&m())){if(c=_1(i),p=pr[n],u=p[c]||p.l||8,u===8||(n=u[0],u[1]!==void 0&&(d=B[u[1]],d&&(a=i,d()===!1))))return;if(n===7)return A}}const iB=new Map;function k1(t,A){return JA(t)?t[A]:null}function M1(t,A){if(!JA(t))return null;let e=iB.get(A);if(e||(e=O1(A),e&&iB.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)return null;r=s,i++}return r}const D1=t=>t,N1=t=>"",R1="text",K1=t=>t.length===0?"":t.join(""),V1=i1;function sB(t,A){return t=Math.abs(t),A===2?t?t>1?1:0:1:t?Math.min(t,2):0}function P1(t){const A=Je(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Je(t.named.count)||Je(t.named.n))?Je(t.named.count)?t.named.count:Je(t.named.n)?t.named.n:A:A}function G1(t,A){A.count||(A.count=t),A.n||(A.n=t)}function W1(t={}){const A=t.locale,e=P1(t),n=JA(t.pluralRules)&&nA(A)&&Qe(t.pluralRules[A])?t.pluralRules[A]:sB,r=JA(t.pluralRules)&&nA(A)&&Qe(t.pluralRules[A])?sB:void 0,i=U=>U[n(e,U.length,r)],s=t.list||[],a=U=>s[U],c=t.named||{};Je(t.pluralIndex)&&G1(e,c);const u=U=>c[U];function d(U){const v=Qe(t.messages)?t.messages(U):JA(t.messages)?t.messages[U]:!1;return v||(t.parent?t.parent.message(U):N1)}const p=U=>t.modifiers?t.modifiers[U]:D1,B=TA(t.processor)&&Qe(t.processor.normalize)?t.processor.normalize:K1,m=TA(t.processor)&&Qe(t.processor.interpolate)?t.processor.interpolate:V1,C=TA(t.processor)&&nA(t.processor.type)?t.processor.type:R1,S={list:a,named:u,plural:i,linked:(U,...v)=>{const[k,F]=v;let T="text",_="";v.length===1?JA(k)?(_=k.modifier||_,T=k.type||T):nA(k)&&(_=k||_):v.length===2&&(nA(k)&&(_=k||_),nA(F)&&(T=F||T));let N=d(U)(S);return T==="vnode"&&le(N)&&_&&(N=N[0]),_?p(_)(N,T):N},message:d,type:C,interpolate:m,normalize:B};return S}let _s=null;function $1(t){_s=t}function J1(t,A,e){_s&&_s.emit(rB.I18nInit,{timestamp:Date.now(),i18n:t,version:A,meta:e})}const X1=Y1(rB.FunctionTranslate);function Y1(t){return A=>_s&&_s.emit(t,A)}const bt={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,__EXTEND_POINT__:7},z1={[bt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[bt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[bt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[bt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[bt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[bt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Oi(t,...A){return oa(z1[t],...A)}function q1(t,A,e){return[...new Set([e,...le(A)?A:JA(A)?Object.keys(A):nA(A)?[A]:[e]])]}function oB(t,A,e){const n=nA(e)?e:ua,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[e];for(;le(s);)s=aB(i,s,A);const a=le(A)||!TA(A)?A:A.default?A.default:null;s=nA(a)?[a]:a,le(s)&&aB(i,s,!1),r.__localeChainCache.set(n,i)}return i}function aB(t,A,e){let n=!0;for(let r=0;r<A.length&&qA(n);r++){const i=A[r];nA(i)&&(n=Z1(t,A[r],e))}return n}function Z1(t,A,e){let n;const r=A.split("-");do{const i=r.join("-");n=j1(t,i,e),r.splice(-1,1)}while(r.length&&n===!0);return n}function j1(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),(le(e)||TA(e))&&e[r]&&(n=e[r])}return n}const AS="9.2.2",ca=-1,ua="en-US",fa="",lB=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function eS(){return{upper:(t,A)=>A==="text"&&nA(t)?t.toUpperCase():A==="vnode"&&JA(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,A)=>A==="text"&&nA(t)?t.toLowerCase():A==="vnode"&&JA(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,A)=>A==="text"&&nA(t)?lB(t):A==="vnode"&&JA(t)&&"__v_isVNode"in t?lB(t.children):t}}let cB;function tS(t){cB=t}let uB;function nS(t){uB=t}let fB;function rS(t){fB=t}let dB=null;const hB=t=>{dB=t},iS=()=>dB;let pB=null;const gB=t=>{pB=t},sS=()=>pB;let BB=0;function oS(t={}){const A=nA(t.version)?t.version:AS,e=nA(t.locale)?t.locale:ua,n=le(t.fallbackLocale)||TA(t.fallbackLocale)||nA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=TA(t.messages)?t.messages:{[e]:{}},i=TA(t.datetimeFormats)?t.datetimeFormats:{[e]:{}},s=TA(t.numberFormats)?t.numberFormats:{[e]:{}},a=Oe({},t.modifiers||{},eS()),c=t.pluralRules||{},u=Qe(t.missing)?t.missing:null,d=qA(t.missingWarn)||_i(t.missingWarn)?t.missingWarn:!0,p=qA(t.fallbackWarn)||_i(t.fallbackWarn)?t.fallbackWarn:!0,B=!!t.fallbackFormat,m=!!t.unresolving,C=Qe(t.postTranslation)?t.postTranslation:null,E=TA(t.processor)?t.processor:null,S=qA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter,v=Qe(t.messageCompiler)?t.messageCompiler:cB,k=Qe(t.messageResolver)?t.messageResolver:uB||k1,F=Qe(t.localeFallbacker)?t.localeFallbacker:fB||q1,T=JA(t.fallbackContext)?t.fallbackContext:void 0,_=Qe(t.onWarn)?t.onWarn:xs,N=t,W=JA(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,$=JA(N.__numberFormatters)?N.__numberFormatters:new Map,eA=JA(N.__meta)?N.__meta:{};BB++;const gA={version:A,cid:BB,locale:e,fallbackLocale:n,messages:r,modifiers:a,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:p,fallbackFormat:B,unresolving:m,postTranslation:C,processor:E,warnHtmlMessage:S,escapeParameter:U,messageCompiler:v,messageResolver:k,localeFallbacker:F,fallbackContext:T,onWarn:_,__meta:eA};return gA.datetimeFormats=i,gA.numberFormats=s,gA.__datetimeFormatters=W,gA.__numberFormatters=$,process.env.NODE_ENV!=="production"&&(gA.__v_emitter=N.__v_emitter!=null?N.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&J1(gA,A,eA),gA}function da(t,A){return t instanceof RegExp?t.test(A):t}function mB(t,A){return t instanceof RegExp?t.test(A):t}function Bu(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"&&mB(n,A)&&s(Oi(bt.NOT_FOUND_KEY,{key:A,locale:e})),A}function Ls(t,A,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,A)}const aS=/<\/?[\w\s="/.':;#-\/]+>/,lS="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function cS(t,A){(qA(A.warnHtmlMessage)?A.warnHtmlMessage:!0)&&aS.test(t)&&xs(oa(lS,{source:t}))}const uS=t=>t;let wB=Object.create(null);function fS(t,A={}){{process.env.NODE_ENV!=="production"&&cS(t,A);const n=(A.onCacheKey||uS)(t),r=wB[n];if(r)return r;let i=!1;const s=A.onError||l1;A.onError=u=>{i=!0,s(u)};const{code:a}=S1(t,A),c=new Function(`return ${a}`)();return i?c:wB[n]=c}}let CB=hA.__EXTEND_POINT__;const mu=()=>++CB,Ln={INVALID_ARGUMENT:CB,INVALID_DATE_ARGUMENT:mu(),INVALID_ISO_DATE_ARGUMENT:mu(),__EXTEND_POINT__:mu()};function ki(t){return la(t,null,process.env.NODE_ENV!=="production"?{messages:dS}:void 0)}const dS={[Ln.INVALID_ARGUMENT]:"Invalid arguments",[Ln.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ln.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},yB=()=>"",yn=t=>Qe(t);function QB(t,...A){const{fallbackFormat:e,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=wu(...A),d=qA(u.missingWarn)?u.missingWarn:t.missingWarn,p=qA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,B=qA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,m=!!u.resolvedMessage,C=nA(u.default)||qA(u.default)?qA(u.default)?i?c:()=>c:u.default:e?i?c:()=>c:"",E=e||C!=="",S=nA(u.locale)?u.locale:t.locale;B&&hS(u);let[U,v,k]=m?[c,S,a[S]||{}]:EB(t,c,S,s,p,d),F=U,T=c;if(!m&&!(nA(F)||yn(F))&&E&&(F=C,T=F),!m&&(!(nA(F)||yn(F))||!nA(v)))return r?ca:c;if(process.env.NODE_ENV!=="production"&&nA(F)&&t.messageCompiler==null)return xs(`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 _=!1;const N=()=>{_=!0},W=yn(F)?F:FB(t,c,v,F,T,N);if(_)return F;const $=BS(t,v,k,u),eA=W1($),gA=pS(t,W,eA),wA=n?n(gA,c):gA;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const aA={timestamp:Date.now(),key:nA(c)?c:yn(F)?F.key:"",locale:v||(yn(F)?F.locale:""),format:nA(F)?F:yn(F)?F.source:"",message:wA};aA.meta=Oe({},t.__meta,iS()||{}),X1(aA)}return wA}function hS(t){le(t.list)?t.list=t.list.map(A=>nA(A)?jg(A):A):JA(t.named)&&Object.keys(t.named).forEach(A=>{nA(t.named[A])&&(t.named[A]=jg(t.named[A]))})}function EB(t,A,e,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,d=u(t,n,e);let p={},B,m=null,C=e,E=null;const S="translate";for(let U=0;U<d.length;U++){if(B=E=d[U],process.env.NODE_ENV!=="production"&&e!==B&&da(r,A)&&a(Oi(bt.FALLBACK_TO_TRANSLATE,{key:A,target:B})),process.env.NODE_ENV!=="production"&&e!==B){const _=t.__v_emitter;_&&_.emit("fallback",{type:S,key:A,from:C,to:E,groupId:`${S}:${A}`})}p=s[B]||{};let v=null,k,F;if(process.env.NODE_ENV!=="production"&&dr&&(v=window.performance.now(),k="intlify-message-resolve-start",F="intlify-message-resolve-end",Ut&&Ut(k)),(m=c(p,A))===null&&(m=p[A]),process.env.NODE_ENV!=="production"&&dr){const _=window.performance.now(),N=t.__v_emitter;N&&v&&m&&N.emit("message-resolve",{type:"message-resolve",key:A,message:m,time:_-v,groupId:`${S}:${A}`}),k&&F&&Ut&&qr&&(Ut(F),qr("intlify message resolve",k,F))}if(nA(m)||Qe(m))break;const T=Bu(t,A,B,i,S);T!==A&&(m=T),C=E}return[m,B,p]}function FB(t,A,e,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(yn(n)){const B=n;return B.locale=B.locale||e,B.key=B.key||A,B}if(s==null){const B=()=>n;return B.locale=e,B.key=A,B}let c=null,u,d;process.env.NODE_ENV!=="production"&&dr&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Ut&&Ut(u));const p=s(n,gS(t,e,r,n,a,i));if(process.env.NODE_ENV!=="production"&&dr){const B=window.performance.now(),m=t.__v_emitter;m&&c&&m.emit("message-compilation",{type:"message-compilation",message:n,time:B-c,groupId:`translate:${A}`}),u&&d&&Ut&&qr&&(Ut(d),qr("intlify message compilation",u,d))}return p.locale=e,p.key=A,p.source=n,p}function pS(t,A,e){let n=null,r,i;process.env.NODE_ENV!=="production"&&dr&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Ut&&Ut(r));const s=A(e);if(process.env.NODE_ENV!=="production"&&dr){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&&Ut&&qr&&(Ut(i),qr("intlify message evaluation",r,i))}return s}function wu(...t){const[A,e,n]=t,r={};if(!nA(A)&&!Je(A)&&!yn(A))throw ki(Ln.INVALID_ARGUMENT);const i=Je(A)?String(A):(yn(A),A);return Je(e)?r.plural=e:nA(e)?r.default=e:TA(e)&&!aa(e)?r.named=e:le(e)&&(r.list=e),Je(n)?r.plural=n:nA(n)?r.default=n:TA(n)&&Oe(r,n),[i,r]}function gS(t,A,e,n,r,i){return{warnHtmlMessage:r,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=`Message compilation error: ${s.message}`,c=s.location&&s1(n,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&u.emit("compile-error",{message:n,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${e}`}),console.error(c?`${a}
|
|
133
|
-
${c}`:a)}else throw s},onCacheKey:s=>e1(A,e,s)}}function BS(t,A,e,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:d}=t,B={locale:A,modifiers:r,pluralRules:i,messages:m=>{let C=s(e,m);if(C==null&&d){const[,,E]=EB(d,m,A,a,c,u);C=s(E,m)}if(nA(C)){let E=!1;const U=FB(t,m,A,C,m,()=>{E=!0});return E?yB:U}else return yn(C)?C:yB}};return t.processor&&(B.processor=t.processor),n.list&&(B.list=n.list),n.named&&(B.named=n.named),Je(n.plural)&&(B.pluralIndex=n.plural),B}const UB=typeof Intl<"u",bB={dateTimeFormat:UB&&typeof Intl.DateTimeFormat<"u",numberFormat:UB&&typeof Intl.NumberFormat<"u"};function vB(t,...A){const{datetimeFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!bB.dateTimeFormat)return i(Oi(bt.CANNOT_FORMAT_DATE)),fa;const[c,u,d,p]=Cu(...A),B=qA(d.missingWarn)?d.missingWarn:t.missingWarn,m=qA(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,C=!!d.part,E=nA(d.locale)?d.locale:t.locale,S=s(t,r,E);if(!nA(c)||c==="")return new Intl.DateTimeFormat(E,p).format(u);let U={},v,
|
|
132
|
+
*/const pr=[];pr[0]={w:[0],i:[3,0],["["]:[4],o:[7]},pr[1]={w:[1],["."]:[2],["["]:[4],o:[7]},pr[2]={w:[2],i:[3,0],[0]:[3,0]},pr[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},pr[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},pr[5]={["'"]:[4,0],o:8,l:[5,0]},pr[6]={['"']:[4,0],o:8,l:[6,0]};const T1=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function x1(t){return T1.test(t)}function H1(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 _1(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 L1(t){const A=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:x1(A)?H1(A):"*"+A}function O1(t){const A=[];let e=-1,n=0,r=0,i,s,a,c,u,d,p;const B=[];B[0]=()=>{s===void 0?s=a:s+=a},B[1]=()=>{s!==void 0&&(A.push(s),s=void 0)},B[2]=()=>{B[0](),r++},B[3]=()=>{if(r>0)r--,n=4,B[0]();else{if(r=0,s===void 0||(s=L1(s),s===!1))return!1;B[1]()}};function m(){const C=t[e+1];if(n===5&&C==="'"||n===6&&C==='"')return e++,a="\\"+C,B[0](),!0}for(;n!==null;)if(e++,i=t[e],!(i==="\\"&&m())){if(c=_1(i),p=pr[n],u=p[c]||p.l||8,u===8||(n=u[0],u[1]!==void 0&&(d=B[u[1]],d&&(a=i,d()===!1))))return;if(n===7)return A}}const iB=new Map;function M1(t,A){return JA(t)?t[A]:null}function D1(t,A){if(!JA(t))return null;let e=iB.get(A);if(e||(e=O1(A),e&&iB.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)return null;r=s,i++}return r}const k1=t=>t,N1=t=>"",R1="text",K1=t=>t.length===0?"":t.join(""),V1=i1;function sB(t,A){return t=Math.abs(t),A===2?t?t>1?1:0:1:t?Math.min(t,2):0}function P1(t){const A=Je(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Je(t.named.count)||Je(t.named.n))?Je(t.named.count)?t.named.count:Je(t.named.n)?t.named.n:A:A}function G1(t,A){A.count||(A.count=t),A.n||(A.n=t)}function W1(t={}){const A=t.locale,e=P1(t),n=JA(t.pluralRules)&&nA(A)&&Qe(t.pluralRules[A])?t.pluralRules[A]:sB,r=JA(t.pluralRules)&&nA(A)&&Qe(t.pluralRules[A])?sB:void 0,i=U=>U[n(e,U.length,r)],s=t.list||[],a=U=>s[U],c=t.named||{};Je(t.pluralIndex)&&G1(e,c);const u=U=>c[U];function d(U){const v=Qe(t.messages)?t.messages(U):JA(t.messages)?t.messages[U]:!1;return v||(t.parent?t.parent.message(U):N1)}const p=U=>t.modifiers?t.modifiers[U]:k1,B=TA(t.processor)&&Qe(t.processor.normalize)?t.processor.normalize:K1,m=TA(t.processor)&&Qe(t.processor.interpolate)?t.processor.interpolate:V1,C=TA(t.processor)&&nA(t.processor.type)?t.processor.type:R1,S={list:a,named:u,plural:i,linked:(U,...v)=>{const[M,F]=v;let T="text",_="";v.length===1?JA(M)?(_=M.modifier||_,T=M.type||T):nA(M)&&(_=M||_):v.length===2&&(nA(M)&&(_=M||_),nA(F)&&(T=F||T));let N=d(U)(S);return T==="vnode"&&le(N)&&_&&(N=N[0]),_?p(_)(N,T):N},message:d,type:C,interpolate:m,normalize:B};return S}let _s=null;function $1(t){_s=t}function J1(t,A,e){_s&&_s.emit(rB.I18nInit,{timestamp:Date.now(),i18n:t,version:A,meta:e})}const X1=Y1(rB.FunctionTranslate);function Y1(t){return A=>_s&&_s.emit(t,A)}const bt={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,__EXTEND_POINT__:7},z1={[bt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[bt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[bt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[bt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[bt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[bt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Oi(t,...A){return oa(z1[t],...A)}function q1(t,A,e){return[...new Set([e,...le(A)?A:JA(A)?Object.keys(A):nA(A)?[A]:[e]])]}function oB(t,A,e){const n=nA(e)?e:ua,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let s=[e];for(;le(s);)s=aB(i,s,A);const a=le(A)||!TA(A)?A:A.default?A.default:null;s=nA(a)?[a]:a,le(s)&&aB(i,s,!1),r.__localeChainCache.set(n,i)}return i}function aB(t,A,e){let n=!0;for(let r=0;r<A.length&&qA(n);r++){const i=A[r];nA(i)&&(n=Z1(t,A[r],e))}return n}function Z1(t,A,e){let n;const r=A.split("-");do{const i=r.join("-");n=j1(t,i,e),r.splice(-1,1)}while(r.length&&n===!0);return n}function j1(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),(le(e)||TA(e))&&e[r]&&(n=e[r])}return n}const AS="9.2.2",ca=-1,ua="en-US",fa="",lB=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function eS(){return{upper:(t,A)=>A==="text"&&nA(t)?t.toUpperCase():A==="vnode"&&JA(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,A)=>A==="text"&&nA(t)?t.toLowerCase():A==="vnode"&&JA(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,A)=>A==="text"&&nA(t)?lB(t):A==="vnode"&&JA(t)&&"__v_isVNode"in t?lB(t.children):t}}let cB;function tS(t){cB=t}let uB;function nS(t){uB=t}let fB;function rS(t){fB=t}let dB=null;const hB=t=>{dB=t},iS=()=>dB;let pB=null;const gB=t=>{pB=t},sS=()=>pB;let BB=0;function oS(t={}){const A=nA(t.version)?t.version:AS,e=nA(t.locale)?t.locale:ua,n=le(t.fallbackLocale)||TA(t.fallbackLocale)||nA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=TA(t.messages)?t.messages:{[e]:{}},i=TA(t.datetimeFormats)?t.datetimeFormats:{[e]:{}},s=TA(t.numberFormats)?t.numberFormats:{[e]:{}},a=Oe({},t.modifiers||{},eS()),c=t.pluralRules||{},u=Qe(t.missing)?t.missing:null,d=qA(t.missingWarn)||_i(t.missingWarn)?t.missingWarn:!0,p=qA(t.fallbackWarn)||_i(t.fallbackWarn)?t.fallbackWarn:!0,B=!!t.fallbackFormat,m=!!t.unresolving,C=Qe(t.postTranslation)?t.postTranslation:null,E=TA(t.processor)?t.processor:null,S=qA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,U=!!t.escapeParameter,v=Qe(t.messageCompiler)?t.messageCompiler:cB,M=Qe(t.messageResolver)?t.messageResolver:uB||M1,F=Qe(t.localeFallbacker)?t.localeFallbacker:fB||q1,T=JA(t.fallbackContext)?t.fallbackContext:void 0,_=Qe(t.onWarn)?t.onWarn:xs,N=t,W=JA(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,$=JA(N.__numberFormatters)?N.__numberFormatters:new Map,eA=JA(N.__meta)?N.__meta:{};BB++;const gA={version:A,cid:BB,locale:e,fallbackLocale:n,messages:r,modifiers:a,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:p,fallbackFormat:B,unresolving:m,postTranslation:C,processor:E,warnHtmlMessage:S,escapeParameter:U,messageCompiler:v,messageResolver:M,localeFallbacker:F,fallbackContext:T,onWarn:_,__meta:eA};return gA.datetimeFormats=i,gA.numberFormats=s,gA.__datetimeFormatters=W,gA.__numberFormatters=$,process.env.NODE_ENV!=="production"&&(gA.__v_emitter=N.__v_emitter!=null?N.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&J1(gA,A,eA),gA}function da(t,A){return t instanceof RegExp?t.test(A):t}function mB(t,A){return t instanceof RegExp?t.test(A):t}function Bu(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"&&mB(n,A)&&s(Oi(bt.NOT_FOUND_KEY,{key:A,locale:e})),A}function Ls(t,A,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,A)}const aS=/<\/?[\w\s="/.':;#-\/]+>/,lS="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function cS(t,A){(qA(A.warnHtmlMessage)?A.warnHtmlMessage:!0)&&aS.test(t)&&xs(oa(lS,{source:t}))}const uS=t=>t;let wB=Object.create(null);function fS(t,A={}){{process.env.NODE_ENV!=="production"&&cS(t,A);const n=(A.onCacheKey||uS)(t),r=wB[n];if(r)return r;let i=!1;const s=A.onError||l1;A.onError=u=>{i=!0,s(u)};const{code:a}=S1(t,A),c=new Function(`return ${a}`)();return i?c:wB[n]=c}}let CB=hA.__EXTEND_POINT__;const mu=()=>++CB,Ln={INVALID_ARGUMENT:CB,INVALID_DATE_ARGUMENT:mu(),INVALID_ISO_DATE_ARGUMENT:mu(),__EXTEND_POINT__:mu()};function Mi(t){return la(t,null,process.env.NODE_ENV!=="production"?{messages:dS}:void 0)}const dS={[Ln.INVALID_ARGUMENT]:"Invalid arguments",[Ln.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ln.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},yB=()=>"",yn=t=>Qe(t);function QB(t,...A){const{fallbackFormat:e,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,u]=wu(...A),d=qA(u.missingWarn)?u.missingWarn:t.missingWarn,p=qA(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,B=qA(u.escapeParameter)?u.escapeParameter:t.escapeParameter,m=!!u.resolvedMessage,C=nA(u.default)||qA(u.default)?qA(u.default)?i?c:()=>c:u.default:e?i?c:()=>c:"",E=e||C!=="",S=nA(u.locale)?u.locale:t.locale;B&&hS(u);let[U,v,M]=m?[c,S,a[S]||{}]:EB(t,c,S,s,p,d),F=U,T=c;if(!m&&!(nA(F)||yn(F))&&E&&(F=C,T=F),!m&&(!(nA(F)||yn(F))||!nA(v)))return r?ca:c;if(process.env.NODE_ENV!=="production"&&nA(F)&&t.messageCompiler==null)return xs(`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 _=!1;const N=()=>{_=!0},W=yn(F)?F:FB(t,c,v,F,T,N);if(_)return F;const $=BS(t,v,M,u),eA=W1($),gA=pS(t,W,eA),wA=n?n(gA,c):gA;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const aA={timestamp:Date.now(),key:nA(c)?c:yn(F)?F.key:"",locale:v||(yn(F)?F.locale:""),format:nA(F)?F:yn(F)?F.source:"",message:wA};aA.meta=Oe({},t.__meta,iS()||{}),X1(aA)}return wA}function hS(t){le(t.list)?t.list=t.list.map(A=>nA(A)?jg(A):A):JA(t.named)&&Object.keys(t.named).forEach(A=>{nA(t.named[A])&&(t.named[A]=jg(t.named[A]))})}function EB(t,A,e,n,r,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:u}=t,d=u(t,n,e);let p={},B,m=null,C=e,E=null;const S="translate";for(let U=0;U<d.length;U++){if(B=E=d[U],process.env.NODE_ENV!=="production"&&e!==B&&da(r,A)&&a(Oi(bt.FALLBACK_TO_TRANSLATE,{key:A,target:B})),process.env.NODE_ENV!=="production"&&e!==B){const _=t.__v_emitter;_&&_.emit("fallback",{type:S,key:A,from:C,to:E,groupId:`${S}:${A}`})}p=s[B]||{};let v=null,M,F;if(process.env.NODE_ENV!=="production"&&dr&&(v=window.performance.now(),M="intlify-message-resolve-start",F="intlify-message-resolve-end",Ut&&Ut(M)),(m=c(p,A))===null&&(m=p[A]),process.env.NODE_ENV!=="production"&&dr){const _=window.performance.now(),N=t.__v_emitter;N&&v&&m&&N.emit("message-resolve",{type:"message-resolve",key:A,message:m,time:_-v,groupId:`${S}:${A}`}),M&&F&&Ut&&qr&&(Ut(F),qr("intlify message resolve",M,F))}if(nA(m)||Qe(m))break;const T=Bu(t,A,B,i,S);T!==A&&(m=T),C=E}return[m,B,p]}function FB(t,A,e,n,r,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(yn(n)){const B=n;return B.locale=B.locale||e,B.key=B.key||A,B}if(s==null){const B=()=>n;return B.locale=e,B.key=A,B}let c=null,u,d;process.env.NODE_ENV!=="production"&&dr&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Ut&&Ut(u));const p=s(n,gS(t,e,r,n,a,i));if(process.env.NODE_ENV!=="production"&&dr){const B=window.performance.now(),m=t.__v_emitter;m&&c&&m.emit("message-compilation",{type:"message-compilation",message:n,time:B-c,groupId:`translate:${A}`}),u&&d&&Ut&&qr&&(Ut(d),qr("intlify message compilation",u,d))}return p.locale=e,p.key=A,p.source=n,p}function pS(t,A,e){let n=null,r,i;process.env.NODE_ENV!=="production"&&dr&&(n=window.performance.now(),r="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Ut&&Ut(r));const s=A(e);if(process.env.NODE_ENV!=="production"&&dr){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&&Ut&&qr&&(Ut(i),qr("intlify message evaluation",r,i))}return s}function wu(...t){const[A,e,n]=t,r={};if(!nA(A)&&!Je(A)&&!yn(A))throw Mi(Ln.INVALID_ARGUMENT);const i=Je(A)?String(A):(yn(A),A);return Je(e)?r.plural=e:nA(e)?r.default=e:TA(e)&&!aa(e)?r.named=e:le(e)&&(r.list=e),Je(n)?r.plural=n:nA(n)?r.default=n:TA(n)&&Oe(r,n),[i,r]}function gS(t,A,e,n,r,i){return{warnHtmlMessage:r,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=`Message compilation error: ${s.message}`,c=s.location&&s1(n,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&u.emit("compile-error",{message:n,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${e}`}),console.error(c?`${a}
|
|
133
|
+
${c}`:a)}else throw s},onCacheKey:s=>e1(A,e,s)}}function BS(t,A,e,n){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:d}=t,B={locale:A,modifiers:r,pluralRules:i,messages:m=>{let C=s(e,m);if(C==null&&d){const[,,E]=EB(d,m,A,a,c,u);C=s(E,m)}if(nA(C)){let E=!1;const U=FB(t,m,A,C,m,()=>{E=!0});return E?yB:U}else return yn(C)?C:yB}};return t.processor&&(B.processor=t.processor),n.list&&(B.list=n.list),n.named&&(B.named=n.named),Je(n.plural)&&(B.pluralIndex=n.plural),B}const UB=typeof Intl<"u",bB={dateTimeFormat:UB&&typeof Intl.DateTimeFormat<"u",numberFormat:UB&&typeof Intl.NumberFormat<"u"};function vB(t,...A){const{datetimeFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!bB.dateTimeFormat)return i(Oi(bt.CANNOT_FORMAT_DATE)),fa;const[c,u,d,p]=Cu(...A),B=qA(d.missingWarn)?d.missingWarn:t.missingWarn,m=qA(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,C=!!d.part,E=nA(d.locale)?d.locale:t.locale,S=s(t,r,E);if(!nA(c)||c==="")return new Intl.DateTimeFormat(E,p).format(u);let U={},v,M=null,F=E,T=null;const _="datetime format";for(let $=0;$<S.length;$++){if(v=T=S[$],process.env.NODE_ENV!=="production"&&E!==v&&da(m,c)&&i(Oi(bt.FALLBACK_TO_DATE_FORMAT,{key:c,target:v})),process.env.NODE_ENV!=="production"&&E!==v){const eA=t.__v_emitter;eA&&eA.emit("fallback",{type:_,key:c,from:F,to:T,groupId:`${_}:${c}`})}if(U=e[v]||{},M=U[c],TA(M))break;Bu(t,c,v,B,_),F=T}if(!TA(M)||!nA(v))return n?ca:c;let N=`${v}__${c}`;aa(p)||(N=`${N}__${JSON.stringify(p)}`);let W=a.get(N);return W||(W=new Intl.DateTimeFormat(v,Oe({},M,p)),a.set(N,W)),C?W.formatToParts(u):W.format(u)}const IB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Cu(...t){const[A,e,n,r]=t,i={};let s={},a;if(nA(A)){const c=A.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Mi(Ln.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 Mi(Ln.INVALID_ISO_DATE_ARGUMENT)}}else if(n1(A)){if(isNaN(A.getTime()))throw Mi(Ln.INVALID_DATE_ARGUMENT);a=A}else if(Je(A))a=A;else throw Mi(Ln.INVALID_ARGUMENT);return nA(e)?i.key=e:TA(e)&&Object.keys(e).forEach(c=>{IB.includes(c)?s[c]=e[c]:i[c]=e[c]}),nA(n)?i.locale=n:TA(n)&&(s=n),TA(r)&&(s=r),[i.key||"",a,i,s]}function SB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function TB(t,...A){const{numberFormats:e,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t;if(process.env.NODE_ENV!=="production"&&!bB.numberFormat)return i(Oi(bt.CANNOT_FORMAT_NUMBER)),fa;const[c,u,d,p]=yu(...A),B=qA(d.missingWarn)?d.missingWarn:t.missingWarn,m=qA(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,C=!!d.part,E=nA(d.locale)?d.locale:t.locale,S=s(t,r,E);if(!nA(c)||c==="")return new Intl.NumberFormat(E,p).format(u);let U={},v,M=null,F=E,T=null;const _="number format";for(let $=0;$<S.length;$++){if(v=T=S[$],process.env.NODE_ENV!=="production"&&E!==v&&da(m,c)&&i(Oi(bt.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:v})),process.env.NODE_ENV!=="production"&&E!==v){const eA=t.__v_emitter;eA&&eA.emit("fallback",{type:_,key:c,from:F,to:T,groupId:`${_}:${c}`})}if(U=e[v]||{},M=U[c],TA(M))break;Bu(t,c,v,B,_),F=T}if(!TA(M)||!nA(v))return n?ca:c;let N=`${v}__${c}`;aa(p)||(N=`${N}__${JSON.stringify(p)}`);let W=a.get(N);return W||(W=new Intl.NumberFormat(v,Oe({},M,p)),a.set(N,W)),C?W.formatToParts(u):W.format(u)}const xB=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function yu(...t){const[A,e,n,r]=t,i={};let s={};if(!Je(A))throw Mi(Ln.INVALID_ARGUMENT);const a=A;return nA(e)?i.key=e:TA(e)&&Object.keys(e).forEach(c=>{xB.includes(c)?s[c]=e[c]:i[c]=e[c]}),nA(n)?i.locale=n:TA(n)&&(s=n),TA(r)&&(s=r),[i.key||"",a,i,s]}function HB(t,A,e){const n=t;for(const r in e){const i=`${A}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hs().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
|
134
134
|
* vue-i18n v9.2.2
|
|
135
135
|
* (c) 2022 kazuya kawaguchi
|
|
136
136
|
* Released under the MIT License.
|
|
137
|
-
*/const mS="9.2.2";function wS(){let t=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(t=!0,Hs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(t=!0,Hs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hs().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&t&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let _B=bt.__EXTEND_POINT__;const Mi=()=>++_B,On={FALLBACK_TO_ROOT:_B,NOT_SUPPORTED_PRESERVE:Mi(),NOT_SUPPORTED_FORMATTER:Mi(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Mi(),NOT_SUPPORTED_GET_CHOICE_INDEX:Mi(),COMPONENT_NAME_LEGACY_COMPATIBLE:Mi(),NOT_FOUND_PARENT_SCOPE:Mi()},CS={[On.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[On.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[On.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[On.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[On.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[On.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[On.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function LB(t,...A){return oa(CS[t],...A)}let OB=hA.__EXTEND_POINT__;const pt=()=>++OB,ee={UNEXPECTED_RETURN_TYPE:OB,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSLALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSLALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function kn(t,...A){return la(t,null,process.env.NODE_ENV!=="production"?{messages:yS,args:A}:void 0)}const yS={[ee.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ee.INVALID_ARGUMENT]:"Invalid argument",[ee.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ee.NOT_INSLALLED]:"Need to install with `app.use` function",[ee.UNEXPECTED_ERROR]:"Unexpected error",[ee.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ee.REQUIRED_VALUE]:"Required in value: {0}",[ee.INVALID_VALUE]:"Invalid value",[ee.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ee.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ee.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ee.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ee.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",[ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Qu=Hn("__transrateVNode"),Eu=Hn("__datetimeParts"),Fu=Hn("__numberParts"),Uu=Hn("__enableEmitter"),bu=Hn("__disableEmitter"),QS=Hn("__setPluralRules");Hn("__intlifyMeta");const kB=Hn("__injectWithOption");function vu(t){if(!JA(t))return t;for(const A in t)if(du(t,A))if(!A.includes("."))JA(t[A])&&vu(t[A]);else{const e=A.split("."),n=e.length-1;let r=t;for(let i=0;i<n;i++)e[i]in r||(r[e[i]]={}),r=r[e[i]];r[e[n]]=t[A],delete t[A],JA(r[e[n]])&&vu(r[e[n]])}return t}function Iu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:le(n)?{}:{[t]:{}};if(le(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Os(u,s[c])):Os(u,s)}else nA(a)&&Os(JSON.parse(a),s)}),r==null&&i)for(const a in s)du(s,a)&&vu(s[a]);return s}const ha=t=>!JA(t)||le(t);function Os(t,A){if(ha(t)||ha(A))throw kn(ee.INVALID_VALUE);for(const e in t)du(t,e)&&(ha(t[e])||ha(A[e])?A[e]=t[e]:Os(t[e],A[e]))}function MB(t){return t.type}function ES(t,A,e){let n=JA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Iu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(JA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(JA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function DB(t){return h.createVNode(h.Text,null,t,0)}const NB="__INTLIFY_META__";let RB=0;function KB(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const FS=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=MB(t)[NB])?{[NB]:A}:null};function US(t={},A){const{__root:e}=t,n=e===void 0;let r=qA(t.inheritLocale)?t.inheritLocale:!0;const i=h.ref(e&&r?e.locale.value:nA(t.locale)?t.locale:ua),s=h.ref(e&&r?e.fallbackLocale.value:nA(t.fallbackLocale)||le(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),a=h.ref(Iu(i.value,t)),c=h.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=h.ref(TA(t.numberFormats)?t.numberFormats:{[i.value]:{}});let d=e?e.missingWarn:qA(t.missingWarn)||_i(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:qA(t.fallbackWarn)||_i(t.fallbackWarn)?t.fallbackWarn:!0,B=e?e.fallbackRoot:qA(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,C=Qe(t.missing)?t.missing:null,E=Qe(t.missing)?KB(t.missing):null,S=Qe(t.postTranslation)?t.postTranslation:null,U=e?e.warnHtmlMessage:qA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter;const k=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let F=t.pluralRules||e&&e.pluralRules,T;T=(()=>{n&&gB(null);const V={version:mS,locale:i.value,fallbackLocale:s.value,messages:a.value,modifiers:k,pluralRules:F,missing:E===null?void 0:E,missingWarn:d,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:U,escapeParameter:v,messageResolver:t.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=c.value,V.numberFormats=u.value,V.__datetimeFormatters=TA(T)?T.__datetimeFormatters:void 0,V.__numberFormatters=TA(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=TA(T)?T.__v_emitter:void 0);const Y=oS(V);return n&&gB(Y),Y})(),Ls(T,i.value,s.value);function N(){return[i.value,s.value,a.value,c.value,u.value]}const W=h.computed({get:()=>i.value,set:V=>{i.value=V,T.locale=i.value}}),$=h.computed({get:()=>s.value,set:V=>{s.value=V,T.fallbackLocale=s.value,Ls(T,i.value,V)}}),eA=h.computed(()=>a.value),gA=h.computed(()=>c.value),wA=h.computed(()=>u.value);function aA(){return Qe(S)?S:null}function HA(V){S=V,T.postTranslation=V}function WA(){return C}function bA(V){V!==null&&(E=KB(V)),C=V,T.missing=E}function vA(V,Y){return V!=="translate"||!Y.resolvedMessage}const mA=(V,Y,oe,Fe,an,St)=>{N();let Gt;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{hB(FS()),n||(T.fallbackContext=e?sS():void 0),Gt=V(T)}finally{hB(null),n||(T.fallbackContext=void 0)}else Gt=V(T);if(Je(Gt)&&Gt===ca){const[Tt,ni]=Y();if(process.env.NODE_ENV!=="production"&&e&&nA(Tt)&&vA(oe,ni)&&(B&&(da(p,Tt)||mB(d,Tt))&&xs(LB(On.FALLBACK_TO_ROOT,{key:Tt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ur}=T;Ur&&B&&Ur.emit("fallback",{type:oe,key:Tt,to:"global",groupId:`${oe}:${Tt}`})}return e&&B?Fe(e):an(Tt)}else{if(St(Gt))return Gt;throw kn(ee.UNEXPECTED_RETURN_TYPE)}};function re(...V){return mA(Y=>Reflect.apply(QB,null,[Y,...V]),()=>wu(...V),"translate",Y=>Reflect.apply(Y.t,Y,[...V]),Y=>Y,Y=>nA(Y))}function ZA(...V){const[Y,oe,Fe]=V;if(Fe&&!JA(Fe))throw kn(ee.INVALID_ARGUMENT);return re(Y,oe,Oe({resolvedMessage:!0},Fe||{}))}function $A(...V){return mA(Y=>Reflect.apply(vB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Reflect.apply(Y.d,Y,[...V]),()=>fa,Y=>nA(Y))}function Be(...V){return mA(Y=>Reflect.apply(TB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Reflect.apply(Y.n,Y,[...V]),()=>fa,Y=>nA(Y))}function me(V){return V.map(Y=>nA(Y)||Je(Y)||qA(Y)?DB(String(Y)):Y)}const jA={normalize:me,interpolate:V=>V,type:"vnode"};function fe(...V){return mA(Y=>{let oe;const Fe=Y;try{Fe.processor=jA,oe=Reflect.apply(QB,null,[Fe,...V])}finally{Fe.processor=null}return oe},()=>wu(...V),"translate",Y=>Y[Qu](...V),Y=>[DB(Y)],Y=>le(Y))}function it(...V){return mA(Y=>Reflect.apply(TB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Y[Fu](...V),()=>[],Y=>nA(Y)||le(Y))}function st(...V){return mA(Y=>Reflect.apply(vB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Y[Eu](...V),()=>[],Y=>nA(Y)||le(Y))}function ze(V){F=V,T.pluralRules=F}function De(V,Y){const oe=nA(Y)?Y:i.value,Fe=H(oe);return T.messageResolver(Fe,V)!==null}function ot(V){let Y=null;const oe=oB(T,s.value,i.value);for(let Fe=0;Fe<oe.length;Fe++){const an=a.value[oe[Fe]]||{},St=T.messageResolver(an,V);if(St!=null){Y=St;break}}return Y}function It(V){const Y=ot(V);return Y??(e?e.tm(V)||{}:{})}function H(V){return a.value[V]||{}}function b(V,Y){a.value[V]=Y,T.messages=a.value}function D(V,Y){a.value[V]=a.value[V]||{},Os(Y,a.value[V]),T.messages=a.value}function q(V){return c.value[V]||{}}function oA(V,Y){c.value[V]=Y,T.datetimeFormats=c.value,SB(T,V,Y)}function IA(V,Y){c.value[V]=Oe(c.value[V]||{},Y),T.datetimeFormats=c.value,SB(T,V,Y)}function at(V){return u.value[V]||{}}function Ne(V,Y){u.value[V]=Y,T.numberFormats=u.value,HB(T,V,Y)}function Re(V,Y){u.value[V]=Oe(u.value[V]||{},Y),T.numberFormats=u.value,HB(T,V,Y)}RB++,e&&dr&&(h.watch(e.locale,V=>{r&&(i.value=V,T.locale=V,Ls(T,i.value,s.value))}),h.watch(e.fallbackLocale,V=>{r&&(s.value=V,T.fallbackLocale=V,Ls(T,i.value,s.value))}));const KA={id:RB,locale:W,fallbackLocale:$,get inheritLocale(){return r},set inheritLocale(V){r=V,V&&e&&(i.value=e.locale.value,s.value=e.fallbackLocale.value,Ls(T,i.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:eA,get modifiers(){return k},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(V){d=V,T.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(V){p=V,T.fallbackWarn=p},get fallbackRoot(){return B},set fallbackRoot(V){B=V},get fallbackFormat(){return m},set fallbackFormat(V){m=V,T.fallbackFormat=m},get warnHtmlMessage(){return U},set warnHtmlMessage(V){U=V,T.warnHtmlMessage=V},get escapeParameter(){return v},set escapeParameter(V){v=V,T.escapeParameter=V},t:re,getLocaleMessage:H,setLocaleMessage:b,mergeLocaleMessage:D,getPostTranslationHandler:aA,setPostTranslationHandler:HA,getMissingHandler:WA,setMissingHandler:bA,[QS]:ze};return KA.datetimeFormats=gA,KA.numberFormats=wA,KA.rt=ZA,KA.te=De,KA.tm=It,KA.d=$A,KA.n=Be,KA.getDateTimeFormat=q,KA.setDateTimeFormat=oA,KA.mergeDateTimeFormat=IA,KA.getNumberFormat=at,KA.setNumberFormat=Ne,KA.mergeNumberFormat=Re,KA[kB]=t.__injectWithOption,KA[Qu]=fe,KA[Eu]=st,KA[Fu]=it,process.env.NODE_ENV!=="production"&&(KA[Uu]=V=>{T.__v_emitter=V},KA[bu]=()=>{T.__v_emitter=void 0}),KA}const Su={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function bS({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>n=[...n,...le(r.children)?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function VB(t){return h.Fragment}Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Je(t)||!isNaN(t)}},Su);function vS(t){return le(t)&&!nA(t[0])}function PB(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:JA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((B,m)=>e.includes(m)?Oe({},B,{[m]:t.format[m]}):B,{}));const c=n(t.value,s,a);let u=[s.key];le(c)?u=c.map((B,m)=>{const C=r[B.type],E=C?C({[B.type]:B.value,index:m,parts:c}):[B.value];return vS(E)&&(E[0].key=`${B.type}-${m}`),E}):nA(c)&&(u=[c]);const d=Oe({},i),p=nA(t.tag)||JA(t.tag)?t.tag:VB();return h.h(p,d,u)}}Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},Su),Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Su);function GB(t,A){}const IS=Hn("global-vue-i18n");function pa(t={}){const A=h.getCurrentInstance();if(A==null)throw kn(ee.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw kn(ee.NOT_INSLALLED);const e=SS(A),n=xS(e),r=MB(A),i=TS(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw kn(ee.NOT_AVAILABLE_IN_LEGACY_MODE);return LS(A,i,n,t)}if(i==="global")return ES(n,t,r),n;if(i==="parent"){let c=HS(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&xs(LB(On.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=Oe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=US(c),_S(s,A,a),s.__setInstance(A,a)}return a}function SS(t){{const A=h.inject(t.isCE?IS:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw kn(t.isCE?ee.NOT_INSLALLED_WITH_PROVIDE:ee.UNEXPECTED_ERROR);return A}}function TS(t,A){return aa(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function xS(t){return t.mode==="composition"?t.global:t.global.__composer}function HS(t,A,e=!1){let n=null;const r=A.root;let i=A.parent;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[kB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function _S(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=o1();const r=e;r[Uu]&&r[Uu](n),n.on("*",GB)}},A),h.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__){n&&n.off("*",GB);const r=e;r[bu]&&r[bu](),delete A.vnode.el.__VUE_I18N__}t.__deleteInstance(A)},A)}function LS(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw kn(ee.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=qA(n.inheritLocale)?n.inheritLocale:!0,a=h.ref(r&&s?e.locale.value:nA(n.locale)?n.locale:ua),c=h.ref(r&&s?e.fallbackLocale.value:nA(n.fallbackLocale)||le(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Iu(a.value,n)),d=h.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),B=r?e.missingWarn:qA(n.missingWarn)||_i(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:qA(n.fallbackWarn)||_i(n.fallbackWarn)?n.fallbackWarn:!0,C=r?e.fallbackRoot:qA(n.fallbackRoot)?n.fallbackRoot:!0,E=!!n.fallbackFormat,S=Qe(n.missing)?n.missing:null,U=Qe(n.postTranslation)?n.postTranslation:null,v=r?e.warnHtmlMessage:qA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,k=!!n.escapeParameter,F=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},T=n.pluralRules||r&&e.pluralRules;function _(){return[a.value,c.value,u.value,d.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:b=>{i.value&&(i.value.locale.value=b),a.value=b}}),W=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),c.value=b}}),$=h.computed(()=>i.value?i.value.messages.value:u.value),eA=h.computed(()=>d.value),gA=h.computed(()=>p.value);function wA(){return i.value?i.value.getPostTranslationHandler():U}function aA(b){i.value&&i.value.setPostTranslationHandler(b)}function HA(){return i.value?i.value.getMissingHandler():S}function WA(b){i.value&&i.value.setMissingHandler(b)}function bA(b){return _(),b()}function vA(...b){return i.value?bA(()=>Reflect.apply(i.value.t,null,[...b])):bA(()=>"")}function mA(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function re(...b){return i.value?bA(()=>Reflect.apply(i.value.d,null,[...b])):bA(()=>"")}function ZA(...b){return i.value?bA(()=>Reflect.apply(i.value.n,null,[...b])):bA(()=>"")}function $A(b){return i.value?i.value.tm(b):{}}function Be(b,D){return i.value?i.value.te(b,D):!1}function me(b){return i.value?i.value.getLocaleMessage(b):{}}function Te(b,D){i.value&&(i.value.setLocaleMessage(b,D),u.value[b]=D)}function jA(b,D){i.value&&i.value.mergeLocaleMessage(b,D)}function fe(b){return i.value?i.value.getDateTimeFormat(b):{}}function it(b,D){i.value&&(i.value.setDateTimeFormat(b,D),d.value[b]=D)}function st(b,D){i.value&&i.value.mergeDateTimeFormat(b,D)}function ze(b){return i.value?i.value.getNumberFormat(b):{}}function De(b,D){i.value&&(i.value.setNumberFormat(b,D),p.value[b]=D)}function ot(b,D){i.value&&i.value.mergeNumberFormat(b,D)}const It={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:W,messages:$,datetimeFormats:eA,numberFormats:gA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:F},get pluralRules(){return i.value?i.value.pluralRules:T},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:B},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:C},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:E},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:v},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:k},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:vA,getPostTranslationHandler:wA,setPostTranslationHandler:aA,getMissingHandler:HA,setMissingHandler:WA,rt:mA,d:re,n:ZA,tm:$A,te:Be,getLocaleMessage:me,setLocaleMessage:Te,mergeLocaleMessage:jA,getDateTimeFormat:fe,setDateTimeFormat:it,mergeDateTimeFormat:st,getNumberFormat:ze,setNumberFormat:De,mergeNumberFormat:ot};function H(b){b.locale.value=a.value,b.fallbackLocale.value=c.value,Object.keys(u.value).forEach(D=>{b.mergeLocaleMessage(D,u.value[D])}),Object.keys(d.value).forEach(D=>{b.mergeDateTimeFormat(D,d.value[D])}),Object.keys(p.value).forEach(D=>{b.mergeNumberFormat(D,p.value[D])}),b.escapeParameter=k,b.fallbackFormat=E,b.fallbackRoot=C,b.fallbackWarn=m,b.missingWarn=B,b.warnHtmlMessage=v}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw kn(ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=b.locale.value,c.value=b.fallbackLocale.value,u.value=b.messages.value,d.value=b.datetimeFormats.value,p.value=b.numberFormats.value):r&&H(b)}),It}if(tS(fS),nS(M1),rS(oB),wS(),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Hs();t.__INTLIFY__=!0,$1(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const OS={class:"input input-dropdown"},kS={class:"dropdown"},MS={class:"caption"},DS=["innerHTML"],NS={class:"caption__text"},RS={class:"d-block text-truncate"},KS={class:"dropdown-menu"},VS={class:"form-check"},PS=["value","id","name","label","required","disabled"],GS=["value","id","name","label","required","disabled"],WS=["for"],$S=h.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},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 e=t,{t:n}=pa(),r=h.computed({get(){return e.multiple&&!e.modelValue?[]:e.modelValue},set(a){A("update:modelValue",a)}}),i=h.computed(()=>e.options.map(a=>(a=typeof a=="string"?{text:a,value:a}:a,{...a,active:e.modelValue&&e.modelValue.includes(a.value)}))),s=h.computed(()=>e.modelValue&&e.modelValue.length?Array.isArray(e.modelValue)&&e.modelValue.length?i.value.reduce((a,c)=>e.modelValue.includes(c.value)?`${a}${a?", ":""}${c.text}`:a,""):i.value.reduce((a,c)=>c.value===e.modelValue?`${a}${c.text}`:a,""):e.placeholder||`${n("common.select")}`);return(a,c)=>{const u=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",OS,[h.createElementVNode("div",kS,[h.createVNode(u,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:h.unref(s),class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:h.withCtx(()=>[h.createElementVNode("span",MS,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,DS)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",NS,[h.createElementVNode("span",RS,h.toDisplayString(t.toggleCaption||h.unref(s)),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",KS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(i),(d,p)=>(h.openBlock(),h.createElementBlock("li",{key:`${d.value}-${p}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",d.active&&"active"])},[h.createElementVNode("div",VS,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__if`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,PS)),[[h.vModelCheckbox,h.unref(r)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":c[1]||(c[1]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__else`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,GS)),[[h.vModelRadio,h.unref(r)]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation();",for:`${t.name}-${d.value}-${p}`},h.toDisplayString(d.text),9,WS)])],2)]))),128))])])])}}});var ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ms={},JS={get exports(){return Ms},set exports(t){Ms=t}};/**
|
|
137
|
+
*/const mS="9.2.2";function wS(){let t=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(t=!0,Hs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(t=!0,Hs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hs().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&t&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let _B=bt.__EXTEND_POINT__;const Di=()=>++_B,On={FALLBACK_TO_ROOT:_B,NOT_SUPPORTED_PRESERVE:Di(),NOT_SUPPORTED_FORMATTER:Di(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Di(),NOT_SUPPORTED_GET_CHOICE_INDEX:Di(),COMPONENT_NAME_LEGACY_COMPATIBLE:Di(),NOT_FOUND_PARENT_SCOPE:Di()},CS={[On.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[On.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[On.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[On.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[On.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[On.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[On.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function LB(t,...A){return oa(CS[t],...A)}let OB=hA.__EXTEND_POINT__;const pt=()=>++OB,ee={UNEXPECTED_RETURN_TYPE:OB,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSLALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSLALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function Mn(t,...A){return la(t,null,process.env.NODE_ENV!=="production"?{messages:yS,args:A}:void 0)}const yS={[ee.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ee.INVALID_ARGUMENT]:"Invalid argument",[ee.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ee.NOT_INSLALLED]:"Need to install with `app.use` function",[ee.UNEXPECTED_ERROR]:"Unexpected error",[ee.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ee.REQUIRED_VALUE]:"Required in value: {0}",[ee.INVALID_VALUE]:"Invalid value",[ee.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ee.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ee.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ee.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ee.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",[ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Qu=Hn("__transrateVNode"),Eu=Hn("__datetimeParts"),Fu=Hn("__numberParts"),Uu=Hn("__enableEmitter"),bu=Hn("__disableEmitter"),QS=Hn("__setPluralRules");Hn("__intlifyMeta");const MB=Hn("__injectWithOption");function vu(t){if(!JA(t))return t;for(const A in t)if(du(t,A))if(!A.includes("."))JA(t[A])&&vu(t[A]);else{const e=A.split("."),n=e.length-1;let r=t;for(let i=0;i<n;i++)e[i]in r||(r[e[i]]={}),r=r[e[i]];r[e[n]]=t[A],delete t[A],JA(r[e[n]])&&vu(r[e[n]])}return t}function Iu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:le(n)?{}:{[t]:{}};if(le(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Os(u,s[c])):Os(u,s)}else nA(a)&&Os(JSON.parse(a),s)}),r==null&&i)for(const a in s)du(s,a)&&vu(s[a]);return s}const ha=t=>!JA(t)||le(t);function Os(t,A){if(ha(t)||ha(A))throw Mn(ee.INVALID_VALUE);for(const e in t)du(t,e)&&(ha(t[e])||ha(A[e])?A[e]=t[e]:Os(t[e],A[e]))}function DB(t){return t.type}function ES(t,A,e){let n=JA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Iu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(JA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(JA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function kB(t){return h.createVNode(h.Text,null,t,0)}const NB="__INTLIFY_META__";let RB=0;function KB(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const FS=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=DB(t)[NB])?{[NB]:A}:null};function US(t={},A){const{__root:e}=t,n=e===void 0;let r=qA(t.inheritLocale)?t.inheritLocale:!0;const i=h.ref(e&&r?e.locale.value:nA(t.locale)?t.locale:ua),s=h.ref(e&&r?e.fallbackLocale.value:nA(t.fallbackLocale)||le(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),a=h.ref(Iu(i.value,t)),c=h.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=h.ref(TA(t.numberFormats)?t.numberFormats:{[i.value]:{}});let d=e?e.missingWarn:qA(t.missingWarn)||_i(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:qA(t.fallbackWarn)||_i(t.fallbackWarn)?t.fallbackWarn:!0,B=e?e.fallbackRoot:qA(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,C=Qe(t.missing)?t.missing:null,E=Qe(t.missing)?KB(t.missing):null,S=Qe(t.postTranslation)?t.postTranslation:null,U=e?e.warnHtmlMessage:qA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter;const M=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let F=t.pluralRules||e&&e.pluralRules,T;T=(()=>{n&&gB(null);const V={version:mS,locale:i.value,fallbackLocale:s.value,messages:a.value,modifiers:M,pluralRules:F,missing:E===null?void 0:E,missingWarn:d,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:U,escapeParameter:v,messageResolver:t.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=c.value,V.numberFormats=u.value,V.__datetimeFormatters=TA(T)?T.__datetimeFormatters:void 0,V.__numberFormatters=TA(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=TA(T)?T.__v_emitter:void 0);const Y=oS(V);return n&&gB(Y),Y})(),Ls(T,i.value,s.value);function N(){return[i.value,s.value,a.value,c.value,u.value]}const W=h.computed({get:()=>i.value,set:V=>{i.value=V,T.locale=i.value}}),$=h.computed({get:()=>s.value,set:V=>{s.value=V,T.fallbackLocale=s.value,Ls(T,i.value,V)}}),eA=h.computed(()=>a.value),gA=h.computed(()=>c.value),wA=h.computed(()=>u.value);function aA(){return Qe(S)?S:null}function HA(V){S=V,T.postTranslation=V}function WA(){return C}function bA(V){V!==null&&(E=KB(V)),C=V,T.missing=E}function vA(V,Y){return V!=="translate"||!Y.resolvedMessage}const mA=(V,Y,oe,Fe,an,St)=>{N();let Gt;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{hB(FS()),n||(T.fallbackContext=e?sS():void 0),Gt=V(T)}finally{hB(null),n||(T.fallbackContext=void 0)}else Gt=V(T);if(Je(Gt)&&Gt===ca){const[Tt,ni]=Y();if(process.env.NODE_ENV!=="production"&&e&&nA(Tt)&&vA(oe,ni)&&(B&&(da(p,Tt)||mB(d,Tt))&&xs(LB(On.FALLBACK_TO_ROOT,{key:Tt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ur}=T;Ur&&B&&Ur.emit("fallback",{type:oe,key:Tt,to:"global",groupId:`${oe}:${Tt}`})}return e&&B?Fe(e):an(Tt)}else{if(St(Gt))return Gt;throw Mn(ee.UNEXPECTED_RETURN_TYPE)}};function re(...V){return mA(Y=>Reflect.apply(QB,null,[Y,...V]),()=>wu(...V),"translate",Y=>Reflect.apply(Y.t,Y,[...V]),Y=>Y,Y=>nA(Y))}function ZA(...V){const[Y,oe,Fe]=V;if(Fe&&!JA(Fe))throw Mn(ee.INVALID_ARGUMENT);return re(Y,oe,Oe({resolvedMessage:!0},Fe||{}))}function $A(...V){return mA(Y=>Reflect.apply(vB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Reflect.apply(Y.d,Y,[...V]),()=>fa,Y=>nA(Y))}function Be(...V){return mA(Y=>Reflect.apply(TB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Reflect.apply(Y.n,Y,[...V]),()=>fa,Y=>nA(Y))}function me(V){return V.map(Y=>nA(Y)||Je(Y)||qA(Y)?kB(String(Y)):Y)}const jA={normalize:me,interpolate:V=>V,type:"vnode"};function fe(...V){return mA(Y=>{let oe;const Fe=Y;try{Fe.processor=jA,oe=Reflect.apply(QB,null,[Fe,...V])}finally{Fe.processor=null}return oe},()=>wu(...V),"translate",Y=>Y[Qu](...V),Y=>[kB(Y)],Y=>le(Y))}function it(...V){return mA(Y=>Reflect.apply(TB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Y[Fu](...V),()=>[],Y=>nA(Y)||le(Y))}function st(...V){return mA(Y=>Reflect.apply(vB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Y[Eu](...V),()=>[],Y=>nA(Y)||le(Y))}function ze(V){F=V,T.pluralRules=F}function ke(V,Y){const oe=nA(Y)?Y:i.value,Fe=H(oe);return T.messageResolver(Fe,V)!==null}function ot(V){let Y=null;const oe=oB(T,s.value,i.value);for(let Fe=0;Fe<oe.length;Fe++){const an=a.value[oe[Fe]]||{},St=T.messageResolver(an,V);if(St!=null){Y=St;break}}return Y}function It(V){const Y=ot(V);return Y??(e?e.tm(V)||{}:{})}function H(V){return a.value[V]||{}}function b(V,Y){a.value[V]=Y,T.messages=a.value}function k(V,Y){a.value[V]=a.value[V]||{},Os(Y,a.value[V]),T.messages=a.value}function q(V){return c.value[V]||{}}function oA(V,Y){c.value[V]=Y,T.datetimeFormats=c.value,SB(T,V,Y)}function IA(V,Y){c.value[V]=Oe(c.value[V]||{},Y),T.datetimeFormats=c.value,SB(T,V,Y)}function at(V){return u.value[V]||{}}function Ne(V,Y){u.value[V]=Y,T.numberFormats=u.value,HB(T,V,Y)}function Re(V,Y){u.value[V]=Oe(u.value[V]||{},Y),T.numberFormats=u.value,HB(T,V,Y)}RB++,e&&dr&&(h.watch(e.locale,V=>{r&&(i.value=V,T.locale=V,Ls(T,i.value,s.value))}),h.watch(e.fallbackLocale,V=>{r&&(s.value=V,T.fallbackLocale=V,Ls(T,i.value,s.value))}));const KA={id:RB,locale:W,fallbackLocale:$,get inheritLocale(){return r},set inheritLocale(V){r=V,V&&e&&(i.value=e.locale.value,s.value=e.fallbackLocale.value,Ls(T,i.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:eA,get modifiers(){return M},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(V){d=V,T.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(V){p=V,T.fallbackWarn=p},get fallbackRoot(){return B},set fallbackRoot(V){B=V},get fallbackFormat(){return m},set fallbackFormat(V){m=V,T.fallbackFormat=m},get warnHtmlMessage(){return U},set warnHtmlMessage(V){U=V,T.warnHtmlMessage=V},get escapeParameter(){return v},set escapeParameter(V){v=V,T.escapeParameter=V},t:re,getLocaleMessage:H,setLocaleMessage:b,mergeLocaleMessage:k,getPostTranslationHandler:aA,setPostTranslationHandler:HA,getMissingHandler:WA,setMissingHandler:bA,[QS]:ze};return KA.datetimeFormats=gA,KA.numberFormats=wA,KA.rt=ZA,KA.te=ke,KA.tm=It,KA.d=$A,KA.n=Be,KA.getDateTimeFormat=q,KA.setDateTimeFormat=oA,KA.mergeDateTimeFormat=IA,KA.getNumberFormat=at,KA.setNumberFormat=Ne,KA.mergeNumberFormat=Re,KA[MB]=t.__injectWithOption,KA[Qu]=fe,KA[Eu]=st,KA[Fu]=it,process.env.NODE_ENV!=="production"&&(KA[Uu]=V=>{T.__v_emitter=V},KA[bu]=()=>{T.__v_emitter=void 0}),KA}const Su={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function bS({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>n=[...n,...le(r.children)?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function VB(t){return h.Fragment}Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Je(t)||!isNaN(t)}},Su);function vS(t){return le(t)&&!nA(t[0])}function PB(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:JA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((B,m)=>e.includes(m)?Oe({},B,{[m]:t.format[m]}):B,{}));const c=n(t.value,s,a);let u=[s.key];le(c)?u=c.map((B,m)=>{const C=r[B.type],E=C?C({[B.type]:B.value,index:m,parts:c}):[B.value];return vS(E)&&(E[0].key=`${B.type}-${m}`),E}):nA(c)&&(u=[c]);const d=Oe({},i),p=nA(t.tag)||JA(t.tag)?t.tag:VB();return h.h(p,d,u)}}Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},Su),Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Su);function GB(t,A){}const IS=Hn("global-vue-i18n");function pa(t={}){const A=h.getCurrentInstance();if(A==null)throw Mn(ee.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Mn(ee.NOT_INSLALLED);const e=SS(A),n=xS(e),r=DB(A),i=TS(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Mn(ee.NOT_AVAILABLE_IN_LEGACY_MODE);return LS(A,i,n,t)}if(i==="global")return ES(n,t,r),n;if(i==="parent"){let c=HS(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&xs(LB(On.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=Oe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=US(c),_S(s,A,a),s.__setInstance(A,a)}return a}function SS(t){{const A=h.inject(t.isCE?IS:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Mn(t.isCE?ee.NOT_INSLALLED_WITH_PROVIDE:ee.UNEXPECTED_ERROR);return A}}function TS(t,A){return aa(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function xS(t){return t.mode==="composition"?t.global:t.global.__composer}function HS(t,A,e=!1){let n=null;const r=A.root;let i=A.parent;for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,e&&n&&!n[MB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function _S(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=o1();const r=e;r[Uu]&&r[Uu](n),n.on("*",GB)}},A),h.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__){n&&n.off("*",GB);const r=e;r[bu]&&r[bu](),delete A.vnode.el.__VUE_I18N__}t.__deleteInstance(A)},A)}function LS(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Mn(ee.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=qA(n.inheritLocale)?n.inheritLocale:!0,a=h.ref(r&&s?e.locale.value:nA(n.locale)?n.locale:ua),c=h.ref(r&&s?e.fallbackLocale.value:nA(n.fallbackLocale)||le(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Iu(a.value,n)),d=h.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),B=r?e.missingWarn:qA(n.missingWarn)||_i(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:qA(n.fallbackWarn)||_i(n.fallbackWarn)?n.fallbackWarn:!0,C=r?e.fallbackRoot:qA(n.fallbackRoot)?n.fallbackRoot:!0,E=!!n.fallbackFormat,S=Qe(n.missing)?n.missing:null,U=Qe(n.postTranslation)?n.postTranslation:null,v=r?e.warnHtmlMessage:qA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,F=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},T=n.pluralRules||r&&e.pluralRules;function _(){return[a.value,c.value,u.value,d.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:b=>{i.value&&(i.value.locale.value=b),a.value=b}}),W=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),c.value=b}}),$=h.computed(()=>i.value?i.value.messages.value:u.value),eA=h.computed(()=>d.value),gA=h.computed(()=>p.value);function wA(){return i.value?i.value.getPostTranslationHandler():U}function aA(b){i.value&&i.value.setPostTranslationHandler(b)}function HA(){return i.value?i.value.getMissingHandler():S}function WA(b){i.value&&i.value.setMissingHandler(b)}function bA(b){return _(),b()}function vA(...b){return i.value?bA(()=>Reflect.apply(i.value.t,null,[...b])):bA(()=>"")}function mA(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function re(...b){return i.value?bA(()=>Reflect.apply(i.value.d,null,[...b])):bA(()=>"")}function ZA(...b){return i.value?bA(()=>Reflect.apply(i.value.n,null,[...b])):bA(()=>"")}function $A(b){return i.value?i.value.tm(b):{}}function Be(b,k){return i.value?i.value.te(b,k):!1}function me(b){return i.value?i.value.getLocaleMessage(b):{}}function Te(b,k){i.value&&(i.value.setLocaleMessage(b,k),u.value[b]=k)}function jA(b,k){i.value&&i.value.mergeLocaleMessage(b,k)}function fe(b){return i.value?i.value.getDateTimeFormat(b):{}}function it(b,k){i.value&&(i.value.setDateTimeFormat(b,k),d.value[b]=k)}function st(b,k){i.value&&i.value.mergeDateTimeFormat(b,k)}function ze(b){return i.value?i.value.getNumberFormat(b):{}}function ke(b,k){i.value&&(i.value.setNumberFormat(b,k),p.value[b]=k)}function ot(b,k){i.value&&i.value.mergeNumberFormat(b,k)}const It={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:W,messages:$,datetimeFormats:eA,numberFormats:gA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:F},get pluralRules(){return i.value?i.value.pluralRules:T},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:B},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:C},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:E},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:v},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:vA,getPostTranslationHandler:wA,setPostTranslationHandler:aA,getMissingHandler:HA,setMissingHandler:WA,rt:mA,d:re,n:ZA,tm:$A,te:Be,getLocaleMessage:me,setLocaleMessage:Te,mergeLocaleMessage:jA,getDateTimeFormat:fe,setDateTimeFormat:it,mergeDateTimeFormat:st,getNumberFormat:ze,setNumberFormat:ke,mergeNumberFormat:ot};function H(b){b.locale.value=a.value,b.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{b.mergeLocaleMessage(k,u.value[k])}),Object.keys(d.value).forEach(k=>{b.mergeDateTimeFormat(k,d.value[k])}),Object.keys(p.value).forEach(k=>{b.mergeNumberFormat(k,p.value[k])}),b.escapeParameter=M,b.fallbackFormat=E,b.fallbackRoot=C,b.fallbackWarn=m,b.missingWarn=B,b.warnHtmlMessage=v}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Mn(ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=b.locale.value,c.value=b.fallbackLocale.value,u.value=b.messages.value,d.value=b.datetimeFormats.value,p.value=b.numberFormats.value):r&&H(b)}),It}if(tS(fS),nS(D1),rS(oB),wS(),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Hs();t.__INTLIFY__=!0,$1(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const OS={class:"input input-dropdown"},MS={class:"dropdown"},DS={class:"caption"},kS=["innerHTML"],NS={class:"caption__text"},RS={class:"d-block text-truncate"},KS={class:"dropdown-menu"},VS={class:"form-check"},PS=["value","id","name","label","required","disabled"],GS=["value","id","name","label","required","disabled"],WS=["for"],$S=h.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},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 e=t,{t:n}=pa(),r=h.computed({get(){return e.multiple&&!e.modelValue?[]:e.modelValue},set(a){A("update:modelValue",a)}}),i=h.computed(()=>e.options.map(a=>(a=typeof a=="string"?{text:a,value:a}:a,{...a,active:e.modelValue&&e.modelValue.includes(a.value)}))),s=h.computed(()=>e.modelValue&&e.modelValue.length?Array.isArray(e.modelValue)&&e.modelValue.length?i.value.reduce((a,c)=>e.modelValue.includes(c.value)?`${a}${a?", ":""}${c.text}`:a,""):i.value.reduce((a,c)=>c.value===e.modelValue?`${a}${c.text}`:a,""):e.placeholder||`${n("common.select")}`);return(a,c)=>{const u=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",OS,[h.createElementVNode("div",MS,[h.createVNode(u,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:h.unref(s),class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:h.withCtx(()=>[h.createElementVNode("span",DS,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,kS)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",NS,[h.createElementVNode("span",RS,h.toDisplayString(t.toggleCaption||h.unref(s)),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",KS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(i),(d,p)=>(h.openBlock(),h.createElementBlock("li",{key:`${d.value}-${p}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",d.active&&"active"])},[h.createElementVNode("div",VS,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__if`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,PS)),[[h.vModelCheckbox,h.unref(r)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":c[1]||(c[1]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__else`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,GS)),[[h.vModelRadio,h.unref(r)]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation();",for:`${t.name}-${d.value}-${p}`},h.toDisplayString(d.text),9,WS)])],2)]))),128))])])])}}});var Ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ds={},JS={get exports(){return Ds},set exports(t){Ds=t}};/**
|
|
138
138
|
* @license
|
|
139
139
|
* Lodash <https://lodash.com/>
|
|
140
140
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
141
141
|
* Released under MIT license <https://lodash.com/license>
|
|
142
142
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
143
143
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
144
|
-
*/(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,d="__lodash_placeholder__",p=1,B=2,m=4,C=1,E=2,S=1,U=2,v=4,k=8,F=16,T=32,_=64,N=128,W=256,$=512,eA=30,gA="...",wA=800,aA=16,HA=1,WA=2,bA=3,vA=1/0,mA=9007199254740991,re=17976931348623157e292,ZA=0/0,$A=4294967295,Be=$A-1,me=$A>>>1,Te=[["ary",N],["bind",S],["bindKey",U],["curry",k],["curryRight",F],["flip",$],["partial",T],["partialRight",_],["rearg",W]],jA="[object Arguments]",fe="[object Array]",it="[object AsyncFunction]",st="[object Boolean]",ze="[object Date]",De="[object DOMException]",ot="[object Error]",It="[object Function]",H="[object GeneratorFunction]",b="[object Map]",D="[object Number]",q="[object Null]",oA="[object Object]",IA="[object Promise]",at="[object Proxy]",Ne="[object RegExp]",Re="[object Set]",KA="[object String]",V="[object Symbol]",Y="[object Undefined]",oe="[object WeakMap]",Fe="[object WeakSet]",an="[object ArrayBuffer]",St="[object DataView]",Gt="[object Float32Array]",Tt="[object Float64Array]",ni="[object Int8Array]",Ur="[object Int16Array]",io="[object Int32Array]",R="[object Uint8Array]",rA="[object Uint8ClampedArray]",lA="[object Uint16Array]",MA="[object Uint32Array]",LA=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,Bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kn=/&(?:amp|lt|gt|quot|#39);/g,so=/[&<>"']/g,Vn=RegExp(Kn.source),oo=RegExp(so.source),zi=/<%-([\s\S]+?)%>/g,br=/<%([\s\S]+?)%>/g,ll=/<%=([\s\S]+?)%>/g,ao=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qi=/^\w*$/,zM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,qM=RegExp(_f.source),Lf=/^\s+/,ZM=/\s/,jM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,AD=/\{\n\/\* \[wrapped with (.+)\] \*/,eD=/,? & /,tD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nD=/[()=,{}\[\]\/\s]/,rD=/\\(\\)?/g,iD=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eC=/\w*$/,sD=/^[-+]0x[0-9a-f]+$/i,oD=/^0b[01]+$/i,aD=/^\[object .+?Constructor\]$/,lD=/^0o[0-7]+$/i,cD=/^(?:0|[1-9]\d*)$/,uD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cl=/($^)/,fD=/['\n\r\u2028\u2029\\]/g,ul="\\ud800-\\udfff",dD="\\u0300-\\u036f",hD="\\ufe20-\\ufe2f",pD="\\u20d0-\\u20ff",tC=dD+hD+pD,nC="\\u2700-\\u27bf",rC="a-z\\xdf-\\xf6\\xf8-\\xff",gD="\\xac\\xb1\\xd7\\xf7",BD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mD="\\u2000-\\u206f",wD=" \\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",oC=gD+BD+mD+wD,Of="['’]",CD="["+ul+"]",aC="["+oC+"]",fl="["+tC+"]",lC="\\d+",yD="["+nC+"]",cC="["+rC+"]",uC="[^"+ul+oC+lC+nC+rC+iC+"]",kf="\\ud83c[\\udffb-\\udfff]",QD="(?:"+fl+"|"+kf+")",fC="[^"+ul+"]",Mf="(?:\\ud83c[\\udde6-\\uddff]){2}",Df="[\\ud800-\\udbff][\\udc00-\\udfff]",Zi="["+iC+"]",dC="\\u200d",hC="(?:"+cC+"|"+uC+")",ED="(?:"+Zi+"|"+uC+")",pC="(?:"+Of+"(?:d|ll|m|re|s|t|ve))?",gC="(?:"+Of+"(?:D|LL|M|RE|S|T|VE))?",BC=QD+"?",mC="["+sC+"]?",FD="(?:"+dC+"(?:"+[fC,Mf,Df].join("|")+")"+mC+BC+")*",UD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wC=mC+BC+FD,vD="(?:"+[yD,Mf,Df].join("|")+")"+wC,ID="(?:"+[fC+fl+"?",fl,Mf,Df,CD].join("|")+")",SD=RegExp(Of,"g"),TD=RegExp(fl,"g"),Nf=RegExp(kf+"(?="+kf+")|"+ID+wC,"g"),xD=RegExp([Zi+"?"+cC+"+"+pC+"(?="+[aC,Zi,"$"].join("|")+")",ED+"+"+gC+"(?="+[aC,Zi+hC,"$"].join("|")+")",Zi+"?"+hC+"+"+pC,Zi+"+"+gC,bD,UD,lC,vD].join("|"),"g"),HD=RegExp("["+dC+ul+tC+sC+"]"),_D=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,LD=["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"],OD=-1,Ae={};Ae[Gt]=Ae[Tt]=Ae[ni]=Ae[Ur]=Ae[io]=Ae[R]=Ae[rA]=Ae[lA]=Ae[MA]=!0,Ae[jA]=Ae[fe]=Ae[an]=Ae[st]=Ae[St]=Ae[ze]=Ae[ot]=Ae[It]=Ae[b]=Ae[D]=Ae[oA]=Ae[Ne]=Ae[Re]=Ae[KA]=Ae[oe]=!1;var zA={};zA[jA]=zA[fe]=zA[an]=zA[St]=zA[st]=zA[ze]=zA[Gt]=zA[Tt]=zA[ni]=zA[Ur]=zA[io]=zA[b]=zA[D]=zA[oA]=zA[Ne]=zA[Re]=zA[KA]=zA[V]=zA[R]=zA[rA]=zA[lA]=zA[MA]=!0,zA[ot]=zA[It]=zA[oe]=!1;var kD={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë: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Ű:"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"},MD={"&":"&","<":"<",">":">",'"':""","'":"'"},DD={"&":"&","<":"<",">":">",""":'"',"'":"'"},ND={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},RD=parseFloat,KD=parseInt,CC=typeof ks=="object"&&ks&&ks.Object===Object&&ks,VD=typeof self=="object"&&self&&self.Object===Object&&self,Ve=CC||VD||Function("return this")(),Rf=A&&!A.nodeType&&A,ri=Rf&&!0&&t&&!t.nodeType&&t,yC=ri&&ri.exports===Rf,Kf=yC&&CC.process,Wt=function(){try{var L=ri&&ri.require&&ri.require("util").types;return L||Kf&&Kf.binding&&Kf.binding("util")}catch{}}(),QC=Wt&&Wt.isArrayBuffer,EC=Wt&&Wt.isDate,FC=Wt&&Wt.isMap,UC=Wt&&Wt.isRegExp,bC=Wt&&Wt.isSet,vC=Wt&&Wt.isTypedArray;function xt(L,K,M){switch(M.length){case 0:return L.call(K);case 1:return L.call(K,M[0]);case 2:return L.call(K,M[0],M[1]);case 3:return L.call(K,M[0],M[1],M[2])}return L.apply(K,M)}function PD(L,K,M,tA){for(var pA=-1,DA=L==null?0:L.length;++pA<DA;){var Ue=L[pA];K(tA,Ue,M(Ue),L)}return tA}function $t(L,K){for(var M=-1,tA=L==null?0:L.length;++M<tA&&K(L[M],M,L)!==!1;);return L}function GD(L,K){for(var M=L==null?0:L.length;M--&&K(L[M],M,L)!==!1;);return L}function IC(L,K){for(var M=-1,tA=L==null?0:L.length;++M<tA;)if(!K(L[M],M,L))return!1;return!0}function vr(L,K){for(var M=-1,tA=L==null?0:L.length,pA=0,DA=[];++M<tA;){var Ue=L[M];K(Ue,M,L)&&(DA[pA++]=Ue)}return DA}function dl(L,K){var M=L==null?0:L.length;return!!M&&ji(L,K,0)>-1}function Vf(L,K,M){for(var tA=-1,pA=L==null?0:L.length;++tA<pA;)if(M(K,L[tA]))return!0;return!1}function ne(L,K){for(var M=-1,tA=L==null?0:L.length,pA=Array(tA);++M<tA;)pA[M]=K(L[M],M,L);return pA}function Ir(L,K){for(var M=-1,tA=K.length,pA=L.length;++M<tA;)L[pA+M]=K[M];return L}function Pf(L,K,M,tA){var pA=-1,DA=L==null?0:L.length;for(tA&&DA&&(M=L[++pA]);++pA<DA;)M=K(M,L[pA],pA,L);return M}function WD(L,K,M,tA){var pA=L==null?0:L.length;for(tA&&pA&&(M=L[--pA]);pA--;)M=K(M,L[pA],pA,L);return M}function Gf(L,K){for(var M=-1,tA=L==null?0:L.length;++M<tA;)if(K(L[M],M,L))return!0;return!1}var $D=Wf("length");function JD(L){return L.split("")}function XD(L){return L.match(tD)||[]}function SC(L,K,M){var tA;return M(L,function(pA,DA,Ue){if(K(pA,DA,Ue))return tA=DA,!1}),tA}function hl(L,K,M,tA){for(var pA=L.length,DA=M+(tA?1:-1);tA?DA--:++DA<pA;)if(K(L[DA],DA,L))return DA;return-1}function ji(L,K,M){return K===K?sN(L,K,M):hl(L,TC,M)}function YD(L,K,M,tA){for(var pA=M-1,DA=L.length;++pA<DA;)if(tA(L[pA],K))return pA;return-1}function TC(L){return L!==L}function xC(L,K){var M=L==null?0:L.length;return M?Jf(L,K)/M:ZA}function Wf(L){return function(K){return K==null?e:K[L]}}function $f(L){return function(K){return L==null?e:L[K]}}function HC(L,K,M,tA,pA){return pA(L,function(DA,Ue,XA){M=tA?(tA=!1,DA):K(M,DA,Ue,XA)}),M}function zD(L,K){var M=L.length;for(L.sort(K);M--;)L[M]=L[M].value;return L}function Jf(L,K){for(var M,tA=-1,pA=L.length;++tA<pA;){var DA=K(L[tA]);DA!==e&&(M=M===e?DA:M+DA)}return M}function Xf(L,K){for(var M=-1,tA=Array(L);++M<L;)tA[M]=K(M);return tA}function qD(L,K){return ne(K,function(M){return[M,L[M]]})}function _C(L){return L&&L.slice(0,MC(L)+1).replace(Lf,"")}function Ht(L){return function(K){return L(K)}}function Yf(L,K){return ne(K,function(M){return L[M]})}function lo(L,K){return L.has(K)}function LC(L,K){for(var M=-1,tA=L.length;++M<tA&&ji(K,L[M],0)>-1;);return M}function OC(L,K){for(var M=L.length;M--&&ji(K,L[M],0)>-1;);return M}function ZD(L,K){for(var M=L.length,tA=0;M--;)L[M]===K&&++tA;return tA}var jD=$f(kD),AN=$f(MD);function eN(L){return"\\"+ND[L]}function tN(L,K){return L==null?e:L[K]}function As(L){return HD.test(L)}function nN(L){return _D.test(L)}function rN(L){for(var K,M=[];!(K=L.next()).done;)M.push(K.value);return M}function zf(L){var K=-1,M=Array(L.size);return L.forEach(function(tA,pA){M[++K]=[pA,tA]}),M}function kC(L,K){return function(M){return L(K(M))}}function Sr(L,K){for(var M=-1,tA=L.length,pA=0,DA=[];++M<tA;){var Ue=L[M];(Ue===K||Ue===d)&&(L[M]=d,DA[pA++]=M)}return DA}function pl(L){var K=-1,M=Array(L.size);return L.forEach(function(tA){M[++K]=tA}),M}function iN(L){var K=-1,M=Array(L.size);return L.forEach(function(tA){M[++K]=[tA,tA]}),M}function sN(L,K,M){for(var tA=M-1,pA=L.length;++tA<pA;)if(L[tA]===K)return tA;return-1}function oN(L,K,M){for(var tA=M+1;tA--;)if(L[tA]===K)return tA;return tA}function es(L){return As(L)?lN(L):$D(L)}function ln(L){return As(L)?cN(L):JD(L)}function MC(L){for(var K=L.length;K--&&ZM.test(L.charAt(K)););return K}var aN=$f(DD);function lN(L){for(var K=Nf.lastIndex=0;Nf.test(L);)++K;return K}function cN(L){return L.match(Nf)||[]}function uN(L){return L.match(xD)||[]}var fN=function L(K){K=K==null?Ve:ts.defaults(Ve.Object(),K,ts.pick(Ve,LD));var M=K.Array,tA=K.Date,pA=K.Error,DA=K.Function,Ue=K.Math,XA=K.Object,qf=K.RegExp,dN=K.String,Jt=K.TypeError,gl=M.prototype,hN=DA.prototype,ns=XA.prototype,Bl=K["__core-js_shared__"],ml=hN.toString,VA=ns.hasOwnProperty,pN=0,DC=function(){var o=/[^.]+$/.exec(Bl&&Bl.keys&&Bl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),wl=ns.toString,gN=ml.call(XA),BN=Ve._,mN=qf("^"+ml.call(VA).replace(_f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cl=yC?K.Buffer:e,Tr=K.Symbol,yl=K.Uint8Array,NC=Cl?Cl.allocUnsafe:e,Ql=kC(XA.getPrototypeOf,XA),RC=XA.create,KC=ns.propertyIsEnumerable,El=gl.splice,VC=Tr?Tr.isConcatSpreadable:e,co=Tr?Tr.iterator:e,ii=Tr?Tr.toStringTag:e,Fl=function(){try{var o=ci(XA,"defineProperty");return o({},"",{}),o}catch{}}(),wN=K.clearTimeout!==Ve.clearTimeout&&K.clearTimeout,CN=tA&&tA.now!==Ve.Date.now&&tA.now,yN=K.setTimeout!==Ve.setTimeout&&K.setTimeout,Ul=Ue.ceil,bl=Ue.floor,Zf=XA.getOwnPropertySymbols,QN=Cl?Cl.isBuffer:e,PC=K.isFinite,EN=gl.join,FN=kC(XA.keys,XA),be=Ue.max,qe=Ue.min,UN=tA.now,bN=K.parseInt,GC=Ue.random,vN=gl.reverse,jf=ci(K,"DataView"),uo=ci(K,"Map"),Ad=ci(K,"Promise"),rs=ci(K,"Set"),fo=ci(K,"WeakMap"),ho=ci(XA,"create"),vl=fo&&new fo,is={},IN=ui(jf),SN=ui(uo),TN=ui(Ad),xN=ui(rs),HN=ui(fo),Il=Tr?Tr.prototype:e,po=Il?Il.valueOf:e,WC=Il?Il.toString:e;function y(o){if(ae(o)&&!BA(o)&&!(o instanceof _A)){if(o instanceof Xt)return o;if(VA.call(o,"__wrapped__"))return $0(o)}return new Xt(o)}var ss=function(){function o(){}return function(l){if(!ie(l))return{};if(RC)return RC(l);o.prototype=l;var f=new o;return o.prototype=e,f}}();function Sl(){}function Xt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}y.templateSettings={escape:zi,evaluate:br,interpolate:ll,variable:"",imports:{_:y}},y.prototype=Sl.prototype,y.prototype.constructor=y,Xt.prototype=ss(Sl.prototype),Xt.prototype.constructor=Xt;function _A(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$A,this.__views__=[]}function _N(){var o=new _A(this.__wrapped__);return o.__actions__=mt(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=mt(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=mt(this.__views__),o}function LN(){if(this.__filtered__){var o=new _A(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function ON(){var o=this.__wrapped__.value(),l=this.__dir__,f=BA(o),g=l<0,w=f?o.length:0,Q=JR(0,w,this.__views__),I=Q.start,x=Q.end,O=x-I,P=g?x:I-1,G=this.__iteratees__,J=G.length,z=0,sA=qe(O,this.__takeCount__);if(!f||!g&&w==O&&sA==O)return p0(o,this.__actions__);var fA=[];A:for(;O--&&z<sA;){P+=l;for(var EA=-1,dA=o[P];++EA<J;){var SA=G[EA],OA=SA.iteratee,Ot=SA.type,ut=OA(dA);if(Ot==WA)dA=ut;else if(!ut){if(Ot==HA)continue A;break A}}fA[z++]=dA}return fA}_A.prototype=ss(Sl.prototype),_A.prototype.constructor=_A;function si(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var g=o[l];this.set(g[0],g[1])}}function kN(){this.__data__=ho?ho(null):{},this.size=0}function MN(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function DN(o){var l=this.__data__;if(ho){var f=l[o];return f===c?e:f}return VA.call(l,o)?l[o]:e}function NN(o){var l=this.__data__;return ho?l[o]!==e:VA.call(l,o)}function RN(o,l){var f=this.__data__;return this.size+=this.has(o)?0:1,f[o]=ho&&l===e?c:l,this}si.prototype.clear=kN,si.prototype.delete=MN,si.prototype.get=DN,si.prototype.has=NN,si.prototype.set=RN;function Pn(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var g=o[l];this.set(g[0],g[1])}}function KN(){this.__data__=[],this.size=0}function VN(o){var l=this.__data__,f=Tl(l,o);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():El.call(l,f,1),--this.size,!0}function PN(o){var l=this.__data__,f=Tl(l,o);return f<0?e:l[f][1]}function GN(o){return Tl(this.__data__,o)>-1}function WN(o,l){var f=this.__data__,g=Tl(f,o);return g<0?(++this.size,f.push([o,l])):f[g][1]=l,this}Pn.prototype.clear=KN,Pn.prototype.delete=VN,Pn.prototype.get=PN,Pn.prototype.has=GN,Pn.prototype.set=WN;function Gn(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var g=o[l];this.set(g[0],g[1])}}function $N(){this.size=0,this.__data__={hash:new si,map:new(uo||Pn),string:new si}}function JN(o){var l=Vl(this,o).delete(o);return this.size-=l?1:0,l}function XN(o){return Vl(this,o).get(o)}function YN(o){return Vl(this,o).has(o)}function zN(o,l){var f=Vl(this,o),g=f.size;return f.set(o,l),this.size+=f.size==g?0:1,this}Gn.prototype.clear=$N,Gn.prototype.delete=JN,Gn.prototype.get=XN,Gn.prototype.has=YN,Gn.prototype.set=zN;function oi(o){var l=-1,f=o==null?0:o.length;for(this.__data__=new Gn;++l<f;)this.add(o[l])}function qN(o){return this.__data__.set(o,c),this}function ZN(o){return this.__data__.has(o)}oi.prototype.add=oi.prototype.push=qN,oi.prototype.has=ZN;function cn(o){var l=this.__data__=new Pn(o);this.size=l.size}function jN(){this.__data__=new Pn,this.size=0}function AR(o){var l=this.__data__,f=l.delete(o);return this.size=l.size,f}function eR(o){return this.__data__.get(o)}function tR(o){return this.__data__.has(o)}function nR(o,l){var f=this.__data__;if(f instanceof Pn){var g=f.__data__;if(!uo||g.length<r-1)return g.push([o,l]),this.size=++f.size,this;f=this.__data__=new Gn(g)}return f.set(o,l),this.size=f.size,this}cn.prototype.clear=jN,cn.prototype.delete=AR,cn.prototype.get=eR,cn.prototype.has=tR,cn.prototype.set=nR;function $C(o,l){var f=BA(o),g=!f&&fi(o),w=!f&&!g&&Or(o),Q=!f&&!g&&!w&&us(o),I=f||g||w||Q,x=I?Xf(o.length,dN):[],O=x.length;for(var P in o)(l||VA.call(o,P))&&!(I&&(P=="length"||w&&(P=="offset"||P=="parent")||Q&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Xn(P,O)))&&x.push(P);return x}function JC(o){var l=o.length;return l?o[ud(0,l-1)]:e}function rR(o,l){return Pl(mt(o),ai(l,0,o.length))}function iR(o){return Pl(mt(o))}function ed(o,l,f){(f!==e&&!un(o[l],f)||f===e&&!(l in o))&&Wn(o,l,f)}function go(o,l,f){var g=o[l];(!(VA.call(o,l)&&un(g,f))||f===e&&!(l in o))&&Wn(o,l,f)}function Tl(o,l){for(var f=o.length;f--;)if(un(o[f][0],l))return f;return-1}function sR(o,l,f,g){return xr(o,function(w,Q,I){l(g,w,f(w),I)}),g}function XC(o,l){return o&&bn(l,xe(l),o)}function oR(o,l){return o&&bn(l,Ct(l),o)}function Wn(o,l,f){l=="__proto__"&&Fl?Fl(o,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):o[l]=f}function td(o,l){for(var f=-1,g=l.length,w=M(g),Q=o==null;++f<g;)w[f]=Q?e:kd(o,l[f]);return w}function ai(o,l,f){return o===o&&(f!==e&&(o=o<=f?o:f),l!==e&&(o=o>=l?o:l)),o}function Yt(o,l,f,g,w,Q){var I,x=l&p,O=l&B,P=l&m;if(f&&(I=w?f(o,g,w,Q):f(o)),I!==e)return I;if(!ie(o))return o;var G=BA(o);if(G){if(I=YR(o),!x)return mt(o,I)}else{var J=Ze(o),z=J==It||J==H;if(Or(o))return m0(o,x);if(J==oA||J==jA||z&&!w){if(I=O||z?{}:M0(o),!x)return O?DR(o,oR(I,o)):MR(o,XC(I,o))}else{if(!zA[J])return w?o:{};I=zR(o,J,x)}}Q||(Q=new cn);var sA=Q.get(o);if(sA)return sA;Q.set(o,I),fy(o)?o.forEach(function(dA){I.add(Yt(dA,l,f,dA,o,Q))}):cy(o)&&o.forEach(function(dA,SA){I.set(SA,Yt(dA,l,f,SA,o,Q))});var fA=P?O?Qd:yd:O?Ct:xe,EA=G?e:fA(o);return $t(EA||o,function(dA,SA){EA&&(SA=dA,dA=o[SA]),go(I,SA,Yt(dA,l,f,SA,o,Q))}),I}function aR(o){var l=xe(o);return function(f){return YC(f,o,l)}}function YC(o,l,f){var g=f.length;if(o==null)return!g;for(o=XA(o);g--;){var w=f[g],Q=l[w],I=o[w];if(I===e&&!(w in o)||!Q(I))return!1}return!0}function zC(o,l,f){if(typeof o!="function")throw new Jt(s);return Eo(function(){o.apply(e,f)},l)}function Bo(o,l,f,g){var w=-1,Q=dl,I=!0,x=o.length,O=[],P=l.length;if(!x)return O;f&&(l=ne(l,Ht(f))),g?(Q=Vf,I=!1):l.length>=r&&(Q=lo,I=!1,l=new oi(l));A:for(;++w<x;){var G=o[w],J=f==null?G:f(G);if(G=g||G!==0?G:0,I&&J===J){for(var z=P;z--;)if(l[z]===J)continue A;O.push(G)}else Q(l,J,g)||O.push(G)}return O}var xr=E0(Un),qC=E0(rd,!0);function lR(o,l){var f=!0;return xr(o,function(g,w,Q){return f=!!l(g,w,Q),f}),f}function xl(o,l,f){for(var g=-1,w=o.length;++g<w;){var Q=o[g],I=l(Q);if(I!=null&&(x===e?I===I&&!Lt(I):f(I,x)))var x=I,O=Q}return O}function cR(o,l,f,g){var w=o.length;for(f=CA(f),f<0&&(f=-f>w?0:w+f),g=g===e||g>w?w:CA(g),g<0&&(g+=w),g=f>g?0:hy(g);f<g;)o[f++]=l;return o}function ZC(o,l){var f=[];return xr(o,function(g,w,Q){l(g,w,Q)&&f.push(g)}),f}function Pe(o,l,f,g,w){var Q=-1,I=o.length;for(f||(f=ZR),w||(w=[]);++Q<I;){var x=o[Q];l>0&&f(x)?l>1?Pe(x,l-1,f,g,w):Ir(w,x):g||(w[w.length]=x)}return w}var nd=F0(),jC=F0(!0);function Un(o,l){return o&&nd(o,l,xe)}function rd(o,l){return o&&jC(o,l,xe)}function Hl(o,l){return vr(l,function(f){return Yn(o[f])})}function li(o,l){l=_r(l,o);for(var f=0,g=l.length;o!=null&&f<g;)o=o[vn(l[f++])];return f&&f==g?o:e}function A0(o,l,f){var g=l(o);return BA(o)?g:Ir(g,f(o))}function lt(o){return o==null?o===e?Y:q:ii&&ii in XA(o)?$R(o):i4(o)}function id(o,l){return o>l}function uR(o,l){return o!=null&&VA.call(o,l)}function fR(o,l){return o!=null&&l in XA(o)}function dR(o,l,f){return o>=qe(l,f)&&o<be(l,f)}function sd(o,l,f){for(var g=f?Vf:dl,w=o[0].length,Q=o.length,I=Q,x=M(Q),O=1/0,P=[];I--;){var G=o[I];I&&l&&(G=ne(G,Ht(l))),O=qe(G.length,O),x[I]=!f&&(l||w>=120&&G.length>=120)?new oi(I&&G):e}G=o[0];var J=-1,z=x[0];A:for(;++J<w&&P.length<O;){var sA=G[J],fA=l?l(sA):sA;if(sA=f||sA!==0?sA:0,!(z?lo(z,fA):g(P,fA,f))){for(I=Q;--I;){var EA=x[I];if(!(EA?lo(EA,fA):g(o[I],fA,f)))continue A}z&&z.push(fA),P.push(sA)}}return P}function hR(o,l,f,g){return Un(o,function(w,Q,I){l(g,f(w),Q,I)}),g}function mo(o,l,f){l=_r(l,o),o=K0(o,l);var g=o==null?o:o[vn(qt(l))];return g==null?e:xt(g,o,f)}function e0(o){return ae(o)&<(o)==jA}function pR(o){return ae(o)&<(o)==an}function gR(o){return ae(o)&<(o)==ze}function wo(o,l,f,g,w){return o===l?!0:o==null||l==null||!ae(o)&&!ae(l)?o!==o&&l!==l:BR(o,l,f,g,wo,w)}function BR(o,l,f,g,w,Q){var I=BA(o),x=BA(l),O=I?fe:Ze(o),P=x?fe:Ze(l);O=O==jA?oA:O,P=P==jA?oA:P;var G=O==oA,J=P==oA,z=O==P;if(z&&Or(o)){if(!Or(l))return!1;I=!0,G=!1}if(z&&!G)return Q||(Q=new cn),I||us(o)?L0(o,l,f,g,w,Q):GR(o,l,O,f,g,w,Q);if(!(f&C)){var sA=G&&VA.call(o,"__wrapped__"),fA=J&&VA.call(l,"__wrapped__");if(sA||fA){var EA=sA?o.value():o,dA=fA?l.value():l;return Q||(Q=new cn),w(EA,dA,f,g,Q)}}return z?(Q||(Q=new cn),WR(o,l,f,g,w,Q)):!1}function mR(o){return ae(o)&&Ze(o)==b}function od(o,l,f,g){var w=f.length,Q=w,I=!g;if(o==null)return!Q;for(o=XA(o);w--;){var x=f[w];if(I&&x[2]?x[1]!==o[x[0]]:!(x[0]in o))return!1}for(;++w<Q;){x=f[w];var O=x[0],P=o[O],G=x[1];if(I&&x[2]){if(P===e&&!(O in o))return!1}else{var J=new cn;if(g)var z=g(P,G,O,o,l,J);if(!(z===e?wo(G,P,C|E,g,J):z))return!1}}return!0}function t0(o){if(!ie(o)||A4(o))return!1;var l=Yn(o)?mN:aD;return l.test(ui(o))}function wR(o){return ae(o)&<(o)==Ne}function CR(o){return ae(o)&&Ze(o)==Re}function yR(o){return ae(o)&&Yl(o.length)&&!!Ae[lt(o)]}function n0(o){return typeof o=="function"?o:o==null?yt:typeof o=="object"?BA(o)?s0(o[0],o[1]):i0(o):Uy(o)}function ad(o){if(!Qo(o))return FN(o);var l=[];for(var f in XA(o))VA.call(o,f)&&f!="constructor"&&l.push(f);return l}function QR(o){if(!ie(o))return r4(o);var l=Qo(o),f=[];for(var g in o)g=="constructor"&&(l||!VA.call(o,g))||f.push(g);return f}function ld(o,l){return o<l}function r0(o,l){var f=-1,g=wt(o)?M(o.length):[];return xr(o,function(w,Q,I){g[++f]=l(w,Q,I)}),g}function i0(o){var l=Fd(o);return l.length==1&&l[0][2]?N0(l[0][0],l[0][1]):function(f){return f===o||od(f,o,l)}}function s0(o,l){return bd(o)&&D0(l)?N0(vn(o),l):function(f){var g=kd(f,o);return g===e&&g===l?Md(f,o):wo(l,g,C|E)}}function _l(o,l,f,g,w){o!==l&&nd(l,function(Q,I){if(w||(w=new cn),ie(Q))ER(o,l,I,f,_l,g,w);else{var x=g?g(Id(o,I),Q,I+"",o,l,w):e;x===e&&(x=Q),ed(o,I,x)}},Ct)}function ER(o,l,f,g,w,Q,I){var x=Id(o,f),O=Id(l,f),P=I.get(O);if(P){ed(o,f,P);return}var G=Q?Q(x,O,f+"",o,l,I):e,J=G===e;if(J){var z=BA(O),sA=!z&&Or(O),fA=!z&&!sA&&us(O);G=O,z||sA||fA?BA(x)?G=x:de(x)?G=mt(x):sA?(J=!1,G=m0(O,!0)):fA?(J=!1,G=w0(O,!0)):G=[]:Fo(O)||fi(O)?(G=x,fi(x)?G=py(x):(!ie(x)||Yn(x))&&(G=M0(O))):J=!1}J&&(I.set(O,G),w(G,O,g,Q,I),I.delete(O)),ed(o,f,G)}function o0(o,l){var f=o.length;if(f)return l+=l<0?f:0,Xn(l,f)?o[l]:e}function a0(o,l,f){l.length?l=ne(l,function(Q){return BA(Q)?function(I){return li(I,Q.length===1?Q[0]:Q)}:Q}):l=[yt];var g=-1;l=ne(l,Ht(cA()));var w=r0(o,function(Q,I,x){var O=ne(l,function(P){return P(Q)});return{criteria:O,index:++g,value:Q}});return zD(w,function(Q,I){return kR(Q,I,f)})}function FR(o,l){return l0(o,l,function(f,g){return Md(o,g)})}function l0(o,l,f){for(var g=-1,w=l.length,Q={};++g<w;){var I=l[g],x=li(o,I);f(x,I)&&Co(Q,_r(I,o),x)}return Q}function UR(o){return function(l){return li(l,o)}}function cd(o,l,f,g){var w=g?YD:ji,Q=-1,I=l.length,x=o;for(o===l&&(l=mt(l)),f&&(x=ne(o,Ht(f)));++Q<I;)for(var O=0,P=l[Q],G=f?f(P):P;(O=w(x,G,O,g))>-1;)x!==o&&El.call(x,O,1),El.call(o,O,1);return o}function c0(o,l){for(var f=o?l.length:0,g=f-1;f--;){var w=l[f];if(f==g||w!==Q){var Q=w;Xn(w)?El.call(o,w,1):hd(o,w)}}return o}function ud(o,l){return o+bl(GC()*(l-o+1))}function bR(o,l,f,g){for(var w=-1,Q=be(Ul((l-o)/(f||1)),0),I=M(Q);Q--;)I[g?Q:++w]=o,o+=f;return I}function fd(o,l){var f="";if(!o||l<1||l>mA)return f;do l%2&&(f+=o),l=bl(l/2),l&&(o+=o);while(l);return f}function UA(o,l){return Sd(R0(o,l,yt),o+"")}function vR(o){return JC(fs(o))}function IR(o,l){var f=fs(o);return Pl(f,ai(l,0,f.length))}function Co(o,l,f,g){if(!ie(o))return o;l=_r(l,o);for(var w=-1,Q=l.length,I=Q-1,x=o;x!=null&&++w<Q;){var O=vn(l[w]),P=f;if(O==="__proto__"||O==="constructor"||O==="prototype")return o;if(w!=I){var G=x[O];P=g?g(G,O,x):e,P===e&&(P=ie(G)?G:Xn(l[w+1])?[]:{})}go(x,O,P),x=x[O]}return o}var u0=vl?function(o,l){return vl.set(o,l),o}:yt,SR=Fl?function(o,l){return Fl(o,"toString",{configurable:!0,enumerable:!1,value:Nd(l),writable:!0})}:yt;function TR(o){return Pl(fs(o))}function zt(o,l,f){var g=-1,w=o.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var Q=M(w);++g<w;)Q[g]=o[g+l];return Q}function xR(o,l){var f;return xr(o,function(g,w,Q){return f=l(g,w,Q),!f}),!!f}function Ll(o,l,f){var g=0,w=o==null?g:o.length;if(typeof l=="number"&&l===l&&w<=me){for(;g<w;){var Q=g+w>>>1,I=o[Q];I!==null&&!Lt(I)&&(f?I<=l:I<l)?g=Q+1:w=Q}return w}return dd(o,l,yt,f)}function dd(o,l,f,g){var w=0,Q=o==null?0:o.length;if(Q===0)return 0;l=f(l);for(var I=l!==l,x=l===null,O=Lt(l),P=l===e;w<Q;){var G=bl((w+Q)/2),J=f(o[G]),z=J!==e,sA=J===null,fA=J===J,EA=Lt(J);if(I)var dA=g||fA;else P?dA=fA&&(g||z):x?dA=fA&&z&&(g||!sA):O?dA=fA&&z&&!sA&&(g||!EA):sA||EA?dA=!1:dA=g?J<=l:J<l;dA?w=G+1:Q=G}return qe(Q,Be)}function f0(o,l){for(var f=-1,g=o.length,w=0,Q=[];++f<g;){var I=o[f],x=l?l(I):I;if(!f||!un(x,O)){var O=x;Q[w++]=I===0?0:I}}return Q}function d0(o){return typeof o=="number"?o:Lt(o)?ZA:+o}function _t(o){if(typeof o=="string")return o;if(BA(o))return ne(o,_t)+"";if(Lt(o))return WC?WC.call(o):"";var l=o+"";return l=="0"&&1/o==-vA?"-0":l}function Hr(o,l,f){var g=-1,w=dl,Q=o.length,I=!0,x=[],O=x;if(f)I=!1,w=Vf;else if(Q>=r){var P=l?null:VR(o);if(P)return pl(P);I=!1,w=lo,O=new oi}else O=l?[]:x;A:for(;++g<Q;){var G=o[g],J=l?l(G):G;if(G=f||G!==0?G:0,I&&J===J){for(var z=O.length;z--;)if(O[z]===J)continue A;l&&O.push(J),x.push(G)}else w(O,J,f)||(O!==x&&O.push(J),x.push(G))}return x}function hd(o,l){return l=_r(l,o),o=K0(o,l),o==null||delete o[vn(qt(l))]}function h0(o,l,f,g){return Co(o,l,f(li(o,l)),g)}function Ol(o,l,f,g){for(var w=o.length,Q=g?w:-1;(g?Q--:++Q<w)&&l(o[Q],Q,o););return f?zt(o,g?0:Q,g?Q+1:w):zt(o,g?Q+1:0,g?w:Q)}function p0(o,l){var f=o;return f instanceof _A&&(f=f.value()),Pf(l,function(g,w){return w.func.apply(w.thisArg,Ir([g],w.args))},f)}function pd(o,l,f){var g=o.length;if(g<2)return g?Hr(o[0]):[];for(var w=-1,Q=M(g);++w<g;)for(var I=o[w],x=-1;++x<g;)x!=w&&(Q[w]=Bo(Q[w]||I,o[x],l,f));return Hr(Pe(Q,1),l,f)}function g0(o,l,f){for(var g=-1,w=o.length,Q=l.length,I={};++g<w;){var x=g<Q?l[g]:e;f(I,o[g],x)}return I}function gd(o){return de(o)?o:[]}function Bd(o){return typeof o=="function"?o:yt}function _r(o,l){return BA(o)?o:bd(o,l)?[o]:W0(RA(o))}var HR=UA;function Lr(o,l,f){var g=o.length;return f=f===e?g:f,!l&&f>=g?o:zt(o,l,f)}var B0=wN||function(o){return Ve.clearTimeout(o)};function m0(o,l){if(l)return o.slice();var f=o.length,g=NC?NC(f):new o.constructor(f);return o.copy(g),g}function md(o){var l=new o.constructor(o.byteLength);return new yl(l).set(new yl(o)),l}function _R(o,l){var f=l?md(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function LR(o){var l=new o.constructor(o.source,eC.exec(o));return l.lastIndex=o.lastIndex,l}function OR(o){return po?XA(po.call(o)):{}}function w0(o,l){var f=l?md(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function C0(o,l){if(o!==l){var f=o!==e,g=o===null,w=o===o,Q=Lt(o),I=l!==e,x=l===null,O=l===l,P=Lt(l);if(!x&&!P&&!Q&&o>l||Q&&I&&O&&!x&&!P||g&&I&&O||!f&&O||!w)return 1;if(!g&&!Q&&!P&&o<l||P&&f&&w&&!g&&!Q||x&&f&&w||!I&&w||!O)return-1}return 0}function kR(o,l,f){for(var g=-1,w=o.criteria,Q=l.criteria,I=w.length,x=f.length;++g<I;){var O=C0(w[g],Q[g]);if(O){if(g>=x)return O;var P=f[g];return O*(P=="desc"?-1:1)}}return o.index-l.index}function y0(o,l,f,g){for(var w=-1,Q=o.length,I=f.length,x=-1,O=l.length,P=be(Q-I,0),G=M(O+P),J=!g;++x<O;)G[x]=l[x];for(;++w<I;)(J||w<Q)&&(G[f[w]]=o[w]);for(;P--;)G[x++]=o[w++];return G}function Q0(o,l,f,g){for(var w=-1,Q=o.length,I=-1,x=f.length,O=-1,P=l.length,G=be(Q-x,0),J=M(G+P),z=!g;++w<G;)J[w]=o[w];for(var sA=w;++O<P;)J[sA+O]=l[O];for(;++I<x;)(z||w<Q)&&(J[sA+f[I]]=o[w++]);return J}function mt(o,l){var f=-1,g=o.length;for(l||(l=M(g));++f<g;)l[f]=o[f];return l}function bn(o,l,f,g){var w=!f;f||(f={});for(var Q=-1,I=l.length;++Q<I;){var x=l[Q],O=g?g(f[x],o[x],x,f,o):e;O===e&&(O=o[x]),w?Wn(f,x,O):go(f,x,O)}return f}function MR(o,l){return bn(o,Ud(o),l)}function DR(o,l){return bn(o,O0(o),l)}function kl(o,l){return function(f,g){var w=BA(f)?PD:sR,Q=l?l():{};return w(f,o,cA(g,2),Q)}}function as(o){return UA(function(l,f){var g=-1,w=f.length,Q=w>1?f[w-1]:e,I=w>2?f[2]:e;for(Q=o.length>3&&typeof Q=="function"?(w--,Q):e,I&&ct(f[0],f[1],I)&&(Q=w<3?e:Q,w=1),l=XA(l);++g<w;){var x=f[g];x&&o(l,x,g,Q)}return l})}function E0(o,l){return function(f,g){if(f==null)return f;if(!wt(f))return o(f,g);for(var w=f.length,Q=l?w:-1,I=XA(f);(l?Q--:++Q<w)&&g(I[Q],Q,I)!==!1;);return f}}function F0(o){return function(l,f,g){for(var w=-1,Q=XA(l),I=g(l),x=I.length;x--;){var O=I[o?x:++w];if(f(Q[O],O,Q)===!1)break}return l}}function NR(o,l,f){var g=l&S,w=yo(o);function Q(){var I=this&&this!==Ve&&this instanceof Q?w:o;return I.apply(g?f:this,arguments)}return Q}function U0(o){return function(l){l=RA(l);var f=As(l)?ln(l):e,g=f?f[0]:l.charAt(0),w=f?Lr(f,1).join(""):l.slice(1);return g[o]()+w}}function ls(o){return function(l){return Pf(Ey(Qy(l).replace(SD,"")),o,"")}}function yo(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 f=ss(o.prototype),g=o.apply(f,l);return ie(g)?g:f}}function RR(o,l,f){var g=yo(o);function w(){for(var Q=arguments.length,I=M(Q),x=Q,O=cs(w);x--;)I[x]=arguments[x];var P=Q<3&&I[0]!==O&&I[Q-1]!==O?[]:Sr(I,O);if(Q-=P.length,Q<f)return T0(o,l,Ml,w.placeholder,e,I,P,e,e,f-Q);var G=this&&this!==Ve&&this instanceof w?g:o;return xt(G,this,I)}return w}function b0(o){return function(l,f,g){var w=XA(l);if(!wt(l)){var Q=cA(f,3);l=xe(l),f=function(x){return Q(w[x],x,w)}}var I=o(l,f,g);return I>-1?w[Q?l[I]:I]:e}}function v0(o){return Jn(function(l){var f=l.length,g=f,w=Xt.prototype.thru;for(o&&l.reverse();g--;){var Q=l[g];if(typeof Q!="function")throw new Jt(s);if(w&&!I&&Kl(Q)=="wrapper")var I=new Xt([],!0)}for(g=I?g:f;++g<f;){Q=l[g];var x=Kl(Q),O=x=="wrapper"?Ed(Q):e;O&&vd(O[0])&&O[1]==(N|k|T|W)&&!O[4].length&&O[9]==1?I=I[Kl(O[0])].apply(I,O[3]):I=Q.length==1&&vd(Q)?I[x]():I.thru(Q)}return function(){var P=arguments,G=P[0];if(I&&P.length==1&&BA(G))return I.plant(G).value();for(var J=0,z=f?l[J].apply(this,P):G;++J<f;)z=l[J].call(this,z);return z}})}function Ml(o,l,f,g,w,Q,I,x,O,P){var G=l&N,J=l&S,z=l&U,sA=l&(k|F),fA=l&$,EA=z?e:yo(o);function dA(){for(var SA=arguments.length,OA=M(SA),Ot=SA;Ot--;)OA[Ot]=arguments[Ot];if(sA)var ut=cs(dA),kt=ZD(OA,ut);if(g&&(OA=y0(OA,g,w,sA)),Q&&(OA=Q0(OA,Q,I,sA)),SA-=kt,sA&&SA<P){var he=Sr(OA,ut);return T0(o,l,Ml,dA.placeholder,f,OA,he,x,O,P-SA)}var fn=J?f:this,qn=z?fn[o]:o;return SA=OA.length,x?OA=s4(OA,x):fA&&SA>1&&OA.reverse(),G&&O<SA&&(OA.length=O),this&&this!==Ve&&this instanceof dA&&(qn=EA||yo(qn)),qn.apply(fn,OA)}return dA}function I0(o,l){return function(f,g){return hR(f,o,l(g),{})}}function Dl(o,l){return function(f,g){var w;if(f===e&&g===e)return l;if(f!==e&&(w=f),g!==e){if(w===e)return g;typeof f=="string"||typeof g=="string"?(f=_t(f),g=_t(g)):(f=d0(f),g=d0(g)),w=o(f,g)}return w}}function wd(o){return Jn(function(l){return l=ne(l,Ht(cA())),UA(function(f){var g=this;return o(l,function(w){return xt(w,g,f)})})})}function Nl(o,l){l=l===e?" ":_t(l);var f=l.length;if(f<2)return f?fd(l,o):l;var g=fd(l,Ul(o/es(l)));return As(l)?Lr(ln(g),0,o).join(""):g.slice(0,o)}function KR(o,l,f,g){var w=l&S,Q=yo(o);function I(){for(var x=-1,O=arguments.length,P=-1,G=g.length,J=M(G+O),z=this&&this!==Ve&&this instanceof I?Q:o;++P<G;)J[P]=g[P];for(;O--;)J[P++]=arguments[++x];return xt(z,w?f:this,J)}return I}function S0(o){return function(l,f,g){return g&&typeof g!="number"&&ct(l,f,g)&&(f=g=e),l=zn(l),f===e?(f=l,l=0):f=zn(f),g=g===e?l<f?1:-1:zn(g),bR(l,f,g,o)}}function Rl(o){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=Zt(l),f=Zt(f)),o(l,f)}}function T0(o,l,f,g,w,Q,I,x,O,P){var G=l&k,J=G?I:e,z=G?e:I,sA=G?Q:e,fA=G?e:Q;l|=G?T:_,l&=~(G?_:T),l&v||(l&=~(S|U));var EA=[o,l,w,sA,J,fA,z,x,O,P],dA=f.apply(e,EA);return vd(o)&&V0(dA,EA),dA.placeholder=g,P0(dA,o,l)}function Cd(o){var l=Ue[o];return function(f,g){if(f=Zt(f),g=g==null?0:qe(CA(g),292),g&&PC(f)){var w=(RA(f)+"e").split("e"),Q=l(w[0]+"e"+(+w[1]+g));return w=(RA(Q)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(f)}}var VR=rs&&1/pl(new rs([,-0]))[1]==vA?function(o){return new rs(o)}:Vd;function x0(o){return function(l){var f=Ze(l);return f==b?zf(l):f==Re?iN(l):qD(l,o(l))}}function $n(o,l,f,g,w,Q,I,x){var O=l&U;if(!O&&typeof o!="function")throw new Jt(s);var P=g?g.length:0;if(P||(l&=~(T|_),g=w=e),I=I===e?I:be(CA(I),0),x=x===e?x:CA(x),P-=w?w.length:0,l&_){var G=g,J=w;g=w=e}var z=O?e:Ed(o),sA=[o,l,f,g,w,G,J,Q,I,x];if(z&&n4(sA,z),o=sA[0],l=sA[1],f=sA[2],g=sA[3],w=sA[4],x=sA[9]=sA[9]===e?O?0:o.length:be(sA[9]-P,0),!x&&l&(k|F)&&(l&=~(k|F)),!l||l==S)var fA=NR(o,l,f);else l==k||l==F?fA=RR(o,l,x):(l==T||l==(S|T))&&!w.length?fA=KR(o,l,f,g):fA=Ml.apply(e,sA);var EA=z?u0:V0;return P0(EA(fA,sA),o,l)}function H0(o,l,f,g){return o===e||un(o,ns[f])&&!VA.call(g,f)?l:o}function _0(o,l,f,g,w,Q){return ie(o)&&ie(l)&&(Q.set(l,o),_l(o,l,e,_0,Q),Q.delete(l)),o}function PR(o){return Fo(o)?e:o}function L0(o,l,f,g,w,Q){var I=f&C,x=o.length,O=l.length;if(x!=O&&!(I&&O>x))return!1;var P=Q.get(o),G=Q.get(l);if(P&&G)return P==l&&G==o;var J=-1,z=!0,sA=f&E?new oi:e;for(Q.set(o,l),Q.set(l,o);++J<x;){var fA=o[J],EA=l[J];if(g)var dA=I?g(EA,fA,J,l,o,Q):g(fA,EA,J,o,l,Q);if(dA!==e){if(dA)continue;z=!1;break}if(sA){if(!Gf(l,function(SA,OA){if(!lo(sA,OA)&&(fA===SA||w(fA,SA,f,g,Q)))return sA.push(OA)})){z=!1;break}}else if(!(fA===EA||w(fA,EA,f,g,Q))){z=!1;break}}return Q.delete(o),Q.delete(l),z}function GR(o,l,f,g,w,Q,I){switch(f){case St:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case an:return!(o.byteLength!=l.byteLength||!Q(new yl(o),new yl(l)));case st:case ze:case D:return un(+o,+l);case ot:return o.name==l.name&&o.message==l.message;case Ne:case KA:return o==l+"";case b:var x=zf;case Re:var O=g&C;if(x||(x=pl),o.size!=l.size&&!O)return!1;var P=I.get(o);if(P)return P==l;g|=E,I.set(o,l);var G=L0(x(o),x(l),g,w,Q,I);return I.delete(o),G;case V:if(po)return po.call(o)==po.call(l)}return!1}function WR(o,l,f,g,w,Q){var I=f&C,x=yd(o),O=x.length,P=yd(l),G=P.length;if(O!=G&&!I)return!1;for(var J=O;J--;){var z=x[J];if(!(I?z in l:VA.call(l,z)))return!1}var sA=Q.get(o),fA=Q.get(l);if(sA&&fA)return sA==l&&fA==o;var EA=!0;Q.set(o,l),Q.set(l,o);for(var dA=I;++J<O;){z=x[J];var SA=o[z],OA=l[z];if(g)var Ot=I?g(OA,SA,z,l,o,Q):g(SA,OA,z,o,l,Q);if(!(Ot===e?SA===OA||w(SA,OA,f,g,Q):Ot)){EA=!1;break}dA||(dA=z=="constructor")}if(EA&&!dA){var ut=o.constructor,kt=l.constructor;ut!=kt&&"constructor"in o&&"constructor"in l&&!(typeof ut=="function"&&ut instanceof ut&&typeof kt=="function"&&kt instanceof kt)&&(EA=!1)}return Q.delete(o),Q.delete(l),EA}function Jn(o){return Sd(R0(o,e,Y0),o+"")}function yd(o){return A0(o,xe,Ud)}function Qd(o){return A0(o,Ct,O0)}var Ed=vl?function(o){return vl.get(o)}:Vd;function Kl(o){for(var l=o.name+"",f=is[l],g=VA.call(is,l)?f.length:0;g--;){var w=f[g],Q=w.func;if(Q==null||Q==o)return w.name}return l}function cs(o){var l=VA.call(y,"placeholder")?y:o;return l.placeholder}function cA(){var o=y.iteratee||Rd;return o=o===Rd?n0:o,arguments.length?o(arguments[0],arguments[1]):o}function Vl(o,l){var f=o.__data__;return jR(l)?f[typeof l=="string"?"string":"hash"]:f.map}function Fd(o){for(var l=xe(o),f=l.length;f--;){var g=l[f],w=o[g];l[f]=[g,w,D0(w)]}return l}function ci(o,l){var f=tN(o,l);return t0(f)?f:e}function $R(o){var l=VA.call(o,ii),f=o[ii];try{o[ii]=e;var g=!0}catch{}var w=wl.call(o);return g&&(l?o[ii]=f:delete o[ii]),w}var Ud=Zf?function(o){return o==null?[]:(o=XA(o),vr(Zf(o),function(l){return KC.call(o,l)}))}:Pd,O0=Zf?function(o){for(var l=[];o;)Ir(l,Ud(o)),o=Ql(o);return l}:Pd,Ze=lt;(jf&&Ze(new jf(new ArrayBuffer(1)))!=St||uo&&Ze(new uo)!=b||Ad&&Ze(Ad.resolve())!=IA||rs&&Ze(new rs)!=Re||fo&&Ze(new fo)!=oe)&&(Ze=function(o){var l=lt(o),f=l==oA?o.constructor:e,g=f?ui(f):"";if(g)switch(g){case IN:return St;case SN:return b;case TN:return IA;case xN:return Re;case HN:return oe}return l});function JR(o,l,f){for(var g=-1,w=f.length;++g<w;){var Q=f[g],I=Q.size;switch(Q.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=qe(l,o+I);break;case"takeRight":o=be(o,l-I);break}}return{start:o,end:l}}function XR(o){var l=o.match(AD);return l?l[1].split(eD):[]}function k0(o,l,f){l=_r(l,o);for(var g=-1,w=l.length,Q=!1;++g<w;){var I=vn(l[g]);if(!(Q=o!=null&&f(o,I)))break;o=o[I]}return Q||++g!=w?Q:(w=o==null?0:o.length,!!w&&Yl(w)&&Xn(I,w)&&(BA(o)||fi(o)))}function YR(o){var l=o.length,f=new o.constructor(l);return l&&typeof o[0]=="string"&&VA.call(o,"index")&&(f.index=o.index,f.input=o.input),f}function M0(o){return typeof o.constructor=="function"&&!Qo(o)?ss(Ql(o)):{}}function zR(o,l,f){var g=o.constructor;switch(l){case an:return md(o);case st:case ze:return new g(+o);case St:return _R(o,f);case Gt:case Tt:case ni:case Ur:case io:case R:case rA:case lA:case MA:return w0(o,f);case b:return new g;case D:case KA:return new g(o);case Ne:return LR(o);case Re:return new g;case V:return OR(o)}}function qR(o,l){var f=l.length;if(!f)return o;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),o.replace(jM,`{
|
|
144
|
+
*/(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,d="__lodash_placeholder__",p=1,B=2,m=4,C=1,E=2,S=1,U=2,v=4,M=8,F=16,T=32,_=64,N=128,W=256,$=512,eA=30,gA="...",wA=800,aA=16,HA=1,WA=2,bA=3,vA=1/0,mA=9007199254740991,re=17976931348623157e292,ZA=0/0,$A=4294967295,Be=$A-1,me=$A>>>1,Te=[["ary",N],["bind",S],["bindKey",U],["curry",M],["curryRight",F],["flip",$],["partial",T],["partialRight",_],["rearg",W]],jA="[object Arguments]",fe="[object Array]",it="[object AsyncFunction]",st="[object Boolean]",ze="[object Date]",ke="[object DOMException]",ot="[object Error]",It="[object Function]",H="[object GeneratorFunction]",b="[object Map]",k="[object Number]",q="[object Null]",oA="[object Object]",IA="[object Promise]",at="[object Proxy]",Ne="[object RegExp]",Re="[object Set]",KA="[object String]",V="[object Symbol]",Y="[object Undefined]",oe="[object WeakMap]",Fe="[object WeakSet]",an="[object ArrayBuffer]",St="[object DataView]",Gt="[object Float32Array]",Tt="[object Float64Array]",ni="[object Int8Array]",Ur="[object Int16Array]",io="[object Int32Array]",R="[object Uint8Array]",rA="[object Uint8ClampedArray]",lA="[object Uint16Array]",DA="[object Uint32Array]",LA=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,Bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kn=/&(?:amp|lt|gt|quot|#39);/g,so=/[&<>"']/g,Vn=RegExp(Kn.source),oo=RegExp(so.source),zi=/<%-([\s\S]+?)%>/g,br=/<%([\s\S]+?)%>/g,ll=/<%=([\s\S]+?)%>/g,ao=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qi=/^\w*$/,zD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,qD=RegExp(_f.source),Lf=/^\s+/,ZD=/\s/,jD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ak=/\{\n\/\* \[wrapped with (.+)\] \*/,ek=/,? & /,tk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nk=/[()=,{}\[\]\/\s]/,rk=/\\(\\)?/g,ik=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eC=/\w*$/,sk=/^[-+]0x[0-9a-f]+$/i,ok=/^0b[01]+$/i,ak=/^\[object .+?Constructor\]$/,lk=/^0o[0-7]+$/i,ck=/^(?:0|[1-9]\d*)$/,uk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cl=/($^)/,fk=/['\n\r\u2028\u2029\\]/g,ul="\\ud800-\\udfff",dk="\\u0300-\\u036f",hk="\\ufe20-\\ufe2f",pk="\\u20d0-\\u20ff",tC=dk+hk+pk,nC="\\u2700-\\u27bf",rC="a-z\\xdf-\\xf6\\xf8-\\xff",gk="\\xac\\xb1\\xd7\\xf7",Bk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mk="\\u2000-\\u206f",wk=" \\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",oC=gk+Bk+mk+wk,Of="['’]",Ck="["+ul+"]",aC="["+oC+"]",fl="["+tC+"]",lC="\\d+",yk="["+nC+"]",cC="["+rC+"]",uC="[^"+ul+oC+lC+nC+rC+iC+"]",Mf="\\ud83c[\\udffb-\\udfff]",Qk="(?:"+fl+"|"+Mf+")",fC="[^"+ul+"]",Df="(?:\\ud83c[\\udde6-\\uddff]){2}",kf="[\\ud800-\\udbff][\\udc00-\\udfff]",Zi="["+iC+"]",dC="\\u200d",hC="(?:"+cC+"|"+uC+")",Ek="(?:"+Zi+"|"+uC+")",pC="(?:"+Of+"(?:d|ll|m|re|s|t|ve))?",gC="(?:"+Of+"(?:D|LL|M|RE|S|T|VE))?",BC=Qk+"?",mC="["+sC+"]?",Fk="(?:"+dC+"(?:"+[fC,Df,kf].join("|")+")"+mC+BC+")*",Uk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wC=mC+BC+Fk,vk="(?:"+[yk,Df,kf].join("|")+")"+wC,Ik="(?:"+[fC+fl+"?",fl,Df,kf,Ck].join("|")+")",Sk=RegExp(Of,"g"),Tk=RegExp(fl,"g"),Nf=RegExp(Mf+"(?="+Mf+")|"+Ik+wC,"g"),xk=RegExp([Zi+"?"+cC+"+"+pC+"(?="+[aC,Zi,"$"].join("|")+")",Ek+"+"+gC+"(?="+[aC,Zi+hC,"$"].join("|")+")",Zi+"?"+hC+"+"+pC,Zi+"+"+gC,bk,Uk,lC,vk].join("|"),"g"),Hk=RegExp("["+dC+ul+tC+sC+"]"),_k=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8Clamp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C&&CC.process,Wt=function(){try{var L=ri&&ri.require&&ri.require("util").types;return L||Kf&&Kf.binding&&Kf.binding("util")}catch{}}(),QC=Wt&&Wt.isArrayBuffer,EC=Wt&&Wt.isDate,FC=Wt&&Wt.isMap,UC=Wt&&Wt.isRegExp,bC=Wt&&Wt.isSet,vC=Wt&&Wt.isTypedArray;function xt(L,K,D){switch(D.length){case 0:return L.call(K);case 1:return L.call(K,D[0]);case 2:return L.call(K,D[0],D[1]);case 3:return L.call(K,D[0],D[1],D[2])}return L.apply(K,D)}function Pk(L,K,D,tA){for(var pA=-1,kA=L==null?0:L.length;++pA<kA;){var Ue=L[pA];K(tA,Ue,D(Ue),L)}return tA}function $t(L,K){for(var D=-1,tA=L==null?0:L.length;++D<tA&&K(L[D],D,L)!==!1;);return L}function Gk(L,K){for(var D=L==null?0:L.length;D--&&K(L[D],D,L)!==!1;);return L}function IC(L,K){for(var D=-1,tA=L==null?0:L.length;++D<tA;)if(!K(L[D],D,L))return!1;return!0}function vr(L,K){for(var D=-1,tA=L==null?0:L.length,pA=0,kA=[];++D<tA;){var Ue=L[D];K(Ue,D,L)&&(kA[pA++]=Ue)}return kA}function dl(L,K){var D=L==null?0:L.length;return!!D&&ji(L,K,0)>-1}function Vf(L,K,D){for(var tA=-1,pA=L==null?0:L.length;++tA<pA;)if(D(K,L[tA]))return!0;return!1}function ne(L,K){for(var D=-1,tA=L==null?0:L.length,pA=Array(tA);++D<tA;)pA[D]=K(L[D],D,L);return pA}function Ir(L,K){for(var D=-1,tA=K.length,pA=L.length;++D<tA;)L[pA+D]=K[D];return L}function Pf(L,K,D,tA){var pA=-1,kA=L==null?0:L.length;for(tA&&kA&&(D=L[++pA]);++pA<kA;)D=K(D,L[pA],pA,L);return D}function Wk(L,K,D,tA){var pA=L==null?0:L.length;for(tA&&pA&&(D=L[--pA]);pA--;)D=K(D,L[pA],pA,L);return D}function Gf(L,K){for(var D=-1,tA=L==null?0:L.length;++D<tA;)if(K(L[D],D,L))return!0;return!1}var $k=Wf("length");function Jk(L){return L.split("")}function Xk(L){return L.match(tk)||[]}function SC(L,K,D){var tA;return D(L,function(pA,kA,Ue){if(K(pA,kA,Ue))return tA=kA,!1}),tA}function hl(L,K,D,tA){for(var pA=L.length,kA=D+(tA?1:-1);tA?kA--:++kA<pA;)if(K(L[kA],kA,L))return kA;return-1}function ji(L,K,D){return K===K?sN(L,K,D):hl(L,TC,D)}function Yk(L,K,D,tA){for(var pA=D-1,kA=L.length;++pA<kA;)if(tA(L[pA],K))return pA;return-1}function TC(L){return L!==L}function xC(L,K){var D=L==null?0:L.length;return D?Jf(L,K)/D:ZA}function Wf(L){return function(K){return K==null?e:K[L]}}function $f(L){return function(K){return L==null?e:L[K]}}function HC(L,K,D,tA,pA){return pA(L,function(kA,Ue,XA){D=tA?(tA=!1,kA):K(D,kA,Ue,XA)}),D}function zk(L,K){var D=L.length;for(L.sort(K);D--;)L[D]=L[D].value;return L}function Jf(L,K){for(var D,tA=-1,pA=L.length;++tA<pA;){var kA=K(L[tA]);kA!==e&&(D=D===e?kA:D+kA)}return D}function Xf(L,K){for(var D=-1,tA=Array(L);++D<L;)tA[D]=K(D);return tA}function qk(L,K){return ne(K,function(D){return[D,L[D]]})}function _C(L){return L&&L.slice(0,DC(L)+1).replace(Lf,"")}function Ht(L){return function(K){return L(K)}}function Yf(L,K){return ne(K,function(D){return L[D]})}function lo(L,K){return L.has(K)}function LC(L,K){for(var D=-1,tA=L.length;++D<tA&&ji(K,L[D],0)>-1;);return D}function OC(L,K){for(var D=L.length;D--&&ji(K,L[D],0)>-1;);return D}function Zk(L,K){for(var D=L.length,tA=0;D--;)L[D]===K&&++tA;return tA}var jk=$f(Mk),AN=$f(Dk);function eN(L){return"\\"+Nk[L]}function tN(L,K){return L==null?e:L[K]}function As(L){return Hk.test(L)}function nN(L){return _k.test(L)}function rN(L){for(var K,D=[];!(K=L.next()).done;)D.push(K.value);return D}function zf(L){var K=-1,D=Array(L.size);return L.forEach(function(tA,pA){D[++K]=[pA,tA]}),D}function MC(L,K){return function(D){return L(K(D))}}function Sr(L,K){for(var D=-1,tA=L.length,pA=0,kA=[];++D<tA;){var Ue=L[D];(Ue===K||Ue===d)&&(L[D]=d,kA[pA++]=D)}return kA}function pl(L){var K=-1,D=Array(L.size);return L.forEach(function(tA){D[++K]=tA}),D}function iN(L){var K=-1,D=Array(L.size);return L.forEach(function(tA){D[++K]=[tA,tA]}),D}function sN(L,K,D){for(var tA=D-1,pA=L.length;++tA<pA;)if(L[tA]===K)return tA;return-1}function oN(L,K,D){for(var tA=D+1;tA--;)if(L[tA]===K)return tA;return tA}function es(L){return As(L)?lN(L):$k(L)}function ln(L){return As(L)?cN(L):Jk(L)}function DC(L){for(var K=L.length;K--&&ZD.test(L.charAt(K)););return K}var aN=$f(kk);function lN(L){for(var K=Nf.lastIndex=0;Nf.test(L);)++K;return K}function cN(L){return L.match(Nf)||[]}function uN(L){return L.match(xk)||[]}var fN=function L(K){K=K==null?Ve:ts.defaults(Ve.Object(),K,ts.pick(Ve,Lk));var D=K.Array,tA=K.Date,pA=K.Error,kA=K.Function,Ue=K.Math,XA=K.Object,qf=K.RegExp,dN=K.String,Jt=K.TypeError,gl=D.prototype,hN=kA.prototype,ns=XA.prototype,Bl=K["__core-js_shared__"],ml=hN.toString,VA=ns.hasOwnProperty,pN=0,kC=function(){var o=/[^.]+$/.exec(Bl&&Bl.keys&&Bl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),wl=ns.toString,gN=ml.call(XA),BN=Ve._,mN=qf("^"+ml.call(VA).replace(_f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cl=yC?K.Buffer:e,Tr=K.Symbol,yl=K.Uint8Array,NC=Cl?Cl.allocUnsafe:e,Ql=MC(XA.getPrototypeOf,XA),RC=XA.create,KC=ns.propertyIsEnumerable,El=gl.splice,VC=Tr?Tr.isConcatSpreadable:e,co=Tr?Tr.iterator:e,ii=Tr?Tr.toStringTag:e,Fl=function(){try{var o=ci(XA,"defineProperty");return o({},"",{}),o}catch{}}(),wN=K.clearTimeout!==Ve.clearTimeout&&K.clearTimeout,CN=tA&&tA.now!==Ve.Date.now&&tA.now,yN=K.setTimeout!==Ve.setTimeout&&K.setTimeout,Ul=Ue.ceil,bl=Ue.floor,Zf=XA.getOwnPropertySymbols,QN=Cl?Cl.isBuffer:e,PC=K.isFinite,EN=gl.join,FN=MC(XA.keys,XA),be=Ue.max,qe=Ue.min,UN=tA.now,bN=K.parseInt,GC=Ue.random,vN=gl.reverse,jf=ci(K,"DataView"),uo=ci(K,"Map"),Ad=ci(K,"Promise"),rs=ci(K,"Set"),fo=ci(K,"WeakMap"),ho=ci(XA,"create"),vl=fo&&new fo,is={},IN=ui(jf),SN=ui(uo),TN=ui(Ad),xN=ui(rs),HN=ui(fo),Il=Tr?Tr.prototype:e,po=Il?Il.valueOf:e,WC=Il?Il.toString:e;function y(o){if(ae(o)&&!BA(o)&&!(o instanceof _A)){if(o instanceof Xt)return o;if(VA.call(o,"__wrapped__"))return $0(o)}return new Xt(o)}var ss=function(){function o(){}return function(l){if(!ie(l))return{};if(RC)return RC(l);o.prototype=l;var f=new o;return o.prototype=e,f}}();function Sl(){}function Xt(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=e}y.templateSettings={escape:zi,evaluate:br,interpolate:ll,variable:"",imports:{_:y}},y.prototype=Sl.prototype,y.prototype.constructor=y,Xt.prototype=ss(Sl.prototype),Xt.prototype.constructor=Xt;function _A(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$A,this.__views__=[]}function _N(){var o=new _A(this.__wrapped__);return o.__actions__=mt(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=mt(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=mt(this.__views__),o}function LN(){if(this.__filtered__){var o=new _A(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function ON(){var o=this.__wrapped__.value(),l=this.__dir__,f=BA(o),g=l<0,w=f?o.length:0,Q=JR(0,w,this.__views__),I=Q.start,x=Q.end,O=x-I,P=g?x:I-1,G=this.__iteratees__,J=G.length,z=0,sA=qe(O,this.__takeCount__);if(!f||!g&&w==O&&sA==O)return p0(o,this.__actions__);var fA=[];A:for(;O--&&z<sA;){P+=l;for(var EA=-1,dA=o[P];++EA<J;){var SA=G[EA],OA=SA.iteratee,Ot=SA.type,ut=OA(dA);if(Ot==WA)dA=ut;else if(!ut){if(Ot==HA)continue A;break A}}fA[z++]=dA}return fA}_A.prototype=ss(Sl.prototype),_A.prototype.constructor=_A;function si(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var g=o[l];this.set(g[0],g[1])}}function MN(){this.__data__=ho?ho(null):{},this.size=0}function DN(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function kN(o){var l=this.__data__;if(ho){var f=l[o];return f===c?e:f}return VA.call(l,o)?l[o]:e}function NN(o){var l=this.__data__;return ho?l[o]!==e:VA.call(l,o)}function RN(o,l){var f=this.__data__;return this.size+=this.has(o)?0:1,f[o]=ho&&l===e?c:l,this}si.prototype.clear=MN,si.prototype.delete=DN,si.prototype.get=kN,si.prototype.has=NN,si.prototype.set=RN;function Pn(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var g=o[l];this.set(g[0],g[1])}}function KN(){this.__data__=[],this.size=0}function VN(o){var l=this.__data__,f=Tl(l,o);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():El.call(l,f,1),--this.size,!0}function PN(o){var l=this.__data__,f=Tl(l,o);return f<0?e:l[f][1]}function GN(o){return Tl(this.__data__,o)>-1}function WN(o,l){var f=this.__data__,g=Tl(f,o);return g<0?(++this.size,f.push([o,l])):f[g][1]=l,this}Pn.prototype.clear=KN,Pn.prototype.delete=VN,Pn.prototype.get=PN,Pn.prototype.has=GN,Pn.prototype.set=WN;function Gn(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var g=o[l];this.set(g[0],g[1])}}function $N(){this.size=0,this.__data__={hash:new si,map:new(uo||Pn),string:new si}}function JN(o){var l=Vl(this,o).delete(o);return this.size-=l?1:0,l}function XN(o){return Vl(this,o).get(o)}function YN(o){return Vl(this,o).has(o)}function zN(o,l){var f=Vl(this,o),g=f.size;return f.set(o,l),this.size+=f.size==g?0:1,this}Gn.prototype.clear=$N,Gn.prototype.delete=JN,Gn.prototype.get=XN,Gn.prototype.has=YN,Gn.prototype.set=zN;function oi(o){var l=-1,f=o==null?0:o.length;for(this.__data__=new Gn;++l<f;)this.add(o[l])}function qN(o){return this.__data__.set(o,c),this}function ZN(o){return this.__data__.has(o)}oi.prototype.add=oi.prototype.push=qN,oi.prototype.has=ZN;function cn(o){var l=this.__data__=new Pn(o);this.size=l.size}function jN(){this.__data__=new Pn,this.size=0}function AR(o){var l=this.__data__,f=l.delete(o);return this.size=l.size,f}function eR(o){return this.__data__.get(o)}function tR(o){return this.__data__.has(o)}function nR(o,l){var f=this.__data__;if(f instanceof Pn){var g=f.__data__;if(!uo||g.length<r-1)return g.push([o,l]),this.size=++f.size,this;f=this.__data__=new Gn(g)}return f.set(o,l),this.size=f.size,this}cn.prototype.clear=jN,cn.prototype.delete=AR,cn.prototype.get=eR,cn.prototype.has=tR,cn.prototype.set=nR;function $C(o,l){var f=BA(o),g=!f&&fi(o),w=!f&&!g&&Or(o),Q=!f&&!g&&!w&&us(o),I=f||g||w||Q,x=I?Xf(o.length,dN):[],O=x.length;for(var P in o)(l||VA.call(o,P))&&!(I&&(P=="length"||w&&(P=="offset"||P=="parent")||Q&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Xn(P,O)))&&x.push(P);return x}function JC(o){var l=o.length;return l?o[ud(0,l-1)]:e}function rR(o,l){return Pl(mt(o),ai(l,0,o.length))}function iR(o){return Pl(mt(o))}function ed(o,l,f){(f!==e&&!un(o[l],f)||f===e&&!(l in o))&&Wn(o,l,f)}function go(o,l,f){var g=o[l];(!(VA.call(o,l)&&un(g,f))||f===e&&!(l in o))&&Wn(o,l,f)}function Tl(o,l){for(var f=o.length;f--;)if(un(o[f][0],l))return f;return-1}function sR(o,l,f,g){return xr(o,function(w,Q,I){l(g,w,f(w),I)}),g}function XC(o,l){return o&&bn(l,xe(l),o)}function oR(o,l){return o&&bn(l,Ct(l),o)}function Wn(o,l,f){l=="__proto__"&&Fl?Fl(o,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):o[l]=f}function td(o,l){for(var f=-1,g=l.length,w=D(g),Q=o==null;++f<g;)w[f]=Q?e:Md(o,l[f]);return w}function ai(o,l,f){return o===o&&(f!==e&&(o=o<=f?o:f),l!==e&&(o=o>=l?o:l)),o}function Yt(o,l,f,g,w,Q){var I,x=l&p,O=l&B,P=l&m;if(f&&(I=w?f(o,g,w,Q):f(o)),I!==e)return I;if(!ie(o))return o;var G=BA(o);if(G){if(I=YR(o),!x)return mt(o,I)}else{var J=Ze(o),z=J==It||J==H;if(Or(o))return m0(o,x);if(J==oA||J==jA||z&&!w){if(I=O||z?{}:D0(o),!x)return O?kR(o,oR(I,o)):DR(o,XC(I,o))}else{if(!zA[J])return w?o:{};I=zR(o,J,x)}}Q||(Q=new cn);var sA=Q.get(o);if(sA)return sA;Q.set(o,I),fy(o)?o.forEach(function(dA){I.add(Yt(dA,l,f,dA,o,Q))}):cy(o)&&o.forEach(function(dA,SA){I.set(SA,Yt(dA,l,f,SA,o,Q))});var fA=P?O?Qd:yd:O?Ct:xe,EA=G?e:fA(o);return $t(EA||o,function(dA,SA){EA&&(SA=dA,dA=o[SA]),go(I,SA,Yt(dA,l,f,SA,o,Q))}),I}function aR(o){var l=xe(o);return function(f){return YC(f,o,l)}}function YC(o,l,f){var g=f.length;if(o==null)return!g;for(o=XA(o);g--;){var w=f[g],Q=l[w],I=o[w];if(I===e&&!(w in o)||!Q(I))return!1}return!0}function zC(o,l,f){if(typeof o!="function")throw new Jt(s);return Eo(function(){o.apply(e,f)},l)}function Bo(o,l,f,g){var w=-1,Q=dl,I=!0,x=o.length,O=[],P=l.length;if(!x)return O;f&&(l=ne(l,Ht(f))),g?(Q=Vf,I=!1):l.length>=r&&(Q=lo,I=!1,l=new oi(l));A:for(;++w<x;){var G=o[w],J=f==null?G:f(G);if(G=g||G!==0?G:0,I&&J===J){for(var z=P;z--;)if(l[z]===J)continue A;O.push(G)}else Q(l,J,g)||O.push(G)}return O}var xr=E0(Un),qC=E0(rd,!0);function lR(o,l){var f=!0;return xr(o,function(g,w,Q){return f=!!l(g,w,Q),f}),f}function xl(o,l,f){for(var g=-1,w=o.length;++g<w;){var Q=o[g],I=l(Q);if(I!=null&&(x===e?I===I&&!Lt(I):f(I,x)))var x=I,O=Q}return O}function cR(o,l,f,g){var w=o.length;for(f=CA(f),f<0&&(f=-f>w?0:w+f),g=g===e||g>w?w:CA(g),g<0&&(g+=w),g=f>g?0:hy(g);f<g;)o[f++]=l;return o}function ZC(o,l){var f=[];return xr(o,function(g,w,Q){l(g,w,Q)&&f.push(g)}),f}function Pe(o,l,f,g,w){var Q=-1,I=o.length;for(f||(f=ZR),w||(w=[]);++Q<I;){var x=o[Q];l>0&&f(x)?l>1?Pe(x,l-1,f,g,w):Ir(w,x):g||(w[w.length]=x)}return w}var nd=F0(),jC=F0(!0);function Un(o,l){return o&&nd(o,l,xe)}function rd(o,l){return o&&jC(o,l,xe)}function Hl(o,l){return vr(l,function(f){return Yn(o[f])})}function li(o,l){l=_r(l,o);for(var f=0,g=l.length;o!=null&&f<g;)o=o[vn(l[f++])];return f&&f==g?o:e}function A0(o,l,f){var g=l(o);return BA(o)?g:Ir(g,f(o))}function lt(o){return o==null?o===e?Y:q:ii&&ii in XA(o)?$R(o):i4(o)}function id(o,l){return o>l}function uR(o,l){return o!=null&&VA.call(o,l)}function fR(o,l){return o!=null&&l in XA(o)}function dR(o,l,f){return o>=qe(l,f)&&o<be(l,f)}function sd(o,l,f){for(var g=f?Vf:dl,w=o[0].length,Q=o.length,I=Q,x=D(Q),O=1/0,P=[];I--;){var G=o[I];I&&l&&(G=ne(G,Ht(l))),O=qe(G.length,O),x[I]=!f&&(l||w>=120&&G.length>=120)?new oi(I&&G):e}G=o[0];var J=-1,z=x[0];A:for(;++J<w&&P.length<O;){var sA=G[J],fA=l?l(sA):sA;if(sA=f||sA!==0?sA:0,!(z?lo(z,fA):g(P,fA,f))){for(I=Q;--I;){var EA=x[I];if(!(EA?lo(EA,fA):g(o[I],fA,f)))continue A}z&&z.push(fA),P.push(sA)}}return P}function hR(o,l,f,g){return Un(o,function(w,Q,I){l(g,f(w),Q,I)}),g}function mo(o,l,f){l=_r(l,o),o=K0(o,l);var g=o==null?o:o[vn(qt(l))];return g==null?e:xt(g,o,f)}function e0(o){return ae(o)&<(o)==jA}function pR(o){return ae(o)&<(o)==an}function gR(o){return ae(o)&<(o)==ze}function wo(o,l,f,g,w){return o===l?!0:o==null||l==null||!ae(o)&&!ae(l)?o!==o&&l!==l:BR(o,l,f,g,wo,w)}function BR(o,l,f,g,w,Q){var I=BA(o),x=BA(l),O=I?fe:Ze(o),P=x?fe:Ze(l);O=O==jA?oA:O,P=P==jA?oA:P;var G=O==oA,J=P==oA,z=O==P;if(z&&Or(o)){if(!Or(l))return!1;I=!0,G=!1}if(z&&!G)return Q||(Q=new cn),I||us(o)?L0(o,l,f,g,w,Q):GR(o,l,O,f,g,w,Q);if(!(f&C)){var sA=G&&VA.call(o,"__wrapped__"),fA=J&&VA.call(l,"__wrapped__");if(sA||fA){var EA=sA?o.value():o,dA=fA?l.value():l;return Q||(Q=new cn),w(EA,dA,f,g,Q)}}return z?(Q||(Q=new cn),WR(o,l,f,g,w,Q)):!1}function mR(o){return ae(o)&&Ze(o)==b}function od(o,l,f,g){var w=f.length,Q=w,I=!g;if(o==null)return!Q;for(o=XA(o);w--;){var x=f[w];if(I&&x[2]?x[1]!==o[x[0]]:!(x[0]in o))return!1}for(;++w<Q;){x=f[w];var O=x[0],P=o[O],G=x[1];if(I&&x[2]){if(P===e&&!(O in o))return!1}else{var J=new cn;if(g)var z=g(P,G,O,o,l,J);if(!(z===e?wo(G,P,C|E,g,J):z))return!1}}return!0}function t0(o){if(!ie(o)||A4(o))return!1;var l=Yn(o)?mN:ak;return l.test(ui(o))}function wR(o){return ae(o)&<(o)==Ne}function CR(o){return ae(o)&&Ze(o)==Re}function yR(o){return ae(o)&&Yl(o.length)&&!!Ae[lt(o)]}function n0(o){return typeof o=="function"?o:o==null?yt:typeof o=="object"?BA(o)?s0(o[0],o[1]):i0(o):Uy(o)}function ad(o){if(!Qo(o))return FN(o);var l=[];for(var f in XA(o))VA.call(o,f)&&f!="constructor"&&l.push(f);return l}function QR(o){if(!ie(o))return r4(o);var l=Qo(o),f=[];for(var g in o)g=="constructor"&&(l||!VA.call(o,g))||f.push(g);return f}function ld(o,l){return o<l}function r0(o,l){var f=-1,g=wt(o)?D(o.length):[];return xr(o,function(w,Q,I){g[++f]=l(w,Q,I)}),g}function i0(o){var l=Fd(o);return l.length==1&&l[0][2]?N0(l[0][0],l[0][1]):function(f){return f===o||od(f,o,l)}}function s0(o,l){return bd(o)&&k0(l)?N0(vn(o),l):function(f){var g=Md(f,o);return g===e&&g===l?Dd(f,o):wo(l,g,C|E)}}function _l(o,l,f,g,w){o!==l&&nd(l,function(Q,I){if(w||(w=new cn),ie(Q))ER(o,l,I,f,_l,g,w);else{var x=g?g(Id(o,I),Q,I+"",o,l,w):e;x===e&&(x=Q),ed(o,I,x)}},Ct)}function ER(o,l,f,g,w,Q,I){var x=Id(o,f),O=Id(l,f),P=I.get(O);if(P){ed(o,f,P);return}var G=Q?Q(x,O,f+"",o,l,I):e,J=G===e;if(J){var z=BA(O),sA=!z&&Or(O),fA=!z&&!sA&&us(O);G=O,z||sA||fA?BA(x)?G=x:de(x)?G=mt(x):sA?(J=!1,G=m0(O,!0)):fA?(J=!1,G=w0(O,!0)):G=[]:Fo(O)||fi(O)?(G=x,fi(x)?G=py(x):(!ie(x)||Yn(x))&&(G=D0(O))):J=!1}J&&(I.set(O,G),w(G,O,g,Q,I),I.delete(O)),ed(o,f,G)}function o0(o,l){var f=o.length;if(f)return l+=l<0?f:0,Xn(l,f)?o[l]:e}function a0(o,l,f){l.length?l=ne(l,function(Q){return BA(Q)?function(I){return li(I,Q.length===1?Q[0]:Q)}:Q}):l=[yt];var g=-1;l=ne(l,Ht(cA()));var w=r0(o,function(Q,I,x){var O=ne(l,function(P){return P(Q)});return{criteria:O,index:++g,value:Q}});return zk(w,function(Q,I){return MR(Q,I,f)})}function FR(o,l){return l0(o,l,function(f,g){return Dd(o,g)})}function l0(o,l,f){for(var g=-1,w=l.length,Q={};++g<w;){var I=l[g],x=li(o,I);f(x,I)&&Co(Q,_r(I,o),x)}return Q}function UR(o){return function(l){return li(l,o)}}function cd(o,l,f,g){var w=g?Yk:ji,Q=-1,I=l.length,x=o;for(o===l&&(l=mt(l)),f&&(x=ne(o,Ht(f)));++Q<I;)for(var O=0,P=l[Q],G=f?f(P):P;(O=w(x,G,O,g))>-1;)x!==o&&El.call(x,O,1),El.call(o,O,1);return o}function c0(o,l){for(var f=o?l.length:0,g=f-1;f--;){var w=l[f];if(f==g||w!==Q){var Q=w;Xn(w)?El.call(o,w,1):hd(o,w)}}return o}function ud(o,l){return o+bl(GC()*(l-o+1))}function bR(o,l,f,g){for(var w=-1,Q=be(Ul((l-o)/(f||1)),0),I=D(Q);Q--;)I[g?Q:++w]=o,o+=f;return I}function fd(o,l){var f="";if(!o||l<1||l>mA)return f;do l%2&&(f+=o),l=bl(l/2),l&&(o+=o);while(l);return f}function UA(o,l){return Sd(R0(o,l,yt),o+"")}function vR(o){return JC(fs(o))}function IR(o,l){var f=fs(o);return Pl(f,ai(l,0,f.length))}function Co(o,l,f,g){if(!ie(o))return o;l=_r(l,o);for(var w=-1,Q=l.length,I=Q-1,x=o;x!=null&&++w<Q;){var O=vn(l[w]),P=f;if(O==="__proto__"||O==="constructor"||O==="prototype")return o;if(w!=I){var G=x[O];P=g?g(G,O,x):e,P===e&&(P=ie(G)?G:Xn(l[w+1])?[]:{})}go(x,O,P),x=x[O]}return o}var u0=vl?function(o,l){return vl.set(o,l),o}:yt,SR=Fl?function(o,l){return Fl(o,"toString",{configurable:!0,enumerable:!1,value:Nd(l),writable:!0})}:yt;function TR(o){return Pl(fs(o))}function zt(o,l,f){var g=-1,w=o.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var Q=D(w);++g<w;)Q[g]=o[g+l];return Q}function xR(o,l){var f;return xr(o,function(g,w,Q){return f=l(g,w,Q),!f}),!!f}function Ll(o,l,f){var g=0,w=o==null?g:o.length;if(typeof l=="number"&&l===l&&w<=me){for(;g<w;){var Q=g+w>>>1,I=o[Q];I!==null&&!Lt(I)&&(f?I<=l:I<l)?g=Q+1:w=Q}return w}return dd(o,l,yt,f)}function dd(o,l,f,g){var w=0,Q=o==null?0:o.length;if(Q===0)return 0;l=f(l);for(var I=l!==l,x=l===null,O=Lt(l),P=l===e;w<Q;){var G=bl((w+Q)/2),J=f(o[G]),z=J!==e,sA=J===null,fA=J===J,EA=Lt(J);if(I)var dA=g||fA;else P?dA=fA&&(g||z):x?dA=fA&&z&&(g||!sA):O?dA=fA&&z&&!sA&&(g||!EA):sA||EA?dA=!1:dA=g?J<=l:J<l;dA?w=G+1:Q=G}return qe(Q,Be)}function f0(o,l){for(var f=-1,g=o.length,w=0,Q=[];++f<g;){var I=o[f],x=l?l(I):I;if(!f||!un(x,O)){var O=x;Q[w++]=I===0?0:I}}return Q}function d0(o){return typeof o=="number"?o:Lt(o)?ZA:+o}function _t(o){if(typeof o=="string")return o;if(BA(o))return ne(o,_t)+"";if(Lt(o))return WC?WC.call(o):"";var l=o+"";return l=="0"&&1/o==-vA?"-0":l}function Hr(o,l,f){var g=-1,w=dl,Q=o.length,I=!0,x=[],O=x;if(f)I=!1,w=Vf;else if(Q>=r){var P=l?null:VR(o);if(P)return pl(P);I=!1,w=lo,O=new oi}else O=l?[]:x;A:for(;++g<Q;){var G=o[g],J=l?l(G):G;if(G=f||G!==0?G:0,I&&J===J){for(var z=O.length;z--;)if(O[z]===J)continue A;l&&O.push(J),x.push(G)}else w(O,J,f)||(O!==x&&O.push(J),x.push(G))}return x}function hd(o,l){return l=_r(l,o),o=K0(o,l),o==null||delete o[vn(qt(l))]}function h0(o,l,f,g){return Co(o,l,f(li(o,l)),g)}function Ol(o,l,f,g){for(var w=o.length,Q=g?w:-1;(g?Q--:++Q<w)&&l(o[Q],Q,o););return f?zt(o,g?0:Q,g?Q+1:w):zt(o,g?Q+1:0,g?w:Q)}function p0(o,l){var f=o;return f instanceof _A&&(f=f.value()),Pf(l,function(g,w){return w.func.apply(w.thisArg,Ir([g],w.args))},f)}function pd(o,l,f){var g=o.length;if(g<2)return g?Hr(o[0]):[];for(var w=-1,Q=D(g);++w<g;)for(var I=o[w],x=-1;++x<g;)x!=w&&(Q[w]=Bo(Q[w]||I,o[x],l,f));return Hr(Pe(Q,1),l,f)}function g0(o,l,f){for(var g=-1,w=o.length,Q=l.length,I={};++g<w;){var x=g<Q?l[g]:e;f(I,o[g],x)}return I}function gd(o){return de(o)?o:[]}function Bd(o){return typeof o=="function"?o:yt}function _r(o,l){return BA(o)?o:bd(o,l)?[o]:W0(RA(o))}var HR=UA;function Lr(o,l,f){var g=o.length;return f=f===e?g:f,!l&&f>=g?o:zt(o,l,f)}var B0=wN||function(o){return Ve.clearTimeout(o)};function m0(o,l){if(l)return o.slice();var f=o.length,g=NC?NC(f):new o.constructor(f);return o.copy(g),g}function md(o){var l=new o.constructor(o.byteLength);return new yl(l).set(new yl(o)),l}function _R(o,l){var f=l?md(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function LR(o){var l=new o.constructor(o.source,eC.exec(o));return l.lastIndex=o.lastIndex,l}function OR(o){return po?XA(po.call(o)):{}}function w0(o,l){var f=l?md(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function C0(o,l){if(o!==l){var f=o!==e,g=o===null,w=o===o,Q=Lt(o),I=l!==e,x=l===null,O=l===l,P=Lt(l);if(!x&&!P&&!Q&&o>l||Q&&I&&O&&!x&&!P||g&&I&&O||!f&&O||!w)return 1;if(!g&&!Q&&!P&&o<l||P&&f&&w&&!g&&!Q||x&&f&&w||!I&&w||!O)return-1}return 0}function MR(o,l,f){for(var g=-1,w=o.criteria,Q=l.criteria,I=w.length,x=f.length;++g<I;){var O=C0(w[g],Q[g]);if(O){if(g>=x)return O;var P=f[g];return O*(P=="desc"?-1:1)}}return o.index-l.index}function y0(o,l,f,g){for(var w=-1,Q=o.length,I=f.length,x=-1,O=l.length,P=be(Q-I,0),G=D(O+P),J=!g;++x<O;)G[x]=l[x];for(;++w<I;)(J||w<Q)&&(G[f[w]]=o[w]);for(;P--;)G[x++]=o[w++];return G}function Q0(o,l,f,g){for(var w=-1,Q=o.length,I=-1,x=f.length,O=-1,P=l.length,G=be(Q-x,0),J=D(G+P),z=!g;++w<G;)J[w]=o[w];for(var sA=w;++O<P;)J[sA+O]=l[O];for(;++I<x;)(z||w<Q)&&(J[sA+f[I]]=o[w++]);return J}function mt(o,l){var f=-1,g=o.length;for(l||(l=D(g));++f<g;)l[f]=o[f];return l}function bn(o,l,f,g){var w=!f;f||(f={});for(var Q=-1,I=l.length;++Q<I;){var x=l[Q],O=g?g(f[x],o[x],x,f,o):e;O===e&&(O=o[x]),w?Wn(f,x,O):go(f,x,O)}return f}function DR(o,l){return bn(o,Ud(o),l)}function kR(o,l){return bn(o,O0(o),l)}function Ml(o,l){return function(f,g){var w=BA(f)?Pk:sR,Q=l?l():{};return w(f,o,cA(g,2),Q)}}function as(o){return UA(function(l,f){var g=-1,w=f.length,Q=w>1?f[w-1]:e,I=w>2?f[2]:e;for(Q=o.length>3&&typeof Q=="function"?(w--,Q):e,I&&ct(f[0],f[1],I)&&(Q=w<3?e:Q,w=1),l=XA(l);++g<w;){var x=f[g];x&&o(l,x,g,Q)}return l})}function E0(o,l){return function(f,g){if(f==null)return f;if(!wt(f))return o(f,g);for(var w=f.length,Q=l?w:-1,I=XA(f);(l?Q--:++Q<w)&&g(I[Q],Q,I)!==!1;);return f}}function F0(o){return function(l,f,g){for(var w=-1,Q=XA(l),I=g(l),x=I.length;x--;){var O=I[o?x:++w];if(f(Q[O],O,Q)===!1)break}return l}}function NR(o,l,f){var g=l&S,w=yo(o);function Q(){var I=this&&this!==Ve&&this instanceof Q?w:o;return I.apply(g?f:this,arguments)}return Q}function U0(o){return function(l){l=RA(l);var f=As(l)?ln(l):e,g=f?f[0]:l.charAt(0),w=f?Lr(f,1).join(""):l.slice(1);return g[o]()+w}}function ls(o){return function(l){return Pf(Ey(Qy(l).replace(Sk,"")),o,"")}}function yo(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 f=ss(o.prototype),g=o.apply(f,l);return ie(g)?g:f}}function RR(o,l,f){var g=yo(o);function w(){for(var Q=arguments.length,I=D(Q),x=Q,O=cs(w);x--;)I[x]=arguments[x];var P=Q<3&&I[0]!==O&&I[Q-1]!==O?[]:Sr(I,O);if(Q-=P.length,Q<f)return T0(o,l,Dl,w.placeholder,e,I,P,e,e,f-Q);var G=this&&this!==Ve&&this instanceof w?g:o;return xt(G,this,I)}return w}function b0(o){return function(l,f,g){var w=XA(l);if(!wt(l)){var Q=cA(f,3);l=xe(l),f=function(x){return Q(w[x],x,w)}}var I=o(l,f,g);return I>-1?w[Q?l[I]:I]:e}}function v0(o){return Jn(function(l){var f=l.length,g=f,w=Xt.prototype.thru;for(o&&l.reverse();g--;){var Q=l[g];if(typeof Q!="function")throw new Jt(s);if(w&&!I&&Kl(Q)=="wrapper")var I=new Xt([],!0)}for(g=I?g:f;++g<f;){Q=l[g];var x=Kl(Q),O=x=="wrapper"?Ed(Q):e;O&&vd(O[0])&&O[1]==(N|M|T|W)&&!O[4].length&&O[9]==1?I=I[Kl(O[0])].apply(I,O[3]):I=Q.length==1&&vd(Q)?I[x]():I.thru(Q)}return function(){var P=arguments,G=P[0];if(I&&P.length==1&&BA(G))return I.plant(G).value();for(var J=0,z=f?l[J].apply(this,P):G;++J<f;)z=l[J].call(this,z);return z}})}function Dl(o,l,f,g,w,Q,I,x,O,P){var G=l&N,J=l&S,z=l&U,sA=l&(M|F),fA=l&$,EA=z?e:yo(o);function dA(){for(var SA=arguments.length,OA=D(SA),Ot=SA;Ot--;)OA[Ot]=arguments[Ot];if(sA)var ut=cs(dA),Mt=Zk(OA,ut);if(g&&(OA=y0(OA,g,w,sA)),Q&&(OA=Q0(OA,Q,I,sA)),SA-=Mt,sA&&SA<P){var he=Sr(OA,ut);return T0(o,l,Dl,dA.placeholder,f,OA,he,x,O,P-SA)}var fn=J?f:this,qn=z?fn[o]:o;return SA=OA.length,x?OA=s4(OA,x):fA&&SA>1&&OA.reverse(),G&&O<SA&&(OA.length=O),this&&this!==Ve&&this instanceof dA&&(qn=EA||yo(qn)),qn.apply(fn,OA)}return dA}function I0(o,l){return function(f,g){return hR(f,o,l(g),{})}}function kl(o,l){return function(f,g){var w;if(f===e&&g===e)return l;if(f!==e&&(w=f),g!==e){if(w===e)return g;typeof f=="string"||typeof g=="string"?(f=_t(f),g=_t(g)):(f=d0(f),g=d0(g)),w=o(f,g)}return w}}function wd(o){return Jn(function(l){return l=ne(l,Ht(cA())),UA(function(f){var g=this;return o(l,function(w){return xt(w,g,f)})})})}function Nl(o,l){l=l===e?" ":_t(l);var f=l.length;if(f<2)return f?fd(l,o):l;var g=fd(l,Ul(o/es(l)));return As(l)?Lr(ln(g),0,o).join(""):g.slice(0,o)}function KR(o,l,f,g){var w=l&S,Q=yo(o);function I(){for(var x=-1,O=arguments.length,P=-1,G=g.length,J=D(G+O),z=this&&this!==Ve&&this instanceof I?Q:o;++P<G;)J[P]=g[P];for(;O--;)J[P++]=arguments[++x];return xt(z,w?f:this,J)}return I}function S0(o){return function(l,f,g){return g&&typeof g!="number"&&ct(l,f,g)&&(f=g=e),l=zn(l),f===e?(f=l,l=0):f=zn(f),g=g===e?l<f?1:-1:zn(g),bR(l,f,g,o)}}function Rl(o){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=Zt(l),f=Zt(f)),o(l,f)}}function T0(o,l,f,g,w,Q,I,x,O,P){var G=l&M,J=G?I:e,z=G?e:I,sA=G?Q:e,fA=G?e:Q;l|=G?T:_,l&=~(G?_:T),l&v||(l&=~(S|U));var EA=[o,l,w,sA,J,fA,z,x,O,P],dA=f.apply(e,EA);return vd(o)&&V0(dA,EA),dA.placeholder=g,P0(dA,o,l)}function Cd(o){var l=Ue[o];return function(f,g){if(f=Zt(f),g=g==null?0:qe(CA(g),292),g&&PC(f)){var w=(RA(f)+"e").split("e"),Q=l(w[0]+"e"+(+w[1]+g));return w=(RA(Q)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(f)}}var VR=rs&&1/pl(new rs([,-0]))[1]==vA?function(o){return new rs(o)}:Vd;function x0(o){return function(l){var f=Ze(l);return f==b?zf(l):f==Re?iN(l):qk(l,o(l))}}function $n(o,l,f,g,w,Q,I,x){var O=l&U;if(!O&&typeof o!="function")throw new Jt(s);var P=g?g.length:0;if(P||(l&=~(T|_),g=w=e),I=I===e?I:be(CA(I),0),x=x===e?x:CA(x),P-=w?w.length:0,l&_){var G=g,J=w;g=w=e}var z=O?e:Ed(o),sA=[o,l,f,g,w,G,J,Q,I,x];if(z&&n4(sA,z),o=sA[0],l=sA[1],f=sA[2],g=sA[3],w=sA[4],x=sA[9]=sA[9]===e?O?0:o.length:be(sA[9]-P,0),!x&&l&(M|F)&&(l&=~(M|F)),!l||l==S)var fA=NR(o,l,f);else l==M||l==F?fA=RR(o,l,x):(l==T||l==(S|T))&&!w.length?fA=KR(o,l,f,g):fA=Dl.apply(e,sA);var EA=z?u0:V0;return P0(EA(fA,sA),o,l)}function H0(o,l,f,g){return o===e||un(o,ns[f])&&!VA.call(g,f)?l:o}function _0(o,l,f,g,w,Q){return ie(o)&&ie(l)&&(Q.set(l,o),_l(o,l,e,_0,Q),Q.delete(l)),o}function PR(o){return Fo(o)?e:o}function L0(o,l,f,g,w,Q){var I=f&C,x=o.length,O=l.length;if(x!=O&&!(I&&O>x))return!1;var P=Q.get(o),G=Q.get(l);if(P&&G)return P==l&&G==o;var J=-1,z=!0,sA=f&E?new oi:e;for(Q.set(o,l),Q.set(l,o);++J<x;){var fA=o[J],EA=l[J];if(g)var dA=I?g(EA,fA,J,l,o,Q):g(fA,EA,J,o,l,Q);if(dA!==e){if(dA)continue;z=!1;break}if(sA){if(!Gf(l,function(SA,OA){if(!lo(sA,OA)&&(fA===SA||w(fA,SA,f,g,Q)))return sA.push(OA)})){z=!1;break}}else if(!(fA===EA||w(fA,EA,f,g,Q))){z=!1;break}}return Q.delete(o),Q.delete(l),z}function GR(o,l,f,g,w,Q,I){switch(f){case St:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case an:return!(o.byteLength!=l.byteLength||!Q(new yl(o),new yl(l)));case st:case ze:case k:return un(+o,+l);case ot:return o.name==l.name&&o.message==l.message;case Ne:case KA:return o==l+"";case b:var x=zf;case Re:var O=g&C;if(x||(x=pl),o.size!=l.size&&!O)return!1;var P=I.get(o);if(P)return P==l;g|=E,I.set(o,l);var G=L0(x(o),x(l),g,w,Q,I);return I.delete(o),G;case V:if(po)return po.call(o)==po.call(l)}return!1}function WR(o,l,f,g,w,Q){var I=f&C,x=yd(o),O=x.length,P=yd(l),G=P.length;if(O!=G&&!I)return!1;for(var J=O;J--;){var z=x[J];if(!(I?z in l:VA.call(l,z)))return!1}var sA=Q.get(o),fA=Q.get(l);if(sA&&fA)return sA==l&&fA==o;var EA=!0;Q.set(o,l),Q.set(l,o);for(var dA=I;++J<O;){z=x[J];var SA=o[z],OA=l[z];if(g)var Ot=I?g(OA,SA,z,l,o,Q):g(SA,OA,z,o,l,Q);if(!(Ot===e?SA===OA||w(SA,OA,f,g,Q):Ot)){EA=!1;break}dA||(dA=z=="constructor")}if(EA&&!dA){var ut=o.constructor,Mt=l.constructor;ut!=Mt&&"constructor"in o&&"constructor"in l&&!(typeof ut=="function"&&ut instanceof ut&&typeof Mt=="function"&&Mt instanceof Mt)&&(EA=!1)}return Q.delete(o),Q.delete(l),EA}function Jn(o){return Sd(R0(o,e,Y0),o+"")}function yd(o){return A0(o,xe,Ud)}function Qd(o){return A0(o,Ct,O0)}var Ed=vl?function(o){return vl.get(o)}:Vd;function Kl(o){for(var l=o.name+"",f=is[l],g=VA.call(is,l)?f.length:0;g--;){var w=f[g],Q=w.func;if(Q==null||Q==o)return w.name}return l}function cs(o){var l=VA.call(y,"placeholder")?y:o;return l.placeholder}function cA(){var o=y.iteratee||Rd;return o=o===Rd?n0:o,arguments.length?o(arguments[0],arguments[1]):o}function Vl(o,l){var f=o.__data__;return jR(l)?f[typeof l=="string"?"string":"hash"]:f.map}function Fd(o){for(var l=xe(o),f=l.length;f--;){var g=l[f],w=o[g];l[f]=[g,w,k0(w)]}return l}function ci(o,l){var f=tN(o,l);return t0(f)?f:e}function $R(o){var l=VA.call(o,ii),f=o[ii];try{o[ii]=e;var g=!0}catch{}var w=wl.call(o);return g&&(l?o[ii]=f:delete o[ii]),w}var Ud=Zf?function(o){return o==null?[]:(o=XA(o),vr(Zf(o),function(l){return KC.call(o,l)}))}:Pd,O0=Zf?function(o){for(var l=[];o;)Ir(l,Ud(o)),o=Ql(o);return l}:Pd,Ze=lt;(jf&&Ze(new jf(new ArrayBuffer(1)))!=St||uo&&Ze(new uo)!=b||Ad&&Ze(Ad.resolve())!=IA||rs&&Ze(new rs)!=Re||fo&&Ze(new fo)!=oe)&&(Ze=function(o){var l=lt(o),f=l==oA?o.constructor:e,g=f?ui(f):"";if(g)switch(g){case IN:return St;case SN:return b;case TN:return IA;case xN:return Re;case HN:return oe}return l});function JR(o,l,f){for(var g=-1,w=f.length;++g<w;){var Q=f[g],I=Q.size;switch(Q.type){case"drop":o+=I;break;case"dropRight":l-=I;break;case"take":l=qe(l,o+I);break;case"takeRight":o=be(o,l-I);break}}return{start:o,end:l}}function XR(o){var l=o.match(Ak);return l?l[1].split(ek):[]}function M0(o,l,f){l=_r(l,o);for(var g=-1,w=l.length,Q=!1;++g<w;){var I=vn(l[g]);if(!(Q=o!=null&&f(o,I)))break;o=o[I]}return Q||++g!=w?Q:(w=o==null?0:o.length,!!w&&Yl(w)&&Xn(I,w)&&(BA(o)||fi(o)))}function YR(o){var l=o.length,f=new o.constructor(l);return l&&typeof o[0]=="string"&&VA.call(o,"index")&&(f.index=o.index,f.input=o.input),f}function D0(o){return typeof o.constructor=="function"&&!Qo(o)?ss(Ql(o)):{}}function zR(o,l,f){var g=o.constructor;switch(l){case an:return md(o);case st:case ze:return new g(+o);case St:return _R(o,f);case Gt:case Tt:case ni:case Ur:case io:case R:case rA:case lA:case DA:return w0(o,f);case b:return new g;case k:case KA:return new g(o);case Ne:return LR(o);case Re:return new g;case V:return OR(o)}}function qR(o,l){var f=l.length;if(!f)return o;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),o.replace(jD,`{
|
|
145
145
|
/* [wrapped with `+l+`] */
|
|
146
|
-
`)}function ZR(o){return BA(o)||fi(o)||!!(VC&&o&&o[VC])}function Xn(o,l){var f=typeof o;return l=l??mA,!!l&&(f=="number"||f!="symbol"&&cD.test(o))&&o>-1&&o%1==0&&o<l}function ct(o,l,f){if(!ie(f))return!1;var g=typeof l;return(g=="number"?wt(f)&&Xn(l,f.length):g=="string"&&l in f)?un(f[l],o):!1}function bd(o,l){if(BA(o))return!1;var f=typeof o;return f=="number"||f=="symbol"||f=="boolean"||o==null||Lt(o)?!0:qi.test(o)||!ao.test(o)||l!=null&&o in XA(l)}function jR(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function vd(o){var l=Kl(o),f=y[l];if(typeof f!="function"||!(l in _A.prototype))return!1;if(o===f)return!0;var g=Ed(f);return!!g&&o===g[0]}function A4(o){return!!DC&&DC in o}var e4=Bl?Yn:Gd;function Qo(o){var l=o&&o.constructor,f=typeof l=="function"&&l.prototype||ns;return o===f}function D0(o){return o===o&&!ie(o)}function N0(o,l){return function(f){return f==null?!1:f[o]===l&&(l!==e||o in XA(f))}}function t4(o){var l=Jl(o,function(g){return f.size===u&&f.clear(),g}),f=l.cache;return l}function n4(o,l){var f=o[1],g=l[1],w=f|g,Q=w<(S|U|N),I=g==N&&f==k||g==N&&f==W&&o[7].length<=l[8]||g==(N|W)&&l[7].length<=l[8]&&f==k;if(!(Q||I))return o;g&S&&(o[2]=l[2],w|=f&S?0:v);var x=l[3];if(x){var O=o[3];o[3]=O?y0(O,x,l[4]):x,o[4]=O?Sr(o[3],d):l[4]}return x=l[5],x&&(O=o[5],o[5]=O?Q0(O,x,l[6]):x,o[6]=O?Sr(o[5],d):l[6]),x=l[7],x&&(o[7]=x),g&N&&(o[8]=o[8]==null?l[8]:qe(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=w,o}function r4(o){var l=[];if(o!=null)for(var f in XA(o))l.push(f);return l}function i4(o){return wl.call(o)}function R0(o,l,f){return l=be(l===e?o.length-1:l,0),function(){for(var g=arguments,w=-1,Q=be(g.length-l,0),I=M(Q);++w<Q;)I[w]=g[l+w];w=-1;for(var x=M(l+1);++w<l;)x[w]=g[w];return x[l]=f(I),xt(o,this,x)}}function K0(o,l){return l.length<2?o:li(o,zt(l,0,-1))}function s4(o,l){for(var f=o.length,g=qe(l.length,f),w=mt(o);g--;){var Q=l[g];o[g]=Xn(Q,f)?w[Q]:e}return o}function Id(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var V0=G0(u0),Eo=yN||function(o,l){return Ve.setTimeout(o,l)},Sd=G0(SR);function P0(o,l,f){var g=l+"";return Sd(o,qR(g,o4(XR(g),f)))}function G0(o){var l=0,f=0;return function(){var g=UN(),w=aA-(g-f);if(f=g,w>0){if(++l>=wA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function Pl(o,l){var f=-1,g=o.length,w=g-1;for(l=l===e?g:l;++f<l;){var Q=ud(f,w),I=o[Q];o[Q]=o[f],o[f]=I}return o.length=l,o}var W0=t4(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(zM,function(f,g,w,Q){l.push(w?Q.replace(rD,"$1"):g||f)}),l});function vn(o){if(typeof o=="string"||Lt(o))return o;var l=o+"";return l=="0"&&1/o==-vA?"-0":l}function ui(o){if(o!=null){try{return ml.call(o)}catch{}try{return o+""}catch{}}return""}function o4(o,l){return $t(Te,function(f){var g="_."+f[0];l&f[1]&&!dl(o,g)&&o.push(g)}),o.sort()}function $0(o){if(o instanceof _A)return o.clone();var l=new Xt(o.__wrapped__,o.__chain__);return l.__actions__=mt(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function a4(o,l,f){(f?ct(o,l,f):l===e)?l=1:l=be(CA(l),0);var g=o==null?0:o.length;if(!g||l<1)return[];for(var w=0,Q=0,I=M(Ul(g/l));w<g;)I[Q++]=zt(o,w,w+=l);return I}function l4(o){for(var l=-1,f=o==null?0:o.length,g=0,w=[];++l<f;){var Q=o[l];Q&&(w[g++]=Q)}return w}function c4(){var o=arguments.length;if(!o)return[];for(var l=M(o-1),f=arguments[0],g=o;g--;)l[g-1]=arguments[g];return Ir(BA(f)?mt(f):[f],Pe(l,1))}var u4=UA(function(o,l){return de(o)?Bo(o,Pe(l,1,de,!0)):[]}),f4=UA(function(o,l){var f=qt(l);return de(f)&&(f=e),de(o)?Bo(o,Pe(l,1,de,!0),cA(f,2)):[]}),d4=UA(function(o,l){var f=qt(l);return de(f)&&(f=e),de(o)?Bo(o,Pe(l,1,de,!0),e,f):[]});function h4(o,l,f){var g=o==null?0:o.length;return g?(l=f||l===e?1:CA(l),zt(o,l<0?0:l,g)):[]}function p4(o,l,f){var g=o==null?0:o.length;return g?(l=f||l===e?1:CA(l),l=g-l,zt(o,0,l<0?0:l)):[]}function g4(o,l){return o&&o.length?Ol(o,cA(l,3),!0,!0):[]}function B4(o,l){return o&&o.length?Ol(o,cA(l,3),!0):[]}function m4(o,l,f,g){var w=o==null?0:o.length;return w?(f&&typeof f!="number"&&ct(o,l,f)&&(f=0,g=w),cR(o,l,f,g)):[]}function J0(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=f==null?0:CA(f);return w<0&&(w=be(g+w,0)),hl(o,cA(l,3),w)}function X0(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=g-1;return f!==e&&(w=CA(f),w=f<0?be(g+w,0):qe(w,g-1)),hl(o,cA(l,3),w,!0)}function Y0(o){var l=o==null?0:o.length;return l?Pe(o,1):[]}function w4(o){var l=o==null?0:o.length;return l?Pe(o,vA):[]}function C4(o,l){var f=o==null?0:o.length;return f?(l=l===e?1:CA(l),Pe(o,l)):[]}function y4(o){for(var l=-1,f=o==null?0:o.length,g={};++l<f;){var w=o[l];g[w[0]]=w[1]}return g}function z0(o){return o&&o.length?o[0]:e}function Q4(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=f==null?0:CA(f);return w<0&&(w=be(g+w,0)),ji(o,l,w)}function E4(o){var l=o==null?0:o.length;return l?zt(o,0,-1):[]}var F4=UA(function(o){var l=ne(o,gd);return l.length&&l[0]===o[0]?sd(l):[]}),U4=UA(function(o){var l=qt(o),f=ne(o,gd);return l===qt(f)?l=e:f.pop(),f.length&&f[0]===o[0]?sd(f,cA(l,2)):[]}),b4=UA(function(o){var l=qt(o),f=ne(o,gd);return l=typeof l=="function"?l:e,l&&f.pop(),f.length&&f[0]===o[0]?sd(f,e,l):[]});function v4(o,l){return o==null?"":EN.call(o,l)}function qt(o){var l=o==null?0:o.length;return l?o[l-1]:e}function I4(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=g;return f!==e&&(w=CA(f),w=w<0?be(g+w,0):qe(w,g-1)),l===l?oN(o,l,w):hl(o,TC,w,!0)}function S4(o,l){return o&&o.length?o0(o,CA(l)):e}var T4=UA(q0);function q0(o,l){return o&&o.length&&l&&l.length?cd(o,l):o}function x4(o,l,f){return o&&o.length&&l&&l.length?cd(o,l,cA(f,2)):o}function H4(o,l,f){return o&&o.length&&l&&l.length?cd(o,l,e,f):o}var _4=Jn(function(o,l){var f=o==null?0:o.length,g=td(o,l);return c0(o,ne(l,function(w){return Xn(w,f)?+w:w}).sort(C0)),g});function L4(o,l){var f=[];if(!(o&&o.length))return f;var g=-1,w=[],Q=o.length;for(l=cA(l,3);++g<Q;){var I=o[g];l(I,g,o)&&(f.push(I),w.push(g))}return c0(o,w),f}function Td(o){return o==null?o:vN.call(o)}function O4(o,l,f){var g=o==null?0:o.length;return g?(f&&typeof f!="number"&&ct(o,l,f)?(l=0,f=g):(l=l==null?0:CA(l),f=f===e?g:CA(f)),zt(o,l,f)):[]}function k4(o,l){return Ll(o,l)}function M4(o,l,f){return dd(o,l,cA(f,2))}function D4(o,l){var f=o==null?0:o.length;if(f){var g=Ll(o,l);if(g<f&&un(o[g],l))return g}return-1}function N4(o,l){return Ll(o,l,!0)}function R4(o,l,f){return dd(o,l,cA(f,2),!0)}function K4(o,l){var f=o==null?0:o.length;if(f){var g=Ll(o,l,!0)-1;if(un(o[g],l))return g}return-1}function V4(o){return o&&o.length?f0(o):[]}function P4(o,l){return o&&o.length?f0(o,cA(l,2)):[]}function G4(o){var l=o==null?0:o.length;return l?zt(o,1,l):[]}function W4(o,l,f){return o&&o.length?(l=f||l===e?1:CA(l),zt(o,0,l<0?0:l)):[]}function $4(o,l,f){var g=o==null?0:o.length;return g?(l=f||l===e?1:CA(l),l=g-l,zt(o,l<0?0:l,g)):[]}function J4(o,l){return o&&o.length?Ol(o,cA(l,3),!1,!0):[]}function X4(o,l){return o&&o.length?Ol(o,cA(l,3)):[]}var Y4=UA(function(o){return Hr(Pe(o,1,de,!0))}),z4=UA(function(o){var l=qt(o);return de(l)&&(l=e),Hr(Pe(o,1,de,!0),cA(l,2))}),q4=UA(function(o){var l=qt(o);return l=typeof l=="function"?l:e,Hr(Pe(o,1,de,!0),e,l)});function Z4(o){return o&&o.length?Hr(o):[]}function j4(o,l){return o&&o.length?Hr(o,cA(l,2)):[]}function AK(o,l){return l=typeof l=="function"?l:e,o&&o.length?Hr(o,e,l):[]}function xd(o){if(!(o&&o.length))return[];var l=0;return o=vr(o,function(f){if(de(f))return l=be(f.length,l),!0}),Xf(l,function(f){return ne(o,Wf(f))})}function Z0(o,l){if(!(o&&o.length))return[];var f=xd(o);return l==null?f:ne(f,function(g){return xt(l,e,g)})}var eK=UA(function(o,l){return de(o)?Bo(o,l):[]}),tK=UA(function(o){return pd(vr(o,de))}),nK=UA(function(o){var l=qt(o);return de(l)&&(l=e),pd(vr(o,de),cA(l,2))}),rK=UA(function(o){var l=qt(o);return l=typeof l=="function"?l:e,pd(vr(o,de),e,l)}),iK=UA(xd);function sK(o,l){return g0(o||[],l||[],go)}function oK(o,l){return g0(o||[],l||[],Co)}var aK=UA(function(o){var l=o.length,f=l>1?o[l-1]:e;return f=typeof f=="function"?(o.pop(),f):e,Z0(o,f)});function j0(o){var l=y(o);return l.__chain__=!0,l}function lK(o,l){return l(o),o}function Gl(o,l){return l(o)}var cK=Jn(function(o){var l=o.length,f=l?o[0]:0,g=this.__wrapped__,w=function(Q){return td(Q,o)};return l>1||this.__actions__.length||!(g instanceof _A)||!Xn(f)?this.thru(w):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:Gl,args:[w],thisArg:e}),new Xt(g,this.__chain__).thru(function(Q){return l&&!Q.length&&Q.push(e),Q}))});function uK(){return j0(this)}function fK(){return new Xt(this.value(),this.__chain__)}function dK(){this.__values__===e&&(this.__values__=dy(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function hK(){return this}function pK(o){for(var l,f=this;f instanceof Sl;){var g=$0(f);g.__index__=0,g.__values__=e,l?w.__wrapped__=g:l=g;var w=g;f=f.__wrapped__}return w.__wrapped__=o,l}function gK(){var o=this.__wrapped__;if(o instanceof _A){var l=o;return this.__actions__.length&&(l=new _A(this)),l=l.reverse(),l.__actions__.push({func:Gl,args:[Td],thisArg:e}),new Xt(l,this.__chain__)}return this.thru(Td)}function BK(){return p0(this.__wrapped__,this.__actions__)}var mK=kl(function(o,l,f){VA.call(o,f)?++o[f]:Wn(o,f,1)});function wK(o,l,f){var g=BA(o)?IC:lR;return f&&ct(o,l,f)&&(l=e),g(o,cA(l,3))}function CK(o,l){var f=BA(o)?vr:ZC;return f(o,cA(l,3))}var yK=b0(J0),QK=b0(X0);function EK(o,l){return Pe(Wl(o,l),1)}function FK(o,l){return Pe(Wl(o,l),vA)}function UK(o,l,f){return f=f===e?1:CA(f),Pe(Wl(o,l),f)}function Ay(o,l){var f=BA(o)?$t:xr;return f(o,cA(l,3))}function ey(o,l){var f=BA(o)?GD:qC;return f(o,cA(l,3))}var bK=kl(function(o,l,f){VA.call(o,f)?o[f].push(l):Wn(o,f,[l])});function vK(o,l,f,g){o=wt(o)?o:fs(o),f=f&&!g?CA(f):0;var w=o.length;return f<0&&(f=be(w+f,0)),zl(o)?f<=w&&o.indexOf(l,f)>-1:!!w&&ji(o,l,f)>-1}var IK=UA(function(o,l,f){var g=-1,w=typeof l=="function",Q=wt(o)?M(o.length):[];return xr(o,function(I){Q[++g]=w?xt(l,I,f):mo(I,l,f)}),Q}),SK=kl(function(o,l,f){Wn(o,f,l)});function Wl(o,l){var f=BA(o)?ne:r0;return f(o,cA(l,3))}function TK(o,l,f,g){return o==null?[]:(BA(l)||(l=l==null?[]:[l]),f=g?e:f,BA(f)||(f=f==null?[]:[f]),a0(o,l,f))}var xK=kl(function(o,l,f){o[f?0:1].push(l)},function(){return[[],[]]});function HK(o,l,f){var g=BA(o)?Pf:HC,w=arguments.length<3;return g(o,cA(l,4),f,w,xr)}function _K(o,l,f){var g=BA(o)?WD:HC,w=arguments.length<3;return g(o,cA(l,4),f,w,qC)}function LK(o,l){var f=BA(o)?vr:ZC;return f(o,Xl(cA(l,3)))}function OK(o){var l=BA(o)?JC:vR;return l(o)}function kK(o,l,f){(f?ct(o,l,f):l===e)?l=1:l=CA(l);var g=BA(o)?rR:IR;return g(o,l)}function MK(o){var l=BA(o)?iR:TR;return l(o)}function DK(o){if(o==null)return 0;if(wt(o))return zl(o)?es(o):o.length;var l=Ze(o);return l==b||l==Re?o.size:ad(o).length}function NK(o,l,f){var g=BA(o)?Gf:xR;return f&&ct(o,l,f)&&(l=e),g(o,cA(l,3))}var RK=UA(function(o,l){if(o==null)return[];var f=l.length;return f>1&&ct(o,l[0],l[1])?l=[]:f>2&&ct(l[0],l[1],l[2])&&(l=[l[0]]),a0(o,Pe(l,1),[])}),$l=CN||function(){return Ve.Date.now()};function KK(o,l){if(typeof l!="function")throw new Jt(s);return o=CA(o),function(){if(--o<1)return l.apply(this,arguments)}}function ty(o,l,f){return l=f?e:l,l=o&&l==null?o.length:l,$n(o,N,e,e,e,e,l)}function ny(o,l){var f;if(typeof l!="function")throw new Jt(s);return o=CA(o),function(){return--o>0&&(f=l.apply(this,arguments)),o<=1&&(l=e),f}}var Hd=UA(function(o,l,f){var g=S;if(f.length){var w=Sr(f,cs(Hd));g|=T}return $n(o,g,l,f,w)}),ry=UA(function(o,l,f){var g=S|U;if(f.length){var w=Sr(f,cs(ry));g|=T}return $n(l,g,o,f,w)});function iy(o,l,f){l=f?e:l;var g=$n(o,k,e,e,e,e,e,l);return g.placeholder=iy.placeholder,g}function sy(o,l,f){l=f?e:l;var g=$n(o,F,e,e,e,e,e,l);return g.placeholder=sy.placeholder,g}function oy(o,l,f){var g,w,Q,I,x,O,P=0,G=!1,J=!1,z=!0;if(typeof o!="function")throw new Jt(s);l=Zt(l)||0,ie(f)&&(G=!!f.leading,J="maxWait"in f,Q=J?be(Zt(f.maxWait)||0,l):Q,z="trailing"in f?!!f.trailing:z);function sA(he){var fn=g,qn=w;return g=w=e,P=he,I=o.apply(qn,fn),I}function fA(he){return P=he,x=Eo(SA,l),G?sA(he):I}function EA(he){var fn=he-O,qn=he-P,by=l-fn;return J?qe(by,Q-qn):by}function dA(he){var fn=he-O,qn=he-P;return O===e||fn>=l||fn<0||J&&qn>=Q}function SA(){var he=$l();if(dA(he))return OA(he);x=Eo(SA,EA(he))}function OA(he){return x=e,z&&g?sA(he):(g=w=e,I)}function Ot(){x!==e&&B0(x),P=0,g=O=w=x=e}function ut(){return x===e?I:OA($l())}function kt(){var he=$l(),fn=dA(he);if(g=arguments,w=this,O=he,fn){if(x===e)return fA(O);if(J)return B0(x),x=Eo(SA,l),sA(O)}return x===e&&(x=Eo(SA,l)),I}return kt.cancel=Ot,kt.flush=ut,kt}var VK=UA(function(o,l){return zC(o,1,l)}),PK=UA(function(o,l,f){return zC(o,Zt(l)||0,f)});function GK(o){return $n(o,$)}function Jl(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new Jt(s);var f=function(){var g=arguments,w=l?l.apply(this,g):g[0],Q=f.cache;if(Q.has(w))return Q.get(w);var I=o.apply(this,g);return f.cache=Q.set(w,I)||Q,I};return f.cache=new(Jl.Cache||Gn),f}Jl.Cache=Gn;function Xl(o){if(typeof o!="function")throw new Jt(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 WK(o){return ny(2,o)}var $K=HR(function(o,l){l=l.length==1&&BA(l[0])?ne(l[0],Ht(cA())):ne(Pe(l,1),Ht(cA()));var f=l.length;return UA(function(g){for(var w=-1,Q=qe(g.length,f);++w<Q;)g[w]=l[w].call(this,g[w]);return xt(o,this,g)})}),_d=UA(function(o,l){var f=Sr(l,cs(_d));return $n(o,T,e,l,f)}),ay=UA(function(o,l){var f=Sr(l,cs(ay));return $n(o,_,e,l,f)}),JK=Jn(function(o,l){return $n(o,W,e,e,e,l)});function XK(o,l){if(typeof o!="function")throw new Jt(s);return l=l===e?l:CA(l),UA(o,l)}function YK(o,l){if(typeof o!="function")throw new Jt(s);return l=l==null?0:be(CA(l),0),UA(function(f){var g=f[l],w=Lr(f,0,l);return g&&Ir(w,g),xt(o,this,w)})}function zK(o,l,f){var g=!0,w=!0;if(typeof o!="function")throw new Jt(s);return ie(f)&&(g="leading"in f?!!f.leading:g,w="trailing"in f?!!f.trailing:w),oy(o,l,{leading:g,maxWait:l,trailing:w})}function qK(o){return ty(o,1)}function ZK(o,l){return _d(Bd(l),o)}function jK(){if(!arguments.length)return[];var o=arguments[0];return BA(o)?o:[o]}function AV(o){return Yt(o,m)}function eV(o,l){return l=typeof l=="function"?l:e,Yt(o,m,l)}function tV(o){return Yt(o,p|m)}function nV(o,l){return l=typeof l=="function"?l:e,Yt(o,p|m,l)}function rV(o,l){return l==null||YC(o,l,xe(l))}function un(o,l){return o===l||o!==o&&l!==l}var iV=Rl(id),sV=Rl(function(o,l){return o>=l}),fi=e0(function(){return arguments}())?e0:function(o){return ae(o)&&VA.call(o,"callee")&&!KC.call(o,"callee")},BA=M.isArray,oV=QC?Ht(QC):pR;function wt(o){return o!=null&&Yl(o.length)&&!Yn(o)}function de(o){return ae(o)&&wt(o)}function aV(o){return o===!0||o===!1||ae(o)&<(o)==st}var Or=QN||Gd,lV=EC?Ht(EC):gR;function cV(o){return ae(o)&&o.nodeType===1&&!Fo(o)}function uV(o){if(o==null)return!0;if(wt(o)&&(BA(o)||typeof o=="string"||typeof o.splice=="function"||Or(o)||us(o)||fi(o)))return!o.length;var l=Ze(o);if(l==b||l==Re)return!o.size;if(Qo(o))return!ad(o).length;for(var f in o)if(VA.call(o,f))return!1;return!0}function fV(o,l){return wo(o,l)}function dV(o,l,f){f=typeof f=="function"?f:e;var g=f?f(o,l):e;return g===e?wo(o,l,e,f):!!g}function Ld(o){if(!ae(o))return!1;var l=lt(o);return l==ot||l==De||typeof o.message=="string"&&typeof o.name=="string"&&!Fo(o)}function hV(o){return typeof o=="number"&&PC(o)}function Yn(o){if(!ie(o))return!1;var l=lt(o);return l==It||l==H||l==it||l==at}function ly(o){return typeof o=="number"&&o==CA(o)}function Yl(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=mA}function ie(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function ae(o){return o!=null&&typeof o=="object"}var cy=FC?Ht(FC):mR;function pV(o,l){return o===l||od(o,l,Fd(l))}function gV(o,l,f){return f=typeof f=="function"?f:e,od(o,l,Fd(l),f)}function BV(o){return uy(o)&&o!=+o}function mV(o){if(e4(o))throw new pA(i);return t0(o)}function wV(o){return o===null}function CV(o){return o==null}function uy(o){return typeof o=="number"||ae(o)&<(o)==D}function Fo(o){if(!ae(o)||lt(o)!=oA)return!1;var l=Ql(o);if(l===null)return!0;var f=VA.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&ml.call(f)==gN}var Od=UC?Ht(UC):wR;function yV(o){return ly(o)&&o>=-mA&&o<=mA}var fy=bC?Ht(bC):CR;function zl(o){return typeof o=="string"||!BA(o)&&ae(o)&<(o)==KA}function Lt(o){return typeof o=="symbol"||ae(o)&<(o)==V}var us=vC?Ht(vC):yR;function QV(o){return o===e}function EV(o){return ae(o)&&Ze(o)==oe}function FV(o){return ae(o)&<(o)==Fe}var UV=Rl(ld),bV=Rl(function(o,l){return o<=l});function dy(o){if(!o)return[];if(wt(o))return zl(o)?ln(o):mt(o);if(co&&o[co])return rN(o[co]());var l=Ze(o),f=l==b?zf:l==Re?pl:fs;return f(o)}function zn(o){if(!o)return o===0?o:0;if(o=Zt(o),o===vA||o===-vA){var l=o<0?-1:1;return l*re}return o===o?o:0}function CA(o){var l=zn(o),f=l%1;return l===l?f?l-f:l:0}function hy(o){return o?ai(CA(o),0,$A):0}function Zt(o){if(typeof o=="number")return o;if(Lt(o))return ZA;if(ie(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=ie(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=_C(o);var f=oD.test(o);return f||lD.test(o)?KD(o.slice(2),f?2:8):sD.test(o)?ZA:+o}function py(o){return bn(o,Ct(o))}function vV(o){return o?ai(CA(o),-mA,mA):o===0?o:0}function RA(o){return o==null?"":_t(o)}var IV=as(function(o,l){if(Qo(l)||wt(l)){bn(l,xe(l),o);return}for(var f in l)VA.call(l,f)&&go(o,f,l[f])}),gy=as(function(o,l){bn(l,Ct(l),o)}),ql=as(function(o,l,f,g){bn(l,Ct(l),o,g)}),SV=as(function(o,l,f,g){bn(l,xe(l),o,g)}),TV=Jn(td);function xV(o,l){var f=ss(o);return l==null?f:XC(f,l)}var HV=UA(function(o,l){o=XA(o);var f=-1,g=l.length,w=g>2?l[2]:e;for(w&&ct(l[0],l[1],w)&&(g=1);++f<g;)for(var Q=l[f],I=Ct(Q),x=-1,O=I.length;++x<O;){var P=I[x],G=o[P];(G===e||un(G,ns[P])&&!VA.call(o,P))&&(o[P]=Q[P])}return o}),_V=UA(function(o){return o.push(e,_0),xt(By,e,o)});function LV(o,l){return SC(o,cA(l,3),Un)}function OV(o,l){return SC(o,cA(l,3),rd)}function kV(o,l){return o==null?o:nd(o,cA(l,3),Ct)}function MV(o,l){return o==null?o:jC(o,cA(l,3),Ct)}function DV(o,l){return o&&Un(o,cA(l,3))}function NV(o,l){return o&&rd(o,cA(l,3))}function RV(o){return o==null?[]:Hl(o,xe(o))}function KV(o){return o==null?[]:Hl(o,Ct(o))}function kd(o,l,f){var g=o==null?e:li(o,l);return g===e?f:g}function VV(o,l){return o!=null&&k0(o,l,uR)}function Md(o,l){return o!=null&&k0(o,l,fR)}var PV=I0(function(o,l,f){l!=null&&typeof l.toString!="function"&&(l=wl.call(l)),o[l]=f},Nd(yt)),GV=I0(function(o,l,f){l!=null&&typeof l.toString!="function"&&(l=wl.call(l)),VA.call(o,l)?o[l].push(f):o[l]=[f]},cA),WV=UA(mo);function xe(o){return wt(o)?$C(o):ad(o)}function Ct(o){return wt(o)?$C(o,!0):QR(o)}function $V(o,l){var f={};return l=cA(l,3),Un(o,function(g,w,Q){Wn(f,l(g,w,Q),g)}),f}function JV(o,l){var f={};return l=cA(l,3),Un(o,function(g,w,Q){Wn(f,w,l(g,w,Q))}),f}var XV=as(function(o,l,f){_l(o,l,f)}),By=as(function(o,l,f,g){_l(o,l,f,g)}),YV=Jn(function(o,l){var f={};if(o==null)return f;var g=!1;l=ne(l,function(Q){return Q=_r(Q,o),g||(g=Q.length>1),Q}),bn(o,Qd(o),f),g&&(f=Yt(f,p|B|m,PR));for(var w=l.length;w--;)hd(f,l[w]);return f});function zV(o,l){return my(o,Xl(cA(l)))}var qV=Jn(function(o,l){return o==null?{}:FR(o,l)});function my(o,l){if(o==null)return{};var f=ne(Qd(o),function(g){return[g]});return l=cA(l),l0(o,f,function(g,w){return l(g,w[0])})}function ZV(o,l,f){l=_r(l,o);var g=-1,w=l.length;for(w||(w=1,o=e);++g<w;){var Q=o==null?e:o[vn(l[g])];Q===e&&(g=w,Q=f),o=Yn(Q)?Q.call(o):Q}return o}function jV(o,l,f){return o==null?o:Co(o,l,f)}function AP(o,l,f,g){return g=typeof g=="function"?g:e,o==null?o:Co(o,l,f,g)}var wy=x0(xe),Cy=x0(Ct);function eP(o,l,f){var g=BA(o),w=g||Or(o)||us(o);if(l=cA(l,4),f==null){var Q=o&&o.constructor;w?f=g?new Q:[]:ie(o)?f=Yn(Q)?ss(Ql(o)):{}:f={}}return(w?$t:Un)(o,function(I,x,O){return l(f,I,x,O)}),f}function tP(o,l){return o==null?!0:hd(o,l)}function nP(o,l,f){return o==null?o:h0(o,l,Bd(f))}function rP(o,l,f,g){return g=typeof g=="function"?g:e,o==null?o:h0(o,l,Bd(f),g)}function fs(o){return o==null?[]:Yf(o,xe(o))}function iP(o){return o==null?[]:Yf(o,Ct(o))}function sP(o,l,f){return f===e&&(f=l,l=e),f!==e&&(f=Zt(f),f=f===f?f:0),l!==e&&(l=Zt(l),l=l===l?l:0),ai(Zt(o),l,f)}function oP(o,l,f){return l=zn(l),f===e?(f=l,l=0):f=zn(f),o=Zt(o),dR(o,l,f)}function aP(o,l,f){if(f&&typeof f!="boolean"&&ct(o,l,f)&&(l=f=e),f===e&&(typeof l=="boolean"?(f=l,l=e):typeof o=="boolean"&&(f=o,o=e)),o===e&&l===e?(o=0,l=1):(o=zn(o),l===e?(l=o,o=0):l=zn(l)),o>l){var g=o;o=l,l=g}if(f||o%1||l%1){var w=GC();return qe(o+w*(l-o+RD("1e-"+((w+"").length-1))),l)}return ud(o,l)}var lP=ls(function(o,l,f){return l=l.toLowerCase(),o+(f?yy(l):l)});function yy(o){return Dd(RA(o).toLowerCase())}function Qy(o){return o=RA(o),o&&o.replace(uD,jD).replace(TD,"")}function cP(o,l,f){o=RA(o),l=_t(l);var g=o.length;f=f===e?g:ai(CA(f),0,g);var w=f;return f-=l.length,f>=0&&o.slice(f,w)==l}function uP(o){return o=RA(o),o&&oo.test(o)?o.replace(so,AN):o}function fP(o){return o=RA(o),o&&qM.test(o)?o.replace(_f,"\\$&"):o}var dP=ls(function(o,l,f){return o+(f?"-":"")+l.toLowerCase()}),hP=ls(function(o,l,f){return o+(f?" ":"")+l.toLowerCase()}),pP=U0("toLowerCase");function gP(o,l,f){o=RA(o),l=CA(l);var g=l?es(o):0;if(!l||g>=l)return o;var w=(l-g)/2;return Nl(bl(w),f)+o+Nl(Ul(w),f)}function BP(o,l,f){o=RA(o),l=CA(l);var g=l?es(o):0;return l&&g<l?o+Nl(l-g,f):o}function mP(o,l,f){o=RA(o),l=CA(l);var g=l?es(o):0;return l&&g<l?Nl(l-g,f)+o:o}function wP(o,l,f){return f||l==null?l=0:l&&(l=+l),bN(RA(o).replace(Lf,""),l||0)}function CP(o,l,f){return(f?ct(o,l,f):l===e)?l=1:l=CA(l),fd(RA(o),l)}function yP(){var o=arguments,l=RA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var QP=ls(function(o,l,f){return o+(f?"_":"")+l.toLowerCase()});function EP(o,l,f){return f&&typeof f!="number"&&ct(o,l,f)&&(l=f=e),f=f===e?$A:f>>>0,f?(o=RA(o),o&&(typeof l=="string"||l!=null&&!Od(l))&&(l=_t(l),!l&&As(o))?Lr(ln(o),0,f):o.split(l,f)):[]}var FP=ls(function(o,l,f){return o+(f?" ":"")+Dd(l)});function UP(o,l,f){return o=RA(o),f=f==null?0:ai(CA(f),0,o.length),l=_t(l),o.slice(f,f+l.length)==l}function bP(o,l,f){var g=y.templateSettings;f&&ct(o,l,f)&&(l=e),o=RA(o),l=ql({},l,g,H0);var w=ql({},l.imports,g.imports,H0),Q=xe(w),I=Yf(w,Q),x,O,P=0,G=l.interpolate||cl,J="__p += '",z=qf((l.escape||cl).source+"|"+G.source+"|"+(G===ll?iD:cl).source+"|"+(l.evaluate||cl).source+"|$","g"),sA="//# sourceURL="+(VA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++OD+"]")+`
|
|
147
|
-
`;o.replace(z,function(dA,SA,OA,Ot,ut,
|
|
146
|
+
`)}function ZR(o){return BA(o)||fi(o)||!!(VC&&o&&o[VC])}function Xn(o,l){var f=typeof o;return l=l??mA,!!l&&(f=="number"||f!="symbol"&&ck.test(o))&&o>-1&&o%1==0&&o<l}function ct(o,l,f){if(!ie(f))return!1;var g=typeof l;return(g=="number"?wt(f)&&Xn(l,f.length):g=="string"&&l in f)?un(f[l],o):!1}function bd(o,l){if(BA(o))return!1;var f=typeof o;return f=="number"||f=="symbol"||f=="boolean"||o==null||Lt(o)?!0:qi.test(o)||!ao.test(o)||l!=null&&o in XA(l)}function jR(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function vd(o){var l=Kl(o),f=y[l];if(typeof f!="function"||!(l in _A.prototype))return!1;if(o===f)return!0;var g=Ed(f);return!!g&&o===g[0]}function A4(o){return!!kC&&kC in o}var e4=Bl?Yn:Gd;function Qo(o){var l=o&&o.constructor,f=typeof l=="function"&&l.prototype||ns;return o===f}function k0(o){return o===o&&!ie(o)}function N0(o,l){return function(f){return f==null?!1:f[o]===l&&(l!==e||o in XA(f))}}function t4(o){var l=Jl(o,function(g){return f.size===u&&f.clear(),g}),f=l.cache;return l}function n4(o,l){var f=o[1],g=l[1],w=f|g,Q=w<(S|U|N),I=g==N&&f==M||g==N&&f==W&&o[7].length<=l[8]||g==(N|W)&&l[7].length<=l[8]&&f==M;if(!(Q||I))return o;g&S&&(o[2]=l[2],w|=f&S?0:v);var x=l[3];if(x){var O=o[3];o[3]=O?y0(O,x,l[4]):x,o[4]=O?Sr(o[3],d):l[4]}return x=l[5],x&&(O=o[5],o[5]=O?Q0(O,x,l[6]):x,o[6]=O?Sr(o[5],d):l[6]),x=l[7],x&&(o[7]=x),g&N&&(o[8]=o[8]==null?l[8]:qe(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=w,o}function r4(o){var l=[];if(o!=null)for(var f in XA(o))l.push(f);return l}function i4(o){return wl.call(o)}function R0(o,l,f){return l=be(l===e?o.length-1:l,0),function(){for(var g=arguments,w=-1,Q=be(g.length-l,0),I=D(Q);++w<Q;)I[w]=g[l+w];w=-1;for(var x=D(l+1);++w<l;)x[w]=g[w];return x[l]=f(I),xt(o,this,x)}}function K0(o,l){return l.length<2?o:li(o,zt(l,0,-1))}function s4(o,l){for(var f=o.length,g=qe(l.length,f),w=mt(o);g--;){var Q=l[g];o[g]=Xn(Q,f)?w[Q]:e}return o}function Id(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var V0=G0(u0),Eo=yN||function(o,l){return Ve.setTimeout(o,l)},Sd=G0(SR);function P0(o,l,f){var g=l+"";return Sd(o,qR(g,o4(XR(g),f)))}function G0(o){var l=0,f=0;return function(){var g=UN(),w=aA-(g-f);if(f=g,w>0){if(++l>=wA)return arguments[0]}else l=0;return o.apply(e,arguments)}}function Pl(o,l){var f=-1,g=o.length,w=g-1;for(l=l===e?g:l;++f<l;){var Q=ud(f,w),I=o[Q];o[Q]=o[f],o[f]=I}return o.length=l,o}var W0=t4(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(zD,function(f,g,w,Q){l.push(w?Q.replace(rk,"$1"):g||f)}),l});function vn(o){if(typeof o=="string"||Lt(o))return o;var l=o+"";return l=="0"&&1/o==-vA?"-0":l}function ui(o){if(o!=null){try{return ml.call(o)}catch{}try{return o+""}catch{}}return""}function o4(o,l){return $t(Te,function(f){var g="_."+f[0];l&f[1]&&!dl(o,g)&&o.push(g)}),o.sort()}function $0(o){if(o instanceof _A)return o.clone();var l=new Xt(o.__wrapped__,o.__chain__);return l.__actions__=mt(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function a4(o,l,f){(f?ct(o,l,f):l===e)?l=1:l=be(CA(l),0);var g=o==null?0:o.length;if(!g||l<1)return[];for(var w=0,Q=0,I=D(Ul(g/l));w<g;)I[Q++]=zt(o,w,w+=l);return I}function l4(o){for(var l=-1,f=o==null?0:o.length,g=0,w=[];++l<f;){var Q=o[l];Q&&(w[g++]=Q)}return w}function c4(){var o=arguments.length;if(!o)return[];for(var l=D(o-1),f=arguments[0],g=o;g--;)l[g-1]=arguments[g];return Ir(BA(f)?mt(f):[f],Pe(l,1))}var u4=UA(function(o,l){return de(o)?Bo(o,Pe(l,1,de,!0)):[]}),f4=UA(function(o,l){var f=qt(l);return de(f)&&(f=e),de(o)?Bo(o,Pe(l,1,de,!0),cA(f,2)):[]}),d4=UA(function(o,l){var f=qt(l);return de(f)&&(f=e),de(o)?Bo(o,Pe(l,1,de,!0),e,f):[]});function h4(o,l,f){var g=o==null?0:o.length;return g?(l=f||l===e?1:CA(l),zt(o,l<0?0:l,g)):[]}function p4(o,l,f){var g=o==null?0:o.length;return g?(l=f||l===e?1:CA(l),l=g-l,zt(o,0,l<0?0:l)):[]}function g4(o,l){return o&&o.length?Ol(o,cA(l,3),!0,!0):[]}function B4(o,l){return o&&o.length?Ol(o,cA(l,3),!0):[]}function m4(o,l,f,g){var w=o==null?0:o.length;return w?(f&&typeof f!="number"&&ct(o,l,f)&&(f=0,g=w),cR(o,l,f,g)):[]}function J0(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=f==null?0:CA(f);return w<0&&(w=be(g+w,0)),hl(o,cA(l,3),w)}function X0(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=g-1;return f!==e&&(w=CA(f),w=f<0?be(g+w,0):qe(w,g-1)),hl(o,cA(l,3),w,!0)}function Y0(o){var l=o==null?0:o.length;return l?Pe(o,1):[]}function w4(o){var l=o==null?0:o.length;return l?Pe(o,vA):[]}function C4(o,l){var f=o==null?0:o.length;return f?(l=l===e?1:CA(l),Pe(o,l)):[]}function y4(o){for(var l=-1,f=o==null?0:o.length,g={};++l<f;){var w=o[l];g[w[0]]=w[1]}return g}function z0(o){return o&&o.length?o[0]:e}function Q4(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=f==null?0:CA(f);return w<0&&(w=be(g+w,0)),ji(o,l,w)}function E4(o){var l=o==null?0:o.length;return l?zt(o,0,-1):[]}var F4=UA(function(o){var l=ne(o,gd);return l.length&&l[0]===o[0]?sd(l):[]}),U4=UA(function(o){var l=qt(o),f=ne(o,gd);return l===qt(f)?l=e:f.pop(),f.length&&f[0]===o[0]?sd(f,cA(l,2)):[]}),b4=UA(function(o){var l=qt(o),f=ne(o,gd);return l=typeof l=="function"?l:e,l&&f.pop(),f.length&&f[0]===o[0]?sd(f,e,l):[]});function v4(o,l){return o==null?"":EN.call(o,l)}function qt(o){var l=o==null?0:o.length;return l?o[l-1]:e}function I4(o,l,f){var g=o==null?0:o.length;if(!g)return-1;var w=g;return f!==e&&(w=CA(f),w=w<0?be(g+w,0):qe(w,g-1)),l===l?oN(o,l,w):hl(o,TC,w,!0)}function S4(o,l){return o&&o.length?o0(o,CA(l)):e}var T4=UA(q0);function q0(o,l){return o&&o.length&&l&&l.length?cd(o,l):o}function x4(o,l,f){return o&&o.length&&l&&l.length?cd(o,l,cA(f,2)):o}function H4(o,l,f){return o&&o.length&&l&&l.length?cd(o,l,e,f):o}var _4=Jn(function(o,l){var f=o==null?0:o.length,g=td(o,l);return c0(o,ne(l,function(w){return Xn(w,f)?+w:w}).sort(C0)),g});function L4(o,l){var f=[];if(!(o&&o.length))return f;var g=-1,w=[],Q=o.length;for(l=cA(l,3);++g<Q;){var I=o[g];l(I,g,o)&&(f.push(I),w.push(g))}return c0(o,w),f}function Td(o){return o==null?o:vN.call(o)}function O4(o,l,f){var g=o==null?0:o.length;return g?(f&&typeof f!="number"&&ct(o,l,f)?(l=0,f=g):(l=l==null?0:CA(l),f=f===e?g:CA(f)),zt(o,l,f)):[]}function M4(o,l){return Ll(o,l)}function D4(o,l,f){return dd(o,l,cA(f,2))}function k4(o,l){var f=o==null?0:o.length;if(f){var g=Ll(o,l);if(g<f&&un(o[g],l))return g}return-1}function N4(o,l){return Ll(o,l,!0)}function R4(o,l,f){return dd(o,l,cA(f,2),!0)}function K4(o,l){var f=o==null?0:o.length;if(f){var g=Ll(o,l,!0)-1;if(un(o[g],l))return g}return-1}function V4(o){return o&&o.length?f0(o):[]}function P4(o,l){return o&&o.length?f0(o,cA(l,2)):[]}function G4(o){var l=o==null?0:o.length;return l?zt(o,1,l):[]}function W4(o,l,f){return o&&o.length?(l=f||l===e?1:CA(l),zt(o,0,l<0?0:l)):[]}function $4(o,l,f){var g=o==null?0:o.length;return g?(l=f||l===e?1:CA(l),l=g-l,zt(o,l<0?0:l,g)):[]}function J4(o,l){return o&&o.length?Ol(o,cA(l,3),!1,!0):[]}function X4(o,l){return o&&o.length?Ol(o,cA(l,3)):[]}var Y4=UA(function(o){return Hr(Pe(o,1,de,!0))}),z4=UA(function(o){var l=qt(o);return de(l)&&(l=e),Hr(Pe(o,1,de,!0),cA(l,2))}),q4=UA(function(o){var l=qt(o);return l=typeof l=="function"?l:e,Hr(Pe(o,1,de,!0),e,l)});function Z4(o){return o&&o.length?Hr(o):[]}function j4(o,l){return o&&o.length?Hr(o,cA(l,2)):[]}function AK(o,l){return l=typeof l=="function"?l:e,o&&o.length?Hr(o,e,l):[]}function xd(o){if(!(o&&o.length))return[];var l=0;return o=vr(o,function(f){if(de(f))return l=be(f.length,l),!0}),Xf(l,function(f){return ne(o,Wf(f))})}function Z0(o,l){if(!(o&&o.length))return[];var f=xd(o);return l==null?f:ne(f,function(g){return xt(l,e,g)})}var eK=UA(function(o,l){return de(o)?Bo(o,l):[]}),tK=UA(function(o){return pd(vr(o,de))}),nK=UA(function(o){var l=qt(o);return de(l)&&(l=e),pd(vr(o,de),cA(l,2))}),rK=UA(function(o){var l=qt(o);return l=typeof l=="function"?l:e,pd(vr(o,de),e,l)}),iK=UA(xd);function sK(o,l){return g0(o||[],l||[],go)}function oK(o,l){return g0(o||[],l||[],Co)}var aK=UA(function(o){var l=o.length,f=l>1?o[l-1]:e;return f=typeof f=="function"?(o.pop(),f):e,Z0(o,f)});function j0(o){var l=y(o);return l.__chain__=!0,l}function lK(o,l){return l(o),o}function Gl(o,l){return l(o)}var cK=Jn(function(o){var l=o.length,f=l?o[0]:0,g=this.__wrapped__,w=function(Q){return td(Q,o)};return l>1||this.__actions__.length||!(g instanceof _A)||!Xn(f)?this.thru(w):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:Gl,args:[w],thisArg:e}),new Xt(g,this.__chain__).thru(function(Q){return l&&!Q.length&&Q.push(e),Q}))});function uK(){return j0(this)}function fK(){return new Xt(this.value(),this.__chain__)}function dK(){this.__values__===e&&(this.__values__=dy(this.value()));var o=this.__index__>=this.__values__.length,l=o?e:this.__values__[this.__index__++];return{done:o,value:l}}function hK(){return this}function pK(o){for(var l,f=this;f instanceof Sl;){var g=$0(f);g.__index__=0,g.__values__=e,l?w.__wrapped__=g:l=g;var w=g;f=f.__wrapped__}return w.__wrapped__=o,l}function gK(){var o=this.__wrapped__;if(o instanceof _A){var l=o;return this.__actions__.length&&(l=new _A(this)),l=l.reverse(),l.__actions__.push({func:Gl,args:[Td],thisArg:e}),new Xt(l,this.__chain__)}return this.thru(Td)}function BK(){return p0(this.__wrapped__,this.__actions__)}var mK=Ml(function(o,l,f){VA.call(o,f)?++o[f]:Wn(o,f,1)});function wK(o,l,f){var g=BA(o)?IC:lR;return f&&ct(o,l,f)&&(l=e),g(o,cA(l,3))}function CK(o,l){var f=BA(o)?vr:ZC;return f(o,cA(l,3))}var yK=b0(J0),QK=b0(X0);function EK(o,l){return Pe(Wl(o,l),1)}function FK(o,l){return Pe(Wl(o,l),vA)}function UK(o,l,f){return f=f===e?1:CA(f),Pe(Wl(o,l),f)}function Ay(o,l){var f=BA(o)?$t:xr;return f(o,cA(l,3))}function ey(o,l){var f=BA(o)?Gk:qC;return f(o,cA(l,3))}var bK=Ml(function(o,l,f){VA.call(o,f)?o[f].push(l):Wn(o,f,[l])});function vK(o,l,f,g){o=wt(o)?o:fs(o),f=f&&!g?CA(f):0;var w=o.length;return f<0&&(f=be(w+f,0)),zl(o)?f<=w&&o.indexOf(l,f)>-1:!!w&&ji(o,l,f)>-1}var IK=UA(function(o,l,f){var g=-1,w=typeof l=="function",Q=wt(o)?D(o.length):[];return xr(o,function(I){Q[++g]=w?xt(l,I,f):mo(I,l,f)}),Q}),SK=Ml(function(o,l,f){Wn(o,f,l)});function Wl(o,l){var f=BA(o)?ne:r0;return f(o,cA(l,3))}function TK(o,l,f,g){return o==null?[]:(BA(l)||(l=l==null?[]:[l]),f=g?e:f,BA(f)||(f=f==null?[]:[f]),a0(o,l,f))}var xK=Ml(function(o,l,f){o[f?0:1].push(l)},function(){return[[],[]]});function HK(o,l,f){var g=BA(o)?Pf:HC,w=arguments.length<3;return g(o,cA(l,4),f,w,xr)}function _K(o,l,f){var g=BA(o)?Wk:HC,w=arguments.length<3;return g(o,cA(l,4),f,w,qC)}function LK(o,l){var f=BA(o)?vr:ZC;return f(o,Xl(cA(l,3)))}function OK(o){var l=BA(o)?JC:vR;return l(o)}function MK(o,l,f){(f?ct(o,l,f):l===e)?l=1:l=CA(l);var g=BA(o)?rR:IR;return g(o,l)}function DK(o){var l=BA(o)?iR:TR;return l(o)}function kK(o){if(o==null)return 0;if(wt(o))return zl(o)?es(o):o.length;var l=Ze(o);return l==b||l==Re?o.size:ad(o).length}function NK(o,l,f){var g=BA(o)?Gf:xR;return f&&ct(o,l,f)&&(l=e),g(o,cA(l,3))}var RK=UA(function(o,l){if(o==null)return[];var f=l.length;return f>1&&ct(o,l[0],l[1])?l=[]:f>2&&ct(l[0],l[1],l[2])&&(l=[l[0]]),a0(o,Pe(l,1),[])}),$l=CN||function(){return Ve.Date.now()};function KK(o,l){if(typeof l!="function")throw new Jt(s);return o=CA(o),function(){if(--o<1)return l.apply(this,arguments)}}function ty(o,l,f){return l=f?e:l,l=o&&l==null?o.length:l,$n(o,N,e,e,e,e,l)}function ny(o,l){var f;if(typeof l!="function")throw new Jt(s);return o=CA(o),function(){return--o>0&&(f=l.apply(this,arguments)),o<=1&&(l=e),f}}var Hd=UA(function(o,l,f){var g=S;if(f.length){var w=Sr(f,cs(Hd));g|=T}return $n(o,g,l,f,w)}),ry=UA(function(o,l,f){var g=S|U;if(f.length){var w=Sr(f,cs(ry));g|=T}return $n(l,g,o,f,w)});function iy(o,l,f){l=f?e:l;var g=$n(o,M,e,e,e,e,e,l);return g.placeholder=iy.placeholder,g}function sy(o,l,f){l=f?e:l;var g=$n(o,F,e,e,e,e,e,l);return g.placeholder=sy.placeholder,g}function oy(o,l,f){var g,w,Q,I,x,O,P=0,G=!1,J=!1,z=!0;if(typeof o!="function")throw new Jt(s);l=Zt(l)||0,ie(f)&&(G=!!f.leading,J="maxWait"in f,Q=J?be(Zt(f.maxWait)||0,l):Q,z="trailing"in f?!!f.trailing:z);function sA(he){var fn=g,qn=w;return g=w=e,P=he,I=o.apply(qn,fn),I}function fA(he){return P=he,x=Eo(SA,l),G?sA(he):I}function EA(he){var fn=he-O,qn=he-P,by=l-fn;return J?qe(by,Q-qn):by}function dA(he){var fn=he-O,qn=he-P;return O===e||fn>=l||fn<0||J&&qn>=Q}function SA(){var he=$l();if(dA(he))return OA(he);x=Eo(SA,EA(he))}function OA(he){return x=e,z&&g?sA(he):(g=w=e,I)}function Ot(){x!==e&&B0(x),P=0,g=O=w=x=e}function ut(){return x===e?I:OA($l())}function Mt(){var he=$l(),fn=dA(he);if(g=arguments,w=this,O=he,fn){if(x===e)return fA(O);if(J)return B0(x),x=Eo(SA,l),sA(O)}return x===e&&(x=Eo(SA,l)),I}return Mt.cancel=Ot,Mt.flush=ut,Mt}var VK=UA(function(o,l){return zC(o,1,l)}),PK=UA(function(o,l,f){return zC(o,Zt(l)||0,f)});function GK(o){return $n(o,$)}function Jl(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new Jt(s);var f=function(){var g=arguments,w=l?l.apply(this,g):g[0],Q=f.cache;if(Q.has(w))return Q.get(w);var I=o.apply(this,g);return f.cache=Q.set(w,I)||Q,I};return f.cache=new(Jl.Cache||Gn),f}Jl.Cache=Gn;function Xl(o){if(typeof o!="function")throw new Jt(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 WK(o){return ny(2,o)}var $K=HR(function(o,l){l=l.length==1&&BA(l[0])?ne(l[0],Ht(cA())):ne(Pe(l,1),Ht(cA()));var f=l.length;return UA(function(g){for(var w=-1,Q=qe(g.length,f);++w<Q;)g[w]=l[w].call(this,g[w]);return xt(o,this,g)})}),_d=UA(function(o,l){var f=Sr(l,cs(_d));return $n(o,T,e,l,f)}),ay=UA(function(o,l){var f=Sr(l,cs(ay));return $n(o,_,e,l,f)}),JK=Jn(function(o,l){return $n(o,W,e,e,e,l)});function XK(o,l){if(typeof o!="function")throw new Jt(s);return l=l===e?l:CA(l),UA(o,l)}function YK(o,l){if(typeof o!="function")throw new Jt(s);return l=l==null?0:be(CA(l),0),UA(function(f){var g=f[l],w=Lr(f,0,l);return g&&Ir(w,g),xt(o,this,w)})}function zK(o,l,f){var g=!0,w=!0;if(typeof o!="function")throw new Jt(s);return ie(f)&&(g="leading"in f?!!f.leading:g,w="trailing"in f?!!f.trailing:w),oy(o,l,{leading:g,maxWait:l,trailing:w})}function qK(o){return ty(o,1)}function ZK(o,l){return _d(Bd(l),o)}function jK(){if(!arguments.length)return[];var o=arguments[0];return BA(o)?o:[o]}function AV(o){return Yt(o,m)}function eV(o,l){return l=typeof l=="function"?l:e,Yt(o,m,l)}function tV(o){return Yt(o,p|m)}function nV(o,l){return l=typeof l=="function"?l:e,Yt(o,p|m,l)}function rV(o,l){return l==null||YC(o,l,xe(l))}function un(o,l){return o===l||o!==o&&l!==l}var iV=Rl(id),sV=Rl(function(o,l){return o>=l}),fi=e0(function(){return arguments}())?e0:function(o){return ae(o)&&VA.call(o,"callee")&&!KC.call(o,"callee")},BA=D.isArray,oV=QC?Ht(QC):pR;function wt(o){return o!=null&&Yl(o.length)&&!Yn(o)}function de(o){return ae(o)&&wt(o)}function aV(o){return o===!0||o===!1||ae(o)&<(o)==st}var Or=QN||Gd,lV=EC?Ht(EC):gR;function cV(o){return ae(o)&&o.nodeType===1&&!Fo(o)}function uV(o){if(o==null)return!0;if(wt(o)&&(BA(o)||typeof o=="string"||typeof o.splice=="function"||Or(o)||us(o)||fi(o)))return!o.length;var l=Ze(o);if(l==b||l==Re)return!o.size;if(Qo(o))return!ad(o).length;for(var f in o)if(VA.call(o,f))return!1;return!0}function fV(o,l){return wo(o,l)}function dV(o,l,f){f=typeof f=="function"?f:e;var g=f?f(o,l):e;return g===e?wo(o,l,e,f):!!g}function Ld(o){if(!ae(o))return!1;var l=lt(o);return l==ot||l==ke||typeof o.message=="string"&&typeof o.name=="string"&&!Fo(o)}function hV(o){return typeof o=="number"&&PC(o)}function Yn(o){if(!ie(o))return!1;var l=lt(o);return l==It||l==H||l==it||l==at}function ly(o){return typeof o=="number"&&o==CA(o)}function Yl(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=mA}function ie(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function ae(o){return o!=null&&typeof o=="object"}var cy=FC?Ht(FC):mR;function pV(o,l){return o===l||od(o,l,Fd(l))}function gV(o,l,f){return f=typeof f=="function"?f:e,od(o,l,Fd(l),f)}function BV(o){return uy(o)&&o!=+o}function mV(o){if(e4(o))throw new pA(i);return t0(o)}function wV(o){return o===null}function CV(o){return o==null}function uy(o){return typeof o=="number"||ae(o)&<(o)==k}function Fo(o){if(!ae(o)||lt(o)!=oA)return!1;var l=Ql(o);if(l===null)return!0;var f=VA.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&ml.call(f)==gN}var Od=UC?Ht(UC):wR;function yV(o){return ly(o)&&o>=-mA&&o<=mA}var fy=bC?Ht(bC):CR;function zl(o){return typeof o=="string"||!BA(o)&&ae(o)&<(o)==KA}function Lt(o){return typeof o=="symbol"||ae(o)&<(o)==V}var us=vC?Ht(vC):yR;function QV(o){return o===e}function EV(o){return ae(o)&&Ze(o)==oe}function FV(o){return ae(o)&<(o)==Fe}var UV=Rl(ld),bV=Rl(function(o,l){return o<=l});function dy(o){if(!o)return[];if(wt(o))return zl(o)?ln(o):mt(o);if(co&&o[co])return rN(o[co]());var l=Ze(o),f=l==b?zf:l==Re?pl:fs;return f(o)}function zn(o){if(!o)return o===0?o:0;if(o=Zt(o),o===vA||o===-vA){var l=o<0?-1:1;return l*re}return o===o?o:0}function CA(o){var l=zn(o),f=l%1;return l===l?f?l-f:l:0}function hy(o){return o?ai(CA(o),0,$A):0}function Zt(o){if(typeof o=="number")return o;if(Lt(o))return ZA;if(ie(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=ie(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=_C(o);var f=ok.test(o);return f||lk.test(o)?Kk(o.slice(2),f?2:8):sk.test(o)?ZA:+o}function py(o){return bn(o,Ct(o))}function vV(o){return o?ai(CA(o),-mA,mA):o===0?o:0}function RA(o){return o==null?"":_t(o)}var IV=as(function(o,l){if(Qo(l)||wt(l)){bn(l,xe(l),o);return}for(var f in l)VA.call(l,f)&&go(o,f,l[f])}),gy=as(function(o,l){bn(l,Ct(l),o)}),ql=as(function(o,l,f,g){bn(l,Ct(l),o,g)}),SV=as(function(o,l,f,g){bn(l,xe(l),o,g)}),TV=Jn(td);function xV(o,l){var f=ss(o);return l==null?f:XC(f,l)}var HV=UA(function(o,l){o=XA(o);var f=-1,g=l.length,w=g>2?l[2]:e;for(w&&ct(l[0],l[1],w)&&(g=1);++f<g;)for(var Q=l[f],I=Ct(Q),x=-1,O=I.length;++x<O;){var P=I[x],G=o[P];(G===e||un(G,ns[P])&&!VA.call(o,P))&&(o[P]=Q[P])}return o}),_V=UA(function(o){return o.push(e,_0),xt(By,e,o)});function LV(o,l){return SC(o,cA(l,3),Un)}function OV(o,l){return SC(o,cA(l,3),rd)}function MV(o,l){return o==null?o:nd(o,cA(l,3),Ct)}function DV(o,l){return o==null?o:jC(o,cA(l,3),Ct)}function kV(o,l){return o&&Un(o,cA(l,3))}function NV(o,l){return o&&rd(o,cA(l,3))}function RV(o){return o==null?[]:Hl(o,xe(o))}function KV(o){return o==null?[]:Hl(o,Ct(o))}function Md(o,l,f){var g=o==null?e:li(o,l);return g===e?f:g}function VV(o,l){return o!=null&&M0(o,l,uR)}function Dd(o,l){return o!=null&&M0(o,l,fR)}var PV=I0(function(o,l,f){l!=null&&typeof l.toString!="function"&&(l=wl.call(l)),o[l]=f},Nd(yt)),GV=I0(function(o,l,f){l!=null&&typeof l.toString!="function"&&(l=wl.call(l)),VA.call(o,l)?o[l].push(f):o[l]=[f]},cA),WV=UA(mo);function xe(o){return wt(o)?$C(o):ad(o)}function Ct(o){return wt(o)?$C(o,!0):QR(o)}function $V(o,l){var f={};return l=cA(l,3),Un(o,function(g,w,Q){Wn(f,l(g,w,Q),g)}),f}function JV(o,l){var f={};return l=cA(l,3),Un(o,function(g,w,Q){Wn(f,w,l(g,w,Q))}),f}var XV=as(function(o,l,f){_l(o,l,f)}),By=as(function(o,l,f,g){_l(o,l,f,g)}),YV=Jn(function(o,l){var f={};if(o==null)return f;var g=!1;l=ne(l,function(Q){return Q=_r(Q,o),g||(g=Q.length>1),Q}),bn(o,Qd(o),f),g&&(f=Yt(f,p|B|m,PR));for(var w=l.length;w--;)hd(f,l[w]);return f});function zV(o,l){return my(o,Xl(cA(l)))}var qV=Jn(function(o,l){return o==null?{}:FR(o,l)});function my(o,l){if(o==null)return{};var f=ne(Qd(o),function(g){return[g]});return l=cA(l),l0(o,f,function(g,w){return l(g,w[0])})}function ZV(o,l,f){l=_r(l,o);var g=-1,w=l.length;for(w||(w=1,o=e);++g<w;){var Q=o==null?e:o[vn(l[g])];Q===e&&(g=w,Q=f),o=Yn(Q)?Q.call(o):Q}return o}function jV(o,l,f){return o==null?o:Co(o,l,f)}function AP(o,l,f,g){return g=typeof g=="function"?g:e,o==null?o:Co(o,l,f,g)}var wy=x0(xe),Cy=x0(Ct);function eP(o,l,f){var g=BA(o),w=g||Or(o)||us(o);if(l=cA(l,4),f==null){var Q=o&&o.constructor;w?f=g?new Q:[]:ie(o)?f=Yn(Q)?ss(Ql(o)):{}:f={}}return(w?$t:Un)(o,function(I,x,O){return l(f,I,x,O)}),f}function tP(o,l){return o==null?!0:hd(o,l)}function nP(o,l,f){return o==null?o:h0(o,l,Bd(f))}function rP(o,l,f,g){return g=typeof g=="function"?g:e,o==null?o:h0(o,l,Bd(f),g)}function fs(o){return o==null?[]:Yf(o,xe(o))}function iP(o){return o==null?[]:Yf(o,Ct(o))}function sP(o,l,f){return f===e&&(f=l,l=e),f!==e&&(f=Zt(f),f=f===f?f:0),l!==e&&(l=Zt(l),l=l===l?l:0),ai(Zt(o),l,f)}function oP(o,l,f){return l=zn(l),f===e?(f=l,l=0):f=zn(f),o=Zt(o),dR(o,l,f)}function aP(o,l,f){if(f&&typeof f!="boolean"&&ct(o,l,f)&&(l=f=e),f===e&&(typeof l=="boolean"?(f=l,l=e):typeof o=="boolean"&&(f=o,o=e)),o===e&&l===e?(o=0,l=1):(o=zn(o),l===e?(l=o,o=0):l=zn(l)),o>l){var g=o;o=l,l=g}if(f||o%1||l%1){var w=GC();return qe(o+w*(l-o+Rk("1e-"+((w+"").length-1))),l)}return ud(o,l)}var lP=ls(function(o,l,f){return l=l.toLowerCase(),o+(f?yy(l):l)});function yy(o){return kd(RA(o).toLowerCase())}function Qy(o){return o=RA(o),o&&o.replace(uk,jk).replace(Tk,"")}function cP(o,l,f){o=RA(o),l=_t(l);var g=o.length;f=f===e?g:ai(CA(f),0,g);var w=f;return f-=l.length,f>=0&&o.slice(f,w)==l}function uP(o){return o=RA(o),o&&oo.test(o)?o.replace(so,AN):o}function fP(o){return o=RA(o),o&&qD.test(o)?o.replace(_f,"\\$&"):o}var dP=ls(function(o,l,f){return o+(f?"-":"")+l.toLowerCase()}),hP=ls(function(o,l,f){return o+(f?" ":"")+l.toLowerCase()}),pP=U0("toLowerCase");function gP(o,l,f){o=RA(o),l=CA(l);var g=l?es(o):0;if(!l||g>=l)return o;var w=(l-g)/2;return Nl(bl(w),f)+o+Nl(Ul(w),f)}function BP(o,l,f){o=RA(o),l=CA(l);var g=l?es(o):0;return l&&g<l?o+Nl(l-g,f):o}function mP(o,l,f){o=RA(o),l=CA(l);var g=l?es(o):0;return l&&g<l?Nl(l-g,f)+o:o}function wP(o,l,f){return f||l==null?l=0:l&&(l=+l),bN(RA(o).replace(Lf,""),l||0)}function CP(o,l,f){return(f?ct(o,l,f):l===e)?l=1:l=CA(l),fd(RA(o),l)}function yP(){var o=arguments,l=RA(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var QP=ls(function(o,l,f){return o+(f?"_":"")+l.toLowerCase()});function EP(o,l,f){return f&&typeof f!="number"&&ct(o,l,f)&&(l=f=e),f=f===e?$A:f>>>0,f?(o=RA(o),o&&(typeof l=="string"||l!=null&&!Od(l))&&(l=_t(l),!l&&As(o))?Lr(ln(o),0,f):o.split(l,f)):[]}var FP=ls(function(o,l,f){return o+(f?" ":"")+kd(l)});function UP(o,l,f){return o=RA(o),f=f==null?0:ai(CA(f),0,o.length),l=_t(l),o.slice(f,f+l.length)==l}function bP(o,l,f){var g=y.templateSettings;f&&ct(o,l,f)&&(l=e),o=RA(o),l=ql({},l,g,H0);var w=ql({},l.imports,g.imports,H0),Q=xe(w),I=Yf(w,Q),x,O,P=0,G=l.interpolate||cl,J="__p += '",z=qf((l.escape||cl).source+"|"+G.source+"|"+(G===ll?ik:cl).source+"|"+(l.evaluate||cl).source+"|$","g"),sA="//# sourceURL="+(VA.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ok+"]")+`
|
|
147
|
+
`;o.replace(z,function(dA,SA,OA,Ot,ut,Mt){return OA||(OA=Ot),J+=o.slice(P,Mt).replace(fk,eN),SA&&(x=!0,J+=`' +
|
|
148
148
|
__e(`+SA+`) +
|
|
149
149
|
'`),ut&&(O=!0,J+=`';
|
|
150
150
|
`+ut+`;
|
|
151
151
|
__p += '`),OA&&(J+=`' +
|
|
152
152
|
((__t = (`+OA+`)) == null ? '' : __t) +
|
|
153
|
-
'`),P=
|
|
153
|
+
'`),P=Mt+dA.length,dA}),J+=`';
|
|
154
154
|
`;var fA=VA.call(l,"variable")&&l.variable;if(!fA)J=`with (obj) {
|
|
155
155
|
`+J+`
|
|
156
156
|
}
|
|
157
|
-
`;else if(
|
|
157
|
+
`;else if(nk.test(fA))throw new pA(a);J=(O?J.replace(LA,""):J).replace(Ke,"$1").replace(Bt,"$1;"),J="function("+(fA||"obj")+`) {
|
|
158
158
|
`+(fA?"":`obj || (obj = {});
|
|
159
159
|
`)+"var __t, __p = ''"+(x?", __e = _.escape":"")+(O?`, __j = Array.prototype.join;
|
|
160
160
|
function print() { __p += __j.call(arguments, '') }
|
|
161
161
|
`:`;
|
|
162
162
|
`)+J+`return __p
|
|
163
|
-
}`;var EA=Fy(function(){return DA(Q,sA+"return "+J).apply(e,I)});if(EA.source=J,Ld(EA))throw EA;return EA}function vP(o){return RA(o).toLowerCase()}function IP(o){return RA(o).toUpperCase()}function SP(o,l,f){if(o=RA(o),o&&(f||l===e))return _C(o);if(!o||!(l=_t(l)))return o;var g=ln(o),w=ln(l),Q=LC(g,w),I=OC(g,w)+1;return Lr(g,Q,I).join("")}function TP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.slice(0,MC(o)+1);if(!o||!(l=_t(l)))return o;var g=ln(o),w=OC(g,ln(l))+1;return Lr(g,0,w).join("")}function xP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.replace(Lf,"");if(!o||!(l=_t(l)))return o;var g=ln(o),w=LC(g,ln(l));return Lr(g,w).join("")}function HP(o,l){var f=eA,g=gA;if(ie(l)){var w="separator"in l?l.separator:w;f="length"in l?CA(l.length):f,g="omission"in l?_t(l.omission):g}o=RA(o);var Q=o.length;if(As(o)){var I=ln(o);Q=I.length}if(f>=Q)return o;var x=f-es(g);if(x<1)return g;var O=I?Lr(I,0,x).join(""):o.slice(0,x);if(w===e)return O+g;if(I&&(x+=O.length-x),Od(w)){if(o.slice(x).search(w)){var P,G=O;for(w.global||(w=qf(w.source,RA(eC.exec(w))+"g")),w.lastIndex=0;P=w.exec(G);)var J=P.index;O=O.slice(0,J===e?x:J)}}else if(o.indexOf(_t(w),x)!=x){var z=O.lastIndexOf(w);z>-1&&(O=O.slice(0,z))}return O+g}function _P(o){return o=RA(o),o&&Vn.test(o)?o.replace(Kn,aN):o}var LP=ls(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),Dd=U0("toUpperCase");function Ey(o,l,f){return o=RA(o),l=f?e:l,l===e?nN(o)?uN(o):XD(o):o.match(l)||[]}var Fy=UA(function(o,l){try{return xt(o,e,l)}catch(f){return Ld(f)?f:new pA(f)}}),OP=Jn(function(o,l){return $t(l,function(f){f=vn(f),Wn(o,f,Hd(o[f],o))}),o});function kP(o){var l=o==null?0:o.length,f=cA();return o=l?ne(o,function(g){if(typeof g[1]!="function")throw new Jt(s);return[f(g[0]),g[1]]}):[],UA(function(g){for(var w=-1;++w<l;){var Q=o[w];if(xt(Q[0],this,g))return xt(Q[1],this,g)}})}function MP(o){return aR(Yt(o,p))}function Nd(o){return function(){return o}}function DP(o,l){return o==null||o!==o?l:o}var NP=v0(),RP=v0(!0);function yt(o){return o}function Rd(o){return n0(typeof o=="function"?o:Yt(o,p))}function KP(o){return i0(Yt(o,p))}function VP(o,l){return s0(o,Yt(l,p))}var PP=UA(function(o,l){return function(f){return mo(f,o,l)}}),GP=UA(function(o,l){return function(f){return mo(o,f,l)}});function Kd(o,l,f){var g=xe(l),w=Hl(l,g);f==null&&!(ie(l)&&(w.length||!g.length))&&(f=l,l=o,o=this,w=Hl(l,xe(l)));var Q=!(ie(f)&&"chain"in f)||!!f.chain,I=Yn(o);return $t(w,function(x){var O=l[x];o[x]=O,I&&(o.prototype[x]=function(){var P=this.__chain__;if(Q||P){var G=o(this.__wrapped__),J=G.__actions__=mt(this.__actions__);return J.push({func:O,args:arguments,thisArg:o}),G.__chain__=P,G}return O.apply(o,Ir([this.value()],arguments))})}),o}function WP(){return Ve._===this&&(Ve._=BN),this}function Vd(){}function $P(o){return o=CA(o),UA(function(l){return o0(l,o)})}var JP=wd(ne),XP=wd(IC),YP=wd(Gf);function Uy(o){return bd(o)?Wf(vn(o)):UR(o)}function zP(o){return function(l){return o==null?e:li(o,l)}}var qP=S0(),ZP=S0(!0);function Pd(){return[]}function Gd(){return!1}function jP(){return{}}function A2(){return""}function e2(){return!0}function t2(o,l){if(o=CA(o),o<1||o>mA)return[];var f=$A,g=qe(o,$A);l=cA(l),o-=$A;for(var w=Xf(g,l);++f<o;)l(f);return w}function n2(o){return BA(o)?ne(o,vn):Lt(o)?[o]:mt(W0(RA(o)))}function r2(o){var l=++pN;return RA(o)+l}var i2=Dl(function(o,l){return o+l},0),s2=Cd("ceil"),o2=Dl(function(o,l){return o/l},1),a2=Cd("floor");function l2(o){return o&&o.length?xl(o,yt,id):e}function c2(o,l){return o&&o.length?xl(o,cA(l,2),id):e}function u2(o){return xC(o,yt)}function f2(o,l){return xC(o,cA(l,2))}function d2(o){return o&&o.length?xl(o,yt,ld):e}function h2(o,l){return o&&o.length?xl(o,cA(l,2),ld):e}var p2=Dl(function(o,l){return o*l},1),g2=Cd("round"),B2=Dl(function(o,l){return o-l},0);function m2(o){return o&&o.length?Jf(o,yt):0}function w2(o,l){return o&&o.length?Jf(o,cA(l,2)):0}return y.after=KK,y.ary=ty,y.assign=IV,y.assignIn=gy,y.assignInWith=ql,y.assignWith=SV,y.at=TV,y.before=ny,y.bind=Hd,y.bindAll=OP,y.bindKey=ry,y.castArray=jK,y.chain=j0,y.chunk=a4,y.compact=l4,y.concat=c4,y.cond=kP,y.conforms=MP,y.constant=Nd,y.countBy=mK,y.create=xV,y.curry=iy,y.curryRight=sy,y.debounce=oy,y.defaults=HV,y.defaultsDeep=_V,y.defer=VK,y.delay=PK,y.difference=u4,y.differenceBy=f4,y.differenceWith=d4,y.drop=h4,y.dropRight=p4,y.dropRightWhile=g4,y.dropWhile=B4,y.fill=m4,y.filter=CK,y.flatMap=EK,y.flatMapDeep=FK,y.flatMapDepth=UK,y.flatten=Y0,y.flattenDeep=w4,y.flattenDepth=C4,y.flip=GK,y.flow=NP,y.flowRight=RP,y.fromPairs=y4,y.functions=RV,y.functionsIn=KV,y.groupBy=bK,y.initial=E4,y.intersection=F4,y.intersectionBy=U4,y.intersectionWith=b4,y.invert=PV,y.invertBy=GV,y.invokeMap=IK,y.iteratee=Rd,y.keyBy=SK,y.keys=xe,y.keysIn=Ct,y.map=Wl,y.mapKeys=$V,y.mapValues=JV,y.matches=KP,y.matchesProperty=VP,y.memoize=Jl,y.merge=XV,y.mergeWith=By,y.method=PP,y.methodOf=GP,y.mixin=Kd,y.negate=Xl,y.nthArg=$P,y.omit=YV,y.omitBy=zV,y.once=WK,y.orderBy=TK,y.over=JP,y.overArgs=$K,y.overEvery=XP,y.overSome=YP,y.partial=_d,y.partialRight=ay,y.partition=xK,y.pick=qV,y.pickBy=my,y.property=Uy,y.propertyOf=zP,y.pull=T4,y.pullAll=q0,y.pullAllBy=x4,y.pullAllWith=H4,y.pullAt=_4,y.range=qP,y.rangeRight=ZP,y.rearg=JK,y.reject=LK,y.remove=L4,y.rest=XK,y.reverse=Td,y.sampleSize=kK,y.set=jV,y.setWith=AP,y.shuffle=MK,y.slice=O4,y.sortBy=RK,y.sortedUniq=V4,y.sortedUniqBy=P4,y.split=EP,y.spread=YK,y.tail=G4,y.take=W4,y.takeRight=$4,y.takeRightWhile=J4,y.takeWhile=X4,y.tap=lK,y.throttle=zK,y.thru=Gl,y.toArray=dy,y.toPairs=wy,y.toPairsIn=Cy,y.toPath=n2,y.toPlainObject=py,y.transform=eP,y.unary=qK,y.union=Y4,y.unionBy=z4,y.unionWith=q4,y.uniq=Z4,y.uniqBy=j4,y.uniqWith=AK,y.unset=tP,y.unzip=xd,y.unzipWith=Z0,y.update=nP,y.updateWith=rP,y.values=fs,y.valuesIn=iP,y.without=eK,y.words=Ey,y.wrap=ZK,y.xor=tK,y.xorBy=nK,y.xorWith=rK,y.zip=iK,y.zipObject=sK,y.zipObjectDeep=oK,y.zipWith=aK,y.entries=wy,y.entriesIn=Cy,y.extend=gy,y.extendWith=ql,Kd(y,y),y.add=i2,y.attempt=Fy,y.camelCase=lP,y.capitalize=yy,y.ceil=s2,y.clamp=sP,y.clone=AV,y.cloneDeep=tV,y.cloneDeepWith=nV,y.cloneWith=eV,y.conformsTo=rV,y.deburr=Qy,y.defaultTo=DP,y.divide=o2,y.endsWith=cP,y.eq=un,y.escape=uP,y.escapeRegExp=fP,y.every=wK,y.find=yK,y.findIndex=J0,y.findKey=LV,y.findLast=QK,y.findLastIndex=X0,y.findLastKey=OV,y.floor=a2,y.forEach=Ay,y.forEachRight=ey,y.forIn=kV,y.forInRight=MV,y.forOwn=DV,y.forOwnRight=NV,y.get=kd,y.gt=iV,y.gte=sV,y.has=VV,y.hasIn=Md,y.head=z0,y.identity=yt,y.includes=vK,y.indexOf=Q4,y.inRange=oP,y.invoke=WV,y.isArguments=fi,y.isArray=BA,y.isArrayBuffer=oV,y.isArrayLike=wt,y.isArrayLikeObject=de,y.isBoolean=aV,y.isBuffer=Or,y.isDate=lV,y.isElement=cV,y.isEmpty=uV,y.isEqual=fV,y.isEqualWith=dV,y.isError=Ld,y.isFinite=hV,y.isFunction=Yn,y.isInteger=ly,y.isLength=Yl,y.isMap=cy,y.isMatch=pV,y.isMatchWith=gV,y.isNaN=BV,y.isNative=mV,y.isNil=CV,y.isNull=wV,y.isNumber=uy,y.isObject=ie,y.isObjectLike=ae,y.isPlainObject=Fo,y.isRegExp=Od,y.isSafeInteger=yV,y.isSet=fy,y.isString=zl,y.isSymbol=Lt,y.isTypedArray=us,y.isUndefined=QV,y.isWeakMap=EV,y.isWeakSet=FV,y.join=v4,y.kebabCase=dP,y.last=qt,y.lastIndexOf=I4,y.lowerCase=hP,y.lowerFirst=pP,y.lt=UV,y.lte=bV,y.max=l2,y.maxBy=c2,y.mean=u2,y.meanBy=f2,y.min=d2,y.minBy=h2,y.stubArray=Pd,y.stubFalse=Gd,y.stubObject=jP,y.stubString=A2,y.stubTrue=e2,y.multiply=p2,y.nth=S4,y.noConflict=WP,y.noop=Vd,y.now=$l,y.pad=gP,y.padEnd=BP,y.padStart=mP,y.parseInt=wP,y.random=aP,y.reduce=HK,y.reduceRight=_K,y.repeat=CP,y.replace=yP,y.result=ZV,y.round=g2,y.runInContext=L,y.sample=OK,y.size=DK,y.snakeCase=QP,y.some=NK,y.sortedIndex=k4,y.sortedIndexBy=M4,y.sortedIndexOf=D4,y.sortedLastIndex=N4,y.sortedLastIndexBy=R4,y.sortedLastIndexOf=K4,y.startCase=FP,y.startsWith=UP,y.subtract=B2,y.sum=m2,y.sumBy=w2,y.template=bP,y.times=t2,y.toFinite=zn,y.toInteger=CA,y.toLength=hy,y.toLower=vP,y.toNumber=Zt,y.toSafeInteger=vV,y.toString=RA,y.toUpper=IP,y.trim=SP,y.trimEnd=TP,y.trimStart=xP,y.truncate=HP,y.unescape=_P,y.uniqueId=r2,y.upperCase=LP,y.upperFirst=Dd,y.each=Ay,y.eachRight=ey,y.first=z0,Kd(y,function(){var o={};return Un(y,function(l,f){VA.call(y.prototype,f)||(o[f]=l)}),o}(),{chain:!1}),y.VERSION=n,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),$t(["drop","take"],function(o,l){_A.prototype[o]=function(f){f=f===e?1:be(CA(f),0);var g=this.__filtered__&&!l?new _A(this):this.clone();return g.__filtered__?g.__takeCount__=qe(f,g.__takeCount__):g.__views__.push({size:qe(f,$A),type:o+(g.__dir__<0?"Right":"")}),g},_A.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),$t(["filter","map","takeWhile"],function(o,l){var f=l+1,g=f==HA||f==bA;_A.prototype[o]=function(w){var Q=this.clone();return Q.__iteratees__.push({iteratee:cA(w,3),type:f}),Q.__filtered__=Q.__filtered__||g,Q}}),$t(["head","last"],function(o,l){var f="take"+(l?"Right":"");_A.prototype[o]=function(){return this[f](1).value()[0]}}),$t(["initial","tail"],function(o,l){var f="drop"+(l?"":"Right");_A.prototype[o]=function(){return this.__filtered__?new _A(this):this[f](1)}}),_A.prototype.compact=function(){return this.filter(yt)},_A.prototype.find=function(o){return this.filter(o).head()},_A.prototype.findLast=function(o){return this.reverse().find(o)},_A.prototype.invokeMap=UA(function(o,l){return typeof o=="function"?new _A(this):this.map(function(f){return mo(f,o,l)})}),_A.prototype.reject=function(o){return this.filter(Xl(cA(o)))},_A.prototype.slice=function(o,l){o=CA(o);var f=this;return f.__filtered__&&(o>0||l<0)?new _A(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==e&&(l=CA(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},_A.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},_A.prototype.toArray=function(){return this.take($A)},Un(_A.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=y[g?"take"+(l=="last"?"Right":""):l],Q=g||/^find/.test(l);w&&(y.prototype[l]=function(){var I=this.__wrapped__,x=g?[1]:arguments,O=I instanceof _A,P=x[0],G=O||BA(I),J=function(SA){var OA=w.apply(y,Ir([SA],x));return g&&z?OA[0]:OA};G&&f&&typeof P=="function"&&P.length!=1&&(O=G=!1);var z=this.__chain__,sA=!!this.__actions__.length,fA=Q&&!z,EA=O&&!sA;if(!Q&&G){I=EA?I:new _A(this);var dA=o.apply(I,x);return dA.__actions__.push({func:Gl,args:[J],thisArg:e}),new Xt(dA,z)}return fA&&EA?o.apply(this,x):(dA=this.thru(J),fA?g?dA.value()[0]:dA.value():dA)})}),$t(["pop","push","shift","sort","splice","unshift"],function(o){var l=gl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var Q=this.value();return l.apply(BA(Q)?Q:[],w)}return this[f](function(I){return l.apply(BA(I)?I:[],w)})}}),Un(_A.prototype,function(o,l){var f=y[l];if(f){var g=f.name+"";VA.call(is,g)||(is[g]=[]),is[g].push({name:l,func:f})}}),is[Ml(e,U).name]=[{name:"wrapper",func:e}],_A.prototype.clone=_N,_A.prototype.reverse=LN,_A.prototype.value=ON,y.prototype.at=cK,y.prototype.chain=uK,y.prototype.commit=fK,y.prototype.next=dK,y.prototype.plant=pK,y.prototype.reverse=gK,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=BK,y.prototype.first=y.prototype.head,co&&(y.prototype[co]=hK),y},ts=fN();ri?((ri.exports=ts)._=ts,Rf._=ts):Ve._=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gHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",YS={class:"camera__preview"},zS={class:"camera__bg-notification"},qS={class:h.normalizeClass("d-block light--text")},ZS=["width","height"],jS=["width","height"],AT={key:0,class:"camera__countdown-overlay"},eT=["innerHTML","data-countdown"],tT=["src"],nT={class:"camera__controls"},rT={class:"container"},iT={class:"row"},sT={class:"col"},oT={class:"btn-group"},aT={key:0},lT={key:1},cT={class:"camera__switch-cam"},uT=["onClick"],fT={name:"BaseCamera",inheritAttrs:!1};function dT(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 hT=h.defineComponent({...fT,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:()=>XS},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n=t,r={"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}},i=h.ref(),s=h.ref(),a=h.ref(),c=h.ref(),u=h.ref(!1),d=h.ref(!1),p=h.ref(0),B=h.ref(0),m=h.ref(),C=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return n.enableMirrorCamera&&$===0?"mirror-cam":""}),E=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return C.value?`mirror-cam mirror-device-${$}`:""});function S(){p.value=i.value.clientWidth,B.value=i.value.clientHeight}const U=Ms.debounce(()=>{S()},300,{trailing:!0,leading:!1});function v(){a.value.length>1&&(c.value=c.value&&c.value.deviceId===a.value[0].deviceId?a.value[1]:a.value[0])}function k(){navigator.mediaDevices.getUserMedia({audio:!1,video:{width:{ideal:r[n.ratio]?r[n.ratio].width:i.value.clientWidth},height:{ideal:r[n.ratio]?r[n.ratio].height:i.value.clientHeight}}}).then($=>{i.value.srcObject=$}).catch($=>{console.log($,"May the browser didnt support or there is some errors.")})}function F(){i.value.srcObject.getTracks().forEach(eA=>{eA.stop()})}function T(){u.value?(u.value=!1,d.value=!1,F()):(u.value=!0,k())}function _(){n.countdown?(m.value=m.value?m.value-1:n.countdown,m.value?setTimeout(_,1e3):N()):N()}A({onCapture:_});function N(){d.value=!0,console.log("capture");const $=s.value.getContext("2d"),eA=i.value,gA=eA&&eA.srcObject&&eA.srcObject.getTracks(),{width:wA,height:aA}=gA.length&&gA[0].getSettings(),HA=wA/aA;let WA=s.value.width,bA=WA/HA;bA<s.value.height&&(bA=s.value.height,WA=bA*HA);const vA=C.value?-1:1;$.save(),$.scale(vA,1),$.drawImage(eA,WA>s.value.width?(s.value.width-WA)/2:0,bA>s.value.height?(s.value.height-bA)/2:0,WA*vA,bA),$.restore();const mA=s.value.toDataURL("image/png");W(mA)}function W($){const eA=dT($);e("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:eA,size:eA.size})}return h.onBeforeMount(async()=>{const $=await navigator.mediaDevices.enumerateDevices();a.value=$.filter(eA=>eA.kind==="videoinput"),c.value=a.value[0],n.defaultRearCamera&&v()}),h.onMounted(()=>{window.addEventListener("resize",U),S(),T()}),h.onBeforeUnmount(()=>{u.value=!1,d.value=!1,F(),window.removeEventListener("resize",U)}),($,eA)=>{const gA=h.resolveComponent("loading-spinner"),wA=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",h.unref(E)])},[h.createElementVNode("div",YS,[h.createElementVNode("div",zS,[h.createVNode(gA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",qS,h.toDisplayString($.$t("camera.waitForCameraNotification")),1)]),_:1})]),h.createElementVNode("video",{ref_key:"camera",ref:i,class:"camera__video",width:p.value,height:B.value,autoplay:"",playsinline:""},null,8,ZS),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:s,class:"camera__canvas",width:p.value,height:B.value},null,8,jS),[[h.vShow,d.value]]),m.value?(h.openBlock(),h.createElementBlock("div",AT,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:m.value,innerHTML:m.value,"data-countdown":m.value},null,8,eT))])):h.createCommentVNode("",!0),t.enableGuide&&u.value?(h.openBlock(),h.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,tT)):h.createCommentVNode("",!0)]),h.createElementVNode("div",nT,[h.createElementVNode("div",rT,[h.createElementVNode("div",iT,[h.createElementVNode("div",sT,[h.createElementVNode("div",oT,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[u.value?(h.openBlock(),h.createElementBlock("span",lT,h.toDisplayString($.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",aT,h.toDisplayString($.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:_},h.toDisplayString($.$t("camera.capture")),1)])])])])]),h.createElementVNode("div",cT,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(v,["prevent"])},[h.createVNode(wA,{symbol:"switch-camera"})],8,uT)])],2)}}}),K2="",pT=/"(?:_|\\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*:/,gT=/"(?: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*:/,BT=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function mT(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){wT(t);return}return A}function wT(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function CT(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t[t.length-1]==='"')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(!BT.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(pT.test(t)||gT.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,mT)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const yT=/#/g,QT=/&/g,ET=/=/g,Tu=/\+/g,FT=/%5e/gi,UT=/%60/gi,bT=/%7c/gi,vT=/%20/gi;function IT(t){return encodeURI(""+t).replace(bT,"|")}function xu(t){return IT(typeof t=="string"?t:JSON.stringify(t)).replace(Tu,"%2B").replace(vT,"+").replace(yT,"%23").replace(QT,"%26").replace(UT,"`").replace(FT,"^")}function Hu(t){return xu(t).replace(ET,"%3D")}function WB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ST(t){return WB(t.replace(Tu," "))}function TT(t){return WB(t.replace(Tu," "))}function xT(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=ST(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=TT(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 HT(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Hu(t)}=${xu(e)}`).join("&"):`${Hu(t)}=${xu(A)}`:Hu(t)}function _T(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>HT(A,t[A])).filter(Boolean).join("&")}const LT=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,OT=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,kT=/^([/\\]\s*){2,}[^/\\]/;function $B(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?LT.test(t):OT.test(t)||(A.acceptRelative?kT.test(t):!1)}const MT=/\/$|\/\?/;function _u(t="",A=!1){return A?MT.test(t):t.endsWith("/")}function DT(t="",A=!1){if(!A)return(_u(t)?t.slice(0,-1):t)||"/";if(!_u(t,!0))return t||"/";const[e,...n]=t.split("?");return(e.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")}function NT(t="",A=!1){if(!A)return t.endsWith("/")?t:t+"/";if(_u(t,!0))return t||"/";const[e,...n]=t.split("?");return e+"/"+(n.length>0?`?${n.join("?")}`:"")}function RT(t,A){if(VT(A)||$B(t))return t;const e=DT(A);return t.startsWith(e)?t:WT(e,t)}function KT(t,A){const e=JB(t),n={...xT(e.search),...A};return e.search=_T(n),$T(e)}function VT(t){return!t||t==="/"}function PT(t){return t&&t!=="/"}const GT=/^\.?\//;function WT(t,...A){let e=t||"";for(const n of A.filter(r=>PT(r)))if(e){const r=n.replace(GT,"");e=NT(e)+r}else e=n;return e}function JB(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(e){const[,p,B=""]=e;return{protocol:p,pathname:B,href:p+B,auth:"",host:"",search:"",hash:""}}if(!$B(t,{acceptRelative:!0}))return A?JB(A+t):XB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:d}=XB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n,auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:d}}function XB(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function $T(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 JT extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function XT(t){var c,u,d,p,B;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((d=t.request)==null?void 0:d.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((B=t.request)==null?void 0:B.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 JT(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,C]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[C]}});return a}const YT=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function YB(t="GET"){return YT.has(t.toUpperCase())}function zT(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 qT=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ZT=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jT(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return ZT.test(A)?"json":qT.has(A)||A.startsWith("text/")?"text":"blob"}function Ax(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const ex=new Set([408,409,425,429,500,502,503,504]),tx=new Set([101,204,205,304]);function zB(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 d;typeof a.options.retry=="number"?d=a.options.retry:d=YB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):ex.has(p))){const B=a.options.retryDelay||0;return B>0&&await new Promise(m=>setTimeout(m,B)),i(a.request,{...a.options,retry:d-1,timeout:a.options.timeout})}}const u=XT(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const d={request:c,options:Ax(u,t.defaults,e),response:void 0,error:void 0};if(d.options.method=(B=d.options.method)==null?void 0:B.toUpperCase(),d.options.onRequest&&await d.options.onRequest(d),typeof d.request=="string"&&(d.options.baseURL&&(d.request=RT(d.request,d.options.baseURL)),(d.options.query||d.options.params)&&(d.request=KT(d.request,{...d.options.params,...d.options.query}))),d.options.body&&YB(d.options.method)&&(zT(d.options.body)?(d.options.body=typeof d.options.body=="string"?d.options.body:JSON.stringify(d.options.body),d.options.headers=new e(d.options.headers||{}),d.options.headers.has("content-type")||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")):("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"))),!d.options.signal&&d.options.timeout){const m=new n;setTimeout(()=>m.abort(),d.options.timeout),d.options.signal=m.signal}try{d.response=await A(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await d.options.onRequestError(d),await r(d)}if(d.response.body&&!tx.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||jT(d.response.headers.get("content-type")||"");switch(m){case"json":{const C=await d.response.text(),E=d.options.parseResponse||CT;d.response._data=E(C);break}case"stream":{d.response._data=d.response.body;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await d.options.onResponse(d),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await d.options.onResponseError(d),await r(d)):d.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>zB({...t,defaults:{...t.defaults,...a}}),s}const Lu=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")}(),nx=Lu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),rx=Lu.Headers,ix=Lu.AbortController,sx=zB({fetch:nx,Headers:rx,AbortController:ix}),ox={class:"file-upload"},ax=["src"],lx=["onClick"],cx=["for"],ux=h.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),fx={key:0,class:"file-upload__loading-spinner"},dx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function hx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const px=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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,previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=h.ref([]),r=h.ref([]),i=h.ref(!1),s=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:r.value);h.watch(()=>n,async(u,d)=>{r.value=await Promise.all(u.value.map(async p=>({src:e.toDataUrl?await hx(p):await c(p),type:p.type})))},{deep:!0}),h.watch(()=>r,async(u,d)=>{const p=e.multiple?r.value:r.value[0];A("update:modelValue",p),e.multiple||A("update:src",r.value[0]&&r.value[0].src)},{deep:!0});function a(u){n.value.splice(u,1),(!r.value||!r.value.length)&&A("update:src","")}async function c(u){const d=new FormData;d.append("file",u),i.value=!0;const B=await(e.customFetch||sx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:d}).catch(m=>{console.error("Error",m)});return i.value=!1,console.log("Response",B),`/media/${B.path}`}return(u,d)=>{const p=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",ox,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s),(m,C)=>(h.openBlock(),h.createElementBlock("div",{key:m.src,class:"file-upload__thumbnail"},[h.createElementVNode("img",{src:`${m.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,ax),h.createElementVNode("button",{onClick:h.withModifiers(E=>a(C),["prevent"]),class:"btn btn--close"},[h.createVNode(p,{symbol:"x"})],8,lx)]))),128)),h.createVNode(B,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(u.$slots,"button",{},()=>[ux]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[i.value?(h.openBlock(),h.createElementBlock("span",fx,dx)):h.createCommentVNode("",!0)]),_:1})],8,cx)])}}}),P2="",gx={class:"upload-group"},Bx=["innerHTML"],mx={class:"row"},wx={class:"img-container"},Cx=["src"],yx=["onClick"],Qx={class:"col-auto mb-4"},Ex={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},qB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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,previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref([...e.modelValue]);function r(i){n.value.splice(i,1),A("update:modelValue",n.value)}return h.watch(n.value,(i,s)=>{A("update:modelValue",i)}),(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("file-upload");return h.openBlock(),h.createElementBlock("div",gx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Bx),h.createElementVNode("div",mx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(u,d)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"col-auto mb-4"},[h.createElementVNode("div",wx,[h.createElementVNode("img",{src:`${u}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Cx),h.createElementVNode("button",{onClick:h.withModifiers(p=>r(d),["prevent"]),class:"btn btn--close"},[h.createVNode(a,{symbol:"x"})],8,yx)])]))),128)),h.createElementVNode("div",Qx,[h.createVNode(c,{src:n.value[n.value.length],"onUpdate:src":s[0]||(s[0]=u=>n.value[n.value.length]=u),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled},{button:h.withCtx(()=>[h.createElementVNode("span",Ex,[h.createVNode(a,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled"])])])])}}}),G2="",Fx={class:"upload-group"},Ux=["innerHTML"],bx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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"})},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue.map(r=>r.src)},set(r){A("update:modelValue",r.map((i,s)=>({mediaType:e.modelValue[s]&&e.modelValue[s].mediaType||i.includes("data:image")?i.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[i.split(".")[1]],src:i instanceof Object?`/media/${i.path}`:i,name:e.modelValue[s]&&e.modelValue[s].name||`${e.name}-${s}`,...e.type?{type:e.type}:{}})))}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",Fx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Ux),h.createVNode(qB,{modelValue:h.unref(n),"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width"])]))}}),W2="",vx={class:"carousel d-flex gap-2 align-items-center"},Ix=["onClick"],Sx={class:"carousel__track d-flex justify-center"},Tx=["onClick"],xx=["onClick"],ZB=h.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref();function n(){e.value.scrollTo({top:0,left:0,behavior:"smooth"})}function r(){e.value.scrollTo({top:0,left:e.value.clientWidth,behavior:"smooth"})}function i(s){A("update:modelValue",s)}return(s,a)=>{const c=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",vx,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(n,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-left"})],8,Ix)):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:e,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",Sx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(u,d)=>h.renderSlot(s.$slots,"carousel-item",{key:u.src,item:u,index:d},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item col-3",d===t.modelValue?"selected":""]),onClick:p=>i(d)},h.toDisplayString(u),11,Tx)])),128))])],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(r,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-right"})],8,xx)):h.createCommentVNode("",!0)])}}}),$2="",Hx={class:"media-thumbnails"},_x=["onClick"],Lx={class:"img-container ratio ratio-1x1"},Ox=["src"],kx=h.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref(-1);function n(r){A("update:modelValue",r),A("select",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Hx,[h.createVNode(ZB,{items:t.assets},{"carousel-item":h.withCtx(s=>[h.createElementVNode("a",{role:"button",class:"carousel-cell col-3 media-thumbnails__thumbnail",onClick:a=>n(s.index)},[h.createElementVNode("div",Lx,[h.createElementVNode("img",{src:s.item.thumbnail||s.item.src,class:h.normalizeClass(["img-fluid",e.value===s.index?"is-active":""])},null,10,Ox)])],8,_x)]),_:1},8,["items"])]))}}),J2="",Mx={class:"progress-steps"},Dx={class:"progress-steps__list"},Nx={class:"progress-step"},Rx=["checked","id","value","disabled","read-only","required","onChange"],Kx=["for"],Vx=["innerHTML"],Px=["for"],Gx=["innerHTML"],Wx=h.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t;function n(r){A("update:modelValue",r),r>=e.progress&&A("update:progress",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Mx,[h.createElementVNode("ul",Dx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(s,a)=>(h.openBlock(),h.createElementBlock("li",{key:a,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":a>t.progress+(t.reveal?1:0),"progress-steps__step--active":a===(t.modelValue||0)}])},[h.renderSlot(r.$slots,"step",{},()=>[h.createElementVNode("div",Nx,[h.createElementVNode("input",{type:"radio",checked:a<=(t.progress||0),id:`step-${a}`,name:"step",class:"form-check-input",value:s.value,disabled:s.disabled||a>t.progress+(t.reveal?1:0),"read-only":s.readOnly,required:s.required,onChange:c=>n(a)},null,40,Rx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"button",{step:s},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.text},null,8,Vx)])],8,Kx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"label",{step:s},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:s.label},null,8,Gx)])],8,Px)])])],2))),128))])]))}}),X2="";/*!
|
|
163
|
+
}`;var EA=Fy(function(){return kA(Q,sA+"return "+J).apply(e,I)});if(EA.source=J,Ld(EA))throw EA;return EA}function vP(o){return RA(o).toLowerCase()}function IP(o){return RA(o).toUpperCase()}function SP(o,l,f){if(o=RA(o),o&&(f||l===e))return _C(o);if(!o||!(l=_t(l)))return o;var g=ln(o),w=ln(l),Q=LC(g,w),I=OC(g,w)+1;return Lr(g,Q,I).join("")}function TP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.slice(0,DC(o)+1);if(!o||!(l=_t(l)))return o;var g=ln(o),w=OC(g,ln(l))+1;return Lr(g,0,w).join("")}function xP(o,l,f){if(o=RA(o),o&&(f||l===e))return o.replace(Lf,"");if(!o||!(l=_t(l)))return o;var g=ln(o),w=LC(g,ln(l));return Lr(g,w).join("")}function HP(o,l){var f=eA,g=gA;if(ie(l)){var w="separator"in l?l.separator:w;f="length"in l?CA(l.length):f,g="omission"in l?_t(l.omission):g}o=RA(o);var Q=o.length;if(As(o)){var I=ln(o);Q=I.length}if(f>=Q)return o;var x=f-es(g);if(x<1)return g;var O=I?Lr(I,0,x).join(""):o.slice(0,x);if(w===e)return O+g;if(I&&(x+=O.length-x),Od(w)){if(o.slice(x).search(w)){var P,G=O;for(w.global||(w=qf(w.source,RA(eC.exec(w))+"g")),w.lastIndex=0;P=w.exec(G);)var J=P.index;O=O.slice(0,J===e?x:J)}}else if(o.indexOf(_t(w),x)!=x){var z=O.lastIndexOf(w);z>-1&&(O=O.slice(0,z))}return O+g}function _P(o){return o=RA(o),o&&Vn.test(o)?o.replace(Kn,aN):o}var LP=ls(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),kd=U0("toUpperCase");function Ey(o,l,f){return o=RA(o),l=f?e:l,l===e?nN(o)?uN(o):Xk(o):o.match(l)||[]}var Fy=UA(function(o,l){try{return xt(o,e,l)}catch(f){return Ld(f)?f:new pA(f)}}),OP=Jn(function(o,l){return $t(l,function(f){f=vn(f),Wn(o,f,Hd(o[f],o))}),o});function MP(o){var l=o==null?0:o.length,f=cA();return o=l?ne(o,function(g){if(typeof g[1]!="function")throw new Jt(s);return[f(g[0]),g[1]]}):[],UA(function(g){for(var w=-1;++w<l;){var Q=o[w];if(xt(Q[0],this,g))return xt(Q[1],this,g)}})}function DP(o){return aR(Yt(o,p))}function Nd(o){return function(){return o}}function kP(o,l){return o==null||o!==o?l:o}var NP=v0(),RP=v0(!0);function yt(o){return o}function Rd(o){return n0(typeof o=="function"?o:Yt(o,p))}function KP(o){return i0(Yt(o,p))}function VP(o,l){return s0(o,Yt(l,p))}var PP=UA(function(o,l){return function(f){return mo(f,o,l)}}),GP=UA(function(o,l){return function(f){return mo(o,f,l)}});function Kd(o,l,f){var g=xe(l),w=Hl(l,g);f==null&&!(ie(l)&&(w.length||!g.length))&&(f=l,l=o,o=this,w=Hl(l,xe(l)));var Q=!(ie(f)&&"chain"in f)||!!f.chain,I=Yn(o);return $t(w,function(x){var O=l[x];o[x]=O,I&&(o.prototype[x]=function(){var P=this.__chain__;if(Q||P){var G=o(this.__wrapped__),J=G.__actions__=mt(this.__actions__);return J.push({func:O,args:arguments,thisArg:o}),G.__chain__=P,G}return O.apply(o,Ir([this.value()],arguments))})}),o}function WP(){return Ve._===this&&(Ve._=BN),this}function Vd(){}function $P(o){return o=CA(o),UA(function(l){return o0(l,o)})}var JP=wd(ne),XP=wd(IC),YP=wd(Gf);function Uy(o){return bd(o)?Wf(vn(o)):UR(o)}function zP(o){return function(l){return o==null?e:li(o,l)}}var qP=S0(),ZP=S0(!0);function Pd(){return[]}function Gd(){return!1}function jP(){return{}}function A2(){return""}function e2(){return!0}function t2(o,l){if(o=CA(o),o<1||o>mA)return[];var f=$A,g=qe(o,$A);l=cA(l),o-=$A;for(var w=Xf(g,l);++f<o;)l(f);return w}function n2(o){return BA(o)?ne(o,vn):Lt(o)?[o]:mt(W0(RA(o)))}function r2(o){var l=++pN;return RA(o)+l}var i2=kl(function(o,l){return o+l},0),s2=Cd("ceil"),o2=kl(function(o,l){return o/l},1),a2=Cd("floor");function l2(o){return o&&o.length?xl(o,yt,id):e}function c2(o,l){return o&&o.length?xl(o,cA(l,2),id):e}function u2(o){return xC(o,yt)}function f2(o,l){return xC(o,cA(l,2))}function d2(o){return o&&o.length?xl(o,yt,ld):e}function h2(o,l){return o&&o.length?xl(o,cA(l,2),ld):e}var p2=kl(function(o,l){return o*l},1),g2=Cd("round"),B2=kl(function(o,l){return o-l},0);function m2(o){return o&&o.length?Jf(o,yt):0}function w2(o,l){return o&&o.length?Jf(o,cA(l,2)):0}return y.after=KK,y.ary=ty,y.assign=IV,y.assignIn=gy,y.assignInWith=ql,y.assignWith=SV,y.at=TV,y.before=ny,y.bind=Hd,y.bindAll=OP,y.bindKey=ry,y.castArray=jK,y.chain=j0,y.chunk=a4,y.compact=l4,y.concat=c4,y.cond=MP,y.conforms=DP,y.constant=Nd,y.countBy=mK,y.create=xV,y.curry=iy,y.curryRight=sy,y.debounce=oy,y.defaults=HV,y.defaultsDeep=_V,y.defer=VK,y.delay=PK,y.difference=u4,y.differenceBy=f4,y.differenceWith=d4,y.drop=h4,y.dropRight=p4,y.dropRightWhile=g4,y.dropWhile=B4,y.fill=m4,y.filter=CK,y.flatMap=EK,y.flatMapDeep=FK,y.flatMapDepth=UK,y.flatten=Y0,y.flattenDeep=w4,y.flattenDepth=C4,y.flip=GK,y.flow=NP,y.flowRight=RP,y.fromPairs=y4,y.functions=RV,y.functionsIn=KV,y.groupBy=bK,y.initial=E4,y.intersection=F4,y.intersectionBy=U4,y.intersectionWith=b4,y.invert=PV,y.invertBy=GV,y.invokeMap=IK,y.iteratee=Rd,y.keyBy=SK,y.keys=xe,y.keysIn=Ct,y.map=Wl,y.mapKeys=$V,y.mapValues=JV,y.matches=KP,y.matchesProperty=VP,y.memoize=Jl,y.merge=XV,y.mergeWith=By,y.method=PP,y.methodOf=GP,y.mixin=Kd,y.negate=Xl,y.nthArg=$P,y.omit=YV,y.omitBy=zV,y.once=WK,y.orderBy=TK,y.over=JP,y.overArgs=$K,y.overEvery=XP,y.overSome=YP,y.partial=_d,y.partialRight=ay,y.partition=xK,y.pick=qV,y.pickBy=my,y.property=Uy,y.propertyOf=zP,y.pull=T4,y.pullAll=q0,y.pullAllBy=x4,y.pullAllWith=H4,y.pullAt=_4,y.range=qP,y.rangeRight=ZP,y.rearg=JK,y.reject=LK,y.remove=L4,y.rest=XK,y.reverse=Td,y.sampleSize=MK,y.set=jV,y.setWith=AP,y.shuffle=DK,y.slice=O4,y.sortBy=RK,y.sortedUniq=V4,y.sortedUniqBy=P4,y.split=EP,y.spread=YK,y.tail=G4,y.take=W4,y.takeRight=$4,y.takeRightWhile=J4,y.takeWhile=X4,y.tap=lK,y.throttle=zK,y.thru=Gl,y.toArray=dy,y.toPairs=wy,y.toPairsIn=Cy,y.toPath=n2,y.toPlainObject=py,y.transform=eP,y.unary=qK,y.union=Y4,y.unionBy=z4,y.unionWith=q4,y.uniq=Z4,y.uniqBy=j4,y.uniqWith=AK,y.unset=tP,y.unzip=xd,y.unzipWith=Z0,y.update=nP,y.updateWith=rP,y.values=fs,y.valuesIn=iP,y.without=eK,y.words=Ey,y.wrap=ZK,y.xor=tK,y.xorBy=nK,y.xorWith=rK,y.zip=iK,y.zipObject=sK,y.zipObjectDeep=oK,y.zipWith=aK,y.entries=wy,y.entriesIn=Cy,y.extend=gy,y.extendWith=ql,Kd(y,y),y.add=i2,y.attempt=Fy,y.camelCase=lP,y.capitalize=yy,y.ceil=s2,y.clamp=sP,y.clone=AV,y.cloneDeep=tV,y.cloneDeepWith=nV,y.cloneWith=eV,y.conformsTo=rV,y.deburr=Qy,y.defaultTo=kP,y.divide=o2,y.endsWith=cP,y.eq=un,y.escape=uP,y.escapeRegExp=fP,y.every=wK,y.find=yK,y.findIndex=J0,y.findKey=LV,y.findLast=QK,y.findLastIndex=X0,y.findLastKey=OV,y.floor=a2,y.forEach=Ay,y.forEachRight=ey,y.forIn=MV,y.forInRight=DV,y.forOwn=kV,y.forOwnRight=NV,y.get=Md,y.gt=iV,y.gte=sV,y.has=VV,y.hasIn=Dd,y.head=z0,y.identity=yt,y.includes=vK,y.indexOf=Q4,y.inRange=oP,y.invoke=WV,y.isArguments=fi,y.isArray=BA,y.isArrayBuffer=oV,y.isArrayLike=wt,y.isArrayLikeObject=de,y.isBoolean=aV,y.isBuffer=Or,y.isDate=lV,y.isElement=cV,y.isEmpty=uV,y.isEqual=fV,y.isEqualWith=dV,y.isError=Ld,y.isFinite=hV,y.isFunction=Yn,y.isInteger=ly,y.isLength=Yl,y.isMap=cy,y.isMatch=pV,y.isMatchWith=gV,y.isNaN=BV,y.isNative=mV,y.isNil=CV,y.isNull=wV,y.isNumber=uy,y.isObject=ie,y.isObjectLike=ae,y.isPlainObject=Fo,y.isRegExp=Od,y.isSafeInteger=yV,y.isSet=fy,y.isString=zl,y.isSymbol=Lt,y.isTypedArray=us,y.isUndefined=QV,y.isWeakMap=EV,y.isWeakSet=FV,y.join=v4,y.kebabCase=dP,y.last=qt,y.lastIndexOf=I4,y.lowerCase=hP,y.lowerFirst=pP,y.lt=UV,y.lte=bV,y.max=l2,y.maxBy=c2,y.mean=u2,y.meanBy=f2,y.min=d2,y.minBy=h2,y.stubArray=Pd,y.stubFalse=Gd,y.stubObject=jP,y.stubString=A2,y.stubTrue=e2,y.multiply=p2,y.nth=S4,y.noConflict=WP,y.noop=Vd,y.now=$l,y.pad=gP,y.padEnd=BP,y.padStart=mP,y.parseInt=wP,y.random=aP,y.reduce=HK,y.reduceRight=_K,y.repeat=CP,y.replace=yP,y.result=ZV,y.round=g2,y.runInContext=L,y.sample=OK,y.size=kK,y.snakeCase=QP,y.some=NK,y.sortedIndex=M4,y.sortedIndexBy=D4,y.sortedIndexOf=k4,y.sortedLastIndex=N4,y.sortedLastIndexBy=R4,y.sortedLastIndexOf=K4,y.startCase=FP,y.startsWith=UP,y.subtract=B2,y.sum=m2,y.sumBy=w2,y.template=bP,y.times=t2,y.toFinite=zn,y.toInteger=CA,y.toLength=hy,y.toLower=vP,y.toNumber=Zt,y.toSafeInteger=vV,y.toString=RA,y.toUpper=IP,y.trim=SP,y.trimEnd=TP,y.trimStart=xP,y.truncate=HP,y.unescape=_P,y.uniqueId=r2,y.upperCase=LP,y.upperFirst=kd,y.each=Ay,y.eachRight=ey,y.first=z0,Kd(y,function(){var o={};return Un(y,function(l,f){VA.call(y.prototype,f)||(o[f]=l)}),o}(),{chain:!1}),y.VERSION=n,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),$t(["drop","take"],function(o,l){_A.prototype[o]=function(f){f=f===e?1:be(CA(f),0);var g=this.__filtered__&&!l?new _A(this):this.clone();return g.__filtered__?g.__takeCount__=qe(f,g.__takeCount__):g.__views__.push({size:qe(f,$A),type:o+(g.__dir__<0?"Right":"")}),g},_A.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),$t(["filter","map","takeWhile"],function(o,l){var f=l+1,g=f==HA||f==bA;_A.prototype[o]=function(w){var Q=this.clone();return Q.__iteratees__.push({iteratee:cA(w,3),type:f}),Q.__filtered__=Q.__filtered__||g,Q}}),$t(["head","last"],function(o,l){var f="take"+(l?"Right":"");_A.prototype[o]=function(){return this[f](1).value()[0]}}),$t(["initial","tail"],function(o,l){var f="drop"+(l?"":"Right");_A.prototype[o]=function(){return this.__filtered__?new _A(this):this[f](1)}}),_A.prototype.compact=function(){return this.filter(yt)},_A.prototype.find=function(o){return this.filter(o).head()},_A.prototype.findLast=function(o){return this.reverse().find(o)},_A.prototype.invokeMap=UA(function(o,l){return typeof o=="function"?new _A(this):this.map(function(f){return mo(f,o,l)})}),_A.prototype.reject=function(o){return this.filter(Xl(cA(o)))},_A.prototype.slice=function(o,l){o=CA(o);var f=this;return f.__filtered__&&(o>0||l<0)?new _A(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==e&&(l=CA(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},_A.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},_A.prototype.toArray=function(){return this.take($A)},Un(_A.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=y[g?"take"+(l=="last"?"Right":""):l],Q=g||/^find/.test(l);w&&(y.prototype[l]=function(){var I=this.__wrapped__,x=g?[1]:arguments,O=I instanceof _A,P=x[0],G=O||BA(I),J=function(SA){var OA=w.apply(y,Ir([SA],x));return g&&z?OA[0]:OA};G&&f&&typeof P=="function"&&P.length!=1&&(O=G=!1);var z=this.__chain__,sA=!!this.__actions__.length,fA=Q&&!z,EA=O&&!sA;if(!Q&&G){I=EA?I:new _A(this);var dA=o.apply(I,x);return dA.__actions__.push({func:Gl,args:[J],thisArg:e}),new Xt(dA,z)}return fA&&EA?o.apply(this,x):(dA=this.thru(J),fA?g?dA.value()[0]:dA.value():dA)})}),$t(["pop","push","shift","sort","splice","unshift"],function(o){var l=gl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",g=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var w=arguments;if(g&&!this.__chain__){var Q=this.value();return l.apply(BA(Q)?Q:[],w)}return this[f](function(I){return l.apply(BA(I)?I:[],w)})}}),Un(_A.prototype,function(o,l){var f=y[l];if(f){var g=f.name+"";VA.call(is,g)||(is[g]=[]),is[g].push({name:l,func:f})}}),is[Dl(e,U).name]=[{name:"wrapper",func:e}],_A.prototype.clone=_N,_A.prototype.reverse=LN,_A.prototype.value=ON,y.prototype.at=cK,y.prototype.chain=uK,y.prototype.commit=fK,y.prototype.next=dK,y.prototype.plant=pK,y.prototype.reverse=gK,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=BK,y.prototype.first=y.prototype.head,co&&(y.prototype[co]=hK),y},ts=fN();ri?((ri.exports=ts)._=ts,Rf._=ts):Ve._=ts}).call(Ms)})(JS,Ds);const XS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAA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AABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",YS={class:"camera__preview"},zS={class:"camera__bg-notification"},qS={class:h.normalizeClass("d-block light--text")},ZS=["width","height"],jS=["width","height"],AT={key:0,class:"camera__countdown-overlay"},eT=["innerHTML","data-countdown"],tT=["src"],nT={class:"camera__controls"},rT={class:"container"},iT={class:"row"},sT={class:"col"},oT={class:"btn-group"},aT={key:0},lT={key:1},cT={class:"camera__switch-cam"},uT=["onClick"],fT={name:"BaseCamera",inheritAttrs:!1};function dT(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 hT=h.defineComponent({...fT,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:()=>XS},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n=t,r={"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}},i=h.ref(),s=h.ref(),a=h.ref(),c=h.ref(),u=h.ref(!1),d=h.ref(!1),p=h.ref(0),B=h.ref(0),m=h.ref(),C=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return n.enableMirrorCamera&&$===0?"mirror-cam":""}),E=h.computed(()=>{const $=c.value&&a.value.findIndex(eA=>eA.deviceId===c.value.deviceId);return C.value?`mirror-cam mirror-device-${$}`:""});function S(){p.value=i.value.clientWidth,B.value=i.value.clientHeight}const U=Ds.debounce(()=>{S()},300,{trailing:!0,leading:!1});function v(){a.value.length>1&&(c.value=c.value&&c.value.deviceId===a.value[0].deviceId?a.value[1]:a.value[0])}function M(){navigator.mediaDevices.getUserMedia({audio:!1,video:{width:{ideal:r[n.ratio]?r[n.ratio].width:i.value.clientWidth},height:{ideal:r[n.ratio]?r[n.ratio].height:i.value.clientHeight}}}).then($=>{i.value.srcObject=$}).catch($=>{console.log($,"May the browser didnt support or there is some errors.")})}function F(){i.value.srcObject.getTracks().forEach(eA=>{eA.stop()})}function T(){u.value?(u.value=!1,d.value=!1,F()):(u.value=!0,M())}function _(){n.countdown?(m.value=m.value?m.value-1:n.countdown,m.value?setTimeout(_,1e3):N()):N()}A({onCapture:_});function N(){d.value=!0,console.log("capture");const $=s.value.getContext("2d"),eA=i.value,gA=eA&&eA.srcObject&&eA.srcObject.getTracks(),{width:wA,height:aA}=gA.length&&gA[0].getSettings(),HA=wA/aA;let WA=s.value.width,bA=WA/HA;bA<s.value.height&&(bA=s.value.height,WA=bA*HA);const vA=C.value?-1:1;$.save(),$.scale(vA,1),$.drawImage(eA,WA>s.value.width?(s.value.width-WA)/2:0,bA>s.value.height?(s.value.height-bA)/2:0,WA*vA,bA),$.restore();const mA=s.value.toDataURL("image/png");W(mA)}function W($){const eA=dT($);e("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:eA,size:eA.size})}return h.onBeforeMount(async()=>{const $=await navigator.mediaDevices.enumerateDevices();a.value=$.filter(eA=>eA.kind==="videoinput"),c.value=a.value[0],n.defaultRearCamera&&v()}),h.onMounted(()=>{window.addEventListener("resize",U),S(),T()}),h.onBeforeUnmount(()=>{u.value=!1,d.value=!1,F(),window.removeEventListener("resize",U)}),($,eA)=>{const gA=h.resolveComponent("loading-spinner"),wA=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["camera",h.unref(E)])},[h.createElementVNode("div",YS,[h.createElementVNode("div",zS,[h.createVNode(gA,{color:"#000"},{default:h.withCtx(()=>[h.createElementVNode("span",qS,h.toDisplayString($.$t("camera.waitForCameraNotification")),1)]),_:1})]),h.createElementVNode("video",{ref_key:"camera",ref:i,class:"camera__video",width:p.value,height:B.value,autoplay:"",playsinline:""},null,8,ZS),h.withDirectives(h.createElementVNode("canvas",{ref_key:"canvas",ref:s,class:"camera__canvas",width:p.value,height:B.value},null,8,jS),[[h.vShow,d.value]]),m.value?(h.openBlock(),h.createElementBlock("div",AT,[(h.openBlock(),h.createElementBlock("p",{class:"countdown",key:m.value,innerHTML:m.value,"data-countdown":m.value},null,8,eT))])):h.createCommentVNode("",!0),t.enableGuide&&u.value?(h.openBlock(),h.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,tT)):h.createCommentVNode("",!0)]),h.createElementVNode("div",nT,[h.createElementVNode("div",rT,[h.createElementVNode("div",iT,[h.createElementVNode("div",sT,[h.createElementVNode("div",oT,[h.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[u.value?(h.openBlock(),h.createElementBlock("span",lT,h.toDisplayString($.$t("common.pause")),1)):(h.openBlock(),h.createElementBlock("span",aT,h.toDisplayString($.$t("common.play")),1))]),h.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:_},h.toDisplayString($.$t("camera.capture")),1)])])])])]),h.createElementVNode("div",cT,[h.createElementVNode("button",{class:"btn",onClick:h.withModifiers(v,["prevent"])},[h.createVNode(wA,{symbol:"switch-camera"})],8,uT)])],2)}}}),K2="",pT=/"(?:_|\\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*:/,gT=/"(?: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*:/,BT=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function mT(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){wT(t);return}return A}function wT(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function CT(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t[t.length-1]==='"')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(!BT.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(pT.test(t)||gT.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,mT)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const yT=/#/g,QT=/&/g,ET=/=/g,Tu=/\+/g,FT=/%5e/gi,UT=/%60/gi,bT=/%7c/gi,vT=/%20/gi;function IT(t){return encodeURI(""+t).replace(bT,"|")}function xu(t){return IT(typeof t=="string"?t:JSON.stringify(t)).replace(Tu,"%2B").replace(vT,"+").replace(yT,"%23").replace(QT,"%26").replace(UT,"`").replace(FT,"^")}function Hu(t){return xu(t).replace(ET,"%3D")}function WB(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ST(t){return WB(t.replace(Tu," "))}function TT(t){return WB(t.replace(Tu," "))}function xT(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=ST(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=TT(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 HT(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Hu(t)}=${xu(e)}`).join("&"):`${Hu(t)}=${xu(A)}`:Hu(t)}function _T(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>HT(A,t[A])).filter(Boolean).join("&")}const LT=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,OT=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,MT=/^([/\\]\s*){2,}[^/\\]/;function $B(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?LT.test(t):OT.test(t)||(A.acceptRelative?MT.test(t):!1)}const DT=/\/$|\/\?/;function _u(t="",A=!1){return A?DT.test(t):t.endsWith("/")}function kT(t="",A=!1){if(!A)return(_u(t)?t.slice(0,-1):t)||"/";if(!_u(t,!0))return t||"/";const[e,...n]=t.split("?");return(e.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")}function NT(t="",A=!1){if(!A)return t.endsWith("/")?t:t+"/";if(_u(t,!0))return t||"/";const[e,...n]=t.split("?");return e+"/"+(n.length>0?`?${n.join("?")}`:"")}function RT(t,A){if(VT(A)||$B(t))return t;const e=kT(A);return t.startsWith(e)?t:WT(e,t)}function KT(t,A){const e=JB(t),n={...xT(e.search),...A};return e.search=_T(n),$T(e)}function VT(t){return!t||t==="/"}function PT(t){return t&&t!=="/"}const GT=/^\.?\//;function WT(t,...A){let e=t||"";for(const n of A.filter(r=>PT(r)))if(e){const r=n.replace(GT,"");e=NT(e)+r}else e=n;return e}function JB(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(e){const[,p,B=""]=e;return{protocol:p,pathname:B,href:p+B,auth:"",host:"",search:"",hash:""}}if(!$B(t,{acceptRelative:!0}))return A?JB(A+t):XB(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:d}=XB(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n,auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:d}}function XB(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function $T(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 JT extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function XT(t){var c,u,d,p,B;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((d=t.request)==null?void 0:d.method)||((p=t.options)==null?void 0:p.method)||"GET",n=((B=t.request)==null?void 0:B.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 JT(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,C]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[C]}});return a}const YT=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function YB(t="GET"){return YT.has(t.toUpperCase())}function zT(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 qT=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ZT=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jT(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return ZT.test(A)?"json":qT.has(A)||A.startsWith("text/")?"text":"blob"}function Ax(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const ex=new Set([408,409,425,429,500,502,503,504]),tx=new Set([101,204,205,304]);function zB(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 d;typeof a.options.retry=="number"?d=a.options.retry:d=YB(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(d>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):ex.has(p))){const B=a.options.retryDelay||0;return B>0&&await new Promise(m=>setTimeout(m,B)),i(a.request,{...a.options,retry:d-1,timeout:a.options.timeout})}}const u=XT(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var B;const d={request:c,options:Ax(u,t.defaults,e),response:void 0,error:void 0};if(d.options.method=(B=d.options.method)==null?void 0:B.toUpperCase(),d.options.onRequest&&await d.options.onRequest(d),typeof d.request=="string"&&(d.options.baseURL&&(d.request=RT(d.request,d.options.baseURL)),(d.options.query||d.options.params)&&(d.request=KT(d.request,{...d.options.params,...d.options.query}))),d.options.body&&YB(d.options.method)&&(zT(d.options.body)?(d.options.body=typeof d.options.body=="string"?d.options.body:JSON.stringify(d.options.body),d.options.headers=new e(d.options.headers||{}),d.options.headers.has("content-type")||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")):("pipeTo"in d.options.body&&typeof d.options.body.pipeTo=="function"||typeof d.options.body.pipe=="function")&&("duplex"in d.options||(d.options.duplex="half"))),!d.options.signal&&d.options.timeout){const m=new n;setTimeout(()=>m.abort(),d.options.timeout),d.options.signal=m.signal}try{d.response=await A(d.request,d.options)}catch(m){return d.error=m,d.options.onRequestError&&await d.options.onRequestError(d),await r(d)}if(d.response.body&&!tx.has(d.response.status)&&d.options.method!=="HEAD"){const m=(d.options.parseResponse?"json":d.options.responseType)||jT(d.response.headers.get("content-type")||"");switch(m){case"json":{const C=await d.response.text(),E=d.options.parseResponse||CT;d.response._data=E(C);break}case"stream":{d.response._data=d.response.body;break}default:d.response._data=await d.response[m]()}}return d.options.onResponse&&await d.options.onResponse(d),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600?(d.options.onResponseError&&await d.options.onResponseError(d),await r(d)):d.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>zB({...t,defaults:{...t.defaults,...a}}),s}const Lu=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")}(),nx=Lu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),rx=Lu.Headers,ix=Lu.AbortController,sx=zB({fetch:nx,Headers:rx,AbortController:ix}),ox={class:"file-upload"},ax=["src"],lx=["onClick"],cx=["for"],ux=h.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),fx={key:0,class:"file-upload__loading-spinner"},dx=[h.createElementVNode("span",{class:"spinner-border",role:"status"},[h.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function hx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const px=h.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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,previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=h.ref([]),r=h.ref([]),i=h.ref(!1),s=h.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:r.value);h.watch(()=>n,async(u,d)=>{r.value=await Promise.all(u.value.map(async p=>({src:e.toDataUrl?await hx(p):await c(p),type:p.type})))},{deep:!0}),h.watch(()=>r,async(u,d)=>{const p=e.multiple?r.value:r.value[0];A("update:modelValue",p),e.multiple||A("update:src",r.value[0]&&r.value[0].src)},{deep:!0});function a(u){n.value.splice(u,1),(!r.value||!r.value.length)&&A("update:src","")}async function c(u){const d=new FormData;d.append("file",u),i.value=!0;const B=await(e.customFetch||sx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:d}).catch(m=>{console.error("Error",m)});return i.value=!1,console.log("Response",B),`/media/${B.path}`}return(u,d)=>{const p=h.resolveComponent("svg-icon"),B=h.resolveComponent("input-file");return h.openBlock(),h.createElementBlock("div",ox,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s),(m,C)=>(h.openBlock(),h.createElementBlock("div",{key:m.src,class:"file-upload__thumbnail"},[h.createElementVNode("img",{src:`${m.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,ax),h.createElementVNode("button",{onClick:h.withModifiers(E=>a(C),["prevent"]),class:"btn btn--close"},[h.createVNode(p,{symbol:"x"})],8,lx)]))),128)),h.createVNode(B,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),h.createElementVNode("label",{for:t.id,class:"file-upload__label"},[h.renderSlot(u.$slots,"button",{},()=>[ux]),h.createVNode(h.Transition,{name:"fade"},{default:h.withCtx(()=>[i.value?(h.openBlock(),h.createElementBlock("span",fx,dx)):h.createCommentVNode("",!0)]),_:1})],8,cx)])}}}),P2="",gx={class:"upload-group"},Bx=["innerHTML"],mx={class:"row"},wx={class:"img-container"},Cx=["src"],yx=["onClick"],Qx={class:"col-auto mb-4"},Ex={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},qB=h.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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,previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref([...e.modelValue]);function r(i){n.value.splice(i,1),A("update:modelValue",n.value)}return h.watch(n.value,(i,s)=>{A("update:modelValue",i)}),(i,s)=>{const a=h.resolveComponent("svg-icon"),c=h.resolveComponent("file-upload");return h.openBlock(),h.createElementBlock("div",gx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Bx),h.createElementVNode("div",mx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(n.value,(u,d)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"col-auto mb-4"},[h.createElementVNode("div",wx,[h.createElementVNode("img",{src:`${u}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Cx),h.createElementVNode("button",{onClick:h.withModifiers(p=>r(d),["prevent"]),class:"btn btn--close"},[h.createVNode(a,{symbol:"x"})],8,yx)])]))),128)),h.createElementVNode("div",Qx,[h.createVNode(c,{src:n.value[n.value.length],"onUpdate:src":s[0]||(s[0]=u=>n.value[n.value.length]=u),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled},{button:h.withCtx(()=>[h.createElementVNode("span",Ex,[h.createVNode(a,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled"])])])])}}}),G2="",Fx={class:"upload-group"},Ux=["innerHTML"],bx=h.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>we()},id:{type:String,default:()=>we()},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"})},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.computed({get(){return e.modelValue.map(r=>r.src)},set(r){A("update:modelValue",r.map((i,s)=>({mediaType:e.modelValue[s]&&e.modelValue[s].mediaType||i.includes("data:image")?i.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[i.split(".")[1]],src:i instanceof Object?`/media/${i.path}`:i,name:e.modelValue[s]&&e.modelValue[s].name||`${e.name}-${s}`,...e.type?{type:e.type}:{}})))}});return(r,i)=>(h.openBlock(),h.createElementBlock("div",Fx,[h.createElementVNode("label",{innerHTML:t.label},null,8,Ux),h.createVNode(qB,{modelValue:h.unref(n),"onUpdate:modelValue":i[0]||(i[0]=s=>h.isRef(n)?n.value=s:null),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width"])]))}}),W2="",vx={class:"carousel d-flex gap-2 align-items-center"},Ix=["onClick"],Sx={class:"carousel__track d-flex justify-center"},Tx=["onClick"],xx=["onClick"],ZB=h.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref();function n(){e.value.scrollTo({top:0,left:0,behavior:"smooth"})}function r(){e.value.scrollTo({top:0,left:e.value.clientWidth,behavior:"smooth"})}function i(s){A("update:modelValue",s)}return(s,a)=>{const c=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",vx,[t.navigation?(h.openBlock(),h.createElementBlock("button",{key:0,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(n,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-left"})],8,Ix)):h.createCommentVNode("",!0),h.createElementVNode("div",{ref_key:"viewport",ref:e,class:"carousel__viewport flex-grow-1"},[h.createElementVNode("div",Sx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.items,(u,d)=>h.renderSlot(s.$slots,"carousel-item",{key:u.src,item:u,index:d},()=>[h.createElementVNode("div",{class:h.normalizeClass(["carousel__item col-3",d===t.modelValue?"selected":""]),onClick:p=>i(d)},h.toDisplayString(u),11,Tx)])),128))])],512),t.navigation?(h.openBlock(),h.createElementBlock("button",{key:1,class:"btn btn-link text-light",type:"button",onClick:h.withModifiers(r,["prevent","stop"])},[h.createVNode(c,{symbol:"chevron-right"})],8,xx)):h.createCommentVNode("",!0)])}}}),$2="",Hx={class:"media-thumbnails"},_x=["onClick"],Lx={class:"img-container ratio ratio-1x1"},Ox=["src"],Mx=h.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=h.ref(-1);function n(r){A("update:modelValue",r),A("select",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Hx,[h.createVNode(ZB,{items:t.assets},{"carousel-item":h.withCtx(s=>[h.createElementVNode("a",{role:"button",class:"carousel-cell col-3 media-thumbnails__thumbnail",onClick:a=>n(s.index)},[h.createElementVNode("div",Lx,[h.createElementVNode("img",{src:s.item.thumbnail||s.item.src,class:h.normalizeClass(["img-fluid",e.value===s.index?"is-active":""])},null,10,Ox)])],8,_x)]),_:1},8,["items"])]))}}),J2="",Dx={class:"progress-steps"},kx={class:"progress-steps__list"},Nx={class:"progress-step"},Rx=["checked","id","value","disabled","read-only","required","onChange"],Kx=["for"],Vx=["innerHTML"],Px=["for"],Gx=["innerHTML"],Wx=h.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t;function n(r){A("update:modelValue",r),r>=e.progress&&A("update:progress",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",Dx,[h.createElementVNode("ul",kx,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.steps,(s,a)=>(h.openBlock(),h.createElementBlock("li",{key:a,class:h.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":a>t.progress+(t.reveal?1:0),"progress-steps__step--active":a===(t.modelValue||0)}])},[h.renderSlot(r.$slots,"step",{},()=>[h.createElementVNode("div",Nx,[h.createElementVNode("input",{type:"radio",checked:a<=(t.progress||0),id:`step-${a}`,name:"step",class:"form-check-input",value:s.value,disabled:s.disabled||a>t.progress+(t.reveal?1:0),"read-only":s.readOnly,required:s.required,onChange:c=>n(a)},null,40,Rx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"button",{step:s},()=>[h.createElementVNode("span",{class:"btn rounded-circle",innerHTML:s.text},null,8,Vx)])],8,Kx),h.createElementVNode("label",{for:`step-${a}`},[h.renderSlot(r.$slots,"label",{step:s},()=>[h.createElementVNode("span",{class:"form-check-label",innerHTML:s.label},null,8,Gx)])],8,Px)])])],2))),128))])]))}}),X2="";/*!
|
|
164
164
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
165
165
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
166
166
|
* Released under MIT License
|
|
@@ -177,8 +177,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
177
177
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
178
178
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
179
179
|
PERFORMANCE OF THIS SOFTWARE.
|
|
180
|
-
***************************************************************************** */var Ou=function(t,A){return Ou=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])},Ou(t,A)};function sn(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Ou(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var ku=function(){return ku=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},ku.apply(this,arguments)};function rt(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(d){try{u(n.next(d))}catch(p){s(p)}}function c(d){try{u(n.throw(d))}catch(p){s(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((n=n.apply(t,A||[])).next())})}function Xe(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(d){return c([u,d])}}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(d){u=[6,d],r=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ga(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 Mn=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 Mn.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 Mn(0,0,n,r)},ma=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},ce=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},jB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jx=typeof Uint8Array>"u"?[]:new Uint8Array(256),wa=0;wa<jB.length;wa++)Jx[jB.charCodeAt(wa)]=wa;for(var Am="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ds=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ca=0;Ca<Am.length;Ca++)Ds[Am.charCodeAt(Ca)]=Ca;for(var Xx=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),d=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;n+=4)i=Ds[t.charCodeAt(n)],s=Ds[t.charCodeAt(n+1)],a=Ds[t.charCodeAt(n+2)],c=Ds[t.charCodeAt(n+3)],d[r++]=i<<2|s>>4,d[r++]=(s&15)<<4|a>>2,d[r++]=(a&3)<<6|c&63;return u},Yx=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},zx=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},Zr=5,Mu=6+5,Du=2,qx=Mu-Zr,em=65536>>Zr,Zx=1<<Zr,Nu=Zx-1,jx=1024>>Zr,AH=em+jx,eH=AH,tH=32,nH=eH+tH,rH=65536>>Mu,iH=1<<qx,sH=iH-1,tm=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},oH=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},aH=function(t,A){var e=Xx(t),n=Array.isArray(e)?zx(e):new Uint32Array(e),r=Array.isArray(e)?Yx(e):new Uint16Array(e),i=24,s=tm(r,i/2,n[4]/2),a=n[5]===2?tm(r,(i+n[4])/2):oH(n,Math.ceil((i+n[4])/4));return new lH(n[0],n[1],n[2],n[3],s,a)},lH=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>>Zr],e=(e<<Du)+(A&Nu),this.data[e];if(A<=65535)return e=this.index[em+(A-55296>>Zr)],e=(e<<Du)+(A&Nu),this.data[e];if(A<this.highStart)return e=nH-rH+(A>>Mu),e=this.index[e],e+=A>>Zr&sH,e=this.index[e],e=(e<<Du)+(A&Nu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),nm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cH=typeof Uint8Array>"u"?[]:new Uint8Array(256),ya=0;ya<nm.length;ya++)cH[nm.charCodeAt(ya)]=ya;var uH="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAv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csBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0I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CIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmIC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LAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADA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KwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwB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AeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsA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B4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACs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ABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlAC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AlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",rm=50,fH=1,im=2,sm=3,dH=4,hH=5,om=7,am=8,lm=9,gr=10,Ru=11,cm=12,Ku=13,pH=14,Ns=15,Vu=16,Qa=17,Rs=18,gH=19,um=20,Pu=21,Ks=22,Gu=23,Di=24,vt=25,Vs=26,Ps=27,Ni=28,BH=29,jr=30,mH=31,Ea=32,Fa=33,Wu=34,$u=35,Ju=36,Gs=37,Xu=38,Ua=39,ba=40,Yu=41,fm=42,wH=43,CH=[9001,65288],dm="!",xA="×",va="÷",zu=aH(uH),Dn=[jr,Ju],qu=[fH,im,sm,hH],hm=[gr,am],pm=[Ps,Vs],yH=qu.concat(hm),gm=[Xu,Ua,ba,Wu,$u],QH=[Ns,Ku],EH=function(t,A){A===void 0&&(A="strict");var e=[],n=[],r=[];return t.forEach(function(i,s){var a=zu.get(i);if(a>rm?(r.push(!0),a-=rm):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),e.push(Vu);if(a===dH||a===Ru){if(s===0)return n.push(s),e.push(jr);var c=e[s-1];return yH.indexOf(c)===-1?(n.push(n[s-1]),e.push(c)):(n.push(s),e.push(jr))}if(n.push(s),a===mH)return e.push(A==="strict"?Pu:Gs);if(a===fm||a===BH)return e.push(jr);if(a===wH)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Gs):e.push(jr);e.push(a)}),[n,e,r]},Zu=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!==gr)break}if(r===gr)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!==gr)break}if(a!==gr)break}return!1},Bm=function(t,A){for(var e=t;e>=0;){var n=A[e];if(n===gr)e--;else return n}return 0},FH=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,d=A[a];if(c===im&&d===sm)return xA;if(qu.indexOf(c)!==-1)return dm;if(qu.indexOf(d)!==-1||hm.indexOf(d)!==-1)return xA;if(Bm(i,A)===am)return va;if(zu.get(t[i])===Ru||(c===Ea||c===Fa)&&zu.get(t[a])===Ru||c===om||d===om||c===lm||[gr,Ku,Ns].indexOf(c)===-1&&d===lm||[Qa,Rs,gH,Di,Ni].indexOf(d)!==-1||Bm(i,A)===Ks||Zu(Gu,Ks,i,A)||Zu([Qa,Rs],Pu,i,A)||Zu(cm,cm,i,A))return xA;if(c===gr)return va;if(c===Gu||d===Gu)return xA;if(d===Vu||c===Vu)return va;if([Ku,Ns,Pu].indexOf(d)!==-1||c===pH||u===Ju&&QH.indexOf(c)!==-1||c===Ni&&d===Ju||d===um||Dn.indexOf(d)!==-1&&c===vt||Dn.indexOf(c)!==-1&&d===vt||c===Ps&&[Gs,Ea,Fa].indexOf(d)!==-1||[Gs,Ea,Fa].indexOf(c)!==-1&&d===Vs||Dn.indexOf(c)!==-1&&pm.indexOf(d)!==-1||pm.indexOf(c)!==-1&&Dn.indexOf(d)!==-1||[Ps,Vs].indexOf(c)!==-1&&(d===vt||[Ks,Ns].indexOf(d)!==-1&&A[a+1]===vt)||[Ks,Ns].indexOf(c)!==-1&&d===vt||c===vt&&[vt,Ni,Di].indexOf(d)!==-1)return xA;if([vt,Ni,Di,Qa,Rs].indexOf(d)!==-1)for(var p=i;p>=0;){var B=A[p];if(B===vt)return xA;if([Ni,Di].indexOf(B)!==-1)p--;else break}if([Ps,Vs].indexOf(d)!==-1)for(var p=[Qa,Rs].indexOf(c)!==-1?s:i;p>=0;){var B=A[p];if(B===vt)return xA;if([Ni,Di].indexOf(B)!==-1)p--;else break}if(Xu===c&&[Xu,Ua,Wu,$u].indexOf(d)!==-1||[Ua,Wu].indexOf(c)!==-1&&[Ua,ba].indexOf(d)!==-1||[ba,$u].indexOf(c)!==-1&&d===ba||gm.indexOf(c)!==-1&&[um,Vs].indexOf(d)!==-1||gm.indexOf(d)!==-1&&c===Ps||Dn.indexOf(c)!==-1&&Dn.indexOf(d)!==-1||c===Di&&Dn.indexOf(d)!==-1||Dn.concat(vt).indexOf(c)!==-1&&d===Ks&&CH.indexOf(t[a])===-1||Dn.concat(vt).indexOf(d)!==-1&&c===Rs)return xA;if(c===Yu&&d===Yu){for(var m=e[i],C=1;m>0&&(m--,A[m]===Yu);)C++;if(C%2!==0)return xA}return c===Ea&&d===Fa?xA:va},UH=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=EH(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[vt,jr,fm].indexOf(a)!==-1?Gs: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]},bH=function(){function t(A,e,n,r){this.codePoints=A,this.required=e===dm,this.start=n,this.end=r}return t.prototype.slice=function(){return ce.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),vH=function(t,A){var e=ma(t),n=UH(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 d=xA;u<a&&(d=FH(e,i,r,++u,s))===xA;);if(d!==xA||u===a){var p=new bH(e,d,c,u);return c=u,{value:p,done:!1}}return{done:!0,value:null}}}},IH=1<<0,SH=1<<1,Ws=1<<2,mm=1<<3,Ia=10,wm=47,$s=92,TH=9,xH=32,Sa=34,Js=61,HH=35,_H=36,LH=37,Ta=39,xa=40,Xs=41,OH=95,gt=45,kH=33,MH=60,DH=62,NH=64,RH=91,KH=93,VH=61,PH=123,Ha=63,GH=125,Cm=124,WH=126,$H=128,ym=65533,ju=42,Ai=43,JH=44,XH=58,YH=59,Ys=46,zH=0,qH=8,ZH=11,jH=14,A_=31,e_=127,Qn=-1,Qm=48,Em=97,Fm=101,t_=102,n_=117,r_=122,Um=65,bm=69,vm=70,i_=85,s_=90,Ye=function(t){return t>=Qm&&t<=57},o_=function(t){return t>=55296&&t<=57343},Ri=function(t){return Ye(t)||t>=Um&&t<=vm||t>=Em&&t<=t_},a_=function(t){return t>=Em&&t<=r_},l_=function(t){return t>=Um&&t<=s_},c_=function(t){return a_(t)||l_(t)},u_=function(t){return t>=$H},_a=function(t){return t===Ia||t===TH||t===xH},La=function(t){return c_(t)||u_(t)||t===OH},Im=function(t){return La(t)||Ye(t)||t===gt},f_=function(t){return t>=zH&&t<=qH||t===ZH||t>=jH&&t<=A_||t===e_},Br=function(t,A){return t!==$s?!1:A!==Ia},Oa=function(t,A,e){return t===gt?La(A)||Br(A,e):La(t)?!0:!!(t===$s&&Br(t,A))},Af=function(t,A,e){return t===Ai||t===gt?Ye(A)?!0:A===Ys&&Ye(e):Ye(t===Ys?A:t)},d_=function(t){var A=0,e=1;(t[A]===Ai||t[A]===gt)&&(t[A]===gt&&(e=-1),A++);for(var n=[];Ye(t[A]);)n.push(t[A++]);var r=n.length?parseInt(ce.apply(void 0,n),10):0;t[A]===Ys&&A++;for(var i=[];Ye(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(ce.apply(void 0,i),10):0;(t[A]===bm||t[A]===Fm)&&A++;var c=1;(t[A]===Ai||t[A]===gt)&&(t[A]===gt&&(c=-1),A++);for(var u=[];Ye(t[A]);)u.push(t[A++]);var d=u.length?parseInt(ce.apply(void 0,u),10):0;return e*(r+a*Math.pow(10,-s))*Math.pow(10,c*d)},h_={type:2},p_={type:3},g_={type:4},B_={type:13},m_={type:8},w_={type:21},C_={type:9},y_={type:10},Q_={type:11},E_={type:12},F_={type:14},ka={type:23},U_={type:1},b_={type:25},v_={type:24},I_={type:26},S_={type:27},T_={type:28},x_={type:29},H_={type:31},ef={type:32},Sm=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(ma(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==ef;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Sa:return this.consumeStringToken(Sa);case HH:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(Im(e)||Br(n,r)){var i=Oa(e,n,r)?SH:IH,s=this.consumeName();return{type:5,value:s,flags:i}}break;case _H:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),B_;break;case Ta:return this.consumeStringToken(Ta);case xa:return h_;case Xs:return p_;case ju:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),F_;break;case Ai:if(Af(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case JH:return g_;case gt:var a=A,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Af(a,c,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Oa(a,c,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===gt&&u===DH)return this.consumeCodePoint(),this.consumeCodePoint(),v_;break;case Ys:if(Af(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wm:if(this.peekCodePoint(0)===ju)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===ju&&(d=this.consumeCodePoint(),d===wm))return this.consumeToken();if(d===Qn)return this.consumeToken()}break;case XH:return I_;case YH:return S_;case MH:if(this.peekCodePoint(0)===kH&&this.peekCodePoint(1)===gt&&this.peekCodePoint(2)===gt)return this.consumeCodePoint(),this.consumeCodePoint(),b_;break;case NH:var p=this.peekCodePoint(0),B=this.peekCodePoint(1),m=this.peekCodePoint(2);if(Oa(p,B,m)){var s=this.consumeName();return{type:7,value:s}}break;case RH:return T_;case $s:if(Br(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case KH:return x_;case VH:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),m_;break;case PH:return Q_;case GH:return E_;case n_:case i_:var C=this.peekCodePoint(0),E=this.peekCodePoint(1);return C===Ai&&(Ri(E)||E===Ha)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Cm:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),C_;if(this.peekCodePoint(0)===Cm)return this.consumeCodePoint(),w_;break;case WH:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),y_;break;case Qn:return ef}return _a(A)?(this.consumeWhiteSpace(),H_):Ye(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):La(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:ce(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();Ri(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var n=!1;e===Ha&&A.length<6;)A.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(ce.apply(void 0,A.map(function(c){return c===Ha?Qm:c})),16),i=parseInt(ce.apply(void 0,A.map(function(c){return c===Ha?vm:c})),16);return{type:30,start:r,end:i}}var s=parseInt(ce.apply(void 0,A),16);if(this.peekCodePoint(0)===gt&&Ri(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];Ri(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(ce.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)===xa?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===xa?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Ta||e===Sa){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qn||this.peekCodePoint(0)===Xs)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),ka)}for(;;){var r=this.consumeCodePoint();if(r===Qn||r===Xs)return{type:22,value:ce.apply(void 0,A)};if(_a(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Qn||this.peekCodePoint(0)===Xs?(this.consumeCodePoint(),{type:22,value:ce.apply(void 0,A)}):(this.consumeBadUrlRemnants(),ka);if(r===Sa||r===Ta||r===xa||f_(r))return this.consumeBadUrlRemnants(),ka;if(r===$s)if(Br(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ka;else A.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;_a(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Xs||A===Qn)return;Br(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+=ce.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===Qn||r===void 0||r===A)return e+=this.consumeStringSlice(n),{type:0,value:e};if(r===Ia)return this._value.splice(0,n),U_;if(r===$s){var i=this._value[n+1];i!==Qn&&i!==void 0&&(i===Ia?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Br(r,i)&&(e+=this.consumeStringSlice(n),e+=ce(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=Ws,n=this.peekCodePoint(0);for((n===Ai||n===gt)&&A.push(this.consumeCodePoint());Ye(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Ys&&Ye(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=mm;Ye(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===bm||n===Fm)&&((r===Ai||r===gt)&&Ye(i)||Ye(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=mm;Ye(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[d_(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(Oa(r,i,s)){var a=this.consumeName();return{type:15,number:e,flags:n,unit:a}}return r===LH?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ri(A)){for(var e=ce(A);Ri(this.peekCodePoint(0))&&e.length<6;)e+=ce(this.consumeCodePoint());_a(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||o_(n)||n>1114111?ym:n}return A===Qn?ym:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Im(e))A+=ce(e);else if(Br(e,this.peekCodePoint(0)))A+=ce(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),Tm=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new Sm;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||L_(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"?ef:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),zs=function(t){return t.type===15},Ki=function(t){return t.type===17},GA=function(t){return t.type===20},__=function(t){return t.type===0},tf=function(t,A){return GA(t)&&t.value===A},xm=function(t){return t.type!==31},Vi=function(t){return t.type!==31&&t.type!==4},En=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},L_=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},mr=function(t){return t.type===17||t.type===15},ge=function(t){return t.type===16||mr(t)},Hm=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},ke={type:17,number:0,flags:Ws},nf={type:16,number:50,flags:Ws},wr={type:16,number:100,flags:Ws},qs=function(t,A,e){var n=t[0],r=t[1];return[YA(n,A),YA(typeof r<"u"?r:n,e)]},YA=function(t,A){if(t.type===16)return t.number/100*A;if(zs(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},_m="deg",Lm="grad",Om="rad",km="turn",Ma={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case _m:return Math.PI*A.number/180;case Lm:return Math.PI/200*A.number;case Om:return A.number;case km:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Mm=function(t){return t.type===15&&(t.unit===_m||t.unit===Lm||t.unit===Om||t.unit===km)},Dm=function(t){var A=t.filter(GA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ke,ke];case"to top":case"bottom":return Rt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ke,wr];case"to right":case"left":return Rt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[wr,wr];case"to bottom":case"top":return Rt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[wr,ke];case"to left":case"right":return Rt(270)}return 0},Rt=function(t){return Math.PI*t/180},Cr={name:"color",parse:function(t,A){if(A.type===18){var e=O_[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 Qr(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 Qr(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 Qr(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 Qr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Nn[A.value.toUpperCase()];if(typeof a<"u")return a}return Nn.TRANSPARENT}},yr=function(t){return(255&t)===0},Se=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+")"},Qr=function(t,A,e,n){return(t<<24|A<<16|e<<8|Math.round(n*255)<<0)>>>0},Nm=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},Rm=function(t,A){var e=A.filter(Vi);if(e.length===3){var n=e.map(Nm),r=n[0],i=n[1],s=n[2];return Qr(r,i,s,1)}if(e.length===4){var a=e.map(Nm),r=a[0],i=a[1],s=a[2],c=a[3];return Qr(r,i,s,c)}return 0};function rf(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 Km=function(t,A){var e=A.filter(Vi),n=e[0],r=e[1],i=e[2],s=e[3],a=(n.type===17?Rt(n.number):Ma.parse(t,n))/(Math.PI*2),c=ge(r)?r.number/100:0,u=ge(i)?i.number/100:0,d=typeof s<"u"&&ge(s)?YA(s,1):1;if(c===0)return Qr(u*255,u*255,u*255,1);var p=u<=.5?u*(c+1):u+c-u*c,B=u*2-p,m=rf(B,p,a+1/3),C=rf(B,p,a),E=rf(B,p,a-1/3);return Qr(m*255,C*255,E*255,d)},O_={hsl:Km,hsla:Km,rgb:Rm,rgba:Rm},Zs=function(t,A){return Cr.parse(t,Tm.create(A).parseComponentValue())},Nn={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},k_={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(GA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},M_={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Da=function(t,A){var e=Cr.parse(t,A[0]),n=A[1];return n&&ge(n)?{color:e,stop:n}:{color:e,stop:null}},Vm=function(t,A){var e=t[0],n=t[t.length-1];e.stop===null&&(e.stop=ke),n.stop===null&&(n.stop=wr);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=YA(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 d=r[s];if(d===null)u===null&&(u=s);else if(u!==null){for(var p=s-u,B=r[u-1],m=(d-B)/(p+1),C=1;C<=p;C++)r[u+C-1]=m*C;u=null}}return t.map(function(E,S){var U=E.color;return{color:U,stop:Math.max(Math.min(1,r[S]/A),0)}})},D_=function(t,A,e){var n=A/2,r=e/2,i=YA(t[0],A)-n,s=r-YA(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},N_=function(t,A,e){var n=typeof t=="number"?t:D_(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]},on=function(t,A){return Math.sqrt(t*t+A*A)},Pm=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],d=on(e-c,n-u);return(r?d<s.optimumDistance:d>s.optimumDistance)?{optimumCorner:a,optimumDistance:d}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},R_=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(on(A,e),on(A,e-r),on(A-n,e),on(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=Pm(n,r,A,e,!0),u=c[0],d=c[1];i=on(u-A,(d-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(on(A,e),on(A,e-r),on(A-n,e),on(A-n,e-r));else if(t.shape===1){var a=Math.max(Math.abs(e),Math.abs(e-r))/Math.max(Math.abs(A),Math.abs(A-n)),p=Pm(n,r,A,e,!1),u=p[0],d=p[1];i=on(u-A,(d-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=YA(t.size[0],n),s=t.size.length===2?YA(t.size[1],r):i),[i,s]},K_=function(t,A){var e=Rt(180),n=[];return En(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){e=Dm(r);return}else if(Mm(s)){e=Ma.parse(t,s);return}}var a=Da(t,r);n.push(a)}),{angle:e,stops:n,type:1}},Na=function(t,A){var e=Rt(180),n=[];return En(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=Dm(r);return}else if(Mm(s)){e=(Ma.parse(t,s)+Rt(270))%Rt(360);return}}var a=Da(t,r);n.push(a)}),{angle:e,stops:n,type:1}},V_=function(t,A){var e=Rt(180),n=[],r=1,i=0,s=3,a=[];return En(A).forEach(function(c,u){var d=c[0];if(u===0){if(GA(d)&&d.value==="linear"){r=1;return}else if(GA(d)&&d.value==="radial"){r=2;return}}if(d.type===18){if(d.name==="from"){var p=Cr.parse(t,d.values[0]);n.push({stop:ke,color:p})}else if(d.name==="to"){var p=Cr.parse(t,d.values[0]);n.push({stop:wr,color:p})}else if(d.name==="color-stop"){var B=d.values.filter(Vi);if(B.length===2){var p=Cr.parse(t,B[1]),m=B[0];Ki(m)&&n.push({stop:{type:16,number:m.number*100,flags:m.flags},color:p})}}}}),r===1?{angle:(e+Rt(180))%Rt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},Gm="closest-side",Wm="farthest-side",$m="closest-corner",Jm="farthest-corner",Xm="circle",Ym="ellipse",zm="cover",qm="contain",P_=function(t,A){var e=0,n=3,r=[],i=[];return En(A).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,B){if(u)if(GA(B))switch(B.value){case"center":return i.push(nf),p;case"top":case"left":return i.push(ke),p;case"right":case"bottom":return i.push(wr),p}else(ge(B)||mr(B))&&i.push(B);else if(GA(B))switch(B.value){case Xm:return e=0,!1;case Ym:return e=1,!1;case"at":return u=!0,!1;case Gm:return n=0,!1;case zm:case Wm:return n=1,!1;case qm:case $m:return n=2,!1;case Jm:return n=3,!1}else if(mr(B)||ge(B))return Array.isArray(n)||(n=[]),n.push(B),!1;return p},c)}if(c){var d=Da(t,s);r.push(d)}}),{size:n,shape:e,stops:r,position:i,type:2}},Ra=function(t,A){var e=0,n=3,r=[],i=[];return En(A).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(d,p){if(GA(p))switch(p.value){case"center":return i.push(nf),!1;case"top":case"left":return i.push(ke),!1;case"right":case"bottom":return i.push(wr),!1}else if(ge(p)||mr(p))return i.push(p),!1;return d},c):a===1&&(c=s.reduce(function(d,p){if(GA(p))switch(p.value){case Xm:return e=0,!1;case Ym:return e=1,!1;case qm:case Gm:return n=0,!1;case Wm:return n=1,!1;case $m:return n=2,!1;case zm:case Jm:return n=3,!1}else if(mr(p)||ge(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return d},c)),c){var u=Da(t,s);r.push(u)}}),{size:n,shape:e,stops:r,position:i,type:2}},G_=function(t){return t.type===1},W_=function(t){return t.type===2},sf={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=Zm[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 $_(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Zm[t.name])}var Zm={"linear-gradient":K_,"-moz-linear-gradient":Na,"-ms-linear-gradient":Na,"-o-linear-gradient":Na,"-webkit-linear-gradient":Na,"radial-gradient":P_,"-moz-radial-gradient":Ra,"-ms-radial-gradient":Ra,"-o-radial-gradient":Ra,"-webkit-radial-gradient":Ra,"-webkit-gradient":V_},J_={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 Vi(n)&&$_(n)}).map(function(n){return sf.parse(t,n)})}},X_={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(GA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Y_={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return En(A).map(function(e){return e.filter(ge)}).map(Hm)}},z_={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return En(A).map(function(e){return e.filter(GA).map(function(n){return n.value}).join(" ")}).map(q_)}},q_=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}},Pi;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Pi||(Pi={}));var Z_={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return En(A).map(function(e){return e.filter(j_)})}},j_=function(t){return GA(t)||ge(t)},Ka=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},AL=Ka("top"),eL=Ka("right"),tL=Ka("bottom"),nL=Ka("left"),Va=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Hm(e.filter(ge))}}},rL=Va("top-left"),iL=Va("top-right"),sL=Va("bottom-right"),oL=Va("bottom-left"),Pa=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}}},aL=Pa("top"),lL=Pa("right"),cL=Pa("bottom"),uL=Pa("left"),Ga=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return zs(e)?e.number:0}}},fL=Ga("top"),dL=Ga("right"),hL=Ga("bottom"),pL=Ga("left"),gL={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BL={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},mL={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(GA).reduce(function(e,n){return e|wL(n.value)},0)}},wL=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},CL={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}},yL={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}},Wa;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Wa||(Wa={}));var QL={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return Wa.STRICT;case"normal":default:return Wa.NORMAL}}},EL={name:"line-height",initialValue:"normal",prefix:!1,type:4},jm=function(t,A){return GA(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:ge(t)?YA(t,A):A},FL={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:sf.parse(t,A)}},UL={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}}},of={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}}},$a=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},bL=$a("top"),vL=$a("right"),IL=$a("bottom"),SL=$a("left"),TL={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(GA).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}})}},xL={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"}}},Ja=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},HL=Ja("top"),_L=Ja("right"),LL=Ja("bottom"),OL=Ja("left"),kL={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}}},ML={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}},DL={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&tf(A[0],"none")?[]:En(A).map(function(e){for(var n={color:Nn.TRANSPARENT,offsetX:ke,offsetY:ke,blur:ke},r=0,i=0;i<e.length;i++){var s=e[i];mr(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:n.blur=s,r++):n.color=Cr.parse(t,s)}return n})}},NL={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}},RL={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=PL[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},KL=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},VL=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},PL={matrix:KL,matrix3d:VL},Aw={type:16,number:50,flags:Ws},GL=[Aw,Aw],WL={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(ge);return e.length!==2?GL:[e[0],e[1]]}},$L={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}}},js;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(js||(js={}));for(var JL={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return js.BREAK_ALL;case"keep-all":return js.KEEP_ALL;case"normal":default:return js.NORMAL}}},XL={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Ki(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ew={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")}},YL={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Ki(A)?A.number:1}},zL={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qL={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(GA).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})}},ZL={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+"'"})}},jL={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},AO={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Ki(A))return A.number;if(GA(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},eO={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(GA).map(function(e){return e.value})}},tO={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"}}},Ee=function(t,A){return(t&A)!==0},nO={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}},rO={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(xm),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&Ki(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},iO={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],n=A.filter(xm),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(GA(i)&&i.value!=="none"){var a=s&&Ki(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},sO={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(zs).map(function(e){return ew.parse(t,e)})}},oO={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(__);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}},tw=function(t,A,e){if(!t)return"";var n=t[Math.min(A,t.length-1)];return n?e?n.open:n.close:""},aO={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&tf(A[0],"none")?[]:En(A).map(function(e){for(var n={color:255,offsetX:ke,offsetY:ke,blur:ke,spread:ke,inset:!1},r=0,i=0;i<e.length;i++){var s=e[i];tf(s,"inset")?n.inset=!0:mr(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:r===2?n.blur=s:n.spread=s,r++):n.color=Cr.parse(t,s)}return n})}},lO={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],n=[];return A.filter(GA).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}},cO={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},uO={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return zs(A)?A.number:0}},fO=function(){function t(A,e){var n,r;this.animationDuration=AA(A,sO,e.animationDuration),this.backgroundClip=AA(A,k_,e.backgroundClip),this.backgroundColor=AA(A,M_,e.backgroundColor),this.backgroundImage=AA(A,J_,e.backgroundImage),this.backgroundOrigin=AA(A,X_,e.backgroundOrigin),this.backgroundPosition=AA(A,Y_,e.backgroundPosition),this.backgroundRepeat=AA(A,z_,e.backgroundRepeat),this.backgroundSize=AA(A,Z_,e.backgroundSize),this.borderTopColor=AA(A,AL,e.borderTopColor),this.borderRightColor=AA(A,eL,e.borderRightColor),this.borderBottomColor=AA(A,tL,e.borderBottomColor),this.borderLeftColor=AA(A,nL,e.borderLeftColor),this.borderTopLeftRadius=AA(A,rL,e.borderTopLeftRadius),this.borderTopRightRadius=AA(A,iL,e.borderTopRightRadius),this.borderBottomRightRadius=AA(A,sL,e.borderBottomRightRadius),this.borderBottomLeftRadius=AA(A,oL,e.borderBottomLeftRadius),this.borderTopStyle=AA(A,aL,e.borderTopStyle),this.borderRightStyle=AA(A,lL,e.borderRightStyle),this.borderBottomStyle=AA(A,cL,e.borderBottomStyle),this.borderLeftStyle=AA(A,uL,e.borderLeftStyle),this.borderTopWidth=AA(A,fL,e.borderTopWidth),this.borderRightWidth=AA(A,dL,e.borderRightWidth),this.borderBottomWidth=AA(A,hL,e.borderBottomWidth),this.borderLeftWidth=AA(A,pL,e.borderLeftWidth),this.boxShadow=AA(A,aO,e.boxShadow),this.color=AA(A,gL,e.color),this.direction=AA(A,BL,e.direction),this.display=AA(A,mL,e.display),this.float=AA(A,CL,e.cssFloat),this.fontFamily=AA(A,ZL,e.fontFamily),this.fontSize=AA(A,jL,e.fontSize),this.fontStyle=AA(A,tO,e.fontStyle),this.fontVariant=AA(A,eO,e.fontVariant),this.fontWeight=AA(A,AO,e.fontWeight),this.letterSpacing=AA(A,yL,e.letterSpacing),this.lineBreak=AA(A,QL,e.lineBreak),this.lineHeight=AA(A,EL,e.lineHeight),this.listStyleImage=AA(A,FL,e.listStyleImage),this.listStylePosition=AA(A,UL,e.listStylePosition),this.listStyleType=AA(A,of,e.listStyleType),this.marginTop=AA(A,bL,e.marginTop),this.marginRight=AA(A,vL,e.marginRight),this.marginBottom=AA(A,IL,e.marginBottom),this.marginLeft=AA(A,SL,e.marginLeft),this.opacity=AA(A,YL,e.opacity);var i=AA(A,TL,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=AA(A,xL,e.overflowWrap),this.paddingTop=AA(A,HL,e.paddingTop),this.paddingRight=AA(A,_L,e.paddingRight),this.paddingBottom=AA(A,LL,e.paddingBottom),this.paddingLeft=AA(A,OL,e.paddingLeft),this.paintOrder=AA(A,lO,e.paintOrder),this.position=AA(A,ML,e.position),this.textAlign=AA(A,kL,e.textAlign),this.textDecorationColor=AA(A,zL,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=AA(A,qL,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=AA(A,DL,e.textShadow),this.textTransform=AA(A,NL,e.textTransform),this.transform=AA(A,RL,e.transform),this.transformOrigin=AA(A,WL,e.transformOrigin),this.visibility=AA(A,$L,e.visibility),this.webkitTextStrokeColor=AA(A,cO,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=AA(A,uO,e.webkitTextStrokeWidth),this.wordBreak=AA(A,JL,e.wordBreak),this.zIndex=AA(A,XL,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return yr(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 Ee(this.display,4)||Ee(this.display,33554432)||Ee(this.display,268435456)||Ee(this.display,536870912)||Ee(this.display,67108864)||Ee(this.display,134217728)},t}(),dO=function(){function t(A,e){this.content=AA(A,nO,e.content),this.quotes=AA(A,oO,e.quotes)}return t}(),nw=function(){function t(A,e){this.counterIncrement=AA(A,rO,e.counterIncrement),this.counterReset=AA(A,iO,e.counterReset)}return t}(),AA=function(t,A,e){var n=new Sm,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;n.write(r);var i=new Tm(n.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,GA(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 Ma.parse(t,i.parseComponentValue());case"color":return Cr.parse(t,i.parseComponentValue());case"image":return sf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return mr(a)?a:ke;case"length-percentage":var c=i.parseComponentValue();return ge(c)?c:ke;case"time":return ew.parse(t,i.parseComponentValue())}break}},hO="data-html2canvas-debug",pO=function(t){var A=t.getAttribute(hO);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},af=function(t,A){var e=pO(t);return e===1||A===e},Fn=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,af(e,3))debugger;this.styles=new fO(A,window.getComputedStyle(e,null)),Qf(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),af(e,4)&&(this.flags|=16)}return t}(),gO="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU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AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUB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AAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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,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),d=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;n+=4)i=Ao[t.charCodeAt(n)],s=Ao[t.charCodeAt(n+1)],a=Ao[t.charCodeAt(n+2)],c=Ao[t.charCodeAt(n+3)],d[r++]=i<<2|s>>4,d[r++]=(s&15)<<4|a>>2,d[r++]=(a&3)<<6|c&63;return u},mO=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},wO=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},ei=5,lf=6+5,cf=2,CO=lf-ei,iw=65536>>ei,yO=1<<ei,uf=yO-1,QO=1024>>ei,EO=iw+QO,FO=EO,UO=32,bO=FO+UO,vO=65536>>lf,IO=1<<CO,SO=IO-1,sw=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},TO=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},xO=function(t,A){var e=BO(t),n=Array.isArray(e)?wO(e):new Uint32Array(e),r=Array.isArray(e)?mO(e):new Uint16Array(e),i=24,s=sw(r,i/2,n[4]/2),a=n[5]===2?sw(r,(i+n[4])/2):TO(n,Math.ceil((i+n[4])/4));return new HO(n[0],n[1],n[2],n[3],s,a)},HO=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>>ei],e=(e<<cf)+(A&uf),this.data[e];if(A<=65535)return e=this.index[iw+(A-55296>>ei)],e=(e<<cf)+(A&uf),this.data[e];if(A<this.highStart)return e=bO-vO+(A>>lf),e=this.index[e],e+=A>>ei&SO,e=this.index[e],e=(e<<cf)+(A&uf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),ow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_O=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ya=0;Ya<ow.length;Ya++)_O[ow.charCodeAt(Ya)]=Ya;var LO=1,ff=2,df=3,aw=4,lw=5,OO=7,cw=8,hf=9,pf=10,uw=11,fw=12,dw=13,hw=14,gf=15,kO=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},MO=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},DO=xO(gO),Kt="×",Bf="÷",NO=function(t){return DO.get(t)},RO=function(t,A,e){var n=e-2,r=A[n],i=A[e-1],s=A[e];if(i===ff&&s===df)return Kt;if(i===ff||i===df||i===aw||s===ff||s===df||s===aw)return Bf;if(i===cw&&[cw,hf,uw,fw].indexOf(s)!==-1||(i===uw||i===hf)&&(s===hf||s===pf)||(i===fw||i===pf)&&s===pf||s===dw||s===lw||s===OO||i===LO)return Kt;if(i===dw&&s===hw){for(;r===lw;)r=A[--n];if(r===hw)return Kt}if(i===gf&&s===gf){for(var a=0;r===gf;)a++,r=A[--n];if(a%2===0)return Kt}return Bf},KO=function(t){var A=kO(t),e=A.length,n=0,r=0,i=A.map(NO);return{next:function(){if(n>=e)return{done:!0,value:null};for(var s=Kt;n<e&&(s=RO(A,i,++n))===Kt;);if(s!==Kt||n===e){var a=MO.apply(null,A.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},VO=function(t){for(var A=KO(t),e=[],n;!(n=A.next()).done;)n.value&&e.push(n.value.slice());return e},PO=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},GO=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=ma(n.data).map(function(c){return ce(c)}),i=0,s={},a=r.every(function(c,u){e.setStart(n,i),e.setEnd(n,i+c.length);var d=e.getBoundingClientRect();i+=c.length;var p=d.x>s.x||d.y>s.y;return s=d,u===0?!0:p});return t.body.removeChild(A),a},WO=function(){return typeof new Image().crossOrigin<"u"},$O=function(){return typeof new XMLHttpRequest().responseType=="string"},JO=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},pw=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},XO=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=mf(e,e,0,0,r);return n.fillStyle="red",n.fillRect(0,0,e,e),gw(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",pw(c)?gw(mf(e,e,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),pw(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},mf=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},gw=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))})},Me={get SUPPORT_RANGE_BOUNDS(){var t=PO(document);return Object.defineProperty(Me,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Me.SUPPORT_RANGE_BOUNDS&&GO(document);return Object.defineProperty(Me,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=JO(document);return Object.defineProperty(Me,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?XO(document):Promise.resolve(!1);return Object.defineProperty(Me,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=WO();return Object.defineProperty(Me,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=$O();return Object.defineProperty(Me,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Me,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Me,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},eo=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),YO=function(t,A,e,n){var r=ZO(A,e),i=[],s=0;return r.forEach(function(a){if(e.textDecorationLine.length||a.trim().length>0)if(Me.SUPPORT_RANGE_BOUNDS){var c=Bw(n,s,a.length).getClientRects();if(c.length>1){var u=wf(a),d=0;u.forEach(function(B){i.push(new eo(B,Mn.fromDOMRectList(t,Bw(n,d+s,B.length).getClientRects()))),d+=B.length})}else i.push(new eo(a,Mn.fromDOMRectList(t,c)))}else{var p=n.splitText(a.length);i.push(new eo(a,zO(t,n))),n=p}else Me.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},zO=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 Mn.EMPTY},Bw=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},wf=function(t){if(Me.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 VO(t)},qO=function(t,A){if(Me.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 Ak(t,A)},ZO=function(t,A){return A.letterSpacing!==0?wf(t):qO(t,A)},jO=[32,160,4961,65792,65793,4153,4241],Ak=function(t,A){for(var e=vH(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=ma(s),c="";a.forEach(function(u){jO.indexOf(u)===-1?c+=ce(u):(c.length&&n.push(c),n.push(ce(u)),c="")}),c.length&&n.push(c)}};!(r=e.next()).done;)i();return n},ek=function(){function t(A,e,n){this.text=tk(e.data,n.textTransform),this.textBounds=YO(A,this.text,n,e)}return t}(),tk=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(nk,rk);case 2:return t.toUpperCase();default:return t}},nk=/(^|\s|:|-|\(|\))([a-z])/g,rk=function(t,A,e){return t.length>0?A+e.toUpperCase():t},mw=function(t){sn(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}(Fn),ww=function(t){sn(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}(Fn),Cw=function(t){sn(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}(Fn),yw=function(t){sn(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(Fn),Cf=function(t){sn(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}(Fn),ik=[{type:15,flags:0,unit:"px",number:3}],sk=[{type:16,flags:0,number:50}],ok=function(t){return t.width>t.height?new Mn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Mn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},ak=function(t){var A=t.type===lk?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},za="checkbox",qa="radio",lk="password",Qw=707406591,yf=function(t){sn(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=ak(n),(r.type===za||r.type===qa)&&(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=ok(r.bounds)),r.type){case za:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ik;break;case qa:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=sk;break}return r}return A}(Fn),Ew=function(t){sn(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}(Fn),Fw=function(t){sn(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(Fn),Uw=function(t){sn(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=vw(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Zs(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Nn.TRANSPARENT,s=n.contentWindow.document.body?Zs(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Nn.TRANSPARENT;r.backgroundColor=yr(i)?yr(s)?r.styles.backgroundColor:s:i}}catch{}return r}return A}(Fn),ck=["OL","UL","MENU"],Za=function(t,A,e,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,Iw(r)&&r.data.trim().length>0)e.textNodes.push(new ek(t,r,e.styles));else if(Gi(r))if(Lw(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return Za(t,a,e,n)});else{var s=bw(t,r);s.styles.isVisible()&&(uk(r,s,n)?s.flags|=4:fk(s.styles)&&(s.flags|=2),ck.indexOf(r.tagName)!==-1&&(s.flags|=8),e.elements.push(s),r.slot,r.shadowRoot?Za(t,r.shadowRoot,s,n):!Al(r)&&!Sw(r)&&!el(r)&&Za(t,r,s,n))}},bw=function(t,A){return Ff(A)?new mw(t,A):Tw(A)?new ww(t,A):Sw(A)?new Cw(t,A):dk(A)?new yw(t,A):hk(A)?new Cf(t,A):pk(A)?new yf(t,A):el(A)?new Ew(t,A):Al(A)?new Fw(t,A):Hw(A)?new Uw(t,A):new Fn(t,A)},vw=function(t,A){var e=bw(t,A);return e.flags|=4,Za(t,A,e,e),e},uk=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Ef(t)&&e.styles.isTransparent()},fk=function(t){return t.isPositioned()||t.isFloating()},Iw=function(t){return t.nodeType===Node.TEXT_NODE},Gi=function(t){return t.nodeType===Node.ELEMENT_NODE},Qf=function(t){return Gi(t)&&typeof t.style<"u"&&!ja(t)},ja=function(t){return typeof t.className=="object"},dk=function(t){return t.tagName==="LI"},hk=function(t){return t.tagName==="OL"},pk=function(t){return t.tagName==="INPUT"},gk=function(t){return t.tagName==="HTML"},Sw=function(t){return t.tagName==="svg"},Ef=function(t){return t.tagName==="BODY"},Tw=function(t){return t.tagName==="CANVAS"},xw=function(t){return t.tagName==="VIDEO"},Ff=function(t){return t.tagName==="IMG"},Hw=function(t){return t.tagName==="IFRAME"},_w=function(t){return t.tagName==="STYLE"},Bk=function(t){return t.tagName==="SCRIPT"},Al=function(t){return t.tagName==="TEXTAREA"},el=function(t){return t.tagName==="SELECT"},Lw=function(t){return t.tagName==="SLOT"},Ow=function(t){return t.tagName.indexOf("-")>0},mk=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}(),kw={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"]},Mw={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},wk={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ck={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Wi=function(t,A,e,n,r,i){return t<A||t>e?no(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},Dw=function(t,A,e,n){var r="";do e||t--,r=n(t)+r,t/=A;while(t*A>=A);return r},ue=function(t,A,e,n,r){var i=e-A+1;return(t<0?"-":"")+(Dw(Math.abs(t),i,n,function(s){return ce(Math.floor(s%i)+A)})+r)},ti=function(t,A,e){e===void 0&&(e=". ");var n=A.length;return Dw(Math.abs(t),n,!1,function(r){return A[Math.floor(r%n)]})+e},$i=1<<0,Er=1<<1,Fr=1<<2,to=1<<3,Rn=function(t,A,e,n,r,i){if(t<-9999||t>9999)return no(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&&Ee(i,$i)&&a!==""?a=A[u]+a:u>1||u===1&&c===0||u===1&&c===1&&Ee(i,Er)||u===1&&c===1&&Ee(i,Fr)&&t>100||u===1&&c>1&&Ee(i,to)?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},Nw="十百千萬",Rw="拾佰仟萬",Kw="マイナス",Uf="마이너스",no=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=ue(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return ti(t,"〇一二三四五六七八九",r);case 6:return Wi(t,1,3999,kw,3,n).toLowerCase();case 7:return Wi(t,1,3999,kw,3,n);case 8:return ue(t,945,969,!1,n);case 9:return ue(t,97,122,!1,n);case 10:return ue(t,65,90,!1,n);case 11:return ue(t,1632,1641,!0,n);case 12:case 49:return Wi(t,1,9999,Mw,3,n);case 35:return Wi(t,1,9999,Mw,3,n).toLowerCase();case 13:return ue(t,2534,2543,!0,n);case 14:case 30:return ue(t,6112,6121,!0,n);case 15:return ti(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return ti(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Rn(t,"零一二三四五六七八九",Nw,"負",r,Er|Fr|to);case 47:return Rn(t,"零壹貳參肆伍陸柒捌玖",Rw,"負",r,$i|Er|Fr|to);case 42:return Rn(t,"零一二三四五六七八九",Nw,"负",r,Er|Fr|to);case 41:return Rn(t,"零壹贰叁肆伍陆柒捌玖",Rw,"负",r,$i|Er|Fr|to);case 26:return Rn(t,"〇一二三四五六七八九","十百千万",Kw,r,0);case 25:return Rn(t,"零壱弐参四伍六七八九","拾百千万",Kw,r,$i|Er|Fr);case 31:return Rn(t,"영일이삼사오육칠팔구","십백천만",Uf,i,$i|Er|Fr);case 33:return Rn(t,"零一二三四五六七八九","十百千萬",Uf,i,0);case 32:return Rn(t,"零壹貳參四五六七八九","拾百千",Uf,i,$i|Er|Fr);case 18:return ue(t,2406,2415,!0,n);case 20:return Wi(t,1,19999,Ck,3,n);case 21:return ue(t,2790,2799,!0,n);case 22:return ue(t,2662,2671,!0,n);case 22:return Wi(t,1,10999,wk,3,n);case 23:return ti(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ti(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ue(t,3302,3311,!0,n);case 28:return ti(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return ti(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return ue(t,3792,3801,!0,n);case 37:return ue(t,6160,6169,!0,n);case 38:return ue(t,4160,4169,!0,n);case 39:return ue(t,2918,2927,!0,n);case 40:return ue(t,1776,1785,!0,n);case 43:return ue(t,3046,3055,!0,n);case 44:return ue(t,3174,3183,!0,n);case 45:return ue(t,3664,3673,!0,n);case 46:return ue(t,3872,3881,!0,n);case 3:default:return ue(t,48,57,!0,n)}},Vw="data-html2canvas-ignore",Pw=function(){function t(A,e,n){if(this.context=A,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new mk,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=yk(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=Fk(r).then(function(){return rt(n,void 0,void 0,function(){var d,p;return Xe(this,function(B){switch(B.label){case 0:return this.scrolledElements.forEach(Ik),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))),d=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:B.sent(),B.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ek(c)]:[3,4];case 3:B.sent(),B.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(c,p)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write(bk(document.doctype)+"<html></html>"),vk(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(A){if(af(A,2))debugger;if(Tw(A))return this.createCanvasClone(A);if(xw(A))return this.createVideoClone(A);if(_w(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Ff(e)&&(Ff(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Ow(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return bf(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){(!Gi(e)||!Bk(e)&&!e.hasAttribute(Vw)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Gi(e)||!_w(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(Gi(i)&&Lw(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(Iw(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var n=A.ownerDocument.defaultView;if(n&&Gi(A)&&(Qf(A)||ja(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&&Qf(r)&&(this.clonedReferenceElement=r),Ef(r)&&xk(r);var c=this.counters.parse(new nw(this.context,i)),u=this.resolvePseudoContent(A,r,s,ro.BEFORE);Ow(A)&&(e=!0),xw(A)||this.cloneChildNodes(A,r,e),u&&r.insertBefore(u,r.firstChild);var d=this.resolvePseudoContent(A,r,a,ro.AFTER);return d&&r.appendChild(d),this.counters.pop(c),(i&&(this.options.copyStyles||ja(A))&&!Hw(A)||e)&&bf(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Al(A)||el(A))&&(Al(r)||el(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 nw(this.context,n));var c=new dO(this.context,n),u=a.createElement("html2canvaspseudoelement");bf(n,u),c.content.forEach(function(p){if(p.type===0)u.appendChild(a.createTextNode(p.value));else if(p.type===22){var B=a.createElement("img");B.src=p.value,B.style.opacity="1",u.appendChild(B)}else if(p.type===18){if(p.name==="attr"){var m=p.values.filter(GA);m.length&&u.appendChild(a.createTextNode(A.getAttribute(m[0].value)||""))}else if(p.name==="counter"){var C=p.values.filter(Vi),E=C[0],S=C[1];if(E&&GA(E)){var U=i.counters.getCounterValue(E.value),v=S&&GA(S)?of.parse(i.context,S.value):3;u.appendChild(a.createTextNode(no(U,v,!1)))}}else if(p.name==="counters"){var k=p.values.filter(Vi),E=k[0],F=k[1],S=k[2];if(E&&GA(E)){var T=i.counters.getCounterValues(E.value),_=S&&GA(S)?of.parse(i.context,S.value):3,N=F&&F.type===0?F.value:"",W=T.map(function(gA){return no(gA,_,!1)}).join(N);u.appendChild(a.createTextNode(W))}}}else if(p.type===20)switch(p.value){case"open-quote":u.appendChild(a.createTextNode(tw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(tw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(p.value))}}),u.className=vf+" "+If;var d=r===ro.BEFORE?" "+vf:" "+If;return ja(e)?e.className.baseValue+=d:e.className+=d,u}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),ro;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ro||(ro={}));var yk=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(Vw,"true"),t.body.appendChild(e),e},Qk=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},Ek=function(t){return Promise.all([].slice.call(t.images,0).map(Qk))},Fk=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)}})},Uk=["all","d","content"],bf=function(t,A){for(var e=t.length-1;e>=0;e--){var n=t.item(e);Uk.indexOf(n)===-1&&A.style.setProperty(n,t.getPropertyValue(n))}return A},bk=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},vk=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},Ik=function(t){var A=t[0],e=t[1],n=t[2];A.scrollLeft=e,A.scrollTop=n},Sk=":before",Tk=":after",vf="___html2canvas___pseudoelement_before",If="___html2canvas___pseudoelement_after",Gw=`{
|
|
180
|
+
***************************************************************************** */var Ou=function(t,A){return Ou=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])},Ou(t,A)};function sn(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Ou(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var Mu=function(){return Mu=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},Mu.apply(this,arguments)};function rt(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(d){try{u(n.next(d))}catch(p){s(p)}}function c(d){try{u(n.throw(d))}catch(p){s(p)}}function u(d){d.done?i(d.value):r(d.value).then(a,c)}u((n=n.apply(t,A||[])).next())})}function Xe(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(d){return c([u,d])}}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(d){u=[6,d],r=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ga(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 Dn=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 Dn.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 Dn(0,0,n,r)},ma=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},ce=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},jB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jx=typeof Uint8Array>"u"?[]:new Uint8Array(256),wa=0;wa<jB.length;wa++)Jx[jB.charCodeAt(wa)]=wa;for(var Am="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ks=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ca=0;Ca<Am.length;Ca++)ks[Am.charCodeAt(Ca)]=Ca;for(var Xx=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),d=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;n+=4)i=ks[t.charCodeAt(n)],s=ks[t.charCodeAt(n+1)],a=ks[t.charCodeAt(n+2)],c=ks[t.charCodeAt(n+3)],d[r++]=i<<2|s>>4,d[r++]=(s&15)<<4|a>>2,d[r++]=(a&3)<<6|c&63;return u},Yx=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},zx=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},Zr=5,Du=6+5,ku=2,qx=Du-Zr,em=65536>>Zr,Zx=1<<Zr,Nu=Zx-1,jx=1024>>Zr,AH=em+jx,eH=AH,tH=32,nH=eH+tH,rH=65536>>Du,iH=1<<qx,sH=iH-1,tm=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},oH=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},aH=function(t,A){var e=Xx(t),n=Array.isArray(e)?zx(e):new Uint32Array(e),r=Array.isArray(e)?Yx(e):new Uint16Array(e),i=24,s=tm(r,i/2,n[4]/2),a=n[5]===2?tm(r,(i+n[4])/2):oH(n,Math.ceil((i+n[4])/4));return new lH(n[0],n[1],n[2],n[3],s,a)},lH=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>>Zr],e=(e<<ku)+(A&Nu),this.data[e];if(A<=65535)return e=this.index[em+(A-55296>>Zr)],e=(e<<ku)+(A&Nu),this.data[e];if(A<this.highStart)return e=nH-rH+(A>>Du),e=this.index[e],e+=A>>Zr&sH,e=this.index[e],e=(e<<ku)+(A&Nu),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),nm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cH=typeof Uint8Array>"u"?[]:new Uint8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bDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywH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IggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAH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AMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwAD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ABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAU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cAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAV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AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBV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AAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4A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AEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlA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gAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",rm=50,fH=1,im=2,sm=3,dH=4,hH=5,om=7,am=8,lm=9,gr=10,Ru=11,cm=12,Ku=13,pH=14,Ns=15,Vu=16,Qa=17,Rs=18,gH=19,um=20,Pu=21,Ks=22,Gu=23,ki=24,vt=25,Vs=26,Ps=27,Ni=28,BH=29,jr=30,mH=31,Ea=32,Fa=33,Wu=34,$u=35,Ju=36,Gs=37,Xu=38,Ua=39,ba=40,Yu=41,fm=42,wH=43,CH=[9001,65288],dm="!",xA="×",va="÷",zu=aH(uH),kn=[jr,Ju],qu=[fH,im,sm,hH],hm=[gr,am],pm=[Ps,Vs],yH=qu.concat(hm),gm=[Xu,Ua,ba,Wu,$u],QH=[Ns,Ku],EH=function(t,A){A===void 0&&(A="strict");var e=[],n=[],r=[];return t.forEach(function(i,s){var a=zu.get(i);if(a>rm?(r.push(!0),a-=rm):r.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(s),e.push(Vu);if(a===dH||a===Ru){if(s===0)return n.push(s),e.push(jr);var c=e[s-1];return yH.indexOf(c)===-1?(n.push(n[s-1]),e.push(c)):(n.push(s),e.push(jr))}if(n.push(s),a===mH)return e.push(A==="strict"?Pu:Gs);if(a===fm||a===BH)return e.push(jr);if(a===wH)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Gs):e.push(jr);e.push(a)}),[n,e,r]},Zu=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!==gr)break}if(r===gr)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!==gr)break}if(a!==gr)break}return!1},Bm=function(t,A){for(var e=t;e>=0;){var n=A[e];if(n===gr)e--;else return n}return 0},FH=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,d=A[a];if(c===im&&d===sm)return xA;if(qu.indexOf(c)!==-1)return dm;if(qu.indexOf(d)!==-1||hm.indexOf(d)!==-1)return xA;if(Bm(i,A)===am)return va;if(zu.get(t[i])===Ru||(c===Ea||c===Fa)&&zu.get(t[a])===Ru||c===om||d===om||c===lm||[gr,Ku,Ns].indexOf(c)===-1&&d===lm||[Qa,Rs,gH,ki,Ni].indexOf(d)!==-1||Bm(i,A)===Ks||Zu(Gu,Ks,i,A)||Zu([Qa,Rs],Pu,i,A)||Zu(cm,cm,i,A))return xA;if(c===gr)return va;if(c===Gu||d===Gu)return xA;if(d===Vu||c===Vu)return va;if([Ku,Ns,Pu].indexOf(d)!==-1||c===pH||u===Ju&&QH.indexOf(c)!==-1||c===Ni&&d===Ju||d===um||kn.indexOf(d)!==-1&&c===vt||kn.indexOf(c)!==-1&&d===vt||c===Ps&&[Gs,Ea,Fa].indexOf(d)!==-1||[Gs,Ea,Fa].indexOf(c)!==-1&&d===Vs||kn.indexOf(c)!==-1&&pm.indexOf(d)!==-1||pm.indexOf(c)!==-1&&kn.indexOf(d)!==-1||[Ps,Vs].indexOf(c)!==-1&&(d===vt||[Ks,Ns].indexOf(d)!==-1&&A[a+1]===vt)||[Ks,Ns].indexOf(c)!==-1&&d===vt||c===vt&&[vt,Ni,ki].indexOf(d)!==-1)return xA;if([vt,Ni,ki,Qa,Rs].indexOf(d)!==-1)for(var p=i;p>=0;){var B=A[p];if(B===vt)return xA;if([Ni,ki].indexOf(B)!==-1)p--;else break}if([Ps,Vs].indexOf(d)!==-1)for(var p=[Qa,Rs].indexOf(c)!==-1?s:i;p>=0;){var B=A[p];if(B===vt)return xA;if([Ni,ki].indexOf(B)!==-1)p--;else break}if(Xu===c&&[Xu,Ua,Wu,$u].indexOf(d)!==-1||[Ua,Wu].indexOf(c)!==-1&&[Ua,ba].indexOf(d)!==-1||[ba,$u].indexOf(c)!==-1&&d===ba||gm.indexOf(c)!==-1&&[um,Vs].indexOf(d)!==-1||gm.indexOf(d)!==-1&&c===Ps||kn.indexOf(c)!==-1&&kn.indexOf(d)!==-1||c===ki&&kn.indexOf(d)!==-1||kn.concat(vt).indexOf(c)!==-1&&d===Ks&&CH.indexOf(t[a])===-1||kn.concat(vt).indexOf(d)!==-1&&c===Rs)return xA;if(c===Yu&&d===Yu){for(var m=e[i],C=1;m>0&&(m--,A[m]===Yu);)C++;if(C%2!==0)return xA}return c===Ea&&d===Fa?xA:va},UH=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=EH(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[vt,jr,fm].indexOf(a)!==-1?Gs: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]},bH=function(){function t(A,e,n,r){this.codePoints=A,this.required=e===dm,this.start=n,this.end=r}return t.prototype.slice=function(){return ce.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),vH=function(t,A){var e=ma(t),n=UH(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 d=xA;u<a&&(d=FH(e,i,r,++u,s))===xA;);if(d!==xA||u===a){var p=new bH(e,d,c,u);return c=u,{value:p,done:!1}}return{done:!0,value:null}}}},IH=1<<0,SH=1<<1,Ws=1<<2,mm=1<<3,Ia=10,wm=47,$s=92,TH=9,xH=32,Sa=34,Js=61,HH=35,_H=36,LH=37,Ta=39,xa=40,Xs=41,OH=95,gt=45,MH=33,DH=60,kH=62,NH=64,RH=91,KH=93,VH=61,PH=123,Ha=63,GH=125,Cm=124,WH=126,$H=128,ym=65533,ju=42,Ai=43,JH=44,XH=58,YH=59,Ys=46,zH=0,qH=8,ZH=11,jH=14,A_=31,e_=127,Qn=-1,Qm=48,Em=97,Fm=101,t_=102,n_=117,r_=122,Um=65,bm=69,vm=70,i_=85,s_=90,Ye=function(t){return t>=Qm&&t<=57},o_=function(t){return t>=55296&&t<=57343},Ri=function(t){return Ye(t)||t>=Um&&t<=vm||t>=Em&&t<=t_},a_=function(t){return t>=Em&&t<=r_},l_=function(t){return t>=Um&&t<=s_},c_=function(t){return a_(t)||l_(t)},u_=function(t){return t>=$H},_a=function(t){return t===Ia||t===TH||t===xH},La=function(t){return c_(t)||u_(t)||t===OH},Im=function(t){return La(t)||Ye(t)||t===gt},f_=function(t){return t>=zH&&t<=qH||t===ZH||t>=jH&&t<=A_||t===e_},Br=function(t,A){return t!==$s?!1:A!==Ia},Oa=function(t,A,e){return t===gt?La(A)||Br(A,e):La(t)?!0:!!(t===$s&&Br(t,A))},Af=function(t,A,e){return t===Ai||t===gt?Ye(A)?!0:A===Ys&&Ye(e):Ye(t===Ys?A:t)},d_=function(t){var A=0,e=1;(t[A]===Ai||t[A]===gt)&&(t[A]===gt&&(e=-1),A++);for(var n=[];Ye(t[A]);)n.push(t[A++]);var r=n.length?parseInt(ce.apply(void 0,n),10):0;t[A]===Ys&&A++;for(var i=[];Ye(t[A]);)i.push(t[A++]);var s=i.length,a=s?parseInt(ce.apply(void 0,i),10):0;(t[A]===bm||t[A]===Fm)&&A++;var c=1;(t[A]===Ai||t[A]===gt)&&(t[A]===gt&&(c=-1),A++);for(var u=[];Ye(t[A]);)u.push(t[A++]);var d=u.length?parseInt(ce.apply(void 0,u),10):0;return e*(r+a*Math.pow(10,-s))*Math.pow(10,c*d)},h_={type:2},p_={type:3},g_={type:4},B_={type:13},m_={type:8},w_={type:21},C_={type:9},y_={type:10},Q_={type:11},E_={type:12},F_={type:14},Ma={type:23},U_={type:1},b_={type:25},v_={type:24},I_={type:26},S_={type:27},T_={type:28},x_={type:29},H_={type:31},ef={type:32},Sm=function(){function t(){this._value=[]}return t.prototype.write=function(A){this._value=this._value.concat(ma(A))},t.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==ef;)A.push(e),e=this.consumeToken();return A},t.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Sa:return this.consumeStringToken(Sa);case HH:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(Im(e)||Br(n,r)){var i=Oa(e,n,r)?SH:IH,s=this.consumeName();return{type:5,value:s,flags:i}}break;case _H:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),B_;break;case Ta:return this.consumeStringToken(Ta);case xa:return h_;case Xs:return p_;case ju:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),F_;break;case Ai:if(Af(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case JH:return g_;case gt:var a=A,c=this.peekCodePoint(0),u=this.peekCodePoint(1);if(Af(a,c,u))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Oa(a,c,u))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===gt&&u===kH)return this.consumeCodePoint(),this.consumeCodePoint(),v_;break;case Ys:if(Af(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wm:if(this.peekCodePoint(0)===ju)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===ju&&(d=this.consumeCodePoint(),d===wm))return this.consumeToken();if(d===Qn)return this.consumeToken()}break;case XH:return I_;case YH:return S_;case DH:if(this.peekCodePoint(0)===MH&&this.peekCodePoint(1)===gt&&this.peekCodePoint(2)===gt)return this.consumeCodePoint(),this.consumeCodePoint(),b_;break;case NH:var p=this.peekCodePoint(0),B=this.peekCodePoint(1),m=this.peekCodePoint(2);if(Oa(p,B,m)){var s=this.consumeName();return{type:7,value:s}}break;case RH:return T_;case $s:if(Br(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case KH:return x_;case VH:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),m_;break;case PH:return Q_;case GH:return E_;case n_:case i_:var C=this.peekCodePoint(0),E=this.peekCodePoint(1);return C===Ai&&(Ri(E)||E===Ha)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Cm:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),C_;if(this.peekCodePoint(0)===Cm)return this.consumeCodePoint(),w_;break;case WH:if(this.peekCodePoint(0)===Js)return this.consumeCodePoint(),y_;break;case Qn:return ef}return _a(A)?(this.consumeWhiteSpace(),H_):Ye(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):La(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:ce(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();Ri(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var n=!1;e===Ha&&A.length<6;)A.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(ce.apply(void 0,A.map(function(c){return c===Ha?Qm:c})),16),i=parseInt(ce.apply(void 0,A.map(function(c){return c===Ha?vm:c})),16);return{type:30,start:r,end:i}}var s=parseInt(ce.apply(void 0,A),16);if(this.peekCodePoint(0)===gt&&Ri(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];Ri(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();var i=parseInt(ce.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)===xa?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===xa?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},t.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Ta||e===Sa){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qn||this.peekCodePoint(0)===Xs)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Ma)}for(;;){var r=this.consumeCodePoint();if(r===Qn||r===Xs)return{type:22,value:ce.apply(void 0,A)};if(_a(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Qn||this.peekCodePoint(0)===Xs?(this.consumeCodePoint(),{type:22,value:ce.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Ma);if(r===Sa||r===Ta||r===xa||f_(r))return this.consumeBadUrlRemnants(),Ma;if(r===$s)if(Br(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ma;else A.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;_a(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Xs||A===Qn)return;Br(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+=ce.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===Qn||r===void 0||r===A)return e+=this.consumeStringSlice(n),{type:0,value:e};if(r===Ia)return this._value.splice(0,n),U_;if(r===$s){var i=this._value[n+1];i!==Qn&&i!==void 0&&(i===Ia?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Br(r,i)&&(e+=this.consumeStringSlice(n),e+=ce(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var A=[],e=Ws,n=this.peekCodePoint(0);for((n===Ai||n===gt)&&A.push(this.consumeCodePoint());Ye(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Ys&&Ye(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=mm;Ye(this.peekCodePoint(0));)A.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===bm||n===Fm)&&((r===Ai||r===gt)&&Ye(i)||Ye(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=mm;Ye(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[d_(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(Oa(r,i,s)){var a=this.consumeName();return{type:15,number:e,flags:n,unit:a}}return r===LH?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ri(A)){for(var e=ce(A);Ri(this.peekCodePoint(0))&&e.length<6;)e+=ce(this.consumeCodePoint());_a(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||o_(n)||n>1114111?ym:n}return A===Qn?ym:A},t.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Im(e))A+=ce(e);else if(Br(e,this.peekCodePoint(0)))A+=ce(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},t}(),Tm=function(){function t(A){this._tokens=A}return t.create=function(A){var e=new Sm;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||L_(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"?ef:A},t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},t}(),zs=function(t){return t.type===15},Ki=function(t){return t.type===17},GA=function(t){return t.type===20},__=function(t){return t.type===0},tf=function(t,A){return GA(t)&&t.value===A},xm=function(t){return t.type!==31},Vi=function(t){return t.type!==31&&t.type!==4},En=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},L_=function(t,A){return A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3},mr=function(t){return t.type===17||t.type===15},ge=function(t){return t.type===16||mr(t)},Hm=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Me={type:17,number:0,flags:Ws},nf={type:16,number:50,flags:Ws},wr={type:16,number:100,flags:Ws},qs=function(t,A,e){var n=t[0],r=t[1];return[YA(n,A),YA(typeof r<"u"?r:n,e)]},YA=function(t,A){if(t.type===16)return t.number/100*A;if(zs(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},_m="deg",Lm="grad",Om="rad",Mm="turn",Da={name:"angle",parse:function(t,A){if(A.type===15)switch(A.unit){case _m:return Math.PI*A.number/180;case Lm:return Math.PI/200*A.number;case Om:return A.number;case Mm:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Dm=function(t){return t.type===15&&(t.unit===_m||t.unit===Lm||t.unit===Om||t.unit===Mm)},km=function(t){var A=t.filter(GA).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Me,Me];case"to top":case"bottom":return Rt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Me,wr];case"to right":case"left":return Rt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[wr,wr];case"to bottom":case"top":return Rt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[wr,Me];case"to left":case"right":return Rt(270)}return 0},Rt=function(t){return Math.PI*t/180},Cr={name:"color",parse:function(t,A){if(A.type===18){var e=O_[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 Qr(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 Qr(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 Qr(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 Qr(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var a=Nn[A.value.toUpperCase()];if(typeof a<"u")return a}return Nn.TRANSPARENT}},yr=function(t){return(255&t)===0},Se=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+")"},Qr=function(t,A,e,n){return(t<<24|A<<16|e<<8|Math.round(n*255)<<0)>>>0},Nm=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},Rm=function(t,A){var e=A.filter(Vi);if(e.length===3){var n=e.map(Nm),r=n[0],i=n[1],s=n[2];return Qr(r,i,s,1)}if(e.length===4){var a=e.map(Nm),r=a[0],i=a[1],s=a[2],c=a[3];return Qr(r,i,s,c)}return 0};function rf(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 Km=function(t,A){var e=A.filter(Vi),n=e[0],r=e[1],i=e[2],s=e[3],a=(n.type===17?Rt(n.number):Da.parse(t,n))/(Math.PI*2),c=ge(r)?r.number/100:0,u=ge(i)?i.number/100:0,d=typeof s<"u"&&ge(s)?YA(s,1):1;if(c===0)return Qr(u*255,u*255,u*255,1);var p=u<=.5?u*(c+1):u+c-u*c,B=u*2-p,m=rf(B,p,a+1/3),C=rf(B,p,a),E=rf(B,p,a-1/3);return Qr(m*255,C*255,E*255,d)},O_={hsl:Km,hsla:Km,rgb:Rm,rgba:Rm},Zs=function(t,A){return Cr.parse(t,Tm.create(A).parseComponentValue())},Nn={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},M_={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(GA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},D_={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ka=function(t,A){var e=Cr.parse(t,A[0]),n=A[1];return n&&ge(n)?{color:e,stop:n}:{color:e,stop:null}},Vm=function(t,A){var e=t[0],n=t[t.length-1];e.stop===null&&(e.stop=Me),n.stop===null&&(n.stop=wr);for(var r=[],i=0,s=0;s<t.length;s++){var a=t[s].stop;if(a!==null){var c=YA(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 d=r[s];if(d===null)u===null&&(u=s);else if(u!==null){for(var p=s-u,B=r[u-1],m=(d-B)/(p+1),C=1;C<=p;C++)r[u+C-1]=m*C;u=null}}return t.map(function(E,S){var U=E.color;return{color:U,stop:Math.max(Math.min(1,r[S]/A),0)}})},k_=function(t,A,e){var n=A/2,r=e/2,i=YA(t[0],A)-n,s=r-YA(t[1],e);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},N_=function(t,A,e){var n=typeof t=="number"?t:k_(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]},on=function(t,A){return Math.sqrt(t*t+A*A)},Pm=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],d=on(e-c,n-u);return(r?d<s.optimumDistance:d>s.optimumDistance)?{optimumCorner:a,optimumDistance:d}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},R_=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(on(A,e),on(A,e-r),on(A-n,e),on(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=Pm(n,r,A,e,!0),u=c[0],d=c[1];i=on(u-A,(d-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(on(A,e),on(A,e-r),on(A-n,e),on(A-n,e-r));else if(t.shape===1){var a=Math.max(Math.abs(e),Math.abs(e-r))/Math.max(Math.abs(A),Math.abs(A-n)),p=Pm(n,r,A,e,!1),u=p[0],d=p[1];i=on(u-A,(d-e)/a),s=a*i}break}return Array.isArray(t.size)&&(i=YA(t.size[0],n),s=t.size.length===2?YA(t.size[1],r):i),[i,s]},K_=function(t,A){var e=Rt(180),n=[];return En(A).forEach(function(r,i){if(i===0){var s=r[0];if(s.type===20&&s.value==="to"){e=km(r);return}else if(Dm(s)){e=Da.parse(t,s);return}}var a=ka(t,r);n.push(a)}),{angle:e,stops:n,type:1}},Na=function(t,A){var e=Rt(180),n=[];return En(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=km(r);return}else if(Dm(s)){e=(Da.parse(t,s)+Rt(270))%Rt(360);return}}var a=ka(t,r);n.push(a)}),{angle:e,stops:n,type:1}},V_=function(t,A){var e=Rt(180),n=[],r=1,i=0,s=3,a=[];return En(A).forEach(function(c,u){var d=c[0];if(u===0){if(GA(d)&&d.value==="linear"){r=1;return}else if(GA(d)&&d.value==="radial"){r=2;return}}if(d.type===18){if(d.name==="from"){var p=Cr.parse(t,d.values[0]);n.push({stop:Me,color:p})}else if(d.name==="to"){var p=Cr.parse(t,d.values[0]);n.push({stop:wr,color:p})}else if(d.name==="color-stop"){var B=d.values.filter(Vi);if(B.length===2){var p=Cr.parse(t,B[1]),m=B[0];Ki(m)&&n.push({stop:{type:16,number:m.number*100,flags:m.flags},color:p})}}}}),r===1?{angle:(e+Rt(180))%Rt(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:a,type:r}},Gm="closest-side",Wm="farthest-side",$m="closest-corner",Jm="farthest-corner",Xm="circle",Ym="ellipse",zm="cover",qm="contain",P_=function(t,A){var e=0,n=3,r=[],i=[];return En(A).forEach(function(s,a){var c=!0;if(a===0){var u=!1;c=s.reduce(function(p,B){if(u)if(GA(B))switch(B.value){case"center":return i.push(nf),p;case"top":case"left":return i.push(Me),p;case"right":case"bottom":return i.push(wr),p}else(ge(B)||mr(B))&&i.push(B);else if(GA(B))switch(B.value){case Xm:return e=0,!1;case Ym:return e=1,!1;case"at":return u=!0,!1;case Gm:return n=0,!1;case zm:case Wm:return n=1,!1;case qm:case $m:return n=2,!1;case Jm:return n=3,!1}else if(mr(B)||ge(B))return Array.isArray(n)||(n=[]),n.push(B),!1;return p},c)}if(c){var d=ka(t,s);r.push(d)}}),{size:n,shape:e,stops:r,position:i,type:2}},Ra=function(t,A){var e=0,n=3,r=[],i=[];return En(A).forEach(function(s,a){var c=!0;if(a===0?c=s.reduce(function(d,p){if(GA(p))switch(p.value){case"center":return i.push(nf),!1;case"top":case"left":return i.push(Me),!1;case"right":case"bottom":return i.push(wr),!1}else if(ge(p)||mr(p))return i.push(p),!1;return d},c):a===1&&(c=s.reduce(function(d,p){if(GA(p))switch(p.value){case Xm:return e=0,!1;case Ym:return e=1,!1;case qm:case Gm:return n=0,!1;case Wm:return n=1,!1;case $m:return n=2,!1;case zm:case Jm:return n=3,!1}else if(mr(p)||ge(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return d},c)),c){var u=ka(t,s);r.push(u)}}),{size:n,shape:e,stops:r,position:i,type:2}},G_=function(t){return t.type===1},W_=function(t){return t.type===2},sf={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=Zm[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 $_(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!Zm[t.name])}var Zm={"linear-gradient":K_,"-moz-linear-gradient":Na,"-ms-linear-gradient":Na,"-o-linear-gradient":Na,"-webkit-linear-gradient":Na,"radial-gradient":P_,"-moz-radial-gradient":Ra,"-ms-radial-gradient":Ra,"-o-radial-gradient":Ra,"-webkit-radial-gradient":Ra,"-webkit-gradient":V_},J_={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 Vi(n)&&$_(n)}).map(function(n){return sf.parse(t,n)})}},X_={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,A){return A.map(function(e){if(GA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Y_={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,A){return En(A).map(function(e){return e.filter(ge)}).map(Hm)}},z_={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,A){return En(A).map(function(e){return e.filter(GA).map(function(n){return n.value}).join(" ")}).map(q_)}},q_=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}},Pi;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(Pi||(Pi={}));var Z_={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,A){return En(A).map(function(e){return e.filter(j_)})}},j_=function(t){return GA(t)||ge(t)},Ka=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},AL=Ka("top"),eL=Ka("right"),tL=Ka("bottom"),nL=Ka("left"),Va=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Hm(e.filter(ge))}}},rL=Va("top-left"),iL=Va("top-right"),sL=Va("bottom-right"),oL=Va("bottom-left"),Pa=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}}},aL=Pa("top"),lL=Pa("right"),cL=Pa("bottom"),uL=Pa("left"),Ga=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return zs(e)?e.number:0}}},fL=Ga("top"),dL=Ga("right"),hL=Ga("bottom"),pL=Ga("left"),gL={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BL={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},mL={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,A){return A.filter(GA).reduce(function(e,n){return e|wL(n.value)},0)}},wL=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},CL={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}},yL={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}},Wa;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Wa||(Wa={}));var QL={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"strict":return Wa.STRICT;case"normal":default:return Wa.NORMAL}}},EL={name:"line-height",initialValue:"normal",prefix:!1,type:4},jm=function(t,A){return GA(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:ge(t)?YA(t,A):A},FL={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,A){return A.type===20&&A.value==="none"?null:sf.parse(t,A)}},UL={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}}},of={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}}},$a=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},bL=$a("top"),vL=$a("right"),IL=$a("bottom"),SL=$a("left"),TL={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,A){return A.filter(GA).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}})}},xL={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"}}},Ja=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},HL=Ja("top"),_L=Ja("right"),LL=Ja("bottom"),OL=Ja("left"),ML={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}}},DL={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}},kL={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&tf(A[0],"none")?[]:En(A).map(function(e){for(var n={color:Nn.TRANSPARENT,offsetX:Me,offsetY:Me,blur:Me},r=0,i=0;i<e.length;i++){var s=e[i];mr(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:n.blur=s,r++):n.color=Cr.parse(t,s)}return n})}},NL={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}},RL={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=PL[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},KL=function(t){var A=t.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},VL=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},PL={matrix:KL,matrix3d:VL},Aw={type:16,number:50,flags:Ws},GL=[Aw,Aw],WL={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,A){var e=A.filter(ge);return e.length!==2?GL:[e[0],e[1]]}},$L={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}}},js;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(js||(js={}));for(var JL={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,A){switch(A){case"break-all":return js.BREAK_ALL;case"keep-all":return js.KEEP_ALL;case"normal":default:return js.NORMAL}}},XL={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,A){if(A.type===20)return{auto:!0,order:0};if(Ki(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ew={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")}},YL={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,A){return Ki(A)?A.number:1}},zL={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qL={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,A){return A.filter(GA).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})}},ZL={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+"'"})}},jL={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},AO={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,A){if(Ki(A))return A.number;if(GA(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},eO={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.filter(GA).map(function(e){return e.value})}},tO={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"}}},Ee=function(t,A){return(t&A)!==0},nO={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}},rO={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(xm),i=0;i<r.length;i++){var s=r[i],a=r[i+1];if(s.type===20){var c=a&&Ki(a)?a.number:1;n.push({counter:s.value,increment:c})}}return n}},iO={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,A){if(A.length===0)return[];for(var e=[],n=A.filter(xm),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(GA(i)&&i.value!=="none"){var a=s&&Ki(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},sO={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,A){return A.filter(zs).map(function(e){return ew.parse(t,e)})}},oO={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(__);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}},tw=function(t,A,e){if(!t)return"";var n=t[Math.min(A,t.length-1)];return n?e?n.open:n.close:""},aO={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,A){return A.length===1&&tf(A[0],"none")?[]:En(A).map(function(e){for(var n={color:255,offsetX:Me,offsetY:Me,blur:Me,spread:Me,inset:!1},r=0,i=0;i<e.length;i++){var s=e[i];tf(s,"inset")?n.inset=!0:mr(s)?(r===0?n.offsetX=s:r===1?n.offsetY=s:r===2?n.blur=s:n.spread=s,r++):n.color=Cr.parse(t,s)}return n})}},lO={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,A){var e=[0,1,2],n=[];return A.filter(GA).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}},cO={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},uO={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return zs(A)?A.number:0}},fO=function(){function t(A,e){var n,r;this.animationDuration=AA(A,sO,e.animationDuration),this.backgroundClip=AA(A,M_,e.backgroundClip),this.backgroundColor=AA(A,D_,e.backgroundColor),this.backgroundImage=AA(A,J_,e.backgroundImage),this.backgroundOrigin=AA(A,X_,e.backgroundOrigin),this.backgroundPosition=AA(A,Y_,e.backgroundPosition),this.backgroundRepeat=AA(A,z_,e.backgroundRepeat),this.backgroundSize=AA(A,Z_,e.backgroundSize),this.borderTopColor=AA(A,AL,e.borderTopColor),this.borderRightColor=AA(A,eL,e.borderRightColor),this.borderBottomColor=AA(A,tL,e.borderBottomColor),this.borderLeftColor=AA(A,nL,e.borderLeftColor),this.borderTopLeftRadius=AA(A,rL,e.borderTopLeftRadius),this.borderTopRightRadius=AA(A,iL,e.borderTopRightRadius),this.borderBottomRightRadius=AA(A,sL,e.borderBottomRightRadius),this.borderBottomLeftRadius=AA(A,oL,e.borderBottomLeftRadius),this.borderTopStyle=AA(A,aL,e.borderTopStyle),this.borderRightStyle=AA(A,lL,e.borderRightStyle),this.borderBottomStyle=AA(A,cL,e.borderBottomStyle),this.borderLeftStyle=AA(A,uL,e.borderLeftStyle),this.borderTopWidth=AA(A,fL,e.borderTopWidth),this.borderRightWidth=AA(A,dL,e.borderRightWidth),this.borderBottomWidth=AA(A,hL,e.borderBottomWidth),this.borderLeftWidth=AA(A,pL,e.borderLeftWidth),this.boxShadow=AA(A,aO,e.boxShadow),this.color=AA(A,gL,e.color),this.direction=AA(A,BL,e.direction),this.display=AA(A,mL,e.display),this.float=AA(A,CL,e.cssFloat),this.fontFamily=AA(A,ZL,e.fontFamily),this.fontSize=AA(A,jL,e.fontSize),this.fontStyle=AA(A,tO,e.fontStyle),this.fontVariant=AA(A,eO,e.fontVariant),this.fontWeight=AA(A,AO,e.fontWeight),this.letterSpacing=AA(A,yL,e.letterSpacing),this.lineBreak=AA(A,QL,e.lineBreak),this.lineHeight=AA(A,EL,e.lineHeight),this.listStyleImage=AA(A,FL,e.listStyleImage),this.listStylePosition=AA(A,UL,e.listStylePosition),this.listStyleType=AA(A,of,e.listStyleType),this.marginTop=AA(A,bL,e.marginTop),this.marginRight=AA(A,vL,e.marginRight),this.marginBottom=AA(A,IL,e.marginBottom),this.marginLeft=AA(A,SL,e.marginLeft),this.opacity=AA(A,YL,e.opacity);var i=AA(A,TL,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=AA(A,xL,e.overflowWrap),this.paddingTop=AA(A,HL,e.paddingTop),this.paddingRight=AA(A,_L,e.paddingRight),this.paddingBottom=AA(A,LL,e.paddingBottom),this.paddingLeft=AA(A,OL,e.paddingLeft),this.paintOrder=AA(A,lO,e.paintOrder),this.position=AA(A,DL,e.position),this.textAlign=AA(A,ML,e.textAlign),this.textDecorationColor=AA(A,zL,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=AA(A,qL,(r=e.textDecorationLine)!==null&&r!==void 0?r:e.textDecoration),this.textShadow=AA(A,kL,e.textShadow),this.textTransform=AA(A,NL,e.textTransform),this.transform=AA(A,RL,e.transform),this.transformOrigin=AA(A,WL,e.transformOrigin),this.visibility=AA(A,$L,e.visibility),this.webkitTextStrokeColor=AA(A,cO,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=AA(A,uO,e.webkitTextStrokeWidth),this.wordBreak=AA(A,JL,e.wordBreak),this.zIndex=AA(A,XL,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return yr(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 Ee(this.display,4)||Ee(this.display,33554432)||Ee(this.display,268435456)||Ee(this.display,536870912)||Ee(this.display,67108864)||Ee(this.display,134217728)},t}(),dO=function(){function t(A,e){this.content=AA(A,nO,e.content),this.quotes=AA(A,oO,e.quotes)}return t}(),nw=function(){function t(A,e){this.counterIncrement=AA(A,rO,e.counterIncrement),this.counterReset=AA(A,iO,e.counterReset)}return t}(),AA=function(t,A,e){var n=new Sm,r=e!==null&&typeof e<"u"?e.toString():A.initialValue;n.write(r);var i=new Tm(n.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(t,GA(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 Da.parse(t,i.parseComponentValue());case"color":return Cr.parse(t,i.parseComponentValue());case"image":return sf.parse(t,i.parseComponentValue());case"length":var a=i.parseComponentValue();return mr(a)?a:Me;case"length-percentage":var c=i.parseComponentValue();return ge(c)?c:Me;case"time":return ew.parse(t,i.parseComponentValue())}break}},hO="data-html2canvas-debug",pO=function(t){var A=t.getAttribute(hO);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},af=function(t,A){var e=pO(t);return e===1||A===e},Fn=function(){function t(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,af(e,3))debugger;this.styles=new fO(A,window.getComputedStyle(e,null)),Qf(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),af(e,4)&&(this.flags|=16)}return t}(),gO="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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NwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACA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BlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFig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gAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",rw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ao=typeof Uint8Array>"u"?[]:new Uint8Array(256),Xa=0;Xa<rw.length;Xa++)Ao[rw.charCodeAt(Xa)]=Xa;for(var BO=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),d=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<e;n+=4)i=Ao[t.charCodeAt(n)],s=Ao[t.charCodeAt(n+1)],a=Ao[t.charCodeAt(n+2)],c=Ao[t.charCodeAt(n+3)],d[r++]=i<<2|s>>4,d[r++]=(s&15)<<4|a>>2,d[r++]=(a&3)<<6|c&63;return u},mO=function(t){for(var A=t.length,e=[],n=0;n<A;n+=2)e.push(t[n+1]<<8|t[n]);return e},wO=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},ei=5,lf=6+5,cf=2,CO=lf-ei,iw=65536>>ei,yO=1<<ei,uf=yO-1,QO=1024>>ei,EO=iw+QO,FO=EO,UO=32,bO=FO+UO,vO=65536>>lf,IO=1<<CO,SO=IO-1,sw=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},TO=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},xO=function(t,A){var e=BO(t),n=Array.isArray(e)?wO(e):new Uint32Array(e),r=Array.isArray(e)?mO(e):new Uint16Array(e),i=24,s=sw(r,i/2,n[4]/2),a=n[5]===2?sw(r,(i+n[4])/2):TO(n,Math.ceil((i+n[4])/4));return new HO(n[0],n[1],n[2],n[3],s,a)},HO=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>>ei],e=(e<<cf)+(A&uf),this.data[e];if(A<=65535)return e=this.index[iw+(A-55296>>ei)],e=(e<<cf)+(A&uf),this.data[e];if(A<this.highStart)return e=bO-vO+(A>>lf),e=this.index[e],e+=A>>ei&SO,e=this.index[e],e=(e<<cf)+(A&uf),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),ow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_O=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ya=0;Ya<ow.length;Ya++)_O[ow.charCodeAt(Ya)]=Ya;var LO=1,ff=2,df=3,aw=4,lw=5,OO=7,cw=8,hf=9,pf=10,uw=11,fw=12,dw=13,hw=14,gf=15,MO=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},DO=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},kO=xO(gO),Kt="×",Bf="÷",NO=function(t){return kO.get(t)},RO=function(t,A,e){var n=e-2,r=A[n],i=A[e-1],s=A[e];if(i===ff&&s===df)return Kt;if(i===ff||i===df||i===aw||s===ff||s===df||s===aw)return Bf;if(i===cw&&[cw,hf,uw,fw].indexOf(s)!==-1||(i===uw||i===hf)&&(s===hf||s===pf)||(i===fw||i===pf)&&s===pf||s===dw||s===lw||s===OO||i===LO)return Kt;if(i===dw&&s===hw){for(;r===lw;)r=A[--n];if(r===hw)return Kt}if(i===gf&&s===gf){for(var a=0;r===gf;)a++,r=A[--n];if(a%2===0)return Kt}return Bf},KO=function(t){var A=MO(t),e=A.length,n=0,r=0,i=A.map(NO);return{next:function(){if(n>=e)return{done:!0,value:null};for(var s=Kt;n<e&&(s=RO(A,i,++n))===Kt;);if(s!==Kt||n===e){var a=DO.apply(null,A.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},VO=function(t){for(var A=KO(t),e=[],n;!(n=A.next()).done;)n.value&&e.push(n.value.slice());return e},PO=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},GO=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=ma(n.data).map(function(c){return ce(c)}),i=0,s={},a=r.every(function(c,u){e.setStart(n,i),e.setEnd(n,i+c.length);var d=e.getBoundingClientRect();i+=c.length;var p=d.x>s.x||d.y>s.y;return s=d,u===0?!0:p});return t.body.removeChild(A),a},WO=function(){return typeof new Image().crossOrigin<"u"},$O=function(){return typeof new XMLHttpRequest().responseType=="string"},JO=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},pw=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},XO=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=mf(e,e,0,0,r);return n.fillStyle="red",n.fillRect(0,0,e,e),gw(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",pw(c)?gw(mf(e,e,0,0,u)):Promise.reject(!1)}).then(function(a){return n.drawImage(a,0,0),pw(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},mf=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},gw=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=PO(document);return Object.defineProperty(De,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=De.SUPPORT_RANGE_BOUNDS&&GO(document);return Object.defineProperty(De,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=JO(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"?XO(document):Promise.resolve(!1);return Object.defineProperty(De,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=WO();return Object.defineProperty(De,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=$O();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}},eo=function(){function t(A,e){this.text=A,this.bounds=e}return t}(),YO=function(t,A,e,n){var r=ZO(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=Bw(n,s,a.length).getClientRects();if(c.length>1){var u=wf(a),d=0;u.forEach(function(B){i.push(new eo(B,Dn.fromDOMRectList(t,Bw(n,d+s,B.length).getClientRects()))),d+=B.length})}else i.push(new eo(a,Dn.fromDOMRectList(t,c)))}else{var p=n.splitText(a.length);i.push(new eo(a,zO(t,n))),n=p}else De.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));s+=a.length}),i},zO=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 Dn.EMPTY},Bw=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},wf=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 VO(t)},qO=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 AM(t,A)},ZO=function(t,A){return A.letterSpacing!==0?wf(t):qO(t,A)},jO=[32,160,4961,65792,65793,4153,4241],AM=function(t,A){for(var e=vH(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=ma(s),c="";a.forEach(function(u){jO.indexOf(u)===-1?c+=ce(u):(c.length&&n.push(c),n.push(ce(u)),c="")}),c.length&&n.push(c)}};!(r=e.next()).done;)i();return n},eM=function(){function t(A,e,n){this.text=tM(e.data,n.textTransform),this.textBounds=YO(A,this.text,n,e)}return t}(),tM=function(t,A){switch(A){case 1:return t.toLowerCase();case 3:return t.replace(nM,rM);case 2:return t.toUpperCase();default:return t}},nM=/(^|\s|:|-|\(|\))([a-z])/g,rM=function(t,A,e){return t.length>0?A+e.toUpperCase():t},mw=function(t){sn(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}(Fn),ww=function(t){sn(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}(Fn),Cw=function(t){sn(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}(Fn),yw=function(t){sn(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(Fn),Cf=function(t){sn(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}(Fn),iM=[{type:15,flags:0,unit:"px",number:3}],sM=[{type:16,flags:0,number:50}],oM=function(t){return t.width>t.height?new Dn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Dn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},aM=function(t){var A=t.type===lM?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},za="checkbox",qa="radio",lM="password",Qw=707406591,yf=function(t){sn(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=aM(n),(r.type===za||r.type===qa)&&(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=oM(r.bounds)),r.type){case za:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=iM;break;case qa:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=sM;break}return r}return A}(Fn),Ew=function(t){sn(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}(Fn),Fw=function(t){sn(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return A}(Fn),Uw=function(t){sn(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=vw(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Zs(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Nn.TRANSPARENT,s=n.contentWindow.document.body?Zs(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Nn.TRANSPARENT;r.backgroundColor=yr(i)?yr(s)?r.styles.backgroundColor:s:i}}catch{}return r}return A}(Fn),cM=["OL","UL","MENU"],Za=function(t,A,e,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,Iw(r)&&r.data.trim().length>0)e.textNodes.push(new eM(t,r,e.styles));else if(Gi(r))if(Lw(r)&&r.assignedNodes)r.assignedNodes().forEach(function(a){return Za(t,a,e,n)});else{var s=bw(t,r);s.styles.isVisible()&&(uM(r,s,n)?s.flags|=4:fM(s.styles)&&(s.flags|=2),cM.indexOf(r.tagName)!==-1&&(s.flags|=8),e.elements.push(s),r.slot,r.shadowRoot?Za(t,r.shadowRoot,s,n):!Al(r)&&!Sw(r)&&!el(r)&&Za(t,r,s,n))}},bw=function(t,A){return Ff(A)?new mw(t,A):Tw(A)?new ww(t,A):Sw(A)?new Cw(t,A):dM(A)?new yw(t,A):hM(A)?new Cf(t,A):pM(A)?new yf(t,A):el(A)?new Ew(t,A):Al(A)?new Fw(t,A):Hw(A)?new Uw(t,A):new Fn(t,A)},vw=function(t,A){var e=bw(t,A);return e.flags|=4,Za(t,A,e,e),e},uM=function(t,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Ef(t)&&e.styles.isTransparent()},fM=function(t){return t.isPositioned()||t.isFloating()},Iw=function(t){return t.nodeType===Node.TEXT_NODE},Gi=function(t){return t.nodeType===Node.ELEMENT_NODE},Qf=function(t){return Gi(t)&&typeof t.style<"u"&&!ja(t)},ja=function(t){return typeof t.className=="object"},dM=function(t){return t.tagName==="LI"},hM=function(t){return t.tagName==="OL"},pM=function(t){return t.tagName==="INPUT"},gM=function(t){return t.tagName==="HTML"},Sw=function(t){return t.tagName==="svg"},Ef=function(t){return t.tagName==="BODY"},Tw=function(t){return t.tagName==="CANVAS"},xw=function(t){return t.tagName==="VIDEO"},Ff=function(t){return t.tagName==="IMG"},Hw=function(t){return t.tagName==="IFRAME"},_w=function(t){return t.tagName==="STYLE"},BM=function(t){return t.tagName==="SCRIPT"},Al=function(t){return t.tagName==="TEXTAREA"},el=function(t){return t.tagName==="SELECT"},Lw=function(t){return t.tagName==="SLOT"},Ow=function(t){return t.tagName.indexOf("-")>0},mM=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}(),Mw={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"]},Dw={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},wM={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},CM={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Wi=function(t,A,e,n,r,i){return t<A||t>e?no(t,r,i.length>0):n.integers.reduce(function(s,a,c){for(;t>=a;)t-=a,s+=n.values[c];return s},"")+i},kw=function(t,A,e,n){var r="";do e||t--,r=n(t)+r,t/=A;while(t*A>=A);return r},ue=function(t,A,e,n,r){var i=e-A+1;return(t<0?"-":"")+(kw(Math.abs(t),i,n,function(s){return ce(Math.floor(s%i)+A)})+r)},ti=function(t,A,e){e===void 0&&(e=". ");var n=A.length;return kw(Math.abs(t),n,!1,function(r){return A[Math.floor(r%n)]})+e},$i=1<<0,Er=1<<1,Fr=1<<2,to=1<<3,Rn=function(t,A,e,n,r,i){if(t<-9999||t>9999)return no(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&&Ee(i,$i)&&a!==""?a=A[u]+a:u>1||u===1&&c===0||u===1&&c===1&&Ee(i,Er)||u===1&&c===1&&Ee(i,Fr)&&t>100||u===1&&c>1&&Ee(i,to)?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},Nw="十百千萬",Rw="拾佰仟萬",Kw="マイナス",Uf="마이너스",no=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=ue(t,48,57,!0,n);return a.length<4?"0"+a:a;case 4:return ti(t,"〇一二三四五六七八九",r);case 6:return Wi(t,1,3999,Mw,3,n).toLowerCase();case 7:return Wi(t,1,3999,Mw,3,n);case 8:return ue(t,945,969,!1,n);case 9:return ue(t,97,122,!1,n);case 10:return ue(t,65,90,!1,n);case 11:return ue(t,1632,1641,!0,n);case 12:case 49:return Wi(t,1,9999,Dw,3,n);case 35:return Wi(t,1,9999,Dw,3,n).toLowerCase();case 13:return ue(t,2534,2543,!0,n);case 14:case 30:return ue(t,6112,6121,!0,n);case 15:return ti(t,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return ti(t,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Rn(t,"零一二三四五六七八九",Nw,"負",r,Er|Fr|to);case 47:return Rn(t,"零壹貳參肆伍陸柒捌玖",Rw,"負",r,$i|Er|Fr|to);case 42:return Rn(t,"零一二三四五六七八九",Nw,"负",r,Er|Fr|to);case 41:return Rn(t,"零壹贰叁肆伍陆柒捌玖",Rw,"负",r,$i|Er|Fr|to);case 26:return Rn(t,"〇一二三四五六七八九","十百千万",Kw,r,0);case 25:return Rn(t,"零壱弐参四伍六七八九","拾百千万",Kw,r,$i|Er|Fr);case 31:return Rn(t,"영일이삼사오육칠팔구","십백천만",Uf,i,$i|Er|Fr);case 33:return Rn(t,"零一二三四五六七八九","十百千萬",Uf,i,0);case 32:return Rn(t,"零壹貳參四五六七八九","拾百千",Uf,i,$i|Er|Fr);case 18:return ue(t,2406,2415,!0,n);case 20:return Wi(t,1,19999,CM,3,n);case 21:return ue(t,2790,2799,!0,n);case 22:return ue(t,2662,2671,!0,n);case 22:return Wi(t,1,10999,wM,3,n);case 23:return ti(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ti(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ue(t,3302,3311,!0,n);case 28:return ti(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return ti(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return ue(t,3792,3801,!0,n);case 37:return ue(t,6160,6169,!0,n);case 38:return ue(t,4160,4169,!0,n);case 39:return ue(t,2918,2927,!0,n);case 40:return ue(t,1776,1785,!0,n);case 43:return ue(t,3046,3055,!0,n);case 44:return ue(t,3174,3183,!0,n);case 45:return ue(t,3664,3673,!0,n);case 46:return ue(t,3872,3881,!0,n);case 3:default:return ue(t,48,57,!0,n)}},Vw="data-html2canvas-ignore",Pw=function(){function t(A,e,n){if(this.context=A,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new mM,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=yM(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=FM(r).then(function(){return rt(n,void 0,void 0,function(){var d,p;return Xe(this,function(B){switch(B.label){case 0:return this.scrolledElements.forEach(IM),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))),d=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:B.sent(),B.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,EM(c)]:[3,4];case 3:B.sent(),B.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(c,p)}).then(function(){return r})]:[2,r]}})})});return c.open(),c.write(bM(document.doctype)+"<html></html>"),vM(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(A){if(af(A,2))debugger;if(Tw(A))return this.createCanvasClone(A);if(xw(A))return this.createVideoClone(A);if(_w(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Ff(e)&&(Ff(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Ow(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return bf(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){(!Gi(e)||!BM(e)&&!e.hasAttribute(Vw)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Gi(e)||!_w(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(Gi(i)&&Lw(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(Iw(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var n=A.ownerDocument.defaultView;if(n&&Gi(A)&&(Qf(A)||ja(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&&Qf(r)&&(this.clonedReferenceElement=r),Ef(r)&&xM(r);var c=this.counters.parse(new nw(this.context,i)),u=this.resolvePseudoContent(A,r,s,ro.BEFORE);Ow(A)&&(e=!0),xw(A)||this.cloneChildNodes(A,r,e),u&&r.insertBefore(u,r.firstChild);var d=this.resolvePseudoContent(A,r,a,ro.AFTER);return d&&r.appendChild(d),this.counters.pop(c),(i&&(this.options.copyStyles||ja(A))&&!Hw(A)||e)&&bf(i,r),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Al(A)||el(A))&&(Al(r)||el(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 nw(this.context,n));var c=new dO(this.context,n),u=a.createElement("html2canvaspseudoelement");bf(n,u),c.content.forEach(function(p){if(p.type===0)u.appendChild(a.createTextNode(p.value));else if(p.type===22){var B=a.createElement("img");B.src=p.value,B.style.opacity="1",u.appendChild(B)}else if(p.type===18){if(p.name==="attr"){var m=p.values.filter(GA);m.length&&u.appendChild(a.createTextNode(A.getAttribute(m[0].value)||""))}else if(p.name==="counter"){var C=p.values.filter(Vi),E=C[0],S=C[1];if(E&&GA(E)){var U=i.counters.getCounterValue(E.value),v=S&&GA(S)?of.parse(i.context,S.value):3;u.appendChild(a.createTextNode(no(U,v,!1)))}}else if(p.name==="counters"){var M=p.values.filter(Vi),E=M[0],F=M[1],S=M[2];if(E&&GA(E)){var T=i.counters.getCounterValues(E.value),_=S&&GA(S)?of.parse(i.context,S.value):3,N=F&&F.type===0?F.value:"",W=T.map(function(gA){return no(gA,_,!1)}).join(N);u.appendChild(a.createTextNode(W))}}}else if(p.type===20)switch(p.value){case"open-quote":u.appendChild(a.createTextNode(tw(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(tw(c.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(p.value))}}),u.className=vf+" "+If;var d=r===ro.BEFORE?" "+vf:" "+If;return ja(e)?e.className.baseValue+=d:e.className+=d,u}}},t.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},t}(),ro;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ro||(ro={}));var yM=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(Vw,"true"),t.body.appendChild(e),e},QM=function(t){return new Promise(function(A){if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A})},EM=function(t){return Promise.all([].slice.call(t.images,0).map(QM))},FM=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)}})},UM=["all","d","content"],bf=function(t,A){for(var e=t.length-1;e>=0;e--){var n=t.item(e);UM.indexOf(n)===-1&&A.style.setProperty(n,t.getPropertyValue(n))}return A},bM=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},vM=function(t,A,e){t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},IM=function(t){var A=t[0],e=t[1],n=t[2];A.scrollLeft=e,A.scrollTop=n},SM=":before",TM=":after",vf="___html2canvas___pseudoelement_before",If="___html2canvas___pseudoelement_after",Gw=`{
|
|
181
181
|
content: "" !important;
|
|
182
182
|
display: none !important;
|
|
183
|
-
}`,
|
|
184
|
-
.`+If+Tk+Gw)},Hk=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},Ww=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}(),_k=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)||(Tf(A)||Mk(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 rt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Xe(this,function(a){switch(a.label){case 0:return e=Ww.isSameOrigin(A),n=!Sf(A)&&this._options.useCORS===!0&&Me.SUPPORT_CORS_IMAGES&&!e,r=!Sf(A)&&!e&&!Tf(A)&&typeof this._options.proxy=="string"&&Me.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Sf(A)&&!Tf(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 d=new Image;d.onload=function(){return c(d)},d.onerror=u,(Dk(i)||n)&&(d.crossOrigin="anonymous"),d.src=i,d.complete===!0&&setTimeout(function(){return c(d)},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=Me.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(B){return s(B)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var d=e._options.imageTimeout;c.timeout=d,c.ontimeout=function(){return s("Timed out ("+d+"ms) proxying "+r)}}c.send()})},t}(),Lk=/^data:image\/svg\+xml/i,Ok=/^data:image\/.*;base64,/i,kk=/^data:image\/.*/i,Mk=function(t){return Me.SUPPORT_SVG_DRAWING||!Nk(t)},Sf=function(t){return kk.test(t)},Dk=function(t){return Ok.test(t)},Tf=function(t){return t.substr(0,4)==="blob"},Nk=function(t){return t.substr(-3).toLowerCase()==="svg"||Lk.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}(),Ji=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},tl=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=Ji(this.start,this.startControl,A),r=Ji(this.startControl,this.endControl,A),i=Ji(this.endControl,this.end,A),s=Ji(n,r,A),a=Ji(r,i,A),c=Ji(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}(),Vt=function(t){return t.type===1},Rk=function(){function t(A){var e=A.styles,n=A.bounds,r=qs(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=qs(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],d=qs(e.borderBottomRightRadius,n.width,n.height),p=d[0],B=d[1],m=qs(e.borderBottomLeftRadius,n.width,n.height),C=m[0],E=m[1],S=[];S.push((i+c)/n.width),S.push((C+p)/n.width),S.push((s+E)/n.height),S.push((u+B)/n.height);var U=Math.max.apply(Math,S);U>1&&(i/=U,s/=U,c/=U,u/=U,p/=U,B/=U,C/=U,E/=U);var v=n.width-c,k=n.height-B,F=n.width-p,T=n.height-E,_=e.borderTopWidth,N=e.borderRightWidth,W=e.borderBottomWidth,$=e.borderLeftWidth,eA=YA(e.paddingTop,A.bounds.width),gA=YA(e.paddingRight,A.bounds.width),wA=YA(e.paddingBottom,A.bounds.width),aA=YA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?te(n.left+$/3,n.top+_/3,i-$/3,s-_/3,NA.TOP_LEFT):new Z(n.left+$/3,n.top+_/3),this.topRightBorderDoubleOuterBox=i>0||s>0?te(n.left+v,n.top+_/3,c-N/3,u-_/3,NA.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+_/3),this.bottomRightBorderDoubleOuterBox=p>0||B>0?te(n.left+F,n.top+k,p-N/3,B-W/3,NA.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-W/3),this.bottomLeftBorderDoubleOuterBox=C>0||E>0?te(n.left+$/3,n.top+T,C-$/3,E-W/3,NA.BOTTOM_LEFT):new Z(n.left+$/3,n.top+n.height-W/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?te(n.left+$*2/3,n.top+_*2/3,i-$*2/3,s-_*2/3,NA.TOP_LEFT):new Z(n.left+$*2/3,n.top+_*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?te(n.left+v,n.top+_*2/3,c-N*2/3,u-_*2/3,NA.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+_*2/3),this.bottomRightBorderDoubleInnerBox=p>0||B>0?te(n.left+F,n.top+k,p-N*2/3,B-W*2/3,NA.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-W*2/3),this.bottomLeftBorderDoubleInnerBox=C>0||E>0?te(n.left+$*2/3,n.top+T,C-$*2/3,E-W*2/3,NA.BOTTOM_LEFT):new Z(n.left+$*2/3,n.top+n.height-W*2/3),this.topLeftBorderStroke=i>0||s>0?te(n.left+$/2,n.top+_/2,i-$/2,s-_/2,NA.TOP_LEFT):new Z(n.left+$/2,n.top+_/2),this.topRightBorderStroke=i>0||s>0?te(n.left+v,n.top+_/2,c-N/2,u-_/2,NA.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+_/2),this.bottomRightBorderStroke=p>0||B>0?te(n.left+F,n.top+k,p-N/2,B-W/2,NA.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-W/2),this.bottomLeftBorderStroke=C>0||E>0?te(n.left+$/2,n.top+T,C-$/2,E-W/2,NA.BOTTOM_LEFT):new Z(n.left+$/2,n.top+n.height-W/2),this.topLeftBorderBox=i>0||s>0?te(n.left,n.top,i,s,NA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?te(n.left+v,n.top,c,u,NA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||B>0?te(n.left+F,n.top+k,p,B,NA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=C>0||E>0?te(n.left,n.top+T,C,E,NA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?te(n.left+$,n.top+_,Math.max(0,i-$),Math.max(0,s-_),NA.TOP_LEFT):new Z(n.left+$,n.top+_),this.topRightPaddingBox=c>0||u>0?te(n.left+Math.min(v,n.width-N),n.top+_,v>n.width+N?0:Math.max(0,c-N),Math.max(0,u-_),NA.TOP_RIGHT):new Z(n.left+n.width-N,n.top+_),this.bottomRightPaddingBox=p>0||B>0?te(n.left+Math.min(F,n.width-$),n.top+Math.min(k,n.height-W),Math.max(0,p-N),Math.max(0,B-W),NA.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-W),this.bottomLeftPaddingBox=C>0||E>0?te(n.left+$,n.top+Math.min(T,n.height-W),Math.max(0,C-$),Math.max(0,E-W),NA.BOTTOM_LEFT):new Z(n.left+$,n.top+n.height-W),this.topLeftContentBox=i>0||s>0?te(n.left+$+aA,n.top+_+eA,Math.max(0,i-($+aA)),Math.max(0,s-(_+eA)),NA.TOP_LEFT):new Z(n.left+$+aA,n.top+_+eA),this.topRightContentBox=c>0||u>0?te(n.left+Math.min(v,n.width+$+aA),n.top+_+eA,v>n.width+$+aA?0:c-$+aA,u-(_+eA),NA.TOP_RIGHT):new Z(n.left+n.width-(N+gA),n.top+_+eA),this.bottomRightContentBox=p>0||B>0?te(n.left+Math.min(F,n.width-($+aA)),n.top+Math.min(k,n.height+_+eA),Math.max(0,p-(N+gA)),B-(W+wA),NA.BOTTOM_RIGHT):new Z(n.left+n.width-(N+gA),n.top+n.height-(W+wA)),this.bottomLeftContentBox=C>0||E>0?te(n.left+$+aA,n.top+T,Math.max(0,C-($+aA)),E-(W+wA),NA.BOTTOM_LEFT):new Z(n.left+$+aA,n.top+n.height-(W+wA))}return t}(),NA;(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"})(NA||(NA={}));var te=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 NA.TOP_LEFT:return new tl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case NA.TOP_RIGHT:return new tl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case NA.BOTTOM_RIGHT:return new tl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case NA.BOTTOM_LEFT:default:return new tl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},nl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Kk=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},rl=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Vk=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),il=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),Pk=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),Gk=function(t){return t.type===0},$w=function(t){return t.type===1},Wk=function(t){return t.type===2},Jw=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},$k=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})},Xw=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Yw=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Rk(this.container),this.container.styles.opacity<1&&this.effects.push(new Pk(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 Vk(n,r,i))}if(this.container.styles.overflowX!==0){var s=nl(this.curves),a=rl(this.curves);Jw(s,a)?this.effects.push(new il(s,6)):(this.effects.push(new il(s,2)),this.effects.push(new il(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!$w(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=nl(n.curves),a=rl(n.curves);Jw(s,a)||r.unshift(new il(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Ee(c.target,A)})},t}(),xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Ee(r.flags,4),s=Ee(r.flags,2),a=new Yw(r,t);Ee(r.styles.display,2048)&&n.push(a);var c=Ee(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,d=new Xw(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var B=0;u.negativeZIndex.some(function(C,E){return p>C.element.container.styles.zIndex.order?(B=E,!1):B>0}),u.negativeZIndex.splice(B,0,d)}else if(p>0){var m=0;u.positiveZIndex.some(function(C,E){return p>=C.element.container.styles.zIndex.order?(m=E+1,!1):m>0}),u.positiveZIndex.splice(m,0,d)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else r.styles.isFloating()?u.nonPositionedFloats.push(d):u.nonPositionedInlineLevel.push(d);xf(a,d,i?d:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),xf(a,A,e,c);Ee(r.flags,8)&&zw(r,c)})},zw=function(t,A){for(var e=t instanceof Cf?t.start:1,n=t instanceof Cf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof yw&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=no(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},Jk=function(t){var A=new Yw(t,null),e=new Xw(A),n=[];return xf(A,e,e,n),zw(A.container,n),e},qw=function(t,A){switch(A){case 0:return Pt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Pt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Pt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Pt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Xk=function(t,A){switch(A){case 0:return Pt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Pt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Pt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Pt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Yk=function(t,A){switch(A){case 0:return Pt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Pt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Pt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Pt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},zk=function(t,A){switch(A){case 0:return sl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return sl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return sl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return sl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},sl=function(t,A){var e=[];return Vt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Vt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Pt=function(t,A,e,n){var r=[];return Vt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Vt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Vt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Vt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},Zw=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},ol=function(t){var A=t.styles,e=t.bounds,n=YA(A.paddingLeft,e.width),r=YA(A.paddingRight,e.width),i=YA(A.paddingTop,e.width),s=YA(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))},qk=function(t,A){return t===0?A.bounds:t===2?ol(A):Zw(A)},Zk=function(t,A){return t===0?A.bounds:t===2?ol(A):Zw(A)},Hf=function(t,A,e){var n=qk(Yi(t.styles.backgroundOrigin,A),t),r=Zk(Yi(t.styles.backgroundClip,A),t),i=jk(Yi(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=qs(Yi(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=AM(Yi(t.styles.backgroundRepeat,A),c,i,n,r),d=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,d,p,s,a]},Xi=function(t){return GA(t)&&t.value===Pi.AUTO},al=function(t){return typeof t=="number"},jk=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(ge(s)&&a&&ge(a))return[YA(s,e.width),YA(a,e.height)];var c=al(i);if(GA(s)&&(s.value===Pi.CONTAIN||s.value===Pi.COVER)){if(al(i)){var u=e.width/e.height;return u<i!=(s.value===Pi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var d=al(n),p=al(r),B=d||p;if(Xi(s)&&(!a||Xi(a))){if(d&&p)return[n,r];if(!c&&!B)return[e.width,e.height];if(B&&c){var m=d?n:r*i,C=p?r:n/i;return[m,C]}var E=d?n:e.width,S=p?r:e.height;return[E,S]}if(c){var U=0,v=0;return ge(s)?U=YA(s,e.width):ge(a)&&(v=YA(a,e.height)),Xi(s)?U=v*i:(!a||Xi(a))&&(v=U/i),[U,v]}var k=null,F=null;if(ge(s)?k=YA(s,e.width):a&&ge(a)&&(F=YA(a,e.height)),k!==null&&(!a||Xi(a))&&(F=d&&p?k/n*r:e.height),F!==null&&Xi(s)&&(k=d&&p?F/r*n:e.width),k!==null&&F!==null)return[k,F];throw new Error("Unable to calculate background-size for element")},Yi=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},AM=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))]}},eM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",jw="Hidden Text",tM=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=eM,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(jw)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(jw)),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}(),AC=function(){function t(A,e){this.context=A,this.options=e}return t}(),nM=1e4,rM=function(t){sn(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 tM(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(),Wk(e)&&(this.ctx.globalAlpha=e.opacity),Gk(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)),$w(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 rt(this,void 0,void 0,function(){var n;return Xe(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 rt(this,void 0,void 0,function(){return Xe(this,function(n){switch(n.label){case 0:if(Ee(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=wf(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=lM(e.fontFamily).join(", "),i=zs(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 rt(this,void 0,void 0,function(){var r,i,s,a,c,u,d,p,B=this;return Xe(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,d=c.middle,p=n.paintOrder,e.textBounds.forEach(function(C){p.forEach(function(E){switch(E){case 0:B.ctx.fillStyle=Se(n.color),B.renderTextWithLetterSpacing(C,n.letterSpacing,u);var S=n.textShadow;S.length&&C.text.trim().length&&(S.slice(0).reverse().forEach(function(U){B.ctx.shadowColor=Se(U.color),B.ctx.shadowOffsetX=U.offsetX.number*B.options.scale,B.ctx.shadowOffsetY=U.offsetY.number*B.options.scale,B.ctx.shadowBlur=U.blur.number,B.renderTextWithLetterSpacing(C,n.letterSpacing,u)}),B.ctx.shadowColor="",B.ctx.shadowOffsetX=0,B.ctx.shadowOffsetY=0,B.ctx.shadowBlur=0),n.textDecorationLine.length&&(B.ctx.fillStyle=Se(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(U){switch(U){case 1:B.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top+u),C.bounds.width,1);break;case 2:B.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top),C.bounds.width,1);break;case 3:B.ctx.fillRect(C.bounds.left,Math.ceil(C.bounds.top+d),C.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&C.text.trim().length&&(B.ctx.strokeStyle=Se(n.webkitTextStrokeColor),B.ctx.lineWidth=n.webkitTextStrokeWidth,B.ctx.lineJoin=window.chrome?"miter":"round",B.ctx.strokeText(C.text,C.bounds.left,C.bounds.top+u)),B.ctx.strokeStyle="",B.ctx.lineWidth=0,B.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=ol(e),s=rl(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 rt(this,void 0,void 0,function(){var n,r,i,s,a,c,v,v,u,d,p,B,F,m,C,T,E,S,U,v,k,F,T;return Xe(this,function(_){switch(_.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,_.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:_.sent(),_.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof mw))return[3,8];_.label=5;case 5:return _.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return v=_.sent(),this.renderReplacedElement(n,r,v),[3,8];case 7:return _.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof ww&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Cw))return[3,12];_.label=9;case 9:return _.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return v=_.sent(),this.renderReplacedElement(n,r,v),[3,12];case 11:return _.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Uw&&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:d=_.sent(),n.width&&n.height&&this.ctx.drawImage(d,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),_.label=14;case 14:if(n instanceof yf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===za?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=Se(Qw),this.ctx.fill(),this.ctx.restore()):n.type===qa&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Se(Qw),this.ctx.fill(),this.ctx.restore())),iM(n)&&n.value.length){switch(B=this.createFontStyle(i),F=B[0],m=B[1],C=this.fontMetrics.getMetrics(F,m).baseline,this.ctx.font=F,this.ctx.fillStyle=Se(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=oM(n.styles.textAlign),T=ol(n),E=0,n.styles.textAlign){case 1:E+=T.width/2;break;case 2:E+=T.width;break}S=T.add(E,0,0,-T.height/2+1),this.ctx.save(),this.path([new Z(T.left,T.top),new Z(T.left+T.width,T.top),new Z(T.left+T.width,T.top+T.height),new Z(T.left,T.top+T.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new eo(n.value,S),i.letterSpacing,C),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ee(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(U=n.styles.listStyleImage,U.type!==0)return[3,18];v=void 0,k=U.url,_.label=15;case 15:return _.trys.push([15,17,,18]),[4,this.context.cache.match(k)];case 16:return v=_.sent(),this.ctx.drawImage(v,n.bounds.left-(v.width+10),n.bounds.top),[3,18];case 17:return _.sent(),this.context.logger.error("Error loading list-style-image "+k),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(F=this.createFontStyle(i)[0],this.ctx.font=F,this.ctx.fillStyle=Se(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",T=new Mn(n.bounds.left,n.bounds.top+YA(n.styles.paddingTop,n.bounds.width),n.bounds.width,jm(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new eo(e.listValue,T),i.letterSpacing,jm(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return rt(this,void 0,void 0,function(){var n,r,U,i,s,U,a,c,U,u,d,U,p,B,U,m,C,U,E,S,U;return Xe(this,function(v){switch(v.label){case 0:if(Ee(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:v.sent(),n=0,r=e.negativeZIndex,v.label=2;case 2:return n<r.length?(U=r[n],[4,this.renderStack(U)]):[3,5];case 3:v.sent(),v.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:v.sent(),i=0,s=e.nonInlineLevel,v.label=7;case 7:return i<s.length?(U=s[i],[4,this.renderNode(U)]):[3,10];case 8:v.sent(),v.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,v.label=11;case 11:return a<c.length?(U=c[a],[4,this.renderStack(U)]):[3,14];case 12:v.sent(),v.label=13;case 13:return a++,[3,11];case 14:u=0,d=e.nonPositionedInlineLevel,v.label=15;case 15:return u<d.length?(U=d[u],[4,this.renderStack(U)]):[3,18];case 16:v.sent(),v.label=17;case 17:return u++,[3,15];case 18:p=0,B=e.inlineLevel,v.label=19;case 19:return p<B.length?(U=B[p],[4,this.renderNode(U)]):[3,22];case 20:v.sent(),v.label=21;case 21:return p++,[3,19];case 22:m=0,C=e.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return m<C.length?(U=C[m],[4,this.renderStack(U)]):[3,26];case 24:v.sent(),v.label=25;case 25:return m++,[3,23];case 26:E=0,S=e.positiveZIndex,v.label=27;case 27:return E<S.length?(U=S[E],[4,this.renderStack(U)]):[3,30];case 28:v.sent(),v.label=29;case 29:return E++,[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=Vt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Vt(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 rt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Xe(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(d){var p,B,m,eA,bA,vA,aA,HA,W,C,eA,bA,vA,aA,HA,E,S,U,v,k,F,T,_,N,W,$,eA,gA,wA,aA,HA,WA,bA,vA,mA,re,ZA,$A,Be,me,Te,jA;return Xe(this,function(fe){switch(fe.label){case 0:if(d.type!==0)return[3,5];p=void 0,B=d.url,fe.label=1;case 1:return fe.trys.push([1,3,,4]),[4,i.context.cache.match(B)];case 2:return p=fe.sent(),[3,4];case 3:return fe.sent(),i.context.logger.error("Error loading background-image "+B),[3,4];case 4:return p&&(m=Hf(e,n,[p.width,p.height,p.width/p.height]),eA=m[0],bA=m[1],vA=m[2],aA=m[3],HA=m[4],W=i.ctx.createPattern(i.resizeImage(p,aA,HA),"repeat"),i.renderRepeat(eA,W,bA,vA)),[3,6];case 5:G_(d)?(C=Hf(e,n,[null,null,null]),eA=C[0],bA=C[1],vA=C[2],aA=C[3],HA=C[4],E=N_(d.angle,aA,HA),S=E[0],U=E[1],v=E[2],k=E[3],F=E[4],T=document.createElement("canvas"),T.width=aA,T.height=HA,_=T.getContext("2d"),N=_.createLinearGradient(U,k,v,F),Vm(d.stops,S).forEach(function(it){return N.addColorStop(it.stop,Se(it.color))}),_.fillStyle=N,_.fillRect(0,0,aA,HA),aA>0&&HA>0&&(W=i.ctx.createPattern(T,"repeat"),i.renderRepeat(eA,W,bA,vA))):W_(d)&&($=Hf(e,n,[null,null,null]),eA=$[0],gA=$[1],wA=$[2],aA=$[3],HA=$[4],WA=d.position.length===0?[nf]:d.position,bA=YA(WA[0],aA),vA=YA(WA[WA.length-1],HA),mA=R_(d,bA,vA,aA,HA),re=mA[0],ZA=mA[1],re>0&&ZA>0&&($A=i.ctx.createRadialGradient(gA+bA,wA+vA,0,gA+bA,wA+vA,re),Vm(d.stops,re*2).forEach(function(it){return $A.addColorStop(it.stop,Se(it.color))}),i.path(eA),i.ctx.fillStyle=$A,re!==ZA?(Be=e.bounds.left+.5*e.bounds.width,me=e.bounds.top+.5*e.bounds.height,Te=ZA/re,jA=1/Te,i.ctx.save(),i.ctx.translate(Be,me),i.ctx.transform(1,0,0,Te,0,0),i.ctx.translate(-Be,-me),i.ctx.fillRect(gA,jA*(wA-me)+me,aA,HA*jA),i.ctx.restore()):i.ctx.fill())),fe.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 rt(this,void 0,void 0,function(){return Xe(this,function(i){return this.path(qw(r,n)),this.ctx.fillStyle=Se(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return rt(this,void 0,void 0,function(){var s,a;return Xe(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=Xk(i,r),this.path(s),this.ctx.fillStyle=Se(e),this.ctx.fill(),a=Yk(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return rt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,d,p=this;return Xe(this,function(B){switch(B.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!yr(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=sM(Yi(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),yr(n.backgroundColor)||(this.ctx.fillStyle=Se(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:B.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){p.ctx.save();var C=nl(e.curves),E=m.inset?0:nM,S=$k(C,-E+(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?(p.path(C),p.ctx.clip(),p.mask(S)):(p.mask(C),p.ctx.clip(),p.path(S)),p.ctx.shadowOffsetX=m.offsetX.number+E,p.ctx.shadowOffsetY=m.offsetY.number,p.ctx.shadowColor=Se(m.color),p.ctx.shadowBlur=m.blur.number,p.ctx.fillStyle=m.inset?Se(m.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),B.label=2;case 2:a=0,c=0,u=i,B.label=3;case 3:return c<u.length?(d=u[c],d.style!==0&&!yr(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return B.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,a,e.curves,3)];case 6:return B.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,a,e.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,a,e.curves)];case 10:B.sent(),B.label=11;case 11:a++,B.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return rt(this,void 0,void 0,function(){var a,c,u,d,p,B,m,C,E,S,U,v,k,F,T,_,T,_;return Xe(this,function(N){return this.ctx.save(),a=zk(i,r),c=qw(i,r),s===2&&(this.path(c),this.ctx.clip()),Vt(c[0])?(u=c[0].start.x,d=c[0].start.y):(u=c[0].x,d=c[0].y),Vt(c[1])?(p=c[1].end.x,B=c[1].end.y):(p=c[1].x,B=c[1].y),r===0||r===2?m=Math.abs(u-p):m=Math.abs(d-B),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),C=n<3?n*3:n*2,E=n<3?n*2:n,s===3&&(C=n,E=n),S=!0,m<=C*2?S=!1:m<=C*2+E?(U=m/(2*C+E),C*=U,E*=U):(v=Math.floor((m+E)/(C+E)),k=(m-v*C)/(v-1),F=(m-(v+1)*C)/v,E=F<=0||Math.abs(E-k)<Math.abs(E-F)?k:F),S&&(s===3?this.ctx.setLineDash([0,C+E]):this.ctx.setLineDash([C,E])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Se(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Vt(c[0])&&(T=c[3],_=c[0],this.ctx.beginPath(),this.formatPath([new Z(T.end.x,T.end.y),new Z(_.start.x,_.start.y)]),this.ctx.stroke()),Vt(c[1])&&(T=c[1],_=c[2],this.ctx.beginPath(),this.formatPath([new Z(T.end.x,T.end.y),new Z(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return rt(this,void 0,void 0,function(){var n;return Xe(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=Jk(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(AC),iM=function(t){return t instanceof Fw||t instanceof Ew?!0:t instanceof yf&&t.type!==qa&&t.type!==za},sM=function(t,A){switch(t){case 0:return nl(A);case 2:return Kk(A);case 1:default:return rl(A)}},oM=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},aM=["-apple-system","system-ui"],lM=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return aM.indexOf(A)===-1}):t},cM=function(t){sn(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 rt(this,void 0,void 0,function(){var n,r;return Xe(this,function(i){switch(i.label){case 0:return n=mf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,uM(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Se(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}(AC),uM=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))})},fM=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,ga([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,ga([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,ga([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,ga([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),dM=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new fM({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new _k(this,A)}return t.instanceCount=1,t}(),hM=function(t,A){return A===void 0&&(A={}),pM(t,A)};typeof window<"u"&&Ww.setContext(window);var pM=function(t,A){return rt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,d,p,B,m,C,E,S,U,v,k,F,T,N,_,N,W,$,eA,gA,wA,aA,HA,WA,bA,vA,mA,re,ZA,$A,Be,me,Te;return Xe(this,function(jA){switch(jA.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:(W=A.allowTaint)!==null&&W!==void 0?W:!1,imageTimeout:($=A.imageTimeout)!==null&&$!==void 0?$:15e3,proxy:A.proxy,useCORS:(eA=A.useCORS)!==null&&eA!==void 0?eA:!1},i=ku({logging:(gA=A.logging)!==null&&gA!==void 0?gA:!0,cache:A.cache},r),s={windowWidth:(wA=A.windowWidth)!==null&&wA!==void 0?wA:n.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:n.innerHeight,scrollX:(HA=A.scrollX)!==null&&HA!==void 0?HA:n.pageXOffset,scrollY:(WA=A.scrollY)!==null&&WA!==void 0?WA:n.pageYOffset},a=new Mn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new dM(i,a),u=(bA=A.foreignObjectRendering)!==null&&bA!==void 0?bA:!1,d={allowTaint:(vA=A.allowTaint)!==null&&vA!==void 0?vA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new Pw(c,t,d),B=p.clonedReferenceElement,B?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=jA.sent(),C=Ef(B)||gk(B)?$x(B.ownerDocument):Ba(c,B),E=C.width,S=C.height,U=C.left,v=C.top,k=gM(c,B,A.backgroundColor),F={canvas:A.canvas,backgroundColor:k,scale:(re=(mA=A.scale)!==null&&mA!==void 0?mA:n.devicePixelRatio)!==null&&re!==void 0?re:1,x:((ZA=A.x)!==null&&ZA!==void 0?ZA:0)+U,y:(($A=A.y)!==null&&$A!==void 0?$A:0)+v,width:(Be=A.width)!==null&&Be!==void 0?Be:Math.ceil(E),height:(me=A.height)!==null&&me!==void 0?me:Math.ceil(S)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new cM(c,F),[4,N.render(B)]):[3,3];case 2:return T=jA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+U+","+v+" with size "+E+"x"+S+" using computed rendering"),c.logger.debug("Starting DOM parsing"),_=vw(c,B),k===_.styles.backgroundColor&&(_.styles.backgroundColor=Nn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),N=new rM(c,F),[4,N.render(_)];case 4:T=jA.sent(),jA.label=5;case 5:return(!((Te=A.removeContainer)!==null&&Te!==void 0)||Te)&&(Pw.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,T]}})})},gM=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?Zs(t,getComputedStyle(n.documentElement).backgroundColor):Nn.TRANSPARENT,i=n.body?Zs(t,getComputedStyle(n.body).backgroundColor):Nn.TRANSPARENT,s=typeof e=="string"?Zs(t,e):e===null?Nn.TRANSPARENT:4294967295;return A===n.documentElement?yr(r)?yr(i)?s:i:r:s};const BM=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref(),r=h.ref(""),i=h.ref();async function s(){if(n.value){const c=n.value,d=(await hM(c.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:c.offsetWidth,height:c.offsetHeight})).toDataURL();if(A("update:modelValue",d),e.debug){const p=new Image;p.src=d,document.body.appendChild(p)}return d}return""}const a=Ms.debounce(async()=>{r.value=await s()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const c=n.value;e.renderUpdates&&(i.value=new MutationObserver(async u=>{a()}),i.value.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{a()},500)}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:n,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(c.$slots,"default")],6))}}),mM={class:"link-sharing"},wM={key:0,class:"link-sharing__links container"},CM={class:"row"},yM={key:0,class:"col-12 col-md-6"},QM=["href"],EM={class:"caption"},FM={key:1,class:"col-12 col-md-6"},UM=["href"],bM={class:"caption"},vM={key:2,class:"col-12 col-md-6"},IM={class:"caption"},SM={key:3,class:"col-12 col-md-6"},TM=["href"],xM={class:"caption"},HM={key:4,class:"col-12 col-md-6"},_M=["href"],LM={class:"caption"},OM={key:5,class:"col-12 col-md-6"},kM=["onClick"],MM={class:"caption"},DM={key:6,class:"col-12 col-md-6"},NM=["href"],RM={class:"caption"},KM={key:1,class:"link-sharing__instructions pt-5"},VM={class:"row"},PM={class:"col-12 text-center py-0"},GM={class:"mb-5"},WM=t=>t.replace(/<(?:.|\n)*?>/gm,""),$M=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:String,hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,twitter:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0}}},setup(t){const A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>WM(A.text)),i=h.computed(()=>Boolean(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=h.resolveComponent("svg-icon"),d=h.resolveDirective("track-click");return h.openBlock(),h.createElementBlock("div",mM,[e.value?(h.openBlock(),h.createElementBlock("div",KM,[h.createElementVNode("div",VM,[h.createElementVNode("div",PM,[h.createElementVNode("div",GM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",wM,[h.createElementVNode("div",CM,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",yM,[h.withDirectives((h.openBlock(),h.createElementBlock("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${h.unref(n)}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",EM,h.toDisplayString(a.$t("sharing.facebook")),1)],8,QM)),[[d,"share-facebook"]])])):h.createCommentVNode("",!0),t.services.twitter?(h.openBlock(),h.createElementBlock("div",FM,[h.withDirectives((h.openBlock(),h.createElementBlock("a",{class:"link-sharing__link btn btn-primary",href:`https://twitter.com/share?text=${t.subject}&url=${h.unref(n)}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"twitter"}),h.createElementVNode("span",bM,h.toDisplayString(a.$t("sharing.twitter")),1)],8,UM)),[[d,"share-twitter"]])])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",vM,[h.withDirectives((h.openBlock(),h.createElementBlock("button",{class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(p=>e.value=!e.value,["prevent"])),target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",IM,h.toDisplayString(a.$t("sharing.instagram")),1)])),[[d,"share-instagram"]])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",SM,[h.withDirectives((h.openBlock(),h.createElementBlock("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${h.unref(n)}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",xM,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,TM)),[[d,"share-linkedin"]])])):h.createCommentVNode("",!0),t.services.whatsapp&&h.unref(i)?(h.openBlock(),h.createElementBlock("div",HM,[h.withDirectives((h.openBlock(),h.createElementBlock("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${h.unref(n)}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",LM,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,_M)),[[d,"share-whatsapp"]])])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",OM,[h.withDirectives((h.openBlock(),h.createElementBlock("button",{class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"]),target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",MM,h.toDisplayString(a.$t("sharing.clipboard")),1)],8,kM)),[[d,"share-clipboard"]])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",DM,[h.withDirectives((h.openBlock(),h.createElementBlock("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${h.unref(r)}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",RM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,NM)),[[d,"share-mailto"]])])):h.createCommentVNode("",!0)])]))])}}}),Y2="",JM={class:"base-form"},XM=["onSubmit"],YM=h.defineComponent({__name:"base-form",props:{id:null,name:null,variant:null,disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",JM,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],40,XM)]))}}),z2="";kA.Accordion=Zy,kA.AccordionItem=Jy,kA.AssetUploader=bx,kA.BaseButton=AQ,kA.BaseCamera=hT,kA.BaseCarousel=ZB,kA.BaseForm=YM,kA.BaseHeadline=My,kA.BaseInput=rQ,kA.BaseParagraph=Ny,kA.CheckGroup=gQ,kA.DomRenderer=BM,kA.FileUpload=px,kA.InputCheckbox=fQ,kA.InputColor=ZI,kA.InputDropdown=$S,kA.InputFile=SQ,kA.InputTextarea=aQ,kA.LinkSharing=$M,kA.LoadingSpinner=ky,kA.MediaThumbnails=kx,kA.ProgressSteps=Wx,kA.RadioGroup=yQ,kA.RteEditor=XI,kA.SvgIcon=Ty,kA.UploadGroup=qB,Object.defineProperty(kA,Symbol.toStringTag,{value:"Module"})});
|
|
183
|
+
}`,xM=function(t){HM(t,"."+vf+SM+Gw+`
|
|
184
|
+
.`+If+TM+Gw)},HM=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},Ww=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}(),_M=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)||(Tf(A)||DM(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 rt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Xe(this,function(a){switch(a.label){case 0:return e=Ww.isSameOrigin(A),n=!Sf(A)&&this._options.useCORS===!0&&De.SUPPORT_CORS_IMAGES&&!e,r=!Sf(A)&&!e&&!Tf(A)&&typeof this._options.proxy=="string"&&De.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Sf(A)&&!Tf(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 d=new Image;d.onload=function(){return c(d)},d.onerror=u,(kM(i)||n)&&(d.crossOrigin="anonymous"),d.src=i,d.complete===!0&&setTimeout(function(){return c(d)},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 p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(B){return s(B)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var d=e._options.imageTimeout;c.timeout=d,c.ontimeout=function(){return s("Timed out ("+d+"ms) proxying "+r)}}c.send()})},t}(),LM=/^data:image\/svg\+xml/i,OM=/^data:image\/.*;base64,/i,MM=/^data:image\/.*/i,DM=function(t){return De.SUPPORT_SVG_DRAWING||!NM(t)},Sf=function(t){return MM.test(t)},kM=function(t){return OM.test(t)},Tf=function(t){return t.substr(0,4)==="blob"},NM=function(t){return t.substr(-3).toLowerCase()==="svg"||LM.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}(),Ji=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},tl=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=Ji(this.start,this.startControl,A),r=Ji(this.startControl,this.endControl,A),i=Ji(this.endControl,this.end,A),s=Ji(n,r,A),a=Ji(r,i,A),c=Ji(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}(),Vt=function(t){return t.type===1},RM=function(){function t(A){var e=A.styles,n=A.bounds,r=qs(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=qs(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],d=qs(e.borderBottomRightRadius,n.width,n.height),p=d[0],B=d[1],m=qs(e.borderBottomLeftRadius,n.width,n.height),C=m[0],E=m[1],S=[];S.push((i+c)/n.width),S.push((C+p)/n.width),S.push((s+E)/n.height),S.push((u+B)/n.height);var U=Math.max.apply(Math,S);U>1&&(i/=U,s/=U,c/=U,u/=U,p/=U,B/=U,C/=U,E/=U);var v=n.width-c,M=n.height-B,F=n.width-p,T=n.height-E,_=e.borderTopWidth,N=e.borderRightWidth,W=e.borderBottomWidth,$=e.borderLeftWidth,eA=YA(e.paddingTop,A.bounds.width),gA=YA(e.paddingRight,A.bounds.width),wA=YA(e.paddingBottom,A.bounds.width),aA=YA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?te(n.left+$/3,n.top+_/3,i-$/3,s-_/3,NA.TOP_LEFT):new Z(n.left+$/3,n.top+_/3),this.topRightBorderDoubleOuterBox=i>0||s>0?te(n.left+v,n.top+_/3,c-N/3,u-_/3,NA.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+_/3),this.bottomRightBorderDoubleOuterBox=p>0||B>0?te(n.left+F,n.top+M,p-N/3,B-W/3,NA.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-W/3),this.bottomLeftBorderDoubleOuterBox=C>0||E>0?te(n.left+$/3,n.top+T,C-$/3,E-W/3,NA.BOTTOM_LEFT):new Z(n.left+$/3,n.top+n.height-W/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?te(n.left+$*2/3,n.top+_*2/3,i-$*2/3,s-_*2/3,NA.TOP_LEFT):new Z(n.left+$*2/3,n.top+_*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?te(n.left+v,n.top+_*2/3,c-N*2/3,u-_*2/3,NA.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+_*2/3),this.bottomRightBorderDoubleInnerBox=p>0||B>0?te(n.left+F,n.top+M,p-N*2/3,B-W*2/3,NA.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-W*2/3),this.bottomLeftBorderDoubleInnerBox=C>0||E>0?te(n.left+$*2/3,n.top+T,C-$*2/3,E-W*2/3,NA.BOTTOM_LEFT):new Z(n.left+$*2/3,n.top+n.height-W*2/3),this.topLeftBorderStroke=i>0||s>0?te(n.left+$/2,n.top+_/2,i-$/2,s-_/2,NA.TOP_LEFT):new Z(n.left+$/2,n.top+_/2),this.topRightBorderStroke=i>0||s>0?te(n.left+v,n.top+_/2,c-N/2,u-_/2,NA.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+_/2),this.bottomRightBorderStroke=p>0||B>0?te(n.left+F,n.top+M,p-N/2,B-W/2,NA.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-W/2),this.bottomLeftBorderStroke=C>0||E>0?te(n.left+$/2,n.top+T,C-$/2,E-W/2,NA.BOTTOM_LEFT):new Z(n.left+$/2,n.top+n.height-W/2),this.topLeftBorderBox=i>0||s>0?te(n.left,n.top,i,s,NA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?te(n.left+v,n.top,c,u,NA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||B>0?te(n.left+F,n.top+M,p,B,NA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=C>0||E>0?te(n.left,n.top+T,C,E,NA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?te(n.left+$,n.top+_,Math.max(0,i-$),Math.max(0,s-_),NA.TOP_LEFT):new Z(n.left+$,n.top+_),this.topRightPaddingBox=c>0||u>0?te(n.left+Math.min(v,n.width-N),n.top+_,v>n.width+N?0:Math.max(0,c-N),Math.max(0,u-_),NA.TOP_RIGHT):new Z(n.left+n.width-N,n.top+_),this.bottomRightPaddingBox=p>0||B>0?te(n.left+Math.min(F,n.width-$),n.top+Math.min(M,n.height-W),Math.max(0,p-N),Math.max(0,B-W),NA.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-W),this.bottomLeftPaddingBox=C>0||E>0?te(n.left+$,n.top+Math.min(T,n.height-W),Math.max(0,C-$),Math.max(0,E-W),NA.BOTTOM_LEFT):new Z(n.left+$,n.top+n.height-W),this.topLeftContentBox=i>0||s>0?te(n.left+$+aA,n.top+_+eA,Math.max(0,i-($+aA)),Math.max(0,s-(_+eA)),NA.TOP_LEFT):new Z(n.left+$+aA,n.top+_+eA),this.topRightContentBox=c>0||u>0?te(n.left+Math.min(v,n.width+$+aA),n.top+_+eA,v>n.width+$+aA?0:c-$+aA,u-(_+eA),NA.TOP_RIGHT):new Z(n.left+n.width-(N+gA),n.top+_+eA),this.bottomRightContentBox=p>0||B>0?te(n.left+Math.min(F,n.width-($+aA)),n.top+Math.min(M,n.height+_+eA),Math.max(0,p-(N+gA)),B-(W+wA),NA.BOTTOM_RIGHT):new Z(n.left+n.width-(N+gA),n.top+n.height-(W+wA)),this.bottomLeftContentBox=C>0||E>0?te(n.left+$+aA,n.top+T,Math.max(0,C-($+aA)),E-(W+wA),NA.BOTTOM_LEFT):new Z(n.left+$+aA,n.top+n.height-(W+wA))}return t}(),NA;(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"})(NA||(NA={}));var te=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 NA.TOP_LEFT:return new tl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case NA.TOP_RIGHT:return new tl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case NA.BOTTOM_RIGHT:return new tl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case NA.BOTTOM_LEFT:default:return new tl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},nl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},KM=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},rl=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},VM=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),il=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),PM=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),GM=function(t){return t.type===0},$w=function(t){return t.type===1},WM=function(t){return t.type===2},Jw=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},$M=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})},Xw=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Yw=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new RM(this.container),this.container.styles.opacity<1&&this.effects.push(new PM(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 VM(n,r,i))}if(this.container.styles.overflowX!==0){var s=nl(this.curves),a=rl(this.curves);Jw(s,a)?this.effects.push(new il(s,6)):(this.effects.push(new il(s,2)),this.effects.push(new il(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!$w(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=nl(n.curves),a=rl(n.curves);Jw(s,a)||r.unshift(new il(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Ee(c.target,A)})},t}(),xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Ee(r.flags,4),s=Ee(r.flags,2),a=new Yw(r,t);Ee(r.styles.display,2048)&&n.push(a);var c=Ee(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,d=new Xw(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var B=0;u.negativeZIndex.some(function(C,E){return p>C.element.container.styles.zIndex.order?(B=E,!1):B>0}),u.negativeZIndex.splice(B,0,d)}else if(p>0){var m=0;u.positiveZIndex.some(function(C,E){return p>=C.element.container.styles.zIndex.order?(m=E+1,!1):m>0}),u.positiveZIndex.splice(m,0,d)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else r.styles.isFloating()?u.nonPositionedFloats.push(d):u.nonPositionedInlineLevel.push(d);xf(a,d,i?d:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),xf(a,A,e,c);Ee(r.flags,8)&&zw(r,c)})},zw=function(t,A){for(var e=t instanceof Cf?t.start:1,n=t instanceof Cf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof yw&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=no(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},JM=function(t){var A=new Yw(t,null),e=new Xw(A),n=[];return xf(A,e,e,n),zw(A.container,n),e},qw=function(t,A){switch(A){case 0:return Pt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Pt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Pt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Pt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},XM=function(t,A){switch(A){case 0:return Pt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Pt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Pt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Pt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},YM=function(t,A){switch(A){case 0:return Pt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Pt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Pt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Pt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},zM=function(t,A){switch(A){case 0:return sl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return sl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return sl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return sl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},sl=function(t,A){var e=[];return Vt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Vt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Pt=function(t,A,e,n){var r=[];return Vt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Vt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Vt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Vt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},Zw=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},ol=function(t){var A=t.styles,e=t.bounds,n=YA(A.paddingLeft,e.width),r=YA(A.paddingRight,e.width),i=YA(A.paddingTop,e.width),s=YA(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))},qM=function(t,A){return t===0?A.bounds:t===2?ol(A):Zw(A)},ZM=function(t,A){return t===0?A.bounds:t===2?ol(A):Zw(A)},Hf=function(t,A,e){var n=qM(Yi(t.styles.backgroundOrigin,A),t),r=ZM(Yi(t.styles.backgroundClip,A),t),i=jM(Yi(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=qs(Yi(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=AD(Yi(t.styles.backgroundRepeat,A),c,i,n,r),d=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,d,p,s,a]},Xi=function(t){return GA(t)&&t.value===Pi.AUTO},al=function(t){return typeof t=="number"},jM=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(ge(s)&&a&&ge(a))return[YA(s,e.width),YA(a,e.height)];var c=al(i);if(GA(s)&&(s.value===Pi.CONTAIN||s.value===Pi.COVER)){if(al(i)){var u=e.width/e.height;return u<i!=(s.value===Pi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var d=al(n),p=al(r),B=d||p;if(Xi(s)&&(!a||Xi(a))){if(d&&p)return[n,r];if(!c&&!B)return[e.width,e.height];if(B&&c){var m=d?n:r*i,C=p?r:n/i;return[m,C]}var E=d?n:e.width,S=p?r:e.height;return[E,S]}if(c){var U=0,v=0;return ge(s)?U=YA(s,e.width):ge(a)&&(v=YA(a,e.height)),Xi(s)?U=v*i:(!a||Xi(a))&&(v=U/i),[U,v]}var M=null,F=null;if(ge(s)?M=YA(s,e.width):a&&ge(a)&&(F=YA(a,e.height)),M!==null&&(!a||Xi(a))&&(F=d&&p?M/n*r:e.height),F!==null&&Xi(s)&&(M=d&&p?F/r*n:e.width),M!==null&&F!==null)return[M,F];throw new Error("Unable to calculate background-size for element")},Yi=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},AD=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))]}},eD="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",jw="Hidden Text",tD=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=eD,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(jw)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(jw)),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}(),AC=function(){function t(A,e){this.context=A,this.options=e}return t}(),nD=1e4,rD=function(t){sn(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 tD(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(),WM(e)&&(this.ctx.globalAlpha=e.opacity),GM(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)),$w(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 rt(this,void 0,void 0,function(){var n;return Xe(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 rt(this,void 0,void 0,function(){return Xe(this,function(n){switch(n.label){case 0:if(Ee(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=wf(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=lD(e.fontFamily).join(", "),i=zs(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 rt(this,void 0,void 0,function(){var r,i,s,a,c,u,d,p,B=this;return Xe(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,d=c.middle,p=n.paintOrder,e.textBounds.forEach(function(C){p.forEach(function(E){switch(E){case 0:B.ctx.fillStyle=Se(n.color),B.renderTextWithLetterSpacing(C,n.letterSpacing,u);var S=n.textShadow;S.length&&C.text.trim().length&&(S.slice(0).reverse().forEach(function(U){B.ctx.shadowColor=Se(U.color),B.ctx.shadowOffsetX=U.offsetX.number*B.options.scale,B.ctx.shadowOffsetY=U.offsetY.number*B.options.scale,B.ctx.shadowBlur=U.blur.number,B.renderTextWithLetterSpacing(C,n.letterSpacing,u)}),B.ctx.shadowColor="",B.ctx.shadowOffsetX=0,B.ctx.shadowOffsetY=0,B.ctx.shadowBlur=0),n.textDecorationLine.length&&(B.ctx.fillStyle=Se(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(U){switch(U){case 1:B.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top+u),C.bounds.width,1);break;case 2:B.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top),C.bounds.width,1);break;case 3:B.ctx.fillRect(C.bounds.left,Math.ceil(C.bounds.top+d),C.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&C.text.trim().length&&(B.ctx.strokeStyle=Se(n.webkitTextStrokeColor),B.ctx.lineWidth=n.webkitTextStrokeWidth,B.ctx.lineJoin=window.chrome?"miter":"round",B.ctx.strokeText(C.text,C.bounds.left,C.bounds.top+u)),B.ctx.strokeStyle="",B.ctx.lineWidth=0,B.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=ol(e),s=rl(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 rt(this,void 0,void 0,function(){var n,r,i,s,a,c,v,v,u,d,p,B,F,m,C,T,E,S,U,v,M,F,T;return Xe(this,function(_){switch(_.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,_.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:_.sent(),_.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof mw))return[3,8];_.label=5;case 5:return _.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return v=_.sent(),this.renderReplacedElement(n,r,v),[3,8];case 7:return _.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof ww&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Cw))return[3,12];_.label=9;case 9:return _.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return v=_.sent(),this.renderReplacedElement(n,r,v),[3,12];case 11:return _.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Uw&&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:d=_.sent(),n.width&&n.height&&this.ctx.drawImage(d,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),_.label=14;case 14:if(n instanceof yf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===za?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=Se(Qw),this.ctx.fill(),this.ctx.restore()):n.type===qa&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Se(Qw),this.ctx.fill(),this.ctx.restore())),iD(n)&&n.value.length){switch(B=this.createFontStyle(i),F=B[0],m=B[1],C=this.fontMetrics.getMetrics(F,m).baseline,this.ctx.font=F,this.ctx.fillStyle=Se(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=oD(n.styles.textAlign),T=ol(n),E=0,n.styles.textAlign){case 1:E+=T.width/2;break;case 2:E+=T.width;break}S=T.add(E,0,0,-T.height/2+1),this.ctx.save(),this.path([new Z(T.left,T.top),new Z(T.left+T.width,T.top),new Z(T.left+T.width,T.top+T.height),new Z(T.left,T.top+T.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new eo(n.value,S),i.letterSpacing,C),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ee(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(U=n.styles.listStyleImage,U.type!==0)return[3,18];v=void 0,M=U.url,_.label=15;case 15:return _.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return v=_.sent(),this.ctx.drawImage(v,n.bounds.left-(v.width+10),n.bounds.top),[3,18];case 17:return _.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&&(F=this.createFontStyle(i)[0],this.ctx.font=F,this.ctx.fillStyle=Se(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",T=new Dn(n.bounds.left,n.bounds.top+YA(n.styles.paddingTop,n.bounds.width),n.bounds.width,jm(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new eo(e.listValue,T),i.letterSpacing,jm(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return rt(this,void 0,void 0,function(){var n,r,U,i,s,U,a,c,U,u,d,U,p,B,U,m,C,U,E,S,U;return Xe(this,function(v){switch(v.label){case 0:if(Ee(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:v.sent(),n=0,r=e.negativeZIndex,v.label=2;case 2:return n<r.length?(U=r[n],[4,this.renderStack(U)]):[3,5];case 3:v.sent(),v.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:v.sent(),i=0,s=e.nonInlineLevel,v.label=7;case 7:return i<s.length?(U=s[i],[4,this.renderNode(U)]):[3,10];case 8:v.sent(),v.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,v.label=11;case 11:return a<c.length?(U=c[a],[4,this.renderStack(U)]):[3,14];case 12:v.sent(),v.label=13;case 13:return a++,[3,11];case 14:u=0,d=e.nonPositionedInlineLevel,v.label=15;case 15:return u<d.length?(U=d[u],[4,this.renderStack(U)]):[3,18];case 16:v.sent(),v.label=17;case 17:return u++,[3,15];case 18:p=0,B=e.inlineLevel,v.label=19;case 19:return p<B.length?(U=B[p],[4,this.renderNode(U)]):[3,22];case 20:v.sent(),v.label=21;case 21:return p++,[3,19];case 22:m=0,C=e.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return m<C.length?(U=C[m],[4,this.renderStack(U)]):[3,26];case 24:v.sent(),v.label=25;case 25:return m++,[3,23];case 26:E=0,S=e.positiveZIndex,v.label=27;case 27:return E<S.length?(U=S[E],[4,this.renderStack(U)]):[3,30];case 28:v.sent(),v.label=29;case 29:return E++,[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=Vt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Vt(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 rt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Xe(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(d){var p,B,m,eA,bA,vA,aA,HA,W,C,eA,bA,vA,aA,HA,E,S,U,v,M,F,T,_,N,W,$,eA,gA,wA,aA,HA,WA,bA,vA,mA,re,ZA,$A,Be,me,Te,jA;return Xe(this,function(fe){switch(fe.label){case 0:if(d.type!==0)return[3,5];p=void 0,B=d.url,fe.label=1;case 1:return fe.trys.push([1,3,,4]),[4,i.context.cache.match(B)];case 2:return p=fe.sent(),[3,4];case 3:return fe.sent(),i.context.logger.error("Error loading background-image "+B),[3,4];case 4:return p&&(m=Hf(e,n,[p.width,p.height,p.width/p.height]),eA=m[0],bA=m[1],vA=m[2],aA=m[3],HA=m[4],W=i.ctx.createPattern(i.resizeImage(p,aA,HA),"repeat"),i.renderRepeat(eA,W,bA,vA)),[3,6];case 5:G_(d)?(C=Hf(e,n,[null,null,null]),eA=C[0],bA=C[1],vA=C[2],aA=C[3],HA=C[4],E=N_(d.angle,aA,HA),S=E[0],U=E[1],v=E[2],M=E[3],F=E[4],T=document.createElement("canvas"),T.width=aA,T.height=HA,_=T.getContext("2d"),N=_.createLinearGradient(U,M,v,F),Vm(d.stops,S).forEach(function(it){return N.addColorStop(it.stop,Se(it.color))}),_.fillStyle=N,_.fillRect(0,0,aA,HA),aA>0&&HA>0&&(W=i.ctx.createPattern(T,"repeat"),i.renderRepeat(eA,W,bA,vA))):W_(d)&&($=Hf(e,n,[null,null,null]),eA=$[0],gA=$[1],wA=$[2],aA=$[3],HA=$[4],WA=d.position.length===0?[nf]:d.position,bA=YA(WA[0],aA),vA=YA(WA[WA.length-1],HA),mA=R_(d,bA,vA,aA,HA),re=mA[0],ZA=mA[1],re>0&&ZA>0&&($A=i.ctx.createRadialGradient(gA+bA,wA+vA,0,gA+bA,wA+vA,re),Vm(d.stops,re*2).forEach(function(it){return $A.addColorStop(it.stop,Se(it.color))}),i.path(eA),i.ctx.fillStyle=$A,re!==ZA?(Be=e.bounds.left+.5*e.bounds.width,me=e.bounds.top+.5*e.bounds.height,Te=ZA/re,jA=1/Te,i.ctx.save(),i.ctx.translate(Be,me),i.ctx.transform(1,0,0,Te,0,0),i.ctx.translate(-Be,-me),i.ctx.fillRect(gA,jA*(wA-me)+me,aA,HA*jA),i.ctx.restore()):i.ctx.fill())),fe.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 rt(this,void 0,void 0,function(){return Xe(this,function(i){return this.path(qw(r,n)),this.ctx.fillStyle=Se(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return rt(this,void 0,void 0,function(){var s,a;return Xe(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=XM(i,r),this.path(s),this.ctx.fillStyle=Se(e),this.ctx.fill(),a=YM(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return rt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,d,p=this;return Xe(this,function(B){switch(B.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!yr(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=sD(Yi(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),yr(n.backgroundColor)||(this.ctx.fillStyle=Se(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:B.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){p.ctx.save();var C=nl(e.curves),E=m.inset?0:nD,S=$M(C,-E+(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?(p.path(C),p.ctx.clip(),p.mask(S)):(p.mask(C),p.ctx.clip(),p.path(S)),p.ctx.shadowOffsetX=m.offsetX.number+E,p.ctx.shadowOffsetY=m.offsetY.number,p.ctx.shadowColor=Se(m.color),p.ctx.shadowBlur=m.blur.number,p.ctx.fillStyle=m.inset?Se(m.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),B.label=2;case 2:a=0,c=0,u=i,B.label=3;case 3:return c<u.length?(d=u[c],d.style!==0&&!yr(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return B.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,a,e.curves,3)];case 6:return B.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,a,e.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,a,e.curves)];case 10:B.sent(),B.label=11;case 11:a++,B.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return rt(this,void 0,void 0,function(){var a,c,u,d,p,B,m,C,E,S,U,v,M,F,T,_,T,_;return Xe(this,function(N){return this.ctx.save(),a=zM(i,r),c=qw(i,r),s===2&&(this.path(c),this.ctx.clip()),Vt(c[0])?(u=c[0].start.x,d=c[0].start.y):(u=c[0].x,d=c[0].y),Vt(c[1])?(p=c[1].end.x,B=c[1].end.y):(p=c[1].x,B=c[1].y),r===0||r===2?m=Math.abs(u-p):m=Math.abs(d-B),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),C=n<3?n*3:n*2,E=n<3?n*2:n,s===3&&(C=n,E=n),S=!0,m<=C*2?S=!1:m<=C*2+E?(U=m/(2*C+E),C*=U,E*=U):(v=Math.floor((m+E)/(C+E)),M=(m-v*C)/(v-1),F=(m-(v+1)*C)/v,E=F<=0||Math.abs(E-M)<Math.abs(E-F)?M:F),S&&(s===3?this.ctx.setLineDash([0,C+E]):this.ctx.setLineDash([C,E])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Se(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Vt(c[0])&&(T=c[3],_=c[0],this.ctx.beginPath(),this.formatPath([new Z(T.end.x,T.end.y),new Z(_.start.x,_.start.y)]),this.ctx.stroke()),Vt(c[1])&&(T=c[1],_=c[2],this.ctx.beginPath(),this.formatPath([new Z(T.end.x,T.end.y),new Z(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return rt(this,void 0,void 0,function(){var n;return Xe(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=JM(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(AC),iD=function(t){return t instanceof Fw||t instanceof Ew?!0:t instanceof yf&&t.type!==qa&&t.type!==za},sD=function(t,A){switch(t){case 0:return nl(A);case 2:return KM(A);case 1:default:return rl(A)}},oD=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},aD=["-apple-system","system-ui"],lD=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return aD.indexOf(A)===-1}):t},cD=function(t){sn(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 rt(this,void 0,void 0,function(){var n,r;return Xe(this,function(i){switch(i.label){case 0:return n=mf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,uD(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Se(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}(AC),uD=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))})},fD=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,ga([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,ga([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,ga([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,ga([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),dD=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new fD({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new _M(this,A)}return t.instanceCount=1,t}(),hD=function(t,A){return A===void 0&&(A={}),pD(t,A)};typeof window<"u"&&Ww.setContext(window);var pD=function(t,A){return rt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,d,p,B,m,C,E,S,U,v,M,F,T,N,_,N,W,$,eA,gA,wA,aA,HA,WA,bA,vA,mA,re,ZA,$A,Be,me,Te;return Xe(this,function(jA){switch(jA.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:(W=A.allowTaint)!==null&&W!==void 0?W:!1,imageTimeout:($=A.imageTimeout)!==null&&$!==void 0?$:15e3,proxy:A.proxy,useCORS:(eA=A.useCORS)!==null&&eA!==void 0?eA:!1},i=Mu({logging:(gA=A.logging)!==null&&gA!==void 0?gA:!0,cache:A.cache},r),s={windowWidth:(wA=A.windowWidth)!==null&&wA!==void 0?wA:n.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:n.innerHeight,scrollX:(HA=A.scrollX)!==null&&HA!==void 0?HA:n.pageXOffset,scrollY:(WA=A.scrollY)!==null&&WA!==void 0?WA:n.pageYOffset},a=new Dn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new dD(i,a),u=(bA=A.foreignObjectRendering)!==null&&bA!==void 0?bA:!1,d={allowTaint:(vA=A.allowTaint)!==null&&vA!==void 0?vA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new Pw(c,t,d),B=p.clonedReferenceElement,B?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=jA.sent(),C=Ef(B)||gM(B)?$x(B.ownerDocument):Ba(c,B),E=C.width,S=C.height,U=C.left,v=C.top,M=gD(c,B,A.backgroundColor),F={canvas:A.canvas,backgroundColor:M,scale:(re=(mA=A.scale)!==null&&mA!==void 0?mA:n.devicePixelRatio)!==null&&re!==void 0?re:1,x:((ZA=A.x)!==null&&ZA!==void 0?ZA:0)+U,y:(($A=A.y)!==null&&$A!==void 0?$A:0)+v,width:(Be=A.width)!==null&&Be!==void 0?Be:Math.ceil(E),height:(me=A.height)!==null&&me!==void 0?me:Math.ceil(S)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new cD(c,F),[4,N.render(B)]):[3,3];case 2:return T=jA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+U+","+v+" with size "+E+"x"+S+" using computed rendering"),c.logger.debug("Starting DOM parsing"),_=vw(c,B),M===_.styles.backgroundColor&&(_.styles.backgroundColor=Nn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),N=new rD(c,F),[4,N.render(_)];case 4:T=jA.sent(),jA.label=5;case 5:return(!((Te=A.removeContainer)!==null&&Te!==void 0)||Te)&&(Pw.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,T]}})})},gD=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?Zs(t,getComputedStyle(n.documentElement).backgroundColor):Nn.TRANSPARENT,i=n.body?Zs(t,getComputedStyle(n.body).backgroundColor):Nn.TRANSPARENT,s=typeof e=="string"?Zs(t,e):e===null?Nn.TRANSPARENT:4294967295;return A===n.documentElement?yr(r)?yr(i)?s:i:r:s};const BD=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref(),r=h.ref(""),i=h.ref();async function s(){if(n.value){const c=n.value,d=(await hD(c.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:c.offsetWidth,height:c.offsetHeight})).toDataURL();if(A("update:modelValue",d),e.debug){const p=new Image;p.src=d,document.body.appendChild(p)}return d}return""}const a=Ds.debounce(async()=>{r.value=await s()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const c=n.value;e.renderUpdates&&(i.value=new MutationObserver(async u=>{a()}),i.value.observe(c,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{a()},500)}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:n,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(c.$slots,"default")],6))}}),mD={class:"link-sharing"},wD={key:0,class:"link-sharing__links container"},CD={class:"row"},yD={key:0,class:"col-12 col-md-6"},QD=["href"],ED={class:"caption"},FD={key:1,class:"col-12 col-md-6"},UD=["href"],bD={class:"caption"},vD={key:2,class:"col-12 col-md-6"},ID={class:"caption"},SD={key:3,class:"col-12 col-md-6"},TD=["href"],xD={class:"caption"},HD={key:4,class:"col-12 col-md-6"},_D=["href"],LD={class:"caption"},OD={key:5,class:"col-12 col-md-6"},MD=["onClick"],DD={class:"caption"},kD={key:6,class:"col-12 col-md-6"},ND=["href"],RD={class:"caption"},KD={key:1,class:"link-sharing__instructions pt-5"},VD={class:"row"},PD={class:"col-12 text-center py-0"},GD={class:"mb-5"},WD=t=>t.replace(/<(?:.|\n)*?>/gm,""),$D=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:String,hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,twitter:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0}}},setup(t){const A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>WD(A.text)),i=h.computed(()=>Boolean(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=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",mD,[e.value?(h.openBlock(),h.createElementBlock("div",KD,[h.createElementVNode("div",VD,[h.createElementVNode("div",PD,[h.createElementVNode("div",GD,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",wD,[h.createElementVNode("div",CD,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",yD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${h.unref(n)}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",ED,h.toDisplayString(a.$t("sharing.facebook")),1)],8,QD)])):h.createCommentVNode("",!0),t.services.twitter?(h.openBlock(),h.createElementBlock("div",FD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://twitter.com/share?text=${t.subject}&url=${h.unref(n)}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"twitter"}),h.createElementVNode("span",bD,h.toDisplayString(a.$t("sharing.twitter")),1)],8,UD)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",vD,[h.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(d=>e.value=!e.value,["prevent"])),target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",ID,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",SD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${h.unref(n)}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",xD,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,TD)])):h.createCommentVNode("",!0),t.services.whatsapp&&h.unref(i)?(h.openBlock(),h.createElementBlock("div",HD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${h.unref(n)}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",LD,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,_D)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",OD,[h.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"]),target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",DD,h.toDisplayString(a.$t("sharing.clipboard")),1)],8,MD)])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",kD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${h.unref(r)}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",RD,h.toDisplayString(a.$t("sharing.mailto")),1)],8,ND)])):h.createCommentVNode("",!0)])]))])}}}),Y2="",JD={class:"base-form"},XD=["onSubmit"],YD=h.defineComponent({__name:"base-form",props:{id:null,name:null,variant:null,disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",JD,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],40,XD)]))}}),z2="";MA.Accordion=Zy,MA.AccordionItem=Jy,MA.AssetUploader=bx,MA.BaseButton=AQ,MA.BaseCamera=hT,MA.BaseCarousel=ZB,MA.BaseForm=YD,MA.BaseHeadline=Dy,MA.BaseInput=rQ,MA.BaseParagraph=Ny,MA.CheckGroup=gQ,MA.DomRenderer=BD,MA.FileUpload=px,MA.InputCheckbox=fQ,MA.InputColor=ZI,MA.InputDropdown=$S,MA.InputFile=SQ,MA.InputTextarea=aQ,MA.LinkSharing=$D,MA.LoadingSpinner=My,MA.MediaThumbnails=Mx,MA.ProgressSteps=Wx,MA.RadioGroup=yQ,MA.RteEditor=XI,MA.SvgIcon=Ty,MA.UploadGroup=qB,Object.defineProperty(MA,Symbol.toStringTag,{value:"Module"})});
|