var bu=Object.defineProperty;var ql=Object.getOwnPropertySymbols;var _u=Object.prototype.hasOwnProperty,Ou=Object.prototype.propertyIsEnumerable;var Dl=(e,t,n)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bl=(e,t)=>{for(var n in t||(t={}))_u.call(t,n)&&Dl(e,n,t[n]);if(ql)for(var n of ql(t))Ou.call(t,n)&&Dl(e,n,t[n]);return e};function mi(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Eu="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",wu=mi(Eu),Au="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tu=mi(Au);function Sa(e){return!!e||e===""}function Er(e){if(he(e)){const t={};for(let n=0;n{if(n){const r=n.split(Nu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wr(e){let t="";if(ke(e))t=e;else if(he(e))for(let n=0;nVt(n,t))}const Lu=e=>ke(e)?e:e==null?"":he(e)||Le(e)&&(e.toString===Pa||!me(e.toString))?JSON.stringify(e,ka,2):String(e),ka=(e,t)=>t&&t.__v_isRef?ka(e,t.value):Rn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:gn(t)?{[`Set(${t.size})`]:[...t.values()]}:Le(t)&&!he(t)&&!La(t)?String(t):t,xe={},Ln=[],vt=()=>{},Ru=()=>!1,Iu=/^on[^a-z]/,Ar=e=>Iu.test(e),el=e=>e.startsWith("onUpdate:"),Pe=Object.assign,tl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cu=Object.prototype.hasOwnProperty,we=(e,t)=>Cu.call(e,t),he=Array.isArray,Rn=e=>Tr(e)==="[object Map]",gn=e=>Tr(e)==="[object Set]",Fl=e=>Tr(e)==="[object Date]",me=e=>typeof e=="function",ke=e=>typeof e=="string",yr=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",nl=e=>Le(e)&&me(e.then)&&me(e.catch),Pa=Object.prototype.toString,Tr=e=>Pa.call(e),Mu=e=>Tr(e).slice(8,-1),La=e=>Tr(e)==="[object Object]",rl=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ar=mi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_i=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ju=/-(\w)/g,lt=_i(e=>e.replace(ju,(t,n)=>n?n.toUpperCase():"")),qu=/\B([A-Z])/g,wt=_i(e=>e.replace(qu,"-$1").toLowerCase()),xr=_i(e=>e.charAt(0).toUpperCase()+e.slice(1)),sr=_i(e=>e?`on${xr(e)}`:""),jn=(e,t)=>!Object.is(e,t),In=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Wt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ul;const Du=()=>Ul||(Ul=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let nt;class il{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&nt&&(this.parent=nt,this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=nt;try{return nt=this,t()}finally{nt=n}}}on(){nt=this}off(){nt=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Ia=e=>(e.w&Zt)>0,Ca=e=>(e.n&Zt)>0,Hu=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(y==="length"||y>=r)&&d.push(p)});else switch(n!==void 0&&d.push(l.get(n)),t){case"add":he(e)?rl(n)&&d.push(l.get("length")):(d.push(l.get(fn)),Rn(e)&&d.push(l.get(jo)));break;case"delete":he(e)||(d.push(l.get(fn)),Rn(e)&&d.push(l.get(jo)));break;case"set":Rn(e)&&d.push(l.get(fn));break}if(d.length===1)d[0]&&qo(d[0]);else{const p=[];for(const y of d)y&&p.push(...y);qo(ol(p))}}function qo(e,t){const n=he(e)?e:[...e];for(const r of n)r.computed&&Kl(r);for(const r of n)r.computed||Kl(r)}function Kl(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Vu=mi("__proto__,__v_isRef,__isVue"),qa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yr)),Wu=Oi(),Zu=Oi(!1,!0),Yu=Oi(!0),Gu=Oi(!0,!0),$l=Xu();function Xu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ee(this);for(let o=0,l=this.length;o{e[t]=function(...n){mn();const r=Ee(this)[t].apply(this,n);return bn(),r}}),e}function Oi(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?$a:Ka:t?Ha:Ua).get(r))return r;const l=he(r);if(!e&&l&&we($l,i))return Reflect.get($l,i,o);const d=Reflect.get(r,i,o);return(yr(i)?qa.has(i):Vu(i))||(e||at(r,"get",i),t)?d:Me(d)?l&&rl(i)?d:d.value:Le(d)?e?al(d):Ai(d):d}}const Qu=Da(),Ju=Da(!0);function Da(e=!1){return function(n,r,i,o){let l=n[r];if(qn(l)&&Me(l)&&!Me(i))return!1;if(!e&&!qn(i)&&(ai(i)||(i=Ee(i),l=Ee(l)),!he(n)&&Me(l)&&!Me(i)))return l.value=i,!0;const d=he(n)&&rl(r)?Number(r)e,Ei=e=>Reflect.getPrototypeOf(e);function zr(e,t,n=!1,r=!1){e=e.__v_raw;const i=Ee(e),o=Ee(t);n||(t!==o&&at(i,"get",t),at(i,"get",o));const{has:l}=Ei(i),d=r?ll:n?fl:gr;if(l.call(i,t))return d(e.get(t));if(l.call(i,o))return d(e.get(o));e!==i&&e.get(t)}function Vr(e,t=!1){const n=this.__v_raw,r=Ee(n),i=Ee(e);return t||(e!==i&&at(r,"has",e),at(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wr(e,t=!1){return e=e.__v_raw,!t&&at(Ee(e),"iterate",fn),Reflect.get(e,"size",e)}function zl(e){e=Ee(e);const t=Ee(this);return Ei(t).has.call(t,e)||(t.add(e),Ct(t,"add",e,e)),this}function Vl(e,t){t=Ee(t);const n=Ee(this),{has:r,get:i}=Ei(n);let o=r.call(n,e);o||(e=Ee(e),o=r.call(n,e));const l=i.call(n,e);return n.set(e,t),o?jn(t,l)&&Ct(n,"set",e,t):Ct(n,"add",e,t),this}function Wl(e){const t=Ee(this),{has:n,get:r}=Ei(t);let i=n.call(t,e);i||(e=Ee(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Ct(t,"delete",e,void 0),o}function Zl(){const e=Ee(this),t=e.size!==0,n=e.clear();return t&&Ct(e,"clear",void 0,void 0),n}function Zr(e,t){return function(r,i){const o=this,l=o.__v_raw,d=Ee(l),p=t?ll:e?fl:gr;return!e&&at(d,"iterate",fn),l.forEach((y,v)=>r.call(i,p(y),p(v),o))}}function Yr(e,t,n){return function(...r){const i=this.__v_raw,o=Ee(i),l=Rn(o),d=e==="entries"||e===Symbol.iterator&&l,p=e==="keys"&&l,y=i[e](...r),v=n?ll:t?fl:gr;return!t&&at(o,"iterate",p?jo:fn),{next(){const{value:u,done:a}=y.next();return a?{value:u,done:a}:{value:d?[v(u[0]),v(u[1])]:v(u),done:a}},[Symbol.iterator](){return this}}}}function Dt(e){return function(...t){return e==="delete"?!1:this}}function lf(){const e={get(o){return zr(this,o)},get size(){return Wr(this)},has:Vr,add:zl,set:Vl,delete:Wl,clear:Zl,forEach:Zr(!1,!1)},t={get(o){return zr(this,o,!1,!0)},get size(){return Wr(this)},has:Vr,add:zl,set:Vl,delete:Wl,clear:Zl,forEach:Zr(!1,!0)},n={get(o){return zr(this,o,!0)},get size(){return Wr(this,!0)},has(o){return Vr.call(this,o,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:Zr(!0,!1)},r={get(o){return zr(this,o,!0,!0)},get size(){return Wr(this,!0)},has(o){return Vr.call(this,o,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:Zr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Yr(o,!1,!1),n[o]=Yr(o,!0,!1),t[o]=Yr(o,!1,!0),r[o]=Yr(o,!0,!0)}),[e,n,t,r]}const[af,sf,uf,ff]=lf();function wi(e,t){const n=t?e?ff:uf:e?sf:af;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(we(n,i)&&i in r?n:r,i,o)}const cf={get:wi(!1,!1)},hf={get:wi(!1,!0)},df={get:wi(!0,!1)},pf={get:wi(!0,!0)},Ua=new WeakMap,Ha=new WeakMap,Ka=new WeakMap,$a=new WeakMap;function vf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yf(e){return e.__v_skip||!Object.isExtensible(e)?0:vf(Mu(e))}function Ai(e){return qn(e)?e:Ti(e,!1,Ba,cf,Ua)}function za(e){return Ti(e,!1,rf,hf,Ha)}function al(e){return Ti(e,!0,Fa,df,Ka)}function gf(e){return Ti(e,!0,of,pf,$a)}function Ti(e,t,n,r,i){if(!Le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const l=yf(e);if(l===0)return e;const d=new Proxy(e,l===2?r:n);return i.set(e,d),d}function cn(e){return qn(e)?cn(e.__v_raw):!!(e&&e.__v_isReactive)}function qn(e){return!!(e&&e.__v_isReadonly)}function ai(e){return!!(e&&e.__v_isShallow)}function sl(e){return cn(e)||qn(e)}function Ee(e){const t=e&&e.__v_raw;return t?Ee(t):e}function ul(e){return li(e,"__v_skip",!0),e}const gr=e=>Le(e)?Ai(e):e,fl=e=>Le(e)?al(e):e;function cl(e){$t&&dt&&(e=Ee(e),ja(e.dep||(e.dep=ol())))}function xi(e,t){e=Ee(e),e.dep&&qo(e.dep)}function Me(e){return!!(e&&e.__v_isRef===!0)}function Cn(e){return Va(e,!1)}function mf(e){return Va(e,!0)}function Va(e,t){return Me(e)?e:new bf(e,t)}class bf{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ee(t),this._value=n?t:gr(t)}get value(){return cl(this),this._value}set value(t){t=this.__v_isShallow?t:Ee(t),jn(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:gr(t),xi(this))}}function _f(e){xi(e)}function Wa(e){return Me(e)?e.value:e}const Of={get:(e,t,n)=>Wa(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Me(i)&&!Me(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function hl(e){return cn(e)?e:new Proxy(e,Of)}class Ef{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>cl(this),()=>xi(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function wf(e){return new Ef(e)}function Af(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=Za(e,n);return t}class Tf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Za(e,t,n){const r=e[t];return Me(r)?r:new Tf(e,t,n)}class xf{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Nr(t,()=>{this._dirty||(this._dirty=!0,xi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Ee(this);return cl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Nf(e,t,n=!1){let r,i;const o=me(e);return o?(r=e,i=vt):(r=e.get,i=e.set),new xf(r,i,o||!i,n)}const ur=[];function Ya(e,...t){mn();const n=ur.length?ur[ur.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Sf();if(r)At(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${Us(n,o.type)}>`).join(` `),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(` `,...kf(i)),console.warn(...o)}bn()}function Sf(){let e=ur[ur.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function kf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` `],...Pf(n))}),t}function Pf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${Us(e.component,e.type,r)}`,o=">"+n;return e.props?[i,...Lf(e.props),o]:[i+o]}function Lf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ga(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ga(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Me(t)?(t=Ga(e,Ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):me(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ee(t),n?t:[`${e}=`,t])}function At(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){_n(o,t,n)}return i}function ot(e,t,n,r){if(me(e)){const o=At(e,t,n,r);return o&&nl(o)&&o.catch(l=>{_n(l,t,n)}),o}const i=[];for(let o=0;o>>1;mr(it[r])Rt&&it.splice(t,1)}function Ja(e,t,n,r){he(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),Qa()}function Mf(e){Ja(e,or,fr,Sn)}function vl(e){Ja(e,Ut,cr,kn)}function Si(e,t=null){if(fr.length){for(Bo=t,or=[...new Set(fr)],fr.length=0,Sn=0;Snmr(n)-mr(r)),kn=0;kne.id==null?1/0:e.id;function es(e){Do=!1,si=!0,Si(e),it.sort((n,r)=>mr(n)-mr(r));const t=vt;try{for(Rt=0;RtPn.emit(i,...o)),Gr=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{ts(o,t)}),setTimeout(()=>{Pn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gr=[])},3e3)):Gr=[]}function jf(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xe;let i=n;const o=t.startsWith("update:"),l=o&&t.slice(7);if(l&&l in r){const v=`${l==="modelValue"?"model":l}Modifiers`,{number:u,trim:a}=r[v]||xe;a&&(i=n.map(f=>f.trim())),u&&(i=n.map(Wt))}let d,p=r[d=sr(t)]||r[d=sr(lt(t))];!p&&o&&(p=r[d=sr(wt(t))]),p&&ot(p,e,6,i);const y=r[d+"Once"];if(y){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,ot(y,e,6,i)}}function ns(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let l={},d=!1;if(!me(e)){const p=y=>{const v=ns(y,t,!0);v&&(d=!0,Pe(l,v))};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}return!o&&!d?(r.set(e,null),null):(he(o)?o.forEach(p=>l[p]=null):Pe(l,o),r.set(e,l),l)}function ki(e,t){return!e||!Ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),we(e,t[0].toLowerCase()+t.slice(1))||we(e,wt(t))||we(e,t))}let We=null,Pi=null;function br(e){const t=We;return We=e,Pi=e&&e.type.__scopeId||null,t}function qf(e){Pi=e}function Df(){Pi=null}const Bf=e=>yl;function yl(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Vo(-1);const o=br(t),l=e(...i);return br(o),r._d&&Vo(1),l};return r._n=!0,r._c=!0,r._d=!0,r}function ii(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[l],slots:d,attrs:p,emit:y,render:v,renderCache:u,data:a,setupState:f,ctx:_,inheritAttrs:g}=e;let b,h;const s=br(e);try{if(n.shapeFlag&4){const c=i||r;b=rt(v.call(c,c,u,o,f,a,_)),h=p}else{const c=t;b=rt(c.length>1?c(o,{attrs:p,slots:d,emit:y}):c(o,null)),h=t.props?p:Uf(p)}}catch(c){pr.length=0,_n(c,e,1),b=Se(Ze)}let m=b;if(h&&g!==!1){const c=Object.keys(h),{shapeFlag:E}=m;c.length&&E&7&&(l&&c.some(el)&&(h=Hf(h,l)),m=Tt(m,h))}return n.dirs&&(m=Tt(m),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),b=m,br(s),b}function Ff(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Ar(n))&&((t||(t={}))[n]=e[n]);return t},Hf=(e,t)=>{const n={};for(const r in e)(!el(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Kf(e,t,n){const{props:r,children:i,component:o}=e,{props:l,children:d,patchFlag:p}=t,y=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&p>=0){if(p&1024)return!0;if(p&16)return r?Yl(r,l,y):!!l;if(p&8){const v=t.dynamicProps;for(let u=0;ue.__isSuspense,$f={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,l,d,p,y){e==null?Vf(t,n,r,i,o,l,d,p,y):Wf(e,t,n,r,i,l,d,p,y)},hydrate:Zf,create:ml,normalize:Yf},zf=$f;function _r(e,t){const n=e.props&&e.props[t];me(n)&&n()}function Vf(e,t,n,r,i,o,l,d,p){const{p:y,o:{createElement:v}}=p,u=v("div"),a=e.suspense=ml(e,i,r,t,u,n,o,l,d,p);y(null,a.pendingBranch=e.ssContent,u,null,r,a,o,l),a.deps>0?(_r(e,"onPending"),_r(e,"onFallback"),y(null,e.ssFallback,t,n,r,null,o,l),Mn(a,e.ssFallback)):a.resolve()}function Wf(e,t,n,r,i,o,l,d,{p,um:y,o:{createElement:v}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const a=t.ssContent,f=t.ssFallback,{activeBranch:_,pendingBranch:g,isInFallback:b,isHydrating:h}=u;if(g)u.pendingBranch=a,Ot(a,g)?(p(g,a,u.hiddenContainer,null,i,u,o,l,d),u.deps<=0?u.resolve():b&&(p(_,f,n,r,i,null,o,l,d),Mn(u,f))):(u.pendingId++,h?(u.isHydrating=!1,u.activeBranch=g):y(g,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=v("div"),b?(p(null,a,u.hiddenContainer,null,i,u,o,l,d),u.deps<=0?u.resolve():(p(_,f,n,r,i,null,o,l,d),Mn(u,f))):_&&Ot(a,_)?(p(_,a,n,r,i,u,o,l,d),u.resolve(!0)):(p(null,a,u.hiddenContainer,null,i,u,o,l,d),u.deps<=0&&u.resolve()));else if(_&&Ot(a,_))p(_,a,n,r,i,u,o,l,d),Mn(u,a);else if(_r(t,"onPending"),u.pendingBranch=a,u.pendingId++,p(null,a,u.hiddenContainer,null,i,u,o,l,d),u.deps<=0)u.resolve();else{const{timeout:s,pendingId:m}=u;s>0?setTimeout(()=>{u.pendingId===m&&u.fallback(f)},s):s===0&&u.fallback(f)}}function ml(e,t,n,r,i,o,l,d,p,y,v=!1){const{p:u,m:a,um:f,n:_,o:{parentNode:g,remove:b}}=y,h=Wt(e.props&&e.props.timeout),s={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof h=="number"?h:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(m=!1){const{vnode:c,activeBranch:E,pendingBranch:T,pendingId:x,effects:A,parentComponent:P,container:S}=s;if(s.isHydrating)s.isHydrating=!1;else if(!m){const k=E&&T.transition&&T.transition.mode==="out-in";k&&(E.transition.afterLeave=()=>{x===s.pendingId&&a(T,S,R,0)});let{anchor:R}=s;E&&(R=_(E),f(E,P,s,!0)),k||a(T,S,R,0)}Mn(s,T),s.pendingBranch=null,s.isInFallback=!1;let w=s.parent,N=!1;for(;w;){if(w.pendingBranch){w.effects.push(...A),N=!0;break}w=w.parent}N||vl(A),s.effects=[],_r(c,"onResolve")},fallback(m){if(!s.pendingBranch)return;const{vnode:c,activeBranch:E,parentComponent:T,container:x,isSVG:A}=s;_r(c,"onFallback");const P=_(E),S=()=>{!s.isInFallback||(u(null,m,x,P,T,null,A,d,p),Mn(s,m))},w=m.transition&&m.transition.mode==="out-in";w&&(E.transition.afterLeave=S),s.isInFallback=!0,f(E,T,null,!0),w||S()},move(m,c,E){s.activeBranch&&a(s.activeBranch,m,c,E),s.container=m},next(){return s.activeBranch&&_(s.activeBranch)},registerDep(m,c){const E=!!s.pendingBranch;E&&s.deps++;const T=m.vnode.el;m.asyncDep.catch(x=>{_n(x,m,0)}).then(x=>{if(m.isUnmounted||s.isUnmounted||s.pendingId!==m.suspenseId)return;m.asyncResolved=!0;const{vnode:A}=m;Wo(m,x,!1),T&&(A.el=T);const P=!T&&m.subTree.el;c(m,A,g(T||m.subTree.el),T?null:_(m.subTree),s,l,p),P&&b(P),gl(m,A.el),E&&--s.deps===0&&s.resolve()})},unmount(m,c){s.isUnmounted=!0,s.activeBranch&&f(s.activeBranch,n,m,c),s.pendingBranch&&f(s.pendingBranch,n,m,c)}};return s}function Zf(e,t,n,r,i,o,l,d,p){const y=t.suspense=ml(t,r,n,e.parentNode,document.createElement("div"),null,i,o,l,d,!0),v=p(e,y.pendingBranch=t.ssContent,n,y,o,l);return y.deps===0&&y.resolve(),v}function Yf(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Gl(r?n.default:n),e.ssFallback=r?Gl(n.fallback):Se(Ze)}function Gl(e){let t;if(me(e)){const n=yn&&e._c;n&&(e._d=!1,ji()),e=e(),n&&(e._d=!0,t=tt,Ls())}return he(e)&&(e=Ff(e)),e=rt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function is(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):vl(e)}function Mn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,gl(r,i))}function os(e,t){if(Ce){let n=Ce.provides;const r=Ce.parent&&Ce.parent.provides;r===n&&(n=Ce.provides=Object.create(r)),n[e]=t}}function hr(e,t,n=!1){const r=Ce||We;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&me(t)?t.call(r.proxy):t}}function Gf(e,t){return Sr(e,null,t)}function ls(e,t){return Sr(e,null,{flush:"post"})}function Xf(e,t){return Sr(e,null,{flush:"sync"})}const Xl={};function hn(e,t,n){return Sr(e,t,n)}function Sr(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:l}=xe){const d=Ce;let p,y=!1,v=!1;if(Me(e)?(p=()=>e.value,y=ai(e)):cn(e)?(p=()=>e,r=!0):he(e)?(v=!0,y=e.some(h=>cn(h)||ai(h)),p=()=>e.map(h=>{if(Me(h))return h.value;if(cn(h))return un(h);if(me(h))return At(h,d,2)})):me(e)?t?p=()=>At(e,d,2):p=()=>{if(!(d&&d.isUnmounted))return u&&u(),ot(e,d,3,[a])}:p=vt,t&&r){const h=p;p=()=>un(h())}let u,a=h=>{u=b.onStop=()=>{At(h,d,4)}};if(Fn)return a=vt,t?n&&ot(t,d,3,[p(),v?[]:void 0,a]):p(),vt;let f=v?[]:Xl;const _=()=>{if(!!b.active)if(t){const h=b.run();(r||y||(v?h.some((s,m)=>jn(s,f[m])):jn(h,f)))&&(u&&u(),ot(t,d,3,[h,f===Xl?void 0:f,a]),f=h)}else b.run()};_.allowRecurse=!!t;let g;i==="sync"?g=_:i==="post"?g=()=>Ue(_,d&&d.suspense):g=()=>Mf(_);const b=new Nr(p,g);return t?n?_():f=b.run():i==="post"?Ue(b.run.bind(b),d&&d.suspense):b.run(),()=>{b.stop(),d&&d.scope&&tl(d.scope.effects,b)}}function Qf(e,t,n){const r=this.proxy,i=ke(e)?e.includes(".")?as(r,e):()=>r[e]:e.bind(r,r);let o;me(t)?o=t:(o=t.handler,n=t);const l=Ce;Gt(this);const d=Sr(i,o.bind(r),n);return l?Gt(l):zt(),d}function as(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{un(n,t)});else if(La(e))for(const n in e)un(e[n],t);return e}function bl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hn(()=>{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}const st=[Function,Array],Jf={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:st,onEnter:st,onAfterEnter:st,onEnterCancelled:st,onBeforeLeave:st,onLeave:st,onAfterLeave:st,onLeaveCancelled:st,onBeforeAppear:st,onAppear:st,onAfterAppear:st,onAppearCancelled:st},setup(e,{slots:t}){const n=Qt(),r=bl();let i;return()=>{const o=t.default&&Li(t.default(),!0);if(!o||!o.length)return;let l=o[0];if(o.length>1){for(const g of o)if(g.type!==Ze){l=g;break}}const d=Ee(e),{mode:p}=d;if(r.isLeaving)return To(l);const y=Ql(l);if(!y)return To(l);const v=Dn(y,d,r,n);vn(y,v);const u=n.subTree,a=u&&Ql(u);let f=!1;const{getTransitionKey:_}=y.type;if(_){const g=_();i===void 0?i=g:g!==i&&(i=g,f=!0)}if(a&&a.type!==Ze&&(!Ot(y,a)||f)){const g=Dn(a,d,r,n);if(vn(a,g),p==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update()},To(l);p==="in-out"&&y.type!==Ze&&(g.delayLeave=(b,h,s)=>{const m=ss(r,a);m[String(a.key)]=a,b._leaveCb=()=>{h(),b._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=s})}return l}}},_l=Jf;function ss(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Dn(e,t,n,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:d,onEnter:p,onAfterEnter:y,onEnterCancelled:v,onBeforeLeave:u,onLeave:a,onAfterLeave:f,onLeaveCancelled:_,onBeforeAppear:g,onAppear:b,onAfterAppear:h,onAppearCancelled:s}=t,m=String(e.key),c=ss(n,e),E=(A,P)=>{A&&ot(A,r,9,P)},T=(A,P)=>{const S=P[1];E(A,P),he(A)?A.every(w=>w.length<=1)&&S():A.length<=1&&S()},x={mode:o,persisted:l,beforeEnter(A){let P=d;if(!n.isMounted)if(i)P=g||d;else return;A._leaveCb&&A._leaveCb(!0);const S=c[m];S&&Ot(e,S)&&S.el._leaveCb&&S.el._leaveCb(),E(P,[A])},enter(A){let P=p,S=y,w=v;if(!n.isMounted)if(i)P=b||p,S=h||y,w=s||v;else return;let N=!1;const k=A._enterCb=R=>{N||(N=!0,R?E(w,[A]):E(S,[A]),x.delayedLeave&&x.delayedLeave(),A._enterCb=void 0)};P?T(P,[A,k]):k()},leave(A,P){const S=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return P();E(u,[A]);let w=!1;const N=A._leaveCb=k=>{w||(w=!0,P(),k?E(_,[A]):E(f,[A]),A._leaveCb=void 0,c[S]===e&&delete c[S])};c[S]=e,a?T(a,[A,N]):N()},clone(A){return Dn(A,t,n,r)}};return x}function To(e){if(kr(e))return e=Tt(e),e.children=null,e}function Ql(e){return kr(e)?e.children?e.children[0]:void 0:e}function vn(e,t){e.shapeFlag&6&&e.component?vn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Li(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;function ec(e){me(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:l=!0,onError:d}=e;let p=null,y,v=0;const u=()=>(v++,p=null,a()),a=()=>{let f;return p||(f=p=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),d)return new Promise((g,b)=>{d(_,()=>g(u()),()=>b(_),v+1)});throw _}).then(_=>f!==p&&p?p:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),y=_,_)))};return Ri({name:"AsyncComponentWrapper",__asyncLoader:a,get __asyncResolved(){return y},setup(){const f=Ce;if(y)return()=>xo(y,f);const _=s=>{p=null,_n(s,f,13,!r)};if(l&&f.suspense||Fn)return a().then(s=>()=>xo(s,f)).catch(s=>(_(s),()=>r?Se(r,{error:s}):null));const g=Cn(!1),b=Cn(),h=Cn(!!i);return i&&setTimeout(()=>{h.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!b.value){const s=new Error(`Async component timed out after ${o}ms.`);_(s),b.value=s}},o),a().then(()=>{g.value=!0,f.parent&&kr(f.parent.vnode)&&pl(f.parent.update)}).catch(s=>{_(s),b.value=s}),()=>{if(g.value&&y)return xo(y,f);if(b.value&&r)return Se(r,{error:b.value});if(n&&!h.value)return Se(n)}}})}function xo(e,{vnode:{ref:t,props:n,children:r,shapeFlag:i},parent:o}){const l=Se(e,n,r);return l.ref=t,l}const kr=e=>e.type.__isKeepAlive,tc={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Qt(),r=n.ctx;if(!r.renderer)return()=>{const s=t.default&&t.default();return s&&s.length===1?s[0]:s};const i=new Map,o=new Set;let l=null;const d=n.suspense,{renderer:{p,m:y,um:v,o:{createElement:u}}}=r,a=u("div");r.activate=(s,m,c,E,T)=>{const x=s.component;y(s,m,c,0,d),p(x.vnode,s,m,c,x,d,E,s.slotScopeIds,T),Ue(()=>{x.isDeactivated=!1,x.a&&In(x.a);const A=s.props&&s.props.onVnodeMounted;A&&Je(A,x.parent,s)},d)},r.deactivate=s=>{const m=s.component;y(s,a,null,1,d),Ue(()=>{m.da&&In(m.da);const c=s.props&&s.props.onVnodeUnmounted;c&&Je(c,m.parent,s),m.isDeactivated=!0},d)};function f(s){No(s),v(s,n,d,!0)}function _(s){i.forEach((m,c)=>{const E=pi(m.type);E&&(!s||!s(E))&&g(c)})}function g(s){const m=i.get(s);!l||m.type!==l.type?f(m):l&&No(l),i.delete(s),o.delete(s)}hn(()=>[e.include,e.exclude],([s,m])=>{s&&_(c=>lr(s,c)),m&&_(c=>!lr(m,c))},{flush:"post",deep:!0});let b=null;const h=()=>{b!=null&&i.set(b,So(n.subTree))};return Hn(h),Ci(h),Pr(()=>{i.forEach(s=>{const{subTree:m,suspense:c}=n,E=So(m);if(s.type===E.type){No(E);const T=E.component.da;T&&Ue(T,c);return}f(s)})}),()=>{if(b=null,!t.default)return null;const s=t.default(),m=s[0];if(s.length>1)return l=null,s;if(!Yt(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return l=null,m;let c=So(m);const E=c.type,T=pi(dn(c)?c.type.__asyncResolved||{}:E),{include:x,exclude:A,max:P}=e;if(x&&(!T||!lr(x,T))||A&&T&&lr(A,T))return l=c,m;const S=c.key==null?E:c.key,w=i.get(S);return c.el&&(c=Tt(c),m.shapeFlag&128&&(m.ssContent=c)),b=S,w?(c.el=w.el,c.component=w.component,c.transition&&vn(c,c.transition),c.shapeFlag|=512,o.delete(S),o.add(S)):(o.add(S),P&&o.size>parseInt(P,10)&&g(o.values().next().value)),c.shapeFlag|=256,l=c,rs(m.type)?m:c}}},nc=tc;function lr(e,t){return he(e)?e.some(n=>lr(n,t)):ke(e)?e.split(",").includes(t):e.test?e.test(t):!1}function us(e,t){cs(e,"a",t)}function fs(e,t){cs(e,"da",t)}function cs(e,t,n=Ce){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ii(t,r,n),n){let i=n.parent;for(;i&&i.parent;)kr(i.parent.vnode)&&rc(r,t,n,i),i=i.parent}}function rc(e,t,n,r){const i=Ii(t,e,r,!0);Mi(()=>{tl(r[t],i)},n)}function No(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function So(e){return e.shapeFlag&128?e.ssContent:e}function Ii(e,t,n=Ce,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;mn(),Gt(n);const d=ot(t,n,e,l);return zt(),bn(),d});return r?i.unshift(o):i.push(o),o}}const Mt=e=>(t,n=Ce)=>(!Fn||e==="sp")&&Ii(e,t,n),hs=Mt("bm"),Hn=Mt("m"),ds=Mt("bu"),Ci=Mt("u"),Pr=Mt("bum"),Mi=Mt("um"),ps=Mt("sp"),vs=Mt("rtg"),ys=Mt("rtc");function gs(e,t=Ce){Ii("ec",e,t)}function ic(e,t){const n=We;if(n===null)return e;const r=Di(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;ot(l,d,void 0,o&&o[d]));else{const l=Object.keys(e);i=new Array(l.length);for(let d=0,p=l.length;dYt(t)?!(t.type===Ze||t.type===He&&!bs(t.children)):!0)?e:null}function hc(e){const t={};for(const n in e)t[sr(n)]=e[n];return t}const Fo=e=>e?qs(e)?Di(e)||e.proxy:Fo(e.parent):null,fi=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fo(e.parent),$root:e=>Fo(e.root),$emit:e=>e.emit,$options:e=>Os(e),$forceUpdate:e=>e.f||(e.f=()=>pl(e.update)),$nextTick:e=>e.n||(e.n=Ni.bind(e.proxy)),$watch:e=>Qf.bind(e)}),Uo={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:d,appContext:p}=e;let y;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(r!==xe&&we(r,t))return l[t]=1,r[t];if(i!==xe&&we(i,t))return l[t]=2,i[t];if((y=e.propsOptions[0])&&we(y,t))return l[t]=3,o[t];if(n!==xe&&we(n,t))return l[t]=4,n[t];Ho&&(l[t]=0)}}const v=fi[t];let u,a;if(v)return t==="$attrs"&&at(e,"get",t),v(e);if((u=d.__cssModules)&&(u=u[t]))return u;if(n!==xe&&we(n,t))return l[t]=4,n[t];if(a=p.config.globalProperties,we(a,t))return a[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return i!==xe&&we(i,t)?(i[t]=n,!0):r!==xe&&we(r,t)?(r[t]=n,!0):we(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},l){let d;return!!n[l]||e!==xe&&we(e,l)||t!==xe&&we(t,l)||(d=o[0])&&we(d,l)||we(r,l)||we(fi,l)||we(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:we(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},dc=Pe({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has(e,t){return t[0]!=="_"&&!wu(t)}});let Ho=!0;function pc(e){const t=Os(e),n=e.proxy,r=e.ctx;Ho=!1,t.beforeCreate&&ea(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:l,watch:d,provide:p,inject:y,created:v,beforeMount:u,mounted:a,beforeUpdate:f,updated:_,activated:g,deactivated:b,beforeDestroy:h,beforeUnmount:s,destroyed:m,unmounted:c,render:E,renderTracked:T,renderTriggered:x,errorCaptured:A,serverPrefetch:P,expose:S,inheritAttrs:w,components:N,directives:k,filters:R}=t;if(y&&vc(y,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Y in l){const re=l[Y];me(re)&&(r[Y]=re.bind(n))}if(i){const Y=i.call(n,n);Le(Y)&&(e.data=Ai(Y))}if(Ho=!0,o)for(const Y in o){const re=o[Y],W=me(re)?re.bind(n,n):me(re.get)?re.get.bind(n,n):vt,q=!me(re)&&me(re.set)?re.set.bind(n):vt,L=Hs({get:W,set:q});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>L.value,set:j=>L.value=j})}if(d)for(const Y in d)_s(d[Y],r,n,Y);if(p){const Y=me(p)?p.call(n):p;Reflect.ownKeys(Y).forEach(re=>{os(re,Y[re])})}v&&ea(v,e,"c");function z(Y,re){he(re)?re.forEach(W=>Y(W.bind(n))):re&&Y(re.bind(n))}if(z(hs,u),z(Hn,a),z(ds,f),z(Ci,_),z(us,g),z(fs,b),z(gs,A),z(ys,T),z(vs,x),z(Pr,s),z(Mi,c),z(ps,P),he(S))if(S.length){const Y=e.exposed||(e.exposed={});S.forEach(re=>{Object.defineProperty(Y,re,{get:()=>n[re],set:W=>n[re]=W})})}else e.exposed||(e.exposed={});E&&e.render===vt&&(e.render=E),w!=null&&(e.inheritAttrs=w),N&&(e.components=N),k&&(e.directives=k)}function vc(e,t,n=vt,r=!1){he(e)&&(e=Ko(e));for(const i in e){const o=e[i];let l;Le(o)?"default"in o?l=hr(o.from||i,o.default,!0):l=hr(o.from||i):l=hr(o),Me(l)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:d=>l.value=d}):t[i]=l}}function ea(e,t,n){ot(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function _s(e,t,n,r){const i=r.includes(".")?as(n,r):()=>n[r];if(ke(e)){const o=t[e];me(o)&&hn(i,o)}else if(me(e))hn(i,e.bind(n));else if(Le(e))if(he(e))e.forEach(o=>_s(o,t,n,r));else{const o=me(e.handler)?e.handler.bind(n):t[e.handler];me(o)&&hn(i,o,e)}}function Os(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,d=o.get(t);let p;return d?p=d:!i.length&&!n&&!r?p=t:(p={},i.length&&i.forEach(y=>ci(p,y,l,!0)),ci(p,t,l)),o.set(t,p),p}function ci(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&ci(e,o,n,!0),i&&i.forEach(l=>ci(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const d=yc[l]||n&&n[l];e[l]=d?d(e[l],t[l]):t[l]}return e}const yc={data:ta,props:an,emits:an,methods:an,computed:an,beforeCreate:Ge,created:Ge,beforeMount:Ge,mounted:Ge,beforeUpdate:Ge,updated:Ge,beforeDestroy:Ge,beforeUnmount:Ge,destroyed:Ge,unmounted:Ge,activated:Ge,deactivated:Ge,errorCaptured:Ge,serverPrefetch:Ge,components:an,directives:an,watch:mc,provide:ta,inject:gc};function ta(e,t){return t?e?function(){return Pe(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function gc(e,t){return an(Ko(e),Ko(t))}function Ko(e){if(he(e)){const t={};for(let n=0;n0)&&!(l&16)){if(l&8){const v=e.vnode.dynamicProps;for(let u=0;u{p=!0;const[a,f]=ws(u,t,!0);Pe(l,a),f&&d.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!o&&!p)return r.set(e,Ln),Ln;if(he(o))for(let v=0;v-1,f[1]=g<0||_-1||we(f,"default"))&&d.push(u)}}}const y=[l,d];return r.set(e,y),y}function na(e){return e[0]!=="$"}function ra(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ia(e,t){return ra(e)===ra(t)}function oa(e,t){return he(t)?t.findIndex(n=>ia(n,e)):me(t)&&ia(t,e)?0:-1}const As=e=>e[0]==="_"||e==="$stable",wl=e=>he(e)?e.map(rt):[rt(e)],Oc=(e,t,n)=>{if(t._n)return t;const r=yl((...i)=>wl(t(...i)),n);return r._c=!1,r},Ts=(e,t,n)=>{const r=e._ctx;for(const i in e){if(As(i))continue;const o=e[i];if(me(o))t[i]=Oc(i,o,r);else if(o!=null){const l=wl(o);t[i]=()=>l}}},xs=(e,t)=>{const n=wl(t);e.slots.default=()=>n},Ec=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ee(t),li(t,"_",n)):Ts(t,e.slots={})}else e.slots={},t&&xs(e,t);li(e.slots,qi,1)},wc=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=xe;if(r.shapeFlag&32){const d=t._;d?n&&d===1?o=!1:(Pe(i,t),!n&&d===1&&delete i._):(o=!t.$stable,Ts(t,i)),l=t}else t&&(xs(e,t),l={default:1});if(o)for(const d in i)!As(d)&&!(d in l)&&delete i[d]};function Ns(){return{app:null,config:{isNativeTag:Ru,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ac=0;function Tc(e,t){return function(r,i=null){me(r)||(r=Object.assign({},r)),i!=null&&!Le(i)&&(i=null);const o=Ns(),l=new Set;let d=!1;const p=o.app={_uid:Ac++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:Vs,get config(){return o.config},set config(y){},use(y,...v){return l.has(y)||(y&&me(y.install)?(l.add(y),y.install(p,...v)):me(y)&&(l.add(y),y(p,...v))),p},mixin(y){return o.mixins.includes(y)||o.mixins.push(y),p},component(y,v){return v?(o.components[y]=v,p):o.components[y]},directive(y,v){return v?(o.directives[y]=v,p):o.directives[y]},mount(y,v,u){if(!d){const a=Se(r,i);return a.appContext=o,v&&t?t(a,y):e(a,y,u),d=!0,p._container=y,y.__vue_app__=p,Di(a.component)||a.component.proxy}},unmount(){d&&(e(null,p._container),delete p._container.__vue_app__)},provide(y,v){return o.provides[y]=v,p}};return p}}function hi(e,t,n,r,i=!1){if(he(e)){e.forEach((a,f)=>hi(a,t&&(he(t)?t[f]:t),n,r,i));return}if(dn(r)&&!i)return;const o=r.shapeFlag&4?Di(r.component)||r.component.proxy:r.el,l=i?null:o,{i:d,r:p}=e,y=t&&t.r,v=d.refs===xe?d.refs={}:d.refs,u=d.setupState;if(y!=null&&y!==p&&(ke(y)?(v[y]=null,we(u,y)&&(u[y]=null)):Me(y)&&(y.value=null)),me(p))At(p,d,12,[l,v]);else{const a=ke(p),f=Me(p);if(a||f){const _=()=>{if(e.f){const g=a?v[p]:p.value;i?he(g)&&tl(g,o):he(g)?g.includes(o)||g.push(o):a?(v[p]=[o],we(u,p)&&(u[p]=v[p])):(p.value=[o],e.k&&(v[e.k]=p.value))}else a?(v[p]=l,we(u,p)&&(u[p]=l)):f&&(p.value=l,e.k&&(v[e.k]=l))};l?(_.id=-1,Ue(_,n)):_()}}}let Bt=!1;const Xr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Qr=e=>e.nodeType===8;function xc(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:l,remove:d,insert:p,createComment:y}}=e,v=(h,s)=>{if(!s.hasChildNodes()){n(null,h,s),ui(),s._vnode=h;return}Bt=!1,u(s.firstChild,h,null,null,null),ui(),s._vnode=h,Bt&&console.error("Hydration completed but contains mismatches.")},u=(h,s,m,c,E,T=!1)=>{const x=Qr(h)&&h.data==="[",A=()=>g(h,s,m,c,E,x),{type:P,ref:S,shapeFlag:w,patchFlag:N}=s,k=h.nodeType;s.el=h,N===-2&&(T=!1,s.dynamicChildren=null);let R=null;switch(P){case Bn:k!==3?s.children===""?(p(s.el=i(""),l(h),h),R=h):R=A():(h.data!==s.children&&(Bt=!0,h.data=s.children),R=o(h));break;case Ze:k!==8||x?R=A():R=o(h);break;case pn:if(k!==1&&k!==3)R=A();else{R=h;const B=!s.children.length;for(let z=0;z{T=T||!!s.dynamicChildren;const{type:x,props:A,patchFlag:P,shapeFlag:S,dirs:w}=s,N=x==="input"&&w||x==="option";if(N||P!==-1){if(w&&_t(s,null,m,"created"),A)if(N||!T||P&48)for(const R in A)(N&&R.endsWith("value")||Ar(R)&&!ar(R))&&r(h,R,null,A[R],!1,void 0,m);else A.onClick&&r(h,"onClick",null,A.onClick,!1,void 0,m);let k;if((k=A&&A.onVnodeBeforeMount)&&Je(k,m,s),w&&_t(s,null,m,"beforeMount"),((k=A&&A.onVnodeMounted)||w)&&is(()=>{k&&Je(k,m,s),w&&_t(s,null,m,"mounted")},c),S&16&&!(A&&(A.innerHTML||A.textContent))){let R=f(h.firstChild,s,h,m,c,E,T);for(;R;){Bt=!0;const B=R;R=R.nextSibling,d(B)}}else S&8&&h.textContent!==s.children&&(Bt=!0,h.textContent=s.children)}return h.nextSibling},f=(h,s,m,c,E,T,x)=>{x=x||!!s.dynamicChildren;const A=s.children,P=A.length;for(let S=0;S{const{slotScopeIds:x}=s;x&&(E=E?E.concat(x):x);const A=l(h),P=f(o(h),s,A,m,c,E,T);return P&&Qr(P)&&P.data==="]"?o(s.anchor=P):(Bt=!0,p(s.anchor=y("]"),A,P),P)},g=(h,s,m,c,E,T)=>{if(Bt=!0,s.el=null,T){const P=b(h);for(;;){const S=o(h);if(S&&S!==P)d(S);else break}}const x=o(h),A=l(h);return d(h),n(null,s,A,x,m,c,Xr(A),E),x},b=h=>{let s=0;for(;h;)if(h=o(h),h&&Qr(h)&&(h.data==="["&&s++,h.data==="]")){if(s===0)return o(h);s--}return h};return[v,u]}const Ue=is;function Ss(e){return Ps(e)}function ks(e){return Ps(e,xc)}function Ps(e,t){const n=Du();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:l,createText:d,createComment:p,setText:y,setElementText:v,parentNode:u,nextSibling:a,setScopeId:f=vt,cloneNode:_,insertStaticContent:g}=e,b=(M,F,J,oe=null,ie=null,H=null,Z=!1,X=null,ee=!!F.dynamicChildren)=>{if(M===F)return;M&&!Ot(M,F)&&(oe=Q(M),D(M,ie,H,!0),M=null),F.patchFlag===-2&&(ee=!1,F.dynamicChildren=null);const{type:V,ref:ue,shapeFlag:ae}=F;switch(V){case Bn:h(M,F,J,oe);break;case Ze:s(M,F,J,oe);break;case pn:M==null&&m(F,J,oe,Z);break;case He:k(M,F,J,oe,ie,H,Z,X,ee);break;default:ae&1?T(M,F,J,oe,ie,H,Z,X,ee):ae&6?R(M,F,J,oe,ie,H,Z,X,ee):(ae&64||ae&128)&&V.process(M,F,J,oe,ie,H,Z,X,ee,le)}ue!=null&&ie&&hi(ue,M&&M.ref,H,F||M,!F)},h=(M,F,J,oe)=>{if(M==null)r(F.el=d(F.children),J,oe);else{const ie=F.el=M.el;F.children!==M.children&&y(ie,F.children)}},s=(M,F,J,oe)=>{M==null?r(F.el=p(F.children||""),J,oe):F.el=M.el},m=(M,F,J,oe)=>{[M.el,M.anchor]=g(M.children,F,J,oe,M.el,M.anchor)},c=({el:M,anchor:F},J,oe)=>{let ie;for(;M&&M!==F;)ie=a(M),r(M,J,oe),M=ie;r(F,J,oe)},E=({el:M,anchor:F})=>{let J;for(;M&&M!==F;)J=a(M),i(M),M=J;i(F)},T=(M,F,J,oe,ie,H,Z,X,ee)=>{Z=Z||F.type==="svg",M==null?x(F,J,oe,ie,H,Z,X,ee):S(M,F,ie,H,Z,X,ee)},x=(M,F,J,oe,ie,H,Z,X)=>{let ee,V;const{type:ue,props:ae,shapeFlag:se,transition:ce,patchFlag:ge,dirs:pe}=M;if(M.el&&_!==void 0&&ge===-1)ee=M.el=_(M.el);else{if(ee=M.el=l(M.type,H,ae&&ae.is,ae),se&8?v(ee,M.children):se&16&&P(M.children,ee,null,oe,ie,H&&ue!=="foreignObject",Z,X),pe&&_t(M,null,oe,"created"),ae){for(const de in ae)de!=="value"&&!ar(de)&&o(ee,de,null,ae[de],H,M.children,oe,ie,K);"value"in ae&&o(ee,"value",null,ae.value),(V=ae.onVnodeBeforeMount)&&Je(V,oe,M)}A(ee,M,M.scopeId,Z,oe)}pe&&_t(M,null,oe,"beforeMount");const _e=(!ie||ie&&!ie.pendingBranch)&&ce&&!ce.persisted;_e&&ce.beforeEnter(ee),r(ee,F,J),((V=ae&&ae.onVnodeMounted)||_e||pe)&&Ue(()=>{V&&Je(V,oe,M),_e&&ce.enter(ee),pe&&_t(M,null,oe,"mounted")},ie)},A=(M,F,J,oe,ie)=>{if(J&&f(M,J),oe)for(let H=0;H{for(let V=ee;V{const X=F.el=M.el;let{patchFlag:ee,dynamicChildren:V,dirs:ue}=F;ee|=M.patchFlag&16;const ae=M.props||xe,se=F.props||xe;let ce;J&&on(J,!1),(ce=se.onVnodeBeforeUpdate)&&Je(ce,J,F,M),ue&&_t(F,M,J,"beforeUpdate"),J&&on(J,!0);const ge=ie&&F.type!=="foreignObject";if(V?w(M.dynamicChildren,V,X,J,oe,ge,H):Z||W(M,F,X,null,J,oe,ge,H,!1),ee>0){if(ee&16)N(X,F,ae,se,J,oe,ie);else if(ee&2&&ae.class!==se.class&&o(X,"class",null,se.class,ie),ee&4&&o(X,"style",ae.style,se.style,ie),ee&8){const pe=F.dynamicProps;for(let _e=0;_e{ce&&Je(ce,J,F,M),ue&&_t(F,M,J,"updated")},oe)},w=(M,F,J,oe,ie,H,Z)=>{for(let X=0;X{if(J!==oe){for(const X in oe){if(ar(X))continue;const ee=oe[X],V=J[X];ee!==V&&X!=="value"&&o(M,X,V,ee,Z,F.children,ie,H,K)}if(J!==xe)for(const X in J)!ar(X)&&!(X in oe)&&o(M,X,J[X],null,Z,F.children,ie,H,K);"value"in oe&&o(M,"value",J.value,oe.value)}},k=(M,F,J,oe,ie,H,Z,X,ee)=>{const V=F.el=M?M.el:d(""),ue=F.anchor=M?M.anchor:d("");let{patchFlag:ae,dynamicChildren:se,slotScopeIds:ce}=F;ce&&(X=X?X.concat(ce):ce),M==null?(r(V,J,oe),r(ue,J,oe),P(F.children,J,ue,ie,H,Z,X,ee)):ae>0&&ae&64&&se&&M.dynamicChildren?(w(M.dynamicChildren,se,J,ie,H,Z,X),(F.key!=null||ie&&F===ie.subTree)&&Al(M,F,!0)):W(M,F,J,ue,ie,H,Z,X,ee)},R=(M,F,J,oe,ie,H,Z,X,ee)=>{F.slotScopeIds=X,M==null?F.shapeFlag&512?ie.ctx.activate(F,J,oe,Z,ee):B(F,J,oe,ie,H,Z,ee):z(M,F,ee)},B=(M,F,J,oe,ie,H,Z)=>{const X=M.component=js(M,oe,ie);if(kr(M)&&(X.ctx.renderer=le),Ds(X),X.asyncDep){if(ie&&ie.registerDep(X,Y),!M.el){const ee=X.subTree=Se(Ze);s(null,ee,F,J)}return}Y(X,M,F,J,ie,H,Z)},z=(M,F,J)=>{const oe=F.component=M.component;if(Kf(M,F,J))if(oe.asyncDep&&!oe.asyncResolved){re(oe,F,J);return}else oe.next=F,Cf(oe.update),oe.update();else F.el=M.el,oe.vnode=F},Y=(M,F,J,oe,ie,H,Z)=>{const X=()=>{if(M.isMounted){let{next:ue,bu:ae,u:se,parent:ce,vnode:ge}=M,pe=ue,_e;on(M,!1),ue?(ue.el=ge.el,re(M,ue,Z)):ue=ge,ae&&In(ae),(_e=ue.props&&ue.props.onVnodeBeforeUpdate)&&Je(_e,ce,ue,ge),on(M,!0);const de=ii(M),Ne=M.subTree;M.subTree=de,b(Ne,de,u(Ne.el),Q(Ne),M,ie,H),ue.el=de.el,pe===null&&gl(M,de.el),se&&Ue(se,ie),(_e=ue.props&&ue.props.onVnodeUpdated)&&Ue(()=>Je(_e,ce,ue,ge),ie)}else{let ue;const{el:ae,props:se}=F,{bm:ce,m:ge,parent:pe}=M,_e=dn(F);if(on(M,!1),ce&&In(ce),!_e&&(ue=se&&se.onVnodeBeforeMount)&&Je(ue,pe,F),on(M,!0),ae&&ye){const de=()=>{M.subTree=ii(M),ye(ae,M.subTree,M,ie,null)};_e?F.type.__asyncLoader().then(()=>!M.isUnmounted&&de()):de()}else{const de=M.subTree=ii(M);b(null,de,J,oe,M,ie,H),F.el=de.el}if(ge&&Ue(ge,ie),!_e&&(ue=se&&se.onVnodeMounted)){const de=F;Ue(()=>Je(ue,pe,de),ie)}(F.shapeFlag&256||pe&&dn(pe.vnode)&&pe.vnode.shapeFlag&256)&&M.a&&Ue(M.a,ie),M.isMounted=!0,F=J=oe=null}},ee=M.effect=new Nr(X,()=>pl(V),M.scope),V=M.update=()=>ee.run();V.id=M.uid,on(M,!0),V()},re=(M,F,J)=>{F.component=M;const oe=M.vnode.props;M.vnode=F,M.next=null,_c(M,F.props,oe,J),wc(M,F.children,J),mn(),Si(void 0,M.update),bn()},W=(M,F,J,oe,ie,H,Z,X,ee=!1)=>{const V=M&&M.children,ue=M?M.shapeFlag:0,ae=F.children,{patchFlag:se,shapeFlag:ce}=F;if(se>0){if(se&128){L(V,ae,J,oe,ie,H,Z,X,ee);return}else if(se&256){q(V,ae,J,oe,ie,H,Z,X,ee);return}}ce&8?(ue&16&&K(V,ie,H),ae!==V&&v(J,ae)):ue&16?ce&16?L(V,ae,J,oe,ie,H,Z,X,ee):K(V,ie,H,!0):(ue&8&&v(J,""),ce&16&&P(ae,J,oe,ie,H,Z,X,ee))},q=(M,F,J,oe,ie,H,Z,X,ee)=>{M=M||Ln,F=F||Ln;const V=M.length,ue=F.length,ae=Math.min(V,ue);let se;for(se=0;seue?K(M,ie,H,!0,!1,ae):P(F,J,oe,ie,H,Z,X,ee,ae)},L=(M,F,J,oe,ie,H,Z,X,ee)=>{let V=0;const ue=F.length;let ae=M.length-1,se=ue-1;for(;V<=ae&&V<=se;){const ce=M[V],ge=F[V]=ee?Kt(F[V]):rt(F[V]);if(Ot(ce,ge))b(ce,ge,J,null,ie,H,Z,X,ee);else break;V++}for(;V<=ae&&V<=se;){const ce=M[ae],ge=F[se]=ee?Kt(F[se]):rt(F[se]);if(Ot(ce,ge))b(ce,ge,J,null,ie,H,Z,X,ee);else break;ae--,se--}if(V>ae){if(V<=se){const ce=se+1,ge=cese)for(;V<=ae;)D(M[V],ie,H,!0),V++;else{const ce=V,ge=V,pe=new Map;for(V=ge;V<=se;V++){const je=F[V]=ee?Kt(F[V]):rt(F[V]);je.key!=null&&pe.set(je.key,V)}let _e,de=0;const Ne=se-ge+1;let ut=!1,On=0;const ft=new Array(Ne);for(V=0;V=Ne){D(je,ie,H,!0);continue}let qe;if(je.key!=null)qe=pe.get(je.key);else for(_e=ge;_e<=se;_e++)if(ft[_e-ge]===0&&Ot(je,F[_e])){qe=_e;break}qe===void 0?D(je,ie,H,!0):(ft[qe-ge]=V+1,qe>=On?On=qe:ut=!0,b(je,F[qe],J,null,ie,H,Z,X,ee),de++)}const xt=ut?Nc(ft):Ln;for(_e=xt.length-1,V=Ne-1;V>=0;V--){const je=ge+V,qe=F[je],yt=je+1{const{el:H,type:Z,transition:X,children:ee,shapeFlag:V}=M;if(V&6){j(M.component.subTree,F,J,oe);return}if(V&128){M.suspense.move(F,J,oe);return}if(V&64){Z.move(M,F,J,le);return}if(Z===He){r(H,F,J);for(let ae=0;aeX.enter(H),ie);else{const{leave:ae,delayLeave:se,afterLeave:ce}=X,ge=()=>r(H,F,J),pe=()=>{ae(H,()=>{ge(),ce&&ce()})};se?se(H,ge,pe):pe()}else r(H,F,J)},D=(M,F,J,oe=!1,ie=!1)=>{const{type:H,props:Z,ref:X,children:ee,dynamicChildren:V,shapeFlag:ue,patchFlag:ae,dirs:se}=M;if(X!=null&&hi(X,null,J,M,!0),ue&256){F.ctx.deactivate(M);return}const ce=ue&1&&se,ge=!dn(M);let pe;if(ge&&(pe=Z&&Z.onVnodeBeforeUnmount)&&Je(pe,F,M),ue&6)C(M.component,J,oe);else{if(ue&128){M.suspense.unmount(J,oe);return}ce&&_t(M,null,F,"beforeUnmount"),ue&64?M.type.remove(M,F,J,ie,le,oe):V&&(H!==He||ae>0&&ae&64)?K(V,F,J,!1,!0):(H===He&&ae&384||!ie&&ue&16)&&K(ee,F,J),oe&&G(M)}(ge&&(pe=Z&&Z.onVnodeUnmounted)||ce)&&Ue(()=>{pe&&Je(pe,F,M),ce&&_t(M,null,F,"unmounted")},J)},G=M=>{const{type:F,el:J,anchor:oe,transition:ie}=M;if(F===He){$(J,oe);return}if(F===pn){E(M);return}const H=()=>{i(J),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(M.shapeFlag&1&&ie&&!ie.persisted){const{leave:Z,delayLeave:X}=ie,ee=()=>Z(J,H);X?X(M.el,H,ee):ee()}else H()},$=(M,F)=>{let J;for(;M!==F;)J=a(M),i(M),M=J;i(F)},C=(M,F,J)=>{const{bum:oe,scope:ie,update:H,subTree:Z,um:X}=M;oe&&In(oe),ie.stop(),H&&(H.active=!1,D(Z,M,F,J)),X&&Ue(X,F),Ue(()=>{M.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},K=(M,F,J,oe=!1,ie=!1,H=0)=>{for(let Z=H;ZM.shapeFlag&6?Q(M.component.subTree):M.shapeFlag&128?M.suspense.next():a(M.anchor||M.el),te=(M,F,J)=>{M==null?F._vnode&&D(F._vnode,null,null,!0):b(F._vnode||null,M,F,null,null,null,J),ui(),F._vnode=M},le={p:b,um:D,m:j,r:G,mt:B,mc:P,pc:W,pbc:w,n:Q,o:e};let fe,ye;return t&&([fe,ye]=t(le)),{render:te,hydrate:fe,createApp:Tc(te,fe)}}function on({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Al(e,t,n=!1){const r=e.children,i=t.children;if(he(r)&&he(i))for(let o=0;o>1,e[n[d]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}const Sc=e=>e.__isTeleport,dr=e=>e&&(e.disabled||e.disabled===""),la=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,zo=(e,t)=>{const n=e&&e.to;return ke(n)?t?t(n):null:n},kc={__isTeleport:!0,process(e,t,n,r,i,o,l,d,p,y){const{mc:v,pc:u,pbc:a,o:{insert:f,querySelector:_,createText:g,createComment:b}}=y,h=dr(t.props);let{shapeFlag:s,children:m,dynamicChildren:c}=t;if(e==null){const E=t.el=g(""),T=t.anchor=g("");f(E,n,r),f(T,n,r);const x=t.target=zo(t.props,_),A=t.targetAnchor=g("");x&&(f(A,x),l=l||la(x));const P=(S,w)=>{s&16&&v(m,S,w,i,o,l,d,p)};h?P(n,T):x&&P(x,A)}else{t.el=e.el;const E=t.anchor=e.anchor,T=t.target=e.target,x=t.targetAnchor=e.targetAnchor,A=dr(e.props),P=A?n:T,S=A?E:x;if(l=l||la(T),c?(a(e.dynamicChildren,c,P,i,o,l,d),Al(e,t,!0)):p||u(e,t,P,S,i,o,l,d,!1),h)A||Jr(t,n,E,y,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const w=t.target=zo(t.props,_);w&&Jr(t,w,null,y,0)}else A&&Jr(t,T,x,y,1)}},remove(e,t,n,r,{um:i,o:{remove:o}},l){const{shapeFlag:d,children:p,anchor:y,targetAnchor:v,target:u,props:a}=e;if(u&&o(v),(l||!dr(a))&&(o(y),d&16))for(let f=0;f0?tt||Ln:null,Ls(),yn>0&&tt&&tt.push(e),e}function Rc(e,t,n,r,i,o){return Rs(xl(e,t,n,r,i,o,!0))}function Tl(e,t,n,r,i){return Rs(Se(e,t,n,r,i,!0))}function Yt(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}function Ic(e){}const qi="__vInternal",Is=({key:e})=>e!=null?e:null,oi=({ref:e,ref_key:t,ref_for:n})=>e!=null?ke(e)||Me(e)||me(e)?{i:We,r:e,k:t,f:!!n}:e:null;function xl(e,t=null,n=null,r=0,i=null,o=e===He?0:1,l=!1,d=!1){const p={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Is(t),ref:t&&oi(t),scopeId:Pi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return d?(Sl(p,n),o&128&&e.normalize(p)):n&&(p.shapeFlag|=ke(n)?8:16),yn>0&&!l&&tt&&(p.patchFlag>0||o&6)&&p.patchFlag!==32&&tt.push(p),p}const Se=Cc;function Cc(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===ms)&&(e=Ze),Yt(e)){const d=Tt(e,t,!0);return n&&Sl(d,n),yn>0&&!o&&tt&&(d.shapeFlag&6?tt[tt.indexOf(e)]=d:tt.push(d)),d.patchFlag|=-2,d}if(zc(e)&&(e=e.__vccOpts),t){t=Cs(t);let{class:d,style:p}=t;d&&!ke(d)&&(t.class=wr(d)),Le(p)&&(sl(p)&&!he(p)&&(p=Pe({},p)),t.style=Er(p))}const l=ke(e)?1:rs(e)?128:Sc(e)?64:Le(e)?4:me(e)?2:0;return xl(e,t,n,r,i,l,o,!0)}function Cs(e){return e?sl(e)||qi in e?Pe({},e):e:null}function Tt(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:l}=e,d=t?Ms(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Is(d),ref:t&&t.ref?n&&i?he(i)?i.concat(oi(t)):[i,oi(t)]:oi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor}}function Nl(e=" ",t=0){return Se(Bn,null,e,t)}function Mc(e,t){const n=Se(pn,null,e);return n.staticCount=t,n}function jc(e="",t=!1){return t?(ji(),Tl(Ze,null,e)):Se(Ze,null,e)}function rt(e){return e==null||typeof e=="boolean"?Se(Ze):he(e)?Se(He,null,e.slice()):typeof e=="object"?Kt(e):Se(Bn,null,String(e))}function Kt(e){return e.el===null||e.memo?e:Tt(e)}function Sl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(he(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Sl(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(qi in t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[Nl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ms(...e){const t={};for(let n=0;nCe||We,Gt=e=>{Ce=e,e.scope.on()},zt=()=>{Ce&&Ce.scope.off(),Ce=null};function qs(e){return e.vnode.shapeFlag&4}let Fn=!1;function Ds(e,t=!1){Fn=t;const{props:n,children:r}=e.vnode,i=qs(e);bc(e,n,i,t),Ec(e,r);const o=i?Bc(e,t):void 0;return Fn=!1,o}function Bc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ul(new Proxy(e.ctx,Uo));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Fs(e):null;Gt(e),mn();const o=At(r,e,0,[e.props,i]);if(bn(),zt(),nl(o)){if(o.then(zt,zt),t)return o.then(l=>{Wo(e,l,t)}).catch(l=>{_n(l,e,0)});e.asyncDep=o}else Wo(e,o,t)}else Bs(e,t)}function Wo(e,t,n){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Le(t)&&(e.setupState=hl(t)),Bs(e,n)}let di,Zo;function Fc(e){di=e,Zo=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,dc))}}const Uc=()=>!di;function Bs(e,t,n){const r=e.type;if(!e.render){if(!t&&di&&!r.render){const i=r.template;if(i){const{isCustomElement:o,compilerOptions:l}=e.appContext.config,{delimiters:d,compilerOptions:p}=r,y=Pe(Pe({isCustomElement:o,delimiters:d},l),p);r.render=di(i,y)}}e.render=r.render||vt,Zo&&Zo(e)}Gt(e),mn(),pc(e),bn(),zt()}function Hc(e){return new Proxy(e.attrs,{get(t,n){return at(e,"get","$attrs"),t[n]}})}function Fs(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Hc(e))},slots:e.slots,emit:e.emit,expose:t}}function Di(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hl(ul(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fi)return fi[n](e)}}))}const Kc=/(?:^|[-_])(\w)/g,$c=e=>e.replace(Kc,t=>t.toUpperCase()).replace(/[-_]/g,"");function pi(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function Us(e,t,n=!1){let r=pi(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=o=>{for(const l in o)if(o[l]===t)return l};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?$c(r):n?"App":"Anonymous"}function zc(e){return me(e)&&"__vccOpts"in e}const Hs=(e,t)=>Nf(e,t,Fn);function Vc(){return null}function Wc(){return null}function Zc(e){}function Yc(e,t){return null}function Gc(){return Ks().slots}function Xc(){return Ks().attrs}function Ks(){const e=Qt();return e.setupContext||(e.setupContext=Fs(e))}function Qc(e,t){const n=he(e)?e.reduce((r,i)=>(r[i]={},r),{}):e;for(const r in t){const i=n[r];i?he(i)||me(i)?n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(n[r]={default:t[r]})}return n}function Jc(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function eh(e){const t=Qt();let n=e();return zt(),nl(n)&&(n=n.catch(r=>{throw Gt(t),r})),[n,()=>Gt(t)]}function kl(e,t,n){const r=arguments.length;return r===2?Le(t)&&!he(t)?Yt(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Yt(n)&&(n=[n]),Se(e,t,n))}const $s=Symbol(""),th=()=>{{const e=hr($s);return e||Ya("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function nh(){}function rh(e,t,n,r){const i=n[r];if(i&&zs(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o}function zs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&tt&&tt.push(e),!0}const Vs="3.2.37",ih={createComponentInstance:js,setupComponent:Ds,renderComponentRoot:ii,setCurrentRenderingInstance:br,isVNode:Yt,normalizeVNode:rt},oh=ih,lh=null,ah=null,sh="http://www.w3.org/2000/svg",sn=typeof document!="undefined"?document:null,aa=sn&&sn.createElement("template"),uh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?sn.createElementNS(sh,e):sn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{aa.innerHTML=r?`${e}`:e;const d=aa.content;if(r){const p=d.firstChild;for(;p.firstChild;)d.appendChild(p.firstChild);d.removeChild(p)}t.insertBefore(d,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function fh(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ch(e,t,n){const r=e.style,i=ke(n);if(n&&!i){for(const o in n)Yo(r,o,n[o]);if(t&&!ke(t))for(const o in t)n[o]==null&&Yo(r,o,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const sa=/\s*!important$/;function Yo(e,t,n){if(he(n))n.forEach(r=>Yo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=hh(e,t);sa.test(n)?e.setProperty(wt(r),n.replace(sa,""),"important"):e[r]=n}}const ua=["Webkit","Moz","ms"],ko={};function hh(e,t){const n=ko[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return ko[t]=r;r=xr(r);for(let i=0;i{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Go=0;const yh=Promise.resolve(),gh=()=>{Go=0},mh=()=>Go||(yh.then(gh),Go=Ws());function It(e,t,n,r){e.addEventListener(t,n,r)}function bh(e,t,n,r){e.removeEventListener(t,n,r)}function _h(e,t,n,r,i=null){const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[d,p]=Oh(t);if(r){const y=o[t]=Eh(r,i);It(e,d,y,p)}else l&&(bh(e,d,l,p),o[t]=void 0)}}const ca=/(?:Once|Passive|Capture)$/;function Oh(e){let t;if(ca.test(e)){t={};let n;for(;n=e.match(ca);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[wt(e.slice(2)),t]}function Eh(e,t){const n=r=>{const i=r.timeStamp||Ws();(vh||i>=n.attached-1)&&ot(wh(r,n.value),t,5,[r])};return n.value=e,n.attached=mh(),n}function wh(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const ha=/^on[a-z]/,Ah=(e,t,n,r,i=!1,o,l,d,p)=>{t==="class"?fh(e,r,i):t==="style"?ch(e,n,r):Ar(t)?el(t)||_h(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Th(e,t,r,i))?ph(e,t,r,o,l,d,p):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),dh(e,t,r,i))};function Th(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ha.test(t)&&me(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ha.test(t)&&ke(n)?!1:t in e}function Zs(e,t){const n=Ri(e);class r extends Bi{constructor(o){super(n,o,t)}}return r.def=n,r}const xh=e=>Zs(e,uu),Nh=typeof HTMLElement!="undefined"?HTMLElement:class{};class Bi extends Nh{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Ni(()=>{this._connected||(Qo(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:i,styles:o}=r,l=!he(i),d=i?l?Object.keys(i):i:[];let p;if(l)for(const y in this._props){const v=i[y];(v===Number||v&&v.type===Number)&&(this._props[y]=Wt(this._props[y]),(p||(p=Object.create(null)))[y]=!0)}this._numberProps=p;for(const y of Object.keys(this))y[0]!=="_"&&this._setProp(y,this[y],!0,!1);for(const y of d.map(lt))Object.defineProperty(this,y,{get(){return this._getProp(y)},set(v){this._setProp(y,v)}});this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Wt(n)),this._setProp(lt(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(wt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(wt(t),n+""):n||this.removeAttribute(wt(t))))}_update(){Qo(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Se(this._def,Pe({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(i,...o)=>{this.dispatchEvent(new CustomEvent(i,{detail:o}))};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Bi){n.parent=r._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function Sh(e="$style"){{const t=Qt();if(!t)return xe;const n=t.type.__cssModules;if(!n)return xe;const r=n[e];return r||xe}}function kh(e){const t=Qt();if(!t)return;const n=()=>Xo(t.subTree,e(t.proxy));ls(n),Hn(()=>{const r=new MutationObserver(n);r.observe(t.subTree.el.parentNode,{childList:!0}),Mi(()=>r.disconnect())})}function Xo(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xo(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)da(e.el,t);else if(e.type===He)e.children.forEach(n=>Xo(n,t));else if(e.type===pn){let{el:n,anchor:r}=e;for(;n&&(da(n,t),n!==r);)n=n.nextSibling}}function da(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Ft="transition",tr="animation",Pl=(e,{slots:t})=>kl(_l,Gs(e),t);Pl.displayName="Transition";const Ys={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ph=Pl.props=Pe({},_l.props,Ys),ln=(e,t=[])=>{he(e)?e.forEach(n=>n(...t)):e&&e(...t)},pa=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function Gs(e){const t={};for(const N in e)N in Ys||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:d=`${n}-enter-to`,appearFromClass:p=o,appearActiveClass:y=l,appearToClass:v=d,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:a=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,_=Lh(i),g=_&&_[0],b=_&&_[1],{onBeforeEnter:h,onEnter:s,onEnterCancelled:m,onLeave:c,onLeaveCancelled:E,onBeforeAppear:T=h,onAppear:x=s,onAppearCancelled:A=m}=t,P=(N,k,R)=>{Ht(N,k?v:d),Ht(N,k?y:l),R&&R()},S=(N,k)=>{N._isLeaving=!1,Ht(N,u),Ht(N,f),Ht(N,a),k&&k()},w=N=>(k,R)=>{const B=N?x:s,z=()=>P(k,N,R);ln(B,[k,z]),va(()=>{Ht(k,N?p:o),Lt(k,N?v:d),pa(B)||ya(k,r,g,z)})};return Pe(t,{onBeforeEnter(N){ln(h,[N]),Lt(N,o),Lt(N,l)},onBeforeAppear(N){ln(T,[N]),Lt(N,p),Lt(N,y)},onEnter:w(!1),onAppear:w(!0),onLeave(N,k){N._isLeaving=!0;const R=()=>S(N,k);Lt(N,u),Qs(),Lt(N,a),va(()=>{!N._isLeaving||(Ht(N,u),Lt(N,f),pa(c)||ya(N,r,b,R))}),ln(c,[N,R])},onEnterCancelled(N){P(N,!1),ln(m,[N])},onAppearCancelled(N){P(N,!0),ln(A,[N])},onLeaveCancelled(N){S(N),ln(E,[N])}})}function Lh(e){if(e==null)return null;if(Le(e))return[Po(e.enter),Po(e.leave)];{const t=Po(e);return[t,t]}}function Po(e){return Wt(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ht(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function va(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Rh=0;function ya(e,t,n,r){const i=e._endId=++Rh,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:l,timeout:d,propCount:p}=Xs(e,t);if(!l)return r();const y=l+"end";let v=0;const u=()=>{e.removeEventListener(y,a),o()},a=f=>{f.target===e&&++v>=p&&u()};setTimeout(()=>{v(n[_]||"").split(", "),i=r(Ft+"Delay"),o=r(Ft+"Duration"),l=ga(i,o),d=r(tr+"Delay"),p=r(tr+"Duration"),y=ga(d,p);let v=null,u=0,a=0;t===Ft?l>0&&(v=Ft,u=l,a=o.length):t===tr?y>0&&(v=tr,u=y,a=p.length):(u=Math.max(l,y),v=u>0?l>y?Ft:tr:null,a=v?v===Ft?o.length:p.length:0);const f=v===Ft&&/\b(transform|all)(,|$)/.test(n[Ft+"Property"]);return{type:v,timeout:u,propCount:a,hasTransform:f}}function ga(e,t){for(;e.lengthma(n)+ma(e[r])))}function ma(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Qs(){return document.body.offsetHeight}const Js=new WeakMap,eu=new WeakMap,Ih={name:"TransitionGroup",props:Pe({},Ph,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Qt(),r=bl();let i,o;return Ci(()=>{if(!i.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!Dh(i[0].el,n.vnode.el,l))return;i.forEach(Mh),i.forEach(jh);const d=i.filter(qh);Qs(),d.forEach(p=>{const y=p.el,v=y.style;Lt(y,l),v.transform=v.webkitTransform=v.transitionDuration="";const u=y._moveCb=a=>{a&&a.target!==y||(!a||/transform$/.test(a.propertyName))&&(y.removeEventListener("transitionend",u),y._moveCb=null,Ht(y,l))};y.addEventListener("transitionend",u)})}),()=>{const l=Ee(e),d=Gs(l);let p=l.tag||He;i=o,o=t.default?Li(t.default()):[];for(let y=0;y{l.split(/\s+/).forEach(d=>d&&r.classList.remove(d))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Xs(r);return i.removeChild(r),o}const Xt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?n=>In(t,n):t};function Bh(e){e.target.composing=!0}function ba(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Xt(i);const o=r||i.props&&i.props.type==="number";It(e,t?"change":"input",l=>{if(l.target.composing)return;let d=e.value;n&&(d=d.trim()),o&&(d=Wt(d)),e._assign(d)}),n&&It(e,"change",()=>{e.value=e.value.trim()}),t||(It(e,"compositionstart",Bh),It(e,"compositionend",ba),It(e,"change",ba))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=Xt(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Wt(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},Ll={deep:!0,created(e,t,n){e._assign=Xt(n),It(e,"change",()=>{const r=e._modelValue,i=Un(e),o=e.checked,l=e._assign;if(he(r)){const d=bi(r,i),p=d!==-1;if(o&&!p)l(r.concat(i));else if(!o&&p){const y=[...r];y.splice(d,1),l(y)}}else if(gn(r)){const d=new Set(r);o?d.add(i):d.delete(i),l(d)}else l(nu(e,o))})},mounted:_a,beforeUpdate(e,t,n){e._assign=Xt(n),_a(e,t,n)}};function _a(e,{value:t,oldValue:n},r){e._modelValue=t,he(t)?e.checked=bi(t,r.props.value)>-1:gn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Vt(t,nu(e,!0)))}const Rl={created(e,{value:t},n){e.checked=Vt(t,n.props.value),e._assign=Xt(n),It(e,"change",()=>{e._assign(Un(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Xt(r),t!==n&&(e.checked=Vt(t,r.props.value))}},tu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=gn(t);It(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Wt(Un(l)):Un(l));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=Xt(r)},mounted(e,{value:t}){Oa(e,t)},beforeUpdate(e,t,n){e._assign=Xt(n)},updated(e,{value:t}){Oa(e,t)}};function Oa(e,t){const n=e.multiple;if(!(n&&!he(t)&&!gn(t))){for(let r=0,i=e.options.length;r-1:o.selected=t.has(l);else if(Vt(Un(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}function nu(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ru={created(e,t,n){ei(e,t,n,null,"created")},mounted(e,t,n){ei(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ei(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ei(e,t,n,r,"updated")}};function iu(e,t){switch(e){case"SELECT":return tu;case"TEXTAREA":return vi;default:switch(t){case"checkbox":return Ll;case"radio":return Rl;default:return vi}}}function ei(e,t,n,r,i){const l=iu(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}function Fh(){vi.getSSRProps=({value:e})=>({value:e}),Rl.getSSRProps=({value:e},t)=>{if(t.props&&Vt(t.props.value,e))return{checked:!0}},Ll.getSSRProps=({value:e},t)=>{if(he(e)){if(t.props&&bi(e,t.props.value)>-1)return{checked:!0}}else if(gn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ru.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=iu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Uh=["ctrl","shift","alt","meta"],Hh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Uh.some(n=>e[`${n}Key`]&&!t.includes(n))},Kh=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=wt(n.key);if(t.some(i=>i===r||$h[i]===r))return e(n)},ou={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):nr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),nr(e,!0),r.enter(e)):r.leave(e,()=>{nr(e,!1)}):nr(e,t))},beforeUnmount(e,{value:t}){nr(e,t)}};function nr(e,t){e.style.display=t?e._vod:"none"}function Vh(){ou.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const lu=Pe({patchProp:Ah},uh);let vr,Ea=!1;function au(){return vr||(vr=Ss(lu))}function su(){return vr=Ea?vr:ks(lu),Ea=!0,vr}const Qo=(...e)=>{au().render(...e)},uu=(...e)=>{su().hydrate(...e)},Wh=(...e)=>{const t=au().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=fu(r);if(!i)return;const o=t._component;!me(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const l=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t},Zh=(...e)=>{const t=su().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=fu(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function fu(e){return ke(e)?document.querySelector(e):e}let wa=!1;const Yh=()=>{wa||(wa=!0,Fh(),Vh())},Gh=()=>{},fd=Object.freeze(Object.defineProperty({__proto__:null,compile:Gh,EffectScope:il,ReactiveEffect:Nr,customRef:wf,effect:$u,effectScope:Bu,getCurrentScope:Fu,isProxy:sl,isReactive:cn,isReadonly:qn,isRef:Me,isShallow:ai,markRaw:ul,onScopeDispose:Uu,proxyRefs:hl,reactive:Ai,readonly:al,ref:Cn,shallowReactive:za,shallowReadonly:gf,shallowRef:mf,stop:zu,toRaw:Ee,toRef:Za,toRefs:Af,triggerRef:_f,unref:Wa,camelize:lt,capitalize:xr,normalizeClass:wr,normalizeProps:ku,normalizeStyle:Er,toDisplayString:Lu,toHandlerKey:sr,BaseTransition:_l,Comment:Ze,Fragment:He,KeepAlive:nc,Static:pn,Suspense:zf,Teleport:Lc,Text:Bn,callWithAsyncErrorHandling:ot,callWithErrorHandling:At,cloneVNode:Tt,compatUtils:ah,computed:Hs,createBlock:Tl,createCommentVNode:jc,createElementBlock:Rc,createElementVNode:xl,createHydrationRenderer:ks,createPropsRestProxy:Jc,createRenderer:Ss,createSlots:fc,createStaticVNode:Mc,createTextVNode:Nl,createVNode:Se,defineAsyncComponent:ec,defineComponent:Ri,defineEmits:Wc,defineExpose:Zc,defineProps:Vc,get devtools(){return Pn},getCurrentInstance:Qt,getTransitionRawChildren:Li,guardReactiveProps:Cs,h:kl,handleError:_n,initCustomFormatter:nh,inject:hr,isMemoSame:zs,isRuntimeOnly:Uc,isVNode:Yt,mergeDefaults:Qc,mergeProps:Ms,nextTick:Ni,onActivated:us,onBeforeMount:hs,onBeforeUnmount:Pr,onBeforeUpdate:ds,onDeactivated:fs,onErrorCaptured:gs,onMounted:Hn,onRenderTracked:ys,onRenderTriggered:vs,onServerPrefetch:ps,onUnmounted:Mi,onUpdated:Ci,openBlock:ji,popScopeId:Df,provide:os,pushScopeId:qf,queuePostFlushCb:vl,registerRuntimeCompiler:Fc,renderList:uc,renderSlot:cc,resolveComponent:lc,resolveDirective:sc,resolveDynamicComponent:ac,resolveFilter:lh,resolveTransitionHooks:Dn,setBlockTracking:Vo,setDevtoolsHook:ts,setTransitionHooks:vn,ssrContextKey:$s,ssrUtils:oh,toHandlers:hc,transformVNodeArgs:Ic,useAttrs:Xc,useSSRContext:th,useSlots:Gc,useTransitionState:bl,version:Vs,warn:Ya,watch:hn,watchEffect:Gf,watchPostEffect:ls,watchSyncEffect:Xf,withAsyncContext:eh,withCtx:yl,withDefaults:Yc,withDirectives:ic,withMemo:rh,withScopeId:Bf,Transition:Pl,TransitionGroup:Ch,VueElement:Bi,createApp:Wh,createSSRApp:Zh,defineCustomElement:Zs,defineSSRCustomElement:xh,hydrate:uu,initDirectivesForSSR:Yh,render:Qo,useCssModule:Sh,useCssVars:kh,vModelCheckbox:Ll,vModelDynamic:ru,vModelRadio:Rl,vModelSelect:tu,vModelText:vi,vShow:ou,withKeys:zh,withModifiers:Kh},Symbol.toStringTag,{value:"Module"}));var Ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cd(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var cu={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(e,t){(function(r,i){e.exports=i()})(typeof self!="undefined"?self:Ke,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=r,i.d=function(o,l,d){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:d})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),l=i(18),d=i(19),p=i(45),y=i(46),v=i(47),u=i(48),a=i(49),f=i(12),_=i(32),g=i(33),b=i(31),h=i(1),s={Scope:h.Scope,create:h.create,find:h.find,query:h.query,register:h.register,Container:o.default,Format:l.default,Leaf:d.default,Embed:u.default,Scroll:p.default,Block:v.default,Inline:y.default,Text:a.default,Attributor:{Attribute:f.default,Class:_.default,Style:g.default,Store:b.default}};r.default=s},function(n,r,i){var o=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,s){h.__proto__=s}||function(h,s){for(var m in s)s.hasOwnProperty(m)&&(h[m]=s[m])};return function(h,s){b(h,s);function m(){this.constructor=h}h.prototype=s===null?Object.create(s):(m.prototype=s.prototype,new m)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=function(b){o(h,b);function h(s){var m=this;return s="[Parchment] "+s,m=b.call(this,s)||this,m.message=s,m.name=m.constructor.name,m}return h}(Error);r.ParchmentError=l;var d={},p={},y={},v={};r.DATA_KEY="__blot";var u;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(u=r.Scope||(r.Scope={}));function a(b,h){var s=_(b);if(s==null)throw new l("Unable to create "+b+" blot");var m=s,c=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:m.create(h);return new m(c,h)}r.create=a;function f(b,h){return h===void 0&&(h=!1),b==null?null:b[r.DATA_KEY]!=null?b[r.DATA_KEY].blot:h?f(b.parentNode,h):null}r.find=f;function _(b,h){h===void 0&&(h=u.ANY);var s;if(typeof b=="string")s=v[b]||d[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)s=v.text;else if(typeof b=="number")b&u.LEVEL&u.BLOCK?s=v.block:b&u.LEVEL&u.INLINE&&(s=v.inline);else if(b instanceof HTMLElement){var m=(b.getAttribute("class")||"").split(/\s+/);for(var c in m)if(s=p[m[c]],s)break;s=s||y[b.tagName]}return s==null?null:h&u.LEVEL&s.scope&&h&u.TYPE&s.scope?s:null}r.query=_;function g(){for(var b=[],h=0;h1)return b.map(function(c){return g(c)});var s=b[0];if(typeof s.blotName!="string"&&typeof s.attrName!="string")throw new l("Invalid definition");if(s.blotName==="abstract")throw new l("Cannot register abstract class");if(v[s.blotName||s.attrName]=s,typeof s.keyName=="string")d[s.keyName]=s;else if(s.className!=null&&(p[s.className]=s),s.tagName!=null){Array.isArray(s.tagName)?s.tagName=s.tagName.map(function(c){return c.toUpperCase()}):s.tagName=s.tagName.toUpperCase();var m=Array.isArray(s.tagName)?s.tagName:[s.tagName];m.forEach(function(c){(y[c]==null||s.className==null)&&(y[c]=s)})}return s}r.register=g},function(n,r,i){var o=i(51),l=i(11),d=i(3),p=i(20),y=String.fromCharCode(0),v=function(u){Array.isArray(u)?this.ops=u:u!=null&&Array.isArray(u.ops)?this.ops=u.ops:this.ops=[]};v.prototype.insert=function(u,a){var f={};return u.length===0?this:(f.insert=u,a!=null&&typeof a=="object"&&Object.keys(a).length>0&&(f.attributes=a),this.push(f))},v.prototype.delete=function(u){return u<=0?this:this.push({delete:u})},v.prototype.retain=function(u,a){if(u<=0)return this;var f={retain:u};return a!=null&&typeof a=="object"&&Object.keys(a).length>0&&(f.attributes=a),this.push(f)},v.prototype.push=function(u){var a=this.ops.length,f=this.ops[a-1];if(u=d(!0,{},u),typeof f=="object"){if(typeof u.delete=="number"&&typeof f.delete=="number")return this.ops[a-1]={delete:f.delete+u.delete},this;if(typeof f.delete=="number"&&u.insert!=null&&(a-=1,f=this.ops[a-1],typeof f!="object"))return this.ops.unshift(u),this;if(l(u.attributes,f.attributes)){if(typeof u.insert=="string"&&typeof f.insert=="string")return this.ops[a-1]={insert:f.insert+u.insert},typeof u.attributes=="object"&&(this.ops[a-1].attributes=u.attributes),this;if(typeof u.retain=="number"&&typeof f.retain=="number")return this.ops[a-1]={retain:f.retain+u.retain},typeof u.attributes=="object"&&(this.ops[a-1].attributes=u.attributes),this}}return a===this.ops.length?this.ops.push(u):this.ops.splice(a,0,u),this},v.prototype.chop=function(){var u=this.ops[this.ops.length-1];return u&&u.retain&&!u.attributes&&this.ops.pop(),this},v.prototype.filter=function(u){return this.ops.filter(u)},v.prototype.forEach=function(u){this.ops.forEach(u)},v.prototype.map=function(u){return this.ops.map(u)},v.prototype.partition=function(u){var a=[],f=[];return this.forEach(function(_){var g=u(_)?a:f;g.push(_)}),[a,f]},v.prototype.reduce=function(u,a){return this.ops.reduce(u,a)},v.prototype.changeLength=function(){return this.reduce(function(u,a){return a.insert?u+p.length(a):a.delete?u-a.delete:u},0)},v.prototype.length=function(){return this.reduce(function(u,a){return u+p.length(a)},0)},v.prototype.slice=function(u,a){u=u||0,typeof a!="number"&&(a=1/0);for(var f=[],_=p.iterator(this.ops),g=0;g0&&f.next(g.retain-b)}for(var h=new v(_);a.hasNext()||f.hasNext();)if(f.peekType()==="insert")h.push(f.next());else if(a.peekType()==="delete")h.push(a.next());else{var s=Math.min(a.peekLength(),f.peekLength()),m=a.next(s),c=f.next(s);if(typeof c.retain=="number"){var E={};typeof m.retain=="number"?E.retain=s:E.insert=m.insert;var T=p.attributes.compose(m.attributes,c.attributes,typeof m.retain=="number");if(T&&(E.attributes=T),h.push(E),!f.hasNext()&&l(h.ops[h.ops.length-1],E)){var x=new v(a.rest());return h.concat(x).chop()}}else typeof c.delete=="number"&&typeof m.retain=="number"&&h.push(c)}return h.chop()},v.prototype.concat=function(u){var a=new v(this.ops.slice());return u.ops.length>0&&(a.push(u.ops[0]),a.ops=a.ops.concat(u.ops.slice(1))),a},v.prototype.diff=function(u,a){if(this.ops===u.ops)return new v;var f=[this,u].map(function(s){return s.map(function(m){if(m.insert!=null)return typeof m.insert=="string"?m.insert:y;var c=s===u?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")}),_=new v,g=o(f[0],f[1],a),b=p.iterator(this.ops),h=p.iterator(u.ops);return g.forEach(function(s){for(var m=s[1].length;m>0;){var c=0;switch(s[0]){case o.INSERT:c=Math.min(h.peekLength(),m),_.push(h.next(c));break;case o.DELETE:c=Math.min(m,b.peekLength()),b.next(c),_.delete(c);break;case o.EQUAL:c=Math.min(b.peekLength(),h.peekLength(),m);var E=b.next(c),T=h.next(c);l(E.insert,T.insert)?_.retain(c,p.attributes.diff(E.attributes,T.attributes)):_.push(T).delete(c);break}m-=c}}),_.chop()},v.prototype.eachLine=function(u,a){a=a||` `;for(var f=p.iterator(this.ops),_=new v,g=0;f.hasNext();){if(f.peekType()!=="insert")return;var b=f.peek(),h=p.length(b)-f.peekLength(),s=typeof b.insert=="string"?b.insert.indexOf(a,h)-h:-1;if(s<0)_.push(f.next());else if(s>0)_.push(f.next(s));else{if(u(_,f.next(1).attributes||{},g)===!1)return;g+=1,_=new v}}_.length()>0&&u(_,{},g)},v.prototype.transform=function(u,a){if(a=!!a,typeof u=="number")return this.transformPosition(u,a);for(var f=p.iterator(this.ops),_=p.iterator(u.ops),g=new v;f.hasNext()||_.hasNext();)if(f.peekType()==="insert"&&(a||_.peekType()!=="insert"))g.retain(p.length(f.next()));else if(_.peekType()==="insert")g.push(_.next());else{var b=Math.min(f.peekLength(),_.peekLength()),h=f.next(b),s=_.next(b);if(h.delete)continue;s.delete?g.push(s):g.retain(b,p.attributes.transform(h.attributes,s.attributes,a))}return g.chop()},v.prototype.transformPosition=function(u,a){a=!!a;for(var f=p.iterator(this.ops),_=0;f.hasNext()&&_<=u;){var g=f.peekLength(),b=f.peekType();if(f.next(),b==="delete"){u-=Math.min(g,u-_);continue}else b==="insert"&&(_0&&(R1&&arguments[1]!==void 0?arguments[1]:!1;if(B&&(R===0||R>=this.length()-x)){var z=this.clone();return R===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var Y=l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"split",this).call(this,R,B);return this.cache={},Y}}}]),N}(a.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[b.default,a.default.Embed,s.default];function S(w){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return w==null||(typeof w.formats=="function"&&(N=(0,p.default)(N,w.formats())),w.parent==null||w.parent.blotName=="scroll"||w.parent.statics.scope!==w.statics.scope)?N:S(w.parent,N)}r.bubbleFormats=S,r.BlockEmbed=A,r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(q,L){var j=[],D=!0,G=!1,$=void 0;try{for(var C=q[Symbol.iterator](),K;!(D=(K=C.next()).done)&&(j.push(K.value),!(L&&j.length===L));D=!0);}catch(Q){G=!0,$=Q}finally{try{!D&&C.return&&C.return()}finally{if(G)throw $}}return j}return function(q,L){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return W(q,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(q,L){for(var j=0;j2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof L!="string"){var $=L.attrName||L.blotName;typeof $=="string"?this.register("formats/"+$,L,j):Object.keys(L).forEach(function(C){D.register(C,L[C],j)})}else this.imports[L]!=null&&!G&&k.warn("Overwriting "+L+" with",j),this.imports[L]=j,(L.startsWith("blots/")||L.startsWith("formats/"))&&j.blotName!=="abstract"?h.default.register(j):L.startsWith("modules")&&typeof j.register=="function"&&j.register()}}]);function W(q){var L=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(N(this,W),this.options=B(q,j),this.container=this.options.container,this.container==null)return k.error("Invalid Quill container",q);this.options.debug&&W.debug(this.options.debug);var D=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=h.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new m.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,function($){$===f.default.events.TEXT_CHANGE&&L.root.classList.toggle("ql-blank",L.editor.isBlank())}),this.emitter.on(f.default.events.SCROLL_UPDATE,function($,C){var K=L.selection.lastRange,Q=K&&K.length===0?K.index:void 0;z.call(L,function(){return L.editor.update(null,C,Q)},$)});var G=this.clipboard.convert(`
`+D+"


");this.setContents(G),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(W,[{key:"addContainer",value:function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof L=="string"){var D=L;L=document.createElement("div"),L.classList.add(D)}return this.container.insertBefore(L,j),L}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(L,j,D){var G=this,$=Y(L,j,D),C=l($,4);return L=C[0],j=C[1],D=C[3],z.call(this,function(){return G.editor.deleteText(L,j)},D,L,-1*j)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(L),this.container.classList.toggle("ql-disabled",!L)}},{key:"focus",value:function(){var L=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=L,this.scrollIntoView()}},{key:"format",value:function(L,j){var D=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.default.sources.API;return z.call(this,function(){var $=D.getSelection(!0),C=new y.default;if($==null)return C;if(h.default.query(L,h.default.Scope.BLOCK))C=D.editor.formatLine($.index,$.length,w({},L,j));else{if($.length===0)return D.selection.format(L,j),C;C=D.editor.formatText($.index,$.length,w({},L,j))}return D.setSelection($,f.default.sources.SILENT),C},G)}},{key:"formatLine",value:function(L,j,D,G,$){var C=this,K=void 0,Q=Y(L,j,D,G,$),te=l(Q,4);return L=te[0],j=te[1],K=te[2],$=te[3],z.call(this,function(){return C.editor.formatLine(L,j,K)},$,L,0)}},{key:"formatText",value:function(L,j,D,G,$){var C=this,K=void 0,Q=Y(L,j,D,G,$),te=l(Q,4);return L=te[0],j=te[1],K=te[2],$=te[3],z.call(this,function(){return C.editor.formatText(L,j,K)},$,L,0)}},{key:"getBounds",value:function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=void 0;typeof L=="number"?D=this.selection.getBounds(L,j):D=this.selection.getBounds(L.index,L.length);var G=this.container.getBoundingClientRect();return{bottom:D.bottom-G.top,height:D.height,left:D.left-G.left,right:D.right-G.left,top:D.top-G.top,width:D.width}}},{key:"getContents",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-L,D=Y(L,j),G=l(D,2);return L=G[0],j=G[1],this.editor.getContents(L,j)}},{key:"getFormat",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof L=="number"?this.editor.getFormat(L,j):this.editor.getFormat(L.index,L.length)}},{key:"getIndex",value:function(L){return L.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(L){return this.scroll.leaf(L)}},{key:"getLine",value:function(L){return this.scroll.line(L)}},{key:"getLines",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof L!="number"?this.scroll.lines(L.index,L.length):this.scroll.lines(L,j)}},{key:"getModule",value:function(L){return this.theme.modules[L]}},{key:"getSelection",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return L&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-L,D=Y(L,j),G=l(D,2);return L=G[0],j=G[1],this.editor.getText(L,j)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(L,j,D){var G=this,$=arguments.length>3&&arguments[3]!==void 0?arguments[3]:W.sources.API;return z.call(this,function(){return G.editor.insertEmbed(L,j,D)},$,L)}},{key:"insertText",value:function(L,j,D,G,$){var C=this,K=void 0,Q=Y(L,0,D,G,$),te=l(Q,4);return L=te[0],K=te[2],$=te[3],z.call(this,function(){return C.editor.insertText(L,j,K)},$,L,j.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(L,j,D){this.clipboard.dangerouslyPasteHTML(L,j,D)}},{key:"removeFormat",value:function(L,j,D){var G=this,$=Y(L,j,D),C=l($,4);return L=C[0],j=C[1],D=C[3],z.call(this,function(){return G.editor.removeFormat(L,j)},D,L)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(L){var j=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.default.sources.API;return z.call(this,function(){L=new y.default(L);var G=j.getLength(),$=j.editor.deleteText(0,G),C=j.editor.applyDelta(L),K=C.ops[C.ops.length-1];K!=null&&typeof K.insert=="string"&&K.insert[K.insert.length-1]===` `&&(j.editor.deleteText(j.getLength()-1,1),C.delete(1));var Q=$.compose(C);return Q},D)}},{key:"setSelection",value:function(L,j,D){if(L==null)this.selection.setRange(null,j||W.sources.API);else{var G=Y(L,j,D),$=l(G,4);L=$[0],j=$[1],D=$[3],this.selection.setRange(new s.Range(L,j),D),D!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.default.sources.API,D=new y.default().insert(L);return this.setContents(D,j)}},{key:"update",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.default.sources.USER,j=this.scroll.update(L);return this.selection.update(L),j}},{key:"updateContents",value:function(L){var j=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.default.sources.API;return z.call(this,function(){return L=new y.default(L),j.editor.applyDelta(L,D)},D,!0)}}]),W}();R.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},R.events=f.default.events,R.sources=f.default.sources,R.version="1.3.7",R.imports={delta:y.default,parchment:h.default,"core/module":g.default,"core/theme":P.default};function B(W,q){if(q=(0,E.default)(!0,{container:W,modules:{clipboard:!0,keyboard:!0,history:!0}},q),!q.theme||q.theme===R.DEFAULTS.theme)q.theme=P.default;else if(q.theme=R.import("themes/"+q.theme),q.theme==null)throw new Error("Invalid theme "+q.theme+". Did you register it?");var L=(0,E.default)(!0,{},q.theme.DEFAULTS);[L,q].forEach(function(G){G.modules=G.modules||{},Object.keys(G.modules).forEach(function($){G.modules[$]===!0&&(G.modules[$]={})})});var j=Object.keys(L.modules).concat(Object.keys(q.modules)),D=j.reduce(function(G,$){var C=R.import("modules/"+$);return C==null?k.error("Cannot load "+$+" module. Are you sure you registered it?"):G[$]=C.DEFAULTS||{},G},{});return q.modules!=null&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,E.default)(!0,{},R.DEFAULTS,{modules:D},L,q),["bounds","container","scrollingContainer"].forEach(function(G){typeof q[G]=="string"&&(q[G]=document.querySelector(q[G]))}),q.modules=Object.keys(q.modules).reduce(function(G,$){return q.modules[$]&&(G[$]=q.modules[$]),G},{}),q}function z(W,q,L,j){if(this.options.strict&&!this.isEnabled()&&q===f.default.sources.USER)return new y.default;var D=L==null?null:this.getSelection(),G=this.editor.delta,$=W();if(D!=null&&(L===!0&&(L=D.index),j==null?D=re(D,$,q):j!==0&&(D=re(D,L,j,q)),this.setSelection(D,f.default.sources.SILENT)),$.length()>0){var C,K=[f.default.events.TEXT_CHANGE,$,G,q];if((C=this.emitter).emit.apply(C,[f.default.events.EDITOR_CHANGE].concat(K)),q!==f.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,K)}}return $}function Y(W,q,L,j,D){var G={};return typeof W.index=="number"&&typeof W.length=="number"?typeof q!="number"?(D=j,j=L,L=q,q=W.length,W=W.index):(q=W.length,W=W.index):typeof q!="number"&&(D=j,j=L,L=q,q=0),(typeof L=="undefined"?"undefined":o(L))==="object"?(G=L,D=j):typeof L=="string"&&(j!=null?G[L]=j:D=L),D=D||f.default.sources.API,[W,q,G,D]}function re(W,q,L,j){if(W==null)return null;var D=void 0,G=void 0;if(q instanceof y.default){var $=[W.index,W.index+W.length].map(function(te){return q.transformPosition(te,j!==f.default.sources.USER)}),C=l($,2);D=C[0],G=C[1]}else{var K=[W.index,W.index+W.length].map(function(te){return te=0?te+L:Math.max(q,te+L)}),Q=l(K,2);D=Q[0],G=Q[1]}return new s.Range(D,G-D)}r.expandConfig=B,r.overload=Y,r.default=R},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function b(h,s){for(var m=0;m0){var c=this.parent.isolate(this.offset(),this.length());this.moveChildren(c),c.wrap(this)}}}],[{key:"compare",value:function(m,c){var E=h.order.indexOf(m),T=h.order.indexOf(c);return E>=0||T>=0?E-T:m===c?0:m1?T-1:0),A=1;A1&&arguments[1]!==void 0?arguments[1]:{};o(this,d),this.quill=p,this.options=y};l.DEFAULTS={},r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=["error","warn","log","info"],l="warn";function d(y){if(o.indexOf(y)<=o.indexOf(l)){for(var v,u=arguments.length,a=Array(u>1?u-1:0),f=1;f0&&typeof a[0]!="number")}function u(a,f,_){var g,b;if(y(a)||y(f)||a.prototype!==f.prototype)return!1;if(d(a))return d(f)?(a=o.call(a),f=o.call(f),p(a,f,_)):!1;if(v(a)){if(!v(f)||a.length!==f.length)return!1;for(g=0;g=0;g--)if(h[g]!=s[g])return!1;for(g=h.length-1;g>=0;g--)if(b=h[g],!p(a[b],f[b],_))return!1;return typeof a==typeof f}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(1),l=function(){function d(p,y,v){v===void 0&&(v={}),this.attrName=p,this.keyName=y;var u=o.Scope.TYPE&o.Scope.ATTRIBUTE;v.scope!=null?this.scope=v.scope&o.Scope.LEVEL|u:this.scope=o.Scope.ATTRIBUTE,v.whitelist!=null&&(this.whitelist=v.whitelist)}return d.keys=function(p){return[].map.call(p.attributes,function(y){return y.name})},d.prototype.add=function(p,y){return this.canAdd(p,y)?(p.setAttribute(this.keyName,y),!0):!1},d.prototype.canAdd=function(p,y){var v=o.query(p,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return v==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},d.prototype.remove=function(p){p.removeAttribute(this.keyName)},d.prototype.value=function(p){var y=p.getAttribute(this.keyName);return this.canAdd(p,y)&&y?y:""},d}();r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var o=function(){function A(P,S){var w=[],N=!0,k=!1,R=void 0;try{for(var B=P[Symbol.iterator](),z;!(N=(z=B.next()).done)&&(w.push(z.value),!(S&&w.length===S));N=!0);}catch(Y){k=!0,R=Y}finally{try{!N&&B.return&&B.return()}finally{if(k)throw R}}return w}return function(P,S){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function A(P,S){for(var w=0;w=w+N)){var z=this.newlineIndex(w,!0)+1,Y=B-z+1,re=this.isolate(z,Y),W=re.next;re.format(k,R),W instanceof P&&W.formatAt(0,w-z+N-Y,k,R)}}}},{key:"insertAt",value:function(w,N,k){if(k==null){var R=this.descendant(h.default,w),B=o(R,2),z=B[0],Y=B[1];z.insertAt(Y,N)}}},{key:"length",value:function(){var w=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?w:w+1}},{key:"newlineIndex",value:function(w){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(N)return this.domNode.textContent.slice(0,w).lastIndexOf(` `);var k=this.domNode.textContent.slice(w).indexOf(` `);return k>-1?w+k:-1}},{key:"optimize",value:function(w){this.domNode.textContent.endsWith(` `)||this.appendChild(u.default.create("text",` `)),d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,w);var N=this.next;N!=null&&N.prev===this&&N.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===N.statics.formats(N.domNode)&&(N.optimize(w),N.moveChildren(this),N.remove())}},{key:"replace",value:function(w){d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,w),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(N){var k=u.default.find(N);k==null?N.parentNode.removeChild(N):k instanceof u.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(w){var N=d(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,w);return N.setAttribute("spellcheck",!1),N}},{key:"formats",value:function(){return!0}}]),P}(f.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",r.Code=T,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(q,L){var j=[],D=!0,G=!1,$=void 0;try{for(var C=q[Symbol.iterator](),K;!(D=(K=C.next()).done)&&(j.push(K.value),!(L&&j.length===L));D=!0);}catch(Q){G=!0,$=Q}finally{try{!D&&C.return&&C.return()}finally{if(G)throw $}}return j}return function(q,L){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return W(q,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(q,L){for(var j=0;j=G&&!te.endsWith(` `)&&(D=!0),j.scroll.insertAt($,te);var le=j.scroll.line($),fe=l(le,2),ye=fe[0],M=fe[1],F=(0,w.default)({},(0,s.bubbleFormats)(ye));if(ye instanceof m.default){var J=ye.descendant(f.default.Leaf,M),oe=l(J,1),ie=oe[0];F=(0,w.default)(F,(0,s.bubbleFormats)(ie))}Q=u.default.attributes.diff(F,Q)||{}}else if(o(C.insert)==="object"){var H=Object.keys(C.insert)[0];if(H==null)return $;j.scroll.insertAt($,H,C.insert[H])}G+=K}return Object.keys(Q).forEach(function(Z){j.scroll.formatAt($,K,Z,Q[Z])}),$+K},0),L.reduce(function($,C){return typeof C.delete=="number"?(j.scroll.deleteAt($,C.delete),$):$+(C.retain||C.insert.length||1)},0),this.scroll.batchEnd(),this.update(L)}},{key:"deleteText",value:function(L,j){return this.scroll.deleteAt(L,j),this.update(new y.default().retain(L).delete(j))}},{key:"formatLine",value:function(L,j){var D=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(G).forEach(function($){if(!(D.scroll.whitelist!=null&&!D.scroll.whitelist[$])){var C=D.scroll.lines(L,Math.max(j,1)),K=j;C.forEach(function(Q){var te=Q.length();if(!(Q instanceof g.default))Q.format($,G[$]);else{var le=L-Q.offset(D.scroll),fe=Q.newlineIndex(le+K)-le+1;Q.formatAt(le,fe,$,G[$])}K-=te})}}),this.scroll.optimize(),this.update(new y.default().retain(L).retain(j,(0,x.default)(G)))}},{key:"formatText",value:function(L,j){var D=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(G).forEach(function($){D.scroll.formatAt(L,j,$,G[$])}),this.update(new y.default().retain(L).retain(j,(0,x.default)(G)))}},{key:"getContents",value:function(L,j){return this.delta.slice(L,L+j)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(L,j){return L.concat(j.delta())},new y.default)}},{key:"getFormat",value:function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=[],G=[];j===0?this.scroll.path(L).forEach(function(C){var K=l(C,1),Q=K[0];Q instanceof m.default?D.push(Q):Q instanceof f.default.Leaf&&G.push(Q)}):(D=this.scroll.lines(L,j),G=this.scroll.descendants(f.default.Leaf,L,j));var $=[D,G].map(function(C){if(C.length===0)return{};for(var K=(0,s.bubbleFormats)(C.shift());Object.keys(K).length>0;){var Q=C.shift();if(Q==null)return K;K=Y((0,s.bubbleFormats)(Q),K)}return K});return w.default.apply(w.default,$)}},{key:"getText",value:function(L,j){return this.getContents(L,j).filter(function(D){return typeof D.insert=="string"}).map(function(D){return D.insert}).join("")}},{key:"insertEmbed",value:function(L,j,D){return this.scroll.insertAt(L,j,D),this.update(new y.default().retain(L).insert(k({},j,D)))}},{key:"insertText",value:function(L,j){var D=this,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j=j.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(L,j),Object.keys(G).forEach(function($){D.scroll.formatAt(L,j.length,$,G[$])}),this.update(new y.default().retain(L).insert(j,(0,x.default)(G)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var L=this.scroll.children.head;return L.statics.blotName!==m.default.blotName||L.children.length>1?!1:L.children.head instanceof E.default}},{key:"removeFormat",value:function(L,j){var D=this.getText(L,j),G=this.scroll.line(L+j),$=l(G,2),C=$[0],K=$[1],Q=0,te=new y.default;C!=null&&(C instanceof g.default?Q=C.newlineIndex(K)-K+1:Q=C.length()-K,te=C.delta().slice(K,K+Q-1).insert(` `));var le=this.getContents(L,j+Q),fe=le.diff(new y.default().insert(D).concat(te)),ye=new y.default().retain(L).concat(fe);return this.applyDelta(ye)}},{key:"update",value:function(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,G=this.delta;if(j.length===1&&j[0].type==="characterData"&&j[0].target.data.match(B)&&f.default.find(j[0].target)){var $=f.default.find(j[0].target),C=(0,s.bubbleFormats)($),K=$.offset(this.scroll),Q=j[0].oldValue.replace(h.default.CONTENTS,""),te=new y.default().insert(Q),le=new y.default().insert($.value()),fe=new y.default().retain(K).concat(te.diff(le,D));L=fe.reduce(function(ye,M){return M.insert?ye.insert(M.insert,C):ye.push(M)},new y.default),this.delta=G.compose(L)}else this.delta=this.getDelta(),(!L||!(0,P.default)(G.compose(L),this.delta))&&(L=G.diff(this.delta,D));return L}}]),W}();function Y(W,q){return Object.keys(q).reduce(function(L,j){return W[j]==null||(q[j]===W[j]?L[j]=q[j]:Array.isArray(q[j])?q[j].indexOf(W[j])<0&&(L[j]=q[j].concat([W[j]])):L[j]=[q[j],W[j]]),L},{})}function re(W){return W.reduce(function(q,L){if(L.insert===1){var j=(0,x.default)(L.attributes);return delete j.image,q.insert({image:L.attributes.image},j)}if(L.attributes!=null&&(L.attributes.list===!0||L.attributes.bullet===!0)&&(L=(0,x.default)(L),L.attributes.list?L.attributes.list="ordered":(L.attributes.list="bullet",delete L.attributes.bullet)),typeof L.insert=="string"){var D=L.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return q.insert(D,L.attributes)}return q.push(L)},new y.default)}r.default=z},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var o=function(){function A(P,S){var w=[],N=!0,k=!1,R=void 0;try{for(var B=P[Symbol.iterator](),z;!(N=(z=B.next()).done)&&(w.push(z.value),!(S&&w.length===S));N=!0);}catch(Y){k=!0,R=Y}finally{try{!N&&B.return&&B.return()}finally{if(k)throw R}}return w}return function(P,S){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return A(P,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function A(P,S){for(var w=0;w1&&arguments[1]!==void 0?arguments[1]:0;m(this,A),this.index=P,this.length=S},T=function(){function A(P,S){var w=this;m(this,A),this.emitter=S,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){w.mouseDown||setTimeout(w.update.bind(w,_.default.sources.USER),1)}),this.emitter.on(_.default.events.EDITOR_CHANGE,function(N,k){N===_.default.events.TEXT_CHANGE&&k.length()>0&&w.update(_.default.sources.SILENT)}),this.emitter.on(_.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!w.hasFocus()){var N=w.getNativeRange();N!=null&&N.start.node!==w.cursor.textNode&&w.emitter.once(_.default.events.SCROLL_UPDATE,function(){try{w.setNativeRange(N.start.node,N.start.offset,N.end.node,N.end.offset)}catch(k){}})}}),this.emitter.on(_.default.events.SCROLL_OPTIMIZE,function(N,k){if(k.range){var R=k.range,B=R.startNode,z=R.startOffset,Y=R.endNode,re=R.endOffset;w.setNativeRange(B,z,Y,re)}}),this.update(_.default.sources.SILENT)}return l(A,[{key:"handleComposition",value:function(){var S=this;this.root.addEventListener("compositionstart",function(){S.composing=!0}),this.root.addEventListener("compositionend",function(){if(S.composing=!1,S.cursor.parent){var w=S.cursor.restore();if(!w)return;setTimeout(function(){S.setNativeRange(w.startNode,w.startOffset,w.endNode,w.endOffset)},1)}})}},{key:"handleDragging",value:function(){var S=this;this.emitter.listenDOM("mousedown",document.body,function(){S.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){S.mouseDown=!1,S.update(_.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(S,w){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[S])){this.scroll.update();var N=this.getNativeRange();if(!(N==null||!N.native.collapsed||p.default.query(S,p.default.Scope.BLOCK))){if(N.start.node!==this.cursor.textNode){var k=p.default.find(N.start.node,!1);if(k==null)return;if(k instanceof p.default.Leaf){var R=k.split(N.start.offset);k.parent.insertBefore(this.cursor,R)}else k.insertBefore(this.cursor,N.start.node);this.cursor.attach()}this.cursor.format(S,w),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=this.scroll.length();S=Math.min(S,N-1),w=Math.min(S+w,N-1)-S;var k=void 0,R=this.scroll.leaf(S),B=o(R,2),z=B[0],Y=B[1];if(z==null)return null;var re=z.position(Y,!0),W=o(re,2);k=W[0],Y=W[1];var q=document.createRange();if(w>0){q.setStart(k,Y);var L=this.scroll.leaf(S+w),j=o(L,2);if(z=j[0],Y=j[1],z==null)return null;var D=z.position(Y,!0),G=o(D,2);return k=G[0],Y=G[1],q.setEnd(k,Y),q.getBoundingClientRect()}else{var $="left",C=void 0;return k instanceof Text?(Y0&&($="right")),{bottom:C.top+C.height,height:C.height,left:C[$],right:C[$],top:C.top,width:0}}}},{key:"getNativeRange",value:function(){var S=document.getSelection();if(S==null||S.rangeCount<=0)return null;var w=S.getRangeAt(0);if(w==null)return null;var N=this.normalizeNative(w);return c.info("getNativeRange",N),N}},{key:"getRange",value:function(){var S=this.getNativeRange();if(S==null)return[null,null];var w=this.normalizedToRange(S);return[w,S]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(S){var w=this,N=[[S.start.node,S.start.offset]];S.native.collapsed||N.push([S.end.node,S.end.offset]);var k=N.map(function(z){var Y=o(z,2),re=Y[0],W=Y[1],q=p.default.find(re,!0),L=q.offset(w.scroll);return W===0?L:q instanceof p.default.Container?L+q.length():L+q.index(re,W)}),R=Math.min(Math.max.apply(Math,s(k)),this.scroll.length()-1),B=Math.min.apply(Math,[R].concat(s(k)));return new E(B,R-B)}},{key:"normalizeNative",value:function(S){if(!x(this.root,S.startContainer)||!S.collapsed&&!x(this.root,S.endContainer))return null;var w={start:{node:S.startContainer,offset:S.startOffset},end:{node:S.endContainer,offset:S.endOffset},native:S};return[w.start,w.end].forEach(function(N){for(var k=N.node,R=N.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>R)k=k.childNodes[R],R=0;else if(k.childNodes.length===R)k=k.lastChild,R=k instanceof Text?k.data.length:k.childNodes.length+1;else break;N.node=k,N.offset=R}),w}},{key:"rangeToNative",value:function(S){var w=this,N=S.collapsed?[S.index]:[S.index,S.index+S.length],k=[],R=this.scroll.length();return N.forEach(function(B,z){B=Math.min(R-1,B);var Y=void 0,re=w.scroll.leaf(B),W=o(re,2),q=W[0],L=W[1],j=q.position(L,z!==0),D=o(j,2);Y=D[0],L=D[1],k.push(Y,L)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(S){var w=this.lastRange;if(w!=null){var N=this.getBounds(w.index,w.length);if(N!=null){var k=this.scroll.length()-1,R=this.scroll.line(Math.min(w.index,k)),B=o(R,1),z=B[0],Y=z;if(w.length>0){var re=this.scroll.line(Math.min(w.index+w.length,k)),W=o(re,1);Y=W[0]}if(!(z==null||Y==null)){var q=S.getBoundingClientRect();N.topq.bottom&&(S.scrollTop+=N.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(S,w){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(c.info("setNativeRange",S,w,N,k),!(S!=null&&(this.root.parentNode==null||S.parentNode==null||N.parentNode==null))){var B=document.getSelection();if(B!=null)if(S!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||R||S!==z.startContainer||w!==z.startOffset||N!==z.endContainer||k!==z.endOffset){S.tagName=="BR"&&(w=[].indexOf.call(S.parentNode.childNodes,S),S=S.parentNode),N.tagName=="BR"&&(k=[].indexOf.call(N.parentNode.childNodes,N),N=N.parentNode);var Y=document.createRange();Y.setStart(S,w),Y.setEnd(N,k),B.removeAllRanges(),B.addRange(Y)}}else B.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.default.sources.API;if(typeof w=="string"&&(N=w,w=!1),c.info("setRange",S),S!=null){var k=this.rangeToNative(S);this.setNativeRange.apply(this,s(k).concat([w]))}else this.setNativeRange(null);this.update(N)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_.default.sources.USER,w=this.lastRange,N=this.getRange(),k=o(N,2),R=k[0],B=k[1];if(this.lastRange=R,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,a.default)(w,this.lastRange)){var z;!this.composing&&B!=null&&B.native.collapsed&&B.start.node!==this.cursor.textNode&&this.cursor.restore();var Y=[_.default.events.SELECTION_CHANGE,(0,v.default)(this.lastRange),(0,v.default)(w),S];if((z=this.emitter).emit.apply(z,[_.default.events.EDITOR_CHANGE].concat(Y)),S!==_.default.sources.SILENT){var re;(re=this.emitter).emit.apply(re,Y)}}}}]),A}();function x(A,P){try{P.parentNode}catch(S){return!1}return P instanceof Text&&(P=P.parentNode),A.contains(P)}r.Range=E,r.default=T},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function _(g,b){for(var h=0;h0&&(f+=1),[this.parent.domNode,f]},v.prototype.value=function(){var u;return u={},u[this.statics.blotName]=this.statics.value(this.domNode)||!0,u},v.scope=d.Scope.INLINE_BLOT,v}(l.default);r.default=p},function(n,r,i){var o=i(11),l=i(3),d={attributes:{compose:function(y,v,u){typeof y!="object"&&(y={}),typeof v!="object"&&(v={});var a=l(!0,{},v);u||(a=Object.keys(a).reduce(function(_,g){return a[g]!=null&&(_[g]=a[g]),_},{}));for(var f in y)y[f]!==void 0&&v[f]===void 0&&(a[f]=y[f]);return Object.keys(a).length>0?a:void 0},diff:function(y,v){typeof y!="object"&&(y={}),typeof v!="object"&&(v={});var u=Object.keys(y).concat(Object.keys(v)).reduce(function(a,f){return o(y[f],v[f])||(a[f]=v[f]===void 0?null:v[f]),a},{});return Object.keys(u).length>0?u:void 0},transform:function(y,v,u){if(typeof y!="object")return v;if(typeof v=="object"){if(!u)return v;var a=Object.keys(v).reduce(function(f,_){return y[_]===void 0&&(f[_]=v[_]),f},{});return Object.keys(a).length>0?a:void 0}}},iterator:function(y){return new p(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function p(y){this.ops=y,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(y){y||(y=1/0);var v=this.ops[this.index];if(v){var u=this.offset,a=d.length(v);if(y>=a-u?(y=a-u,this.index+=1,this.offset=0):this.offset+=y,typeof v.delete=="number")return{delete:y};var f={};return v.attributes&&(f.attributes=v.attributes),typeof v.retain=="number"?f.retain=y:typeof v.insert=="string"?f.insert=v.insert.substr(u,y):f.insert=v.insert,f}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?d.length(this.ops[this.index])-this.offset:1/0},p.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,v=this.index,u=this.next(),a=this.ops.slice(this.index);return this.offset=y,this.index=v,[u].concat(a)}else return[]},n.exports=d},function(n,r){var i=function(){function o(g,b){return b!=null&&g instanceof b}var l;try{l=Map}catch(g){l=function(){}}var d;try{d=Set}catch(g){d=function(){}}var p;try{p=Promise}catch(g){p=function(){}}function y(g,b,h,s,m){typeof b=="object"&&(h=b.depth,s=b.prototype,m=b.includeNonEnumerable,b=b.circular);var c=[],E=[],T=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof h=="undefined"&&(h=1/0);function x(A,P){if(A===null)return null;if(P===0)return A;var S,w;if(typeof A!="object")return A;if(o(A,l))S=new l;else if(o(A,d))S=new d;else if(o(A,p))S=new p(function(q,L){A.then(function(j){q(x(j,P-1))},function(j){L(x(j,P-1))})});else if(y.__isArray(A))S=[];else if(y.__isRegExp(A))S=new RegExp(A.source,_(A)),A.lastIndex&&(S.lastIndex=A.lastIndex);else if(y.__isDate(A))S=new Date(A.getTime());else{if(T&&Buffer.isBuffer(A))return Buffer.allocUnsafe?S=Buffer.allocUnsafe(A.length):S=new Buffer(A.length),A.copy(S),S;o(A,Error)?S=Object.create(A):typeof s=="undefined"?(w=Object.getPrototypeOf(A),S=Object.create(w)):(S=Object.create(s),w=s)}if(b){var N=c.indexOf(A);if(N!=-1)return E[N];c.push(A),E.push(S)}o(A,l)&&A.forEach(function(q,L){var j=x(L,P-1),D=x(q,P-1);S.set(j,D)}),o(A,d)&&A.forEach(function(q){var L=x(q,P-1);S.add(L)});for(var k in A){var R;w&&(R=Object.getOwnPropertyDescriptor(w,k)),!(R&&R.set==null)&&(S[k]=x(A[k],P-1))}if(Object.getOwnPropertySymbols)for(var B=Object.getOwnPropertySymbols(A),k=0;k0){if(Y instanceof a.BlockEmbed||L instanceof a.BlockEmbed){this.optimize();return}if(Y instanceof h.default){var j=Y.newlineIndex(Y.length(),!0);if(j>-1&&(Y=Y.split(j+1),Y===L)){this.optimize();return}}else if(L instanceof h.default){var D=L.newlineIndex(0);D>-1&&L.split(D+1)}var G=L.children.head instanceof g.default?null:L.children.head;Y.moveChildren(L,G),Y.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,R,B,z){this.whitelist!=null&&!this.whitelist[B]||(d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,k,R,B,z),this.optimize())}},{key:"insertAt",value:function(k,R,B){if(!(B!=null&&this.whitelist!=null&&!this.whitelist[R])){if(k>=this.length())if(B==null||y.default.query(R,y.default.Scope.BLOCK)==null){var z=y.default.create(this.statics.defaultChild);this.appendChild(z),B==null&&R.endsWith(` `)&&(R=R.slice(0,-1)),z.insertAt(0,R,B)}else{var Y=y.default.create(R,B);this.appendChild(Y)}else d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,k,R,B);this.optimize()}}},{key:"insertBefore",value:function(k,R){if(k.statics.scope===y.default.Scope.INLINE_BLOT){var B=y.default.create(this.statics.defaultChild);B.appendChild(k),k=B}d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,k,R)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(A,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,B=function z(Y,re,W){var q=[],L=W;return Y.children.forEachAt(re,W,function(j,D,G){A(j)?q.push(j):j instanceof y.default.Container&&(q=q.concat(z(j,D,L))),L-=G}),q};return B(this,k,R)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,k,R),k.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,k,R))}},{key:"path",value:function(k){return d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var R=u.default.sources.USER;typeof k=="string"&&(R=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,R,k),d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,R,k)}}}]),w}(y.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[f.default,a.BlockEmbed,m.default],r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},l=function(){function C(K,Q){var te=[],le=!0,fe=!1,ye=void 0;try{for(var M=K[Symbol.iterator](),F;!(le=(F=M.next()).done)&&(te.push(F.value),!(Q&&te.length===Q));le=!0);}catch(J){fe=!0,ye=J}finally{try{!le&&M.return&&M.return()}finally{if(fe)throw ye}}return te}return function(K,Q){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return C(K,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function C(K,Q){for(var te=0;te1&&arguments[1]!==void 0?arguments[1]:{},fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ye=$(te);if(ye==null||ye.key==null)return B.warn("Attempted to add invalid keyboard binding",ye);typeof le=="function"&&(le={handler:le}),typeof fe=="function"&&(fe={handler:fe}),ye=(0,f.default)(ye,le,fe),this.bindings[ye.key]=this.bindings[ye.key]||[],this.bindings[ye.key].push(ye)}},{key:"listen",value:function(){var te=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented){var fe=le.which||le.keyCode,ye=(te.bindings[fe]||[]).filter(function(de){return K.match(le,de)});if(ye.length!==0){var M=te.quill.getSelection();if(!(M==null||!te.quill.hasFocus())){var F=te.quill.getLine(M.index),J=l(F,2),oe=J[0],ie=J[1],H=te.quill.getLeaf(M.index),Z=l(H,2),X=Z[0],ee=Z[1],V=M.length===0?[X,ee]:te.quill.getLeaf(M.index+M.length),ue=l(V,2),ae=ue[0],se=ue[1],ce=X instanceof m.default.Text?X.value().slice(0,ee):"",ge=ae instanceof m.default.Text?ae.value().slice(se):"",pe={collapsed:M.length===0,empty:M.length===0&&oe.length()<=1,format:te.quill.getFormat(M),offset:ie,prefix:ce,suffix:ge},_e=ye.some(function(de){if(de.collapsed!=null&&de.collapsed!==pe.collapsed||de.empty!=null&&de.empty!==pe.empty||de.offset!=null&&de.offset!==pe.offset)return!1;if(Array.isArray(de.format)){if(de.format.every(function(Ne){return pe.format[Ne]==null}))return!1}else if(o(de.format)==="object"&&!Object.keys(de.format).every(function(Ne){return de.format[Ne]===!0?pe.format[Ne]!=null:de.format[Ne]===!1?pe.format[Ne]==null:(0,u.default)(de.format[Ne],pe.format[Ne])}))return!1;return de.prefix!=null&&!de.prefix.test(pe.prefix)||de.suffix!=null&&!de.suffix.test(pe.suffix)?!1:de.handler.call(te,M,pe)!==!0});_e&&le.preventDefault()}}}})}}]),K}(P.default);Y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Y.DEFAULTS={bindings:{bold:G("bold"),italic:G("italic"),underline:G("underline"),indent:{key:Y.keys.TAB,format:["blockquote","indent","list"],handler:function(K,Q){if(Q.collapsed&&Q.offset!==0)return!0;this.quill.format("indent","+1",E.default.sources.USER)}},outdent:{key:Y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(K,Q){if(Q.collapsed&&Q.offset!==0)return!0;this.quill.format("indent","-1",E.default.sources.USER)}},"outdent backspace":{key:Y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(K,Q){Q.format.indent!=null?this.quill.format("indent","-1",E.default.sources.USER):Q.format.list!=null&&this.quill.format("list",!1,E.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:Y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(K){this.quill.deleteText(K.index-1,1,E.default.sources.USER)}},tab:{key:Y.keys.TAB,handler:function(K){this.quill.history.cutoff();var Q=new g.default().retain(K.index).delete(K.length).insert(" ");this.quill.updateContents(Q,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(K.index+1,E.default.sources.SILENT)}},"list empty enter":{key:Y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(K,Q){this.quill.format("list",!1,E.default.sources.USER),Q.format.indent&&this.quill.format("indent",!1,E.default.sources.USER)}},"checklist enter":{key:Y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(K){var Q=this.quill.getLine(K.index),te=l(Q,2),le=te[0],fe=te[1],ye=(0,f.default)({},le.formats(),{list:"checked"}),M=new g.default().retain(K.index).insert(` `,ye).retain(le.length()-fe-1).retain(1,{list:"unchecked"});this.quill.updateContents(M,E.default.sources.USER),this.quill.setSelection(K.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(K,Q){var te=this.quill.getLine(K.index),le=l(te,2),fe=le[0],ye=le[1],M=new g.default().retain(K.index).insert(` `,Q.format).retain(fe.length()-ye-1).retain(1,{header:null});this.quill.updateContents(M,E.default.sources.USER),this.quill.setSelection(K.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(K,Q){var te=Q.prefix.length,le=this.quill.getLine(K.index),fe=l(le,2),ye=fe[0],M=fe[1];if(M>te)return!0;var F=void 0;switch(Q.prefix.trim()){case"[]":case"[ ]":F="unchecked";break;case"[x]":F="checked";break;case"-":case"*":F="bullet";break;default:F="ordered"}this.quill.insertText(K.index," ",E.default.sources.USER),this.quill.history.cutoff();var J=new g.default().retain(K.index-M).delete(te+1).retain(ye.length()-2-M).retain(1,{list:F});this.quill.updateContents(J,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(K.index-te,E.default.sources.SILENT)}},"code exit":{key:Y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(K){var Q=this.quill.getLine(K.index),te=l(Q,2),le=te[0],fe=te[1],ye=new g.default().retain(K.index+le.length()-fe-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ye,E.default.sources.USER)}},"embed left":re(Y.keys.LEFT,!1),"embed left shift":re(Y.keys.LEFT,!0),"embed right":re(Y.keys.RIGHT,!1),"embed right shift":re(Y.keys.RIGHT,!0)}};function re(C,K){var Q,te=C===Y.keys.LEFT?"prefix":"suffix";return Q={key:C,shiftKey:K,altKey:null},w(Q,te,/^$/),w(Q,"handler",function(fe){var ye=fe.index;C===Y.keys.RIGHT&&(ye+=fe.length+1);var M=this.quill.getLeaf(ye),F=l(M,1),J=F[0];return J instanceof m.default.Embed?(C===Y.keys.LEFT?K?this.quill.setSelection(fe.index-1,fe.length+1,E.default.sources.USER):this.quill.setSelection(fe.index-1,E.default.sources.USER):K?this.quill.setSelection(fe.index,fe.length+1,E.default.sources.USER):this.quill.setSelection(fe.index+fe.length+1,E.default.sources.USER),!1):!0}),Q}function W(C,K){if(!(C.index===0||this.quill.getLength()<=1)){var Q=this.quill.getLine(C.index),te=l(Q,1),le=te[0],fe={};if(K.offset===0){var ye=this.quill.getLine(C.index-1),M=l(ye,1),F=M[0];if(F!=null&&F.length()>1){var J=le.formats(),oe=this.quill.getFormat(C.index-1,1);fe=h.default.attributes.diff(J,oe)||{}}}var ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(K.prefix)?2:1;this.quill.deleteText(C.index-ie,ie,E.default.sources.USER),Object.keys(fe).length>0&&this.quill.formatLine(C.index-ie,ie,fe,E.default.sources.USER),this.quill.focus()}}function q(C,K){var Q=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(K.suffix)?2:1;if(!(C.index>=this.quill.getLength()-Q)){var te={},le=0,fe=this.quill.getLine(C.index),ye=l(fe,1),M=ye[0];if(K.offset>=M.length()-1){var F=this.quill.getLine(C.index+1),J=l(F,1),oe=J[0];if(oe){var ie=M.formats(),H=this.quill.getFormat(C.index,1);te=h.default.attributes.diff(ie,H)||{},le=oe.length()}}this.quill.deleteText(C.index,Q,E.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(C.index+le-1,Q,te,E.default.sources.USER)}}function L(C){var K=this.quill.getLines(C),Q={};if(K.length>1){var te=K[0].formats(),le=K[K.length-1].formats();Q=h.default.attributes.diff(le,te)||{}}this.quill.deleteText(C,E.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(C.index,1,Q,E.default.sources.USER),this.quill.setSelection(C.index,E.default.sources.SILENT),this.quill.focus()}function j(C,K){var Q=this;C.length>0&&this.quill.scroll.deleteAt(C.index,C.length);var te=Object.keys(K.format).reduce(function(le,fe){return m.default.query(fe,m.default.Scope.BLOCK)&&!Array.isArray(K.format[fe])&&(le[fe]=K.format[fe]),le},{});this.quill.insertText(C.index,` `,te,E.default.sources.USER),this.quill.setSelection(C.index+1,E.default.sources.SILENT),this.quill.focus(),Object.keys(K.format).forEach(function(le){te[le]==null&&(Array.isArray(K.format[le])||le!=="link"&&Q.quill.format(le,K.format[le],E.default.sources.USER))})}function D(C){return{key:Y.keys.TAB,shiftKey:!C,format:{"code-block":!0},handler:function(Q){var te=m.default.query("code-block"),le=Q.index,fe=Q.length,ye=this.quill.scroll.descendant(te,le),M=l(ye,2),F=M[0],J=M[1];if(F!=null){var oe=this.quill.getIndex(F),ie=F.newlineIndex(J,!0)+1,H=F.newlineIndex(oe+J+fe),Z=F.domNode.textContent.slice(ie,H).split(` `);J=0,Z.forEach(function(X,ee){C?(F.insertAt(ie+J,te.TAB),J+=te.TAB.length,ee===0?le+=te.TAB.length:fe+=te.TAB.length):X.startsWith(te.TAB)&&(F.deleteAt(ie+J,te.TAB.length),J-=te.TAB.length,ee===0?le-=te.TAB.length:fe-=te.TAB.length),J+=X.length+1}),this.quill.update(E.default.sources.USER),this.quill.setSelection(le,fe,E.default.sources.SILENT)}}}}function G(C){return{key:C[0].toUpperCase(),shortKey:!0,handler:function(Q,te){this.quill.format(C,!te.format[C],E.default.sources.USER)}}}function $(C){if(typeof C=="string"||typeof C=="number")return $({key:C});if((typeof C=="undefined"?"undefined":o(C))==="object"&&(C=(0,y.default)(C,!1)),typeof C.key=="string")if(Y.keys[C.key.toUpperCase()]!=null)C.key=Y.keys[C.key.toUpperCase()];else if(C.key.length===1)C.key=C.key.toUpperCase().charCodeAt(0);else return null;return C.shortKey&&(C[z]=C.shortKey,delete C.shortKey),C}r.default=Y,r.SHORTKEY=z},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(s,m){var c=[],E=!0,T=!1,x=void 0;try{for(var A=s[Symbol.iterator](),P;!(E=(P=A.next()).done)&&(c.push(P.value),!(m&&c.length===m));E=!0);}catch(S){T=!0,x=S}finally{try{!E&&A.return&&A.return()}finally{if(T)throw x}}return c}return function(s,m){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return h(s,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function h(s,m,c){s===null&&(s=Function.prototype);var E=Object.getOwnPropertyDescriptor(s,m);if(E===void 0){var T=Object.getPrototypeOf(s);return T===null?void 0:h(T,m,c)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(c)}},d=function(){function h(s,m){for(var c=0;c-1}r.default=f,r.sanitize=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(h,s){for(var m=0;m1&&arguments[1]!==void 0?arguments[1]:!1,c=this.container.querySelector(".ql-selected");if(s!==c&&(c!=null&&c.classList.remove("ql-selected"),s!=null&&(s.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(s.parentNode.children,s),s.hasAttribute("data-value")?this.label.setAttribute("data-value",s.getAttribute("data-value")):this.label.removeAttribute("data-value"),s.hasAttribute("data-label")?this.label.setAttribute("data-label",s.getAttribute("data-label")):this.label.removeAttribute("data-label"),m))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":o(Event))==="object"){var E=document.createEvent("Event");E.initEvent("change",!0,!0),this.select.dispatchEvent(E)}this.close()}}},{key:"update",value:function(){var s=void 0;if(this.select.selectedIndex>-1){var m=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];s=this.select.options[this.select.selectedIndex],this.selectItem(m)}else this.selectItem(null);var c=s!=null&&s!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",c)}}]),b}();r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),l=B(o),d=i(5),p=B(d),y=i(4),v=B(y),u=i(16),a=B(u),f=i(25),_=B(f),g=i(24),b=B(g),h=i(35),s=B(h),m=i(6),c=B(m),E=i(22),T=B(E),x=i(7),A=B(x),P=i(55),S=B(P),w=i(42),N=B(w),k=i(23),R=B(k);function B(z){return z&&z.__esModule?z:{default:z}}p.default.register({"blots/block":v.default,"blots/block/embed":y.BlockEmbed,"blots/break":a.default,"blots/container":_.default,"blots/cursor":b.default,"blots/embed":s.default,"blots/inline":c.default,"blots/scroll":T.default,"blots/text":A.default,"modules/clipboard":S.default,"modules/history":N.default,"modules/keyboard":R.default}),l.default.register(v.default,a.default,b.default,c.default,T.default,A.default),r.default=p.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(1),l=function(){function d(p){this.domNode=p,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(d.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),d.create=function(p){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?y=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?y=document.createElement(p):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},d.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},d.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return o.create(p)},d.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},d.prototype.deleteAt=function(p,y){var v=this.isolate(p,y);v.remove()},d.prototype.formatAt=function(p,y,v,u){var a=this.isolate(p,y);if(o.query(v,o.Scope.BLOT)!=null&&u)a.wrap(v,u);else if(o.query(v,o.Scope.ATTRIBUTE)!=null){var f=o.create(this.statics.scope);a.wrap(f),f.format(v,u)}},d.prototype.insertAt=function(p,y,v){var u=v==null?o.create("text",y):o.create(y,v),a=this.split(p);this.parent.insertBefore(u,a)},d.prototype.insertInto=function(p,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var v=null;p.children.insertBefore(this,y),y!=null&&(v=y.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=v)&&p.domNode.insertBefore(this.domNode,v),this.parent=p,this.attach()},d.prototype.isolate=function(p,y){var v=this.split(p);return v.split(y),v},d.prototype.length=function(){return 1},d.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},d.prototype.optimize=function(p){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},d.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},d.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},d.prototype.replaceWith=function(p,y){var v=typeof p=="string"?o.create(p,y):p;return v.replace(this),v},d.prototype.split=function(p,y){return p===0?this:this.next},d.prototype.update=function(p,y){},d.prototype.wrap=function(p,y){var v=typeof p=="string"?o.create(p,y):p;return this.parent!=null&&this.parent.insertBefore(v,this.next),v.appendChild(this),v},d.blotName="abstract",d}();r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(12),l=i(32),d=i(33),p=i(1),y=function(){function v(u){this.attributes={},this.domNode=u,this.build()}return v.prototype.attribute=function(u,a){a?u.add(this.domNode,a)&&(u.value(this.domNode)!=null?this.attributes[u.attrName]=u:delete this.attributes[u.attrName]):(u.remove(this.domNode),delete this.attributes[u.attrName])},v.prototype.build=function(){var u=this;this.attributes={};var a=o.default.keys(this.domNode),f=l.default.keys(this.domNode),_=d.default.keys(this.domNode);a.concat(f).concat(_).forEach(function(g){var b=p.query(g,p.Scope.ATTRIBUTE);b instanceof o.default&&(u.attributes[b.attrName]=b)})},v.prototype.copy=function(u){var a=this;Object.keys(this.attributes).forEach(function(f){var _=a.attributes[f].value(a.domNode);u.format(f,_)})},v.prototype.move=function(u){var a=this;this.copy(u),Object.keys(this.attributes).forEach(function(f){a.attributes[f].remove(a.domNode)}),this.attributes={}},v.prototype.values=function(){var u=this;return Object.keys(this.attributes).reduce(function(a,f){return a[f]=u.attributes[f].value(u.domNode),a},{})},v}();r.default=y},function(n,r,i){var o=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var a in u)u.hasOwnProperty(a)&&(v[a]=u[a])};return function(v,u){y(v,u);function a(){this.constructor=v}v.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(12);function d(y,v){var u=y.getAttribute("class")||"";return u.split(/\s+/).filter(function(a){return a.indexOf(v+"-")===0})}var p=function(y){o(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.keys=function(u){return(u.getAttribute("class")||"").split(/\s+/).map(function(a){return a.split("-").slice(0,-1).join("-")})},v.prototype.add=function(u,a){return this.canAdd(u,a)?(this.remove(u),u.classList.add(this.keyName+"-"+a),!0):!1},v.prototype.remove=function(u){var a=d(u,this.keyName);a.forEach(function(f){u.classList.remove(f)}),u.classList.length===0&&u.removeAttribute("class")},v.prototype.value=function(u){var a=d(u,this.keyName)[0]||"",f=a.slice(this.keyName.length+1);return this.canAdd(u,f)?f:""},v}(l.default);r.default=p},function(n,r,i){var o=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var a in u)u.hasOwnProperty(a)&&(v[a]=u[a])};return function(v,u){y(v,u);function a(){this.constructor=v}v.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(12);function d(y){var v=y.split("-"),u=v.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return v[0]+u}var p=function(y){o(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.keys=function(u){return(u.getAttribute("style")||"").split(";").map(function(a){var f=a.split(":");return f[0].trim()})},v.prototype.add=function(u,a){return this.canAdd(u,a)?(u.style[d(this.keyName)]=a,!0):!1},v.prototype.remove=function(u){u.style[d(this.keyName)]="",u.getAttribute("style")||u.removeAttribute("style")},v.prototype.value=function(u){var a=u.style[d(this.keyName)];return this.canAdd(u,a)?a:""},v}(l.default);r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function p(y,v){for(var u=0;uP&&this.stack.undo.length>0){var S=this.stack.undo.pop();A=A.compose(S.undo),T=S.redo.compose(T)}else this.lastRecorded=P;this.stack.undo.push({redo:T,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(T){this.stack.undo.forEach(function(x){x.undo=T.transform(x.undo,!0),x.redo=T.transform(x.redo,!0)}),this.stack.redo.forEach(function(x){x.undo=T.transform(x.undo,!0),x.redo=T.transform(x.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),c}(u.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function h(m){var c=m.ops[m.ops.length-1];return c==null?!1:c.insert!=null?typeof c.insert=="string"&&c.insert.endsWith(` `):c.attributes!=null?Object.keys(c.attributes).some(function(E){return d.default.query(E,d.default.Scope.BLOCK)!=null}):!1}function s(m){var c=m.reduce(function(T,x){return T+=x.delete||0,T},0),E=m.length()-c;return h(m)&&(E-=1),E}r.default=b,r.getLastChangeIndex=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var o=function(){function j(D,G){for(var $=0;$0&&arguments[0]!==void 0?arguments[0]:"link",C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),C!=null?this.textbox.value=C:$!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+$)||""),this.root.setAttribute("data-mode",$)}},{key:"restoreFocus",value:function(){var $=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=$}},{key:"save",value:function(){var $=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var C=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",$,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",$,a.default.sources.USER)),this.quill.root.scrollTop=C;break}case"video":$=q($);case"formula":{if(!$)break;var K=this.quill.getSelection(!0);if(K!=null){var Q=K.index+K.length;this.quill.insertEmbed(Q,this.root.getAttribute("data-mode"),$,a.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Q+1," ",a.default.sources.USER),this.quill.setSelection(Q+2,a.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),D}(A.default);function q(j){var D=j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return D?(D[1]||"https")+"://www.youtube.com/embed/"+D[2]+"?showinfo=0":(D=j.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(D[1]||"https")+"://player.vimeo.com/video/"+D[2]+"/":j}function L(j,D){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;D.forEach(function($){var C=document.createElement("option");$===G?C.setAttribute("selected","selected"):C.setAttribute("value",$),j.appendChild(C)})}r.BaseTooltip=W,r.default=re},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var d=[],p=0;p1&&this.append.apply(this,d.slice(1))},l.prototype.contains=function(d){for(var p,y=this.iterator();p=y();)if(p===d)return!0;return!1},l.prototype.insertBefore=function(d,p){!d||(d.next=p,p!=null?(d.prev=p.prev,p.prev!=null&&(p.prev.next=d),p.prev=d,p===this.head&&(this.head=d)):this.tail!=null?(this.tail.next=d,d.prev=this.tail,this.tail=d):(d.prev=null,this.head=this.tail=d),this.length+=1)},l.prototype.offset=function(d){for(var p=0,y=this.head;y!=null;){if(y===d)return p;p+=y.length(),y=y.next}return-1},l.prototype.remove=function(d){!this.contains(d)||(d.prev!=null&&(d.prev.next=d.next),d.next!=null&&(d.next.prev=d.prev),d===this.head&&(this.head=d.next),d===this.tail&&(this.tail=d.prev),this.length-=1)},l.prototype.iterator=function(d){return d===void 0&&(d=this.head),function(){var p=d;return d!=null&&(d=d.next),p}},l.prototype.find=function(d,p){p===void 0&&(p=!1);for(var y,v=this.iterator();y=v();){var u=y.length();if(d_?y(f,d-_,Math.min(p,_+b-d)):y(f,0,Math.min(b,d+p-_)),_+=b}},l.prototype.map=function(d){return this.reduce(function(p,y){return p.push(d(y)),p},[])},l.prototype.reduce=function(d,p){for(var y,v=this.iterator();y=v();)p=d(p,y);return p},l}();r.default=o},function(n,r,i){var o=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var _ in f)f.hasOwnProperty(_)&&(a[_]=f[_])};return function(a,f){u(a,f);function _(){this.constructor=a}a.prototype=f===null?Object.create(f):(_.prototype=f.prototype,new _)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(17),d=i(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,v=function(u){o(a,u);function a(f){var _=u.call(this,f)||this;return _.scroll=_,_.observer=new MutationObserver(function(g){_.update(g)}),_.observer.observe(_.domNode,p),_.attach(),_}return a.prototype.detach=function(){u.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(f,_){this.update(),f===0&&_===this.length()?this.children.forEach(function(g){g.remove()}):u.prototype.deleteAt.call(this,f,_)},a.prototype.formatAt=function(f,_,g,b){this.update(),u.prototype.formatAt.call(this,f,_,g,b)},a.prototype.insertAt=function(f,_,g){this.update(),u.prototype.insertAt.call(this,f,_,g)},a.prototype.optimize=function(f,_){var g=this;f===void 0&&(f=[]),_===void 0&&(_={}),u.prototype.optimize.call(this,_);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)f.push(b.pop());for(var h=function(E,T){T===void 0&&(T=!0),!(E==null||E===g)&&E.domNode.parentNode!=null&&(E.domNode[d.DATA_KEY].mutations==null&&(E.domNode[d.DATA_KEY].mutations=[]),T&&h(E.parent))},s=function(E){E.domNode[d.DATA_KEY]==null||E.domNode[d.DATA_KEY].mutations==null||(E instanceof l.default&&E.children.forEach(s),E.optimize(_))},m=f,c=0;m.length>0;c+=1){if(c>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(m.forEach(function(E){var T=d.find(E.target,!0);T!=null&&(T.domNode===E.target&&(E.type==="childList"?(h(d.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(x){var A=d.find(x,!1);h(A,!1),A instanceof l.default&&A.children.forEach(function(P){h(P,!1)})})):E.type==="attributes"&&h(T.prev)),h(T))}),this.children.forEach(s),m=[].slice.call(this.observer.takeRecords()),b=m.slice();b.length>0;)f.push(b.pop())}},a.prototype.update=function(f,_){var g=this;_===void 0&&(_={}),f=f||this.observer.takeRecords(),f.map(function(b){var h=d.find(b.target,!0);return h==null?null:h.domNode[d.DATA_KEY].mutations==null?(h.domNode[d.DATA_KEY].mutations=[b],h):(h.domNode[d.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===g||b.domNode[d.DATA_KEY]==null||b.update(b.domNode[d.DATA_KEY].mutations||[],_)}),this.domNode[d.DATA_KEY].mutations!=null&&u.prototype.update.call(this,this.domNode[d.DATA_KEY].mutations,_),this.optimize(f,_)},a.blotName="scroll",a.defaultChild="block",a.scope=d.Scope.BLOCK_BLOT,a.tagName="DIV",a}(l.default);r.default=v},function(n,r,i){var o=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var f in a)a.hasOwnProperty(f)&&(u[f]=a[f])};return function(u,a){v(u,a);function f(){this.constructor=u}u.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(18),d=i(1);function p(v,u){if(Object.keys(v).length!==Object.keys(u).length)return!1;for(var a in v)if(v[a]!==u[a])return!1;return!0}var y=function(v){o(u,v);function u(){return v!==null&&v.apply(this,arguments)||this}return u.formats=function(a){if(a.tagName!==u.tagName)return v.formats.call(this,a)},u.prototype.format=function(a,f){var _=this;a===this.statics.blotName&&!f?(this.children.forEach(function(g){g instanceof l.default||(g=g.wrap(u.blotName,!0)),_.attributes.copy(g)}),this.unwrap()):v.prototype.format.call(this,a,f)},u.prototype.formatAt=function(a,f,_,g){if(this.formats()[_]!=null||d.query(_,d.Scope.ATTRIBUTE)){var b=this.isolate(a,f);b.format(_,g)}else v.prototype.formatAt.call(this,a,f,_,g)},u.prototype.optimize=function(a){v.prototype.optimize.call(this,a);var f=this.formats();if(Object.keys(f).length===0)return this.unwrap();var _=this.next;_ instanceof u&&_.prev===this&&p(f,_.formats())&&(_.moveChildren(this),_.remove())},u.blotName="inline",u.scope=d.Scope.INLINE_BLOT,u.tagName="SPAN",u}(l.default);r.default=y},function(n,r,i){var o=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var a in u)u.hasOwnProperty(a)&&(v[a]=u[a])};return function(v,u){y(v,u);function a(){this.constructor=v}v.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(18),d=i(1),p=function(y){o(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.formats=function(u){var a=d.query(v.blotName).tagName;if(u.tagName!==a)return y.formats.call(this,u)},v.prototype.format=function(u,a){d.query(u,d.Scope.BLOCK)!=null&&(u===this.statics.blotName&&!a?this.replaceWith(v.blotName):y.prototype.format.call(this,u,a))},v.prototype.formatAt=function(u,a,f,_){d.query(f,d.Scope.BLOCK)!=null?this.format(f,_):y.prototype.formatAt.call(this,u,a,f,_)},v.prototype.insertAt=function(u,a,f){if(f==null||d.query(a,d.Scope.INLINE)!=null)y.prototype.insertAt.call(this,u,a,f);else{var _=this.split(u),g=d.create(a,f);_.parent.insertBefore(g,_)}},v.prototype.update=function(u,a){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,u,a)},v.blotName="block",v.scope=d.Scope.BLOCK_BLOT,v.tagName="P",v}(l.default);r.default=p},function(n,r,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var u in v)v.hasOwnProperty(u)&&(y[u]=v[u])};return function(y,v){p(y,v);function u(){this.constructor=y}y.prototype=v===null?Object.create(v):(u.prototype=v.prototype,new u)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(19),d=function(p){o(y,p);function y(){return p!==null&&p.apply(this,arguments)||this}return y.formats=function(v){},y.prototype.format=function(v,u){p.prototype.formatAt.call(this,0,this.length(),v,u)},y.prototype.formatAt=function(v,u,a,f){v===0&&u===this.length()?this.format(a,f):p.prototype.formatAt.call(this,v,u,a,f)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(l.default);r.default=d},function(n,r,i){var o=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var a in u)u.hasOwnProperty(a)&&(v[a]=u[a])};return function(v,u){y(v,u);function a(){this.constructor=v}v.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(r,"__esModule",{value:!0});var l=i(19),d=i(1),p=function(y){o(v,y);function v(u){var a=y.call(this,u)||this;return a.text=a.statics.value(a.domNode),a}return v.create=function(u){return document.createTextNode(u)},v.value=function(u){var a=u.data;return a.normalize&&(a=a.normalize()),a},v.prototype.deleteAt=function(u,a){this.domNode.data=this.text=this.text.slice(0,u)+this.text.slice(u+a)},v.prototype.index=function(u,a){return this.domNode===u?a:-1},v.prototype.insertAt=function(u,a,f){f==null?(this.text=this.text.slice(0,u)+a+this.text.slice(u),this.domNode.data=this.text):y.prototype.insertAt.call(this,u,a,f)},v.prototype.length=function(){return this.text.length},v.prototype.optimize=function(u){y.prototype.optimize.call(this,u),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof v&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},v.prototype.position=function(u,a){return[this.domNode,u]},v.prototype.split=function(u,a){if(a===void 0&&(a=!1),!a){if(u===0)return this;if(u===this.length())return this.next}var f=d.create(this.domNode.splitText(u));return this.parent.insertBefore(f,this.next),this.text=this.statics.value(this.domNode),f},v.prototype.update=function(u,a){var f=this;u.some(function(_){return _.type==="characterData"&&_.target===f.domNode})&&(this.text=this.statics.value(this.domNode))},v.prototype.value=function(){return this.text},v.blotName="text",v.scope=d.Scope.INLINE_BLOT,v}(l.default);r.default=p},function(n,r,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(d,p){return arguments.length>1&&!this.contains(d)==!p?p:l.call(this,d)}}String.prototype.startsWith||(String.prototype.startsWith=function(d,p){return p=p||0,this.substr(p,d.length)===d}),String.prototype.endsWith||(String.prototype.endsWith=function(d,p){var y=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>y.length)&&(p=y.length),p-=d.length;var v=y.indexOf(d,p);return v!==-1&&v===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),v=y.length>>>0,u=arguments[1],a,f=0;fE.length?c:E,A=c.length>E.length?E:c,P=x.indexOf(A);if(P!=-1)return T=[[o,x.substring(0,P)],[l,A],[o,x.substring(P+A.length)]],c.length>E.length&&(T[0][0]=T[2][0]=i),T;if(A.length==1)return[[i,c],[o,E]];var S=f(c,E);if(S){var w=S[0],N=S[1],k=S[2],R=S[3],B=S[4],z=d(w,k),Y=d(N,R);return z.concat([[l,B]],Y)}return y(c,E)}function y(c,E){for(var T=c.length,x=E.length,A=Math.ceil((T+x)/2),P=A,S=2*A,w=new Array(S),N=new Array(S),k=0;kT)Y+=2;else if(G>x)z+=2;else if(B){var $=P+R-L;if($>=0&&$=C)return v(c,E,D,G)}}}for(var K=-q+re;K<=q-W;K+=2){var $=P+K,C;K==-q||K!=q&&N[$-1]T)W+=2;else if(Q>x)re+=2;else if(!B){var j=P+R-K;if(j>=0&&j=C)return v(c,E,D,G)}}}}return[[i,c],[o,E]]}function v(c,E,T,x){var A=c.substring(0,T),P=E.substring(0,x),S=c.substring(T),w=E.substring(x),N=d(A,P),k=d(S,w);return N.concat(k)}function u(c,E){if(!c||!E||c.charAt(0)!=E.charAt(0))return 0;for(var T=0,x=Math.min(c.length,E.length),A=x,P=0;TE.length?c:E,x=c.length>E.length?E:c;if(T.length<4||x.length*2=Y.length?[D,G,$,C,j]:null}var P=A(T,x,Math.ceil(T.length/4)),S=A(T,x,Math.ceil(T.length/2)),w;if(!P&&!S)return null;S?P?w=P[4].length>S[4].length?P:S:w=S:w=P;var N,k,R,B;c.length>E.length?(N=w[0],k=w[1],R=w[2],B=w[3]):(R=w[0],B=w[1],N=w[2],k=w[3]);var z=w[4];return[N,k,R,B,z]}function _(c){c.push([l,""]);for(var E=0,T=0,x=0,A="",P="",S;E1?(T!==0&&x!==0&&(S=u(P,A),S!==0&&(E-T-x>0&&c[E-T-x-1][0]==l?c[E-T-x-1][1]+=P.substring(0,S):(c.splice(0,0,[l,P.substring(0,S)]),E++),P=P.substring(S),A=A.substring(S)),S=a(P,A),S!==0&&(c[E][1]=P.substring(P.length-S)+c[E][1],P=P.substring(0,P.length-S),A=A.substring(0,A.length-S))),T===0?c.splice(E-x,T+x,[o,P]):x===0?c.splice(E-T,T+x,[i,A]):c.splice(E-T-x,T+x,[i,A],[o,P]),E=E-T-x+(T?1:0)+(x?1:0)+1):E!==0&&c[E-1][0]==l?(c[E-1][1]+=c[E][1],c.splice(E,1)):E++,x=0,T=0,A="",P="";break}c[c.length-1][1]===""&&c.pop();var w=!1;for(E=1;E0&&x.splice(A+2,0,[S[0],w]),m(x,A,3)}else return c}function s(c){for(var E=!1,T=function(S){return S.charCodeAt(0)>=56320&&S.charCodeAt(0)<=57343},x=function(S){return S.charCodeAt(S.length-1)>=55296&&S.charCodeAt(S.length-1)<=56319},A=2;A0&&P.push(c[A]);return P}function m(c,E,T){for(var x=E+T-1;x>=0&&x>=E-1;x--)if(x+1\r?\n +\<"),this.convert();var V=this.quill.getFormat(this.quill.selection.savedRange.index);if(V[x.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new u.default().insert(ue,k({},x.default.blotName,V[x.default.blotName]))}var ae=this.prepareMatching(),se=l(ae,2),ce=se[0],ge=se[1],pe=K(this.container,ce,ge);return $(pe,` `)&&pe.ops[pe.ops.length-1].attributes==null&&(pe=pe.compose(new u.default().retain(pe.length()-1).delete(1))),Y.log("convert",this.container.innerHTML,pe),this.container.innerHTML="",pe}},{key:"dangerouslyPasteHTML",value:function(ee,V){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof ee=="string")this.quill.setContents(this.convert(ee),V),this.quill.setSelection(0,g.default.sources.SILENT);else{var ae=this.convert(V);this.quill.updateContents(new u.default().retain(ee).concat(ae),ue),this.quill.setSelection(ee+ae.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(ee){var V=this;if(!(ee.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),ae=new u.default().retain(ue.index),se=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){ae=ae.concat(V.convert()).delete(ue.length),V.quill.updateContents(ae,g.default.sources.USER),V.quill.setSelection(ae.length()-ue.length,g.default.sources.SILENT),V.quill.scrollingContainer.scrollTop=se,V.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ee=this,V=[],ue=[];return this.matchers.forEach(function(ae){var se=l(ae,2),ce=se[0],ge=se[1];switch(ce){case Node.TEXT_NODE:ue.push(ge);break;case Node.ELEMENT_NODE:V.push(ge);break;default:[].forEach.call(ee.container.querySelectorAll(ce),function(pe){pe[re]=pe[re]||[],pe[re].push(ge)});break}}),[V,ue]}}]),Z}(m.default);j.DEFAULTS={matchers:[],matchVisual:!0};function D(H,Z,X){return(typeof Z=="undefined"?"undefined":o(Z))==="object"?Object.keys(Z).reduce(function(ee,V){return D(ee,V,Z[V])},H):H.reduce(function(ee,V){return V.attributes&&V.attributes[Z]?ee.push(V):ee.insert(V.insert,(0,y.default)({},k({},Z,X),V.attributes))},new u.default)}function G(H){if(H.nodeType!==Node.ELEMENT_NODE)return{};var Z="__ql-computed-style";return H[Z]||(H[Z]=window.getComputedStyle(H))}function $(H,Z){for(var X="",ee=H.ops.length-1;ee>=0&&X.length-1}function K(H,Z,X){return H.nodeType===H.TEXT_NODE?X.reduce(function(ee,V){return V(H,ee)},new u.default):H.nodeType===H.ELEMENT_NODE?[].reduce.call(H.childNodes||[],function(ee,V){var ue=K(V,Z,X);return V.nodeType===H.ELEMENT_NODE&&(ue=Z.reduce(function(ae,se){return se(V,ae)},ue),ue=(V[re]||[]).reduce(function(ae,se){return se(V,ae)},ue)),ee.concat(ue)},new u.default):new u.default}function Q(H,Z,X){return D(X,H,!0)}function te(H,Z){var X=f.default.Attributor.Attribute.keys(H),ee=f.default.Attributor.Class.keys(H),V=f.default.Attributor.Style.keys(H),ue={};return X.concat(ee).concat(V).forEach(function(ae){var se=f.default.query(ae,f.default.Scope.ATTRIBUTE);se!=null&&(ue[se.attrName]=se.value(H),ue[se.attrName])||(se=q[ae],se!=null&&(se.attrName===ae||se.keyName===ae)&&(ue[se.attrName]=se.value(H)||void 0),se=L[ae],se!=null&&(se.attrName===ae||se.keyName===ae)&&(se=L[ae],ue[se.attrName]=se.value(H)||void 0))}),Object.keys(ue).length>0&&(Z=D(Z,ue)),Z}function le(H,Z){var X=f.default.query(H);if(X==null)return Z;if(X.prototype instanceof f.default.Embed){var ee={},V=X.value(H);V!=null&&(ee[X.blotName]=V,Z=new u.default().insert(ee,X.formats(H)))}else typeof X.formats=="function"&&(Z=D(Z,X.blotName,X.formats(H)));return Z}function fe(H,Z){return $(Z,` `)||Z.insert(` `),Z}function ye(){return new u.default}function M(H,Z){var X=f.default.query(H);if(X==null||X.blotName!=="list-item"||!$(Z,` `))return Z;for(var ee=-1,V=H.parentNode;!V.classList.contains("ql-clipboard");)(f.default.query(V)||{}).blotName==="list"&&(ee+=1),V=V.parentNode;return ee<=0?Z:Z.compose(new u.default().retain(Z.length()-1).retain(1,{indent:ee}))}function F(H,Z){return $(Z,` `)||(C(H)||Z.length()>0&&H.nextSibling&&C(H.nextSibling))&&Z.insert(` `),Z}function J(H,Z){if(C(H)&&H.nextElementSibling!=null&&!$(Z,` `)){var X=H.offsetHeight+parseFloat(G(H).marginTop)+parseFloat(G(H).marginBottom);H.nextElementSibling.offsetTop>H.offsetTop+X*1.5&&Z.insert(` `)}return Z}function oe(H,Z){var X={},ee=H.style||{};return ee.fontStyle&&G(H).fontStyle==="italic"&&(X.italic=!0),ee.fontWeight&&(G(H).fontWeight.startsWith("bold")||parseInt(G(H).fontWeight)>=700)&&(X.bold=!0),Object.keys(X).length>0&&(Z=D(Z,X)),parseFloat(ee.textIndent||0)>0&&(Z=new u.default().insert(" ").concat(Z)),Z}function ie(H,Z){var X=H.data;if(H.parentNode.tagName==="O:P")return Z.insert(X.trim());if(X.trim().length===0&&H.parentNode.classList.contains("ql-clipboard"))return Z;if(!G(H.parentNode).whiteSpace.startsWith("pre")){var ee=function(ue,ae){return ae=ae.replace(/[^\u00a0]/g,""),ae.length<1&&ue?" ":ae};X=X.replace(/\r\n/g," ").replace(/\n/g," "),X=X.replace(/\s\s+/g,ee.bind(ee,!0)),(H.previousSibling==null&&C(H.parentNode)||H.previousSibling!=null&&C(H.previousSibling))&&(X=X.replace(/^\s+/,ee.bind(ee,!1))),(H.nextSibling==null&&C(H.parentNode)||H.nextSibling!=null&&C(H.nextSibling))&&(X=X.replace(/\s+$/,ee.bind(ee,!1)))}return Z.insert(X)}r.default=j,r.matchAttributor=te,r.matchBlot=le,r.matchNewline=F,r.matchSpacing=J,r.matchText=ie},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function _(g,b){for(var h=0;h '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function _(g,b){for(var h=0;hf.right&&(g=f.right-_.right,this.root.style.left=u+g+"px"),_.leftf.bottom){var b=_.bottom-_.top,h=v.bottom-v.top+b;this.root.style.top=a-h+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p}();r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function S(w,N){var k=[],R=!0,B=!1,z=void 0;try{for(var Y=w[Symbol.iterator](),re;!(R=(re=Y.next()).done)&&(k.push(re.value),!(N&&k.length===N));R=!0);}catch(W){B=!0,z=W}finally{try{!R&&Y.return&&Y.return()}finally{if(B)throw z}}return k}return function(w,N){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return S(w,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function S(w,N,k){w===null&&(w=Function.prototype);var R=Object.getOwnPropertyDescriptor(w,N);if(R===void 0){var B=Object.getPrototypeOf(w);return B===null?void 0:S(B,N,k)}else{if("value"in R)return R.value;var z=R.get;return z===void 0?void 0:z.call(k)}},d=function(){function S(w,N){for(var k=0;k','','',''].join(""),r.default=A},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(29),l=V(o),d=i(36),p=i(38),y=i(64),v=i(65),u=V(v),a=i(66),f=V(a),_=i(67),g=V(_),b=i(37),h=i(26),s=i(39),m=i(40),c=i(56),E=V(c),T=i(68),x=V(T),A=i(27),P=V(A),S=i(69),w=V(S),N=i(70),k=V(N),R=i(71),B=V(R),z=i(72),Y=V(z),re=i(73),W=V(re),q=i(13),L=V(q),j=i(74),D=V(j),G=i(75),$=V(G),C=i(57),K=V(C),Q=i(41),te=V(Q),le=i(28),fe=V(le),ye=i(59),M=V(ye),F=i(60),J=V(F),oe=i(61),ie=V(oe),H=i(108),Z=V(H),X=i(62),ee=V(X);function V(ue){return ue&&ue.__esModule?ue:{default:ue}}l.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":d.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":s.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":d.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":s.FontStyle,"attributors/style/size":m.SizeStyle},!0),l.default.register({"formats/align":d.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":y.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":s.FontClass,"formats/size":m.SizeClass,"formats/blockquote":u.default,"formats/code-block":L.default,"formats/header":f.default,"formats/list":g.default,"formats/bold":E.default,"formats/code":q.Code,"formats/italic":x.default,"formats/link":P.default,"formats/script":w.default,"formats/strike":k.default,"formats/underline":B.default,"formats/image":Y.default,"formats/video":W.default,"formats/list/item":_.ListItem,"modules/formula":D.default,"modules/syntax":$.default,"modules/toolbar":K.default,"themes/bubble":Z.default,"themes/snow":ee.default,"ui/icons":te.default,"ui/picker":fe.default,"ui/icon-picker":J.default,"ui/color-picker":M.default,"ui/tooltip":ie.default},!0),r.default=l.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var o=function(){function g(b,h){for(var s=0;s0&&this.children.tail.format(x,A)}},{key:"formats",value:function(){return _({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(x,A){if(x instanceof s)l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,x,A);else{var P=A==null?this.length():A.offset(this),S=this.split(P);S.parent.insertBefore(x,S)}}},{key:"optimize",value:function(x){l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,x);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(x){if(x.statics.blotName!==this.statics.blotName){var A=p.default.create(this.statics.defaultChild);x.moveChildren(A),this.appendChild(A)}l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,x)}}]),E}(a.default);m.blotName="list",m.scope=p.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[s],r.ListItem=s,r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(56),l=d(o);function d(a){return a&&a.__esModule?a:{default:a}}function p(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}function y(a,f){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:a}function v(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);a.prototype=Object.create(f&&f.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(a,f):a.__proto__=f)}var u=function(a){v(f,a);function f(){return p(this,f),y(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return f}(l.default);u.blotName="italic",u.tagName=["EM","I"],r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function _(g,b){for(var h=0;h-1?c?this.domNode.setAttribute(m,c):this.domNode.removeAttribute(m):l(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,m,c)}}],[{key:"create",value:function(m){var c=l(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,m);return typeof m=="string"&&c.setAttribute("src",this.sanitize(m)),c}},{key:"formats",value:function(m){return _.reduce(function(c,E){return m.hasAttribute(E)&&(c[E]=m.getAttribute(E)),c},{})}},{key:"match",value:function(m){return/\.(jpe?g|gif|png)$/.test(m)||/^data:image\/.+;base64/.test(m)}},{key:"sanitize",value:function(m){return(0,y.sanitize)(m,["http","https","data"])?m:"//:0"}},{key:"value",value:function(m){return m.getAttribute("src")}}]),h}(p.default.Embed);g.blotName="image",g.tagName="IMG",r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function b(h,s){for(var m=0;m-1?c?this.domNode.setAttribute(m,c):this.domNode.removeAttribute(m):l(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,m,c)}}],[{key:"create",value:function(m){var c=l(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,m);return c.setAttribute("frameborder","0"),c.setAttribute("allowfullscreen",!0),c.setAttribute("src",this.sanitize(m)),c}},{key:"formats",value:function(m){return _.reduce(function(c,E){return m.hasAttribute(E)&&(c[E]=m.getAttribute(E)),c},{})}},{key:"sanitize",value:function(m){return y.default.sanitize(m)}},{key:"value",value:function(m){return m.getAttribute("src")}}]),h}(d.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var o=function(){function m(c,E){for(var T=0;T0||this.cachedText==null)&&(this.domNode.innerHTML=P(S),this.domNode.normalize(),this.attach()),this.cachedText=S)}}]),x}(_.default);m.className="ql-syntax";var c=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),E=function(T){s(x,T),o(x,null,[{key:"register",value:function(){v.default.register(c,!0),v.default.register(m,!0)}}]);function x(A,P){b(this,x);var S=h(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,A,P));if(typeof S.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var w=null;return S.quill.on(v.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(w),w=setTimeout(function(){S.highlight(),w=null},S.options.interval)}),S.highlight(),S}return o(x,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(v.default.sources.USER);var S=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(w){w.highlight(P.options.highlight)}),this.quill.update(v.default.sources.SILENT),S!=null&&this.quill.setSelection(S,v.default.sources.SILENT)}}}]),x}(a.default);E.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var x=window.hljs.highlightAuto(T);return x.value}}(),interval:1e3},r.CodeBlock=m,r.CodeToken=c,r.default=E},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var o=function x(A,P,S){A===null&&(A=Function.prototype);var w=Object.getOwnPropertyDescriptor(A,P);if(w===void 0){var N=Object.getPrototypeOf(A);return N===null?void 0:x(N,P,S)}else{if("value"in w)return w.value;var k=w.get;return k===void 0?void 0:k.call(S)}},l=function(){function x(A,P){for(var S=0;S0&&B===v.default.sources.USER){w.show(),w.root.style.left="0px",w.root.style.width="",w.root.style.width=w.root.offsetWidth+"px";var z=w.quill.getLines(k.index,k.length);if(z.length===1)w.position(w.quill.getBounds(k));else{var Y=z[z.length-1],re=w.quill.getIndex(Y),W=Math.min(Y.length()-1,k.index+k.length-re),q=w.quill.getBounds(new f.Range(re,W));w.position(q)}}else document.activeElement!==w.textbox&&w.quill.hasFocus()&&w.hide()}),w}return l(A,[{key:"listen",value:function(){var S=this;o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){S.root.classList.remove("ql-editing")}),this.quill.on(v.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!S.root.classList.contains("ql-hidden")){var w=S.quill.getSelection();w!=null&&S.position(S.quill.getBounds(w))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(S){var w=o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,S),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",w===0)return w;N.style.marginLeft=-1*w-N.offsetWidth/2+"px"}}]),A}(u.BaseTooltip);T.TEMPLATE=['','
','','',"
"].join(""),r.BubbleTooltip=T,r.default=E},function(n,r,i){n.exports=i(63)}]).default})})(cu);const Lo=Xh(cu.exports);var Et=-1,pt=1,et=0;function Or(e,t,n,r){if(e===t)return e?[[et,e]]:[];if(n!=null){var i=nd(e,t,n);if(i)return i}var o=Il(e,t),l=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=Cl(e,t);var d=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var p=Qh(e,t);return l&&p.unshift([et,l]),d&&p.push([et,d]),hu(p,r),p}function Qh(e,t){var n;if(!e)return[[pt,t]];if(!t)return[[Et,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,o=r.indexOf(i);if(o!==-1)return n=[[pt,r.substring(0,o)],[et,i],[pt,r.substring(o+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Et),n;if(i.length===1)return[[Et,e],[pt,t]];var l=ed(e,t);if(l){var d=l[0],p=l[1],y=l[2],v=l[3],u=l[4],a=Or(d,y),f=Or(p,v);return a.concat([[et,u]],f)}return Jh(e,t)}function Jh(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),o=i,l=2*i,d=new Array(l),p=new Array(l),y=0;yn)f+=2;else if(c>r)a+=2;else if(u){var E=o+v-h;if(E>=0&&E=T)return Aa(e,t,m,c)}}}for(var x=-b+_;x<=b-g;x+=2){var E=o+x,T;x===-b||x!==b&&p[E-1]n)g+=2;else if(A>r)_+=2;else if(!u){var s=o+v-x;if(s>=0&&s=T)return Aa(e,t,m,c)}}}}return[[Et,e],[pt,t]]}function Aa(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),l=e.substring(n),d=t.substring(r),p=Or(i,o),y=Or(l,d);return p.concat(y)}function Il(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2=f.length?[m,c,E,T,s]:null}var o=i(n,r,Math.ceil(n.length/4)),l=i(n,r,Math.ceil(n.length/2)),d;if(!o&&!l)return null;l?o?d=o[4].length>l[4].length?o:l:d=l:d=o;var p,y,v,u;e.length>t.length?(p=d[0],y=d[1],v=d[2],u=d[3]):(v=d[0],u=d[1],p=d[2],y=d[3]);var a=d[4];return[p,y,v,u,a]}function hu(e,t){e.push([et,""]);for(var n=0,r=0,i=0,o="",l="",d;n=0&&yu(e[p][1])){var y=e[p][1].slice(-1);if(e[p][1]=e[p][1].slice(0,-1),o=y+o,l=y+l,!e[p][1]){e.splice(p,1),n--;var v=p-1;e[v]&&e[v][0]===pt&&(i++,l=e[v][1]+l,v--),e[v]&&e[v][0]===Et&&(r++,o=e[v][1]+o,v--),p=v}}if(vu(e[n][1])){var y=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),o+=y,l+=y}}if(n0||l.length>0){o.length>0&&l.length>0&&(d=Il(l,o),d!==0&&(p>=0?e[p][1]+=l.substring(0,d):(e.splice(0,0,[et,l.substring(0,d)]),n++),l=l.substring(d),o=o.substring(d)),d=Cl(l,o),d!==0&&(e[n][1]=l.substring(l.length-d)+e[n][1],l=l.substring(0,l.length-d),o=o.substring(0,o.length-d)));var u=i+r;o.length===0&&l.length===0?(e.splice(n-u,u),n=n-u):o.length===0?(e.splice(n-u,u,[pt,l]),n=n-u+1):l.length===0?(e.splice(n-u,u,[Et,o]),n=n-u+1):(e.splice(n-u,u,[Et,o],[pt,l]),n=n-u+2)}n!==0&&e[n-1][0]===et?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,o="",l="";break}}e[e.length-1][1]===""&&e.pop();var a=!1;for(n=1;n=55296&&e<=56319}function pu(e){return e>=56320&&e<=57343}function vu(e){return pu(e.charCodeAt(0))}function yu(e){return du(e.charCodeAt(e.length-1))}function td(e){for(var t=[],n=0;n0&&t.push(e[n]);return t}function Ro(e,t,n,r){return yu(e)||vu(r)?null:td([[et,e],[Et,t],[pt,n],[et,r]])}function nd(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,o=e.length,l=t.length;if(r.length===0&&(i===null||i.length===0)){var d=r.index,p=e.slice(0,d),y=e.slice(d),v=i?i.index:null;e:{var u=d+l-o;if(v!==null&&v!==u||u<0||u>l)break e;var a=t.slice(0,u),f=t.slice(u);if(f!==y)break e;var _=Math.min(d,u),g=p.slice(0,_),b=a.slice(0,_);if(g!==b)break e;var h=p.slice(_),s=a.slice(_);return Ro(g,h,s,y)}e:{if(v!==null&&v!==d)break e;var m=d,a=t.slice(0,m),f=t.slice(m);if(a!==p)break e;var c=Math.min(o-m,l-m),E=y.slice(y.length-c),T=f.slice(f.length-c);if(E!==T)break e;var h=y.slice(0,y.length-c),s=f.slice(0,f.length-c);return Ro(p,h,s,E)}}if(r.length>0&&i&&i.length===0){e:{var g=e.slice(0,r.index),E=e.slice(r.index+r.length),_=g.length,c=E.length;if(l<_+c)break e;var b=t.slice(0,_),T=t.slice(l-c);if(g!==b||E!==T)break e;var h=e.slice(_,o-c),s=t.slice(_,l-c);return Ro(g,h,s,E)}}return null}function Fi(e,t,n){return Or(e,t,n,!0)}Fi.INSERT=pt;Fi.DELETE=Et;Fi.EQUAL=et;var rd=Fi,yi={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",l="[object Array]",d="[object Boolean]",p="[object Date]",y="[object Error]",v="[object Function]",u="[object GeneratorFunction]",a="[object Map]",f="[object Number]",_="[object Object]",g="[object Promise]",b="[object RegExp]",h="[object Set]",s="[object String]",m="[object Symbol]",c="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",x="[object Float32Array]",A="[object Float64Array]",P="[object Int8Array]",S="[object Int16Array]",w="[object Int32Array]",N="[object Uint8Array]",k="[object Uint8ClampedArray]",R="[object Uint16Array]",B="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,Y=/\w*$/,re=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q[l]=q[E]=q[T]=q[d]=q[p]=q[x]=q[A]=q[P]=q[S]=q[w]=q[a]=q[f]=q[_]=q[b]=q[h]=q[s]=q[m]=q[N]=q[k]=q[R]=q[B]=!0,q[y]=q[v]=q[c]=!1;var L=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,j=typeof self=="object"&&self&&self.Object===Object&&self,D=L||j||Function("return this")(),G=t&&!t.nodeType&&t,$=G&&!0&&e&&!e.nodeType&&e,C=$&&$.exports===G;function K(O,I){return O.set(I[0],I[1]),O}function Q(O,I){return O.add(I),O}function te(O,I){for(var U=-1,ne=O?O.length:0;++U-1}function Zi(O,I){var U=this.__data__,ne=An(U,O);return ne<0?U.push([O,I]):U[ne][1]=I,this}De.prototype.clear=$i,De.prototype.delete=zi,De.prototype.get=Vi,De.prototype.has=Wi,De.prototype.set=Zi;function $e(O){var I=-1,U=O?O.length:0;for(this.clear();++I-1&&O%1==0&&O-1&&O%1==0&&O<=i}function bt(O){var I=typeof O;return!!O&&(I=="object"||I=="function")}function Hr(O){return!!O&&typeof O=="object"}function er(O){return Nn(O)?wn(O):uo(O)}function wo(){return[]}function Ao(){return!1}e.exports=Dr})(yi,yi.exports);var gi={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,l=9007199254740991,d="[object Arguments]",p="[object Array]",y="[object AsyncFunction]",v="[object Boolean]",u="[object Date]",a="[object Error]",f="[object Function]",_="[object GeneratorFunction]",g="[object Map]",b="[object Number]",h="[object Null]",s="[object Object]",m="[object Promise]",c="[object Proxy]",E="[object RegExp]",T="[object Set]",x="[object String]",A="[object Symbol]",P="[object Undefined]",S="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",k="[object Float32Array]",R="[object Float64Array]",B="[object Int8Array]",z="[object Int16Array]",Y="[object Int32Array]",re="[object Uint8Array]",W="[object Uint8ClampedArray]",q="[object Uint16Array]",L="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,D=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,$={};$[k]=$[R]=$[B]=$[z]=$[Y]=$[re]=$[W]=$[q]=$[L]=!0,$[d]=$[p]=$[w]=$[v]=$[N]=$[u]=$[a]=$[f]=$[g]=$[b]=$[s]=$[E]=$[T]=$[x]=$[S]=!1;var C=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,K=typeof self=="object"&&self&&self.Object===Object&&self,Q=C||K||Function("return this")(),te=t&&!t.nodeType&&t,le=te&&!0&&e&&!e.nodeType&&e,fe=le&&le.exports===te,ye=fe&&C.process,M=function(){try{return ye&&ye.binding&&ye.binding("util")}catch(O){}}(),F=M&&M.isTypedArray;function J(O,I){for(var U=-1,ne=O==null?0:O.length,be=0,ve=[];++U-1}function Ji(O,I){var U=this.__data__,ne=Tn(U,O);return ne<0?(++this.size,U.push([O,I])):U[ne][1]=I,this}$e.prototype.clear=Yi,$e.prototype.delete=Gi,$e.prototype.get=Xi,$e.prototype.has=Qi,$e.prototype.set=Ji;function Xe(O){var I=-1,U=O==null?0:O.length;for(this.clear();++IAe))return!1;var Te=ve.get(O);if(Te&&ve.get(I))return Te==I;var ze=-1,Qe=!0,Ie=U&o?new wn:void 0;for(ve.set(O,I),ve.set(I,O);++ze-1&&O%1==0&&O-1&&O%1==0&&O<=l}function Ur(O){var I=typeof O;return O!=null&&(I=="object"||I=="function")}function bt(O){return O!=null&&typeof O=="object"}var Hr=F?Z(F):ho;function er(O){return Qn(O)?uo(O):po(O)}function wo(){return[]}function Ao(){return!1}e.exports=Eo})(gi,gi.exports);var Ml={},gu=Ke&&Ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ml,"__esModule",{value:!0});var id=gu(yi.exports),od=gu(gi.exports),Jo;(function(e){function t(o,l,d){o===void 0&&(o={}),l===void 0&&(l={}),typeof o!="object"&&(o={}),typeof l!="object"&&(l={});var p=id.default(l);d||(p=Object.keys(p).reduce(function(v,u){return p[u]!=null&&(v[u]=p[u]),v},{}));for(var y in o)o[y]!==void 0&&l[y]===void 0&&(p[y]=o[y]);return Object.keys(p).length>0?p:void 0}e.compose=t;function n(o,l){o===void 0&&(o={}),l===void 0&&(l={}),typeof o!="object"&&(o={}),typeof l!="object"&&(l={});var d=Object.keys(o).concat(Object.keys(l)).reduce(function(p,y){return od.default(o[y],l[y])||(p[y]=l[y]===void 0?null:l[y]),p},{});return Object.keys(d).length>0?d:void 0}e.diff=n;function r(o,l){o===void 0&&(o={}),l===void 0&&(l={}),o=o||{};var d=Object.keys(l).reduce(function(p,y){return l[y]!==o[y]&&o[y]!==void 0&&(p[y]=l[y]),p},{});return Object.keys(o).reduce(function(p,y){return o[y]!==l[y]&&l[y]===void 0&&(p[y]=null),p},d)}e.invert=r;function i(o,l,d){if(d===void 0&&(d=!1),typeof o!="object")return l;if(typeof l=="object"){if(!d)return l;var p=Object.keys(l).reduce(function(y,v){return o[v]===void 0&&(y[v]=l[v]),y},{});return Object.keys(p).length>0?p:void 0}}e.transform=i})(Jo||(Jo={}));Ml.default=Jo;var ti={},ni={},Ta;function ld(){if(Ta)return ni;Ta=1;var e=Ke&&Ke.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ni,"__esModule",{value:!0});var t=e(mu()),n=function(){function r(i){this.ops=i,this.index=0,this.offset=0}return r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(i){i||(i=1/0);var o=this.ops[this.index];if(o){var l=this.offset,d=t.default.length(o);if(i>=d-l?(i=d-l,this.index+=1,this.offset=0):this.offset+=i,typeof o.delete=="number")return{delete:i};var p={};return o.attributes&&(p.attributes=o.attributes),typeof o.retain=="number"?p.retain=i:typeof o.insert=="string"?p.insert=o.insert.substr(l,i):p.insert=o.insert,p}else return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var i=this.offset,o=this.index,l=this.next(),d=this.ops.slice(this.index);return this.offset=i,this.index=o,[l].concat(d)}else return[]},r}();return ni.default=n,ni}var xa;function mu(){if(xa)return ti;xa=1;var e=Ke&&Ke.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ti,"__esModule",{value:!0});var t=e(ld()),n;return function(r){function i(l){return new t.default(l)}r.iterator=i;function o(l){return typeof l.delete=="number"?l.delete:typeof l.retain=="number"?l.retain:typeof l.insert=="string"?l.insert.length:1}r.length=o}(n||(n={})),ti.default=n,ti}var Lr=Ke&&Ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ri=Lr(rd),ad=Lr(yi.exports),Io=Lr(gi.exports),rr=Lr(Ml),Fe=Lr(mu()),sd=String.fromCharCode(0);(function(){function e(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return e.prototype.insert=function(t,n){var r={};return typeof t=="string"&&t.length===0?this:(r.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r))},e.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},e.prototype.retain=function(t,n){if(t<=0)return this;var r={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r)},e.prototype.push=function(t){var n=this.ops.length,r=this.ops[n-1];if(t=ad.default(t),typeof r=="object"){if(typeof t.delete=="number"&&typeof r.delete=="number")return this.ops[n-1]={delete:r.delete+t.delete},this;if(typeof r.delete=="number"&&t.insert!=null&&(n-=1,r=this.ops[n-1],typeof r!="object"))return this.ops.unshift(t),this;if(Io.default(t.attributes,r.attributes)){if(typeof t.insert=="string"&&typeof r.insert=="string")return this.ops[n-1]={insert:r.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof r.retain=="number")return this.ops[n-1]={retain:r.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this},e.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},e.prototype.filter=function(t){return this.ops.filter(t)},e.prototype.forEach=function(t){this.ops.forEach(t)},e.prototype.map=function(t){return this.ops.map(t)},e.prototype.partition=function(t){var n=[],r=[];return this.forEach(function(i){var o=t(i)?n:r;o.push(i)}),[n,r]},e.prototype.reduce=function(t,n){return this.ops.reduce(t,n)},e.prototype.changeLength=function(){return this.reduce(function(t,n){return n.insert?t+Fe.default.length(n):n.delete?t-n.delete:t},0)},e.prototype.length=function(){return this.reduce(function(t,n){return t+Fe.default.length(n)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var r=[],i=Fe.default.iterator(this.ops),o=0;o0&&r.next(o.retain-l)}for(var d=new e(i);n.hasNext()||r.hasNext();)if(r.peekType()==="insert")d.push(r.next());else if(n.peekType()==="delete")d.push(n.next());else{var p=Math.min(n.peekLength(),r.peekLength()),y=n.next(p),v=r.next(p);if(typeof v.retain=="number"){var u={};typeof y.retain=="number"?u.retain=p:u.insert=y.insert;var a=rr.default.compose(y.attributes,v.attributes,typeof y.retain=="number");if(a&&(u.attributes=a),d.push(u),!r.hasNext()&&Io.default(d.ops[d.ops.length-1],u)){var f=new e(n.rest());return d.concat(f).chop()}}else typeof v.delete=="number"&&typeof y.retain=="number"&&d.push(v)}return d.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map(function(p){return p.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:sd;var v=p===t?"on":"with";throw new Error("diff() called "+v+" non-document")}).join("")}),i=new e,o=ri.default(r[0],r[1],n),l=Fe.default.iterator(this.ops),d=Fe.default.iterator(t.ops);return o.forEach(function(p){for(var y=p[1].length;y>0;){var v=0;switch(p[0]){case ri.default.INSERT:v=Math.min(d.peekLength(),y),i.push(d.next(v));break;case ri.default.DELETE:v=Math.min(y,l.peekLength()),l.next(v),i.delete(v);break;case ri.default.EQUAL:v=Math.min(l.peekLength(),d.peekLength(),y);var u=l.next(v),a=d.next(v);Io.default(u.insert,a.insert)?i.retain(v,rr.default.diff(u.attributes,a.attributes)):i.push(a).delete(v);break}y-=v}}),i.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=` `);for(var r=Fe.default.iterator(this.ops),i=new e,o=0;r.hasNext();){if(r.peekType()!=="insert")return;var l=r.peek(),d=Fe.default.length(l)-r.peekLength(),p=typeof l.insert=="string"?l.insert.indexOf(n,d)-d:-1;if(p<0)i.push(r.next());else if(p>0)i.push(r.next(p));else{if(t(i,r.next(1).attributes||{},o)===!1)return;o+=1,i=new e}}i.length()>0&&t(i,{},o)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(r,i){if(i.insert)n.delete(Fe.default.length(i));else{if(i.retain&&i.attributes==null)return n.retain(i.retain),r+i.retain;if(i.delete||i.retain&&i.attributes){var o=i.delete||i.retain,l=t.slice(r,r+o);return l.forEach(function(d){i.delete?n.push(d):i.retain&&i.attributes&&n.retain(Fe.default.length(d),rr.default.invert(i.attributes,d.attributes))}),r+o}}return r},0),n.chop()},e.prototype.transform=function(t,n){if(n===void 0&&(n=!1),n=!!n,typeof t=="number")return this.transformPosition(t,n);for(var r=t,i=Fe.default.iterator(this.ops),o=Fe.default.iterator(r.ops),l=new e;i.hasNext()||o.hasNext();)if(i.peekType()==="insert"&&(n||o.peekType()!=="insert"))l.retain(Fe.default.length(i.next()));else if(o.peekType()==="insert")l.push(o.next());else{var d=Math.min(i.peekLength(),o.peekLength()),p=i.next(d),y=o.next(d);if(p.delete)continue;y.delete?l.push(y):l.retain(d,rr.default.transform(p.attributes,y.attributes,n))}return l.chop()},e.prototype.transformPosition=function(t,n){n===void 0&&(n=!1),n=!!n;for(var r=Fe.default.iterator(this.ops),i=0;r.hasNext()&&i<=t;){var o=r.peekLength(),l=r.peekType();if(r.next(),l==="delete"){t-=Math.min(o,t-i);continue}else l==="insert"&&(i{}},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e=="string"&&e!==""?e.charAt(0)==="#"?!0:Object.keys(Na).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{Hn(()=>{o()}),Pr(()=>{n=null});let n,r;const i=Cn(),o=()=>{var T;if(!!i.value){if(r=l(),e.modules)if(Array.isArray(e.modules))for(const x of e.modules)Lo.register(`modules/${x.name}`,x.module);else Lo.register(`modules/${e.modules.name}`,e.modules.module);n=new Lo(i.value,r),g(e.content),n.on("text-change",d),n.on("selection-change",y),n.on("editor-change",v),e.theme!=="bubble"&&i.value.classList.remove("ql-bubble"),e.theme!=="snow"&&i.value.classList.remove("ql-snow"),(T=n.getModule("toolbar"))===null||T===void 0||T.container.addEventListener("mousedown",x=>{x.preventDefault()}),t.emit("ready",n)}},l=()=>{const T={};if(e.theme!==""&&(T.theme=e.theme),e.readOnly&&(T.readOnly=e.readOnly),e.placeholder&&(T.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(T.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:Na[e.toolbar]})()}),e.modules){const x=(()=>{var A,P;const S={};if(Array.isArray(e.modules))for(const w of e.modules)S[w.name]=(A=w.options)!==null&&A!==void 0?A:{};else S[e.modules.name]=(P=e.modules.options)!==null&&P!==void 0?P:{};return S})();T.modules=Object.assign({},T.modules,x)}return Object.assign({},e.globalOptions,e.options,T)},d=(T,x,A)=>{t.emit("update:content",_()),t.emit("textChange",{delta:T,oldContents:x,source:A})},p=Cn(),y=(T,x,A)=>{p.value=!!(n!=null&&n.hasFocus()),t.emit("selectionChange",{range:T,oldRange:x,source:A})};hn(p,T=>{T?t.emit("focus",i):t.emit("blur",i)});const v=(...T)=>{T[0]==="text-change"&&t.emit("editorChange",{name:T[0],delta:T[1],oldContents:T[2],source:T[3]}),T[0]==="selection-change"&&t.emit("editorChange",{name:T[0],range:T[1],oldRange:T[2],source:T[3]})},u=()=>i.value,a=()=>{var T;return(T=n==null?void 0:n.getModule("toolbar"))===null||T===void 0?void 0:T.container},f=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},_=(T,x)=>e.contentType==="html"?s():e.contentType==="text"?b(T,x):n==null?void 0:n.getContents(T,x),g=(T,x="api")=>{e.contentType==="html"?m(T):e.contentType==="text"?h(T,x):n==null||n.setContents(T,x)},b=(T,x)=>{var A;return(A=n==null?void 0:n.getText(T,x))!==null&&A!==void 0?A:""},h=(T,x="api")=>{n==null||n.setText(T,x)},s=()=>{var T;return(T=n==null?void 0:n.root.innerHTML)!==null&&T!==void 0?T:""},m=T=>{n&&(n.root.innerHTML=T)},c=(T,x="api")=>{const A=n==null?void 0:n.clipboard.convert(T);A&&(n==null||n.setContents(A,x))},E=()=>{Ni(()=>{var T;!t.slots.toolbar&&n&&((T=n.getModule("toolbar"))===null||T===void 0||T.container.remove()),o()})};return hn(()=>e.enable,T=>{n&&n.enable(T)}),{editor:i,getEditor:u,getToolbar:a,getQuill:f,getContents:_,setContents:g,getHTML:s,setHTML:m,pasteHTML:c,getText:b,setText:h,reinit:E}},render(){var e,t;return[(t=(e=this.$slots).toolbar)===null||t===void 0?void 0:t.call(e),kl("div",Bl({ref:"editor"},this.$attrs))]}});export{Ci as $,os as A,hr as B,Ze as C,Pr as D,Za as E,He as F,Mi as G,Me as H,hs as I,Ri as J,cc as K,wr as L,Er as M,vt as N,Ms as O,Gc as P,Tl as Q,yl as R,ic as S,ou as T,ac as U,jc as V,Nl as W,Lu as X,Se as Y,Pl as Z,Xc as _,cd as a,Kh as a0,Ai as a1,Tt as a2,Bn as a3,Af as a4,lc as a5,Lc as a6,fs as a7,uc as a8,fc as a9,fd as aA,qf as aB,Df as aC,hd as aD,Mc as aE,zh as aa,Fl as ab,ku as ac,Cs as ad,Tr as ae,Ll as af,Rl as ag,kl as ah,xr as ai,ds as aj,nl as ak,sc as al,vi as am,hc as an,ul as ao,Bu as ap,Ee as aq,_f as ar,Mu as as,Ch as at,Wh as au,wt as av,za as aw,Qo as ax,us as ay,nc as az,Cn as b,Ke as c,hn as d,Fu as e,Qt as f,Xh as g,Hn as h,Hs as i,he as j,Le as k,lt as l,ke as m,Ni as n,Uu as o,ji as p,Rc as q,al as r,mf as s,xl as t,Wa as u,we as v,Gf as w,Ya as x,me as y,Yt as z};