Files
appco_dist/.output/public/_nuxt/LcAz1NFZ.js
T
2026-03-07 16:09:22 +03:30

38 lines
252 KiB
JavaScript

import{B as Bn}from"./D8wkbzbL.js";import{d as Xn,J as nr,r as Gt,H as Qn,a0 as rr,af as Cn,z as Ne,G as Jn,E as Ft,B as jt,D as Ot,K as xt,F as ir,C as Mn,S as Pe,Q as Rn,u as or,o as ar,A as qn,a3 as lr,a1 as Fn,a2 as Un,T as ur,c_ as sr}from"./sHYMdOhR.js";import{_ as fr,a as cr}from"./BBWcOEEO.js";import{B as hr}from"./CEk4iKpv.js";import{_ as dr}from"./CHWTpocX.js";import{B as jn}from"./BYAjTvVj.js";import{I as vr}from"./syGHIf6Q.js";import{B as pr}from"./B1_zfk8Q.js";import{u as yr,c as gr,g as mr,d as br}from"./BfDbd4D-.js";import{c as Wt}from"./CE1G-McA.js";import{B as _r}from"./CcPysqK2.js";import{F as Or}from"./Lro_135l.js";import{_ as Er}from"./B1FXwelu.js";import{_ as Ar}from"./DlAUqK2U.js";import{F as wr}from"./BIa9oC5T.js";import"./0WLYhuc0.js";import"./s5VsWXJm.js";/* empty css */import"./CscEAC8U.js";import"./BXQsDisu.js";import"./DwS8IiHz.js";import"./1GKgVMtx.js";import"./CAog9izl.js";import"./FRupd7em.js";import"./C5o9uLp2.js";import"./T5RUGJza.js";import"./MgoZ6sgN.js";import"./BlxE6CuM.js";import"./D9spR2Y-.js";import"./DESWC84c.js";import"./0qMxIxIU.js";import"./D9W93jKc.js";import"./N3gv61e4.js";import"./CcRNtUWx.js";import"./BKeFls8M.js";import"./Cj99RmFE.js";import"./BtazoGfv.js";import"./DRJnIYfK.js";import"./BCNp_OwF.js";import"./CaX2wWhb.js";import"./c3m89UKz.js";import"./DjvBa-1E.js";import"./DHW72GED.js";var Ve={exports:{}};var Tr=Ve.exports,Hn;function kr(){return Hn||(Hn=1,(function(st,ft){(function(O,g){st.exports=g()})(typeof self<"u"?self:Tr,function(){return(function(B){var O={};function g(P){if(O[P])return O[P].exports;var S=O[P]={i:P,l:!1,exports:{}};return B[P].call(S.exports,S,S.exports,g),S.l=!0,S.exports}return g.m=B,g.c=O,g.d=function(P,S,k){g.o(P,S)||Object.defineProperty(P,S,{configurable:!1,enumerable:!0,get:k})},g.n=function(P){var S=P&&P.__esModule?function(){return P.default}:function(){return P};return g.d(S,"a",S),S},g.o=function(P,S){return Object.prototype.hasOwnProperty.call(P,S)},g.p="",g(g.s=109)})([(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(17),S=g(18),k=g(19),p=g(45),d=g(46),s=g(47),i=g(48),t=g(49),e=g(12),h=g(32),u=g(33),c=g(31),a=g(1),o={Scope:a.Scope,create:a.create,find:a.find,query:a.query,register:a.register,Container:P.default,Format:S.default,Leaf:k.default,Embed:i.default,Scroll:p.default,Block:s.default,Inline:d.default,Text:t.default,Attributor:{Attribute:e.default,Class:h.default,Style:u.default,Store:c.default}};O.default=o}),(function(B,O,g){var P=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var r in o)o.hasOwnProperty(r)&&(a[r]=o[r])};return function(a,o){c(a,o);function r(){this.constructor=a}a.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=(function(c){P(a,c);function a(o){var r=this;return o="[Parchment] "+o,r=c.call(this,o)||this,r.message=o,r.name=r.constructor.name,r}return a})(Error);O.ParchmentError=S;var k={},p={},d={},s={};O.DATA_KEY="__blot";var i;(function(c){c[c.TYPE=3]="TYPE",c[c.LEVEL=12]="LEVEL",c[c.ATTRIBUTE=13]="ATTRIBUTE",c[c.BLOT=14]="BLOT",c[c.INLINE=7]="INLINE",c[c.BLOCK=11]="BLOCK",c[c.BLOCK_BLOT=10]="BLOCK_BLOT",c[c.INLINE_BLOT=6]="INLINE_BLOT",c[c.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",c[c.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",c[c.ANY=15]="ANY"})(i=O.Scope||(O.Scope={}));function t(c,a){var o=h(c);if(o==null)throw new S("Unable to create "+c+" blot");var r=o,n=c instanceof Node||c.nodeType===Node.TEXT_NODE?c:r.create(a);return new r(n,a)}O.create=t;function e(c,a){return a===void 0&&(a=!1),c==null?null:c[O.DATA_KEY]!=null?c[O.DATA_KEY].blot:a?e(c.parentNode,a):null}O.find=e;function h(c,a){a===void 0&&(a=i.ANY);var o;if(typeof c=="string")o=s[c]||k[c];else if(c instanceof Text||c.nodeType===Node.TEXT_NODE)o=s.text;else if(typeof c=="number")c&i.LEVEL&i.BLOCK?o=s.block:c&i.LEVEL&i.INLINE&&(o=s.inline);else if(c instanceof HTMLElement){var r=(c.getAttribute("class")||"").split(/\s+/);for(var n in r)if(o=p[r[n]],o)break;o=o||d[c.tagName]}return o==null?null:a&i.LEVEL&o.scope&&a&i.TYPE&o.scope?o:null}O.query=h;function u(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length>1)return c.map(function(n){return u(n)});var o=c[0];if(typeof o.blotName!="string"&&typeof o.attrName!="string")throw new S("Invalid definition");if(o.blotName==="abstract")throw new S("Cannot register abstract class");if(s[o.blotName||o.attrName]=o,typeof o.keyName=="string")k[o.keyName]=o;else if(o.className!=null&&(p[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 r=Array.isArray(o.tagName)?o.tagName:[o.tagName];r.forEach(function(n){(d[n]==null||o.className==null)&&(d[n]=o)})}return o}O.register=u}),(function(B,O,g){var P=g(51),S=g(11),k=g(3),p=g(20),d="\0",s=function(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]};s.prototype.insert=function(i,t){var e={};return i.length===0?this:(e.insert=i,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},s.prototype.delete=function(i){return i<=0?this:this.push({delete:i})},s.prototype.retain=function(i,t){if(i<=0)return this;var e={retain:i};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},s.prototype.push=function(i){var t=this.ops.length,e=this.ops[t-1];if(i=k(!0,{},i),typeof e=="object"){if(typeof i.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+i.delete},this;if(typeof e.delete=="number"&&i.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(i),this;if(S(i.attributes,e.attributes)){if(typeof i.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+i.insert},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+i.retain},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this}}return t===this.ops.length?this.ops.push(i):this.ops.splice(t,0,i),this},s.prototype.chop=function(){var i=this.ops[this.ops.length-1];return i&&i.retain&&!i.attributes&&this.ops.pop(),this},s.prototype.filter=function(i){return this.ops.filter(i)},s.prototype.forEach=function(i){this.ops.forEach(i)},s.prototype.map=function(i){return this.ops.map(i)},s.prototype.partition=function(i){var t=[],e=[];return this.forEach(function(h){var u=i(h)?t:e;u.push(h)}),[t,e]},s.prototype.reduce=function(i,t){return this.ops.reduce(i,t)},s.prototype.changeLength=function(){return this.reduce(function(i,t){return t.insert?i+p.length(t):t.delete?i-t.delete:i},0)},s.prototype.length=function(){return this.reduce(function(i,t){return i+p.length(t)},0)},s.prototype.slice=function(i,t){i=i||0,typeof t!="number"&&(t=1/0);for(var e=[],h=p.iterator(this.ops),u=0;u<t&&h.hasNext();){var c;u<i?c=h.next(i-u):(c=h.next(t-u),e.push(c)),u+=p.length(c)}return new s(e)},s.prototype.compose=function(i){var t=p.iterator(this.ops),e=p.iterator(i.ops),h=[],u=e.peek();if(u!=null&&typeof u.retain=="number"&&u.attributes==null){for(var c=u.retain;t.peekType()==="insert"&&t.peekLength()<=c;)c-=t.peekLength(),h.push(t.next());u.retain-c>0&&e.next(u.retain-c)}for(var a=new s(h);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")a.push(e.next());else if(t.peekType()==="delete")a.push(t.next());else{var o=Math.min(t.peekLength(),e.peekLength()),r=t.next(o),n=e.next(o);if(typeof n.retain=="number"){var l={};typeof r.retain=="number"?l.retain=o:l.insert=r.insert;var E=p.attributes.compose(r.attributes,n.attributes,typeof r.retain=="number");if(E&&(l.attributes=E),a.push(l),!e.hasNext()&&S(a.ops[a.ops.length-1],l)){var b=new s(t.rest());return a.concat(b).chop()}}else typeof n.delete=="number"&&typeof r.retain=="number"&&a.push(n)}return a.chop()},s.prototype.concat=function(i){var t=new s(this.ops.slice());return i.ops.length>0&&(t.push(i.ops[0]),t.ops=t.ops.concat(i.ops.slice(1))),t},s.prototype.diff=function(i,t){if(this.ops===i.ops)return new s;var e=[this,i].map(function(o){return o.map(function(r){if(r.insert!=null)return typeof r.insert=="string"?r.insert:d;var n=o===i?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),h=new s,u=P(e[0],e[1],t),c=p.iterator(this.ops),a=p.iterator(i.ops);return u.forEach(function(o){for(var r=o[1].length;r>0;){var n=0;switch(o[0]){case P.INSERT:n=Math.min(a.peekLength(),r),h.push(a.next(n));break;case P.DELETE:n=Math.min(r,c.peekLength()),c.next(n),h.delete(n);break;case P.EQUAL:n=Math.min(c.peekLength(),a.peekLength(),r);var l=c.next(n),E=a.next(n);S(l.insert,E.insert)?h.retain(n,p.attributes.diff(l.attributes,E.attributes)):h.push(E).delete(n);break}r-=n}}),h.chop()},s.prototype.eachLine=function(i,t){t=t||`
`;for(var e=p.iterator(this.ops),h=new s,u=0;e.hasNext();){if(e.peekType()!=="insert")return;var c=e.peek(),a=p.length(c)-e.peekLength(),o=typeof c.insert=="string"?c.insert.indexOf(t,a)-a:-1;if(o<0)h.push(e.next());else if(o>0)h.push(e.next(o));else{if(i(h,e.next(1).attributes||{},u)===!1)return;u+=1,h=new s}}h.length()>0&&i(h,{},u)},s.prototype.transform=function(i,t){if(t=!!t,typeof i=="number")return this.transformPosition(i,t);for(var e=p.iterator(this.ops),h=p.iterator(i.ops),u=new s;e.hasNext()||h.hasNext();)if(e.peekType()==="insert"&&(t||h.peekType()!=="insert"))u.retain(p.length(e.next()));else if(h.peekType()==="insert")u.push(h.next());else{var c=Math.min(e.peekLength(),h.peekLength()),a=e.next(c),o=h.next(c);if(a.delete)continue;o.delete?u.push(o):u.retain(c,p.attributes.transform(a.attributes,o.attributes,t))}return u.chop()},s.prototype.transformPosition=function(i,t){t=!!t;for(var e=p.iterator(this.ops),h=0;e.hasNext()&&h<=i;){var u=e.peekLength(),c=e.peekType();if(e.next(),c==="delete"){i-=Math.min(u,i-h);continue}else c==="insert"&&(h<i||!t)&&(i+=u);h+=u}return i},B.exports=s}),(function(B,O){var g=Object.prototype.hasOwnProperty,P=Object.prototype.toString,S=Object.defineProperty,k=Object.getOwnPropertyDescriptor,p=function(e){return typeof Array.isArray=="function"?Array.isArray(e):P.call(e)==="[object Array]"},d=function(e){if(!e||P.call(e)!=="[object Object]")return!1;var h=g.call(e,"constructor"),u=e.constructor&&e.constructor.prototype&&g.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!h&&!u)return!1;var c;for(c in e);return typeof c>"u"||g.call(e,c)},s=function(e,h){S&&h.name==="__proto__"?S(e,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):e[h.name]=h.newValue},i=function(e,h){if(h==="__proto__")if(g.call(e,h)){if(k)return k(e,h).value}else return;return e[h]};B.exports=function t(){var e,h,u,c,a,o,r=arguments[0],n=1,l=arguments.length,E=!1;for(typeof r=="boolean"&&(E=r,r=arguments[1]||{},n=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});n<l;++n)if(e=arguments[n],e!=null)for(h in e)u=i(r,h),c=i(e,h),r!==c&&(E&&c&&(d(c)||(a=p(c)))?(a?(a=!1,o=u&&p(u)?u:[]):o=u&&d(u)?u:{},s(r,{name:h,newValue:t(E,o,c)})):typeof c<"u"&&s(r,{name:h,newValue:c}));return r}}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=(function(){function v(_,w){for(var x=0;x<w.length;x++){var I=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,w,x){return w&&v(_.prototype,w),x&&v(_,x),_}})(),S=function v(_,w,x){_===null&&(_=Function.prototype);var I=Object.getOwnPropertyDescriptor(_,w);if(I===void 0){var U=Object.getPrototypeOf(_);return U===null?void 0:v(U,w,x)}else{if("value"in I)return I.value;var z=I.get;return z===void 0?void 0:z.call(x)}},k=g(3),p=r(k),d=g(2),s=r(d),i=g(0),t=r(i),e=g(16),h=r(e),u=g(6),c=r(u),a=g(7),o=r(a);function r(v){return v&&v.__esModule?v:{default:v}}function n(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function l(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function E(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var b=1,m=(function(v){E(_,v);function _(){return n(this,_),l(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return P(_,[{key:"attach",value:function(){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new s.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(x,I){var U=t.default.query(x,t.default.Scope.BLOCK_ATTRIBUTE);U!=null&&this.attributes.attribute(U,I)}},{key:"formatAt",value:function(x,I,U,z){this.format(U,z)}},{key:"insertAt",value:function(x,I,U){if(typeof I=="string"&&I.endsWith(`
`)){var z=t.default.create(T.blotName);this.parent.insertBefore(z,x===0?this:this.next),z.insertAt(0,I.slice(0,-1))}else S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,x,I,U)}}]),_})(t.default.Embed);m.scope=t.default.Scope.BLOCK_BLOT;var T=(function(v){E(_,v);function _(w){n(this,_);var x=l(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return x.cache={},x}return P(_,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(x,I){return I.length()===0?x:x.insert(I.value(),y(I))},new s.default).insert(`
`,y(this))),this.cache.delta}},{key:"deleteAt",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,x,I),this.cache={}}},{key:"formatAt",value:function(x,I,U,z){I<=0||(t.default.query(U,t.default.Scope.BLOCK)?x+I===this.length()&&this.format(U,z):S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,x,Math.min(I,this.length()-x-1),U,z),this.cache={})}},{key:"insertAt",value:function(x,I,U){if(U!=null)return S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,x,I,U);if(I.length!==0){var z=I.split(`
`),W=z.shift();W.length>0&&(x<this.length()-1||this.children.tail==null?S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(x,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var F=this;z.reduce(function(R,A){return F=F.split(R,!0),F.insertAt(0,A),A.length},x+W.length)}}},{key:"insertBefore",value:function(x,I){var U=this.children.head;S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,x,I),U instanceof h.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,x,I),this.cache={}}},{key:"optimize",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,x),this.cache={}}},{key:"path",value:function(x){return S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,x,!0)}},{key:"removeChild",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,x),this.cache={}}},{key:"split",value:function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(x===0||x>=this.length()-b)){var U=this.clone();return x===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var z=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,x,I);return this.cache={},z}}}]),_})(t.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[c.default,t.default.Embed,o.default];function y(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(_=(0,p.default)(_,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?_:y(v.parent,_)}O.bubbleFormats=y,O.BlockEmbed=m,O.default=T}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},S=(function(){function F(R,A){var q=[],j=!0,H=!1,M=void 0;try{for(var L=R[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(q.push(C.value),!(A&&q.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&L.return&&L.return()}finally{if(H)throw M}}return q}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return F(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function F(R,A){for(var q=0;q<A.length;q++){var j=A[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}return function(R,A,q){return A&&F(R.prototype,A),q&&F(R,q),R}})();g(50);var p=g(2),d=y(p),s=g(14),i=y(s),t=g(8),e=y(t),h=g(9),u=y(h),c=g(0),a=y(c),o=g(15),r=y(o),n=g(3),l=y(n),E=g(10),b=y(E),m=g(34),T=y(m);function y(F){return F&&F.__esModule?F:{default:F}}function v(F,R,A){return R in F?Object.defineProperty(F,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):F[R]=A,F}function _(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}var w=(0,b.default)("quill"),x=(function(){k(F,null,[{key:"debug",value:function(A){A===!0&&(A="log"),b.default.level(A)}},{key:"find",value:function(A){return A.__quill||a.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&w.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var M=A.attrName||A.blotName;typeof M=="string"?this.register("formats/"+M,A,q):Object.keys(A).forEach(function(L){j.register(L,A[L],q)})}else this.imports[A]!=null&&!H&&w.warn("Overwriting "+A+" with",q),this.imports[A]=q,(A.startsWith("blots/")||A.startsWith("formats/"))&&q.blotName!=="abstract"?a.default.register(q):A.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function F(R){var A=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_(this,F),this.options=I(R,q),this.container=this.options.container,this.container==null)return w.error("Invalid Quill container",R);this.options.debug&&F.debug(this.options.debug);var j=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 e.default,this.scroll=a.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new i.default(this.scroll),this.selection=new r.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(e.default.events.EDITOR_CHANGE,function(M){M===e.default.events.TEXT_CHANGE&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(M,L){var C=A.selection.lastRange,K=C&&C.length===0?C.index:void 0;U.call(A,function(){return A.editor.update(null,L,K)},M)});var H=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(H),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return k(F,[{key:"addContainer",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var j=A;A=document.createElement("div"),A.classList.add(j)}return this.container.insertBefore(A,q),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,q,j){var H=this,M=z(A,q,j),L=S(M,4);return A=L[0],q=L[1],j=L[3],U.call(this,function(){return H.editor.deleteText(A,q)},j,A,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return U.call(this,function(){var M=j.getSelection(!0),L=new d.default;if(M==null)return L;if(a.default.query(A,a.default.Scope.BLOCK))L=j.editor.formatLine(M.index,M.length,v({},A,q));else{if(M.length===0)return j.selection.format(A,q),L;L=j.editor.formatText(M.index,M.length,v({},A,q))}return j.setSelection(M,e.default.sources.SILENT),L},H)}},{key:"formatLine",value:function(A,q,j,H,M){var L=this,C=void 0,K=z(A,q,j,H,M),G=S(K,4);return A=G[0],q=G[1],C=G[2],M=G[3],U.call(this,function(){return L.editor.formatLine(A,q,C)},M,A,0)}},{key:"formatText",value:function(A,q,j,H,M){var L=this,C=void 0,K=z(A,q,j,H,M),G=S(K,4);return A=G[0],q=G[1],C=G[2],M=G[3],U.call(this,function(){return L.editor.formatText(A,q,C)},M,A,0)}},{key:"getBounds",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof A=="number"?j=this.selection.getBounds(A,q):j=this.selection.getBounds(A.index,A.length);var H=this.container.getBoundingClientRect();return{bottom:j.bottom-H.top,height:j.height,left:j.left-H.left,right:j.right-H.left,top:j.top-H.top,width:j.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,j=z(A,q),H=S(j,2);return A=H[0],q=H[1],this.editor.getContents(A,q)}},{key:"getFormat",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="number"?this.editor.getFormat(A,q):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof A!="number"?this.scroll.lines(A.index,A.length):this.scroll.lines(A,q)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return A&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,j=z(A,q),H=S(j,2);return A=H[0],q=H[1],this.editor.getText(A,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,q,j){var H=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return U.call(this,function(){return H.editor.insertEmbed(A,q,j)},M,A)}},{key:"insertText",value:function(A,q,j,H,M){var L=this,C=void 0,K=z(A,0,j,H,M),G=S(K,4);return A=G[0],C=G[2],M=G[3],U.call(this,function(){return L.editor.insertText(A,q,C)},M,A,q.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(A,q,j){this.clipboard.dangerouslyPasteHTML(A,q,j)}},{key:"removeFormat",value:function(A,q,j){var H=this,M=z(A,q,j),L=S(M,4);return A=L[0],q=L[1],j=L[3],U.call(this,function(){return H.editor.removeFormat(A,q)},j,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return U.call(this,function(){A=new d.default(A);var H=q.getLength(),M=q.editor.deleteText(0,H),L=q.editor.applyDelta(A),C=L.ops[L.ops.length-1];C!=null&&typeof C.insert=="string"&&C.insert[C.insert.length-1]===`
`&&(q.editor.deleteText(q.getLength()-1,1),L.delete(1));var K=M.compose(L);return K},j)}},{key:"setSelection",value:function(A,q,j){if(A==null)this.selection.setRange(null,q||F.sources.API);else{var H=z(A,q,j),M=S(H,4);A=M[0],q=M[1],j=M[3],this.selection.setRange(new o.Range(A,q),j),j!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,j=new d.default().insert(A);return this.setContents(j,q)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,q=this.scroll.update(A);return this.selection.update(A),q}},{key:"updateContents",value:function(A){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return U.call(this,function(){return A=new d.default(A),q.editor.applyDelta(A,j)},j,!0)}}]),F})();x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=e.default.events,x.sources=e.default.sources,x.version="1.3.7",x.imports={delta:d.default,parchment:a.default,"core/module":u.default,"core/theme":T.default};function I(F,R){if(R=(0,l.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===x.DEFAULTS.theme)R.theme=T.default;else if(R.theme=x.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var A=(0,l.default)(!0,{},R.theme.DEFAULTS);[A,R].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(M){H.modules[M]===!0&&(H.modules[M]={})})});var q=Object.keys(A.modules).concat(Object.keys(R.modules)),j=q.reduce(function(H,M){var L=x.import("modules/"+M);return L==null?w.error("Cannot load "+M+" module. Are you sure you registered it?"):H[M]=L.DEFAULTS||{},H},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,l.default)(!0,{},x.DEFAULTS,{modules:j},A,R),["bounds","container","scrollingContainer"].forEach(function(H){typeof R[H]=="string"&&(R[H]=document.querySelector(R[H]))}),R.modules=Object.keys(R.modules).reduce(function(H,M){return R.modules[M]&&(H[M]=R.modules[M]),H},{}),R}function U(F,R,A,q){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new d.default;var j=A==null?null:this.getSelection(),H=this.editor.delta,M=F();if(j!=null&&(A===!0&&(A=j.index),q==null?j=W(j,M,R):q!==0&&(j=W(j,A,q,R)),this.setSelection(j,e.default.sources.SILENT)),M.length()>0){var L,C=[e.default.events.TEXT_CHANGE,M,H,R];if((L=this.emitter).emit.apply(L,[e.default.events.EDITOR_CHANGE].concat(C)),R!==e.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,C)}}return M}function z(F,R,A,q,j){var H={};return typeof F.index=="number"&&typeof F.length=="number"?typeof R!="number"?(j=q,q=A,A=R,R=F.length,F=F.index):(R=F.length,F=F.index):typeof R!="number"&&(j=q,q=A,A=R,R=0),(typeof A>"u"?"undefined":P(A))==="object"?(H=A,j=q):typeof A=="string"&&(q!=null?H[A]=q:j=A),j=j||e.default.sources.API,[F,R,H,j]}function W(F,R,A,q){if(F==null)return null;var j=void 0,H=void 0;if(R instanceof d.default){var M=[F.index,F.index+F.length].map(function(G){return R.transformPosition(G,q!==e.default.sources.USER)}),L=S(M,2);j=L[0],H=L[1]}else{var C=[F.index,F.index+F.length].map(function(G){return G<R||G===R&&q===e.default.sources.USER?G:A>=0?G+A:Math.max(R,G+A)}),K=S(C,2);j=K[0],H=K[1]}return new o.Range(j,H-j)}O.expandConfig=I,O.overload=z,O.default=x}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function c(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,o);if(n===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},k=g(7),p=i(k),d=g(0),s=i(d);function i(c){return c&&c.__esModule?c:{default:c}}function t(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function e(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function h(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var u=(function(c){h(a,c);function a(){return t(this,a),e(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"formatAt",value:function(r,n,l,E){if(a.compare(this.statics.blotName,l)<0&&s.default.query(l,s.default.Scope.BLOT)){var b=this.isolate(r,n);E&&b.wrap(l,E)}else S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"formatAt",this).call(this,r,n,l,E)}},{key:"optimize",value:function(r){if(S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.parent instanceof a&&a.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(r,n){var l=a.order.indexOf(r),E=a.order.indexOf(n);return l>=0||E>=0?l-E:r===n?0:r<n?-1:1}}]),a})(s.default.Inline);u.allowedChildren=[u,s.default.Embed,p.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=u}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(0),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=(function(t){s(e,t);function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e})(S.default.Text);O.default=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function o(r,n){for(var l=0;l<n.length;l++){var E=n[l];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(r,E.key,E)}}return function(r,n,l){return n&&o(r.prototype,n),l&&o(r,l),r}})(),S=function o(r,n,l){r===null&&(r=Function.prototype);var E=Object.getOwnPropertyDescriptor(r,n);if(E===void 0){var b=Object.getPrototypeOf(r);return b===null?void 0:o(b,n,l)}else{if("value"in E)return E.value;var m=E.get;return m===void 0?void 0:m.call(l)}},k=g(54),p=i(k),d=g(10),s=i(d);function i(o){return o&&o.__esModule?o:{default:o}}function t(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function e(o,r){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:o}function h(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var u=(0,s.default)("quill:events"),c=["selectionchange","mousedown","mouseup","click"];c.forEach(function(o){document.addEventListener(o,function(){for(var r=arguments.length,n=Array(r),l=0;l<r;l++)n[l]=arguments[l];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){if(E.__quill&&E.__quill.emitter){var b;(b=E.__quill.emitter).handleDOM.apply(b,n)}})})});var a=(function(o){h(r,o);function r(){t(this,r);var n=e(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.listeners={},n.on("error",u.error),n}return P(r,[{key:"emit",value:function(){u.log.apply(u,arguments),S(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(l){for(var E=arguments.length,b=Array(E>1?E-1:0),m=1;m<E;m++)b[m-1]=arguments[m];(this.listeners[l.type]||[]).forEach(function(T){var y=T.node,v=T.handler;(l.target===y||y.contains(l.target))&&v.apply(void 0,[l].concat(b))})}},{key:"listenDOM",value:function(l,E,b){this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push({node:E,handler:b})}}]),r})(p.default);a.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"},a.sources={API:"api",SILENT:"silent",USER:"user"},O.default=a}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});function P(k,p){if(!(k instanceof p))throw new TypeError("Cannot call a class as a function")}var S=function k(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,k),this.quill=p,this.options=d};S.DEFAULTS={},O.default=S}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],S="warn";function k(d){if(P.indexOf(d)<=P.indexOf(S)){for(var s,i=arguments.length,t=Array(i>1?i-1:0),e=1;e<i;e++)t[e-1]=arguments[e];(s=console)[d].apply(s,t)}}function p(d){return P.reduce(function(s,i){return s[i]=k.bind(console,i,d),s},{})}k.level=p.level=function(d){S=d},O.default=p}),(function(B,O,g){var P=Array.prototype.slice,S=g(52),k=g(53),p=B.exports=function(t,e,h){return h||(h={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?h.strict?t===e:t==e:i(t,e,h)};function d(t){return t==null}function s(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function i(t,e,h){var u,c;if(d(t)||d(e)||t.prototype!==e.prototype)return!1;if(k(t))return k(e)?(t=P.call(t),e=P.call(e),p(t,e,h)):!1;if(s(t)){if(!s(e)||t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var a=S(t),o=S(e)}catch{return!1}if(a.length!=o.length)return!1;for(a.sort(),o.sort(),u=a.length-1;u>=0;u--)if(a[u]!=o[u])return!1;for(u=a.length-1;u>=0;u--)if(c=a[u],!p(t[c],e[c],h))return!1;return typeof t==typeof e}}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(1),S=(function(){function k(p,d,s){s===void 0&&(s={}),this.attrName=p,this.keyName=d;var i=P.Scope.TYPE&P.Scope.ATTRIBUTE;s.scope!=null?this.scope=s.scope&P.Scope.LEVEL|i:this.scope=P.Scope.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}return k.keys=function(p){return[].map.call(p.attributes,function(d){return d.name})},k.prototype.add=function(p,d){return this.canAdd(p,d)?(p.setAttribute(this.keyName,d),!0):!1},k.prototype.canAdd=function(p,d){var s=P.query(p,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return s==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},k.prototype.remove=function(p){p.removeAttribute(this.keyName)},k.prototype.value=function(p){var d=p.getAttribute(this.keyName);return this.canAdd(p,d)&&d?d:""},k})();O.default=S}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=(function(){function m(T,y){var v=[],_=!0,w=!1,x=void 0;try{for(var I=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(y&&v.length===y));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throw x}}return v}return function(T,y){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return m(T,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function m(T,y){for(var v=0;v<y.length;v++){var _=y[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}return function(T,y,v){return y&&m(T.prototype,y),v&&m(T,v),T}})(),k=function m(T,y,v){T===null&&(T=Function.prototype);var _=Object.getOwnPropertyDescriptor(T,y);if(_===void 0){var w=Object.getPrototypeOf(T);return w===null?void 0:m(w,y,v)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(v)}},p=g(2),d=o(p),s=g(0),i=o(s),t=g(4),e=o(t),h=g(6),u=o(h),c=g(7),a=o(c);function o(m){return m&&m.__esModule?m:{default:m}}function r(m,T){if(!(m instanceof T))throw new TypeError("Cannot call a class as a function")}function n(m,T){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:m}function l(m,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);m.prototype=Object.create(T&&T.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(m,T):m.__proto__=T)}var E=(function(m){l(T,m);function T(){return r(this,T),n(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return T})(u.default);E.blotName="code",E.tagName="CODE";var b=(function(m){l(T,m);function T(){return r(this,T),n(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return S(T,[{key:"delta",value:function(){var v=this,_=this.domNode.textContent;return _.endsWith(`
`)&&(_=_.slice(0,-1)),_.split(`
`).reduce(function(w,x){return w.insert(x).insert(`
`,v.formats())},new d.default)}},{key:"format",value:function(v,_){if(!(v===this.statics.blotName&&_)){var w=this.descendant(a.default,this.length()-1),x=P(w,1),I=x[0];I?.deleteAt(I.length()-1,1),k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,v,_)}}},{key:"formatAt",value:function(v,_,w,x){if(_!==0&&!(i.default.query(w,i.default.Scope.BLOCK)==null||w===this.statics.blotName&&x===this.statics.formats(this.domNode))){var I=this.newlineIndex(v);if(!(I<0||I>=v+_)){var U=this.newlineIndex(v,!0)+1,z=I-U+1,W=this.isolate(U,z),F=W.next;W.format(w,x),F instanceof T&&F.formatAt(0,v-U+_-z,w,x)}}}},{key:"insertAt",value:function(v,_,w){if(w==null){var x=this.descendant(a.default,v),I=P(x,2),U=I[0],z=I[1];U.insertAt(z,_)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?v:v+1}},{key:"newlineIndex",value:function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_)return this.domNode.textContent.slice(0,v).lastIndexOf(`
`);var w=this.domNode.textContent.slice(v).indexOf(`
`);return w>-1?v+w:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
`)||this.appendChild(i.default.create("text",`
`)),k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,v);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(v),_.moveChildren(this),_.remove())}},{key:"replace",value:function(v){k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var w=i.default.find(_);w==null?_.parentNode.removeChild(_):w instanceof i.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(v){var _=k(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,v);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),T})(e.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",O.Code=E,O.default=b}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},S=(function(){function F(R,A){var q=[],j=!0,H=!1,M=void 0;try{for(var L=R[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(q.push(C.value),!(A&&q.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&L.return&&L.return()}finally{if(H)throw M}}return q}return function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return F(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function F(R,A){for(var q=0;q<A.length;q++){var j=A[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}return function(R,A,q){return A&&F(R.prototype,A),q&&F(R,q),R}})(),p=g(2),d=_(p),s=g(20),i=_(s),t=g(0),e=_(t),h=g(13),u=_(h),c=g(24),a=_(c),o=g(4),r=_(o),n=g(16),l=_(n),E=g(21),b=_(E),m=g(11),T=_(m),y=g(3),v=_(y);function _(F){return F&&F.__esModule?F:{default:F}}function w(F,R,A){return R in F?Object.defineProperty(F,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):F[R]=A,F}function x(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,U=(function(){function F(R){x(this,F),this.scroll=R,this.delta=this.getDelta()}return k(F,[{key:"applyDelta",value:function(A){var q=this,j=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),A=W(A),A.reduce(function(M,L){var C=L.retain||L.delete||L.insert.length||1,K=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var G=L.insert;G.endsWith(`
`)&&j&&(j=!1,G=G.slice(0,-1)),M>=H&&!G.endsWith(`
`)&&(j=!0),q.scroll.insertAt(M,G);var X=q.scroll.line(M),tt=S(X,2),nt=tt[0],it=tt[1],ut=(0,v.default)({},(0,o.bubbleFormats)(nt));if(nt instanceof r.default){var ct=nt.descendant(e.default.Leaf,it),mt=S(ct,1),gt=mt[0];ut=(0,v.default)(ut,(0,o.bubbleFormats)(gt))}K=i.default.attributes.diff(ut,K)||{}}else if(P(L.insert)==="object"){var V=Object.keys(L.insert)[0];if(V==null)return M;q.scroll.insertAt(M,V,L.insert[V])}H+=C}return Object.keys(K).forEach(function(Y){q.scroll.formatAt(M,C,Y,K[Y])}),M+C},0),A.reduce(function(M,L){return typeof L.delete=="number"?(q.scroll.deleteAt(M,L.delete),M):M+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,q){return this.scroll.deleteAt(A,q),this.update(new d.default().retain(A).delete(q))}},{key:"formatLine",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(M){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[M])){var L=j.scroll.lines(A,Math.max(q,1)),C=q;L.forEach(function(K){var G=K.length();if(!(K instanceof u.default))K.format(M,H[M]);else{var X=A-K.offset(j.scroll),tt=K.newlineIndex(X+C)-X+1;K.formatAt(X,tt,M,H[M])}C-=G})}}),this.scroll.optimize(),this.update(new d.default().retain(A).retain(q,(0,b.default)(H)))}},{key:"formatText",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(M){j.scroll.formatAt(A,q,M,H[M])}),this.update(new d.default().retain(A).retain(q,(0,b.default)(H)))}},{key:"getContents",value:function(A,q){return this.delta.slice(A,A+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,q){return A.concat(q.delta())},new d.default)}},{key:"getFormat",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],H=[];q===0?this.scroll.path(A).forEach(function(L){var C=S(L,1),K=C[0];K instanceof r.default?j.push(K):K instanceof e.default.Leaf&&H.push(K)}):(j=this.scroll.lines(A,q),H=this.scroll.descendants(e.default.Leaf,A,q));var M=[j,H].map(function(L){if(L.length===0)return{};for(var C=(0,o.bubbleFormats)(L.shift());Object.keys(C).length>0;){var K=L.shift();if(K==null)return C;C=z((0,o.bubbleFormats)(K),C)}return C});return v.default.apply(v.default,M)}},{key:"getText",value:function(A,q){return this.getContents(A,q).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(A,q,j){return this.scroll.insertAt(A,q,j),this.update(new d.default().retain(A).insert(w({},q,j)))}},{key:"insertText",value:function(A,q){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(A,q),Object.keys(H).forEach(function(M){j.scroll.formatAt(A,q.length,M,H[M])}),this.update(new d.default().retain(A).insert(q,(0,b.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return A.statics.blotName!==r.default.blotName||A.children.length>1?!1:A.children.head instanceof l.default}},{key:"removeFormat",value:function(A,q){var j=this.getText(A,q),H=this.scroll.line(A+q),M=S(H,2),L=M[0],C=M[1],K=0,G=new d.default;L!=null&&(L instanceof u.default?K=L.newlineIndex(C)-C+1:K=L.length()-C,G=L.delta().slice(C,C+K-1).insert(`
`));var X=this.getContents(A,q+K),tt=X.diff(new d.default().insert(j).concat(G)),nt=new d.default().retain(A).concat(tt);return this.applyDelta(nt)}},{key:"update",value:function(A){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(I)&&e.default.find(q[0].target)){var M=e.default.find(q[0].target),L=(0,o.bubbleFormats)(M),C=M.offset(this.scroll),K=q[0].oldValue.replace(a.default.CONTENTS,""),G=new d.default().insert(K),X=new d.default().insert(M.value()),tt=new d.default().retain(C).concat(G.diff(X,j));A=tt.reduce(function(nt,it){return it.insert?nt.insert(it.insert,L):nt.push(it)},new d.default),this.delta=H.compose(A)}else this.delta=this.getDelta(),(!A||!(0,T.default)(H.compose(A),this.delta))&&(A=H.diff(this.delta,j));return A}}]),F})();function z(F,R){return Object.keys(R).reduce(function(A,q){return F[q]==null||(R[q]===F[q]?A[q]=R[q]:Array.isArray(R[q])?R[q].indexOf(F[q])<0&&(A[q]=R[q].concat([F[q]])):A[q]=[R[q],F[q]]),A},{})}function W(F){return F.reduce(function(R,A){if(A.insert===1){var q=(0,b.default)(A.attributes);return delete q.image,R.insert({image:A.attributes.image},q)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,b.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var j=A.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return R.insert(j,A.attributes)}return R.push(A)},new d.default)}O.default=U}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=(function(){function m(T,y){var v=[],_=!0,w=!1,x=void 0;try{for(var I=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(y&&v.length===y));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throw x}}return v}return function(T,y){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return m(T,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function m(T,y){for(var v=0;v<y.length;v++){var _=y[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}return function(T,y,v){return y&&m(T.prototype,y),v&&m(T,v),T}})(),k=g(0),p=a(k),d=g(21),s=a(d),i=g(11),t=a(i),e=g(8),h=a(e),u=g(10),c=a(u);function a(m){return m&&m.__esModule?m:{default:m}}function o(m){if(Array.isArray(m)){for(var T=0,y=Array(m.length);T<m.length;T++)y[T]=m[T];return y}else return Array.from(m)}function r(m,T){if(!(m instanceof T))throw new TypeError("Cannot call a class as a function")}var n=(0,c.default)("quill:selection"),l=function m(T){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r(this,m),this.index=T,this.length=y},E=(function(){function m(T,y){var v=this;r(this,m),this.emitter=y,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new l(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,h.default.sources.USER),1)}),this.emitter.on(h.default.events.EDITOR_CHANGE,function(_,w){_===h.default.events.TEXT_CHANGE&&w.length()>0&&v.update(h.default.sources.SILENT)}),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var _=v.getNativeRange();_!=null&&_.start.node!==v.cursor.textNode&&v.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(_,w){if(w.range){var x=w.range,I=x.startNode,U=x.startOffset,z=x.endNode,W=x.endOffset;v.setNativeRange(I,U,z,W)}}),this.update(h.default.sources.SILENT)}return S(m,[{key:"handleComposition",value:function(){var y=this;this.root.addEventListener("compositionstart",function(){y.composing=!0}),this.root.addEventListener("compositionend",function(){if(y.composing=!1,y.cursor.parent){var v=y.cursor.restore();if(!v)return;setTimeout(function(){y.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var y=this;this.emitter.listenDOM("mousedown",document.body,function(){y.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){y.mouseDown=!1,y.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(y,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[y])){this.scroll.update();var _=this.getNativeRange();if(!(_==null||!_.native.collapsed||p.default.query(y,p.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){var w=p.default.find(_.start.node,!1);if(w==null)return;if(w instanceof p.default.Leaf){var x=w.split(_.start.offset);w.parent.insertBefore(this.cursor,x)}else w.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(y,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=this.scroll.length();y=Math.min(y,_-1),v=Math.min(y+v,_-1)-y;var w=void 0,x=this.scroll.leaf(y),I=P(x,2),U=I[0],z=I[1];if(U==null)return null;var W=U.position(z,!0),F=P(W,2);w=F[0],z=F[1];var R=document.createRange();if(v>0){R.setStart(w,z);var A=this.scroll.leaf(y+v),q=P(A,2);if(U=q[0],z=q[1],U==null)return null;var j=U.position(z,!0),H=P(j,2);return w=H[0],z=H[1],R.setEnd(w,z),R.getBoundingClientRect()}else{var M="left",L=void 0;return w instanceof Text?(z<w.data.length?(R.setStart(w,z),R.setEnd(w,z+1)):(R.setStart(w,z-1),R.setEnd(w,z),M="right"),L=R.getBoundingClientRect()):(L=U.domNode.getBoundingClientRect(),z>0&&(M="right")),{bottom:L.top+L.height,height:L.height,left:L[M],right:L[M],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var y=document.getSelection();if(y==null||y.rangeCount<=0)return null;var v=y.getRangeAt(0);if(v==null)return null;var _=this.normalizeNative(v);return n.info("getNativeRange",_),_}},{key:"getRange",value:function(){var y=this.getNativeRange();if(y==null)return[null,null];var v=this.normalizedToRange(y);return[v,y]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(y){var v=this,_=[[y.start.node,y.start.offset]];y.native.collapsed||_.push([y.end.node,y.end.offset]);var w=_.map(function(U){var z=P(U,2),W=z[0],F=z[1],R=p.default.find(W,!0),A=R.offset(v.scroll);return F===0?A:R instanceof p.default.Container?A+R.length():A+R.index(W,F)}),x=Math.min(Math.max.apply(Math,o(w)),this.scroll.length()-1),I=Math.min.apply(Math,[x].concat(o(w)));return new l(I,x-I)}},{key:"normalizeNative",value:function(y){if(!b(this.root,y.startContainer)||!y.collapsed&&!b(this.root,y.endContainer))return null;var v={start:{node:y.startContainer,offset:y.startOffset},end:{node:y.endContainer,offset:y.endOffset},native:y};return[v.start,v.end].forEach(function(_){for(var w=_.node,x=_.offset;!(w instanceof Text)&&w.childNodes.length>0;)if(w.childNodes.length>x)w=w.childNodes[x],x=0;else if(w.childNodes.length===x)w=w.lastChild,x=w instanceof Text?w.data.length:w.childNodes.length+1;else break;_.node=w,_.offset=x}),v}},{key:"rangeToNative",value:function(y){var v=this,_=y.collapsed?[y.index]:[y.index,y.index+y.length],w=[],x=this.scroll.length();return _.forEach(function(I,U){I=Math.min(x-1,I);var z=void 0,W=v.scroll.leaf(I),F=P(W,2),R=F[0],A=F[1],q=R.position(A,U!==0),j=P(q,2);z=j[0],A=j[1],w.push(z,A)}),w.length<2&&(w=w.concat(w)),w}},{key:"scrollIntoView",value:function(y){var v=this.lastRange;if(v!=null){var _=this.getBounds(v.index,v.length);if(_!=null){var w=this.scroll.length()-1,x=this.scroll.line(Math.min(v.index,w)),I=P(x,1),U=I[0],z=U;if(v.length>0){var W=this.scroll.line(Math.min(v.index+v.length,w)),F=P(W,1);z=F[0]}if(!(U==null||z==null)){var R=y.getBoundingClientRect();_.top<R.top?y.scrollTop-=R.top-_.top:_.bottom>R.bottom&&(y.scrollTop+=_.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(y,v){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",y,v,_,w),!(y!=null&&(this.root.parentNode==null||y.parentNode==null||_.parentNode==null))){var I=document.getSelection();if(I!=null)if(y!=null){this.hasFocus()||this.root.focus();var U=(this.getNativeRange()||{}).native;if(U==null||x||y!==U.startContainer||v!==U.startOffset||_!==U.endContainer||w!==U.endOffset){y.tagName=="BR"&&(v=[].indexOf.call(y.parentNode.childNodes,y),y=y.parentNode),_.tagName=="BR"&&(w=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode);var z=document.createRange();z.setStart(y,v),z.setEnd(_,w),I.removeAllRanges(),I.addRange(z)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof v=="string"&&(_=v,v=!1),n.info("setRange",y),y!=null){var w=this.rangeToNative(y);this.setNativeRange.apply(this,o(w).concat([v]))}else this.setNativeRange(null);this.update(_)}},{key:"update",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,v=this.lastRange,_=this.getRange(),w=P(_,2),x=w[0],I=w[1];if(this.lastRange=x,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(v,this.lastRange)){var U;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[h.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(v),y];if((U=this.emitter).emit.apply(U,[h.default.events.EDITOR_CHANGE].concat(z)),y!==h.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,z)}}}}]),m})();function b(m,T){try{T.parentNode}catch{return!1}return T instanceof Text&&(T=T.parentNode),m.contains(T)}O.Range=l,O.default=E}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(a)}},k=g(0),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(){return s(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,[{key:"insertInto",value:function(a,o){a.children.length===0?S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"insertInto",this).call(this,a,o):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),u})(p.default.Embed);e.blotName="break",e.tagName="BR",O.default=e}),(function(B,O,g){var P=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)e.hasOwnProperty(h)&&(t[h]=e[h])};return function(t,e){i(t,e);function h(){this.constructor=t}t.prototype=e===null?Object.create(e):(h.prototype=e.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(44),k=g(30),p=g(1),d=(function(i){P(t,i);function t(e){var h=i.call(this,e)||this;return h.build(),h}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){i.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new S.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var u=s(h);e.insertBefore(u,e.children.head||void 0)}catch(c){if(c instanceof p.ParchmentError)return;throw c}})},t.prototype.deleteAt=function(e,h){if(e===0&&h===this.length())return this.remove();this.children.forEachAt(e,h,function(u,c,a){u.deleteAt(c,a)})},t.prototype.descendant=function(e,h){var u=this.children.find(h),c=u[0],a=u[1];return e.blotName==null&&e(c)||e.blotName!=null&&c instanceof e?[c,a]:c instanceof t?c.descendant(e,a):[null,-1]},t.prototype.descendants=function(e,h,u){h===void 0&&(h=0),u===void 0&&(u=Number.MAX_VALUE);var c=[],a=u;return this.children.forEachAt(h,u,function(o,r,n){(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&c.push(o),o instanceof t&&(c=c.concat(o.descendants(e,r,a))),a-=n}),c},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),i.prototype.detach.call(this)},t.prototype.formatAt=function(e,h,u,c){this.children.forEachAt(e,h,function(a,o,r){a.formatAt(o,r,u,c)})},t.prototype.insertAt=function(e,h,u){var c=this.children.find(e),a=c[0],o=c[1];if(a)a.insertAt(o,h,u);else{var r=u==null?p.create("text",h):p.create(h,u);this.appendChild(r)}},t.prototype.insertBefore=function(e,h){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(u){return e instanceof u}))throw new p.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,h)},t.prototype.length=function(){return this.children.reduce(function(e,h){return e+h.length()},0)},t.prototype.moveChildren=function(e,h){this.children.forEach(function(u){e.insertBefore(u,h)})},t.prototype.optimize=function(e){if(i.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var h=p.create(this.statics.defaultChild);this.appendChild(h),h.optimize(e)}else this.remove()},t.prototype.path=function(e,h){h===void 0&&(h=!1);var u=this.children.find(e,h),c=u[0],a=u[1],o=[[this,e]];return c instanceof t?o.concat(c.path(a,h)):(c!=null&&o.push([c,a]),o)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),i.prototype.replace.call(this,e)},t.prototype.split=function(e,h){if(h===void 0&&(h=!1),!h){if(e===0)return this;if(e===this.length())return this.next}var u=this.clone();return this.parent.insertBefore(u,this.next),this.children.forEachAt(e,this.length(),function(c,a,o){c=c.split(a,h),u.appendChild(c)}),u},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,h){var u=this,c=[],a=[];e.forEach(function(o){o.target===u.domNode&&o.type==="childList"&&(c.push.apply(c,o.addedNodes),a.push.apply(a,o.removedNodes))}),a.forEach(function(o){if(!(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var r=p.find(o);r!=null&&(r.domNode.parentNode==null||r.domNode.parentNode===u.domNode)&&r.detach()}}),c.filter(function(o){return o.parentNode==u.domNode}).sort(function(o,r){return o===r?0:o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(o){var r=null;o.nextSibling!=null&&(r=p.find(o.nextSibling));var n=s(o);(n.next!=r||n.next==null)&&(n.parent!=null&&n.parent.removeChild(u),u.insertBefore(n,r||void 0))})},t})(k.default);function s(i){var t=p.find(i);if(t==null)try{t=p.create(i)}catch{t=p.create(p.Scope.INLINE),[].slice.call(i.childNodes).forEach(function(h){t.domNode.appendChild(h)}),i.parentNode&&i.parentNode.replaceChild(t.domNode,i),t.attach()}return t}O.default=d}),(function(B,O,g){var P=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)e.hasOwnProperty(h)&&(t[h]=e[h])};return function(t,e){i(t,e);function h(){this.constructor=t}t.prototype=e===null?Object.create(e):(h.prototype=e.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(12),k=g(31),p=g(17),d=g(1),s=(function(i){P(t,i);function t(e){var h=i.call(this,e)||this;return h.attributes=new k.default(h.domNode),h}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,h){var u=d.query(e);u instanceof S.default?this.attributes.attribute(u,h):h&&u!=null&&(e!==this.statics.blotName||this.formats()[e]!==h)&&this.replaceWith(e,h)},t.prototype.formats=function(){var e=this.attributes.values(),h=this.statics.formats(this.domNode);return h!=null&&(e[this.statics.blotName]=h),e},t.prototype.replaceWith=function(e,h){var u=i.prototype.replaceWith.call(this,e,h);return this.attributes.copy(u),u},t.prototype.update=function(e,h){var u=this;i.prototype.update.call(this,e,h),e.some(function(c){return c.target===u.domNode&&c.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,h){var u=i.prototype.wrap.call(this,e,h);return u instanceof t&&u.statics.scope===this.statics.scope&&this.attributes.move(u),u},t})(p.default);O.default=s}),(function(B,O,g){var P=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var t in i)i.hasOwnProperty(t)&&(s[t]=i[t])};return function(s,i){d(s,i);function t(){this.constructor=s}s.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(30),k=g(1),p=(function(d){P(s,d);function s(){return d!==null&&d.apply(this,arguments)||this}return s.value=function(i){return!0},s.prototype.index=function(i,t){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},s.prototype.position=function(i,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return i>0&&(e+=1),[this.parent.domNode,e]},s.prototype.value=function(){var i;return i={},i[this.statics.blotName]=this.statics.value(this.domNode)||!0,i},s.scope=k.Scope.INLINE_BLOT,s})(S.default);O.default=p}),(function(B,O,g){var P=g(11),S=g(3),k={attributes:{compose:function(d,s,i){typeof d!="object"&&(d={}),typeof s!="object"&&(s={});var t=S(!0,{},s);i||(t=Object.keys(t).reduce(function(h,u){return t[u]!=null&&(h[u]=t[u]),h},{}));for(var e in d)d[e]!==void 0&&s[e]===void 0&&(t[e]=d[e]);return Object.keys(t).length>0?t:void 0},diff:function(d,s){typeof d!="object"&&(d={}),typeof s!="object"&&(s={});var i=Object.keys(d).concat(Object.keys(s)).reduce(function(t,e){return P(d[e],s[e])||(t[e]=s[e]===void 0?null:s[e]),t},{});return Object.keys(i).length>0?i:void 0},transform:function(d,s,i){if(typeof d!="object")return s;if(typeof s=="object"){if(!i)return s;var t=Object.keys(s).reduce(function(e,h){return d[h]===void 0&&(e[h]=s[h]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(d){return new p(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function p(d){this.ops=d,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(d){d||(d=1/0);var s=this.ops[this.index];if(s){var i=this.offset,t=k.length(s);if(d>=t-i?(d=t-i,this.index+=1,this.offset=0):this.offset+=d,typeof s.delete=="number")return{delete:d};var e={};return s.attributes&&(e.attributes=s.attributes),typeof s.retain=="number"?e.retain=d:typeof s.insert=="string"?e.insert=s.insert.substr(i,d):e.insert=s.insert,e}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?k.length(this.ops[this.index])-this.offset:1/0},p.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,s=this.index,i=this.next(),t=this.ops.slice(this.index);return this.offset=d,this.index=s,[i].concat(t)}else return[]},B.exports=k}),(function(B,O){var g=(function(){function P(u,c){return c!=null&&u instanceof c}var S;try{S=Map}catch{S=function(){}}var k;try{k=Set}catch{k=function(){}}var p;try{p=Promise}catch{p=function(){}}function d(u,c,a,o,r){typeof c=="object"&&(a=c.depth,o=c.prototype,r=c.includeNonEnumerable,c=c.circular);var n=[],l=[],E=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof a>"u"&&(a=1/0);function b(m,T){if(m===null)return null;if(T===0)return m;var y,v;if(typeof m!="object")return m;if(P(m,S))y=new S;else if(P(m,k))y=new k;else if(P(m,p))y=new p(function(R,A){m.then(function(q){R(b(q,T-1))},function(q){A(b(q,T-1))})});else if(d.__isArray(m))y=[];else if(d.__isRegExp(m))y=new RegExp(m.source,h(m)),m.lastIndex&&(y.lastIndex=m.lastIndex);else if(d.__isDate(m))y=new Date(m.getTime());else{if(E&&Buffer.isBuffer(m))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(m.length):y=new Buffer(m.length),m.copy(y),y;P(m,Error)?y=Object.create(m):typeof o>"u"?(v=Object.getPrototypeOf(m),y=Object.create(v)):(y=Object.create(o),v=o)}if(c){var _=n.indexOf(m);if(_!=-1)return l[_];n.push(m),l.push(y)}P(m,S)&&m.forEach(function(R,A){var q=b(A,T-1),j=b(R,T-1);y.set(q,j)}),P(m,k)&&m.forEach(function(R){var A=b(R,T-1);y.add(A)});for(var w in m){var x;v&&(x=Object.getOwnPropertyDescriptor(v,w)),!(x&&x.set==null)&&(y[w]=b(m[w],T-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(m),w=0;w<I.length;w++){var U=I[w],z=Object.getOwnPropertyDescriptor(m,U);z&&!z.enumerable&&!r||(y[U]=b(m[U],T-1),z.enumerable||Object.defineProperty(y,U,{enumerable:!1}))}if(r)for(var W=Object.getOwnPropertyNames(m),w=0;w<W.length;w++){var F=W[w],z=Object.getOwnPropertyDescriptor(m,F);z&&z.enumerable||(y[F]=b(m[F],T-1),Object.defineProperty(y,F,{enumerable:!1}))}return y}return b(u,a)}d.clonePrototype=function(c){if(c===null)return null;var a=function(){};return a.prototype=c,new a};function s(u){return Object.prototype.toString.call(u)}d.__objToStr=s;function i(u){return typeof u=="object"&&s(u)==="[object Date]"}d.__isDate=i;function t(u){return typeof u=="object"&&s(u)==="[object Array]"}d.__isArray=t;function e(u){return typeof u=="object"&&s(u)==="[object RegExp]"}d.__isRegExp=e;function h(u){var c="";return u.global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),c}return d.__getRegExpFlags=h,d})();typeof B=="object"&&B.exports&&(B.exports=g)}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function y(v,_){var w=[],x=!0,I=!1,U=void 0;try{for(var z=v[Symbol.iterator](),W;!(x=(W=z.next()).done)&&(w.push(W.value),!(_&&w.length===_));x=!0);}catch(F){I=!0,U=F}finally{try{!x&&z.return&&z.return()}finally{if(I)throw U}}return w}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return y(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function y(v,_){for(var w=0;w<_.length;w++){var x=_[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,_,w){return _&&y(v.prototype,_),w&&y(v,w),v}})(),k=function y(v,_,w){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,_);if(x===void 0){var I=Object.getPrototypeOf(v);return I===null?void 0:y(I,_,w)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(w)}},p=g(0),d=n(p),s=g(8),i=n(s),t=g(4),e=n(t),h=g(16),u=n(h),c=g(13),a=n(c),o=g(25),r=n(o);function n(y){return y&&y.__esModule?y:{default:y}}function l(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function E(y,v){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:y}function b(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}function m(y){return y instanceof e.default||y instanceof t.BlockEmbed}var T=(function(y){b(v,y);function v(_,w){l(this,v);var x=E(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_));return x.emitter=w.emitter,Array.isArray(w.whitelist)&&(x.whitelist=w.whitelist.reduce(function(I,U){return I[U]=!0,I},{})),x.domNode.addEventListener("DOMNodeInserted",function(){}),x.optimize(),x.enable(),x}return S(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(w,x){var I=this.line(w),U=P(I,2),z=U[0],W=U[1],F=this.line(w+x),R=P(F,1),A=R[0];if(k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,w,x),A!=null&&z!==A&&W>0){if(z instanceof t.BlockEmbed||A instanceof t.BlockEmbed){this.optimize();return}if(z instanceof a.default){var q=z.newlineIndex(z.length(),!0);if(q>-1&&(z=z.split(q+1),z===A)){this.optimize();return}}else if(A instanceof a.default){var j=A.newlineIndex(0);j>-1&&A.split(j+1)}var H=A.children.head instanceof u.default?null:A.children.head;z.moveChildren(A,H),z.remove()}this.optimize()}},{key:"enable",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",w)}},{key:"formatAt",value:function(w,x,I,U){this.whitelist!=null&&!this.whitelist[I]||(k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,w,x,I,U),this.optimize())}},{key:"insertAt",value:function(w,x,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[x])){if(w>=this.length())if(I==null||d.default.query(x,d.default.Scope.BLOCK)==null){var U=d.default.create(this.statics.defaultChild);this.appendChild(U),I==null&&x.endsWith(`
`)&&(x=x.slice(0,-1)),U.insertAt(0,x,I)}else{var z=d.default.create(x,I);this.appendChild(z)}else k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,w,x,I);this.optimize()}}},{key:"insertBefore",value:function(w,x){if(w.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(w),w=I}k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,w,x)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(m,w)}},{key:"lines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function U(z,W,F){var R=[],A=F;return z.children.forEachAt(W,F,function(q,j,H){m(q)?R.push(q):q instanceof d.default.Container&&(R=R.concat(U(q,j,A))),A-=H}),R};return I(this,w,x)}},{key:"optimize",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,w,x),w.length>0&&this.emitter.emit(i.default.events.SCROLL_OPTIMIZE,w,x))}},{key:"path",value:function(w){return k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(this.batch!==!0){var x=i.default.sources.USER;typeof w=="string"&&(x=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(i.default.events.SCROLL_BEFORE_UPDATE,x,w),k(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(i.default.events.SCROLL_UPDATE,x,w)}}}]),v})(d.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[e.default,t.BlockEmbed,r.default],O.default=T}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=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},S=(function(){function L(C,K){var G=[],X=!0,tt=!1,nt=void 0;try{for(var it=C[Symbol.iterator](),ut;!(X=(ut=it.next()).done)&&(G.push(ut.value),!(K&&G.length===K));X=!0);}catch(ct){tt=!0,nt=ct}finally{try{!X&&it.return&&it.return()}finally{if(tt)throw nt}}return G}return function(C,K){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return L(C,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function L(C,K){for(var G=0;G<K.length;G++){var X=K[G];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(C,X.key,X)}}return function(C,K,G){return K&&L(C.prototype,K),G&&L(C,G),C}})(),p=g(21),d=y(p),s=g(11),i=y(s),t=g(3),e=y(t),h=g(2),u=y(h),c=g(20),a=y(c),o=g(0),r=y(o),n=g(5),l=y(n),E=g(10),b=y(E),m=g(9),T=y(m);function y(L){return L&&L.__esModule?L:{default:L}}function v(L,C,K){return C in L?Object.defineProperty(L,C,{value:K,enumerable:!0,configurable:!0,writable:!0}):L[C]=K,L}function _(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function w(L,C){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:L}function x(L,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);L.prototype=Object.create(C&&C.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(L,C):L.__proto__=C)}var I=(0,b.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=(function(L){x(C,L),k(C,null,[{key:"match",value:function(G,X){return X=M(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(tt){return!!X[tt]!==G[tt]&&X[tt]!==null})?!1:X.key===(G.which||G.keyCode)}}]);function C(K,G){_(this,C);var X=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,K,G));return X.bindings={},Object.keys(X.options.bindings).forEach(function(tt){tt==="list autofill"&&K.scroll.whitelist!=null&&!K.scroll.whitelist.list||X.options.bindings[tt]&&X.addBinding(X.options.bindings[tt])}),X.addBinding({key:C.keys.ENTER,shiftKey:null},q),X.addBinding({key:C.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:C.keys.BACKSPACE},{collapsed:!0},F),X.addBinding({key:C.keys.DELETE},{collapsed:!0},R)):(X.addBinding({key:C.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},F),X.addBinding({key:C.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),X.addBinding({key:C.keys.BACKSPACE},{collapsed:!1},A),X.addBinding({key:C.keys.DELETE},{collapsed:!1},A),X.addBinding({key:C.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},F),X.listen(),X}return k(C,[{key:"addBinding",value:function(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=M(G);if(nt==null||nt.key==null)return I.warn("Attempted to add invalid keyboard binding",nt);typeof X=="function"&&(X={handler:X}),typeof tt=="function"&&(tt={handler:tt}),nt=(0,e.default)(nt,X,tt),this.bindings[nt.key]=this.bindings[nt.key]||[],this.bindings[nt.key].push(nt)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var tt=X.which||X.keyCode,nt=(G.bindings[tt]||[]).filter(function(ht){return C.match(X,ht)});if(nt.length!==0){var it=G.quill.getSelection();if(!(it==null||!G.quill.hasFocus())){var ut=G.quill.getLine(it.index),ct=S(ut,2),mt=ct[0],gt=ct[1],V=G.quill.getLeaf(it.index),Y=S(V,2),J=Y[0],$=Y[1],Q=it.length===0?[J,$]:G.quill.getLeaf(it.index+it.length),at=S(Q,2),rt=at[0],ot=at[1],Tt=J instanceof r.default.Text?J.value().slice(0,$):"",Et=rt instanceof r.default.Text?rt.value().slice(ot):"",pt={collapsed:it.length===0,empty:it.length===0&&mt.length()<=1,format:G.quill.getFormat(it),offset:gt,prefix:Tt,suffix:Et},Yt=nt.some(function(ht){if(ht.collapsed!=null&&ht.collapsed!==pt.collapsed||ht.empty!=null&&ht.empty!==pt.empty||ht.offset!=null&&ht.offset!==pt.offset)return!1;if(Array.isArray(ht.format)){if(ht.format.every(function(qt){return pt.format[qt]==null}))return!1}else if(P(ht.format)==="object"&&!Object.keys(ht.format).every(function(qt){return ht.format[qt]===!0?pt.format[qt]!=null:ht.format[qt]===!1?pt.format[qt]==null:(0,i.default)(ht.format[qt],pt.format[qt])}))return!1;return ht.prefix!=null&&!ht.prefix.test(pt.prefix)||ht.suffix!=null&&!ht.suffix.test(pt.suffix)?!1:ht.handler.call(G,it,pt)!==!0});Yt&&X.preventDefault()}}}})}}]),C})(T.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:H("bold"),italic:H("italic"),underline:H("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(C,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",l.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(C,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",l.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(C,K){K.format.indent!=null?this.quill.format("indent","-1",l.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,l.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(C){this.quill.deleteText(C.index-1,1,l.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(C){this.quill.history.cutoff();var K=new u.default().retain(C.index).delete(C.length).insert(" ");this.quill.updateContents(K,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index+1,l.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(C,K){this.quill.format("list",!1,l.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,l.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(C){var K=this.quill.getLine(C.index),G=S(K,2),X=G[0],tt=G[1],nt=(0,e.default)({},X.formats(),{list:"checked"}),it=new u.default().retain(C.index).insert(`
`,nt).retain(X.length()-tt-1).retain(1,{list:"unchecked"});this.quill.updateContents(it,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(C,K){var G=this.quill.getLine(C.index),X=S(G,2),tt=X[0],nt=X[1],it=new u.default().retain(C.index).insert(`
`,K.format).retain(tt.length()-nt-1).retain(1,{header:null});this.quill.updateContents(it,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(C,K){var G=K.prefix.length,X=this.quill.getLine(C.index),tt=S(X,2),nt=tt[0],it=tt[1];if(it>G)return!0;var ut=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":ut="unchecked";break;case"[x]":ut="checked";break;case"-":case"*":ut="bullet";break;default:ut="ordered"}this.quill.insertText(C.index," ",l.default.sources.USER),this.quill.history.cutoff();var ct=new u.default().retain(C.index-it).delete(G+1).retain(nt.length()-2-it).retain(1,{list:ut});this.quill.updateContents(ct,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index-G,l.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(C){var K=this.quill.getLine(C.index),G=S(K,2),X=G[0],tt=G[1],nt=new u.default().retain(C.index+X.length()-tt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(nt,l.default.sources.USER)}},"embed left":W(z.keys.LEFT,!1),"embed left shift":W(z.keys.LEFT,!0),"embed right":W(z.keys.RIGHT,!1),"embed right shift":W(z.keys.RIGHT,!0)}};function W(L,C){var K,G=L===z.keys.LEFT?"prefix":"suffix";return K={key:L,shiftKey:C,altKey:null},v(K,G,/^$/),v(K,"handler",function(tt){var nt=tt.index;L===z.keys.RIGHT&&(nt+=tt.length+1);var it=this.quill.getLeaf(nt),ut=S(it,1),ct=ut[0];return ct instanceof r.default.Embed?(L===z.keys.LEFT?C?this.quill.setSelection(tt.index-1,tt.length+1,l.default.sources.USER):this.quill.setSelection(tt.index-1,l.default.sources.USER):C?this.quill.setSelection(tt.index,tt.length+1,l.default.sources.USER):this.quill.setSelection(tt.index+tt.length+1,l.default.sources.USER),!1):!0}),K}function F(L,C){if(!(L.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(L.index),G=S(K,1),X=G[0],tt={};if(C.offset===0){var nt=this.quill.getLine(L.index-1),it=S(nt,1),ut=it[0];if(ut!=null&&ut.length()>1){var ct=X.formats(),mt=this.quill.getFormat(L.index-1,1);tt=a.default.attributes.diff(ct,mt)||{}}}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(C.prefix)?2:1;this.quill.deleteText(L.index-gt,gt,l.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(L.index-gt,gt,tt,l.default.sources.USER),this.quill.focus()}}function R(L,C){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(C.suffix)?2:1;if(!(L.index>=this.quill.getLength()-K)){var G={},X=0,tt=this.quill.getLine(L.index),nt=S(tt,1),it=nt[0];if(C.offset>=it.length()-1){var ut=this.quill.getLine(L.index+1),ct=S(ut,1),mt=ct[0];if(mt){var gt=it.formats(),V=this.quill.getFormat(L.index,1);G=a.default.attributes.diff(gt,V)||{},X=mt.length()}}this.quill.deleteText(L.index,K,l.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(L.index+X-1,K,G,l.default.sources.USER)}}function A(L){var C=this.quill.getLines(L),K={};if(C.length>1){var G=C[0].formats(),X=C[C.length-1].formats();K=a.default.attributes.diff(X,G)||{}}this.quill.deleteText(L,l.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(L.index,1,K,l.default.sources.USER),this.quill.setSelection(L.index,l.default.sources.SILENT),this.quill.focus()}function q(L,C){var K=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var G=Object.keys(C.format).reduce(function(X,tt){return r.default.query(tt,r.default.Scope.BLOCK)&&!Array.isArray(C.format[tt])&&(X[tt]=C.format[tt]),X},{});this.quill.insertText(L.index,`
`,G,l.default.sources.USER),this.quill.setSelection(L.index+1,l.default.sources.SILENT),this.quill.focus(),Object.keys(C.format).forEach(function(X){G[X]==null&&(Array.isArray(C.format[X])||X!=="link"&&K.quill.format(X,C.format[X],l.default.sources.USER))})}function j(L){return{key:z.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(K){var G=r.default.query("code-block"),X=K.index,tt=K.length,nt=this.quill.scroll.descendant(G,X),it=S(nt,2),ut=it[0],ct=it[1];if(ut!=null){var mt=this.quill.getIndex(ut),gt=ut.newlineIndex(ct,!0)+1,V=ut.newlineIndex(mt+ct+tt),Y=ut.domNode.textContent.slice(gt,V).split(`
`);ct=0,Y.forEach(function(J,$){L?(ut.insertAt(gt+ct,G.TAB),ct+=G.TAB.length,$===0?X+=G.TAB.length:tt+=G.TAB.length):J.startsWith(G.TAB)&&(ut.deleteAt(gt+ct,G.TAB.length),ct-=G.TAB.length,$===0?X-=G.TAB.length:tt-=G.TAB.length),ct+=J.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(X,tt,l.default.sources.SILENT)}}}}function H(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(K,G){this.quill.format(L,!G.format[L],l.default.sources.USER)}}}function M(L){if(typeof L=="string"||typeof L=="number")return M({key:L});if((typeof L>"u"?"undefined":P(L))==="object"&&(L=(0,d.default)(L,!1)),typeof L.key=="string")if(z.keys[L.key.toUpperCase()]!=null)L.key=z.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[U]=L.shortKey,delete L.shortKey),L}O.default=z,O.SHORTKEY=U}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function a(o,r){var n=[],l=!0,E=!1,b=void 0;try{for(var m=o[Symbol.iterator](),T;!(l=(T=m.next()).done)&&(n.push(T.value),!(r&&n.length===r));l=!0);}catch(y){E=!0,b=y}finally{try{!l&&m.return&&m.return()}finally{if(E)throw b}}return n}return function(o,r){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return a(o,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function a(o,r,n){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,n)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(n)}},k=(function(){function a(o,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,n){return r&&a(o.prototype,r),n&&a(o,n),o}})(),p=g(0),d=t(p),s=g(7),i=t(s);function t(a){return a&&a.__esModule?a:{default:a}}function e(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function h(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function u(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var c=(function(a){u(o,a),k(o,null,[{key:"value",value:function(){}}]);function o(r,n){e(this,o);var l=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));return l.selection=n,l.textNode=document.createTextNode(o.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}return k(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,l){if(this._length!==0)return S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,n,l);for(var E=this,b=0;E!=null&&E.statics.scope!==d.default.Scope.BLOCK_BLOT;)b+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=o.CONTENTS.length,E.optimize(),E.formatAt(b,o.CONTENTS.length,n,l),this._length=0)}},{key:"index",value:function(n,l){return n===this.textNode?0:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,l)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){S(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,l=this.selection.getNativeRange(),E=void 0,b=void 0,m=void 0;if(l!=null&&l.start.node===n&&l.end.node===n){var T=[n,l.start.offset,l.end.offset];E=T[0],b=T[1],m=T[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 y=this.textNode.data.split(o.CONTENTS).join("");this.next instanceof i.default?(E=this.next.domNode,this.next.insertAt(0,y),this.textNode.data=o.CONTENTS):(this.textNode.data=y,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(o.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),b!=null){var v=[b,m].map(function(w){return Math.max(0,Math.min(E.data.length,w-1))}),_=P(v,2);return b=_[0],m=_[1],{startNode:E,startOffset:b,endNode:E,endOffset:m}}}}},{key:"update",value:function(n,l){var E=this;if(n.some(function(m){return m.type==="characterData"&&m.target===E.textNode})){var b=this.restore();b&&(l.range=b)}}},{key:"value",value:function(){return""}}]),o})(d.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\uFEFF",O.default=c}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(0),S=d(P),k=g(4),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(){return s(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(S.default.Container);e.allowedChildren=[p.default,k.BlockEmbed,e],O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=(function(){function c(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,o);if(n===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},k=g(0),p=d(k);function d(c){return c&&c.__esModule?c:{default:c}}function s(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function i(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function t(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var e=(function(c){t(a,c);function a(){return s(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"value",value:function(r){var n=S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,r);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(l){return("00"+parseInt(l).toString(16)).slice(-2)}).join("")):n}}]),a})(p.default.Attributor.Style),h=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),u=new e("color","color",{scope:p.default.Scope.INLINE});O.ColorAttributor=e,O.ColorClass=h,O.ColorStyle=u}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=(function(){function u(c,a){for(var o=0;o<a.length;o++){var r=a[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(c,r.key,r)}}return function(c,a,o){return a&&u(c.prototype,a),o&&u(c,o),c}})(),S=function u(c,a,o){c===null&&(c=Function.prototype);var r=Object.getOwnPropertyDescriptor(c,a);if(r===void 0){var n=Object.getPrototypeOf(c);return n===null?void 0:u(n,a,o)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(o)}},k=g(6),p=d(k);function d(u){return u&&u.__esModule?u:{default:u}}function s(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function i(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function t(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var e=(function(u){t(c,u);function c(){return s(this,c),i(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return P(c,[{key:"format",value:function(o,r){if(o!==this.statics.blotName||!r)return S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,o,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(o){var r=S(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,o);return o=this.sanitize(o),r.setAttribute("href",o),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(o){return o.getAttribute("href")}},{key:"sanitize",value:function(o){return h(o,this.PROTOCOL_WHITELIST)?o:this.SANITIZED_URL}}]),c})(p.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function h(u,c){var a=document.createElement("a");a.href=u;var o=a.href.slice(0,a.href.indexOf(":"));return c.indexOf(o)>-1}O.default=e,O.sanitize=h}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},S=(function(){function c(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),k=g(23),p=i(k),d=g(107),s=i(d);function i(c){return c&&c.__esModule?c:{default:c}}function t(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}var e=0;function h(c,a){c.setAttribute(a,c.getAttribute(a)!=="true")}var u=(function(){function c(a){var o=this;t(this,c),this.select=a,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(r){switch(r.keyCode){case p.default.keys.ENTER:o.togglePicker();break;case p.default.keys.ESCAPE:o.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return S(c,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(o){var r=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(){r.selectItem(n,!0)}),n.addEventListener("keydown",function(l){switch(l.keyCode){case p.default.keys.ENTER:r.selectItem(n,!0),l.preventDefault();break;case p.default.keys.ESCAPE:r.escape(),l.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var o=document.createElement("span");return o.classList.add("ql-picker-label"),o.innerHTML=s.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,r=document.createElement("span");r.classList.add("ql-picker-options"),r.setAttribute("aria-hidden","true"),r.tabIndex="-1",r.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",r.id),this.options=r,[].slice.call(this.select.options).forEach(function(n){var l=o.buildItem(n);r.appendChild(l),n.selected===!0&&o.selectItem(l)}),this.container.appendChild(r)}},{key:"buildPicker",value:function(){var o=this;[].slice.call(this.select.attributes).forEach(function(r){o.container.setAttribute(r.name,r.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 r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(o!==n&&(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"),r))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":P(Event))==="object"){var l=document.createEvent("Event");l.initEvent("change",!0,!0),this.select.dispatchEvent(l)}this.close()}}},{key:"update",value:function(){var o=void 0;if(this.select.selectedIndex>-1){var r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];o=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);var n=o!=null&&o!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),c})();O.default=u}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(0),S=I(P),k=g(5),p=I(k),d=g(4),s=I(d),i=g(16),t=I(i),e=g(25),h=I(e),u=g(24),c=I(u),a=g(35),o=I(a),r=g(6),n=I(r),l=g(22),E=I(l),b=g(7),m=I(b),T=g(55),y=I(T),v=g(42),_=I(v),w=g(23),x=I(w);function I(U){return U&&U.__esModule?U:{default:U}}p.default.register({"blots/block":s.default,"blots/block/embed":d.BlockEmbed,"blots/break":t.default,"blots/container":h.default,"blots/cursor":c.default,"blots/embed":o.default,"blots/inline":n.default,"blots/scroll":E.default,"blots/text":m.default,"modules/clipboard":y.default,"modules/history":_.default,"modules/keyboard":x.default}),S.default.register(s.default,t.default,c.default,n.default,E.default,m.default),O.default=p.default}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(1),S=(function(){function k(p){this.domNode=p,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(k.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),k.create=function(p){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?d=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?d=document.createElement(p):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},k.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},k.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return P.create(p)},k.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},k.prototype.deleteAt=function(p,d){var s=this.isolate(p,d);s.remove()},k.prototype.formatAt=function(p,d,s,i){var t=this.isolate(p,d);if(P.query(s,P.Scope.BLOT)!=null&&i)t.wrap(s,i);else if(P.query(s,P.Scope.ATTRIBUTE)!=null){var e=P.create(this.statics.scope);t.wrap(e),e.format(s,i)}},k.prototype.insertAt=function(p,d,s){var i=s==null?P.create("text",d):P.create(d,s),t=this.split(p);this.parent.insertBefore(i,t)},k.prototype.insertInto=function(p,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var s=null;p.children.insertBefore(this,d),d!=null&&(s=d.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=s)&&p.domNode.insertBefore(this.domNode,s),this.parent=p,this.attach()},k.prototype.isolate=function(p,d){var s=this.split(p);return s.split(d),s},k.prototype.length=function(){return 1},k.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},k.prototype.optimize=function(p){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},k.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},k.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},k.prototype.replaceWith=function(p,d){var s=typeof p=="string"?P.create(p,d):p;return s.replace(this),s},k.prototype.split=function(p,d){return p===0?this:this.next},k.prototype.update=function(p,d){},k.prototype.wrap=function(p,d){var s=typeof p=="string"?P.create(p,d):p;return this.parent!=null&&this.parent.insertBefore(s,this.next),s.appendChild(this),s},k.blotName="abstract",k})();O.default=S}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(12),S=g(32),k=g(33),p=g(1),d=(function(){function s(i){this.attributes={},this.domNode=i,this.build()}return s.prototype.attribute=function(i,t){t?i.add(this.domNode,t)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])},s.prototype.build=function(){var i=this;this.attributes={};var t=P.default.keys(this.domNode),e=S.default.keys(this.domNode),h=k.default.keys(this.domNode);t.concat(e).concat(h).forEach(function(u){var c=p.query(u,p.Scope.ATTRIBUTE);c instanceof P.default&&(i.attributes[c.attrName]=c)})},s.prototype.copy=function(i){var t=this;Object.keys(this.attributes).forEach(function(e){var h=t.attributes[e].value(t.domNode);i.format(e,h)})},s.prototype.move=function(i){var t=this;this.copy(i),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},s.prototype.values=function(){var i=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=i.attributes[e].value(i.domNode),t},{})},s})();O.default=d}),(function(B,O,g){var P=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var t in i)i.hasOwnProperty(t)&&(s[t]=i[t])};return function(s,i){d(s,i);function t(){this.constructor=s}s.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(12);function k(d,s){var i=d.getAttribute("class")||"";return i.split(/\s+/).filter(function(t){return t.indexOf(s+"-")===0})}var p=(function(d){P(s,d);function s(){return d!==null&&d.apply(this,arguments)||this}return s.keys=function(i){return(i.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},s.prototype.add=function(i,t){return this.canAdd(i,t)?(this.remove(i),i.classList.add(this.keyName+"-"+t),!0):!1},s.prototype.remove=function(i){var t=k(i,this.keyName);t.forEach(function(e){i.classList.remove(e)}),i.classList.length===0&&i.removeAttribute("class")},s.prototype.value=function(i){var t=k(i,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(i,e)?e:""},s})(S.default);O.default=p}),(function(B,O,g){var P=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var t in i)i.hasOwnProperty(t)&&(s[t]=i[t])};return function(s,i){d(s,i);function t(){this.constructor=s}s.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(12);function k(d){var s=d.split("-"),i=s.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return s[0]+i}var p=(function(d){P(s,d);function s(){return d!==null&&d.apply(this,arguments)||this}return s.keys=function(i){return(i.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},s.prototype.add=function(i,t){return this.canAdd(i,t)?(i.style[k(this.keyName)]=t,!0):!1},s.prototype.remove=function(i){i.style[k(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")},s.prototype.value=function(i){var t=i.style[k(this.keyName)];return this.canAdd(i,t)?t:""},s})(S.default);O.default=p}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function p(d,s){for(var i=0;i<s.length;i++){var t=s[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}return function(d,s,i){return s&&p(d.prototype,s),i&&p(d,i),d}})();function S(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}var k=(function(){function p(d,s){S(this,p),this.quill=d,this.options=s,this.modules={}}return P(p,[{key:"init",value:function(){var s=this;Object.keys(this.options.modules).forEach(function(i){s.modules[i]==null&&s.addModule(i)})}},{key:"addModule",value:function(s){var i=this.quill.constructor.import("modules/"+s);return this.modules[s]=new i(this.quill,this.options.modules[s]||{}),this.modules[s]}}]),p})();k.DEFAULTS={modules:{}},k.themes={default:k},O.default=k}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function a(o,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,n){return r&&a(o.prototype,r),n&&a(o,n),o}})(),S=function a(o,r,n){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,n)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(n)}},k=g(0),p=i(k),d=g(7),s=i(d);function i(a){return a&&a.__esModule?a:{default:a}}function t(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function e(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function h(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var u="\uFEFF",c=(function(a){h(o,a);function o(r){t(this,o);var n=e(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(l){n.contentNode.appendChild(l)}),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return P(o,[{key:"index",value:function(n,l){return n===this.leftGuard?0:n===this.rightGuard?1:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,l)}},{key:"restore",value:function(n){var l=void 0,E=void 0,b=n.data.split(u).join("");if(n===this.leftGuard)if(this.prev instanceof s.default){var m=this.prev.length();this.prev.insertAt(m,b),l={startNode:this.prev.domNode,startOffset:m+b.length}}else E=document.createTextNode(b),this.parent.insertBefore(p.default.create(E),this),l={startNode:E,startOffset:b.length};else n===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,b),l={startNode:this.next.domNode,startOffset:b.length}):(E=document.createTextNode(b),this.parent.insertBefore(p.default.create(E),this.next),l={startNode:E,startOffset:b.length}));return n.data=u,l}},{key:"update",value:function(n,l){var E=this;n.forEach(function(b){if(b.type==="characterData"&&(b.target===E.leftGuard||b.target===E.rightGuard)){var m=E.restore(b.target);m&&(l.range=m)}})}}]),o})(p.default.Embed);O.default=c}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var P=g(0),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}var p={scope:S.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new S.default.Attributor.Attribute("align","align",p),s=new S.default.Attributor.Class("align","ql-align",p),i=new S.default.Attributor.Style("align","text-align",p);O.AlignAttribute=d,O.AlignClass=s,O.AlignStyle=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var P=g(0),S=p(P),k=g(26);function p(i){return i&&i.__esModule?i:{default:i}}var d=new S.default.Attributor.Class("background","ql-bg",{scope:S.default.Scope.INLINE}),s=new k.ColorAttributor("background","background-color",{scope:S.default.Scope.INLINE});O.BackgroundClass=d,O.BackgroundStyle=s}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var P=g(0),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}var p={scope:S.default.Scope.BLOCK,whitelist:["rtl"]},d=new S.default.Attributor.Attribute("direction","dir",p),s=new S.default.Attributor.Class("direction","ql-direction",p),i=new S.default.Attributor.Style("direction","direction",p);O.DirectionAttribute=d,O.DirectionClass=s,O.DirectionStyle=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=(function(){function a(o,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,n){return r&&a(o.prototype,r),n&&a(o,n),o}})(),S=function a(o,r,n){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,n)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(n)}},k=g(0),p=d(k);function d(a){return a&&a.__esModule?a:{default:a}}function s(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function i(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function t(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var e={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new p.default.Attributor.Class("font","ql-font",e),u=(function(a){t(o,a);function o(){return s(this,o),i(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"value",value:function(n){return S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),o})(p.default.Attributor.Style),c=new u("font","font-family",e);O.FontStyle=c,O.FontClass=h}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var P=g(0),S=k(P);function k(s){return s&&s.__esModule?s:{default:s}}var p=new S.default.Attributor.Class("size","ql-size",{scope:S.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new S.default.Attributor.Style("size","font-size",{scope:S.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=p,O.SizeStyle=d}),(function(B,O,g){B.exports={align:{"":g(76),center:g(77),right:g(78),justify:g(79)},background:g(80),blockquote:g(81),bold:g(82),clean:g(83),code:g(58),"code-block":g(58),color:g(84),direction:{"":g(85),rtl:g(86)},float:{center:g(87),full:g(88),left:g(89),right:g(90)},formula:g(91),header:{1:g(92),2:g(93)},italic:g(94),image:g(95),indent:{"+1":g(96),"-1":g(97)},link:g(98),list:{ordered:g(99),bullet:g(100),check:g(101)},script:{sub:g(102),super:g(103)},strike:g(104),underline:g(105),video:g(106)}}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=(function(){function r(n,l){for(var E=0;E<l.length;E++){var b=l[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,l,E){return l&&r(n.prototype,l),E&&r(n,E),n}})(),S=g(0),k=t(S),p=g(5),d=t(p),s=g(9),i=t(s);function t(r){return r&&r.__esModule?r:{default:r}}function e(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function h(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function u(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var c=(function(r){u(n,r);function n(l,E){e(this,n);var b=h(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,l,E));return b.lastRecorded=0,b.ignoreChange=!1,b.clear(),b.quill.on(d.default.events.EDITOR_CHANGE,function(m,T,y,v){m!==d.default.events.TEXT_CHANGE||b.ignoreChange||(!b.options.userOnly||v===d.default.sources.USER?b.record(T,y):b.transform(T))}),b.quill.keyboard.addBinding({key:"Z",shortKey:!0},b.undo.bind(b)),b.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},b.redo.bind(b)),/Win/i.test(navigator.platform)&&b.quill.keyboard.addBinding({key:"Y",shortKey:!0},b.redo.bind(b)),b}return P(n,[{key:"change",value:function(E,b){if(this.stack[E].length!==0){var m=this.stack[E].pop();this.stack[b].push(m),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(m[E],d.default.sources.USER),this.ignoreChange=!1;var T=o(m[E]);this.quill.setSelection(T)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,b){if(E.ops.length!==0){this.stack.redo=[];var m=this.quill.getContents().diff(b),T=Date.now();if(this.lastRecorded+this.options.delay>T&&this.stack.undo.length>0){var y=this.stack.undo.pop();m=m.compose(y.undo),E=y.redo.compose(E)}else this.lastRecorded=T;this.stack.undo.push({redo:E,undo:m}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(b){b.undo=E.transform(b.undo,!0),b.redo=E.transform(b.redo,!0)}),this.stack.redo.forEach(function(b){b.undo=E.transform(b.undo,!0),b.redo=E.transform(b.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n})(i.default);c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function a(r){var n=r.ops[r.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(l){return k.default.query(l,k.default.Scope.BLOCK)!=null}):!1}function o(r){var n=r.reduce(function(E,b){return E+=b.delete||0,E},0),l=r.length()-n;return a(r)&&(l-=1),l}O.default=c,O.getLastChangeIndex=o}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=(function(){function q(j,H){for(var M=0;M<H.length;M++){var L=H[M];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(j,L.key,L)}}return function(j,H,M){return H&&q(j.prototype,H),M&&q(j,M),j}})(),S=function q(j,H,M){j===null&&(j=Function.prototype);var L=Object.getOwnPropertyDescriptor(j,H);if(L===void 0){var C=Object.getPrototypeOf(j);return C===null?void 0:q(C,H,M)}else{if("value"in L)return L.value;var K=L.get;return K===void 0?void 0:K.call(M)}},k=g(3),p=T(k),d=g(2),s=T(d),i=g(8),t=T(i),e=g(23),h=T(e),u=g(34),c=T(u),a=g(59),o=T(a),r=g(60),n=T(r),l=g(28),E=T(l),b=g(61),m=T(b);function T(q){return q&&q.__esModule?q:{default:q}}function y(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")}function v(q,j){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:q}function _(q,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);q.prototype=Object.create(j&&j.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(q,j):q.__proto__=j)}var w=[!1,"center","right","justify"],x=["#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"],I=[!1,"serif","monospace"],U=["1","2","3",!1],z=["small",!1,"large","huge"],W=(function(q){_(j,q);function j(H,M){y(this,j);var L=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M)),C=function K(G){if(!document.body.contains(H.root))return document.body.removeEventListener("click",K);L.tooltip!=null&&!L.tooltip.root.contains(G.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(X){X.container.contains(G.target)||X.close()})};return H.emitter.listenDOM("click",document.body,C),L}return P(j,[{key:"addModule",value:function(M){var L=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(M,L){M.forEach(function(C){var K=C.getAttribute("class")||"";K.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),L[G]!=null))if(G==="direction")C.innerHTML=L[G][""]+L[G].rtl;else if(typeof L[G]=="string")C.innerHTML=L[G];else{var X=C.value||"";X!=null&&L[G][X]&&(C.innerHTML=L[G][X])}})})}},{key:"buildPickers",value:function(M,L){var C=this;this.pickers=M.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&A(G,w),new n.default(G,L.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var X=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&A(G,x,X==="background"?"#ffffff":"#000000"),new o.default(G,L[X])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?A(G,I):G.classList.contains("ql-header")?A(G,U):G.classList.contains("ql-size")&&A(G,z)),new E.default(G)});var K=function(){C.pickers.forEach(function(X){X.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,K)}}]),j})(c.default);W.DEFAULTS=(0,p.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,H=this.container.querySelector("input.ql-image[type=file]");H==null&&(H=document.createElement("input"),H.setAttribute("type","file"),H.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),H.classList.add("ql-image"),H.addEventListener("change",function(){if(H.files!=null&&H.files[0]!=null){var M=new FileReader;M.onload=function(L){var C=j.quill.getSelection(!0);j.quill.updateContents(new s.default().retain(C.index).delete(C.length).insert({image:L.target.result}),t.default.sources.USER),j.quill.setSelection(C.index+1,t.default.sources.SILENT),H.value=""},M.readAsDataURL(H.files[0])}}),this.container.appendChild(H)),H.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var F=(function(q){_(j,q);function j(H,M){y(this,j);var L=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return P(j,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(L){h.default.match(L,"enter")?(M.save(),L.preventDefault()):h.default.match(L,"escape")&&(M.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=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:M!==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-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=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",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":M=R(M);case"formula":{if(!M)break;var C=this.quill.getSelection(!0);if(C!=null){var K=C.index+C.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),M,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",t.default.sources.USER),this.quill.setSelection(K+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j})(m.default);function R(q){var j=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":q}function A(q,j){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(M){var L=document.createElement("option");M===H?L.setAttribute("selected","selected"):L.setAttribute("value",M),q.appendChild(L)})}O.BaseTooltip=F,O.default=W}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function S(){this.head=this.tail=null,this.length=0}return S.prototype.append=function(){for(var k=[],p=0;p<arguments.length;p++)k[p]=arguments[p];this.insertBefore(k[0],null),k.length>1&&this.append.apply(this,k.slice(1))},S.prototype.contains=function(k){for(var p,d=this.iterator();p=d();)if(p===k)return!0;return!1},S.prototype.insertBefore=function(k,p){k&&(k.next=p,p!=null?(k.prev=p.prev,p.prev!=null&&(p.prev.next=k),p.prev=k,p===this.head&&(this.head=k)):this.tail!=null?(this.tail.next=k,k.prev=this.tail,this.tail=k):(k.prev=null,this.head=this.tail=k),this.length+=1)},S.prototype.offset=function(k){for(var p=0,d=this.head;d!=null;){if(d===k)return p;p+=d.length(),d=d.next}return-1},S.prototype.remove=function(k){this.contains(k)&&(k.prev!=null&&(k.prev.next=k.next),k.next!=null&&(k.next.prev=k.prev),k===this.head&&(this.head=k.next),k===this.tail&&(this.tail=k.prev),this.length-=1)},S.prototype.iterator=function(k){return k===void 0&&(k=this.head),function(){var p=k;return k!=null&&(k=k.next),p}},S.prototype.find=function(k,p){p===void 0&&(p=!1);for(var d,s=this.iterator();d=s();){var i=d.length();if(k<i||p&&k===i&&(d.next==null||d.next.length()!==0))return[d,k];k-=i}return[null,0]},S.prototype.forEach=function(k){for(var p,d=this.iterator();p=d();)k(p)},S.prototype.forEachAt=function(k,p,d){if(!(p<=0))for(var s=this.find(k),i=s[0],t=s[1],e,h=k-t,u=this.iterator(i);(e=u())&&h<k+p;){var c=e.length();k>h?d(e,k-h,Math.min(p,h+c-k)):d(e,0,Math.min(c,k+p-h)),h+=c}},S.prototype.map=function(k){return this.reduce(function(p,d){return p.push(k(d)),p},[])},S.prototype.reduce=function(k,p){for(var d,s=this.iterator();d=s();)p=k(p,d);return p},S})();O.default=P}),(function(B,O,g){var P=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var h in e)e.hasOwnProperty(h)&&(t[h]=e[h])};return function(t,e){i(t,e);function h(){this.constructor=t}t.prototype=e===null?Object.create(e):(h.prototype=e.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(17),k=g(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,s=(function(i){P(t,i);function t(e){var h=i.call(this,e)||this;return h.scroll=h,h.observer=new MutationObserver(function(u){h.update(u)}),h.observer.observe(h.domNode,p),h.attach(),h}return t.prototype.detach=function(){i.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,h){this.update(),e===0&&h===this.length()?this.children.forEach(function(u){u.remove()}):i.prototype.deleteAt.call(this,e,h)},t.prototype.formatAt=function(e,h,u,c){this.update(),i.prototype.formatAt.call(this,e,h,u,c)},t.prototype.insertAt=function(e,h,u){this.update(),i.prototype.insertAt.call(this,e,h,u)},t.prototype.optimize=function(e,h){var u=this;e===void 0&&(e=[]),h===void 0&&(h={}),i.prototype.optimize.call(this,h);for(var c=[].slice.call(this.observer.takeRecords());c.length>0;)e.push(c.pop());for(var a=function(l,E){E===void 0&&(E=!0),!(l==null||l===u)&&l.domNode.parentNode!=null&&(l.domNode[k.DATA_KEY].mutations==null&&(l.domNode[k.DATA_KEY].mutations=[]),E&&a(l.parent))},o=function(l){l.domNode[k.DATA_KEY]==null||l.domNode[k.DATA_KEY].mutations==null||(l instanceof S.default&&l.children.forEach(o),l.optimize(h))},r=e,n=0;r.length>0;n+=1){if(n>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(r.forEach(function(l){var E=k.find(l.target,!0);E!=null&&(E.domNode===l.target&&(l.type==="childList"?(a(k.find(l.previousSibling,!1)),[].forEach.call(l.addedNodes,function(b){var m=k.find(b,!1);a(m,!1),m instanceof S.default&&m.children.forEach(function(T){a(T,!1)})})):l.type==="attributes"&&a(E.prev)),a(E))}),this.children.forEach(o),r=[].slice.call(this.observer.takeRecords()),c=r.slice();c.length>0;)e.push(c.pop())}},t.prototype.update=function(e,h){var u=this;h===void 0&&(h={}),e=e||this.observer.takeRecords(),e.map(function(c){var a=k.find(c.target,!0);return a==null?null:a.domNode[k.DATA_KEY].mutations==null?(a.domNode[k.DATA_KEY].mutations=[c],a):(a.domNode[k.DATA_KEY].mutations.push(c),null)}).forEach(function(c){c==null||c===u||c.domNode[k.DATA_KEY]==null||c.update(c.domNode[k.DATA_KEY].mutations||[],h)}),this.domNode[k.DATA_KEY].mutations!=null&&i.prototype.update.call(this,this.domNode[k.DATA_KEY].mutations,h),this.optimize(e,h)},t.blotName="scroll",t.defaultChild="block",t.scope=k.Scope.BLOCK_BLOT,t.tagName="DIV",t})(S.default);O.default=s}),(function(B,O,g){var P=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e])};return function(i,t){s(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(18),k=g(1);function p(s,i){if(Object.keys(s).length!==Object.keys(i).length)return!1;for(var t in s)if(s[t]!==i[t])return!1;return!0}var d=(function(s){P(i,s);function i(){return s!==null&&s.apply(this,arguments)||this}return i.formats=function(t){if(t.tagName!==i.tagName)return s.formats.call(this,t)},i.prototype.format=function(t,e){var h=this;t===this.statics.blotName&&!e?(this.children.forEach(function(u){u instanceof S.default||(u=u.wrap(i.blotName,!0)),h.attributes.copy(u)}),this.unwrap()):s.prototype.format.call(this,t,e)},i.prototype.formatAt=function(t,e,h,u){if(this.formats()[h]!=null||k.query(h,k.Scope.ATTRIBUTE)){var c=this.isolate(t,e);c.format(h,u)}else s.prototype.formatAt.call(this,t,e,h,u)},i.prototype.optimize=function(t){s.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var h=this.next;h instanceof i&&h.prev===this&&p(e,h.formats())&&(h.moveChildren(this),h.remove())},i.blotName="inline",i.scope=k.Scope.INLINE_BLOT,i.tagName="SPAN",i})(S.default);O.default=d}),(function(B,O,g){var P=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var t in i)i.hasOwnProperty(t)&&(s[t]=i[t])};return function(s,i){d(s,i);function t(){this.constructor=s}s.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(18),k=g(1),p=(function(d){P(s,d);function s(){return d!==null&&d.apply(this,arguments)||this}return s.formats=function(i){var t=k.query(s.blotName).tagName;if(i.tagName!==t)return d.formats.call(this,i)},s.prototype.format=function(i,t){k.query(i,k.Scope.BLOCK)!=null&&(i===this.statics.blotName&&!t?this.replaceWith(s.blotName):d.prototype.format.call(this,i,t))},s.prototype.formatAt=function(i,t,e,h){k.query(e,k.Scope.BLOCK)!=null?this.format(e,h):d.prototype.formatAt.call(this,i,t,e,h)},s.prototype.insertAt=function(i,t,e){if(e==null||k.query(t,k.Scope.INLINE)!=null)d.prototype.insertAt.call(this,i,t,e);else{var h=this.split(i),u=k.create(t,e);h.parent.insertBefore(u,h)}},s.prototype.update=function(i,t){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,i,t)},s.blotName="block",s.scope=k.Scope.BLOCK_BLOT,s.tagName="P",s})(S.default);O.default=p}),(function(B,O,g){var P=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,s){d.__proto__=s}||function(d,s){for(var i in s)s.hasOwnProperty(i)&&(d[i]=s[i])};return function(d,s){p(d,s);function i(){this.constructor=d}d.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(19),k=(function(p){P(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.formats=function(s){},d.prototype.format=function(s,i){p.prototype.formatAt.call(this,0,this.length(),s,i)},d.prototype.formatAt=function(s,i,t,e){s===0&&i===this.length()?this.format(t,e):p.prototype.formatAt.call(this,s,i,t,e)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(S.default);O.default=k}),(function(B,O,g){var P=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var t in i)i.hasOwnProperty(t)&&(s[t]=i[t])};return function(s,i){d(s,i);function t(){this.constructor=s}s.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=g(19),k=g(1),p=(function(d){P(s,d);function s(i){var t=d.call(this,i)||this;return t.text=t.statics.value(t.domNode),t}return s.create=function(i){return document.createTextNode(i)},s.value=function(i){var t=i.data;return t.normalize&&(t=t.normalize()),t},s.prototype.deleteAt=function(i,t){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+t)},s.prototype.index=function(i,t){return this.domNode===i?t:-1},s.prototype.insertAt=function(i,t,e){e==null?(this.text=this.text.slice(0,i)+t+this.text.slice(i),this.domNode.data=this.text):d.prototype.insertAt.call(this,i,t,e)},s.prototype.length=function(){return this.text.length},s.prototype.optimize=function(i){d.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof s&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},s.prototype.position=function(i,t){return[this.domNode,i]},s.prototype.split=function(i,t){if(t===void 0&&(t=!1),!t){if(i===0)return this;if(i===this.length())return this.next}var e=k.create(this.domNode.splitText(i));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},s.prototype.update=function(i,t){var e=this;i.some(function(h){return h.type==="characterData"&&h.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},s.prototype.value=function(){return this.text},s.blotName="text",s.scope=k.Scope.INLINE_BLOT,s})(S.default);O.default=p}),(function(B,O,g){var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var S=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(k,p){return arguments.length>1&&!this.contains(k)==!p?p:S.call(this,k)}}String.prototype.startsWith||(String.prototype.startsWith=function(k,p){return p=p||0,this.substr(p,k.length)===k}),String.prototype.endsWith||(String.prototype.endsWith=function(k,p){var d=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>d.length)&&(p=d.length),p-=k.length;var s=d.indexOf(k,p);return s!==-1&&s===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),s=d.length>>>0,i=arguments[1],t,e=0;e<s;e++)if(t=d[e],p.call(i,t,e,d))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(B,O){var g=-1,P=1,S=0;function k(n,l,E){if(n==l)return n?[[S,n]]:[];(E<0||n.length<E)&&(E=null);var b=i(n,l),m=n.substring(0,b);n=n.substring(b),l=l.substring(b),b=t(n,l);var T=n.substring(n.length-b);n=n.substring(0,n.length-b),l=l.substring(0,l.length-b);var y=p(n,l);return m&&y.unshift([S,m]),T&&y.push([S,T]),h(y),E!=null&&(y=a(y,E)),y=o(y),y}function p(n,l){var E;if(!n)return[[P,l]];if(!l)return[[g,n]];var b=n.length>l.length?n:l,m=n.length>l.length?l:n,T=b.indexOf(m);if(T!=-1)return E=[[P,b.substring(0,T)],[S,m],[P,b.substring(T+m.length)]],n.length>l.length&&(E[0][0]=E[2][0]=g),E;if(m.length==1)return[[g,n],[P,l]];var y=e(n,l);if(y){var v=y[0],_=y[1],w=y[2],x=y[3],I=y[4],U=k(v,w),z=k(_,x);return U.concat([[S,I]],z)}return d(n,l)}function d(n,l){for(var E=n.length,b=l.length,m=Math.ceil((E+b)/2),T=m,y=2*m,v=new Array(y),_=new Array(y),w=0;w<y;w++)v[w]=-1,_[w]=-1;v[T+1]=0,_[T+1]=0;for(var x=E-b,I=x%2!=0,U=0,z=0,W=0,F=0,R=0;R<m;R++){for(var A=-R+U;A<=R-z;A+=2){var q=T+A,j;A==-R||A!=R&&v[q-1]<v[q+1]?j=v[q+1]:j=v[q-1]+1;for(var H=j-A;j<E&&H<b&&n.charAt(j)==l.charAt(H);)j++,H++;if(v[q]=j,j>E)z+=2;else if(H>b)U+=2;else if(I){var M=T+x-A;if(M>=0&&M<y&&_[M]!=-1){var L=E-_[M];if(j>=L)return s(n,l,j,H)}}}for(var C=-R+W;C<=R-F;C+=2){var M=T+C,L;C==-R||C!=R&&_[M-1]<_[M+1]?L=_[M+1]:L=_[M-1]+1;for(var K=L-C;L<E&&K<b&&n.charAt(E-L-1)==l.charAt(b-K-1);)L++,K++;if(_[M]=L,L>E)F+=2;else if(K>b)W+=2;else if(!I){var q=T+x-C;if(q>=0&&q<y&&v[q]!=-1){var j=v[q],H=T+j-q;if(L=E-L,j>=L)return s(n,l,j,H)}}}}return[[g,n],[P,l]]}function s(n,l,E,b){var m=n.substring(0,E),T=l.substring(0,b),y=n.substring(E),v=l.substring(b),_=k(m,T),w=k(y,v);return _.concat(w)}function i(n,l){if(!n||!l||n.charAt(0)!=l.charAt(0))return 0;for(var E=0,b=Math.min(n.length,l.length),m=b,T=0;E<m;)n.substring(T,m)==l.substring(T,m)?(E=m,T=E):b=m,m=Math.floor((b-E)/2+E);return m}function t(n,l){if(!n||!l||n.charAt(n.length-1)!=l.charAt(l.length-1))return 0;for(var E=0,b=Math.min(n.length,l.length),m=b,T=0;E<m;)n.substring(n.length-m,n.length-T)==l.substring(l.length-m,l.length-T)?(E=m,T=E):b=m,m=Math.floor((b-E)/2+E);return m}function e(n,l){var E=n.length>l.length?n:l,b=n.length>l.length?l:n;if(E.length<4||b.length*2<E.length)return null;function m(z,W,F){for(var R=z.substring(F,F+Math.floor(z.length/4)),A=-1,q="",j,H,M,L;(A=W.indexOf(R,A+1))!=-1;){var C=i(z.substring(F),W.substring(A)),K=t(z.substring(0,F),W.substring(0,A));q.length<K+C&&(q=W.substring(A-K,A)+W.substring(A,A+C),j=z.substring(0,F-K),H=z.substring(F+C),M=W.substring(0,A-K),L=W.substring(A+C))}return q.length*2>=z.length?[j,H,M,L,q]:null}var T=m(E,b,Math.ceil(E.length/4)),y=m(E,b,Math.ceil(E.length/2)),v;if(!T&&!y)return null;y?T?v=T[4].length>y[4].length?T:y:v=y:v=T;var _,w,x,I;n.length>l.length?(_=v[0],w=v[1],x=v[2],I=v[3]):(x=v[0],I=v[1],_=v[2],w=v[3]);var U=v[4];return[_,w,x,I,U]}function h(n){n.push([S,""]);for(var l=0,E=0,b=0,m="",T="",y;l<n.length;)switch(n[l][0]){case P:b++,T+=n[l][1],l++;break;case g:E++,m+=n[l][1],l++;break;case S:E+b>1?(E!==0&&b!==0&&(y=i(T,m),y!==0&&(l-E-b>0&&n[l-E-b-1][0]==S?n[l-E-b-1][1]+=T.substring(0,y):(n.splice(0,0,[S,T.substring(0,y)]),l++),T=T.substring(y),m=m.substring(y)),y=t(T,m),y!==0&&(n[l][1]=T.substring(T.length-y)+n[l][1],T=T.substring(0,T.length-y),m=m.substring(0,m.length-y))),E===0?n.splice(l-b,E+b,[P,T]):b===0?n.splice(l-E,E+b,[g,m]):n.splice(l-E-b,E+b,[g,m],[P,T]),l=l-E-b+(E?1:0)+(b?1:0)+1):l!==0&&n[l-1][0]==S?(n[l-1][1]+=n[l][1],n.splice(l,1)):l++,b=0,E=0,m="",T="";break}n[n.length-1][1]===""&&n.pop();var v=!1;for(l=1;l<n.length-1;)n[l-1][0]==S&&n[l+1][0]==S&&(n[l][1].substring(n[l][1].length-n[l-1][1].length)==n[l-1][1]?(n[l][1]=n[l-1][1]+n[l][1].substring(0,n[l][1].length-n[l-1][1].length),n[l+1][1]=n[l-1][1]+n[l+1][1],n.splice(l-1,1),v=!0):n[l][1].substring(0,n[l+1][1].length)==n[l+1][1]&&(n[l-1][1]+=n[l+1][1],n[l][1]=n[l][1].substring(n[l+1][1].length)+n[l+1][1],n.splice(l+1,1),v=!0)),l++;v&&h(n)}var u=k;u.INSERT=P,u.DELETE=g,u.EQUAL=S,B.exports=u;function c(n,l){if(l===0)return[S,n];for(var E=0,b=0;b<n.length;b++){var m=n[b];if(m[0]===g||m[0]===S){var T=E+m[1].length;if(l===T)return[b+1,n];if(l<T){n=n.slice();var y=l-E,v=[m[0],m[1].slice(0,y)],_=[m[0],m[1].slice(y)];return n.splice(b,1,v,_),[b+1,n]}else E=T}}throw new Error("cursor_pos is out of bounds!")}function a(n,l){var E=c(n,l),b=E[1],m=E[0],T=b[m],y=b[m+1];if(T==null)return n;if(T[0]!==S)return n;if(y!=null&&T[1]+y[1]===y[1]+T[1])return b.splice(m,2,y,T),r(b,m,2);if(y!=null&&y[1].indexOf(T[1])===0){b.splice(m,2,[y[0],T[1]],[0,T[1]]);var v=y[1].slice(T[1].length);return v.length>0&&b.splice(m+2,0,[y[0],v]),r(b,m,3)}else return n}function o(n){for(var l=!1,E=function(y){return y.charCodeAt(0)>=56320&&y.charCodeAt(0)<=57343},b=function(y){return y.charCodeAt(y.length-1)>=55296&&y.charCodeAt(y.length-1)<=56319},m=2;m<n.length;m+=1)n[m-2][0]===S&&b(n[m-2][1])&&n[m-1][0]===g&&E(n[m-1][1])&&n[m][0]===P&&E(n[m][1])&&(l=!0,n[m-1][1]=n[m-2][1].slice(-1)+n[m-1][1],n[m][1]=n[m-2][1].slice(-1)+n[m][1],n[m-2][1]=n[m-2][1].slice(0,-1));if(!l)return n;for(var T=[],m=0;m<n.length;m+=1)n[m][1].length>0&&T.push(n[m]);return T}function r(n,l,E){for(var b=l+E-1;b>=0&&b>=l-1;b--)if(b+1<n.length){var m=n[b],T=n[b+1];m[0]===T[1]&&n.splice(b,2,[m[0],m[1]+T[1]])}return n}}),(function(B,O){O=B.exports=typeof Object.keys=="function"?Object.keys:g,O.shim=g;function g(P){var S=[];for(var k in P)S.push(k);return S}}),(function(B,O){var g=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";O=B.exports=g?P:S,O.supported=P;function P(k){return Object.prototype.toString.call(k)=="[object Arguments]"}O.unsupported=S;function S(k){return k&&typeof k=="object"&&typeof k.length=="number"&&Object.prototype.hasOwnProperty.call(k,"callee")&&!Object.prototype.propertyIsEnumerable.call(k,"callee")||!1}}),(function(B,O){var g=Object.prototype.hasOwnProperty,P="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(P=!1));function k(d,s,i){this.fn=d,this.context=s,this.once=i||!1}function p(){this._events=new S,this._eventsCount=0}p.prototype.eventNames=function(){var s=[],i,t;if(this._eventsCount===0)return s;for(t in i=this._events)g.call(i,t)&&s.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(i)):s},p.prototype.listeners=function(s,i){var t=P?P+s:s,e=this._events[t];if(i)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var h=0,u=e.length,c=new Array(u);h<u;h++)c[h]=e[h].fn;return c},p.prototype.emit=function(s,i,t,e,h,u){var c=P?P+s:s;if(!this._events[c])return!1;var a=this._events[c],o=arguments.length,r,n;if(a.fn){switch(a.once&&this.removeListener(s,a.fn,void 0,!0),o){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,i),!0;case 3:return a.fn.call(a.context,i,t),!0;case 4:return a.fn.call(a.context,i,t,e),!0;case 5:return a.fn.call(a.context,i,t,e,h),!0;case 6:return a.fn.call(a.context,i,t,e,h,u),!0}for(n=1,r=new Array(o-1);n<o;n++)r[n-1]=arguments[n];a.fn.apply(a.context,r)}else{var l=a.length,E;for(n=0;n<l;n++)switch(a[n].once&&this.removeListener(s,a[n].fn,void 0,!0),o){case 1:a[n].fn.call(a[n].context);break;case 2:a[n].fn.call(a[n].context,i);break;case 3:a[n].fn.call(a[n].context,i,t);break;case 4:a[n].fn.call(a[n].context,i,t,e);break;default:if(!r)for(E=1,r=new Array(o-1);E<o;E++)r[E-1]=arguments[E];a[n].fn.apply(a[n].context,r)}}return!0},p.prototype.on=function(s,i,t){var e=new k(i,t||this),h=P?P+s:s;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],e]:this._events[h].push(e):(this._events[h]=e,this._eventsCount++),this},p.prototype.once=function(s,i,t){var e=new k(i,t||this,!0),h=P?P+s:s;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],e]:this._events[h].push(e):(this._events[h]=e,this._eventsCount++),this},p.prototype.removeListener=function(s,i,t,e){var h=P?P+s:s;if(!this._events[h])return this;if(!i)return--this._eventsCount===0?this._events=new S:delete this._events[h],this;var u=this._events[h];if(u.fn)u.fn===i&&(!e||u.once)&&(!t||u.context===t)&&(--this._eventsCount===0?this._events=new S:delete this._events[h]);else{for(var c=0,a=[],o=u.length;c<o;c++)(u[c].fn!==i||e&&!u[c].once||t&&u[c].context!==t)&&a.push(u[c]);a.length?this._events[h]=a.length===1?a[0]:a:--this._eventsCount===0?this._events=new S:delete this._events[h]}return this},p.prototype.removeAllListeners=function(s){var i;return s?(i=P?P+s:s,this._events[i]&&(--this._eventsCount===0?this._events=new S:delete this._events[i])):(this._events=new S,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=P,p.EventEmitter=p,typeof B<"u"&&(B.exports=p)}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},S=(function(){function V(Y,J){var $=[],Q=!0,at=!1,rt=void 0;try{for(var ot=Y[Symbol.iterator](),Tt;!(Q=(Tt=ot.next()).done)&&($.push(Tt.value),!(J&&$.length===J));Q=!0);}catch(Et){at=!0,rt=Et}finally{try{!Q&&ot.return&&ot.return()}finally{if(at)throw rt}}return $}return function(Y,J){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return V(Y,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function V(Y,J){for(var $=0;$<J.length;$++){var Q=J[$];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,J,$){return J&&V(Y.prototype,J),$&&V(Y,$),Y}})(),p=g(3),d=_(p),s=g(2),i=_(s),t=g(0),e=_(t),h=g(5),u=_(h),c=g(10),a=_(c),o=g(9),r=_(o),n=g(36),l=g(37),E=g(13),b=_(E),m=g(26),T=g(38),y=g(39),v=g(40);function _(V){return V&&V.__esModule?V:{default:V}}function w(V,Y,J){return Y in V?Object.defineProperty(V,Y,{value:J,enumerable:!0,configurable:!0,writable:!0}):V[Y]=J,V}function x(V,Y){if(!(V instanceof Y))throw new TypeError("Cannot call a class as a function")}function I(V,Y){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:V}function U(V,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);V.prototype=Object.create(Y&&Y.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(V,Y):V.__proto__=Y)}var z=(0,a.default)("quill:clipboard"),W="__ql-matcher",F=[[Node.TEXT_NODE,gt],[Node.TEXT_NODE,ut],["br",tt],[Node.ELEMENT_NODE,ut],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ct],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,mt],["li",it],["b",K.bind(K,"bold")],["i",K.bind(K,"italic")],["style",nt]],R=[n.AlignAttribute,T.DirectionAttribute].reduce(function(V,Y){return V[Y.keyName]=Y,V},{}),A=[n.AlignStyle,l.BackgroundStyle,m.ColorStyle,T.DirectionStyle,y.FontStyle,v.SizeStyle].reduce(function(V,Y){return V[Y.keyName]=Y,V},{}),q=(function(V){U(Y,V);function Y(J,$){x(this,Y);var Q=I(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,J,$));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],F.concat(Q.options.matchers).forEach(function(at){var rt=S(at,2),ot=rt[0],Tt=rt[1];!$.matchVisual&&Tt===ct||Q.addMatcher(ot,Tt)}),Q}return k(Y,[{key:"addMatcher",value:function($,Q){this.matchers.push([$,Q])}},{key:"convert",value:function($){if(typeof $=="string")return this.container.innerHTML=$.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[b.default.blotName]){var at=this.container.innerText;return this.container.innerHTML="",new i.default().insert(at,w({},b.default.blotName,Q[b.default.blotName]))}var rt=this.prepareMatching(),ot=S(rt,2),Tt=ot[0],Et=ot[1],pt=C(this.container,Tt,Et);return M(pt,`
`)&&pt.ops[pt.ops.length-1].attributes==null&&(pt=pt.compose(new i.default().retain(pt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,pt),this.container.innerHTML="",pt}},{key:"dangerouslyPasteHTML",value:function($,Q){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof $=="string")this.quill.setContents(this.convert($),Q),this.quill.setSelection(0,u.default.sources.SILENT);else{var rt=this.convert(Q);this.quill.updateContents(new i.default().retain($).concat(rt),at),this.quill.setSelection($+rt.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function($){var Q=this;if(!($.defaultPrevented||!this.quill.isEnabled())){var at=this.quill.getSelection(),rt=new i.default().retain(at.index),ot=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){rt=rt.concat(Q.convert()).delete(at.length),Q.quill.updateContents(rt,u.default.sources.USER),Q.quill.setSelection(rt.length()-at.length,u.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=ot,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var $=this,Q=[],at=[];return this.matchers.forEach(function(rt){var ot=S(rt,2),Tt=ot[0],Et=ot[1];switch(Tt){case Node.TEXT_NODE:at.push(Et);break;case Node.ELEMENT_NODE:Q.push(Et);break;default:[].forEach.call($.container.querySelectorAll(Tt),function(pt){pt[W]=pt[W]||[],pt[W].push(Et)});break}}),[Q,at]}}]),Y})(r.default);q.DEFAULTS={matchers:[],matchVisual:!0};function j(V,Y,J){return(typeof Y>"u"?"undefined":P(Y))==="object"?Object.keys(Y).reduce(function($,Q){return j($,Q,Y[Q])},V):V.reduce(function($,Q){return Q.attributes&&Q.attributes[Y]?$.push(Q):$.insert(Q.insert,(0,d.default)({},w({},Y,J),Q.attributes))},new i.default)}function H(V){if(V.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return V[Y]||(V[Y]=window.getComputedStyle(V))}function M(V,Y){for(var J="",$=V.ops.length-1;$>=0&&J.length<Y.length;--$){var Q=V.ops[$];if(typeof Q.insert!="string")break;J=Q.insert+J}return J.slice(-1*Y.length)===Y}function L(V){if(V.childNodes.length===0)return!1;var Y=H(V);return["block","list-item"].indexOf(Y.display)>-1}function C(V,Y,J){return V.nodeType===V.TEXT_NODE?J.reduce(function($,Q){return Q(V,$)},new i.default):V.nodeType===V.ELEMENT_NODE?[].reduce.call(V.childNodes||[],function($,Q){var at=C(Q,Y,J);return Q.nodeType===V.ELEMENT_NODE&&(at=Y.reduce(function(rt,ot){return ot(Q,rt)},at),at=(Q[W]||[]).reduce(function(rt,ot){return ot(Q,rt)},at)),$.concat(at)},new i.default):new i.default}function K(V,Y,J){return j(J,V,!0)}function G(V,Y){var J=e.default.Attributor.Attribute.keys(V),$=e.default.Attributor.Class.keys(V),Q=e.default.Attributor.Style.keys(V),at={};return J.concat($).concat(Q).forEach(function(rt){var ot=e.default.query(rt,e.default.Scope.ATTRIBUTE);ot!=null&&(at[ot.attrName]=ot.value(V),at[ot.attrName])||(ot=R[rt],ot!=null&&(ot.attrName===rt||ot.keyName===rt)&&(at[ot.attrName]=ot.value(V)||void 0),ot=A[rt],ot!=null&&(ot.attrName===rt||ot.keyName===rt)&&(ot=A[rt],at[ot.attrName]=ot.value(V)||void 0))}),Object.keys(at).length>0&&(Y=j(Y,at)),Y}function X(V,Y){var J=e.default.query(V);if(J==null)return Y;if(J.prototype instanceof e.default.Embed){var $={},Q=J.value(V);Q!=null&&($[J.blotName]=Q,Y=new i.default().insert($,J.formats(V)))}else typeof J.formats=="function"&&(Y=j(Y,J.blotName,J.formats(V)));return Y}function tt(V,Y){return M(Y,`
`)||Y.insert(`
`),Y}function nt(){return new i.default}function it(V,Y){var J=e.default.query(V);if(J==null||J.blotName!=="list-item"||!M(Y,`
`))return Y;for(var $=-1,Q=V.parentNode;!Q.classList.contains("ql-clipboard");)(e.default.query(Q)||{}).blotName==="list"&&($+=1),Q=Q.parentNode;return $<=0?Y:Y.compose(new i.default().retain(Y.length()-1).retain(1,{indent:$}))}function ut(V,Y){return M(Y,`
`)||(L(V)||Y.length()>0&&V.nextSibling&&L(V.nextSibling))&&Y.insert(`
`),Y}function ct(V,Y){if(L(V)&&V.nextElementSibling!=null&&!M(Y,`
`)){var J=V.offsetHeight+parseFloat(H(V).marginTop)+parseFloat(H(V).marginBottom);V.nextElementSibling.offsetTop>V.offsetTop+J*1.5&&Y.insert(`
`)}return Y}function mt(V,Y){var J={},$=V.style||{};return $.fontStyle&&H(V).fontStyle==="italic"&&(J.italic=!0),$.fontWeight&&(H(V).fontWeight.startsWith("bold")||parseInt(H(V).fontWeight)>=700)&&(J.bold=!0),Object.keys(J).length>0&&(Y=j(Y,J)),parseFloat($.textIndent||0)>0&&(Y=new i.default().insert(" ").concat(Y)),Y}function gt(V,Y){var J=V.data;if(V.parentNode.tagName==="O:P")return Y.insert(J.trim());if(J.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return Y;if(!H(V.parentNode).whiteSpace.startsWith("pre")){var $=function(at,rt){return rt=rt.replace(/[^\u00a0]/g,""),rt.length<1&&at?" ":rt};J=J.replace(/\r\n/g," ").replace(/\n/g," "),J=J.replace(/\s\s+/g,$.bind($,!0)),(V.previousSibling==null&&L(V.parentNode)||V.previousSibling!=null&&L(V.previousSibling))&&(J=J.replace(/^\s+/,$.bind($,!1))),(V.nextSibling==null&&L(V.parentNode)||V.nextSibling!=null&&L(V.nextSibling))&&(J=J.replace(/\s+$/,$.bind($,!1)))}return Y.insert(J)}O.default=q,O.matchAttributor=G,O.matchBlot=X,O.matchNewline=ut,O.matchSpacing=ct,O.matchText=gt}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(a)}},k=g(6),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(){return s(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,[{key:"optimize",value:function(a){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,a),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u})(p.default);e.blotName="bold",e.tagName=["STRONG","B"],O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var P=(function(){function v(_,w){var x=[],I=!0,U=!1,z=void 0;try{for(var W=_[Symbol.iterator](),F;!(I=(F=W.next()).done)&&(x.push(F.value),!(w&&x.length===w));I=!0);}catch(R){U=!0,z=R}finally{try{!I&&W.return&&W.return()}finally{if(U)throw z}}return x}return function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return v(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function v(_,w){for(var x=0;x<w.length;x++){var I=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,w,x){return w&&v(_.prototype,w),x&&v(_,x),_}})(),k=g(2),p=a(k),d=g(0),s=a(d),i=g(5),t=a(i),e=g(10),h=a(e),u=g(9),c=a(u);function a(v){return v&&v.__esModule?v:{default:v}}function o(v,_,w){return _ in v?Object.defineProperty(v,_,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[_]=w,v}function r(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function n(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function l(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var E=(0,h.default)("quill:toolbar"),b=(function(v){l(_,v);function _(w,x){r(this,_);var I=n(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,x));if(Array.isArray(I.options.container)){var U=document.createElement("div");T(U,I.options.container),w.container.parentNode.insertBefore(U,w.container),I.container=U}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var z;return z=E.error("Container required for toolbar",I.options),n(I,z)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(W){I.addHandler(W,I.options.handlers[W])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(W){I.attach(W)}),I.quill.on(t.default.events.EDITOR_CHANGE,function(W,F){W===t.default.events.SELECTION_CHANGE&&I.update(F)}),I.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var W=I.quill.selection.getRange(),F=P(W,1),R=F[0];I.update(R)}),I}return S(_,[{key:"addHandler",value:function(x,I){this.handlers[x]=I}},{key:"attach",value:function(x){var I=this,U=[].find.call(x.classList,function(W){return W.indexOf("ql-")===0});if(U){if(U=U.slice(3),x.tagName==="BUTTON"&&x.setAttribute("type","button"),this.handlers[U]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[U]==null){E.warn("ignoring attaching to disabled format",U,x);return}if(s.default.query(U)==null){E.warn("ignoring attaching to nonexistent format",U,x);return}}var z=x.tagName==="SELECT"?"change":"click";x.addEventListener(z,function(W){var F=void 0;if(x.tagName==="SELECT"){if(x.selectedIndex<0)return;var R=x.options[x.selectedIndex];R.hasAttribute("selected")?F=!1:F=R.value||!1}else x.classList.contains("ql-active")?F=!1:F=x.value||!x.hasAttribute("value"),W.preventDefault();I.quill.focus();var A=I.quill.selection.getRange(),q=P(A,1),j=q[0];if(I.handlers[U]!=null)I.handlers[U].call(I,F);else if(s.default.query(U).prototype instanceof s.default.Embed){if(F=prompt("Enter "+U),!F)return;I.quill.updateContents(new p.default().retain(j.index).delete(j.length).insert(o({},U,F)),t.default.sources.USER)}else I.quill.format(U,F,t.default.sources.USER);I.update(j)}),this.controls.push([U,x])}}},{key:"update",value:function(x){var I=x==null?{}:this.quill.getFormat(x);this.controls.forEach(function(U){var z=P(U,2),W=z[0],F=z[1];if(F.tagName==="SELECT"){var R=void 0;if(x==null)R=null;else if(I[W]==null)R=F.querySelector("option[selected]");else if(!Array.isArray(I[W])){var A=I[W];typeof A=="string"&&(A=A.replace(/\"/g,'\\"')),R=F.querySelector('option[value="'+A+'"]')}R==null?(F.value="",F.selectedIndex=-1):R.selected=!0}else if(x==null)F.classList.remove("ql-active");else if(F.hasAttribute("value")){var q=I[W]===F.getAttribute("value")||I[W]!=null&&I[W].toString()===F.getAttribute("value")||I[W]==null&&!F.getAttribute("value");F.classList.toggle("ql-active",q)}else F.classList.toggle("ql-active",I[W]!=null)})}}]),_})(c.default);b.DEFAULTS={};function m(v,_,w){var x=document.createElement("button");x.setAttribute("type","button"),x.classList.add("ql-"+_),w!=null&&(x.value=w),v.appendChild(x)}function T(v,_){Array.isArray(_[0])||(_=[_]),_.forEach(function(w){var x=document.createElement("span");x.classList.add("ql-formats"),w.forEach(function(I){if(typeof I=="string")m(x,I);else{var U=Object.keys(I)[0],z=I[U];Array.isArray(z)?y(x,U,z):m(x,U,z)}}),v.appendChild(x)})}function y(v,_,w){var x=document.createElement("select");x.classList.add("ql-"+_),w.forEach(function(I){var U=document.createElement("option");I!==!1?U.setAttribute("value",I):U.setAttribute("selected","selected"),x.appendChild(U)}),v.appendChild(x)}b.DEFAULTS={container:null,handlers:{clean:function(){var _=this,w=this.quill.getSelection();if(w!=null)if(w.length==0){var x=this.quill.getFormat();Object.keys(x).forEach(function(I){s.default.query(I,s.default.Scope.INLINE)!=null&&_.quill.format(I,!1)})}else this.quill.removeFormat(w,t.default.sources.USER)},direction:function(_){var w=this.quill.getFormat().align;_==="rtl"&&w==null?this.quill.format("align","right",t.default.sources.USER):!_&&w==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",_,t.default.sources.USER)},indent:function(_){var w=this.quill.getSelection(),x=this.quill.getFormat(w),I=parseInt(x.indent||0);if(_==="+1"||_==="-1"){var U=_==="+1"?1:-1;x.direction==="rtl"&&(U*=-1),this.quill.format("indent",I+U,t.default.sources.USER)}},link:function(_){_===!0&&(_=prompt("Enter link URL:")),this.quill.format("link",_,t.default.sources.USER)},list:function(_){var w=this.quill.getSelection(),x=this.quill.getFormat(w);_==="check"?x.list==="checked"||x.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",_,t.default.sources.USER)}}},O.default=b,O.addControls=T}),(function(B,O){B.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(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(a)}},k=g(28),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(c,a){s(this,u);var o=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,c));return o.label.innerHTML=a,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(r){r.classList.add("ql-primary")}),o}return P(u,[{key:"buildItem",value:function(a){var o=S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"buildItem",this).call(this,a);return o.style.backgroundColor=a.getAttribute("value")||"",o}},{key:"selectItem",value:function(a,o){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,a,o);var r=this.label.querySelector(".ql-color-label"),n=a&&a.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=n:r.style.fill=n)}}]),u})(p.default);O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(a)}},k=g(28),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(c,a){s(this,u);var o=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,c));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(r){r.innerHTML=a[r.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return P(u,[{key:"selectItem",value:function(a,o){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,a,o),a=a||this.defaultItem,this.label.innerHTML=a.innerHTML}}]),u})(p.default);O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function p(d,s){for(var i=0;i<s.length;i++){var t=s[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}return function(d,s,i){return s&&p(d.prototype,s),i&&p(d,i),d}})();function S(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}var k=(function(){function p(d,s){var i=this;S(this,p),this.quill=d,this.boundsContainer=s||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return P(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(s){var i=s.left+s.width/2-this.root.offsetWidth/2,t=s.bottom+this.quill.root.scrollTop;this.root.style.left=i+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),u=0;if(h.right>e.right&&(u=e.right-h.right,this.root.style.left=i+u+"px"),h.left<e.left&&(u=e.left-h.left,this.root.style.left=i+u+"px"),h.bottom>e.bottom){var c=h.bottom-h.top,a=s.bottom-s.top+c;this.root.style.top=t-a+"px",this.root.classList.add("ql-flip")}return u}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p})();O.default=k}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function y(v,_){var w=[],x=!0,I=!1,U=void 0;try{for(var z=v[Symbol.iterator](),W;!(x=(W=z.next()).done)&&(w.push(W.value),!(_&&w.length===_));x=!0);}catch(F){I=!0,U=F}finally{try{!x&&z.return&&z.return()}finally{if(I)throw U}}return w}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return y(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function y(v,_,w){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,_);if(x===void 0){var I=Object.getPrototypeOf(v);return I===null?void 0:y(I,_,w)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(w)}},k=(function(){function y(v,_){for(var w=0;w<_.length;w++){var x=_[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,_,w){return _&&y(v.prototype,_),w&&y(v,w),v}})(),p=g(3),d=r(p),s=g(8),i=r(s),t=g(43),e=r(t),h=g(27),u=r(h),c=g(15),a=g(41),o=r(a);function r(y){return y&&y.__esModule?y:{default:y}}function n(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function l(y,v){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:y}function E(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=(function(y){E(v,y);function v(_,w){n(this,v),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=b);var x=l(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,w));return x.quill.container.classList.add("ql-snow"),x}return k(v,[{key:"extendToolbar",value:function(w){w.container.classList.add("ql-snow"),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),o.default),this.tooltip=new T(this.quill,this.options.bounds),w.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(x,I){w.handlers.link.call(w,!I.format.link)})}}]),v})(e.default);m.DEFAULTS=(0,d.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var _=this.quill.getSelection();if(_==null||_.length==0)return;var w=this.quill.getText(_);/^\S+@\S+\.\S+$/.test(w)&&w.indexOf("mailto:")!==0&&(w="mailto:"+w);var x=this.quill.theme.tooltip;x.edit("link",w)}else this.quill.format("link",!1)}}}}});var T=(function(y){E(v,y);function v(_,w){n(this,v);var x=l(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,w));return x.preview=x.root.querySelector("a.ql-preview"),x}return k(v,[{key:"listen",value:function(){var w=this;S(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(x){w.root.classList.contains("ql-editing")?w.save():w.edit("link",w.preview.textContent),x.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(x){if(w.linkRange!=null){var I=w.linkRange;w.restoreFocus(),w.quill.formatText(I,"link",!1,i.default.sources.USER),delete w.linkRange}x.preventDefault(),w.hide()}),this.quill.on(i.default.events.SELECTION_CHANGE,function(x,I,U){if(x!=null){if(x.length===0&&U===i.default.sources.USER){var z=w.quill.scroll.descendant(u.default,x.index),W=P(z,2),F=W[0],R=W[1];if(F!=null){w.linkRange=new c.Range(x.index-R,F.length());var A=u.default.formats(F.domNode);w.preview.textContent=A,w.preview.setAttribute("href",A),w.show(),w.position(w.quill.getBounds(w.linkRange));return}}else delete w.linkRange;w.hide()}})}},{key:"show",value:function(){S(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v})(t.BaseTooltip);T.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(""),O.default=m}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(29),S=Q(P),k=g(36),p=g(38),d=g(64),s=g(65),i=Q(s),t=g(66),e=Q(t),h=g(67),u=Q(h),c=g(37),a=g(26),o=g(39),r=g(40),n=g(56),l=Q(n),E=g(68),b=Q(E),m=g(27),T=Q(m),y=g(69),v=Q(y),_=g(70),w=Q(_),x=g(71),I=Q(x),U=g(72),z=Q(U),W=g(73),F=Q(W),R=g(13),A=Q(R),q=g(74),j=Q(q),H=g(75),M=Q(H),L=g(57),C=Q(L),K=g(41),G=Q(K),X=g(28),tt=Q(X),nt=g(59),it=Q(nt),ut=g(60),ct=Q(ut),mt=g(61),gt=Q(mt),V=g(108),Y=Q(V),J=g(62),$=Q(J);function Q(at){return at&&at.__esModule?at:{default:at}}S.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":k.AlignClass,"attributors/class/background":c.BackgroundClass,"attributors/class/color":a.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":o.FontClass,"attributors/class/size":r.SizeClass,"attributors/style/align":k.AlignStyle,"attributors/style/background":c.BackgroundStyle,"attributors/style/color":a.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":o.FontStyle,"attributors/style/size":r.SizeStyle},!0),S.default.register({"formats/align":k.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":d.IndentClass,"formats/background":c.BackgroundStyle,"formats/color":a.ColorStyle,"formats/font":o.FontClass,"formats/size":r.SizeClass,"formats/blockquote":i.default,"formats/code-block":A.default,"formats/header":e.default,"formats/list":u.default,"formats/bold":l.default,"formats/code":R.Code,"formats/italic":b.default,"formats/link":T.default,"formats/script":v.default,"formats/strike":w.default,"formats/underline":I.default,"formats/image":z.default,"formats/video":F.default,"formats/list/item":h.ListItem,"modules/formula":j.default,"modules/syntax":M.default,"modules/toolbar":C.default,"themes/bubble":Y.default,"themes/snow":$.default,"ui/icons":G.default,"ui/picker":tt.default,"ui/icon-picker":ct.default,"ui/color-picker":it.default,"ui/tooltip":gt.default},!0),O.default=S.default}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var P=(function(){function u(c,a){for(var o=0;o<a.length;o++){var r=a[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(c,r.key,r)}}return function(c,a,o){return a&&u(c.prototype,a),o&&u(c,o),c}})(),S=function u(c,a,o){c===null&&(c=Function.prototype);var r=Object.getOwnPropertyDescriptor(c,a);if(r===void 0){var n=Object.getPrototypeOf(c);return n===null?void 0:u(n,a,o)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(o)}},k=g(0),p=d(k);function d(u){return u&&u.__esModule?u:{default:u}}function s(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function i(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function t(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var e=(function(u){t(c,u);function c(){return s(this,c),i(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return P(c,[{key:"add",value:function(o,r){if(r==="+1"||r==="-1"){var n=this.value(o)||0;r=r==="+1"?n+1:n-1}return r===0?(this.remove(o),!0):S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"add",this).call(this,o,r)}},{key:"canAdd",value:function(o,r){return S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,o,r)||S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,o,parseInt(r))}},{key:"value",value:function(o){return parseInt(S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,o))||void 0}}]),c})(p.default.Attributor.Class),h=new e("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=h}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(4),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=(function(t){s(e,t);function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e})(S.default);i.blotName="blockquote",i.tagName="blockquote",O.default=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function e(h,u){for(var c=0;c<u.length;c++){var a=u[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,u,c){return u&&e(h.prototype,u),c&&e(h,c),h}})(),S=g(4),k=p(S);function p(e){return e&&e.__esModule?e:{default:e}}function d(e,h){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function")}function s(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:e}function i(e,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}var t=(function(e){i(h,e);function h(){return d(this,h),s(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return P(h,null,[{key:"formats",value:function(c){return this.tagName.indexOf(c.tagName)+1}}]),h})(k.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],O.default=t}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var P=(function(){function n(l,E){for(var b=0;b<E.length;b++){var m=E[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}return function(l,E,b){return E&&n(l.prototype,E),b&&n(l,b),l}})(),S=function n(l,E,b){l===null&&(l=Function.prototype);var m=Object.getOwnPropertyDescriptor(l,E);if(m===void 0){var T=Object.getPrototypeOf(l);return T===null?void 0:n(T,E,b)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(b)}},k=g(0),p=e(k),d=g(4),s=e(d),i=g(25),t=e(i);function e(n){return n&&n.__esModule?n:{default:n}}function h(n,l,E){return l in n?Object.defineProperty(n,l,{value:E,enumerable:!0,configurable:!0,writable:!0}):n[l]=E,n}function u(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function c(n,l){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:n}function a(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(n,l):n.__proto__=l)}var o=(function(n){a(l,n);function l(){return u(this,l),c(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,[{key:"format",value:function(b,m){b===r.blotName&&!m?this.replaceWith(p.default.create(this.statics.scope)):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,b,m)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(b,m){return this.parent.isolate(this.offset(this.parent),this.length()),b===this.parent.statics.blotName?(this.parent.replaceWith(b,m),this):(this.parent.unwrap(),S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replaceWith",this).call(this,b,m))}}],[{key:"formats",value:function(b){return b.tagName===this.tagName?void 0:S(l.__proto__||Object.getPrototypeOf(l),"formats",this).call(this,b)}}]),l})(s.default);o.blotName="list-item",o.tagName="LI";var r=(function(n){a(l,n),P(l,null,[{key:"create",value:function(b){var m=b==="ordered"?"OL":"UL",T=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,m);return(b==="checked"||b==="unchecked")&&T.setAttribute("data-checked",b==="checked"),T}},{key:"formats",value:function(b){if(b.tagName==="OL")return"ordered";if(b.tagName==="UL")return b.hasAttribute("data-checked")?b.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function l(E){u(this,l);var b=c(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,E)),m=function(y){if(y.target.parentNode===E){var v=b.statics.formats(E),_=p.default.find(y.target);v==="checked"?_.format("list","unchecked"):v==="unchecked"&&_.format("list","checked")}};return E.addEventListener("touchstart",m),E.addEventListener("mousedown",m),b}return P(l,[{key:"format",value:function(b,m){this.children.length>0&&this.children.tail.format(b,m)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(b,m){if(b instanceof o)S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertBefore",this).call(this,b,m);else{var T=m==null?this.length():m.offset(this),y=this.split(T);y.parent.insertBefore(b,y)}}},{key:"optimize",value:function(b){S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,b);var m=this.next;m!=null&&m.prev===this&&m.statics.blotName===this.statics.blotName&&m.domNode.tagName===this.domNode.tagName&&m.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(m.moveChildren(this),m.remove())}},{key:"replace",value:function(b){if(b.statics.blotName!==this.statics.blotName){var m=p.default.create(this.statics.defaultChild);b.moveChildren(m),this.appendChild(m)}S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replace",this).call(this,b)}}]),l})(t.default);r.blotName="list",r.scope=p.default.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[o],O.ListItem=o,O.default=r}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(56),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=(function(t){s(e,t);function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e})(S.default);i.blotName="italic",i.tagName=["EM","I"],O.default=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var n=o.get;return n===void 0?void 0:n.call(a)}},k=g(6),p=d(k);function d(h){return h&&h.__esModule?h:{default:h}}function s(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var e=(function(h){t(u,h);function u(){return s(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,null,[{key:"create",value:function(a){return a==="super"?document.createElement("sup"):a==="sub"?document.createElement("sub"):S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,a)}},{key:"formats",value:function(a){if(a.tagName==="SUB")return"sub";if(a.tagName==="SUP")return"super"}}]),u})(p.default);e.blotName="script",e.tagName=["SUB","SUP"],O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(6),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=(function(t){s(e,t);function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e})(S.default);i.blotName="strike",i.tagName="S",O.default=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=g(6),S=k(P);function k(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=(function(t){s(e,t);function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e})(S.default);i.blotName="underline",i.tagName="U",O.default=i}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function c(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,o);if(n===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},k=g(0),p=s(k),d=g(27);function s(c){return c&&c.__esModule?c:{default:c}}function i(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function t(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function e(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var h=["alt","height","width"],u=(function(c){e(a,c);function a(){return i(this,a),t(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"format",value:function(r,n){h.indexOf(r)>-1?n?this.domNode.setAttribute(r,n):this.domNode.removeAttribute(r):S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,n)}}],[{key:"create",value:function(r){var n=S(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return typeof r=="string"&&n.setAttribute("src",this.sanitize(r)),n}},{key:"formats",value:function(r){return h.reduce(function(n,l){return r.hasAttribute(l)&&(n[l]=r.getAttribute(l)),n},{})}},{key:"match",value:function(r){return/\.(jpe?g|gif|png)$/.test(r)||/^data:image\/.+;base64/.test(r)}},{key:"sanitize",value:function(r){return(0,d.sanitize)(r,["http","https","data"])?r:"//:0"}},{key:"value",value:function(r){return r.getAttribute("src")}}]),a})(p.default.Embed);u.blotName="image",u.tagName="IMG",O.default=u}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function c(a,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,o);if(n===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},k=g(4),p=g(27),d=s(p);function s(c){return c&&c.__esModule?c:{default:c}}function i(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function t(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function e(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var h=["height","width"],u=(function(c){e(a,c);function a(){return i(this,a),t(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"format",value:function(r,n){h.indexOf(r)>-1?n?this.domNode.setAttribute(r,n):this.domNode.removeAttribute(r):S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,n)}}],[{key:"create",value:function(r){var n=S(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(r)),n}},{key:"formats",value:function(r){return h.reduce(function(n,l){return r.hasAttribute(l)&&(n[l]=r.getAttribute(l)),n},{})}},{key:"sanitize",value:function(r){return d.default.sanitize(r)}},{key:"value",value:function(r){return r.getAttribute("src")}}]),a})(k.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",O.default=u}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var P=(function(){function r(n,l){for(var E=0;E<l.length;E++){var b=l[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,l,E){return l&&r(n.prototype,l),E&&r(n,E),n}})(),S=function r(n,l,E){n===null&&(n=Function.prototype);var b=Object.getOwnPropertyDescriptor(n,l);if(b===void 0){var m=Object.getPrototypeOf(n);return m===null?void 0:r(m,l,E)}else{if("value"in b)return b.value;var T=b.get;return T===void 0?void 0:T.call(E)}},k=g(35),p=e(k),d=g(5),s=e(d),i=g(9),t=e(i);function e(r){return r&&r.__esModule?r:{default:r}}function h(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function c(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var a=(function(r){c(n,r);function n(){return h(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return P(n,null,[{key:"create",value:function(E){var b=S(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,E);return typeof E=="string"&&(window.katex.render(E,b,{throwOnError:!1,errorColor:"#f00"}),b.setAttribute("data-value",E)),b}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),n})(p.default);a.blotName="formula",a.className="ql-formula",a.tagName="SPAN";var o=(function(r){c(n,r),P(n,null,[{key:"register",value:function(){s.default.register(a,!0)}}]);function n(){h(this,n);var l=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return l}return n})(t.default);O.FormulaBlot=a,O.default=o}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var P=(function(){function E(b,m){for(var T=0;T<m.length;T++){var y=m[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(b,y.key,y)}}return function(b,m,T){return m&&E(b.prototype,m),T&&E(b,T),b}})(),S=function E(b,m,T){b===null&&(b=Function.prototype);var y=Object.getOwnPropertyDescriptor(b,m);if(y===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:E(v,m,T)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(T)}},k=g(0),p=u(k),d=g(5),s=u(d),i=g(9),t=u(i),e=g(13),h=u(e);function u(E){return E&&E.__esModule?E:{default:E}}function c(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}function a(E,b){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:E}function o(E,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(E,b):E.__proto__=b)}var r=(function(E){o(b,E);function b(){return c(this,b),a(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return P(b,[{key:"replaceWith",value:function(T){this.domNode.textContent=this.domNode.textContent,this.attach(),S(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,T)}},{key:"highlight",value:function(T){var y=this.domNode.textContent;this.cachedText!==y&&((y.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=T(y),this.domNode.normalize(),this.attach()),this.cachedText=y)}}]),b})(h.default);r.className="ql-syntax";var n=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),l=(function(E){o(b,E),P(b,null,[{key:"register",value:function(){s.default.register(n,!0),s.default.register(r,!0)}}]);function b(m,T){c(this,b);var y=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,m,T));if(typeof y.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return y.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){y.highlight(),v=null},y.options.interval)}),y.highlight(),y}return P(b,[{key:"highlight",value:function(){var T=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var y=this.quill.getSelection();this.quill.scroll.descendants(r).forEach(function(v){v.highlight(T.options.highlight)}),this.quill.update(s.default.sources.SILENT),y!=null&&this.quill.setSelection(y,s.default.sources.SILENT)}}}]),b})(t.default);l.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(E){var b=window.hljs.highlightAuto(E);return b.value}})(),interval:1e3},O.CodeBlock=r,O.CodeToken=n,O.default=l}),(function(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O){B.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(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var P=function b(m,T,y){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,T);if(v===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:b(_,T,y)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(y)}},S=(function(){function b(m,T){for(var y=0;y<T.length;y++){var v=T[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,T,y){return T&&b(m.prototype,T),y&&b(m,y),m}})(),k=g(3),p=c(k),d=g(8),s=c(d),i=g(43),t=c(i),e=g(15),h=g(41),u=c(h);function c(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function o(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function r(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],l=(function(b){r(m,b);function m(T,y){a(this,m),y.modules.toolbar!=null&&y.modules.toolbar.container==null&&(y.modules.toolbar.container=n);var v=o(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,T,y));return v.quill.container.classList.add("ql-bubble"),v}return S(m,[{key:"extendToolbar",value:function(y){this.tooltip=new E(this.quill,this.options.bounds),this.tooltip.root.appendChild(y.container),this.buildButtons([].slice.call(y.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(y.container.querySelectorAll("select")),u.default)}}]),m})(t.default);l.DEFAULTS=(0,p.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(m){m?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var E=(function(b){r(m,b);function m(T,y){a(this,m);var v=o(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,T,y));return v.quill.on(s.default.events.EDITOR_CHANGE,function(_,w,x,I){if(_===s.default.events.SELECTION_CHANGE)if(w!=null&&w.length>0&&I===s.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var U=v.quill.getLines(w.index,w.length);if(U.length===1)v.position(v.quill.getBounds(w));else{var z=U[U.length-1],W=v.quill.getIndex(z),F=Math.min(z.length()-1,w.index+w.length-W),R=v.quill.getBounds(new e.Range(W,F));v.position(R)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return S(m,[{key:"listen",value:function(){var y=this;P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){y.root.classList.remove("ql-editing")}),this.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!y.root.classList.contains("ql-hidden")){var v=y.quill.getSelection();v!=null&&y.position(y.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(y){var v=P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"position",this).call(this,y),_=this.root.querySelector(".ql-tooltip-arrow");if(_.style.marginLeft="",v===0)return v;_.style.marginLeft=-1*v-_.offsetWidth/2+"px"}}]),m})(i.BaseTooltip);E.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(""),O.BubbleTooltip=E,O.default=l}),(function(B,O,g){B.exports=g(63)})]).default})})(Ve)),Ve.exports}kr();var In,zn;function Nr(){if(zn)return In;zn=1;var st=-1,ft=1,B=0;function O(r,n,l,E){if(r===n)return r?[[B,r]]:[];if(l!=null){var b=a(r,n,l);if(b)return b}var m=k(r,n),T=r.substring(0,m);r=r.substring(m),n=n.substring(m),m=p(r,n);var y=r.substring(r.length-m);r=r.substring(0,r.length-m),n=n.substring(0,n.length-m);var v=g(r,n);return T&&v.unshift([B,T]),y&&v.push([B,y]),s(v,E),v}function g(r,n){var l;if(!r)return[[ft,n]];if(!n)return[[st,r]];var E=r.length>n.length?r:n,b=r.length>n.length?n:r,m=E.indexOf(b);if(m!==-1)return l=[[ft,E.substring(0,m)],[B,b],[ft,E.substring(m+b.length)]],r.length>n.length&&(l[0][0]=l[2][0]=st),l;if(b.length===1)return[[st,r],[ft,n]];var T=d(r,n);if(T){var y=T[0],v=T[1],_=T[2],w=T[3],x=T[4],I=O(y,_),U=O(v,w);return I.concat([[B,x]],U)}return P(r,n)}function P(r,n){for(var l=r.length,E=n.length,b=Math.ceil((l+E)/2),m=b,T=2*b,y=new Array(T),v=new Array(T),_=0;_<T;_++)y[_]=-1,v[_]=-1;y[m+1]=0,v[m+1]=0;for(var w=l-E,x=w%2!==0,I=0,U=0,z=0,W=0,F=0;F<b;F++){for(var R=-F+I;R<=F-U;R+=2){var A=m+R,q;R===-F||R!==F&&y[A-1]<y[A+1]?q=y[A+1]:q=y[A-1]+1;for(var j=q-R;q<l&&j<E&&r.charAt(q)===n.charAt(j);)q++,j++;if(y[A]=q,q>l)U+=2;else if(j>E)I+=2;else if(x){var H=m+w-R;if(H>=0&&H<T&&v[H]!==-1){var M=l-v[H];if(q>=M)return S(r,n,q,j)}}}for(var L=-F+z;L<=F-W;L+=2){var H=m+L,M;L===-F||L!==F&&v[H-1]<v[H+1]?M=v[H+1]:M=v[H-1]+1;for(var C=M-L;M<l&&C<E&&r.charAt(l-M-1)===n.charAt(E-C-1);)M++,C++;if(v[H]=M,M>l)W+=2;else if(C>E)z+=2;else if(!x){var A=m+w-L;if(A>=0&&A<T&&y[A]!==-1){var q=y[A],j=m+q-A;if(M=l-M,q>=M)return S(r,n,q,j)}}}}return[[st,r],[ft,n]]}function S(r,n,l,E){var b=r.substring(0,l),m=n.substring(0,E),T=r.substring(l),y=n.substring(E),v=O(b,m),_=O(T,y);return v.concat(_)}function k(r,n){if(!r||!n||r.charAt(0)!==n.charAt(0))return 0;for(var l=0,E=Math.min(r.length,n.length),b=E,m=0;l<b;)r.substring(m,b)==n.substring(m,b)?(l=b,m=l):E=b,b=Math.floor((E-l)/2+l);return i(r.charCodeAt(b-1))&&b--,b}function p(r,n){if(!r||!n||r.slice(-1)!==n.slice(-1))return 0;for(var l=0,E=Math.min(r.length,n.length),b=E,m=0;l<b;)r.substring(r.length-b,r.length-m)==n.substring(n.length-b,n.length-m)?(l=b,m=l):E=b,b=Math.floor((E-l)/2+l);return t(r.charCodeAt(r.length-b))&&b--,b}function d(r,n){var l=r.length>n.length?r:n,E=r.length>n.length?n:r;if(l.length<4||E.length*2<l.length)return null;function b(U,z,W){for(var F=U.substring(W,W+Math.floor(U.length/4)),R=-1,A="",q,j,H,M;(R=z.indexOf(F,R+1))!==-1;){var L=k(U.substring(W),z.substring(R)),C=p(U.substring(0,W),z.substring(0,R));A.length<C+L&&(A=z.substring(R-C,R)+z.substring(R,R+L),q=U.substring(0,W-C),j=U.substring(W+L),H=z.substring(0,R-C),M=z.substring(R+L))}return A.length*2>=U.length?[q,j,H,M,A]:null}var m=b(l,E,Math.ceil(l.length/4)),T=b(l,E,Math.ceil(l.length/2)),y;if(!m&&!T)return null;T?m?y=m[4].length>T[4].length?m:T:y=T:y=m;var v,_,w,x;r.length>n.length?(v=y[0],_=y[1],w=y[2],x=y[3]):(w=y[0],x=y[1],v=y[2],_=y[3]);var I=y[4];return[v,_,w,x,I]}function s(r,n){r.push([B,""]);for(var l=0,E=0,b=0,m="",T="",y;l<r.length;){if(l<r.length-1&&!r[l][1]){r.splice(l,1);continue}switch(r[l][0]){case ft:b++,T+=r[l][1],l++;break;case st:E++,m+=r[l][1],l++;break;case B:var v=l-b-E-1;if(n){if(v>=0&&h(r[v][1])){var _=r[v][1].slice(-1);if(r[v][1]=r[v][1].slice(0,-1),m=_+m,T=_+T,!r[v][1]){r.splice(v,1),l--;var w=v-1;r[w]&&r[w][0]===ft&&(b++,T=r[w][1]+T,w--),r[w]&&r[w][0]===st&&(E++,m=r[w][1]+m,w--),v=w}}if(e(r[l][1])){var _=r[l][1].charAt(0);r[l][1]=r[l][1].slice(1),m+=_,T+=_}}if(l<r.length-1&&!r[l][1]){r.splice(l,1);break}if(m.length>0||T.length>0){m.length>0&&T.length>0&&(y=k(T,m),y!==0&&(v>=0?r[v][1]+=T.substring(0,y):(r.splice(0,0,[B,T.substring(0,y)]),l++),T=T.substring(y),m=m.substring(y)),y=p(T,m),y!==0&&(r[l][1]=T.substring(T.length-y)+r[l][1],T=T.substring(0,T.length-y),m=m.substring(0,m.length-y)));var x=b+E;m.length===0&&T.length===0?(r.splice(l-x,x),l=l-x):m.length===0?(r.splice(l-x,x,[ft,T]),l=l-x+1):T.length===0?(r.splice(l-x,x,[st,m]),l=l-x+1):(r.splice(l-x,x,[st,m],[ft,T]),l=l-x+2)}l!==0&&r[l-1][0]===B?(r[l-1][1]+=r[l][1],r.splice(l,1)):l++,b=0,E=0,m="",T="";break}}r[r.length-1][1]===""&&r.pop();var I=!1;for(l=1;l<r.length-1;)r[l-1][0]===B&&r[l+1][0]===B&&(r[l][1].substring(r[l][1].length-r[l-1][1].length)===r[l-1][1]?(r[l][1]=r[l-1][1]+r[l][1].substring(0,r[l][1].length-r[l-1][1].length),r[l+1][1]=r[l-1][1]+r[l+1][1],r.splice(l-1,1),I=!0):r[l][1].substring(0,r[l+1][1].length)==r[l+1][1]&&(r[l-1][1]+=r[l+1][1],r[l][1]=r[l][1].substring(r[l+1][1].length)+r[l+1][1],r.splice(l+1,1),I=!0)),l++;I&&s(r,n)}function i(r){return r>=55296&&r<=56319}function t(r){return r>=56320&&r<=57343}function e(r){return t(r.charCodeAt(0))}function h(r){return i(r.charCodeAt(r.length-1))}function u(r){for(var n=[],l=0;l<r.length;l++)r[l][1].length>0&&n.push(r[l]);return n}function c(r,n,l,E){return h(r)||e(E)?null:u([[B,r],[st,n],[ft,l],[B,E]])}function a(r,n,l){var E=typeof l=="number"?{index:l,length:0}:l.oldRange,b=typeof l=="number"?null:l.newRange,m=r.length,T=n.length;if(E.length===0&&(b===null||b.length===0)){var y=E.index,v=r.slice(0,y),_=r.slice(y),w=b?b.index:null;t:{var x=y+T-m;if(w!==null&&w!==x||x<0||x>T)break t;var I=n.slice(0,x),U=n.slice(x);if(U!==_)break t;var z=Math.min(y,x),W=v.slice(0,z),F=I.slice(0,z);if(W!==F)break t;var R=v.slice(z),A=I.slice(z);return c(W,R,A,_)}t:{if(w!==null&&w!==y)break t;var q=y,I=n.slice(0,q),U=n.slice(q);if(I!==v)break t;var j=Math.min(m-q,T-q),H=_.slice(_.length-j),M=U.slice(U.length-j);if(H!==M)break t;var R=_.slice(0,_.length-j),A=U.slice(0,U.length-j);return c(v,R,A,H)}}if(E.length>0&&b&&b.length===0)t:{var W=r.slice(0,E.index),H=r.slice(E.index+E.length),z=W.length,j=H.length;if(T<z+j)break t;var F=n.slice(0,z),M=n.slice(T-j);if(W!==F||H!==M)break t;var R=r.slice(z,m-j),A=n.slice(z,T-j);return c(W,R,A,H)}return null}function o(r,n,l){return O(r,n,l,!0)}return o.INSERT=ft,o.DELETE=st,o.EQUAL=B,In=o,In}var Se={exports:{}};Se.exports;var Kn;function $n(){return Kn||(Kn=1,(function(st,ft){var B=200,O="__lodash_hash_undefined__",g=9007199254740991,P="[object Arguments]",S="[object Array]",k="[object Boolean]",p="[object Date]",d="[object Error]",s="[object Function]",i="[object GeneratorFunction]",t="[object Map]",e="[object Number]",h="[object Object]",u="[object Promise]",c="[object RegExp]",a="[object Set]",o="[object String]",r="[object Symbol]",n="[object WeakMap]",l="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",m="[object Float64Array]",T="[object Int8Array]",y="[object Int16Array]",v="[object Int32Array]",_="[object Uint8Array]",w="[object Uint8ClampedArray]",x="[object Uint16Array]",I="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,W=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,R={};R[P]=R[S]=R[l]=R[E]=R[k]=R[p]=R[b]=R[m]=R[T]=R[y]=R[v]=R[t]=R[e]=R[h]=R[c]=R[a]=R[o]=R[r]=R[_]=R[w]=R[x]=R[I]=!0,R[d]=R[s]=R[n]=!1;var A=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,q=typeof self=="object"&&self&&self.Object===Object&&self,j=A||q||Function("return this")(),H=ft&&!ft.nodeType&&ft,M=H&&!0&&st&&!st.nodeType&&st,L=M&&M.exports===H;function C(f,N){return f.set(N[0],N[1]),f}function K(f,N){return f.add(N),f}function G(f,N){for(var D=-1,Z=f?f.length:0;++D<Z&&N(f[D],D,f)!==!1;);return f}function X(f,N){for(var D=-1,Z=N.length,lt=f.length;++D<Z;)f[lt+D]=N[D];return f}function tt(f,N,D,Z){for(var lt=-1,et=f?f.length:0;++lt<et;)D=N(D,f[lt],lt,f);return D}function nt(f,N){for(var D=-1,Z=Array(f);++D<f;)Z[D]=N(D);return Z}function it(f,N){return f?.[N]}function ut(f){var N=!1;if(f!=null&&typeof f.toString!="function")try{N=!!(f+"")}catch{}return N}function ct(f){var N=-1,D=Array(f.size);return f.forEach(function(Z,lt){D[++N]=[lt,Z]}),D}function mt(f,N){return function(D){return f(N(D))}}function gt(f){var N=-1,D=Array(f.size);return f.forEach(function(Z){D[++N]=Z}),D}var V=Array.prototype,Y=Function.prototype,J=Object.prototype,$=j["__core-js_shared__"],Q=(function(){var f=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),at=Y.toString,rt=J.hasOwnProperty,ot=J.toString,Tt=RegExp("^"+at.call(rt).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=L?j.Buffer:void 0,pt=j.Symbol,Yt=j.Uint8Array,ht=mt(Object.getPrototypeOf,Object),qt=Object.create,Le=J.propertyIsEnumerable,Ze=V.splice,de=Object.getOwnPropertySymbols,ne=Et?Et.isBuffer:void 0,Re=mt(Object.keys,Object),re=Mt(j,"DataView"),Xt=Mt(j,"Map"),It=Mt(j,"Promise"),ie=Mt(j,"Set"),ve=Mt(j,"WeakMap"),Qt=Mt(Object,"create"),pe=Pt(re),Jt=Pt(Xt),ye=Pt(It),ge=Pt(ie),me=Pt(ve),Vt=pt?pt.prototype:void 0,qe=Vt?Vt.valueOf:void 0;function Ut(f){var N=-1,D=f?f.length:0;for(this.clear();++N<D;){var Z=f[N];this.set(Z[0],Z[1])}}function We(){this.__data__=Qt?Qt(null):{}}function Ye(f){return this.has(f)&&delete this.__data__[f]}function Xe(f){var N=this.__data__;if(Qt){var D=N[f];return D===O?void 0:D}return rt.call(N,f)?N[f]:void 0}function je(f){var N=this.__data__;return Qt?N[f]!==void 0:rt.call(N,f)}function be(f,N){var D=this.__data__;return D[f]=Qt&&N===void 0?O:N,this}Ut.prototype.clear=We,Ut.prototype.delete=Ye,Ut.prototype.get=Xe,Ut.prototype.has=je,Ut.prototype.set=be;function At(f){var N=-1,D=f?f.length:0;for(this.clear();++N<D;){var Z=f[N];this.set(Z[0],Z[1])}}function Qe(){this.__data__=[]}function Je(f){var N=this.__data__,D=ae(N,f);if(D<0)return!1;var Z=N.length-1;return D==Z?N.pop():Ze.call(N,D,1),!0}function $e(f){var N=this.__data__,D=ae(N,f);return D<0?void 0:N[D][1]}function tn(f){return ae(this.__data__,f)>-1}function en(f,N){var D=this.__data__,Z=ae(D,f);return Z<0?D.push([f,N]):D[Z][1]=N,this}At.prototype.clear=Qe,At.prototype.delete=Je,At.prototype.get=$e,At.prototype.has=tn,At.prototype.set=en;function kt(f){var N=-1,D=f?f.length:0;for(this.clear();++N<D;){var Z=f[N];this.set(Z[0],Z[1])}}function nn(){this.__data__={hash:new Ut,map:new(Xt||At),string:new Ut}}function rn(f){return te(this,f).delete(f)}function on(f){return te(this,f).get(f)}function an(f){return te(this,f).has(f)}function ln(f,N){return te(this,f).set(f,N),this}kt.prototype.clear=nn,kt.prototype.delete=rn,kt.prototype.get=on,kt.prototype.has=an,kt.prototype.set=ln;function Lt(f){this.__data__=new At(f)}function un(){this.__data__=new At}function sn(f){return this.__data__.delete(f)}function fn(f){return this.__data__.get(f)}function cn(f){return this.__data__.has(f)}function hn(f,N){var D=this.__data__;if(D instanceof At){var Z=D.__data__;if(!Xt||Z.length<B-1)return Z.push([f,N]),this;D=this.__data__=new kt(Z)}return D.set(f,N),this}Lt.prototype.clear=un,Lt.prototype.delete=sn,Lt.prototype.get=fn,Lt.prototype.has=cn,Lt.prototype.set=hn;function oe(f,N){var D=Ae(f)||ue(f)?nt(f.length,String):[],Z=D.length,lt=!!Z;for(var et in f)rt.call(f,et)&&!(lt&&(et=="length"||kn(et,Z)))&&D.push(et);return D}function Ie(f,N,D){var Z=f[N];(!(rt.call(f,N)&&Fe(Z,D))||D===void 0&&!(N in f))&&(f[N]=D)}function ae(f,N){for(var D=f.length;D--;)if(Fe(f[D][0],N))return D;return-1}function Dt(f,N){return f&&Ee(N,Te(N),f)}function _e(f,N,D,Z,lt,et,vt){var dt;if(Z&&(dt=et?Z(f,lt,et,vt):Z(f)),dt!==void 0)return dt;if(!Ct(f))return f;var bt=Ae(f);if(bt){if(dt=wn(f),!N)return On(f,dt)}else{var yt=zt(f),Nt=yt==s||yt==i;if(Ue(f))return le(f,N);if(yt==h||yt==P||Nt&&!et){if(ut(f))return et?f:{};if(dt=Bt(Nt?{}:f),!N)return En(f,Dt(dt,f))}else{if(!R[yt])return et?f:{};dt=Tn(f,yt,_e,N)}}vt||(vt=new Lt);var Rt=vt.get(f);if(Rt)return Rt;if(vt.set(f,dt),!bt)var _t=D?An(f):Te(f);return G(_t||f,function(St,wt){_t&&(wt=St,St=f[wt]),Ie(dt,wt,_e(St,N,D,Z,wt,f,vt))}),dt}function dn(f){return Ct(f)?qt(f):{}}function vn(f,N,D){var Z=N(f);return Ae(f)?Z:X(Z,D(f))}function pn(f){return ot.call(f)}function yn(f){if(!Ct(f)||Sn(f))return!1;var N=we(f)||ut(f)?Tt:W;return N.test(Pt(f))}function gn(f){if(!Be(f))return Re(f);var N=[];for(var D in Object(f))rt.call(f,D)&&D!="constructor"&&N.push(D);return N}function le(f,N){if(N)return f.slice();var D=new f.constructor(f.length);return f.copy(D),D}function Oe(f){var N=new f.constructor(f.byteLength);return new Yt(N).set(new Yt(f)),N}function $t(f,N){var D=N?Oe(f.buffer):f.buffer;return new f.constructor(D,f.byteOffset,f.byteLength)}function Me(f,N,D){var Z=N?D(ct(f),!0):ct(f);return tt(Z,C,new f.constructor)}function De(f){var N=new f.constructor(f.source,z.exec(f));return N.lastIndex=f.lastIndex,N}function mn(f,N,D){var Z=N?D(gt(f),!0):gt(f);return tt(Z,K,new f.constructor)}function bn(f){return qe?Object(qe.call(f)):{}}function _n(f,N){var D=N?Oe(f.buffer):f.buffer;return new f.constructor(D,f.byteOffset,f.length)}function On(f,N){var D=-1,Z=f.length;for(N||(N=Array(Z));++D<Z;)N[D]=f[D];return N}function Ee(f,N,D,Z){D||(D={});for(var lt=-1,et=N.length;++lt<et;){var vt=N[lt],dt=void 0;Ie(D,vt,dt===void 0?f[vt]:dt)}return D}function En(f,N){return Ee(f,Ht(f),N)}function An(f){return vn(f,Te,Ht)}function te(f,N){var D=f.__data__;return Nn(N)?D[typeof N=="string"?"string":"hash"]:D.map}function Mt(f,N){var D=it(f,N);return yn(D)?D:void 0}var Ht=de?mt(de,Object):Pn,zt=pn;(re&&zt(new re(new ArrayBuffer(1)))!=E||Xt&&zt(new Xt)!=t||It&&zt(It.resolve())!=u||ie&&zt(new ie)!=a||ve&&zt(new ve)!=n)&&(zt=function(f){var N=ot.call(f),D=N==h?f.constructor:void 0,Z=D?Pt(D):void 0;if(Z)switch(Z){case pe:return E;case Jt:return t;case ye:return u;case ge:return a;case me:return n}return N});function wn(f){var N=f.length,D=f.constructor(N);return N&&typeof f[0]=="string"&&rt.call(f,"index")&&(D.index=f.index,D.input=f.input),D}function Bt(f){return typeof f.constructor=="function"&&!Be(f)?dn(ht(f)):{}}function Tn(f,N,D,Z){var lt=f.constructor;switch(N){case l:return Oe(f);case k:case p:return new lt(+f);case E:return $t(f,Z);case b:case m:case T:case y:case v:case _:case w:case x:case I:return _n(f,Z);case t:return Me(f,Z,D);case e:case o:return new lt(f);case c:return De(f);case a:return mn(f,Z,D);case r:return bn(f)}}function kn(f,N){return N=N??g,!!N&&(typeof f=="number"||F.test(f))&&f>-1&&f%1==0&&f<N}function Nn(f){var N=typeof f;return N=="string"||N=="number"||N=="symbol"||N=="boolean"?f!=="__proto__":f===null}function Sn(f){return!!Q&&Q in f}function Be(f){var N=f&&f.constructor,D=typeof N=="function"&&N.prototype||J;return f===D}function Pt(f){if(f!=null){try{return at.call(f)}catch{}try{return f+""}catch{}}return""}function Ce(f){return _e(f,!0,!0)}function Fe(f,N){return f===N||f!==f&&N!==N}function ue(f){return xn(f)&&rt.call(f,"callee")&&(!Le.call(f,"callee")||ot.call(f)==P)}var Ae=Array.isArray;function se(f){return f!=null&&He(f.length)&&!we(f)}function xn(f){return ze(f)&&se(f)}var Ue=ne||Ln;function we(f){var N=Ct(f)?ot.call(f):"";return N==s||N==i}function He(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=g}function Ct(f){var N=typeof f;return!!f&&(N=="object"||N=="function")}function ze(f){return!!f&&typeof f=="object"}function Te(f){return se(f)?oe(f):gn(f)}function Pn(){return[]}function Ln(){return!1}st.exports=Ce})(Se,Se.exports)),Se.exports}var xe={exports:{}};xe.exports;var Gn;function tr(){return Gn||(Gn=1,(function(st,ft){var B=200,O="__lodash_hash_undefined__",g=1,P=2,S=9007199254740991,k="[object Arguments]",p="[object Array]",d="[object AsyncFunction]",s="[object Boolean]",i="[object Date]",t="[object Error]",e="[object Function]",h="[object GeneratorFunction]",u="[object Map]",c="[object Number]",a="[object Null]",o="[object Object]",r="[object Promise]",n="[object Proxy]",l="[object RegExp]",E="[object Set]",b="[object String]",m="[object Symbol]",T="[object Undefined]",y="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",I="[object Int8Array]",U="[object Int16Array]",z="[object Int32Array]",W="[object Uint8Array]",F="[object Uint8ClampedArray]",R="[object Uint16Array]",A="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,M={};M[w]=M[x]=M[I]=M[U]=M[z]=M[W]=M[F]=M[R]=M[A]=!0,M[k]=M[p]=M[v]=M[s]=M[_]=M[i]=M[t]=M[e]=M[u]=M[c]=M[o]=M[l]=M[E]=M[b]=M[y]=!1;var L=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,C=typeof self=="object"&&self&&self.Object===Object&&self,K=L||C||Function("return this")(),G=ft&&!ft.nodeType&&ft,X=G&&!0&&st&&!st.nodeType&&st,tt=X&&X.exports===G,nt=tt&&L.process,it=(function(){try{return nt&&nt.binding&&nt.binding("util")}catch{}})(),ut=it&&it.isTypedArray;function ct(f,N){for(var D=-1,Z=f==null?0:f.length,lt=0,et=[];++D<Z;){var vt=f[D];N(vt,D,f)&&(et[lt++]=vt)}return et}function mt(f,N){for(var D=-1,Z=N.length,lt=f.length;++D<Z;)f[lt+D]=N[D];return f}function gt(f,N){for(var D=-1,Z=f==null?0:f.length;++D<Z;)if(N(f[D],D,f))return!0;return!1}function V(f,N){for(var D=-1,Z=Array(f);++D<f;)Z[D]=N(D);return Z}function Y(f){return function(N){return f(N)}}function J(f,N){return f.has(N)}function $(f,N){return f?.[N]}function Q(f){var N=-1,D=Array(f.size);return f.forEach(function(Z,lt){D[++N]=[lt,Z]}),D}function at(f,N){return function(D){return f(N(D))}}function rt(f){var N=-1,D=Array(f.size);return f.forEach(function(Z){D[++N]=Z}),D}var ot=Array.prototype,Tt=Function.prototype,Et=Object.prototype,pt=K["__core-js_shared__"],Yt=Tt.toString,ht=Et.hasOwnProperty,qt=(function(){var f=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),Le=Et.toString,Ze=RegExp("^"+Yt.call(ht).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=tt?K.Buffer:void 0,ne=K.Symbol,Re=K.Uint8Array,re=Et.propertyIsEnumerable,Xt=ot.splice,It=ne?ne.toStringTag:void 0,ie=Object.getOwnPropertySymbols,ve=de?de.isBuffer:void 0,Qt=at(Object.keys,Object),pe=Ht(K,"DataView"),Jt=Ht(K,"Map"),ye=Ht(K,"Promise"),ge=Ht(K,"Set"),me=Ht(K,"WeakMap"),Vt=Ht(Object,"create"),qe=Pt(pe),Ut=Pt(Jt),We=Pt(ye),Ye=Pt(ge),Xe=Pt(me),je=ne?ne.prototype:void 0,be=je?je.valueOf:void 0;function At(f){var N=-1,D=f==null?0:f.length;for(this.clear();++N<D;){var Z=f[N];this.set(Z[0],Z[1])}}function Qe(){this.__data__=Vt?Vt(null):{},this.size=0}function Je(f){var N=this.has(f)&&delete this.__data__[f];return this.size-=N?1:0,N}function $e(f){var N=this.__data__;if(Vt){var D=N[f];return D===O?void 0:D}return ht.call(N,f)?N[f]:void 0}function tn(f){var N=this.__data__;return Vt?N[f]!==void 0:ht.call(N,f)}function en(f,N){var D=this.__data__;return this.size+=this.has(f)?0:1,D[f]=Vt&&N===void 0?O:N,this}At.prototype.clear=Qe,At.prototype.delete=Je,At.prototype.get=$e,At.prototype.has=tn,At.prototype.set=en;function kt(f){var N=-1,D=f==null?0:f.length;for(this.clear();++N<D;){var Z=f[N];this.set(Z[0],Z[1])}}function nn(){this.__data__=[],this.size=0}function rn(f){var N=this.__data__,D=le(N,f);if(D<0)return!1;var Z=N.length-1;return D==Z?N.pop():Xt.call(N,D,1),--this.size,!0}function on(f){var N=this.__data__,D=le(N,f);return D<0?void 0:N[D][1]}function an(f){return le(this.__data__,f)>-1}function ln(f,N){var D=this.__data__,Z=le(D,f);return Z<0?(++this.size,D.push([f,N])):D[Z][1]=N,this}kt.prototype.clear=nn,kt.prototype.delete=rn,kt.prototype.get=on,kt.prototype.has=an,kt.prototype.set=ln;function Lt(f){var N=-1,D=f==null?0:f.length;for(this.clear();++N<D;){var Z=f[N];this.set(Z[0],Z[1])}}function un(){this.size=0,this.__data__={hash:new At,map:new(Jt||kt),string:new At}}function sn(f){var N=Mt(this,f).delete(f);return this.size-=N?1:0,N}function fn(f){return Mt(this,f).get(f)}function cn(f){return Mt(this,f).has(f)}function hn(f,N){var D=Mt(this,f),Z=D.size;return D.set(f,N),this.size+=D.size==Z?0:1,this}Lt.prototype.clear=un,Lt.prototype.delete=sn,Lt.prototype.get=fn,Lt.prototype.has=cn,Lt.prototype.set=hn;function oe(f){var N=-1,D=f==null?0:f.length;for(this.__data__=new Lt;++N<D;)this.add(f[N])}function Ie(f){return this.__data__.set(f,O),this}function ae(f){return this.__data__.has(f)}oe.prototype.add=oe.prototype.push=Ie,oe.prototype.has=ae;function Dt(f){var N=this.__data__=new kt(f);this.size=N.size}function _e(){this.__data__=new kt,this.size=0}function dn(f){var N=this.__data__,D=N.delete(f);return this.size=N.size,D}function vn(f){return this.__data__.get(f)}function pn(f){return this.__data__.has(f)}function yn(f,N){var D=this.__data__;if(D instanceof kt){var Z=D.__data__;if(!Jt||Z.length<B-1)return Z.push([f,N]),this.size=++D.size,this;D=this.__data__=new Lt(Z)}return D.set(f,N),this.size=D.size,this}Dt.prototype.clear=_e,Dt.prototype.delete=dn,Dt.prototype.get=vn,Dt.prototype.has=pn,Dt.prototype.set=yn;function gn(f,N){var D=ue(f),Z=!D&&Fe(f),lt=!D&&!Z&&se(f),et=!D&&!Z&&!lt&&ze(f),vt=D||Z||lt||et,dt=vt?V(f.length,String):[],bt=dt.length;for(var yt in f)ht.call(f,yt)&&!(vt&&(yt=="length"||lt&&(yt=="offset"||yt=="parent")||et&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||Tn(yt,bt)))&&dt.push(yt);return dt}function le(f,N){for(var D=f.length;D--;)if(Ce(f[D][0],N))return D;return-1}function Oe(f,N,D){var Z=N(f);return ue(f)?Z:mt(Z,D(f))}function $t(f){return f==null?f===void 0?T:a:It&&It in Object(f)?zt(f):Be(f)}function Me(f){return Ct(f)&&$t(f)==k}function De(f,N,D,Z,lt){return f===N?!0:f==null||N==null||!Ct(f)&&!Ct(N)?f!==f&&N!==N:mn(f,N,D,Z,De,lt)}function mn(f,N,D,Z,lt,et){var vt=ue(f),dt=ue(N),bt=vt?p:Bt(f),yt=dt?p:Bt(N);bt=bt==k?o:bt,yt=yt==k?o:yt;var Nt=bt==o,Rt=yt==o,_t=bt==yt;if(_t&&se(f)){if(!se(N))return!1;vt=!0,Nt=!1}if(_t&&!Nt)return et||(et=new Dt),vt||ze(f)?Ee(f,N,D,Z,lt,et):En(f,N,bt,D,Z,lt,et);if(!(D&g)){var St=Nt&&ht.call(f,"__wrapped__"),wt=Rt&&ht.call(N,"__wrapped__");if(St||wt){var Zt=St?f.value():f,Kt=wt?N.value():N;return et||(et=new Dt),lt(Zt,Kt,D,Z,et)}}return _t?(et||(et=new Dt),An(f,N,D,Z,lt,et)):!1}function bn(f){if(!He(f)||Nn(f))return!1;var N=Ue(f)?Ze:j;return N.test(Pt(f))}function _n(f){return Ct(f)&&we(f.length)&&!!M[$t(f)]}function On(f){if(!Sn(f))return Qt(f);var N=[];for(var D in Object(f))ht.call(f,D)&&D!="constructor"&&N.push(D);return N}function Ee(f,N,D,Z,lt,et){var vt=D&g,dt=f.length,bt=N.length;if(dt!=bt&&!(vt&&bt>dt))return!1;var yt=et.get(f);if(yt&&et.get(N))return yt==N;var Nt=-1,Rt=!0,_t=D&P?new oe:void 0;for(et.set(f,N),et.set(N,f);++Nt<dt;){var St=f[Nt],wt=N[Nt];if(Z)var Zt=vt?Z(wt,St,Nt,N,f,et):Z(St,wt,Nt,f,N,et);if(Zt!==void 0){if(Zt)continue;Rt=!1;break}if(_t){if(!gt(N,function(Kt,ee){if(!J(_t,ee)&&(St===Kt||lt(St,Kt,D,Z,et)))return _t.push(ee)})){Rt=!1;break}}else if(!(St===wt||lt(St,wt,D,Z,et))){Rt=!1;break}}return et.delete(f),et.delete(N),Rt}function En(f,N,D,Z,lt,et,vt){switch(D){case _:if(f.byteLength!=N.byteLength||f.byteOffset!=N.byteOffset)return!1;f=f.buffer,N=N.buffer;case v:return!(f.byteLength!=N.byteLength||!et(new Re(f),new Re(N)));case s:case i:case c:return Ce(+f,+N);case t:return f.name==N.name&&f.message==N.message;case l:case b:return f==N+"";case u:var dt=Q;case E:var bt=Z&g;if(dt||(dt=rt),f.size!=N.size&&!bt)return!1;var yt=vt.get(f);if(yt)return yt==N;Z|=P,vt.set(f,N);var Nt=Ee(dt(f),dt(N),Z,lt,et,vt);return vt.delete(f),Nt;case m:if(be)return be.call(f)==be.call(N)}return!1}function An(f,N,D,Z,lt,et){var vt=D&g,dt=te(f),bt=dt.length,yt=te(N),Nt=yt.length;if(bt!=Nt&&!vt)return!1;for(var Rt=bt;Rt--;){var _t=dt[Rt];if(!(vt?_t in N:ht.call(N,_t)))return!1}var St=et.get(f);if(St&&et.get(N))return St==N;var wt=!0;et.set(f,N),et.set(N,f);for(var Zt=vt;++Rt<bt;){_t=dt[Rt];var Kt=f[_t],ee=N[_t];if(Z)var Dn=vt?Z(ee,Kt,_t,N,f,et):Z(Kt,ee,_t,f,N,et);if(!(Dn===void 0?Kt===ee||lt(Kt,ee,D,Z,et):Dn)){wt=!1;break}Zt||(Zt=_t=="constructor")}if(wt&&!Zt){var Ke=f.constructor,Ge=N.constructor;Ke!=Ge&&"constructor"in f&&"constructor"in N&&!(typeof Ke=="function"&&Ke instanceof Ke&&typeof Ge=="function"&&Ge instanceof Ge)&&(wt=!1)}return et.delete(f),et.delete(N),wt}function te(f){return Oe(f,Te,wn)}function Mt(f,N){var D=f.__data__;return kn(N)?D[typeof N=="string"?"string":"hash"]:D.map}function Ht(f,N){var D=$(f,N);return bn(D)?D:void 0}function zt(f){var N=ht.call(f,It),D=f[It];try{f[It]=void 0;var Z=!0}catch{}var lt=Le.call(f);return Z&&(N?f[It]=D:delete f[It]),lt}var wn=ie?function(f){return f==null?[]:(f=Object(f),ct(ie(f),function(N){return re.call(f,N)}))}:Pn,Bt=$t;(pe&&Bt(new pe(new ArrayBuffer(1)))!=_||Jt&&Bt(new Jt)!=u||ye&&Bt(ye.resolve())!=r||ge&&Bt(new ge)!=E||me&&Bt(new me)!=y)&&(Bt=function(f){var N=$t(f),D=N==o?f.constructor:void 0,Z=D?Pt(D):"";if(Z)switch(Z){case qe:return _;case Ut:return u;case We:return r;case Ye:return E;case Xe:return y}return N});function Tn(f,N){return N=N??S,!!N&&(typeof f=="number"||H.test(f))&&f>-1&&f%1==0&&f<N}function kn(f){var N=typeof f;return N=="string"||N=="number"||N=="symbol"||N=="boolean"?f!=="__proto__":f===null}function Nn(f){return!!qt&&qt in f}function Sn(f){var N=f&&f.constructor,D=typeof N=="function"&&N.prototype||Et;return f===D}function Be(f){return Le.call(f)}function Pt(f){if(f!=null){try{return Yt.call(f)}catch{}try{return f+""}catch{}}return""}function Ce(f,N){return f===N||f!==f&&N!==N}var Fe=Me((function(){return arguments})())?Me:function(f){return Ct(f)&&ht.call(f,"callee")&&!re.call(f,"callee")},ue=Array.isArray;function Ae(f){return f!=null&&we(f.length)&&!Ue(f)}var se=ve||Ln;function xn(f,N){return De(f,N)}function Ue(f){if(!He(f))return!1;var N=$t(f);return N==e||N==h||N==d||N==n}function we(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=S}function He(f){var N=typeof f;return f!=null&&(N=="object"||N=="function")}function Ct(f){return f!=null&&typeof f=="object"}var ze=ut?Y(ut):_n;function Te(f){return Ae(f)?gn(f):On(f)}function Pn(){return[]}function Ln(){return!1}st.exports=xn})(xe,xe.exports)),xe.exports}var fe={},Vn;function Sr(){if(Vn)return fe;Vn=1;var st=fe&&fe.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(fe,"__esModule",{value:!0});var ft=st($n()),B=st(tr()),O;return(function(g){function P(d,s,i){d===void 0&&(d={}),s===void 0&&(s={}),typeof d!="object"&&(d={}),typeof s!="object"&&(s={});var t=ft.default(s);i||(t=Object.keys(t).reduce(function(h,u){return t[u]!=null&&(h[u]=t[u]),h},{}));for(var e in d)d[e]!==void 0&&s[e]===void 0&&(t[e]=d[e]);return Object.keys(t).length>0?t:void 0}g.compose=P;function S(d,s){d===void 0&&(d={}),s===void 0&&(s={}),typeof d!="object"&&(d={}),typeof s!="object"&&(s={});var i=Object.keys(d).concat(Object.keys(s)).reduce(function(t,e){return B.default(d[e],s[e])||(t[e]=s[e]===void 0?null:s[e]),t},{});return Object.keys(i).length>0?i:void 0}g.diff=S;function k(d,s){d===void 0&&(d={}),s===void 0&&(s={}),d=d||{};var i=Object.keys(s).reduce(function(t,e){return s[e]!==d[e]&&d[e]!==void 0&&(t[e]=s[e]),t},{});return Object.keys(d).reduce(function(t,e){return d[e]!==s[e]&&s[e]===void 0&&(t[e]=null),t},i)}g.invert=k;function p(d,s,i){if(i===void 0&&(i=!1),typeof d!="object")return s;if(typeof s=="object"){if(!i)return s;var t=Object.keys(s).reduce(function(e,h){return d[h]===void 0&&(e[h]=s[h]),e},{});return Object.keys(t).length>0?t:void 0}}g.transform=p})(O||(O={})),fe.default=O,fe}var ce={},he={},Zn;function xr(){if(Zn)return he;Zn=1;var st=he&&he.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(he,"__esModule",{value:!0});var ft=st(er()),B=(function(){function O(g){this.ops=g,this.index=0,this.offset=0}return O.prototype.hasNext=function(){return this.peekLength()<1/0},O.prototype.next=function(g){g||(g=1/0);var P=this.ops[this.index];if(P){var S=this.offset,k=ft.default.length(P);if(g>=k-S?(g=k-S,this.index+=1,this.offset=0):this.offset+=g,typeof P.delete=="number")return{delete:g};var p={};return P.attributes&&(p.attributes=P.attributes),typeof P.retain=="number"?p.retain=g:typeof P.insert=="string"?p.insert=P.insert.substr(S,g):p.insert=P.insert,p}else return{retain:1/0}},O.prototype.peek=function(){return this.ops[this.index]},O.prototype.peekLength=function(){return this.ops[this.index]?ft.default.length(this.ops[this.index])-this.offset:1/0},O.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"},O.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,P=this.index,S=this.next(),k=this.ops.slice(this.index);return this.offset=g,this.index=P,[S].concat(k)}else return[]},O})();return he.default=B,he}var Wn;function er(){if(Wn)return ce;Wn=1;var st=ce&&ce.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(ce,"__esModule",{value:!0});var ft=st(xr()),B;return(function(O){function g(S){return new ft.default(S)}O.iterator=g;function P(S){return typeof S.delete=="number"?S.delete:typeof S.retain=="number"?S.retain:typeof S.insert=="string"?S.insert.length:1}O.length=P})(B||(B={})),ce.default=B,ce}var ke,Yn;function Pr(){if(Yn)return ke;Yn=1;var st=ke&&ke.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},ft=st(Nr()),B=st($n()),O=st(tr()),g=st(Sr()),P=st(er()),S="\0",k=(function(){function p(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]}return p.prototype.insert=function(d,s){var i={};return typeof d=="string"&&d.length===0?this:(i.insert=d,s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(i.attributes=s),this.push(i))},p.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},p.prototype.retain=function(d,s){if(d<=0)return this;var i={retain:d};return s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(i.attributes=s),this.push(i)},p.prototype.push=function(d){var s=this.ops.length,i=this.ops[s-1];if(d=B.default(d),typeof i=="object"){if(typeof d.delete=="number"&&typeof i.delete=="number")return this.ops[s-1]={delete:i.delete+d.delete},this;if(typeof i.delete=="number"&&d.insert!=null&&(s-=1,i=this.ops[s-1],typeof i!="object"))return this.ops.unshift(d),this;if(O.default(d.attributes,i.attributes)){if(typeof d.insert=="string"&&typeof i.insert=="string")return this.ops[s-1]={insert:i.insert+d.insert},typeof d.attributes=="object"&&(this.ops[s-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof i.retain=="number")return this.ops[s-1]={retain:i.retain+d.retain},typeof d.attributes=="object"&&(this.ops[s-1].attributes=d.attributes),this}}return s===this.ops.length?this.ops.push(d):this.ops.splice(s,0,d),this},p.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},p.prototype.filter=function(d){return this.ops.filter(d)},p.prototype.forEach=function(d){this.ops.forEach(d)},p.prototype.map=function(d){return this.ops.map(d)},p.prototype.partition=function(d){var s=[],i=[];return this.forEach(function(t){var e=d(t)?s:i;e.push(t)}),[s,i]},p.prototype.reduce=function(d,s){return this.ops.reduce(d,s)},p.prototype.changeLength=function(){return this.reduce(function(d,s){return s.insert?d+P.default.length(s):s.delete?d-s.delete:d},0)},p.prototype.length=function(){return this.reduce(function(d,s){return d+P.default.length(s)},0)},p.prototype.slice=function(d,s){d===void 0&&(d=0),s===void 0&&(s=1/0);for(var i=[],t=P.default.iterator(this.ops),e=0;e<s&&t.hasNext();){var h=void 0;e<d?h=t.next(d-e):(h=t.next(s-e),i.push(h)),e+=P.default.length(h)}return new p(i)},p.prototype.compose=function(d){var s=P.default.iterator(this.ops),i=P.default.iterator(d.ops),t=[],e=i.peek();if(e!=null&&typeof e.retain=="number"&&e.attributes==null){for(var h=e.retain;s.peekType()==="insert"&&s.peekLength()<=h;)h-=s.peekLength(),t.push(s.next());e.retain-h>0&&i.next(e.retain-h)}for(var u=new p(t);s.hasNext()||i.hasNext();)if(i.peekType()==="insert")u.push(i.next());else if(s.peekType()==="delete")u.push(s.next());else{var c=Math.min(s.peekLength(),i.peekLength()),a=s.next(c),o=i.next(c);if(typeof o.retain=="number"){var r={};typeof a.retain=="number"?r.retain=c:r.insert=a.insert;var n=g.default.compose(a.attributes,o.attributes,typeof a.retain=="number");if(n&&(r.attributes=n),u.push(r),!i.hasNext()&&O.default(u.ops[u.ops.length-1],r)){var l=new p(s.rest());return u.concat(l).chop()}}else typeof o.delete=="number"&&typeof a.retain=="number"&&u.push(o)}return u.chop()},p.prototype.concat=function(d){var s=new p(this.ops.slice());return d.ops.length>0&&(s.push(d.ops[0]),s.ops=s.ops.concat(d.ops.slice(1))),s},p.prototype.diff=function(d,s){if(this.ops===d.ops)return new p;var i=[this,d].map(function(c){return c.map(function(a){if(a.insert!=null)return typeof a.insert=="string"?a.insert:S;var o=c===d?"on":"with";throw new Error("diff() called "+o+" non-document")}).join("")}),t=new p,e=ft.default(i[0],i[1],s),h=P.default.iterator(this.ops),u=P.default.iterator(d.ops);return e.forEach(function(c){for(var a=c[1].length;a>0;){var o=0;switch(c[0]){case ft.default.INSERT:o=Math.min(u.peekLength(),a),t.push(u.next(o));break;case ft.default.DELETE:o=Math.min(a,h.peekLength()),h.next(o),t.delete(o);break;case ft.default.EQUAL:o=Math.min(h.peekLength(),u.peekLength(),a);var r=h.next(o),n=u.next(o);O.default(r.insert,n.insert)?t.retain(o,g.default.diff(r.attributes,n.attributes)):t.push(n).delete(o);break}a-=o}}),t.chop()},p.prototype.eachLine=function(d,s){s===void 0&&(s=`
`);for(var i=P.default.iterator(this.ops),t=new p,e=0;i.hasNext();){if(i.peekType()!=="insert")return;var h=i.peek(),u=P.default.length(h)-i.peekLength(),c=typeof h.insert=="string"?h.insert.indexOf(s,u)-u:-1;if(c<0)t.push(i.next());else if(c>0)t.push(i.next(c));else{if(d(t,i.next(1).attributes||{},e)===!1)return;e+=1,t=new p}}t.length()>0&&d(t,{},e)},p.prototype.invert=function(d){var s=new p;return this.reduce(function(i,t){if(t.insert)s.delete(P.default.length(t));else{if(t.retain&&t.attributes==null)return s.retain(t.retain),i+t.retain;if(t.delete||t.retain&&t.attributes){var e=t.delete||t.retain,h=d.slice(i,i+e);return h.forEach(function(u){t.delete?s.push(u):t.retain&&t.attributes&&s.retain(P.default.length(u),g.default.invert(t.attributes,u.attributes))}),i+e}}return i},0),s.chop()},p.prototype.transform=function(d,s){if(s===void 0&&(s=!1),s=!!s,typeof d=="number")return this.transformPosition(d,s);for(var i=d,t=P.default.iterator(this.ops),e=P.default.iterator(i.ops),h=new p;t.hasNext()||e.hasNext();)if(t.peekType()==="insert"&&(s||e.peekType()!=="insert"))h.retain(P.default.length(t.next()));else if(e.peekType()==="insert")h.push(e.next());else{var u=Math.min(t.peekLength(),e.peekLength()),c=t.next(u),a=e.next(u);if(c.delete)continue;a.delete?h.push(a):h.retain(u,g.default.transform(c.attributes,a.attributes,s))}return h.chop()},p.prototype.transformPosition=function(d,s){s===void 0&&(s=!1),s=!!s;for(var i=P.default.iterator(this.ops),t=0;i.hasNext()&&t<=d;){var e=i.peekLength(),h=i.peekType();if(i.next(),h==="delete"){d-=Math.min(e,d-t);continue}else h==="insert"&&(t<d||!s)&&(d+=e);t+=e}return d},p.Op=P.default,p.AttributeMap=g.default,p})();return ke=k,ke}Pr();const Lr={flex:"","justify-center":"","items-center":"","flex-col":"","p-2":""},Rr={class:"flex justify-center"},qr={"mt-3":"","font-semibold":""},jr={class:"absolute end-0"},Ir={class:"max-h-85vh overflow-y-auto px-2 mt3 pb-10"},Mr={class:"flex justify-center"},Dr=Xn({__name:"BrandAddEdit",props:{open:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},data:{}},emits:["update:open","update:isEdit","success"],setup(st,{emit:ft}){const B=nr({}),O=Gt([]),g=Gt(),P=Qn(),S=Gt(null),k=st,p=ft,d=()=>{O.value=[],Object.assign(B,{title:"",image:null,active:!0})},s=()=>{console.log(k.data),Object.assign(B,k.data),B.image?.length&&(O.value=[],O.value.push({src:P.useDataStorage(B.image),thumbUrl:P.useDataStorage(B.image)}))},i=async()=>{g.value.validateFields().then(async()=>{try{if(console.log("brandImage.value ===>",O.value),Pe.value=!0,B.image=O.value[0]?.subUrl,k.isEdit&&k.data){const h=k.data;await yr(h.id,B),p("update:isEdit",!1),Rn.success(P.useString("editedSuccessfully"))}else await gr(B),Rn.success(P.useString("addedSuccessfully"));p("update:visible",!1),p("success"),await e()}catch(h){Pe.value=!1,console.log("error",h),Rn.error(P.useString("errorInSubmittingData"))}})};rr(k,h=>{h.open?t():e(),k.isEdit?s():d()});async function t(){await Cn(),await S.value?.setOpen()}async function e(){await Cn(),await S.value?.setClose(),p("update:open",!1)}return(h,u)=>{const c=Er,a=Or;return Ne(),Jn(hr,{title:"",ref_key:"sheetRef",ref:S,headerCls:"",closeOnClickOutside:"",onOnClickOutside:u[5]||(u[5]=o=>p("update:open",!1)),onOnClose:u[6]||(u[6]=o=>p("update:open",!1))},{header:Ft(()=>[jt("div",Lr,[u[7]||(u[7]=jt("div",{"bg-gray-500":"","h-2px":"","w-2.5rem":""},null,-1)),jt("div",Rr,[jt("div",qr,Mn(h.isEdit?xt(P).useString("editBrand"):xt(P).useString("addBrand")),1),jt("div",jr,[Ot(dr,{class:"w-1rem mt-2 me-5",onClick:e})])])])]),default:Ft(()=>[jt("div",Ir,[Ot(a,{model:B,ref_key:"formRef",ref:g},{default:Ft(()=>[Ot(c,{label:xt(P).useString("image")},{default:Ft(()=>[jt("div",Mr,[Ot(vr,{"file-list":O.value,"onUpdate:fileList":u[0]||(u[0]=o=>O.value=o)},null,8,["file-list"])])]),_:1},8,["label"]),Ot(c,{label:xt(P).useString("title"),name:"title"},{default:Ft(()=>[Ot(jn,{value:B.title,"onUpdate:value":u[1]||(u[1]=o=>B.title=o),"place-holder":xt(P).useString("title")},null,8,["value","place-holder"])]),_:1},8,["label"]),Ot(c,{name:"seo_title",label:xt(P).useString("seoTitle")},{default:Ft(()=>[Ot(jn,{"place-holder":xt(P).useString("seoTitle"),value:B.seo_title,"onUpdate:value":u[2]||(u[2]=o=>B.seo_title=o)},null,8,["place-holder","value"])]),_:1},8,["label"]),Ot(c,{name:"meta",label:xt(P).useString("meta")},{default:Ft(()=>[Ot(jn,{"place-holder":xt(P).useString("meta"),value:B.meta,"onUpdate:value":u[3]||(u[3]=o=>B.meta=o)},null,8,["place-holder","value"])]),_:1},8,["label"]),Ot(c,{class:"mt-3",label:xt(P).useString("description"),key:"description"},{default:Ft(()=>[Ot(_r,{value:B.description,"onUpdate:value":u[4]||(u[4]=o=>B.description=o)},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"]),Ot(pr,{type:"primary",block:"",onClick:i},{default:Ft(()=>[ir(Mn(xt(P).useString("submit")),1)]),_:1})])]),_:1},512)}}}),Br=Object.assign(Ar(Dr,[["__scopeId","data-v-df91d0fb"]]),{__name:"BrandAddEdit"}),Cr={class:"sm:!w-50vw sm:justify-self-center"},Fr={class:"px-4 flex items-center justify-between"},Ur={class:"flex gap-4 py-3 items-center"},Hr={class:"font-semibold"},zr={class:"pt-4 px-2 pb40 sm:grid sm:grid-cols-3 sm:gap-2"},qi=Xn({__name:"index",setup(st){const ft=or(),B=Qn();Gt({y:720});const O=Gt(!1),g=Gt(!1);Gt(null);const P=Gt([]),S=Gt({});async function k(){Pe.value=!0,P.value=await mr(),Pe.value=!1}const p=s=>{S.value=s,g.value=!0,O.value=!0},d=async s=>{await sr(B.useString("areYouSureToDeleteThisBrand"),s??"",br,k)};return ar(async()=>{await k()}),(s,i)=>{const t=wr;return Ne(),qn("div",Cr,[jt("div",{class:lr(["sticky w-full top-0 z-2",xt(B).isNightStore?"bg-header-color-dark ":"bg-header-color"])},[jt("div",Fr,[jt("div",Ur,[Ot(Bn,{icon:xt(B).isRTL?"vuesax-linear:arrow-right":"vuesax-linear:arrow-left",class:"cursor-pointer",onClick:i[0]||(i[0]=e=>xt(ft).back())},null,8,["icon"]),jt("div",Hr,Mn(xt(B).useString("brands")),1)]),i[4]||(i[4]=jt("div",null,null,-1))])],2),jt("div",zr,[(Ne(!0),qn(Fn,null,Un(P.value,(e,h)=>(Ne(),Jn(fr,{key:h,item:e,onEdit:p,onDelete:d},null,8,["item"]))),128)),xt(Pe)?(Ne(),qn(Fn,{key:0},Un(10,e=>Ot(cr)),64)):ur("",!0)]),Ot(t,{shape:"circle",type:"primary",onClick:i[1]||(i[1]=e=>O.value=!0),class:"bottom-10vh w-3rem h-3rem"},{default:Ft(()=>[Ot(Bn,{icon:"vuesax-linear:add"})]),_:1}),Ot(Br,{open:O.value,"onUpdate:open":i[2]||(i[2]=e=>O.value=e),"is-edit":g.value,"onUpdate:isEdit":i[3]||(i[3]=e=>g.value=e),data:S.value,onSuccess:k},null,8,["open","is-edit","data"])])}}});export{qi as default};