123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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<r.length;i++)n[r[i]]=!0;return t?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<e.length;n++){const r=e[n],i=ke(r)?Su(r):Er(r);if(i)for(const o in i)t[o]=i[o]}return t}else{if(ke(e))return e;if(Le(e))return e}}const xu=/;(?![^(]*\))/g,Nu=/:(.+)/;function Su(e){const t={};return e.split(xu).forEach(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;n<e.length;n++){const r=wr(e[n]);r&&(t+=r+" ")}else if(Le(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ku(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ke(t)&&(e.class=wr(t)),n&&(e.style=Er(n)),e}function Pu(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Vt(e[r],t[r]);return n}function Vt(e,t){if(e===t)return!0;let n=Fl(e),r=Fl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=yr(e),r=yr(t),n||r)return e===t;if(n=he(e),r=he(t),n||r)return n&&r?Pu(e,t):!1;if(n=Le(e),r=Le(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const d=e.hasOwnProperty(l),p=t.hasOwnProperty(l);if(d&&!p||!d&&p||!Vt(e[l],t[l]))return!1}}return String(e)===String(t)}function bi(e,t){return e.findIndex(n=>Vt(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<e.length;n++)e[n](t)},li=(e,t,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<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.active=!1}}}function Bu(e){return new il(e)}function Ra(e,t=nt){t&&t.active&&t.effects.push(e)}function Fu(){return nt}function Uu(e){nt&&nt.cleanups.push(e)}const ol=e=>{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<e.length;t++)e[t].w|=Zt},Ku=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Ia(i)&&!Ca(i)?i.delete(e):t[n++]=i,i.w&=~Zt,i.n&=~Zt}t.length=n}},Co=new WeakMap;let ir=0,Zt=1;const Mo=30;let dt;const fn=Symbol(""),jo=Symbol("");class Nr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ra(this,r)}run(){if(!this.active)return this.fn();let t=dt,n=$t;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=dt,dt=this,$t=!0,Zt=1<<++ir,ir<=Mo?Hu(this):Hl(this),this.fn()}finally{ir<=Mo&&Ku(this),Zt=1<<--ir,dt=this.parent,$t=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){dt===this?this.deferStop=!0:this.active&&(Hl(this),this.onStop&&this.onStop(),this.active=!1)}}function Hl(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function $u(e,t){e.effect&&(e=e.effect.fn);const n=new Nr(e);t&&(Pe(n,t),t.scope&&Ra(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function zu(e){e.effect.stop()}let $t=!0;const Ma=[];function mn(){Ma.push($t),$t=!1}function bn(){const e=Ma.pop();$t=e===void 0?!0:e}function at(e,t,n){if($t&&dt){let r=Co.get(e);r||Co.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=ol()),ja(i)}}function ja(e,t){let n=!1;ir<=Mo?Ca(e)||(e.n|=Zt,n=!Ia(e)):n=!e.has(dt),n&&(e.add(dt),dt.deps.push(e))}function Ct(e,t,n,r,i,o){const l=Co.get(e);if(!l)return;let d=[];if(t==="clear")d=[...l.values()];else if(n==="length"&&he(e))l.forEach((p,y)=>{(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<l;o++)at(r,"get",o+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(Ee)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{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)<n.length:we(n,r),p=Reflect.set(n,r,i,o);return n===Ee(o)&&(d?jn(i,l)&&Ct(n,"set",r,i):Ct(n,"add",r,i)),p}}function ef(e,t){const n=we(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ct(e,"delete",t,void 0),r}function tf(e,t){const n=Reflect.has(e,t);return(!yr(t)||!qa.has(t))&&at(e,"has",t),n}function nf(e){return at(e,"iterate",he(e)?"length":fn),Reflect.ownKeys(e)}const Ba={get:Wu,set:Qu,deleteProperty:ef,has:tf,ownKeys:nf},Fa={get:Yu,set(e,t){return!0},deleteProperty(e,t){return!0}},rf=Pe({},Ba,{get:Zu,set:Ju}),of=Pe({},Fa,{get:Gu}),ll=e=>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<e.length;o++)i.push(ot(e[o],t,n,r));return i}function _n(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const l=t.proxy,d=n;for(;o;){const y=o.ec;if(y){for(let v=0;v<y.length;v++)if(y[v](e,l,d)===!1)return}o=o.parent}const p=t.appContext.config.errorHandler;if(p){At(p,null,10,[e,l,d]);return}}Rf(e,n,i,r)}function Rf(e,t,n,r=!0){console.error(e)}let si=!1,Do=!1;const it=[];let Rt=0;const fr=[];let or=null,Sn=0;const cr=[];let Ut=null,kn=0;const Xa=Promise.resolve();let dl=null,Bo=null;function Ni(e){const t=dl||Xa;return e?t.then(this?e.bind(this):e):t}function If(e){let t=Rt+1,n=it.length;for(;t<n;){const r=t+n>>>1;mr(it[r])<e?t=r+1:n=r}return t}function pl(e){(!it.length||!it.includes(e,si&&e.allowRecurse?Rt+1:Rt))&&e!==Bo&&(e.id==null?it.push(e):it.splice(If(e.id),0,e),Qa())}function Qa(){!si&&!Do&&(Do=!0,dl=Xa.then(es))}function Cf(e){const t=it.indexOf(e);t>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;Sn<or.length;Sn++)or[Sn]();or=null,Sn=0,Bo=null,Si(e,t)}}function ui(e){if(Si(),cr.length){const t=[...new Set(cr)];if(cr.length=0,Ut){Ut.push(...t);return}for(Ut=t,Ut.sort((n,r)=>mr(n)-mr(r)),kn=0;kn<Ut.length;kn++)Ut[kn]();Ut=null,kn=0}}const mr=e=>e.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;Rt<it.length;Rt++){const n=it[Rt];n&&n.active!==!1&&At(n,null,14)}}finally{Rt=0,it.length=0,ui(),si=!1,dl=null,(it.length||fr.length||cr.length)&&es(e)}}let Pn,Gr=[];function ts(e,t){var n,r;Pn=e,Pn?(Pn.enabled=!0,Gr.forEach(({event:i,args:o})=>Pn.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<e.length;n++){const r=e[n];if(Yt(r)){if(r.type!==Ze||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Uf=e=>{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;u<v.length;u++){const a=v[u];if(l[a]!==r[a]&&!ki(y,a))return!0}}}else return(i||d)&&(!d||!d.$stable)?!0:r===l?!1:r?l?Yl(r,l,y):!0:!!l;return!1}function Yl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!ki(n,o))return!0}return!1}function gl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const rs=e=>e.__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<n.length&&r;i++)r=r[n[i]];return r}}function un(e,t){if(!Le(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Me(e))un(e.value,t);else if(he(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(gn(e)||Rn(e))e.forEach(n=>{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;o<e.length;o++){let l=e[o];const d=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===He?(l.patchFlag&128&&i++,r=r.concat(Li(l.children,t,d))):(t||l.type!==Ze)&&r.push(d!=null?Tt(l,{key:d}):l)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ri(e){return me(e)?{setup:e,name:e.name}:e}const dn=e=>!!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;o<t.length;o++){let[l,d,p,y=xe]=t[o];me(l)&&(l={mounted:l,updated:l}),l.deep&&un(d),i.push({dir:l,instance:r,value:d,oldValue:void 0,arg:p,modifiers:y})}return e}function _t(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const d=i[l];o&&(d.oldValue=o[l].value);let p=d.dir[r];p&&(mn(),ot(p,n,8,[e.el,d,e,t]),bn())}}const Ol="components",oc="directives";function lc(e,t){return El(Ol,e,!0,t)||e}const ms=Symbol();function ac(e){return ke(e)?El(Ol,e,!1)||e:e||ms}function sc(e){return El(oc,e)}function El(e,t,n=!0,r=!1){const i=We||Ce;if(i){const o=i.type;if(e===Ol){const d=pi(o,!1);if(d&&(d===t||d===lt(t)||d===xr(lt(t))))return o}const l=Jl(i[e]||o[e],t)||Jl(i.appContext[e],t);return!l&&r?o:l}}function Jl(e,t){return e&&(e[t]||e[lt(t)]||e[xr(lt(t))])}function uc(e,t,n,r){let i;const o=n&&n[r];if(he(e)||ke(e)){i=new Array(e.length);for(let l=0,d=e.length;l<d;l++)i[l]=t(e[l],l,void 0,o&&o[l])}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,o&&o[l])}else if(Le(e))if(e[Symbol.iterator])i=Array.from(e,(l,d)=>t(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;d<p;d++){const y=l[d];i[d]=t(e[y],y,d,o&&o[d])}}else i=[];return n&&(n[r]=i),i}function fc(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(he(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.fn)}return e}function cc(e,t,n={},r,i){if(We.isCE||We.parent&&dn(We.parent)&&We.parent.isCE)return Se("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),ji();const l=o&&bs(o(n)),d=Tl(He,{key:n.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!i&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),o&&o._c&&(o._d=!0),d}function bs(e){return e.some(t=>Yt(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;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ge(e,t){return e?[...new Set([].concat(e,t))]:t}function an(e,t){return e?Pe(Pe(Object.create(null),e),t):t}function mc(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const r in t)n[r]=Ge(e[r],t[r]);return n}function bc(e,t,n,r=!1){const i={},o={};li(o,qi,1),e.propsDefaults=Object.create(null),Es(e,t,i,o);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:za(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function _c(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:l}}=e,d=Ee(i),[p]=e.propsOptions;let y=!1;if((r||l>0)&&!(l&16)){if(l&8){const v=e.vnode.dynamicProps;for(let u=0;u<v.length;u++){let a=v[u];if(ki(e.emitsOptions,a))continue;const f=t[a];if(p)if(we(o,a))f!==o[a]&&(o[a]=f,y=!0);else{const _=lt(a);i[_]=$o(p,d,_,f,e,!1)}else f!==o[a]&&(o[a]=f,y=!0)}}}else{Es(e,t,i,o)&&(y=!0);let v;for(const u in d)(!t||!we(t,u)&&((v=wt(u))===u||!we(t,v)))&&(p?n&&(n[u]!==void 0||n[v]!==void 0)&&(i[u]=$o(p,d,u,void 0,e,!0)):delete i[u]);if(o!==d)for(const u in o)(!t||!we(t,u)&&!0)&&(delete o[u],y=!0)}y&&Ct(e,"set","$attrs")}function Es(e,t,n,r){const[i,o]=e.propsOptions;let l=!1,d;if(t)for(let p in t){if(ar(p))continue;const y=t[p];let v;i&&we(i,v=lt(p))?!o||!o.includes(v)?n[v]=y:(d||(d={}))[v]=y:ki(e.emitsOptions,p)||(!(p in r)||y!==r[p])&&(r[p]=y,l=!0)}if(o){const p=Ee(n),y=d||xe;for(let v=0;v<o.length;v++){const u=o[v];n[u]=$o(i,p,u,y[u],e,!we(y,u))}}return l}function $o(e,t,n,r,i,o){const l=e[n];if(l!=null){const d=we(l,"default");if(d&&r===void 0){const p=l.default;if(l.type!==Function&&me(p)){const{propsDefaults:y}=i;n in y?r=y[n]:(Gt(i),r=y[n]=p.call(null,t),zt())}else r=p}l[0]&&(o&&!d?r=!1:l[1]&&(r===""||r===wt(n))&&(r=!0))}return r}function ws(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,l={},d=[];let p=!1;if(!me(e)){const v=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<o.length;v++){const u=lt(o[v]);na(u)&&(l[u]=xe)}else if(o)for(const v in o){const u=lt(v);if(na(u)){const a=o[v],f=l[u]=he(a)||me(a)?{type:a}:a;if(f){const _=oa(Boolean,f.type),g=oa(String,f.type);f[0]=_>-1,f[1]=g<0||_<g,(_>-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<s.staticCount;z++)B&&(s.children+=R.nodeType===1?R.outerHTML:R.data),z===s.staticCount-1&&(s.anchor=R),R=o(R);return R}break;case He:x?R=_(h,s,m,c,E,T):R=A();break;default:if(w&1)k!==1||s.type.toLowerCase()!==h.tagName.toLowerCase()?R=A():R=a(h,s,m,c,E,T);else if(w&6){s.slotScopeIds=E;const B=l(h);if(t(s,B,null,m,c,Xr(B),T),R=x?b(h):o(h),R&&Qr(R)&&R.data==="teleport end"&&(R=o(R)),dn(s)){let z;x?(z=Se(He),z.anchor=R?R.previousSibling:B.lastChild):z=h.nodeType===3?Nl(""):Se("div"),z.el=h,s.component.subTree=z}}else w&64?k!==8?R=A():R=s.type.hydrate(h,s,m,c,E,T,e,f):w&128&&(R=s.type.hydrate(h,s,m,c,Xr(l(h)),E,T,e,u))}return S!=null&&hi(S,null,c,s),R},a=(h,s,m,c,E,T)=>{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<P;S++){const w=x?A[S]:A[S]=rt(A[S]);if(h)h=u(h,w,c,E,T,x);else{if(w.type===Bn&&!w.children)continue;Bt=!0,n(null,w,m,null,c,E,Xr(m),T)}}return h},_=(h,s,m,c,E,T)=>{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<oe.length;H++)f(M,oe[H]);if(ie){let H=ie.subTree;if(F===H){const Z=ie.vnode;A(M,Z,Z.scopeId,Z.slotScopeIds,ie.parent)}}},P=(M,F,J,oe,ie,H,Z,X,ee=0)=>{for(let V=ee;V<M.length;V++){const ue=M[V]=X?Kt(M[V]):rt(M[V]);b(null,ue,F,J,oe,ie,H,Z,X)}},S=(M,F,J,oe,ie,H,Z)=>{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<pe.length;_e++){const de=pe[_e],Ne=ae[de],ut=se[de];(ut!==Ne||de==="value")&&o(X,de,Ne,ut,ie,M.children,J,oe,K)}}ee&1&&M.children!==F.children&&v(X,F.children)}else!Z&&V==null&&N(X,F,ae,se,J,oe,ie);((ce=se.onVnodeUpdated)||ue)&&Ue(()=>{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<F.length;X++){const ee=M[X],V=F[X],ue=ee.el&&(ee.type===He||!Ot(ee,V)||ee.shapeFlag&70)?u(ee.el):J;b(ee,V,ue,null,oe,ie,H,Z,!0)}},N=(M,F,J,oe,ie,H,Z)=>{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;se<ae;se++){const ce=F[se]=ee?Kt(F[se]):rt(F[se]);b(M[se],ce,J,null,ie,H,Z,X,ee)}V>ue?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=ce<ue?F[ce].el:oe;for(;V<=se;)b(null,F[V]=ee?Kt(F[V]):rt(F[V]),J,ge,ie,H,Z,X,ee),V++}}else if(V>se)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;V++)ft[V]=0;for(V=ce;V<=ae;V++){const je=M[V];if(de>=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<ue?F[je+1].el:oe;ft[V]===0?b(null,qe,J,yt,ie,H,Z,X,ee):ut&&(_e<0||V!==xt[_e]?j(qe,J,yt,2):_e--)}}},j=(M,F,J,oe,ie=null)=>{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;ae<ee.length;ae++)j(ee[ae],F,J,oe);r(M.anchor,F,J);return}if(Z===pn){c(M,F,J);return}if(oe!==2&&V&1&&X)if(oe===0)X.beforeEnter(H),r(H,F,J),Ue(()=>X.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;Z<M.length;Z++)D(M[Z],F,J,oe,ie)},Q=M=>M.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<r.length;o++){const l=r[o];let d=i[o];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=i[o]=Kt(i[o]),d.el=l.el),n||Al(l,d))}}function Nc(e){const t=e.slice(),n=[0];let r,i,o,l,d;const p=e.length;for(r=0;r<p;r++){const y=e[r];if(y!==0){if(i=n[n.length-1],e[i]<y){t[r]=i,n.push(r);continue}for(o=0,l=n.length-1;o<l;)d=o+l>>1,e[n[d]]<y?o=d+1:l=d;y<e[n[o]]&&(o>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;f<p.length;f++){const _=p[f];i(_,t,n,!0,!!_.dynamicChildren)}},move:Jr,hydrate:Pc};function Jr(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:l,anchor:d,shapeFlag:p,children:y,props:v}=e,u=o===2;if(u&&r(l,t,n),(!u||dr(v))&&p&16)for(let a=0;a<y.length;a++)i(y[a],t,n,2);u&&r(d,t,n)}function Pc(e,t,n,r,i,o,{o:{nextSibling:l,parentNode:d,querySelector:p}},y){const v=t.target=zo(t.props,p);if(v){const u=v._lpa||v.firstChild;if(t.shapeFlag&16)if(dr(t.props))t.anchor=y(l(e),t,d(e),n,r,i,o),t.targetAnchor=u;else{t.anchor=l(e);let a=u;for(;a;)if(a=l(a),a&&a.nodeType===8&&a.data==="teleport anchor"){t.targetAnchor=a,v._lpa=t.targetAnchor&&l(t.targetAnchor);break}y(u,t,v,n,r,i,o)}}return t.anchor&&l(t.anchor)}const Lc=kc,He=Symbol(void 0),Bn=Symbol(void 0),Ze=Symbol(void 0),pn=Symbol(void 0),pr=[];let tt=null;function ji(e=!1){pr.push(tt=e?null:[])}function Ls(){pr.pop(),tt=pr[pr.length-1]||null}let yn=1;function Vo(e){yn+=e}function Rs(e){return e.dynamicChildren=yn>0?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;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=wr([t.class,r.class]));else if(i==="style")t.style=Er([t.style,r.style]);else if(Ar(i)){const o=t[i],l=r[i];l&&o!==l&&!(he(o)&&o.includes(l))&&(t[i]=o?[].concat(o,l):l)}else i!==""&&(t[i]=r[i])}return t}function Je(e,t,n,r=null){ot(e,t,7,[n,r])}const qc=Ns();let Dc=0;function js(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||qc,o={uid:Dc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new il(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ws(r,i),emitsOptions:ns(r,i),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:r.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=jf.bind(null,o),e.ce&&e.ce(o),o}let Ce=null;const Qt=()=>Ce||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;r<n.length;r++)if(jn(n[r],t[r]))return!1;return yn>0&&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?`<svg>${e}</svg>`: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<ua.length;i++){const o=ua[i]+r;if(o in e)return ko[t]=o}return t}const fa="http://www.w3.org/1999/xlink";function dh(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(fa,t.slice(6,t.length)):e.setAttributeNS(fa,t,n);else{const o=Tu(t);n==null||o&&!Sa(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function ph(e,t,n,r,i,o,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,i,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const p=n==null?"":n;(e.value!==p||e.tagName==="OPTION")&&(e.value=p),n==null&&e.removeAttribute(t);return}let d=!1;if(n===""||n==null){const p=typeof e[t];p==="boolean"?n=Sa(n):n==null&&p==="string"?(n="",d=!0):p==="number"&&(n=0,d=!0)}try{e[t]=n}catch(p){}d&&e.removeAttribute(t)}const[Ws,vh]=(()=>{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<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(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<p&&u()},d+1),e.addEventListener(y,a)}function Xs(e,t){const n=window.getComputedStyle(e),r=_=>(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.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ma(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<o.length;y++){const v=o[y];v.key!=null&&vn(v,Dn(v,d,r,n))}if(i)for(let y=0;y<i.length;y++){const v=i[y];vn(v,Dn(v,d,r,n)),Js.set(v,v.el.getBoundingClientRect())}return Se(p,null,o)}}},Ch=Ih;function Mh(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function jh(e){eu.set(e,e.el.getBoundingClientRect())}function qh(e){const t=Js.get(e),n=eu.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function Dh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{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<i;r++){const o=e.options[r],l=Un(o);if(n)he(t)?o.selected=bi(t,l)>-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;i<t.length;i++){const o=Hh[t[i]];if(o&&o(n,t))return}return e(n,...r)},$h={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zh=(e,t)=>n=>{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;h<arguments.length;h++)b[h]=arguments[h];if(b.length>1)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;g<a&&_.hasNext();){var b;g<u?b=_.next(u-g):(b=_.next(a-g),f.push(b)),g+=p.length(b)}return new v(f)},v.prototype.compose=function(u){var a=p.iterator(this.ops),f=p.iterator(u.ops),_=[],g=f.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){for(var b=g.retain;a.peekType()==="insert"&&a.peekLength()<=b;)b-=a.peekLength(),_.push(a.next());g.retain-b>0&&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"&&(_<u||!a)&&(u+=g);_+=g}return u},n.exports=v},function(n,r){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p=function(f){return typeof Array.isArray=="function"?Array.isArray(f):o.call(f)==="[object Array]"},y=function(f){if(!f||o.call(f)!=="[object Object]")return!1;var _=i.call(f,"constructor"),g=f.constructor&&f.constructor.prototype&&i.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!_&&!g)return!1;var b;for(b in f);return typeof b=="undefined"||i.call(f,b)},v=function(f,_){l&&_.name==="__proto__"?l(f,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):f[_.name]=_.newValue},u=function(f,_){if(_==="__proto__")if(i.call(f,_)){if(d)return d(f,_).value}else return;return f[_]};n.exports=function a(){var f,_,g,b,h,s,m=arguments[0],c=1,E=arguments.length,T=!1;for(typeof m=="boolean"&&(T=m,m=arguments[1]||{},c=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});c<E;++c)if(f=arguments[c],f!=null)for(_ in f)g=u(m,_),b=u(f,_),m!==b&&(T&&b&&(y(b)||(h=p(b)))?(h?(h=!1,s=g&&p(g)?g:[]):s=g&&y(g)?g:{},v(m,{name:_,newValue:a(T,s,b)})):typeof b!="undefined"&&v(m,{name:_,newValue:b}));return m}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var o=function(){function w(N,k){for(var R=0;R<k.length;R++){var B=k[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(N,B.key,B)}}return function(N,k,R){return k&&w(N.prototype,k),R&&w(N,R),N}}(),l=function w(N,k,R){N===null&&(N=Function.prototype);var B=Object.getOwnPropertyDescriptor(N,k);if(B===void 0){var z=Object.getPrototypeOf(N);return z===null?void 0:w(z,k,R)}else{if("value"in B)return B.value;var Y=B.get;return Y===void 0?void 0:Y.call(R)}},d=i(3),p=m(d),y=i(2),v=m(y),u=i(0),a=m(u),f=i(16),_=m(f),g=i(6),b=m(g),h=i(7),s=m(h);function m(w){return w&&w.__esModule?w:{default:w}}function c(w,N){if(!(w instanceof N))throw new TypeError("Cannot call a class as a function")}function E(w,N){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:w}function T(w,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);w.prototype=Object.create(N&&N.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(w,N):w.__proto__=N)}var x=1,A=function(w){T(N,w);function N(){return c(this,N),E(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return o(N,[{key:"attach",value:function(){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new v.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(R,B){var z=a.default.query(R,a.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,B)}},{key:"formatAt",value:function(R,B,z,Y){this.format(z,Y)}},{key:"insertAt",value:function(R,B,z){if(typeof B=="string"&&B.endsWith(`
- `)){var Y=a.default.create(P.blotName);this.parent.insertBefore(Y,R===0?this:this.next),Y.insertAt(0,B.slice(0,-1))}else l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,R,B,z)}}]),N}(a.default.Embed);A.scope=a.default.Scope.BLOCK_BLOT;var P=function(w){T(N,w);function N(k){c(this,N);var R=E(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,k));return R.cache={},R}return o(N,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(R,B){return B.length()===0?R:R.insert(B.value(),S(B))},new v.default).insert(`
- `,S(this))),this.cache.delta}},{key:"deleteAt",value:function(R,B){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"deleteAt",this).call(this,R,B),this.cache={}}},{key:"formatAt",value:function(R,B,z,Y){B<=0||(a.default.query(z,a.default.Scope.BLOCK)?R+B===this.length()&&this.format(z,Y):l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"formatAt",this).call(this,R,Math.min(B,this.length()-R-1),z,Y),this.cache={})}},{key:"insertAt",value:function(R,B,z){if(z!=null)return l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,R,B,z);if(B.length!==0){var Y=B.split(`
- `),re=Y.shift();re.length>0&&(R<this.length()-1||this.children.tail==null?l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertAt",this).call(this,Math.min(R,this.length()-1),re):this.children.tail.insertAt(this.children.tail.length(),re),this.cache={});var W=this;Y.reduce(function(q,L){return W=W.split(q,!0),W.insertAt(0,L),L.length},R+re.length)}}},{key:"insertBefore",value:function(R,B){var z=this.children.head;l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,R,B),z instanceof _.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"length",this).call(this)+x),this.cache.length}},{key:"moveChildren",value:function(R,B){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"moveChildren",this).call(this,R,B),this.cache={}}},{key:"optimize",value:function(R){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,R),this.cache={}}},{key:"path",value:function(R){return l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"path",this).call(this,R,!0)}},{key:"removeChild",value:function(R){l(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"removeChild",this).call(this,R),this.cache={}}},{key:"split",value:function(R){var B=arguments.length>1&&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;j<L.length;j++){var D=L[j];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(q,D.key,D)}}return function(q,L,j){return L&&W(q.prototype,L),j&&W(q,j),q}}();i(50);var p=i(2),y=S(p),v=i(14),u=S(v),a=i(8),f=S(a),_=i(9),g=S(_),b=i(0),h=S(b),s=i(15),m=S(s),c=i(3),E=S(c),T=i(10),x=S(T),A=i(34),P=S(A);function S(W){return W&&W.__esModule?W:{default:W}}function w(W,q,L){return q in W?Object.defineProperty(W,q,{value:L,enumerable:!0,configurable:!0,writable:!0}):W[q]=L,W}function N(W,q){if(!(W instanceof q))throw new TypeError("Cannot call a class as a function")}var k=(0,x.default)("quill"),R=function(){d(W,null,[{key:"debug",value:function(L){L===!0&&(L="log"),x.default.level(L)}},{key:"find",value:function(L){return L.__quill||h.default.find(L)}},{key:"import",value:function(L){return this.imports[L]==null&&k.error("Cannot import "+L+". Are you sure it was registered?"),this.imports[L]}},{key:"register",value:function(L,j){var D=this,G=arguments.length>2&&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(`<div class='ql-editor' style="white-space: normal;">`+D+"<p><br></p></div>");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<q||te===q&&j===f.default.sources.USER?te:L>=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;m<s.length;m++){var c=s[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,s,m){return s&&b(h.prototype,s),m&&b(h,m),h}}(),l=function b(h,s,m){h===null&&(h=Function.prototype);var c=Object.getOwnPropertyDescriptor(h,s);if(c===void 0){var E=Object.getPrototypeOf(h);return E===null?void 0:b(E,s,m)}else{if("value"in c)return c.value;var T=c.get;return T===void 0?void 0:T.call(m)}},d=i(7),p=u(d),y=i(0),v=u(y);function u(b){return b&&b.__esModule?b:{default:b}}function a(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}function f(b,h){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:b}function _(b,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);b.prototype=Object.create(h&&h.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(b,h):b.__proto__=h)}var g=function(b){_(h,b);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return o(h,[{key:"formatAt",value:function(m,c,E,T){if(h.compare(this.statics.blotName,E)<0&&v.default.query(E,v.default.Scope.BLOT)){var x=this.isolate(m,c);T&&x.wrap(E,T)}else l(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,m,c,E,T)}},{key:"optimize",value:function(m){if(l(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,m),this.parent instanceof h&&h.compare(this.statics.blotName,this.parent.statics.blotName)>0){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:m<c?-1:1}}]),h}(v.default.Inline);g.allowedChildren=[g,v.default.Embed,p.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),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.Text);r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function s(m,c){for(var E=0;E<c.length;E++){var T=c[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(m,T.key,T)}}return function(m,c,E){return c&&s(m.prototype,c),E&&s(m,E),m}}(),l=function s(m,c,E){m===null&&(m=Function.prototype);var T=Object.getOwnPropertyDescriptor(m,c);if(T===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:s(x,c,E)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(E)}},d=i(54),p=u(d),y=i(10),v=u(y);function u(s){return s&&s.__esModule?s:{default:s}}function a(s,m){if(!(s instanceof m))throw new TypeError("Cannot call a class as a function")}function f(s,m){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:s}function _(s,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);s.prototype=Object.create(m&&m.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(s,m):s.__proto__=m)}var g=(0,v.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(s){document.addEventListener(s,function(){for(var m=arguments.length,c=Array(m),E=0;E<m;E++)c[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(T){if(T.__quill&&T.__quill.emitter){var x;(x=T.__quill.emitter).handleDOM.apply(x,c)}})})});var h=function(s){_(m,s);function m(){a(this,m);var c=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));return c.listeners={},c.on("error",g.error),c}return o(m,[{key:"emit",value:function(){g.log.apply(g,arguments),l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var T=arguments.length,x=Array(T>1?T-1:0),A=1;A<T;A++)x[A-1]=arguments[A];(this.listeners[E.type]||[]).forEach(function(P){var S=P.node,w=P.handler;(E.target===S||S.contains(E.target))&&w.apply(void 0,[E].concat(x))})}},{key:"listenDOM",value:function(E,T,x){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:T,handler:x})}}]),m}(p.default);h.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},h.sources={API:"api",SILENT:"silent",USER:"user"},r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function o(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}var l=function d(p){var y=arguments.length>1&&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;f<u;f++)a[f-1]=arguments[f];(v=console)[y].apply(v,a)}}function p(y){return o.reduce(function(v,u){return v[u]=d.bind(console,u,y),v},{})}d.level=p.level=function(y){l=y},r.default=p},function(n,r,i){var o=Array.prototype.slice,l=i(52),d=i(53),p=n.exports=function(a,f,_){return _||(_={}),a===f?!0:a instanceof Date&&f instanceof Date?a.getTime()===f.getTime():!a||!f||typeof a!="object"&&typeof f!="object"?_.strict?a===f:a==f:u(a,f,_)};function y(a){return a==null}function v(a){return!(!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&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<a.length;g++)if(a[g]!==f[g])return!1;return!0}try{var h=l(a),s=l(f)}catch(m){return!1}if(h.length!=s.length)return!1;for(h.sort(),s.sort(),g=h.length-1;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<S.length;w++){var N=S[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(P,N.key,N)}}return function(P,S,w){return S&&A(P.prototype,S),w&&A(P,w),P}}(),d=function A(P,S,w){P===null&&(P=Function.prototype);var N=Object.getOwnPropertyDescriptor(P,S);if(N===void 0){var k=Object.getPrototypeOf(P);return k===null?void 0:A(k,S,w)}else{if("value"in N)return N.value;var R=N.get;return R===void 0?void 0:R.call(w)}},p=i(2),y=s(p),v=i(0),u=s(v),a=i(4),f=s(a),_=i(6),g=s(_),b=i(7),h=s(b);function s(A){return A&&A.__esModule?A:{default:A}}function m(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}function c(A,P){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:A}function E(A,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);A.prototype=Object.create(P&&P.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(A,P):A.__proto__=P)}var T=function(A){E(P,A);function P(){return m(this,P),c(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(g.default);T.blotName="code",T.tagName="CODE";var x=function(A){E(P,A);function P(){return m(this,P),c(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return l(P,[{key:"delta",value:function(){var w=this,N=this.domNode.textContent;return N.endsWith(`
- `)&&(N=N.slice(0,-1)),N.split(`
- `).reduce(function(k,R){return k.insert(R).insert(`
- `,w.formats())},new y.default)}},{key:"format",value:function(w,N){if(!(w===this.statics.blotName&&N)){var k=this.descendant(h.default,this.length()-1),R=o(k,1),B=R[0];B!=null&&B.deleteAt(B.length()-1,1),d(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,w,N)}}},{key:"formatAt",value:function(w,N,k,R){if(N!==0&&!(u.default.query(k,u.default.Scope.BLOCK)==null||k===this.statics.blotName&&R===this.statics.formats(this.domNode))){var B=this.newlineIndex(w);if(!(B<0||B>=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<L.length;j++){var D=L[j];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(q,D.key,D)}}return function(q,L,j){return L&&W(q.prototype,L),j&&W(q,j),q}}(),p=i(2),y=N(p),v=i(20),u=N(v),a=i(0),f=N(a),_=i(13),g=N(_),b=i(24),h=N(b),s=i(4),m=N(s),c=i(16),E=N(c),T=i(21),x=N(T),A=i(11),P=N(A),S=i(3),w=N(S);function N(W){return W&&W.__esModule?W:{default:W}}function k(W,q,L){return q in W?Object.defineProperty(W,q,{value:L,enumerable:!0,configurable:!0,writable:!0}):W[q]=L,W}function R(W,q){if(!(W instanceof q))throw new TypeError("Cannot call a class as a function")}var B=/^[ -~]*$/,z=function(){function W(q){R(this,W),this.scroll=q,this.delta=this.getDelta()}return d(W,[{key:"applyDelta",value:function(L){var j=this,D=!1;this.scroll.update();var G=this.scroll.length();return this.scroll.batchStart(),L=re(L),L.reduce(function($,C){var K=C.retain||C.delete||C.insert.length||1,Q=C.attributes||{};if(C.insert!=null){if(typeof C.insert=="string"){var te=C.insert;te.endsWith(`
- `)&&D&&(D=!1,te=te.slice(0,-1)),$>=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;w<S.length;w++){var N=S[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(P,N.key,N)}}return function(P,S,w){return S&&A(P.prototype,S),w&&A(P,w),P}}(),d=i(0),p=h(d),y=i(21),v=h(y),u=i(11),a=h(u),f=i(8),_=h(f),g=i(10),b=h(g);function h(A){return A&&A.__esModule?A:{default:A}}function s(A){if(Array.isArray(A)){for(var P=0,S=Array(A.length);P<A.length;P++)S[P]=A[P];return S}else return Array.from(A)}function m(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}var c=(0,b.default)("quill:selection"),E=function A(P){var S=arguments.length>1&&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?(Y<k.data.length?(q.setStart(k,Y),q.setEnd(k,Y+1)):(q.setStart(k,Y-1),q.setEnd(k,Y),$="right"),C=q.getBoundingClientRect()):(C=z.domNode.getBoundingClientRect(),Y>0&&($="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.top<q.top?S.scrollTop-=q.top-N.top:N.bottom>q.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;h<b.length;h++){var s=b[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(g,s.key,s)}}return function(g,b,h){return b&&_(g.prototype,b),h&&_(g,h),g}}(),l=function _(g,b,h){g===null&&(g=Function.prototype);var s=Object.getOwnPropertyDescriptor(g,b);if(s===void 0){var m=Object.getPrototypeOf(g);return m===null?void 0:_(m,b,h)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(h)}},d=i(0),p=y(d);function y(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function u(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function a(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var f=function(_){a(g,_);function g(){return v(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"insertInto",value:function(h,s){h.children.length===0?l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,h,s):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g}(p.default.Embed);f.blotName="break",f.tagName="BR",r.default=f},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(44),d=i(30),p=i(1),y=function(u){o(a,u);function a(f){var _=u.call(this,f)||this;return _.build(),_}return a.prototype.appendChild=function(f){this.insertBefore(f)},a.prototype.attach=function(){u.prototype.attach.call(this),this.children.forEach(function(f){f.attach()})},a.prototype.build=function(){var f=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(_){try{var g=v(_);f.insertBefore(g,f.children.head||void 0)}catch(b){if(b instanceof p.ParchmentError)return;throw b}})},a.prototype.deleteAt=function(f,_){if(f===0&&_===this.length())return this.remove();this.children.forEachAt(f,_,function(g,b,h){g.deleteAt(b,h)})},a.prototype.descendant=function(f,_){var g=this.children.find(_),b=g[0],h=g[1];return f.blotName==null&&f(b)||f.blotName!=null&&b instanceof f?[b,h]:b instanceof a?b.descendant(f,h):[null,-1]},a.prototype.descendants=function(f,_,g){_===void 0&&(_=0),g===void 0&&(g=Number.MAX_VALUE);var b=[],h=g;return this.children.forEachAt(_,g,function(s,m,c){(f.blotName==null&&f(s)||f.blotName!=null&&s instanceof f)&&b.push(s),s instanceof a&&(b=b.concat(s.descendants(f,m,h))),h-=c}),b},a.prototype.detach=function(){this.children.forEach(function(f){f.detach()}),u.prototype.detach.call(this)},a.prototype.formatAt=function(f,_,g,b){this.children.forEachAt(f,_,function(h,s,m){h.formatAt(s,m,g,b)})},a.prototype.insertAt=function(f,_,g){var b=this.children.find(f),h=b[0],s=b[1];if(h)h.insertAt(s,_,g);else{var m=g==null?p.create("text",_):p.create(_,g);this.appendChild(m)}},a.prototype.insertBefore=function(f,_){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return f instanceof g}))throw new p.ParchmentError("Cannot insert "+f.statics.blotName+" into "+this.statics.blotName);f.insertInto(this,_)},a.prototype.length=function(){return this.children.reduce(function(f,_){return f+_.length()},0)},a.prototype.moveChildren=function(f,_){this.children.forEach(function(g){f.insertBefore(g,_)})},a.prototype.optimize=function(f){if(u.prototype.optimize.call(this,f),this.children.length===0)if(this.statics.defaultChild!=null){var _=p.create(this.statics.defaultChild);this.appendChild(_),_.optimize(f)}else this.remove()},a.prototype.path=function(f,_){_===void 0&&(_=!1);var g=this.children.find(f,_),b=g[0],h=g[1],s=[[this,f]];return b instanceof a?s.concat(b.path(h,_)):(b!=null&&s.push([b,h]),s)},a.prototype.removeChild=function(f){this.children.remove(f)},a.prototype.replace=function(f){f instanceof a&&f.moveChildren(this),u.prototype.replace.call(this,f)},a.prototype.split=function(f,_){if(_===void 0&&(_=!1),!_){if(f===0)return this;if(f===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(f,this.length(),function(b,h,s){b=b.split(h,_),g.appendChild(b)}),g},a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},a.prototype.update=function(f,_){var g=this,b=[],h=[];f.forEach(function(s){s.target===g.domNode&&s.type==="childList"&&(b.push.apply(b,s.addedNodes),h.push.apply(h,s.removedNodes))}),h.forEach(function(s){if(!(s.parentNode!=null&&s.tagName!=="IFRAME"&&document.body.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var m=p.find(s);m!=null&&(m.domNode.parentNode==null||m.domNode.parentNode===g.domNode)&&m.detach()}}),b.filter(function(s){return s.parentNode==g.domNode}).sort(function(s,m){return s===m?0:s.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(s){var m=null;s.nextSibling!=null&&(m=p.find(s.nextSibling));var c=v(s);(c.next!=m||c.next==null)&&(c.parent!=null&&c.parent.removeChild(g),g.insertBefore(c,m||void 0))})},a}(d.default);function v(u){var a=p.find(u);if(a==null)try{a=p.create(u)}catch(f){a=p.create(p.Scope.INLINE),[].slice.call(u.childNodes).forEach(function(_){a.domNode.appendChild(_)}),u.parentNode&&u.parentNode.replaceChild(a.domNode,u),a.attach()}return a}r.default=y},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(12),d=i(31),p=i(17),y=i(1),v=function(u){o(a,u);function a(f){var _=u.call(this,f)||this;return _.attributes=new d.default(_.domNode),_}return a.formats=function(f){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return f.tagName.toLowerCase()},a.prototype.format=function(f,_){var g=y.query(f);g instanceof l.default?this.attributes.attribute(g,_):_&&g!=null&&(f!==this.statics.blotName||this.formats()[f]!==_)&&this.replaceWith(f,_)},a.prototype.formats=function(){var f=this.attributes.values(),_=this.statics.formats(this.domNode);return _!=null&&(f[this.statics.blotName]=_),f},a.prototype.replaceWith=function(f,_){var g=u.prototype.replaceWith.call(this,f,_);return this.attributes.copy(g),g},a.prototype.update=function(f,_){var g=this;u.prototype.update.call(this,f,_),f.some(function(b){return b.target===g.domNode&&b.type==="attributes"})&&this.attributes.build()},a.prototype.wrap=function(f,_){var g=u.prototype.wrap.call(this,f,_);return g instanceof a&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},a}(p.default);r.default=v},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(30),d=i(1),p=function(y){o(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.value=function(u){return!0},v.prototype.index=function(u,a){return this.domNode===u||this.domNode.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1},v.prototype.position=function(u,a){var f=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return u>0&&(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;k<B.length;k++){var z=B[k],Y=Object.getOwnPropertyDescriptor(A,z);Y&&!Y.enumerable&&!m||(S[z]=x(A[z],P-1),Y.enumerable||Object.defineProperty(S,z,{enumerable:!1}))}if(m)for(var re=Object.getOwnPropertyNames(A),k=0;k<re.length;k++){var W=re[k],Y=Object.getOwnPropertyDescriptor(A,W);Y&&Y.enumerable||(S[W]=x(A[W],P-1),Object.defineProperty(S,W,{enumerable:!1}))}return S}return x(g,h)}y.clonePrototype=function(b){if(b===null)return null;var h=function(){};return h.prototype=b,new h};function v(g){return Object.prototype.toString.call(g)}y.__objToStr=v;function u(g){return typeof g=="object"&&v(g)==="[object Date]"}y.__isDate=u;function a(g){return typeof g=="object"&&v(g)==="[object Array]"}y.__isArray=a;function f(g){return typeof g=="object"&&v(g)==="[object RegExp]"}y.__isRegExp=f;function _(g){var b="";return g.global&&(b+="g"),g.ignoreCase&&(b+="i"),g.multiline&&(b+="m"),b}return y.__getRegExpFlags=_,y}();typeof n=="object"&&n.exports&&(n.exports=i)},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(){function S(w,N){for(var k=0;k<N.length;k++){var R=N[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,N,k){return N&&S(w.prototype,N),k&&S(w,k),w}}(),d=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)}},p=i(0),y=c(p),v=i(8),u=c(v),a=i(4),f=c(a),_=i(16),g=c(_),b=i(13),h=c(b),s=i(25),m=c(s);function c(S){return S&&S.__esModule?S:{default:S}}function E(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function T(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function x(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}function A(S){return S instanceof f.default||S instanceof a.BlockEmbed}var P=function(S){x(w,S);function w(N,k){E(this,w);var R=T(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N));return R.emitter=k.emitter,Array.isArray(k.whitelist)&&(R.whitelist=k.whitelist.reduce(function(B,z){return B[z]=!0,B},{})),R.domNode.addEventListener("DOMNodeInserted",function(){}),R.optimize(),R.enable(),R}return l(w,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,R){var B=this.line(k),z=o(B,2),Y=z[0],re=z[1],W=this.line(k+R),q=o(W,1),L=q[0];if(d(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,k,R),L!=null&&Y!==L&&re>0){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;te<Q.length;te++){var le=Q[te];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(K,le.key,le)}}return function(K,Q,te){return Q&&C(K.prototype,Q),te&&C(K,te),K}}(),p=i(21),y=S(p),v=i(11),u=S(v),a=i(3),f=S(a),_=i(2),g=S(_),b=i(20),h=S(b),s=i(0),m=S(s),c=i(5),E=S(c),T=i(10),x=S(T),A=i(9),P=S(A);function S(C){return C&&C.__esModule?C:{default:C}}function w(C,K,Q){return K in C?Object.defineProperty(C,K,{value:Q,enumerable:!0,configurable:!0,writable:!0}):C[K]=Q,C}function N(C,K){if(!(C instanceof K))throw new TypeError("Cannot call a class as a function")}function k(C,K){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:C}function R(C,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);C.prototype=Object.create(K&&K.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(C,K):C.__proto__=K)}var B=(0,x.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Y=function(C){R(K,C),d(K,null,[{key:"match",value:function(te,le){return le=$(le),["altKey","ctrlKey","metaKey","shiftKey"].some(function(fe){return!!le[fe]!==te[fe]&&le[fe]!==null})?!1:le.key===(te.which||te.keyCode)}}]);function K(Q,te){N(this,K);var le=k(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Q,te));return le.bindings={},Object.keys(le.options.bindings).forEach(function(fe){fe==="list autofill"&&Q.scroll.whitelist!=null&&!Q.scroll.whitelist.list||le.options.bindings[fe]&&le.addBinding(le.options.bindings[fe])}),le.addBinding({key:K.keys.ENTER,shiftKey:null},j),le.addBinding({key:K.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(le.addBinding({key:K.keys.BACKSPACE},{collapsed:!0},W),le.addBinding({key:K.keys.DELETE},{collapsed:!0},q)):(le.addBinding({key:K.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},W),le.addBinding({key:K.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),le.addBinding({key:K.keys.BACKSPACE},{collapsed:!1},L),le.addBinding({key:K.keys.DELETE},{collapsed:!1},L),le.addBinding({key:K.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},W),le.listen(),le}return d(K,[{key:"addBinding",value:function(te){var le=arguments.length>1&&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<m.length;c++){var E=m[c];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,m,c){return m&&h(s.prototype,m),c&&h(s,c),s}}(),p=i(0),y=a(p),v=i(7),u=a(v);function a(h){return h&&h.__esModule?h:{default:h}}function f(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function _(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function g(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var b=function(h){g(s,h),d(s,null,[{key:"value",value:function(){}}]);function s(m,c){f(this,s);var E=_(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,m));return E.selection=c,E.textNode=document.createTextNode(s.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return d(s,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(c,E){if(this._length!==0)return l(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,c,E);for(var T=this,x=0;T!=null&&T.statics.scope!==y.default.Scope.BLOCK_BLOT;)x+=T.offset(T.parent),T=T.parent;T!=null&&(this._length=s.CONTENTS.length,T.optimize(),T.formatAt(x,s.CONTENTS.length,c,E),this._length=0)}},{key:"index",value:function(c,E){return c===this.textNode?0:l(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"index",this).call(this,c,E)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var c=this.textNode,E=this.selection.getNativeRange(),T=void 0,x=void 0,A=void 0;if(E!=null&&E.start.node===c&&E.end.node===c){var P=[c,E.start.offset,E.end.offset];T=P[0],x=P[1],A=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==s.CONTENTS){var S=this.textNode.data.split(s.CONTENTS).join("");this.next instanceof u.default?(T=this.next.domNode,this.next.insertAt(0,S),this.textNode.data=s.CONTENTS):(this.textNode.data=S,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(s.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),x!=null){var w=[x,A].map(function(k){return Math.max(0,Math.min(T.data.length,k-1))}),N=o(w,2);return x=N[0],A=N[1],{startNode:T,startOffset:x,endNode:T,endOffset:A}}}}},{key:"update",value:function(c,E){var T=this;if(c.some(function(A){return A.type==="characterData"&&A.target===T.textNode})){var x=this.restore();x&&(E.range=x)}}},{key:"value",value:function(){return""}}]),s}(y.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),l=y(o),d=i(4),p=y(d);function y(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function u(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function a(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var f=function(_){a(g,_);function g(){return v(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(l.default.Container);f.allowedChildren=[p.default,d.BlockEmbed,f],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var o=function(){function b(h,s){for(var m=0;m<s.length;m++){var c=s[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,s,m){return s&&b(h.prototype,s),m&&b(h,m),h}}(),l=function b(h,s,m){h===null&&(h=Function.prototype);var c=Object.getOwnPropertyDescriptor(h,s);if(c===void 0){var E=Object.getPrototypeOf(h);return E===null?void 0:b(E,s,m)}else{if("value"in c)return c.value;var T=c.get;return T===void 0?void 0:T.call(m)}},d=i(0),p=y(d);function y(b){return b&&b.__esModule?b:{default:b}}function v(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}function u(b,h){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:b}function a(b,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);b.prototype=Object.create(h&&h.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(b,h):b.__proto__=h)}var f=function(b){a(h,b);function h(){return v(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return o(h,[{key:"value",value:function(m){var c=l(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,m);return c.startsWith("rgb(")?(c=c.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+c.split(",").map(function(E){return("00"+parseInt(E).toString(16)).slice(-2)}).join("")):c}}]),h}(p.default.Attributor.Style),_=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),g=new f("color","color",{scope:p.default.Scope.INLINE});r.ColorAttributor=f,r.ColorClass=_,r.ColorStyle=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var o=function(){function g(b,h){for(var s=0;s<h.length;s++){var m=h[s];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,h,s){return h&&g(b.prototype,h),s&&g(b,s),b}}(),l=function g(b,h,s){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,h);if(m===void 0){var c=Object.getPrototypeOf(b);return c===null?void 0:g(c,h,s)}else{if("value"in m)return m.value;var E=m.get;return E===void 0?void 0:E.call(s)}},d=i(6),p=y(d);function y(g){return g&&g.__esModule?g:{default:g}}function v(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function u(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function a(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var f=function(g){a(b,g);function b(){return v(this,b),u(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"format",value:function(s,m){if(s!==this.statics.blotName||!m)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,s,m);m=this.constructor.sanitize(m),this.domNode.setAttribute("href",m)}}],[{key:"create",value:function(s){var m=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,s);return s=this.sanitize(s),m.setAttribute("href",s),m.setAttribute("rel","noopener noreferrer"),m.setAttribute("target","_blank"),m}},{key:"formats",value:function(s){return s.getAttribute("href")}},{key:"sanitize",value:function(s){return _(s,this.PROTOCOL_WHITELIST)?s:this.SANITIZED_URL}}]),b}(p.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function _(g,b){var h=document.createElement("a");h.href=g;var s=h.href.slice(0,h.href.indexOf(":"));return b.indexOf(s)>-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;m<s.length;m++){var c=s[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,s,m){return s&&b(h.prototype,s),m&&b(h,m),h}}(),d=i(23),p=u(d),y=i(107),v=u(y);function u(b){return b&&b.__esModule?b:{default:b}}function a(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}var f=0;function _(b,h){b.setAttribute(h,b.getAttribute(h)!=="true")}var g=function(){function b(h){var s=this;a(this,b),this.select=h,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){s.togglePicker()}),this.label.addEventListener("keydown",function(m){switch(m.keyCode){case p.default.keys.ENTER:s.togglePicker();break;case p.default.keys.ESCAPE:s.escape(),m.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),_(this.label,"aria-expanded"),_(this.options,"aria-hidden")}},{key:"buildItem",value:function(s){var m=this,c=document.createElement("span");return c.tabIndex="0",c.setAttribute("role","button"),c.classList.add("ql-picker-item"),s.hasAttribute("value")&&c.setAttribute("data-value",s.getAttribute("value")),s.textContent&&c.setAttribute("data-label",s.textContent),c.addEventListener("click",function(){m.selectItem(c,!0)}),c.addEventListener("keydown",function(E){switch(E.keyCode){case p.default.keys.ENTER:m.selectItem(c,!0),E.preventDefault();break;case p.default.keys.ESCAPE:m.escape(),E.preventDefault();break}}),c}},{key:"buildLabel",value:function(){var s=document.createElement("span");return s.classList.add("ql-picker-label"),s.innerHTML=v.default,s.tabIndex="0",s.setAttribute("role","button"),s.setAttribute("aria-expanded","false"),this.container.appendChild(s),s}},{key:"buildOptions",value:function(){var s=this,m=document.createElement("span");m.classList.add("ql-picker-options"),m.setAttribute("aria-hidden","true"),m.tabIndex="-1",m.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",m.id),this.options=m,[].slice.call(this.select.options).forEach(function(c){var E=s.buildItem(c);m.appendChild(E),c.selected===!0&&s.selectItem(E)}),this.container.appendChild(m)}},{key:"buildPicker",value:function(){var s=this;[].slice.call(this.select.attributes).forEach(function(m){s.container.setAttribute(m.name,m.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var s=this;this.close(),setTimeout(function(){return s.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(s){var m=arguments.length>1&&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;u<v.length;u++){var a=v[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(y,a.key,a)}}return function(y,v,u){return v&&p(y.prototype,v),u&&p(y,u),y}}();function l(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var d=function(){function p(y,v){l(this,p),this.quill=y,this.options=v,this.modules={}}return o(p,[{key:"init",value:function(){var v=this;Object.keys(this.options.modules).forEach(function(u){v.modules[u]==null&&v.addModule(u)})}},{key:"addModule",value:function(v){var u=this.quill.constructor.import("modules/"+v);return this.modules[v]=new u(this.quill,this.options.modules[v]||{}),this.modules[v]}}]),p}();d.DEFAULTS={modules:{}},d.themes={default:d},r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(s,m){for(var c=0;c<m.length;c++){var E=m[c];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,m,c){return m&&h(s.prototype,m),c&&h(s,c),s}}(),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=i(0),p=u(d),y=i(7),v=u(y);function u(h){return h&&h.__esModule?h:{default:h}}function a(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function f(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function _(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var g="\uFEFF",b=function(h){_(s,h);function s(m){a(this,s);var c=f(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,m));return c.contentNode=document.createElement("span"),c.contentNode.setAttribute("contenteditable",!1),[].slice.call(c.domNode.childNodes).forEach(function(E){c.contentNode.appendChild(E)}),c.leftGuard=document.createTextNode(g),c.rightGuard=document.createTextNode(g),c.domNode.appendChild(c.leftGuard),c.domNode.appendChild(c.contentNode),c.domNode.appendChild(c.rightGuard),c}return o(s,[{key:"index",value:function(c,E){return c===this.leftGuard?0:c===this.rightGuard?1:l(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"index",this).call(this,c,E)}},{key:"restore",value:function(c){var E=void 0,T=void 0,x=c.data.split(g).join("");if(c===this.leftGuard)if(this.prev instanceof v.default){var A=this.prev.length();this.prev.insertAt(A,x),E={startNode:this.prev.domNode,startOffset:A+x.length}}else T=document.createTextNode(x),this.parent.insertBefore(p.default.create(T),this),E={startNode:T,startOffset:x.length};else c===this.rightGuard&&(this.next instanceof v.default?(this.next.insertAt(0,x),E={startNode:this.next.domNode,startOffset:x.length}):(T=document.createTextNode(x),this.parent.insertBefore(p.default.create(T),this.next),E={startNode:T,startOffset:x.length}));return c.data=g,E}},{key:"update",value:function(c,E){var T=this;c.forEach(function(x){if(x.type==="characterData"&&(x.target===T.leftGuard||x.target===T.rightGuard)){var A=T.restore(x.target);A&&(E.range=A)}})}}]),s}(p.default.Embed);r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var o=i(0),l=d(o);function d(a){return a&&a.__esModule?a:{default:a}}var p={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new l.default.Attributor.Attribute("align","align",p),v=new l.default.Attributor.Class("align","ql-align",p),u=new l.default.Attributor.Style("align","text-align",p);r.AlignAttribute=y,r.AlignClass=v,r.AlignStyle=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var o=i(0),l=p(o),d=i(26);function p(u){return u&&u.__esModule?u:{default:u}}var y=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),v=new d.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});r.BackgroundClass=y,r.BackgroundStyle=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var o=i(0),l=d(o);function d(a){return a&&a.__esModule?a:{default:a}}var p={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},y=new l.default.Attributor.Attribute("direction","dir",p),v=new l.default.Attributor.Class("direction","ql-direction",p),u=new l.default.Attributor.Style("direction","direction",p);r.DirectionAttribute=y,r.DirectionClass=v,r.DirectionStyle=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var o=function(){function h(s,m){for(var c=0;c<m.length;c++){var E=m[c];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,m,c){return m&&h(s.prototype,m),c&&h(s,c),s}}(),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=i(0),p=y(d);function y(h){return h&&h.__esModule?h:{default:h}}function v(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function u(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:h}function a(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}var f={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},_=new p.default.Attributor.Class("font","ql-font",f),g=function(h){a(s,h);function s(){return v(this,s),u(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return o(s,[{key:"value",value:function(c){return l(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"value",this).call(this,c).replace(/["']/g,"")}}]),s}(p.default.Attributor.Style),b=new g("font","font-family",f);r.FontStyle=b,r.FontClass=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var o=i(0),l=d(o);function d(v){return v&&v.__esModule?v:{default:v}}var p=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=p,r.SizeStyle=y},function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var o=function(){function m(c,E){for(var T=0;T<E.length;T++){var x=E[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(c,x.key,x)}}return function(c,E,T){return E&&m(c.prototype,E),T&&m(c,T),c}}(),l=i(0),d=a(l),p=i(5),y=a(p),v=i(9),u=a(v);function a(m){return m&&m.__esModule?m:{default:m}}function f(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function _(m,c){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:m}function g(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(m,c):m.__proto__=c)}var b=function(m){g(c,m);function c(E,T){f(this,c);var x=_(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,E,T));return x.lastRecorded=0,x.ignoreChange=!1,x.clear(),x.quill.on(y.default.events.EDITOR_CHANGE,function(A,P,S,w){A!==y.default.events.TEXT_CHANGE||x.ignoreChange||(!x.options.userOnly||w===y.default.sources.USER?x.record(P,S):x.transform(P))}),x.quill.keyboard.addBinding({key:"Z",shortKey:!0},x.undo.bind(x)),x.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},x.redo.bind(x)),/Win/i.test(navigator.platform)&&x.quill.keyboard.addBinding({key:"Y",shortKey:!0},x.redo.bind(x)),x}return o(c,[{key:"change",value:function(T,x){if(this.stack[T].length!==0){var A=this.stack[T].pop();this.stack[x].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[T],y.default.sources.USER),this.ignoreChange=!1;var P=s(A[T]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(T,x){if(T.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(x),P=Date.now();if(this.lastRecorded+this.options.delay>P&&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;$<G.length;$++){var C=G[$];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(D,C.key,C)}}return function(D,G,$){return G&&j(D.prototype,G),$&&j(D,$),D}}(),l=function j(D,G,$){D===null&&(D=Function.prototype);var C=Object.getOwnPropertyDescriptor(D,G);if(C===void 0){var K=Object.getPrototypeOf(D);return K===null?void 0:j(K,G,$)}else{if("value"in C)return C.value;var Q=C.get;return Q===void 0?void 0:Q.call($)}},d=i(3),p=P(d),y=i(2),v=P(y),u=i(8),a=P(u),f=i(23),_=P(f),g=i(34),b=P(g),h=i(59),s=P(h),m=i(60),c=P(m),E=i(28),T=P(E),x=i(61),A=P(x);function P(j){return j&&j.__esModule?j:{default:j}}function S(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function w(j,D){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:j}function N(j,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);j.prototype=Object.create(D&&D.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(j,D):j.__proto__=D)}var k=[!1,"center","right","justify"],R=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],B=[!1,"serif","monospace"],z=["1","2","3",!1],Y=["small",!1,"large","huge"],re=function(j){N(D,j);function D(G,$){S(this,D);var C=w(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,G,$)),K=function Q(te){if(!document.body.contains(G.root))return document.body.removeEventListener("click",Q);C.tooltip!=null&&!C.tooltip.root.contains(te.target)&&document.activeElement!==C.tooltip.textbox&&!C.quill.hasFocus()&&C.tooltip.hide(),C.pickers!=null&&C.pickers.forEach(function(le){le.container.contains(te.target)||le.close()})};return G.emitter.listenDOM("click",document.body,K),C}return o(D,[{key:"addModule",value:function($){var C=l(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"addModule",this).call(this,$);return $==="toolbar"&&this.extendToolbar(C),C}},{key:"buildButtons",value:function($,C){$.forEach(function(K){var Q=K.getAttribute("class")||"";Q.split(/\s+/).forEach(function(te){if(!!te.startsWith("ql-")&&(te=te.slice(3),C[te]!=null))if(te==="direction")K.innerHTML=C[te][""]+C[te].rtl;else if(typeof C[te]=="string")K.innerHTML=C[te];else{var le=K.value||"";le!=null&&C[te][le]&&(K.innerHTML=C[te][le])}})})}},{key:"buildPickers",value:function($,C){var K=this;this.pickers=$.map(function(te){if(te.classList.contains("ql-align"))return te.querySelector("option")==null&&L(te,k),new c.default(te,C.align);if(te.classList.contains("ql-background")||te.classList.contains("ql-color")){var le=te.classList.contains("ql-background")?"background":"color";return te.querySelector("option")==null&&L(te,R,le==="background"?"#ffffff":"#000000"),new s.default(te,C[le])}else return te.querySelector("option")==null&&(te.classList.contains("ql-font")?L(te,B):te.classList.contains("ql-header")?L(te,z):te.classList.contains("ql-size")&&L(te,Y)),new T.default(te)});var Q=function(){K.pickers.forEach(function(le){le.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,Q)}}]),D}(b.default);re.DEFAULTS=(0,p.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var D=this,G=this.container.querySelector("input.ql-image[type=file]");G==null&&(G=document.createElement("input"),G.setAttribute("type","file"),G.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),G.classList.add("ql-image"),G.addEventListener("change",function(){if(G.files!=null&&G.files[0]!=null){var $=new FileReader;$.onload=function(C){var K=D.quill.getSelection(!0);D.quill.updateContents(new v.default().retain(K.index).delete(K.length).insert({image:C.target.result}),a.default.sources.USER),D.quill.setSelection(K.index+1,a.default.sources.SILENT),G.value=""},$.readAsDataURL(G.files[0])}}),this.container.appendChild(G)),G.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var W=function(j){N(D,j);function D(G,$){S(this,D);var C=w(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,G,$));return C.textbox=C.root.querySelector('input[type="text"]'),C.listen(),C}return o(D,[{key:"listen",value:function(){var $=this;this.textbox.addEventListener("keydown",function(C){_.default.match(C,"enter")?($.save(),C.preventDefault()):_.default.match(C,"escape")&&($.cancel(),C.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var $=arguments.length>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;p<arguments.length;p++)d[p]=arguments[p];this.insertBefore(d[0],null),d.length>1&&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<u||p&&d===u&&(y.next==null||y.next.length()!==0))return[y,d];d-=u}return[null,0]},l.prototype.forEach=function(d){for(var p,y=this.iterator();p=y();)d(p)},l.prototype.forEachAt=function(d,p,y){if(!(p<=0))for(var v=this.find(d),u=v[0],a=v[1],f,_=d-a,g=this.iterator(u);(f=g())&&_<d+p;){var b=f.length();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;f<v;f++)if(a=y[f],p.call(u,a,f,y))return a}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,r){var i=-1,o=1,l=0;function d(c,E,T){if(c==E)return c?[[l,c]]:[];(T<0||c.length<T)&&(T=null);var x=u(c,E),A=c.substring(0,x);c=c.substring(x),E=E.substring(x),x=a(c,E);var P=c.substring(c.length-x);c=c.substring(0,c.length-x),E=E.substring(0,E.length-x);var S=p(c,E);return A&&S.unshift([l,A]),P&&S.push([l,P]),_(S),T!=null&&(S=h(S,T)),S=s(S),S}function p(c,E){var T;if(!c)return[[o,E]];if(!E)return[[i,c]];var x=c.length>E.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;k<S;k++)w[k]=-1,N[k]=-1;w[P+1]=0,N[P+1]=0;for(var R=T-x,B=R%2!=0,z=0,Y=0,re=0,W=0,q=0;q<A;q++){for(var L=-q+z;L<=q-Y;L+=2){var j=P+L,D;L==-q||L!=q&&w[j-1]<w[j+1]?D=w[j+1]:D=w[j-1]+1;for(var G=D-L;D<T&&G<x&&c.charAt(D)==E.charAt(G);)D++,G++;if(w[j]=D,D>T)Y+=2;else if(G>x)z+=2;else if(B){var $=P+R-L;if($>=0&&$<S&&N[$]!=-1){var C=T-N[$];if(D>=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]<N[$+1]?C=N[$+1]:C=N[$-1]+1;for(var Q=C-K;C<T&&Q<x&&c.charAt(T-C-1)==E.charAt(x-Q-1);)C++,Q++;if(N[$]=C,C>T)W+=2;else if(Q>x)re+=2;else if(!B){var j=P+R-K;if(j>=0&&j<S&&w[j]!=-1){var D=w[j],G=P+D-j;if(C=T-C,D>=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;T<A;)c.substring(P,A)==E.substring(P,A)?(T=A,P=T):x=A,A=Math.floor((x-T)/2+T);return A}function a(c,E){if(!c||!E||c.charAt(c.length-1)!=E.charAt(E.length-1))return 0;for(var T=0,x=Math.min(c.length,E.length),A=x,P=0;T<A;)c.substring(c.length-A,c.length-P)==E.substring(E.length-A,E.length-P)?(T=A,P=T):x=A,A=Math.floor((x-T)/2+T);return A}function f(c,E){var T=c.length>E.length?c:E,x=c.length>E.length?E:c;if(T.length<4||x.length*2<T.length)return null;function A(Y,re,W){for(var q=Y.substring(W,W+Math.floor(Y.length/4)),L=-1,j="",D,G,$,C;(L=re.indexOf(q,L+1))!=-1;){var K=u(Y.substring(W),re.substring(L)),Q=a(Y.substring(0,W),re.substring(0,L));j.length<Q+K&&(j=re.substring(L-Q,L)+re.substring(L,L+K),D=Y.substring(0,W-Q),G=Y.substring(W+K),$=re.substring(0,L-Q),C=re.substring(L+K))}return j.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;E<c.length;)switch(c[E][0]){case o:x++,P+=c[E][1],E++;break;case i:T++,A+=c[E][1],E++;break;case l:T+x>1?(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;E<c.length-1;)c[E-1][0]==l&&c[E+1][0]==l&&(c[E][1].substring(c[E][1].length-c[E-1][1].length)==c[E-1][1]?(c[E][1]=c[E-1][1]+c[E][1].substring(0,c[E][1].length-c[E-1][1].length),c[E+1][1]=c[E-1][1]+c[E+1][1],c.splice(E-1,1),w=!0):c[E][1].substring(0,c[E+1][1].length)==c[E+1][1]&&(c[E-1][1]+=c[E+1][1],c[E][1]=c[E][1].substring(c[E+1][1].length)+c[E+1][1],c.splice(E+1,1),w=!0)),E++;w&&_(c)}var g=d;g.INSERT=o,g.DELETE=i,g.EQUAL=l,n.exports=g;function b(c,E){if(E===0)return[l,c];for(var T=0,x=0;x<c.length;x++){var A=c[x];if(A[0]===i||A[0]===l){var P=T+A[1].length;if(E===P)return[x+1,c];if(E<P){c=c.slice();var S=E-T,w=[A[0],A[1].slice(0,S)],N=[A[0],A[1].slice(S)];return c.splice(x,1,w,N),[x+1,c]}else T=P}}throw new Error("cursor_pos is out of bounds!")}function h(c,E){var T=b(c,E),x=T[1],A=T[0],P=x[A],S=x[A+1];if(P==null)return c;if(P[0]!==l)return c;if(S!=null&&P[1]+S[1]===S[1]+P[1])return x.splice(A,2,S,P),m(x,A,2);if(S!=null&&S[1].indexOf(P[1])===0){x.splice(A,2,[S[0],P[1]],[0,P[1]]);var w=S[1].slice(P[1].length);return w.length>0&&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;A<c.length;A+=1)c[A-2][0]===l&&x(c[A-2][1])&&c[A-1][0]===i&&T(c[A-1][1])&&c[A][0]===o&&T(c[A][1])&&(E=!0,c[A-1][1]=c[A-2][1].slice(-1)+c[A-1][1],c[A][1]=c[A-2][1].slice(-1)+c[A][1],c[A-2][1]=c[A-2][1].slice(0,-1));if(!E)return c;for(var P=[],A=0;A<c.length;A+=1)c[A][1].length>0&&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<c.length){var A=c[x],P=c[x+1];A[0]===P[1]&&c.splice(x,2,[A[0],A[1]+P[1]])}return c}},function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(o){var l=[];for(var d in o)l.push(d);return l}},function(n,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=n.exports=i?o:l,r.supported=o;function o(d){return Object.prototype.toString.call(d)=="[object Arguments]"}r.unsupported=l;function l(d){return d&&typeof d=="object"&&typeof d.length=="number"&&Object.prototype.hasOwnProperty.call(d,"callee")&&!Object.prototype.propertyIsEnumerable.call(d,"callee")||!1}},function(n,r){var i=Object.prototype.hasOwnProperty,o="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(o=!1));function d(y,v,u){this.fn=y,this.context=v,this.once=u||!1}function p(){this._events=new l,this._eventsCount=0}p.prototype.eventNames=function(){var v=[],u,a;if(this._eventsCount===0)return v;for(a in u=this._events)i.call(u,a)&&v.push(o?a.slice(1):a);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(u)):v},p.prototype.listeners=function(v,u){var a=o?o+v:v,f=this._events[a];if(u)return!!f;if(!f)return[];if(f.fn)return[f.fn];for(var _=0,g=f.length,b=new Array(g);_<g;_++)b[_]=f[_].fn;return b},p.prototype.emit=function(v,u,a,f,_,g){var b=o?o+v:v;if(!this._events[b])return!1;var h=this._events[b],s=arguments.length,m,c;if(h.fn){switch(h.once&&this.removeListener(v,h.fn,void 0,!0),s){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,a),!0;case 4:return h.fn.call(h.context,u,a,f),!0;case 5:return h.fn.call(h.context,u,a,f,_),!0;case 6:return h.fn.call(h.context,u,a,f,_,g),!0}for(c=1,m=new Array(s-1);c<s;c++)m[c-1]=arguments[c];h.fn.apply(h.context,m)}else{var E=h.length,T;for(c=0;c<E;c++)switch(h[c].once&&this.removeListener(v,h[c].fn,void 0,!0),s){case 1:h[c].fn.call(h[c].context);break;case 2:h[c].fn.call(h[c].context,u);break;case 3:h[c].fn.call(h[c].context,u,a);break;case 4:h[c].fn.call(h[c].context,u,a,f);break;default:if(!m)for(T=1,m=new Array(s-1);T<s;T++)m[T-1]=arguments[T];h[c].fn.apply(h[c].context,m)}}return!0},p.prototype.on=function(v,u,a){var f=new d(u,a||this),_=o?o+v:v;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],f]:this._events[_].push(f):(this._events[_]=f,this._eventsCount++),this},p.prototype.once=function(v,u,a){var f=new d(u,a||this,!0),_=o?o+v:v;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],f]:this._events[_].push(f):(this._events[_]=f,this._eventsCount++),this},p.prototype.removeListener=function(v,u,a,f){var _=o?o+v:v;if(!this._events[_])return this;if(!u)return--this._eventsCount===0?this._events=new l:delete this._events[_],this;var g=this._events[_];if(g.fn)g.fn===u&&(!f||g.once)&&(!a||g.context===a)&&(--this._eventsCount===0?this._events=new l:delete this._events[_]);else{for(var b=0,h=[],s=g.length;b<s;b++)(g[b].fn!==u||f&&!g[b].once||a&&g[b].context!==a)&&h.push(g[b]);h.length?this._events[_]=h.length===1?h[0]:h:--this._eventsCount===0?this._events=new l:delete this._events[_]}return this},p.prototype.removeAllListeners=function(v){var u;return v?(u=o?o+v:v,this._events[u]&&(--this._eventsCount===0?this._events=new l:delete this._events[u])):(this._events=new l,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=o,p.EventEmitter=p,typeof n!="undefined"&&(n.exports=p)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},l=function(){function H(Z,X){var ee=[],V=!0,ue=!1,ae=void 0;try{for(var se=Z[Symbol.iterator](),ce;!(V=(ce=se.next()).done)&&(ee.push(ce.value),!(X&&ee.length===X));V=!0);}catch(ge){ue=!0,ae=ge}finally{try{!V&&se.return&&se.return()}finally{if(ue)throw ae}}return ee}return function(Z,X){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return H(Z,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function H(Z,X){for(var ee=0;ee<X.length;ee++){var V=X[ee];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(Z,V.key,V)}}return function(Z,X,ee){return X&&H(Z.prototype,X),ee&&H(Z,ee),Z}}(),p=i(3),y=N(p),v=i(2),u=N(v),a=i(0),f=N(a),_=i(5),g=N(_),b=i(10),h=N(b),s=i(9),m=N(s),c=i(36),E=i(37),T=i(13),x=N(T),A=i(26),P=i(38),S=i(39),w=i(40);function N(H){return H&&H.__esModule?H:{default:H}}function k(H,Z,X){return Z in H?Object.defineProperty(H,Z,{value:X,enumerable:!0,configurable:!0,writable:!0}):H[Z]=X,H}function R(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")}function B(H,Z){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:H}function z(H,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);H.prototype=Object.create(Z&&Z.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(H,Z):H.__proto__=Z)}var Y=(0,h.default)("quill:clipboard"),re="__ql-matcher",W=[[Node.TEXT_NODE,ie],[Node.TEXT_NODE,F],["br",fe],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,J],[Node.ELEMENT_NODE,te],[Node.ELEMENT_NODE,oe],["li",M],["b",Q.bind(Q,"bold")],["i",Q.bind(Q,"italic")],["style",ye]],q=[c.AlignAttribute,P.DirectionAttribute].reduce(function(H,Z){return H[Z.keyName]=Z,H},{}),L=[c.AlignStyle,E.BackgroundStyle,A.ColorStyle,P.DirectionStyle,S.FontStyle,w.SizeStyle].reduce(function(H,Z){return H[Z.keyName]=Z,H},{}),j=function(H){z(Z,H);function Z(X,ee){R(this,Z);var V=B(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,X,ee));return V.quill.root.addEventListener("paste",V.onPaste.bind(V)),V.container=V.quill.addContainer("ql-clipboard"),V.container.setAttribute("contenteditable",!0),V.container.setAttribute("tabindex",-1),V.matchers=[],W.concat(V.options.matchers).forEach(function(ue){var ae=l(ue,2),se=ae[0],ce=ae[1];!ee.matchVisual&&ce===J||V.addMatcher(se,ce)}),V}return d(Z,[{key:"addMatcher",value:function(ee,V){this.matchers.push([ee,V])}},{key:"convert",value:function(ee){if(typeof ee=="string")return this.container.innerHTML=ee.replace(/\>\r?\n +\</g,"><"),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<Z.length;--ee){var V=H.ops[ee];if(typeof V.insert!="string")break;X=V.insert+X}return X.slice(-1*Z.length)===Z}function C(H){if(H.childNodes.length===0)return!1;var Z=G(H);return["block","list-item"].indexOf(Z.display)>-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<b.length;h++){var s=b[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(g,s.key,s)}}return function(g,b,h){return b&&_(g.prototype,b),h&&_(g,h),g}}(),l=function _(g,b,h){g===null&&(g=Function.prototype);var s=Object.getOwnPropertyDescriptor(g,b);if(s===void 0){var m=Object.getPrototypeOf(g);return m===null?void 0:_(m,b,h)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(h)}},d=i(6),p=y(d);function y(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function u(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function a(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var f=function(_){a(g,_);function g(){return v(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"optimize",value:function(h){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,h),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(p.default);f.blotName="bold",f.tagName=["STRONG","B"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var o=function(){function w(N,k){var R=[],B=!0,z=!1,Y=void 0;try{for(var re=N[Symbol.iterator](),W;!(B=(W=re.next()).done)&&(R.push(W.value),!(k&&R.length===k));B=!0);}catch(q){z=!0,Y=q}finally{try{!B&&re.return&&re.return()}finally{if(z)throw Y}}return R}return function(N,k){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return w(N,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function w(N,k){for(var R=0;R<k.length;R++){var B=k[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(N,B.key,B)}}return function(N,k,R){return k&&w(N.prototype,k),R&&w(N,R),N}}(),d=i(2),p=h(d),y=i(0),v=h(y),u=i(5),a=h(u),f=i(10),_=h(f),g=i(9),b=h(g);function h(w){return w&&w.__esModule?w:{default:w}}function s(w,N,k){return N in w?Object.defineProperty(w,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):w[N]=k,w}function m(w,N){if(!(w instanceof N))throw new TypeError("Cannot call a class as a function")}function c(w,N){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:w}function E(w,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);w.prototype=Object.create(N&&N.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(w,N):w.__proto__=N)}var T=(0,_.default)("quill:toolbar"),x=function(w){E(N,w);function N(k,R){m(this,N);var B=c(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,k,R));if(Array.isArray(B.options.container)){var z=document.createElement("div");P(z,B.options.container),k.container.parentNode.insertBefore(z,k.container),B.container=z}else typeof B.options.container=="string"?B.container=document.querySelector(B.options.container):B.container=B.options.container;if(!(B.container instanceof HTMLElement)){var Y;return Y=T.error("Container required for toolbar",B.options),c(B,Y)}return B.container.classList.add("ql-toolbar"),B.controls=[],B.handlers={},Object.keys(B.options.handlers).forEach(function(re){B.addHandler(re,B.options.handlers[re])}),[].forEach.call(B.container.querySelectorAll("button, select"),function(re){B.attach(re)}),B.quill.on(a.default.events.EDITOR_CHANGE,function(re,W){re===a.default.events.SELECTION_CHANGE&&B.update(W)}),B.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var re=B.quill.selection.getRange(),W=o(re,1),q=W[0];B.update(q)}),B}return l(N,[{key:"addHandler",value:function(R,B){this.handlers[R]=B}},{key:"attach",value:function(R){var B=this,z=[].find.call(R.classList,function(re){return re.indexOf("ql-")===0});if(!!z){if(z=z.slice(3),R.tagName==="BUTTON"&&R.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){T.warn("ignoring attaching to disabled format",z,R);return}if(v.default.query(z)==null){T.warn("ignoring attaching to nonexistent format",z,R);return}}var Y=R.tagName==="SELECT"?"change":"click";R.addEventListener(Y,function(re){var W=void 0;if(R.tagName==="SELECT"){if(R.selectedIndex<0)return;var q=R.options[R.selectedIndex];q.hasAttribute("selected")?W=!1:W=q.value||!1}else R.classList.contains("ql-active")?W=!1:W=R.value||!R.hasAttribute("value"),re.preventDefault();B.quill.focus();var L=B.quill.selection.getRange(),j=o(L,1),D=j[0];if(B.handlers[z]!=null)B.handlers[z].call(B,W);else if(v.default.query(z).prototype instanceof v.default.Embed){if(W=prompt("Enter "+z),!W)return;B.quill.updateContents(new p.default().retain(D.index).delete(D.length).insert(s({},z,W)),a.default.sources.USER)}else B.quill.format(z,W,a.default.sources.USER);B.update(D)}),this.controls.push([z,R])}}},{key:"update",value:function(R){var B=R==null?{}:this.quill.getFormat(R);this.controls.forEach(function(z){var Y=o(z,2),re=Y[0],W=Y[1];if(W.tagName==="SELECT"){var q=void 0;if(R==null)q=null;else if(B[re]==null)q=W.querySelector("option[selected]");else if(!Array.isArray(B[re])){var L=B[re];typeof L=="string"&&(L=L.replace(/\"/g,'\\"')),q=W.querySelector('option[value="'+L+'"]')}q==null?(W.value="",W.selectedIndex=-1):q.selected=!0}else if(R==null)W.classList.remove("ql-active");else if(W.hasAttribute("value")){var j=B[re]===W.getAttribute("value")||B[re]!=null&&B[re].toString()===W.getAttribute("value")||B[re]==null&&!W.getAttribute("value");W.classList.toggle("ql-active",j)}else W.classList.toggle("ql-active",B[re]!=null)})}}]),N}(b.default);x.DEFAULTS={};function A(w,N,k){var R=document.createElement("button");R.setAttribute("type","button"),R.classList.add("ql-"+N),k!=null&&(R.value=k),w.appendChild(R)}function P(w,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(k){var R=document.createElement("span");R.classList.add("ql-formats"),k.forEach(function(B){if(typeof B=="string")A(R,B);else{var z=Object.keys(B)[0],Y=B[z];Array.isArray(Y)?S(R,z,Y):A(R,z,Y)}}),w.appendChild(R)})}function S(w,N,k){var R=document.createElement("select");R.classList.add("ql-"+N),k.forEach(function(B){var z=document.createElement("option");B!==!1?z.setAttribute("value",B):z.setAttribute("selected","selected"),R.appendChild(z)}),w.appendChild(R)}x.DEFAULTS={container:null,handlers:{clean:function(){var N=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var R=this.quill.getFormat();Object.keys(R).forEach(function(B){v.default.query(B,v.default.Scope.INLINE)!=null&&N.quill.format(B,!1)})}else this.quill.removeFormat(k,a.default.sources.USER)},direction:function(N){var k=this.quill.getFormat().align;N==="rtl"&&k==null?this.quill.format("align","right",a.default.sources.USER):!N&&k==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",N,a.default.sources.USER)},indent:function(N){var k=this.quill.getSelection(),R=this.quill.getFormat(k),B=parseInt(R.indent||0);if(N==="+1"||N==="-1"){var z=N==="+1"?1:-1;R.direction==="rtl"&&(z*=-1),this.quill.format("indent",B+z,a.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,a.default.sources.USER)},list:function(N){var k=this.quill.getSelection(),R=this.quill.getFormat(k);N==="check"?R.list==="checked"||R.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",N,a.default.sources.USER)}}},r.default=x,r.addControls=P},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function _(g,b){for(var h=0;h<b.length;h++){var s=b[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(g,s.key,s)}}return function(g,b,h){return b&&_(g.prototype,b),h&&_(g,h),g}}(),l=function _(g,b,h){g===null&&(g=Function.prototype);var s=Object.getOwnPropertyDescriptor(g,b);if(s===void 0){var m=Object.getPrototypeOf(g);return m===null?void 0:_(m,b,h)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(h)}},d=i(28),p=y(d);function y(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function u(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function a(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var f=function(_){a(g,_);function g(b,h){v(this,g);var s=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b));return s.label.innerHTML=h,s.container.classList.add("ql-color-picker"),[].slice.call(s.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(m){m.classList.add("ql-primary")}),s}return o(g,[{key:"buildItem",value:function(h){var s=l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,h);return s.style.backgroundColor=h.getAttribute("value")||"",s}},{key:"selectItem",value:function(h,s){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,h,s);var m=this.label.querySelector(".ql-color-label"),c=h&&h.getAttribute("data-value")||"";m&&(m.tagName==="line"?m.style.stroke=c:m.style.fill=c)}}]),g}(p.default);r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function _(g,b){for(var h=0;h<b.length;h++){var s=b[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(g,s.key,s)}}return function(g,b,h){return b&&_(g.prototype,b),h&&_(g,h),g}}(),l=function _(g,b,h){g===null&&(g=Function.prototype);var s=Object.getOwnPropertyDescriptor(g,b);if(s===void 0){var m=Object.getPrototypeOf(g);return m===null?void 0:_(m,b,h)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(h)}},d=i(28),p=y(d);function y(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function u(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function a(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var f=function(_){a(g,_);function g(b,h){v(this,g);var s=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b));return s.container.classList.add("ql-icon-picker"),[].forEach.call(s.container.querySelectorAll(".ql-picker-item"),function(m){m.innerHTML=h[m.getAttribute("data-value")||""]}),s.defaultItem=s.container.querySelector(".ql-selected"),s.selectItem(s.defaultItem),s}return o(g,[{key:"selectItem",value:function(h,s){l(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,h,s),h=h||this.defaultItem,this.label.innerHTML=h.innerHTML}}]),g}(p.default);r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function p(y,v){for(var u=0;u<v.length;u++){var a=v[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(y,a.key,a)}}return function(y,v,u){return v&&p(y.prototype,v),u&&p(y,u),y}}();function l(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var d=function(){function p(y,v){var u=this;l(this,p),this.quill=y,this.boundsContainer=v||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return o(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(v){var u=v.left+v.width/2-this.root.offsetWidth/2,a=v.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var f=this.boundsContainer.getBoundingClientRect(),_=this.root.getBoundingClientRect(),g=0;if(_.right>f.right&&(g=f.right-_.right,this.root.style.left=u+g+"px"),_.left<f.left&&(g=f.left-_.left,this.root.style.left=u+g+"px"),_.bottom>f.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<N.length;k++){var R=N[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,N,k){return N&&S(w.prototype,N),k&&S(w,k),w}}(),p=i(3),y=m(p),v=i(8),u=m(v),a=i(43),f=m(a),_=i(27),g=m(_),b=i(15),h=i(41),s=m(h);function m(S){return S&&S.__esModule?S:{default:S}}function c(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function E(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function T(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var x=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(S){T(w,S);function w(N,k){c(this,w),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=x);var R=E(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,k));return R.quill.container.classList.add("ql-snow"),R}return d(w,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),s.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),s.default),this.tooltip=new P(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(R,B){k.handlers.link.call(k,!B.format.link)})}}]),w}(f.default);A.DEFAULTS=(0,y.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){if(w){var N=this.quill.getSelection();if(N==null||N.length==0)return;var k=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var R=this.quill.theme.tooltip;R.edit("link",k)}else this.quill.format("link",!1)}}}}});var P=function(S){T(w,S);function w(N,k){c(this,w);var R=E(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,k));return R.preview=R.root.querySelector("a.ql-preview"),R}return d(w,[{key:"listen",value:function(){var k=this;l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(R){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),R.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(R){if(k.linkRange!=null){var B=k.linkRange;k.restoreFocus(),k.quill.formatText(B,"link",!1,u.default.sources.USER),delete k.linkRange}R.preventDefault(),k.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(R,B,z){if(R!=null){if(R.length===0&&z===u.default.sources.USER){var Y=k.quill.scroll.descendant(g.default,R.index),re=o(Y,2),W=re[0],q=re[1];if(W!=null){k.linkRange=new b.Range(R.index-q,W.length());var L=g.default.formats(W.domNode);k.preview.textContent=L,k.preview.setAttribute("href",L),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),w}(a.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].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;s<h.length;s++){var m=h[s];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,h,s){return h&&g(b.prototype,h),s&&g(b,s),b}}(),l=function g(b,h,s){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,h);if(m===void 0){var c=Object.getPrototypeOf(b);return c===null?void 0:g(c,h,s)}else{if("value"in m)return m.value;var E=m.get;return E===void 0?void 0:E.call(s)}},d=i(0),p=y(d);function y(g){return g&&g.__esModule?g:{default:g}}function v(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function u(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function a(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var f=function(g){a(b,g);function b(){return v(this,b),u(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"add",value:function(s,m){if(m==="+1"||m==="-1"){var c=this.value(s)||0;m=m==="+1"?c+1:c-1}return m===0?(this.remove(s),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,s,m)}},{key:"canAdd",value:function(s,m){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,s,m)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,s,parseInt(m))}},{key:"value",value:function(s){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,s))||void 0}}]),b}(p.default.Attributor.Class),_=new f("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(4),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="blockquote",u.tagName="blockquote",r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function f(_,g){for(var b=0;b<g.length;b++){var h=g[b];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(_,h.key,h)}}return function(_,g,b){return g&&f(_.prototype,g),b&&f(_,b),_}}(),l=i(4),d=p(l);function p(f){return f&&f.__esModule?f:{default:f}}function y(f,_){if(!(f instanceof _))throw new TypeError("Cannot call a class as a function")}function v(f,_){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:f}function u(f,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);f.prototype=Object.create(_&&_.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(f,_):f.__proto__=_)}var a=function(f){u(_,f);function _(){return y(this,_),v(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),_}(d.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],r.default=a},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var o=function(){function c(E,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,T,x){return T&&c(E.prototype,T),x&&c(E,x),E}}(),l=function c(E,T,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,T);if(A===void 0){var P=Object.getPrototypeOf(E);return P===null?void 0:c(P,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},d=i(0),p=f(d),y=i(4),v=f(y),u=i(25),a=f(u);function f(c){return c&&c.__esModule?c:{default:c}}function _(c,E,T){return E in c?Object.defineProperty(c,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):c[E]=T,c}function g(c,E){if(!(c instanceof E))throw new TypeError("Cannot call a class as a function")}function b(c,E){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:c}function h(c,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);c.prototype=Object.create(E&&E.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(c,E):c.__proto__=E)}var s=function(c){h(E,c);function E(){return g(this,E),b(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(x,A){x===m.blotName&&!A?this.replaceWith(p.default.create(this.statics.scope)):l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,x,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(x,A){return this.parent.isolate(this.offset(this.parent),this.length()),x===this.parent.statics.blotName?(this.parent.replaceWith(x,A),this):(this.parent.unwrap(),l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,x,A))}}],[{key:"formats",value:function(x){return x.tagName===this.tagName?void 0:l(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,x)}}]),E}(v.default);s.blotName="list-item",s.tagName="LI";var m=function(c){h(E,c),o(E,null,[{key:"create",value:function(x){var A=x==="ordered"?"OL":"UL",P=l(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,A);return(x==="checked"||x==="unchecked")&&P.setAttribute("data-checked",x==="checked"),P}},{key:"formats",value:function(x){if(x.tagName==="OL")return"ordered";if(x.tagName==="UL")return x.hasAttribute("data-checked")?x.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(T){g(this,E);var x=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,T)),A=function(S){if(S.target.parentNode===T){var w=x.statics.formats(T),N=p.default.find(S.target);w==="checked"?N.format("list","unchecked"):w==="unchecked"&&N.format("list","checked")}};return T.addEventListener("touchstart",A),T.addEventListener("mousedown",A),x}return o(E,[{key:"format",value:function(x,A){this.children.length>0&&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<b.length;h++){var s=b[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(g,s.key,s)}}return function(g,b,h){return b&&_(g.prototype,b),h&&_(g,h),g}}(),l=function _(g,b,h){g===null&&(g=Function.prototype);var s=Object.getOwnPropertyDescriptor(g,b);if(s===void 0){var m=Object.getPrototypeOf(g);return m===null?void 0:_(m,b,h)}else{if("value"in s)return s.value;var c=s.get;return c===void 0?void 0:c.call(h)}},d=i(6),p=y(d);function y(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function u(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function a(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var f=function(_){a(g,_);function g(){return v(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,null,[{key:"create",value:function(h){return h==="super"?document.createElement("sup"):h==="sub"?document.createElement("sub"):l(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,h)}},{key:"formats",value:function(h){if(h.tagName==="SUB")return"sub";if(h.tagName==="SUP")return"super"}}]),g}(p.default);f.blotName="script",f.tagName=["SUB","SUP"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),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="strike",u.tagName="S",r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),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="underline",u.tagName="U",r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function b(h,s){for(var m=0;m<s.length;m++){var c=s[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,s,m){return s&&b(h.prototype,s),m&&b(h,m),h}}(),l=function b(h,s,m){h===null&&(h=Function.prototype);var c=Object.getOwnPropertyDescriptor(h,s);if(c===void 0){var E=Object.getPrototypeOf(h);return E===null?void 0:b(E,s,m)}else{if("value"in c)return c.value;var T=c.get;return T===void 0?void 0:T.call(m)}},d=i(0),p=v(d),y=i(27);function v(b){return b&&b.__esModule?b:{default:b}}function u(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}function a(b,h){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:b}function f(b,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);b.prototype=Object.create(h&&h.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(b,h):b.__proto__=h)}var _=["alt","height","width"],g=function(b){f(h,b);function h(){return u(this,h),a(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return o(h,[{key:"format",value:function(m,c){_.indexOf(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 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<s.length;m++){var c=s[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,s,m){return s&&b(h.prototype,s),m&&b(h,m),h}}(),l=function b(h,s,m){h===null&&(h=Function.prototype);var c=Object.getOwnPropertyDescriptor(h,s);if(c===void 0){var E=Object.getPrototypeOf(h);return E===null?void 0:b(E,s,m)}else{if("value"in c)return c.value;var T=c.get;return T===void 0?void 0:T.call(m)}},d=i(4),p=i(27),y=v(p);function v(b){return b&&b.__esModule?b:{default:b}}function u(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}function a(b,h){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:b}function f(b,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);b.prototype=Object.create(h&&h.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(b,h):b.__proto__=h)}var _=["height","width"],g=function(b){f(h,b);function h(){return u(this,h),a(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return o(h,[{key:"format",value:function(m,c){_.indexOf(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;T<E.length;T++){var x=E[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(c,x.key,x)}}return function(c,E,T){return E&&m(c.prototype,E),T&&m(c,T),c}}(),l=function m(c,E,T){c===null&&(c=Function.prototype);var x=Object.getOwnPropertyDescriptor(c,E);if(x===void 0){var A=Object.getPrototypeOf(c);return A===null?void 0:m(A,E,T)}else{if("value"in x)return x.value;var P=x.get;return P===void 0?void 0:P.call(T)}},d=i(35),p=f(d),y=i(5),v=f(y),u=i(9),a=f(u);function f(m){return m&&m.__esModule?m:{default:m}}function _(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function g(m,c){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:m}function b(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(m,c):m.__proto__=c)}var h=function(m){b(c,m);function c(){return _(this,c),g(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return o(c,null,[{key:"create",value:function(T){var x=l(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,T);return typeof T=="string"&&(window.katex.render(T,x,{throwOnError:!1,errorColor:"#f00"}),x.setAttribute("data-value",T)),x}},{key:"value",value:function(T){return T.getAttribute("data-value")}}]),c}(p.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var s=function(m){b(c,m),o(c,null,[{key:"register",value:function(){v.default.register(h,!0)}}]);function c(){_(this,c);var E=g(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return c}(a.default);r.FormulaBlot=h,r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var o=function(){function T(x,A){for(var P=0;P<A.length;P++){var S=A[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,P){return A&&T(x.prototype,A),P&&T(x,P),x}}(),l=function T(x,A,P){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:T(w,A,P)}else{if("value"in S)return S.value;var N=S.get;return N===void 0?void 0:N.call(P)}},d=i(0),p=g(d),y=i(5),v=g(y),u=i(9),a=g(u),f=i(13),_=g(f);function g(T){return T&&T.__esModule?T:{default:T}}function b(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function h(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function s(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var m=function(T){s(x,T);function x(){return b(this,x),h(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),l(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var S=this.domNode.textContent;this.cachedText!==S&&((S.trim().length>0||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='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},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;S<P.length;S++){var w=P[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(A,w.key,w)}}return function(A,P,S){return P&&x(A.prototype,P),S&&x(A,S),A}}(),d=i(3),p=b(d),y=i(8),v=b(y),u=i(43),a=b(u),f=i(15),_=i(41),g=b(_);function b(x){return x&&x.__esModule?x:{default:x}}function h(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function s(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function m(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var c=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(x){m(A,x);function A(P,S){h(this,A),S.modules.toolbar!=null&&S.modules.toolbar.container==null&&(S.modules.toolbar.container=c);var w=s(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,S));return w.quill.container.classList.add("ql-bubble"),w}return l(A,[{key:"extendToolbar",value:function(S){this.tooltip=new T(this.quill,this.options.bounds),this.tooltip.root.appendChild(S.container),this.buildButtons([].slice.call(S.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(S.container.querySelectorAll("select")),g.default)}}]),A}(a.default);E.DEFAULTS=(0,p.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var T=function(x){m(A,x);function A(P,S){h(this,A);var w=s(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,S));return w.quill.on(v.default.events.EDITOR_CHANGE,function(N,k,R,B){if(N===v.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&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=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].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;y<l;y++)d[y]=-1,p[y]=-1;d[o+1]=0,p[o+1]=0;for(var v=n-r,u=v%2!==0,a=0,f=0,_=0,g=0,b=0;b<i;b++){for(var h=-b+a;h<=b-f;h+=2){var s=o+h,m;h===-b||h!==b&&d[s-1]<d[s+1]?m=d[s+1]:m=d[s-1]+1;for(var c=m-h;m<n&&c<r&&e.charAt(m)===t.charAt(c);)m++,c++;if(d[s]=m,m>n)f+=2;else if(c>r)a+=2;else if(u){var E=o+v-h;if(E>=0&&E<l&&p[E]!==-1){var T=n-p[E];if(m>=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]<p[E+1]?T=p[E+1]:T=p[E-1]+1;for(var A=T-x;T<n&&A<r&&e.charAt(n-T-1)===t.charAt(r-A-1);)T++,A++;if(p[E]=T,T>n)g+=2;else if(A>r)_+=2;else if(!u){var s=o+v-x;if(s>=0&&s<l&&d[s]!==-1){var m=d[s],c=o+m-s;if(T=n-T,m>=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;n<i;)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return du(e.charCodeAt(i-1))&&i--,i}function Cl(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return pu(e.charCodeAt(e.length-i))&&i--,i}function ed(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(f,_,g){for(var b=f.substring(g,g+Math.floor(f.length/4)),h=-1,s="",m,c,E,T;(h=_.indexOf(b,h+1))!==-1;){var x=Il(f.substring(g),_.substring(h)),A=Cl(f.substring(0,g),_.substring(0,h));s.length<A+x&&(s=_.substring(h-A,h)+_.substring(h,h+x),m=f.substring(0,g-A),c=f.substring(g+x),E=_.substring(0,h-A),T=_.substring(h+x))}return s.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<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case pt:i++,l+=e[n][1],n++;break;case Et:r++,o+=e[n][1],n++;break;case et:var p=n-i-r-1;if(t){if(p>=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(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(o.length>0||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<e.length-1;)e[n-1][0]===et&&e[n+1][0]===et&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),a=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),a=!0)),n++;a&&hu(e,t)}function du(e){return e>=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;n<e.length;n++)e[n][1].length>0&&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<ne&&I(O[U],U,O)!==!1;);return O}function le(O,I){for(var U=-1,ne=I.length,be=O.length;++U<ne;)O[be+U]=I[U];return O}function fe(O,I,U,ne){var be=-1,ve=O?O.length:0;for(ne&&ve&&(U=O[++be]);++be<ve;)U=I(U,O[be],be,O);return U}function ye(O,I){for(var U=-1,ne=Array(O);++U<O;)ne[U]=I(U);return ne}function M(O,I){return O==null?void 0:O[I]}function F(O){var I=!1;if(O!=null&&typeof O.toString!="function")try{I=!!(O+"")}catch(U){}return I}function J(O){var I=-1,U=Array(O.size);return O.forEach(function(ne,be){U[++I]=[be,ne]}),U}function oe(O,I){return function(U){return O(I(U))}}function ie(O){var I=-1,U=Array(O.size);return O.forEach(function(ne){U[++I]=ne}),U}var H=Array.prototype,Z=Function.prototype,X=Object.prototype,ee=D["__core-js_shared__"],V=function(){var O=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ue=Z.toString,ae=X.hasOwnProperty,se=X.toString,ce=RegExp("^"+ue.call(ae).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=C?D.Buffer:void 0,pe=D.Symbol,_e=D.Uint8Array,de=oe(Object.getPrototypeOf,Object),Ne=Object.create,ut=X.propertyIsEnumerable,On=H.splice,ft=Object.getOwnPropertySymbols,xt=ge?ge.isBuffer:void 0,je=oe(Object.keys,Object),qe=ht(D,"DataView"),yt=ht(D,"Map"),ct=ht(D,"Promise"),En=ht(D,"Set"),Kn=ht(D,"WeakMap"),Jt=ht(Object,"create"),$n=Ye(qe),en=Ye(yt),zn=Ye(ct),Vn=Ye(En),Wn=Ye(Kn),jt=pe?pe.prototype:void 0,Rr=jt?jt.valueOf:void 0;function Nt(O){var I=-1,U=O?O.length:0;for(this.clear();++I<U;){var ne=O[I];this.set(ne[0],ne[1])}}function Ui(){this.__data__=Jt?Jt(null):{}}function Hi(O){return this.has(O)&&delete this.__data__[O]}function Ki(O){var I=this.__data__;if(Jt){var U=I[O];return U===r?void 0:U}return ae.call(I,O)?I[O]:void 0}function Ir(O){var I=this.__data__;return Jt?I[O]!==void 0:ae.call(I,O)}function Zn(O,I){var U=this.__data__;return U[O]=Jt&&I===void 0?r:I,this}Nt.prototype.clear=Ui,Nt.prototype.delete=Hi,Nt.prototype.get=Ki,Nt.prototype.has=Ir,Nt.prototype.set=Zn;function De(O){var I=-1,U=O?O.length:0;for(this.clear();++I<U;){var ne=O[I];this.set(ne[0],ne[1])}}function $i(){this.__data__=[]}function zi(O){var I=this.__data__,U=An(I,O);if(U<0)return!1;var ne=I.length-1;return U==ne?I.pop():On.call(I,U,1),!0}function Vi(O){var I=this.__data__,U=An(I,O);return U<0?void 0:I[U][1]}function Wi(O){return An(this.__data__,O)>-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<U;){var ne=O[I];this.set(ne[0],ne[1])}}function Yi(){this.__data__={hash:new Nt,map:new(yt||De),string:new Nt}}function Gi(O){return nn(this,O).delete(O)}function Xi(O){return nn(this,O).get(O)}function Qi(O){return nn(this,O).has(O)}function Ji(O,I){return nn(this,O).set(O,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){this.__data__=new De(O)}function eo(){this.__data__=new De}function to(O){return this.__data__.delete(O)}function no(O){return this.__data__.get(O)}function ro(O){return this.__data__.has(O)}function io(O,I){var U=this.__data__;if(U instanceof De){var ne=U.__data__;if(!yt||ne.length<n-1)return ne.push([O,I]),this;U=this.__data__=new $e(ne)}return U.set(O,I),this}Xe.prototype.clear=eo,Xe.prototype.delete=to,Xe.prototype.get=no,Xe.prototype.has=ro,Xe.prototype.set=io;function wn(O,I){var U=Qn(O)||xn(O)?ye(O.length,String):[],ne=U.length,be=!!ne;for(var ve in O)(I||ae.call(O,ve))&&!(be&&(ve=="length"||bo(ve,ne)))&&U.push(ve);return U}function Cr(O,I,U){var ne=O[I];(!(ae.call(O,I)&&Br(ne,U))||U===void 0&&!(I in O))&&(O[I]=U)}function An(O,I){for(var U=O.length;U--;)if(Br(O[U][0],I))return U;return-1}function gt(O,I){return O&&Xn(I,er(I),O)}function Yn(O,I,U,ne,be,ve,Oe){var Ae;if(ne&&(Ae=ve?ne(O,be,ve,Oe):ne(O)),Ae!==void 0)return Ae;if(!bt(O))return O;var Re=Qn(O);if(Re){if(Ae=go(O),!I)return po(O,Ae)}else{var Te=kt(O),ze=Te==v||Te==u;if(Fr(O))return Tn(O,I);if(Te==_||Te==o||ze&&!ve){if(F(O))return ve?O:{};if(Ae=mt(ze?{}:O),!I)return vo(O,gt(Ae,O))}else{if(!q[Te])return ve?O:{};Ae=mo(O,Te,Yn,I)}}Oe||(Oe=new Xe);var Qe=Oe.get(O);if(Qe)return Qe;if(Oe.set(O,Ae),!Re)var Ie=U?yo(O):er(O);return te(Ie||O,function(Ve,Be){Ie&&(Be=Ve,Ve=O[Be]),Cr(Ae,Be,Yn(Ve,I,U,ne,Be,O,Oe))}),Ae}function oo(O){return bt(O)?Ne(O):{}}function lo(O,I,U){var ne=I(O);return Qn(O)?ne:le(ne,U(O))}function ao(O){return se.call(O)}function so(O){if(!bt(O)||Oo(O))return!1;var I=Jn(O)||F(O)?ce:re;return I.test(Ye(O))}function uo(O){if(!qr(O))return je(O);var I=[];for(var U in Object(O))ae.call(O,U)&&U!="constructor"&&I.push(U);return I}function Tn(O,I){if(I)return O.slice();var U=new O.constructor(O.length);return O.copy(U),U}function Gn(O){var I=new O.constructor(O.byteLength);return new _e(I).set(new _e(O)),I}function tn(O,I){var U=I?Gn(O.buffer):O.buffer;return new O.constructor(U,O.byteOffset,O.byteLength)}function Mr(O,I,U){var ne=I?U(J(O),!0):J(O);return fe(ne,K,new O.constructor)}function jr(O){var I=new O.constructor(O.source,Y.exec(O));return I.lastIndex=O.lastIndex,I}function fo(O,I,U){var ne=I?U(ie(O),!0):ie(O);return fe(ne,Q,new O.constructor)}function co(O){return Rr?Object(Rr.call(O)):{}}function ho(O,I){var U=I?Gn(O.buffer):O.buffer;return new O.constructor(U,O.byteOffset,O.length)}function po(O,I){var U=-1,ne=O.length;for(I||(I=Array(ne));++U<ne;)I[U]=O[U];return I}function Xn(O,I,U,ne){U||(U={});for(var be=-1,ve=I.length;++be<ve;){var Oe=I[be],Ae=ne?ne(U[Oe],O[Oe],Oe,U,O):void 0;Cr(U,Oe,Ae===void 0?O[Oe]:Ae)}return U}function vo(O,I){return Xn(O,St(O),I)}function yo(O){return lo(O,er,St)}function nn(O,I){var U=O.__data__;return _o(I)?U[typeof I=="string"?"string":"hash"]:U.map}function ht(O,I){var U=M(O,I);return so(U)?U:void 0}var St=ft?oe(ft,Object):wo,kt=ao;(qe&&kt(new qe(new ArrayBuffer(1)))!=T||yt&&kt(new yt)!=a||ct&&kt(ct.resolve())!=g||En&&kt(new En)!=h||Kn&&kt(new Kn)!=c)&&(kt=function(O){var I=se.call(O),U=I==_?O.constructor:void 0,ne=U?Ye(U):void 0;if(ne)switch(ne){case $n:return T;case en:return a;case zn:return g;case Vn:return h;case Wn:return c}return I});function go(O){var I=O.length,U=O.constructor(I);return I&&typeof O[0]=="string"&&ae.call(O,"index")&&(U.index=O.index,U.input=O.input),U}function mt(O){return typeof O.constructor=="function"&&!qr(O)?oo(de(O)):{}}function mo(O,I,U,ne){var be=O.constructor;switch(I){case E:return Gn(O);case d:case p:return new be(+O);case T:return tn(O,ne);case x:case A:case P:case S:case w:case N:case k:case R:case B:return ho(O,ne);case a:return Mr(O,ne,U);case f:case s:return new be(O);case b:return jr(O);case h:return fo(O,ne,U);case m:return co(O)}}function bo(O,I){return I=I==null?i:I,!!I&&(typeof O=="number"||W.test(O))&&O>-1&&O%1==0&&O<I}function _o(O){var I=typeof O;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?O!=="__proto__":O===null}function Oo(O){return!!V&&V in O}function qr(O){var I=O&&O.constructor,U=typeof I=="function"&&I.prototype||X;return O===U}function Ye(O){if(O!=null){try{return ue.call(O)}catch(I){}try{return O+""}catch(I){}}return""}function Dr(O){return Yn(O,!0,!0)}function Br(O,I){return O===I||O!==O&&I!==I}function xn(O){return Eo(O)&&ae.call(O,"callee")&&(!ut.call(O,"callee")||se.call(O)==o)}var Qn=Array.isArray;function Nn(O){return O!=null&&Ur(O.length)&&!Jn(O)}function Eo(O){return Hr(O)&&Nn(O)}var Fr=xt||Ao;function Jn(O){var I=bt(O)?se.call(O):"";return I==v||I==u}function Ur(O){return typeof O=="number"&&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<ne;){var Oe=O[U];I(Oe,U,O)&&(ve[be++]=Oe)}return ve}function oe(O,I){for(var U=-1,ne=I.length,be=O.length;++U<ne;)O[be+U]=I[U];return O}function ie(O,I){for(var U=-1,ne=O==null?0:O.length;++U<ne;)if(I(O[U],U,O))return!0;return!1}function H(O,I){for(var U=-1,ne=Array(O);++U<O;)ne[U]=I(U);return ne}function Z(O){return function(I){return O(I)}}function X(O,I){return O.has(I)}function ee(O,I){return O==null?void 0:O[I]}function V(O){var I=-1,U=Array(O.size);return O.forEach(function(ne,be){U[++I]=[be,ne]}),U}function ue(O,I){return function(U){return O(I(U))}}function ae(O){var I=-1,U=Array(O.size);return O.forEach(function(ne){U[++I]=ne}),U}var se=Array.prototype,ce=Function.prototype,ge=Object.prototype,pe=Q["__core-js_shared__"],_e=ce.toString,de=ge.hasOwnProperty,Ne=function(){var O=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ut=ge.toString,On=RegExp("^"+_e.call(de).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=fe?Q.Buffer:void 0,xt=Q.Symbol,je=Q.Uint8Array,qe=ge.propertyIsEnumerable,yt=se.splice,ct=xt?xt.toStringTag:void 0,En=Object.getOwnPropertySymbols,Kn=ft?ft.isBuffer:void 0,Jt=ue(Object.keys,Object),$n=St(Q,"DataView"),en=St(Q,"Map"),zn=St(Q,"Promise"),Vn=St(Q,"Set"),Wn=St(Q,"WeakMap"),jt=St(Object,"create"),Rr=Ye($n),Nt=Ye(en),Ui=Ye(zn),Hi=Ye(Vn),Ki=Ye(Wn),Ir=xt?xt.prototype:void 0,Zn=Ir?Ir.valueOf:void 0;function De(O){var I=-1,U=O==null?0:O.length;for(this.clear();++I<U;){var ne=O[I];this.set(ne[0],ne[1])}}function $i(){this.__data__=jt?jt(null):{},this.size=0}function zi(O){var I=this.has(O)&&delete this.__data__[O];return this.size-=I?1:0,I}function Vi(O){var I=this.__data__;if(jt){var U=I[O];return U===r?void 0:U}return de.call(I,O)?I[O]:void 0}function Wi(O){var I=this.__data__;return jt?I[O]!==void 0:de.call(I,O)}function Zi(O,I){var U=this.__data__;return this.size+=this.has(O)?0:1,U[O]=jt&&I===void 0?r: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==null?0:O.length;for(this.clear();++I<U;){var ne=O[I];this.set(ne[0],ne[1])}}function Yi(){this.__data__=[],this.size=0}function Gi(O){var I=this.__data__,U=Tn(I,O);if(U<0)return!1;var ne=I.length-1;return U==ne?I.pop():yt.call(I,U,1),--this.size,!0}function Xi(O){var I=this.__data__,U=Tn(I,O);return U<0?void 0:I[U][1]}function Qi(O){return Tn(this.__data__,O)>-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();++I<U;){var ne=O[I];this.set(ne[0],ne[1])}}function eo(){this.size=0,this.__data__={hash:new De,map:new(en||$e),string:new De}}function to(O){var I=ht(this,O).delete(O);return this.size-=I?1:0,I}function no(O){return ht(this,O).get(O)}function ro(O){return ht(this,O).has(O)}function io(O,I){var U=ht(this,O),ne=U.size;return U.set(O,I),this.size+=U.size==ne?0:1,this}Xe.prototype.clear=eo,Xe.prototype.delete=to,Xe.prototype.get=no,Xe.prototype.has=ro,Xe.prototype.set=io;function wn(O){var I=-1,U=O==null?0:O.length;for(this.__data__=new Xe;++I<U;)this.add(O[I])}function Cr(O){return this.__data__.set(O,r),this}function An(O){return this.__data__.has(O)}wn.prototype.add=wn.prototype.push=Cr,wn.prototype.has=An;function gt(O){var I=this.__data__=new $e(O);this.size=I.size}function Yn(){this.__data__=new $e,this.size=0}function oo(O){var I=this.__data__,U=I.delete(O);return this.size=I.size,U}function lo(O){return this.__data__.get(O)}function ao(O){return this.__data__.has(O)}function so(O,I){var U=this.__data__;if(U instanceof $e){var ne=U.__data__;if(!en||ne.length<n-1)return ne.push([O,I]),this.size=++U.size,this;U=this.__data__=new Xe(ne)}return U.set(O,I),this.size=U.size,this}gt.prototype.clear=Yn,gt.prototype.delete=oo,gt.prototype.get=lo,gt.prototype.has=ao,gt.prototype.set=so;function uo(O,I){var U=xn(O),ne=!U&&Br(O),be=!U&&!ne&&Nn(O),ve=!U&&!ne&&!be&&Hr(O),Oe=U||ne||be||ve,Ae=Oe?H(O.length,String):[],Re=Ae.length;for(var Te in O)(I||de.call(O,Te))&&!(Oe&&(Te=="length"||be&&(Te=="offset"||Te=="parent")||ve&&(Te=="buffer"||Te=="byteLength"||Te=="byteOffset")||mo(Te,Re)))&&Ae.push(Te);return Ae}function Tn(O,I){for(var U=O.length;U--;)if(Dr(O[U][0],I))return U;return-1}function Gn(O,I,U){var ne=I(O);return xn(O)?ne:oe(ne,U(O))}function tn(O){return O==null?O===void 0?P:h:ct&&ct in Object(O)?kt(O):qr(O)}function Mr(O){return bt(O)&&tn(O)==d}function jr(O,I,U,ne,be){return O===I?!0:O==null||I==null||!bt(O)&&!bt(I)?O!==O&&I!==I:fo(O,I,U,ne,jr,be)}function fo(O,I,U,ne,be,ve){var Oe=xn(O),Ae=xn(I),Re=Oe?p:mt(O),Te=Ae?p:mt(I);Re=Re==d?s:Re,Te=Te==d?s:Te;var ze=Re==s,Qe=Te==s,Ie=Re==Te;if(Ie&&Nn(O)){if(!Nn(I))return!1;Oe=!0,ze=!1}if(Ie&&!ze)return ve||(ve=new gt),Oe||Hr(O)?Xn(O,I,U,ne,be,ve):vo(O,I,Re,U,ne,be,ve);if(!(U&i)){var Ve=ze&&de.call(O,"__wrapped__"),Be=Qe&&de.call(I,"__wrapped__");if(Ve||Be){var qt=Ve?O.value():O,Pt=Be?I.value():I;return ve||(ve=new gt),be(qt,Pt,U,ne,ve)}}return Ie?(ve||(ve=new gt),yo(O,I,U,ne,be,ve)):!1}function co(O){if(!Ur(O)||_o(O))return!1;var I=Fr(O)?On:D;return I.test(Ye(O))}function ho(O){return bt(O)&&Jn(O.length)&&!!$[tn(O)]}function po(O){if(!Oo(O))return Jt(O);var I=[];for(var U in Object(O))de.call(O,U)&&U!="constructor"&&I.push(U);return I}function Xn(O,I,U,ne,be,ve){var Oe=U&i,Ae=O.length,Re=I.length;if(Ae!=Re&&!(Oe&&Re>Ae))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<Ae;){var Ve=O[ze],Be=I[ze];if(ne)var qt=Oe?ne(Be,Ve,ze,I,O,ve):ne(Ve,Be,ze,O,I,ve);if(qt!==void 0){if(qt)continue;Qe=!1;break}if(Ie){if(!ie(I,function(Pt,rn){if(!X(Ie,rn)&&(Ve===Pt||be(Ve,Pt,U,ne,ve)))return Ie.push(rn)})){Qe=!1;break}}else if(!(Ve===Be||be(Ve,Be,U,ne,ve))){Qe=!1;break}}return ve.delete(O),ve.delete(I),Qe}function vo(O,I,U,ne,be,ve,Oe){switch(U){case N:if(O.byteLength!=I.byteLength||O.byteOffset!=I.byteOffset)return!1;O=O.buffer,I=I.buffer;case w:return!(O.byteLength!=I.byteLength||!ve(new je(O),new je(I)));case v:case u:case b:return Dr(+O,+I);case a:return O.name==I.name&&O.message==I.message;case E:case x:return O==I+"";case g:var Ae=V;case T:var Re=ne&i;if(Ae||(Ae=ae),O.size!=I.size&&!Re)return!1;var Te=Oe.get(O);if(Te)return Te==I;ne|=o,Oe.set(O,I);var ze=Xn(Ae(O),Ae(I),ne,be,ve,Oe);return Oe.delete(O),ze;case A:if(Zn)return Zn.call(O)==Zn.call(I)}return!1}function yo(O,I,U,ne,be,ve){var Oe=U&i,Ae=nn(O),Re=Ae.length,Te=nn(I),ze=Te.length;if(Re!=ze&&!Oe)return!1;for(var Qe=Re;Qe--;){var Ie=Ae[Qe];if(!(Oe?Ie in I:de.call(I,Ie)))return!1}var Ve=ve.get(O);if(Ve&&ve.get(I))return Ve==I;var Be=!0;ve.set(O,I),ve.set(I,O);for(var qt=Oe;++Qe<Re;){Ie=Ae[Qe];var Pt=O[Ie],rn=I[Ie];if(ne)var jl=Oe?ne(rn,Pt,Ie,I,O,ve):ne(Pt,rn,Ie,O,I,ve);if(!(jl===void 0?Pt===rn||be(Pt,rn,U,ne,ve):jl)){Be=!1;break}qt||(qt=Ie=="constructor")}if(Be&&!qt){var Kr=O.constructor,$r=I.constructor;Kr!=$r&&"constructor"in O&&"constructor"in I&&!(typeof Kr=="function"&&Kr instanceof Kr&&typeof $r=="function"&&$r instanceof $r)&&(Be=!1)}return ve.delete(O),ve.delete(I),Be}function nn(O){return Gn(O,er,go)}function ht(O,I){var U=O.__data__;return bo(I)?U[typeof I=="string"?"string":"hash"]:U.map}function St(O,I){var U=ee(O,I);return co(U)?U:void 0}function kt(O){var I=de.call(O,ct),U=O[ct];try{O[ct]=void 0;var ne=!0}catch(ve){}var be=ut.call(O);return ne&&(I?O[ct]=U:delete O[ct]),be}var go=En?function(O){return O==null?[]:(O=Object(O),J(En(O),function(I){return qe.call(O,I)}))}:wo,mt=tn;($n&&mt(new $n(new ArrayBuffer(1)))!=N||en&&mt(new en)!=g||zn&&mt(zn.resolve())!=m||Vn&&mt(new Vn)!=T||Wn&&mt(new Wn)!=S)&&(mt=function(O){var I=tn(O),U=I==s?O.constructor:void 0,ne=U?Ye(U):"";if(ne)switch(ne){case Rr:return N;case Nt:return g;case Ui:return m;case Hi:return T;case Ki:return S}return I});function mo(O,I){return I=I==null?l:I,!!I&&(typeof O=="number"||G.test(O))&&O>-1&&O%1==0&&O<I}function bo(O){var I=typeof O;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?O!=="__proto__":O===null}function _o(O){return!!Ne&&Ne in O}function Oo(O){var I=O&&O.constructor,U=typeof I=="function"&&I.prototype||ge;return O===U}function qr(O){return ut.call(O)}function Ye(O){if(O!=null){try{return _e.call(O)}catch(I){}try{return O+""}catch(I){}}return""}function Dr(O,I){return O===I||O!==O&&I!==I}var Br=Mr(function(){return arguments}())?Mr:function(O){return bt(O)&&de.call(O,"callee")&&!qe.call(O,"callee")},xn=Array.isArray;function Qn(O){return O!=null&&Jn(O.length)&&!Fr(O)}var Nn=Kn||Ao;function Eo(O,I){return jr(O,I)}function Fr(O){if(!Ur(O))return!1;var I=tn(O);return I==f||I==_||I==y||I==c}function Jn(O){return typeof O=="number"&&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;o<n&&i.hasNext();){var l=void 0;o<t?l=i.next(t-o):(l=i.next(n-o),r.push(l)),o+=Fe.default.length(l)}return new e(r)},e.prototype.compose=function(t){var n=Fe.default.iterator(this.ops),r=Fe.default.iterator(t.ops),i=[],o=r.peek();if(o!=null&&typeof o.retain=="number"&&o.attributes==null){for(var l=o.retain;n.peekType()==="insert"&&n.peekLength()<=l;)l-=n.peekLength(),i.push(n.next());o.retain-l>0&&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<t||!n)&&(t+=o);i+=o}return t},e.Op=Fe.default,e.AttributeMap=rr.default,e})();/*!
- * VueQuill @vueup/vue-quill v1.0.0-beta.9
- * https://vueup.github.io/vue-quill/
- *
- * Includes quill v1.3.7
- * https://quilljs.com/
- *
- * Copyright (c) 2022 Ahmad Luthfi Masruri
- * Released under the MIT license
- * Date: 2022-07-15T12:19:26.189Z
- */const Na={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},hd=Ri({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object],default:()=>{}},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};
|