/
home
/
maktab
/
pwa
/
assets
/
File Upload :
llllll
Current File: /home/maktab/pwa/assets/vue-quill.esm-bundler-70e5b6d0.js
import{W as Dr,r as Be,X as Br,Y as Cr,Z as hr,d as yt,a as dr,C as ze,k as $e,e as Oe,l as vr,B as Qe,$ as Fr,E as Ur,a0 as Hr,p as zr,a1 as Kr,a2 as ke,a3 as pr,a4 as Pt,a5 as $r}from"./index-f95df8ab.js";import{r as Wn,o as yr,s as Gr,j as Vr,q as gr,c as It,v as mr,x as br,e as _r,y as Zr,z as Or,n as at,m as Er,l as pt,A as Ar,u as Rt,w as Qn,t as tn,B as Yn,C as Kn,a as Wr,D as Yr,g as ir,E as Xr,F as or,f as Qr,d as Jr,b as ei,G as ti}from"./with-install-f7d3cd7f.js";import{u as Jn,o as ni}from"./use-touch-18e91ba9.js";import{a as ri,r as ii}from"./use-route-d9e5e630.js";import{a as oi,S as ai}from"./index-46ec6d60.js";import{d as li,e as ui}from"./index-398da50d.js";import{c as si}from"./index-a8b670df.js";let fi=0;function wr(){const k=Dr(),{name:C="unknown"}=(k==null?void 0:k.type)||{};return`${C}-${++fi}`}function ci(){const k=Be([]),C=[];return Br(()=>{k.value=[]}),[k,d=>(C[d]||(C[d]=s=>{k.value[d]=s}),C[d])]}function hi(k,C,m){let d=0;const s=k.scrollLeft,O=m===0?1:Math.round(m*1e3/16);function b(){k.scrollLeft+=(C-s)/O,++d<O&&Wn(b)}b()}function di(k,C,m,d){let s=yr(k);const O=s<C,b=m===0?1:Math.round(m*1e3/16),_=(C-s)/b;function y(){s+=_,(O&&s>C||!O&&s<C)&&(s=C),Gr(k,s),O&&s<C||!O&&s>C?Wn(y):d&&Wn(d)}y()}function vi(k,C){if(!Vr||!window.IntersectionObserver)return;const m=new IntersectionObserver(O=>{C(O[0].intersectionRatio>0)},{root:document.body}),d=()=>{k.value&&m.observe(k.value)},s=()=>{k.value&&m.unobserve(k.value)};Cr(s),hr(s),gr(d)}const[pi,yi]=It("sticky"),gi={zIndex:at,position:Er("top"),container:Object,offsetTop:pt(0),offsetBottom:pt(0)};var mi=yt({name:pi,props:gi,emits:["scroll","change"],setup(k,{emit:C,slots:m}){const d=Be(),s=mr(d),O=dr({fixed:!1,width:0,height:0,transform:0}),b=ze(()=>br(k.position==="top"?k.offsetTop:k.offsetBottom)),_=ze(()=>{const{fixed:r,height:e,width:t}=O;if(r)return{width:`${t}px`,height:`${e}px`}}),y=ze(()=>{if(!O.fixed)return;const r=_r(Zr(k.zIndex),{width:`${O.width}px`,height:`${O.height}px`,[k.position]:`${b.value}px`});return O.transform&&(r.transform=`translate3d(0, ${O.transform}px, 0)`),r}),g=r=>C("scroll",{scrollTop:r,isFixed:O.fixed}),c=()=>{if(!d.value||Ar(d))return;const{container:r,position:e}=k,t=Rt(d),f=yr(window);if(O.width=t.width,O.height=t.height,e==="top")if(r){const l=Rt(r),a=l.bottom-b.value-O.height;O.fixed=b.value>t.top&&l.bottom>0,O.transform=a<0?a:0}else O.fixed=b.value>t.top;else{const{clientHeight:l}=document.documentElement;if(r){const a=Rt(r),i=l-a.top-b.value-O.height;O.fixed=l-b.value<t.bottom&&l>a.top,O.transform=i<0?-i:0}else O.fixed=l-b.value<t.bottom}g(f)};return $e(()=>O.fixed,r=>C("change",r)),Or("scroll",c,{target:s,passive:!0}),vi(d,c),()=>{var r;return Oe("div",{ref:d,style:_.value},[Oe("div",{class:yi({fixed:O.fixed}),style:y.value},[(r=m.default)==null?void 0:r.call(m)])])}}});const bi=Qn(mi),[_i,ar]=It("tab");var Oi=yt({name:_i,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:at,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:tn},setup(k,{slots:C}){const m=ze(()=>{const s={},{type:O,color:b,disabled:_,isActive:y,activeColor:g,inactiveColor:c}=k;b&&O==="card"&&(s.borderColor=b,_||(y?s.backgroundColor=b:s.color=b));const e=y?g:c;return e&&(s.color=e),s}),d=()=>{const s=Oe("span",{class:ar("text",{ellipsis:!k.scrollable})},[C.title?C.title():k.title]);return k.dot||Yn(k.badge)&&k.badge!==""?Oe(li,{dot:k.dot,content:k.badge,showZero:k.showZeroBadge},{default:()=>[s]}):s};return()=>Oe("div",{id:k.id,role:"tab",class:[ar([k.type,{grow:k.scrollable&&!k.shrink,shrink:k.shrink,active:k.isActive,disabled:k.disabled}])],style:m.value,tabindex:k.disabled?void 0:k.isActive?0:-1,"aria-selected":k.isActive,"aria-disabled":k.disabled||void 0,"aria-controls":k.controls},[d()])}});const[Ei,lr]=It("tabs");var Ai=yt({name:Ei,props:{count:Kn(Number),inited:Boolean,animated:Boolean,duration:Kn(at),swipeable:Boolean,lazyRender:Boolean,currentIndex:Kn(Number)},emits:["change"],setup(k,{emit:C,slots:m}){const d=Be(),s=_=>C("change",_),O=()=>{var _;const y=(_=m.default)==null?void 0:_.call(m);return k.animated||k.swipeable?Oe(oi,{ref:d,loop:!1,class:lr("track"),duration:+k.duration*1e3,touchable:k.swipeable,lazyRender:k.lazyRender,showIndicators:!1,onChange:s},{default:()=>[y]}):y},b=_=>{const y=d.value;y&&y.state.active!==_&&y.swipeTo(_,{immediate:!k.inited})};return $e(()=>k.currentIndex,b),vr(()=>{b(k.currentIndex)}),Jn({swipeRef:d}),()=>Oe("div",{class:lr("content",{animated:k.animated||k.swipeable})},[O()])}});const[Tr,Xt]=It("tabs"),wi={type:Er("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:pt(0),duration:pt(.3),animated:Boolean,ellipsis:tn,swipeable:Boolean,scrollspy:Boolean,offsetTop:pt(0),background:String,lazyRender:tn,lineWidth:at,lineHeight:at,beforeChange:Function,swipeThreshold:pt(5),titleActiveColor:String,titleInactiveColor:String},kr=Symbol(Tr);var Ti=yt({name:Tr,props:wi,emits:["click","change","scroll","disabled","rendered","click-tab","update:active"],setup(k,{emit:C,slots:m}){let d,s,O;const b=Be(),_=Be(),y=Be(),g=Be(),c=wr(),r=mr(b),[e,t]=ci(),{children:f,linkChildren:l}=Wr(kr),a=dr({inited:!1,position:"",lineStyle:{},currentIndex:-1}),i=ze(()=>f.length>k.swipeThreshold||!k.ellipsis||k.shrink),o=ze(()=>({borderColor:k.color,background:k.background})),h=(F,B)=>{var L;return(L=F.name)!=null?L:B},n=ze(()=>{const F=f[a.currentIndex];if(F)return h(F,a.currentIndex)}),v=ze(()=>br(k.offsetTop)),S=ze(()=>k.sticky?v.value+d:0),w=F=>{const B=_.value,L=e.value;if(!i.value||!B||!L||!L[a.currentIndex])return;const H=L[a.currentIndex].$el,$=H.offsetLeft-(B.offsetWidth-H.offsetWidth)/2;hi(B,$,F?0:+k.duration)},T=()=>{const F=a.inited;Qe(()=>{const B=e.value;if(!B||!B[a.currentIndex]||k.type!=="line"||Ar(b.value))return;const L=B[a.currentIndex].$el,{lineWidth:H,lineHeight:$}=k,V=L.offsetLeft+L.offsetWidth/2,X={width:ir(H),backgroundColor:k.color,transform:`translateX(${V}px) translateX(-50%)`};if(F&&(X.transitionDuration=`${k.duration}s`),Yn($)){const te=ir($);X.height=te,X.borderRadius=te}a.lineStyle=X})},R=F=>{const B=F<a.currentIndex?-1:1;for(;F>=0&&F<f.length;){if(!f[F].disabled)return F;F+=B}},A=(F,B)=>{const L=R(F);if(!Yn(L))return;const H=f[L],$=h(H,L),V=a.currentIndex!==null;a.currentIndex!==L&&(a.currentIndex=L,B||w(),T()),$!==k.active&&(C("update:active",$),V&&C("change",$,H.title)),O&&!k.scrollspy&&Xr(Math.ceil(or(b.value)-v.value))},p=(F,B)=>{const L=f.find(($,V)=>h($,V)===F),H=L?f.indexOf(L):0;A(H,B)},E=(F=!1)=>{if(k.scrollspy){const B=f[a.currentIndex].$el;if(B&&r.value){const L=or(B,r.value)-S.value;s=!0,di(r.value,L,F?0:+k.duration,()=>{s=!1})}}},N=(F,B,L)=>{const{title:H,disabled:$}=f[B],V=h(f[B],B);$?C("disabled",V,H):(si(k.beforeChange,{args:[V],done:()=>{A(B),E()}}),C("click",V,H),ri(F)),C("click-tab",{name:V,title:H,event:L,disabled:$})},q=F=>{O=F.isFixed,C("scroll",F)},D=F=>{Qe(()=>{p(F),E(!0)})},K=()=>{for(let F=0;F<f.length;F++){const{top:B}=Rt(f[F].$el);if(B>S.value)return F===0?0:F-1}return f.length-1},G=()=>{if(k.scrollspy&&!s){const F=K();A(F)}},Q=()=>f.map((F,B)=>Oe(Oi,Ur({key:F.id,id:`${c}-${B}`,ref:t(B),type:k.type,color:k.color,style:F.titleStyle,class:F.titleClass,shrink:k.shrink,isActive:B===a.currentIndex,controls:F.id,scrollable:i.value,activeColor:k.titleActiveColor,inactiveColor:k.titleInactiveColor,onClick:L=>N(F,B,L)},Qr(F,["dot","badge","title","disabled","showZeroBadge"])),{title:F.$slots.title})),z=()=>{if(k.type==="line"&&f.length)return Oe("div",{class:Xt("line"),style:a.lineStyle},null)},I=()=>{var F,B,L;const{type:H,border:$,sticky:V}=k,X=[Oe("div",{ref:V?void 0:y,class:[Xt("wrap"),{[ui]:H==="line"&&$}]},[Oe("div",{ref:_,role:"tablist",class:Xt("nav",[H,{shrink:k.shrink,complete:i.value}]),style:o.value,"aria-orientation":"horizontal"},[(F=m["nav-left"])==null?void 0:F.call(m),Q(),z(),(B=m["nav-right"])==null?void 0:B.call(m)])]),(L=m["nav-bottom"])==null?void 0:L.call(m)];return V?Oe("div",{ref:y},[X]):X};$e([()=>k.color,Yr],T),$e(()=>k.active,F=>{F!==n.value&&p(F)}),$e(()=>f.length,()=>{a.inited&&(p(k.active),T(),Qe(()=>{w(!0)}))});const x=()=>{p(k.active,!0),Qe(()=>{a.inited=!0,y.value&&(d=Rt(y.value).height),w(!0)})},j=(F,B)=>C("rendered",F,B);return Jn({resize:()=>{T(),Qe(()=>{var F,B;return(B=(F=g.value)==null?void 0:F.swipeRef.value)==null?void 0:B.resize()})},scrollTo:D}),Fr(T),ni(T),gr(x),Or("scroll",G,{target:r,passive:!0}),l({id:c,props:k,setLine:T,onRendered:j,currentName:n,scrollIntoView:w}),()=>Oe("div",{ref:b,class:Xt([k.type])},[k.sticky?Oe(bi,{container:b.value,offsetTop:v.value,onScroll:q},{default:()=>[I()]}):I(),Oe(Ai,{ref:g,count:f.length,inited:a.inited,animated:k.animated,duration:k.duration,swipeable:k.swipeable,lazyRender:k.lazyRender,currentIndex:a.currentIndex,onChange:A},{default:()=>{var F;return[(F=m.default)==null?void 0:F.call(m)]}})])}});const ki=Symbol(),[Si,$n]=It("tab"),Ni=_r({},ii,{dot:Boolean,name:at,badge:at,title:String,disabled:Boolean,titleClass:Jr,titleStyle:[String,Object],showZeroBadge:tn});var xi=yt({name:Si,props:Ni,setup(k,{slots:C}){const m=wr(),d=Be(!1),{parent:s,index:O}=ei(kr);if(!s)return;const b=()=>{var c;return(c=k.name)!=null?c:O.value},_=()=>{d.value=!0,s.props.lazyRender&&Qe(()=>{s.onRendered(b(),k.title)})},y=ze(()=>{const c=b()===s.currentName.value;return c&&!d.value&&_(),c}),g=Be(!y.value);return $e(y,c=>{c?g.value=!1:ti(()=>{g.value=!0})}),$e(()=>k.title,()=>{s.setLine(),s.scrollIntoView()}),Hr(ki,y),()=>{var c;const r=`${s.id}-${O.value}`,{animated:e,swipeable:t,scrollspy:f,lazyRender:l}=s.props;if(!C.default&&!e)return;const a=f||y.value;if(e||t)return Oe(ai,{id:m,role:"tabpanel",class:$n("panel-wrapper",{inactive:g.value}),tabindex:y.value?0:-1,"aria-hidden":!y.value,"aria-labelledby":r},{default:()=>{var h;return[Oe("div",{class:$n("panel")},[(h=C.default)==null?void 0:h.call(C)])]}});const o=d.value||f||!l?(c=C.default)==null?void 0:c.call(C):null;return Jn({id:m}),zr(Oe("div",{id:m,role:"tabpanel",class:$n("panel"),tabindex:a?0:-1,"aria-labelledby":r},[o]),[[Kr,a]])}}});const Qi=Qn(xi),Ji=Qn(Ti);var Sr={exports:{}};(function(k,C){(function(d,s){k.exports=s()})(typeof self<"u"?self:ke,function(){return function(m){var d={};function s(O){if(d[O])return d[O].exports;var b=d[O]={i:O,l:!1,exports:{}};return m[O].call(b.exports,b,b.exports,s),b.l=!0,b.exports}return s.m=m,s.c=d,s.d=function(O,b,_){s.o(O,b)||Object.defineProperty(O,b,{configurable:!1,enumerable:!0,get:_})},s.n=function(O){var b=O&&O.__esModule?function(){return O.default}:function(){return O};return s.d(b,"a",b),b},s.o=function(O,b){return Object.prototype.hasOwnProperty.call(O,b)},s.p="",s(s.s=109)}([function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(17),b=s(18),_=s(19),y=s(45),g=s(46),c=s(47),r=s(48),e=s(49),t=s(12),f=s(32),l=s(33),a=s(31),i=s(1),o={Scope:i.Scope,create:i.create,find:i.find,query:i.query,register:i.register,Container:O.default,Format:b.default,Leaf:_.default,Embed:r.default,Scroll:y.default,Block:c.default,Inline:g.default,Text:e.default,Attributor:{Attribute:t.default,Class:f.default,Style:l.default,Store:a.default}};d.default=o},function(m,d,s){var O=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var h in o)o.hasOwnProperty(h)&&(i[h]=o[h])};return function(i,o){a(i,o);function h(){this.constructor=i}i.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=function(a){O(i,a);function i(o){var h=this;return o="[Parchment] "+o,h=a.call(this,o)||this,h.message=o,h.name=h.constructor.name,h}return i}(Error);d.ParchmentError=b;var _={},y={},g={},c={};d.DATA_KEY="__blot";var r;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(r=d.Scope||(d.Scope={}));function e(a,i){var o=f(a);if(o==null)throw new b("Unable to create "+a+" blot");var h=o,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:h.create(i);return new h(n,i)}d.create=e;function t(a,i){return i===void 0&&(i=!1),a==null?null:a[d.DATA_KEY]!=null?a[d.DATA_KEY].blot:i?t(a.parentNode,i):null}d.find=t;function f(a,i){i===void 0&&(i=r.ANY);var o;if(typeof a=="string")o=c[a]||_[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)o=c.text;else if(typeof a=="number")a&r.LEVEL&r.BLOCK?o=c.block:a&r.LEVEL&r.INLINE&&(o=c.inline);else if(a instanceof HTMLElement){var h=(a.getAttribute("class")||"").split(/\s+/);for(var n in h)if(o=y[h[n]],o)break;o=o||g[a.tagName]}return o==null?null:i&r.LEVEL&o.scope&&i&r.TYPE&o.scope?o:null}d.query=f;function l(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(a.length>1)return a.map(function(n){return l(n)});var o=a[0];if(typeof o.blotName!="string"&&typeof o.attrName!="string")throw new b("Invalid definition");if(o.blotName==="abstract")throw new b("Cannot register abstract class");if(c[o.blotName||o.attrName]=o,typeof o.keyName=="string")_[o.keyName]=o;else if(o.className!=null&&(y[o.className]=o),o.tagName!=null){Array.isArray(o.tagName)?o.tagName=o.tagName.map(function(n){return n.toUpperCase()}):o.tagName=o.tagName.toUpperCase();var h=Array.isArray(o.tagName)?o.tagName:[o.tagName];h.forEach(function(n){(g[n]==null||o.className==null)&&(g[n]=o)})}return o}d.register=l},function(m,d,s){var O=s(51),b=s(11),_=s(3),y=s(20),g=String.fromCharCode(0),c=function(r){Array.isArray(r)?this.ops=r:r!=null&&Array.isArray(r.ops)?this.ops=r.ops:this.ops=[]};c.prototype.insert=function(r,e){var t={};return r.length===0?this:(t.insert=r,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},c.prototype.delete=function(r){return r<=0?this:this.push({delete:r})},c.prototype.retain=function(r,e){if(r<=0)return this;var t={retain:r};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},c.prototype.push=function(r){var e=this.ops.length,t=this.ops[e-1];if(r=_(!0,{},r),typeof t=="object"){if(typeof r.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+r.delete},this;if(typeof t.delete=="number"&&r.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(r),this;if(b(r.attributes,t.attributes)){if(typeof r.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+r.insert},typeof r.attributes=="object"&&(this.ops[e-1].attributes=r.attributes),this;if(typeof r.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+r.retain},typeof r.attributes=="object"&&(this.ops[e-1].attributes=r.attributes),this}}return e===this.ops.length?this.ops.push(r):this.ops.splice(e,0,r),this},c.prototype.chop=function(){var r=this.ops[this.ops.length-1];return r&&r.retain&&!r.attributes&&this.ops.pop(),this},c.prototype.filter=function(r){return this.ops.filter(r)},c.prototype.forEach=function(r){this.ops.forEach(r)},c.prototype.map=function(r){return this.ops.map(r)},c.prototype.partition=function(r){var e=[],t=[];return this.forEach(function(f){var l=r(f)?e:t;l.push(f)}),[e,t]},c.prototype.reduce=function(r,e){return this.ops.reduce(r,e)},c.prototype.changeLength=function(){return this.reduce(function(r,e){return e.insert?r+y.length(e):e.delete?r-e.delete:r},0)},c.prototype.length=function(){return this.reduce(function(r,e){return r+y.length(e)},0)},c.prototype.slice=function(r,e){r=r||0,typeof e!="number"&&(e=1/0);for(var t=[],f=y.iterator(this.ops),l=0;l<e&&f.hasNext();){var a;l<r?a=f.next(r-l):(a=f.next(e-l),t.push(a)),l+=y.length(a)}return new c(t)},c.prototype.compose=function(r){var e=y.iterator(this.ops),t=y.iterator(r.ops),f=[],l=t.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;e.peekType()==="insert"&&e.peekLength()<=a;)a-=e.peekLength(),f.push(e.next());l.retain-a>0&&t.next(l.retain-a)}for(var i=new c(f);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")i.push(t.next());else if(e.peekType()==="delete")i.push(e.next());else{var o=Math.min(e.peekLength(),t.peekLength()),h=e.next(o),n=t.next(o);if(typeof n.retain=="number"){var v={};typeof h.retain=="number"?v.retain=o:v.insert=h.insert;var S=y.attributes.compose(h.attributes,n.attributes,typeof h.retain=="number");if(S&&(v.attributes=S),i.push(v),!t.hasNext()&&b(i.ops[i.ops.length-1],v)){var w=new c(e.rest());return i.concat(w).chop()}}else typeof n.delete=="number"&&typeof h.retain=="number"&&i.push(n)}return i.chop()},c.prototype.concat=function(r){var e=new c(this.ops.slice());return r.ops.length>0&&(e.push(r.ops[0]),e.ops=e.ops.concat(r.ops.slice(1))),e},c.prototype.diff=function(r,e){if(this.ops===r.ops)return new c;var t=[this,r].map(function(o){return o.map(function(h){if(h.insert!=null)return typeof h.insert=="string"?h.insert:g;var n=o===r?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),f=new c,l=O(t[0],t[1],e),a=y.iterator(this.ops),i=y.iterator(r.ops);return l.forEach(function(o){for(var h=o[1].length;h>0;){var n=0;switch(o[0]){case O.INSERT:n=Math.min(i.peekLength(),h),f.push(i.next(n));break;case O.DELETE:n=Math.min(h,a.peekLength()),a.next(n),f.delete(n);break;case O.EQUAL:n=Math.min(a.peekLength(),i.peekLength(),h);var v=a.next(n),S=i.next(n);b(v.insert,S.insert)?f.retain(n,y.attributes.diff(v.attributes,S.attributes)):f.push(S).delete(n);break}h-=n}}),f.chop()},c.prototype.eachLine=function(r,e){e=e||` `;for(var t=y.iterator(this.ops),f=new c,l=0;t.hasNext();){if(t.peekType()!=="insert")return;var a=t.peek(),i=y.length(a)-t.peekLength(),o=typeof a.insert=="string"?a.insert.indexOf(e,i)-i:-1;if(o<0)f.push(t.next());else if(o>0)f.push(t.next(o));else{if(r(f,t.next(1).attributes||{},l)===!1)return;l+=1,f=new c}}f.length()>0&&r(f,{},l)},c.prototype.transform=function(r,e){if(e=!!e,typeof r=="number")return this.transformPosition(r,e);for(var t=y.iterator(this.ops),f=y.iterator(r.ops),l=new c;t.hasNext()||f.hasNext();)if(t.peekType()==="insert"&&(e||f.peekType()!=="insert"))l.retain(y.length(t.next()));else if(f.peekType()==="insert")l.push(f.next());else{var a=Math.min(t.peekLength(),f.peekLength()),i=t.next(a),o=f.next(a);if(i.delete)continue;o.delete?l.push(o):l.retain(a,y.attributes.transform(i.attributes,o.attributes,e))}return l.chop()},c.prototype.transformPosition=function(r,e){e=!!e;for(var t=y.iterator(this.ops),f=0;t.hasNext()&&f<=r;){var l=t.peekLength(),a=t.peekType();if(t.next(),a==="delete"){r-=Math.min(l,r-f);continue}else a==="insert"&&(f<r||!e)&&(r+=l);f+=l}return r},m.exports=c},function(m,d){var s=Object.prototype.hasOwnProperty,O=Object.prototype.toString,b=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=function(t){return typeof Array.isArray=="function"?Array.isArray(t):O.call(t)==="[object Array]"},g=function(t){if(!t||O.call(t)!=="[object Object]")return!1;var f=s.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&s.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!f&&!l)return!1;var a;for(a in t);return typeof a>"u"||s.call(t,a)},c=function(t,f){b&&f.name==="__proto__"?b(t,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):t[f.name]=f.newValue},r=function(t,f){if(f==="__proto__")if(s.call(t,f)){if(_)return _(t,f).value}else return;return t[f]};m.exports=function e(){var t,f,l,a,i,o,h=arguments[0],n=1,v=arguments.length,S=!1;for(typeof h=="boolean"&&(S=h,h=arguments[1]||{},n=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});n<v;++n)if(t=arguments[n],t!=null)for(f in t)l=r(h,f),a=r(t,f),h!==a&&(S&&a&&(g(a)||(i=y(a)))?(i?(i=!1,o=l&&y(l)?l:[]):o=l&&g(l)?l:{},c(h,{name:f,newValue:e(S,o,a)})):typeof a<"u"&&c(h,{name:f,newValue:a}));return h}},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.BlockEmbed=d.bubbleFormats=void 0;var O=function(){function p(E,N){for(var q=0;q<N.length;q++){var D=N[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,N,q){return N&&p(E.prototype,N),q&&p(E,q),E}}(),b=function p(E,N,q){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,N);if(D===void 0){var K=Object.getPrototypeOf(E);return K===null?void 0:p(K,N,q)}else{if("value"in D)return D.value;var G=D.get;return G===void 0?void 0:G.call(q)}},_=s(3),y=h(_),g=s(2),c=h(g),r=s(0),e=h(r),t=s(16),f=h(t),l=s(6),a=h(l),i=s(7),o=h(i);function h(p){return p&&p.__esModule?p:{default:p}}function n(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}function v(p,E){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:p}function S(p,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(p,E):p.__proto__=E)}var w=1,T=function(p){S(E,p);function E(){return n(this,E),v(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return O(E,[{key:"attach",value:function(){b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,D){var K=e.default.query(q,e.default.Scope.BLOCK_ATTRIBUTE);K!=null&&this.attributes.attribute(K,D)}},{key:"formatAt",value:function(q,D,K,G){this.format(K,G)}},{key:"insertAt",value:function(q,D,K){if(typeof D=="string"&&D.endsWith(` `)){var G=e.default.create(R.blotName);this.parent.insertBefore(G,q===0?this:this.next),G.insertAt(0,D.slice(0,-1))}else b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,q,D,K)}}]),E}(e.default.Embed);T.scope=e.default.Scope.BLOCK_BLOT;var R=function(p){S(E,p);function E(N){n(this,E);var q=v(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,N));return q.cache={},q}return O(E,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(q,D){return D.length()===0?q:q.insert(D.value(),A(D))},new c.default).insert(` `,A(this))),this.cache.delta}},{key:"deleteAt",value:function(q,D){b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,q,D),this.cache={}}},{key:"formatAt",value:function(q,D,K,G){D<=0||(e.default.query(K,e.default.Scope.BLOCK)?q+D===this.length()&&this.format(K,G):b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,q,Math.min(D,this.length()-q-1),K,G),this.cache={})}},{key:"insertAt",value:function(q,D,K){if(K!=null)return b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,q,D,K);if(D.length!==0){var G=D.split(` `),Q=G.shift();Q.length>0&&(q<this.length()-1||this.children.tail==null?b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),Q):this.children.tail.insertAt(this.children.tail.length(),Q),this.cache={});var z=this;G.reduce(function(I,x){return z=z.split(I,!0),z.insertAt(0,x),x.length},q+Q.length)}}},{key:"insertBefore",value:function(q,D){var K=this.children.head;b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,q,D),K instanceof f.default&&K.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(q,D){b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"moveChildren",this).call(this,q,D),this.cache={}}},{key:"optimize",value:function(q){b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(q===0||q>=this.length()-w)){var K=this.clone();return q===0?(this.parent.insertBefore(K,this),this):(this.parent.insertBefore(K,this.next),K)}else{var G=b(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"split",this).call(this,q,D);return this.cache={},G}}}]),E}(e.default.Block);R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[a.default,e.default.Embed,o.default];function A(p){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p==null||(typeof p.formats=="function"&&(E=(0,y.default)(E,p.formats())),p.parent==null||p.parent.blotName=="scroll"||p.parent.statics.scope!==p.statics.scope)?E:A(p.parent,E)}d.bubbleFormats=A,d.BlockEmbed=T,d.default=R},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.overload=d.expandConfig=void 0;var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},b=function(){function z(I,x){var j=[],M=!0,F=!1,B=void 0;try{for(var L=I[Symbol.iterator](),H;!(M=(H=L.next()).done)&&(j.push(H.value),!(x&&j.length===x));M=!0);}catch($){F=!0,B=$}finally{try{!M&&L.return&&L.return()}finally{if(F)throw B}}return j}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return z(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function z(I,x){for(var j=0;j<x.length;j++){var M=x[j];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(I,M.key,M)}}return function(I,x,j){return x&&z(I.prototype,x),j&&z(I,j),I}}();s(50);var y=s(2),g=A(y),c=s(14),r=A(c),e=s(8),t=A(e),f=s(9),l=A(f),a=s(0),i=A(a),o=s(15),h=A(o),n=s(3),v=A(n),S=s(10),w=A(S),T=s(34),R=A(T);function A(z){return z&&z.__esModule?z:{default:z}}function p(z,I,x){return I in z?Object.defineProperty(z,I,{value:x,enumerable:!0,configurable:!0,writable:!0}):z[I]=x,z}function E(z,I){if(!(z instanceof I))throw new TypeError("Cannot call a class as a function")}var N=(0,w.default)("quill"),q=function(){_(z,null,[{key:"debug",value:function(x){x===!0&&(x="log"),w.default.level(x)}},{key:"find",value:function(x){return x.__quill||i.default.find(x)}},{key:"import",value:function(x){return this.imports[x]==null&&N.error("Cannot import "+x+". Are you sure it was registered?"),this.imports[x]}},{key:"register",value:function(x,j){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof x!="string"){var B=x.attrName||x.blotName;typeof B=="string"?this.register("formats/"+B,x,j):Object.keys(x).forEach(function(L){M.register(L,x[L],j)})}else this.imports[x]!=null&&!F&&N.warn("Overwriting "+x+" with",j),this.imports[x]=j,(x.startsWith("blots/")||x.startsWith("formats/"))&&j.blotName!=="abstract"?i.default.register(j):x.startsWith("modules")&&typeof j.register=="function"&&j.register()}}]);function z(I){var x=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(E(this,z),this.options=D(I,j),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",I);this.options.debug&&z.debug(this.options.debug);var M=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 t.default,this.scroll=i.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new r.default(this.scroll),this.selection=new h.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(t.default.events.EDITOR_CHANGE,function(B){B===t.default.events.TEXT_CHANGE&&x.root.classList.toggle("ql-blank",x.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(B,L){var H=x.selection.lastRange,$=H&&H.length===0?H.index:void 0;K.call(x,function(){return x.editor.update(null,L,$)},B)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _(z,[{key:"addContainer",value:function(x){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof x=="string"){var M=x;x=document.createElement("div"),x.classList.add(M)}return this.container.insertBefore(x,j),x}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(x,j,M){var F=this,B=G(x,j,M),L=b(B,4);return x=L[0],j=L[1],M=L[3],K.call(this,function(){return F.editor.deleteText(x,j)},M,x,-1*j)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(x),this.container.classList.toggle("ql-disabled",!x)}},{key:"focus",value:function(){var x=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=x,this.scrollIntoView()}},{key:"format",value:function(x,j){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return K.call(this,function(){var B=M.getSelection(!0),L=new g.default;if(B==null)return L;if(i.default.query(x,i.default.Scope.BLOCK))L=M.editor.formatLine(B.index,B.length,p({},x,j));else{if(B.length===0)return M.selection.format(x,j),L;L=M.editor.formatText(B.index,B.length,p({},x,j))}return M.setSelection(B,t.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(x,j,M,F,B){var L=this,H=void 0,$=G(x,j,M,F,B),V=b($,4);return x=V[0],j=V[1],H=V[2],B=V[3],K.call(this,function(){return L.editor.formatLine(x,j,H)},B,x,0)}},{key:"formatText",value:function(x,j,M,F,B){var L=this,H=void 0,$=G(x,j,M,F,B),V=b($,4);return x=V[0],j=V[1],H=V[2],B=V[3],K.call(this,function(){return L.editor.formatText(x,j,H)},B,x,0)}},{key:"getBounds",value:function(x){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof x=="number"?M=this.selection.getBounds(x,j):M=this.selection.getBounds(x.index,x.length);var F=this.container.getBoundingClientRect();return{bottom:M.bottom-F.top,height:M.height,left:M.left-F.left,right:M.right-F.left,top:M.top-F.top,width:M.width}}},{key:"getContents",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-x,M=G(x,j),F=b(M,2);return x=F[0],j=F[1],this.editor.getContents(x,j)}},{key:"getFormat",value:function(){var x=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 x=="number"?this.editor.getFormat(x,j):this.editor.getFormat(x.index,x.length)}},{key:"getIndex",value:function(x){return x.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(x){return this.scroll.leaf(x)}},{key:"getLine",value:function(x){return this.scroll.line(x)}},{key:"getLines",value:function(){var x=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 x!="number"?this.scroll.lines(x.index,x.length):this.scroll.lines(x,j)}},{key:"getModule",value:function(x){return this.theme.modules[x]}},{key:"getSelection",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return x&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-x,M=G(x,j),F=b(M,2);return x=F[0],j=F[1],this.editor.getText(x,j)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(x,j,M){var F=this,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:z.sources.API;return K.call(this,function(){return F.editor.insertEmbed(x,j,M)},B,x)}},{key:"insertText",value:function(x,j,M,F,B){var L=this,H=void 0,$=G(x,0,M,F,B),V=b($,4);return x=V[0],H=V[2],B=V[3],K.call(this,function(){return L.editor.insertText(x,j,H)},B,x,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(x,j,M){this.clipboard.dangerouslyPasteHTML(x,j,M)}},{key:"removeFormat",value:function(x,j,M){var F=this,B=G(x,j,M),L=b(B,4);return x=L[0],j=L[1],M=L[3],K.call(this,function(){return F.editor.removeFormat(x,j)},M,x)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(x){var j=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return K.call(this,function(){x=new g.default(x);var F=j.getLength(),B=j.editor.deleteText(0,F),L=j.editor.applyDelta(x),H=L.ops[L.ops.length-1];H!=null&&typeof H.insert=="string"&&H.insert[H.insert.length-1]===` `&&(j.editor.deleteText(j.getLength()-1,1),L.delete(1));var $=B.compose(L);return $},M)}},{key:"setSelection",value:function(x,j,M){if(x==null)this.selection.setRange(null,j||z.sources.API);else{var F=G(x,j,M),B=b(F,4);x=B[0],j=B[1],M=B[3],this.selection.setRange(new o.Range(x,j),M),M!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(x){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,M=new g.default().insert(x);return this.setContents(M,j)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,j=this.scroll.update(x);return this.selection.update(x),j}},{key:"updateContents",value:function(x){var j=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return K.call(this,function(){return x=new g.default(x),j.editor.applyDelta(x,M)},M,!0)}}]),z}();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=t.default.events,q.sources=t.default.sources,q.version="1.3.7",q.imports={delta:g.default,parchment:i.default,"core/module":l.default,"core/theme":R.default};function D(z,I){if(I=(0,v.default)(!0,{container:z,modules:{clipboard:!0,keyboard:!0,history:!0}},I),!I.theme||I.theme===q.DEFAULTS.theme)I.theme=R.default;else if(I.theme=q.import("themes/"+I.theme),I.theme==null)throw new Error("Invalid theme "+I.theme+". Did you register it?");var x=(0,v.default)(!0,{},I.theme.DEFAULTS);[x,I].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(B){F.modules[B]===!0&&(F.modules[B]={})})});var j=Object.keys(x.modules).concat(Object.keys(I.modules)),M=j.reduce(function(F,B){var L=q.import("modules/"+B);return L==null?N.error("Cannot load "+B+" module. Are you sure you registered it?"):F[B]=L.DEFAULTS||{},F},{});return I.modules!=null&&I.modules.toolbar&&I.modules.toolbar.constructor!==Object&&(I.modules.toolbar={container:I.modules.toolbar}),I=(0,v.default)(!0,{},q.DEFAULTS,{modules:M},x,I),["bounds","container","scrollingContainer"].forEach(function(F){typeof I[F]=="string"&&(I[F]=document.querySelector(I[F]))}),I.modules=Object.keys(I.modules).reduce(function(F,B){return I.modules[B]&&(F[B]=I.modules[B]),F},{}),I}function K(z,I,x,j){if(this.options.strict&&!this.isEnabled()&&I===t.default.sources.USER)return new g.default;var M=x==null?null:this.getSelection(),F=this.editor.delta,B=z();if(M!=null&&(x===!0&&(x=M.index),j==null?M=Q(M,B,I):j!==0&&(M=Q(M,x,j,I)),this.setSelection(M,t.default.sources.SILENT)),B.length()>0){var L,H=[t.default.events.TEXT_CHANGE,B,F,I];if((L=this.emitter).emit.apply(L,[t.default.events.EDITOR_CHANGE].concat(H)),I!==t.default.sources.SILENT){var $;($=this.emitter).emit.apply($,H)}}return B}function G(z,I,x,j,M){var F={};return typeof z.index=="number"&&typeof z.length=="number"?typeof I!="number"?(M=j,j=x,x=I,I=z.length,z=z.index):(I=z.length,z=z.index):typeof I!="number"&&(M=j,j=x,x=I,I=0),(typeof x>"u"?"undefined":O(x))==="object"?(F=x,M=j):typeof x=="string"&&(j!=null?F[x]=j:M=x),M=M||t.default.sources.API,[z,I,F,M]}function Q(z,I,x,j){if(z==null)return null;var M=void 0,F=void 0;if(I instanceof g.default){var B=[z.index,z.index+z.length].map(function(V){return I.transformPosition(V,j!==t.default.sources.USER)}),L=b(B,2);M=L[0],F=L[1]}else{var H=[z.index,z.index+z.length].map(function(V){return V<I||V===I&&j===t.default.sources.USER?V:x>=0?V+x:Math.max(I,V+x)}),$=b(H,2);M=$[0],F=$[1]}return new o.Range(M,F-M)}d.expandConfig=D,d.overload=G,d.default=q},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function a(i,o){for(var h=0;h<o.length;h++){var n=o[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,o,h){return o&&a(i.prototype,o),h&&a(i,h),i}}(),b=function a(i,o,h){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,o);if(n===void 0){var v=Object.getPrototypeOf(i);return v===null?void 0:a(v,o,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},_=s(7),y=r(_),g=s(0),c=r(g);function r(a){return a&&a.__esModule?a:{default:a}}function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function f(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var l=function(a){f(i,a);function i(){return e(this,i),t(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return O(i,[{key:"formatAt",value:function(h,n,v,S){if(i.compare(this.statics.blotName,v)<0&&c.default.query(v,c.default.Scope.BLOT)){var w=this.isolate(h,n);S&&w.wrap(v,S)}else b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"formatAt",this).call(this,h,n,v,S)}},{key:"optimize",value:function(h){if(b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"optimize",this).call(this,h),this.parent instanceof i&&i.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(h,n){var v=i.order.indexOf(h),S=i.order.indexOf(n);return v>=0||S>=0?v-S:h===n?0:h<n?-1:1}}]),i}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,y.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],d.default=l},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(0),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(e){c(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(b.default.Text);d.default=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function o(h,n){for(var v=0;v<n.length;v++){var S=n[v];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,S.key,S)}}return function(h,n,v){return n&&o(h.prototype,n),v&&o(h,v),h}}(),b=function o(h,n,v){h===null&&(h=Function.prototype);var S=Object.getOwnPropertyDescriptor(h,n);if(S===void 0){var w=Object.getPrototypeOf(h);return w===null?void 0:o(w,n,v)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(v)}},_=s(54),y=r(_),g=s(10),c=r(g);function r(o){return o&&o.__esModule?o:{default:o}}function e(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function t(o,h){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:o}function f(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(o,h):o.__proto__=h)}var l=(0,c.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(o){document.addEventListener(o,function(){for(var h=arguments.length,n=Array(h),v=0;v<h;v++)n[v]=arguments[v];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var w;(w=S.__quill.emitter).handleDOM.apply(w,n)}})})});var i=function(o){f(h,o);function h(){e(this,h);var n=t(this,(h.__proto__||Object.getPrototypeOf(h)).call(this));return n.listeners={},n.on("error",l.error),n}return O(h,[{key:"emit",value:function(){l.log.apply(l,arguments),b(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(v){for(var S=arguments.length,w=Array(S>1?S-1:0),T=1;T<S;T++)w[T-1]=arguments[T];(this.listeners[v.type]||[]).forEach(function(R){var A=R.node,p=R.handler;(v.target===A||A.contains(v.target))&&p.apply(void 0,[v].concat(w))})}},{key:"listenDOM",value:function(v,S,w){this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push({node:S,handler:w})}}]),h}(y.default);i.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"},i.sources={API:"api",SILENT:"silent",USER:"user"},d.default=i},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});function O(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var b=function _(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O(this,_),this.quill=y,this.options=g};b.DEFAULTS={},d.default=b},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=["error","warn","log","info"],b="warn";function _(g){if(O.indexOf(g)<=O.indexOf(b)){for(var c,r=arguments.length,e=Array(r>1?r-1:0),t=1;t<r;t++)e[t-1]=arguments[t];(c=console)[g].apply(c,e)}}function y(g){return O.reduce(function(c,r){return c[r]=_.bind(console,r,g),c},{})}_.level=y.level=function(g){b=g},d.default=y},function(m,d,s){var O=Array.prototype.slice,b=s(52),_=s(53),y=m.exports=function(e,t,f){return f||(f={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?f.strict?e===t:e==t:r(e,t,f)};function g(e){return e==null}function c(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function r(e,t,f){var l,a;if(g(e)||g(t)||e.prototype!==t.prototype)return!1;if(_(e))return _(t)?(e=O.call(e),t=O.call(t),y(e,t,f)):!1;if(c(e)){if(!c(t)||e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var i=b(e),o=b(t)}catch{return!1}if(i.length!=o.length)return!1;for(i.sort(),o.sort(),l=i.length-1;l>=0;l--)if(i[l]!=o[l])return!1;for(l=i.length-1;l>=0;l--)if(a=i[l],!y(e[a],t[a],f))return!1;return typeof e==typeof t}},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(1),b=function(){function _(y,g,c){c===void 0&&(c={}),this.attrName=y,this.keyName=g;var r=O.Scope.TYPE&O.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&O.Scope.LEVEL|r:this.scope=O.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return _.keys=function(y){return[].map.call(y.attributes,function(g){return g.name})},_.prototype.add=function(y,g){return this.canAdd(y,g)?(y.setAttribute(this.keyName,g),!0):!1},_.prototype.canAdd=function(y,g){var c=O.query(y,O.Scope.BLOT&(this.scope|O.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof g=="string"?this.whitelist.indexOf(g.replace(/["']/g,""))>-1:this.whitelist.indexOf(g)>-1},_.prototype.remove=function(y){y.removeAttribute(this.keyName)},_.prototype.value=function(y){var g=y.getAttribute(this.keyName);return this.canAdd(y,g)&&g?g:""},_}();d.default=b},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.Code=void 0;var O=function(){function T(R,A){var p=[],E=!0,N=!1,q=void 0;try{for(var D=R[Symbol.iterator](),K;!(E=(K=D.next()).done)&&(p.push(K.value),!(A&&p.length===A));E=!0);}catch(G){N=!0,q=G}finally{try{!E&&D.return&&D.return()}finally{if(N)throw q}}return p}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return T(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function T(R,A){for(var p=0;p<A.length;p++){var E=A[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(R,E.key,E)}}return function(R,A,p){return A&&T(R.prototype,A),p&&T(R,p),R}}(),_=function T(R,A,p){R===null&&(R=Function.prototype);var E=Object.getOwnPropertyDescriptor(R,A);if(E===void 0){var N=Object.getPrototypeOf(R);return N===null?void 0:T(N,A,p)}else{if("value"in E)return E.value;var q=E.get;return q===void 0?void 0:q.call(p)}},y=s(2),g=o(y),c=s(0),r=o(c),e=s(4),t=o(e),f=s(6),l=o(f),a=s(7),i=o(a);function o(T){return T&&T.__esModule?T:{default:T}}function h(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function n(T,R){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:T}function v(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(T,R):T.__proto__=R)}var S=function(T){v(R,T);function R(){return h(this,R),n(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return R}(l.default);S.blotName="code",S.tagName="CODE";var w=function(T){v(R,T);function R(){return h(this,R),n(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return b(R,[{key:"delta",value:function(){var p=this,E=this.domNode.textContent;return E.endsWith(` `)&&(E=E.slice(0,-1)),E.split(` `).reduce(function(N,q){return N.insert(q).insert(` `,p.formats())},new g.default)}},{key:"format",value:function(p,E){if(!(p===this.statics.blotName&&E)){var N=this.descendant(i.default,this.length()-1),q=O(N,1),D=q[0];D!=null&&D.deleteAt(D.length()-1,1),_(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"format",this).call(this,p,E)}}},{key:"formatAt",value:function(p,E,N,q){if(E!==0&&!(r.default.query(N,r.default.Scope.BLOCK)==null||N===this.statics.blotName&&q===this.statics.formats(this.domNode))){var D=this.newlineIndex(p);if(!(D<0||D>=p+E)){var K=this.newlineIndex(p,!0)+1,G=D-K+1,Q=this.isolate(K,G),z=Q.next;Q.format(N,q),z instanceof R&&z.formatAt(0,p-K+E-G,N,q)}}}},{key:"insertAt",value:function(p,E,N){if(N==null){var q=this.descendant(i.default,p),D=O(q,2),K=D[0],G=D[1];K.insertAt(G,E)}}},{key:"length",value:function(){var p=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?p:p+1}},{key:"newlineIndex",value:function(p){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(E)return this.domNode.textContent.slice(0,p).lastIndexOf(` `);var N=this.domNode.textContent.slice(p).indexOf(` `);return N>-1?p+N:-1}},{key:"optimize",value:function(p){this.domNode.textContent.endsWith(` `)||this.appendChild(r.default.create("text",` `)),_(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,p);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===E.statics.formats(E.domNode)&&(E.optimize(p),E.moveChildren(this),E.remove())}},{key:"replace",value:function(p){_(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"replace",this).call(this,p),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(E){var N=r.default.find(E);N==null?E.parentNode.removeChild(E):N instanceof r.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(p){var E=_(R.__proto__||Object.getPrototypeOf(R),"create",this).call(this,p);return E.setAttribute("spellcheck",!1),E}},{key:"formats",value:function(){return!0}}]),R}(t.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",d.Code=S,d.default=w},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},b=function(){function z(I,x){var j=[],M=!0,F=!1,B=void 0;try{for(var L=I[Symbol.iterator](),H;!(M=(H=L.next()).done)&&(j.push(H.value),!(x&&j.length===x));M=!0);}catch($){F=!0,B=$}finally{try{!M&&L.return&&L.return()}finally{if(F)throw B}}return j}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return z(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function z(I,x){for(var j=0;j<x.length;j++){var M=x[j];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(I,M.key,M)}}return function(I,x,j){return x&&z(I.prototype,x),j&&z(I,j),I}}(),y=s(2),g=E(y),c=s(20),r=E(c),e=s(0),t=E(e),f=s(13),l=E(f),a=s(24),i=E(a),o=s(4),h=E(o),n=s(16),v=E(n),S=s(21),w=E(S),T=s(11),R=E(T),A=s(3),p=E(A);function E(z){return z&&z.__esModule?z:{default:z}}function N(z,I,x){return I in z?Object.defineProperty(z,I,{value:x,enumerable:!0,configurable:!0,writable:!0}):z[I]=x,z}function q(z,I){if(!(z instanceof I))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,K=function(){function z(I){q(this,z),this.scroll=I,this.delta=this.getDelta()}return _(z,[{key:"applyDelta",value:function(x){var j=this,M=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),x=Q(x),x.reduce(function(B,L){var H=L.retain||L.delete||L.insert.length||1,$=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var V=L.insert;V.endsWith(` `)&&M&&(M=!1,V=V.slice(0,-1)),B>=F&&!V.endsWith(` `)&&(M=!0),j.scroll.insertAt(B,V);var X=j.scroll.line(B),te=b(X,2),ie=te[0],ae=te[1],fe=(0,p.default)({},(0,o.bubbleFormats)(ie));if(ie instanceof h.default){var he=ie.descendant(t.default.Leaf,ae),me=b(he,1),ge=me[0];fe=(0,p.default)(fe,(0,o.bubbleFormats)(ge))}$=r.default.attributes.diff(fe,$)||{}}else if(O(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return B;j.scroll.insertAt(B,W,L.insert[W])}F+=H}return Object.keys($).forEach(function(Y){j.scroll.formatAt(B,H,Y,$[Y])}),B+H},0),x.reduce(function(B,L){return typeof L.delete=="number"?(j.scroll.deleteAt(B,L.delete),B):B+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(x)}},{key:"deleteText",value:function(x,j){return this.scroll.deleteAt(x,j),this.update(new g.default().retain(x).delete(j))}},{key:"formatLine",value:function(x,j){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(B){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[B])){var L=M.scroll.lines(x,Math.max(j,1)),H=j;L.forEach(function($){var V=$.length();if(!($ instanceof l.default))$.format(B,F[B]);else{var X=x-$.offset(M.scroll),te=$.newlineIndex(X+H)-X+1;$.formatAt(X,te,B,F[B])}H-=V})}}),this.scroll.optimize(),this.update(new g.default().retain(x).retain(j,(0,w.default)(F)))}},{key:"formatText",value:function(x,j){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(B){M.scroll.formatAt(x,j,B,F[B])}),this.update(new g.default().retain(x).retain(j,(0,w.default)(F)))}},{key:"getContents",value:function(x,j){return this.delta.slice(x,x+j)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(x,j){return x.concat(j.delta())},new g.default)}},{key:"getFormat",value:function(x){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],F=[];j===0?this.scroll.path(x).forEach(function(L){var H=b(L,1),$=H[0];$ instanceof h.default?M.push($):$ instanceof t.default.Leaf&&F.push($)}):(M=this.scroll.lines(x,j),F=this.scroll.descendants(t.default.Leaf,x,j));var B=[M,F].map(function(L){if(L.length===0)return{};for(var H=(0,o.bubbleFormats)(L.shift());Object.keys(H).length>0;){var $=L.shift();if($==null)return H;H=G((0,o.bubbleFormats)($),H)}return H});return p.default.apply(p.default,B)}},{key:"getText",value:function(x,j){return this.getContents(x,j).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(x,j,M){return this.scroll.insertAt(x,j,M),this.update(new g.default().retain(x).insert(N({},j,M)))}},{key:"insertText",value:function(x,j){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j=j.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(x,j),Object.keys(F).forEach(function(B){M.scroll.formatAt(x,j.length,B,F[B])}),this.update(new g.default().retain(x).insert(j,(0,w.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var x=this.scroll.children.head;return x.statics.blotName!==h.default.blotName||x.children.length>1?!1:x.children.head instanceof v.default}},{key:"removeFormat",value:function(x,j){var M=this.getText(x,j),F=this.scroll.line(x+j),B=b(F,2),L=B[0],H=B[1],$=0,V=new g.default;L!=null&&(L instanceof l.default?$=L.newlineIndex(H)-H+1:$=L.length()-H,V=L.delta().slice(H,H+$-1).insert(` `));var X=this.getContents(x,j+$),te=X.diff(new g.default().insert(M).concat(V)),ie=new g.default().retain(x).concat(te);return this.applyDelta(ie)}},{key:"update",value:function(x){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(j.length===1&&j[0].type==="characterData"&&j[0].target.data.match(D)&&t.default.find(j[0].target)){var B=t.default.find(j[0].target),L=(0,o.bubbleFormats)(B),H=B.offset(this.scroll),$=j[0].oldValue.replace(i.default.CONTENTS,""),V=new g.default().insert($),X=new g.default().insert(B.value()),te=new g.default().retain(H).concat(V.diff(X,M));x=te.reduce(function(ie,ae){return ae.insert?ie.insert(ae.insert,L):ie.push(ae)},new g.default),this.delta=F.compose(x)}else this.delta=this.getDelta(),(!x||!(0,R.default)(F.compose(x),this.delta))&&(x=F.diff(this.delta,M));return x}}]),z}();function G(z,I){return Object.keys(I).reduce(function(x,j){return z[j]==null||(I[j]===z[j]?x[j]=I[j]:Array.isArray(I[j])?I[j].indexOf(z[j])<0&&(x[j]=I[j].concat([z[j]])):x[j]=[I[j],z[j]]),x},{})}function Q(z){return z.reduce(function(I,x){if(x.insert===1){var j=(0,w.default)(x.attributes);return delete j.image,I.insert({image:x.attributes.image},j)}if(x.attributes!=null&&(x.attributes.list===!0||x.attributes.bullet===!0)&&(x=(0,w.default)(x),x.attributes.list?x.attributes.list="ordered":(x.attributes.list="bullet",delete x.attributes.bullet)),typeof x.insert=="string"){var M=x.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return I.insert(M,x.attributes)}return I.push(x)},new g.default)}d.default=K},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.Range=void 0;var O=function(){function T(R,A){var p=[],E=!0,N=!1,q=void 0;try{for(var D=R[Symbol.iterator](),K;!(E=(K=D.next()).done)&&(p.push(K.value),!(A&&p.length===A));E=!0);}catch(G){N=!0,q=G}finally{try{!E&&D.return&&D.return()}finally{if(N)throw q}}return p}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return T(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function T(R,A){for(var p=0;p<A.length;p++){var E=A[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(R,E.key,E)}}return function(R,A,p){return A&&T(R.prototype,A),p&&T(R,p),R}}(),_=s(0),y=i(_),g=s(21),c=i(g),r=s(11),e=i(r),t=s(8),f=i(t),l=s(10),a=i(l);function i(T){return T&&T.__esModule?T:{default:T}}function o(T){if(Array.isArray(T)){for(var R=0,A=Array(T.length);R<T.length;R++)A[R]=T[R];return A}else return Array.from(T)}function h(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),v=function T(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;h(this,T),this.index=R,this.length=A},S=function(){function T(R,A){var p=this;h(this,T),this.emitter=A,this.scroll=R,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new v(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){p.mouseDown||setTimeout(p.update.bind(p,f.default.sources.USER),1)}),this.emitter.on(f.default.events.EDITOR_CHANGE,function(E,N){E===f.default.events.TEXT_CHANGE&&N.length()>0&&p.update(f.default.sources.SILENT)}),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,function(){if(p.hasFocus()){var E=p.getNativeRange();E!=null&&E.start.node!==p.cursor.textNode&&p.emitter.once(f.default.events.SCROLL_UPDATE,function(){try{p.setNativeRange(E.start.node,E.start.offset,E.end.node,E.end.offset)}catch{}})}}),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,function(E,N){if(N.range){var q=N.range,D=q.startNode,K=q.startOffset,G=q.endNode,Q=q.endOffset;p.setNativeRange(D,K,G,Q)}}),this.update(f.default.sources.SILENT)}return b(T,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var p=A.cursor.restore();if(!p)return;setTimeout(function(){A.setNativeRange(p.startNode,p.startOffset,p.endNode,p.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(f.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,p){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var E=this.getNativeRange();if(!(E==null||!E.native.collapsed||y.default.query(A,y.default.Scope.BLOCK))){if(E.start.node!==this.cursor.textNode){var N=y.default.find(E.start.node,!1);if(N==null)return;if(N instanceof y.default.Leaf){var q=N.split(E.start.offset);N.parent.insertBefore(this.cursor,q)}else N.insertBefore(this.cursor,E.start.node);this.cursor.attach()}this.cursor.format(A,p),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=this.scroll.length();A=Math.min(A,E-1),p=Math.min(A+p,E-1)-A;var N=void 0,q=this.scroll.leaf(A),D=O(q,2),K=D[0],G=D[1];if(K==null)return null;var Q=K.position(G,!0),z=O(Q,2);N=z[0],G=z[1];var I=document.createRange();if(p>0){I.setStart(N,G);var x=this.scroll.leaf(A+p),j=O(x,2);if(K=j[0],G=j[1],K==null)return null;var M=K.position(G,!0),F=O(M,2);return N=F[0],G=F[1],I.setEnd(N,G),I.getBoundingClientRect()}else{var B="left",L=void 0;return N instanceof Text?(G<N.data.length?(I.setStart(N,G),I.setEnd(N,G+1)):(I.setStart(N,G-1),I.setEnd(N,G),B="right"),L=I.getBoundingClientRect()):(L=K.domNode.getBoundingClientRect(),G>0&&(B="right")),{bottom:L.top+L.height,height:L.height,left:L[B],right:L[B],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var p=A.getRangeAt(0);if(p==null)return null;var E=this.normalizeNative(p);return n.info("getNativeRange",E),E}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var p=this.normalizedToRange(A);return[p,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var p=this,E=[[A.start.node,A.start.offset]];A.native.collapsed||E.push([A.end.node,A.end.offset]);var N=E.map(function(K){var G=O(K,2),Q=G[0],z=G[1],I=y.default.find(Q,!0),x=I.offset(p.scroll);return z===0?x:I instanceof y.default.Container?x+I.length():x+I.index(Q,z)}),q=Math.min(Math.max.apply(Math,o(N)),this.scroll.length()-1),D=Math.min.apply(Math,[q].concat(o(N)));return new v(D,q-D)}},{key:"normalizeNative",value:function(A){if(!w(this.root,A.startContainer)||!A.collapsed&&!w(this.root,A.endContainer))return null;var p={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[p.start,p.end].forEach(function(E){for(var N=E.node,q=E.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>q)N=N.childNodes[q],q=0;else if(N.childNodes.length===q)N=N.lastChild,q=N instanceof Text?N.data.length:N.childNodes.length+1;else break;E.node=N,E.offset=q}),p}},{key:"rangeToNative",value:function(A){var p=this,E=A.collapsed?[A.index]:[A.index,A.index+A.length],N=[],q=this.scroll.length();return E.forEach(function(D,K){D=Math.min(q-1,D);var G=void 0,Q=p.scroll.leaf(D),z=O(Q,2),I=z[0],x=z[1],j=I.position(x,K!==0),M=O(j,2);G=M[0],x=M[1],N.push(G,x)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(A){var p=this.lastRange;if(p!=null){var E=this.getBounds(p.index,p.length);if(E!=null){var N=this.scroll.length()-1,q=this.scroll.line(Math.min(p.index,N)),D=O(q,1),K=D[0],G=K;if(p.length>0){var Q=this.scroll.line(Math.min(p.index+p.length,N)),z=O(Q,1);G=z[0]}if(!(K==null||G==null)){var I=A.getBoundingClientRect();E.top<I.top?A.scrollTop-=I.top-E.top:E.bottom>I.bottom&&(A.scrollTop+=E.bottom-I.bottom)}}}}},{key:"setNativeRange",value:function(A,p){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",A,p,E,N),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||E.parentNode==null))){var D=document.getSelection();if(D!=null)if(A!=null){this.hasFocus()||this.root.focus();var K=(this.getNativeRange()||{}).native;if(K==null||q||A!==K.startContainer||p!==K.startOffset||E!==K.endContainer||N!==K.endOffset){A.tagName=="BR"&&(p=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),E.tagName=="BR"&&(N=[].indexOf.call(E.parentNode.childNodes,E),E=E.parentNode);var G=document.createRange();G.setStart(A,p),G.setEnd(E,N),D.removeAllRanges(),D.addRange(G)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.default.sources.API;if(typeof p=="string"&&(E=p,p=!1),n.info("setRange",A),A!=null){var N=this.rangeToNative(A);this.setNativeRange.apply(this,o(N).concat([p]))}else this.setNativeRange(null);this.update(E)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.default.sources.USER,p=this.lastRange,E=this.getRange(),N=O(E,2),q=N[0],D=N[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(p,this.lastRange)){var K;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var G=[f.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(p),A];if((K=this.emitter).emit.apply(K,[f.default.events.EDITOR_CHANGE].concat(G)),A!==f.default.sources.SILENT){var Q;(Q=this.emitter).emit.apply(Q,G)}}}}]),T}();function w(T,R){try{R.parentNode}catch{return!1}return R instanceof Text&&(R=R.parentNode),T.contains(R)}d.Range=v,d.default=S},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function f(l,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,a,i){return a&&f(l.prototype,a),i&&f(l,i),l}}(),b=function f(l,a,i){l===null&&(l=Function.prototype);var o=Object.getOwnPropertyDescriptor(l,a);if(o===void 0){var h=Object.getPrototypeOf(l);return h===null?void 0:f(h,a,i)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(i)}},_=s(0),y=g(_);function g(f){return f&&f.__esModule?f:{default:f}}function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function r(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function e(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var t=function(f){e(l,f);function l(){return c(this,l),r(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return O(l,[{key:"insertInto",value:function(i,o){i.children.length===0?b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,i,o):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(y.default.Embed);t.blotName="break",t.tagName="BR",d.default=t},function(m,d,s){var O=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var f in t)t.hasOwnProperty(f)&&(e[f]=t[f])};return function(e,t){r(e,t);function f(){this.constructor=e}e.prototype=t===null?Object.create(t):(f.prototype=t.prototype,new f)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(44),_=s(30),y=s(1),g=function(r){O(e,r);function e(t){var f=r.call(this,t)||this;return f.build(),f}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new b.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var l=c(f);t.insertBefore(l,t.children.head||void 0)}catch(a){if(a instanceof y.ParchmentError)return;throw a}})},e.prototype.deleteAt=function(t,f){if(t===0&&f===this.length())return this.remove();this.children.forEachAt(t,f,function(l,a,i){l.deleteAt(a,i)})},e.prototype.descendant=function(t,f){var l=this.children.find(f),a=l[0],i=l[1];return t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t?[a,i]:a instanceof e?a.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,f,l){f===void 0&&(f=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],i=l;return this.children.forEachAt(f,l,function(o,h,n){(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&a.push(o),o instanceof e&&(a=a.concat(o.descendants(t,h,i))),i-=n}),a},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),r.prototype.detach.call(this)},e.prototype.formatAt=function(t,f,l,a){this.children.forEachAt(t,f,function(i,o,h){i.formatAt(o,h,l,a)})},e.prototype.insertAt=function(t,f,l){var a=this.children.find(t),i=a[0],o=a[1];if(i)i.insertAt(o,f,l);else{var h=l==null?y.create("text",f):y.create(f,l);this.appendChild(h)}},e.prototype.insertBefore=function(t,f){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return t instanceof l}))throw new y.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,f)},e.prototype.length=function(){return this.children.reduce(function(t,f){return t+f.length()},0)},e.prototype.moveChildren=function(t,f){this.children.forEach(function(l){t.insertBefore(l,f)})},e.prototype.optimize=function(t){if(r.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var f=y.create(this.statics.defaultChild);this.appendChild(f),f.optimize(t)}else this.remove()},e.prototype.path=function(t,f){f===void 0&&(f=!1);var l=this.children.find(t,f),a=l[0],i=l[1],o=[[this,t]];return a instanceof e?o.concat(a.path(i,f)):(a!=null&&o.push([a,i]),o)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),r.prototype.replace.call(this,t)},e.prototype.split=function(t,f){if(f===void 0&&(f=!1),!f){if(t===0)return this;if(t===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(t,this.length(),function(a,i,o){a=a.split(i,f),l.appendChild(a)}),l},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,f){var l=this,a=[],i=[];t.forEach(function(o){o.target===l.domNode&&o.type==="childList"&&(a.push.apply(a,o.addedNodes),i.push.apply(i,o.removedNodes))}),i.forEach(function(o){if(!(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var h=y.find(o);h!=null&&(h.domNode.parentNode==null||h.domNode.parentNode===l.domNode)&&h.detach()}}),a.filter(function(o){return o.parentNode==l.domNode}).sort(function(o,h){return o===h?0:o.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(o){var h=null;o.nextSibling!=null&&(h=y.find(o.nextSibling));var n=c(o);(n.next!=h||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,h||void 0))})},e}(_.default);function c(r){var e=y.find(r);if(e==null)try{e=y.create(r)}catch{e=y.create(y.Scope.INLINE),[].slice.call(r.childNodes).forEach(function(f){e.domNode.appendChild(f)}),r.parentNode&&r.parentNode.replaceChild(e.domNode,r),e.attach()}return e}d.default=g},function(m,d,s){var O=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var f in t)t.hasOwnProperty(f)&&(e[f]=t[f])};return function(e,t){r(e,t);function f(){this.constructor=e}e.prototype=t===null?Object.create(t):(f.prototype=t.prototype,new f)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(12),_=s(31),y=s(17),g=s(1),c=function(r){O(e,r);function e(t){var f=r.call(this,t)||this;return f.attributes=new _.default(f.domNode),f}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,f){var l=g.query(t);l instanceof b.default?this.attributes.attribute(l,f):f&&l!=null&&(t!==this.statics.blotName||this.formats()[t]!==f)&&this.replaceWith(t,f)},e.prototype.formats=function(){var t=this.attributes.values(),f=this.statics.formats(this.domNode);return f!=null&&(t[this.statics.blotName]=f),t},e.prototype.replaceWith=function(t,f){var l=r.prototype.replaceWith.call(this,t,f);return this.attributes.copy(l),l},e.prototype.update=function(t,f){var l=this;r.prototype.update.call(this,t,f),t.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,f){var l=r.prototype.wrap.call(this,t,f);return l instanceof e&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},e}(y.default);d.default=c},function(m,d,s){var O=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var e in r)r.hasOwnProperty(e)&&(c[e]=r[e])};return function(c,r){g(c,r);function e(){this.constructor=c}c.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(30),_=s(1),y=function(g){O(c,g);function c(){return g!==null&&g.apply(this,arguments)||this}return c.value=function(r){return!0},c.prototype.index=function(r,e){return this.domNode===r||this.domNode.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},c.prototype.position=function(r,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return r>0&&(t+=1),[this.parent.domNode,t]},c.prototype.value=function(){var r;return r={},r[this.statics.blotName]=this.statics.value(this.domNode)||!0,r},c.scope=_.Scope.INLINE_BLOT,c}(b.default);d.default=y},function(m,d,s){var O=s(11),b=s(3),_={attributes:{compose:function(g,c,r){typeof g!="object"&&(g={}),typeof c!="object"&&(c={});var e=b(!0,{},c);r||(e=Object.keys(e).reduce(function(f,l){return e[l]!=null&&(f[l]=e[l]),f},{}));for(var t in g)g[t]!==void 0&&c[t]===void 0&&(e[t]=g[t]);return Object.keys(e).length>0?e:void 0},diff:function(g,c){typeof g!="object"&&(g={}),typeof c!="object"&&(c={});var r=Object.keys(g).concat(Object.keys(c)).reduce(function(e,t){return O(g[t],c[t])||(e[t]=c[t]===void 0?null:c[t]),e},{});return Object.keys(r).length>0?r:void 0},transform:function(g,c,r){if(typeof g!="object")return c;if(typeof c=="object"){if(!r)return c;var e=Object.keys(c).reduce(function(t,f){return g[f]===void 0&&(t[f]=c[f]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(g){return new y(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function y(g){this.ops=g,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(g){g||(g=1/0);var c=this.ops[this.index];if(c){var r=this.offset,e=_.length(c);if(g>=e-r?(g=e-r,this.index+=1,this.offset=0):this.offset+=g,typeof c.delete=="number")return{delete:g};var t={};return c.attributes&&(t.attributes=c.attributes),typeof c.retain=="number"?t.retain=g:typeof c.insert=="string"?t.insert=c.insert.substr(r,g):t.insert=c.insert,t}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?_.length(this.ops[this.index])-this.offset:1/0},y.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"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,c=this.index,r=this.next(),e=this.ops.slice(this.index);return this.offset=g,this.index=c,[r].concat(e)}else return[]},m.exports=_},function(m,d){var s=function(){function O(l,a){return a!=null&&l instanceof a}var b;try{b=Map}catch{b=function(){}}var _;try{_=Set}catch{_=function(){}}var y;try{y=Promise}catch{y=function(){}}function g(l,a,i,o,h){typeof a=="object"&&(i=a.depth,o=a.prototype,h=a.includeNonEnumerable,a=a.circular);var n=[],v=[],S=typeof Pt<"u";typeof a>"u"&&(a=!0),typeof i>"u"&&(i=1/0);function w(T,R){if(T===null)return null;if(R===0)return T;var A,p;if(typeof T!="object")return T;if(O(T,b))A=new b;else if(O(T,_))A=new _;else if(O(T,y))A=new y(function(I,x){T.then(function(j){I(w(j,R-1))},function(j){x(w(j,R-1))})});else if(g.__isArray(T))A=[];else if(g.__isRegExp(T))A=new RegExp(T.source,f(T)),T.lastIndex&&(A.lastIndex=T.lastIndex);else if(g.__isDate(T))A=new Date(T.getTime());else{if(S&&Pt.isBuffer(T))return Pt.allocUnsafe?A=Pt.allocUnsafe(T.length):A=new Pt(T.length),T.copy(A),A;O(T,Error)?A=Object.create(T):typeof o>"u"?(p=Object.getPrototypeOf(T),A=Object.create(p)):(A=Object.create(o),p=o)}if(a){var E=n.indexOf(T);if(E!=-1)return v[E];n.push(T),v.push(A)}O(T,b)&&T.forEach(function(I,x){var j=w(x,R-1),M=w(I,R-1);A.set(j,M)}),O(T,_)&&T.forEach(function(I){var x=w(I,R-1);A.add(x)});for(var N in T){var q;p&&(q=Object.getOwnPropertyDescriptor(p,N)),!(q&&q.set==null)&&(A[N]=w(T[N],R-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(T),N=0;N<D.length;N++){var K=D[N],G=Object.getOwnPropertyDescriptor(T,K);G&&!G.enumerable&&!h||(A[K]=w(T[K],R-1),G.enumerable||Object.defineProperty(A,K,{enumerable:!1}))}if(h)for(var Q=Object.getOwnPropertyNames(T),N=0;N<Q.length;N++){var z=Q[N],G=Object.getOwnPropertyDescriptor(T,z);G&&G.enumerable||(A[z]=w(T[z],R-1),Object.defineProperty(A,z,{enumerable:!1}))}return A}return w(l,i)}g.clonePrototype=function(a){if(a===null)return null;var i=function(){};return i.prototype=a,new i};function c(l){return Object.prototype.toString.call(l)}g.__objToStr=c;function r(l){return typeof l=="object"&&c(l)==="[object Date]"}g.__isDate=r;function e(l){return typeof l=="object"&&c(l)==="[object Array]"}g.__isArray=e;function t(l){return typeof l=="object"&&c(l)==="[object RegExp]"}g.__isRegExp=t;function f(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return g.__getRegExpFlags=f,g}();typeof m=="object"&&m.exports&&(m.exports=s)},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function A(p,E){var N=[],q=!0,D=!1,K=void 0;try{for(var G=p[Symbol.iterator](),Q;!(q=(Q=G.next()).done)&&(N.push(Q.value),!(E&&N.length===E));q=!0);}catch(z){D=!0,K=z}finally{try{!q&&G.return&&G.return()}finally{if(D)throw K}}return N}return function(p,E){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return A(p,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function A(p,E){for(var N=0;N<E.length;N++){var q=E[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(p,q.key,q)}}return function(p,E,N){return E&&A(p.prototype,E),N&&A(p,N),p}}(),_=function A(p,E,N){p===null&&(p=Function.prototype);var q=Object.getOwnPropertyDescriptor(p,E);if(q===void 0){var D=Object.getPrototypeOf(p);return D===null?void 0:A(D,E,N)}else{if("value"in q)return q.value;var K=q.get;return K===void 0?void 0:K.call(N)}},y=s(0),g=n(y),c=s(8),r=n(c),e=s(4),t=n(e),f=s(16),l=n(f),a=s(13),i=n(a),o=s(25),h=n(o);function n(A){return A&&A.__esModule?A:{default:A}}function v(A,p){if(!(A instanceof p))throw new TypeError("Cannot call a class as a function")}function S(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 w(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)}function T(A){return A instanceof t.default||A instanceof e.BlockEmbed}var R=function(A){w(p,A);function p(E,N){v(this,p);var q=S(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,E));return q.emitter=N.emitter,Array.isArray(N.whitelist)&&(q.whitelist=N.whitelist.reduce(function(D,K){return D[K]=!0,D},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return b(p,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,q){var D=this.line(N),K=O(D,2),G=K[0],Q=K[1],z=this.line(N+q),I=O(z,1),x=I[0];if(_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,N,q),x!=null&&G!==x&&Q>0){if(G instanceof e.BlockEmbed||x instanceof e.BlockEmbed){this.optimize();return}if(G instanceof i.default){var j=G.newlineIndex(G.length(),!0);if(j>-1&&(G=G.split(j+1),G===x)){this.optimize();return}}else if(x instanceof i.default){var M=x.newlineIndex(0);M>-1&&x.split(M+1)}var F=x.children.head instanceof l.default?null:x.children.head;G.moveChildren(x,F),G.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,q,D,K){this.whitelist!=null&&!this.whitelist[D]||(_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,N,q,D,K),this.optimize())}},{key:"insertAt",value:function(N,q,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[q])){if(N>=this.length())if(D==null||g.default.query(q,g.default.Scope.BLOCK)==null){var K=g.default.create(this.statics.defaultChild);this.appendChild(K),D==null&&q.endsWith(` `)&&(q=q.slice(0,-1)),K.insertAt(0,q,D)}else{var G=g.default.create(q,D);this.appendChild(G)}else _(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,N,q,D);this.optimize()}}},{key:"insertBefore",value:function(N,q){if(N.statics.scope===g.default.Scope.INLINE_BLOT){var D=g.default.create(this.statics.defaultChild);D.appendChild(N),N=D}_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,N,q)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(T,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function K(G,Q,z){var I=[],x=z;return G.children.forEachAt(Q,z,function(j,M,F){T(j)?I.push(j):j instanceof g.default.Container&&(I=I.concat(K(j,M,x))),x-=F}),I};return D(this,N,q)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,N,q),N.length>0&&this.emitter.emit(r.default.events.SCROLL_OPTIMIZE,N,q))}},{key:"path",value:function(N){return _(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var q=r.default.sources.USER;typeof N=="string"&&(q=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(r.default.events.SCROLL_BEFORE_UPDATE,q,N),_(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(r.default.events.SCROLL_UPDATE,q,N)}}}]),p}(g.default.Scroll);R.blotName="scroll",R.className="ql-editor",R.tagName="DIV",R.defaultChild="block",R.allowedChildren=[t.default,e.BlockEmbed,h.default],d.default=R},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.SHORTKEY=d.default=void 0;var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},b=function(){function L(H,$){var V=[],X=!0,te=!1,ie=void 0;try{for(var ae=H[Symbol.iterator](),fe;!(X=(fe=ae.next()).done)&&(V.push(fe.value),!($&&V.length===$));X=!0);}catch(he){te=!0,ie=he}finally{try{!X&&ae.return&&ae.return()}finally{if(te)throw ie}}return V}return function(H,$){if(Array.isArray(H))return H;if(Symbol.iterator in Object(H))return L(H,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function L(H,$){for(var V=0;V<$.length;V++){var X=$[V];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(H,X.key,X)}}return function(H,$,V){return $&&L(H.prototype,$),V&&L(H,V),H}}(),y=s(21),g=A(y),c=s(11),r=A(c),e=s(3),t=A(e),f=s(2),l=A(f),a=s(20),i=A(a),o=s(0),h=A(o),n=s(5),v=A(n),S=s(10),w=A(S),T=s(9),R=A(T);function A(L){return L&&L.__esModule?L:{default:L}}function p(L,H,$){return H in L?Object.defineProperty(L,H,{value:$,enumerable:!0,configurable:!0,writable:!0}):L[H]=$,L}function E(L,H){if(!(L instanceof H))throw new TypeError("Cannot call a class as a function")}function N(L,H){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:L}function q(L,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);L.prototype=Object.create(H&&H.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(L,H):L.__proto__=H)}var D=(0,w.default)("quill:keyboard"),K=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",G=function(L){q(H,L),_(H,null,[{key:"match",value:function(V,X){return X=B(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(te){return!!X[te]!==V[te]&&X[te]!==null})?!1:X.key===(V.which||V.keyCode)}}]);function H($,V){E(this,H);var X=N(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,$,V));return X.bindings={},Object.keys(X.options.bindings).forEach(function(te){te==="list autofill"&&$.scroll.whitelist!=null&&!$.scroll.whitelist.list||X.options.bindings[te]&&X.addBinding(X.options.bindings[te])}),X.addBinding({key:H.keys.ENTER,shiftKey:null},j),X.addBinding({key:H.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:H.keys.BACKSPACE},{collapsed:!0},z),X.addBinding({key:H.keys.DELETE},{collapsed:!0},I)):(X.addBinding({key:H.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},z),X.addBinding({key:H.keys.DELETE},{collapsed:!0,suffix:/^.?$/},I)),X.addBinding({key:H.keys.BACKSPACE},{collapsed:!1},x),X.addBinding({key:H.keys.DELETE},{collapsed:!1},x),X.addBinding({key:H.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},z),X.listen(),X}return _(H,[{key:"addBinding",value:function(V){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=B(V);if(ie==null||ie.key==null)return D.warn("Attempted to add invalid keyboard binding",ie);typeof X=="function"&&(X={handler:X}),typeof te=="function"&&(te={handler:te}),ie=(0,t.default)(ie,X,te),this.bindings[ie.key]=this.bindings[ie.key]||[],this.bindings[ie.key].push(ie)}},{key:"listen",value:function(){var V=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var te=X.which||X.keyCode,ie=(V.bindings[te]||[]).filter(function(de){return H.match(X,de)});if(ie.length!==0){var ae=V.quill.getSelection();if(!(ae==null||!V.quill.hasFocus())){var fe=V.quill.getLine(ae.index),he=b(fe,2),me=he[0],ge=he[1],W=V.quill.getLeaf(ae.index),Y=b(W,2),ee=Y[0],ne=Y[1],J=ae.length===0?[ee,ne]:V.quill.getLeaf(ae.index+ae.length),se=b(J,2),oe=se[0],le=se[1],Se=ee instanceof h.default.Text?ee.value().slice(0,ne):"",Ee=oe instanceof h.default.Text?oe.value().slice(le):"",pe={collapsed:ae.length===0,empty:ae.length===0&&me.length()<=1,format:V.quill.getFormat(ae),offset:ge,prefix:Se,suffix:Ee},Je=ie.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(je){return pe.format[je]==null}))return!1}else if(O(de.format)==="object"&&!Object.keys(de.format).every(function(je){return de.format[je]===!0?pe.format[je]!=null:de.format[je]===!1?pe.format[je]==null:(0,r.default)(de.format[je],pe.format[je])}))return!1;return de.prefix!=null&&!de.prefix.test(pe.prefix)||de.suffix!=null&&!de.suffix.test(pe.suffix)?!1:de.handler.call(V,ae,pe)!==!0});Je&&X.preventDefault()}}}})}}]),H}(R.default);G.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},G.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:G.keys.TAB,format:["blockquote","indent","list"],handler:function(H,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","+1",v.default.sources.USER)}},outdent:{key:G.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(H,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","-1",v.default.sources.USER)}},"outdent backspace":{key:G.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(H,$){$.format.indent!=null?this.quill.format("indent","-1",v.default.sources.USER):$.format.list!=null&&this.quill.format("list",!1,v.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:G.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(H){this.quill.deleteText(H.index-1,1,v.default.sources.USER)}},tab:{key:G.keys.TAB,handler:function(H){this.quill.history.cutoff();var $=new l.default().retain(H.index).delete(H.length).insert(" ");this.quill.updateContents($,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(H.index+1,v.default.sources.SILENT)}},"list empty enter":{key:G.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(H,$){this.quill.format("list",!1,v.default.sources.USER),$.format.indent&&this.quill.format("indent",!1,v.default.sources.USER)}},"checklist enter":{key:G.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(H){var $=this.quill.getLine(H.index),V=b($,2),X=V[0],te=V[1],ie=(0,t.default)({},X.formats(),{list:"checked"}),ae=new l.default().retain(H.index).insert(` `,ie).retain(X.length()-te-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,v.default.sources.USER),this.quill.setSelection(H.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:G.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(H,$){var V=this.quill.getLine(H.index),X=b(V,2),te=X[0],ie=X[1],ae=new l.default().retain(H.index).insert(` `,$.format).retain(te.length()-ie-1).retain(1,{header:null});this.quill.updateContents(ae,v.default.sources.USER),this.quill.setSelection(H.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(H,$){var V=$.prefix.length,X=this.quill.getLine(H.index),te=b(X,2),ie=te[0],ae=te[1];if(ae>V)return!0;var fe=void 0;switch($.prefix.trim()){case"[]":case"[ ]":fe="unchecked";break;case"[x]":fe="checked";break;case"-":case"*":fe="bullet";break;default:fe="ordered"}this.quill.insertText(H.index," ",v.default.sources.USER),this.quill.history.cutoff();var he=new l.default().retain(H.index-ae).delete(V+1).retain(ie.length()-2-ae).retain(1,{list:fe});this.quill.updateContents(he,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(H.index-V,v.default.sources.SILENT)}},"code exit":{key:G.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(H){var $=this.quill.getLine(H.index),V=b($,2),X=V[0],te=V[1],ie=new l.default().retain(H.index+X.length()-te-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,v.default.sources.USER)}},"embed left":Q(G.keys.LEFT,!1),"embed left shift":Q(G.keys.LEFT,!0),"embed right":Q(G.keys.RIGHT,!1),"embed right shift":Q(G.keys.RIGHT,!0)}};function Q(L,H){var $,V=L===G.keys.LEFT?"prefix":"suffix";return $={key:L,shiftKey:H,altKey:null},p($,V,/^$/),p($,"handler",function(te){var ie=te.index;L===G.keys.RIGHT&&(ie+=te.length+1);var ae=this.quill.getLeaf(ie),fe=b(ae,1),he=fe[0];return he instanceof h.default.Embed?(L===G.keys.LEFT?H?this.quill.setSelection(te.index-1,te.length+1,v.default.sources.USER):this.quill.setSelection(te.index-1,v.default.sources.USER):H?this.quill.setSelection(te.index,te.length+1,v.default.sources.USER):this.quill.setSelection(te.index+te.length+1,v.default.sources.USER),!1):!0}),$}function z(L,H){if(!(L.index===0||this.quill.getLength()<=1)){var $=this.quill.getLine(L.index),V=b($,1),X=V[0],te={};if(H.offset===0){var ie=this.quill.getLine(L.index-1),ae=b(ie,1),fe=ae[0];if(fe!=null&&fe.length()>1){var he=X.formats(),me=this.quill.getFormat(L.index-1,1);te=i.default.attributes.diff(he,me)||{}}}var ge=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(H.prefix)?2:1;this.quill.deleteText(L.index-ge,ge,v.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(L.index-ge,ge,te,v.default.sources.USER),this.quill.focus()}}function I(L,H){var $=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(H.suffix)?2:1;if(!(L.index>=this.quill.getLength()-$)){var V={},X=0,te=this.quill.getLine(L.index),ie=b(te,1),ae=ie[0];if(H.offset>=ae.length()-1){var fe=this.quill.getLine(L.index+1),he=b(fe,1),me=he[0];if(me){var ge=ae.formats(),W=this.quill.getFormat(L.index,1);V=i.default.attributes.diff(ge,W)||{},X=me.length()}}this.quill.deleteText(L.index,$,v.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(L.index+X-1,$,V,v.default.sources.USER)}}function x(L){var H=this.quill.getLines(L),$={};if(H.length>1){var V=H[0].formats(),X=H[H.length-1].formats();$=i.default.attributes.diff(X,V)||{}}this.quill.deleteText(L,v.default.sources.USER),Object.keys($).length>0&&this.quill.formatLine(L.index,1,$,v.default.sources.USER),this.quill.setSelection(L.index,v.default.sources.SILENT),this.quill.focus()}function j(L,H){var $=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var V=Object.keys(H.format).reduce(function(X,te){return h.default.query(te,h.default.Scope.BLOCK)&&!Array.isArray(H.format[te])&&(X[te]=H.format[te]),X},{});this.quill.insertText(L.index,` `,V,v.default.sources.USER),this.quill.setSelection(L.index+1,v.default.sources.SILENT),this.quill.focus(),Object.keys(H.format).forEach(function(X){V[X]==null&&(Array.isArray(H.format[X])||X!=="link"&&$.quill.format(X,H.format[X],v.default.sources.USER))})}function M(L){return{key:G.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function($){var V=h.default.query("code-block"),X=$.index,te=$.length,ie=this.quill.scroll.descendant(V,X),ae=b(ie,2),fe=ae[0],he=ae[1];if(fe!=null){var me=this.quill.getIndex(fe),ge=fe.newlineIndex(he,!0)+1,W=fe.newlineIndex(me+he+te),Y=fe.domNode.textContent.slice(ge,W).split(` `);he=0,Y.forEach(function(ee,ne){L?(fe.insertAt(ge+he,V.TAB),he+=V.TAB.length,ne===0?X+=V.TAB.length:te+=V.TAB.length):ee.startsWith(V.TAB)&&(fe.deleteAt(ge+he,V.TAB.length),he-=V.TAB.length,ne===0?X-=V.TAB.length:te-=V.TAB.length),he+=ee.length+1}),this.quill.update(v.default.sources.USER),this.quill.setSelection(X,te,v.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function($,V){this.quill.format(L,!V.format[L],v.default.sources.USER)}}}function B(L){if(typeof L=="string"||typeof L=="number")return B({key:L});if((typeof L>"u"?"undefined":O(L))==="object"&&(L=(0,g.default)(L,!1)),typeof L.key=="string")if(G.keys[L.key.toUpperCase()]!=null)L.key=G.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[K]=L.shortKey,delete L.shortKey),L}d.default=G,d.SHORTKEY=K},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function i(o,h){var n=[],v=!0,S=!1,w=void 0;try{for(var T=o[Symbol.iterator](),R;!(v=(R=T.next()).done)&&(n.push(R.value),!(h&&n.length===h));v=!0);}catch(A){S=!0,w=A}finally{try{!v&&T.return&&T.return()}finally{if(S)throw w}}return n}return function(o,h){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return i(o,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function i(o,h,n){o===null&&(o=Function.prototype);var v=Object.getOwnPropertyDescriptor(o,h);if(v===void 0){var S=Object.getPrototypeOf(o);return S===null?void 0:i(S,h,n)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(n)}},_=function(){function i(o,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(o,v.key,v)}}return function(o,h,n){return h&&i(o.prototype,h),n&&i(o,n),o}}(),y=s(0),g=e(y),c=s(7),r=e(c);function e(i){return i&&i.__esModule?i:{default:i}}function t(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function f(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function l(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var a=function(i){l(o,i),_(o,null,[{key:"value",value:function(){}}]);function o(h,n){t(this,o);var v=f(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,h));return v.selection=n,v.textNode=document.createTextNode(o.CONTENTS),v.domNode.appendChild(v.textNode),v._length=0,v}return _(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,v){if(this._length!==0)return b(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,n,v);for(var S=this,w=0;S!=null&&S.statics.scope!==g.default.Scope.BLOCK_BLOT;)w+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=o.CONTENTS.length,S.optimize(),S.formatAt(w,o.CONTENTS.length,n,v),this._length=0)}},{key:"index",value:function(n,v){return n===this.textNode?0:b(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,v)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){b(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,v=this.selection.getNativeRange(),S=void 0,w=void 0,T=void 0;if(v!=null&&v.start.node===n&&v.end.node===n){var R=[n,v.start.offset,v.end.offset];S=R[0],w=R[1],T=R[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==o.CONTENTS){var A=this.textNode.data.split(o.CONTENTS).join("");this.next instanceof r.default?(S=this.next.domNode,this.next.insertAt(0,A),this.textNode.data=o.CONTENTS):(this.textNode.data=A,this.parent.insertBefore(g.default.create(this.textNode),this),this.textNode=document.createTextNode(o.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var p=[w,T].map(function(N){return Math.max(0,Math.min(S.data.length,N-1))}),E=O(p,2);return w=E[0],T=E[1],{startNode:S,startOffset:w,endNode:S,endOffset:T}}}}},{key:"update",value:function(n,v){var S=this;if(n.some(function(T){return T.type==="characterData"&&T.target===S.textNode})){var w=this.restore();w&&(v.range=w)}}},{key:"value",value:function(){return""}}]),o}(g.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",d.default=a},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(0),b=g(O),_=s(4),y=g(_);function g(f){return f&&f.__esModule?f:{default:f}}function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function r(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function e(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var t=function(f){e(l,f);function l(){return c(this,l),r(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(b.default.Container);t.allowedChildren=[y.default,_.BlockEmbed,t],d.default=t},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.ColorStyle=d.ColorClass=d.ColorAttributor=void 0;var O=function(){function a(i,o){for(var h=0;h<o.length;h++){var n=o[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,o,h){return o&&a(i.prototype,o),h&&a(i,h),i}}(),b=function a(i,o,h){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,o);if(n===void 0){var v=Object.getPrototypeOf(i);return v===null?void 0:a(v,o,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},_=s(0),y=g(_);function g(a){return a&&a.__esModule?a:{default:a}}function c(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function r(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var t=function(a){e(i,a);function i(){return c(this,i),r(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return O(i,[{key:"value",value:function(h){var n=b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,h);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(v){return("00"+parseInt(v).toString(16)).slice(-2)}).join("")):n}}]),i}(y.default.Attributor.Style),f=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),l=new t("color","color",{scope:y.default.Scope.INLINE});d.ColorAttributor=t,d.ColorClass=f,d.ColorStyle=l},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.sanitize=d.default=void 0;var O=function(){function l(a,i){for(var o=0;o<i.length;o++){var h=i[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}return function(a,i,o){return i&&l(a.prototype,i),o&&l(a,o),a}}(),b=function l(a,i,o){a===null&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,i);if(h===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,o)}else{if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(o)}},_=s(6),y=g(_);function g(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function r(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return c(this,a),r(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return O(a,[{key:"format",value:function(o,h){if(o!==this.statics.blotName||!h)return b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,o,h);h=this.constructor.sanitize(h),this.domNode.setAttribute("href",h)}}],[{key:"create",value:function(o){var h=b(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,o);return o=this.sanitize(o),h.setAttribute("href",o),h.setAttribute("rel","noopener noreferrer"),h.setAttribute("target","_blank"),h}},{key:"formats",value:function(o){return o.getAttribute("href")}},{key:"sanitize",value:function(o){return f(o,this.PROTOCOL_WHITELIST)?o:this.SANITIZED_URL}}]),a}(y.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function f(l,a){var i=document.createElement("a");i.href=l;var o=i.href.slice(0,i.href.indexOf(":"));return a.indexOf(o)>-1}d.default=t,d.sanitize=f},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},b=function(){function a(i,o){for(var h=0;h<o.length;h++){var n=o[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,o,h){return o&&a(i.prototype,o),h&&a(i,h),i}}(),_=s(23),y=r(_),g=s(107),c=r(g);function r(a){return a&&a.__esModule?a:{default:a}}function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}var t=0;function f(a,i){a.setAttribute(i,a.getAttribute(i)!=="true")}var l=function(){function a(i){var o=this;e(this,a),this.select=i,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(){o.togglePicker()}),this.label.addEventListener("keydown",function(h){switch(h.keyCode){case y.default.keys.ENTER:o.togglePicker();break;case y.default.keys.ESCAPE:o.escape(),h.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return b(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),f(this.label,"aria-expanded"),f(this.options,"aria-hidden")}},{key:"buildItem",value:function(o){var h=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),o.hasAttribute("value")&&n.setAttribute("data-value",o.getAttribute("value")),o.textContent&&n.setAttribute("data-label",o.textContent),n.addEventListener("click",function(){h.selectItem(n,!0)}),n.addEventListener("keydown",function(v){switch(v.keyCode){case y.default.keys.ENTER:h.selectItem(n,!0),v.preventDefault();break;case y.default.keys.ESCAPE:h.escape(),v.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var o=document.createElement("span");return o.classList.add("ql-picker-label"),o.innerHTML=c.default,o.tabIndex="0",o.setAttribute("role","button"),o.setAttribute("aria-expanded","false"),this.container.appendChild(o),o}},{key:"buildOptions",value:function(){var o=this,h=document.createElement("span");h.classList.add("ql-picker-options"),h.setAttribute("aria-hidden","true"),h.tabIndex="-1",h.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",h.id),this.options=h,[].slice.call(this.select.options).forEach(function(n){var v=o.buildItem(n);h.appendChild(v),n.selected===!0&&o.selectItem(v)}),this.container.appendChild(h)}},{key:"buildPicker",value:function(){var o=this;[].slice.call(this.select.attributes).forEach(function(h){o.container.setAttribute(h.name,h.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var o=this;this.close(),setTimeout(function(){return o.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(o){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(o!==n&&(n!=null&&n.classList.remove("ql-selected"),o!=null&&(o.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(o.parentNode.children,o),o.hasAttribute("data-value")?this.label.setAttribute("data-value",o.getAttribute("data-value")):this.label.removeAttribute("data-value"),o.hasAttribute("data-label")?this.label.setAttribute("data-label",o.getAttribute("data-label")):this.label.removeAttribute("data-label"),h))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":O(Event))==="object"){var v=document.createEvent("Event");v.initEvent("change",!0,!0),this.select.dispatchEvent(v)}this.close()}}},{key:"update",value:function(){var o=void 0;if(this.select.selectedIndex>-1){var h=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];o=this.select.options[this.select.selectedIndex],this.selectItem(h)}else this.selectItem(null);var n=o!=null&&o!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();d.default=l},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(0),b=D(O),_=s(5),y=D(_),g=s(4),c=D(g),r=s(16),e=D(r),t=s(25),f=D(t),l=s(24),a=D(l),i=s(35),o=D(i),h=s(6),n=D(h),v=s(22),S=D(v),w=s(7),T=D(w),R=s(55),A=D(R),p=s(42),E=D(p),N=s(23),q=D(N);function D(K){return K&&K.__esModule?K:{default:K}}y.default.register({"blots/block":c.default,"blots/block/embed":g.BlockEmbed,"blots/break":e.default,"blots/container":f.default,"blots/cursor":a.default,"blots/embed":o.default,"blots/inline":n.default,"blots/scroll":S.default,"blots/text":T.default,"modules/clipboard":A.default,"modules/history":E.default,"modules/keyboard":q.default}),b.default.register(c.default,e.default,a.default,n.default,S.default,T.default),d.default=y.default},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(1),b=function(){function _(y){this.domNode=y,this.domNode[O.DATA_KEY]={blot:this}}return Object.defineProperty(_.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),_.create=function(y){if(this.tagName==null)throw new O.ParchmentError("Blot definition missing tagName");var g;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?g=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?g=document.createElement(y):g=document.createElement(this.tagName[0])):g=document.createElement(this.tagName),this.className&&g.classList.add(this.className),g},_.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},_.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return O.create(y)},_.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[O.DATA_KEY]},_.prototype.deleteAt=function(y,g){var c=this.isolate(y,g);c.remove()},_.prototype.formatAt=function(y,g,c,r){var e=this.isolate(y,g);if(O.query(c,O.Scope.BLOT)!=null&&r)e.wrap(c,r);else if(O.query(c,O.Scope.ATTRIBUTE)!=null){var t=O.create(this.statics.scope);e.wrap(t),t.format(c,r)}},_.prototype.insertAt=function(y,g,c){var r=c==null?O.create("text",g):O.create(g,c),e=this.split(y);this.parent.insertBefore(r,e)},_.prototype.insertInto=function(y,g){g===void 0&&(g=null),this.parent!=null&&this.parent.children.remove(this);var c=null;y.children.insertBefore(this,g),g!=null&&(c=g.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=c)&&y.domNode.insertBefore(this.domNode,c),this.parent=y,this.attach()},_.prototype.isolate=function(y,g){var c=this.split(y);return c.split(g),c},_.prototype.length=function(){return 1},_.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},_.prototype.optimize=function(y){this.domNode[O.DATA_KEY]!=null&&delete this.domNode[O.DATA_KEY].mutations},_.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},_.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},_.prototype.replaceWith=function(y,g){var c=typeof y=="string"?O.create(y,g):y;return c.replace(this),c},_.prototype.split=function(y,g){return y===0?this:this.next},_.prototype.update=function(y,g){},_.prototype.wrap=function(y,g){var c=typeof y=="string"?O.create(y,g):y;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},_.blotName="abstract",_}();d.default=b},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(12),b=s(32),_=s(33),y=s(1),g=function(){function c(r){this.attributes={},this.domNode=r,this.build()}return c.prototype.attribute=function(r,e){e?r.add(this.domNode,e)&&(r.value(this.domNode)!=null?this.attributes[r.attrName]=r:delete this.attributes[r.attrName]):(r.remove(this.domNode),delete this.attributes[r.attrName])},c.prototype.build=function(){var r=this;this.attributes={};var e=O.default.keys(this.domNode),t=b.default.keys(this.domNode),f=_.default.keys(this.domNode);e.concat(t).concat(f).forEach(function(l){var a=y.query(l,y.Scope.ATTRIBUTE);a instanceof O.default&&(r.attributes[a.attrName]=a)})},c.prototype.copy=function(r){var e=this;Object.keys(this.attributes).forEach(function(t){var f=e.attributes[t].value(e.domNode);r.format(t,f)})},c.prototype.move=function(r){var e=this;this.copy(r),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},c.prototype.values=function(){var r=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=r.attributes[t].value(r.domNode),e},{})},c}();d.default=g},function(m,d,s){var O=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var e in r)r.hasOwnProperty(e)&&(c[e]=r[e])};return function(c,r){g(c,r);function e(){this.constructor=c}c.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(12);function _(g,c){var r=g.getAttribute("class")||"";return r.split(/\s+/).filter(function(e){return e.indexOf(c+"-")===0})}var y=function(g){O(c,g);function c(){return g!==null&&g.apply(this,arguments)||this}return c.keys=function(r){return(r.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},c.prototype.add=function(r,e){return this.canAdd(r,e)?(this.remove(r),r.classList.add(this.keyName+"-"+e),!0):!1},c.prototype.remove=function(r){var e=_(r,this.keyName);e.forEach(function(t){r.classList.remove(t)}),r.classList.length===0&&r.removeAttribute("class")},c.prototype.value=function(r){var e=_(r,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(r,t)?t:""},c}(b.default);d.default=y},function(m,d,s){var O=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var e in r)r.hasOwnProperty(e)&&(c[e]=r[e])};return function(c,r){g(c,r);function e(){this.constructor=c}c.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(12);function _(g){var c=g.split("-"),r=c.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return c[0]+r}var y=function(g){O(c,g);function c(){return g!==null&&g.apply(this,arguments)||this}return c.keys=function(r){return(r.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},c.prototype.add=function(r,e){return this.canAdd(r,e)?(r.style[_(this.keyName)]=e,!0):!1},c.prototype.remove=function(r){r.style[_(this.keyName)]="",r.getAttribute("style")||r.removeAttribute("style")},c.prototype.value=function(r){var e=r.style[_(this.keyName)];return this.canAdd(r,e)?e:""},c}(b.default);d.default=y},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function y(g,c){for(var r=0;r<c.length;r++){var e=c[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(g,e.key,e)}}return function(g,c,r){return c&&y(g.prototype,c),r&&y(g,r),g}}();function b(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(g,c){b(this,y),this.quill=g,this.options=c,this.modules={}}return O(y,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(r){c.modules[r]==null&&c.addModule(r)})}},{key:"addModule",value:function(c){var r=this.quill.constructor.import("modules/"+c);return this.modules[c]=new r(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),y}();_.DEFAULTS={modules:{}},_.themes={default:_},d.default=_},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function i(o,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(o,v.key,v)}}return function(o,h,n){return h&&i(o.prototype,h),n&&i(o,n),o}}(),b=function i(o,h,n){o===null&&(o=Function.prototype);var v=Object.getOwnPropertyDescriptor(o,h);if(v===void 0){var S=Object.getPrototypeOf(o);return S===null?void 0:i(S,h,n)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(n)}},_=s(0),y=r(_),g=s(7),c=r(g);function r(i){return i&&i.__esModule?i:{default:i}}function e(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function t(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function f(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var l="\uFEFF",a=function(i){f(o,i);function o(h){e(this,o);var n=t(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,h));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(v){n.contentNode.appendChild(v)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return O(o,[{key:"index",value:function(n,v){return n===this.leftGuard?0:n===this.rightGuard?1:b(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,v)}},{key:"restore",value:function(n){var v=void 0,S=void 0,w=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var T=this.prev.length();this.prev.insertAt(T,w),v={startNode:this.prev.domNode,startOffset:T+w.length}}else S=document.createTextNode(w),this.parent.insertBefore(y.default.create(S),this),v={startNode:S,startOffset:w.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,w),v={startNode:this.next.domNode,startOffset:w.length}):(S=document.createTextNode(w),this.parent.insertBefore(y.default.create(S),this.next),v={startNode:S,startOffset:w.length}));return n.data=l,v}},{key:"update",value:function(n,v){var S=this;n.forEach(function(w){if(w.type==="characterData"&&(w.target===S.leftGuard||w.target===S.rightGuard)){var T=S.restore(w.target);T&&(v.range=T)}})}}]),o}(y.default.Embed);d.default=a},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.AlignStyle=d.AlignClass=d.AlignAttribute=void 0;var O=s(0),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}var y={scope:b.default.Scope.BLOCK,whitelist:["right","center","justify"]},g=new b.default.Attributor.Attribute("align","align",y),c=new b.default.Attributor.Class("align","ql-align",y),r=new b.default.Attributor.Style("align","text-align",y);d.AlignAttribute=g,d.AlignClass=c,d.AlignStyle=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.BackgroundStyle=d.BackgroundClass=void 0;var O=s(0),b=y(O),_=s(26);function y(r){return r&&r.__esModule?r:{default:r}}var g=new b.default.Attributor.Class("background","ql-bg",{scope:b.default.Scope.INLINE}),c=new _.ColorAttributor("background","background-color",{scope:b.default.Scope.INLINE});d.BackgroundClass=g,d.BackgroundStyle=c},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.DirectionStyle=d.DirectionClass=d.DirectionAttribute=void 0;var O=s(0),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}var y={scope:b.default.Scope.BLOCK,whitelist:["rtl"]},g=new b.default.Attributor.Attribute("direction","dir",y),c=new b.default.Attributor.Class("direction","ql-direction",y),r=new b.default.Attributor.Style("direction","direction",y);d.DirectionAttribute=g,d.DirectionClass=c,d.DirectionStyle=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.FontClass=d.FontStyle=void 0;var O=function(){function i(o,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(o,v.key,v)}}return function(o,h,n){return h&&i(o.prototype,h),n&&i(o,n),o}}(),b=function i(o,h,n){o===null&&(o=Function.prototype);var v=Object.getOwnPropertyDescriptor(o,h);if(v===void 0){var S=Object.getPrototypeOf(o);return S===null?void 0:i(S,h,n)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(n)}},_=s(0),y=g(_);function g(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function r(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function e(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var t={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new y.default.Attributor.Class("font","ql-font",t),l=function(i){e(o,i);function o(){return c(this,o),r(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return O(o,[{key:"value",value:function(n){return b(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),o}(y.default.Attributor.Style),a=new l("font","font-family",t);d.FontStyle=a,d.FontClass=f},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.SizeStyle=d.SizeClass=void 0;var O=s(0),b=_(O);function _(c){return c&&c.__esModule?c:{default:c}}var y=new b.default.Attributor.Class("size","ql-size",{scope:b.default.Scope.INLINE,whitelist:["small","large","huge"]}),g=new b.default.Attributor.Style("size","font-size",{scope:b.default.Scope.INLINE,whitelist:["10px","18px","32px"]});d.SizeClass=y,d.SizeStyle=g},function(m,d,s){m.exports={align:{"":s(76),center:s(77),right:s(78),justify:s(79)},background:s(80),blockquote:s(81),bold:s(82),clean:s(83),code:s(58),"code-block":s(58),color:s(84),direction:{"":s(85),rtl:s(86)},float:{center:s(87),full:s(88),left:s(89),right:s(90)},formula:s(91),header:{1:s(92),2:s(93)},italic:s(94),image:s(95),indent:{"+1":s(96),"-1":s(97)},link:s(98),list:{ordered:s(99),bullet:s(100),check:s(101)},script:{sub:s(102),super:s(103)},strike:s(104),underline:s(105),video:s(106)}},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.getLastChangeIndex=d.default=void 0;var O=function(){function h(n,v){for(var S=0;S<v.length;S++){var w=v[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,v,S){return v&&h(n.prototype,v),S&&h(n,S),n}}(),b=s(0),_=e(b),y=s(5),g=e(y),c=s(9),r=e(c);function e(h){return h&&h.__esModule?h:{default:h}}function t(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function f(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:h}function l(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}var a=function(h){l(n,h);function n(v,S){t(this,n);var w=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,v,S));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(g.default.events.EDITOR_CHANGE,function(T,R,A,p){T!==g.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||p===g.default.sources.USER?w.record(R,A):w.transform(R))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return O(n,[{key:"change",value:function(S,w){if(this.stack[S].length!==0){var T=this.stack[S].pop();this.stack[w].push(T),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(T[S],g.default.sources.USER),this.ignoreChange=!1;var R=o(T[S]);this.quill.setSelection(R)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,w){if(S.ops.length!==0){this.stack.redo=[];var T=this.quill.getContents().diff(w),R=Date.now();if(this.lastRecorded+this.options.delay>R&&this.stack.undo.length>0){var A=this.stack.undo.pop();T=T.compose(A.undo),S=A.redo.compose(S)}else this.lastRecorded=R;this.stack.undo.push({redo:S,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(w){w.undo=S.transform(w.undo,!0),w.redo=S.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=S.transform(w.undo,!0),w.redo=S.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(r.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function i(h){var n=h.ops[h.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(` `):n.attributes!=null?Object.keys(n.attributes).some(function(v){return _.default.query(v,_.default.Scope.BLOCK)!=null}):!1}function o(h){var n=h.reduce(function(S,w){return S+=w.delete||0,S},0),v=h.length()-n;return i(h)&&(v-=1),v}d.default=a,d.getLastChangeIndex=o},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.BaseTooltip=void 0;var O=function(){function j(M,F){for(var B=0;B<F.length;B++){var L=F[B];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(M,L.key,L)}}return function(M,F,B){return F&&j(M.prototype,F),B&&j(M,B),M}}(),b=function j(M,F,B){M===null&&(M=Function.prototype);var L=Object.getOwnPropertyDescriptor(M,F);if(L===void 0){var H=Object.getPrototypeOf(M);return H===null?void 0:j(H,F,B)}else{if("value"in L)return L.value;var $=L.get;return $===void 0?void 0:$.call(B)}},_=s(3),y=R(_),g=s(2),c=R(g),r=s(8),e=R(r),t=s(23),f=R(t),l=s(34),a=R(l),i=s(59),o=R(i),h=s(60),n=R(h),v=s(28),S=R(v),w=s(61),T=R(w);function R(j){return j&&j.__esModule?j:{default:j}}function A(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function p(j,M){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:j}function E(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(j,M):j.__proto__=M)}var N=[!1,"center","right","justify"],q=["#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"],D=[!1,"serif","monospace"],K=["1","2","3",!1],G=["small",!1,"large","huge"],Q=function(j){E(M,j);function M(F,B){A(this,M);var L=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,F,B)),H=function $(V){if(!document.body.contains(F.root))return document.body.removeEventListener("click",$);L.tooltip!=null&&!L.tooltip.root.contains(V.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(X){X.container.contains(V.target)||X.close()})};return F.emitter.listenDOM("click",document.body,H),L}return O(M,[{key:"addModule",value:function(B){var L=b(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,B);return B==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(B,L){B.forEach(function(H){var $=H.getAttribute("class")||"";$.split(/\s+/).forEach(function(V){if(V.startsWith("ql-")&&(V=V.slice(3),L[V]!=null))if(V==="direction")H.innerHTML=L[V][""]+L[V].rtl;else if(typeof L[V]=="string")H.innerHTML=L[V];else{var X=H.value||"";X!=null&&L[V][X]&&(H.innerHTML=L[V][X])}})})}},{key:"buildPickers",value:function(B,L){var H=this;this.pickers=B.map(function(V){if(V.classList.contains("ql-align"))return V.querySelector("option")==null&&x(V,N),new n.default(V,L.align);if(V.classList.contains("ql-background")||V.classList.contains("ql-color")){var X=V.classList.contains("ql-background")?"background":"color";return V.querySelector("option")==null&&x(V,q,X==="background"?"#ffffff":"#000000"),new o.default(V,L[X])}else return V.querySelector("option")==null&&(V.classList.contains("ql-font")?x(V,D):V.classList.contains("ql-header")?x(V,K):V.classList.contains("ql-size")&&x(V,G)),new S.default(V)});var $=function(){H.pickers.forEach(function(X){X.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,$)}}]),M}(a.default);Q.DEFAULTS=(0,y.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var B=new FileReader;B.onload=function(L){var H=M.quill.getSelection(!0);M.quill.updateContents(new c.default().retain(H.index).delete(H.length).insert({image:L.target.result}),e.default.sources.USER),M.quill.setSelection(H.index+1,e.default.sources.SILENT),F.value=""},B.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var z=function(j){E(M,j);function M(F,B){A(this,M);var L=p(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,F,B));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return O(M,[{key:"listen",value:function(){var B=this;this.textbox.addEventListener("keydown",function(L){f.default.match(L,"enter")?(B.save(),L.preventDefault()):f.default.match(L,"escape")&&(B.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:B!==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-"+B)||""),this.root.setAttribute("data-mode",B)}},{key:"restoreFocus",value:function(){var B=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=B}},{key:"save",value:function(){var B=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",B,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",B,e.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":B=I(B);case"formula":{if(!B)break;var H=this.quill.getSelection(!0);if(H!=null){var $=H.index+H.length;this.quill.insertEmbed($,this.root.getAttribute("data-mode"),B,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText($+1," ",e.default.sources.USER),this.quill.setSelection($+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(T.default);function I(j){var M=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 M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=j.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":j}function x(j,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(B){var L=document.createElement("option");B===F?L.setAttribute("selected","selected"):L.setAttribute("value",B),j.appendChild(L)})}d.BaseTooltip=z,d.default=Q},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function b(){this.head=this.tail=null,this.length=0}return b.prototype.append=function(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];this.insertBefore(_[0],null),_.length>1&&this.append.apply(this,_.slice(1))},b.prototype.contains=function(_){for(var y,g=this.iterator();y=g();)if(y===_)return!0;return!1},b.prototype.insertBefore=function(_,y){_&&(_.next=y,y!=null?(_.prev=y.prev,y.prev!=null&&(y.prev.next=_),y.prev=_,y===this.head&&(this.head=_)):this.tail!=null?(this.tail.next=_,_.prev=this.tail,this.tail=_):(_.prev=null,this.head=this.tail=_),this.length+=1)},b.prototype.offset=function(_){for(var y=0,g=this.head;g!=null;){if(g===_)return y;y+=g.length(),g=g.next}return-1},b.prototype.remove=function(_){this.contains(_)&&(_.prev!=null&&(_.prev.next=_.next),_.next!=null&&(_.next.prev=_.prev),_===this.head&&(this.head=_.next),_===this.tail&&(this.tail=_.prev),this.length-=1)},b.prototype.iterator=function(_){return _===void 0&&(_=this.head),function(){var y=_;return _!=null&&(_=_.next),y}},b.prototype.find=function(_,y){y===void 0&&(y=!1);for(var g,c=this.iterator();g=c();){var r=g.length();if(_<r||y&&_===r&&(g.next==null||g.next.length()!==0))return[g,_];_-=r}return[null,0]},b.prototype.forEach=function(_){for(var y,g=this.iterator();y=g();)_(y)},b.prototype.forEachAt=function(_,y,g){if(!(y<=0))for(var c=this.find(_),r=c[0],e=c[1],t,f=_-e,l=this.iterator(r);(t=l())&&f<_+y;){var a=t.length();_>f?g(t,_-f,Math.min(y,f+a-_)):g(t,0,Math.min(a,_+y-f)),f+=a}},b.prototype.map=function(_){return this.reduce(function(y,g){return y.push(_(g)),y},[])},b.prototype.reduce=function(_,y){for(var g,c=this.iterator();g=c();)y=_(y,g);return y},b}();d.default=O},function(m,d,s){var O=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var f in t)t.hasOwnProperty(f)&&(e[f]=t[f])};return function(e,t){r(e,t);function f(){this.constructor=e}e.prototype=t===null?Object.create(t):(f.prototype=t.prototype,new f)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(17),_=s(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},g=100,c=function(r){O(e,r);function e(t){var f=r.call(this,t)||this;return f.scroll=f,f.observer=new MutationObserver(function(l){f.update(l)}),f.observer.observe(f.domNode,y),f.attach(),f}return e.prototype.detach=function(){r.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,f){this.update(),t===0&&f===this.length()?this.children.forEach(function(l){l.remove()}):r.prototype.deleteAt.call(this,t,f)},e.prototype.formatAt=function(t,f,l,a){this.update(),r.prototype.formatAt.call(this,t,f,l,a)},e.prototype.insertAt=function(t,f,l){this.update(),r.prototype.insertAt.call(this,t,f,l)},e.prototype.optimize=function(t,f){var l=this;t===void 0&&(t=[]),f===void 0&&(f={}),r.prototype.optimize.call(this,f);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var i=function(v,S){S===void 0&&(S=!0),!(v==null||v===l)&&v.domNode.parentNode!=null&&(v.domNode[_.DATA_KEY].mutations==null&&(v.domNode[_.DATA_KEY].mutations=[]),S&&i(v.parent))},o=function(v){v.domNode[_.DATA_KEY]==null||v.domNode[_.DATA_KEY].mutations==null||(v instanceof b.default&&v.children.forEach(o),v.optimize(f))},h=t,n=0;h.length>0;n+=1){if(n>=g)throw new Error("[Parchment] Maximum optimize iterations reached");for(h.forEach(function(v){var S=_.find(v.target,!0);S!=null&&(S.domNode===v.target&&(v.type==="childList"?(i(_.find(v.previousSibling,!1)),[].forEach.call(v.addedNodes,function(w){var T=_.find(w,!1);i(T,!1),T instanceof b.default&&T.children.forEach(function(R){i(R,!1)})})):v.type==="attributes"&&i(S.prev)),i(S))}),this.children.forEach(o),h=[].slice.call(this.observer.takeRecords()),a=h.slice();a.length>0;)t.push(a.pop())}},e.prototype.update=function(t,f){var l=this;f===void 0&&(f={}),t=t||this.observer.takeRecords(),t.map(function(a){var i=_.find(a.target,!0);return i==null?null:i.domNode[_.DATA_KEY].mutations==null?(i.domNode[_.DATA_KEY].mutations=[a],i):(i.domNode[_.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[_.DATA_KEY]==null||a.update(a.domNode[_.DATA_KEY].mutations||[],f)}),this.domNode[_.DATA_KEY].mutations!=null&&r.prototype.update.call(this,this.domNode[_.DATA_KEY].mutations,f),this.optimize(t,f)},e.blotName="scroll",e.defaultChild="block",e.scope=_.Scope.BLOCK_BLOT,e.tagName="DIV",e}(b.default);d.default=c},function(m,d,s){var O=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t])};return function(r,e){c(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(18),_=s(1);function y(c,r){if(Object.keys(c).length!==Object.keys(r).length)return!1;for(var e in c)if(c[e]!==r[e])return!1;return!0}var g=function(c){O(r,c);function r(){return c!==null&&c.apply(this,arguments)||this}return r.formats=function(e){if(e.tagName!==r.tagName)return c.formats.call(this,e)},r.prototype.format=function(e,t){var f=this;e===this.statics.blotName&&!t?(this.children.forEach(function(l){l instanceof b.default||(l=l.wrap(r.blotName,!0)),f.attributes.copy(l)}),this.unwrap()):c.prototype.format.call(this,e,t)},r.prototype.formatAt=function(e,t,f,l){if(this.formats()[f]!=null||_.query(f,_.Scope.ATTRIBUTE)){var a=this.isolate(e,t);a.format(f,l)}else c.prototype.formatAt.call(this,e,t,f,l)},r.prototype.optimize=function(e){c.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var f=this.next;f instanceof r&&f.prev===this&&y(t,f.formats())&&(f.moveChildren(this),f.remove())},r.blotName="inline",r.scope=_.Scope.INLINE_BLOT,r.tagName="SPAN",r}(b.default);d.default=g},function(m,d,s){var O=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var e in r)r.hasOwnProperty(e)&&(c[e]=r[e])};return function(c,r){g(c,r);function e(){this.constructor=c}c.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(18),_=s(1),y=function(g){O(c,g);function c(){return g!==null&&g.apply(this,arguments)||this}return c.formats=function(r){var e=_.query(c.blotName).tagName;if(r.tagName!==e)return g.formats.call(this,r)},c.prototype.format=function(r,e){_.query(r,_.Scope.BLOCK)!=null&&(r===this.statics.blotName&&!e?this.replaceWith(c.blotName):g.prototype.format.call(this,r,e))},c.prototype.formatAt=function(r,e,t,f){_.query(t,_.Scope.BLOCK)!=null?this.format(t,f):g.prototype.formatAt.call(this,r,e,t,f)},c.prototype.insertAt=function(r,e,t){if(t==null||_.query(e,_.Scope.INLINE)!=null)g.prototype.insertAt.call(this,r,e,t);else{var f=this.split(r),l=_.create(e,t);f.parent.insertBefore(l,f)}},c.prototype.update=function(r,e){navigator.userAgent.match(/Trident/)?this.build():g.prototype.update.call(this,r,e)},c.blotName="block",c.scope=_.Scope.BLOCK_BLOT,c.tagName="P",c}(b.default);d.default=y},function(m,d,s){var O=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,c){g.__proto__=c}||function(g,c){for(var r in c)c.hasOwnProperty(r)&&(g[r]=c[r])};return function(g,c){y(g,c);function r(){this.constructor=g}g.prototype=c===null?Object.create(c):(r.prototype=c.prototype,new r)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(19),_=function(y){O(g,y);function g(){return y!==null&&y.apply(this,arguments)||this}return g.formats=function(c){},g.prototype.format=function(c,r){y.prototype.formatAt.call(this,0,this.length(),c,r)},g.prototype.formatAt=function(c,r,e,t){c===0&&r===this.length()?this.format(e,t):y.prototype.formatAt.call(this,c,r,e,t)},g.prototype.formats=function(){return this.statics.formats(this.domNode)},g}(b.default);d.default=_},function(m,d,s){var O=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var e in r)r.hasOwnProperty(e)&&(c[e]=r[e])};return function(c,r){g(c,r);function e(){this.constructor=c}c.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(d,"__esModule",{value:!0});var b=s(19),_=s(1),y=function(g){O(c,g);function c(r){var e=g.call(this,r)||this;return e.text=e.statics.value(e.domNode),e}return c.create=function(r){return document.createTextNode(r)},c.value=function(r){var e=r.data;return e.normalize&&(e=e.normalize()),e},c.prototype.deleteAt=function(r,e){this.domNode.data=this.text=this.text.slice(0,r)+this.text.slice(r+e)},c.prototype.index=function(r,e){return this.domNode===r?e:-1},c.prototype.insertAt=function(r,e,t){t==null?(this.text=this.text.slice(0,r)+e+this.text.slice(r),this.domNode.data=this.text):g.prototype.insertAt.call(this,r,e,t)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(r){g.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(r,e){return[this.domNode,r]},c.prototype.split=function(r,e){if(e===void 0&&(e=!1),!e){if(r===0)return this;if(r===this.length())return this.next}var t=_.create(this.domNode.splitText(r));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},c.prototype.update=function(r,e){var t=this;r.some(function(f){return f.type==="characterData"&&f.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=_.Scope.INLINE_BLOT,c}(b.default);d.default=y},function(m,d,s){var O=document.createElement("div");if(O.classList.toggle("test-class",!1),O.classList.contains("test-class")){var b=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,y){return arguments.length>1&&!this.contains(_)==!y?y:b.call(this,_)}}String.prototype.startsWith||(String.prototype.startsWith=function(_,y){return y=y||0,this.substr(y,_.length)===_}),String.prototype.endsWith||(String.prototype.endsWith=function(_,y){var g=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>g.length)&&(y=g.length),y-=_.length;var c=g.indexOf(_,y);return c!==-1&&c===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var g=Object(this),c=g.length>>>0,r=arguments[1],e,t=0;t<c;t++)if(e=g[t],y.call(r,e,t,g))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(m,d){var s=-1,O=1,b=0;function _(n,v,S){if(n==v)return n?[[b,n]]:[];(S<0||n.length<S)&&(S=null);var w=r(n,v),T=n.substring(0,w);n=n.substring(w),v=v.substring(w),w=e(n,v);var R=n.substring(n.length-w);n=n.substring(0,n.length-w),v=v.substring(0,v.length-w);var A=y(n,v);return T&&A.unshift([b,T]),R&&A.push([b,R]),f(A),S!=null&&(A=i(A,S)),A=o(A),A}function y(n,v){var S;if(!n)return[[O,v]];if(!v)return[[s,n]];var w=n.length>v.length?n:v,T=n.length>v.length?v:n,R=w.indexOf(T);if(R!=-1)return S=[[O,w.substring(0,R)],[b,T],[O,w.substring(R+T.length)]],n.length>v.length&&(S[0][0]=S[2][0]=s),S;if(T.length==1)return[[s,n],[O,v]];var A=t(n,v);if(A){var p=A[0],E=A[1],N=A[2],q=A[3],D=A[4],K=_(p,N),G=_(E,q);return K.concat([[b,D]],G)}return g(n,v)}function g(n,v){for(var S=n.length,w=v.length,T=Math.ceil((S+w)/2),R=T,A=2*T,p=new Array(A),E=new Array(A),N=0;N<A;N++)p[N]=-1,E[N]=-1;p[R+1]=0,E[R+1]=0;for(var q=S-w,D=q%2!=0,K=0,G=0,Q=0,z=0,I=0;I<T;I++){for(var x=-I+K;x<=I-G;x+=2){var j=R+x,M;x==-I||x!=I&&p[j-1]<p[j+1]?M=p[j+1]:M=p[j-1]+1;for(var F=M-x;M<S&&F<w&&n.charAt(M)==v.charAt(F);)M++,F++;if(p[j]=M,M>S)G+=2;else if(F>w)K+=2;else if(D){var B=R+q-x;if(B>=0&&B<A&&E[B]!=-1){var L=S-E[B];if(M>=L)return c(n,v,M,F)}}}for(var H=-I+Q;H<=I-z;H+=2){var B=R+H,L;H==-I||H!=I&&E[B-1]<E[B+1]?L=E[B+1]:L=E[B-1]+1;for(var $=L-H;L<S&&$<w&&n.charAt(S-L-1)==v.charAt(w-$-1);)L++,$++;if(E[B]=L,L>S)z+=2;else if($>w)Q+=2;else if(!D){var j=R+q-H;if(j>=0&&j<A&&p[j]!=-1){var M=p[j],F=R+M-j;if(L=S-L,M>=L)return c(n,v,M,F)}}}}return[[s,n],[O,v]]}function c(n,v,S,w){var T=n.substring(0,S),R=v.substring(0,w),A=n.substring(S),p=v.substring(w),E=_(T,R),N=_(A,p);return E.concat(N)}function r(n,v){if(!n||!v||n.charAt(0)!=v.charAt(0))return 0;for(var S=0,w=Math.min(n.length,v.length),T=w,R=0;S<T;)n.substring(R,T)==v.substring(R,T)?(S=T,R=S):w=T,T=Math.floor((w-S)/2+S);return T}function e(n,v){if(!n||!v||n.charAt(n.length-1)!=v.charAt(v.length-1))return 0;for(var S=0,w=Math.min(n.length,v.length),T=w,R=0;S<T;)n.substring(n.length-T,n.length-R)==v.substring(v.length-T,v.length-R)?(S=T,R=S):w=T,T=Math.floor((w-S)/2+S);return T}function t(n,v){var S=n.length>v.length?n:v,w=n.length>v.length?v:n;if(S.length<4||w.length*2<S.length)return null;function T(G,Q,z){for(var I=G.substring(z,z+Math.floor(G.length/4)),x=-1,j="",M,F,B,L;(x=Q.indexOf(I,x+1))!=-1;){var H=r(G.substring(z),Q.substring(x)),$=e(G.substring(0,z),Q.substring(0,x));j.length<$+H&&(j=Q.substring(x-$,x)+Q.substring(x,x+H),M=G.substring(0,z-$),F=G.substring(z+H),B=Q.substring(0,x-$),L=Q.substring(x+H))}return j.length*2>=G.length?[M,F,B,L,j]:null}var R=T(S,w,Math.ceil(S.length/4)),A=T(S,w,Math.ceil(S.length/2)),p;if(!R&&!A)return null;A?R?p=R[4].length>A[4].length?R:A:p=A:p=R;var E,N,q,D;n.length>v.length?(E=p[0],N=p[1],q=p[2],D=p[3]):(q=p[0],D=p[1],E=p[2],N=p[3]);var K=p[4];return[E,N,q,D,K]}function f(n){n.push([b,""]);for(var v=0,S=0,w=0,T="",R="",A;v<n.length;)switch(n[v][0]){case O:w++,R+=n[v][1],v++;break;case s:S++,T+=n[v][1],v++;break;case b:S+w>1?(S!==0&&w!==0&&(A=r(R,T),A!==0&&(v-S-w>0&&n[v-S-w-1][0]==b?n[v-S-w-1][1]+=R.substring(0,A):(n.splice(0,0,[b,R.substring(0,A)]),v++),R=R.substring(A),T=T.substring(A)),A=e(R,T),A!==0&&(n[v][1]=R.substring(R.length-A)+n[v][1],R=R.substring(0,R.length-A),T=T.substring(0,T.length-A))),S===0?n.splice(v-w,S+w,[O,R]):w===0?n.splice(v-S,S+w,[s,T]):n.splice(v-S-w,S+w,[s,T],[O,R]),v=v-S-w+(S?1:0)+(w?1:0)+1):v!==0&&n[v-1][0]==b?(n[v-1][1]+=n[v][1],n.splice(v,1)):v++,w=0,S=0,T="",R="";break}n[n.length-1][1]===""&&n.pop();var p=!1;for(v=1;v<n.length-1;)n[v-1][0]==b&&n[v+1][0]==b&&(n[v][1].substring(n[v][1].length-n[v-1][1].length)==n[v-1][1]?(n[v][1]=n[v-1][1]+n[v][1].substring(0,n[v][1].length-n[v-1][1].length),n[v+1][1]=n[v-1][1]+n[v+1][1],n.splice(v-1,1),p=!0):n[v][1].substring(0,n[v+1][1].length)==n[v+1][1]&&(n[v-1][1]+=n[v+1][1],n[v][1]=n[v][1].substring(n[v+1][1].length)+n[v+1][1],n.splice(v+1,1),p=!0)),v++;p&&f(n)}var l=_;l.INSERT=O,l.DELETE=s,l.EQUAL=b,m.exports=l;function a(n,v){if(v===0)return[b,n];for(var S=0,w=0;w<n.length;w++){var T=n[w];if(T[0]===s||T[0]===b){var R=S+T[1].length;if(v===R)return[w+1,n];if(v<R){n=n.slice();var A=v-S,p=[T[0],T[1].slice(0,A)],E=[T[0],T[1].slice(A)];return n.splice(w,1,p,E),[w+1,n]}else S=R}}throw new Error("cursor_pos is out of bounds!")}function i(n,v){var S=a(n,v),w=S[1],T=S[0],R=w[T],A=w[T+1];if(R==null)return n;if(R[0]!==b)return n;if(A!=null&&R[1]+A[1]===A[1]+R[1])return w.splice(T,2,A,R),h(w,T,2);if(A!=null&&A[1].indexOf(R[1])===0){w.splice(T,2,[A[0],R[1]],[0,R[1]]);var p=A[1].slice(R[1].length);return p.length>0&&w.splice(T+2,0,[A[0],p]),h(w,T,3)}else return n}function o(n){for(var v=!1,S=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},w=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},T=2;T<n.length;T+=1)n[T-2][0]===b&&w(n[T-2][1])&&n[T-1][0]===s&&S(n[T-1][1])&&n[T][0]===O&&S(n[T][1])&&(v=!0,n[T-1][1]=n[T-2][1].slice(-1)+n[T-1][1],n[T][1]=n[T-2][1].slice(-1)+n[T][1],n[T-2][1]=n[T-2][1].slice(0,-1));if(!v)return n;for(var R=[],T=0;T<n.length;T+=1)n[T][1].length>0&&R.push(n[T]);return R}function h(n,v,S){for(var w=v+S-1;w>=0&&w>=v-1;w--)if(w+1<n.length){var T=n[w],R=n[w+1];T[0]===R[1]&&n.splice(w,2,[T[0],T[1]+R[1]])}return n}},function(m,d){d=m.exports=typeof Object.keys=="function"?Object.keys:s,d.shim=s;function s(O){var b=[];for(var _ in O)b.push(_);return b}},function(m,d){var s=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";d=m.exports=s?O:b,d.supported=O;function O(_){return Object.prototype.toString.call(_)=="[object Arguments]"}d.unsupported=b;function b(_){return _&&typeof _=="object"&&typeof _.length=="number"&&Object.prototype.hasOwnProperty.call(_,"callee")&&!Object.prototype.propertyIsEnumerable.call(_,"callee")||!1}},function(m,d){var s=Object.prototype.hasOwnProperty,O="~";function b(){}Object.create&&(b.prototype=Object.create(null),new b().__proto__||(O=!1));function _(g,c,r){this.fn=g,this.context=c,this.once=r||!1}function y(){this._events=new b,this._eventsCount=0}y.prototype.eventNames=function(){var c=[],r,e;if(this._eventsCount===0)return c;for(e in r=this._events)s.call(r,e)&&c.push(O?e.slice(1):e);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(r)):c},y.prototype.listeners=function(c,r){var e=O?O+c:c,t=this._events[e];if(r)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var f=0,l=t.length,a=new Array(l);f<l;f++)a[f]=t[f].fn;return a},y.prototype.emit=function(c,r,e,t,f,l){var a=O?O+c:c;if(!this._events[a])return!1;var i=this._events[a],o=arguments.length,h,n;if(i.fn){switch(i.once&&this.removeListener(c,i.fn,void 0,!0),o){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,r),!0;case 3:return i.fn.call(i.context,r,e),!0;case 4:return i.fn.call(i.context,r,e,t),!0;case 5:return i.fn.call(i.context,r,e,t,f),!0;case 6:return i.fn.call(i.context,r,e,t,f,l),!0}for(n=1,h=new Array(o-1);n<o;n++)h[n-1]=arguments[n];i.fn.apply(i.context,h)}else{var v=i.length,S;for(n=0;n<v;n++)switch(i[n].once&&this.removeListener(c,i[n].fn,void 0,!0),o){case 1:i[n].fn.call(i[n].context);break;case 2:i[n].fn.call(i[n].context,r);break;case 3:i[n].fn.call(i[n].context,r,e);break;case 4:i[n].fn.call(i[n].context,r,e,t);break;default:if(!h)for(S=1,h=new Array(o-1);S<o;S++)h[S-1]=arguments[S];i[n].fn.apply(i[n].context,h)}}return!0},y.prototype.on=function(c,r,e){var t=new _(r,e||this),f=O?O+c:c;return this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],t]:this._events[f].push(t):(this._events[f]=t,this._eventsCount++),this},y.prototype.once=function(c,r,e){var t=new _(r,e||this,!0),f=O?O+c:c;return this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],t]:this._events[f].push(t):(this._events[f]=t,this._eventsCount++),this},y.prototype.removeListener=function(c,r,e,t){var f=O?O+c:c;if(!this._events[f])return this;if(!r)return--this._eventsCount===0?this._events=new b:delete this._events[f],this;var l=this._events[f];if(l.fn)l.fn===r&&(!t||l.once)&&(!e||l.context===e)&&(--this._eventsCount===0?this._events=new b:delete this._events[f]);else{for(var a=0,i=[],o=l.length;a<o;a++)(l[a].fn!==r||t&&!l[a].once||e&&l[a].context!==e)&&i.push(l[a]);i.length?this._events[f]=i.length===1?i[0]:i:--this._eventsCount===0?this._events=new b:delete this._events[f]}return this},y.prototype.removeAllListeners=function(c){var r;return c?(r=O?O+c:c,this._events[r]&&(--this._eventsCount===0?this._events=new b:delete this._events[r])):(this._events=new b,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=O,y.EventEmitter=y,typeof m<"u"&&(m.exports=y)},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.matchText=d.matchSpacing=d.matchNewline=d.matchBlot=d.matchAttributor=d.default=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},b=function(){function W(Y,ee){var ne=[],J=!0,se=!1,oe=void 0;try{for(var le=Y[Symbol.iterator](),Se;!(J=(Se=le.next()).done)&&(ne.push(Se.value),!(ee&&ne.length===ee));J=!0);}catch(Ee){se=!0,oe=Ee}finally{try{!J&&le.return&&le.return()}finally{if(se)throw oe}}return ne}return function(Y,ee){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return W(Y,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function W(Y,ee){for(var ne=0;ne<ee.length;ne++){var J=ee[ne];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}return function(Y,ee,ne){return ee&&W(Y.prototype,ee),ne&&W(Y,ne),Y}}(),y=s(3),g=E(y),c=s(2),r=E(c),e=s(0),t=E(e),f=s(5),l=E(f),a=s(10),i=E(a),o=s(9),h=E(o),n=s(36),v=s(37),S=s(13),w=E(S),T=s(26),R=s(38),A=s(39),p=s(40);function E(W){return W&&W.__esModule?W:{default:W}}function N(W,Y,ee){return Y in W?Object.defineProperty(W,Y,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[Y]=ee,W}function q(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function K(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var G=(0,i.default)("quill:clipboard"),Q="__ql-matcher",z=[[Node.TEXT_NODE,ge],[Node.TEXT_NODE,fe],["br",te],[Node.ELEMENT_NODE,fe],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,me],["li",ae],["b",$.bind($,"bold")],["i",$.bind($,"italic")],["style",ie]],I=[n.AlignAttribute,R.DirectionAttribute].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),x=[n.AlignStyle,v.BackgroundStyle,T.ColorStyle,R.DirectionStyle,A.FontStyle,p.SizeStyle].reduce(function(W,Y){return W[Y.keyName]=Y,W},{}),j=function(W){K(Y,W);function Y(ee,ne){q(this,Y);var J=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,ee,ne));return J.quill.root.addEventListener("paste",J.onPaste.bind(J)),J.container=J.quill.addContainer("ql-clipboard"),J.container.setAttribute("contenteditable",!0),J.container.setAttribute("tabindex",-1),J.matchers=[],z.concat(J.options.matchers).forEach(function(se){var oe=b(se,2),le=oe[0],Se=oe[1];!ne.matchVisual&&Se===he||J.addMatcher(le,Se)}),J}return _(Y,[{key:"addMatcher",value:function(ne,J){this.matchers.push([ne,J])}},{key:"convert",value:function(ne){if(typeof ne=="string")return this.container.innerHTML=ne.replace(/\>\r?\n +\</g,"><"),this.convert();var J=this.quill.getFormat(this.quill.selection.savedRange.index);if(J[w.default.blotName]){var se=this.container.innerText;return this.container.innerHTML="",new r.default().insert(se,N({},w.default.blotName,J[w.default.blotName]))}var oe=this.prepareMatching(),le=b(oe,2),Se=le[0],Ee=le[1],pe=H(this.container,Se,Ee);return B(pe,` `)&&pe.ops[pe.ops.length-1].attributes==null&&(pe=pe.compose(new r.default().retain(pe.length()-1).delete(1))),G.log("convert",this.container.innerHTML,pe),this.container.innerHTML="",pe}},{key:"dangerouslyPasteHTML",value:function(ne,J){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof ne=="string")this.quill.setContents(this.convert(ne),J),this.quill.setSelection(0,l.default.sources.SILENT);else{var oe=this.convert(J);this.quill.updateContents(new r.default().retain(ne).concat(oe),se),this.quill.setSelection(ne+oe.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(ne){var J=this;if(!(ne.defaultPrevented||!this.quill.isEnabled())){var se=this.quill.getSelection(),oe=new r.default().retain(se.index),le=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){oe=oe.concat(J.convert()).delete(se.length),J.quill.updateContents(oe,l.default.sources.USER),J.quill.setSelection(oe.length()-se.length,l.default.sources.SILENT),J.quill.scrollingContainer.scrollTop=le,J.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ne=this,J=[],se=[];return this.matchers.forEach(function(oe){var le=b(oe,2),Se=le[0],Ee=le[1];switch(Se){case Node.TEXT_NODE:se.push(Ee);break;case Node.ELEMENT_NODE:J.push(Ee);break;default:[].forEach.call(ne.container.querySelectorAll(Se),function(pe){pe[Q]=pe[Q]||[],pe[Q].push(Ee)});break}}),[J,se]}}]),Y}(h.default);j.DEFAULTS={matchers:[],matchVisual:!0};function M(W,Y,ee){return(typeof Y>"u"?"undefined":O(Y))==="object"?Object.keys(Y).reduce(function(ne,J){return M(ne,J,Y[J])},W):W.reduce(function(ne,J){return J.attributes&&J.attributes[Y]?ne.push(J):ne.insert(J.insert,(0,g.default)({},N({},Y,ee),J.attributes))},new r.default)}function F(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return W[Y]||(W[Y]=window.getComputedStyle(W))}function B(W,Y){for(var ee="",ne=W.ops.length-1;ne>=0&&ee.length<Y.length;--ne){var J=W.ops[ne];if(typeof J.insert!="string")break;ee=J.insert+ee}return ee.slice(-1*Y.length)===Y}function L(W){if(W.childNodes.length===0)return!1;var Y=F(W);return["block","list-item"].indexOf(Y.display)>-1}function H(W,Y,ee){return W.nodeType===W.TEXT_NODE?ee.reduce(function(ne,J){return J(W,ne)},new r.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(ne,J){var se=H(J,Y,ee);return J.nodeType===W.ELEMENT_NODE&&(se=Y.reduce(function(oe,le){return le(J,oe)},se),se=(J[Q]||[]).reduce(function(oe,le){return le(J,oe)},se)),ne.concat(se)},new r.default):new r.default}function $(W,Y,ee){return M(ee,W,!0)}function V(W,Y){var ee=t.default.Attributor.Attribute.keys(W),ne=t.default.Attributor.Class.keys(W),J=t.default.Attributor.Style.keys(W),se={};return ee.concat(ne).concat(J).forEach(function(oe){var le=t.default.query(oe,t.default.Scope.ATTRIBUTE);le!=null&&(se[le.attrName]=le.value(W),se[le.attrName])||(le=I[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(se[le.attrName]=le.value(W)||void 0),le=x[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(le=x[oe],se[le.attrName]=le.value(W)||void 0))}),Object.keys(se).length>0&&(Y=M(Y,se)),Y}function X(W,Y){var ee=t.default.query(W);if(ee==null)return Y;if(ee.prototype instanceof t.default.Embed){var ne={},J=ee.value(W);J!=null&&(ne[ee.blotName]=J,Y=new r.default().insert(ne,ee.formats(W)))}else typeof ee.formats=="function"&&(Y=M(Y,ee.blotName,ee.formats(W)));return Y}function te(W,Y){return B(Y,` `)||Y.insert(` `),Y}function ie(){return new r.default}function ae(W,Y){var ee=t.default.query(W);if(ee==null||ee.blotName!=="list-item"||!B(Y,` `))return Y;for(var ne=-1,J=W.parentNode;!J.classList.contains("ql-clipboard");)(t.default.query(J)||{}).blotName==="list"&&(ne+=1),J=J.parentNode;return ne<=0?Y:Y.compose(new r.default().retain(Y.length()-1).retain(1,{indent:ne}))}function fe(W,Y){return B(Y,` `)||(L(W)||Y.length()>0&&W.nextSibling&&L(W.nextSibling))&&Y.insert(` `),Y}function he(W,Y){if(L(W)&&W.nextElementSibling!=null&&!B(Y,` `)){var ee=W.offsetHeight+parseFloat(F(W).marginTop)+parseFloat(F(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+ee*1.5&&Y.insert(` `)}return Y}function me(W,Y){var ee={},ne=W.style||{};return ne.fontStyle&&F(W).fontStyle==="italic"&&(ee.italic=!0),ne.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(ee.bold=!0),Object.keys(ee).length>0&&(Y=M(Y,ee)),parseFloat(ne.textIndent||0)>0&&(Y=new r.default().insert(" ").concat(Y)),Y}function ge(W,Y){var ee=W.data;if(W.parentNode.tagName==="O:P")return Y.insert(ee.trim());if(ee.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return Y;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var ne=function(se,oe){return oe=oe.replace(/[^\u00a0]/g,""),oe.length<1&&se?" ":oe};ee=ee.replace(/\r\n/g," ").replace(/\n/g," "),ee=ee.replace(/\s\s+/g,ne.bind(ne,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(ee=ee.replace(/^\s+/,ne.bind(ne,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(ee=ee.replace(/\s+$/,ne.bind(ne,!1)))}return Y.insert(ee)}d.default=j,d.matchAttributor=V,d.matchBlot=X,d.matchNewline=fe,d.matchSpacing=he,d.matchText=ge},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function f(l,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,a,i){return a&&f(l.prototype,a),i&&f(l,i),l}}(),b=function f(l,a,i){l===null&&(l=Function.prototype);var o=Object.getOwnPropertyDescriptor(l,a);if(o===void 0){var h=Object.getPrototypeOf(l);return h===null?void 0:f(h,a,i)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(i)}},_=s(6),y=g(_);function g(f){return f&&f.__esModule?f:{default:f}}function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function r(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function e(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var t=function(f){e(l,f);function l(){return c(this,l),r(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return O(l,[{key:"optimize",value:function(i){b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,i),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return b(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(y.default);t.blotName="bold",t.tagName=["STRONG","B"],d.default=t},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.addControls=d.default=void 0;var O=function(){function p(E,N){var q=[],D=!0,K=!1,G=void 0;try{for(var Q=E[Symbol.iterator](),z;!(D=(z=Q.next()).done)&&(q.push(z.value),!(N&&q.length===N));D=!0);}catch(I){K=!0,G=I}finally{try{!D&&Q.return&&Q.return()}finally{if(K)throw G}}return q}return function(E,N){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return p(E,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function p(E,N){for(var q=0;q<N.length;q++){var D=N[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,N,q){return N&&p(E.prototype,N),q&&p(E,q),E}}(),_=s(2),y=i(_),g=s(0),c=i(g),r=s(5),e=i(r),t=s(10),f=i(t),l=s(9),a=i(l);function i(p){return p&&p.__esModule?p:{default:p}}function o(p,E,N){return E in p?Object.defineProperty(p,E,{value:N,enumerable:!0,configurable:!0,writable:!0}):p[E]=N,p}function h(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}function n(p,E){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:p}function v(p,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(p,E):p.__proto__=E)}var S=(0,f.default)("quill:toolbar"),w=function(p){v(E,p);function E(N,q){h(this,E);var D=n(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,N,q));if(Array.isArray(D.options.container)){var K=document.createElement("div");R(K,D.options.container),N.container.parentNode.insertBefore(K,N.container),D.container=K}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var G;return G=S.error("Container required for toolbar",D.options),n(D,G)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(Q){D.addHandler(Q,D.options.handlers[Q])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(Q){D.attach(Q)}),D.quill.on(e.default.events.EDITOR_CHANGE,function(Q,z){Q===e.default.events.SELECTION_CHANGE&&D.update(z)}),D.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var Q=D.quill.selection.getRange(),z=O(Q,1),I=z[0];D.update(I)}),D}return b(E,[{key:"addHandler",value:function(q,D){this.handlers[q]=D}},{key:"attach",value:function(q){var D=this,K=[].find.call(q.classList,function(Q){return Q.indexOf("ql-")===0});if(K){if(K=K.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[K]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[K]==null){S.warn("ignoring attaching to disabled format",K,q);return}if(c.default.query(K)==null){S.warn("ignoring attaching to nonexistent format",K,q);return}}var G=q.tagName==="SELECT"?"change":"click";q.addEventListener(G,function(Q){var z=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var I=q.options[q.selectedIndex];I.hasAttribute("selected")?z=!1:z=I.value||!1}else q.classList.contains("ql-active")?z=!1:z=q.value||!q.hasAttribute("value"),Q.preventDefault();D.quill.focus();var x=D.quill.selection.getRange(),j=O(x,1),M=j[0];if(D.handlers[K]!=null)D.handlers[K].call(D,z);else if(c.default.query(K).prototype instanceof c.default.Embed){if(z=prompt("Enter "+K),!z)return;D.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(o({},K,z)),e.default.sources.USER)}else D.quill.format(K,z,e.default.sources.USER);D.update(M)}),this.controls.push([K,q])}}},{key:"update",value:function(q){var D=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(K){var G=O(K,2),Q=G[0],z=G[1];if(z.tagName==="SELECT"){var I=void 0;if(q==null)I=null;else if(D[Q]==null)I=z.querySelector("option[selected]");else if(!Array.isArray(D[Q])){var x=D[Q];typeof x=="string"&&(x=x.replace(/\"/g,'\\"')),I=z.querySelector('option[value="'+x+'"]')}I==null?(z.value="",z.selectedIndex=-1):I.selected=!0}else if(q==null)z.classList.remove("ql-active");else if(z.hasAttribute("value")){var j=D[Q]===z.getAttribute("value")||D[Q]!=null&&D[Q].toString()===z.getAttribute("value")||D[Q]==null&&!z.getAttribute("value");z.classList.toggle("ql-active",j)}else z.classList.toggle("ql-active",D[Q]!=null)})}}]),E}(a.default);w.DEFAULTS={};function T(p,E,N){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+E),N!=null&&(q.value=N),p.appendChild(q)}function R(p,E){Array.isArray(E[0])||(E=[E]),E.forEach(function(N){var q=document.createElement("span");q.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")T(q,D);else{var K=Object.keys(D)[0],G=D[K];Array.isArray(G)?A(q,K,G):T(q,K,G)}}),p.appendChild(q)})}function A(p,E,N){var q=document.createElement("select");q.classList.add("ql-"+E),N.forEach(function(D){var K=document.createElement("option");D!==!1?K.setAttribute("value",D):K.setAttribute("selected","selected"),q.appendChild(K)}),p.appendChild(q)}w.DEFAULTS={container:null,handlers:{clean:function(){var E=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(D){c.default.query(D,c.default.Scope.INLINE)!=null&&E.quill.format(D,!1)})}else this.quill.removeFormat(N,e.default.sources.USER)},direction:function(E){var N=this.quill.getFormat().align;E==="rtl"&&N==null?this.quill.format("align","right",e.default.sources.USER):!E&&N==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",E,e.default.sources.USER)},indent:function(E){var N=this.quill.getSelection(),q=this.quill.getFormat(N),D=parseInt(q.indent||0);if(E==="+1"||E==="-1"){var K=E==="+1"?1:-1;q.direction==="rtl"&&(K*=-1),this.quill.format("indent",D+K,e.default.sources.USER)}},link:function(E){E===!0&&(E=prompt("Enter link URL:")),this.quill.format("link",E,e.default.sources.USER)},list:function(E){var N=this.quill.getSelection(),q=this.quill.getFormat(N);E==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",E,e.default.sources.USER)}}},d.default=w,d.addControls=R},function(m,d){m.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(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function f(l,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,a,i){return a&&f(l.prototype,a),i&&f(l,i),l}}(),b=function f(l,a,i){l===null&&(l=Function.prototype);var o=Object.getOwnPropertyDescriptor(l,a);if(o===void 0){var h=Object.getPrototypeOf(l);return h===null?void 0:f(h,a,i)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(i)}},_=s(28),y=g(_);function g(f){return f&&f.__esModule?f:{default:f}}function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function r(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function e(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var t=function(f){e(l,f);function l(a,i){c(this,l);var o=r(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return o.label.innerHTML=i,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(h){h.classList.add("ql-primary")}),o}return O(l,[{key:"buildItem",value:function(i){var o=b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,i);return o.style.backgroundColor=i.getAttribute("value")||"",o}},{key:"selectItem",value:function(i,o){b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,o);var h=this.label.querySelector(".ql-color-label"),n=i&&i.getAttribute("data-value")||"";h&&(h.tagName==="line"?h.style.stroke=n:h.style.fill=n)}}]),l}(y.default);d.default=t},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function f(l,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,a,i){return a&&f(l.prototype,a),i&&f(l,i),l}}(),b=function f(l,a,i){l===null&&(l=Function.prototype);var o=Object.getOwnPropertyDescriptor(l,a);if(o===void 0){var h=Object.getPrototypeOf(l);return h===null?void 0:f(h,a,i)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(i)}},_=s(28),y=g(_);function g(f){return f&&f.__esModule?f:{default:f}}function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function r(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function e(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var t=function(f){e(l,f);function l(a,i){c(this,l);var o=r(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(h){h.innerHTML=i[h.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return O(l,[{key:"selectItem",value:function(i,o){b(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,o),i=i||this.defaultItem,this.label.innerHTML=i.innerHTML}}]),l}(y.default);d.default=t},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function y(g,c){for(var r=0;r<c.length;r++){var e=c[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(g,e.key,e)}}return function(g,c,r){return c&&y(g.prototype,c),r&&y(g,r),g}}();function b(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function(){function y(g,c){var r=this;b(this,y),this.quill=g,this.boundsContainer=c||document.body,this.root=g.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return O(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var r=c.left+c.width/2-this.root.offsetWidth/2,e=c.bottom+this.quill.root.scrollTop;this.root.style.left=r+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),f=this.root.getBoundingClientRect(),l=0;if(f.right>t.right&&(l=t.right-f.right,this.root.style.left=r+l+"px"),f.left<t.left&&(l=t.left-f.left,this.root.style.left=r+l+"px"),f.bottom>t.bottom){var a=f.bottom-f.top,i=c.bottom-c.top+a;this.root.style.top=e-i+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();d.default=_},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function A(p,E){var N=[],q=!0,D=!1,K=void 0;try{for(var G=p[Symbol.iterator](),Q;!(q=(Q=G.next()).done)&&(N.push(Q.value),!(E&&N.length===E));q=!0);}catch(z){D=!0,K=z}finally{try{!q&&G.return&&G.return()}finally{if(D)throw K}}return N}return function(p,E){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return A(p,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function A(p,E,N){p===null&&(p=Function.prototype);var q=Object.getOwnPropertyDescriptor(p,E);if(q===void 0){var D=Object.getPrototypeOf(p);return D===null?void 0:A(D,E,N)}else{if("value"in q)return q.value;var K=q.get;return K===void 0?void 0:K.call(N)}},_=function(){function A(p,E){for(var N=0;N<E.length;N++){var q=E[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(p,q.key,q)}}return function(p,E,N){return E&&A(p.prototype,E),N&&A(p,N),p}}(),y=s(3),g=h(y),c=s(8),r=h(c),e=s(43),t=h(e),f=s(27),l=h(f),a=s(15),i=s(41),o=h(i);function h(A){return A&&A.__esModule?A:{default:A}}function n(A,p){if(!(A instanceof p))throw new TypeError("Cannot call a class as a function")}function v(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 S(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 w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],T=function(A){S(p,A);function p(E,N){n(this,p),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=w);var q=v(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,E,N));return q.quill.container.classList.add("ql-snow"),q}return _(p,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),o.default),this.tooltip=new R(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,D){N.handlers.link.call(N,!D.format.link)})}}]),p}(t.default);T.DEFAULTS=(0,g.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(p){if(p){var E=this.quill.getSelection();if(E==null||E.length==0)return;var N=this.quill.getText(E);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var q=this.quill.theme.tooltip;q.edit("link",N)}else this.quill.format("link",!1)}}}}});var R=function(A){S(p,A);function p(E,N){n(this,p);var q=v(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,E,N));return q.preview=q.root.querySelector("a.ql-preview"),q}return _(p,[{key:"listen",value:function(){var N=this;b(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,r.default.sources.USER),delete N.linkRange}q.preventDefault(),N.hide()}),this.quill.on(r.default.events.SELECTION_CHANGE,function(q,D,K){if(q!=null){if(q.length===0&&K===r.default.sources.USER){var G=N.quill.scroll.descendant(l.default,q.index),Q=O(G,2),z=Q[0],I=Q[1];if(z!=null){N.linkRange=new a.Range(q.index-I,z.length());var x=l.default.formats(z.domNode);N.preview.textContent=x,N.preview.setAttribute("href",x),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){b(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),p}(e.BaseTooltip);R.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(""),d.default=T},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(29),b=J(O),_=s(36),y=s(38),g=s(64),c=s(65),r=J(c),e=s(66),t=J(e),f=s(67),l=J(f),a=s(37),i=s(26),o=s(39),h=s(40),n=s(56),v=J(n),S=s(68),w=J(S),T=s(27),R=J(T),A=s(69),p=J(A),E=s(70),N=J(E),q=s(71),D=J(q),K=s(72),G=J(K),Q=s(73),z=J(Q),I=s(13),x=J(I),j=s(74),M=J(j),F=s(75),B=J(F),L=s(57),H=J(L),$=s(41),V=J($),X=s(28),te=J(X),ie=s(59),ae=J(ie),fe=s(60),he=J(fe),me=s(61),ge=J(me),W=s(108),Y=J(W),ee=s(62),ne=J(ee);function J(se){return se&&se.__esModule?se:{default:se}}b.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":_.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":i.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":o.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":_.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":i.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":o.FontStyle,"attributors/style/size":h.SizeStyle},!0),b.default.register({"formats/align":_.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":g.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":i.ColorStyle,"formats/font":o.FontClass,"formats/size":h.SizeClass,"formats/blockquote":r.default,"formats/code-block":x.default,"formats/header":t.default,"formats/list":l.default,"formats/bold":v.default,"formats/code":I.Code,"formats/italic":w.default,"formats/link":R.default,"formats/script":p.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":G.default,"formats/video":z.default,"formats/list/item":f.ListItem,"modules/formula":M.default,"modules/syntax":B.default,"modules/toolbar":H.default,"themes/bubble":Y.default,"themes/snow":ne.default,"ui/icons":V.default,"ui/picker":te.default,"ui/icon-picker":he.default,"ui/color-picker":ae.default,"ui/tooltip":ge.default},!0),d.default=b.default},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.IndentClass=void 0;var O=function(){function l(a,i){for(var o=0;o<i.length;o++){var h=i[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}return function(a,i,o){return i&&l(a.prototype,i),o&&l(a,o),a}}(),b=function l(a,i,o){a===null&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,i);if(h===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,o)}else{if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(o)}},_=s(0),y=g(_);function g(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function r(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return c(this,a),r(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return O(a,[{key:"add",value:function(o,h){if(h==="+1"||h==="-1"){var n=this.value(o)||0;h=h==="+1"?n+1:n-1}return h===0?(this.remove(o),!0):b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,o,h)}},{key:"canAdd",value:function(o,h){return b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,o,h)||b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,o,parseInt(h))}},{key:"value",value:function(o){return parseInt(b(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,o))||void 0}}]),a}(y.default.Attributor.Class),f=new t("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});d.IndentClass=f},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(4),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(e){c(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(b.default);r.blotName="blockquote",r.tagName="blockquote",d.default=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function t(f,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(f,i.key,i)}}return function(f,l,a){return l&&t(f.prototype,l),a&&t(f,a),f}}(),b=s(4),_=y(b);function y(t){return t&&t.__esModule?t:{default:t}}function g(t,f){if(!(t instanceof f))throw new TypeError("Cannot call a class as a function")}function c(t,f){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:t}function r(t,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);t.prototype=Object.create(f&&f.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(t,f):t.__proto__=f)}var e=function(t){r(f,t);function f(){return g(this,f),c(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return O(f,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),f}(_.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],d.default=e},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.ListItem=void 0;var O=function(){function n(v,S){for(var w=0;w<S.length;w++){var T=S[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}return function(v,S,w){return S&&n(v.prototype,S),w&&n(v,w),v}}(),b=function n(v,S,w){v===null&&(v=Function.prototype);var T=Object.getOwnPropertyDescriptor(v,S);if(T===void 0){var R=Object.getPrototypeOf(v);return R===null?void 0:n(R,S,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},_=s(0),y=t(_),g=s(4),c=t(g),r=s(25),e=t(r);function t(n){return n&&n.__esModule?n:{default:n}}function f(n,v,S){return v in n?Object.defineProperty(n,v,{value:S,enumerable:!0,configurable:!0,writable:!0}):n[v]=S,n}function l(n,v){if(!(n instanceof v))throw new TypeError("Cannot call a class as a function")}function a(n,v){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:n}function i(n,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);n.prototype=Object.create(v&&v.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(n,v):n.__proto__=v)}var o=function(n){i(v,n);function v(){return l(this,v),a(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return O(v,[{key:"format",value:function(w,T){w===h.blotName&&!T?this.replaceWith(y.default.create(this.statics.scope)):b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,w,T)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,T){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,T),this):(this.parent.unwrap(),b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"replaceWith",this).call(this,w,T))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:b(v.__proto__||Object.getPrototypeOf(v),"formats",this).call(this,w)}}]),v}(c.default);o.blotName="list-item",o.tagName="LI";var h=function(n){i(v,n),O(v,null,[{key:"create",value:function(w){var T=w==="ordered"?"OL":"UL",R=b(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,T);return(w==="checked"||w==="unchecked")&&R.setAttribute("data-checked",w==="checked"),R}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function v(S){l(this,v);var w=a(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,S)),T=function(A){if(A.target.parentNode===S){var p=w.statics.formats(S),E=y.default.find(A.target);p==="checked"?E.format("list","unchecked"):p==="unchecked"&&E.format("list","checked")}};return S.addEventListener("touchstart",T),S.addEventListener("mousedown",T),w}return O(v,[{key:"format",value:function(w,T){this.children.length>0&&this.children.tail.format(w,T)}},{key:"formats",value:function(){return f({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,T){if(w instanceof o)b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,w,T);else{var R=T==null?this.length():T.offset(this),A=this.split(R);A.parent.insertBefore(w,A)}}},{key:"optimize",value:function(w){b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,w);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var T=y.default.create(this.statics.defaultChild);w.moveChildren(T),this.appendChild(T)}b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"replace",this).call(this,w)}}]),v}(e.default);h.blotName="list",h.scope=y.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[o],d.ListItem=o,d.default=h},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(56),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(e){c(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(b.default);r.blotName="italic",r.tagName=["EM","I"],d.default=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function f(l,a){for(var i=0;i<a.length;i++){var o=a[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,a,i){return a&&f(l.prototype,a),i&&f(l,i),l}}(),b=function f(l,a,i){l===null&&(l=Function.prototype);var o=Object.getOwnPropertyDescriptor(l,a);if(o===void 0){var h=Object.getPrototypeOf(l);return h===null?void 0:f(h,a,i)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(i)}},_=s(6),y=g(_);function g(f){return f&&f.__esModule?f:{default:f}}function c(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function r(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:f}function e(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var t=function(f){e(l,f);function l(){return c(this,l),r(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return O(l,null,[{key:"create",value:function(i){return i==="super"?document.createElement("sup"):i==="sub"?document.createElement("sub"):b(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i)}},{key:"formats",value:function(i){if(i.tagName==="SUB")return"sub";if(i.tagName==="SUP")return"super"}}]),l}(y.default);t.blotName="script",t.tagName=["SUB","SUP"],d.default=t},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(6),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(e){c(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(b.default);r.blotName="strike",r.tagName="S",d.default=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=s(6),b=_(O);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(e){c(t,e);function t(){return y(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(b.default);r.blotName="underline",r.tagName="U",d.default=r},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function a(i,o){for(var h=0;h<o.length;h++){var n=o[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,o,h){return o&&a(i.prototype,o),h&&a(i,h),i}}(),b=function a(i,o,h){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,o);if(n===void 0){var v=Object.getPrototypeOf(i);return v===null?void 0:a(v,o,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},_=s(0),y=c(_),g=s(27);function c(a){return a&&a.__esModule?a:{default:a}}function r(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var f=["alt","height","width"],l=function(a){t(i,a);function i(){return r(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return O(i,[{key:"format",value:function(h,n){f.indexOf(h)>-1?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=b(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,h);return typeof h=="string"&&n.setAttribute("src",this.sanitize(h)),n}},{key:"formats",value:function(h){return f.reduce(function(n,v){return h.hasAttribute(v)&&(n[v]=h.getAttribute(v)),n},{})}},{key:"match",value:function(h){return/\.(jpe?g|gif|png)$/.test(h)||/^data:image\/.+;base64/.test(h)}},{key:"sanitize",value:function(h){return(0,g.sanitize)(h,["http","https","data"])?h:"//:0"}},{key:"value",value:function(h){return h.getAttribute("src")}}]),i}(y.default.Embed);l.blotName="image",l.tagName="IMG",d.default=l},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0});var O=function(){function a(i,o){for(var h=0;h<o.length;h++){var n=o[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,o,h){return o&&a(i.prototype,o),h&&a(i,h),i}}(),b=function a(i,o,h){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,o);if(n===void 0){var v=Object.getPrototypeOf(i);return v===null?void 0:a(v,o,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},_=s(4),y=s(27),g=c(y);function c(a){return a&&a.__esModule?a:{default:a}}function r(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var f=["height","width"],l=function(a){t(i,a);function i(){return r(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return O(i,[{key:"format",value:function(h,n){f.indexOf(h)>-1?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):b(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=b(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,h);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(h)),n}},{key:"formats",value:function(h){return f.reduce(function(n,v){return h.hasAttribute(v)&&(n[v]=h.getAttribute(v)),n},{})}},{key:"sanitize",value:function(h){return g.default.sanitize(h)}},{key:"value",value:function(h){return h.getAttribute("src")}}]),i}(_.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",d.default=l},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.FormulaBlot=void 0;var O=function(){function h(n,v){for(var S=0;S<v.length;S++){var w=v[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(n,w.key,w)}}return function(n,v,S){return v&&h(n.prototype,v),S&&h(n,S),n}}(),b=function h(n,v,S){n===null&&(n=Function.prototype);var w=Object.getOwnPropertyDescriptor(n,v);if(w===void 0){var T=Object.getPrototypeOf(n);return T===null?void 0:h(T,v,S)}else{if("value"in w)return w.value;var R=w.get;return R===void 0?void 0:R.call(S)}},_=s(35),y=t(_),g=s(5),c=t(g),r=s(9),e=t(r);function t(h){return h&&h.__esModule?h:{default:h}}function f(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function l(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:h}function a(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}var i=function(h){a(n,h);function n(){return f(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return O(n,null,[{key:"create",value:function(S){var w=b(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",S)),w}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),n}(y.default);i.blotName="formula",i.className="ql-formula",i.tagName="SPAN";var o=function(h){a(n,h),O(n,null,[{key:"register",value:function(){c.default.register(i,!0)}}]);function n(){f(this,n);var v=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return v}return n}(e.default);d.FormulaBlot=i,d.default=o},function(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.CodeToken=d.CodeBlock=void 0;var O=function(){function S(w,T){for(var R=0;R<T.length;R++){var A=T[R];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,R){return T&&S(w.prototype,T),R&&S(w,R),w}}(),b=function S(w,T,R){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var p=Object.getPrototypeOf(w);return p===null?void 0:S(p,T,R)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(R)}},_=s(0),y=l(_),g=s(5),c=l(g),r=s(9),e=l(r),t=s(13),f=l(t);function l(S){return S&&S.__esModule?S:{default:S}}function a(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function i(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 o(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 h=function(S){o(w,S);function w(){return a(this,w),i(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return O(w,[{key:"replaceWith",value:function(R){this.domNode.textContent=this.domNode.textContent,this.attach(),b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,R)}},{key:"highlight",value:function(R){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=R(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),w}(f.default);h.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),v=function(S){o(w,S),O(w,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(h,!0)}}]);function w(T,R){a(this,w);var A=i(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,R));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var p=null;return A.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(p),p=setTimeout(function(){A.highlight(),p=null},A.options.interval)}),A.highlight(),A}return O(w,[{key:"highlight",value:function(){var R=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(p){p.highlight(R.options.highlight)}),this.quill.update(c.default.sources.SILENT),A!=null&&this.quill.setSelection(A,c.default.sources.SILENT)}}}]),w}(e.default);v.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var w=window.hljs.highlightAuto(S);return w.value}}(),interval:1e3},d.CodeBlock=h,d.CodeToken=n,d.default=v},function(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d){m.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(m,d,s){Object.defineProperty(d,"__esModule",{value:!0}),d.default=d.BubbleTooltip=void 0;var O=function w(T,R,A){T===null&&(T=Function.prototype);var p=Object.getOwnPropertyDescriptor(T,R);if(p===void 0){var E=Object.getPrototypeOf(T);return E===null?void 0:w(E,R,A)}else{if("value"in p)return p.value;var N=p.get;return N===void 0?void 0:N.call(A)}},b=function(){function w(T,R){for(var A=0;A<R.length;A++){var p=R[A];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(T,p.key,p)}}return function(T,R,A){return R&&w(T.prototype,R),A&&w(T,A),T}}(),_=s(3),y=a(_),g=s(8),c=a(g),r=s(43),e=a(r),t=s(15),f=s(41),l=a(f);function a(w){return w&&w.__esModule?w:{default:w}}function i(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function o(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function h(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(w){h(T,w);function T(R,A){i(this,T),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=n);var p=o(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,R,A));return p.quill.container.classList.add("ql-bubble"),p}return b(T,[{key:"extendToolbar",value:function(A){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),l.default)}}]),T}(e.default);v.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){T?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(w){h(T,w);function T(R,A){i(this,T);var p=o(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,R,A));return p.quill.on(c.default.events.EDITOR_CHANGE,function(E,N,q,D){if(E===c.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===c.default.sources.USER){p.show(),p.root.style.left="0px",p.root.style.width="",p.root.style.width=p.root.offsetWidth+"px";var K=p.quill.getLines(N.index,N.length);if(K.length===1)p.position(p.quill.getBounds(N));else{var G=K[K.length-1],Q=p.quill.getIndex(G),z=Math.min(G.length()-1,N.index+N.length-Q),I=p.quill.getBounds(new t.Range(Q,z));p.position(I)}}else document.activeElement!==p.textbox&&p.quill.hasFocus()&&p.hide()}),p}return b(T,[{key:"listen",value:function(){var A=this;O(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var p=A.quill.getSelection();p!=null&&A.position(A.quill.getBounds(p))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var p=O(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,A),E=this.root.querySelector(".ql-tooltip-arrow");if(E.style.marginLeft="",p===0)return p;E.style.marginLeft=-1*p-E.offsetWidth/2+"px"}}]),T}(r.BaseTooltip);S.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(""),d.BubbleTooltip=S,d.default=v},function(m,d,s){m.exports=s(63)}]).default})})(Sr);var Pi=Sr.exports;const Gn=pr(Pi);var Ke=-1,Ce=1,Ie=0;function qt(k,C,m,d){if(k===C)return k?[[Ie,k]]:[];if(m!=null){var s=ji(k,C,m);if(s)return s}var O=er(k,C),b=k.substring(0,O);k=k.substring(O),C=C.substring(O),O=tr(k,C);var _=k.substring(k.length-O);k=k.substring(0,k.length-O),C=C.substring(0,C.length-O);var y=Li(k,C);return b&&y.unshift([Ie,b]),_&&y.push([Ie,_]),Nr(y,d),y}function Li(k,C){var m;if(!k)return[[Ce,C]];if(!C)return[[Ke,k]];var d=k.length>C.length?k:C,s=k.length>C.length?C:k,O=d.indexOf(s);if(O!==-1)return m=[[Ce,d.substring(0,O)],[Ie,s],[Ce,d.substring(O+s.length)]],k.length>C.length&&(m[0][0]=m[2][0]=Ke),m;if(s.length===1)return[[Ke,k],[Ce,C]];var b=qi(k,C);if(b){var _=b[0],y=b[1],g=b[2],c=b[3],r=b[4],e=qt(_,g),t=qt(y,c);return e.concat([[Ie,r]],t)}return Ri(k,C)}function Ri(k,C){for(var m=k.length,d=C.length,s=Math.ceil((m+d)/2),O=s,b=2*s,_=new Array(b),y=new Array(b),g=0;g<b;g++)_[g]=-1,y[g]=-1;_[O+1]=0,y[O+1]=0;for(var c=m-d,r=c%2!==0,e=0,t=0,f=0,l=0,a=0;a<s;a++){for(var i=-a+e;i<=a-t;i+=2){var o=O+i,h;i===-a||i!==a&&_[o-1]<_[o+1]?h=_[o+1]:h=_[o-1]+1;for(var n=h-i;h<m&&n<d&&k.charAt(h)===C.charAt(n);)h++,n++;if(_[o]=h,h>m)t+=2;else if(n>d)e+=2;else if(r){var v=O+c-i;if(v>=0&&v<b&&y[v]!==-1){var S=m-y[v];if(h>=S)return ur(k,C,h,n)}}}for(var w=-a+f;w<=a-l;w+=2){var v=O+w,S;w===-a||w!==a&&y[v-1]<y[v+1]?S=y[v+1]:S=y[v-1]+1;for(var T=S-w;S<m&&T<d&&k.charAt(m-S-1)===C.charAt(d-T-1);)S++,T++;if(y[v]=S,S>m)l+=2;else if(T>d)f+=2;else if(!r){var o=O+c-w;if(o>=0&&o<b&&_[o]!==-1){var h=_[o],n=O+h-o;if(S=m-S,h>=S)return ur(k,C,h,n)}}}}return[[Ke,k],[Ce,C]]}function ur(k,C,m,d){var s=k.substring(0,m),O=C.substring(0,d),b=k.substring(m),_=C.substring(d),y=qt(s,O),g=qt(b,_);return y.concat(g)}function er(k,C){if(!k||!C||k.charAt(0)!==C.charAt(0))return 0;for(var m=0,d=Math.min(k.length,C.length),s=d,O=0;m<s;)k.substring(O,s)==C.substring(O,s)?(m=s,O=m):d=s,s=Math.floor((d-m)/2+m);return xr(k.charCodeAt(s-1))&&s--,s}function tr(k,C){if(!k||!C||k.slice(-1)!==C.slice(-1))return 0;for(var m=0,d=Math.min(k.length,C.length),s=d,O=0;m<s;)k.substring(k.length-s,k.length-O)==C.substring(C.length-s,C.length-O)?(m=s,O=m):d=s,s=Math.floor((d-m)/2+m);return Pr(k.charCodeAt(k.length-s))&&s--,s}function qi(k,C){var m=k.length>C.length?k:C,d=k.length>C.length?C:k;if(m.length<4||d.length*2<m.length)return null;function s(t,f,l){for(var a=t.substring(l,l+Math.floor(t.length/4)),i=-1,o="",h,n,v,S;(i=f.indexOf(a,i+1))!==-1;){var w=er(t.substring(l),f.substring(i)),T=tr(t.substring(0,l),f.substring(0,i));o.length<T+w&&(o=f.substring(i-T,i)+f.substring(i,i+w),h=t.substring(0,l-T),n=t.substring(l+w),v=f.substring(0,i-T),S=f.substring(i+w))}return o.length*2>=t.length?[h,n,v,S,o]:null}var O=s(m,d,Math.ceil(m.length/4)),b=s(m,d,Math.ceil(m.length/2)),_;if(!O&&!b)return null;b?O?_=O[4].length>b[4].length?O:b:_=b:_=O;var y,g,c,r;k.length>C.length?(y=_[0],g=_[1],c=_[2],r=_[3]):(c=_[0],r=_[1],y=_[2],g=_[3]);var e=_[4];return[y,g,c,r,e]}function Nr(k,C){k.push([Ie,""]);for(var m=0,d=0,s=0,O="",b="",_;m<k.length;){if(m<k.length-1&&!k[m][1]){k.splice(m,1);continue}switch(k[m][0]){case Ce:s++,b+=k[m][1],m++;break;case Ke:d++,O+=k[m][1],m++;break;case Ie:var y=m-s-d-1;if(C){if(y>=0&&Rr(k[y][1])){var g=k[y][1].slice(-1);if(k[y][1]=k[y][1].slice(0,-1),O=g+O,b=g+b,!k[y][1]){k.splice(y,1),m--;var c=y-1;k[c]&&k[c][0]===Ce&&(s++,b=k[c][1]+b,c--),k[c]&&k[c][0]===Ke&&(d++,O=k[c][1]+O,c--),y=c}}if(Lr(k[m][1])){var g=k[m][1].charAt(0);k[m][1]=k[m][1].slice(1),O+=g,b+=g}}if(m<k.length-1&&!k[m][1]){k.splice(m,1);break}if(O.length>0||b.length>0){O.length>0&&b.length>0&&(_=er(b,O),_!==0&&(y>=0?k[y][1]+=b.substring(0,_):(k.splice(0,0,[Ie,b.substring(0,_)]),m++),b=b.substring(_),O=O.substring(_)),_=tr(b,O),_!==0&&(k[m][1]=b.substring(b.length-_)+k[m][1],b=b.substring(0,b.length-_),O=O.substring(0,O.length-_)));var r=s+d;O.length===0&&b.length===0?(k.splice(m-r,r),m=m-r):O.length===0?(k.splice(m-r,r,[Ce,b]),m=m-r+1):b.length===0?(k.splice(m-r,r,[Ke,O]),m=m-r+1):(k.splice(m-r,r,[Ke,O],[Ce,b]),m=m-r+2)}m!==0&&k[m-1][0]===Ie?(k[m-1][1]+=k[m][1],k.splice(m,1)):m++,s=0,d=0,O="",b="";break}}k[k.length-1][1]===""&&k.pop();var e=!1;for(m=1;m<k.length-1;)k[m-1][0]===Ie&&k[m+1][0]===Ie&&(k[m][1].substring(k[m][1].length-k[m-1][1].length)===k[m-1][1]?(k[m][1]=k[m-1][1]+k[m][1].substring(0,k[m][1].length-k[m-1][1].length),k[m+1][1]=k[m-1][1]+k[m+1][1],k.splice(m-1,1),e=!0):k[m][1].substring(0,k[m+1][1].length)==k[m+1][1]&&(k[m-1][1]+=k[m+1][1],k[m][1]=k[m][1].substring(k[m+1][1].length)+k[m+1][1],k.splice(m+1,1),e=!0)),m++;e&&Nr(k,C)}function xr(k){return k>=55296&&k<=56319}function Pr(k){return k>=56320&&k<=57343}function Lr(k){return Pr(k.charCodeAt(0))}function Rr(k){return xr(k.charCodeAt(k.length-1))}function Ii(k){for(var C=[],m=0;m<k.length;m++)k[m][1].length>0&&C.push(k[m]);return C}function Vn(k,C,m,d){return Rr(k)||Lr(d)?null:Ii([[Ie,k],[Ke,C],[Ce,m],[Ie,d]])}function ji(k,C,m){var d=typeof m=="number"?{index:m,length:0}:m.oldRange,s=typeof m=="number"?null:m.newRange,O=k.length,b=C.length;if(d.length===0&&(s===null||s.length===0)){var _=d.index,y=k.slice(0,_),g=k.slice(_),c=s?s.index:null;e:{var r=_+b-O;if(c!==null&&c!==r||r<0||r>b)break e;var e=C.slice(0,r),t=C.slice(r);if(t!==g)break e;var f=Math.min(_,r),l=y.slice(0,f),a=e.slice(0,f);if(l!==a)break e;var i=y.slice(f),o=e.slice(f);return Vn(l,i,o,g)}e:{if(c!==null&&c!==_)break e;var h=_,e=C.slice(0,h),t=C.slice(h);if(e!==y)break e;var n=Math.min(O-h,b-h),v=g.slice(g.length-n),S=t.slice(t.length-n);if(v!==S)break e;var i=g.slice(0,g.length-n),o=t.slice(0,t.length-n);return Vn(y,i,o,v)}}if(d.length>0&&s&&s.length===0)e:{var l=k.slice(0,d.index),v=k.slice(d.index+d.length),f=l.length,n=v.length;if(b<f+n)break e;var a=C.slice(0,f),S=C.slice(b-n);if(l!==a||v!==S)break e;var i=k.slice(f,O-n),o=C.slice(f,b-n);return Vn(l,i,o,v)}return null}function on(k,C,m){return qt(k,C,m,!0)}on.INSERT=Ce;on.DELETE=Ke;on.EQUAL=Ie;var Mi=on,nn={exports:{}};nn.exports;(function(k,C){var m=200,d="__lodash_hash_undefined__",s=9007199254740991,O="[object Arguments]",b="[object Array]",_="[object Boolean]",y="[object Date]",g="[object Error]",c="[object Function]",r="[object GeneratorFunction]",e="[object Map]",t="[object Number]",f="[object Object]",l="[object Promise]",a="[object RegExp]",i="[object Set]",o="[object String]",h="[object Symbol]",n="[object WeakMap]",v="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",R="[object Int8Array]",A="[object Int16Array]",p="[object Int32Array]",E="[object Uint8Array]",N="[object Uint8ClampedArray]",q="[object Uint16Array]",D="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,Q=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,I={};I[O]=I[b]=I[v]=I[S]=I[_]=I[y]=I[w]=I[T]=I[R]=I[A]=I[p]=I[e]=I[t]=I[f]=I[a]=I[i]=I[o]=I[h]=I[E]=I[N]=I[q]=I[D]=!0,I[g]=I[c]=I[n]=!1;var x=typeof ke=="object"&&ke&&ke.Object===Object&&ke,j=typeof self=="object"&&self&&self.Object===Object&&self,M=x||j||Function("return this")(),F=C&&!C.nodeType&&C,B=F&&!0&&k&&!k.nodeType&&k,L=B&&B.exports===F;function H(u,P){return u.set(P[0],P[1]),u}function $(u,P){return u.add(P),u}function V(u,P){for(var U=-1,Z=u?u.length:0;++U<Z&&P(u[U],U,u)!==!1;);return u}function X(u,P){for(var U=-1,Z=P.length,ue=u.length;++U<Z;)u[ue+U]=P[U];return u}function te(u,P,U,Z){var ue=-1,re=u?u.length:0;for(Z&&re&&(U=u[++ue]);++ue<re;)U=P(U,u[ue],ue,u);return U}function ie(u,P){for(var U=-1,Z=Array(u);++U<u;)Z[U]=P(U);return Z}function ae(u,P){return u==null?void 0:u[P]}function fe(u){var P=!1;if(u!=null&&typeof u.toString!="function")try{P=!!(u+"")}catch{}return P}function he(u){var P=-1,U=Array(u.size);return u.forEach(function(Z,ue){U[++P]=[ue,Z]}),U}function me(u,P){return function(U){return u(P(U))}}function ge(u){var P=-1,U=Array(u.size);return u.forEach(function(Z){U[++P]=Z}),U}var W=Array.prototype,Y=Function.prototype,ee=Object.prototype,ne=M["__core-js_shared__"],J=function(){var u=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),se=Y.toString,oe=ee.hasOwnProperty,le=ee.toString,Se=RegExp("^"+se.call(oe).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=L?M.Buffer:void 0,pe=M.Symbol,Je=M.Uint8Array,de=me(Object.getPrototypeOf,Object),je=Object.create,Mt=ee.propertyIsEnumerable,an=W.splice,gt=Object.getOwnPropertySymbols,lt=Ee?Ee.isBuffer:void 0,Dt=me(Object.keys,Object),ut=De(M,"DataView"),et=De(M,"Map"),Me=De(M,"Promise"),st=De(M,"Set"),mt=De(M,"WeakMap"),tt=De(Object,"create"),bt=Le(ut),nt=Le(et),_t=Le(Me),Ot=Le(st),Et=Le(mt),Ye=pe?pe.prototype:void 0,Bt=Ye?Ye.valueOf:void 0;function Ge(u){var P=-1,U=u?u.length:0;for(this.clear();++P<U;){var Z=u[P];this.set(Z[0],Z[1])}}function ln(){this.__data__=tt?tt(null):{}}function un(u){return this.has(u)&&delete this.__data__[u]}function sn(u){var P=this.__data__;if(tt){var U=P[u];return U===d?void 0:U}return oe.call(P,u)?P[u]:void 0}function Ct(u){var P=this.__data__;return tt?P[u]!==void 0:oe.call(P,u)}function At(u,P){var U=this.__data__;return U[u]=tt&&P===void 0?d:P,this}Ge.prototype.clear=ln,Ge.prototype.delete=un,Ge.prototype.get=sn,Ge.prototype.has=Ct,Ge.prototype.set=At;function Ae(u){var P=-1,U=u?u.length:0;for(this.clear();++P<U;){var Z=u[P];this.set(Z[0],Z[1])}}function fn(){this.__data__=[]}function cn(u){var P=this.__data__,U=ct(P,u);if(U<0)return!1;var Z=P.length-1;return U==Z?P.pop():an.call(P,U,1),!0}function hn(u){var P=this.__data__,U=ct(P,u);return U<0?void 0:P[U][1]}function dn(u){return ct(this.__data__,u)>-1}function vn(u,P){var U=this.__data__,Z=ct(U,u);return Z<0?U.push([u,P]):U[Z][1]=P,this}Ae.prototype.clear=fn,Ae.prototype.delete=cn,Ae.prototype.get=hn,Ae.prototype.has=dn,Ae.prototype.set=vn;function Ne(u){var P=-1,U=u?u.length:0;for(this.clear();++P<U;){var Z=u[P];this.set(Z[0],Z[1])}}function pn(){this.__data__={hash:new Ge,map:new(et||Ae),string:new Ge}}function yn(u){return it(this,u).delete(u)}function gn(u){return it(this,u).get(u)}function mn(u){return it(this,u).has(u)}function bn(u,P){return it(this,u).set(u,P),this}Ne.prototype.clear=pn,Ne.prototype.delete=yn,Ne.prototype.get=gn,Ne.prototype.has=mn,Ne.prototype.set=bn;function Re(u){this.__data__=new Ae(u)}function _n(){this.__data__=new Ae}function On(u){return this.__data__.delete(u)}function En(u){return this.__data__.get(u)}function An(u){return this.__data__.has(u)}function wn(u,P){var U=this.__data__;if(U instanceof Ae){var Z=U.__data__;if(!et||Z.length<m-1)return Z.push([u,P]),this;U=this.__data__=new Ne(Z)}return U.set(u,P),this}Re.prototype.clear=_n,Re.prototype.delete=On,Re.prototype.get=En,Re.prototype.has=An,Re.prototype.set=wn;function ft(u,P){var U=St(u)||dt(u)?ie(u.length,String):[],Z=U.length,ue=!!Z;for(var re in u)(P||oe.call(u,re))&&!(ue&&(re=="length"||Bn(re,Z)))&&U.push(re);return U}function Ft(u,P,U){var Z=u[P];(!(oe.call(u,P)&&$t(Z,U))||U===void 0&&!(P in u))&&(u[P]=U)}function ct(u,P){for(var U=u.length;U--;)if($t(u[U][0],P))return U;return-1}function Fe(u,P){return u&&kt(P,xt(P),u)}function wt(u,P,U,Z,ue,re,ce){var ve;if(Z&&(ve=re?Z(u,ue,re,ce):Z(u)),ve!==void 0)return ve;if(!He(u))return u;var be=St(u);if(be){if(ve=Mn(u),!P)return qn(u,ve)}else{var ye=Ze(u),xe=ye==c||ye==r;if(Gt(u))return ht(u,P);if(ye==f||ye==O||xe&&!re){if(fe(u))return re?u:{};if(ve=Ue(xe?{}:u),!P)return In(u,Fe(ve,u))}else{if(!I[ye])return re?u:{};ve=Dn(u,ye,wt,P)}}ce||(ce=new Re);var qe=ce.get(u);if(qe)return qe;if(ce.set(u,ve),!be)var _e=U?jn(u):xt(u);return V(_e||u,function(Pe,we){_e&&(we=Pe,Pe=u[we]),Ft(ve,we,wt(Pe,P,U,Z,we,u,ce))}),ve}function Tn(u){return He(u)?je(u):{}}function kn(u,P,U){var Z=P(u);return St(u)?Z:X(Z,U(u))}function Sn(u){return le.call(u)}function Nn(u){if(!He(u)||Fn(u))return!1;var P=Nt(u)||fe(u)?Se:Q;return P.test(Le(u))}function xn(u){if(!zt(u))return Dt(u);var P=[];for(var U in Object(u))oe.call(u,U)&&U!="constructor"&&P.push(U);return P}function ht(u,P){if(P)return u.slice();var U=new u.constructor(u.length);return u.copy(U),U}function Tt(u){var P=new u.constructor(u.byteLength);return new Je(P).set(new Je(u)),P}function rt(u,P){var U=P?Tt(u.buffer):u.buffer;return new u.constructor(U,u.byteOffset,u.byteLength)}function Ut(u,P,U){var Z=P?U(he(u),!0):he(u);return te(Z,H,new u.constructor)}function Ht(u){var P=new u.constructor(u.source,G.exec(u));return P.lastIndex=u.lastIndex,P}function Pn(u,P,U){var Z=P?U(ge(u),!0):ge(u);return te(Z,$,new u.constructor)}function Ln(u){return Bt?Object(Bt.call(u)):{}}function Rn(u,P){var U=P?Tt(u.buffer):u.buffer;return new u.constructor(U,u.byteOffset,u.length)}function qn(u,P){var U=-1,Z=u.length;for(P||(P=Array(Z));++U<Z;)P[U]=u[U];return P}function kt(u,P,U,Z){U||(U={});for(var ue=-1,re=P.length;++ue<re;){var ce=P[ue],ve=Z?Z(U[ce],u[ce],ce,U,u):void 0;Ft(U,ce,ve===void 0?u[ce]:ve)}return U}function In(u,P){return kt(u,Ve(u),P)}function jn(u){return kn(u,xt,Ve)}function it(u,P){var U=u.__data__;return Cn(P)?U[typeof P=="string"?"string":"hash"]:U.map}function De(u,P){var U=ae(u,P);return Nn(U)?U:void 0}var Ve=gt?me(gt,Object):Hn,Ze=Sn;(ut&&Ze(new ut(new ArrayBuffer(1)))!=S||et&&Ze(new et)!=e||Me&&Ze(Me.resolve())!=l||st&&Ze(new st)!=i||mt&&Ze(new mt)!=n)&&(Ze=function(u){var P=le.call(u),U=P==f?u.constructor:void 0,Z=U?Le(U):void 0;if(Z)switch(Z){case bt:return S;case nt:return e;case _t:return l;case Ot:return i;case Et:return n}return P});function Mn(u){var P=u.length,U=u.constructor(P);return P&&typeof u[0]=="string"&&oe.call(u,"index")&&(U.index=u.index,U.input=u.input),U}function Ue(u){return typeof u.constructor=="function"&&!zt(u)?Tn(de(u)):{}}function Dn(u,P,U,Z){var ue=u.constructor;switch(P){case v:return Tt(u);case _:case y:return new ue(+u);case S:return rt(u,Z);case w:case T:case R:case A:case p:case E:case N:case q:case D:return Rn(u,Z);case e:return Ut(u,Z,U);case t:case o:return new ue(u);case a:return Ht(u);case i:return Pn(u,Z,U);case h:return Ln(u)}}function Bn(u,P){return P=P??s,!!P&&(typeof u=="number"||z.test(u))&&u>-1&&u%1==0&&u<P}function Cn(u){var P=typeof u;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?u!=="__proto__":u===null}function Fn(u){return!!J&&J in u}function zt(u){var P=u&&u.constructor,U=typeof P=="function"&&P.prototype||ee;return u===U}function Le(u){if(u!=null){try{return se.call(u)}catch{}try{return u+""}catch{}}return""}function Kt(u){return wt(u,!0,!0)}function $t(u,P){return u===P||u!==u&&P!==P}function dt(u){return Un(u)&&oe.call(u,"callee")&&(!Mt.call(u,"callee")||le.call(u)==O)}var St=Array.isArray;function vt(u){return u!=null&&Vt(u.length)&&!Nt(u)}function Un(u){return Zt(u)&&vt(u)}var Gt=lt||zn;function Nt(u){var P=He(u)?le.call(u):"";return P==c||P==r}function Vt(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=s}function He(u){var P=typeof u;return!!u&&(P=="object"||P=="function")}function Zt(u){return!!u&&typeof u=="object"}function xt(u){return vt(u)?ft(u):xn(u)}function Hn(){return[]}function zn(){return!1}k.exports=Kt})(nn,nn.exports);var qr=nn.exports,rn={exports:{}};rn.exports;(function(k,C){var m=200,d="__lodash_hash_undefined__",s=1,O=2,b=9007199254740991,_="[object Arguments]",y="[object Array]",g="[object AsyncFunction]",c="[object Boolean]",r="[object Date]",e="[object Error]",t="[object Function]",f="[object GeneratorFunction]",l="[object Map]",a="[object Number]",i="[object Null]",o="[object Object]",h="[object Promise]",n="[object Proxy]",v="[object RegExp]",S="[object Set]",w="[object String]",T="[object Symbol]",R="[object Undefined]",A="[object WeakMap]",p="[object ArrayBuffer]",E="[object DataView]",N="[object Float32Array]",q="[object Float64Array]",D="[object Int8Array]",K="[object Int16Array]",G="[object Int32Array]",Q="[object Uint8Array]",z="[object Uint8ClampedArray]",I="[object Uint16Array]",x="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,B={};B[N]=B[q]=B[D]=B[K]=B[G]=B[Q]=B[z]=B[I]=B[x]=!0,B[_]=B[y]=B[p]=B[c]=B[E]=B[r]=B[e]=B[t]=B[l]=B[a]=B[o]=B[v]=B[S]=B[w]=B[A]=!1;var L=typeof ke=="object"&&ke&&ke.Object===Object&&ke,H=typeof self=="object"&&self&&self.Object===Object&&self,$=L||H||Function("return this")(),V=C&&!C.nodeType&&C,X=V&&!0&&k&&!k.nodeType&&k,te=X&&X.exports===V,ie=te&&L.process,ae=function(){try{return ie&&ie.binding&&ie.binding("util")}catch{}}(),fe=ae&&ae.isTypedArray;function he(u,P){for(var U=-1,Z=u==null?0:u.length,ue=0,re=[];++U<Z;){var ce=u[U];P(ce,U,u)&&(re[ue++]=ce)}return re}function me(u,P){for(var U=-1,Z=P.length,ue=u.length;++U<Z;)u[ue+U]=P[U];return u}function ge(u,P){for(var U=-1,Z=u==null?0:u.length;++U<Z;)if(P(u[U],U,u))return!0;return!1}function W(u,P){for(var U=-1,Z=Array(u);++U<u;)Z[U]=P(U);return Z}function Y(u){return function(P){return u(P)}}function ee(u,P){return u.has(P)}function ne(u,P){return u==null?void 0:u[P]}function J(u){var P=-1,U=Array(u.size);return u.forEach(function(Z,ue){U[++P]=[ue,Z]}),U}function se(u,P){return function(U){return u(P(U))}}function oe(u){var P=-1,U=Array(u.size);return u.forEach(function(Z){U[++P]=Z}),U}var le=Array.prototype,Se=Function.prototype,Ee=Object.prototype,pe=$["__core-js_shared__"],Je=Se.toString,de=Ee.hasOwnProperty,je=function(){var u=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Mt=Ee.toString,an=RegExp("^"+Je.call(de).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=te?$.Buffer:void 0,lt=$.Symbol,Dt=$.Uint8Array,ut=Ee.propertyIsEnumerable,et=le.splice,Me=lt?lt.toStringTag:void 0,st=Object.getOwnPropertySymbols,mt=gt?gt.isBuffer:void 0,tt=se(Object.keys,Object),bt=Ve($,"DataView"),nt=Ve($,"Map"),_t=Ve($,"Promise"),Ot=Ve($,"Set"),Et=Ve($,"WeakMap"),Ye=Ve(Object,"create"),Bt=Le(bt),Ge=Le(nt),ln=Le(_t),un=Le(Ot),sn=Le(Et),Ct=lt?lt.prototype:void 0,At=Ct?Ct.valueOf:void 0;function Ae(u){var P=-1,U=u==null?0:u.length;for(this.clear();++P<U;){var Z=u[P];this.set(Z[0],Z[1])}}function fn(){this.__data__=Ye?Ye(null):{},this.size=0}function cn(u){var P=this.has(u)&&delete this.__data__[u];return this.size-=P?1:0,P}function hn(u){var P=this.__data__;if(Ye){var U=P[u];return U===d?void 0:U}return de.call(P,u)?P[u]:void 0}function dn(u){var P=this.__data__;return Ye?P[u]!==void 0:de.call(P,u)}function vn(u,P){var U=this.__data__;return this.size+=this.has(u)?0:1,U[u]=Ye&&P===void 0?d:P,this}Ae.prototype.clear=fn,Ae.prototype.delete=cn,Ae.prototype.get=hn,Ae.prototype.has=dn,Ae.prototype.set=vn;function Ne(u){var P=-1,U=u==null?0:u.length;for(this.clear();++P<U;){var Z=u[P];this.set(Z[0],Z[1])}}function pn(){this.__data__=[],this.size=0}function yn(u){var P=this.__data__,U=ht(P,u);if(U<0)return!1;var Z=P.length-1;return U==Z?P.pop():et.call(P,U,1),--this.size,!0}function gn(u){var P=this.__data__,U=ht(P,u);return U<0?void 0:P[U][1]}function mn(u){return ht(this.__data__,u)>-1}function bn(u,P){var U=this.__data__,Z=ht(U,u);return Z<0?(++this.size,U.push([u,P])):U[Z][1]=P,this}Ne.prototype.clear=pn,Ne.prototype.delete=yn,Ne.prototype.get=gn,Ne.prototype.has=mn,Ne.prototype.set=bn;function Re(u){var P=-1,U=u==null?0:u.length;for(this.clear();++P<U;){var Z=u[P];this.set(Z[0],Z[1])}}function _n(){this.size=0,this.__data__={hash:new Ae,map:new(nt||Ne),string:new Ae}}function On(u){var P=De(this,u).delete(u);return this.size-=P?1:0,P}function En(u){return De(this,u).get(u)}function An(u){return De(this,u).has(u)}function wn(u,P){var U=De(this,u),Z=U.size;return U.set(u,P),this.size+=U.size==Z?0:1,this}Re.prototype.clear=_n,Re.prototype.delete=On,Re.prototype.get=En,Re.prototype.has=An,Re.prototype.set=wn;function ft(u){var P=-1,U=u==null?0:u.length;for(this.__data__=new Re;++P<U;)this.add(u[P])}function Ft(u){return this.__data__.set(u,d),this}function ct(u){return this.__data__.has(u)}ft.prototype.add=ft.prototype.push=Ft,ft.prototype.has=ct;function Fe(u){var P=this.__data__=new Ne(u);this.size=P.size}function wt(){this.__data__=new Ne,this.size=0}function Tn(u){var P=this.__data__,U=P.delete(u);return this.size=P.size,U}function kn(u){return this.__data__.get(u)}function Sn(u){return this.__data__.has(u)}function Nn(u,P){var U=this.__data__;if(U instanceof Ne){var Z=U.__data__;if(!nt||Z.length<m-1)return Z.push([u,P]),this.size=++U.size,this;U=this.__data__=new Re(Z)}return U.set(u,P),this.size=U.size,this}Fe.prototype.clear=wt,Fe.prototype.delete=Tn,Fe.prototype.get=kn,Fe.prototype.has=Sn,Fe.prototype.set=Nn;function xn(u,P){var U=dt(u),Z=!U&&$t(u),ue=!U&&!Z&&vt(u),re=!U&&!Z&&!ue&&Zt(u),ce=U||Z||ue||re,ve=ce?W(u.length,String):[],be=ve.length;for(var ye in u)(P||de.call(u,ye))&&!(ce&&(ye=="length"||ue&&(ye=="offset"||ye=="parent")||re&&(ye=="buffer"||ye=="byteLength"||ye=="byteOffset")||Dn(ye,be)))&&ve.push(ye);return ve}function ht(u,P){for(var U=u.length;U--;)if(Kt(u[U][0],P))return U;return-1}function Tt(u,P,U){var Z=P(u);return dt(u)?Z:me(Z,U(u))}function rt(u){return u==null?u===void 0?R:i:Me&&Me in Object(u)?Ze(u):zt(u)}function Ut(u){return He(u)&&rt(u)==_}function Ht(u,P,U,Z,ue){return u===P?!0:u==null||P==null||!He(u)&&!He(P)?u!==u&&P!==P:Pn(u,P,U,Z,Ht,ue)}function Pn(u,P,U,Z,ue,re){var ce=dt(u),ve=dt(P),be=ce?y:Ue(u),ye=ve?y:Ue(P);be=be==_?o:be,ye=ye==_?o:ye;var xe=be==o,qe=ye==o,_e=be==ye;if(_e&&vt(u)){if(!vt(P))return!1;ce=!0,xe=!1}if(_e&&!xe)return re||(re=new Fe),ce||Zt(u)?kt(u,P,U,Z,ue,re):In(u,P,be,U,Z,ue,re);if(!(U&s)){var Pe=xe&&de.call(u,"__wrapped__"),we=qe&&de.call(P,"__wrapped__");if(Pe||we){var Xe=Pe?u.value():u,We=we?P.value():P;return re||(re=new Fe),ue(Xe,We,U,Z,re)}}return _e?(re||(re=new Fe),jn(u,P,U,Z,ue,re)):!1}function Ln(u){if(!Vt(u)||Cn(u))return!1;var P=Gt(u)?an:M;return P.test(Le(u))}function Rn(u){return He(u)&&Nt(u.length)&&!!B[rt(u)]}function qn(u){if(!Fn(u))return tt(u);var P=[];for(var U in Object(u))de.call(u,U)&&U!="constructor"&&P.push(U);return P}function kt(u,P,U,Z,ue,re){var ce=U&s,ve=u.length,be=P.length;if(ve!=be&&!(ce&&be>ve))return!1;var ye=re.get(u);if(ye&&re.get(P))return ye==P;var xe=-1,qe=!0,_e=U&O?new ft:void 0;for(re.set(u,P),re.set(P,u);++xe<ve;){var Pe=u[xe],we=P[xe];if(Z)var Xe=ce?Z(we,Pe,xe,P,u,re):Z(Pe,we,xe,u,P,re);if(Xe!==void 0){if(Xe)continue;qe=!1;break}if(_e){if(!ge(P,function(We,ot){if(!ee(_e,ot)&&(Pe===We||ue(Pe,We,U,Z,re)))return _e.push(ot)})){qe=!1;break}}else if(!(Pe===we||ue(Pe,we,U,Z,re))){qe=!1;break}}return re.delete(u),re.delete(P),qe}function In(u,P,U,Z,ue,re,ce){switch(U){case E:if(u.byteLength!=P.byteLength||u.byteOffset!=P.byteOffset)return!1;u=u.buffer,P=P.buffer;case p:return!(u.byteLength!=P.byteLength||!re(new Dt(u),new Dt(P)));case c:case r:case a:return Kt(+u,+P);case e:return u.name==P.name&&u.message==P.message;case v:case w:return u==P+"";case l:var ve=J;case S:var be=Z&s;if(ve||(ve=oe),u.size!=P.size&&!be)return!1;var ye=ce.get(u);if(ye)return ye==P;Z|=O,ce.set(u,P);var xe=kt(ve(u),ve(P),Z,ue,re,ce);return ce.delete(u),xe;case T:if(At)return At.call(u)==At.call(P)}return!1}function jn(u,P,U,Z,ue,re){var ce=U&s,ve=it(u),be=ve.length,ye=it(P),xe=ye.length;if(be!=xe&&!ce)return!1;for(var qe=be;qe--;){var _e=ve[qe];if(!(ce?_e in P:de.call(P,_e)))return!1}var Pe=re.get(u);if(Pe&&re.get(P))return Pe==P;var we=!0;re.set(u,P),re.set(P,u);for(var Xe=ce;++qe<be;){_e=ve[qe];var We=u[_e],ot=P[_e];if(Z)var rr=ce?Z(ot,We,_e,P,u,re):Z(We,ot,_e,u,P,re);if(!(rr===void 0?We===ot||ue(We,ot,U,Z,re):rr)){we=!1;break}Xe||(Xe=_e=="constructor")}if(we&&!Xe){var Wt=u.constructor,Yt=P.constructor;Wt!=Yt&&"constructor"in u&&"constructor"in P&&!(typeof Wt=="function"&&Wt instanceof Wt&&typeof Yt=="function"&&Yt instanceof Yt)&&(we=!1)}return re.delete(u),re.delete(P),we}function it(u){return Tt(u,xt,Mn)}function De(u,P){var U=u.__data__;return Bn(P)?U[typeof P=="string"?"string":"hash"]:U.map}function Ve(u,P){var U=ne(u,P);return Ln(U)?U:void 0}function Ze(u){var P=de.call(u,Me),U=u[Me];try{u[Me]=void 0;var Z=!0}catch{}var ue=Mt.call(u);return Z&&(P?u[Me]=U:delete u[Me]),ue}var Mn=st?function(u){return u==null?[]:(u=Object(u),he(st(u),function(P){return ut.call(u,P)}))}:Hn,Ue=rt;(bt&&Ue(new bt(new ArrayBuffer(1)))!=E||nt&&Ue(new nt)!=l||_t&&Ue(_t.resolve())!=h||Ot&&Ue(new Ot)!=S||Et&&Ue(new Et)!=A)&&(Ue=function(u){var P=rt(u),U=P==o?u.constructor:void 0,Z=U?Le(U):"";if(Z)switch(Z){case Bt:return E;case Ge:return l;case ln:return h;case un:return S;case sn:return A}return P});function Dn(u,P){return P=P??b,!!P&&(typeof u=="number"||F.test(u))&&u>-1&&u%1==0&&u<P}function Bn(u){var P=typeof u;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?u!=="__proto__":u===null}function Cn(u){return!!je&&je in u}function Fn(u){var P=u&&u.constructor,U=typeof P=="function"&&P.prototype||Ee;return u===U}function zt(u){return Mt.call(u)}function Le(u){if(u!=null){try{return Je.call(u)}catch{}try{return u+""}catch{}}return""}function Kt(u,P){return u===P||u!==u&&P!==P}var $t=Ut(function(){return arguments}())?Ut:function(u){return He(u)&&de.call(u,"callee")&&!ut.call(u,"callee")},dt=Array.isArray;function St(u){return u!=null&&Nt(u.length)&&!Gt(u)}var vt=mt||zn;function Un(u,P){return Ht(u,P)}function Gt(u){if(!Vt(u))return!1;var P=rt(u);return P==t||P==f||P==g||P==n}function Nt(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=b}function Vt(u){var P=typeof u;return u!=null&&(P=="object"||P=="function")}function He(u){return u!=null&&typeof u=="object"}var Zt=fe?Y(fe):Rn;function xt(u){return St(u)?xn(u):qn(u)}function Hn(){return[]}function zn(){return!1}k.exports=Un})(rn,rn.exports);var Ir=rn.exports,nr={},jr=ke&&ke.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(nr,"__esModule",{value:!0});var Di=jr(qr),Bi=jr(Ir),Xn;(function(k){function C(O,b,_){O===void 0&&(O={}),b===void 0&&(b={}),typeof O!="object"&&(O={}),typeof b!="object"&&(b={});var y=Di.default(b);_||(y=Object.keys(y).reduce(function(c,r){return y[r]!=null&&(c[r]=y[r]),c},{}));for(var g in O)O[g]!==void 0&&b[g]===void 0&&(y[g]=O[g]);return Object.keys(y).length>0?y:void 0}k.compose=C;function m(O,b){O===void 0&&(O={}),b===void 0&&(b={}),typeof O!="object"&&(O={}),typeof b!="object"&&(b={});var _=Object.keys(O).concat(Object.keys(b)).reduce(function(y,g){return Bi.default(O[g],b[g])||(y[g]=b[g]===void 0?null:b[g]),y},{});return Object.keys(_).length>0?_:void 0}k.diff=m;function d(O,b){O===void 0&&(O={}),b===void 0&&(b={}),O=O||{};var _=Object.keys(b).reduce(function(y,g){return b[g]!==O[g]&&O[g]!==void 0&&(y[g]=b[g]),y},{});return Object.keys(O).reduce(function(y,g){return O[g]!==b[g]&&b[g]===void 0&&(y[g]=null),y},_)}k.invert=d;function s(O,b,_){if(_===void 0&&(_=!1),typeof O!="object")return b;if(typeof b=="object"){if(!_)return b;var y=Object.keys(b).reduce(function(g,c){return O[c]===void 0&&(g[c]=b[c]),g},{});return Object.keys(y).length>0?y:void 0}}k.transform=s})(Xn||(Xn={}));nr.default=Xn;var Qt={},Jt={},sr;function Ci(){if(sr)return Jt;sr=1;var k=ke&&ke.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Jt,"__esModule",{value:!0});var C=k(Mr()),m=function(){function d(s){this.ops=s,this.index=0,this.offset=0}return d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(s){s||(s=1/0);var O=this.ops[this.index];if(O){var b=this.offset,_=C.default.length(O);if(s>=_-b?(s=_-b,this.index+=1,this.offset=0):this.offset+=s,typeof O.delete=="number")return{delete:s};var y={};return O.attributes&&(y.attributes=O.attributes),typeof O.retain=="number"?y.retain=s:typeof O.insert=="string"?y.insert=O.insert.substr(b,s):y.insert=O.insert,y}else return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?C.default.length(this.ops[this.index])-this.offset:1/0},d.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"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var s=this.offset,O=this.index,b=this.next(),_=this.ops.slice(this.index);return this.offset=s,this.index=O,[b].concat(_)}else return[]},d}();return Jt.default=m,Jt}var fr;function Mr(){if(fr)return Qt;fr=1;var k=ke&&ke.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Qt,"__esModule",{value:!0});var C=k(Ci()),m;return function(d){function s(b){return new C.default(b)}d.iterator=s;function O(b){return typeof b.delete=="number"?b.delete:typeof b.retain=="number"?b.retain:typeof b.insert=="string"?b.insert.length:1}d.length=O}(m||(m={})),Qt.default=m,Qt}var jt=ke&&ke.__importDefault||function(k){return k&&k.__esModule?k:{default:k}},en=jt(Mi),Fi=jt(qr),Zn=jt(Ir),Lt=jt(nr),Te=jt(Mr()),Ui=String.fromCharCode(0),Hi=function(){function k(C){Array.isArray(C)?this.ops=C:C!=null&&Array.isArray(C.ops)?this.ops=C.ops:this.ops=[]}return k.prototype.insert=function(C,m){var d={};return typeof C=="string"&&C.length===0?this:(d.insert=C,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(d.attributes=m),this.push(d))},k.prototype.delete=function(C){return C<=0?this:this.push({delete:C})},k.prototype.retain=function(C,m){if(C<=0)return this;var d={retain:C};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(d.attributes=m),this.push(d)},k.prototype.push=function(C){var m=this.ops.length,d=this.ops[m-1];if(C=Fi.default(C),typeof d=="object"){if(typeof C.delete=="number"&&typeof d.delete=="number")return this.ops[m-1]={delete:d.delete+C.delete},this;if(typeof d.delete=="number"&&C.insert!=null&&(m-=1,d=this.ops[m-1],typeof d!="object"))return this.ops.unshift(C),this;if(Zn.default(C.attributes,d.attributes)){if(typeof C.insert=="string"&&typeof d.insert=="string")return this.ops[m-1]={insert:d.insert+C.insert},typeof C.attributes=="object"&&(this.ops[m-1].attributes=C.attributes),this;if(typeof C.retain=="number"&&typeof d.retain=="number")return this.ops[m-1]={retain:d.retain+C.retain},typeof C.attributes=="object"&&(this.ops[m-1].attributes=C.attributes),this}}return m===this.ops.length?this.ops.push(C):this.ops.splice(m,0,C),this},k.prototype.chop=function(){var C=this.ops[this.ops.length-1];return C&&C.retain&&!C.attributes&&this.ops.pop(),this},k.prototype.filter=function(C){return this.ops.filter(C)},k.prototype.forEach=function(C){this.ops.forEach(C)},k.prototype.map=function(C){return this.ops.map(C)},k.prototype.partition=function(C){var m=[],d=[];return this.forEach(function(s){var O=C(s)?m:d;O.push(s)}),[m,d]},k.prototype.reduce=function(C,m){return this.ops.reduce(C,m)},k.prototype.changeLength=function(){return this.reduce(function(C,m){return m.insert?C+Te.default.length(m):m.delete?C-m.delete:C},0)},k.prototype.length=function(){return this.reduce(function(C,m){return C+Te.default.length(m)},0)},k.prototype.slice=function(C,m){C===void 0&&(C=0),m===void 0&&(m=1/0);for(var d=[],s=Te.default.iterator(this.ops),O=0;O<m&&s.hasNext();){var b=void 0;O<C?b=s.next(C-O):(b=s.next(m-O),d.push(b)),O+=Te.default.length(b)}return new k(d)},k.prototype.compose=function(C){var m=Te.default.iterator(this.ops),d=Te.default.iterator(C.ops),s=[],O=d.peek();if(O!=null&&typeof O.retain=="number"&&O.attributes==null){for(var b=O.retain;m.peekType()==="insert"&&m.peekLength()<=b;)b-=m.peekLength(),s.push(m.next());O.retain-b>0&&d.next(O.retain-b)}for(var _=new k(s);m.hasNext()||d.hasNext();)if(d.peekType()==="insert")_.push(d.next());else if(m.peekType()==="delete")_.push(m.next());else{var y=Math.min(m.peekLength(),d.peekLength()),g=m.next(y),c=d.next(y);if(typeof c.retain=="number"){var r={};typeof g.retain=="number"?r.retain=y:r.insert=g.insert;var e=Lt.default.compose(g.attributes,c.attributes,typeof g.retain=="number");if(e&&(r.attributes=e),_.push(r),!d.hasNext()&&Zn.default(_.ops[_.ops.length-1],r)){var t=new k(m.rest());return _.concat(t).chop()}}else typeof c.delete=="number"&&typeof g.retain=="number"&&_.push(c)}return _.chop()},k.prototype.concat=function(C){var m=new k(this.ops.slice());return C.ops.length>0&&(m.push(C.ops[0]),m.ops=m.ops.concat(C.ops.slice(1))),m},k.prototype.diff=function(C,m){if(this.ops===C.ops)return new k;var d=[this,C].map(function(y){return y.map(function(g){if(g.insert!=null)return typeof g.insert=="string"?g.insert:Ui;var c=y===C?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")}),s=new k,O=en.default(d[0],d[1],m),b=Te.default.iterator(this.ops),_=Te.default.iterator(C.ops);return O.forEach(function(y){for(var g=y[1].length;g>0;){var c=0;switch(y[0]){case en.default.INSERT:c=Math.min(_.peekLength(),g),s.push(_.next(c));break;case en.default.DELETE:c=Math.min(g,b.peekLength()),b.next(c),s.delete(c);break;case en.default.EQUAL:c=Math.min(b.peekLength(),_.peekLength(),g);var r=b.next(c),e=_.next(c);Zn.default(r.insert,e.insert)?s.retain(c,Lt.default.diff(r.attributes,e.attributes)):s.push(e).delete(c);break}g-=c}}),s.chop()},k.prototype.eachLine=function(C,m){m===void 0&&(m=` `);for(var d=Te.default.iterator(this.ops),s=new k,O=0;d.hasNext();){if(d.peekType()!=="insert")return;var b=d.peek(),_=Te.default.length(b)-d.peekLength(),y=typeof b.insert=="string"?b.insert.indexOf(m,_)-_:-1;if(y<0)s.push(d.next());else if(y>0)s.push(d.next(y));else{if(C(s,d.next(1).attributes||{},O)===!1)return;O+=1,s=new k}}s.length()>0&&C(s,{},O)},k.prototype.invert=function(C){var m=new k;return this.reduce(function(d,s){if(s.insert)m.delete(Te.default.length(s));else{if(s.retain&&s.attributes==null)return m.retain(s.retain),d+s.retain;if(s.delete||s.retain&&s.attributes){var O=s.delete||s.retain,b=C.slice(d,d+O);return b.forEach(function(_){s.delete?m.push(_):s.retain&&s.attributes&&m.retain(Te.default.length(_),Lt.default.invert(s.attributes,_.attributes))}),d+O}}return d},0),m.chop()},k.prototype.transform=function(C,m){if(m===void 0&&(m=!1),m=!!m,typeof C=="number")return this.transformPosition(C,m);for(var d=C,s=Te.default.iterator(this.ops),O=Te.default.iterator(d.ops),b=new k;s.hasNext()||O.hasNext();)if(s.peekType()==="insert"&&(m||O.peekType()!=="insert"))b.retain(Te.default.length(s.next()));else if(O.peekType()==="insert")b.push(O.next());else{var _=Math.min(s.peekLength(),O.peekLength()),y=s.next(_),g=O.next(_);if(y.delete)continue;g.delete?b.push(g):b.retain(_,Lt.default.transform(y.attributes,g.attributes,m))}return b.chop()},k.prototype.transformPosition=function(C,m){m===void 0&&(m=!1),m=!!m;for(var d=Te.default.iterator(this.ops),s=0;d.hasNext()&&s<=C;){var O=d.peekLength(),b=d.peekType();if(d.next(),b==="delete"){C-=Math.min(O,C-s);continue}else b==="insert"&&(s<C||!m)&&(C+=O);s+=O}return C},k.Op=Te.default,k.AttributeMap=Lt.default,k}(),zi=Hi;const Ki=pr(zi);/*! * VueQuill @vueup/vue-quill v1.2.0 * https://vueup.github.io/vue-quill/ * * Includes quill v1.3.7 * https://quilljs.com/ * * Copyright (c) 2023 Ahmad Luthfi Masruri * Released under the MIT license * Date: 2023-05-12T08:44:03.742Z */const cr={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"]]},eo=yt({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:k=>["delta","html","text"].includes(k)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:k=>["snow","bubble",""].includes(k)},toolbar:{type:[String,Array,Object],required:!1,validator:k=>typeof k=="string"&&k!==""?k.charAt(0)==="#"?!0:Object.keys(cr).indexOf(k)!==-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:(k,C)=>{vr(()=>{O()}),hr(()=>{m=null});let m,d;const s=Be(),O=()=>{var p;if(s.value){if(d=b(),k.modules)if(Array.isArray(k.modules))for(const E of k.modules)Gn.register(`modules/${E.name}`,E.module);else Gn.register(`modules/${k.modules.name}`,k.modules.module);m=new Gn(s.value,d),h(k.content),m.on("text-change",r),m.on("selection-change",t),m.on("editor-change",f),k.theme!=="bubble"&&s.value.classList.remove("ql-bubble"),k.theme!=="snow"&&s.value.classList.remove("ql-snow"),(p=m.getModule("toolbar"))===null||p===void 0||p.container.addEventListener("mousedown",E=>{E.preventDefault()}),C.emit("ready",m)}},b=()=>{const p={};if(k.theme!==""&&(p.theme=k.theme),k.readOnly&&(p.readOnly=k.readOnly),k.placeholder&&(p.placeholder=k.placeholder),k.toolbar&&k.toolbar!==""&&(p.modules={toolbar:(()=>{if(typeof k.toolbar=="object")return k.toolbar;if(typeof k.toolbar=="string")return k.toolbar.charAt(0)==="#"?k.toolbar:cr[k.toolbar]})()}),k.modules){const E=(()=>{var N,q;const D={};if(Array.isArray(k.modules))for(const K of k.modules)D[K.name]=(N=K.options)!==null&&N!==void 0?N:{};else D[k.modules.name]=(q=k.modules.options)!==null&&q!==void 0?q:{};return D})();p.modules=Object.assign({},p.modules,E)}return Object.assign({},k.globalOptions,k.options,p)},_=p=>typeof p=="object"&&p?p.slice():p,y=p=>Object.values(p.ops).some(E=>!E.retain||Object.keys(E).length!==1);let g;const c=p=>{if(typeof g==typeof p){if(p===g)return!0;if(typeof p=="object"&&p&&typeof g=="object"&&g)return!y(g.diff(p))}return!1},r=(p,E,N)=>{g=_(o()),c(k.content)||C.emit("update:content",g),C.emit("textChange",{delta:p,oldContents:E,source:N})},e=Be(),t=(p,E,N)=>{e.value=!!(m!=null&&m.hasFocus()),C.emit("selectionChange",{range:p,oldRange:E,source:N})};$e(e,p=>{p?C.emit("focus",s):C.emit("blur",s)});const f=(...p)=>{p[0]==="text-change"&&C.emit("editorChange",{name:p[0],delta:p[1],oldContents:p[2],source:p[3]}),p[0]==="selection-change"&&C.emit("editorChange",{name:p[0],range:p[1],oldRange:p[2],source:p[3]})},l=()=>s.value,a=()=>{var p;return(p=m==null?void 0:m.getModule("toolbar"))===null||p===void 0?void 0:p.container},i=()=>{if(m)return m;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.`},o=(p,E)=>k.contentType==="html"?S():k.contentType==="text"?n(p,E):m==null?void 0:m.getContents(p,E),h=(p,E="api")=>{const N=p||(k.contentType==="delta"?new Ki:"");k.contentType==="html"?w(N):k.contentType==="text"?v(N,E):m==null||m.setContents(N,E),g=_(N)},n=(p,E)=>{var N;return(N=m==null?void 0:m.getText(p,E))!==null&&N!==void 0?N:""},v=(p,E="api")=>{m==null||m.setText(p,E)},S=()=>{var p;return(p=m==null?void 0:m.root.innerHTML)!==null&&p!==void 0?p:""},w=p=>{m&&(m.root.innerHTML=p)},T=(p,E="api")=>{const N=m==null?void 0:m.clipboard.convert(p);N&&(m==null||m.setContents(N,E))},R=()=>{m==null||m.focus()},A=()=>{Qe(()=>{var p;!C.slots.toolbar&&m&&((p=m.getModule("toolbar"))===null||p===void 0||p.container.remove()),O()})};return $e(()=>k.content,p=>{if(!m||!p||c(p))return;const E=m.getSelection();E&&Qe(()=>m==null?void 0:m.setSelection(E)),h(p)},{deep:!0}),$e(()=>k.enable,p=>{m&&m.enable(p)}),{editor:s,getEditor:l,getToolbar:a,getQuill:i,getContents:o,setContents:h,getHTML:S,setHTML:w,pasteHTML:T,focus:R,getText:n,setText:v,reinit:A}},render(){var k,C;return[(C=(k=this.$slots).toolbar)===null||C===void 0?void 0:C.call(k),$r("div",{ref:"editor",...this.$attrs})]}});export{eo as Q,Qi as T,Ji as a};
Copyright ©2k19 -
Hexid
|
Tex7ure